huaweicloudsdkoctopus 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.
- huaweicloudsdkoctopus/__init__.py +0 -0
- huaweicloudsdkoctopus/v2/__init__.py +122 -0
- huaweicloudsdkoctopus/v2/model/__init__.py +119 -0
- huaweicloudsdkoctopus/v2/model/alg_image_create_srlz.py +350 -0
- huaweicloudsdkoctopus/v2/model/alg_image_list_srlz.py +266 -0
- huaweicloudsdkoctopus/v2/model/algorithm_create_srlz.py +399 -0
- huaweicloudsdkoctopus/v2/model/algorithm_list_srlz.py +266 -0
- huaweicloudsdkoctopus/v2/model/batch_config_abc_info_srlz.py +142 -0
- huaweicloudsdkoctopus/v2/model/batch_config_evaluation_info_srlz.py +142 -0
- huaweicloudsdkoctopus/v2/model/batch_config_image_info_srlz.py +198 -0
- huaweicloudsdkoctopus/v2/model/batch_config_msg_notify_srlz.py +115 -0
- huaweicloudsdkoctopus/v2/model/batch_config_scenario_srlz.py +173 -0
- huaweicloudsdkoctopus/v2/model/batch_config_srlz.py +806 -0
- huaweicloudsdkoctopus/v2/model/batch_create_request.py +198 -0
- huaweicloudsdkoctopus/v2/model/batch_srlz.py +604 -0
- huaweicloudsdkoctopus/v2/model/build_create_srlz.py +115 -0
- huaweicloudsdkoctopus/v2/model/build_update_srlz.py +143 -0
- huaweicloudsdkoctopus/v2/model/category_f62_enum.py +89 -0
- huaweicloudsdkoctopus/v2/model/compilation_create_srlz.py +255 -0
- huaweicloudsdkoctopus/v2/model/compilation_update_srlz.py +311 -0
- huaweicloudsdkoctopus/v2/model/create_sim_algorithm_images_request.py +111 -0
- huaweicloudsdkoctopus/v2/model/create_sim_algorithm_images_response.py +361 -0
- huaweicloudsdkoctopus/v2/model/create_sim_algorithms_request.py +111 -0
- huaweicloudsdkoctopus/v2/model/create_sim_algorithms_response.py +404 -0
- huaweicloudsdkoctopus/v2/model/create_sim_batch_configs_request.py +111 -0
- huaweicloudsdkoctopus/v2/model/create_sim_batch_configs_response.py +819 -0
- huaweicloudsdkoctopus/v2/model/create_sim_batches_request.py +111 -0
- huaweicloudsdkoctopus/v2/model/create_sim_batches_response.py +619 -0
- huaweicloudsdkoctopus/v2/model/create_sim_extensions_request.py +111 -0
- huaweicloudsdkoctopus/v2/model/create_sim_extensions_response.py +314 -0
- huaweicloudsdkoctopus/v2/model/create_sim_sm_maps_request.py +111 -0
- huaweicloudsdkoctopus/v2/model/create_sim_sm_maps_response.py +253 -0
- huaweicloudsdkoctopus/v2/model/create_sim_sm_scenarios_files_request.py +139 -0
- huaweicloudsdkoctopus/v2/model/create_sim_sm_scenarios_files_response.py +377 -0
- huaweicloudsdkoctopus/v2/model/create_sim_sm_scenarios_request.py +111 -0
- huaweicloudsdkoctopus/v2/model/create_sim_sm_scenarios_response.py +618 -0
- huaweicloudsdkoctopus/v2/model/delete_sim_algorithm_images_request.py +114 -0
- huaweicloudsdkoctopus/v2/model/delete_sim_algorithm_images_response.py +85 -0
- huaweicloudsdkoctopus/v2/model/delete_sim_algorithms_request.py +114 -0
- huaweicloudsdkoctopus/v2/model/delete_sim_algorithms_response.py +85 -0
- huaweicloudsdkoctopus/v2/model/delete_sim_batch_configs_request.py +114 -0
- huaweicloudsdkoctopus/v2/model/delete_sim_batch_configs_response.py +85 -0
- huaweicloudsdkoctopus/v2/model/delete_sim_batches_request.py +114 -0
- huaweicloudsdkoctopus/v2/model/delete_sim_batches_response.py +85 -0
- huaweicloudsdkoctopus/v2/model/delete_sim_extensions_request.py +114 -0
- huaweicloudsdkoctopus/v2/model/delete_sim_extensions_response.py +85 -0
- huaweicloudsdkoctopus/v2/model/extension_srlz.py +353 -0
- huaweicloudsdkoctopus/v2/model/extensions_create_srlz.py +306 -0
- huaweicloudsdkoctopus/v2/model/extensions_list_srlz.py +291 -0
- huaweicloudsdkoctopus/v2/model/family_enum.py +91 -0
- huaweicloudsdkoctopus/v2/model/file_create_req_srlz.py +142 -0
- huaweicloudsdkoctopus/v2/model/file_create_srlz.py +366 -0
- huaweicloudsdkoctopus/v2/model/file_nested_create_req_srlz.py +142 -0
- huaweicloudsdkoctopus/v2/model/file_nested_srlz.py +279 -0
- huaweicloudsdkoctopus/v2/model/file_retrieve_srlz.py +310 -0
- huaweicloudsdkoctopus/v2/model/label_brief_srlz.py +279 -0
- huaweicloudsdkoctopus/v2/model/list_sim_algorithm_images_request.py +339 -0
- huaweicloudsdkoctopus/v2/model/list_sim_algorithm_images_response.py +185 -0
- huaweicloudsdkoctopus/v2/model/list_sim_algorithms_request.py +281 -0
- huaweicloudsdkoctopus/v2/model/list_sim_algorithms_response.py +185 -0
- huaweicloudsdkoctopus/v2/model/list_sim_batch_configs_request.py +625 -0
- huaweicloudsdkoctopus/v2/model/list_sim_batch_configs_response.py +185 -0
- huaweicloudsdkoctopus/v2/model/list_sim_batches_request.py +426 -0
- huaweicloudsdkoctopus/v2/model/list_sim_batches_response.py +185 -0
- huaweicloudsdkoctopus/v2/model/list_sim_extensions_request.py +202 -0
- huaweicloudsdkoctopus/v2/model/list_sim_extensions_response.py +185 -0
- huaweicloudsdkoctopus/v2/model/list_sim_simulations_request.py +401 -0
- huaweicloudsdkoctopus/v2/model/list_sim_simulations_response.py +189 -0
- huaweicloudsdkoctopus/v2/model/list_sim_sm_scenarios_request.py +547 -0
- huaweicloudsdkoctopus/v2/model/list_sim_sm_scenarios_response.py +185 -0
- huaweicloudsdkoctopus/v2/model/map_create_req_srlz.py +162 -0
- huaweicloudsdkoctopus/v2/model/map_version_enum.py +91 -0
- huaweicloudsdkoctopus/v2/model/mutable_file_srlz.py +114 -0
- huaweicloudsdkoctopus/v2/model/patched_alg_image_update_srlz.py +302 -0
- huaweicloudsdkoctopus/v2/model/patched_algorithm_update_srlz.py +796 -0
- huaweicloudsdkoctopus/v2/model/patched_file_detail_srlz.py +144 -0
- huaweicloudsdkoctopus/v2/model/post_response.py +140 -0
- huaweicloudsdkoctopus/v2/model/post_response_field.py +236 -0
- huaweicloudsdkoctopus/v2/model/priority_enum.py +91 -0
- huaweicloudsdkoctopus/v2/model/record_mode_enum.py +88 -0
- huaweicloudsdkoctopus/v2/model/run_image_status_enum.py +91 -0
- huaweicloudsdkoctopus/v2/model/run_srlz.py +254 -0
- huaweicloudsdkoctopus/v2/model/scenario_create_req_srlz.py +439 -0
- huaweicloudsdkoctopus/v2/model/scenario_list_srlz.py +548 -0
- huaweicloudsdkoctopus/v2/model/scenario_status_enum.py +92 -0
- huaweicloudsdkoctopus/v2/model/scenario_version_enum.py +91 -0
- huaweicloudsdkoctopus/v2/model/show_sim_algorithm_image_request.py +114 -0
- huaweicloudsdkoctopus/v2/model/show_sim_algorithm_image_response.py +361 -0
- huaweicloudsdkoctopus/v2/model/show_sim_algorithm_request.py +114 -0
- huaweicloudsdkoctopus/v2/model/show_sim_algorithm_response.py +377 -0
- huaweicloudsdkoctopus/v2/model/show_sim_batch_config_request.py +114 -0
- huaweicloudsdkoctopus/v2/model/show_sim_batch_config_response.py +819 -0
- huaweicloudsdkoctopus/v2/model/show_sim_extension_request.py +110 -0
- huaweicloudsdkoctopus/v2/model/show_sim_extension_response.py +353 -0
- huaweicloudsdkoctopus/v2/model/show_sim_simulations_files_request.py +142 -0
- huaweicloudsdkoctopus/v2/model/show_sim_simulations_files_response.py +290 -0
- huaweicloudsdkoctopus/v2/model/simulation_eva_result_metric_srlz.py +260 -0
- huaweicloudsdkoctopus/v2/model/simulation_eva_result_srlz.py +231 -0
- huaweicloudsdkoctopus/v2/model/simulation_evaluation_metric_srlz.py +289 -0
- huaweicloudsdkoctopus/v2/model/simulation_evaluation_srlz.py +231 -0
- huaweicloudsdkoctopus/v2/model/simulation_file_path_srlz.py +347 -0
- huaweicloudsdkoctopus/v2/model/simulation_srlz.py +708 -0
- huaweicloudsdkoctopus/v2/model/status15e_enum.py +99 -0
- huaweicloudsdkoctopus/v2/model/status6a7_enum.py +106 -0
- huaweicloudsdkoctopus/v2/model/type87e_enum.py +88 -0
- huaweicloudsdkoctopus/v2/model/update_sim_algorithm_images_request.py +139 -0
- huaweicloudsdkoctopus/v2/model/update_sim_algorithm_images_response.py +303 -0
- huaweicloudsdkoctopus/v2/model/update_sim_algorithms_request.py +139 -0
- huaweicloudsdkoctopus/v2/model/update_sim_algorithms_response.py +431 -0
- huaweicloudsdkoctopus/v2/model/update_sim_batch_configs_extensions_request.py +138 -0
- huaweicloudsdkoctopus/v2/model/update_sim_batch_configs_extensions_response.py +85 -0
- huaweicloudsdkoctopus/v2/model/update_sim_extensions_request.py +139 -0
- huaweicloudsdkoctopus/v2/model/update_sim_extensions_response.py +356 -0
- huaweicloudsdkoctopus/v2/model/update_sim_sm_maps_files_request.py +167 -0
- huaweicloudsdkoctopus/v2/model/update_sim_sm_maps_files_response.py +435 -0
- huaweicloudsdkoctopus/v2/model/update_sim_sm_scenarios_files_request.py +167 -0
- huaweicloudsdkoctopus/v2/model/update_sim_sm_scenarios_files_response.py +435 -0
- huaweicloudsdkoctopus/v2/octopus_async_client.py +2262 -0
- huaweicloudsdkoctopus/v2/octopus_client.py +2259 -0
- huaweicloudsdkoctopus/v2/region/__init__.py +0 -0
- huaweicloudsdkoctopus/v2/region/octopus_region.py +31 -0
- huaweicloudsdkoctopus-3.1.160.dist-info/LICENSE +13 -0
- huaweicloudsdkoctopus-3.1.160.dist-info/METADATA +26 -0
- huaweicloudsdkoctopus-3.1.160.dist-info/RECORD +126 -0
- huaweicloudsdkoctopus-3.1.160.dist-info/WHEEL +5 -0
- huaweicloudsdkoctopus-3.1.160.dist-info/top_level.txt +1 -0
@@ -0,0 +1,91 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ScenarioVersionEnum:
|
9
|
+
"""
|
10
|
+
allowed enum values
|
11
|
+
"""
|
12
|
+
VTD = "vtd"
|
13
|
+
V0_9_1 = "v0.9.1"
|
14
|
+
V1_0_0 = "v1.0.0"
|
15
|
+
V1_1_0 = "v1.1.0"
|
16
|
+
V1_1_1 = "v1.1.1"
|
17
|
+
"""
|
18
|
+
Attributes:
|
19
|
+
openapi_types (dict): The key is attribute name
|
20
|
+
and the value is attribute type.
|
21
|
+
attribute_map (dict): The key is attribute name
|
22
|
+
and the value is json key in definition.
|
23
|
+
"""
|
24
|
+
sensitive_list = []
|
25
|
+
|
26
|
+
openapi_types = {
|
27
|
+
}
|
28
|
+
|
29
|
+
attribute_map = {
|
30
|
+
}
|
31
|
+
|
32
|
+
def __init__(self):
|
33
|
+
r"""ScenarioVersionEnum
|
34
|
+
|
35
|
+
The model defined in huaweicloud sdk
|
36
|
+
|
37
|
+
"""
|
38
|
+
|
39
|
+
|
40
|
+
self.discriminator = None
|
41
|
+
|
42
|
+
def to_dict(self):
|
43
|
+
"""Returns the model properties as a dict"""
|
44
|
+
result = {}
|
45
|
+
|
46
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
47
|
+
value = getattr(self, attr)
|
48
|
+
if isinstance(value, list):
|
49
|
+
result[attr] = list(map(
|
50
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
51
|
+
value
|
52
|
+
))
|
53
|
+
elif hasattr(value, "to_dict"):
|
54
|
+
result[attr] = value.to_dict()
|
55
|
+
elif isinstance(value, dict):
|
56
|
+
result[attr] = dict(map(
|
57
|
+
lambda item: (item[0], item[1].to_dict())
|
58
|
+
if hasattr(item[1], "to_dict") else item,
|
59
|
+
value.items()
|
60
|
+
))
|
61
|
+
else:
|
62
|
+
if attr in self.sensitive_list:
|
63
|
+
result[attr] = "****"
|
64
|
+
else:
|
65
|
+
result[attr] = value
|
66
|
+
|
67
|
+
return result
|
68
|
+
|
69
|
+
def to_str(self):
|
70
|
+
"""Returns the string representation of the model"""
|
71
|
+
import simplejson as json
|
72
|
+
if six.PY2:
|
73
|
+
import sys
|
74
|
+
reload(sys)
|
75
|
+
sys.setdefaultencoding("utf-8")
|
76
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
77
|
+
|
78
|
+
def __repr__(self):
|
79
|
+
"""For `print`"""
|
80
|
+
return self.to_str()
|
81
|
+
|
82
|
+
def __eq__(self, other):
|
83
|
+
"""Returns true if both objects are equal"""
|
84
|
+
if not isinstance(other, ScenarioVersionEnum):
|
85
|
+
return False
|
86
|
+
|
87
|
+
return self.__dict__ == other.__dict__
|
88
|
+
|
89
|
+
def __ne__(self, other):
|
90
|
+
"""Returns true if both objects are not equal"""
|
91
|
+
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 ShowSimAlgorithmImageRequest:
|
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': 'int'
|
21
|
+
}
|
22
|
+
|
23
|
+
attribute_map = {
|
24
|
+
'id': 'id'
|
25
|
+
}
|
26
|
+
|
27
|
+
def __init__(self, id=None):
|
28
|
+
r"""ShowSimAlgorithmImageRequest
|
29
|
+
|
30
|
+
The model defined in huaweicloud sdk
|
31
|
+
|
32
|
+
:param id: A unique integer value identifying this alg image.
|
33
|
+
:type id: int
|
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 ShowSimAlgorithmImageRequest.
|
46
|
+
|
47
|
+
A unique integer value identifying this alg image.
|
48
|
+
|
49
|
+
:return: The id of this ShowSimAlgorithmImageRequest.
|
50
|
+
:rtype: int
|
51
|
+
"""
|
52
|
+
return self._id
|
53
|
+
|
54
|
+
@id.setter
|
55
|
+
def id(self, id):
|
56
|
+
r"""Sets the id of this ShowSimAlgorithmImageRequest.
|
57
|
+
|
58
|
+
A unique integer value identifying this alg image.
|
59
|
+
|
60
|
+
:param id: The id of this ShowSimAlgorithmImageRequest.
|
61
|
+
:type id: int
|
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, ShowSimAlgorithmImageRequest):
|
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,361 @@
|
|
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 ShowSimAlgorithmImageResponse(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
|
+
'url': 'str',
|
22
|
+
'id': 'int',
|
23
|
+
'created_at': 'float',
|
24
|
+
'updated_at': 'float',
|
25
|
+
'type': 'Type87eEnum',
|
26
|
+
'version': 'str',
|
27
|
+
'command': 'str',
|
28
|
+
'workspace': 'str',
|
29
|
+
'keyword': 'str',
|
30
|
+
'algorithm': 'str'
|
31
|
+
}
|
32
|
+
|
33
|
+
attribute_map = {
|
34
|
+
'url': 'url',
|
35
|
+
'id': 'id',
|
36
|
+
'created_at': 'created_at',
|
37
|
+
'updated_at': 'updated_at',
|
38
|
+
'type': 'type',
|
39
|
+
'version': 'version',
|
40
|
+
'command': 'command',
|
41
|
+
'workspace': 'workspace',
|
42
|
+
'keyword': 'keyword',
|
43
|
+
'algorithm': 'algorithm'
|
44
|
+
}
|
45
|
+
|
46
|
+
def __init__(self, url=None, id=None, created_at=None, updated_at=None, type=None, version=None, command=None, workspace=None, keyword=None, algorithm=None):
|
47
|
+
r"""ShowSimAlgorithmImageResponse
|
48
|
+
|
49
|
+
The model defined in huaweicloud sdk
|
50
|
+
|
51
|
+
:param url:
|
52
|
+
:type url: str
|
53
|
+
:param id:
|
54
|
+
:type id: int
|
55
|
+
:param created_at:
|
56
|
+
:type created_at: float
|
57
|
+
:param updated_at:
|
58
|
+
:type updated_at: float
|
59
|
+
:param type: 镜像类型 * `build` - Build * `upload` - Upload
|
60
|
+
:type type: :class:`huaweicloudsdkoctopus.v2.Type87eEnum`
|
61
|
+
:param version: 镜像版本
|
62
|
+
:type version: str
|
63
|
+
:param command: 运行命令
|
64
|
+
:type command: str
|
65
|
+
:param workspace: 运行目录,构建类型需要
|
66
|
+
:type workspace: str
|
67
|
+
:param keyword: 算法关键字
|
68
|
+
:type keyword: str
|
69
|
+
:param algorithm: 算法
|
70
|
+
:type algorithm: str
|
71
|
+
"""
|
72
|
+
|
73
|
+
super(ShowSimAlgorithmImageResponse, self).__init__()
|
74
|
+
|
75
|
+
self._url = None
|
76
|
+
self._id = None
|
77
|
+
self._created_at = None
|
78
|
+
self._updated_at = None
|
79
|
+
self._type = None
|
80
|
+
self._version = None
|
81
|
+
self._command = None
|
82
|
+
self._workspace = None
|
83
|
+
self._keyword = None
|
84
|
+
self._algorithm = None
|
85
|
+
self.discriminator = None
|
86
|
+
|
87
|
+
if url is not None:
|
88
|
+
self.url = url
|
89
|
+
if id is not None:
|
90
|
+
self.id = id
|
91
|
+
if created_at is not None:
|
92
|
+
self.created_at = created_at
|
93
|
+
if updated_at is not None:
|
94
|
+
self.updated_at = updated_at
|
95
|
+
if type is not None:
|
96
|
+
self.type = type
|
97
|
+
if version is not None:
|
98
|
+
self.version = version
|
99
|
+
if command is not None:
|
100
|
+
self.command = command
|
101
|
+
if workspace is not None:
|
102
|
+
self.workspace = workspace
|
103
|
+
if keyword is not None:
|
104
|
+
self.keyword = keyword
|
105
|
+
if algorithm is not None:
|
106
|
+
self.algorithm = algorithm
|
107
|
+
|
108
|
+
@property
|
109
|
+
def url(self):
|
110
|
+
r"""Gets the url of this ShowSimAlgorithmImageResponse.
|
111
|
+
|
112
|
+
:return: The url of this ShowSimAlgorithmImageResponse.
|
113
|
+
:rtype: str
|
114
|
+
"""
|
115
|
+
return self._url
|
116
|
+
|
117
|
+
@url.setter
|
118
|
+
def url(self, url):
|
119
|
+
r"""Sets the url of this ShowSimAlgorithmImageResponse.
|
120
|
+
|
121
|
+
:param url: The url of this ShowSimAlgorithmImageResponse.
|
122
|
+
:type url: str
|
123
|
+
"""
|
124
|
+
self._url = url
|
125
|
+
|
126
|
+
@property
|
127
|
+
def id(self):
|
128
|
+
r"""Gets the id of this ShowSimAlgorithmImageResponse.
|
129
|
+
|
130
|
+
:return: The id of this ShowSimAlgorithmImageResponse.
|
131
|
+
:rtype: int
|
132
|
+
"""
|
133
|
+
return self._id
|
134
|
+
|
135
|
+
@id.setter
|
136
|
+
def id(self, id):
|
137
|
+
r"""Sets the id of this ShowSimAlgorithmImageResponse.
|
138
|
+
|
139
|
+
:param id: The id of this ShowSimAlgorithmImageResponse.
|
140
|
+
:type id: int
|
141
|
+
"""
|
142
|
+
self._id = id
|
143
|
+
|
144
|
+
@property
|
145
|
+
def created_at(self):
|
146
|
+
r"""Gets the created_at of this ShowSimAlgorithmImageResponse.
|
147
|
+
|
148
|
+
:return: The created_at of this ShowSimAlgorithmImageResponse.
|
149
|
+
:rtype: float
|
150
|
+
"""
|
151
|
+
return self._created_at
|
152
|
+
|
153
|
+
@created_at.setter
|
154
|
+
def created_at(self, created_at):
|
155
|
+
r"""Sets the created_at of this ShowSimAlgorithmImageResponse.
|
156
|
+
|
157
|
+
:param created_at: The created_at of this ShowSimAlgorithmImageResponse.
|
158
|
+
:type created_at: float
|
159
|
+
"""
|
160
|
+
self._created_at = created_at
|
161
|
+
|
162
|
+
@property
|
163
|
+
def updated_at(self):
|
164
|
+
r"""Gets the updated_at of this ShowSimAlgorithmImageResponse.
|
165
|
+
|
166
|
+
:return: The updated_at of this ShowSimAlgorithmImageResponse.
|
167
|
+
:rtype: float
|
168
|
+
"""
|
169
|
+
return self._updated_at
|
170
|
+
|
171
|
+
@updated_at.setter
|
172
|
+
def updated_at(self, updated_at):
|
173
|
+
r"""Sets the updated_at of this ShowSimAlgorithmImageResponse.
|
174
|
+
|
175
|
+
:param updated_at: The updated_at of this ShowSimAlgorithmImageResponse.
|
176
|
+
:type updated_at: float
|
177
|
+
"""
|
178
|
+
self._updated_at = updated_at
|
179
|
+
|
180
|
+
@property
|
181
|
+
def type(self):
|
182
|
+
r"""Gets the type of this ShowSimAlgorithmImageResponse.
|
183
|
+
|
184
|
+
镜像类型 * `build` - Build * `upload` - Upload
|
185
|
+
|
186
|
+
:return: The type of this ShowSimAlgorithmImageResponse.
|
187
|
+
:rtype: :class:`huaweicloudsdkoctopus.v2.Type87eEnum`
|
188
|
+
"""
|
189
|
+
return self._type
|
190
|
+
|
191
|
+
@type.setter
|
192
|
+
def type(self, type):
|
193
|
+
r"""Sets the type of this ShowSimAlgorithmImageResponse.
|
194
|
+
|
195
|
+
镜像类型 * `build` - Build * `upload` - Upload
|
196
|
+
|
197
|
+
:param type: The type of this ShowSimAlgorithmImageResponse.
|
198
|
+
:type type: :class:`huaweicloudsdkoctopus.v2.Type87eEnum`
|
199
|
+
"""
|
200
|
+
self._type = type
|
201
|
+
|
202
|
+
@property
|
203
|
+
def version(self):
|
204
|
+
r"""Gets the version of this ShowSimAlgorithmImageResponse.
|
205
|
+
|
206
|
+
镜像版本
|
207
|
+
|
208
|
+
:return: The version of this ShowSimAlgorithmImageResponse.
|
209
|
+
:rtype: str
|
210
|
+
"""
|
211
|
+
return self._version
|
212
|
+
|
213
|
+
@version.setter
|
214
|
+
def version(self, version):
|
215
|
+
r"""Sets the version of this ShowSimAlgorithmImageResponse.
|
216
|
+
|
217
|
+
镜像版本
|
218
|
+
|
219
|
+
:param version: The version of this ShowSimAlgorithmImageResponse.
|
220
|
+
:type version: str
|
221
|
+
"""
|
222
|
+
self._version = version
|
223
|
+
|
224
|
+
@property
|
225
|
+
def command(self):
|
226
|
+
r"""Gets the command of this ShowSimAlgorithmImageResponse.
|
227
|
+
|
228
|
+
运行命令
|
229
|
+
|
230
|
+
:return: The command of this ShowSimAlgorithmImageResponse.
|
231
|
+
:rtype: str
|
232
|
+
"""
|
233
|
+
return self._command
|
234
|
+
|
235
|
+
@command.setter
|
236
|
+
def command(self, command):
|
237
|
+
r"""Sets the command of this ShowSimAlgorithmImageResponse.
|
238
|
+
|
239
|
+
运行命令
|
240
|
+
|
241
|
+
:param command: The command of this ShowSimAlgorithmImageResponse.
|
242
|
+
:type command: str
|
243
|
+
"""
|
244
|
+
self._command = command
|
245
|
+
|
246
|
+
@property
|
247
|
+
def workspace(self):
|
248
|
+
r"""Gets the workspace of this ShowSimAlgorithmImageResponse.
|
249
|
+
|
250
|
+
运行目录,构建类型需要
|
251
|
+
|
252
|
+
:return: The workspace of this ShowSimAlgorithmImageResponse.
|
253
|
+
:rtype: str
|
254
|
+
"""
|
255
|
+
return self._workspace
|
256
|
+
|
257
|
+
@workspace.setter
|
258
|
+
def workspace(self, workspace):
|
259
|
+
r"""Sets the workspace of this ShowSimAlgorithmImageResponse.
|
260
|
+
|
261
|
+
运行目录,构建类型需要
|
262
|
+
|
263
|
+
:param workspace: The workspace of this ShowSimAlgorithmImageResponse.
|
264
|
+
:type workspace: str
|
265
|
+
"""
|
266
|
+
self._workspace = workspace
|
267
|
+
|
268
|
+
@property
|
269
|
+
def keyword(self):
|
270
|
+
r"""Gets the keyword of this ShowSimAlgorithmImageResponse.
|
271
|
+
|
272
|
+
算法关键字
|
273
|
+
|
274
|
+
:return: The keyword of this ShowSimAlgorithmImageResponse.
|
275
|
+
:rtype: str
|
276
|
+
"""
|
277
|
+
return self._keyword
|
278
|
+
|
279
|
+
@keyword.setter
|
280
|
+
def keyword(self, keyword):
|
281
|
+
r"""Sets the keyword of this ShowSimAlgorithmImageResponse.
|
282
|
+
|
283
|
+
算法关键字
|
284
|
+
|
285
|
+
:param keyword: The keyword of this ShowSimAlgorithmImageResponse.
|
286
|
+
:type keyword: str
|
287
|
+
"""
|
288
|
+
self._keyword = keyword
|
289
|
+
|
290
|
+
@property
|
291
|
+
def algorithm(self):
|
292
|
+
r"""Gets the algorithm of this ShowSimAlgorithmImageResponse.
|
293
|
+
|
294
|
+
算法
|
295
|
+
|
296
|
+
:return: The algorithm of this ShowSimAlgorithmImageResponse.
|
297
|
+
:rtype: str
|
298
|
+
"""
|
299
|
+
return self._algorithm
|
300
|
+
|
301
|
+
@algorithm.setter
|
302
|
+
def algorithm(self, algorithm):
|
303
|
+
r"""Sets the algorithm of this ShowSimAlgorithmImageResponse.
|
304
|
+
|
305
|
+
算法
|
306
|
+
|
307
|
+
:param algorithm: The algorithm of this ShowSimAlgorithmImageResponse.
|
308
|
+
:type algorithm: str
|
309
|
+
"""
|
310
|
+
self._algorithm = algorithm
|
311
|
+
|
312
|
+
def to_dict(self):
|
313
|
+
"""Returns the model properties as a dict"""
|
314
|
+
result = {}
|
315
|
+
|
316
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
317
|
+
value = getattr(self, attr)
|
318
|
+
if isinstance(value, list):
|
319
|
+
result[attr] = list(map(
|
320
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
321
|
+
value
|
322
|
+
))
|
323
|
+
elif hasattr(value, "to_dict"):
|
324
|
+
result[attr] = value.to_dict()
|
325
|
+
elif isinstance(value, dict):
|
326
|
+
result[attr] = dict(map(
|
327
|
+
lambda item: (item[0], item[1].to_dict())
|
328
|
+
if hasattr(item[1], "to_dict") else item,
|
329
|
+
value.items()
|
330
|
+
))
|
331
|
+
else:
|
332
|
+
if attr in self.sensitive_list:
|
333
|
+
result[attr] = "****"
|
334
|
+
else:
|
335
|
+
result[attr] = value
|
336
|
+
|
337
|
+
return result
|
338
|
+
|
339
|
+
def to_str(self):
|
340
|
+
"""Returns the string representation of the model"""
|
341
|
+
import simplejson as json
|
342
|
+
if six.PY2:
|
343
|
+
import sys
|
344
|
+
reload(sys)
|
345
|
+
sys.setdefaultencoding("utf-8")
|
346
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
347
|
+
|
348
|
+
def __repr__(self):
|
349
|
+
"""For `print`"""
|
350
|
+
return self.to_str()
|
351
|
+
|
352
|
+
def __eq__(self, other):
|
353
|
+
"""Returns true if both objects are equal"""
|
354
|
+
if not isinstance(other, ShowSimAlgorithmImageResponse):
|
355
|
+
return False
|
356
|
+
|
357
|
+
return self.__dict__ == other.__dict__
|
358
|
+
|
359
|
+
def __ne__(self, other):
|
360
|
+
"""Returns true if both objects are not equal"""
|
361
|
+
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 ShowSimAlgorithmRequest:
|
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': 'int'
|
21
|
+
}
|
22
|
+
|
23
|
+
attribute_map = {
|
24
|
+
'id': 'id'
|
25
|
+
}
|
26
|
+
|
27
|
+
def __init__(self, id=None):
|
28
|
+
r"""ShowSimAlgorithmRequest
|
29
|
+
|
30
|
+
The model defined in huaweicloud sdk
|
31
|
+
|
32
|
+
:param id: A unique integer value identifying this algorithm.
|
33
|
+
:type id: int
|
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 ShowSimAlgorithmRequest.
|
46
|
+
|
47
|
+
A unique integer value identifying this algorithm.
|
48
|
+
|
49
|
+
:return: The id of this ShowSimAlgorithmRequest.
|
50
|
+
:rtype: int
|
51
|
+
"""
|
52
|
+
return self._id
|
53
|
+
|
54
|
+
@id.setter
|
55
|
+
def id(self, id):
|
56
|
+
r"""Sets the id of this ShowSimAlgorithmRequest.
|
57
|
+
|
58
|
+
A unique integer value identifying this algorithm.
|
59
|
+
|
60
|
+
:param id: The id of this ShowSimAlgorithmRequest.
|
61
|
+
:type id: int
|
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, ShowSimAlgorithmRequest):
|
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
|