huaweicloudsdkgaussdbforopengauss 3.1.136__py2.py3-none-any.whl → 3.1.138__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 +15 -0
- huaweicloudsdkgaussdbforopengauss/v3/gaussdbforopengauss_async_client.py +349 -0
- huaweicloudsdkgaussdbforopengauss/v3/gaussdbforopengauss_client.py +349 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/__init__.py +15 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/cancel_schedule_task_request.py +143 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/cancel_schedule_task_response.py +85 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/create_schedule_task_request.py +140 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/create_schedule_task_request_body.py +226 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/create_schedule_task_response.py +116 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/delete_schedule_task_request.py +143 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/delete_schedule_task_response.py +85 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/instance_detail.py +260 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/instance_engine_detail.py +144 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/instance_task_detail.py +173 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_instance_engine_detail_request.py +173 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_instance_engine_detail_response.py +145 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_schedule_task_request.py +318 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_schedule_task_response.py +145 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/schedule_task_detail.py +318 -0
- {huaweicloudsdkgaussdbforopengauss-3.1.136.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.138.dist-info}/METADATA +2 -2
- {huaweicloudsdkgaussdbforopengauss-3.1.136.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.138.dist-info}/RECORD +24 -9
- {huaweicloudsdkgaussdbforopengauss-3.1.136.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.138.dist-info}/LICENSE +0 -0
- {huaweicloudsdkgaussdbforopengauss-3.1.136.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.138.dist-info}/WHEEL +0 -0
- {huaweicloudsdkgaussdbforopengauss-3.1.136.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.138.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,140 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class CreateScheduleTaskRequest:
|
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
|
+
'body': 'CreateScheduleTaskRequestBody'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'x_language': 'X-Language',
|
26
|
+
'body': 'body'
|
27
|
+
}
|
28
|
+
|
29
|
+
def __init__(self, x_language=None, body=None):
|
30
|
+
"""CreateScheduleTaskRequest
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
:param x_language: 语言。
|
35
|
+
:type x_language: str
|
36
|
+
:param body: Body of the CreateScheduleTaskRequest
|
37
|
+
:type body: :class:`huaweicloudsdkgaussdbforopengauss.v3.CreateScheduleTaskRequestBody`
|
38
|
+
"""
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
self._x_language = None
|
43
|
+
self._body = None
|
44
|
+
self.discriminator = None
|
45
|
+
|
46
|
+
if x_language is not None:
|
47
|
+
self.x_language = x_language
|
48
|
+
if body is not None:
|
49
|
+
self.body = body
|
50
|
+
|
51
|
+
@property
|
52
|
+
def x_language(self):
|
53
|
+
"""Gets the x_language of this CreateScheduleTaskRequest.
|
54
|
+
|
55
|
+
语言。
|
56
|
+
|
57
|
+
:return: The x_language of this CreateScheduleTaskRequest.
|
58
|
+
:rtype: str
|
59
|
+
"""
|
60
|
+
return self._x_language
|
61
|
+
|
62
|
+
@x_language.setter
|
63
|
+
def x_language(self, x_language):
|
64
|
+
"""Sets the x_language of this CreateScheduleTaskRequest.
|
65
|
+
|
66
|
+
语言。
|
67
|
+
|
68
|
+
:param x_language: The x_language of this CreateScheduleTaskRequest.
|
69
|
+
:type x_language: str
|
70
|
+
"""
|
71
|
+
self._x_language = x_language
|
72
|
+
|
73
|
+
@property
|
74
|
+
def body(self):
|
75
|
+
"""Gets the body of this CreateScheduleTaskRequest.
|
76
|
+
|
77
|
+
:return: The body of this CreateScheduleTaskRequest.
|
78
|
+
:rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.CreateScheduleTaskRequestBody`
|
79
|
+
"""
|
80
|
+
return self._body
|
81
|
+
|
82
|
+
@body.setter
|
83
|
+
def body(self, body):
|
84
|
+
"""Sets the body of this CreateScheduleTaskRequest.
|
85
|
+
|
86
|
+
:param body: The body of this CreateScheduleTaskRequest.
|
87
|
+
:type body: :class:`huaweicloudsdkgaussdbforopengauss.v3.CreateScheduleTaskRequestBody`
|
88
|
+
"""
|
89
|
+
self._body = body
|
90
|
+
|
91
|
+
def to_dict(self):
|
92
|
+
"""Returns the model properties as a dict"""
|
93
|
+
result = {}
|
94
|
+
|
95
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
96
|
+
value = getattr(self, attr)
|
97
|
+
if isinstance(value, list):
|
98
|
+
result[attr] = list(map(
|
99
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
100
|
+
value
|
101
|
+
))
|
102
|
+
elif hasattr(value, "to_dict"):
|
103
|
+
result[attr] = value.to_dict()
|
104
|
+
elif isinstance(value, dict):
|
105
|
+
result[attr] = dict(map(
|
106
|
+
lambda item: (item[0], item[1].to_dict())
|
107
|
+
if hasattr(item[1], "to_dict") else item,
|
108
|
+
value.items()
|
109
|
+
))
|
110
|
+
else:
|
111
|
+
if attr in self.sensitive_list:
|
112
|
+
result[attr] = "****"
|
113
|
+
else:
|
114
|
+
result[attr] = value
|
115
|
+
|
116
|
+
return result
|
117
|
+
|
118
|
+
def to_str(self):
|
119
|
+
"""Returns the string representation of the model"""
|
120
|
+
import simplejson as json
|
121
|
+
if six.PY2:
|
122
|
+
import sys
|
123
|
+
reload(sys)
|
124
|
+
sys.setdefaultencoding("utf-8")
|
125
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
126
|
+
|
127
|
+
def __repr__(self):
|
128
|
+
"""For `print`"""
|
129
|
+
return self.to_str()
|
130
|
+
|
131
|
+
def __eq__(self, other):
|
132
|
+
"""Returns true if both objects are equal"""
|
133
|
+
if not isinstance(other, CreateScheduleTaskRequest):
|
134
|
+
return False
|
135
|
+
|
136
|
+
return self.__dict__ == other.__dict__
|
137
|
+
|
138
|
+
def __ne__(self, other):
|
139
|
+
"""Returns true if both objects are not equal"""
|
140
|
+
return not self == other
|
@@ -0,0 +1,226 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class CreateScheduleTaskRequestBody:
|
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_ids': 'list[str]',
|
21
|
+
'start_time': 'str',
|
22
|
+
'upgrade_type': 'str',
|
23
|
+
'upgrade_action': 'str',
|
24
|
+
'target_version': 'str'
|
25
|
+
}
|
26
|
+
|
27
|
+
attribute_map = {
|
28
|
+
'instance_ids': 'instance_ids',
|
29
|
+
'start_time': 'start_time',
|
30
|
+
'upgrade_type': 'upgrade_type',
|
31
|
+
'upgrade_action': 'upgrade_action',
|
32
|
+
'target_version': 'target_version'
|
33
|
+
}
|
34
|
+
|
35
|
+
def __init__(self, instance_ids=None, start_time=None, upgrade_type=None, upgrade_action=None, target_version=None):
|
36
|
+
"""CreateScheduleTaskRequestBody
|
37
|
+
|
38
|
+
The model defined in huaweicloud sdk
|
39
|
+
|
40
|
+
:param instance_ids: 实例ID列表。
|
41
|
+
:type instance_ids: list[str]
|
42
|
+
:param start_time: 任务开始时间。
|
43
|
+
:type start_time: str
|
44
|
+
:param upgrade_type: 实例升级类型。
|
45
|
+
:type upgrade_type: str
|
46
|
+
:param upgrade_action: 实例升级操作。
|
47
|
+
:type upgrade_action: str
|
48
|
+
:param target_version: 实例升级目标版本。
|
49
|
+
:type target_version: str
|
50
|
+
"""
|
51
|
+
|
52
|
+
|
53
|
+
|
54
|
+
self._instance_ids = None
|
55
|
+
self._start_time = None
|
56
|
+
self._upgrade_type = None
|
57
|
+
self._upgrade_action = None
|
58
|
+
self._target_version = None
|
59
|
+
self.discriminator = None
|
60
|
+
|
61
|
+
self.instance_ids = instance_ids
|
62
|
+
self.start_time = start_time
|
63
|
+
self.upgrade_type = upgrade_type
|
64
|
+
self.upgrade_action = upgrade_action
|
65
|
+
self.target_version = target_version
|
66
|
+
|
67
|
+
@property
|
68
|
+
def instance_ids(self):
|
69
|
+
"""Gets the instance_ids of this CreateScheduleTaskRequestBody.
|
70
|
+
|
71
|
+
实例ID列表。
|
72
|
+
|
73
|
+
:return: The instance_ids of this CreateScheduleTaskRequestBody.
|
74
|
+
:rtype: list[str]
|
75
|
+
"""
|
76
|
+
return self._instance_ids
|
77
|
+
|
78
|
+
@instance_ids.setter
|
79
|
+
def instance_ids(self, instance_ids):
|
80
|
+
"""Sets the instance_ids of this CreateScheduleTaskRequestBody.
|
81
|
+
|
82
|
+
实例ID列表。
|
83
|
+
|
84
|
+
:param instance_ids: The instance_ids of this CreateScheduleTaskRequestBody.
|
85
|
+
:type instance_ids: list[str]
|
86
|
+
"""
|
87
|
+
self._instance_ids = instance_ids
|
88
|
+
|
89
|
+
@property
|
90
|
+
def start_time(self):
|
91
|
+
"""Gets the start_time of this CreateScheduleTaskRequestBody.
|
92
|
+
|
93
|
+
任务开始时间。
|
94
|
+
|
95
|
+
:return: The start_time of this CreateScheduleTaskRequestBody.
|
96
|
+
:rtype: str
|
97
|
+
"""
|
98
|
+
return self._start_time
|
99
|
+
|
100
|
+
@start_time.setter
|
101
|
+
def start_time(self, start_time):
|
102
|
+
"""Sets the start_time of this CreateScheduleTaskRequestBody.
|
103
|
+
|
104
|
+
任务开始时间。
|
105
|
+
|
106
|
+
:param start_time: The start_time of this CreateScheduleTaskRequestBody.
|
107
|
+
:type start_time: str
|
108
|
+
"""
|
109
|
+
self._start_time = start_time
|
110
|
+
|
111
|
+
@property
|
112
|
+
def upgrade_type(self):
|
113
|
+
"""Gets the upgrade_type of this CreateScheduleTaskRequestBody.
|
114
|
+
|
115
|
+
实例升级类型。
|
116
|
+
|
117
|
+
:return: The upgrade_type of this CreateScheduleTaskRequestBody.
|
118
|
+
:rtype: str
|
119
|
+
"""
|
120
|
+
return self._upgrade_type
|
121
|
+
|
122
|
+
@upgrade_type.setter
|
123
|
+
def upgrade_type(self, upgrade_type):
|
124
|
+
"""Sets the upgrade_type of this CreateScheduleTaskRequestBody.
|
125
|
+
|
126
|
+
实例升级类型。
|
127
|
+
|
128
|
+
:param upgrade_type: The upgrade_type of this CreateScheduleTaskRequestBody.
|
129
|
+
:type upgrade_type: str
|
130
|
+
"""
|
131
|
+
self._upgrade_type = upgrade_type
|
132
|
+
|
133
|
+
@property
|
134
|
+
def upgrade_action(self):
|
135
|
+
"""Gets the upgrade_action of this CreateScheduleTaskRequestBody.
|
136
|
+
|
137
|
+
实例升级操作。
|
138
|
+
|
139
|
+
:return: The upgrade_action of this CreateScheduleTaskRequestBody.
|
140
|
+
:rtype: str
|
141
|
+
"""
|
142
|
+
return self._upgrade_action
|
143
|
+
|
144
|
+
@upgrade_action.setter
|
145
|
+
def upgrade_action(self, upgrade_action):
|
146
|
+
"""Sets the upgrade_action of this CreateScheduleTaskRequestBody.
|
147
|
+
|
148
|
+
实例升级操作。
|
149
|
+
|
150
|
+
:param upgrade_action: The upgrade_action of this CreateScheduleTaskRequestBody.
|
151
|
+
:type upgrade_action: str
|
152
|
+
"""
|
153
|
+
self._upgrade_action = upgrade_action
|
154
|
+
|
155
|
+
@property
|
156
|
+
def target_version(self):
|
157
|
+
"""Gets the target_version of this CreateScheduleTaskRequestBody.
|
158
|
+
|
159
|
+
实例升级目标版本。
|
160
|
+
|
161
|
+
:return: The target_version of this CreateScheduleTaskRequestBody.
|
162
|
+
:rtype: str
|
163
|
+
"""
|
164
|
+
return self._target_version
|
165
|
+
|
166
|
+
@target_version.setter
|
167
|
+
def target_version(self, target_version):
|
168
|
+
"""Sets the target_version of this CreateScheduleTaskRequestBody.
|
169
|
+
|
170
|
+
实例升级目标版本。
|
171
|
+
|
172
|
+
:param target_version: The target_version of this CreateScheduleTaskRequestBody.
|
173
|
+
:type target_version: str
|
174
|
+
"""
|
175
|
+
self._target_version = target_version
|
176
|
+
|
177
|
+
def to_dict(self):
|
178
|
+
"""Returns the model properties as a dict"""
|
179
|
+
result = {}
|
180
|
+
|
181
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
182
|
+
value = getattr(self, attr)
|
183
|
+
if isinstance(value, list):
|
184
|
+
result[attr] = list(map(
|
185
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
186
|
+
value
|
187
|
+
))
|
188
|
+
elif hasattr(value, "to_dict"):
|
189
|
+
result[attr] = value.to_dict()
|
190
|
+
elif isinstance(value, dict):
|
191
|
+
result[attr] = dict(map(
|
192
|
+
lambda item: (item[0], item[1].to_dict())
|
193
|
+
if hasattr(item[1], "to_dict") else item,
|
194
|
+
value.items()
|
195
|
+
))
|
196
|
+
else:
|
197
|
+
if attr in self.sensitive_list:
|
198
|
+
result[attr] = "****"
|
199
|
+
else:
|
200
|
+
result[attr] = value
|
201
|
+
|
202
|
+
return result
|
203
|
+
|
204
|
+
def to_str(self):
|
205
|
+
"""Returns the string representation of the model"""
|
206
|
+
import simplejson as json
|
207
|
+
if six.PY2:
|
208
|
+
import sys
|
209
|
+
reload(sys)
|
210
|
+
sys.setdefaultencoding("utf-8")
|
211
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
212
|
+
|
213
|
+
def __repr__(self):
|
214
|
+
"""For `print`"""
|
215
|
+
return self.to_str()
|
216
|
+
|
217
|
+
def __eq__(self, other):
|
218
|
+
"""Returns true if both objects are equal"""
|
219
|
+
if not isinstance(other, CreateScheduleTaskRequestBody):
|
220
|
+
return False
|
221
|
+
|
222
|
+
return self.__dict__ == other.__dict__
|
223
|
+
|
224
|
+
def __ne__(self, other):
|
225
|
+
"""Returns true if both objects are not equal"""
|
226
|
+
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 CreateScheduleTaskResponse(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_tasks': 'list[InstanceTaskDetail]'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'instance_tasks': 'instance_tasks'
|
26
|
+
}
|
27
|
+
|
28
|
+
def __init__(self, instance_tasks=None):
|
29
|
+
"""CreateScheduleTaskResponse
|
30
|
+
|
31
|
+
The model defined in huaweicloud sdk
|
32
|
+
|
33
|
+
:param instance_tasks: 任务ID。
|
34
|
+
:type instance_tasks: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.InstanceTaskDetail`]
|
35
|
+
"""
|
36
|
+
|
37
|
+
super(CreateScheduleTaskResponse, self).__init__()
|
38
|
+
|
39
|
+
self._instance_tasks = None
|
40
|
+
self.discriminator = None
|
41
|
+
|
42
|
+
if instance_tasks is not None:
|
43
|
+
self.instance_tasks = instance_tasks
|
44
|
+
|
45
|
+
@property
|
46
|
+
def instance_tasks(self):
|
47
|
+
"""Gets the instance_tasks of this CreateScheduleTaskResponse.
|
48
|
+
|
49
|
+
任务ID。
|
50
|
+
|
51
|
+
:return: The instance_tasks of this CreateScheduleTaskResponse.
|
52
|
+
:rtype: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.InstanceTaskDetail`]
|
53
|
+
"""
|
54
|
+
return self._instance_tasks
|
55
|
+
|
56
|
+
@instance_tasks.setter
|
57
|
+
def instance_tasks(self, instance_tasks):
|
58
|
+
"""Sets the instance_tasks of this CreateScheduleTaskResponse.
|
59
|
+
|
60
|
+
任务ID。
|
61
|
+
|
62
|
+
:param instance_tasks: The instance_tasks of this CreateScheduleTaskResponse.
|
63
|
+
:type instance_tasks: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.InstanceTaskDetail`]
|
64
|
+
"""
|
65
|
+
self._instance_tasks = instance_tasks
|
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, CreateScheduleTaskResponse):
|
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 DeleteScheduleTaskRequest:
|
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
|
+
'task_id': 'str'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'x_language': 'X-Language',
|
26
|
+
'task_id': 'task_id'
|
27
|
+
}
|
28
|
+
|
29
|
+
def __init__(self, x_language=None, task_id=None):
|
30
|
+
"""DeleteScheduleTaskRequest
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
:param x_language: 语言。
|
35
|
+
:type x_language: str
|
36
|
+
:param task_id: 任务id。
|
37
|
+
:type task_id: str
|
38
|
+
"""
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
self._x_language = None
|
43
|
+
self._task_id = None
|
44
|
+
self.discriminator = None
|
45
|
+
|
46
|
+
if x_language is not None:
|
47
|
+
self.x_language = x_language
|
48
|
+
self.task_id = task_id
|
49
|
+
|
50
|
+
@property
|
51
|
+
def x_language(self):
|
52
|
+
"""Gets the x_language of this DeleteScheduleTaskRequest.
|
53
|
+
|
54
|
+
语言。
|
55
|
+
|
56
|
+
:return: The x_language of this DeleteScheduleTaskRequest.
|
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 DeleteScheduleTaskRequest.
|
64
|
+
|
65
|
+
语言。
|
66
|
+
|
67
|
+
:param x_language: The x_language of this DeleteScheduleTaskRequest.
|
68
|
+
:type x_language: str
|
69
|
+
"""
|
70
|
+
self._x_language = x_language
|
71
|
+
|
72
|
+
@property
|
73
|
+
def task_id(self):
|
74
|
+
"""Gets the task_id of this DeleteScheduleTaskRequest.
|
75
|
+
|
76
|
+
任务id。
|
77
|
+
|
78
|
+
:return: The task_id of this DeleteScheduleTaskRequest.
|
79
|
+
:rtype: str
|
80
|
+
"""
|
81
|
+
return self._task_id
|
82
|
+
|
83
|
+
@task_id.setter
|
84
|
+
def task_id(self, task_id):
|
85
|
+
"""Sets the task_id of this DeleteScheduleTaskRequest.
|
86
|
+
|
87
|
+
任务id。
|
88
|
+
|
89
|
+
:param task_id: The task_id of this DeleteScheduleTaskRequest.
|
90
|
+
:type task_id: str
|
91
|
+
"""
|
92
|
+
self._task_id = task_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, DeleteScheduleTaskRequest):
|
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,85 @@
|
|
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 DeleteScheduleTaskResponse(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
|
+
}
|
22
|
+
|
23
|
+
attribute_map = {
|
24
|
+
}
|
25
|
+
|
26
|
+
def __init__(self):
|
27
|
+
"""DeleteScheduleTaskResponse
|
28
|
+
|
29
|
+
The model defined in huaweicloud sdk
|
30
|
+
|
31
|
+
"""
|
32
|
+
|
33
|
+
super(DeleteScheduleTaskResponse, self).__init__()
|
34
|
+
self.discriminator = None
|
35
|
+
|
36
|
+
def to_dict(self):
|
37
|
+
"""Returns the model properties as a dict"""
|
38
|
+
result = {}
|
39
|
+
|
40
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
41
|
+
value = getattr(self, attr)
|
42
|
+
if isinstance(value, list):
|
43
|
+
result[attr] = list(map(
|
44
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
45
|
+
value
|
46
|
+
))
|
47
|
+
elif hasattr(value, "to_dict"):
|
48
|
+
result[attr] = value.to_dict()
|
49
|
+
elif isinstance(value, dict):
|
50
|
+
result[attr] = dict(map(
|
51
|
+
lambda item: (item[0], item[1].to_dict())
|
52
|
+
if hasattr(item[1], "to_dict") else item,
|
53
|
+
value.items()
|
54
|
+
))
|
55
|
+
else:
|
56
|
+
if attr in self.sensitive_list:
|
57
|
+
result[attr] = "****"
|
58
|
+
else:
|
59
|
+
result[attr] = value
|
60
|
+
|
61
|
+
return result
|
62
|
+
|
63
|
+
def to_str(self):
|
64
|
+
"""Returns the string representation of the model"""
|
65
|
+
import simplejson as json
|
66
|
+
if six.PY2:
|
67
|
+
import sys
|
68
|
+
reload(sys)
|
69
|
+
sys.setdefaultencoding("utf-8")
|
70
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
71
|
+
|
72
|
+
def __repr__(self):
|
73
|
+
"""For `print`"""
|
74
|
+
return self.to_str()
|
75
|
+
|
76
|
+
def __eq__(self, other):
|
77
|
+
"""Returns true if both objects are equal"""
|
78
|
+
if not isinstance(other, DeleteScheduleTaskResponse):
|
79
|
+
return False
|
80
|
+
|
81
|
+
return self.__dict__ == other.__dict__
|
82
|
+
|
83
|
+
def __ne__(self, other):
|
84
|
+
"""Returns true if both objects are not equal"""
|
85
|
+
return not self == other
|