tencentcloud-sdk-nodejs-intl-en
Version:
1,965 lines (1,653 loc) • 341 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");
/**
* Region details
* @class
*/
class RegionDetail extends AbstractModel {
constructor(){
super();
/**
* Region ID
* @type {string || null}
*/
this.RegionId = null;
/**
* Region name in Chinese or English
* @type {string || null}
*/
this.RegionName = null;
/**
* Region where the data center locates
* @type {string || null}
*/
this.RegionArea = null;
/**
* Name of the region where the data center locates
* @type {string || null}
*/
this.RegionAreaName = null;
/**
* Data center type. `dc`: data center; `ec`: edge server.
* @type {string || null}
*/
this.IDCType = null;
/**
* Feature bitmap. Valid values:
`0`: the feature is not supported;
`1`: the feature is supported.
Each bit in the bitmap represents a feature:
1st bit: layer-4 acceleration;
2nd bit: layer-7 acceleration;
3rd bit: HTTP3 access;
4th bit: IPv6;
5th bit: dedicated BGP access;
6th bit: non-BGP access;
7th bit: QoS acceleration.
Note: this field may return `null`, indicating that no valid values can be obtained.
* @type {number || null}
*/
this.FeatureBitmap = null;
/**
* Network support
Note: This field may return null, indicating that no valid values can be obtained.
* @type {SupportFeature || null}
*/
this.SupportFeature = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.RegionId = 'RegionId' in params ? params.RegionId : null;
this.RegionName = 'RegionName' in params ? params.RegionName : null;
this.RegionArea = 'RegionArea' in params ? params.RegionArea : null;
this.RegionAreaName = 'RegionAreaName' in params ? params.RegionAreaName : null;
this.IDCType = 'IDCType' in params ? params.IDCType : null;
this.FeatureBitmap = 'FeatureBitmap' in params ? params.FeatureBitmap : null;
if (params.SupportFeature) {
let obj = new SupportFeature();
obj.deserialize(params.SupportFeature)
this.SupportFeature = obj;
}
}
}
/**
* DescribeUDPListeners request structure.
* @class
*/
class DescribeUDPListenersRequest extends AbstractModel {
constructor(){
super();
/**
* Filter condition that filters by connection ID. You must specify at least one filter condition (ProxyId/GroupId/ListenerId), but ProxyId and GroupId cannot be set at the same time.
* @type {string || null}
*/
this.ProxyId = null;
/**
* Filter condition. Exact query by listener IDs.
When ProxyId is specified, the listener will be checked whether it belongs to the connection.
When GroupId is specified, the listener will be checked whether it belongs to the connection group.
* @type {string || null}
*/
this.ListenerId = null;
/**
* Filter condition. Exact query by listener names.
* @type {string || null}
*/
this.ListenerName = null;
/**
* Filter condition. Exact query by listener ports.
* @type {number || null}
*/
this.Port = null;
/**
* Offset. The default value is 0.
* @type {number || null}
*/
this.Offset = null;
/**
* Quantity limit. The default value is 20.
* @type {number || null}
*/
this.Limit = null;
/**
* Filter condition that filters by connection group ID. You must specify at least one filter condition (ProxyId/GroupId/ListenerId), but ProxyId and GroupId cannot be set at the same time.
* @type {string || null}
*/
this.GroupId = null;
/**
* Filter condition. It supports fuzzy query by ports or listener names. This parameter cannot be used with `ListenerName` or `Port`.
* @type {string || null}
*/
this.SearchValue = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.ProxyId = 'ProxyId' in params ? params.ProxyId : null;
this.ListenerId = 'ListenerId' in params ? params.ListenerId : null;
this.ListenerName = 'ListenerName' in params ? params.ListenerName : null;
this.Port = 'Port' in params ? params.Port : null;
this.Offset = 'Offset' in params ? params.Offset : null;
this.Limit = 'Limit' in params ? params.Limit : null;
this.GroupId = 'GroupId' in params ? params.GroupId : null;
this.SearchValue = 'SearchValue' in params ? params.SearchValue : null;
}
}
/**
* Network support
* @class
*/
class SupportFeature extends AbstractModel {
constructor(){
super();
/**
* Supported network types. `normal`: General BGP; `cn2`: Dedicated BGP; `triple`: Non-BGP (provided by the top 3 ISPs in the Chinese mainland); `secure_eip`: Custom security EIPs.
* @type {Array.<string> || null}
*/
this.NetworkType = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.NetworkType = 'NetworkType' in params ? params.NetworkType : null;
}
}
/**
* DeleteProxyGroup request structure.
* @class
*/
class DeleteProxyGroupRequest extends AbstractModel {
constructor(){
super();
/**
* ID of the connection group to be deleted.
* @type {string || null}
*/
this.GroupId = null;
/**
* Whether to enable forced deletion. Valid values:
`0`: No;
`1`: Yes.
Default value: 0. If there is a connection or listener/rule bound to an origin server in the connection group and `Force` is 0, the operation will return a failure.
* @type {number || null}
*/
this.Force = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.GroupId = 'GroupId' in params ? params.GroupId : null;
this.Force = 'Force' in params ? params.Force : null;
}
}
/**
* DescribeResourcesByTag request structure.
* @class
*/
class DescribeResourcesByTagRequest extends AbstractModel {
constructor(){
super();
/**
* Tag key.
* @type {string || null}
*/
this.TagKey = null;
/**
* Tag value.
* @type {string || null}
*/
this.TagValue = null;
/**
* Resource types:
Proxy (connection);
ProxyGroup (connection group);
RealServer (origin server).
If this field is not specified, all resources with the tag will be queried.
* @type {string || null}
*/
this.ResourceType = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.TagKey = 'TagKey' in params ? params.TagKey : null;
this.TagValue = 'TagValue' in params ? params.TagValue : null;
this.ResourceType = 'ResourceType' in params ? params.ResourceType : null;
}
}
/**
* DescribeListenerStatistics request structure.
* @class
*/
class DescribeListenerStatisticsRequest extends AbstractModel {
constructor(){
super();
/**
* Listener ID
* @type {string || null}
*/
this.ListenerId = null;
/**
* Start time
* @type {string || null}
*/
this.StartTime = null;
/**
* End time
* @type {string || null}
*/
this.EndTime = null;
/**
* Statistical metric name list. It supports:["InBandwidth", "OutBandwidth", "Concurrent", "InPackets", "OutPackets"]
* @type {Array.<string> || null}
*/
this.MetricNames = null;
/**
* Monitoring granularity. It currently supports: 300, 3,600, and 86,400. Unit: seconds.
Time range: <= 1 day, supported minimum granularity: 300 seconds;
Time range: <= 7 days, supported minimum granularity:3,600 seconds;
Time range: > 7 days, supported minimum granularity:86,400 seconds;
* @type {number || null}
*/
this.Granularity = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.ListenerId = 'ListenerId' in params ? params.ListenerId : null;
this.StartTime = 'StartTime' in params ? params.StartTime : null;
this.EndTime = 'EndTime' in params ? params.EndTime : null;
this.MetricNames = 'MetricNames' in params ? params.MetricNames : null;
this.Granularity = 'Granularity' in params ? params.Granularity : null;
}
}
/**
* DescribeProxyAndStatisticsListeners response structure.
* @class
*/
class DescribeProxyAndStatisticsListenersResponse extends AbstractModel {
constructor(){
super();
/**
* Information of connections that the statistics can be derived from
* @type {Array.<ProxySimpleInfo> || null}
*/
this.ProxySet = null;
/**
* Quantity of connections
* @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.ProxySet) {
this.ProxySet = new Array();
for (let z in params.ProxySet) {
let obj = new ProxySimpleInfo();
obj.deserialize(params.ProxySet[z]);
this.ProxySet.push(obj);
}
}
this.TotalCount = 'TotalCount' in params ? params.TotalCount : null;
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* DeleteRule request structure.
* @class
*/
class DeleteRuleRequest extends AbstractModel {
constructor(){
super();
/**
* Layer-7 listener ID
* @type {string || null}
*/
this.ListenerId = null;
/**
* Forwarding rule ID
* @type {string || null}
*/
this.RuleId = null;
/**
* Whether to make a forced deletion of forwarding rules that have been bound to origin servers. 0: no; 1: yes.
* @type {number || null}
*/
this.Force = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.ListenerId = 'ListenerId' in params ? params.ListenerId : null;
this.RuleId = 'RuleId' in params ? params.RuleId : null;
this.Force = 'Force' in params ? params.Force : null;
}
}
/**
* BindRuleRealServers request structure.
* @class
*/
class BindRuleRealServersRequest extends AbstractModel {
constructor(){
super();
/**
* Forwarding rule ID
* @type {string || null}
*/
this.RuleId = null;
/**
* An information list of the origin servers to bind.
If there are origin servers bound already, they will be replaced by this new origin server list.
If this field is empty, it indicates unbinding all origin servers of this rule.
If the origin server scheduling policy type of this rule is weighted round robin, you need to enter `RealServerWeight`, i.e., the origin server weight. If this field is left empty or for other scheduling types, the default origin server weight is 1.
* @type {Array.<RealServerBindSetReq> || null}
*/
this.RealServerBindSet = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.RuleId = 'RuleId' in params ? params.RuleId : null;
if (params.RealServerBindSet) {
this.RealServerBindSet = new Array();
for (let z in params.RealServerBindSet) {
let obj = new RealServerBindSetReq();
obj.deserialize(params.RealServerBindSet[z]);
this.RealServerBindSet.push(obj);
}
}
}
}
/**
* DescribeHTTPSListeners response structure.
* @class
*/
class DescribeHTTPSListenersResponse extends AbstractModel {
constructor(){
super();
/**
* Quantity of listeners
* @type {number || null}
*/
this.TotalCount = null;
/**
* HTTPS listener list
* @type {Array.<HTTPSListener> || null}
*/
this.ListenerSet = 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.ListenerSet) {
this.ListenerSet = new Array();
for (let z in params.ListenerSet) {
let obj = new HTTPSListener();
obj.deserialize(params.ListenerSet[z]);
this.ListenerSet.push(obj);
}
}
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* ModifyProxiesProject request structure.
* @class
*/
class ModifyProxiesProjectRequest extends AbstractModel {
constructor(){
super();
/**
* The target project ID.
* @type {number || null}
*/
this.ProjectId = null;
/**
* ID of one or multiple connections to be operated; It’s an old parameter, please switch to ProxyIds.
* @type {Array.<string> || null}
*/
this.InstanceIds = null;
/**
* A unique string supplied by the client to ensure that the request is idempotent. Its maximum length is 64 ASCII characters. If this parameter is not specified, the idem-potency of the request cannot be guaranteed.
For more information, please see How to Ensure Idempotence.
* @type {string || null}
*/
this.ClientToken = null;
/**
* ID of one or multiple connections to be operated; It’s a new parameter.
* @type {Array.<string> || null}
*/
this.ProxyIds = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.ProjectId = 'ProjectId' in params ? params.ProjectId : null;
this.InstanceIds = 'InstanceIds' in params ? params.InstanceIds : null;
this.ClientToken = 'ClientToken' in params ? params.ClientToken : null;
this.ProxyIds = 'ProxyIds' in params ? params.ProxyIds : null;
}
}
/**
* Custom error response configuration of a domain name
* @class
*/
class DomainErrorPageInfo extends AbstractModel {
constructor(){
super();
/**
* Configuration ID of a custom error response
* @type {string || null}
*/
this.ErrorPageId = null;
/**
* Listener ID
* @type {string || null}
*/
this.ListenerId = null;
/**
* Domain name
* @type {string || null}
*/
this.Domain = null;
/**
* Original error code
* @type {Array.<number> || null}
*/
this.ErrorNos = null;
/**
* New error code
Note: This field may return null, indicating that no valid values can be obtained.
* @type {number || null}
*/
this.NewErrorNo = null;
/**
* Response header to be cleared
Note: This field may return null, indicating that no valid values can be obtained.
* @type {Array.<string> || null}
*/
this.ClearHeaders = null;
/**
* Response header to be set
Note: This field may return null, indicating that no valid values can be obtained.
* @type {Array.<HttpHeaderParam> || null}
*/
this.SetHeaders = null;
/**
* Configured response body (excluding HTTP header)
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.Body = null;
/**
* Rule status. 0: success
Note: this field may return null, indicating that no valid value is obtained.
* @type {number || null}
*/
this.Status = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.ErrorPageId = 'ErrorPageId' in params ? params.ErrorPageId : null;
this.ListenerId = 'ListenerId' in params ? params.ListenerId : null;
this.Domain = 'Domain' in params ? params.Domain : null;
this.ErrorNos = 'ErrorNos' in params ? params.ErrorNos : null;
this.NewErrorNo = 'NewErrorNo' in params ? params.NewErrorNo : null;
this.ClearHeaders = 'ClearHeaders' in params ? params.ClearHeaders : null;
if (params.SetHeaders) {
this.SetHeaders = new Array();
for (let z in params.SetHeaders) {
let obj = new HttpHeaderParam();
obj.deserialize(params.SetHeaders[z]);
this.SetHeaders.push(obj);
}
}
this.Body = 'Body' in params ? params.Body : null;
this.Status = 'Status' in params ? params.Status : null;
}
}
/**
* List of acceleration regions in a connection group, including acceleration regions and their bandwidth and concurrence configuration.
* @class
*/
class AccessConfiguration extends AbstractModel {
constructor(){
super();
/**
* Acceleration region.
* @type {string || null}
*/
this.AccessRegion = null;
/**
* Connection bandwidth cap. Unit: Mbps.
* @type {number || null}
*/
this.Bandwidth = null;
/**
* Connection concurrence cap, which indicates the maximum number of simultaneous online connections. Unit: 10,000 connections.
* @type {number || null}
*/
this.Concurrent = null;
/**
* Network type. Valid values: `normal` (default), `cn2`
* @type {string || null}
*/
this.NetworkType = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.AccessRegion = 'AccessRegion' in params ? params.AccessRegion : null;
this.Bandwidth = 'Bandwidth' in params ? params.Bandwidth : null;
this.Concurrent = 'Concurrent' in params ? params.Concurrent : null;
this.NetworkType = 'NetworkType' in params ? params.NetworkType : null;
}
}
/**
* DescribeCertificateDetail request structure.
* @class
*/
class DescribeCertificateDetailRequest extends AbstractModel {
constructor(){
super();
/**
* Certificate ID
* @type {string || null}
*/
this.CertificateId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.CertificateId = 'CertificateId' in params ? params.CertificateId : null;
}
}
/**
* Resource information of the tag
* @class
*/
class TagResourceInfo extends AbstractModel {
constructor(){
super();
/**
* Resource types:
`Proxy`: Connection
`ProxyGroup`: Connection group
`RealServer`: Origin server
* @type {string || null}
*/
this.ResourceType = null;
/**
* Instance ID
* @type {string || null}
*/
this.ResourceId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.ResourceType = 'ResourceType' in params ? params.ResourceType : null;
this.ResourceId = 'ResourceId' in params ? params.ResourceId : null;
}
}
/**
* SetAuthentication response structure.
* @class
*/
class SetAuthenticationResponse 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;
}
}
/**
* DescribeProxyGroupStatistics response structure.
* @class
*/
class DescribeProxyGroupStatisticsResponse extends AbstractModel {
constructor(){
super();
/**
* Connection group statistics
* @type {Array.<MetricStatisticsInfo> || null}
*/
this.StatisticsData = 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.StatisticsData) {
this.StatisticsData = new Array();
for (let z in params.StatisticsData) {
let obj = new MetricStatisticsInfo();
obj.deserialize(params.StatisticsData[z]);
this.StatisticsData.push(obj);
}
}
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* DescribeResourcesByTag response structure.
* @class
*/
class DescribeResourcesByTagResponse extends AbstractModel {
constructor(){
super();
/**
* Total resources
* @type {number || null}
*/
this.TotalCount = null;
/**
* Resource list corresponding to the tag
* @type {Array.<TagResourceInfo> || null}
*/
this.ResourceSet = 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.ResourceSet) {
this.ResourceSet = new Array();
for (let z in params.ResourceSet) {
let obj = new TagResourceInfo();
obj.deserialize(params.ResourceSet[z]);
this.ResourceSet.push(obj);
}
}
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* ModifyGroupDomainConfig request structure.
* @class
*/
class ModifyGroupDomainConfigRequest extends AbstractModel {
constructor(){
super();
/**
* Connection group ID.
* @type {string || null}
*/
this.GroupId = null;
/**
* Default access IP or domain name of domain name resolution
* @type {string || null}
*/
this.DefaultDnsIp = null;
/**
* Nearest access region configuration.
* @type {Array.<AccessRegionDomainConf> || null}
*/
this.AccessRegionList = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.GroupId = 'GroupId' in params ? params.GroupId : null;
this.DefaultDnsIp = 'DefaultDnsIp' in params ? params.DefaultDnsIp : null;
if (params.AccessRegionList) {
this.AccessRegionList = new Array();
for (let z in params.AccessRegionList) {
let obj = new AccessRegionDomainConf();
obj.deserialize(params.AccessRegionList[z]);
this.AccessRegionList.push(obj);
}
}
}
}
/**
* Bandwidth price gradient
* @class
*/
class BandwidthPriceGradient extends AbstractModel {
constructor(){
super();
/**
* Bandwidth range.
* @type {Array.<number> || null}
*/
this.BandwidthRange = null;
/**
* Bandwidth unit price within the bandwidth range. Unit: CNY/Mbps/day.
* @type {number || null}
*/
this.BandwidthUnitPrice = null;
/**
* Discounted bandwidth price in CNY/Mbps/day.
* @type {number || null}
*/
this.DiscountBandwidthUnitPrice = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.BandwidthRange = 'BandwidthRange' in params ? params.BandwidthRange : null;
this.BandwidthUnitPrice = 'BandwidthUnitPrice' in params ? params.BandwidthUnitPrice : null;
this.DiscountBandwidthUnitPrice = 'DiscountBandwidthUnitPrice' in params ? params.DiscountBandwidthUnitPrice : null;
}
}
/**
* DescribeHTTPListeners request structure.
* @class
*/
class DescribeHTTPListenersRequest extends AbstractModel {
constructor(){
super();
/**
* Connection ID
* @type {string || null}
*/
this.ProxyId = null;
/**
* Filter condition. Exact query by listener IDs.
* @type {string || null}
*/
this.ListenerId = null;
/**
* Filter condition. Exact query by listener names.
* @type {string || null}
*/
this.ListenerName = null;
/**
* Filter condition. Exact query by listener ports.
* @type {number || null}
*/
this.Port = null;
/**
* Offset. The default value is 0.
* @type {number || null}
*/
this.Offset = null;
/**
* Quantity limit. The default value is 20.
* @type {number || null}
*/
this.Limit = null;
/**
* Filter condition. It supports fuzzy query by ports or listener names. This parameter cannot be used with `ListenerName` or `Port`.
* @type {string || null}
*/
this.SearchValue = null;
/**
* Connection group ID
* @type {string || null}
*/
this.GroupId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.ProxyId = 'ProxyId' in params ? params.ProxyId : null;
this.ListenerId = 'ListenerId' in params ? params.ListenerId : null;
this.ListenerName = 'ListenerName' in params ? params.ListenerName : null;
this.Port = 'Port' in params ? params.Port : null;
this.Offset = 'Offset' in params ? params.Offset : null;
this.Limit = 'Limit' in params ? params.Limit : null;
this.SearchValue = 'SearchValue' in params ? params.SearchValue : null;
this.GroupId = 'GroupId' in params ? params.GroupId : null;
}
}
/**
* DescribeBlackHeader request structure.
* @class
*/
class DescribeBlackHeaderRequest extends AbstractModel {
constructor(){
super();
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
}
}
/**
* ModifyRealServerName response structure.
* @class
*/
class ModifyRealServerNameResponse 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;
}
}
/**
* DescribeGroupDomainConfig response structure.
* @class
*/
class DescribeGroupDomainConfigResponse extends AbstractModel {
constructor(){
super();
/**
* Nearest access configuration list of domain name resolution.
* @type {Array.<DomainAccessRegionDict> || null}
*/
this.AccessRegionList = null;
/**
* Default accesses Ip.
* @type {string || null}
*/
this.DefaultDnsIp = null;
/**
* Connection group ID.
* @type {string || null}
*/
this.GroupId = null;
/**
* Total number of configuration of access regions.
* @type {number || null}
*/
this.AccessRegionCount = 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.AccessRegionList) {
this.AccessRegionList = new Array();
for (let z in params.AccessRegionList) {
let obj = new DomainAccessRegionDict();
obj.deserialize(params.AccessRegionList[z]);
this.AccessRegionList.push(obj);
}
}
this.DefaultDnsIp = 'DefaultDnsIp' in params ? params.DefaultDnsIp : null;
this.GroupId = 'GroupId' in params ? params.GroupId : null;
this.AccessRegionCount = 'AccessRegionCount' in params ? params.AccessRegionCount : null;
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* ModifyCertificate response structure.
* @class
*/
class ModifyCertificateResponse 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;
}
}
/**
* OpenSecurityPolicy request structure.
* @class
*/
class OpenSecurityPolicyRequest extends AbstractModel {
constructor(){
super();
/**
* ID of the connections requiring enabled security policies.
* @type {string || null}
*/
this.ProxyId = null;
/**
* Security policy ID
* @type {string || null}
*/
this.PolicyId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.ProxyId = 'ProxyId' in params ? params.ProxyId : null;
this.PolicyId = 'PolicyId' in params ? params.PolicyId : null;
}
}
/**
* DeleteDomainErrorPageInfo request structure.
* @class
*/
class DeleteDomainErrorPageInfoRequest extends AbstractModel {
constructor(){
super();
/**
* Unique ID of a custom error page. For more information, please see the response to CreateDomainErrorPageInfo.
* @type {string || null}
*/
this.ErrorPageId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.ErrorPageId = 'ErrorPageId' in params ? params.ErrorPageId : null;
}
}
/**
* DescribeListenerRealServers request structure.
* @class
*/
class DescribeListenerRealServersRequest extends AbstractModel {
constructor(){
super();
/**
* Listener ID
* @type {string || null}
*/
this.ListenerId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.ListenerId = 'ListenerId' in params ? params.ListenerId : null;
}
}
/**
* DescribeProxyGroupStatistics request structure.
* @class
*/
class DescribeProxyGroupStatisticsRequest extends AbstractModel {
constructor(){
super();
/**
* Connection group ID
* @type {string || null}
*/
this.GroupId = null;
/**
* Start time
* @type {string || null}
*/
this.StartTime = null;
/**
* End time
* @type {string || null}
*/
this.EndTime = null;
/**
* Statistical metric name list. Values: InBandwidth (inbound bandwidth); OutBandwidth (outbound bandwidth); Concurrent (concurrence); InPackets (inbound packets); OutPackets (outbound packets).
* @type {Array.<string> || null}
*/
this.MetricNames = null;
/**
* Monitoring granularity (in seconds). Valid values: 60s, 300s, 3,600s, 86,400s.
Time range: ≤ 1 day. Supported minimum granularity: 60 seconds;
Time range: ≤ 7 days. Supported minimum granularity: 3,600 seconds;
Time range: ≤ 30 days. Supported minimum granularity: 86,400 seconds;
* @type {number || null}
*/
this.Granularity = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.GroupId = 'GroupId' in params ? params.GroupId : null;
this.StartTime = 'StartTime' in params ? params.StartTime : null;
this.EndTime = 'EndTime' in params ? params.EndTime : null;
this.MetricNames = 'MetricNames' in params ? params.MetricNames : null;
this.Granularity = 'Granularity' in params ? params.Granularity : null;
}
}
/**
* DescribeHTTPSListeners request structure.
* @class
*/
class DescribeHTTPSListenersRequest extends AbstractModel {
constructor(){
super();
/**
* Filter condition. Connection ID.
* @type {string || null}
*/
this.ProxyId = null;
/**
* Filter condition. Exact query by listener IDs.
* @type {string || null}
*/
this.ListenerId = null;
/**
* Filter condition. Exact query by listener names.
* @type {string || null}
*/
this.ListenerName = null;
/**
* Filter condition. Exact query by listener ports.
* @type {number || null}
*/
this.Port = null;
/**
* Offset. The default value is 0
* @type {number || null}
*/
this.Offset = null;
/**
* Quantity limit. The default value is 20.
* @type {number || null}
*/
this.Limit = null;
/**
* Filter condition. It supports fuzzy query by ports or listener names.
* @type {string || null}
*/
this.SearchValue = null;
/**
* Connection group ID as a filter
* @type {string || null}
*/
this.GroupId = null;
/**
* Specifies whether to enable HTTP3. Valid values:
`0`: disable HTTP3;
`1`: enable HTTP3.
Note: If HTTP3 is enabled for a connection, the listener will use the port that is originally accessed to UDP, and a UDP listener with the same port cannot be created.
After the connection is created, you cannot change your HTTP3 setting.
* @type {number || null}
*/
this.Http3Supported = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.ProxyId = 'ProxyId' in params ? params.ProxyId : null;
this.ListenerId = 'ListenerId' in params ? params.ListenerId : null;
this.ListenerName = 'ListenerName' in params ? params.ListenerName : null;
this.Port = 'Port' in params ? params.Port : null;
this.Offset = 'Offset' in params ? params.Offset : null;
this.Limit = 'Limit' in params ? params.Limit : null;
this.SearchValue = 'SearchValue' in params ? params.SearchValue : null;
this.GroupId = 'GroupId' in params ? params.GroupId : null;
this.Http3Supported = 'Http3Supported' in params ? params.Http3Supported : null;
}
}
/**
* DescribeAccessRegionsByDestRegion response structure.
* @class
*/
class DescribeAccessRegionsByDestRegionResponse extends AbstractModel {
constructor(){
super();
/**
* The number of available acceleration regions
* @type {number || null}
*/
this.TotalCount = null;
/**
* List of available acceleration region information
* @type {Array.<AccessRegionDetial> || null}
*/
this.AccessRegionSet = 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.AccessRegionSet) {
this.AccessRegionSet = new Array();
for (let z in params.AccessRegionSet) {
let obj = new AccessRegionDetial();
obj.deserialize(params.AccessRegionSet[z]);
this.AccessRegionSet.push(obj);
}
}
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* DescribeCountryAreaMapping request structure.
* @class
*/
class DescribeCountryAreaMappingRequest extends AbstractModel {
constructor(){
super();
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
}
}
/**
* CheckProxyCreate response structure.
* @class
*/
class CheckProxyCreateResponse extends AbstractModel {
constructor(){
super();
/**
* Queries whether a connection with the specified configuration can be created. 1: yes; 0: no.
* @type {number || null}
*/
this.CheckFlag = 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.CheckFlag = 'CheckFlag' in params ? params.CheckFlag : null;
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* ModifyCertificate request structure.
* @class
*/
class ModifyCertificateRequest extends AbstractModel {
constructor(){
super();
/**
* Listener instance ID
* @type {string || null}
*/
this.ListenerId = null;
/**
* Domain name whose certificate needs to be modified
* @type {string || null}
*/
this.Domain = null;
/**
* New server certificate ID:
If CertificateId=default, using the listener certificate.
* @type {string || null}
*/
this.CertificateId = null;
/**
* New client certificate ID:
If ClientCertificateId=default, using the listener certificate.
This parameter is required only when the mutual authentication is adopted.
* @type {string || null}
*/
this.ClientCertificateId = null;
/**
* List of new IDs of multiple client certificates, where:
This parameter or the `ClientCertificateId` parameter is required for mutual authentication only.
* @type {Array.<string> || null}
*/
this.PolyClientCertificateIds = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.ListenerId = 'ListenerId' in params ? params.ListenerId : null;
this.Domain = 'Domain' in params ? params.Domain : null;
this.CertificateId = 'CertificateId' in params ? params.CertificateId : null;
this.ClientCertificateId = 'ClientCertificateId' in params ? params.ClientCertificateId : null;
this.PolyClientCertificateIds = 'PolyClientCertificateIds' in params ? params.PolyClientCertificateIds : null;
}
}
/**
* DestroyProxies request structure.
* @class
*/
class DestroyProxiesRequest extends AbstractModel {
constructor(){
super();
/**
* The identifier for forced deletion
1: this connection list is deleted forcibly regardless of whether the origin server has been bound.
0: this connection list cannot be deleted if the origin server has been bound.
If this identifier is 0, the deletion can be performed only when all the connections have not been bound to any origin servers.
* @type {number || null}
*/
this.Force = null;
/**
* List of connection instance IDs; It's an old parameter, please switch to ProxyIds.
* @type {Array.<string> || null}
*/
this.InstanceIds = null;
/**
* A string used to ensure the idempotency of the request, which is generated by the user and must be unique to each request. The maximum length is 64 ASCII characters. If this parameter is not specified, the idempotency of the request cannot be guaranteed.
For more information, please see How to Ensure Idempotence.
* @type {string || null}
*/
this.ClientToken = null;
/**
* List of connection instance IDs; It's a new parameter.
* @type {Array.<string> || null}
*/
this.ProxyIds = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.Force = 'Force' in params ? params.Force : null;
this.InstanceIds = 'InstanceIds' in params ? params.InstanceIds : null;
this.ClientToken = 'ClientToken' in params ? params.ClientToken : null;
this.ProxyIds = 'ProxyIds' in params ? params.ProxyIds : null;
}
}
/**
* DescribeRules response structure.
* @class
*/
class DescribeRulesResponse extends AbstractModel {
constructor(){
super();
/**
* Rule information list classified by domain name type
* @type {Array.<DomainRuleSet> || null}
*/
this.DomainRuleSet = null;
/**
* Total quantity of domain names under this listener
* @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.DomainRuleSet) {
this.DomainRuleSet = new Array();
for (let z in params.DomainRuleSet) {
let obj = new DomainRuleSet();
obj.deserialize(params.DomainRuleSet[z]);
this.DomainRuleSet.push(obj);
}
}
this.TotalCount = 'TotalCount' in params ? params.TotalCount : null;
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* DescribeProxies response structure.
* @class
*/
class DescribeProxiesResponse extends AbstractModel {
constructor(){
super();
/**
* Number of connections.
* @type {number || null}
*/
this.TotalCount = null;
/**
* Connection instance information list; It’s an old parameter, please switch to ProxySet.
* @type {Array.<ProxyInfo> || null}
*/
this.InstanceSet = null;
/**
* Connection instance information list; It’s a new parameter.
* @type {Array.<ProxyInfo> || null}
*/
this.ProxySet = 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.InstanceSet) {
this.InstanceSet = new Array();
for (let z in params.InstanceSet) {
let obj = new ProxyInfo();
obj.deserialize(params.InstanceSet[z]);
this.InstanceSet.push(obj);
}
}
if (params.ProxySet) {
this.ProxySet = new Array();
for (let z in params.ProxySet) {
let obj = new ProxyInfo();
obj.deserialize(params.ProxySet[z]);
this.ProxySet.push(obj);
}
}
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* CreateRule response structure.
* @class
*/
class CreateRuleResponse extends AbstractModel {
constructor(){
super();
/**
* The ID of the successfully created forwarding rule
* @type {string || null}
*/
this.RuleId = 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.RuleId = 'RuleId' in params ? params.RuleId : null;
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* ModifyRealServerName request structure.
* @class
*/
class ModifyRealServerNameRequest extends AbstractModel {
constructor(){
super();
/**
* Origin server name
* @type {string || null}
*/
this.RealServerName = null;
/**
* Origin server ID
* @type {string || null}
*/
this.RealServerId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.RealServerName = 'RealServerName' in params ? params.RealServerName : null;
this.RealServerId = 'RealServerId' in params ? params.RealServerId : null;
}
}
/**
* ModifyGroupDomainConfig response structure.
* @class
*/
class ModifyGroupDomainConfigResponse 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;
}
}
/**
* DeleteProxyGroup response structure.
* @class
*/
class DeleteProxyGroupResponse 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;
}
}
/**
* CreateDomainErrorPageInfo response structure.
* @class
*/
class CreateDomainErrorPageInfoResponse extends AbstractModel {
constructor(){
super();
/**
* Configuration ID of a custom error response
* @type {string || null}
*/
this.ErrorPageId = 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.ErrorPageId = 'ErrorPageId' in params ? params.ErrorPageId : null;