// This file is auto-generated, don't edit it import * as $dara from '@darabonba/typescript'; export class UpdateLoadBalancerZonesRequestZoneMappings extends $dara.Model { /** * @remarks * The type of the EIP. Valid values: * * - **Common**: an EIP. * * - **Anycast**: an Anycast EIP. * * > For a list of regions that support binding an Anycast EIP to an ALB instance, see [Usage limits](https://help.aliyun.com/document_detail/460727.html). * * @example * Common */ eipType?: string; /** * @remarks * The private IPv4 address. * * @example * 192.168.10.1 */ intranetAddress?: string; /** * @remarks * The ID of the VSwitch in the availability zone. Each availability zone uses one VSwitch and one subnet by default. * * This parameter is required. * * @example * vsw-bp1rmcrwg3srh1fh8**** */ vSwitchId?: string; /** * @remarks * The ID of the availability zone. You can call the [DescribeZones](https://help.aliyun.com/document_detail/189196.html) operation to query the IDs of available zones. * * This parameter is required. * * @example * cn-hangzhou-a */ zoneId?: string; static names(): { [key: string]: string } { return { eipType: 'EipType', intranetAddress: 'IntranetAddress', vSwitchId: 'VSwitchId', zoneId: 'ZoneId', }; } static types(): { [key: string]: any } { return { eipType: 'string', intranetAddress: 'string', vSwitchId: 'string', zoneId: 'string', }; } validate() { super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } } export class UpdateLoadBalancerZonesRequest extends $dara.Model { /** * @remarks * The client token used to ensure the idempotence of the request. * * Generate a unique token from your client for each request. The `ClientToken` parameter can contain only ASCII characters. * * > If you do not specify this parameter, the system automatically uses the request\\"s **RequestId** as the **ClientToken**. The **RequestId** differs for each API request. * * @example * 5A2CFF0E-5718-45B5-9D4D-70B3FF3898 */ clientToken?: string; /** * @remarks * Specifies whether to perform a dry run. Valid values: * * - **true**: performs a dry run to check for potential issues, including missing parameters, incorrect formatting, and service limits. If the request fails the dry run, the system returns an error message. If the request passes the dry run, the system returns the `DryRunOperation` error code. * * - **false** (default): sends the request. If the request passes the check, the system returns an HTTP `2xx` status code and performs the operation. * * @example * true */ dryRun?: boolean; /** * @remarks * The ID of the ALB instance. * * This parameter is required. * * @example * alb-o9ulmq5hfn68jk**** */ loadBalancerId?: string; retainResourceType?: string[]; /** * @remarks * The mappings between availability zones and VSwitches. You can specify up to 10 availability zones. If the current region supports two or more availability zones, you must specify at least two. Specifying this parameter overwrites the existing availability zone configuration. * * This parameter is required. */ zoneMappings?: UpdateLoadBalancerZonesRequestZoneMappings[]; static names(): { [key: string]: string } { return { clientToken: 'ClientToken', dryRun: 'DryRun', loadBalancerId: 'LoadBalancerId', retainResourceType: 'RetainResourceType', zoneMappings: 'ZoneMappings', }; } static types(): { [key: string]: any } { return { clientToken: 'string', dryRun: 'boolean', loadBalancerId: 'string', retainResourceType: { 'type': 'array', 'itemType': 'string' }, zoneMappings: { 'type': 'array', 'itemType': UpdateLoadBalancerZonesRequestZoneMappings }, }; } validate() { if(Array.isArray(this.retainResourceType)) { $dara.Model.validateArray(this.retainResourceType); } if(Array.isArray(this.zoneMappings)) { $dara.Model.validateArray(this.zoneMappings); } super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } }