huaweicloudsdkcbr 3.1.139__py2.py3-none-any.whl → 3.1.141__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 +3 -0
- huaweicloudsdkcbr/v1/cbr_async_client.py +66 -0
- huaweicloudsdkcbr/v1/cbr_client.py +66 -0
- huaweicloudsdkcbr/v1/model/__init__.py +3 -0
- huaweicloudsdkcbr/v1/model/change_order_response.py +4 -4
- huaweicloudsdkcbr/v1/model/change_to_period.py +286 -0
- huaweicloudsdkcbr/v1/model/change_vault_charge_mode_request.py +111 -0
- huaweicloudsdkcbr/v1/model/change_vault_charge_mode_response.py +174 -0
- {huaweicloudsdkcbr-3.1.139.dist-info → huaweicloudsdkcbr-3.1.141.dist-info}/METADATA +2 -2
- {huaweicloudsdkcbr-3.1.139.dist-info → huaweicloudsdkcbr-3.1.141.dist-info}/RECORD +13 -10
- {huaweicloudsdkcbr-3.1.139.dist-info → huaweicloudsdkcbr-3.1.141.dist-info}/LICENSE +0 -0
- {huaweicloudsdkcbr-3.1.139.dist-info → huaweicloudsdkcbr-3.1.141.dist-info}/WHEEL +0 -0
- {huaweicloudsdkcbr-3.1.139.dist-info → huaweicloudsdkcbr-3.1.141.dist-info}/top_level.txt +0 -0
huaweicloudsdkcbr/v1/__init__.py
CHANGED
@@ -51,6 +51,9 @@ from huaweicloudsdkcbr.v1.model.cbc_product_info_update import CbcProductInfoUpd
|
|
51
51
|
from huaweicloudsdkcbr.v1.model.cbc_update import CbcUpdate
|
52
52
|
from huaweicloudsdkcbr.v1.model.change_order_request import ChangeOrderRequest
|
53
53
|
from huaweicloudsdkcbr.v1.model.change_order_response import ChangeOrderResponse
|
54
|
+
from huaweicloudsdkcbr.v1.model.change_to_period import ChangeToPeriod
|
55
|
+
from huaweicloudsdkcbr.v1.model.change_vault_charge_mode_request import ChangeVaultChargeModeRequest
|
56
|
+
from huaweicloudsdkcbr.v1.model.change_vault_charge_mode_response import ChangeVaultChargeModeResponse
|
54
57
|
from huaweicloudsdkcbr.v1.model.check_agent_request import CheckAgentRequest
|
55
58
|
from huaweicloudsdkcbr.v1.model.check_agent_response import CheckAgentResponse
|
56
59
|
from huaweicloudsdkcbr.v1.model.checkpoint_create import CheckpointCreate
|
@@ -506,6 +506,72 @@ class CbrAsyncClient(Client):
|
|
506
506
|
|
507
507
|
return http_info
|
508
508
|
|
509
|
+
def change_vault_charge_mode_async(self, request):
|
510
|
+
"""修改付费模式
|
511
|
+
|
512
|
+
修改资源的付费模式,暂时只支持按需资源转包周期资源。
|
513
|
+
> 该接口目前输入公测阶段,部分region暂时无法使用。
|
514
|
+
|
515
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
516
|
+
|
517
|
+
|
518
|
+
:param request: Request instance for ChangeVaultChargeMode
|
519
|
+
:type request: :class:`huaweicloudsdkcbr.v1.ChangeVaultChargeModeRequest`
|
520
|
+
:rtype: :class:`huaweicloudsdkcbr.v1.ChangeVaultChargeModeResponse`
|
521
|
+
"""
|
522
|
+
http_info = self._change_vault_charge_mode_http_info(request)
|
523
|
+
return self._call_api(**http_info)
|
524
|
+
|
525
|
+
def change_vault_charge_mode_async_invoker(self, request):
|
526
|
+
http_info = self._change_vault_charge_mode_http_info(request)
|
527
|
+
return AsyncInvoker(self, http_info)
|
528
|
+
|
529
|
+
def _change_vault_charge_mode_http_info(self, request):
|
530
|
+
http_info = {
|
531
|
+
"method": "POST",
|
532
|
+
"resource_path": "/v3/{project_id}/vaults/change-charge-mode",
|
533
|
+
"request_type": request.__class__.__name__,
|
534
|
+
"response_type": "ChangeVaultChargeModeResponse"
|
535
|
+
}
|
536
|
+
|
537
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
538
|
+
|
539
|
+
cname = None
|
540
|
+
|
541
|
+
collection_formats = {}
|
542
|
+
|
543
|
+
path_params = {}
|
544
|
+
|
545
|
+
query_params = []
|
546
|
+
|
547
|
+
header_params = {}
|
548
|
+
|
549
|
+
form_params = {}
|
550
|
+
|
551
|
+
body = None
|
552
|
+
if 'body' in local_var_params:
|
553
|
+
body = local_var_params['body']
|
554
|
+
if isinstance(request, SdkStreamRequest):
|
555
|
+
body = request.get_file_stream()
|
556
|
+
|
557
|
+
response_headers = []
|
558
|
+
|
559
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
560
|
+
['application/json;charset=UTF-8'])
|
561
|
+
|
562
|
+
auth_settings = []
|
563
|
+
|
564
|
+
http_info["cname"] = cname
|
565
|
+
http_info["collection_formats"] = collection_formats
|
566
|
+
http_info["path_params"] = path_params
|
567
|
+
http_info["query_params"] = query_params
|
568
|
+
http_info["header_params"] = header_params
|
569
|
+
http_info["post_params"] = form_params
|
570
|
+
http_info["body"] = body
|
571
|
+
http_info["response_headers"] = response_headers
|
572
|
+
|
573
|
+
return http_info
|
574
|
+
|
509
575
|
def check_agent_async(self, request):
|
510
576
|
"""查询agent状态
|
511
577
|
|
@@ -506,6 +506,72 @@ class CbrClient(Client):
|
|
506
506
|
|
507
507
|
return http_info
|
508
508
|
|
509
|
+
def change_vault_charge_mode(self, request):
|
510
|
+
"""修改付费模式
|
511
|
+
|
512
|
+
修改资源的付费模式,暂时只支持按需资源转包周期资源。
|
513
|
+
> 该接口目前输入公测阶段,部分region暂时无法使用。
|
514
|
+
|
515
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
516
|
+
|
517
|
+
:param request: Request instance for ChangeVaultChargeMode
|
518
|
+
:type request: :class:`huaweicloudsdkcbr.v1.ChangeVaultChargeModeRequest`
|
519
|
+
:rtype: :class:`huaweicloudsdkcbr.v1.ChangeVaultChargeModeResponse`
|
520
|
+
"""
|
521
|
+
http_info = self._change_vault_charge_mode_http_info(request)
|
522
|
+
return self._call_api(**http_info)
|
523
|
+
|
524
|
+
def change_vault_charge_mode_invoker(self, request):
|
525
|
+
http_info = self._change_vault_charge_mode_http_info(request)
|
526
|
+
return SyncInvoker(self, http_info)
|
527
|
+
|
528
|
+
@classmethod
|
529
|
+
def _change_vault_charge_mode_http_info(cls, request):
|
530
|
+
http_info = {
|
531
|
+
"method": "POST",
|
532
|
+
"resource_path": "/v3/{project_id}/vaults/change-charge-mode",
|
533
|
+
"request_type": request.__class__.__name__,
|
534
|
+
"response_type": "ChangeVaultChargeModeResponse"
|
535
|
+
}
|
536
|
+
|
537
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
538
|
+
|
539
|
+
cname = None
|
540
|
+
|
541
|
+
collection_formats = {}
|
542
|
+
|
543
|
+
path_params = {}
|
544
|
+
|
545
|
+
query_params = []
|
546
|
+
|
547
|
+
header_params = {}
|
548
|
+
|
549
|
+
form_params = {}
|
550
|
+
|
551
|
+
body = None
|
552
|
+
if 'body' in local_var_params:
|
553
|
+
body = local_var_params['body']
|
554
|
+
if isinstance(request, SdkStreamRequest):
|
555
|
+
body = request.get_file_stream()
|
556
|
+
|
557
|
+
response_headers = []
|
558
|
+
|
559
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
560
|
+
['application/json;charset=UTF-8'])
|
561
|
+
|
562
|
+
auth_settings = []
|
563
|
+
|
564
|
+
http_info["cname"] = cname
|
565
|
+
http_info["collection_formats"] = collection_formats
|
566
|
+
http_info["path_params"] = path_params
|
567
|
+
http_info["query_params"] = query_params
|
568
|
+
http_info["header_params"] = header_params
|
569
|
+
http_info["post_params"] = form_params
|
570
|
+
http_info["body"] = body
|
571
|
+
http_info["response_headers"] = response_headers
|
572
|
+
|
573
|
+
return http_info
|
574
|
+
|
509
575
|
def check_agent(self, request):
|
510
576
|
"""查询agent状态
|
511
577
|
|
@@ -49,6 +49,9 @@ from huaweicloudsdkcbr.v1.model.cbc_product_info_update import CbcProductInfoUpd
|
|
49
49
|
from huaweicloudsdkcbr.v1.model.cbc_update import CbcUpdate
|
50
50
|
from huaweicloudsdkcbr.v1.model.change_order_request import ChangeOrderRequest
|
51
51
|
from huaweicloudsdkcbr.v1.model.change_order_response import ChangeOrderResponse
|
52
|
+
from huaweicloudsdkcbr.v1.model.change_to_period import ChangeToPeriod
|
53
|
+
from huaweicloudsdkcbr.v1.model.change_vault_charge_mode_request import ChangeVaultChargeModeRequest
|
54
|
+
from huaweicloudsdkcbr.v1.model.change_vault_charge_mode_response import ChangeVaultChargeModeResponse
|
52
55
|
from huaweicloudsdkcbr.v1.model.check_agent_request import CheckAgentRequest
|
53
56
|
from huaweicloudsdkcbr.v1.model.check_agent_response import CheckAgentResponse
|
54
57
|
from huaweicloudsdkcbr.v1.model.checkpoint_create import CheckpointCreate
|
@@ -19,7 +19,7 @@ class ChangeOrderResponse(SdkResponse):
|
|
19
19
|
|
20
20
|
openapi_types = {
|
21
21
|
'order_id': 'str',
|
22
|
-
'ret_code': '
|
22
|
+
'ret_code': 'float',
|
23
23
|
'ret_msg': 'str'
|
24
24
|
}
|
25
25
|
|
@@ -37,7 +37,7 @@ class ChangeOrderResponse(SdkResponse):
|
|
37
37
|
:param order_id: 订单ID
|
38
38
|
:type order_id: str
|
39
39
|
:param ret_code: 变更状态码
|
40
|
-
:type ret_code:
|
40
|
+
:type ret_code: float
|
41
41
|
:param ret_msg: 变更信息
|
42
42
|
:type ret_msg: str
|
43
43
|
"""
|
@@ -85,7 +85,7 @@ class ChangeOrderResponse(SdkResponse):
|
|
85
85
|
变更状态码
|
86
86
|
|
87
87
|
:return: The ret_code of this ChangeOrderResponse.
|
88
|
-
:rtype:
|
88
|
+
:rtype: float
|
89
89
|
"""
|
90
90
|
return self._ret_code
|
91
91
|
|
@@ -96,7 +96,7 @@ class ChangeOrderResponse(SdkResponse):
|
|
96
96
|
变更状态码
|
97
97
|
|
98
98
|
:param ret_code: The ret_code of this ChangeOrderResponse.
|
99
|
-
:type ret_code:
|
99
|
+
:type ret_code: float
|
100
100
|
"""
|
101
101
|
self._ret_code = ret_code
|
102
102
|
|
@@ -0,0 +1,286 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ChangeToPeriod:
|
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
|
+
'charging_mode': 'str',
|
21
|
+
'period_type': 'str',
|
22
|
+
'period_num': 'int',
|
23
|
+
'is_auto_renew': 'bool',
|
24
|
+
'is_auto_pay': 'bool',
|
25
|
+
'console_url': 'str',
|
26
|
+
'vault_ids': 'list[str]'
|
27
|
+
}
|
28
|
+
|
29
|
+
attribute_map = {
|
30
|
+
'charging_mode': 'charging_mode',
|
31
|
+
'period_type': 'period_type',
|
32
|
+
'period_num': 'period_num',
|
33
|
+
'is_auto_renew': 'is_auto_renew',
|
34
|
+
'is_auto_pay': 'is_auto_pay',
|
35
|
+
'console_url': 'console_url',
|
36
|
+
'vault_ids': 'vault_ids'
|
37
|
+
}
|
38
|
+
|
39
|
+
def __init__(self, charging_mode=None, period_type=None, period_num=None, is_auto_renew=None, is_auto_pay=None, console_url=None, vault_ids=None):
|
40
|
+
"""ChangeToPeriod
|
41
|
+
|
42
|
+
The model defined in huaweicloud sdk
|
43
|
+
|
44
|
+
:param charging_mode: 付费模式,当前仅可选择:pre_paid
|
45
|
+
:type charging_mode: str
|
46
|
+
:param period_type: 创建类型,按年(year)或者按月(month)
|
47
|
+
:type period_type: str
|
48
|
+
:param period_num: 创建类型的数量,按年或按月的个数
|
49
|
+
:type period_num: int
|
50
|
+
:param is_auto_renew: 到期后是否自动续期,默认不续期
|
51
|
+
:type is_auto_renew: bool
|
52
|
+
:param is_auto_pay: 是否自动付费,默认为不自动付费
|
53
|
+
:type is_auto_pay: bool
|
54
|
+
:param console_url: 跳转URL
|
55
|
+
:type console_url: str
|
56
|
+
:param vault_ids: 资源列表
|
57
|
+
:type vault_ids: list[str]
|
58
|
+
"""
|
59
|
+
|
60
|
+
|
61
|
+
|
62
|
+
self._charging_mode = None
|
63
|
+
self._period_type = None
|
64
|
+
self._period_num = None
|
65
|
+
self._is_auto_renew = None
|
66
|
+
self._is_auto_pay = None
|
67
|
+
self._console_url = None
|
68
|
+
self._vault_ids = None
|
69
|
+
self.discriminator = None
|
70
|
+
|
71
|
+
if charging_mode is not None:
|
72
|
+
self.charging_mode = charging_mode
|
73
|
+
self.period_type = period_type
|
74
|
+
self.period_num = period_num
|
75
|
+
if is_auto_renew is not None:
|
76
|
+
self.is_auto_renew = is_auto_renew
|
77
|
+
if is_auto_pay is not None:
|
78
|
+
self.is_auto_pay = is_auto_pay
|
79
|
+
if console_url is not None:
|
80
|
+
self.console_url = console_url
|
81
|
+
self.vault_ids = vault_ids
|
82
|
+
|
83
|
+
@property
|
84
|
+
def charging_mode(self):
|
85
|
+
"""Gets the charging_mode of this ChangeToPeriod.
|
86
|
+
|
87
|
+
付费模式,当前仅可选择:pre_paid
|
88
|
+
|
89
|
+
:return: The charging_mode of this ChangeToPeriod.
|
90
|
+
:rtype: str
|
91
|
+
"""
|
92
|
+
return self._charging_mode
|
93
|
+
|
94
|
+
@charging_mode.setter
|
95
|
+
def charging_mode(self, charging_mode):
|
96
|
+
"""Sets the charging_mode of this ChangeToPeriod.
|
97
|
+
|
98
|
+
付费模式,当前仅可选择:pre_paid
|
99
|
+
|
100
|
+
:param charging_mode: The charging_mode of this ChangeToPeriod.
|
101
|
+
:type charging_mode: str
|
102
|
+
"""
|
103
|
+
self._charging_mode = charging_mode
|
104
|
+
|
105
|
+
@property
|
106
|
+
def period_type(self):
|
107
|
+
"""Gets the period_type of this ChangeToPeriod.
|
108
|
+
|
109
|
+
创建类型,按年(year)或者按月(month)
|
110
|
+
|
111
|
+
:return: The period_type of this ChangeToPeriod.
|
112
|
+
:rtype: str
|
113
|
+
"""
|
114
|
+
return self._period_type
|
115
|
+
|
116
|
+
@period_type.setter
|
117
|
+
def period_type(self, period_type):
|
118
|
+
"""Sets the period_type of this ChangeToPeriod.
|
119
|
+
|
120
|
+
创建类型,按年(year)或者按月(month)
|
121
|
+
|
122
|
+
:param period_type: The period_type of this ChangeToPeriod.
|
123
|
+
:type period_type: str
|
124
|
+
"""
|
125
|
+
self._period_type = period_type
|
126
|
+
|
127
|
+
@property
|
128
|
+
def period_num(self):
|
129
|
+
"""Gets the period_num of this ChangeToPeriod.
|
130
|
+
|
131
|
+
创建类型的数量,按年或按月的个数
|
132
|
+
|
133
|
+
:return: The period_num of this ChangeToPeriod.
|
134
|
+
:rtype: int
|
135
|
+
"""
|
136
|
+
return self._period_num
|
137
|
+
|
138
|
+
@period_num.setter
|
139
|
+
def period_num(self, period_num):
|
140
|
+
"""Sets the period_num of this ChangeToPeriod.
|
141
|
+
|
142
|
+
创建类型的数量,按年或按月的个数
|
143
|
+
|
144
|
+
:param period_num: The period_num of this ChangeToPeriod.
|
145
|
+
:type period_num: int
|
146
|
+
"""
|
147
|
+
self._period_num = period_num
|
148
|
+
|
149
|
+
@property
|
150
|
+
def is_auto_renew(self):
|
151
|
+
"""Gets the is_auto_renew of this ChangeToPeriod.
|
152
|
+
|
153
|
+
到期后是否自动续期,默认不续期
|
154
|
+
|
155
|
+
:return: The is_auto_renew of this ChangeToPeriod.
|
156
|
+
:rtype: bool
|
157
|
+
"""
|
158
|
+
return self._is_auto_renew
|
159
|
+
|
160
|
+
@is_auto_renew.setter
|
161
|
+
def is_auto_renew(self, is_auto_renew):
|
162
|
+
"""Sets the is_auto_renew of this ChangeToPeriod.
|
163
|
+
|
164
|
+
到期后是否自动续期,默认不续期
|
165
|
+
|
166
|
+
:param is_auto_renew: The is_auto_renew of this ChangeToPeriod.
|
167
|
+
:type is_auto_renew: bool
|
168
|
+
"""
|
169
|
+
self._is_auto_renew = is_auto_renew
|
170
|
+
|
171
|
+
@property
|
172
|
+
def is_auto_pay(self):
|
173
|
+
"""Gets the is_auto_pay of this ChangeToPeriod.
|
174
|
+
|
175
|
+
是否自动付费,默认为不自动付费
|
176
|
+
|
177
|
+
:return: The is_auto_pay of this ChangeToPeriod.
|
178
|
+
:rtype: bool
|
179
|
+
"""
|
180
|
+
return self._is_auto_pay
|
181
|
+
|
182
|
+
@is_auto_pay.setter
|
183
|
+
def is_auto_pay(self, is_auto_pay):
|
184
|
+
"""Sets the is_auto_pay of this ChangeToPeriod.
|
185
|
+
|
186
|
+
是否自动付费,默认为不自动付费
|
187
|
+
|
188
|
+
:param is_auto_pay: The is_auto_pay of this ChangeToPeriod.
|
189
|
+
:type is_auto_pay: bool
|
190
|
+
"""
|
191
|
+
self._is_auto_pay = is_auto_pay
|
192
|
+
|
193
|
+
@property
|
194
|
+
def console_url(self):
|
195
|
+
"""Gets the console_url of this ChangeToPeriod.
|
196
|
+
|
197
|
+
跳转URL
|
198
|
+
|
199
|
+
:return: The console_url of this ChangeToPeriod.
|
200
|
+
:rtype: str
|
201
|
+
"""
|
202
|
+
return self._console_url
|
203
|
+
|
204
|
+
@console_url.setter
|
205
|
+
def console_url(self, console_url):
|
206
|
+
"""Sets the console_url of this ChangeToPeriod.
|
207
|
+
|
208
|
+
跳转URL
|
209
|
+
|
210
|
+
:param console_url: The console_url of this ChangeToPeriod.
|
211
|
+
:type console_url: str
|
212
|
+
"""
|
213
|
+
self._console_url = console_url
|
214
|
+
|
215
|
+
@property
|
216
|
+
def vault_ids(self):
|
217
|
+
"""Gets the vault_ids of this ChangeToPeriod.
|
218
|
+
|
219
|
+
资源列表
|
220
|
+
|
221
|
+
:return: The vault_ids of this ChangeToPeriod.
|
222
|
+
:rtype: list[str]
|
223
|
+
"""
|
224
|
+
return self._vault_ids
|
225
|
+
|
226
|
+
@vault_ids.setter
|
227
|
+
def vault_ids(self, vault_ids):
|
228
|
+
"""Sets the vault_ids of this ChangeToPeriod.
|
229
|
+
|
230
|
+
资源列表
|
231
|
+
|
232
|
+
:param vault_ids: The vault_ids of this ChangeToPeriod.
|
233
|
+
:type vault_ids: list[str]
|
234
|
+
"""
|
235
|
+
self._vault_ids = vault_ids
|
236
|
+
|
237
|
+
def to_dict(self):
|
238
|
+
"""Returns the model properties as a dict"""
|
239
|
+
result = {}
|
240
|
+
|
241
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
242
|
+
value = getattr(self, attr)
|
243
|
+
if isinstance(value, list):
|
244
|
+
result[attr] = list(map(
|
245
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
246
|
+
value
|
247
|
+
))
|
248
|
+
elif hasattr(value, "to_dict"):
|
249
|
+
result[attr] = value.to_dict()
|
250
|
+
elif isinstance(value, dict):
|
251
|
+
result[attr] = dict(map(
|
252
|
+
lambda item: (item[0], item[1].to_dict())
|
253
|
+
if hasattr(item[1], "to_dict") else item,
|
254
|
+
value.items()
|
255
|
+
))
|
256
|
+
else:
|
257
|
+
if attr in self.sensitive_list:
|
258
|
+
result[attr] = "****"
|
259
|
+
else:
|
260
|
+
result[attr] = value
|
261
|
+
|
262
|
+
return result
|
263
|
+
|
264
|
+
def to_str(self):
|
265
|
+
"""Returns the string representation of the model"""
|
266
|
+
import simplejson as json
|
267
|
+
if six.PY2:
|
268
|
+
import sys
|
269
|
+
reload(sys)
|
270
|
+
sys.setdefaultencoding("utf-8")
|
271
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
272
|
+
|
273
|
+
def __repr__(self):
|
274
|
+
"""For `print`"""
|
275
|
+
return self.to_str()
|
276
|
+
|
277
|
+
def __eq__(self, other):
|
278
|
+
"""Returns true if both objects are equal"""
|
279
|
+
if not isinstance(other, ChangeToPeriod):
|
280
|
+
return False
|
281
|
+
|
282
|
+
return self.__dict__ == other.__dict__
|
283
|
+
|
284
|
+
def __ne__(self, other):
|
285
|
+
"""Returns true if both objects are not equal"""
|
286
|
+
return not self == other
|
@@ -0,0 +1,111 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ChangeVaultChargeModeRequest:
|
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
|
+
'body': 'ChangeToPeriod'
|
21
|
+
}
|
22
|
+
|
23
|
+
attribute_map = {
|
24
|
+
'body': 'body'
|
25
|
+
}
|
26
|
+
|
27
|
+
def __init__(self, body=None):
|
28
|
+
"""ChangeVaultChargeModeRequest
|
29
|
+
|
30
|
+
The model defined in huaweicloud sdk
|
31
|
+
|
32
|
+
:param body: Body of the ChangeVaultChargeModeRequest
|
33
|
+
:type body: :class:`huaweicloudsdkcbr.v1.ChangeToPeriod`
|
34
|
+
"""
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
self._body = None
|
39
|
+
self.discriminator = None
|
40
|
+
|
41
|
+
if body is not None:
|
42
|
+
self.body = body
|
43
|
+
|
44
|
+
@property
|
45
|
+
def body(self):
|
46
|
+
"""Gets the body of this ChangeVaultChargeModeRequest.
|
47
|
+
|
48
|
+
:return: The body of this ChangeVaultChargeModeRequest.
|
49
|
+
:rtype: :class:`huaweicloudsdkcbr.v1.ChangeToPeriod`
|
50
|
+
"""
|
51
|
+
return self._body
|
52
|
+
|
53
|
+
@body.setter
|
54
|
+
def body(self, body):
|
55
|
+
"""Sets the body of this ChangeVaultChargeModeRequest.
|
56
|
+
|
57
|
+
:param body: The body of this ChangeVaultChargeModeRequest.
|
58
|
+
:type body: :class:`huaweicloudsdkcbr.v1.ChangeToPeriod`
|
59
|
+
"""
|
60
|
+
self._body = body
|
61
|
+
|
62
|
+
def to_dict(self):
|
63
|
+
"""Returns the model properties as a dict"""
|
64
|
+
result = {}
|
65
|
+
|
66
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
67
|
+
value = getattr(self, attr)
|
68
|
+
if isinstance(value, list):
|
69
|
+
result[attr] = list(map(
|
70
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
71
|
+
value
|
72
|
+
))
|
73
|
+
elif hasattr(value, "to_dict"):
|
74
|
+
result[attr] = value.to_dict()
|
75
|
+
elif isinstance(value, dict):
|
76
|
+
result[attr] = dict(map(
|
77
|
+
lambda item: (item[0], item[1].to_dict())
|
78
|
+
if hasattr(item[1], "to_dict") else item,
|
79
|
+
value.items()
|
80
|
+
))
|
81
|
+
else:
|
82
|
+
if attr in self.sensitive_list:
|
83
|
+
result[attr] = "****"
|
84
|
+
else:
|
85
|
+
result[attr] = value
|
86
|
+
|
87
|
+
return result
|
88
|
+
|
89
|
+
def to_str(self):
|
90
|
+
"""Returns the string representation of the model"""
|
91
|
+
import simplejson as json
|
92
|
+
if six.PY2:
|
93
|
+
import sys
|
94
|
+
reload(sys)
|
95
|
+
sys.setdefaultencoding("utf-8")
|
96
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
97
|
+
|
98
|
+
def __repr__(self):
|
99
|
+
"""For `print`"""
|
100
|
+
return self.to_str()
|
101
|
+
|
102
|
+
def __eq__(self, other):
|
103
|
+
"""Returns true if both objects are equal"""
|
104
|
+
if not isinstance(other, ChangeVaultChargeModeRequest):
|
105
|
+
return False
|
106
|
+
|
107
|
+
return self.__dict__ == other.__dict__
|
108
|
+
|
109
|
+
def __ne__(self, other):
|
110
|
+
"""Returns true if both objects are not equal"""
|
111
|
+
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 ChangeVaultChargeModeResponse(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
|
+
'order_id': 'str',
|
22
|
+
'ret_code': 'float',
|
23
|
+
'ret_msg': 'str'
|
24
|
+
}
|
25
|
+
|
26
|
+
attribute_map = {
|
27
|
+
'order_id': 'orderId',
|
28
|
+
'ret_code': 'retCode',
|
29
|
+
'ret_msg': 'retMsg'
|
30
|
+
}
|
31
|
+
|
32
|
+
def __init__(self, order_id=None, ret_code=None, ret_msg=None):
|
33
|
+
"""ChangeVaultChargeModeResponse
|
34
|
+
|
35
|
+
The model defined in huaweicloud sdk
|
36
|
+
|
37
|
+
:param order_id: 订单ID
|
38
|
+
:type order_id: str
|
39
|
+
:param ret_code: 变更状态码
|
40
|
+
:type ret_code: float
|
41
|
+
:param ret_msg: 变更信息
|
42
|
+
:type ret_msg: str
|
43
|
+
"""
|
44
|
+
|
45
|
+
super(ChangeVaultChargeModeResponse, self).__init__()
|
46
|
+
|
47
|
+
self._order_id = None
|
48
|
+
self._ret_code = None
|
49
|
+
self._ret_msg = None
|
50
|
+
self.discriminator = None
|
51
|
+
|
52
|
+
if order_id is not None:
|
53
|
+
self.order_id = order_id
|
54
|
+
if ret_code is not None:
|
55
|
+
self.ret_code = ret_code
|
56
|
+
if ret_msg is not None:
|
57
|
+
self.ret_msg = ret_msg
|
58
|
+
|
59
|
+
@property
|
60
|
+
def order_id(self):
|
61
|
+
"""Gets the order_id of this ChangeVaultChargeModeResponse.
|
62
|
+
|
63
|
+
订单ID
|
64
|
+
|
65
|
+
:return: The order_id of this ChangeVaultChargeModeResponse.
|
66
|
+
:rtype: str
|
67
|
+
"""
|
68
|
+
return self._order_id
|
69
|
+
|
70
|
+
@order_id.setter
|
71
|
+
def order_id(self, order_id):
|
72
|
+
"""Sets the order_id of this ChangeVaultChargeModeResponse.
|
73
|
+
|
74
|
+
订单ID
|
75
|
+
|
76
|
+
:param order_id: The order_id of this ChangeVaultChargeModeResponse.
|
77
|
+
:type order_id: str
|
78
|
+
"""
|
79
|
+
self._order_id = order_id
|
80
|
+
|
81
|
+
@property
|
82
|
+
def ret_code(self):
|
83
|
+
"""Gets the ret_code of this ChangeVaultChargeModeResponse.
|
84
|
+
|
85
|
+
变更状态码
|
86
|
+
|
87
|
+
:return: The ret_code of this ChangeVaultChargeModeResponse.
|
88
|
+
:rtype: float
|
89
|
+
"""
|
90
|
+
return self._ret_code
|
91
|
+
|
92
|
+
@ret_code.setter
|
93
|
+
def ret_code(self, ret_code):
|
94
|
+
"""Sets the ret_code of this ChangeVaultChargeModeResponse.
|
95
|
+
|
96
|
+
变更状态码
|
97
|
+
|
98
|
+
:param ret_code: The ret_code of this ChangeVaultChargeModeResponse.
|
99
|
+
:type ret_code: float
|
100
|
+
"""
|
101
|
+
self._ret_code = ret_code
|
102
|
+
|
103
|
+
@property
|
104
|
+
def ret_msg(self):
|
105
|
+
"""Gets the ret_msg of this ChangeVaultChargeModeResponse.
|
106
|
+
|
107
|
+
变更信息
|
108
|
+
|
109
|
+
:return: The ret_msg of this ChangeVaultChargeModeResponse.
|
110
|
+
:rtype: str
|
111
|
+
"""
|
112
|
+
return self._ret_msg
|
113
|
+
|
114
|
+
@ret_msg.setter
|
115
|
+
def ret_msg(self, ret_msg):
|
116
|
+
"""Sets the ret_msg of this ChangeVaultChargeModeResponse.
|
117
|
+
|
118
|
+
变更信息
|
119
|
+
|
120
|
+
:param ret_msg: The ret_msg of this ChangeVaultChargeModeResponse.
|
121
|
+
:type ret_msg: str
|
122
|
+
"""
|
123
|
+
self._ret_msg = ret_msg
|
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, ChangeVaultChargeModeResponse):
|
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
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: huaweicloudsdkcbr
|
3
|
-
Version: 3.1.
|
3
|
+
Version: 3.1.141
|
4
4
|
Summary: CBR
|
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.141
|
26
26
|
|
27
27
|
See detailed information in [huaweicloud-sdk-python-v3](https://github.com/huaweicloud/huaweicloud-sdk-python-v3).
|
@@ -1,8 +1,8 @@
|
|
1
1
|
huaweicloudsdkcbr/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
2
|
-
huaweicloudsdkcbr/v1/__init__.py,sha256=
|
3
|
-
huaweicloudsdkcbr/v1/cbr_async_client.py,sha256=
|
4
|
-
huaweicloudsdkcbr/v1/cbr_client.py,sha256=
|
5
|
-
huaweicloudsdkcbr/v1/model/__init__.py,sha256=
|
2
|
+
huaweicloudsdkcbr/v1/__init__.py,sha256=l4zx8jZ7WXjM8vfjnEW0qcyfc8ERMbjeQTnuyKFh-kw,22731
|
3
|
+
huaweicloudsdkcbr/v1/cbr_async_client.py,sha256=Hm3ABCItfWy4W5zhEzdCxKMmWq3IWBNXmKeB_kM7ePE,163817
|
4
|
+
huaweicloudsdkcbr/v1/cbr_client.py,sha256=yazTLzF1Iv193hkWiPnlNcvoqVUZH_wZMFOq_C-Zfbc,163854
|
5
|
+
huaweicloudsdkcbr/v1/model/__init__.py,sha256=LuMVz9oKAN8Si9bpfz8NlIfh6jdWTrBZAMaAeUKacOE,22645
|
6
6
|
huaweicloudsdkcbr/v1/model/add_agent_path_request.py,sha256=Pr6eVCOzpjgWgqLZJnd9WH0Pbb0K6dgT5pMAFz5XkF4,3814
|
7
7
|
huaweicloudsdkcbr/v1/model/add_agent_path_response.py,sha256=2MBTKerhkmxm5MlDsxbXDb8bfaa3iKH6jV18nEkQiz0,4012
|
8
8
|
huaweicloudsdkcbr/v1/model/add_member_request.py,sha256=ayiU4_SQPeMyXLpWT9p8DC7uWXgjc6--sGJD-MLyjs8,3801
|
@@ -48,7 +48,10 @@ huaweicloudsdkcbr/v1/model/cbc_product_info_order_change.py,sha256=1KH4RLoo0nzIL
|
|
48
48
|
huaweicloudsdkcbr/v1/model/cbc_product_info_update.py,sha256=UhzENH3qvbYu6hI89qsN1SM0lm3eb_BILvDKqoi4u4c,7263
|
49
49
|
huaweicloudsdkcbr/v1/model/cbc_update.py,sha256=QOsdi2aVWUS62TMkmi3ADDZtmleOd73kYHAlcD_hulc,6194
|
50
50
|
huaweicloudsdkcbr/v1/model/change_order_request.py,sha256=0X1EUMms7OSuB8_z6Bo60rhQNqDtxCVI_NkRQ0zqZIQ,3083
|
51
|
-
huaweicloudsdkcbr/v1/model/change_order_response.py,sha256=
|
51
|
+
huaweicloudsdkcbr/v1/model/change_order_response.py,sha256=_mtNJ3a5mV16w0usH7-1vEPSrvDgQv2jvw3mcCV6XpE,4683
|
52
|
+
huaweicloudsdkcbr/v1/model/change_to_period.py,sha256=6LANzd_ZCzuGrvZuL0yq-lghlH5HeXf6KOFI3U27aIM,8389
|
53
|
+
huaweicloudsdkcbr/v1/model/change_vault_charge_mode_request.py,sha256=YaGN-47Zz07D5z0JoAEYqz2f6reCNAe8IzCLMi2of_k,3163
|
54
|
+
huaweicloudsdkcbr/v1/model/change_vault_charge_mode_response.py,sha256=uBTMUBo-5ovoK_mObFLR23xAtOU2cxC0uLJsrpyVmT0,4843
|
52
55
|
huaweicloudsdkcbr/v1/model/check_agent_request.py,sha256=Gq3IsO3FDPO-9xA6XsGz4ru2lK2WyD1mzLvx7YX0DUA,3095
|
53
56
|
huaweicloudsdkcbr/v1/model/check_agent_response.py,sha256=UqLW7LC4FSInM5yc0Fyx0ZvZ2iBviQxUdlansW5hRr0,3460
|
54
57
|
huaweicloudsdkcbr/v1/model/checkpoint_create.py,sha256=t1qXee0JgvV2mDn0LYGo4elHsCFBjWAPPyod-cxxyU8,7019
|
@@ -275,8 +278,8 @@ huaweicloudsdkcbr/v1/model/vault_update.py,sha256=rBtHY8Eyhy4eA0YKS_j7KmXSaMFxtr
|
|
275
278
|
huaweicloudsdkcbr/v1/model/vault_update_req.py,sha256=16TbM9KJfcVqSWj6PIqExydBn_Uy2P0wmqcV44Uzz4E,3002
|
276
279
|
huaweicloudsdkcbr/v1/region/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
277
280
|
huaweicloudsdkcbr/v1/region/cbr_region.py,sha256=BpX3n96Hpb4iLRKxK5klc-fzr2rkZ6JaArUCMIXoIXE,5446
|
278
|
-
huaweicloudsdkcbr-3.1.
|
279
|
-
huaweicloudsdkcbr-3.1.
|
280
|
-
huaweicloudsdkcbr-3.1.
|
281
|
-
huaweicloudsdkcbr-3.1.
|
282
|
-
huaweicloudsdkcbr-3.1.
|
281
|
+
huaweicloudsdkcbr-3.1.141.dist-info/LICENSE,sha256=4_VSTLuxcsybRG9N4Isktlj1rAIBBsfl0Tjc0gBTijo,604
|
282
|
+
huaweicloudsdkcbr-3.1.141.dist-info/METADATA,sha256=cXys2JCeTWbEL2GoEgf6saWLZs1dzsqmpZiPBpwB_6c,1135
|
283
|
+
huaweicloudsdkcbr-3.1.141.dist-info/WHEEL,sha256=Kh9pAotZVRFj97E15yTA4iADqXdQfIVTHcNaZTjxeGM,110
|
284
|
+
huaweicloudsdkcbr-3.1.141.dist-info/top_level.txt,sha256=CpXxi0Z24SDOTA3ZE_lGTbpC87AzndcF4s7WiMxpY0w,18
|
285
|
+
huaweicloudsdkcbr-3.1.141.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|