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.

Files changed (142) hide show
  1. huaweicloudsdkcae/v1/__init__.py +57 -13
  2. huaweicloudsdkcae/v1/cae_async_client.py +1049 -311
  3. huaweicloudsdkcae/v1/cae_client.py +1037 -311
  4. huaweicloudsdkcae/v1/model/__init__.py +56 -11
  5. huaweicloudsdkcae/v1/model/access.py +6 -6
  6. huaweicloudsdkcae/v1/model/action_on_component_source.py +198 -0
  7. huaweicloudsdkcae/v1/model/action_on_component_spec.py +7 -7
  8. huaweicloudsdkcae/v1/model/agency.py +7 -8
  9. huaweicloudsdkcae/v1/model/agency_item.py +3 -3
  10. huaweicloudsdkcae/v1/model/agency_metadata.py +3 -3
  11. huaweicloudsdkcae/v1/model/{log_strategy.py → app_info.py} +42 -42
  12. huaweicloudsdkcae/v1/model/application_item.py +96 -9
  13. huaweicloudsdkcae/v1/model/application_metadata.py +9 -9
  14. huaweicloudsdkcae/v1/model/archive.py +3 -3
  15. huaweicloudsdkcae/v1/model/build.py +5 -1
  16. huaweicloudsdkcae/v1/model/cert_item.py +136 -0
  17. huaweicloudsdkcae/v1/model/cert_req.py +190 -0
  18. huaweicloudsdkcae/v1/model/component_execution_result.py +202 -0
  19. huaweicloudsdkcae/v1/model/component_info.py +144 -0
  20. huaweicloudsdkcae/v1/model/component_item.py +62 -33
  21. huaweicloudsdkcae/v1/model/component_snapshot_context.py +724 -0
  22. huaweicloudsdkcae/v1/model/component_snapshot_item.py +70 -74
  23. huaweicloudsdkcae/v1/model/component_spec.py +126 -97
  24. huaweicloudsdkcae/v1/model/configuration.py +9 -9
  25. huaweicloudsdkcae/v1/model/configuration_item.py +6 -6
  26. huaweicloudsdkcae/v1/model/create_application_request.py +32 -32
  27. huaweicloudsdkcae/v1/model/create_application_request_body.py +6 -6
  28. huaweicloudsdkcae/v1/model/create_application_request_body_metadata.py +6 -6
  29. huaweicloudsdkcae/v1/model/create_application_response.py +6 -6
  30. huaweicloudsdkcae/v1/model/create_certificate_request.py +168 -0
  31. huaweicloudsdkcae/v1/model/create_certificate_response.py +174 -0
  32. huaweicloudsdkcae/v1/model/create_component_configuration_request.py +53 -53
  33. huaweicloudsdkcae/v1/model/create_component_configuration_request_body.py +6 -6
  34. huaweicloudsdkcae/v1/model/create_component_request.py +40 -40
  35. huaweicloudsdkcae/v1/model/create_component_request_body.py +6 -6
  36. huaweicloudsdkcae/v1/model/create_component_request_body_metadata.py +4 -5
  37. huaweicloudsdkcae/v1/model/create_component_request_body_spec.py +6 -6
  38. huaweicloudsdkcae/v1/model/create_component_response.py +10 -10
  39. huaweicloudsdkcae/v1/model/create_component_spec.py +306 -0
  40. huaweicloudsdkcae/v1/model/create_domain_req.py +166 -0
  41. huaweicloudsdkcae/v1/model/create_domain_request.py +168 -0
  42. huaweicloudsdkcae/v1/model/create_domain_response.py +174 -0
  43. huaweicloudsdkcae/v1/model/create_environment_request.py +3 -3
  44. huaweicloudsdkcae/v1/model/create_environment_request_body.py +6 -6
  45. huaweicloudsdkcae/v1/model/create_environment_request_body_metadata.py +6 -34
  46. huaweicloudsdkcae/v1/model/create_environment_response.py +20 -74
  47. huaweicloudsdkcae/v1/model/create_meta_cert.py +114 -0
  48. huaweicloudsdkcae/v1/model/create_meta_domain.py +114 -0
  49. huaweicloudsdkcae/v1/model/create_spec_cert.py +170 -0
  50. huaweicloudsdkcae/v1/model/create_timer_rule_req.py +169 -0
  51. huaweicloudsdkcae/v1/model/create_timer_rule_request.py +168 -0
  52. huaweicloudsdkcae/v1/model/create_timer_rule_response.py +170 -0
  53. huaweicloudsdkcae/v1/model/create_volume_req.py +6 -6
  54. huaweicloudsdkcae/v1/model/create_volume_request.py +32 -32
  55. huaweicloudsdkcae/v1/model/delete_application_request.py +37 -37
  56. huaweicloudsdkcae/v1/model/delete_certificate_request.py +171 -0
  57. huaweicloudsdkcae/v1/model/delete_certificate_response.py +85 -0
  58. huaweicloudsdkcae/v1/model/delete_component_configuration_request.py +53 -53
  59. huaweicloudsdkcae/v1/model/delete_component_request.py +53 -53
  60. huaweicloudsdkcae/v1/model/delete_domain_request.py +171 -0
  61. huaweicloudsdkcae/v1/model/delete_domain_response.py +85 -0
  62. huaweicloudsdkcae/v1/model/delete_environment_request.py +6 -6
  63. huaweicloudsdkcae/v1/model/delete_environment_response.py +3 -3
  64. huaweicloudsdkcae/v1/model/delete_timer_rule_request.py +171 -0
  65. huaweicloudsdkcae/v1/model/delete_timer_rule_response.py +85 -0
  66. huaweicloudsdkcae/v1/model/delete_volume_request.py +37 -37
  67. huaweicloudsdkcae/v1/model/delete_volume_response.py +9 -9
  68. huaweicloudsdkcae/v1/model/domain_item.py +111 -0
  69. huaweicloudsdkcae/v1/model/environment_item.py +13 -42
  70. huaweicloudsdkcae/v1/model/event_item.py +36 -7
  71. huaweicloudsdkcae/v1/model/execute_action_request.py +53 -53
  72. huaweicloudsdkcae/v1/model/execute_action_request_body.py +6 -6
  73. huaweicloudsdkcae/v1/model/execute_action_request_body_metadata.py +3 -3
  74. huaweicloudsdkcae/v1/model/execute_action_response.py +3 -3
  75. huaweicloudsdkcae/v1/model/execution_details.py +144 -0
  76. huaweicloudsdkcae/v1/model/instance.py +3 -3
  77. huaweicloudsdkcae/v1/model/job_spec.py +36 -7
  78. huaweicloudsdkcae/v1/model/{show_agency_request.py → list_agencies_request.py} +3 -3
  79. huaweicloudsdkcae/v1/model/list_agencies_response.py +174 -0
  80. huaweicloudsdkcae/v1/model/list_applications_request.py +34 -34
  81. huaweicloudsdkcae/v1/model/list_applications_response.py +6 -6
  82. huaweicloudsdkcae/v1/model/{list_events_request.py → list_certificates_request.py} +29 -85
  83. huaweicloudsdkcae/v1/model/list_certificates_response.py +174 -0
  84. huaweicloudsdkcae/v1/model/list_component_configurations_request.py +199 -0
  85. huaweicloudsdkcae/v1/model/{list_configurations_response.py → list_component_configurations_response.py} +22 -22
  86. huaweicloudsdkcae/v1/model/list_component_events_request.py +199 -0
  87. huaweicloudsdkcae/v1/model/{list_events_response.py → list_component_events_response.py} +22 -22
  88. huaweicloudsdkcae/v1/model/list_component_instances_request.py +199 -0
  89. huaweicloudsdkcae/v1/model/{list_instances_response.py → list_component_instances_response.py} +22 -22
  90. huaweicloudsdkcae/v1/model/list_component_snapshots_request.py +53 -53
  91. huaweicloudsdkcae/v1/model/list_component_snapshots_response.py +6 -6
  92. huaweicloudsdkcae/v1/model/list_components_request.py +52 -52
  93. huaweicloudsdkcae/v1/model/list_components_response.py +6 -6
  94. huaweicloudsdkcae/v1/model/{list_configurations_request.py → list_domains_request.py} +29 -85
  95. huaweicloudsdkcae/v1/model/list_domains_response.py +174 -0
  96. huaweicloudsdkcae/v1/model/list_environments_request.py +3 -3
  97. huaweicloudsdkcae/v1/model/list_environments_response.py +9 -9
  98. huaweicloudsdkcae/v1/model/{list_instances_request.py → list_timer_rules_request.py} +29 -85
  99. huaweicloudsdkcae/v1/model/{show_agency_response.py → list_timer_rules_response.py} +27 -31
  100. huaweicloudsdkcae/v1/model/list_volumes_request.py +35 -35
  101. huaweicloudsdkcae/v1/model/list_volumes_response.py +9 -9
  102. huaweicloudsdkcae/v1/model/meta_cert.py +144 -0
  103. huaweicloudsdkcae/v1/model/meta_domain.py +231 -0
  104. huaweicloudsdkcae/v1/model/metadata_response.py +46 -133
  105. huaweicloudsdkcae/v1/model/mount_component.py +9 -9
  106. huaweicloudsdkcae/v1/model/repo.py +6 -6
  107. huaweicloudsdkcae/v1/model/retry_job_request.py +63 -6
  108. huaweicloudsdkcae/v1/model/show_application_request.py +37 -37
  109. huaweicloudsdkcae/v1/model/show_application_response.py +6 -6
  110. huaweicloudsdkcae/v1/model/show_component_request.py +53 -53
  111. huaweicloudsdkcae/v1/model/show_component_response.py +6 -6
  112. huaweicloudsdkcae/v1/model/show_execution_result_request.py +171 -0
  113. huaweicloudsdkcae/v1/model/show_execution_result_response.py +170 -0
  114. huaweicloudsdkcae/v1/model/show_job_request.py +37 -9
  115. huaweicloudsdkcae/v1/model/show_job_response.py +6 -6
  116. huaweicloudsdkcae/v1/model/source.py +9 -9
  117. huaweicloudsdkcae/v1/model/spec_cert.py +202 -0
  118. huaweicloudsdkcae/v1/model/task.py +68 -68
  119. huaweicloudsdkcae/v1/model/timer_rule_details.py +434 -0
  120. huaweicloudsdkcae/v1/model/update_cert_req.py +166 -0
  121. huaweicloudsdkcae/v1/model/update_certificate_request.py +196 -0
  122. huaweicloudsdkcae/v1/model/update_certificate_response.py +85 -0
  123. huaweicloudsdkcae/v1/model/update_component_request.py +53 -53
  124. huaweicloudsdkcae/v1/model/update_component_request_body.py +10 -10
  125. huaweicloudsdkcae/v1/model/update_component_request_metadata.py +143 -0
  126. huaweicloudsdkcae/v1/model/update_component_request_spec.py +52 -19
  127. huaweicloudsdkcae/v1/model/update_spec_cert.py +170 -0
  128. huaweicloudsdkcae/v1/model/update_timer_rule_details.py +312 -0
  129. huaweicloudsdkcae/v1/model/update_timer_rule_req.py +166 -0
  130. huaweicloudsdkcae/v1/model/update_timer_rule_request.py +196 -0
  131. huaweicloudsdkcae/v1/model/update_timer_rule_response.py +85 -0
  132. huaweicloudsdkcae/v1/model/volume.py +15 -15
  133. huaweicloudsdkcae/v1/model/volume_spec.py +3 -3
  134. huaweicloudsdkcae/v1/region/cae_region.py +3 -0
  135. {huaweicloudsdkcae-3.1.47.dist-info → huaweicloudsdkcae-3.1.49.dist-info}/LICENSE +0 -0
  136. {huaweicloudsdkcae-3.1.47.dist-info → huaweicloudsdkcae-3.1.49.dist-info}/METADATA +2 -2
  137. huaweicloudsdkcae-3.1.49.dist-info/RECORD +152 -0
  138. huaweicloudsdkcae/v1/model/environment_metadata.py +0 -318
  139. huaweicloudsdkcae/v1/model/metadata.py +0 -317
  140. huaweicloudsdkcae-3.1.47.dist-info/RECORD +0 -107
  141. {huaweicloudsdkcae-3.1.47.dist-info → huaweicloudsdkcae-3.1.49.dist-info}/WHEEL +0 -0
  142. {huaweicloudsdkcae-3.1.47.dist-info → huaweicloudsdkcae-3.1.49.dist-info}/top_level.txt +0 -0
@@ -17,104 +17,104 @@ class ExecuteActionRequest:
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
- 'application_id': 'str',
23
+ 'x_environment_id': 'str',
24
24
  'body': 'ExecuteActionRequestBody'
25
25
  }
26
26
 
27
27
  attribute_map = {
28
+ 'application_id': 'application_id',
28
29
  'component_id': 'component_id',
29
- 'x_environment_id': 'X-Environment-ID',
30
30
  'x_enterprise_project_id': 'X-Enterprise-Project-ID',
31
- 'application_id': 'application_id',
31
+ 'x_environment_id': 'X-Environment-ID',
32
32
  'body': 'body'
33
33
  }
34
34
 
35
- def __init__(self, component_id=None, x_environment_id=None, x_enterprise_project_id=None, application_id=None, body=None):
35
+ def __init__(self, application_id=None, component_id=None, x_enterprise_project_id=None, x_environment_id=None, body=None):
36
36
  """ExecuteActionRequest
37
37
 
38
38
  The model defined in huaweicloud sdk
39
39
 
40
- :param component_id: 组件id
40
+ :param application_id: 应用ID
41
+ :type application_id: str
42
+ :param component_id: 组件ID。
41
43
  :type component_id: str
42
- :param x_environment_id: 环境id
43
- :type x_environment_id: str
44
- :param x_enterprise_project_id: 租户的企业项目id。
44
+ :param x_enterprise_project_id: 企业项目ID - 创建环境时,环境会绑定企业项目ID。 - 最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。 - 该字段不传(或传为字符串“0”)时,则查询默认企业项目下的资源。 > 关于企业项目ID的获取及企业项目特性的详细信息,请参见《[企业管理服务用户指南](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0126101490.html)》。
45
45
  :type x_enterprise_project_id: str
46
- :param application_id: 应用id。
47
- :type application_id: str
46
+ :param x_environment_id: 环境ID。 - 获取环境ID,通过《[云应用引擎API参考](https://support.huaweicloud.com/api-cae/ListEnvironments.html)》的“获取环境列表”章节获取环境信息。 - 请求响应成功后在响应体的items数组中的一个元素即为一个环境的信息,其中id字段即是环境ID
47
+ :type x_environment_id: str
48
48
  :param body: Body of the ExecuteActionRequest
49
49
  :type body: :class:`huaweicloudsdkcae.v1.ExecuteActionRequestBody`
50
50
  """
51
51
 
52
52
 
53
53
 
54
+ self._application_id = None
54
55
  self._component_id = None
55
- self._x_environment_id = None
56
56
  self._x_enterprise_project_id = None
57
- self._application_id = None
57
+ self._x_environment_id = None
58
58
  self._body = None
59
59
  self.discriminator = None
60
60
 
61
+ self.application_id = application_id
61
62
  self.component_id = component_id
62
- self.x_environment_id = x_environment_id
63
63
  if x_enterprise_project_id is not None:
64
64
  self.x_enterprise_project_id = x_enterprise_project_id
65
- self.application_id = application_id
65
+ self.x_environment_id = x_environment_id
66
66
  if body is not None:
67
67
  self.body = body
68
68
 
69
69
  @property
70
- def component_id(self):
71
- """Gets the component_id of this ExecuteActionRequest.
70
+ def application_id(self):
71
+ """Gets the application_id of this ExecuteActionRequest.
72
72
 
73
- 组件id
73
+ 应用ID
74
74
 
75
- :return: The component_id of this ExecuteActionRequest.
75
+ :return: The application_id of this ExecuteActionRequest.
76
76
  :rtype: str
77
77
  """
78
- return self._component_id
78
+ return self._application_id
79
79
 
80
- @component_id.setter
81
- def component_id(self, component_id):
82
- """Sets the component_id of this ExecuteActionRequest.
80
+ @application_id.setter
81
+ def application_id(self, application_id):
82
+ """Sets the application_id of this ExecuteActionRequest.
83
83
 
84
- 组件id
84
+ 应用ID
85
85
 
86
- :param component_id: The component_id of this ExecuteActionRequest.
87
- :type component_id: str
86
+ :param application_id: The application_id of this ExecuteActionRequest.
87
+ :type application_id: str
88
88
  """
89
- self._component_id = component_id
89
+ self._application_id = application_id
90
90
 
91
91
  @property
92
- def x_environment_id(self):
93
- """Gets the x_environment_id of this ExecuteActionRequest.
92
+ def component_id(self):
93
+ """Gets the component_id of this ExecuteActionRequest.
94
94
 
95
- 环境id
95
+ 组件ID
96
96
 
97
- :return: The x_environment_id of this ExecuteActionRequest.
97
+ :return: The component_id of this ExecuteActionRequest.
98
98
  :rtype: str
99
99
  """
100
- return self._x_environment_id
100
+ return self._component_id
101
101
 
102
- @x_environment_id.setter
103
- def x_environment_id(self, x_environment_id):
104
- """Sets the x_environment_id of this ExecuteActionRequest.
102
+ @component_id.setter
103
+ def component_id(self, component_id):
104
+ """Sets the component_id of this ExecuteActionRequest.
105
105
 
106
- 环境id
106
+ 组件ID
107
107
 
108
- :param x_environment_id: The x_environment_id of this ExecuteActionRequest.
109
- :type x_environment_id: str
108
+ :param component_id: The component_id of this ExecuteActionRequest.
109
+ :type component_id: str
110
110
  """
111
- self._x_environment_id = x_environment_id
111
+ self._component_id = component_id
112
112
 
113
113
  @property
114
114
  def x_enterprise_project_id(self):
115
115
  """Gets the x_enterprise_project_id of this ExecuteActionRequest.
116
116
 
117
- 租户的企业项目id
117
+ 企业项目ID - 创建环境时,环境会绑定企业项目ID。 - 最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。 - 该字段不传(或传为字符串“0”)时,则查询默认企业项目下的资源。 > 关于企业项目ID的获取及企业项目特性的详细信息,请参见《[企业管理服务用户指南](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0126101490.html)》。
118
118
 
119
119
  :return: The x_enterprise_project_id of this ExecuteActionRequest.
120
120
  :rtype: str
@@ -125,7 +125,7 @@ class ExecuteActionRequest:
125
125
  def x_enterprise_project_id(self, x_enterprise_project_id):
126
126
  """Sets the x_enterprise_project_id of this ExecuteActionRequest.
127
127
 
128
- 租户的企业项目id
128
+ 企业项目ID - 创建环境时,环境会绑定企业项目ID。 - 最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。 - 该字段不传(或传为字符串“0”)时,则查询默认企业项目下的资源。 > 关于企业项目ID的获取及企业项目特性的详细信息,请参见《[企业管理服务用户指南](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0126101490.html)》。
129
129
 
130
130
  :param x_enterprise_project_id: The x_enterprise_project_id of this ExecuteActionRequest.
131
131
  :type x_enterprise_project_id: str
@@ -133,26 +133,26 @@ class ExecuteActionRequest:
133
133
  self._x_enterprise_project_id = x_enterprise_project_id
134
134
 
135
135
  @property
136
- def application_id(self):
137
- """Gets the application_id of this ExecuteActionRequest.
136
+ def x_environment_id(self):
137
+ """Gets the x_environment_id of this ExecuteActionRequest.
138
138
 
139
- 应用id。
139
+ 环境ID。 - 获取环境ID,通过《[云应用引擎API参考](https://support.huaweicloud.com/api-cae/ListEnvironments.html)》的“获取环境列表”章节获取环境信息。 - 请求响应成功后在响应体的items数组中的一个元素即为一个环境的信息,其中id字段即是环境ID
140
140
 
141
- :return: The application_id of this ExecuteActionRequest.
141
+ :return: The x_environment_id of this ExecuteActionRequest.
142
142
  :rtype: str
143
143
  """
144
- return self._application_id
144
+ return self._x_environment_id
145
145
 
146
- @application_id.setter
147
- def application_id(self, application_id):
148
- """Sets the application_id of this ExecuteActionRequest.
146
+ @x_environment_id.setter
147
+ def x_environment_id(self, x_environment_id):
148
+ """Sets the x_environment_id of this ExecuteActionRequest.
149
149
 
150
- 应用id。
150
+ 环境ID。 - 获取环境ID,通过《[云应用引擎API参考](https://support.huaweicloud.com/api-cae/ListEnvironments.html)》的“获取环境列表”章节获取环境信息。 - 请求响应成功后在响应体的items数组中的一个元素即为一个环境的信息,其中id字段即是环境ID
151
151
 
152
- :param application_id: The application_id of this ExecuteActionRequest.
153
- :type application_id: str
152
+ :param x_environment_id: The x_environment_id of this ExecuteActionRequest.
153
+ :type x_environment_id: str
154
154
  """
155
- self._application_id = application_id
155
+ self._x_environment_id = x_environment_id
156
156
 
157
157
  @property
158
158
  def body(self):
@@ -35,9 +35,9 @@ class ExecuteActionRequestBody:
35
35
 
36
36
  The model defined in huaweicloud sdk
37
37
 
38
- :param api_version: API版本。
38
+ :param api_version: API版本,固定值“v1”,该值不可修改。
39
39
  :type api_version: str
40
- :param kind: 资源种类。
40
+ :param kind: API类型,固定值“Action”,该值不可修改。
41
41
  :type kind: str
42
42
  :param metadata:
43
43
  :type metadata: :class:`huaweicloudsdkcae.v1.ExecuteActionRequestBodyMetadata`
@@ -64,7 +64,7 @@ class ExecuteActionRequestBody:
64
64
  def api_version(self):
65
65
  """Gets the api_version of this ExecuteActionRequestBody.
66
66
 
67
- API版本。
67
+ API版本,固定值“v1”,该值不可修改。
68
68
 
69
69
  :return: The api_version of this ExecuteActionRequestBody.
70
70
  :rtype: str
@@ -75,7 +75,7 @@ class ExecuteActionRequestBody:
75
75
  def api_version(self, api_version):
76
76
  """Sets the api_version of this ExecuteActionRequestBody.
77
77
 
78
- API版本。
78
+ API版本,固定值“v1”,该值不可修改。
79
79
 
80
80
  :param api_version: The api_version of this ExecuteActionRequestBody.
81
81
  :type api_version: str
@@ -86,7 +86,7 @@ class ExecuteActionRequestBody:
86
86
  def kind(self):
87
87
  """Gets the kind of this ExecuteActionRequestBody.
88
88
 
89
- 资源种类。
89
+ API类型,固定值“Action”,该值不可修改。
90
90
 
91
91
  :return: The kind of this ExecuteActionRequestBody.
92
92
  :rtype: str
@@ -97,7 +97,7 @@ class ExecuteActionRequestBody:
97
97
  def kind(self, kind):
98
98
  """Sets the kind of this ExecuteActionRequestBody.
99
99
 
100
- 资源种类。
100
+ API类型,固定值“Action”,该值不可修改。
101
101
 
102
102
  :param kind: The kind of this ExecuteActionRequestBody.
103
103
  :type kind: str
@@ -33,7 +33,7 @@ class ExecuteActionRequestBodyMetadata:
33
33
 
34
34
  :param annotations: 资源信息。
35
35
  :type annotations: dict(str, str)
36
- :param name: action名称。
36
+ :param name: action名称,具体action如下。 - deploy:部署。 - upgrade:升级。 - configure:生效配置。 - scale:伸缩。 - restart:重启。 - start:启动。 - stop:停止。 - rollback:回滚。
37
37
  :type name: str
38
38
  """
39
39
 
@@ -73,7 +73,7 @@ class ExecuteActionRequestBodyMetadata:
73
73
  def name(self):
74
74
  """Gets the name of this ExecuteActionRequestBodyMetadata.
75
75
 
76
- action名称。
76
+ action名称,具体action如下。 - deploy:部署。 - upgrade:升级。 - configure:生效配置。 - scale:伸缩。 - restart:重启。 - start:启动。 - stop:停止。 - rollback:回滚。
77
77
 
78
78
  :return: The name of this ExecuteActionRequestBodyMetadata.
79
79
  :rtype: str
@@ -84,7 +84,7 @@ class ExecuteActionRequestBodyMetadata:
84
84
  def name(self, name):
85
85
  """Sets the name of this ExecuteActionRequestBodyMetadata.
86
86
 
87
- action名称。
87
+ action名称,具体action如下。 - deploy:部署。 - upgrade:升级。 - configure:生效配置。 - scale:伸缩。 - restart:重启。 - start:启动。 - stop:停止。 - rollback:回滚。
88
88
 
89
89
  :param name: The name of this ExecuteActionRequestBodyMetadata.
90
90
  :type name: str
@@ -30,7 +30,7 @@ class ExecuteActionResponse(SdkResponse):
30
30
 
31
31
  The model defined in huaweicloud sdk
32
32
 
33
- :param job_id: 任务id
33
+ :param job_id: 任务ID
34
34
  :type job_id: str
35
35
  """
36
36
 
@@ -46,7 +46,7 @@ class ExecuteActionResponse(SdkResponse):
46
46
  def job_id(self):
47
47
  """Gets the job_id of this ExecuteActionResponse.
48
48
 
49
- 任务id
49
+ 任务ID
50
50
 
51
51
  :return: The job_id of this ExecuteActionResponse.
52
52
  :rtype: str
@@ -57,7 +57,7 @@ class ExecuteActionResponse(SdkResponse):
57
57
  def job_id(self, job_id):
58
58
  """Sets the job_id of this ExecuteActionResponse.
59
59
 
60
- 任务id
60
+ 任务ID
61
61
 
62
62
  :param job_id: The job_id of this ExecuteActionResponse.
63
63
  :type job_id: str
@@ -0,0 +1,144 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ExecutionDetails:
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
+ 'last_execution_time': 'str',
21
+ 'items': 'list[ComponentExecutionResult]'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'last_execution_time': 'last_execution_time',
26
+ 'items': 'items'
27
+ }
28
+
29
+ def __init__(self, last_execution_time=None, items=None):
30
+ """ExecutionDetails
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param last_execution_time: 启停策略执行时间。
35
+ :type last_execution_time: str
36
+ :param items: 组件启停规则执行结果列表。
37
+ :type items: list[:class:`huaweicloudsdkcae.v1.ComponentExecutionResult`]
38
+ """
39
+
40
+
41
+
42
+ self._last_execution_time = None
43
+ self._items = None
44
+ self.discriminator = None
45
+
46
+ if last_execution_time is not None:
47
+ self.last_execution_time = last_execution_time
48
+ if items is not None:
49
+ self.items = items
50
+
51
+ @property
52
+ def last_execution_time(self):
53
+ """Gets the last_execution_time of this ExecutionDetails.
54
+
55
+ 启停策略执行时间。
56
+
57
+ :return: The last_execution_time of this ExecutionDetails.
58
+ :rtype: str
59
+ """
60
+ return self._last_execution_time
61
+
62
+ @last_execution_time.setter
63
+ def last_execution_time(self, last_execution_time):
64
+ """Sets the last_execution_time of this ExecutionDetails.
65
+
66
+ 启停策略执行时间。
67
+
68
+ :param last_execution_time: The last_execution_time of this ExecutionDetails.
69
+ :type last_execution_time: str
70
+ """
71
+ self._last_execution_time = last_execution_time
72
+
73
+ @property
74
+ def items(self):
75
+ """Gets the items of this ExecutionDetails.
76
+
77
+ 组件启停规则执行结果列表。
78
+
79
+ :return: The items of this ExecutionDetails.
80
+ :rtype: list[:class:`huaweicloudsdkcae.v1.ComponentExecutionResult`]
81
+ """
82
+ return self._items
83
+
84
+ @items.setter
85
+ def items(self, items):
86
+ """Sets the items of this ExecutionDetails.
87
+
88
+ 组件启停规则执行结果列表。
89
+
90
+ :param items: The items of this ExecutionDetails.
91
+ :type items: list[:class:`huaweicloudsdkcae.v1.ComponentExecutionResult`]
92
+ """
93
+ self._items = items
94
+
95
+ def to_dict(self):
96
+ """Returns the model properties as a dict"""
97
+ result = {}
98
+
99
+ for attr, _ in six.iteritems(self.openapi_types):
100
+ value = getattr(self, attr)
101
+ if isinstance(value, list):
102
+ result[attr] = list(map(
103
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
104
+ value
105
+ ))
106
+ elif hasattr(value, "to_dict"):
107
+ result[attr] = value.to_dict()
108
+ elif isinstance(value, dict):
109
+ result[attr] = dict(map(
110
+ lambda item: (item[0], item[1].to_dict())
111
+ if hasattr(item[1], "to_dict") else item,
112
+ value.items()
113
+ ))
114
+ else:
115
+ if attr in self.sensitive_list:
116
+ result[attr] = "****"
117
+ else:
118
+ result[attr] = value
119
+
120
+ return result
121
+
122
+ def to_str(self):
123
+ """Returns the string representation of the model"""
124
+ import simplejson as json
125
+ if six.PY2:
126
+ import sys
127
+ reload(sys)
128
+ sys.setdefaultencoding("utf-8")
129
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
130
+
131
+ def __repr__(self):
132
+ """For `print`"""
133
+ return self.to_str()
134
+
135
+ def __eq__(self, other):
136
+ """Returns true if both objects are equal"""
137
+ if not isinstance(other, ExecutionDetails):
138
+ return False
139
+
140
+ return self.__dict__ == other.__dict__
141
+
142
+ def __ne__(self, other):
143
+ """Returns true if both objects are not equal"""
144
+ return not self == other
@@ -33,7 +33,7 @@ class Instance:
33
33
 
34
34
  The model defined in huaweicloud sdk
35
35
 
36
- :param id: id
36
+ :param id: 实例ID。
37
37
  :type id: str
38
38
  :param name: 实例名称。
39
39
  :type name: str
@@ -59,7 +59,7 @@ class Instance:
59
59
  def id(self):
60
60
  """Gets the id of this Instance.
61
61
 
62
- id
62
+ 实例ID。
63
63
 
64
64
  :return: The id of this Instance.
65
65
  :rtype: str
@@ -70,7 +70,7 @@ class Instance:
70
70
  def id(self, id):
71
71
  """Sets the id of this Instance.
72
72
 
73
- id
73
+ 实例ID。
74
74
 
75
75
  :param id: The id of this Instance.
76
76
  :type id: str
@@ -17,42 +17,71 @@ class JobSpec:
17
17
  sensitive_list = []
18
18
 
19
19
  openapi_types = {
20
+ 'progress': 'float',
20
21
  'status': 'str',
21
22
  'tasks': 'list[Task]'
22
23
  }
23
24
 
24
25
  attribute_map = {
26
+ 'progress': 'progress',
25
27
  'status': 'status',
26
28
  'tasks': 'tasks'
27
29
  }
28
30
 
29
- def __init__(self, status=None, tasks=None):
31
+ def __init__(self, progress=None, status=None, tasks=None):
30
32
  """JobSpec
31
33
 
32
34
  The model defined in huaweicloud sdk
33
35
 
34
- :param status: 任务状态
36
+ :param progress: 任务进度。
37
+ :type progress: float
38
+ :param status: 任务状态。
35
39
  :type status: str
36
- :param tasks: 子任务
40
+ :param tasks: 子任务。
37
41
  :type tasks: list[:class:`huaweicloudsdkcae.v1.Task`]
38
42
  """
39
43
 
40
44
 
41
45
 
46
+ self._progress = None
42
47
  self._status = None
43
48
  self._tasks = None
44
49
  self.discriminator = None
45
50
 
51
+ if progress is not None:
52
+ self.progress = progress
46
53
  if status is not None:
47
54
  self.status = status
48
55
  if tasks is not None:
49
56
  self.tasks = tasks
50
57
 
58
+ @property
59
+ def progress(self):
60
+ """Gets the progress of this JobSpec.
61
+
62
+ 任务进度。
63
+
64
+ :return: The progress of this JobSpec.
65
+ :rtype: float
66
+ """
67
+ return self._progress
68
+
69
+ @progress.setter
70
+ def progress(self, progress):
71
+ """Sets the progress of this JobSpec.
72
+
73
+ 任务进度。
74
+
75
+ :param progress: The progress of this JobSpec.
76
+ :type progress: float
77
+ """
78
+ self._progress = progress
79
+
51
80
  @property
52
81
  def status(self):
53
82
  """Gets the status of this JobSpec.
54
83
 
55
- 任务状态
84
+ 任务状态。
56
85
 
57
86
  :return: The status of this JobSpec.
58
87
  :rtype: str
@@ -63,7 +92,7 @@ class JobSpec:
63
92
  def status(self, status):
64
93
  """Sets the status of this JobSpec.
65
94
 
66
- 任务状态
95
+ 任务状态。
67
96
 
68
97
  :param status: The status of this JobSpec.
69
98
  :type status: str
@@ -74,7 +103,7 @@ class JobSpec:
74
103
  def tasks(self):
75
104
  """Gets the tasks of this JobSpec.
76
105
 
77
- 子任务
106
+ 子任务。
78
107
 
79
108
  :return: The tasks of this JobSpec.
80
109
  :rtype: list[:class:`huaweicloudsdkcae.v1.Task`]
@@ -85,7 +114,7 @@ class JobSpec:
85
114
  def tasks(self, tasks):
86
115
  """Sets the tasks of this JobSpec.
87
116
 
88
- 子任务
117
+ 子任务。
89
118
 
90
119
  :param tasks: The tasks of this JobSpec.
91
120
  :type tasks: list[:class:`huaweicloudsdkcae.v1.Task`]
@@ -5,7 +5,7 @@ import six
5
5
  from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
6
 
7
7
 
8
- class ShowAgencyRequest:
8
+ class ListAgenciesRequest:
9
9
 
10
10
  """
11
11
  Attributes:
@@ -23,7 +23,7 @@ class ShowAgencyRequest:
23
23
  }
24
24
 
25
25
  def __init__(self):
26
- """ShowAgencyRequest
26
+ """ListAgenciesRequest
27
27
 
28
28
  The model defined in huaweicloud sdk
29
29
 
@@ -74,7 +74,7 @@ class ShowAgencyRequest:
74
74
 
75
75
  def __eq__(self, other):
76
76
  """Returns true if both objects are equal"""
77
- if not isinstance(other, ShowAgencyRequest):
77
+ if not isinstance(other, ListAgenciesRequest):
78
78
  return False
79
79
 
80
80
  return self.__dict__ == other.__dict__