huaweicloudsdkcbr 3.1.86__py2.py3-none-any.whl → 3.1.132__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- huaweicloudsdkcbr/v1/__init__.py +23 -0
- huaweicloudsdkcbr/v1/cbr_async_client.py +464 -2
- huaweicloudsdkcbr/v1/cbr_client.py +464 -2
- huaweicloudsdkcbr/v1/model/__init__.py +23 -0
- huaweicloudsdkcbr/v1/model/add_members_req.py +34 -4
- huaweicloudsdkcbr/v1/model/agent_add_path_req.py +32 -3
- huaweicloudsdkcbr/v1/model/backup_extend_info.py +1 -30
- huaweicloudsdkcbr/v1/model/backup_resp.py +73 -15
- huaweicloudsdkcbr/v1/model/backup_restore_server_mapping.py +3 -3
- huaweicloudsdkcbr/v1/model/cbc_order_change.py +225 -0
- huaweicloudsdkcbr/v1/model/cbc_product_info_order_change.py +199 -0
- huaweicloudsdkcbr/v1/model/cbc_product_info_update.py +3 -3
- huaweicloudsdkcbr/v1/model/change_order_request.py +111 -0
- huaweicloudsdkcbr/v1/model/change_order_response.py +174 -0
- huaweicloudsdkcbr/v1/model/create_organization_policy_request.py +111 -0
- huaweicloudsdkcbr/v1/model/create_organization_policy_response.py +112 -0
- huaweicloudsdkcbr/v1/model/delete_organization_policy_request.py +114 -0
- huaweicloudsdkcbr/v1/model/delete_organization_policy_response.py +85 -0
- huaweicloudsdkcbr/v1/model/exclude_path.py +144 -0
- huaweicloudsdkcbr/v1/model/list_external_vault_response.py +3 -32
- huaweicloudsdkcbr/v1/model/list_organization_policies_request.py +172 -0
- huaweicloudsdkcbr/v1/model/list_organization_policies_response.py +203 -0
- huaweicloudsdkcbr/v1/model/list_organization_policy_detail_request.py +114 -0
- huaweicloudsdkcbr/v1/model/list_organization_policy_detail_response.py +203 -0
- huaweicloudsdkcbr/v1/model/list_vault_request.py +3 -3
- huaweicloudsdkcbr/v1/model/list_vault_response.py +3 -32
- huaweicloudsdkcbr/v1/model/organization_policy.py +388 -0
- huaweicloudsdkcbr/v1/model/organization_policy_create.py +275 -0
- huaweicloudsdkcbr/v1/model/organization_policy_create_req.py +110 -0
- huaweicloudsdkcbr/v1/model/organization_policy_status.py +198 -0
- huaweicloudsdkcbr/v1/model/organization_policy_update.py +252 -0
- huaweicloudsdkcbr/v1/model/organization_policy_update_req.py +110 -0
- huaweicloudsdkcbr/v1/model/path.py +32 -3
- huaweicloudsdkcbr/v1/model/policy_trigger_properties_req.py +3 -3
- huaweicloudsdkcbr/v1/model/show_organization_policy_request.py +114 -0
- huaweicloudsdkcbr/v1/model/show_organization_policy_response.py +112 -0
- huaweicloudsdkcbr/v1/model/update_organization_policy_request.py +139 -0
- huaweicloudsdkcbr/v1/model/update_organization_policy_response.py +112 -0
- huaweicloudsdkcbr/v1/model/vault.py +32 -3
- huaweicloudsdkcbr/v1/model/vault_create.py +61 -3
- huaweicloudsdkcbr/v1/model/vault_create_resource.py +32 -3
- huaweicloudsdkcbr/v1/model/vault_get.py +30 -1
- huaweicloudsdkcbr/v1/model/vault_order.py +32 -3
- huaweicloudsdkcbr/v1/model/vault_update.py +32 -3
- huaweicloudsdkcbr/v1/region/cbr_region.py +3 -0
- {huaweicloudsdkcbr-3.1.86.dist-info → huaweicloudsdkcbr-3.1.132.dist-info}/METADATA +2 -2
- {huaweicloudsdkcbr-3.1.86.dist-info → huaweicloudsdkcbr-3.1.132.dist-info}/RECORD +50 -27
- {huaweicloudsdkcbr-3.1.86.dist-info → huaweicloudsdkcbr-3.1.132.dist-info}/WHEEL +1 -1
- {huaweicloudsdkcbr-3.1.86.dist-info → huaweicloudsdkcbr-3.1.132.dist-info}/LICENSE +0 -0
- {huaweicloudsdkcbr-3.1.86.dist-info → huaweicloudsdkcbr-3.1.132.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,199 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class CbcProductInfoOrderChange:
|
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
|
+
'product_id': 'str',
|
21
|
+
'resource_size': 'int',
|
22
|
+
'resource_size_measure_id': 'int',
|
23
|
+
'resource_spec_code': 'str'
|
24
|
+
}
|
25
|
+
|
26
|
+
attribute_map = {
|
27
|
+
'product_id': 'product_id',
|
28
|
+
'resource_size': 'resource_size',
|
29
|
+
'resource_size_measure_id': 'resource_size_measure_id',
|
30
|
+
'resource_spec_code': 'resource_spec_code'
|
31
|
+
}
|
32
|
+
|
33
|
+
def __init__(self, product_id=None, resource_size=None, resource_size_measure_id=None, resource_spec_code=None):
|
34
|
+
"""CbcProductInfoOrderChange
|
35
|
+
|
36
|
+
The model defined in huaweicloud sdk
|
37
|
+
|
38
|
+
:param product_id: 产品标识,通过订购询价接口获得,长度限制:1-64,只能由字母、数字、“_”、“-”组成。
|
39
|
+
:type product_id: str
|
40
|
+
:param resource_size: 资源容量大小,取值范围:10-10485760
|
41
|
+
:type resource_size: int
|
42
|
+
:param resource_size_measure_id: 资源容量度量标识,枚举值17:GB
|
43
|
+
:type resource_size_measure_id: int
|
44
|
+
:param resource_spec_code: 用户购买云服务产品的资源规格 Enum: [vault.backup.server.normal,vault.backup.turbo.normal, vault.backup.database.normal,vault.backup.volume.normal,vault.backup.rds.normal,vault.replication.server.normal,vault.hybrid.server.normal]
|
45
|
+
:type resource_spec_code: str
|
46
|
+
"""
|
47
|
+
|
48
|
+
|
49
|
+
|
50
|
+
self._product_id = None
|
51
|
+
self._resource_size = None
|
52
|
+
self._resource_size_measure_id = None
|
53
|
+
self._resource_spec_code = None
|
54
|
+
self.discriminator = None
|
55
|
+
|
56
|
+
self.product_id = product_id
|
57
|
+
self.resource_size = resource_size
|
58
|
+
if resource_size_measure_id is not None:
|
59
|
+
self.resource_size_measure_id = resource_size_measure_id
|
60
|
+
self.resource_spec_code = resource_spec_code
|
61
|
+
|
62
|
+
@property
|
63
|
+
def product_id(self):
|
64
|
+
"""Gets the product_id of this CbcProductInfoOrderChange.
|
65
|
+
|
66
|
+
产品标识,通过订购询价接口获得,长度限制:1-64,只能由字母、数字、“_”、“-”组成。
|
67
|
+
|
68
|
+
:return: The product_id of this CbcProductInfoOrderChange.
|
69
|
+
:rtype: str
|
70
|
+
"""
|
71
|
+
return self._product_id
|
72
|
+
|
73
|
+
@product_id.setter
|
74
|
+
def product_id(self, product_id):
|
75
|
+
"""Sets the product_id of this CbcProductInfoOrderChange.
|
76
|
+
|
77
|
+
产品标识,通过订购询价接口获得,长度限制:1-64,只能由字母、数字、“_”、“-”组成。
|
78
|
+
|
79
|
+
:param product_id: The product_id of this CbcProductInfoOrderChange.
|
80
|
+
:type product_id: str
|
81
|
+
"""
|
82
|
+
self._product_id = product_id
|
83
|
+
|
84
|
+
@property
|
85
|
+
def resource_size(self):
|
86
|
+
"""Gets the resource_size of this CbcProductInfoOrderChange.
|
87
|
+
|
88
|
+
资源容量大小,取值范围:10-10485760
|
89
|
+
|
90
|
+
:return: The resource_size of this CbcProductInfoOrderChange.
|
91
|
+
:rtype: int
|
92
|
+
"""
|
93
|
+
return self._resource_size
|
94
|
+
|
95
|
+
@resource_size.setter
|
96
|
+
def resource_size(self, resource_size):
|
97
|
+
"""Sets the resource_size of this CbcProductInfoOrderChange.
|
98
|
+
|
99
|
+
资源容量大小,取值范围:10-10485760
|
100
|
+
|
101
|
+
:param resource_size: The resource_size of this CbcProductInfoOrderChange.
|
102
|
+
:type resource_size: int
|
103
|
+
"""
|
104
|
+
self._resource_size = resource_size
|
105
|
+
|
106
|
+
@property
|
107
|
+
def resource_size_measure_id(self):
|
108
|
+
"""Gets the resource_size_measure_id of this CbcProductInfoOrderChange.
|
109
|
+
|
110
|
+
资源容量度量标识,枚举值17:GB
|
111
|
+
|
112
|
+
:return: The resource_size_measure_id of this CbcProductInfoOrderChange.
|
113
|
+
:rtype: int
|
114
|
+
"""
|
115
|
+
return self._resource_size_measure_id
|
116
|
+
|
117
|
+
@resource_size_measure_id.setter
|
118
|
+
def resource_size_measure_id(self, resource_size_measure_id):
|
119
|
+
"""Sets the resource_size_measure_id of this CbcProductInfoOrderChange.
|
120
|
+
|
121
|
+
资源容量度量标识,枚举值17:GB
|
122
|
+
|
123
|
+
:param resource_size_measure_id: The resource_size_measure_id of this CbcProductInfoOrderChange.
|
124
|
+
:type resource_size_measure_id: int
|
125
|
+
"""
|
126
|
+
self._resource_size_measure_id = resource_size_measure_id
|
127
|
+
|
128
|
+
@property
|
129
|
+
def resource_spec_code(self):
|
130
|
+
"""Gets the resource_spec_code of this CbcProductInfoOrderChange.
|
131
|
+
|
132
|
+
用户购买云服务产品的资源规格 Enum: [vault.backup.server.normal,vault.backup.turbo.normal, vault.backup.database.normal,vault.backup.volume.normal,vault.backup.rds.normal,vault.replication.server.normal,vault.hybrid.server.normal]
|
133
|
+
|
134
|
+
:return: The resource_spec_code of this CbcProductInfoOrderChange.
|
135
|
+
:rtype: str
|
136
|
+
"""
|
137
|
+
return self._resource_spec_code
|
138
|
+
|
139
|
+
@resource_spec_code.setter
|
140
|
+
def resource_spec_code(self, resource_spec_code):
|
141
|
+
"""Sets the resource_spec_code of this CbcProductInfoOrderChange.
|
142
|
+
|
143
|
+
用户购买云服务产品的资源规格 Enum: [vault.backup.server.normal,vault.backup.turbo.normal, vault.backup.database.normal,vault.backup.volume.normal,vault.backup.rds.normal,vault.replication.server.normal,vault.hybrid.server.normal]
|
144
|
+
|
145
|
+
:param resource_spec_code: The resource_spec_code of this CbcProductInfoOrderChange.
|
146
|
+
:type resource_spec_code: str
|
147
|
+
"""
|
148
|
+
self._resource_spec_code = resource_spec_code
|
149
|
+
|
150
|
+
def to_dict(self):
|
151
|
+
"""Returns the model properties as a dict"""
|
152
|
+
result = {}
|
153
|
+
|
154
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
155
|
+
value = getattr(self, attr)
|
156
|
+
if isinstance(value, list):
|
157
|
+
result[attr] = list(map(
|
158
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
159
|
+
value
|
160
|
+
))
|
161
|
+
elif hasattr(value, "to_dict"):
|
162
|
+
result[attr] = value.to_dict()
|
163
|
+
elif isinstance(value, dict):
|
164
|
+
result[attr] = dict(map(
|
165
|
+
lambda item: (item[0], item[1].to_dict())
|
166
|
+
if hasattr(item[1], "to_dict") else item,
|
167
|
+
value.items()
|
168
|
+
))
|
169
|
+
else:
|
170
|
+
if attr in self.sensitive_list:
|
171
|
+
result[attr] = "****"
|
172
|
+
else:
|
173
|
+
result[attr] = value
|
174
|
+
|
175
|
+
return result
|
176
|
+
|
177
|
+
def to_str(self):
|
178
|
+
"""Returns the string representation of the model"""
|
179
|
+
import simplejson as json
|
180
|
+
if six.PY2:
|
181
|
+
import sys
|
182
|
+
reload(sys)
|
183
|
+
sys.setdefaultencoding("utf-8")
|
184
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
185
|
+
|
186
|
+
def __repr__(self):
|
187
|
+
"""For `print`"""
|
188
|
+
return self.to_str()
|
189
|
+
|
190
|
+
def __eq__(self, other):
|
191
|
+
"""Returns true if both objects are equal"""
|
192
|
+
if not isinstance(other, CbcProductInfoOrderChange):
|
193
|
+
return False
|
194
|
+
|
195
|
+
return self.__dict__ == other.__dict__
|
196
|
+
|
197
|
+
def __ne__(self, other):
|
198
|
+
"""Returns true if both objects are not equal"""
|
199
|
+
return not self == other
|
@@ -41,7 +41,7 @@ class CbcProductInfoUpdate:
|
|
41
41
|
:type resource_size: int
|
42
42
|
:param resource_size_measure_id: 资源容量度量标识,枚举值17:GB
|
43
43
|
:type resource_size_measure_id: int
|
44
|
-
:param resource_spec_code: 用户购买云服务产品的资源规格 Enum:
|
44
|
+
:param resource_spec_code: 用户购买云服务产品的资源规格 Enum: - vault.backup.server.normal - vault.backup.turbo.normal - vault.backup.database.normal - vault.backup.volume.normal - vault.backup.rds.normal - vault.replication.server.normal - vault.hybrid.server.normal
|
45
45
|
:type resource_spec_code: str
|
46
46
|
"""
|
47
47
|
|
@@ -129,7 +129,7 @@ class CbcProductInfoUpdate:
|
|
129
129
|
def resource_spec_code(self):
|
130
130
|
"""Gets the resource_spec_code of this CbcProductInfoUpdate.
|
131
131
|
|
132
|
-
用户购买云服务产品的资源规格 Enum:
|
132
|
+
用户购买云服务产品的资源规格 Enum: - vault.backup.server.normal - vault.backup.turbo.normal - vault.backup.database.normal - vault.backup.volume.normal - vault.backup.rds.normal - vault.replication.server.normal - vault.hybrid.server.normal
|
133
133
|
|
134
134
|
:return: The resource_spec_code of this CbcProductInfoUpdate.
|
135
135
|
:rtype: str
|
@@ -140,7 +140,7 @@ class CbcProductInfoUpdate:
|
|
140
140
|
def resource_spec_code(self, resource_spec_code):
|
141
141
|
"""Sets the resource_spec_code of this CbcProductInfoUpdate.
|
142
142
|
|
143
|
-
用户购买云服务产品的资源规格 Enum:
|
143
|
+
用户购买云服务产品的资源规格 Enum: - vault.backup.server.normal - vault.backup.turbo.normal - vault.backup.database.normal - vault.backup.volume.normal - vault.backup.rds.normal - vault.replication.server.normal - vault.hybrid.server.normal
|
144
144
|
|
145
145
|
:param resource_spec_code: The resource_spec_code of this CbcProductInfoUpdate.
|
146
146
|
:type resource_spec_code: str
|
@@ -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 ChangeOrderRequest:
|
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': 'CbcOrderChange'
|
21
|
+
}
|
22
|
+
|
23
|
+
attribute_map = {
|
24
|
+
'body': 'body'
|
25
|
+
}
|
26
|
+
|
27
|
+
def __init__(self, body=None):
|
28
|
+
"""ChangeOrderRequest
|
29
|
+
|
30
|
+
The model defined in huaweicloud sdk
|
31
|
+
|
32
|
+
:param body: Body of the ChangeOrderRequest
|
33
|
+
:type body: :class:`huaweicloudsdkcbr.v1.CbcOrderChange`
|
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 ChangeOrderRequest.
|
47
|
+
|
48
|
+
:return: The body of this ChangeOrderRequest.
|
49
|
+
:rtype: :class:`huaweicloudsdkcbr.v1.CbcOrderChange`
|
50
|
+
"""
|
51
|
+
return self._body
|
52
|
+
|
53
|
+
@body.setter
|
54
|
+
def body(self, body):
|
55
|
+
"""Sets the body of this ChangeOrderRequest.
|
56
|
+
|
57
|
+
:param body: The body of this ChangeOrderRequest.
|
58
|
+
:type body: :class:`huaweicloudsdkcbr.v1.CbcOrderChange`
|
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, ChangeOrderRequest):
|
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 ChangeOrderResponse(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': 'str',
|
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
|
+
"""ChangeOrderResponse
|
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: str
|
41
|
+
:param ret_msg: 变更信息
|
42
|
+
:type ret_msg: str
|
43
|
+
"""
|
44
|
+
|
45
|
+
super(ChangeOrderResponse, 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 ChangeOrderResponse.
|
62
|
+
|
63
|
+
订单ID
|
64
|
+
|
65
|
+
:return: The order_id of this ChangeOrderResponse.
|
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 ChangeOrderResponse.
|
73
|
+
|
74
|
+
订单ID
|
75
|
+
|
76
|
+
:param order_id: The order_id of this ChangeOrderResponse.
|
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 ChangeOrderResponse.
|
84
|
+
|
85
|
+
变更状态码
|
86
|
+
|
87
|
+
:return: The ret_code of this ChangeOrderResponse.
|
88
|
+
:rtype: str
|
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 ChangeOrderResponse.
|
95
|
+
|
96
|
+
变更状态码
|
97
|
+
|
98
|
+
:param ret_code: The ret_code of this ChangeOrderResponse.
|
99
|
+
:type ret_code: str
|
100
|
+
"""
|
101
|
+
self._ret_code = ret_code
|
102
|
+
|
103
|
+
@property
|
104
|
+
def ret_msg(self):
|
105
|
+
"""Gets the ret_msg of this ChangeOrderResponse.
|
106
|
+
|
107
|
+
变更信息
|
108
|
+
|
109
|
+
:return: The ret_msg of this ChangeOrderResponse.
|
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 ChangeOrderResponse.
|
117
|
+
|
118
|
+
变更信息
|
119
|
+
|
120
|
+
:param ret_msg: The ret_msg of this ChangeOrderResponse.
|
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, ChangeOrderResponse):
|
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,111 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class CreateOrganizationPolicyRequest:
|
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': 'OrganizationPolicyCreateReq'
|
21
|
+
}
|
22
|
+
|
23
|
+
attribute_map = {
|
24
|
+
'body': 'body'
|
25
|
+
}
|
26
|
+
|
27
|
+
def __init__(self, body=None):
|
28
|
+
"""CreateOrganizationPolicyRequest
|
29
|
+
|
30
|
+
The model defined in huaweicloud sdk
|
31
|
+
|
32
|
+
:param body: Body of the CreateOrganizationPolicyRequest
|
33
|
+
:type body: :class:`huaweicloudsdkcbr.v1.OrganizationPolicyCreateReq`
|
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 CreateOrganizationPolicyRequest.
|
47
|
+
|
48
|
+
:return: The body of this CreateOrganizationPolicyRequest.
|
49
|
+
:rtype: :class:`huaweicloudsdkcbr.v1.OrganizationPolicyCreateReq`
|
50
|
+
"""
|
51
|
+
return self._body
|
52
|
+
|
53
|
+
@body.setter
|
54
|
+
def body(self, body):
|
55
|
+
"""Sets the body of this CreateOrganizationPolicyRequest.
|
56
|
+
|
57
|
+
:param body: The body of this CreateOrganizationPolicyRequest.
|
58
|
+
:type body: :class:`huaweicloudsdkcbr.v1.OrganizationPolicyCreateReq`
|
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, CreateOrganizationPolicyRequest):
|
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
|