huaweicloudsdkcbr 3.1.85__py2.py3-none-any.whl → 3.1.132__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 +23 -0
- huaweicloudsdkcbr/v1/cbr_async_client.py +464 -2
- huaweicloudsdkcbr/v1/cbr_client.py +464 -2
- huaweicloudsdkcbr/v1/model/__init__.py +23 -0
- huaweicloudsdkcbr/v1/model/add_members_req.py +34 -4
- huaweicloudsdkcbr/v1/model/agent_add_path_req.py +32 -3
- huaweicloudsdkcbr/v1/model/backup_extend_info.py +1 -30
- huaweicloudsdkcbr/v1/model/backup_resp.py +73 -15
- huaweicloudsdkcbr/v1/model/backup_restore_server_mapping.py +3 -3
- huaweicloudsdkcbr/v1/model/cbc_order_change.py +225 -0
- huaweicloudsdkcbr/v1/model/cbc_product_info_order_change.py +199 -0
- huaweicloudsdkcbr/v1/model/cbc_product_info_update.py +3 -3
- huaweicloudsdkcbr/v1/model/change_order_request.py +111 -0
- huaweicloudsdkcbr/v1/model/change_order_response.py +174 -0
- 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/exclude_path.py +144 -0
- huaweicloudsdkcbr/v1/model/list_external_vault_response.py +3 -32
- huaweicloudsdkcbr/v1/model/list_organization_policies_request.py +172 -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_request.py +3 -3
- 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/path.py +32 -3
- 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.py +32 -3
- huaweicloudsdkcbr/v1/model/vault_create.py +61 -3
- huaweicloudsdkcbr/v1/model/vault_create_resource.py +32 -3
- huaweicloudsdkcbr/v1/model/vault_get.py +30 -1
- huaweicloudsdkcbr/v1/model/vault_order.py +32 -3
- huaweicloudsdkcbr/v1/model/vault_update.py +32 -3
- huaweicloudsdkcbr/v1/region/cbr_region.py +3 -0
- {huaweicloudsdkcbr-3.1.85.dist-info → huaweicloudsdkcbr-3.1.132.dist-info}/METADATA +2 -2
- {huaweicloudsdkcbr-3.1.85.dist-info → huaweicloudsdkcbr-3.1.132.dist-info}/RECORD +50 -27
- {huaweicloudsdkcbr-3.1.85.dist-info → huaweicloudsdkcbr-3.1.132.dist-info}/WHEEL +1 -1
- {huaweicloudsdkcbr-3.1.85.dist-info → huaweicloudsdkcbr-3.1.132.dist-info}/LICENSE +0 -0
- {huaweicloudsdkcbr-3.1.85.dist-info → huaweicloudsdkcbr-3.1.132.dist-info}/top_level.txt +0 -0
@@ -439,6 +439,72 @@ class CbrClient(Client):
|
|
439
439
|
|
440
440
|
return http_info
|
441
441
|
|
442
|
+
def change_order(self, request):
|
443
|
+
"""变更
|
444
|
+
|
445
|
+
订单更新,调用该接口更新包周期产品订单信息,返回待支付订单信息。
|
446
|
+
> 该接口目前属于公测阶段,部分region暂时无法使用
|
447
|
+
|
448
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
449
|
+
|
450
|
+
:param request: Request instance for ChangeOrder
|
451
|
+
:type request: :class:`huaweicloudsdkcbr.v1.ChangeOrderRequest`
|
452
|
+
:rtype: :class:`huaweicloudsdkcbr.v1.ChangeOrderResponse`
|
453
|
+
"""
|
454
|
+
http_info = self._change_order_http_info(request)
|
455
|
+
return self._call_api(**http_info)
|
456
|
+
|
457
|
+
def change_order_invoker(self, request):
|
458
|
+
http_info = self._change_order_http_info(request)
|
459
|
+
return SyncInvoker(self, http_info)
|
460
|
+
|
461
|
+
@classmethod
|
462
|
+
def _change_order_http_info(cls, request):
|
463
|
+
http_info = {
|
464
|
+
"method": "POST",
|
465
|
+
"resource_path": "/v3/{project_id}/orders/change",
|
466
|
+
"request_type": request.__class__.__name__,
|
467
|
+
"response_type": "ChangeOrderResponse"
|
468
|
+
}
|
469
|
+
|
470
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
471
|
+
|
472
|
+
cname = None
|
473
|
+
|
474
|
+
collection_formats = {}
|
475
|
+
|
476
|
+
path_params = {}
|
477
|
+
|
478
|
+
query_params = []
|
479
|
+
|
480
|
+
header_params = {}
|
481
|
+
|
482
|
+
form_params = {}
|
483
|
+
|
484
|
+
body = None
|
485
|
+
if 'body' in local_var_params:
|
486
|
+
body = local_var_params['body']
|
487
|
+
if isinstance(request, SdkStreamRequest):
|
488
|
+
body = request.get_file_stream()
|
489
|
+
|
490
|
+
response_headers = []
|
491
|
+
|
492
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
493
|
+
['application/json;charset=UTF-8'])
|
494
|
+
|
495
|
+
auth_settings = []
|
496
|
+
|
497
|
+
http_info["cname"] = cname
|
498
|
+
http_info["collection_formats"] = collection_formats
|
499
|
+
http_info["path_params"] = path_params
|
500
|
+
http_info["query_params"] = query_params
|
501
|
+
http_info["header_params"] = header_params
|
502
|
+
http_info["post_params"] = form_params
|
503
|
+
http_info["body"] = body
|
504
|
+
http_info["response_headers"] = response_headers
|
505
|
+
|
506
|
+
return http_info
|
507
|
+
|
442
508
|
def check_agent(self, request):
|
443
509
|
"""查询agent状态
|
444
510
|
|
@@ -701,6 +767,71 @@ class CbrClient(Client):
|
|
701
767
|
|
702
768
|
return http_info
|
703
769
|
|
770
|
+
def create_organization_policy(self, request):
|
771
|
+
"""创建组织策略
|
772
|
+
|
773
|
+
创建组织策略
|
774
|
+
|
775
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
776
|
+
|
777
|
+
:param request: Request instance for CreateOrganizationPolicy
|
778
|
+
:type request: :class:`huaweicloudsdkcbr.v1.CreateOrganizationPolicyRequest`
|
779
|
+
:rtype: :class:`huaweicloudsdkcbr.v1.CreateOrganizationPolicyResponse`
|
780
|
+
"""
|
781
|
+
http_info = self._create_organization_policy_http_info(request)
|
782
|
+
return self._call_api(**http_info)
|
783
|
+
|
784
|
+
def create_organization_policy_invoker(self, request):
|
785
|
+
http_info = self._create_organization_policy_http_info(request)
|
786
|
+
return SyncInvoker(self, http_info)
|
787
|
+
|
788
|
+
@classmethod
|
789
|
+
def _create_organization_policy_http_info(cls, request):
|
790
|
+
http_info = {
|
791
|
+
"method": "POST",
|
792
|
+
"resource_path": "/v3/{project_id}/organization-policies",
|
793
|
+
"request_type": request.__class__.__name__,
|
794
|
+
"response_type": "CreateOrganizationPolicyResponse"
|
795
|
+
}
|
796
|
+
|
797
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
798
|
+
|
799
|
+
cname = None
|
800
|
+
|
801
|
+
collection_formats = {}
|
802
|
+
|
803
|
+
path_params = {}
|
804
|
+
|
805
|
+
query_params = []
|
806
|
+
|
807
|
+
header_params = {}
|
808
|
+
|
809
|
+
form_params = {}
|
810
|
+
|
811
|
+
body = None
|
812
|
+
if 'body' in local_var_params:
|
813
|
+
body = local_var_params['body']
|
814
|
+
if isinstance(request, SdkStreamRequest):
|
815
|
+
body = request.get_file_stream()
|
816
|
+
|
817
|
+
response_headers = []
|
818
|
+
|
819
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
820
|
+
['application/json;charset=UTF-8'])
|
821
|
+
|
822
|
+
auth_settings = []
|
823
|
+
|
824
|
+
http_info["cname"] = cname
|
825
|
+
http_info["collection_formats"] = collection_formats
|
826
|
+
http_info["path_params"] = path_params
|
827
|
+
http_info["query_params"] = query_params
|
828
|
+
http_info["header_params"] = header_params
|
829
|
+
http_info["post_params"] = form_params
|
830
|
+
http_info["body"] = body
|
831
|
+
http_info["response_headers"] = response_headers
|
832
|
+
|
833
|
+
return http_info
|
834
|
+
|
704
835
|
def create_policy(self, request):
|
705
836
|
"""创建策略
|
706
837
|
|
@@ -1096,6 +1227,71 @@ class CbrClient(Client):
|
|
1096
1227
|
|
1097
1228
|
return http_info
|
1098
1229
|
|
1230
|
+
def delete_organization_policy(self, request):
|
1231
|
+
"""删除组织策略
|
1232
|
+
|
1233
|
+
删除组织策略
|
1234
|
+
|
1235
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
1236
|
+
|
1237
|
+
:param request: Request instance for DeleteOrganizationPolicy
|
1238
|
+
:type request: :class:`huaweicloudsdkcbr.v1.DeleteOrganizationPolicyRequest`
|
1239
|
+
:rtype: :class:`huaweicloudsdkcbr.v1.DeleteOrganizationPolicyResponse`
|
1240
|
+
"""
|
1241
|
+
http_info = self._delete_organization_policy_http_info(request)
|
1242
|
+
return self._call_api(**http_info)
|
1243
|
+
|
1244
|
+
def delete_organization_policy_invoker(self, request):
|
1245
|
+
http_info = self._delete_organization_policy_http_info(request)
|
1246
|
+
return SyncInvoker(self, http_info)
|
1247
|
+
|
1248
|
+
@classmethod
|
1249
|
+
def _delete_organization_policy_http_info(cls, request):
|
1250
|
+
http_info = {
|
1251
|
+
"method": "DELETE",
|
1252
|
+
"resource_path": "/v3/{project_id}/organization-policies/{organization_policy_id}",
|
1253
|
+
"request_type": request.__class__.__name__,
|
1254
|
+
"response_type": "DeleteOrganizationPolicyResponse"
|
1255
|
+
}
|
1256
|
+
|
1257
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1258
|
+
|
1259
|
+
cname = None
|
1260
|
+
|
1261
|
+
collection_formats = {}
|
1262
|
+
|
1263
|
+
path_params = {}
|
1264
|
+
if 'organization_policy_id' in local_var_params:
|
1265
|
+
path_params['organization_policy_id'] = local_var_params['organization_policy_id']
|
1266
|
+
|
1267
|
+
query_params = []
|
1268
|
+
|
1269
|
+
header_params = {}
|
1270
|
+
|
1271
|
+
form_params = {}
|
1272
|
+
|
1273
|
+
body = None
|
1274
|
+
if isinstance(request, SdkStreamRequest):
|
1275
|
+
body = request.get_file_stream()
|
1276
|
+
|
1277
|
+
response_headers = []
|
1278
|
+
|
1279
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
1280
|
+
['application/json'])
|
1281
|
+
|
1282
|
+
auth_settings = []
|
1283
|
+
|
1284
|
+
http_info["cname"] = cname
|
1285
|
+
http_info["collection_formats"] = collection_formats
|
1286
|
+
http_info["path_params"] = path_params
|
1287
|
+
http_info["query_params"] = query_params
|
1288
|
+
http_info["header_params"] = header_params
|
1289
|
+
http_info["post_params"] = form_params
|
1290
|
+
http_info["body"] = body
|
1291
|
+
http_info["response_headers"] = response_headers
|
1292
|
+
|
1293
|
+
return http_info
|
1294
|
+
|
1099
1295
|
def delete_policy(self, request):
|
1100
1296
|
"""删除策略
|
1101
1297
|
|
@@ -1902,6 +2098,140 @@ class CbrClient(Client):
|
|
1902
2098
|
|
1903
2099
|
return http_info
|
1904
2100
|
|
2101
|
+
def list_organization_policies(self, request):
|
2102
|
+
"""查询组织策略列表
|
2103
|
+
|
2104
|
+
查询组织策略列表
|
2105
|
+
|
2106
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
2107
|
+
|
2108
|
+
:param request: Request instance for ListOrganizationPolicies
|
2109
|
+
:type request: :class:`huaweicloudsdkcbr.v1.ListOrganizationPoliciesRequest`
|
2110
|
+
:rtype: :class:`huaweicloudsdkcbr.v1.ListOrganizationPoliciesResponse`
|
2111
|
+
"""
|
2112
|
+
http_info = self._list_organization_policies_http_info(request)
|
2113
|
+
return self._call_api(**http_info)
|
2114
|
+
|
2115
|
+
def list_organization_policies_invoker(self, request):
|
2116
|
+
http_info = self._list_organization_policies_http_info(request)
|
2117
|
+
return SyncInvoker(self, http_info)
|
2118
|
+
|
2119
|
+
@classmethod
|
2120
|
+
def _list_organization_policies_http_info(cls, request):
|
2121
|
+
http_info = {
|
2122
|
+
"method": "GET",
|
2123
|
+
"resource_path": "/v3/{project_id}/organization-policies",
|
2124
|
+
"request_type": request.__class__.__name__,
|
2125
|
+
"response_type": "ListOrganizationPoliciesResponse"
|
2126
|
+
}
|
2127
|
+
|
2128
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
2129
|
+
|
2130
|
+
cname = None
|
2131
|
+
|
2132
|
+
collection_formats = {}
|
2133
|
+
|
2134
|
+
path_params = {}
|
2135
|
+
|
2136
|
+
query_params = []
|
2137
|
+
if 'operation_type' in local_var_params:
|
2138
|
+
query_params.append(('operation_type', local_var_params['operation_type']))
|
2139
|
+
if 'limit' in local_var_params:
|
2140
|
+
query_params.append(('limit', local_var_params['limit']))
|
2141
|
+
if 'offset' in local_var_params:
|
2142
|
+
query_params.append(('offset', local_var_params['offset']))
|
2143
|
+
|
2144
|
+
header_params = {}
|
2145
|
+
|
2146
|
+
form_params = {}
|
2147
|
+
|
2148
|
+
body = None
|
2149
|
+
if isinstance(request, SdkStreamRequest):
|
2150
|
+
body = request.get_file_stream()
|
2151
|
+
|
2152
|
+
response_headers = []
|
2153
|
+
|
2154
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
2155
|
+
['application/json'])
|
2156
|
+
|
2157
|
+
auth_settings = []
|
2158
|
+
|
2159
|
+
http_info["cname"] = cname
|
2160
|
+
http_info["collection_formats"] = collection_formats
|
2161
|
+
http_info["path_params"] = path_params
|
2162
|
+
http_info["query_params"] = query_params
|
2163
|
+
http_info["header_params"] = header_params
|
2164
|
+
http_info["post_params"] = form_params
|
2165
|
+
http_info["body"] = body
|
2166
|
+
http_info["response_headers"] = response_headers
|
2167
|
+
|
2168
|
+
return http_info
|
2169
|
+
|
2170
|
+
def list_organization_policy_detail(self, request):
|
2171
|
+
"""查询组织策略部署状态列表
|
2172
|
+
|
2173
|
+
查询组织策略每个账号下策略部署状态列表
|
2174
|
+
|
2175
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
2176
|
+
|
2177
|
+
:param request: Request instance for ListOrganizationPolicyDetail
|
2178
|
+
:type request: :class:`huaweicloudsdkcbr.v1.ListOrganizationPolicyDetailRequest`
|
2179
|
+
:rtype: :class:`huaweicloudsdkcbr.v1.ListOrganizationPolicyDetailResponse`
|
2180
|
+
"""
|
2181
|
+
http_info = self._list_organization_policy_detail_http_info(request)
|
2182
|
+
return self._call_api(**http_info)
|
2183
|
+
|
2184
|
+
def list_organization_policy_detail_invoker(self, request):
|
2185
|
+
http_info = self._list_organization_policy_detail_http_info(request)
|
2186
|
+
return SyncInvoker(self, http_info)
|
2187
|
+
|
2188
|
+
@classmethod
|
2189
|
+
def _list_organization_policy_detail_http_info(cls, request):
|
2190
|
+
http_info = {
|
2191
|
+
"method": "GET",
|
2192
|
+
"resource_path": "/v3/{project_id}/organization-policies/{organization_policy_id}/policy-detail",
|
2193
|
+
"request_type": request.__class__.__name__,
|
2194
|
+
"response_type": "ListOrganizationPolicyDetailResponse"
|
2195
|
+
}
|
2196
|
+
|
2197
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
2198
|
+
|
2199
|
+
cname = None
|
2200
|
+
|
2201
|
+
collection_formats = {}
|
2202
|
+
|
2203
|
+
path_params = {}
|
2204
|
+
if 'organization_policy_id' in local_var_params:
|
2205
|
+
path_params['organization_policy_id'] = local_var_params['organization_policy_id']
|
2206
|
+
|
2207
|
+
query_params = []
|
2208
|
+
|
2209
|
+
header_params = {}
|
2210
|
+
|
2211
|
+
form_params = {}
|
2212
|
+
|
2213
|
+
body = None
|
2214
|
+
if isinstance(request, SdkStreamRequest):
|
2215
|
+
body = request.get_file_stream()
|
2216
|
+
|
2217
|
+
response_headers = []
|
2218
|
+
|
2219
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
2220
|
+
['application/json'])
|
2221
|
+
|
2222
|
+
auth_settings = []
|
2223
|
+
|
2224
|
+
http_info["cname"] = cname
|
2225
|
+
http_info["collection_formats"] = collection_formats
|
2226
|
+
http_info["path_params"] = path_params
|
2227
|
+
http_info["query_params"] = query_params
|
2228
|
+
http_info["header_params"] = header_params
|
2229
|
+
http_info["post_params"] = form_params
|
2230
|
+
http_info["body"] = body
|
2231
|
+
http_info["response_headers"] = response_headers
|
2232
|
+
|
2233
|
+
return http_info
|
2234
|
+
|
1905
2235
|
def list_policies(self, request):
|
1906
2236
|
"""查询策略列表
|
1907
2237
|
|
@@ -3265,6 +3595,71 @@ class CbrClient(Client):
|
|
3265
3595
|
|
3266
3596
|
return http_info
|
3267
3597
|
|
3598
|
+
def show_organization_policy(self, request):
|
3599
|
+
"""查询指定组织策略
|
3600
|
+
|
3601
|
+
查询指定组织策略
|
3602
|
+
|
3603
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
3604
|
+
|
3605
|
+
:param request: Request instance for ShowOrganizationPolicy
|
3606
|
+
:type request: :class:`huaweicloudsdkcbr.v1.ShowOrganizationPolicyRequest`
|
3607
|
+
:rtype: :class:`huaweicloudsdkcbr.v1.ShowOrganizationPolicyResponse`
|
3608
|
+
"""
|
3609
|
+
http_info = self._show_organization_policy_http_info(request)
|
3610
|
+
return self._call_api(**http_info)
|
3611
|
+
|
3612
|
+
def show_organization_policy_invoker(self, request):
|
3613
|
+
http_info = self._show_organization_policy_http_info(request)
|
3614
|
+
return SyncInvoker(self, http_info)
|
3615
|
+
|
3616
|
+
@classmethod
|
3617
|
+
def _show_organization_policy_http_info(cls, request):
|
3618
|
+
http_info = {
|
3619
|
+
"method": "GET",
|
3620
|
+
"resource_path": "/v3/{project_id}/organization-policies/{organization_policy_id}",
|
3621
|
+
"request_type": request.__class__.__name__,
|
3622
|
+
"response_type": "ShowOrganizationPolicyResponse"
|
3623
|
+
}
|
3624
|
+
|
3625
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
3626
|
+
|
3627
|
+
cname = None
|
3628
|
+
|
3629
|
+
collection_formats = {}
|
3630
|
+
|
3631
|
+
path_params = {}
|
3632
|
+
if 'organization_policy_id' in local_var_params:
|
3633
|
+
path_params['organization_policy_id'] = local_var_params['organization_policy_id']
|
3634
|
+
|
3635
|
+
query_params = []
|
3636
|
+
|
3637
|
+
header_params = {}
|
3638
|
+
|
3639
|
+
form_params = {}
|
3640
|
+
|
3641
|
+
body = None
|
3642
|
+
if isinstance(request, SdkStreamRequest):
|
3643
|
+
body = request.get_file_stream()
|
3644
|
+
|
3645
|
+
response_headers = []
|
3646
|
+
|
3647
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
3648
|
+
['application/json'])
|
3649
|
+
|
3650
|
+
auth_settings = []
|
3651
|
+
|
3652
|
+
http_info["cname"] = cname
|
3653
|
+
http_info["collection_formats"] = collection_formats
|
3654
|
+
http_info["path_params"] = path_params
|
3655
|
+
http_info["query_params"] = query_params
|
3656
|
+
http_info["header_params"] = header_params
|
3657
|
+
http_info["post_params"] = form_params
|
3658
|
+
http_info["body"] = body
|
3659
|
+
http_info["response_headers"] = response_headers
|
3660
|
+
|
3661
|
+
return http_info
|
3662
|
+
|
3268
3663
|
def show_policy(self, request):
|
3269
3664
|
"""查询单个策略
|
3270
3665
|
|
@@ -4124,9 +4519,9 @@ class CbrClient(Client):
|
|
4124
4519
|
return http_info
|
4125
4520
|
|
4126
4521
|
def update_order(self, request):
|
4127
|
-
"""
|
4522
|
+
"""变更(废弃)
|
4128
4523
|
|
4129
|
-
订单更新,支付cbc
|
4524
|
+
订单更新,支付cbc订单后,调用该接口更新包周期产品订单信息。该接口已废弃。
|
4130
4525
|
|
4131
4526
|
Please refer to HUAWEI cloud API Explorer for details.
|
4132
4527
|
|
@@ -4190,6 +4585,73 @@ class CbrClient(Client):
|
|
4190
4585
|
|
4191
4586
|
return http_info
|
4192
4587
|
|
4588
|
+
def update_organization_policy(self, request):
|
4589
|
+
"""更新组织策略
|
4590
|
+
|
4591
|
+
更新组织策略
|
4592
|
+
|
4593
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
4594
|
+
|
4595
|
+
:param request: Request instance for UpdateOrganizationPolicy
|
4596
|
+
:type request: :class:`huaweicloudsdkcbr.v1.UpdateOrganizationPolicyRequest`
|
4597
|
+
:rtype: :class:`huaweicloudsdkcbr.v1.UpdateOrganizationPolicyResponse`
|
4598
|
+
"""
|
4599
|
+
http_info = self._update_organization_policy_http_info(request)
|
4600
|
+
return self._call_api(**http_info)
|
4601
|
+
|
4602
|
+
def update_organization_policy_invoker(self, request):
|
4603
|
+
http_info = self._update_organization_policy_http_info(request)
|
4604
|
+
return SyncInvoker(self, http_info)
|
4605
|
+
|
4606
|
+
@classmethod
|
4607
|
+
def _update_organization_policy_http_info(cls, request):
|
4608
|
+
http_info = {
|
4609
|
+
"method": "PUT",
|
4610
|
+
"resource_path": "/v3/{project_id}/organization-policies/{organization_policy_id}",
|
4611
|
+
"request_type": request.__class__.__name__,
|
4612
|
+
"response_type": "UpdateOrganizationPolicyResponse"
|
4613
|
+
}
|
4614
|
+
|
4615
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
4616
|
+
|
4617
|
+
cname = None
|
4618
|
+
|
4619
|
+
collection_formats = {}
|
4620
|
+
|
4621
|
+
path_params = {}
|
4622
|
+
if 'organization_policy_id' in local_var_params:
|
4623
|
+
path_params['organization_policy_id'] = local_var_params['organization_policy_id']
|
4624
|
+
|
4625
|
+
query_params = []
|
4626
|
+
|
4627
|
+
header_params = {}
|
4628
|
+
|
4629
|
+
form_params = {}
|
4630
|
+
|
4631
|
+
body = None
|
4632
|
+
if 'body' in local_var_params:
|
4633
|
+
body = local_var_params['body']
|
4634
|
+
if isinstance(request, SdkStreamRequest):
|
4635
|
+
body = request.get_file_stream()
|
4636
|
+
|
4637
|
+
response_headers = []
|
4638
|
+
|
4639
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
4640
|
+
['application/json;charset=UTF-8'])
|
4641
|
+
|
4642
|
+
auth_settings = []
|
4643
|
+
|
4644
|
+
http_info["cname"] = cname
|
4645
|
+
http_info["collection_formats"] = collection_formats
|
4646
|
+
http_info["path_params"] = path_params
|
4647
|
+
http_info["query_params"] = query_params
|
4648
|
+
http_info["header_params"] = header_params
|
4649
|
+
http_info["post_params"] = form_params
|
4650
|
+
http_info["body"] = body
|
4651
|
+
http_info["response_headers"] = response_headers
|
4652
|
+
|
4653
|
+
return http_info
|
4654
|
+
|
4193
4655
|
def update_policy(self, request):
|
4194
4656
|
"""修改策略
|
4195
4657
|
|
@@ -42,9 +42,13 @@ from huaweicloudsdkcbr.v1.model.billing_create import BillingCreate
|
|
42
42
|
from huaweicloudsdkcbr.v1.model.billing_update import BillingUpdate
|
43
43
|
from huaweicloudsdkcbr.v1.model.bind_rules_tags import BindRulesTags
|
44
44
|
from huaweicloudsdkcbr.v1.model.bulk_create_and_delete_vault_tags_req import BulkCreateAndDeleteVaultTagsReq
|
45
|
+
from huaweicloudsdkcbr.v1.model.cbc_order_change import CbcOrderChange
|
45
46
|
from huaweicloudsdkcbr.v1.model.cbc_order_result import CbcOrderResult
|
47
|
+
from huaweicloudsdkcbr.v1.model.cbc_product_info_order_change import CbcProductInfoOrderChange
|
46
48
|
from huaweicloudsdkcbr.v1.model.cbc_product_info_update import CbcProductInfoUpdate
|
47
49
|
from huaweicloudsdkcbr.v1.model.cbc_update import CbcUpdate
|
50
|
+
from huaweicloudsdkcbr.v1.model.change_order_request import ChangeOrderRequest
|
51
|
+
from huaweicloudsdkcbr.v1.model.change_order_response import ChangeOrderResponse
|
48
52
|
from huaweicloudsdkcbr.v1.model.check_agent_request import CheckAgentRequest
|
49
53
|
from huaweicloudsdkcbr.v1.model.check_agent_response import CheckAgentResponse
|
50
54
|
from huaweicloudsdkcbr.v1.model.checkpoint_create import CheckpointCreate
|
@@ -64,6 +68,8 @@ from huaweicloudsdkcbr.v1.model.copy_checkpoint_request import CopyCheckpointReq
|
|
64
68
|
from huaweicloudsdkcbr.v1.model.copy_checkpoint_response import CopyCheckpointResponse
|
65
69
|
from huaweicloudsdkcbr.v1.model.create_checkpoint_request import CreateCheckpointRequest
|
66
70
|
from huaweicloudsdkcbr.v1.model.create_checkpoint_response import CreateCheckpointResponse
|
71
|
+
from huaweicloudsdkcbr.v1.model.create_organization_policy_request import CreateOrganizationPolicyRequest
|
72
|
+
from huaweicloudsdkcbr.v1.model.create_organization_policy_response import CreateOrganizationPolicyResponse
|
67
73
|
from huaweicloudsdkcbr.v1.model.create_policy_request import CreatePolicyRequest
|
68
74
|
from huaweicloudsdkcbr.v1.model.create_policy_response import CreatePolicyResponse
|
69
75
|
from huaweicloudsdkcbr.v1.model.create_post_paid_vault_request import CreatePostPaidVaultRequest
|
@@ -76,6 +82,8 @@ from huaweicloudsdkcbr.v1.model.delete_backup_request import DeleteBackupRequest
|
|
76
82
|
from huaweicloudsdkcbr.v1.model.delete_backup_response import DeleteBackupResponse
|
77
83
|
from huaweicloudsdkcbr.v1.model.delete_member_request import DeleteMemberRequest
|
78
84
|
from huaweicloudsdkcbr.v1.model.delete_member_response import DeleteMemberResponse
|
85
|
+
from huaweicloudsdkcbr.v1.model.delete_organization_policy_request import DeleteOrganizationPolicyRequest
|
86
|
+
from huaweicloudsdkcbr.v1.model.delete_organization_policy_response import DeleteOrganizationPolicyResponse
|
79
87
|
from huaweicloudsdkcbr.v1.model.delete_policy_request import DeletePolicyRequest
|
80
88
|
from huaweicloudsdkcbr.v1.model.delete_policy_response import DeletePolicyResponse
|
81
89
|
from huaweicloudsdkcbr.v1.model.delete_vault_request import DeleteVaultRequest
|
@@ -87,6 +95,7 @@ from huaweicloudsdkcbr.v1.model.disassociate_vault_policy_response import Disass
|
|
87
95
|
from huaweicloudsdkcbr.v1.model.domain_migrate import DomainMigrate
|
88
96
|
from huaweicloudsdkcbr.v1.model.domain_migrate_project_status import DomainMigrateProjectStatus
|
89
97
|
from huaweicloudsdkcbr.v1.model.domain_projects_info import DomainProjectsInfo
|
98
|
+
from huaweicloudsdkcbr.v1.model.exclude_path import ExcludePath
|
90
99
|
from huaweicloudsdkcbr.v1.model.image_data import ImageData
|
91
100
|
from huaweicloudsdkcbr.v1.model.import_backup_request import ImportBackupRequest
|
92
101
|
from huaweicloudsdkcbr.v1.model.import_backup_response import ImportBackupResponse
|
@@ -103,6 +112,10 @@ from huaweicloudsdkcbr.v1.model.list_external_vault_request import ListExternalV
|
|
103
112
|
from huaweicloudsdkcbr.v1.model.list_external_vault_response import ListExternalVaultResponse
|
104
113
|
from huaweicloudsdkcbr.v1.model.list_op_logs_request import ListOpLogsRequest
|
105
114
|
from huaweicloudsdkcbr.v1.model.list_op_logs_response import ListOpLogsResponse
|
115
|
+
from huaweicloudsdkcbr.v1.model.list_organization_policies_request import ListOrganizationPoliciesRequest
|
116
|
+
from huaweicloudsdkcbr.v1.model.list_organization_policies_response import ListOrganizationPoliciesResponse
|
117
|
+
from huaweicloudsdkcbr.v1.model.list_organization_policy_detail_request import ListOrganizationPolicyDetailRequest
|
118
|
+
from huaweicloudsdkcbr.v1.model.list_organization_policy_detail_response import ListOrganizationPolicyDetailResponse
|
106
119
|
from huaweicloudsdkcbr.v1.model.list_policies_request import ListPoliciesRequest
|
107
120
|
from huaweicloudsdkcbr.v1.model.list_policies_response import ListPoliciesResponse
|
108
121
|
from huaweicloudsdkcbr.v1.model.list_projects_request import ListProjectsRequest
|
@@ -128,6 +141,12 @@ from huaweicloudsdkcbr.v1.model.op_extend_info_sync import OpExtendInfoSync
|
|
128
141
|
from huaweicloudsdkcbr.v1.model.op_extend_info_vault_delete import OpExtendInfoVaultDelete
|
129
142
|
from huaweicloudsdkcbr.v1.model.op_extra_info import OpExtraInfo
|
130
143
|
from huaweicloudsdkcbr.v1.model.operation_log import OperationLog
|
144
|
+
from huaweicloudsdkcbr.v1.model.organization_policy import OrganizationPolicy
|
145
|
+
from huaweicloudsdkcbr.v1.model.organization_policy_create import OrganizationPolicyCreate
|
146
|
+
from huaweicloudsdkcbr.v1.model.organization_policy_create_req import OrganizationPolicyCreateReq
|
147
|
+
from huaweicloudsdkcbr.v1.model.organization_policy_status import OrganizationPolicyStatus
|
148
|
+
from huaweicloudsdkcbr.v1.model.organization_policy_update import OrganizationPolicyUpdate
|
149
|
+
from huaweicloudsdkcbr.v1.model.organization_policy_update_req import OrganizationPolicyUpdateReq
|
131
150
|
from huaweicloudsdkcbr.v1.model.path import Path
|
132
151
|
from huaweicloudsdkcbr.v1.model.policy import Policy
|
133
152
|
from huaweicloudsdkcbr.v1.model.policy_associate_vault import PolicyAssociateVault
|
@@ -184,6 +203,8 @@ from huaweicloudsdkcbr.v1.model.show_migrate_status_request import ShowMigrateSt
|
|
184
203
|
from huaweicloudsdkcbr.v1.model.show_migrate_status_response import ShowMigrateStatusResponse
|
185
204
|
from huaweicloudsdkcbr.v1.model.show_op_log_request import ShowOpLogRequest
|
186
205
|
from huaweicloudsdkcbr.v1.model.show_op_log_response import ShowOpLogResponse
|
206
|
+
from huaweicloudsdkcbr.v1.model.show_organization_policy_request import ShowOrganizationPolicyRequest
|
207
|
+
from huaweicloudsdkcbr.v1.model.show_organization_policy_response import ShowOrganizationPolicyResponse
|
187
208
|
from huaweicloudsdkcbr.v1.model.show_policy_request import ShowPolicyRequest
|
188
209
|
from huaweicloudsdkcbr.v1.model.show_policy_response import ShowPolicyResponse
|
189
210
|
from huaweicloudsdkcbr.v1.model.show_protectable_request import ShowProtectableRequest
|
@@ -223,6 +244,8 @@ from huaweicloudsdkcbr.v1.model.update_member_status_request import UpdateMember
|
|
223
244
|
from huaweicloudsdkcbr.v1.model.update_member_status_response import UpdateMemberStatusResponse
|
224
245
|
from huaweicloudsdkcbr.v1.model.update_order_request import UpdateOrderRequest
|
225
246
|
from huaweicloudsdkcbr.v1.model.update_order_response import UpdateOrderResponse
|
247
|
+
from huaweicloudsdkcbr.v1.model.update_organization_policy_request import UpdateOrganizationPolicyRequest
|
248
|
+
from huaweicloudsdkcbr.v1.model.update_organization_policy_response import UpdateOrganizationPolicyResponse
|
226
249
|
from huaweicloudsdkcbr.v1.model.update_policy_request import UpdatePolicyRequest
|
227
250
|
from huaweicloudsdkcbr.v1.model.update_policy_response import UpdatePolicyResponse
|
228
251
|
from huaweicloudsdkcbr.v1.model.update_vault_request import UpdateVaultRequest
|
@@ -17,28 +17,36 @@ class AddMembersReq:
|
|
17
17
|
sensitive_list = []
|
18
18
|
|
19
19
|
openapi_types = {
|
20
|
-
'members': 'list[str]'
|
20
|
+
'members': 'list[str]',
|
21
|
+
'domains': 'list[str]'
|
21
22
|
}
|
22
23
|
|
23
24
|
attribute_map = {
|
24
|
-
'members': 'members'
|
25
|
+
'members': 'members',
|
26
|
+
'domains': 'domains'
|
25
27
|
}
|
26
28
|
|
27
|
-
def __init__(self, members=None):
|
29
|
+
def __init__(self, members=None, domains=None):
|
28
30
|
"""AddMembersReq
|
29
31
|
|
30
32
|
The model defined in huaweicloud sdk
|
31
33
|
|
32
34
|
:param members: 列表,待添加备份共享成员的project_id。
|
33
35
|
:type members: list[str]
|
36
|
+
:param domains: 列表,待添加备份共享成员的domain_id。 > 该特性目前属于公测阶段,部分region可能无法使用.
|
37
|
+
:type domains: list[str]
|
34
38
|
"""
|
35
39
|
|
36
40
|
|
37
41
|
|
38
42
|
self._members = None
|
43
|
+
self._domains = None
|
39
44
|
self.discriminator = None
|
40
45
|
|
41
|
-
|
46
|
+
if members is not None:
|
47
|
+
self.members = members
|
48
|
+
if domains is not None:
|
49
|
+
self.domains = domains
|
42
50
|
|
43
51
|
@property
|
44
52
|
def members(self):
|
@@ -62,6 +70,28 @@ class AddMembersReq:
|
|
62
70
|
"""
|
63
71
|
self._members = members
|
64
72
|
|
73
|
+
@property
|
74
|
+
def domains(self):
|
75
|
+
"""Gets the domains of this AddMembersReq.
|
76
|
+
|
77
|
+
列表,待添加备份共享成员的domain_id。 > 该特性目前属于公测阶段,部分region可能无法使用.
|
78
|
+
|
79
|
+
:return: The domains of this AddMembersReq.
|
80
|
+
:rtype: list[str]
|
81
|
+
"""
|
82
|
+
return self._domains
|
83
|
+
|
84
|
+
@domains.setter
|
85
|
+
def domains(self, domains):
|
86
|
+
"""Sets the domains of this AddMembersReq.
|
87
|
+
|
88
|
+
列表,待添加备份共享成员的domain_id。 > 该特性目前属于公测阶段,部分region可能无法使用.
|
89
|
+
|
90
|
+
:param domains: The domains of this AddMembersReq.
|
91
|
+
:type domains: list[str]
|
92
|
+
"""
|
93
|
+
self._domains = domains
|
94
|
+
|
65
95
|
def to_dict(self):
|
66
96
|
"""Returns the model properties as a dict"""
|
67
97
|
result = {}
|