// This file is auto-generated, don't edit it import * as $dara from '@darabonba/typescript'; export class ListServerGroupsRequestTag extends $dara.Model { /** * @remarks * The tag key. You can specify up to 10 tag keys. * * The tag key can be up to 64 characters in length and cannot start with `aliyun` or `acs:`. It cannot contain `http://` or `https://`. * * @example * Test */ key?: string; /** * @remarks * The tag value. You can specify up to 10 tag values. * * The tag value can be up to 128 characters in length and cannot start with `aliyun` or `acs:`. It cannot contain `http://` or `https://`. * * @example * Test */ 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 ListServerGroupsRequest extends $dara.Model { /** * @remarks * The maximum number of entries to return per page. Valid values: **1** to **100**. Default value: **20**. * * @example * 20 */ maxResults?: number; /** * @remarks * The pagination token that is used in the next request to retrieve a new page of results. Valid values: * - You do not need to specify this parameter for the first request or if no next query exists. * - If a next query exists, set the value to the **NextToken** value returned in the previous API call. * * @example * FFmyTO70tTpLG6I3FmYAXG**** */ nextToken?: string; /** * @remarks * The resource group ID. * * @example * rg-atstuj3rtop**** */ resourceGroupId?: string; /** * @remarks * The IDs of the server groups. */ serverGroupIds?: string[]; /** * @remarks * The names of the server groups. You can specify up to 10 names. */ serverGroupNames?: string[]; /** * @remarks * The type of the server group. Valid values: * * - **Instance**: server type, which includes ECS, ENI, and ECI instances. * * - **Ip**: IP address type. * * - **Fc**: Function Compute type. * * - If you leave this parameter empty, all types of server groups are queried. * * @example * Instance */ serverGroupType?: string; /** * @remarks * The tags that are bound to the server group. You can specify up to 10 tags in a single request. * * @example * Instance */ tag?: ListServerGroupsRequestTag[]; /** * @remarks * The ID of the VPC-connected instance. * * @example * vpc-bp15zckdt37pq72zv**** */ vpcId?: string; static names(): { [key: string]: string } { return { maxResults: 'MaxResults', nextToken: 'NextToken', resourceGroupId: 'ResourceGroupId', serverGroupIds: 'ServerGroupIds', serverGroupNames: 'ServerGroupNames', serverGroupType: 'ServerGroupType', tag: 'Tag', vpcId: 'VpcId', }; } static types(): { [key: string]: any } { return { maxResults: 'number', nextToken: 'string', resourceGroupId: 'string', serverGroupIds: { 'type': 'array', 'itemType': 'string' }, serverGroupNames: { 'type': 'array', 'itemType': 'string' }, serverGroupType: 'string', tag: { 'type': 'array', 'itemType': ListServerGroupsRequestTag }, vpcId: 'string', }; } validate() { if(Array.isArray(this.serverGroupIds)) { $dara.Model.validateArray(this.serverGroupIds); } if(Array.isArray(this.serverGroupNames)) { $dara.Model.validateArray(this.serverGroupNames); } if(Array.isArray(this.tag)) { $dara.Model.validateArray(this.tag); } super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } }