UNPKG

tencentcloud-sdk-nodejs-intl-en

Version:
1,958 lines (1,642 loc) • 61.9 kB
/* * Copyright (c) 2018 Tencent. 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"); /** * TerminateInstances request structure. * @class */ class TerminateInstancesRequest extends AbstractModel { constructor(){ super(); /** * Instance ID list. Maximum number of IDs: 100. * @type {Array.<string> || null} */ this.InstanceIds = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.InstanceIds = 'InstanceIds' in params ? params.InstanceIds : null; } } /** * DescribeInstanceTypes response structure. * @class */ class DescribeInstanceTypesResponse extends AbstractModel { constructor(){ super(); /** * Model quota list. * @type {Array.<InstanceTypeQuota> || null} */ this.InstanceTypeQuotaSet = null; /** * Number of returned records. * @type {number || null} */ this.TotalCount = null; /** * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } if (params.InstanceTypeQuotaSet) { this.InstanceTypeQuotaSet = new Array(); for (let z in params.InstanceTypeQuotaSet) { let obj = new InstanceTypeQuota(); obj.deserialize(params.InstanceTypeQuotaSet[z]); this.InstanceTypeQuotaSet.push(obj); } } this.TotalCount = 'TotalCount' in params ? params.TotalCount : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * DescribePrivateNetworkInstances request structure. * @class */ class DescribePrivateNetworkInstancesRequest extends AbstractModel { constructor(){ super(); /** * Private network instance Id * @type {string || null} */ this.NetworkInstanceId = null; /** * New instance name * @type {string || null} */ this.NetworkInstanceName = null; /** * Availability zone ID. * @type {string || null} */ this.ZoneId = null; /** * Pagination offset, default 0 * @type {number || null} */ this.Offset = null; /** * Number of items per page. Default 20. Maximum 100. * @type {number || null} */ this.Limit = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.NetworkInstanceId = 'NetworkInstanceId' in params ? params.NetworkInstanceId : null; this.NetworkInstanceName = 'NetworkInstanceName' in params ? params.NetworkInstanceName : null; this.ZoneId = 'ZoneId' in params ? params.ZoneId : null; this.Offset = 'Offset' in params ? params.Offset : null; this.Limit = 'Limit' in params ? params.Limit : null; } } /** * DescribePublicNetworkInstances response structure. * @class */ class DescribePublicNetworkInstancesResponse extends AbstractModel { constructor(){ super(); /** * Total number of public network instances * @type {number || null} */ this.TotalCount = null; /** * public network instance collection * @type {Array.<PublicNetworkInstanceInfo> || null} */ this.PublicNetworkInstanceSet = null; /** * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). 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.PublicNetworkInstanceSet) { this.PublicNetworkInstanceSet = new Array(); for (let z in params.PublicNetworkInstanceSet) { let obj = new PublicNetworkInstanceInfo(); obj.deserialize(params.PublicNetworkInstanceSet[z]); this.PublicNetworkInstanceSet.push(obj); } } this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * DeletePublicNetworkInstance request structure. * @class */ class DeletePublicNetworkInstanceRequest extends AbstractModel { constructor(){ super(); /** * Public network instance ID * @type {string || null} */ this.NetworkInstanceId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.NetworkInstanceId = 'NetworkInstanceId' in params ? params.NetworkInstanceId : null; } } /** * TerminateInstances response structure. * @class */ class TerminateInstancesResponse extends AbstractModel { constructor(){ super(); /** * List of instance IDs successfully terminated. * @type {Array.<string> || null} */ this.InstanceIdSet = null; /** * List of instances with termination failed (returned when partially successful). Note: This field may return null, indicating that no valid values can be obtained. * @type {Array.<FailedInstance> || null} */ this.FailedInstanceSet = null; /** * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.InstanceIdSet = 'InstanceIdSet' in params ? params.InstanceIdSet : null; if (params.FailedInstanceSet) { this.FailedInstanceSet = new Array(); for (let z in params.FailedInstanceSet) { let obj = new FailedInstance(); obj.deserialize(params.FailedInstanceSet[z]); this.FailedInstanceSet.push(obj); } } this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * CreateInstances request structure. * @class */ class CreateInstancesRequest extends AbstractModel { constructor(){ super(); /** * Availability zone code, such as ap-guangzhou-1. * @type {string || null} */ this.Zone = null; /** * Model specifications, such as BMS5.MEDIUM8. * @type {string || null} */ this.InstanceType = null; /** * Instance name. * @type {string || null} */ this.InstanceName = null; /** * Private network instance ID in the format of net-xxx. * @type {string || null} */ this.PrivateNetworkId = null; /** * Public network instance ID, in the format of net-xxx. * @type {string || null} */ this.PublicNetworkId = null; /** * Image ID, for example img-centos-7.9. * @type {string || null} */ this.ImageId = null; /** * Specify the quantity. Default is 1. Maximum is 50. * @type {number || null} */ this.InstanceCount = null; /** * Image version number. Only public images have the concept of version. * @type {string || null} */ this.VersionNumber = null; /** * Whether to enable public IPv6, default false. Enabled, the system will allocate an additional IPv6 address after assigning an IPv4 address. * @type {boolean || null} */ this.EnableIpv6 = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.Zone = 'Zone' in params ? params.Zone : null; this.InstanceType = 'InstanceType' in params ? params.InstanceType : null; this.InstanceName = 'InstanceName' in params ? params.InstanceName : null; this.PrivateNetworkId = 'PrivateNetworkId' in params ? params.PrivateNetworkId : null; this.PublicNetworkId = 'PublicNetworkId' in params ? params.PublicNetworkId : null; this.ImageId = 'ImageId' in params ? params.ImageId : null; this.InstanceCount = 'InstanceCount' in params ? params.InstanceCount : null; this.VersionNumber = 'VersionNumber' in params ? params.VersionNumber : null; this.EnableIpv6 = 'EnableIpv6' in params ? params.EnableIpv6 : null; } } /** * DescribeInstanceTypes request structure. * @class */ class DescribeInstanceTypesRequest extends AbstractModel { constructor(){ super(); /** * Availability zone code, such as ap-guangzhou-1. If not passed, return models under the account in all AZs. * @type {string || null} */ this.Zone = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.Zone = 'Zone' in params ? params.Zone : null; } } /** * Private network instance information * @class */ class PrivateNetworkInstanceInfo extends AbstractModel { constructor(){ super(); /** * Private network instance ID * @type {string || null} */ this.NetworkInstanceId = null; /** * Private network instance name * @type {string || null} */ this.NetworkInstanceName = null; /** * Availability zone ID. * @type {string || null} */ this.ZoneId = null; /** * Network address. * @type {string || null} */ this.Network = null; /** * Network mask * @type {number || null} */ this.Mask = null; /** * Number of associated physical machines * @type {number || null} */ this.ServerCount = null; /** * Available Ip quantity * @type {number || null} */ this.AvailableIpCount = null; /** * Creation time. * @type {string || null} */ this.CreatedAt = null; /** * Update time * @type {string || null} */ this.UpdatedAt = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.NetworkInstanceId = 'NetworkInstanceId' in params ? params.NetworkInstanceId : null; this.NetworkInstanceName = 'NetworkInstanceName' in params ? params.NetworkInstanceName : null; this.ZoneId = 'ZoneId' in params ? params.ZoneId : null; this.Network = 'Network' in params ? params.Network : null; this.Mask = 'Mask' in params ? params.Mask : null; this.ServerCount = 'ServerCount' in params ? params.ServerCount : null; this.AvailableIpCount = 'AvailableIpCount' in params ? params.AvailableIpCount : null; this.CreatedAt = 'CreatedAt' in params ? params.CreatedAt : null; this.UpdatedAt = 'UpdatedAt' in params ? params.UpdatedAt : null; } } /** * Public Ip information * @class */ class IpInfo extends AbstractModel { constructor(){ super(); /** * 10.100.0.20 * @type {string || null} */ this.Ip = null; /** * epn-asdfghjkl * @type {string || null} */ this.NetworkInstanceId = null; /** * epm-asdfghjkl * @type {string || null} */ this.InstanceId = null; /** * Unbound * @type {string || null} */ this.State = null; /** * Ipv4 * @type {string || null} */ this.Type = null; /** * 2026-04-07T00:00:00 * @type {string || null} */ this.CreatedAt = null; /** * 2026-04-07T00:00:00 * @type {string || null} */ this.UpdatedAt = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.Ip = 'Ip' in params ? params.Ip : null; this.NetworkInstanceId = 'NetworkInstanceId' in params ? params.NetworkInstanceId : null; this.InstanceId = 'InstanceId' in params ? params.InstanceId : null; this.State = 'State' in params ? params.State : null; this.Type = 'Type' in params ? params.Type : null; this.CreatedAt = 'CreatedAt' in params ? params.CreatedAt : null; this.UpdatedAt = 'UpdatedAt' in params ? params.UpdatedAt : null; } } /** * DeletePublicNetworkInstance response structure. * @class */ class DeletePublicNetworkInstanceResponse extends AbstractModel { constructor(){ super(); /** * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). 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; } } /** * ModifyPublicNetworkInstance response structure. * @class */ class ModifyPublicNetworkInstanceResponse extends AbstractModel { constructor(){ super(); /** * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). 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; } } /** * CreatePrivateNetworkInstance request structure. * @class */ class CreatePrivateNetworkInstanceRequest extends AbstractModel { constructor(){ super(); /** * New instance name * @type {string || null} */ this.NetworkInstanceName = null; /** * Availability zone ID. * @type {string || null} */ this.ZoneId = null; /** * The network address (host bits must be all 0s) must fall into one of the following RFC 1918 private ranges: `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`. * @type {string || null} */ this.Network = null; /** * Mask digits. The upper limit is fixed at `28`, while the lower limit depends on the private segment it belongs to: `10.0.0.0/8` allows `8~28`, `172.16.0.0/12` allows `12~28`, `192.168.0.0/16` allows `16~28`. It must together form a valid network address with Network (host bits all set to 0). * @type {number || null} */ this.Mask = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.NetworkInstanceName = 'NetworkInstanceName' in params ? params.NetworkInstanceName : null; this.ZoneId = 'ZoneId' in params ? params.ZoneId : null; this.Network = 'Network' in params ? params.Network : null; this.Mask = 'Mask' in params ? params.Mask : null; } } /** * ModifyPrivateNetworkInstance request structure. * @class */ class ModifyPrivateNetworkInstanceRequest extends AbstractModel { constructor(){ super(); /** * Private network instance Id * @type {string || null} */ this.NetworkInstanceId = null; /** * New instance name * @type {string || null} */ this.NetworkInstanceName = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.NetworkInstanceId = 'NetworkInstanceId' in params ? params.NetworkInstanceId : null; this.NetworkInstanceName = 'NetworkInstanceName' in params ? params.NetworkInstanceName : null; } } /** * DescribeZones request structure. * @class */ class DescribeZonesRequest extends AbstractModel { constructor(){ super(); } /** * @private */ deserialize(params) { if (!params) { return; } } } /** * DescribePublicNetworkInstances request structure. * @class */ class DescribePublicNetworkInstancesRequest extends AbstractModel { constructor(){ super(); /** * Public network instance ID * @type {string || null} */ this.NetworkInstanceId = null; /** * Public network instance name * @type {string || null} */ this.NetworkInstanceName = null; /** * Availability zone ID. * @type {string || null} */ this.ZoneId = null; /** * Pagination offset, default 0 * @type {number || null} */ this.Offset = null; /** * Number of items per page. Default 20. Maximum 100. * @type {number || null} */ this.Limit = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.NetworkInstanceId = 'NetworkInstanceId' in params ? params.NetworkInstanceId : null; this.NetworkInstanceName = 'NetworkInstanceName' in params ? params.NetworkInstanceName : null; this.ZoneId = 'ZoneId' in params ? params.ZoneId : null; this.Offset = 'Offset' in params ? params.Offset : null; this.Limit = 'Limit' in params ? params.Limit : null; } } /** * Account model quota information in the availability zone, including availability zone, model detail and quota quantity. * @class */ class InstanceTypeQuota extends AbstractModel { constructor(){ super(); /** * Availability zone code. * @type {string || null} */ this.Zone = null; /** * Model specifications. * @type {string || null} */ this.InstanceType = null; /** * Model family. * @type {string || null} */ this.InstanceFamily = null; /** * Number of CPU cores. * @type {number || null} */ this.CpuCores = null; /** * CPU type. * @type {string || null} */ this.CpuType = null; /** * Memory size (GB). * @type {number || null} */ this.MemoryGb = null; /** * System disk type. * @type {string || null} */ this.SystemDiskType = null; /** * System disk size (GB). * @type {number || null} */ this.SystemDiskSize = null; /** * Number of system disks. * @type {number || null} */ this.SystemDiskCount = null; /** * Data disk type. * @type {string || null} */ this.DataDiskType = null; /** * Data disk size (GB). * @type {number || null} */ this.DataDiskSize = null; /** * Number of data disks. * @type {number || null} */ this.DataDiskCount = null; /** * Disk description string (backward compatibility). * @type {string || null} */ this.DiskType = null; /** * Network interface type. * @type {string || null} */ this.NetworkInterfaceType = null; /** * GPU type. Empty string if no GPU is available. * @type {string || null} */ this.GpuType = null; /** * Quota quantity. 0 indicates no restriction. * @type {number || null} */ this.Quota = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.Zone = 'Zone' in params ? params.Zone : null; this.InstanceType = 'InstanceType' in params ? params.InstanceType : null; this.InstanceFamily = 'InstanceFamily' in params ? params.InstanceFamily : null; this.CpuCores = 'CpuCores' in params ? params.CpuCores : null; this.CpuType = 'CpuType' in params ? params.CpuType : null; this.MemoryGb = 'MemoryGb' in params ? params.MemoryGb : null; this.SystemDiskType = 'SystemDiskType' in params ? params.SystemDiskType : null; this.SystemDiskSize = 'SystemDiskSize' in params ? params.SystemDiskSize : null; this.SystemDiskCount = 'SystemDiskCount' in params ? params.SystemDiskCount : null; this.DataDiskType = 'DataDiskType' in params ? params.DataDiskType : null; this.DataDiskSize = 'DataDiskSize' in params ? params.DataDiskSize : null; this.DataDiskCount = 'DataDiskCount' in params ? params.DataDiskCount : null; this.DiskType = 'DiskType' in params ? params.DiskType : null; this.NetworkInterfaceType = 'NetworkInterfaceType' in params ? params.NetworkInterfaceType : null; this.GpuType = 'GpuType' in params ? params.GpuType : null; this.Quota = 'Quota' in params ? params.Quota : null; } } /** * ModifyPublicNetworkInstance request structure. * @class */ class ModifyPublicNetworkInstanceRequest extends AbstractModel { constructor(){ super(); /** * Public network instance ID * @type {string || null} */ this.NetworkInstanceId = null; /** * New instance name * @type {string || null} */ this.NetworkInstanceName = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.NetworkInstanceId = 'NetworkInstanceId' in params ? params.NetworkInstanceId : null; this.NetworkInstanceName = 'NetworkInstanceName' in params ? params.NetworkInstanceName : null; } } /** * ReleasePublicIp request structure. * @class */ class ReleasePublicIpRequest extends AbstractModel { constructor(){ super(); /** * Public network instance ID (route publishing mode is STATIC) * @type {string || null} */ this.NetworkInstanceId = null; /** * Ip type to be released, enumeration value: ipv4, ipv6 * @type {string || null} */ this.Type = null; /** * List of Ip addresses to be released * @type {Array.<string> || null} */ this.IpList = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.NetworkInstanceId = 'NetworkInstanceId' in params ? params.NetworkInstanceId : null; this.Type = 'Type' in params ? params.Type : null; this.IpList = 'IpList' in params ? params.IpList : null; } } /** * DescribeInstances response structure. * @class */ class DescribeInstancesResponse extends AbstractModel { constructor(){ super(); /** * Instance detail list * @type {Array.<Instance> || null} */ this.InstanceSet = null; /** * Number of Eligible Instances * @type {number || null} */ this.TotalCount = null; /** * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } if (params.InstanceSet) { this.InstanceSet = new Array(); for (let z in params.InstanceSet) { let obj = new Instance(); obj.deserialize(params.InstanceSet[z]); this.InstanceSet.push(obj); } } this.TotalCount = 'TotalCount' in params ? params.TotalCount : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * DescribeInstances request structure. * @class */ class DescribeInstancesRequest extends AbstractModel { constructor(){ super(); /** * Instance ID list for filtering by instance ID * @type {Array.<string> || null} */ this.InstanceIds = null; /** * Instance name, supports fuzzy matching * @type {string || null} */ this.InstanceName = null; /** * Availability zone code for filtering instances in the specified availability zone * @type {string || null} */ this.Zone = null; /** * Instance status list for status filtering. Available values: allocating, running, isolating, isolated, terminating, error. * @type {Array.<string> || null} */ this.InstanceStatus = null; /** * Public IPv4 address list, used for filtering instances by public IP address * @type {Array.<string> || null} */ this.PublicIps = null; /** * Offset. Default value: 0 * @type {number || null} */ this.Offset = null; /** * Number of returned results. Default 20. Maximum 100. * @type {number || null} */ this.Limit = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.InstanceIds = 'InstanceIds' in params ? params.InstanceIds : null; this.InstanceName = 'InstanceName' in params ? params.InstanceName : null; this.Zone = 'Zone' in params ? params.Zone : null; this.InstanceStatus = 'InstanceStatus' in params ? params.InstanceStatus : null; this.PublicIps = 'PublicIps' in params ? params.PublicIps : null; this.Offset = 'Offset' in params ? params.Offset : null; this.Limit = 'Limit' in params ? params.Limit : null; } } /** * Public network ip range info, including cidr and gateway ip * @class */ class PublicNetworkSegment extends AbstractModel { constructor(){ super(); /** * Cidr of the subnet * @type {string || null} */ this.Cidr = null; /** * Gateway Ip * @type {string || null} */ this.Gateway = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.Cidr = 'Cidr' in params ? params.Cidr : null; this.Gateway = 'Gateway' in params ? params.Gateway : null; } } /** * ReleasePublicIp response structure. * @class */ class ReleasePublicIpResponse extends AbstractModel { constructor(){ super(); /** * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). 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; } } /** * DescribeZoneData response structure. * @class */ class DescribeZoneDataResponse extends AbstractModel { constructor(){ super(); /** * Stats, metrics inbw|outbw in Mbps * @type {Array.<SwitchData> || null} */ this.Data = null; /** * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } if (params.Data) { this.Data = new Array(); for (let z in params.Data) { let obj = new SwitchData(); obj.deserialize(params.Data[z]); this.Data.push(obj); } } this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * DeletePrivateNetworkInstance request structure. * @class */ class DeletePrivateNetworkInstanceRequest extends AbstractModel { constructor(){ super(); /** * Private network instance Id * @type {string || null} */ this.NetworkInstanceId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.NetworkInstanceId = 'NetworkInstanceId' in params ? params.NetworkInstanceId : null; } } /** * DescribePrivateNetworkInstances response structure. * @class */ class DescribePrivateNetworkInstancesResponse extends AbstractModel { constructor(){ super(); /** * Total number of private network instances * @type {number || null} */ this.TotalCount = null; /** * Private network instance set * @type {Array.<PrivateNetworkInstanceInfo> || null} */ this.PrivateNetworkInstanceSet = null; /** * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). 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.PrivateNetworkInstanceSet) { this.PrivateNetworkInstanceSet = new Array(); for (let z in params.PrivateNetworkInstanceSet) { let obj = new PrivateNetworkInstanceInfo(); obj.deserialize(params.PrivateNetworkInstanceSet[z]); this.PrivateNetworkInstanceSet.push(obj); } } this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * CreatePrivateNetworkInstance response structure. * @class */ class CreatePrivateNetworkInstanceResponse extends AbstractModel { constructor(){ super(); /** * Private network instance ID * @type {string || null} */ this.NetworkInstanceId = null; /** * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.NetworkInstanceId = 'NetworkInstanceId' in params ? params.NetworkInstanceId : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * ModifyInstanceAttribute request structure. * @class */ class ModifyInstanceAttributeRequest extends AbstractModel { constructor(){ super(); /** * Instance ID. * @type {string || null} */ this.InstanceId = null; /** * New instance name, 1-60 characters. Import at least one with NewPublicIp. * @type {string || null} */ this.InstanceName = null; /** * New public IP address (select from available IP addresses of the public network instance bound to the instance). Provide at least one of this or InstanceName. * @type {string || null} */ this.NewPublicIp = null; /** * IP type, ipv4 or ipv6. Default is ipv4. Valid only when NewPublicIp is specified. * @type {string || null} */ this.IpType = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.InstanceId = 'InstanceId' in params ? params.InstanceId : null; this.InstanceName = 'InstanceName' in params ? params.InstanceName : null; this.NewPublicIp = 'NewPublicIp' in params ? params.NewPublicIp : null; this.IpType = 'IpType' in params ? params.IpType : null; } } /** * ApplyPublicIps request structure. * @class */ class ApplyPublicIpsRequest extends AbstractModel { constructor(){ super(); /** * Public network instance ID (route publishing mode must be STATIC) * @type {string || null} */ this.NetworkInstanceId = null; /** * Apply for an Ip quantity, minimum is 1 * @type {number || null} */ this.Count = null; /** * Applied Ip type, enumeration value: ipv4, ipv6 * @type {string || null} */ this.Type = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.NetworkInstanceId = 'NetworkInstanceId' in params ? params.NetworkInstanceId : null; this.Count = 'Count' in params ? params.Count : null; this.Type = 'Type' in params ? params.Type : null; } } /** * DescribePublicIps response structure. * @class */ class DescribePublicIpsResponse extends AbstractModel { constructor(){ super(); /** * Total number of EIPs * @type {number || null} */ this.TotalCount = null; /** * Assigned public network IP address list * @type {Array.<IpInfo> || null} */ this.IpInfoSet = null; /** * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). 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.IpInfoSet) { this.IpInfoSet = new Array(); for (let z in params.IpInfoSet) { let obj = new IpInfo(); obj.deserialize(params.IpInfoSet[z]); this.IpInfoSet.push(obj); } } this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * DeletePrivateNetworkInstance response structure. * @class */ class DeletePrivateNetworkInstanceResponse extends AbstractModel { constructor(){ super(); /** * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). 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; } } /** * ModifyPrivateNetworkInstance response structure. * @class */ class ModifyPrivateNetworkInstanceResponse extends AbstractModel { constructor(){ super(); /** * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). 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; } } /** * ApplyPublicIps response structure. * @class */ class ApplyPublicIpsResponse extends AbstractModel { constructor(){ super(); /** * Assigned public network IP address list. * @type {Array.<string> || null} */ this.IpList = null; /** * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.IpList = 'IpList' in params ? params.IpList : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * Switch data * @class */ class SwitchData extends AbstractModel { constructor(){ super(); /** * UTC time * @type {string || null} */ this.Time = null; /** * Statistical value * @type {number || null} */ this.Value = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.Time = 'Time' in params ? params.Time : null; this.Value = 'Value' in params ? params.Value : null; } } /** * CreateInstances response structure. * @class */ class CreateInstancesResponse extends AbstractModel { constructor(){ super(); /** * List of successfully created instance IDs. * @type {Array.<string> || null} */ this.InstanceIdSet = null; /** * Count of failed instances. This field is returned only when partially failed, not returned when all successful. * @type {number || null} */ this.FailedCount = null; /** * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.InstanceIdSet = 'InstanceIdSet' in params ? params.InstanceIdSet : null; this.FailedCount = 'FailedCount' in params ? params.FailedCount : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * Describe physical machine instance information * @class */ class Instance extends AbstractModel { constructor(){ super(); /** * Instance ID. * @type {string || null} */ this.InstanceId = null; /** * Instance name. * @type {string || null} */ this.InstanceName = null; /** * Bound Physical Machine ID * @type {string || null} */ this.MachineId = null; /** * Model specifications * @type {string || null} */ this.InstanceType = null; /** * Availability zone code * @type {string || null} */ this.Zone = null; /** * Image ID * @type {string || null} */ this.ImageId = null; /** * Image version number * @type {string || null} */ this.VersionNumber = null; /** * Instance status, value range: allocating, running, isolating, isolated, terminating, error. * @type {string || null} */ this.InstanceStatus = null; /** * Operation status: normal, starting, stopping, stopped, rebooting. * @type {string || null} */ this.OperateStatus = null; /** * VPC ID * @type {string || null} */ this.PrivateNetworkId = null; /** * private IPv4 address * @type {string || null} */ this.PrivateIp = null; /** * private IPv6 address * @type {string || null} */ this.PrivateIpV6 = null; /** * Public network ID * @type {string || null} */ this.PublicNetworkId = null; /** * Public IPv4 address * @type {string || null} */ this.PublicIp = null; /** * Public IPv6 address * @type {string || null} */ this.PublicIpV6 = null; /** * Creation time, expressed according to the ISO8601 standard and using the UTC time. The format is YYYY-MM-DDThh:mm:ssZ. * @type {string || null} */ this.CreatedTime = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.InstanceId = 'InstanceId' in params ? params.InstanceId : null; this.InstanceName = 'InstanceName' in params ? params.InstanceName : null; this.MachineId = 'MachineId' in params ? params.MachineId : null; this.InstanceType = 'InstanceType' in params ? params.InstanceType : null; this.Zone = 'Zone' in params ? params.Zone : null; this.ImageId = 'ImageId' in params ? params.ImageId : null; this.VersionNumber = 'VersionNumber' in params ? params.VersionNumber : null; this.InstanceStatus = 'InstanceStatus' in params ? params.InstanceStatus : null; this.OperateStatus = 'OperateStatus' in params ? params.OperateStatus : null; this.PrivateNetworkId = 'PrivateNetworkId' in params ? params.PrivateNetworkId : null; this.PrivateIp = 'PrivateIp' in params ? params.PrivateIp : null; this.PrivateIpV6 = 'PrivateIpV6' in params ? params.PrivateIpV6 : null; this.PublicNetworkId = 'PublicNetworkId' in params ? params.PublicNetworkId : null; this.PublicIp = 'PublicIp' in params ? params.PublicIp : null; this.PublicIpV6 = 'PublicIpV6' in params ? params.PublicIpV6 : null; this.CreatedTime = 'CreatedTime' in params ? params.CreatedTime : null; } } /** * Cross-regional AZ information after aggregating. * @class */ class ZoneInfo extends AbstractModel { constructor(){ super(); /** * AZ ID. * @type {number || null} */ this.ZoneId = null; /** * Availability zone code. * @type {string || null} */ this.Zone = null; /** * Chinese Name of Availability Zone. * @type {string || null} */ this.ZoneName = null; /** * Availability zone English name. * @type {string || null} */ this.ZoneNameEn = null; /** * Region code. * @type {string || null} */ this.Region = null; /** * Area code * @type {string || null} */ this.Location = null; /** * Zone Name * @type {string || null} */ this.LocationName = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.ZoneId = 'ZoneId' in params ? params.ZoneId : null; this.Zone = 'Zone' in params ? params.Zone : null; this.ZoneName = 'ZoneName' in params ? params.ZoneName : null; this.ZoneNameEn = 'ZoneNameEn' in params ? params.ZoneNameEn : null; this.Region = 'Region' in params ? params.Region : null; this.Location = 'Location' in params ? params.Location : null; this.LocationName = 'LocationName' in params ? params.LocationName : null; } } /** * ModifyInstanceAttribute response structure. * @class */ class ModifyInstanceAttributeResponse extends AbstractModel { constructor(){ super(); /** * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). 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; } } /** * DescribeZones response structure. * @class */ class DescribeZonesResponse extends AbstractModel { constructor(){ super(); /** * Availability zone list of all regions. * @type {Array.<ZoneInfo> || null} */ this.ZoneSet = null; /** * Total number of availability zones. * @type {number || null} */ this.TotalCount = null; /** * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } if (params.ZoneSet) { this.ZoneSet = new Array(); for (let z in params.ZoneSet) { let obj = new ZoneInfo(); obj.deserialize(params.ZoneSet[z]); this.ZoneSet.push(obj); } } this.TotalCount = 'TotalCount' in params ? params.TotalCount : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * Public network instance info, including instance ID, availability zone ID, instance name, line, routing mode, etc. * @class */ class PublicNetworkInstanceInfo extends AbstractModel { constructor(){ super(); /** * Public network instance ID * @type {string || null} */ this.NetworkInstanceId = null; /** * Availability zone ID. * @type {string || null} */ this.ZoneId = null; /** * Public network instance name Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.NetworkInstanceName = null; /** * Bandwidth, Unit: Mbps Note: This field may return null, indicating that no valid values can be obtained. * @type {number || null} */ this.Bandwidth = null; /** * Line information * @type {string || null} */ this.Line = null; /** * Routing mode, enumeration value: STATIC, BGP, OSPF * @type {string || null} */ this.RouteMode = null; /** * Number of Associated Physical Servers * @type {number || null} */ this.ServerCount = null; /** * Applied Ipv4 quantity * @type {numbe