// This file is auto-generated, don't edit it import * as $dara from '@darabonba/typescript'; export class ListRulesRequestTag extends $dara.Model { /** * @remarks * The tag key. The tag key can be up to 128 characters in length. It cannot start with \\`aliyun\\` or \\`acs:\\`, and cannot contain \\`http\\://\\` or \\`https\\://\\`. * * @example * env */ key?: string; /** * @remarks * The tag value. The tag value can be up to 128 characters in length. It cannot start with \\`aliyun\\` or \\`acs:\\`, and cannot contain \\`http\\://\\` or \\`https\\://\\`. * * @example * product */ value?: string; static names(): { [key: string]: string } { return { key: 'Key', value: 'Value', }; } static types(): { [key: string]: any } { return { key: 'string', value: 'string', }; } validate() { super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } } export class ListRulesRequest extends $dara.Model { /** * @remarks * The direction of the forwarding rule. Valid values: * * - **Request** (default): The forwarding rule is applied to requests. Application Load Balancer (ALB) matches conditions in the requests sent from clients and performs the specified actions. * * - **Response**: The forwarding rule is applied to responses. ALB matches conditions in the responses sent from backend servers and performs the specified actions. * * > Basic ALB instances do not support the Response type. * * @example * Request */ direction?: string; /** * @remarks * The listener IDs. You can specify up to 20 listener IDs. */ listenerIds?: string[]; /** * @remarks * The SLB instance IDs. You can specify up to 20 instance IDs. */ loadBalancerIds?: string[]; /** * @remarks * The maximum number of entries to return. * * Valid values: 1 to **100**. * * Default value: **20**. * * > This parameter is optional. * * @example * 20 */ maxResults?: number; /** * @remarks * The token that is used to retrieve the next page of results. Valid values: * * - You do not need to set this parameter for the first query. * * - For a subsequent query, set this parameter to the value of **NextToken** from the previous response. * * @example * FFmyTO70tTpLG6I3FmYAXGKPd**** */ nextToken?: string; /** * @remarks * The IDs of the forwarding rules. You can specify up to 20 forwarding rule IDs. */ ruleIds?: string[]; /** * @remarks * The tags. */ tag?: ListRulesRequestTag[]; static names(): { [key: string]: string } { return { direction: 'Direction', listenerIds: 'ListenerIds', loadBalancerIds: 'LoadBalancerIds', maxResults: 'MaxResults', nextToken: 'NextToken', ruleIds: 'RuleIds', tag: 'Tag', }; } static types(): { [key: string]: any } { return { direction: 'string', listenerIds: { 'type': 'array', 'itemType': 'string' }, loadBalancerIds: { 'type': 'array', 'itemType': 'string' }, maxResults: 'number', nextToken: 'string', ruleIds: { 'type': 'array', 'itemType': 'string' }, tag: { 'type': 'array', 'itemType': ListRulesRequestTag }, }; } validate() { if(Array.isArray(this.listenerIds)) { $dara.Model.validateArray(this.listenerIds); } if(Array.isArray(this.loadBalancerIds)) { $dara.Model.validateArray(this.loadBalancerIds); } if(Array.isArray(this.ruleIds)) { $dara.Model.validateArray(this.ruleIds); } if(Array.isArray(this.tag)) { $dara.Model.validateArray(this.tag); } super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } }