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