@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/src/client.ts
CHANGED
|
@@ -1,3040 +1,1584 @@
|
|
|
1
1
|
// This file is auto-generated, don't edit it
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import
|
|
5
|
-
import OpenApi, * as $OpenApi from '@alicloud/openapi-client';
|
|
6
|
-
import OpenApiUtil from '@alicloud/openapi-util';
|
|
7
|
-
import EndpointUtil from '@alicloud/endpoint-util';
|
|
8
|
-
import * as $tea from '@alicloud/tea-typescript';
|
|
9
|
-
|
|
10
|
-
export class CheckRulesRequest extends $tea.Model {
|
|
11
|
-
/**
|
|
12
|
-
* @remarks
|
|
13
|
-
* This parameter is required.
|
|
14
|
-
*
|
|
15
|
-
* @example
|
|
16
|
-
* acs:ecs:123***890:cn-shanghai:instance/i-001***90
|
|
17
|
-
*/
|
|
18
|
-
resourceArn?: string;
|
|
19
|
-
/**
|
|
20
|
-
* @example
|
|
21
|
-
* rule-000***dav
|
|
22
|
-
*/
|
|
23
|
-
ruleId?: string;
|
|
24
|
-
static names(): { [key: string]: string } {
|
|
25
|
-
return {
|
|
26
|
-
resourceArn: 'ResourceArn',
|
|
27
|
-
ruleId: 'RuleId',
|
|
28
|
-
};
|
|
29
|
-
}
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import OpenApi from '@alicloud/openapi-core';
|
|
4
|
+
import { OpenApiUtil, $OpenApiUtil }from '@alicloud/openapi-core';
|
|
30
5
|
|
|
31
|
-
static types(): { [key: string]: any } {
|
|
32
|
-
return {
|
|
33
|
-
resourceArn: 'string',
|
|
34
|
-
ruleId: 'string',
|
|
35
|
-
};
|
|
36
|
-
}
|
|
37
6
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
}
|
|
41
|
-
}
|
|
7
|
+
import * as $_model from './models/model';
|
|
8
|
+
export * from './models/model';
|
|
42
9
|
|
|
43
|
-
export class
|
|
44
|
-
data?: CheckRulesResponseBodyData;
|
|
45
|
-
/**
|
|
46
|
-
* @example
|
|
47
|
-
* 700683DE-0154-56D4-8D76-3B7A2C2C7DF9
|
|
48
|
-
*/
|
|
49
|
-
requestId?: string;
|
|
50
|
-
static names(): { [key: string]: string } {
|
|
51
|
-
return {
|
|
52
|
-
data: 'Data',
|
|
53
|
-
requestId: 'RequestId',
|
|
54
|
-
};
|
|
55
|
-
}
|
|
10
|
+
export default class Client extends OpenApi {
|
|
56
11
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
12
|
+
constructor(config: $OpenApiUtil.Config) {
|
|
13
|
+
super(config);
|
|
14
|
+
this._endpointRule = "regional";
|
|
15
|
+
this._endpointMap = {
|
|
16
|
+
'cn-shanghai-finance-1': "bdrc.cn-shanghai-finance-1.aliyuncs.com",
|
|
17
|
+
'cn-shanghai': "bdrc.cn-shanghai.aliyuncs.com",
|
|
18
|
+
'ap-southeast-1': "bdrc.ap-southeast-1.aliyuncs.com",
|
|
61
19
|
};
|
|
20
|
+
this.checkConfig(config);
|
|
21
|
+
this._endpoint = this.getEndpoint("bdrc", this._regionId, this._endpointRule, this._network, this._suffix, this._endpointMap, this._endpoint);
|
|
62
22
|
}
|
|
63
23
|
|
|
64
|
-
constructor(map?: { [key: string]: any }) {
|
|
65
|
-
super(map);
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
24
|
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
static names(): { [key: string]: string } {
|
|
74
|
-
return {
|
|
75
|
-
headers: 'headers',
|
|
76
|
-
statusCode: 'statusCode',
|
|
77
|
-
body: 'body',
|
|
78
|
-
};
|
|
79
|
-
}
|
|
25
|
+
getEndpoint(productId: string, regionId: string, endpointRule: string, network: string, suffix: string, endpointMap: {[key: string ]: string}, endpoint: string): string {
|
|
26
|
+
if (!$dara.isNull(endpoint)) {
|
|
27
|
+
return endpoint;
|
|
28
|
+
}
|
|
80
29
|
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
statusCode: 'number',
|
|
85
|
-
body: CheckRulesResponseBody,
|
|
86
|
-
};
|
|
87
|
-
}
|
|
30
|
+
if (!$dara.isNull(endpointMap) && !$dara.isNull(endpointMap[regionId])) {
|
|
31
|
+
return endpointMap[regionId];
|
|
32
|
+
}
|
|
88
33
|
|
|
89
|
-
|
|
90
|
-
super(map);
|
|
34
|
+
return OpenApiUtil.getEndpointRules(productId, regionId, endpointRule, network, suffix);
|
|
91
35
|
}
|
|
92
|
-
}
|
|
93
36
|
|
|
94
|
-
export class CloseBdrcServiceResponseBody extends $tea.Model {
|
|
95
37
|
/**
|
|
96
|
-
*
|
|
97
|
-
*
|
|
38
|
+
* Checks data protection scoring rules. Calling this operation triggers an asynchronous task to check whether your resources meet the data protection scoring requirements.
|
|
39
|
+
*
|
|
40
|
+
* @param request - CheckRulesRequest
|
|
41
|
+
* @param headers - map
|
|
42
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
43
|
+
* @returns CheckRulesResponse
|
|
98
44
|
*/
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
static types(): { [key: string]: any } {
|
|
107
|
-
return {
|
|
108
|
-
requestId: 'string',
|
|
109
|
-
};
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
constructor(map?: { [key: string]: any }) {
|
|
113
|
-
super(map);
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
export class CloseBdrcServiceResponse extends $tea.Model {
|
|
118
|
-
headers?: { [key: string]: string };
|
|
119
|
-
statusCode?: number;
|
|
120
|
-
body?: CloseBdrcServiceResponseBody;
|
|
121
|
-
static names(): { [key: string]: string } {
|
|
122
|
-
return {
|
|
123
|
-
headers: 'headers',
|
|
124
|
-
statusCode: 'statusCode',
|
|
125
|
-
body: 'body',
|
|
126
|
-
};
|
|
127
|
-
}
|
|
45
|
+
async checkRulesWithOptions(request: $_model.CheckRulesRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.CheckRulesResponse> {
|
|
46
|
+
request.validate();
|
|
47
|
+
let body : {[key: string ]: any} = { };
|
|
48
|
+
if (!$dara.isNull(request.resourceArn)) {
|
|
49
|
+
body["ResourceArn"] = request.resourceArn;
|
|
50
|
+
}
|
|
128
51
|
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
statusCode: 'number',
|
|
133
|
-
body: CloseBdrcServiceResponseBody,
|
|
134
|
-
};
|
|
135
|
-
}
|
|
52
|
+
if (!$dara.isNull(request.ruleId)) {
|
|
53
|
+
body["RuleId"] = request.ruleId;
|
|
54
|
+
}
|
|
136
55
|
|
|
137
|
-
|
|
138
|
-
|
|
56
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
57
|
+
headers: headers,
|
|
58
|
+
body: OpenApiUtil.parseToMap(body),
|
|
59
|
+
});
|
|
60
|
+
let params = new $OpenApiUtil.Params({
|
|
61
|
+
action: "CheckRules",
|
|
62
|
+
version: "2023-08-08",
|
|
63
|
+
protocol: "HTTPS",
|
|
64
|
+
pathname: `/api/v1/rules/check`,
|
|
65
|
+
method: "POST",
|
|
66
|
+
authType: "AK",
|
|
67
|
+
style: "ROA",
|
|
68
|
+
reqBodyType: "formData",
|
|
69
|
+
bodyType: "json",
|
|
70
|
+
});
|
|
71
|
+
return $dara.cast<$_model.CheckRulesResponse>(await this.callApi(params, req, runtime), new $_model.CheckRulesResponse({}));
|
|
139
72
|
}
|
|
140
|
-
}
|
|
141
73
|
|
|
142
|
-
export class DescribeCheckDetailsRequest extends $tea.Model {
|
|
143
|
-
/**
|
|
144
|
-
* @example
|
|
145
|
-
* 10
|
|
146
|
-
*/
|
|
147
|
-
maxResults?: number;
|
|
148
|
-
/**
|
|
149
|
-
* @example
|
|
150
|
-
* cae**********699
|
|
151
|
-
*/
|
|
152
|
-
nextToken?: string;
|
|
153
74
|
/**
|
|
154
|
-
*
|
|
155
|
-
* This parameter is required.
|
|
75
|
+
* Checks data protection scoring rules. Calling this operation triggers an asynchronous task to check whether your resources meet the data protection scoring requirements.
|
|
156
76
|
*
|
|
157
|
-
* @
|
|
158
|
-
*
|
|
159
|
-
*/
|
|
160
|
-
resourceArn?: string;
|
|
161
|
-
/**
|
|
162
|
-
* @example
|
|
163
|
-
* rule-000***dav
|
|
77
|
+
* @param request - CheckRulesRequest
|
|
78
|
+
* @returns CheckRulesResponse
|
|
164
79
|
*/
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
nextToken: 'NextToken',
|
|
170
|
-
resourceArn: 'ResourceArn',
|
|
171
|
-
ruleId: 'RuleId',
|
|
172
|
-
};
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
static types(): { [key: string]: any } {
|
|
176
|
-
return {
|
|
177
|
-
maxResults: 'number',
|
|
178
|
-
nextToken: 'string',
|
|
179
|
-
resourceArn: 'string',
|
|
180
|
-
ruleId: 'string',
|
|
181
|
-
};
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
constructor(map?: { [key: string]: any }) {
|
|
185
|
-
super(map);
|
|
80
|
+
async checkRules(request: $_model.CheckRulesRequest): Promise<$_model.CheckRulesResponse> {
|
|
81
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
82
|
+
let headers : {[key: string ]: string} = { };
|
|
83
|
+
return await this.checkRulesWithOptions(request, headers, runtime);
|
|
186
84
|
}
|
|
187
|
-
}
|
|
188
85
|
|
|
189
|
-
export class DescribeCheckDetailsResponseBody extends $tea.Model {
|
|
190
|
-
data?: DescribeCheckDetailsResponseBodyData;
|
|
191
86
|
/**
|
|
192
|
-
*
|
|
193
|
-
*
|
|
87
|
+
* Shuts down the Backup and Disaster Recovery Center.
|
|
88
|
+
*
|
|
89
|
+
* @param headers - map
|
|
90
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
91
|
+
* @returns CloseBdrcServiceResponse
|
|
194
92
|
*/
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
super(map);
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
export class DescribeCheckDetailsResponse extends $tea.Model {
|
|
216
|
-
headers?: { [key: string]: string };
|
|
217
|
-
statusCode?: number;
|
|
218
|
-
body?: DescribeCheckDetailsResponseBody;
|
|
219
|
-
static names(): { [key: string]: string } {
|
|
220
|
-
return {
|
|
221
|
-
headers: 'headers',
|
|
222
|
-
statusCode: 'statusCode',
|
|
223
|
-
body: 'body',
|
|
224
|
-
};
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
static types(): { [key: string]: any } {
|
|
228
|
-
return {
|
|
229
|
-
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
230
|
-
statusCode: 'number',
|
|
231
|
-
body: DescribeCheckDetailsResponseBody,
|
|
232
|
-
};
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
constructor(map?: { [key: string]: any }) {
|
|
236
|
-
super(map);
|
|
93
|
+
async closeBdrcServiceWithOptions(headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.CloseBdrcServiceResponse> {
|
|
94
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
95
|
+
headers: headers,
|
|
96
|
+
});
|
|
97
|
+
let params = new $OpenApiUtil.Params({
|
|
98
|
+
action: "CloseBdrcService",
|
|
99
|
+
version: "2023-08-08",
|
|
100
|
+
protocol: "HTTPS",
|
|
101
|
+
pathname: `/api/v1/service/close`,
|
|
102
|
+
method: "POST",
|
|
103
|
+
authType: "AK",
|
|
104
|
+
style: "ROA",
|
|
105
|
+
reqBodyType: "json",
|
|
106
|
+
bodyType: "json",
|
|
107
|
+
});
|
|
108
|
+
return $dara.cast<$_model.CloseBdrcServiceResponse>(await this.callApi(params, req, runtime), new $_model.CloseBdrcServiceResponse({}));
|
|
237
109
|
}
|
|
238
|
-
}
|
|
239
110
|
|
|
240
|
-
export class DescribeProductsResponseBody extends $tea.Model {
|
|
241
|
-
data?: DescribeProductsResponseBodyData;
|
|
242
111
|
/**
|
|
243
|
-
*
|
|
244
|
-
*
|
|
112
|
+
* Shuts down the Backup and Disaster Recovery Center.
|
|
113
|
+
* @returns CloseBdrcServiceResponse
|
|
245
114
|
*/
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
requestId: 'RequestId',
|
|
251
|
-
};
|
|
115
|
+
async closeBdrcService(): Promise<$_model.CloseBdrcServiceResponse> {
|
|
116
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
117
|
+
let headers : {[key: string ]: string} = { };
|
|
118
|
+
return await this.closeBdrcServiceWithOptions(headers, runtime);
|
|
252
119
|
}
|
|
253
120
|
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
121
|
+
/**
|
|
122
|
+
* Creates a protection policy.
|
|
123
|
+
*
|
|
124
|
+
* @param tmpReq - CreateProtectionPolicyRequest
|
|
125
|
+
* @param headers - map
|
|
126
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
127
|
+
* @returns CreateProtectionPolicyResponse
|
|
128
|
+
*/
|
|
129
|
+
async createProtectionPolicyWithOptions(tmpReq: $_model.CreateProtectionPolicyRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.CreateProtectionPolicyResponse> {
|
|
130
|
+
tmpReq.validate();
|
|
131
|
+
let request = new $_model.CreateProtectionPolicyShrinkRequest({ });
|
|
132
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
133
|
+
if (!$dara.isNull(tmpReq.boundResourceCategoryIds)) {
|
|
134
|
+
request.boundResourceCategoryIdsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.boundResourceCategoryIds, "BoundResourceCategoryIds", "json");
|
|
135
|
+
}
|
|
260
136
|
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
}
|
|
137
|
+
if (!$dara.isNull(tmpReq.subProtectionPolicies)) {
|
|
138
|
+
request.subProtectionPoliciesShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.subProtectionPolicies, "SubProtectionPolicies", "json");
|
|
139
|
+
}
|
|
265
140
|
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
static names(): { [key: string]: string } {
|
|
271
|
-
return {
|
|
272
|
-
headers: 'headers',
|
|
273
|
-
statusCode: 'statusCode',
|
|
274
|
-
body: 'body',
|
|
275
|
-
};
|
|
276
|
-
}
|
|
141
|
+
let body : {[key: string ]: any} = { };
|
|
142
|
+
if (!$dara.isNull(request.boundResourceCategoryIdsShrink)) {
|
|
143
|
+
body["BoundResourceCategoryIds"] = request.boundResourceCategoryIdsShrink;
|
|
144
|
+
}
|
|
277
145
|
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
statusCode: 'number',
|
|
282
|
-
body: DescribeProductsResponseBody,
|
|
283
|
-
};
|
|
284
|
-
}
|
|
146
|
+
if (!$dara.isNull(request.clientToken)) {
|
|
147
|
+
body["ClientToken"] = request.clientToken;
|
|
148
|
+
}
|
|
285
149
|
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
}
|
|
150
|
+
if (!$dara.isNull(request.protectionPolicyName)) {
|
|
151
|
+
body["ProtectionPolicyName"] = request.protectionPolicyName;
|
|
152
|
+
}
|
|
290
153
|
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
* rule-000c***yc9
|
|
295
|
-
*/
|
|
296
|
-
failedRuleTemplate?: string;
|
|
297
|
-
/**
|
|
298
|
-
* @example
|
|
299
|
-
* 10
|
|
300
|
-
*/
|
|
301
|
-
maxResults?: number;
|
|
302
|
-
/**
|
|
303
|
-
* @example
|
|
304
|
-
* cae**********699
|
|
305
|
-
*/
|
|
306
|
-
nextToken?: string;
|
|
307
|
-
/**
|
|
308
|
-
* @example
|
|
309
|
-
* i-0003***110
|
|
310
|
-
*/
|
|
311
|
-
resourceId?: string;
|
|
312
|
-
/**
|
|
313
|
-
* @example
|
|
314
|
-
* ACS::ECS::Instance
|
|
315
|
-
*/
|
|
316
|
-
resourceType?: string;
|
|
317
|
-
/**
|
|
318
|
-
* @example
|
|
319
|
-
* protectionScore
|
|
320
|
-
*/
|
|
321
|
-
sortBy?: string;
|
|
322
|
-
/**
|
|
323
|
-
* @example
|
|
324
|
-
* ASC
|
|
325
|
-
*/
|
|
326
|
-
sortOrder?: string;
|
|
327
|
-
static names(): { [key: string]: string } {
|
|
328
|
-
return {
|
|
329
|
-
failedRuleTemplate: 'FailedRuleTemplate',
|
|
330
|
-
maxResults: 'MaxResults',
|
|
331
|
-
nextToken: 'NextToken',
|
|
332
|
-
resourceId: 'ResourceId',
|
|
333
|
-
resourceType: 'ResourceType',
|
|
334
|
-
sortBy: 'SortBy',
|
|
335
|
-
sortOrder: 'SortOrder',
|
|
336
|
-
};
|
|
337
|
-
}
|
|
154
|
+
if (!$dara.isNull(request.protectionPolicyRegionId)) {
|
|
155
|
+
body["ProtectionPolicyRegionId"] = request.protectionPolicyRegionId;
|
|
156
|
+
}
|
|
338
157
|
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
maxResults: 'number',
|
|
343
|
-
nextToken: 'string',
|
|
344
|
-
resourceId: 'string',
|
|
345
|
-
resourceType: 'string',
|
|
346
|
-
sortBy: 'string',
|
|
347
|
-
sortOrder: 'string',
|
|
348
|
-
};
|
|
349
|
-
}
|
|
158
|
+
if (!$dara.isNull(request.subProtectionPoliciesShrink)) {
|
|
159
|
+
body["SubProtectionPolicies"] = request.subProtectionPoliciesShrink;
|
|
160
|
+
}
|
|
350
161
|
|
|
351
|
-
|
|
352
|
-
|
|
162
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
163
|
+
headers: headers,
|
|
164
|
+
body: OpenApiUtil.parseToMap(body),
|
|
165
|
+
});
|
|
166
|
+
let params = new $OpenApiUtil.Params({
|
|
167
|
+
action: "CreateProtectionPolicy",
|
|
168
|
+
version: "2023-08-08",
|
|
169
|
+
protocol: "HTTPS",
|
|
170
|
+
pathname: `/api/v1/protection-policies`,
|
|
171
|
+
method: "POST",
|
|
172
|
+
authType: "AK",
|
|
173
|
+
style: "ROA",
|
|
174
|
+
reqBodyType: "formData",
|
|
175
|
+
bodyType: "json",
|
|
176
|
+
});
|
|
177
|
+
return $dara.cast<$_model.CreateProtectionPolicyResponse>(await this.callApi(params, req, runtime), new $_model.CreateProtectionPolicyResponse({}));
|
|
353
178
|
}
|
|
354
|
-
}
|
|
355
179
|
|
|
356
|
-
export class DescribeResourcesResponseBody extends $tea.Model {
|
|
357
|
-
data?: DescribeResourcesResponseBodyData;
|
|
358
180
|
/**
|
|
359
|
-
*
|
|
360
|
-
*
|
|
181
|
+
* Creates a protection policy.
|
|
182
|
+
*
|
|
183
|
+
* @param request - CreateProtectionPolicyRequest
|
|
184
|
+
* @returns CreateProtectionPolicyResponse
|
|
361
185
|
*/
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
requestId: 'RequestId',
|
|
367
|
-
};
|
|
368
|
-
}
|
|
369
|
-
|
|
370
|
-
static types(): { [key: string]: any } {
|
|
371
|
-
return {
|
|
372
|
-
data: DescribeResourcesResponseBodyData,
|
|
373
|
-
requestId: 'string',
|
|
374
|
-
};
|
|
186
|
+
async createProtectionPolicy(request: $_model.CreateProtectionPolicyRequest): Promise<$_model.CreateProtectionPolicyResponse> {
|
|
187
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
188
|
+
let headers : {[key: string ]: string} = { };
|
|
189
|
+
return await this.createProtectionPolicyWithOptions(request, headers, runtime);
|
|
375
190
|
}
|
|
376
191
|
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
192
|
+
/**
|
|
193
|
+
* Creates a resource category.
|
|
194
|
+
*
|
|
195
|
+
* @param request - CreateResourceCategoryRequest
|
|
196
|
+
* @param headers - map
|
|
197
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
198
|
+
* @returns CreateResourceCategoryResponse
|
|
199
|
+
*/
|
|
200
|
+
async createResourceCategoryWithOptions(request: $_model.CreateResourceCategoryRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.CreateResourceCategoryResponse> {
|
|
201
|
+
request.validate();
|
|
202
|
+
let body : {[key: string ]: any} = { };
|
|
203
|
+
if (!$dara.isNull(request.resourceCategoryName)) {
|
|
204
|
+
body["ResourceCategoryName"] = request.resourceCategoryName;
|
|
205
|
+
}
|
|
381
206
|
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
body?: DescribeResourcesResponseBody;
|
|
386
|
-
static names(): { [key: string]: string } {
|
|
387
|
-
return {
|
|
388
|
-
headers: 'headers',
|
|
389
|
-
statusCode: 'statusCode',
|
|
390
|
-
body: 'body',
|
|
391
|
-
};
|
|
392
|
-
}
|
|
207
|
+
if (!$dara.isNull(request.resourceMatcher)) {
|
|
208
|
+
body["ResourceMatcher"] = request.resourceMatcher;
|
|
209
|
+
}
|
|
393
210
|
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
statusCode: 'number',
|
|
398
|
-
body: DescribeResourcesResponseBody,
|
|
399
|
-
};
|
|
400
|
-
}
|
|
211
|
+
if (!$dara.isNull(request.resourceType)) {
|
|
212
|
+
body["ResourceType"] = request.resourceType;
|
|
213
|
+
}
|
|
401
214
|
|
|
402
|
-
|
|
403
|
-
|
|
215
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
216
|
+
headers: headers,
|
|
217
|
+
body: OpenApiUtil.parseToMap(body),
|
|
218
|
+
});
|
|
219
|
+
let params = new $OpenApiUtil.Params({
|
|
220
|
+
action: "CreateResourceCategory",
|
|
221
|
+
version: "2023-08-08",
|
|
222
|
+
protocol: "HTTPS",
|
|
223
|
+
pathname: `/api/v1/resource-categories/create`,
|
|
224
|
+
method: "POST",
|
|
225
|
+
authType: "AK",
|
|
226
|
+
style: "ROA",
|
|
227
|
+
reqBodyType: "formData",
|
|
228
|
+
bodyType: "json",
|
|
229
|
+
});
|
|
230
|
+
return $dara.cast<$_model.CreateResourceCategoryResponse>(await this.callApi(params, req, runtime), new $_model.CreateResourceCategoryResponse({}));
|
|
404
231
|
}
|
|
405
|
-
}
|
|
406
232
|
|
|
407
|
-
export class DescribeRulesRequest extends $tea.Model {
|
|
408
233
|
/**
|
|
409
|
-
*
|
|
410
|
-
*
|
|
234
|
+
* Creates a resource category.
|
|
235
|
+
*
|
|
236
|
+
* @param request - CreateResourceCategoryRequest
|
|
237
|
+
* @returns CreateResourceCategoryResponse
|
|
411
238
|
*/
|
|
412
|
-
|
|
239
|
+
async createResourceCategory(request: $_model.CreateResourceCategoryRequest): Promise<$_model.CreateResourceCategoryResponse> {
|
|
240
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
241
|
+
let headers : {[key: string ]: string} = { };
|
|
242
|
+
return await this.createResourceCategoryWithOptions(request, headers, runtime);
|
|
243
|
+
}
|
|
244
|
+
|
|
413
245
|
/**
|
|
414
|
-
*
|
|
415
|
-
*
|
|
246
|
+
* Deletes a protection policy.
|
|
247
|
+
*
|
|
248
|
+
* @param request - DeleteProtectionPolicyRequest
|
|
249
|
+
* @param headers - map
|
|
250
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
251
|
+
* @returns DeleteProtectionPolicyResponse
|
|
416
252
|
*/
|
|
417
|
-
|
|
253
|
+
async deleteProtectionPolicyWithOptions(ProtectionPolicyId: string, request: $_model.DeleteProtectionPolicyRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteProtectionPolicyResponse> {
|
|
254
|
+
request.validate();
|
|
255
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
256
|
+
headers: headers,
|
|
257
|
+
});
|
|
258
|
+
let params = new $OpenApiUtil.Params({
|
|
259
|
+
action: "DeleteProtectionPolicy",
|
|
260
|
+
version: "2023-08-08",
|
|
261
|
+
protocol: "HTTPS",
|
|
262
|
+
pathname: `/api/v1/protection-policies/${$dara.URL.percentEncode(ProtectionPolicyId)}`,
|
|
263
|
+
method: "DELETE",
|
|
264
|
+
authType: "AK",
|
|
265
|
+
style: "ROA",
|
|
266
|
+
reqBodyType: "json",
|
|
267
|
+
bodyType: "json",
|
|
268
|
+
});
|
|
269
|
+
return $dara.cast<$_model.DeleteProtectionPolicyResponse>(await this.callApi(params, req, runtime), new $_model.DeleteProtectionPolicyResponse({}));
|
|
270
|
+
}
|
|
271
|
+
|
|
418
272
|
/**
|
|
419
|
-
*
|
|
420
|
-
*
|
|
273
|
+
* Deletes a protection policy.
|
|
274
|
+
*
|
|
275
|
+
* @param request - DeleteProtectionPolicyRequest
|
|
276
|
+
* @returns DeleteProtectionPolicyResponse
|
|
421
277
|
*/
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
nextToken: 'NextToken',
|
|
427
|
-
resourceType: 'ResourceType',
|
|
428
|
-
};
|
|
278
|
+
async deleteProtectionPolicy(ProtectionPolicyId: string, request: $_model.DeleteProtectionPolicyRequest): Promise<$_model.DeleteProtectionPolicyResponse> {
|
|
279
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
280
|
+
let headers : {[key: string ]: string} = { };
|
|
281
|
+
return await this.deleteProtectionPolicyWithOptions(ProtectionPolicyId, request, headers, runtime);
|
|
429
282
|
}
|
|
430
283
|
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
284
|
+
/**
|
|
285
|
+
* Deletes a resource category.
|
|
286
|
+
*
|
|
287
|
+
* @param request - DeleteResourceCategoryRequest
|
|
288
|
+
* @param headers - map
|
|
289
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
290
|
+
* @returns DeleteResourceCategoryResponse
|
|
291
|
+
*/
|
|
292
|
+
async deleteResourceCategoryWithOptions(request: $_model.DeleteResourceCategoryRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteResourceCategoryResponse> {
|
|
293
|
+
request.validate();
|
|
294
|
+
let body : {[key: string ]: any} = { };
|
|
295
|
+
if (!$dara.isNull(request.resourceCategoryId)) {
|
|
296
|
+
body["ResourceCategoryId"] = request.resourceCategoryId;
|
|
297
|
+
}
|
|
438
298
|
|
|
439
|
-
|
|
440
|
-
|
|
299
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
300
|
+
headers: headers,
|
|
301
|
+
body: OpenApiUtil.parseToMap(body),
|
|
302
|
+
});
|
|
303
|
+
let params = new $OpenApiUtil.Params({
|
|
304
|
+
action: "DeleteResourceCategory",
|
|
305
|
+
version: "2023-08-08",
|
|
306
|
+
protocol: "HTTPS",
|
|
307
|
+
pathname: `/api/v1/resource-categories/delete`,
|
|
308
|
+
method: "POST",
|
|
309
|
+
authType: "AK",
|
|
310
|
+
style: "ROA",
|
|
311
|
+
reqBodyType: "formData",
|
|
312
|
+
bodyType: "json",
|
|
313
|
+
});
|
|
314
|
+
return $dara.cast<$_model.DeleteResourceCategoryResponse>(await this.callApi(params, req, runtime), new $_model.DeleteResourceCategoryResponse({}));
|
|
441
315
|
}
|
|
442
|
-
}
|
|
443
316
|
|
|
444
|
-
export class DescribeRulesResponseBody extends $tea.Model {
|
|
445
|
-
data?: DescribeRulesResponseBodyData;
|
|
446
317
|
/**
|
|
447
|
-
*
|
|
448
|
-
*
|
|
318
|
+
* Deletes a resource category.
|
|
319
|
+
*
|
|
320
|
+
* @param request - DeleteResourceCategoryRequest
|
|
321
|
+
* @returns DeleteResourceCategoryResponse
|
|
449
322
|
*/
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
requestId: 'RequestId',
|
|
455
|
-
};
|
|
456
|
-
}
|
|
457
|
-
|
|
458
|
-
static types(): { [key: string]: any } {
|
|
459
|
-
return {
|
|
460
|
-
data: DescribeRulesResponseBodyData,
|
|
461
|
-
requestId: 'string',
|
|
462
|
-
};
|
|
323
|
+
async deleteResourceCategory(request: $_model.DeleteResourceCategoryRequest): Promise<$_model.DeleteResourceCategoryResponse> {
|
|
324
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
325
|
+
let headers : {[key: string ]: string} = { };
|
|
326
|
+
return await this.deleteResourceCategoryWithOptions(request, headers, runtime);
|
|
463
327
|
}
|
|
464
328
|
|
|
465
|
-
constructor(map?: { [key: string]: any }) {
|
|
466
|
-
super(map);
|
|
467
|
-
}
|
|
468
|
-
}
|
|
469
|
-
|
|
470
|
-
export class DescribeRulesResponse extends $tea.Model {
|
|
471
|
-
headers?: { [key: string]: string };
|
|
472
|
-
statusCode?: number;
|
|
473
|
-
body?: DescribeRulesResponseBody;
|
|
474
|
-
static names(): { [key: string]: string } {
|
|
475
|
-
return {
|
|
476
|
-
headers: 'headers',
|
|
477
|
-
statusCode: 'statusCode',
|
|
478
|
-
body: 'body',
|
|
479
|
-
};
|
|
480
|
-
}
|
|
481
|
-
|
|
482
|
-
static types(): { [key: string]: any } {
|
|
483
|
-
return {
|
|
484
|
-
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
485
|
-
statusCode: 'number',
|
|
486
|
-
body: DescribeRulesResponseBody,
|
|
487
|
-
};
|
|
488
|
-
}
|
|
489
|
-
|
|
490
|
-
constructor(map?: { [key: string]: any }) {
|
|
491
|
-
super(map);
|
|
492
|
-
}
|
|
493
|
-
}
|
|
494
|
-
|
|
495
|
-
export class DescribeTaskResponseBody extends $tea.Model {
|
|
496
|
-
data?: DescribeTaskResponseBodyData;
|
|
497
|
-
/**
|
|
498
|
-
* @example
|
|
499
|
-
* 14DFF801-A4E3-5136-AAB8-7D246012CD7A
|
|
500
|
-
*/
|
|
501
|
-
requestId?: string;
|
|
502
|
-
static names(): { [key: string]: string } {
|
|
503
|
-
return {
|
|
504
|
-
data: 'Data',
|
|
505
|
-
requestId: 'RequestId',
|
|
506
|
-
};
|
|
507
|
-
}
|
|
508
|
-
|
|
509
|
-
static types(): { [key: string]: any } {
|
|
510
|
-
return {
|
|
511
|
-
data: DescribeTaskResponseBodyData,
|
|
512
|
-
requestId: 'string',
|
|
513
|
-
};
|
|
514
|
-
}
|
|
515
|
-
|
|
516
|
-
constructor(map?: { [key: string]: any }) {
|
|
517
|
-
super(map);
|
|
518
|
-
}
|
|
519
|
-
}
|
|
520
|
-
|
|
521
|
-
export class DescribeTaskResponse extends $tea.Model {
|
|
522
|
-
headers?: { [key: string]: string };
|
|
523
|
-
statusCode?: number;
|
|
524
|
-
body?: DescribeTaskResponseBody;
|
|
525
|
-
static names(): { [key: string]: string } {
|
|
526
|
-
return {
|
|
527
|
-
headers: 'headers',
|
|
528
|
-
statusCode: 'statusCode',
|
|
529
|
-
body: 'body',
|
|
530
|
-
};
|
|
531
|
-
}
|
|
532
|
-
|
|
533
|
-
static types(): { [key: string]: any } {
|
|
534
|
-
return {
|
|
535
|
-
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
536
|
-
statusCode: 'number',
|
|
537
|
-
body: DescribeTaskResponseBody,
|
|
538
|
-
};
|
|
539
|
-
}
|
|
540
|
-
|
|
541
|
-
constructor(map?: { [key: string]: any }) {
|
|
542
|
-
super(map);
|
|
543
|
-
}
|
|
544
|
-
}
|
|
545
|
-
|
|
546
|
-
export class DescribeTasksRequest extends $tea.Model {
|
|
547
|
-
/**
|
|
548
|
-
* @example
|
|
549
|
-
* 10
|
|
550
|
-
*/
|
|
551
|
-
maxResults?: number;
|
|
552
|
-
/**
|
|
553
|
-
* @example
|
|
554
|
-
* cae**********699
|
|
555
|
-
*/
|
|
556
|
-
nextToken?: string;
|
|
557
|
-
/**
|
|
558
|
-
* @example
|
|
559
|
-
* RUNNING
|
|
560
|
-
*/
|
|
561
|
-
taskStatus?: string;
|
|
562
|
-
static names(): { [key: string]: string } {
|
|
563
|
-
return {
|
|
564
|
-
maxResults: 'MaxResults',
|
|
565
|
-
nextToken: 'NextToken',
|
|
566
|
-
taskStatus: 'TaskStatus',
|
|
567
|
-
};
|
|
568
|
-
}
|
|
569
|
-
|
|
570
|
-
static types(): { [key: string]: any } {
|
|
571
|
-
return {
|
|
572
|
-
maxResults: 'number',
|
|
573
|
-
nextToken: 'string',
|
|
574
|
-
taskStatus: 'string',
|
|
575
|
-
};
|
|
576
|
-
}
|
|
577
|
-
|
|
578
|
-
constructor(map?: { [key: string]: any }) {
|
|
579
|
-
super(map);
|
|
580
|
-
}
|
|
581
|
-
}
|
|
582
|
-
|
|
583
|
-
export class DescribeTasksResponseBody extends $tea.Model {
|
|
584
|
-
data?: DescribeTasksResponseBodyData;
|
|
585
329
|
/**
|
|
586
|
-
*
|
|
587
|
-
*
|
|
330
|
+
* Retrieves the check results for data protection rules.
|
|
331
|
+
*
|
|
332
|
+
* @param request - DescribeCheckDetailsRequest
|
|
333
|
+
* @param headers - map
|
|
334
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
335
|
+
* @returns DescribeCheckDetailsResponse
|
|
588
336
|
*/
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
}
|
|
595
|
-
}
|
|
596
|
-
|
|
597
|
-
static types(): { [key: string]: any } {
|
|
598
|
-
return {
|
|
599
|
-
data: DescribeTasksResponseBodyData,
|
|
600
|
-
requestId: 'string',
|
|
601
|
-
};
|
|
602
|
-
}
|
|
337
|
+
async describeCheckDetailsWithOptions(request: $_model.DescribeCheckDetailsRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeCheckDetailsResponse> {
|
|
338
|
+
request.validate();
|
|
339
|
+
let query : {[key: string ]: any} = { };
|
|
340
|
+
if (!$dara.isNull(request.maxResults)) {
|
|
341
|
+
query["MaxResults"] = request.maxResults;
|
|
342
|
+
}
|
|
603
343
|
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
}
|
|
344
|
+
if (!$dara.isNull(request.nextToken)) {
|
|
345
|
+
query["NextToken"] = request.nextToken;
|
|
346
|
+
}
|
|
608
347
|
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
body?: DescribeTasksResponseBody;
|
|
613
|
-
static names(): { [key: string]: string } {
|
|
614
|
-
return {
|
|
615
|
-
headers: 'headers',
|
|
616
|
-
statusCode: 'statusCode',
|
|
617
|
-
body: 'body',
|
|
618
|
-
};
|
|
619
|
-
}
|
|
348
|
+
if (!$dara.isNull(request.resourceArn)) {
|
|
349
|
+
query["ResourceArn"] = request.resourceArn;
|
|
350
|
+
}
|
|
620
351
|
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
statusCode: 'number',
|
|
625
|
-
body: DescribeTasksResponseBody,
|
|
626
|
-
};
|
|
627
|
-
}
|
|
352
|
+
if (!$dara.isNull(request.ruleId)) {
|
|
353
|
+
query["RuleId"] = request.ruleId;
|
|
354
|
+
}
|
|
628
355
|
|
|
629
|
-
|
|
630
|
-
|
|
356
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
357
|
+
headers: headers,
|
|
358
|
+
query: OpenApiUtil.query(query),
|
|
359
|
+
});
|
|
360
|
+
let params = new $OpenApiUtil.Params({
|
|
361
|
+
action: "DescribeCheckDetails",
|
|
362
|
+
version: "2023-08-08",
|
|
363
|
+
protocol: "HTTPS",
|
|
364
|
+
pathname: `/api/v1/check-details`,
|
|
365
|
+
method: "GET",
|
|
366
|
+
authType: "AK",
|
|
367
|
+
style: "ROA",
|
|
368
|
+
reqBodyType: "json",
|
|
369
|
+
bodyType: "json",
|
|
370
|
+
});
|
|
371
|
+
return $dara.cast<$_model.DescribeCheckDetailsResponse>(await this.callApi(params, req, runtime), new $_model.DescribeCheckDetailsResponse({}));
|
|
631
372
|
}
|
|
632
|
-
}
|
|
633
373
|
|
|
634
|
-
export class DescribeTopRiskyResourcesRequest extends $tea.Model {
|
|
635
374
|
/**
|
|
636
|
-
*
|
|
637
|
-
*
|
|
375
|
+
* Retrieves the check results for data protection rules.
|
|
376
|
+
*
|
|
377
|
+
* @param request - DescribeCheckDetailsRequest
|
|
378
|
+
* @returns DescribeCheckDetailsResponse
|
|
638
379
|
*/
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
};
|
|
644
|
-
}
|
|
645
|
-
|
|
646
|
-
static types(): { [key: string]: any } {
|
|
647
|
-
return {
|
|
648
|
-
resourceType: 'string',
|
|
649
|
-
};
|
|
650
|
-
}
|
|
651
|
-
|
|
652
|
-
constructor(map?: { [key: string]: any }) {
|
|
653
|
-
super(map);
|
|
380
|
+
async describeCheckDetails(request: $_model.DescribeCheckDetailsRequest): Promise<$_model.DescribeCheckDetailsResponse> {
|
|
381
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
382
|
+
let headers : {[key: string ]: string} = { };
|
|
383
|
+
return await this.describeCheckDetailsWithOptions(request, headers, runtime);
|
|
654
384
|
}
|
|
655
|
-
}
|
|
656
385
|
|
|
657
|
-
export class DescribeTopRiskyResourcesResponseBody extends $tea.Model {
|
|
658
|
-
data?: DescribeTopRiskyResourcesResponseBodyData;
|
|
659
386
|
/**
|
|
660
|
-
*
|
|
661
|
-
*
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
requestId: 'string',
|
|
675
|
-
};
|
|
676
|
-
}
|
|
387
|
+
* Queries statistics on data redundancy types for a cloud service.
|
|
388
|
+
*
|
|
389
|
+
* @param tmpReq - DescribeProductDataRedundancyTypeStatRequest
|
|
390
|
+
* @param headers - map
|
|
391
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
392
|
+
* @returns DescribeProductDataRedundancyTypeStatResponse
|
|
393
|
+
*/
|
|
394
|
+
async describeProductDataRedundancyTypeStatWithOptions(tmpReq: $_model.DescribeProductDataRedundancyTypeStatRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeProductDataRedundancyTypeStatResponse> {
|
|
395
|
+
tmpReq.validate();
|
|
396
|
+
let request = new $_model.DescribeProductDataRedundancyTypeStatShrinkRequest({ });
|
|
397
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
398
|
+
if (!$dara.isNull(tmpReq.resourceOwnerIds)) {
|
|
399
|
+
request.resourceOwnerIdsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.resourceOwnerIds, "ResourceOwnerIds", "json");
|
|
400
|
+
}
|
|
677
401
|
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
}
|
|
402
|
+
let query : {[key: string ]: any} = { };
|
|
403
|
+
if (!$dara.isNull(request.productType)) {
|
|
404
|
+
query["ProductType"] = request.productType;
|
|
405
|
+
}
|
|
682
406
|
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
body?: DescribeTopRiskyResourcesResponseBody;
|
|
687
|
-
static names(): { [key: string]: string } {
|
|
688
|
-
return {
|
|
689
|
-
headers: 'headers',
|
|
690
|
-
statusCode: 'statusCode',
|
|
691
|
-
body: 'body',
|
|
692
|
-
};
|
|
693
|
-
}
|
|
407
|
+
if (!$dara.isNull(request.resourceCategoryId)) {
|
|
408
|
+
query["ResourceCategoryId"] = request.resourceCategoryId;
|
|
409
|
+
}
|
|
694
410
|
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
statusCode: 'number',
|
|
699
|
-
body: DescribeTopRiskyResourcesResponseBody,
|
|
700
|
-
};
|
|
701
|
-
}
|
|
411
|
+
if (!$dara.isNull(request.resourceOwnerIdsShrink)) {
|
|
412
|
+
query["ResourceOwnerIds"] = request.resourceOwnerIdsShrink;
|
|
413
|
+
}
|
|
702
414
|
|
|
703
|
-
|
|
704
|
-
|
|
415
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
416
|
+
headers: headers,
|
|
417
|
+
query: OpenApiUtil.query(query),
|
|
418
|
+
});
|
|
419
|
+
let params = new $OpenApiUtil.Params({
|
|
420
|
+
action: "DescribeProductDataRedundancyTypeStat",
|
|
421
|
+
version: "2023-08-08",
|
|
422
|
+
protocol: "HTTPS",
|
|
423
|
+
pathname: `/api/v1/products/data-redundancy-type-stat`,
|
|
424
|
+
method: "GET",
|
|
425
|
+
authType: "AK",
|
|
426
|
+
style: "ROA",
|
|
427
|
+
reqBodyType: "json",
|
|
428
|
+
bodyType: "json",
|
|
429
|
+
});
|
|
430
|
+
return $dara.cast<$_model.DescribeProductDataRedundancyTypeStatResponse>(await this.callApi(params, req, runtime), new $_model.DescribeProductDataRedundancyTypeStatResponse({}));
|
|
705
431
|
}
|
|
706
|
-
}
|
|
707
432
|
|
|
708
|
-
export class DisableCheckProductRequest extends $tea.Model {
|
|
709
433
|
/**
|
|
710
|
-
*
|
|
711
|
-
* This parameter is required.
|
|
434
|
+
* Queries statistics on data redundancy types for a cloud service.
|
|
712
435
|
*
|
|
713
|
-
* @
|
|
714
|
-
*
|
|
436
|
+
* @param request - DescribeProductDataRedundancyTypeStatRequest
|
|
437
|
+
* @returns DescribeProductDataRedundancyTypeStatResponse
|
|
715
438
|
*/
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
};
|
|
721
|
-
}
|
|
722
|
-
|
|
723
|
-
static types(): { [key: string]: any } {
|
|
724
|
-
return {
|
|
725
|
-
productType: 'string',
|
|
726
|
-
};
|
|
727
|
-
}
|
|
728
|
-
|
|
729
|
-
constructor(map?: { [key: string]: any }) {
|
|
730
|
-
super(map);
|
|
439
|
+
async describeProductDataRedundancyTypeStat(request: $_model.DescribeProductDataRedundancyTypeStatRequest): Promise<$_model.DescribeProductDataRedundancyTypeStatResponse> {
|
|
440
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
441
|
+
let headers : {[key: string ]: string} = { };
|
|
442
|
+
return await this.describeProductDataRedundancyTypeStatWithOptions(request, headers, runtime);
|
|
731
443
|
}
|
|
732
|
-
}
|
|
733
444
|
|
|
734
|
-
export class DisableCheckProductResponseBody extends $tea.Model {
|
|
735
445
|
/**
|
|
736
|
-
*
|
|
737
|
-
*
|
|
446
|
+
* Queries the data protection score status for cloud products.
|
|
447
|
+
*
|
|
448
|
+
* @param tmpReq - DescribeProductsRequest
|
|
449
|
+
* @param headers - map
|
|
450
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
451
|
+
* @returns DescribeProductsResponse
|
|
738
452
|
*/
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
453
|
+
async describeProductsWithOptions(tmpReq: $_model.DescribeProductsRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeProductsResponse> {
|
|
454
|
+
tmpReq.validate();
|
|
455
|
+
let request = new $_model.DescribeProductsShrinkRequest({ });
|
|
456
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
457
|
+
if (!$dara.isNull(tmpReq.resourceOwnerIds)) {
|
|
458
|
+
request.resourceOwnerIdsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.resourceOwnerIds, "ResourceOwnerIds", "json");
|
|
459
|
+
}
|
|
745
460
|
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
}
|
|
750
|
-
}
|
|
461
|
+
let query : {[key: string ]: any} = { };
|
|
462
|
+
if (!$dara.isNull(request.productType)) {
|
|
463
|
+
query["ProductType"] = request.productType;
|
|
464
|
+
}
|
|
751
465
|
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
}
|
|
466
|
+
if (!$dara.isNull(request.resourceCategoryId)) {
|
|
467
|
+
query["ResourceCategoryId"] = request.resourceCategoryId;
|
|
468
|
+
}
|
|
756
469
|
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
body?: DisableCheckProductResponseBody;
|
|
761
|
-
static names(): { [key: string]: string } {
|
|
762
|
-
return {
|
|
763
|
-
headers: 'headers',
|
|
764
|
-
statusCode: 'statusCode',
|
|
765
|
-
body: 'body',
|
|
766
|
-
};
|
|
767
|
-
}
|
|
470
|
+
if (!$dara.isNull(request.resourceOwnerIdsShrink)) {
|
|
471
|
+
query["ResourceOwnerIds"] = request.resourceOwnerIdsShrink;
|
|
472
|
+
}
|
|
768
473
|
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
statusCode: 'number',
|
|
773
|
-
body: DisableCheckProductResponseBody,
|
|
774
|
-
};
|
|
775
|
-
}
|
|
474
|
+
if (!$dara.isNull(request.resourceRegionId)) {
|
|
475
|
+
query["ResourceRegionId"] = request.resourceRegionId;
|
|
476
|
+
}
|
|
776
477
|
|
|
777
|
-
|
|
778
|
-
|
|
478
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
479
|
+
headers: headers,
|
|
480
|
+
query: OpenApiUtil.query(query),
|
|
481
|
+
});
|
|
482
|
+
let params = new $OpenApiUtil.Params({
|
|
483
|
+
action: "DescribeProducts",
|
|
484
|
+
version: "2023-08-08",
|
|
485
|
+
protocol: "HTTPS",
|
|
486
|
+
pathname: `/api/v1/products`,
|
|
487
|
+
method: "GET",
|
|
488
|
+
authType: "AK",
|
|
489
|
+
style: "ROA",
|
|
490
|
+
reqBodyType: "json",
|
|
491
|
+
bodyType: "json",
|
|
492
|
+
});
|
|
493
|
+
return $dara.cast<$_model.DescribeProductsResponse>(await this.callApi(params, req, runtime), new $_model.DescribeProductsResponse({}));
|
|
779
494
|
}
|
|
780
|
-
}
|
|
781
495
|
|
|
782
|
-
export class DisableCheckResourceRequest extends $tea.Model {
|
|
783
496
|
/**
|
|
784
|
-
*
|
|
785
|
-
* This parameter is required.
|
|
497
|
+
* Queries the data protection score status for cloud products.
|
|
786
498
|
*
|
|
787
|
-
* @
|
|
788
|
-
*
|
|
499
|
+
* @param request - DescribeProductsRequest
|
|
500
|
+
* @returns DescribeProductsResponse
|
|
789
501
|
*/
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
};
|
|
795
|
-
}
|
|
796
|
-
|
|
797
|
-
static types(): { [key: string]: any } {
|
|
798
|
-
return {
|
|
799
|
-
resourceArn: 'string',
|
|
800
|
-
};
|
|
801
|
-
}
|
|
802
|
-
|
|
803
|
-
constructor(map?: { [key: string]: any }) {
|
|
804
|
-
super(map);
|
|
502
|
+
async describeProducts(request: $_model.DescribeProductsRequest): Promise<$_model.DescribeProductsResponse> {
|
|
503
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
504
|
+
let headers : {[key: string ]: string} = { };
|
|
505
|
+
return await this.describeProductsWithOptions(request, headers, runtime);
|
|
805
506
|
}
|
|
806
|
-
}
|
|
807
507
|
|
|
808
|
-
export class DisableCheckResourceResponseBody extends $tea.Model {
|
|
809
508
|
/**
|
|
810
|
-
*
|
|
811
|
-
*
|
|
509
|
+
* Query resources
|
|
510
|
+
*
|
|
511
|
+
* @param tmpReq - DescribeResourcesRequest
|
|
512
|
+
* @param headers - map
|
|
513
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
514
|
+
* @returns DescribeResourcesResponse
|
|
812
515
|
*/
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
static types(): { [key: string]: any } {
|
|
821
|
-
return {
|
|
822
|
-
requestId: 'string',
|
|
823
|
-
};
|
|
824
|
-
}
|
|
825
|
-
|
|
826
|
-
constructor(map?: { [key: string]: any }) {
|
|
827
|
-
super(map);
|
|
828
|
-
}
|
|
829
|
-
}
|
|
830
|
-
|
|
831
|
-
export class DisableCheckResourceResponse extends $tea.Model {
|
|
832
|
-
headers?: { [key: string]: string };
|
|
833
|
-
statusCode?: number;
|
|
834
|
-
body?: DisableCheckResourceResponseBody;
|
|
835
|
-
static names(): { [key: string]: string } {
|
|
836
|
-
return {
|
|
837
|
-
headers: 'headers',
|
|
838
|
-
statusCode: 'statusCode',
|
|
839
|
-
body: 'body',
|
|
840
|
-
};
|
|
841
|
-
}
|
|
842
|
-
|
|
843
|
-
static types(): { [key: string]: any } {
|
|
844
|
-
return {
|
|
845
|
-
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
846
|
-
statusCode: 'number',
|
|
847
|
-
body: DisableCheckResourceResponseBody,
|
|
848
|
-
};
|
|
849
|
-
}
|
|
516
|
+
async describeResourcesWithOptions(tmpReq: $_model.DescribeResourcesRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeResourcesResponse> {
|
|
517
|
+
tmpReq.validate();
|
|
518
|
+
let request = new $_model.DescribeResourcesShrinkRequest({ });
|
|
519
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
520
|
+
if (!$dara.isNull(tmpReq.resourceOwnerIds)) {
|
|
521
|
+
request.resourceOwnerIdsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.resourceOwnerIds, "ResourceOwnerIds", "json");
|
|
522
|
+
}
|
|
850
523
|
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
}
|
|
524
|
+
let query : {[key: string ]: any} = { };
|
|
525
|
+
if (!$dara.isNull(request.dataRedundancyType)) {
|
|
526
|
+
query["DataRedundancyType"] = request.dataRedundancyType;
|
|
527
|
+
}
|
|
855
528
|
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
* This parameter is required.
|
|
860
|
-
*
|
|
861
|
-
* @example
|
|
862
|
-
* ecs
|
|
863
|
-
*/
|
|
864
|
-
productType?: string;
|
|
865
|
-
static names(): { [key: string]: string } {
|
|
866
|
-
return {
|
|
867
|
-
productType: 'ProductType',
|
|
868
|
-
};
|
|
869
|
-
}
|
|
529
|
+
if (!$dara.isNull(request.failedRuleTemplate)) {
|
|
530
|
+
query["FailedRuleTemplate"] = request.failedRuleTemplate;
|
|
531
|
+
}
|
|
870
532
|
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
};
|
|
875
|
-
}
|
|
533
|
+
if (!$dara.isNull(request.maxResults)) {
|
|
534
|
+
query["MaxResults"] = request.maxResults;
|
|
535
|
+
}
|
|
876
536
|
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
}
|
|
537
|
+
if (!$dara.isNull(request.nextToken)) {
|
|
538
|
+
query["NextToken"] = request.nextToken;
|
|
539
|
+
}
|
|
881
540
|
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
* 8724BC18-904D-5A0D-BFF4-F0554F0037E7
|
|
886
|
-
*/
|
|
887
|
-
requestId?: string;
|
|
888
|
-
static names(): { [key: string]: string } {
|
|
889
|
-
return {
|
|
890
|
-
requestId: 'RequestId',
|
|
891
|
-
};
|
|
892
|
-
}
|
|
541
|
+
if (!$dara.isNull(request.resourceArn)) {
|
|
542
|
+
query["ResourceArn"] = request.resourceArn;
|
|
543
|
+
}
|
|
893
544
|
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
};
|
|
898
|
-
}
|
|
545
|
+
if (!$dara.isNull(request.resourceCategoryId)) {
|
|
546
|
+
query["ResourceCategoryId"] = request.resourceCategoryId;
|
|
547
|
+
}
|
|
899
548
|
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
}
|
|
549
|
+
if (!$dara.isNull(request.resourceId)) {
|
|
550
|
+
query["ResourceId"] = request.resourceId;
|
|
551
|
+
}
|
|
904
552
|
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
body?: EnableCheckProductResponseBody;
|
|
909
|
-
static names(): { [key: string]: string } {
|
|
910
|
-
return {
|
|
911
|
-
headers: 'headers',
|
|
912
|
-
statusCode: 'statusCode',
|
|
913
|
-
body: 'body',
|
|
914
|
-
};
|
|
915
|
-
}
|
|
553
|
+
if (!$dara.isNull(request.resourceOwnerIdsShrink)) {
|
|
554
|
+
query["ResourceOwnerIds"] = request.resourceOwnerIdsShrink;
|
|
555
|
+
}
|
|
916
556
|
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
statusCode: 'number',
|
|
921
|
-
body: EnableCheckProductResponseBody,
|
|
922
|
-
};
|
|
923
|
-
}
|
|
557
|
+
if (!$dara.isNull(request.resourceRegionId)) {
|
|
558
|
+
query["ResourceRegionId"] = request.resourceRegionId;
|
|
559
|
+
}
|
|
924
560
|
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
}
|
|
561
|
+
if (!$dara.isNull(request.resourceType)) {
|
|
562
|
+
query["ResourceType"] = request.resourceType;
|
|
563
|
+
}
|
|
929
564
|
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
* This parameter is required.
|
|
934
|
-
*
|
|
935
|
-
* @example
|
|
936
|
-
* acs:ecs:123***890:cn-shanghai:instance/i-001***90
|
|
937
|
-
*/
|
|
938
|
-
resourceArn?: string;
|
|
939
|
-
static names(): { [key: string]: string } {
|
|
940
|
-
return {
|
|
941
|
-
resourceArn: 'ResourceArn',
|
|
942
|
-
};
|
|
943
|
-
}
|
|
565
|
+
if (!$dara.isNull(request.sortBy)) {
|
|
566
|
+
query["SortBy"] = request.sortBy;
|
|
567
|
+
}
|
|
944
568
|
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
};
|
|
949
|
-
}
|
|
569
|
+
if (!$dara.isNull(request.sortOrder)) {
|
|
570
|
+
query["SortOrder"] = request.sortOrder;
|
|
571
|
+
}
|
|
950
572
|
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
}
|
|
573
|
+
if (!$dara.isNull(request.storageClass)) {
|
|
574
|
+
query["StorageClass"] = request.storageClass;
|
|
575
|
+
}
|
|
955
576
|
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
};
|
|
972
|
-
}
|
|
973
|
-
|
|
974
|
-
constructor(map?: { [key: string]: any }) {
|
|
975
|
-
super(map);
|
|
976
|
-
}
|
|
977
|
-
}
|
|
978
|
-
|
|
979
|
-
export class EnableCheckResourceResponse extends $tea.Model {
|
|
980
|
-
headers?: { [key: string]: string };
|
|
981
|
-
statusCode?: number;
|
|
982
|
-
body?: EnableCheckResourceResponseBody;
|
|
983
|
-
static names(): { [key: string]: string } {
|
|
984
|
-
return {
|
|
985
|
-
headers: 'headers',
|
|
986
|
-
statusCode: 'statusCode',
|
|
987
|
-
body: 'body',
|
|
988
|
-
};
|
|
989
|
-
}
|
|
990
|
-
|
|
991
|
-
static types(): { [key: string]: any } {
|
|
992
|
-
return {
|
|
993
|
-
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
994
|
-
statusCode: 'number',
|
|
995
|
-
body: EnableCheckResourceResponseBody,
|
|
996
|
-
};
|
|
997
|
-
}
|
|
998
|
-
|
|
999
|
-
constructor(map?: { [key: string]: any }) {
|
|
1000
|
-
super(map);
|
|
1001
|
-
}
|
|
1002
|
-
}
|
|
1003
|
-
|
|
1004
|
-
export class GetBdrcServiceResponseBody extends $tea.Model {
|
|
1005
|
-
data?: GetBdrcServiceResponseBodyData;
|
|
1006
|
-
/**
|
|
1007
|
-
* @example
|
|
1008
|
-
* 5748C531-80B1-5C31-8421-63A1830B9E48
|
|
1009
|
-
*/
|
|
1010
|
-
requestId?: string;
|
|
1011
|
-
static names(): { [key: string]: string } {
|
|
1012
|
-
return {
|
|
1013
|
-
data: 'Data',
|
|
1014
|
-
requestId: 'RequestId',
|
|
1015
|
-
};
|
|
1016
|
-
}
|
|
1017
|
-
|
|
1018
|
-
static types(): { [key: string]: any } {
|
|
1019
|
-
return {
|
|
1020
|
-
data: GetBdrcServiceResponseBodyData,
|
|
1021
|
-
requestId: 'string',
|
|
1022
|
-
};
|
|
1023
|
-
}
|
|
1024
|
-
|
|
1025
|
-
constructor(map?: { [key: string]: any }) {
|
|
1026
|
-
super(map);
|
|
1027
|
-
}
|
|
1028
|
-
}
|
|
1029
|
-
|
|
1030
|
-
export class GetBdrcServiceResponse extends $tea.Model {
|
|
1031
|
-
headers?: { [key: string]: string };
|
|
1032
|
-
statusCode?: number;
|
|
1033
|
-
body?: GetBdrcServiceResponseBody;
|
|
1034
|
-
static names(): { [key: string]: string } {
|
|
1035
|
-
return {
|
|
1036
|
-
headers: 'headers',
|
|
1037
|
-
statusCode: 'statusCode',
|
|
1038
|
-
body: 'body',
|
|
1039
|
-
};
|
|
1040
|
-
}
|
|
1041
|
-
|
|
1042
|
-
static types(): { [key: string]: any } {
|
|
1043
|
-
return {
|
|
1044
|
-
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
1045
|
-
statusCode: 'number',
|
|
1046
|
-
body: GetBdrcServiceResponseBody,
|
|
1047
|
-
};
|
|
1048
|
-
}
|
|
1049
|
-
|
|
1050
|
-
constructor(map?: { [key: string]: any }) {
|
|
1051
|
-
super(map);
|
|
1052
|
-
}
|
|
1053
|
-
}
|
|
1054
|
-
|
|
1055
|
-
export class OpenBdrcServiceResponseBody extends $tea.Model {
|
|
1056
|
-
/**
|
|
1057
|
-
* @example
|
|
1058
|
-
* 86DEBAC9-AB6A-59AB-9E5C-A540E579ECC9
|
|
1059
|
-
*/
|
|
1060
|
-
requestId?: string;
|
|
1061
|
-
static names(): { [key: string]: string } {
|
|
1062
|
-
return {
|
|
1063
|
-
requestId: 'RequestId',
|
|
1064
|
-
};
|
|
1065
|
-
}
|
|
1066
|
-
|
|
1067
|
-
static types(): { [key: string]: any } {
|
|
1068
|
-
return {
|
|
1069
|
-
requestId: 'string',
|
|
1070
|
-
};
|
|
1071
|
-
}
|
|
1072
|
-
|
|
1073
|
-
constructor(map?: { [key: string]: any }) {
|
|
1074
|
-
super(map);
|
|
1075
|
-
}
|
|
1076
|
-
}
|
|
1077
|
-
|
|
1078
|
-
export class OpenBdrcServiceResponse extends $tea.Model {
|
|
1079
|
-
headers?: { [key: string]: string };
|
|
1080
|
-
statusCode?: number;
|
|
1081
|
-
body?: OpenBdrcServiceResponseBody;
|
|
1082
|
-
static names(): { [key: string]: string } {
|
|
1083
|
-
return {
|
|
1084
|
-
headers: 'headers',
|
|
1085
|
-
statusCode: 'statusCode',
|
|
1086
|
-
body: 'body',
|
|
1087
|
-
};
|
|
1088
|
-
}
|
|
1089
|
-
|
|
1090
|
-
static types(): { [key: string]: any } {
|
|
1091
|
-
return {
|
|
1092
|
-
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
1093
|
-
statusCode: 'number',
|
|
1094
|
-
body: OpenBdrcServiceResponseBody,
|
|
1095
|
-
};
|
|
1096
|
-
}
|
|
1097
|
-
|
|
1098
|
-
constructor(map?: { [key: string]: any }) {
|
|
1099
|
-
super(map);
|
|
1100
|
-
}
|
|
1101
|
-
}
|
|
1102
|
-
|
|
1103
|
-
export class UpdateResourcesRequest extends $tea.Model {
|
|
1104
|
-
/**
|
|
1105
|
-
* @example
|
|
1106
|
-
* ACS::ECS::Instance
|
|
1107
|
-
*/
|
|
1108
|
-
resourceType?: string;
|
|
1109
|
-
static names(): { [key: string]: string } {
|
|
1110
|
-
return {
|
|
1111
|
-
resourceType: 'ResourceType',
|
|
1112
|
-
};
|
|
1113
|
-
}
|
|
1114
|
-
|
|
1115
|
-
static types(): { [key: string]: any } {
|
|
1116
|
-
return {
|
|
1117
|
-
resourceType: 'string',
|
|
1118
|
-
};
|
|
1119
|
-
}
|
|
1120
|
-
|
|
1121
|
-
constructor(map?: { [key: string]: any }) {
|
|
1122
|
-
super(map);
|
|
1123
|
-
}
|
|
1124
|
-
}
|
|
1125
|
-
|
|
1126
|
-
export class UpdateResourcesResponseBody extends $tea.Model {
|
|
1127
|
-
data?: UpdateResourcesResponseBodyData;
|
|
1128
|
-
/**
|
|
1129
|
-
* @example
|
|
1130
|
-
* 5B2F09BF-CEBD-5A7E-AC01-E7F86169A5E5
|
|
1131
|
-
*/
|
|
1132
|
-
requestId?: string;
|
|
1133
|
-
static names(): { [key: string]: string } {
|
|
1134
|
-
return {
|
|
1135
|
-
data: 'Data',
|
|
1136
|
-
requestId: 'RequestId',
|
|
1137
|
-
};
|
|
1138
|
-
}
|
|
1139
|
-
|
|
1140
|
-
static types(): { [key: string]: any } {
|
|
1141
|
-
return {
|
|
1142
|
-
data: UpdateResourcesResponseBodyData,
|
|
1143
|
-
requestId: 'string',
|
|
1144
|
-
};
|
|
1145
|
-
}
|
|
1146
|
-
|
|
1147
|
-
constructor(map?: { [key: string]: any }) {
|
|
1148
|
-
super(map);
|
|
1149
|
-
}
|
|
1150
|
-
}
|
|
1151
|
-
|
|
1152
|
-
export class UpdateResourcesResponse extends $tea.Model {
|
|
1153
|
-
headers?: { [key: string]: string };
|
|
1154
|
-
statusCode?: number;
|
|
1155
|
-
body?: UpdateResourcesResponseBody;
|
|
1156
|
-
static names(): { [key: string]: string } {
|
|
1157
|
-
return {
|
|
1158
|
-
headers: 'headers',
|
|
1159
|
-
statusCode: 'statusCode',
|
|
1160
|
-
body: 'body',
|
|
1161
|
-
};
|
|
1162
|
-
}
|
|
1163
|
-
|
|
1164
|
-
static types(): { [key: string]: any } {
|
|
1165
|
-
return {
|
|
1166
|
-
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
1167
|
-
statusCode: 'number',
|
|
1168
|
-
body: UpdateResourcesResponseBody,
|
|
1169
|
-
};
|
|
1170
|
-
}
|
|
1171
|
-
|
|
1172
|
-
constructor(map?: { [key: string]: any }) {
|
|
1173
|
-
super(map);
|
|
1174
|
-
}
|
|
1175
|
-
}
|
|
1176
|
-
|
|
1177
|
-
export class CheckRulesResponseBodyData extends $tea.Model {
|
|
1178
|
-
/**
|
|
1179
|
-
* @example
|
|
1180
|
-
* t-0000e4w0u1v592zdf6s7
|
|
1181
|
-
*/
|
|
1182
|
-
taskId?: string;
|
|
1183
|
-
static names(): { [key: string]: string } {
|
|
1184
|
-
return {
|
|
1185
|
-
taskId: 'TaskId',
|
|
1186
|
-
};
|
|
1187
|
-
}
|
|
1188
|
-
|
|
1189
|
-
static types(): { [key: string]: any } {
|
|
1190
|
-
return {
|
|
1191
|
-
taskId: 'string',
|
|
1192
|
-
};
|
|
1193
|
-
}
|
|
1194
|
-
|
|
1195
|
-
constructor(map?: { [key: string]: any }) {
|
|
1196
|
-
super(map);
|
|
1197
|
-
}
|
|
1198
|
-
}
|
|
1199
|
-
|
|
1200
|
-
export class DescribeCheckDetailsResponseBodyDataContent extends $tea.Model {
|
|
1201
|
-
/**
|
|
1202
|
-
* @example
|
|
1203
|
-
* PASSED
|
|
1204
|
-
*/
|
|
1205
|
-
checkStatus?: string;
|
|
1206
|
-
/**
|
|
1207
|
-
* @example
|
|
1208
|
-
* 1701725715
|
|
1209
|
-
*/
|
|
1210
|
-
checkTime?: number;
|
|
1211
|
-
/**
|
|
1212
|
-
* @example
|
|
1213
|
-
* {"ecsAutoSnapshotPolicyIds":[],"hbrBackupPlans":[{"planId":"po-xxxxxxxx","sourceType":"UDM_ECS"}]}
|
|
1214
|
-
*/
|
|
1215
|
-
detail?: string;
|
|
1216
|
-
/**
|
|
1217
|
-
* @example
|
|
1218
|
-
* ecs
|
|
1219
|
-
*/
|
|
1220
|
-
productType?: string;
|
|
1221
|
-
/**
|
|
1222
|
-
* @example
|
|
1223
|
-
* acs:ecs:123***890:cn-shanghai:instance/i-001***90
|
|
1224
|
-
*/
|
|
1225
|
-
resourceArn?: string;
|
|
1226
|
-
/**
|
|
1227
|
-
* @example
|
|
1228
|
-
* i-xxxxxxxx
|
|
1229
|
-
*/
|
|
1230
|
-
resourceId?: string;
|
|
1231
|
-
/**
|
|
1232
|
-
* @example
|
|
1233
|
-
* test server
|
|
1234
|
-
*/
|
|
1235
|
-
resourceName?: string;
|
|
1236
|
-
/**
|
|
1237
|
-
* @example
|
|
1238
|
-
* ACS::ECS::Instance
|
|
1239
|
-
*/
|
|
1240
|
-
resourceType?: string;
|
|
1241
|
-
/**
|
|
1242
|
-
* @example
|
|
1243
|
-
* rule-xxxxxxxx
|
|
1244
|
-
*/
|
|
1245
|
-
ruleId?: string;
|
|
1246
|
-
/**
|
|
1247
|
-
* @example
|
|
1248
|
-
* ecs-backup
|
|
1249
|
-
*/
|
|
1250
|
-
ruleTemplate?: string;
|
|
1251
|
-
static names(): { [key: string]: string } {
|
|
1252
|
-
return {
|
|
1253
|
-
checkStatus: 'CheckStatus',
|
|
1254
|
-
checkTime: 'CheckTime',
|
|
1255
|
-
detail: 'Detail',
|
|
1256
|
-
productType: 'ProductType',
|
|
1257
|
-
resourceArn: 'ResourceArn',
|
|
1258
|
-
resourceId: 'ResourceId',
|
|
1259
|
-
resourceName: 'ResourceName',
|
|
1260
|
-
resourceType: 'ResourceType',
|
|
1261
|
-
ruleId: 'RuleId',
|
|
1262
|
-
ruleTemplate: 'RuleTemplate',
|
|
1263
|
-
};
|
|
1264
|
-
}
|
|
1265
|
-
|
|
1266
|
-
static types(): { [key: string]: any } {
|
|
1267
|
-
return {
|
|
1268
|
-
checkStatus: 'string',
|
|
1269
|
-
checkTime: 'number',
|
|
1270
|
-
detail: 'string',
|
|
1271
|
-
productType: 'string',
|
|
1272
|
-
resourceArn: 'string',
|
|
1273
|
-
resourceId: 'string',
|
|
1274
|
-
resourceName: 'string',
|
|
1275
|
-
resourceType: 'string',
|
|
1276
|
-
ruleId: 'string',
|
|
1277
|
-
ruleTemplate: 'string',
|
|
1278
|
-
};
|
|
1279
|
-
}
|
|
1280
|
-
|
|
1281
|
-
constructor(map?: { [key: string]: any }) {
|
|
1282
|
-
super(map);
|
|
1283
|
-
}
|
|
1284
|
-
}
|
|
1285
|
-
|
|
1286
|
-
export class DescribeCheckDetailsResponseBodyData extends $tea.Model {
|
|
1287
|
-
content?: DescribeCheckDetailsResponseBodyDataContent[];
|
|
1288
|
-
/**
|
|
1289
|
-
* @example
|
|
1290
|
-
* 10
|
|
1291
|
-
*/
|
|
1292
|
-
maxResults?: number;
|
|
1293
|
-
/**
|
|
1294
|
-
* @example
|
|
1295
|
-
* CAESGgoSChAKDGNvbXBsZXRlVGltZRABCgQiAggAGAAiQAoJAOTzWWYAAAAACjMDLgAAADFTNzMyZDMwMzAzMDM4NzA3NTcwMzY2MjMwNzY2ODcyMzAzMTY2Nzg3ODY5MzY=
|
|
1296
|
-
*/
|
|
1297
|
-
nextToken?: string;
|
|
1298
|
-
/**
|
|
1299
|
-
* @example
|
|
1300
|
-
* 100
|
|
1301
|
-
*/
|
|
1302
|
-
totalCount?: number;
|
|
1303
|
-
static names(): { [key: string]: string } {
|
|
1304
|
-
return {
|
|
1305
|
-
content: 'Content',
|
|
1306
|
-
maxResults: 'MaxResults',
|
|
1307
|
-
nextToken: 'NextToken',
|
|
1308
|
-
totalCount: 'TotalCount',
|
|
1309
|
-
};
|
|
1310
|
-
}
|
|
1311
|
-
|
|
1312
|
-
static types(): { [key: string]: any } {
|
|
1313
|
-
return {
|
|
1314
|
-
content: { 'type': 'array', 'itemType': DescribeCheckDetailsResponseBodyDataContent },
|
|
1315
|
-
maxResults: 'number',
|
|
1316
|
-
nextToken: 'string',
|
|
1317
|
-
totalCount: 'number',
|
|
1318
|
-
};
|
|
1319
|
-
}
|
|
1320
|
-
|
|
1321
|
-
constructor(map?: { [key: string]: any }) {
|
|
1322
|
-
super(map);
|
|
1323
|
-
}
|
|
1324
|
-
}
|
|
1325
|
-
|
|
1326
|
-
export class DescribeProductsResponseBodyDataContentProtectionScoreDistributionRange extends $tea.Model {
|
|
1327
|
-
/**
|
|
1328
|
-
* @example
|
|
1329
|
-
* 0
|
|
1330
|
-
*/
|
|
1331
|
-
from?: number;
|
|
1332
|
-
/**
|
|
1333
|
-
* @example
|
|
1334
|
-
* 60
|
|
1335
|
-
*/
|
|
1336
|
-
to?: number;
|
|
1337
|
-
static names(): { [key: string]: string } {
|
|
1338
|
-
return {
|
|
1339
|
-
from: 'From',
|
|
1340
|
-
to: 'To',
|
|
1341
|
-
};
|
|
1342
|
-
}
|
|
1343
|
-
|
|
1344
|
-
static types(): { [key: string]: any } {
|
|
1345
|
-
return {
|
|
1346
|
-
from: 'number',
|
|
1347
|
-
to: 'number',
|
|
1348
|
-
};
|
|
1349
|
-
}
|
|
1350
|
-
|
|
1351
|
-
constructor(map?: { [key: string]: any }) {
|
|
1352
|
-
super(map);
|
|
1353
|
-
}
|
|
1354
|
-
}
|
|
1355
|
-
|
|
1356
|
-
export class DescribeProductsResponseBodyDataContentProtectionScoreDistribution extends $tea.Model {
|
|
1357
|
-
/**
|
|
1358
|
-
* @example
|
|
1359
|
-
* 5
|
|
1360
|
-
*/
|
|
1361
|
-
count?: number;
|
|
1362
|
-
range?: DescribeProductsResponseBodyDataContentProtectionScoreDistributionRange;
|
|
1363
|
-
static names(): { [key: string]: string } {
|
|
1364
|
-
return {
|
|
1365
|
-
count: 'Count',
|
|
1366
|
-
range: 'Range',
|
|
1367
|
-
};
|
|
1368
|
-
}
|
|
1369
|
-
|
|
1370
|
-
static types(): { [key: string]: any } {
|
|
1371
|
-
return {
|
|
1372
|
-
count: 'number',
|
|
1373
|
-
range: DescribeProductsResponseBodyDataContentProtectionScoreDistributionRange,
|
|
1374
|
-
};
|
|
1375
|
-
}
|
|
1376
|
-
|
|
1377
|
-
constructor(map?: { [key: string]: any }) {
|
|
1378
|
-
super(map);
|
|
1379
|
-
}
|
|
1380
|
-
}
|
|
1381
|
-
|
|
1382
|
-
export class DescribeProductsResponseBodyDataContent extends $tea.Model {
|
|
1383
|
-
/**
|
|
1384
|
-
* @example
|
|
1385
|
-
* 1
|
|
1386
|
-
*/
|
|
1387
|
-
checkFailedCount?: number;
|
|
1388
|
-
/**
|
|
1389
|
-
* @example
|
|
1390
|
-
* 1
|
|
1391
|
-
*/
|
|
1392
|
-
checkFailedResourceCount?: number;
|
|
1393
|
-
/**
|
|
1394
|
-
* @example
|
|
1395
|
-
* 1
|
|
1396
|
-
*/
|
|
1397
|
-
disableCheckResourceCount?: number;
|
|
1398
|
-
/**
|
|
1399
|
-
* @example
|
|
1400
|
-
* true
|
|
1401
|
-
*/
|
|
1402
|
-
enableCheck?: boolean;
|
|
1403
|
-
/**
|
|
1404
|
-
* @example
|
|
1405
|
-
* oss
|
|
1406
|
-
*/
|
|
1407
|
-
productType?: string;
|
|
1408
|
-
/**
|
|
1409
|
-
* @example
|
|
1410
|
-
* 90
|
|
1411
|
-
*/
|
|
1412
|
-
protectionScore?: number;
|
|
1413
|
-
protectionScoreDistribution?: DescribeProductsResponseBodyDataContentProtectionScoreDistribution[];
|
|
1414
|
-
/**
|
|
1415
|
-
* @example
|
|
1416
|
-
* 1726036498
|
|
1417
|
-
*/
|
|
1418
|
-
protectionScoreUpdatedTime?: number;
|
|
1419
|
-
/**
|
|
1420
|
-
* @example
|
|
1421
|
-
* 1
|
|
1422
|
-
*/
|
|
1423
|
-
riskCount?: number;
|
|
1424
|
-
/**
|
|
1425
|
-
* @example
|
|
1426
|
-
* 1
|
|
1427
|
-
*/
|
|
1428
|
-
riskyResourceCount?: number;
|
|
1429
|
-
/**
|
|
1430
|
-
* @example
|
|
1431
|
-
* 100
|
|
1432
|
-
*/
|
|
1433
|
-
totalResourceCount?: number;
|
|
1434
|
-
static names(): { [key: string]: string } {
|
|
1435
|
-
return {
|
|
1436
|
-
checkFailedCount: 'CheckFailedCount',
|
|
1437
|
-
checkFailedResourceCount: 'CheckFailedResourceCount',
|
|
1438
|
-
disableCheckResourceCount: 'DisableCheckResourceCount',
|
|
1439
|
-
enableCheck: 'EnableCheck',
|
|
1440
|
-
productType: 'ProductType',
|
|
1441
|
-
protectionScore: 'ProtectionScore',
|
|
1442
|
-
protectionScoreDistribution: 'ProtectionScoreDistribution',
|
|
1443
|
-
protectionScoreUpdatedTime: 'ProtectionScoreUpdatedTime',
|
|
1444
|
-
riskCount: 'RiskCount',
|
|
1445
|
-
riskyResourceCount: 'RiskyResourceCount',
|
|
1446
|
-
totalResourceCount: 'TotalResourceCount',
|
|
1447
|
-
};
|
|
1448
|
-
}
|
|
1449
|
-
|
|
1450
|
-
static types(): { [key: string]: any } {
|
|
1451
|
-
return {
|
|
1452
|
-
checkFailedCount: 'number',
|
|
1453
|
-
checkFailedResourceCount: 'number',
|
|
1454
|
-
disableCheckResourceCount: 'number',
|
|
1455
|
-
enableCheck: 'boolean',
|
|
1456
|
-
productType: 'string',
|
|
1457
|
-
protectionScore: 'number',
|
|
1458
|
-
protectionScoreDistribution: { 'type': 'array', 'itemType': DescribeProductsResponseBodyDataContentProtectionScoreDistribution },
|
|
1459
|
-
protectionScoreUpdatedTime: 'number',
|
|
1460
|
-
riskCount: 'number',
|
|
1461
|
-
riskyResourceCount: 'number',
|
|
1462
|
-
totalResourceCount: 'number',
|
|
1463
|
-
};
|
|
1464
|
-
}
|
|
1465
|
-
|
|
1466
|
-
constructor(map?: { [key: string]: any }) {
|
|
1467
|
-
super(map);
|
|
1468
|
-
}
|
|
1469
|
-
}
|
|
1470
|
-
|
|
1471
|
-
export class DescribeProductsResponseBodyData extends $tea.Model {
|
|
1472
|
-
content?: DescribeProductsResponseBodyDataContent[];
|
|
1473
|
-
/**
|
|
1474
|
-
* @example
|
|
1475
|
-
* 10
|
|
1476
|
-
*/
|
|
1477
|
-
maxResults?: number;
|
|
1478
|
-
/**
|
|
1479
|
-
* @example
|
|
1480
|
-
* b4fd3cffcacafd65e3818a0b9b2ff9a2
|
|
1481
|
-
*/
|
|
1482
|
-
nextToken?: string;
|
|
1483
|
-
/**
|
|
1484
|
-
* @example
|
|
1485
|
-
* 50
|
|
1486
|
-
*/
|
|
1487
|
-
totalCount?: number;
|
|
1488
|
-
static names(): { [key: string]: string } {
|
|
1489
|
-
return {
|
|
1490
|
-
content: 'Content',
|
|
1491
|
-
maxResults: 'MaxResults',
|
|
1492
|
-
nextToken: 'NextToken',
|
|
1493
|
-
totalCount: 'TotalCount',
|
|
1494
|
-
};
|
|
1495
|
-
}
|
|
1496
|
-
|
|
1497
|
-
static types(): { [key: string]: any } {
|
|
1498
|
-
return {
|
|
1499
|
-
content: { 'type': 'array', 'itemType': DescribeProductsResponseBodyDataContent },
|
|
1500
|
-
maxResults: 'number',
|
|
1501
|
-
nextToken: 'string',
|
|
1502
|
-
totalCount: 'number',
|
|
1503
|
-
};
|
|
1504
|
-
}
|
|
1505
|
-
|
|
1506
|
-
constructor(map?: { [key: string]: any }) {
|
|
1507
|
-
super(map);
|
|
1508
|
-
}
|
|
1509
|
-
}
|
|
1510
|
-
|
|
1511
|
-
export class DescribeResourcesResponseBodyDataContent extends $tea.Model {
|
|
1512
|
-
/**
|
|
1513
|
-
* @example
|
|
1514
|
-
* 0
|
|
1515
|
-
*/
|
|
1516
|
-
archiveDataSize?: number;
|
|
1517
|
-
/**
|
|
1518
|
-
* @example
|
|
1519
|
-
* 0
|
|
1520
|
-
*/
|
|
1521
|
-
checkFailedCount?: number;
|
|
1522
|
-
/**
|
|
1523
|
-
* @example
|
|
1524
|
-
* 0
|
|
1525
|
-
*/
|
|
1526
|
-
coldArchiveDataSize?: number;
|
|
1527
|
-
/**
|
|
1528
|
-
* @example
|
|
1529
|
-
* 1697798340
|
|
1530
|
-
*/
|
|
1531
|
-
createTime?: number;
|
|
1532
|
-
/**
|
|
1533
|
-
* @example
|
|
1534
|
-
* 0
|
|
1535
|
-
*/
|
|
1536
|
-
enableCheck?: boolean;
|
|
1537
|
-
/**
|
|
1538
|
-
* @example
|
|
1539
|
-
* 0
|
|
1540
|
-
*/
|
|
1541
|
-
iaDataSize?: number;
|
|
1542
|
-
/**
|
|
1543
|
-
* @example
|
|
1544
|
-
* ecs
|
|
1545
|
-
*/
|
|
1546
|
-
productType?: string;
|
|
1547
|
-
/**
|
|
1548
|
-
* @example
|
|
1549
|
-
* 0
|
|
1550
|
-
*/
|
|
1551
|
-
protectionScore?: number;
|
|
1552
|
-
/**
|
|
1553
|
-
* @example
|
|
1554
|
-
* 0
|
|
1555
|
-
*/
|
|
1556
|
-
protectionScoreUpdatedTime?: number;
|
|
1557
|
-
/**
|
|
1558
|
-
* @example
|
|
1559
|
-
* cn-hangzhou
|
|
1560
|
-
*/
|
|
1561
|
-
regionId?: string;
|
|
1562
|
-
/**
|
|
1563
|
-
* @example
|
|
1564
|
-
* acs:ecs:cn-hangzhou:xxxxxxxx:instance/xxxxx
|
|
1565
|
-
*/
|
|
1566
|
-
resourceArn?: string;
|
|
1567
|
-
/**
|
|
1568
|
-
* @example
|
|
1569
|
-
* i-xxxxxxxx
|
|
1570
|
-
*/
|
|
1571
|
-
resourceId?: string;
|
|
1572
|
-
/**
|
|
1573
|
-
* @example
|
|
1574
|
-
* test server
|
|
1575
|
-
*/
|
|
1576
|
-
resourceName?: string;
|
|
1577
|
-
/**
|
|
1578
|
-
* @example
|
|
1579
|
-
* ACS::ECS::Instance
|
|
1580
|
-
*/
|
|
1581
|
-
resourceType?: string;
|
|
1582
|
-
/**
|
|
1583
|
-
* @example
|
|
1584
|
-
* 0
|
|
1585
|
-
*/
|
|
1586
|
-
riskCount?: number;
|
|
1587
|
-
/**
|
|
1588
|
-
* @example
|
|
1589
|
-
* 0
|
|
1590
|
-
*/
|
|
1591
|
-
standardDataSize?: number;
|
|
1592
|
-
/**
|
|
1593
|
-
* @example
|
|
1594
|
-
* Running
|
|
1595
|
-
*/
|
|
1596
|
-
status?: string;
|
|
1597
|
-
/**
|
|
1598
|
-
* @example
|
|
1599
|
-
* 0
|
|
1600
|
-
*/
|
|
1601
|
-
totalDataSize?: number;
|
|
1602
|
-
/**
|
|
1603
|
-
* @remarks
|
|
1604
|
-
* vSwitch ID
|
|
1605
|
-
*
|
|
1606
|
-
* @example
|
|
1607
|
-
* vsw-xxxxxxxx
|
|
1608
|
-
*/
|
|
1609
|
-
vSwitchId?: string;
|
|
1610
|
-
/**
|
|
1611
|
-
* @remarks
|
|
1612
|
-
* vpc ID
|
|
1613
|
-
*
|
|
1614
|
-
* @example
|
|
1615
|
-
* vpc-xxxxxxxx
|
|
1616
|
-
*/
|
|
1617
|
-
vpcId?: string;
|
|
1618
|
-
/**
|
|
1619
|
-
* @example
|
|
1620
|
-
* cn-hangzhou-i
|
|
1621
|
-
*/
|
|
1622
|
-
zoneId?: string;
|
|
1623
|
-
static names(): { [key: string]: string } {
|
|
1624
|
-
return {
|
|
1625
|
-
archiveDataSize: 'ArchiveDataSize',
|
|
1626
|
-
checkFailedCount: 'CheckFailedCount',
|
|
1627
|
-
coldArchiveDataSize: 'ColdArchiveDataSize',
|
|
1628
|
-
createTime: 'CreateTime',
|
|
1629
|
-
enableCheck: 'EnableCheck',
|
|
1630
|
-
iaDataSize: 'IaDataSize',
|
|
1631
|
-
productType: 'ProductType',
|
|
1632
|
-
protectionScore: 'ProtectionScore',
|
|
1633
|
-
protectionScoreUpdatedTime: 'ProtectionScoreUpdatedTime',
|
|
1634
|
-
regionId: 'RegionId',
|
|
1635
|
-
resourceArn: 'ResourceArn',
|
|
1636
|
-
resourceId: 'ResourceId',
|
|
1637
|
-
resourceName: 'ResourceName',
|
|
1638
|
-
resourceType: 'ResourceType',
|
|
1639
|
-
riskCount: 'RiskCount',
|
|
1640
|
-
standardDataSize: 'StandardDataSize',
|
|
1641
|
-
status: 'Status',
|
|
1642
|
-
totalDataSize: 'TotalDataSize',
|
|
1643
|
-
vSwitchId: 'VSwitchId',
|
|
1644
|
-
vpcId: 'VpcId',
|
|
1645
|
-
zoneId: 'ZoneId',
|
|
1646
|
-
};
|
|
1647
|
-
}
|
|
1648
|
-
|
|
1649
|
-
static types(): { [key: string]: any } {
|
|
1650
|
-
return {
|
|
1651
|
-
archiveDataSize: 'number',
|
|
1652
|
-
checkFailedCount: 'number',
|
|
1653
|
-
coldArchiveDataSize: 'number',
|
|
1654
|
-
createTime: 'number',
|
|
1655
|
-
enableCheck: 'boolean',
|
|
1656
|
-
iaDataSize: 'number',
|
|
1657
|
-
productType: 'string',
|
|
1658
|
-
protectionScore: 'number',
|
|
1659
|
-
protectionScoreUpdatedTime: 'number',
|
|
1660
|
-
regionId: 'string',
|
|
1661
|
-
resourceArn: 'string',
|
|
1662
|
-
resourceId: 'string',
|
|
1663
|
-
resourceName: 'string',
|
|
1664
|
-
resourceType: 'string',
|
|
1665
|
-
riskCount: 'number',
|
|
1666
|
-
standardDataSize: 'number',
|
|
1667
|
-
status: 'string',
|
|
1668
|
-
totalDataSize: 'number',
|
|
1669
|
-
vSwitchId: 'string',
|
|
1670
|
-
vpcId: 'string',
|
|
1671
|
-
zoneId: 'string',
|
|
1672
|
-
};
|
|
1673
|
-
}
|
|
1674
|
-
|
|
1675
|
-
constructor(map?: { [key: string]: any }) {
|
|
1676
|
-
super(map);
|
|
1677
|
-
}
|
|
1678
|
-
}
|
|
1679
|
-
|
|
1680
|
-
export class DescribeResourcesResponseBodyData extends $tea.Model {
|
|
1681
|
-
content?: DescribeResourcesResponseBodyDataContent[];
|
|
1682
|
-
/**
|
|
1683
|
-
* @example
|
|
1684
|
-
* 100
|
|
1685
|
-
*/
|
|
1686
|
-
maxResults?: number;
|
|
1687
|
-
/**
|
|
1688
|
-
* @example
|
|
1689
|
-
* fb836242f4225fa0f0e0257362dfc6dd
|
|
1690
|
-
*/
|
|
1691
|
-
nextToken?: string;
|
|
1692
|
-
/**
|
|
1693
|
-
* @example
|
|
1694
|
-
* 149
|
|
1695
|
-
*/
|
|
1696
|
-
totalCount?: number;
|
|
1697
|
-
static names(): { [key: string]: string } {
|
|
1698
|
-
return {
|
|
1699
|
-
content: 'Content',
|
|
1700
|
-
maxResults: 'MaxResults',
|
|
1701
|
-
nextToken: 'NextToken',
|
|
1702
|
-
totalCount: 'TotalCount',
|
|
1703
|
-
};
|
|
1704
|
-
}
|
|
1705
|
-
|
|
1706
|
-
static types(): { [key: string]: any } {
|
|
1707
|
-
return {
|
|
1708
|
-
content: { 'type': 'array', 'itemType': DescribeResourcesResponseBodyDataContent },
|
|
1709
|
-
maxResults: 'number',
|
|
1710
|
-
nextToken: 'string',
|
|
1711
|
-
totalCount: 'number',
|
|
1712
|
-
};
|
|
1713
|
-
}
|
|
1714
|
-
|
|
1715
|
-
constructor(map?: { [key: string]: any }) {
|
|
1716
|
-
super(map);
|
|
1717
|
-
}
|
|
1718
|
-
}
|
|
1719
|
-
|
|
1720
|
-
export class DescribeRulesResponseBodyDataContent extends $tea.Model {
|
|
1721
|
-
/**
|
|
1722
|
-
* @example
|
|
1723
|
-
* 0
|
|
1724
|
-
*/
|
|
1725
|
-
checkFailedResourceCount?: number;
|
|
1726
|
-
/**
|
|
1727
|
-
* @example
|
|
1728
|
-
* PASSED
|
|
1729
|
-
*/
|
|
1730
|
-
checkStatus?: string;
|
|
1731
|
-
/**
|
|
1732
|
-
* @example
|
|
1733
|
-
* 1704157635
|
|
1734
|
-
*/
|
|
1735
|
-
checkTime?: number;
|
|
1736
|
-
/**
|
|
1737
|
-
* @example
|
|
1738
|
-
* ecs
|
|
1739
|
-
*/
|
|
1740
|
-
productType?: string;
|
|
1741
|
-
/**
|
|
1742
|
-
* @example
|
|
1743
|
-
* ACS::ECS::Instance
|
|
1744
|
-
*/
|
|
1745
|
-
resourceType?: string;
|
|
1746
|
-
/**
|
|
1747
|
-
* @example
|
|
1748
|
-
* 0
|
|
1749
|
-
*/
|
|
1750
|
-
riskyResourceCount?: number;
|
|
1751
|
-
/**
|
|
1752
|
-
* @example
|
|
1753
|
-
* rule-bp11ggd8wr762
|
|
1754
|
-
*/
|
|
1755
|
-
ruleId?: string;
|
|
1756
|
-
/**
|
|
1757
|
-
* @example
|
|
1758
|
-
* ecs-backup
|
|
1759
|
-
*/
|
|
1760
|
-
ruleTemplate?: string;
|
|
1761
|
-
/**
|
|
1762
|
-
* @example
|
|
1763
|
-
* 1
|
|
1764
|
-
*/
|
|
1765
|
-
totalResourceCount?: number;
|
|
1766
|
-
static names(): { [key: string]: string } {
|
|
1767
|
-
return {
|
|
1768
|
-
checkFailedResourceCount: 'CheckFailedResourceCount',
|
|
1769
|
-
checkStatus: 'CheckStatus',
|
|
1770
|
-
checkTime: 'CheckTime',
|
|
1771
|
-
productType: 'ProductType',
|
|
1772
|
-
resourceType: 'ResourceType',
|
|
1773
|
-
riskyResourceCount: 'RiskyResourceCount',
|
|
1774
|
-
ruleId: 'RuleId',
|
|
1775
|
-
ruleTemplate: 'RuleTemplate',
|
|
1776
|
-
totalResourceCount: 'TotalResourceCount',
|
|
1777
|
-
};
|
|
1778
|
-
}
|
|
1779
|
-
|
|
1780
|
-
static types(): { [key: string]: any } {
|
|
1781
|
-
return {
|
|
1782
|
-
checkFailedResourceCount: 'number',
|
|
1783
|
-
checkStatus: 'string',
|
|
1784
|
-
checkTime: 'number',
|
|
1785
|
-
productType: 'string',
|
|
1786
|
-
resourceType: 'string',
|
|
1787
|
-
riskyResourceCount: 'number',
|
|
1788
|
-
ruleId: 'string',
|
|
1789
|
-
ruleTemplate: 'string',
|
|
1790
|
-
totalResourceCount: 'number',
|
|
1791
|
-
};
|
|
1792
|
-
}
|
|
1793
|
-
|
|
1794
|
-
constructor(map?: { [key: string]: any }) {
|
|
1795
|
-
super(map);
|
|
1796
|
-
}
|
|
1797
|
-
}
|
|
1798
|
-
|
|
1799
|
-
export class DescribeRulesResponseBodyData extends $tea.Model {
|
|
1800
|
-
content?: DescribeRulesResponseBodyDataContent[];
|
|
1801
|
-
/**
|
|
1802
|
-
* @example
|
|
1803
|
-
* 10
|
|
1804
|
-
*/
|
|
1805
|
-
maxResults?: number;
|
|
1806
|
-
/**
|
|
1807
|
-
* @example
|
|
1808
|
-
* 0975951c75d7b41464c8d08ae17043ca
|
|
1809
|
-
*/
|
|
1810
|
-
nextToken?: string;
|
|
1811
|
-
/**
|
|
1812
|
-
* @example
|
|
1813
|
-
* 42
|
|
1814
|
-
*/
|
|
1815
|
-
totalCount?: number;
|
|
1816
|
-
static names(): { [key: string]: string } {
|
|
1817
|
-
return {
|
|
1818
|
-
content: 'Content',
|
|
1819
|
-
maxResults: 'MaxResults',
|
|
1820
|
-
nextToken: 'NextToken',
|
|
1821
|
-
totalCount: 'TotalCount',
|
|
1822
|
-
};
|
|
1823
|
-
}
|
|
1824
|
-
|
|
1825
|
-
static types(): { [key: string]: any } {
|
|
1826
|
-
return {
|
|
1827
|
-
content: { 'type': 'array', 'itemType': DescribeRulesResponseBodyDataContent },
|
|
1828
|
-
maxResults: 'number',
|
|
1829
|
-
nextToken: 'string',
|
|
1830
|
-
totalCount: 'number',
|
|
1831
|
-
};
|
|
1832
|
-
}
|
|
1833
|
-
|
|
1834
|
-
constructor(map?: { [key: string]: any }) {
|
|
1835
|
-
super(map);
|
|
1836
|
-
}
|
|
1837
|
-
}
|
|
1838
|
-
|
|
1839
|
-
export class DescribeTaskResponseBodyData extends $tea.Model {
|
|
1840
|
-
/**
|
|
1841
|
-
* @example
|
|
1842
|
-
* 1724983927
|
|
1843
|
-
*/
|
|
1844
|
-
completeTime?: number;
|
|
1845
|
-
/**
|
|
1846
|
-
* @example
|
|
1847
|
-
* too many requests.
|
|
1848
|
-
*/
|
|
1849
|
-
errorMessage?: string;
|
|
1850
|
-
executionId?: string;
|
|
1851
|
-
/**
|
|
1852
|
-
* @example
|
|
1853
|
-
* 1719026680
|
|
1854
|
-
*/
|
|
1855
|
-
expireTime?: number;
|
|
1856
|
-
/**
|
|
1857
|
-
* @example
|
|
1858
|
-
* 100
|
|
1859
|
-
*/
|
|
1860
|
-
progress?: number;
|
|
1861
|
-
/**
|
|
1862
|
-
* @example
|
|
1863
|
-
* 784076D6-BD6D-5564-9CEA-834EB11F0C62
|
|
1864
|
-
*/
|
|
1865
|
-
requestId?: string;
|
|
1866
|
-
/**
|
|
1867
|
-
* @example
|
|
1868
|
-
* 1724983927
|
|
1869
|
-
*/
|
|
1870
|
-
startTime?: number;
|
|
1871
|
-
taskDescription?: string;
|
|
1872
|
-
/**
|
|
1873
|
-
* @example
|
|
1874
|
-
* {"resourceTypes":["ACS::ECS::Instance","ACS::OSS::Bucket","ACS::OTS::Instance","ACS::NAS::FileSystem"]}
|
|
1875
|
-
*/
|
|
1876
|
-
taskDetail?: string;
|
|
1877
|
-
/**
|
|
1878
|
-
* @example
|
|
1879
|
-
* t-xxxxxxxx
|
|
1880
|
-
*/
|
|
1881
|
-
taskId?: string;
|
|
1882
|
-
/**
|
|
1883
|
-
* @example
|
|
1884
|
-
* test5566
|
|
1885
|
-
*/
|
|
1886
|
-
taskName?: string;
|
|
1887
|
-
taskPriority?: string;
|
|
1888
|
-
/**
|
|
1889
|
-
* @example
|
|
1890
|
-
* RUNNING
|
|
1891
|
-
*/
|
|
1892
|
-
taskStatus?: string;
|
|
1893
|
-
/**
|
|
1894
|
-
* @example
|
|
1895
|
-
* UPDATE_RESOURCES
|
|
1896
|
-
*/
|
|
1897
|
-
taskType?: string;
|
|
1898
|
-
static names(): { [key: string]: string } {
|
|
1899
|
-
return {
|
|
1900
|
-
completeTime: 'CompleteTime',
|
|
1901
|
-
errorMessage: 'ErrorMessage',
|
|
1902
|
-
executionId: 'ExecutionId',
|
|
1903
|
-
expireTime: 'ExpireTime',
|
|
1904
|
-
progress: 'Progress',
|
|
1905
|
-
requestId: 'RequestId',
|
|
1906
|
-
startTime: 'StartTime',
|
|
1907
|
-
taskDescription: 'TaskDescription',
|
|
1908
|
-
taskDetail: 'TaskDetail',
|
|
1909
|
-
taskId: 'TaskId',
|
|
1910
|
-
taskName: 'TaskName',
|
|
1911
|
-
taskPriority: 'TaskPriority',
|
|
1912
|
-
taskStatus: 'TaskStatus',
|
|
1913
|
-
taskType: 'TaskType',
|
|
1914
|
-
};
|
|
1915
|
-
}
|
|
1916
|
-
|
|
1917
|
-
static types(): { [key: string]: any } {
|
|
1918
|
-
return {
|
|
1919
|
-
completeTime: 'number',
|
|
1920
|
-
errorMessage: 'string',
|
|
1921
|
-
executionId: 'string',
|
|
1922
|
-
expireTime: 'number',
|
|
1923
|
-
progress: 'number',
|
|
1924
|
-
requestId: 'string',
|
|
1925
|
-
startTime: 'number',
|
|
1926
|
-
taskDescription: 'string',
|
|
1927
|
-
taskDetail: 'string',
|
|
1928
|
-
taskId: 'string',
|
|
1929
|
-
taskName: 'string',
|
|
1930
|
-
taskPriority: 'string',
|
|
1931
|
-
taskStatus: 'string',
|
|
1932
|
-
taskType: 'string',
|
|
1933
|
-
};
|
|
1934
|
-
}
|
|
1935
|
-
|
|
1936
|
-
constructor(map?: { [key: string]: any }) {
|
|
1937
|
-
super(map);
|
|
1938
|
-
}
|
|
1939
|
-
}
|
|
1940
|
-
|
|
1941
|
-
export class DescribeTasksResponseBodyDataContent extends $tea.Model {
|
|
1942
|
-
/**
|
|
1943
|
-
* @example
|
|
1944
|
-
* 1724983927
|
|
1945
|
-
*/
|
|
1946
|
-
completeTime?: number;
|
|
1947
|
-
/**
|
|
1948
|
-
* @example
|
|
1949
|
-
* device not online
|
|
1950
|
-
*/
|
|
1951
|
-
errorMessage?: string;
|
|
1952
|
-
/**
|
|
1953
|
-
* @example
|
|
1954
|
-
* empty
|
|
1955
|
-
*/
|
|
1956
|
-
executionId?: string;
|
|
1957
|
-
/**
|
|
1958
|
-
* @example
|
|
1959
|
-
* 1724983927
|
|
1960
|
-
*/
|
|
1961
|
-
expireTime?: number;
|
|
1962
|
-
/**
|
|
1963
|
-
* @example
|
|
1964
|
-
* 100
|
|
1965
|
-
*/
|
|
1966
|
-
progress?: number;
|
|
1967
|
-
/**
|
|
1968
|
-
* @example
|
|
1969
|
-
* AE43C4CB-8074-5EBD-9806-8CA6D12800B1
|
|
1970
|
-
*/
|
|
1971
|
-
requestId?: string;
|
|
1972
|
-
/**
|
|
1973
|
-
* @example
|
|
1974
|
-
* 1724983927
|
|
1975
|
-
*/
|
|
1976
|
-
startTime?: number;
|
|
1977
|
-
/**
|
|
1978
|
-
* @example
|
|
1979
|
-
* empty
|
|
1980
|
-
*/
|
|
1981
|
-
taskDescription?: string;
|
|
1982
|
-
/**
|
|
1983
|
-
* @example
|
|
1984
|
-
* {"resourceTypes":["ACS::ECS::Instance","ACS::OSS::Bucket","ACS::OTS::Instance","ACS::NAS::FileSystem"]}
|
|
1985
|
-
*/
|
|
1986
|
-
taskDetail?: string;
|
|
1987
|
-
/**
|
|
1988
|
-
* @example
|
|
1989
|
-
* t-0000e4w0u1v592zdf6s7
|
|
1990
|
-
*/
|
|
1991
|
-
taskId?: string;
|
|
1992
|
-
/**
|
|
1993
|
-
* @example
|
|
1994
|
-
* empty
|
|
1995
|
-
*/
|
|
1996
|
-
taskName?: string;
|
|
1997
|
-
/**
|
|
1998
|
-
* @example
|
|
1999
|
-
* HIGH
|
|
2000
|
-
*/
|
|
2001
|
-
taskPriority?: string;
|
|
2002
|
-
/**
|
|
2003
|
-
* @example
|
|
2004
|
-
* RUNNING
|
|
2005
|
-
*/
|
|
2006
|
-
taskStatus?: string;
|
|
2007
|
-
/**
|
|
2008
|
-
* @example
|
|
2009
|
-
* UPDATE_RESOURCES
|
|
2010
|
-
*/
|
|
2011
|
-
taskType?: string;
|
|
2012
|
-
static names(): { [key: string]: string } {
|
|
2013
|
-
return {
|
|
2014
|
-
completeTime: 'CompleteTime',
|
|
2015
|
-
errorMessage: 'ErrorMessage',
|
|
2016
|
-
executionId: 'ExecutionId',
|
|
2017
|
-
expireTime: 'ExpireTime',
|
|
2018
|
-
progress: 'Progress',
|
|
2019
|
-
requestId: 'RequestId',
|
|
2020
|
-
startTime: 'StartTime',
|
|
2021
|
-
taskDescription: 'TaskDescription',
|
|
2022
|
-
taskDetail: 'TaskDetail',
|
|
2023
|
-
taskId: 'TaskId',
|
|
2024
|
-
taskName: 'TaskName',
|
|
2025
|
-
taskPriority: 'TaskPriority',
|
|
2026
|
-
taskStatus: 'TaskStatus',
|
|
2027
|
-
taskType: 'TaskType',
|
|
2028
|
-
};
|
|
2029
|
-
}
|
|
2030
|
-
|
|
2031
|
-
static types(): { [key: string]: any } {
|
|
2032
|
-
return {
|
|
2033
|
-
completeTime: 'number',
|
|
2034
|
-
errorMessage: 'string',
|
|
2035
|
-
executionId: 'string',
|
|
2036
|
-
expireTime: 'number',
|
|
2037
|
-
progress: 'number',
|
|
2038
|
-
requestId: 'string',
|
|
2039
|
-
startTime: 'number',
|
|
2040
|
-
taskDescription: 'string',
|
|
2041
|
-
taskDetail: 'string',
|
|
2042
|
-
taskId: 'string',
|
|
2043
|
-
taskName: 'string',
|
|
2044
|
-
taskPriority: 'string',
|
|
2045
|
-
taskStatus: 'string',
|
|
2046
|
-
taskType: 'string',
|
|
2047
|
-
};
|
|
2048
|
-
}
|
|
2049
|
-
|
|
2050
|
-
constructor(map?: { [key: string]: any }) {
|
|
2051
|
-
super(map);
|
|
2052
|
-
}
|
|
2053
|
-
}
|
|
2054
|
-
|
|
2055
|
-
export class DescribeTasksResponseBodyData extends $tea.Model {
|
|
2056
|
-
content?: DescribeTasksResponseBodyDataContent[];
|
|
2057
|
-
/**
|
|
2058
|
-
* @example
|
|
2059
|
-
* 10
|
|
2060
|
-
*/
|
|
2061
|
-
maxResults?: number;
|
|
2062
|
-
/**
|
|
2063
|
-
* @example
|
|
2064
|
-
* f4b8c2504545a3b41af5e75147d17d12e3818a0b9b2ff9a2
|
|
2065
|
-
*/
|
|
2066
|
-
nextToken?: string;
|
|
2067
|
-
/**
|
|
2068
|
-
* @example
|
|
2069
|
-
* 100
|
|
2070
|
-
*/
|
|
2071
|
-
totalCount?: number;
|
|
2072
|
-
static names(): { [key: string]: string } {
|
|
2073
|
-
return {
|
|
2074
|
-
content: 'Content',
|
|
2075
|
-
maxResults: 'MaxResults',
|
|
2076
|
-
nextToken: 'NextToken',
|
|
2077
|
-
totalCount: 'TotalCount',
|
|
2078
|
-
};
|
|
2079
|
-
}
|
|
2080
|
-
|
|
2081
|
-
static types(): { [key: string]: any } {
|
|
2082
|
-
return {
|
|
2083
|
-
content: { 'type': 'array', 'itemType': DescribeTasksResponseBodyDataContent },
|
|
2084
|
-
maxResults: 'number',
|
|
2085
|
-
nextToken: 'string',
|
|
2086
|
-
totalCount: 'number',
|
|
2087
|
-
};
|
|
2088
|
-
}
|
|
2089
|
-
|
|
2090
|
-
constructor(map?: { [key: string]: any }) {
|
|
2091
|
-
super(map);
|
|
2092
|
-
}
|
|
2093
|
-
}
|
|
2094
|
-
|
|
2095
|
-
export class DescribeTopRiskyResourcesResponseBodyDataContent extends $tea.Model {
|
|
2096
|
-
/**
|
|
2097
|
-
* @example
|
|
2098
|
-
* 0
|
|
2099
|
-
*/
|
|
2100
|
-
archiveDataSize?: number;
|
|
2101
|
-
/**
|
|
2102
|
-
* @example
|
|
2103
|
-
* 0
|
|
2104
|
-
*/
|
|
2105
|
-
checkFailedCount?: number;
|
|
2106
|
-
/**
|
|
2107
|
-
* @example
|
|
2108
|
-
* 0
|
|
2109
|
-
*/
|
|
2110
|
-
coldArchiveDataSize?: number;
|
|
2111
|
-
/**
|
|
2112
|
-
* @example
|
|
2113
|
-
* 1697798340
|
|
2114
|
-
*/
|
|
2115
|
-
createTime?: number;
|
|
2116
|
-
/**
|
|
2117
|
-
* @example
|
|
2118
|
-
* true
|
|
2119
|
-
*/
|
|
2120
|
-
enableCheck?: boolean;
|
|
2121
|
-
/**
|
|
2122
|
-
* @example
|
|
2123
|
-
* 0
|
|
2124
|
-
*/
|
|
2125
|
-
iaDataSize?: number;
|
|
2126
|
-
/**
|
|
2127
|
-
* @example
|
|
2128
|
-
* ecs
|
|
2129
|
-
*/
|
|
2130
|
-
productType?: string;
|
|
2131
|
-
/**
|
|
2132
|
-
* @example
|
|
2133
|
-
* 90
|
|
2134
|
-
*/
|
|
2135
|
-
protectionScore?: number;
|
|
2136
|
-
/**
|
|
2137
|
-
* @example
|
|
2138
|
-
* 1726036498
|
|
2139
|
-
*/
|
|
2140
|
-
protectionScoreUpdatedTime?: number;
|
|
2141
|
-
/**
|
|
2142
|
-
* @example
|
|
2143
|
-
* cn-hangzhou
|
|
2144
|
-
*/
|
|
2145
|
-
regionId?: string;
|
|
2146
|
-
/**
|
|
2147
|
-
* @example
|
|
2148
|
-
* acs:ecs:cn-hangzhou:xxxxxxxx:instance/xxxxx
|
|
2149
|
-
*/
|
|
2150
|
-
resourceArn?: string;
|
|
2151
|
-
/**
|
|
2152
|
-
* @example
|
|
2153
|
-
* i-xxxxxxxx
|
|
2154
|
-
*/
|
|
2155
|
-
resourceId?: string;
|
|
2156
|
-
/**
|
|
2157
|
-
* @example
|
|
2158
|
-
* test-server
|
|
2159
|
-
*/
|
|
2160
|
-
resourceName?: string;
|
|
2161
|
-
/**
|
|
2162
|
-
* @example
|
|
2163
|
-
* ACS::ECS::Instance
|
|
2164
|
-
*/
|
|
2165
|
-
resourceType?: string;
|
|
2166
|
-
/**
|
|
2167
|
-
* @example
|
|
2168
|
-
* 0
|
|
2169
|
-
*/
|
|
2170
|
-
riskCount?: number;
|
|
2171
|
-
/**
|
|
2172
|
-
* @example
|
|
2173
|
-
* 0
|
|
2174
|
-
*/
|
|
2175
|
-
standardDataSize?: number;
|
|
2176
|
-
/**
|
|
2177
|
-
* @example
|
|
2178
|
-
* Running
|
|
2179
|
-
*/
|
|
2180
|
-
status?: string;
|
|
2181
|
-
/**
|
|
2182
|
-
* @example
|
|
2183
|
-
* 0
|
|
2184
|
-
*/
|
|
2185
|
-
totalDataSize?: number;
|
|
2186
|
-
/**
|
|
2187
|
-
* @remarks
|
|
2188
|
-
* vSwitch ID
|
|
2189
|
-
*
|
|
2190
|
-
* @example
|
|
2191
|
-
* vsw-xxxxxxxx
|
|
2192
|
-
*/
|
|
2193
|
-
vSwitchId?: string;
|
|
2194
|
-
/**
|
|
2195
|
-
* @remarks
|
|
2196
|
-
* vpc ID
|
|
2197
|
-
*
|
|
2198
|
-
* @example
|
|
2199
|
-
* vpc-xxxxxxxx
|
|
2200
|
-
*/
|
|
2201
|
-
vpcId?: string;
|
|
2202
|
-
/**
|
|
2203
|
-
* @example
|
|
2204
|
-
* cn-hangzhou-j
|
|
2205
|
-
*/
|
|
2206
|
-
zoneId?: string;
|
|
2207
|
-
static names(): { [key: string]: string } {
|
|
2208
|
-
return {
|
|
2209
|
-
archiveDataSize: 'ArchiveDataSize',
|
|
2210
|
-
checkFailedCount: 'CheckFailedCount',
|
|
2211
|
-
coldArchiveDataSize: 'ColdArchiveDataSize',
|
|
2212
|
-
createTime: 'CreateTime',
|
|
2213
|
-
enableCheck: 'EnableCheck',
|
|
2214
|
-
iaDataSize: 'IaDataSize',
|
|
2215
|
-
productType: 'ProductType',
|
|
2216
|
-
protectionScore: 'ProtectionScore',
|
|
2217
|
-
protectionScoreUpdatedTime: 'ProtectionScoreUpdatedTime',
|
|
2218
|
-
regionId: 'RegionId',
|
|
2219
|
-
resourceArn: 'ResourceArn',
|
|
2220
|
-
resourceId: 'ResourceId',
|
|
2221
|
-
resourceName: 'ResourceName',
|
|
2222
|
-
resourceType: 'ResourceType',
|
|
2223
|
-
riskCount: 'RiskCount',
|
|
2224
|
-
standardDataSize: 'StandardDataSize',
|
|
2225
|
-
status: 'Status',
|
|
2226
|
-
totalDataSize: 'TotalDataSize',
|
|
2227
|
-
vSwitchId: 'VSwitchId',
|
|
2228
|
-
vpcId: 'VpcId',
|
|
2229
|
-
zoneId: 'ZoneId',
|
|
2230
|
-
};
|
|
2231
|
-
}
|
|
2232
|
-
|
|
2233
|
-
static types(): { [key: string]: any } {
|
|
2234
|
-
return {
|
|
2235
|
-
archiveDataSize: 'number',
|
|
2236
|
-
checkFailedCount: 'number',
|
|
2237
|
-
coldArchiveDataSize: 'number',
|
|
2238
|
-
createTime: 'number',
|
|
2239
|
-
enableCheck: 'boolean',
|
|
2240
|
-
iaDataSize: 'number',
|
|
2241
|
-
productType: 'string',
|
|
2242
|
-
protectionScore: 'number',
|
|
2243
|
-
protectionScoreUpdatedTime: 'number',
|
|
2244
|
-
regionId: 'string',
|
|
2245
|
-
resourceArn: 'string',
|
|
2246
|
-
resourceId: 'string',
|
|
2247
|
-
resourceName: 'string',
|
|
2248
|
-
resourceType: 'string',
|
|
2249
|
-
riskCount: 'number',
|
|
2250
|
-
standardDataSize: 'number',
|
|
2251
|
-
status: 'string',
|
|
2252
|
-
totalDataSize: 'number',
|
|
2253
|
-
vSwitchId: 'string',
|
|
2254
|
-
vpcId: 'string',
|
|
2255
|
-
zoneId: 'string',
|
|
2256
|
-
};
|
|
2257
|
-
}
|
|
2258
|
-
|
|
2259
|
-
constructor(map?: { [key: string]: any }) {
|
|
2260
|
-
super(map);
|
|
577
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
578
|
+
headers: headers,
|
|
579
|
+
query: OpenApiUtil.query(query),
|
|
580
|
+
});
|
|
581
|
+
let params = new $OpenApiUtil.Params({
|
|
582
|
+
action: "DescribeResources",
|
|
583
|
+
version: "2023-08-08",
|
|
584
|
+
protocol: "HTTPS",
|
|
585
|
+
pathname: `/api/v1/resources`,
|
|
586
|
+
method: "GET",
|
|
587
|
+
authType: "AK",
|
|
588
|
+
style: "ROA",
|
|
589
|
+
reqBodyType: "json",
|
|
590
|
+
bodyType: "json",
|
|
591
|
+
});
|
|
592
|
+
return $dara.cast<$_model.DescribeResourcesResponse>(await this.callApi(params, req, runtime), new $_model.DescribeResourcesResponse({}));
|
|
2261
593
|
}
|
|
2262
|
-
}
|
|
2263
594
|
|
|
2264
|
-
export class DescribeTopRiskyResourcesResponseBodyData extends $tea.Model {
|
|
2265
|
-
content?: DescribeTopRiskyResourcesResponseBodyDataContent[];
|
|
2266
|
-
/**
|
|
2267
|
-
* @example
|
|
2268
|
-
* 10
|
|
2269
|
-
*/
|
|
2270
|
-
maxResults?: number;
|
|
2271
595
|
/**
|
|
2272
|
-
*
|
|
2273
|
-
*
|
|
596
|
+
* Query resources
|
|
597
|
+
*
|
|
598
|
+
* @param request - DescribeResourcesRequest
|
|
599
|
+
* @returns DescribeResourcesResponse
|
|
2274
600
|
*/
|
|
2275
|
-
|
|
601
|
+
async describeResources(request: $_model.DescribeResourcesRequest): Promise<$_model.DescribeResourcesResponse> {
|
|
602
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
603
|
+
let headers : {[key: string ]: string} = { };
|
|
604
|
+
return await this.describeResourcesWithOptions(request, headers, runtime);
|
|
605
|
+
}
|
|
606
|
+
|
|
2276
607
|
/**
|
|
2277
|
-
*
|
|
2278
|
-
*
|
|
608
|
+
* Lists all data protection rules.
|
|
609
|
+
*
|
|
610
|
+
* @param tmpReq - DescribeRulesRequest
|
|
611
|
+
* @param headers - map
|
|
612
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
613
|
+
* @returns DescribeRulesResponse
|
|
2279
614
|
*/
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
};
|
|
2288
|
-
}
|
|
615
|
+
async describeRulesWithOptions(tmpReq: $_model.DescribeRulesRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeRulesResponse> {
|
|
616
|
+
tmpReq.validate();
|
|
617
|
+
let request = new $_model.DescribeRulesShrinkRequest({ });
|
|
618
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
619
|
+
if (!$dara.isNull(tmpReq.resourceOwnerIds)) {
|
|
620
|
+
request.resourceOwnerIdsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.resourceOwnerIds, "ResourceOwnerIds", "json");
|
|
621
|
+
}
|
|
2289
622
|
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
|
|
623
|
+
let query : {[key: string ]: any} = { };
|
|
624
|
+
if (!$dara.isNull(request.maxResults)) {
|
|
625
|
+
query["MaxResults"] = request.maxResults;
|
|
626
|
+
}
|
|
627
|
+
|
|
628
|
+
if (!$dara.isNull(request.nextToken)) {
|
|
629
|
+
query["NextToken"] = request.nextToken;
|
|
630
|
+
}
|
|
631
|
+
|
|
632
|
+
if (!$dara.isNull(request.resourceCategoryId)) {
|
|
633
|
+
query["ResourceCategoryId"] = request.resourceCategoryId;
|
|
634
|
+
}
|
|
635
|
+
|
|
636
|
+
if (!$dara.isNull(request.resourceOwnerIdsShrink)) {
|
|
637
|
+
query["ResourceOwnerIds"] = request.resourceOwnerIdsShrink;
|
|
638
|
+
}
|
|
639
|
+
|
|
640
|
+
if (!$dara.isNull(request.resourceRegionId)) {
|
|
641
|
+
query["ResourceRegionId"] = request.resourceRegionId;
|
|
642
|
+
}
|
|
643
|
+
|
|
644
|
+
if (!$dara.isNull(request.resourceType)) {
|
|
645
|
+
query["ResourceType"] = request.resourceType;
|
|
646
|
+
}
|
|
2298
647
|
|
|
2299
|
-
|
|
2300
|
-
|
|
648
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
649
|
+
headers: headers,
|
|
650
|
+
query: OpenApiUtil.query(query),
|
|
651
|
+
});
|
|
652
|
+
let params = new $OpenApiUtil.Params({
|
|
653
|
+
action: "DescribeRules",
|
|
654
|
+
version: "2023-08-08",
|
|
655
|
+
protocol: "HTTPS",
|
|
656
|
+
pathname: `/api/v1/rules`,
|
|
657
|
+
method: "GET",
|
|
658
|
+
authType: "AK",
|
|
659
|
+
style: "ROA",
|
|
660
|
+
reqBodyType: "json",
|
|
661
|
+
bodyType: "json",
|
|
662
|
+
});
|
|
663
|
+
return $dara.cast<$_model.DescribeRulesResponse>(await this.callApi(params, req, runtime), new $_model.DescribeRulesResponse({}));
|
|
2301
664
|
}
|
|
2302
|
-
}
|
|
2303
665
|
|
|
2304
|
-
export class GetBdrcServiceResponseBodyData extends $tea.Model {
|
|
2305
666
|
/**
|
|
2306
|
-
*
|
|
2307
|
-
*
|
|
667
|
+
* Lists all data protection rules.
|
|
668
|
+
*
|
|
669
|
+
* @param request - DescribeRulesRequest
|
|
670
|
+
* @returns DescribeRulesResponse
|
|
2308
671
|
*/
|
|
2309
|
-
|
|
672
|
+
async describeRules(request: $_model.DescribeRulesRequest): Promise<$_model.DescribeRulesResponse> {
|
|
673
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
674
|
+
let headers : {[key: string ]: string} = { };
|
|
675
|
+
return await this.describeRulesWithOptions(request, headers, runtime);
|
|
676
|
+
}
|
|
677
|
+
|
|
2310
678
|
/**
|
|
2311
|
-
*
|
|
2312
|
-
*
|
|
679
|
+
* Retrieves the details of an asynchronous task.
|
|
680
|
+
*
|
|
681
|
+
* @param headers - map
|
|
682
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
683
|
+
* @returns DescribeTaskResponse
|
|
2313
684
|
*/
|
|
2314
|
-
|
|
685
|
+
async describeTaskWithOptions(TaskId: string, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeTaskResponse> {
|
|
686
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
687
|
+
headers: headers,
|
|
688
|
+
});
|
|
689
|
+
let params = new $OpenApiUtil.Params({
|
|
690
|
+
action: "DescribeTask",
|
|
691
|
+
version: "2023-08-08",
|
|
692
|
+
protocol: "HTTPS",
|
|
693
|
+
pathname: `/api/v1/tasks/${$dara.URL.percentEncode(TaskId)}`,
|
|
694
|
+
method: "GET",
|
|
695
|
+
authType: "AK",
|
|
696
|
+
style: "ROA",
|
|
697
|
+
reqBodyType: "json",
|
|
698
|
+
bodyType: "json",
|
|
699
|
+
});
|
|
700
|
+
return $dara.cast<$_model.DescribeTaskResponse>(await this.callApi(params, req, runtime), new $_model.DescribeTaskResponse({}));
|
|
701
|
+
}
|
|
702
|
+
|
|
2315
703
|
/**
|
|
2316
|
-
*
|
|
2317
|
-
*
|
|
704
|
+
* Retrieves the details of an asynchronous task.
|
|
705
|
+
* @returns DescribeTaskResponse
|
|
2318
706
|
*/
|
|
2319
|
-
|
|
707
|
+
async describeTask(TaskId: string): Promise<$_model.DescribeTaskResponse> {
|
|
708
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
709
|
+
let headers : {[key: string ]: string} = { };
|
|
710
|
+
return await this.describeTaskWithOptions(TaskId, headers, runtime);
|
|
711
|
+
}
|
|
712
|
+
|
|
2320
713
|
/**
|
|
2321
|
-
*
|
|
2322
|
-
*
|
|
714
|
+
* Retrieves asynchronous tasks.
|
|
715
|
+
*
|
|
716
|
+
* @param request - DescribeTasksRequest
|
|
717
|
+
* @param headers - map
|
|
718
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
719
|
+
* @returns DescribeTasksResponse
|
|
2323
720
|
*/
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
serviceStatus: 'ServiceStatus',
|
|
2331
|
-
};
|
|
2332
|
-
}
|
|
721
|
+
async describeTasksWithOptions(request: $_model.DescribeTasksRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeTasksResponse> {
|
|
722
|
+
request.validate();
|
|
723
|
+
let query : {[key: string ]: any} = { };
|
|
724
|
+
if (!$dara.isNull(request.maxResults)) {
|
|
725
|
+
query["MaxResults"] = request.maxResults;
|
|
726
|
+
}
|
|
2333
727
|
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
}
|
|
2341
|
-
|
|
728
|
+
if (!$dara.isNull(request.nextToken)) {
|
|
729
|
+
query["NextToken"] = request.nextToken;
|
|
730
|
+
}
|
|
731
|
+
|
|
732
|
+
if (!$dara.isNull(request.taskStatus)) {
|
|
733
|
+
query["TaskStatus"] = request.taskStatus;
|
|
734
|
+
}
|
|
735
|
+
|
|
736
|
+
if (!$dara.isNull(request.taskType)) {
|
|
737
|
+
query["TaskType"] = request.taskType;
|
|
738
|
+
}
|
|
2342
739
|
|
|
2343
|
-
|
|
2344
|
-
|
|
740
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
741
|
+
headers: headers,
|
|
742
|
+
query: OpenApiUtil.query(query),
|
|
743
|
+
});
|
|
744
|
+
let params = new $OpenApiUtil.Params({
|
|
745
|
+
action: "DescribeTasks",
|
|
746
|
+
version: "2023-08-08",
|
|
747
|
+
protocol: "HTTPS",
|
|
748
|
+
pathname: `/api/v1/tasks`,
|
|
749
|
+
method: "GET",
|
|
750
|
+
authType: "AK",
|
|
751
|
+
style: "ROA",
|
|
752
|
+
reqBodyType: "json",
|
|
753
|
+
bodyType: "json",
|
|
754
|
+
});
|
|
755
|
+
return $dara.cast<$_model.DescribeTasksResponse>(await this.callApi(params, req, runtime), new $_model.DescribeTasksResponse({}));
|
|
2345
756
|
}
|
|
2346
|
-
}
|
|
2347
757
|
|
|
2348
|
-
export class UpdateResourcesResponseBodyData extends $tea.Model {
|
|
2349
758
|
/**
|
|
2350
|
-
*
|
|
2351
|
-
*
|
|
759
|
+
* Retrieves asynchronous tasks.
|
|
760
|
+
*
|
|
761
|
+
* @param request - DescribeTasksRequest
|
|
762
|
+
* @returns DescribeTasksResponse
|
|
2352
763
|
*/
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
};
|
|
764
|
+
async describeTasks(request: $_model.DescribeTasksRequest): Promise<$_model.DescribeTasksResponse> {
|
|
765
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
766
|
+
let headers : {[key: string ]: string} = { };
|
|
767
|
+
return await this.describeTasksWithOptions(request, headers, runtime);
|
|
2358
768
|
}
|
|
2359
769
|
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
770
|
+
/**
|
|
771
|
+
* Lists the most threatened resources.
|
|
772
|
+
*
|
|
773
|
+
* @param tmpReq - DescribeTopRiskyResourcesRequest
|
|
774
|
+
* @param headers - map
|
|
775
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
776
|
+
* @returns DescribeTopRiskyResourcesResponse
|
|
777
|
+
*/
|
|
778
|
+
async describeTopRiskyResourcesWithOptions(tmpReq: $_model.DescribeTopRiskyResourcesRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeTopRiskyResourcesResponse> {
|
|
779
|
+
tmpReq.validate();
|
|
780
|
+
let request = new $_model.DescribeTopRiskyResourcesShrinkRequest({ });
|
|
781
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
782
|
+
if (!$dara.isNull(tmpReq.resourceOwnerIds)) {
|
|
783
|
+
request.resourceOwnerIdsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.resourceOwnerIds, "ResourceOwnerIds", "json");
|
|
784
|
+
}
|
|
2365
785
|
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
}
|
|
786
|
+
let query : {[key: string ]: any} = { };
|
|
787
|
+
if (!$dara.isNull(request.resourceCategoryId)) {
|
|
788
|
+
query["ResourceCategoryId"] = request.resourceCategoryId;
|
|
789
|
+
}
|
|
2370
790
|
|
|
791
|
+
if (!$dara.isNull(request.resourceOwnerIdsShrink)) {
|
|
792
|
+
query["ResourceOwnerIds"] = request.resourceOwnerIdsShrink;
|
|
793
|
+
}
|
|
2371
794
|
|
|
2372
|
-
|
|
795
|
+
if (!$dara.isNull(request.resourceType)) {
|
|
796
|
+
query["ResourceType"] = request.resourceType;
|
|
797
|
+
}
|
|
2373
798
|
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
799
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
800
|
+
headers: headers,
|
|
801
|
+
query: OpenApiUtil.query(query),
|
|
802
|
+
});
|
|
803
|
+
let params = new $OpenApiUtil.Params({
|
|
804
|
+
action: "DescribeTopRiskyResources",
|
|
805
|
+
version: "2023-08-08",
|
|
806
|
+
protocol: "HTTPS",
|
|
807
|
+
pathname: `/api/v1/resources/top-risky`,
|
|
808
|
+
method: "GET",
|
|
809
|
+
authType: "AK",
|
|
810
|
+
style: "ROA",
|
|
811
|
+
reqBodyType: "json",
|
|
812
|
+
bodyType: "json",
|
|
813
|
+
});
|
|
814
|
+
return $dara.cast<$_model.DescribeTopRiskyResourcesResponse>(await this.callApi(params, req, runtime), new $_model.DescribeTopRiskyResourcesResponse({}));
|
|
2379
815
|
}
|
|
2380
816
|
|
|
817
|
+
/**
|
|
818
|
+
* Lists the most threatened resources.
|
|
819
|
+
*
|
|
820
|
+
* @param request - DescribeTopRiskyResourcesRequest
|
|
821
|
+
* @returns DescribeTopRiskyResourcesResponse
|
|
822
|
+
*/
|
|
823
|
+
async describeTopRiskyResources(request: $_model.DescribeTopRiskyResourcesRequest): Promise<$_model.DescribeTopRiskyResourcesResponse> {
|
|
824
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
825
|
+
let headers : {[key: string ]: string} = { };
|
|
826
|
+
return await this.describeTopRiskyResourcesWithOptions(request, headers, runtime);
|
|
827
|
+
}
|
|
2381
828
|
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
829
|
+
/**
|
|
830
|
+
* Disables the data protection score for a cloud product.
|
|
831
|
+
*
|
|
832
|
+
* @param request - DisableCheckProductRequest
|
|
833
|
+
* @param headers - map
|
|
834
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
835
|
+
* @returns DisableCheckProductResponse
|
|
836
|
+
*/
|
|
837
|
+
async disableCheckProductWithOptions(request: $_model.DisableCheckProductRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.DisableCheckProductResponse> {
|
|
838
|
+
request.validate();
|
|
839
|
+
let body : {[key: string ]: any} = { };
|
|
840
|
+
if (!$dara.isNull(request.productType)) {
|
|
841
|
+
body["ProductType"] = request.productType;
|
|
2385
842
|
}
|
|
2386
843
|
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
|
|
844
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
845
|
+
headers: headers,
|
|
846
|
+
body: OpenApiUtil.parseToMap(body),
|
|
847
|
+
});
|
|
848
|
+
let params = new $OpenApiUtil.Params({
|
|
849
|
+
action: "DisableCheckProduct",
|
|
850
|
+
version: "2023-08-08",
|
|
851
|
+
protocol: "HTTPS",
|
|
852
|
+
pathname: `/api/v1/products/disable-check`,
|
|
853
|
+
method: "POST",
|
|
854
|
+
authType: "AK",
|
|
855
|
+
style: "ROA",
|
|
856
|
+
reqBodyType: "formData",
|
|
857
|
+
bodyType: "json",
|
|
858
|
+
});
|
|
859
|
+
return $dara.cast<$_model.DisableCheckProductResponse>(await this.callApi(params, req, runtime), new $_model.DisableCheckProductResponse({}));
|
|
860
|
+
}
|
|
2390
861
|
|
|
2391
|
-
|
|
862
|
+
/**
|
|
863
|
+
* Disables the data protection score for a cloud product.
|
|
864
|
+
*
|
|
865
|
+
* @param request - DisableCheckProductRequest
|
|
866
|
+
* @returns DisableCheckProductResponse
|
|
867
|
+
*/
|
|
868
|
+
async disableCheckProduct(request: $_model.DisableCheckProductRequest): Promise<$_model.DisableCheckProductResponse> {
|
|
869
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
870
|
+
let headers : {[key: string ]: string} = { };
|
|
871
|
+
return await this.disableCheckProductWithOptions(request, headers, runtime);
|
|
2392
872
|
}
|
|
2393
873
|
|
|
2394
874
|
/**
|
|
2395
|
-
*
|
|
875
|
+
* Disables the data protection score for a resource.
|
|
876
|
+
*
|
|
877
|
+
* @param request - DisableCheckResourceRequest
|
|
2396
878
|
* @param headers - map
|
|
2397
879
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
2398
|
-
* @returns
|
|
880
|
+
* @returns DisableCheckResourceResponse
|
|
2399
881
|
*/
|
|
2400
|
-
async
|
|
2401
|
-
|
|
882
|
+
async disableCheckResourceWithOptions(request: $_model.DisableCheckResourceRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.DisableCheckResourceResponse> {
|
|
883
|
+
request.validate();
|
|
2402
884
|
let body : {[key: string ]: any} = { };
|
|
2403
|
-
if (
|
|
885
|
+
if (!$dara.isNull(request.resourceArn)) {
|
|
2404
886
|
body["ResourceArn"] = request.resourceArn;
|
|
2405
887
|
}
|
|
2406
888
|
|
|
2407
|
-
|
|
2408
|
-
body["RuleId"] = request.ruleId;
|
|
2409
|
-
}
|
|
2410
|
-
|
|
2411
|
-
let req = new $OpenApi.OpenApiRequest({
|
|
889
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
2412
890
|
headers: headers,
|
|
2413
891
|
body: OpenApiUtil.parseToMap(body),
|
|
2414
892
|
});
|
|
2415
|
-
let params = new $
|
|
2416
|
-
action: "
|
|
893
|
+
let params = new $OpenApiUtil.Params({
|
|
894
|
+
action: "DisableCheckResource",
|
|
2417
895
|
version: "2023-08-08",
|
|
2418
896
|
protocol: "HTTPS",
|
|
2419
|
-
pathname: `/api/v1/
|
|
897
|
+
pathname: `/api/v1/resources/disable-check`,
|
|
2420
898
|
method: "POST",
|
|
2421
899
|
authType: "AK",
|
|
2422
900
|
style: "ROA",
|
|
2423
901
|
reqBodyType: "formData",
|
|
2424
902
|
bodyType: "json",
|
|
2425
903
|
});
|
|
2426
|
-
return $
|
|
904
|
+
return $dara.cast<$_model.DisableCheckResourceResponse>(await this.callApi(params, req, runtime), new $_model.DisableCheckResourceResponse({}));
|
|
2427
905
|
}
|
|
2428
906
|
|
|
2429
907
|
/**
|
|
2430
|
-
*
|
|
2431
|
-
*
|
|
908
|
+
* Disables the data protection score for a resource.
|
|
909
|
+
*
|
|
910
|
+
* @param request - DisableCheckResourceRequest
|
|
911
|
+
* @returns DisableCheckResourceResponse
|
|
2432
912
|
*/
|
|
2433
|
-
async
|
|
2434
|
-
let runtime = new $
|
|
913
|
+
async disableCheckResource(request: $_model.DisableCheckResourceRequest): Promise<$_model.DisableCheckResourceResponse> {
|
|
914
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
2435
915
|
let headers : {[key: string ]: string} = { };
|
|
2436
|
-
return await this.
|
|
916
|
+
return await this.disableCheckResourceWithOptions(request, headers, runtime);
|
|
2437
917
|
}
|
|
2438
918
|
|
|
2439
919
|
/**
|
|
920
|
+
* Enables data protection scoring for a cloud product.
|
|
921
|
+
*
|
|
922
|
+
* @param request - EnableCheckProductRequest
|
|
2440
923
|
* @param headers - map
|
|
2441
924
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
2442
|
-
* @returns
|
|
925
|
+
* @returns EnableCheckProductResponse
|
|
2443
926
|
*/
|
|
2444
|
-
async
|
|
2445
|
-
|
|
927
|
+
async enableCheckProductWithOptions(request: $_model.EnableCheckProductRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.EnableCheckProductResponse> {
|
|
928
|
+
request.validate();
|
|
929
|
+
let body : {[key: string ]: any} = { };
|
|
930
|
+
if (!$dara.isNull(request.productType)) {
|
|
931
|
+
body["ProductType"] = request.productType;
|
|
932
|
+
}
|
|
933
|
+
|
|
934
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
2446
935
|
headers: headers,
|
|
936
|
+
body: OpenApiUtil.parseToMap(body),
|
|
2447
937
|
});
|
|
2448
|
-
let params = new $
|
|
2449
|
-
action: "
|
|
938
|
+
let params = new $OpenApiUtil.Params({
|
|
939
|
+
action: "EnableCheckProduct",
|
|
2450
940
|
version: "2023-08-08",
|
|
2451
941
|
protocol: "HTTPS",
|
|
2452
|
-
pathname: `/api/v1/
|
|
942
|
+
pathname: `/api/v1/products/enable-check`,
|
|
2453
943
|
method: "POST",
|
|
2454
944
|
authType: "AK",
|
|
2455
945
|
style: "ROA",
|
|
2456
|
-
reqBodyType: "
|
|
946
|
+
reqBodyType: "formData",
|
|
2457
947
|
bodyType: "json",
|
|
2458
948
|
});
|
|
2459
|
-
return $
|
|
949
|
+
return $dara.cast<$_model.EnableCheckProductResponse>(await this.callApi(params, req, runtime), new $_model.EnableCheckProductResponse({}));
|
|
2460
950
|
}
|
|
2461
951
|
|
|
2462
952
|
/**
|
|
2463
|
-
*
|
|
953
|
+
* Enables data protection scoring for a cloud product.
|
|
954
|
+
*
|
|
955
|
+
* @param request - EnableCheckProductRequest
|
|
956
|
+
* @returns EnableCheckProductResponse
|
|
2464
957
|
*/
|
|
2465
|
-
async
|
|
2466
|
-
let runtime = new $
|
|
958
|
+
async enableCheckProduct(request: $_model.EnableCheckProductRequest): Promise<$_model.EnableCheckProductResponse> {
|
|
959
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
2467
960
|
let headers : {[key: string ]: string} = { };
|
|
2468
|
-
return await this.
|
|
961
|
+
return await this.enableCheckProductWithOptions(request, headers, runtime);
|
|
2469
962
|
}
|
|
2470
963
|
|
|
2471
964
|
/**
|
|
2472
|
-
*
|
|
965
|
+
* Enables data protection scoring for a single resource.
|
|
966
|
+
*
|
|
967
|
+
* @param request - EnableCheckResourceRequest
|
|
2473
968
|
* @param headers - map
|
|
2474
969
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
2475
|
-
* @returns
|
|
970
|
+
* @returns EnableCheckResourceResponse
|
|
2476
971
|
*/
|
|
2477
|
-
async
|
|
2478
|
-
|
|
2479
|
-
let
|
|
2480
|
-
if (
|
|
2481
|
-
|
|
2482
|
-
}
|
|
2483
|
-
|
|
2484
|
-
if (!Util.isUnset(request.nextToken)) {
|
|
2485
|
-
query["NextToken"] = request.nextToken;
|
|
2486
|
-
}
|
|
2487
|
-
|
|
2488
|
-
if (!Util.isUnset(request.resourceArn)) {
|
|
2489
|
-
query["ResourceArn"] = request.resourceArn;
|
|
2490
|
-
}
|
|
2491
|
-
|
|
2492
|
-
if (!Util.isUnset(request.ruleId)) {
|
|
2493
|
-
query["RuleId"] = request.ruleId;
|
|
972
|
+
async enableCheckResourceWithOptions(request: $_model.EnableCheckResourceRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.EnableCheckResourceResponse> {
|
|
973
|
+
request.validate();
|
|
974
|
+
let body : {[key: string ]: any} = { };
|
|
975
|
+
if (!$dara.isNull(request.resourceArn)) {
|
|
976
|
+
body["ResourceArn"] = request.resourceArn;
|
|
2494
977
|
}
|
|
2495
978
|
|
|
2496
|
-
let req = new $
|
|
979
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
2497
980
|
headers: headers,
|
|
2498
|
-
|
|
981
|
+
body: OpenApiUtil.parseToMap(body),
|
|
2499
982
|
});
|
|
2500
|
-
let params = new $
|
|
2501
|
-
action: "
|
|
983
|
+
let params = new $OpenApiUtil.Params({
|
|
984
|
+
action: "EnableCheckResource",
|
|
2502
985
|
version: "2023-08-08",
|
|
2503
986
|
protocol: "HTTPS",
|
|
2504
|
-
pathname: `/api/v1/check
|
|
2505
|
-
method: "
|
|
987
|
+
pathname: `/api/v1/resources/enable-check`,
|
|
988
|
+
method: "POST",
|
|
2506
989
|
authType: "AK",
|
|
2507
990
|
style: "ROA",
|
|
2508
|
-
reqBodyType: "
|
|
991
|
+
reqBodyType: "formData",
|
|
2509
992
|
bodyType: "json",
|
|
2510
993
|
});
|
|
2511
|
-
return $
|
|
994
|
+
return $dara.cast<$_model.EnableCheckResourceResponse>(await this.callApi(params, req, runtime), new $_model.EnableCheckResourceResponse({}));
|
|
2512
995
|
}
|
|
2513
996
|
|
|
2514
997
|
/**
|
|
2515
|
-
*
|
|
2516
|
-
*
|
|
998
|
+
* Enables data protection scoring for a single resource.
|
|
999
|
+
*
|
|
1000
|
+
* @param request - EnableCheckResourceRequest
|
|
1001
|
+
* @returns EnableCheckResourceResponse
|
|
2517
1002
|
*/
|
|
2518
|
-
async
|
|
2519
|
-
let runtime = new $
|
|
1003
|
+
async enableCheckResource(request: $_model.EnableCheckResourceRequest): Promise<$_model.EnableCheckResourceResponse> {
|
|
1004
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
2520
1005
|
let headers : {[key: string ]: string} = { };
|
|
2521
|
-
return await this.
|
|
1006
|
+
return await this.enableCheckResourceWithOptions(request, headers, runtime);
|
|
2522
1007
|
}
|
|
2523
1008
|
|
|
2524
1009
|
/**
|
|
1010
|
+
* Queries the status of the Backup and Disaster Recovery Center.
|
|
1011
|
+
*
|
|
2525
1012
|
* @param headers - map
|
|
2526
1013
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
2527
|
-
* @returns
|
|
1014
|
+
* @returns GetBdrcServiceResponse
|
|
2528
1015
|
*/
|
|
2529
|
-
async
|
|
2530
|
-
let req = new $
|
|
1016
|
+
async getBdrcServiceWithOptions(headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.GetBdrcServiceResponse> {
|
|
1017
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
2531
1018
|
headers: headers,
|
|
2532
1019
|
});
|
|
2533
|
-
let params = new $
|
|
2534
|
-
action: "
|
|
1020
|
+
let params = new $OpenApiUtil.Params({
|
|
1021
|
+
action: "GetBdrcService",
|
|
2535
1022
|
version: "2023-08-08",
|
|
2536
1023
|
protocol: "HTTPS",
|
|
2537
|
-
pathname: `/api/v1/
|
|
1024
|
+
pathname: `/api/v1/service`,
|
|
2538
1025
|
method: "GET",
|
|
2539
1026
|
authType: "AK",
|
|
2540
1027
|
style: "ROA",
|
|
2541
1028
|
reqBodyType: "json",
|
|
2542
1029
|
bodyType: "json",
|
|
2543
1030
|
});
|
|
2544
|
-
return $
|
|
1031
|
+
return $dara.cast<$_model.GetBdrcServiceResponse>(await this.callApi(params, req, runtime), new $_model.GetBdrcServiceResponse({}));
|
|
2545
1032
|
}
|
|
2546
1033
|
|
|
2547
1034
|
/**
|
|
2548
|
-
*
|
|
1035
|
+
* Queries the status of the Backup and Disaster Recovery Center.
|
|
1036
|
+
* @returns GetBdrcServiceResponse
|
|
2549
1037
|
*/
|
|
2550
|
-
async
|
|
2551
|
-
let runtime = new $
|
|
1038
|
+
async getBdrcService(): Promise<$_model.GetBdrcServiceResponse> {
|
|
1039
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
2552
1040
|
let headers : {[key: string ]: string} = { };
|
|
2553
|
-
return await this.
|
|
1041
|
+
return await this.getBdrcServiceWithOptions(headers, runtime);
|
|
2554
1042
|
}
|
|
2555
1043
|
|
|
2556
1044
|
/**
|
|
2557
|
-
*
|
|
1045
|
+
* Retrieves a single message.
|
|
1046
|
+
*
|
|
1047
|
+
* @param request - GetMessageRequest
|
|
2558
1048
|
* @param headers - map
|
|
2559
1049
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
2560
|
-
* @returns
|
|
1050
|
+
* @returns GetMessageResponse
|
|
2561
1051
|
*/
|
|
2562
|
-
async
|
|
2563
|
-
|
|
2564
|
-
let
|
|
2565
|
-
if (!Util.isUnset(request.failedRuleTemplate)) {
|
|
2566
|
-
query["FailedRuleTemplate"] = request.failedRuleTemplate;
|
|
2567
|
-
}
|
|
2568
|
-
|
|
2569
|
-
if (!Util.isUnset(request.maxResults)) {
|
|
2570
|
-
query["MaxResults"] = request.maxResults;
|
|
2571
|
-
}
|
|
2572
|
-
|
|
2573
|
-
if (!Util.isUnset(request.nextToken)) {
|
|
2574
|
-
query["NextToken"] = request.nextToken;
|
|
2575
|
-
}
|
|
2576
|
-
|
|
2577
|
-
if (!Util.isUnset(request.resourceId)) {
|
|
2578
|
-
query["ResourceId"] = request.resourceId;
|
|
2579
|
-
}
|
|
2580
|
-
|
|
2581
|
-
if (!Util.isUnset(request.resourceType)) {
|
|
2582
|
-
query["ResourceType"] = request.resourceType;
|
|
2583
|
-
}
|
|
2584
|
-
|
|
2585
|
-
if (!Util.isUnset(request.sortBy)) {
|
|
2586
|
-
query["SortBy"] = request.sortBy;
|
|
2587
|
-
}
|
|
2588
|
-
|
|
2589
|
-
if (!Util.isUnset(request.sortOrder)) {
|
|
2590
|
-
query["SortOrder"] = request.sortOrder;
|
|
2591
|
-
}
|
|
2592
|
-
|
|
2593
|
-
let req = new $OpenApi.OpenApiRequest({
|
|
1052
|
+
async getMessageWithOptions(MessageId: string, request: $_model.GetMessageRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.GetMessageResponse> {
|
|
1053
|
+
request.validate();
|
|
1054
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
2594
1055
|
headers: headers,
|
|
2595
|
-
query: OpenApiUtil.query(query),
|
|
2596
1056
|
});
|
|
2597
|
-
let params = new $
|
|
2598
|
-
action: "
|
|
1057
|
+
let params = new $OpenApiUtil.Params({
|
|
1058
|
+
action: "GetMessage",
|
|
2599
1059
|
version: "2023-08-08",
|
|
2600
1060
|
protocol: "HTTPS",
|
|
2601
|
-
pathname: `/api/v1/
|
|
1061
|
+
pathname: `/api/v1/messages/${$dara.URL.percentEncode(MessageId)}`,
|
|
2602
1062
|
method: "GET",
|
|
2603
1063
|
authType: "AK",
|
|
2604
1064
|
style: "ROA",
|
|
2605
1065
|
reqBodyType: "json",
|
|
2606
1066
|
bodyType: "json",
|
|
2607
1067
|
});
|
|
2608
|
-
return $
|
|
1068
|
+
return $dara.cast<$_model.GetMessageResponse>(await this.callApi(params, req, runtime), new $_model.GetMessageResponse({}));
|
|
2609
1069
|
}
|
|
2610
1070
|
|
|
2611
1071
|
/**
|
|
2612
|
-
*
|
|
2613
|
-
*
|
|
1072
|
+
* Retrieves a single message.
|
|
1073
|
+
*
|
|
1074
|
+
* @param request - GetMessageRequest
|
|
1075
|
+
* @returns GetMessageResponse
|
|
2614
1076
|
*/
|
|
2615
|
-
async
|
|
2616
|
-
let runtime = new $
|
|
1077
|
+
async getMessage(MessageId: string, request: $_model.GetMessageRequest): Promise<$_model.GetMessageResponse> {
|
|
1078
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
2617
1079
|
let headers : {[key: string ]: string} = { };
|
|
2618
|
-
return await this.
|
|
1080
|
+
return await this.getMessageWithOptions(MessageId, request, headers, runtime);
|
|
2619
1081
|
}
|
|
2620
1082
|
|
|
2621
1083
|
/**
|
|
2622
|
-
*
|
|
1084
|
+
* Retrieves a protection policy.
|
|
1085
|
+
*
|
|
1086
|
+
* @param request - GetProtectionPolicyRequest
|
|
2623
1087
|
* @param headers - map
|
|
2624
1088
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
2625
|
-
* @returns
|
|
1089
|
+
* @returns GetProtectionPolicyResponse
|
|
2626
1090
|
*/
|
|
2627
|
-
async
|
|
2628
|
-
|
|
2629
|
-
let
|
|
2630
|
-
if (!Util.isUnset(request.maxResults)) {
|
|
2631
|
-
query["MaxResults"] = request.maxResults;
|
|
2632
|
-
}
|
|
2633
|
-
|
|
2634
|
-
if (!Util.isUnset(request.nextToken)) {
|
|
2635
|
-
query["NextToken"] = request.nextToken;
|
|
2636
|
-
}
|
|
2637
|
-
|
|
2638
|
-
if (!Util.isUnset(request.resourceType)) {
|
|
2639
|
-
query["ResourceType"] = request.resourceType;
|
|
2640
|
-
}
|
|
2641
|
-
|
|
2642
|
-
let req = new $OpenApi.OpenApiRequest({
|
|
1091
|
+
async getProtectionPolicyWithOptions(ProtectionPolicyId: string, request: $_model.GetProtectionPolicyRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.GetProtectionPolicyResponse> {
|
|
1092
|
+
request.validate();
|
|
1093
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
2643
1094
|
headers: headers,
|
|
2644
|
-
query: OpenApiUtil.query(query),
|
|
2645
1095
|
});
|
|
2646
|
-
let params = new $
|
|
2647
|
-
action: "
|
|
1096
|
+
let params = new $OpenApiUtil.Params({
|
|
1097
|
+
action: "GetProtectionPolicy",
|
|
2648
1098
|
version: "2023-08-08",
|
|
2649
1099
|
protocol: "HTTPS",
|
|
2650
|
-
pathname: `/api/v1/
|
|
1100
|
+
pathname: `/api/v1/protection-policies/${$dara.URL.percentEncode(ProtectionPolicyId)}`,
|
|
2651
1101
|
method: "GET",
|
|
2652
1102
|
authType: "AK",
|
|
2653
1103
|
style: "ROA",
|
|
2654
1104
|
reqBodyType: "json",
|
|
2655
1105
|
bodyType: "json",
|
|
2656
1106
|
});
|
|
2657
|
-
return $
|
|
1107
|
+
return $dara.cast<$_model.GetProtectionPolicyResponse>(await this.callApi(params, req, runtime), new $_model.GetProtectionPolicyResponse({}));
|
|
2658
1108
|
}
|
|
2659
1109
|
|
|
2660
1110
|
/**
|
|
2661
|
-
*
|
|
2662
|
-
*
|
|
1111
|
+
* Retrieves a protection policy.
|
|
1112
|
+
*
|
|
1113
|
+
* @param request - GetProtectionPolicyRequest
|
|
1114
|
+
* @returns GetProtectionPolicyResponse
|
|
2663
1115
|
*/
|
|
2664
|
-
async
|
|
2665
|
-
let runtime = new $
|
|
1116
|
+
async getProtectionPolicy(ProtectionPolicyId: string, request: $_model.GetProtectionPolicyRequest): Promise<$_model.GetProtectionPolicyResponse> {
|
|
1117
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
2666
1118
|
let headers : {[key: string ]: string} = { };
|
|
2667
|
-
return await this.
|
|
1119
|
+
return await this.getProtectionPolicyWithOptions(ProtectionPolicyId, request, headers, runtime);
|
|
2668
1120
|
}
|
|
2669
1121
|
|
|
2670
1122
|
/**
|
|
1123
|
+
* Retrieves a single resource category.
|
|
1124
|
+
*
|
|
1125
|
+
* @param request - GetResourceCategoryRequest
|
|
2671
1126
|
* @param headers - map
|
|
2672
1127
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
2673
|
-
* @returns
|
|
1128
|
+
* @returns GetResourceCategoryResponse
|
|
2674
1129
|
*/
|
|
2675
|
-
async
|
|
2676
|
-
|
|
1130
|
+
async getResourceCategoryWithOptions(request: $_model.GetResourceCategoryRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.GetResourceCategoryResponse> {
|
|
1131
|
+
request.validate();
|
|
1132
|
+
let query : {[key: string ]: any} = { };
|
|
1133
|
+
if (!$dara.isNull(request.resourceCategoryId)) {
|
|
1134
|
+
query["ResourceCategoryId"] = request.resourceCategoryId;
|
|
1135
|
+
}
|
|
1136
|
+
|
|
1137
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
2677
1138
|
headers: headers,
|
|
1139
|
+
query: OpenApiUtil.query(query),
|
|
2678
1140
|
});
|
|
2679
|
-
let params = new $
|
|
2680
|
-
action: "
|
|
1141
|
+
let params = new $OpenApiUtil.Params({
|
|
1142
|
+
action: "GetResourceCategory",
|
|
2681
1143
|
version: "2023-08-08",
|
|
2682
1144
|
protocol: "HTTPS",
|
|
2683
|
-
pathname: `/api/v1/
|
|
1145
|
+
pathname: `/api/v1/resource-categories/get`,
|
|
2684
1146
|
method: "GET",
|
|
2685
1147
|
authType: "AK",
|
|
2686
1148
|
style: "ROA",
|
|
2687
1149
|
reqBodyType: "json",
|
|
2688
1150
|
bodyType: "json",
|
|
2689
1151
|
});
|
|
2690
|
-
return $
|
|
1152
|
+
return $dara.cast<$_model.GetResourceCategoryResponse>(await this.callApi(params, req, runtime), new $_model.GetResourceCategoryResponse({}));
|
|
2691
1153
|
}
|
|
2692
1154
|
|
|
2693
1155
|
/**
|
|
2694
|
-
*
|
|
1156
|
+
* Retrieves a single resource category.
|
|
1157
|
+
*
|
|
1158
|
+
* @param request - GetResourceCategoryRequest
|
|
1159
|
+
* @returns GetResourceCategoryResponse
|
|
2695
1160
|
*/
|
|
2696
|
-
async
|
|
2697
|
-
let runtime = new $
|
|
1161
|
+
async getResourceCategory(request: $_model.GetResourceCategoryRequest): Promise<$_model.GetResourceCategoryResponse> {
|
|
1162
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
2698
1163
|
let headers : {[key: string ]: string} = { };
|
|
2699
|
-
return await this.
|
|
1164
|
+
return await this.getResourceCategoryWithOptions(request, headers, runtime);
|
|
2700
1165
|
}
|
|
2701
1166
|
|
|
2702
1167
|
/**
|
|
2703
|
-
*
|
|
1168
|
+
* Queries messages in batches.
|
|
1169
|
+
*
|
|
1170
|
+
* @param request - ListMessagesRequest
|
|
2704
1171
|
* @param headers - map
|
|
2705
1172
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
2706
|
-
* @returns
|
|
1173
|
+
* @returns ListMessagesResponse
|
|
2707
1174
|
*/
|
|
2708
|
-
async
|
|
2709
|
-
|
|
1175
|
+
async listMessagesWithOptions(request: $_model.ListMessagesRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.ListMessagesResponse> {
|
|
1176
|
+
request.validate();
|
|
2710
1177
|
let query : {[key: string ]: any} = { };
|
|
2711
|
-
if (
|
|
1178
|
+
if (!$dara.isNull(request.maxResults)) {
|
|
2712
1179
|
query["MaxResults"] = request.maxResults;
|
|
2713
1180
|
}
|
|
2714
1181
|
|
|
2715
|
-
if (
|
|
2716
|
-
query["
|
|
1182
|
+
if (!$dara.isNull(request.messageLevel)) {
|
|
1183
|
+
query["MessageLevel"] = request.messageLevel;
|
|
2717
1184
|
}
|
|
2718
1185
|
|
|
2719
|
-
if (
|
|
2720
|
-
query["
|
|
1186
|
+
if (!$dara.isNull(request.messageTimeEarlierThan)) {
|
|
1187
|
+
query["MessageTimeEarlierThan"] = request.messageTimeEarlierThan;
|
|
1188
|
+
}
|
|
1189
|
+
|
|
1190
|
+
if (!$dara.isNull(request.messageTimeLaterThan)) {
|
|
1191
|
+
query["MessageTimeLaterThan"] = request.messageTimeLaterThan;
|
|
1192
|
+
}
|
|
1193
|
+
|
|
1194
|
+
if (!$dara.isNull(request.messageType)) {
|
|
1195
|
+
query["MessageType"] = request.messageType;
|
|
1196
|
+
}
|
|
1197
|
+
|
|
1198
|
+
if (!$dara.isNull(request.nextToken)) {
|
|
1199
|
+
query["NextToken"] = request.nextToken;
|
|
2721
1200
|
}
|
|
2722
1201
|
|
|
2723
|
-
let req = new $
|
|
1202
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
2724
1203
|
headers: headers,
|
|
2725
1204
|
query: OpenApiUtil.query(query),
|
|
2726
1205
|
});
|
|
2727
|
-
let params = new $
|
|
2728
|
-
action: "
|
|
1206
|
+
let params = new $OpenApiUtil.Params({
|
|
1207
|
+
action: "ListMessages",
|
|
2729
1208
|
version: "2023-08-08",
|
|
2730
1209
|
protocol: "HTTPS",
|
|
2731
|
-
pathname: `/api/v1/
|
|
1210
|
+
pathname: `/api/v1/messages`,
|
|
2732
1211
|
method: "GET",
|
|
2733
1212
|
authType: "AK",
|
|
2734
1213
|
style: "ROA",
|
|
2735
1214
|
reqBodyType: "json",
|
|
2736
1215
|
bodyType: "json",
|
|
2737
1216
|
});
|
|
2738
|
-
return $
|
|
1217
|
+
return $dara.cast<$_model.ListMessagesResponse>(await this.callApi(params, req, runtime), new $_model.ListMessagesResponse({}));
|
|
2739
1218
|
}
|
|
2740
1219
|
|
|
2741
1220
|
/**
|
|
2742
|
-
*
|
|
2743
|
-
*
|
|
1221
|
+
* Queries messages in batches.
|
|
1222
|
+
*
|
|
1223
|
+
* @param request - ListMessagesRequest
|
|
1224
|
+
* @returns ListMessagesResponse
|
|
2744
1225
|
*/
|
|
2745
|
-
async
|
|
2746
|
-
let runtime = new $
|
|
1226
|
+
async listMessages(request: $_model.ListMessagesRequest): Promise<$_model.ListMessagesResponse> {
|
|
1227
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
2747
1228
|
let headers : {[key: string ]: string} = { };
|
|
2748
|
-
return await this.
|
|
1229
|
+
return await this.listMessagesWithOptions(request, headers, runtime);
|
|
2749
1230
|
}
|
|
2750
1231
|
|
|
2751
1232
|
/**
|
|
2752
|
-
*
|
|
1233
|
+
* Retrieves a list of protection policies.
|
|
1234
|
+
*
|
|
1235
|
+
* @param request - ListProtectionPoliciesRequest
|
|
2753
1236
|
* @param headers - map
|
|
2754
1237
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
2755
|
-
* @returns
|
|
1238
|
+
* @returns ListProtectionPoliciesResponse
|
|
2756
1239
|
*/
|
|
2757
|
-
async
|
|
2758
|
-
|
|
1240
|
+
async listProtectionPoliciesWithOptions(request: $_model.ListProtectionPoliciesRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.ListProtectionPoliciesResponse> {
|
|
1241
|
+
request.validate();
|
|
2759
1242
|
let query : {[key: string ]: any} = { };
|
|
2760
|
-
if (
|
|
2761
|
-
query["
|
|
1243
|
+
if (!$dara.isNull(request.maxResults)) {
|
|
1244
|
+
query["MaxResults"] = request.maxResults;
|
|
1245
|
+
}
|
|
1246
|
+
|
|
1247
|
+
if (!$dara.isNull(request.nextToken)) {
|
|
1248
|
+
query["NextToken"] = request.nextToken;
|
|
1249
|
+
}
|
|
1250
|
+
|
|
1251
|
+
if (!$dara.isNull(request.protectionPolicyId)) {
|
|
1252
|
+
query["ProtectionPolicyId"] = request.protectionPolicyId;
|
|
1253
|
+
}
|
|
1254
|
+
|
|
1255
|
+
if (!$dara.isNull(request.protectionPolicyRegionId)) {
|
|
1256
|
+
query["ProtectionPolicyRegionId"] = request.protectionPolicyRegionId;
|
|
2762
1257
|
}
|
|
2763
1258
|
|
|
2764
|
-
let req = new $
|
|
1259
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
2765
1260
|
headers: headers,
|
|
2766
1261
|
query: OpenApiUtil.query(query),
|
|
2767
1262
|
});
|
|
2768
|
-
let params = new $
|
|
2769
|
-
action: "
|
|
1263
|
+
let params = new $OpenApiUtil.Params({
|
|
1264
|
+
action: "ListProtectionPolicies",
|
|
2770
1265
|
version: "2023-08-08",
|
|
2771
1266
|
protocol: "HTTPS",
|
|
2772
|
-
pathname: `/api/v1/
|
|
1267
|
+
pathname: `/api/v1/protection-policies`,
|
|
2773
1268
|
method: "GET",
|
|
2774
1269
|
authType: "AK",
|
|
2775
1270
|
style: "ROA",
|
|
2776
1271
|
reqBodyType: "json",
|
|
2777
1272
|
bodyType: "json",
|
|
2778
1273
|
});
|
|
2779
|
-
return $
|
|
1274
|
+
return $dara.cast<$_model.ListProtectionPoliciesResponse>(await this.callApi(params, req, runtime), new $_model.ListProtectionPoliciesResponse({}));
|
|
2780
1275
|
}
|
|
2781
1276
|
|
|
2782
1277
|
/**
|
|
2783
|
-
*
|
|
2784
|
-
*
|
|
1278
|
+
* Retrieves a list of protection policies.
|
|
1279
|
+
*
|
|
1280
|
+
* @param request - ListProtectionPoliciesRequest
|
|
1281
|
+
* @returns ListProtectionPoliciesResponse
|
|
2785
1282
|
*/
|
|
2786
|
-
async
|
|
2787
|
-
let runtime = new $
|
|
1283
|
+
async listProtectionPolicies(request: $_model.ListProtectionPoliciesRequest): Promise<$_model.ListProtectionPoliciesResponse> {
|
|
1284
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
2788
1285
|
let headers : {[key: string ]: string} = { };
|
|
2789
|
-
return await this.
|
|
1286
|
+
return await this.listProtectionPoliciesWithOptions(request, headers, runtime);
|
|
2790
1287
|
}
|
|
2791
1288
|
|
|
2792
1289
|
/**
|
|
2793
|
-
*
|
|
1290
|
+
* Retrieves the application history of the protection policy.
|
|
1291
|
+
*
|
|
1292
|
+
* @param request - ListProtectionPolicyApplicationsRequest
|
|
2794
1293
|
* @param headers - map
|
|
2795
1294
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
2796
|
-
* @returns
|
|
1295
|
+
* @returns ListProtectionPolicyApplicationsResponse
|
|
2797
1296
|
*/
|
|
2798
|
-
async
|
|
2799
|
-
|
|
2800
|
-
let
|
|
2801
|
-
if (
|
|
2802
|
-
|
|
1297
|
+
async listProtectionPolicyApplicationsWithOptions(ProtectionPolicyId: string, request: $_model.ListProtectionPolicyApplicationsRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.ListProtectionPolicyApplicationsResponse> {
|
|
1298
|
+
request.validate();
|
|
1299
|
+
let query : {[key: string ]: any} = { };
|
|
1300
|
+
if (!$dara.isNull(request.applyStatus)) {
|
|
1301
|
+
query["ApplyStatus"] = request.applyStatus;
|
|
1302
|
+
}
|
|
1303
|
+
|
|
1304
|
+
if (!$dara.isNull(request.maxResults)) {
|
|
1305
|
+
query["MaxResults"] = request.maxResults;
|
|
1306
|
+
}
|
|
1307
|
+
|
|
1308
|
+
if (!$dara.isNull(request.nextToken)) {
|
|
1309
|
+
query["NextToken"] = request.nextToken;
|
|
1310
|
+
}
|
|
1311
|
+
|
|
1312
|
+
if (!$dara.isNull(request.resourceType)) {
|
|
1313
|
+
query["ResourceType"] = request.resourceType;
|
|
1314
|
+
}
|
|
1315
|
+
|
|
1316
|
+
if (!$dara.isNull(request.subProtectionPolicyType)) {
|
|
1317
|
+
query["SubProtectionPolicyType"] = request.subProtectionPolicyType;
|
|
1318
|
+
}
|
|
1319
|
+
|
|
1320
|
+
if (!$dara.isNull(request.taskId)) {
|
|
1321
|
+
query["TaskId"] = request.taskId;
|
|
2803
1322
|
}
|
|
2804
1323
|
|
|
2805
|
-
let req = new $
|
|
1324
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
2806
1325
|
headers: headers,
|
|
2807
|
-
|
|
1326
|
+
query: OpenApiUtil.query(query),
|
|
2808
1327
|
});
|
|
2809
|
-
let params = new $
|
|
2810
|
-
action: "
|
|
1328
|
+
let params = new $OpenApiUtil.Params({
|
|
1329
|
+
action: "ListProtectionPolicyApplications",
|
|
2811
1330
|
version: "2023-08-08",
|
|
2812
1331
|
protocol: "HTTPS",
|
|
2813
|
-
pathname: `/api/v1/
|
|
2814
|
-
method: "
|
|
1332
|
+
pathname: `/api/v1/protection-policies/${$dara.URL.percentEncode(ProtectionPolicyId)}/list-applications`,
|
|
1333
|
+
method: "GET",
|
|
2815
1334
|
authType: "AK",
|
|
2816
1335
|
style: "ROA",
|
|
2817
|
-
reqBodyType: "
|
|
1336
|
+
reqBodyType: "json",
|
|
2818
1337
|
bodyType: "json",
|
|
2819
1338
|
});
|
|
2820
|
-
return $
|
|
1339
|
+
return $dara.cast<$_model.ListProtectionPolicyApplicationsResponse>(await this.callApi(params, req, runtime), new $_model.ListProtectionPolicyApplicationsResponse({}));
|
|
2821
1340
|
}
|
|
2822
1341
|
|
|
2823
1342
|
/**
|
|
2824
|
-
*
|
|
2825
|
-
*
|
|
1343
|
+
* Retrieves the application history of the protection policy.
|
|
1344
|
+
*
|
|
1345
|
+
* @param request - ListProtectionPolicyApplicationsRequest
|
|
1346
|
+
* @returns ListProtectionPolicyApplicationsResponse
|
|
2826
1347
|
*/
|
|
2827
|
-
async
|
|
2828
|
-
let runtime = new $
|
|
1348
|
+
async listProtectionPolicyApplications(ProtectionPolicyId: string, request: $_model.ListProtectionPolicyApplicationsRequest): Promise<$_model.ListProtectionPolicyApplicationsResponse> {
|
|
1349
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
2829
1350
|
let headers : {[key: string ]: string} = { };
|
|
2830
|
-
return await this.
|
|
1351
|
+
return await this.listProtectionPolicyApplicationsWithOptions(ProtectionPolicyId, request, headers, runtime);
|
|
2831
1352
|
}
|
|
2832
1353
|
|
|
2833
1354
|
/**
|
|
2834
|
-
*
|
|
1355
|
+
* Retrieves a list of resource categories.
|
|
1356
|
+
*
|
|
1357
|
+
* @param request - ListResourceCategoriesRequest
|
|
2835
1358
|
* @param headers - map
|
|
2836
1359
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
2837
|
-
* @returns
|
|
1360
|
+
* @returns ListResourceCategoriesResponse
|
|
2838
1361
|
*/
|
|
2839
|
-
async
|
|
2840
|
-
|
|
2841
|
-
let
|
|
2842
|
-
if (
|
|
2843
|
-
|
|
1362
|
+
async listResourceCategoriesWithOptions(request: $_model.ListResourceCategoriesRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.ListResourceCategoriesResponse> {
|
|
1363
|
+
request.validate();
|
|
1364
|
+
let query : {[key: string ]: any} = { };
|
|
1365
|
+
if (!$dara.isNull(request.maxResults)) {
|
|
1366
|
+
query["MaxResults"] = request.maxResults;
|
|
1367
|
+
}
|
|
1368
|
+
|
|
1369
|
+
if (!$dara.isNull(request.nextToken)) {
|
|
1370
|
+
query["NextToken"] = request.nextToken;
|
|
1371
|
+
}
|
|
1372
|
+
|
|
1373
|
+
if (!$dara.isNull(request.resourceCategoryId)) {
|
|
1374
|
+
query["ResourceCategoryId"] = request.resourceCategoryId;
|
|
2844
1375
|
}
|
|
2845
1376
|
|
|
2846
|
-
let req = new $
|
|
1377
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
2847
1378
|
headers: headers,
|
|
2848
|
-
|
|
1379
|
+
query: OpenApiUtil.query(query),
|
|
2849
1380
|
});
|
|
2850
|
-
let params = new $
|
|
2851
|
-
action: "
|
|
1381
|
+
let params = new $OpenApiUtil.Params({
|
|
1382
|
+
action: "ListResourceCategories",
|
|
2852
1383
|
version: "2023-08-08",
|
|
2853
1384
|
protocol: "HTTPS",
|
|
2854
|
-
pathname: `/api/v1/
|
|
2855
|
-
method: "
|
|
1385
|
+
pathname: `/api/v1/resource-categories/list`,
|
|
1386
|
+
method: "GET",
|
|
2856
1387
|
authType: "AK",
|
|
2857
1388
|
style: "ROA",
|
|
2858
|
-
reqBodyType: "
|
|
1389
|
+
reqBodyType: "json",
|
|
2859
1390
|
bodyType: "json",
|
|
2860
1391
|
});
|
|
2861
|
-
return $
|
|
1392
|
+
return $dara.cast<$_model.ListResourceCategoriesResponse>(await this.callApi(params, req, runtime), new $_model.ListResourceCategoriesResponse({}));
|
|
2862
1393
|
}
|
|
2863
1394
|
|
|
2864
1395
|
/**
|
|
2865
|
-
*
|
|
2866
|
-
*
|
|
1396
|
+
* Retrieves a list of resource categories.
|
|
1397
|
+
*
|
|
1398
|
+
* @param request - ListResourceCategoriesRequest
|
|
1399
|
+
* @returns ListResourceCategoriesResponse
|
|
2867
1400
|
*/
|
|
2868
|
-
async
|
|
2869
|
-
let runtime = new $
|
|
1401
|
+
async listResourceCategories(request: $_model.ListResourceCategoriesRequest): Promise<$_model.ListResourceCategoriesResponse> {
|
|
1402
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
2870
1403
|
let headers : {[key: string ]: string} = { };
|
|
2871
|
-
return await this.
|
|
1404
|
+
return await this.listResourceCategoriesWithOptions(request, headers, runtime);
|
|
2872
1405
|
}
|
|
2873
1406
|
|
|
2874
1407
|
/**
|
|
2875
|
-
*
|
|
1408
|
+
* Enables the Backup and Disaster Recovery Center.
|
|
1409
|
+
*
|
|
2876
1410
|
* @param headers - map
|
|
2877
1411
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
2878
|
-
* @returns
|
|
1412
|
+
* @returns OpenBdrcServiceResponse
|
|
2879
1413
|
*/
|
|
2880
|
-
async
|
|
2881
|
-
|
|
2882
|
-
let body : {[key: string ]: any} = { };
|
|
2883
|
-
if (!Util.isUnset(request.productType)) {
|
|
2884
|
-
body["ProductType"] = request.productType;
|
|
2885
|
-
}
|
|
2886
|
-
|
|
2887
|
-
let req = new $OpenApi.OpenApiRequest({
|
|
1414
|
+
async openBdrcServiceWithOptions(headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.OpenBdrcServiceResponse> {
|
|
1415
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
2888
1416
|
headers: headers,
|
|
2889
|
-
body: OpenApiUtil.parseToMap(body),
|
|
2890
1417
|
});
|
|
2891
|
-
let params = new $
|
|
2892
|
-
action: "
|
|
1418
|
+
let params = new $OpenApiUtil.Params({
|
|
1419
|
+
action: "OpenBdrcService",
|
|
2893
1420
|
version: "2023-08-08",
|
|
2894
1421
|
protocol: "HTTPS",
|
|
2895
|
-
pathname: `/api/v1/
|
|
1422
|
+
pathname: `/api/v1/service/open`,
|
|
2896
1423
|
method: "POST",
|
|
2897
1424
|
authType: "AK",
|
|
2898
1425
|
style: "ROA",
|
|
2899
|
-
reqBodyType: "
|
|
1426
|
+
reqBodyType: "json",
|
|
2900
1427
|
bodyType: "json",
|
|
2901
1428
|
});
|
|
2902
|
-
return $
|
|
1429
|
+
return $dara.cast<$_model.OpenBdrcServiceResponse>(await this.callApi(params, req, runtime), new $_model.OpenBdrcServiceResponse({}));
|
|
2903
1430
|
}
|
|
2904
1431
|
|
|
2905
1432
|
/**
|
|
2906
|
-
*
|
|
2907
|
-
* @returns
|
|
1433
|
+
* Enables the Backup and Disaster Recovery Center.
|
|
1434
|
+
* @returns OpenBdrcServiceResponse
|
|
2908
1435
|
*/
|
|
2909
|
-
async
|
|
2910
|
-
let runtime = new $
|
|
1436
|
+
async openBdrcService(): Promise<$_model.OpenBdrcServiceResponse> {
|
|
1437
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
2911
1438
|
let headers : {[key: string ]: string} = { };
|
|
2912
|
-
return await this.
|
|
1439
|
+
return await this.openBdrcServiceWithOptions(headers, runtime);
|
|
2913
1440
|
}
|
|
2914
1441
|
|
|
2915
1442
|
/**
|
|
2916
|
-
*
|
|
1443
|
+
* Updates a protection policy.
|
|
1444
|
+
*
|
|
1445
|
+
* @param tmpReq - UpdateProtectionPolicyRequest
|
|
2917
1446
|
* @param headers - map
|
|
2918
1447
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
2919
|
-
* @returns
|
|
2920
|
-
*/
|
|
2921
|
-
async
|
|
2922
|
-
|
|
1448
|
+
* @returns UpdateProtectionPolicyResponse
|
|
1449
|
+
*/
|
|
1450
|
+
async updateProtectionPolicyWithOptions(ProtectionPolicyId: string, tmpReq: $_model.UpdateProtectionPolicyRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.UpdateProtectionPolicyResponse> {
|
|
1451
|
+
tmpReq.validate();
|
|
1452
|
+
let request = new $_model.UpdateProtectionPolicyShrinkRequest({ });
|
|
1453
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
1454
|
+
if (!$dara.isNull(tmpReq.boundResourceCategoryIds)) {
|
|
1455
|
+
request.boundResourceCategoryIdsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.boundResourceCategoryIds, "BoundResourceCategoryIds", "json");
|
|
1456
|
+
}
|
|
1457
|
+
|
|
1458
|
+
if (!$dara.isNull(tmpReq.subProtectionPolicies)) {
|
|
1459
|
+
request.subProtectionPoliciesShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.subProtectionPolicies, "SubProtectionPolicies", "json");
|
|
1460
|
+
}
|
|
1461
|
+
|
|
2923
1462
|
let body : {[key: string ]: any} = { };
|
|
2924
|
-
if (
|
|
2925
|
-
body["
|
|
1463
|
+
if (!$dara.isNull(request.boundResourceCategoryIdsShrink)) {
|
|
1464
|
+
body["BoundResourceCategoryIds"] = request.boundResourceCategoryIdsShrink;
|
|
1465
|
+
}
|
|
1466
|
+
|
|
1467
|
+
if (!$dara.isNull(request.clientToken)) {
|
|
1468
|
+
body["ClientToken"] = request.clientToken;
|
|
1469
|
+
}
|
|
1470
|
+
|
|
1471
|
+
if (!$dara.isNull(request.protectionPolicyName)) {
|
|
1472
|
+
body["ProtectionPolicyName"] = request.protectionPolicyName;
|
|
1473
|
+
}
|
|
1474
|
+
|
|
1475
|
+
if (!$dara.isNull(request.subProtectionPoliciesShrink)) {
|
|
1476
|
+
body["SubProtectionPolicies"] = request.subProtectionPoliciesShrink;
|
|
2926
1477
|
}
|
|
2927
1478
|
|
|
2928
|
-
let req = new $
|
|
1479
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
2929
1480
|
headers: headers,
|
|
2930
1481
|
body: OpenApiUtil.parseToMap(body),
|
|
2931
1482
|
});
|
|
2932
|
-
let params = new $
|
|
2933
|
-
action: "
|
|
1483
|
+
let params = new $OpenApiUtil.Params({
|
|
1484
|
+
action: "UpdateProtectionPolicy",
|
|
2934
1485
|
version: "2023-08-08",
|
|
2935
1486
|
protocol: "HTTPS",
|
|
2936
|
-
pathname: `/api/v1/
|
|
2937
|
-
method: "
|
|
1487
|
+
pathname: `/api/v1/protection-policies/${$dara.URL.percentEncode(ProtectionPolicyId)}`,
|
|
1488
|
+
method: "PATCH",
|
|
2938
1489
|
authType: "AK",
|
|
2939
1490
|
style: "ROA",
|
|
2940
1491
|
reqBodyType: "formData",
|
|
2941
1492
|
bodyType: "json",
|
|
2942
1493
|
});
|
|
2943
|
-
return $
|
|
1494
|
+
return $dara.cast<$_model.UpdateProtectionPolicyResponse>(await this.callApi(params, req, runtime), new $_model.UpdateProtectionPolicyResponse({}));
|
|
2944
1495
|
}
|
|
2945
1496
|
|
|
2946
1497
|
/**
|
|
2947
|
-
*
|
|
2948
|
-
*
|
|
1498
|
+
* Updates a protection policy.
|
|
1499
|
+
*
|
|
1500
|
+
* @param request - UpdateProtectionPolicyRequest
|
|
1501
|
+
* @returns UpdateProtectionPolicyResponse
|
|
2949
1502
|
*/
|
|
2950
|
-
async
|
|
2951
|
-
let runtime = new $
|
|
1503
|
+
async updateProtectionPolicy(ProtectionPolicyId: string, request: $_model.UpdateProtectionPolicyRequest): Promise<$_model.UpdateProtectionPolicyResponse> {
|
|
1504
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
2952
1505
|
let headers : {[key: string ]: string} = { };
|
|
2953
|
-
return await this.
|
|
1506
|
+
return await this.updateProtectionPolicyWithOptions(ProtectionPolicyId, request, headers, runtime);
|
|
2954
1507
|
}
|
|
2955
1508
|
|
|
2956
1509
|
/**
|
|
1510
|
+
* Updates a resource category.
|
|
1511
|
+
*
|
|
1512
|
+
* @param request - UpdateResourceCategoryRequest
|
|
2957
1513
|
* @param headers - map
|
|
2958
1514
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
2959
|
-
* @returns
|
|
1515
|
+
* @returns UpdateResourceCategoryResponse
|
|
2960
1516
|
*/
|
|
2961
|
-
async
|
|
2962
|
-
|
|
2963
|
-
|
|
2964
|
-
|
|
2965
|
-
|
|
2966
|
-
|
|
2967
|
-
version: "2023-08-08",
|
|
2968
|
-
protocol: "HTTPS",
|
|
2969
|
-
pathname: `/api/v1/service`,
|
|
2970
|
-
method: "GET",
|
|
2971
|
-
authType: "AK",
|
|
2972
|
-
style: "ROA",
|
|
2973
|
-
reqBodyType: "json",
|
|
2974
|
-
bodyType: "json",
|
|
2975
|
-
});
|
|
2976
|
-
return $tea.cast<GetBdrcServiceResponse>(await this.callApi(params, req, runtime), new GetBdrcServiceResponse({}));
|
|
2977
|
-
}
|
|
1517
|
+
async updateResourceCategoryWithOptions(request: $_model.UpdateResourceCategoryRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.UpdateResourceCategoryResponse> {
|
|
1518
|
+
request.validate();
|
|
1519
|
+
let body : {[key: string ]: any} = { };
|
|
1520
|
+
if (!$dara.isNull(request.resourceCategoryId)) {
|
|
1521
|
+
body["ResourceCategoryId"] = request.resourceCategoryId;
|
|
1522
|
+
}
|
|
2978
1523
|
|
|
2979
|
-
|
|
2980
|
-
|
|
2981
|
-
|
|
2982
|
-
async getBdrcService(): Promise<GetBdrcServiceResponse> {
|
|
2983
|
-
let runtime = new $Util.RuntimeOptions({ });
|
|
2984
|
-
let headers : {[key: string ]: string} = { };
|
|
2985
|
-
return await this.getBdrcServiceWithOptions(headers, runtime);
|
|
2986
|
-
}
|
|
1524
|
+
if (!$dara.isNull(request.resourceCategoryName)) {
|
|
1525
|
+
body["ResourceCategoryName"] = request.resourceCategoryName;
|
|
1526
|
+
}
|
|
2987
1527
|
|
|
2988
|
-
|
|
2989
|
-
|
|
2990
|
-
|
|
2991
|
-
|
|
2992
|
-
|
|
2993
|
-
async openBdrcServiceWithOptions(headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<OpenBdrcServiceResponse> {
|
|
2994
|
-
let req = new $OpenApi.OpenApiRequest({
|
|
1528
|
+
if (!$dara.isNull(request.resourceMatcher)) {
|
|
1529
|
+
body["ResourceMatcher"] = request.resourceMatcher;
|
|
1530
|
+
}
|
|
1531
|
+
|
|
1532
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
2995
1533
|
headers: headers,
|
|
1534
|
+
body: OpenApiUtil.parseToMap(body),
|
|
2996
1535
|
});
|
|
2997
|
-
let params = new $
|
|
2998
|
-
action: "
|
|
1536
|
+
let params = new $OpenApiUtil.Params({
|
|
1537
|
+
action: "UpdateResourceCategory",
|
|
2999
1538
|
version: "2023-08-08",
|
|
3000
1539
|
protocol: "HTTPS",
|
|
3001
|
-
pathname: `/api/v1/
|
|
1540
|
+
pathname: `/api/v1/resource-categories/update`,
|
|
3002
1541
|
method: "POST",
|
|
3003
1542
|
authType: "AK",
|
|
3004
1543
|
style: "ROA",
|
|
3005
|
-
reqBodyType: "
|
|
1544
|
+
reqBodyType: "formData",
|
|
3006
1545
|
bodyType: "json",
|
|
3007
1546
|
});
|
|
3008
|
-
return $
|
|
1547
|
+
return $dara.cast<$_model.UpdateResourceCategoryResponse>(await this.callApi(params, req, runtime), new $_model.UpdateResourceCategoryResponse({}));
|
|
3009
1548
|
}
|
|
3010
1549
|
|
|
3011
1550
|
/**
|
|
3012
|
-
*
|
|
1551
|
+
* Updates a resource category.
|
|
1552
|
+
*
|
|
1553
|
+
* @param request - UpdateResourceCategoryRequest
|
|
1554
|
+
* @returns UpdateResourceCategoryResponse
|
|
3013
1555
|
*/
|
|
3014
|
-
async
|
|
3015
|
-
let runtime = new $
|
|
1556
|
+
async updateResourceCategory(request: $_model.UpdateResourceCategoryRequest): Promise<$_model.UpdateResourceCategoryResponse> {
|
|
1557
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
3016
1558
|
let headers : {[key: string ]: string} = { };
|
|
3017
|
-
return await this.
|
|
1559
|
+
return await this.updateResourceCategoryWithOptions(request, headers, runtime);
|
|
3018
1560
|
}
|
|
3019
1561
|
|
|
3020
1562
|
/**
|
|
1563
|
+
* Updates the resource list. When you call this operation, an asynchronous task is triggered to update your resource list and data protection score.
|
|
1564
|
+
*
|
|
3021
1565
|
* @param request - UpdateResourcesRequest
|
|
3022
1566
|
* @param headers - map
|
|
3023
1567
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
3024
1568
|
* @returns UpdateResourcesResponse
|
|
3025
1569
|
*/
|
|
3026
|
-
async updateResourcesWithOptions(request: UpdateResourcesRequest, headers: {[key: string ]: string}, runtime: $
|
|
3027
|
-
|
|
1570
|
+
async updateResourcesWithOptions(request: $_model.UpdateResourcesRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.UpdateResourcesResponse> {
|
|
1571
|
+
request.validate();
|
|
3028
1572
|
let body : {[key: string ]: any} = { };
|
|
3029
|
-
if (
|
|
1573
|
+
if (!$dara.isNull(request.resourceType)) {
|
|
3030
1574
|
body["ResourceType"] = request.resourceType;
|
|
3031
1575
|
}
|
|
3032
1576
|
|
|
3033
|
-
let req = new $
|
|
1577
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
3034
1578
|
headers: headers,
|
|
3035
1579
|
body: OpenApiUtil.parseToMap(body),
|
|
3036
1580
|
});
|
|
3037
|
-
let params = new $
|
|
1581
|
+
let params = new $OpenApiUtil.Params({
|
|
3038
1582
|
action: "UpdateResources",
|
|
3039
1583
|
version: "2023-08-08",
|
|
3040
1584
|
protocol: "HTTPS",
|
|
@@ -3045,15 +1589,17 @@ export default class Client extends OpenApi {
|
|
|
3045
1589
|
reqBodyType: "formData",
|
|
3046
1590
|
bodyType: "json",
|
|
3047
1591
|
});
|
|
3048
|
-
return $
|
|
1592
|
+
return $dara.cast<$_model.UpdateResourcesResponse>(await this.callApi(params, req, runtime), new $_model.UpdateResourcesResponse({}));
|
|
3049
1593
|
}
|
|
3050
1594
|
|
|
3051
1595
|
/**
|
|
1596
|
+
* Updates the resource list. When you call this operation, an asynchronous task is triggered to update your resource list and data protection score.
|
|
1597
|
+
*
|
|
3052
1598
|
* @param request - UpdateResourcesRequest
|
|
3053
1599
|
* @returns UpdateResourcesResponse
|
|
3054
1600
|
*/
|
|
3055
|
-
async updateResources(request: UpdateResourcesRequest): Promise
|
|
3056
|
-
let runtime = new $
|
|
1601
|
+
async updateResources(request: $_model.UpdateResourcesRequest): Promise<$_model.UpdateResourcesResponse> {
|
|
1602
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
3057
1603
|
let headers : {[key: string ]: string} = { };
|
|
3058
1604
|
return await this.updateResourcesWithOptions(request, headers, runtime);
|
|
3059
1605
|
}
|