huaweicloudsdkcbr 3.1.86__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.86.dist-info → huaweicloudsdkcbr-3.1.132.dist-info}/METADATA +2 -2
- {huaweicloudsdkcbr-3.1.86.dist-info → huaweicloudsdkcbr-3.1.132.dist-info}/RECORD +50 -27
- {huaweicloudsdkcbr-3.1.86.dist-info → huaweicloudsdkcbr-3.1.132.dist-info}/WHEEL +1 -1
- {huaweicloudsdkcbr-3.1.86.dist-info → huaweicloudsdkcbr-3.1.132.dist-info}/LICENSE +0 -0
- {huaweicloudsdkcbr-3.1.86.dist-info → huaweicloudsdkcbr-3.1.132.dist-info}/top_level.txt +0 -0
huaweicloudsdkcbr/v1/__init__.py
CHANGED
@@ -44,9 +44,13 @@ from huaweicloudsdkcbr.v1.model.billing_create import BillingCreate
|
|
44
44
|
from huaweicloudsdkcbr.v1.model.billing_update import BillingUpdate
|
45
45
|
from huaweicloudsdkcbr.v1.model.bind_rules_tags import BindRulesTags
|
46
46
|
from huaweicloudsdkcbr.v1.model.bulk_create_and_delete_vault_tags_req import BulkCreateAndDeleteVaultTagsReq
|
47
|
+
from huaweicloudsdkcbr.v1.model.cbc_order_change import CbcOrderChange
|
47
48
|
from huaweicloudsdkcbr.v1.model.cbc_order_result import CbcOrderResult
|
49
|
+
from huaweicloudsdkcbr.v1.model.cbc_product_info_order_change import CbcProductInfoOrderChange
|
48
50
|
from huaweicloudsdkcbr.v1.model.cbc_product_info_update import CbcProductInfoUpdate
|
49
51
|
from huaweicloudsdkcbr.v1.model.cbc_update import CbcUpdate
|
52
|
+
from huaweicloudsdkcbr.v1.model.change_order_request import ChangeOrderRequest
|
53
|
+
from huaweicloudsdkcbr.v1.model.change_order_response import ChangeOrderResponse
|
50
54
|
from huaweicloudsdkcbr.v1.model.check_agent_request import CheckAgentRequest
|
51
55
|
from huaweicloudsdkcbr.v1.model.check_agent_response import CheckAgentResponse
|
52
56
|
from huaweicloudsdkcbr.v1.model.checkpoint_create import CheckpointCreate
|
@@ -66,6 +70,8 @@ from huaweicloudsdkcbr.v1.model.copy_checkpoint_request import CopyCheckpointReq
|
|
66
70
|
from huaweicloudsdkcbr.v1.model.copy_checkpoint_response import CopyCheckpointResponse
|
67
71
|
from huaweicloudsdkcbr.v1.model.create_checkpoint_request import CreateCheckpointRequest
|
68
72
|
from huaweicloudsdkcbr.v1.model.create_checkpoint_response import CreateCheckpointResponse
|
73
|
+
from huaweicloudsdkcbr.v1.model.create_organization_policy_request import CreateOrganizationPolicyRequest
|
74
|
+
from huaweicloudsdkcbr.v1.model.create_organization_policy_response import CreateOrganizationPolicyResponse
|
69
75
|
from huaweicloudsdkcbr.v1.model.create_policy_request import CreatePolicyRequest
|
70
76
|
from huaweicloudsdkcbr.v1.model.create_policy_response import CreatePolicyResponse
|
71
77
|
from huaweicloudsdkcbr.v1.model.create_post_paid_vault_request import CreatePostPaidVaultRequest
|
@@ -78,6 +84,8 @@ from huaweicloudsdkcbr.v1.model.delete_backup_request import DeleteBackupRequest
|
|
78
84
|
from huaweicloudsdkcbr.v1.model.delete_backup_response import DeleteBackupResponse
|
79
85
|
from huaweicloudsdkcbr.v1.model.delete_member_request import DeleteMemberRequest
|
80
86
|
from huaweicloudsdkcbr.v1.model.delete_member_response import DeleteMemberResponse
|
87
|
+
from huaweicloudsdkcbr.v1.model.delete_organization_policy_request import DeleteOrganizationPolicyRequest
|
88
|
+
from huaweicloudsdkcbr.v1.model.delete_organization_policy_response import DeleteOrganizationPolicyResponse
|
81
89
|
from huaweicloudsdkcbr.v1.model.delete_policy_request import DeletePolicyRequest
|
82
90
|
from huaweicloudsdkcbr.v1.model.delete_policy_response import DeletePolicyResponse
|
83
91
|
from huaweicloudsdkcbr.v1.model.delete_vault_request import DeleteVaultRequest
|
@@ -89,6 +97,7 @@ from huaweicloudsdkcbr.v1.model.disassociate_vault_policy_response import Disass
|
|
89
97
|
from huaweicloudsdkcbr.v1.model.domain_migrate import DomainMigrate
|
90
98
|
from huaweicloudsdkcbr.v1.model.domain_migrate_project_status import DomainMigrateProjectStatus
|
91
99
|
from huaweicloudsdkcbr.v1.model.domain_projects_info import DomainProjectsInfo
|
100
|
+
from huaweicloudsdkcbr.v1.model.exclude_path import ExcludePath
|
92
101
|
from huaweicloudsdkcbr.v1.model.image_data import ImageData
|
93
102
|
from huaweicloudsdkcbr.v1.model.import_backup_request import ImportBackupRequest
|
94
103
|
from huaweicloudsdkcbr.v1.model.import_backup_response import ImportBackupResponse
|
@@ -105,6 +114,10 @@ from huaweicloudsdkcbr.v1.model.list_external_vault_request import ListExternalV
|
|
105
114
|
from huaweicloudsdkcbr.v1.model.list_external_vault_response import ListExternalVaultResponse
|
106
115
|
from huaweicloudsdkcbr.v1.model.list_op_logs_request import ListOpLogsRequest
|
107
116
|
from huaweicloudsdkcbr.v1.model.list_op_logs_response import ListOpLogsResponse
|
117
|
+
from huaweicloudsdkcbr.v1.model.list_organization_policies_request import ListOrganizationPoliciesRequest
|
118
|
+
from huaweicloudsdkcbr.v1.model.list_organization_policies_response import ListOrganizationPoliciesResponse
|
119
|
+
from huaweicloudsdkcbr.v1.model.list_organization_policy_detail_request import ListOrganizationPolicyDetailRequest
|
120
|
+
from huaweicloudsdkcbr.v1.model.list_organization_policy_detail_response import ListOrganizationPolicyDetailResponse
|
108
121
|
from huaweicloudsdkcbr.v1.model.list_policies_request import ListPoliciesRequest
|
109
122
|
from huaweicloudsdkcbr.v1.model.list_policies_response import ListPoliciesResponse
|
110
123
|
from huaweicloudsdkcbr.v1.model.list_projects_request import ListProjectsRequest
|
@@ -130,6 +143,12 @@ from huaweicloudsdkcbr.v1.model.op_extend_info_sync import OpExtendInfoSync
|
|
130
143
|
from huaweicloudsdkcbr.v1.model.op_extend_info_vault_delete import OpExtendInfoVaultDelete
|
131
144
|
from huaweicloudsdkcbr.v1.model.op_extra_info import OpExtraInfo
|
132
145
|
from huaweicloudsdkcbr.v1.model.operation_log import OperationLog
|
146
|
+
from huaweicloudsdkcbr.v1.model.organization_policy import OrganizationPolicy
|
147
|
+
from huaweicloudsdkcbr.v1.model.organization_policy_create import OrganizationPolicyCreate
|
148
|
+
from huaweicloudsdkcbr.v1.model.organization_policy_create_req import OrganizationPolicyCreateReq
|
149
|
+
from huaweicloudsdkcbr.v1.model.organization_policy_status import OrganizationPolicyStatus
|
150
|
+
from huaweicloudsdkcbr.v1.model.organization_policy_update import OrganizationPolicyUpdate
|
151
|
+
from huaweicloudsdkcbr.v1.model.organization_policy_update_req import OrganizationPolicyUpdateReq
|
133
152
|
from huaweicloudsdkcbr.v1.model.path import Path
|
134
153
|
from huaweicloudsdkcbr.v1.model.policy import Policy
|
135
154
|
from huaweicloudsdkcbr.v1.model.policy_associate_vault import PolicyAssociateVault
|
@@ -186,6 +205,8 @@ from huaweicloudsdkcbr.v1.model.show_migrate_status_request import ShowMigrateSt
|
|
186
205
|
from huaweicloudsdkcbr.v1.model.show_migrate_status_response import ShowMigrateStatusResponse
|
187
206
|
from huaweicloudsdkcbr.v1.model.show_op_log_request import ShowOpLogRequest
|
188
207
|
from huaweicloudsdkcbr.v1.model.show_op_log_response import ShowOpLogResponse
|
208
|
+
from huaweicloudsdkcbr.v1.model.show_organization_policy_request import ShowOrganizationPolicyRequest
|
209
|
+
from huaweicloudsdkcbr.v1.model.show_organization_policy_response import ShowOrganizationPolicyResponse
|
189
210
|
from huaweicloudsdkcbr.v1.model.show_policy_request import ShowPolicyRequest
|
190
211
|
from huaweicloudsdkcbr.v1.model.show_policy_response import ShowPolicyResponse
|
191
212
|
from huaweicloudsdkcbr.v1.model.show_protectable_request import ShowProtectableRequest
|
@@ -225,6 +246,8 @@ from huaweicloudsdkcbr.v1.model.update_member_status_request import UpdateMember
|
|
225
246
|
from huaweicloudsdkcbr.v1.model.update_member_status_response import UpdateMemberStatusResponse
|
226
247
|
from huaweicloudsdkcbr.v1.model.update_order_request import UpdateOrderRequest
|
227
248
|
from huaweicloudsdkcbr.v1.model.update_order_response import UpdateOrderResponse
|
249
|
+
from huaweicloudsdkcbr.v1.model.update_organization_policy_request import UpdateOrganizationPolicyRequest
|
250
|
+
from huaweicloudsdkcbr.v1.model.update_organization_policy_response import UpdateOrganizationPolicyResponse
|
228
251
|
from huaweicloudsdkcbr.v1.model.update_policy_request import UpdatePolicyRequest
|
229
252
|
from huaweicloudsdkcbr.v1.model.update_policy_response import UpdatePolicyResponse
|
230
253
|
from huaweicloudsdkcbr.v1.model.update_vault_request import UpdateVaultRequest
|
@@ -439,6 +439,72 @@ class CbrAsyncClient(Client):
|
|
439
439
|
|
440
440
|
return http_info
|
441
441
|
|
442
|
+
def change_order_async(self, request):
|
443
|
+
"""变更
|
444
|
+
|
445
|
+
订单更新,调用该接口更新包周期产品订单信息,返回待支付订单信息。
|
446
|
+
> 该接口目前属于公测阶段,部分region暂时无法使用
|
447
|
+
|
448
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
449
|
+
|
450
|
+
|
451
|
+
:param request: Request instance for ChangeOrder
|
452
|
+
:type request: :class:`huaweicloudsdkcbr.v1.ChangeOrderRequest`
|
453
|
+
:rtype: :class:`huaweicloudsdkcbr.v1.ChangeOrderResponse`
|
454
|
+
"""
|
455
|
+
http_info = self._change_order_http_info(request)
|
456
|
+
return self._call_api(**http_info)
|
457
|
+
|
458
|
+
def change_order_async_invoker(self, request):
|
459
|
+
http_info = self._change_order_http_info(request)
|
460
|
+
return AsyncInvoker(self, http_info)
|
461
|
+
|
462
|
+
def _change_order_http_info(self, 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_async(self, request):
|
443
509
|
"""查询agent状态
|
444
510
|
|
@@ -701,6 +767,71 @@ class CbrAsyncClient(Client):
|
|
701
767
|
|
702
768
|
return http_info
|
703
769
|
|
770
|
+
def create_organization_policy_async(self, request):
|
771
|
+
"""创建组织策略
|
772
|
+
|
773
|
+
创建组织策略
|
774
|
+
|
775
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
776
|
+
|
777
|
+
|
778
|
+
:param request: Request instance for CreateOrganizationPolicy
|
779
|
+
:type request: :class:`huaweicloudsdkcbr.v1.CreateOrganizationPolicyRequest`
|
780
|
+
:rtype: :class:`huaweicloudsdkcbr.v1.CreateOrganizationPolicyResponse`
|
781
|
+
"""
|
782
|
+
http_info = self._create_organization_policy_http_info(request)
|
783
|
+
return self._call_api(**http_info)
|
784
|
+
|
785
|
+
def create_organization_policy_async_invoker(self, request):
|
786
|
+
http_info = self._create_organization_policy_http_info(request)
|
787
|
+
return AsyncInvoker(self, http_info)
|
788
|
+
|
789
|
+
def _create_organization_policy_http_info(self, 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_async(self, request):
|
705
836
|
"""创建策略
|
706
837
|
|
@@ -1096,6 +1227,71 @@ class CbrAsyncClient(Client):
|
|
1096
1227
|
|
1097
1228
|
return http_info
|
1098
1229
|
|
1230
|
+
def delete_organization_policy_async(self, request):
|
1231
|
+
"""删除组织策略
|
1232
|
+
|
1233
|
+
删除组织策略
|
1234
|
+
|
1235
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
1236
|
+
|
1237
|
+
|
1238
|
+
:param request: Request instance for DeleteOrganizationPolicy
|
1239
|
+
:type request: :class:`huaweicloudsdkcbr.v1.DeleteOrganizationPolicyRequest`
|
1240
|
+
:rtype: :class:`huaweicloudsdkcbr.v1.DeleteOrganizationPolicyResponse`
|
1241
|
+
"""
|
1242
|
+
http_info = self._delete_organization_policy_http_info(request)
|
1243
|
+
return self._call_api(**http_info)
|
1244
|
+
|
1245
|
+
def delete_organization_policy_async_invoker(self, request):
|
1246
|
+
http_info = self._delete_organization_policy_http_info(request)
|
1247
|
+
return AsyncInvoker(self, http_info)
|
1248
|
+
|
1249
|
+
def _delete_organization_policy_http_info(self, 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_async(self, request):
|
1100
1296
|
"""删除策略
|
1101
1297
|
|
@@ -1902,6 +2098,140 @@ class CbrAsyncClient(Client):
|
|
1902
2098
|
|
1903
2099
|
return http_info
|
1904
2100
|
|
2101
|
+
def list_organization_policies_async(self, request):
|
2102
|
+
"""查询组织策略列表
|
2103
|
+
|
2104
|
+
查询组织策略列表
|
2105
|
+
|
2106
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
2107
|
+
|
2108
|
+
|
2109
|
+
:param request: Request instance for ListOrganizationPolicies
|
2110
|
+
:type request: :class:`huaweicloudsdkcbr.v1.ListOrganizationPoliciesRequest`
|
2111
|
+
:rtype: :class:`huaweicloudsdkcbr.v1.ListOrganizationPoliciesResponse`
|
2112
|
+
"""
|
2113
|
+
http_info = self._list_organization_policies_http_info(request)
|
2114
|
+
return self._call_api(**http_info)
|
2115
|
+
|
2116
|
+
def list_organization_policies_async_invoker(self, request):
|
2117
|
+
http_info = self._list_organization_policies_http_info(request)
|
2118
|
+
return AsyncInvoker(self, http_info)
|
2119
|
+
|
2120
|
+
def _list_organization_policies_http_info(self, 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_async(self, request):
|
2171
|
+
"""查询组织策略部署状态列表
|
2172
|
+
|
2173
|
+
查询组织策略每个账号下策略部署状态列表
|
2174
|
+
|
2175
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
2176
|
+
|
2177
|
+
|
2178
|
+
:param request: Request instance for ListOrganizationPolicyDetail
|
2179
|
+
:type request: :class:`huaweicloudsdkcbr.v1.ListOrganizationPolicyDetailRequest`
|
2180
|
+
:rtype: :class:`huaweicloudsdkcbr.v1.ListOrganizationPolicyDetailResponse`
|
2181
|
+
"""
|
2182
|
+
http_info = self._list_organization_policy_detail_http_info(request)
|
2183
|
+
return self._call_api(**http_info)
|
2184
|
+
|
2185
|
+
def list_organization_policy_detail_async_invoker(self, request):
|
2186
|
+
http_info = self._list_organization_policy_detail_http_info(request)
|
2187
|
+
return AsyncInvoker(self, http_info)
|
2188
|
+
|
2189
|
+
def _list_organization_policy_detail_http_info(self, 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_async(self, request):
|
1906
2236
|
"""查询策略列表
|
1907
2237
|
|
@@ -3265,6 +3595,71 @@ class CbrAsyncClient(Client):
|
|
3265
3595
|
|
3266
3596
|
return http_info
|
3267
3597
|
|
3598
|
+
def show_organization_policy_async(self, request):
|
3599
|
+
"""查询指定组织策略
|
3600
|
+
|
3601
|
+
查询指定组织策略
|
3602
|
+
|
3603
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
3604
|
+
|
3605
|
+
|
3606
|
+
:param request: Request instance for ShowOrganizationPolicy
|
3607
|
+
:type request: :class:`huaweicloudsdkcbr.v1.ShowOrganizationPolicyRequest`
|
3608
|
+
:rtype: :class:`huaweicloudsdkcbr.v1.ShowOrganizationPolicyResponse`
|
3609
|
+
"""
|
3610
|
+
http_info = self._show_organization_policy_http_info(request)
|
3611
|
+
return self._call_api(**http_info)
|
3612
|
+
|
3613
|
+
def show_organization_policy_async_invoker(self, request):
|
3614
|
+
http_info = self._show_organization_policy_http_info(request)
|
3615
|
+
return AsyncInvoker(self, http_info)
|
3616
|
+
|
3617
|
+
def _show_organization_policy_http_info(self, 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_async(self, request):
|
3269
3664
|
"""查询单个策略
|
3270
3665
|
|
@@ -4124,9 +4519,9 @@ class CbrAsyncClient(Client):
|
|
4124
4519
|
return http_info
|
4125
4520
|
|
4126
4521
|
def update_order_async(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 CbrAsyncClient(Client):
|
|
4190
4585
|
|
4191
4586
|
return http_info
|
4192
4587
|
|
4588
|
+
def update_organization_policy_async(self, request):
|
4589
|
+
"""更新组织策略
|
4590
|
+
|
4591
|
+
更新组织策略
|
4592
|
+
|
4593
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
4594
|
+
|
4595
|
+
|
4596
|
+
:param request: Request instance for UpdateOrganizationPolicy
|
4597
|
+
:type request: :class:`huaweicloudsdkcbr.v1.UpdateOrganizationPolicyRequest`
|
4598
|
+
:rtype: :class:`huaweicloudsdkcbr.v1.UpdateOrganizationPolicyResponse`
|
4599
|
+
"""
|
4600
|
+
http_info = self._update_organization_policy_http_info(request)
|
4601
|
+
return self._call_api(**http_info)
|
4602
|
+
|
4603
|
+
def update_organization_policy_async_invoker(self, request):
|
4604
|
+
http_info = self._update_organization_policy_http_info(request)
|
4605
|
+
return AsyncInvoker(self, http_info)
|
4606
|
+
|
4607
|
+
def _update_organization_policy_http_info(self, 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_async(self, request):
|
4194
4656
|
"""修改策略
|
4195
4657
|
|