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
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
import six
|
|
4
|
+
|
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class CertReq:
|
|
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
|
+
'api_version': 'str',
|
|
21
|
+
'kind': 'str',
|
|
22
|
+
'metadata': 'CreateMetaCert',
|
|
23
|
+
'spec': 'CreateSpecCert'
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
attribute_map = {
|
|
27
|
+
'api_version': 'api_version',
|
|
28
|
+
'kind': 'kind',
|
|
29
|
+
'metadata': 'metadata',
|
|
30
|
+
'spec': 'spec'
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
def __init__(self, api_version=None, kind=None, metadata=None, spec=None):
|
|
34
|
+
"""CertReq
|
|
35
|
+
|
|
36
|
+
The model defined in huaweicloud sdk
|
|
37
|
+
|
|
38
|
+
:param api_version: API版本。
|
|
39
|
+
:type api_version: str
|
|
40
|
+
:param kind: API类型,固定值“Certificate”,该值不可修改。
|
|
41
|
+
:type kind: str
|
|
42
|
+
:param metadata:
|
|
43
|
+
:type metadata: :class:`huaweicloudsdkcae.v1.CreateMetaCert`
|
|
44
|
+
:param spec:
|
|
45
|
+
:type spec: :class:`huaweicloudsdkcae.v1.CreateSpecCert`
|
|
46
|
+
"""
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
self._api_version = None
|
|
51
|
+
self._kind = None
|
|
52
|
+
self._metadata = None
|
|
53
|
+
self._spec = None
|
|
54
|
+
self.discriminator = None
|
|
55
|
+
|
|
56
|
+
self.api_version = api_version
|
|
57
|
+
self.kind = kind
|
|
58
|
+
self.metadata = metadata
|
|
59
|
+
self.spec = spec
|
|
60
|
+
|
|
61
|
+
@property
|
|
62
|
+
def api_version(self):
|
|
63
|
+
"""Gets the api_version of this CertReq.
|
|
64
|
+
|
|
65
|
+
API版本。
|
|
66
|
+
|
|
67
|
+
:return: The api_version of this CertReq.
|
|
68
|
+
:rtype: str
|
|
69
|
+
"""
|
|
70
|
+
return self._api_version
|
|
71
|
+
|
|
72
|
+
@api_version.setter
|
|
73
|
+
def api_version(self, api_version):
|
|
74
|
+
"""Sets the api_version of this CertReq.
|
|
75
|
+
|
|
76
|
+
API版本。
|
|
77
|
+
|
|
78
|
+
:param api_version: The api_version of this CertReq.
|
|
79
|
+
:type api_version: str
|
|
80
|
+
"""
|
|
81
|
+
self._api_version = api_version
|
|
82
|
+
|
|
83
|
+
@property
|
|
84
|
+
def kind(self):
|
|
85
|
+
"""Gets the kind of this CertReq.
|
|
86
|
+
|
|
87
|
+
API类型,固定值“Certificate”,该值不可修改。
|
|
88
|
+
|
|
89
|
+
:return: The kind of this CertReq.
|
|
90
|
+
:rtype: str
|
|
91
|
+
"""
|
|
92
|
+
return self._kind
|
|
93
|
+
|
|
94
|
+
@kind.setter
|
|
95
|
+
def kind(self, kind):
|
|
96
|
+
"""Sets the kind of this CertReq.
|
|
97
|
+
|
|
98
|
+
API类型,固定值“Certificate”,该值不可修改。
|
|
99
|
+
|
|
100
|
+
:param kind: The kind of this CertReq.
|
|
101
|
+
:type kind: str
|
|
102
|
+
"""
|
|
103
|
+
self._kind = kind
|
|
104
|
+
|
|
105
|
+
@property
|
|
106
|
+
def metadata(self):
|
|
107
|
+
"""Gets the metadata of this CertReq.
|
|
108
|
+
|
|
109
|
+
:return: The metadata of this CertReq.
|
|
110
|
+
:rtype: :class:`huaweicloudsdkcae.v1.CreateMetaCert`
|
|
111
|
+
"""
|
|
112
|
+
return self._metadata
|
|
113
|
+
|
|
114
|
+
@metadata.setter
|
|
115
|
+
def metadata(self, metadata):
|
|
116
|
+
"""Sets the metadata of this CertReq.
|
|
117
|
+
|
|
118
|
+
:param metadata: The metadata of this CertReq.
|
|
119
|
+
:type metadata: :class:`huaweicloudsdkcae.v1.CreateMetaCert`
|
|
120
|
+
"""
|
|
121
|
+
self._metadata = metadata
|
|
122
|
+
|
|
123
|
+
@property
|
|
124
|
+
def spec(self):
|
|
125
|
+
"""Gets the spec of this CertReq.
|
|
126
|
+
|
|
127
|
+
:return: The spec of this CertReq.
|
|
128
|
+
:rtype: :class:`huaweicloudsdkcae.v1.CreateSpecCert`
|
|
129
|
+
"""
|
|
130
|
+
return self._spec
|
|
131
|
+
|
|
132
|
+
@spec.setter
|
|
133
|
+
def spec(self, spec):
|
|
134
|
+
"""Sets the spec of this CertReq.
|
|
135
|
+
|
|
136
|
+
:param spec: The spec of this CertReq.
|
|
137
|
+
:type spec: :class:`huaweicloudsdkcae.v1.CreateSpecCert`
|
|
138
|
+
"""
|
|
139
|
+
self._spec = spec
|
|
140
|
+
|
|
141
|
+
def to_dict(self):
|
|
142
|
+
"""Returns the model properties as a dict"""
|
|
143
|
+
result = {}
|
|
144
|
+
|
|
145
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
146
|
+
value = getattr(self, attr)
|
|
147
|
+
if isinstance(value, list):
|
|
148
|
+
result[attr] = list(map(
|
|
149
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
150
|
+
value
|
|
151
|
+
))
|
|
152
|
+
elif hasattr(value, "to_dict"):
|
|
153
|
+
result[attr] = value.to_dict()
|
|
154
|
+
elif isinstance(value, dict):
|
|
155
|
+
result[attr] = dict(map(
|
|
156
|
+
lambda item: (item[0], item[1].to_dict())
|
|
157
|
+
if hasattr(item[1], "to_dict") else item,
|
|
158
|
+
value.items()
|
|
159
|
+
))
|
|
160
|
+
else:
|
|
161
|
+
if attr in self.sensitive_list:
|
|
162
|
+
result[attr] = "****"
|
|
163
|
+
else:
|
|
164
|
+
result[attr] = value
|
|
165
|
+
|
|
166
|
+
return result
|
|
167
|
+
|
|
168
|
+
def to_str(self):
|
|
169
|
+
"""Returns the string representation of the model"""
|
|
170
|
+
import simplejson as json
|
|
171
|
+
if six.PY2:
|
|
172
|
+
import sys
|
|
173
|
+
reload(sys)
|
|
174
|
+
sys.setdefaultencoding("utf-8")
|
|
175
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
176
|
+
|
|
177
|
+
def __repr__(self):
|
|
178
|
+
"""For `print`"""
|
|
179
|
+
return self.to_str()
|
|
180
|
+
|
|
181
|
+
def __eq__(self, other):
|
|
182
|
+
"""Returns true if both objects are equal"""
|
|
183
|
+
if not isinstance(other, CertReq):
|
|
184
|
+
return False
|
|
185
|
+
|
|
186
|
+
return self.__dict__ == other.__dict__
|
|
187
|
+
|
|
188
|
+
def __ne__(self, other):
|
|
189
|
+
"""Returns true if both objects are not equal"""
|
|
190
|
+
return not self == other
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
import six
|
|
4
|
+
|
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class ComponentExecutionResult:
|
|
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
|
+
'component_name': 'str',
|
|
21
|
+
'component_id': 'str',
|
|
22
|
+
'status': 'str',
|
|
23
|
+
'error_message': 'str'
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
attribute_map = {
|
|
27
|
+
'component_name': 'component_name',
|
|
28
|
+
'component_id': 'component_id',
|
|
29
|
+
'status': 'status',
|
|
30
|
+
'error_message': 'error_message'
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
def __init__(self, component_name=None, component_id=None, status=None, error_message=None):
|
|
34
|
+
"""ComponentExecutionResult
|
|
35
|
+
|
|
36
|
+
The model defined in huaweicloud sdk
|
|
37
|
+
|
|
38
|
+
:param component_name: 组件名称。
|
|
39
|
+
:type component_name: str
|
|
40
|
+
:param component_id: 组件ID。
|
|
41
|
+
:type component_id: str
|
|
42
|
+
:param status: 组件执行启停的结果:failed/success。
|
|
43
|
+
:type status: str
|
|
44
|
+
:param error_message: 组件执行启停的错误信息,如果执行结果为成功,则为空。
|
|
45
|
+
:type error_message: str
|
|
46
|
+
"""
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
self._component_name = None
|
|
51
|
+
self._component_id = None
|
|
52
|
+
self._status = None
|
|
53
|
+
self._error_message = None
|
|
54
|
+
self.discriminator = None
|
|
55
|
+
|
|
56
|
+
if component_name is not None:
|
|
57
|
+
self.component_name = component_name
|
|
58
|
+
if component_id is not None:
|
|
59
|
+
self.component_id = component_id
|
|
60
|
+
if status is not None:
|
|
61
|
+
self.status = status
|
|
62
|
+
if error_message is not None:
|
|
63
|
+
self.error_message = error_message
|
|
64
|
+
|
|
65
|
+
@property
|
|
66
|
+
def component_name(self):
|
|
67
|
+
"""Gets the component_name of this ComponentExecutionResult.
|
|
68
|
+
|
|
69
|
+
组件名称。
|
|
70
|
+
|
|
71
|
+
:return: The component_name of this ComponentExecutionResult.
|
|
72
|
+
:rtype: str
|
|
73
|
+
"""
|
|
74
|
+
return self._component_name
|
|
75
|
+
|
|
76
|
+
@component_name.setter
|
|
77
|
+
def component_name(self, component_name):
|
|
78
|
+
"""Sets the component_name of this ComponentExecutionResult.
|
|
79
|
+
|
|
80
|
+
组件名称。
|
|
81
|
+
|
|
82
|
+
:param component_name: The component_name of this ComponentExecutionResult.
|
|
83
|
+
:type component_name: str
|
|
84
|
+
"""
|
|
85
|
+
self._component_name = component_name
|
|
86
|
+
|
|
87
|
+
@property
|
|
88
|
+
def component_id(self):
|
|
89
|
+
"""Gets the component_id of this ComponentExecutionResult.
|
|
90
|
+
|
|
91
|
+
组件ID。
|
|
92
|
+
|
|
93
|
+
:return: The component_id of this ComponentExecutionResult.
|
|
94
|
+
:rtype: str
|
|
95
|
+
"""
|
|
96
|
+
return self._component_id
|
|
97
|
+
|
|
98
|
+
@component_id.setter
|
|
99
|
+
def component_id(self, component_id):
|
|
100
|
+
"""Sets the component_id of this ComponentExecutionResult.
|
|
101
|
+
|
|
102
|
+
组件ID。
|
|
103
|
+
|
|
104
|
+
:param component_id: The component_id of this ComponentExecutionResult.
|
|
105
|
+
:type component_id: str
|
|
106
|
+
"""
|
|
107
|
+
self._component_id = component_id
|
|
108
|
+
|
|
109
|
+
@property
|
|
110
|
+
def status(self):
|
|
111
|
+
"""Gets the status of this ComponentExecutionResult.
|
|
112
|
+
|
|
113
|
+
组件执行启停的结果:failed/success。
|
|
114
|
+
|
|
115
|
+
:return: The status of this ComponentExecutionResult.
|
|
116
|
+
:rtype: str
|
|
117
|
+
"""
|
|
118
|
+
return self._status
|
|
119
|
+
|
|
120
|
+
@status.setter
|
|
121
|
+
def status(self, status):
|
|
122
|
+
"""Sets the status of this ComponentExecutionResult.
|
|
123
|
+
|
|
124
|
+
组件执行启停的结果:failed/success。
|
|
125
|
+
|
|
126
|
+
:param status: The status of this ComponentExecutionResult.
|
|
127
|
+
:type status: str
|
|
128
|
+
"""
|
|
129
|
+
self._status = status
|
|
130
|
+
|
|
131
|
+
@property
|
|
132
|
+
def error_message(self):
|
|
133
|
+
"""Gets the error_message of this ComponentExecutionResult.
|
|
134
|
+
|
|
135
|
+
组件执行启停的错误信息,如果执行结果为成功,则为空。
|
|
136
|
+
|
|
137
|
+
:return: The error_message of this ComponentExecutionResult.
|
|
138
|
+
:rtype: str
|
|
139
|
+
"""
|
|
140
|
+
return self._error_message
|
|
141
|
+
|
|
142
|
+
@error_message.setter
|
|
143
|
+
def error_message(self, error_message):
|
|
144
|
+
"""Sets the error_message of this ComponentExecutionResult.
|
|
145
|
+
|
|
146
|
+
组件执行启停的错误信息,如果执行结果为成功,则为空。
|
|
147
|
+
|
|
148
|
+
:param error_message: The error_message of this ComponentExecutionResult.
|
|
149
|
+
:type error_message: str
|
|
150
|
+
"""
|
|
151
|
+
self._error_message = error_message
|
|
152
|
+
|
|
153
|
+
def to_dict(self):
|
|
154
|
+
"""Returns the model properties as a dict"""
|
|
155
|
+
result = {}
|
|
156
|
+
|
|
157
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
158
|
+
value = getattr(self, attr)
|
|
159
|
+
if isinstance(value, list):
|
|
160
|
+
result[attr] = list(map(
|
|
161
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
162
|
+
value
|
|
163
|
+
))
|
|
164
|
+
elif hasattr(value, "to_dict"):
|
|
165
|
+
result[attr] = value.to_dict()
|
|
166
|
+
elif isinstance(value, dict):
|
|
167
|
+
result[attr] = dict(map(
|
|
168
|
+
lambda item: (item[0], item[1].to_dict())
|
|
169
|
+
if hasattr(item[1], "to_dict") else item,
|
|
170
|
+
value.items()
|
|
171
|
+
))
|
|
172
|
+
else:
|
|
173
|
+
if attr in self.sensitive_list:
|
|
174
|
+
result[attr] = "****"
|
|
175
|
+
else:
|
|
176
|
+
result[attr] = value
|
|
177
|
+
|
|
178
|
+
return result
|
|
179
|
+
|
|
180
|
+
def to_str(self):
|
|
181
|
+
"""Returns the string representation of the model"""
|
|
182
|
+
import simplejson as json
|
|
183
|
+
if six.PY2:
|
|
184
|
+
import sys
|
|
185
|
+
reload(sys)
|
|
186
|
+
sys.setdefaultencoding("utf-8")
|
|
187
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
188
|
+
|
|
189
|
+
def __repr__(self):
|
|
190
|
+
"""For `print`"""
|
|
191
|
+
return self.to_str()
|
|
192
|
+
|
|
193
|
+
def __eq__(self, other):
|
|
194
|
+
"""Returns true if both objects are equal"""
|
|
195
|
+
if not isinstance(other, ComponentExecutionResult):
|
|
196
|
+
return False
|
|
197
|
+
|
|
198
|
+
return self.__dict__ == other.__dict__
|
|
199
|
+
|
|
200
|
+
def __ne__(self, other):
|
|
201
|
+
"""Returns true if both objects are not equal"""
|
|
202
|
+
return not self == other
|
|
@@ -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 ComponentInfo:
|
|
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
|
+
'component_id': 'str',
|
|
21
|
+
'component_name': 'str'
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
attribute_map = {
|
|
25
|
+
'component_id': 'component_id',
|
|
26
|
+
'component_name': 'component_name'
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
def __init__(self, component_id=None, component_name=None):
|
|
30
|
+
"""ComponentInfo
|
|
31
|
+
|
|
32
|
+
The model defined in huaweicloud sdk
|
|
33
|
+
|
|
34
|
+
:param component_id: 组件ID。
|
|
35
|
+
:type component_id: str
|
|
36
|
+
:param component_name: 组件名称。
|
|
37
|
+
:type component_name: str
|
|
38
|
+
"""
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
self._component_id = None
|
|
43
|
+
self._component_name = None
|
|
44
|
+
self.discriminator = None
|
|
45
|
+
|
|
46
|
+
if component_id is not None:
|
|
47
|
+
self.component_id = component_id
|
|
48
|
+
if component_name is not None:
|
|
49
|
+
self.component_name = component_name
|
|
50
|
+
|
|
51
|
+
@property
|
|
52
|
+
def component_id(self):
|
|
53
|
+
"""Gets the component_id of this ComponentInfo.
|
|
54
|
+
|
|
55
|
+
组件ID。
|
|
56
|
+
|
|
57
|
+
:return: The component_id of this ComponentInfo.
|
|
58
|
+
:rtype: str
|
|
59
|
+
"""
|
|
60
|
+
return self._component_id
|
|
61
|
+
|
|
62
|
+
@component_id.setter
|
|
63
|
+
def component_id(self, component_id):
|
|
64
|
+
"""Sets the component_id of this ComponentInfo.
|
|
65
|
+
|
|
66
|
+
组件ID。
|
|
67
|
+
|
|
68
|
+
:param component_id: The component_id of this ComponentInfo.
|
|
69
|
+
:type component_id: str
|
|
70
|
+
"""
|
|
71
|
+
self._component_id = component_id
|
|
72
|
+
|
|
73
|
+
@property
|
|
74
|
+
def component_name(self):
|
|
75
|
+
"""Gets the component_name of this ComponentInfo.
|
|
76
|
+
|
|
77
|
+
组件名称。
|
|
78
|
+
|
|
79
|
+
:return: The component_name of this ComponentInfo.
|
|
80
|
+
:rtype: str
|
|
81
|
+
"""
|
|
82
|
+
return self._component_name
|
|
83
|
+
|
|
84
|
+
@component_name.setter
|
|
85
|
+
def component_name(self, component_name):
|
|
86
|
+
"""Sets the component_name of this ComponentInfo.
|
|
87
|
+
|
|
88
|
+
组件名称。
|
|
89
|
+
|
|
90
|
+
:param component_name: The component_name of this ComponentInfo.
|
|
91
|
+
:type component_name: str
|
|
92
|
+
"""
|
|
93
|
+
self._component_name = component_name
|
|
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, ComponentInfo):
|
|
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
|
|
@@ -19,32 +19,36 @@ class ComponentItem:
|
|
|
19
19
|
openapi_types = {
|
|
20
20
|
'id': 'str',
|
|
21
21
|
'name': 'str',
|
|
22
|
-
'status': 'str',
|
|
23
22
|
'annotations': 'dict(str, str)',
|
|
23
|
+
'created_at': 'datetime',
|
|
24
|
+
'updated_at': 'datetime',
|
|
24
25
|
'spec': 'ComponentSpec'
|
|
25
26
|
}
|
|
26
27
|
|
|
27
28
|
attribute_map = {
|
|
28
29
|
'id': 'id',
|
|
29
30
|
'name': 'name',
|
|
30
|
-
'status': 'status',
|
|
31
31
|
'annotations': 'annotations',
|
|
32
|
+
'created_at': 'created_at',
|
|
33
|
+
'updated_at': 'updated_at',
|
|
32
34
|
'spec': 'spec'
|
|
33
35
|
}
|
|
34
36
|
|
|
35
|
-
def __init__(self, id=None, name=None,
|
|
37
|
+
def __init__(self, id=None, name=None, annotations=None, created_at=None, updated_at=None, spec=None):
|
|
36
38
|
"""ComponentItem
|
|
37
39
|
|
|
38
40
|
The model defined in huaweicloud sdk
|
|
39
41
|
|
|
40
|
-
:param id: 组件
|
|
42
|
+
:param id: 组件ID。
|
|
41
43
|
:type id: str
|
|
42
44
|
:param name: 组件名称。
|
|
43
45
|
:type name: str
|
|
44
|
-
:param status: 组件状态。
|
|
45
|
-
:type status: str
|
|
46
46
|
:param annotations: 资源信息。
|
|
47
47
|
:type annotations: dict(str, str)
|
|
48
|
+
:param created_at: 创建时间。
|
|
49
|
+
:type created_at: datetime
|
|
50
|
+
:param updated_at: 更新时间。
|
|
51
|
+
:type updated_at: datetime
|
|
48
52
|
:param spec:
|
|
49
53
|
:type spec: :class:`huaweicloudsdkcae.v1.ComponentSpec`
|
|
50
54
|
"""
|
|
@@ -53,8 +57,9 @@ class ComponentItem:
|
|
|
53
57
|
|
|
54
58
|
self._id = None
|
|
55
59
|
self._name = None
|
|
56
|
-
self._status = None
|
|
57
60
|
self._annotations = None
|
|
61
|
+
self._created_at = None
|
|
62
|
+
self._updated_at = None
|
|
58
63
|
self._spec = None
|
|
59
64
|
self.discriminator = None
|
|
60
65
|
|
|
@@ -62,10 +67,12 @@ class ComponentItem:
|
|
|
62
67
|
self.id = id
|
|
63
68
|
if name is not None:
|
|
64
69
|
self.name = name
|
|
65
|
-
if status is not None:
|
|
66
|
-
self.status = status
|
|
67
70
|
if annotations is not None:
|
|
68
71
|
self.annotations = annotations
|
|
72
|
+
if created_at is not None:
|
|
73
|
+
self.created_at = created_at
|
|
74
|
+
if updated_at is not None:
|
|
75
|
+
self.updated_at = updated_at
|
|
69
76
|
if spec is not None:
|
|
70
77
|
self.spec = spec
|
|
71
78
|
|
|
@@ -73,7 +80,7 @@ class ComponentItem:
|
|
|
73
80
|
def id(self):
|
|
74
81
|
"""Gets the id of this ComponentItem.
|
|
75
82
|
|
|
76
|
-
组件
|
|
83
|
+
组件ID。
|
|
77
84
|
|
|
78
85
|
:return: The id of this ComponentItem.
|
|
79
86
|
:rtype: str
|
|
@@ -84,7 +91,7 @@ class ComponentItem:
|
|
|
84
91
|
def id(self, id):
|
|
85
92
|
"""Sets the id of this ComponentItem.
|
|
86
93
|
|
|
87
|
-
组件
|
|
94
|
+
组件ID。
|
|
88
95
|
|
|
89
96
|
:param id: The id of this ComponentItem.
|
|
90
97
|
:type id: str
|
|
@@ -113,28 +120,6 @@ class ComponentItem:
|
|
|
113
120
|
"""
|
|
114
121
|
self._name = name
|
|
115
122
|
|
|
116
|
-
@property
|
|
117
|
-
def status(self):
|
|
118
|
-
"""Gets the status of this ComponentItem.
|
|
119
|
-
|
|
120
|
-
组件状态。
|
|
121
|
-
|
|
122
|
-
:return: The status of this ComponentItem.
|
|
123
|
-
:rtype: str
|
|
124
|
-
"""
|
|
125
|
-
return self._status
|
|
126
|
-
|
|
127
|
-
@status.setter
|
|
128
|
-
def status(self, status):
|
|
129
|
-
"""Sets the status of this ComponentItem.
|
|
130
|
-
|
|
131
|
-
组件状态。
|
|
132
|
-
|
|
133
|
-
:param status: The status of this ComponentItem.
|
|
134
|
-
:type status: str
|
|
135
|
-
"""
|
|
136
|
-
self._status = status
|
|
137
|
-
|
|
138
123
|
@property
|
|
139
124
|
def annotations(self):
|
|
140
125
|
"""Gets the annotations of this ComponentItem.
|
|
@@ -157,6 +142,50 @@ class ComponentItem:
|
|
|
157
142
|
"""
|
|
158
143
|
self._annotations = annotations
|
|
159
144
|
|
|
145
|
+
@property
|
|
146
|
+
def created_at(self):
|
|
147
|
+
"""Gets the created_at of this ComponentItem.
|
|
148
|
+
|
|
149
|
+
创建时间。
|
|
150
|
+
|
|
151
|
+
:return: The created_at of this ComponentItem.
|
|
152
|
+
:rtype: datetime
|
|
153
|
+
"""
|
|
154
|
+
return self._created_at
|
|
155
|
+
|
|
156
|
+
@created_at.setter
|
|
157
|
+
def created_at(self, created_at):
|
|
158
|
+
"""Sets the created_at of this ComponentItem.
|
|
159
|
+
|
|
160
|
+
创建时间。
|
|
161
|
+
|
|
162
|
+
:param created_at: The created_at of this ComponentItem.
|
|
163
|
+
:type created_at: datetime
|
|
164
|
+
"""
|
|
165
|
+
self._created_at = created_at
|
|
166
|
+
|
|
167
|
+
@property
|
|
168
|
+
def updated_at(self):
|
|
169
|
+
"""Gets the updated_at of this ComponentItem.
|
|
170
|
+
|
|
171
|
+
更新时间。
|
|
172
|
+
|
|
173
|
+
:return: The updated_at of this ComponentItem.
|
|
174
|
+
:rtype: datetime
|
|
175
|
+
"""
|
|
176
|
+
return self._updated_at
|
|
177
|
+
|
|
178
|
+
@updated_at.setter
|
|
179
|
+
def updated_at(self, updated_at):
|
|
180
|
+
"""Sets the updated_at of this ComponentItem.
|
|
181
|
+
|
|
182
|
+
更新时间。
|
|
183
|
+
|
|
184
|
+
:param updated_at: The updated_at of this ComponentItem.
|
|
185
|
+
:type updated_at: datetime
|
|
186
|
+
"""
|
|
187
|
+
self._updated_at = updated_at
|
|
188
|
+
|
|
160
189
|
@property
|
|
161
190
|
def spec(self):
|
|
162
191
|
"""Gets the spec of this ComponentItem.
|