huaweicloudsdkgaussdbforopengauss 3.1.126__py2.py3-none-any.whl → 3.1.128__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 +50 -0
- huaweicloudsdkgaussdbforopengauss/v3/gaussdbforopengauss_async_client.py +1315 -46
- huaweicloudsdkgaussdbforopengauss/v3/gaussdbforopengauss_client.py +1315 -46
- huaweicloudsdkgaussdbforopengauss/v3/model/__init__.py +50 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/allow_db_role_privileges_request.py +168 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/allow_db_role_privileges_request_body.py +142 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/allow_db_role_privileges_response.py +85 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/batch_show_upgrade_candidate_versions_request.py +140 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/batch_show_upgrade_candidate_versions_response.py +232 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/can_be_rollbacked_hotfix_detail.py +202 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/can_be_upgraded_hotfix_detail.py +202 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/configurations_result.py +339 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/create_database_instance_request.py +140 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/create_database_instance_request_body.py +722 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/create_database_instance_response.py +170 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/create_database_instance_result.py +544 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/create_db_role_request.py +168 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/create_db_role_request_body.py +142 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/create_db_role_response.py +85 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/create_instance_datastore_option.py +143 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/datastore_result.py +142 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/delete_database_schema_request.py +168 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/delete_database_schema_request_body.py +142 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/delete_database_schema_response.py +85 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/gauss_db_list_database_roles.py +201 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/hotfix_info_result.py +202 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_backups_details_request.py +318 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_backups_details_response.py +145 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_backups_result.py +372 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_database_instances_request.py +405 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_database_instances_response.py +145 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_database_roles_request.py +201 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_database_roles_response.py +145 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_datastores_details_request.py +115 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_datastores_details_response.py +112 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_flavors_details_request.py +260 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_flavors_details_response.py +145 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_parameter_group_templates_request.py +173 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_parameter_group_templates_response.py +145 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_recycle_instances_details_request.py +202 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_recycle_instances_details_response.py +145 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_restorable_instances_details_request.py +259 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_restorable_instances_details_response.py +145 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/recycle_instances_detail_result_v1.py +566 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/show_instance_param_group_detail_request.py +143 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/show_instance_param_group_detail_response.py +232 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/show_parameter_group_detail_request.py +143 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/show_parameter_group_detail_response.py +319 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/show_source_instance_detail_request.py +202 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/show_source_instance_detail_response.py +348 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/show_upgrade_candidate_versions_details_request.py +143 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/show_upgrade_candidate_versions_details_response.py +373 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/show_upgrade_candidate_versions_response.py +18 -10
- huaweicloudsdkgaussdbforopengauss/v3/model/sync_limit_data_request.py +114 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/sync_limit_data_response.py +203 -0
- {huaweicloudsdkgaussdbforopengauss-3.1.126.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.128.dist-info}/METADATA +2 -2
- {huaweicloudsdkgaussdbforopengauss-3.1.126.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.128.dist-info}/RECORD +60 -10
- {huaweicloudsdkgaussdbforopengauss-3.1.126.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.128.dist-info}/LICENSE +0 -0
- {huaweicloudsdkgaussdbforopengauss-3.1.126.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.128.dist-info}/WHEEL +0 -0
- {huaweicloudsdkgaussdbforopengauss-3.1.126.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.128.dist-info}/top_level.txt +0 -0
@@ -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 CreateDatabaseInstanceResponse(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': 'CreateDatabaseInstanceResult',
|
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
|
+
"""CreateDatabaseInstanceResponse
|
34
|
+
|
35
|
+
The model defined in huaweicloud sdk
|
36
|
+
|
37
|
+
:param instance:
|
38
|
+
:type instance: :class:`huaweicloudsdkgaussdbforopengauss.v3.CreateDatabaseInstanceResult`
|
39
|
+
:param job_id: 实例创建的任务id。 仅创建按需实例时会返回该参数。
|
40
|
+
:type job_id: str
|
41
|
+
:param order_id: 创建实例的订单ID。 仅创建包周期实例时会返回该参数。
|
42
|
+
:type order_id: str
|
43
|
+
"""
|
44
|
+
|
45
|
+
super(CreateDatabaseInstanceResponse, 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 CreateDatabaseInstanceResponse.
|
62
|
+
|
63
|
+
:return: The instance of this CreateDatabaseInstanceResponse.
|
64
|
+
:rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.CreateDatabaseInstanceResult`
|
65
|
+
"""
|
66
|
+
return self._instance
|
67
|
+
|
68
|
+
@instance.setter
|
69
|
+
def instance(self, instance):
|
70
|
+
"""Sets the instance of this CreateDatabaseInstanceResponse.
|
71
|
+
|
72
|
+
:param instance: The instance of this CreateDatabaseInstanceResponse.
|
73
|
+
:type instance: :class:`huaweicloudsdkgaussdbforopengauss.v3.CreateDatabaseInstanceResult`
|
74
|
+
"""
|
75
|
+
self._instance = instance
|
76
|
+
|
77
|
+
@property
|
78
|
+
def job_id(self):
|
79
|
+
"""Gets the job_id of this CreateDatabaseInstanceResponse.
|
80
|
+
|
81
|
+
实例创建的任务id。 仅创建按需实例时会返回该参数。
|
82
|
+
|
83
|
+
:return: The job_id of this CreateDatabaseInstanceResponse.
|
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 CreateDatabaseInstanceResponse.
|
91
|
+
|
92
|
+
实例创建的任务id。 仅创建按需实例时会返回该参数。
|
93
|
+
|
94
|
+
:param job_id: The job_id of this CreateDatabaseInstanceResponse.
|
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 CreateDatabaseInstanceResponse.
|
102
|
+
|
103
|
+
创建实例的订单ID。 仅创建包周期实例时会返回该参数。
|
104
|
+
|
105
|
+
:return: The order_id of this CreateDatabaseInstanceResponse.
|
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 CreateDatabaseInstanceResponse.
|
113
|
+
|
114
|
+
创建实例的订单ID。 仅创建包周期实例时会返回该参数。
|
115
|
+
|
116
|
+
:param order_id: The order_id of this CreateDatabaseInstanceResponse.
|
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, CreateDatabaseInstanceResponse):
|
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
|