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
@@ -27,7 +27,7 @@ class CaeClient(Client):
27
27
  def create_agency(self, request):
28
28
  """创建委托
29
29
 
30
- 本接口用于创建cae_trust委托
30
+ 创建委托。
31
31
 
32
32
  Please refer to HUAWEI cloud API Explorer for details.
33
33
 
@@ -80,20 +80,20 @@ class CaeClient(Client):
80
80
  collection_formats=collection_formats,
81
81
  request_type=request.__class__.__name__)
82
82
 
83
- def show_agency(self, request):
84
- """获取委托
83
+ def list_agencies(self, request):
84
+ """获取委托列表
85
85
 
86
- 本接口用于获取cae_trust委托,如果委托不存在则创建委托
86
+ 获取委托列表。
87
87
 
88
88
  Please refer to HUAWEI cloud API Explorer for details.
89
89
 
90
- :param request: Request instance for ShowAgency
91
- :type request: :class:`huaweicloudsdkcae.v1.ShowAgencyRequest`
92
- :rtype: :class:`huaweicloudsdkcae.v1.ShowAgencyResponse`
90
+ :param request: Request instance for ListAgencies
91
+ :type request: :class:`huaweicloudsdkcae.v1.ListAgenciesRequest`
92
+ :rtype: :class:`huaweicloudsdkcae.v1.ListAgenciesResponse`
93
93
  """
94
- return self._show_agency_with_http_info(request)
94
+ return self._list_agencies_with_http_info(request)
95
95
 
96
- def _show_agency_with_http_info(self, request):
96
+ def _list_agencies_with_http_info(self, request):
97
97
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
98
98
 
99
99
  cname = None
@@ -128,7 +128,7 @@ class CaeClient(Client):
128
128
  body=body_params,
129
129
  post_params=form_params,
130
130
  cname=cname,
131
- response_type='ShowAgencyResponse',
131
+ response_type='ListAgenciesResponse',
132
132
  response_headers=response_headers,
133
133
  auth_settings=auth_settings,
134
134
  collection_formats=collection_formats,
@@ -137,7 +137,7 @@ class CaeClient(Client):
137
137
  def create_application(self, request):
138
138
  """创建应用
139
139
 
140
- 本接口用于创建一个应用
140
+ 创建应用。
141
141
 
142
142
  Please refer to HUAWEI cloud API Explorer for details.
143
143
 
@@ -159,10 +159,10 @@ class CaeClient(Client):
159
159
  query_params = []
160
160
 
161
161
  header_params = {}
162
- if 'x_environment_id' in local_var_params:
163
- header_params['X-Environment-ID'] = local_var_params['x_environment_id']
164
162
  if 'x_enterprise_project_id' in local_var_params:
165
163
  header_params['X-Enterprise-Project-ID'] = local_var_params['x_enterprise_project_id']
164
+ if 'x_environment_id' in local_var_params:
165
+ header_params['X-Environment-ID'] = local_var_params['x_environment_id']
166
166
 
167
167
  form_params = {}
168
168
 
@@ -197,7 +197,7 @@ class CaeClient(Client):
197
197
  def delete_application(self, request):
198
198
  """删除应用
199
199
 
200
- 本接口用于删除指定应用
200
+ 删除应用。
201
201
 
202
202
  Please refer to HUAWEI cloud API Explorer for details.
203
203
 
@@ -221,10 +221,10 @@ class CaeClient(Client):
221
221
  query_params = []
222
222
 
223
223
  header_params = {}
224
- if 'x_environment_id' in local_var_params:
225
- header_params['X-Environment-ID'] = local_var_params['x_environment_id']
226
224
  if 'x_enterprise_project_id' in local_var_params:
227
225
  header_params['X-Enterprise-Project-ID'] = local_var_params['x_enterprise_project_id']
226
+ if 'x_environment_id' in local_var_params:
227
+ header_params['X-Environment-ID'] = local_var_params['x_environment_id']
228
228
 
229
229
  form_params = {}
230
230
 
@@ -257,7 +257,7 @@ class CaeClient(Client):
257
257
  def list_applications(self, request):
258
258
  """获取应用列表
259
259
 
260
- 本接口用于获取当前环境下的应用列表
260
+ 获取应用列表。
261
261
 
262
262
  Please refer to HUAWEI cloud API Explorer for details.
263
263
 
@@ -279,10 +279,10 @@ class CaeClient(Client):
279
279
  query_params = []
280
280
 
281
281
  header_params = {}
282
- if 'x_environment_id' in local_var_params:
283
- header_params['X-Environment-ID'] = local_var_params['x_environment_id']
284
282
  if 'x_enterprise_project_id' in local_var_params:
285
283
  header_params['X-Enterprise-Project-ID'] = local_var_params['x_enterprise_project_id']
284
+ if 'x_environment_id' in local_var_params:
285
+ header_params['X-Environment-ID'] = local_var_params['x_environment_id']
286
286
 
287
287
  form_params = {}
288
288
 
@@ -313,9 +313,9 @@ class CaeClient(Client):
313
313
  request_type=request.__class__.__name__)
314
314
 
315
315
  def show_application(self, request):
316
- """获取应用
316
+ """获取应用详情
317
317
 
318
- 本接口用于获取指定应用详情
318
+ 获取应用详情。
319
319
 
320
320
  Please refer to HUAWEI cloud API Explorer for details.
321
321
 
@@ -339,10 +339,10 @@ class CaeClient(Client):
339
339
  query_params = []
340
340
 
341
341
  header_params = {}
342
- if 'x_environment_id' in local_var_params:
343
- header_params['X-Environment-ID'] = local_var_params['x_environment_id']
344
342
  if 'x_enterprise_project_id' in local_var_params:
345
343
  header_params['X-Enterprise-Project-ID'] = local_var_params['x_enterprise_project_id']
344
+ if 'x_environment_id' in local_var_params:
345
+ header_params['X-Environment-ID'] = local_var_params['x_environment_id']
346
346
 
347
347
  form_params = {}
348
348
 
@@ -372,20 +372,20 @@ class CaeClient(Client):
372
372
  collection_formats=collection_formats,
373
373
  request_type=request.__class__.__name__)
374
374
 
375
- def create_component(self, request):
376
- """创建组件
375
+ def create_certificate(self, request):
376
+ """创建证书
377
377
 
378
- 本接口用于创建一个组件,组件是CAE的最小部署单位,支持将用户的源码,部署包,镜像等资源部署到组件上
378
+ 创建证书。
379
379
 
380
380
  Please refer to HUAWEI cloud API Explorer for details.
381
381
 
382
- :param request: Request instance for CreateComponent
383
- :type request: :class:`huaweicloudsdkcae.v1.CreateComponentRequest`
384
- :rtype: :class:`huaweicloudsdkcae.v1.CreateComponentResponse`
382
+ :param request: Request instance for CreateCertificate
383
+ :type request: :class:`huaweicloudsdkcae.v1.CreateCertificateRequest`
384
+ :rtype: :class:`huaweicloudsdkcae.v1.CreateCertificateResponse`
385
385
  """
386
- return self._create_component_with_http_info(request)
386
+ return self._create_certificate_with_http_info(request)
387
387
 
388
- def _create_component_with_http_info(self, request):
388
+ def _create_certificate_with_http_info(self, request):
389
389
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
390
390
 
391
391
  cname = None
@@ -393,16 +393,14 @@ class CaeClient(Client):
393
393
  collection_formats = {}
394
394
 
395
395
  path_params = {}
396
- if 'application_id' in local_var_params:
397
- path_params['application_id'] = local_var_params['application_id']
398
396
 
399
397
  query_params = []
400
398
 
401
399
  header_params = {}
402
- if 'x_environment_id' in local_var_params:
403
- header_params['X-Environment-ID'] = local_var_params['x_environment_id']
404
400
  if 'x_enterprise_project_id' in local_var_params:
405
401
  header_params['X-Enterprise-Project-ID'] = local_var_params['x_enterprise_project_id']
402
+ if 'x_environment_id' in local_var_params:
403
+ header_params['X-Environment-ID'] = local_var_params['x_environment_id']
406
404
 
407
405
  form_params = {}
408
406
 
@@ -420,7 +418,7 @@ class CaeClient(Client):
420
418
  auth_settings = []
421
419
 
422
420
  return self.call_api(
423
- resource_path='/v1/{project_id}/cae/applications/{application_id}/components',
421
+ resource_path='/v1/{project_id}/cae/certificates',
424
422
  method='POST',
425
423
  path_params=path_params,
426
424
  query_params=query_params,
@@ -428,26 +426,26 @@ class CaeClient(Client):
428
426
  body=body_params,
429
427
  post_params=form_params,
430
428
  cname=cname,
431
- response_type='CreateComponentResponse',
429
+ response_type='CreateCertificateResponse',
432
430
  response_headers=response_headers,
433
431
  auth_settings=auth_settings,
434
432
  collection_formats=collection_formats,
435
433
  request_type=request.__class__.__name__)
436
434
 
437
- def delete_component(self, request):
438
- """删除组件
435
+ def delete_certificate(self, request):
436
+ """删除证书
439
437
 
440
- 本接口用于删除指定的组件,组件是CAE的最小部署单位,支持将用户的源码,部署包,镜像等资源部署到组件上
438
+ 删除证书。
441
439
 
442
440
  Please refer to HUAWEI cloud API Explorer for details.
443
441
 
444
- :param request: Request instance for DeleteComponent
445
- :type request: :class:`huaweicloudsdkcae.v1.DeleteComponentRequest`
446
- :rtype: :class:`huaweicloudsdkcae.v1.DeleteComponentResponse`
442
+ :param request: Request instance for DeleteCertificate
443
+ :type request: :class:`huaweicloudsdkcae.v1.DeleteCertificateRequest`
444
+ :rtype: :class:`huaweicloudsdkcae.v1.DeleteCertificateResponse`
447
445
  """
448
- return self._delete_component_with_http_info(request)
446
+ return self._delete_certificate_with_http_info(request)
449
447
 
450
- def _delete_component_with_http_info(self, request):
448
+ def _delete_certificate_with_http_info(self, request):
451
449
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
452
450
 
453
451
  cname = None
@@ -455,18 +453,16 @@ class CaeClient(Client):
455
453
  collection_formats = {}
456
454
 
457
455
  path_params = {}
458
- if 'component_id' in local_var_params:
459
- path_params['component_id'] = local_var_params['component_id']
460
- if 'application_id' in local_var_params:
461
- path_params['application_id'] = local_var_params['application_id']
456
+ if 'certificate_id' in local_var_params:
457
+ path_params['certificate_id'] = local_var_params['certificate_id']
462
458
 
463
459
  query_params = []
464
460
 
465
461
  header_params = {}
466
- if 'x_environment_id' in local_var_params:
467
- header_params['X-Environment-ID'] = local_var_params['x_environment_id']
468
462
  if 'x_enterprise_project_id' in local_var_params:
469
463
  header_params['X-Enterprise-Project-ID'] = local_var_params['x_enterprise_project_id']
464
+ if 'x_environment_id' in local_var_params:
465
+ header_params['X-Environment-ID'] = local_var_params['x_environment_id']
470
466
 
471
467
  form_params = {}
472
468
 
@@ -482,7 +478,7 @@ class CaeClient(Client):
482
478
  auth_settings = []
483
479
 
484
480
  return self.call_api(
485
- resource_path='/v1/{project_id}/cae/applications/{application_id}/components/{component_id}',
481
+ resource_path='/v1/{project_id}/cae/certificates/{certificate_id}',
486
482
  method='DELETE',
487
483
  path_params=path_params,
488
484
  query_params=query_params,
@@ -490,26 +486,26 @@ class CaeClient(Client):
490
486
  body=body_params,
491
487
  post_params=form_params,
492
488
  cname=cname,
493
- response_type='DeleteComponentResponse',
489
+ response_type='DeleteCertificateResponse',
494
490
  response_headers=response_headers,
495
491
  auth_settings=auth_settings,
496
492
  collection_formats=collection_formats,
497
493
  request_type=request.__class__.__name__)
498
494
 
499
- def execute_action(self, request):
500
- """操作组件
495
+ def list_certificates(self, request):
496
+ """获取证书列表
501
497
 
502
- 本接口用于对组件执行指定操作,如部署、升级、重启、停止、启动、伸缩、重试、配置、回滚
498
+ 获取证书列表。
503
499
 
504
500
  Please refer to HUAWEI cloud API Explorer for details.
505
501
 
506
- :param request: Request instance for ExecuteAction
507
- :type request: :class:`huaweicloudsdkcae.v1.ExecuteActionRequest`
508
- :rtype: :class:`huaweicloudsdkcae.v1.ExecuteActionResponse`
502
+ :param request: Request instance for ListCertificates
503
+ :type request: :class:`huaweicloudsdkcae.v1.ListCertificatesRequest`
504
+ :rtype: :class:`huaweicloudsdkcae.v1.ListCertificatesResponse`
509
505
  """
510
- return self._execute_action_with_http_info(request)
506
+ return self._list_certificates_with_http_info(request)
511
507
 
512
- def _execute_action_with_http_info(self, request):
508
+ def _list_certificates_with_http_info(self, request):
513
509
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
514
510
 
515
511
  cname = None
@@ -517,24 +513,18 @@ class CaeClient(Client):
517
513
  collection_formats = {}
518
514
 
519
515
  path_params = {}
520
- if 'component_id' in local_var_params:
521
- path_params['component_id'] = local_var_params['component_id']
522
- if 'application_id' in local_var_params:
523
- path_params['application_id'] = local_var_params['application_id']
524
516
 
525
517
  query_params = []
526
518
 
527
519
  header_params = {}
528
- if 'x_environment_id' in local_var_params:
529
- header_params['X-Environment-ID'] = local_var_params['x_environment_id']
530
520
  if 'x_enterprise_project_id' in local_var_params:
531
521
  header_params['X-Enterprise-Project-ID'] = local_var_params['x_enterprise_project_id']
522
+ if 'x_environment_id' in local_var_params:
523
+ header_params['X-Environment-ID'] = local_var_params['x_environment_id']
532
524
 
533
525
  form_params = {}
534
526
 
535
527
  body_params = None
536
- if 'body' in local_var_params:
537
- body_params = local_var_params['body']
538
528
  if isinstance(request, SdkStreamRequest):
539
529
  body_params = request.get_file_stream()
540
530
 
@@ -546,34 +536,34 @@ class CaeClient(Client):
546
536
  auth_settings = []
547
537
 
548
538
  return self.call_api(
549
- resource_path='/v1/{project_id}/cae/applications/{application_id}/components/{component_id}/action',
550
- method='POST',
539
+ resource_path='/v1/{project_id}/cae/certificates',
540
+ method='GET',
551
541
  path_params=path_params,
552
542
  query_params=query_params,
553
543
  header_params=header_params,
554
544
  body=body_params,
555
545
  post_params=form_params,
556
546
  cname=cname,
557
- response_type='ExecuteActionResponse',
547
+ response_type='ListCertificatesResponse',
558
548
  response_headers=response_headers,
559
549
  auth_settings=auth_settings,
560
550
  collection_formats=collection_formats,
561
551
  request_type=request.__class__.__name__)
562
552
 
563
- def list_component_snapshots(self, request):
564
- """获取组件快照列表
553
+ def update_certificate(self, request):
554
+ """修改证书
565
555
 
566
- 本接口用于获取组件快照版本
556
+ 修改证书。
567
557
 
568
558
  Please refer to HUAWEI cloud API Explorer for details.
569
559
 
570
- :param request: Request instance for ListComponentSnapshots
571
- :type request: :class:`huaweicloudsdkcae.v1.ListComponentSnapshotsRequest`
572
- :rtype: :class:`huaweicloudsdkcae.v1.ListComponentSnapshotsResponse`
560
+ :param request: Request instance for UpdateCertificate
561
+ :type request: :class:`huaweicloudsdkcae.v1.UpdateCertificateRequest`
562
+ :rtype: :class:`huaweicloudsdkcae.v1.UpdateCertificateResponse`
573
563
  """
574
- return self._list_component_snapshots_with_http_info(request)
564
+ return self._update_certificate_with_http_info(request)
575
565
 
576
- def _list_component_snapshots_with_http_info(self, request):
566
+ def _update_certificate_with_http_info(self, request):
577
567
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
578
568
 
579
569
  cname = None
@@ -581,22 +571,22 @@ class CaeClient(Client):
581
571
  collection_formats = {}
582
572
 
583
573
  path_params = {}
584
- if 'component_id' in local_var_params:
585
- path_params['component_id'] = local_var_params['component_id']
586
- if 'application_id' in local_var_params:
587
- path_params['application_id'] = local_var_params['application_id']
574
+ if 'certificate_id' in local_var_params:
575
+ path_params['certificate_id'] = local_var_params['certificate_id']
588
576
 
589
577
  query_params = []
590
578
 
591
579
  header_params = {}
592
- if 'x_environment_id' in local_var_params:
593
- header_params['X-Environment-ID'] = local_var_params['x_environment_id']
594
580
  if 'x_enterprise_project_id' in local_var_params:
595
581
  header_params['X-Enterprise-Project-ID'] = local_var_params['x_enterprise_project_id']
582
+ if 'x_environment_id' in local_var_params:
583
+ header_params['X-Environment-ID'] = local_var_params['x_environment_id']
596
584
 
597
585
  form_params = {}
598
586
 
599
587
  body_params = None
588
+ if 'body' in local_var_params:
589
+ body_params = local_var_params['body']
600
590
  if isinstance(request, SdkStreamRequest):
601
591
  body_params = request.get_file_stream()
602
592
 
@@ -608,34 +598,34 @@ class CaeClient(Client):
608
598
  auth_settings = []
609
599
 
610
600
  return self.call_api(
611
- resource_path='/v1/{project_id}/cae/applications/{application_id}/components/{component_id}/snapshots',
612
- method='GET',
601
+ resource_path='/v1/{project_id}/cae/certificates/{certificate_id}',
602
+ method='PUT',
613
603
  path_params=path_params,
614
604
  query_params=query_params,
615
605
  header_params=header_params,
616
606
  body=body_params,
617
607
  post_params=form_params,
618
608
  cname=cname,
619
- response_type='ListComponentSnapshotsResponse',
609
+ response_type='UpdateCertificateResponse',
620
610
  response_headers=response_headers,
621
611
  auth_settings=auth_settings,
622
612
  collection_formats=collection_formats,
623
613
  request_type=request.__class__.__name__)
624
614
 
625
- def list_components(self, request):
626
- """获取组件列表
615
+ def create_component(self, request):
616
+ """创建组件
627
617
 
628
- 本接口用于获取组件列表,组件是CAE的最小部署单位,支持将用户的源码,部署包,镜像等资源部署到组件上
618
+ 创建组件。
629
619
 
630
620
  Please refer to HUAWEI cloud API Explorer for details.
631
621
 
632
- :param request: Request instance for ListComponents
633
- :type request: :class:`huaweicloudsdkcae.v1.ListComponentsRequest`
634
- :rtype: :class:`huaweicloudsdkcae.v1.ListComponentsResponse`
622
+ :param request: Request instance for CreateComponent
623
+ :type request: :class:`huaweicloudsdkcae.v1.CreateComponentRequest`
624
+ :rtype: :class:`huaweicloudsdkcae.v1.CreateComponentResponse`
635
625
  """
636
- return self._list_components_with_http_info(request)
626
+ return self._create_component_with_http_info(request)
637
627
 
638
- def _list_components_with_http_info(self, request):
628
+ def _create_component_with_http_info(self, request):
639
629
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
640
630
 
641
631
  cname = None
@@ -647,20 +637,18 @@ class CaeClient(Client):
647
637
  path_params['application_id'] = local_var_params['application_id']
648
638
 
649
639
  query_params = []
650
- if 'limit' in local_var_params:
651
- query_params.append(('limit', local_var_params['limit']))
652
- if 'offset' in local_var_params:
653
- query_params.append(('offset', local_var_params['offset']))
654
640
 
655
641
  header_params = {}
656
- if 'x_environment_id' in local_var_params:
657
- header_params['X-Environment-ID'] = local_var_params['x_environment_id']
658
642
  if 'x_enterprise_project_id' in local_var_params:
659
643
  header_params['X-Enterprise-Project-ID'] = local_var_params['x_enterprise_project_id']
644
+ if 'x_environment_id' in local_var_params:
645
+ header_params['X-Environment-ID'] = local_var_params['x_environment_id']
660
646
 
661
647
  form_params = {}
662
648
 
663
649
  body_params = None
650
+ if 'body' in local_var_params:
651
+ body_params = local_var_params['body']
664
652
  if isinstance(request, SdkStreamRequest):
665
653
  body_params = request.get_file_stream()
666
654
 
@@ -673,32 +661,33 @@ class CaeClient(Client):
673
661
 
674
662
  return self.call_api(
675
663
  resource_path='/v1/{project_id}/cae/applications/{application_id}/components',
676
- method='GET',
664
+ method='POST',
677
665
  path_params=path_params,
678
666
  query_params=query_params,
679
667
  header_params=header_params,
680
668
  body=body_params,
681
669
  post_params=form_params,
682
670
  cname=cname,
683
- response_type='ListComponentsResponse',
671
+ response_type='CreateComponentResponse',
684
672
  response_headers=response_headers,
685
673
  auth_settings=auth_settings,
686
674
  collection_formats=collection_formats,
687
675
  request_type=request.__class__.__name__)
688
676
 
689
- def list_events(self, request):
690
- """获取事件列表
677
+ def delete_component(self, request):
678
+ """删除组件
691
679
 
680
+ 删除组件。
692
681
 
693
682
  Please refer to HUAWEI cloud API Explorer for details.
694
683
 
695
- :param request: Request instance for ListEvents
696
- :type request: :class:`huaweicloudsdkcae.v1.ListEventsRequest`
697
- :rtype: :class:`huaweicloudsdkcae.v1.ListEventsResponse`
684
+ :param request: Request instance for DeleteComponent
685
+ :type request: :class:`huaweicloudsdkcae.v1.DeleteComponentRequest`
686
+ :rtype: :class:`huaweicloudsdkcae.v1.DeleteComponentResponse`
698
687
  """
699
- return self._list_events_with_http_info(request)
688
+ return self._delete_component_with_http_info(request)
700
689
 
701
- def _list_events_with_http_info(self, request):
690
+ def _delete_component_with_http_info(self, request):
702
691
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
703
692
 
704
693
  cname = None
@@ -706,18 +695,18 @@ class CaeClient(Client):
706
695
  collection_formats = {}
707
696
 
708
697
  path_params = {}
709
- if 'component_id' in local_var_params:
710
- path_params['component_id'] = local_var_params['component_id']
711
698
  if 'application_id' in local_var_params:
712
699
  path_params['application_id'] = local_var_params['application_id']
700
+ if 'component_id' in local_var_params:
701
+ path_params['component_id'] = local_var_params['component_id']
713
702
 
714
703
  query_params = []
715
704
 
716
705
  header_params = {}
717
- if 'x_environment_id' in local_var_params:
718
- header_params['X-Environment-ID'] = local_var_params['x_environment_id']
719
706
  if 'x_enterprise_project_id' in local_var_params:
720
707
  header_params['X-Enterprise-Project-ID'] = local_var_params['x_enterprise_project_id']
708
+ if 'x_environment_id' in local_var_params:
709
+ header_params['X-Environment-ID'] = local_var_params['x_environment_id']
721
710
 
722
711
  form_params = {}
723
712
 
@@ -733,34 +722,34 @@ class CaeClient(Client):
733
722
  auth_settings = []
734
723
 
735
724
  return self.call_api(
736
- resource_path='/v1/{project_id}/cae/applications/{application_id}/components/{component_id}/events',
737
- method='GET',
725
+ resource_path='/v1/{project_id}/cae/applications/{application_id}/components/{component_id}',
726
+ method='DELETE',
738
727
  path_params=path_params,
739
728
  query_params=query_params,
740
729
  header_params=header_params,
741
730
  body=body_params,
742
731
  post_params=form_params,
743
732
  cname=cname,
744
- response_type='ListEventsResponse',
733
+ response_type='DeleteComponentResponse',
745
734
  response_headers=response_headers,
746
735
  auth_settings=auth_settings,
747
736
  collection_formats=collection_formats,
748
737
  request_type=request.__class__.__name__)
749
738
 
750
- def list_instances(self, request):
751
- """获取组件实例列表
739
+ def execute_action(self, request):
740
+ """操作组件
752
741
 
753
- 本接口用于获取组件实例列表
742
+ 对组件执行指定操作,如部署、升级、重启、停止、启动、伸缩、配置、回滚。
754
743
 
755
744
  Please refer to HUAWEI cloud API Explorer for details.
756
745
 
757
- :param request: Request instance for ListInstances
758
- :type request: :class:`huaweicloudsdkcae.v1.ListInstancesRequest`
759
- :rtype: :class:`huaweicloudsdkcae.v1.ListInstancesResponse`
746
+ :param request: Request instance for ExecuteAction
747
+ :type request: :class:`huaweicloudsdkcae.v1.ExecuteActionRequest`
748
+ :rtype: :class:`huaweicloudsdkcae.v1.ExecuteActionResponse`
760
749
  """
761
- return self._list_instances_with_http_info(request)
750
+ return self._execute_action_with_http_info(request)
762
751
 
763
- def _list_instances_with_http_info(self, request):
752
+ def _execute_action_with_http_info(self, request):
764
753
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
765
754
 
766
755
  cname = None
@@ -768,22 +757,24 @@ class CaeClient(Client):
768
757
  collection_formats = {}
769
758
 
770
759
  path_params = {}
771
- if 'component_id' in local_var_params:
772
- path_params['component_id'] = local_var_params['component_id']
773
760
  if 'application_id' in local_var_params:
774
761
  path_params['application_id'] = local_var_params['application_id']
762
+ if 'component_id' in local_var_params:
763
+ path_params['component_id'] = local_var_params['component_id']
775
764
 
776
765
  query_params = []
777
766
 
778
767
  header_params = {}
779
- if 'x_environment_id' in local_var_params:
780
- header_params['X-Environment-ID'] = local_var_params['x_environment_id']
781
768
  if 'x_enterprise_project_id' in local_var_params:
782
769
  header_params['X-Enterprise-Project-ID'] = local_var_params['x_enterprise_project_id']
770
+ if 'x_environment_id' in local_var_params:
771
+ header_params['X-Environment-ID'] = local_var_params['x_environment_id']
783
772
 
784
773
  form_params = {}
785
774
 
786
775
  body_params = None
776
+ if 'body' in local_var_params:
777
+ body_params = local_var_params['body']
787
778
  if isinstance(request, SdkStreamRequest):
788
779
  body_params = request.get_file_stream()
789
780
 
@@ -795,34 +786,34 @@ class CaeClient(Client):
795
786
  auth_settings = []
796
787
 
797
788
  return self.call_api(
798
- resource_path='/v1/{project_id}/cae/applications/{application_id}/components/{component_id}/instances',
799
- method='GET',
789
+ resource_path='/v1/{project_id}/cae/applications/{application_id}/components/{component_id}/action',
790
+ method='POST',
800
791
  path_params=path_params,
801
792
  query_params=query_params,
802
793
  header_params=header_params,
803
794
  body=body_params,
804
795
  post_params=form_params,
805
796
  cname=cname,
806
- response_type='ListInstancesResponse',
797
+ response_type='ExecuteActionResponse',
807
798
  response_headers=response_headers,
808
799
  auth_settings=auth_settings,
809
800
  collection_formats=collection_formats,
810
801
  request_type=request.__class__.__name__)
811
802
 
812
- def show_component(self, request):
813
- """获取组件
803
+ def list_component_events(self, request):
804
+ """获取组件事件列表
814
805
 
815
- 本接口用于获取指定的组件,组件是CAE的最小部署单位,支持将用户的源码,部署包,镜像等资源部署到组件上
806
+ 获取组件事件列表。
816
807
 
817
808
  Please refer to HUAWEI cloud API Explorer for details.
818
809
 
819
- :param request: Request instance for ShowComponent
820
- :type request: :class:`huaweicloudsdkcae.v1.ShowComponentRequest`
821
- :rtype: :class:`huaweicloudsdkcae.v1.ShowComponentResponse`
810
+ :param request: Request instance for ListComponentEvents
811
+ :type request: :class:`huaweicloudsdkcae.v1.ListComponentEventsRequest`
812
+ :rtype: :class:`huaweicloudsdkcae.v1.ListComponentEventsResponse`
822
813
  """
823
- return self._show_component_with_http_info(request)
814
+ return self._list_component_events_with_http_info(request)
824
815
 
825
- def _show_component_with_http_info(self, request):
816
+ def _list_component_events_with_http_info(self, request):
826
817
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
827
818
 
828
819
  cname = None
@@ -830,18 +821,18 @@ class CaeClient(Client):
830
821
  collection_formats = {}
831
822
 
832
823
  path_params = {}
833
- if 'component_id' in local_var_params:
834
- path_params['component_id'] = local_var_params['component_id']
835
824
  if 'application_id' in local_var_params:
836
825
  path_params['application_id'] = local_var_params['application_id']
826
+ if 'component_id' in local_var_params:
827
+ path_params['component_id'] = local_var_params['component_id']
837
828
 
838
829
  query_params = []
839
830
 
840
831
  header_params = {}
841
- if 'x_environment_id' in local_var_params:
842
- header_params['X-Environment-ID'] = local_var_params['x_environment_id']
843
832
  if 'x_enterprise_project_id' in local_var_params:
844
833
  header_params['X-Enterprise-Project-ID'] = local_var_params['x_enterprise_project_id']
834
+ if 'x_environment_id' in local_var_params:
835
+ header_params['X-Environment-ID'] = local_var_params['x_environment_id']
845
836
 
846
837
  form_params = {}
847
838
 
@@ -857,7 +848,7 @@ class CaeClient(Client):
857
848
  auth_settings = []
858
849
 
859
850
  return self.call_api(
860
- resource_path='/v1/{project_id}/cae/applications/{application_id}/components/{component_id}',
851
+ resource_path='/v1/{project_id}/cae/applications/{application_id}/components/{component_id}/events',
861
852
  method='GET',
862
853
  path_params=path_params,
863
854
  query_params=query_params,
@@ -865,26 +856,26 @@ class CaeClient(Client):
865
856
  body=body_params,
866
857
  post_params=form_params,
867
858
  cname=cname,
868
- response_type='ShowComponentResponse',
859
+ response_type='ListComponentEventsResponse',
869
860
  response_headers=response_headers,
870
861
  auth_settings=auth_settings,
871
862
  collection_formats=collection_formats,
872
863
  request_type=request.__class__.__name__)
873
864
 
874
- def update_component(self, request):
875
- """更新组件
865
+ def list_component_instances(self, request):
866
+ """获取组件实例列表
876
867
 
877
- 本接口用于更新指定的组件,组件是CAE的最小部署单位,支持将用户的源码,部署包,镜像等资源部署到组件上
868
+ 获取组件实例列表。
878
869
 
879
870
  Please refer to HUAWEI cloud API Explorer for details.
880
871
 
881
- :param request: Request instance for UpdateComponent
882
- :type request: :class:`huaweicloudsdkcae.v1.UpdateComponentRequest`
883
- :rtype: :class:`huaweicloudsdkcae.v1.UpdateComponentResponse`
872
+ :param request: Request instance for ListComponentInstances
873
+ :type request: :class:`huaweicloudsdkcae.v1.ListComponentInstancesRequest`
874
+ :rtype: :class:`huaweicloudsdkcae.v1.ListComponentInstancesResponse`
884
875
  """
885
- return self._update_component_with_http_info(request)
876
+ return self._list_component_instances_with_http_info(request)
886
877
 
887
- def _update_component_with_http_info(self, request):
878
+ def _list_component_instances_with_http_info(self, request):
888
879
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
889
880
 
890
881
  cname = None
@@ -892,24 +883,22 @@ class CaeClient(Client):
892
883
  collection_formats = {}
893
884
 
894
885
  path_params = {}
895
- if 'component_id' in local_var_params:
896
- path_params['component_id'] = local_var_params['component_id']
897
886
  if 'application_id' in local_var_params:
898
887
  path_params['application_id'] = local_var_params['application_id']
888
+ if 'component_id' in local_var_params:
889
+ path_params['component_id'] = local_var_params['component_id']
899
890
 
900
891
  query_params = []
901
892
 
902
893
  header_params = {}
903
- if 'x_environment_id' in local_var_params:
904
- header_params['X-Environment-ID'] = local_var_params['x_environment_id']
905
894
  if 'x_enterprise_project_id' in local_var_params:
906
895
  header_params['X-Enterprise-Project-ID'] = local_var_params['x_enterprise_project_id']
896
+ if 'x_environment_id' in local_var_params:
897
+ header_params['X-Environment-ID'] = local_var_params['x_environment_id']
907
898
 
908
899
  form_params = {}
909
900
 
910
901
  body_params = None
911
- if 'body' in local_var_params:
912
- body_params = local_var_params['body']
913
902
  if isinstance(request, SdkStreamRequest):
914
903
  body_params = request.get_file_stream()
915
904
 
@@ -921,34 +910,34 @@ class CaeClient(Client):
921
910
  auth_settings = []
922
911
 
923
912
  return self.call_api(
924
- resource_path='/v1/{project_id}/cae/applications/{application_id}/components/{component_id}',
925
- method='PUT',
913
+ resource_path='/v1/{project_id}/cae/applications/{application_id}/components/{component_id}/instances',
914
+ method='GET',
926
915
  path_params=path_params,
927
916
  query_params=query_params,
928
917
  header_params=header_params,
929
918
  body=body_params,
930
919
  post_params=form_params,
931
920
  cname=cname,
932
- response_type='UpdateComponentResponse',
921
+ response_type='ListComponentInstancesResponse',
933
922
  response_headers=response_headers,
934
923
  auth_settings=auth_settings,
935
924
  collection_formats=collection_formats,
936
925
  request_type=request.__class__.__name__)
937
926
 
938
- def create_component_configuration(self, request):
939
- """创建组件配置
927
+ def list_component_snapshots(self, request):
928
+ """获取组件快照列表
940
929
 
941
- 本接口用于创建组件配置
930
+ 获取组件快照列表。
942
931
 
943
932
  Please refer to HUAWEI cloud API Explorer for details.
944
933
 
945
- :param request: Request instance for CreateComponentConfiguration
946
- :type request: :class:`huaweicloudsdkcae.v1.CreateComponentConfigurationRequest`
947
- :rtype: :class:`huaweicloudsdkcae.v1.CreateComponentConfigurationResponse`
934
+ :param request: Request instance for ListComponentSnapshots
935
+ :type request: :class:`huaweicloudsdkcae.v1.ListComponentSnapshotsRequest`
936
+ :rtype: :class:`huaweicloudsdkcae.v1.ListComponentSnapshotsResponse`
948
937
  """
949
- return self._create_component_configuration_with_http_info(request)
938
+ return self._list_component_snapshots_with_http_info(request)
950
939
 
951
- def _create_component_configuration_with_http_info(self, request):
940
+ def _list_component_snapshots_with_http_info(self, request):
952
941
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
953
942
 
954
943
  cname = None
@@ -956,24 +945,22 @@ class CaeClient(Client):
956
945
  collection_formats = {}
957
946
 
958
947
  path_params = {}
959
- if 'component_id' in local_var_params:
960
- path_params['component_id'] = local_var_params['component_id']
961
948
  if 'application_id' in local_var_params:
962
949
  path_params['application_id'] = local_var_params['application_id']
950
+ if 'component_id' in local_var_params:
951
+ path_params['component_id'] = local_var_params['component_id']
963
952
 
964
953
  query_params = []
965
954
 
966
955
  header_params = {}
967
- if 'x_environment_id' in local_var_params:
968
- header_params['X-Environment-ID'] = local_var_params['x_environment_id']
969
956
  if 'x_enterprise_project_id' in local_var_params:
970
957
  header_params['X-Enterprise-Project-ID'] = local_var_params['x_enterprise_project_id']
958
+ if 'x_environment_id' in local_var_params:
959
+ header_params['X-Environment-ID'] = local_var_params['x_environment_id']
971
960
 
972
961
  form_params = {}
973
962
 
974
963
  body_params = None
975
- if 'body' in local_var_params:
976
- body_params = local_var_params['body']
977
964
  if isinstance(request, SdkStreamRequest):
978
965
  body_params = request.get_file_stream()
979
966
 
@@ -985,33 +972,34 @@ class CaeClient(Client):
985
972
  auth_settings = []
986
973
 
987
974
  return self.call_api(
988
- resource_path='/v1/{project_id}/cae/applications/{application_id}/components/{component_id}/configurations',
989
- method='POST',
975
+ resource_path='/v1/{project_id}/cae/applications/{application_id}/components/{component_id}/snapshots',
976
+ method='GET',
990
977
  path_params=path_params,
991
978
  query_params=query_params,
992
979
  header_params=header_params,
993
980
  body=body_params,
994
981
  post_params=form_params,
995
982
  cname=cname,
996
- response_type='CreateComponentConfigurationResponse',
983
+ response_type='ListComponentSnapshotsResponse',
997
984
  response_headers=response_headers,
998
985
  auth_settings=auth_settings,
999
986
  collection_formats=collection_formats,
1000
987
  request_type=request.__class__.__name__)
1001
988
 
1002
- def delete_component_configuration(self, request):
1003
- """删除组件配置
989
+ def list_components(self, request):
990
+ """获取组件列表
1004
991
 
992
+ 获取组件列表。
1005
993
 
1006
994
  Please refer to HUAWEI cloud API Explorer for details.
1007
995
 
1008
- :param request: Request instance for DeleteComponentConfiguration
1009
- :type request: :class:`huaweicloudsdkcae.v1.DeleteComponentConfigurationRequest`
1010
- :rtype: :class:`huaweicloudsdkcae.v1.DeleteComponentConfigurationResponse`
996
+ :param request: Request instance for ListComponents
997
+ :type request: :class:`huaweicloudsdkcae.v1.ListComponentsRequest`
998
+ :rtype: :class:`huaweicloudsdkcae.v1.ListComponentsResponse`
1011
999
  """
1012
- return self._delete_component_configuration_with_http_info(request)
1000
+ return self._list_components_with_http_info(request)
1013
1001
 
1014
- def _delete_component_configuration_with_http_info(self, request):
1002
+ def _list_components_with_http_info(self, request):
1015
1003
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1016
1004
 
1017
1005
  cname = None
@@ -1019,18 +1007,20 @@ class CaeClient(Client):
1019
1007
  collection_formats = {}
1020
1008
 
1021
1009
  path_params = {}
1022
- if 'component_id' in local_var_params:
1023
- path_params['component_id'] = local_var_params['component_id']
1024
1010
  if 'application_id' in local_var_params:
1025
1011
  path_params['application_id'] = local_var_params['application_id']
1026
1012
 
1027
1013
  query_params = []
1014
+ if 'limit' in local_var_params:
1015
+ query_params.append(('limit', local_var_params['limit']))
1016
+ if 'offset' in local_var_params:
1017
+ query_params.append(('offset', local_var_params['offset']))
1028
1018
 
1029
1019
  header_params = {}
1030
- if 'x_environment_id' in local_var_params:
1031
- header_params['X-Environment-ID'] = local_var_params['x_environment_id']
1032
1020
  if 'x_enterprise_project_id' in local_var_params:
1033
1021
  header_params['X-Enterprise-Project-ID'] = local_var_params['x_enterprise_project_id']
1022
+ if 'x_environment_id' in local_var_params:
1023
+ header_params['X-Environment-ID'] = local_var_params['x_environment_id']
1034
1024
 
1035
1025
  form_params = {}
1036
1026
 
@@ -1046,34 +1036,34 @@ class CaeClient(Client):
1046
1036
  auth_settings = []
1047
1037
 
1048
1038
  return self.call_api(
1049
- resource_path='/v1/{project_id}/cae/applications/{application_id}/components/{component_id}/configurations',
1050
- method='DELETE',
1039
+ resource_path='/v1/{project_id}/cae/applications/{application_id}/components',
1040
+ method='GET',
1051
1041
  path_params=path_params,
1052
1042
  query_params=query_params,
1053
1043
  header_params=header_params,
1054
1044
  body=body_params,
1055
1045
  post_params=form_params,
1056
1046
  cname=cname,
1057
- response_type='DeleteComponentConfigurationResponse',
1047
+ response_type='ListComponentsResponse',
1058
1048
  response_headers=response_headers,
1059
1049
  auth_settings=auth_settings,
1060
1050
  collection_formats=collection_formats,
1061
1051
  request_type=request.__class__.__name__)
1062
1052
 
1063
- def list_configurations(self, request):
1064
- """获取组件配置列表
1053
+ def show_component(self, request):
1054
+ """获取组件详情
1065
1055
 
1066
- 本接口用于获取组件配置
1056
+ 获取组件详情。
1067
1057
 
1068
1058
  Please refer to HUAWEI cloud API Explorer for details.
1069
1059
 
1070
- :param request: Request instance for ListConfigurations
1071
- :type request: :class:`huaweicloudsdkcae.v1.ListConfigurationsRequest`
1072
- :rtype: :class:`huaweicloudsdkcae.v1.ListConfigurationsResponse`
1060
+ :param request: Request instance for ShowComponent
1061
+ :type request: :class:`huaweicloudsdkcae.v1.ShowComponentRequest`
1062
+ :rtype: :class:`huaweicloudsdkcae.v1.ShowComponentResponse`
1073
1063
  """
1074
- return self._list_configurations_with_http_info(request)
1064
+ return self._show_component_with_http_info(request)
1075
1065
 
1076
- def _list_configurations_with_http_info(self, request):
1066
+ def _show_component_with_http_info(self, request):
1077
1067
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1078
1068
 
1079
1069
  cname = None
@@ -1081,22 +1071,86 @@ class CaeClient(Client):
1081
1071
  collection_formats = {}
1082
1072
 
1083
1073
  path_params = {}
1084
- if 'component_id' in local_var_params:
1085
- path_params['component_id'] = local_var_params['component_id']
1086
1074
  if 'application_id' in local_var_params:
1087
1075
  path_params['application_id'] = local_var_params['application_id']
1076
+ if 'component_id' in local_var_params:
1077
+ path_params['component_id'] = local_var_params['component_id']
1088
1078
 
1089
1079
  query_params = []
1090
1080
 
1091
1081
  header_params = {}
1082
+ if 'x_enterprise_project_id' in local_var_params:
1083
+ header_params['X-Enterprise-Project-ID'] = local_var_params['x_enterprise_project_id']
1092
1084
  if 'x_environment_id' in local_var_params:
1093
1085
  header_params['X-Environment-ID'] = local_var_params['x_environment_id']
1086
+
1087
+ form_params = {}
1088
+
1089
+ body_params = None
1090
+ if isinstance(request, SdkStreamRequest):
1091
+ body_params = request.get_file_stream()
1092
+
1093
+ response_headers = []
1094
+
1095
+ header_params['Content-Type'] = http_utils.select_header_content_type(
1096
+ ['application/json'])
1097
+
1098
+ auth_settings = []
1099
+
1100
+ return self.call_api(
1101
+ resource_path='/v1/{project_id}/cae/applications/{application_id}/components/{component_id}',
1102
+ method='GET',
1103
+ path_params=path_params,
1104
+ query_params=query_params,
1105
+ header_params=header_params,
1106
+ body=body_params,
1107
+ post_params=form_params,
1108
+ cname=cname,
1109
+ response_type='ShowComponentResponse',
1110
+ response_headers=response_headers,
1111
+ auth_settings=auth_settings,
1112
+ collection_formats=collection_formats,
1113
+ request_type=request.__class__.__name__)
1114
+
1115
+ def update_component(self, request):
1116
+ """更新组件
1117
+
1118
+ 更新组件。
1119
+
1120
+ Please refer to HUAWEI cloud API Explorer for details.
1121
+
1122
+ :param request: Request instance for UpdateComponent
1123
+ :type request: :class:`huaweicloudsdkcae.v1.UpdateComponentRequest`
1124
+ :rtype: :class:`huaweicloudsdkcae.v1.UpdateComponentResponse`
1125
+ """
1126
+ return self._update_component_with_http_info(request)
1127
+
1128
+ def _update_component_with_http_info(self, request):
1129
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1130
+
1131
+ cname = None
1132
+
1133
+ collection_formats = {}
1134
+
1135
+ path_params = {}
1136
+ if 'application_id' in local_var_params:
1137
+ path_params['application_id'] = local_var_params['application_id']
1138
+ if 'component_id' in local_var_params:
1139
+ path_params['component_id'] = local_var_params['component_id']
1140
+
1141
+ query_params = []
1142
+
1143
+ header_params = {}
1094
1144
  if 'x_enterprise_project_id' in local_var_params:
1095
1145
  header_params['X-Enterprise-Project-ID'] = local_var_params['x_enterprise_project_id']
1146
+ if 'x_environment_id' in local_var_params:
1147
+ header_params['X-Environment-ID'] = local_var_params['x_environment_id']
1096
1148
 
1097
1149
  form_params = {}
1098
1150
 
1099
1151
  body_params = None
1152
+ if 'body' in local_var_params:
1153
+ body_params = local_var_params['body']
1100
1154
  if isinstance(request, SdkStreamRequest):
1101
1155
  body_params = request.get_file_stream()
1102
1156
 
@@ -1108,34 +1162,34 @@ class CaeClient(Client):
1108
1162
  auth_settings = []
1109
1163
 
1110
1164
  return self.call_api(
1111
- resource_path='/v1/{project_id}/cae/applications/{application_id}/components/{component_id}/configurations',
1112
- method='GET',
1165
+ resource_path='/v1/{project_id}/cae/applications/{application_id}/components/{component_id}',
1166
+ method='PUT',
1113
1167
  path_params=path_params,
1114
1168
  query_params=query_params,
1115
1169
  header_params=header_params,
1116
1170
  body=body_params,
1117
1171
  post_params=form_params,
1118
1172
  cname=cname,
1119
- response_type='ListConfigurationsResponse',
1173
+ response_type='UpdateComponentResponse',
1120
1174
  response_headers=response_headers,
1121
1175
  auth_settings=auth_settings,
1122
1176
  collection_formats=collection_formats,
1123
1177
  request_type=request.__class__.__name__)
1124
1178
 
1125
- def create_environment(self, request):
1126
- """创建环境
1179
+ def create_component_configuration(self, request):
1180
+ """创建组件配置
1127
1181
 
1128
- 本接口用于创建一个环境,环境是CAE定义的一个资源维度,所有的用户组件都放在环境下
1182
+ 创建组件配置。
1129
1183
 
1130
1184
  Please refer to HUAWEI cloud API Explorer for details.
1131
1185
 
1132
- :param request: Request instance for CreateEnvironment
1133
- :type request: :class:`huaweicloudsdkcae.v1.CreateEnvironmentRequest`
1134
- :rtype: :class:`huaweicloudsdkcae.v1.CreateEnvironmentResponse`
1186
+ :param request: Request instance for CreateComponentConfiguration
1187
+ :type request: :class:`huaweicloudsdkcae.v1.CreateComponentConfigurationRequest`
1188
+ :rtype: :class:`huaweicloudsdkcae.v1.CreateComponentConfigurationResponse`
1135
1189
  """
1136
- return self._create_environment_with_http_info(request)
1190
+ return self._create_component_configuration_with_http_info(request)
1137
1191
 
1138
- def _create_environment_with_http_info(self, request):
1192
+ def _create_component_configuration_with_http_info(self, request):
1139
1193
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1140
1194
 
1141
1195
  cname = None
@@ -1143,12 +1197,18 @@ class CaeClient(Client):
1143
1197
  collection_formats = {}
1144
1198
 
1145
1199
  path_params = {}
1200
+ if 'application_id' in local_var_params:
1201
+ path_params['application_id'] = local_var_params['application_id']
1202
+ if 'component_id' in local_var_params:
1203
+ path_params['component_id'] = local_var_params['component_id']
1146
1204
 
1147
1205
  query_params = []
1148
1206
 
1149
1207
  header_params = {}
1150
1208
  if 'x_enterprise_project_id' in local_var_params:
1151
1209
  header_params['X-Enterprise-Project-ID'] = local_var_params['x_enterprise_project_id']
1210
+ if 'x_environment_id' in local_var_params:
1211
+ header_params['X-Environment-ID'] = local_var_params['x_environment_id']
1152
1212
 
1153
1213
  form_params = {}
1154
1214
 
@@ -1166,7 +1226,7 @@ class CaeClient(Client):
1166
1226
  auth_settings = []
1167
1227
 
1168
1228
  return self.call_api(
1169
- resource_path='/v1/{project_id}/cae/environments',
1229
+ resource_path='/v1/{project_id}/cae/applications/{application_id}/components/{component_id}/configurations',
1170
1230
  method='POST',
1171
1231
  path_params=path_params,
1172
1232
  query_params=query_params,
@@ -1174,26 +1234,26 @@ class CaeClient(Client):
1174
1234
  body=body_params,
1175
1235
  post_params=form_params,
1176
1236
  cname=cname,
1177
- response_type='CreateEnvironmentResponse',
1237
+ response_type='CreateComponentConfigurationResponse',
1178
1238
  response_headers=response_headers,
1179
1239
  auth_settings=auth_settings,
1180
1240
  collection_formats=collection_formats,
1181
1241
  request_type=request.__class__.__name__)
1182
1242
 
1183
- def delete_environment(self, request):
1184
- """删除环境
1243
+ def delete_component_configuration(self, request):
1244
+ """删除组件配置
1185
1245
 
1186
- 本接口用于删除环境,暂未开放。
1246
+ 删除组件配置。
1187
1247
 
1188
1248
  Please refer to HUAWEI cloud API Explorer for details.
1189
1249
 
1190
- :param request: Request instance for DeleteEnvironment
1191
- :type request: :class:`huaweicloudsdkcae.v1.DeleteEnvironmentRequest`
1192
- :rtype: :class:`huaweicloudsdkcae.v1.DeleteEnvironmentResponse`
1250
+ :param request: Request instance for DeleteComponentConfiguration
1251
+ :type request: :class:`huaweicloudsdkcae.v1.DeleteComponentConfigurationRequest`
1252
+ :rtype: :class:`huaweicloudsdkcae.v1.DeleteComponentConfigurationResponse`
1193
1253
  """
1194
- return self._delete_environment_with_http_info(request)
1254
+ return self._delete_component_configuration_with_http_info(request)
1195
1255
 
1196
- def _delete_environment_with_http_info(self, request):
1256
+ def _delete_component_configuration_with_http_info(self, request):
1197
1257
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1198
1258
 
1199
1259
  cname = None
@@ -1201,14 +1261,18 @@ class CaeClient(Client):
1201
1261
  collection_formats = {}
1202
1262
 
1203
1263
  path_params = {}
1204
- if 'environment_id' in local_var_params:
1205
- path_params['environment_id'] = local_var_params['environment_id']
1264
+ if 'application_id' in local_var_params:
1265
+ path_params['application_id'] = local_var_params['application_id']
1266
+ if 'component_id' in local_var_params:
1267
+ path_params['component_id'] = local_var_params['component_id']
1206
1268
 
1207
1269
  query_params = []
1208
1270
 
1209
1271
  header_params = {}
1210
1272
  if 'x_enterprise_project_id' in local_var_params:
1211
1273
  header_params['X-Enterprise-Project-ID'] = local_var_params['x_enterprise_project_id']
1274
+ if 'x_environment_id' in local_var_params:
1275
+ header_params['X-Environment-ID'] = local_var_params['x_environment_id']
1212
1276
 
1213
1277
  form_params = {}
1214
1278
 
@@ -1224,7 +1288,7 @@ class CaeClient(Client):
1224
1288
  auth_settings = []
1225
1289
 
1226
1290
  return self.call_api(
1227
- resource_path='/v1/{project_id}/cae/environments/{environment_id}',
1291
+ resource_path='/v1/{project_id}/cae/applications/{application_id}/components/{component_id}/configurations',
1228
1292
  method='DELETE',
1229
1293
  path_params=path_params,
1230
1294
  query_params=query_params,
@@ -1232,26 +1296,26 @@ class CaeClient(Client):
1232
1296
  body=body_params,
1233
1297
  post_params=form_params,
1234
1298
  cname=cname,
1235
- response_type='DeleteEnvironmentResponse',
1299
+ response_type='DeleteComponentConfigurationResponse',
1236
1300
  response_headers=response_headers,
1237
1301
  auth_settings=auth_settings,
1238
1302
  collection_formats=collection_formats,
1239
1303
  request_type=request.__class__.__name__)
1240
1304
 
1241
- def list_environments(self, request):
1242
- """获取环境列表
1305
+ def list_component_configurations(self, request):
1306
+ """获取组件配置列表
1243
1307
 
1244
- 本接口用于获取当前租户环境信息,环境是CAE定义的一个资源维度,所有的用户组件都放在环境下
1308
+ 获取组件配置列表。
1245
1309
 
1246
1310
  Please refer to HUAWEI cloud API Explorer for details.
1247
1311
 
1248
- :param request: Request instance for ListEnvironments
1249
- :type request: :class:`huaweicloudsdkcae.v1.ListEnvironmentsRequest`
1250
- :rtype: :class:`huaweicloudsdkcae.v1.ListEnvironmentsResponse`
1312
+ :param request: Request instance for ListComponentConfigurations
1313
+ :type request: :class:`huaweicloudsdkcae.v1.ListComponentConfigurationsRequest`
1314
+ :rtype: :class:`huaweicloudsdkcae.v1.ListComponentConfigurationsResponse`
1251
1315
  """
1252
- return self._list_environments_with_http_info(request)
1316
+ return self._list_component_configurations_with_http_info(request)
1253
1317
 
1254
- def _list_environments_with_http_info(self, request):
1318
+ def _list_component_configurations_with_http_info(self, request):
1255
1319
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1256
1320
 
1257
1321
  cname = None
@@ -1259,12 +1323,18 @@ class CaeClient(Client):
1259
1323
  collection_formats = {}
1260
1324
 
1261
1325
  path_params = {}
1326
+ if 'application_id' in local_var_params:
1327
+ path_params['application_id'] = local_var_params['application_id']
1328
+ if 'component_id' in local_var_params:
1329
+ path_params['component_id'] = local_var_params['component_id']
1262
1330
 
1263
1331
  query_params = []
1264
1332
 
1265
1333
  header_params = {}
1266
1334
  if 'x_enterprise_project_id' in local_var_params:
1267
1335
  header_params['X-Enterprise-Project-ID'] = local_var_params['x_enterprise_project_id']
1336
+ if 'x_environment_id' in local_var_params:
1337
+ header_params['X-Environment-ID'] = local_var_params['x_environment_id']
1268
1338
 
1269
1339
  form_params = {}
1270
1340
 
@@ -1280,7 +1350,7 @@ class CaeClient(Client):
1280
1350
  auth_settings = []
1281
1351
 
1282
1352
  return self.call_api(
1283
- resource_path='/v1/{project_id}/cae/environments',
1353
+ resource_path='/v1/{project_id}/cae/applications/{application_id}/components/{component_id}/configurations',
1284
1354
  method='GET',
1285
1355
  path_params=path_params,
1286
1356
  query_params=query_params,
@@ -1288,26 +1358,26 @@ class CaeClient(Client):
1288
1358
  body=body_params,
1289
1359
  post_params=form_params,
1290
1360
  cname=cname,
1291
- response_type='ListEnvironmentsResponse',
1361
+ response_type='ListComponentConfigurationsResponse',
1292
1362
  response_headers=response_headers,
1293
1363
  auth_settings=auth_settings,
1294
1364
  collection_formats=collection_formats,
1295
1365
  request_type=request.__class__.__name__)
1296
1366
 
1297
- def retry_job(self, request):
1298
- """重试任务
1367
+ def create_domain(self, request):
1368
+ """创建域名
1299
1369
 
1300
- 本接口用于重试任务
1370
+ 创建域名。
1301
1371
 
1302
1372
  Please refer to HUAWEI cloud API Explorer for details.
1303
1373
 
1304
- :param request: Request instance for RetryJob
1305
- :type request: :class:`huaweicloudsdkcae.v1.RetryJobRequest`
1306
- :rtype: :class:`huaweicloudsdkcae.v1.RetryJobResponse`
1374
+ :param request: Request instance for CreateDomain
1375
+ :type request: :class:`huaweicloudsdkcae.v1.CreateDomainRequest`
1376
+ :rtype: :class:`huaweicloudsdkcae.v1.CreateDomainResponse`
1307
1377
  """
1308
- return self._retry_job_with_http_info(request)
1378
+ return self._create_domain_with_http_info(request)
1309
1379
 
1310
- def _retry_job_with_http_info(self, request):
1380
+ def _create_domain_with_http_info(self, request):
1311
1381
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1312
1382
 
1313
1383
  cname = None
@@ -1315,16 +1385,20 @@ class CaeClient(Client):
1315
1385
  collection_formats = {}
1316
1386
 
1317
1387
  path_params = {}
1318
- if 'job_id' in local_var_params:
1319
- path_params['job_id'] = local_var_params['job_id']
1320
1388
 
1321
1389
  query_params = []
1322
1390
 
1323
1391
  header_params = {}
1392
+ if 'x_enterprise_project_id' in local_var_params:
1393
+ header_params['X-Enterprise-Project-ID'] = local_var_params['x_enterprise_project_id']
1394
+ if 'x_environment_id' in local_var_params:
1395
+ header_params['X-Environment-ID'] = local_var_params['x_environment_id']
1324
1396
 
1325
1397
  form_params = {}
1326
1398
 
1327
1399
  body_params = None
1400
+ if 'body' in local_var_params:
1401
+ body_params = local_var_params['body']
1328
1402
  if isinstance(request, SdkStreamRequest):
1329
1403
  body_params = request.get_file_stream()
1330
1404
 
@@ -1336,7 +1410,7 @@ class CaeClient(Client):
1336
1410
  auth_settings = []
1337
1411
 
1338
1412
  return self.call_api(
1339
- resource_path='/v1/{project_id}/cae/jobs/{job_id}',
1413
+ resource_path='/v1/{project_id}/cae/domains',
1340
1414
  method='POST',
1341
1415
  path_params=path_params,
1342
1416
  query_params=query_params,
@@ -1344,26 +1418,26 @@ class CaeClient(Client):
1344
1418
  body=body_params,
1345
1419
  post_params=form_params,
1346
1420
  cname=cname,
1347
- response_type='RetryJobResponse',
1421
+ response_type='CreateDomainResponse',
1348
1422
  response_headers=response_headers,
1349
1423
  auth_settings=auth_settings,
1350
1424
  collection_formats=collection_formats,
1351
1425
  request_type=request.__class__.__name__)
1352
1426
 
1353
- def show_job(self, request):
1354
- """获取任务详情
1427
+ def delete_domain(self, request):
1428
+ """删除域名
1355
1429
 
1356
- 本接口用于获取任务详情
1430
+ 删除域名。
1357
1431
 
1358
1432
  Please refer to HUAWEI cloud API Explorer for details.
1359
1433
 
1360
- :param request: Request instance for ShowJob
1361
- :type request: :class:`huaweicloudsdkcae.v1.ShowJobRequest`
1362
- :rtype: :class:`huaweicloudsdkcae.v1.ShowJobResponse`
1434
+ :param request: Request instance for DeleteDomain
1435
+ :type request: :class:`huaweicloudsdkcae.v1.DeleteDomainRequest`
1436
+ :rtype: :class:`huaweicloudsdkcae.v1.DeleteDomainResponse`
1363
1437
  """
1364
- return self._show_job_with_http_info(request)
1438
+ return self._delete_domain_with_http_info(request)
1365
1439
 
1366
- def _show_job_with_http_info(self, request):
1440
+ def _delete_domain_with_http_info(self, request):
1367
1441
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1368
1442
 
1369
1443
  cname = None
@@ -1371,14 +1445,16 @@ class CaeClient(Client):
1371
1445
  collection_formats = {}
1372
1446
 
1373
1447
  path_params = {}
1374
- if 'job_id' in local_var_params:
1375
- path_params['job_id'] = local_var_params['job_id']
1448
+ if 'domain_id' in local_var_params:
1449
+ path_params['domain_id'] = local_var_params['domain_id']
1376
1450
 
1377
1451
  query_params = []
1378
1452
 
1379
1453
  header_params = {}
1380
1454
  if 'x_enterprise_project_id' in local_var_params:
1381
1455
  header_params['X-Enterprise-Project-ID'] = local_var_params['x_enterprise_project_id']
1456
+ if 'x_environment_id' in local_var_params:
1457
+ header_params['X-Environment-ID'] = local_var_params['x_environment_id']
1382
1458
 
1383
1459
  form_params = {}
1384
1460
 
@@ -1394,34 +1470,34 @@ class CaeClient(Client):
1394
1470
  auth_settings = []
1395
1471
 
1396
1472
  return self.call_api(
1397
- resource_path='/v1/{project_id}/cae/jobs/{job_id}',
1398
- method='GET',
1473
+ resource_path='/v1/{project_id}/cae/domains/{domain_id}',
1474
+ method='DELETE',
1399
1475
  path_params=path_params,
1400
1476
  query_params=query_params,
1401
1477
  header_params=header_params,
1402
1478
  body=body_params,
1403
1479
  post_params=form_params,
1404
1480
  cname=cname,
1405
- response_type='ShowJobResponse',
1481
+ response_type='DeleteDomainResponse',
1406
1482
  response_headers=response_headers,
1407
1483
  auth_settings=auth_settings,
1408
1484
  collection_formats=collection_formats,
1409
1485
  request_type=request.__class__.__name__)
1410
1486
 
1411
- def create_volume(self, request):
1412
- """创建卷
1487
+ def list_domains(self, request):
1488
+ """获取域名列表
1413
1489
 
1414
- 本接口用于创建卷
1490
+ 获取域名列表。
1415
1491
 
1416
1492
  Please refer to HUAWEI cloud API Explorer for details.
1417
1493
 
1418
- :param request: Request instance for CreateVolume
1419
- :type request: :class:`huaweicloudsdkcae.v1.CreateVolumeRequest`
1420
- :rtype: :class:`huaweicloudsdkcae.v1.CreateVolumeResponse`
1494
+ :param request: Request instance for ListDomains
1495
+ :type request: :class:`huaweicloudsdkcae.v1.ListDomainsRequest`
1496
+ :rtype: :class:`huaweicloudsdkcae.v1.ListDomainsResponse`
1421
1497
  """
1422
- return self._create_volume_with_http_info(request)
1498
+ return self._list_domains_with_http_info(request)
1423
1499
 
1424
- def _create_volume_with_http_info(self, request):
1500
+ def _list_domains_with_http_info(self, request):
1425
1501
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1426
1502
 
1427
1503
  cname = None
@@ -1433,16 +1509,14 @@ class CaeClient(Client):
1433
1509
  query_params = []
1434
1510
 
1435
1511
  header_params = {}
1436
- if 'x_environment_id' in local_var_params:
1437
- header_params['X-Environment-ID'] = local_var_params['x_environment_id']
1438
1512
  if 'x_enterprise_project_id' in local_var_params:
1439
1513
  header_params['X-Enterprise-Project-ID'] = local_var_params['x_enterprise_project_id']
1514
+ if 'x_environment_id' in local_var_params:
1515
+ header_params['X-Environment-ID'] = local_var_params['x_environment_id']
1440
1516
 
1441
1517
  form_params = {}
1442
1518
 
1443
1519
  body_params = None
1444
- if 'body' in local_var_params:
1445
- body_params = local_var_params['body']
1446
1520
  if isinstance(request, SdkStreamRequest):
1447
1521
  body_params = request.get_file_stream()
1448
1522
 
@@ -1454,34 +1528,34 @@ class CaeClient(Client):
1454
1528
  auth_settings = []
1455
1529
 
1456
1530
  return self.call_api(
1457
- resource_path='/v1/{project_id}/cae/volumes',
1458
- method='POST',
1531
+ resource_path='/v1/{project_id}/cae/domains',
1532
+ method='GET',
1459
1533
  path_params=path_params,
1460
1534
  query_params=query_params,
1461
1535
  header_params=header_params,
1462
1536
  body=body_params,
1463
1537
  post_params=form_params,
1464
1538
  cname=cname,
1465
- response_type='CreateVolumeResponse',
1539
+ response_type='ListDomainsResponse',
1466
1540
  response_headers=response_headers,
1467
1541
  auth_settings=auth_settings,
1468
1542
  collection_formats=collection_formats,
1469
1543
  request_type=request.__class__.__name__)
1470
1544
 
1471
- def delete_volume(self, request):
1472
- """删除卷
1545
+ def create_environment(self, request):
1546
+ """创建环境
1473
1547
 
1474
- 本接口用于创建卷
1548
+ 创建环境。
1475
1549
 
1476
1550
  Please refer to HUAWEI cloud API Explorer for details.
1477
1551
 
1478
- :param request: Request instance for DeleteVolume
1479
- :type request: :class:`huaweicloudsdkcae.v1.DeleteVolumeRequest`
1480
- :rtype: :class:`huaweicloudsdkcae.v1.DeleteVolumeResponse`
1552
+ :param request: Request instance for CreateEnvironment
1553
+ :type request: :class:`huaweicloudsdkcae.v1.CreateEnvironmentRequest`
1554
+ :rtype: :class:`huaweicloudsdkcae.v1.CreateEnvironmentResponse`
1481
1555
  """
1482
- return self._delete_volume_with_http_info(request)
1556
+ return self._create_environment_with_http_info(request)
1483
1557
 
1484
- def _delete_volume_with_http_info(self, request):
1558
+ def _create_environment_with_http_info(self, request):
1485
1559
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1486
1560
 
1487
1561
  cname = None
@@ -1489,20 +1563,18 @@ class CaeClient(Client):
1489
1563
  collection_formats = {}
1490
1564
 
1491
1565
  path_params = {}
1492
- if 'id' in local_var_params:
1493
- path_params['id'] = local_var_params['id']
1494
1566
 
1495
1567
  query_params = []
1496
1568
 
1497
1569
  header_params = {}
1498
- if 'x_environment_id' in local_var_params:
1499
- header_params['X-Environment-ID'] = local_var_params['x_environment_id']
1500
1570
  if 'x_enterprise_project_id' in local_var_params:
1501
1571
  header_params['X-Enterprise-Project-ID'] = local_var_params['x_enterprise_project_id']
1502
1572
 
1503
1573
  form_params = {}
1504
1574
 
1505
1575
  body_params = None
1576
+ if 'body' in local_var_params:
1577
+ body_params = local_var_params['body']
1506
1578
  if isinstance(request, SdkStreamRequest):
1507
1579
  body_params = request.get_file_stream()
1508
1580
 
@@ -1514,34 +1586,34 @@ class CaeClient(Client):
1514
1586
  auth_settings = []
1515
1587
 
1516
1588
  return self.call_api(
1517
- resource_path='/v1/{project_id}/cae/volumes/{id}',
1518
- method='DELETE',
1589
+ resource_path='/v1/{project_id}/cae/environments',
1590
+ method='POST',
1519
1591
  path_params=path_params,
1520
1592
  query_params=query_params,
1521
1593
  header_params=header_params,
1522
1594
  body=body_params,
1523
1595
  post_params=form_params,
1524
1596
  cname=cname,
1525
- response_type='DeleteVolumeResponse',
1597
+ response_type='CreateEnvironmentResponse',
1526
1598
  response_headers=response_headers,
1527
1599
  auth_settings=auth_settings,
1528
1600
  collection_formats=collection_formats,
1529
1601
  request_type=request.__class__.__name__)
1530
1602
 
1531
- def list_volumes(self, request):
1532
- """获取卷列表
1603
+ def delete_environment(self, request):
1604
+ """删除环境
1533
1605
 
1534
- 本接口用于获取卷列表
1606
+ 删除环境。
1535
1607
 
1536
1608
  Please refer to HUAWEI cloud API Explorer for details.
1537
1609
 
1538
- :param request: Request instance for ListVolumes
1539
- :type request: :class:`huaweicloudsdkcae.v1.ListVolumesRequest`
1540
- :rtype: :class:`huaweicloudsdkcae.v1.ListVolumesResponse`
1610
+ :param request: Request instance for DeleteEnvironment
1611
+ :type request: :class:`huaweicloudsdkcae.v1.DeleteEnvironmentRequest`
1612
+ :rtype: :class:`huaweicloudsdkcae.v1.DeleteEnvironmentResponse`
1541
1613
  """
1542
- return self._list_volumes_with_http_info(request)
1614
+ return self._delete_environment_with_http_info(request)
1543
1615
 
1544
- def _list_volumes_with_http_info(self, request):
1616
+ def _delete_environment_with_http_info(self, request):
1545
1617
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1546
1618
 
1547
1619
  cname = None
@@ -1549,14 +1621,12 @@ class CaeClient(Client):
1549
1621
  collection_formats = {}
1550
1622
 
1551
1623
  path_params = {}
1624
+ if 'environment_id' in local_var_params:
1625
+ path_params['environment_id'] = local_var_params['environment_id']
1552
1626
 
1553
1627
  query_params = []
1554
- if 'resource_type' in local_var_params:
1555
- query_params.append(('resource_type', local_var_params['resource_type']))
1556
1628
 
1557
1629
  header_params = {}
1558
- if 'x_environment_id' in local_var_params:
1559
- header_params['X-Environment-ID'] = local_var_params['x_environment_id']
1560
1630
  if 'x_enterprise_project_id' in local_var_params:
1561
1631
  header_params['X-Enterprise-Project-ID'] = local_var_params['x_enterprise_project_id']
1562
1632
 
@@ -1574,15 +1644,671 @@ class CaeClient(Client):
1574
1644
  auth_settings = []
1575
1645
 
1576
1646
  return self.call_api(
1577
- resource_path='/v1/{project_id}/cae/volumes',
1578
- method='GET',
1647
+ resource_path='/v1/{project_id}/cae/environments/{environment_id}',
1648
+ method='DELETE',
1579
1649
  path_params=path_params,
1580
1650
  query_params=query_params,
1581
1651
  header_params=header_params,
1582
1652
  body=body_params,
1583
1653
  post_params=form_params,
1584
1654
  cname=cname,
1585
- response_type='ListVolumesResponse',
1655
+ response_type='DeleteEnvironmentResponse',
1656
+ response_headers=response_headers,
1657
+ auth_settings=auth_settings,
1658
+ collection_formats=collection_formats,
1659
+ request_type=request.__class__.__name__)
1660
+
1661
+ def list_environments(self, request):
1662
+ """获取环境列表
1663
+
1664
+ 获取环境列表。
1665
+
1666
+ Please refer to HUAWEI cloud API Explorer for details.
1667
+
1668
+ :param request: Request instance for ListEnvironments
1669
+ :type request: :class:`huaweicloudsdkcae.v1.ListEnvironmentsRequest`
1670
+ :rtype: :class:`huaweicloudsdkcae.v1.ListEnvironmentsResponse`
1671
+ """
1672
+ return self._list_environments_with_http_info(request)
1673
+
1674
+ def _list_environments_with_http_info(self, request):
1675
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1676
+
1677
+ cname = None
1678
+
1679
+ collection_formats = {}
1680
+
1681
+ path_params = {}
1682
+
1683
+ query_params = []
1684
+
1685
+ header_params = {}
1686
+ if 'x_enterprise_project_id' in local_var_params:
1687
+ header_params['X-Enterprise-Project-ID'] = local_var_params['x_enterprise_project_id']
1688
+
1689
+ form_params = {}
1690
+
1691
+ body_params = None
1692
+ if isinstance(request, SdkStreamRequest):
1693
+ body_params = request.get_file_stream()
1694
+
1695
+ response_headers = []
1696
+
1697
+ header_params['Content-Type'] = http_utils.select_header_content_type(
1698
+ ['application/json'])
1699
+
1700
+ auth_settings = []
1701
+
1702
+ return self.call_api(
1703
+ resource_path='/v1/{project_id}/cae/environments',
1704
+ method='GET',
1705
+ path_params=path_params,
1706
+ query_params=query_params,
1707
+ header_params=header_params,
1708
+ body=body_params,
1709
+ post_params=form_params,
1710
+ cname=cname,
1711
+ response_type='ListEnvironmentsResponse',
1712
+ response_headers=response_headers,
1713
+ auth_settings=auth_settings,
1714
+ collection_formats=collection_formats,
1715
+ request_type=request.__class__.__name__)
1716
+
1717
+ def retry_job(self, request):
1718
+ """重试任务
1719
+
1720
+ 重试任务。
1721
+
1722
+ Please refer to HUAWEI cloud API Explorer for details.
1723
+
1724
+ :param request: Request instance for RetryJob
1725
+ :type request: :class:`huaweicloudsdkcae.v1.RetryJobRequest`
1726
+ :rtype: :class:`huaweicloudsdkcae.v1.RetryJobResponse`
1727
+ """
1728
+ return self._retry_job_with_http_info(request)
1729
+
1730
+ def _retry_job_with_http_info(self, request):
1731
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1732
+
1733
+ cname = None
1734
+
1735
+ collection_formats = {}
1736
+
1737
+ path_params = {}
1738
+ if 'job_id' in local_var_params:
1739
+ path_params['job_id'] = local_var_params['job_id']
1740
+
1741
+ query_params = []
1742
+
1743
+ header_params = {}
1744
+ if 'x_enterprise_project_id' in local_var_params:
1745
+ header_params['X-Enterprise-Project-ID'] = local_var_params['x_enterprise_project_id']
1746
+ if 'x_environment_id' in local_var_params:
1747
+ header_params['X-Environment-ID'] = local_var_params['x_environment_id']
1748
+
1749
+ form_params = {}
1750
+
1751
+ body_params = None
1752
+ if isinstance(request, SdkStreamRequest):
1753
+ body_params = request.get_file_stream()
1754
+
1755
+ response_headers = []
1756
+
1757
+ header_params['Content-Type'] = http_utils.select_header_content_type(
1758
+ ['application/json'])
1759
+
1760
+ auth_settings = []
1761
+
1762
+ return self.call_api(
1763
+ resource_path='/v1/{project_id}/cae/jobs/{job_id}',
1764
+ method='POST',
1765
+ path_params=path_params,
1766
+ query_params=query_params,
1767
+ header_params=header_params,
1768
+ body=body_params,
1769
+ post_params=form_params,
1770
+ cname=cname,
1771
+ response_type='RetryJobResponse',
1772
+ response_headers=response_headers,
1773
+ auth_settings=auth_settings,
1774
+ collection_formats=collection_formats,
1775
+ request_type=request.__class__.__name__)
1776
+
1777
+ def show_job(self, request):
1778
+ """获取任务详情
1779
+
1780
+ 获取任务详情。
1781
+
1782
+ Please refer to HUAWEI cloud API Explorer for details.
1783
+
1784
+ :param request: Request instance for ShowJob
1785
+ :type request: :class:`huaweicloudsdkcae.v1.ShowJobRequest`
1786
+ :rtype: :class:`huaweicloudsdkcae.v1.ShowJobResponse`
1787
+ """
1788
+ return self._show_job_with_http_info(request)
1789
+
1790
+ def _show_job_with_http_info(self, request):
1791
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1792
+
1793
+ cname = None
1794
+
1795
+ collection_formats = {}
1796
+
1797
+ path_params = {}
1798
+ if 'job_id' in local_var_params:
1799
+ path_params['job_id'] = local_var_params['job_id']
1800
+
1801
+ query_params = []
1802
+
1803
+ header_params = {}
1804
+ if 'x_enterprise_project_id' in local_var_params:
1805
+ header_params['X-Enterprise-Project-ID'] = local_var_params['x_enterprise_project_id']
1806
+ if 'x_environment_id' in local_var_params:
1807
+ header_params['X-Environment-ID'] = local_var_params['x_environment_id']
1808
+
1809
+ form_params = {}
1810
+
1811
+ body_params = None
1812
+ if isinstance(request, SdkStreamRequest):
1813
+ body_params = request.get_file_stream()
1814
+
1815
+ response_headers = []
1816
+
1817
+ header_params['Content-Type'] = http_utils.select_header_content_type(
1818
+ ['application/json'])
1819
+
1820
+ auth_settings = []
1821
+
1822
+ return self.call_api(
1823
+ resource_path='/v1/{project_id}/cae/jobs/{job_id}',
1824
+ method='GET',
1825
+ path_params=path_params,
1826
+ query_params=query_params,
1827
+ header_params=header_params,
1828
+ body=body_params,
1829
+ post_params=form_params,
1830
+ cname=cname,
1831
+ response_type='ShowJobResponse',
1832
+ response_headers=response_headers,
1833
+ auth_settings=auth_settings,
1834
+ collection_formats=collection_formats,
1835
+ request_type=request.__class__.__name__)
1836
+
1837
+ def create_volume(self, request):
1838
+ """授权云存储
1839
+
1840
+ 授权云存储。
1841
+
1842
+ Please refer to HUAWEI cloud API Explorer for details.
1843
+
1844
+ :param request: Request instance for CreateVolume
1845
+ :type request: :class:`huaweicloudsdkcae.v1.CreateVolumeRequest`
1846
+ :rtype: :class:`huaweicloudsdkcae.v1.CreateVolumeResponse`
1847
+ """
1848
+ return self._create_volume_with_http_info(request)
1849
+
1850
+ def _create_volume_with_http_info(self, request):
1851
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1852
+
1853
+ cname = None
1854
+
1855
+ collection_formats = {}
1856
+
1857
+ path_params = {}
1858
+
1859
+ query_params = []
1860
+
1861
+ header_params = {}
1862
+ if 'x_enterprise_project_id' in local_var_params:
1863
+ header_params['X-Enterprise-Project-ID'] = local_var_params['x_enterprise_project_id']
1864
+ if 'x_environment_id' in local_var_params:
1865
+ header_params['X-Environment-ID'] = local_var_params['x_environment_id']
1866
+
1867
+ form_params = {}
1868
+
1869
+ body_params = None
1870
+ if 'body' in local_var_params:
1871
+ body_params = local_var_params['body']
1872
+ if isinstance(request, SdkStreamRequest):
1873
+ body_params = request.get_file_stream()
1874
+
1875
+ response_headers = []
1876
+
1877
+ header_params['Content-Type'] = http_utils.select_header_content_type(
1878
+ ['application/json'])
1879
+
1880
+ auth_settings = []
1881
+
1882
+ return self.call_api(
1883
+ resource_path='/v1/{project_id}/cae/volumes',
1884
+ method='POST',
1885
+ path_params=path_params,
1886
+ query_params=query_params,
1887
+ header_params=header_params,
1888
+ body=body_params,
1889
+ post_params=form_params,
1890
+ cname=cname,
1891
+ response_type='CreateVolumeResponse',
1892
+ response_headers=response_headers,
1893
+ auth_settings=auth_settings,
1894
+ collection_formats=collection_formats,
1895
+ request_type=request.__class__.__name__)
1896
+
1897
+ def delete_volume(self, request):
1898
+ """解绑云存储
1899
+
1900
+ 解绑云存储。
1901
+
1902
+ Please refer to HUAWEI cloud API Explorer for details.
1903
+
1904
+ :param request: Request instance for DeleteVolume
1905
+ :type request: :class:`huaweicloudsdkcae.v1.DeleteVolumeRequest`
1906
+ :rtype: :class:`huaweicloudsdkcae.v1.DeleteVolumeResponse`
1907
+ """
1908
+ return self._delete_volume_with_http_info(request)
1909
+
1910
+ def _delete_volume_with_http_info(self, request):
1911
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1912
+
1913
+ cname = None
1914
+
1915
+ collection_formats = {}
1916
+
1917
+ path_params = {}
1918
+ if 'id' in local_var_params:
1919
+ path_params['id'] = local_var_params['id']
1920
+
1921
+ query_params = []
1922
+
1923
+ header_params = {}
1924
+ if 'x_enterprise_project_id' in local_var_params:
1925
+ header_params['X-Enterprise-Project-ID'] = local_var_params['x_enterprise_project_id']
1926
+ if 'x_environment_id' in local_var_params:
1927
+ header_params['X-Environment-ID'] = local_var_params['x_environment_id']
1928
+
1929
+ form_params = {}
1930
+
1931
+ body_params = None
1932
+ if isinstance(request, SdkStreamRequest):
1933
+ body_params = request.get_file_stream()
1934
+
1935
+ response_headers = []
1936
+
1937
+ header_params['Content-Type'] = http_utils.select_header_content_type(
1938
+ ['application/json'])
1939
+
1940
+ auth_settings = []
1941
+
1942
+ return self.call_api(
1943
+ resource_path='/v1/{project_id}/cae/volumes/{id}',
1944
+ method='DELETE',
1945
+ path_params=path_params,
1946
+ query_params=query_params,
1947
+ header_params=header_params,
1948
+ body=body_params,
1949
+ post_params=form_params,
1950
+ cname=cname,
1951
+ response_type='DeleteVolumeResponse',
1952
+ response_headers=response_headers,
1953
+ auth_settings=auth_settings,
1954
+ collection_formats=collection_formats,
1955
+ request_type=request.__class__.__name__)
1956
+
1957
+ def list_volumes(self, request):
1958
+ """获取云存储列表
1959
+
1960
+ 获取云存储列表。
1961
+
1962
+ Please refer to HUAWEI cloud API Explorer for details.
1963
+
1964
+ :param request: Request instance for ListVolumes
1965
+ :type request: :class:`huaweicloudsdkcae.v1.ListVolumesRequest`
1966
+ :rtype: :class:`huaweicloudsdkcae.v1.ListVolumesResponse`
1967
+ """
1968
+ return self._list_volumes_with_http_info(request)
1969
+
1970
+ def _list_volumes_with_http_info(self, request):
1971
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1972
+
1973
+ cname = None
1974
+
1975
+ collection_formats = {}
1976
+
1977
+ path_params = {}
1978
+
1979
+ query_params = []
1980
+ if 'resource_type' in local_var_params:
1981
+ query_params.append(('resource_type', local_var_params['resource_type']))
1982
+
1983
+ header_params = {}
1984
+ if 'x_enterprise_project_id' in local_var_params:
1985
+ header_params['X-Enterprise-Project-ID'] = local_var_params['x_enterprise_project_id']
1986
+ if 'x_environment_id' in local_var_params:
1987
+ header_params['X-Environment-ID'] = local_var_params['x_environment_id']
1988
+
1989
+ form_params = {}
1990
+
1991
+ body_params = None
1992
+ if isinstance(request, SdkStreamRequest):
1993
+ body_params = request.get_file_stream()
1994
+
1995
+ response_headers = []
1996
+
1997
+ header_params['Content-Type'] = http_utils.select_header_content_type(
1998
+ ['application/json'])
1999
+
2000
+ auth_settings = []
2001
+
2002
+ return self.call_api(
2003
+ resource_path='/v1/{project_id}/cae/volumes',
2004
+ method='GET',
2005
+ path_params=path_params,
2006
+ query_params=query_params,
2007
+ header_params=header_params,
2008
+ body=body_params,
2009
+ post_params=form_params,
2010
+ cname=cname,
2011
+ response_type='ListVolumesResponse',
2012
+ response_headers=response_headers,
2013
+ auth_settings=auth_settings,
2014
+ collection_formats=collection_formats,
2015
+ request_type=request.__class__.__name__)
2016
+
2017
+ def create_timer_rule(self, request):
2018
+ """创建定时启停任务
2019
+
2020
+ 创建定时启停任务。
2021
+
2022
+ Please refer to HUAWEI cloud API Explorer for details.
2023
+
2024
+ :param request: Request instance for CreateTimerRule
2025
+ :type request: :class:`huaweicloudsdkcae.v1.CreateTimerRuleRequest`
2026
+ :rtype: :class:`huaweicloudsdkcae.v1.CreateTimerRuleResponse`
2027
+ """
2028
+ return self._create_timer_rule_with_http_info(request)
2029
+
2030
+ def _create_timer_rule_with_http_info(self, request):
2031
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2032
+
2033
+ cname = None
2034
+
2035
+ collection_formats = {}
2036
+
2037
+ path_params = {}
2038
+
2039
+ query_params = []
2040
+
2041
+ header_params = {}
2042
+ if 'x_enterprise_project_id' in local_var_params:
2043
+ header_params['X-Enterprise-Project-ID'] = local_var_params['x_enterprise_project_id']
2044
+ if 'x_environment_id' in local_var_params:
2045
+ header_params['X-Environment-ID'] = local_var_params['x_environment_id']
2046
+
2047
+ form_params = {}
2048
+
2049
+ body_params = None
2050
+ if 'body' in local_var_params:
2051
+ body_params = local_var_params['body']
2052
+ if isinstance(request, SdkStreamRequest):
2053
+ body_params = request.get_file_stream()
2054
+
2055
+ response_headers = []
2056
+
2057
+ header_params['Content-Type'] = http_utils.select_header_content_type(
2058
+ ['application/json'])
2059
+
2060
+ auth_settings = []
2061
+
2062
+ return self.call_api(
2063
+ resource_path='/v1/{project_id}/cae/timer-rules',
2064
+ method='POST',
2065
+ path_params=path_params,
2066
+ query_params=query_params,
2067
+ header_params=header_params,
2068
+ body=body_params,
2069
+ post_params=form_params,
2070
+ cname=cname,
2071
+ response_type='CreateTimerRuleResponse',
2072
+ response_headers=response_headers,
2073
+ auth_settings=auth_settings,
2074
+ collection_formats=collection_formats,
2075
+ request_type=request.__class__.__name__)
2076
+
2077
+ def delete_timer_rule(self, request):
2078
+ """删除定时启停规则
2079
+
2080
+ 删除定时启停规则。
2081
+
2082
+ Please refer to HUAWEI cloud API Explorer for details.
2083
+
2084
+ :param request: Request instance for DeleteTimerRule
2085
+ :type request: :class:`huaweicloudsdkcae.v1.DeleteTimerRuleRequest`
2086
+ :rtype: :class:`huaweicloudsdkcae.v1.DeleteTimerRuleResponse`
2087
+ """
2088
+ return self._delete_timer_rule_with_http_info(request)
2089
+
2090
+ def _delete_timer_rule_with_http_info(self, request):
2091
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2092
+
2093
+ cname = None
2094
+
2095
+ collection_formats = {}
2096
+
2097
+ path_params = {}
2098
+ if 'timer_rule_id' in local_var_params:
2099
+ path_params['timer_rule_id'] = local_var_params['timer_rule_id']
2100
+
2101
+ query_params = []
2102
+
2103
+ header_params = {}
2104
+ if 'x_enterprise_project_id' in local_var_params:
2105
+ header_params['X-Enterprise-Project-ID'] = local_var_params['x_enterprise_project_id']
2106
+ if 'x_environment_id' in local_var_params:
2107
+ header_params['X-Environment-ID'] = local_var_params['x_environment_id']
2108
+
2109
+ form_params = {}
2110
+
2111
+ body_params = None
2112
+ if isinstance(request, SdkStreamRequest):
2113
+ body_params = request.get_file_stream()
2114
+
2115
+ response_headers = []
2116
+
2117
+ header_params['Content-Type'] = http_utils.select_header_content_type(
2118
+ ['application/json'])
2119
+
2120
+ auth_settings = []
2121
+
2122
+ return self.call_api(
2123
+ resource_path='/v1/{project_id}/cae/timer-rules/{timer_rule_id}',
2124
+ method='DELETE',
2125
+ path_params=path_params,
2126
+ query_params=query_params,
2127
+ header_params=header_params,
2128
+ body=body_params,
2129
+ post_params=form_params,
2130
+ cname=cname,
2131
+ response_type='DeleteTimerRuleResponse',
2132
+ response_headers=response_headers,
2133
+ auth_settings=auth_settings,
2134
+ collection_formats=collection_formats,
2135
+ request_type=request.__class__.__name__)
2136
+
2137
+ def list_timer_rules(self, request):
2138
+ """获取定时启停规则列表
2139
+
2140
+ 获取定时启停规则列表。
2141
+
2142
+ Please refer to HUAWEI cloud API Explorer for details.
2143
+
2144
+ :param request: Request instance for ListTimerRules
2145
+ :type request: :class:`huaweicloudsdkcae.v1.ListTimerRulesRequest`
2146
+ :rtype: :class:`huaweicloudsdkcae.v1.ListTimerRulesResponse`
2147
+ """
2148
+ return self._list_timer_rules_with_http_info(request)
2149
+
2150
+ def _list_timer_rules_with_http_info(self, request):
2151
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2152
+
2153
+ cname = None
2154
+
2155
+ collection_formats = {}
2156
+
2157
+ path_params = {}
2158
+
2159
+ query_params = []
2160
+
2161
+ header_params = {}
2162
+ if 'x_enterprise_project_id' in local_var_params:
2163
+ header_params['X-Enterprise-Project-ID'] = local_var_params['x_enterprise_project_id']
2164
+ if 'x_environment_id' in local_var_params:
2165
+ header_params['X-Environment-ID'] = local_var_params['x_environment_id']
2166
+
2167
+ form_params = {}
2168
+
2169
+ body_params = None
2170
+ if isinstance(request, SdkStreamRequest):
2171
+ body_params = request.get_file_stream()
2172
+
2173
+ response_headers = []
2174
+
2175
+ header_params['Content-Type'] = http_utils.select_header_content_type(
2176
+ ['application/json'])
2177
+
2178
+ auth_settings = []
2179
+
2180
+ return self.call_api(
2181
+ resource_path='/v1/{project_id}/cae/timer-rules',
2182
+ method='GET',
2183
+ path_params=path_params,
2184
+ query_params=query_params,
2185
+ header_params=header_params,
2186
+ body=body_params,
2187
+ post_params=form_params,
2188
+ cname=cname,
2189
+ response_type='ListTimerRulesResponse',
2190
+ response_headers=response_headers,
2191
+ auth_settings=auth_settings,
2192
+ collection_formats=collection_formats,
2193
+ request_type=request.__class__.__name__)
2194
+
2195
+ def show_execution_result(self, request):
2196
+ """获取上次定时启停规则的执行情况
2197
+
2198
+ 获取上次定时启停规则的执行情况。
2199
+
2200
+ Please refer to HUAWEI cloud API Explorer for details.
2201
+
2202
+ :param request: Request instance for ShowExecutionResult
2203
+ :type request: :class:`huaweicloudsdkcae.v1.ShowExecutionResultRequest`
2204
+ :rtype: :class:`huaweicloudsdkcae.v1.ShowExecutionResultResponse`
2205
+ """
2206
+ return self._show_execution_result_with_http_info(request)
2207
+
2208
+ def _show_execution_result_with_http_info(self, request):
2209
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2210
+
2211
+ cname = None
2212
+
2213
+ collection_formats = {}
2214
+
2215
+ path_params = {}
2216
+ if 'timer_rule_id' in local_var_params:
2217
+ path_params['timer_rule_id'] = local_var_params['timer_rule_id']
2218
+
2219
+ query_params = []
2220
+
2221
+ header_params = {}
2222
+ if 'x_enterprise_project_id' in local_var_params:
2223
+ header_params['X-Enterprise-Project-ID'] = local_var_params['x_enterprise_project_id']
2224
+ if 'x_environment_id' in local_var_params:
2225
+ header_params['X-Environment-ID'] = local_var_params['x_environment_id']
2226
+
2227
+ form_params = {}
2228
+
2229
+ body_params = None
2230
+ if isinstance(request, SdkStreamRequest):
2231
+ body_params = request.get_file_stream()
2232
+
2233
+ response_headers = []
2234
+
2235
+ header_params['Content-Type'] = http_utils.select_header_content_type(
2236
+ ['application/json'])
2237
+
2238
+ auth_settings = []
2239
+
2240
+ return self.call_api(
2241
+ resource_path='/v1/{project_id}/cae/timer-rules/{timer_rule_id}/execution-results',
2242
+ method='GET',
2243
+ path_params=path_params,
2244
+ query_params=query_params,
2245
+ header_params=header_params,
2246
+ body=body_params,
2247
+ post_params=form_params,
2248
+ cname=cname,
2249
+ response_type='ShowExecutionResultResponse',
2250
+ response_headers=response_headers,
2251
+ auth_settings=auth_settings,
2252
+ collection_formats=collection_formats,
2253
+ request_type=request.__class__.__name__)
2254
+
2255
+ def update_timer_rule(self, request):
2256
+ """修改定时启停规则
2257
+
2258
+ 修改定时启停规则。
2259
+
2260
+ Please refer to HUAWEI cloud API Explorer for details.
2261
+
2262
+ :param request: Request instance for UpdateTimerRule
2263
+ :type request: :class:`huaweicloudsdkcae.v1.UpdateTimerRuleRequest`
2264
+ :rtype: :class:`huaweicloudsdkcae.v1.UpdateTimerRuleResponse`
2265
+ """
2266
+ return self._update_timer_rule_with_http_info(request)
2267
+
2268
+ def _update_timer_rule_with_http_info(self, request):
2269
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2270
+
2271
+ cname = None
2272
+
2273
+ collection_formats = {}
2274
+
2275
+ path_params = {}
2276
+ if 'timer_rule_id' in local_var_params:
2277
+ path_params['timer_rule_id'] = local_var_params['timer_rule_id']
2278
+
2279
+ query_params = []
2280
+
2281
+ header_params = {}
2282
+ if 'x_enterprise_project_id' in local_var_params:
2283
+ header_params['X-Enterprise-Project-ID'] = local_var_params['x_enterprise_project_id']
2284
+ if 'x_environment_id' in local_var_params:
2285
+ header_params['X-Environment-ID'] = local_var_params['x_environment_id']
2286
+
2287
+ form_params = {}
2288
+
2289
+ body_params = None
2290
+ if 'body' in local_var_params:
2291
+ body_params = local_var_params['body']
2292
+ if isinstance(request, SdkStreamRequest):
2293
+ body_params = request.get_file_stream()
2294
+
2295
+ response_headers = []
2296
+
2297
+ header_params['Content-Type'] = http_utils.select_header_content_type(
2298
+ ['application/json'])
2299
+
2300
+ auth_settings = []
2301
+
2302
+ return self.call_api(
2303
+ resource_path='/v1/{project_id}/cae/timer-rules/{timer_rule_id}',
2304
+ method='PUT',
2305
+ path_params=path_params,
2306
+ query_params=query_params,
2307
+ header_params=header_params,
2308
+ body=body_params,
2309
+ post_params=form_params,
2310
+ cname=cname,
2311
+ response_type='UpdateTimerRuleResponse',
1586
2312
  response_headers=response_headers,
1587
2313
  auth_settings=auth_settings,
1588
2314
  collection_formats=collection_formats,