huaweicloudsdkcae 3.1.85__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 +67 -9
  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.85.dist-info → huaweicloudsdkcae-3.1.132.dist-info}/METADATA +2 -2
  65. {huaweicloudsdkcae-3.1.85.dist-info → huaweicloudsdkcae-3.1.132.dist-info}/RECORD +68 -36
  66. {huaweicloudsdkcae-3.1.85.dist-info → huaweicloudsdkcae-3.1.132.dist-info}/WHEEL +1 -1
  67. huaweicloudsdkcae/v1/model/event_item.py +0 -318
  68. {huaweicloudsdkcae-3.1.85.dist-info → huaweicloudsdkcae-3.1.132.dist-info}/LICENSE +0 -0
  69. {huaweicloudsdkcae-3.1.85.dist-info → huaweicloudsdkcae-3.1.132.dist-info}/top_level.txt +0 -0
@@ -17,29 +17,36 @@ class UpdateEipRequestBodySpecEgress:
17
17
  sensitive_list = []
18
18
 
19
19
  openapi_types = {
20
- 'bandwidth_size': 'int'
20
+ 'bandwidth_size': 'int',
21
+ 'enabled': 'bool'
21
22
  }
22
23
 
23
24
  attribute_map = {
24
- 'bandwidth_size': 'bandwidth_size'
25
+ 'bandwidth_size': 'bandwidth_size',
26
+ 'enabled': 'enabled'
25
27
  }
26
28
 
27
- def __init__(self, bandwidth_size=None):
29
+ def __init__(self, bandwidth_size=None, enabled=None):
28
30
  """UpdateEipRequestBodySpecEgress
29
31
 
30
32
  The model defined in huaweicloud sdk
31
33
 
32
34
  :param bandwidth_size: 出网IP带宽。
33
35
  :type bandwidth_size: int
36
+ :param enabled: 是否关闭出网IP。
37
+ :type enabled: bool
34
38
  """
35
39
 
36
40
 
37
41
 
38
42
  self._bandwidth_size = None
43
+ self._enabled = None
39
44
  self.discriminator = None
40
45
 
41
46
  if bandwidth_size is not None:
42
47
  self.bandwidth_size = bandwidth_size
48
+ if enabled is not None:
49
+ self.enabled = enabled
43
50
 
44
51
  @property
45
52
  def bandwidth_size(self):
@@ -63,6 +70,28 @@ class UpdateEipRequestBodySpecEgress:
63
70
  """
64
71
  self._bandwidth_size = bandwidth_size
65
72
 
73
+ @property
74
+ def enabled(self):
75
+ """Gets the enabled of this UpdateEipRequestBodySpecEgress.
76
+
77
+ 是否关闭出网IP。
78
+
79
+ :return: The enabled of this UpdateEipRequestBodySpecEgress.
80
+ :rtype: bool
81
+ """
82
+ return self._enabled
83
+
84
+ @enabled.setter
85
+ def enabled(self, enabled):
86
+ """Sets the enabled of this UpdateEipRequestBodySpecEgress.
87
+
88
+ 是否关闭出网IP。
89
+
90
+ :param enabled: The enabled of this UpdateEipRequestBodySpecEgress.
91
+ :type enabled: bool
92
+ """
93
+ self._enabled = enabled
94
+
66
95
  def to_dict(self):
67
96
  """Returns the model properties as a dict"""
68
97
  result = {}
@@ -17,29 +17,36 @@ class UpdateEipRequestBodySpecIngress:
17
17
  sensitive_list = []
18
18
 
19
19
  openapi_types = {
20
- 'bandwidth_size': 'int'
20
+ 'bandwidth_size': 'int',
21
+ 'enabled': 'bool'
21
22
  }
22
23
 
23
24
  attribute_map = {
24
- 'bandwidth_size': 'bandwidth_size'
25
+ 'bandwidth_size': 'bandwidth_size',
26
+ 'enabled': 'enabled'
25
27
  }
26
28
 
27
- def __init__(self, bandwidth_size=None):
29
+ def __init__(self, bandwidth_size=None, enabled=None):
28
30
  """UpdateEipRequestBodySpecIngress
29
31
 
30
32
  The model defined in huaweicloud sdk
31
33
 
32
34
  :param bandwidth_size: 入网IP带宽。
33
35
  :type bandwidth_size: int
36
+ :param enabled: 是否关闭入网IP。
37
+ :type enabled: bool
34
38
  """
35
39
 
36
40
 
37
41
 
38
42
  self._bandwidth_size = None
43
+ self._enabled = None
39
44
  self.discriminator = None
40
45
 
41
46
  if bandwidth_size is not None:
42
47
  self.bandwidth_size = bandwidth_size
48
+ if enabled is not None:
49
+ self.enabled = enabled
43
50
 
44
51
  @property
45
52
  def bandwidth_size(self):
@@ -63,6 +70,28 @@ class UpdateEipRequestBodySpecIngress:
63
70
  """
64
71
  self._bandwidth_size = bandwidth_size
65
72
 
73
+ @property
74
+ def enabled(self):
75
+ """Gets the enabled of this UpdateEipRequestBodySpecIngress.
76
+
77
+ 是否关闭入网IP。
78
+
79
+ :return: The enabled of this UpdateEipRequestBodySpecIngress.
80
+ :rtype: bool
81
+ """
82
+ return self._enabled
83
+
84
+ @enabled.setter
85
+ def enabled(self, enabled):
86
+ """Sets the enabled of this UpdateEipRequestBodySpecIngress.
87
+
88
+ 是否关闭入网IP。
89
+
90
+ :param enabled: The enabled of this UpdateEipRequestBodySpecIngress.
91
+ :type enabled: bool
92
+ """
93
+ self._enabled = enabled
94
+
66
95
  def to_dict(self):
67
96
  """Returns the model properties as a dict"""
68
97
  result = {}
@@ -0,0 +1,192 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class UpdateNoticeRuleItem:
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
+ 'event_name': 'str',
21
+ 'scope': 'NoticeRuleScope',
22
+ 'trigger_policy': 'TriggerPolicy',
23
+ 'enable': 'bool'
24
+ }
25
+
26
+ attribute_map = {
27
+ 'event_name': 'event_name',
28
+ 'scope': 'scope',
29
+ 'trigger_policy': 'trigger_policy',
30
+ 'enable': 'enable'
31
+ }
32
+
33
+ def __init__(self, event_name=None, scope=None, trigger_policy=None, enable=None):
34
+ """UpdateNoticeRuleItem
35
+
36
+ The model defined in huaweicloud sdk
37
+
38
+ :param event_name: 触发事件名称,支持实例调度成功、实例调度失败、健康检查成功、健康检查失败、镜像拉取成功、镜像拉取失败、容器启动成功、容器启动失败、卷挂载成功、卷挂载失败。
39
+ :type event_name: str
40
+ :param scope:
41
+ :type scope: :class:`huaweicloudsdkcae.v1.NoticeRuleScope`
42
+ :param trigger_policy:
43
+ :type trigger_policy: :class:`huaweicloudsdkcae.v1.TriggerPolicy`
44
+ :param enable: 是否启用。
45
+ :type enable: bool
46
+ """
47
+
48
+
49
+
50
+ self._event_name = None
51
+ self._scope = None
52
+ self._trigger_policy = None
53
+ self._enable = None
54
+ self.discriminator = None
55
+
56
+ if event_name is not None:
57
+ self.event_name = event_name
58
+ self.scope = scope
59
+ self.trigger_policy = trigger_policy
60
+ if enable is not None:
61
+ self.enable = enable
62
+
63
+ @property
64
+ def event_name(self):
65
+ """Gets the event_name of this UpdateNoticeRuleItem.
66
+
67
+ 触发事件名称,支持实例调度成功、实例调度失败、健康检查成功、健康检查失败、镜像拉取成功、镜像拉取失败、容器启动成功、容器启动失败、卷挂载成功、卷挂载失败。
68
+
69
+ :return: The event_name of this UpdateNoticeRuleItem.
70
+ :rtype: str
71
+ """
72
+ return self._event_name
73
+
74
+ @event_name.setter
75
+ def event_name(self, event_name):
76
+ """Sets the event_name of this UpdateNoticeRuleItem.
77
+
78
+ 触发事件名称,支持实例调度成功、实例调度失败、健康检查成功、健康检查失败、镜像拉取成功、镜像拉取失败、容器启动成功、容器启动失败、卷挂载成功、卷挂载失败。
79
+
80
+ :param event_name: The event_name of this UpdateNoticeRuleItem.
81
+ :type event_name: str
82
+ """
83
+ self._event_name = event_name
84
+
85
+ @property
86
+ def scope(self):
87
+ """Gets the scope of this UpdateNoticeRuleItem.
88
+
89
+ :return: The scope of this UpdateNoticeRuleItem.
90
+ :rtype: :class:`huaweicloudsdkcae.v1.NoticeRuleScope`
91
+ """
92
+ return self._scope
93
+
94
+ @scope.setter
95
+ def scope(self, scope):
96
+ """Sets the scope of this UpdateNoticeRuleItem.
97
+
98
+ :param scope: The scope of this UpdateNoticeRuleItem.
99
+ :type scope: :class:`huaweicloudsdkcae.v1.NoticeRuleScope`
100
+ """
101
+ self._scope = scope
102
+
103
+ @property
104
+ def trigger_policy(self):
105
+ """Gets the trigger_policy of this UpdateNoticeRuleItem.
106
+
107
+ :return: The trigger_policy of this UpdateNoticeRuleItem.
108
+ :rtype: :class:`huaweicloudsdkcae.v1.TriggerPolicy`
109
+ """
110
+ return self._trigger_policy
111
+
112
+ @trigger_policy.setter
113
+ def trigger_policy(self, trigger_policy):
114
+ """Sets the trigger_policy of this UpdateNoticeRuleItem.
115
+
116
+ :param trigger_policy: The trigger_policy of this UpdateNoticeRuleItem.
117
+ :type trigger_policy: :class:`huaweicloudsdkcae.v1.TriggerPolicy`
118
+ """
119
+ self._trigger_policy = trigger_policy
120
+
121
+ @property
122
+ def enable(self):
123
+ """Gets the enable of this UpdateNoticeRuleItem.
124
+
125
+ 是否启用。
126
+
127
+ :return: The enable of this UpdateNoticeRuleItem.
128
+ :rtype: bool
129
+ """
130
+ return self._enable
131
+
132
+ @enable.setter
133
+ def enable(self, enable):
134
+ """Sets the enable of this UpdateNoticeRuleItem.
135
+
136
+ 是否启用。
137
+
138
+ :param enable: The enable of this UpdateNoticeRuleItem.
139
+ :type enable: bool
140
+ """
141
+ self._enable = enable
142
+
143
+ def to_dict(self):
144
+ """Returns the model properties as a dict"""
145
+ result = {}
146
+
147
+ for attr, _ in six.iteritems(self.openapi_types):
148
+ value = getattr(self, attr)
149
+ if isinstance(value, list):
150
+ result[attr] = list(map(
151
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
152
+ value
153
+ ))
154
+ elif hasattr(value, "to_dict"):
155
+ result[attr] = value.to_dict()
156
+ elif isinstance(value, dict):
157
+ result[attr] = dict(map(
158
+ lambda item: (item[0], item[1].to_dict())
159
+ if hasattr(item[1], "to_dict") else item,
160
+ value.items()
161
+ ))
162
+ else:
163
+ if attr in self.sensitive_list:
164
+ result[attr] = "****"
165
+ else:
166
+ result[attr] = value
167
+
168
+ return result
169
+
170
+ def to_str(self):
171
+ """Returns the string representation of the model"""
172
+ import simplejson as json
173
+ if six.PY2:
174
+ import sys
175
+ reload(sys)
176
+ sys.setdefaultencoding("utf-8")
177
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
178
+
179
+ def __repr__(self):
180
+ """For `print`"""
181
+ return self.to_str()
182
+
183
+ def __eq__(self, other):
184
+ """Returns true if both objects are equal"""
185
+ if not isinstance(other, UpdateNoticeRuleItem):
186
+ return False
187
+
188
+ return self.__dict__ == other.__dict__
189
+
190
+ def __ne__(self, other):
191
+ """Returns true if both objects are not equal"""
192
+ return not self == other
@@ -0,0 +1,166 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class UpdateNoticeRuleReq:
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': 'str',
21
+ 'kind': 'str',
22
+ 'spec': 'UpdateNoticeRuleItem'
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
+ """UpdateNoticeRuleReq
33
+
34
+ The model defined in huaweicloud sdk
35
+
36
+ :param api_version: API版本,固定值“v1”,该值不可修改。
37
+ :type api_version: str
38
+ :param kind: API类型,固定值“NoticeRule”,该值不可修改。
39
+ :type kind: str
40
+ :param spec:
41
+ :type spec: :class:`huaweicloudsdkcae.v1.UpdateNoticeRuleItem`
42
+ """
43
+
44
+
45
+
46
+ self._api_version = None
47
+ self._kind = None
48
+ self._spec = None
49
+ self.discriminator = None
50
+
51
+ self.api_version = api_version
52
+ self.kind = kind
53
+ self.spec = spec
54
+
55
+ @property
56
+ def api_version(self):
57
+ """Gets the api_version of this UpdateNoticeRuleReq.
58
+
59
+ API版本,固定值“v1”,该值不可修改。
60
+
61
+ :return: The api_version of this UpdateNoticeRuleReq.
62
+ :rtype: str
63
+ """
64
+ return self._api_version
65
+
66
+ @api_version.setter
67
+ def api_version(self, api_version):
68
+ """Sets the api_version of this UpdateNoticeRuleReq.
69
+
70
+ API版本,固定值“v1”,该值不可修改。
71
+
72
+ :param api_version: The api_version of this UpdateNoticeRuleReq.
73
+ :type api_version: str
74
+ """
75
+ self._api_version = api_version
76
+
77
+ @property
78
+ def kind(self):
79
+ """Gets the kind of this UpdateNoticeRuleReq.
80
+
81
+ API类型,固定值“NoticeRule”,该值不可修改。
82
+
83
+ :return: The kind of this UpdateNoticeRuleReq.
84
+ :rtype: str
85
+ """
86
+ return self._kind
87
+
88
+ @kind.setter
89
+ def kind(self, kind):
90
+ """Sets the kind of this UpdateNoticeRuleReq.
91
+
92
+ API类型,固定值“NoticeRule”,该值不可修改。
93
+
94
+ :param kind: The kind of this UpdateNoticeRuleReq.
95
+ :type kind: str
96
+ """
97
+ self._kind = kind
98
+
99
+ @property
100
+ def spec(self):
101
+ """Gets the spec of this UpdateNoticeRuleReq.
102
+
103
+ :return: The spec of this UpdateNoticeRuleReq.
104
+ :rtype: :class:`huaweicloudsdkcae.v1.UpdateNoticeRuleItem`
105
+ """
106
+ return self._spec
107
+
108
+ @spec.setter
109
+ def spec(self, spec):
110
+ """Sets the spec of this UpdateNoticeRuleReq.
111
+
112
+ :param spec: The spec of this UpdateNoticeRuleReq.
113
+ :type spec: :class:`huaweicloudsdkcae.v1.UpdateNoticeRuleItem`
114
+ """
115
+ self._spec = spec
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, UpdateNoticeRuleReq):
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
@@ -0,0 +1,192 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class UpdateNoticeRuleRequest:
9
+
10
+ """
11
+ Attributes:
12
+ openapi_types (dict): The key is attribute name
13
+ and the value is attribute type.
14
+ attribute_map (dict): The key is attribute name
15
+ and the value is json key in definition.
16
+ """
17
+ sensitive_list = []
18
+
19
+ openapi_types = {
20
+ 'x_enterprise_project_id': 'str',
21
+ 'x_environment_id': 'str',
22
+ 'rule_id': 'str',
23
+ 'body': 'UpdateNoticeRuleReq'
24
+ }
25
+
26
+ attribute_map = {
27
+ 'x_enterprise_project_id': 'X-Enterprise-Project-ID',
28
+ 'x_environment_id': 'X-Environment-ID',
29
+ 'rule_id': 'rule_id',
30
+ 'body': 'body'
31
+ }
32
+
33
+ def __init__(self, x_enterprise_project_id=None, x_environment_id=None, rule_id=None, body=None):
34
+ """UpdateNoticeRuleRequest
35
+
36
+ The model defined in huaweicloud sdk
37
+
38
+ :param x_enterprise_project_id: 企业项目ID。 - 创建环境时,环境会绑定企业项目ID。 - 最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。 - 该字段不传(或传为字符串“0”)时,则查询默认企业项目下的资源。 > 关于企业项目ID的获取及企业项目特性的详细信息,请参见《[企业管理服务用户指南](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0126101490.html)》。
39
+ :type x_enterprise_project_id: str
40
+ :param x_environment_id: 环境ID。 - 获取环境ID,通过《[云应用引擎API参考](https://support.huaweicloud.com/api-cae/ListEnvironments.html)》的“获取环境列表”章节获取环境信息。 - 请求响应成功后在响应体的items数组中的一个元素即为一个环境的信息,其中id字段即是环境ID。
41
+ :type x_environment_id: str
42
+ :param rule_id:
43
+ :type rule_id: str
44
+ :param body: Body of the UpdateNoticeRuleRequest
45
+ :type body: :class:`huaweicloudsdkcae.v1.UpdateNoticeRuleReq`
46
+ """
47
+
48
+
49
+
50
+ self._x_enterprise_project_id = None
51
+ self._x_environment_id = None
52
+ self._rule_id = None
53
+ self._body = None
54
+ self.discriminator = None
55
+
56
+ if x_enterprise_project_id is not None:
57
+ self.x_enterprise_project_id = x_enterprise_project_id
58
+ self.x_environment_id = x_environment_id
59
+ self.rule_id = rule_id
60
+ if body is not None:
61
+ self.body = body
62
+
63
+ @property
64
+ def x_enterprise_project_id(self):
65
+ """Gets the x_enterprise_project_id of this UpdateNoticeRuleRequest.
66
+
67
+ 企业项目ID。 - 创建环境时,环境会绑定企业项目ID。 - 最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。 - 该字段不传(或传为字符串“0”)时,则查询默认企业项目下的资源。 > 关于企业项目ID的获取及企业项目特性的详细信息,请参见《[企业管理服务用户指南](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0126101490.html)》。
68
+
69
+ :return: The x_enterprise_project_id of this UpdateNoticeRuleRequest.
70
+ :rtype: str
71
+ """
72
+ return self._x_enterprise_project_id
73
+
74
+ @x_enterprise_project_id.setter
75
+ def x_enterprise_project_id(self, x_enterprise_project_id):
76
+ """Sets the x_enterprise_project_id of this UpdateNoticeRuleRequest.
77
+
78
+ 企业项目ID。 - 创建环境时,环境会绑定企业项目ID。 - 最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。 - 该字段不传(或传为字符串“0”)时,则查询默认企业项目下的资源。 > 关于企业项目ID的获取及企业项目特性的详细信息,请参见《[企业管理服务用户指南](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0126101490.html)》。
79
+
80
+ :param x_enterprise_project_id: The x_enterprise_project_id of this UpdateNoticeRuleRequest.
81
+ :type x_enterprise_project_id: str
82
+ """
83
+ self._x_enterprise_project_id = x_enterprise_project_id
84
+
85
+ @property
86
+ def x_environment_id(self):
87
+ """Gets the x_environment_id of this UpdateNoticeRuleRequest.
88
+
89
+ 环境ID。 - 获取环境ID,通过《[云应用引擎API参考](https://support.huaweicloud.com/api-cae/ListEnvironments.html)》的“获取环境列表”章节获取环境信息。 - 请求响应成功后在响应体的items数组中的一个元素即为一个环境的信息,其中id字段即是环境ID。
90
+
91
+ :return: The x_environment_id of this UpdateNoticeRuleRequest.
92
+ :rtype: str
93
+ """
94
+ return self._x_environment_id
95
+
96
+ @x_environment_id.setter
97
+ def x_environment_id(self, x_environment_id):
98
+ """Sets the x_environment_id of this UpdateNoticeRuleRequest.
99
+
100
+ 环境ID。 - 获取环境ID,通过《[云应用引擎API参考](https://support.huaweicloud.com/api-cae/ListEnvironments.html)》的“获取环境列表”章节获取环境信息。 - 请求响应成功后在响应体的items数组中的一个元素即为一个环境的信息,其中id字段即是环境ID。
101
+
102
+ :param x_environment_id: The x_environment_id of this UpdateNoticeRuleRequest.
103
+ :type x_environment_id: str
104
+ """
105
+ self._x_environment_id = x_environment_id
106
+
107
+ @property
108
+ def rule_id(self):
109
+ """Gets the rule_id of this UpdateNoticeRuleRequest.
110
+
111
+ :return: The rule_id of this UpdateNoticeRuleRequest.
112
+ :rtype: str
113
+ """
114
+ return self._rule_id
115
+
116
+ @rule_id.setter
117
+ def rule_id(self, rule_id):
118
+ """Sets the rule_id of this UpdateNoticeRuleRequest.
119
+
120
+ :param rule_id: The rule_id of this UpdateNoticeRuleRequest.
121
+ :type rule_id: str
122
+ """
123
+ self._rule_id = rule_id
124
+
125
+ @property
126
+ def body(self):
127
+ """Gets the body of this UpdateNoticeRuleRequest.
128
+
129
+ :return: The body of this UpdateNoticeRuleRequest.
130
+ :rtype: :class:`huaweicloudsdkcae.v1.UpdateNoticeRuleReq`
131
+ """
132
+ return self._body
133
+
134
+ @body.setter
135
+ def body(self, body):
136
+ """Sets the body of this UpdateNoticeRuleRequest.
137
+
138
+ :param body: The body of this UpdateNoticeRuleRequest.
139
+ :type body: :class:`huaweicloudsdkcae.v1.UpdateNoticeRuleReq`
140
+ """
141
+ self._body = body
142
+
143
+ def to_dict(self):
144
+ """Returns the model properties as a dict"""
145
+ result = {}
146
+
147
+ for attr, _ in six.iteritems(self.openapi_types):
148
+ value = getattr(self, attr)
149
+ if isinstance(value, list):
150
+ result[attr] = list(map(
151
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
152
+ value
153
+ ))
154
+ elif hasattr(value, "to_dict"):
155
+ result[attr] = value.to_dict()
156
+ elif isinstance(value, dict):
157
+ result[attr] = dict(map(
158
+ lambda item: (item[0], item[1].to_dict())
159
+ if hasattr(item[1], "to_dict") else item,
160
+ value.items()
161
+ ))
162
+ else:
163
+ if attr in self.sensitive_list:
164
+ result[attr] = "****"
165
+ else:
166
+ result[attr] = value
167
+
168
+ return result
169
+
170
+ def to_str(self):
171
+ """Returns the string representation of the model"""
172
+ import simplejson as json
173
+ if six.PY2:
174
+ import sys
175
+ reload(sys)
176
+ sys.setdefaultencoding("utf-8")
177
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
178
+
179
+ def __repr__(self):
180
+ """For `print`"""
181
+ return self.to_str()
182
+
183
+ def __eq__(self, other):
184
+ """Returns true if both objects are equal"""
185
+ if not isinstance(other, UpdateNoticeRuleRequest):
186
+ return False
187
+
188
+ return self.__dict__ == other.__dict__
189
+
190
+ def __ne__(self, other):
191
+ """Returns true if both objects are not equal"""
192
+ return not self == other