huaweicloudsdkdrs 3.1.157__py2.py3-none-any.whl → 3.1.159__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.
- huaweicloudsdkdrs/v3/model/data_compare_overview_info.py +119 -3
- huaweicloudsdkdrs/v3/model/node_content_compare_detail_result.py +119 -3
- huaweicloudsdkdrs/v3/model/node_content_compare_overview_result.py +119 -3
- huaweicloudsdkdrs/v3/model/query_job_resp.py +3 -3
- huaweicloudsdkdrs/v5/__init__.py +11 -0
- huaweicloudsdkdrs/v5/drs_async_client.py +274 -0
- huaweicloudsdkdrs/v5/drs_client.py +274 -0
- huaweicloudsdkdrs/v5/model/__init__.py +11 -0
- huaweicloudsdkdrs/v5/model/download_batch_create_template_request.py +32 -3
- huaweicloudsdkdrs/v5/model/download_create_template_request.py +140 -0
- huaweicloudsdkdrs/v5/model/download_create_template_response.py +85 -0
- huaweicloudsdkdrs/v5/model/export_creation_template_request.py +140 -0
- huaweicloudsdkdrs/v5/model/export_creation_template_response.py +145 -0
- huaweicloudsdkdrs/v5/model/export_files_req.py +114 -0
- huaweicloudsdkdrs/v5/model/export_jobs_template_req.py +114 -0
- huaweicloudsdkdrs/v5/model/export_report_obs_file_resp_export_report_obs_files.py +144 -0
- huaweicloudsdkdrs/v5/model/import_batch_create_jobs_request_body.py +32 -3
- huaweicloudsdkdrs/v5/model/list_templates_request.py +173 -0
- huaweicloudsdkdrs/v5/model/list_templates_response.py +145 -0
- huaweicloudsdkdrs/v5/model/show_export_progress_request.py +143 -0
- huaweicloudsdkdrs/v5/model/show_export_progress_response.py +116 -0
- {huaweicloudsdkdrs-3.1.157.dist-info → huaweicloudsdkdrs-3.1.159.dist-info}/METADATA +2 -2
- {huaweicloudsdkdrs-3.1.157.dist-info → huaweicloudsdkdrs-3.1.159.dist-info}/RECORD +26 -15
- {huaweicloudsdkdrs-3.1.157.dist-info → huaweicloudsdkdrs-3.1.159.dist-info}/LICENSE +0 -0
- {huaweicloudsdkdrs-3.1.157.dist-info → huaweicloudsdkdrs-3.1.159.dist-info}/WHEEL +0 -0
- {huaweicloudsdkdrs-3.1.157.dist-info → huaweicloudsdkdrs-3.1.159.dist-info}/top_level.txt +0 -0
@@ -17,29 +17,36 @@ class DownloadBatchCreateTemplateRequest:
|
|
17
17
|
sensitive_list = []
|
18
18
|
|
19
19
|
openapi_types = {
|
20
|
-
'x_language': 'str'
|
20
|
+
'x_language': 'str',
|
21
|
+
'engine_type': 'str'
|
21
22
|
}
|
22
23
|
|
23
24
|
attribute_map = {
|
24
|
-
'x_language': 'X-Language'
|
25
|
+
'x_language': 'X-Language',
|
26
|
+
'engine_type': 'engine_type'
|
25
27
|
}
|
26
28
|
|
27
|
-
def __init__(self, x_language=None):
|
29
|
+
def __init__(self, x_language=None, engine_type=None):
|
28
30
|
r"""DownloadBatchCreateTemplateRequest
|
29
31
|
|
30
32
|
The model defined in huaweicloud sdk
|
31
33
|
|
32
34
|
:param x_language: 请求语言类型。
|
33
35
|
:type x_language: str
|
36
|
+
:param engine_type: 数据库引擎。 - postgresql
|
37
|
+
:type engine_type: str
|
34
38
|
"""
|
35
39
|
|
36
40
|
|
37
41
|
|
38
42
|
self._x_language = None
|
43
|
+
self._engine_type = None
|
39
44
|
self.discriminator = None
|
40
45
|
|
41
46
|
if x_language is not None:
|
42
47
|
self.x_language = x_language
|
48
|
+
if engine_type is not None:
|
49
|
+
self.engine_type = engine_type
|
43
50
|
|
44
51
|
@property
|
45
52
|
def x_language(self):
|
@@ -63,6 +70,28 @@ class DownloadBatchCreateTemplateRequest:
|
|
63
70
|
"""
|
64
71
|
self._x_language = x_language
|
65
72
|
|
73
|
+
@property
|
74
|
+
def engine_type(self):
|
75
|
+
r"""Gets the engine_type of this DownloadBatchCreateTemplateRequest.
|
76
|
+
|
77
|
+
数据库引擎。 - postgresql
|
78
|
+
|
79
|
+
:return: The engine_type of this DownloadBatchCreateTemplateRequest.
|
80
|
+
:rtype: str
|
81
|
+
"""
|
82
|
+
return self._engine_type
|
83
|
+
|
84
|
+
@engine_type.setter
|
85
|
+
def engine_type(self, engine_type):
|
86
|
+
r"""Sets the engine_type of this DownloadBatchCreateTemplateRequest.
|
87
|
+
|
88
|
+
数据库引擎。 - postgresql
|
89
|
+
|
90
|
+
:param engine_type: The engine_type of this DownloadBatchCreateTemplateRequest.
|
91
|
+
:type engine_type: str
|
92
|
+
"""
|
93
|
+
self._engine_type = engine_type
|
94
|
+
|
66
95
|
def to_dict(self):
|
67
96
|
"""Returns the model properties as a dict"""
|
68
97
|
result = {}
|
@@ -0,0 +1,140 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class DownloadCreateTemplateRequest:
|
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_language': 'str',
|
21
|
+
'body': 'ExportFilesReq'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'x_language': 'X-Language',
|
26
|
+
'body': 'body'
|
27
|
+
}
|
28
|
+
|
29
|
+
def __init__(self, x_language=None, body=None):
|
30
|
+
r"""DownloadCreateTemplateRequest
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
:param x_language: 请求语言类型。
|
35
|
+
:type x_language: str
|
36
|
+
:param body: Body of the DownloadCreateTemplateRequest
|
37
|
+
:type body: :class:`huaweicloudsdkdrs.v5.ExportFilesReq`
|
38
|
+
"""
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
self._x_language = None
|
43
|
+
self._body = None
|
44
|
+
self.discriminator = None
|
45
|
+
|
46
|
+
if x_language is not None:
|
47
|
+
self.x_language = x_language
|
48
|
+
if body is not None:
|
49
|
+
self.body = body
|
50
|
+
|
51
|
+
@property
|
52
|
+
def x_language(self):
|
53
|
+
r"""Gets the x_language of this DownloadCreateTemplateRequest.
|
54
|
+
|
55
|
+
请求语言类型。
|
56
|
+
|
57
|
+
:return: The x_language of this DownloadCreateTemplateRequest.
|
58
|
+
:rtype: str
|
59
|
+
"""
|
60
|
+
return self._x_language
|
61
|
+
|
62
|
+
@x_language.setter
|
63
|
+
def x_language(self, x_language):
|
64
|
+
r"""Sets the x_language of this DownloadCreateTemplateRequest.
|
65
|
+
|
66
|
+
请求语言类型。
|
67
|
+
|
68
|
+
:param x_language: The x_language of this DownloadCreateTemplateRequest.
|
69
|
+
:type x_language: str
|
70
|
+
"""
|
71
|
+
self._x_language = x_language
|
72
|
+
|
73
|
+
@property
|
74
|
+
def body(self):
|
75
|
+
r"""Gets the body of this DownloadCreateTemplateRequest.
|
76
|
+
|
77
|
+
:return: The body of this DownloadCreateTemplateRequest.
|
78
|
+
:rtype: :class:`huaweicloudsdkdrs.v5.ExportFilesReq`
|
79
|
+
"""
|
80
|
+
return self._body
|
81
|
+
|
82
|
+
@body.setter
|
83
|
+
def body(self, body):
|
84
|
+
r"""Sets the body of this DownloadCreateTemplateRequest.
|
85
|
+
|
86
|
+
:param body: The body of this DownloadCreateTemplateRequest.
|
87
|
+
:type body: :class:`huaweicloudsdkdrs.v5.ExportFilesReq`
|
88
|
+
"""
|
89
|
+
self._body = body
|
90
|
+
|
91
|
+
def to_dict(self):
|
92
|
+
"""Returns the model properties as a dict"""
|
93
|
+
result = {}
|
94
|
+
|
95
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
96
|
+
value = getattr(self, attr)
|
97
|
+
if isinstance(value, list):
|
98
|
+
result[attr] = list(map(
|
99
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
100
|
+
value
|
101
|
+
))
|
102
|
+
elif hasattr(value, "to_dict"):
|
103
|
+
result[attr] = value.to_dict()
|
104
|
+
elif isinstance(value, dict):
|
105
|
+
result[attr] = dict(map(
|
106
|
+
lambda item: (item[0], item[1].to_dict())
|
107
|
+
if hasattr(item[1], "to_dict") else item,
|
108
|
+
value.items()
|
109
|
+
))
|
110
|
+
else:
|
111
|
+
if attr in self.sensitive_list:
|
112
|
+
result[attr] = "****"
|
113
|
+
else:
|
114
|
+
result[attr] = value
|
115
|
+
|
116
|
+
return result
|
117
|
+
|
118
|
+
def to_str(self):
|
119
|
+
"""Returns the string representation of the model"""
|
120
|
+
import simplejson as json
|
121
|
+
if six.PY2:
|
122
|
+
import sys
|
123
|
+
reload(sys)
|
124
|
+
sys.setdefaultencoding("utf-8")
|
125
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
126
|
+
|
127
|
+
def __repr__(self):
|
128
|
+
"""For `print`"""
|
129
|
+
return self.to_str()
|
130
|
+
|
131
|
+
def __eq__(self, other):
|
132
|
+
"""Returns true if both objects are equal"""
|
133
|
+
if not isinstance(other, DownloadCreateTemplateRequest):
|
134
|
+
return False
|
135
|
+
|
136
|
+
return self.__dict__ == other.__dict__
|
137
|
+
|
138
|
+
def __ne__(self, other):
|
139
|
+
"""Returns true if both objects are not equal"""
|
140
|
+
return not self == other
|
@@ -0,0 +1,85 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.sdk_stream_response import SdkStreamResponse
|
6
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
7
|
+
|
8
|
+
|
9
|
+
class DownloadCreateTemplateResponse(SdkStreamResponse):
|
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, response):
|
27
|
+
r"""DownloadCreateTemplateResponse
|
28
|
+
|
29
|
+
The model defined in huaweicloud sdk
|
30
|
+
|
31
|
+
"""
|
32
|
+
|
33
|
+
super(DownloadCreateTemplateResponse, self).__init__(response)
|
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, DownloadCreateTemplateResponse):
|
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,140 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ExportCreationTemplateRequest:
|
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_language': 'str',
|
21
|
+
'body': 'ExportJobsTemplateReq'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'x_language': 'X-Language',
|
26
|
+
'body': 'body'
|
27
|
+
}
|
28
|
+
|
29
|
+
def __init__(self, x_language=None, body=None):
|
30
|
+
r"""ExportCreationTemplateRequest
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
:param x_language: 请求语言类型。
|
35
|
+
:type x_language: str
|
36
|
+
:param body: Body of the ExportCreationTemplateRequest
|
37
|
+
:type body: :class:`huaweicloudsdkdrs.v5.ExportJobsTemplateReq`
|
38
|
+
"""
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
self._x_language = None
|
43
|
+
self._body = None
|
44
|
+
self.discriminator = None
|
45
|
+
|
46
|
+
if x_language is not None:
|
47
|
+
self.x_language = x_language
|
48
|
+
if body is not None:
|
49
|
+
self.body = body
|
50
|
+
|
51
|
+
@property
|
52
|
+
def x_language(self):
|
53
|
+
r"""Gets the x_language of this ExportCreationTemplateRequest.
|
54
|
+
|
55
|
+
请求语言类型。
|
56
|
+
|
57
|
+
:return: The x_language of this ExportCreationTemplateRequest.
|
58
|
+
:rtype: str
|
59
|
+
"""
|
60
|
+
return self._x_language
|
61
|
+
|
62
|
+
@x_language.setter
|
63
|
+
def x_language(self, x_language):
|
64
|
+
r"""Sets the x_language of this ExportCreationTemplateRequest.
|
65
|
+
|
66
|
+
请求语言类型。
|
67
|
+
|
68
|
+
:param x_language: The x_language of this ExportCreationTemplateRequest.
|
69
|
+
:type x_language: str
|
70
|
+
"""
|
71
|
+
self._x_language = x_language
|
72
|
+
|
73
|
+
@property
|
74
|
+
def body(self):
|
75
|
+
r"""Gets the body of this ExportCreationTemplateRequest.
|
76
|
+
|
77
|
+
:return: The body of this ExportCreationTemplateRequest.
|
78
|
+
:rtype: :class:`huaweicloudsdkdrs.v5.ExportJobsTemplateReq`
|
79
|
+
"""
|
80
|
+
return self._body
|
81
|
+
|
82
|
+
@body.setter
|
83
|
+
def body(self, body):
|
84
|
+
r"""Sets the body of this ExportCreationTemplateRequest.
|
85
|
+
|
86
|
+
:param body: The body of this ExportCreationTemplateRequest.
|
87
|
+
:type body: :class:`huaweicloudsdkdrs.v5.ExportJobsTemplateReq`
|
88
|
+
"""
|
89
|
+
self._body = body
|
90
|
+
|
91
|
+
def to_dict(self):
|
92
|
+
"""Returns the model properties as a dict"""
|
93
|
+
result = {}
|
94
|
+
|
95
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
96
|
+
value = getattr(self, attr)
|
97
|
+
if isinstance(value, list):
|
98
|
+
result[attr] = list(map(
|
99
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
100
|
+
value
|
101
|
+
))
|
102
|
+
elif hasattr(value, "to_dict"):
|
103
|
+
result[attr] = value.to_dict()
|
104
|
+
elif isinstance(value, dict):
|
105
|
+
result[attr] = dict(map(
|
106
|
+
lambda item: (item[0], item[1].to_dict())
|
107
|
+
if hasattr(item[1], "to_dict") else item,
|
108
|
+
value.items()
|
109
|
+
))
|
110
|
+
else:
|
111
|
+
if attr in self.sensitive_list:
|
112
|
+
result[attr] = "****"
|
113
|
+
else:
|
114
|
+
result[attr] = value
|
115
|
+
|
116
|
+
return result
|
117
|
+
|
118
|
+
def to_str(self):
|
119
|
+
"""Returns the string representation of the model"""
|
120
|
+
import simplejson as json
|
121
|
+
if six.PY2:
|
122
|
+
import sys
|
123
|
+
reload(sys)
|
124
|
+
sys.setdefaultencoding("utf-8")
|
125
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
126
|
+
|
127
|
+
def __repr__(self):
|
128
|
+
"""For `print`"""
|
129
|
+
return self.to_str()
|
130
|
+
|
131
|
+
def __eq__(self, other):
|
132
|
+
"""Returns true if both objects are equal"""
|
133
|
+
if not isinstance(other, ExportCreationTemplateRequest):
|
134
|
+
return False
|
135
|
+
|
136
|
+
return self.__dict__ == other.__dict__
|
137
|
+
|
138
|
+
def __ne__(self, other):
|
139
|
+
"""Returns true if both objects are not equal"""
|
140
|
+
return not self == other
|
@@ -0,0 +1,145 @@
|
|
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 ExportCreationTemplateResponse(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
|
+
'id': 'str',
|
22
|
+
'status': 'str'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'id': 'id',
|
27
|
+
'status': 'status'
|
28
|
+
}
|
29
|
+
|
30
|
+
def __init__(self, id=None, status=None):
|
31
|
+
r"""ExportCreationTemplateResponse
|
32
|
+
|
33
|
+
The model defined in huaweicloud sdk
|
34
|
+
|
35
|
+
:param id: 异步ID。
|
36
|
+
:type id: str
|
37
|
+
:param status: 状态。
|
38
|
+
:type status: str
|
39
|
+
"""
|
40
|
+
|
41
|
+
super(ExportCreationTemplateResponse, self).__init__()
|
42
|
+
|
43
|
+
self._id = None
|
44
|
+
self._status = None
|
45
|
+
self.discriminator = None
|
46
|
+
|
47
|
+
if id is not None:
|
48
|
+
self.id = id
|
49
|
+
if status is not None:
|
50
|
+
self.status = status
|
51
|
+
|
52
|
+
@property
|
53
|
+
def id(self):
|
54
|
+
r"""Gets the id of this ExportCreationTemplateResponse.
|
55
|
+
|
56
|
+
异步ID。
|
57
|
+
|
58
|
+
:return: The id of this ExportCreationTemplateResponse.
|
59
|
+
:rtype: str
|
60
|
+
"""
|
61
|
+
return self._id
|
62
|
+
|
63
|
+
@id.setter
|
64
|
+
def id(self, id):
|
65
|
+
r"""Sets the id of this ExportCreationTemplateResponse.
|
66
|
+
|
67
|
+
异步ID。
|
68
|
+
|
69
|
+
:param id: The id of this ExportCreationTemplateResponse.
|
70
|
+
:type id: str
|
71
|
+
"""
|
72
|
+
self._id = id
|
73
|
+
|
74
|
+
@property
|
75
|
+
def status(self):
|
76
|
+
r"""Gets the status of this ExportCreationTemplateResponse.
|
77
|
+
|
78
|
+
状态。
|
79
|
+
|
80
|
+
:return: The status of this ExportCreationTemplateResponse.
|
81
|
+
:rtype: str
|
82
|
+
"""
|
83
|
+
return self._status
|
84
|
+
|
85
|
+
@status.setter
|
86
|
+
def status(self, status):
|
87
|
+
r"""Sets the status of this ExportCreationTemplateResponse.
|
88
|
+
|
89
|
+
状态。
|
90
|
+
|
91
|
+
:param status: The status of this ExportCreationTemplateResponse.
|
92
|
+
:type status: str
|
93
|
+
"""
|
94
|
+
self._status = status
|
95
|
+
|
96
|
+
def to_dict(self):
|
97
|
+
"""Returns the model properties as a dict"""
|
98
|
+
result = {}
|
99
|
+
|
100
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
101
|
+
value = getattr(self, attr)
|
102
|
+
if isinstance(value, list):
|
103
|
+
result[attr] = list(map(
|
104
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
105
|
+
value
|
106
|
+
))
|
107
|
+
elif hasattr(value, "to_dict"):
|
108
|
+
result[attr] = value.to_dict()
|
109
|
+
elif isinstance(value, dict):
|
110
|
+
result[attr] = dict(map(
|
111
|
+
lambda item: (item[0], item[1].to_dict())
|
112
|
+
if hasattr(item[1], "to_dict") else item,
|
113
|
+
value.items()
|
114
|
+
))
|
115
|
+
else:
|
116
|
+
if attr in self.sensitive_list:
|
117
|
+
result[attr] = "****"
|
118
|
+
else:
|
119
|
+
result[attr] = value
|
120
|
+
|
121
|
+
return result
|
122
|
+
|
123
|
+
def to_str(self):
|
124
|
+
"""Returns the string representation of the model"""
|
125
|
+
import simplejson as json
|
126
|
+
if six.PY2:
|
127
|
+
import sys
|
128
|
+
reload(sys)
|
129
|
+
sys.setdefaultencoding("utf-8")
|
130
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
131
|
+
|
132
|
+
def __repr__(self):
|
133
|
+
"""For `print`"""
|
134
|
+
return self.to_str()
|
135
|
+
|
136
|
+
def __eq__(self, other):
|
137
|
+
"""Returns true if both objects are equal"""
|
138
|
+
if not isinstance(other, ExportCreationTemplateResponse):
|
139
|
+
return False
|
140
|
+
|
141
|
+
return self.__dict__ == other.__dict__
|
142
|
+
|
143
|
+
def __ne__(self, other):
|
144
|
+
"""Returns true if both objects are not equal"""
|
145
|
+
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 ExportFilesReq:
|
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
|
+
'files': 'list[str]'
|
21
|
+
}
|
22
|
+
|
23
|
+
attribute_map = {
|
24
|
+
'files': 'files'
|
25
|
+
}
|
26
|
+
|
27
|
+
def __init__(self, files=None):
|
28
|
+
r"""ExportFilesReq
|
29
|
+
|
30
|
+
The model defined in huaweicloud sdk
|
31
|
+
|
32
|
+
:param files: 需要下载的文件名称。
|
33
|
+
:type files: list[str]
|
34
|
+
"""
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
self._files = None
|
39
|
+
self.discriminator = None
|
40
|
+
|
41
|
+
self.files = files
|
42
|
+
|
43
|
+
@property
|
44
|
+
def files(self):
|
45
|
+
r"""Gets the files of this ExportFilesReq.
|
46
|
+
|
47
|
+
需要下载的文件名称。
|
48
|
+
|
49
|
+
:return: The files of this ExportFilesReq.
|
50
|
+
:rtype: list[str]
|
51
|
+
"""
|
52
|
+
return self._files
|
53
|
+
|
54
|
+
@files.setter
|
55
|
+
def files(self, files):
|
56
|
+
r"""Sets the files of this ExportFilesReq.
|
57
|
+
|
58
|
+
需要下载的文件名称。
|
59
|
+
|
60
|
+
:param files: The files of this ExportFilesReq.
|
61
|
+
:type files: list[str]
|
62
|
+
"""
|
63
|
+
self._files = files
|
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, ExportFilesReq):
|
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
|