huaweicloudsdkcbr 3.1.87__py2.py3-none-any.whl → 3.1.89__py2.py3-none-any.whl
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.
- huaweicloudsdkcbr/v1/__init__.py +18 -0
- huaweicloudsdkcbr/v1/cbr_async_client.py +392 -0
- huaweicloudsdkcbr/v1/cbr_client.py +392 -0
- huaweicloudsdkcbr/v1/model/__init__.py +18 -0
- huaweicloudsdkcbr/v1/model/backup_extend_info.py +1 -30
- huaweicloudsdkcbr/v1/model/backup_resp.py +32 -3
- huaweicloudsdkcbr/v1/model/create_organization_policy_request.py +111 -0
- huaweicloudsdkcbr/v1/model/create_organization_policy_response.py +112 -0
- huaweicloudsdkcbr/v1/model/delete_organization_policy_request.py +114 -0
- huaweicloudsdkcbr/v1/model/delete_organization_policy_response.py +85 -0
- huaweicloudsdkcbr/v1/model/list_external_vault_response.py +3 -32
- huaweicloudsdkcbr/v1/model/list_organization_policies_request.py +114 -0
- huaweicloudsdkcbr/v1/model/list_organization_policies_response.py +203 -0
- huaweicloudsdkcbr/v1/model/list_organization_policy_detail_request.py +114 -0
- huaweicloudsdkcbr/v1/model/list_organization_policy_detail_response.py +203 -0
- huaweicloudsdkcbr/v1/model/list_vault_response.py +3 -32
- huaweicloudsdkcbr/v1/model/organization_policy.py +388 -0
- huaweicloudsdkcbr/v1/model/organization_policy_create.py +275 -0
- huaweicloudsdkcbr/v1/model/organization_policy_create_req.py +110 -0
- huaweicloudsdkcbr/v1/model/organization_policy_status.py +198 -0
- huaweicloudsdkcbr/v1/model/organization_policy_update.py +252 -0
- huaweicloudsdkcbr/v1/model/organization_policy_update_req.py +110 -0
- huaweicloudsdkcbr/v1/model/policy_trigger_properties_req.py +3 -3
- huaweicloudsdkcbr/v1/model/show_organization_policy_request.py +114 -0
- huaweicloudsdkcbr/v1/model/show_organization_policy_response.py +112 -0
- huaweicloudsdkcbr/v1/model/update_organization_policy_request.py +139 -0
- huaweicloudsdkcbr/v1/model/update_organization_policy_response.py +112 -0
- huaweicloudsdkcbr/v1/model/vault_create.py +32 -3
- {huaweicloudsdkcbr-3.1.87.dist-info → huaweicloudsdkcbr-3.1.89.dist-info}/METADATA +2 -2
- {huaweicloudsdkcbr-3.1.87.dist-info → huaweicloudsdkcbr-3.1.89.dist-info}/RECORD +33 -15
- {huaweicloudsdkcbr-3.1.87.dist-info → huaweicloudsdkcbr-3.1.89.dist-info}/LICENSE +0 -0
- {huaweicloudsdkcbr-3.1.87.dist-info → huaweicloudsdkcbr-3.1.89.dist-info}/WHEEL +0 -0
- {huaweicloudsdkcbr-3.1.87.dist-info → huaweicloudsdkcbr-3.1.89.dist-info}/top_level.txt +0 -0
@@ -701,6 +701,71 @@ class CbrClient(Client):
|
|
701
701
|
|
702
702
|
return http_info
|
703
703
|
|
704
|
+
def create_organization_policy(self, request):
|
705
|
+
"""创建组织策略
|
706
|
+
|
707
|
+
创建组织策略
|
708
|
+
|
709
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
710
|
+
|
711
|
+
:param request: Request instance for CreateOrganizationPolicy
|
712
|
+
:type request: :class:`huaweicloudsdkcbr.v1.CreateOrganizationPolicyRequest`
|
713
|
+
:rtype: :class:`huaweicloudsdkcbr.v1.CreateOrganizationPolicyResponse`
|
714
|
+
"""
|
715
|
+
http_info = self._create_organization_policy_http_info(request)
|
716
|
+
return self._call_api(**http_info)
|
717
|
+
|
718
|
+
def create_organization_policy_invoker(self, request):
|
719
|
+
http_info = self._create_organization_policy_http_info(request)
|
720
|
+
return SyncInvoker(self, http_info)
|
721
|
+
|
722
|
+
@classmethod
|
723
|
+
def _create_organization_policy_http_info(cls, request):
|
724
|
+
http_info = {
|
725
|
+
"method": "POST",
|
726
|
+
"resource_path": "/v3/{project_id}/organization-policies",
|
727
|
+
"request_type": request.__class__.__name__,
|
728
|
+
"response_type": "CreateOrganizationPolicyResponse"
|
729
|
+
}
|
730
|
+
|
731
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
732
|
+
|
733
|
+
cname = None
|
734
|
+
|
735
|
+
collection_formats = {}
|
736
|
+
|
737
|
+
path_params = {}
|
738
|
+
|
739
|
+
query_params = []
|
740
|
+
|
741
|
+
header_params = {}
|
742
|
+
|
743
|
+
form_params = {}
|
744
|
+
|
745
|
+
body = None
|
746
|
+
if 'body' in local_var_params:
|
747
|
+
body = local_var_params['body']
|
748
|
+
if isinstance(request, SdkStreamRequest):
|
749
|
+
body = request.get_file_stream()
|
750
|
+
|
751
|
+
response_headers = []
|
752
|
+
|
753
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
754
|
+
['application/json;charset=UTF-8'])
|
755
|
+
|
756
|
+
auth_settings = []
|
757
|
+
|
758
|
+
http_info["cname"] = cname
|
759
|
+
http_info["collection_formats"] = collection_formats
|
760
|
+
http_info["path_params"] = path_params
|
761
|
+
http_info["query_params"] = query_params
|
762
|
+
http_info["header_params"] = header_params
|
763
|
+
http_info["post_params"] = form_params
|
764
|
+
http_info["body"] = body
|
765
|
+
http_info["response_headers"] = response_headers
|
766
|
+
|
767
|
+
return http_info
|
768
|
+
|
704
769
|
def create_policy(self, request):
|
705
770
|
"""创建策略
|
706
771
|
|
@@ -1096,6 +1161,71 @@ class CbrClient(Client):
|
|
1096
1161
|
|
1097
1162
|
return http_info
|
1098
1163
|
|
1164
|
+
def delete_organization_policy(self, request):
|
1165
|
+
"""删除组织策略
|
1166
|
+
|
1167
|
+
删除组织策略
|
1168
|
+
|
1169
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
1170
|
+
|
1171
|
+
:param request: Request instance for DeleteOrganizationPolicy
|
1172
|
+
:type request: :class:`huaweicloudsdkcbr.v1.DeleteOrganizationPolicyRequest`
|
1173
|
+
:rtype: :class:`huaweicloudsdkcbr.v1.DeleteOrganizationPolicyResponse`
|
1174
|
+
"""
|
1175
|
+
http_info = self._delete_organization_policy_http_info(request)
|
1176
|
+
return self._call_api(**http_info)
|
1177
|
+
|
1178
|
+
def delete_organization_policy_invoker(self, request):
|
1179
|
+
http_info = self._delete_organization_policy_http_info(request)
|
1180
|
+
return SyncInvoker(self, http_info)
|
1181
|
+
|
1182
|
+
@classmethod
|
1183
|
+
def _delete_organization_policy_http_info(cls, request):
|
1184
|
+
http_info = {
|
1185
|
+
"method": "DELETE",
|
1186
|
+
"resource_path": "/v3/{project_id}/organization-policies/{organization_policy_id}",
|
1187
|
+
"request_type": request.__class__.__name__,
|
1188
|
+
"response_type": "DeleteOrganizationPolicyResponse"
|
1189
|
+
}
|
1190
|
+
|
1191
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1192
|
+
|
1193
|
+
cname = None
|
1194
|
+
|
1195
|
+
collection_formats = {}
|
1196
|
+
|
1197
|
+
path_params = {}
|
1198
|
+
if 'organization_policy_id' in local_var_params:
|
1199
|
+
path_params['organization_policy_id'] = local_var_params['organization_policy_id']
|
1200
|
+
|
1201
|
+
query_params = []
|
1202
|
+
|
1203
|
+
header_params = {}
|
1204
|
+
|
1205
|
+
form_params = {}
|
1206
|
+
|
1207
|
+
body = None
|
1208
|
+
if isinstance(request, SdkStreamRequest):
|
1209
|
+
body = request.get_file_stream()
|
1210
|
+
|
1211
|
+
response_headers = []
|
1212
|
+
|
1213
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
1214
|
+
['application/json'])
|
1215
|
+
|
1216
|
+
auth_settings = []
|
1217
|
+
|
1218
|
+
http_info["cname"] = cname
|
1219
|
+
http_info["collection_formats"] = collection_formats
|
1220
|
+
http_info["path_params"] = path_params
|
1221
|
+
http_info["query_params"] = query_params
|
1222
|
+
http_info["header_params"] = header_params
|
1223
|
+
http_info["post_params"] = form_params
|
1224
|
+
http_info["body"] = body
|
1225
|
+
http_info["response_headers"] = response_headers
|
1226
|
+
|
1227
|
+
return http_info
|
1228
|
+
|
1099
1229
|
def delete_policy(self, request):
|
1100
1230
|
"""删除策略
|
1101
1231
|
|
@@ -1902,6 +2032,136 @@ class CbrClient(Client):
|
|
1902
2032
|
|
1903
2033
|
return http_info
|
1904
2034
|
|
2035
|
+
def list_organization_policies(self, request):
|
2036
|
+
"""查询组织策略列表
|
2037
|
+
|
2038
|
+
查询组织策略列表
|
2039
|
+
|
2040
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
2041
|
+
|
2042
|
+
:param request: Request instance for ListOrganizationPolicies
|
2043
|
+
:type request: :class:`huaweicloudsdkcbr.v1.ListOrganizationPoliciesRequest`
|
2044
|
+
:rtype: :class:`huaweicloudsdkcbr.v1.ListOrganizationPoliciesResponse`
|
2045
|
+
"""
|
2046
|
+
http_info = self._list_organization_policies_http_info(request)
|
2047
|
+
return self._call_api(**http_info)
|
2048
|
+
|
2049
|
+
def list_organization_policies_invoker(self, request):
|
2050
|
+
http_info = self._list_organization_policies_http_info(request)
|
2051
|
+
return SyncInvoker(self, http_info)
|
2052
|
+
|
2053
|
+
@classmethod
|
2054
|
+
def _list_organization_policies_http_info(cls, request):
|
2055
|
+
http_info = {
|
2056
|
+
"method": "GET",
|
2057
|
+
"resource_path": "/v3/{project_id}/organization-policies",
|
2058
|
+
"request_type": request.__class__.__name__,
|
2059
|
+
"response_type": "ListOrganizationPoliciesResponse"
|
2060
|
+
}
|
2061
|
+
|
2062
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
2063
|
+
|
2064
|
+
cname = None
|
2065
|
+
|
2066
|
+
collection_formats = {}
|
2067
|
+
|
2068
|
+
path_params = {}
|
2069
|
+
|
2070
|
+
query_params = []
|
2071
|
+
if 'operation_type' in local_var_params:
|
2072
|
+
query_params.append(('operation_type', local_var_params['operation_type']))
|
2073
|
+
|
2074
|
+
header_params = {}
|
2075
|
+
|
2076
|
+
form_params = {}
|
2077
|
+
|
2078
|
+
body = None
|
2079
|
+
if isinstance(request, SdkStreamRequest):
|
2080
|
+
body = request.get_file_stream()
|
2081
|
+
|
2082
|
+
response_headers = []
|
2083
|
+
|
2084
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
2085
|
+
['application/json'])
|
2086
|
+
|
2087
|
+
auth_settings = []
|
2088
|
+
|
2089
|
+
http_info["cname"] = cname
|
2090
|
+
http_info["collection_formats"] = collection_formats
|
2091
|
+
http_info["path_params"] = path_params
|
2092
|
+
http_info["query_params"] = query_params
|
2093
|
+
http_info["header_params"] = header_params
|
2094
|
+
http_info["post_params"] = form_params
|
2095
|
+
http_info["body"] = body
|
2096
|
+
http_info["response_headers"] = response_headers
|
2097
|
+
|
2098
|
+
return http_info
|
2099
|
+
|
2100
|
+
def list_organization_policy_detail(self, request):
|
2101
|
+
"""查询组织策略部署状态列表
|
2102
|
+
|
2103
|
+
查询组织策略每个账号下策略部署状态列表
|
2104
|
+
|
2105
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
2106
|
+
|
2107
|
+
:param request: Request instance for ListOrganizationPolicyDetail
|
2108
|
+
:type request: :class:`huaweicloudsdkcbr.v1.ListOrganizationPolicyDetailRequest`
|
2109
|
+
:rtype: :class:`huaweicloudsdkcbr.v1.ListOrganizationPolicyDetailResponse`
|
2110
|
+
"""
|
2111
|
+
http_info = self._list_organization_policy_detail_http_info(request)
|
2112
|
+
return self._call_api(**http_info)
|
2113
|
+
|
2114
|
+
def list_organization_policy_detail_invoker(self, request):
|
2115
|
+
http_info = self._list_organization_policy_detail_http_info(request)
|
2116
|
+
return SyncInvoker(self, http_info)
|
2117
|
+
|
2118
|
+
@classmethod
|
2119
|
+
def _list_organization_policy_detail_http_info(cls, request):
|
2120
|
+
http_info = {
|
2121
|
+
"method": "GET",
|
2122
|
+
"resource_path": "/v3/{project_id}/organization-policies/{organization_policy_id}/policy-detail",
|
2123
|
+
"request_type": request.__class__.__name__,
|
2124
|
+
"response_type": "ListOrganizationPolicyDetailResponse"
|
2125
|
+
}
|
2126
|
+
|
2127
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
2128
|
+
|
2129
|
+
cname = None
|
2130
|
+
|
2131
|
+
collection_formats = {}
|
2132
|
+
|
2133
|
+
path_params = {}
|
2134
|
+
if 'organization_policy_id' in local_var_params:
|
2135
|
+
path_params['organization_policy_id'] = local_var_params['organization_policy_id']
|
2136
|
+
|
2137
|
+
query_params = []
|
2138
|
+
|
2139
|
+
header_params = {}
|
2140
|
+
|
2141
|
+
form_params = {}
|
2142
|
+
|
2143
|
+
body = None
|
2144
|
+
if isinstance(request, SdkStreamRequest):
|
2145
|
+
body = request.get_file_stream()
|
2146
|
+
|
2147
|
+
response_headers = []
|
2148
|
+
|
2149
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
2150
|
+
['application/json'])
|
2151
|
+
|
2152
|
+
auth_settings = []
|
2153
|
+
|
2154
|
+
http_info["cname"] = cname
|
2155
|
+
http_info["collection_formats"] = collection_formats
|
2156
|
+
http_info["path_params"] = path_params
|
2157
|
+
http_info["query_params"] = query_params
|
2158
|
+
http_info["header_params"] = header_params
|
2159
|
+
http_info["post_params"] = form_params
|
2160
|
+
http_info["body"] = body
|
2161
|
+
http_info["response_headers"] = response_headers
|
2162
|
+
|
2163
|
+
return http_info
|
2164
|
+
|
1905
2165
|
def list_policies(self, request):
|
1906
2166
|
"""查询策略列表
|
1907
2167
|
|
@@ -3265,6 +3525,71 @@ class CbrClient(Client):
|
|
3265
3525
|
|
3266
3526
|
return http_info
|
3267
3527
|
|
3528
|
+
def show_organization_policy(self, request):
|
3529
|
+
"""查询指定组织策略
|
3530
|
+
|
3531
|
+
查询指定组织策略
|
3532
|
+
|
3533
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
3534
|
+
|
3535
|
+
:param request: Request instance for ShowOrganizationPolicy
|
3536
|
+
:type request: :class:`huaweicloudsdkcbr.v1.ShowOrganizationPolicyRequest`
|
3537
|
+
:rtype: :class:`huaweicloudsdkcbr.v1.ShowOrganizationPolicyResponse`
|
3538
|
+
"""
|
3539
|
+
http_info = self._show_organization_policy_http_info(request)
|
3540
|
+
return self._call_api(**http_info)
|
3541
|
+
|
3542
|
+
def show_organization_policy_invoker(self, request):
|
3543
|
+
http_info = self._show_organization_policy_http_info(request)
|
3544
|
+
return SyncInvoker(self, http_info)
|
3545
|
+
|
3546
|
+
@classmethod
|
3547
|
+
def _show_organization_policy_http_info(cls, request):
|
3548
|
+
http_info = {
|
3549
|
+
"method": "GET",
|
3550
|
+
"resource_path": "/v3/{project_id}/organization-policies/{organization_policy_id}",
|
3551
|
+
"request_type": request.__class__.__name__,
|
3552
|
+
"response_type": "ShowOrganizationPolicyResponse"
|
3553
|
+
}
|
3554
|
+
|
3555
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
3556
|
+
|
3557
|
+
cname = None
|
3558
|
+
|
3559
|
+
collection_formats = {}
|
3560
|
+
|
3561
|
+
path_params = {}
|
3562
|
+
if 'organization_policy_id' in local_var_params:
|
3563
|
+
path_params['organization_policy_id'] = local_var_params['organization_policy_id']
|
3564
|
+
|
3565
|
+
query_params = []
|
3566
|
+
|
3567
|
+
header_params = {}
|
3568
|
+
|
3569
|
+
form_params = {}
|
3570
|
+
|
3571
|
+
body = None
|
3572
|
+
if isinstance(request, SdkStreamRequest):
|
3573
|
+
body = request.get_file_stream()
|
3574
|
+
|
3575
|
+
response_headers = []
|
3576
|
+
|
3577
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
3578
|
+
['application/json'])
|
3579
|
+
|
3580
|
+
auth_settings = []
|
3581
|
+
|
3582
|
+
http_info["cname"] = cname
|
3583
|
+
http_info["collection_formats"] = collection_formats
|
3584
|
+
http_info["path_params"] = path_params
|
3585
|
+
http_info["query_params"] = query_params
|
3586
|
+
http_info["header_params"] = header_params
|
3587
|
+
http_info["post_params"] = form_params
|
3588
|
+
http_info["body"] = body
|
3589
|
+
http_info["response_headers"] = response_headers
|
3590
|
+
|
3591
|
+
return http_info
|
3592
|
+
|
3268
3593
|
def show_policy(self, request):
|
3269
3594
|
"""查询单个策略
|
3270
3595
|
|
@@ -4190,6 +4515,73 @@ class CbrClient(Client):
|
|
4190
4515
|
|
4191
4516
|
return http_info
|
4192
4517
|
|
4518
|
+
def update_organization_policy(self, request):
|
4519
|
+
"""更新组织策略
|
4520
|
+
|
4521
|
+
更新组织策略
|
4522
|
+
|
4523
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
4524
|
+
|
4525
|
+
:param request: Request instance for UpdateOrganizationPolicy
|
4526
|
+
:type request: :class:`huaweicloudsdkcbr.v1.UpdateOrganizationPolicyRequest`
|
4527
|
+
:rtype: :class:`huaweicloudsdkcbr.v1.UpdateOrganizationPolicyResponse`
|
4528
|
+
"""
|
4529
|
+
http_info = self._update_organization_policy_http_info(request)
|
4530
|
+
return self._call_api(**http_info)
|
4531
|
+
|
4532
|
+
def update_organization_policy_invoker(self, request):
|
4533
|
+
http_info = self._update_organization_policy_http_info(request)
|
4534
|
+
return SyncInvoker(self, http_info)
|
4535
|
+
|
4536
|
+
@classmethod
|
4537
|
+
def _update_organization_policy_http_info(cls, request):
|
4538
|
+
http_info = {
|
4539
|
+
"method": "PUT",
|
4540
|
+
"resource_path": "/v3/{project_id}/organization-policies/{organization_policy_id}",
|
4541
|
+
"request_type": request.__class__.__name__,
|
4542
|
+
"response_type": "UpdateOrganizationPolicyResponse"
|
4543
|
+
}
|
4544
|
+
|
4545
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
4546
|
+
|
4547
|
+
cname = None
|
4548
|
+
|
4549
|
+
collection_formats = {}
|
4550
|
+
|
4551
|
+
path_params = {}
|
4552
|
+
if 'organization_policy_id' in local_var_params:
|
4553
|
+
path_params['organization_policy_id'] = local_var_params['organization_policy_id']
|
4554
|
+
|
4555
|
+
query_params = []
|
4556
|
+
|
4557
|
+
header_params = {}
|
4558
|
+
|
4559
|
+
form_params = {}
|
4560
|
+
|
4561
|
+
body = None
|
4562
|
+
if 'body' in local_var_params:
|
4563
|
+
body = local_var_params['body']
|
4564
|
+
if isinstance(request, SdkStreamRequest):
|
4565
|
+
body = request.get_file_stream()
|
4566
|
+
|
4567
|
+
response_headers = []
|
4568
|
+
|
4569
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
4570
|
+
['application/json;charset=UTF-8'])
|
4571
|
+
|
4572
|
+
auth_settings = []
|
4573
|
+
|
4574
|
+
http_info["cname"] = cname
|
4575
|
+
http_info["collection_formats"] = collection_formats
|
4576
|
+
http_info["path_params"] = path_params
|
4577
|
+
http_info["query_params"] = query_params
|
4578
|
+
http_info["header_params"] = header_params
|
4579
|
+
http_info["post_params"] = form_params
|
4580
|
+
http_info["body"] = body
|
4581
|
+
http_info["response_headers"] = response_headers
|
4582
|
+
|
4583
|
+
return http_info
|
4584
|
+
|
4193
4585
|
def update_policy(self, request):
|
4194
4586
|
"""修改策略
|
4195
4587
|
|
@@ -64,6 +64,8 @@ from huaweicloudsdkcbr.v1.model.copy_checkpoint_request import CopyCheckpointReq
|
|
64
64
|
from huaweicloudsdkcbr.v1.model.copy_checkpoint_response import CopyCheckpointResponse
|
65
65
|
from huaweicloudsdkcbr.v1.model.create_checkpoint_request import CreateCheckpointRequest
|
66
66
|
from huaweicloudsdkcbr.v1.model.create_checkpoint_response import CreateCheckpointResponse
|
67
|
+
from huaweicloudsdkcbr.v1.model.create_organization_policy_request import CreateOrganizationPolicyRequest
|
68
|
+
from huaweicloudsdkcbr.v1.model.create_organization_policy_response import CreateOrganizationPolicyResponse
|
67
69
|
from huaweicloudsdkcbr.v1.model.create_policy_request import CreatePolicyRequest
|
68
70
|
from huaweicloudsdkcbr.v1.model.create_policy_response import CreatePolicyResponse
|
69
71
|
from huaweicloudsdkcbr.v1.model.create_post_paid_vault_request import CreatePostPaidVaultRequest
|
@@ -76,6 +78,8 @@ from huaweicloudsdkcbr.v1.model.delete_backup_request import DeleteBackupRequest
|
|
76
78
|
from huaweicloudsdkcbr.v1.model.delete_backup_response import DeleteBackupResponse
|
77
79
|
from huaweicloudsdkcbr.v1.model.delete_member_request import DeleteMemberRequest
|
78
80
|
from huaweicloudsdkcbr.v1.model.delete_member_response import DeleteMemberResponse
|
81
|
+
from huaweicloudsdkcbr.v1.model.delete_organization_policy_request import DeleteOrganizationPolicyRequest
|
82
|
+
from huaweicloudsdkcbr.v1.model.delete_organization_policy_response import DeleteOrganizationPolicyResponse
|
79
83
|
from huaweicloudsdkcbr.v1.model.delete_policy_request import DeletePolicyRequest
|
80
84
|
from huaweicloudsdkcbr.v1.model.delete_policy_response import DeletePolicyResponse
|
81
85
|
from huaweicloudsdkcbr.v1.model.delete_vault_request import DeleteVaultRequest
|
@@ -103,6 +107,10 @@ from huaweicloudsdkcbr.v1.model.list_external_vault_request import ListExternalV
|
|
103
107
|
from huaweicloudsdkcbr.v1.model.list_external_vault_response import ListExternalVaultResponse
|
104
108
|
from huaweicloudsdkcbr.v1.model.list_op_logs_request import ListOpLogsRequest
|
105
109
|
from huaweicloudsdkcbr.v1.model.list_op_logs_response import ListOpLogsResponse
|
110
|
+
from huaweicloudsdkcbr.v1.model.list_organization_policies_request import ListOrganizationPoliciesRequest
|
111
|
+
from huaweicloudsdkcbr.v1.model.list_organization_policies_response import ListOrganizationPoliciesResponse
|
112
|
+
from huaweicloudsdkcbr.v1.model.list_organization_policy_detail_request import ListOrganizationPolicyDetailRequest
|
113
|
+
from huaweicloudsdkcbr.v1.model.list_organization_policy_detail_response import ListOrganizationPolicyDetailResponse
|
106
114
|
from huaweicloudsdkcbr.v1.model.list_policies_request import ListPoliciesRequest
|
107
115
|
from huaweicloudsdkcbr.v1.model.list_policies_response import ListPoliciesResponse
|
108
116
|
from huaweicloudsdkcbr.v1.model.list_projects_request import ListProjectsRequest
|
@@ -128,6 +136,12 @@ from huaweicloudsdkcbr.v1.model.op_extend_info_sync import OpExtendInfoSync
|
|
128
136
|
from huaweicloudsdkcbr.v1.model.op_extend_info_vault_delete import OpExtendInfoVaultDelete
|
129
137
|
from huaweicloudsdkcbr.v1.model.op_extra_info import OpExtraInfo
|
130
138
|
from huaweicloudsdkcbr.v1.model.operation_log import OperationLog
|
139
|
+
from huaweicloudsdkcbr.v1.model.organization_policy import OrganizationPolicy
|
140
|
+
from huaweicloudsdkcbr.v1.model.organization_policy_create import OrganizationPolicyCreate
|
141
|
+
from huaweicloudsdkcbr.v1.model.organization_policy_create_req import OrganizationPolicyCreateReq
|
142
|
+
from huaweicloudsdkcbr.v1.model.organization_policy_status import OrganizationPolicyStatus
|
143
|
+
from huaweicloudsdkcbr.v1.model.organization_policy_update import OrganizationPolicyUpdate
|
144
|
+
from huaweicloudsdkcbr.v1.model.organization_policy_update_req import OrganizationPolicyUpdateReq
|
131
145
|
from huaweicloudsdkcbr.v1.model.path import Path
|
132
146
|
from huaweicloudsdkcbr.v1.model.policy import Policy
|
133
147
|
from huaweicloudsdkcbr.v1.model.policy_associate_vault import PolicyAssociateVault
|
@@ -184,6 +198,8 @@ from huaweicloudsdkcbr.v1.model.show_migrate_status_request import ShowMigrateSt
|
|
184
198
|
from huaweicloudsdkcbr.v1.model.show_migrate_status_response import ShowMigrateStatusResponse
|
185
199
|
from huaweicloudsdkcbr.v1.model.show_op_log_request import ShowOpLogRequest
|
186
200
|
from huaweicloudsdkcbr.v1.model.show_op_log_response import ShowOpLogResponse
|
201
|
+
from huaweicloudsdkcbr.v1.model.show_organization_policy_request import ShowOrganizationPolicyRequest
|
202
|
+
from huaweicloudsdkcbr.v1.model.show_organization_policy_response import ShowOrganizationPolicyResponse
|
187
203
|
from huaweicloudsdkcbr.v1.model.show_policy_request import ShowPolicyRequest
|
188
204
|
from huaweicloudsdkcbr.v1.model.show_policy_response import ShowPolicyResponse
|
189
205
|
from huaweicloudsdkcbr.v1.model.show_protectable_request import ShowProtectableRequest
|
@@ -223,6 +239,8 @@ from huaweicloudsdkcbr.v1.model.update_member_status_request import UpdateMember
|
|
223
239
|
from huaweicloudsdkcbr.v1.model.update_member_status_response import UpdateMemberStatusResponse
|
224
240
|
from huaweicloudsdkcbr.v1.model.update_order_request import UpdateOrderRequest
|
225
241
|
from huaweicloudsdkcbr.v1.model.update_order_response import UpdateOrderResponse
|
242
|
+
from huaweicloudsdkcbr.v1.model.update_organization_policy_request import UpdateOrganizationPolicyRequest
|
243
|
+
from huaweicloudsdkcbr.v1.model.update_organization_policy_response import UpdateOrganizationPolicyResponse
|
226
244
|
from huaweicloudsdkcbr.v1.model.update_policy_request import UpdatePolicyRequest
|
227
245
|
from huaweicloudsdkcbr.v1.model.update_policy_response import UpdatePolicyResponse
|
228
246
|
from huaweicloudsdkcbr.v1.model.update_vault_request import UpdateVaultRequest
|
@@ -19,7 +19,6 @@ class BackupExtendInfo:
|
|
19
19
|
openapi_types = {
|
20
20
|
'auto_trigger': 'bool',
|
21
21
|
'bootable': 'bool',
|
22
|
-
'incremental': 'bool',
|
23
22
|
'snapshot_id': 'str',
|
24
23
|
'support_lld': 'bool',
|
25
24
|
'supported_restore_mode': 'str',
|
@@ -33,7 +32,6 @@ class BackupExtendInfo:
|
|
33
32
|
attribute_map = {
|
34
33
|
'auto_trigger': 'auto_trigger',
|
35
34
|
'bootable': 'bootable',
|
36
|
-
'incremental': 'incremental',
|
37
35
|
'snapshot_id': 'snapshot_id',
|
38
36
|
'support_lld': 'support_lld',
|
39
37
|
'supported_restore_mode': 'supported_restore_mode',
|
@@ -44,7 +42,7 @@ class BackupExtendInfo:
|
|
44
42
|
'is_multi_az': 'is_multi_az'
|
45
43
|
}
|
46
44
|
|
47
|
-
def __init__(self, auto_trigger=None, bootable=None,
|
45
|
+
def __init__(self, auto_trigger=None, bootable=None, snapshot_id=None, support_lld=None, supported_restore_mode=None, os_images_data=None, contain_system_disk=None, encrypted=None, system_disk=None, is_multi_az=None):
|
48
46
|
"""BackupExtendInfo
|
49
47
|
|
50
48
|
The model defined in huaweicloud sdk
|
@@ -53,8 +51,6 @@ class BackupExtendInfo:
|
|
53
51
|
:type auto_trigger: bool
|
54
52
|
:param bootable: 是否系统盘备份
|
55
53
|
:type bootable: bool
|
56
|
-
:param incremental: 是否是增备
|
57
|
-
:type incremental: bool
|
58
54
|
:param snapshot_id: 卷备份副本的快照id
|
59
55
|
:type snapshot_id: str
|
60
56
|
:param support_lld: 是否支持lazyloading快速恢复
|
@@ -77,7 +73,6 @@ class BackupExtendInfo:
|
|
77
73
|
|
78
74
|
self._auto_trigger = None
|
79
75
|
self._bootable = None
|
80
|
-
self._incremental = None
|
81
76
|
self._snapshot_id = None
|
82
77
|
self._support_lld = None
|
83
78
|
self._supported_restore_mode = None
|
@@ -92,8 +87,6 @@ class BackupExtendInfo:
|
|
92
87
|
self.auto_trigger = auto_trigger
|
93
88
|
if bootable is not None:
|
94
89
|
self.bootable = bootable
|
95
|
-
if incremental is not None:
|
96
|
-
self.incremental = incremental
|
97
90
|
if snapshot_id is not None:
|
98
91
|
self.snapshot_id = snapshot_id
|
99
92
|
if support_lld is not None:
|
@@ -155,28 +148,6 @@ class BackupExtendInfo:
|
|
155
148
|
"""
|
156
149
|
self._bootable = bootable
|
157
150
|
|
158
|
-
@property
|
159
|
-
def incremental(self):
|
160
|
-
"""Gets the incremental of this BackupExtendInfo.
|
161
|
-
|
162
|
-
是否是增备
|
163
|
-
|
164
|
-
:return: The incremental of this BackupExtendInfo.
|
165
|
-
:rtype: bool
|
166
|
-
"""
|
167
|
-
return self._incremental
|
168
|
-
|
169
|
-
@incremental.setter
|
170
|
-
def incremental(self, incremental):
|
171
|
-
"""Sets the incremental of this BackupExtendInfo.
|
172
|
-
|
173
|
-
是否是增备
|
174
|
-
|
175
|
-
:param incremental: The incremental of this BackupExtendInfo.
|
176
|
-
:type incremental: bool
|
177
|
-
"""
|
178
|
-
self._incremental = incremental
|
179
|
-
|
180
151
|
@property
|
181
152
|
def snapshot_id(self):
|
182
153
|
"""Gets the snapshot_id of this BackupExtendInfo.
|
@@ -39,7 +39,8 @@ class BackupResp:
|
|
39
39
|
'replication_records': 'list[ReplicationRecordGet]',
|
40
40
|
'enterprise_project_id': 'str',
|
41
41
|
'provider_id': 'str',
|
42
|
-
'children': 'list[BackupResp]'
|
42
|
+
'children': 'list[BackupResp]',
|
43
|
+
'incremental': 'bool'
|
43
44
|
}
|
44
45
|
|
45
46
|
attribute_map = {
|
@@ -65,10 +66,11 @@ class BackupResp:
|
|
65
66
|
'replication_records': 'replication_records',
|
66
67
|
'enterprise_project_id': 'enterprise_project_id',
|
67
68
|
'provider_id': 'provider_id',
|
68
|
-
'children': 'children'
|
69
|
+
'children': 'children',
|
70
|
+
'incremental': 'incremental'
|
69
71
|
}
|
70
72
|
|
71
|
-
def __init__(self, checkpoint_id=None, created_at=None, description=None, expired_at=None, extend_info=None, id=None, image_type=None, name=None, parent_id=None, project_id=None, protected_at=None, resource_az=None, resource_id=None, resource_name=None, resource_size=None, resource_type=None, status=None, updated_at=None, vault_id=None, replication_records=None, enterprise_project_id=None, provider_id=None, children=None):
|
73
|
+
def __init__(self, checkpoint_id=None, created_at=None, description=None, expired_at=None, extend_info=None, id=None, image_type=None, name=None, parent_id=None, project_id=None, protected_at=None, resource_az=None, resource_id=None, resource_name=None, resource_size=None, resource_type=None, status=None, updated_at=None, vault_id=None, replication_records=None, enterprise_project_id=None, provider_id=None, children=None, incremental=None):
|
72
74
|
"""BackupResp
|
73
75
|
|
74
76
|
The model defined in huaweicloud sdk
|
@@ -119,6 +121,8 @@ class BackupResp:
|
|
119
121
|
:type provider_id: str
|
120
122
|
:param children: 子副本列表
|
121
123
|
:type children: list[:class:`huaweicloudsdkcbr.v1.BackupResp`]
|
124
|
+
:param incremental: 是否是增备
|
125
|
+
:type incremental: bool
|
122
126
|
"""
|
123
127
|
|
124
128
|
|
@@ -146,6 +150,7 @@ class BackupResp:
|
|
146
150
|
self._enterprise_project_id = None
|
147
151
|
self._provider_id = None
|
148
152
|
self._children = None
|
153
|
+
self._incremental = None
|
149
154
|
self.discriminator = None
|
150
155
|
|
151
156
|
self.checkpoint_id = checkpoint_id
|
@@ -174,6 +179,8 @@ class BackupResp:
|
|
174
179
|
self.provider_id = provider_id
|
175
180
|
if children is not None:
|
176
181
|
self.children = children
|
182
|
+
if incremental is not None:
|
183
|
+
self.incremental = incremental
|
177
184
|
|
178
185
|
@property
|
179
186
|
def checkpoint_id(self):
|
@@ -677,6 +684,28 @@ class BackupResp:
|
|
677
684
|
"""
|
678
685
|
self._children = children
|
679
686
|
|
687
|
+
@property
|
688
|
+
def incremental(self):
|
689
|
+
"""Gets the incremental of this BackupResp.
|
690
|
+
|
691
|
+
是否是增备
|
692
|
+
|
693
|
+
:return: The incremental of this BackupResp.
|
694
|
+
:rtype: bool
|
695
|
+
"""
|
696
|
+
return self._incremental
|
697
|
+
|
698
|
+
@incremental.setter
|
699
|
+
def incremental(self, incremental):
|
700
|
+
"""Sets the incremental of this BackupResp.
|
701
|
+
|
702
|
+
是否是增备
|
703
|
+
|
704
|
+
:param incremental: The incremental of this BackupResp.
|
705
|
+
:type incremental: bool
|
706
|
+
"""
|
707
|
+
self._incremental = incremental
|
708
|
+
|
680
709
|
def to_dict(self):
|
681
710
|
"""Returns the model properties as a dict"""
|
682
711
|
result = {}
|