huaweicloudsdkcae 3.1.137__py2.py3-none-any.whl → 3.1.139__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 (30) hide show
  1. huaweicloudsdkcae/v1/__init__.py +13 -0
  2. huaweicloudsdkcae/v1/cae_async_client.py +336 -8
  3. huaweicloudsdkcae/v1/cae_client.py +336 -8
  4. huaweicloudsdkcae/v1/model/__init__.py +13 -0
  5. huaweicloudsdkcae/v1/model/create_notice_rule_request.py +1 -29
  6. huaweicloudsdkcae/v1/model/create_or_update_secret_detail.py +142 -0
  7. huaweicloudsdkcae/v1/model/create_or_update_secret_req.py +166 -0
  8. huaweicloudsdkcae/v1/model/create_secret_request.py +168 -0
  9. huaweicloudsdkcae/v1/model/create_secret_response.py +170 -0
  10. huaweicloudsdkcae/v1/model/delete_component_response.py +32 -1
  11. huaweicloudsdkcae/v1/model/delete_notice_rule_request.py +1 -29
  12. huaweicloudsdkcae/v1/model/delete_secret_request.py +143 -0
  13. huaweicloudsdkcae/v1/model/delete_secret_response.py +85 -0
  14. huaweicloudsdkcae/v1/model/eip_kind_obj.py +1 -1
  15. huaweicloudsdkcae/v1/model/list_effective_components_request.py +143 -0
  16. huaweicloudsdkcae/v1/model/list_effective_components_response.py +174 -0
  17. huaweicloudsdkcae/v1/model/list_notice_rules_request.py +3 -31
  18. huaweicloudsdkcae/v1/model/list_secrets_request.py +115 -0
  19. huaweicloudsdkcae/v1/model/list_secrets_response.py +174 -0
  20. huaweicloudsdkcae/v1/model/secret_detail.py +283 -0
  21. huaweicloudsdkcae/v1/model/show_notice_rule_request.py +1 -29
  22. huaweicloudsdkcae/v1/model/update_notice_rule_request.py +1 -29
  23. huaweicloudsdkcae/v1/model/update_secret_request.py +168 -0
  24. huaweicloudsdkcae/v1/model/update_secret_response.py +170 -0
  25. huaweicloudsdkcae/v1/region/cae_region.py +12 -0
  26. {huaweicloudsdkcae-3.1.137.dist-info → huaweicloudsdkcae-3.1.139.dist-info}/METADATA +2 -2
  27. {huaweicloudsdkcae-3.1.137.dist-info → huaweicloudsdkcae-3.1.139.dist-info}/RECORD +30 -17
  28. {huaweicloudsdkcae-3.1.137.dist-info → huaweicloudsdkcae-3.1.139.dist-info}/LICENSE +0 -0
  29. {huaweicloudsdkcae-3.1.137.dist-info → huaweicloudsdkcae-3.1.139.dist-info}/WHEEL +0 -0
  30. {huaweicloudsdkcae-3.1.137.dist-info → huaweicloudsdkcae-3.1.139.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,143 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class DeleteSecretRequest:
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
+ 'secret_id': 'str',
21
+ 'x_enterprise_project_id': 'str'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'secret_id': 'secret_id',
26
+ 'x_enterprise_project_id': 'X-Enterprise-Project-ID'
27
+ }
28
+
29
+ def __init__(self, secret_id=None, x_enterprise_project_id=None):
30
+ """DeleteSecretRequest
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param secret_id: 凭据ID。
35
+ :type secret_id: str
36
+ :param x_enterprise_project_id: 企业项目ID。 - 创建环境时,环境会绑定企业项目ID。 - 最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。 - 该字段不传(或传为字符串“0”)时,则查询默认企业项目下的资源。 > 关于企业项目ID的获取及企业项目特性的详细信息,请参见《[企业管理服务用户指南](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0126101490.html)》。
37
+ :type x_enterprise_project_id: str
38
+ """
39
+
40
+
41
+
42
+ self._secret_id = None
43
+ self._x_enterprise_project_id = None
44
+ self.discriminator = None
45
+
46
+ self.secret_id = secret_id
47
+ if x_enterprise_project_id is not None:
48
+ self.x_enterprise_project_id = x_enterprise_project_id
49
+
50
+ @property
51
+ def secret_id(self):
52
+ """Gets the secret_id of this DeleteSecretRequest.
53
+
54
+ 凭据ID。
55
+
56
+ :return: The secret_id of this DeleteSecretRequest.
57
+ :rtype: str
58
+ """
59
+ return self._secret_id
60
+
61
+ @secret_id.setter
62
+ def secret_id(self, secret_id):
63
+ """Sets the secret_id of this DeleteSecretRequest.
64
+
65
+ 凭据ID。
66
+
67
+ :param secret_id: The secret_id of this DeleteSecretRequest.
68
+ :type secret_id: str
69
+ """
70
+ self._secret_id = secret_id
71
+
72
+ @property
73
+ def x_enterprise_project_id(self):
74
+ """Gets the x_enterprise_project_id of this DeleteSecretRequest.
75
+
76
+ 企业项目ID。 - 创建环境时,环境会绑定企业项目ID。 - 最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。 - 该字段不传(或传为字符串“0”)时,则查询默认企业项目下的资源。 > 关于企业项目ID的获取及企业项目特性的详细信息,请参见《[企业管理服务用户指南](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0126101490.html)》。
77
+
78
+ :return: The x_enterprise_project_id of this DeleteSecretRequest.
79
+ :rtype: str
80
+ """
81
+ return self._x_enterprise_project_id
82
+
83
+ @x_enterprise_project_id.setter
84
+ def x_enterprise_project_id(self, x_enterprise_project_id):
85
+ """Sets the x_enterprise_project_id of this DeleteSecretRequest.
86
+
87
+ 企业项目ID。 - 创建环境时,环境会绑定企业项目ID。 - 最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。 - 该字段不传(或传为字符串“0”)时,则查询默认企业项目下的资源。 > 关于企业项目ID的获取及企业项目特性的详细信息,请参见《[企业管理服务用户指南](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0126101490.html)》。
88
+
89
+ :param x_enterprise_project_id: The x_enterprise_project_id of this DeleteSecretRequest.
90
+ :type x_enterprise_project_id: str
91
+ """
92
+ self._x_enterprise_project_id = x_enterprise_project_id
93
+
94
+ def to_dict(self):
95
+ """Returns the model properties as a dict"""
96
+ result = {}
97
+
98
+ for attr, _ in six.iteritems(self.openapi_types):
99
+ value = getattr(self, attr)
100
+ if isinstance(value, list):
101
+ result[attr] = list(map(
102
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
103
+ value
104
+ ))
105
+ elif hasattr(value, "to_dict"):
106
+ result[attr] = value.to_dict()
107
+ elif isinstance(value, dict):
108
+ result[attr] = dict(map(
109
+ lambda item: (item[0], item[1].to_dict())
110
+ if hasattr(item[1], "to_dict") else item,
111
+ value.items()
112
+ ))
113
+ else:
114
+ if attr in self.sensitive_list:
115
+ result[attr] = "****"
116
+ else:
117
+ result[attr] = value
118
+
119
+ return result
120
+
121
+ def to_str(self):
122
+ """Returns the string representation of the model"""
123
+ import simplejson as json
124
+ if six.PY2:
125
+ import sys
126
+ reload(sys)
127
+ sys.setdefaultencoding("utf-8")
128
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
129
+
130
+ def __repr__(self):
131
+ """For `print`"""
132
+ return self.to_str()
133
+
134
+ def __eq__(self, other):
135
+ """Returns true if both objects are equal"""
136
+ if not isinstance(other, DeleteSecretRequest):
137
+ return False
138
+
139
+ return self.__dict__ == other.__dict__
140
+
141
+ def __ne__(self, other):
142
+ """Returns true if both objects are not equal"""
143
+ 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 DeleteSecretResponse(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
+ """DeleteSecretResponse
28
+
29
+ The model defined in huaweicloud sdk
30
+
31
+ """
32
+
33
+ super(DeleteSecretResponse, 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, DeleteSecretResponse):
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
@@ -9,7 +9,7 @@ class EipKindObj:
9
9
  """
10
10
  allowed enum values
11
11
  """
12
- EIP = "eip"
12
+ EIP = "Eip"
13
13
  """
14
14
  Attributes:
15
15
  openapi_types (dict): The key is attribute name
@@ -0,0 +1,143 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ListEffectiveComponentsRequest:
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
+ 'secret_id': 'str',
21
+ 'x_enterprise_project_id': 'str'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'secret_id': 'secret_id',
26
+ 'x_enterprise_project_id': 'X-Enterprise-Project-ID'
27
+ }
28
+
29
+ def __init__(self, secret_id=None, x_enterprise_project_id=None):
30
+ """ListEffectiveComponentsRequest
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param secret_id: 凭据ID。
35
+ :type secret_id: str
36
+ :param x_enterprise_project_id: 企业项目ID。 - 创建环境时,环境会绑定企业项目ID。 - 最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。 - 该字段不传(或传为字符串“0”)时,则查询默认企业项目下的资源。 > 关于企业项目ID的获取及企业项目特性的详细信息,请参见《[企业管理服务用户指南](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0126101490.html)》。
37
+ :type x_enterprise_project_id: str
38
+ """
39
+
40
+
41
+
42
+ self._secret_id = None
43
+ self._x_enterprise_project_id = None
44
+ self.discriminator = None
45
+
46
+ self.secret_id = secret_id
47
+ if x_enterprise_project_id is not None:
48
+ self.x_enterprise_project_id = x_enterprise_project_id
49
+
50
+ @property
51
+ def secret_id(self):
52
+ """Gets the secret_id of this ListEffectiveComponentsRequest.
53
+
54
+ 凭据ID。
55
+
56
+ :return: The secret_id of this ListEffectiveComponentsRequest.
57
+ :rtype: str
58
+ """
59
+ return self._secret_id
60
+
61
+ @secret_id.setter
62
+ def secret_id(self, secret_id):
63
+ """Sets the secret_id of this ListEffectiveComponentsRequest.
64
+
65
+ 凭据ID。
66
+
67
+ :param secret_id: The secret_id of this ListEffectiveComponentsRequest.
68
+ :type secret_id: str
69
+ """
70
+ self._secret_id = secret_id
71
+
72
+ @property
73
+ def x_enterprise_project_id(self):
74
+ """Gets the x_enterprise_project_id of this ListEffectiveComponentsRequest.
75
+
76
+ 企业项目ID。 - 创建环境时,环境会绑定企业项目ID。 - 最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。 - 该字段不传(或传为字符串“0”)时,则查询默认企业项目下的资源。 > 关于企业项目ID的获取及企业项目特性的详细信息,请参见《[企业管理服务用户指南](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0126101490.html)》。
77
+
78
+ :return: The x_enterprise_project_id of this ListEffectiveComponentsRequest.
79
+ :rtype: str
80
+ """
81
+ return self._x_enterprise_project_id
82
+
83
+ @x_enterprise_project_id.setter
84
+ def x_enterprise_project_id(self, x_enterprise_project_id):
85
+ """Sets the x_enterprise_project_id of this ListEffectiveComponentsRequest.
86
+
87
+ 企业项目ID。 - 创建环境时,环境会绑定企业项目ID。 - 最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。 - 该字段不传(或传为字符串“0”)时,则查询默认企业项目下的资源。 > 关于企业项目ID的获取及企业项目特性的详细信息,请参见《[企业管理服务用户指南](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0126101490.html)》。
88
+
89
+ :param x_enterprise_project_id: The x_enterprise_project_id of this ListEffectiveComponentsRequest.
90
+ :type x_enterprise_project_id: str
91
+ """
92
+ self._x_enterprise_project_id = x_enterprise_project_id
93
+
94
+ def to_dict(self):
95
+ """Returns the model properties as a dict"""
96
+ result = {}
97
+
98
+ for attr, _ in six.iteritems(self.openapi_types):
99
+ value = getattr(self, attr)
100
+ if isinstance(value, list):
101
+ result[attr] = list(map(
102
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
103
+ value
104
+ ))
105
+ elif hasattr(value, "to_dict"):
106
+ result[attr] = value.to_dict()
107
+ elif isinstance(value, dict):
108
+ result[attr] = dict(map(
109
+ lambda item: (item[0], item[1].to_dict())
110
+ if hasattr(item[1], "to_dict") else item,
111
+ value.items()
112
+ ))
113
+ else:
114
+ if attr in self.sensitive_list:
115
+ result[attr] = "****"
116
+ else:
117
+ result[attr] = value
118
+
119
+ return result
120
+
121
+ def to_str(self):
122
+ """Returns the string representation of the model"""
123
+ import simplejson as json
124
+ if six.PY2:
125
+ import sys
126
+ reload(sys)
127
+ sys.setdefaultencoding("utf-8")
128
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
129
+
130
+ def __repr__(self):
131
+ """For `print`"""
132
+ return self.to_str()
133
+
134
+ def __eq__(self, other):
135
+ """Returns true if both objects are equal"""
136
+ if not isinstance(other, ListEffectiveComponentsRequest):
137
+ return False
138
+
139
+ return self.__dict__ == other.__dict__
140
+
141
+ def __ne__(self, other):
142
+ """Returns true if both objects are not equal"""
143
+ return not self == other
@@ -0,0 +1,174 @@
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 ListEffectiveComponentsResponse(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
+ 'items': 'list[SecretDetail]'
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
+ """ListEffectiveComponentsResponse
34
+
35
+ The model defined in huaweicloud sdk
36
+
37
+ :param api_version: API版本,固定值“v1”,该值不可修改。
38
+ :type api_version: str
39
+ :param kind: 资源种类。
40
+ :type kind: str
41
+ :param items: 定时启停规则所包含的所有应用,只在生效范围为application的时候需要填写。
42
+ :type items: list[:class:`huaweicloudsdkcae.v1.SecretDetail`]
43
+ """
44
+
45
+ super(ListEffectiveComponentsResponse, 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 ListEffectiveComponentsResponse.
62
+
63
+ API版本,固定值“v1”,该值不可修改。
64
+
65
+ :return: The api_version of this ListEffectiveComponentsResponse.
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 ListEffectiveComponentsResponse.
73
+
74
+ API版本,固定值“v1”,该值不可修改。
75
+
76
+ :param api_version: The api_version of this ListEffectiveComponentsResponse.
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 ListEffectiveComponentsResponse.
84
+
85
+ 资源种类。
86
+
87
+ :return: The kind of this ListEffectiveComponentsResponse.
88
+ :rtype: str
89
+ """
90
+ return self._kind
91
+
92
+ @kind.setter
93
+ def kind(self, kind):
94
+ """Sets the kind of this ListEffectiveComponentsResponse.
95
+
96
+ 资源种类。
97
+
98
+ :param kind: The kind of this ListEffectiveComponentsResponse.
99
+ :type kind: str
100
+ """
101
+ self._kind = kind
102
+
103
+ @property
104
+ def items(self):
105
+ """Gets the items of this ListEffectiveComponentsResponse.
106
+
107
+ 定时启停规则所包含的所有应用,只在生效范围为application的时候需要填写。
108
+
109
+ :return: The items of this ListEffectiveComponentsResponse.
110
+ :rtype: list[:class:`huaweicloudsdkcae.v1.SecretDetail`]
111
+ """
112
+ return self._items
113
+
114
+ @items.setter
115
+ def items(self, items):
116
+ """Sets the items of this ListEffectiveComponentsResponse.
117
+
118
+ 定时启停规则所包含的所有应用,只在生效范围为application的时候需要填写。
119
+
120
+ :param items: The items of this ListEffectiveComponentsResponse.
121
+ :type items: list[:class:`huaweicloudsdkcae.v1.SecretDetail`]
122
+ """
123
+ self._items = items
124
+
125
+ def to_dict(self):
126
+ """Returns the model properties as a dict"""
127
+ result = {}
128
+
129
+ for attr, _ in six.iteritems(self.openapi_types):
130
+ value = getattr(self, attr)
131
+ if isinstance(value, list):
132
+ result[attr] = list(map(
133
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
134
+ value
135
+ ))
136
+ elif hasattr(value, "to_dict"):
137
+ result[attr] = value.to_dict()
138
+ elif isinstance(value, dict):
139
+ result[attr] = dict(map(
140
+ lambda item: (item[0], item[1].to_dict())
141
+ if hasattr(item[1], "to_dict") else item,
142
+ value.items()
143
+ ))
144
+ else:
145
+ if attr in self.sensitive_list:
146
+ result[attr] = "****"
147
+ else:
148
+ result[attr] = value
149
+
150
+ return result
151
+
152
+ def to_str(self):
153
+ """Returns the string representation of the model"""
154
+ import simplejson as json
155
+ if six.PY2:
156
+ import sys
157
+ reload(sys)
158
+ sys.setdefaultencoding("utf-8")
159
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
160
+
161
+ def __repr__(self):
162
+ """For `print`"""
163
+ return self.to_str()
164
+
165
+ def __eq__(self, other):
166
+ """Returns true if both objects are equal"""
167
+ if not isinstance(other, ListEffectiveComponentsResponse):
168
+ return False
169
+
170
+ return self.__dict__ == other.__dict__
171
+
172
+ def __ne__(self, other):
173
+ """Returns true if both objects are not equal"""
174
+ return not self == other
@@ -17,35 +17,29 @@ class ListNoticeRulesRequest:
17
17
  sensitive_list = []
18
18
 
19
19
  openapi_types = {
20
- 'x_enterprise_project_id': 'str',
21
- 'x_environment_id': 'str'
20
+ 'x_enterprise_project_id': 'str'
22
21
  }
23
22
 
24
23
  attribute_map = {
25
- 'x_enterprise_project_id': 'X-Enterprise-Project-ID',
26
- 'x_environment_id': 'X-Environment-ID'
24
+ 'x_enterprise_project_id': 'X-Enterprise-Project-ID'
27
25
  }
28
26
 
29
- def __init__(self, x_enterprise_project_id=None, x_environment_id=None):
27
+ def __init__(self, x_enterprise_project_id=None):
30
28
  """ListNoticeRulesRequest
31
29
 
32
30
  The model defined in huaweicloud sdk
33
31
 
34
32
  :param x_enterprise_project_id: 企业项目ID。 - 创建环境时,环境会绑定企业项目ID。 - 最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。 - 该字段不传(或传为字符串“0”)时,则查询默认企业项目下的资源。 > 关于企业项目ID的获取及企业项目特性的详细信息,请参见《[企业管理服务用户指南](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0126101490.html)》。
35
33
  :type x_enterprise_project_id: str
36
- :param x_environment_id: 环境ID。 - 获取环境ID,通过《[云应用引擎API参考](https://support.huaweicloud.com/api-cae/ListEnvironments.html)》的“获取环境列表”章节获取环境信息。 - 请求响应成功后在响应体的items数组中的一个元素即为一个环境的信息,其中id字段即是环境ID。
37
- :type x_environment_id: str
38
34
  """
39
35
 
40
36
 
41
37
 
42
38
  self._x_enterprise_project_id = None
43
- self._x_environment_id = None
44
39
  self.discriminator = None
45
40
 
46
41
  if x_enterprise_project_id is not None:
47
42
  self.x_enterprise_project_id = x_enterprise_project_id
48
- self.x_environment_id = x_environment_id
49
43
 
50
44
  @property
51
45
  def x_enterprise_project_id(self):
@@ -69,28 +63,6 @@ class ListNoticeRulesRequest:
69
63
  """
70
64
  self._x_enterprise_project_id = x_enterprise_project_id
71
65
 
72
- @property
73
- def x_environment_id(self):
74
- """Gets the x_environment_id of this ListNoticeRulesRequest.
75
-
76
- 环境ID。 - 获取环境ID,通过《[云应用引擎API参考](https://support.huaweicloud.com/api-cae/ListEnvironments.html)》的“获取环境列表”章节获取环境信息。 - 请求响应成功后在响应体的items数组中的一个元素即为一个环境的信息,其中id字段即是环境ID。
77
-
78
- :return: The x_environment_id of this ListNoticeRulesRequest.
79
- :rtype: str
80
- """
81
- return self._x_environment_id
82
-
83
- @x_environment_id.setter
84
- def x_environment_id(self, x_environment_id):
85
- """Sets the x_environment_id of this ListNoticeRulesRequest.
86
-
87
- 环境ID。 - 获取环境ID,通过《[云应用引擎API参考](https://support.huaweicloud.com/api-cae/ListEnvironments.html)》的“获取环境列表”章节获取环境信息。 - 请求响应成功后在响应体的items数组中的一个元素即为一个环境的信息,其中id字段即是环境ID。
88
-
89
- :param x_environment_id: The x_environment_id of this ListNoticeRulesRequest.
90
- :type x_environment_id: str
91
- """
92
- self._x_environment_id = x_environment_id
93
-
94
66
  def to_dict(self):
95
67
  """Returns the model properties as a dict"""
96
68
  result = {}