huaweicloudsdkgaussdb 3.1.97__py2.py3-none-any.whl → 3.1.99__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 (74) hide show
  1. huaweicloudsdkgaussdb/v3/__init__.py +63 -0
  2. huaweicloudsdkgaussdb/v3/gaussdb_async_client.py +1823 -435
  3. huaweicloudsdkgaussdb/v3/gaussdb_client.py +1823 -435
  4. huaweicloudsdkgaussdb/v3/model/__init__.py +63 -0
  5. huaweicloudsdkgaussdb/v3/model/auto_scaling_record_info.py +318 -0
  6. huaweicloudsdkgaussdb/v3/model/create_lts_configs.py +114 -0
  7. huaweicloudsdkgaussdb/v3/model/create_lts_configs_request.py +140 -0
  8. huaweicloudsdkgaussdb/v3/model/create_lts_configs_response.py +85 -0
  9. huaweicloudsdkgaussdb/v3/model/delete_lts_configs_request.py +140 -0
  10. huaweicloudsdkgaussdb/v3/model/delete_lts_configs_request_body.py +114 -0
  11. huaweicloudsdkgaussdb/v3/model/delete_lts_configs_response.py +85 -0
  12. huaweicloudsdkgaussdb/v3/model/instance_delete_lts_config.py +142 -0
  13. huaweicloudsdkgaussdb/v3/model/instance_lts_basic_info.py +318 -0
  14. huaweicloudsdkgaussdb/v3/model/instance_save_lts_config.py +198 -0
  15. huaweicloudsdkgaussdb/v3/model/ip_group_item.py +142 -0
  16. huaweicloudsdkgaussdb/v3/model/list_params_template_apply_history_request.py +172 -0
  17. huaweicloudsdkgaussdb/v3/model/list_params_template_apply_history_response.py +145 -0
  18. huaweicloudsdkgaussdb/v3/model/list_recycle_instances_request.py +173 -0
  19. huaweicloudsdkgaussdb/v3/model/list_recycle_instances_response.py +145 -0
  20. huaweicloudsdkgaussdb/v3/model/lts_config.py +202 -0
  21. huaweicloudsdkgaussdb/v3/model/lts_configs_v3.py +140 -0
  22. huaweicloudsdkgaussdb/v3/model/modify_gauss_my_sql_proxy_route_mode_request_body.py +3 -3
  23. huaweicloudsdkgaussdb/v3/model/modify_node_priority_request.py +196 -0
  24. huaweicloudsdkgaussdb/v3/model/modify_node_priority_request_body.py +114 -0
  25. huaweicloudsdkgaussdb/v3/model/modify_node_priority_response.py +116 -0
  26. huaweicloudsdkgaussdb/v3/model/mysql_update_instance_name_request.py +32 -3
  27. huaweicloudsdkgaussdb/v3/model/proxy_configuration.py +260 -0
  28. huaweicloudsdkgaussdb/v3/model/proxy_ip_group_detail.py +170 -0
  29. huaweicloudsdkgaussdb/v3/model/proxy_update_proxy_name_request.py +114 -0
  30. huaweicloudsdkgaussdb/v3/model/proxy_upgrade_proxy_version_request.py +142 -0
  31. huaweicloudsdkgaussdb/v3/model/proxy_upgrade_version_detail.py +202 -0
  32. huaweicloudsdkgaussdb/v3/model/recycle_instance_v3.py +579 -0
  33. huaweicloudsdkgaussdb/v3/model/recycle_policy.py +114 -0
  34. huaweicloudsdkgaussdb/v3/model/rename_instance_node_request.py +168 -0
  35. huaweicloudsdkgaussdb/v3/model/rename_instance_node_request_body.py +114 -0
  36. huaweicloudsdkgaussdb/v3/model/rename_instance_node_response.py +116 -0
  37. huaweicloudsdkgaussdb/v3/model/restart_proxy_instance_request.py +171 -0
  38. huaweicloudsdkgaussdb/v3/model/restart_proxy_instance_response.py +116 -0
  39. huaweicloudsdkgaussdb/v3/model/set_recycle_policy_request.py +140 -0
  40. huaweicloudsdkgaussdb/v3/model/set_recycle_policy_request_body.py +111 -0
  41. huaweicloudsdkgaussdb/v3/model/set_recycle_policy_response.py +85 -0
  42. huaweicloudsdkgaussdb/v3/model/show_auto_scaling_history_request.py +201 -0
  43. huaweicloudsdkgaussdb/v3/model/show_auto_scaling_history_response.py +145 -0
  44. huaweicloudsdkgaussdb/v3/model/show_instance_eip_request.py +143 -0
  45. huaweicloudsdkgaussdb/v3/model/show_instance_eip_response.py +493 -0
  46. huaweicloudsdkgaussdb/v3/model/show_lts_configs_request.py +260 -0
  47. huaweicloudsdkgaussdb/v3/model/show_lts_configs_response.py +145 -0
  48. huaweicloudsdkgaussdb/v3/model/show_proxy_configurations_request.py +258 -0
  49. huaweicloudsdkgaussdb/v3/model/show_proxy_configurations_response.py +145 -0
  50. huaweicloudsdkgaussdb/v3/model/show_proxy_ipgroup_request.py +171 -0
  51. huaweicloudsdkgaussdb/v3/model/show_proxy_ipgroup_response.py +170 -0
  52. huaweicloudsdkgaussdb/v3/model/show_proxy_version_request.py +199 -0
  53. huaweicloudsdkgaussdb/v3/model/show_proxy_version_response.py +174 -0
  54. huaweicloudsdkgaussdb/v3/model/show_recycle_policy_request.py +115 -0
  55. huaweicloudsdkgaussdb/v3/model/show_recycle_policy_response.py +112 -0
  56. huaweicloudsdkgaussdb/v3/model/show_slowlog_sensitive_status_request.py +143 -0
  57. huaweicloudsdkgaussdb/v3/model/show_slowlog_sensitive_status_response.py +116 -0
  58. huaweicloudsdkgaussdb/v3/model/single_node_info.py +142 -0
  59. huaweicloudsdkgaussdb/v3/model/template_apply_history.py +231 -0
  60. huaweicloudsdkgaussdb/v3/model/update_proxy_name_request.py +196 -0
  61. huaweicloudsdkgaussdb/v3/model/update_proxy_name_response.py +116 -0
  62. huaweicloudsdkgaussdb/v3/model/update_serverless_policy.py +142 -0
  63. huaweicloudsdkgaussdb/v3/model/update_serverless_policy_request.py +168 -0
  64. huaweicloudsdkgaussdb/v3/model/update_serverless_policy_response.py +85 -0
  65. huaweicloudsdkgaussdb/v3/model/update_slowlog_sensitive_switch_request.py +168 -0
  66. huaweicloudsdkgaussdb/v3/model/update_slowlog_sensitive_switch_request_body.py +114 -0
  67. huaweicloudsdkgaussdb/v3/model/update_slowlog_sensitive_switch_response.py +85 -0
  68. huaweicloudsdkgaussdb/v3/model/upgrade_proxy_version_request.py +196 -0
  69. huaweicloudsdkgaussdb/v3/model/upgrade_proxy_version_response.py +116 -0
  70. {huaweicloudsdkgaussdb-3.1.97.dist-info → huaweicloudsdkgaussdb-3.1.99.dist-info}/METADATA +2 -2
  71. {huaweicloudsdkgaussdb-3.1.97.dist-info → huaweicloudsdkgaussdb-3.1.99.dist-info}/RECORD +74 -11
  72. {huaweicloudsdkgaussdb-3.1.97.dist-info → huaweicloudsdkgaussdb-3.1.99.dist-info}/LICENSE +0 -0
  73. {huaweicloudsdkgaussdb-3.1.97.dist-info → huaweicloudsdkgaussdb-3.1.99.dist-info}/WHEEL +0 -0
  74. {huaweicloudsdkgaussdb-3.1.97.dist-info → huaweicloudsdkgaussdb-3.1.99.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,168 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class RenameInstanceNodeRequest:
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
+ 'body': 'RenameInstanceNodeRequestBody'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'x_language': 'X-Language',
27
+ 'instance_id': 'instance_id',
28
+ 'body': 'body'
29
+ }
30
+
31
+ def __init__(self, x_language=None, instance_id=None, body=None):
32
+ """RenameInstanceNodeRequest
33
+
34
+ The model defined in huaweicloud sdk
35
+
36
+ :param x_language: 语言。
37
+ :type x_language: str
38
+ :param instance_id: 实例ID。
39
+ :type instance_id: str
40
+ :param body: Body of the RenameInstanceNodeRequest
41
+ :type body: :class:`huaweicloudsdkgaussdb.v3.RenameInstanceNodeRequestBody`
42
+ """
43
+
44
+
45
+
46
+ self._x_language = None
47
+ self._instance_id = None
48
+ self._body = None
49
+ self.discriminator = None
50
+
51
+ if x_language is not None:
52
+ self.x_language = x_language
53
+ self.instance_id = instance_id
54
+ if body is not None:
55
+ self.body = body
56
+
57
+ @property
58
+ def x_language(self):
59
+ """Gets the x_language of this RenameInstanceNodeRequest.
60
+
61
+ 语言。
62
+
63
+ :return: The x_language of this RenameInstanceNodeRequest.
64
+ :rtype: str
65
+ """
66
+ return self._x_language
67
+
68
+ @x_language.setter
69
+ def x_language(self, x_language):
70
+ """Sets the x_language of this RenameInstanceNodeRequest.
71
+
72
+ 语言。
73
+
74
+ :param x_language: The x_language of this RenameInstanceNodeRequest.
75
+ :type x_language: str
76
+ """
77
+ self._x_language = x_language
78
+
79
+ @property
80
+ def instance_id(self):
81
+ """Gets the instance_id of this RenameInstanceNodeRequest.
82
+
83
+ 实例ID。
84
+
85
+ :return: The instance_id of this RenameInstanceNodeRequest.
86
+ :rtype: str
87
+ """
88
+ return self._instance_id
89
+
90
+ @instance_id.setter
91
+ def instance_id(self, instance_id):
92
+ """Sets the instance_id of this RenameInstanceNodeRequest.
93
+
94
+ 实例ID。
95
+
96
+ :param instance_id: The instance_id of this RenameInstanceNodeRequest.
97
+ :type instance_id: str
98
+ """
99
+ self._instance_id = instance_id
100
+
101
+ @property
102
+ def body(self):
103
+ """Gets the body of this RenameInstanceNodeRequest.
104
+
105
+ :return: The body of this RenameInstanceNodeRequest.
106
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.RenameInstanceNodeRequestBody`
107
+ """
108
+ return self._body
109
+
110
+ @body.setter
111
+ def body(self, body):
112
+ """Sets the body of this RenameInstanceNodeRequest.
113
+
114
+ :param body: The body of this RenameInstanceNodeRequest.
115
+ :type body: :class:`huaweicloudsdkgaussdb.v3.RenameInstanceNodeRequestBody`
116
+ """
117
+ self._body = body
118
+
119
+ def to_dict(self):
120
+ """Returns the model properties as a dict"""
121
+ result = {}
122
+
123
+ for attr, _ in six.iteritems(self.openapi_types):
124
+ value = getattr(self, attr)
125
+ if isinstance(value, list):
126
+ result[attr] = list(map(
127
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
128
+ value
129
+ ))
130
+ elif hasattr(value, "to_dict"):
131
+ result[attr] = value.to_dict()
132
+ elif isinstance(value, dict):
133
+ result[attr] = dict(map(
134
+ lambda item: (item[0], item[1].to_dict())
135
+ if hasattr(item[1], "to_dict") else item,
136
+ value.items()
137
+ ))
138
+ else:
139
+ if attr in self.sensitive_list:
140
+ result[attr] = "****"
141
+ else:
142
+ result[attr] = value
143
+
144
+ return result
145
+
146
+ def to_str(self):
147
+ """Returns the string representation of the model"""
148
+ import simplejson as json
149
+ if six.PY2:
150
+ import sys
151
+ reload(sys)
152
+ sys.setdefaultencoding("utf-8")
153
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
154
+
155
+ def __repr__(self):
156
+ """For `print`"""
157
+ return self.to_str()
158
+
159
+ def __eq__(self, other):
160
+ """Returns true if both objects are equal"""
161
+ if not isinstance(other, RenameInstanceNodeRequest):
162
+ return False
163
+
164
+ return self.__dict__ == other.__dict__
165
+
166
+ def __ne__(self, other):
167
+ """Returns true if both objects are not equal"""
168
+ return not self == other
@@ -0,0 +1,114 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class RenameInstanceNodeRequestBody:
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
+ 'node_list': 'list[SingleNodeInfo]'
21
+ }
22
+
23
+ attribute_map = {
24
+ 'node_list': 'node_list'
25
+ }
26
+
27
+ def __init__(self, node_list=None):
28
+ """RenameInstanceNodeRequestBody
29
+
30
+ The model defined in huaweicloud sdk
31
+
32
+ :param node_list: 节点信息列表
33
+ :type node_list: list[:class:`huaweicloudsdkgaussdb.v3.SingleNodeInfo`]
34
+ """
35
+
36
+
37
+
38
+ self._node_list = None
39
+ self.discriminator = None
40
+
41
+ self.node_list = node_list
42
+
43
+ @property
44
+ def node_list(self):
45
+ """Gets the node_list of this RenameInstanceNodeRequestBody.
46
+
47
+ 节点信息列表
48
+
49
+ :return: The node_list of this RenameInstanceNodeRequestBody.
50
+ :rtype: list[:class:`huaweicloudsdkgaussdb.v3.SingleNodeInfo`]
51
+ """
52
+ return self._node_list
53
+
54
+ @node_list.setter
55
+ def node_list(self, node_list):
56
+ """Sets the node_list of this RenameInstanceNodeRequestBody.
57
+
58
+ 节点信息列表
59
+
60
+ :param node_list: The node_list of this RenameInstanceNodeRequestBody.
61
+ :type node_list: list[:class:`huaweicloudsdkgaussdb.v3.SingleNodeInfo`]
62
+ """
63
+ self._node_list = node_list
64
+
65
+ def to_dict(self):
66
+ """Returns the model properties as a dict"""
67
+ result = {}
68
+
69
+ for attr, _ in six.iteritems(self.openapi_types):
70
+ value = getattr(self, attr)
71
+ if isinstance(value, list):
72
+ result[attr] = list(map(
73
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
74
+ value
75
+ ))
76
+ elif hasattr(value, "to_dict"):
77
+ result[attr] = value.to_dict()
78
+ elif isinstance(value, dict):
79
+ result[attr] = dict(map(
80
+ lambda item: (item[0], item[1].to_dict())
81
+ if hasattr(item[1], "to_dict") else item,
82
+ value.items()
83
+ ))
84
+ else:
85
+ if attr in self.sensitive_list:
86
+ result[attr] = "****"
87
+ else:
88
+ result[attr] = value
89
+
90
+ return result
91
+
92
+ def to_str(self):
93
+ """Returns the string representation of the model"""
94
+ import simplejson as json
95
+ if six.PY2:
96
+ import sys
97
+ reload(sys)
98
+ sys.setdefaultencoding("utf-8")
99
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
100
+
101
+ def __repr__(self):
102
+ """For `print`"""
103
+ return self.to_str()
104
+
105
+ def __eq__(self, other):
106
+ """Returns true if both objects are equal"""
107
+ if not isinstance(other, RenameInstanceNodeRequestBody):
108
+ return False
109
+
110
+ return self.__dict__ == other.__dict__
111
+
112
+ def __ne__(self, other):
113
+ """Returns true if both objects are not equal"""
114
+ 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 RenameInstanceNodeResponse(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
+ 'job_id': 'str'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'job_id': 'job_id'
26
+ }
27
+
28
+ def __init__(self, job_id=None):
29
+ """RenameInstanceNodeResponse
30
+
31
+ The model defined in huaweicloud sdk
32
+
33
+ :param job_id: 工作流ID。
34
+ :type job_id: str
35
+ """
36
+
37
+ super(RenameInstanceNodeResponse, self).__init__()
38
+
39
+ self._job_id = None
40
+ self.discriminator = None
41
+
42
+ if job_id is not None:
43
+ self.job_id = job_id
44
+
45
+ @property
46
+ def job_id(self):
47
+ """Gets the job_id of this RenameInstanceNodeResponse.
48
+
49
+ 工作流ID。
50
+
51
+ :return: The job_id of this RenameInstanceNodeResponse.
52
+ :rtype: str
53
+ """
54
+ return self._job_id
55
+
56
+ @job_id.setter
57
+ def job_id(self, job_id):
58
+ """Sets the job_id of this RenameInstanceNodeResponse.
59
+
60
+ 工作流ID。
61
+
62
+ :param job_id: The job_id of this RenameInstanceNodeResponse.
63
+ :type job_id: str
64
+ """
65
+ self._job_id = job_id
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, RenameInstanceNodeResponse):
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,171 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class RestartProxyInstanceRequest:
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
+ }
24
+
25
+ attribute_map = {
26
+ 'x_language': 'X-Language',
27
+ 'instance_id': 'instance_id',
28
+ 'proxy_id': 'proxy_id'
29
+ }
30
+
31
+ def __init__(self, x_language=None, instance_id=None, proxy_id=None):
32
+ """RestartProxyInstanceRequest
33
+
34
+ The model defined in huaweicloud sdk
35
+
36
+ :param x_language: 语言。
37
+ :type x_language: str
38
+ :param instance_id: 实例ID。
39
+ :type instance_id: str
40
+ :param proxy_id: 数据库代理ID。
41
+ :type proxy_id: str
42
+ """
43
+
44
+
45
+
46
+ self._x_language = None
47
+ self._instance_id = None
48
+ self._proxy_id = None
49
+ self.discriminator = None
50
+
51
+ if x_language is not None:
52
+ self.x_language = x_language
53
+ self.instance_id = instance_id
54
+ self.proxy_id = proxy_id
55
+
56
+ @property
57
+ def x_language(self):
58
+ """Gets the x_language of this RestartProxyInstanceRequest.
59
+
60
+ 语言。
61
+
62
+ :return: The x_language of this RestartProxyInstanceRequest.
63
+ :rtype: str
64
+ """
65
+ return self._x_language
66
+
67
+ @x_language.setter
68
+ def x_language(self, x_language):
69
+ """Sets the x_language of this RestartProxyInstanceRequest.
70
+
71
+ 语言。
72
+
73
+ :param x_language: The x_language of this RestartProxyInstanceRequest.
74
+ :type x_language: str
75
+ """
76
+ self._x_language = x_language
77
+
78
+ @property
79
+ def instance_id(self):
80
+ """Gets the instance_id of this RestartProxyInstanceRequest.
81
+
82
+ 实例ID。
83
+
84
+ :return: The instance_id of this RestartProxyInstanceRequest.
85
+ :rtype: str
86
+ """
87
+ return self._instance_id
88
+
89
+ @instance_id.setter
90
+ def instance_id(self, instance_id):
91
+ """Sets the instance_id of this RestartProxyInstanceRequest.
92
+
93
+ 实例ID。
94
+
95
+ :param instance_id: The instance_id of this RestartProxyInstanceRequest.
96
+ :type instance_id: str
97
+ """
98
+ self._instance_id = instance_id
99
+
100
+ @property
101
+ def proxy_id(self):
102
+ """Gets the proxy_id of this RestartProxyInstanceRequest.
103
+
104
+ 数据库代理ID。
105
+
106
+ :return: The proxy_id of this RestartProxyInstanceRequest.
107
+ :rtype: str
108
+ """
109
+ return self._proxy_id
110
+
111
+ @proxy_id.setter
112
+ def proxy_id(self, proxy_id):
113
+ """Sets the proxy_id of this RestartProxyInstanceRequest.
114
+
115
+ 数据库代理ID。
116
+
117
+ :param proxy_id: The proxy_id of this RestartProxyInstanceRequest.
118
+ :type proxy_id: str
119
+ """
120
+ self._proxy_id = proxy_id
121
+
122
+ def to_dict(self):
123
+ """Returns the model properties as a dict"""
124
+ result = {}
125
+
126
+ for attr, _ in six.iteritems(self.openapi_types):
127
+ value = getattr(self, attr)
128
+ if isinstance(value, list):
129
+ result[attr] = list(map(
130
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
131
+ value
132
+ ))
133
+ elif hasattr(value, "to_dict"):
134
+ result[attr] = value.to_dict()
135
+ elif isinstance(value, dict):
136
+ result[attr] = dict(map(
137
+ lambda item: (item[0], item[1].to_dict())
138
+ if hasattr(item[1], "to_dict") else item,
139
+ value.items()
140
+ ))
141
+ else:
142
+ if attr in self.sensitive_list:
143
+ result[attr] = "****"
144
+ else:
145
+ result[attr] = value
146
+
147
+ return result
148
+
149
+ def to_str(self):
150
+ """Returns the string representation of the model"""
151
+ import simplejson as json
152
+ if six.PY2:
153
+ import sys
154
+ reload(sys)
155
+ sys.setdefaultencoding("utf-8")
156
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
157
+
158
+ def __repr__(self):
159
+ """For `print`"""
160
+ return self.to_str()
161
+
162
+ def __eq__(self, other):
163
+ """Returns true if both objects are equal"""
164
+ if not isinstance(other, RestartProxyInstanceRequest):
165
+ return False
166
+
167
+ return self.__dict__ == other.__dict__
168
+
169
+ def __ne__(self, other):
170
+ """Returns true if both objects are not equal"""
171
+ 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 RestartProxyInstanceResponse(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
+ 'job_id': 'str'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'job_id': 'job_id'
26
+ }
27
+
28
+ def __init__(self, job_id=None):
29
+ """RestartProxyInstanceResponse
30
+
31
+ The model defined in huaweicloud sdk
32
+
33
+ :param job_id: 工作流ID。
34
+ :type job_id: str
35
+ """
36
+
37
+ super(RestartProxyInstanceResponse, self).__init__()
38
+
39
+ self._job_id = None
40
+ self.discriminator = None
41
+
42
+ if job_id is not None:
43
+ self.job_id = job_id
44
+
45
+ @property
46
+ def job_id(self):
47
+ """Gets the job_id of this RestartProxyInstanceResponse.
48
+
49
+ 工作流ID。
50
+
51
+ :return: The job_id of this RestartProxyInstanceResponse.
52
+ :rtype: str
53
+ """
54
+ return self._job_id
55
+
56
+ @job_id.setter
57
+ def job_id(self, job_id):
58
+ """Sets the job_id of this RestartProxyInstanceResponse.
59
+
60
+ 工作流ID。
61
+
62
+ :param job_id: The job_id of this RestartProxyInstanceResponse.
63
+ :type job_id: str
64
+ """
65
+ self._job_id = job_id
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, RestartProxyInstanceResponse):
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