@alicloud/bdrc20230808 1.0.1 → 2.0.0
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/dist/client.d.ts +355 -1677
- package/dist/client.js +977 -1490
- package/dist/client.js.map +1 -1
- package/dist/models/CheckRulesRequest.d.ts +31 -0
- package/dist/models/CheckRulesRequest.js +60 -0
- package/dist/models/CheckRulesRequest.js.map +1 -0
- package/dist/models/CheckRulesResponse.d.ts +19 -0
- package/dist/models/CheckRulesResponse.js +69 -0
- package/dist/models/CheckRulesResponse.js.map +1 -0
- package/dist/models/CheckRulesResponseBody.d.ts +48 -0
- package/dist/models/CheckRulesResponseBody.js +84 -0
- package/dist/models/CheckRulesResponseBody.js.map +1 -0
- package/dist/models/CloseBdrcServiceResponse.d.ts +19 -0
- package/dist/models/CloseBdrcServiceResponse.js +69 -0
- package/dist/models/CloseBdrcServiceResponse.js.map +1 -0
- package/dist/models/CloseBdrcServiceResponseBody.d.ts +21 -0
- package/dist/models/CloseBdrcServiceResponseBody.js +58 -0
- package/dist/models/CloseBdrcServiceResponseBody.js.map +1 -0
- package/dist/models/CreateProtectionPolicyRequest.d.ts +87 -0
- package/dist/models/CreateProtectionPolicyRequest.js +93 -0
- package/dist/models/CreateProtectionPolicyRequest.js.map +1 -0
- package/dist/models/CreateProtectionPolicyResponse.d.ts +19 -0
- package/dist/models/CreateProtectionPolicyResponse.js +69 -0
- package/dist/models/CreateProtectionPolicyResponse.js.map +1 -0
- package/dist/models/CreateProtectionPolicyResponseBody.d.ts +46 -0
- package/dist/models/CreateProtectionPolicyResponseBody.js +82 -0
- package/dist/models/CreateProtectionPolicyResponseBody.js.map +1 -0
- package/dist/models/CreateProtectionPolicyShrinkRequest.d.ts +57 -0
- package/dist/models/CreateProtectionPolicyShrinkRequest.js +66 -0
- package/dist/models/CreateProtectionPolicyShrinkRequest.js.map +1 -0
- package/dist/models/CreateResourceCategoryRequest.d.ts +70 -0
- package/dist/models/CreateResourceCategoryRequest.js +62 -0
- package/dist/models/CreateResourceCategoryRequest.js.map +1 -0
- package/dist/models/CreateResourceCategoryResponse.d.ts +19 -0
- package/dist/models/CreateResourceCategoryResponse.js +69 -0
- package/dist/models/CreateResourceCategoryResponse.js.map +1 -0
- package/dist/models/CreateResourceCategoryResponseBody.d.ts +46 -0
- package/dist/models/CreateResourceCategoryResponseBody.js +82 -0
- package/dist/models/CreateResourceCategoryResponseBody.js.map +1 -0
- package/dist/models/DeleteProtectionPolicyRequest.d.ts +13 -0
- package/dist/models/DeleteProtectionPolicyRequest.js +54 -0
- package/dist/models/DeleteProtectionPolicyRequest.js.map +1 -0
- package/dist/models/DeleteProtectionPolicyResponse.d.ts +19 -0
- package/dist/models/DeleteProtectionPolicyResponse.js +69 -0
- package/dist/models/DeleteProtectionPolicyResponse.js.map +1 -0
- package/dist/models/DeleteProtectionPolicyResponseBody.d.ts +21 -0
- package/dist/models/DeleteProtectionPolicyResponseBody.js +58 -0
- package/dist/models/DeleteProtectionPolicyResponseBody.js.map +1 -0
- package/dist/models/DeleteResourceCategoryRequest.d.ts +23 -0
- package/dist/models/DeleteResourceCategoryRequest.js +58 -0
- package/dist/models/DeleteResourceCategoryRequest.js.map +1 -0
- package/dist/models/DeleteResourceCategoryResponse.d.ts +19 -0
- package/dist/models/DeleteResourceCategoryResponse.js +69 -0
- package/dist/models/DeleteResourceCategoryResponse.js.map +1 -0
- package/dist/models/DeleteResourceCategoryResponseBody.d.ts +21 -0
- package/dist/models/DeleteResourceCategoryResponseBody.js +58 -0
- package/dist/models/DeleteResourceCategoryResponseBody.js.map +1 -0
- package/dist/models/DescribeCheckDetailsRequest.d.ts +47 -0
- package/dist/models/DescribeCheckDetailsRequest.js +64 -0
- package/dist/models/DescribeCheckDetailsRequest.js.map +1 -0
- package/dist/models/DescribeCheckDetailsResponse.d.ts +19 -0
- package/dist/models/DescribeCheckDetailsResponse.js +69 -0
- package/dist/models/DescribeCheckDetailsResponse.js.map +1 -0
- package/dist/models/DescribeCheckDetailsResponseBody.d.ts +167 -0
- package/dist/models/DescribeCheckDetailsResponseBody.js +130 -0
- package/dist/models/DescribeCheckDetailsResponseBody.js.map +1 -0
- package/dist/models/DescribeProductDataRedundancyTypeStatRequest.d.ts +32 -0
- package/dist/models/DescribeProductDataRedundancyTypeStatRequest.js +65 -0
- package/dist/models/DescribeProductDataRedundancyTypeStatRequest.js.map +1 -0
- package/dist/models/DescribeProductDataRedundancyTypeStatResponse.d.ts +19 -0
- package/dist/models/DescribeProductDataRedundancyTypeStatResponse.js +69 -0
- package/dist/models/DescribeProductDataRedundancyTypeStatResponse.js.map +1 -0
- package/dist/models/DescribeProductDataRedundancyTypeStatResponseBody.d.ts +79 -0
- package/dist/models/DescribeProductDataRedundancyTypeStatResponseBody.js +108 -0
- package/dist/models/DescribeProductDataRedundancyTypeStatResponseBody.js.map +1 -0
- package/dist/models/DescribeProductDataRedundancyTypeStatShrinkRequest.d.ts +32 -0
- package/dist/models/DescribeProductDataRedundancyTypeStatShrinkRequest.js +62 -0
- package/dist/models/DescribeProductDataRedundancyTypeStatShrinkRequest.js.map +1 -0
- package/dist/models/DescribeProductsRequest.d.ts +45 -0
- package/dist/models/DescribeProductsRequest.js +67 -0
- package/dist/models/DescribeProductsRequest.js.map +1 -0
- package/dist/models/DescribeProductsResponse.d.ts +19 -0
- package/dist/models/DescribeProductsResponse.js +69 -0
- package/dist/models/DescribeProductsResponse.js.map +1 -0
- package/dist/models/DescribeProductsResponseBody.d.ts +225 -0
- package/dist/models/DescribeProductsResponseBody.js +180 -0
- package/dist/models/DescribeProductsResponseBody.js.map +1 -0
- package/dist/models/DescribeProductsShrinkRequest.d.ts +45 -0
- package/dist/models/DescribeProductsShrinkRequest.js +64 -0
- package/dist/models/DescribeProductsShrinkRequest.js.map +1 -0
- package/dist/models/DescribeResourcesRequest.d.ts +117 -0
- package/dist/models/DescribeResourcesRequest.js +85 -0
- package/dist/models/DescribeResourcesRequest.js.map +1 -0
- package/dist/models/DescribeResourcesResponse.d.ts +19 -0
- package/dist/models/DescribeResourcesResponse.js +69 -0
- package/dist/models/DescribeResourcesResponse.js.map +1 -0
- package/dist/models/DescribeResourcesResponseBody.d.ts +271 -0
- package/dist/models/DescribeResourcesResponseBody.js +156 -0
- package/dist/models/DescribeResourcesResponseBody.js.map +1 -0
- package/dist/models/DescribeResourcesShrinkRequest.d.ts +117 -0
- package/dist/models/DescribeResourcesShrinkRequest.js +82 -0
- package/dist/models/DescribeResourcesShrinkRequest.js.map +1 -0
- package/dist/models/DescribeRulesRequest.d.ts +54 -0
- package/dist/models/DescribeRulesRequest.js +71 -0
- package/dist/models/DescribeRulesRequest.js.map +1 -0
- package/dist/models/DescribeRulesResponse.d.ts +19 -0
- package/dist/models/DescribeRulesResponse.js +69 -0
- package/dist/models/DescribeRulesResponse.js.map +1 -0
- package/dist/models/DescribeRulesResponseBody.d.ts +151 -0
- package/dist/models/DescribeRulesResponseBody.js +126 -0
- package/dist/models/DescribeRulesResponseBody.js.map +1 -0
- package/dist/models/DescribeRulesShrinkRequest.d.ts +54 -0
- package/dist/models/DescribeRulesShrinkRequest.js +68 -0
- package/dist/models/DescribeRulesShrinkRequest.js.map +1 -0
- package/dist/models/DescribeTaskResponse.d.ts +19 -0
- package/dist/models/DescribeTaskResponse.js +69 -0
- package/dist/models/DescribeTaskResponse.js.map +1 -0
- package/dist/models/DescribeTaskResponseBody.d.ts +158 -0
- package/dist/models/DescribeTaskResponseBody.js +110 -0
- package/dist/models/DescribeTaskResponseBody.js.map +1 -0
- package/dist/models/DescribeTasksRequest.d.ts +42 -0
- package/dist/models/DescribeTasksRequest.js +64 -0
- package/dist/models/DescribeTasksRequest.js.map +1 -0
- package/dist/models/DescribeTasksResponse.d.ts +19 -0
- package/dist/models/DescribeTasksResponse.js +69 -0
- package/dist/models/DescribeTasksResponse.js.map +1 -0
- package/dist/models/DescribeTasksResponseBody.d.ts +199 -0
- package/dist/models/DescribeTasksResponseBody.js +138 -0
- package/dist/models/DescribeTasksResponseBody.js.map +1 -0
- package/dist/models/DescribeTopRiskyResourcesRequest.d.ts +30 -0
- package/dist/models/DescribeTopRiskyResourcesRequest.js +65 -0
- package/dist/models/DescribeTopRiskyResourcesRequest.js.map +1 -0
- package/dist/models/DescribeTopRiskyResourcesResponse.d.ts +19 -0
- package/dist/models/DescribeTopRiskyResourcesResponse.js +69 -0
- package/dist/models/DescribeTopRiskyResourcesResponse.js.map +1 -0
- package/dist/models/DescribeTopRiskyResourcesResponseBody.d.ts +271 -0
- package/dist/models/DescribeTopRiskyResourcesResponseBody.js +156 -0
- package/dist/models/DescribeTopRiskyResourcesResponseBody.js.map +1 -0
- package/dist/models/DescribeTopRiskyResourcesShrinkRequest.d.ts +30 -0
- package/dist/models/DescribeTopRiskyResourcesShrinkRequest.js +62 -0
- package/dist/models/DescribeTopRiskyResourcesShrinkRequest.js.map +1 -0
- package/dist/models/DisableCheckProductRequest.d.ts +23 -0
- package/dist/models/DisableCheckProductRequest.js +58 -0
- package/dist/models/DisableCheckProductRequest.js.map +1 -0
- package/dist/models/DisableCheckProductResponse.d.ts +19 -0
- package/dist/models/DisableCheckProductResponse.js +69 -0
- package/dist/models/DisableCheckProductResponse.js.map +1 -0
- package/dist/models/DisableCheckProductResponseBody.d.ts +21 -0
- package/dist/models/DisableCheckProductResponseBody.js +58 -0
- package/dist/models/DisableCheckProductResponseBody.js.map +1 -0
- package/dist/models/DisableCheckResourceRequest.d.ts +23 -0
- package/dist/models/DisableCheckResourceRequest.js +58 -0
- package/dist/models/DisableCheckResourceRequest.js.map +1 -0
- package/dist/models/DisableCheckResourceResponse.d.ts +19 -0
- package/dist/models/DisableCheckResourceResponse.js +69 -0
- package/dist/models/DisableCheckResourceResponse.js.map +1 -0
- package/dist/models/DisableCheckResourceResponseBody.d.ts +21 -0
- package/dist/models/DisableCheckResourceResponseBody.js +58 -0
- package/dist/models/DisableCheckResourceResponseBody.js.map +1 -0
- package/dist/models/EnableCheckProductRequest.d.ts +23 -0
- package/dist/models/EnableCheckProductRequest.js +58 -0
- package/dist/models/EnableCheckProductRequest.js.map +1 -0
- package/dist/models/EnableCheckProductResponse.d.ts +19 -0
- package/dist/models/EnableCheckProductResponse.js +69 -0
- package/dist/models/EnableCheckProductResponse.js.map +1 -0
- package/dist/models/EnableCheckProductResponseBody.d.ts +21 -0
- package/dist/models/EnableCheckProductResponseBody.js +58 -0
- package/dist/models/EnableCheckProductResponseBody.js.map +1 -0
- package/dist/models/EnableCheckResourceRequest.d.ts +23 -0
- package/dist/models/EnableCheckResourceRequest.js +58 -0
- package/dist/models/EnableCheckResourceRequest.js.map +1 -0
- package/dist/models/EnableCheckResourceResponse.d.ts +19 -0
- package/dist/models/EnableCheckResourceResponse.js +69 -0
- package/dist/models/EnableCheckResourceResponse.js.map +1 -0
- package/dist/models/EnableCheckResourceResponseBody.d.ts +21 -0
- package/dist/models/EnableCheckResourceResponseBody.js +58 -0
- package/dist/models/EnableCheckResourceResponseBody.js.map +1 -0
- package/dist/models/GetBdrcServiceResponse.d.ts +19 -0
- package/dist/models/GetBdrcServiceResponse.js +69 -0
- package/dist/models/GetBdrcServiceResponse.js.map +1 -0
- package/dist/models/GetBdrcServiceResponseBody.d.ts +70 -0
- package/dist/models/GetBdrcServiceResponseBody.js +88 -0
- package/dist/models/GetBdrcServiceResponseBody.js.map +1 -0
- package/dist/models/GetMessageRequest.d.ts +13 -0
- package/dist/models/GetMessageRequest.js +54 -0
- package/dist/models/GetMessageRequest.js.map +1 -0
- package/dist/models/GetMessageResponse.d.ts +19 -0
- package/dist/models/GetMessageResponse.js +69 -0
- package/dist/models/GetMessageResponse.js.map +1 -0
- package/dist/models/GetMessageResponseBody.d.ts +110 -0
- package/dist/models/GetMessageResponseBody.js +98 -0
- package/dist/models/GetMessageResponseBody.js.map +1 -0
- package/dist/models/GetProtectionPolicyRequest.d.ts +13 -0
- package/dist/models/GetProtectionPolicyRequest.js +54 -0
- package/dist/models/GetProtectionPolicyRequest.js.map +1 -0
- package/dist/models/GetProtectionPolicyResponse.d.ts +19 -0
- package/dist/models/GetProtectionPolicyResponse.js +69 -0
- package/dist/models/GetProtectionPolicyResponse.js.map +1 -0
- package/dist/models/GetProtectionPolicyResponseBody.d.ts +116 -0
- package/dist/models/GetProtectionPolicyResponseBody.js +121 -0
- package/dist/models/GetProtectionPolicyResponseBody.js.map +1 -0
- package/dist/models/GetResourceCategoryRequest.d.ts +23 -0
- package/dist/models/GetResourceCategoryRequest.js +58 -0
- package/dist/models/GetResourceCategoryRequest.js.map +1 -0
- package/dist/models/GetResourceCategoryResponse.d.ts +19 -0
- package/dist/models/GetResourceCategoryResponse.js +69 -0
- package/dist/models/GetResourceCategoryResponse.js.map +1 -0
- package/dist/models/GetResourceCategoryResponseBody.d.ts +123 -0
- package/dist/models/GetResourceCategoryResponseBody.js +118 -0
- package/dist/models/GetResourceCategoryResponseBody.js.map +1 -0
- package/dist/models/ListMessagesRequest.d.ts +63 -0
- package/dist/models/ListMessagesRequest.js +68 -0
- package/dist/models/ListMessagesRequest.js.map +1 -0
- package/dist/models/ListMessagesResponse.d.ts +19 -0
- package/dist/models/ListMessagesResponse.js +69 -0
- package/dist/models/ListMessagesResponse.js.map +1 -0
- package/dist/models/ListMessagesResponseBody.d.ts +143 -0
- package/dist/models/ListMessagesResponseBody.js +124 -0
- package/dist/models/ListMessagesResponseBody.js.map +1 -0
- package/dist/models/ListProtectionPoliciesRequest.d.ts +45 -0
- package/dist/models/ListProtectionPoliciesRequest.js +64 -0
- package/dist/models/ListProtectionPoliciesRequest.js.map +1 -0
- package/dist/models/ListProtectionPoliciesResponse.d.ts +19 -0
- package/dist/models/ListProtectionPoliciesResponse.js +69 -0
- package/dist/models/ListProtectionPoliciesResponse.js.map +1 -0
- package/dist/models/ListProtectionPoliciesResponseBody.d.ts +248 -0
- package/dist/models/ListProtectionPoliciesResponseBody.js +225 -0
- package/dist/models/ListProtectionPoliciesResponseBody.js.map +1 -0
- package/dist/models/ListProtectionPolicyApplicationsRequest.d.ts +63 -0
- package/dist/models/ListProtectionPolicyApplicationsRequest.js +68 -0
- package/dist/models/ListProtectionPolicyApplicationsRequest.js.map +1 -0
- package/dist/models/ListProtectionPolicyApplicationsResponse.d.ts +19 -0
- package/dist/models/ListProtectionPolicyApplicationsResponse.js +69 -0
- package/dist/models/ListProtectionPolicyApplicationsResponse.js.map +1 -0
- package/dist/models/ListProtectionPolicyApplicationsResponseBody.d.ts +164 -0
- package/dist/models/ListProtectionPolicyApplicationsResponseBody.js +130 -0
- package/dist/models/ListProtectionPolicyApplicationsResponseBody.js.map +1 -0
- package/dist/models/ListResourceCategoriesRequest.d.ts +34 -0
- package/dist/models/ListResourceCategoriesRequest.js +62 -0
- package/dist/models/ListResourceCategoriesRequest.js.map +1 -0
- package/dist/models/ListResourceCategoriesResponse.d.ts +19 -0
- package/dist/models/ListResourceCategoriesResponse.js +69 -0
- package/dist/models/ListResourceCategoriesResponse.js.map +1 -0
- package/dist/models/ListResourceCategoriesResponseBody.d.ts +164 -0
- package/dist/models/ListResourceCategoriesResponseBody.js +146 -0
- package/dist/models/ListResourceCategoriesResponseBody.js.map +1 -0
- package/dist/models/OpenBdrcServiceResponse.d.ts +19 -0
- package/dist/models/OpenBdrcServiceResponse.js +69 -0
- package/dist/models/OpenBdrcServiceResponse.js.map +1 -0
- package/dist/models/OpenBdrcServiceResponseBody.d.ts +21 -0
- package/dist/models/OpenBdrcServiceResponseBody.js +58 -0
- package/dist/models/OpenBdrcServiceResponseBody.js.map +1 -0
- package/dist/models/UpdateProtectionPolicyRequest.d.ts +67 -0
- package/dist/models/UpdateProtectionPolicyRequest.js +91 -0
- package/dist/models/UpdateProtectionPolicyRequest.js.map +1 -0
- package/dist/models/UpdateProtectionPolicyResponse.d.ts +19 -0
- package/dist/models/UpdateProtectionPolicyResponse.js +69 -0
- package/dist/models/UpdateProtectionPolicyResponse.js.map +1 -0
- package/dist/models/UpdateProtectionPolicyResponseBody.d.ts +21 -0
- package/dist/models/UpdateProtectionPolicyResponseBody.js +58 -0
- package/dist/models/UpdateProtectionPolicyResponseBody.js.map +1 -0
- package/dist/models/UpdateProtectionPolicyShrinkRequest.d.ts +39 -0
- package/dist/models/UpdateProtectionPolicyShrinkRequest.js +64 -0
- package/dist/models/UpdateProtectionPolicyShrinkRequest.js.map +1 -0
- package/dist/models/UpdateResourceCategoryRequest.d.ts +65 -0
- package/dist/models/UpdateResourceCategoryRequest.js +62 -0
- package/dist/models/UpdateResourceCategoryRequest.js.map +1 -0
- package/dist/models/UpdateResourceCategoryResponse.d.ts +19 -0
- package/dist/models/UpdateResourceCategoryResponse.js +69 -0
- package/dist/models/UpdateResourceCategoryResponse.js.map +1 -0
- package/dist/models/UpdateResourceCategoryResponseBody.d.ts +21 -0
- package/dist/models/UpdateResourceCategoryResponseBody.js +58 -0
- package/dist/models/UpdateResourceCategoryResponseBody.js.map +1 -0
- package/dist/models/UpdateResourcesRequest.d.ts +21 -0
- package/dist/models/UpdateResourcesRequest.js +58 -0
- package/dist/models/UpdateResourcesRequest.js.map +1 -0
- package/dist/models/UpdateResourcesResponse.d.ts +19 -0
- package/dist/models/UpdateResourcesResponse.js +69 -0
- package/dist/models/UpdateResourcesResponse.js.map +1 -0
- package/dist/models/UpdateResourcesResponseBody.d.ts +46 -0
- package/dist/models/UpdateResourcesResponseBody.js +82 -0
- package/dist/models/UpdateResourcesResponseBody.js.map +1 -0
- package/dist/models/model.d.ts +135 -0
- package/dist/models/model.js +276 -0
- package/dist/models/model.js.map +1 -0
- package/package.json +3 -6
- package/src/client.ts +1103 -2591
- package/src/models/CheckRulesRequest.ts +46 -0
- package/src/models/CheckRulesResponse.ts +40 -0
- package/src/models/CheckRulesResponseBody.ts +76 -0
- package/src/models/CloseBdrcServiceResponse.ts +40 -0
- package/src/models/CloseBdrcServiceResponseBody.ts +34 -0
- package/src/models/CreateProtectionPolicyRequest.ts +126 -0
- package/src/models/CreateProtectionPolicyResponse.ts +40 -0
- package/src/models/CreateProtectionPolicyResponseBody.ts +74 -0
- package/src/models/CreateProtectionPolicyShrinkRequest.ts +78 -0
- package/src/models/CreateResourceCategoryRequest.ts +87 -0
- package/src/models/CreateResourceCategoryResponse.ts +40 -0
- package/src/models/CreateResourceCategoryResponseBody.ts +74 -0
- package/src/models/DeleteProtectionPolicyRequest.ts +24 -0
- package/src/models/DeleteProtectionPolicyResponse.ts +40 -0
- package/src/models/DeleteProtectionPolicyResponseBody.ts +34 -0
- package/src/models/DeleteResourceCategoryRequest.ts +36 -0
- package/src/models/DeleteResourceCategoryResponse.ts +40 -0
- package/src/models/DeleteResourceCategoryResponseBody.ts +34 -0
- package/src/models/DescribeCheckDetailsRequest.ts +66 -0
- package/src/models/DescribeCheckDetailsResponse.ts +40 -0
- package/src/models/DescribeCheckDetailsResponseBody.ts +234 -0
- package/src/models/DescribeProductDataRedundancyTypeStatRequest.ts +52 -0
- package/src/models/DescribeProductDataRedundancyTypeStatResponse.ts +40 -0
- package/src/models/DescribeProductDataRedundancyTypeStatResponseBody.ts +124 -0
- package/src/models/DescribeProductDataRedundancyTypeStatShrinkRequest.ts +49 -0
- package/src/models/DescribeProductsRequest.ts +67 -0
- package/src/models/DescribeProductsResponse.ts +40 -0
- package/src/models/DescribeProductsResponseBody.ts +324 -0
- package/src/models/DescribeProductsShrinkRequest.ts +64 -0
- package/src/models/DescribeResourcesRequest.ts +157 -0
- package/src/models/DescribeResourcesResponse.ts +40 -0
- package/src/models/DescribeResourcesResponseBody.ts +364 -0
- package/src/models/DescribeResourcesShrinkRequest.ts +154 -0
- package/src/models/DescribeRulesRequest.ts +80 -0
- package/src/models/DescribeRulesResponse.ts +40 -0
- package/src/models/DescribeRulesResponseBody.ts +214 -0
- package/src/models/DescribeRulesShrinkRequest.ts +77 -0
- package/src/models/DescribeTaskResponse.ts +40 -0
- package/src/models/DescribeTaskResponseBody.ts +214 -0
- package/src/models/DescribeTasksRequest.ts +61 -0
- package/src/models/DescribeTasksResponse.ts +40 -0
- package/src/models/DescribeTasksResponseBody.ts +274 -0
- package/src/models/DescribeTopRiskyResourcesRequest.ts +50 -0
- package/src/models/DescribeTopRiskyResourcesResponse.ts +40 -0
- package/src/models/DescribeTopRiskyResourcesResponseBody.ts +364 -0
- package/src/models/DescribeTopRiskyResourcesShrinkRequest.ts +47 -0
- package/src/models/DisableCheckProductRequest.ts +36 -0
- package/src/models/DisableCheckProductResponse.ts +40 -0
- package/src/models/DisableCheckProductResponseBody.ts +34 -0
- package/src/models/DisableCheckResourceRequest.ts +36 -0
- package/src/models/DisableCheckResourceResponse.ts +40 -0
- package/src/models/DisableCheckResourceResponseBody.ts +34 -0
- package/src/models/EnableCheckProductRequest.ts +36 -0
- package/src/models/EnableCheckProductResponse.ts +40 -0
- package/src/models/EnableCheckProductResponseBody.ts +34 -0
- package/src/models/EnableCheckResourceRequest.ts +36 -0
- package/src/models/EnableCheckResourceResponse.ts +40 -0
- package/src/models/EnableCheckResourceResponseBody.ts +34 -0
- package/src/models/GetBdrcServiceResponse.ts +40 -0
- package/src/models/GetBdrcServiceResponseBody.ts +104 -0
- package/src/models/GetMessageRequest.ts +24 -0
- package/src/models/GetMessageResponse.ts +40 -0
- package/src/models/GetMessageResponseBody.ts +154 -0
- package/src/models/GetProtectionPolicyRequest.ts +24 -0
- package/src/models/GetProtectionPolicyResponse.ts +40 -0
- package/src/models/GetProtectionPolicyResponseBody.ts +174 -0
- package/src/models/GetResourceCategoryRequest.ts +36 -0
- package/src/models/GetResourceCategoryResponse.ts +40 -0
- package/src/models/GetResourceCategoryResponseBody.ts +178 -0
- package/src/models/ListMessagesRequest.ts +86 -0
- package/src/models/ListMessagesResponse.ts +40 -0
- package/src/models/ListMessagesResponseBody.ts +204 -0
- package/src/models/ListProtectionPoliciesRequest.ts +64 -0
- package/src/models/ListProtectionPoliciesResponse.ts +40 -0
- package/src/models/ListProtectionPoliciesResponseBody.ts +374 -0
- package/src/models/ListProtectionPolicyApplicationsRequest.ts +86 -0
- package/src/models/ListProtectionPolicyApplicationsResponse.ts +40 -0
- package/src/models/ListProtectionPolicyApplicationsResponseBody.ts +231 -0
- package/src/models/ListResourceCategoriesRequest.ts +51 -0
- package/src/models/ListResourceCategoriesResponse.ts +40 -0
- package/src/models/ListResourceCategoriesResponseBody.ts +238 -0
- package/src/models/OpenBdrcServiceResponse.ts +40 -0
- package/src/models/OpenBdrcServiceResponseBody.ts +34 -0
- package/src/models/UpdateProtectionPolicyRequest.ts +104 -0
- package/src/models/UpdateProtectionPolicyResponse.ts +40 -0
- package/src/models/UpdateProtectionPolicyResponseBody.ts +34 -0
- package/src/models/UpdateProtectionPolicyShrinkRequest.ts +58 -0
- package/src/models/UpdateResourceCategoryRequest.ts +82 -0
- package/src/models/UpdateResourceCategoryResponse.ts +40 -0
- package/src/models/UpdateResourceCategoryResponseBody.ts +34 -0
- package/src/models/UpdateResourcesRequest.ts +34 -0
- package/src/models/UpdateResourcesResponse.ts +40 -0
- package/src/models/UpdateResourcesResponseBody.ts +74 -0
- package/src/models/model.ts +135 -0
package/dist/client.js
CHANGED
|
@@ -15,1395 +15,79 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
36
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
24
37
|
};
|
|
25
38
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
39
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
40
|
};
|
|
28
41
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.DescribeProductsResponseBodyData = exports.DescribeProductsResponseBodyDataContent = exports.DescribeProductsResponseBodyDataContentProtectionScoreDistribution = exports.DescribeProductsResponseBodyDataContentProtectionScoreDistributionRange = exports.DescribeCheckDetailsResponseBodyData = exports.DescribeCheckDetailsResponseBodyDataContent = exports.CheckRulesResponseBodyData = exports.UpdateResourcesResponse = exports.UpdateResourcesResponseBody = exports.UpdateResourcesRequest = exports.OpenBdrcServiceResponse = exports.OpenBdrcServiceResponseBody = exports.GetBdrcServiceResponse = exports.GetBdrcServiceResponseBody = exports.EnableCheckResourceResponse = exports.EnableCheckResourceResponseBody = exports.EnableCheckResourceRequest = exports.EnableCheckProductResponse = exports.EnableCheckProductResponseBody = exports.EnableCheckProductRequest = exports.DisableCheckResourceResponse = exports.DisableCheckResourceResponseBody = exports.DisableCheckResourceRequest = exports.DisableCheckProductResponse = exports.DisableCheckProductResponseBody = exports.DisableCheckProductRequest = exports.DescribeTopRiskyResourcesResponse = exports.DescribeTopRiskyResourcesResponseBody = exports.DescribeTopRiskyResourcesRequest = exports.DescribeTasksResponse = exports.DescribeTasksResponseBody = exports.DescribeTasksRequest = exports.DescribeTaskResponse = exports.DescribeTaskResponseBody = exports.DescribeRulesResponse = exports.DescribeRulesResponseBody = exports.DescribeRulesRequest = exports.DescribeResourcesResponse = exports.DescribeResourcesResponseBody = exports.DescribeResourcesRequest = exports.DescribeProductsResponse = exports.DescribeProductsResponseBody = exports.DescribeCheckDetailsResponse = exports.DescribeCheckDetailsResponseBody = exports.DescribeCheckDetailsRequest = exports.CloseBdrcServiceResponse = exports.CloseBdrcServiceResponseBody = exports.CheckRulesResponse = exports.CheckRulesResponseBody = exports.CheckRulesRequest = void 0;
|
|
30
|
-
exports.UpdateResourcesResponseBodyData = exports.GetBdrcServiceResponseBodyData = exports.DescribeTopRiskyResourcesResponseBodyData = exports.DescribeTopRiskyResourcesResponseBodyDataContent = exports.DescribeTasksResponseBodyData = exports.DescribeTasksResponseBodyDataContent = exports.DescribeTaskResponseBodyData = exports.DescribeRulesResponseBodyData = exports.DescribeRulesResponseBodyDataContent = exports.DescribeResourcesResponseBodyData = exports.DescribeResourcesResponseBodyDataContent = void 0;
|
|
31
42
|
// This file is auto-generated, don't edit it
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
const
|
|
35
|
-
const
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
const $tea = __importStar(require("@alicloud/tea-typescript"));
|
|
39
|
-
class CheckRulesRequest extends $tea.Model {
|
|
40
|
-
static names() {
|
|
41
|
-
return {
|
|
42
|
-
resourceArn: 'ResourceArn',
|
|
43
|
-
ruleId: 'RuleId',
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
static types() {
|
|
47
|
-
return {
|
|
48
|
-
resourceArn: 'string',
|
|
49
|
-
ruleId: 'string',
|
|
50
|
-
};
|
|
51
|
-
}
|
|
52
|
-
constructor(map) {
|
|
53
|
-
super(map);
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
exports.CheckRulesRequest = CheckRulesRequest;
|
|
57
|
-
class CheckRulesResponseBody extends $tea.Model {
|
|
58
|
-
static names() {
|
|
59
|
-
return {
|
|
60
|
-
data: 'Data',
|
|
61
|
-
requestId: 'RequestId',
|
|
62
|
-
};
|
|
63
|
-
}
|
|
64
|
-
static types() {
|
|
65
|
-
return {
|
|
66
|
-
data: CheckRulesResponseBodyData,
|
|
67
|
-
requestId: 'string',
|
|
68
|
-
};
|
|
69
|
-
}
|
|
70
|
-
constructor(map) {
|
|
71
|
-
super(map);
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
exports.CheckRulesResponseBody = CheckRulesResponseBody;
|
|
75
|
-
class CheckRulesResponse extends $tea.Model {
|
|
76
|
-
static names() {
|
|
77
|
-
return {
|
|
78
|
-
headers: 'headers',
|
|
79
|
-
statusCode: 'statusCode',
|
|
80
|
-
body: 'body',
|
|
81
|
-
};
|
|
82
|
-
}
|
|
83
|
-
static types() {
|
|
84
|
-
return {
|
|
85
|
-
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
86
|
-
statusCode: 'number',
|
|
87
|
-
body: CheckRulesResponseBody,
|
|
88
|
-
};
|
|
89
|
-
}
|
|
90
|
-
constructor(map) {
|
|
91
|
-
super(map);
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
exports.CheckRulesResponse = CheckRulesResponse;
|
|
95
|
-
class CloseBdrcServiceResponseBody extends $tea.Model {
|
|
96
|
-
static names() {
|
|
97
|
-
return {
|
|
98
|
-
requestId: 'RequestId',
|
|
99
|
-
};
|
|
100
|
-
}
|
|
101
|
-
static types() {
|
|
102
|
-
return {
|
|
103
|
-
requestId: 'string',
|
|
104
|
-
};
|
|
105
|
-
}
|
|
106
|
-
constructor(map) {
|
|
107
|
-
super(map);
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
exports.CloseBdrcServiceResponseBody = CloseBdrcServiceResponseBody;
|
|
111
|
-
class CloseBdrcServiceResponse extends $tea.Model {
|
|
112
|
-
static names() {
|
|
113
|
-
return {
|
|
114
|
-
headers: 'headers',
|
|
115
|
-
statusCode: 'statusCode',
|
|
116
|
-
body: 'body',
|
|
117
|
-
};
|
|
118
|
-
}
|
|
119
|
-
static types() {
|
|
120
|
-
return {
|
|
121
|
-
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
122
|
-
statusCode: 'number',
|
|
123
|
-
body: CloseBdrcServiceResponseBody,
|
|
124
|
-
};
|
|
125
|
-
}
|
|
126
|
-
constructor(map) {
|
|
127
|
-
super(map);
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
exports.CloseBdrcServiceResponse = CloseBdrcServiceResponse;
|
|
131
|
-
class DescribeCheckDetailsRequest extends $tea.Model {
|
|
132
|
-
static names() {
|
|
133
|
-
return {
|
|
134
|
-
maxResults: 'MaxResults',
|
|
135
|
-
nextToken: 'NextToken',
|
|
136
|
-
resourceArn: 'ResourceArn',
|
|
137
|
-
ruleId: 'RuleId',
|
|
138
|
-
};
|
|
139
|
-
}
|
|
140
|
-
static types() {
|
|
141
|
-
return {
|
|
142
|
-
maxResults: 'number',
|
|
143
|
-
nextToken: 'string',
|
|
144
|
-
resourceArn: 'string',
|
|
145
|
-
ruleId: 'string',
|
|
146
|
-
};
|
|
147
|
-
}
|
|
148
|
-
constructor(map) {
|
|
149
|
-
super(map);
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
exports.DescribeCheckDetailsRequest = DescribeCheckDetailsRequest;
|
|
153
|
-
class DescribeCheckDetailsResponseBody extends $tea.Model {
|
|
154
|
-
static names() {
|
|
155
|
-
return {
|
|
156
|
-
data: 'Data',
|
|
157
|
-
requestId: 'RequestId',
|
|
158
|
-
};
|
|
159
|
-
}
|
|
160
|
-
static types() {
|
|
161
|
-
return {
|
|
162
|
-
data: DescribeCheckDetailsResponseBodyData,
|
|
163
|
-
requestId: 'string',
|
|
164
|
-
};
|
|
165
|
-
}
|
|
166
|
-
constructor(map) {
|
|
167
|
-
super(map);
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
exports.DescribeCheckDetailsResponseBody = DescribeCheckDetailsResponseBody;
|
|
171
|
-
class DescribeCheckDetailsResponse extends $tea.Model {
|
|
172
|
-
static names() {
|
|
173
|
-
return {
|
|
174
|
-
headers: 'headers',
|
|
175
|
-
statusCode: 'statusCode',
|
|
176
|
-
body: 'body',
|
|
177
|
-
};
|
|
178
|
-
}
|
|
179
|
-
static types() {
|
|
180
|
-
return {
|
|
181
|
-
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
182
|
-
statusCode: 'number',
|
|
183
|
-
body: DescribeCheckDetailsResponseBody,
|
|
184
|
-
};
|
|
185
|
-
}
|
|
186
|
-
constructor(map) {
|
|
187
|
-
super(map);
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
exports.DescribeCheckDetailsResponse = DescribeCheckDetailsResponse;
|
|
191
|
-
class DescribeProductsResponseBody extends $tea.Model {
|
|
192
|
-
static names() {
|
|
193
|
-
return {
|
|
194
|
-
data: 'Data',
|
|
195
|
-
requestId: 'RequestId',
|
|
196
|
-
};
|
|
197
|
-
}
|
|
198
|
-
static types() {
|
|
199
|
-
return {
|
|
200
|
-
data: DescribeProductsResponseBodyData,
|
|
201
|
-
requestId: 'string',
|
|
202
|
-
};
|
|
203
|
-
}
|
|
204
|
-
constructor(map) {
|
|
205
|
-
super(map);
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
exports.DescribeProductsResponseBody = DescribeProductsResponseBody;
|
|
209
|
-
class DescribeProductsResponse extends $tea.Model {
|
|
210
|
-
static names() {
|
|
211
|
-
return {
|
|
212
|
-
headers: 'headers',
|
|
213
|
-
statusCode: 'statusCode',
|
|
214
|
-
body: 'body',
|
|
215
|
-
};
|
|
216
|
-
}
|
|
217
|
-
static types() {
|
|
218
|
-
return {
|
|
219
|
-
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
220
|
-
statusCode: 'number',
|
|
221
|
-
body: DescribeProductsResponseBody,
|
|
222
|
-
};
|
|
223
|
-
}
|
|
224
|
-
constructor(map) {
|
|
225
|
-
super(map);
|
|
226
|
-
}
|
|
227
|
-
}
|
|
228
|
-
exports.DescribeProductsResponse = DescribeProductsResponse;
|
|
229
|
-
class DescribeResourcesRequest extends $tea.Model {
|
|
230
|
-
static names() {
|
|
231
|
-
return {
|
|
232
|
-
dataRedundancyType: 'DataRedundancyType',
|
|
233
|
-
failedRuleTemplate: 'FailedRuleTemplate',
|
|
234
|
-
maxResults: 'MaxResults',
|
|
235
|
-
nextToken: 'NextToken',
|
|
236
|
-
resourceId: 'ResourceId',
|
|
237
|
-
resourceType: 'ResourceType',
|
|
238
|
-
sortBy: 'SortBy',
|
|
239
|
-
sortOrder: 'SortOrder',
|
|
240
|
-
storageClass: 'StorageClass',
|
|
241
|
-
};
|
|
242
|
-
}
|
|
243
|
-
static types() {
|
|
244
|
-
return {
|
|
245
|
-
dataRedundancyType: 'string',
|
|
246
|
-
failedRuleTemplate: 'string',
|
|
247
|
-
maxResults: 'number',
|
|
248
|
-
nextToken: 'string',
|
|
249
|
-
resourceId: 'string',
|
|
250
|
-
resourceType: 'string',
|
|
251
|
-
sortBy: 'string',
|
|
252
|
-
sortOrder: 'string',
|
|
253
|
-
storageClass: 'string',
|
|
254
|
-
};
|
|
255
|
-
}
|
|
256
|
-
constructor(map) {
|
|
257
|
-
super(map);
|
|
258
|
-
}
|
|
259
|
-
}
|
|
260
|
-
exports.DescribeResourcesRequest = DescribeResourcesRequest;
|
|
261
|
-
class DescribeResourcesResponseBody extends $tea.Model {
|
|
262
|
-
static names() {
|
|
263
|
-
return {
|
|
264
|
-
data: 'Data',
|
|
265
|
-
requestId: 'RequestId',
|
|
266
|
-
};
|
|
267
|
-
}
|
|
268
|
-
static types() {
|
|
269
|
-
return {
|
|
270
|
-
data: DescribeResourcesResponseBodyData,
|
|
271
|
-
requestId: 'string',
|
|
272
|
-
};
|
|
273
|
-
}
|
|
274
|
-
constructor(map) {
|
|
275
|
-
super(map);
|
|
276
|
-
}
|
|
277
|
-
}
|
|
278
|
-
exports.DescribeResourcesResponseBody = DescribeResourcesResponseBody;
|
|
279
|
-
class DescribeResourcesResponse extends $tea.Model {
|
|
280
|
-
static names() {
|
|
281
|
-
return {
|
|
282
|
-
headers: 'headers',
|
|
283
|
-
statusCode: 'statusCode',
|
|
284
|
-
body: 'body',
|
|
285
|
-
};
|
|
286
|
-
}
|
|
287
|
-
static types() {
|
|
288
|
-
return {
|
|
289
|
-
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
290
|
-
statusCode: 'number',
|
|
291
|
-
body: DescribeResourcesResponseBody,
|
|
292
|
-
};
|
|
293
|
-
}
|
|
294
|
-
constructor(map) {
|
|
295
|
-
super(map);
|
|
296
|
-
}
|
|
297
|
-
}
|
|
298
|
-
exports.DescribeResourcesResponse = DescribeResourcesResponse;
|
|
299
|
-
class DescribeRulesRequest extends $tea.Model {
|
|
300
|
-
static names() {
|
|
301
|
-
return {
|
|
302
|
-
maxResults: 'MaxResults',
|
|
303
|
-
nextToken: 'NextToken',
|
|
304
|
-
resourceType: 'ResourceType',
|
|
305
|
-
};
|
|
306
|
-
}
|
|
307
|
-
static types() {
|
|
308
|
-
return {
|
|
309
|
-
maxResults: 'number',
|
|
310
|
-
nextToken: 'string',
|
|
311
|
-
resourceType: 'string',
|
|
312
|
-
};
|
|
313
|
-
}
|
|
314
|
-
constructor(map) {
|
|
315
|
-
super(map);
|
|
316
|
-
}
|
|
317
|
-
}
|
|
318
|
-
exports.DescribeRulesRequest = DescribeRulesRequest;
|
|
319
|
-
class DescribeRulesResponseBody extends $tea.Model {
|
|
320
|
-
static names() {
|
|
321
|
-
return {
|
|
322
|
-
data: 'Data',
|
|
323
|
-
requestId: 'RequestId',
|
|
324
|
-
};
|
|
325
|
-
}
|
|
326
|
-
static types() {
|
|
327
|
-
return {
|
|
328
|
-
data: DescribeRulesResponseBodyData,
|
|
329
|
-
requestId: 'string',
|
|
330
|
-
};
|
|
331
|
-
}
|
|
332
|
-
constructor(map) {
|
|
333
|
-
super(map);
|
|
334
|
-
}
|
|
335
|
-
}
|
|
336
|
-
exports.DescribeRulesResponseBody = DescribeRulesResponseBody;
|
|
337
|
-
class DescribeRulesResponse extends $tea.Model {
|
|
338
|
-
static names() {
|
|
339
|
-
return {
|
|
340
|
-
headers: 'headers',
|
|
341
|
-
statusCode: 'statusCode',
|
|
342
|
-
body: 'body',
|
|
343
|
-
};
|
|
344
|
-
}
|
|
345
|
-
static types() {
|
|
346
|
-
return {
|
|
347
|
-
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
348
|
-
statusCode: 'number',
|
|
349
|
-
body: DescribeRulesResponseBody,
|
|
350
|
-
};
|
|
351
|
-
}
|
|
352
|
-
constructor(map) {
|
|
353
|
-
super(map);
|
|
354
|
-
}
|
|
355
|
-
}
|
|
356
|
-
exports.DescribeRulesResponse = DescribeRulesResponse;
|
|
357
|
-
class DescribeTaskResponseBody extends $tea.Model {
|
|
358
|
-
static names() {
|
|
359
|
-
return {
|
|
360
|
-
data: 'Data',
|
|
361
|
-
requestId: 'RequestId',
|
|
362
|
-
};
|
|
363
|
-
}
|
|
364
|
-
static types() {
|
|
365
|
-
return {
|
|
366
|
-
data: DescribeTaskResponseBodyData,
|
|
367
|
-
requestId: 'string',
|
|
368
|
-
};
|
|
369
|
-
}
|
|
370
|
-
constructor(map) {
|
|
371
|
-
super(map);
|
|
372
|
-
}
|
|
373
|
-
}
|
|
374
|
-
exports.DescribeTaskResponseBody = DescribeTaskResponseBody;
|
|
375
|
-
class DescribeTaskResponse extends $tea.Model {
|
|
376
|
-
static names() {
|
|
377
|
-
return {
|
|
378
|
-
headers: 'headers',
|
|
379
|
-
statusCode: 'statusCode',
|
|
380
|
-
body: 'body',
|
|
381
|
-
};
|
|
382
|
-
}
|
|
383
|
-
static types() {
|
|
384
|
-
return {
|
|
385
|
-
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
386
|
-
statusCode: 'number',
|
|
387
|
-
body: DescribeTaskResponseBody,
|
|
388
|
-
};
|
|
389
|
-
}
|
|
390
|
-
constructor(map) {
|
|
391
|
-
super(map);
|
|
392
|
-
}
|
|
393
|
-
}
|
|
394
|
-
exports.DescribeTaskResponse = DescribeTaskResponse;
|
|
395
|
-
class DescribeTasksRequest extends $tea.Model {
|
|
396
|
-
static names() {
|
|
397
|
-
return {
|
|
398
|
-
maxResults: 'MaxResults',
|
|
399
|
-
nextToken: 'NextToken',
|
|
400
|
-
taskStatus: 'TaskStatus',
|
|
401
|
-
};
|
|
402
|
-
}
|
|
403
|
-
static types() {
|
|
404
|
-
return {
|
|
405
|
-
maxResults: 'number',
|
|
406
|
-
nextToken: 'string',
|
|
407
|
-
taskStatus: 'string',
|
|
408
|
-
};
|
|
409
|
-
}
|
|
410
|
-
constructor(map) {
|
|
411
|
-
super(map);
|
|
412
|
-
}
|
|
413
|
-
}
|
|
414
|
-
exports.DescribeTasksRequest = DescribeTasksRequest;
|
|
415
|
-
class DescribeTasksResponseBody extends $tea.Model {
|
|
416
|
-
static names() {
|
|
417
|
-
return {
|
|
418
|
-
data: 'Data',
|
|
419
|
-
requestId: 'RequestId',
|
|
420
|
-
};
|
|
421
|
-
}
|
|
422
|
-
static types() {
|
|
423
|
-
return {
|
|
424
|
-
data: DescribeTasksResponseBodyData,
|
|
425
|
-
requestId: 'string',
|
|
426
|
-
};
|
|
427
|
-
}
|
|
428
|
-
constructor(map) {
|
|
429
|
-
super(map);
|
|
430
|
-
}
|
|
431
|
-
}
|
|
432
|
-
exports.DescribeTasksResponseBody = DescribeTasksResponseBody;
|
|
433
|
-
class DescribeTasksResponse extends $tea.Model {
|
|
434
|
-
static names() {
|
|
435
|
-
return {
|
|
436
|
-
headers: 'headers',
|
|
437
|
-
statusCode: 'statusCode',
|
|
438
|
-
body: 'body',
|
|
439
|
-
};
|
|
440
|
-
}
|
|
441
|
-
static types() {
|
|
442
|
-
return {
|
|
443
|
-
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
444
|
-
statusCode: 'number',
|
|
445
|
-
body: DescribeTasksResponseBody,
|
|
446
|
-
};
|
|
447
|
-
}
|
|
448
|
-
constructor(map) {
|
|
449
|
-
super(map);
|
|
450
|
-
}
|
|
451
|
-
}
|
|
452
|
-
exports.DescribeTasksResponse = DescribeTasksResponse;
|
|
453
|
-
class DescribeTopRiskyResourcesRequest extends $tea.Model {
|
|
454
|
-
static names() {
|
|
455
|
-
return {
|
|
456
|
-
resourceType: 'ResourceType',
|
|
457
|
-
};
|
|
458
|
-
}
|
|
459
|
-
static types() {
|
|
460
|
-
return {
|
|
461
|
-
resourceType: 'string',
|
|
462
|
-
};
|
|
463
|
-
}
|
|
464
|
-
constructor(map) {
|
|
465
|
-
super(map);
|
|
466
|
-
}
|
|
467
|
-
}
|
|
468
|
-
exports.DescribeTopRiskyResourcesRequest = DescribeTopRiskyResourcesRequest;
|
|
469
|
-
class DescribeTopRiskyResourcesResponseBody extends $tea.Model {
|
|
470
|
-
static names() {
|
|
471
|
-
return {
|
|
472
|
-
data: 'Data',
|
|
473
|
-
requestId: 'RequestId',
|
|
474
|
-
};
|
|
475
|
-
}
|
|
476
|
-
static types() {
|
|
477
|
-
return {
|
|
478
|
-
data: DescribeTopRiskyResourcesResponseBodyData,
|
|
479
|
-
requestId: 'string',
|
|
480
|
-
};
|
|
481
|
-
}
|
|
482
|
-
constructor(map) {
|
|
483
|
-
super(map);
|
|
484
|
-
}
|
|
485
|
-
}
|
|
486
|
-
exports.DescribeTopRiskyResourcesResponseBody = DescribeTopRiskyResourcesResponseBody;
|
|
487
|
-
class DescribeTopRiskyResourcesResponse extends $tea.Model {
|
|
488
|
-
static names() {
|
|
489
|
-
return {
|
|
490
|
-
headers: 'headers',
|
|
491
|
-
statusCode: 'statusCode',
|
|
492
|
-
body: 'body',
|
|
493
|
-
};
|
|
494
|
-
}
|
|
495
|
-
static types() {
|
|
496
|
-
return {
|
|
497
|
-
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
498
|
-
statusCode: 'number',
|
|
499
|
-
body: DescribeTopRiskyResourcesResponseBody,
|
|
500
|
-
};
|
|
501
|
-
}
|
|
502
|
-
constructor(map) {
|
|
503
|
-
super(map);
|
|
504
|
-
}
|
|
505
|
-
}
|
|
506
|
-
exports.DescribeTopRiskyResourcesResponse = DescribeTopRiskyResourcesResponse;
|
|
507
|
-
class DisableCheckProductRequest extends $tea.Model {
|
|
508
|
-
static names() {
|
|
509
|
-
return {
|
|
510
|
-
productType: 'ProductType',
|
|
511
|
-
};
|
|
512
|
-
}
|
|
513
|
-
static types() {
|
|
514
|
-
return {
|
|
515
|
-
productType: 'string',
|
|
516
|
-
};
|
|
517
|
-
}
|
|
518
|
-
constructor(map) {
|
|
519
|
-
super(map);
|
|
520
|
-
}
|
|
521
|
-
}
|
|
522
|
-
exports.DisableCheckProductRequest = DisableCheckProductRequest;
|
|
523
|
-
class DisableCheckProductResponseBody extends $tea.Model {
|
|
524
|
-
static names() {
|
|
525
|
-
return {
|
|
526
|
-
requestId: 'RequestId',
|
|
527
|
-
};
|
|
528
|
-
}
|
|
529
|
-
static types() {
|
|
530
|
-
return {
|
|
531
|
-
requestId: 'string',
|
|
532
|
-
};
|
|
533
|
-
}
|
|
534
|
-
constructor(map) {
|
|
535
|
-
super(map);
|
|
536
|
-
}
|
|
537
|
-
}
|
|
538
|
-
exports.DisableCheckProductResponseBody = DisableCheckProductResponseBody;
|
|
539
|
-
class DisableCheckProductResponse extends $tea.Model {
|
|
540
|
-
static names() {
|
|
541
|
-
return {
|
|
542
|
-
headers: 'headers',
|
|
543
|
-
statusCode: 'statusCode',
|
|
544
|
-
body: 'body',
|
|
545
|
-
};
|
|
546
|
-
}
|
|
547
|
-
static types() {
|
|
548
|
-
return {
|
|
549
|
-
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
550
|
-
statusCode: 'number',
|
|
551
|
-
body: DisableCheckProductResponseBody,
|
|
552
|
-
};
|
|
553
|
-
}
|
|
554
|
-
constructor(map) {
|
|
555
|
-
super(map);
|
|
556
|
-
}
|
|
557
|
-
}
|
|
558
|
-
exports.DisableCheckProductResponse = DisableCheckProductResponse;
|
|
559
|
-
class DisableCheckResourceRequest extends $tea.Model {
|
|
560
|
-
static names() {
|
|
561
|
-
return {
|
|
562
|
-
resourceArn: 'ResourceArn',
|
|
563
|
-
};
|
|
564
|
-
}
|
|
565
|
-
static types() {
|
|
566
|
-
return {
|
|
567
|
-
resourceArn: 'string',
|
|
568
|
-
};
|
|
569
|
-
}
|
|
570
|
-
constructor(map) {
|
|
571
|
-
super(map);
|
|
572
|
-
}
|
|
573
|
-
}
|
|
574
|
-
exports.DisableCheckResourceRequest = DisableCheckResourceRequest;
|
|
575
|
-
class DisableCheckResourceResponseBody extends $tea.Model {
|
|
576
|
-
static names() {
|
|
577
|
-
return {
|
|
578
|
-
requestId: 'RequestId',
|
|
579
|
-
};
|
|
580
|
-
}
|
|
581
|
-
static types() {
|
|
582
|
-
return {
|
|
583
|
-
requestId: 'string',
|
|
584
|
-
};
|
|
585
|
-
}
|
|
586
|
-
constructor(map) {
|
|
587
|
-
super(map);
|
|
588
|
-
}
|
|
589
|
-
}
|
|
590
|
-
exports.DisableCheckResourceResponseBody = DisableCheckResourceResponseBody;
|
|
591
|
-
class DisableCheckResourceResponse extends $tea.Model {
|
|
592
|
-
static names() {
|
|
593
|
-
return {
|
|
594
|
-
headers: 'headers',
|
|
595
|
-
statusCode: 'statusCode',
|
|
596
|
-
body: 'body',
|
|
597
|
-
};
|
|
598
|
-
}
|
|
599
|
-
static types() {
|
|
600
|
-
return {
|
|
601
|
-
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
602
|
-
statusCode: 'number',
|
|
603
|
-
body: DisableCheckResourceResponseBody,
|
|
604
|
-
};
|
|
605
|
-
}
|
|
606
|
-
constructor(map) {
|
|
607
|
-
super(map);
|
|
608
|
-
}
|
|
609
|
-
}
|
|
610
|
-
exports.DisableCheckResourceResponse = DisableCheckResourceResponse;
|
|
611
|
-
class EnableCheckProductRequest extends $tea.Model {
|
|
612
|
-
static names() {
|
|
613
|
-
return {
|
|
614
|
-
productType: 'ProductType',
|
|
615
|
-
};
|
|
616
|
-
}
|
|
617
|
-
static types() {
|
|
618
|
-
return {
|
|
619
|
-
productType: 'string',
|
|
620
|
-
};
|
|
621
|
-
}
|
|
622
|
-
constructor(map) {
|
|
623
|
-
super(map);
|
|
624
|
-
}
|
|
625
|
-
}
|
|
626
|
-
exports.EnableCheckProductRequest = EnableCheckProductRequest;
|
|
627
|
-
class EnableCheckProductResponseBody extends $tea.Model {
|
|
628
|
-
static names() {
|
|
629
|
-
return {
|
|
630
|
-
requestId: 'RequestId',
|
|
631
|
-
};
|
|
632
|
-
}
|
|
633
|
-
static types() {
|
|
634
|
-
return {
|
|
635
|
-
requestId: 'string',
|
|
636
|
-
};
|
|
637
|
-
}
|
|
638
|
-
constructor(map) {
|
|
639
|
-
super(map);
|
|
640
|
-
}
|
|
641
|
-
}
|
|
642
|
-
exports.EnableCheckProductResponseBody = EnableCheckProductResponseBody;
|
|
643
|
-
class EnableCheckProductResponse extends $tea.Model {
|
|
644
|
-
static names() {
|
|
645
|
-
return {
|
|
646
|
-
headers: 'headers',
|
|
647
|
-
statusCode: 'statusCode',
|
|
648
|
-
body: 'body',
|
|
649
|
-
};
|
|
650
|
-
}
|
|
651
|
-
static types() {
|
|
652
|
-
return {
|
|
653
|
-
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
654
|
-
statusCode: 'number',
|
|
655
|
-
body: EnableCheckProductResponseBody,
|
|
656
|
-
};
|
|
657
|
-
}
|
|
658
|
-
constructor(map) {
|
|
659
|
-
super(map);
|
|
660
|
-
}
|
|
661
|
-
}
|
|
662
|
-
exports.EnableCheckProductResponse = EnableCheckProductResponse;
|
|
663
|
-
class EnableCheckResourceRequest extends $tea.Model {
|
|
664
|
-
static names() {
|
|
665
|
-
return {
|
|
666
|
-
resourceArn: 'ResourceArn',
|
|
667
|
-
};
|
|
668
|
-
}
|
|
669
|
-
static types() {
|
|
670
|
-
return {
|
|
671
|
-
resourceArn: 'string',
|
|
672
|
-
};
|
|
673
|
-
}
|
|
674
|
-
constructor(map) {
|
|
675
|
-
super(map);
|
|
676
|
-
}
|
|
677
|
-
}
|
|
678
|
-
exports.EnableCheckResourceRequest = EnableCheckResourceRequest;
|
|
679
|
-
class EnableCheckResourceResponseBody extends $tea.Model {
|
|
680
|
-
static names() {
|
|
681
|
-
return {
|
|
682
|
-
requestId: 'RequestId',
|
|
683
|
-
};
|
|
684
|
-
}
|
|
685
|
-
static types() {
|
|
686
|
-
return {
|
|
687
|
-
requestId: 'string',
|
|
688
|
-
};
|
|
689
|
-
}
|
|
690
|
-
constructor(map) {
|
|
691
|
-
super(map);
|
|
692
|
-
}
|
|
693
|
-
}
|
|
694
|
-
exports.EnableCheckResourceResponseBody = EnableCheckResourceResponseBody;
|
|
695
|
-
class EnableCheckResourceResponse extends $tea.Model {
|
|
696
|
-
static names() {
|
|
697
|
-
return {
|
|
698
|
-
headers: 'headers',
|
|
699
|
-
statusCode: 'statusCode',
|
|
700
|
-
body: 'body',
|
|
701
|
-
};
|
|
702
|
-
}
|
|
703
|
-
static types() {
|
|
704
|
-
return {
|
|
705
|
-
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
706
|
-
statusCode: 'number',
|
|
707
|
-
body: EnableCheckResourceResponseBody,
|
|
708
|
-
};
|
|
709
|
-
}
|
|
710
|
-
constructor(map) {
|
|
711
|
-
super(map);
|
|
712
|
-
}
|
|
713
|
-
}
|
|
714
|
-
exports.EnableCheckResourceResponse = EnableCheckResourceResponse;
|
|
715
|
-
class GetBdrcServiceResponseBody extends $tea.Model {
|
|
716
|
-
static names() {
|
|
717
|
-
return {
|
|
718
|
-
data: 'Data',
|
|
719
|
-
requestId: 'RequestId',
|
|
720
|
-
};
|
|
721
|
-
}
|
|
722
|
-
static types() {
|
|
723
|
-
return {
|
|
724
|
-
data: GetBdrcServiceResponseBodyData,
|
|
725
|
-
requestId: 'string',
|
|
726
|
-
};
|
|
727
|
-
}
|
|
728
|
-
constructor(map) {
|
|
729
|
-
super(map);
|
|
730
|
-
}
|
|
731
|
-
}
|
|
732
|
-
exports.GetBdrcServiceResponseBody = GetBdrcServiceResponseBody;
|
|
733
|
-
class GetBdrcServiceResponse extends $tea.Model {
|
|
734
|
-
static names() {
|
|
735
|
-
return {
|
|
736
|
-
headers: 'headers',
|
|
737
|
-
statusCode: 'statusCode',
|
|
738
|
-
body: 'body',
|
|
739
|
-
};
|
|
740
|
-
}
|
|
741
|
-
static types() {
|
|
742
|
-
return {
|
|
743
|
-
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
744
|
-
statusCode: 'number',
|
|
745
|
-
body: GetBdrcServiceResponseBody,
|
|
746
|
-
};
|
|
747
|
-
}
|
|
748
|
-
constructor(map) {
|
|
749
|
-
super(map);
|
|
750
|
-
}
|
|
751
|
-
}
|
|
752
|
-
exports.GetBdrcServiceResponse = GetBdrcServiceResponse;
|
|
753
|
-
class OpenBdrcServiceResponseBody extends $tea.Model {
|
|
754
|
-
static names() {
|
|
755
|
-
return {
|
|
756
|
-
requestId: 'RequestId',
|
|
757
|
-
};
|
|
758
|
-
}
|
|
759
|
-
static types() {
|
|
760
|
-
return {
|
|
761
|
-
requestId: 'string',
|
|
762
|
-
};
|
|
763
|
-
}
|
|
764
|
-
constructor(map) {
|
|
765
|
-
super(map);
|
|
766
|
-
}
|
|
767
|
-
}
|
|
768
|
-
exports.OpenBdrcServiceResponseBody = OpenBdrcServiceResponseBody;
|
|
769
|
-
class OpenBdrcServiceResponse extends $tea.Model {
|
|
770
|
-
static names() {
|
|
771
|
-
return {
|
|
772
|
-
headers: 'headers',
|
|
773
|
-
statusCode: 'statusCode',
|
|
774
|
-
body: 'body',
|
|
775
|
-
};
|
|
776
|
-
}
|
|
777
|
-
static types() {
|
|
778
|
-
return {
|
|
779
|
-
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
780
|
-
statusCode: 'number',
|
|
781
|
-
body: OpenBdrcServiceResponseBody,
|
|
782
|
-
};
|
|
783
|
-
}
|
|
784
|
-
constructor(map) {
|
|
785
|
-
super(map);
|
|
786
|
-
}
|
|
787
|
-
}
|
|
788
|
-
exports.OpenBdrcServiceResponse = OpenBdrcServiceResponse;
|
|
789
|
-
class UpdateResourcesRequest extends $tea.Model {
|
|
790
|
-
static names() {
|
|
791
|
-
return {
|
|
792
|
-
resourceType: 'ResourceType',
|
|
793
|
-
};
|
|
794
|
-
}
|
|
795
|
-
static types() {
|
|
796
|
-
return {
|
|
797
|
-
resourceType: 'string',
|
|
798
|
-
};
|
|
799
|
-
}
|
|
800
|
-
constructor(map) {
|
|
801
|
-
super(map);
|
|
802
|
-
}
|
|
803
|
-
}
|
|
804
|
-
exports.UpdateResourcesRequest = UpdateResourcesRequest;
|
|
805
|
-
class UpdateResourcesResponseBody extends $tea.Model {
|
|
806
|
-
static names() {
|
|
807
|
-
return {
|
|
808
|
-
data: 'Data',
|
|
809
|
-
requestId: 'RequestId',
|
|
810
|
-
};
|
|
811
|
-
}
|
|
812
|
-
static types() {
|
|
813
|
-
return {
|
|
814
|
-
data: UpdateResourcesResponseBodyData,
|
|
815
|
-
requestId: 'string',
|
|
816
|
-
};
|
|
817
|
-
}
|
|
818
|
-
constructor(map) {
|
|
819
|
-
super(map);
|
|
820
|
-
}
|
|
821
|
-
}
|
|
822
|
-
exports.UpdateResourcesResponseBody = UpdateResourcesResponseBody;
|
|
823
|
-
class UpdateResourcesResponse extends $tea.Model {
|
|
824
|
-
static names() {
|
|
825
|
-
return {
|
|
826
|
-
headers: 'headers',
|
|
827
|
-
statusCode: 'statusCode',
|
|
828
|
-
body: 'body',
|
|
829
|
-
};
|
|
830
|
-
}
|
|
831
|
-
static types() {
|
|
832
|
-
return {
|
|
833
|
-
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
834
|
-
statusCode: 'number',
|
|
835
|
-
body: UpdateResourcesResponseBody,
|
|
836
|
-
};
|
|
837
|
-
}
|
|
838
|
-
constructor(map) {
|
|
839
|
-
super(map);
|
|
840
|
-
}
|
|
841
|
-
}
|
|
842
|
-
exports.UpdateResourcesResponse = UpdateResourcesResponse;
|
|
843
|
-
class CheckRulesResponseBodyData extends $tea.Model {
|
|
844
|
-
static names() {
|
|
845
|
-
return {
|
|
846
|
-
taskId: 'TaskId',
|
|
847
|
-
};
|
|
848
|
-
}
|
|
849
|
-
static types() {
|
|
850
|
-
return {
|
|
851
|
-
taskId: 'string',
|
|
852
|
-
};
|
|
853
|
-
}
|
|
854
|
-
constructor(map) {
|
|
855
|
-
super(map);
|
|
856
|
-
}
|
|
857
|
-
}
|
|
858
|
-
exports.CheckRulesResponseBodyData = CheckRulesResponseBodyData;
|
|
859
|
-
class DescribeCheckDetailsResponseBodyDataContent extends $tea.Model {
|
|
860
|
-
static names() {
|
|
861
|
-
return {
|
|
862
|
-
checkStatus: 'CheckStatus',
|
|
863
|
-
checkTime: 'CheckTime',
|
|
864
|
-
detail: 'Detail',
|
|
865
|
-
productType: 'ProductType',
|
|
866
|
-
resourceArn: 'ResourceArn',
|
|
867
|
-
resourceId: 'ResourceId',
|
|
868
|
-
resourceName: 'ResourceName',
|
|
869
|
-
resourceType: 'ResourceType',
|
|
870
|
-
ruleId: 'RuleId',
|
|
871
|
-
ruleTemplate: 'RuleTemplate',
|
|
872
|
-
};
|
|
873
|
-
}
|
|
874
|
-
static types() {
|
|
875
|
-
return {
|
|
876
|
-
checkStatus: 'string',
|
|
877
|
-
checkTime: 'number',
|
|
878
|
-
detail: 'string',
|
|
879
|
-
productType: 'string',
|
|
880
|
-
resourceArn: 'string',
|
|
881
|
-
resourceId: 'string',
|
|
882
|
-
resourceName: 'string',
|
|
883
|
-
resourceType: 'string',
|
|
884
|
-
ruleId: 'string',
|
|
885
|
-
ruleTemplate: 'string',
|
|
886
|
-
};
|
|
887
|
-
}
|
|
888
|
-
constructor(map) {
|
|
889
|
-
super(map);
|
|
890
|
-
}
|
|
891
|
-
}
|
|
892
|
-
exports.DescribeCheckDetailsResponseBodyDataContent = DescribeCheckDetailsResponseBodyDataContent;
|
|
893
|
-
class DescribeCheckDetailsResponseBodyData extends $tea.Model {
|
|
894
|
-
static names() {
|
|
895
|
-
return {
|
|
896
|
-
content: 'Content',
|
|
897
|
-
maxResults: 'MaxResults',
|
|
898
|
-
nextToken: 'NextToken',
|
|
899
|
-
totalCount: 'TotalCount',
|
|
900
|
-
};
|
|
901
|
-
}
|
|
902
|
-
static types() {
|
|
903
|
-
return {
|
|
904
|
-
content: { 'type': 'array', 'itemType': DescribeCheckDetailsResponseBodyDataContent },
|
|
905
|
-
maxResults: 'number',
|
|
906
|
-
nextToken: 'string',
|
|
907
|
-
totalCount: 'number',
|
|
908
|
-
};
|
|
909
|
-
}
|
|
910
|
-
constructor(map) {
|
|
911
|
-
super(map);
|
|
912
|
-
}
|
|
913
|
-
}
|
|
914
|
-
exports.DescribeCheckDetailsResponseBodyData = DescribeCheckDetailsResponseBodyData;
|
|
915
|
-
class DescribeProductsResponseBodyDataContentProtectionScoreDistributionRange extends $tea.Model {
|
|
916
|
-
static names() {
|
|
917
|
-
return {
|
|
918
|
-
from: 'From',
|
|
919
|
-
to: 'To',
|
|
920
|
-
};
|
|
921
|
-
}
|
|
922
|
-
static types() {
|
|
923
|
-
return {
|
|
924
|
-
from: 'number',
|
|
925
|
-
to: 'number',
|
|
926
|
-
};
|
|
927
|
-
}
|
|
928
|
-
constructor(map) {
|
|
929
|
-
super(map);
|
|
930
|
-
}
|
|
931
|
-
}
|
|
932
|
-
exports.DescribeProductsResponseBodyDataContentProtectionScoreDistributionRange = DescribeProductsResponseBodyDataContentProtectionScoreDistributionRange;
|
|
933
|
-
class DescribeProductsResponseBodyDataContentProtectionScoreDistribution extends $tea.Model {
|
|
934
|
-
static names() {
|
|
935
|
-
return {
|
|
936
|
-
count: 'Count',
|
|
937
|
-
range: 'Range',
|
|
938
|
-
};
|
|
939
|
-
}
|
|
940
|
-
static types() {
|
|
941
|
-
return {
|
|
942
|
-
count: 'number',
|
|
943
|
-
range: DescribeProductsResponseBodyDataContentProtectionScoreDistributionRange,
|
|
944
|
-
};
|
|
945
|
-
}
|
|
946
|
-
constructor(map) {
|
|
947
|
-
super(map);
|
|
948
|
-
}
|
|
949
|
-
}
|
|
950
|
-
exports.DescribeProductsResponseBodyDataContentProtectionScoreDistribution = DescribeProductsResponseBodyDataContentProtectionScoreDistribution;
|
|
951
|
-
class DescribeProductsResponseBodyDataContent extends $tea.Model {
|
|
952
|
-
static names() {
|
|
953
|
-
return {
|
|
954
|
-
checkFailedCount: 'CheckFailedCount',
|
|
955
|
-
checkFailedResourceCount: 'CheckFailedResourceCount',
|
|
956
|
-
disableCheckResourceCount: 'DisableCheckResourceCount',
|
|
957
|
-
enableCheck: 'EnableCheck',
|
|
958
|
-
productType: 'ProductType',
|
|
959
|
-
protectionScore: 'ProtectionScore',
|
|
960
|
-
protectionScoreDistribution: 'ProtectionScoreDistribution',
|
|
961
|
-
protectionScoreUpdatedTime: 'ProtectionScoreUpdatedTime',
|
|
962
|
-
riskCount: 'RiskCount',
|
|
963
|
-
riskyResourceCount: 'RiskyResourceCount',
|
|
964
|
-
totalResourceCount: 'TotalResourceCount',
|
|
965
|
-
};
|
|
966
|
-
}
|
|
967
|
-
static types() {
|
|
968
|
-
return {
|
|
969
|
-
checkFailedCount: 'number',
|
|
970
|
-
checkFailedResourceCount: 'number',
|
|
971
|
-
disableCheckResourceCount: 'number',
|
|
972
|
-
enableCheck: 'boolean',
|
|
973
|
-
productType: 'string',
|
|
974
|
-
protectionScore: 'number',
|
|
975
|
-
protectionScoreDistribution: { 'type': 'array', 'itemType': DescribeProductsResponseBodyDataContentProtectionScoreDistribution },
|
|
976
|
-
protectionScoreUpdatedTime: 'number',
|
|
977
|
-
riskCount: 'number',
|
|
978
|
-
riskyResourceCount: 'number',
|
|
979
|
-
totalResourceCount: 'number',
|
|
980
|
-
};
|
|
981
|
-
}
|
|
982
|
-
constructor(map) {
|
|
983
|
-
super(map);
|
|
984
|
-
}
|
|
985
|
-
}
|
|
986
|
-
exports.DescribeProductsResponseBodyDataContent = DescribeProductsResponseBodyDataContent;
|
|
987
|
-
class DescribeProductsResponseBodyData extends $tea.Model {
|
|
988
|
-
static names() {
|
|
989
|
-
return {
|
|
990
|
-
content: 'Content',
|
|
991
|
-
maxResults: 'MaxResults',
|
|
992
|
-
nextToken: 'NextToken',
|
|
993
|
-
totalCount: 'TotalCount',
|
|
994
|
-
};
|
|
995
|
-
}
|
|
996
|
-
static types() {
|
|
997
|
-
return {
|
|
998
|
-
content: { 'type': 'array', 'itemType': DescribeProductsResponseBodyDataContent },
|
|
999
|
-
maxResults: 'number',
|
|
1000
|
-
nextToken: 'string',
|
|
1001
|
-
totalCount: 'number',
|
|
1002
|
-
};
|
|
1003
|
-
}
|
|
1004
|
-
constructor(map) {
|
|
1005
|
-
super(map);
|
|
1006
|
-
}
|
|
1007
|
-
}
|
|
1008
|
-
exports.DescribeProductsResponseBodyData = DescribeProductsResponseBodyData;
|
|
1009
|
-
class DescribeResourcesResponseBodyDataContent extends $tea.Model {
|
|
1010
|
-
static names() {
|
|
1011
|
-
return {
|
|
1012
|
-
archiveDataSize: 'ArchiveDataSize',
|
|
1013
|
-
checkFailedCount: 'CheckFailedCount',
|
|
1014
|
-
coldArchiveDataSize: 'ColdArchiveDataSize',
|
|
1015
|
-
createTime: 'CreateTime',
|
|
1016
|
-
dataRedundancyType: 'DataRedundancyType',
|
|
1017
|
-
enableCheck: 'EnableCheck',
|
|
1018
|
-
iaDataSize: 'IaDataSize',
|
|
1019
|
-
productType: 'ProductType',
|
|
1020
|
-
protectionScore: 'ProtectionScore',
|
|
1021
|
-
protectionScoreUpdatedTime: 'ProtectionScoreUpdatedTime',
|
|
1022
|
-
regionId: 'RegionId',
|
|
1023
|
-
resourceArn: 'ResourceArn',
|
|
1024
|
-
resourceId: 'ResourceId',
|
|
1025
|
-
resourceName: 'ResourceName',
|
|
1026
|
-
resourceType: 'ResourceType',
|
|
1027
|
-
riskCount: 'RiskCount',
|
|
1028
|
-
standardDataSize: 'StandardDataSize',
|
|
1029
|
-
status: 'Status',
|
|
1030
|
-
storageClass: 'StorageClass',
|
|
1031
|
-
totalDataSize: 'TotalDataSize',
|
|
1032
|
-
vSwitchId: 'VSwitchId',
|
|
1033
|
-
vpcId: 'VpcId',
|
|
1034
|
-
zoneId: 'ZoneId',
|
|
1035
|
-
};
|
|
1036
|
-
}
|
|
1037
|
-
static types() {
|
|
1038
|
-
return {
|
|
1039
|
-
archiveDataSize: 'number',
|
|
1040
|
-
checkFailedCount: 'number',
|
|
1041
|
-
coldArchiveDataSize: 'number',
|
|
1042
|
-
createTime: 'number',
|
|
1043
|
-
dataRedundancyType: 'string',
|
|
1044
|
-
enableCheck: 'boolean',
|
|
1045
|
-
iaDataSize: 'number',
|
|
1046
|
-
productType: 'string',
|
|
1047
|
-
protectionScore: 'number',
|
|
1048
|
-
protectionScoreUpdatedTime: 'number',
|
|
1049
|
-
regionId: 'string',
|
|
1050
|
-
resourceArn: 'string',
|
|
1051
|
-
resourceId: 'string',
|
|
1052
|
-
resourceName: 'string',
|
|
1053
|
-
resourceType: 'string',
|
|
1054
|
-
riskCount: 'number',
|
|
1055
|
-
standardDataSize: 'number',
|
|
1056
|
-
status: 'string',
|
|
1057
|
-
storageClass: 'string',
|
|
1058
|
-
totalDataSize: 'number',
|
|
1059
|
-
vSwitchId: 'string',
|
|
1060
|
-
vpcId: 'string',
|
|
1061
|
-
zoneId: 'string',
|
|
1062
|
-
};
|
|
1063
|
-
}
|
|
1064
|
-
constructor(map) {
|
|
1065
|
-
super(map);
|
|
1066
|
-
}
|
|
1067
|
-
}
|
|
1068
|
-
exports.DescribeResourcesResponseBodyDataContent = DescribeResourcesResponseBodyDataContent;
|
|
1069
|
-
class DescribeResourcesResponseBodyData extends $tea.Model {
|
|
1070
|
-
static names() {
|
|
1071
|
-
return {
|
|
1072
|
-
content: 'Content',
|
|
1073
|
-
maxResults: 'MaxResults',
|
|
1074
|
-
nextToken: 'NextToken',
|
|
1075
|
-
totalCount: 'TotalCount',
|
|
1076
|
-
};
|
|
1077
|
-
}
|
|
1078
|
-
static types() {
|
|
1079
|
-
return {
|
|
1080
|
-
content: { 'type': 'array', 'itemType': DescribeResourcesResponseBodyDataContent },
|
|
1081
|
-
maxResults: 'number',
|
|
1082
|
-
nextToken: 'string',
|
|
1083
|
-
totalCount: 'number',
|
|
1084
|
-
};
|
|
1085
|
-
}
|
|
1086
|
-
constructor(map) {
|
|
1087
|
-
super(map);
|
|
1088
|
-
}
|
|
1089
|
-
}
|
|
1090
|
-
exports.DescribeResourcesResponseBodyData = DescribeResourcesResponseBodyData;
|
|
1091
|
-
class DescribeRulesResponseBodyDataContent extends $tea.Model {
|
|
1092
|
-
static names() {
|
|
1093
|
-
return {
|
|
1094
|
-
checkFailedResourceCount: 'CheckFailedResourceCount',
|
|
1095
|
-
checkStatus: 'CheckStatus',
|
|
1096
|
-
checkTime: 'CheckTime',
|
|
1097
|
-
productType: 'ProductType',
|
|
1098
|
-
resourceType: 'ResourceType',
|
|
1099
|
-
riskyResourceCount: 'RiskyResourceCount',
|
|
1100
|
-
ruleId: 'RuleId',
|
|
1101
|
-
ruleTemplate: 'RuleTemplate',
|
|
1102
|
-
totalResourceCount: 'TotalResourceCount',
|
|
1103
|
-
};
|
|
1104
|
-
}
|
|
1105
|
-
static types() {
|
|
1106
|
-
return {
|
|
1107
|
-
checkFailedResourceCount: 'number',
|
|
1108
|
-
checkStatus: 'string',
|
|
1109
|
-
checkTime: 'number',
|
|
1110
|
-
productType: 'string',
|
|
1111
|
-
resourceType: 'string',
|
|
1112
|
-
riskyResourceCount: 'number',
|
|
1113
|
-
ruleId: 'string',
|
|
1114
|
-
ruleTemplate: 'string',
|
|
1115
|
-
totalResourceCount: 'number',
|
|
1116
|
-
};
|
|
1117
|
-
}
|
|
1118
|
-
constructor(map) {
|
|
1119
|
-
super(map);
|
|
1120
|
-
}
|
|
1121
|
-
}
|
|
1122
|
-
exports.DescribeRulesResponseBodyDataContent = DescribeRulesResponseBodyDataContent;
|
|
1123
|
-
class DescribeRulesResponseBodyData extends $tea.Model {
|
|
1124
|
-
static names() {
|
|
1125
|
-
return {
|
|
1126
|
-
content: 'Content',
|
|
1127
|
-
maxResults: 'MaxResults',
|
|
1128
|
-
nextToken: 'NextToken',
|
|
1129
|
-
totalCount: 'TotalCount',
|
|
1130
|
-
};
|
|
1131
|
-
}
|
|
1132
|
-
static types() {
|
|
1133
|
-
return {
|
|
1134
|
-
content: { 'type': 'array', 'itemType': DescribeRulesResponseBodyDataContent },
|
|
1135
|
-
maxResults: 'number',
|
|
1136
|
-
nextToken: 'string',
|
|
1137
|
-
totalCount: 'number',
|
|
1138
|
-
};
|
|
1139
|
-
}
|
|
1140
|
-
constructor(map) {
|
|
1141
|
-
super(map);
|
|
1142
|
-
}
|
|
1143
|
-
}
|
|
1144
|
-
exports.DescribeRulesResponseBodyData = DescribeRulesResponseBodyData;
|
|
1145
|
-
class DescribeTaskResponseBodyData extends $tea.Model {
|
|
1146
|
-
static names() {
|
|
1147
|
-
return {
|
|
1148
|
-
completeTime: 'CompleteTime',
|
|
1149
|
-
errorMessage: 'ErrorMessage',
|
|
1150
|
-
executionId: 'ExecutionId',
|
|
1151
|
-
expireTime: 'ExpireTime',
|
|
1152
|
-
progress: 'Progress',
|
|
1153
|
-
requestId: 'RequestId',
|
|
1154
|
-
startTime: 'StartTime',
|
|
1155
|
-
taskDescription: 'TaskDescription',
|
|
1156
|
-
taskDetail: 'TaskDetail',
|
|
1157
|
-
taskId: 'TaskId',
|
|
1158
|
-
taskName: 'TaskName',
|
|
1159
|
-
taskPriority: 'TaskPriority',
|
|
1160
|
-
taskStatus: 'TaskStatus',
|
|
1161
|
-
taskType: 'TaskType',
|
|
1162
|
-
};
|
|
1163
|
-
}
|
|
1164
|
-
static types() {
|
|
1165
|
-
return {
|
|
1166
|
-
completeTime: 'number',
|
|
1167
|
-
errorMessage: 'string',
|
|
1168
|
-
executionId: 'string',
|
|
1169
|
-
expireTime: 'number',
|
|
1170
|
-
progress: 'number',
|
|
1171
|
-
requestId: 'string',
|
|
1172
|
-
startTime: 'number',
|
|
1173
|
-
taskDescription: 'string',
|
|
1174
|
-
taskDetail: 'string',
|
|
1175
|
-
taskId: 'string',
|
|
1176
|
-
taskName: 'string',
|
|
1177
|
-
taskPriority: 'string',
|
|
1178
|
-
taskStatus: 'string',
|
|
1179
|
-
taskType: 'string',
|
|
1180
|
-
};
|
|
1181
|
-
}
|
|
1182
|
-
constructor(map) {
|
|
1183
|
-
super(map);
|
|
1184
|
-
}
|
|
1185
|
-
}
|
|
1186
|
-
exports.DescribeTaskResponseBodyData = DescribeTaskResponseBodyData;
|
|
1187
|
-
class DescribeTasksResponseBodyDataContent extends $tea.Model {
|
|
1188
|
-
static names() {
|
|
1189
|
-
return {
|
|
1190
|
-
completeTime: 'CompleteTime',
|
|
1191
|
-
errorMessage: 'ErrorMessage',
|
|
1192
|
-
executionId: 'ExecutionId',
|
|
1193
|
-
expireTime: 'ExpireTime',
|
|
1194
|
-
progress: 'Progress',
|
|
1195
|
-
requestId: 'RequestId',
|
|
1196
|
-
startTime: 'StartTime',
|
|
1197
|
-
taskDescription: 'TaskDescription',
|
|
1198
|
-
taskDetail: 'TaskDetail',
|
|
1199
|
-
taskId: 'TaskId',
|
|
1200
|
-
taskName: 'TaskName',
|
|
1201
|
-
taskPriority: 'TaskPriority',
|
|
1202
|
-
taskStatus: 'TaskStatus',
|
|
1203
|
-
taskType: 'TaskType',
|
|
1204
|
-
};
|
|
1205
|
-
}
|
|
1206
|
-
static types() {
|
|
1207
|
-
return {
|
|
1208
|
-
completeTime: 'number',
|
|
1209
|
-
errorMessage: 'string',
|
|
1210
|
-
executionId: 'string',
|
|
1211
|
-
expireTime: 'number',
|
|
1212
|
-
progress: 'number',
|
|
1213
|
-
requestId: 'string',
|
|
1214
|
-
startTime: 'number',
|
|
1215
|
-
taskDescription: 'string',
|
|
1216
|
-
taskDetail: 'string',
|
|
1217
|
-
taskId: 'string',
|
|
1218
|
-
taskName: 'string',
|
|
1219
|
-
taskPriority: 'string',
|
|
1220
|
-
taskStatus: 'string',
|
|
1221
|
-
taskType: 'string',
|
|
1222
|
-
};
|
|
1223
|
-
}
|
|
1224
|
-
constructor(map) {
|
|
1225
|
-
super(map);
|
|
1226
|
-
}
|
|
1227
|
-
}
|
|
1228
|
-
exports.DescribeTasksResponseBodyDataContent = DescribeTasksResponseBodyDataContent;
|
|
1229
|
-
class DescribeTasksResponseBodyData extends $tea.Model {
|
|
1230
|
-
static names() {
|
|
1231
|
-
return {
|
|
1232
|
-
content: 'Content',
|
|
1233
|
-
maxResults: 'MaxResults',
|
|
1234
|
-
nextToken: 'NextToken',
|
|
1235
|
-
totalCount: 'TotalCount',
|
|
1236
|
-
};
|
|
1237
|
-
}
|
|
1238
|
-
static types() {
|
|
1239
|
-
return {
|
|
1240
|
-
content: { 'type': 'array', 'itemType': DescribeTasksResponseBodyDataContent },
|
|
1241
|
-
maxResults: 'number',
|
|
1242
|
-
nextToken: 'string',
|
|
1243
|
-
totalCount: 'number',
|
|
1244
|
-
};
|
|
1245
|
-
}
|
|
1246
|
-
constructor(map) {
|
|
1247
|
-
super(map);
|
|
1248
|
-
}
|
|
1249
|
-
}
|
|
1250
|
-
exports.DescribeTasksResponseBodyData = DescribeTasksResponseBodyData;
|
|
1251
|
-
class DescribeTopRiskyResourcesResponseBodyDataContent extends $tea.Model {
|
|
1252
|
-
static names() {
|
|
1253
|
-
return {
|
|
1254
|
-
archiveDataSize: 'ArchiveDataSize',
|
|
1255
|
-
checkFailedCount: 'CheckFailedCount',
|
|
1256
|
-
coldArchiveDataSize: 'ColdArchiveDataSize',
|
|
1257
|
-
createTime: 'CreateTime',
|
|
1258
|
-
dataRedundancyType: 'DataRedundancyType',
|
|
1259
|
-
enableCheck: 'EnableCheck',
|
|
1260
|
-
iaDataSize: 'IaDataSize',
|
|
1261
|
-
productType: 'ProductType',
|
|
1262
|
-
protectionScore: 'ProtectionScore',
|
|
1263
|
-
protectionScoreUpdatedTime: 'ProtectionScoreUpdatedTime',
|
|
1264
|
-
regionId: 'RegionId',
|
|
1265
|
-
resourceArn: 'ResourceArn',
|
|
1266
|
-
resourceId: 'ResourceId',
|
|
1267
|
-
resourceName: 'ResourceName',
|
|
1268
|
-
resourceType: 'ResourceType',
|
|
1269
|
-
riskCount: 'RiskCount',
|
|
1270
|
-
standardDataSize: 'StandardDataSize',
|
|
1271
|
-
status: 'Status',
|
|
1272
|
-
storageClass: 'StorageClass',
|
|
1273
|
-
totalDataSize: 'TotalDataSize',
|
|
1274
|
-
vSwitchId: 'VSwitchId',
|
|
1275
|
-
vpcId: 'VpcId',
|
|
1276
|
-
zoneId: 'ZoneId',
|
|
1277
|
-
};
|
|
1278
|
-
}
|
|
1279
|
-
static types() {
|
|
1280
|
-
return {
|
|
1281
|
-
archiveDataSize: 'number',
|
|
1282
|
-
checkFailedCount: 'number',
|
|
1283
|
-
coldArchiveDataSize: 'number',
|
|
1284
|
-
createTime: 'number',
|
|
1285
|
-
dataRedundancyType: 'string',
|
|
1286
|
-
enableCheck: 'boolean',
|
|
1287
|
-
iaDataSize: 'number',
|
|
1288
|
-
productType: 'string',
|
|
1289
|
-
protectionScore: 'number',
|
|
1290
|
-
protectionScoreUpdatedTime: 'number',
|
|
1291
|
-
regionId: 'string',
|
|
1292
|
-
resourceArn: 'string',
|
|
1293
|
-
resourceId: 'string',
|
|
1294
|
-
resourceName: 'string',
|
|
1295
|
-
resourceType: 'string',
|
|
1296
|
-
riskCount: 'number',
|
|
1297
|
-
standardDataSize: 'number',
|
|
1298
|
-
status: 'string',
|
|
1299
|
-
storageClass: 'string',
|
|
1300
|
-
totalDataSize: 'number',
|
|
1301
|
-
vSwitchId: 'string',
|
|
1302
|
-
vpcId: 'string',
|
|
1303
|
-
zoneId: 'string',
|
|
1304
|
-
};
|
|
1305
|
-
}
|
|
1306
|
-
constructor(map) {
|
|
1307
|
-
super(map);
|
|
1308
|
-
}
|
|
1309
|
-
}
|
|
1310
|
-
exports.DescribeTopRiskyResourcesResponseBodyDataContent = DescribeTopRiskyResourcesResponseBodyDataContent;
|
|
1311
|
-
class DescribeTopRiskyResourcesResponseBodyData extends $tea.Model {
|
|
1312
|
-
static names() {
|
|
1313
|
-
return {
|
|
1314
|
-
content: 'Content',
|
|
1315
|
-
maxResults: 'MaxResults',
|
|
1316
|
-
nextToken: 'NextToken',
|
|
1317
|
-
totalCount: 'TotalCount',
|
|
1318
|
-
};
|
|
1319
|
-
}
|
|
1320
|
-
static types() {
|
|
1321
|
-
return {
|
|
1322
|
-
content: { 'type': 'array', 'itemType': DescribeTopRiskyResourcesResponseBodyDataContent },
|
|
1323
|
-
maxResults: 'number',
|
|
1324
|
-
nextToken: 'string',
|
|
1325
|
-
totalCount: 'number',
|
|
1326
|
-
};
|
|
1327
|
-
}
|
|
1328
|
-
constructor(map) {
|
|
1329
|
-
super(map);
|
|
1330
|
-
}
|
|
1331
|
-
}
|
|
1332
|
-
exports.DescribeTopRiskyResourcesResponseBodyData = DescribeTopRiskyResourcesResponseBodyData;
|
|
1333
|
-
class GetBdrcServiceResponseBodyData extends $tea.Model {
|
|
1334
|
-
static names() {
|
|
1335
|
-
return {
|
|
1336
|
-
openTime: 'OpenTime',
|
|
1337
|
-
protectionScoreUpdatedTime: 'ProtectionScoreUpdatedTime',
|
|
1338
|
-
serviceInitializeStatus: 'ServiceInitializeStatus',
|
|
1339
|
-
serviceStatus: 'ServiceStatus',
|
|
1340
|
-
};
|
|
1341
|
-
}
|
|
1342
|
-
static types() {
|
|
1343
|
-
return {
|
|
1344
|
-
openTime: 'number',
|
|
1345
|
-
protectionScoreUpdatedTime: 'number',
|
|
1346
|
-
serviceInitializeStatus: 'string',
|
|
1347
|
-
serviceStatus: 'string',
|
|
1348
|
-
};
|
|
1349
|
-
}
|
|
1350
|
-
constructor(map) {
|
|
1351
|
-
super(map);
|
|
1352
|
-
}
|
|
1353
|
-
}
|
|
1354
|
-
exports.GetBdrcServiceResponseBodyData = GetBdrcServiceResponseBodyData;
|
|
1355
|
-
class UpdateResourcesResponseBodyData extends $tea.Model {
|
|
1356
|
-
static names() {
|
|
1357
|
-
return {
|
|
1358
|
-
taskId: 'TaskId',
|
|
1359
|
-
};
|
|
1360
|
-
}
|
|
1361
|
-
static types() {
|
|
1362
|
-
return {
|
|
1363
|
-
taskId: 'string',
|
|
1364
|
-
};
|
|
1365
|
-
}
|
|
1366
|
-
constructor(map) {
|
|
1367
|
-
super(map);
|
|
1368
|
-
}
|
|
1369
|
-
}
|
|
1370
|
-
exports.UpdateResourcesResponseBodyData = UpdateResourcesResponseBodyData;
|
|
1371
|
-
class Client extends openapi_client_1.default {
|
|
43
|
+
const $dara = __importStar(require("@darabonba/typescript"));
|
|
44
|
+
const openapi_core_1 = __importDefault(require("@alicloud/openapi-core"));
|
|
45
|
+
const openapi_core_2 = require("@alicloud/openapi-core");
|
|
46
|
+
const $_model = __importStar(require("./models/model"));
|
|
47
|
+
__exportStar(require("./models/model"), exports);
|
|
48
|
+
class Client extends openapi_core_1.default {
|
|
1372
49
|
constructor(config) {
|
|
1373
50
|
super(config);
|
|
1374
|
-
this._endpointRule = "";
|
|
51
|
+
this._endpointRule = "regional";
|
|
52
|
+
this._endpointMap = {
|
|
53
|
+
'cn-shanghai-finance-1': "bdrc.cn-shanghai-finance-1.aliyuncs.com",
|
|
54
|
+
'cn-shanghai': "bdrc.cn-shanghai.aliyuncs.com",
|
|
55
|
+
'ap-southeast-1': "bdrc.ap-southeast-1.aliyuncs.com",
|
|
56
|
+
};
|
|
1375
57
|
this.checkConfig(config);
|
|
1376
58
|
this._endpoint = this.getEndpoint("bdrc", this._regionId, this._endpointRule, this._network, this._suffix, this._endpointMap, this._endpoint);
|
|
1377
59
|
}
|
|
1378
60
|
getEndpoint(productId, regionId, endpointRule, network, suffix, endpointMap, endpoint) {
|
|
1379
|
-
if (
|
|
61
|
+
if (!$dara.isNull(endpoint)) {
|
|
1380
62
|
return endpoint;
|
|
1381
63
|
}
|
|
1382
|
-
if (
|
|
64
|
+
if (!$dara.isNull(endpointMap) && !$dara.isNull(endpointMap[regionId])) {
|
|
1383
65
|
return endpointMap[regionId];
|
|
1384
66
|
}
|
|
1385
|
-
return
|
|
67
|
+
return openapi_core_2.OpenApiUtil.getEndpointRules(productId, regionId, endpointRule, network, suffix);
|
|
1386
68
|
}
|
|
1387
69
|
/**
|
|
70
|
+
* Checks data protection scoring rules. Calling this operation triggers an asynchronous task to check whether your resources meet the data protection scoring requirements.
|
|
71
|
+
*
|
|
1388
72
|
* @param request - CheckRulesRequest
|
|
1389
73
|
* @param headers - map
|
|
1390
74
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
1391
75
|
* @returns CheckRulesResponse
|
|
1392
76
|
*/
|
|
1393
77
|
async checkRulesWithOptions(request, headers, runtime) {
|
|
1394
|
-
|
|
78
|
+
request.validate();
|
|
1395
79
|
let body = {};
|
|
1396
|
-
if (
|
|
80
|
+
if (!$dara.isNull(request.resourceArn)) {
|
|
1397
81
|
body["ResourceArn"] = request.resourceArn;
|
|
1398
82
|
}
|
|
1399
|
-
if (
|
|
83
|
+
if (!$dara.isNull(request.ruleId)) {
|
|
1400
84
|
body["RuleId"] = request.ruleId;
|
|
1401
85
|
}
|
|
1402
|
-
let req = new
|
|
86
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
1403
87
|
headers: headers,
|
|
1404
|
-
body:
|
|
88
|
+
body: openapi_core_2.OpenApiUtil.parseToMap(body),
|
|
1405
89
|
});
|
|
1406
|
-
let params = new
|
|
90
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
1407
91
|
action: "CheckRules",
|
|
1408
92
|
version: "2023-08-08",
|
|
1409
93
|
protocol: "HTTPS",
|
|
@@ -1414,27 +98,31 @@ class Client extends openapi_client_1.default {
|
|
|
1414
98
|
reqBodyType: "formData",
|
|
1415
99
|
bodyType: "json",
|
|
1416
100
|
});
|
|
1417
|
-
return $
|
|
101
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.CheckRulesResponse({}));
|
|
1418
102
|
}
|
|
1419
103
|
/**
|
|
104
|
+
* Checks data protection scoring rules. Calling this operation triggers an asynchronous task to check whether your resources meet the data protection scoring requirements.
|
|
105
|
+
*
|
|
1420
106
|
* @param request - CheckRulesRequest
|
|
1421
107
|
* @returns CheckRulesResponse
|
|
1422
108
|
*/
|
|
1423
109
|
async checkRules(request) {
|
|
1424
|
-
let runtime = new $
|
|
110
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
1425
111
|
let headers = {};
|
|
1426
112
|
return await this.checkRulesWithOptions(request, headers, runtime);
|
|
1427
113
|
}
|
|
1428
114
|
/**
|
|
115
|
+
* Shuts down the Backup and Disaster Recovery Center.
|
|
116
|
+
*
|
|
1429
117
|
* @param headers - map
|
|
1430
118
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
1431
119
|
* @returns CloseBdrcServiceResponse
|
|
1432
120
|
*/
|
|
1433
121
|
async closeBdrcServiceWithOptions(headers, runtime) {
|
|
1434
|
-
let req = new
|
|
122
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
1435
123
|
headers: headers,
|
|
1436
124
|
});
|
|
1437
|
-
let params = new
|
|
125
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
1438
126
|
action: "CloseBdrcService",
|
|
1439
127
|
version: "2023-08-08",
|
|
1440
128
|
protocol: "HTTPS",
|
|
@@ -1445,73 +133,343 @@ class Client extends openapi_client_1.default {
|
|
|
1445
133
|
reqBodyType: "json",
|
|
1446
134
|
bodyType: "json",
|
|
1447
135
|
});
|
|
1448
|
-
return $
|
|
136
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.CloseBdrcServiceResponse({}));
|
|
1449
137
|
}
|
|
1450
138
|
/**
|
|
139
|
+
* Shuts down the Backup and Disaster Recovery Center.
|
|
1451
140
|
* @returns CloseBdrcServiceResponse
|
|
1452
141
|
*/
|
|
1453
142
|
async closeBdrcService() {
|
|
1454
|
-
let runtime = new $
|
|
143
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
144
|
+
let headers = {};
|
|
145
|
+
return await this.closeBdrcServiceWithOptions(headers, runtime);
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* Creates a protection policy.
|
|
149
|
+
*
|
|
150
|
+
* @param tmpReq - CreateProtectionPolicyRequest
|
|
151
|
+
* @param headers - map
|
|
152
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
153
|
+
* @returns CreateProtectionPolicyResponse
|
|
154
|
+
*/
|
|
155
|
+
async createProtectionPolicyWithOptions(tmpReq, headers, runtime) {
|
|
156
|
+
tmpReq.validate();
|
|
157
|
+
let request = new $_model.CreateProtectionPolicyShrinkRequest({});
|
|
158
|
+
openapi_core_2.OpenApiUtil.convert(tmpReq, request);
|
|
159
|
+
if (!$dara.isNull(tmpReq.boundResourceCategoryIds)) {
|
|
160
|
+
request.boundResourceCategoryIdsShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.boundResourceCategoryIds, "BoundResourceCategoryIds", "json");
|
|
161
|
+
}
|
|
162
|
+
if (!$dara.isNull(tmpReq.subProtectionPolicies)) {
|
|
163
|
+
request.subProtectionPoliciesShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.subProtectionPolicies, "SubProtectionPolicies", "json");
|
|
164
|
+
}
|
|
165
|
+
let body = {};
|
|
166
|
+
if (!$dara.isNull(request.boundResourceCategoryIdsShrink)) {
|
|
167
|
+
body["BoundResourceCategoryIds"] = request.boundResourceCategoryIdsShrink;
|
|
168
|
+
}
|
|
169
|
+
if (!$dara.isNull(request.clientToken)) {
|
|
170
|
+
body["ClientToken"] = request.clientToken;
|
|
171
|
+
}
|
|
172
|
+
if (!$dara.isNull(request.protectionPolicyName)) {
|
|
173
|
+
body["ProtectionPolicyName"] = request.protectionPolicyName;
|
|
174
|
+
}
|
|
175
|
+
if (!$dara.isNull(request.protectionPolicyRegionId)) {
|
|
176
|
+
body["ProtectionPolicyRegionId"] = request.protectionPolicyRegionId;
|
|
177
|
+
}
|
|
178
|
+
if (!$dara.isNull(request.subProtectionPoliciesShrink)) {
|
|
179
|
+
body["SubProtectionPolicies"] = request.subProtectionPoliciesShrink;
|
|
180
|
+
}
|
|
181
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
182
|
+
headers: headers,
|
|
183
|
+
body: openapi_core_2.OpenApiUtil.parseToMap(body),
|
|
184
|
+
});
|
|
185
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
186
|
+
action: "CreateProtectionPolicy",
|
|
187
|
+
version: "2023-08-08",
|
|
188
|
+
protocol: "HTTPS",
|
|
189
|
+
pathname: `/api/v1/protection-policies`,
|
|
190
|
+
method: "POST",
|
|
191
|
+
authType: "AK",
|
|
192
|
+
style: "ROA",
|
|
193
|
+
reqBodyType: "formData",
|
|
194
|
+
bodyType: "json",
|
|
195
|
+
});
|
|
196
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateProtectionPolicyResponse({}));
|
|
197
|
+
}
|
|
198
|
+
/**
|
|
199
|
+
* Creates a protection policy.
|
|
200
|
+
*
|
|
201
|
+
* @param request - CreateProtectionPolicyRequest
|
|
202
|
+
* @returns CreateProtectionPolicyResponse
|
|
203
|
+
*/
|
|
204
|
+
async createProtectionPolicy(request) {
|
|
205
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
206
|
+
let headers = {};
|
|
207
|
+
return await this.createProtectionPolicyWithOptions(request, headers, runtime);
|
|
208
|
+
}
|
|
209
|
+
/**
|
|
210
|
+
* Creates a resource category.
|
|
211
|
+
*
|
|
212
|
+
* @param request - CreateResourceCategoryRequest
|
|
213
|
+
* @param headers - map
|
|
214
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
215
|
+
* @returns CreateResourceCategoryResponse
|
|
216
|
+
*/
|
|
217
|
+
async createResourceCategoryWithOptions(request, headers, runtime) {
|
|
218
|
+
request.validate();
|
|
219
|
+
let body = {};
|
|
220
|
+
if (!$dara.isNull(request.resourceCategoryName)) {
|
|
221
|
+
body["ResourceCategoryName"] = request.resourceCategoryName;
|
|
222
|
+
}
|
|
223
|
+
if (!$dara.isNull(request.resourceMatcher)) {
|
|
224
|
+
body["ResourceMatcher"] = request.resourceMatcher;
|
|
225
|
+
}
|
|
226
|
+
if (!$dara.isNull(request.resourceType)) {
|
|
227
|
+
body["ResourceType"] = request.resourceType;
|
|
228
|
+
}
|
|
229
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
230
|
+
headers: headers,
|
|
231
|
+
body: openapi_core_2.OpenApiUtil.parseToMap(body),
|
|
232
|
+
});
|
|
233
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
234
|
+
action: "CreateResourceCategory",
|
|
235
|
+
version: "2023-08-08",
|
|
236
|
+
protocol: "HTTPS",
|
|
237
|
+
pathname: `/api/v1/resource-categories/create`,
|
|
238
|
+
method: "POST",
|
|
239
|
+
authType: "AK",
|
|
240
|
+
style: "ROA",
|
|
241
|
+
reqBodyType: "formData",
|
|
242
|
+
bodyType: "json",
|
|
243
|
+
});
|
|
244
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateResourceCategoryResponse({}));
|
|
245
|
+
}
|
|
246
|
+
/**
|
|
247
|
+
* Creates a resource category.
|
|
248
|
+
*
|
|
249
|
+
* @param request - CreateResourceCategoryRequest
|
|
250
|
+
* @returns CreateResourceCategoryResponse
|
|
251
|
+
*/
|
|
252
|
+
async createResourceCategory(request) {
|
|
253
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
254
|
+
let headers = {};
|
|
255
|
+
return await this.createResourceCategoryWithOptions(request, headers, runtime);
|
|
256
|
+
}
|
|
257
|
+
/**
|
|
258
|
+
* Deletes a protection policy.
|
|
259
|
+
*
|
|
260
|
+
* @param request - DeleteProtectionPolicyRequest
|
|
261
|
+
* @param headers - map
|
|
262
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
263
|
+
* @returns DeleteProtectionPolicyResponse
|
|
264
|
+
*/
|
|
265
|
+
async deleteProtectionPolicyWithOptions(ProtectionPolicyId, request, headers, runtime) {
|
|
266
|
+
request.validate();
|
|
267
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
268
|
+
headers: headers,
|
|
269
|
+
});
|
|
270
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
271
|
+
action: "DeleteProtectionPolicy",
|
|
272
|
+
version: "2023-08-08",
|
|
273
|
+
protocol: "HTTPS",
|
|
274
|
+
pathname: `/api/v1/protection-policies/${$dara.URL.percentEncode(ProtectionPolicyId)}`,
|
|
275
|
+
method: "DELETE",
|
|
276
|
+
authType: "AK",
|
|
277
|
+
style: "ROA",
|
|
278
|
+
reqBodyType: "json",
|
|
279
|
+
bodyType: "json",
|
|
280
|
+
});
|
|
281
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeleteProtectionPolicyResponse({}));
|
|
282
|
+
}
|
|
283
|
+
/**
|
|
284
|
+
* Deletes a protection policy.
|
|
285
|
+
*
|
|
286
|
+
* @param request - DeleteProtectionPolicyRequest
|
|
287
|
+
* @returns DeleteProtectionPolicyResponse
|
|
288
|
+
*/
|
|
289
|
+
async deleteProtectionPolicy(ProtectionPolicyId, request) {
|
|
290
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
291
|
+
let headers = {};
|
|
292
|
+
return await this.deleteProtectionPolicyWithOptions(ProtectionPolicyId, request, headers, runtime);
|
|
293
|
+
}
|
|
294
|
+
/**
|
|
295
|
+
* Deletes a resource category.
|
|
296
|
+
*
|
|
297
|
+
* @param request - DeleteResourceCategoryRequest
|
|
298
|
+
* @param headers - map
|
|
299
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
300
|
+
* @returns DeleteResourceCategoryResponse
|
|
301
|
+
*/
|
|
302
|
+
async deleteResourceCategoryWithOptions(request, headers, runtime) {
|
|
303
|
+
request.validate();
|
|
304
|
+
let body = {};
|
|
305
|
+
if (!$dara.isNull(request.resourceCategoryId)) {
|
|
306
|
+
body["ResourceCategoryId"] = request.resourceCategoryId;
|
|
307
|
+
}
|
|
308
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
309
|
+
headers: headers,
|
|
310
|
+
body: openapi_core_2.OpenApiUtil.parseToMap(body),
|
|
311
|
+
});
|
|
312
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
313
|
+
action: "DeleteResourceCategory",
|
|
314
|
+
version: "2023-08-08",
|
|
315
|
+
protocol: "HTTPS",
|
|
316
|
+
pathname: `/api/v1/resource-categories/delete`,
|
|
317
|
+
method: "POST",
|
|
318
|
+
authType: "AK",
|
|
319
|
+
style: "ROA",
|
|
320
|
+
reqBodyType: "formData",
|
|
321
|
+
bodyType: "json",
|
|
322
|
+
});
|
|
323
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeleteResourceCategoryResponse({}));
|
|
324
|
+
}
|
|
325
|
+
/**
|
|
326
|
+
* Deletes a resource category.
|
|
327
|
+
*
|
|
328
|
+
* @param request - DeleteResourceCategoryRequest
|
|
329
|
+
* @returns DeleteResourceCategoryResponse
|
|
330
|
+
*/
|
|
331
|
+
async deleteResourceCategory(request) {
|
|
332
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
333
|
+
let headers = {};
|
|
334
|
+
return await this.deleteResourceCategoryWithOptions(request, headers, runtime);
|
|
335
|
+
}
|
|
336
|
+
/**
|
|
337
|
+
* Retrieves the check results for data protection rules.
|
|
338
|
+
*
|
|
339
|
+
* @param request - DescribeCheckDetailsRequest
|
|
340
|
+
* @param headers - map
|
|
341
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
342
|
+
* @returns DescribeCheckDetailsResponse
|
|
343
|
+
*/
|
|
344
|
+
async describeCheckDetailsWithOptions(request, headers, runtime) {
|
|
345
|
+
request.validate();
|
|
346
|
+
let query = {};
|
|
347
|
+
if (!$dara.isNull(request.maxResults)) {
|
|
348
|
+
query["MaxResults"] = request.maxResults;
|
|
349
|
+
}
|
|
350
|
+
if (!$dara.isNull(request.nextToken)) {
|
|
351
|
+
query["NextToken"] = request.nextToken;
|
|
352
|
+
}
|
|
353
|
+
if (!$dara.isNull(request.resourceArn)) {
|
|
354
|
+
query["ResourceArn"] = request.resourceArn;
|
|
355
|
+
}
|
|
356
|
+
if (!$dara.isNull(request.ruleId)) {
|
|
357
|
+
query["RuleId"] = request.ruleId;
|
|
358
|
+
}
|
|
359
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
360
|
+
headers: headers,
|
|
361
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
362
|
+
});
|
|
363
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
364
|
+
action: "DescribeCheckDetails",
|
|
365
|
+
version: "2023-08-08",
|
|
366
|
+
protocol: "HTTPS",
|
|
367
|
+
pathname: `/api/v1/check-details`,
|
|
368
|
+
method: "GET",
|
|
369
|
+
authType: "AK",
|
|
370
|
+
style: "ROA",
|
|
371
|
+
reqBodyType: "json",
|
|
372
|
+
bodyType: "json",
|
|
373
|
+
});
|
|
374
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeCheckDetailsResponse({}));
|
|
375
|
+
}
|
|
376
|
+
/**
|
|
377
|
+
* Retrieves the check results for data protection rules.
|
|
378
|
+
*
|
|
379
|
+
* @param request - DescribeCheckDetailsRequest
|
|
380
|
+
* @returns DescribeCheckDetailsResponse
|
|
381
|
+
*/
|
|
382
|
+
async describeCheckDetails(request) {
|
|
383
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
1455
384
|
let headers = {};
|
|
1456
|
-
return await this.
|
|
385
|
+
return await this.describeCheckDetailsWithOptions(request, headers, runtime);
|
|
1457
386
|
}
|
|
1458
387
|
/**
|
|
1459
|
-
*
|
|
388
|
+
* Queries statistics on data redundancy types for a cloud service.
|
|
389
|
+
*
|
|
390
|
+
* @param tmpReq - DescribeProductDataRedundancyTypeStatRequest
|
|
1460
391
|
* @param headers - map
|
|
1461
392
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
1462
|
-
* @returns
|
|
393
|
+
* @returns DescribeProductDataRedundancyTypeStatResponse
|
|
1463
394
|
*/
|
|
1464
|
-
async
|
|
1465
|
-
|
|
1466
|
-
let
|
|
1467
|
-
|
|
1468
|
-
|
|
395
|
+
async describeProductDataRedundancyTypeStatWithOptions(tmpReq, headers, runtime) {
|
|
396
|
+
tmpReq.validate();
|
|
397
|
+
let request = new $_model.DescribeProductDataRedundancyTypeStatShrinkRequest({});
|
|
398
|
+
openapi_core_2.OpenApiUtil.convert(tmpReq, request);
|
|
399
|
+
if (!$dara.isNull(tmpReq.resourceOwnerIds)) {
|
|
400
|
+
request.resourceOwnerIdsShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.resourceOwnerIds, "ResourceOwnerIds", "json");
|
|
1469
401
|
}
|
|
1470
|
-
|
|
1471
|
-
|
|
402
|
+
let query = {};
|
|
403
|
+
if (!$dara.isNull(request.productType)) {
|
|
404
|
+
query["ProductType"] = request.productType;
|
|
1472
405
|
}
|
|
1473
|
-
if (
|
|
1474
|
-
query["
|
|
406
|
+
if (!$dara.isNull(request.resourceCategoryId)) {
|
|
407
|
+
query["ResourceCategoryId"] = request.resourceCategoryId;
|
|
1475
408
|
}
|
|
1476
|
-
if (
|
|
1477
|
-
query["
|
|
409
|
+
if (!$dara.isNull(request.resourceOwnerIdsShrink)) {
|
|
410
|
+
query["ResourceOwnerIds"] = request.resourceOwnerIdsShrink;
|
|
1478
411
|
}
|
|
1479
|
-
let req = new
|
|
412
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
1480
413
|
headers: headers,
|
|
1481
|
-
query:
|
|
414
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
1482
415
|
});
|
|
1483
|
-
let params = new
|
|
1484
|
-
action: "
|
|
416
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
417
|
+
action: "DescribeProductDataRedundancyTypeStat",
|
|
1485
418
|
version: "2023-08-08",
|
|
1486
419
|
protocol: "HTTPS",
|
|
1487
|
-
pathname: `/api/v1/
|
|
420
|
+
pathname: `/api/v1/products/data-redundancy-type-stat`,
|
|
1488
421
|
method: "GET",
|
|
1489
422
|
authType: "AK",
|
|
1490
423
|
style: "ROA",
|
|
1491
424
|
reqBodyType: "json",
|
|
1492
425
|
bodyType: "json",
|
|
1493
426
|
});
|
|
1494
|
-
return $
|
|
427
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeProductDataRedundancyTypeStatResponse({}));
|
|
1495
428
|
}
|
|
1496
429
|
/**
|
|
1497
|
-
*
|
|
1498
|
-
*
|
|
430
|
+
* Queries statistics on data redundancy types for a cloud service.
|
|
431
|
+
*
|
|
432
|
+
* @param request - DescribeProductDataRedundancyTypeStatRequest
|
|
433
|
+
* @returns DescribeProductDataRedundancyTypeStatResponse
|
|
1499
434
|
*/
|
|
1500
|
-
async
|
|
1501
|
-
let runtime = new $
|
|
435
|
+
async describeProductDataRedundancyTypeStat(request) {
|
|
436
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
1502
437
|
let headers = {};
|
|
1503
|
-
return await this.
|
|
438
|
+
return await this.describeProductDataRedundancyTypeStatWithOptions(request, headers, runtime);
|
|
1504
439
|
}
|
|
1505
440
|
/**
|
|
441
|
+
* Queries the data protection score status for cloud products.
|
|
442
|
+
*
|
|
443
|
+
* @param tmpReq - DescribeProductsRequest
|
|
1506
444
|
* @param headers - map
|
|
1507
445
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
1508
446
|
* @returns DescribeProductsResponse
|
|
1509
447
|
*/
|
|
1510
|
-
async describeProductsWithOptions(headers, runtime) {
|
|
1511
|
-
|
|
448
|
+
async describeProductsWithOptions(tmpReq, headers, runtime) {
|
|
449
|
+
tmpReq.validate();
|
|
450
|
+
let request = new $_model.DescribeProductsShrinkRequest({});
|
|
451
|
+
openapi_core_2.OpenApiUtil.convert(tmpReq, request);
|
|
452
|
+
if (!$dara.isNull(tmpReq.resourceOwnerIds)) {
|
|
453
|
+
request.resourceOwnerIdsShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.resourceOwnerIds, "ResourceOwnerIds", "json");
|
|
454
|
+
}
|
|
455
|
+
let query = {};
|
|
456
|
+
if (!$dara.isNull(request.productType)) {
|
|
457
|
+
query["ProductType"] = request.productType;
|
|
458
|
+
}
|
|
459
|
+
if (!$dara.isNull(request.resourceCategoryId)) {
|
|
460
|
+
query["ResourceCategoryId"] = request.resourceCategoryId;
|
|
461
|
+
}
|
|
462
|
+
if (!$dara.isNull(request.resourceOwnerIdsShrink)) {
|
|
463
|
+
query["ResourceOwnerIds"] = request.resourceOwnerIdsShrink;
|
|
464
|
+
}
|
|
465
|
+
if (!$dara.isNull(request.resourceRegionId)) {
|
|
466
|
+
query["ResourceRegionId"] = request.resourceRegionId;
|
|
467
|
+
}
|
|
468
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
1512
469
|
headers: headers,
|
|
470
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
1513
471
|
});
|
|
1514
|
-
let params = new
|
|
472
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
1515
473
|
action: "DescribeProducts",
|
|
1516
474
|
version: "2023-08-08",
|
|
1517
475
|
protocol: "HTTPS",
|
|
@@ -1522,57 +480,79 @@ class Client extends openapi_client_1.default {
|
|
|
1522
480
|
reqBodyType: "json",
|
|
1523
481
|
bodyType: "json",
|
|
1524
482
|
});
|
|
1525
|
-
return $
|
|
483
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeProductsResponse({}));
|
|
1526
484
|
}
|
|
1527
485
|
/**
|
|
486
|
+
* Queries the data protection score status for cloud products.
|
|
487
|
+
*
|
|
488
|
+
* @param request - DescribeProductsRequest
|
|
1528
489
|
* @returns DescribeProductsResponse
|
|
1529
490
|
*/
|
|
1530
|
-
async describeProducts() {
|
|
1531
|
-
let runtime = new $
|
|
491
|
+
async describeProducts(request) {
|
|
492
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
1532
493
|
let headers = {};
|
|
1533
|
-
return await this.describeProductsWithOptions(headers, runtime);
|
|
494
|
+
return await this.describeProductsWithOptions(request, headers, runtime);
|
|
1534
495
|
}
|
|
1535
496
|
/**
|
|
1536
|
-
*
|
|
497
|
+
* Query resources
|
|
498
|
+
*
|
|
499
|
+
* @param tmpReq - DescribeResourcesRequest
|
|
1537
500
|
* @param headers - map
|
|
1538
501
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
1539
502
|
* @returns DescribeResourcesResponse
|
|
1540
503
|
*/
|
|
1541
|
-
async describeResourcesWithOptions(
|
|
1542
|
-
|
|
504
|
+
async describeResourcesWithOptions(tmpReq, headers, runtime) {
|
|
505
|
+
tmpReq.validate();
|
|
506
|
+
let request = new $_model.DescribeResourcesShrinkRequest({});
|
|
507
|
+
openapi_core_2.OpenApiUtil.convert(tmpReq, request);
|
|
508
|
+
if (!$dara.isNull(tmpReq.resourceOwnerIds)) {
|
|
509
|
+
request.resourceOwnerIdsShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.resourceOwnerIds, "ResourceOwnerIds", "json");
|
|
510
|
+
}
|
|
1543
511
|
let query = {};
|
|
1544
|
-
if (
|
|
512
|
+
if (!$dara.isNull(request.dataRedundancyType)) {
|
|
1545
513
|
query["DataRedundancyType"] = request.dataRedundancyType;
|
|
1546
514
|
}
|
|
1547
|
-
if (
|
|
515
|
+
if (!$dara.isNull(request.failedRuleTemplate)) {
|
|
1548
516
|
query["FailedRuleTemplate"] = request.failedRuleTemplate;
|
|
1549
517
|
}
|
|
1550
|
-
if (
|
|
518
|
+
if (!$dara.isNull(request.maxResults)) {
|
|
1551
519
|
query["MaxResults"] = request.maxResults;
|
|
1552
520
|
}
|
|
1553
|
-
if (
|
|
521
|
+
if (!$dara.isNull(request.nextToken)) {
|
|
1554
522
|
query["NextToken"] = request.nextToken;
|
|
1555
523
|
}
|
|
1556
|
-
if (
|
|
524
|
+
if (!$dara.isNull(request.resourceArn)) {
|
|
525
|
+
query["ResourceArn"] = request.resourceArn;
|
|
526
|
+
}
|
|
527
|
+
if (!$dara.isNull(request.resourceCategoryId)) {
|
|
528
|
+
query["ResourceCategoryId"] = request.resourceCategoryId;
|
|
529
|
+
}
|
|
530
|
+
if (!$dara.isNull(request.resourceId)) {
|
|
1557
531
|
query["ResourceId"] = request.resourceId;
|
|
1558
532
|
}
|
|
1559
|
-
if (
|
|
533
|
+
if (!$dara.isNull(request.resourceOwnerIdsShrink)) {
|
|
534
|
+
query["ResourceOwnerIds"] = request.resourceOwnerIdsShrink;
|
|
535
|
+
}
|
|
536
|
+
if (!$dara.isNull(request.resourceRegionId)) {
|
|
537
|
+
query["ResourceRegionId"] = request.resourceRegionId;
|
|
538
|
+
}
|
|
539
|
+
if (!$dara.isNull(request.resourceType)) {
|
|
1560
540
|
query["ResourceType"] = request.resourceType;
|
|
1561
541
|
}
|
|
1562
|
-
if (
|
|
542
|
+
if (!$dara.isNull(request.sortBy)) {
|
|
1563
543
|
query["SortBy"] = request.sortBy;
|
|
1564
544
|
}
|
|
1565
|
-
if (
|
|
545
|
+
if (!$dara.isNull(request.sortOrder)) {
|
|
1566
546
|
query["SortOrder"] = request.sortOrder;
|
|
1567
547
|
}
|
|
1568
|
-
if (
|
|
548
|
+
if (!$dara.isNull(request.storageClass)) {
|
|
1569
549
|
query["StorageClass"] = request.storageClass;
|
|
1570
550
|
}
|
|
1571
|
-
let req = new
|
|
551
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
1572
552
|
headers: headers,
|
|
1573
|
-
query:
|
|
553
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
1574
554
|
});
|
|
1575
|
-
let params = new
|
|
555
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
1576
556
|
action: "DescribeResources",
|
|
1577
557
|
version: "2023-08-08",
|
|
1578
558
|
protocol: "HTTPS",
|
|
@@ -1583,40 +563,58 @@ class Client extends openapi_client_1.default {
|
|
|
1583
563
|
reqBodyType: "json",
|
|
1584
564
|
bodyType: "json",
|
|
1585
565
|
});
|
|
1586
|
-
return $
|
|
566
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeResourcesResponse({}));
|
|
1587
567
|
}
|
|
1588
568
|
/**
|
|
569
|
+
* Query resources
|
|
570
|
+
*
|
|
1589
571
|
* @param request - DescribeResourcesRequest
|
|
1590
572
|
* @returns DescribeResourcesResponse
|
|
1591
573
|
*/
|
|
1592
574
|
async describeResources(request) {
|
|
1593
|
-
let runtime = new $
|
|
575
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
1594
576
|
let headers = {};
|
|
1595
577
|
return await this.describeResourcesWithOptions(request, headers, runtime);
|
|
1596
578
|
}
|
|
1597
579
|
/**
|
|
1598
|
-
*
|
|
580
|
+
* Lists all data protection rules.
|
|
581
|
+
*
|
|
582
|
+
* @param tmpReq - DescribeRulesRequest
|
|
1599
583
|
* @param headers - map
|
|
1600
584
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
1601
585
|
* @returns DescribeRulesResponse
|
|
1602
586
|
*/
|
|
1603
|
-
async describeRulesWithOptions(
|
|
1604
|
-
|
|
587
|
+
async describeRulesWithOptions(tmpReq, headers, runtime) {
|
|
588
|
+
tmpReq.validate();
|
|
589
|
+
let request = new $_model.DescribeRulesShrinkRequest({});
|
|
590
|
+
openapi_core_2.OpenApiUtil.convert(tmpReq, request);
|
|
591
|
+
if (!$dara.isNull(tmpReq.resourceOwnerIds)) {
|
|
592
|
+
request.resourceOwnerIdsShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.resourceOwnerIds, "ResourceOwnerIds", "json");
|
|
593
|
+
}
|
|
1605
594
|
let query = {};
|
|
1606
|
-
if (
|
|
595
|
+
if (!$dara.isNull(request.maxResults)) {
|
|
1607
596
|
query["MaxResults"] = request.maxResults;
|
|
1608
597
|
}
|
|
1609
|
-
if (
|
|
598
|
+
if (!$dara.isNull(request.nextToken)) {
|
|
1610
599
|
query["NextToken"] = request.nextToken;
|
|
1611
600
|
}
|
|
1612
|
-
if (
|
|
601
|
+
if (!$dara.isNull(request.resourceCategoryId)) {
|
|
602
|
+
query["ResourceCategoryId"] = request.resourceCategoryId;
|
|
603
|
+
}
|
|
604
|
+
if (!$dara.isNull(request.resourceOwnerIdsShrink)) {
|
|
605
|
+
query["ResourceOwnerIds"] = request.resourceOwnerIdsShrink;
|
|
606
|
+
}
|
|
607
|
+
if (!$dara.isNull(request.resourceRegionId)) {
|
|
608
|
+
query["ResourceRegionId"] = request.resourceRegionId;
|
|
609
|
+
}
|
|
610
|
+
if (!$dara.isNull(request.resourceType)) {
|
|
1613
611
|
query["ResourceType"] = request.resourceType;
|
|
1614
612
|
}
|
|
1615
|
-
let req = new
|
|
613
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
1616
614
|
headers: headers,
|
|
1617
|
-
query:
|
|
615
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
1618
616
|
});
|
|
1619
|
-
let params = new
|
|
617
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
1620
618
|
action: "DescribeRules",
|
|
1621
619
|
version: "2023-08-08",
|
|
1622
620
|
protocol: "HTTPS",
|
|
@@ -1627,70 +625,80 @@ class Client extends openapi_client_1.default {
|
|
|
1627
625
|
reqBodyType: "json",
|
|
1628
626
|
bodyType: "json",
|
|
1629
627
|
});
|
|
1630
|
-
return $
|
|
628
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeRulesResponse({}));
|
|
1631
629
|
}
|
|
1632
630
|
/**
|
|
631
|
+
* Lists all data protection rules.
|
|
632
|
+
*
|
|
1633
633
|
* @param request - DescribeRulesRequest
|
|
1634
634
|
* @returns DescribeRulesResponse
|
|
1635
635
|
*/
|
|
1636
636
|
async describeRules(request) {
|
|
1637
|
-
let runtime = new $
|
|
637
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
1638
638
|
let headers = {};
|
|
1639
639
|
return await this.describeRulesWithOptions(request, headers, runtime);
|
|
1640
640
|
}
|
|
1641
641
|
/**
|
|
642
|
+
* Retrieves the details of an asynchronous task.
|
|
643
|
+
*
|
|
1642
644
|
* @param headers - map
|
|
1643
645
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
1644
646
|
* @returns DescribeTaskResponse
|
|
1645
647
|
*/
|
|
1646
648
|
async describeTaskWithOptions(TaskId, headers, runtime) {
|
|
1647
|
-
let req = new
|
|
649
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
1648
650
|
headers: headers,
|
|
1649
651
|
});
|
|
1650
|
-
let params = new
|
|
652
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
1651
653
|
action: "DescribeTask",
|
|
1652
654
|
version: "2023-08-08",
|
|
1653
655
|
protocol: "HTTPS",
|
|
1654
|
-
pathname: `/api/v1/tasks/${
|
|
656
|
+
pathname: `/api/v1/tasks/${$dara.URL.percentEncode(TaskId)}`,
|
|
1655
657
|
method: "GET",
|
|
1656
658
|
authType: "AK",
|
|
1657
659
|
style: "ROA",
|
|
1658
660
|
reqBodyType: "json",
|
|
1659
661
|
bodyType: "json",
|
|
1660
662
|
});
|
|
1661
|
-
return $
|
|
663
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeTaskResponse({}));
|
|
1662
664
|
}
|
|
1663
665
|
/**
|
|
666
|
+
* Retrieves the details of an asynchronous task.
|
|
1664
667
|
* @returns DescribeTaskResponse
|
|
1665
668
|
*/
|
|
1666
669
|
async describeTask(TaskId) {
|
|
1667
|
-
let runtime = new $
|
|
670
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
1668
671
|
let headers = {};
|
|
1669
672
|
return await this.describeTaskWithOptions(TaskId, headers, runtime);
|
|
1670
673
|
}
|
|
1671
674
|
/**
|
|
675
|
+
* Retrieves asynchronous tasks.
|
|
676
|
+
*
|
|
1672
677
|
* @param request - DescribeTasksRequest
|
|
1673
678
|
* @param headers - map
|
|
1674
679
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
1675
680
|
* @returns DescribeTasksResponse
|
|
1676
681
|
*/
|
|
1677
682
|
async describeTasksWithOptions(request, headers, runtime) {
|
|
1678
|
-
|
|
683
|
+
request.validate();
|
|
1679
684
|
let query = {};
|
|
1680
|
-
if (
|
|
685
|
+
if (!$dara.isNull(request.maxResults)) {
|
|
1681
686
|
query["MaxResults"] = request.maxResults;
|
|
1682
687
|
}
|
|
1683
|
-
if (
|
|
688
|
+
if (!$dara.isNull(request.nextToken)) {
|
|
1684
689
|
query["NextToken"] = request.nextToken;
|
|
1685
690
|
}
|
|
1686
|
-
if (
|
|
691
|
+
if (!$dara.isNull(request.taskStatus)) {
|
|
1687
692
|
query["TaskStatus"] = request.taskStatus;
|
|
1688
693
|
}
|
|
1689
|
-
|
|
694
|
+
if (!$dara.isNull(request.taskType)) {
|
|
695
|
+
query["TaskType"] = request.taskType;
|
|
696
|
+
}
|
|
697
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
1690
698
|
headers: headers,
|
|
1691
|
-
query:
|
|
699
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
1692
700
|
});
|
|
1693
|
-
let params = new
|
|
701
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
1694
702
|
action: "DescribeTasks",
|
|
1695
703
|
version: "2023-08-08",
|
|
1696
704
|
protocol: "HTTPS",
|
|
@@ -1701,34 +709,49 @@ class Client extends openapi_client_1.default {
|
|
|
1701
709
|
reqBodyType: "json",
|
|
1702
710
|
bodyType: "json",
|
|
1703
711
|
});
|
|
1704
|
-
return $
|
|
712
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeTasksResponse({}));
|
|
1705
713
|
}
|
|
1706
714
|
/**
|
|
715
|
+
* Retrieves asynchronous tasks.
|
|
716
|
+
*
|
|
1707
717
|
* @param request - DescribeTasksRequest
|
|
1708
718
|
* @returns DescribeTasksResponse
|
|
1709
719
|
*/
|
|
1710
720
|
async describeTasks(request) {
|
|
1711
|
-
let runtime = new $
|
|
721
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
1712
722
|
let headers = {};
|
|
1713
723
|
return await this.describeTasksWithOptions(request, headers, runtime);
|
|
1714
724
|
}
|
|
1715
725
|
/**
|
|
1716
|
-
*
|
|
726
|
+
* Lists the most threatened resources.
|
|
727
|
+
*
|
|
728
|
+
* @param tmpReq - DescribeTopRiskyResourcesRequest
|
|
1717
729
|
* @param headers - map
|
|
1718
730
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
1719
731
|
* @returns DescribeTopRiskyResourcesResponse
|
|
1720
732
|
*/
|
|
1721
|
-
async describeTopRiskyResourcesWithOptions(
|
|
1722
|
-
|
|
733
|
+
async describeTopRiskyResourcesWithOptions(tmpReq, headers, runtime) {
|
|
734
|
+
tmpReq.validate();
|
|
735
|
+
let request = new $_model.DescribeTopRiskyResourcesShrinkRequest({});
|
|
736
|
+
openapi_core_2.OpenApiUtil.convert(tmpReq, request);
|
|
737
|
+
if (!$dara.isNull(tmpReq.resourceOwnerIds)) {
|
|
738
|
+
request.resourceOwnerIdsShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.resourceOwnerIds, "ResourceOwnerIds", "json");
|
|
739
|
+
}
|
|
1723
740
|
let query = {};
|
|
1724
|
-
if (
|
|
741
|
+
if (!$dara.isNull(request.resourceCategoryId)) {
|
|
742
|
+
query["ResourceCategoryId"] = request.resourceCategoryId;
|
|
743
|
+
}
|
|
744
|
+
if (!$dara.isNull(request.resourceOwnerIdsShrink)) {
|
|
745
|
+
query["ResourceOwnerIds"] = request.resourceOwnerIdsShrink;
|
|
746
|
+
}
|
|
747
|
+
if (!$dara.isNull(request.resourceType)) {
|
|
1725
748
|
query["ResourceType"] = request.resourceType;
|
|
1726
749
|
}
|
|
1727
|
-
let req = new
|
|
750
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
1728
751
|
headers: headers,
|
|
1729
|
-
query:
|
|
752
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
1730
753
|
});
|
|
1731
|
-
let params = new
|
|
754
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
1732
755
|
action: "DescribeTopRiskyResources",
|
|
1733
756
|
version: "2023-08-08",
|
|
1734
757
|
protocol: "HTTPS",
|
|
@@ -1739,34 +762,38 @@ class Client extends openapi_client_1.default {
|
|
|
1739
762
|
reqBodyType: "json",
|
|
1740
763
|
bodyType: "json",
|
|
1741
764
|
});
|
|
1742
|
-
return $
|
|
765
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeTopRiskyResourcesResponse({}));
|
|
1743
766
|
}
|
|
1744
767
|
/**
|
|
768
|
+
* Lists the most threatened resources.
|
|
769
|
+
*
|
|
1745
770
|
* @param request - DescribeTopRiskyResourcesRequest
|
|
1746
771
|
* @returns DescribeTopRiskyResourcesResponse
|
|
1747
772
|
*/
|
|
1748
773
|
async describeTopRiskyResources(request) {
|
|
1749
|
-
let runtime = new $
|
|
774
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
1750
775
|
let headers = {};
|
|
1751
776
|
return await this.describeTopRiskyResourcesWithOptions(request, headers, runtime);
|
|
1752
777
|
}
|
|
1753
778
|
/**
|
|
779
|
+
* Disables the data protection score for a cloud product.
|
|
780
|
+
*
|
|
1754
781
|
* @param request - DisableCheckProductRequest
|
|
1755
782
|
* @param headers - map
|
|
1756
783
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
1757
784
|
* @returns DisableCheckProductResponse
|
|
1758
785
|
*/
|
|
1759
786
|
async disableCheckProductWithOptions(request, headers, runtime) {
|
|
1760
|
-
|
|
787
|
+
request.validate();
|
|
1761
788
|
let body = {};
|
|
1762
|
-
if (
|
|
789
|
+
if (!$dara.isNull(request.productType)) {
|
|
1763
790
|
body["ProductType"] = request.productType;
|
|
1764
791
|
}
|
|
1765
|
-
let req = new
|
|
792
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
1766
793
|
headers: headers,
|
|
1767
|
-
body:
|
|
794
|
+
body: openapi_core_2.OpenApiUtil.parseToMap(body),
|
|
1768
795
|
});
|
|
1769
|
-
let params = new
|
|
796
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
1770
797
|
action: "DisableCheckProduct",
|
|
1771
798
|
version: "2023-08-08",
|
|
1772
799
|
protocol: "HTTPS",
|
|
@@ -1777,34 +804,38 @@ class Client extends openapi_client_1.default {
|
|
|
1777
804
|
reqBodyType: "formData",
|
|
1778
805
|
bodyType: "json",
|
|
1779
806
|
});
|
|
1780
|
-
return $
|
|
807
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.DisableCheckProductResponse({}));
|
|
1781
808
|
}
|
|
1782
809
|
/**
|
|
810
|
+
* Disables the data protection score for a cloud product.
|
|
811
|
+
*
|
|
1783
812
|
* @param request - DisableCheckProductRequest
|
|
1784
813
|
* @returns DisableCheckProductResponse
|
|
1785
814
|
*/
|
|
1786
815
|
async disableCheckProduct(request) {
|
|
1787
|
-
let runtime = new $
|
|
816
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
1788
817
|
let headers = {};
|
|
1789
818
|
return await this.disableCheckProductWithOptions(request, headers, runtime);
|
|
1790
819
|
}
|
|
1791
820
|
/**
|
|
821
|
+
* Disables the data protection score for a resource.
|
|
822
|
+
*
|
|
1792
823
|
* @param request - DisableCheckResourceRequest
|
|
1793
824
|
* @param headers - map
|
|
1794
825
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
1795
826
|
* @returns DisableCheckResourceResponse
|
|
1796
827
|
*/
|
|
1797
828
|
async disableCheckResourceWithOptions(request, headers, runtime) {
|
|
1798
|
-
|
|
829
|
+
request.validate();
|
|
1799
830
|
let body = {};
|
|
1800
|
-
if (
|
|
831
|
+
if (!$dara.isNull(request.resourceArn)) {
|
|
1801
832
|
body["ResourceArn"] = request.resourceArn;
|
|
1802
833
|
}
|
|
1803
|
-
let req = new
|
|
834
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
1804
835
|
headers: headers,
|
|
1805
|
-
body:
|
|
836
|
+
body: openapi_core_2.OpenApiUtil.parseToMap(body),
|
|
1806
837
|
});
|
|
1807
|
-
let params = new
|
|
838
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
1808
839
|
action: "DisableCheckResource",
|
|
1809
840
|
version: "2023-08-08",
|
|
1810
841
|
protocol: "HTTPS",
|
|
@@ -1815,34 +846,38 @@ class Client extends openapi_client_1.default {
|
|
|
1815
846
|
reqBodyType: "formData",
|
|
1816
847
|
bodyType: "json",
|
|
1817
848
|
});
|
|
1818
|
-
return $
|
|
849
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.DisableCheckResourceResponse({}));
|
|
1819
850
|
}
|
|
1820
851
|
/**
|
|
852
|
+
* Disables the data protection score for a resource.
|
|
853
|
+
*
|
|
1821
854
|
* @param request - DisableCheckResourceRequest
|
|
1822
855
|
* @returns DisableCheckResourceResponse
|
|
1823
856
|
*/
|
|
1824
857
|
async disableCheckResource(request) {
|
|
1825
|
-
let runtime = new $
|
|
858
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
1826
859
|
let headers = {};
|
|
1827
860
|
return await this.disableCheckResourceWithOptions(request, headers, runtime);
|
|
1828
861
|
}
|
|
1829
862
|
/**
|
|
863
|
+
* Enables data protection scoring for a cloud product.
|
|
864
|
+
*
|
|
1830
865
|
* @param request - EnableCheckProductRequest
|
|
1831
866
|
* @param headers - map
|
|
1832
867
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
1833
868
|
* @returns EnableCheckProductResponse
|
|
1834
869
|
*/
|
|
1835
870
|
async enableCheckProductWithOptions(request, headers, runtime) {
|
|
1836
|
-
|
|
871
|
+
request.validate();
|
|
1837
872
|
let body = {};
|
|
1838
|
-
if (
|
|
873
|
+
if (!$dara.isNull(request.productType)) {
|
|
1839
874
|
body["ProductType"] = request.productType;
|
|
1840
875
|
}
|
|
1841
|
-
let req = new
|
|
876
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
1842
877
|
headers: headers,
|
|
1843
|
-
body:
|
|
878
|
+
body: openapi_core_2.OpenApiUtil.parseToMap(body),
|
|
1844
879
|
});
|
|
1845
|
-
let params = new
|
|
880
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
1846
881
|
action: "EnableCheckProduct",
|
|
1847
882
|
version: "2023-08-08",
|
|
1848
883
|
protocol: "HTTPS",
|
|
@@ -1853,34 +888,38 @@ class Client extends openapi_client_1.default {
|
|
|
1853
888
|
reqBodyType: "formData",
|
|
1854
889
|
bodyType: "json",
|
|
1855
890
|
});
|
|
1856
|
-
return $
|
|
891
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.EnableCheckProductResponse({}));
|
|
1857
892
|
}
|
|
1858
893
|
/**
|
|
894
|
+
* Enables data protection scoring for a cloud product.
|
|
895
|
+
*
|
|
1859
896
|
* @param request - EnableCheckProductRequest
|
|
1860
897
|
* @returns EnableCheckProductResponse
|
|
1861
898
|
*/
|
|
1862
899
|
async enableCheckProduct(request) {
|
|
1863
|
-
let runtime = new $
|
|
900
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
1864
901
|
let headers = {};
|
|
1865
902
|
return await this.enableCheckProductWithOptions(request, headers, runtime);
|
|
1866
903
|
}
|
|
1867
904
|
/**
|
|
905
|
+
* Enables data protection scoring for a single resource.
|
|
906
|
+
*
|
|
1868
907
|
* @param request - EnableCheckResourceRequest
|
|
1869
908
|
* @param headers - map
|
|
1870
909
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
1871
910
|
* @returns EnableCheckResourceResponse
|
|
1872
911
|
*/
|
|
1873
912
|
async enableCheckResourceWithOptions(request, headers, runtime) {
|
|
1874
|
-
|
|
913
|
+
request.validate();
|
|
1875
914
|
let body = {};
|
|
1876
|
-
if (
|
|
915
|
+
if (!$dara.isNull(request.resourceArn)) {
|
|
1877
916
|
body["ResourceArn"] = request.resourceArn;
|
|
1878
917
|
}
|
|
1879
|
-
let req = new
|
|
918
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
1880
919
|
headers: headers,
|
|
1881
|
-
body:
|
|
920
|
+
body: openapi_core_2.OpenApiUtil.parseToMap(body),
|
|
1882
921
|
});
|
|
1883
|
-
let params = new
|
|
922
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
1884
923
|
action: "EnableCheckResource",
|
|
1885
924
|
version: "2023-08-08",
|
|
1886
925
|
protocol: "HTTPS",
|
|
@@ -1891,27 +930,31 @@ class Client extends openapi_client_1.default {
|
|
|
1891
930
|
reqBodyType: "formData",
|
|
1892
931
|
bodyType: "json",
|
|
1893
932
|
});
|
|
1894
|
-
return $
|
|
933
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.EnableCheckResourceResponse({}));
|
|
1895
934
|
}
|
|
1896
935
|
/**
|
|
936
|
+
* Enables data protection scoring for a single resource.
|
|
937
|
+
*
|
|
1897
938
|
* @param request - EnableCheckResourceRequest
|
|
1898
939
|
* @returns EnableCheckResourceResponse
|
|
1899
940
|
*/
|
|
1900
941
|
async enableCheckResource(request) {
|
|
1901
|
-
let runtime = new $
|
|
942
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
1902
943
|
let headers = {};
|
|
1903
944
|
return await this.enableCheckResourceWithOptions(request, headers, runtime);
|
|
1904
945
|
}
|
|
1905
946
|
/**
|
|
947
|
+
* Queries the status of the Backup and Disaster Recovery Center.
|
|
948
|
+
*
|
|
1906
949
|
* @param headers - map
|
|
1907
950
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
1908
951
|
* @returns GetBdrcServiceResponse
|
|
1909
952
|
*/
|
|
1910
953
|
async getBdrcServiceWithOptions(headers, runtime) {
|
|
1911
|
-
let req = new
|
|
954
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
1912
955
|
headers: headers,
|
|
1913
956
|
});
|
|
1914
|
-
let params = new
|
|
957
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
1915
958
|
action: "GetBdrcService",
|
|
1916
959
|
version: "2023-08-08",
|
|
1917
960
|
protocol: "HTTPS",
|
|
@@ -1922,26 +965,358 @@ class Client extends openapi_client_1.default {
|
|
|
1922
965
|
reqBodyType: "json",
|
|
1923
966
|
bodyType: "json",
|
|
1924
967
|
});
|
|
1925
|
-
return $
|
|
968
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetBdrcServiceResponse({}));
|
|
1926
969
|
}
|
|
1927
970
|
/**
|
|
971
|
+
* Queries the status of the Backup and Disaster Recovery Center.
|
|
1928
972
|
* @returns GetBdrcServiceResponse
|
|
1929
973
|
*/
|
|
1930
974
|
async getBdrcService() {
|
|
1931
|
-
let runtime = new $
|
|
975
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
1932
976
|
let headers = {};
|
|
1933
977
|
return await this.getBdrcServiceWithOptions(headers, runtime);
|
|
1934
978
|
}
|
|
1935
979
|
/**
|
|
980
|
+
* Retrieves a single message.
|
|
981
|
+
*
|
|
982
|
+
* @param request - GetMessageRequest
|
|
983
|
+
* @param headers - map
|
|
984
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
985
|
+
* @returns GetMessageResponse
|
|
986
|
+
*/
|
|
987
|
+
async getMessageWithOptions(MessageId, request, headers, runtime) {
|
|
988
|
+
request.validate();
|
|
989
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
990
|
+
headers: headers,
|
|
991
|
+
});
|
|
992
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
993
|
+
action: "GetMessage",
|
|
994
|
+
version: "2023-08-08",
|
|
995
|
+
protocol: "HTTPS",
|
|
996
|
+
pathname: `/api/v1/messages/${$dara.URL.percentEncode(MessageId)}`,
|
|
997
|
+
method: "GET",
|
|
998
|
+
authType: "AK",
|
|
999
|
+
style: "ROA",
|
|
1000
|
+
reqBodyType: "json",
|
|
1001
|
+
bodyType: "json",
|
|
1002
|
+
});
|
|
1003
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetMessageResponse({}));
|
|
1004
|
+
}
|
|
1005
|
+
/**
|
|
1006
|
+
* Retrieves a single message.
|
|
1007
|
+
*
|
|
1008
|
+
* @param request - GetMessageRequest
|
|
1009
|
+
* @returns GetMessageResponse
|
|
1010
|
+
*/
|
|
1011
|
+
async getMessage(MessageId, request) {
|
|
1012
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
1013
|
+
let headers = {};
|
|
1014
|
+
return await this.getMessageWithOptions(MessageId, request, headers, runtime);
|
|
1015
|
+
}
|
|
1016
|
+
/**
|
|
1017
|
+
* Retrieves a protection policy.
|
|
1018
|
+
*
|
|
1019
|
+
* @param request - GetProtectionPolicyRequest
|
|
1020
|
+
* @param headers - map
|
|
1021
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1022
|
+
* @returns GetProtectionPolicyResponse
|
|
1023
|
+
*/
|
|
1024
|
+
async getProtectionPolicyWithOptions(ProtectionPolicyId, request, headers, runtime) {
|
|
1025
|
+
request.validate();
|
|
1026
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
1027
|
+
headers: headers,
|
|
1028
|
+
});
|
|
1029
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
1030
|
+
action: "GetProtectionPolicy",
|
|
1031
|
+
version: "2023-08-08",
|
|
1032
|
+
protocol: "HTTPS",
|
|
1033
|
+
pathname: `/api/v1/protection-policies/${$dara.URL.percentEncode(ProtectionPolicyId)}`,
|
|
1034
|
+
method: "GET",
|
|
1035
|
+
authType: "AK",
|
|
1036
|
+
style: "ROA",
|
|
1037
|
+
reqBodyType: "json",
|
|
1038
|
+
bodyType: "json",
|
|
1039
|
+
});
|
|
1040
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetProtectionPolicyResponse({}));
|
|
1041
|
+
}
|
|
1042
|
+
/**
|
|
1043
|
+
* Retrieves a protection policy.
|
|
1044
|
+
*
|
|
1045
|
+
* @param request - GetProtectionPolicyRequest
|
|
1046
|
+
* @returns GetProtectionPolicyResponse
|
|
1047
|
+
*/
|
|
1048
|
+
async getProtectionPolicy(ProtectionPolicyId, request) {
|
|
1049
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
1050
|
+
let headers = {};
|
|
1051
|
+
return await this.getProtectionPolicyWithOptions(ProtectionPolicyId, request, headers, runtime);
|
|
1052
|
+
}
|
|
1053
|
+
/**
|
|
1054
|
+
* Retrieves a single resource category.
|
|
1055
|
+
*
|
|
1056
|
+
* @param request - GetResourceCategoryRequest
|
|
1057
|
+
* @param headers - map
|
|
1058
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1059
|
+
* @returns GetResourceCategoryResponse
|
|
1060
|
+
*/
|
|
1061
|
+
async getResourceCategoryWithOptions(request, headers, runtime) {
|
|
1062
|
+
request.validate();
|
|
1063
|
+
let query = {};
|
|
1064
|
+
if (!$dara.isNull(request.resourceCategoryId)) {
|
|
1065
|
+
query["ResourceCategoryId"] = request.resourceCategoryId;
|
|
1066
|
+
}
|
|
1067
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
1068
|
+
headers: headers,
|
|
1069
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
1070
|
+
});
|
|
1071
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
1072
|
+
action: "GetResourceCategory",
|
|
1073
|
+
version: "2023-08-08",
|
|
1074
|
+
protocol: "HTTPS",
|
|
1075
|
+
pathname: `/api/v1/resource-categories/get`,
|
|
1076
|
+
method: "GET",
|
|
1077
|
+
authType: "AK",
|
|
1078
|
+
style: "ROA",
|
|
1079
|
+
reqBodyType: "json",
|
|
1080
|
+
bodyType: "json",
|
|
1081
|
+
});
|
|
1082
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetResourceCategoryResponse({}));
|
|
1083
|
+
}
|
|
1084
|
+
/**
|
|
1085
|
+
* Retrieves a single resource category.
|
|
1086
|
+
*
|
|
1087
|
+
* @param request - GetResourceCategoryRequest
|
|
1088
|
+
* @returns GetResourceCategoryResponse
|
|
1089
|
+
*/
|
|
1090
|
+
async getResourceCategory(request) {
|
|
1091
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
1092
|
+
let headers = {};
|
|
1093
|
+
return await this.getResourceCategoryWithOptions(request, headers, runtime);
|
|
1094
|
+
}
|
|
1095
|
+
/**
|
|
1096
|
+
* Queries messages in batches.
|
|
1097
|
+
*
|
|
1098
|
+
* @param request - ListMessagesRequest
|
|
1099
|
+
* @param headers - map
|
|
1100
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1101
|
+
* @returns ListMessagesResponse
|
|
1102
|
+
*/
|
|
1103
|
+
async listMessagesWithOptions(request, headers, runtime) {
|
|
1104
|
+
request.validate();
|
|
1105
|
+
let query = {};
|
|
1106
|
+
if (!$dara.isNull(request.maxResults)) {
|
|
1107
|
+
query["MaxResults"] = request.maxResults;
|
|
1108
|
+
}
|
|
1109
|
+
if (!$dara.isNull(request.messageLevel)) {
|
|
1110
|
+
query["MessageLevel"] = request.messageLevel;
|
|
1111
|
+
}
|
|
1112
|
+
if (!$dara.isNull(request.messageTimeEarlierThan)) {
|
|
1113
|
+
query["MessageTimeEarlierThan"] = request.messageTimeEarlierThan;
|
|
1114
|
+
}
|
|
1115
|
+
if (!$dara.isNull(request.messageTimeLaterThan)) {
|
|
1116
|
+
query["MessageTimeLaterThan"] = request.messageTimeLaterThan;
|
|
1117
|
+
}
|
|
1118
|
+
if (!$dara.isNull(request.messageType)) {
|
|
1119
|
+
query["MessageType"] = request.messageType;
|
|
1120
|
+
}
|
|
1121
|
+
if (!$dara.isNull(request.nextToken)) {
|
|
1122
|
+
query["NextToken"] = request.nextToken;
|
|
1123
|
+
}
|
|
1124
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
1125
|
+
headers: headers,
|
|
1126
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
1127
|
+
});
|
|
1128
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
1129
|
+
action: "ListMessages",
|
|
1130
|
+
version: "2023-08-08",
|
|
1131
|
+
protocol: "HTTPS",
|
|
1132
|
+
pathname: `/api/v1/messages`,
|
|
1133
|
+
method: "GET",
|
|
1134
|
+
authType: "AK",
|
|
1135
|
+
style: "ROA",
|
|
1136
|
+
reqBodyType: "json",
|
|
1137
|
+
bodyType: "json",
|
|
1138
|
+
});
|
|
1139
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListMessagesResponse({}));
|
|
1140
|
+
}
|
|
1141
|
+
/**
|
|
1142
|
+
* Queries messages in batches.
|
|
1143
|
+
*
|
|
1144
|
+
* @param request - ListMessagesRequest
|
|
1145
|
+
* @returns ListMessagesResponse
|
|
1146
|
+
*/
|
|
1147
|
+
async listMessages(request) {
|
|
1148
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
1149
|
+
let headers = {};
|
|
1150
|
+
return await this.listMessagesWithOptions(request, headers, runtime);
|
|
1151
|
+
}
|
|
1152
|
+
/**
|
|
1153
|
+
* Retrieves a list of protection policies.
|
|
1154
|
+
*
|
|
1155
|
+
* @param request - ListProtectionPoliciesRequest
|
|
1156
|
+
* @param headers - map
|
|
1157
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1158
|
+
* @returns ListProtectionPoliciesResponse
|
|
1159
|
+
*/
|
|
1160
|
+
async listProtectionPoliciesWithOptions(request, headers, runtime) {
|
|
1161
|
+
request.validate();
|
|
1162
|
+
let query = {};
|
|
1163
|
+
if (!$dara.isNull(request.maxResults)) {
|
|
1164
|
+
query["MaxResults"] = request.maxResults;
|
|
1165
|
+
}
|
|
1166
|
+
if (!$dara.isNull(request.nextToken)) {
|
|
1167
|
+
query["NextToken"] = request.nextToken;
|
|
1168
|
+
}
|
|
1169
|
+
if (!$dara.isNull(request.protectionPolicyId)) {
|
|
1170
|
+
query["ProtectionPolicyId"] = request.protectionPolicyId;
|
|
1171
|
+
}
|
|
1172
|
+
if (!$dara.isNull(request.protectionPolicyRegionId)) {
|
|
1173
|
+
query["ProtectionPolicyRegionId"] = request.protectionPolicyRegionId;
|
|
1174
|
+
}
|
|
1175
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
1176
|
+
headers: headers,
|
|
1177
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
1178
|
+
});
|
|
1179
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
1180
|
+
action: "ListProtectionPolicies",
|
|
1181
|
+
version: "2023-08-08",
|
|
1182
|
+
protocol: "HTTPS",
|
|
1183
|
+
pathname: `/api/v1/protection-policies`,
|
|
1184
|
+
method: "GET",
|
|
1185
|
+
authType: "AK",
|
|
1186
|
+
style: "ROA",
|
|
1187
|
+
reqBodyType: "json",
|
|
1188
|
+
bodyType: "json",
|
|
1189
|
+
});
|
|
1190
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListProtectionPoliciesResponse({}));
|
|
1191
|
+
}
|
|
1192
|
+
/**
|
|
1193
|
+
* Retrieves a list of protection policies.
|
|
1194
|
+
*
|
|
1195
|
+
* @param request - ListProtectionPoliciesRequest
|
|
1196
|
+
* @returns ListProtectionPoliciesResponse
|
|
1197
|
+
*/
|
|
1198
|
+
async listProtectionPolicies(request) {
|
|
1199
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
1200
|
+
let headers = {};
|
|
1201
|
+
return await this.listProtectionPoliciesWithOptions(request, headers, runtime);
|
|
1202
|
+
}
|
|
1203
|
+
/**
|
|
1204
|
+
* Retrieves the application history of the protection policy.
|
|
1205
|
+
*
|
|
1206
|
+
* @param request - ListProtectionPolicyApplicationsRequest
|
|
1207
|
+
* @param headers - map
|
|
1208
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1209
|
+
* @returns ListProtectionPolicyApplicationsResponse
|
|
1210
|
+
*/
|
|
1211
|
+
async listProtectionPolicyApplicationsWithOptions(ProtectionPolicyId, request, headers, runtime) {
|
|
1212
|
+
request.validate();
|
|
1213
|
+
let query = {};
|
|
1214
|
+
if (!$dara.isNull(request.applyStatus)) {
|
|
1215
|
+
query["ApplyStatus"] = request.applyStatus;
|
|
1216
|
+
}
|
|
1217
|
+
if (!$dara.isNull(request.maxResults)) {
|
|
1218
|
+
query["MaxResults"] = request.maxResults;
|
|
1219
|
+
}
|
|
1220
|
+
if (!$dara.isNull(request.nextToken)) {
|
|
1221
|
+
query["NextToken"] = request.nextToken;
|
|
1222
|
+
}
|
|
1223
|
+
if (!$dara.isNull(request.resourceType)) {
|
|
1224
|
+
query["ResourceType"] = request.resourceType;
|
|
1225
|
+
}
|
|
1226
|
+
if (!$dara.isNull(request.subProtectionPolicyType)) {
|
|
1227
|
+
query["SubProtectionPolicyType"] = request.subProtectionPolicyType;
|
|
1228
|
+
}
|
|
1229
|
+
if (!$dara.isNull(request.taskId)) {
|
|
1230
|
+
query["TaskId"] = request.taskId;
|
|
1231
|
+
}
|
|
1232
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
1233
|
+
headers: headers,
|
|
1234
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
1235
|
+
});
|
|
1236
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
1237
|
+
action: "ListProtectionPolicyApplications",
|
|
1238
|
+
version: "2023-08-08",
|
|
1239
|
+
protocol: "HTTPS",
|
|
1240
|
+
pathname: `/api/v1/protection-policies/${$dara.URL.percentEncode(ProtectionPolicyId)}/list-applications`,
|
|
1241
|
+
method: "GET",
|
|
1242
|
+
authType: "AK",
|
|
1243
|
+
style: "ROA",
|
|
1244
|
+
reqBodyType: "json",
|
|
1245
|
+
bodyType: "json",
|
|
1246
|
+
});
|
|
1247
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListProtectionPolicyApplicationsResponse({}));
|
|
1248
|
+
}
|
|
1249
|
+
/**
|
|
1250
|
+
* Retrieves the application history of the protection policy.
|
|
1251
|
+
*
|
|
1252
|
+
* @param request - ListProtectionPolicyApplicationsRequest
|
|
1253
|
+
* @returns ListProtectionPolicyApplicationsResponse
|
|
1254
|
+
*/
|
|
1255
|
+
async listProtectionPolicyApplications(ProtectionPolicyId, request) {
|
|
1256
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
1257
|
+
let headers = {};
|
|
1258
|
+
return await this.listProtectionPolicyApplicationsWithOptions(ProtectionPolicyId, request, headers, runtime);
|
|
1259
|
+
}
|
|
1260
|
+
/**
|
|
1261
|
+
* Retrieves a list of resource categories.
|
|
1262
|
+
*
|
|
1263
|
+
* @param request - ListResourceCategoriesRequest
|
|
1264
|
+
* @param headers - map
|
|
1265
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1266
|
+
* @returns ListResourceCategoriesResponse
|
|
1267
|
+
*/
|
|
1268
|
+
async listResourceCategoriesWithOptions(request, headers, runtime) {
|
|
1269
|
+
request.validate();
|
|
1270
|
+
let query = {};
|
|
1271
|
+
if (!$dara.isNull(request.maxResults)) {
|
|
1272
|
+
query["MaxResults"] = request.maxResults;
|
|
1273
|
+
}
|
|
1274
|
+
if (!$dara.isNull(request.nextToken)) {
|
|
1275
|
+
query["NextToken"] = request.nextToken;
|
|
1276
|
+
}
|
|
1277
|
+
if (!$dara.isNull(request.resourceCategoryId)) {
|
|
1278
|
+
query["ResourceCategoryId"] = request.resourceCategoryId;
|
|
1279
|
+
}
|
|
1280
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
1281
|
+
headers: headers,
|
|
1282
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
1283
|
+
});
|
|
1284
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
1285
|
+
action: "ListResourceCategories",
|
|
1286
|
+
version: "2023-08-08",
|
|
1287
|
+
protocol: "HTTPS",
|
|
1288
|
+
pathname: `/api/v1/resource-categories/list`,
|
|
1289
|
+
method: "GET",
|
|
1290
|
+
authType: "AK",
|
|
1291
|
+
style: "ROA",
|
|
1292
|
+
reqBodyType: "json",
|
|
1293
|
+
bodyType: "json",
|
|
1294
|
+
});
|
|
1295
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListResourceCategoriesResponse({}));
|
|
1296
|
+
}
|
|
1297
|
+
/**
|
|
1298
|
+
* Retrieves a list of resource categories.
|
|
1299
|
+
*
|
|
1300
|
+
* @param request - ListResourceCategoriesRequest
|
|
1301
|
+
* @returns ListResourceCategoriesResponse
|
|
1302
|
+
*/
|
|
1303
|
+
async listResourceCategories(request) {
|
|
1304
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
1305
|
+
let headers = {};
|
|
1306
|
+
return await this.listResourceCategoriesWithOptions(request, headers, runtime);
|
|
1307
|
+
}
|
|
1308
|
+
/**
|
|
1309
|
+
* Enables the Backup and Disaster Recovery Center.
|
|
1310
|
+
*
|
|
1936
1311
|
* @param headers - map
|
|
1937
1312
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
1938
1313
|
* @returns OpenBdrcServiceResponse
|
|
1939
1314
|
*/
|
|
1940
1315
|
async openBdrcServiceWithOptions(headers, runtime) {
|
|
1941
|
-
let req = new
|
|
1316
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
1942
1317
|
headers: headers,
|
|
1943
1318
|
});
|
|
1944
|
-
let params = new
|
|
1319
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
1945
1320
|
action: "OpenBdrcService",
|
|
1946
1321
|
version: "2023-08-08",
|
|
1947
1322
|
protocol: "HTTPS",
|
|
@@ -1952,33 +1327,143 @@ class Client extends openapi_client_1.default {
|
|
|
1952
1327
|
reqBodyType: "json",
|
|
1953
1328
|
bodyType: "json",
|
|
1954
1329
|
});
|
|
1955
|
-
return $
|
|
1330
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.OpenBdrcServiceResponse({}));
|
|
1956
1331
|
}
|
|
1957
1332
|
/**
|
|
1333
|
+
* Enables the Backup and Disaster Recovery Center.
|
|
1958
1334
|
* @returns OpenBdrcServiceResponse
|
|
1959
1335
|
*/
|
|
1960
1336
|
async openBdrcService() {
|
|
1961
|
-
let runtime = new $
|
|
1337
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
1962
1338
|
let headers = {};
|
|
1963
1339
|
return await this.openBdrcServiceWithOptions(headers, runtime);
|
|
1964
1340
|
}
|
|
1965
1341
|
/**
|
|
1342
|
+
* Updates a protection policy.
|
|
1343
|
+
*
|
|
1344
|
+
* @param tmpReq - UpdateProtectionPolicyRequest
|
|
1345
|
+
* @param headers - map
|
|
1346
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1347
|
+
* @returns UpdateProtectionPolicyResponse
|
|
1348
|
+
*/
|
|
1349
|
+
async updateProtectionPolicyWithOptions(ProtectionPolicyId, tmpReq, headers, runtime) {
|
|
1350
|
+
tmpReq.validate();
|
|
1351
|
+
let request = new $_model.UpdateProtectionPolicyShrinkRequest({});
|
|
1352
|
+
openapi_core_2.OpenApiUtil.convert(tmpReq, request);
|
|
1353
|
+
if (!$dara.isNull(tmpReq.boundResourceCategoryIds)) {
|
|
1354
|
+
request.boundResourceCategoryIdsShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.boundResourceCategoryIds, "BoundResourceCategoryIds", "json");
|
|
1355
|
+
}
|
|
1356
|
+
if (!$dara.isNull(tmpReq.subProtectionPolicies)) {
|
|
1357
|
+
request.subProtectionPoliciesShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.subProtectionPolicies, "SubProtectionPolicies", "json");
|
|
1358
|
+
}
|
|
1359
|
+
let body = {};
|
|
1360
|
+
if (!$dara.isNull(request.boundResourceCategoryIdsShrink)) {
|
|
1361
|
+
body["BoundResourceCategoryIds"] = request.boundResourceCategoryIdsShrink;
|
|
1362
|
+
}
|
|
1363
|
+
if (!$dara.isNull(request.clientToken)) {
|
|
1364
|
+
body["ClientToken"] = request.clientToken;
|
|
1365
|
+
}
|
|
1366
|
+
if (!$dara.isNull(request.protectionPolicyName)) {
|
|
1367
|
+
body["ProtectionPolicyName"] = request.protectionPolicyName;
|
|
1368
|
+
}
|
|
1369
|
+
if (!$dara.isNull(request.subProtectionPoliciesShrink)) {
|
|
1370
|
+
body["SubProtectionPolicies"] = request.subProtectionPoliciesShrink;
|
|
1371
|
+
}
|
|
1372
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
1373
|
+
headers: headers,
|
|
1374
|
+
body: openapi_core_2.OpenApiUtil.parseToMap(body),
|
|
1375
|
+
});
|
|
1376
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
1377
|
+
action: "UpdateProtectionPolicy",
|
|
1378
|
+
version: "2023-08-08",
|
|
1379
|
+
protocol: "HTTPS",
|
|
1380
|
+
pathname: `/api/v1/protection-policies/${$dara.URL.percentEncode(ProtectionPolicyId)}`,
|
|
1381
|
+
method: "PATCH",
|
|
1382
|
+
authType: "AK",
|
|
1383
|
+
style: "ROA",
|
|
1384
|
+
reqBodyType: "formData",
|
|
1385
|
+
bodyType: "json",
|
|
1386
|
+
});
|
|
1387
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.UpdateProtectionPolicyResponse({}));
|
|
1388
|
+
}
|
|
1389
|
+
/**
|
|
1390
|
+
* Updates a protection policy.
|
|
1391
|
+
*
|
|
1392
|
+
* @param request - UpdateProtectionPolicyRequest
|
|
1393
|
+
* @returns UpdateProtectionPolicyResponse
|
|
1394
|
+
*/
|
|
1395
|
+
async updateProtectionPolicy(ProtectionPolicyId, request) {
|
|
1396
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
1397
|
+
let headers = {};
|
|
1398
|
+
return await this.updateProtectionPolicyWithOptions(ProtectionPolicyId, request, headers, runtime);
|
|
1399
|
+
}
|
|
1400
|
+
/**
|
|
1401
|
+
* Updates a resource category.
|
|
1402
|
+
*
|
|
1403
|
+
* @param request - UpdateResourceCategoryRequest
|
|
1404
|
+
* @param headers - map
|
|
1405
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1406
|
+
* @returns UpdateResourceCategoryResponse
|
|
1407
|
+
*/
|
|
1408
|
+
async updateResourceCategoryWithOptions(request, headers, runtime) {
|
|
1409
|
+
request.validate();
|
|
1410
|
+
let body = {};
|
|
1411
|
+
if (!$dara.isNull(request.resourceCategoryId)) {
|
|
1412
|
+
body["ResourceCategoryId"] = request.resourceCategoryId;
|
|
1413
|
+
}
|
|
1414
|
+
if (!$dara.isNull(request.resourceCategoryName)) {
|
|
1415
|
+
body["ResourceCategoryName"] = request.resourceCategoryName;
|
|
1416
|
+
}
|
|
1417
|
+
if (!$dara.isNull(request.resourceMatcher)) {
|
|
1418
|
+
body["ResourceMatcher"] = request.resourceMatcher;
|
|
1419
|
+
}
|
|
1420
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
1421
|
+
headers: headers,
|
|
1422
|
+
body: openapi_core_2.OpenApiUtil.parseToMap(body),
|
|
1423
|
+
});
|
|
1424
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
1425
|
+
action: "UpdateResourceCategory",
|
|
1426
|
+
version: "2023-08-08",
|
|
1427
|
+
protocol: "HTTPS",
|
|
1428
|
+
pathname: `/api/v1/resource-categories/update`,
|
|
1429
|
+
method: "POST",
|
|
1430
|
+
authType: "AK",
|
|
1431
|
+
style: "ROA",
|
|
1432
|
+
reqBodyType: "formData",
|
|
1433
|
+
bodyType: "json",
|
|
1434
|
+
});
|
|
1435
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.UpdateResourceCategoryResponse({}));
|
|
1436
|
+
}
|
|
1437
|
+
/**
|
|
1438
|
+
* Updates a resource category.
|
|
1439
|
+
*
|
|
1440
|
+
* @param request - UpdateResourceCategoryRequest
|
|
1441
|
+
* @returns UpdateResourceCategoryResponse
|
|
1442
|
+
*/
|
|
1443
|
+
async updateResourceCategory(request) {
|
|
1444
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
1445
|
+
let headers = {};
|
|
1446
|
+
return await this.updateResourceCategoryWithOptions(request, headers, runtime);
|
|
1447
|
+
}
|
|
1448
|
+
/**
|
|
1449
|
+
* Updates the resource list. When you call this operation, an asynchronous task is triggered to update your resource list and data protection score.
|
|
1450
|
+
*
|
|
1966
1451
|
* @param request - UpdateResourcesRequest
|
|
1967
1452
|
* @param headers - map
|
|
1968
1453
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
1969
1454
|
* @returns UpdateResourcesResponse
|
|
1970
1455
|
*/
|
|
1971
1456
|
async updateResourcesWithOptions(request, headers, runtime) {
|
|
1972
|
-
|
|
1457
|
+
request.validate();
|
|
1973
1458
|
let body = {};
|
|
1974
|
-
if (
|
|
1459
|
+
if (!$dara.isNull(request.resourceType)) {
|
|
1975
1460
|
body["ResourceType"] = request.resourceType;
|
|
1976
1461
|
}
|
|
1977
|
-
let req = new
|
|
1462
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
1978
1463
|
headers: headers,
|
|
1979
|
-
body:
|
|
1464
|
+
body: openapi_core_2.OpenApiUtil.parseToMap(body),
|
|
1980
1465
|
});
|
|
1981
|
-
let params = new
|
|
1466
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
1982
1467
|
action: "UpdateResources",
|
|
1983
1468
|
version: "2023-08-08",
|
|
1984
1469
|
protocol: "HTTPS",
|
|
@@ -1989,14 +1474,16 @@ class Client extends openapi_client_1.default {
|
|
|
1989
1474
|
reqBodyType: "formData",
|
|
1990
1475
|
bodyType: "json",
|
|
1991
1476
|
});
|
|
1992
|
-
return $
|
|
1477
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.UpdateResourcesResponse({}));
|
|
1993
1478
|
}
|
|
1994
1479
|
/**
|
|
1480
|
+
* Updates the resource list. When you call this operation, an asynchronous task is triggered to update your resource list and data protection score.
|
|
1481
|
+
*
|
|
1995
1482
|
* @param request - UpdateResourcesRequest
|
|
1996
1483
|
* @returns UpdateResourcesResponse
|
|
1997
1484
|
*/
|
|
1998
1485
|
async updateResources(request) {
|
|
1999
|
-
let runtime = new $
|
|
1486
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
2000
1487
|
let headers = {};
|
|
2001
1488
|
return await this.updateResourcesWithOptions(request, headers, runtime);
|
|
2002
1489
|
}
|