huaweicloudsdkgaussdb 3.1.95__py2.py3-none-any.whl → 3.1.97__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.
- huaweicloudsdkgaussdb/v3/__init__.py +69 -0
- huaweicloudsdkgaussdb/v3/gaussdb_async_client.py +1101 -66
- huaweicloudsdkgaussdb/v3/gaussdb_client.py +1101 -66
- huaweicloudsdkgaussdb/v3/model/__init__.py +69 -0
- huaweicloudsdkgaussdb/v3/model/check_star_rocks_resource_request.py +140 -0
- huaweicloudsdkgaussdb/v3/model/check_star_rocks_resource_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/create_star_rocks_database_user_request.py +168 -0
- huaweicloudsdkgaussdb/v3/model/create_star_rocks_database_user_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/create_starrocks_instance_request.py +168 -0
- huaweicloudsdkgaussdb/v3/model/create_starrocks_instance_response.py +141 -0
- huaweicloudsdkgaussdb/v3/model/delete_star_rocks_database_user_request.py +171 -0
- huaweicloudsdkgaussdb/v3/model/delete_star_rocks_database_user_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/delete_starrocks_instance_request.py +171 -0
- huaweicloudsdkgaussdb/v3/model/delete_starrocks_instance_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/htap_flavor_info_flavors.py +318 -0
- huaweicloudsdkgaussdb/v3/model/htap_instance_list_available_zones.py +173 -0
- huaweicloudsdkgaussdb/v3/model/htap_instance_list_instance_state.py +202 -0
- huaweicloudsdkgaussdb/v3/model/htap_instance_list_instances.py +832 -0
- huaweicloudsdkgaussdb/v3/model/htap_instance_list_network.py +173 -0
- huaweicloudsdkgaussdb/v3/model/htap_storage_type_storage_type.py +173 -0
- huaweicloudsdkgaussdb/v3/model/list_htap_data_store_request.py +143 -0
- huaweicloudsdkgaussdb/v3/model/list_htap_data_store_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/list_htap_flavor_request.py +230 -0
- huaweicloudsdkgaussdb/v3/model/list_htap_flavor_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/list_htap_instance_info_request.py +143 -0
- huaweicloudsdkgaussdb/v3/model/list_htap_instance_info_response.py +174 -0
- huaweicloudsdkgaussdb/v3/model/list_htap_storage_type_request.py +171 -0
- huaweicloudsdkgaussdb/v3/model/list_htap_storage_type_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/list_starrocks_instance_info_request.py +171 -0
- huaweicloudsdkgaussdb/v3/model/list_starrocks_instance_info_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/param_group.py +144 -0
- huaweicloudsdkgaussdb/v3/model/query_action.py +318 -0
- huaweicloudsdkgaussdb/v3/model/readable_node_infos.py +173 -0
- huaweicloudsdkgaussdb/v3/model/resource_check.py +138 -0
- huaweicloudsdkgaussdb/v3/model/resource_check_resource.py +367 -0
- huaweicloudsdkgaussdb/v3/model/restart_starrocks_instance_request.py +143 -0
- huaweicloudsdkgaussdb/v3/model/restart_starrocks_instance_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/restart_starrocks_node_request.py +171 -0
- huaweicloudsdkgaussdb/v3/model/restart_starrocks_node_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/show_star_rocks_database_user_request.py +228 -0
- huaweicloudsdkgaussdb/v3/model/show_star_rocks_database_user_response.py +145 -0
- huaweicloudsdkgaussdb/v3/model/show_star_rocks_database_users_user_details.py +198 -0
- huaweicloudsdkgaussdb/v3/model/sr_create_instance_rsp_instance.py +538 -0
- huaweicloudsdkgaussdb/v3/model/sr_create_instance_rsp_instance_engine.py +144 -0
- huaweicloudsdkgaussdb/v3/model/sr_create_instance_rsp_instance_pay_info.py +231 -0
- huaweicloudsdkgaussdb/v3/model/sr_create_instance_rsp_instance_tags_info.py +144 -0
- huaweicloudsdkgaussdb/v3/model/sr_create_instance_rsp_instance_tags_info_sys_tags.py +144 -0
- huaweicloudsdkgaussdb/v3/model/sr_create_instance_rsp_instance_tags_info_tags.py +144 -0
- huaweicloudsdkgaussdb/v3/model/sr_data_stores_datastores.py +173 -0
- huaweicloudsdkgaussdb/v3/model/star_rocks_create_request.py +459 -0
- huaweicloudsdkgaussdb/v3/model/star_rocks_create_request_be_volume.py +142 -0
- huaweicloudsdkgaussdb/v3/model/star_rocks_create_request_engine.py +142 -0
- huaweicloudsdkgaussdb/v3/model/star_rocks_create_request_fe_volume.py +142 -0
- huaweicloudsdkgaussdb/v3/model/star_rocks_create_request_ha.py +114 -0
- huaweicloudsdkgaussdb/v3/model/star_rocks_create_request_tags_info.py +114 -0
- huaweicloudsdkgaussdb/v3/model/star_rocks_create_request_tags_info_sys_tags.py +142 -0
- huaweicloudsdkgaussdb/v3/model/star_rocks_database_user_info.py +228 -0
- huaweicloudsdkgaussdb/v3/model/star_rocks_database_user_p_sinfo.py +201 -0
- huaweicloudsdkgaussdb/v3/model/star_rocks_database_user_p_winfo.py +142 -0
- huaweicloudsdkgaussdb/v3/model/star_rocks_instance_info_datastore.py +173 -0
- huaweicloudsdkgaussdb/v3/model/star_rocks_instance_info_groups.py +231 -0
- huaweicloudsdkgaussdb/v3/model/star_rocks_instance_info_instances.py +1292 -0
- huaweicloudsdkgaussdb/v3/model/star_rocks_instance_info_nodes.py +1006 -0
- huaweicloudsdkgaussdb/v3/model/star_rocks_instance_info_ops_window.py +173 -0
- huaweicloudsdkgaussdb/v3/model/star_rocks_instance_info_port_info.py +115 -0
- huaweicloudsdkgaussdb/v3/model/star_rocks_instance_info_tags_info.py +144 -0
- huaweicloudsdkgaussdb/v3/model/star_rocks_instance_info_tags_info_sys_tags.py +144 -0
- huaweicloudsdkgaussdb/v3/model/star_rocks_instance_info_tags_info_tags.py +144 -0
- huaweicloudsdkgaussdb/v3/model/star_rocks_instance_info_volume.py +144 -0
- huaweicloudsdkgaussdb/v3/model/update_star_rocks_database_user_password_request.py +168 -0
- huaweicloudsdkgaussdb/v3/model/update_star_rocks_database_user_password_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/update_star_rocks_database_user_permission_request.py +168 -0
- huaweicloudsdkgaussdb/v3/model/update_star_rocks_database_user_permission_response.py +116 -0
- {huaweicloudsdkgaussdb-3.1.95.dist-info → huaweicloudsdkgaussdb-3.1.97.dist-info}/METADATA +2 -2
- {huaweicloudsdkgaussdb-3.1.95.dist-info → huaweicloudsdkgaussdb-3.1.97.dist-info}/RECORD +78 -9
- {huaweicloudsdkgaussdb-3.1.95.dist-info → huaweicloudsdkgaussdb-3.1.97.dist-info}/LICENSE +0 -0
- {huaweicloudsdkgaussdb-3.1.95.dist-info → huaweicloudsdkgaussdb-3.1.97.dist-info}/WHEEL +0 -0
- {huaweicloudsdkgaussdb-3.1.95.dist-info → huaweicloudsdkgaussdb-3.1.97.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,138 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ResourceCheck:
|
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
|
+
'action': 'str',
|
21
|
+
'resource': 'ResourceCheckResource'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'action': 'action',
|
26
|
+
'resource': 'resource'
|
27
|
+
}
|
28
|
+
|
29
|
+
def __init__(self, action=None, resource=None):
|
30
|
+
"""ResourceCheck
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
:param action: 校验类型,仅支持校验创建实例。
|
35
|
+
:type action: str
|
36
|
+
:param resource:
|
37
|
+
:type resource: :class:`huaweicloudsdkgaussdb.v3.ResourceCheckResource`
|
38
|
+
"""
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
self._action = None
|
43
|
+
self._resource = None
|
44
|
+
self.discriminator = None
|
45
|
+
|
46
|
+
self.action = action
|
47
|
+
self.resource = resource
|
48
|
+
|
49
|
+
@property
|
50
|
+
def action(self):
|
51
|
+
"""Gets the action of this ResourceCheck.
|
52
|
+
|
53
|
+
校验类型,仅支持校验创建实例。
|
54
|
+
|
55
|
+
:return: The action of this ResourceCheck.
|
56
|
+
:rtype: str
|
57
|
+
"""
|
58
|
+
return self._action
|
59
|
+
|
60
|
+
@action.setter
|
61
|
+
def action(self, action):
|
62
|
+
"""Sets the action of this ResourceCheck.
|
63
|
+
|
64
|
+
校验类型,仅支持校验创建实例。
|
65
|
+
|
66
|
+
:param action: The action of this ResourceCheck.
|
67
|
+
:type action: str
|
68
|
+
"""
|
69
|
+
self._action = action
|
70
|
+
|
71
|
+
@property
|
72
|
+
def resource(self):
|
73
|
+
"""Gets the resource of this ResourceCheck.
|
74
|
+
|
75
|
+
:return: The resource of this ResourceCheck.
|
76
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.ResourceCheckResource`
|
77
|
+
"""
|
78
|
+
return self._resource
|
79
|
+
|
80
|
+
@resource.setter
|
81
|
+
def resource(self, resource):
|
82
|
+
"""Sets the resource of this ResourceCheck.
|
83
|
+
|
84
|
+
:param resource: The resource of this ResourceCheck.
|
85
|
+
:type resource: :class:`huaweicloudsdkgaussdb.v3.ResourceCheckResource`
|
86
|
+
"""
|
87
|
+
self._resource = resource
|
88
|
+
|
89
|
+
def to_dict(self):
|
90
|
+
"""Returns the model properties as a dict"""
|
91
|
+
result = {}
|
92
|
+
|
93
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
94
|
+
value = getattr(self, attr)
|
95
|
+
if isinstance(value, list):
|
96
|
+
result[attr] = list(map(
|
97
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
98
|
+
value
|
99
|
+
))
|
100
|
+
elif hasattr(value, "to_dict"):
|
101
|
+
result[attr] = value.to_dict()
|
102
|
+
elif isinstance(value, dict):
|
103
|
+
result[attr] = dict(map(
|
104
|
+
lambda item: (item[0], item[1].to_dict())
|
105
|
+
if hasattr(item[1], "to_dict") else item,
|
106
|
+
value.items()
|
107
|
+
))
|
108
|
+
else:
|
109
|
+
if attr in self.sensitive_list:
|
110
|
+
result[attr] = "****"
|
111
|
+
else:
|
112
|
+
result[attr] = value
|
113
|
+
|
114
|
+
return result
|
115
|
+
|
116
|
+
def to_str(self):
|
117
|
+
"""Returns the string representation of the model"""
|
118
|
+
import simplejson as json
|
119
|
+
if six.PY2:
|
120
|
+
import sys
|
121
|
+
reload(sys)
|
122
|
+
sys.setdefaultencoding("utf-8")
|
123
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
124
|
+
|
125
|
+
def __repr__(self):
|
126
|
+
"""For `print`"""
|
127
|
+
return self.to_str()
|
128
|
+
|
129
|
+
def __eq__(self, other):
|
130
|
+
"""Returns true if both objects are equal"""
|
131
|
+
if not isinstance(other, ResourceCheck):
|
132
|
+
return False
|
133
|
+
|
134
|
+
return self.__dict__ == other.__dict__
|
135
|
+
|
136
|
+
def __ne__(self, other):
|
137
|
+
"""Returns true if both objects are not equal"""
|
138
|
+
return not self == other
|
@@ -0,0 +1,367 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ResourceCheckResource:
|
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
|
+
'enterprise_project_id': 'str',
|
21
|
+
'instance_num': 'int',
|
22
|
+
'mode': 'str',
|
23
|
+
'availability_zone_mode': 'str',
|
24
|
+
'fe_node_num': 'int',
|
25
|
+
'be_node_num': 'int',
|
26
|
+
'fe_flavor_ref': 'str',
|
27
|
+
'be_flavor_ref': 'str',
|
28
|
+
'availability_zone': 'str',
|
29
|
+
'subnet_id': 'str'
|
30
|
+
}
|
31
|
+
|
32
|
+
attribute_map = {
|
33
|
+
'enterprise_project_id': 'enterprise_project_id',
|
34
|
+
'instance_num': 'instance_num',
|
35
|
+
'mode': 'mode',
|
36
|
+
'availability_zone_mode': 'availability_zone_mode',
|
37
|
+
'fe_node_num': 'fe_node_num',
|
38
|
+
'be_node_num': 'be_node_num',
|
39
|
+
'fe_flavor_ref': 'fe_flavor_ref',
|
40
|
+
'be_flavor_ref': 'be_flavor_ref',
|
41
|
+
'availability_zone': 'availability_zone',
|
42
|
+
'subnet_id': 'subnet_id'
|
43
|
+
}
|
44
|
+
|
45
|
+
def __init__(self, enterprise_project_id=None, instance_num=None, mode=None, availability_zone_mode=None, fe_node_num=None, be_node_num=None, fe_flavor_ref=None, be_flavor_ref=None, availability_zone=None, subnet_id=None):
|
46
|
+
"""ResourceCheckResource
|
47
|
+
|
48
|
+
The model defined in huaweicloud sdk
|
49
|
+
|
50
|
+
:param enterprise_project_id: 企业项目ID。
|
51
|
+
:type enterprise_project_id: str
|
52
|
+
:param instance_num: 实例数量。
|
53
|
+
:type instance_num: int
|
54
|
+
:param mode: 实例部署模式。
|
55
|
+
:type mode: str
|
56
|
+
:param availability_zone_mode: 可用区类型,目前仅支持single。
|
57
|
+
:type availability_zone_mode: str
|
58
|
+
:param fe_node_num: FE节点数量。
|
59
|
+
:type fe_node_num: int
|
60
|
+
:param be_node_num: BE节点数量。
|
61
|
+
:type be_node_num: int
|
62
|
+
:param fe_flavor_ref: FE规格码。
|
63
|
+
:type fe_flavor_ref: str
|
64
|
+
:param be_flavor_ref: BE规格码。
|
65
|
+
:type be_flavor_ref: str
|
66
|
+
:param availability_zone: 可用区码。选填,校验可用区码是否正确。
|
67
|
+
:type availability_zone: str
|
68
|
+
:param subnet_id: HTAP实例子网即GaussDBForMySQL实例子网。 获取方法请参见[获取子网ID](https://support.huaweicloud.com/api-vpc/vpc_subnet01_0003.html)。
|
69
|
+
:type subnet_id: str
|
70
|
+
"""
|
71
|
+
|
72
|
+
|
73
|
+
|
74
|
+
self._enterprise_project_id = None
|
75
|
+
self._instance_num = None
|
76
|
+
self._mode = None
|
77
|
+
self._availability_zone_mode = None
|
78
|
+
self._fe_node_num = None
|
79
|
+
self._be_node_num = None
|
80
|
+
self._fe_flavor_ref = None
|
81
|
+
self._be_flavor_ref = None
|
82
|
+
self._availability_zone = None
|
83
|
+
self._subnet_id = None
|
84
|
+
self.discriminator = None
|
85
|
+
|
86
|
+
self.enterprise_project_id = enterprise_project_id
|
87
|
+
self.instance_num = instance_num
|
88
|
+
self.mode = mode
|
89
|
+
self.availability_zone_mode = availability_zone_mode
|
90
|
+
self.fe_node_num = fe_node_num
|
91
|
+
self.be_node_num = be_node_num
|
92
|
+
self.fe_flavor_ref = fe_flavor_ref
|
93
|
+
self.be_flavor_ref = be_flavor_ref
|
94
|
+
if availability_zone is not None:
|
95
|
+
self.availability_zone = availability_zone
|
96
|
+
self.subnet_id = subnet_id
|
97
|
+
|
98
|
+
@property
|
99
|
+
def enterprise_project_id(self):
|
100
|
+
"""Gets the enterprise_project_id of this ResourceCheckResource.
|
101
|
+
|
102
|
+
企业项目ID。
|
103
|
+
|
104
|
+
:return: The enterprise_project_id of this ResourceCheckResource.
|
105
|
+
:rtype: str
|
106
|
+
"""
|
107
|
+
return self._enterprise_project_id
|
108
|
+
|
109
|
+
@enterprise_project_id.setter
|
110
|
+
def enterprise_project_id(self, enterprise_project_id):
|
111
|
+
"""Sets the enterprise_project_id of this ResourceCheckResource.
|
112
|
+
|
113
|
+
企业项目ID。
|
114
|
+
|
115
|
+
:param enterprise_project_id: The enterprise_project_id of this ResourceCheckResource.
|
116
|
+
:type enterprise_project_id: str
|
117
|
+
"""
|
118
|
+
self._enterprise_project_id = enterprise_project_id
|
119
|
+
|
120
|
+
@property
|
121
|
+
def instance_num(self):
|
122
|
+
"""Gets the instance_num of this ResourceCheckResource.
|
123
|
+
|
124
|
+
实例数量。
|
125
|
+
|
126
|
+
:return: The instance_num of this ResourceCheckResource.
|
127
|
+
:rtype: int
|
128
|
+
"""
|
129
|
+
return self._instance_num
|
130
|
+
|
131
|
+
@instance_num.setter
|
132
|
+
def instance_num(self, instance_num):
|
133
|
+
"""Sets the instance_num of this ResourceCheckResource.
|
134
|
+
|
135
|
+
实例数量。
|
136
|
+
|
137
|
+
:param instance_num: The instance_num of this ResourceCheckResource.
|
138
|
+
:type instance_num: int
|
139
|
+
"""
|
140
|
+
self._instance_num = instance_num
|
141
|
+
|
142
|
+
@property
|
143
|
+
def mode(self):
|
144
|
+
"""Gets the mode of this ResourceCheckResource.
|
145
|
+
|
146
|
+
实例部署模式。
|
147
|
+
|
148
|
+
:return: The mode of this ResourceCheckResource.
|
149
|
+
:rtype: str
|
150
|
+
"""
|
151
|
+
return self._mode
|
152
|
+
|
153
|
+
@mode.setter
|
154
|
+
def mode(self, mode):
|
155
|
+
"""Sets the mode of this ResourceCheckResource.
|
156
|
+
|
157
|
+
实例部署模式。
|
158
|
+
|
159
|
+
:param mode: The mode of this ResourceCheckResource.
|
160
|
+
:type mode: str
|
161
|
+
"""
|
162
|
+
self._mode = mode
|
163
|
+
|
164
|
+
@property
|
165
|
+
def availability_zone_mode(self):
|
166
|
+
"""Gets the availability_zone_mode of this ResourceCheckResource.
|
167
|
+
|
168
|
+
可用区类型,目前仅支持single。
|
169
|
+
|
170
|
+
:return: The availability_zone_mode of this ResourceCheckResource.
|
171
|
+
:rtype: str
|
172
|
+
"""
|
173
|
+
return self._availability_zone_mode
|
174
|
+
|
175
|
+
@availability_zone_mode.setter
|
176
|
+
def availability_zone_mode(self, availability_zone_mode):
|
177
|
+
"""Sets the availability_zone_mode of this ResourceCheckResource.
|
178
|
+
|
179
|
+
可用区类型,目前仅支持single。
|
180
|
+
|
181
|
+
:param availability_zone_mode: The availability_zone_mode of this ResourceCheckResource.
|
182
|
+
:type availability_zone_mode: str
|
183
|
+
"""
|
184
|
+
self._availability_zone_mode = availability_zone_mode
|
185
|
+
|
186
|
+
@property
|
187
|
+
def fe_node_num(self):
|
188
|
+
"""Gets the fe_node_num of this ResourceCheckResource.
|
189
|
+
|
190
|
+
FE节点数量。
|
191
|
+
|
192
|
+
:return: The fe_node_num of this ResourceCheckResource.
|
193
|
+
:rtype: int
|
194
|
+
"""
|
195
|
+
return self._fe_node_num
|
196
|
+
|
197
|
+
@fe_node_num.setter
|
198
|
+
def fe_node_num(self, fe_node_num):
|
199
|
+
"""Sets the fe_node_num of this ResourceCheckResource.
|
200
|
+
|
201
|
+
FE节点数量。
|
202
|
+
|
203
|
+
:param fe_node_num: The fe_node_num of this ResourceCheckResource.
|
204
|
+
:type fe_node_num: int
|
205
|
+
"""
|
206
|
+
self._fe_node_num = fe_node_num
|
207
|
+
|
208
|
+
@property
|
209
|
+
def be_node_num(self):
|
210
|
+
"""Gets the be_node_num of this ResourceCheckResource.
|
211
|
+
|
212
|
+
BE节点数量。
|
213
|
+
|
214
|
+
:return: The be_node_num of this ResourceCheckResource.
|
215
|
+
:rtype: int
|
216
|
+
"""
|
217
|
+
return self._be_node_num
|
218
|
+
|
219
|
+
@be_node_num.setter
|
220
|
+
def be_node_num(self, be_node_num):
|
221
|
+
"""Sets the be_node_num of this ResourceCheckResource.
|
222
|
+
|
223
|
+
BE节点数量。
|
224
|
+
|
225
|
+
:param be_node_num: The be_node_num of this ResourceCheckResource.
|
226
|
+
:type be_node_num: int
|
227
|
+
"""
|
228
|
+
self._be_node_num = be_node_num
|
229
|
+
|
230
|
+
@property
|
231
|
+
def fe_flavor_ref(self):
|
232
|
+
"""Gets the fe_flavor_ref of this ResourceCheckResource.
|
233
|
+
|
234
|
+
FE规格码。
|
235
|
+
|
236
|
+
:return: The fe_flavor_ref of this ResourceCheckResource.
|
237
|
+
:rtype: str
|
238
|
+
"""
|
239
|
+
return self._fe_flavor_ref
|
240
|
+
|
241
|
+
@fe_flavor_ref.setter
|
242
|
+
def fe_flavor_ref(self, fe_flavor_ref):
|
243
|
+
"""Sets the fe_flavor_ref of this ResourceCheckResource.
|
244
|
+
|
245
|
+
FE规格码。
|
246
|
+
|
247
|
+
:param fe_flavor_ref: The fe_flavor_ref of this ResourceCheckResource.
|
248
|
+
:type fe_flavor_ref: str
|
249
|
+
"""
|
250
|
+
self._fe_flavor_ref = fe_flavor_ref
|
251
|
+
|
252
|
+
@property
|
253
|
+
def be_flavor_ref(self):
|
254
|
+
"""Gets the be_flavor_ref of this ResourceCheckResource.
|
255
|
+
|
256
|
+
BE规格码。
|
257
|
+
|
258
|
+
:return: The be_flavor_ref of this ResourceCheckResource.
|
259
|
+
:rtype: str
|
260
|
+
"""
|
261
|
+
return self._be_flavor_ref
|
262
|
+
|
263
|
+
@be_flavor_ref.setter
|
264
|
+
def be_flavor_ref(self, be_flavor_ref):
|
265
|
+
"""Sets the be_flavor_ref of this ResourceCheckResource.
|
266
|
+
|
267
|
+
BE规格码。
|
268
|
+
|
269
|
+
:param be_flavor_ref: The be_flavor_ref of this ResourceCheckResource.
|
270
|
+
:type be_flavor_ref: str
|
271
|
+
"""
|
272
|
+
self._be_flavor_ref = be_flavor_ref
|
273
|
+
|
274
|
+
@property
|
275
|
+
def availability_zone(self):
|
276
|
+
"""Gets the availability_zone of this ResourceCheckResource.
|
277
|
+
|
278
|
+
可用区码。选填,校验可用区码是否正确。
|
279
|
+
|
280
|
+
:return: The availability_zone of this ResourceCheckResource.
|
281
|
+
:rtype: str
|
282
|
+
"""
|
283
|
+
return self._availability_zone
|
284
|
+
|
285
|
+
@availability_zone.setter
|
286
|
+
def availability_zone(self, availability_zone):
|
287
|
+
"""Sets the availability_zone of this ResourceCheckResource.
|
288
|
+
|
289
|
+
可用区码。选填,校验可用区码是否正确。
|
290
|
+
|
291
|
+
:param availability_zone: The availability_zone of this ResourceCheckResource.
|
292
|
+
:type availability_zone: str
|
293
|
+
"""
|
294
|
+
self._availability_zone = availability_zone
|
295
|
+
|
296
|
+
@property
|
297
|
+
def subnet_id(self):
|
298
|
+
"""Gets the subnet_id of this ResourceCheckResource.
|
299
|
+
|
300
|
+
HTAP实例子网即GaussDBForMySQL实例子网。 获取方法请参见[获取子网ID](https://support.huaweicloud.com/api-vpc/vpc_subnet01_0003.html)。
|
301
|
+
|
302
|
+
:return: The subnet_id of this ResourceCheckResource.
|
303
|
+
:rtype: str
|
304
|
+
"""
|
305
|
+
return self._subnet_id
|
306
|
+
|
307
|
+
@subnet_id.setter
|
308
|
+
def subnet_id(self, subnet_id):
|
309
|
+
"""Sets the subnet_id of this ResourceCheckResource.
|
310
|
+
|
311
|
+
HTAP实例子网即GaussDBForMySQL实例子网。 获取方法请参见[获取子网ID](https://support.huaweicloud.com/api-vpc/vpc_subnet01_0003.html)。
|
312
|
+
|
313
|
+
:param subnet_id: The subnet_id of this ResourceCheckResource.
|
314
|
+
:type subnet_id: str
|
315
|
+
"""
|
316
|
+
self._subnet_id = subnet_id
|
317
|
+
|
318
|
+
def to_dict(self):
|
319
|
+
"""Returns the model properties as a dict"""
|
320
|
+
result = {}
|
321
|
+
|
322
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
323
|
+
value = getattr(self, attr)
|
324
|
+
if isinstance(value, list):
|
325
|
+
result[attr] = list(map(
|
326
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
327
|
+
value
|
328
|
+
))
|
329
|
+
elif hasattr(value, "to_dict"):
|
330
|
+
result[attr] = value.to_dict()
|
331
|
+
elif isinstance(value, dict):
|
332
|
+
result[attr] = dict(map(
|
333
|
+
lambda item: (item[0], item[1].to_dict())
|
334
|
+
if hasattr(item[1], "to_dict") else item,
|
335
|
+
value.items()
|
336
|
+
))
|
337
|
+
else:
|
338
|
+
if attr in self.sensitive_list:
|
339
|
+
result[attr] = "****"
|
340
|
+
else:
|
341
|
+
result[attr] = value
|
342
|
+
|
343
|
+
return result
|
344
|
+
|
345
|
+
def to_str(self):
|
346
|
+
"""Returns the string representation of the model"""
|
347
|
+
import simplejson as json
|
348
|
+
if six.PY2:
|
349
|
+
import sys
|
350
|
+
reload(sys)
|
351
|
+
sys.setdefaultencoding("utf-8")
|
352
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
353
|
+
|
354
|
+
def __repr__(self):
|
355
|
+
"""For `print`"""
|
356
|
+
return self.to_str()
|
357
|
+
|
358
|
+
def __eq__(self, other):
|
359
|
+
"""Returns true if both objects are equal"""
|
360
|
+
if not isinstance(other, ResourceCheckResource):
|
361
|
+
return False
|
362
|
+
|
363
|
+
return self.__dict__ == other.__dict__
|
364
|
+
|
365
|
+
def __ne__(self, other):
|
366
|
+
"""Returns true if both objects are not equal"""
|
367
|
+
return not self == other
|
@@ -0,0 +1,143 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class RestartStarrocksInstanceRequest:
|
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
|
+
'starrocks_instance_id': 'str',
|
21
|
+
'x_language': 'str'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'starrocks_instance_id': 'starrocks_instance_id',
|
26
|
+
'x_language': 'X-Language'
|
27
|
+
}
|
28
|
+
|
29
|
+
def __init__(self, starrocks_instance_id=None, x_language=None):
|
30
|
+
"""RestartStarrocksInstanceRequest
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
:param starrocks_instance_id: StarRocks实例ID,严格匹配UUID规则。
|
35
|
+
:type starrocks_instance_id: str
|
36
|
+
:param x_language: 请求语言类型。默认en-us。 取值范围: - en-us - zh-cn
|
37
|
+
:type x_language: str
|
38
|
+
"""
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
self._starrocks_instance_id = None
|
43
|
+
self._x_language = None
|
44
|
+
self.discriminator = None
|
45
|
+
|
46
|
+
self.starrocks_instance_id = starrocks_instance_id
|
47
|
+
if x_language is not None:
|
48
|
+
self.x_language = x_language
|
49
|
+
|
50
|
+
@property
|
51
|
+
def starrocks_instance_id(self):
|
52
|
+
"""Gets the starrocks_instance_id of this RestartStarrocksInstanceRequest.
|
53
|
+
|
54
|
+
StarRocks实例ID,严格匹配UUID规则。
|
55
|
+
|
56
|
+
:return: The starrocks_instance_id of this RestartStarrocksInstanceRequest.
|
57
|
+
:rtype: str
|
58
|
+
"""
|
59
|
+
return self._starrocks_instance_id
|
60
|
+
|
61
|
+
@starrocks_instance_id.setter
|
62
|
+
def starrocks_instance_id(self, starrocks_instance_id):
|
63
|
+
"""Sets the starrocks_instance_id of this RestartStarrocksInstanceRequest.
|
64
|
+
|
65
|
+
StarRocks实例ID,严格匹配UUID规则。
|
66
|
+
|
67
|
+
:param starrocks_instance_id: The starrocks_instance_id of this RestartStarrocksInstanceRequest.
|
68
|
+
:type starrocks_instance_id: str
|
69
|
+
"""
|
70
|
+
self._starrocks_instance_id = starrocks_instance_id
|
71
|
+
|
72
|
+
@property
|
73
|
+
def x_language(self):
|
74
|
+
"""Gets the x_language of this RestartStarrocksInstanceRequest.
|
75
|
+
|
76
|
+
请求语言类型。默认en-us。 取值范围: - en-us - zh-cn
|
77
|
+
|
78
|
+
:return: The x_language of this RestartStarrocksInstanceRequest.
|
79
|
+
:rtype: str
|
80
|
+
"""
|
81
|
+
return self._x_language
|
82
|
+
|
83
|
+
@x_language.setter
|
84
|
+
def x_language(self, x_language):
|
85
|
+
"""Sets the x_language of this RestartStarrocksInstanceRequest.
|
86
|
+
|
87
|
+
请求语言类型。默认en-us。 取值范围: - en-us - zh-cn
|
88
|
+
|
89
|
+
:param x_language: The x_language of this RestartStarrocksInstanceRequest.
|
90
|
+
:type x_language: str
|
91
|
+
"""
|
92
|
+
self._x_language = x_language
|
93
|
+
|
94
|
+
def to_dict(self):
|
95
|
+
"""Returns the model properties as a dict"""
|
96
|
+
result = {}
|
97
|
+
|
98
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
99
|
+
value = getattr(self, attr)
|
100
|
+
if isinstance(value, list):
|
101
|
+
result[attr] = list(map(
|
102
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
103
|
+
value
|
104
|
+
))
|
105
|
+
elif hasattr(value, "to_dict"):
|
106
|
+
result[attr] = value.to_dict()
|
107
|
+
elif isinstance(value, dict):
|
108
|
+
result[attr] = dict(map(
|
109
|
+
lambda item: (item[0], item[1].to_dict())
|
110
|
+
if hasattr(item[1], "to_dict") else item,
|
111
|
+
value.items()
|
112
|
+
))
|
113
|
+
else:
|
114
|
+
if attr in self.sensitive_list:
|
115
|
+
result[attr] = "****"
|
116
|
+
else:
|
117
|
+
result[attr] = value
|
118
|
+
|
119
|
+
return result
|
120
|
+
|
121
|
+
def to_str(self):
|
122
|
+
"""Returns the string representation of the model"""
|
123
|
+
import simplejson as json
|
124
|
+
if six.PY2:
|
125
|
+
import sys
|
126
|
+
reload(sys)
|
127
|
+
sys.setdefaultencoding("utf-8")
|
128
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
129
|
+
|
130
|
+
def __repr__(self):
|
131
|
+
"""For `print`"""
|
132
|
+
return self.to_str()
|
133
|
+
|
134
|
+
def __eq__(self, other):
|
135
|
+
"""Returns true if both objects are equal"""
|
136
|
+
if not isinstance(other, RestartStarrocksInstanceRequest):
|
137
|
+
return False
|
138
|
+
|
139
|
+
return self.__dict__ == other.__dict__
|
140
|
+
|
141
|
+
def __ne__(self, other):
|
142
|
+
"""Returns true if both objects are not equal"""
|
143
|
+
return not self == other
|