huaweicloudsdkgaussdb 3.1.97__py2.py3-none-any.whl → 3.1.98__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.
Files changed (21) hide show
  1. huaweicloudsdkgaussdb/v3/__init__.py +11 -0
  2. huaweicloudsdkgaussdb/v3/gaussdb_async_client.py +282 -0
  3. huaweicloudsdkgaussdb/v3/gaussdb_client.py +282 -0
  4. huaweicloudsdkgaussdb/v3/model/__init__.py +11 -0
  5. huaweicloudsdkgaussdb/v3/model/modify_gauss_my_sql_proxy_route_mode_request_body.py +3 -3
  6. huaweicloudsdkgaussdb/v3/model/proxy_update_proxy_name_request.py +114 -0
  7. huaweicloudsdkgaussdb/v3/model/proxy_upgrade_proxy_version_request.py +142 -0
  8. huaweicloudsdkgaussdb/v3/model/proxy_upgrade_version_detail.py +202 -0
  9. huaweicloudsdkgaussdb/v3/model/show_proxy_ipgroup_request.py +171 -0
  10. huaweicloudsdkgaussdb/v3/model/show_proxy_ipgroup_response.py +174 -0
  11. huaweicloudsdkgaussdb/v3/model/show_proxy_version_request.py +199 -0
  12. huaweicloudsdkgaussdb/v3/model/show_proxy_version_response.py +174 -0
  13. huaweicloudsdkgaussdb/v3/model/update_proxy_name_request.py +196 -0
  14. huaweicloudsdkgaussdb/v3/model/update_proxy_name_response.py +116 -0
  15. huaweicloudsdkgaussdb/v3/model/upgrade_proxy_version_request.py +196 -0
  16. huaweicloudsdkgaussdb/v3/model/upgrade_proxy_version_response.py +116 -0
  17. {huaweicloudsdkgaussdb-3.1.97.dist-info → huaweicloudsdkgaussdb-3.1.98.dist-info}/METADATA +2 -2
  18. {huaweicloudsdkgaussdb-3.1.97.dist-info → huaweicloudsdkgaussdb-3.1.98.dist-info}/RECORD +21 -10
  19. {huaweicloudsdkgaussdb-3.1.97.dist-info → huaweicloudsdkgaussdb-3.1.98.dist-info}/LICENSE +0 -0
  20. {huaweicloudsdkgaussdb-3.1.97.dist-info → huaweicloudsdkgaussdb-3.1.98.dist-info}/WHEEL +0 -0
  21. {huaweicloudsdkgaussdb-3.1.97.dist-info → huaweicloudsdkgaussdb-3.1.98.dist-info}/top_level.txt +0 -0
@@ -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 UpdateProxyNameRequest:
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
+ 'instance_id': 'str',
21
+ 'proxy_id': 'str',
22
+ 'x_language': 'str',
23
+ 'body': 'ProxyUpdateProxyNameRequest'
24
+ }
25
+
26
+ attribute_map = {
27
+ 'instance_id': 'instance_id',
28
+ 'proxy_id': 'proxy_id',
29
+ 'x_language': 'X-Language',
30
+ 'body': 'body'
31
+ }
32
+
33
+ def __init__(self, instance_id=None, proxy_id=None, x_language=None, body=None):
34
+ """UpdateProxyNameRequest
35
+
36
+ The model defined in huaweicloud sdk
37
+
38
+ :param instance_id: 实例ID,严格匹配UUID规则。
39
+ :type instance_id: str
40
+ :param proxy_id: 数据库代理ID,严格匹配UUID规则。
41
+ :type proxy_id: str
42
+ :param x_language: 语言。
43
+ :type x_language: str
44
+ :param body: Body of the UpdateProxyNameRequest
45
+ :type body: :class:`huaweicloudsdkgaussdb.v3.ProxyUpdateProxyNameRequest`
46
+ """
47
+
48
+
49
+
50
+ self._instance_id = None
51
+ self._proxy_id = None
52
+ self._x_language = None
53
+ self._body = None
54
+ self.discriminator = None
55
+
56
+ self.instance_id = instance_id
57
+ self.proxy_id = proxy_id
58
+ if x_language is not None:
59
+ self.x_language = x_language
60
+ if body is not None:
61
+ self.body = body
62
+
63
+ @property
64
+ def instance_id(self):
65
+ """Gets the instance_id of this UpdateProxyNameRequest.
66
+
67
+ 实例ID,严格匹配UUID规则。
68
+
69
+ :return: The instance_id of this UpdateProxyNameRequest.
70
+ :rtype: str
71
+ """
72
+ return self._instance_id
73
+
74
+ @instance_id.setter
75
+ def instance_id(self, instance_id):
76
+ """Sets the instance_id of this UpdateProxyNameRequest.
77
+
78
+ 实例ID,严格匹配UUID规则。
79
+
80
+ :param instance_id: The instance_id of this UpdateProxyNameRequest.
81
+ :type instance_id: str
82
+ """
83
+ self._instance_id = instance_id
84
+
85
+ @property
86
+ def proxy_id(self):
87
+ """Gets the proxy_id of this UpdateProxyNameRequest.
88
+
89
+ 数据库代理ID,严格匹配UUID规则。
90
+
91
+ :return: The proxy_id of this UpdateProxyNameRequest.
92
+ :rtype: str
93
+ """
94
+ return self._proxy_id
95
+
96
+ @proxy_id.setter
97
+ def proxy_id(self, proxy_id):
98
+ """Sets the proxy_id of this UpdateProxyNameRequest.
99
+
100
+ 数据库代理ID,严格匹配UUID规则。
101
+
102
+ :param proxy_id: The proxy_id of this UpdateProxyNameRequest.
103
+ :type proxy_id: str
104
+ """
105
+ self._proxy_id = proxy_id
106
+
107
+ @property
108
+ def x_language(self):
109
+ """Gets the x_language of this UpdateProxyNameRequest.
110
+
111
+ 语言。
112
+
113
+ :return: The x_language of this UpdateProxyNameRequest.
114
+ :rtype: str
115
+ """
116
+ return self._x_language
117
+
118
+ @x_language.setter
119
+ def x_language(self, x_language):
120
+ """Sets the x_language of this UpdateProxyNameRequest.
121
+
122
+ 语言。
123
+
124
+ :param x_language: The x_language of this UpdateProxyNameRequest.
125
+ :type x_language: str
126
+ """
127
+ self._x_language = x_language
128
+
129
+ @property
130
+ def body(self):
131
+ """Gets the body of this UpdateProxyNameRequest.
132
+
133
+ :return: The body of this UpdateProxyNameRequest.
134
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ProxyUpdateProxyNameRequest`
135
+ """
136
+ return self._body
137
+
138
+ @body.setter
139
+ def body(self, body):
140
+ """Sets the body of this UpdateProxyNameRequest.
141
+
142
+ :param body: The body of this UpdateProxyNameRequest.
143
+ :type body: :class:`huaweicloudsdkgaussdb.v3.ProxyUpdateProxyNameRequest`
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, UpdateProxyNameRequest):
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,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 UpdateProxyNameResponse(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
+ 'result': 'str'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'result': 'result'
26
+ }
27
+
28
+ def __init__(self, result=None):
29
+ """UpdateProxyNameResponse
30
+
31
+ The model defined in huaweicloud sdk
32
+
33
+ :param result: 修改成功或者失败。
34
+ :type result: str
35
+ """
36
+
37
+ super(UpdateProxyNameResponse, self).__init__()
38
+
39
+ self._result = None
40
+ self.discriminator = None
41
+
42
+ if result is not None:
43
+ self.result = result
44
+
45
+ @property
46
+ def result(self):
47
+ """Gets the result of this UpdateProxyNameResponse.
48
+
49
+ 修改成功或者失败。
50
+
51
+ :return: The result of this UpdateProxyNameResponse.
52
+ :rtype: str
53
+ """
54
+ return self._result
55
+
56
+ @result.setter
57
+ def result(self, result):
58
+ """Sets the result of this UpdateProxyNameResponse.
59
+
60
+ 修改成功或者失败。
61
+
62
+ :param result: The result of this UpdateProxyNameResponse.
63
+ :type result: str
64
+ """
65
+ self._result = result
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, UpdateProxyNameResponse):
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
@@ -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 UpgradeProxyVersionRequest:
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': 'ProxyUpgradeProxyVersionRequest'
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
+ """UpgradeProxyVersionRequest
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,严格匹配UUID规则。
41
+ :type instance_id: str
42
+ :param proxy_id: 数据库代理ID,严格匹配UUID规则。
43
+ :type proxy_id: str
44
+ :param body: Body of the UpgradeProxyVersionRequest
45
+ :type body: :class:`huaweicloudsdkgaussdb.v3.ProxyUpgradeProxyVersionRequest`
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
+ """Gets the x_language of this UpgradeProxyVersionRequest.
66
+
67
+ 请求语言类型。默认en-us。 取值范围: - en-us - zh-cn
68
+
69
+ :return: The x_language of this UpgradeProxyVersionRequest.
70
+ :rtype: str
71
+ """
72
+ return self._x_language
73
+
74
+ @x_language.setter
75
+ def x_language(self, x_language):
76
+ """Sets the x_language of this UpgradeProxyVersionRequest.
77
+
78
+ 请求语言类型。默认en-us。 取值范围: - en-us - zh-cn
79
+
80
+ :param x_language: The x_language of this UpgradeProxyVersionRequest.
81
+ :type x_language: str
82
+ """
83
+ self._x_language = x_language
84
+
85
+ @property
86
+ def instance_id(self):
87
+ """Gets the instance_id of this UpgradeProxyVersionRequest.
88
+
89
+ 实例ID,严格匹配UUID规则。
90
+
91
+ :return: The instance_id of this UpgradeProxyVersionRequest.
92
+ :rtype: str
93
+ """
94
+ return self._instance_id
95
+
96
+ @instance_id.setter
97
+ def instance_id(self, instance_id):
98
+ """Sets the instance_id of this UpgradeProxyVersionRequest.
99
+
100
+ 实例ID,严格匹配UUID规则。
101
+
102
+ :param instance_id: The instance_id of this UpgradeProxyVersionRequest.
103
+ :type instance_id: str
104
+ """
105
+ self._instance_id = instance_id
106
+
107
+ @property
108
+ def proxy_id(self):
109
+ """Gets the proxy_id of this UpgradeProxyVersionRequest.
110
+
111
+ 数据库代理ID,严格匹配UUID规则。
112
+
113
+ :return: The proxy_id of this UpgradeProxyVersionRequest.
114
+ :rtype: str
115
+ """
116
+ return self._proxy_id
117
+
118
+ @proxy_id.setter
119
+ def proxy_id(self, proxy_id):
120
+ """Sets the proxy_id of this UpgradeProxyVersionRequest.
121
+
122
+ 数据库代理ID,严格匹配UUID规则。
123
+
124
+ :param proxy_id: The proxy_id of this UpgradeProxyVersionRequest.
125
+ :type proxy_id: str
126
+ """
127
+ self._proxy_id = proxy_id
128
+
129
+ @property
130
+ def body(self):
131
+ """Gets the body of this UpgradeProxyVersionRequest.
132
+
133
+ :return: The body of this UpgradeProxyVersionRequest.
134
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ProxyUpgradeProxyVersionRequest`
135
+ """
136
+ return self._body
137
+
138
+ @body.setter
139
+ def body(self, body):
140
+ """Sets the body of this UpgradeProxyVersionRequest.
141
+
142
+ :param body: The body of this UpgradeProxyVersionRequest.
143
+ :type body: :class:`huaweicloudsdkgaussdb.v3.ProxyUpgradeProxyVersionRequest`
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, UpgradeProxyVersionRequest):
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,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 UpgradeProxyVersionResponse(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
+ 'update_result': 'list[ProxyUpgradeVersionDetail]'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'update_result': 'update_result'
26
+ }
27
+
28
+ def __init__(self, update_result=None):
29
+ """UpgradeProxyVersionResponse
30
+
31
+ The model defined in huaweicloud sdk
32
+
33
+ :param update_result: 数据库代理升级信息列表。
34
+ :type update_result: list[:class:`huaweicloudsdkgaussdb.v3.ProxyUpgradeVersionDetail`]
35
+ """
36
+
37
+ super(UpgradeProxyVersionResponse, self).__init__()
38
+
39
+ self._update_result = None
40
+ self.discriminator = None
41
+
42
+ if update_result is not None:
43
+ self.update_result = update_result
44
+
45
+ @property
46
+ def update_result(self):
47
+ """Gets the update_result of this UpgradeProxyVersionResponse.
48
+
49
+ 数据库代理升级信息列表。
50
+
51
+ :return: The update_result of this UpgradeProxyVersionResponse.
52
+ :rtype: list[:class:`huaweicloudsdkgaussdb.v3.ProxyUpgradeVersionDetail`]
53
+ """
54
+ return self._update_result
55
+
56
+ @update_result.setter
57
+ def update_result(self, update_result):
58
+ """Sets the update_result of this UpgradeProxyVersionResponse.
59
+
60
+ 数据库代理升级信息列表。
61
+
62
+ :param update_result: The update_result of this UpgradeProxyVersionResponse.
63
+ :type update_result: list[:class:`huaweicloudsdkgaussdb.v3.ProxyUpgradeVersionDetail`]
64
+ """
65
+ self._update_result = update_result
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, UpgradeProxyVersionResponse):
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.97
3
+ Version: 3.1.98
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.97
25
+ Requires-Dist: huaweicloudsdkcore >=3.1.98
26
26
 
27
27
  See detailed information in [huaweicloud-sdk-python-v3](https://github.com/huaweicloud/huaweicloud-sdk-python-v3).