huaweicloudsdkgaussdb 3.1.148__py2.py3-none-any.whl → 3.1.150__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.
@@ -623,6 +623,9 @@ from huaweicloudsdkgaussdb.v3.model.switch_gauss_my_sql_configuration_request im
623
623
  from huaweicloudsdkgaussdb.v3.model.switch_gauss_my_sql_configuration_response import SwitchGaussMySqlConfigurationResponse
624
624
  from huaweicloudsdkgaussdb.v3.model.switch_gauss_my_sql_instance_ssl_request import SwitchGaussMySqlInstanceSslRequest
625
625
  from huaweicloudsdkgaussdb.v3.model.switch_gauss_my_sql_instance_ssl_response import SwitchGaussMySqlInstanceSslResponse
626
+ from huaweicloudsdkgaussdb.v3.model.switch_gauss_my_sql_proxy_eip_request import SwitchGaussMySqlProxyEipRequest
627
+ from huaweicloudsdkgaussdb.v3.model.switch_gauss_my_sql_proxy_eip_request_body import SwitchGaussMySqlProxyEipRequestBody
628
+ from huaweicloudsdkgaussdb.v3.model.switch_gauss_my_sql_proxy_eip_response import SwitchGaussMySqlProxyEipResponse
626
629
  from huaweicloudsdkgaussdb.v3.model.switch_gauss_my_sql_proxy_ssl_request import SwitchGaussMySqlProxySslRequest
627
630
  from huaweicloudsdkgaussdb.v3.model.switch_gauss_my_sql_proxy_ssl_response import SwitchGaussMySqlProxySslResponse
628
631
  from huaweicloudsdkgaussdb.v3.model.switch_proxy_ssl_request import SwitchProxySSLRequest
@@ -8261,6 +8261,77 @@ class GaussDBAsyncClient(Client):
8261
8261
 
8262
8262
  return http_info
8263
8263
 
8264
+ def switch_gauss_my_sql_proxy_eip_async(self, request):
8265
+ r"""Proxy绑定解绑弹性公网IP
8266
+
8267
+ Proxy绑定解绑弹性公网IP。
8268
+
8269
+ Please refer to HUAWEI cloud API Explorer for details.
8270
+
8271
+
8272
+ :param request: Request instance for SwitchGaussMySqlProxyEip
8273
+ :type request: :class:`huaweicloudsdkgaussdb.v3.SwitchGaussMySqlProxyEipRequest`
8274
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.SwitchGaussMySqlProxyEipResponse`
8275
+ """
8276
+ http_info = self._switch_gauss_my_sql_proxy_eip_http_info(request)
8277
+ return self._call_api(**http_info)
8278
+
8279
+ def switch_gauss_my_sql_proxy_eip_async_invoker(self, request):
8280
+ http_info = self._switch_gauss_my_sql_proxy_eip_http_info(request)
8281
+ return AsyncInvoker(self, http_info)
8282
+
8283
+ def _switch_gauss_my_sql_proxy_eip_http_info(self, request):
8284
+ http_info = {
8285
+ "method": "PUT",
8286
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/proxy/{proxy_id}/bind",
8287
+ "request_type": request.__class__.__name__,
8288
+ "response_type": "SwitchGaussMySqlProxyEipResponse"
8289
+ }
8290
+
8291
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
8292
+
8293
+ cname = None
8294
+
8295
+ collection_formats = {}
8296
+
8297
+ path_params = {}
8298
+ if 'instance_id' in local_var_params:
8299
+ path_params['instance_id'] = local_var_params['instance_id']
8300
+ if 'proxy_id' in local_var_params:
8301
+ path_params['proxy_id'] = local_var_params['proxy_id']
8302
+
8303
+ query_params = []
8304
+
8305
+ header_params = {}
8306
+ if 'x_language' in local_var_params:
8307
+ header_params['X-Language'] = local_var_params['x_language']
8308
+
8309
+ form_params = {}
8310
+
8311
+ body = None
8312
+ if 'body' in local_var_params:
8313
+ body = local_var_params['body']
8314
+ if isinstance(request, SdkStreamRequest):
8315
+ body = request.get_file_stream()
8316
+
8317
+ response_headers = []
8318
+
8319
+ header_params['Content-Type'] = http_utils.select_header_content_type(
8320
+ ['application/json;charset=UTF-8'])
8321
+
8322
+ auth_settings = []
8323
+
8324
+ http_info["cname"] = cname
8325
+ http_info["collection_formats"] = collection_formats
8326
+ http_info["path_params"] = path_params
8327
+ http_info["query_params"] = query_params
8328
+ http_info["header_params"] = header_params
8329
+ http_info["post_params"] = form_params
8330
+ http_info["body"] = body
8331
+ http_info["response_headers"] = response_headers
8332
+
8333
+ return http_info
8334
+
8264
8335
  def switch_gauss_my_sql_proxy_ssl_async(self, request):
8265
8336
  r"""开关数据库代理SSL
8266
8337
 
@@ -8261,6 +8261,77 @@ class GaussDBClient(Client):
8261
8261
 
8262
8262
  return http_info
8263
8263
 
8264
+ def switch_gauss_my_sql_proxy_eip(self, request):
8265
+ r"""Proxy绑定解绑弹性公网IP
8266
+
8267
+ Proxy绑定解绑弹性公网IP。
8268
+
8269
+ Please refer to HUAWEI cloud API Explorer for details.
8270
+
8271
+ :param request: Request instance for SwitchGaussMySqlProxyEip
8272
+ :type request: :class:`huaweicloudsdkgaussdb.v3.SwitchGaussMySqlProxyEipRequest`
8273
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.SwitchGaussMySqlProxyEipResponse`
8274
+ """
8275
+ http_info = self._switch_gauss_my_sql_proxy_eip_http_info(request)
8276
+ return self._call_api(**http_info)
8277
+
8278
+ def switch_gauss_my_sql_proxy_eip_invoker(self, request):
8279
+ http_info = self._switch_gauss_my_sql_proxy_eip_http_info(request)
8280
+ return SyncInvoker(self, http_info)
8281
+
8282
+ @classmethod
8283
+ def _switch_gauss_my_sql_proxy_eip_http_info(cls, request):
8284
+ http_info = {
8285
+ "method": "PUT",
8286
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/proxy/{proxy_id}/bind",
8287
+ "request_type": request.__class__.__name__,
8288
+ "response_type": "SwitchGaussMySqlProxyEipResponse"
8289
+ }
8290
+
8291
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
8292
+
8293
+ cname = None
8294
+
8295
+ collection_formats = {}
8296
+
8297
+ path_params = {}
8298
+ if 'instance_id' in local_var_params:
8299
+ path_params['instance_id'] = local_var_params['instance_id']
8300
+ if 'proxy_id' in local_var_params:
8301
+ path_params['proxy_id'] = local_var_params['proxy_id']
8302
+
8303
+ query_params = []
8304
+
8305
+ header_params = {}
8306
+ if 'x_language' in local_var_params:
8307
+ header_params['X-Language'] = local_var_params['x_language']
8308
+
8309
+ form_params = {}
8310
+
8311
+ body = None
8312
+ if 'body' in local_var_params:
8313
+ body = local_var_params['body']
8314
+ if isinstance(request, SdkStreamRequest):
8315
+ body = request.get_file_stream()
8316
+
8317
+ response_headers = []
8318
+
8319
+ header_params['Content-Type'] = http_utils.select_header_content_type(
8320
+ ['application/json;charset=UTF-8'])
8321
+
8322
+ auth_settings = []
8323
+
8324
+ http_info["cname"] = cname
8325
+ http_info["collection_formats"] = collection_formats
8326
+ http_info["path_params"] = path_params
8327
+ http_info["query_params"] = query_params
8328
+ http_info["header_params"] = header_params
8329
+ http_info["post_params"] = form_params
8330
+ http_info["body"] = body
8331
+ http_info["response_headers"] = response_headers
8332
+
8333
+ return http_info
8334
+
8264
8335
  def switch_gauss_my_sql_proxy_ssl(self, request):
8265
8336
  r"""开关数据库代理SSL
8266
8337
 
@@ -621,6 +621,9 @@ from huaweicloudsdkgaussdb.v3.model.switch_gauss_my_sql_configuration_request im
621
621
  from huaweicloudsdkgaussdb.v3.model.switch_gauss_my_sql_configuration_response import SwitchGaussMySqlConfigurationResponse
622
622
  from huaweicloudsdkgaussdb.v3.model.switch_gauss_my_sql_instance_ssl_request import SwitchGaussMySqlInstanceSslRequest
623
623
  from huaweicloudsdkgaussdb.v3.model.switch_gauss_my_sql_instance_ssl_response import SwitchGaussMySqlInstanceSslResponse
624
+ from huaweicloudsdkgaussdb.v3.model.switch_gauss_my_sql_proxy_eip_request import SwitchGaussMySqlProxyEipRequest
625
+ from huaweicloudsdkgaussdb.v3.model.switch_gauss_my_sql_proxy_eip_request_body import SwitchGaussMySqlProxyEipRequestBody
626
+ from huaweicloudsdkgaussdb.v3.model.switch_gauss_my_sql_proxy_eip_response import SwitchGaussMySqlProxyEipResponse
624
627
  from huaweicloudsdkgaussdb.v3.model.switch_gauss_my_sql_proxy_ssl_request import SwitchGaussMySqlProxySslRequest
625
628
  from huaweicloudsdkgaussdb.v3.model.switch_gauss_my_sql_proxy_ssl_response import SwitchGaussMySqlProxySslResponse
626
629
  from huaweicloudsdkgaussdb.v3.model.switch_proxy_ssl_request import SwitchProxySSLRequest
@@ -0,0 +1,196 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class SwitchGaussMySqlProxyEipRequest:
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
+ 'instance_id': 'str',
22
+ 'proxy_id': 'str',
23
+ 'body': 'SwitchGaussMySqlProxyEipRequestBody'
24
+ }
25
+
26
+ attribute_map = {
27
+ 'x_language': 'X-Language',
28
+ 'instance_id': 'instance_id',
29
+ 'proxy_id': 'proxy_id',
30
+ 'body': 'body'
31
+ }
32
+
33
+ def __init__(self, x_language=None, instance_id=None, proxy_id=None, body=None):
34
+ r"""SwitchGaussMySqlProxyEipRequest
35
+
36
+ The model defined in huaweicloud sdk
37
+
38
+ :param x_language: 请求语言类型。默认en-us。 取值范围: - en-us - zh-cn
39
+ :type x_language: str
40
+ :param instance_id: 实例ID,此参数是实例的唯一标识。只能由英文字母、数字组成,后缀为in07,长度为36个字符。
41
+ :type instance_id: str
42
+ :param proxy_id: 数据库代理ID,此参数是代理的唯一标识。只能由英文字母、数字组成,后缀为po01,长度为36个字符。
43
+ :type proxy_id: str
44
+ :param body: Body of the SwitchGaussMySqlProxyEipRequest
45
+ :type body: :class:`huaweicloudsdkgaussdb.v3.SwitchGaussMySqlProxyEipRequestBody`
46
+ """
47
+
48
+
49
+
50
+ self._x_language = None
51
+ self._instance_id = None
52
+ self._proxy_id = None
53
+ self._body = None
54
+ self.discriminator = None
55
+
56
+ if x_language is not None:
57
+ self.x_language = x_language
58
+ self.instance_id = instance_id
59
+ self.proxy_id = proxy_id
60
+ if body is not None:
61
+ self.body = body
62
+
63
+ @property
64
+ def x_language(self):
65
+ r"""Gets the x_language of this SwitchGaussMySqlProxyEipRequest.
66
+
67
+ 请求语言类型。默认en-us。 取值范围: - en-us - zh-cn
68
+
69
+ :return: The x_language of this SwitchGaussMySqlProxyEipRequest.
70
+ :rtype: str
71
+ """
72
+ return self._x_language
73
+
74
+ @x_language.setter
75
+ def x_language(self, x_language):
76
+ r"""Sets the x_language of this SwitchGaussMySqlProxyEipRequest.
77
+
78
+ 请求语言类型。默认en-us。 取值范围: - en-us - zh-cn
79
+
80
+ :param x_language: The x_language of this SwitchGaussMySqlProxyEipRequest.
81
+ :type x_language: str
82
+ """
83
+ self._x_language = x_language
84
+
85
+ @property
86
+ def instance_id(self):
87
+ r"""Gets the instance_id of this SwitchGaussMySqlProxyEipRequest.
88
+
89
+ 实例ID,此参数是实例的唯一标识。只能由英文字母、数字组成,后缀为in07,长度为36个字符。
90
+
91
+ :return: The instance_id of this SwitchGaussMySqlProxyEipRequest.
92
+ :rtype: str
93
+ """
94
+ return self._instance_id
95
+
96
+ @instance_id.setter
97
+ def instance_id(self, instance_id):
98
+ r"""Sets the instance_id of this SwitchGaussMySqlProxyEipRequest.
99
+
100
+ 实例ID,此参数是实例的唯一标识。只能由英文字母、数字组成,后缀为in07,长度为36个字符。
101
+
102
+ :param instance_id: The instance_id of this SwitchGaussMySqlProxyEipRequest.
103
+ :type instance_id: str
104
+ """
105
+ self._instance_id = instance_id
106
+
107
+ @property
108
+ def proxy_id(self):
109
+ r"""Gets the proxy_id of this SwitchGaussMySqlProxyEipRequest.
110
+
111
+ 数据库代理ID,此参数是代理的唯一标识。只能由英文字母、数字组成,后缀为po01,长度为36个字符。
112
+
113
+ :return: The proxy_id of this SwitchGaussMySqlProxyEipRequest.
114
+ :rtype: str
115
+ """
116
+ return self._proxy_id
117
+
118
+ @proxy_id.setter
119
+ def proxy_id(self, proxy_id):
120
+ r"""Sets the proxy_id of this SwitchGaussMySqlProxyEipRequest.
121
+
122
+ 数据库代理ID,此参数是代理的唯一标识。只能由英文字母、数字组成,后缀为po01,长度为36个字符。
123
+
124
+ :param proxy_id: The proxy_id of this SwitchGaussMySqlProxyEipRequest.
125
+ :type proxy_id: str
126
+ """
127
+ self._proxy_id = proxy_id
128
+
129
+ @property
130
+ def body(self):
131
+ r"""Gets the body of this SwitchGaussMySqlProxyEipRequest.
132
+
133
+ :return: The body of this SwitchGaussMySqlProxyEipRequest.
134
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.SwitchGaussMySqlProxyEipRequestBody`
135
+ """
136
+ return self._body
137
+
138
+ @body.setter
139
+ def body(self, body):
140
+ r"""Sets the body of this SwitchGaussMySqlProxyEipRequest.
141
+
142
+ :param body: The body of this SwitchGaussMySqlProxyEipRequest.
143
+ :type body: :class:`huaweicloudsdkgaussdb.v3.SwitchGaussMySqlProxyEipRequestBody`
144
+ """
145
+ self._body = body
146
+
147
+ def to_dict(self):
148
+ """Returns the model properties as a dict"""
149
+ result = {}
150
+
151
+ for attr, _ in six.iteritems(self.openapi_types):
152
+ value = getattr(self, attr)
153
+ if isinstance(value, list):
154
+ result[attr] = list(map(
155
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
156
+ value
157
+ ))
158
+ elif hasattr(value, "to_dict"):
159
+ result[attr] = value.to_dict()
160
+ elif isinstance(value, dict):
161
+ result[attr] = dict(map(
162
+ lambda item: (item[0], item[1].to_dict())
163
+ if hasattr(item[1], "to_dict") else item,
164
+ value.items()
165
+ ))
166
+ else:
167
+ if attr in self.sensitive_list:
168
+ result[attr] = "****"
169
+ else:
170
+ result[attr] = value
171
+
172
+ return result
173
+
174
+ def to_str(self):
175
+ """Returns the string representation of the model"""
176
+ import simplejson as json
177
+ if six.PY2:
178
+ import sys
179
+ reload(sys)
180
+ sys.setdefaultencoding("utf-8")
181
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
182
+
183
+ def __repr__(self):
184
+ """For `print`"""
185
+ return self.to_str()
186
+
187
+ def __eq__(self, other):
188
+ """Returns true if both objects are equal"""
189
+ if not isinstance(other, SwitchGaussMySqlProxyEipRequest):
190
+ return False
191
+
192
+ return self.__dict__ == other.__dict__
193
+
194
+ def __ne__(self, other):
195
+ """Returns true if both objects are not equal"""
196
+ return not self == other
@@ -0,0 +1,171 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class SwitchGaussMySqlProxyEipRequestBody:
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
+ 'public_ip': 'str',
21
+ 'public_ip_id': 'str',
22
+ 'bind': 'str'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'public_ip': 'public_ip',
27
+ 'public_ip_id': 'public_ip_id',
28
+ 'bind': 'bind'
29
+ }
30
+
31
+ def __init__(self, public_ip=None, public_ip_id=None, bind=None):
32
+ r"""SwitchGaussMySqlProxyEipRequestBody
33
+
34
+ The model defined in huaweicloud sdk
35
+
36
+ :param public_ip: 待绑定的弹性公网IP地址。
37
+ :type public_ip: str
38
+ :param public_ip_id: 弹性公网IP地址对应的ID。请求为绑定弹性公网IP时需传入该参数,请求为解绑弹性公网IP时无需传入。
39
+ :type public_ip_id: str
40
+ :param bind: 请求是否为绑定弹性公网IP。 取值范围: - true:表示请求为绑定弹性公网IP。 - false:表示请求为解绑弹性公网IP。
41
+ :type bind: str
42
+ """
43
+
44
+
45
+
46
+ self._public_ip = None
47
+ self._public_ip_id = None
48
+ self._bind = None
49
+ self.discriminator = None
50
+
51
+ self.public_ip = public_ip
52
+ if public_ip_id is not None:
53
+ self.public_ip_id = public_ip_id
54
+ self.bind = bind
55
+
56
+ @property
57
+ def public_ip(self):
58
+ r"""Gets the public_ip of this SwitchGaussMySqlProxyEipRequestBody.
59
+
60
+ 待绑定的弹性公网IP地址。
61
+
62
+ :return: The public_ip of this SwitchGaussMySqlProxyEipRequestBody.
63
+ :rtype: str
64
+ """
65
+ return self._public_ip
66
+
67
+ @public_ip.setter
68
+ def public_ip(self, public_ip):
69
+ r"""Sets the public_ip of this SwitchGaussMySqlProxyEipRequestBody.
70
+
71
+ 待绑定的弹性公网IP地址。
72
+
73
+ :param public_ip: The public_ip of this SwitchGaussMySqlProxyEipRequestBody.
74
+ :type public_ip: str
75
+ """
76
+ self._public_ip = public_ip
77
+
78
+ @property
79
+ def public_ip_id(self):
80
+ r"""Gets the public_ip_id of this SwitchGaussMySqlProxyEipRequestBody.
81
+
82
+ 弹性公网IP地址对应的ID。请求为绑定弹性公网IP时需传入该参数,请求为解绑弹性公网IP时无需传入。
83
+
84
+ :return: The public_ip_id of this SwitchGaussMySqlProxyEipRequestBody.
85
+ :rtype: str
86
+ """
87
+ return self._public_ip_id
88
+
89
+ @public_ip_id.setter
90
+ def public_ip_id(self, public_ip_id):
91
+ r"""Sets the public_ip_id of this SwitchGaussMySqlProxyEipRequestBody.
92
+
93
+ 弹性公网IP地址对应的ID。请求为绑定弹性公网IP时需传入该参数,请求为解绑弹性公网IP时无需传入。
94
+
95
+ :param public_ip_id: The public_ip_id of this SwitchGaussMySqlProxyEipRequestBody.
96
+ :type public_ip_id: str
97
+ """
98
+ self._public_ip_id = public_ip_id
99
+
100
+ @property
101
+ def bind(self):
102
+ r"""Gets the bind of this SwitchGaussMySqlProxyEipRequestBody.
103
+
104
+ 请求是否为绑定弹性公网IP。 取值范围: - true:表示请求为绑定弹性公网IP。 - false:表示请求为解绑弹性公网IP。
105
+
106
+ :return: The bind of this SwitchGaussMySqlProxyEipRequestBody.
107
+ :rtype: str
108
+ """
109
+ return self._bind
110
+
111
+ @bind.setter
112
+ def bind(self, bind):
113
+ r"""Sets the bind of this SwitchGaussMySqlProxyEipRequestBody.
114
+
115
+ 请求是否为绑定弹性公网IP。 取值范围: - true:表示请求为绑定弹性公网IP。 - false:表示请求为解绑弹性公网IP。
116
+
117
+ :param bind: The bind of this SwitchGaussMySqlProxyEipRequestBody.
118
+ :type bind: str
119
+ """
120
+ self._bind = bind
121
+
122
+ def to_dict(self):
123
+ """Returns the model properties as a dict"""
124
+ result = {}
125
+
126
+ for attr, _ in six.iteritems(self.openapi_types):
127
+ value = getattr(self, attr)
128
+ if isinstance(value, list):
129
+ result[attr] = list(map(
130
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
131
+ value
132
+ ))
133
+ elif hasattr(value, "to_dict"):
134
+ result[attr] = value.to_dict()
135
+ elif isinstance(value, dict):
136
+ result[attr] = dict(map(
137
+ lambda item: (item[0], item[1].to_dict())
138
+ if hasattr(item[1], "to_dict") else item,
139
+ value.items()
140
+ ))
141
+ else:
142
+ if attr in self.sensitive_list:
143
+ result[attr] = "****"
144
+ else:
145
+ result[attr] = value
146
+
147
+ return result
148
+
149
+ def to_str(self):
150
+ """Returns the string representation of the model"""
151
+ import simplejson as json
152
+ if six.PY2:
153
+ import sys
154
+ reload(sys)
155
+ sys.setdefaultencoding("utf-8")
156
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
157
+
158
+ def __repr__(self):
159
+ """For `print`"""
160
+ return self.to_str()
161
+
162
+ def __eq__(self, other):
163
+ """Returns true if both objects are equal"""
164
+ if not isinstance(other, SwitchGaussMySqlProxyEipRequestBody):
165
+ return False
166
+
167
+ return self.__dict__ == other.__dict__
168
+
169
+ def __ne__(self, other):
170
+ """Returns true if both objects are not equal"""
171
+ return not self == other
@@ -0,0 +1,116 @@
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 SwitchGaussMySqlProxyEipResponse(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
+ 'job_id': 'str'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'job_id': 'job_id'
26
+ }
27
+
28
+ def __init__(self, job_id=None):
29
+ r"""SwitchGaussMySqlProxyEipResponse
30
+
31
+ The model defined in huaweicloud sdk
32
+
33
+ :param job_id: 工作流ID。
34
+ :type job_id: str
35
+ """
36
+
37
+ super(SwitchGaussMySqlProxyEipResponse, self).__init__()
38
+
39
+ self._job_id = None
40
+ self.discriminator = None
41
+
42
+ if job_id is not None:
43
+ self.job_id = job_id
44
+
45
+ @property
46
+ def job_id(self):
47
+ r"""Gets the job_id of this SwitchGaussMySqlProxyEipResponse.
48
+
49
+ 工作流ID。
50
+
51
+ :return: The job_id of this SwitchGaussMySqlProxyEipResponse.
52
+ :rtype: str
53
+ """
54
+ return self._job_id
55
+
56
+ @job_id.setter
57
+ def job_id(self, job_id):
58
+ r"""Sets the job_id of this SwitchGaussMySqlProxyEipResponse.
59
+
60
+ 工作流ID。
61
+
62
+ :param job_id: The job_id of this SwitchGaussMySqlProxyEipResponse.
63
+ :type job_id: str
64
+ """
65
+ self._job_id = job_id
66
+
67
+ def to_dict(self):
68
+ """Returns the model properties as a dict"""
69
+ result = {}
70
+
71
+ for attr, _ in six.iteritems(self.openapi_types):
72
+ value = getattr(self, attr)
73
+ if isinstance(value, list):
74
+ result[attr] = list(map(
75
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
76
+ value
77
+ ))
78
+ elif hasattr(value, "to_dict"):
79
+ result[attr] = value.to_dict()
80
+ elif isinstance(value, dict):
81
+ result[attr] = dict(map(
82
+ lambda item: (item[0], item[1].to_dict())
83
+ if hasattr(item[1], "to_dict") else item,
84
+ value.items()
85
+ ))
86
+ else:
87
+ if attr in self.sensitive_list:
88
+ result[attr] = "****"
89
+ else:
90
+ result[attr] = value
91
+
92
+ return result
93
+
94
+ def to_str(self):
95
+ """Returns the string representation of the model"""
96
+ import simplejson as json
97
+ if six.PY2:
98
+ import sys
99
+ reload(sys)
100
+ sys.setdefaultencoding("utf-8")
101
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
102
+
103
+ def __repr__(self):
104
+ """For `print`"""
105
+ return self.to_str()
106
+
107
+ def __eq__(self, other):
108
+ """Returns true if both objects are equal"""
109
+ if not isinstance(other, SwitchGaussMySqlProxyEipResponse):
110
+ return False
111
+
112
+ return self.__dict__ == other.__dict__
113
+
114
+ def __ne__(self, other):
115
+ """Returns true if both objects are not equal"""
116
+ return not self == other
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: huaweicloudsdkgaussdb
3
- Version: 3.1.148
3
+ Version: 3.1.150
4
4
  Summary: GaussDB
5
5
  Home-page: https://github.com/huaweicloud/huaweicloud-sdk-python-v3
6
6
  Author: HuaweiCloud SDK
@@ -22,6 +22,6 @@ Classifier: Topic :: Software Development
22
22
  Requires-Python: >=2.7,!=3.0.*,!=3.1.*,!=3.2.*
23
23
  Description-Content-Type: text/markdown
24
24
  License-File: LICENSE
25
- Requires-Dist: huaweicloudsdkcore>=3.1.148
25
+ Requires-Dist: huaweicloudsdkcore>=3.1.150
26
26
 
27
27
  See detailed information in [huaweicloud-sdk-python-v3](https://github.com/huaweicloud/huaweicloud-sdk-python-v3).
@@ -1,8 +1,8 @@
1
1
  huaweicloudsdkgaussdb/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- huaweicloudsdkgaussdb/v3/__init__.py,sha256=eMRCc0AI_NQPxWxn3k-Eu_0W-rh9RDS8xpmsgp9e6J4,78749
3
- huaweicloudsdkgaussdb/v3/gaussdb_async_client.py,sha256=usscksrOl2b-XcpIYA0_ZAWCq-UcDiD1AsTEde-OnRM,525325
4
- huaweicloudsdkgaussdb/v3/gaussdb_client.py,sha256=jCrev37HmWERvDXfsoRveBmSp1uPd9TxpQy6Z64xNB8,525642
5
- huaweicloudsdkgaussdb/v3/model/__init__.py,sha256=7omEInWRcm7M0ByvT-2TZTn0HL80rdV7tbYNjWp6ixA,78639
2
+ huaweicloudsdkgaussdb/v3/__init__.py,sha256=waVSPOuqhm4KqMCf9xLuWXNoXMn5-P60J6wrBvrFVLs,79099
3
+ huaweicloudsdkgaussdb/v3/gaussdb_async_client.py,sha256=SMxg10NUvDizY2P5lMuH2Ul18K3lo5SruLdd-pI1lDI,527876
4
+ huaweicloudsdkgaussdb/v3/gaussdb_client.py,sha256=jrkHNQZ-qV7FigAlAAJWoCQvXBr0XT0XkpwFYxmZUdo,528195
5
+ huaweicloudsdkgaussdb/v3/model/__init__.py,sha256=QFQyPoEyzUeuCG3ZqPk6bnUoy1W9QKoUCUojNMfw7HU,78989
6
6
  huaweicloudsdkgaussdb/v3/model/access_control_rule.py,sha256=IkyvHCH9S-nShhd6QfE8a2CfSdify8cM4tVs0u0loCI,3905
7
7
  huaweicloudsdkgaussdb/v3/model/add_database_permission_request.py,sha256=YMCxZWH-nbznZG83vo1c_KJ6_7hdCOiFy-p87CHysVQ,4915
8
8
  huaweicloudsdkgaussdb/v3/model/add_database_permission_response.py,sha256=5FV1kghmVsrbBOqh3Ue5JjyEgBmSSizx5A9zjIodOpw,3283
@@ -621,6 +621,9 @@ huaweicloudsdkgaussdb/v3/model/switch_gauss_my_sql_configuration_request.py,sha2
621
621
  huaweicloudsdkgaussdb/v3/model/switch_gauss_my_sql_configuration_response.py,sha256=OOTYOiuqW-j0ZU5cNjm4EI2LGLK7nWiiEEjf5drDa5c,3347
622
622
  huaweicloudsdkgaussdb/v3/model/switch_gauss_my_sql_instance_ssl_request.py,sha256=hLstcpCD1nmCl0wlDpoK5gQ7mWlbf5RkyABFBMjJr9Y,5023
623
623
  huaweicloudsdkgaussdb/v3/model/switch_gauss_my_sql_instance_ssl_response.py,sha256=aO6RNAexCyKNWI0xLwmgRQEGvP9GfU13Ope2m_ud8fo,3268
624
+ huaweicloudsdkgaussdb/v3/model/switch_gauss_my_sql_proxy_eip_request.py,sha256=3uRWPnHYD_Lgh6xZIiDCx0i9-YloXgUgFdUxsyvAtT0,6621
625
+ huaweicloudsdkgaussdb/v3/model/switch_gauss_my_sql_proxy_eip_request_body.py,sha256=vfqAOkwCP0RsUZFkyBvgj2FYt-cJByxlojHQe3g7hh0,5646
626
+ huaweicloudsdkgaussdb/v3/model/switch_gauss_my_sql_proxy_eip_response.py,sha256=Ze1z0AI3qYoE24VWqDmB9SPvB1mEGhjG-IJ3rWSRIwI,3253
624
627
  huaweicloudsdkgaussdb/v3/model/switch_gauss_my_sql_proxy_ssl_request.py,sha256=ln9FIi244MrOXIH2OZOfgH3UrIFNffQKyPc0fG5kIyM,5965
625
628
  huaweicloudsdkgaussdb/v3/model/switch_gauss_my_sql_proxy_ssl_response.py,sha256=SBx1-T8QQpGo8shn1US16rHsDGQdToMQc817wDptk_U,3244
626
629
  huaweicloudsdkgaussdb/v3/model/switch_proxy_ssl_request.py,sha256=ZeqVR2iDJIqC6NylvkgWkNNiCsIqF89wOajD1rLNTdw,3414
@@ -742,8 +745,8 @@ huaweicloudsdkgaussdb/v3/model/upgrade_sr_kernel_version_response.py,sha256=KvZR
742
745
  huaweicloudsdkgaussdb/v3/model/user_sync_req.py,sha256=zhU_7jBbK_BaGW5FzndzKKHjGHIhMjDbwGQiQ57oFH8,2994
743
746
  huaweicloudsdkgaussdb/v3/region/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
744
747
  huaweicloudsdkgaussdb/v3/region/gaussdb_region.py,sha256=0vAaSAswkafpnej5GNqX7rGHtq2vGs6HsrIxoE3qWlw,3442
745
- huaweicloudsdkgaussdb-3.1.148.dist-info/LICENSE,sha256=4_VSTLuxcsybRG9N4Isktlj1rAIBBsfl0Tjc0gBTijo,604
746
- huaweicloudsdkgaussdb-3.1.148.dist-info/METADATA,sha256=O81FhCRCDX3GdsLIk7GjUQVkYzIW8mRfw6sOEnICLFo,1147
747
- huaweicloudsdkgaussdb-3.1.148.dist-info/WHEEL,sha256=Kh9pAotZVRFj97E15yTA4iADqXdQfIVTHcNaZTjxeGM,110
748
- huaweicloudsdkgaussdb-3.1.148.dist-info/top_level.txt,sha256=_exDbngu-ivLzntD1UgfR3aRI7WoXQUaayhgYshbpyA,22
749
- huaweicloudsdkgaussdb-3.1.148.dist-info/RECORD,,
748
+ huaweicloudsdkgaussdb-3.1.150.dist-info/LICENSE,sha256=4_VSTLuxcsybRG9N4Isktlj1rAIBBsfl0Tjc0gBTijo,604
749
+ huaweicloudsdkgaussdb-3.1.150.dist-info/METADATA,sha256=_wzCmpFyD32vB4bmTlGm4CCotcLYCzS6sNnSfFxLcik,1147
750
+ huaweicloudsdkgaussdb-3.1.150.dist-info/WHEEL,sha256=Kh9pAotZVRFj97E15yTA4iADqXdQfIVTHcNaZTjxeGM,110
751
+ huaweicloudsdkgaussdb-3.1.150.dist-info/top_level.txt,sha256=_exDbngu-ivLzntD1UgfR3aRI7WoXQUaayhgYshbpyA,22
752
+ huaweicloudsdkgaussdb-3.1.150.dist-info/RECORD,,