@huaweicloud/huaweicloud-sdk-iamaccessanalyzer 3.1.175 → 3.1.176
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/v1/IAMAccessAnalyzerClient.d.ts +250 -4
- package/v1/IAMAccessAnalyzerClient.d.ts.map +1 -1
- package/v1/IAMAccessAnalyzerClient.js +502 -4
- package/v1/IAMAccessAnalyzerClient.js.map +1 -1
- package/v1/model/AnalyzerConfigurationUnusedAccess.d.ts +5 -0
- package/v1/model/AnalyzerConfigurationUnusedAccess.d.ts.map +1 -1
- package/v1/model/AnalyzerConfigurationUnusedAccess.js +10 -0
- package/v1/model/AnalyzerConfigurationUnusedAccess.js.map +1 -1
- package/v1/model/AnalyzerSummary.d.ts +4 -0
- package/v1/model/AnalyzerSummary.d.ts.map +1 -1
- package/v1/model/AnalyzerSummary.js +10 -0
- package/v1/model/AnalyzerSummary.js.map +1 -1
- package/v1/model/CreateNotificationSettingReqBody.d.ts +16 -0
- package/v1/model/CreateNotificationSettingReqBody.d.ts.map +1 -0
- package/v1/model/CreateNotificationSettingReqBody.js +42 -0
- package/v1/model/CreateNotificationSettingReqBody.js.map +1 -0
- package/v1/model/CreateNotificationSettingRequest.d.ts +7 -0
- package/v1/model/CreateNotificationSettingRequest.d.ts.map +1 -0
- package/v1/model/CreateNotificationSettingRequest.js +13 -0
- package/v1/model/CreateNotificationSettingRequest.js.map +1 -0
- package/v1/model/CreateNotificationSettingResponse.d.ts +9 -0
- package/v1/model/CreateNotificationSettingResponse.d.ts.map +1 -0
- package/v1/model/CreateNotificationSettingResponse.js +19 -0
- package/v1/model/CreateNotificationSettingResponse.js.map +1 -0
- package/v1/model/CreateResourceConfigurationsReqBody.d.ts +9 -0
- package/v1/model/CreateResourceConfigurationsReqBody.d.ts.map +1 -0
- package/v1/model/CreateResourceConfigurationsReqBody.js +20 -0
- package/v1/model/CreateResourceConfigurationsReqBody.js.map +1 -0
- package/v1/model/CreateResourceConfigurationsRequest.d.ts +11 -0
- package/v1/model/CreateResourceConfigurationsRequest.d.ts.map +1 -0
- package/v1/model/CreateResourceConfigurationsRequest.js +24 -0
- package/v1/model/CreateResourceConfigurationsRequest.js.map +1 -0
- package/v1/model/CreateResourceConfigurationsResponse.d.ts +5 -0
- package/v1/model/CreateResourceConfigurationsResponse.d.ts.map +1 -0
- package/v1/model/CreateResourceConfigurationsResponse.js +11 -0
- package/v1/model/CreateResourceConfigurationsResponse.js.map +1 -0
- package/v1/model/DeleteNotificationSettingRequest.d.ts +8 -0
- package/v1/model/DeleteNotificationSettingRequest.d.ts.map +1 -0
- package/v1/model/DeleteNotificationSettingRequest.js +20 -0
- package/v1/model/DeleteNotificationSettingRequest.js.map +1 -0
- package/v1/model/DeleteNotificationSettingResponse.d.ts +5 -0
- package/v1/model/DeleteNotificationSettingResponse.d.ts.map +1 -0
- package/v1/model/DeleteNotificationSettingResponse.js +11 -0
- package/v1/model/DeleteNotificationSettingResponse.js.map +1 -0
- package/v1/model/DeleteResourceConfigurationReqBody.d.ts +6 -0
- package/v1/model/DeleteResourceConfigurationReqBody.d.ts.map +1 -0
- package/v1/model/DeleteResourceConfigurationReqBody.js +14 -0
- package/v1/model/DeleteResourceConfigurationReqBody.js.map +1 -0
- package/v1/model/DeleteResourceConfigurationsRequest.d.ts +11 -0
- package/v1/model/DeleteResourceConfigurationsRequest.d.ts.map +1 -0
- package/v1/model/DeleteResourceConfigurationsRequest.js +24 -0
- package/v1/model/DeleteResourceConfigurationsRequest.js.map +1 -0
- package/v1/model/DeleteResourceConfigurationsResponse.d.ts +5 -0
- package/v1/model/DeleteResourceConfigurationsResponse.d.ts.map +1 -0
- package/v1/model/DeleteResourceConfigurationsResponse.js +11 -0
- package/v1/model/DeleteResourceConfigurationsResponse.js.map +1 -0
- package/v1/model/FindingDetails.d.ts +50 -0
- package/v1/model/FindingDetails.d.ts.map +1 -1
- package/v1/model/FindingDetails.js +100 -0
- package/v1/model/FindingDetails.js.map +1 -1
- package/v1/model/IamBpAccessApiWithPasswordDetails.d.ts +16 -0
- package/v1/model/IamBpAccessApiWithPasswordDetails.d.ts.map +1 -0
- package/v1/model/IamBpAccessApiWithPasswordDetails.js +42 -0
- package/v1/model/IamBpAccessApiWithPasswordDetails.js.map +1 -0
- package/v1/model/IamBpAssignHighRiskSysPolicyOrRoleToAgencyDetails.d.ts +12 -0
- package/v1/model/IamBpAssignHighRiskSysPolicyOrRoleToAgencyDetails.d.ts.map +1 -0
- package/v1/model/IamBpAssignHighRiskSysPolicyOrRoleToAgencyDetails.js +31 -0
- package/v1/model/IamBpAssignHighRiskSysPolicyOrRoleToAgencyDetails.js.map +1 -0
- package/v1/model/IamBpAssignHighRiskSysPolicyOrRoleToUserDetails.d.ts +12 -0
- package/v1/model/IamBpAssignHighRiskSysPolicyOrRoleToUserDetails.d.ts.map +1 -0
- package/v1/model/IamBpAssignHighRiskSysPolicyOrRoleToUserDetails.js +31 -0
- package/v1/model/IamBpAssignHighRiskSysPolicyOrRoleToUserDetails.js.map +1 -0
- package/v1/model/IamBpAttachHighRiskSysIdentityPolicyToAgencyDetails.d.ts +12 -0
- package/v1/model/IamBpAttachHighRiskSysIdentityPolicyToAgencyDetails.d.ts.map +1 -0
- package/v1/model/IamBpAttachHighRiskSysIdentityPolicyToAgencyDetails.js +31 -0
- package/v1/model/IamBpAttachHighRiskSysIdentityPolicyToAgencyDetails.js.map +1 -0
- package/v1/model/IamBpAttachHighRiskSysIdentityPolicyToUserDetails.d.ts +12 -0
- package/v1/model/IamBpAttachHighRiskSysIdentityPolicyToUserDetails.d.ts.map +1 -0
- package/v1/model/IamBpAttachHighRiskSysIdentityPolicyToUserDetails.js +31 -0
- package/v1/model/IamBpAttachHighRiskSysIdentityPolicyToUserDetails.js.map +1 -0
- package/v1/model/IamBpLoginProtectionDisabledDetails.d.ts +12 -0
- package/v1/model/IamBpLoginProtectionDisabledDetails.d.ts.map +1 -0
- package/v1/model/IamBpLoginProtectionDisabledDetails.js +31 -0
- package/v1/model/IamBpLoginProtectionDisabledDetails.js.map +1 -0
- package/v1/model/IamBpMfaUnconfiguredDetails.d.ts +12 -0
- package/v1/model/IamBpMfaUnconfiguredDetails.d.ts.map +1 -0
- package/v1/model/IamBpMfaUnconfiguredDetails.js +31 -0
- package/v1/model/IamBpMfaUnconfiguredDetails.js.map +1 -0
- package/v1/model/IamBpRootUserHasAccessKeyDetails.d.ts +16 -0
- package/v1/model/IamBpRootUserHasAccessKeyDetails.d.ts.map +1 -0
- package/v1/model/IamBpRootUserHasAccessKeyDetails.js +41 -0
- package/v1/model/IamBpRootUserHasAccessKeyDetails.js.map +1 -0
- package/v1/model/ListAnalyzersRequest.d.ts +3 -1
- package/v1/model/ListAnalyzersRequest.d.ts.map +1 -1
- package/v1/model/ListAnalyzersRequest.js +2 -0
- package/v1/model/ListAnalyzersRequest.js.map +1 -1
- package/v1/model/ListNotificationSettingsRequest.d.ts +8 -0
- package/v1/model/ListNotificationSettingsRequest.d.ts.map +1 -0
- package/v1/model/ListNotificationSettingsRequest.js +17 -0
- package/v1/model/ListNotificationSettingsRequest.js.map +1 -0
- package/v1/model/ListNotificationSettingsResponse.d.ts +15 -0
- package/v1/model/ListNotificationSettingsResponse.d.ts.map +1 -0
- package/v1/model/ListNotificationSettingsResponse.js +31 -0
- package/v1/model/ListNotificationSettingsResponse.js.map +1 -0
- package/v1/model/ListResourceConfigurationsRequest.d.ts +12 -0
- package/v1/model/ListResourceConfigurationsRequest.d.ts.map +1 -0
- package/v1/model/ListResourceConfigurationsRequest.js +28 -0
- package/v1/model/ListResourceConfigurationsRequest.js.map +1 -0
- package/v1/model/ListResourceConfigurationsResponse.d.ts +15 -0
- package/v1/model/ListResourceConfigurationsResponse.d.ts.map +1 -0
- package/v1/model/ListResourceConfigurationsResponse.js +31 -0
- package/v1/model/ListResourceConfigurationsResponse.js.map +1 -0
- package/v1/model/NotificationSettingId.d.ts +4 -0
- package/v1/model/NotificationSettingId.d.ts.map +1 -0
- package/v1/model/NotificationSettingId.js +9 -0
- package/v1/model/NotificationSettingId.js.map +1 -0
- package/v1/model/NotificationSettingSummary.d.ts +37 -0
- package/v1/model/NotificationSettingSummary.d.ts.map +1 -0
- package/v1/model/NotificationSettingSummary.js +96 -0
- package/v1/model/NotificationSettingSummary.js.map +1 -0
- package/v1/model/NotificationSettingUrn.d.ts +4 -0
- package/v1/model/NotificationSettingUrn.d.ts.map +1 -0
- package/v1/model/NotificationSettingUrn.js +9 -0
- package/v1/model/NotificationSettingUrn.js.map +1 -0
- package/v1/model/PrivilegeEscalationDetails.d.ts +18 -0
- package/v1/model/PrivilegeEscalationDetails.d.ts.map +1 -0
- package/v1/model/PrivilegeEscalationDetails.js +40 -0
- package/v1/model/PrivilegeEscalationDetails.js.map +1 -0
- package/v1/model/PrivilegeEscalationStep.d.ts +11 -0
- package/v1/model/PrivilegeEscalationStep.d.ts.map +1 -0
- package/v1/model/PrivilegeEscalationStep.js +24 -0
- package/v1/model/PrivilegeEscalationStep.js.map +1 -0
- package/v1/model/ResourceConfiguration.d.ts +8 -0
- package/v1/model/ResourceConfiguration.d.ts.map +1 -0
- package/v1/model/ResourceConfiguration.js +19 -0
- package/v1/model/ResourceConfiguration.js.map +1 -0
- package/v1/model/ShowNotificationSettingRequest.d.ts +8 -0
- package/v1/model/ShowNotificationSettingRequest.d.ts.map +1 -0
- package/v1/model/ShowNotificationSettingRequest.js +20 -0
- package/v1/model/ShowNotificationSettingRequest.js.map +1 -0
- package/v1/model/ShowNotificationSettingResponse.d.ts +38 -0
- package/v1/model/ShowNotificationSettingResponse.d.ts.map +1 -0
- package/v1/model/ShowNotificationSettingResponse.js +89 -0
- package/v1/model/ShowNotificationSettingResponse.js.map +1 -0
- package/v1/model/StartResourceScanReqBody.d.ts +5 -0
- package/v1/model/StartResourceScanReqBody.d.ts.map +1 -1
- package/v1/model/StartResourceScanReqBody.js +10 -0
- package/v1/model/StartResourceScanReqBody.js.map +1 -1
- package/v1/model/UnusedAction.d.ts +4 -0
- package/v1/model/UnusedAction.d.ts.map +1 -1
- package/v1/model/UnusedAction.js +10 -0
- package/v1/model/UnusedAction.js.map +1 -1
- package/v1/model/UnusedAnalysisRule.d.ts +7 -0
- package/v1/model/UnusedAnalysisRule.d.ts.map +1 -0
- package/v1/model/UnusedAnalysisRule.js +13 -0
- package/v1/model/UnusedAnalysisRule.js.map +1 -0
- package/v1/model/UnusedAnalysisRuleCriteria.d.ts +13 -0
- package/v1/model/UnusedAnalysisRuleCriteria.d.ts.map +1 -0
- package/v1/model/UnusedAnalysisRuleCriteria.js +29 -0
- package/v1/model/UnusedAnalysisRuleCriteria.js.map +1 -0
- package/v1/model/UnusedIamAgencyDetails.d.ts +8 -0
- package/v1/model/UnusedIamAgencyDetails.d.ts.map +1 -0
- package/v1/model/UnusedIamAgencyDetails.js +19 -0
- package/v1/model/UnusedIamAgencyDetails.js.map +1 -0
- package/v1/model/UnusedPermissionDetails.d.ts +4 -0
- package/v1/model/UnusedPermissionDetails.d.ts.map +1 -1
- package/v1/model/UnusedPermissionDetails.js +10 -0
- package/v1/model/UnusedPermissionDetails.js.map +1 -1
- package/v1/model/UpdateAnalyzerReqBody.d.ts +7 -0
- package/v1/model/UpdateAnalyzerReqBody.d.ts.map +1 -0
- package/v1/model/UpdateAnalyzerReqBody.js +13 -0
- package/v1/model/UpdateAnalyzerReqBody.js.map +1 -0
- package/v1/model/UpdateAnalyzerRequest.d.ts +11 -0
- package/v1/model/UpdateAnalyzerRequest.d.ts.map +1 -0
- package/v1/model/UpdateAnalyzerRequest.js +24 -0
- package/v1/model/UpdateAnalyzerRequest.js.map +1 -0
- package/v1/model/UpdateAnalyzerResponse.d.ts +5 -0
- package/v1/model/UpdateAnalyzerResponse.d.ts.map +1 -0
- package/v1/model/UpdateAnalyzerResponse.js +11 -0
- package/v1/model/UpdateAnalyzerResponse.js.map +1 -0
- package/v1/model/UpdateNotificationSettingReqBody.d.ts +12 -0
- package/v1/model/UpdateNotificationSettingReqBody.d.ts.map +1 -0
- package/v1/model/UpdateNotificationSettingReqBody.js +31 -0
- package/v1/model/UpdateNotificationSettingReqBody.js.map +1 -0
- package/v1/model/UpdateNotificationSettingRequest.d.ts +11 -0
- package/v1/model/UpdateNotificationSettingRequest.d.ts.map +1 -0
- package/v1/model/UpdateNotificationSettingRequest.js +24 -0
- package/v1/model/UpdateNotificationSettingRequest.js.map +1 -0
- package/v1/model/UpdateNotificationSettingResponse.d.ts +5 -0
- package/v1/model/UpdateNotificationSettingResponse.d.ts.map +1 -0
- package/v1/model/UpdateNotificationSettingResponse.js +11 -0
- package/v1/model/UpdateNotificationSettingResponse.js.map +1 -0
- package/v1/public-api.d.ts +40 -0
- package/v1/public-api.d.ts.map +1 -1
- package/v1/public-api.js +40 -0
- package/v1/public-api.js.map +1 -1
|
@@ -7,22 +7,31 @@ const CheckNoNewAccessRequest_1 = require("./model/CheckNoNewAccessRequest");
|
|
|
7
7
|
const CreateAccessPreviewRequest_1 = require("./model/CreateAccessPreviewRequest");
|
|
8
8
|
const CreateAnalyzerRequest_1 = require("./model/CreateAnalyzerRequest");
|
|
9
9
|
const CreateArchiveRuleRequest_1 = require("./model/CreateArchiveRuleRequest");
|
|
10
|
+
const CreateNotificationSettingRequest_1 = require("./model/CreateNotificationSettingRequest");
|
|
11
|
+
const CreateResourceConfigurationsRequest_1 = require("./model/CreateResourceConfigurationsRequest");
|
|
10
12
|
const DeleteAnalyzerRequest_1 = require("./model/DeleteAnalyzerRequest");
|
|
11
13
|
const DeleteArchiveRuleRequest_1 = require("./model/DeleteArchiveRuleRequest");
|
|
14
|
+
const DeleteNotificationSettingRequest_1 = require("./model/DeleteNotificationSettingRequest");
|
|
15
|
+
const DeleteResourceConfigurationsRequest_1 = require("./model/DeleteResourceConfigurationsRequest");
|
|
12
16
|
const ListAccessPreviewFindingsRequest_1 = require("./model/ListAccessPreviewFindingsRequest");
|
|
13
17
|
const ListAccessPreviewsRequest_1 = require("./model/ListAccessPreviewsRequest");
|
|
14
18
|
const ListAnalyzersRequest_1 = require("./model/ListAnalyzersRequest");
|
|
15
19
|
const ListArchiveRulesRequest_1 = require("./model/ListArchiveRulesRequest");
|
|
16
20
|
const ListFindingsRequest_1 = require("./model/ListFindingsRequest");
|
|
21
|
+
const ListNotificationSettingsRequest_1 = require("./model/ListNotificationSettingsRequest");
|
|
22
|
+
const ListResourceConfigurationsRequest_1 = require("./model/ListResourceConfigurationsRequest");
|
|
17
23
|
const ShowAccessPreviewRequest_1 = require("./model/ShowAccessPreviewRequest");
|
|
18
24
|
const ShowAnalyzerRequest_1 = require("./model/ShowAnalyzerRequest");
|
|
19
25
|
const ShowArchiveRuleRequest_1 = require("./model/ShowArchiveRuleRequest");
|
|
20
26
|
const ShowFindingRequest_1 = require("./model/ShowFindingRequest");
|
|
27
|
+
const ShowNotificationSettingRequest_1 = require("./model/ShowNotificationSettingRequest");
|
|
21
28
|
const StartResourceScanRequest_1 = require("./model/StartResourceScanRequest");
|
|
22
29
|
const TagResourceRequest_1 = require("./model/TagResourceRequest");
|
|
23
30
|
const UntagResourceRequest_1 = require("./model/UntagResourceRequest");
|
|
31
|
+
const UpdateAnalyzerRequest_1 = require("./model/UpdateAnalyzerRequest");
|
|
24
32
|
const UpdateArchiveRuleRequest_1 = require("./model/UpdateArchiveRuleRequest");
|
|
25
33
|
const UpdateFindingsRequest_1 = require("./model/UpdateFindingsRequest");
|
|
34
|
+
const UpdateNotificationSettingRequest_1 = require("./model/UpdateNotificationSettingRequest");
|
|
26
35
|
const ValidatePolicyRequest_1 = require("./model/ValidatePolicyRequest");
|
|
27
36
|
class IAMAccessAnalyzerClient {
|
|
28
37
|
static newBuilder() {
|
|
@@ -75,7 +84,7 @@ class IAMAccessAnalyzerClient {
|
|
|
75
84
|
* @summary 检索分析器的列表
|
|
76
85
|
* @param {number} [limit] 单页最大结果数。
|
|
77
86
|
* @param {string} [marker] 页面标记。
|
|
78
|
-
* @param {'account' | 'organization' | 'account_unused_access' | 'organization_unused_access'} [type] 分析器的类型。
|
|
87
|
+
* @param {'account' | 'organization' | 'account_unused_access' | 'organization_unused_access' | 'account_privilege_escalation' | 'account_iam_best_practice'} [type] 分析器的类型。 - account:账号级外部访问分析器 - organization:组织级外部访问分析器 - account_unused_access:账号级未使用访问分析器 - organization_unused_access:组织级未使用访问分析器 - account_privilege_escalation:账号级提权访问分析器 - account_iam_best_practice:账号级IAM最佳实践分析器
|
|
79
88
|
* @param {*} [options] Override http request option.
|
|
80
89
|
* @throws {RequiredError}
|
|
81
90
|
*/
|
|
@@ -118,6 +127,23 @@ class IAMAccessAnalyzerClient {
|
|
|
118
127
|
options['responseHeaders'] = [''];
|
|
119
128
|
return this.hcClient.sendRequest(options);
|
|
120
129
|
}
|
|
130
|
+
/**
|
|
131
|
+
* 更新指定分析器的配置。
|
|
132
|
+
*
|
|
133
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
134
|
+
*
|
|
135
|
+
* @summary 更新指定分析器的配置
|
|
136
|
+
* @param {string} analyzerId 分析器的唯一标识符。
|
|
137
|
+
* @param {UpdateAnalyzerReqBody} updateAnalyzerReqBody
|
|
138
|
+
* @param {*} [options] Override http request option.
|
|
139
|
+
* @throws {RequiredError}
|
|
140
|
+
*/
|
|
141
|
+
updateAnalyzer(updateAnalyzerRequest) {
|
|
142
|
+
const options = (0, exports.ParamCreater)().updateAnalyzer(updateAnalyzerRequest);
|
|
143
|
+
// @ts-ignore
|
|
144
|
+
options['responseHeaders'] = [''];
|
|
145
|
+
return this.hcClient.sendRequest(options);
|
|
146
|
+
}
|
|
121
147
|
/**
|
|
122
148
|
* 以追溯方式将存档规则应用于符合存档规则条件的现有结果。
|
|
123
149
|
*
|
|
@@ -222,6 +248,58 @@ class IAMAccessAnalyzerClient {
|
|
|
222
248
|
options['responseHeaders'] = [''];
|
|
223
249
|
return this.hcClient.sendRequest(options);
|
|
224
250
|
}
|
|
251
|
+
/**
|
|
252
|
+
* 创建指定分析器的资源分析配置。
|
|
253
|
+
*
|
|
254
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
255
|
+
*
|
|
256
|
+
* @summary 创建资源分析配置
|
|
257
|
+
* @param {string} analyzerId 分析器的唯一标识符。
|
|
258
|
+
* @param {CreateResourceConfigurationsReqBody} createResourceConfigurationsReqBody
|
|
259
|
+
* @param {*} [options] Override http request option.
|
|
260
|
+
* @throws {RequiredError}
|
|
261
|
+
*/
|
|
262
|
+
createResourceConfigurations(createResourceConfigurationsRequest) {
|
|
263
|
+
const options = (0, exports.ParamCreater)().createResourceConfigurations(createResourceConfigurationsRequest);
|
|
264
|
+
// @ts-ignore
|
|
265
|
+
options['responseHeaders'] = [''];
|
|
266
|
+
return this.hcClient.sendRequest(options);
|
|
267
|
+
}
|
|
268
|
+
/**
|
|
269
|
+
* 删除指定分析器的资源分析配置。
|
|
270
|
+
*
|
|
271
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
272
|
+
*
|
|
273
|
+
* @summary 删除资源分析配置
|
|
274
|
+
* @param {string} analyzerId 分析器的唯一标识符。
|
|
275
|
+
* @param {DeleteResourceConfigurationReqBody} deleteResourceConfigurationReqBody
|
|
276
|
+
* @param {*} [options] Override http request option.
|
|
277
|
+
* @throws {RequiredError}
|
|
278
|
+
*/
|
|
279
|
+
deleteResourceConfigurations(deleteResourceConfigurationsRequest) {
|
|
280
|
+
const options = (0, exports.ParamCreater)().deleteResourceConfigurations(deleteResourceConfigurationsRequest);
|
|
281
|
+
// @ts-ignore
|
|
282
|
+
options['responseHeaders'] = [''];
|
|
283
|
+
return this.hcClient.sendRequest(options);
|
|
284
|
+
}
|
|
285
|
+
/**
|
|
286
|
+
* 列举指定分析器的资源分析配置。
|
|
287
|
+
*
|
|
288
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
289
|
+
*
|
|
290
|
+
* @summary 列举资源分析配置
|
|
291
|
+
* @param {string} analyzerId 分析器的唯一标识符。
|
|
292
|
+
* @param {number} [limit] 单页最大结果数。
|
|
293
|
+
* @param {string} [marker] 页面标记。
|
|
294
|
+
* @param {*} [options] Override http request option.
|
|
295
|
+
* @throws {RequiredError}
|
|
296
|
+
*/
|
|
297
|
+
listResourceConfigurations(listResourceConfigurationsRequest) {
|
|
298
|
+
const options = (0, exports.ParamCreater)().listResourceConfigurations(listResourceConfigurationsRequest);
|
|
299
|
+
// @ts-ignore
|
|
300
|
+
options['responseHeaders'] = [''];
|
|
301
|
+
return this.hcClient.sendRequest(options);
|
|
302
|
+
}
|
|
225
303
|
/**
|
|
226
304
|
* 检索指定分析器生成的访问分析结果列表。
|
|
227
305
|
*
|
|
@@ -273,6 +351,88 @@ class IAMAccessAnalyzerClient {
|
|
|
273
351
|
options['responseHeaders'] = [''];
|
|
274
352
|
return this.hcClient.sendRequest(options);
|
|
275
353
|
}
|
|
354
|
+
/**
|
|
355
|
+
* 创建消息通知配置。
|
|
356
|
+
*
|
|
357
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
358
|
+
*
|
|
359
|
+
* @summary 创建消息通知配置
|
|
360
|
+
* @param {CreateNotificationSettingReqBody} createNotificationSettingReqBody
|
|
361
|
+
* @param {*} [options] Override http request option.
|
|
362
|
+
* @throws {RequiredError}
|
|
363
|
+
*/
|
|
364
|
+
createNotificationSetting(createNotificationSettingRequest) {
|
|
365
|
+
const options = (0, exports.ParamCreater)().createNotificationSetting(createNotificationSettingRequest);
|
|
366
|
+
// @ts-ignore
|
|
367
|
+
options['responseHeaders'] = [''];
|
|
368
|
+
return this.hcClient.sendRequest(options);
|
|
369
|
+
}
|
|
370
|
+
/**
|
|
371
|
+
* 删除消息通知配置。
|
|
372
|
+
*
|
|
373
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
374
|
+
*
|
|
375
|
+
* @summary 删除消息通知配置
|
|
376
|
+
* @param {string} notificationSettingId 消息通知配置的唯一标识符。
|
|
377
|
+
* @param {*} [options] Override http request option.
|
|
378
|
+
* @throws {RequiredError}
|
|
379
|
+
*/
|
|
380
|
+
deleteNotificationSetting(deleteNotificationSettingRequest) {
|
|
381
|
+
const options = (0, exports.ParamCreater)().deleteNotificationSetting(deleteNotificationSettingRequest);
|
|
382
|
+
// @ts-ignore
|
|
383
|
+
options['responseHeaders'] = [''];
|
|
384
|
+
return this.hcClient.sendRequest(options);
|
|
385
|
+
}
|
|
386
|
+
/**
|
|
387
|
+
* 获取消息通知配置列表。
|
|
388
|
+
*
|
|
389
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
390
|
+
*
|
|
391
|
+
* @summary 获取消息通知配置列表
|
|
392
|
+
* @param {number} [limit] 单页最大结果数。
|
|
393
|
+
* @param {string} [marker] 页面标记。
|
|
394
|
+
* @param {*} [options] Override http request option.
|
|
395
|
+
* @throws {RequiredError}
|
|
396
|
+
*/
|
|
397
|
+
listNotificationSettings(listNotificationSettingsRequest) {
|
|
398
|
+
const options = (0, exports.ParamCreater)().listNotificationSettings(listNotificationSettingsRequest);
|
|
399
|
+
// @ts-ignore
|
|
400
|
+
options['responseHeaders'] = [''];
|
|
401
|
+
return this.hcClient.sendRequest(options);
|
|
402
|
+
}
|
|
403
|
+
/**
|
|
404
|
+
* 获取消息通知配置。
|
|
405
|
+
*
|
|
406
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
407
|
+
*
|
|
408
|
+
* @summary 获取消息通知配置
|
|
409
|
+
* @param {string} notificationSettingId 消息通知配置的唯一标识符。
|
|
410
|
+
* @param {*} [options] Override http request option.
|
|
411
|
+
* @throws {RequiredError}
|
|
412
|
+
*/
|
|
413
|
+
showNotificationSetting(showNotificationSettingRequest) {
|
|
414
|
+
const options = (0, exports.ParamCreater)().showNotificationSetting(showNotificationSettingRequest);
|
|
415
|
+
// @ts-ignore
|
|
416
|
+
options['responseHeaders'] = [''];
|
|
417
|
+
return this.hcClient.sendRequest(options);
|
|
418
|
+
}
|
|
419
|
+
/**
|
|
420
|
+
* 更新消息通知配置。
|
|
421
|
+
*
|
|
422
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
423
|
+
*
|
|
424
|
+
* @summary 更新消息通知配置
|
|
425
|
+
* @param {string} notificationSettingId 消息通知配置的唯一标识符。
|
|
426
|
+
* @param {UpdateNotificationSettingReqBody} updateNotificationSettingReqBody
|
|
427
|
+
* @param {*} [options] Override http request option.
|
|
428
|
+
* @throws {RequiredError}
|
|
429
|
+
*/
|
|
430
|
+
updateNotificationSetting(updateNotificationSettingRequest) {
|
|
431
|
+
const options = (0, exports.ParamCreater)().updateNotificationSetting(updateNotificationSettingRequest);
|
|
432
|
+
// @ts-ignore
|
|
433
|
+
options['responseHeaders'] = [''];
|
|
434
|
+
return this.hcClient.sendRequest(options);
|
|
435
|
+
}
|
|
276
436
|
/**
|
|
277
437
|
* 创建访问预览。
|
|
278
438
|
*
|
|
@@ -349,7 +509,7 @@ class IAMAccessAnalyzerClient {
|
|
|
349
509
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
350
510
|
*
|
|
351
511
|
* @summary 向指定资源添加标签
|
|
352
|
-
* @param {'analyzers'} resourceType 资源类型。
|
|
512
|
+
* @param {'analyzers'} resourceType 资源类型。 - analyzers:分析器
|
|
353
513
|
* @param {string} resourceId 资源的唯一标识符。
|
|
354
514
|
* @param {TagResourceReqBody} tagResourceReqBody
|
|
355
515
|
* @param {*} [options] Override http request option.
|
|
@@ -367,7 +527,7 @@ class IAMAccessAnalyzerClient {
|
|
|
367
527
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
368
528
|
*
|
|
369
529
|
* @summary 从指定资源中删除标签
|
|
370
|
-
* @param {'analyzers'} resourceType 资源类型。
|
|
530
|
+
* @param {'analyzers'} resourceType 资源类型。 - analyzers:分析器
|
|
371
531
|
* @param {string} resourceId 资源的唯一标识符。
|
|
372
532
|
* @param {UntagResourceReqBody} untagResourceReqBody
|
|
373
533
|
* @param {*} [options] Override http request option.
|
|
@@ -404,7 +564,7 @@ class IAMAccessAnalyzerClient {
|
|
|
404
564
|
* @param {ValidatePolicyReqBody} validatePolicyReqBody
|
|
405
565
|
* @param {number} [limit] 单页最大结果数。
|
|
406
566
|
* @param {string} [marker] 页面标记。
|
|
407
|
-
* @param {'zh-cn' | 'en-us'} [xLanguage] 返回消息的语言,默认值为\'zh-cn\'
|
|
567
|
+
* @param {'zh-cn' | 'en-us'} [xLanguage] 返回消息的语言,默认值为\'zh-cn\'。 - zh-cn:中文 - en-us:英文
|
|
408
568
|
* @param {*} [options] Override http request option.
|
|
409
569
|
* @throws {RequiredError}
|
|
410
570
|
*/
|
|
@@ -597,6 +757,46 @@ const ParamCreater = function () {
|
|
|
597
757
|
options.headers = localVarHeaderParameter;
|
|
598
758
|
return options;
|
|
599
759
|
},
|
|
760
|
+
/**
|
|
761
|
+
* 更新指定分析器的配置。
|
|
762
|
+
*
|
|
763
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
764
|
+
*/
|
|
765
|
+
updateAnalyzer(updateAnalyzerRequest) {
|
|
766
|
+
const options = {
|
|
767
|
+
method: "PUT",
|
|
768
|
+
url: "/v5/analyzers/{analyzer_id}",
|
|
769
|
+
contentType: "application/json",
|
|
770
|
+
queryParams: {},
|
|
771
|
+
pathParams: {},
|
|
772
|
+
headers: {},
|
|
773
|
+
data: {}
|
|
774
|
+
};
|
|
775
|
+
const localVarHeaderParameter = {};
|
|
776
|
+
let body;
|
|
777
|
+
let analyzerId;
|
|
778
|
+
if (updateAnalyzerRequest !== null && updateAnalyzerRequest !== undefined) {
|
|
779
|
+
if (updateAnalyzerRequest instanceof UpdateAnalyzerRequest_1.UpdateAnalyzerRequest) {
|
|
780
|
+
analyzerId = updateAnalyzerRequest.analyzerId;
|
|
781
|
+
body = updateAnalyzerRequest.body;
|
|
782
|
+
}
|
|
783
|
+
else {
|
|
784
|
+
analyzerId = updateAnalyzerRequest['analyzer_id'];
|
|
785
|
+
body = updateAnalyzerRequest['body'];
|
|
786
|
+
}
|
|
787
|
+
}
|
|
788
|
+
if (analyzerId === null || analyzerId === undefined) {
|
|
789
|
+
throw new RequiredError('analyzerId', 'Required parameter analyzerId was null or undefined when calling updateAnalyzer.');
|
|
790
|
+
}
|
|
791
|
+
if (body === null || body === undefined) {
|
|
792
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
793
|
+
}
|
|
794
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
795
|
+
options.data = body !== undefined ? body : {};
|
|
796
|
+
options.pathParams = { 'analyzer_id': analyzerId, };
|
|
797
|
+
options.headers = localVarHeaderParameter;
|
|
798
|
+
return options;
|
|
799
|
+
},
|
|
600
800
|
/**
|
|
601
801
|
* 以追溯方式将存档规则应用于符合存档规则条件的现有结果。
|
|
602
802
|
*
|
|
@@ -839,6 +1039,131 @@ const ParamCreater = function () {
|
|
|
839
1039
|
options.headers = localVarHeaderParameter;
|
|
840
1040
|
return options;
|
|
841
1041
|
},
|
|
1042
|
+
/**
|
|
1043
|
+
* 创建指定分析器的资源分析配置。
|
|
1044
|
+
*
|
|
1045
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1046
|
+
*/
|
|
1047
|
+
createResourceConfigurations(createResourceConfigurationsRequest) {
|
|
1048
|
+
const options = {
|
|
1049
|
+
method: "POST",
|
|
1050
|
+
url: "/v5/analyzers/{analyzer_id}/resource-configurations/create",
|
|
1051
|
+
contentType: "application/json",
|
|
1052
|
+
queryParams: {},
|
|
1053
|
+
pathParams: {},
|
|
1054
|
+
headers: {},
|
|
1055
|
+
data: {}
|
|
1056
|
+
};
|
|
1057
|
+
const localVarHeaderParameter = {};
|
|
1058
|
+
let body;
|
|
1059
|
+
let analyzerId;
|
|
1060
|
+
if (createResourceConfigurationsRequest !== null && createResourceConfigurationsRequest !== undefined) {
|
|
1061
|
+
if (createResourceConfigurationsRequest instanceof CreateResourceConfigurationsRequest_1.CreateResourceConfigurationsRequest) {
|
|
1062
|
+
analyzerId = createResourceConfigurationsRequest.analyzerId;
|
|
1063
|
+
body = createResourceConfigurationsRequest.body;
|
|
1064
|
+
}
|
|
1065
|
+
else {
|
|
1066
|
+
analyzerId = createResourceConfigurationsRequest['analyzer_id'];
|
|
1067
|
+
body = createResourceConfigurationsRequest['body'];
|
|
1068
|
+
}
|
|
1069
|
+
}
|
|
1070
|
+
if (analyzerId === null || analyzerId === undefined) {
|
|
1071
|
+
throw new RequiredError('analyzerId', 'Required parameter analyzerId was null or undefined when calling createResourceConfigurations.');
|
|
1072
|
+
}
|
|
1073
|
+
if (body === null || body === undefined) {
|
|
1074
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
1075
|
+
}
|
|
1076
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1077
|
+
options.data = body !== undefined ? body : {};
|
|
1078
|
+
options.pathParams = { 'analyzer_id': analyzerId, };
|
|
1079
|
+
options.headers = localVarHeaderParameter;
|
|
1080
|
+
return options;
|
|
1081
|
+
},
|
|
1082
|
+
/**
|
|
1083
|
+
* 删除指定分析器的资源分析配置。
|
|
1084
|
+
*
|
|
1085
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1086
|
+
*/
|
|
1087
|
+
deleteResourceConfigurations(deleteResourceConfigurationsRequest) {
|
|
1088
|
+
const options = {
|
|
1089
|
+
method: "POST",
|
|
1090
|
+
url: "/v5/analyzers/{analyzer_id}/resource-configurations/delete",
|
|
1091
|
+
contentType: "application/json",
|
|
1092
|
+
queryParams: {},
|
|
1093
|
+
pathParams: {},
|
|
1094
|
+
headers: {},
|
|
1095
|
+
data: {}
|
|
1096
|
+
};
|
|
1097
|
+
const localVarHeaderParameter = {};
|
|
1098
|
+
let body;
|
|
1099
|
+
let analyzerId;
|
|
1100
|
+
if (deleteResourceConfigurationsRequest !== null && deleteResourceConfigurationsRequest !== undefined) {
|
|
1101
|
+
if (deleteResourceConfigurationsRequest instanceof DeleteResourceConfigurationsRequest_1.DeleteResourceConfigurationsRequest) {
|
|
1102
|
+
analyzerId = deleteResourceConfigurationsRequest.analyzerId;
|
|
1103
|
+
body = deleteResourceConfigurationsRequest.body;
|
|
1104
|
+
}
|
|
1105
|
+
else {
|
|
1106
|
+
analyzerId = deleteResourceConfigurationsRequest['analyzer_id'];
|
|
1107
|
+
body = deleteResourceConfigurationsRequest['body'];
|
|
1108
|
+
}
|
|
1109
|
+
}
|
|
1110
|
+
if (analyzerId === null || analyzerId === undefined) {
|
|
1111
|
+
throw new RequiredError('analyzerId', 'Required parameter analyzerId was null or undefined when calling deleteResourceConfigurations.');
|
|
1112
|
+
}
|
|
1113
|
+
if (body === null || body === undefined) {
|
|
1114
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
1115
|
+
}
|
|
1116
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1117
|
+
options.data = body !== undefined ? body : {};
|
|
1118
|
+
options.pathParams = { 'analyzer_id': analyzerId, };
|
|
1119
|
+
options.headers = localVarHeaderParameter;
|
|
1120
|
+
return options;
|
|
1121
|
+
},
|
|
1122
|
+
/**
|
|
1123
|
+
* 列举指定分析器的资源分析配置。
|
|
1124
|
+
*
|
|
1125
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1126
|
+
*/
|
|
1127
|
+
listResourceConfigurations(listResourceConfigurationsRequest) {
|
|
1128
|
+
const options = {
|
|
1129
|
+
method: "GET",
|
|
1130
|
+
url: "/v5/analyzers/{analyzer_id}/resource-configurations",
|
|
1131
|
+
contentType: "application/json",
|
|
1132
|
+
queryParams: {},
|
|
1133
|
+
pathParams: {},
|
|
1134
|
+
headers: {}
|
|
1135
|
+
};
|
|
1136
|
+
const localVarHeaderParameter = {};
|
|
1137
|
+
const localVarQueryParameter = {};
|
|
1138
|
+
let analyzerId;
|
|
1139
|
+
let limit;
|
|
1140
|
+
let marker;
|
|
1141
|
+
if (listResourceConfigurationsRequest !== null && listResourceConfigurationsRequest !== undefined) {
|
|
1142
|
+
if (listResourceConfigurationsRequest instanceof ListResourceConfigurationsRequest_1.ListResourceConfigurationsRequest) {
|
|
1143
|
+
analyzerId = listResourceConfigurationsRequest.analyzerId;
|
|
1144
|
+
limit = listResourceConfigurationsRequest.limit;
|
|
1145
|
+
marker = listResourceConfigurationsRequest.marker;
|
|
1146
|
+
}
|
|
1147
|
+
else {
|
|
1148
|
+
analyzerId = listResourceConfigurationsRequest['analyzer_id'];
|
|
1149
|
+
limit = listResourceConfigurationsRequest['limit'];
|
|
1150
|
+
marker = listResourceConfigurationsRequest['marker'];
|
|
1151
|
+
}
|
|
1152
|
+
}
|
|
1153
|
+
if (analyzerId === null || analyzerId === undefined) {
|
|
1154
|
+
throw new RequiredError('analyzerId', 'Required parameter analyzerId was null or undefined when calling listResourceConfigurations.');
|
|
1155
|
+
}
|
|
1156
|
+
if (limit !== null && limit !== undefined) {
|
|
1157
|
+
localVarQueryParameter['limit'] = limit;
|
|
1158
|
+
}
|
|
1159
|
+
if (marker !== null && marker !== undefined) {
|
|
1160
|
+
localVarQueryParameter['marker'] = marker;
|
|
1161
|
+
}
|
|
1162
|
+
options.queryParams = localVarQueryParameter;
|
|
1163
|
+
options.pathParams = { 'analyzer_id': analyzerId, };
|
|
1164
|
+
options.headers = localVarHeaderParameter;
|
|
1165
|
+
return options;
|
|
1166
|
+
},
|
|
842
1167
|
/**
|
|
843
1168
|
* 检索指定分析器生成的访问分析结果列表。
|
|
844
1169
|
*
|
|
@@ -956,6 +1281,179 @@ const ParamCreater = function () {
|
|
|
956
1281
|
options.headers = localVarHeaderParameter;
|
|
957
1282
|
return options;
|
|
958
1283
|
},
|
|
1284
|
+
/**
|
|
1285
|
+
* 创建消息通知配置。
|
|
1286
|
+
*
|
|
1287
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1288
|
+
*/
|
|
1289
|
+
createNotificationSetting(createNotificationSettingRequest) {
|
|
1290
|
+
const options = {
|
|
1291
|
+
method: "POST",
|
|
1292
|
+
url: "/v5/notification-settings",
|
|
1293
|
+
contentType: "application/json",
|
|
1294
|
+
queryParams: {},
|
|
1295
|
+
pathParams: {},
|
|
1296
|
+
headers: {},
|
|
1297
|
+
data: {}
|
|
1298
|
+
};
|
|
1299
|
+
const localVarHeaderParameter = {};
|
|
1300
|
+
let body;
|
|
1301
|
+
if (createNotificationSettingRequest !== null && createNotificationSettingRequest !== undefined) {
|
|
1302
|
+
if (createNotificationSettingRequest instanceof CreateNotificationSettingRequest_1.CreateNotificationSettingRequest) {
|
|
1303
|
+
body = createNotificationSettingRequest.body;
|
|
1304
|
+
}
|
|
1305
|
+
else {
|
|
1306
|
+
body = createNotificationSettingRequest['body'];
|
|
1307
|
+
}
|
|
1308
|
+
}
|
|
1309
|
+
if (body === null || body === undefined) {
|
|
1310
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
1311
|
+
}
|
|
1312
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1313
|
+
options.data = body !== undefined ? body : {};
|
|
1314
|
+
options.headers = localVarHeaderParameter;
|
|
1315
|
+
return options;
|
|
1316
|
+
},
|
|
1317
|
+
/**
|
|
1318
|
+
* 删除消息通知配置。
|
|
1319
|
+
*
|
|
1320
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1321
|
+
*/
|
|
1322
|
+
deleteNotificationSetting(deleteNotificationSettingRequest) {
|
|
1323
|
+
const options = {
|
|
1324
|
+
method: "DELETE",
|
|
1325
|
+
url: "/v5/notification-settings/{notification_setting_id}",
|
|
1326
|
+
contentType: "application/json",
|
|
1327
|
+
queryParams: {},
|
|
1328
|
+
pathParams: {},
|
|
1329
|
+
headers: {}
|
|
1330
|
+
};
|
|
1331
|
+
const localVarHeaderParameter = {};
|
|
1332
|
+
let notificationSettingId;
|
|
1333
|
+
if (deleteNotificationSettingRequest !== null && deleteNotificationSettingRequest !== undefined) {
|
|
1334
|
+
if (deleteNotificationSettingRequest instanceof DeleteNotificationSettingRequest_1.DeleteNotificationSettingRequest) {
|
|
1335
|
+
notificationSettingId = deleteNotificationSettingRequest.notificationSettingId;
|
|
1336
|
+
}
|
|
1337
|
+
else {
|
|
1338
|
+
notificationSettingId = deleteNotificationSettingRequest['notification_setting_id'];
|
|
1339
|
+
}
|
|
1340
|
+
}
|
|
1341
|
+
if (notificationSettingId === null || notificationSettingId === undefined) {
|
|
1342
|
+
throw new RequiredError('notificationSettingId', 'Required parameter notificationSettingId was null or undefined when calling deleteNotificationSetting.');
|
|
1343
|
+
}
|
|
1344
|
+
options.pathParams = { 'notification_setting_id': notificationSettingId, };
|
|
1345
|
+
options.headers = localVarHeaderParameter;
|
|
1346
|
+
return options;
|
|
1347
|
+
},
|
|
1348
|
+
/**
|
|
1349
|
+
* 获取消息通知配置列表。
|
|
1350
|
+
*
|
|
1351
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1352
|
+
*/
|
|
1353
|
+
listNotificationSettings(listNotificationSettingsRequest) {
|
|
1354
|
+
const options = {
|
|
1355
|
+
method: "GET",
|
|
1356
|
+
url: "/v5/notification-settings",
|
|
1357
|
+
contentType: "application/json",
|
|
1358
|
+
queryParams: {},
|
|
1359
|
+
pathParams: {},
|
|
1360
|
+
headers: {}
|
|
1361
|
+
};
|
|
1362
|
+
const localVarHeaderParameter = {};
|
|
1363
|
+
const localVarQueryParameter = {};
|
|
1364
|
+
let limit;
|
|
1365
|
+
let marker;
|
|
1366
|
+
if (listNotificationSettingsRequest !== null && listNotificationSettingsRequest !== undefined) {
|
|
1367
|
+
if (listNotificationSettingsRequest instanceof ListNotificationSettingsRequest_1.ListNotificationSettingsRequest) {
|
|
1368
|
+
limit = listNotificationSettingsRequest.limit;
|
|
1369
|
+
marker = listNotificationSettingsRequest.marker;
|
|
1370
|
+
}
|
|
1371
|
+
else {
|
|
1372
|
+
limit = listNotificationSettingsRequest['limit'];
|
|
1373
|
+
marker = listNotificationSettingsRequest['marker'];
|
|
1374
|
+
}
|
|
1375
|
+
}
|
|
1376
|
+
if (limit !== null && limit !== undefined) {
|
|
1377
|
+
localVarQueryParameter['limit'] = limit;
|
|
1378
|
+
}
|
|
1379
|
+
if (marker !== null && marker !== undefined) {
|
|
1380
|
+
localVarQueryParameter['marker'] = marker;
|
|
1381
|
+
}
|
|
1382
|
+
options.queryParams = localVarQueryParameter;
|
|
1383
|
+
options.headers = localVarHeaderParameter;
|
|
1384
|
+
return options;
|
|
1385
|
+
},
|
|
1386
|
+
/**
|
|
1387
|
+
* 获取消息通知配置。
|
|
1388
|
+
*
|
|
1389
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1390
|
+
*/
|
|
1391
|
+
showNotificationSetting(showNotificationSettingRequest) {
|
|
1392
|
+
const options = {
|
|
1393
|
+
method: "GET",
|
|
1394
|
+
url: "/v5/notification-settings/{notification_setting_id}",
|
|
1395
|
+
contentType: "application/json",
|
|
1396
|
+
queryParams: {},
|
|
1397
|
+
pathParams: {},
|
|
1398
|
+
headers: {}
|
|
1399
|
+
};
|
|
1400
|
+
const localVarHeaderParameter = {};
|
|
1401
|
+
let notificationSettingId;
|
|
1402
|
+
if (showNotificationSettingRequest !== null && showNotificationSettingRequest !== undefined) {
|
|
1403
|
+
if (showNotificationSettingRequest instanceof ShowNotificationSettingRequest_1.ShowNotificationSettingRequest) {
|
|
1404
|
+
notificationSettingId = showNotificationSettingRequest.notificationSettingId;
|
|
1405
|
+
}
|
|
1406
|
+
else {
|
|
1407
|
+
notificationSettingId = showNotificationSettingRequest['notification_setting_id'];
|
|
1408
|
+
}
|
|
1409
|
+
}
|
|
1410
|
+
if (notificationSettingId === null || notificationSettingId === undefined) {
|
|
1411
|
+
throw new RequiredError('notificationSettingId', 'Required parameter notificationSettingId was null or undefined when calling showNotificationSetting.');
|
|
1412
|
+
}
|
|
1413
|
+
options.pathParams = { 'notification_setting_id': notificationSettingId, };
|
|
1414
|
+
options.headers = localVarHeaderParameter;
|
|
1415
|
+
return options;
|
|
1416
|
+
},
|
|
1417
|
+
/**
|
|
1418
|
+
* 更新消息通知配置。
|
|
1419
|
+
*
|
|
1420
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1421
|
+
*/
|
|
1422
|
+
updateNotificationSetting(updateNotificationSettingRequest) {
|
|
1423
|
+
const options = {
|
|
1424
|
+
method: "PUT",
|
|
1425
|
+
url: "/v5/notification-settings/{notification_setting_id}",
|
|
1426
|
+
contentType: "application/json",
|
|
1427
|
+
queryParams: {},
|
|
1428
|
+
pathParams: {},
|
|
1429
|
+
headers: {},
|
|
1430
|
+
data: {}
|
|
1431
|
+
};
|
|
1432
|
+
const localVarHeaderParameter = {};
|
|
1433
|
+
let body;
|
|
1434
|
+
let notificationSettingId;
|
|
1435
|
+
if (updateNotificationSettingRequest !== null && updateNotificationSettingRequest !== undefined) {
|
|
1436
|
+
if (updateNotificationSettingRequest instanceof UpdateNotificationSettingRequest_1.UpdateNotificationSettingRequest) {
|
|
1437
|
+
notificationSettingId = updateNotificationSettingRequest.notificationSettingId;
|
|
1438
|
+
body = updateNotificationSettingRequest.body;
|
|
1439
|
+
}
|
|
1440
|
+
else {
|
|
1441
|
+
notificationSettingId = updateNotificationSettingRequest['notification_setting_id'];
|
|
1442
|
+
body = updateNotificationSettingRequest['body'];
|
|
1443
|
+
}
|
|
1444
|
+
}
|
|
1445
|
+
if (notificationSettingId === null || notificationSettingId === undefined) {
|
|
1446
|
+
throw new RequiredError('notificationSettingId', 'Required parameter notificationSettingId was null or undefined when calling updateNotificationSetting.');
|
|
1447
|
+
}
|
|
1448
|
+
if (body === null || body === undefined) {
|
|
1449
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
1450
|
+
}
|
|
1451
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1452
|
+
options.data = body !== undefined ? body : {};
|
|
1453
|
+
options.pathParams = { 'notification_setting_id': notificationSettingId, };
|
|
1454
|
+
options.headers = localVarHeaderParameter;
|
|
1455
|
+
return options;
|
|
1456
|
+
},
|
|
959
1457
|
/**
|
|
960
1458
|
* 创建访问预览。
|
|
961
1459
|
*
|