@huaweicloud/huaweicloud-sdk-smn 3.1.39 → 3.1.41
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 +2 -2
- package/v2/SmnClient.d.ts +168 -30
- package/v2/SmnClient.js +328 -45
- package/v2/SmnRegion.d.ts +2 -0
- package/v2/SmnRegion.js +5 -1
- package/v2/model/AccessPolicy.d.ts +16 -0
- package/v2/model/AccessPolicy.js +54 -0
- package/v2/model/AddSubscriptionRequestBody.d.ts +3 -0
- package/v2/model/AddSubscriptionRequestBody.js +4 -0
- package/v2/model/CreateLogtankRequest.d.ts +10 -0
- package/v2/model/CreateLogtankRequest.js +28 -0
- package/v2/model/CreateLogtankRequestBody.d.ts +11 -0
- package/v2/model/CreateLogtankRequestBody.js +39 -0
- package/v2/model/CreateLogtankResponse.d.ts +10 -0
- package/v2/model/CreateLogtankResponse.js +45 -0
- package/v2/model/CreateResourceTagRequestBody.d.ts +3 -3
- package/v2/model/DeleteLogtankRequest.d.ts +11 -0
- package/v2/model/DeleteLogtankRequest.js +39 -0
- package/v2/model/DeleteLogtankResponse.d.ts +8 -0
- package/v2/model/DeleteLogtankResponse.js +41 -0
- package/v2/model/ListLogtankRequest.d.ts +7 -0
- package/v2/model/ListLogtankRequest.js +24 -0
- package/v2/model/ListLogtankResponse.d.ts +13 -0
- package/v2/model/ListLogtankResponse.js +49 -0
- package/v2/model/ListTopicDetailsResponse.d.ts +4 -0
- package/v2/model/ListTopicDetailsResponse.js +14 -0
- package/v2/model/ListTopicsItem.d.ts +5 -1
- package/v2/model/ListTopicsItem.js +16 -1
- package/v2/model/ListTopicsRequest.d.ts +4 -0
- package/v2/model/ListTopicsRequest.js +14 -0
- package/v2/model/ListVersionRequest.d.ts +1 -5
- package/v2/model/ListVersionRequest.js +1 -16
- package/v2/model/ListVersionResponse.d.ts +3 -2
- package/v2/model/LogtankItem.d.ts +21 -0
- package/v2/model/LogtankItem.js +74 -0
- package/v2/model/SubscriptionExtension.d.ts +17 -0
- package/v2/model/SubscriptionExtension.js +55 -0
- package/v2/model/TopicAttribute.d.ts +8 -14
- package/v2/model/TopicAttribute.js +9 -36
- package/v2/model/UpdateLogtankRequest.d.ts +14 -0
- package/v2/model/UpdateLogtankRequest.js +43 -0
- package/v2/model/UpdateLogtankRequestBody.d.ts +11 -0
- package/v2/model/UpdateLogtankRequestBody.js +39 -0
- package/v2/model/UpdateLogtankResponse.d.ts +11 -0
- package/v2/model/UpdateLogtankResponse.js +45 -0
- package/v2/model/UpdateSubscriptionRequest.d.ts +14 -0
- package/v2/model/UpdateSubscriptionRequest.js +43 -0
- package/v2/model/UpdateSubscriptionRequestBody.d.ts +5 -0
- package/v2/model/UpdateSubscriptionRequestBody.js +14 -0
- package/v2/model/UpdateSubscriptionResponse.d.ts +12 -0
- package/v2/model/UpdateSubscriptionResponse.js +55 -0
- package/v2/public-api.d.ts +16 -1
- package/v2/public-api.js +16 -1
- package/v2/model/CreateResourceTagRequestBodyTag.d.ts +0 -7
- package/v2/model/CreateResourceTagRequestBodyTag.js +0 -19
package/v2/SmnClient.js
CHANGED
|
@@ -22,11 +22,13 @@ var BatchCreateOrDeleteResourceTagsRequest_1 = require("./model/BatchCreateOrDel
|
|
|
22
22
|
var CancelSubscriptionRequest_1 = require("./model/CancelSubscriptionRequest");
|
|
23
23
|
var CreateApplicationEndpointRequest_1 = require("./model/CreateApplicationEndpointRequest");
|
|
24
24
|
var CreateApplicationRequest_1 = require("./model/CreateApplicationRequest");
|
|
25
|
+
var CreateLogtankRequest_1 = require("./model/CreateLogtankRequest");
|
|
25
26
|
var CreateMessageTemplateRequest_1 = require("./model/CreateMessageTemplateRequest");
|
|
26
27
|
var CreateResourceTagRequest_1 = require("./model/CreateResourceTagRequest");
|
|
27
28
|
var CreateTopicRequest_1 = require("./model/CreateTopicRequest");
|
|
28
29
|
var DeleteApplicationEndpointRequest_1 = require("./model/DeleteApplicationEndpointRequest");
|
|
29
30
|
var DeleteApplicationRequest_1 = require("./model/DeleteApplicationRequest");
|
|
31
|
+
var DeleteLogtankRequest_1 = require("./model/DeleteLogtankRequest");
|
|
30
32
|
var DeleteMessageTemplateRequest_1 = require("./model/DeleteMessageTemplateRequest");
|
|
31
33
|
var DeleteResourceTagRequest_1 = require("./model/DeleteResourceTagRequest");
|
|
32
34
|
var DeleteTopicAttributeByNameRequest_1 = require("./model/DeleteTopicAttributeByNameRequest");
|
|
@@ -36,6 +38,7 @@ var ListApplicationAttributesRequest_1 = require("./model/ListApplicationAttribu
|
|
|
36
38
|
var ListApplicationEndpointAttributesRequest_1 = require("./model/ListApplicationEndpointAttributesRequest");
|
|
37
39
|
var ListApplicationEndpointsRequest_1 = require("./model/ListApplicationEndpointsRequest");
|
|
38
40
|
var ListApplicationsRequest_1 = require("./model/ListApplicationsRequest");
|
|
41
|
+
var ListLogtankRequest_1 = require("./model/ListLogtankRequest");
|
|
39
42
|
var ListMessageTemplateDetailsRequest_1 = require("./model/ListMessageTemplateDetailsRequest");
|
|
40
43
|
var ListMessageTemplatesRequest_1 = require("./model/ListMessageTemplatesRequest");
|
|
41
44
|
var ListProjectTagsRequest_1 = require("./model/ListProjectTagsRequest");
|
|
@@ -46,12 +49,13 @@ var ListSubscriptionsRequest_1 = require("./model/ListSubscriptionsRequest");
|
|
|
46
49
|
var ListTopicAttributesRequest_1 = require("./model/ListTopicAttributesRequest");
|
|
47
50
|
var ListTopicDetailsRequest_1 = require("./model/ListTopicDetailsRequest");
|
|
48
51
|
var ListTopicsRequest_1 = require("./model/ListTopicsRequest");
|
|
49
|
-
var ListVersionRequest_1 = require("./model/ListVersionRequest");
|
|
50
52
|
var PublishAppMessageRequest_1 = require("./model/PublishAppMessageRequest");
|
|
51
53
|
var PublishMessageRequest_1 = require("./model/PublishMessageRequest");
|
|
52
54
|
var UpdateApplicationEndpointRequest_1 = require("./model/UpdateApplicationEndpointRequest");
|
|
53
55
|
var UpdateApplicationRequest_1 = require("./model/UpdateApplicationRequest");
|
|
56
|
+
var UpdateLogtankRequest_1 = require("./model/UpdateLogtankRequest");
|
|
54
57
|
var UpdateMessageTemplateRequest_1 = require("./model/UpdateMessageTemplateRequest");
|
|
58
|
+
var UpdateSubscriptionRequest_1 = require("./model/UpdateSubscriptionRequest");
|
|
55
59
|
var UpdateTopicAttributeRequest_1 = require("./model/UpdateTopicAttributeRequest");
|
|
56
60
|
var UpdateTopicRequest_1 = require("./model/UpdateTopicRequest");
|
|
57
61
|
var SmnClient = /** @class */ (function () {
|
|
@@ -70,7 +74,7 @@ var SmnClient = /** @class */ (function () {
|
|
|
70
74
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
71
75
|
*
|
|
72
76
|
* @summary 订阅
|
|
73
|
-
* @param {string} topicUrn Topic的唯一的资源标识,可通过[查询主题列表](
|
|
77
|
+
* @param {string} topicUrn Topic的唯一的资源标识,可通过[查询主题列表](smn_api_51004.xml)获取该标识。
|
|
74
78
|
* @param {AddSubscriptionRequestBody} [addSubscriptionRequestBody]
|
|
75
79
|
* @param {*} [options] Override http request option.
|
|
76
80
|
* @throws {RequiredError}
|
|
@@ -108,7 +112,7 @@ var SmnClient = /** @class */ (function () {
|
|
|
108
112
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
109
113
|
*
|
|
110
114
|
* @summary 取消订阅
|
|
111
|
-
* @param {string} subscriptionUrn 订阅者的唯一的资源标识,可通过[查询订阅者列表](
|
|
115
|
+
* @param {string} subscriptionUrn 订阅者的唯一的资源标识,可通过[查询订阅者列表](ListSubscriptions.xml)获取该标识。
|
|
112
116
|
* @param {*} [options] Override http request option.
|
|
113
117
|
* @throws {RequiredError}
|
|
114
118
|
*/
|
|
@@ -118,6 +122,23 @@ var SmnClient = /** @class */ (function () {
|
|
|
118
122
|
options['responseHeaders'] = [''];
|
|
119
123
|
return this.hcClient.sendRequest(options);
|
|
120
124
|
};
|
|
125
|
+
/**
|
|
126
|
+
* 为指定Topic绑定一个云日志,用于记录主题消息发送状态等信息。
|
|
127
|
+
*
|
|
128
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
129
|
+
*
|
|
130
|
+
* @summary 绑定云日志
|
|
131
|
+
* @param {string} topicUrn Topic的唯一的资源标识,可通过[查询主题列表](smn_api_51004.xml)获取该标识。
|
|
132
|
+
* @param {CreateLogtankRequestBody} createLogTankBody This is an auto create Body Object
|
|
133
|
+
* @param {*} [options] Override http request option.
|
|
134
|
+
* @throws {RequiredError}
|
|
135
|
+
*/
|
|
136
|
+
SmnClient.prototype.createLogtank = function (createLogtankRequest) {
|
|
137
|
+
var options = (0, exports.ParamCreater)().createLogtank(createLogtankRequest);
|
|
138
|
+
// @ts-ignore
|
|
139
|
+
options['responseHeaders'] = [''];
|
|
140
|
+
return this.hcClient.sendRequest(options);
|
|
141
|
+
};
|
|
121
142
|
/**
|
|
122
143
|
* 创建一个模板,用户可以按照模板去发送消息,这样可以减少请求的数据量。
|
|
123
144
|
* 单用户默认可创建100个消息模板,高并发场景下,可能会出现消息模板数量超过100仍创建成功的情况,此为正常现象。
|
|
@@ -170,13 +191,30 @@ var SmnClient = /** @class */ (function () {
|
|
|
170
191
|
options['responseHeaders'] = [''];
|
|
171
192
|
return this.hcClient.sendRequest(options);
|
|
172
193
|
};
|
|
194
|
+
/**
|
|
195
|
+
* 解绑指定Topic绑定的云日志。
|
|
196
|
+
*
|
|
197
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
198
|
+
*
|
|
199
|
+
* @summary 解绑云日志
|
|
200
|
+
* @param {string} topicUrn Topic的唯一的资源标识,可通过[查询主题列表](smn_api_51004.xml)获取该标识。
|
|
201
|
+
* @param {string} logtankId 云日志信息唯一的资源标识。可通过[查询云日志](ListLogtank.xml)获取该标识。
|
|
202
|
+
* @param {*} [options] Override http request option.
|
|
203
|
+
* @throws {RequiredError}
|
|
204
|
+
*/
|
|
205
|
+
SmnClient.prototype.deleteLogtank = function (deleteLogtankRequest) {
|
|
206
|
+
var options = (0, exports.ParamCreater)().deleteLogtank(deleteLogtankRequest);
|
|
207
|
+
// @ts-ignore
|
|
208
|
+
options['responseHeaders'] = [''];
|
|
209
|
+
return this.hcClient.sendRequest(options);
|
|
210
|
+
};
|
|
173
211
|
/**
|
|
174
212
|
* 删除消息模板。删除模板之前的消息请求都可以使用该模板发送,删除之后无法再使用该模板发送消息。
|
|
175
213
|
*
|
|
176
214
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
177
215
|
*
|
|
178
216
|
* @summary 删除消息模板
|
|
179
|
-
* @param {string} messageTemplateId 模板唯一的资源标识,可通过查询[消息模板列表](
|
|
217
|
+
* @param {string} messageTemplateId 模板唯一的资源标识,可通过查询[消息模板列表](ListMessageTemplates.xml)获取该标识。
|
|
180
218
|
* @param {*} [options] Override http request option.
|
|
181
219
|
* @throws {RequiredError}
|
|
182
220
|
*/
|
|
@@ -210,7 +248,7 @@ var SmnClient = /** @class */ (function () {
|
|
|
210
248
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
211
249
|
*
|
|
212
250
|
* @summary 删除主题
|
|
213
|
-
* @param {string} topicUrn Topic的唯一的资源标识,可通过[查询主题列表](
|
|
251
|
+
* @param {string} topicUrn Topic的唯一的资源标识,可通过[查询主题列表](smn_api_51004.xml)获取该标识。
|
|
214
252
|
* @param {*} [options] Override http request option.
|
|
215
253
|
* @throws {RequiredError}
|
|
216
254
|
*/
|
|
@@ -226,8 +264,8 @@ var SmnClient = /** @class */ (function () {
|
|
|
226
264
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
227
265
|
*
|
|
228
266
|
* @summary 删除指定名称的主题策略
|
|
229
|
-
* @param {string} topicUrn Topic的唯一的资源标识,可通过[查询主题列表](
|
|
230
|
-
* @param {string} name 主题策略名称。 只支持特定的策略名称,请参见[Topic属性表](
|
|
267
|
+
* @param {string} topicUrn Topic的唯一的资源标识,可通过[查询主题列表](smn_api_51004.xml)获取该标识。
|
|
268
|
+
* @param {string} name 主题策略名称。 只支持特定的策略名称,请参见[Topic属性表](smn_api_a1000.xml)。
|
|
231
269
|
* @param {*} [options] Override http request option.
|
|
232
270
|
* @throws {RequiredError}
|
|
233
271
|
*/
|
|
@@ -243,7 +281,7 @@ var SmnClient = /** @class */ (function () {
|
|
|
243
281
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
244
282
|
*
|
|
245
283
|
* @summary 删除所有主题策略
|
|
246
|
-
* @param {string} topicUrn Topic的唯一的资源标识,可通过[查询主题列表](
|
|
284
|
+
* @param {string} topicUrn Topic的唯一的资源标识,可通过[查询主题列表](smn_api_51004.xml)获取该标识。
|
|
247
285
|
* @param {*} [options] Override http request option.
|
|
248
286
|
* @throws {RequiredError}
|
|
249
287
|
*/
|
|
@@ -253,13 +291,29 @@ var SmnClient = /** @class */ (function () {
|
|
|
253
291
|
options['responseHeaders'] = [''];
|
|
254
292
|
return this.hcClient.sendRequest(options);
|
|
255
293
|
};
|
|
294
|
+
/**
|
|
295
|
+
* 查询指定Topic绑定的云日志。
|
|
296
|
+
*
|
|
297
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
298
|
+
*
|
|
299
|
+
* @summary 查询云日志
|
|
300
|
+
* @param {string} topicUrn Topic的唯一的资源标识,可通过[查询主题列表](smn_api_51004.xml)获取该标识。
|
|
301
|
+
* @param {*} [options] Override http request option.
|
|
302
|
+
* @throws {RequiredError}
|
|
303
|
+
*/
|
|
304
|
+
SmnClient.prototype.listLogtank = function (listLogtankRequest) {
|
|
305
|
+
var options = (0, exports.ParamCreater)().listLogtank(listLogtankRequest);
|
|
306
|
+
// @ts-ignore
|
|
307
|
+
options['responseHeaders'] = [''];
|
|
308
|
+
return this.hcClient.sendRequest(options);
|
|
309
|
+
};
|
|
256
310
|
/**
|
|
257
311
|
* 查询模板详情,包括模板内容。
|
|
258
312
|
*
|
|
259
313
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
260
314
|
*
|
|
261
315
|
* @summary 查询消息模板详情
|
|
262
|
-
* @param {string} messageTemplateId 模板唯一的资源标识,可通过查询[消息模板列表](
|
|
316
|
+
* @param {string} messageTemplateId 模板唯一的资源标识,可通过查询[消息模板列表](ListMessageTemplates.xml)获取该标识。
|
|
263
317
|
* @param {*} [options] Override http request option.
|
|
264
318
|
* @throws {RequiredError}
|
|
265
319
|
*/
|
|
@@ -364,7 +418,7 @@ var SmnClient = /** @class */ (function () {
|
|
|
364
418
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
365
419
|
*
|
|
366
420
|
* @summary 查询指定Topic的订阅者列表
|
|
367
|
-
* @param {string} topicUrn Topic的唯一的资源标识,可通过[查询主题列表](
|
|
421
|
+
* @param {string} topicUrn Topic的唯一的资源标识,可通过[查询主题列表](smn_api_51004.xml)获取该标识。
|
|
368
422
|
* @param {number} [offset] 偏移量。 偏移量为一个大于0小于资源总个数的整数,表示查询该偏移量后面的所有的资源,默认值为0。
|
|
369
423
|
* @param {number} [limit] 查询的数量限制。 取值范围:1~100,取值一般为10,20,50。功能说明:每页返回的资源个数。默认值为100。
|
|
370
424
|
* @param {*} [options] Override http request option.
|
|
@@ -382,8 +436,8 @@ var SmnClient = /** @class */ (function () {
|
|
|
382
436
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
383
437
|
*
|
|
384
438
|
* @summary 查询主题策略
|
|
385
|
-
* @param {string} topicUrn Topic的唯一的资源标识,可通过[查询主题列表](
|
|
386
|
-
* @param {string} name 主题策略名称。 只支持特定的策略名称,请参见[Topic属性表](
|
|
439
|
+
* @param {string} topicUrn Topic的唯一的资源标识,可通过[查询主题列表](smn_api_51004.xml)获取该标识。
|
|
440
|
+
* @param {string} name 主题策略名称。 只支持特定的策略名称,请参见[Topic属性表](smn_api_a1000.xml)。
|
|
387
441
|
* @param {*} [options] Override http request option.
|
|
388
442
|
* @throws {RequiredError}
|
|
389
443
|
*/
|
|
@@ -399,7 +453,7 @@ var SmnClient = /** @class */ (function () {
|
|
|
399
453
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
400
454
|
*
|
|
401
455
|
* @summary 查询主题详情
|
|
402
|
-
* @param {string} topicUrn Topic的唯一的资源标识,可通过[查询主题列表](
|
|
456
|
+
* @param {string} topicUrn Topic的唯一的资源标识,可通过[查询主题列表](smn_api_51004.xml)获取该标识。
|
|
403
457
|
* @param {*} [options] Override http request option.
|
|
404
458
|
* @throws {RequiredError}
|
|
405
459
|
*/
|
|
@@ -420,6 +474,7 @@ var SmnClient = /** @class */ (function () {
|
|
|
420
474
|
* @param {string} [enterpriseProjectId] 企业项目id,默认企业项目id为0。
|
|
421
475
|
* @param {string} [name] 检索的主题名称,完全匹配。
|
|
422
476
|
* @param {string} [fuzzyName] 检索的主题名称,模糊匹配,按照startwith模式进行匹配。
|
|
477
|
+
* @param {string} [topicId] 检索的主题ID,完全匹配。
|
|
423
478
|
* @param {*} [options] Override http request option.
|
|
424
479
|
* @throws {RequiredError}
|
|
425
480
|
*/
|
|
@@ -435,12 +490,11 @@ var SmnClient = /** @class */ (function () {
|
|
|
435
490
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
436
491
|
*
|
|
437
492
|
* @summary 查询SMN API V2版本信息
|
|
438
|
-
* @param {string} apiVersion 待查询版本号。当前仅支持v2。
|
|
439
493
|
* @param {*} [options] Override http request option.
|
|
440
494
|
* @throws {RequiredError}
|
|
441
495
|
*/
|
|
442
|
-
SmnClient.prototype.listVersion = function (
|
|
443
|
-
var options = (0, exports.ParamCreater)().listVersion(
|
|
496
|
+
SmnClient.prototype.listVersion = function () {
|
|
497
|
+
var options = (0, exports.ParamCreater)().listVersion();
|
|
444
498
|
// @ts-ignore
|
|
445
499
|
options['responseHeaders'] = [''];
|
|
446
500
|
return this.hcClient.sendRequest(options);
|
|
@@ -475,7 +529,7 @@ var SmnClient = /** @class */ (function () {
|
|
|
475
529
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
476
530
|
*
|
|
477
531
|
* @summary 消息发布
|
|
478
|
-
* @param {string} topicUrn Topic的唯一的资源标识,可通过[查询主题列表](
|
|
532
|
+
* @param {string} topicUrn Topic的唯一的资源标识,可通过[查询主题列表](smn_api_51004.xml)获取该标识。
|
|
479
533
|
* @param {PublishMessageRequestBody} [publishMessageRequestBody]
|
|
480
534
|
* @param {*} [options] Override http request option.
|
|
481
535
|
* @throws {RequiredError}
|
|
@@ -486,13 +540,31 @@ var SmnClient = /** @class */ (function () {
|
|
|
486
540
|
options['responseHeaders'] = [''];
|
|
487
541
|
return this.hcClient.sendRequest(options);
|
|
488
542
|
};
|
|
543
|
+
/**
|
|
544
|
+
* 更新指定Topic绑定的云日志。
|
|
545
|
+
*
|
|
546
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
547
|
+
*
|
|
548
|
+
* @summary 更新云日志
|
|
549
|
+
* @param {string} topicUrn Topic的唯一的资源标识,可通过[查询主题列表](smn_api_51004.xml)获取该标识。
|
|
550
|
+
* @param {string} logtankId 云日志信息唯一的资源标识。可通过[查询云日志](ListLogtank.xml)获取该标识。
|
|
551
|
+
* @param {UpdateLogtankRequestBody} updateLogTankRequestBody This is an auto create Body Object
|
|
552
|
+
* @param {*} [options] Override http request option.
|
|
553
|
+
* @throws {RequiredError}
|
|
554
|
+
*/
|
|
555
|
+
SmnClient.prototype.updateLogtank = function (updateLogtankRequest) {
|
|
556
|
+
var options = (0, exports.ParamCreater)().updateLogtank(updateLogtankRequest);
|
|
557
|
+
// @ts-ignore
|
|
558
|
+
options['responseHeaders'] = [''];
|
|
559
|
+
return this.hcClient.sendRequest(options);
|
|
560
|
+
};
|
|
489
561
|
/**
|
|
490
562
|
* 修改消息模板的内容。
|
|
491
563
|
*
|
|
492
564
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
493
565
|
*
|
|
494
566
|
* @summary 更新消息模板
|
|
495
|
-
* @param {string} messageTemplateId 模板唯一的资源标识,可通过查询[消息模板列表](
|
|
567
|
+
* @param {string} messageTemplateId 模板唯一的资源标识,可通过查询[消息模板列表](ListMessageTemplates.xml)获取该标识。
|
|
496
568
|
* @param {UpdateMessageTemplateRequestBody} [updateMessageTemplateRequestBody]
|
|
497
569
|
* @param {*} [options] Override http request option.
|
|
498
570
|
* @throws {RequiredError}
|
|
@@ -503,13 +575,31 @@ var SmnClient = /** @class */ (function () {
|
|
|
503
575
|
options['responseHeaders'] = [''];
|
|
504
576
|
return this.hcClient.sendRequest(options);
|
|
505
577
|
};
|
|
578
|
+
/**
|
|
579
|
+
* 更新订阅者备注。
|
|
580
|
+
*
|
|
581
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
582
|
+
*
|
|
583
|
+
* @summary 更新订阅者
|
|
584
|
+
* @param {string} topicUrn Topic的唯一的资源标识。可以通过[查看主题列表](smn_api_51004.xml)获取该标识。
|
|
585
|
+
* @param {string} subscriptionUrn 订阅者的唯一的资源标识,可通过[查询订阅者列表](ListSubscriptions.xml)获取该标识。
|
|
586
|
+
* @param {UpdateSubscriptionRequestBody} updateSubscriptionRequestBody This is a auto create Body Object
|
|
587
|
+
* @param {*} [options] Override http request option.
|
|
588
|
+
* @throws {RequiredError}
|
|
589
|
+
*/
|
|
590
|
+
SmnClient.prototype.updateSubscription = function (updateSubscriptionRequest) {
|
|
591
|
+
var options = (0, exports.ParamCreater)().updateSubscription(updateSubscriptionRequest);
|
|
592
|
+
// @ts-ignore
|
|
593
|
+
options['responseHeaders'] = [''];
|
|
594
|
+
return this.hcClient.sendRequest(options);
|
|
595
|
+
};
|
|
506
596
|
/**
|
|
507
597
|
* 更新显示名。
|
|
508
598
|
*
|
|
509
599
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
510
600
|
*
|
|
511
601
|
* @summary 更新主题
|
|
512
|
-
* @param {string} topicUrn Topic的唯一的资源标识。可以通过[查看主题列表](
|
|
602
|
+
* @param {string} topicUrn Topic的唯一的资源标识。可以通过[查看主题列表](smn_api_51004.xml)获取该标识。
|
|
513
603
|
* @param {UpdateTopicRequestBody} updateTopicRequestBody This is a auto create Body Object
|
|
514
604
|
* @param {*} [options] Override http request option.
|
|
515
605
|
* @throws {RequiredError}
|
|
@@ -526,8 +616,8 @@ var SmnClient = /** @class */ (function () {
|
|
|
526
616
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
527
617
|
*
|
|
528
618
|
* @summary 更新主题策略
|
|
529
|
-
* @param {string} topicUrn Topic的唯一的资源标识,可通过[查询主题列表](
|
|
530
|
-
* @param {string} name 主题策略名称。 只支持特定的策略名称,请参见[Topic属性表](
|
|
619
|
+
* @param {string} topicUrn Topic的唯一的资源标识,可通过[查询主题列表](smn_api_51004.xml)获取该标识。
|
|
620
|
+
* @param {string} name 主题策略名称。 只支持特定的策略名称,请参见[Topic属性表](smn_api_a1000.xml)。
|
|
531
621
|
* @param {UpdateTopicAttributeRequestBody} updateTopicAttributeRequestBody This is a auto create Body Object
|
|
532
622
|
* @param {*} [options] Override http request option.
|
|
533
623
|
* @throws {RequiredError}
|
|
@@ -560,7 +650,7 @@ var SmnClient = /** @class */ (function () {
|
|
|
560
650
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
561
651
|
*
|
|
562
652
|
* @summary 删除Application
|
|
563
|
-
* @param {string} applicationUrn Application的唯一资源标识,可通过[查询Application](
|
|
653
|
+
* @param {string} applicationUrn Application的唯一资源标识,可通过[查询Application](smn_api_57004.xml)获取该标识。
|
|
564
654
|
* @param {*} [options] Override http request option.
|
|
565
655
|
* @throws {RequiredError}
|
|
566
656
|
*/
|
|
@@ -576,7 +666,7 @@ var SmnClient = /** @class */ (function () {
|
|
|
576
666
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
577
667
|
*
|
|
578
668
|
* @summary 查询Application属性
|
|
579
|
-
* @param {string} applicationUrn Application的唯一资源标识,可通过[查询Application](
|
|
669
|
+
* @param {string} applicationUrn Application的唯一资源标识,可通过[查询Application](smn_api_57004.xml)获取该标识。
|
|
580
670
|
* @param {*} [options] Override http request option.
|
|
581
671
|
* @throws {RequiredError}
|
|
582
672
|
*/
|
|
@@ -611,7 +701,7 @@ var SmnClient = /** @class */ (function () {
|
|
|
611
701
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
612
702
|
*
|
|
613
703
|
* @summary App消息发布
|
|
614
|
-
* @param {string} endpointUrn Endpoint的唯一资源标识,可通过[查询Application的Endpoint列表](
|
|
704
|
+
* @param {string} endpointUrn Endpoint的唯一资源标识,可通过[查询Application的Endpoint列表](smn_api_58004.xml)获取该标识
|
|
615
705
|
* @param {PublishAppMessageRequestBody} [publishAppMessageRequestBody]
|
|
616
706
|
* @param {*} [options] Override http request option.
|
|
617
707
|
* @throws {RequiredError}
|
|
@@ -628,7 +718,7 @@ var SmnClient = /** @class */ (function () {
|
|
|
628
718
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
629
719
|
*
|
|
630
720
|
* @summary 更新Application
|
|
631
|
-
* @param {string} applicationUrn Application的唯一资源标识,可通过[查询Application](
|
|
721
|
+
* @param {string} applicationUrn Application的唯一资源标识,可通过[查询Application](smn_api_57004.xml)获取该标识。
|
|
632
722
|
* @param {UpdateApplicationRequestBody} [updateApplicationRequestBody]
|
|
633
723
|
* @param {*} [options] Override http request option.
|
|
634
724
|
* @throws {RequiredError}
|
|
@@ -645,7 +735,7 @@ var SmnClient = /** @class */ (function () {
|
|
|
645
735
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
646
736
|
*
|
|
647
737
|
* @summary 创建Application endpoint
|
|
648
|
-
* @param {string} applicationUrn Application的唯一资源标识,可通过[查询Application](
|
|
738
|
+
* @param {string} applicationUrn Application的唯一资源标识,可通过[查询Application](smn_api_57004.xml)获取该标识。
|
|
649
739
|
* @param {CreateApplicationEndpointRequestBody} [createApplicationEndpointRequestBody]
|
|
650
740
|
* @param {*} [options] Override http request option.
|
|
651
741
|
* @throws {RequiredError}
|
|
@@ -662,7 +752,7 @@ var SmnClient = /** @class */ (function () {
|
|
|
662
752
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
663
753
|
*
|
|
664
754
|
* @summary 删除Application endpoint
|
|
665
|
-
* @param {string} endpointUrn Endpoint的唯一资源标识,可通过[查询Application的Endpoint列表](
|
|
755
|
+
* @param {string} endpointUrn Endpoint的唯一资源标识,可通过[查询Application的Endpoint列表](smn_api_58004.xml)获取该标识。
|
|
666
756
|
* @param {*} [options] Override http request option.
|
|
667
757
|
* @throws {RequiredError}
|
|
668
758
|
*/
|
|
@@ -678,7 +768,7 @@ var SmnClient = /** @class */ (function () {
|
|
|
678
768
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
679
769
|
*
|
|
680
770
|
* @summary 查询Application的Endpoint属性
|
|
681
|
-
* @param {string} endpointUrn Endpoint的唯一资源标识,可通过[查询Application的Endpoint列表](
|
|
771
|
+
* @param {string} endpointUrn Endpoint的唯一资源标识,可通过[查询Application的Endpoint列表](smn_api_58004.xml)获取该标识。
|
|
682
772
|
* @param {*} [options] Override http request option.
|
|
683
773
|
* @throws {RequiredError}
|
|
684
774
|
*/
|
|
@@ -694,7 +784,7 @@ var SmnClient = /** @class */ (function () {
|
|
|
694
784
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
695
785
|
*
|
|
696
786
|
* @summary 查询Application的Endpoint列表
|
|
697
|
-
* @param {string} applicationUrn Application的唯一资源标识,可通过[查询Application](
|
|
787
|
+
* @param {string} applicationUrn Application的唯一资源标识,可通过[查询Application](smn_api_57004.xml)获取该标识。
|
|
698
788
|
* @param {number} [offset] 偏移量。 偏移量为一个大于0小于资源总个数的整数,表示查询该偏移量后面的所有的资源,默认值为0。
|
|
699
789
|
* @param {number} [limit] 查询的数量限制。 取值范围:1~100,取值一般为10,20,50。功能说明:每页返回的资源个数。默认值为100。
|
|
700
790
|
* @param {string} [enabled] 设备是否可用,值为true或false字符串。
|
|
@@ -715,7 +805,7 @@ var SmnClient = /** @class */ (function () {
|
|
|
715
805
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
716
806
|
*
|
|
717
807
|
* @summary 更新Application endpoint
|
|
718
|
-
* @param {string} endpointUrn Endpoint的唯一资源标识,可通过[查询Application的Endpoint列表](
|
|
808
|
+
* @param {string} endpointUrn Endpoint的唯一资源标识,可通过[查询Application的Endpoint列表](smn_api_58004.xml)获取该标识。
|
|
719
809
|
* @param {UpdateApplicationEndpointRequestBody} [updateApplicationEndpointRequestBody]
|
|
720
810
|
* @param {*} [options] Override http request option.
|
|
721
811
|
* @throws {RequiredError}
|
|
@@ -845,6 +935,46 @@ var ParamCreater = function () {
|
|
|
845
935
|
options.headers = localVarHeaderParameter;
|
|
846
936
|
return options;
|
|
847
937
|
},
|
|
938
|
+
/**
|
|
939
|
+
* 为指定Topic绑定一个云日志,用于记录主题消息发送状态等信息。
|
|
940
|
+
*
|
|
941
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
942
|
+
*/
|
|
943
|
+
createLogtank: function (createLogtankRequest) {
|
|
944
|
+
var options = {
|
|
945
|
+
method: "POST",
|
|
946
|
+
url: "/v2/{project_id}/notifications/topics/{topic_urn}/logtanks",
|
|
947
|
+
contentType: "application/json;charset=UTF-8",
|
|
948
|
+
queryParams: {},
|
|
949
|
+
pathParams: {},
|
|
950
|
+
headers: {},
|
|
951
|
+
data: {}
|
|
952
|
+
};
|
|
953
|
+
var localVarHeaderParameter = {};
|
|
954
|
+
var body;
|
|
955
|
+
var topicUrn;
|
|
956
|
+
if (createLogtankRequest !== null && createLogtankRequest !== undefined) {
|
|
957
|
+
if (createLogtankRequest instanceof CreateLogtankRequest_1.CreateLogtankRequest) {
|
|
958
|
+
topicUrn = createLogtankRequest.topicUrn;
|
|
959
|
+
body = createLogtankRequest.body;
|
|
960
|
+
}
|
|
961
|
+
else {
|
|
962
|
+
topicUrn = createLogtankRequest['topic_urn'];
|
|
963
|
+
body = createLogtankRequest['body'];
|
|
964
|
+
}
|
|
965
|
+
}
|
|
966
|
+
if (topicUrn === null || topicUrn === undefined) {
|
|
967
|
+
throw new RequiredError('topicUrn', 'Required parameter topicUrn was null or undefined when calling createLogtank.');
|
|
968
|
+
}
|
|
969
|
+
if (body === null || body === undefined) {
|
|
970
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
971
|
+
}
|
|
972
|
+
localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
|
|
973
|
+
options.data = body !== undefined ? body : {};
|
|
974
|
+
options.pathParams = { 'topic_urn': topicUrn, };
|
|
975
|
+
options.headers = localVarHeaderParameter;
|
|
976
|
+
return options;
|
|
977
|
+
},
|
|
848
978
|
/**
|
|
849
979
|
* 创建一个模板,用户可以按照模板去发送消息,这样可以减少请求的数据量。
|
|
850
980
|
* 单用户默认可创建100个消息模板,高并发场景下,可能会出现消息模板数量超过100仍创建成功的情况,此为正常现象。
|
|
@@ -953,6 +1083,43 @@ var ParamCreater = function () {
|
|
|
953
1083
|
options.headers = localVarHeaderParameter;
|
|
954
1084
|
return options;
|
|
955
1085
|
},
|
|
1086
|
+
/**
|
|
1087
|
+
* 解绑指定Topic绑定的云日志。
|
|
1088
|
+
*
|
|
1089
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1090
|
+
*/
|
|
1091
|
+
deleteLogtank: function (deleteLogtankRequest) {
|
|
1092
|
+
var options = {
|
|
1093
|
+
method: "DELETE",
|
|
1094
|
+
url: "/v2/{project_id}/notifications/topics/{topic_urn}/logtanks/{logtank_id}",
|
|
1095
|
+
contentType: "application/json",
|
|
1096
|
+
queryParams: {},
|
|
1097
|
+
pathParams: {},
|
|
1098
|
+
headers: {}
|
|
1099
|
+
};
|
|
1100
|
+
var localVarHeaderParameter = {};
|
|
1101
|
+
var topicUrn;
|
|
1102
|
+
var logtankId;
|
|
1103
|
+
if (deleteLogtankRequest !== null && deleteLogtankRequest !== undefined) {
|
|
1104
|
+
if (deleteLogtankRequest instanceof DeleteLogtankRequest_1.DeleteLogtankRequest) {
|
|
1105
|
+
topicUrn = deleteLogtankRequest.topicUrn;
|
|
1106
|
+
logtankId = deleteLogtankRequest.logtankId;
|
|
1107
|
+
}
|
|
1108
|
+
else {
|
|
1109
|
+
topicUrn = deleteLogtankRequest['topic_urn'];
|
|
1110
|
+
logtankId = deleteLogtankRequest['logtank_id'];
|
|
1111
|
+
}
|
|
1112
|
+
}
|
|
1113
|
+
if (topicUrn === null || topicUrn === undefined) {
|
|
1114
|
+
throw new RequiredError('topicUrn', 'Required parameter topicUrn was null or undefined when calling deleteLogtank.');
|
|
1115
|
+
}
|
|
1116
|
+
if (logtankId === null || logtankId === undefined) {
|
|
1117
|
+
throw new RequiredError('logtankId', 'Required parameter logtankId was null or undefined when calling deleteLogtank.');
|
|
1118
|
+
}
|
|
1119
|
+
options.pathParams = { 'topic_urn': topicUrn, 'logtank_id': logtankId, };
|
|
1120
|
+
options.headers = localVarHeaderParameter;
|
|
1121
|
+
return options;
|
|
1122
|
+
},
|
|
956
1123
|
/**
|
|
957
1124
|
* 删除消息模板。删除模板之前的消息请求都可以使用该模板发送,删除之后无法再使用该模板发送消息。
|
|
958
1125
|
*
|
|
@@ -1126,6 +1293,37 @@ var ParamCreater = function () {
|
|
|
1126
1293
|
options.headers = localVarHeaderParameter;
|
|
1127
1294
|
return options;
|
|
1128
1295
|
},
|
|
1296
|
+
/**
|
|
1297
|
+
* 查询指定Topic绑定的云日志。
|
|
1298
|
+
*
|
|
1299
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1300
|
+
*/
|
|
1301
|
+
listLogtank: function (listLogtankRequest) {
|
|
1302
|
+
var options = {
|
|
1303
|
+
method: "GET",
|
|
1304
|
+
url: "/v2/{project_id}/notifications/topics/{topic_urn}/logtanks",
|
|
1305
|
+
contentType: "application/json",
|
|
1306
|
+
queryParams: {},
|
|
1307
|
+
pathParams: {},
|
|
1308
|
+
headers: {}
|
|
1309
|
+
};
|
|
1310
|
+
var localVarHeaderParameter = {};
|
|
1311
|
+
var topicUrn;
|
|
1312
|
+
if (listLogtankRequest !== null && listLogtankRequest !== undefined) {
|
|
1313
|
+
if (listLogtankRequest instanceof ListLogtankRequest_1.ListLogtankRequest) {
|
|
1314
|
+
topicUrn = listLogtankRequest.topicUrn;
|
|
1315
|
+
}
|
|
1316
|
+
else {
|
|
1317
|
+
topicUrn = listLogtankRequest['topic_urn'];
|
|
1318
|
+
}
|
|
1319
|
+
}
|
|
1320
|
+
if (topicUrn === null || topicUrn === undefined) {
|
|
1321
|
+
throw new RequiredError('topicUrn', 'Required parameter topicUrn was null or undefined when calling listLogtank.');
|
|
1322
|
+
}
|
|
1323
|
+
options.pathParams = { 'topic_urn': topicUrn, };
|
|
1324
|
+
options.headers = localVarHeaderParameter;
|
|
1325
|
+
return options;
|
|
1326
|
+
},
|
|
1129
1327
|
/**
|
|
1130
1328
|
* 查询模板详情,包括模板内容。
|
|
1131
1329
|
*
|
|
@@ -1507,6 +1705,7 @@ var ParamCreater = function () {
|
|
|
1507
1705
|
var enterpriseProjectId;
|
|
1508
1706
|
var name;
|
|
1509
1707
|
var fuzzyName;
|
|
1708
|
+
var topicId;
|
|
1510
1709
|
if (listTopicsRequest !== null && listTopicsRequest !== undefined) {
|
|
1511
1710
|
if (listTopicsRequest instanceof ListTopicsRequest_1.ListTopicsRequest) {
|
|
1512
1711
|
offset = listTopicsRequest.offset;
|
|
@@ -1514,6 +1713,7 @@ var ParamCreater = function () {
|
|
|
1514
1713
|
enterpriseProjectId = listTopicsRequest.enterpriseProjectId;
|
|
1515
1714
|
name = listTopicsRequest.name;
|
|
1516
1715
|
fuzzyName = listTopicsRequest.fuzzyName;
|
|
1716
|
+
topicId = listTopicsRequest.topicId;
|
|
1517
1717
|
}
|
|
1518
1718
|
else {
|
|
1519
1719
|
offset = listTopicsRequest['offset'];
|
|
@@ -1521,6 +1721,7 @@ var ParamCreater = function () {
|
|
|
1521
1721
|
enterpriseProjectId = listTopicsRequest['enterprise_project_id'];
|
|
1522
1722
|
name = listTopicsRequest['name'];
|
|
1523
1723
|
fuzzyName = listTopicsRequest['fuzzy_name'];
|
|
1724
|
+
topicId = listTopicsRequest['topic_id'];
|
|
1524
1725
|
}
|
|
1525
1726
|
}
|
|
1526
1727
|
if (offset !== null && offset !== undefined) {
|
|
@@ -1538,6 +1739,9 @@ var ParamCreater = function () {
|
|
|
1538
1739
|
if (fuzzyName !== null && fuzzyName !== undefined) {
|
|
1539
1740
|
localVarQueryParameter['fuzzy_name'] = fuzzyName;
|
|
1540
1741
|
}
|
|
1742
|
+
if (topicId !== null && topicId !== undefined) {
|
|
1743
|
+
localVarQueryParameter['topic_id'] = topicId;
|
|
1744
|
+
}
|
|
1541
1745
|
options.queryParams = localVarQueryParameter;
|
|
1542
1746
|
options.headers = localVarHeaderParameter;
|
|
1543
1747
|
return options;
|
|
@@ -1547,29 +1751,16 @@ var ParamCreater = function () {
|
|
|
1547
1751
|
*
|
|
1548
1752
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1549
1753
|
*/
|
|
1550
|
-
listVersion: function (
|
|
1754
|
+
listVersion: function () {
|
|
1551
1755
|
var options = {
|
|
1552
1756
|
method: "GET",
|
|
1553
|
-
url: "/
|
|
1757
|
+
url: "/v2",
|
|
1554
1758
|
contentType: "application/json",
|
|
1555
1759
|
queryParams: {},
|
|
1556
1760
|
pathParams: {},
|
|
1557
1761
|
headers: {}
|
|
1558
1762
|
};
|
|
1559
1763
|
var localVarHeaderParameter = {};
|
|
1560
|
-
var apiVersion;
|
|
1561
|
-
if (listVersionRequest !== null && listVersionRequest !== undefined) {
|
|
1562
|
-
if (listVersionRequest instanceof ListVersionRequest_1.ListVersionRequest) {
|
|
1563
|
-
apiVersion = listVersionRequest.apiVersion;
|
|
1564
|
-
}
|
|
1565
|
-
else {
|
|
1566
|
-
apiVersion = listVersionRequest['api_version'];
|
|
1567
|
-
}
|
|
1568
|
-
}
|
|
1569
|
-
if (apiVersion === null || apiVersion === undefined) {
|
|
1570
|
-
throw new RequiredError('apiVersion', 'Required parameter apiVersion was null or undefined when calling listVersion.');
|
|
1571
|
-
}
|
|
1572
|
-
options.pathParams = { 'api_version': apiVersion, };
|
|
1573
1764
|
options.headers = localVarHeaderParameter;
|
|
1574
1765
|
return options;
|
|
1575
1766
|
},
|
|
@@ -1637,6 +1828,52 @@ var ParamCreater = function () {
|
|
|
1637
1828
|
options.headers = localVarHeaderParameter;
|
|
1638
1829
|
return options;
|
|
1639
1830
|
},
|
|
1831
|
+
/**
|
|
1832
|
+
* 更新指定Topic绑定的云日志。
|
|
1833
|
+
*
|
|
1834
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1835
|
+
*/
|
|
1836
|
+
updateLogtank: function (updateLogtankRequest) {
|
|
1837
|
+
var options = {
|
|
1838
|
+
method: "PUT",
|
|
1839
|
+
url: "/v2/{project_id}/notifications/topics/{topic_urn}/logtanks/{logtank_id}",
|
|
1840
|
+
contentType: "application/json;charset=UTF-8",
|
|
1841
|
+
queryParams: {},
|
|
1842
|
+
pathParams: {},
|
|
1843
|
+
headers: {},
|
|
1844
|
+
data: {}
|
|
1845
|
+
};
|
|
1846
|
+
var localVarHeaderParameter = {};
|
|
1847
|
+
var body;
|
|
1848
|
+
var topicUrn;
|
|
1849
|
+
var logtankId;
|
|
1850
|
+
if (updateLogtankRequest !== null && updateLogtankRequest !== undefined) {
|
|
1851
|
+
if (updateLogtankRequest instanceof UpdateLogtankRequest_1.UpdateLogtankRequest) {
|
|
1852
|
+
topicUrn = updateLogtankRequest.topicUrn;
|
|
1853
|
+
logtankId = updateLogtankRequest.logtankId;
|
|
1854
|
+
body = updateLogtankRequest.body;
|
|
1855
|
+
}
|
|
1856
|
+
else {
|
|
1857
|
+
topicUrn = updateLogtankRequest['topic_urn'];
|
|
1858
|
+
logtankId = updateLogtankRequest['logtank_id'];
|
|
1859
|
+
body = updateLogtankRequest['body'];
|
|
1860
|
+
}
|
|
1861
|
+
}
|
|
1862
|
+
if (topicUrn === null || topicUrn === undefined) {
|
|
1863
|
+
throw new RequiredError('topicUrn', 'Required parameter topicUrn was null or undefined when calling updateLogtank.');
|
|
1864
|
+
}
|
|
1865
|
+
if (logtankId === null || logtankId === undefined) {
|
|
1866
|
+
throw new RequiredError('logtankId', 'Required parameter logtankId was null or undefined when calling updateLogtank.');
|
|
1867
|
+
}
|
|
1868
|
+
if (body === null || body === undefined) {
|
|
1869
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
1870
|
+
}
|
|
1871
|
+
localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
|
|
1872
|
+
options.data = body !== undefined ? body : {};
|
|
1873
|
+
options.pathParams = { 'topic_urn': topicUrn, 'logtank_id': logtankId, };
|
|
1874
|
+
options.headers = localVarHeaderParameter;
|
|
1875
|
+
return options;
|
|
1876
|
+
},
|
|
1640
1877
|
/**
|
|
1641
1878
|
* 修改消息模板的内容。
|
|
1642
1879
|
*
|
|
@@ -1674,6 +1911,52 @@ var ParamCreater = function () {
|
|
|
1674
1911
|
options.headers = localVarHeaderParameter;
|
|
1675
1912
|
return options;
|
|
1676
1913
|
},
|
|
1914
|
+
/**
|
|
1915
|
+
* 更新订阅者备注。
|
|
1916
|
+
*
|
|
1917
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1918
|
+
*/
|
|
1919
|
+
updateSubscription: function (updateSubscriptionRequest) {
|
|
1920
|
+
var options = {
|
|
1921
|
+
method: "PUT",
|
|
1922
|
+
url: "/v2/{project_id}/notifications/topics/{topic_urn}/subscriptions/{subscription_urn}",
|
|
1923
|
+
contentType: "application/json;charset=UTF-8",
|
|
1924
|
+
queryParams: {},
|
|
1925
|
+
pathParams: {},
|
|
1926
|
+
headers: {},
|
|
1927
|
+
data: {}
|
|
1928
|
+
};
|
|
1929
|
+
var localVarHeaderParameter = {};
|
|
1930
|
+
var body;
|
|
1931
|
+
var topicUrn;
|
|
1932
|
+
var subscriptionUrn;
|
|
1933
|
+
if (updateSubscriptionRequest !== null && updateSubscriptionRequest !== undefined) {
|
|
1934
|
+
if (updateSubscriptionRequest instanceof UpdateSubscriptionRequest_1.UpdateSubscriptionRequest) {
|
|
1935
|
+
topicUrn = updateSubscriptionRequest.topicUrn;
|
|
1936
|
+
subscriptionUrn = updateSubscriptionRequest.subscriptionUrn;
|
|
1937
|
+
body = updateSubscriptionRequest.body;
|
|
1938
|
+
}
|
|
1939
|
+
else {
|
|
1940
|
+
topicUrn = updateSubscriptionRequest['topic_urn'];
|
|
1941
|
+
subscriptionUrn = updateSubscriptionRequest['subscription_urn'];
|
|
1942
|
+
body = updateSubscriptionRequest['body'];
|
|
1943
|
+
}
|
|
1944
|
+
}
|
|
1945
|
+
if (topicUrn === null || topicUrn === undefined) {
|
|
1946
|
+
throw new RequiredError('topicUrn', 'Required parameter topicUrn was null or undefined when calling updateSubscription.');
|
|
1947
|
+
}
|
|
1948
|
+
if (subscriptionUrn === null || subscriptionUrn === undefined) {
|
|
1949
|
+
throw new RequiredError('subscriptionUrn', 'Required parameter subscriptionUrn was null or undefined when calling updateSubscription.');
|
|
1950
|
+
}
|
|
1951
|
+
if (body === null || body === undefined) {
|
|
1952
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
1953
|
+
}
|
|
1954
|
+
localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
|
|
1955
|
+
options.data = body !== undefined ? body : {};
|
|
1956
|
+
options.pathParams = { 'topic_urn': topicUrn, 'subscription_urn': subscriptionUrn, };
|
|
1957
|
+
options.headers = localVarHeaderParameter;
|
|
1958
|
+
return options;
|
|
1959
|
+
},
|
|
1677
1960
|
/**
|
|
1678
1961
|
* 更新显示名。
|
|
1679
1962
|
*
|