huaweicloudsdkgaussdbforopengauss 3.1.42__py2.py3-none-any.whl → 3.1.44__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.
- huaweicloudsdkgaussdbforopengauss/v3/__init__.py +26 -0
- huaweicloudsdkgaussdbforopengauss/v3/gaussdbforopengauss_async_client.py +393 -0
- huaweicloudsdkgaussdbforopengauss/v3/gaussdbforopengauss_client.py +387 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/__init__.py +26 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/backups_result.py +372 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/configuration_result.py +339 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/create_db_instance_request.py +140 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/create_db_instance_response.py +170 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/flavor_result.py +310 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_db_backups_request.py +318 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_db_backups_response.py +145 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_db_flavors_request.py +260 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_db_flavors_response.py +145 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_ha_result.py +142 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_instance_result.py +932 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_instances_details_request.py +376 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_instances_details_response.py +145 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_param_group_templates_request.py +173 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_param_group_templates_response.py +145 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/node_result.py +311 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/open_gauss_datastore_option.py +143 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/open_gauss_datastore_result.py +142 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/open_gauss_ha_option.py +170 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/open_gauss_ha_result.py +170 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/open_gauss_instance_request_body.py +693 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/open_gauss_instance_result.py +544 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/open_gauss_volume_result.py +142 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/show_instance_param_group_request.py +143 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/show_instance_param_group_response.py +232 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/tag_result.py +142 -0
- {huaweicloudsdkgaussdbforopengauss-3.1.42.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.44.dist-info}/METADATA +2 -2
- {huaweicloudsdkgaussdbforopengauss-3.1.42.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.44.dist-info}/RECORD +35 -9
- {huaweicloudsdkgaussdbforopengauss-3.1.42.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.44.dist-info}/LICENSE +0 -0
- {huaweicloudsdkgaussdbforopengauss-3.1.42.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.44.dist-info}/WHEEL +0 -0
- {huaweicloudsdkgaussdbforopengauss-3.1.42.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.44.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,140 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class CreateDbInstanceRequest:
|
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
|
+
'body': 'OpenGaussInstanceRequestBody'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'x_language': 'X-Language',
|
26
|
+
'body': 'body'
|
27
|
+
}
|
28
|
+
|
29
|
+
def __init__(self, x_language=None, body=None):
|
30
|
+
"""CreateDbInstanceRequest
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
:param x_language: 语言
|
35
|
+
:type x_language: str
|
36
|
+
:param body: Body of the CreateDbInstanceRequest
|
37
|
+
:type body: :class:`huaweicloudsdkgaussdbforopengauss.v3.OpenGaussInstanceRequestBody`
|
38
|
+
"""
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
self._x_language = None
|
43
|
+
self._body = None
|
44
|
+
self.discriminator = None
|
45
|
+
|
46
|
+
if x_language is not None:
|
47
|
+
self.x_language = x_language
|
48
|
+
if body is not None:
|
49
|
+
self.body = body
|
50
|
+
|
51
|
+
@property
|
52
|
+
def x_language(self):
|
53
|
+
"""Gets the x_language of this CreateDbInstanceRequest.
|
54
|
+
|
55
|
+
语言
|
56
|
+
|
57
|
+
:return: The x_language of this CreateDbInstanceRequest.
|
58
|
+
:rtype: str
|
59
|
+
"""
|
60
|
+
return self._x_language
|
61
|
+
|
62
|
+
@x_language.setter
|
63
|
+
def x_language(self, x_language):
|
64
|
+
"""Sets the x_language of this CreateDbInstanceRequest.
|
65
|
+
|
66
|
+
语言
|
67
|
+
|
68
|
+
:param x_language: The x_language of this CreateDbInstanceRequest.
|
69
|
+
:type x_language: str
|
70
|
+
"""
|
71
|
+
self._x_language = x_language
|
72
|
+
|
73
|
+
@property
|
74
|
+
def body(self):
|
75
|
+
"""Gets the body of this CreateDbInstanceRequest.
|
76
|
+
|
77
|
+
:return: The body of this CreateDbInstanceRequest.
|
78
|
+
:rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.OpenGaussInstanceRequestBody`
|
79
|
+
"""
|
80
|
+
return self._body
|
81
|
+
|
82
|
+
@body.setter
|
83
|
+
def body(self, body):
|
84
|
+
"""Sets the body of this CreateDbInstanceRequest.
|
85
|
+
|
86
|
+
:param body: The body of this CreateDbInstanceRequest.
|
87
|
+
:type body: :class:`huaweicloudsdkgaussdbforopengauss.v3.OpenGaussInstanceRequestBody`
|
88
|
+
"""
|
89
|
+
self._body = body
|
90
|
+
|
91
|
+
def to_dict(self):
|
92
|
+
"""Returns the model properties as a dict"""
|
93
|
+
result = {}
|
94
|
+
|
95
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
96
|
+
value = getattr(self, attr)
|
97
|
+
if isinstance(value, list):
|
98
|
+
result[attr] = list(map(
|
99
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
100
|
+
value
|
101
|
+
))
|
102
|
+
elif hasattr(value, "to_dict"):
|
103
|
+
result[attr] = value.to_dict()
|
104
|
+
elif isinstance(value, dict):
|
105
|
+
result[attr] = dict(map(
|
106
|
+
lambda item: (item[0], item[1].to_dict())
|
107
|
+
if hasattr(item[1], "to_dict") else item,
|
108
|
+
value.items()
|
109
|
+
))
|
110
|
+
else:
|
111
|
+
if attr in self.sensitive_list:
|
112
|
+
result[attr] = "****"
|
113
|
+
else:
|
114
|
+
result[attr] = value
|
115
|
+
|
116
|
+
return result
|
117
|
+
|
118
|
+
def to_str(self):
|
119
|
+
"""Returns the string representation of the model"""
|
120
|
+
import simplejson as json
|
121
|
+
if six.PY2:
|
122
|
+
import sys
|
123
|
+
reload(sys)
|
124
|
+
sys.setdefaultencoding("utf-8")
|
125
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
126
|
+
|
127
|
+
def __repr__(self):
|
128
|
+
"""For `print`"""
|
129
|
+
return self.to_str()
|
130
|
+
|
131
|
+
def __eq__(self, other):
|
132
|
+
"""Returns true if both objects are equal"""
|
133
|
+
if not isinstance(other, CreateDbInstanceRequest):
|
134
|
+
return False
|
135
|
+
|
136
|
+
return self.__dict__ == other.__dict__
|
137
|
+
|
138
|
+
def __ne__(self, other):
|
139
|
+
"""Returns true if both objects are not equal"""
|
140
|
+
return not self == other
|
@@ -0,0 +1,170 @@
|
|
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 CreateDbInstanceResponse(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
|
+
'instance': 'OpenGaussInstanceResult',
|
22
|
+
'job_id': 'str',
|
23
|
+
'order_id': 'str'
|
24
|
+
}
|
25
|
+
|
26
|
+
attribute_map = {
|
27
|
+
'instance': 'instance',
|
28
|
+
'job_id': 'job_id',
|
29
|
+
'order_id': 'order_id'
|
30
|
+
}
|
31
|
+
|
32
|
+
def __init__(self, instance=None, job_id=None, order_id=None):
|
33
|
+
"""CreateDbInstanceResponse
|
34
|
+
|
35
|
+
The model defined in huaweicloud sdk
|
36
|
+
|
37
|
+
:param instance:
|
38
|
+
:type instance: :class:`huaweicloudsdkgaussdbforopengauss.v3.OpenGaussInstanceResult`
|
39
|
+
:param job_id: 实例创建的任务id。 仅创建按需实例时会返回该参数。
|
40
|
+
:type job_id: str
|
41
|
+
:param order_id: 创建实例的订单ID。 仅创建包周期实例时会返回该参数。
|
42
|
+
:type order_id: str
|
43
|
+
"""
|
44
|
+
|
45
|
+
super(CreateDbInstanceResponse, self).__init__()
|
46
|
+
|
47
|
+
self._instance = None
|
48
|
+
self._job_id = None
|
49
|
+
self._order_id = None
|
50
|
+
self.discriminator = None
|
51
|
+
|
52
|
+
if instance is not None:
|
53
|
+
self.instance = instance
|
54
|
+
if job_id is not None:
|
55
|
+
self.job_id = job_id
|
56
|
+
if order_id is not None:
|
57
|
+
self.order_id = order_id
|
58
|
+
|
59
|
+
@property
|
60
|
+
def instance(self):
|
61
|
+
"""Gets the instance of this CreateDbInstanceResponse.
|
62
|
+
|
63
|
+
:return: The instance of this CreateDbInstanceResponse.
|
64
|
+
:rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.OpenGaussInstanceResult`
|
65
|
+
"""
|
66
|
+
return self._instance
|
67
|
+
|
68
|
+
@instance.setter
|
69
|
+
def instance(self, instance):
|
70
|
+
"""Sets the instance of this CreateDbInstanceResponse.
|
71
|
+
|
72
|
+
:param instance: The instance of this CreateDbInstanceResponse.
|
73
|
+
:type instance: :class:`huaweicloudsdkgaussdbforopengauss.v3.OpenGaussInstanceResult`
|
74
|
+
"""
|
75
|
+
self._instance = instance
|
76
|
+
|
77
|
+
@property
|
78
|
+
def job_id(self):
|
79
|
+
"""Gets the job_id of this CreateDbInstanceResponse.
|
80
|
+
|
81
|
+
实例创建的任务id。 仅创建按需实例时会返回该参数。
|
82
|
+
|
83
|
+
:return: The job_id of this CreateDbInstanceResponse.
|
84
|
+
:rtype: str
|
85
|
+
"""
|
86
|
+
return self._job_id
|
87
|
+
|
88
|
+
@job_id.setter
|
89
|
+
def job_id(self, job_id):
|
90
|
+
"""Sets the job_id of this CreateDbInstanceResponse.
|
91
|
+
|
92
|
+
实例创建的任务id。 仅创建按需实例时会返回该参数。
|
93
|
+
|
94
|
+
:param job_id: The job_id of this CreateDbInstanceResponse.
|
95
|
+
:type job_id: str
|
96
|
+
"""
|
97
|
+
self._job_id = job_id
|
98
|
+
|
99
|
+
@property
|
100
|
+
def order_id(self):
|
101
|
+
"""Gets the order_id of this CreateDbInstanceResponse.
|
102
|
+
|
103
|
+
创建实例的订单ID。 仅创建包周期实例时会返回该参数。
|
104
|
+
|
105
|
+
:return: The order_id of this CreateDbInstanceResponse.
|
106
|
+
:rtype: str
|
107
|
+
"""
|
108
|
+
return self._order_id
|
109
|
+
|
110
|
+
@order_id.setter
|
111
|
+
def order_id(self, order_id):
|
112
|
+
"""Sets the order_id of this CreateDbInstanceResponse.
|
113
|
+
|
114
|
+
创建实例的订单ID。 仅创建包周期实例时会返回该参数。
|
115
|
+
|
116
|
+
:param order_id: The order_id of this CreateDbInstanceResponse.
|
117
|
+
:type order_id: str
|
118
|
+
"""
|
119
|
+
self._order_id = order_id
|
120
|
+
|
121
|
+
def to_dict(self):
|
122
|
+
"""Returns the model properties as a dict"""
|
123
|
+
result = {}
|
124
|
+
|
125
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
126
|
+
value = getattr(self, attr)
|
127
|
+
if isinstance(value, list):
|
128
|
+
result[attr] = list(map(
|
129
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
130
|
+
value
|
131
|
+
))
|
132
|
+
elif hasattr(value, "to_dict"):
|
133
|
+
result[attr] = value.to_dict()
|
134
|
+
elif isinstance(value, dict):
|
135
|
+
result[attr] = dict(map(
|
136
|
+
lambda item: (item[0], item[1].to_dict())
|
137
|
+
if hasattr(item[1], "to_dict") else item,
|
138
|
+
value.items()
|
139
|
+
))
|
140
|
+
else:
|
141
|
+
if attr in self.sensitive_list:
|
142
|
+
result[attr] = "****"
|
143
|
+
else:
|
144
|
+
result[attr] = value
|
145
|
+
|
146
|
+
return result
|
147
|
+
|
148
|
+
def to_str(self):
|
149
|
+
"""Returns the string representation of the model"""
|
150
|
+
import simplejson as json
|
151
|
+
if six.PY2:
|
152
|
+
import sys
|
153
|
+
reload(sys)
|
154
|
+
sys.setdefaultencoding("utf-8")
|
155
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
156
|
+
|
157
|
+
def __repr__(self):
|
158
|
+
"""For `print`"""
|
159
|
+
return self.to_str()
|
160
|
+
|
161
|
+
def __eq__(self, other):
|
162
|
+
"""Returns true if both objects are equal"""
|
163
|
+
if not isinstance(other, CreateDbInstanceResponse):
|
164
|
+
return False
|
165
|
+
|
166
|
+
return self.__dict__ == other.__dict__
|
167
|
+
|
168
|
+
def __ne__(self, other):
|
169
|
+
"""Returns true if both objects are not equal"""
|
170
|
+
return not self == other
|
@@ -0,0 +1,310 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class FlavorResult:
|
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
|
+
'vcpus': 'str',
|
21
|
+
'ram': 'str',
|
22
|
+
'spec_code': 'str',
|
23
|
+
'az_status': 'dict(str, str)',
|
24
|
+
'availability_zone': 'list[str]',
|
25
|
+
'version': 'str',
|
26
|
+
'name': 'str',
|
27
|
+
'group_type': 'str'
|
28
|
+
}
|
29
|
+
|
30
|
+
attribute_map = {
|
31
|
+
'vcpus': 'vcpus',
|
32
|
+
'ram': 'ram',
|
33
|
+
'spec_code': 'spec_code',
|
34
|
+
'az_status': 'az_status',
|
35
|
+
'availability_zone': 'availability_zone',
|
36
|
+
'version': 'version',
|
37
|
+
'name': 'name',
|
38
|
+
'group_type': 'group_type'
|
39
|
+
}
|
40
|
+
|
41
|
+
def __init__(self, vcpus=None, ram=None, spec_code=None, az_status=None, availability_zone=None, version=None, name=None, group_type=None):
|
42
|
+
"""FlavorResult
|
43
|
+
|
44
|
+
The model defined in huaweicloud sdk
|
45
|
+
|
46
|
+
:param vcpus: CPU个数。
|
47
|
+
:type vcpus: str
|
48
|
+
:param ram: 内存大小,单位为GB。
|
49
|
+
:type ram: str
|
50
|
+
:param spec_code: 资源规格编码。例如:gaussdb.opengauss.ee.dn.m6.4xlarge.8.in。
|
51
|
+
:type spec_code: str
|
52
|
+
:param az_status: 其中key是可用区编号,value是规格所在az的状态,包含以下状态: - normal,在售。 - unsupported,暂不支持该规格。 - sellout,售罄。
|
53
|
+
:type az_status: dict(str, str)
|
54
|
+
:param availability_zone: 可用az
|
55
|
+
:type availability_zone: list[str]
|
56
|
+
:param version: 数组形式版本号
|
57
|
+
:type version: str
|
58
|
+
:param name: 数组库引擎版本
|
59
|
+
:type name: str
|
60
|
+
:param group_type: 性能规格,包含以下状态: - normal:通用增强型。 - normal2:通用增强Ⅱ型。 - armFlavors:鲲鹏通用增强型。 - dedicicatenormal :x86独享型。 - armlocalssd:鲲鹏通用型。 - normallocalssd:x86通用型。 - general:通用型。 - dedicated:独享型,仅云盘SSD支持。 - rapid:独享型,仅极速型SSD支持。
|
61
|
+
:type group_type: str
|
62
|
+
"""
|
63
|
+
|
64
|
+
|
65
|
+
|
66
|
+
self._vcpus = None
|
67
|
+
self._ram = None
|
68
|
+
self._spec_code = None
|
69
|
+
self._az_status = None
|
70
|
+
self._availability_zone = None
|
71
|
+
self._version = None
|
72
|
+
self._name = None
|
73
|
+
self._group_type = None
|
74
|
+
self.discriminator = None
|
75
|
+
|
76
|
+
self.vcpus = vcpus
|
77
|
+
self.ram = ram
|
78
|
+
self.spec_code = spec_code
|
79
|
+
self.az_status = az_status
|
80
|
+
self.availability_zone = availability_zone
|
81
|
+
self.version = version
|
82
|
+
self.name = name
|
83
|
+
self.group_type = group_type
|
84
|
+
|
85
|
+
@property
|
86
|
+
def vcpus(self):
|
87
|
+
"""Gets the vcpus of this FlavorResult.
|
88
|
+
|
89
|
+
CPU个数。
|
90
|
+
|
91
|
+
:return: The vcpus of this FlavorResult.
|
92
|
+
:rtype: str
|
93
|
+
"""
|
94
|
+
return self._vcpus
|
95
|
+
|
96
|
+
@vcpus.setter
|
97
|
+
def vcpus(self, vcpus):
|
98
|
+
"""Sets the vcpus of this FlavorResult.
|
99
|
+
|
100
|
+
CPU个数。
|
101
|
+
|
102
|
+
:param vcpus: The vcpus of this FlavorResult.
|
103
|
+
:type vcpus: str
|
104
|
+
"""
|
105
|
+
self._vcpus = vcpus
|
106
|
+
|
107
|
+
@property
|
108
|
+
def ram(self):
|
109
|
+
"""Gets the ram of this FlavorResult.
|
110
|
+
|
111
|
+
内存大小,单位为GB。
|
112
|
+
|
113
|
+
:return: The ram of this FlavorResult.
|
114
|
+
:rtype: str
|
115
|
+
"""
|
116
|
+
return self._ram
|
117
|
+
|
118
|
+
@ram.setter
|
119
|
+
def ram(self, ram):
|
120
|
+
"""Sets the ram of this FlavorResult.
|
121
|
+
|
122
|
+
内存大小,单位为GB。
|
123
|
+
|
124
|
+
:param ram: The ram of this FlavorResult.
|
125
|
+
:type ram: str
|
126
|
+
"""
|
127
|
+
self._ram = ram
|
128
|
+
|
129
|
+
@property
|
130
|
+
def spec_code(self):
|
131
|
+
"""Gets the spec_code of this FlavorResult.
|
132
|
+
|
133
|
+
资源规格编码。例如:gaussdb.opengauss.ee.dn.m6.4xlarge.8.in。
|
134
|
+
|
135
|
+
:return: The spec_code of this FlavorResult.
|
136
|
+
:rtype: str
|
137
|
+
"""
|
138
|
+
return self._spec_code
|
139
|
+
|
140
|
+
@spec_code.setter
|
141
|
+
def spec_code(self, spec_code):
|
142
|
+
"""Sets the spec_code of this FlavorResult.
|
143
|
+
|
144
|
+
资源规格编码。例如:gaussdb.opengauss.ee.dn.m6.4xlarge.8.in。
|
145
|
+
|
146
|
+
:param spec_code: The spec_code of this FlavorResult.
|
147
|
+
:type spec_code: str
|
148
|
+
"""
|
149
|
+
self._spec_code = spec_code
|
150
|
+
|
151
|
+
@property
|
152
|
+
def az_status(self):
|
153
|
+
"""Gets the az_status of this FlavorResult.
|
154
|
+
|
155
|
+
其中key是可用区编号,value是规格所在az的状态,包含以下状态: - normal,在售。 - unsupported,暂不支持该规格。 - sellout,售罄。
|
156
|
+
|
157
|
+
:return: The az_status of this FlavorResult.
|
158
|
+
:rtype: dict(str, str)
|
159
|
+
"""
|
160
|
+
return self._az_status
|
161
|
+
|
162
|
+
@az_status.setter
|
163
|
+
def az_status(self, az_status):
|
164
|
+
"""Sets the az_status of this FlavorResult.
|
165
|
+
|
166
|
+
其中key是可用区编号,value是规格所在az的状态,包含以下状态: - normal,在售。 - unsupported,暂不支持该规格。 - sellout,售罄。
|
167
|
+
|
168
|
+
:param az_status: The az_status of this FlavorResult.
|
169
|
+
:type az_status: dict(str, str)
|
170
|
+
"""
|
171
|
+
self._az_status = az_status
|
172
|
+
|
173
|
+
@property
|
174
|
+
def availability_zone(self):
|
175
|
+
"""Gets the availability_zone of this FlavorResult.
|
176
|
+
|
177
|
+
可用az
|
178
|
+
|
179
|
+
:return: The availability_zone of this FlavorResult.
|
180
|
+
:rtype: list[str]
|
181
|
+
"""
|
182
|
+
return self._availability_zone
|
183
|
+
|
184
|
+
@availability_zone.setter
|
185
|
+
def availability_zone(self, availability_zone):
|
186
|
+
"""Sets the availability_zone of this FlavorResult.
|
187
|
+
|
188
|
+
可用az
|
189
|
+
|
190
|
+
:param availability_zone: The availability_zone of this FlavorResult.
|
191
|
+
:type availability_zone: list[str]
|
192
|
+
"""
|
193
|
+
self._availability_zone = availability_zone
|
194
|
+
|
195
|
+
@property
|
196
|
+
def version(self):
|
197
|
+
"""Gets the version of this FlavorResult.
|
198
|
+
|
199
|
+
数组形式版本号
|
200
|
+
|
201
|
+
:return: The version of this FlavorResult.
|
202
|
+
:rtype: str
|
203
|
+
"""
|
204
|
+
return self._version
|
205
|
+
|
206
|
+
@version.setter
|
207
|
+
def version(self, version):
|
208
|
+
"""Sets the version of this FlavorResult.
|
209
|
+
|
210
|
+
数组形式版本号
|
211
|
+
|
212
|
+
:param version: The version of this FlavorResult.
|
213
|
+
:type version: str
|
214
|
+
"""
|
215
|
+
self._version = version
|
216
|
+
|
217
|
+
@property
|
218
|
+
def name(self):
|
219
|
+
"""Gets the name of this FlavorResult.
|
220
|
+
|
221
|
+
数组库引擎版本
|
222
|
+
|
223
|
+
:return: The name of this FlavorResult.
|
224
|
+
:rtype: str
|
225
|
+
"""
|
226
|
+
return self._name
|
227
|
+
|
228
|
+
@name.setter
|
229
|
+
def name(self, name):
|
230
|
+
"""Sets the name of this FlavorResult.
|
231
|
+
|
232
|
+
数组库引擎版本
|
233
|
+
|
234
|
+
:param name: The name of this FlavorResult.
|
235
|
+
:type name: str
|
236
|
+
"""
|
237
|
+
self._name = name
|
238
|
+
|
239
|
+
@property
|
240
|
+
def group_type(self):
|
241
|
+
"""Gets the group_type of this FlavorResult.
|
242
|
+
|
243
|
+
性能规格,包含以下状态: - normal:通用增强型。 - normal2:通用增强Ⅱ型。 - armFlavors:鲲鹏通用增强型。 - dedicicatenormal :x86独享型。 - armlocalssd:鲲鹏通用型。 - normallocalssd:x86通用型。 - general:通用型。 - dedicated:独享型,仅云盘SSD支持。 - rapid:独享型,仅极速型SSD支持。
|
244
|
+
|
245
|
+
:return: The group_type of this FlavorResult.
|
246
|
+
:rtype: str
|
247
|
+
"""
|
248
|
+
return self._group_type
|
249
|
+
|
250
|
+
@group_type.setter
|
251
|
+
def group_type(self, group_type):
|
252
|
+
"""Sets the group_type of this FlavorResult.
|
253
|
+
|
254
|
+
性能规格,包含以下状态: - normal:通用增强型。 - normal2:通用增强Ⅱ型。 - armFlavors:鲲鹏通用增强型。 - dedicicatenormal :x86独享型。 - armlocalssd:鲲鹏通用型。 - normallocalssd:x86通用型。 - general:通用型。 - dedicated:独享型,仅云盘SSD支持。 - rapid:独享型,仅极速型SSD支持。
|
255
|
+
|
256
|
+
:param group_type: The group_type of this FlavorResult.
|
257
|
+
:type group_type: str
|
258
|
+
"""
|
259
|
+
self._group_type = group_type
|
260
|
+
|
261
|
+
def to_dict(self):
|
262
|
+
"""Returns the model properties as a dict"""
|
263
|
+
result = {}
|
264
|
+
|
265
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
266
|
+
value = getattr(self, attr)
|
267
|
+
if isinstance(value, list):
|
268
|
+
result[attr] = list(map(
|
269
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
270
|
+
value
|
271
|
+
))
|
272
|
+
elif hasattr(value, "to_dict"):
|
273
|
+
result[attr] = value.to_dict()
|
274
|
+
elif isinstance(value, dict):
|
275
|
+
result[attr] = dict(map(
|
276
|
+
lambda item: (item[0], item[1].to_dict())
|
277
|
+
if hasattr(item[1], "to_dict") else item,
|
278
|
+
value.items()
|
279
|
+
))
|
280
|
+
else:
|
281
|
+
if attr in self.sensitive_list:
|
282
|
+
result[attr] = "****"
|
283
|
+
else:
|
284
|
+
result[attr] = value
|
285
|
+
|
286
|
+
return result
|
287
|
+
|
288
|
+
def to_str(self):
|
289
|
+
"""Returns the string representation of the model"""
|
290
|
+
import simplejson as json
|
291
|
+
if six.PY2:
|
292
|
+
import sys
|
293
|
+
reload(sys)
|
294
|
+
sys.setdefaultencoding("utf-8")
|
295
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
296
|
+
|
297
|
+
def __repr__(self):
|
298
|
+
"""For `print`"""
|
299
|
+
return self.to_str()
|
300
|
+
|
301
|
+
def __eq__(self, other):
|
302
|
+
"""Returns true if both objects are equal"""
|
303
|
+
if not isinstance(other, FlavorResult):
|
304
|
+
return False
|
305
|
+
|
306
|
+
return self.__dict__ == other.__dict__
|
307
|
+
|
308
|
+
def __ne__(self, other):
|
309
|
+
"""Returns true if both objects are not equal"""
|
310
|
+
return not self == other
|