tencentcloud-sdk-nodejs-intl-en
Version:
1,916 lines (1,616 loc) • 466 kB
JavaScript
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
const AbstractModel = require("../../common/abstract_model");
/**
* Security group quota limit
* @class
*/
class SecurityGroupLimitSet extends AbstractModel {
constructor(){
super();
/**
* Total number of security groups that can be created
* @type {number || null}
*/
this.SecurityGroupLimit = null;
/**
* Maximum number of rules under the security group
* @type {number || null}
*/
this.SecurityGroupPolicyLimit = null;
/**
* Number of nested security group rules under the security group
* @type {number || null}
*/
this.ReferedSecurityGroupLimit = null;
/**
* Number of instances associated with the security group
* @type {number || null}
*/
this.SecurityGroupInstanceLimit = null;
/**
* Number of security groups associated with the instance
* @type {number || null}
*/
this.InstanceSecurityGroupLimit = null;
/**
* Number of modules associated with the security group
* @type {number || null}
*/
this.SecurityGroupModuleLimit = null;
/**
* Number of security groups associated with the module
* @type {number || null}
*/
this.ModuleSecurityGroupLimit = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.SecurityGroupLimit = 'SecurityGroupLimit' in params ? params.SecurityGroupLimit : null;
this.SecurityGroupPolicyLimit = 'SecurityGroupPolicyLimit' in params ? params.SecurityGroupPolicyLimit : null;
this.ReferedSecurityGroupLimit = 'ReferedSecurityGroupLimit' in params ? params.ReferedSecurityGroupLimit : null;
this.SecurityGroupInstanceLimit = 'SecurityGroupInstanceLimit' in params ? params.SecurityGroupInstanceLimit : null;
this.InstanceSecurityGroupLimit = 'InstanceSecurityGroupLimit' in params ? params.InstanceSecurityGroupLimit : null;
this.SecurityGroupModuleLimit = 'SecurityGroupModuleLimit' in params ? params.SecurityGroupModuleLimit : null;
this.ModuleSecurityGroupLimit = 'ModuleSecurityGroupLimit' in params ? params.ModuleSecurityGroupLimit : null;
}
}
/**
* CreateRoutes request structure.
* @class
*/
class CreateRoutesRequest extends AbstractModel {
constructor(){
super();
/**
* Route table instance ID.
* @type {string || null}
*/
this.RouteTableId = null;
/**
* Routing policy object to be created.
* @type {Array.<Route> || null}
*/
this.Routes = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.RouteTableId = 'RouteTableId' in params ? params.RouteTableId : null;
if (params.Routes) {
this.Routes = new Array();
for (let z in params.Routes) {
let obj = new Route();
obj.deserialize(params.Routes[z]);
this.Routes.push(obj);
}
}
}
}
/**
* DescribeHaVips response structure.
* @class
*/
class DescribeHaVipsResponse extends AbstractModel {
constructor(){
super();
/**
* Number of eligible objects.
* @type {number || null}
*/
this.TotalCount = null;
/**
* Array of HAVIP objects.
Note: this field may return null, indicating that no valid values can be obtained.
* @type {Array.<HaVip> || null}
*/
this.HaVipSet = null;
/**
* The unique request ID, which is returned for each request. RequestId is required for locating a problem.
* @type {string || null}
*/
this.RequestId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.TotalCount = 'TotalCount' in params ? params.TotalCount : null;
if (params.HaVipSet) {
this.HaVipSet = new Array();
for (let z in params.HaVipSet) {
let obj = new HaVip();
obj.deserialize(params.HaVipSet[z]);
this.HaVipSet.push(obj);
}
}
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* ModifyModuleSecurityGroups request structure.
* @class
*/
class ModifyModuleSecurityGroupsRequest extends AbstractModel {
constructor(){
super();
/**
* List of up to 5 security groups.
* @type {Array.<string> || null}
*/
this.SecurityGroupIdSet = null;
/**
* Module ID.
* @type {string || null}
*/
this.ModuleId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.SecurityGroupIdSet = 'SecurityGroupIdSet' in params ? params.SecurityGroupIdSet : null;
this.ModuleId = 'ModuleId' in params ? params.ModuleId : null;
}
}
/**
* TerminateInstances response structure.
* @class
*/
class TerminateInstancesResponse extends AbstractModel {
constructor(){
super();
/**
* The unique request ID, which is returned for each request. RequestId is required for locating a problem.
* @type {string || null}
*/
this.RequestId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* DescribeMonthPeakNetwork response structure.
* @class
*/
class DescribeMonthPeakNetworkResponse extends AbstractModel {
constructor(){
super();
/**
* None
Note: this field may return null, indicating that no valid values can be obtained.
* @type {Array.<MonthNetwork> || null}
*/
this.MonthNetWorkData = null;
/**
* The unique request ID, which is returned for each request. RequestId is required for locating a problem.
* @type {string || null}
*/
this.RequestId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
if (params.MonthNetWorkData) {
this.MonthNetWorkData = new Array();
for (let z in params.MonthNetWorkData) {
let obj = new MonthNetwork();
obj.deserialize(params.MonthNetWorkData[z]);
this.MonthNetWorkData.push(obj);
}
}
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* DescribeNetworkInterfaces request structure.
* @class
*/
class DescribeNetworkInterfacesRequest extends AbstractModel {
constructor(){
super();
/**
* Queries the ID of the ENI instance, such as `eni-pxir56ns`. Each request supports a maximum of 100 instances. `NetworkInterfaceIds` and `Filters` cannot be specified at the same time.
* @type {Array.<string> || null}
*/
this.NetworkInterfaceIds = null;
/**
* Filter. `NetworkInterfaceIds` and `Filters` cannot be specified at the same time.
vpc-id - String - (Filter) VPC instance ID, such as `vpc-f49l6u0z`.
subnet-id - String - (Filter) Subnet instance ID, such as `subnet-f49l6u0z`.
network-interface-id - String - (Filter) ENI instance ID, such as `eni-5k56k7k7`.
attachment.instance-id - String - (Filter) ID of the bound CVM instance, such as `ein-3nqpdn3i`.
groups.security-group-id - String - (Filter) ID of the bound security group instance, such as `sg-f9ekbxeq`.
network-interface-name - String - (Filter) ENI instance name.
network-interface-description - String - (Filter) ENI instance description.
address-ip - String - (Filter) Private IPv4 address.
tag-key - String - Required: no - (Filter) Filter by tag key. For directions, see Sample 2.
tag:tag-key - String - Required: no - (Filter) Filter by tag key-value pair. Replace `tag-key` with the specific tag key. For directions, see Sample 3.
is-primary - Boolean - Required: no - (Filter) Filter by whether it is a primary ENI. true: filter only by primary ENI; false: filter only by secondary ENI. If this parameter is not specified, filtering by both primary and secondary ENIs will be used.
* @type {Array.<Filter> || null}
*/
this.Filters = null;
/**
* Offset. Default value: 0.
* @type {number || null}
*/
this.Offset = null;
/**
* Number of results to be returned. Default value: 20. Maximum value: 100.
* @type {number || null}
*/
this.Limit = null;
/**
* ECM region, such as `ap-xian-ecm`.
* @type {string || null}
*/
this.EcmRegion = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.NetworkInterfaceIds = 'NetworkInterfaceIds' in params ? params.NetworkInterfaceIds : null;
if (params.Filters) {
this.Filters = new Array();
for (let z in params.Filters) {
let obj = new Filter();
obj.deserialize(params.Filters[z]);
this.Filters.push(obj);
}
}
this.Offset = 'Offset' in params ? params.Offset : null;
this.Limit = 'Limit' in params ? params.Limit : null;
this.EcmRegion = 'EcmRegion' in params ? params.EcmRegion : null;
}
}
/**
* CreateSecurityGroupPolicies response structure.
* @class
*/
class CreateSecurityGroupPoliciesResponse extends AbstractModel {
constructor(){
super();
/**
* The unique request ID, which is returned for each request. RequestId is required for locating a problem.
* @type {string || null}
*/
this.RequestId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* Instance price information
* @class
*/
class InstancePricesPartDetail extends AbstractModel {
constructor(){
super();
/**
* CPU price information
* @type {PriceDetail || null}
*/
this.CpuPrice = null;
/**
* Memory price information
* @type {PriceDetail || null}
*/
this.MemPrice = null;
/**
* Disk price information
* @type {PriceDetail || null}
*/
this.DisksPrice = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
if (params.CpuPrice) {
let obj = new PriceDetail();
obj.deserialize(params.CpuPrice)
this.CpuPrice = obj;
}
if (params.MemPrice) {
let obj = new PriceDetail();
obj.deserialize(params.MemPrice)
this.MemPrice = obj;
}
if (params.DisksPrice) {
let obj = new PriceDetail();
obj.deserialize(params.DisksPrice)
this.DisksPrice = obj;
}
}
}
/**
* DescribeMonthPeakNetwork request structure.
* @class
*/
class DescribeMonthPeakNetworkRequest extends AbstractModel {
constructor(){
super();
/**
* Month (xxxx-xx), such as `2021-03`. Default value: the last month
* @type {string || null}
*/
this.Month = null;
/**
* Filter
* @type {Array.<Filter> || null}
*/
this.Filters = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.Month = 'Month' in params ? params.Month : null;
if (params.Filters) {
this.Filters = new Array();
for (let z in params.Filters) {
let obj = new Filter();
obj.deserialize(params.Filters[z]);
this.Filters.push(obj);
}
}
}
}
/**
* System disk description.
* @class
*/
class SystemDisk extends AbstractModel {
constructor(){
super();
/**
* Disk type. Valid values:
- LOCAL_BASIC: local disk;
- CLOUD_PREMIUM: Premium Cloud Storage;
Default value: CLOUD_BASIC.
* @type {string || null}
*/
this.DiskType = null;
/**
* Disk ID. This parameter is temporarily unavailable.
* @type {string || null}
*/
this.DiskId = null;
/**
* Disk size in GB.
* @type {number || null}
*/
this.DiskSize = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.DiskType = 'DiskType' in params ? params.DiskType : null;
this.DiskId = 'DiskId' in params ? params.DiskId : null;
this.DiskSize = 'DiskSize' in params ? params.DiskSize : null;
}
}
/**
* DescribeNode response structure.
* @class
*/
class DescribeNodeResponse extends AbstractModel {
constructor(){
super();
/**
* List of node details
Note: this field may return null, indicating that no valid values can be obtained.
* @type {Array.<Node> || null}
*/
this.NodeSet = null;
/**
* Total number of nodes.
* @type {number || null}
*/
this.TotalCount = null;
/**
* The unique request ID, which is returned for each request. RequestId is required for locating a problem.
* @type {string || null}
*/
this.RequestId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
if (params.NodeSet) {
this.NodeSet = new Array();
for (let z in params.NodeSet) {
let obj = new Node();
obj.deserialize(params.NodeSet[z]);
this.NodeSet.push(obj);
}
}
this.TotalCount = 'TotalCount' in params ? params.TotalCount : null;
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* DescribeModule request structure.
* @class
*/
class DescribeModuleRequest extends AbstractModel {
constructor(){
super();
/**
* Filter.
module-name - string - Required: no - (Filter) Filter by module name.
module-id - string - Required: no - (Filter) Filter by module ID.
image-id String Required: no (Filter) Filter by image ID.
instance-family String Required: no (Filter) Filter by model family.
security-group-id - string Required: no - (Filter) Filter by ID of the security group bound to the module.
Each request can contain up to 10 `Filters` and 5 `Filter.Values`.
* @type {Array.<Filter> || null}
*/
this.Filters = null;
/**
* Offset. Default value: 0. For more information on `Offset`, see the relevant section of the API overview.
* @type {number || null}
*/
this.Offset = null;
/**
* Number of returned results. Default value: 20. Maximum value: 100. For more information on `Limit`, see the relevant section of the API overview.
* @type {number || null}
*/
this.Limit = null;
/**
* Specified sort by field. Currently, valid values are as follows:
instance-num: sort by the number of instances.
node-num: sort by the number of nodes.
timestamp: sort by instance creation time.
If this parameter is not specified, instances will be sorted by creation time by default.
* @type {string || null}
*/
this.OrderByField = null;
/**
* Sorting order. 0: descending; 1: ascending. If this parameter is not specified, it will be descending by default.
* @type {number || null}
*/
this.OrderDirection = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
if (params.Filters) {
this.Filters = new Array();
for (let z in params.Filters) {
let obj = new Filter();
obj.deserialize(params.Filters[z]);
this.Filters.push(obj);
}
}
this.Offset = 'Offset' in params ? params.Offset : null;
this.Limit = 'Limit' in params ? params.Limit : null;
this.OrderByField = 'OrderByField' in params ? params.OrderByField : null;
this.OrderDirection = 'OrderDirection' in params ? params.OrderDirection : null;
}
}
/**
* RebootInstances request structure.
* @class
*/
class RebootInstancesRequest extends AbstractModel {
constructor(){
super();
/**
* List of IDs of the instances to be restarted. You can request up to 100 instances in a region at a time.
* @type {Array.<string> || null}
*/
this.InstanceIdSet = null;
/**
* Whether to force restart the instance after it failed to be restarted normally. Valid values:
TRUE: yes;
FALSE: no;
Default value: FALSE.
* @type {boolean || null}
*/
this.ForceReboot = null;
/**
* Shutdown type. Valid values:
SOFT: soft shutdown
HARD: hard shutdown
SOFT_FIRST: perform a soft shutdown first; if it fails, perform a hard shutdown
Default value: SOFT.
* @type {string || null}
*/
this.StopType = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.InstanceIdSet = 'InstanceIdSet' in params ? params.InstanceIdSet : null;
this.ForceReboot = 'ForceReboot' in params ? params.ForceReboot : null;
this.StopType = 'StopType' in params ? params.StopType : null;
}
}
/**
* DescribeSnapshots request structure.
* @class
*/
class DescribeSnapshotsRequest extends AbstractModel {
constructor(){
super();
/**
* List of IDs of the snapshots to be queried. `SnapshotIds` and `Filters` cannot be specified at the same time.
* @type {Array.<string> || null}
*/
this.SnapshotIds = null;
/**
* Filter. `SnapshotIds` and `Filters` cannot be specified at the same time.<br><li>snapshot-id - Array of String - Required: no - (Filter) Filter by snapshot ID, such as `snap-11112222`.<br><li>snapshot-name - Array of String - Required: no - (Filter) Filter by snapshot name.<br><li>snapshot-state - Array of String - Required: no - (Filter) Filter by snapshot status. NORMAL: normal; CREATING: creating; ROLLBACKING: rolling back.<br><li>disk-usage - Array of String - Required: no - (Filter) Filter by the type of the cloud disk from which a snapshot is created. SYSTEM_DISK: system disk; DATA_DISK: data disk.<br><li>project-id - Array of String - Required: no - (Filter) Filter by the project ID of the cloud disk.<br><li>disk-id - Array of String - Required: no - (Filter) Filter by the ID of the cloud disk from which a snapshot is created.<br><li>zone - Array of String - Required: no - (Filter) Filter by [AZ](https://intl.cloud.tencent.com/document/product/213/15753?from_cn_redirect=1#ZoneInfo).<br><li>encrypt - Array of String - Required: no - (Filter) Filter by whether a snapshot is created from an encrypted cloud disk. TRUE: yes; FALSE: no.
<li>snapshot-type- Array of String - Required: no - (Filter) Filter by the snapshot type specified in `snapshot-type`.
(SHARED_SNAPSHOT: shared snapshot | PRIVATE_SNAPSHOT: private snapshot.)
* @type {Array.<Filter> || null}
*/
this.Filters = null;
/**
* Number of returned results. Default value: 20. Maximum value: 100. For more information on `Limit`, see the relevant section of the API [Overview](https://intl.cloud.tencent.com/document/product/362/15633?from_cn_redirect=1).
* @type {number || null}
*/
this.Limit = null;
/**
* Field by which snapshots are sorted. Valid values:<br><li>CREATE_TIME: sort by snapshot creation time<br>Snapshots are sorted by creation time by default.
* @type {string || null}
*/
this.OrderField = null;
/**
* Offset. Default value: 0. For more information on `Offset`, see the relevant section of the API [Overview](https://intl.cloud.tencent.com/document/product/362/15633?from_cn_redirect=1).
* @type {number || null}
*/
this.Offset = null;
/**
* Sorting order of cloud disks. Valid values:<br><li>ASC: ascending<br><li>DESC: descending.
* @type {string || null}
*/
this.Order = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.SnapshotIds = 'SnapshotIds' in params ? params.SnapshotIds : null;
if (params.Filters) {
this.Filters = new Array();
for (let z in params.Filters) {
let obj = new Filter();
obj.deserialize(params.Filters[z]);
this.Filters.push(obj);
}
}
this.Limit = 'Limit' in params ? params.Limit : null;
this.OrderField = 'OrderField' in params ? params.OrderField : null;
this.Offset = 'Offset' in params ? params.Offset : null;
this.Order = 'Order' in params ? params.Order : null;
}
}
/**
* RemovePrivateIpAddresses request structure.
* @class
*/
class RemovePrivateIpAddressesRequest extends AbstractModel {
constructor(){
super();
/**
* ECM region, such as `ap-xian-ecm`.
* @type {string || null}
*/
this.EcmRegion = null;
/**
* ENI instance ID, such as `eni-11112222`.
* @type {string || null}
*/
this.NetworkInterfaceId = null;
/**
* Information of the specified private IPs. You can specify up to 10 IPs at a time.
* @type {Array.<PrivateIpAddressSpecification> || null}
*/
this.PrivateIpAddresses = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.EcmRegion = 'EcmRegion' in params ? params.EcmRegion : null;
this.NetworkInterfaceId = 'NetworkInterfaceId' in params ? params.NetworkInterfaceId : null;
if (params.PrivateIpAddresses) {
this.PrivateIpAddresses = new Array();
for (let z in params.PrivateIpAddresses) {
let obj = new PrivateIpAddressSpecification();
obj.deserialize(params.PrivateIpAddresses[z]);
this.PrivateIpAddresses.push(obj);
}
}
}
}
/**
* Tag information.
* @class
*/
class Tag extends AbstractModel {
constructor(){
super();
/**
* Tag key.
Note: this field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.Key = null;
/**
* Tag value.
Note: this field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.Value = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.Key = 'Key' in params ? params.Key : null;
this.Value = 'Value' in params ? params.Value : null;
}
}
/**
* DescribeImage request structure.
* @class
*/
class DescribeImageRequest extends AbstractModel {
constructor(){
super();
/**
* Filter. Each request can contain up to 10 `Filters`. The detailed filters are as follows:
image-id - String - Required: no - (Filter) Filter by image ID.
image-type - String - Required: no - (Filter) Filter by image type. Valid values:
PRIVATE_IMAGE: private image created by the current account
PUBLIC_IMAGE: public image created by Tencent Cloud
instance-type -String - Required: no - (Filter) Filter supported images by model.
image-name - String - Required: no - (Filter) Fuzzy match by image name. You can provide only one value.
image-os - String - Required: no - (Filter) Fuzzy match by image system name. You can provide only one value.
* @type {Array.<Filter> || null}
*/
this.Filters = null;
/**
* Offset. Default value: 0. For more information on `Offset`, see the relevant section of the API overview.
* @type {number || null}
*/
this.Offset = null;
/**
* Number of returned results. Default value: 20. Maximum value: 100. For more information on `Limit`, see the relevant section of the API overview.
* @type {number || null}
*/
this.Limit = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
if (params.Filters) {
this.Filters = new Array();
for (let z in params.Filters) {
let obj = new Filter();
obj.deserialize(params.Filters[z]);
this.Filters.push(obj);
}
}
this.Offset = 'Offset' in params ? params.Offset : null;
this.Limit = 'Limit' in params ? params.Limit : null;
}
}
/**
* Supported OS types.
* @class
*/
class OsVersion extends AbstractModel {
constructor(){
super();
/**
* OS type
* @type {string || null}
*/
this.OsName = null;
/**
* Supported OS versions
Note: this field may return null, indicating that no valid values can be obtained.
* @type {Array.<string> || null}
*/
this.OsVersions = null;
/**
* Supported OS architecture
Note: this field may return null, indicating that no valid values can be obtained.
* @type {Array.<string> || null}
*/
this.Architecture = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.OsName = 'OsName' in params ? params.OsName : null;
this.OsVersions = 'OsVersions' in params ? params.OsVersions : null;
this.Architecture = 'Architecture' in params ? params.Architecture : null;
}
}
/**
* DescribeListeners response structure.
* @class
*/
class DescribeListenersResponse extends AbstractModel {
constructor(){
super();
/**
* List of listeners
Note: this field may return null, indicating that no valid values can be obtained.
* @type {Array.<Listener> || null}
*/
this.Listeners = null;
/**
* Total number of listeners
Note: this field may return null, indicating that no valid values can be obtained.
* @type {number || null}
*/
this.TotalCount = null;
/**
* The unique request ID, which is returned for each request. RequestId is required for locating a problem.
* @type {string || null}
*/
this.RequestId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
if (params.Listeners) {
this.Listeners = new Array();
for (let z in params.Listeners) {
let obj = new Listener();
obj.deserialize(params.Listeners[z]);
this.Listeners.push(obj);
}
}
this.TotalCount = 'TotalCount' in params ? params.TotalCount : null;
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* StartInstances response structure.
* @class
*/
class StartInstancesResponse extends AbstractModel {
constructor(){
super();
/**
* The unique request ID, which is returned for each request. RequestId is required for locating a problem.
* @type {string || null}
*/
this.RequestId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* CreateVpc response structure.
* @class
*/
class CreateVpcResponse extends AbstractModel {
constructor(){
super();
/**
* VPC object.
* @type {VpcInfo || null}
*/
this.Vpc = null;
/**
* The unique request ID, which is returned for each request. RequestId is required for locating a problem.
* @type {string || null}
*/
this.RequestId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
if (params.Vpc) {
let obj = new VpcInfo();
obj.deserialize(params.Vpc)
this.Vpc = obj;
}
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* Secondary CIDR information of the VPC.
* @class
*/
class AssistantCidr extends AbstractModel {
constructor(){
super();
/**
* VPC instance ID, such as `vpc-6v2ht8q5`
* @type {string || null}
*/
this.VpcId = null;
/**
* Secondary CIDR, such as `172.16.0.0/16`
* @type {string || null}
*/
this.CidrBlock = null;
/**
* Secondary CIDR block type. 0: general secondary CIDR block; 1: container secondary CIDR block. Default value: 0.
* @type {number || null}
*/
this.AssistantType = null;
/**
* Subnets divided by the secondary CIDR block.
Note: this field may return null, indicating that no valid values can be obtained.
Note: this field may return null, indicating that no valid values can be obtained.
* @type {Array.<Subnet> || null}
*/
this.SubnetSet = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.VpcId = 'VpcId' in params ? params.VpcId : null;
this.CidrBlock = 'CidrBlock' in params ? params.CidrBlock : null;
this.AssistantType = 'AssistantType' in params ? params.AssistantType : null;
if (params.SubnetSet) {
this.SubnetSet = new Array();
for (let z in params.SubnetSet) {
let obj = new Subnet();
obj.deserialize(params.SubnetSet[z]);
this.SubnetSet.push(obj);
}
}
}
}
/**
* ModifyModuleIpDirect request structure.
* @class
*/
class ModifyModuleIpDirectRequest extends AbstractModel {
constructor(){
super();
/**
* Module ID.
* @type {string || null}
*/
this.ModuleId = null;
/**
* Whether to disable IP direct access. Valid values:
true: yes
false: no
* @type {boolean || null}
*/
this.CloseIpDirect = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.ModuleId = 'ModuleId' in params ? params.ModuleId : null;
this.CloseIpDirect = 'CloseIpDirect' in params ? params.CloseIpDirect : null;
}
}
/**
* Instance ENI IP information array
* @class
*/
class InstanceNetworkInfo extends AbstractModel {
constructor(){
super();
/**
* Private and public IP information of the instance.
Note: this field may return null, indicating that no valid values can be obtained.
* @type {Array.<AddressInfo> || null}
*/
this.AddressInfoSet = null;
/**
* ENI ID.
* @type {string || null}
*/
this.NetworkInterfaceId = null;
/**
* ENI name.
Note: this field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.NetworkInterfaceName = null;
/**
* Primary ENI attribute. Valid values: true: primary ENI; false: secondary ENI.
* @type {boolean || null}
*/
this.Primary = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
if (params.AddressInfoSet) {
this.AddressInfoSet = new Array();
for (let z in params.AddressInfoSet) {
let obj = new AddressInfo();
obj.deserialize(params.AddressInfoSet[z]);
this.AddressInfoSet.push(obj);
}
}
this.NetworkInterfaceId = 'NetworkInterfaceId' in params ? params.NetworkInterfaceId : null;
this.NetworkInterfaceName = 'NetworkInterfaceName' in params ? params.NetworkInterfaceName : null;
this.Primary = 'Primary' in params ? params.Primary : null;
}
}
/**
* ResetInstancesMaxBandwidth response structure.
* @class
*/
class ResetInstancesMaxBandwidthResponse extends AbstractModel {
constructor(){
super();
/**
* The unique request ID, which is returned for each request. RequestId is required for locating a problem.
* @type {string || null}
*/
this.RequestId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* Instance number of the node
* @class
*/
class NodeInstanceNum extends AbstractModel {
constructor(){
super();
/**
* Number of nodes
* @type {number || null}
*/
this.NodeNum = null;
/**
* Number of instances
* @type {number || null}
*/
this.InstanceNum = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.NodeNum = 'NodeNum' in params ? params.NodeNum : null;
this.InstanceNum = 'InstanceNum' in params ? params.InstanceNum : null;
}
}
/**
* DeleteListener request structure.
* @class
*/
class DeleteListenerRequest extends AbstractModel {
constructor(){
super();
/**
* CLB instance ID
* @type {string || null}
*/
this.LoadBalancerId = null;
/**
* ID of the listener to be deleted
* @type {string || null}
*/
this.ListenerId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.LoadBalancerId = 'LoadBalancerId' in params ? params.LoadBalancerId : null;
this.ListenerId = 'ListenerId' in params ? params.ListenerId : null;
}
}
/**
* StopInstances response structure.
* @class
*/
class StopInstancesResponse extends AbstractModel {
constructor(){
super();
/**
* The unique request ID, which is returned for each request. RequestId is required for locating a problem.
* @type {string || null}
*/
this.RequestId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* CLB information such as bandwidth limit.
* @class
*/
class LoadBalancerInternetAccessible extends AbstractModel {
constructor(){
super();
/**
* Maximum outbound bandwidth in Mbps. Default value: 10.
* @type {number || null}
*/
this.InternetMaxBandwidthOut = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.InternetMaxBandwidthOut = 'InternetMaxBandwidthOut' in params ? params.InternetMaxBandwidthOut : null;
}
}
/**
* ResetRoutes request structure.
* @class
*/
class ResetRoutesRequest extends AbstractModel {
constructor(){
super();
/**
* Route table instance ID, such as `rtb-azd4dt1c`.
* @type {string || null}
*/
this.RouteTableId = null;
/**
* Route table name, which can contain up to 60 bytes.
* @type {string || null}
*/
this.RouteTableName = null;
/**
* Routing policy.
* @type {Array.<Route> || null}
*/
this.Routes = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.RouteTableId = 'RouteTableId' in params ? params.RouteTableId : null;
this.RouteTableName = 'RouteTableName' in params ? params.RouteTableName : null;
if (params.Routes) {
this.Routes = new Array();
for (let z in params.Routes) {
let obj = new Route();
obj.deserialize(params.Routes[z]);
this.Routes.push(obj);
}
}
}
}
/**
* Association relationships of the route table
* @class
*/
class RouteTableAssociation extends AbstractModel {
constructor(){
super();
/**
* Subnet instance ID
* @type {string || null}
*/
this.SubnetId = null;
/**
* Route table instance ID
* @type {string || null}
*/
this.RouteTableId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.SubnetId = 'SubnetId' in params ? params.SubnetId : null;
this.RouteTableId = 'RouteTableId' in params ? params.RouteTableId : null;
}
}
/**
* ModifyDefaultSubnet response structure.
* @class
*/
class ModifyDefaultSubnetResponse extends AbstractModel {
constructor(){
super();
/**
* The unique request ID, which is returned for each request. RequestId is required for locating a problem.
* @type {string || null}
*/
this.RequestId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* DescribeRouteTables response structure.
* @class
*/
class DescribeRouteTablesResponse extends AbstractModel {
constructor(){
super();
/**
* Number of eligible instances
* @type {number || null}
*/
this.TotalCount = null;
/**
* List of route tables
Note: this field may return null, indicating that no valid values can be obtained.
* @type {Array.<RouteTable> || null}
*/
this.RouteTableSet = null;
/**
* The unique request ID, which is returned for each request. RequestId is required for locating a problem.
* @type {string || null}
*/
this.RequestId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.TotalCount = 'TotalCount' in params ? params.TotalCount : null;
if (params.RouteTableSet) {
this.RouteTableSet = new Array();
for (let z in params.RouteTableSet) {
let obj = new RouteTable();
obj.deserialize(params.RouteTableSet[z]);
this.RouteTableSet.push(obj);
}
}
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* StopInstances request structure.
* @class
*/
class StopInstancesRequest extends AbstractModel {
constructor(){
super();
/**
* List of IDs of the instances to be shut down. You can request up to 100 instances in a region at a time.
* @type {Array.<string> || null}
*/
this.InstanceIdSet = null;
/**
* Whether to force shut down the instance after it failed to be shut down normally. Default value: false: no.
* @type {boolean || null}
*/
this.ForceStop = null;
/**
* Instance shutdown mode. Valid values:
SOFT_FIRST: perform a forced shutdown in case of a failure of the normal shutdown;
HARD: forced shutdown;
SOFT: Soft shutdown;
Default value: SOFT.
* @type {string || null}
*/
this.StopType = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.InstanceIdSet = 'InstanceIdSet' in params ? params.InstanceIdSet : null;
this.ForceStop = 'ForceStop' in params ? params.ForceStop : null;
this.StopType = 'StopType' in params ? params.StopType : null;
}
}
/**
* DetachNetworkInterface response structure.
* @class
*/
class DetachNetworkInterfaceResponse extends AbstractModel {
constructor(){
super();
/**
* The unique request ID, which is returned for each request. RequestId is required for locating a problem.
* @type {string || null}
*/
this.RequestId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* Image task
* @class
*/
class ImageTask extends AbstractModel {
constructor(){
super();
/**
* Image import status. Valid values: PENDING, PROCESSING, SUCCESS, FAILED
* @type {string || null}
*/
this.State = null;
/**
* Cause of import failure (FAILED)
Note: this field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.Message = null;
/**
* Image name
* @type {string || null}
*/
this.ImageName = null;
/**
* Creation time
* @type {string || null}
*/
this.CreateTime = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.State = 'State' in params ? params.State : null;
this.Message = 'Message' in params ? params.Message : null;
this.ImageName = 'ImageName' in params ? params.ImageName : null;
this.CreateTime = 'CreateTime' in params ? params.CreateTime : null;
}
}
/**
* ModifyListener request structure.
* @class
*/
class ModifyListenerRequest extends AbstractModel {
constructor(){
super();
/**
* CLB instance ID
* @type {string || null}
*/
this.LoadBalancerId = null;
/**
* CLB listener ID
* @type {string || null}
*/
this.ListenerId = null;
/**
* New listener name
* @type {string || null}
*/
this.ListenerName = null;
/**
* Session persistence time in seconds. Value range: 30–3600. The default value is 0, indicating that session persistence is not enabled. This parameter is applicable only to TCP/UDP listeners.
* @type {number || null}
*/
this.SessionExpireTime = null;
/**
* Health check parameters
* @type {HealthCheck || null}
*/
this.HealthCheck = null;
/**
* Forwarding method of the listener. Valid values: WRR, LEAST_CONN.
They represent weighted round robin and least connections, respectively. Default value: WRR.
* @type {string || null}
*/
this.Scheduler = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.LoadBalancerId = 'LoadBalancerId' in params ? params.LoadBalancerId : null;
this.ListenerId = 'ListenerId' in params ? params.ListenerId : null;
this.ListenerName = 'ListenerName' in params ? params.ListenerName : null;
this.SessionExpireTime = 'SessionExpireTime' in params ? params.SessionExpireTime : null;
if (params.HealthCheck) {
let obj = new HealthCheck();
obj.deserialize(params.HealthCheck)
this.HealthCheck = obj;
}
this.Scheduler = 'Scheduler' in params ? params.Scheduler : null;
}
}
/**
* CreateImage request structure.
* @class
*/
class CreateImageRequest extends AbstractModel {
constructor(){
super();
/**
* Image name.
* @type {string || null}
*/
this.ImageName = null;
/**
* ID of the instance for which to make an image.
* @type {string || null}
*/
this.InstanceId = null;
/**
* Image description.
* @type {string || null}
*/
this.ImageDescription = null;
/**
* Whether to perform a forced shutdown to make an image. Valid values:
TRUE: yes
FALSE: no
Default value: FALSE.
* @type {string || null}
*/
this.ForcePoweroff = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.ImageName = 'ImageName' in params ? params.ImageName : null;
this.InstanceId = 'InstanceId' in params ? params.InstanceId : null;
this.ImageDescription = 'ImageDescription' in params ? params.ImageDescription : null;
this.ForcePoweroff = 'ForcePoweroff' in params ? params.ForcePoweroff : null;
}
}
/**
* Instance information.
* @class
*/
class Instance extends AbstractModel {
constructor(){
super();
/**
* Instance ID.
* @type {string || null}
*/
this.InstanceId = null;
/**
* Instance name, such as `ens-34241f3s`.
Note: this field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.InstanceName = null;
/**
* Instance status. Valid values:
PENDING: creating
LAUNCH_FAILED: failed to create
RUNNING: running
STOPPED: shut down
STARTING: starting
STOPPING: shutting down
REBOOTING: restarting
SHUTDOWN: to be terminated
TERMINATING: terminating.
* @type {string || null}
*/
this.InstanceState = null;
/**
* Information of the image currently used by the instance.
Note: this field may return null, indicating that no valid values can be obtained.
* @type {Image || null}
*/
this.Image = null;
/**
* Basic information of the current module of the instance.
Note: this field may return null, indicating that no valid values can be obtained.
* @type {SimpleModule || null}
*/
this.SimpleModule = null;
/**
* Location information of the instance.
Note: this field may return null, indicating that no valid values can be obtained.
* @type {Position || null}
*/
this.Position = null;
/**
* Network information of the instance.
Note: this field may return null, indicating that no valid values can be obtained.
* @type {Internet || null}
*/
this.Internet = null;
/**
* Configuration information of the instance.
Note: this field may return null, indicating that no valid values can be obtained.
* @type {InstanceTypeConfig || null}
*/
this.InstanceTypeConfig = null;
/**
* Instance creation time.
Note: this field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.CreateTime = null;
/**
* Instance tag information.
Note: this field may return null, indicating that no valid values can be obtained.
* @type {Array.<Tag> || null}
*/
this.TagSet = null;
/**
* Last operation on the instance.
Note: this field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.LatestOperation = null;
/**
* Result of the last operation on the instance.
Note: this field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.LatestOperationState = null;
/**
* Instance business status. Valid values:
NORMAL: normal
EXPIRED: expired
PROTECTIVELY_ISOLATED: isolated.
Note: this field may return null, indicating that no vali