huaweicloudsdkgaussdbforopengauss 3.1.90__py2.py3-none-any.whl → 3.1.91__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 +25 -0
- huaweicloudsdkgaussdbforopengauss/v3/gaussdbforopengauss_async_client.py +548 -0
- huaweicloudsdkgaussdbforopengauss/v3/gaussdbforopengauss_client.py +548 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/__init__.py +25 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/cn_info_before_reduce.py +231 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/create_slow_log_download_request.py +143 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/create_slow_log_download_response.py +116 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/instances_statistics_response_body_instances_statistics.py +142 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_cn_infos_before_reduce_request.py +143 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_cn_infos_before_reduce_response.py +174 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/open_gauss_upgrade_request.py +259 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/roll_upgrade_progress.py +231 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/search_auto_enlarge_policy_request.py +143 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/search_auto_enlarge_policy_response.py +261 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/show_instances_statistics_request.py +115 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/show_instances_statistics_response.py +145 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/show_slow_log_download_request.py +143 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/show_slow_log_download_response.py +116 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/show_upgrade_candidate_versions_request.py +143 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/show_upgrade_candidate_versions_response.py +315 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/slow_log_download_info.py +463 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/start_instance_request.py +168 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/start_instance_request_body.py +114 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/start_instance_response.py +116 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/upgrade_action_info.py +144 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/upgrade_error_response_body.py +142 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/upgrade_instance_version_request.py +168 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/upgrade_instance_version_response.py +145 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/upgrade_type_info.py +173 -0
- {huaweicloudsdkgaussdbforopengauss-3.1.90.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.91.dist-info}/METADATA +2 -2
- {huaweicloudsdkgaussdbforopengauss-3.1.90.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.91.dist-info}/RECORD +34 -9
- {huaweicloudsdkgaussdbforopengauss-3.1.90.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.91.dist-info}/LICENSE +0 -0
- {huaweicloudsdkgaussdbforopengauss-3.1.90.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.91.dist-info}/WHEEL +0 -0
- {huaweicloudsdkgaussdbforopengauss-3.1.90.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.91.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,115 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ShowInstancesStatisticsRequest:
|
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
|
+
}
|
22
|
+
|
23
|
+
attribute_map = {
|
24
|
+
'x_language': 'X-Language'
|
25
|
+
}
|
26
|
+
|
27
|
+
def __init__(self, x_language=None):
|
28
|
+
"""ShowInstancesStatisticsRequest
|
29
|
+
|
30
|
+
The model defined in huaweicloud sdk
|
31
|
+
|
32
|
+
:param x_language: 语言。
|
33
|
+
:type x_language: str
|
34
|
+
"""
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
self._x_language = None
|
39
|
+
self.discriminator = None
|
40
|
+
|
41
|
+
if x_language is not None:
|
42
|
+
self.x_language = x_language
|
43
|
+
|
44
|
+
@property
|
45
|
+
def x_language(self):
|
46
|
+
"""Gets the x_language of this ShowInstancesStatisticsRequest.
|
47
|
+
|
48
|
+
语言。
|
49
|
+
|
50
|
+
:return: The x_language of this ShowInstancesStatisticsRequest.
|
51
|
+
:rtype: str
|
52
|
+
"""
|
53
|
+
return self._x_language
|
54
|
+
|
55
|
+
@x_language.setter
|
56
|
+
def x_language(self, x_language):
|
57
|
+
"""Sets the x_language of this ShowInstancesStatisticsRequest.
|
58
|
+
|
59
|
+
语言。
|
60
|
+
|
61
|
+
:param x_language: The x_language of this ShowInstancesStatisticsRequest.
|
62
|
+
:type x_language: str
|
63
|
+
"""
|
64
|
+
self._x_language = x_language
|
65
|
+
|
66
|
+
def to_dict(self):
|
67
|
+
"""Returns the model properties as a dict"""
|
68
|
+
result = {}
|
69
|
+
|
70
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
71
|
+
value = getattr(self, attr)
|
72
|
+
if isinstance(value, list):
|
73
|
+
result[attr] = list(map(
|
74
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
75
|
+
value
|
76
|
+
))
|
77
|
+
elif hasattr(value, "to_dict"):
|
78
|
+
result[attr] = value.to_dict()
|
79
|
+
elif isinstance(value, dict):
|
80
|
+
result[attr] = dict(map(
|
81
|
+
lambda item: (item[0], item[1].to_dict())
|
82
|
+
if hasattr(item[1], "to_dict") else item,
|
83
|
+
value.items()
|
84
|
+
))
|
85
|
+
else:
|
86
|
+
if attr in self.sensitive_list:
|
87
|
+
result[attr] = "****"
|
88
|
+
else:
|
89
|
+
result[attr] = value
|
90
|
+
|
91
|
+
return result
|
92
|
+
|
93
|
+
def to_str(self):
|
94
|
+
"""Returns the string representation of the model"""
|
95
|
+
import simplejson as json
|
96
|
+
if six.PY2:
|
97
|
+
import sys
|
98
|
+
reload(sys)
|
99
|
+
sys.setdefaultencoding("utf-8")
|
100
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
101
|
+
|
102
|
+
def __repr__(self):
|
103
|
+
"""For `print`"""
|
104
|
+
return self.to_str()
|
105
|
+
|
106
|
+
def __eq__(self, other):
|
107
|
+
"""Returns true if both objects are equal"""
|
108
|
+
if not isinstance(other, ShowInstancesStatisticsRequest):
|
109
|
+
return False
|
110
|
+
|
111
|
+
return self.__dict__ == other.__dict__
|
112
|
+
|
113
|
+
def __ne__(self, other):
|
114
|
+
"""Returns true if both objects are not equal"""
|
115
|
+
return not self == other
|
@@ -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 ShowInstancesStatisticsResponse(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
|
+
'total_count': 'int',
|
22
|
+
'instances_statistics': 'list[InstancesStatisticsResponseBodyInstancesStatistics]'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'total_count': 'total_count',
|
27
|
+
'instances_statistics': 'instances_statistics'
|
28
|
+
}
|
29
|
+
|
30
|
+
def __init__(self, total_count=None, instances_statistics=None):
|
31
|
+
"""ShowInstancesStatisticsResponse
|
32
|
+
|
33
|
+
The model defined in huaweicloud sdk
|
34
|
+
|
35
|
+
:param total_count: 实例总数
|
36
|
+
:type total_count: int
|
37
|
+
:param instances_statistics: 实例统计信息
|
38
|
+
:type instances_statistics: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.InstancesStatisticsResponseBodyInstancesStatistics`]
|
39
|
+
"""
|
40
|
+
|
41
|
+
super(ShowInstancesStatisticsResponse, self).__init__()
|
42
|
+
|
43
|
+
self._total_count = None
|
44
|
+
self._instances_statistics = None
|
45
|
+
self.discriminator = None
|
46
|
+
|
47
|
+
if total_count is not None:
|
48
|
+
self.total_count = total_count
|
49
|
+
if instances_statistics is not None:
|
50
|
+
self.instances_statistics = instances_statistics
|
51
|
+
|
52
|
+
@property
|
53
|
+
def total_count(self):
|
54
|
+
"""Gets the total_count of this ShowInstancesStatisticsResponse.
|
55
|
+
|
56
|
+
实例总数
|
57
|
+
|
58
|
+
:return: The total_count of this ShowInstancesStatisticsResponse.
|
59
|
+
:rtype: int
|
60
|
+
"""
|
61
|
+
return self._total_count
|
62
|
+
|
63
|
+
@total_count.setter
|
64
|
+
def total_count(self, total_count):
|
65
|
+
"""Sets the total_count of this ShowInstancesStatisticsResponse.
|
66
|
+
|
67
|
+
实例总数
|
68
|
+
|
69
|
+
:param total_count: The total_count of this ShowInstancesStatisticsResponse.
|
70
|
+
:type total_count: int
|
71
|
+
"""
|
72
|
+
self._total_count = total_count
|
73
|
+
|
74
|
+
@property
|
75
|
+
def instances_statistics(self):
|
76
|
+
"""Gets the instances_statistics of this ShowInstancesStatisticsResponse.
|
77
|
+
|
78
|
+
实例统计信息
|
79
|
+
|
80
|
+
:return: The instances_statistics of this ShowInstancesStatisticsResponse.
|
81
|
+
:rtype: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.InstancesStatisticsResponseBodyInstancesStatistics`]
|
82
|
+
"""
|
83
|
+
return self._instances_statistics
|
84
|
+
|
85
|
+
@instances_statistics.setter
|
86
|
+
def instances_statistics(self, instances_statistics):
|
87
|
+
"""Sets the instances_statistics of this ShowInstancesStatisticsResponse.
|
88
|
+
|
89
|
+
实例统计信息
|
90
|
+
|
91
|
+
:param instances_statistics: The instances_statistics of this ShowInstancesStatisticsResponse.
|
92
|
+
:type instances_statistics: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.InstancesStatisticsResponseBodyInstancesStatistics`]
|
93
|
+
"""
|
94
|
+
self._instances_statistics = instances_statistics
|
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, ShowInstancesStatisticsResponse):
|
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
|
@@ -0,0 +1,143 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ShowSlowLogDownloadRequest:
|
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
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'x_language': 'X-Language',
|
26
|
+
'instance_id': 'instance_id'
|
27
|
+
}
|
28
|
+
|
29
|
+
def __init__(self, x_language=None, instance_id=None):
|
30
|
+
"""ShowSlowLogDownloadRequest
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
:param x_language: 语言
|
35
|
+
:type x_language: str
|
36
|
+
:param instance_id: 实例ID,严格匹配UUID规则。
|
37
|
+
:type instance_id: str
|
38
|
+
"""
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
self._x_language = None
|
43
|
+
self._instance_id = None
|
44
|
+
self.discriminator = None
|
45
|
+
|
46
|
+
if x_language is not None:
|
47
|
+
self.x_language = x_language
|
48
|
+
self.instance_id = instance_id
|
49
|
+
|
50
|
+
@property
|
51
|
+
def x_language(self):
|
52
|
+
"""Gets the x_language of this ShowSlowLogDownloadRequest.
|
53
|
+
|
54
|
+
语言
|
55
|
+
|
56
|
+
:return: The x_language of this ShowSlowLogDownloadRequest.
|
57
|
+
:rtype: str
|
58
|
+
"""
|
59
|
+
return self._x_language
|
60
|
+
|
61
|
+
@x_language.setter
|
62
|
+
def x_language(self, x_language):
|
63
|
+
"""Sets the x_language of this ShowSlowLogDownloadRequest.
|
64
|
+
|
65
|
+
语言
|
66
|
+
|
67
|
+
:param x_language: The x_language of this ShowSlowLogDownloadRequest.
|
68
|
+
:type x_language: str
|
69
|
+
"""
|
70
|
+
self._x_language = x_language
|
71
|
+
|
72
|
+
@property
|
73
|
+
def instance_id(self):
|
74
|
+
"""Gets the instance_id of this ShowSlowLogDownloadRequest.
|
75
|
+
|
76
|
+
实例ID,严格匹配UUID规则。
|
77
|
+
|
78
|
+
:return: The instance_id of this ShowSlowLogDownloadRequest.
|
79
|
+
:rtype: str
|
80
|
+
"""
|
81
|
+
return self._instance_id
|
82
|
+
|
83
|
+
@instance_id.setter
|
84
|
+
def instance_id(self, instance_id):
|
85
|
+
"""Sets the instance_id of this ShowSlowLogDownloadRequest.
|
86
|
+
|
87
|
+
实例ID,严格匹配UUID规则。
|
88
|
+
|
89
|
+
:param instance_id: The instance_id of this ShowSlowLogDownloadRequest.
|
90
|
+
:type instance_id: str
|
91
|
+
"""
|
92
|
+
self._instance_id = instance_id
|
93
|
+
|
94
|
+
def to_dict(self):
|
95
|
+
"""Returns the model properties as a dict"""
|
96
|
+
result = {}
|
97
|
+
|
98
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
99
|
+
value = getattr(self, attr)
|
100
|
+
if isinstance(value, list):
|
101
|
+
result[attr] = list(map(
|
102
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
103
|
+
value
|
104
|
+
))
|
105
|
+
elif hasattr(value, "to_dict"):
|
106
|
+
result[attr] = value.to_dict()
|
107
|
+
elif isinstance(value, dict):
|
108
|
+
result[attr] = dict(map(
|
109
|
+
lambda item: (item[0], item[1].to_dict())
|
110
|
+
if hasattr(item[1], "to_dict") else item,
|
111
|
+
value.items()
|
112
|
+
))
|
113
|
+
else:
|
114
|
+
if attr in self.sensitive_list:
|
115
|
+
result[attr] = "****"
|
116
|
+
else:
|
117
|
+
result[attr] = value
|
118
|
+
|
119
|
+
return result
|
120
|
+
|
121
|
+
def to_str(self):
|
122
|
+
"""Returns the string representation of the model"""
|
123
|
+
import simplejson as json
|
124
|
+
if six.PY2:
|
125
|
+
import sys
|
126
|
+
reload(sys)
|
127
|
+
sys.setdefaultencoding("utf-8")
|
128
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
129
|
+
|
130
|
+
def __repr__(self):
|
131
|
+
"""For `print`"""
|
132
|
+
return self.to_str()
|
133
|
+
|
134
|
+
def __eq__(self, other):
|
135
|
+
"""Returns true if both objects are equal"""
|
136
|
+
if not isinstance(other, ShowSlowLogDownloadRequest):
|
137
|
+
return False
|
138
|
+
|
139
|
+
return self.__dict__ == other.__dict__
|
140
|
+
|
141
|
+
def __ne__(self, other):
|
142
|
+
"""Returns true if both objects are not equal"""
|
143
|
+
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 ShowSlowLogDownloadResponse(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
|
+
'list': 'list[SlowLogDownloadInfo]'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'list': 'list'
|
26
|
+
}
|
27
|
+
|
28
|
+
def __init__(self, list=None):
|
29
|
+
"""ShowSlowLogDownloadResponse
|
30
|
+
|
31
|
+
The model defined in huaweicloud sdk
|
32
|
+
|
33
|
+
:param list: 慢日志下载信息列表
|
34
|
+
:type list: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.SlowLogDownloadInfo`]
|
35
|
+
"""
|
36
|
+
|
37
|
+
super(ShowSlowLogDownloadResponse, self).__init__()
|
38
|
+
|
39
|
+
self._list = None
|
40
|
+
self.discriminator = None
|
41
|
+
|
42
|
+
if list is not None:
|
43
|
+
self.list = list
|
44
|
+
|
45
|
+
@property
|
46
|
+
def list(self):
|
47
|
+
"""Gets the list of this ShowSlowLogDownloadResponse.
|
48
|
+
|
49
|
+
慢日志下载信息列表
|
50
|
+
|
51
|
+
:return: The list of this ShowSlowLogDownloadResponse.
|
52
|
+
:rtype: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.SlowLogDownloadInfo`]
|
53
|
+
"""
|
54
|
+
return self._list
|
55
|
+
|
56
|
+
@list.setter
|
57
|
+
def list(self, list):
|
58
|
+
"""Sets the list of this ShowSlowLogDownloadResponse.
|
59
|
+
|
60
|
+
慢日志下载信息列表
|
61
|
+
|
62
|
+
:param list: The list of this ShowSlowLogDownloadResponse.
|
63
|
+
:type list: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.SlowLogDownloadInfo`]
|
64
|
+
"""
|
65
|
+
self._list = list
|
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, ShowSlowLogDownloadResponse):
|
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,143 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ShowUpgradeCandidateVersionsRequest:
|
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
|
+
'x_language': 'str'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'instance_id': 'instance_id',
|
26
|
+
'x_language': 'X-Language'
|
27
|
+
}
|
28
|
+
|
29
|
+
def __init__(self, instance_id=None, x_language=None):
|
30
|
+
"""ShowUpgradeCandidateVersionsRequest
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
:param instance_id: 实例ID。
|
35
|
+
:type instance_id: str
|
36
|
+
:param x_language: 语言[zh-cn, en-us]
|
37
|
+
:type x_language: str
|
38
|
+
"""
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
self._instance_id = None
|
43
|
+
self._x_language = None
|
44
|
+
self.discriminator = None
|
45
|
+
|
46
|
+
self.instance_id = instance_id
|
47
|
+
if x_language is not None:
|
48
|
+
self.x_language = x_language
|
49
|
+
|
50
|
+
@property
|
51
|
+
def instance_id(self):
|
52
|
+
"""Gets the instance_id of this ShowUpgradeCandidateVersionsRequest.
|
53
|
+
|
54
|
+
实例ID。
|
55
|
+
|
56
|
+
:return: The instance_id of this ShowUpgradeCandidateVersionsRequest.
|
57
|
+
:rtype: str
|
58
|
+
"""
|
59
|
+
return self._instance_id
|
60
|
+
|
61
|
+
@instance_id.setter
|
62
|
+
def instance_id(self, instance_id):
|
63
|
+
"""Sets the instance_id of this ShowUpgradeCandidateVersionsRequest.
|
64
|
+
|
65
|
+
实例ID。
|
66
|
+
|
67
|
+
:param instance_id: The instance_id of this ShowUpgradeCandidateVersionsRequest.
|
68
|
+
:type instance_id: str
|
69
|
+
"""
|
70
|
+
self._instance_id = instance_id
|
71
|
+
|
72
|
+
@property
|
73
|
+
def x_language(self):
|
74
|
+
"""Gets the x_language of this ShowUpgradeCandidateVersionsRequest.
|
75
|
+
|
76
|
+
语言[zh-cn, en-us]
|
77
|
+
|
78
|
+
:return: The x_language of this ShowUpgradeCandidateVersionsRequest.
|
79
|
+
:rtype: str
|
80
|
+
"""
|
81
|
+
return self._x_language
|
82
|
+
|
83
|
+
@x_language.setter
|
84
|
+
def x_language(self, x_language):
|
85
|
+
"""Sets the x_language of this ShowUpgradeCandidateVersionsRequest.
|
86
|
+
|
87
|
+
语言[zh-cn, en-us]
|
88
|
+
|
89
|
+
:param x_language: The x_language of this ShowUpgradeCandidateVersionsRequest.
|
90
|
+
:type x_language: str
|
91
|
+
"""
|
92
|
+
self._x_language = x_language
|
93
|
+
|
94
|
+
def to_dict(self):
|
95
|
+
"""Returns the model properties as a dict"""
|
96
|
+
result = {}
|
97
|
+
|
98
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
99
|
+
value = getattr(self, attr)
|
100
|
+
if isinstance(value, list):
|
101
|
+
result[attr] = list(map(
|
102
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
103
|
+
value
|
104
|
+
))
|
105
|
+
elif hasattr(value, "to_dict"):
|
106
|
+
result[attr] = value.to_dict()
|
107
|
+
elif isinstance(value, dict):
|
108
|
+
result[attr] = dict(map(
|
109
|
+
lambda item: (item[0], item[1].to_dict())
|
110
|
+
if hasattr(item[1], "to_dict") else item,
|
111
|
+
value.items()
|
112
|
+
))
|
113
|
+
else:
|
114
|
+
if attr in self.sensitive_list:
|
115
|
+
result[attr] = "****"
|
116
|
+
else:
|
117
|
+
result[attr] = value
|
118
|
+
|
119
|
+
return result
|
120
|
+
|
121
|
+
def to_str(self):
|
122
|
+
"""Returns the string representation of the model"""
|
123
|
+
import simplejson as json
|
124
|
+
if six.PY2:
|
125
|
+
import sys
|
126
|
+
reload(sys)
|
127
|
+
sys.setdefaultencoding("utf-8")
|
128
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
129
|
+
|
130
|
+
def __repr__(self):
|
131
|
+
"""For `print`"""
|
132
|
+
return self.to_str()
|
133
|
+
|
134
|
+
def __eq__(self, other):
|
135
|
+
"""Returns true if both objects are equal"""
|
136
|
+
if not isinstance(other, ShowUpgradeCandidateVersionsRequest):
|
137
|
+
return False
|
138
|
+
|
139
|
+
return self.__dict__ == other.__dict__
|
140
|
+
|
141
|
+
def __ne__(self, other):
|
142
|
+
"""Returns true if both objects are not equal"""
|
143
|
+
return not self == other
|