huaweicloudsdkcae 3.1.138__py2.py3-none-any.whl → 3.1.140__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 (24) hide show
  1. huaweicloudsdkcae/v1/__init__.py +13 -0
  2. huaweicloudsdkcae/v1/cae_async_client.py +338 -0
  3. huaweicloudsdkcae/v1/cae_client.py +338 -0
  4. huaweicloudsdkcae/v1/model/__init__.py +13 -0
  5. huaweicloudsdkcae/v1/model/create_or_update_secret_detail.py +142 -0
  6. huaweicloudsdkcae/v1/model/create_or_update_secret_req.py +166 -0
  7. huaweicloudsdkcae/v1/model/create_secret_request.py +168 -0
  8. huaweicloudsdkcae/v1/model/create_secret_response.py +170 -0
  9. huaweicloudsdkcae/v1/model/delete_component_response.py +32 -1
  10. huaweicloudsdkcae/v1/model/delete_secret_request.py +143 -0
  11. huaweicloudsdkcae/v1/model/delete_secret_response.py +85 -0
  12. huaweicloudsdkcae/v1/model/list_effective_components_request.py +143 -0
  13. huaweicloudsdkcae/v1/model/list_effective_components_response.py +174 -0
  14. huaweicloudsdkcae/v1/model/list_secrets_request.py +115 -0
  15. huaweicloudsdkcae/v1/model/list_secrets_response.py +174 -0
  16. huaweicloudsdkcae/v1/model/secret_detail.py +283 -0
  17. huaweicloudsdkcae/v1/model/update_secret_request.py +168 -0
  18. huaweicloudsdkcae/v1/model/update_secret_response.py +170 -0
  19. huaweicloudsdkcae/v1/region/cae_region.py +12 -0
  20. {huaweicloudsdkcae-3.1.138.dist-info → huaweicloudsdkcae-3.1.140.dist-info}/METADATA +2 -2
  21. {huaweicloudsdkcae-3.1.138.dist-info → huaweicloudsdkcae-3.1.140.dist-info}/RECORD +24 -11
  22. {huaweicloudsdkcae-3.1.138.dist-info → huaweicloudsdkcae-3.1.140.dist-info}/LICENSE +0 -0
  23. {huaweicloudsdkcae-3.1.138.dist-info → huaweicloudsdkcae-3.1.140.dist-info}/WHEEL +0 -0
  24. {huaweicloudsdkcae-3.1.138.dist-info → huaweicloudsdkcae-3.1.140.dist-info}/top_level.txt +0 -0
@@ -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
@@ -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
@@ -0,0 +1,115 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ListSecretsRequest:
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
+ }
22
+
23
+ attribute_map = {
24
+ 'x_enterprise_project_id': 'X-Enterprise-Project-ID'
25
+ }
26
+
27
+ def __init__(self, x_enterprise_project_id=None):
28
+ """ListSecretsRequest
29
+
30
+ The model defined in huaweicloud sdk
31
+
32
+ :param x_enterprise_project_id: 企业项目ID。 - 创建环境时,环境会绑定企业项目ID。 - 最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。 - 该字段不传(或传为字符串“0”)时,则查询默认企业项目下的资源。 > 关于企业项目ID的获取及企业项目特性的详细信息,请参见《[企业管理服务用户指南](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0126101490.html)》。
33
+ :type x_enterprise_project_id: str
34
+ """
35
+
36
+
37
+
38
+ self._x_enterprise_project_id = None
39
+ self.discriminator = None
40
+
41
+ if x_enterprise_project_id is not None:
42
+ self.x_enterprise_project_id = x_enterprise_project_id
43
+
44
+ @property
45
+ def x_enterprise_project_id(self):
46
+ """Gets the x_enterprise_project_id of this ListSecretsRequest.
47
+
48
+ 企业项目ID。 - 创建环境时,环境会绑定企业项目ID。 - 最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。 - 该字段不传(或传为字符串“0”)时,则查询默认企业项目下的资源。 > 关于企业项目ID的获取及企业项目特性的详细信息,请参见《[企业管理服务用户指南](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0126101490.html)》。
49
+
50
+ :return: The x_enterprise_project_id of this ListSecretsRequest.
51
+ :rtype: str
52
+ """
53
+ return self._x_enterprise_project_id
54
+
55
+ @x_enterprise_project_id.setter
56
+ def x_enterprise_project_id(self, x_enterprise_project_id):
57
+ """Sets the x_enterprise_project_id of this ListSecretsRequest.
58
+
59
+ 企业项目ID。 - 创建环境时,环境会绑定企业项目ID。 - 最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。 - 该字段不传(或传为字符串“0”)时,则查询默认企业项目下的资源。 > 关于企业项目ID的获取及企业项目特性的详细信息,请参见《[企业管理服务用户指南](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0126101490.html)》。
60
+
61
+ :param x_enterprise_project_id: The x_enterprise_project_id of this ListSecretsRequest.
62
+ :type x_enterprise_project_id: str
63
+ """
64
+ self._x_enterprise_project_id = x_enterprise_project_id
65
+
66
+ def to_dict(self):
67
+ """Returns the model properties as a dict"""
68
+ result = {}
69
+
70
+ for attr, _ in six.iteritems(self.openapi_types):
71
+ value = getattr(self, attr)
72
+ if isinstance(value, list):
73
+ result[attr] = list(map(
74
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
75
+ value
76
+ ))
77
+ elif hasattr(value, "to_dict"):
78
+ result[attr] = value.to_dict()
79
+ elif isinstance(value, dict):
80
+ result[attr] = dict(map(
81
+ lambda item: (item[0], item[1].to_dict())
82
+ if hasattr(item[1], "to_dict") else item,
83
+ value.items()
84
+ ))
85
+ else:
86
+ if attr in self.sensitive_list:
87
+ result[attr] = "****"
88
+ else:
89
+ result[attr] = value
90
+
91
+ return result
92
+
93
+ def to_str(self):
94
+ """Returns the string representation of the model"""
95
+ import simplejson as json
96
+ if six.PY2:
97
+ import sys
98
+ reload(sys)
99
+ sys.setdefaultencoding("utf-8")
100
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
101
+
102
+ def __repr__(self):
103
+ """For `print`"""
104
+ return self.to_str()
105
+
106
+ def __eq__(self, other):
107
+ """Returns true if both objects are equal"""
108
+ if not isinstance(other, ListSecretsRequest):
109
+ return False
110
+
111
+ return self.__dict__ == other.__dict__
112
+
113
+ def __ne__(self, other):
114
+ """Returns true if both objects are not equal"""
115
+ 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 ListSecretsResponse(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
+ """ListSecretsResponse
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(ListSecretsResponse, 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 ListSecretsResponse.
62
+
63
+ API版本,固定值“v1”,该值不可修改。
64
+
65
+ :return: The api_version of this ListSecretsResponse.
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 ListSecretsResponse.
73
+
74
+ API版本,固定值“v1”,该值不可修改。
75
+
76
+ :param api_version: The api_version of this ListSecretsResponse.
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 ListSecretsResponse.
84
+
85
+ 资源种类。
86
+
87
+ :return: The kind of this ListSecretsResponse.
88
+ :rtype: str
89
+ """
90
+ return self._kind
91
+
92
+ @kind.setter
93
+ def kind(self, kind):
94
+ """Sets the kind of this ListSecretsResponse.
95
+
96
+ 资源种类。
97
+
98
+ :param kind: The kind of this ListSecretsResponse.
99
+ :type kind: str
100
+ """
101
+ self._kind = kind
102
+
103
+ @property
104
+ def items(self):
105
+ """Gets the items of this ListSecretsResponse.
106
+
107
+ 定时启停规则所包含的所有应用,只在生效范围为application的时候需要填写。
108
+
109
+ :return: The items of this ListSecretsResponse.
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 ListSecretsResponse.
117
+
118
+ 定时启停规则所包含的所有应用,只在生效范围为application的时候需要填写。
119
+
120
+ :param items: The items of this ListSecretsResponse.
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, ListSecretsResponse):
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