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,40 +18,46 @@ class ShowJobRequest:
|
|
|
18
18
|
|
|
19
19
|
openapi_types = {
|
|
20
20
|
'job_id': 'str',
|
|
21
|
-
'x_enterprise_project_id': 'str'
|
|
21
|
+
'x_enterprise_project_id': 'str',
|
|
22
|
+
'x_environment_id': 'str'
|
|
22
23
|
}
|
|
23
24
|
|
|
24
25
|
attribute_map = {
|
|
25
26
|
'job_id': 'job_id',
|
|
26
|
-
'x_enterprise_project_id': 'X-Enterprise-Project-ID'
|
|
27
|
+
'x_enterprise_project_id': 'X-Enterprise-Project-ID',
|
|
28
|
+
'x_environment_id': 'X-Environment-ID'
|
|
27
29
|
}
|
|
28
30
|
|
|
29
|
-
def __init__(self, job_id=None, x_enterprise_project_id=None):
|
|
31
|
+
def __init__(self, job_id=None, x_enterprise_project_id=None, x_environment_id=None):
|
|
30
32
|
"""ShowJobRequest
|
|
31
33
|
|
|
32
34
|
The model defined in huaweicloud sdk
|
|
33
35
|
|
|
34
|
-
:param job_id: 任务
|
|
36
|
+
:param job_id: 任务ID。
|
|
35
37
|
:type job_id: str
|
|
36
|
-
:param x_enterprise_project_id:
|
|
38
|
+
:param x_enterprise_project_id: 企业项目ID。 - 创建环境时,环境会绑定企业项目ID。 - 最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。 - 该字段不传(或传为字符串“0”)时,则查询默认企业项目下的资源。 > 关于企业项目ID的获取及企业项目特性的详细信息,请参见《[企业管理服务用户指南](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0126101490.html)》。
|
|
37
39
|
:type x_enterprise_project_id: str
|
|
40
|
+
:param x_environment_id: 环境ID。 - 获取环境ID,通过《[云应用引擎API参考](https://support.huaweicloud.com/api-cae/ListEnvironments.html)》的“获取环境列表”章节获取环境信息。 - 请求响应成功后在响应体的items数组中的一个元素即为一个环境的信息,其中id字段即是环境ID。
|
|
41
|
+
:type x_environment_id: str
|
|
38
42
|
"""
|
|
39
43
|
|
|
40
44
|
|
|
41
45
|
|
|
42
46
|
self._job_id = None
|
|
43
47
|
self._x_enterprise_project_id = None
|
|
48
|
+
self._x_environment_id = None
|
|
44
49
|
self.discriminator = None
|
|
45
50
|
|
|
46
51
|
self.job_id = job_id
|
|
47
52
|
if x_enterprise_project_id is not None:
|
|
48
53
|
self.x_enterprise_project_id = x_enterprise_project_id
|
|
54
|
+
self.x_environment_id = x_environment_id
|
|
49
55
|
|
|
50
56
|
@property
|
|
51
57
|
def job_id(self):
|
|
52
58
|
"""Gets the job_id of this ShowJobRequest.
|
|
53
59
|
|
|
54
|
-
任务
|
|
60
|
+
任务ID。
|
|
55
61
|
|
|
56
62
|
:return: The job_id of this ShowJobRequest.
|
|
57
63
|
:rtype: str
|
|
@@ -62,7 +68,7 @@ class ShowJobRequest:
|
|
|
62
68
|
def job_id(self, job_id):
|
|
63
69
|
"""Sets the job_id of this ShowJobRequest.
|
|
64
70
|
|
|
65
|
-
任务
|
|
71
|
+
任务ID。
|
|
66
72
|
|
|
67
73
|
:param job_id: The job_id of this ShowJobRequest.
|
|
68
74
|
:type job_id: str
|
|
@@ -73,7 +79,7 @@ class ShowJobRequest:
|
|
|
73
79
|
def x_enterprise_project_id(self):
|
|
74
80
|
"""Gets the x_enterprise_project_id of this ShowJobRequest.
|
|
75
81
|
|
|
76
|
-
|
|
82
|
+
企业项目ID。 - 创建环境时,环境会绑定企业项目ID。 - 最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。 - 该字段不传(或传为字符串“0”)时,则查询默认企业项目下的资源。 > 关于企业项目ID的获取及企业项目特性的详细信息,请参见《[企业管理服务用户指南](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0126101490.html)》。
|
|
77
83
|
|
|
78
84
|
:return: The x_enterprise_project_id of this ShowJobRequest.
|
|
79
85
|
:rtype: str
|
|
@@ -84,13 +90,35 @@ class ShowJobRequest:
|
|
|
84
90
|
def x_enterprise_project_id(self, x_enterprise_project_id):
|
|
85
91
|
"""Sets the x_enterprise_project_id of this ShowJobRequest.
|
|
86
92
|
|
|
87
|
-
|
|
93
|
+
企业项目ID。 - 创建环境时,环境会绑定企业项目ID。 - 最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。 - 该字段不传(或传为字符串“0”)时,则查询默认企业项目下的资源。 > 关于企业项目ID的获取及企业项目特性的详细信息,请参见《[企业管理服务用户指南](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0126101490.html)》。
|
|
88
94
|
|
|
89
95
|
:param x_enterprise_project_id: The x_enterprise_project_id of this ShowJobRequest.
|
|
90
96
|
:type x_enterprise_project_id: str
|
|
91
97
|
"""
|
|
92
98
|
self._x_enterprise_project_id = x_enterprise_project_id
|
|
93
99
|
|
|
100
|
+
@property
|
|
101
|
+
def x_environment_id(self):
|
|
102
|
+
"""Gets the x_environment_id of this ShowJobRequest.
|
|
103
|
+
|
|
104
|
+
环境ID。 - 获取环境ID,通过《[云应用引擎API参考](https://support.huaweicloud.com/api-cae/ListEnvironments.html)》的“获取环境列表”章节获取环境信息。 - 请求响应成功后在响应体的items数组中的一个元素即为一个环境的信息,其中id字段即是环境ID。
|
|
105
|
+
|
|
106
|
+
:return: The x_environment_id of this ShowJobRequest.
|
|
107
|
+
:rtype: str
|
|
108
|
+
"""
|
|
109
|
+
return self._x_environment_id
|
|
110
|
+
|
|
111
|
+
@x_environment_id.setter
|
|
112
|
+
def x_environment_id(self, x_environment_id):
|
|
113
|
+
"""Sets the x_environment_id of this ShowJobRequest.
|
|
114
|
+
|
|
115
|
+
环境ID。 - 获取环境ID,通过《[云应用引擎API参考](https://support.huaweicloud.com/api-cae/ListEnvironments.html)》的“获取环境列表”章节获取环境信息。 - 请求响应成功后在响应体的items数组中的一个元素即为一个环境的信息,其中id字段即是环境ID。
|
|
116
|
+
|
|
117
|
+
:param x_environment_id: The x_environment_id of this ShowJobRequest.
|
|
118
|
+
:type x_environment_id: str
|
|
119
|
+
"""
|
|
120
|
+
self._x_environment_id = x_environment_id
|
|
121
|
+
|
|
94
122
|
def to_dict(self):
|
|
95
123
|
"""Returns the model properties as a dict"""
|
|
96
124
|
result = {}
|
|
@@ -34,9 +34,9 @@ class ShowJobResponse(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类型,固定值“Job”,该值不可修改。
|
|
40
40
|
:type kind: str
|
|
41
41
|
:param spec:
|
|
42
42
|
:type spec: :class:`huaweicloudsdkcae.v1.JobSpec`
|
|
@@ -60,7 +60,7 @@ class ShowJobResponse(SdkResponse):
|
|
|
60
60
|
def api_version(self):
|
|
61
61
|
"""Gets the api_version of this ShowJobResponse.
|
|
62
62
|
|
|
63
|
-
API
|
|
63
|
+
API版本,固定值“v1”,该值不可修改。
|
|
64
64
|
|
|
65
65
|
:return: The api_version of this ShowJobResponse.
|
|
66
66
|
:rtype: str
|
|
@@ -71,7 +71,7 @@ class ShowJobResponse(SdkResponse):
|
|
|
71
71
|
def api_version(self, api_version):
|
|
72
72
|
"""Sets the api_version of this ShowJobResponse.
|
|
73
73
|
|
|
74
|
-
API
|
|
74
|
+
API版本,固定值“v1”,该值不可修改。
|
|
75
75
|
|
|
76
76
|
:param api_version: The api_version of this ShowJobResponse.
|
|
77
77
|
:type api_version: str
|
|
@@ -82,7 +82,7 @@ class ShowJobResponse(SdkResponse):
|
|
|
82
82
|
def kind(self):
|
|
83
83
|
"""Gets the kind of this ShowJobResponse.
|
|
84
84
|
|
|
85
|
-
|
|
85
|
+
API类型,固定值“Job”,该值不可修改。
|
|
86
86
|
|
|
87
87
|
:return: The kind of this ShowJobResponse.
|
|
88
88
|
:rtype: str
|
|
@@ -93,7 +93,7 @@ class ShowJobResponse(SdkResponse):
|
|
|
93
93
|
def kind(self, kind):
|
|
94
94
|
"""Sets the kind of this ShowJobResponse.
|
|
95
95
|
|
|
96
|
-
|
|
96
|
+
API类型,固定值“Job”,该值不可修改。
|
|
97
97
|
|
|
98
98
|
:param kind: The kind of this ShowJobResponse.
|
|
99
99
|
:type kind: str
|
|
@@ -37,11 +37,11 @@ class Source:
|
|
|
37
37
|
|
|
38
38
|
:param code:
|
|
39
39
|
:type code: :class:`huaweicloudsdkcae.v1.Repo`
|
|
40
|
-
:param type:
|
|
40
|
+
:param type: 源类型。
|
|
41
41
|
:type type: str
|
|
42
|
-
:param sub_type:
|
|
42
|
+
:param sub_type: 源子类型。 - 源类型为code时,子类型表示不同的代码仓库,如DevCloud(CodeArts)、GitLab、GitHub、Gitee、Bitbucket。 - 源类型为softwarePackage时,子类型表示不同的软件包仓库,如BinObs、BinDevCloud(CodeArts软件发布库)。
|
|
43
43
|
:type sub_type: str
|
|
44
|
-
:param url: url
|
|
44
|
+
:param url: url地址。 - 源类型为image时,url地址为镜像地址。 - 源类型为code时,url地址为git地址。 - 源类型为softwarePackage时,url地址为软件包地址。
|
|
45
45
|
:type url: str
|
|
46
46
|
"""
|
|
47
47
|
|
|
@@ -82,7 +82,7 @@ class Source:
|
|
|
82
82
|
def type(self):
|
|
83
83
|
"""Gets the type of this Source.
|
|
84
84
|
|
|
85
|
-
|
|
85
|
+
源类型。
|
|
86
86
|
|
|
87
87
|
:return: The type of this Source.
|
|
88
88
|
:rtype: str
|
|
@@ -93,7 +93,7 @@ class Source:
|
|
|
93
93
|
def type(self, type):
|
|
94
94
|
"""Sets the type of this Source.
|
|
95
95
|
|
|
96
|
-
|
|
96
|
+
源类型。
|
|
97
97
|
|
|
98
98
|
:param type: The type of this Source.
|
|
99
99
|
:type type: str
|
|
@@ -104,7 +104,7 @@ class Source:
|
|
|
104
104
|
def sub_type(self):
|
|
105
105
|
"""Gets the sub_type of this Source.
|
|
106
106
|
|
|
107
|
-
|
|
107
|
+
源子类型。 - 源类型为code时,子类型表示不同的代码仓库,如DevCloud(CodeArts)、GitLab、GitHub、Gitee、Bitbucket。 - 源类型为softwarePackage时,子类型表示不同的软件包仓库,如BinObs、BinDevCloud(CodeArts软件发布库)。
|
|
108
108
|
|
|
109
109
|
:return: The sub_type of this Source.
|
|
110
110
|
:rtype: str
|
|
@@ -115,7 +115,7 @@ class Source:
|
|
|
115
115
|
def sub_type(self, sub_type):
|
|
116
116
|
"""Sets the sub_type of this Source.
|
|
117
117
|
|
|
118
|
-
|
|
118
|
+
源子类型。 - 源类型为code时,子类型表示不同的代码仓库,如DevCloud(CodeArts)、GitLab、GitHub、Gitee、Bitbucket。 - 源类型为softwarePackage时,子类型表示不同的软件包仓库,如BinObs、BinDevCloud(CodeArts软件发布库)。
|
|
119
119
|
|
|
120
120
|
:param sub_type: The sub_type of this Source.
|
|
121
121
|
:type sub_type: str
|
|
@@ -126,7 +126,7 @@ class Source:
|
|
|
126
126
|
def url(self):
|
|
127
127
|
"""Gets the url of this Source.
|
|
128
128
|
|
|
129
|
-
url
|
|
129
|
+
url地址。 - 源类型为image时,url地址为镜像地址。 - 源类型为code时,url地址为git地址。 - 源类型为softwarePackage时,url地址为软件包地址。
|
|
130
130
|
|
|
131
131
|
:return: The url of this Source.
|
|
132
132
|
:rtype: str
|
|
@@ -137,7 +137,7 @@ class Source:
|
|
|
137
137
|
def url(self, url):
|
|
138
138
|
"""Sets the url of this Source.
|
|
139
139
|
|
|
140
|
-
url
|
|
140
|
+
url地址。 - 源类型为image时,url地址为镜像地址。 - 源类型为code时,url地址为git地址。 - 源类型为softwarePackage时,url地址为软件包地址。
|
|
141
141
|
|
|
142
142
|
:param url: The url of this Source.
|
|
143
143
|
:type url: str
|
|
@@ -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 SpecCert:
|
|
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
|
+
'crt': 'str',
|
|
21
|
+
'key': 'str',
|
|
22
|
+
'policy': 'str',
|
|
23
|
+
'created_at': 'datetime'
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
attribute_map = {
|
|
27
|
+
'crt': 'crt',
|
|
28
|
+
'key': 'key',
|
|
29
|
+
'policy': 'policy',
|
|
30
|
+
'created_at': 'created_at'
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
def __init__(self, crt=None, key=None, policy=None, created_at=None):
|
|
34
|
+
"""SpecCert
|
|
35
|
+
|
|
36
|
+
The model defined in huaweicloud sdk
|
|
37
|
+
|
|
38
|
+
:param crt: 证书内容。
|
|
39
|
+
:type crt: str
|
|
40
|
+
:param key: 私钥内容。
|
|
41
|
+
:type key: str
|
|
42
|
+
:param policy: 安全策略。 - tls-1-2-strict - tls-1-2 - tls-1-1 - tls-1-0
|
|
43
|
+
:type policy: str
|
|
44
|
+
:param created_at: 创建时间。
|
|
45
|
+
:type created_at: datetime
|
|
46
|
+
"""
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
self._crt = None
|
|
51
|
+
self._key = None
|
|
52
|
+
self._policy = None
|
|
53
|
+
self._created_at = None
|
|
54
|
+
self.discriminator = None
|
|
55
|
+
|
|
56
|
+
if crt is not None:
|
|
57
|
+
self.crt = crt
|
|
58
|
+
if key is not None:
|
|
59
|
+
self.key = key
|
|
60
|
+
if policy is not None:
|
|
61
|
+
self.policy = policy
|
|
62
|
+
if created_at is not None:
|
|
63
|
+
self.created_at = created_at
|
|
64
|
+
|
|
65
|
+
@property
|
|
66
|
+
def crt(self):
|
|
67
|
+
"""Gets the crt of this SpecCert.
|
|
68
|
+
|
|
69
|
+
证书内容。
|
|
70
|
+
|
|
71
|
+
:return: The crt of this SpecCert.
|
|
72
|
+
:rtype: str
|
|
73
|
+
"""
|
|
74
|
+
return self._crt
|
|
75
|
+
|
|
76
|
+
@crt.setter
|
|
77
|
+
def crt(self, crt):
|
|
78
|
+
"""Sets the crt of this SpecCert.
|
|
79
|
+
|
|
80
|
+
证书内容。
|
|
81
|
+
|
|
82
|
+
:param crt: The crt of this SpecCert.
|
|
83
|
+
:type crt: str
|
|
84
|
+
"""
|
|
85
|
+
self._crt = crt
|
|
86
|
+
|
|
87
|
+
@property
|
|
88
|
+
def key(self):
|
|
89
|
+
"""Gets the key of this SpecCert.
|
|
90
|
+
|
|
91
|
+
私钥内容。
|
|
92
|
+
|
|
93
|
+
:return: The key of this SpecCert.
|
|
94
|
+
:rtype: str
|
|
95
|
+
"""
|
|
96
|
+
return self._key
|
|
97
|
+
|
|
98
|
+
@key.setter
|
|
99
|
+
def key(self, key):
|
|
100
|
+
"""Sets the key of this SpecCert.
|
|
101
|
+
|
|
102
|
+
私钥内容。
|
|
103
|
+
|
|
104
|
+
:param key: The key of this SpecCert.
|
|
105
|
+
:type key: str
|
|
106
|
+
"""
|
|
107
|
+
self._key = key
|
|
108
|
+
|
|
109
|
+
@property
|
|
110
|
+
def policy(self):
|
|
111
|
+
"""Gets the policy of this SpecCert.
|
|
112
|
+
|
|
113
|
+
安全策略。 - tls-1-2-strict - tls-1-2 - tls-1-1 - tls-1-0
|
|
114
|
+
|
|
115
|
+
:return: The policy of this SpecCert.
|
|
116
|
+
:rtype: str
|
|
117
|
+
"""
|
|
118
|
+
return self._policy
|
|
119
|
+
|
|
120
|
+
@policy.setter
|
|
121
|
+
def policy(self, policy):
|
|
122
|
+
"""Sets the policy of this SpecCert.
|
|
123
|
+
|
|
124
|
+
安全策略。 - tls-1-2-strict - tls-1-2 - tls-1-1 - tls-1-0
|
|
125
|
+
|
|
126
|
+
:param policy: The policy of this SpecCert.
|
|
127
|
+
:type policy: str
|
|
128
|
+
"""
|
|
129
|
+
self._policy = policy
|
|
130
|
+
|
|
131
|
+
@property
|
|
132
|
+
def created_at(self):
|
|
133
|
+
"""Gets the created_at of this SpecCert.
|
|
134
|
+
|
|
135
|
+
创建时间。
|
|
136
|
+
|
|
137
|
+
:return: The created_at of this SpecCert.
|
|
138
|
+
:rtype: datetime
|
|
139
|
+
"""
|
|
140
|
+
return self._created_at
|
|
141
|
+
|
|
142
|
+
@created_at.setter
|
|
143
|
+
def created_at(self, created_at):
|
|
144
|
+
"""Sets the created_at of this SpecCert.
|
|
145
|
+
|
|
146
|
+
创建时间。
|
|
147
|
+
|
|
148
|
+
:param created_at: The created_at of this SpecCert.
|
|
149
|
+
:type created_at: datetime
|
|
150
|
+
"""
|
|
151
|
+
self._created_at = created_at
|
|
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, SpecCert):
|
|
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
|
|
@@ -17,109 +17,65 @@ class Task:
|
|
|
17
17
|
sensitive_list = []
|
|
18
18
|
|
|
19
19
|
openapi_types = {
|
|
20
|
-
'created_at': 'str',
|
|
21
|
-
'detail': 'str',
|
|
22
20
|
'index': 'int',
|
|
23
21
|
'name': 'str',
|
|
24
22
|
'status': 'str',
|
|
23
|
+
'detail': 'str',
|
|
24
|
+
'created_at': 'str',
|
|
25
25
|
'updated_at': 'str'
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
attribute_map = {
|
|
29
|
-
'created_at': 'created_at',
|
|
30
|
-
'detail': 'detail',
|
|
31
29
|
'index': 'index',
|
|
32
30
|
'name': 'name',
|
|
33
31
|
'status': 'status',
|
|
32
|
+
'detail': 'detail',
|
|
33
|
+
'created_at': 'created_at',
|
|
34
34
|
'updated_at': 'updated_at'
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
def __init__(self,
|
|
37
|
+
def __init__(self, index=None, name=None, status=None, detail=None, created_at=None, updated_at=None):
|
|
38
38
|
"""Task
|
|
39
39
|
|
|
40
40
|
The model defined in huaweicloud sdk
|
|
41
41
|
|
|
42
|
-
:param created_at: 创建时间。
|
|
43
|
-
:type created_at: str
|
|
44
|
-
:param detail: 任务详情。
|
|
45
|
-
:type detail: str
|
|
46
42
|
:param index: 任务序号。
|
|
47
43
|
:type index: int
|
|
48
|
-
:param name:
|
|
44
|
+
:param name: 任务名称。
|
|
49
45
|
:type name: str
|
|
50
|
-
:param status:
|
|
46
|
+
:param status: 任务状态。
|
|
51
47
|
:type status: str
|
|
52
|
-
:param
|
|
48
|
+
:param detail: 任务详情。
|
|
49
|
+
:type detail: str
|
|
50
|
+
:param created_at: 创建时间。
|
|
51
|
+
:type created_at: str
|
|
52
|
+
:param updated_at: 更新时间。
|
|
53
53
|
:type updated_at: str
|
|
54
54
|
"""
|
|
55
55
|
|
|
56
56
|
|
|
57
57
|
|
|
58
|
-
self._created_at = None
|
|
59
|
-
self._detail = None
|
|
60
58
|
self._index = None
|
|
61
59
|
self._name = None
|
|
62
60
|
self._status = None
|
|
61
|
+
self._detail = None
|
|
62
|
+
self._created_at = None
|
|
63
63
|
self._updated_at = None
|
|
64
64
|
self.discriminator = None
|
|
65
65
|
|
|
66
|
-
if created_at is not None:
|
|
67
|
-
self.created_at = created_at
|
|
68
|
-
if detail is not None:
|
|
69
|
-
self.detail = detail
|
|
70
66
|
if index is not None:
|
|
71
67
|
self.index = index
|
|
72
68
|
if name is not None:
|
|
73
69
|
self.name = name
|
|
74
70
|
if status is not None:
|
|
75
71
|
self.status = status
|
|
72
|
+
if detail is not None:
|
|
73
|
+
self.detail = detail
|
|
74
|
+
if created_at is not None:
|
|
75
|
+
self.created_at = created_at
|
|
76
76
|
if updated_at is not None:
|
|
77
77
|
self.updated_at = updated_at
|
|
78
78
|
|
|
79
|
-
@property
|
|
80
|
-
def created_at(self):
|
|
81
|
-
"""Gets the created_at of this Task.
|
|
82
|
-
|
|
83
|
-
创建时间。
|
|
84
|
-
|
|
85
|
-
:return: The created_at of this Task.
|
|
86
|
-
:rtype: str
|
|
87
|
-
"""
|
|
88
|
-
return self._created_at
|
|
89
|
-
|
|
90
|
-
@created_at.setter
|
|
91
|
-
def created_at(self, created_at):
|
|
92
|
-
"""Sets the created_at of this Task.
|
|
93
|
-
|
|
94
|
-
创建时间。
|
|
95
|
-
|
|
96
|
-
:param created_at: The created_at of this Task.
|
|
97
|
-
:type created_at: str
|
|
98
|
-
"""
|
|
99
|
-
self._created_at = created_at
|
|
100
|
-
|
|
101
|
-
@property
|
|
102
|
-
def detail(self):
|
|
103
|
-
"""Gets the detail of this Task.
|
|
104
|
-
|
|
105
|
-
任务详情。
|
|
106
|
-
|
|
107
|
-
:return: The detail of this Task.
|
|
108
|
-
:rtype: str
|
|
109
|
-
"""
|
|
110
|
-
return self._detail
|
|
111
|
-
|
|
112
|
-
@detail.setter
|
|
113
|
-
def detail(self, detail):
|
|
114
|
-
"""Sets the detail of this Task.
|
|
115
|
-
|
|
116
|
-
任务详情。
|
|
117
|
-
|
|
118
|
-
:param detail: The detail of this Task.
|
|
119
|
-
:type detail: str
|
|
120
|
-
"""
|
|
121
|
-
self._detail = detail
|
|
122
|
-
|
|
123
79
|
@property
|
|
124
80
|
def index(self):
|
|
125
81
|
"""Gets the index of this Task.
|
|
@@ -146,7 +102,7 @@ class Task:
|
|
|
146
102
|
def name(self):
|
|
147
103
|
"""Gets the name of this Task.
|
|
148
104
|
|
|
149
|
-
|
|
105
|
+
任务名称。
|
|
150
106
|
|
|
151
107
|
:return: The name of this Task.
|
|
152
108
|
:rtype: str
|
|
@@ -157,7 +113,7 @@ class Task:
|
|
|
157
113
|
def name(self, name):
|
|
158
114
|
"""Sets the name of this Task.
|
|
159
115
|
|
|
160
|
-
|
|
116
|
+
任务名称。
|
|
161
117
|
|
|
162
118
|
:param name: The name of this Task.
|
|
163
119
|
:type name: str
|
|
@@ -168,7 +124,7 @@ class Task:
|
|
|
168
124
|
def status(self):
|
|
169
125
|
"""Gets the status of this Task.
|
|
170
126
|
|
|
171
|
-
|
|
127
|
+
任务状态。
|
|
172
128
|
|
|
173
129
|
:return: The status of this Task.
|
|
174
130
|
:rtype: str
|
|
@@ -179,18 +135,62 @@ class Task:
|
|
|
179
135
|
def status(self, status):
|
|
180
136
|
"""Sets the status of this Task.
|
|
181
137
|
|
|
182
|
-
|
|
138
|
+
任务状态。
|
|
183
139
|
|
|
184
140
|
:param status: The status of this Task.
|
|
185
141
|
:type status: str
|
|
186
142
|
"""
|
|
187
143
|
self._status = status
|
|
188
144
|
|
|
145
|
+
@property
|
|
146
|
+
def detail(self):
|
|
147
|
+
"""Gets the detail of this Task.
|
|
148
|
+
|
|
149
|
+
任务详情。
|
|
150
|
+
|
|
151
|
+
:return: The detail of this Task.
|
|
152
|
+
:rtype: str
|
|
153
|
+
"""
|
|
154
|
+
return self._detail
|
|
155
|
+
|
|
156
|
+
@detail.setter
|
|
157
|
+
def detail(self, detail):
|
|
158
|
+
"""Sets the detail of this Task.
|
|
159
|
+
|
|
160
|
+
任务详情。
|
|
161
|
+
|
|
162
|
+
:param detail: The detail of this Task.
|
|
163
|
+
:type detail: str
|
|
164
|
+
"""
|
|
165
|
+
self._detail = detail
|
|
166
|
+
|
|
167
|
+
@property
|
|
168
|
+
def created_at(self):
|
|
169
|
+
"""Gets the created_at of this Task.
|
|
170
|
+
|
|
171
|
+
创建时间。
|
|
172
|
+
|
|
173
|
+
:return: The created_at of this Task.
|
|
174
|
+
:rtype: str
|
|
175
|
+
"""
|
|
176
|
+
return self._created_at
|
|
177
|
+
|
|
178
|
+
@created_at.setter
|
|
179
|
+
def created_at(self, created_at):
|
|
180
|
+
"""Sets the created_at of this Task.
|
|
181
|
+
|
|
182
|
+
创建时间。
|
|
183
|
+
|
|
184
|
+
:param created_at: The created_at of this Task.
|
|
185
|
+
:type created_at: str
|
|
186
|
+
"""
|
|
187
|
+
self._created_at = created_at
|
|
188
|
+
|
|
189
189
|
@property
|
|
190
190
|
def updated_at(self):
|
|
191
191
|
"""Gets the updated_at of this Task.
|
|
192
192
|
|
|
193
|
-
|
|
193
|
+
更新时间。
|
|
194
194
|
|
|
195
195
|
:return: The updated_at of this Task.
|
|
196
196
|
:rtype: str
|
|
@@ -201,7 +201,7 @@ class Task:
|
|
|
201
201
|
def updated_at(self, updated_at):
|
|
202
202
|
"""Sets the updated_at of this Task.
|
|
203
203
|
|
|
204
|
-
|
|
204
|
+
更新时间。
|
|
205
205
|
|
|
206
206
|
:param updated_at: The updated_at of this Task.
|
|
207
207
|
:type updated_at: str
|