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,144 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class PatchedFileDetailSrlz:
|
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
|
+
'filename': 'str',
|
21
|
+
'ready': 'bool'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'filename': 'filename',
|
26
|
+
'ready': 'ready'
|
27
|
+
}
|
28
|
+
|
29
|
+
def __init__(self, filename=None, ready=None):
|
30
|
+
r"""PatchedFileDetailSrlz
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
:param filename: 文件名
|
35
|
+
:type filename: str
|
36
|
+
:param ready: 文件状态
|
37
|
+
:type ready: bool
|
38
|
+
"""
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
self._filename = None
|
43
|
+
self._ready = None
|
44
|
+
self.discriminator = None
|
45
|
+
|
46
|
+
if filename is not None:
|
47
|
+
self.filename = filename
|
48
|
+
if ready is not None:
|
49
|
+
self.ready = ready
|
50
|
+
|
51
|
+
@property
|
52
|
+
def filename(self):
|
53
|
+
r"""Gets the filename of this PatchedFileDetailSrlz.
|
54
|
+
|
55
|
+
文件名
|
56
|
+
|
57
|
+
:return: The filename of this PatchedFileDetailSrlz.
|
58
|
+
:rtype: str
|
59
|
+
"""
|
60
|
+
return self._filename
|
61
|
+
|
62
|
+
@filename.setter
|
63
|
+
def filename(self, filename):
|
64
|
+
r"""Sets the filename of this PatchedFileDetailSrlz.
|
65
|
+
|
66
|
+
文件名
|
67
|
+
|
68
|
+
:param filename: The filename of this PatchedFileDetailSrlz.
|
69
|
+
:type filename: str
|
70
|
+
"""
|
71
|
+
self._filename = filename
|
72
|
+
|
73
|
+
@property
|
74
|
+
def ready(self):
|
75
|
+
r"""Gets the ready of this PatchedFileDetailSrlz.
|
76
|
+
|
77
|
+
文件状态
|
78
|
+
|
79
|
+
:return: The ready of this PatchedFileDetailSrlz.
|
80
|
+
:rtype: bool
|
81
|
+
"""
|
82
|
+
return self._ready
|
83
|
+
|
84
|
+
@ready.setter
|
85
|
+
def ready(self, ready):
|
86
|
+
r"""Sets the ready of this PatchedFileDetailSrlz.
|
87
|
+
|
88
|
+
文件状态
|
89
|
+
|
90
|
+
:param ready: The ready of this PatchedFileDetailSrlz.
|
91
|
+
:type ready: bool
|
92
|
+
"""
|
93
|
+
self._ready = ready
|
94
|
+
|
95
|
+
def to_dict(self):
|
96
|
+
"""Returns the model properties as a dict"""
|
97
|
+
result = {}
|
98
|
+
|
99
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
100
|
+
value = getattr(self, attr)
|
101
|
+
if isinstance(value, list):
|
102
|
+
result[attr] = list(map(
|
103
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
104
|
+
value
|
105
|
+
))
|
106
|
+
elif hasattr(value, "to_dict"):
|
107
|
+
result[attr] = value.to_dict()
|
108
|
+
elif isinstance(value, dict):
|
109
|
+
result[attr] = dict(map(
|
110
|
+
lambda item: (item[0], item[1].to_dict())
|
111
|
+
if hasattr(item[1], "to_dict") else item,
|
112
|
+
value.items()
|
113
|
+
))
|
114
|
+
else:
|
115
|
+
if attr in self.sensitive_list:
|
116
|
+
result[attr] = "****"
|
117
|
+
else:
|
118
|
+
result[attr] = value
|
119
|
+
|
120
|
+
return result
|
121
|
+
|
122
|
+
def to_str(self):
|
123
|
+
"""Returns the string representation of the model"""
|
124
|
+
import simplejson as json
|
125
|
+
if six.PY2:
|
126
|
+
import sys
|
127
|
+
reload(sys)
|
128
|
+
sys.setdefaultencoding("utf-8")
|
129
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
130
|
+
|
131
|
+
def __repr__(self):
|
132
|
+
"""For `print`"""
|
133
|
+
return self.to_str()
|
134
|
+
|
135
|
+
def __eq__(self, other):
|
136
|
+
"""Returns true if both objects are equal"""
|
137
|
+
if not isinstance(other, PatchedFileDetailSrlz):
|
138
|
+
return False
|
139
|
+
|
140
|
+
return self.__dict__ == other.__dict__
|
141
|
+
|
142
|
+
def __ne__(self, other):
|
143
|
+
"""Returns true if both objects are not equal"""
|
144
|
+
return not self == other
|
@@ -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 PostResponse:
|
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
|
+
'fields': 'PostResponseField'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'url': 'url',
|
26
|
+
'fields': 'fields'
|
27
|
+
}
|
28
|
+
|
29
|
+
def __init__(self, url=None, fields=None):
|
30
|
+
r"""PostResponse
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
:param url: POST地址
|
35
|
+
:type url: str
|
36
|
+
:param fields:
|
37
|
+
:type fields: :class:`huaweicloudsdkoctopus.v2.PostResponseField`
|
38
|
+
"""
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
self._url = None
|
43
|
+
self._fields = None
|
44
|
+
self.discriminator = None
|
45
|
+
|
46
|
+
if url is not None:
|
47
|
+
self.url = url
|
48
|
+
if fields is not None:
|
49
|
+
self.fields = fields
|
50
|
+
|
51
|
+
@property
|
52
|
+
def url(self):
|
53
|
+
r"""Gets the url of this PostResponse.
|
54
|
+
|
55
|
+
POST地址
|
56
|
+
|
57
|
+
:return: The url of this PostResponse.
|
58
|
+
:rtype: str
|
59
|
+
"""
|
60
|
+
return self._url
|
61
|
+
|
62
|
+
@url.setter
|
63
|
+
def url(self, url):
|
64
|
+
r"""Sets the url of this PostResponse.
|
65
|
+
|
66
|
+
POST地址
|
67
|
+
|
68
|
+
:param url: The url of this PostResponse.
|
69
|
+
:type url: str
|
70
|
+
"""
|
71
|
+
self._url = url
|
72
|
+
|
73
|
+
@property
|
74
|
+
def fields(self):
|
75
|
+
r"""Gets the fields of this PostResponse.
|
76
|
+
|
77
|
+
:return: The fields of this PostResponse.
|
78
|
+
:rtype: :class:`huaweicloudsdkoctopus.v2.PostResponseField`
|
79
|
+
"""
|
80
|
+
return self._fields
|
81
|
+
|
82
|
+
@fields.setter
|
83
|
+
def fields(self, fields):
|
84
|
+
r"""Sets the fields of this PostResponse.
|
85
|
+
|
86
|
+
:param fields: The fields of this PostResponse.
|
87
|
+
:type fields: :class:`huaweicloudsdkoctopus.v2.PostResponseField`
|
88
|
+
"""
|
89
|
+
self._fields = fields
|
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, PostResponse):
|
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,236 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class PostResponseField:
|
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
|
+
'key': 'str',
|
21
|
+
'x_amz_algorithm': 'str',
|
22
|
+
'x_amz_credential': 'str',
|
23
|
+
'x_amz_date': 'str',
|
24
|
+
'policy': 'str',
|
25
|
+
'x_amz_signature': 'str'
|
26
|
+
}
|
27
|
+
|
28
|
+
attribute_map = {
|
29
|
+
'key': 'key',
|
30
|
+
'x_amz_algorithm': 'x-amz-algorithm',
|
31
|
+
'x_amz_credential': 'x-amz-credential',
|
32
|
+
'x_amz_date': 'x-amz-date',
|
33
|
+
'policy': 'policy',
|
34
|
+
'x_amz_signature': 'x-amz-signature'
|
35
|
+
}
|
36
|
+
|
37
|
+
def __init__(self, key=None, x_amz_algorithm=None, x_amz_credential=None, x_amz_date=None, policy=None, x_amz_signature=None):
|
38
|
+
r"""PostResponseField
|
39
|
+
|
40
|
+
The model defined in huaweicloud sdk
|
41
|
+
|
42
|
+
:param key:
|
43
|
+
:type key: str
|
44
|
+
:param x_amz_algorithm:
|
45
|
+
:type x_amz_algorithm: str
|
46
|
+
:param x_amz_credential:
|
47
|
+
:type x_amz_credential: str
|
48
|
+
:param x_amz_date:
|
49
|
+
:type x_amz_date: str
|
50
|
+
:param policy:
|
51
|
+
:type policy: str
|
52
|
+
:param x_amz_signature:
|
53
|
+
:type x_amz_signature: str
|
54
|
+
"""
|
55
|
+
|
56
|
+
|
57
|
+
|
58
|
+
self._key = None
|
59
|
+
self._x_amz_algorithm = None
|
60
|
+
self._x_amz_credential = None
|
61
|
+
self._x_amz_date = None
|
62
|
+
self._policy = None
|
63
|
+
self._x_amz_signature = None
|
64
|
+
self.discriminator = None
|
65
|
+
|
66
|
+
if key is not None:
|
67
|
+
self.key = key
|
68
|
+
if x_amz_algorithm is not None:
|
69
|
+
self.x_amz_algorithm = x_amz_algorithm
|
70
|
+
if x_amz_credential is not None:
|
71
|
+
self.x_amz_credential = x_amz_credential
|
72
|
+
if x_amz_date is not None:
|
73
|
+
self.x_amz_date = x_amz_date
|
74
|
+
if policy is not None:
|
75
|
+
self.policy = policy
|
76
|
+
if x_amz_signature is not None:
|
77
|
+
self.x_amz_signature = x_amz_signature
|
78
|
+
|
79
|
+
@property
|
80
|
+
def key(self):
|
81
|
+
r"""Gets the key of this PostResponseField.
|
82
|
+
|
83
|
+
:return: The key of this PostResponseField.
|
84
|
+
:rtype: str
|
85
|
+
"""
|
86
|
+
return self._key
|
87
|
+
|
88
|
+
@key.setter
|
89
|
+
def key(self, key):
|
90
|
+
r"""Sets the key of this PostResponseField.
|
91
|
+
|
92
|
+
:param key: The key of this PostResponseField.
|
93
|
+
:type key: str
|
94
|
+
"""
|
95
|
+
self._key = key
|
96
|
+
|
97
|
+
@property
|
98
|
+
def x_amz_algorithm(self):
|
99
|
+
r"""Gets the x_amz_algorithm of this PostResponseField.
|
100
|
+
|
101
|
+
:return: The x_amz_algorithm of this PostResponseField.
|
102
|
+
:rtype: str
|
103
|
+
"""
|
104
|
+
return self._x_amz_algorithm
|
105
|
+
|
106
|
+
@x_amz_algorithm.setter
|
107
|
+
def x_amz_algorithm(self, x_amz_algorithm):
|
108
|
+
r"""Sets the x_amz_algorithm of this PostResponseField.
|
109
|
+
|
110
|
+
:param x_amz_algorithm: The x_amz_algorithm of this PostResponseField.
|
111
|
+
:type x_amz_algorithm: str
|
112
|
+
"""
|
113
|
+
self._x_amz_algorithm = x_amz_algorithm
|
114
|
+
|
115
|
+
@property
|
116
|
+
def x_amz_credential(self):
|
117
|
+
r"""Gets the x_amz_credential of this PostResponseField.
|
118
|
+
|
119
|
+
:return: The x_amz_credential of this PostResponseField.
|
120
|
+
:rtype: str
|
121
|
+
"""
|
122
|
+
return self._x_amz_credential
|
123
|
+
|
124
|
+
@x_amz_credential.setter
|
125
|
+
def x_amz_credential(self, x_amz_credential):
|
126
|
+
r"""Sets the x_amz_credential of this PostResponseField.
|
127
|
+
|
128
|
+
:param x_amz_credential: The x_amz_credential of this PostResponseField.
|
129
|
+
:type x_amz_credential: str
|
130
|
+
"""
|
131
|
+
self._x_amz_credential = x_amz_credential
|
132
|
+
|
133
|
+
@property
|
134
|
+
def x_amz_date(self):
|
135
|
+
r"""Gets the x_amz_date of this PostResponseField.
|
136
|
+
|
137
|
+
:return: The x_amz_date of this PostResponseField.
|
138
|
+
:rtype: str
|
139
|
+
"""
|
140
|
+
return self._x_amz_date
|
141
|
+
|
142
|
+
@x_amz_date.setter
|
143
|
+
def x_amz_date(self, x_amz_date):
|
144
|
+
r"""Sets the x_amz_date of this PostResponseField.
|
145
|
+
|
146
|
+
:param x_amz_date: The x_amz_date of this PostResponseField.
|
147
|
+
:type x_amz_date: str
|
148
|
+
"""
|
149
|
+
self._x_amz_date = x_amz_date
|
150
|
+
|
151
|
+
@property
|
152
|
+
def policy(self):
|
153
|
+
r"""Gets the policy of this PostResponseField.
|
154
|
+
|
155
|
+
:return: The policy of this PostResponseField.
|
156
|
+
:rtype: str
|
157
|
+
"""
|
158
|
+
return self._policy
|
159
|
+
|
160
|
+
@policy.setter
|
161
|
+
def policy(self, policy):
|
162
|
+
r"""Sets the policy of this PostResponseField.
|
163
|
+
|
164
|
+
:param policy: The policy of this PostResponseField.
|
165
|
+
:type policy: str
|
166
|
+
"""
|
167
|
+
self._policy = policy
|
168
|
+
|
169
|
+
@property
|
170
|
+
def x_amz_signature(self):
|
171
|
+
r"""Gets the x_amz_signature of this PostResponseField.
|
172
|
+
|
173
|
+
:return: The x_amz_signature of this PostResponseField.
|
174
|
+
:rtype: str
|
175
|
+
"""
|
176
|
+
return self._x_amz_signature
|
177
|
+
|
178
|
+
@x_amz_signature.setter
|
179
|
+
def x_amz_signature(self, x_amz_signature):
|
180
|
+
r"""Sets the x_amz_signature of this PostResponseField.
|
181
|
+
|
182
|
+
:param x_amz_signature: The x_amz_signature of this PostResponseField.
|
183
|
+
:type x_amz_signature: str
|
184
|
+
"""
|
185
|
+
self._x_amz_signature = x_amz_signature
|
186
|
+
|
187
|
+
def to_dict(self):
|
188
|
+
"""Returns the model properties as a dict"""
|
189
|
+
result = {}
|
190
|
+
|
191
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
192
|
+
value = getattr(self, attr)
|
193
|
+
if isinstance(value, list):
|
194
|
+
result[attr] = list(map(
|
195
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
196
|
+
value
|
197
|
+
))
|
198
|
+
elif hasattr(value, "to_dict"):
|
199
|
+
result[attr] = value.to_dict()
|
200
|
+
elif isinstance(value, dict):
|
201
|
+
result[attr] = dict(map(
|
202
|
+
lambda item: (item[0], item[1].to_dict())
|
203
|
+
if hasattr(item[1], "to_dict") else item,
|
204
|
+
value.items()
|
205
|
+
))
|
206
|
+
else:
|
207
|
+
if attr in self.sensitive_list:
|
208
|
+
result[attr] = "****"
|
209
|
+
else:
|
210
|
+
result[attr] = value
|
211
|
+
|
212
|
+
return result
|
213
|
+
|
214
|
+
def to_str(self):
|
215
|
+
"""Returns the string representation of the model"""
|
216
|
+
import simplejson as json
|
217
|
+
if six.PY2:
|
218
|
+
import sys
|
219
|
+
reload(sys)
|
220
|
+
sys.setdefaultencoding("utf-8")
|
221
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
222
|
+
|
223
|
+
def __repr__(self):
|
224
|
+
"""For `print`"""
|
225
|
+
return self.to_str()
|
226
|
+
|
227
|
+
def __eq__(self, other):
|
228
|
+
"""Returns true if both objects are equal"""
|
229
|
+
if not isinstance(other, PostResponseField):
|
230
|
+
return False
|
231
|
+
|
232
|
+
return self.__dict__ == other.__dict__
|
233
|
+
|
234
|
+
def __ne__(self, other):
|
235
|
+
"""Returns true if both objects are not equal"""
|
236
|
+
return not self == other
|
@@ -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 PriorityEnum:
|
9
|
+
"""
|
10
|
+
allowed enum values
|
11
|
+
"""
|
12
|
+
_120 = "120"
|
13
|
+
_100 = "100"
|
14
|
+
_80 = "80"
|
15
|
+
_60 = "60"
|
16
|
+
_40 = "40"
|
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"""PriorityEnum
|
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, PriorityEnum):
|
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,88 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class RecordModeEnum:
|
9
|
+
"""
|
10
|
+
allowed enum values
|
11
|
+
"""
|
12
|
+
_0 = "0"
|
13
|
+
_1 = "1"
|
14
|
+
"""
|
15
|
+
Attributes:
|
16
|
+
openapi_types (dict): The key is attribute name
|
17
|
+
and the value is attribute type.
|
18
|
+
attribute_map (dict): The key is attribute name
|
19
|
+
and the value is json key in definition.
|
20
|
+
"""
|
21
|
+
sensitive_list = []
|
22
|
+
|
23
|
+
openapi_types = {
|
24
|
+
}
|
25
|
+
|
26
|
+
attribute_map = {
|
27
|
+
}
|
28
|
+
|
29
|
+
def __init__(self):
|
30
|
+
r"""RecordModeEnum
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
"""
|
35
|
+
|
36
|
+
|
37
|
+
self.discriminator = None
|
38
|
+
|
39
|
+
def to_dict(self):
|
40
|
+
"""Returns the model properties as a dict"""
|
41
|
+
result = {}
|
42
|
+
|
43
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
44
|
+
value = getattr(self, attr)
|
45
|
+
if isinstance(value, list):
|
46
|
+
result[attr] = list(map(
|
47
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
48
|
+
value
|
49
|
+
))
|
50
|
+
elif hasattr(value, "to_dict"):
|
51
|
+
result[attr] = value.to_dict()
|
52
|
+
elif isinstance(value, dict):
|
53
|
+
result[attr] = dict(map(
|
54
|
+
lambda item: (item[0], item[1].to_dict())
|
55
|
+
if hasattr(item[1], "to_dict") else item,
|
56
|
+
value.items()
|
57
|
+
))
|
58
|
+
else:
|
59
|
+
if attr in self.sensitive_list:
|
60
|
+
result[attr] = "****"
|
61
|
+
else:
|
62
|
+
result[attr] = value
|
63
|
+
|
64
|
+
return result
|
65
|
+
|
66
|
+
def to_str(self):
|
67
|
+
"""Returns the string representation of the model"""
|
68
|
+
import simplejson as json
|
69
|
+
if six.PY2:
|
70
|
+
import sys
|
71
|
+
reload(sys)
|
72
|
+
sys.setdefaultencoding("utf-8")
|
73
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
74
|
+
|
75
|
+
def __repr__(self):
|
76
|
+
"""For `print`"""
|
77
|
+
return self.to_str()
|
78
|
+
|
79
|
+
def __eq__(self, other):
|
80
|
+
"""Returns true if both objects are equal"""
|
81
|
+
if not isinstance(other, RecordModeEnum):
|
82
|
+
return False
|
83
|
+
|
84
|
+
return self.__dict__ == other.__dict__
|
85
|
+
|
86
|
+
def __ne__(self, other):
|
87
|
+
"""Returns true if both objects are not equal"""
|
88
|
+
return not self == other
|