huaweicloudsdkgaussdbforopengauss 3.1.111__py2.py3-none-any.whl → 3.1.113__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 +2 -0
- huaweicloudsdkgaussdbforopengauss/v3/gaussdbforopengauss_async_client.py +69 -0
- huaweicloudsdkgaussdbforopengauss/v3/gaussdbforopengauss_client.py +69 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/__init__.py +2 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/create_gauss_db_instance_request.py +169 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/create_gauss_db_instance_response.py +170 -0
- {huaweicloudsdkgaussdbforopengauss-3.1.111.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.113.dist-info}/METADATA +2 -2
- {huaweicloudsdkgaussdbforopengauss-3.1.111.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.113.dist-info}/RECORD +11 -9
- {huaweicloudsdkgaussdbforopengauss-3.1.111.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.113.dist-info}/LICENSE +0 -0
- {huaweicloudsdkgaussdbforopengauss-3.1.111.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.113.dist-info}/WHEEL +0 -0
- {huaweicloudsdkgaussdbforopengauss-3.1.111.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.113.dist-info}/top_level.txt +0 -0
@@ -43,6 +43,8 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.create_db_instance_request impor
|
|
43
43
|
from huaweicloudsdkgaussdbforopengauss.v3.model.create_db_instance_response import CreateDbInstanceResponse
|
44
44
|
from huaweicloudsdkgaussdbforopengauss.v3.model.create_db_user_request import CreateDbUserRequest
|
45
45
|
from huaweicloudsdkgaussdbforopengauss.v3.model.create_db_user_response import CreateDbUserResponse
|
46
|
+
from huaweicloudsdkgaussdbforopengauss.v3.model.create_gauss_db_instance_request import CreateGaussDbInstanceRequest
|
47
|
+
from huaweicloudsdkgaussdbforopengauss.v3.model.create_gauss_db_instance_response import CreateGaussDbInstanceResponse
|
46
48
|
from huaweicloudsdkgaussdbforopengauss.v3.model.create_instance_request import CreateInstanceRequest
|
47
49
|
from huaweicloudsdkgaussdbforopengauss.v3.model.create_instance_resp_item import CreateInstanceRespItem
|
48
50
|
from huaweicloudsdkgaussdbforopengauss.v3.model.create_instance_response import CreateInstanceResponse
|
@@ -718,6 +718,75 @@ class GaussDBforopenGaussAsyncClient(Client):
|
|
718
718
|
|
719
719
|
return http_info
|
720
720
|
|
721
|
+
def create_gauss_db_instance_async(self, request):
|
722
|
+
"""创建数据库实例
|
723
|
+
|
724
|
+
创建数据库实例,仅支持IAM5的新平面认证方式(AK/SK认证方式)。
|
725
|
+
|
726
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
727
|
+
|
728
|
+
|
729
|
+
:param request: Request instance for CreateGaussDbInstance
|
730
|
+
:type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.CreateGaussDbInstanceRequest`
|
731
|
+
:rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.CreateGaussDbInstanceResponse`
|
732
|
+
"""
|
733
|
+
http_info = self._create_gauss_db_instance_http_info(request)
|
734
|
+
return self._call_api(**http_info)
|
735
|
+
|
736
|
+
def create_gauss_db_instance_async_invoker(self, request):
|
737
|
+
http_info = self._create_gauss_db_instance_http_info(request)
|
738
|
+
return AsyncInvoker(self, http_info)
|
739
|
+
|
740
|
+
def _create_gauss_db_instance_http_info(self, request):
|
741
|
+
http_info = {
|
742
|
+
"method": "POST",
|
743
|
+
"resource_path": "/v5/{project_id}/instances",
|
744
|
+
"request_type": request.__class__.__name__,
|
745
|
+
"response_type": "CreateGaussDbInstanceResponse"
|
746
|
+
}
|
747
|
+
|
748
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
749
|
+
|
750
|
+
cname = None
|
751
|
+
|
752
|
+
collection_formats = {}
|
753
|
+
|
754
|
+
path_params = {}
|
755
|
+
|
756
|
+
query_params = []
|
757
|
+
|
758
|
+
header_params = {}
|
759
|
+
if 'x_language' in local_var_params:
|
760
|
+
header_params['X-Language'] = local_var_params['x_language']
|
761
|
+
if 'subscription_agency' in local_var_params:
|
762
|
+
header_params['Subscription-Agency'] = local_var_params['subscription_agency']
|
763
|
+
|
764
|
+
form_params = {}
|
765
|
+
|
766
|
+
body = None
|
767
|
+
if 'body' in local_var_params:
|
768
|
+
body = local_var_params['body']
|
769
|
+
if isinstance(request, SdkStreamRequest):
|
770
|
+
body = request.get_file_stream()
|
771
|
+
|
772
|
+
response_headers = []
|
773
|
+
|
774
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
775
|
+
['application/json;charset=UTF-8'])
|
776
|
+
|
777
|
+
auth_settings = []
|
778
|
+
|
779
|
+
http_info["cname"] = cname
|
780
|
+
http_info["collection_formats"] = collection_formats
|
781
|
+
http_info["path_params"] = path_params
|
782
|
+
http_info["query_params"] = query_params
|
783
|
+
http_info["header_params"] = header_params
|
784
|
+
http_info["post_params"] = form_params
|
785
|
+
http_info["body"] = body
|
786
|
+
http_info["response_headers"] = response_headers
|
787
|
+
|
788
|
+
return http_info
|
789
|
+
|
721
790
|
def create_instance_async(self, request):
|
722
791
|
"""创建数据库实例
|
723
792
|
|
@@ -718,6 +718,75 @@ class GaussDBforopenGaussClient(Client):
|
|
718
718
|
|
719
719
|
return http_info
|
720
720
|
|
721
|
+
def create_gauss_db_instance(self, request):
|
722
|
+
"""创建数据库实例
|
723
|
+
|
724
|
+
创建数据库实例,仅支持IAM5的新平面认证方式(AK/SK认证方式)。
|
725
|
+
|
726
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
727
|
+
|
728
|
+
:param request: Request instance for CreateGaussDbInstance
|
729
|
+
:type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.CreateGaussDbInstanceRequest`
|
730
|
+
:rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.CreateGaussDbInstanceResponse`
|
731
|
+
"""
|
732
|
+
http_info = self._create_gauss_db_instance_http_info(request)
|
733
|
+
return self._call_api(**http_info)
|
734
|
+
|
735
|
+
def create_gauss_db_instance_invoker(self, request):
|
736
|
+
http_info = self._create_gauss_db_instance_http_info(request)
|
737
|
+
return SyncInvoker(self, http_info)
|
738
|
+
|
739
|
+
@classmethod
|
740
|
+
def _create_gauss_db_instance_http_info(cls, request):
|
741
|
+
http_info = {
|
742
|
+
"method": "POST",
|
743
|
+
"resource_path": "/v5/{project_id}/instances",
|
744
|
+
"request_type": request.__class__.__name__,
|
745
|
+
"response_type": "CreateGaussDbInstanceResponse"
|
746
|
+
}
|
747
|
+
|
748
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
749
|
+
|
750
|
+
cname = None
|
751
|
+
|
752
|
+
collection_formats = {}
|
753
|
+
|
754
|
+
path_params = {}
|
755
|
+
|
756
|
+
query_params = []
|
757
|
+
|
758
|
+
header_params = {}
|
759
|
+
if 'x_language' in local_var_params:
|
760
|
+
header_params['X-Language'] = local_var_params['x_language']
|
761
|
+
if 'subscription_agency' in local_var_params:
|
762
|
+
header_params['Subscription-Agency'] = local_var_params['subscription_agency']
|
763
|
+
|
764
|
+
form_params = {}
|
765
|
+
|
766
|
+
body = None
|
767
|
+
if 'body' in local_var_params:
|
768
|
+
body = local_var_params['body']
|
769
|
+
if isinstance(request, SdkStreamRequest):
|
770
|
+
body = request.get_file_stream()
|
771
|
+
|
772
|
+
response_headers = []
|
773
|
+
|
774
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
775
|
+
['application/json;charset=UTF-8'])
|
776
|
+
|
777
|
+
auth_settings = []
|
778
|
+
|
779
|
+
http_info["cname"] = cname
|
780
|
+
http_info["collection_formats"] = collection_formats
|
781
|
+
http_info["path_params"] = path_params
|
782
|
+
http_info["query_params"] = query_params
|
783
|
+
http_info["header_params"] = header_params
|
784
|
+
http_info["post_params"] = form_params
|
785
|
+
http_info["body"] = body
|
786
|
+
http_info["response_headers"] = response_headers
|
787
|
+
|
788
|
+
return http_info
|
789
|
+
|
721
790
|
def create_instance(self, request):
|
722
791
|
"""创建数据库实例
|
723
792
|
|
@@ -41,6 +41,8 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.create_db_instance_request impor
|
|
41
41
|
from huaweicloudsdkgaussdbforopengauss.v3.model.create_db_instance_response import CreateDbInstanceResponse
|
42
42
|
from huaweicloudsdkgaussdbforopengauss.v3.model.create_db_user_request import CreateDbUserRequest
|
43
43
|
from huaweicloudsdkgaussdbforopengauss.v3.model.create_db_user_response import CreateDbUserResponse
|
44
|
+
from huaweicloudsdkgaussdbforopengauss.v3.model.create_gauss_db_instance_request import CreateGaussDbInstanceRequest
|
45
|
+
from huaweicloudsdkgaussdbforopengauss.v3.model.create_gauss_db_instance_response import CreateGaussDbInstanceResponse
|
44
46
|
from huaweicloudsdkgaussdbforopengauss.v3.model.create_instance_request import CreateInstanceRequest
|
45
47
|
from huaweicloudsdkgaussdbforopengauss.v3.model.create_instance_resp_item import CreateInstanceRespItem
|
46
48
|
from huaweicloudsdkgaussdbforopengauss.v3.model.create_instance_response import CreateInstanceResponse
|
@@ -0,0 +1,169 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class CreateGaussDbInstanceRequest:
|
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
|
+
'subscription_agency': 'str',
|
22
|
+
'body': 'OpenGaussInstanceRequestBody'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'x_language': 'X-Language',
|
27
|
+
'subscription_agency': 'Subscription-Agency',
|
28
|
+
'body': 'body'
|
29
|
+
}
|
30
|
+
|
31
|
+
def __init__(self, x_language=None, subscription_agency=None, body=None):
|
32
|
+
"""CreateGaussDbInstanceRequest
|
33
|
+
|
34
|
+
The model defined in huaweicloud sdk
|
35
|
+
|
36
|
+
:param x_language: 语言
|
37
|
+
:type x_language: str
|
38
|
+
:param subscription_agency: 委托urn。使用RAM共享的KMS秘钥创建包周期实例时必填,格式iam::{account_id}:agency:{agency_name}。
|
39
|
+
:type subscription_agency: str
|
40
|
+
:param body: Body of the CreateGaussDbInstanceRequest
|
41
|
+
:type body: :class:`huaweicloudsdkgaussdbforopengauss.v3.OpenGaussInstanceRequestBody`
|
42
|
+
"""
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
self._x_language = None
|
47
|
+
self._subscription_agency = None
|
48
|
+
self._body = None
|
49
|
+
self.discriminator = None
|
50
|
+
|
51
|
+
if x_language is not None:
|
52
|
+
self.x_language = x_language
|
53
|
+
if subscription_agency is not None:
|
54
|
+
self.subscription_agency = subscription_agency
|
55
|
+
if body is not None:
|
56
|
+
self.body = body
|
57
|
+
|
58
|
+
@property
|
59
|
+
def x_language(self):
|
60
|
+
"""Gets the x_language of this CreateGaussDbInstanceRequest.
|
61
|
+
|
62
|
+
语言
|
63
|
+
|
64
|
+
:return: The x_language of this CreateGaussDbInstanceRequest.
|
65
|
+
:rtype: str
|
66
|
+
"""
|
67
|
+
return self._x_language
|
68
|
+
|
69
|
+
@x_language.setter
|
70
|
+
def x_language(self, x_language):
|
71
|
+
"""Sets the x_language of this CreateGaussDbInstanceRequest.
|
72
|
+
|
73
|
+
语言
|
74
|
+
|
75
|
+
:param x_language: The x_language of this CreateGaussDbInstanceRequest.
|
76
|
+
:type x_language: str
|
77
|
+
"""
|
78
|
+
self._x_language = x_language
|
79
|
+
|
80
|
+
@property
|
81
|
+
def subscription_agency(self):
|
82
|
+
"""Gets the subscription_agency of this CreateGaussDbInstanceRequest.
|
83
|
+
|
84
|
+
委托urn。使用RAM共享的KMS秘钥创建包周期实例时必填,格式iam::{account_id}:agency:{agency_name}。
|
85
|
+
|
86
|
+
:return: The subscription_agency of this CreateGaussDbInstanceRequest.
|
87
|
+
:rtype: str
|
88
|
+
"""
|
89
|
+
return self._subscription_agency
|
90
|
+
|
91
|
+
@subscription_agency.setter
|
92
|
+
def subscription_agency(self, subscription_agency):
|
93
|
+
"""Sets the subscription_agency of this CreateGaussDbInstanceRequest.
|
94
|
+
|
95
|
+
委托urn。使用RAM共享的KMS秘钥创建包周期实例时必填,格式iam::{account_id}:agency:{agency_name}。
|
96
|
+
|
97
|
+
:param subscription_agency: The subscription_agency of this CreateGaussDbInstanceRequest.
|
98
|
+
:type subscription_agency: str
|
99
|
+
"""
|
100
|
+
self._subscription_agency = subscription_agency
|
101
|
+
|
102
|
+
@property
|
103
|
+
def body(self):
|
104
|
+
"""Gets the body of this CreateGaussDbInstanceRequest.
|
105
|
+
|
106
|
+
:return: The body of this CreateGaussDbInstanceRequest.
|
107
|
+
:rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.OpenGaussInstanceRequestBody`
|
108
|
+
"""
|
109
|
+
return self._body
|
110
|
+
|
111
|
+
@body.setter
|
112
|
+
def body(self, body):
|
113
|
+
"""Sets the body of this CreateGaussDbInstanceRequest.
|
114
|
+
|
115
|
+
:param body: The body of this CreateGaussDbInstanceRequest.
|
116
|
+
:type body: :class:`huaweicloudsdkgaussdbforopengauss.v3.OpenGaussInstanceRequestBody`
|
117
|
+
"""
|
118
|
+
self._body = body
|
119
|
+
|
120
|
+
def to_dict(self):
|
121
|
+
"""Returns the model properties as a dict"""
|
122
|
+
result = {}
|
123
|
+
|
124
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
125
|
+
value = getattr(self, attr)
|
126
|
+
if isinstance(value, list):
|
127
|
+
result[attr] = list(map(
|
128
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
129
|
+
value
|
130
|
+
))
|
131
|
+
elif hasattr(value, "to_dict"):
|
132
|
+
result[attr] = value.to_dict()
|
133
|
+
elif isinstance(value, dict):
|
134
|
+
result[attr] = dict(map(
|
135
|
+
lambda item: (item[0], item[1].to_dict())
|
136
|
+
if hasattr(item[1], "to_dict") else item,
|
137
|
+
value.items()
|
138
|
+
))
|
139
|
+
else:
|
140
|
+
if attr in self.sensitive_list:
|
141
|
+
result[attr] = "****"
|
142
|
+
else:
|
143
|
+
result[attr] = value
|
144
|
+
|
145
|
+
return result
|
146
|
+
|
147
|
+
def to_str(self):
|
148
|
+
"""Returns the string representation of the model"""
|
149
|
+
import simplejson as json
|
150
|
+
if six.PY2:
|
151
|
+
import sys
|
152
|
+
reload(sys)
|
153
|
+
sys.setdefaultencoding("utf-8")
|
154
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
155
|
+
|
156
|
+
def __repr__(self):
|
157
|
+
"""For `print`"""
|
158
|
+
return self.to_str()
|
159
|
+
|
160
|
+
def __eq__(self, other):
|
161
|
+
"""Returns true if both objects are equal"""
|
162
|
+
if not isinstance(other, CreateGaussDbInstanceRequest):
|
163
|
+
return False
|
164
|
+
|
165
|
+
return self.__dict__ == other.__dict__
|
166
|
+
|
167
|
+
def __ne__(self, other):
|
168
|
+
"""Returns true if both objects are not equal"""
|
169
|
+
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 CreateGaussDbInstanceResponse(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
|
+
"""CreateGaussDbInstanceResponse
|
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(CreateGaussDbInstanceResponse, 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 CreateGaussDbInstanceResponse.
|
62
|
+
|
63
|
+
:return: The instance of this CreateGaussDbInstanceResponse.
|
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 CreateGaussDbInstanceResponse.
|
71
|
+
|
72
|
+
:param instance: The instance of this CreateGaussDbInstanceResponse.
|
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 CreateGaussDbInstanceResponse.
|
80
|
+
|
81
|
+
实例创建的任务id。 仅创建按需实例时会返回该参数。
|
82
|
+
|
83
|
+
:return: The job_id of this CreateGaussDbInstanceResponse.
|
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 CreateGaussDbInstanceResponse.
|
91
|
+
|
92
|
+
实例创建的任务id。 仅创建按需实例时会返回该参数。
|
93
|
+
|
94
|
+
:param job_id: The job_id of this CreateGaussDbInstanceResponse.
|
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 CreateGaussDbInstanceResponse.
|
102
|
+
|
103
|
+
创建实例的订单ID。 仅创建包周期实例时会返回该参数。
|
104
|
+
|
105
|
+
:return: The order_id of this CreateGaussDbInstanceResponse.
|
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 CreateGaussDbInstanceResponse.
|
113
|
+
|
114
|
+
创建实例的订单ID。 仅创建包周期实例时会返回该参数。
|
115
|
+
|
116
|
+
:param order_id: The order_id of this CreateGaussDbInstanceResponse.
|
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, CreateGaussDbInstanceResponse):
|
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
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: huaweicloudsdkgaussdbforopengauss
|
3
|
-
Version: 3.1.
|
3
|
+
Version: 3.1.113
|
4
4
|
Summary: GaussDBforopenGauss
|
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.
|
25
|
+
Requires-Dist: huaweicloudsdkcore>=3.1.113
|
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
|
huaweicloudsdkgaussdbforopengauss/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
2
|
-
huaweicloudsdkgaussdbforopengauss/v3/__init__.py,sha256=
|
3
|
-
huaweicloudsdkgaussdbforopengauss/v3/gaussdbforopengauss_async_client.py,sha256=
|
4
|
-
huaweicloudsdkgaussdbforopengauss/v3/gaussdbforopengauss_client.py,sha256=
|
5
|
-
huaweicloudsdkgaussdbforopengauss/v3/model/__init__.py,sha256=
|
2
|
+
huaweicloudsdkgaussdbforopengauss/v3/__init__.py,sha256=FmHMtVgIduN_7hlM2EpLMei0RLyGKMn7FkgzewZ6ax4,36506
|
3
|
+
huaweicloudsdkgaussdbforopengauss/v3/gaussdbforopengauss_async_client.py,sha256=HFPa9IfoCLL60hSTXDryMcVz8qJRiTtUwuMqVRvLDqQ,245386
|
4
|
+
huaweicloudsdkgaussdbforopengauss/v3/gaussdbforopengauss_client.py,sha256=W2IxSf8qE558csUKgDaG7iS0n1GS4XfqTxPexL5JrVE,245479
|
5
|
+
huaweicloudsdkgaussdbforopengauss/v3/model/__init__.py,sha256=Lo8H-sboOtFORnD44kMEXVh3C7QNb6utUZwTK-MlPLA,36324
|
6
6
|
huaweicloudsdkgaussdbforopengauss/v3/model/add_instance_tags_request.py,sha256=wWayfcbJ4P3MA7CINc1L_BEj_RNLWXExO8YR_m1US58,4784
|
7
7
|
huaweicloudsdkgaussdbforopengauss/v3/model/add_instance_tags_response.py,sha256=Z3MBz9wjgIqiNE3XJlcgsYJYKfIPvYYhoJIUsQ2uuiQ,4273
|
8
8
|
huaweicloudsdkgaussdbforopengauss/v3/model/add_tags_request_body.py,sha256=fV7_rS3Q-6vMRmostu9KLEwy4BPMnw7oqTmArLTosUE,3076
|
@@ -41,6 +41,8 @@ huaweicloudsdkgaussdbforopengauss/v3/model/create_db_instance_request.py,sha256=
|
|
41
41
|
huaweicloudsdkgaussdbforopengauss/v3/model/create_db_instance_response.py,sha256=O2ASv27U9QUURZI6z6j3nXsT84Q_v87SSr0q1zaNT54,5275
|
42
42
|
huaweicloudsdkgaussdbforopengauss/v3/model/create_db_user_request.py,sha256=fXyy_NyUI1VHLp1KSJuctRhsIdlSVHvWYizdiDb_WqQ,4791
|
43
43
|
huaweicloudsdkgaussdbforopengauss/v3/model/create_db_user_response.py,sha256=X2W1vF1NuXzy4Opr-T938ZuNAmI5rULan4o3SlhEtBk,2431
|
44
|
+
huaweicloudsdkgaussdbforopengauss/v3/model/create_gauss_db_instance_request.py,sha256=-x7Lr1eae-P3LQUVdoNmO7E2DQsmx9AFenvWiutgHOw,5453
|
45
|
+
huaweicloudsdkgaussdbforopengauss/v3/model/create_gauss_db_instance_response.py,sha256=YauGFHq0umSoQ5mzcHpxn1ralWrPv8QyqP2F7NbY_J0,5355
|
44
46
|
huaweicloudsdkgaussdbforopengauss/v3/model/create_instance_request.py,sha256=g2nojBmNUJY498rpCqOuN0tq09vNfWXrU7QBl5GZTDY,3990
|
45
47
|
huaweicloudsdkgaussdbforopengauss/v3/model/create_instance_resp_item.py,sha256=Hv6dFfU1vQ1pVHyAjXjSiBIwqEEmC0iv2d__ej5N6aE,17282
|
46
48
|
huaweicloudsdkgaussdbforopengauss/v3/model/create_instance_response.py,sha256=hXRouRTJlPxudJRZL75WTjg1ZZ7wn2i55cxn2M2NcNM,5251
|
@@ -342,8 +344,8 @@ huaweicloudsdkgaussdbforopengauss/v3/model/validate_weak_password_response.py,sh
|
|
342
344
|
huaweicloudsdkgaussdbforopengauss/v3/model/weak_password_request_body.py,sha256=o6aHUH5vLvSBEf2BJZkKk4XCiwcJgVu7rHklOd476B0,3101
|
343
345
|
huaweicloudsdkgaussdbforopengauss/v3/region/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
344
346
|
huaweicloudsdkgaussdbforopengauss/v3/region/gaussdbforopengauss_region.py,sha256=12tDcVvpGUM3dRQG38MK4JaveqrmzOwxPrDpJ9AVC84,2971
|
345
|
-
huaweicloudsdkgaussdbforopengauss-3.1.
|
346
|
-
huaweicloudsdkgaussdbforopengauss-3.1.
|
347
|
-
huaweicloudsdkgaussdbforopengauss-3.1.
|
348
|
-
huaweicloudsdkgaussdbforopengauss-3.1.
|
349
|
-
huaweicloudsdkgaussdbforopengauss-3.1.
|
347
|
+
huaweicloudsdkgaussdbforopengauss-3.1.113.dist-info/LICENSE,sha256=4_VSTLuxcsybRG9N4Isktlj1rAIBBsfl0Tjc0gBTijo,604
|
348
|
+
huaweicloudsdkgaussdbforopengauss-3.1.113.dist-info/METADATA,sha256=TxPXegx24wqULZzn28XAz8yZ8JDu7SzQZuXnyuy8an0,1183
|
349
|
+
huaweicloudsdkgaussdbforopengauss-3.1.113.dist-info/WHEEL,sha256=fS9sRbCBHs7VFcwJLnLXN1MZRR0_TVTxvXKzOnaSFs8,110
|
350
|
+
huaweicloudsdkgaussdbforopengauss-3.1.113.dist-info/top_level.txt,sha256=Eu0Q0tFHFbnL_PjFOY4Uagc9Xd6tEIZWVieOKIvJ5-A,34
|
351
|
+
huaweicloudsdkgaussdbforopengauss-3.1.113.dist-info/RECORD,,
|
File without changes
|
File without changes
|