@huaweicloud/huaweicloud-sdk-smn 3.1.72 → 3.1.74
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 -1
- package/v2/SmnClient.d.ts.map +1 -1
- package/v2/SmnClient.js +343 -1
- package/v2/SmnClient.js.map +1 -1
- package/v2/model/AddSubscriptionFromSubscriptionUserRequest.d.ts +11 -0
- package/v2/model/AddSubscriptionFromSubscriptionUserRequest.d.ts.map +1 -0
- package/v2/model/AddSubscriptionFromSubscriptionUserRequest.js +24 -0
- package/v2/model/AddSubscriptionFromSubscriptionUserRequest.js.map +1 -0
- package/v2/model/AddSubscriptionFromSubscriptionUserRequestBody.d.ts +6 -0
- package/v2/model/AddSubscriptionFromSubscriptionUserRequestBody.d.ts.map +1 -0
- package/v2/model/AddSubscriptionFromSubscriptionUserRequestBody.js +14 -0
- package/v2/model/AddSubscriptionFromSubscriptionUserRequestBody.js.map +1 -0
- package/v2/model/AddSubscriptionFromSubscriptionUserResponse.d.ts +10 -0
- package/v2/model/AddSubscriptionFromSubscriptionUserResponse.d.ts.map +1 -0
- package/v2/model/AddSubscriptionFromSubscriptionUserResponse.js +21 -0
- package/v2/model/AddSubscriptionFromSubscriptionUserResponse.js.map +1 -0
- package/v2/model/AddSubscriptionFromSubscriptionUserResponseItem.d.ts +24 -0
- package/v2/model/AddSubscriptionFromSubscriptionUserResponseItem.d.ts.map +1 -0
- package/v2/model/AddSubscriptionFromSubscriptionUserResponseItem.js +61 -0
- package/v2/model/AddSubscriptionFromSubscriptionUserResponseItem.js.map +1 -0
- package/v2/model/BatchCreateSubscriptionsFilterPolicesRequest.d.ts +7 -0
- package/v2/model/BatchCreateSubscriptionsFilterPolicesRequest.d.ts.map +1 -0
- package/v2/model/BatchCreateSubscriptionsFilterPolicesRequest.js +13 -0
- package/v2/model/BatchCreateSubscriptionsFilterPolicesRequest.js.map +1 -0
- package/v2/model/BatchCreateSubscriptionsFilterPolicesResponse.d.ts +14 -0
- package/v2/model/BatchCreateSubscriptionsFilterPolicesResponse.d.ts.map +1 -0
- package/v2/model/BatchCreateSubscriptionsFilterPolicesResponse.js +31 -0
- package/v2/model/BatchCreateSubscriptionsFilterPolicesResponse.js.map +1 -0
- package/v2/model/BatchDeleteSubscriptionsFilterPolicesRequest.d.ts +7 -0
- package/v2/model/BatchDeleteSubscriptionsFilterPolicesRequest.d.ts.map +1 -0
- package/v2/model/BatchDeleteSubscriptionsFilterPolicesRequest.js +13 -0
- package/v2/model/BatchDeleteSubscriptionsFilterPolicesRequest.js.map +1 -0
- package/v2/model/BatchDeleteSubscriptionsFilterPolicesRequestBody.d.ts +8 -0
- package/v2/model/BatchDeleteSubscriptionsFilterPolicesRequestBody.d.ts.map +1 -0
- package/v2/model/BatchDeleteSubscriptionsFilterPolicesRequestBody.js +20 -0
- package/v2/model/BatchDeleteSubscriptionsFilterPolicesRequestBody.js.map +1 -0
- package/v2/model/BatchDeleteSubscriptionsFilterPolicesResponse.d.ts +14 -0
- package/v2/model/BatchDeleteSubscriptionsFilterPolicesResponse.d.ts.map +1 -0
- package/v2/model/BatchDeleteSubscriptionsFilterPolicesResponse.js +31 -0
- package/v2/model/BatchDeleteSubscriptionsFilterPolicesResponse.js.map +1 -0
- package/v2/model/BatchResult.d.ts +12 -0
- package/v2/model/BatchResult.d.ts.map +1 -0
- package/v2/model/BatchResult.js +27 -0
- package/v2/model/BatchResult.js.map +1 -0
- package/v2/model/BatchSubscriptionsFilterPolicesRequestBody.d.ts +7 -0
- package/v2/model/BatchSubscriptionsFilterPolicesRequestBody.d.ts.map +1 -0
- package/v2/model/BatchSubscriptionsFilterPolicesRequestBody.js +14 -0
- package/v2/model/BatchSubscriptionsFilterPolicesRequestBody.js.map +1 -0
- package/v2/model/BatchSubscriptionsFilterPolicesRequestBodyPolices.d.ts +13 -0
- package/v2/model/BatchSubscriptionsFilterPolicesRequestBodyPolices.d.ts.map +1 -0
- package/v2/model/BatchSubscriptionsFilterPolicesRequestBodyPolices.js +31 -0
- package/v2/model/BatchSubscriptionsFilterPolicesRequestBodyPolices.js.map +1 -0
- package/v2/model/BatchUpdateSubscriptionsFilterPolicesRequest.d.ts +7 -0
- package/v2/model/BatchUpdateSubscriptionsFilterPolicesRequest.d.ts.map +1 -0
- package/v2/model/BatchUpdateSubscriptionsFilterPolicesRequest.js +13 -0
- package/v2/model/BatchUpdateSubscriptionsFilterPolicesRequest.js.map +1 -0
- package/v2/model/BatchUpdateSubscriptionsFilterPolicesResponse.d.ts +14 -0
- package/v2/model/BatchUpdateSubscriptionsFilterPolicesResponse.d.ts.map +1 -0
- package/v2/model/BatchUpdateSubscriptionsFilterPolicesResponse.js +31 -0
- package/v2/model/BatchUpdateSubscriptionsFilterPolicesResponse.js.map +1 -0
- package/v2/model/GetHttpDetectResponseBodyDetail.d.ts +8 -0
- package/v2/model/GetHttpDetectResponseBodyDetail.d.ts.map +1 -0
- package/v2/model/GetHttpDetectResponseBodyDetail.js +19 -0
- package/v2/model/GetHttpDetectResponseBodyDetail.js.map +1 -0
- package/v2/model/HttpDetectRequestBody.d.ts +19 -0
- package/v2/model/HttpDetectRequestBody.d.ts.map +1 -0
- package/v2/model/HttpDetectRequestBody.js +32 -0
- package/v2/model/HttpDetectRequestBody.js.map +1 -0
- package/v2/model/HttpDetectRequestBodyExtension.d.ts +10 -0
- package/v2/model/HttpDetectRequestBodyExtension.d.ts.map +1 -0
- package/v2/model/HttpDetectRequestBodyExtension.js +13 -0
- package/v2/model/HttpDetectRequestBodyExtension.js.map +1 -0
- package/v2/model/ListSubscriptionsByTopicRequest.d.ts +4 -0
- package/v2/model/ListSubscriptionsByTopicRequest.d.ts.map +1 -1
- package/v2/model/ListSubscriptionsByTopicRequest.js +10 -0
- package/v2/model/ListSubscriptionsByTopicRequest.js.map +1 -1
- package/v2/model/ListSubscriptionsItem.d.ts +5 -0
- package/v2/model/ListSubscriptionsItem.d.ts.map +1 -1
- package/v2/model/ListSubscriptionsItem.js +10 -0
- package/v2/model/ListSubscriptionsItem.js.map +1 -1
- package/v2/model/ListSubscriptionsRequest.d.ts +4 -0
- package/v2/model/ListSubscriptionsRequest.d.ts.map +1 -1
- package/v2/model/ListSubscriptionsRequest.js +10 -0
- package/v2/model/ListSubscriptionsRequest.js.map +1 -1
- package/v2/model/ListTopicsRequest.d.ts +4 -0
- package/v2/model/ListTopicsRequest.d.ts.map +1 -1
- package/v2/model/ListTopicsRequest.js +10 -0
- package/v2/model/ListTopicsRequest.js.map +1 -1
- package/v2/model/MessageAttribute.d.ts +19 -0
- package/v2/model/MessageAttribute.d.ts.map +1 -0
- package/v2/model/MessageAttribute.js +34 -0
- package/v2/model/MessageAttribute.js.map +1 -0
- package/v2/model/PublishHttpDetectRequest.d.ts +11 -0
- package/v2/model/PublishHttpDetectRequest.d.ts.map +1 -0
- package/v2/model/PublishHttpDetectRequest.js +24 -0
- package/v2/model/PublishHttpDetectRequest.js.map +1 -0
- package/v2/model/PublishHttpDetectResponse.d.ts +13 -0
- package/v2/model/PublishHttpDetectResponse.d.ts.map +1 -0
- package/v2/model/PublishHttpDetectResponse.js +31 -0
- package/v2/model/PublishHttpDetectResponse.js.map +1 -0
- package/v2/model/PublishMessageRequestBody.d.ts +5 -0
- package/v2/model/PublishMessageRequestBody.d.ts.map +1 -1
- package/v2/model/PublishMessageRequestBody.js +10 -0
- package/v2/model/PublishMessageRequestBody.js.map +1 -1
- package/v2/model/ShowHttpDetectResultRequest.d.ts +12 -0
- package/v2/model/ShowHttpDetectResultRequest.d.ts.map +1 -0
- package/v2/model/ShowHttpDetectResultRequest.js +31 -0
- package/v2/model/ShowHttpDetectResultRequest.js.map +1 -0
- package/v2/model/ShowHttpDetectResultResponse.d.ts +23 -0
- package/v2/model/ShowHttpDetectResultResponse.d.ts.map +1 -0
- package/v2/model/ShowHttpDetectResultResponse.js +39 -0
- package/v2/model/ShowHttpDetectResultResponse.js.map +1 -0
- package/v2/model/SubscriptionsFilterPolicy.d.ts +10 -0
- package/v2/model/SubscriptionsFilterPolicy.d.ts.map +1 -0
- package/v2/model/SubscriptionsFilterPolicy.js +25 -0
- package/v2/model/SubscriptionsFilterPolicy.js.map +1 -0
- package/v2/public-api.d.ts +23 -0
- package/v2/public-api.d.ts.map +1 -1
- package/v2/public-api.js +23 -0
- package/v2/public-api.js.map +1 -1
package/v2/SmnClient.js
CHANGED
|
@@ -2,8 +2,12 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.RequiredError = exports.ParamCreater = exports.SmnClient = void 0;
|
|
4
4
|
const ClientBuilder_1 = require("@huaweicloud/huaweicloud-sdk-core/ClientBuilder");
|
|
5
|
+
const AddSubscriptionFromSubscriptionUserRequest_1 = require("./model/AddSubscriptionFromSubscriptionUserRequest");
|
|
5
6
|
const AddSubscriptionRequest_1 = require("./model/AddSubscriptionRequest");
|
|
6
7
|
const BatchCreateOrDeleteResourceTagsRequest_1 = require("./model/BatchCreateOrDeleteResourceTagsRequest");
|
|
8
|
+
const BatchCreateSubscriptionsFilterPolicesRequest_1 = require("./model/BatchCreateSubscriptionsFilterPolicesRequest");
|
|
9
|
+
const BatchDeleteSubscriptionsFilterPolicesRequest_1 = require("./model/BatchDeleteSubscriptionsFilterPolicesRequest");
|
|
10
|
+
const BatchUpdateSubscriptionsFilterPolicesRequest_1 = require("./model/BatchUpdateSubscriptionsFilterPolicesRequest");
|
|
7
11
|
const CancelSubscriptionRequest_1 = require("./model/CancelSubscriptionRequest");
|
|
8
12
|
const CreateApplicationEndpointRequest_1 = require("./model/CreateApplicationEndpointRequest");
|
|
9
13
|
const CreateApplicationRequest_1 = require("./model/CreateApplicationRequest");
|
|
@@ -35,7 +39,9 @@ const ListTopicAttributesRequest_1 = require("./model/ListTopicAttributesRequest
|
|
|
35
39
|
const ListTopicDetailsRequest_1 = require("./model/ListTopicDetailsRequest");
|
|
36
40
|
const ListTopicsRequest_1 = require("./model/ListTopicsRequest");
|
|
37
41
|
const PublishAppMessageRequest_1 = require("./model/PublishAppMessageRequest");
|
|
42
|
+
const PublishHttpDetectRequest_1 = require("./model/PublishHttpDetectRequest");
|
|
38
43
|
const PublishMessageRequest_1 = require("./model/PublishMessageRequest");
|
|
44
|
+
const ShowHttpDetectResultRequest_1 = require("./model/ShowHttpDetectResultRequest");
|
|
39
45
|
const UpdateApplicationEndpointRequest_1 = require("./model/UpdateApplicationEndpointRequest");
|
|
40
46
|
const UpdateApplicationRequest_1 = require("./model/UpdateApplicationRequest");
|
|
41
47
|
const UpdateLogtankRequest_1 = require("./model/UpdateLogtankRequest");
|
|
@@ -70,6 +76,23 @@ class SmnClient {
|
|
|
70
76
|
options['responseHeaders'] = [''];
|
|
71
77
|
return this.hcClient.sendRequest(options);
|
|
72
78
|
}
|
|
79
|
+
/**
|
|
80
|
+
* 为指定的Topic添加订阅者,订阅者信息来源为订阅用户列表。
|
|
81
|
+
*
|
|
82
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
83
|
+
*
|
|
84
|
+
* @summary 导入订阅
|
|
85
|
+
* @param {string} topicUrn Topic的唯一的资源标识,可通过[查询主题列表](smn_api_51004.xml)获取该标识。
|
|
86
|
+
* @param {AddSubscriptionFromSubscriptionUserRequestBody} addSubscriptionFromSubscriptionUserRequestBody
|
|
87
|
+
* @param {*} [options] Override http request option.
|
|
88
|
+
* @throws {RequiredError}
|
|
89
|
+
*/
|
|
90
|
+
addSubscriptionFromSubscriptionUser(addSubscriptionFromSubscriptionUserRequest) {
|
|
91
|
+
const options = (0, exports.ParamCreater)().addSubscriptionFromSubscriptionUser(addSubscriptionFromSubscriptionUserRequest);
|
|
92
|
+
// @ts-ignore
|
|
93
|
+
options['responseHeaders'] = [''];
|
|
94
|
+
return this.hcClient.sendRequest(options);
|
|
95
|
+
}
|
|
73
96
|
/**
|
|
74
97
|
* 为指定实例批量添加或删除标签。一个资源上最多有10个标签。
|
|
75
98
|
* 此接口为幂等接口:创建时如果请求体中存在重复key则报错。
|
|
@@ -91,6 +114,54 @@ class SmnClient {
|
|
|
91
114
|
options['responseHeaders'] = [''];
|
|
92
115
|
return this.hcClient.sendRequest(options);
|
|
93
116
|
}
|
|
117
|
+
/**
|
|
118
|
+
* 创建订阅者的消息过滤策略。
|
|
119
|
+
*
|
|
120
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
121
|
+
*
|
|
122
|
+
* @summary 批量创建订阅过滤策略
|
|
123
|
+
* @param {BatchSubscriptionsFilterPolicesRequestBody} createSubscriptionsFilterPolicesRequestBody 批量创建订阅者过滤策略结构体
|
|
124
|
+
* @param {*} [options] Override http request option.
|
|
125
|
+
* @throws {RequiredError}
|
|
126
|
+
*/
|
|
127
|
+
batchCreateSubscriptionsFilterPolices(batchCreateSubscriptionsFilterPolicesRequest) {
|
|
128
|
+
const options = (0, exports.ParamCreater)().batchCreateSubscriptionsFilterPolices(batchCreateSubscriptionsFilterPolicesRequest);
|
|
129
|
+
// @ts-ignore
|
|
130
|
+
options['responseHeaders'] = [''];
|
|
131
|
+
return this.hcClient.sendRequest(options);
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* 删除订阅者的消息过滤策略。
|
|
135
|
+
*
|
|
136
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
137
|
+
*
|
|
138
|
+
* @summary 批量删除订阅过滤策略
|
|
139
|
+
* @param {BatchDeleteSubscriptionsFilterPolicesRequestBody} updateSubscriptionsFilterPolicesRequestBody 批量删除订阅者过滤策略结构体
|
|
140
|
+
* @param {*} [options] Override http request option.
|
|
141
|
+
* @throws {RequiredError}
|
|
142
|
+
*/
|
|
143
|
+
batchDeleteSubscriptionsFilterPolices(batchDeleteSubscriptionsFilterPolicesRequest) {
|
|
144
|
+
const options = (0, exports.ParamCreater)().batchDeleteSubscriptionsFilterPolices(batchDeleteSubscriptionsFilterPolicesRequest);
|
|
145
|
+
// @ts-ignore
|
|
146
|
+
options['responseHeaders'] = [''];
|
|
147
|
+
return this.hcClient.sendRequest(options);
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* 更新订阅者的消息过滤策略。
|
|
151
|
+
*
|
|
152
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
153
|
+
*
|
|
154
|
+
* @summary 批量更新订阅过滤策略
|
|
155
|
+
* @param {BatchSubscriptionsFilterPolicesRequestBody} updateSubscriptionsFilterPolicesRequestBody 批量更新订阅者过滤策略结构体
|
|
156
|
+
* @param {*} [options] Override http request option.
|
|
157
|
+
* @throws {RequiredError}
|
|
158
|
+
*/
|
|
159
|
+
batchUpdateSubscriptionsFilterPolices(batchUpdateSubscriptionsFilterPolicesRequest) {
|
|
160
|
+
const options = (0, exports.ParamCreater)().batchUpdateSubscriptionsFilterPolices(batchUpdateSubscriptionsFilterPolicesRequest);
|
|
161
|
+
// @ts-ignore
|
|
162
|
+
options['responseHeaders'] = [''];
|
|
163
|
+
return this.hcClient.sendRequest(options);
|
|
164
|
+
}
|
|
94
165
|
/**
|
|
95
166
|
* 删除指定的订阅者。
|
|
96
167
|
*
|
|
@@ -388,6 +459,7 @@ class SmnClient {
|
|
|
388
459
|
* @param {string} [protocol] 协议名称, 枚举值:http、https、sms、email、functionstage、dms、application。
|
|
389
460
|
* @param {number} [status] 状态。 0:未确认 1:已确认 2:不需要确认 3:已取消确认 4:已经删除。
|
|
390
461
|
* @param {string} [endpoint] 订阅终端。
|
|
462
|
+
* @param {string} [fuzzyRemark] 检索的订阅备注字段,模糊匹配。最大长度限制为128个字节。
|
|
391
463
|
* @param {*} [options] Override http request option.
|
|
392
464
|
* @throws {RequiredError}
|
|
393
465
|
*/
|
|
@@ -406,6 +478,7 @@ class SmnClient {
|
|
|
406
478
|
* @param {string} topicUrn Topic的唯一的资源标识,可通过[查询主题列表](smn_api_51004.xml)获取该标识。
|
|
407
479
|
* @param {number} [offset] 偏移量。 偏移量为一个大于0小于资源总个数的整数,表示查询该偏移量后面的所有的资源,默认值为0。
|
|
408
480
|
* @param {number} [limit] 查询的数量限制。 取值范围:1~100,取值一般为10,20,50。功能说明:每页返回的资源个数。默认值为100。
|
|
481
|
+
* @param {string} [fuzzyRemark] 检索的订阅备注字段,模糊匹配。最大长度限制为128字节。
|
|
409
482
|
* @param {*} [options] Override http request option.
|
|
410
483
|
* @throws {RequiredError}
|
|
411
484
|
*/
|
|
@@ -458,8 +531,9 @@ class SmnClient {
|
|
|
458
531
|
* @param {number} [limit] 查询的数量限制。 取值范围:1~100,取值一般为10,20,50。功能说明:每页返回的资源个数。默认值为100。
|
|
459
532
|
* @param {string} [enterpriseProjectId] 企业项目id,默认企业项目id为0。
|
|
460
533
|
* @param {string} [name] 检索的主题名称,完全匹配。
|
|
461
|
-
* @param {string} [fuzzyName]
|
|
534
|
+
* @param {string} [fuzzyName] 检索的主题名称,模糊匹配。
|
|
462
535
|
* @param {string} [topicId] 检索的主题ID,完全匹配。
|
|
536
|
+
* @param {string} [fuzzyDisplayName] 检索的主题显示名。模糊匹配。参数字节长度不能大于192字节。
|
|
463
537
|
* @param {*} [options] Override http request option.
|
|
464
538
|
* @throws {RequiredError}
|
|
465
539
|
*/
|
|
@@ -499,6 +573,23 @@ class SmnClient {
|
|
|
499
573
|
options['responseHeaders'] = [''];
|
|
500
574
|
return this.hcClient.sendRequest(options);
|
|
501
575
|
}
|
|
576
|
+
/**
|
|
577
|
+
* 基于主题发送http/https探测消息,探测当前http/https 终端是否可用,SMN出口是否能够正常访问该终端。
|
|
578
|
+
*
|
|
579
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
580
|
+
*
|
|
581
|
+
* @summary 发布探测消息
|
|
582
|
+
* @param {string} topicUrn Topic的唯一的资源标识,可通过[查询主题列表](smn_api_51004.xml)获取该标识。
|
|
583
|
+
* @param {HttpDetectRequestBody} httpDetectRequestBody Http探测请求参数,不能为空。
|
|
584
|
+
* @param {*} [options] Override http request option.
|
|
585
|
+
* @throws {RequiredError}
|
|
586
|
+
*/
|
|
587
|
+
publishHttpDetect(publishHttpDetectRequest) {
|
|
588
|
+
const options = (0, exports.ParamCreater)().publishHttpDetect(publishHttpDetectRequest);
|
|
589
|
+
// @ts-ignore
|
|
590
|
+
options['responseHeaders'] = [''];
|
|
591
|
+
return this.hcClient.sendRequest(options);
|
|
592
|
+
}
|
|
502
593
|
/**
|
|
503
594
|
* 将消息发送给Topic的所有订阅端点。当返回消息ID时,该消息已被保存并开始尝试将其推送给Topic的订阅者。三种消息发送方式
|
|
504
595
|
*
|
|
@@ -525,6 +616,23 @@ class SmnClient {
|
|
|
525
616
|
options['responseHeaders'] = [''];
|
|
526
617
|
return this.hcClient.sendRequest(options);
|
|
527
618
|
}
|
|
619
|
+
/**
|
|
620
|
+
* 根据http探测发送返回的task_id查询探测结果。
|
|
621
|
+
*
|
|
622
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
623
|
+
*
|
|
624
|
+
* @summary 获取http探测结果
|
|
625
|
+
* @param {string} topicUrn Topic的唯一的资源标识,可通过[查询主题列表](smn_api_51004.xml)获取该标识。
|
|
626
|
+
* @param {string} taskId http探测任务id
|
|
627
|
+
* @param {*} [options] Override http request option.
|
|
628
|
+
* @throws {RequiredError}
|
|
629
|
+
*/
|
|
630
|
+
showHttpDetectResult(showHttpDetectResultRequest) {
|
|
631
|
+
const options = (0, exports.ParamCreater)().showHttpDetectResult(showHttpDetectResultRequest);
|
|
632
|
+
// @ts-ignore
|
|
633
|
+
options['responseHeaders'] = [''];
|
|
634
|
+
return this.hcClient.sendRequest(options);
|
|
635
|
+
}
|
|
528
636
|
/**
|
|
529
637
|
* 更新指定Topic绑定的云日志。
|
|
530
638
|
*
|
|
@@ -842,6 +950,46 @@ const ParamCreater = function () {
|
|
|
842
950
|
options.headers = localVarHeaderParameter;
|
|
843
951
|
return options;
|
|
844
952
|
},
|
|
953
|
+
/**
|
|
954
|
+
* 为指定的Topic添加订阅者,订阅者信息来源为订阅用户列表。
|
|
955
|
+
*
|
|
956
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
957
|
+
*/
|
|
958
|
+
addSubscriptionFromSubscriptionUser(addSubscriptionFromSubscriptionUserRequest) {
|
|
959
|
+
const options = {
|
|
960
|
+
method: "POST",
|
|
961
|
+
url: "/v2/{project_id}/notifications/topics/{topic_urn}/subscriptions/from-subscription-users",
|
|
962
|
+
contentType: "application/json;charset=UTF-8",
|
|
963
|
+
queryParams: {},
|
|
964
|
+
pathParams: {},
|
|
965
|
+
headers: {},
|
|
966
|
+
data: {}
|
|
967
|
+
};
|
|
968
|
+
const localVarHeaderParameter = {};
|
|
969
|
+
let body;
|
|
970
|
+
let topicUrn;
|
|
971
|
+
if (addSubscriptionFromSubscriptionUserRequest !== null && addSubscriptionFromSubscriptionUserRequest !== undefined) {
|
|
972
|
+
if (addSubscriptionFromSubscriptionUserRequest instanceof AddSubscriptionFromSubscriptionUserRequest_1.AddSubscriptionFromSubscriptionUserRequest) {
|
|
973
|
+
topicUrn = addSubscriptionFromSubscriptionUserRequest.topicUrn;
|
|
974
|
+
body = addSubscriptionFromSubscriptionUserRequest.body;
|
|
975
|
+
}
|
|
976
|
+
else {
|
|
977
|
+
topicUrn = addSubscriptionFromSubscriptionUserRequest['topic_urn'];
|
|
978
|
+
body = addSubscriptionFromSubscriptionUserRequest['body'];
|
|
979
|
+
}
|
|
980
|
+
}
|
|
981
|
+
if (topicUrn === null || topicUrn === undefined) {
|
|
982
|
+
throw new RequiredError('topicUrn', 'Required parameter topicUrn was null or undefined when calling addSubscriptionFromSubscriptionUser.');
|
|
983
|
+
}
|
|
984
|
+
if (body === null || body === undefined) {
|
|
985
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
986
|
+
}
|
|
987
|
+
localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
|
|
988
|
+
options.data = body !== undefined ? body : {};
|
|
989
|
+
options.pathParams = { 'topic_urn': topicUrn, };
|
|
990
|
+
options.headers = localVarHeaderParameter;
|
|
991
|
+
return options;
|
|
992
|
+
},
|
|
845
993
|
/**
|
|
846
994
|
* 为指定实例批量添加或删除标签。一个资源上最多有10个标签。
|
|
847
995
|
* 此接口为幂等接口:创建时如果请求体中存在重复key则报错。
|
|
@@ -888,6 +1036,105 @@ const ParamCreater = function () {
|
|
|
888
1036
|
options.headers = localVarHeaderParameter;
|
|
889
1037
|
return options;
|
|
890
1038
|
},
|
|
1039
|
+
/**
|
|
1040
|
+
* 创建订阅者的消息过滤策略。
|
|
1041
|
+
*
|
|
1042
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1043
|
+
*/
|
|
1044
|
+
batchCreateSubscriptionsFilterPolices(batchCreateSubscriptionsFilterPolicesRequest) {
|
|
1045
|
+
const options = {
|
|
1046
|
+
method: "POST",
|
|
1047
|
+
url: "/v2/{project_id}/notifications/subscriptions/filter_polices",
|
|
1048
|
+
contentType: "application/json;charset=UTF-8",
|
|
1049
|
+
queryParams: {},
|
|
1050
|
+
pathParams: {},
|
|
1051
|
+
headers: {},
|
|
1052
|
+
data: {}
|
|
1053
|
+
};
|
|
1054
|
+
const localVarHeaderParameter = {};
|
|
1055
|
+
let body;
|
|
1056
|
+
if (batchCreateSubscriptionsFilterPolicesRequest !== null && batchCreateSubscriptionsFilterPolicesRequest !== undefined) {
|
|
1057
|
+
if (batchCreateSubscriptionsFilterPolicesRequest instanceof BatchCreateSubscriptionsFilterPolicesRequest_1.BatchCreateSubscriptionsFilterPolicesRequest) {
|
|
1058
|
+
body = batchCreateSubscriptionsFilterPolicesRequest.body;
|
|
1059
|
+
}
|
|
1060
|
+
else {
|
|
1061
|
+
body = batchCreateSubscriptionsFilterPolicesRequest['body'];
|
|
1062
|
+
}
|
|
1063
|
+
}
|
|
1064
|
+
if (body === null || body === undefined) {
|
|
1065
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
1066
|
+
}
|
|
1067
|
+
localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
|
|
1068
|
+
options.data = body !== undefined ? body : {};
|
|
1069
|
+
options.headers = localVarHeaderParameter;
|
|
1070
|
+
return options;
|
|
1071
|
+
},
|
|
1072
|
+
/**
|
|
1073
|
+
* 删除订阅者的消息过滤策略。
|
|
1074
|
+
*
|
|
1075
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1076
|
+
*/
|
|
1077
|
+
batchDeleteSubscriptionsFilterPolices(batchDeleteSubscriptionsFilterPolicesRequest) {
|
|
1078
|
+
const options = {
|
|
1079
|
+
method: "DELETE",
|
|
1080
|
+
url: "/v2/{project_id}/notifications/subscriptions/filter_polices",
|
|
1081
|
+
contentType: "application/json;charset=UTF-8",
|
|
1082
|
+
queryParams: {},
|
|
1083
|
+
pathParams: {},
|
|
1084
|
+
headers: {},
|
|
1085
|
+
data: {}
|
|
1086
|
+
};
|
|
1087
|
+
const localVarHeaderParameter = {};
|
|
1088
|
+
let body;
|
|
1089
|
+
if (batchDeleteSubscriptionsFilterPolicesRequest !== null && batchDeleteSubscriptionsFilterPolicesRequest !== undefined) {
|
|
1090
|
+
if (batchDeleteSubscriptionsFilterPolicesRequest instanceof BatchDeleteSubscriptionsFilterPolicesRequest_1.BatchDeleteSubscriptionsFilterPolicesRequest) {
|
|
1091
|
+
body = batchDeleteSubscriptionsFilterPolicesRequest.body;
|
|
1092
|
+
}
|
|
1093
|
+
else {
|
|
1094
|
+
body = batchDeleteSubscriptionsFilterPolicesRequest['body'];
|
|
1095
|
+
}
|
|
1096
|
+
}
|
|
1097
|
+
if (body === null || body === undefined) {
|
|
1098
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
1099
|
+
}
|
|
1100
|
+
localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
|
|
1101
|
+
options.data = body !== undefined ? body : {};
|
|
1102
|
+
options.headers = localVarHeaderParameter;
|
|
1103
|
+
return options;
|
|
1104
|
+
},
|
|
1105
|
+
/**
|
|
1106
|
+
* 更新订阅者的消息过滤策略。
|
|
1107
|
+
*
|
|
1108
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1109
|
+
*/
|
|
1110
|
+
batchUpdateSubscriptionsFilterPolices(batchUpdateSubscriptionsFilterPolicesRequest) {
|
|
1111
|
+
const options = {
|
|
1112
|
+
method: "PUT",
|
|
1113
|
+
url: "/v2/{project_id}/notifications/subscriptions/filter_polices",
|
|
1114
|
+
contentType: "application/json;charset=UTF-8",
|
|
1115
|
+
queryParams: {},
|
|
1116
|
+
pathParams: {},
|
|
1117
|
+
headers: {},
|
|
1118
|
+
data: {}
|
|
1119
|
+
};
|
|
1120
|
+
const localVarHeaderParameter = {};
|
|
1121
|
+
let body;
|
|
1122
|
+
if (batchUpdateSubscriptionsFilterPolicesRequest !== null && batchUpdateSubscriptionsFilterPolicesRequest !== undefined) {
|
|
1123
|
+
if (batchUpdateSubscriptionsFilterPolicesRequest instanceof BatchUpdateSubscriptionsFilterPolicesRequest_1.BatchUpdateSubscriptionsFilterPolicesRequest) {
|
|
1124
|
+
body = batchUpdateSubscriptionsFilterPolicesRequest.body;
|
|
1125
|
+
}
|
|
1126
|
+
else {
|
|
1127
|
+
body = batchUpdateSubscriptionsFilterPolicesRequest['body'];
|
|
1128
|
+
}
|
|
1129
|
+
}
|
|
1130
|
+
if (body === null || body === undefined) {
|
|
1131
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
1132
|
+
}
|
|
1133
|
+
localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
|
|
1134
|
+
options.data = body !== undefined ? body : {};
|
|
1135
|
+
options.headers = localVarHeaderParameter;
|
|
1136
|
+
return options;
|
|
1137
|
+
},
|
|
891
1138
|
/**
|
|
892
1139
|
* 删除指定的订阅者。
|
|
893
1140
|
*
|
|
@@ -1515,6 +1762,7 @@ const ParamCreater = function () {
|
|
|
1515
1762
|
let protocol;
|
|
1516
1763
|
let status;
|
|
1517
1764
|
let endpoint;
|
|
1765
|
+
let fuzzyRemark;
|
|
1518
1766
|
if (listSubscriptionsRequest !== null && listSubscriptionsRequest !== undefined) {
|
|
1519
1767
|
if (listSubscriptionsRequest instanceof ListSubscriptionsRequest_1.ListSubscriptionsRequest) {
|
|
1520
1768
|
offset = listSubscriptionsRequest.offset;
|
|
@@ -1522,6 +1770,7 @@ const ParamCreater = function () {
|
|
|
1522
1770
|
protocol = listSubscriptionsRequest.protocol;
|
|
1523
1771
|
status = listSubscriptionsRequest.status;
|
|
1524
1772
|
endpoint = listSubscriptionsRequest.endpoint;
|
|
1773
|
+
fuzzyRemark = listSubscriptionsRequest.fuzzyRemark;
|
|
1525
1774
|
}
|
|
1526
1775
|
else {
|
|
1527
1776
|
offset = listSubscriptionsRequest['offset'];
|
|
@@ -1529,6 +1778,7 @@ const ParamCreater = function () {
|
|
|
1529
1778
|
protocol = listSubscriptionsRequest['protocol'];
|
|
1530
1779
|
status = listSubscriptionsRequest['status'];
|
|
1531
1780
|
endpoint = listSubscriptionsRequest['endpoint'];
|
|
1781
|
+
fuzzyRemark = listSubscriptionsRequest['fuzzy_remark'];
|
|
1532
1782
|
}
|
|
1533
1783
|
}
|
|
1534
1784
|
if (offset !== null && offset !== undefined) {
|
|
@@ -1546,6 +1796,9 @@ const ParamCreater = function () {
|
|
|
1546
1796
|
if (endpoint !== null && endpoint !== undefined) {
|
|
1547
1797
|
localVarQueryParameter['endpoint'] = endpoint;
|
|
1548
1798
|
}
|
|
1799
|
+
if (fuzzyRemark !== null && fuzzyRemark !== undefined) {
|
|
1800
|
+
localVarQueryParameter['fuzzy_remark'] = fuzzyRemark;
|
|
1801
|
+
}
|
|
1549
1802
|
options.queryParams = localVarQueryParameter;
|
|
1550
1803
|
options.headers = localVarHeaderParameter;
|
|
1551
1804
|
return options;
|
|
@@ -1569,16 +1822,19 @@ const ParamCreater = function () {
|
|
|
1569
1822
|
let topicUrn;
|
|
1570
1823
|
let offset;
|
|
1571
1824
|
let limit;
|
|
1825
|
+
let fuzzyRemark;
|
|
1572
1826
|
if (listSubscriptionsByTopicRequest !== null && listSubscriptionsByTopicRequest !== undefined) {
|
|
1573
1827
|
if (listSubscriptionsByTopicRequest instanceof ListSubscriptionsByTopicRequest_1.ListSubscriptionsByTopicRequest) {
|
|
1574
1828
|
topicUrn = listSubscriptionsByTopicRequest.topicUrn;
|
|
1575
1829
|
offset = listSubscriptionsByTopicRequest.offset;
|
|
1576
1830
|
limit = listSubscriptionsByTopicRequest.limit;
|
|
1831
|
+
fuzzyRemark = listSubscriptionsByTopicRequest.fuzzyRemark;
|
|
1577
1832
|
}
|
|
1578
1833
|
else {
|
|
1579
1834
|
topicUrn = listSubscriptionsByTopicRequest['topic_urn'];
|
|
1580
1835
|
offset = listSubscriptionsByTopicRequest['offset'];
|
|
1581
1836
|
limit = listSubscriptionsByTopicRequest['limit'];
|
|
1837
|
+
fuzzyRemark = listSubscriptionsByTopicRequest['fuzzy_remark'];
|
|
1582
1838
|
}
|
|
1583
1839
|
}
|
|
1584
1840
|
if (topicUrn === null || topicUrn === undefined) {
|
|
@@ -1590,6 +1846,9 @@ const ParamCreater = function () {
|
|
|
1590
1846
|
if (limit !== null && limit !== undefined) {
|
|
1591
1847
|
localVarQueryParameter['limit'] = limit;
|
|
1592
1848
|
}
|
|
1849
|
+
if (fuzzyRemark !== null && fuzzyRemark !== undefined) {
|
|
1850
|
+
localVarQueryParameter['fuzzy_remark'] = fuzzyRemark;
|
|
1851
|
+
}
|
|
1593
1852
|
options.queryParams = localVarQueryParameter;
|
|
1594
1853
|
options.pathParams = { 'topic_urn': topicUrn, };
|
|
1595
1854
|
options.headers = localVarHeaderParameter;
|
|
@@ -1690,6 +1949,7 @@ const ParamCreater = function () {
|
|
|
1690
1949
|
let name;
|
|
1691
1950
|
let fuzzyName;
|
|
1692
1951
|
let topicId;
|
|
1952
|
+
let fuzzyDisplayName;
|
|
1693
1953
|
if (listTopicsRequest !== null && listTopicsRequest !== undefined) {
|
|
1694
1954
|
if (listTopicsRequest instanceof ListTopicsRequest_1.ListTopicsRequest) {
|
|
1695
1955
|
offset = listTopicsRequest.offset;
|
|
@@ -1698,6 +1958,7 @@ const ParamCreater = function () {
|
|
|
1698
1958
|
name = listTopicsRequest.name;
|
|
1699
1959
|
fuzzyName = listTopicsRequest.fuzzyName;
|
|
1700
1960
|
topicId = listTopicsRequest.topicId;
|
|
1961
|
+
fuzzyDisplayName = listTopicsRequest.fuzzyDisplayName;
|
|
1701
1962
|
}
|
|
1702
1963
|
else {
|
|
1703
1964
|
offset = listTopicsRequest['offset'];
|
|
@@ -1706,6 +1967,7 @@ const ParamCreater = function () {
|
|
|
1706
1967
|
name = listTopicsRequest['name'];
|
|
1707
1968
|
fuzzyName = listTopicsRequest['fuzzy_name'];
|
|
1708
1969
|
topicId = listTopicsRequest['topic_id'];
|
|
1970
|
+
fuzzyDisplayName = listTopicsRequest['fuzzy_display_name'];
|
|
1709
1971
|
}
|
|
1710
1972
|
}
|
|
1711
1973
|
if (offset !== null && offset !== undefined) {
|
|
@@ -1726,6 +1988,9 @@ const ParamCreater = function () {
|
|
|
1726
1988
|
if (topicId !== null && topicId !== undefined) {
|
|
1727
1989
|
localVarQueryParameter['topic_id'] = topicId;
|
|
1728
1990
|
}
|
|
1991
|
+
if (fuzzyDisplayName !== null && fuzzyDisplayName !== undefined) {
|
|
1992
|
+
localVarQueryParameter['fuzzy_display_name'] = fuzzyDisplayName;
|
|
1993
|
+
}
|
|
1729
1994
|
options.queryParams = localVarQueryParameter;
|
|
1730
1995
|
options.headers = localVarHeaderParameter;
|
|
1731
1996
|
return options;
|
|
@@ -1766,6 +2031,46 @@ const ParamCreater = function () {
|
|
|
1766
2031
|
options.headers = localVarHeaderParameter;
|
|
1767
2032
|
return options;
|
|
1768
2033
|
},
|
|
2034
|
+
/**
|
|
2035
|
+
* 基于主题发送http/https探测消息,探测当前http/https 终端是否可用,SMN出口是否能够正常访问该终端。
|
|
2036
|
+
*
|
|
2037
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
2038
|
+
*/
|
|
2039
|
+
publishHttpDetect(publishHttpDetectRequest) {
|
|
2040
|
+
const options = {
|
|
2041
|
+
method: "POST",
|
|
2042
|
+
url: "/v2/{project_id}/notifications/topics/{topic_urn}/detection",
|
|
2043
|
+
contentType: "application/json;charset=UTF-8",
|
|
2044
|
+
queryParams: {},
|
|
2045
|
+
pathParams: {},
|
|
2046
|
+
headers: {},
|
|
2047
|
+
data: {}
|
|
2048
|
+
};
|
|
2049
|
+
const localVarHeaderParameter = {};
|
|
2050
|
+
let body;
|
|
2051
|
+
let topicUrn;
|
|
2052
|
+
if (publishHttpDetectRequest !== null && publishHttpDetectRequest !== undefined) {
|
|
2053
|
+
if (publishHttpDetectRequest instanceof PublishHttpDetectRequest_1.PublishHttpDetectRequest) {
|
|
2054
|
+
topicUrn = publishHttpDetectRequest.topicUrn;
|
|
2055
|
+
body = publishHttpDetectRequest.body;
|
|
2056
|
+
}
|
|
2057
|
+
else {
|
|
2058
|
+
topicUrn = publishHttpDetectRequest['topic_urn'];
|
|
2059
|
+
body = publishHttpDetectRequest['body'];
|
|
2060
|
+
}
|
|
2061
|
+
}
|
|
2062
|
+
if (topicUrn === null || topicUrn === undefined) {
|
|
2063
|
+
throw new RequiredError('topicUrn', 'Required parameter topicUrn was null or undefined when calling publishHttpDetect.');
|
|
2064
|
+
}
|
|
2065
|
+
if (body === null || body === undefined) {
|
|
2066
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
2067
|
+
}
|
|
2068
|
+
localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
|
|
2069
|
+
options.data = body !== undefined ? body : {};
|
|
2070
|
+
options.pathParams = { 'topic_urn': topicUrn, };
|
|
2071
|
+
options.headers = localVarHeaderParameter;
|
|
2072
|
+
return options;
|
|
2073
|
+
},
|
|
1769
2074
|
/**
|
|
1770
2075
|
* 将消息发送给Topic的所有订阅端点。当返回消息ID时,该消息已被保存并开始尝试将其推送给Topic的订阅者。三种消息发送方式
|
|
1771
2076
|
*
|
|
@@ -1812,6 +2117,43 @@ const ParamCreater = function () {
|
|
|
1812
2117
|
options.headers = localVarHeaderParameter;
|
|
1813
2118
|
return options;
|
|
1814
2119
|
},
|
|
2120
|
+
/**
|
|
2121
|
+
* 根据http探测发送返回的task_id查询探测结果。
|
|
2122
|
+
*
|
|
2123
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
2124
|
+
*/
|
|
2125
|
+
showHttpDetectResult(showHttpDetectResultRequest) {
|
|
2126
|
+
const options = {
|
|
2127
|
+
method: "GET",
|
|
2128
|
+
url: "/v2/{project_id}/notifications/topics/{topic_urn}/detection/{task_id}",
|
|
2129
|
+
contentType: "application/json",
|
|
2130
|
+
queryParams: {},
|
|
2131
|
+
pathParams: {},
|
|
2132
|
+
headers: {}
|
|
2133
|
+
};
|
|
2134
|
+
const localVarHeaderParameter = {};
|
|
2135
|
+
let topicUrn;
|
|
2136
|
+
let taskId;
|
|
2137
|
+
if (showHttpDetectResultRequest !== null && showHttpDetectResultRequest !== undefined) {
|
|
2138
|
+
if (showHttpDetectResultRequest instanceof ShowHttpDetectResultRequest_1.ShowHttpDetectResultRequest) {
|
|
2139
|
+
topicUrn = showHttpDetectResultRequest.topicUrn;
|
|
2140
|
+
taskId = showHttpDetectResultRequest.taskId;
|
|
2141
|
+
}
|
|
2142
|
+
else {
|
|
2143
|
+
topicUrn = showHttpDetectResultRequest['topic_urn'];
|
|
2144
|
+
taskId = showHttpDetectResultRequest['task_id'];
|
|
2145
|
+
}
|
|
2146
|
+
}
|
|
2147
|
+
if (topicUrn === null || topicUrn === undefined) {
|
|
2148
|
+
throw new RequiredError('topicUrn', 'Required parameter topicUrn was null or undefined when calling showHttpDetectResult.');
|
|
2149
|
+
}
|
|
2150
|
+
if (taskId === null || taskId === undefined) {
|
|
2151
|
+
throw new RequiredError('taskId', 'Required parameter taskId was null or undefined when calling showHttpDetectResult.');
|
|
2152
|
+
}
|
|
2153
|
+
options.pathParams = { 'topic_urn': topicUrn, 'task_id': taskId, };
|
|
2154
|
+
options.headers = localVarHeaderParameter;
|
|
2155
|
+
return options;
|
|
2156
|
+
},
|
|
1815
2157
|
/**
|
|
1816
2158
|
* 更新指定Topic绑定的云日志。
|
|
1817
2159
|
*
|