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,112 @@
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 DeleteNoticeRuleResponse(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
+ 'body': 'str'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'body': 'body'
26
+ }
27
+
28
+ def __init__(self, body=None):
29
+ """DeleteNoticeRuleResponse
30
+
31
+ The model defined in huaweicloud sdk
32
+
33
+ :param body:
34
+ :type body: str
35
+ """
36
+
37
+ super(DeleteNoticeRuleResponse, self).__init__()
38
+
39
+ self._body = None
40
+ self.discriminator = None
41
+
42
+ if body is not None:
43
+ self.body = body
44
+
45
+ @property
46
+ def body(self):
47
+ """Gets the body of this DeleteNoticeRuleResponse.
48
+
49
+ :return: The body of this DeleteNoticeRuleResponse.
50
+ :rtype: str
51
+ """
52
+ return self._body
53
+
54
+ @body.setter
55
+ def body(self, body):
56
+ """Sets the body of this DeleteNoticeRuleResponse.
57
+
58
+ :param body: The body of this DeleteNoticeRuleResponse.
59
+ :type body: str
60
+ """
61
+ self._body = body
62
+
63
+ def to_dict(self):
64
+ """Returns the model properties as a dict"""
65
+ result = {}
66
+
67
+ for attr, _ in six.iteritems(self.openapi_types):
68
+ value = getattr(self, attr)
69
+ if isinstance(value, list):
70
+ result[attr] = list(map(
71
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
72
+ value
73
+ ))
74
+ elif hasattr(value, "to_dict"):
75
+ result[attr] = value.to_dict()
76
+ elif isinstance(value, dict):
77
+ result[attr] = dict(map(
78
+ lambda item: (item[0], item[1].to_dict())
79
+ if hasattr(item[1], "to_dict") else item,
80
+ value.items()
81
+ ))
82
+ else:
83
+ if attr in self.sensitive_list:
84
+ result[attr] = "****"
85
+ else:
86
+ result[attr] = value
87
+
88
+ return result
89
+
90
+ def to_str(self):
91
+ """Returns the string representation of the model"""
92
+ import simplejson as json
93
+ if six.PY2:
94
+ import sys
95
+ reload(sys)
96
+ sys.setdefaultencoding("utf-8")
97
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
98
+
99
+ def __repr__(self):
100
+ """For `print`"""
101
+ return self.to_str()
102
+
103
+ def __eq__(self, other):
104
+ """Returns true if both objects are equal"""
105
+ if not isinstance(other, DeleteNoticeRuleResponse):
106
+ return False
107
+
108
+ return self.__dict__ == other.__dict__
109
+
110
+ def __ne__(self, other):
111
+ """Returns true if both objects are not equal"""
112
+ return not self == other
@@ -0,0 +1,171 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class DeleteVpcEgressRequest:
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
+ 'vpc_egress_id': 'str',
21
+ 'x_enterprise_project_id': 'str',
22
+ 'x_environment_id': 'str'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'vpc_egress_id': 'vpc_egress_id',
27
+ 'x_enterprise_project_id': 'X-Enterprise-Project-ID',
28
+ 'x_environment_id': 'X-Environment-ID'
29
+ }
30
+
31
+ def __init__(self, vpc_egress_id=None, x_enterprise_project_id=None, x_environment_id=None):
32
+ """DeleteVpcEgressRequest
33
+
34
+ The model defined in huaweicloud sdk
35
+
36
+ :param vpc_egress_id: CAE环境访问VPC配置ID。
37
+ :type vpc_egress_id: str
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
+ """
43
+
44
+
45
+
46
+ self._vpc_egress_id = None
47
+ self._x_enterprise_project_id = None
48
+ self._x_environment_id = None
49
+ self.discriminator = None
50
+
51
+ self.vpc_egress_id = vpc_egress_id
52
+ if x_enterprise_project_id is not None:
53
+ self.x_enterprise_project_id = x_enterprise_project_id
54
+ self.x_environment_id = x_environment_id
55
+
56
+ @property
57
+ def vpc_egress_id(self):
58
+ """Gets the vpc_egress_id of this DeleteVpcEgressRequest.
59
+
60
+ CAE环境访问VPC配置ID。
61
+
62
+ :return: The vpc_egress_id of this DeleteVpcEgressRequest.
63
+ :rtype: str
64
+ """
65
+ return self._vpc_egress_id
66
+
67
+ @vpc_egress_id.setter
68
+ def vpc_egress_id(self, vpc_egress_id):
69
+ """Sets the vpc_egress_id of this DeleteVpcEgressRequest.
70
+
71
+ CAE环境访问VPC配置ID。
72
+
73
+ :param vpc_egress_id: The vpc_egress_id of this DeleteVpcEgressRequest.
74
+ :type vpc_egress_id: str
75
+ """
76
+ self._vpc_egress_id = vpc_egress_id
77
+
78
+ @property
79
+ def x_enterprise_project_id(self):
80
+ """Gets the x_enterprise_project_id of this DeleteVpcEgressRequest.
81
+
82
+ 企业项目ID。 - 创建环境时,环境会绑定企业项目ID。 - 最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。 - 该字段不传(或传为字符串“0”)时,则查询默认企业项目下的资源。 > 关于企业项目ID的获取及企业项目特性的详细信息,请参见《[企业管理服务用户指南](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0126101490.html)》。
83
+
84
+ :return: The x_enterprise_project_id of this DeleteVpcEgressRequest.
85
+ :rtype: str
86
+ """
87
+ return self._x_enterprise_project_id
88
+
89
+ @x_enterprise_project_id.setter
90
+ def x_enterprise_project_id(self, x_enterprise_project_id):
91
+ """Sets the x_enterprise_project_id of this DeleteVpcEgressRequest.
92
+
93
+ 企业项目ID。 - 创建环境时,环境会绑定企业项目ID。 - 最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。 - 该字段不传(或传为字符串“0”)时,则查询默认企业项目下的资源。 > 关于企业项目ID的获取及企业项目特性的详细信息,请参见《[企业管理服务用户指南](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0126101490.html)》。
94
+
95
+ :param x_enterprise_project_id: The x_enterprise_project_id of this DeleteVpcEgressRequest.
96
+ :type x_enterprise_project_id: str
97
+ """
98
+ self._x_enterprise_project_id = x_enterprise_project_id
99
+
100
+ @property
101
+ def x_environment_id(self):
102
+ """Gets the x_environment_id of this DeleteVpcEgressRequest.
103
+
104
+ 环境ID。 - 获取环境ID,通过《[云应用引擎API参考](https://support.huaweicloud.com/api-cae/ListEnvironments.html)》的“获取环境列表”章节获取环境信息。 - 请求响应成功后在响应体的items数组中的一个元素即为一个环境的信息,其中id字段即是环境ID。
105
+
106
+ :return: The x_environment_id of this DeleteVpcEgressRequest.
107
+ :rtype: str
108
+ """
109
+ return self._x_environment_id
110
+
111
+ @x_environment_id.setter
112
+ def x_environment_id(self, x_environment_id):
113
+ """Sets the x_environment_id of this DeleteVpcEgressRequest.
114
+
115
+ 环境ID。 - 获取环境ID,通过《[云应用引擎API参考](https://support.huaweicloud.com/api-cae/ListEnvironments.html)》的“获取环境列表”章节获取环境信息。 - 请求响应成功后在响应体的items数组中的一个元素即为一个环境的信息,其中id字段即是环境ID。
116
+
117
+ :param x_environment_id: The x_environment_id of this DeleteVpcEgressRequest.
118
+ :type x_environment_id: str
119
+ """
120
+ self._x_environment_id = x_environment_id
121
+
122
+ def to_dict(self):
123
+ """Returns the model properties as a dict"""
124
+ result = {}
125
+
126
+ for attr, _ in six.iteritems(self.openapi_types):
127
+ value = getattr(self, attr)
128
+ if isinstance(value, list):
129
+ result[attr] = list(map(
130
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
131
+ value
132
+ ))
133
+ elif hasattr(value, "to_dict"):
134
+ result[attr] = value.to_dict()
135
+ elif isinstance(value, dict):
136
+ result[attr] = dict(map(
137
+ lambda item: (item[0], item[1].to_dict())
138
+ if hasattr(item[1], "to_dict") else item,
139
+ value.items()
140
+ ))
141
+ else:
142
+ if attr in self.sensitive_list:
143
+ result[attr] = "****"
144
+ else:
145
+ result[attr] = value
146
+
147
+ return result
148
+
149
+ def to_str(self):
150
+ """Returns the string representation of the model"""
151
+ import simplejson as json
152
+ if six.PY2:
153
+ import sys
154
+ reload(sys)
155
+ sys.setdefaultencoding("utf-8")
156
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
157
+
158
+ def __repr__(self):
159
+ """For `print`"""
160
+ return self.to_str()
161
+
162
+ def __eq__(self, other):
163
+ """Returns true if both objects are equal"""
164
+ if not isinstance(other, DeleteVpcEgressRequest):
165
+ return False
166
+
167
+ return self.__dict__ == other.__dict__
168
+
169
+ def __ne__(self, other):
170
+ """Returns true if both objects are not equal"""
171
+ return not self == other
@@ -0,0 +1,85 @@
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 DeleteVpcEgressResponse(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
+ }
22
+
23
+ attribute_map = {
24
+ }
25
+
26
+ def __init__(self):
27
+ """DeleteVpcEgressResponse
28
+
29
+ The model defined in huaweicloud sdk
30
+
31
+ """
32
+
33
+ super(DeleteVpcEgressResponse, self).__init__()
34
+ self.discriminator = None
35
+
36
+ def to_dict(self):
37
+ """Returns the model properties as a dict"""
38
+ result = {}
39
+
40
+ for attr, _ in six.iteritems(self.openapi_types):
41
+ value = getattr(self, attr)
42
+ if isinstance(value, list):
43
+ result[attr] = list(map(
44
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
45
+ value
46
+ ))
47
+ elif hasattr(value, "to_dict"):
48
+ result[attr] = value.to_dict()
49
+ elif isinstance(value, dict):
50
+ result[attr] = dict(map(
51
+ lambda item: (item[0], item[1].to_dict())
52
+ if hasattr(item[1], "to_dict") else item,
53
+ value.items()
54
+ ))
55
+ else:
56
+ if attr in self.sensitive_list:
57
+ result[attr] = "****"
58
+ else:
59
+ result[attr] = value
60
+
61
+ return result
62
+
63
+ def to_str(self):
64
+ """Returns the string representation of the model"""
65
+ import simplejson as json
66
+ if six.PY2:
67
+ import sys
68
+ reload(sys)
69
+ sys.setdefaultencoding("utf-8")
70
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
71
+
72
+ def __repr__(self):
73
+ """For `print`"""
74
+ return self.to_str()
75
+
76
+ def __eq__(self, other):
77
+ """Returns true if both objects are equal"""
78
+ if not isinstance(other, DeleteVpcEgressResponse):
79
+ return False
80
+
81
+ return self.__dict__ == other.__dict__
82
+
83
+ def __ne__(self, other):
84
+ """Returns true if both objects are not equal"""
85
+ return not self == other
@@ -0,0 +1,171 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class EgressCidr:
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
+ 'cidr': 'str',
21
+ 'route_table_id': 'str',
22
+ 'id': 'str'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'cidr': 'cidr',
27
+ 'route_table_id': 'route_table_id',
28
+ 'id': 'id'
29
+ }
30
+
31
+ def __init__(self, cidr=None, route_table_id=None, id=None):
32
+ """EgressCidr
33
+
34
+ The model defined in huaweicloud sdk
35
+
36
+ :param cidr: 目的网络Cidr。
37
+ :type cidr: str
38
+ :param route_table_id: 目的网络所属CAE环境VPC的路由表ID。
39
+ :type route_table_id: str
40
+ :param id: CAE环境访问VPC配置ID。
41
+ :type id: str
42
+ """
43
+
44
+
45
+
46
+ self._cidr = None
47
+ self._route_table_id = None
48
+ self._id = None
49
+ self.discriminator = None
50
+
51
+ self.cidr = cidr
52
+ self.route_table_id = route_table_id
53
+ if id is not None:
54
+ self.id = id
55
+
56
+ @property
57
+ def cidr(self):
58
+ """Gets the cidr of this EgressCidr.
59
+
60
+ 目的网络Cidr。
61
+
62
+ :return: The cidr of this EgressCidr.
63
+ :rtype: str
64
+ """
65
+ return self._cidr
66
+
67
+ @cidr.setter
68
+ def cidr(self, cidr):
69
+ """Sets the cidr of this EgressCidr.
70
+
71
+ 目的网络Cidr。
72
+
73
+ :param cidr: The cidr of this EgressCidr.
74
+ :type cidr: str
75
+ """
76
+ self._cidr = cidr
77
+
78
+ @property
79
+ def route_table_id(self):
80
+ """Gets the route_table_id of this EgressCidr.
81
+
82
+ 目的网络所属CAE环境VPC的路由表ID。
83
+
84
+ :return: The route_table_id of this EgressCidr.
85
+ :rtype: str
86
+ """
87
+ return self._route_table_id
88
+
89
+ @route_table_id.setter
90
+ def route_table_id(self, route_table_id):
91
+ """Sets the route_table_id of this EgressCidr.
92
+
93
+ 目的网络所属CAE环境VPC的路由表ID。
94
+
95
+ :param route_table_id: The route_table_id of this EgressCidr.
96
+ :type route_table_id: str
97
+ """
98
+ self._route_table_id = route_table_id
99
+
100
+ @property
101
+ def id(self):
102
+ """Gets the id of this EgressCidr.
103
+
104
+ CAE环境访问VPC配置ID。
105
+
106
+ :return: The id of this EgressCidr.
107
+ :rtype: str
108
+ """
109
+ return self._id
110
+
111
+ @id.setter
112
+ def id(self, id):
113
+ """Sets the id of this EgressCidr.
114
+
115
+ CAE环境访问VPC配置ID。
116
+
117
+ :param id: The id of this EgressCidr.
118
+ :type id: str
119
+ """
120
+ self._id = id
121
+
122
+ def to_dict(self):
123
+ """Returns the model properties as a dict"""
124
+ result = {}
125
+
126
+ for attr, _ in six.iteritems(self.openapi_types):
127
+ value = getattr(self, attr)
128
+ if isinstance(value, list):
129
+ result[attr] = list(map(
130
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
131
+ value
132
+ ))
133
+ elif hasattr(value, "to_dict"):
134
+ result[attr] = value.to_dict()
135
+ elif isinstance(value, dict):
136
+ result[attr] = dict(map(
137
+ lambda item: (item[0], item[1].to_dict())
138
+ if hasattr(item[1], "to_dict") else item,
139
+ value.items()
140
+ ))
141
+ else:
142
+ if attr in self.sensitive_list:
143
+ result[attr] = "****"
144
+ else:
145
+ result[attr] = value
146
+
147
+ return result
148
+
149
+ def to_str(self):
150
+ """Returns the string representation of the model"""
151
+ import simplejson as json
152
+ if six.PY2:
153
+ import sys
154
+ reload(sys)
155
+ sys.setdefaultencoding("utf-8")
156
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
157
+
158
+ def __repr__(self):
159
+ """For `print`"""
160
+ return self.to_str()
161
+
162
+ def __eq__(self, other):
163
+ """Returns true if both objects are equal"""
164
+ if not isinstance(other, EgressCidr):
165
+ return False
166
+
167
+ return self.__dict__ == other.__dict__
168
+
169
+ def __ne__(self, other):
170
+ """Returns true if both objects are not equal"""
171
+ return not self == other
@@ -49,7 +49,7 @@ class EnvironmentItem:
49
49
  :type job_id: str
50
50
  :param status: 环境状态。
51
51
  :type status: str
52
- :param annotations: 环境附加属性。 - cluster_id:CCE集群ID。 - enterprise_project_id:企业项目ID。 - group_name:主环境绑定的SWR组织名称。 - inbound_eip_addr:负载均衡绑定EIP地址。 - namespace:CCE集群命名空间。 - public_elb_id:ELB ID,主环境绑定的负载均衡ID。 - type:环境类型,当前仅支持exclusive类型。 - vpc_id:主环境绑定的VPC ID。
52
+ :param annotations: 环境附加属性。 - cluster_id:CCE集群ID。 - enterprise_project_id:企业项目ID。 - env_category: 环境种类,当前支持v1、v2,在授权云存储时,v1、v2种类环境有所不同。 - group_name:主环境绑定的SWR组织名称。 - inbound_eip_addr:负载均衡绑定EIP地址。 - namespace:CCE集群命名空间。 - public_elb_id:ELB ID,主环境绑定的负载均衡ID。 - type:环境类型,当前仅支持exclusive类型。 - vpc_id:主环境绑定的VPC ID。
53
53
  :type annotations: dict(str, str)
54
54
  :param created_at: 创建时间。
55
55
  :type created_at: str
@@ -175,7 +175,7 @@ class EnvironmentItem:
175
175
  def annotations(self):
176
176
  """Gets the annotations of this EnvironmentItem.
177
177
 
178
- 环境附加属性。 - cluster_id:CCE集群ID。 - enterprise_project_id:企业项目ID。 - group_name:主环境绑定的SWR组织名称。 - inbound_eip_addr:负载均衡绑定EIP地址。 - namespace:CCE集群命名空间。 - public_elb_id:ELB ID,主环境绑定的负载均衡ID。 - type:环境类型,当前仅支持exclusive类型。 - vpc_id:主环境绑定的VPC ID。
178
+ 环境附加属性。 - cluster_id:CCE集群ID。 - enterprise_project_id:企业项目ID。 - env_category: 环境种类,当前支持v1、v2,在授权云存储时,v1、v2种类环境有所不同。 - group_name:主环境绑定的SWR组织名称。 - inbound_eip_addr:负载均衡绑定EIP地址。 - namespace:CCE集群命名空间。 - public_elb_id:ELB ID,主环境绑定的负载均衡ID。 - type:环境类型,当前仅支持exclusive类型。 - vpc_id:主环境绑定的VPC ID。
179
179
 
180
180
  :return: The annotations of this EnvironmentItem.
181
181
  :rtype: dict(str, str)
@@ -186,7 +186,7 @@ class EnvironmentItem:
186
186
  def annotations(self, annotations):
187
187
  """Sets the annotations of this EnvironmentItem.
188
188
 
189
- 环境附加属性。 - cluster_id:CCE集群ID。 - enterprise_project_id:企业项目ID。 - group_name:主环境绑定的SWR组织名称。 - inbound_eip_addr:负载均衡绑定EIP地址。 - namespace:CCE集群命名空间。 - public_elb_id:ELB ID,主环境绑定的负载均衡ID。 - type:环境类型,当前仅支持exclusive类型。 - vpc_id:主环境绑定的VPC ID。
189
+ 环境附加属性。 - cluster_id:CCE集群ID。 - enterprise_project_id:企业项目ID。 - env_category: 环境种类,当前支持v1、v2,在授权云存储时,v1、v2种类环境有所不同。 - group_name:主环境绑定的SWR组织名称。 - inbound_eip_addr:负载均衡绑定EIP地址。 - namespace:CCE集群命名空间。 - public_elb_id:ELB ID,主环境绑定的负载均衡ID。 - type:环境类型,当前仅支持exclusive类型。 - vpc_id:主环境绑定的VPC ID。
190
190
 
191
191
  :param annotations: The annotations of this EnvironmentItem.
192
192
  :type annotations: dict(str, str)
@@ -18,7 +18,7 @@ class HealthCheckConfigurationHttpGet:
18
18
 
19
19
  openapi_types = {
20
20
  'path': 'str',
21
- 'port': 'str',
21
+ 'port': 'int',
22
22
  'scheme': 'str'
23
23
  }
24
24
 
@@ -36,7 +36,7 @@ class HealthCheckConfigurationHttpGet:
36
36
  :param path: URL路径。
37
37
  :type path: str
38
38
  :param port: 端口。
39
- :type port: str
39
+ :type port: int
40
40
  :param scheme: 协议。
41
41
  :type scheme: str
42
42
  """
@@ -84,7 +84,7 @@ class HealthCheckConfigurationHttpGet:
84
84
  端口。
85
85
 
86
86
  :return: The port of this HealthCheckConfigurationHttpGet.
87
- :rtype: str
87
+ :rtype: int
88
88
  """
89
89
  return self._port
90
90
 
@@ -95,7 +95,7 @@ class HealthCheckConfigurationHttpGet:
95
95
  端口。
96
96
 
97
97
  :param port: The port of this HealthCheckConfigurationHttpGet.
98
- :type port: str
98
+ :type port: int
99
99
  """
100
100
  self._port = port
101
101
 
@@ -17,7 +17,7 @@ class HealthCheckConfigurationTcpSocket:
17
17
  sensitive_list = []
18
18
 
19
19
  openapi_types = {
20
- 'port': 'str'
20
+ 'port': 'int'
21
21
  }
22
22
 
23
23
  attribute_map = {
@@ -30,7 +30,7 @@ class HealthCheckConfigurationTcpSocket:
30
30
  The model defined in huaweicloud sdk
31
31
 
32
32
  :param port: 端口。
33
- :type port: str
33
+ :type port: int
34
34
  """
35
35
 
36
36
 
@@ -48,7 +48,7 @@ class HealthCheckConfigurationTcpSocket:
48
48
  端口。
49
49
 
50
50
  :return: The port of this HealthCheckConfigurationTcpSocket.
51
- :rtype: str
51
+ :rtype: int
52
52
  """
53
53
  return self._port
54
54
 
@@ -59,7 +59,7 @@ class HealthCheckConfigurationTcpSocket:
59
59
  端口。
60
60
 
61
61
  :param port: The port of this HealthCheckConfigurationTcpSocket.
62
- :type port: str
62
+ :type port: int
63
63
  """
64
64
  self._port = port
65
65