huaweicloudsdkcae 3.1.109__py2.py3-none-any.whl → 3.1.111__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.

@@ -30,7 +30,6 @@ from huaweicloudsdkcae.v1.model.cert_item import CertItem
30
30
  from huaweicloudsdkcae.v1.model.cert_req import CertReq
31
31
  from huaweicloudsdkcae.v1.model.certificate_kind_obj import CertificateKindObj
32
32
  from huaweicloudsdkcae.v1.model.component_configuration_kind_obj import ComponentConfigurationKindObj
33
- from huaweicloudsdkcae.v1.model.component_event_kind_obj import ComponentEventKindObj
34
33
  from huaweicloudsdkcae.v1.model.component_execution_result import ComponentExecutionResult
35
34
  from huaweicloudsdkcae.v1.model.component_info import ComponentInfo
36
35
  from huaweicloudsdkcae.v1.model.component_item import ComponentItem
@@ -122,7 +121,6 @@ from huaweicloudsdkcae.v1.model.egress_cidr import EgressCidr
122
121
  from huaweicloudsdkcae.v1.model.eip_kind_obj import EipKindObj
123
122
  from huaweicloudsdkcae.v1.model.environment_item import EnvironmentItem
124
123
  from huaweicloudsdkcae.v1.model.environment_kind_obj import EnvironmentKindObj
125
- from huaweicloudsdkcae.v1.model.event_item import EventItem
126
124
  from huaweicloudsdkcae.v1.model.execute_action_request import ExecuteActionRequest
127
125
  from huaweicloudsdkcae.v1.model.execute_action_request_body import ExecuteActionRequestBody
128
126
  from huaweicloudsdkcae.v1.model.execute_action_request_body_metadata import ExecuteActionRequestBodyMetadata
@@ -147,8 +145,6 @@ from huaweicloudsdkcae.v1.model.list_certificates_response import ListCertificat
147
145
  from huaweicloudsdkcae.v1.model.list_component_configurations_request import ListComponentConfigurationsRequest
148
146
  from huaweicloudsdkcae.v1.model.list_component_configurations_response import ListComponentConfigurationsResponse
149
147
  from huaweicloudsdkcae.v1.model.list_component_configurations_response_data import ListComponentConfigurationsResponseData
150
- from huaweicloudsdkcae.v1.model.list_component_events_request import ListComponentEventsRequest
151
- from huaweicloudsdkcae.v1.model.list_component_events_response import ListComponentEventsResponse
152
148
  from huaweicloudsdkcae.v1.model.list_component_instances_request import ListComponentInstancesRequest
153
149
  from huaweicloudsdkcae.v1.model.list_component_instances_response import ListComponentInstancesResponse
154
150
  from huaweicloudsdkcae.v1.model.list_component_snapshots_request import ListComponentSnapshotsRequest
@@ -996,77 +996,6 @@ class CaeAsyncClient(Client):
996
996
 
997
997
  return http_info
998
998
 
999
- def list_component_events_async(self, request):
1000
- """获取组件事件列表
1001
-
1002
- 获取组件事件列表。
1003
-
1004
- Please refer to HUAWEI cloud API Explorer for details.
1005
-
1006
-
1007
- :param request: Request instance for ListComponentEvents
1008
- :type request: :class:`huaweicloudsdkcae.v1.ListComponentEventsRequest`
1009
- :rtype: :class:`huaweicloudsdkcae.v1.ListComponentEventsResponse`
1010
- """
1011
- http_info = self._list_component_events_http_info(request)
1012
- return self._call_api(**http_info)
1013
-
1014
- def list_component_events_async_invoker(self, request):
1015
- http_info = self._list_component_events_http_info(request)
1016
- return AsyncInvoker(self, http_info)
1017
-
1018
- def _list_component_events_http_info(self, request):
1019
- http_info = {
1020
- "method": "GET",
1021
- "resource_path": "/v1/{project_id}/cae/applications/{application_id}/components/{component_id}/events",
1022
- "request_type": request.__class__.__name__,
1023
- "response_type": "ListComponentEventsResponse"
1024
- }
1025
-
1026
- local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1027
-
1028
- cname = None
1029
-
1030
- collection_formats = {}
1031
-
1032
- path_params = {}
1033
- if 'application_id' in local_var_params:
1034
- path_params['application_id'] = local_var_params['application_id']
1035
- if 'component_id' in local_var_params:
1036
- path_params['component_id'] = local_var_params['component_id']
1037
-
1038
- query_params = []
1039
-
1040
- header_params = {}
1041
- if 'x_enterprise_project_id' in local_var_params:
1042
- header_params['X-Enterprise-Project-ID'] = local_var_params['x_enterprise_project_id']
1043
- if 'x_environment_id' in local_var_params:
1044
- header_params['X-Environment-ID'] = local_var_params['x_environment_id']
1045
-
1046
- form_params = {}
1047
-
1048
- body = None
1049
- if isinstance(request, SdkStreamRequest):
1050
- body = request.get_file_stream()
1051
-
1052
- response_headers = []
1053
-
1054
- header_params['Content-Type'] = http_utils.select_header_content_type(
1055
- ['application/json'])
1056
-
1057
- auth_settings = []
1058
-
1059
- http_info["cname"] = cname
1060
- http_info["collection_formats"] = collection_formats
1061
- http_info["path_params"] = path_params
1062
- http_info["query_params"] = query_params
1063
- http_info["header_params"] = header_params
1064
- http_info["post_params"] = form_params
1065
- http_info["body"] = body
1066
- http_info["response_headers"] = response_headers
1067
-
1068
- return http_info
1069
-
1070
999
  def list_component_instances_async(self, request):
1071
1000
  """获取组件实例列表
1072
1001
 
@@ -1914,9 +1843,9 @@ class CaeAsyncClient(Client):
1914
1843
  return http_info
1915
1844
 
1916
1845
  def update_eip_async(self, request):
1917
- """修改带宽
1846
+ """修改出入网带宽以及开闭状态
1918
1847
 
1919
- 修改带宽。
1848
+ 修改出入网带宽以及开闭状态。
1920
1849
 
1921
1850
  Please refer to HUAWEI cloud API Explorer for details.
1922
1851
 
@@ -996,77 +996,6 @@ class CaeClient(Client):
996
996
 
997
997
  return http_info
998
998
 
999
- def list_component_events(self, request):
1000
- """获取组件事件列表
1001
-
1002
- 获取组件事件列表。
1003
-
1004
- Please refer to HUAWEI cloud API Explorer for details.
1005
-
1006
- :param request: Request instance for ListComponentEvents
1007
- :type request: :class:`huaweicloudsdkcae.v1.ListComponentEventsRequest`
1008
- :rtype: :class:`huaweicloudsdkcae.v1.ListComponentEventsResponse`
1009
- """
1010
- http_info = self._list_component_events_http_info(request)
1011
- return self._call_api(**http_info)
1012
-
1013
- def list_component_events_invoker(self, request):
1014
- http_info = self._list_component_events_http_info(request)
1015
- return SyncInvoker(self, http_info)
1016
-
1017
- @classmethod
1018
- def _list_component_events_http_info(cls, request):
1019
- http_info = {
1020
- "method": "GET",
1021
- "resource_path": "/v1/{project_id}/cae/applications/{application_id}/components/{component_id}/events",
1022
- "request_type": request.__class__.__name__,
1023
- "response_type": "ListComponentEventsResponse"
1024
- }
1025
-
1026
- local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1027
-
1028
- cname = None
1029
-
1030
- collection_formats = {}
1031
-
1032
- path_params = {}
1033
- if 'application_id' in local_var_params:
1034
- path_params['application_id'] = local_var_params['application_id']
1035
- if 'component_id' in local_var_params:
1036
- path_params['component_id'] = local_var_params['component_id']
1037
-
1038
- query_params = []
1039
-
1040
- header_params = {}
1041
- if 'x_enterprise_project_id' in local_var_params:
1042
- header_params['X-Enterprise-Project-ID'] = local_var_params['x_enterprise_project_id']
1043
- if 'x_environment_id' in local_var_params:
1044
- header_params['X-Environment-ID'] = local_var_params['x_environment_id']
1045
-
1046
- form_params = {}
1047
-
1048
- body = None
1049
- if isinstance(request, SdkStreamRequest):
1050
- body = request.get_file_stream()
1051
-
1052
- response_headers = []
1053
-
1054
- header_params['Content-Type'] = http_utils.select_header_content_type(
1055
- ['application/json'])
1056
-
1057
- auth_settings = []
1058
-
1059
- http_info["cname"] = cname
1060
- http_info["collection_formats"] = collection_formats
1061
- http_info["path_params"] = path_params
1062
- http_info["query_params"] = query_params
1063
- http_info["header_params"] = header_params
1064
- http_info["post_params"] = form_params
1065
- http_info["body"] = body
1066
- http_info["response_headers"] = response_headers
1067
-
1068
- return http_info
1069
-
1070
999
  def list_component_instances(self, request):
1071
1000
  """获取组件实例列表
1072
1001
 
@@ -1914,9 +1843,9 @@ class CaeClient(Client):
1914
1843
  return http_info
1915
1844
 
1916
1845
  def update_eip(self, request):
1917
- """修改带宽
1846
+ """修改出入网带宽以及开闭状态
1918
1847
 
1919
- 修改带宽。
1848
+ 修改出入网带宽以及开闭状态。
1920
1849
 
1921
1850
  Please refer to HUAWEI cloud API Explorer for details.
1922
1851
 
@@ -28,7 +28,6 @@ from huaweicloudsdkcae.v1.model.cert_item import CertItem
28
28
  from huaweicloudsdkcae.v1.model.cert_req import CertReq
29
29
  from huaweicloudsdkcae.v1.model.certificate_kind_obj import CertificateKindObj
30
30
  from huaweicloudsdkcae.v1.model.component_configuration_kind_obj import ComponentConfigurationKindObj
31
- from huaweicloudsdkcae.v1.model.component_event_kind_obj import ComponentEventKindObj
32
31
  from huaweicloudsdkcae.v1.model.component_execution_result import ComponentExecutionResult
33
32
  from huaweicloudsdkcae.v1.model.component_info import ComponentInfo
34
33
  from huaweicloudsdkcae.v1.model.component_item import ComponentItem
@@ -120,7 +119,6 @@ from huaweicloudsdkcae.v1.model.egress_cidr import EgressCidr
120
119
  from huaweicloudsdkcae.v1.model.eip_kind_obj import EipKindObj
121
120
  from huaweicloudsdkcae.v1.model.environment_item import EnvironmentItem
122
121
  from huaweicloudsdkcae.v1.model.environment_kind_obj import EnvironmentKindObj
123
- from huaweicloudsdkcae.v1.model.event_item import EventItem
124
122
  from huaweicloudsdkcae.v1.model.execute_action_request import ExecuteActionRequest
125
123
  from huaweicloudsdkcae.v1.model.execute_action_request_body import ExecuteActionRequestBody
126
124
  from huaweicloudsdkcae.v1.model.execute_action_request_body_metadata import ExecuteActionRequestBodyMetadata
@@ -145,8 +143,6 @@ from huaweicloudsdkcae.v1.model.list_certificates_response import ListCertificat
145
143
  from huaweicloudsdkcae.v1.model.list_component_configurations_request import ListComponentConfigurationsRequest
146
144
  from huaweicloudsdkcae.v1.model.list_component_configurations_response import ListComponentConfigurationsResponse
147
145
  from huaweicloudsdkcae.v1.model.list_component_configurations_response_data import ListComponentConfigurationsResponseData
148
- from huaweicloudsdkcae.v1.model.list_component_events_request import ListComponentEventsRequest
149
- from huaweicloudsdkcae.v1.model.list_component_events_response import ListComponentEventsResponse
150
146
  from huaweicloudsdkcae.v1.model.list_component_instances_request import ListComponentInstancesRequest
151
147
  from huaweicloudsdkcae.v1.model.list_component_instances_response import ListComponentInstancesResponse
152
148
  from huaweicloudsdkcae.v1.model.list_component_snapshots_request import ListComponentSnapshotsRequest
@@ -55,10 +55,8 @@ class CreateComponentRequestBody:
55
55
 
56
56
  self.api_version = api_version
57
57
  self.kind = kind
58
- if metadata is not None:
59
- self.metadata = metadata
60
- if spec is not None:
61
- self.spec = spec
58
+ self.metadata = metadata
59
+ self.spec = spec
62
60
 
63
61
  @property
64
62
  def api_version(self):
@@ -18,15 +18,17 @@ class NoticeRuleNotification:
18
18
 
19
19
  openapi_types = {
20
20
  'protocol': 'str',
21
- 'endpoint': 'str'
21
+ 'endpoint': 'str',
22
+ 'template': 'str'
22
23
  }
23
24
 
24
25
  attribute_map = {
25
26
  'protocol': 'protocol',
26
- 'endpoint': 'endpoint'
27
+ 'endpoint': 'endpoint',
28
+ 'template': 'template'
27
29
  }
28
30
 
29
- def __init__(self, protocol=None, endpoint=None):
31
+ def __init__(self, protocol=None, endpoint=None, template=None):
30
32
  """NoticeRuleNotification
31
33
 
32
34
  The model defined in huaweicloud sdk
@@ -35,16 +37,21 @@ class NoticeRuleNotification:
35
37
  :type protocol: str
36
38
  :param endpoint: 通知的终端地址。 email协议,接入点必须是邮件地址。 sms协议,接入点必须是一个电话号码。 wechat协议,参考https://support.huaweicloud.com/smn_faq/smn_faq_0027.html获取订阅终端, 企业微信群消息为SMN服务公测功能,需提交工单申请开通。
37
39
  :type endpoint: str
40
+ :param template: 通知的模板语言。 ZH,中文。 EN,英文。
41
+ :type template: str
38
42
  """
39
43
 
40
44
 
41
45
 
42
46
  self._protocol = None
43
47
  self._endpoint = None
48
+ self._template = None
44
49
  self.discriminator = None
45
50
 
46
51
  self.protocol = protocol
47
52
  self.endpoint = endpoint
53
+ if template is not None:
54
+ self.template = template
48
55
 
49
56
  @property
50
57
  def protocol(self):
@@ -90,6 +97,28 @@ class NoticeRuleNotification:
90
97
  """
91
98
  self._endpoint = endpoint
92
99
 
100
+ @property
101
+ def template(self):
102
+ """Gets the template of this NoticeRuleNotification.
103
+
104
+ 通知的模板语言。 ZH,中文。 EN,英文。
105
+
106
+ :return: The template of this NoticeRuleNotification.
107
+ :rtype: str
108
+ """
109
+ return self._template
110
+
111
+ @template.setter
112
+ def template(self, template):
113
+ """Sets the template of this NoticeRuleNotification.
114
+
115
+ 通知的模板语言。 ZH,中文。 EN,英文。
116
+
117
+ :param template: The template of this NoticeRuleNotification.
118
+ :type template: str
119
+ """
120
+ self._template = template
121
+
93
122
  def to_dict(self):
94
123
  """Returns the model properties as a dict"""
95
124
  result = {}
@@ -55,10 +55,8 @@ class UpdateComponentRequestBody:
55
55
 
56
56
  self.api_version = api_version
57
57
  self.kind = kind
58
- if metadata is not None:
59
- self.metadata = metadata
60
- if spec is not None:
61
- self.spec = spec
58
+ self.metadata = metadata
59
+ self.spec = spec
62
60
 
63
61
  @property
64
62
  def api_version(self):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: huaweicloudsdkcae
3
- Version: 3.1.109
3
+ Version: 3.1.111
4
4
  Summary: CAE
5
5
  Home-page: https://github.com/huaweicloud/huaweicloud-sdk-python-v3
6
6
  Author: HuaweiCloud SDK
@@ -22,6 +22,6 @@ Classifier: Topic :: Software Development
22
22
  Requires-Python: >=2.7,!=3.0.*,!=3.1.*,!=3.2.*
23
23
  Description-Content-Type: text/markdown
24
24
  License-File: LICENSE
25
- Requires-Dist: huaweicloudsdkcore>=3.1.109
25
+ Requires-Dist: huaweicloudsdkcore>=3.1.111
26
26
 
27
27
  See detailed information in [huaweicloud-sdk-python-v3](https://github.com/huaweicloud/huaweicloud-sdk-python-v3).
@@ -1,8 +1,8 @@
1
1
  huaweicloudsdkcae/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- huaweicloudsdkcae/v1/__init__.py,sha256=9ZOrcm4s4w637AEKh0GbAMy2t-BVieMMMCcHfZsbDUA,20975
3
- huaweicloudsdkcae/v1/cae_async_client.py,sha256=YM3KevrC25pafNI7WXlta-qfdFsTcxW9xrIk4rSXU5E,127106
4
- huaweicloudsdkcae/v1/cae_client.py,sha256=kn7V5uXH8TR31ND-ZXTwPSDNiT-3I-h35i6ax3Mngkg,127105
5
- huaweicloudsdkcae/v1/model/__init__.py,sha256=km1c3ZB0nYgXeLzfkVGAza5C7MVLG8vhe25wT2tDuCw,20889
2
+ huaweicloudsdkcae/v1/__init__.py,sha256=KqOSuQ9YFRFQkmG26ijTx0omJrIR1LvvkI6NzULMMHg,20635
3
+ huaweicloudsdkcae/v1/cae_async_client.py,sha256=eVdb1bcL_IVV96mg5rFSzrmjSehIF9HuMh2UTnhRd7w,124572
4
+ huaweicloudsdkcae/v1/cae_client.py,sha256=oZgboHHVMmj3LTrUB2pJCizVwwmpGEtJ4QWJCQYM7Pk,124569
5
+ huaweicloudsdkcae/v1/model/__init__.py,sha256=8LLvjhOJYCmiRuq11w4pr8u7ndW8R2UB0rBdnVIWZko,20549
6
6
  huaweicloudsdkcae/v1/model/access.py,sha256=0xqNmw_Fm4AGwHLp9NS0NKl4sI0uvoEVIOe5aW9-Gr0,3611
7
7
  huaweicloudsdkcae/v1/model/access_configuration_data_items.py,sha256=gFxOZxgM0QxrF_qUrePgHYN6RDgZIY1eS9Eqxa7Cg78,10445
8
8
  huaweicloudsdkcae/v1/model/access_configuration_http_path.py,sha256=EHJjhTkSlZCcXpeBtHApu36hG7Toj10HLNDKemMkQyw,5037
@@ -28,7 +28,6 @@ huaweicloudsdkcae/v1/model/cert_item.py,sha256=dVoCx-aWPUmoq2S46gm1TV_LnbEw8DI-o
28
28
  huaweicloudsdkcae/v1/model/cert_req.py,sha256=ksRLqKvUeIzc67LX2SA-wFWfaoeLV1haKc--HIa3Jk8,5189
29
29
  huaweicloudsdkcae/v1/model/certificate_kind_obj.py,sha256=yQep89AloheRy1n-_flGLaAJvrXw4cZ95y4o9QjOab0,2383
30
30
  huaweicloudsdkcae/v1/model/component_configuration_kind_obj.py,sha256=y_4FRtYJGYwfpi6EI-HI3WlZMxsS0qSwq5aVJf2L3fk,2438
31
- huaweicloudsdkcae/v1/model/component_event_kind_obj.py,sha256=g2v63A2yjvQakWxwNK4ebBoYebAXZGCCuAoXf4mxFkw,2398
32
31
  huaweicloudsdkcae/v1/model/component_execution_result.py,sha256=fZeecKgEj_LAErZy1mXZ-SQHUNq0GFzMVyfyYkuJF-s,6054
33
32
  huaweicloudsdkcae/v1/model/component_info.py,sha256=sR5msgdoRCYwwy8Rggku9p9Iq6TR_4gAPGOrbWQ4MqQ,4003
34
33
  huaweicloudsdkcae/v1/model/component_item.py,sha256=covdRmdsyjnXod-_MYi5vxGMXtc5YlDJVCTpIGuOSv0,6737
@@ -59,7 +58,7 @@ huaweicloudsdkcae/v1/model/create_component_configuration_request.py,sha256=jWSm
59
58
  huaweicloudsdkcae/v1/model/create_component_configuration_request_body.py,sha256=zZoKd-xkln6XMnTL3tjVJjD8eSmu4_vxqKSJ7rK4Oc0,5093
60
59
  huaweicloudsdkcae/v1/model/create_component_configuration_response.py,sha256=xJQCTIIj9xzNQyMcYmrHfbHVOo4JfEfbF-JXcIu2Sj8,2495
61
60
  huaweicloudsdkcae/v1/model/create_component_request.py,sha256=D3E9JG6990BD2ZfjTH4mY3bixGFYLagPJ5pp8LB_Jtw,8344
62
- huaweicloudsdkcae/v1/model/create_component_request_body.py,sha256=KGRfx_e405X7vDBrcxmv8o424OH7Pt-baOyPcshHdtQ,5892
61
+ huaweicloudsdkcae/v1/model/create_component_request_body.py,sha256=8AqziJ-yT-psync04WvPHaGbRtUaRWQYCinmIFYB3R0,5822
63
62
  huaweicloudsdkcae/v1/model/create_component_response.py,sha256=9mVp3VK48wIG41OCJeY0TEOfxqW7lcsp_L2htCGVJiM,5772
64
63
  huaweicloudsdkcae/v1/model/create_component_spec.py,sha256=OoYkksoNING4zV9kzso6sHGeIq3rr3zWC4jPp6Wv3HQ,8704
65
64
  huaweicloudsdkcae/v1/model/create_component_with_configuration_request.py,sha256=ZyXVnepMkuZ5RwELfqUG88_-US5yYmDddZomOIkVvws,8752
@@ -120,7 +119,6 @@ huaweicloudsdkcae/v1/model/egress_cidr.py,sha256=Kv-OwzwfMTD3Vl3-jcGo3Dl2Xqb9JKB
120
119
  huaweicloudsdkcae/v1/model/eip_kind_obj.py,sha256=Sf0-7jTarAjOy2Jw3aKrcPkmB_j8IRyLH4qm6A8O_E4,2343
121
120
  huaweicloudsdkcae/v1/model/environment_item.py,sha256=vMdEpi57jcz62-3EpfRyRwF5AvEi5R11lqJK4TKnQq8,8911
122
121
  huaweicloudsdkcae/v1/model/environment_kind_obj.py,sha256=0MJd9GiKINqsZudc3iS5pMe3jxvvl6srwejFaWxXEGk,2383
123
- huaweicloudsdkcae/v1/model/event_item.py,sha256=vQ-lkJfiqrZ6PozXAg7TagNTDhAOzrANg0IOtn7f5fo,8480
124
122
  huaweicloudsdkcae/v1/model/execute_action_request.py,sha256=zBm5aICfEP7V-wI1U-FW7QG7wXXR8DwYA3MHymqvqI0,9107
125
123
  huaweicloudsdkcae/v1/model/execute_action_request_body.py,sha256=EvvkvX-9dG7vyRiGgYNn7o1Iv6aMiiP5vye2Wi5PzLk,5662
126
124
  huaweicloudsdkcae/v1/model/execute_action_request_body_metadata.py,sha256=OTjWLbdN3eZCM-tOZmT3q7xvSFYvFimxn-egYLdoiqw,3982
@@ -145,8 +143,6 @@ huaweicloudsdkcae/v1/model/list_certificates_response.py,sha256=htCxvBTlKSuAnthw
145
143
  huaweicloudsdkcae/v1/model/list_component_configurations_request.py,sha256=XMtYev2jMXGJiLlqnzE0cwI6ClUjROTrU6MjDRoNEcA,8552
146
144
  huaweicloudsdkcae/v1/model/list_component_configurations_response.py,sha256=a1rSawYFe_wBPJGj47lsXgCHQsqY3J1WwBf1qKpCyOM,5355
147
145
  huaweicloudsdkcae/v1/model/list_component_configurations_response_data.py,sha256=vycNFcGJUlLuvgBaWHthCeZWkUHufak4kxCx5yLY1kY,4221
148
- huaweicloudsdkcae/v1/model/list_component_events_request.py,sha256=x8zSXjlXCHPW1UP4ArK9U4cwX0vm9WXaE7hkQauX7SQ,8400
149
- huaweicloudsdkcae/v1/model/list_component_events_response.py,sha256=punulw2Zo7XqKWCSWX6q5SZxzHphR05REtYa82HzFOw,5058
150
146
  huaweicloudsdkcae/v1/model/list_component_instances_request.py,sha256=t4I8nt74vEbapJ8vjcNXa9e2HVxr_g01QOvYrQPnd5Q,8457
151
147
  huaweicloudsdkcae/v1/model/list_component_instances_response.py,sha256=WzaXnPhCk623bu42aQTLnt2keQ3aGQmN9aeR2Tebzlc,5161
152
148
  huaweicloudsdkcae/v1/model/list_component_snapshots_request.py,sha256=oQs8ynecw3myDodVrh8NLGnhRow8eHyn8jHYVFFsvHs,8457
@@ -177,7 +173,7 @@ huaweicloudsdkcae/v1/model/monitor_system_kind_obj.py,sha256=dAKTPJoZuQ-e6PEPYBc
177
173
  huaweicloudsdkcae/v1/model/monitor_system_request_body.py,sha256=fWMiNKC1EqmmHA75E1yezsHd1YsP46dghoF9QaTGuO8,4862
178
174
  huaweicloudsdkcae/v1/model/monitor_system_request_body_spec.py,sha256=XQKuwxOCDN0x3rgrFo99OdyOUb-h_r05uoxnw9rYKrU,9449
179
175
  huaweicloudsdkcae/v1/model/mount_component.py,sha256=qCDTSHtBFi5Rof8B6Pg8n4PlFtNpPaYdiLD_gpgKiaw,6890
180
- huaweicloudsdkcae/v1/model/notice_rule_notification.py,sha256=DYzQIsoYlCzrAKwkfIRyqnQ7uZJp1qKIGhOkhvlW06w,4854
176
+ huaweicloudsdkcae/v1/model/notice_rule_notification.py,sha256=KuWdoJJR14-7jtj1liO17V6LwQEisUlRmLysCjaXs5o,5751
181
177
  huaweicloudsdkcae/v1/model/notice_rule_scope.py,sha256=a24KxjWiIf-OeRrIFhlY1aUdVydz95yB238tj_VMLMo,6103
182
178
  huaweicloudsdkcae/v1/model/repo.py,sha256=EridbuI9Z0-id2czmZiEuOk8NdhfANvG8uT_aD_4EVg,4493
183
179
  huaweicloudsdkcae/v1/model/resource_limit.py,sha256=fFAeQEF2g3emV2pX_y5oDy0QVpITFdRaWYlA5ajVw5E,3812
@@ -211,7 +207,7 @@ huaweicloudsdkcae/v1/model/update_cert_req.py,sha256=lmMr894J61q__9ezPt_0Ywxm0Qg
211
207
  huaweicloudsdkcae/v1/model/update_certificate_request.py,sha256=tiBi7zpiHnlGVRp9iv7bV-5j78kZMkOc_8jJSYVTUzU,8332
212
208
  huaweicloudsdkcae/v1/model/update_certificate_response.py,sha256=kSK1Y5A_oywTt0y0sc6VpVhZveI0UZlElZZgrsDZcTs,2451
213
209
  huaweicloudsdkcae/v1/model/update_component_request.py,sha256=S2iUgR8RoLrLeXfXZt5Cfe3EOrmkPiHKU4svtcLTQjc,9163
214
- huaweicloudsdkcae/v1/model/update_component_request_body.py,sha256=MAp5KO42rAwknVfeaLSjODQEgq5AjaqtWxML0Nuw_Aw,5724
210
+ huaweicloudsdkcae/v1/model/update_component_request_body.py,sha256=1eY1aYlkpAlUlaS0-BDFrhBjaUbu8IriBVunyhkZRc4,5654
215
211
  huaweicloudsdkcae/v1/model/update_component_request_metadata.py,sha256=5UwNZ3T8xn39xj1Z1levAhe018TSrpiyTdhfAvTdvRU,4170
216
212
  huaweicloudsdkcae/v1/model/update_component_request_spec.py,sha256=Vgsv7oh_2l5h92Vc-D13apL9SCKN4B2LotUgBq8nyys,6397
217
213
  huaweicloudsdkcae/v1/model/update_component_response.py,sha256=kzd8zZ0a7CKN-jKmBtMvV4VBVuGkx58OPYq6pDcByZk,2443
@@ -243,8 +239,8 @@ huaweicloudsdkcae/v1/model/vpc_egress_request_body_spec.py,sha256=UOWANus9wddqNC
243
239
  huaweicloudsdkcae/v1/model/vpc_egress_response_body_spec.py,sha256=CF7CeqWOcGrevnTBeLYHDXcDnerM01A0z3Gc5n6l4Ok,4816
244
240
  huaweicloudsdkcae/v1/region/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
245
241
  huaweicloudsdkcae/v1/region/cae_region.py,sha256=jwRHLF_CPoikdZ37-x0FehGQx6cPnz6zvu7BuXBFA-0,1536
246
- huaweicloudsdkcae-3.1.109.dist-info/LICENSE,sha256=4_VSTLuxcsybRG9N4Isktlj1rAIBBsfl0Tjc0gBTijo,604
247
- huaweicloudsdkcae-3.1.109.dist-info/METADATA,sha256=7fvr5qQ8vYNbUgltBs92GmN2g8dEcExdJg_PzL3GUCM,1135
248
- huaweicloudsdkcae-3.1.109.dist-info/WHEEL,sha256=fS9sRbCBHs7VFcwJLnLXN1MZRR0_TVTxvXKzOnaSFs8,110
249
- huaweicloudsdkcae-3.1.109.dist-info/top_level.txt,sha256=bSiBgsEXtNwy-Yv8143HEaMChUEIffdz2t9FM-26QjM,18
250
- huaweicloudsdkcae-3.1.109.dist-info/RECORD,,
242
+ huaweicloudsdkcae-3.1.111.dist-info/LICENSE,sha256=4_VSTLuxcsybRG9N4Isktlj1rAIBBsfl0Tjc0gBTijo,604
243
+ huaweicloudsdkcae-3.1.111.dist-info/METADATA,sha256=ry746ugD8Hfy1nLLBus-3Ck2hHtCLam3c0tIvttXeEA,1135
244
+ huaweicloudsdkcae-3.1.111.dist-info/WHEEL,sha256=fS9sRbCBHs7VFcwJLnLXN1MZRR0_TVTxvXKzOnaSFs8,110
245
+ huaweicloudsdkcae-3.1.111.dist-info/top_level.txt,sha256=bSiBgsEXtNwy-Yv8143HEaMChUEIffdz2t9FM-26QjM,18
246
+ huaweicloudsdkcae-3.1.111.dist-info/RECORD,,
@@ -1,87 +0,0 @@
1
- # coding: utf-8
2
-
3
- import six
4
-
5
- from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
-
7
-
8
- class ComponentEventKindObj:
9
- """
10
- allowed enum values
11
- """
12
- COMPONENTEVENT = "ComponentEvent"
13
- """
14
- Attributes:
15
- openapi_types (dict): The key is attribute name
16
- and the value is attribute type.
17
- attribute_map (dict): The key is attribute name
18
- and the value is json key in definition.
19
- """
20
- sensitive_list = []
21
-
22
- openapi_types = {
23
- }
24
-
25
- attribute_map = {
26
- }
27
-
28
- def __init__(self):
29
- """ComponentEventKindObj
30
-
31
- The model defined in huaweicloud sdk
32
-
33
- """
34
-
35
-
36
- self.discriminator = None
37
-
38
- def to_dict(self):
39
- """Returns the model properties as a dict"""
40
- result = {}
41
-
42
- for attr, _ in six.iteritems(self.openapi_types):
43
- value = getattr(self, attr)
44
- if isinstance(value, list):
45
- result[attr] = list(map(
46
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
47
- value
48
- ))
49
- elif hasattr(value, "to_dict"):
50
- result[attr] = value.to_dict()
51
- elif isinstance(value, dict):
52
- result[attr] = dict(map(
53
- lambda item: (item[0], item[1].to_dict())
54
- if hasattr(item[1], "to_dict") else item,
55
- value.items()
56
- ))
57
- else:
58
- if attr in self.sensitive_list:
59
- result[attr] = "****"
60
- else:
61
- result[attr] = value
62
-
63
- return result
64
-
65
- def to_str(self):
66
- """Returns the string representation of the model"""
67
- import simplejson as json
68
- if six.PY2:
69
- import sys
70
- reload(sys)
71
- sys.setdefaultencoding("utf-8")
72
- return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
73
-
74
- def __repr__(self):
75
- """For `print`"""
76
- return self.to_str()
77
-
78
- def __eq__(self, other):
79
- """Returns true if both objects are equal"""
80
- if not isinstance(other, ComponentEventKindObj):
81
- return False
82
-
83
- return self.__dict__ == other.__dict__
84
-
85
- def __ne__(self, other):
86
- """Returns true if both objects are not equal"""
87
- return not self == other
@@ -1,318 +0,0 @@
1
- # coding: utf-8
2
-
3
- import six
4
-
5
- from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
-
7
-
8
- class EventItem:
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
- 'name': 'str',
21
- 'involved_object_kind': 'str',
22
- 'involved_object': 'str',
23
- 'message': 'str',
24
- 'created_at': 'str',
25
- 'updated_at': 'str',
26
- 'status': 'str',
27
- 'count': 'int'
28
- }
29
-
30
- attribute_map = {
31
- 'name': 'name',
32
- 'involved_object_kind': 'involved_object_kind',
33
- 'involved_object': 'involved_object',
34
- 'message': 'message',
35
- 'created_at': 'created_at',
36
- 'updated_at': 'updated_at',
37
- 'status': 'status',
38
- 'count': 'count'
39
- }
40
-
41
- def __init__(self, name=None, involved_object_kind=None, involved_object=None, message=None, created_at=None, updated_at=None, status=None, count=None):
42
- """EventItem
43
-
44
- The model defined in huaweicloud sdk
45
-
46
- :param name: 事件名称。
47
- :type name: str
48
- :param involved_object_kind: 涉及对象类型。
49
- :type involved_object_kind: str
50
- :param involved_object: 涉及对象。
51
- :type involved_object: str
52
- :param message: 组件事件信息。
53
- :type message: str
54
- :param created_at: 创建时间。
55
- :type created_at: str
56
- :param updated_at: 更新时间。
57
- :type updated_at: str
58
- :param status: 组件事件状态。
59
- :type status: str
60
- :param count: 事件发生次数。
61
- :type count: int
62
- """
63
-
64
-
65
-
66
- self._name = None
67
- self._involved_object_kind = None
68
- self._involved_object = None
69
- self._message = None
70
- self._created_at = None
71
- self._updated_at = None
72
- self._status = None
73
- self._count = None
74
- self.discriminator = None
75
-
76
- if name is not None:
77
- self.name = name
78
- if involved_object_kind is not None:
79
- self.involved_object_kind = involved_object_kind
80
- if involved_object is not None:
81
- self.involved_object = involved_object
82
- if message is not None:
83
- self.message = message
84
- if created_at is not None:
85
- self.created_at = created_at
86
- if updated_at is not None:
87
- self.updated_at = updated_at
88
- if status is not None:
89
- self.status = status
90
- if count is not None:
91
- self.count = count
92
-
93
- @property
94
- def name(self):
95
- """Gets the name of this EventItem.
96
-
97
- 事件名称。
98
-
99
- :return: The name of this EventItem.
100
- :rtype: str
101
- """
102
- return self._name
103
-
104
- @name.setter
105
- def name(self, name):
106
- """Sets the name of this EventItem.
107
-
108
- 事件名称。
109
-
110
- :param name: The name of this EventItem.
111
- :type name: str
112
- """
113
- self._name = name
114
-
115
- @property
116
- def involved_object_kind(self):
117
- """Gets the involved_object_kind of this EventItem.
118
-
119
- 涉及对象类型。
120
-
121
- :return: The involved_object_kind of this EventItem.
122
- :rtype: str
123
- """
124
- return self._involved_object_kind
125
-
126
- @involved_object_kind.setter
127
- def involved_object_kind(self, involved_object_kind):
128
- """Sets the involved_object_kind of this EventItem.
129
-
130
- 涉及对象类型。
131
-
132
- :param involved_object_kind: The involved_object_kind of this EventItem.
133
- :type involved_object_kind: str
134
- """
135
- self._involved_object_kind = involved_object_kind
136
-
137
- @property
138
- def involved_object(self):
139
- """Gets the involved_object of this EventItem.
140
-
141
- 涉及对象。
142
-
143
- :return: The involved_object of this EventItem.
144
- :rtype: str
145
- """
146
- return self._involved_object
147
-
148
- @involved_object.setter
149
- def involved_object(self, involved_object):
150
- """Sets the involved_object of this EventItem.
151
-
152
- 涉及对象。
153
-
154
- :param involved_object: The involved_object of this EventItem.
155
- :type involved_object: str
156
- """
157
- self._involved_object = involved_object
158
-
159
- @property
160
- def message(self):
161
- """Gets the message of this EventItem.
162
-
163
- 组件事件信息。
164
-
165
- :return: The message of this EventItem.
166
- :rtype: str
167
- """
168
- return self._message
169
-
170
- @message.setter
171
- def message(self, message):
172
- """Sets the message of this EventItem.
173
-
174
- 组件事件信息。
175
-
176
- :param message: The message of this EventItem.
177
- :type message: str
178
- """
179
- self._message = message
180
-
181
- @property
182
- def created_at(self):
183
- """Gets the created_at of this EventItem.
184
-
185
- 创建时间。
186
-
187
- :return: The created_at of this EventItem.
188
- :rtype: str
189
- """
190
- return self._created_at
191
-
192
- @created_at.setter
193
- def created_at(self, created_at):
194
- """Sets the created_at of this EventItem.
195
-
196
- 创建时间。
197
-
198
- :param created_at: The created_at of this EventItem.
199
- :type created_at: str
200
- """
201
- self._created_at = created_at
202
-
203
- @property
204
- def updated_at(self):
205
- """Gets the updated_at of this EventItem.
206
-
207
- 更新时间。
208
-
209
- :return: The updated_at of this EventItem.
210
- :rtype: str
211
- """
212
- return self._updated_at
213
-
214
- @updated_at.setter
215
- def updated_at(self, updated_at):
216
- """Sets the updated_at of this EventItem.
217
-
218
- 更新时间。
219
-
220
- :param updated_at: The updated_at of this EventItem.
221
- :type updated_at: str
222
- """
223
- self._updated_at = updated_at
224
-
225
- @property
226
- def status(self):
227
- """Gets the status of this EventItem.
228
-
229
- 组件事件状态。
230
-
231
- :return: The status of this EventItem.
232
- :rtype: str
233
- """
234
- return self._status
235
-
236
- @status.setter
237
- def status(self, status):
238
- """Sets the status of this EventItem.
239
-
240
- 组件事件状态。
241
-
242
- :param status: The status of this EventItem.
243
- :type status: str
244
- """
245
- self._status = status
246
-
247
- @property
248
- def count(self):
249
- """Gets the count of this EventItem.
250
-
251
- 事件发生次数。
252
-
253
- :return: The count of this EventItem.
254
- :rtype: int
255
- """
256
- return self._count
257
-
258
- @count.setter
259
- def count(self, count):
260
- """Sets the count of this EventItem.
261
-
262
- 事件发生次数。
263
-
264
- :param count: The count of this EventItem.
265
- :type count: int
266
- """
267
- self._count = count
268
-
269
- def to_dict(self):
270
- """Returns the model properties as a dict"""
271
- result = {}
272
-
273
- for attr, _ in six.iteritems(self.openapi_types):
274
- value = getattr(self, attr)
275
- if isinstance(value, list):
276
- result[attr] = list(map(
277
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
278
- value
279
- ))
280
- elif hasattr(value, "to_dict"):
281
- result[attr] = value.to_dict()
282
- elif isinstance(value, dict):
283
- result[attr] = dict(map(
284
- lambda item: (item[0], item[1].to_dict())
285
- if hasattr(item[1], "to_dict") else item,
286
- value.items()
287
- ))
288
- else:
289
- if attr in self.sensitive_list:
290
- result[attr] = "****"
291
- else:
292
- result[attr] = value
293
-
294
- return result
295
-
296
- def to_str(self):
297
- """Returns the string representation of the model"""
298
- import simplejson as json
299
- if six.PY2:
300
- import sys
301
- reload(sys)
302
- sys.setdefaultencoding("utf-8")
303
- return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
304
-
305
- def __repr__(self):
306
- """For `print`"""
307
- return self.to_str()
308
-
309
- def __eq__(self, other):
310
- """Returns true if both objects are equal"""
311
- if not isinstance(other, EventItem):
312
- return False
313
-
314
- return self.__dict__ == other.__dict__
315
-
316
- def __ne__(self, other):
317
- """Returns true if both objects are not equal"""
318
- return not self == other
@@ -1,199 +0,0 @@
1
- # coding: utf-8
2
-
3
- import six
4
-
5
- from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
-
7
-
8
- class ListComponentEventsRequest:
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
- 'application_id': 'str',
21
- 'component_id': 'str',
22
- 'x_enterprise_project_id': 'str',
23
- 'x_environment_id': 'str'
24
- }
25
-
26
- attribute_map = {
27
- 'application_id': 'application_id',
28
- 'component_id': 'component_id',
29
- 'x_enterprise_project_id': 'X-Enterprise-Project-ID',
30
- 'x_environment_id': 'X-Environment-ID'
31
- }
32
-
33
- def __init__(self, application_id=None, component_id=None, x_enterprise_project_id=None, x_environment_id=None):
34
- """ListComponentEventsRequest
35
-
36
- The model defined in huaweicloud sdk
37
-
38
- :param application_id: 应用ID。
39
- :type application_id: str
40
- :param component_id: 组件ID。
41
- :type component_id: str
42
- :param x_enterprise_project_id: 企业项目ID。 - 创建环境时,环境会绑定企业项目ID。 - 最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。 - 该字段不传(或传为字符串“0”)时,则查询默认企业项目下的资源。 > 关于企业项目ID的获取及企业项目特性的详细信息,请参见《[企业管理服务用户指南](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0126101490.html)》。
43
- :type x_enterprise_project_id: str
44
- :param x_environment_id: 环境ID。 - 获取环境ID,通过《[云应用引擎API参考](https://support.huaweicloud.com/api-cae/ListEnvironments.html)》的“获取环境列表”章节获取环境信息。 - 请求响应成功后在响应体的items数组中的一个元素即为一个环境的信息,其中id字段即是环境ID。
45
- :type x_environment_id: str
46
- """
47
-
48
-
49
-
50
- self._application_id = None
51
- self._component_id = None
52
- self._x_enterprise_project_id = None
53
- self._x_environment_id = None
54
- self.discriminator = None
55
-
56
- self.application_id = application_id
57
- self.component_id = component_id
58
- if x_enterprise_project_id is not None:
59
- self.x_enterprise_project_id = x_enterprise_project_id
60
- self.x_environment_id = x_environment_id
61
-
62
- @property
63
- def application_id(self):
64
- """Gets the application_id of this ListComponentEventsRequest.
65
-
66
- 应用ID。
67
-
68
- :return: The application_id of this ListComponentEventsRequest.
69
- :rtype: str
70
- """
71
- return self._application_id
72
-
73
- @application_id.setter
74
- def application_id(self, application_id):
75
- """Sets the application_id of this ListComponentEventsRequest.
76
-
77
- 应用ID。
78
-
79
- :param application_id: The application_id of this ListComponentEventsRequest.
80
- :type application_id: str
81
- """
82
- self._application_id = application_id
83
-
84
- @property
85
- def component_id(self):
86
- """Gets the component_id of this ListComponentEventsRequest.
87
-
88
- 组件ID。
89
-
90
- :return: The component_id of this ListComponentEventsRequest.
91
- :rtype: str
92
- """
93
- return self._component_id
94
-
95
- @component_id.setter
96
- def component_id(self, component_id):
97
- """Sets the component_id of this ListComponentEventsRequest.
98
-
99
- 组件ID。
100
-
101
- :param component_id: The component_id of this ListComponentEventsRequest.
102
- :type component_id: str
103
- """
104
- self._component_id = component_id
105
-
106
- @property
107
- def x_enterprise_project_id(self):
108
- """Gets the x_enterprise_project_id of this ListComponentEventsRequest.
109
-
110
- 企业项目ID。 - 创建环境时,环境会绑定企业项目ID。 - 最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。 - 该字段不传(或传为字符串“0”)时,则查询默认企业项目下的资源。 > 关于企业项目ID的获取及企业项目特性的详细信息,请参见《[企业管理服务用户指南](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0126101490.html)》。
111
-
112
- :return: The x_enterprise_project_id of this ListComponentEventsRequest.
113
- :rtype: str
114
- """
115
- return self._x_enterprise_project_id
116
-
117
- @x_enterprise_project_id.setter
118
- def x_enterprise_project_id(self, x_enterprise_project_id):
119
- """Sets the x_enterprise_project_id of this ListComponentEventsRequest.
120
-
121
- 企业项目ID。 - 创建环境时,环境会绑定企业项目ID。 - 最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。 - 该字段不传(或传为字符串“0”)时,则查询默认企业项目下的资源。 > 关于企业项目ID的获取及企业项目特性的详细信息,请参见《[企业管理服务用户指南](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0126101490.html)》。
122
-
123
- :param x_enterprise_project_id: The x_enterprise_project_id of this ListComponentEventsRequest.
124
- :type x_enterprise_project_id: str
125
- """
126
- self._x_enterprise_project_id = x_enterprise_project_id
127
-
128
- @property
129
- def x_environment_id(self):
130
- """Gets the x_environment_id of this ListComponentEventsRequest.
131
-
132
- 环境ID。 - 获取环境ID,通过《[云应用引擎API参考](https://support.huaweicloud.com/api-cae/ListEnvironments.html)》的“获取环境列表”章节获取环境信息。 - 请求响应成功后在响应体的items数组中的一个元素即为一个环境的信息,其中id字段即是环境ID。
133
-
134
- :return: The x_environment_id of this ListComponentEventsRequest.
135
- :rtype: str
136
- """
137
- return self._x_environment_id
138
-
139
- @x_environment_id.setter
140
- def x_environment_id(self, x_environment_id):
141
- """Sets the x_environment_id of this ListComponentEventsRequest.
142
-
143
- 环境ID。 - 获取环境ID,通过《[云应用引擎API参考](https://support.huaweicloud.com/api-cae/ListEnvironments.html)》的“获取环境列表”章节获取环境信息。 - 请求响应成功后在响应体的items数组中的一个元素即为一个环境的信息,其中id字段即是环境ID。
144
-
145
- :param x_environment_id: The x_environment_id of this ListComponentEventsRequest.
146
- :type x_environment_id: str
147
- """
148
- self._x_environment_id = x_environment_id
149
-
150
- def to_dict(self):
151
- """Returns the model properties as a dict"""
152
- result = {}
153
-
154
- for attr, _ in six.iteritems(self.openapi_types):
155
- value = getattr(self, attr)
156
- if isinstance(value, list):
157
- result[attr] = list(map(
158
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
159
- value
160
- ))
161
- elif hasattr(value, "to_dict"):
162
- result[attr] = value.to_dict()
163
- elif isinstance(value, dict):
164
- result[attr] = dict(map(
165
- lambda item: (item[0], item[1].to_dict())
166
- if hasattr(item[1], "to_dict") else item,
167
- value.items()
168
- ))
169
- else:
170
- if attr in self.sensitive_list:
171
- result[attr] = "****"
172
- else:
173
- result[attr] = value
174
-
175
- return result
176
-
177
- def to_str(self):
178
- """Returns the string representation of the model"""
179
- import simplejson as json
180
- if six.PY2:
181
- import sys
182
- reload(sys)
183
- sys.setdefaultencoding("utf-8")
184
- return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
185
-
186
- def __repr__(self):
187
- """For `print`"""
188
- return self.to_str()
189
-
190
- def __eq__(self, other):
191
- """Returns true if both objects are equal"""
192
- if not isinstance(other, ListComponentEventsRequest):
193
- return False
194
-
195
- return self.__dict__ == other.__dict__
196
-
197
- def __ne__(self, other):
198
- """Returns true if both objects are not equal"""
199
- return not self == other
@@ -1,166 +0,0 @@
1
- # coding: utf-8
2
-
3
- import six
4
-
5
- from huaweicloudsdkcore.sdk_response import SdkResponse
6
- from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
7
-
8
-
9
- class ListComponentEventsResponse(SdkResponse):
10
-
11
- """
12
- Attributes:
13
- openapi_types (dict): The key is attribute name
14
- and the value is attribute type.
15
- attribute_map (dict): The key is attribute name
16
- and the value is json key in definition.
17
- """
18
- sensitive_list = []
19
-
20
- openapi_types = {
21
- 'api_version': 'ApiVersionObj',
22
- 'kind': 'ComponentEventKindObj',
23
- 'items': 'list[EventItem]'
24
- }
25
-
26
- attribute_map = {
27
- 'api_version': 'api_version',
28
- 'kind': 'kind',
29
- 'items': 'items'
30
- }
31
-
32
- def __init__(self, api_version=None, kind=None, items=None):
33
- """ListComponentEventsResponse
34
-
35
- The model defined in huaweicloud sdk
36
-
37
- :param api_version:
38
- :type api_version: :class:`huaweicloudsdkcae.v1.ApiVersionObj`
39
- :param kind:
40
- :type kind: :class:`huaweicloudsdkcae.v1.ComponentEventKindObj`
41
- :param items: 事件项。
42
- :type items: list[:class:`huaweicloudsdkcae.v1.EventItem`]
43
- """
44
-
45
- super(ListComponentEventsResponse, self).__init__()
46
-
47
- self._api_version = None
48
- self._kind = None
49
- self._items = None
50
- self.discriminator = None
51
-
52
- if api_version is not None:
53
- self.api_version = api_version
54
- if kind is not None:
55
- self.kind = kind
56
- if items is not None:
57
- self.items = items
58
-
59
- @property
60
- def api_version(self):
61
- """Gets the api_version of this ListComponentEventsResponse.
62
-
63
- :return: The api_version of this ListComponentEventsResponse.
64
- :rtype: :class:`huaweicloudsdkcae.v1.ApiVersionObj`
65
- """
66
- return self._api_version
67
-
68
- @api_version.setter
69
- def api_version(self, api_version):
70
- """Sets the api_version of this ListComponentEventsResponse.
71
-
72
- :param api_version: The api_version of this ListComponentEventsResponse.
73
- :type api_version: :class:`huaweicloudsdkcae.v1.ApiVersionObj`
74
- """
75
- self._api_version = api_version
76
-
77
- @property
78
- def kind(self):
79
- """Gets the kind of this ListComponentEventsResponse.
80
-
81
- :return: The kind of this ListComponentEventsResponse.
82
- :rtype: :class:`huaweicloudsdkcae.v1.ComponentEventKindObj`
83
- """
84
- return self._kind
85
-
86
- @kind.setter
87
- def kind(self, kind):
88
- """Sets the kind of this ListComponentEventsResponse.
89
-
90
- :param kind: The kind of this ListComponentEventsResponse.
91
- :type kind: :class:`huaweicloudsdkcae.v1.ComponentEventKindObj`
92
- """
93
- self._kind = kind
94
-
95
- @property
96
- def items(self):
97
- """Gets the items of this ListComponentEventsResponse.
98
-
99
- 事件项。
100
-
101
- :return: The items of this ListComponentEventsResponse.
102
- :rtype: list[:class:`huaweicloudsdkcae.v1.EventItem`]
103
- """
104
- return self._items
105
-
106
- @items.setter
107
- def items(self, items):
108
- """Sets the items of this ListComponentEventsResponse.
109
-
110
- 事件项。
111
-
112
- :param items: The items of this ListComponentEventsResponse.
113
- :type items: list[:class:`huaweicloudsdkcae.v1.EventItem`]
114
- """
115
- self._items = items
116
-
117
- def to_dict(self):
118
- """Returns the model properties as a dict"""
119
- result = {}
120
-
121
- for attr, _ in six.iteritems(self.openapi_types):
122
- value = getattr(self, attr)
123
- if isinstance(value, list):
124
- result[attr] = list(map(
125
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
126
- value
127
- ))
128
- elif hasattr(value, "to_dict"):
129
- result[attr] = value.to_dict()
130
- elif isinstance(value, dict):
131
- result[attr] = dict(map(
132
- lambda item: (item[0], item[1].to_dict())
133
- if hasattr(item[1], "to_dict") else item,
134
- value.items()
135
- ))
136
- else:
137
- if attr in self.sensitive_list:
138
- result[attr] = "****"
139
- else:
140
- result[attr] = value
141
-
142
- return result
143
-
144
- def to_str(self):
145
- """Returns the string representation of the model"""
146
- import simplejson as json
147
- if six.PY2:
148
- import sys
149
- reload(sys)
150
- sys.setdefaultencoding("utf-8")
151
- return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
152
-
153
- def __repr__(self):
154
- """For `print`"""
155
- return self.to_str()
156
-
157
- def __eq__(self, other):
158
- """Returns true if both objects are equal"""
159
- if not isinstance(other, ListComponentEventsResponse):
160
- return False
161
-
162
- return self.__dict__ == other.__dict__
163
-
164
- def __ne__(self, other):
165
- """Returns true if both objects are not equal"""
166
- return not self == other