huaweicloudsdkcae 3.1.47__py2.py3-none-any.whl → 3.1.49__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.
Potentially problematic release.
This version of huaweicloudsdkcae might be problematic. Click here for more details.
- huaweicloudsdkcae/v1/__init__.py +57 -13
- huaweicloudsdkcae/v1/cae_async_client.py +1049 -311
- huaweicloudsdkcae/v1/cae_client.py +1037 -311
- huaweicloudsdkcae/v1/model/__init__.py +56 -11
- huaweicloudsdkcae/v1/model/access.py +6 -6
- huaweicloudsdkcae/v1/model/action_on_component_source.py +198 -0
- huaweicloudsdkcae/v1/model/action_on_component_spec.py +7 -7
- huaweicloudsdkcae/v1/model/agency.py +7 -8
- huaweicloudsdkcae/v1/model/agency_item.py +3 -3
- huaweicloudsdkcae/v1/model/agency_metadata.py +3 -3
- huaweicloudsdkcae/v1/model/{log_strategy.py → app_info.py} +42 -42
- huaweicloudsdkcae/v1/model/application_item.py +96 -9
- huaweicloudsdkcae/v1/model/application_metadata.py +9 -9
- huaweicloudsdkcae/v1/model/archive.py +3 -3
- huaweicloudsdkcae/v1/model/build.py +5 -1
- huaweicloudsdkcae/v1/model/cert_item.py +136 -0
- huaweicloudsdkcae/v1/model/cert_req.py +190 -0
- huaweicloudsdkcae/v1/model/component_execution_result.py +202 -0
- huaweicloudsdkcae/v1/model/component_info.py +144 -0
- huaweicloudsdkcae/v1/model/component_item.py +62 -33
- huaweicloudsdkcae/v1/model/component_snapshot_context.py +724 -0
- huaweicloudsdkcae/v1/model/component_snapshot_item.py +70 -74
- huaweicloudsdkcae/v1/model/component_spec.py +126 -97
- huaweicloudsdkcae/v1/model/configuration.py +9 -9
- huaweicloudsdkcae/v1/model/configuration_item.py +6 -6
- huaweicloudsdkcae/v1/model/create_application_request.py +32 -32
- huaweicloudsdkcae/v1/model/create_application_request_body.py +6 -6
- huaweicloudsdkcae/v1/model/create_application_request_body_metadata.py +6 -6
- huaweicloudsdkcae/v1/model/create_application_response.py +6 -6
- huaweicloudsdkcae/v1/model/create_certificate_request.py +168 -0
- huaweicloudsdkcae/v1/model/create_certificate_response.py +174 -0
- huaweicloudsdkcae/v1/model/create_component_configuration_request.py +53 -53
- huaweicloudsdkcae/v1/model/create_component_configuration_request_body.py +6 -6
- huaweicloudsdkcae/v1/model/create_component_request.py +40 -40
- huaweicloudsdkcae/v1/model/create_component_request_body.py +6 -6
- huaweicloudsdkcae/v1/model/create_component_request_body_metadata.py +4 -5
- huaweicloudsdkcae/v1/model/create_component_request_body_spec.py +6 -6
- huaweicloudsdkcae/v1/model/create_component_response.py +10 -10
- huaweicloudsdkcae/v1/model/create_component_spec.py +306 -0
- huaweicloudsdkcae/v1/model/create_domain_req.py +166 -0
- huaweicloudsdkcae/v1/model/create_domain_request.py +168 -0
- huaweicloudsdkcae/v1/model/create_domain_response.py +174 -0
- huaweicloudsdkcae/v1/model/create_environment_request.py +3 -3
- huaweicloudsdkcae/v1/model/create_environment_request_body.py +6 -6
- huaweicloudsdkcae/v1/model/create_environment_request_body_metadata.py +6 -34
- huaweicloudsdkcae/v1/model/create_environment_response.py +20 -74
- huaweicloudsdkcae/v1/model/create_meta_cert.py +114 -0
- huaweicloudsdkcae/v1/model/create_meta_domain.py +114 -0
- huaweicloudsdkcae/v1/model/create_spec_cert.py +170 -0
- huaweicloudsdkcae/v1/model/create_timer_rule_req.py +169 -0
- huaweicloudsdkcae/v1/model/create_timer_rule_request.py +168 -0
- huaweicloudsdkcae/v1/model/create_timer_rule_response.py +170 -0
- huaweicloudsdkcae/v1/model/create_volume_req.py +6 -6
- huaweicloudsdkcae/v1/model/create_volume_request.py +32 -32
- huaweicloudsdkcae/v1/model/delete_application_request.py +37 -37
- huaweicloudsdkcae/v1/model/delete_certificate_request.py +171 -0
- huaweicloudsdkcae/v1/model/delete_certificate_response.py +85 -0
- huaweicloudsdkcae/v1/model/delete_component_configuration_request.py +53 -53
- huaweicloudsdkcae/v1/model/delete_component_request.py +53 -53
- huaweicloudsdkcae/v1/model/delete_domain_request.py +171 -0
- huaweicloudsdkcae/v1/model/delete_domain_response.py +85 -0
- huaweicloudsdkcae/v1/model/delete_environment_request.py +6 -6
- huaweicloudsdkcae/v1/model/delete_environment_response.py +3 -3
- huaweicloudsdkcae/v1/model/delete_timer_rule_request.py +171 -0
- huaweicloudsdkcae/v1/model/delete_timer_rule_response.py +85 -0
- huaweicloudsdkcae/v1/model/delete_volume_request.py +37 -37
- huaweicloudsdkcae/v1/model/delete_volume_response.py +9 -9
- huaweicloudsdkcae/v1/model/domain_item.py +111 -0
- huaweicloudsdkcae/v1/model/environment_item.py +13 -42
- huaweicloudsdkcae/v1/model/event_item.py +36 -7
- huaweicloudsdkcae/v1/model/execute_action_request.py +53 -53
- huaweicloudsdkcae/v1/model/execute_action_request_body.py +6 -6
- huaweicloudsdkcae/v1/model/execute_action_request_body_metadata.py +3 -3
- huaweicloudsdkcae/v1/model/execute_action_response.py +3 -3
- huaweicloudsdkcae/v1/model/execution_details.py +144 -0
- huaweicloudsdkcae/v1/model/instance.py +3 -3
- huaweicloudsdkcae/v1/model/job_spec.py +36 -7
- huaweicloudsdkcae/v1/model/{show_agency_request.py → list_agencies_request.py} +3 -3
- huaweicloudsdkcae/v1/model/list_agencies_response.py +174 -0
- huaweicloudsdkcae/v1/model/list_applications_request.py +34 -34
- huaweicloudsdkcae/v1/model/list_applications_response.py +6 -6
- huaweicloudsdkcae/v1/model/{list_events_request.py → list_certificates_request.py} +29 -85
- huaweicloudsdkcae/v1/model/list_certificates_response.py +174 -0
- huaweicloudsdkcae/v1/model/list_component_configurations_request.py +199 -0
- huaweicloudsdkcae/v1/model/{list_configurations_response.py → list_component_configurations_response.py} +22 -22
- huaweicloudsdkcae/v1/model/list_component_events_request.py +199 -0
- huaweicloudsdkcae/v1/model/{list_events_response.py → list_component_events_response.py} +22 -22
- huaweicloudsdkcae/v1/model/list_component_instances_request.py +199 -0
- huaweicloudsdkcae/v1/model/{list_instances_response.py → list_component_instances_response.py} +22 -22
- huaweicloudsdkcae/v1/model/list_component_snapshots_request.py +53 -53
- huaweicloudsdkcae/v1/model/list_component_snapshots_response.py +6 -6
- huaweicloudsdkcae/v1/model/list_components_request.py +52 -52
- huaweicloudsdkcae/v1/model/list_components_response.py +6 -6
- huaweicloudsdkcae/v1/model/{list_configurations_request.py → list_domains_request.py} +29 -85
- huaweicloudsdkcae/v1/model/list_domains_response.py +174 -0
- huaweicloudsdkcae/v1/model/list_environments_request.py +3 -3
- huaweicloudsdkcae/v1/model/list_environments_response.py +9 -9
- huaweicloudsdkcae/v1/model/{list_instances_request.py → list_timer_rules_request.py} +29 -85
- huaweicloudsdkcae/v1/model/{show_agency_response.py → list_timer_rules_response.py} +27 -31
- huaweicloudsdkcae/v1/model/list_volumes_request.py +35 -35
- huaweicloudsdkcae/v1/model/list_volumes_response.py +9 -9
- huaweicloudsdkcae/v1/model/meta_cert.py +144 -0
- huaweicloudsdkcae/v1/model/meta_domain.py +231 -0
- huaweicloudsdkcae/v1/model/metadata_response.py +46 -133
- huaweicloudsdkcae/v1/model/mount_component.py +9 -9
- huaweicloudsdkcae/v1/model/repo.py +6 -6
- huaweicloudsdkcae/v1/model/retry_job_request.py +63 -6
- huaweicloudsdkcae/v1/model/show_application_request.py +37 -37
- huaweicloudsdkcae/v1/model/show_application_response.py +6 -6
- huaweicloudsdkcae/v1/model/show_component_request.py +53 -53
- huaweicloudsdkcae/v1/model/show_component_response.py +6 -6
- huaweicloudsdkcae/v1/model/show_execution_result_request.py +171 -0
- huaweicloudsdkcae/v1/model/show_execution_result_response.py +170 -0
- huaweicloudsdkcae/v1/model/show_job_request.py +37 -9
- huaweicloudsdkcae/v1/model/show_job_response.py +6 -6
- huaweicloudsdkcae/v1/model/source.py +9 -9
- huaweicloudsdkcae/v1/model/spec_cert.py +202 -0
- huaweicloudsdkcae/v1/model/task.py +68 -68
- huaweicloudsdkcae/v1/model/timer_rule_details.py +434 -0
- huaweicloudsdkcae/v1/model/update_cert_req.py +166 -0
- huaweicloudsdkcae/v1/model/update_certificate_request.py +196 -0
- huaweicloudsdkcae/v1/model/update_certificate_response.py +85 -0
- huaweicloudsdkcae/v1/model/update_component_request.py +53 -53
- huaweicloudsdkcae/v1/model/update_component_request_body.py +10 -10
- huaweicloudsdkcae/v1/model/update_component_request_metadata.py +143 -0
- huaweicloudsdkcae/v1/model/update_component_request_spec.py +52 -19
- huaweicloudsdkcae/v1/model/update_spec_cert.py +170 -0
- huaweicloudsdkcae/v1/model/update_timer_rule_details.py +312 -0
- huaweicloudsdkcae/v1/model/update_timer_rule_req.py +166 -0
- huaweicloudsdkcae/v1/model/update_timer_rule_request.py +196 -0
- huaweicloudsdkcae/v1/model/update_timer_rule_response.py +85 -0
- huaweicloudsdkcae/v1/model/volume.py +15 -15
- huaweicloudsdkcae/v1/model/volume_spec.py +3 -3
- huaweicloudsdkcae/v1/region/cae_region.py +3 -0
- {huaweicloudsdkcae-3.1.47.dist-info → huaweicloudsdkcae-3.1.49.dist-info}/LICENSE +0 -0
- {huaweicloudsdkcae-3.1.47.dist-info → huaweicloudsdkcae-3.1.49.dist-info}/METADATA +2 -2
- huaweicloudsdkcae-3.1.49.dist-info/RECORD +152 -0
- huaweicloudsdkcae/v1/model/environment_metadata.py +0 -318
- huaweicloudsdkcae/v1/model/metadata.py +0 -317
- huaweicloudsdkcae-3.1.47.dist-info/RECORD +0 -107
- {huaweicloudsdkcae-3.1.47.dist-info → huaweicloudsdkcae-3.1.49.dist-info}/WHEEL +0 -0
- {huaweicloudsdkcae-3.1.47.dist-info → huaweicloudsdkcae-3.1.49.dist-info}/top_level.txt +0 -0
|
@@ -1,318 +0,0 @@
|
|
|
1
|
-
# coding: utf-8
|
|
2
|
-
|
|
3
|
-
import six
|
|
4
|
-
|
|
5
|
-
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
class EnvironmentMetadata:
|
|
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
|
-
'annotations': 'object',
|
|
21
|
-
'id': 'str',
|
|
22
|
-
'name': 'str',
|
|
23
|
-
'status': 'str',
|
|
24
|
-
'type': 'str',
|
|
25
|
-
'job_id': 'str',
|
|
26
|
-
'created_at': 'str',
|
|
27
|
-
'updated_at': 'str'
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
attribute_map = {
|
|
31
|
-
'annotations': 'annotations',
|
|
32
|
-
'id': 'id',
|
|
33
|
-
'name': 'name',
|
|
34
|
-
'status': 'status',
|
|
35
|
-
'type': 'type',
|
|
36
|
-
'job_id': 'job_id',
|
|
37
|
-
'created_at': 'created_at',
|
|
38
|
-
'updated_at': 'updated_at'
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
def __init__(self, annotations=None, id=None, name=None, status=None, type=None, job_id=None, created_at=None, updated_at=None):
|
|
42
|
-
"""EnvironmentMetadata
|
|
43
|
-
|
|
44
|
-
The model defined in huaweicloud sdk
|
|
45
|
-
|
|
46
|
-
:param annotations: 附加信息。
|
|
47
|
-
:type annotations: object
|
|
48
|
-
:param id: 环境id。
|
|
49
|
-
:type id: str
|
|
50
|
-
:param name: 环境名称。
|
|
51
|
-
:type name: str
|
|
52
|
-
:param status: 环境状态。
|
|
53
|
-
:type status: str
|
|
54
|
-
:param type: 环境类型。
|
|
55
|
-
:type type: str
|
|
56
|
-
:param job_id: 任务id。
|
|
57
|
-
:type job_id: str
|
|
58
|
-
:param created_at: 创建时间。
|
|
59
|
-
:type created_at: str
|
|
60
|
-
:param updated_at: 更新时间。
|
|
61
|
-
:type updated_at: str
|
|
62
|
-
"""
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
self._annotations = None
|
|
67
|
-
self._id = None
|
|
68
|
-
self._name = None
|
|
69
|
-
self._status = None
|
|
70
|
-
self._type = None
|
|
71
|
-
self._job_id = None
|
|
72
|
-
self._created_at = None
|
|
73
|
-
self._updated_at = None
|
|
74
|
-
self.discriminator = None
|
|
75
|
-
|
|
76
|
-
if annotations is not None:
|
|
77
|
-
self.annotations = annotations
|
|
78
|
-
if id is not None:
|
|
79
|
-
self.id = id
|
|
80
|
-
if name is not None:
|
|
81
|
-
self.name = name
|
|
82
|
-
if status is not None:
|
|
83
|
-
self.status = status
|
|
84
|
-
if type is not None:
|
|
85
|
-
self.type = type
|
|
86
|
-
if job_id is not None:
|
|
87
|
-
self.job_id = job_id
|
|
88
|
-
if created_at is not None:
|
|
89
|
-
self.created_at = created_at
|
|
90
|
-
if updated_at is not None:
|
|
91
|
-
self.updated_at = updated_at
|
|
92
|
-
|
|
93
|
-
@property
|
|
94
|
-
def annotations(self):
|
|
95
|
-
"""Gets the annotations of this EnvironmentMetadata.
|
|
96
|
-
|
|
97
|
-
附加信息。
|
|
98
|
-
|
|
99
|
-
:return: The annotations of this EnvironmentMetadata.
|
|
100
|
-
:rtype: object
|
|
101
|
-
"""
|
|
102
|
-
return self._annotations
|
|
103
|
-
|
|
104
|
-
@annotations.setter
|
|
105
|
-
def annotations(self, annotations):
|
|
106
|
-
"""Sets the annotations of this EnvironmentMetadata.
|
|
107
|
-
|
|
108
|
-
附加信息。
|
|
109
|
-
|
|
110
|
-
:param annotations: The annotations of this EnvironmentMetadata.
|
|
111
|
-
:type annotations: object
|
|
112
|
-
"""
|
|
113
|
-
self._annotations = annotations
|
|
114
|
-
|
|
115
|
-
@property
|
|
116
|
-
def id(self):
|
|
117
|
-
"""Gets the id of this EnvironmentMetadata.
|
|
118
|
-
|
|
119
|
-
环境id。
|
|
120
|
-
|
|
121
|
-
:return: The id of this EnvironmentMetadata.
|
|
122
|
-
:rtype: str
|
|
123
|
-
"""
|
|
124
|
-
return self._id
|
|
125
|
-
|
|
126
|
-
@id.setter
|
|
127
|
-
def id(self, id):
|
|
128
|
-
"""Sets the id of this EnvironmentMetadata.
|
|
129
|
-
|
|
130
|
-
环境id。
|
|
131
|
-
|
|
132
|
-
:param id: The id of this EnvironmentMetadata.
|
|
133
|
-
:type id: str
|
|
134
|
-
"""
|
|
135
|
-
self._id = id
|
|
136
|
-
|
|
137
|
-
@property
|
|
138
|
-
def name(self):
|
|
139
|
-
"""Gets the name of this EnvironmentMetadata.
|
|
140
|
-
|
|
141
|
-
环境名称。
|
|
142
|
-
|
|
143
|
-
:return: The name of this EnvironmentMetadata.
|
|
144
|
-
:rtype: str
|
|
145
|
-
"""
|
|
146
|
-
return self._name
|
|
147
|
-
|
|
148
|
-
@name.setter
|
|
149
|
-
def name(self, name):
|
|
150
|
-
"""Sets the name of this EnvironmentMetadata.
|
|
151
|
-
|
|
152
|
-
环境名称。
|
|
153
|
-
|
|
154
|
-
:param name: The name of this EnvironmentMetadata.
|
|
155
|
-
:type name: str
|
|
156
|
-
"""
|
|
157
|
-
self._name = name
|
|
158
|
-
|
|
159
|
-
@property
|
|
160
|
-
def status(self):
|
|
161
|
-
"""Gets the status of this EnvironmentMetadata.
|
|
162
|
-
|
|
163
|
-
环境状态。
|
|
164
|
-
|
|
165
|
-
:return: The status of this EnvironmentMetadata.
|
|
166
|
-
:rtype: str
|
|
167
|
-
"""
|
|
168
|
-
return self._status
|
|
169
|
-
|
|
170
|
-
@status.setter
|
|
171
|
-
def status(self, status):
|
|
172
|
-
"""Sets the status of this EnvironmentMetadata.
|
|
173
|
-
|
|
174
|
-
环境状态。
|
|
175
|
-
|
|
176
|
-
:param status: The status of this EnvironmentMetadata.
|
|
177
|
-
:type status: str
|
|
178
|
-
"""
|
|
179
|
-
self._status = status
|
|
180
|
-
|
|
181
|
-
@property
|
|
182
|
-
def type(self):
|
|
183
|
-
"""Gets the type of this EnvironmentMetadata.
|
|
184
|
-
|
|
185
|
-
环境类型。
|
|
186
|
-
|
|
187
|
-
:return: The type of this EnvironmentMetadata.
|
|
188
|
-
:rtype: str
|
|
189
|
-
"""
|
|
190
|
-
return self._type
|
|
191
|
-
|
|
192
|
-
@type.setter
|
|
193
|
-
def type(self, type):
|
|
194
|
-
"""Sets the type of this EnvironmentMetadata.
|
|
195
|
-
|
|
196
|
-
环境类型。
|
|
197
|
-
|
|
198
|
-
:param type: The type of this EnvironmentMetadata.
|
|
199
|
-
:type type: str
|
|
200
|
-
"""
|
|
201
|
-
self._type = type
|
|
202
|
-
|
|
203
|
-
@property
|
|
204
|
-
def job_id(self):
|
|
205
|
-
"""Gets the job_id of this EnvironmentMetadata.
|
|
206
|
-
|
|
207
|
-
任务id。
|
|
208
|
-
|
|
209
|
-
:return: The job_id of this EnvironmentMetadata.
|
|
210
|
-
:rtype: str
|
|
211
|
-
"""
|
|
212
|
-
return self._job_id
|
|
213
|
-
|
|
214
|
-
@job_id.setter
|
|
215
|
-
def job_id(self, job_id):
|
|
216
|
-
"""Sets the job_id of this EnvironmentMetadata.
|
|
217
|
-
|
|
218
|
-
任务id。
|
|
219
|
-
|
|
220
|
-
:param job_id: The job_id of this EnvironmentMetadata.
|
|
221
|
-
:type job_id: str
|
|
222
|
-
"""
|
|
223
|
-
self._job_id = job_id
|
|
224
|
-
|
|
225
|
-
@property
|
|
226
|
-
def created_at(self):
|
|
227
|
-
"""Gets the created_at of this EnvironmentMetadata.
|
|
228
|
-
|
|
229
|
-
创建时间。
|
|
230
|
-
|
|
231
|
-
:return: The created_at of this EnvironmentMetadata.
|
|
232
|
-
:rtype: str
|
|
233
|
-
"""
|
|
234
|
-
return self._created_at
|
|
235
|
-
|
|
236
|
-
@created_at.setter
|
|
237
|
-
def created_at(self, created_at):
|
|
238
|
-
"""Sets the created_at of this EnvironmentMetadata.
|
|
239
|
-
|
|
240
|
-
创建时间。
|
|
241
|
-
|
|
242
|
-
:param created_at: The created_at of this EnvironmentMetadata.
|
|
243
|
-
:type created_at: str
|
|
244
|
-
"""
|
|
245
|
-
self._created_at = created_at
|
|
246
|
-
|
|
247
|
-
@property
|
|
248
|
-
def updated_at(self):
|
|
249
|
-
"""Gets the updated_at of this EnvironmentMetadata.
|
|
250
|
-
|
|
251
|
-
更新时间。
|
|
252
|
-
|
|
253
|
-
:return: The updated_at of this EnvironmentMetadata.
|
|
254
|
-
:rtype: str
|
|
255
|
-
"""
|
|
256
|
-
return self._updated_at
|
|
257
|
-
|
|
258
|
-
@updated_at.setter
|
|
259
|
-
def updated_at(self, updated_at):
|
|
260
|
-
"""Sets the updated_at of this EnvironmentMetadata.
|
|
261
|
-
|
|
262
|
-
更新时间。
|
|
263
|
-
|
|
264
|
-
:param updated_at: The updated_at of this EnvironmentMetadata.
|
|
265
|
-
:type updated_at: str
|
|
266
|
-
"""
|
|
267
|
-
self._updated_at = updated_at
|
|
268
|
-
|
|
269
|
-
def to_dict(self):
|
|
270
|
-
"""Returns the model properties as a dict"""
|
|
271
|
-
result = {}
|
|
272
|
-
|
|
273
|
-
for attr, _ in six.iteritems(self.openapi_types):
|
|
274
|
-
value = getattr(self, attr)
|
|
275
|
-
if isinstance(value, list):
|
|
276
|
-
result[attr] = list(map(
|
|
277
|
-
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
278
|
-
value
|
|
279
|
-
))
|
|
280
|
-
elif hasattr(value, "to_dict"):
|
|
281
|
-
result[attr] = value.to_dict()
|
|
282
|
-
elif isinstance(value, dict):
|
|
283
|
-
result[attr] = dict(map(
|
|
284
|
-
lambda item: (item[0], item[1].to_dict())
|
|
285
|
-
if hasattr(item[1], "to_dict") else item,
|
|
286
|
-
value.items()
|
|
287
|
-
))
|
|
288
|
-
else:
|
|
289
|
-
if attr in self.sensitive_list:
|
|
290
|
-
result[attr] = "****"
|
|
291
|
-
else:
|
|
292
|
-
result[attr] = value
|
|
293
|
-
|
|
294
|
-
return result
|
|
295
|
-
|
|
296
|
-
def to_str(self):
|
|
297
|
-
"""Returns the string representation of the model"""
|
|
298
|
-
import simplejson as json
|
|
299
|
-
if six.PY2:
|
|
300
|
-
import sys
|
|
301
|
-
reload(sys)
|
|
302
|
-
sys.setdefaultencoding("utf-8")
|
|
303
|
-
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
304
|
-
|
|
305
|
-
def __repr__(self):
|
|
306
|
-
"""For `print`"""
|
|
307
|
-
return self.to_str()
|
|
308
|
-
|
|
309
|
-
def __eq__(self, other):
|
|
310
|
-
"""Returns true if both objects are equal"""
|
|
311
|
-
if not isinstance(other, EnvironmentMetadata):
|
|
312
|
-
return False
|
|
313
|
-
|
|
314
|
-
return self.__dict__ == other.__dict__
|
|
315
|
-
|
|
316
|
-
def __ne__(self, other):
|
|
317
|
-
"""Returns true if both objects are not equal"""
|
|
318
|
-
return not self == other
|
|
@@ -1,317 +0,0 @@
|
|
|
1
|
-
# coding: utf-8
|
|
2
|
-
|
|
3
|
-
import six
|
|
4
|
-
|
|
5
|
-
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
class Metadata:
|
|
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
|
-
'annotations': 'dict(str, str)',
|
|
21
|
-
'created_at': 'datetime',
|
|
22
|
-
'id': 'str',
|
|
23
|
-
'jod_id': 'str',
|
|
24
|
-
'name': 'str',
|
|
25
|
-
'status': 'str',
|
|
26
|
-
'type': 'str',
|
|
27
|
-
'updated_at': 'datetime'
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
attribute_map = {
|
|
31
|
-
'annotations': 'annotations',
|
|
32
|
-
'created_at': 'created_at',
|
|
33
|
-
'id': 'id',
|
|
34
|
-
'jod_id': 'jod_id',
|
|
35
|
-
'name': 'name',
|
|
36
|
-
'status': 'status',
|
|
37
|
-
'type': 'type',
|
|
38
|
-
'updated_at': 'updated_at'
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
def __init__(self, annotations=None, created_at=None, id=None, jod_id=None, name=None, status=None, type=None, updated_at=None):
|
|
42
|
-
"""Metadata
|
|
43
|
-
|
|
44
|
-
The model defined in huaweicloud sdk
|
|
45
|
-
|
|
46
|
-
:param annotations: 属性信息。
|
|
47
|
-
:type annotations: dict(str, str)
|
|
48
|
-
:param created_at: 创建时间。
|
|
49
|
-
:type created_at: datetime
|
|
50
|
-
:param id: 组件id。
|
|
51
|
-
:type id: str
|
|
52
|
-
:param jod_id: 任务id。
|
|
53
|
-
:type jod_id: str
|
|
54
|
-
:param name: 名称。
|
|
55
|
-
:type name: str
|
|
56
|
-
:param status: 状态。
|
|
57
|
-
:type status: str
|
|
58
|
-
:param type: 组件类型。
|
|
59
|
-
:type type: str
|
|
60
|
-
:param updated_at: 更新时间。
|
|
61
|
-
:type updated_at: datetime
|
|
62
|
-
"""
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
self._annotations = None
|
|
67
|
-
self._created_at = None
|
|
68
|
-
self._id = None
|
|
69
|
-
self._jod_id = None
|
|
70
|
-
self._name = None
|
|
71
|
-
self._status = None
|
|
72
|
-
self._type = None
|
|
73
|
-
self._updated_at = None
|
|
74
|
-
self.discriminator = None
|
|
75
|
-
|
|
76
|
-
if annotations is not None:
|
|
77
|
-
self.annotations = annotations
|
|
78
|
-
if created_at is not None:
|
|
79
|
-
self.created_at = created_at
|
|
80
|
-
if id is not None:
|
|
81
|
-
self.id = id
|
|
82
|
-
if jod_id is not None:
|
|
83
|
-
self.jod_id = jod_id
|
|
84
|
-
self.name = name
|
|
85
|
-
if status is not None:
|
|
86
|
-
self.status = status
|
|
87
|
-
if type is not None:
|
|
88
|
-
self.type = type
|
|
89
|
-
if updated_at is not None:
|
|
90
|
-
self.updated_at = updated_at
|
|
91
|
-
|
|
92
|
-
@property
|
|
93
|
-
def annotations(self):
|
|
94
|
-
"""Gets the annotations of this Metadata.
|
|
95
|
-
|
|
96
|
-
属性信息。
|
|
97
|
-
|
|
98
|
-
:return: The annotations of this Metadata.
|
|
99
|
-
:rtype: dict(str, str)
|
|
100
|
-
"""
|
|
101
|
-
return self._annotations
|
|
102
|
-
|
|
103
|
-
@annotations.setter
|
|
104
|
-
def annotations(self, annotations):
|
|
105
|
-
"""Sets the annotations of this Metadata.
|
|
106
|
-
|
|
107
|
-
属性信息。
|
|
108
|
-
|
|
109
|
-
:param annotations: The annotations of this Metadata.
|
|
110
|
-
:type annotations: dict(str, str)
|
|
111
|
-
"""
|
|
112
|
-
self._annotations = annotations
|
|
113
|
-
|
|
114
|
-
@property
|
|
115
|
-
def created_at(self):
|
|
116
|
-
"""Gets the created_at of this Metadata.
|
|
117
|
-
|
|
118
|
-
创建时间。
|
|
119
|
-
|
|
120
|
-
:return: The created_at of this Metadata.
|
|
121
|
-
:rtype: datetime
|
|
122
|
-
"""
|
|
123
|
-
return self._created_at
|
|
124
|
-
|
|
125
|
-
@created_at.setter
|
|
126
|
-
def created_at(self, created_at):
|
|
127
|
-
"""Sets the created_at of this Metadata.
|
|
128
|
-
|
|
129
|
-
创建时间。
|
|
130
|
-
|
|
131
|
-
:param created_at: The created_at of this Metadata.
|
|
132
|
-
:type created_at: datetime
|
|
133
|
-
"""
|
|
134
|
-
self._created_at = created_at
|
|
135
|
-
|
|
136
|
-
@property
|
|
137
|
-
def id(self):
|
|
138
|
-
"""Gets the id of this Metadata.
|
|
139
|
-
|
|
140
|
-
组件id。
|
|
141
|
-
|
|
142
|
-
:return: The id of this Metadata.
|
|
143
|
-
:rtype: str
|
|
144
|
-
"""
|
|
145
|
-
return self._id
|
|
146
|
-
|
|
147
|
-
@id.setter
|
|
148
|
-
def id(self, id):
|
|
149
|
-
"""Sets the id of this Metadata.
|
|
150
|
-
|
|
151
|
-
组件id。
|
|
152
|
-
|
|
153
|
-
:param id: The id of this Metadata.
|
|
154
|
-
:type id: str
|
|
155
|
-
"""
|
|
156
|
-
self._id = id
|
|
157
|
-
|
|
158
|
-
@property
|
|
159
|
-
def jod_id(self):
|
|
160
|
-
"""Gets the jod_id of this Metadata.
|
|
161
|
-
|
|
162
|
-
任务id。
|
|
163
|
-
|
|
164
|
-
:return: The jod_id of this Metadata.
|
|
165
|
-
:rtype: str
|
|
166
|
-
"""
|
|
167
|
-
return self._jod_id
|
|
168
|
-
|
|
169
|
-
@jod_id.setter
|
|
170
|
-
def jod_id(self, jod_id):
|
|
171
|
-
"""Sets the jod_id of this Metadata.
|
|
172
|
-
|
|
173
|
-
任务id。
|
|
174
|
-
|
|
175
|
-
:param jod_id: The jod_id of this Metadata.
|
|
176
|
-
:type jod_id: str
|
|
177
|
-
"""
|
|
178
|
-
self._jod_id = jod_id
|
|
179
|
-
|
|
180
|
-
@property
|
|
181
|
-
def name(self):
|
|
182
|
-
"""Gets the name of this Metadata.
|
|
183
|
-
|
|
184
|
-
名称。
|
|
185
|
-
|
|
186
|
-
:return: The name of this Metadata.
|
|
187
|
-
:rtype: str
|
|
188
|
-
"""
|
|
189
|
-
return self._name
|
|
190
|
-
|
|
191
|
-
@name.setter
|
|
192
|
-
def name(self, name):
|
|
193
|
-
"""Sets the name of this Metadata.
|
|
194
|
-
|
|
195
|
-
名称。
|
|
196
|
-
|
|
197
|
-
:param name: The name of this Metadata.
|
|
198
|
-
:type name: str
|
|
199
|
-
"""
|
|
200
|
-
self._name = name
|
|
201
|
-
|
|
202
|
-
@property
|
|
203
|
-
def status(self):
|
|
204
|
-
"""Gets the status of this Metadata.
|
|
205
|
-
|
|
206
|
-
状态。
|
|
207
|
-
|
|
208
|
-
:return: The status of this Metadata.
|
|
209
|
-
:rtype: str
|
|
210
|
-
"""
|
|
211
|
-
return self._status
|
|
212
|
-
|
|
213
|
-
@status.setter
|
|
214
|
-
def status(self, status):
|
|
215
|
-
"""Sets the status of this Metadata.
|
|
216
|
-
|
|
217
|
-
状态。
|
|
218
|
-
|
|
219
|
-
:param status: The status of this Metadata.
|
|
220
|
-
:type status: str
|
|
221
|
-
"""
|
|
222
|
-
self._status = status
|
|
223
|
-
|
|
224
|
-
@property
|
|
225
|
-
def type(self):
|
|
226
|
-
"""Gets the type of this Metadata.
|
|
227
|
-
|
|
228
|
-
组件类型。
|
|
229
|
-
|
|
230
|
-
:return: The type of this Metadata.
|
|
231
|
-
:rtype: str
|
|
232
|
-
"""
|
|
233
|
-
return self._type
|
|
234
|
-
|
|
235
|
-
@type.setter
|
|
236
|
-
def type(self, type):
|
|
237
|
-
"""Sets the type of this Metadata.
|
|
238
|
-
|
|
239
|
-
组件类型。
|
|
240
|
-
|
|
241
|
-
:param type: The type of this Metadata.
|
|
242
|
-
:type type: str
|
|
243
|
-
"""
|
|
244
|
-
self._type = type
|
|
245
|
-
|
|
246
|
-
@property
|
|
247
|
-
def updated_at(self):
|
|
248
|
-
"""Gets the updated_at of this Metadata.
|
|
249
|
-
|
|
250
|
-
更新时间。
|
|
251
|
-
|
|
252
|
-
:return: The updated_at of this Metadata.
|
|
253
|
-
:rtype: datetime
|
|
254
|
-
"""
|
|
255
|
-
return self._updated_at
|
|
256
|
-
|
|
257
|
-
@updated_at.setter
|
|
258
|
-
def updated_at(self, updated_at):
|
|
259
|
-
"""Sets the updated_at of this Metadata.
|
|
260
|
-
|
|
261
|
-
更新时间。
|
|
262
|
-
|
|
263
|
-
:param updated_at: The updated_at of this Metadata.
|
|
264
|
-
:type updated_at: datetime
|
|
265
|
-
"""
|
|
266
|
-
self._updated_at = updated_at
|
|
267
|
-
|
|
268
|
-
def to_dict(self):
|
|
269
|
-
"""Returns the model properties as a dict"""
|
|
270
|
-
result = {}
|
|
271
|
-
|
|
272
|
-
for attr, _ in six.iteritems(self.openapi_types):
|
|
273
|
-
value = getattr(self, attr)
|
|
274
|
-
if isinstance(value, list):
|
|
275
|
-
result[attr] = list(map(
|
|
276
|
-
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
277
|
-
value
|
|
278
|
-
))
|
|
279
|
-
elif hasattr(value, "to_dict"):
|
|
280
|
-
result[attr] = value.to_dict()
|
|
281
|
-
elif isinstance(value, dict):
|
|
282
|
-
result[attr] = dict(map(
|
|
283
|
-
lambda item: (item[0], item[1].to_dict())
|
|
284
|
-
if hasattr(item[1], "to_dict") else item,
|
|
285
|
-
value.items()
|
|
286
|
-
))
|
|
287
|
-
else:
|
|
288
|
-
if attr in self.sensitive_list:
|
|
289
|
-
result[attr] = "****"
|
|
290
|
-
else:
|
|
291
|
-
result[attr] = value
|
|
292
|
-
|
|
293
|
-
return result
|
|
294
|
-
|
|
295
|
-
def to_str(self):
|
|
296
|
-
"""Returns the string representation of the model"""
|
|
297
|
-
import simplejson as json
|
|
298
|
-
if six.PY2:
|
|
299
|
-
import sys
|
|
300
|
-
reload(sys)
|
|
301
|
-
sys.setdefaultencoding("utf-8")
|
|
302
|
-
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
303
|
-
|
|
304
|
-
def __repr__(self):
|
|
305
|
-
"""For `print`"""
|
|
306
|
-
return self.to_str()
|
|
307
|
-
|
|
308
|
-
def __eq__(self, other):
|
|
309
|
-
"""Returns true if both objects are equal"""
|
|
310
|
-
if not isinstance(other, Metadata):
|
|
311
|
-
return False
|
|
312
|
-
|
|
313
|
-
return self.__dict__ == other.__dict__
|
|
314
|
-
|
|
315
|
-
def __ne__(self, other):
|
|
316
|
-
"""Returns true if both objects are not equal"""
|
|
317
|
-
return not self == other
|