tencentcloud-sdk-nodejs-intl-en 3.0.491 → 3.0.494
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/tencentcloud/ckafka/v20190819/models.js +9 -1
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/dnspod/index.js +3 -0
- package/tencentcloud/dnspod/v20210323/dnspod_client.js +156 -0
- package/tencentcloud/dnspod/v20210323/index.js +4 -0
- package/tencentcloud/dnspod/v20210323/models.js +1186 -0
- package/tencentcloud/index.js +1 -0
package/package.json
CHANGED
|
@@ -7217,6 +7217,12 @@ class ModifyTopicAttributesRequest extends AbstractModel {
|
|
|
7217
7217
|
*/
|
|
7218
7218
|
this.QuotaConsumerByteRate = null;
|
|
7219
7219
|
|
|
7220
|
+
/**
|
|
7221
|
+
* The number of topic replicas.
|
|
7222
|
+
* @type {number || null}
|
|
7223
|
+
*/
|
|
7224
|
+
this.ReplicaNum = null;
|
|
7225
|
+
|
|
7220
7226
|
}
|
|
7221
7227
|
|
|
7222
7228
|
/**
|
|
@@ -7251,6 +7257,7 @@ class ModifyTopicAttributesRequest extends AbstractModel {
|
|
|
7251
7257
|
}
|
|
7252
7258
|
this.QuotaProducerByteRate = 'QuotaProducerByteRate' in params ? params.QuotaProducerByteRate : null;
|
|
7253
7259
|
this.QuotaConsumerByteRate = 'QuotaConsumerByteRate' in params ? params.QuotaConsumerByteRate : null;
|
|
7260
|
+
this.ReplicaNum = 'ReplicaNum' in params ? params.ReplicaNum : null;
|
|
7254
7261
|
|
|
7255
7262
|
}
|
|
7256
7263
|
}
|
|
@@ -7712,7 +7719,8 @@ Note: This field may return null, indicating that no valid values can be obtaine
|
|
|
7712
7719
|
this.ClusterType = null;
|
|
7713
7720
|
|
|
7714
7721
|
/**
|
|
7715
|
-
*
|
|
7722
|
+
* Instance feature list.
|
|
7723
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
7716
7724
|
* @type {Array.<string> || null}
|
|
7717
7725
|
*/
|
|
7718
7726
|
this.Features = null;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const sdkVersion = "3.0.
|
|
1
|
+
const sdkVersion = "3.0.494";
|
|
2
2
|
module.exports = sdkVersion
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing,
|
|
11
|
+
* software distributed under the License is distributed on an
|
|
12
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
13
|
+
* KIND, either express or implied. See the License for the
|
|
14
|
+
* specific language governing permissions and limitations
|
|
15
|
+
* under the License.
|
|
16
|
+
*/
|
|
17
|
+
const models = require("./models");
|
|
18
|
+
const AbstractClient = require('../../common/abstract_client')
|
|
19
|
+
const ModifyDomainStatusResponse = models.ModifyDomainStatusResponse;
|
|
20
|
+
const CreateRecordRequest = models.CreateRecordRequest;
|
|
21
|
+
const DeleteDomainRequest = models.DeleteDomainRequest;
|
|
22
|
+
const ModifyDomainRemarkResponse = models.ModifyDomainRemarkResponse;
|
|
23
|
+
const DescribeRecordResponse = models.DescribeRecordResponse;
|
|
24
|
+
const CreateDomainRequest = models.CreateDomainRequest;
|
|
25
|
+
const ModifyRecordResponse = models.ModifyRecordResponse;
|
|
26
|
+
const CreateRecordResponse = models.CreateRecordResponse;
|
|
27
|
+
const DeleteRecordResponse = models.DeleteRecordResponse;
|
|
28
|
+
const DomainCreateInfo = models.DomainCreateInfo;
|
|
29
|
+
const RecordInfo = models.RecordInfo;
|
|
30
|
+
const ModifyDomainStatusRequest = models.ModifyDomainStatusRequest;
|
|
31
|
+
const DeleteDomainResponse = models.DeleteDomainResponse;
|
|
32
|
+
const CreateDomainResponse = models.CreateDomainResponse;
|
|
33
|
+
const DescribeDomainRequest = models.DescribeDomainRequest;
|
|
34
|
+
const ModifyDomainRemarkRequest = models.ModifyDomainRemarkRequest;
|
|
35
|
+
const DescribeRecordRequest = models.DescribeRecordRequest;
|
|
36
|
+
const DescribeDomainResponse = models.DescribeDomainResponse;
|
|
37
|
+
const DomainInfo = models.DomainInfo;
|
|
38
|
+
const DeleteRecordRequest = models.DeleteRecordRequest;
|
|
39
|
+
const ModifyRecordRequest = models.ModifyRecordRequest;
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* dnspod client
|
|
44
|
+
* @class
|
|
45
|
+
*/
|
|
46
|
+
class DnspodClient extends AbstractClient {
|
|
47
|
+
|
|
48
|
+
constructor(credential, region, profile) {
|
|
49
|
+
super("dnspod.tencentcloudapi.com", "2021-03-23", credential, region, profile);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* This API is used to delete a record.
|
|
54
|
+
* @param {DeleteRecordRequest} req
|
|
55
|
+
* @param {function(string, DeleteRecordResponse):void} cb
|
|
56
|
+
* @public
|
|
57
|
+
*/
|
|
58
|
+
DeleteRecord(req, cb) {
|
|
59
|
+
let resp = new DeleteRecordResponse();
|
|
60
|
+
this.request("DeleteRecord", req, resp, cb);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* This API is used to modify the status of a domain.
|
|
65
|
+
* @param {ModifyDomainStatusRequest} req
|
|
66
|
+
* @param {function(string, ModifyDomainStatusResponse):void} cb
|
|
67
|
+
* @public
|
|
68
|
+
*/
|
|
69
|
+
ModifyDomainStatus(req, cb) {
|
|
70
|
+
let resp = new ModifyDomainStatusResponse();
|
|
71
|
+
this.request("ModifyDomainStatus", req, resp, cb);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* This API is used to get the information of a record.
|
|
76
|
+
* @param {DescribeRecordRequest} req
|
|
77
|
+
* @param {function(string, DescribeRecordResponse):void} cb
|
|
78
|
+
* @public
|
|
79
|
+
*/
|
|
80
|
+
DescribeRecord(req, cb) {
|
|
81
|
+
let resp = new DescribeRecordResponse();
|
|
82
|
+
this.request("DescribeRecord", req, resp, cb);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* This API is used to set the remarks of a domain.
|
|
87
|
+
* @param {ModifyDomainRemarkRequest} req
|
|
88
|
+
* @param {function(string, ModifyDomainRemarkResponse):void} cb
|
|
89
|
+
* @public
|
|
90
|
+
*/
|
|
91
|
+
ModifyDomainRemark(req, cb) {
|
|
92
|
+
let resp = new ModifyDomainRemarkResponse();
|
|
93
|
+
this.request("ModifyDomainRemark", req, resp, cb);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* This API is used to add a record.
|
|
98
|
+
|
|
99
|
+
* @param {CreateRecordRequest} req
|
|
100
|
+
* @param {function(string, CreateRecordResponse):void} cb
|
|
101
|
+
* @public
|
|
102
|
+
*/
|
|
103
|
+
CreateRecord(req, cb) {
|
|
104
|
+
let resp = new CreateRecordResponse();
|
|
105
|
+
this.request("CreateRecord", req, resp, cb);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* This API is used to modify a record.
|
|
110
|
+
* @param {ModifyRecordRequest} req
|
|
111
|
+
* @param {function(string, ModifyRecordResponse):void} cb
|
|
112
|
+
* @public
|
|
113
|
+
*/
|
|
114
|
+
ModifyRecord(req, cb) {
|
|
115
|
+
let resp = new ModifyRecordResponse();
|
|
116
|
+
this.request("ModifyRecord", req, resp, cb);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* This API is used to get the information of a domain.
|
|
121
|
+
* @param {DescribeDomainRequest} req
|
|
122
|
+
* @param {function(string, DescribeDomainResponse):void} cb
|
|
123
|
+
* @public
|
|
124
|
+
*/
|
|
125
|
+
DescribeDomain(req, cb) {
|
|
126
|
+
let resp = new DescribeDomainResponse();
|
|
127
|
+
this.request("DescribeDomain", req, resp, cb);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* This API is used to delete a domain.
|
|
132
|
+
|
|
133
|
+
* @param {DeleteDomainRequest} req
|
|
134
|
+
* @param {function(string, DeleteDomainResponse):void} cb
|
|
135
|
+
* @public
|
|
136
|
+
*/
|
|
137
|
+
DeleteDomain(req, cb) {
|
|
138
|
+
let resp = new DeleteDomainResponse();
|
|
139
|
+
this.request("DeleteDomain", req, resp, cb);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* This API is used to add a domain.
|
|
144
|
+
|
|
145
|
+
* @param {CreateDomainRequest} req
|
|
146
|
+
* @param {function(string, CreateDomainResponse):void} cb
|
|
147
|
+
* @public
|
|
148
|
+
*/
|
|
149
|
+
CreateDomain(req, cb) {
|
|
150
|
+
let resp = new CreateDomainResponse();
|
|
151
|
+
this.request("CreateDomain", req, resp, cb);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
}
|
|
156
|
+
module.exports = DnspodClient;
|
|
@@ -0,0 +1,1186 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing,
|
|
11
|
+
* software distributed under the License is distributed on an
|
|
12
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
13
|
+
* KIND, either express or implied. See the License for the
|
|
14
|
+
* specific language governing permissions and limitations
|
|
15
|
+
* under the License.
|
|
16
|
+
*/
|
|
17
|
+
const AbstractModel = require("../../common/abstract_model");
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* ModifyDomainStatus response structure.
|
|
21
|
+
* @class
|
|
22
|
+
*/
|
|
23
|
+
class ModifyDomainStatusResponse extends AbstractModel {
|
|
24
|
+
constructor(){
|
|
25
|
+
super();
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* The unique request ID, which is returned for each request. RequestId is required for locating a problem.
|
|
29
|
+
* @type {string || null}
|
|
30
|
+
*/
|
|
31
|
+
this.RequestId = null;
|
|
32
|
+
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* @private
|
|
37
|
+
*/
|
|
38
|
+
deserialize(params) {
|
|
39
|
+
if (!params) {
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
43
|
+
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* CreateRecord request structure.
|
|
49
|
+
* @class
|
|
50
|
+
*/
|
|
51
|
+
class CreateRecordRequest extends AbstractModel {
|
|
52
|
+
constructor(){
|
|
53
|
+
super();
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Domain
|
|
57
|
+
* @type {string || null}
|
|
58
|
+
*/
|
|
59
|
+
this.Domain = null;
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Record type, which is obtained through the record type API. The value contains uppercase letters, such as `A`.
|
|
63
|
+
* @type {string || null}
|
|
64
|
+
*/
|
|
65
|
+
this.RecordType = null;
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Record split zone, which is obtained through the record split zone API.
|
|
69
|
+
* @type {string || null}
|
|
70
|
+
*/
|
|
71
|
+
this.RecordLine = null;
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Record value, such as `IP : 200.200.200.200`, `CNAME : cname.dnspod.com`, and `MX : mail.dnspod.com`.
|
|
75
|
+
* @type {string || null}
|
|
76
|
+
*/
|
|
77
|
+
this.Value = null;
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* Domain ID. The `DomainId` parameter has a higher priority than `Domain`. If `DomainId` is passed in, `Domain` will be ignored.
|
|
81
|
+
* @type {number || null}
|
|
82
|
+
*/
|
|
83
|
+
this.DomainId = null;
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Host record such as `www`. If it is not passed in, it will be `@` by default.
|
|
87
|
+
* @type {string || null}
|
|
88
|
+
*/
|
|
89
|
+
this.SubDomain = null;
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* Split zone ID, which is obtained through the record split zone API. The value is a string such as `10=1`. The `RecordLineId` parameter has a higher priority than `RecordLine`. If both of them are passed in, `RecordLineId` will be used first.
|
|
93
|
+
* @type {string || null}
|
|
94
|
+
*/
|
|
95
|
+
this.RecordLineId = null;
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* MX priority, which is required for an MX record and will take effect if the record type is MX. Value range: 1–20.
|
|
99
|
+
* @type {number || null}
|
|
100
|
+
*/
|
|
101
|
+
this.MX = null;
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* TTL. Value range: 1–604800. The minimum value varies by domain level.
|
|
105
|
+
* @type {number || null}
|
|
106
|
+
*/
|
|
107
|
+
this.TTL = null;
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* Weight information, which is an integer between 0 and 100. It is supported only for enterprise VIP domains. `0` indicates not to pass in this parameter, i.e., not to set the weight.
|
|
111
|
+
* @type {number || null}
|
|
112
|
+
*/
|
|
113
|
+
this.Weight = null;
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* Initial status of the record. Valid values: ENABLE, DISABLE. Default value: ENABLE. If `DISABLE` is passed in, the DNS record won't take effect, and the limit on round-robin DNS won't be verified.
|
|
117
|
+
* @type {string || null}
|
|
118
|
+
*/
|
|
119
|
+
this.Status = null;
|
|
120
|
+
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* @private
|
|
125
|
+
*/
|
|
126
|
+
deserialize(params) {
|
|
127
|
+
if (!params) {
|
|
128
|
+
return;
|
|
129
|
+
}
|
|
130
|
+
this.Domain = 'Domain' in params ? params.Domain : null;
|
|
131
|
+
this.RecordType = 'RecordType' in params ? params.RecordType : null;
|
|
132
|
+
this.RecordLine = 'RecordLine' in params ? params.RecordLine : null;
|
|
133
|
+
this.Value = 'Value' in params ? params.Value : null;
|
|
134
|
+
this.DomainId = 'DomainId' in params ? params.DomainId : null;
|
|
135
|
+
this.SubDomain = 'SubDomain' in params ? params.SubDomain : null;
|
|
136
|
+
this.RecordLineId = 'RecordLineId' in params ? params.RecordLineId : null;
|
|
137
|
+
this.MX = 'MX' in params ? params.MX : null;
|
|
138
|
+
this.TTL = 'TTL' in params ? params.TTL : null;
|
|
139
|
+
this.Weight = 'Weight' in params ? params.Weight : null;
|
|
140
|
+
this.Status = 'Status' in params ? params.Status : null;
|
|
141
|
+
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* DeleteDomain request structure.
|
|
147
|
+
* @class
|
|
148
|
+
*/
|
|
149
|
+
class DeleteDomainRequest extends AbstractModel {
|
|
150
|
+
constructor(){
|
|
151
|
+
super();
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* Domain
|
|
155
|
+
* @type {string || null}
|
|
156
|
+
*/
|
|
157
|
+
this.Domain = null;
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* Domain ID. The `DomainId` parameter has a higher priority than `Domain`. If `DomainId` is passed in, `Domain` will be ignored.
|
|
161
|
+
* @type {number || null}
|
|
162
|
+
*/
|
|
163
|
+
this.DomainId = null;
|
|
164
|
+
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* @private
|
|
169
|
+
*/
|
|
170
|
+
deserialize(params) {
|
|
171
|
+
if (!params) {
|
|
172
|
+
return;
|
|
173
|
+
}
|
|
174
|
+
this.Domain = 'Domain' in params ? params.Domain : null;
|
|
175
|
+
this.DomainId = 'DomainId' in params ? params.DomainId : null;
|
|
176
|
+
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* ModifyDomainRemark response structure.
|
|
182
|
+
* @class
|
|
183
|
+
*/
|
|
184
|
+
class ModifyDomainRemarkResponse extends AbstractModel {
|
|
185
|
+
constructor(){
|
|
186
|
+
super();
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* The unique request ID, which is returned for each request. RequestId is required for locating a problem.
|
|
190
|
+
* @type {string || null}
|
|
191
|
+
*/
|
|
192
|
+
this.RequestId = null;
|
|
193
|
+
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
* @private
|
|
198
|
+
*/
|
|
199
|
+
deserialize(params) {
|
|
200
|
+
if (!params) {
|
|
201
|
+
return;
|
|
202
|
+
}
|
|
203
|
+
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
204
|
+
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
/**
|
|
209
|
+
* DescribeRecord response structure.
|
|
210
|
+
* @class
|
|
211
|
+
*/
|
|
212
|
+
class DescribeRecordResponse extends AbstractModel {
|
|
213
|
+
constructor(){
|
|
214
|
+
super();
|
|
215
|
+
|
|
216
|
+
/**
|
|
217
|
+
* Record information
|
|
218
|
+
* @type {RecordInfo || null}
|
|
219
|
+
*/
|
|
220
|
+
this.RecordInfo = null;
|
|
221
|
+
|
|
222
|
+
/**
|
|
223
|
+
* The unique request ID, which is returned for each request. RequestId is required for locating a problem.
|
|
224
|
+
* @type {string || null}
|
|
225
|
+
*/
|
|
226
|
+
this.RequestId = null;
|
|
227
|
+
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
/**
|
|
231
|
+
* @private
|
|
232
|
+
*/
|
|
233
|
+
deserialize(params) {
|
|
234
|
+
if (!params) {
|
|
235
|
+
return;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
if (params.RecordInfo) {
|
|
239
|
+
let obj = new RecordInfo();
|
|
240
|
+
obj.deserialize(params.RecordInfo)
|
|
241
|
+
this.RecordInfo = obj;
|
|
242
|
+
}
|
|
243
|
+
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
244
|
+
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
/**
|
|
249
|
+
* CreateDomain request structure.
|
|
250
|
+
* @class
|
|
251
|
+
*/
|
|
252
|
+
class CreateDomainRequest extends AbstractModel {
|
|
253
|
+
constructor(){
|
|
254
|
+
super();
|
|
255
|
+
|
|
256
|
+
/**
|
|
257
|
+
* Domain
|
|
258
|
+
* @type {string || null}
|
|
259
|
+
*/
|
|
260
|
+
this.Domain = null;
|
|
261
|
+
|
|
262
|
+
/**
|
|
263
|
+
* Domain group ID
|
|
264
|
+
* @type {number || null}
|
|
265
|
+
*/
|
|
266
|
+
this.GroupId = null;
|
|
267
|
+
|
|
268
|
+
/**
|
|
269
|
+
* Whether the domain is starred. Valid values: yes, no.
|
|
270
|
+
* @type {string || null}
|
|
271
|
+
*/
|
|
272
|
+
this.IsMark = null;
|
|
273
|
+
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
/**
|
|
277
|
+
* @private
|
|
278
|
+
*/
|
|
279
|
+
deserialize(params) {
|
|
280
|
+
if (!params) {
|
|
281
|
+
return;
|
|
282
|
+
}
|
|
283
|
+
this.Domain = 'Domain' in params ? params.Domain : null;
|
|
284
|
+
this.GroupId = 'GroupId' in params ? params.GroupId : null;
|
|
285
|
+
this.IsMark = 'IsMark' in params ? params.IsMark : null;
|
|
286
|
+
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
/**
|
|
291
|
+
* ModifyRecord response structure.
|
|
292
|
+
* @class
|
|
293
|
+
*/
|
|
294
|
+
class ModifyRecordResponse extends AbstractModel {
|
|
295
|
+
constructor(){
|
|
296
|
+
super();
|
|
297
|
+
|
|
298
|
+
/**
|
|
299
|
+
* Record ID
|
|
300
|
+
* @type {number || null}
|
|
301
|
+
*/
|
|
302
|
+
this.RecordId = null;
|
|
303
|
+
|
|
304
|
+
/**
|
|
305
|
+
* The unique request ID, which is returned for each request. RequestId is required for locating a problem.
|
|
306
|
+
* @type {string || null}
|
|
307
|
+
*/
|
|
308
|
+
this.RequestId = null;
|
|
309
|
+
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
/**
|
|
313
|
+
* @private
|
|
314
|
+
*/
|
|
315
|
+
deserialize(params) {
|
|
316
|
+
if (!params) {
|
|
317
|
+
return;
|
|
318
|
+
}
|
|
319
|
+
this.RecordId = 'RecordId' in params ? params.RecordId : null;
|
|
320
|
+
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
321
|
+
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
/**
|
|
326
|
+
* CreateRecord response structure.
|
|
327
|
+
* @class
|
|
328
|
+
*/
|
|
329
|
+
class CreateRecordResponse extends AbstractModel {
|
|
330
|
+
constructor(){
|
|
331
|
+
super();
|
|
332
|
+
|
|
333
|
+
/**
|
|
334
|
+
* Record ID
|
|
335
|
+
* @type {number || null}
|
|
336
|
+
*/
|
|
337
|
+
this.RecordId = null;
|
|
338
|
+
|
|
339
|
+
/**
|
|
340
|
+
* The unique request ID, which is returned for each request. RequestId is required for locating a problem.
|
|
341
|
+
* @type {string || null}
|
|
342
|
+
*/
|
|
343
|
+
this.RequestId = null;
|
|
344
|
+
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
/**
|
|
348
|
+
* @private
|
|
349
|
+
*/
|
|
350
|
+
deserialize(params) {
|
|
351
|
+
if (!params) {
|
|
352
|
+
return;
|
|
353
|
+
}
|
|
354
|
+
this.RecordId = 'RecordId' in params ? params.RecordId : null;
|
|
355
|
+
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
356
|
+
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
/**
|
|
361
|
+
* DeleteRecord response structure.
|
|
362
|
+
* @class
|
|
363
|
+
*/
|
|
364
|
+
class DeleteRecordResponse extends AbstractModel {
|
|
365
|
+
constructor(){
|
|
366
|
+
super();
|
|
367
|
+
|
|
368
|
+
/**
|
|
369
|
+
* The unique request ID, which is returned for each request. RequestId is required for locating a problem.
|
|
370
|
+
* @type {string || null}
|
|
371
|
+
*/
|
|
372
|
+
this.RequestId = null;
|
|
373
|
+
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
/**
|
|
377
|
+
* @private
|
|
378
|
+
*/
|
|
379
|
+
deserialize(params) {
|
|
380
|
+
if (!params) {
|
|
381
|
+
return;
|
|
382
|
+
}
|
|
383
|
+
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
384
|
+
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
/**
|
|
389
|
+
* Domain information returned during domain creation
|
|
390
|
+
* @class
|
|
391
|
+
*/
|
|
392
|
+
class DomainCreateInfo extends AbstractModel {
|
|
393
|
+
constructor(){
|
|
394
|
+
super();
|
|
395
|
+
|
|
396
|
+
/**
|
|
397
|
+
* Domain ID
|
|
398
|
+
* @type {number || null}
|
|
399
|
+
*/
|
|
400
|
+
this.Id = null;
|
|
401
|
+
|
|
402
|
+
/**
|
|
403
|
+
* Domain
|
|
404
|
+
* @type {string || null}
|
|
405
|
+
*/
|
|
406
|
+
this.Domain = null;
|
|
407
|
+
|
|
408
|
+
/**
|
|
409
|
+
* Domain Punycode
|
|
410
|
+
* @type {string || null}
|
|
411
|
+
*/
|
|
412
|
+
this.Punycode = null;
|
|
413
|
+
|
|
414
|
+
/**
|
|
415
|
+
* NS list of the domain
|
|
416
|
+
* @type {Array.<string> || null}
|
|
417
|
+
*/
|
|
418
|
+
this.GradeNsList = null;
|
|
419
|
+
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
/**
|
|
423
|
+
* @private
|
|
424
|
+
*/
|
|
425
|
+
deserialize(params) {
|
|
426
|
+
if (!params) {
|
|
427
|
+
return;
|
|
428
|
+
}
|
|
429
|
+
this.Id = 'Id' in params ? params.Id : null;
|
|
430
|
+
this.Domain = 'Domain' in params ? params.Domain : null;
|
|
431
|
+
this.Punycode = 'Punycode' in params ? params.Punycode : null;
|
|
432
|
+
this.GradeNsList = 'GradeNsList' in params ? params.GradeNsList : null;
|
|
433
|
+
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
/**
|
|
438
|
+
* Record information
|
|
439
|
+
* @class
|
|
440
|
+
*/
|
|
441
|
+
class RecordInfo extends AbstractModel {
|
|
442
|
+
constructor(){
|
|
443
|
+
super();
|
|
444
|
+
|
|
445
|
+
/**
|
|
446
|
+
* Record ID.
|
|
447
|
+
* @type {number || null}
|
|
448
|
+
*/
|
|
449
|
+
this.Id = null;
|
|
450
|
+
|
|
451
|
+
/**
|
|
452
|
+
* Subdomain (host record).
|
|
453
|
+
* @type {string || null}
|
|
454
|
+
*/
|
|
455
|
+
this.SubDomain = null;
|
|
456
|
+
|
|
457
|
+
/**
|
|
458
|
+
* Record type. For more information, see the `DescribeRecordType` API.
|
|
459
|
+
* @type {string || null}
|
|
460
|
+
*/
|
|
461
|
+
this.RecordType = null;
|
|
462
|
+
|
|
463
|
+
/**
|
|
464
|
+
* Split zone of the DNS record. For more information, see the `DescribeRecordLineList` API.
|
|
465
|
+
* @type {string || null}
|
|
466
|
+
*/
|
|
467
|
+
this.RecordLine = null;
|
|
468
|
+
|
|
469
|
+
/**
|
|
470
|
+
* Split zone ID of the DNS record. For more information, see the `DescribeRecordLineList` API.
|
|
471
|
+
* @type {string || null}
|
|
472
|
+
*/
|
|
473
|
+
this.RecordLineId = null;
|
|
474
|
+
|
|
475
|
+
/**
|
|
476
|
+
* Record value.
|
|
477
|
+
* @type {string || null}
|
|
478
|
+
*/
|
|
479
|
+
this.Value = null;
|
|
480
|
+
|
|
481
|
+
/**
|
|
482
|
+
* Record weight.
|
|
483
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
484
|
+
* @type {number || null}
|
|
485
|
+
*/
|
|
486
|
+
this.Weight = null;
|
|
487
|
+
|
|
488
|
+
/**
|
|
489
|
+
* MX record value. It is 0 by default for non-MX records.
|
|
490
|
+
* @type {number || null}
|
|
491
|
+
*/
|
|
492
|
+
this.MX = null;
|
|
493
|
+
|
|
494
|
+
/**
|
|
495
|
+
* TTL value of the record.
|
|
496
|
+
* @type {number || null}
|
|
497
|
+
*/
|
|
498
|
+
this.TTL = null;
|
|
499
|
+
|
|
500
|
+
/**
|
|
501
|
+
* Record status. Valid values: 0 (disabled); 1 (enabled).
|
|
502
|
+
* @type {number || null}
|
|
503
|
+
*/
|
|
504
|
+
this.Enabled = null;
|
|
505
|
+
|
|
506
|
+
/**
|
|
507
|
+
* D-Monitor status of the record.
|
|
508
|
+
"Ok" : The server is normal.
|
|
509
|
+
"Warn" : There is an alarm on this record, and the server returns 4XX.
|
|
510
|
+
"Down" : The server is down.
|
|
511
|
+
"" : D-Monitor is disabled for this record.
|
|
512
|
+
* @type {string || null}
|
|
513
|
+
*/
|
|
514
|
+
this.MonitorStatus = null;
|
|
515
|
+
|
|
516
|
+
/**
|
|
517
|
+
* Record remarks.
|
|
518
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
519
|
+
* @type {string || null}
|
|
520
|
+
*/
|
|
521
|
+
this.Remark = null;
|
|
522
|
+
|
|
523
|
+
/**
|
|
524
|
+
* Last update time of the record.
|
|
525
|
+
* @type {string || null}
|
|
526
|
+
*/
|
|
527
|
+
this.UpdatedOn = null;
|
|
528
|
+
|
|
529
|
+
/**
|
|
530
|
+
* Domain ID.
|
|
531
|
+
* @type {number || null}
|
|
532
|
+
*/
|
|
533
|
+
this.DomainId = null;
|
|
534
|
+
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
/**
|
|
538
|
+
* @private
|
|
539
|
+
*/
|
|
540
|
+
deserialize(params) {
|
|
541
|
+
if (!params) {
|
|
542
|
+
return;
|
|
543
|
+
}
|
|
544
|
+
this.Id = 'Id' in params ? params.Id : null;
|
|
545
|
+
this.SubDomain = 'SubDomain' in params ? params.SubDomain : null;
|
|
546
|
+
this.RecordType = 'RecordType' in params ? params.RecordType : null;
|
|
547
|
+
this.RecordLine = 'RecordLine' in params ? params.RecordLine : null;
|
|
548
|
+
this.RecordLineId = 'RecordLineId' in params ? params.RecordLineId : null;
|
|
549
|
+
this.Value = 'Value' in params ? params.Value : null;
|
|
550
|
+
this.Weight = 'Weight' in params ? params.Weight : null;
|
|
551
|
+
this.MX = 'MX' in params ? params.MX : null;
|
|
552
|
+
this.TTL = 'TTL' in params ? params.TTL : null;
|
|
553
|
+
this.Enabled = 'Enabled' in params ? params.Enabled : null;
|
|
554
|
+
this.MonitorStatus = 'MonitorStatus' in params ? params.MonitorStatus : null;
|
|
555
|
+
this.Remark = 'Remark' in params ? params.Remark : null;
|
|
556
|
+
this.UpdatedOn = 'UpdatedOn' in params ? params.UpdatedOn : null;
|
|
557
|
+
this.DomainId = 'DomainId' in params ? params.DomainId : null;
|
|
558
|
+
|
|
559
|
+
}
|
|
560
|
+
}
|
|
561
|
+
|
|
562
|
+
/**
|
|
563
|
+
* ModifyDomainStatus request structure.
|
|
564
|
+
* @class
|
|
565
|
+
*/
|
|
566
|
+
class ModifyDomainStatusRequest extends AbstractModel {
|
|
567
|
+
constructor(){
|
|
568
|
+
super();
|
|
569
|
+
|
|
570
|
+
/**
|
|
571
|
+
* Domain
|
|
572
|
+
* @type {string || null}
|
|
573
|
+
*/
|
|
574
|
+
this.Domain = null;
|
|
575
|
+
|
|
576
|
+
/**
|
|
577
|
+
* Domain status. Valid values: enable; disable.
|
|
578
|
+
* @type {string || null}
|
|
579
|
+
*/
|
|
580
|
+
this.Status = null;
|
|
581
|
+
|
|
582
|
+
/**
|
|
583
|
+
* Domain ID. The `DomainId` parameter has a higher priority than `Domain`. If `DomainId` is passed in, `Domain` will be ignored.
|
|
584
|
+
* @type {number || null}
|
|
585
|
+
*/
|
|
586
|
+
this.DomainId = null;
|
|
587
|
+
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
/**
|
|
591
|
+
* @private
|
|
592
|
+
*/
|
|
593
|
+
deserialize(params) {
|
|
594
|
+
if (!params) {
|
|
595
|
+
return;
|
|
596
|
+
}
|
|
597
|
+
this.Domain = 'Domain' in params ? params.Domain : null;
|
|
598
|
+
this.Status = 'Status' in params ? params.Status : null;
|
|
599
|
+
this.DomainId = 'DomainId' in params ? params.DomainId : null;
|
|
600
|
+
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
/**
|
|
605
|
+
* DeleteDomain response structure.
|
|
606
|
+
* @class
|
|
607
|
+
*/
|
|
608
|
+
class DeleteDomainResponse extends AbstractModel {
|
|
609
|
+
constructor(){
|
|
610
|
+
super();
|
|
611
|
+
|
|
612
|
+
/**
|
|
613
|
+
* The unique request ID, which is returned for each request. RequestId is required for locating a problem.
|
|
614
|
+
* @type {string || null}
|
|
615
|
+
*/
|
|
616
|
+
this.RequestId = null;
|
|
617
|
+
|
|
618
|
+
}
|
|
619
|
+
|
|
620
|
+
/**
|
|
621
|
+
* @private
|
|
622
|
+
*/
|
|
623
|
+
deserialize(params) {
|
|
624
|
+
if (!params) {
|
|
625
|
+
return;
|
|
626
|
+
}
|
|
627
|
+
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
628
|
+
|
|
629
|
+
}
|
|
630
|
+
}
|
|
631
|
+
|
|
632
|
+
/**
|
|
633
|
+
* CreateDomain response structure.
|
|
634
|
+
* @class
|
|
635
|
+
*/
|
|
636
|
+
class CreateDomainResponse extends AbstractModel {
|
|
637
|
+
constructor(){
|
|
638
|
+
super();
|
|
639
|
+
|
|
640
|
+
/**
|
|
641
|
+
* Domain information
|
|
642
|
+
* @type {DomainCreateInfo || null}
|
|
643
|
+
*/
|
|
644
|
+
this.DomainInfo = null;
|
|
645
|
+
|
|
646
|
+
/**
|
|
647
|
+
* The unique request ID, which is returned for each request. RequestId is required for locating a problem.
|
|
648
|
+
* @type {string || null}
|
|
649
|
+
*/
|
|
650
|
+
this.RequestId = null;
|
|
651
|
+
|
|
652
|
+
}
|
|
653
|
+
|
|
654
|
+
/**
|
|
655
|
+
* @private
|
|
656
|
+
*/
|
|
657
|
+
deserialize(params) {
|
|
658
|
+
if (!params) {
|
|
659
|
+
return;
|
|
660
|
+
}
|
|
661
|
+
|
|
662
|
+
if (params.DomainInfo) {
|
|
663
|
+
let obj = new DomainCreateInfo();
|
|
664
|
+
obj.deserialize(params.DomainInfo)
|
|
665
|
+
this.DomainInfo = obj;
|
|
666
|
+
}
|
|
667
|
+
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
668
|
+
|
|
669
|
+
}
|
|
670
|
+
}
|
|
671
|
+
|
|
672
|
+
/**
|
|
673
|
+
* DescribeDomain request structure.
|
|
674
|
+
* @class
|
|
675
|
+
*/
|
|
676
|
+
class DescribeDomainRequest extends AbstractModel {
|
|
677
|
+
constructor(){
|
|
678
|
+
super();
|
|
679
|
+
|
|
680
|
+
/**
|
|
681
|
+
* Domain
|
|
682
|
+
* @type {string || null}
|
|
683
|
+
*/
|
|
684
|
+
this.Domain = null;
|
|
685
|
+
|
|
686
|
+
/**
|
|
687
|
+
* Domain ID. The `DomainId` parameter has a higher priority than `Domain`. If `DomainId` is passed in, `Domain` will be ignored.
|
|
688
|
+
* @type {number || null}
|
|
689
|
+
*/
|
|
690
|
+
this.DomainId = null;
|
|
691
|
+
|
|
692
|
+
}
|
|
693
|
+
|
|
694
|
+
/**
|
|
695
|
+
* @private
|
|
696
|
+
*/
|
|
697
|
+
deserialize(params) {
|
|
698
|
+
if (!params) {
|
|
699
|
+
return;
|
|
700
|
+
}
|
|
701
|
+
this.Domain = 'Domain' in params ? params.Domain : null;
|
|
702
|
+
this.DomainId = 'DomainId' in params ? params.DomainId : null;
|
|
703
|
+
|
|
704
|
+
}
|
|
705
|
+
}
|
|
706
|
+
|
|
707
|
+
/**
|
|
708
|
+
* ModifyDomainRemark request structure.
|
|
709
|
+
* @class
|
|
710
|
+
*/
|
|
711
|
+
class ModifyDomainRemarkRequest extends AbstractModel {
|
|
712
|
+
constructor(){
|
|
713
|
+
super();
|
|
714
|
+
|
|
715
|
+
/**
|
|
716
|
+
* Domain
|
|
717
|
+
* @type {string || null}
|
|
718
|
+
*/
|
|
719
|
+
this.Domain = null;
|
|
720
|
+
|
|
721
|
+
/**
|
|
722
|
+
* Domain ID. The `DomainId` parameter has a higher priority than `Domain`. If `DomainId` is passed in, `Domain` will be ignored.
|
|
723
|
+
* @type {number || null}
|
|
724
|
+
*/
|
|
725
|
+
this.DomainId = null;
|
|
726
|
+
|
|
727
|
+
/**
|
|
728
|
+
* Domain remarks. To delete the remarks, submit empty content.
|
|
729
|
+
* @type {string || null}
|
|
730
|
+
*/
|
|
731
|
+
this.Remark = null;
|
|
732
|
+
|
|
733
|
+
}
|
|
734
|
+
|
|
735
|
+
/**
|
|
736
|
+
* @private
|
|
737
|
+
*/
|
|
738
|
+
deserialize(params) {
|
|
739
|
+
if (!params) {
|
|
740
|
+
return;
|
|
741
|
+
}
|
|
742
|
+
this.Domain = 'Domain' in params ? params.Domain : null;
|
|
743
|
+
this.DomainId = 'DomainId' in params ? params.DomainId : null;
|
|
744
|
+
this.Remark = 'Remark' in params ? params.Remark : null;
|
|
745
|
+
|
|
746
|
+
}
|
|
747
|
+
}
|
|
748
|
+
|
|
749
|
+
/**
|
|
750
|
+
* DescribeRecord request structure.
|
|
751
|
+
* @class
|
|
752
|
+
*/
|
|
753
|
+
class DescribeRecordRequest extends AbstractModel {
|
|
754
|
+
constructor(){
|
|
755
|
+
super();
|
|
756
|
+
|
|
757
|
+
/**
|
|
758
|
+
* Domain
|
|
759
|
+
* @type {string || null}
|
|
760
|
+
*/
|
|
761
|
+
this.Domain = null;
|
|
762
|
+
|
|
763
|
+
/**
|
|
764
|
+
* Record ID.
|
|
765
|
+
* @type {number || null}
|
|
766
|
+
*/
|
|
767
|
+
this.RecordId = null;
|
|
768
|
+
|
|
769
|
+
/**
|
|
770
|
+
* Domain ID. The `DomainId` parameter has a higher priority than `Domain`. If `DomainId` is passed in, `Domain` will be ignored.
|
|
771
|
+
* @type {number || null}
|
|
772
|
+
*/
|
|
773
|
+
this.DomainId = null;
|
|
774
|
+
|
|
775
|
+
}
|
|
776
|
+
|
|
777
|
+
/**
|
|
778
|
+
* @private
|
|
779
|
+
*/
|
|
780
|
+
deserialize(params) {
|
|
781
|
+
if (!params) {
|
|
782
|
+
return;
|
|
783
|
+
}
|
|
784
|
+
this.Domain = 'Domain' in params ? params.Domain : null;
|
|
785
|
+
this.RecordId = 'RecordId' in params ? params.RecordId : null;
|
|
786
|
+
this.DomainId = 'DomainId' in params ? params.DomainId : null;
|
|
787
|
+
|
|
788
|
+
}
|
|
789
|
+
}
|
|
790
|
+
|
|
791
|
+
/**
|
|
792
|
+
* DescribeDomain response structure.
|
|
793
|
+
* @class
|
|
794
|
+
*/
|
|
795
|
+
class DescribeDomainResponse extends AbstractModel {
|
|
796
|
+
constructor(){
|
|
797
|
+
super();
|
|
798
|
+
|
|
799
|
+
/**
|
|
800
|
+
* Domain information
|
|
801
|
+
* @type {DomainInfo || null}
|
|
802
|
+
*/
|
|
803
|
+
this.DomainInfo = null;
|
|
804
|
+
|
|
805
|
+
/**
|
|
806
|
+
* The unique request ID, which is returned for each request. RequestId is required for locating a problem.
|
|
807
|
+
* @type {string || null}
|
|
808
|
+
*/
|
|
809
|
+
this.RequestId = null;
|
|
810
|
+
|
|
811
|
+
}
|
|
812
|
+
|
|
813
|
+
/**
|
|
814
|
+
* @private
|
|
815
|
+
*/
|
|
816
|
+
deserialize(params) {
|
|
817
|
+
if (!params) {
|
|
818
|
+
return;
|
|
819
|
+
}
|
|
820
|
+
|
|
821
|
+
if (params.DomainInfo) {
|
|
822
|
+
let obj = new DomainInfo();
|
|
823
|
+
obj.deserialize(params.DomainInfo)
|
|
824
|
+
this.DomainInfo = obj;
|
|
825
|
+
}
|
|
826
|
+
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
827
|
+
|
|
828
|
+
}
|
|
829
|
+
}
|
|
830
|
+
|
|
831
|
+
/**
|
|
832
|
+
* Domain details
|
|
833
|
+
* @class
|
|
834
|
+
*/
|
|
835
|
+
class DomainInfo extends AbstractModel {
|
|
836
|
+
constructor(){
|
|
837
|
+
super();
|
|
838
|
+
|
|
839
|
+
/**
|
|
840
|
+
* Domain ID
|
|
841
|
+
* @type {number || null}
|
|
842
|
+
*/
|
|
843
|
+
this.DomainId = null;
|
|
844
|
+
|
|
845
|
+
/**
|
|
846
|
+
* Domain status
|
|
847
|
+
* @type {string || null}
|
|
848
|
+
*/
|
|
849
|
+
this.Status = null;
|
|
850
|
+
|
|
851
|
+
/**
|
|
852
|
+
* DNS plan level
|
|
853
|
+
* @type {string || null}
|
|
854
|
+
*/
|
|
855
|
+
this.Grade = null;
|
|
856
|
+
|
|
857
|
+
/**
|
|
858
|
+
* Domain group ID
|
|
859
|
+
* @type {number || null}
|
|
860
|
+
*/
|
|
861
|
+
this.GroupId = null;
|
|
862
|
+
|
|
863
|
+
/**
|
|
864
|
+
* Whether the domain is starred
|
|
865
|
+
* @type {string || null}
|
|
866
|
+
*/
|
|
867
|
+
this.IsMark = null;
|
|
868
|
+
|
|
869
|
+
/**
|
|
870
|
+
* TTL (DNS record cache time)
|
|
871
|
+
* @type {number || null}
|
|
872
|
+
*/
|
|
873
|
+
this.TTL = null;
|
|
874
|
+
|
|
875
|
+
/**
|
|
876
|
+
* Whether CNAME flattening is enabled
|
|
877
|
+
* @type {string || null}
|
|
878
|
+
*/
|
|
879
|
+
this.CnameSpeedup = null;
|
|
880
|
+
|
|
881
|
+
/**
|
|
882
|
+
* Domain remarks
|
|
883
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
884
|
+
* @type {string || null}
|
|
885
|
+
*/
|
|
886
|
+
this.Remark = null;
|
|
887
|
+
|
|
888
|
+
/**
|
|
889
|
+
* Domain Punycode
|
|
890
|
+
* @type {string || null}
|
|
891
|
+
*/
|
|
892
|
+
this.Punycode = null;
|
|
893
|
+
|
|
894
|
+
/**
|
|
895
|
+
* DNS status of the domain
|
|
896
|
+
* @type {string || null}
|
|
897
|
+
*/
|
|
898
|
+
this.DnsStatus = null;
|
|
899
|
+
|
|
900
|
+
/**
|
|
901
|
+
* NS list of the domain
|
|
902
|
+
* @type {Array.<string> || null}
|
|
903
|
+
*/
|
|
904
|
+
this.DnspodNsList = null;
|
|
905
|
+
|
|
906
|
+
/**
|
|
907
|
+
* Domain
|
|
908
|
+
* @type {string || null}
|
|
909
|
+
*/
|
|
910
|
+
this.Domain = null;
|
|
911
|
+
|
|
912
|
+
/**
|
|
913
|
+
* Domain level ID
|
|
914
|
+
* @type {number || null}
|
|
915
|
+
*/
|
|
916
|
+
this.GradeLevel = null;
|
|
917
|
+
|
|
918
|
+
/**
|
|
919
|
+
* Domain user ID
|
|
920
|
+
* @type {number || null}
|
|
921
|
+
*/
|
|
922
|
+
this.UserId = null;
|
|
923
|
+
|
|
924
|
+
/**
|
|
925
|
+
* Whether the domain is a VIP domain
|
|
926
|
+
* @type {string || null}
|
|
927
|
+
*/
|
|
928
|
+
this.IsVip = null;
|
|
929
|
+
|
|
930
|
+
/**
|
|
931
|
+
* Domain owner account
|
|
932
|
+
* @type {string || null}
|
|
933
|
+
*/
|
|
934
|
+
this.Owner = null;
|
|
935
|
+
|
|
936
|
+
/**
|
|
937
|
+
* Domain level description
|
|
938
|
+
* @type {string || null}
|
|
939
|
+
*/
|
|
940
|
+
this.GradeTitle = null;
|
|
941
|
+
|
|
942
|
+
/**
|
|
943
|
+
* Domain creation time
|
|
944
|
+
* @type {string || null}
|
|
945
|
+
*/
|
|
946
|
+
this.CreatedOn = null;
|
|
947
|
+
|
|
948
|
+
/**
|
|
949
|
+
* Last update time
|
|
950
|
+
* @type {string || null}
|
|
951
|
+
*/
|
|
952
|
+
this.UpdatedOn = null;
|
|
953
|
+
|
|
954
|
+
/**
|
|
955
|
+
* Tencent Cloud account `Uin`
|
|
956
|
+
* @type {string || null}
|
|
957
|
+
*/
|
|
958
|
+
this.Uin = null;
|
|
959
|
+
|
|
960
|
+
/**
|
|
961
|
+
* NS list actually used by the domain
|
|
962
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
963
|
+
* @type {Array.<string> || null}
|
|
964
|
+
*/
|
|
965
|
+
this.ActualNsList = null;
|
|
966
|
+
|
|
967
|
+
/**
|
|
968
|
+
* Number of domain records
|
|
969
|
+
* @type {number || null}
|
|
970
|
+
*/
|
|
971
|
+
this.RecordCount = null;
|
|
972
|
+
|
|
973
|
+
/**
|
|
974
|
+
* Alias of the domain account owner
|
|
975
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
976
|
+
* @type {string || null}
|
|
977
|
+
*/
|
|
978
|
+
this.OwnerNick = null;
|
|
979
|
+
|
|
980
|
+
}
|
|
981
|
+
|
|
982
|
+
/**
|
|
983
|
+
* @private
|
|
984
|
+
*/
|
|
985
|
+
deserialize(params) {
|
|
986
|
+
if (!params) {
|
|
987
|
+
return;
|
|
988
|
+
}
|
|
989
|
+
this.DomainId = 'DomainId' in params ? params.DomainId : null;
|
|
990
|
+
this.Status = 'Status' in params ? params.Status : null;
|
|
991
|
+
this.Grade = 'Grade' in params ? params.Grade : null;
|
|
992
|
+
this.GroupId = 'GroupId' in params ? params.GroupId : null;
|
|
993
|
+
this.IsMark = 'IsMark' in params ? params.IsMark : null;
|
|
994
|
+
this.TTL = 'TTL' in params ? params.TTL : null;
|
|
995
|
+
this.CnameSpeedup = 'CnameSpeedup' in params ? params.CnameSpeedup : null;
|
|
996
|
+
this.Remark = 'Remark' in params ? params.Remark : null;
|
|
997
|
+
this.Punycode = 'Punycode' in params ? params.Punycode : null;
|
|
998
|
+
this.DnsStatus = 'DnsStatus' in params ? params.DnsStatus : null;
|
|
999
|
+
this.DnspodNsList = 'DnspodNsList' in params ? params.DnspodNsList : null;
|
|
1000
|
+
this.Domain = 'Domain' in params ? params.Domain : null;
|
|
1001
|
+
this.GradeLevel = 'GradeLevel' in params ? params.GradeLevel : null;
|
|
1002
|
+
this.UserId = 'UserId' in params ? params.UserId : null;
|
|
1003
|
+
this.IsVip = 'IsVip' in params ? params.IsVip : null;
|
|
1004
|
+
this.Owner = 'Owner' in params ? params.Owner : null;
|
|
1005
|
+
this.GradeTitle = 'GradeTitle' in params ? params.GradeTitle : null;
|
|
1006
|
+
this.CreatedOn = 'CreatedOn' in params ? params.CreatedOn : null;
|
|
1007
|
+
this.UpdatedOn = 'UpdatedOn' in params ? params.UpdatedOn : null;
|
|
1008
|
+
this.Uin = 'Uin' in params ? params.Uin : null;
|
|
1009
|
+
this.ActualNsList = 'ActualNsList' in params ? params.ActualNsList : null;
|
|
1010
|
+
this.RecordCount = 'RecordCount' in params ? params.RecordCount : null;
|
|
1011
|
+
this.OwnerNick = 'OwnerNick' in params ? params.OwnerNick : null;
|
|
1012
|
+
|
|
1013
|
+
}
|
|
1014
|
+
}
|
|
1015
|
+
|
|
1016
|
+
/**
|
|
1017
|
+
* DeleteRecord request structure.
|
|
1018
|
+
* @class
|
|
1019
|
+
*/
|
|
1020
|
+
class DeleteRecordRequest extends AbstractModel {
|
|
1021
|
+
constructor(){
|
|
1022
|
+
super();
|
|
1023
|
+
|
|
1024
|
+
/**
|
|
1025
|
+
* Domain
|
|
1026
|
+
* @type {string || null}
|
|
1027
|
+
*/
|
|
1028
|
+
this.Domain = null;
|
|
1029
|
+
|
|
1030
|
+
/**
|
|
1031
|
+
* Record ID.
|
|
1032
|
+
* @type {number || null}
|
|
1033
|
+
*/
|
|
1034
|
+
this.RecordId = null;
|
|
1035
|
+
|
|
1036
|
+
/**
|
|
1037
|
+
* Domain ID. The `DomainId` parameter has a higher priority than `Domain`. If `DomainId` is passed in, `Domain` will be ignored.
|
|
1038
|
+
* @type {number || null}
|
|
1039
|
+
*/
|
|
1040
|
+
this.DomainId = null;
|
|
1041
|
+
|
|
1042
|
+
}
|
|
1043
|
+
|
|
1044
|
+
/**
|
|
1045
|
+
* @private
|
|
1046
|
+
*/
|
|
1047
|
+
deserialize(params) {
|
|
1048
|
+
if (!params) {
|
|
1049
|
+
return;
|
|
1050
|
+
}
|
|
1051
|
+
this.Domain = 'Domain' in params ? params.Domain : null;
|
|
1052
|
+
this.RecordId = 'RecordId' in params ? params.RecordId : null;
|
|
1053
|
+
this.DomainId = 'DomainId' in params ? params.DomainId : null;
|
|
1054
|
+
|
|
1055
|
+
}
|
|
1056
|
+
}
|
|
1057
|
+
|
|
1058
|
+
/**
|
|
1059
|
+
* ModifyRecord request structure.
|
|
1060
|
+
* @class
|
|
1061
|
+
*/
|
|
1062
|
+
class ModifyRecordRequest extends AbstractModel {
|
|
1063
|
+
constructor(){
|
|
1064
|
+
super();
|
|
1065
|
+
|
|
1066
|
+
/**
|
|
1067
|
+
* Domain
|
|
1068
|
+
* @type {string || null}
|
|
1069
|
+
*/
|
|
1070
|
+
this.Domain = null;
|
|
1071
|
+
|
|
1072
|
+
/**
|
|
1073
|
+
* Record type, which is obtained through the record type API. The value contains uppercase letters, such as `A`.
|
|
1074
|
+
* @type {string || null}
|
|
1075
|
+
*/
|
|
1076
|
+
this.RecordType = null;
|
|
1077
|
+
|
|
1078
|
+
/**
|
|
1079
|
+
* Record split zone, which is obtained through the record split zone API.
|
|
1080
|
+
* @type {string || null}
|
|
1081
|
+
*/
|
|
1082
|
+
this.RecordLine = null;
|
|
1083
|
+
|
|
1084
|
+
/**
|
|
1085
|
+
* Record value, such as `IP : 200.200.200.200`, `CNAME : cname.dnspod.com`, and `MX : mail.dnspod.com`.
|
|
1086
|
+
* @type {string || null}
|
|
1087
|
+
*/
|
|
1088
|
+
this.Value = null;
|
|
1089
|
+
|
|
1090
|
+
/**
|
|
1091
|
+
* Record ID.
|
|
1092
|
+
* @type {number || null}
|
|
1093
|
+
*/
|
|
1094
|
+
this.RecordId = null;
|
|
1095
|
+
|
|
1096
|
+
/**
|
|
1097
|
+
* Domain ID. The `DomainId` parameter has a higher priority than `Domain`. If `DomainId` is passed in, `Domain` will be ignored.
|
|
1098
|
+
* @type {number || null}
|
|
1099
|
+
*/
|
|
1100
|
+
this.DomainId = null;
|
|
1101
|
+
|
|
1102
|
+
/**
|
|
1103
|
+
* Host record such as `www`. If it is not passed in, it will be `@` by default.
|
|
1104
|
+
* @type {string || null}
|
|
1105
|
+
*/
|
|
1106
|
+
this.SubDomain = null;
|
|
1107
|
+
|
|
1108
|
+
/**
|
|
1109
|
+
* Split zone ID, which is obtained through the record split zone API. The value is a string such as `10=1`. The `RecordLineId` parameter has a higher priority than `RecordLine`. If both of them are passed in, `RecordLineId` will be used first.
|
|
1110
|
+
* @type {string || null}
|
|
1111
|
+
*/
|
|
1112
|
+
this.RecordLineId = null;
|
|
1113
|
+
|
|
1114
|
+
/**
|
|
1115
|
+
* MX priority, which is required for an MX record and will take effect if the record type is MX. Value range: 1–20.
|
|
1116
|
+
* @type {number || null}
|
|
1117
|
+
*/
|
|
1118
|
+
this.MX = null;
|
|
1119
|
+
|
|
1120
|
+
/**
|
|
1121
|
+
* TTL. Value range: 1–604800. The minimum value varies by domain level.
|
|
1122
|
+
* @type {number || null}
|
|
1123
|
+
*/
|
|
1124
|
+
this.TTL = null;
|
|
1125
|
+
|
|
1126
|
+
/**
|
|
1127
|
+
* Weight information, which is an integer between 0 and 100. It is supported only for enterprise VIP domains. `0` indicates not to pass in this parameter, i.e., not to set the weight.
|
|
1128
|
+
* @type {number || null}
|
|
1129
|
+
*/
|
|
1130
|
+
this.Weight = null;
|
|
1131
|
+
|
|
1132
|
+
/**
|
|
1133
|
+
* Initial status of the record. Valid values: ENABLE, DISABLE. Default value: ENABLE. If `DISABLE` is passed in, the DNS record won't take effect, and the limit on round-robin DNS won't be verified.
|
|
1134
|
+
* @type {string || null}
|
|
1135
|
+
*/
|
|
1136
|
+
this.Status = null;
|
|
1137
|
+
|
|
1138
|
+
}
|
|
1139
|
+
|
|
1140
|
+
/**
|
|
1141
|
+
* @private
|
|
1142
|
+
*/
|
|
1143
|
+
deserialize(params) {
|
|
1144
|
+
if (!params) {
|
|
1145
|
+
return;
|
|
1146
|
+
}
|
|
1147
|
+
this.Domain = 'Domain' in params ? params.Domain : null;
|
|
1148
|
+
this.RecordType = 'RecordType' in params ? params.RecordType : null;
|
|
1149
|
+
this.RecordLine = 'RecordLine' in params ? params.RecordLine : null;
|
|
1150
|
+
this.Value = 'Value' in params ? params.Value : null;
|
|
1151
|
+
this.RecordId = 'RecordId' in params ? params.RecordId : null;
|
|
1152
|
+
this.DomainId = 'DomainId' in params ? params.DomainId : null;
|
|
1153
|
+
this.SubDomain = 'SubDomain' in params ? params.SubDomain : null;
|
|
1154
|
+
this.RecordLineId = 'RecordLineId' in params ? params.RecordLineId : null;
|
|
1155
|
+
this.MX = 'MX' in params ? params.MX : null;
|
|
1156
|
+
this.TTL = 'TTL' in params ? params.TTL : null;
|
|
1157
|
+
this.Weight = 'Weight' in params ? params.Weight : null;
|
|
1158
|
+
this.Status = 'Status' in params ? params.Status : null;
|
|
1159
|
+
|
|
1160
|
+
}
|
|
1161
|
+
}
|
|
1162
|
+
|
|
1163
|
+
module.exports = {
|
|
1164
|
+
ModifyDomainStatusResponse: ModifyDomainStatusResponse,
|
|
1165
|
+
CreateRecordRequest: CreateRecordRequest,
|
|
1166
|
+
DeleteDomainRequest: DeleteDomainRequest,
|
|
1167
|
+
ModifyDomainRemarkResponse: ModifyDomainRemarkResponse,
|
|
1168
|
+
DescribeRecordResponse: DescribeRecordResponse,
|
|
1169
|
+
CreateDomainRequest: CreateDomainRequest,
|
|
1170
|
+
ModifyRecordResponse: ModifyRecordResponse,
|
|
1171
|
+
CreateRecordResponse: CreateRecordResponse,
|
|
1172
|
+
DeleteRecordResponse: DeleteRecordResponse,
|
|
1173
|
+
DomainCreateInfo: DomainCreateInfo,
|
|
1174
|
+
RecordInfo: RecordInfo,
|
|
1175
|
+
ModifyDomainStatusRequest: ModifyDomainStatusRequest,
|
|
1176
|
+
DeleteDomainResponse: DeleteDomainResponse,
|
|
1177
|
+
CreateDomainResponse: CreateDomainResponse,
|
|
1178
|
+
DescribeDomainRequest: DescribeDomainRequest,
|
|
1179
|
+
ModifyDomainRemarkRequest: ModifyDomainRemarkRequest,
|
|
1180
|
+
DescribeRecordRequest: DescribeRecordRequest,
|
|
1181
|
+
DescribeDomainResponse: DescribeDomainResponse,
|
|
1182
|
+
DomainInfo: DomainInfo,
|
|
1183
|
+
DeleteRecordRequest: DeleteRecordRequest,
|
|
1184
|
+
ModifyRecordRequest: ModifyRecordRequest,
|
|
1185
|
+
|
|
1186
|
+
}
|