huaweicloudsdkdrs 3.1.129__py2.py3-none-any.whl → 3.1.131__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.
- huaweicloudsdkdrs/v5/__init__.py +6 -0
- huaweicloudsdkdrs/v5/drs_async_client.py +136 -0
- huaweicloudsdkdrs/v5/drs_client.py +136 -0
- huaweicloudsdkdrs/v5/model/__init__.py +6 -0
- huaweicloudsdkdrs/v5/model/agency_role.py +144 -0
- huaweicloudsdkdrs/v5/model/show_agency_info_request.py +143 -0
- huaweicloudsdkdrs/v5/model/show_agency_info_response.py +174 -0
- huaweicloudsdkdrs/v5/model/update_agency_policy_request.py +168 -0
- huaweicloudsdkdrs/v5/model/update_agency_policy_request_body.py +142 -0
- huaweicloudsdkdrs/v5/model/update_agency_policy_response.py +116 -0
- {huaweicloudsdkdrs-3.1.129.dist-info → huaweicloudsdkdrs-3.1.131.dist-info}/METADATA +2 -2
- {huaweicloudsdkdrs-3.1.129.dist-info → huaweicloudsdkdrs-3.1.131.dist-info}/RECORD +15 -9
- {huaweicloudsdkdrs-3.1.129.dist-info → huaweicloudsdkdrs-3.1.131.dist-info}/LICENSE +0 -0
- {huaweicloudsdkdrs-3.1.129.dist-info → huaweicloudsdkdrs-3.1.131.dist-info}/WHEEL +0 -0
- {huaweicloudsdkdrs-3.1.129.dist-info → huaweicloudsdkdrs-3.1.131.dist-info}/top_level.txt +0 -0
huaweicloudsdkdrs/v5/__init__.py
CHANGED
@@ -9,6 +9,7 @@ from huaweicloudsdkdrs.v5.model.action_base_resp import ActionBaseResp
|
|
9
9
|
from huaweicloudsdkdrs.v5.model.action_params import ActionParams
|
10
10
|
from huaweicloudsdkdrs.v5.model.action_req import ActionReq
|
11
11
|
from huaweicloudsdkdrs.v5.model.add_column_info import AddColumnInfo
|
12
|
+
from huaweicloudsdkdrs.v5.model.agency_role import AgencyRole
|
12
13
|
from huaweicloudsdkdrs.v5.model.alarm_notify_config import AlarmNotifyConfig
|
13
14
|
from huaweicloudsdkdrs.v5.model.api_http_null_resp import ApiHttpNullResp
|
14
15
|
from huaweicloudsdkdrs.v5.model.async_action_base_resp import AsyncActionBaseResp
|
@@ -240,6 +241,8 @@ from huaweicloudsdkdrs.v5.model.schema_object import SchemaObject
|
|
240
241
|
from huaweicloudsdkdrs.v5.model.select_db_table_object_info import SelectDbTableObjectInfo
|
241
242
|
from huaweicloudsdkdrs.v5.model.show_actions_request import ShowActionsRequest
|
242
243
|
from huaweicloudsdkdrs.v5.model.show_actions_response import ShowActionsResponse
|
244
|
+
from huaweicloudsdkdrs.v5.model.show_agency_info_request import ShowAgencyInfoRequest
|
245
|
+
from huaweicloudsdkdrs.v5.model.show_agency_info_response import ShowAgencyInfoResponse
|
243
246
|
from huaweicloudsdkdrs.v5.model.show_column_info_result_request import ShowColumnInfoResultRequest
|
244
247
|
from huaweicloudsdkdrs.v5.model.show_column_info_result_response import ShowColumnInfoResultResponse
|
245
248
|
from huaweicloudsdkdrs.v5.model.show_compare_policy_request import ShowComparePolicyRequest
|
@@ -314,6 +317,9 @@ from huaweicloudsdkdrs.v5.model.task_log_info import TaskLogInfo
|
|
314
317
|
from huaweicloudsdkdrs.v5.model.to_period_req import ToPeriodReq
|
315
318
|
from huaweicloudsdkdrs.v5.model.tuning_param_info import TuningParamInfo
|
316
319
|
from huaweicloudsdkdrs.v5.model.tuning_parameter import TuningParameter
|
320
|
+
from huaweicloudsdkdrs.v5.model.update_agency_policy_request import UpdateAgencyPolicyRequest
|
321
|
+
from huaweicloudsdkdrs.v5.model.update_agency_policy_request_body import UpdateAgencyPolicyRequestBody
|
322
|
+
from huaweicloudsdkdrs.v5.model.update_agency_policy_response import UpdateAgencyPolicyResponse
|
317
323
|
from huaweicloudsdkdrs.v5.model.update_batch_async_jobs_request import UpdateBatchAsyncJobsRequest
|
318
324
|
from huaweicloudsdkdrs.v5.model.update_batch_async_jobs_response import UpdateBatchAsyncJobsResponse
|
319
325
|
from huaweicloudsdkdrs.v5.model.update_compare_policy_request import UpdateComparePolicyRequest
|
@@ -3515,6 +3515,73 @@ class DrsAsyncClient(Client):
|
|
3515
3515
|
|
3516
3516
|
return http_info
|
3517
3517
|
|
3518
|
+
def show_agency_info_async(self, request):
|
3519
|
+
"""查询委托权限详情
|
3520
|
+
|
3521
|
+
查询委托权限详情
|
3522
|
+
|
3523
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
3524
|
+
|
3525
|
+
|
3526
|
+
:param request: Request instance for ShowAgencyInfo
|
3527
|
+
:type request: :class:`huaweicloudsdkdrs.v5.ShowAgencyInfoRequest`
|
3528
|
+
:rtype: :class:`huaweicloudsdkdrs.v5.ShowAgencyInfoResponse`
|
3529
|
+
"""
|
3530
|
+
http_info = self._show_agency_info_http_info(request)
|
3531
|
+
return self._call_api(**http_info)
|
3532
|
+
|
3533
|
+
def show_agency_info_async_invoker(self, request):
|
3534
|
+
http_info = self._show_agency_info_http_info(request)
|
3535
|
+
return AsyncInvoker(self, http_info)
|
3536
|
+
|
3537
|
+
def _show_agency_info_http_info(self, request):
|
3538
|
+
http_info = {
|
3539
|
+
"method": "GET",
|
3540
|
+
"resource_path": "/v5/{project_id}/agency/{agency_name}",
|
3541
|
+
"request_type": request.__class__.__name__,
|
3542
|
+
"response_type": "ShowAgencyInfoResponse"
|
3543
|
+
}
|
3544
|
+
|
3545
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
3546
|
+
|
3547
|
+
cname = None
|
3548
|
+
|
3549
|
+
collection_formats = {}
|
3550
|
+
|
3551
|
+
path_params = {}
|
3552
|
+
if 'agency_name' in local_var_params:
|
3553
|
+
path_params['agency_name'] = local_var_params['agency_name']
|
3554
|
+
|
3555
|
+
query_params = []
|
3556
|
+
|
3557
|
+
header_params = {}
|
3558
|
+
if 'x_language' in local_var_params:
|
3559
|
+
header_params['X-Language'] = local_var_params['x_language']
|
3560
|
+
|
3561
|
+
form_params = {}
|
3562
|
+
|
3563
|
+
body = None
|
3564
|
+
if isinstance(request, SdkStreamRequest):
|
3565
|
+
body = request.get_file_stream()
|
3566
|
+
|
3567
|
+
response_headers = []
|
3568
|
+
|
3569
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
3570
|
+
['application/json'])
|
3571
|
+
|
3572
|
+
auth_settings = []
|
3573
|
+
|
3574
|
+
http_info["cname"] = cname
|
3575
|
+
http_info["collection_formats"] = collection_formats
|
3576
|
+
http_info["path_params"] = path_params
|
3577
|
+
http_info["query_params"] = query_params
|
3578
|
+
http_info["header_params"] = header_params
|
3579
|
+
http_info["post_params"] = form_params
|
3580
|
+
http_info["body"] = body
|
3581
|
+
http_info["response_headers"] = response_headers
|
3582
|
+
|
3583
|
+
return http_info
|
3584
|
+
|
3518
3585
|
def show_column_info_result_async(self, request):
|
3519
3586
|
"""获取指定数据库表列信息
|
3520
3587
|
|
@@ -5580,6 +5647,75 @@ class DrsAsyncClient(Client):
|
|
5580
5647
|
|
5581
5648
|
return http_info
|
5582
5649
|
|
5650
|
+
def update_agency_policy_async(self, request):
|
5651
|
+
"""更新委托权限策略
|
5652
|
+
|
5653
|
+
更新委托权限策略
|
5654
|
+
|
5655
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
5656
|
+
|
5657
|
+
|
5658
|
+
:param request: Request instance for UpdateAgencyPolicy
|
5659
|
+
:type request: :class:`huaweicloudsdkdrs.v5.UpdateAgencyPolicyRequest`
|
5660
|
+
:rtype: :class:`huaweicloudsdkdrs.v5.UpdateAgencyPolicyResponse`
|
5661
|
+
"""
|
5662
|
+
http_info = self._update_agency_policy_http_info(request)
|
5663
|
+
return self._call_api(**http_info)
|
5664
|
+
|
5665
|
+
def update_agency_policy_async_invoker(self, request):
|
5666
|
+
http_info = self._update_agency_policy_http_info(request)
|
5667
|
+
return AsyncInvoker(self, http_info)
|
5668
|
+
|
5669
|
+
def _update_agency_policy_http_info(self, request):
|
5670
|
+
http_info = {
|
5671
|
+
"method": "PUT",
|
5672
|
+
"resource_path": "/v5/{project_id}/agency/{agency_name}/policy",
|
5673
|
+
"request_type": request.__class__.__name__,
|
5674
|
+
"response_type": "UpdateAgencyPolicyResponse"
|
5675
|
+
}
|
5676
|
+
|
5677
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
5678
|
+
|
5679
|
+
cname = None
|
5680
|
+
|
5681
|
+
collection_formats = {}
|
5682
|
+
|
5683
|
+
path_params = {}
|
5684
|
+
if 'agency_name' in local_var_params:
|
5685
|
+
path_params['agency_name'] = local_var_params['agency_name']
|
5686
|
+
|
5687
|
+
query_params = []
|
5688
|
+
|
5689
|
+
header_params = {}
|
5690
|
+
if 'x_language' in local_var_params:
|
5691
|
+
header_params['X-Language'] = local_var_params['x_language']
|
5692
|
+
|
5693
|
+
form_params = {}
|
5694
|
+
|
5695
|
+
body = None
|
5696
|
+
if 'body' in local_var_params:
|
5697
|
+
body = local_var_params['body']
|
5698
|
+
if isinstance(request, SdkStreamRequest):
|
5699
|
+
body = request.get_file_stream()
|
5700
|
+
|
5701
|
+
response_headers = []
|
5702
|
+
|
5703
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
5704
|
+
['application/json'])
|
5705
|
+
|
5706
|
+
auth_settings = []
|
5707
|
+
|
5708
|
+
http_info["cname"] = cname
|
5709
|
+
http_info["collection_formats"] = collection_formats
|
5710
|
+
http_info["path_params"] = path_params
|
5711
|
+
http_info["query_params"] = query_params
|
5712
|
+
http_info["header_params"] = header_params
|
5713
|
+
http_info["post_params"] = form_params
|
5714
|
+
http_info["body"] = body
|
5715
|
+
http_info["response_headers"] = response_headers
|
5716
|
+
|
5717
|
+
return http_info
|
5718
|
+
|
5583
5719
|
def update_batch_async_jobs_async(self, request):
|
5584
5720
|
"""更新指定ID批量异步任务详情
|
5585
5721
|
|
@@ -3515,6 +3515,73 @@ class DrsClient(Client):
|
|
3515
3515
|
|
3516
3516
|
return http_info
|
3517
3517
|
|
3518
|
+
def show_agency_info(self, request):
|
3519
|
+
"""查询委托权限详情
|
3520
|
+
|
3521
|
+
查询委托权限详情
|
3522
|
+
|
3523
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
3524
|
+
|
3525
|
+
:param request: Request instance for ShowAgencyInfo
|
3526
|
+
:type request: :class:`huaweicloudsdkdrs.v5.ShowAgencyInfoRequest`
|
3527
|
+
:rtype: :class:`huaweicloudsdkdrs.v5.ShowAgencyInfoResponse`
|
3528
|
+
"""
|
3529
|
+
http_info = self._show_agency_info_http_info(request)
|
3530
|
+
return self._call_api(**http_info)
|
3531
|
+
|
3532
|
+
def show_agency_info_invoker(self, request):
|
3533
|
+
http_info = self._show_agency_info_http_info(request)
|
3534
|
+
return SyncInvoker(self, http_info)
|
3535
|
+
|
3536
|
+
@classmethod
|
3537
|
+
def _show_agency_info_http_info(cls, request):
|
3538
|
+
http_info = {
|
3539
|
+
"method": "GET",
|
3540
|
+
"resource_path": "/v5/{project_id}/agency/{agency_name}",
|
3541
|
+
"request_type": request.__class__.__name__,
|
3542
|
+
"response_type": "ShowAgencyInfoResponse"
|
3543
|
+
}
|
3544
|
+
|
3545
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
3546
|
+
|
3547
|
+
cname = None
|
3548
|
+
|
3549
|
+
collection_formats = {}
|
3550
|
+
|
3551
|
+
path_params = {}
|
3552
|
+
if 'agency_name' in local_var_params:
|
3553
|
+
path_params['agency_name'] = local_var_params['agency_name']
|
3554
|
+
|
3555
|
+
query_params = []
|
3556
|
+
|
3557
|
+
header_params = {}
|
3558
|
+
if 'x_language' in local_var_params:
|
3559
|
+
header_params['X-Language'] = local_var_params['x_language']
|
3560
|
+
|
3561
|
+
form_params = {}
|
3562
|
+
|
3563
|
+
body = None
|
3564
|
+
if isinstance(request, SdkStreamRequest):
|
3565
|
+
body = request.get_file_stream()
|
3566
|
+
|
3567
|
+
response_headers = []
|
3568
|
+
|
3569
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
3570
|
+
['application/json'])
|
3571
|
+
|
3572
|
+
auth_settings = []
|
3573
|
+
|
3574
|
+
http_info["cname"] = cname
|
3575
|
+
http_info["collection_formats"] = collection_formats
|
3576
|
+
http_info["path_params"] = path_params
|
3577
|
+
http_info["query_params"] = query_params
|
3578
|
+
http_info["header_params"] = header_params
|
3579
|
+
http_info["post_params"] = form_params
|
3580
|
+
http_info["body"] = body
|
3581
|
+
http_info["response_headers"] = response_headers
|
3582
|
+
|
3583
|
+
return http_info
|
3584
|
+
|
3518
3585
|
def show_column_info_result(self, request):
|
3519
3586
|
"""获取指定数据库表列信息
|
3520
3587
|
|
@@ -5580,6 +5647,75 @@ class DrsClient(Client):
|
|
5580
5647
|
|
5581
5648
|
return http_info
|
5582
5649
|
|
5650
|
+
def update_agency_policy(self, request):
|
5651
|
+
"""更新委托权限策略
|
5652
|
+
|
5653
|
+
更新委托权限策略
|
5654
|
+
|
5655
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
5656
|
+
|
5657
|
+
:param request: Request instance for UpdateAgencyPolicy
|
5658
|
+
:type request: :class:`huaweicloudsdkdrs.v5.UpdateAgencyPolicyRequest`
|
5659
|
+
:rtype: :class:`huaweicloudsdkdrs.v5.UpdateAgencyPolicyResponse`
|
5660
|
+
"""
|
5661
|
+
http_info = self._update_agency_policy_http_info(request)
|
5662
|
+
return self._call_api(**http_info)
|
5663
|
+
|
5664
|
+
def update_agency_policy_invoker(self, request):
|
5665
|
+
http_info = self._update_agency_policy_http_info(request)
|
5666
|
+
return SyncInvoker(self, http_info)
|
5667
|
+
|
5668
|
+
@classmethod
|
5669
|
+
def _update_agency_policy_http_info(cls, request):
|
5670
|
+
http_info = {
|
5671
|
+
"method": "PUT",
|
5672
|
+
"resource_path": "/v5/{project_id}/agency/{agency_name}/policy",
|
5673
|
+
"request_type": request.__class__.__name__,
|
5674
|
+
"response_type": "UpdateAgencyPolicyResponse"
|
5675
|
+
}
|
5676
|
+
|
5677
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
5678
|
+
|
5679
|
+
cname = None
|
5680
|
+
|
5681
|
+
collection_formats = {}
|
5682
|
+
|
5683
|
+
path_params = {}
|
5684
|
+
if 'agency_name' in local_var_params:
|
5685
|
+
path_params['agency_name'] = local_var_params['agency_name']
|
5686
|
+
|
5687
|
+
query_params = []
|
5688
|
+
|
5689
|
+
header_params = {}
|
5690
|
+
if 'x_language' in local_var_params:
|
5691
|
+
header_params['X-Language'] = local_var_params['x_language']
|
5692
|
+
|
5693
|
+
form_params = {}
|
5694
|
+
|
5695
|
+
body = None
|
5696
|
+
if 'body' in local_var_params:
|
5697
|
+
body = local_var_params['body']
|
5698
|
+
if isinstance(request, SdkStreamRequest):
|
5699
|
+
body = request.get_file_stream()
|
5700
|
+
|
5701
|
+
response_headers = []
|
5702
|
+
|
5703
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
5704
|
+
['application/json'])
|
5705
|
+
|
5706
|
+
auth_settings = []
|
5707
|
+
|
5708
|
+
http_info["cname"] = cname
|
5709
|
+
http_info["collection_formats"] = collection_formats
|
5710
|
+
http_info["path_params"] = path_params
|
5711
|
+
http_info["query_params"] = query_params
|
5712
|
+
http_info["header_params"] = header_params
|
5713
|
+
http_info["post_params"] = form_params
|
5714
|
+
http_info["body"] = body
|
5715
|
+
http_info["response_headers"] = response_headers
|
5716
|
+
|
5717
|
+
return http_info
|
5718
|
+
|
5583
5719
|
def update_batch_async_jobs(self, request):
|
5584
5720
|
"""更新指定ID批量异步任务详情
|
5585
5721
|
|
@@ -7,6 +7,7 @@ from huaweicloudsdkdrs.v5.model.action_base_resp import ActionBaseResp
|
|
7
7
|
from huaweicloudsdkdrs.v5.model.action_params import ActionParams
|
8
8
|
from huaweicloudsdkdrs.v5.model.action_req import ActionReq
|
9
9
|
from huaweicloudsdkdrs.v5.model.add_column_info import AddColumnInfo
|
10
|
+
from huaweicloudsdkdrs.v5.model.agency_role import AgencyRole
|
10
11
|
from huaweicloudsdkdrs.v5.model.alarm_notify_config import AlarmNotifyConfig
|
11
12
|
from huaweicloudsdkdrs.v5.model.api_http_null_resp import ApiHttpNullResp
|
12
13
|
from huaweicloudsdkdrs.v5.model.async_action_base_resp import AsyncActionBaseResp
|
@@ -238,6 +239,8 @@ from huaweicloudsdkdrs.v5.model.schema_object import SchemaObject
|
|
238
239
|
from huaweicloudsdkdrs.v5.model.select_db_table_object_info import SelectDbTableObjectInfo
|
239
240
|
from huaweicloudsdkdrs.v5.model.show_actions_request import ShowActionsRequest
|
240
241
|
from huaweicloudsdkdrs.v5.model.show_actions_response import ShowActionsResponse
|
242
|
+
from huaweicloudsdkdrs.v5.model.show_agency_info_request import ShowAgencyInfoRequest
|
243
|
+
from huaweicloudsdkdrs.v5.model.show_agency_info_response import ShowAgencyInfoResponse
|
241
244
|
from huaweicloudsdkdrs.v5.model.show_column_info_result_request import ShowColumnInfoResultRequest
|
242
245
|
from huaweicloudsdkdrs.v5.model.show_column_info_result_response import ShowColumnInfoResultResponse
|
243
246
|
from huaweicloudsdkdrs.v5.model.show_compare_policy_request import ShowComparePolicyRequest
|
@@ -312,6 +315,9 @@ from huaweicloudsdkdrs.v5.model.task_log_info import TaskLogInfo
|
|
312
315
|
from huaweicloudsdkdrs.v5.model.to_period_req import ToPeriodReq
|
313
316
|
from huaweicloudsdkdrs.v5.model.tuning_param_info import TuningParamInfo
|
314
317
|
from huaweicloudsdkdrs.v5.model.tuning_parameter import TuningParameter
|
318
|
+
from huaweicloudsdkdrs.v5.model.update_agency_policy_request import UpdateAgencyPolicyRequest
|
319
|
+
from huaweicloudsdkdrs.v5.model.update_agency_policy_request_body import UpdateAgencyPolicyRequestBody
|
320
|
+
from huaweicloudsdkdrs.v5.model.update_agency_policy_response import UpdateAgencyPolicyResponse
|
315
321
|
from huaweicloudsdkdrs.v5.model.update_batch_async_jobs_request import UpdateBatchAsyncJobsRequest
|
316
322
|
from huaweicloudsdkdrs.v5.model.update_batch_async_jobs_response import UpdateBatchAsyncJobsResponse
|
317
323
|
from huaweicloudsdkdrs.v5.model.update_compare_policy_request import UpdateComparePolicyRequest
|
@@ -0,0 +1,144 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class AgencyRole:
|
9
|
+
|
10
|
+
"""
|
11
|
+
Attributes:
|
12
|
+
openapi_types (dict): The key is attribute name
|
13
|
+
and the value is attribute type.
|
14
|
+
attribute_map (dict): The key is attribute name
|
15
|
+
and the value is json key in definition.
|
16
|
+
"""
|
17
|
+
sensitive_list = []
|
18
|
+
|
19
|
+
openapi_types = {
|
20
|
+
'name': 'str',
|
21
|
+
'description': 'str'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'name': 'name',
|
26
|
+
'description': 'description'
|
27
|
+
}
|
28
|
+
|
29
|
+
def __init__(self, name=None, description=None):
|
30
|
+
"""AgencyRole
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
:param name: 策略名称。
|
35
|
+
:type name: str
|
36
|
+
:param description: 策略描述。
|
37
|
+
:type description: str
|
38
|
+
"""
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
self._name = None
|
43
|
+
self._description = None
|
44
|
+
self.discriminator = None
|
45
|
+
|
46
|
+
if name is not None:
|
47
|
+
self.name = name
|
48
|
+
if description is not None:
|
49
|
+
self.description = description
|
50
|
+
|
51
|
+
@property
|
52
|
+
def name(self):
|
53
|
+
"""Gets the name of this AgencyRole.
|
54
|
+
|
55
|
+
策略名称。
|
56
|
+
|
57
|
+
:return: The name of this AgencyRole.
|
58
|
+
:rtype: str
|
59
|
+
"""
|
60
|
+
return self._name
|
61
|
+
|
62
|
+
@name.setter
|
63
|
+
def name(self, name):
|
64
|
+
"""Sets the name of this AgencyRole.
|
65
|
+
|
66
|
+
策略名称。
|
67
|
+
|
68
|
+
:param name: The name of this AgencyRole.
|
69
|
+
:type name: str
|
70
|
+
"""
|
71
|
+
self._name = name
|
72
|
+
|
73
|
+
@property
|
74
|
+
def description(self):
|
75
|
+
"""Gets the description of this AgencyRole.
|
76
|
+
|
77
|
+
策略描述。
|
78
|
+
|
79
|
+
:return: The description of this AgencyRole.
|
80
|
+
:rtype: str
|
81
|
+
"""
|
82
|
+
return self._description
|
83
|
+
|
84
|
+
@description.setter
|
85
|
+
def description(self, description):
|
86
|
+
"""Sets the description of this AgencyRole.
|
87
|
+
|
88
|
+
策略描述。
|
89
|
+
|
90
|
+
:param description: The description of this AgencyRole.
|
91
|
+
:type description: str
|
92
|
+
"""
|
93
|
+
self._description = description
|
94
|
+
|
95
|
+
def to_dict(self):
|
96
|
+
"""Returns the model properties as a dict"""
|
97
|
+
result = {}
|
98
|
+
|
99
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
100
|
+
value = getattr(self, attr)
|
101
|
+
if isinstance(value, list):
|
102
|
+
result[attr] = list(map(
|
103
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
104
|
+
value
|
105
|
+
))
|
106
|
+
elif hasattr(value, "to_dict"):
|
107
|
+
result[attr] = value.to_dict()
|
108
|
+
elif isinstance(value, dict):
|
109
|
+
result[attr] = dict(map(
|
110
|
+
lambda item: (item[0], item[1].to_dict())
|
111
|
+
if hasattr(item[1], "to_dict") else item,
|
112
|
+
value.items()
|
113
|
+
))
|
114
|
+
else:
|
115
|
+
if attr in self.sensitive_list:
|
116
|
+
result[attr] = "****"
|
117
|
+
else:
|
118
|
+
result[attr] = value
|
119
|
+
|
120
|
+
return result
|
121
|
+
|
122
|
+
def to_str(self):
|
123
|
+
"""Returns the string representation of the model"""
|
124
|
+
import simplejson as json
|
125
|
+
if six.PY2:
|
126
|
+
import sys
|
127
|
+
reload(sys)
|
128
|
+
sys.setdefaultencoding("utf-8")
|
129
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
130
|
+
|
131
|
+
def __repr__(self):
|
132
|
+
"""For `print`"""
|
133
|
+
return self.to_str()
|
134
|
+
|
135
|
+
def __eq__(self, other):
|
136
|
+
"""Returns true if both objects are equal"""
|
137
|
+
if not isinstance(other, AgencyRole):
|
138
|
+
return False
|
139
|
+
|
140
|
+
return self.__dict__ == other.__dict__
|
141
|
+
|
142
|
+
def __ne__(self, other):
|
143
|
+
"""Returns true if both objects are not equal"""
|
144
|
+
return not self == other
|
@@ -0,0 +1,143 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ShowAgencyInfoRequest:
|
9
|
+
|
10
|
+
"""
|
11
|
+
Attributes:
|
12
|
+
openapi_types (dict): The key is attribute name
|
13
|
+
and the value is attribute type.
|
14
|
+
attribute_map (dict): The key is attribute name
|
15
|
+
and the value is json key in definition.
|
16
|
+
"""
|
17
|
+
sensitive_list = []
|
18
|
+
|
19
|
+
openapi_types = {
|
20
|
+
'x_language': 'str',
|
21
|
+
'agency_name': 'str'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'x_language': 'X-Language',
|
26
|
+
'agency_name': 'agency_name'
|
27
|
+
}
|
28
|
+
|
29
|
+
def __init__(self, x_language=None, agency_name=None):
|
30
|
+
"""ShowAgencyInfoRequest
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
:param x_language: 请求语言类型。默认en-us。 取值范围: - en-us - zh-cn
|
35
|
+
:type x_language: str
|
36
|
+
:param agency_name: 委托名称。
|
37
|
+
:type agency_name: str
|
38
|
+
"""
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
self._x_language = None
|
43
|
+
self._agency_name = None
|
44
|
+
self.discriminator = None
|
45
|
+
|
46
|
+
if x_language is not None:
|
47
|
+
self.x_language = x_language
|
48
|
+
self.agency_name = agency_name
|
49
|
+
|
50
|
+
@property
|
51
|
+
def x_language(self):
|
52
|
+
"""Gets the x_language of this ShowAgencyInfoRequest.
|
53
|
+
|
54
|
+
请求语言类型。默认en-us。 取值范围: - en-us - zh-cn
|
55
|
+
|
56
|
+
:return: The x_language of this ShowAgencyInfoRequest.
|
57
|
+
:rtype: str
|
58
|
+
"""
|
59
|
+
return self._x_language
|
60
|
+
|
61
|
+
@x_language.setter
|
62
|
+
def x_language(self, x_language):
|
63
|
+
"""Sets the x_language of this ShowAgencyInfoRequest.
|
64
|
+
|
65
|
+
请求语言类型。默认en-us。 取值范围: - en-us - zh-cn
|
66
|
+
|
67
|
+
:param x_language: The x_language of this ShowAgencyInfoRequest.
|
68
|
+
:type x_language: str
|
69
|
+
"""
|
70
|
+
self._x_language = x_language
|
71
|
+
|
72
|
+
@property
|
73
|
+
def agency_name(self):
|
74
|
+
"""Gets the agency_name of this ShowAgencyInfoRequest.
|
75
|
+
|
76
|
+
委托名称。
|
77
|
+
|
78
|
+
:return: The agency_name of this ShowAgencyInfoRequest.
|
79
|
+
:rtype: str
|
80
|
+
"""
|
81
|
+
return self._agency_name
|
82
|
+
|
83
|
+
@agency_name.setter
|
84
|
+
def agency_name(self, agency_name):
|
85
|
+
"""Sets the agency_name of this ShowAgencyInfoRequest.
|
86
|
+
|
87
|
+
委托名称。
|
88
|
+
|
89
|
+
:param agency_name: The agency_name of this ShowAgencyInfoRequest.
|
90
|
+
:type agency_name: str
|
91
|
+
"""
|
92
|
+
self._agency_name = agency_name
|
93
|
+
|
94
|
+
def to_dict(self):
|
95
|
+
"""Returns the model properties as a dict"""
|
96
|
+
result = {}
|
97
|
+
|
98
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
99
|
+
value = getattr(self, attr)
|
100
|
+
if isinstance(value, list):
|
101
|
+
result[attr] = list(map(
|
102
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
103
|
+
value
|
104
|
+
))
|
105
|
+
elif hasattr(value, "to_dict"):
|
106
|
+
result[attr] = value.to_dict()
|
107
|
+
elif isinstance(value, dict):
|
108
|
+
result[attr] = dict(map(
|
109
|
+
lambda item: (item[0], item[1].to_dict())
|
110
|
+
if hasattr(item[1], "to_dict") else item,
|
111
|
+
value.items()
|
112
|
+
))
|
113
|
+
else:
|
114
|
+
if attr in self.sensitive_list:
|
115
|
+
result[attr] = "****"
|
116
|
+
else:
|
117
|
+
result[attr] = value
|
118
|
+
|
119
|
+
return result
|
120
|
+
|
121
|
+
def to_str(self):
|
122
|
+
"""Returns the string representation of the model"""
|
123
|
+
import simplejson as json
|
124
|
+
if six.PY2:
|
125
|
+
import sys
|
126
|
+
reload(sys)
|
127
|
+
sys.setdefaultencoding("utf-8")
|
128
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
129
|
+
|
130
|
+
def __repr__(self):
|
131
|
+
"""For `print`"""
|
132
|
+
return self.to_str()
|
133
|
+
|
134
|
+
def __eq__(self, other):
|
135
|
+
"""Returns true if both objects are equal"""
|
136
|
+
if not isinstance(other, ShowAgencyInfoRequest):
|
137
|
+
return False
|
138
|
+
|
139
|
+
return self.__dict__ == other.__dict__
|
140
|
+
|
141
|
+
def __ne__(self, other):
|
142
|
+
"""Returns true if both objects are not equal"""
|
143
|
+
return not self == other
|
@@ -0,0 +1,174 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.sdk_response import SdkResponse
|
6
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
7
|
+
|
8
|
+
|
9
|
+
class ShowAgencyInfoResponse(SdkResponse):
|
10
|
+
|
11
|
+
"""
|
12
|
+
Attributes:
|
13
|
+
openapi_types (dict): The key is attribute name
|
14
|
+
and the value is attribute type.
|
15
|
+
attribute_map (dict): The key is attribute name
|
16
|
+
and the value is json key in definition.
|
17
|
+
"""
|
18
|
+
sensitive_list = []
|
19
|
+
|
20
|
+
openapi_types = {
|
21
|
+
'is_existed': 'bool',
|
22
|
+
'name': 'str',
|
23
|
+
'roles': 'list[AgencyRole]'
|
24
|
+
}
|
25
|
+
|
26
|
+
attribute_map = {
|
27
|
+
'is_existed': 'is_existed',
|
28
|
+
'name': 'name',
|
29
|
+
'roles': 'roles'
|
30
|
+
}
|
31
|
+
|
32
|
+
def __init__(self, is_existed=None, name=None, roles=None):
|
33
|
+
"""ShowAgencyInfoResponse
|
34
|
+
|
35
|
+
The model defined in huaweicloud sdk
|
36
|
+
|
37
|
+
:param is_existed: 委托是否存在。
|
38
|
+
:type is_existed: bool
|
39
|
+
:param name: 委托名称。
|
40
|
+
:type name: str
|
41
|
+
:param roles: 委托绑定的权限策略信息。
|
42
|
+
:type roles: list[:class:`huaweicloudsdkdrs.v5.AgencyRole`]
|
43
|
+
"""
|
44
|
+
|
45
|
+
super(ShowAgencyInfoResponse, self).__init__()
|
46
|
+
|
47
|
+
self._is_existed = None
|
48
|
+
self._name = None
|
49
|
+
self._roles = None
|
50
|
+
self.discriminator = None
|
51
|
+
|
52
|
+
if is_existed is not None:
|
53
|
+
self.is_existed = is_existed
|
54
|
+
if name is not None:
|
55
|
+
self.name = name
|
56
|
+
if roles is not None:
|
57
|
+
self.roles = roles
|
58
|
+
|
59
|
+
@property
|
60
|
+
def is_existed(self):
|
61
|
+
"""Gets the is_existed of this ShowAgencyInfoResponse.
|
62
|
+
|
63
|
+
委托是否存在。
|
64
|
+
|
65
|
+
:return: The is_existed of this ShowAgencyInfoResponse.
|
66
|
+
:rtype: bool
|
67
|
+
"""
|
68
|
+
return self._is_existed
|
69
|
+
|
70
|
+
@is_existed.setter
|
71
|
+
def is_existed(self, is_existed):
|
72
|
+
"""Sets the is_existed of this ShowAgencyInfoResponse.
|
73
|
+
|
74
|
+
委托是否存在。
|
75
|
+
|
76
|
+
:param is_existed: The is_existed of this ShowAgencyInfoResponse.
|
77
|
+
:type is_existed: bool
|
78
|
+
"""
|
79
|
+
self._is_existed = is_existed
|
80
|
+
|
81
|
+
@property
|
82
|
+
def name(self):
|
83
|
+
"""Gets the name of this ShowAgencyInfoResponse.
|
84
|
+
|
85
|
+
委托名称。
|
86
|
+
|
87
|
+
:return: The name of this ShowAgencyInfoResponse.
|
88
|
+
:rtype: str
|
89
|
+
"""
|
90
|
+
return self._name
|
91
|
+
|
92
|
+
@name.setter
|
93
|
+
def name(self, name):
|
94
|
+
"""Sets the name of this ShowAgencyInfoResponse.
|
95
|
+
|
96
|
+
委托名称。
|
97
|
+
|
98
|
+
:param name: The name of this ShowAgencyInfoResponse.
|
99
|
+
:type name: str
|
100
|
+
"""
|
101
|
+
self._name = name
|
102
|
+
|
103
|
+
@property
|
104
|
+
def roles(self):
|
105
|
+
"""Gets the roles of this ShowAgencyInfoResponse.
|
106
|
+
|
107
|
+
委托绑定的权限策略信息。
|
108
|
+
|
109
|
+
:return: The roles of this ShowAgencyInfoResponse.
|
110
|
+
:rtype: list[:class:`huaweicloudsdkdrs.v5.AgencyRole`]
|
111
|
+
"""
|
112
|
+
return self._roles
|
113
|
+
|
114
|
+
@roles.setter
|
115
|
+
def roles(self, roles):
|
116
|
+
"""Sets the roles of this ShowAgencyInfoResponse.
|
117
|
+
|
118
|
+
委托绑定的权限策略信息。
|
119
|
+
|
120
|
+
:param roles: The roles of this ShowAgencyInfoResponse.
|
121
|
+
:type roles: list[:class:`huaweicloudsdkdrs.v5.AgencyRole`]
|
122
|
+
"""
|
123
|
+
self._roles = roles
|
124
|
+
|
125
|
+
def to_dict(self):
|
126
|
+
"""Returns the model properties as a dict"""
|
127
|
+
result = {}
|
128
|
+
|
129
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
130
|
+
value = getattr(self, attr)
|
131
|
+
if isinstance(value, list):
|
132
|
+
result[attr] = list(map(
|
133
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
134
|
+
value
|
135
|
+
))
|
136
|
+
elif hasattr(value, "to_dict"):
|
137
|
+
result[attr] = value.to_dict()
|
138
|
+
elif isinstance(value, dict):
|
139
|
+
result[attr] = dict(map(
|
140
|
+
lambda item: (item[0], item[1].to_dict())
|
141
|
+
if hasattr(item[1], "to_dict") else item,
|
142
|
+
value.items()
|
143
|
+
))
|
144
|
+
else:
|
145
|
+
if attr in self.sensitive_list:
|
146
|
+
result[attr] = "****"
|
147
|
+
else:
|
148
|
+
result[attr] = value
|
149
|
+
|
150
|
+
return result
|
151
|
+
|
152
|
+
def to_str(self):
|
153
|
+
"""Returns the string representation of the model"""
|
154
|
+
import simplejson as json
|
155
|
+
if six.PY2:
|
156
|
+
import sys
|
157
|
+
reload(sys)
|
158
|
+
sys.setdefaultencoding("utf-8")
|
159
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
160
|
+
|
161
|
+
def __repr__(self):
|
162
|
+
"""For `print`"""
|
163
|
+
return self.to_str()
|
164
|
+
|
165
|
+
def __eq__(self, other):
|
166
|
+
"""Returns true if both objects are equal"""
|
167
|
+
if not isinstance(other, ShowAgencyInfoResponse):
|
168
|
+
return False
|
169
|
+
|
170
|
+
return self.__dict__ == other.__dict__
|
171
|
+
|
172
|
+
def __ne__(self, other):
|
173
|
+
"""Returns true if both objects are not equal"""
|
174
|
+
return not self == other
|
@@ -0,0 +1,168 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class UpdateAgencyPolicyRequest:
|
9
|
+
|
10
|
+
"""
|
11
|
+
Attributes:
|
12
|
+
openapi_types (dict): The key is attribute name
|
13
|
+
and the value is attribute type.
|
14
|
+
attribute_map (dict): The key is attribute name
|
15
|
+
and the value is json key in definition.
|
16
|
+
"""
|
17
|
+
sensitive_list = []
|
18
|
+
|
19
|
+
openapi_types = {
|
20
|
+
'x_language': 'str',
|
21
|
+
'agency_name': 'str',
|
22
|
+
'body': 'UpdateAgencyPolicyRequestBody'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'x_language': 'X-Language',
|
27
|
+
'agency_name': 'agency_name',
|
28
|
+
'body': 'body'
|
29
|
+
}
|
30
|
+
|
31
|
+
def __init__(self, x_language=None, agency_name=None, body=None):
|
32
|
+
"""UpdateAgencyPolicyRequest
|
33
|
+
|
34
|
+
The model defined in huaweicloud sdk
|
35
|
+
|
36
|
+
:param x_language: 请求语言类型。默认en-us。 取值范围: - en-us - zh-cn
|
37
|
+
:type x_language: str
|
38
|
+
:param agency_name: 委托名称。
|
39
|
+
:type agency_name: str
|
40
|
+
:param body: Body of the UpdateAgencyPolicyRequest
|
41
|
+
:type body: :class:`huaweicloudsdkdrs.v5.UpdateAgencyPolicyRequestBody`
|
42
|
+
"""
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
self._x_language = None
|
47
|
+
self._agency_name = None
|
48
|
+
self._body = None
|
49
|
+
self.discriminator = None
|
50
|
+
|
51
|
+
if x_language is not None:
|
52
|
+
self.x_language = x_language
|
53
|
+
self.agency_name = agency_name
|
54
|
+
if body is not None:
|
55
|
+
self.body = body
|
56
|
+
|
57
|
+
@property
|
58
|
+
def x_language(self):
|
59
|
+
"""Gets the x_language of this UpdateAgencyPolicyRequest.
|
60
|
+
|
61
|
+
请求语言类型。默认en-us。 取值范围: - en-us - zh-cn
|
62
|
+
|
63
|
+
:return: The x_language of this UpdateAgencyPolicyRequest.
|
64
|
+
:rtype: str
|
65
|
+
"""
|
66
|
+
return self._x_language
|
67
|
+
|
68
|
+
@x_language.setter
|
69
|
+
def x_language(self, x_language):
|
70
|
+
"""Sets the x_language of this UpdateAgencyPolicyRequest.
|
71
|
+
|
72
|
+
请求语言类型。默认en-us。 取值范围: - en-us - zh-cn
|
73
|
+
|
74
|
+
:param x_language: The x_language of this UpdateAgencyPolicyRequest.
|
75
|
+
:type x_language: str
|
76
|
+
"""
|
77
|
+
self._x_language = x_language
|
78
|
+
|
79
|
+
@property
|
80
|
+
def agency_name(self):
|
81
|
+
"""Gets the agency_name of this UpdateAgencyPolicyRequest.
|
82
|
+
|
83
|
+
委托名称。
|
84
|
+
|
85
|
+
:return: The agency_name of this UpdateAgencyPolicyRequest.
|
86
|
+
:rtype: str
|
87
|
+
"""
|
88
|
+
return self._agency_name
|
89
|
+
|
90
|
+
@agency_name.setter
|
91
|
+
def agency_name(self, agency_name):
|
92
|
+
"""Sets the agency_name of this UpdateAgencyPolicyRequest.
|
93
|
+
|
94
|
+
委托名称。
|
95
|
+
|
96
|
+
:param agency_name: The agency_name of this UpdateAgencyPolicyRequest.
|
97
|
+
:type agency_name: str
|
98
|
+
"""
|
99
|
+
self._agency_name = agency_name
|
100
|
+
|
101
|
+
@property
|
102
|
+
def body(self):
|
103
|
+
"""Gets the body of this UpdateAgencyPolicyRequest.
|
104
|
+
|
105
|
+
:return: The body of this UpdateAgencyPolicyRequest.
|
106
|
+
:rtype: :class:`huaweicloudsdkdrs.v5.UpdateAgencyPolicyRequestBody`
|
107
|
+
"""
|
108
|
+
return self._body
|
109
|
+
|
110
|
+
@body.setter
|
111
|
+
def body(self, body):
|
112
|
+
"""Sets the body of this UpdateAgencyPolicyRequest.
|
113
|
+
|
114
|
+
:param body: The body of this UpdateAgencyPolicyRequest.
|
115
|
+
:type body: :class:`huaweicloudsdkdrs.v5.UpdateAgencyPolicyRequestBody`
|
116
|
+
"""
|
117
|
+
self._body = body
|
118
|
+
|
119
|
+
def to_dict(self):
|
120
|
+
"""Returns the model properties as a dict"""
|
121
|
+
result = {}
|
122
|
+
|
123
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
124
|
+
value = getattr(self, attr)
|
125
|
+
if isinstance(value, list):
|
126
|
+
result[attr] = list(map(
|
127
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
128
|
+
value
|
129
|
+
))
|
130
|
+
elif hasattr(value, "to_dict"):
|
131
|
+
result[attr] = value.to_dict()
|
132
|
+
elif isinstance(value, dict):
|
133
|
+
result[attr] = dict(map(
|
134
|
+
lambda item: (item[0], item[1].to_dict())
|
135
|
+
if hasattr(item[1], "to_dict") else item,
|
136
|
+
value.items()
|
137
|
+
))
|
138
|
+
else:
|
139
|
+
if attr in self.sensitive_list:
|
140
|
+
result[attr] = "****"
|
141
|
+
else:
|
142
|
+
result[attr] = value
|
143
|
+
|
144
|
+
return result
|
145
|
+
|
146
|
+
def to_str(self):
|
147
|
+
"""Returns the string representation of the model"""
|
148
|
+
import simplejson as json
|
149
|
+
if six.PY2:
|
150
|
+
import sys
|
151
|
+
reload(sys)
|
152
|
+
sys.setdefaultencoding("utf-8")
|
153
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
154
|
+
|
155
|
+
def __repr__(self):
|
156
|
+
"""For `print`"""
|
157
|
+
return self.to_str()
|
158
|
+
|
159
|
+
def __eq__(self, other):
|
160
|
+
"""Returns true if both objects are equal"""
|
161
|
+
if not isinstance(other, UpdateAgencyPolicyRequest):
|
162
|
+
return False
|
163
|
+
|
164
|
+
return self.__dict__ == other.__dict__
|
165
|
+
|
166
|
+
def __ne__(self, other):
|
167
|
+
"""Returns true if both objects are not equal"""
|
168
|
+
return not self == other
|
@@ -0,0 +1,142 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class UpdateAgencyPolicyRequestBody:
|
9
|
+
|
10
|
+
"""
|
11
|
+
Attributes:
|
12
|
+
openapi_types (dict): The key is attribute name
|
13
|
+
and the value is attribute type.
|
14
|
+
attribute_map (dict): The key is attribute name
|
15
|
+
and the value is json key in definition.
|
16
|
+
"""
|
17
|
+
sensitive_list = []
|
18
|
+
|
19
|
+
openapi_types = {
|
20
|
+
'unbind_role_names': 'list[str]',
|
21
|
+
'bind_role_names': 'list[str]'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'unbind_role_names': 'unbind_role_names',
|
26
|
+
'bind_role_names': 'bind_role_names'
|
27
|
+
}
|
28
|
+
|
29
|
+
def __init__(self, unbind_role_names=None, bind_role_names=None):
|
30
|
+
"""UpdateAgencyPolicyRequestBody
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
:param unbind_role_names: 委托解绑的权限策略集合。
|
35
|
+
:type unbind_role_names: list[str]
|
36
|
+
:param bind_role_names: 委托绑定的权限策略集合。
|
37
|
+
:type bind_role_names: list[str]
|
38
|
+
"""
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
self._unbind_role_names = None
|
43
|
+
self._bind_role_names = None
|
44
|
+
self.discriminator = None
|
45
|
+
|
46
|
+
self.unbind_role_names = unbind_role_names
|
47
|
+
self.bind_role_names = bind_role_names
|
48
|
+
|
49
|
+
@property
|
50
|
+
def unbind_role_names(self):
|
51
|
+
"""Gets the unbind_role_names of this UpdateAgencyPolicyRequestBody.
|
52
|
+
|
53
|
+
委托解绑的权限策略集合。
|
54
|
+
|
55
|
+
:return: The unbind_role_names of this UpdateAgencyPolicyRequestBody.
|
56
|
+
:rtype: list[str]
|
57
|
+
"""
|
58
|
+
return self._unbind_role_names
|
59
|
+
|
60
|
+
@unbind_role_names.setter
|
61
|
+
def unbind_role_names(self, unbind_role_names):
|
62
|
+
"""Sets the unbind_role_names of this UpdateAgencyPolicyRequestBody.
|
63
|
+
|
64
|
+
委托解绑的权限策略集合。
|
65
|
+
|
66
|
+
:param unbind_role_names: The unbind_role_names of this UpdateAgencyPolicyRequestBody.
|
67
|
+
:type unbind_role_names: list[str]
|
68
|
+
"""
|
69
|
+
self._unbind_role_names = unbind_role_names
|
70
|
+
|
71
|
+
@property
|
72
|
+
def bind_role_names(self):
|
73
|
+
"""Gets the bind_role_names of this UpdateAgencyPolicyRequestBody.
|
74
|
+
|
75
|
+
委托绑定的权限策略集合。
|
76
|
+
|
77
|
+
:return: The bind_role_names of this UpdateAgencyPolicyRequestBody.
|
78
|
+
:rtype: list[str]
|
79
|
+
"""
|
80
|
+
return self._bind_role_names
|
81
|
+
|
82
|
+
@bind_role_names.setter
|
83
|
+
def bind_role_names(self, bind_role_names):
|
84
|
+
"""Sets the bind_role_names of this UpdateAgencyPolicyRequestBody.
|
85
|
+
|
86
|
+
委托绑定的权限策略集合。
|
87
|
+
|
88
|
+
:param bind_role_names: The bind_role_names of this UpdateAgencyPolicyRequestBody.
|
89
|
+
:type bind_role_names: list[str]
|
90
|
+
"""
|
91
|
+
self._bind_role_names = bind_role_names
|
92
|
+
|
93
|
+
def to_dict(self):
|
94
|
+
"""Returns the model properties as a dict"""
|
95
|
+
result = {}
|
96
|
+
|
97
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
98
|
+
value = getattr(self, attr)
|
99
|
+
if isinstance(value, list):
|
100
|
+
result[attr] = list(map(
|
101
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
102
|
+
value
|
103
|
+
))
|
104
|
+
elif hasattr(value, "to_dict"):
|
105
|
+
result[attr] = value.to_dict()
|
106
|
+
elif isinstance(value, dict):
|
107
|
+
result[attr] = dict(map(
|
108
|
+
lambda item: (item[0], item[1].to_dict())
|
109
|
+
if hasattr(item[1], "to_dict") else item,
|
110
|
+
value.items()
|
111
|
+
))
|
112
|
+
else:
|
113
|
+
if attr in self.sensitive_list:
|
114
|
+
result[attr] = "****"
|
115
|
+
else:
|
116
|
+
result[attr] = value
|
117
|
+
|
118
|
+
return result
|
119
|
+
|
120
|
+
def to_str(self):
|
121
|
+
"""Returns the string representation of the model"""
|
122
|
+
import simplejson as json
|
123
|
+
if six.PY2:
|
124
|
+
import sys
|
125
|
+
reload(sys)
|
126
|
+
sys.setdefaultencoding("utf-8")
|
127
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
128
|
+
|
129
|
+
def __repr__(self):
|
130
|
+
"""For `print`"""
|
131
|
+
return self.to_str()
|
132
|
+
|
133
|
+
def __eq__(self, other):
|
134
|
+
"""Returns true if both objects are equal"""
|
135
|
+
if not isinstance(other, UpdateAgencyPolicyRequestBody):
|
136
|
+
return False
|
137
|
+
|
138
|
+
return self.__dict__ == other.__dict__
|
139
|
+
|
140
|
+
def __ne__(self, other):
|
141
|
+
"""Returns true if both objects are not equal"""
|
142
|
+
return not self == other
|
@@ -0,0 +1,116 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.sdk_response import SdkResponse
|
6
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
7
|
+
|
8
|
+
|
9
|
+
class UpdateAgencyPolicyResponse(SdkResponse):
|
10
|
+
|
11
|
+
"""
|
12
|
+
Attributes:
|
13
|
+
openapi_types (dict): The key is attribute name
|
14
|
+
and the value is attribute type.
|
15
|
+
attribute_map (dict): The key is attribute name
|
16
|
+
and the value is json key in definition.
|
17
|
+
"""
|
18
|
+
sensitive_list = []
|
19
|
+
|
20
|
+
openapi_types = {
|
21
|
+
'body': 'object'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'body': 'body'
|
26
|
+
}
|
27
|
+
|
28
|
+
def __init__(self, body=None):
|
29
|
+
"""UpdateAgencyPolicyResponse
|
30
|
+
|
31
|
+
The model defined in huaweicloud sdk
|
32
|
+
|
33
|
+
:param body: 空响应体。
|
34
|
+
:type body: object
|
35
|
+
"""
|
36
|
+
|
37
|
+
super(UpdateAgencyPolicyResponse, self).__init__()
|
38
|
+
|
39
|
+
self._body = None
|
40
|
+
self.discriminator = None
|
41
|
+
|
42
|
+
if body is not None:
|
43
|
+
self.body = body
|
44
|
+
|
45
|
+
@property
|
46
|
+
def body(self):
|
47
|
+
"""Gets the body of this UpdateAgencyPolicyResponse.
|
48
|
+
|
49
|
+
空响应体。
|
50
|
+
|
51
|
+
:return: The body of this UpdateAgencyPolicyResponse.
|
52
|
+
:rtype: object
|
53
|
+
"""
|
54
|
+
return self._body
|
55
|
+
|
56
|
+
@body.setter
|
57
|
+
def body(self, body):
|
58
|
+
"""Sets the body of this UpdateAgencyPolicyResponse.
|
59
|
+
|
60
|
+
空响应体。
|
61
|
+
|
62
|
+
:param body: The body of this UpdateAgencyPolicyResponse.
|
63
|
+
:type body: object
|
64
|
+
"""
|
65
|
+
self._body = body
|
66
|
+
|
67
|
+
def to_dict(self):
|
68
|
+
"""Returns the model properties as a dict"""
|
69
|
+
result = {}
|
70
|
+
|
71
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
72
|
+
value = getattr(self, attr)
|
73
|
+
if isinstance(value, list):
|
74
|
+
result[attr] = list(map(
|
75
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
76
|
+
value
|
77
|
+
))
|
78
|
+
elif hasattr(value, "to_dict"):
|
79
|
+
result[attr] = value.to_dict()
|
80
|
+
elif isinstance(value, dict):
|
81
|
+
result[attr] = dict(map(
|
82
|
+
lambda item: (item[0], item[1].to_dict())
|
83
|
+
if hasattr(item[1], "to_dict") else item,
|
84
|
+
value.items()
|
85
|
+
))
|
86
|
+
else:
|
87
|
+
if attr in self.sensitive_list:
|
88
|
+
result[attr] = "****"
|
89
|
+
else:
|
90
|
+
result[attr] = value
|
91
|
+
|
92
|
+
return result
|
93
|
+
|
94
|
+
def to_str(self):
|
95
|
+
"""Returns the string representation of the model"""
|
96
|
+
import simplejson as json
|
97
|
+
if six.PY2:
|
98
|
+
import sys
|
99
|
+
reload(sys)
|
100
|
+
sys.setdefaultencoding("utf-8")
|
101
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
102
|
+
|
103
|
+
def __repr__(self):
|
104
|
+
"""For `print`"""
|
105
|
+
return self.to_str()
|
106
|
+
|
107
|
+
def __eq__(self, other):
|
108
|
+
"""Returns true if both objects are equal"""
|
109
|
+
if not isinstance(other, UpdateAgencyPolicyResponse):
|
110
|
+
return False
|
111
|
+
|
112
|
+
return self.__dict__ == other.__dict__
|
113
|
+
|
114
|
+
def __ne__(self, other):
|
115
|
+
"""Returns true if both objects are not equal"""
|
116
|
+
return not self == other
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: huaweicloudsdkdrs
|
3
|
-
Version: 3.1.
|
3
|
+
Version: 3.1.131
|
4
4
|
Summary: DRS
|
5
5
|
Home-page: https://github.com/huaweicloud/huaweicloud-sdk-python-v3
|
6
6
|
Author: HuaweiCloud SDK
|
@@ -22,6 +22,6 @@ Classifier: Topic :: Software Development
|
|
22
22
|
Requires-Python: >=2.7,!=3.0.*,!=3.1.*,!=3.2.*
|
23
23
|
Description-Content-Type: text/markdown
|
24
24
|
License-File: LICENSE
|
25
|
-
Requires-Dist: huaweicloudsdkcore>=3.1.
|
25
|
+
Requires-Dist: huaweicloudsdkcore>=3.1.131
|
26
26
|
|
27
27
|
See detailed information in [huaweicloud-sdk-python-v3](https://github.com/huaweicloud/huaweicloud-sdk-python-v3).
|
@@ -261,14 +261,15 @@ huaweicloudsdkdrs/v3/model/user_account_vo.py,sha256=dDMC9DmWVBqziBYvO8NIS5JECPJ
|
|
261
261
|
huaweicloudsdkdrs/v3/model/user_role_vo.py,sha256=DE95DIyHWAj3bK6vKIqvF6p092TbAn85SVD15SwLtuI,6684
|
262
262
|
huaweicloudsdkdrs/v3/region/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
263
263
|
huaweicloudsdkdrs/v3/region/drs_region.py,sha256=B5YBsWxgBmzwp1sK40NSEV-F1jHC5-Cpe8zt3oC9d8E,4755
|
264
|
-
huaweicloudsdkdrs/v5/__init__.py,sha256=
|
265
|
-
huaweicloudsdkdrs/v5/drs_async_client.py,sha256=
|
266
|
-
huaweicloudsdkdrs/v5/drs_client.py,sha256=
|
267
|
-
huaweicloudsdkdrs/v5/model/__init__.py,sha256=
|
264
|
+
huaweicloudsdkdrs/v5/__init__.py,sha256=jXg3w_t59ATskeGaZskHBnC3tpMMuDH0U5AKYyBv9RM,30268
|
265
|
+
huaweicloudsdkdrs/v5/drs_async_client.py,sha256=HCzsXJfc-E_UqEi-0V6pic_uFPwZVuwPbUbTsVNZ3j8,229733
|
266
|
+
huaweicloudsdkdrs/v5/drs_client.py,sha256=D6-5s2_ugzcgYma6YgC0e0N4aktXzlUy1dJaUQTRbMw,229810
|
267
|
+
huaweicloudsdkdrs/v5/model/__init__.py,sha256=36bTQ2nwBdvKZIpYa1h3M5ALPQ9l7L0STzQz_5TnB-g,30182
|
268
268
|
huaweicloudsdkdrs/v5/model/action_base_resp.py,sha256=ttC50jaMIRDTAmaW16u4G-FhhBnod0feaA4hWfoXptc,5636
|
269
269
|
huaweicloudsdkdrs/v5/model/action_params.py,sha256=_g5--jCvOL1vX4CtMIwhuPKbeILgLyqOxxdQiHK8EUk,12853
|
270
270
|
huaweicloudsdkdrs/v5/model/action_req.py,sha256=KWJ13pYhG0F3Rlv2tZNRKqNAntN8H-kvrgYL1USpzpU,7079
|
271
271
|
huaweicloudsdkdrs/v5/model/add_column_info.py,sha256=4ofRNVaIqWKZlrTfZDtyrc2wx4tu1il1lH0PX1vUQvs,5508
|
272
|
+
huaweicloudsdkdrs/v5/model/agency_role.py,sha256=YyO5GD_LcvrJaR3gWCU2PcDhs28aKM4q0HvMJOeAGZY,3729
|
272
273
|
huaweicloudsdkdrs/v5/model/alarm_notify_config.py,sha256=U04qH1ivX90RdKDiQgwJt6zcnx5i55cYwkbyTPWJ13M,9775
|
273
274
|
huaweicloudsdkdrs/v5/model/api_http_null_resp.py,sha256=UpXUmJ1QNjsxJNHF4jKOj183_puClUff-5DiP71EVlk,2303
|
274
275
|
huaweicloudsdkdrs/v5/model/async_action_base_resp.py,sha256=WLx30B9JfpjdSZP7MSjH9O4yRnUA-_sJn6BP-2jDmqg,3106
|
@@ -500,6 +501,8 @@ huaweicloudsdkdrs/v5/model/schema_object.py,sha256=GuGlaPHScpZg8f-QQoJV5drOi2rSy
|
|
500
501
|
huaweicloudsdkdrs/v5/model/select_db_table_object_info.py,sha256=PUnJhsJ3diiJ0ScWA0HjJkxPHppaRQT0usgE2S59P-4,4750
|
501
502
|
huaweicloudsdkdrs/v5/model/show_actions_request.py,sha256=h4t7gqCdSsYlz5drxslVDShcuVf786ael5Q82Xp_O1w,3811
|
502
503
|
huaweicloudsdkdrs/v5/model/show_actions_response.py,sha256=2FpI-reCayMtc-yArPcPqNE9GLMG09Q7JA4auJYFP90,3294
|
504
|
+
huaweicloudsdkdrs/v5/model/show_agency_info_request.py,sha256=2zMOX5ifeD78KAz1NXoFlZmMcfdKqA6jTh0HYrEXQDI,4104
|
505
|
+
huaweicloudsdkdrs/v5/model/show_agency_info_response.py,sha256=IApAn_Hp26wwIEIMPrRDOaztDTs0c-2KutoExU6r0sM,4891
|
503
506
|
huaweicloudsdkdrs/v5/model/show_column_info_result_request.py,sha256=Xe2vBTm2hSEPWWY5PbKIZ31ZJTzTrdircUE18E-mKYo,6611
|
504
507
|
huaweicloudsdkdrs/v5/model/show_column_info_result_response.py,sha256=Y4TvtUSKRf-m66vhlcd5TGuaH7sIvNviBq3PGFf45k0,4408
|
505
508
|
huaweicloudsdkdrs/v5/model/show_compare_policy_request.py,sha256=ZIhsMJm24aX6aTz_83_WnEH2bTj53_PXp2t0JD11BU0,3877
|
@@ -574,6 +577,9 @@ huaweicloudsdkdrs/v5/model/task_log_info.py,sha256=AduyFfBfZGz6VCBYoN4u5XiD0MjoM
|
|
574
577
|
huaweicloudsdkdrs/v5/model/to_period_req.py,sha256=Mg1DTtc43hoSXMpnjcBC0oAThCWk9mBmox5yXUUzbKI,5504
|
575
578
|
huaweicloudsdkdrs/v5/model/tuning_param_info.py,sha256=q3hIAi4cUqVL9IooyhJ0ytkyPFBtv1LhqqhLfGjWi78,6219
|
576
579
|
huaweicloudsdkdrs/v5/model/tuning_parameter.py,sha256=PqEIQRnrf3pjju2h6dWpXObxNsQ7WktBrS_joLtPDj8,4650
|
580
|
+
huaweicloudsdkdrs/v5/model/update_agency_policy_request.py,sha256=2A-9kFy8NkhMqFDDafch2T6ADwz2Q1g1O39IUEesF0k,5014
|
581
|
+
huaweicloudsdkdrs/v5/model/update_agency_policy_request_body.py,sha256=rL9Y-ihtNtY0252jL1ucKSsxlZSyhOvSQDIqIB_bCnM,4413
|
582
|
+
huaweicloudsdkdrs/v5/model/update_agency_policy_response.py,sha256=kK1jmwynZ8b4wDbaUAUlinuvnprUwBCYcNgiKaQioW8,3171
|
577
583
|
huaweicloudsdkdrs/v5/model/update_batch_async_jobs_request.py,sha256=npAYDTXmHOh5nIlhdKnsauDTuC8H4w6Gzf3HWSoE3xE,5079
|
578
584
|
huaweicloudsdkdrs/v5/model/update_batch_async_jobs_response.py,sha256=qCBe88HnlrOltgtncC47pMwmfIn2QhXNRzxLJYhlUsU,3436
|
579
585
|
huaweicloudsdkdrs/v5/model/update_compare_policy_request.py,sha256=hmBuqYmcBczqrHw5oaaAPMIeZMIpRRvg-jGJWYMznYI,4742
|
@@ -609,8 +615,8 @@ huaweicloudsdkdrs/v5/model/validate_job_name_request.py,sha256=74qQd020c2h8BdFUs
|
|
609
615
|
huaweicloudsdkdrs/v5/model/validate_job_name_response.py,sha256=Yehy1O1CeximGx5YvOn7luyGGLz__HTT-tWpZTV0BUE,4895
|
610
616
|
huaweicloudsdkdrs/v5/region/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
611
617
|
huaweicloudsdkdrs/v5/region/drs_region.py,sha256=B5YBsWxgBmzwp1sK40NSEV-F1jHC5-Cpe8zt3oC9d8E,4755
|
612
|
-
huaweicloudsdkdrs-3.1.
|
613
|
-
huaweicloudsdkdrs-3.1.
|
614
|
-
huaweicloudsdkdrs-3.1.
|
615
|
-
huaweicloudsdkdrs-3.1.
|
616
|
-
huaweicloudsdkdrs-3.1.
|
618
|
+
huaweicloudsdkdrs-3.1.131.dist-info/LICENSE,sha256=4_VSTLuxcsybRG9N4Isktlj1rAIBBsfl0Tjc0gBTijo,604
|
619
|
+
huaweicloudsdkdrs-3.1.131.dist-info/METADATA,sha256=5yk9byzSBiwYf9nZSLJ-EDtZi5Gc1j45IOJ5A1TEshM,1135
|
620
|
+
huaweicloudsdkdrs-3.1.131.dist-info/WHEEL,sha256=Kh9pAotZVRFj97E15yTA4iADqXdQfIVTHcNaZTjxeGM,110
|
621
|
+
huaweicloudsdkdrs-3.1.131.dist-info/top_level.txt,sha256=FJmOnPaGx7WoM_NJdeECns2-V--JJZyO0PVtyQAgpYg,18
|
622
|
+
huaweicloudsdkdrs-3.1.131.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|