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