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
|
@@ -18,61 +18,61 @@ class ComponentSnapshotItem:
|
|
|
18
18
|
|
|
19
19
|
openapi_types = {
|
|
20
20
|
'component_id': 'str',
|
|
21
|
-
'context': 'object',
|
|
22
|
-
'created_at': 'datetime',
|
|
23
|
-
'description': 'str',
|
|
24
21
|
'index': 'int',
|
|
22
|
+
'description': 'str',
|
|
23
|
+
'context': 'ComponentSnapshotContext',
|
|
24
|
+
'created_at': 'datetime',
|
|
25
25
|
'updated_at': 'datetime'
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
attribute_map = {
|
|
29
29
|
'component_id': 'component_id',
|
|
30
|
+
'index': 'index',
|
|
31
|
+
'description': 'description',
|
|
30
32
|
'context': 'context',
|
|
31
33
|
'created_at': 'created_at',
|
|
32
|
-
'description': 'description',
|
|
33
|
-
'index': 'index',
|
|
34
34
|
'updated_at': 'updated_at'
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
def __init__(self, component_id=None,
|
|
37
|
+
def __init__(self, component_id=None, index=None, description=None, context=None, created_at=None, updated_at=None):
|
|
38
38
|
"""ComponentSnapshotItem
|
|
39
39
|
|
|
40
40
|
The model defined in huaweicloud sdk
|
|
41
41
|
|
|
42
|
-
:param component_id: 组件
|
|
42
|
+
:param component_id: 组件ID。
|
|
43
43
|
:type component_id: str
|
|
44
|
-
:param context: 上下文信息。
|
|
45
|
-
:type context: object
|
|
46
|
-
:param created_at: 创建时间。
|
|
47
|
-
:type created_at: datetime
|
|
48
|
-
:param description: 描述。
|
|
49
|
-
:type description: str
|
|
50
44
|
:param index: 快照索引。
|
|
51
45
|
:type index: int
|
|
52
|
-
:param
|
|
46
|
+
:param description: 描述信息。
|
|
47
|
+
:type description: str
|
|
48
|
+
:param context:
|
|
49
|
+
:type context: :class:`huaweicloudsdkcae.v1.ComponentSnapshotContext`
|
|
50
|
+
:param created_at: 创建时间。
|
|
51
|
+
:type created_at: datetime
|
|
52
|
+
:param updated_at: 更新时间。
|
|
53
53
|
:type updated_at: datetime
|
|
54
54
|
"""
|
|
55
55
|
|
|
56
56
|
|
|
57
57
|
|
|
58
58
|
self._component_id = None
|
|
59
|
+
self._index = None
|
|
60
|
+
self._description = None
|
|
59
61
|
self._context = None
|
|
60
62
|
self._created_at = None
|
|
61
|
-
self._description = None
|
|
62
|
-
self._index = None
|
|
63
63
|
self._updated_at = None
|
|
64
64
|
self.discriminator = None
|
|
65
65
|
|
|
66
66
|
if component_id is not None:
|
|
67
67
|
self.component_id = component_id
|
|
68
|
+
if index is not None:
|
|
69
|
+
self.index = index
|
|
70
|
+
if description is not None:
|
|
71
|
+
self.description = description
|
|
68
72
|
if context is not None:
|
|
69
73
|
self.context = context
|
|
70
74
|
if created_at is not None:
|
|
71
75
|
self.created_at = created_at
|
|
72
|
-
if description is not None:
|
|
73
|
-
self.description = description
|
|
74
|
-
if index is not None:
|
|
75
|
-
self.index = index
|
|
76
76
|
if updated_at is not None:
|
|
77
77
|
self.updated_at = updated_at
|
|
78
78
|
|
|
@@ -80,7 +80,7 @@ class ComponentSnapshotItem:
|
|
|
80
80
|
def component_id(self):
|
|
81
81
|
"""Gets the component_id of this ComponentSnapshotItem.
|
|
82
82
|
|
|
83
|
-
组件
|
|
83
|
+
组件ID。
|
|
84
84
|
|
|
85
85
|
:return: The component_id of this ComponentSnapshotItem.
|
|
86
86
|
:rtype: str
|
|
@@ -91,7 +91,7 @@ class ComponentSnapshotItem:
|
|
|
91
91
|
def component_id(self, component_id):
|
|
92
92
|
"""Sets the component_id of this ComponentSnapshotItem.
|
|
93
93
|
|
|
94
|
-
组件
|
|
94
|
+
组件ID。
|
|
95
95
|
|
|
96
96
|
:param component_id: The component_id of this ComponentSnapshotItem.
|
|
97
97
|
:type component_id: str
|
|
@@ -99,54 +99,32 @@ class ComponentSnapshotItem:
|
|
|
99
99
|
self._component_id = component_id
|
|
100
100
|
|
|
101
101
|
@property
|
|
102
|
-
def
|
|
103
|
-
"""Gets the
|
|
104
|
-
|
|
105
|
-
上下文信息。
|
|
106
|
-
|
|
107
|
-
:return: The context of this ComponentSnapshotItem.
|
|
108
|
-
:rtype: object
|
|
109
|
-
"""
|
|
110
|
-
return self._context
|
|
111
|
-
|
|
112
|
-
@context.setter
|
|
113
|
-
def context(self, context):
|
|
114
|
-
"""Sets the context of this ComponentSnapshotItem.
|
|
115
|
-
|
|
116
|
-
上下文信息。
|
|
117
|
-
|
|
118
|
-
:param context: The context of this ComponentSnapshotItem.
|
|
119
|
-
:type context: object
|
|
120
|
-
"""
|
|
121
|
-
self._context = context
|
|
122
|
-
|
|
123
|
-
@property
|
|
124
|
-
def created_at(self):
|
|
125
|
-
"""Gets the created_at of this ComponentSnapshotItem.
|
|
102
|
+
def index(self):
|
|
103
|
+
"""Gets the index of this ComponentSnapshotItem.
|
|
126
104
|
|
|
127
|
-
|
|
105
|
+
快照索引。
|
|
128
106
|
|
|
129
|
-
:return: The
|
|
130
|
-
:rtype:
|
|
107
|
+
:return: The index of this ComponentSnapshotItem.
|
|
108
|
+
:rtype: int
|
|
131
109
|
"""
|
|
132
|
-
return self.
|
|
110
|
+
return self._index
|
|
133
111
|
|
|
134
|
-
@
|
|
135
|
-
def
|
|
136
|
-
"""Sets the
|
|
112
|
+
@index.setter
|
|
113
|
+
def index(self, index):
|
|
114
|
+
"""Sets the index of this ComponentSnapshotItem.
|
|
137
115
|
|
|
138
|
-
|
|
116
|
+
快照索引。
|
|
139
117
|
|
|
140
|
-
:param
|
|
141
|
-
:type
|
|
118
|
+
:param index: The index of this ComponentSnapshotItem.
|
|
119
|
+
:type index: int
|
|
142
120
|
"""
|
|
143
|
-
self.
|
|
121
|
+
self._index = index
|
|
144
122
|
|
|
145
123
|
@property
|
|
146
124
|
def description(self):
|
|
147
125
|
"""Gets the description of this ComponentSnapshotItem.
|
|
148
126
|
|
|
149
|
-
|
|
127
|
+
描述信息。
|
|
150
128
|
|
|
151
129
|
:return: The description of this ComponentSnapshotItem.
|
|
152
130
|
:rtype: str
|
|
@@ -157,7 +135,7 @@ class ComponentSnapshotItem:
|
|
|
157
135
|
def description(self, description):
|
|
158
136
|
"""Sets the description of this ComponentSnapshotItem.
|
|
159
137
|
|
|
160
|
-
|
|
138
|
+
描述信息。
|
|
161
139
|
|
|
162
140
|
:param description: The description of this ComponentSnapshotItem.
|
|
163
141
|
:type description: str
|
|
@@ -165,32 +143,50 @@ class ComponentSnapshotItem:
|
|
|
165
143
|
self._description = description
|
|
166
144
|
|
|
167
145
|
@property
|
|
168
|
-
def
|
|
169
|
-
"""Gets the
|
|
146
|
+
def context(self):
|
|
147
|
+
"""Gets the context of this ComponentSnapshotItem.
|
|
170
148
|
|
|
171
|
-
|
|
149
|
+
:return: The context of this ComponentSnapshotItem.
|
|
150
|
+
:rtype: :class:`huaweicloudsdkcae.v1.ComponentSnapshotContext`
|
|
151
|
+
"""
|
|
152
|
+
return self._context
|
|
172
153
|
|
|
173
|
-
|
|
174
|
-
|
|
154
|
+
@context.setter
|
|
155
|
+
def context(self, context):
|
|
156
|
+
"""Sets the context of this ComponentSnapshotItem.
|
|
157
|
+
|
|
158
|
+
:param context: The context of this ComponentSnapshotItem.
|
|
159
|
+
:type context: :class:`huaweicloudsdkcae.v1.ComponentSnapshotContext`
|
|
175
160
|
"""
|
|
176
|
-
|
|
161
|
+
self._context = context
|
|
177
162
|
|
|
178
|
-
@
|
|
179
|
-
def
|
|
180
|
-
"""
|
|
163
|
+
@property
|
|
164
|
+
def created_at(self):
|
|
165
|
+
"""Gets the created_at of this ComponentSnapshotItem.
|
|
181
166
|
|
|
182
|
-
|
|
167
|
+
创建时间。
|
|
183
168
|
|
|
184
|
-
:
|
|
185
|
-
:
|
|
169
|
+
:return: The created_at of this ComponentSnapshotItem.
|
|
170
|
+
:rtype: datetime
|
|
186
171
|
"""
|
|
187
|
-
self.
|
|
172
|
+
return self._created_at
|
|
173
|
+
|
|
174
|
+
@created_at.setter
|
|
175
|
+
def created_at(self, created_at):
|
|
176
|
+
"""Sets the created_at of this ComponentSnapshotItem.
|
|
177
|
+
|
|
178
|
+
创建时间。
|
|
179
|
+
|
|
180
|
+
:param created_at: The created_at of this ComponentSnapshotItem.
|
|
181
|
+
:type created_at: datetime
|
|
182
|
+
"""
|
|
183
|
+
self._created_at = created_at
|
|
188
184
|
|
|
189
185
|
@property
|
|
190
186
|
def updated_at(self):
|
|
191
187
|
"""Gets the updated_at of this ComponentSnapshotItem.
|
|
192
188
|
|
|
193
|
-
|
|
189
|
+
更新时间。
|
|
194
190
|
|
|
195
191
|
:return: The updated_at of this ComponentSnapshotItem.
|
|
196
192
|
:rtype: datetime
|
|
@@ -201,7 +197,7 @@ class ComponentSnapshotItem:
|
|
|
201
197
|
def updated_at(self, updated_at):
|
|
202
198
|
"""Sets the updated_at of this ComponentSnapshotItem.
|
|
203
199
|
|
|
204
|
-
|
|
200
|
+
更新时间。
|
|
205
201
|
|
|
206
202
|
:param updated_at: The updated_at of this ComponentSnapshotItem.
|
|
207
203
|
:type updated_at: datetime
|
|
@@ -20,61 +20,65 @@ class ComponentSpec:
|
|
|
20
20
|
'runtime': 'str',
|
|
21
21
|
'env_id': 'str',
|
|
22
22
|
'replica': 'int',
|
|
23
|
-
'available_replica': 'int',
|
|
24
23
|
'source': 'Source',
|
|
25
24
|
'build': 'Build',
|
|
25
|
+
'resource_limit': 'ResourceLimit',
|
|
26
26
|
'access_info': 'list[Access]',
|
|
27
|
-
'build_id': 'str',
|
|
28
27
|
'image_url': 'str',
|
|
28
|
+
'available_replica': 'int',
|
|
29
29
|
'job_id': 'str',
|
|
30
|
-
'
|
|
31
|
-
'status': 'str'
|
|
30
|
+
'build_id': 'str',
|
|
31
|
+
'status': 'str',
|
|
32
|
+
'build_log_id': 'str'
|
|
32
33
|
}
|
|
33
34
|
|
|
34
35
|
attribute_map = {
|
|
35
36
|
'runtime': 'runtime',
|
|
36
37
|
'env_id': 'env_id',
|
|
37
38
|
'replica': 'replica',
|
|
38
|
-
'available_replica': 'available_replica',
|
|
39
39
|
'source': 'source',
|
|
40
40
|
'build': 'build',
|
|
41
|
+
'resource_limit': 'resource_limit',
|
|
41
42
|
'access_info': 'access_info',
|
|
42
|
-
'build_id': 'build_id',
|
|
43
43
|
'image_url': 'image_url',
|
|
44
|
+
'available_replica': 'available_replica',
|
|
44
45
|
'job_id': 'job_id',
|
|
45
|
-
'
|
|
46
|
-
'status': 'status'
|
|
46
|
+
'build_id': 'build_id',
|
|
47
|
+
'status': 'status',
|
|
48
|
+
'build_log_id': 'build_log_id'
|
|
47
49
|
}
|
|
48
50
|
|
|
49
|
-
def __init__(self, runtime=None, env_id=None, replica=None,
|
|
51
|
+
def __init__(self, runtime=None, env_id=None, replica=None, source=None, build=None, resource_limit=None, access_info=None, image_url=None, available_replica=None, job_id=None, build_id=None, status=None, build_log_id=None):
|
|
50
52
|
"""ComponentSpec
|
|
51
53
|
|
|
52
54
|
The model defined in huaweicloud sdk
|
|
53
55
|
|
|
54
|
-
:param runtime:
|
|
56
|
+
:param runtime: 语言/运行时。
|
|
55
57
|
:type runtime: str
|
|
56
|
-
:param env_id: 环境
|
|
58
|
+
:param env_id: 环境ID。
|
|
57
59
|
:type env_id: str
|
|
58
|
-
:param replica:
|
|
60
|
+
:param replica: 实例个数。
|
|
59
61
|
:type replica: int
|
|
60
|
-
:param available_replica: 可用副本。
|
|
61
|
-
:type available_replica: int
|
|
62
62
|
:param source:
|
|
63
63
|
:type source: :class:`huaweicloudsdkcae.v1.Source`
|
|
64
64
|
:param build:
|
|
65
65
|
:type build: :class:`huaweicloudsdkcae.v1.Build`
|
|
66
|
-
:param
|
|
66
|
+
:param resource_limit:
|
|
67
|
+
:type resource_limit: :class:`huaweicloudsdkcae.v1.ResourceLimit`
|
|
68
|
+
:param access_info: 访问方式列表。
|
|
67
69
|
:type access_info: list[:class:`huaweicloudsdkcae.v1.Access`]
|
|
68
|
-
:param build_id: 构建id。
|
|
69
|
-
:type build_id: str
|
|
70
70
|
:param image_url: 镜像地址。
|
|
71
71
|
:type image_url: str
|
|
72
|
-
:param
|
|
72
|
+
:param available_replica: 可用实例个数。
|
|
73
|
+
:type available_replica: int
|
|
74
|
+
:param job_id: 任务ID。
|
|
73
75
|
:type job_id: str
|
|
74
|
-
:param
|
|
75
|
-
:type
|
|
76
|
-
:param status:
|
|
76
|
+
:param build_id: 构建任务ID。
|
|
77
|
+
:type build_id: str
|
|
78
|
+
:param status: 组件状态。
|
|
77
79
|
:type status: str
|
|
80
|
+
:param build_log_id: 构建日志ID。
|
|
81
|
+
:type build_log_id: str
|
|
78
82
|
"""
|
|
79
83
|
|
|
80
84
|
|
|
@@ -82,15 +86,16 @@ class ComponentSpec:
|
|
|
82
86
|
self._runtime = None
|
|
83
87
|
self._env_id = None
|
|
84
88
|
self._replica = None
|
|
85
|
-
self._available_replica = None
|
|
86
89
|
self._source = None
|
|
87
90
|
self._build = None
|
|
91
|
+
self._resource_limit = None
|
|
88
92
|
self._access_info = None
|
|
89
|
-
self._build_id = None
|
|
90
93
|
self._image_url = None
|
|
94
|
+
self._available_replica = None
|
|
91
95
|
self._job_id = None
|
|
92
|
-
self.
|
|
96
|
+
self._build_id = None
|
|
93
97
|
self._status = None
|
|
98
|
+
self._build_log_id = None
|
|
94
99
|
self.discriminator = None
|
|
95
100
|
|
|
96
101
|
if runtime is not None:
|
|
@@ -99,30 +104,32 @@ class ComponentSpec:
|
|
|
99
104
|
self.env_id = env_id
|
|
100
105
|
if replica is not None:
|
|
101
106
|
self.replica = replica
|
|
102
|
-
if available_replica is not None:
|
|
103
|
-
self.available_replica = available_replica
|
|
104
107
|
if source is not None:
|
|
105
108
|
self.source = source
|
|
106
109
|
if build is not None:
|
|
107
110
|
self.build = build
|
|
111
|
+
if resource_limit is not None:
|
|
112
|
+
self.resource_limit = resource_limit
|
|
108
113
|
if access_info is not None:
|
|
109
114
|
self.access_info = access_info
|
|
110
|
-
if build_id is not None:
|
|
111
|
-
self.build_id = build_id
|
|
112
115
|
if image_url is not None:
|
|
113
116
|
self.image_url = image_url
|
|
117
|
+
if available_replica is not None:
|
|
118
|
+
self.available_replica = available_replica
|
|
114
119
|
if job_id is not None:
|
|
115
120
|
self.job_id = job_id
|
|
116
|
-
if
|
|
117
|
-
self.
|
|
121
|
+
if build_id is not None:
|
|
122
|
+
self.build_id = build_id
|
|
118
123
|
if status is not None:
|
|
119
124
|
self.status = status
|
|
125
|
+
if build_log_id is not None:
|
|
126
|
+
self.build_log_id = build_log_id
|
|
120
127
|
|
|
121
128
|
@property
|
|
122
129
|
def runtime(self):
|
|
123
130
|
"""Gets the runtime of this ComponentSpec.
|
|
124
131
|
|
|
125
|
-
|
|
132
|
+
语言/运行时。
|
|
126
133
|
|
|
127
134
|
:return: The runtime of this ComponentSpec.
|
|
128
135
|
:rtype: str
|
|
@@ -133,7 +140,7 @@ class ComponentSpec:
|
|
|
133
140
|
def runtime(self, runtime):
|
|
134
141
|
"""Sets the runtime of this ComponentSpec.
|
|
135
142
|
|
|
136
|
-
|
|
143
|
+
语言/运行时。
|
|
137
144
|
|
|
138
145
|
:param runtime: The runtime of this ComponentSpec.
|
|
139
146
|
:type runtime: str
|
|
@@ -144,7 +151,7 @@ class ComponentSpec:
|
|
|
144
151
|
def env_id(self):
|
|
145
152
|
"""Gets the env_id of this ComponentSpec.
|
|
146
153
|
|
|
147
|
-
环境
|
|
154
|
+
环境ID。
|
|
148
155
|
|
|
149
156
|
:return: The env_id of this ComponentSpec.
|
|
150
157
|
:rtype: str
|
|
@@ -155,7 +162,7 @@ class ComponentSpec:
|
|
|
155
162
|
def env_id(self, env_id):
|
|
156
163
|
"""Sets the env_id of this ComponentSpec.
|
|
157
164
|
|
|
158
|
-
环境
|
|
165
|
+
环境ID。
|
|
159
166
|
|
|
160
167
|
:param env_id: The env_id of this ComponentSpec.
|
|
161
168
|
:type env_id: str
|
|
@@ -166,7 +173,7 @@ class ComponentSpec:
|
|
|
166
173
|
def replica(self):
|
|
167
174
|
"""Gets the replica of this ComponentSpec.
|
|
168
175
|
|
|
169
|
-
|
|
176
|
+
实例个数。
|
|
170
177
|
|
|
171
178
|
:return: The replica of this ComponentSpec.
|
|
172
179
|
:rtype: int
|
|
@@ -177,35 +184,13 @@ class ComponentSpec:
|
|
|
177
184
|
def replica(self, replica):
|
|
178
185
|
"""Sets the replica of this ComponentSpec.
|
|
179
186
|
|
|
180
|
-
|
|
187
|
+
实例个数。
|
|
181
188
|
|
|
182
189
|
:param replica: The replica of this ComponentSpec.
|
|
183
190
|
:type replica: int
|
|
184
191
|
"""
|
|
185
192
|
self._replica = replica
|
|
186
193
|
|
|
187
|
-
@property
|
|
188
|
-
def available_replica(self):
|
|
189
|
-
"""Gets the available_replica of this ComponentSpec.
|
|
190
|
-
|
|
191
|
-
可用副本。
|
|
192
|
-
|
|
193
|
-
:return: The available_replica of this ComponentSpec.
|
|
194
|
-
:rtype: int
|
|
195
|
-
"""
|
|
196
|
-
return self._available_replica
|
|
197
|
-
|
|
198
|
-
@available_replica.setter
|
|
199
|
-
def available_replica(self, available_replica):
|
|
200
|
-
"""Sets the available_replica of this ComponentSpec.
|
|
201
|
-
|
|
202
|
-
可用副本。
|
|
203
|
-
|
|
204
|
-
:param available_replica: The available_replica of this ComponentSpec.
|
|
205
|
-
:type available_replica: int
|
|
206
|
-
"""
|
|
207
|
-
self._available_replica = available_replica
|
|
208
|
-
|
|
209
194
|
@property
|
|
210
195
|
def source(self):
|
|
211
196
|
"""Gets the source of this ComponentSpec.
|
|
@@ -242,10 +227,30 @@ class ComponentSpec:
|
|
|
242
227
|
"""
|
|
243
228
|
self._build = build
|
|
244
229
|
|
|
230
|
+
@property
|
|
231
|
+
def resource_limit(self):
|
|
232
|
+
"""Gets the resource_limit of this ComponentSpec.
|
|
233
|
+
|
|
234
|
+
:return: The resource_limit of this ComponentSpec.
|
|
235
|
+
:rtype: :class:`huaweicloudsdkcae.v1.ResourceLimit`
|
|
236
|
+
"""
|
|
237
|
+
return self._resource_limit
|
|
238
|
+
|
|
239
|
+
@resource_limit.setter
|
|
240
|
+
def resource_limit(self, resource_limit):
|
|
241
|
+
"""Sets the resource_limit of this ComponentSpec.
|
|
242
|
+
|
|
243
|
+
:param resource_limit: The resource_limit of this ComponentSpec.
|
|
244
|
+
:type resource_limit: :class:`huaweicloudsdkcae.v1.ResourceLimit`
|
|
245
|
+
"""
|
|
246
|
+
self._resource_limit = resource_limit
|
|
247
|
+
|
|
245
248
|
@property
|
|
246
249
|
def access_info(self):
|
|
247
250
|
"""Gets the access_info of this ComponentSpec.
|
|
248
251
|
|
|
252
|
+
访问方式列表。
|
|
253
|
+
|
|
249
254
|
:return: The access_info of this ComponentSpec.
|
|
250
255
|
:rtype: list[:class:`huaweicloudsdkcae.v1.Access`]
|
|
251
256
|
"""
|
|
@@ -255,33 +260,13 @@ class ComponentSpec:
|
|
|
255
260
|
def access_info(self, access_info):
|
|
256
261
|
"""Sets the access_info of this ComponentSpec.
|
|
257
262
|
|
|
263
|
+
访问方式列表。
|
|
264
|
+
|
|
258
265
|
:param access_info: The access_info of this ComponentSpec.
|
|
259
266
|
:type access_info: list[:class:`huaweicloudsdkcae.v1.Access`]
|
|
260
267
|
"""
|
|
261
268
|
self._access_info = access_info
|
|
262
269
|
|
|
263
|
-
@property
|
|
264
|
-
def build_id(self):
|
|
265
|
-
"""Gets the build_id of this ComponentSpec.
|
|
266
|
-
|
|
267
|
-
构建id。
|
|
268
|
-
|
|
269
|
-
:return: The build_id of this ComponentSpec.
|
|
270
|
-
:rtype: str
|
|
271
|
-
"""
|
|
272
|
-
return self._build_id
|
|
273
|
-
|
|
274
|
-
@build_id.setter
|
|
275
|
-
def build_id(self, build_id):
|
|
276
|
-
"""Sets the build_id of this ComponentSpec.
|
|
277
|
-
|
|
278
|
-
构建id。
|
|
279
|
-
|
|
280
|
-
:param build_id: The build_id of this ComponentSpec.
|
|
281
|
-
:type build_id: str
|
|
282
|
-
"""
|
|
283
|
-
self._build_id = build_id
|
|
284
|
-
|
|
285
270
|
@property
|
|
286
271
|
def image_url(self):
|
|
287
272
|
"""Gets the image_url of this ComponentSpec.
|
|
@@ -304,11 +289,33 @@ class ComponentSpec:
|
|
|
304
289
|
"""
|
|
305
290
|
self._image_url = image_url
|
|
306
291
|
|
|
292
|
+
@property
|
|
293
|
+
def available_replica(self):
|
|
294
|
+
"""Gets the available_replica of this ComponentSpec.
|
|
295
|
+
|
|
296
|
+
可用实例个数。
|
|
297
|
+
|
|
298
|
+
:return: The available_replica of this ComponentSpec.
|
|
299
|
+
:rtype: int
|
|
300
|
+
"""
|
|
301
|
+
return self._available_replica
|
|
302
|
+
|
|
303
|
+
@available_replica.setter
|
|
304
|
+
def available_replica(self, available_replica):
|
|
305
|
+
"""Sets the available_replica of this ComponentSpec.
|
|
306
|
+
|
|
307
|
+
可用实例个数。
|
|
308
|
+
|
|
309
|
+
:param available_replica: The available_replica of this ComponentSpec.
|
|
310
|
+
:type available_replica: int
|
|
311
|
+
"""
|
|
312
|
+
self._available_replica = available_replica
|
|
313
|
+
|
|
307
314
|
@property
|
|
308
315
|
def job_id(self):
|
|
309
316
|
"""Gets the job_id of this ComponentSpec.
|
|
310
317
|
|
|
311
|
-
任务
|
|
318
|
+
任务ID。
|
|
312
319
|
|
|
313
320
|
:return: The job_id of this ComponentSpec.
|
|
314
321
|
:rtype: str
|
|
@@ -319,7 +326,7 @@ class ComponentSpec:
|
|
|
319
326
|
def job_id(self, job_id):
|
|
320
327
|
"""Sets the job_id of this ComponentSpec.
|
|
321
328
|
|
|
322
|
-
任务
|
|
329
|
+
任务ID。
|
|
323
330
|
|
|
324
331
|
:param job_id: The job_id of this ComponentSpec.
|
|
325
332
|
:type job_id: str
|
|
@@ -327,32 +334,32 @@ class ComponentSpec:
|
|
|
327
334
|
self._job_id = job_id
|
|
328
335
|
|
|
329
336
|
@property
|
|
330
|
-
def
|
|
331
|
-
"""Gets the
|
|
337
|
+
def build_id(self):
|
|
338
|
+
"""Gets the build_id of this ComponentSpec.
|
|
332
339
|
|
|
333
|
-
|
|
340
|
+
构建任务ID。
|
|
334
341
|
|
|
335
|
-
:return: The
|
|
336
|
-
:rtype:
|
|
342
|
+
:return: The build_id of this ComponentSpec.
|
|
343
|
+
:rtype: str
|
|
337
344
|
"""
|
|
338
|
-
return self.
|
|
345
|
+
return self._build_id
|
|
339
346
|
|
|
340
|
-
@
|
|
341
|
-
def
|
|
342
|
-
"""Sets the
|
|
347
|
+
@build_id.setter
|
|
348
|
+
def build_id(self, build_id):
|
|
349
|
+
"""Sets the build_id of this ComponentSpec.
|
|
343
350
|
|
|
344
|
-
|
|
351
|
+
构建任务ID。
|
|
345
352
|
|
|
346
|
-
:param
|
|
347
|
-
:type
|
|
353
|
+
:param build_id: The build_id of this ComponentSpec.
|
|
354
|
+
:type build_id: str
|
|
348
355
|
"""
|
|
349
|
-
self.
|
|
356
|
+
self._build_id = build_id
|
|
350
357
|
|
|
351
358
|
@property
|
|
352
359
|
def status(self):
|
|
353
360
|
"""Gets the status of this ComponentSpec.
|
|
354
361
|
|
|
355
|
-
|
|
362
|
+
组件状态。
|
|
356
363
|
|
|
357
364
|
:return: The status of this ComponentSpec.
|
|
358
365
|
:rtype: str
|
|
@@ -363,13 +370,35 @@ class ComponentSpec:
|
|
|
363
370
|
def status(self, status):
|
|
364
371
|
"""Sets the status of this ComponentSpec.
|
|
365
372
|
|
|
366
|
-
|
|
373
|
+
组件状态。
|
|
367
374
|
|
|
368
375
|
:param status: The status of this ComponentSpec.
|
|
369
376
|
:type status: str
|
|
370
377
|
"""
|
|
371
378
|
self._status = status
|
|
372
379
|
|
|
380
|
+
@property
|
|
381
|
+
def build_log_id(self):
|
|
382
|
+
"""Gets the build_log_id of this ComponentSpec.
|
|
383
|
+
|
|
384
|
+
构建日志ID。
|
|
385
|
+
|
|
386
|
+
:return: The build_log_id of this ComponentSpec.
|
|
387
|
+
:rtype: str
|
|
388
|
+
"""
|
|
389
|
+
return self._build_log_id
|
|
390
|
+
|
|
391
|
+
@build_log_id.setter
|
|
392
|
+
def build_log_id(self, build_log_id):
|
|
393
|
+
"""Sets the build_log_id of this ComponentSpec.
|
|
394
|
+
|
|
395
|
+
构建日志ID。
|
|
396
|
+
|
|
397
|
+
:param build_log_id: The build_log_id of this ComponentSpec.
|
|
398
|
+
:type build_log_id: str
|
|
399
|
+
"""
|
|
400
|
+
self._build_log_id = build_log_id
|
|
401
|
+
|
|
373
402
|
def to_dict(self):
|
|
374
403
|
"""Returns the model properties as a dict"""
|
|
375
404
|
result = {}
|