huaweicloudsdkcae 3.1.86__py2.py3-none-any.whl → 3.1.132__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 (69) hide show
  1. huaweicloudsdkcae/v1/__init__.py +38 -6
  2. huaweicloudsdkcae/v1/cae_async_client.py +601 -45
  3. huaweicloudsdkcae/v1/cae_client.py +601 -45
  4. huaweicloudsdkcae/v1/model/__init__.py +38 -6
  5. huaweicloudsdkcae/v1/model/access_configuration_data_items.py +177 -7
  6. huaweicloudsdkcae/v1/model/access_configuration_metadata.py +115 -0
  7. huaweicloudsdkcae/v1/model/access_configuration_port.py +59 -1
  8. huaweicloudsdkcae/v1/model/agency_metadata.py +28 -3
  9. huaweicloudsdkcae/v1/model/cloud_storage_log_path_info.py +144 -0
  10. huaweicloudsdkcae/v1/model/configuration.py +35 -6
  11. huaweicloudsdkcae/v1/model/configuration_request_data_spec.py +37 -8
  12. huaweicloudsdkcae/v1/model/configuration_response_data_spec.py +37 -8
  13. huaweicloudsdkcae/v1/model/create_component_request_body.py +10 -12
  14. huaweicloudsdkcae/v1/model/{list_component_events_request.py → create_component_with_configuration_request.py} +43 -46
  15. huaweicloudsdkcae/v1/model/create_component_with_configuration_request_body.py +213 -0
  16. huaweicloudsdkcae/v1/model/{create_component_request_body_metadata.py → create_component_with_configuration_request_body_metadata.py} +11 -11
  17. huaweicloudsdkcae/v1/model/{create_component_request_body_spec.py → create_component_with_configuration_request_body_spec.py} +27 -27
  18. huaweicloudsdkcae/v1/model/create_component_with_configuration_response.py +241 -0
  19. huaweicloudsdkcae/v1/model/create_component_with_configuration_response_body_status.py +115 -0
  20. huaweicloudsdkcae/v1/model/create_environment_request_body_metadata.py +3 -3
  21. huaweicloudsdkcae/v1/model/create_notice_rule_item.py +244 -0
  22. huaweicloudsdkcae/v1/model/create_notice_rule_req.py +166 -0
  23. huaweicloudsdkcae/v1/model/create_notice_rule_request.py +168 -0
  24. huaweicloudsdkcae/v1/model/create_notice_rule_resp_item.py +277 -0
  25. huaweicloudsdkcae/v1/model/create_notice_rule_response.py +170 -0
  26. huaweicloudsdkcae/v1/model/create_vpc_egress_request.py +168 -0
  27. huaweicloudsdkcae/v1/model/{list_component_events_response.py → create_vpc_egress_response.py} +35 -39
  28. huaweicloudsdkcae/v1/model/delete_notice_rule_request.py +167 -0
  29. huaweicloudsdkcae/v1/model/delete_notice_rule_response.py +112 -0
  30. huaweicloudsdkcae/v1/model/delete_vpc_egress_request.py +171 -0
  31. huaweicloudsdkcae/v1/model/delete_vpc_egress_response.py +85 -0
  32. huaweicloudsdkcae/v1/model/egress_cidr.py +171 -0
  33. huaweicloudsdkcae/v1/model/environment_item.py +3 -3
  34. huaweicloudsdkcae/v1/model/health_check_configuration_http_get.py +4 -4
  35. huaweicloudsdkcae/v1/model/health_check_configuration_tcp_socket.py +4 -4
  36. huaweicloudsdkcae/v1/model/list_component_configurations_request.py +32 -3
  37. huaweicloudsdkcae/v1/model/list_components_request.py +61 -3
  38. huaweicloudsdkcae/v1/model/list_eip_response_body_spec_egress.py +30 -1
  39. huaweicloudsdkcae/v1/model/list_eip_response_body_spec_ingress.py +30 -1
  40. huaweicloudsdkcae/v1/model/list_notice_rules_request.py +143 -0
  41. huaweicloudsdkcae/v1/model/list_notice_rules_response.py +174 -0
  42. huaweicloudsdkcae/v1/model/list_vpc_egress_request.py +143 -0
  43. huaweicloudsdkcae/v1/model/list_vpc_egress_response.py +162 -0
  44. huaweicloudsdkcae/v1/model/notice_rule_notification.py +171 -0
  45. huaweicloudsdkcae/v1/model/notice_rule_scope.py +201 -0
  46. huaweicloudsdkcae/v1/model/resources_credential.py +144 -0
  47. huaweicloudsdkcae/v1/model/show_notice_rule_request.py +167 -0
  48. huaweicloudsdkcae/v1/model/show_notice_rule_response.py +170 -0
  49. huaweicloudsdkcae/v1/model/trigger_policy.py +201 -0
  50. huaweicloudsdkcae/v1/model/update_component_request_body.py +2 -4
  51. huaweicloudsdkcae/v1/model/update_eip_request_body_spec_egress.py +32 -3
  52. huaweicloudsdkcae/v1/model/update_eip_request_body_spec_ingress.py +32 -3
  53. huaweicloudsdkcae/v1/model/update_notice_rule_item.py +192 -0
  54. huaweicloudsdkcae/v1/model/update_notice_rule_req.py +166 -0
  55. huaweicloudsdkcae/v1/model/update_notice_rule_request.py +192 -0
  56. huaweicloudsdkcae/v1/model/update_notice_rule_response.py +170 -0
  57. huaweicloudsdkcae/v1/model/volume.py +30 -1
  58. huaweicloudsdkcae/v1/model/volume_spec.py +32 -3
  59. huaweicloudsdkcae/v1/model/{component_event_kind_obj.py → vpc_egress_kind_obj.py} +4 -4
  60. huaweicloudsdkcae/v1/model/vpc_egress_request_body.py +161 -0
  61. huaweicloudsdkcae/v1/model/vpc_egress_request_body_spec.py +114 -0
  62. huaweicloudsdkcae/v1/model/vpc_egress_response_body_spec.py +173 -0
  63. huaweicloudsdkcae/v1/region/cae_region.py +12 -4
  64. {huaweicloudsdkcae-3.1.86.dist-info → huaweicloudsdkcae-3.1.132.dist-info}/METADATA +2 -2
  65. {huaweicloudsdkcae-3.1.86.dist-info → huaweicloudsdkcae-3.1.132.dist-info}/RECORD +68 -36
  66. {huaweicloudsdkcae-3.1.86.dist-info → huaweicloudsdkcae-3.1.132.dist-info}/WHEEL +1 -1
  67. huaweicloudsdkcae/v1/model/event_item.py +0 -318
  68. {huaweicloudsdkcae-3.1.86.dist-info → huaweicloudsdkcae-3.1.132.dist-info}/LICENSE +0 -0
  69. {huaweicloudsdkcae-3.1.86.dist-info → huaweicloudsdkcae-3.1.132.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,170 @@
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 UpdateNoticeRuleResponse(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': 'str',
22
+ 'kind': 'str',
23
+ 'spec': 'CreateNoticeRuleRespItem'
24
+ }
25
+
26
+ attribute_map = {
27
+ 'api_version': 'api_version',
28
+ 'kind': 'kind',
29
+ 'spec': 'spec'
30
+ }
31
+
32
+ def __init__(self, api_version=None, kind=None, spec=None):
33
+ """UpdateNoticeRuleResponse
34
+
35
+ The model defined in huaweicloud sdk
36
+
37
+ :param api_version: API版本,固定值“v1”,该值不可修改。
38
+ :type api_version: str
39
+ :param kind: API类型,固定值“NoticeRule”,该值不可修改。
40
+ :type kind: str
41
+ :param spec:
42
+ :type spec: :class:`huaweicloudsdkcae.v1.CreateNoticeRuleRespItem`
43
+ """
44
+
45
+ super(UpdateNoticeRuleResponse, self).__init__()
46
+
47
+ self._api_version = None
48
+ self._kind = None
49
+ self._spec = 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 spec is not None:
57
+ self.spec = spec
58
+
59
+ @property
60
+ def api_version(self):
61
+ """Gets the api_version of this UpdateNoticeRuleResponse.
62
+
63
+ API版本,固定值“v1”,该值不可修改。
64
+
65
+ :return: The api_version of this UpdateNoticeRuleResponse.
66
+ :rtype: str
67
+ """
68
+ return self._api_version
69
+
70
+ @api_version.setter
71
+ def api_version(self, api_version):
72
+ """Sets the api_version of this UpdateNoticeRuleResponse.
73
+
74
+ API版本,固定值“v1”,该值不可修改。
75
+
76
+ :param api_version: The api_version of this UpdateNoticeRuleResponse.
77
+ :type api_version: str
78
+ """
79
+ self._api_version = api_version
80
+
81
+ @property
82
+ def kind(self):
83
+ """Gets the kind of this UpdateNoticeRuleResponse.
84
+
85
+ API类型,固定值“NoticeRule”,该值不可修改。
86
+
87
+ :return: The kind of this UpdateNoticeRuleResponse.
88
+ :rtype: str
89
+ """
90
+ return self._kind
91
+
92
+ @kind.setter
93
+ def kind(self, kind):
94
+ """Sets the kind of this UpdateNoticeRuleResponse.
95
+
96
+ API类型,固定值“NoticeRule”,该值不可修改。
97
+
98
+ :param kind: The kind of this UpdateNoticeRuleResponse.
99
+ :type kind: str
100
+ """
101
+ self._kind = kind
102
+
103
+ @property
104
+ def spec(self):
105
+ """Gets the spec of this UpdateNoticeRuleResponse.
106
+
107
+ :return: The spec of this UpdateNoticeRuleResponse.
108
+ :rtype: :class:`huaweicloudsdkcae.v1.CreateNoticeRuleRespItem`
109
+ """
110
+ return self._spec
111
+
112
+ @spec.setter
113
+ def spec(self, spec):
114
+ """Sets the spec of this UpdateNoticeRuleResponse.
115
+
116
+ :param spec: The spec of this UpdateNoticeRuleResponse.
117
+ :type spec: :class:`huaweicloudsdkcae.v1.CreateNoticeRuleRespItem`
118
+ """
119
+ self._spec = spec
120
+
121
+ def to_dict(self):
122
+ """Returns the model properties as a dict"""
123
+ result = {}
124
+
125
+ for attr, _ in six.iteritems(self.openapi_types):
126
+ value = getattr(self, attr)
127
+ if isinstance(value, list):
128
+ result[attr] = list(map(
129
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
130
+ value
131
+ ))
132
+ elif hasattr(value, "to_dict"):
133
+ result[attr] = value.to_dict()
134
+ elif isinstance(value, dict):
135
+ result[attr] = dict(map(
136
+ lambda item: (item[0], item[1].to_dict())
137
+ if hasattr(item[1], "to_dict") else item,
138
+ value.items()
139
+ ))
140
+ else:
141
+ if attr in self.sensitive_list:
142
+ result[attr] = "****"
143
+ else:
144
+ result[attr] = value
145
+
146
+ return result
147
+
148
+ def to_str(self):
149
+ """Returns the string representation of the model"""
150
+ import simplejson as json
151
+ if six.PY2:
152
+ import sys
153
+ reload(sys)
154
+ sys.setdefaultencoding("utf-8")
155
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
156
+
157
+ def __repr__(self):
158
+ """For `print`"""
159
+ return self.to_str()
160
+
161
+ def __eq__(self, other):
162
+ """Returns true if both objects are equal"""
163
+ if not isinstance(other, UpdateNoticeRuleResponse):
164
+ return False
165
+
166
+ return self.__dict__ == other.__dict__
167
+
168
+ def __ne__(self, other):
169
+ """Returns true if both objects are not equal"""
170
+ return not self == other
@@ -22,6 +22,7 @@ class Volume:
22
22
  'resource_name': 'str',
23
23
  'resource_type': 'str',
24
24
  'resource_sub_type': 'str',
25
+ 'access': 'str',
25
26
  'time': 'str'
26
27
  }
27
28
 
@@ -31,10 +32,11 @@ class Volume:
31
32
  'resource_name': 'resource_name',
32
33
  'resource_type': 'resource_type',
33
34
  'resource_sub_type': 'resource_sub_type',
35
+ 'access': 'access',
34
36
  'time': 'time'
35
37
  }
36
38
 
37
- def __init__(self, id=None, resource_info=None, resource_name=None, resource_type=None, resource_sub_type=None, time=None):
39
+ def __init__(self, id=None, resource_info=None, resource_name=None, resource_type=None, resource_sub_type=None, access=None, time=None):
38
40
  """Volume
39
41
 
40
42
  The model defined in huaweicloud sdk
@@ -49,6 +51,8 @@ class Volume:
49
51
  :type resource_type: str
50
52
  :param resource_sub_type: 存储资源子类型。
51
53
  :type resource_sub_type: str
54
+ :param access: 用户access key。
55
+ :type access: str
52
56
  :param time: 创建时间。
53
57
  :type time: str
54
58
  """
@@ -60,6 +64,7 @@ class Volume:
60
64
  self._resource_name = None
61
65
  self._resource_type = None
62
66
  self._resource_sub_type = None
67
+ self._access = None
63
68
  self._time = None
64
69
  self.discriminator = None
65
70
 
@@ -73,6 +78,8 @@ class Volume:
73
78
  self.resource_type = resource_type
74
79
  if resource_sub_type is not None:
75
80
  self.resource_sub_type = resource_sub_type
81
+ if access is not None:
82
+ self.access = access
76
83
  if time is not None:
77
84
  self.time = time
78
85
 
@@ -186,6 +193,28 @@ class Volume:
186
193
  """
187
194
  self._resource_sub_type = resource_sub_type
188
195
 
196
+ @property
197
+ def access(self):
198
+ """Gets the access of this Volume.
199
+
200
+ 用户access key。
201
+
202
+ :return: The access of this Volume.
203
+ :rtype: str
204
+ """
205
+ return self._access
206
+
207
+ @access.setter
208
+ def access(self, access):
209
+ """Sets the access of this Volume.
210
+
211
+ 用户access key。
212
+
213
+ :param access: The access of this Volume.
214
+ :type access: str
215
+ """
216
+ self._access = access
217
+
189
218
  @property
190
219
  def time(self):
191
220
  """Gets the time of this Volume.
@@ -19,16 +19,18 @@ class VolumeSpec:
19
19
  openapi_types = {
20
20
  'resource_type': 'str',
21
21
  'resource_sub_type': 'str',
22
- 'resources': 'list[str]'
22
+ 'resources': 'list[str]',
23
+ 'resources_credentials': 'list[ResourcesCredential]'
23
24
  }
24
25
 
25
26
  attribute_map = {
26
27
  'resource_type': 'resource_type',
27
28
  'resource_sub_type': 'resource_sub_type',
28
- 'resources': 'resources'
29
+ 'resources': 'resources',
30
+ 'resources_credentials': 'resources_credentials'
29
31
  }
30
32
 
31
- def __init__(self, resource_type=None, resource_sub_type=None, resources=None):
33
+ def __init__(self, resource_type=None, resource_sub_type=None, resources=None, resources_credentials=None):
32
34
  """VolumeSpec
33
35
 
34
36
  The model defined in huaweicloud sdk
@@ -39,6 +41,8 @@ class VolumeSpec:
39
41
  :type resource_sub_type: str
40
42
  :param resources: 云存储名称。
41
43
  :type resources: list[str]
44
+ :param resources_credentials: 云存储和授权凭证,获取环境列表接口响应中env_category字段为v2时需添加该字段的值。
45
+ :type resources_credentials: list[:class:`huaweicloudsdkcae.v1.ResourcesCredential`]
42
46
  """
43
47
 
44
48
 
@@ -46,11 +50,14 @@ class VolumeSpec:
46
50
  self._resource_type = None
47
51
  self._resource_sub_type = None
48
52
  self._resources = None
53
+ self._resources_credentials = None
49
54
  self.discriminator = None
50
55
 
51
56
  self.resource_type = resource_type
52
57
  self.resource_sub_type = resource_sub_type
53
58
  self.resources = resources
59
+ if resources_credentials is not None:
60
+ self.resources_credentials = resources_credentials
54
61
 
55
62
  @property
56
63
  def resource_type(self):
@@ -118,6 +125,28 @@ class VolumeSpec:
118
125
  """
119
126
  self._resources = resources
120
127
 
128
+ @property
129
+ def resources_credentials(self):
130
+ """Gets the resources_credentials of this VolumeSpec.
131
+
132
+ 云存储和授权凭证,获取环境列表接口响应中env_category字段为v2时需添加该字段的值。
133
+
134
+ :return: The resources_credentials of this VolumeSpec.
135
+ :rtype: list[:class:`huaweicloudsdkcae.v1.ResourcesCredential`]
136
+ """
137
+ return self._resources_credentials
138
+
139
+ @resources_credentials.setter
140
+ def resources_credentials(self, resources_credentials):
141
+ """Sets the resources_credentials of this VolumeSpec.
142
+
143
+ 云存储和授权凭证,获取环境列表接口响应中env_category字段为v2时需添加该字段的值。
144
+
145
+ :param resources_credentials: The resources_credentials of this VolumeSpec.
146
+ :type resources_credentials: list[:class:`huaweicloudsdkcae.v1.ResourcesCredential`]
147
+ """
148
+ self._resources_credentials = resources_credentials
149
+
121
150
  def to_dict(self):
122
151
  """Returns the model properties as a dict"""
123
152
  result = {}
@@ -5,11 +5,11 @@ import six
5
5
  from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
6
 
7
7
 
8
- class ComponentEventKindObj:
8
+ class VpcEgressKindObj:
9
9
  """
10
10
  allowed enum values
11
11
  """
12
- COMPONENTEVENT = "ComponentEvent"
12
+ VPCEGRESS = "VpcEgress"
13
13
  """
14
14
  Attributes:
15
15
  openapi_types (dict): The key is attribute name
@@ -26,7 +26,7 @@ class ComponentEventKindObj:
26
26
  }
27
27
 
28
28
  def __init__(self):
29
- """ComponentEventKindObj
29
+ """VpcEgressKindObj
30
30
 
31
31
  The model defined in huaweicloud sdk
32
32
 
@@ -77,7 +77,7 @@ class ComponentEventKindObj:
77
77
 
78
78
  def __eq__(self, other):
79
79
  """Returns true if both objects are equal"""
80
- if not isinstance(other, ComponentEventKindObj):
80
+ if not isinstance(other, VpcEgressKindObj):
81
81
  return False
82
82
 
83
83
  return self.__dict__ == other.__dict__
@@ -0,0 +1,161 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class VpcEgressRequestBody:
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
+ 'api_version': 'ApiVersionObj',
21
+ 'kind': 'VpcEgressKindObj',
22
+ 'spec': 'VpcEgressRequestBodySpec'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'api_version': 'api_version',
27
+ 'kind': 'kind',
28
+ 'spec': 'spec'
29
+ }
30
+
31
+ def __init__(self, api_version=None, kind=None, spec=None):
32
+ """VpcEgressRequestBody
33
+
34
+ The model defined in huaweicloud sdk
35
+
36
+ :param api_version:
37
+ :type api_version: :class:`huaweicloudsdkcae.v1.ApiVersionObj`
38
+ :param kind:
39
+ :type kind: :class:`huaweicloudsdkcae.v1.VpcEgressKindObj`
40
+ :param spec:
41
+ :type spec: :class:`huaweicloudsdkcae.v1.VpcEgressRequestBodySpec`
42
+ """
43
+
44
+
45
+
46
+ self._api_version = None
47
+ self._kind = None
48
+ self._spec = None
49
+ self.discriminator = None
50
+
51
+ if api_version is not None:
52
+ self.api_version = api_version
53
+ if kind is not None:
54
+ self.kind = kind
55
+ if spec is not None:
56
+ self.spec = spec
57
+
58
+ @property
59
+ def api_version(self):
60
+ """Gets the api_version of this VpcEgressRequestBody.
61
+
62
+ :return: The api_version of this VpcEgressRequestBody.
63
+ :rtype: :class:`huaweicloudsdkcae.v1.ApiVersionObj`
64
+ """
65
+ return self._api_version
66
+
67
+ @api_version.setter
68
+ def api_version(self, api_version):
69
+ """Sets the api_version of this VpcEgressRequestBody.
70
+
71
+ :param api_version: The api_version of this VpcEgressRequestBody.
72
+ :type api_version: :class:`huaweicloudsdkcae.v1.ApiVersionObj`
73
+ """
74
+ self._api_version = api_version
75
+
76
+ @property
77
+ def kind(self):
78
+ """Gets the kind of this VpcEgressRequestBody.
79
+
80
+ :return: The kind of this VpcEgressRequestBody.
81
+ :rtype: :class:`huaweicloudsdkcae.v1.VpcEgressKindObj`
82
+ """
83
+ return self._kind
84
+
85
+ @kind.setter
86
+ def kind(self, kind):
87
+ """Sets the kind of this VpcEgressRequestBody.
88
+
89
+ :param kind: The kind of this VpcEgressRequestBody.
90
+ :type kind: :class:`huaweicloudsdkcae.v1.VpcEgressKindObj`
91
+ """
92
+ self._kind = kind
93
+
94
+ @property
95
+ def spec(self):
96
+ """Gets the spec of this VpcEgressRequestBody.
97
+
98
+ :return: The spec of this VpcEgressRequestBody.
99
+ :rtype: :class:`huaweicloudsdkcae.v1.VpcEgressRequestBodySpec`
100
+ """
101
+ return self._spec
102
+
103
+ @spec.setter
104
+ def spec(self, spec):
105
+ """Sets the spec of this VpcEgressRequestBody.
106
+
107
+ :param spec: The spec of this VpcEgressRequestBody.
108
+ :type spec: :class:`huaweicloudsdkcae.v1.VpcEgressRequestBodySpec`
109
+ """
110
+ self._spec = spec
111
+
112
+ def to_dict(self):
113
+ """Returns the model properties as a dict"""
114
+ result = {}
115
+
116
+ for attr, _ in six.iteritems(self.openapi_types):
117
+ value = getattr(self, attr)
118
+ if isinstance(value, list):
119
+ result[attr] = list(map(
120
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
121
+ value
122
+ ))
123
+ elif hasattr(value, "to_dict"):
124
+ result[attr] = value.to_dict()
125
+ elif isinstance(value, dict):
126
+ result[attr] = dict(map(
127
+ lambda item: (item[0], item[1].to_dict())
128
+ if hasattr(item[1], "to_dict") else item,
129
+ value.items()
130
+ ))
131
+ else:
132
+ if attr in self.sensitive_list:
133
+ result[attr] = "****"
134
+ else:
135
+ result[attr] = value
136
+
137
+ return result
138
+
139
+ def to_str(self):
140
+ """Returns the string representation of the model"""
141
+ import simplejson as json
142
+ if six.PY2:
143
+ import sys
144
+ reload(sys)
145
+ sys.setdefaultencoding("utf-8")
146
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
147
+
148
+ def __repr__(self):
149
+ """For `print`"""
150
+ return self.to_str()
151
+
152
+ def __eq__(self, other):
153
+ """Returns true if both objects are equal"""
154
+ if not isinstance(other, VpcEgressRequestBody):
155
+ return False
156
+
157
+ return self.__dict__ == other.__dict__
158
+
159
+ def __ne__(self, other):
160
+ """Returns true if both objects are not equal"""
161
+ return not self == other
@@ -0,0 +1,114 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class VpcEgressRequestBodySpec:
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
+ 'cidrs': 'list[EgressCidr]'
21
+ }
22
+
23
+ attribute_map = {
24
+ 'cidrs': 'cidrs'
25
+ }
26
+
27
+ def __init__(self, cidrs=None):
28
+ """VpcEgressRequestBodySpec
29
+
30
+ The model defined in huaweicloud sdk
31
+
32
+ :param cidrs: CAE环境访问VPC配置。
33
+ :type cidrs: list[:class:`huaweicloudsdkcae.v1.EgressCidr`]
34
+ """
35
+
36
+
37
+
38
+ self._cidrs = None
39
+ self.discriminator = None
40
+
41
+ self.cidrs = cidrs
42
+
43
+ @property
44
+ def cidrs(self):
45
+ """Gets the cidrs of this VpcEgressRequestBodySpec.
46
+
47
+ CAE环境访问VPC配置。
48
+
49
+ :return: The cidrs of this VpcEgressRequestBodySpec.
50
+ :rtype: list[:class:`huaweicloudsdkcae.v1.EgressCidr`]
51
+ """
52
+ return self._cidrs
53
+
54
+ @cidrs.setter
55
+ def cidrs(self, cidrs):
56
+ """Sets the cidrs of this VpcEgressRequestBodySpec.
57
+
58
+ CAE环境访问VPC配置。
59
+
60
+ :param cidrs: The cidrs of this VpcEgressRequestBodySpec.
61
+ :type cidrs: list[:class:`huaweicloudsdkcae.v1.EgressCidr`]
62
+ """
63
+ self._cidrs = cidrs
64
+
65
+ def to_dict(self):
66
+ """Returns the model properties as a dict"""
67
+ result = {}
68
+
69
+ for attr, _ in six.iteritems(self.openapi_types):
70
+ value = getattr(self, attr)
71
+ if isinstance(value, list):
72
+ result[attr] = list(map(
73
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
74
+ value
75
+ ))
76
+ elif hasattr(value, "to_dict"):
77
+ result[attr] = value.to_dict()
78
+ elif isinstance(value, dict):
79
+ result[attr] = dict(map(
80
+ lambda item: (item[0], item[1].to_dict())
81
+ if hasattr(item[1], "to_dict") else item,
82
+ value.items()
83
+ ))
84
+ else:
85
+ if attr in self.sensitive_list:
86
+ result[attr] = "****"
87
+ else:
88
+ result[attr] = value
89
+
90
+ return result
91
+
92
+ def to_str(self):
93
+ """Returns the string representation of the model"""
94
+ import simplejson as json
95
+ if six.PY2:
96
+ import sys
97
+ reload(sys)
98
+ sys.setdefaultencoding("utf-8")
99
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
100
+
101
+ def __repr__(self):
102
+ """For `print`"""
103
+ return self.to_str()
104
+
105
+ def __eq__(self, other):
106
+ """Returns true if both objects are equal"""
107
+ if not isinstance(other, VpcEgressRequestBodySpec):
108
+ return False
109
+
110
+ return self.__dict__ == other.__dict__
111
+
112
+ def __ne__(self, other):
113
+ """Returns true if both objects are not equal"""
114
+ return not self == other