huaweicloudsdkgaussdbforopengauss 3.1.101__py2.py3-none-any.whl → 3.1.103__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 (30) hide show
  1. huaweicloudsdkgaussdbforopengauss/v3/__init__.py +19 -0
  2. huaweicloudsdkgaussdbforopengauss/v3/gaussdbforopengauss_async_client.py +367 -0
  3. huaweicloudsdkgaussdbforopengauss/v3/gaussdbforopengauss_client.py +367 -0
  4. huaweicloudsdkgaussdbforopengauss/v3/model/__init__.py +19 -0
  5. huaweicloudsdkgaussdbforopengauss/v3/model/backup_policy_info.py +314 -0
  6. huaweicloudsdkgaussdbforopengauss/v3/model/confirm_restored_data_request.py +143 -0
  7. huaweicloudsdkgaussdbforopengauss/v3/model/confirm_restored_data_response.py +116 -0
  8. huaweicloudsdkgaussdbforopengauss/v3/model/gauss_db_upgrade_instances_version_request.py +201 -0
  9. huaweicloudsdkgaussdbforopengauss/v3/model/hotfix_info.py +202 -0
  10. huaweicloudsdkgaussdbforopengauss/v3/model/hotfix_version_info.py +143 -0
  11. huaweicloudsdkgaussdbforopengauss/v3/model/list_instance_datastore.py +258 -0
  12. huaweicloudsdkgaussdbforopengauss/v3/model/list_instance_details_request.py +405 -0
  13. huaweicloudsdkgaussdbforopengauss/v3/model/list_instance_details_response.py +145 -0
  14. huaweicloudsdkgaussdbforopengauss/v3/model/list_instances_result.py +957 -0
  15. huaweicloudsdkgaussdbforopengauss/v3/model/my_sql_compatibility_result.py +115 -0
  16. huaweicloudsdkgaussdbforopengauss/v3/model/open_gauss_instance_request.py +3 -3
  17. huaweicloudsdkgaussdbforopengauss/v3/model/open_gauss_instance_request_body.py +3 -3
  18. huaweicloudsdkgaussdbforopengauss/v3/model/set_new_backup_policy_request.py +168 -0
  19. huaweicloudsdkgaussdbforopengauss/v3/model/set_new_backup_policy_request_body.py +110 -0
  20. huaweicloudsdkgaussdbforopengauss/v3/model/set_new_backup_policy_response.py +85 -0
  21. huaweicloudsdkgaussdbforopengauss/v3/model/show_batch_upgrade_candidate_versions_request.py +140 -0
  22. huaweicloudsdkgaussdbforopengauss/v3/model/show_batch_upgrade_candidate_versions_response.py +203 -0
  23. huaweicloudsdkgaussdbforopengauss/v3/model/upgrade_instances_request_body.py +115 -0
  24. huaweicloudsdkgaussdbforopengauss/v3/model/upgrade_instances_version_request.py +140 -0
  25. huaweicloudsdkgaussdbforopengauss/v3/model/upgrade_instances_version_response.py +232 -0
  26. {huaweicloudsdkgaussdbforopengauss-3.1.101.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.103.dist-info}/METADATA +2 -2
  27. {huaweicloudsdkgaussdbforopengauss-3.1.101.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.103.dist-info}/RECORD +30 -11
  28. {huaweicloudsdkgaussdbforopengauss-3.1.101.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.103.dist-info}/LICENSE +0 -0
  29. {huaweicloudsdkgaussdbforopengauss-3.1.101.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.103.dist-info}/WHEEL +0 -0
  30. {huaweicloudsdkgaussdbforopengauss-3.1.101.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.103.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,145 @@
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 ListInstanceDetailsResponse(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
+ 'instances': 'list[ListInstancesResult]',
22
+ 'total_count': 'int'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'instances': 'instances',
27
+ 'total_count': 'total_count'
28
+ }
29
+
30
+ def __init__(self, instances=None, total_count=None):
31
+ """ListInstanceDetailsResponse
32
+
33
+ The model defined in huaweicloud sdk
34
+
35
+ :param instances: 实例信息。
36
+ :type instances: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.ListInstancesResult`]
37
+ :param total_count: 总记录数。
38
+ :type total_count: int
39
+ """
40
+
41
+ super(ListInstanceDetailsResponse, self).__init__()
42
+
43
+ self._instances = None
44
+ self._total_count = None
45
+ self.discriminator = None
46
+
47
+ if instances is not None:
48
+ self.instances = instances
49
+ if total_count is not None:
50
+ self.total_count = total_count
51
+
52
+ @property
53
+ def instances(self):
54
+ """Gets the instances of this ListInstanceDetailsResponse.
55
+
56
+ 实例信息。
57
+
58
+ :return: The instances of this ListInstanceDetailsResponse.
59
+ :rtype: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.ListInstancesResult`]
60
+ """
61
+ return self._instances
62
+
63
+ @instances.setter
64
+ def instances(self, instances):
65
+ """Sets the instances of this ListInstanceDetailsResponse.
66
+
67
+ 实例信息。
68
+
69
+ :param instances: The instances of this ListInstanceDetailsResponse.
70
+ :type instances: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.ListInstancesResult`]
71
+ """
72
+ self._instances = instances
73
+
74
+ @property
75
+ def total_count(self):
76
+ """Gets the total_count of this ListInstanceDetailsResponse.
77
+
78
+ 总记录数。
79
+
80
+ :return: The total_count of this ListInstanceDetailsResponse.
81
+ :rtype: int
82
+ """
83
+ return self._total_count
84
+
85
+ @total_count.setter
86
+ def total_count(self, total_count):
87
+ """Sets the total_count of this ListInstanceDetailsResponse.
88
+
89
+ 总记录数。
90
+
91
+ :param total_count: The total_count of this ListInstanceDetailsResponse.
92
+ :type total_count: int
93
+ """
94
+ self._total_count = total_count
95
+
96
+ def to_dict(self):
97
+ """Returns the model properties as a dict"""
98
+ result = {}
99
+
100
+ for attr, _ in six.iteritems(self.openapi_types):
101
+ value = getattr(self, attr)
102
+ if isinstance(value, list):
103
+ result[attr] = list(map(
104
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
105
+ value
106
+ ))
107
+ elif hasattr(value, "to_dict"):
108
+ result[attr] = value.to_dict()
109
+ elif isinstance(value, dict):
110
+ result[attr] = dict(map(
111
+ lambda item: (item[0], item[1].to_dict())
112
+ if hasattr(item[1], "to_dict") else item,
113
+ value.items()
114
+ ))
115
+ else:
116
+ if attr in self.sensitive_list:
117
+ result[attr] = "****"
118
+ else:
119
+ result[attr] = value
120
+
121
+ return result
122
+
123
+ def to_str(self):
124
+ """Returns the string representation of the model"""
125
+ import simplejson as json
126
+ if six.PY2:
127
+ import sys
128
+ reload(sys)
129
+ sys.setdefaultencoding("utf-8")
130
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
131
+
132
+ def __repr__(self):
133
+ """For `print`"""
134
+ return self.to_str()
135
+
136
+ def __eq__(self, other):
137
+ """Returns true if both objects are equal"""
138
+ if not isinstance(other, ListInstanceDetailsResponse):
139
+ return False
140
+
141
+ return self.__dict__ == other.__dict__
142
+
143
+ def __ne__(self, other):
144
+ """Returns true if both objects are not equal"""
145
+ return not self == other