huaweicloudsdkcbr 3.1.123__py2.py3-none-any.whl → 3.1.125__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.
@@ -0,0 +1,225 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class CbcOrderChange:
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
+ 'cloud_service_console_url': 'str',
21
+ 'product_info': 'CbcProductInfoOrderChange',
22
+ 'resource_id': 'str',
23
+ 'is_auto_pay': 'bool',
24
+ 'promotion_info': 'str'
25
+ }
26
+
27
+ attribute_map = {
28
+ 'cloud_service_console_url': 'cloud_service_console_url',
29
+ 'product_info': 'product_info',
30
+ 'resource_id': 'resource_id',
31
+ 'is_auto_pay': 'is_auto_pay',
32
+ 'promotion_info': 'promotion_info'
33
+ }
34
+
35
+ def __init__(self, cloud_service_console_url=None, product_info=None, resource_id=None, is_auto_pay=None, promotion_info=None):
36
+ """CbcOrderChange
37
+
38
+ The model defined in huaweicloud sdk
39
+
40
+ :param cloud_service_console_url: 云服务ConsoleURL。订单支付完成后,客户可以通过此URL跳转到云服务Console页面查看信息
41
+ :type cloud_service_console_url: str
42
+ :param product_info:
43
+ :type product_info: :class:`huaweicloudsdkcbr.v1.CbcProductInfoOrderChange`
44
+ :param resource_id: 待变更的资源ID
45
+ :type resource_id: str
46
+ :param is_auto_pay: 是否自动支付,默认非自动支付:false
47
+ :type is_auto_pay: bool
48
+ :param promotion_info: 购买折扣
49
+ :type promotion_info: str
50
+ """
51
+
52
+
53
+
54
+ self._cloud_service_console_url = None
55
+ self._product_info = None
56
+ self._resource_id = None
57
+ self._is_auto_pay = None
58
+ self._promotion_info = None
59
+ self.discriminator = None
60
+
61
+ if cloud_service_console_url is not None:
62
+ self.cloud_service_console_url = cloud_service_console_url
63
+ self.product_info = product_info
64
+ self.resource_id = resource_id
65
+ if is_auto_pay is not None:
66
+ self.is_auto_pay = is_auto_pay
67
+ if promotion_info is not None:
68
+ self.promotion_info = promotion_info
69
+
70
+ @property
71
+ def cloud_service_console_url(self):
72
+ """Gets the cloud_service_console_url of this CbcOrderChange.
73
+
74
+ 云服务ConsoleURL。订单支付完成后,客户可以通过此URL跳转到云服务Console页面查看信息
75
+
76
+ :return: The cloud_service_console_url of this CbcOrderChange.
77
+ :rtype: str
78
+ """
79
+ return self._cloud_service_console_url
80
+
81
+ @cloud_service_console_url.setter
82
+ def cloud_service_console_url(self, cloud_service_console_url):
83
+ """Sets the cloud_service_console_url of this CbcOrderChange.
84
+
85
+ 云服务ConsoleURL。订单支付完成后,客户可以通过此URL跳转到云服务Console页面查看信息
86
+
87
+ :param cloud_service_console_url: The cloud_service_console_url of this CbcOrderChange.
88
+ :type cloud_service_console_url: str
89
+ """
90
+ self._cloud_service_console_url = cloud_service_console_url
91
+
92
+ @property
93
+ def product_info(self):
94
+ """Gets the product_info of this CbcOrderChange.
95
+
96
+ :return: The product_info of this CbcOrderChange.
97
+ :rtype: :class:`huaweicloudsdkcbr.v1.CbcProductInfoOrderChange`
98
+ """
99
+ return self._product_info
100
+
101
+ @product_info.setter
102
+ def product_info(self, product_info):
103
+ """Sets the product_info of this CbcOrderChange.
104
+
105
+ :param product_info: The product_info of this CbcOrderChange.
106
+ :type product_info: :class:`huaweicloudsdkcbr.v1.CbcProductInfoOrderChange`
107
+ """
108
+ self._product_info = product_info
109
+
110
+ @property
111
+ def resource_id(self):
112
+ """Gets the resource_id of this CbcOrderChange.
113
+
114
+ 待变更的资源ID
115
+
116
+ :return: The resource_id of this CbcOrderChange.
117
+ :rtype: str
118
+ """
119
+ return self._resource_id
120
+
121
+ @resource_id.setter
122
+ def resource_id(self, resource_id):
123
+ """Sets the resource_id of this CbcOrderChange.
124
+
125
+ 待变更的资源ID
126
+
127
+ :param resource_id: The resource_id of this CbcOrderChange.
128
+ :type resource_id: str
129
+ """
130
+ self._resource_id = resource_id
131
+
132
+ @property
133
+ def is_auto_pay(self):
134
+ """Gets the is_auto_pay of this CbcOrderChange.
135
+
136
+ 是否自动支付,默认非自动支付:false
137
+
138
+ :return: The is_auto_pay of this CbcOrderChange.
139
+ :rtype: bool
140
+ """
141
+ return self._is_auto_pay
142
+
143
+ @is_auto_pay.setter
144
+ def is_auto_pay(self, is_auto_pay):
145
+ """Sets the is_auto_pay of this CbcOrderChange.
146
+
147
+ 是否自动支付,默认非自动支付:false
148
+
149
+ :param is_auto_pay: The is_auto_pay of this CbcOrderChange.
150
+ :type is_auto_pay: bool
151
+ """
152
+ self._is_auto_pay = is_auto_pay
153
+
154
+ @property
155
+ def promotion_info(self):
156
+ """Gets the promotion_info of this CbcOrderChange.
157
+
158
+ 购买折扣
159
+
160
+ :return: The promotion_info of this CbcOrderChange.
161
+ :rtype: str
162
+ """
163
+ return self._promotion_info
164
+
165
+ @promotion_info.setter
166
+ def promotion_info(self, promotion_info):
167
+ """Sets the promotion_info of this CbcOrderChange.
168
+
169
+ 购买折扣
170
+
171
+ :param promotion_info: The promotion_info of this CbcOrderChange.
172
+ :type promotion_info: str
173
+ """
174
+ self._promotion_info = promotion_info
175
+
176
+ def to_dict(self):
177
+ """Returns the model properties as a dict"""
178
+ result = {}
179
+
180
+ for attr, _ in six.iteritems(self.openapi_types):
181
+ value = getattr(self, attr)
182
+ if isinstance(value, list):
183
+ result[attr] = list(map(
184
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
185
+ value
186
+ ))
187
+ elif hasattr(value, "to_dict"):
188
+ result[attr] = value.to_dict()
189
+ elif isinstance(value, dict):
190
+ result[attr] = dict(map(
191
+ lambda item: (item[0], item[1].to_dict())
192
+ if hasattr(item[1], "to_dict") else item,
193
+ value.items()
194
+ ))
195
+ else:
196
+ if attr in self.sensitive_list:
197
+ result[attr] = "****"
198
+ else:
199
+ result[attr] = value
200
+
201
+ return result
202
+
203
+ def to_str(self):
204
+ """Returns the string representation of the model"""
205
+ import simplejson as json
206
+ if six.PY2:
207
+ import sys
208
+ reload(sys)
209
+ sys.setdefaultencoding("utf-8")
210
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
211
+
212
+ def __repr__(self):
213
+ """For `print`"""
214
+ return self.to_str()
215
+
216
+ def __eq__(self, other):
217
+ """Returns true if both objects are equal"""
218
+ if not isinstance(other, CbcOrderChange):
219
+ return False
220
+
221
+ return self.__dict__ == other.__dict__
222
+
223
+ def __ne__(self, other):
224
+ """Returns true if both objects are not equal"""
225
+ return not self == other
@@ -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: [vault.backup.server.normalvault.backup.turbo.normal, vault.backup.database.normalvault.backup.volume.normalvault.backup.rds.normalvault.replication.server.normalvault.hybrid.server.normal]
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: [vault.backup.server.normalvault.backup.turbo.normal, vault.backup.database.normalvault.backup.volume.normalvault.backup.rds.normalvault.replication.server.normalvault.hybrid.server.normal]
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: [vault.backup.server.normalvault.backup.turbo.normal, vault.backup.database.normalvault.backup.volume.normalvault.backup.rds.normalvault.replication.server.normalvault.hybrid.server.normal]
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