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
huaweicloudsdkcbr/v1/__init__.py
CHANGED
@@ -66,6 +66,8 @@ from huaweicloudsdkcbr.v1.model.copy_checkpoint_request import CopyCheckpointReq
|
|
66
66
|
from huaweicloudsdkcbr.v1.model.copy_checkpoint_response import CopyCheckpointResponse
|
67
67
|
from huaweicloudsdkcbr.v1.model.create_checkpoint_request import CreateCheckpointRequest
|
68
68
|
from huaweicloudsdkcbr.v1.model.create_checkpoint_response import CreateCheckpointResponse
|
69
|
+
from huaweicloudsdkcbr.v1.model.create_organization_policy_request import CreateOrganizationPolicyRequest
|
70
|
+
from huaweicloudsdkcbr.v1.model.create_organization_policy_response import CreateOrganizationPolicyResponse
|
69
71
|
from huaweicloudsdkcbr.v1.model.create_policy_request import CreatePolicyRequest
|
70
72
|
from huaweicloudsdkcbr.v1.model.create_policy_response import CreatePolicyResponse
|
71
73
|
from huaweicloudsdkcbr.v1.model.create_post_paid_vault_request import CreatePostPaidVaultRequest
|
@@ -78,6 +80,8 @@ from huaweicloudsdkcbr.v1.model.delete_backup_request import DeleteBackupRequest
|
|
78
80
|
from huaweicloudsdkcbr.v1.model.delete_backup_response import DeleteBackupResponse
|
79
81
|
from huaweicloudsdkcbr.v1.model.delete_member_request import DeleteMemberRequest
|
80
82
|
from huaweicloudsdkcbr.v1.model.delete_member_response import DeleteMemberResponse
|
83
|
+
from huaweicloudsdkcbr.v1.model.delete_organization_policy_request import DeleteOrganizationPolicyRequest
|
84
|
+
from huaweicloudsdkcbr.v1.model.delete_organization_policy_response import DeleteOrganizationPolicyResponse
|
81
85
|
from huaweicloudsdkcbr.v1.model.delete_policy_request import DeletePolicyRequest
|
82
86
|
from huaweicloudsdkcbr.v1.model.delete_policy_response import DeletePolicyResponse
|
83
87
|
from huaweicloudsdkcbr.v1.model.delete_vault_request import DeleteVaultRequest
|
@@ -105,6 +109,10 @@ from huaweicloudsdkcbr.v1.model.list_external_vault_request import ListExternalV
|
|
105
109
|
from huaweicloudsdkcbr.v1.model.list_external_vault_response import ListExternalVaultResponse
|
106
110
|
from huaweicloudsdkcbr.v1.model.list_op_logs_request import ListOpLogsRequest
|
107
111
|
from huaweicloudsdkcbr.v1.model.list_op_logs_response import ListOpLogsResponse
|
112
|
+
from huaweicloudsdkcbr.v1.model.list_organization_policies_request import ListOrganizationPoliciesRequest
|
113
|
+
from huaweicloudsdkcbr.v1.model.list_organization_policies_response import ListOrganizationPoliciesResponse
|
114
|
+
from huaweicloudsdkcbr.v1.model.list_organization_policy_detail_request import ListOrganizationPolicyDetailRequest
|
115
|
+
from huaweicloudsdkcbr.v1.model.list_organization_policy_detail_response import ListOrganizationPolicyDetailResponse
|
108
116
|
from huaweicloudsdkcbr.v1.model.list_policies_request import ListPoliciesRequest
|
109
117
|
from huaweicloudsdkcbr.v1.model.list_policies_response import ListPoliciesResponse
|
110
118
|
from huaweicloudsdkcbr.v1.model.list_projects_request import ListProjectsRequest
|
@@ -130,6 +138,12 @@ from huaweicloudsdkcbr.v1.model.op_extend_info_sync import OpExtendInfoSync
|
|
130
138
|
from huaweicloudsdkcbr.v1.model.op_extend_info_vault_delete import OpExtendInfoVaultDelete
|
131
139
|
from huaweicloudsdkcbr.v1.model.op_extra_info import OpExtraInfo
|
132
140
|
from huaweicloudsdkcbr.v1.model.operation_log import OperationLog
|
141
|
+
from huaweicloudsdkcbr.v1.model.organization_policy import OrganizationPolicy
|
142
|
+
from huaweicloudsdkcbr.v1.model.organization_policy_create import OrganizationPolicyCreate
|
143
|
+
from huaweicloudsdkcbr.v1.model.organization_policy_create_req import OrganizationPolicyCreateReq
|
144
|
+
from huaweicloudsdkcbr.v1.model.organization_policy_status import OrganizationPolicyStatus
|
145
|
+
from huaweicloudsdkcbr.v1.model.organization_policy_update import OrganizationPolicyUpdate
|
146
|
+
from huaweicloudsdkcbr.v1.model.organization_policy_update_req import OrganizationPolicyUpdateReq
|
133
147
|
from huaweicloudsdkcbr.v1.model.path import Path
|
134
148
|
from huaweicloudsdkcbr.v1.model.policy import Policy
|
135
149
|
from huaweicloudsdkcbr.v1.model.policy_associate_vault import PolicyAssociateVault
|
@@ -186,6 +200,8 @@ from huaweicloudsdkcbr.v1.model.show_migrate_status_request import ShowMigrateSt
|
|
186
200
|
from huaweicloudsdkcbr.v1.model.show_migrate_status_response import ShowMigrateStatusResponse
|
187
201
|
from huaweicloudsdkcbr.v1.model.show_op_log_request import ShowOpLogRequest
|
188
202
|
from huaweicloudsdkcbr.v1.model.show_op_log_response import ShowOpLogResponse
|
203
|
+
from huaweicloudsdkcbr.v1.model.show_organization_policy_request import ShowOrganizationPolicyRequest
|
204
|
+
from huaweicloudsdkcbr.v1.model.show_organization_policy_response import ShowOrganizationPolicyResponse
|
189
205
|
from huaweicloudsdkcbr.v1.model.show_policy_request import ShowPolicyRequest
|
190
206
|
from huaweicloudsdkcbr.v1.model.show_policy_response import ShowPolicyResponse
|
191
207
|
from huaweicloudsdkcbr.v1.model.show_protectable_request import ShowProtectableRequest
|
@@ -225,6 +241,8 @@ from huaweicloudsdkcbr.v1.model.update_member_status_request import UpdateMember
|
|
225
241
|
from huaweicloudsdkcbr.v1.model.update_member_status_response import UpdateMemberStatusResponse
|
226
242
|
from huaweicloudsdkcbr.v1.model.update_order_request import UpdateOrderRequest
|
227
243
|
from huaweicloudsdkcbr.v1.model.update_order_response import UpdateOrderResponse
|
244
|
+
from huaweicloudsdkcbr.v1.model.update_organization_policy_request import UpdateOrganizationPolicyRequest
|
245
|
+
from huaweicloudsdkcbr.v1.model.update_organization_policy_response import UpdateOrganizationPolicyResponse
|
228
246
|
from huaweicloudsdkcbr.v1.model.update_policy_request import UpdatePolicyRequest
|
229
247
|
from huaweicloudsdkcbr.v1.model.update_policy_response import UpdatePolicyResponse
|
230
248
|
from huaweicloudsdkcbr.v1.model.update_vault_request import UpdateVaultRequest
|
@@ -701,6 +701,71 @@ class CbrAsyncClient(Client):
|
|
701
701
|
|
702
702
|
return http_info
|
703
703
|
|
704
|
+
def create_organization_policy_async(self, request):
|
705
|
+
"""创建组织策略
|
706
|
+
|
707
|
+
创建组织策略
|
708
|
+
|
709
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
710
|
+
|
711
|
+
|
712
|
+
:param request: Request instance for CreateOrganizationPolicy
|
713
|
+
:type request: :class:`huaweicloudsdkcbr.v1.CreateOrganizationPolicyRequest`
|
714
|
+
:rtype: :class:`huaweicloudsdkcbr.v1.CreateOrganizationPolicyResponse`
|
715
|
+
"""
|
716
|
+
http_info = self._create_organization_policy_http_info(request)
|
717
|
+
return self._call_api(**http_info)
|
718
|
+
|
719
|
+
def create_organization_policy_async_invoker(self, request):
|
720
|
+
http_info = self._create_organization_policy_http_info(request)
|
721
|
+
return AsyncInvoker(self, http_info)
|
722
|
+
|
723
|
+
def _create_organization_policy_http_info(self, 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_async(self, request):
|
705
770
|
"""创建策略
|
706
771
|
|
@@ -1096,6 +1161,71 @@ class CbrAsyncClient(Client):
|
|
1096
1161
|
|
1097
1162
|
return http_info
|
1098
1163
|
|
1164
|
+
def delete_organization_policy_async(self, request):
|
1165
|
+
"""删除组织策略
|
1166
|
+
|
1167
|
+
删除组织策略
|
1168
|
+
|
1169
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
1170
|
+
|
1171
|
+
|
1172
|
+
:param request: Request instance for DeleteOrganizationPolicy
|
1173
|
+
:type request: :class:`huaweicloudsdkcbr.v1.DeleteOrganizationPolicyRequest`
|
1174
|
+
:rtype: :class:`huaweicloudsdkcbr.v1.DeleteOrganizationPolicyResponse`
|
1175
|
+
"""
|
1176
|
+
http_info = self._delete_organization_policy_http_info(request)
|
1177
|
+
return self._call_api(**http_info)
|
1178
|
+
|
1179
|
+
def delete_organization_policy_async_invoker(self, request):
|
1180
|
+
http_info = self._delete_organization_policy_http_info(request)
|
1181
|
+
return AsyncInvoker(self, http_info)
|
1182
|
+
|
1183
|
+
def _delete_organization_policy_http_info(self, 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_async(self, request):
|
1100
1230
|
"""删除策略
|
1101
1231
|
|
@@ -1902,6 +2032,136 @@ class CbrAsyncClient(Client):
|
|
1902
2032
|
|
1903
2033
|
return http_info
|
1904
2034
|
|
2035
|
+
def list_organization_policies_async(self, request):
|
2036
|
+
"""查询组织策略列表
|
2037
|
+
|
2038
|
+
查询组织策略列表
|
2039
|
+
|
2040
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
2041
|
+
|
2042
|
+
|
2043
|
+
:param request: Request instance for ListOrganizationPolicies
|
2044
|
+
:type request: :class:`huaweicloudsdkcbr.v1.ListOrganizationPoliciesRequest`
|
2045
|
+
:rtype: :class:`huaweicloudsdkcbr.v1.ListOrganizationPoliciesResponse`
|
2046
|
+
"""
|
2047
|
+
http_info = self._list_organization_policies_http_info(request)
|
2048
|
+
return self._call_api(**http_info)
|
2049
|
+
|
2050
|
+
def list_organization_policies_async_invoker(self, request):
|
2051
|
+
http_info = self._list_organization_policies_http_info(request)
|
2052
|
+
return AsyncInvoker(self, http_info)
|
2053
|
+
|
2054
|
+
def _list_organization_policies_http_info(self, 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_async(self, request):
|
2101
|
+
"""查询组织策略部署状态列表
|
2102
|
+
|
2103
|
+
查询组织策略每个账号下策略部署状态列表
|
2104
|
+
|
2105
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
2106
|
+
|
2107
|
+
|
2108
|
+
:param request: Request instance for ListOrganizationPolicyDetail
|
2109
|
+
:type request: :class:`huaweicloudsdkcbr.v1.ListOrganizationPolicyDetailRequest`
|
2110
|
+
:rtype: :class:`huaweicloudsdkcbr.v1.ListOrganizationPolicyDetailResponse`
|
2111
|
+
"""
|
2112
|
+
http_info = self._list_organization_policy_detail_http_info(request)
|
2113
|
+
return self._call_api(**http_info)
|
2114
|
+
|
2115
|
+
def list_organization_policy_detail_async_invoker(self, request):
|
2116
|
+
http_info = self._list_organization_policy_detail_http_info(request)
|
2117
|
+
return AsyncInvoker(self, http_info)
|
2118
|
+
|
2119
|
+
def _list_organization_policy_detail_http_info(self, 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_async(self, request):
|
1906
2166
|
"""查询策略列表
|
1907
2167
|
|
@@ -3265,6 +3525,71 @@ class CbrAsyncClient(Client):
|
|
3265
3525
|
|
3266
3526
|
return http_info
|
3267
3527
|
|
3528
|
+
def show_organization_policy_async(self, request):
|
3529
|
+
"""查询指定组织策略
|
3530
|
+
|
3531
|
+
查询指定组织策略
|
3532
|
+
|
3533
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
3534
|
+
|
3535
|
+
|
3536
|
+
:param request: Request instance for ShowOrganizationPolicy
|
3537
|
+
:type request: :class:`huaweicloudsdkcbr.v1.ShowOrganizationPolicyRequest`
|
3538
|
+
:rtype: :class:`huaweicloudsdkcbr.v1.ShowOrganizationPolicyResponse`
|
3539
|
+
"""
|
3540
|
+
http_info = self._show_organization_policy_http_info(request)
|
3541
|
+
return self._call_api(**http_info)
|
3542
|
+
|
3543
|
+
def show_organization_policy_async_invoker(self, request):
|
3544
|
+
http_info = self._show_organization_policy_http_info(request)
|
3545
|
+
return AsyncInvoker(self, http_info)
|
3546
|
+
|
3547
|
+
def _show_organization_policy_http_info(self, 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_async(self, request):
|
3269
3594
|
"""查询单个策略
|
3270
3595
|
|
@@ -4190,6 +4515,73 @@ class CbrAsyncClient(Client):
|
|
4190
4515
|
|
4191
4516
|
return http_info
|
4192
4517
|
|
4518
|
+
def update_organization_policy_async(self, request):
|
4519
|
+
"""更新组织策略
|
4520
|
+
|
4521
|
+
更新组织策略
|
4522
|
+
|
4523
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
4524
|
+
|
4525
|
+
|
4526
|
+
:param request: Request instance for UpdateOrganizationPolicy
|
4527
|
+
:type request: :class:`huaweicloudsdkcbr.v1.UpdateOrganizationPolicyRequest`
|
4528
|
+
:rtype: :class:`huaweicloudsdkcbr.v1.UpdateOrganizationPolicyResponse`
|
4529
|
+
"""
|
4530
|
+
http_info = self._update_organization_policy_http_info(request)
|
4531
|
+
return self._call_api(**http_info)
|
4532
|
+
|
4533
|
+
def update_organization_policy_async_invoker(self, request):
|
4534
|
+
http_info = self._update_organization_policy_http_info(request)
|
4535
|
+
return AsyncInvoker(self, http_info)
|
4536
|
+
|
4537
|
+
def _update_organization_policy_http_info(self, 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_async(self, request):
|
4194
4586
|
"""修改策略
|
4195
4587
|
|