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
|
@@ -34,9 +34,9 @@ class ShowApplicationResponse(SdkResponse):
|
|
|
34
34
|
|
|
35
35
|
The model defined in huaweicloud sdk
|
|
36
36
|
|
|
37
|
-
:param api_version: API
|
|
37
|
+
:param api_version: API版本,固定值“v1”,该值不可修改。
|
|
38
38
|
:type api_version: str
|
|
39
|
-
:param kind:
|
|
39
|
+
:param kind: API类型,固定值“Application”,该值不可修改。
|
|
40
40
|
:type kind: str
|
|
41
41
|
:param metadata:
|
|
42
42
|
:type metadata: :class:`huaweicloudsdkcae.v1.ApplicationMetadata`
|
|
@@ -60,7 +60,7 @@ class ShowApplicationResponse(SdkResponse):
|
|
|
60
60
|
def api_version(self):
|
|
61
61
|
"""Gets the api_version of this ShowApplicationResponse.
|
|
62
62
|
|
|
63
|
-
API
|
|
63
|
+
API版本,固定值“v1”,该值不可修改。
|
|
64
64
|
|
|
65
65
|
:return: The api_version of this ShowApplicationResponse.
|
|
66
66
|
:rtype: str
|
|
@@ -71,7 +71,7 @@ class ShowApplicationResponse(SdkResponse):
|
|
|
71
71
|
def api_version(self, api_version):
|
|
72
72
|
"""Sets the api_version of this ShowApplicationResponse.
|
|
73
73
|
|
|
74
|
-
API
|
|
74
|
+
API版本,固定值“v1”,该值不可修改。
|
|
75
75
|
|
|
76
76
|
:param api_version: The api_version of this ShowApplicationResponse.
|
|
77
77
|
:type api_version: str
|
|
@@ -82,7 +82,7 @@ class ShowApplicationResponse(SdkResponse):
|
|
|
82
82
|
def kind(self):
|
|
83
83
|
"""Gets the kind of this ShowApplicationResponse.
|
|
84
84
|
|
|
85
|
-
|
|
85
|
+
API类型,固定值“Application”,该值不可修改。
|
|
86
86
|
|
|
87
87
|
:return: The kind of this ShowApplicationResponse.
|
|
88
88
|
:rtype: str
|
|
@@ -93,7 +93,7 @@ class ShowApplicationResponse(SdkResponse):
|
|
|
93
93
|
def kind(self, kind):
|
|
94
94
|
"""Sets the kind of this ShowApplicationResponse.
|
|
95
95
|
|
|
96
|
-
|
|
96
|
+
API类型,固定值“Application”,该值不可修改。
|
|
97
97
|
|
|
98
98
|
:param kind: The kind of this ShowApplicationResponse.
|
|
99
99
|
:type kind: str
|
|
@@ -17,97 +17,97 @@ class ShowComponentRequest:
|
|
|
17
17
|
sensitive_list = []
|
|
18
18
|
|
|
19
19
|
openapi_types = {
|
|
20
|
+
'application_id': 'str',
|
|
20
21
|
'component_id': 'str',
|
|
21
|
-
'x_environment_id': 'str',
|
|
22
22
|
'x_enterprise_project_id': 'str',
|
|
23
|
-
'
|
|
23
|
+
'x_environment_id': 'str'
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
attribute_map = {
|
|
27
|
+
'application_id': 'application_id',
|
|
27
28
|
'component_id': 'component_id',
|
|
28
|
-
'x_environment_id': 'X-Environment-ID',
|
|
29
29
|
'x_enterprise_project_id': 'X-Enterprise-Project-ID',
|
|
30
|
-
'
|
|
30
|
+
'x_environment_id': 'X-Environment-ID'
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
def __init__(self,
|
|
33
|
+
def __init__(self, application_id=None, component_id=None, x_enterprise_project_id=None, x_environment_id=None):
|
|
34
34
|
"""ShowComponentRequest
|
|
35
35
|
|
|
36
36
|
The model defined in huaweicloud sdk
|
|
37
37
|
|
|
38
|
-
:param
|
|
38
|
+
:param application_id: 应用ID。
|
|
39
|
+
:type application_id: str
|
|
40
|
+
:param component_id: 组件ID。
|
|
39
41
|
:type component_id: str
|
|
40
|
-
:param
|
|
41
|
-
:type x_environment_id: str
|
|
42
|
-
:param x_enterprise_project_id: 租户的企业项目id。
|
|
42
|
+
:param x_enterprise_project_id: 企业项目ID。 - 创建环境时,环境会绑定企业项目ID。 - 最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。 - 该字段不传(或传为字符串“0”)时,则查询默认企业项目下的资源。 > 关于企业项目ID的获取及企业项目特性的详细信息,请参见《[企业管理服务用户指南](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0126101490.html)》。
|
|
43
43
|
:type x_enterprise_project_id: str
|
|
44
|
-
:param
|
|
45
|
-
:type
|
|
44
|
+
:param x_environment_id: 环境ID。 - 获取环境ID,通过《[云应用引擎API参考](https://support.huaweicloud.com/api-cae/ListEnvironments.html)》的“获取环境列表”章节获取环境信息。 - 请求响应成功后在响应体的items数组中的一个元素即为一个环境的信息,其中id字段即是环境ID。
|
|
45
|
+
:type x_environment_id: str
|
|
46
46
|
"""
|
|
47
47
|
|
|
48
48
|
|
|
49
49
|
|
|
50
|
+
self._application_id = None
|
|
50
51
|
self._component_id = None
|
|
51
|
-
self._x_environment_id = None
|
|
52
52
|
self._x_enterprise_project_id = None
|
|
53
|
-
self.
|
|
53
|
+
self._x_environment_id = None
|
|
54
54
|
self.discriminator = None
|
|
55
55
|
|
|
56
|
+
self.application_id = application_id
|
|
56
57
|
self.component_id = component_id
|
|
57
|
-
self.x_environment_id = x_environment_id
|
|
58
58
|
if x_enterprise_project_id is not None:
|
|
59
59
|
self.x_enterprise_project_id = x_enterprise_project_id
|
|
60
|
-
self.
|
|
60
|
+
self.x_environment_id = x_environment_id
|
|
61
61
|
|
|
62
62
|
@property
|
|
63
|
-
def
|
|
64
|
-
"""Gets the
|
|
63
|
+
def application_id(self):
|
|
64
|
+
"""Gets the application_id of this ShowComponentRequest.
|
|
65
65
|
|
|
66
|
-
|
|
66
|
+
应用ID。
|
|
67
67
|
|
|
68
|
-
:return: The
|
|
68
|
+
:return: The application_id of this ShowComponentRequest.
|
|
69
69
|
:rtype: str
|
|
70
70
|
"""
|
|
71
|
-
return self.
|
|
71
|
+
return self._application_id
|
|
72
72
|
|
|
73
|
-
@
|
|
74
|
-
def
|
|
75
|
-
"""Sets the
|
|
73
|
+
@application_id.setter
|
|
74
|
+
def application_id(self, application_id):
|
|
75
|
+
"""Sets the application_id of this ShowComponentRequest.
|
|
76
76
|
|
|
77
|
-
|
|
77
|
+
应用ID。
|
|
78
78
|
|
|
79
|
-
:param
|
|
80
|
-
:type
|
|
79
|
+
:param application_id: The application_id of this ShowComponentRequest.
|
|
80
|
+
:type application_id: str
|
|
81
81
|
"""
|
|
82
|
-
self.
|
|
82
|
+
self._application_id = application_id
|
|
83
83
|
|
|
84
84
|
@property
|
|
85
|
-
def
|
|
86
|
-
"""Gets the
|
|
85
|
+
def component_id(self):
|
|
86
|
+
"""Gets the component_id of this ShowComponentRequest.
|
|
87
87
|
|
|
88
|
-
|
|
88
|
+
组件ID。
|
|
89
89
|
|
|
90
|
-
:return: The
|
|
90
|
+
:return: The component_id of this ShowComponentRequest.
|
|
91
91
|
:rtype: str
|
|
92
92
|
"""
|
|
93
|
-
return self.
|
|
93
|
+
return self._component_id
|
|
94
94
|
|
|
95
|
-
@
|
|
96
|
-
def
|
|
97
|
-
"""Sets the
|
|
95
|
+
@component_id.setter
|
|
96
|
+
def component_id(self, component_id):
|
|
97
|
+
"""Sets the component_id of this ShowComponentRequest.
|
|
98
98
|
|
|
99
|
-
|
|
99
|
+
组件ID。
|
|
100
100
|
|
|
101
|
-
:param
|
|
102
|
-
:type
|
|
101
|
+
:param component_id: The component_id of this ShowComponentRequest.
|
|
102
|
+
:type component_id: str
|
|
103
103
|
"""
|
|
104
|
-
self.
|
|
104
|
+
self._component_id = component_id
|
|
105
105
|
|
|
106
106
|
@property
|
|
107
107
|
def x_enterprise_project_id(self):
|
|
108
108
|
"""Gets the x_enterprise_project_id of this ShowComponentRequest.
|
|
109
109
|
|
|
110
|
-
|
|
110
|
+
企业项目ID。 - 创建环境时,环境会绑定企业项目ID。 - 最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。 - 该字段不传(或传为字符串“0”)时,则查询默认企业项目下的资源。 > 关于企业项目ID的获取及企业项目特性的详细信息,请参见《[企业管理服务用户指南](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0126101490.html)》。
|
|
111
111
|
|
|
112
112
|
:return: The x_enterprise_project_id of this ShowComponentRequest.
|
|
113
113
|
:rtype: str
|
|
@@ -118,7 +118,7 @@ class ShowComponentRequest:
|
|
|
118
118
|
def x_enterprise_project_id(self, x_enterprise_project_id):
|
|
119
119
|
"""Sets the x_enterprise_project_id of this ShowComponentRequest.
|
|
120
120
|
|
|
121
|
-
|
|
121
|
+
企业项目ID。 - 创建环境时,环境会绑定企业项目ID。 - 最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。 - 该字段不传(或传为字符串“0”)时,则查询默认企业项目下的资源。 > 关于企业项目ID的获取及企业项目特性的详细信息,请参见《[企业管理服务用户指南](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0126101490.html)》。
|
|
122
122
|
|
|
123
123
|
:param x_enterprise_project_id: The x_enterprise_project_id of this ShowComponentRequest.
|
|
124
124
|
:type x_enterprise_project_id: str
|
|
@@ -126,26 +126,26 @@ class ShowComponentRequest:
|
|
|
126
126
|
self._x_enterprise_project_id = x_enterprise_project_id
|
|
127
127
|
|
|
128
128
|
@property
|
|
129
|
-
def
|
|
130
|
-
"""Gets the
|
|
129
|
+
def x_environment_id(self):
|
|
130
|
+
"""Gets the x_environment_id of this ShowComponentRequest.
|
|
131
131
|
|
|
132
|
-
|
|
132
|
+
环境ID。 - 获取环境ID,通过《[云应用引擎API参考](https://support.huaweicloud.com/api-cae/ListEnvironments.html)》的“获取环境列表”章节获取环境信息。 - 请求响应成功后在响应体的items数组中的一个元素即为一个环境的信息,其中id字段即是环境ID。
|
|
133
133
|
|
|
134
|
-
:return: The
|
|
134
|
+
:return: The x_environment_id of this ShowComponentRequest.
|
|
135
135
|
:rtype: str
|
|
136
136
|
"""
|
|
137
|
-
return self.
|
|
137
|
+
return self._x_environment_id
|
|
138
138
|
|
|
139
|
-
@
|
|
140
|
-
def
|
|
141
|
-
"""Sets the
|
|
139
|
+
@x_environment_id.setter
|
|
140
|
+
def x_environment_id(self, x_environment_id):
|
|
141
|
+
"""Sets the x_environment_id of this ShowComponentRequest.
|
|
142
142
|
|
|
143
|
-
|
|
143
|
+
环境ID。 - 获取环境ID,通过《[云应用引擎API参考](https://support.huaweicloud.com/api-cae/ListEnvironments.html)》的“获取环境列表”章节获取环境信息。 - 请求响应成功后在响应体的items数组中的一个元素即为一个环境的信息,其中id字段即是环境ID。
|
|
144
144
|
|
|
145
|
-
:param
|
|
146
|
-
:type
|
|
145
|
+
:param x_environment_id: The x_environment_id of this ShowComponentRequest.
|
|
146
|
+
:type x_environment_id: str
|
|
147
147
|
"""
|
|
148
|
-
self.
|
|
148
|
+
self._x_environment_id = x_environment_id
|
|
149
149
|
|
|
150
150
|
def to_dict(self):
|
|
151
151
|
"""Returns the model properties as a dict"""
|
|
@@ -36,9 +36,9 @@ class ShowComponentResponse(SdkResponse):
|
|
|
36
36
|
|
|
37
37
|
The model defined in huaweicloud sdk
|
|
38
38
|
|
|
39
|
-
:param api_version: API
|
|
39
|
+
:param api_version: API版本,固定值“v1”,该值不可修改。
|
|
40
40
|
:type api_version: str
|
|
41
|
-
:param kind:
|
|
41
|
+
:param kind: API类型,固定值“Component”,该值不可修改。
|
|
42
42
|
:type kind: str
|
|
43
43
|
:param metadata:
|
|
44
44
|
:type metadata: :class:`huaweicloudsdkcae.v1.MetadataResponse`
|
|
@@ -67,7 +67,7 @@ class ShowComponentResponse(SdkResponse):
|
|
|
67
67
|
def api_version(self):
|
|
68
68
|
"""Gets the api_version of this ShowComponentResponse.
|
|
69
69
|
|
|
70
|
-
API
|
|
70
|
+
API版本,固定值“v1”,该值不可修改。
|
|
71
71
|
|
|
72
72
|
:return: The api_version of this ShowComponentResponse.
|
|
73
73
|
:rtype: str
|
|
@@ -78,7 +78,7 @@ class ShowComponentResponse(SdkResponse):
|
|
|
78
78
|
def api_version(self, api_version):
|
|
79
79
|
"""Sets the api_version of this ShowComponentResponse.
|
|
80
80
|
|
|
81
|
-
API
|
|
81
|
+
API版本,固定值“v1”,该值不可修改。
|
|
82
82
|
|
|
83
83
|
:param api_version: The api_version of this ShowComponentResponse.
|
|
84
84
|
:type api_version: str
|
|
@@ -89,7 +89,7 @@ class ShowComponentResponse(SdkResponse):
|
|
|
89
89
|
def kind(self):
|
|
90
90
|
"""Gets the kind of this ShowComponentResponse.
|
|
91
91
|
|
|
92
|
-
|
|
92
|
+
API类型,固定值“Component”,该值不可修改。
|
|
93
93
|
|
|
94
94
|
:return: The kind of this ShowComponentResponse.
|
|
95
95
|
:rtype: str
|
|
@@ -100,7 +100,7 @@ class ShowComponentResponse(SdkResponse):
|
|
|
100
100
|
def kind(self, kind):
|
|
101
101
|
"""Sets the kind of this ShowComponentResponse.
|
|
102
102
|
|
|
103
|
-
|
|
103
|
+
API类型,固定值“Component”,该值不可修改。
|
|
104
104
|
|
|
105
105
|
:param kind: The kind of this ShowComponentResponse.
|
|
106
106
|
:type kind: str
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
import six
|
|
4
|
+
|
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class ShowExecutionResultRequest:
|
|
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
|
+
'x_enterprise_project_id': 'str',
|
|
21
|
+
'x_environment_id': 'str',
|
|
22
|
+
'timer_rule_id': 'str'
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
attribute_map = {
|
|
26
|
+
'x_enterprise_project_id': 'X-Enterprise-Project-ID',
|
|
27
|
+
'x_environment_id': 'X-Environment-ID',
|
|
28
|
+
'timer_rule_id': 'timer_rule_id'
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
def __init__(self, x_enterprise_project_id=None, x_environment_id=None, timer_rule_id=None):
|
|
32
|
+
"""ShowExecutionResultRequest
|
|
33
|
+
|
|
34
|
+
The model defined in huaweicloud sdk
|
|
35
|
+
|
|
36
|
+
:param x_enterprise_project_id: 企业项目ID。 - 创建环境时,环境会绑定企业项目ID。 - 最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。 - 该字段不传(或传为字符串“0”)时,则查询默认企业项目下的资源。 > 关于企业项目ID的获取及企业项目特性的详细信息,请参见《[企业管理服务用户指南](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0126101490.html)》。
|
|
37
|
+
:type x_enterprise_project_id: str
|
|
38
|
+
:param x_environment_id: 环境ID。 - 获取环境ID,通过《[云应用引擎API参考](https://support.huaweicloud.com/api-cae/ListEnvironments.html)》的“获取环境列表”章节获取环境信息。 - 请求响应成功后在响应体的items数组中的一个元素即为一个环境的信息,其中id字段即是环境ID。
|
|
39
|
+
:type x_environment_id: str
|
|
40
|
+
:param timer_rule_id: 定时启停规则ID。
|
|
41
|
+
:type timer_rule_id: str
|
|
42
|
+
"""
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
self._x_enterprise_project_id = None
|
|
47
|
+
self._x_environment_id = None
|
|
48
|
+
self._timer_rule_id = None
|
|
49
|
+
self.discriminator = None
|
|
50
|
+
|
|
51
|
+
if x_enterprise_project_id is not None:
|
|
52
|
+
self.x_enterprise_project_id = x_enterprise_project_id
|
|
53
|
+
self.x_environment_id = x_environment_id
|
|
54
|
+
self.timer_rule_id = timer_rule_id
|
|
55
|
+
|
|
56
|
+
@property
|
|
57
|
+
def x_enterprise_project_id(self):
|
|
58
|
+
"""Gets the x_enterprise_project_id of this ShowExecutionResultRequest.
|
|
59
|
+
|
|
60
|
+
企业项目ID。 - 创建环境时,环境会绑定企业项目ID。 - 最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。 - 该字段不传(或传为字符串“0”)时,则查询默认企业项目下的资源。 > 关于企业项目ID的获取及企业项目特性的详细信息,请参见《[企业管理服务用户指南](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0126101490.html)》。
|
|
61
|
+
|
|
62
|
+
:return: The x_enterprise_project_id of this ShowExecutionResultRequest.
|
|
63
|
+
:rtype: str
|
|
64
|
+
"""
|
|
65
|
+
return self._x_enterprise_project_id
|
|
66
|
+
|
|
67
|
+
@x_enterprise_project_id.setter
|
|
68
|
+
def x_enterprise_project_id(self, x_enterprise_project_id):
|
|
69
|
+
"""Sets the x_enterprise_project_id of this ShowExecutionResultRequest.
|
|
70
|
+
|
|
71
|
+
企业项目ID。 - 创建环境时,环境会绑定企业项目ID。 - 最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。 - 该字段不传(或传为字符串“0”)时,则查询默认企业项目下的资源。 > 关于企业项目ID的获取及企业项目特性的详细信息,请参见《[企业管理服务用户指南](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0126101490.html)》。
|
|
72
|
+
|
|
73
|
+
:param x_enterprise_project_id: The x_enterprise_project_id of this ShowExecutionResultRequest.
|
|
74
|
+
:type x_enterprise_project_id: str
|
|
75
|
+
"""
|
|
76
|
+
self._x_enterprise_project_id = x_enterprise_project_id
|
|
77
|
+
|
|
78
|
+
@property
|
|
79
|
+
def x_environment_id(self):
|
|
80
|
+
"""Gets the x_environment_id of this ShowExecutionResultRequest.
|
|
81
|
+
|
|
82
|
+
环境ID。 - 获取环境ID,通过《[云应用引擎API参考](https://support.huaweicloud.com/api-cae/ListEnvironments.html)》的“获取环境列表”章节获取环境信息。 - 请求响应成功后在响应体的items数组中的一个元素即为一个环境的信息,其中id字段即是环境ID。
|
|
83
|
+
|
|
84
|
+
:return: The x_environment_id of this ShowExecutionResultRequest.
|
|
85
|
+
:rtype: str
|
|
86
|
+
"""
|
|
87
|
+
return self._x_environment_id
|
|
88
|
+
|
|
89
|
+
@x_environment_id.setter
|
|
90
|
+
def x_environment_id(self, x_environment_id):
|
|
91
|
+
"""Sets the x_environment_id of this ShowExecutionResultRequest.
|
|
92
|
+
|
|
93
|
+
环境ID。 - 获取环境ID,通过《[云应用引擎API参考](https://support.huaweicloud.com/api-cae/ListEnvironments.html)》的“获取环境列表”章节获取环境信息。 - 请求响应成功后在响应体的items数组中的一个元素即为一个环境的信息,其中id字段即是环境ID。
|
|
94
|
+
|
|
95
|
+
:param x_environment_id: The x_environment_id of this ShowExecutionResultRequest.
|
|
96
|
+
:type x_environment_id: str
|
|
97
|
+
"""
|
|
98
|
+
self._x_environment_id = x_environment_id
|
|
99
|
+
|
|
100
|
+
@property
|
|
101
|
+
def timer_rule_id(self):
|
|
102
|
+
"""Gets the timer_rule_id of this ShowExecutionResultRequest.
|
|
103
|
+
|
|
104
|
+
定时启停规则ID。
|
|
105
|
+
|
|
106
|
+
:return: The timer_rule_id of this ShowExecutionResultRequest.
|
|
107
|
+
:rtype: str
|
|
108
|
+
"""
|
|
109
|
+
return self._timer_rule_id
|
|
110
|
+
|
|
111
|
+
@timer_rule_id.setter
|
|
112
|
+
def timer_rule_id(self, timer_rule_id):
|
|
113
|
+
"""Sets the timer_rule_id of this ShowExecutionResultRequest.
|
|
114
|
+
|
|
115
|
+
定时启停规则ID。
|
|
116
|
+
|
|
117
|
+
:param timer_rule_id: The timer_rule_id of this ShowExecutionResultRequest.
|
|
118
|
+
:type timer_rule_id: str
|
|
119
|
+
"""
|
|
120
|
+
self._timer_rule_id = timer_rule_id
|
|
121
|
+
|
|
122
|
+
def to_dict(self):
|
|
123
|
+
"""Returns the model properties as a dict"""
|
|
124
|
+
result = {}
|
|
125
|
+
|
|
126
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
127
|
+
value = getattr(self, attr)
|
|
128
|
+
if isinstance(value, list):
|
|
129
|
+
result[attr] = list(map(
|
|
130
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
131
|
+
value
|
|
132
|
+
))
|
|
133
|
+
elif hasattr(value, "to_dict"):
|
|
134
|
+
result[attr] = value.to_dict()
|
|
135
|
+
elif isinstance(value, dict):
|
|
136
|
+
result[attr] = dict(map(
|
|
137
|
+
lambda item: (item[0], item[1].to_dict())
|
|
138
|
+
if hasattr(item[1], "to_dict") else item,
|
|
139
|
+
value.items()
|
|
140
|
+
))
|
|
141
|
+
else:
|
|
142
|
+
if attr in self.sensitive_list:
|
|
143
|
+
result[attr] = "****"
|
|
144
|
+
else:
|
|
145
|
+
result[attr] = value
|
|
146
|
+
|
|
147
|
+
return result
|
|
148
|
+
|
|
149
|
+
def to_str(self):
|
|
150
|
+
"""Returns the string representation of the model"""
|
|
151
|
+
import simplejson as json
|
|
152
|
+
if six.PY2:
|
|
153
|
+
import sys
|
|
154
|
+
reload(sys)
|
|
155
|
+
sys.setdefaultencoding("utf-8")
|
|
156
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
157
|
+
|
|
158
|
+
def __repr__(self):
|
|
159
|
+
"""For `print`"""
|
|
160
|
+
return self.to_str()
|
|
161
|
+
|
|
162
|
+
def __eq__(self, other):
|
|
163
|
+
"""Returns true if both objects are equal"""
|
|
164
|
+
if not isinstance(other, ShowExecutionResultRequest):
|
|
165
|
+
return False
|
|
166
|
+
|
|
167
|
+
return self.__dict__ == other.__dict__
|
|
168
|
+
|
|
169
|
+
def __ne__(self, other):
|
|
170
|
+
"""Returns true if both objects are not equal"""
|
|
171
|
+
return not self == other
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
import six
|
|
4
|
+
|
|
5
|
+
from huaweicloudsdkcore.sdk_response import SdkResponse
|
|
6
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class ShowExecutionResultResponse(SdkResponse):
|
|
10
|
+
|
|
11
|
+
"""
|
|
12
|
+
Attributes:
|
|
13
|
+
openapi_types (dict): The key is attribute name
|
|
14
|
+
and the value is attribute type.
|
|
15
|
+
attribute_map (dict): The key is attribute name
|
|
16
|
+
and the value is json key in definition.
|
|
17
|
+
"""
|
|
18
|
+
sensitive_list = []
|
|
19
|
+
|
|
20
|
+
openapi_types = {
|
|
21
|
+
'api_version': 'str',
|
|
22
|
+
'kind': 'str',
|
|
23
|
+
'spec': 'ExecutionDetails'
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
attribute_map = {
|
|
27
|
+
'api_version': 'api_version',
|
|
28
|
+
'kind': 'kind',
|
|
29
|
+
'spec': 'spec'
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
def __init__(self, api_version=None, kind=None, spec=None):
|
|
33
|
+
"""ShowExecutionResultResponse
|
|
34
|
+
|
|
35
|
+
The model defined in huaweicloud sdk
|
|
36
|
+
|
|
37
|
+
:param api_version: API版本,固定值“v1”,该值不可修改。
|
|
38
|
+
:type api_version: str
|
|
39
|
+
:param kind: API类型,固定值“TimerRule”,该值不可修改。
|
|
40
|
+
:type kind: str
|
|
41
|
+
:param spec:
|
|
42
|
+
:type spec: :class:`huaweicloudsdkcae.v1.ExecutionDetails`
|
|
43
|
+
"""
|
|
44
|
+
|
|
45
|
+
super(ShowExecutionResultResponse, self).__init__()
|
|
46
|
+
|
|
47
|
+
self._api_version = None
|
|
48
|
+
self._kind = None
|
|
49
|
+
self._spec = None
|
|
50
|
+
self.discriminator = None
|
|
51
|
+
|
|
52
|
+
if api_version is not None:
|
|
53
|
+
self.api_version = api_version
|
|
54
|
+
if kind is not None:
|
|
55
|
+
self.kind = kind
|
|
56
|
+
if spec is not None:
|
|
57
|
+
self.spec = spec
|
|
58
|
+
|
|
59
|
+
@property
|
|
60
|
+
def api_version(self):
|
|
61
|
+
"""Gets the api_version of this ShowExecutionResultResponse.
|
|
62
|
+
|
|
63
|
+
API版本,固定值“v1”,该值不可修改。
|
|
64
|
+
|
|
65
|
+
:return: The api_version of this ShowExecutionResultResponse.
|
|
66
|
+
:rtype: str
|
|
67
|
+
"""
|
|
68
|
+
return self._api_version
|
|
69
|
+
|
|
70
|
+
@api_version.setter
|
|
71
|
+
def api_version(self, api_version):
|
|
72
|
+
"""Sets the api_version of this ShowExecutionResultResponse.
|
|
73
|
+
|
|
74
|
+
API版本,固定值“v1”,该值不可修改。
|
|
75
|
+
|
|
76
|
+
:param api_version: The api_version of this ShowExecutionResultResponse.
|
|
77
|
+
:type api_version: str
|
|
78
|
+
"""
|
|
79
|
+
self._api_version = api_version
|
|
80
|
+
|
|
81
|
+
@property
|
|
82
|
+
def kind(self):
|
|
83
|
+
"""Gets the kind of this ShowExecutionResultResponse.
|
|
84
|
+
|
|
85
|
+
API类型,固定值“TimerRule”,该值不可修改。
|
|
86
|
+
|
|
87
|
+
:return: The kind of this ShowExecutionResultResponse.
|
|
88
|
+
:rtype: str
|
|
89
|
+
"""
|
|
90
|
+
return self._kind
|
|
91
|
+
|
|
92
|
+
@kind.setter
|
|
93
|
+
def kind(self, kind):
|
|
94
|
+
"""Sets the kind of this ShowExecutionResultResponse.
|
|
95
|
+
|
|
96
|
+
API类型,固定值“TimerRule”,该值不可修改。
|
|
97
|
+
|
|
98
|
+
:param kind: The kind of this ShowExecutionResultResponse.
|
|
99
|
+
:type kind: str
|
|
100
|
+
"""
|
|
101
|
+
self._kind = kind
|
|
102
|
+
|
|
103
|
+
@property
|
|
104
|
+
def spec(self):
|
|
105
|
+
"""Gets the spec of this ShowExecutionResultResponse.
|
|
106
|
+
|
|
107
|
+
:return: The spec of this ShowExecutionResultResponse.
|
|
108
|
+
:rtype: :class:`huaweicloudsdkcae.v1.ExecutionDetails`
|
|
109
|
+
"""
|
|
110
|
+
return self._spec
|
|
111
|
+
|
|
112
|
+
@spec.setter
|
|
113
|
+
def spec(self, spec):
|
|
114
|
+
"""Sets the spec of this ShowExecutionResultResponse.
|
|
115
|
+
|
|
116
|
+
:param spec: The spec of this ShowExecutionResultResponse.
|
|
117
|
+
:type spec: :class:`huaweicloudsdkcae.v1.ExecutionDetails`
|
|
118
|
+
"""
|
|
119
|
+
self._spec = spec
|
|
120
|
+
|
|
121
|
+
def to_dict(self):
|
|
122
|
+
"""Returns the model properties as a dict"""
|
|
123
|
+
result = {}
|
|
124
|
+
|
|
125
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
126
|
+
value = getattr(self, attr)
|
|
127
|
+
if isinstance(value, list):
|
|
128
|
+
result[attr] = list(map(
|
|
129
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
130
|
+
value
|
|
131
|
+
))
|
|
132
|
+
elif hasattr(value, "to_dict"):
|
|
133
|
+
result[attr] = value.to_dict()
|
|
134
|
+
elif isinstance(value, dict):
|
|
135
|
+
result[attr] = dict(map(
|
|
136
|
+
lambda item: (item[0], item[1].to_dict())
|
|
137
|
+
if hasattr(item[1], "to_dict") else item,
|
|
138
|
+
value.items()
|
|
139
|
+
))
|
|
140
|
+
else:
|
|
141
|
+
if attr in self.sensitive_list:
|
|
142
|
+
result[attr] = "****"
|
|
143
|
+
else:
|
|
144
|
+
result[attr] = value
|
|
145
|
+
|
|
146
|
+
return result
|
|
147
|
+
|
|
148
|
+
def to_str(self):
|
|
149
|
+
"""Returns the string representation of the model"""
|
|
150
|
+
import simplejson as json
|
|
151
|
+
if six.PY2:
|
|
152
|
+
import sys
|
|
153
|
+
reload(sys)
|
|
154
|
+
sys.setdefaultencoding("utf-8")
|
|
155
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
156
|
+
|
|
157
|
+
def __repr__(self):
|
|
158
|
+
"""For `print`"""
|
|
159
|
+
return self.to_str()
|
|
160
|
+
|
|
161
|
+
def __eq__(self, other):
|
|
162
|
+
"""Returns true if both objects are equal"""
|
|
163
|
+
if not isinstance(other, ShowExecutionResultResponse):
|
|
164
|
+
return False
|
|
165
|
+
|
|
166
|
+
return self.__dict__ == other.__dict__
|
|
167
|
+
|
|
168
|
+
def __ne__(self, other):
|
|
169
|
+
"""Returns true if both objects are not equal"""
|
|
170
|
+
return not self == other
|