huaweicloudsdkdcs 3.1.74__py2.py3-none-any.whl → 3.1.76__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 huaweicloudsdkdcs might be problematic. Click here for more details.

@@ -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 DownloadSslCertResponse(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
+ 'file_name': 'str',
22
+ 'link': 'str',
23
+ 'bucket_name': 'str'
24
+ }
25
+
26
+ attribute_map = {
27
+ 'file_name': 'file_name',
28
+ 'link': 'link',
29
+ 'bucket_name': 'bucket_name'
30
+ }
31
+
32
+ def __init__(self, file_name=None, link=None, bucket_name=None):
33
+ """DownloadSslCertResponse
34
+
35
+ The model defined in huaweicloud sdk
36
+
37
+ :param file_name: SSL证书文件名。
38
+ :type file_name: str
39
+ :param link: SSL证书下载链接。
40
+ :type link: str
41
+ :param bucket_name: 保存SSL证书的obs桶名。
42
+ :type bucket_name: str
43
+ """
44
+
45
+ super(DownloadSslCertResponse, self).__init__()
46
+
47
+ self._file_name = None
48
+ self._link = None
49
+ self._bucket_name = None
50
+ self.discriminator = None
51
+
52
+ if file_name is not None:
53
+ self.file_name = file_name
54
+ if link is not None:
55
+ self.link = link
56
+ if bucket_name is not None:
57
+ self.bucket_name = bucket_name
58
+
59
+ @property
60
+ def file_name(self):
61
+ """Gets the file_name of this DownloadSslCertResponse.
62
+
63
+ SSL证书文件名。
64
+
65
+ :return: The file_name of this DownloadSslCertResponse.
66
+ :rtype: str
67
+ """
68
+ return self._file_name
69
+
70
+ @file_name.setter
71
+ def file_name(self, file_name):
72
+ """Sets the file_name of this DownloadSslCertResponse.
73
+
74
+ SSL证书文件名。
75
+
76
+ :param file_name: The file_name of this DownloadSslCertResponse.
77
+ :type file_name: str
78
+ """
79
+ self._file_name = file_name
80
+
81
+ @property
82
+ def link(self):
83
+ """Gets the link of this DownloadSslCertResponse.
84
+
85
+ SSL证书下载链接。
86
+
87
+ :return: The link of this DownloadSslCertResponse.
88
+ :rtype: str
89
+ """
90
+ return self._link
91
+
92
+ @link.setter
93
+ def link(self, link):
94
+ """Sets the link of this DownloadSslCertResponse.
95
+
96
+ SSL证书下载链接。
97
+
98
+ :param link: The link of this DownloadSslCertResponse.
99
+ :type link: str
100
+ """
101
+ self._link = link
102
+
103
+ @property
104
+ def bucket_name(self):
105
+ """Gets the bucket_name of this DownloadSslCertResponse.
106
+
107
+ 保存SSL证书的obs桶名。
108
+
109
+ :return: The bucket_name of this DownloadSslCertResponse.
110
+ :rtype: str
111
+ """
112
+ return self._bucket_name
113
+
114
+ @bucket_name.setter
115
+ def bucket_name(self, bucket_name):
116
+ """Sets the bucket_name of this DownloadSslCertResponse.
117
+
118
+ 保存SSL证书的obs桶名。
119
+
120
+ :param bucket_name: The bucket_name of this DownloadSslCertResponse.
121
+ :type bucket_name: str
122
+ """
123
+ self._bucket_name = bucket_name
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, DownloadSslCertResponse):
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,114 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ShowInstanceSslDetailRequest:
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
+ 'instance_id': 'str'
21
+ }
22
+
23
+ attribute_map = {
24
+ 'instance_id': 'instance_id'
25
+ }
26
+
27
+ def __init__(self, instance_id=None):
28
+ """ShowInstanceSslDetailRequest
29
+
30
+ The model defined in huaweicloud sdk
31
+
32
+ :param instance_id: 实例ID。
33
+ :type instance_id: str
34
+ """
35
+
36
+
37
+
38
+ self._instance_id = None
39
+ self.discriminator = None
40
+
41
+ self.instance_id = instance_id
42
+
43
+ @property
44
+ def instance_id(self):
45
+ """Gets the instance_id of this ShowInstanceSslDetailRequest.
46
+
47
+ 实例ID。
48
+
49
+ :return: The instance_id of this ShowInstanceSslDetailRequest.
50
+ :rtype: str
51
+ """
52
+ return self._instance_id
53
+
54
+ @instance_id.setter
55
+ def instance_id(self, instance_id):
56
+ """Sets the instance_id of this ShowInstanceSslDetailRequest.
57
+
58
+ 实例ID。
59
+
60
+ :param instance_id: The instance_id of this ShowInstanceSslDetailRequest.
61
+ :type instance_id: str
62
+ """
63
+ self._instance_id = instance_id
64
+
65
+ def to_dict(self):
66
+ """Returns the model properties as a dict"""
67
+ result = {}
68
+
69
+ for attr, _ in six.iteritems(self.openapi_types):
70
+ value = getattr(self, attr)
71
+ if isinstance(value, list):
72
+ result[attr] = list(map(
73
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
74
+ value
75
+ ))
76
+ elif hasattr(value, "to_dict"):
77
+ result[attr] = value.to_dict()
78
+ elif isinstance(value, dict):
79
+ result[attr] = dict(map(
80
+ lambda item: (item[0], item[1].to_dict())
81
+ if hasattr(item[1], "to_dict") else item,
82
+ value.items()
83
+ ))
84
+ else:
85
+ if attr in self.sensitive_list:
86
+ result[attr] = "****"
87
+ else:
88
+ result[attr] = value
89
+
90
+ return result
91
+
92
+ def to_str(self):
93
+ """Returns the string representation of the model"""
94
+ import simplejson as json
95
+ if six.PY2:
96
+ import sys
97
+ reload(sys)
98
+ sys.setdefaultencoding("utf-8")
99
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
100
+
101
+ def __repr__(self):
102
+ """For `print`"""
103
+ return self.to_str()
104
+
105
+ def __eq__(self, other):
106
+ """Returns true if both objects are equal"""
107
+ if not isinstance(other, ShowInstanceSslDetailRequest):
108
+ return False
109
+
110
+ return self.__dict__ == other.__dict__
111
+
112
+ def __ne__(self, other):
113
+ """Returns true if both objects are not equal"""
114
+ return not self == other
@@ -0,0 +1,261 @@
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 ShowInstanceSslDetailResponse(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
+ 'enabled': 'bool',
22
+ 'ip': 'str',
23
+ 'port': 'str',
24
+ 'domain_name': 'str',
25
+ 'ssl_expired_at': 'str',
26
+ 'ssl_validated': 'bool'
27
+ }
28
+
29
+ attribute_map = {
30
+ 'enabled': 'enabled',
31
+ 'ip': 'ip',
32
+ 'port': 'port',
33
+ 'domain_name': 'domain_name',
34
+ 'ssl_expired_at': 'ssl_expired_at',
35
+ 'ssl_validated': 'ssl_validated'
36
+ }
37
+
38
+ def __init__(self, enabled=None, ip=None, port=None, domain_name=None, ssl_expired_at=None, ssl_validated=None):
39
+ """ShowInstanceSslDetailResponse
40
+
41
+ The model defined in huaweicloud sdk
42
+
43
+ :param enabled: 开启或关闭SSL。true:开启/false:关闭
44
+ :type enabled: bool
45
+ :param ip: SSL连接IP。
46
+ :type ip: str
47
+ :param port: SSL连接端口。
48
+ :type port: str
49
+ :param domain_name: SSL连接域名。
50
+ :type domain_name: str
51
+ :param ssl_expired_at: SSL证书有效期(UTC时间)。
52
+ :type ssl_expired_at: str
53
+ :param ssl_validated: SSL证书是否有效。
54
+ :type ssl_validated: bool
55
+ """
56
+
57
+ super(ShowInstanceSslDetailResponse, self).__init__()
58
+
59
+ self._enabled = None
60
+ self._ip = None
61
+ self._port = None
62
+ self._domain_name = None
63
+ self._ssl_expired_at = None
64
+ self._ssl_validated = None
65
+ self.discriminator = None
66
+
67
+ if enabled is not None:
68
+ self.enabled = enabled
69
+ if ip is not None:
70
+ self.ip = ip
71
+ if port is not None:
72
+ self.port = port
73
+ if domain_name is not None:
74
+ self.domain_name = domain_name
75
+ if ssl_expired_at is not None:
76
+ self.ssl_expired_at = ssl_expired_at
77
+ if ssl_validated is not None:
78
+ self.ssl_validated = ssl_validated
79
+
80
+ @property
81
+ def enabled(self):
82
+ """Gets the enabled of this ShowInstanceSslDetailResponse.
83
+
84
+ 开启或关闭SSL。true:开启/false:关闭
85
+
86
+ :return: The enabled of this ShowInstanceSslDetailResponse.
87
+ :rtype: bool
88
+ """
89
+ return self._enabled
90
+
91
+ @enabled.setter
92
+ def enabled(self, enabled):
93
+ """Sets the enabled of this ShowInstanceSslDetailResponse.
94
+
95
+ 开启或关闭SSL。true:开启/false:关闭
96
+
97
+ :param enabled: The enabled of this ShowInstanceSslDetailResponse.
98
+ :type enabled: bool
99
+ """
100
+ self._enabled = enabled
101
+
102
+ @property
103
+ def ip(self):
104
+ """Gets the ip of this ShowInstanceSslDetailResponse.
105
+
106
+ SSL连接IP。
107
+
108
+ :return: The ip of this ShowInstanceSslDetailResponse.
109
+ :rtype: str
110
+ """
111
+ return self._ip
112
+
113
+ @ip.setter
114
+ def ip(self, ip):
115
+ """Sets the ip of this ShowInstanceSslDetailResponse.
116
+
117
+ SSL连接IP。
118
+
119
+ :param ip: The ip of this ShowInstanceSslDetailResponse.
120
+ :type ip: str
121
+ """
122
+ self._ip = ip
123
+
124
+ @property
125
+ def port(self):
126
+ """Gets the port of this ShowInstanceSslDetailResponse.
127
+
128
+ SSL连接端口。
129
+
130
+ :return: The port of this ShowInstanceSslDetailResponse.
131
+ :rtype: str
132
+ """
133
+ return self._port
134
+
135
+ @port.setter
136
+ def port(self, port):
137
+ """Sets the port of this ShowInstanceSslDetailResponse.
138
+
139
+ SSL连接端口。
140
+
141
+ :param port: The port of this ShowInstanceSslDetailResponse.
142
+ :type port: str
143
+ """
144
+ self._port = port
145
+
146
+ @property
147
+ def domain_name(self):
148
+ """Gets the domain_name of this ShowInstanceSslDetailResponse.
149
+
150
+ SSL连接域名。
151
+
152
+ :return: The domain_name of this ShowInstanceSslDetailResponse.
153
+ :rtype: str
154
+ """
155
+ return self._domain_name
156
+
157
+ @domain_name.setter
158
+ def domain_name(self, domain_name):
159
+ """Sets the domain_name of this ShowInstanceSslDetailResponse.
160
+
161
+ SSL连接域名。
162
+
163
+ :param domain_name: The domain_name of this ShowInstanceSslDetailResponse.
164
+ :type domain_name: str
165
+ """
166
+ self._domain_name = domain_name
167
+
168
+ @property
169
+ def ssl_expired_at(self):
170
+ """Gets the ssl_expired_at of this ShowInstanceSslDetailResponse.
171
+
172
+ SSL证书有效期(UTC时间)。
173
+
174
+ :return: The ssl_expired_at of this ShowInstanceSslDetailResponse.
175
+ :rtype: str
176
+ """
177
+ return self._ssl_expired_at
178
+
179
+ @ssl_expired_at.setter
180
+ def ssl_expired_at(self, ssl_expired_at):
181
+ """Sets the ssl_expired_at of this ShowInstanceSslDetailResponse.
182
+
183
+ SSL证书有效期(UTC时间)。
184
+
185
+ :param ssl_expired_at: The ssl_expired_at of this ShowInstanceSslDetailResponse.
186
+ :type ssl_expired_at: str
187
+ """
188
+ self._ssl_expired_at = ssl_expired_at
189
+
190
+ @property
191
+ def ssl_validated(self):
192
+ """Gets the ssl_validated of this ShowInstanceSslDetailResponse.
193
+
194
+ SSL证书是否有效。
195
+
196
+ :return: The ssl_validated of this ShowInstanceSslDetailResponse.
197
+ :rtype: bool
198
+ """
199
+ return self._ssl_validated
200
+
201
+ @ssl_validated.setter
202
+ def ssl_validated(self, ssl_validated):
203
+ """Sets the ssl_validated of this ShowInstanceSslDetailResponse.
204
+
205
+ SSL证书是否有效。
206
+
207
+ :param ssl_validated: The ssl_validated of this ShowInstanceSslDetailResponse.
208
+ :type ssl_validated: bool
209
+ """
210
+ self._ssl_validated = ssl_validated
211
+
212
+ def to_dict(self):
213
+ """Returns the model properties as a dict"""
214
+ result = {}
215
+
216
+ for attr, _ in six.iteritems(self.openapi_types):
217
+ value = getattr(self, attr)
218
+ if isinstance(value, list):
219
+ result[attr] = list(map(
220
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
221
+ value
222
+ ))
223
+ elif hasattr(value, "to_dict"):
224
+ result[attr] = value.to_dict()
225
+ elif isinstance(value, dict):
226
+ result[attr] = dict(map(
227
+ lambda item: (item[0], item[1].to_dict())
228
+ if hasattr(item[1], "to_dict") else item,
229
+ value.items()
230
+ ))
231
+ else:
232
+ if attr in self.sensitive_list:
233
+ result[attr] = "****"
234
+ else:
235
+ result[attr] = value
236
+
237
+ return result
238
+
239
+ def to_str(self):
240
+ """Returns the string representation of the model"""
241
+ import simplejson as json
242
+ if six.PY2:
243
+ import sys
244
+ reload(sys)
245
+ sys.setdefaultencoding("utf-8")
246
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
247
+
248
+ def __repr__(self):
249
+ """For `print`"""
250
+ return self.to_str()
251
+
252
+ def __eq__(self, other):
253
+ """Returns true if both objects are equal"""
254
+ if not isinstance(other, ShowInstanceSslDetailResponse):
255
+ return False
256
+
257
+ return self.__dict__ == other.__dict__
258
+
259
+ def __ne__(self, other):
260
+ """Returns true if both objects are not equal"""
261
+ return not self == other
@@ -0,0 +1,139 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class UpdateSslSwitchRequest:
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
+ 'instance_id': 'str',
21
+ 'body': 'UpdateSSLSwitchRequestBody'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'instance_id': 'instance_id',
26
+ 'body': 'body'
27
+ }
28
+
29
+ def __init__(self, instance_id=None, body=None):
30
+ """UpdateSslSwitchRequest
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param instance_id: 实例ID。
35
+ :type instance_id: str
36
+ :param body: Body of the UpdateSslSwitchRequest
37
+ :type body: :class:`huaweicloudsdkdcs.v2.UpdateSSLSwitchRequestBody`
38
+ """
39
+
40
+
41
+
42
+ self._instance_id = None
43
+ self._body = None
44
+ self.discriminator = None
45
+
46
+ self.instance_id = instance_id
47
+ if body is not None:
48
+ self.body = body
49
+
50
+ @property
51
+ def instance_id(self):
52
+ """Gets the instance_id of this UpdateSslSwitchRequest.
53
+
54
+ 实例ID。
55
+
56
+ :return: The instance_id of this UpdateSslSwitchRequest.
57
+ :rtype: str
58
+ """
59
+ return self._instance_id
60
+
61
+ @instance_id.setter
62
+ def instance_id(self, instance_id):
63
+ """Sets the instance_id of this UpdateSslSwitchRequest.
64
+
65
+ 实例ID。
66
+
67
+ :param instance_id: The instance_id of this UpdateSslSwitchRequest.
68
+ :type instance_id: str
69
+ """
70
+ self._instance_id = instance_id
71
+
72
+ @property
73
+ def body(self):
74
+ """Gets the body of this UpdateSslSwitchRequest.
75
+
76
+ :return: The body of this UpdateSslSwitchRequest.
77
+ :rtype: :class:`huaweicloudsdkdcs.v2.UpdateSSLSwitchRequestBody`
78
+ """
79
+ return self._body
80
+
81
+ @body.setter
82
+ def body(self, body):
83
+ """Sets the body of this UpdateSslSwitchRequest.
84
+
85
+ :param body: The body of this UpdateSslSwitchRequest.
86
+ :type body: :class:`huaweicloudsdkdcs.v2.UpdateSSLSwitchRequestBody`
87
+ """
88
+ self._body = body
89
+
90
+ def to_dict(self):
91
+ """Returns the model properties as a dict"""
92
+ result = {}
93
+
94
+ for attr, _ in six.iteritems(self.openapi_types):
95
+ value = getattr(self, attr)
96
+ if isinstance(value, list):
97
+ result[attr] = list(map(
98
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
99
+ value
100
+ ))
101
+ elif hasattr(value, "to_dict"):
102
+ result[attr] = value.to_dict()
103
+ elif isinstance(value, dict):
104
+ result[attr] = dict(map(
105
+ lambda item: (item[0], item[1].to_dict())
106
+ if hasattr(item[1], "to_dict") else item,
107
+ value.items()
108
+ ))
109
+ else:
110
+ if attr in self.sensitive_list:
111
+ result[attr] = "****"
112
+ else:
113
+ result[attr] = value
114
+
115
+ return result
116
+
117
+ def to_str(self):
118
+ """Returns the string representation of the model"""
119
+ import simplejson as json
120
+ if six.PY2:
121
+ import sys
122
+ reload(sys)
123
+ sys.setdefaultencoding("utf-8")
124
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
125
+
126
+ def __repr__(self):
127
+ """For `print`"""
128
+ return self.to_str()
129
+
130
+ def __eq__(self, other):
131
+ """Returns true if both objects are equal"""
132
+ if not isinstance(other, UpdateSslSwitchRequest):
133
+ return False
134
+
135
+ return self.__dict__ == other.__dict__
136
+
137
+ def __ne__(self, other):
138
+ """Returns true if both objects are not equal"""
139
+ return not self == other