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