huaweicloudsdkvas 3.1.160__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.
- huaweicloudsdkvas/__init__.py +0 -0
- huaweicloudsdkvas/v2/__init__.py +46 -0
- huaweicloudsdkvas/v2/model/__init__.py +43 -0
- huaweicloudsdkvas/v2/model/create_response_body.py +114 -0
- huaweicloudsdkvas/v2/model/create_tasks_request.py +139 -0
- huaweicloudsdkvas/v2/model/create_tasks_request_body.py +327 -0
- huaweicloudsdkvas/v2/model/create_tasks_response.py +112 -0
- huaweicloudsdkvas/v2/model/delete_task_request.py +142 -0
- huaweicloudsdkvas/v2/model/delete_task_response.py +85 -0
- huaweicloudsdkvas/v2/model/list_tasks_details_request.py +375 -0
- huaweicloudsdkvas/v2/model/list_tasks_details_response.py +145 -0
- huaweicloudsdkvas/v2/model/show_task_request.py +142 -0
- huaweicloudsdkvas/v2/model/show_task_response.py +656 -0
- huaweicloudsdkvas/v2/model/start_task_request.py +142 -0
- huaweicloudsdkvas/v2/model/start_task_response.py +85 -0
- huaweicloudsdkvas/v2/model/stop_task_request.py +142 -0
- huaweicloudsdkvas/v2/model/stop_task_response.py +85 -0
- huaweicloudsdkvas/v2/model/task_details.py +630 -0
- huaweicloudsdkvas/v2/model/task_details_error.py +142 -0
- huaweicloudsdkvas/v2/model/task_details_service_title.py +144 -0
- huaweicloudsdkvas/v2/model/task_hosting_result.py +111 -0
- huaweicloudsdkvas/v2/model/task_hosting_result_hosting_result.py +202 -0
- huaweicloudsdkvas/v2/model/task_input.py +167 -0
- huaweicloudsdkvas/v2/model/task_input_data.py +405 -0
- huaweicloudsdkvas/v2/model/task_input_vcn.py +198 -0
- huaweicloudsdkvas/v2/model/task_output.py +211 -0
- huaweicloudsdkvas/v2/model/task_output_dis.py +143 -0
- huaweicloudsdkvas/v2/model/task_output_for_display.py +211 -0
- huaweicloudsdkvas/v2/model/task_output_hosting.py +115 -0
- huaweicloudsdkvas/v2/model/task_output_hosting_for_display.py +173 -0
- huaweicloudsdkvas/v2/model/task_output_hosting_for_display_obs.py +144 -0
- huaweicloudsdkvas/v2/model/task_output_localpath.py +143 -0
- huaweicloudsdkvas/v2/model/task_output_obs.py +171 -0
- huaweicloudsdkvas/v2/model/task_output_webhook.py +171 -0
- huaweicloudsdkvas/v2/model/task_service_config.py +115 -0
- huaweicloudsdkvas/v2/model/task_timing.py +283 -0
- huaweicloudsdkvas/v2/model/task_timing_frequency.py +200 -0
- huaweicloudsdkvas/v2/model/task_timing_periods.py +144 -0
- huaweicloudsdkvas/v2/model/update_task_request.py +167 -0
- huaweicloudsdkvas/v2/model/update_task_request_body.py +244 -0
- huaweicloudsdkvas/v2/model/update_task_response.py +631 -0
- huaweicloudsdkvas/v2/region/__init__.py +0 -0
- huaweicloudsdkvas/v2/region/vas_region.py +52 -0
- huaweicloudsdkvas/v2/vas_async_client.py +570 -0
- huaweicloudsdkvas/v2/vas_client.py +567 -0
- huaweicloudsdkvas-3.1.160.dist-info/LICENSE +13 -0
- huaweicloudsdkvas-3.1.160.dist-info/METADATA +26 -0
- huaweicloudsdkvas-3.1.160.dist-info/RECORD +50 -0
- huaweicloudsdkvas-3.1.160.dist-info/WHEEL +5 -0
- huaweicloudsdkvas-3.1.160.dist-info/top_level.txt +1 -0
File without changes
|
@@ -0,0 +1,46 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
from __future__ import absolute_import
|
4
|
+
|
5
|
+
from huaweicloudsdkvas.v2.vas_client import VasClient
|
6
|
+
from huaweicloudsdkvas.v2.vas_async_client import VasAsyncClient
|
7
|
+
|
8
|
+
from huaweicloudsdkvas.v2.model.create_response_body import CreateResponseBody
|
9
|
+
from huaweicloudsdkvas.v2.model.create_tasks_request import CreateTasksRequest
|
10
|
+
from huaweicloudsdkvas.v2.model.create_tasks_request_body import CreateTasksRequestBody
|
11
|
+
from huaweicloudsdkvas.v2.model.create_tasks_response import CreateTasksResponse
|
12
|
+
from huaweicloudsdkvas.v2.model.delete_task_request import DeleteTaskRequest
|
13
|
+
from huaweicloudsdkvas.v2.model.delete_task_response import DeleteTaskResponse
|
14
|
+
from huaweicloudsdkvas.v2.model.list_tasks_details_request import ListTasksDetailsRequest
|
15
|
+
from huaweicloudsdkvas.v2.model.list_tasks_details_response import ListTasksDetailsResponse
|
16
|
+
from huaweicloudsdkvas.v2.model.show_task_request import ShowTaskRequest
|
17
|
+
from huaweicloudsdkvas.v2.model.show_task_response import ShowTaskResponse
|
18
|
+
from huaweicloudsdkvas.v2.model.start_task_request import StartTaskRequest
|
19
|
+
from huaweicloudsdkvas.v2.model.start_task_response import StartTaskResponse
|
20
|
+
from huaweicloudsdkvas.v2.model.stop_task_request import StopTaskRequest
|
21
|
+
from huaweicloudsdkvas.v2.model.stop_task_response import StopTaskResponse
|
22
|
+
from huaweicloudsdkvas.v2.model.task_details import TaskDetails
|
23
|
+
from huaweicloudsdkvas.v2.model.task_details_error import TaskDetailsError
|
24
|
+
from huaweicloudsdkvas.v2.model.task_details_service_title import TaskDetailsServiceTitle
|
25
|
+
from huaweicloudsdkvas.v2.model.task_hosting_result import TaskHostingResult
|
26
|
+
from huaweicloudsdkvas.v2.model.task_hosting_result_hosting_result import TaskHostingResultHostingResult
|
27
|
+
from huaweicloudsdkvas.v2.model.task_input import TaskInput
|
28
|
+
from huaweicloudsdkvas.v2.model.task_input_data import TaskInputData
|
29
|
+
from huaweicloudsdkvas.v2.model.task_input_vcn import TaskInputVcn
|
30
|
+
from huaweicloudsdkvas.v2.model.task_output import TaskOutput
|
31
|
+
from huaweicloudsdkvas.v2.model.task_output_dis import TaskOutputDis
|
32
|
+
from huaweicloudsdkvas.v2.model.task_output_for_display import TaskOutputForDisplay
|
33
|
+
from huaweicloudsdkvas.v2.model.task_output_hosting import TaskOutputHosting
|
34
|
+
from huaweicloudsdkvas.v2.model.task_output_hosting_for_display import TaskOutputHostingForDisplay
|
35
|
+
from huaweicloudsdkvas.v2.model.task_output_hosting_for_display_obs import TaskOutputHostingForDisplayObs
|
36
|
+
from huaweicloudsdkvas.v2.model.task_output_localpath import TaskOutputLocalpath
|
37
|
+
from huaweicloudsdkvas.v2.model.task_output_obs import TaskOutputObs
|
38
|
+
from huaweicloudsdkvas.v2.model.task_output_webhook import TaskOutputWebhook
|
39
|
+
from huaweicloudsdkvas.v2.model.task_service_config import TaskServiceConfig
|
40
|
+
from huaweicloudsdkvas.v2.model.task_timing import TaskTiming
|
41
|
+
from huaweicloudsdkvas.v2.model.task_timing_frequency import TaskTimingFrequency
|
42
|
+
from huaweicloudsdkvas.v2.model.task_timing_periods import TaskTimingPeriods
|
43
|
+
from huaweicloudsdkvas.v2.model.update_task_request import UpdateTaskRequest
|
44
|
+
from huaweicloudsdkvas.v2.model.update_task_request_body import UpdateTaskRequestBody
|
45
|
+
from huaweicloudsdkvas.v2.model.update_task_response import UpdateTaskResponse
|
46
|
+
|
@@ -0,0 +1,43 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
from __future__ import absolute_import
|
4
|
+
|
5
|
+
# import models into model package
|
6
|
+
from huaweicloudsdkvas.v2.model.create_response_body import CreateResponseBody
|
7
|
+
from huaweicloudsdkvas.v2.model.create_tasks_request import CreateTasksRequest
|
8
|
+
from huaweicloudsdkvas.v2.model.create_tasks_request_body import CreateTasksRequestBody
|
9
|
+
from huaweicloudsdkvas.v2.model.create_tasks_response import CreateTasksResponse
|
10
|
+
from huaweicloudsdkvas.v2.model.delete_task_request import DeleteTaskRequest
|
11
|
+
from huaweicloudsdkvas.v2.model.delete_task_response import DeleteTaskResponse
|
12
|
+
from huaweicloudsdkvas.v2.model.list_tasks_details_request import ListTasksDetailsRequest
|
13
|
+
from huaweicloudsdkvas.v2.model.list_tasks_details_response import ListTasksDetailsResponse
|
14
|
+
from huaweicloudsdkvas.v2.model.show_task_request import ShowTaskRequest
|
15
|
+
from huaweicloudsdkvas.v2.model.show_task_response import ShowTaskResponse
|
16
|
+
from huaweicloudsdkvas.v2.model.start_task_request import StartTaskRequest
|
17
|
+
from huaweicloudsdkvas.v2.model.start_task_response import StartTaskResponse
|
18
|
+
from huaweicloudsdkvas.v2.model.stop_task_request import StopTaskRequest
|
19
|
+
from huaweicloudsdkvas.v2.model.stop_task_response import StopTaskResponse
|
20
|
+
from huaweicloudsdkvas.v2.model.task_details import TaskDetails
|
21
|
+
from huaweicloudsdkvas.v2.model.task_details_error import TaskDetailsError
|
22
|
+
from huaweicloudsdkvas.v2.model.task_details_service_title import TaskDetailsServiceTitle
|
23
|
+
from huaweicloudsdkvas.v2.model.task_hosting_result import TaskHostingResult
|
24
|
+
from huaweicloudsdkvas.v2.model.task_hosting_result_hosting_result import TaskHostingResultHostingResult
|
25
|
+
from huaweicloudsdkvas.v2.model.task_input import TaskInput
|
26
|
+
from huaweicloudsdkvas.v2.model.task_input_data import TaskInputData
|
27
|
+
from huaweicloudsdkvas.v2.model.task_input_vcn import TaskInputVcn
|
28
|
+
from huaweicloudsdkvas.v2.model.task_output import TaskOutput
|
29
|
+
from huaweicloudsdkvas.v2.model.task_output_dis import TaskOutputDis
|
30
|
+
from huaweicloudsdkvas.v2.model.task_output_for_display import TaskOutputForDisplay
|
31
|
+
from huaweicloudsdkvas.v2.model.task_output_hosting import TaskOutputHosting
|
32
|
+
from huaweicloudsdkvas.v2.model.task_output_hosting_for_display import TaskOutputHostingForDisplay
|
33
|
+
from huaweicloudsdkvas.v2.model.task_output_hosting_for_display_obs import TaskOutputHostingForDisplayObs
|
34
|
+
from huaweicloudsdkvas.v2.model.task_output_localpath import TaskOutputLocalpath
|
35
|
+
from huaweicloudsdkvas.v2.model.task_output_obs import TaskOutputObs
|
36
|
+
from huaweicloudsdkvas.v2.model.task_output_webhook import TaskOutputWebhook
|
37
|
+
from huaweicloudsdkvas.v2.model.task_service_config import TaskServiceConfig
|
38
|
+
from huaweicloudsdkvas.v2.model.task_timing import TaskTiming
|
39
|
+
from huaweicloudsdkvas.v2.model.task_timing_frequency import TaskTimingFrequency
|
40
|
+
from huaweicloudsdkvas.v2.model.task_timing_periods import TaskTimingPeriods
|
41
|
+
from huaweicloudsdkvas.v2.model.update_task_request import UpdateTaskRequest
|
42
|
+
from huaweicloudsdkvas.v2.model.update_task_request_body import UpdateTaskRequestBody
|
43
|
+
from huaweicloudsdkvas.v2.model.update_task_response import UpdateTaskResponse
|
@@ -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 CreateResponseBody:
|
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
|
+
'id': 'str'
|
21
|
+
}
|
22
|
+
|
23
|
+
attribute_map = {
|
24
|
+
'id': 'id'
|
25
|
+
}
|
26
|
+
|
27
|
+
def __init__(self, id=None):
|
28
|
+
r"""CreateResponseBody
|
29
|
+
|
30
|
+
The model defined in huaweicloud sdk
|
31
|
+
|
32
|
+
:param id: 创建出的服务作业ID
|
33
|
+
:type id: str
|
34
|
+
"""
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
self._id = None
|
39
|
+
self.discriminator = None
|
40
|
+
|
41
|
+
self.id = id
|
42
|
+
|
43
|
+
@property
|
44
|
+
def id(self):
|
45
|
+
r"""Gets the id of this CreateResponseBody.
|
46
|
+
|
47
|
+
创建出的服务作业ID
|
48
|
+
|
49
|
+
:return: The id of this CreateResponseBody.
|
50
|
+
:rtype: str
|
51
|
+
"""
|
52
|
+
return self._id
|
53
|
+
|
54
|
+
@id.setter
|
55
|
+
def id(self, id):
|
56
|
+
r"""Sets the id of this CreateResponseBody.
|
57
|
+
|
58
|
+
创建出的服务作业ID
|
59
|
+
|
60
|
+
:param id: The id of this CreateResponseBody.
|
61
|
+
:type id: str
|
62
|
+
"""
|
63
|
+
self._id = id
|
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, CreateResponseBody):
|
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,139 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class CreateTasksRequest:
|
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
|
+
'service_name': 'str',
|
21
|
+
'body': 'CreateTasksRequestBody'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'service_name': 'service_name',
|
26
|
+
'body': 'body'
|
27
|
+
}
|
28
|
+
|
29
|
+
def __init__(self, service_name=None, body=None):
|
30
|
+
r"""CreateTasksRequest
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
:param service_name: 服务名称
|
35
|
+
:type service_name: str
|
36
|
+
:param body: Body of the CreateTasksRequest
|
37
|
+
:type body: :class:`huaweicloudsdkvas.v2.CreateTasksRequestBody`
|
38
|
+
"""
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
self._service_name = None
|
43
|
+
self._body = None
|
44
|
+
self.discriminator = None
|
45
|
+
|
46
|
+
self.service_name = service_name
|
47
|
+
if body is not None:
|
48
|
+
self.body = body
|
49
|
+
|
50
|
+
@property
|
51
|
+
def service_name(self):
|
52
|
+
r"""Gets the service_name of this CreateTasksRequest.
|
53
|
+
|
54
|
+
服务名称
|
55
|
+
|
56
|
+
:return: The service_name of this CreateTasksRequest.
|
57
|
+
:rtype: str
|
58
|
+
"""
|
59
|
+
return self._service_name
|
60
|
+
|
61
|
+
@service_name.setter
|
62
|
+
def service_name(self, service_name):
|
63
|
+
r"""Sets the service_name of this CreateTasksRequest.
|
64
|
+
|
65
|
+
服务名称
|
66
|
+
|
67
|
+
:param service_name: The service_name of this CreateTasksRequest.
|
68
|
+
:type service_name: str
|
69
|
+
"""
|
70
|
+
self._service_name = service_name
|
71
|
+
|
72
|
+
@property
|
73
|
+
def body(self):
|
74
|
+
r"""Gets the body of this CreateTasksRequest.
|
75
|
+
|
76
|
+
:return: The body of this CreateTasksRequest.
|
77
|
+
:rtype: :class:`huaweicloudsdkvas.v2.CreateTasksRequestBody`
|
78
|
+
"""
|
79
|
+
return self._body
|
80
|
+
|
81
|
+
@body.setter
|
82
|
+
def body(self, body):
|
83
|
+
r"""Sets the body of this CreateTasksRequest.
|
84
|
+
|
85
|
+
:param body: The body of this CreateTasksRequest.
|
86
|
+
:type body: :class:`huaweicloudsdkvas.v2.CreateTasksRequestBody`
|
87
|
+
"""
|
88
|
+
self._body = body
|
89
|
+
|
90
|
+
def to_dict(self):
|
91
|
+
"""Returns the model properties as a dict"""
|
92
|
+
result = {}
|
93
|
+
|
94
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
95
|
+
value = getattr(self, attr)
|
96
|
+
if isinstance(value, list):
|
97
|
+
result[attr] = list(map(
|
98
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
99
|
+
value
|
100
|
+
))
|
101
|
+
elif hasattr(value, "to_dict"):
|
102
|
+
result[attr] = value.to_dict()
|
103
|
+
elif isinstance(value, dict):
|
104
|
+
result[attr] = dict(map(
|
105
|
+
lambda item: (item[0], item[1].to_dict())
|
106
|
+
if hasattr(item[1], "to_dict") else item,
|
107
|
+
value.items()
|
108
|
+
))
|
109
|
+
else:
|
110
|
+
if attr in self.sensitive_list:
|
111
|
+
result[attr] = "****"
|
112
|
+
else:
|
113
|
+
result[attr] = value
|
114
|
+
|
115
|
+
return result
|
116
|
+
|
117
|
+
def to_str(self):
|
118
|
+
"""Returns the string representation of the model"""
|
119
|
+
import simplejson as json
|
120
|
+
if six.PY2:
|
121
|
+
import sys
|
122
|
+
reload(sys)
|
123
|
+
sys.setdefaultencoding("utf-8")
|
124
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
125
|
+
|
126
|
+
def __repr__(self):
|
127
|
+
"""For `print`"""
|
128
|
+
return self.to_str()
|
129
|
+
|
130
|
+
def __eq__(self, other):
|
131
|
+
"""Returns true if both objects are equal"""
|
132
|
+
if not isinstance(other, CreateTasksRequest):
|
133
|
+
return False
|
134
|
+
|
135
|
+
return self.__dict__ == other.__dict__
|
136
|
+
|
137
|
+
def __ne__(self, other):
|
138
|
+
"""Returns true if both objects are not equal"""
|
139
|
+
return not self == other
|
@@ -0,0 +1,327 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class CreateTasksRequestBody:
|
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
|
+
'name': 'str',
|
21
|
+
'description': 'str',
|
22
|
+
'service_version': 'str',
|
23
|
+
'edge_pool_id': 'str',
|
24
|
+
'resource_order_id': 'str',
|
25
|
+
'timing': 'TaskTiming',
|
26
|
+
'input': 'TaskInput',
|
27
|
+
'output': 'TaskOutput',
|
28
|
+
'service_config': 'TaskServiceConfig'
|
29
|
+
}
|
30
|
+
|
31
|
+
attribute_map = {
|
32
|
+
'name': 'name',
|
33
|
+
'description': 'description',
|
34
|
+
'service_version': 'service_version',
|
35
|
+
'edge_pool_id': 'edge_pool_id',
|
36
|
+
'resource_order_id': 'resource_order_id',
|
37
|
+
'timing': 'timing',
|
38
|
+
'input': 'input',
|
39
|
+
'output': 'output',
|
40
|
+
'service_config': 'service_config'
|
41
|
+
}
|
42
|
+
|
43
|
+
def __init__(self, name=None, description=None, service_version=None, edge_pool_id=None, resource_order_id=None, timing=None, input=None, output=None, service_config=None):
|
44
|
+
r"""CreateTasksRequestBody
|
45
|
+
|
46
|
+
The model defined in huaweicloud sdk
|
47
|
+
|
48
|
+
:param name: 作业的名称,必填。仅能包含汉字、字母、数字、中划线和下划线,长度介于1~100之间。
|
49
|
+
:type name: str
|
50
|
+
:param description: 作业的描述,选填。长度不超过500。
|
51
|
+
:type description: str
|
52
|
+
:param service_version: 作业对应服务的版本号,必填。由两个介于0~999的整数和一个点号分隔符组成。
|
53
|
+
:type service_version: str
|
54
|
+
:param edge_pool_id: 作业运行指定的边缘运行池ID,仅边缘场景需填且必填。
|
55
|
+
:type edge_pool_id: str
|
56
|
+
:param resource_order_id: 作业指定的算法能力包包周期订单ID,仅部分服务需填且必填。
|
57
|
+
:type resource_order_id: str
|
58
|
+
:param timing:
|
59
|
+
:type timing: :class:`huaweicloudsdkvas.v2.TaskTiming`
|
60
|
+
:param input:
|
61
|
+
:type input: :class:`huaweicloudsdkvas.v2.TaskInput`
|
62
|
+
:param output:
|
63
|
+
:type output: :class:`huaweicloudsdkvas.v2.TaskOutput`
|
64
|
+
:param service_config:
|
65
|
+
:type service_config: :class:`huaweicloudsdkvas.v2.TaskServiceConfig`
|
66
|
+
"""
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
self._name = None
|
71
|
+
self._description = None
|
72
|
+
self._service_version = None
|
73
|
+
self._edge_pool_id = None
|
74
|
+
self._resource_order_id = None
|
75
|
+
self._timing = None
|
76
|
+
self._input = None
|
77
|
+
self._output = None
|
78
|
+
self._service_config = None
|
79
|
+
self.discriminator = None
|
80
|
+
|
81
|
+
self.name = name
|
82
|
+
if description is not None:
|
83
|
+
self.description = description
|
84
|
+
self.service_version = service_version
|
85
|
+
if edge_pool_id is not None:
|
86
|
+
self.edge_pool_id = edge_pool_id
|
87
|
+
if resource_order_id is not None:
|
88
|
+
self.resource_order_id = resource_order_id
|
89
|
+
if timing is not None:
|
90
|
+
self.timing = timing
|
91
|
+
self.input = input
|
92
|
+
self.output = output
|
93
|
+
if service_config is not None:
|
94
|
+
self.service_config = service_config
|
95
|
+
|
96
|
+
@property
|
97
|
+
def name(self):
|
98
|
+
r"""Gets the name of this CreateTasksRequestBody.
|
99
|
+
|
100
|
+
作业的名称,必填。仅能包含汉字、字母、数字、中划线和下划线,长度介于1~100之间。
|
101
|
+
|
102
|
+
:return: The name of this CreateTasksRequestBody.
|
103
|
+
:rtype: str
|
104
|
+
"""
|
105
|
+
return self._name
|
106
|
+
|
107
|
+
@name.setter
|
108
|
+
def name(self, name):
|
109
|
+
r"""Sets the name of this CreateTasksRequestBody.
|
110
|
+
|
111
|
+
作业的名称,必填。仅能包含汉字、字母、数字、中划线和下划线,长度介于1~100之间。
|
112
|
+
|
113
|
+
:param name: The name of this CreateTasksRequestBody.
|
114
|
+
:type name: str
|
115
|
+
"""
|
116
|
+
self._name = name
|
117
|
+
|
118
|
+
@property
|
119
|
+
def description(self):
|
120
|
+
r"""Gets the description of this CreateTasksRequestBody.
|
121
|
+
|
122
|
+
作业的描述,选填。长度不超过500。
|
123
|
+
|
124
|
+
:return: The description of this CreateTasksRequestBody.
|
125
|
+
:rtype: str
|
126
|
+
"""
|
127
|
+
return self._description
|
128
|
+
|
129
|
+
@description.setter
|
130
|
+
def description(self, description):
|
131
|
+
r"""Sets the description of this CreateTasksRequestBody.
|
132
|
+
|
133
|
+
作业的描述,选填。长度不超过500。
|
134
|
+
|
135
|
+
:param description: The description of this CreateTasksRequestBody.
|
136
|
+
:type description: str
|
137
|
+
"""
|
138
|
+
self._description = description
|
139
|
+
|
140
|
+
@property
|
141
|
+
def service_version(self):
|
142
|
+
r"""Gets the service_version of this CreateTasksRequestBody.
|
143
|
+
|
144
|
+
作业对应服务的版本号,必填。由两个介于0~999的整数和一个点号分隔符组成。
|
145
|
+
|
146
|
+
:return: The service_version of this CreateTasksRequestBody.
|
147
|
+
:rtype: str
|
148
|
+
"""
|
149
|
+
return self._service_version
|
150
|
+
|
151
|
+
@service_version.setter
|
152
|
+
def service_version(self, service_version):
|
153
|
+
r"""Sets the service_version of this CreateTasksRequestBody.
|
154
|
+
|
155
|
+
作业对应服务的版本号,必填。由两个介于0~999的整数和一个点号分隔符组成。
|
156
|
+
|
157
|
+
:param service_version: The service_version of this CreateTasksRequestBody.
|
158
|
+
:type service_version: str
|
159
|
+
"""
|
160
|
+
self._service_version = service_version
|
161
|
+
|
162
|
+
@property
|
163
|
+
def edge_pool_id(self):
|
164
|
+
r"""Gets the edge_pool_id of this CreateTasksRequestBody.
|
165
|
+
|
166
|
+
作业运行指定的边缘运行池ID,仅边缘场景需填且必填。
|
167
|
+
|
168
|
+
:return: The edge_pool_id of this CreateTasksRequestBody.
|
169
|
+
:rtype: str
|
170
|
+
"""
|
171
|
+
return self._edge_pool_id
|
172
|
+
|
173
|
+
@edge_pool_id.setter
|
174
|
+
def edge_pool_id(self, edge_pool_id):
|
175
|
+
r"""Sets the edge_pool_id of this CreateTasksRequestBody.
|
176
|
+
|
177
|
+
作业运行指定的边缘运行池ID,仅边缘场景需填且必填。
|
178
|
+
|
179
|
+
:param edge_pool_id: The edge_pool_id of this CreateTasksRequestBody.
|
180
|
+
:type edge_pool_id: str
|
181
|
+
"""
|
182
|
+
self._edge_pool_id = edge_pool_id
|
183
|
+
|
184
|
+
@property
|
185
|
+
def resource_order_id(self):
|
186
|
+
r"""Gets the resource_order_id of this CreateTasksRequestBody.
|
187
|
+
|
188
|
+
作业指定的算法能力包包周期订单ID,仅部分服务需填且必填。
|
189
|
+
|
190
|
+
:return: The resource_order_id of this CreateTasksRequestBody.
|
191
|
+
:rtype: str
|
192
|
+
"""
|
193
|
+
return self._resource_order_id
|
194
|
+
|
195
|
+
@resource_order_id.setter
|
196
|
+
def resource_order_id(self, resource_order_id):
|
197
|
+
r"""Sets the resource_order_id of this CreateTasksRequestBody.
|
198
|
+
|
199
|
+
作业指定的算法能力包包周期订单ID,仅部分服务需填且必填。
|
200
|
+
|
201
|
+
:param resource_order_id: The resource_order_id of this CreateTasksRequestBody.
|
202
|
+
:type resource_order_id: str
|
203
|
+
"""
|
204
|
+
self._resource_order_id = resource_order_id
|
205
|
+
|
206
|
+
@property
|
207
|
+
def timing(self):
|
208
|
+
r"""Gets the timing of this CreateTasksRequestBody.
|
209
|
+
|
210
|
+
:return: The timing of this CreateTasksRequestBody.
|
211
|
+
:rtype: :class:`huaweicloudsdkvas.v2.TaskTiming`
|
212
|
+
"""
|
213
|
+
return self._timing
|
214
|
+
|
215
|
+
@timing.setter
|
216
|
+
def timing(self, timing):
|
217
|
+
r"""Sets the timing of this CreateTasksRequestBody.
|
218
|
+
|
219
|
+
:param timing: The timing of this CreateTasksRequestBody.
|
220
|
+
:type timing: :class:`huaweicloudsdkvas.v2.TaskTiming`
|
221
|
+
"""
|
222
|
+
self._timing = timing
|
223
|
+
|
224
|
+
@property
|
225
|
+
def input(self):
|
226
|
+
r"""Gets the input of this CreateTasksRequestBody.
|
227
|
+
|
228
|
+
:return: The input of this CreateTasksRequestBody.
|
229
|
+
:rtype: :class:`huaweicloudsdkvas.v2.TaskInput`
|
230
|
+
"""
|
231
|
+
return self._input
|
232
|
+
|
233
|
+
@input.setter
|
234
|
+
def input(self, input):
|
235
|
+
r"""Sets the input of this CreateTasksRequestBody.
|
236
|
+
|
237
|
+
:param input: The input of this CreateTasksRequestBody.
|
238
|
+
:type input: :class:`huaweicloudsdkvas.v2.TaskInput`
|
239
|
+
"""
|
240
|
+
self._input = input
|
241
|
+
|
242
|
+
@property
|
243
|
+
def output(self):
|
244
|
+
r"""Gets the output of this CreateTasksRequestBody.
|
245
|
+
|
246
|
+
:return: The output of this CreateTasksRequestBody.
|
247
|
+
:rtype: :class:`huaweicloudsdkvas.v2.TaskOutput`
|
248
|
+
"""
|
249
|
+
return self._output
|
250
|
+
|
251
|
+
@output.setter
|
252
|
+
def output(self, output):
|
253
|
+
r"""Sets the output of this CreateTasksRequestBody.
|
254
|
+
|
255
|
+
:param output: The output of this CreateTasksRequestBody.
|
256
|
+
:type output: :class:`huaweicloudsdkvas.v2.TaskOutput`
|
257
|
+
"""
|
258
|
+
self._output = output
|
259
|
+
|
260
|
+
@property
|
261
|
+
def service_config(self):
|
262
|
+
r"""Gets the service_config of this CreateTasksRequestBody.
|
263
|
+
|
264
|
+
:return: The service_config of this CreateTasksRequestBody.
|
265
|
+
:rtype: :class:`huaweicloudsdkvas.v2.TaskServiceConfig`
|
266
|
+
"""
|
267
|
+
return self._service_config
|
268
|
+
|
269
|
+
@service_config.setter
|
270
|
+
def service_config(self, service_config):
|
271
|
+
r"""Sets the service_config of this CreateTasksRequestBody.
|
272
|
+
|
273
|
+
:param service_config: The service_config of this CreateTasksRequestBody.
|
274
|
+
:type service_config: :class:`huaweicloudsdkvas.v2.TaskServiceConfig`
|
275
|
+
"""
|
276
|
+
self._service_config = service_config
|
277
|
+
|
278
|
+
def to_dict(self):
|
279
|
+
"""Returns the model properties as a dict"""
|
280
|
+
result = {}
|
281
|
+
|
282
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
283
|
+
value = getattr(self, attr)
|
284
|
+
if isinstance(value, list):
|
285
|
+
result[attr] = list(map(
|
286
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
287
|
+
value
|
288
|
+
))
|
289
|
+
elif hasattr(value, "to_dict"):
|
290
|
+
result[attr] = value.to_dict()
|
291
|
+
elif isinstance(value, dict):
|
292
|
+
result[attr] = dict(map(
|
293
|
+
lambda item: (item[0], item[1].to_dict())
|
294
|
+
if hasattr(item[1], "to_dict") else item,
|
295
|
+
value.items()
|
296
|
+
))
|
297
|
+
else:
|
298
|
+
if attr in self.sensitive_list:
|
299
|
+
result[attr] = "****"
|
300
|
+
else:
|
301
|
+
result[attr] = value
|
302
|
+
|
303
|
+
return result
|
304
|
+
|
305
|
+
def to_str(self):
|
306
|
+
"""Returns the string representation of the model"""
|
307
|
+
import simplejson as json
|
308
|
+
if six.PY2:
|
309
|
+
import sys
|
310
|
+
reload(sys)
|
311
|
+
sys.setdefaultencoding("utf-8")
|
312
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
313
|
+
|
314
|
+
def __repr__(self):
|
315
|
+
"""For `print`"""
|
316
|
+
return self.to_str()
|
317
|
+
|
318
|
+
def __eq__(self, other):
|
319
|
+
"""Returns true if both objects are equal"""
|
320
|
+
if not isinstance(other, CreateTasksRequestBody):
|
321
|
+
return False
|
322
|
+
|
323
|
+
return self.__dict__ == other.__dict__
|
324
|
+
|
325
|
+
def __ne__(self, other):
|
326
|
+
"""Returns true if both objects are not equal"""
|
327
|
+
return not self == other
|