huaweicloudsdkoctopus 3.1.155__py2.py3-none-any.whl → 3.1.157__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.
- huaweicloudsdkoctopus/v2/__init__.py +72 -0
- huaweicloudsdkoctopus/v2/model/__init__.py +72 -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_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_extensions_request.py +111 -0
- huaweicloudsdkoctopus/v2/model/create_sim_extensions_response.py +314 -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/file_nested_srlz.py +279 -0
- huaweicloudsdkoctopus/v2/model/file_retrieve_srlz.py +310 -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/patched_alg_image_update_srlz.py +302 -0
- huaweicloudsdkoctopus/v2/model/patched_algorithm_update_srlz.py +796 -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/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/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/octopus_async_client.py +1679 -150
- huaweicloudsdkoctopus/v2/octopus_client.py +1679 -150
- {huaweicloudsdkoctopus-3.1.155.dist-info → huaweicloudsdkoctopus-3.1.157.dist-info}/METADATA +2 -2
- huaweicloudsdkoctopus-3.1.157.dist-info/RECORD +126 -0
- huaweicloudsdkoctopus-3.1.155.dist-info/RECORD +0 -54
- {huaweicloudsdkoctopus-3.1.155.dist-info → huaweicloudsdkoctopus-3.1.157.dist-info}/LICENSE +0 -0
- {huaweicloudsdkoctopus-3.1.155.dist-info → huaweicloudsdkoctopus-3.1.157.dist-info}/WHEEL +0 -0
- {huaweicloudsdkoctopus-3.1.155.dist-info → huaweicloudsdkoctopus-3.1.157.dist-info}/top_level.txt +0 -0
@@ -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 DeleteSimExtensionsRequest:
|
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': 'object'
|
21
|
+
}
|
22
|
+
|
23
|
+
attribute_map = {
|
24
|
+
'id': 'id'
|
25
|
+
}
|
26
|
+
|
27
|
+
def __init__(self, id=None):
|
28
|
+
r"""DeleteSimExtensionsRequest
|
29
|
+
|
30
|
+
The model defined in huaweicloud sdk
|
31
|
+
|
32
|
+
:param id: A unique integer value identifying this extension.
|
33
|
+
:type id: object
|
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 DeleteSimExtensionsRequest.
|
46
|
+
|
47
|
+
A unique integer value identifying this extension.
|
48
|
+
|
49
|
+
:return: The id of this DeleteSimExtensionsRequest.
|
50
|
+
:rtype: object
|
51
|
+
"""
|
52
|
+
return self._id
|
53
|
+
|
54
|
+
@id.setter
|
55
|
+
def id(self, id):
|
56
|
+
r"""Sets the id of this DeleteSimExtensionsRequest.
|
57
|
+
|
58
|
+
A unique integer value identifying this extension.
|
59
|
+
|
60
|
+
:param id: The id of this DeleteSimExtensionsRequest.
|
61
|
+
:type id: object
|
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, DeleteSimExtensionsRequest):
|
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,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 DeleteSimExtensionsResponse(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
|
+
r"""DeleteSimExtensionsResponse
|
28
|
+
|
29
|
+
The model defined in huaweicloud sdk
|
30
|
+
|
31
|
+
"""
|
32
|
+
|
33
|
+
super(DeleteSimExtensionsResponse, 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, DeleteSimExtensionsResponse):
|
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
|
@@ -0,0 +1,353 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ExtensionSrlz:
|
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
|
+
'url': 'str',
|
21
|
+
'id': 'int',
|
22
|
+
'created_at': 'float',
|
23
|
+
'updated_at': 'float',
|
24
|
+
'filename': 'str',
|
25
|
+
'status': 'int',
|
26
|
+
'name': 'str',
|
27
|
+
'description': 'str',
|
28
|
+
'mount_path': 'str',
|
29
|
+
'file': 'FileNestedSrlz'
|
30
|
+
}
|
31
|
+
|
32
|
+
attribute_map = {
|
33
|
+
'url': 'url',
|
34
|
+
'id': 'id',
|
35
|
+
'created_at': 'created_at',
|
36
|
+
'updated_at': 'updated_at',
|
37
|
+
'filename': 'filename',
|
38
|
+
'status': 'status',
|
39
|
+
'name': 'name',
|
40
|
+
'description': 'description',
|
41
|
+
'mount_path': 'mount_path',
|
42
|
+
'file': 'file'
|
43
|
+
}
|
44
|
+
|
45
|
+
def __init__(self, url=None, id=None, created_at=None, updated_at=None, filename=None, status=None, name=None, description=None, mount_path=None, file=None):
|
46
|
+
r"""ExtensionSrlz
|
47
|
+
|
48
|
+
The model defined in huaweicloud sdk
|
49
|
+
|
50
|
+
:param url:
|
51
|
+
:type url: str
|
52
|
+
:param id:
|
53
|
+
:type id: int
|
54
|
+
:param created_at:
|
55
|
+
:type created_at: float
|
56
|
+
:param updated_at:
|
57
|
+
:type updated_at: float
|
58
|
+
:param filename: 文件名称
|
59
|
+
:type filename: str
|
60
|
+
:param status: 状态
|
61
|
+
:type status: int
|
62
|
+
:param name: 名称
|
63
|
+
:type name: str
|
64
|
+
:param description: 描述
|
65
|
+
:type description: str
|
66
|
+
:param mount_path: 挂载路径
|
67
|
+
:type mount_path: str
|
68
|
+
:param file:
|
69
|
+
:type file: :class:`huaweicloudsdkoctopus.v2.FileNestedSrlz`
|
70
|
+
"""
|
71
|
+
|
72
|
+
|
73
|
+
|
74
|
+
self._url = None
|
75
|
+
self._id = None
|
76
|
+
self._created_at = None
|
77
|
+
self._updated_at = None
|
78
|
+
self._filename = None
|
79
|
+
self._status = None
|
80
|
+
self._name = None
|
81
|
+
self._description = None
|
82
|
+
self._mount_path = None
|
83
|
+
self._file = None
|
84
|
+
self.discriminator = None
|
85
|
+
|
86
|
+
if url is not None:
|
87
|
+
self.url = url
|
88
|
+
if id is not None:
|
89
|
+
self.id = id
|
90
|
+
if created_at is not None:
|
91
|
+
self.created_at = created_at
|
92
|
+
if updated_at is not None:
|
93
|
+
self.updated_at = updated_at
|
94
|
+
if filename is not None:
|
95
|
+
self.filename = filename
|
96
|
+
if status is not None:
|
97
|
+
self.status = status
|
98
|
+
self.name = name
|
99
|
+
self.description = description
|
100
|
+
self.mount_path = mount_path
|
101
|
+
if file is not None:
|
102
|
+
self.file = file
|
103
|
+
|
104
|
+
@property
|
105
|
+
def url(self):
|
106
|
+
r"""Gets the url of this ExtensionSrlz.
|
107
|
+
|
108
|
+
:return: The url of this ExtensionSrlz.
|
109
|
+
:rtype: str
|
110
|
+
"""
|
111
|
+
return self._url
|
112
|
+
|
113
|
+
@url.setter
|
114
|
+
def url(self, url):
|
115
|
+
r"""Sets the url of this ExtensionSrlz.
|
116
|
+
|
117
|
+
:param url: The url of this ExtensionSrlz.
|
118
|
+
:type url: str
|
119
|
+
"""
|
120
|
+
self._url = url
|
121
|
+
|
122
|
+
@property
|
123
|
+
def id(self):
|
124
|
+
r"""Gets the id of this ExtensionSrlz.
|
125
|
+
|
126
|
+
:return: The id of this ExtensionSrlz.
|
127
|
+
:rtype: int
|
128
|
+
"""
|
129
|
+
return self._id
|
130
|
+
|
131
|
+
@id.setter
|
132
|
+
def id(self, id):
|
133
|
+
r"""Sets the id of this ExtensionSrlz.
|
134
|
+
|
135
|
+
:param id: The id of this ExtensionSrlz.
|
136
|
+
:type id: int
|
137
|
+
"""
|
138
|
+
self._id = id
|
139
|
+
|
140
|
+
@property
|
141
|
+
def created_at(self):
|
142
|
+
r"""Gets the created_at of this ExtensionSrlz.
|
143
|
+
|
144
|
+
:return: The created_at of this ExtensionSrlz.
|
145
|
+
:rtype: float
|
146
|
+
"""
|
147
|
+
return self._created_at
|
148
|
+
|
149
|
+
@created_at.setter
|
150
|
+
def created_at(self, created_at):
|
151
|
+
r"""Sets the created_at of this ExtensionSrlz.
|
152
|
+
|
153
|
+
:param created_at: The created_at of this ExtensionSrlz.
|
154
|
+
:type created_at: float
|
155
|
+
"""
|
156
|
+
self._created_at = created_at
|
157
|
+
|
158
|
+
@property
|
159
|
+
def updated_at(self):
|
160
|
+
r"""Gets the updated_at of this ExtensionSrlz.
|
161
|
+
|
162
|
+
:return: The updated_at of this ExtensionSrlz.
|
163
|
+
:rtype: float
|
164
|
+
"""
|
165
|
+
return self._updated_at
|
166
|
+
|
167
|
+
@updated_at.setter
|
168
|
+
def updated_at(self, updated_at):
|
169
|
+
r"""Sets the updated_at of this ExtensionSrlz.
|
170
|
+
|
171
|
+
:param updated_at: The updated_at of this ExtensionSrlz.
|
172
|
+
:type updated_at: float
|
173
|
+
"""
|
174
|
+
self._updated_at = updated_at
|
175
|
+
|
176
|
+
@property
|
177
|
+
def filename(self):
|
178
|
+
r"""Gets the filename of this ExtensionSrlz.
|
179
|
+
|
180
|
+
文件名称
|
181
|
+
|
182
|
+
:return: The filename of this ExtensionSrlz.
|
183
|
+
:rtype: str
|
184
|
+
"""
|
185
|
+
return self._filename
|
186
|
+
|
187
|
+
@filename.setter
|
188
|
+
def filename(self, filename):
|
189
|
+
r"""Sets the filename of this ExtensionSrlz.
|
190
|
+
|
191
|
+
文件名称
|
192
|
+
|
193
|
+
:param filename: The filename of this ExtensionSrlz.
|
194
|
+
:type filename: str
|
195
|
+
"""
|
196
|
+
self._filename = filename
|
197
|
+
|
198
|
+
@property
|
199
|
+
def status(self):
|
200
|
+
r"""Gets the status of this ExtensionSrlz.
|
201
|
+
|
202
|
+
状态
|
203
|
+
|
204
|
+
:return: The status of this ExtensionSrlz.
|
205
|
+
:rtype: int
|
206
|
+
"""
|
207
|
+
return self._status
|
208
|
+
|
209
|
+
@status.setter
|
210
|
+
def status(self, status):
|
211
|
+
r"""Sets the status of this ExtensionSrlz.
|
212
|
+
|
213
|
+
状态
|
214
|
+
|
215
|
+
:param status: The status of this ExtensionSrlz.
|
216
|
+
:type status: int
|
217
|
+
"""
|
218
|
+
self._status = status
|
219
|
+
|
220
|
+
@property
|
221
|
+
def name(self):
|
222
|
+
r"""Gets the name of this ExtensionSrlz.
|
223
|
+
|
224
|
+
名称
|
225
|
+
|
226
|
+
:return: The name of this ExtensionSrlz.
|
227
|
+
:rtype: str
|
228
|
+
"""
|
229
|
+
return self._name
|
230
|
+
|
231
|
+
@name.setter
|
232
|
+
def name(self, name):
|
233
|
+
r"""Sets the name of this ExtensionSrlz.
|
234
|
+
|
235
|
+
名称
|
236
|
+
|
237
|
+
:param name: The name of this ExtensionSrlz.
|
238
|
+
:type name: str
|
239
|
+
"""
|
240
|
+
self._name = name
|
241
|
+
|
242
|
+
@property
|
243
|
+
def description(self):
|
244
|
+
r"""Gets the description of this ExtensionSrlz.
|
245
|
+
|
246
|
+
描述
|
247
|
+
|
248
|
+
:return: The description of this ExtensionSrlz.
|
249
|
+
:rtype: str
|
250
|
+
"""
|
251
|
+
return self._description
|
252
|
+
|
253
|
+
@description.setter
|
254
|
+
def description(self, description):
|
255
|
+
r"""Sets the description of this ExtensionSrlz.
|
256
|
+
|
257
|
+
描述
|
258
|
+
|
259
|
+
:param description: The description of this ExtensionSrlz.
|
260
|
+
:type description: str
|
261
|
+
"""
|
262
|
+
self._description = description
|
263
|
+
|
264
|
+
@property
|
265
|
+
def mount_path(self):
|
266
|
+
r"""Gets the mount_path of this ExtensionSrlz.
|
267
|
+
|
268
|
+
挂载路径
|
269
|
+
|
270
|
+
:return: The mount_path of this ExtensionSrlz.
|
271
|
+
:rtype: str
|
272
|
+
"""
|
273
|
+
return self._mount_path
|
274
|
+
|
275
|
+
@mount_path.setter
|
276
|
+
def mount_path(self, mount_path):
|
277
|
+
r"""Sets the mount_path of this ExtensionSrlz.
|
278
|
+
|
279
|
+
挂载路径
|
280
|
+
|
281
|
+
:param mount_path: The mount_path of this ExtensionSrlz.
|
282
|
+
:type mount_path: str
|
283
|
+
"""
|
284
|
+
self._mount_path = mount_path
|
285
|
+
|
286
|
+
@property
|
287
|
+
def file(self):
|
288
|
+
r"""Gets the file of this ExtensionSrlz.
|
289
|
+
|
290
|
+
:return: The file of this ExtensionSrlz.
|
291
|
+
:rtype: :class:`huaweicloudsdkoctopus.v2.FileNestedSrlz`
|
292
|
+
"""
|
293
|
+
return self._file
|
294
|
+
|
295
|
+
@file.setter
|
296
|
+
def file(self, file):
|
297
|
+
r"""Sets the file of this ExtensionSrlz.
|
298
|
+
|
299
|
+
:param file: The file of this ExtensionSrlz.
|
300
|
+
:type file: :class:`huaweicloudsdkoctopus.v2.FileNestedSrlz`
|
301
|
+
"""
|
302
|
+
self._file = file
|
303
|
+
|
304
|
+
def to_dict(self):
|
305
|
+
"""Returns the model properties as a dict"""
|
306
|
+
result = {}
|
307
|
+
|
308
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
309
|
+
value = getattr(self, attr)
|
310
|
+
if isinstance(value, list):
|
311
|
+
result[attr] = list(map(
|
312
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
313
|
+
value
|
314
|
+
))
|
315
|
+
elif hasattr(value, "to_dict"):
|
316
|
+
result[attr] = value.to_dict()
|
317
|
+
elif isinstance(value, dict):
|
318
|
+
result[attr] = dict(map(
|
319
|
+
lambda item: (item[0], item[1].to_dict())
|
320
|
+
if hasattr(item[1], "to_dict") else item,
|
321
|
+
value.items()
|
322
|
+
))
|
323
|
+
else:
|
324
|
+
if attr in self.sensitive_list:
|
325
|
+
result[attr] = "****"
|
326
|
+
else:
|
327
|
+
result[attr] = value
|
328
|
+
|
329
|
+
return result
|
330
|
+
|
331
|
+
def to_str(self):
|
332
|
+
"""Returns the string representation of the model"""
|
333
|
+
import simplejson as json
|
334
|
+
if six.PY2:
|
335
|
+
import sys
|
336
|
+
reload(sys)
|
337
|
+
sys.setdefaultencoding("utf-8")
|
338
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
339
|
+
|
340
|
+
def __repr__(self):
|
341
|
+
"""For `print`"""
|
342
|
+
return self.to_str()
|
343
|
+
|
344
|
+
def __eq__(self, other):
|
345
|
+
"""Returns true if both objects are equal"""
|
346
|
+
if not isinstance(other, ExtensionSrlz):
|
347
|
+
return False
|
348
|
+
|
349
|
+
return self.__dict__ == other.__dict__
|
350
|
+
|
351
|
+
def __ne__(self, other):
|
352
|
+
"""Returns true if both objects are not equal"""
|
353
|
+
return not self == other
|