huaweicloudsdkcae 3.1.47__py2.py3-none-any.whl → 3.1.49__py2.py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of huaweicloudsdkcae might be problematic. Click here for more details.

Files changed (142) hide show
  1. huaweicloudsdkcae/v1/__init__.py +57 -13
  2. huaweicloudsdkcae/v1/cae_async_client.py +1049 -311
  3. huaweicloudsdkcae/v1/cae_client.py +1037 -311
  4. huaweicloudsdkcae/v1/model/__init__.py +56 -11
  5. huaweicloudsdkcae/v1/model/access.py +6 -6
  6. huaweicloudsdkcae/v1/model/action_on_component_source.py +198 -0
  7. huaweicloudsdkcae/v1/model/action_on_component_spec.py +7 -7
  8. huaweicloudsdkcae/v1/model/agency.py +7 -8
  9. huaweicloudsdkcae/v1/model/agency_item.py +3 -3
  10. huaweicloudsdkcae/v1/model/agency_metadata.py +3 -3
  11. huaweicloudsdkcae/v1/model/{log_strategy.py → app_info.py} +42 -42
  12. huaweicloudsdkcae/v1/model/application_item.py +96 -9
  13. huaweicloudsdkcae/v1/model/application_metadata.py +9 -9
  14. huaweicloudsdkcae/v1/model/archive.py +3 -3
  15. huaweicloudsdkcae/v1/model/build.py +5 -1
  16. huaweicloudsdkcae/v1/model/cert_item.py +136 -0
  17. huaweicloudsdkcae/v1/model/cert_req.py +190 -0
  18. huaweicloudsdkcae/v1/model/component_execution_result.py +202 -0
  19. huaweicloudsdkcae/v1/model/component_info.py +144 -0
  20. huaweicloudsdkcae/v1/model/component_item.py +62 -33
  21. huaweicloudsdkcae/v1/model/component_snapshot_context.py +724 -0
  22. huaweicloudsdkcae/v1/model/component_snapshot_item.py +70 -74
  23. huaweicloudsdkcae/v1/model/component_spec.py +126 -97
  24. huaweicloudsdkcae/v1/model/configuration.py +9 -9
  25. huaweicloudsdkcae/v1/model/configuration_item.py +6 -6
  26. huaweicloudsdkcae/v1/model/create_application_request.py +32 -32
  27. huaweicloudsdkcae/v1/model/create_application_request_body.py +6 -6
  28. huaweicloudsdkcae/v1/model/create_application_request_body_metadata.py +6 -6
  29. huaweicloudsdkcae/v1/model/create_application_response.py +6 -6
  30. huaweicloudsdkcae/v1/model/create_certificate_request.py +168 -0
  31. huaweicloudsdkcae/v1/model/create_certificate_response.py +174 -0
  32. huaweicloudsdkcae/v1/model/create_component_configuration_request.py +53 -53
  33. huaweicloudsdkcae/v1/model/create_component_configuration_request_body.py +6 -6
  34. huaweicloudsdkcae/v1/model/create_component_request.py +40 -40
  35. huaweicloudsdkcae/v1/model/create_component_request_body.py +6 -6
  36. huaweicloudsdkcae/v1/model/create_component_request_body_metadata.py +4 -5
  37. huaweicloudsdkcae/v1/model/create_component_request_body_spec.py +6 -6
  38. huaweicloudsdkcae/v1/model/create_component_response.py +10 -10
  39. huaweicloudsdkcae/v1/model/create_component_spec.py +306 -0
  40. huaweicloudsdkcae/v1/model/create_domain_req.py +166 -0
  41. huaweicloudsdkcae/v1/model/create_domain_request.py +168 -0
  42. huaweicloudsdkcae/v1/model/create_domain_response.py +174 -0
  43. huaweicloudsdkcae/v1/model/create_environment_request.py +3 -3
  44. huaweicloudsdkcae/v1/model/create_environment_request_body.py +6 -6
  45. huaweicloudsdkcae/v1/model/create_environment_request_body_metadata.py +6 -34
  46. huaweicloudsdkcae/v1/model/create_environment_response.py +20 -74
  47. huaweicloudsdkcae/v1/model/create_meta_cert.py +114 -0
  48. huaweicloudsdkcae/v1/model/create_meta_domain.py +114 -0
  49. huaweicloudsdkcae/v1/model/create_spec_cert.py +170 -0
  50. huaweicloudsdkcae/v1/model/create_timer_rule_req.py +169 -0
  51. huaweicloudsdkcae/v1/model/create_timer_rule_request.py +168 -0
  52. huaweicloudsdkcae/v1/model/create_timer_rule_response.py +170 -0
  53. huaweicloudsdkcae/v1/model/create_volume_req.py +6 -6
  54. huaweicloudsdkcae/v1/model/create_volume_request.py +32 -32
  55. huaweicloudsdkcae/v1/model/delete_application_request.py +37 -37
  56. huaweicloudsdkcae/v1/model/delete_certificate_request.py +171 -0
  57. huaweicloudsdkcae/v1/model/delete_certificate_response.py +85 -0
  58. huaweicloudsdkcae/v1/model/delete_component_configuration_request.py +53 -53
  59. huaweicloudsdkcae/v1/model/delete_component_request.py +53 -53
  60. huaweicloudsdkcae/v1/model/delete_domain_request.py +171 -0
  61. huaweicloudsdkcae/v1/model/delete_domain_response.py +85 -0
  62. huaweicloudsdkcae/v1/model/delete_environment_request.py +6 -6
  63. huaweicloudsdkcae/v1/model/delete_environment_response.py +3 -3
  64. huaweicloudsdkcae/v1/model/delete_timer_rule_request.py +171 -0
  65. huaweicloudsdkcae/v1/model/delete_timer_rule_response.py +85 -0
  66. huaweicloudsdkcae/v1/model/delete_volume_request.py +37 -37
  67. huaweicloudsdkcae/v1/model/delete_volume_response.py +9 -9
  68. huaweicloudsdkcae/v1/model/domain_item.py +111 -0
  69. huaweicloudsdkcae/v1/model/environment_item.py +13 -42
  70. huaweicloudsdkcae/v1/model/event_item.py +36 -7
  71. huaweicloudsdkcae/v1/model/execute_action_request.py +53 -53
  72. huaweicloudsdkcae/v1/model/execute_action_request_body.py +6 -6
  73. huaweicloudsdkcae/v1/model/execute_action_request_body_metadata.py +3 -3
  74. huaweicloudsdkcae/v1/model/execute_action_response.py +3 -3
  75. huaweicloudsdkcae/v1/model/execution_details.py +144 -0
  76. huaweicloudsdkcae/v1/model/instance.py +3 -3
  77. huaweicloudsdkcae/v1/model/job_spec.py +36 -7
  78. huaweicloudsdkcae/v1/model/{show_agency_request.py → list_agencies_request.py} +3 -3
  79. huaweicloudsdkcae/v1/model/list_agencies_response.py +174 -0
  80. huaweicloudsdkcae/v1/model/list_applications_request.py +34 -34
  81. huaweicloudsdkcae/v1/model/list_applications_response.py +6 -6
  82. huaweicloudsdkcae/v1/model/{list_events_request.py → list_certificates_request.py} +29 -85
  83. huaweicloudsdkcae/v1/model/list_certificates_response.py +174 -0
  84. huaweicloudsdkcae/v1/model/list_component_configurations_request.py +199 -0
  85. huaweicloudsdkcae/v1/model/{list_configurations_response.py → list_component_configurations_response.py} +22 -22
  86. huaweicloudsdkcae/v1/model/list_component_events_request.py +199 -0
  87. huaweicloudsdkcae/v1/model/{list_events_response.py → list_component_events_response.py} +22 -22
  88. huaweicloudsdkcae/v1/model/list_component_instances_request.py +199 -0
  89. huaweicloudsdkcae/v1/model/{list_instances_response.py → list_component_instances_response.py} +22 -22
  90. huaweicloudsdkcae/v1/model/list_component_snapshots_request.py +53 -53
  91. huaweicloudsdkcae/v1/model/list_component_snapshots_response.py +6 -6
  92. huaweicloudsdkcae/v1/model/list_components_request.py +52 -52
  93. huaweicloudsdkcae/v1/model/list_components_response.py +6 -6
  94. huaweicloudsdkcae/v1/model/{list_configurations_request.py → list_domains_request.py} +29 -85
  95. huaweicloudsdkcae/v1/model/list_domains_response.py +174 -0
  96. huaweicloudsdkcae/v1/model/list_environments_request.py +3 -3
  97. huaweicloudsdkcae/v1/model/list_environments_response.py +9 -9
  98. huaweicloudsdkcae/v1/model/{list_instances_request.py → list_timer_rules_request.py} +29 -85
  99. huaweicloudsdkcae/v1/model/{show_agency_response.py → list_timer_rules_response.py} +27 -31
  100. huaweicloudsdkcae/v1/model/list_volumes_request.py +35 -35
  101. huaweicloudsdkcae/v1/model/list_volumes_response.py +9 -9
  102. huaweicloudsdkcae/v1/model/meta_cert.py +144 -0
  103. huaweicloudsdkcae/v1/model/meta_domain.py +231 -0
  104. huaweicloudsdkcae/v1/model/metadata_response.py +46 -133
  105. huaweicloudsdkcae/v1/model/mount_component.py +9 -9
  106. huaweicloudsdkcae/v1/model/repo.py +6 -6
  107. huaweicloudsdkcae/v1/model/retry_job_request.py +63 -6
  108. huaweicloudsdkcae/v1/model/show_application_request.py +37 -37
  109. huaweicloudsdkcae/v1/model/show_application_response.py +6 -6
  110. huaweicloudsdkcae/v1/model/show_component_request.py +53 -53
  111. huaweicloudsdkcae/v1/model/show_component_response.py +6 -6
  112. huaweicloudsdkcae/v1/model/show_execution_result_request.py +171 -0
  113. huaweicloudsdkcae/v1/model/show_execution_result_response.py +170 -0
  114. huaweicloudsdkcae/v1/model/show_job_request.py +37 -9
  115. huaweicloudsdkcae/v1/model/show_job_response.py +6 -6
  116. huaweicloudsdkcae/v1/model/source.py +9 -9
  117. huaweicloudsdkcae/v1/model/spec_cert.py +202 -0
  118. huaweicloudsdkcae/v1/model/task.py +68 -68
  119. huaweicloudsdkcae/v1/model/timer_rule_details.py +434 -0
  120. huaweicloudsdkcae/v1/model/update_cert_req.py +166 -0
  121. huaweicloudsdkcae/v1/model/update_certificate_request.py +196 -0
  122. huaweicloudsdkcae/v1/model/update_certificate_response.py +85 -0
  123. huaweicloudsdkcae/v1/model/update_component_request.py +53 -53
  124. huaweicloudsdkcae/v1/model/update_component_request_body.py +10 -10
  125. huaweicloudsdkcae/v1/model/update_component_request_metadata.py +143 -0
  126. huaweicloudsdkcae/v1/model/update_component_request_spec.py +52 -19
  127. huaweicloudsdkcae/v1/model/update_spec_cert.py +170 -0
  128. huaweicloudsdkcae/v1/model/update_timer_rule_details.py +312 -0
  129. huaweicloudsdkcae/v1/model/update_timer_rule_req.py +166 -0
  130. huaweicloudsdkcae/v1/model/update_timer_rule_request.py +196 -0
  131. huaweicloudsdkcae/v1/model/update_timer_rule_response.py +85 -0
  132. huaweicloudsdkcae/v1/model/volume.py +15 -15
  133. huaweicloudsdkcae/v1/model/volume_spec.py +3 -3
  134. huaweicloudsdkcae/v1/region/cae_region.py +3 -0
  135. {huaweicloudsdkcae-3.1.47.dist-info → huaweicloudsdkcae-3.1.49.dist-info}/LICENSE +0 -0
  136. {huaweicloudsdkcae-3.1.47.dist-info → huaweicloudsdkcae-3.1.49.dist-info}/METADATA +2 -2
  137. huaweicloudsdkcae-3.1.49.dist-info/RECORD +152 -0
  138. huaweicloudsdkcae/v1/model/environment_metadata.py +0 -318
  139. huaweicloudsdkcae/v1/model/metadata.py +0 -317
  140. huaweicloudsdkcae-3.1.47.dist-info/RECORD +0 -107
  141. {huaweicloudsdkcae-3.1.47.dist-info → huaweicloudsdkcae-3.1.49.dist-info}/WHEEL +0 -0
  142. {huaweicloudsdkcae-3.1.47.dist-info → huaweicloudsdkcae-3.1.49.dist-info}/top_level.txt +0 -0
@@ -17,69 +17,47 @@ class ListVolumesRequest:
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
  'resource_type': 'str'
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
  'resource_type': 'resource_type'
29
29
  }
30
30
 
31
- def __init__(self, x_environment_id=None, x_enterprise_project_id=None, resource_type=None):
31
+ def __init__(self, x_enterprise_project_id=None, x_environment_id=None, resource_type=None):
32
32
  """ListVolumesRequest
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
40
- :param resource_type: 资源类型。
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 resource_type: 资源类型,当前只支持“obs”。
41
41
  :type resource_type: str
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._resource_type = 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
  self.resource_type = resource_type
55
55
 
56
- @property
57
- def x_environment_id(self):
58
- """Gets the x_environment_id of this ListVolumesRequest.
59
-
60
- 环境id。
61
-
62
- :return: The x_environment_id of this ListVolumesRequest.
63
- :rtype: str
64
- """
65
- return self._x_environment_id
66
-
67
- @x_environment_id.setter
68
- def x_environment_id(self, x_environment_id):
69
- """Sets the x_environment_id of this ListVolumesRequest.
70
-
71
- 环境id。
72
-
73
- :param x_environment_id: The x_environment_id of this ListVolumesRequest.
74
- :type x_environment_id: str
75
- """
76
- self._x_environment_id = x_environment_id
77
-
78
56
  @property
79
57
  def x_enterprise_project_id(self):
80
58
  """Gets the x_enterprise_project_id of this ListVolumesRequest.
81
59
 
82
- 租户的企业项目id
60
+ 企业项目ID - 创建环境时,环境会绑定企业项目ID。 - 最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。 - 该字段不传(或传为字符串“0”)时,则查询默认企业项目下的资源。 > 关于企业项目ID的获取及企业项目特性的详细信息,请参见《[企业管理服务用户指南](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0126101490.html)》。
83
61
 
84
62
  :return: The x_enterprise_project_id of this ListVolumesRequest.
85
63
  :rtype: str
@@ -90,18 +68,40 @@ class ListVolumesRequest:
90
68
  def x_enterprise_project_id(self, x_enterprise_project_id):
91
69
  """Sets the x_enterprise_project_id of this ListVolumesRequest.
92
70
 
93
- 租户的企业项目id
71
+ 企业项目ID - 创建环境时,环境会绑定企业项目ID。 - 最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。 - 该字段不传(或传为字符串“0”)时,则查询默认企业项目下的资源。 > 关于企业项目ID的获取及企业项目特性的详细信息,请参见《[企业管理服务用户指南](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0126101490.html)》。
94
72
 
95
73
  :param x_enterprise_project_id: The x_enterprise_project_id of this ListVolumesRequest.
96
74
  :type x_enterprise_project_id: str
97
75
  """
98
76
  self._x_enterprise_project_id = x_enterprise_project_id
99
77
 
78
+ @property
79
+ def x_environment_id(self):
80
+ """Gets the x_environment_id of this ListVolumesRequest.
81
+
82
+ 环境ID。 - 获取环境ID,通过《[云应用引擎API参考](https://support.huaweicloud.com/api-cae/ListEnvironments.html)》的“获取环境列表”章节获取环境信息。 - 请求响应成功后在响应体的items数组中的一个元素即为一个环境的信息,其中id字段即是环境ID。
83
+
84
+ :return: The x_environment_id of this ListVolumesRequest.
85
+ :rtype: str
86
+ """
87
+ return self._x_environment_id
88
+
89
+ @x_environment_id.setter
90
+ def x_environment_id(self, x_environment_id):
91
+ """Sets the x_environment_id of this ListVolumesRequest.
92
+
93
+ 环境ID。 - 获取环境ID,通过《[云应用引擎API参考](https://support.huaweicloud.com/api-cae/ListEnvironments.html)》的“获取环境列表”章节获取环境信息。 - 请求响应成功后在响应体的items数组中的一个元素即为一个环境的信息,其中id字段即是环境ID。
94
+
95
+ :param x_environment_id: The x_environment_id of this ListVolumesRequest.
96
+ :type x_environment_id: str
97
+ """
98
+ self._x_environment_id = x_environment_id
99
+
100
100
  @property
101
101
  def resource_type(self):
102
102
  """Gets the resource_type of this ListVolumesRequest.
103
103
 
104
- 资源类型。
104
+ 资源类型,当前只支持“obs”。
105
105
 
106
106
  :return: The resource_type of this ListVolumesRequest.
107
107
  :rtype: str
@@ -112,7 +112,7 @@ class ListVolumesRequest:
112
112
  def resource_type(self, resource_type):
113
113
  """Sets the resource_type of this ListVolumesRequest.
114
114
 
115
- 资源类型。
115
+ 资源类型,当前只支持“obs”。
116
116
 
117
117
  :param resource_type: The resource_type of this ListVolumesRequest.
118
118
  :type resource_type: str
@@ -34,11 +34,11 @@ class ListVolumesResponse(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类型,固定值“Volume”,该值不可修改。
40
40
  :type kind: str
41
- :param items: 数据卷列表。
41
+ :param items: 云存储列表。
42
42
  :type items: list[:class:`huaweicloudsdkcae.v1.Volume`]
43
43
  """
44
44
 
@@ -60,7 +60,7 @@ class ListVolumesResponse(SdkResponse):
60
60
  def api_version(self):
61
61
  """Gets the api_version of this ListVolumesResponse.
62
62
 
63
- API版本。
63
+ API版本,固定值“v1”,该值不可修改。
64
64
 
65
65
  :return: The api_version of this ListVolumesResponse.
66
66
  :rtype: str
@@ -71,7 +71,7 @@ class ListVolumesResponse(SdkResponse):
71
71
  def api_version(self, api_version):
72
72
  """Sets the api_version of this ListVolumesResponse.
73
73
 
74
- API版本。
74
+ API版本,固定值“v1”,该值不可修改。
75
75
 
76
76
  :param api_version: The api_version of this ListVolumesResponse.
77
77
  :type api_version: str
@@ -82,7 +82,7 @@ class ListVolumesResponse(SdkResponse):
82
82
  def kind(self):
83
83
  """Gets the kind of this ListVolumesResponse.
84
84
 
85
- 资源种类。
85
+ API类型,固定值“Volume”,该值不可修改。
86
86
 
87
87
  :return: The kind of this ListVolumesResponse.
88
88
  :rtype: str
@@ -93,7 +93,7 @@ class ListVolumesResponse(SdkResponse):
93
93
  def kind(self, kind):
94
94
  """Sets the kind of this ListVolumesResponse.
95
95
 
96
- 资源种类。
96
+ API类型,固定值“Volume”,该值不可修改。
97
97
 
98
98
  :param kind: The kind of this ListVolumesResponse.
99
99
  :type kind: str
@@ -104,7 +104,7 @@ class ListVolumesResponse(SdkResponse):
104
104
  def items(self):
105
105
  """Gets the items of this ListVolumesResponse.
106
106
 
107
- 数据卷列表。
107
+ 云存储列表。
108
108
 
109
109
  :return: The items of this ListVolumesResponse.
110
110
  :rtype: list[:class:`huaweicloudsdkcae.v1.Volume`]
@@ -115,7 +115,7 @@ class ListVolumesResponse(SdkResponse):
115
115
  def items(self, items):
116
116
  """Sets the items of this ListVolumesResponse.
117
117
 
118
- 数据卷列表。
118
+ 云存储列表。
119
119
 
120
120
  :param items: The items of this ListVolumesResponse.
121
121
  :type items: list[:class:`huaweicloudsdkcae.v1.Volume`]
@@ -0,0 +1,144 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class MetaCert:
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
+ 'id': 'str',
21
+ 'name': 'str'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'id': 'id',
26
+ 'name': 'name'
27
+ }
28
+
29
+ def __init__(self, id=None, name=None):
30
+ """MetaCert
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param id: 证书ID。
35
+ :type id: str
36
+ :param name: 证书名称。
37
+ :type name: str
38
+ """
39
+
40
+
41
+
42
+ self._id = None
43
+ self._name = None
44
+ self.discriminator = None
45
+
46
+ if id is not None:
47
+ self.id = id
48
+ if name is not None:
49
+ self.name = name
50
+
51
+ @property
52
+ def id(self):
53
+ """Gets the id of this MetaCert.
54
+
55
+ 证书ID。
56
+
57
+ :return: The id of this MetaCert.
58
+ :rtype: str
59
+ """
60
+ return self._id
61
+
62
+ @id.setter
63
+ def id(self, id):
64
+ """Sets the id of this MetaCert.
65
+
66
+ 证书ID。
67
+
68
+ :param id: The id of this MetaCert.
69
+ :type id: str
70
+ """
71
+ self._id = id
72
+
73
+ @property
74
+ def name(self):
75
+ """Gets the name of this MetaCert.
76
+
77
+ 证书名称。
78
+
79
+ :return: The name of this MetaCert.
80
+ :rtype: str
81
+ """
82
+ return self._name
83
+
84
+ @name.setter
85
+ def name(self, name):
86
+ """Sets the name of this MetaCert.
87
+
88
+ 证书名称。
89
+
90
+ :param name: The name of this MetaCert.
91
+ :type name: str
92
+ """
93
+ self._name = name
94
+
95
+ def to_dict(self):
96
+ """Returns the model properties as a dict"""
97
+ result = {}
98
+
99
+ for attr, _ in six.iteritems(self.openapi_types):
100
+ value = getattr(self, attr)
101
+ if isinstance(value, list):
102
+ result[attr] = list(map(
103
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
104
+ value
105
+ ))
106
+ elif hasattr(value, "to_dict"):
107
+ result[attr] = value.to_dict()
108
+ elif isinstance(value, dict):
109
+ result[attr] = dict(map(
110
+ lambda item: (item[0], item[1].to_dict())
111
+ if hasattr(item[1], "to_dict") else item,
112
+ value.items()
113
+ ))
114
+ else:
115
+ if attr in self.sensitive_list:
116
+ result[attr] = "****"
117
+ else:
118
+ result[attr] = value
119
+
120
+ return result
121
+
122
+ def to_str(self):
123
+ """Returns the string representation of the model"""
124
+ import simplejson as json
125
+ if six.PY2:
126
+ import sys
127
+ reload(sys)
128
+ sys.setdefaultencoding("utf-8")
129
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
130
+
131
+ def __repr__(self):
132
+ """For `print`"""
133
+ return self.to_str()
134
+
135
+ def __eq__(self, other):
136
+ """Returns true if both objects are equal"""
137
+ if not isinstance(other, MetaCert):
138
+ return False
139
+
140
+ return self.__dict__ == other.__dict__
141
+
142
+ def __ne__(self, other):
143
+ """Returns true if both objects are not equal"""
144
+ return not self == other
@@ -0,0 +1,231 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class MetaDomain:
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
+ 'id': 'str',
21
+ 'name': 'str',
22
+ 'zone_id': 'str',
23
+ 'zone_type': 'str',
24
+ 'created_at': 'datetime'
25
+ }
26
+
27
+ attribute_map = {
28
+ 'id': 'id',
29
+ 'name': 'name',
30
+ 'zone_id': 'zone_id',
31
+ 'zone_type': 'zone_type',
32
+ 'created_at': 'created_at'
33
+ }
34
+
35
+ def __init__(self, id=None, name=None, zone_id=None, zone_type=None, created_at=None):
36
+ """MetaDomain
37
+
38
+ The model defined in huaweicloud sdk
39
+
40
+ :param id: 域名ID。
41
+ :type id: str
42
+ :param name: 域名名称。
43
+ :type name: str
44
+ :param zone_id: 区域ID。
45
+ :type zone_id: str
46
+ :param zone_type: 域名类型,默认是公网域名public
47
+ :type zone_type: str
48
+ :param created_at: 创建时间。
49
+ :type created_at: datetime
50
+ """
51
+
52
+
53
+
54
+ self._id = None
55
+ self._name = None
56
+ self._zone_id = None
57
+ self._zone_type = None
58
+ self._created_at = None
59
+ self.discriminator = None
60
+
61
+ if id is not None:
62
+ self.id = id
63
+ if name is not None:
64
+ self.name = name
65
+ if zone_id is not None:
66
+ self.zone_id = zone_id
67
+ if zone_type is not None:
68
+ self.zone_type = zone_type
69
+ if created_at is not None:
70
+ self.created_at = created_at
71
+
72
+ @property
73
+ def id(self):
74
+ """Gets the id of this MetaDomain.
75
+
76
+ 域名ID。
77
+
78
+ :return: The id of this MetaDomain.
79
+ :rtype: str
80
+ """
81
+ return self._id
82
+
83
+ @id.setter
84
+ def id(self, id):
85
+ """Sets the id of this MetaDomain.
86
+
87
+ 域名ID。
88
+
89
+ :param id: The id of this MetaDomain.
90
+ :type id: str
91
+ """
92
+ self._id = id
93
+
94
+ @property
95
+ def name(self):
96
+ """Gets the name of this MetaDomain.
97
+
98
+ 域名名称。
99
+
100
+ :return: The name of this MetaDomain.
101
+ :rtype: str
102
+ """
103
+ return self._name
104
+
105
+ @name.setter
106
+ def name(self, name):
107
+ """Sets the name of this MetaDomain.
108
+
109
+ 域名名称。
110
+
111
+ :param name: The name of this MetaDomain.
112
+ :type name: str
113
+ """
114
+ self._name = name
115
+
116
+ @property
117
+ def zone_id(self):
118
+ """Gets the zone_id of this MetaDomain.
119
+
120
+ 区域ID。
121
+
122
+ :return: The zone_id of this MetaDomain.
123
+ :rtype: str
124
+ """
125
+ return self._zone_id
126
+
127
+ @zone_id.setter
128
+ def zone_id(self, zone_id):
129
+ """Sets the zone_id of this MetaDomain.
130
+
131
+ 区域ID。
132
+
133
+ :param zone_id: The zone_id of this MetaDomain.
134
+ :type zone_id: str
135
+ """
136
+ self._zone_id = zone_id
137
+
138
+ @property
139
+ def zone_type(self):
140
+ """Gets the zone_type of this MetaDomain.
141
+
142
+ 域名类型,默认是公网域名public
143
+
144
+ :return: The zone_type of this MetaDomain.
145
+ :rtype: str
146
+ """
147
+ return self._zone_type
148
+
149
+ @zone_type.setter
150
+ def zone_type(self, zone_type):
151
+ """Sets the zone_type of this MetaDomain.
152
+
153
+ 域名类型,默认是公网域名public
154
+
155
+ :param zone_type: The zone_type of this MetaDomain.
156
+ :type zone_type: str
157
+ """
158
+ self._zone_type = zone_type
159
+
160
+ @property
161
+ def created_at(self):
162
+ """Gets the created_at of this MetaDomain.
163
+
164
+ 创建时间。
165
+
166
+ :return: The created_at of this MetaDomain.
167
+ :rtype: datetime
168
+ """
169
+ return self._created_at
170
+
171
+ @created_at.setter
172
+ def created_at(self, created_at):
173
+ """Sets the created_at of this MetaDomain.
174
+
175
+ 创建时间。
176
+
177
+ :param created_at: The created_at of this MetaDomain.
178
+ :type created_at: datetime
179
+ """
180
+ self._created_at = created_at
181
+
182
+ def to_dict(self):
183
+ """Returns the model properties as a dict"""
184
+ result = {}
185
+
186
+ for attr, _ in six.iteritems(self.openapi_types):
187
+ value = getattr(self, attr)
188
+ if isinstance(value, list):
189
+ result[attr] = list(map(
190
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
191
+ value
192
+ ))
193
+ elif hasattr(value, "to_dict"):
194
+ result[attr] = value.to_dict()
195
+ elif isinstance(value, dict):
196
+ result[attr] = dict(map(
197
+ lambda item: (item[0], item[1].to_dict())
198
+ if hasattr(item[1], "to_dict") else item,
199
+ value.items()
200
+ ))
201
+ else:
202
+ if attr in self.sensitive_list:
203
+ result[attr] = "****"
204
+ else:
205
+ result[attr] = value
206
+
207
+ return result
208
+
209
+ def to_str(self):
210
+ """Returns the string representation of the model"""
211
+ import simplejson as json
212
+ if six.PY2:
213
+ import sys
214
+ reload(sys)
215
+ sys.setdefaultencoding("utf-8")
216
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
217
+
218
+ def __repr__(self):
219
+ """For `print`"""
220
+ return self.to_str()
221
+
222
+ def __eq__(self, other):
223
+ """Returns true if both objects are equal"""
224
+ if not isinstance(other, MetaDomain):
225
+ return False
226
+
227
+ return self.__dict__ == other.__dict__
228
+
229
+ def __ne__(self, other):
230
+ """Returns true if both objects are not equal"""
231
+ return not self == other