huaweicloudsdkdrs 3.1.156__py2.py3-none-any.whl → 3.1.158__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.156.dist-info → huaweicloudsdkdrs-3.1.158.dist-info}/METADATA +2 -2
- {huaweicloudsdkdrs-3.1.156.dist-info → huaweicloudsdkdrs-3.1.158.dist-info}/RECORD +26 -15
- {huaweicloudsdkdrs-3.1.156.dist-info → huaweicloudsdkdrs-3.1.158.dist-info}/LICENSE +0 -0
- {huaweicloudsdkdrs-3.1.156.dist-info → huaweicloudsdkdrs-3.1.158.dist-info}/WHEEL +0 -0
- {huaweicloudsdkdrs-3.1.156.dist-info → huaweicloudsdkdrs-3.1.158.dist-info}/top_level.txt +0 -0
@@ -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 ExportJobsTemplateReq:
|
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
|
+
'jobs': 'list[str]'
|
21
|
+
}
|
22
|
+
|
23
|
+
attribute_map = {
|
24
|
+
'jobs': 'jobs'
|
25
|
+
}
|
26
|
+
|
27
|
+
def __init__(self, jobs=None):
|
28
|
+
r"""ExportJobsTemplateReq
|
29
|
+
|
30
|
+
The model defined in huaweicloud sdk
|
31
|
+
|
32
|
+
:param jobs: 需要导出的任务ID列表。
|
33
|
+
:type jobs: list[str]
|
34
|
+
"""
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
self._jobs = None
|
39
|
+
self.discriminator = None
|
40
|
+
|
41
|
+
self.jobs = jobs
|
42
|
+
|
43
|
+
@property
|
44
|
+
def jobs(self):
|
45
|
+
r"""Gets the jobs of this ExportJobsTemplateReq.
|
46
|
+
|
47
|
+
需要导出的任务ID列表。
|
48
|
+
|
49
|
+
:return: The jobs of this ExportJobsTemplateReq.
|
50
|
+
:rtype: list[str]
|
51
|
+
"""
|
52
|
+
return self._jobs
|
53
|
+
|
54
|
+
@jobs.setter
|
55
|
+
def jobs(self, jobs):
|
56
|
+
r"""Sets the jobs of this ExportJobsTemplateReq.
|
57
|
+
|
58
|
+
需要导出的任务ID列表。
|
59
|
+
|
60
|
+
:param jobs: The jobs of this ExportJobsTemplateReq.
|
61
|
+
:type jobs: list[str]
|
62
|
+
"""
|
63
|
+
self._jobs = jobs
|
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, ExportJobsTemplateReq):
|
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,144 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ExportReportObsFileRespExportReportObsFiles:
|
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
|
+
'file_name': 'str',
|
21
|
+
'last_modified': 'str'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'file_name': 'file_name',
|
26
|
+
'last_modified': 'last_modified'
|
27
|
+
}
|
28
|
+
|
29
|
+
def __init__(self, file_name=None, last_modified=None):
|
30
|
+
r"""ExportReportObsFileRespExportReportObsFiles
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
:param file_name: 文件名称。
|
35
|
+
:type file_name: str
|
36
|
+
:param last_modified: 最后修改时间。
|
37
|
+
:type last_modified: str
|
38
|
+
"""
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
self._file_name = None
|
43
|
+
self._last_modified = None
|
44
|
+
self.discriminator = None
|
45
|
+
|
46
|
+
if file_name is not None:
|
47
|
+
self.file_name = file_name
|
48
|
+
if last_modified is not None:
|
49
|
+
self.last_modified = last_modified
|
50
|
+
|
51
|
+
@property
|
52
|
+
def file_name(self):
|
53
|
+
r"""Gets the file_name of this ExportReportObsFileRespExportReportObsFiles.
|
54
|
+
|
55
|
+
文件名称。
|
56
|
+
|
57
|
+
:return: The file_name of this ExportReportObsFileRespExportReportObsFiles.
|
58
|
+
:rtype: str
|
59
|
+
"""
|
60
|
+
return self._file_name
|
61
|
+
|
62
|
+
@file_name.setter
|
63
|
+
def file_name(self, file_name):
|
64
|
+
r"""Sets the file_name of this ExportReportObsFileRespExportReportObsFiles.
|
65
|
+
|
66
|
+
文件名称。
|
67
|
+
|
68
|
+
:param file_name: The file_name of this ExportReportObsFileRespExportReportObsFiles.
|
69
|
+
:type file_name: str
|
70
|
+
"""
|
71
|
+
self._file_name = file_name
|
72
|
+
|
73
|
+
@property
|
74
|
+
def last_modified(self):
|
75
|
+
r"""Gets the last_modified of this ExportReportObsFileRespExportReportObsFiles.
|
76
|
+
|
77
|
+
最后修改时间。
|
78
|
+
|
79
|
+
:return: The last_modified of this ExportReportObsFileRespExportReportObsFiles.
|
80
|
+
:rtype: str
|
81
|
+
"""
|
82
|
+
return self._last_modified
|
83
|
+
|
84
|
+
@last_modified.setter
|
85
|
+
def last_modified(self, last_modified):
|
86
|
+
r"""Sets the last_modified of this ExportReportObsFileRespExportReportObsFiles.
|
87
|
+
|
88
|
+
最后修改时间。
|
89
|
+
|
90
|
+
:param last_modified: The last_modified of this ExportReportObsFileRespExportReportObsFiles.
|
91
|
+
:type last_modified: str
|
92
|
+
"""
|
93
|
+
self._last_modified = last_modified
|
94
|
+
|
95
|
+
def to_dict(self):
|
96
|
+
"""Returns the model properties as a dict"""
|
97
|
+
result = {}
|
98
|
+
|
99
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
100
|
+
value = getattr(self, attr)
|
101
|
+
if isinstance(value, list):
|
102
|
+
result[attr] = list(map(
|
103
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
104
|
+
value
|
105
|
+
))
|
106
|
+
elif hasattr(value, "to_dict"):
|
107
|
+
result[attr] = value.to_dict()
|
108
|
+
elif isinstance(value, dict):
|
109
|
+
result[attr] = dict(map(
|
110
|
+
lambda item: (item[0], item[1].to_dict())
|
111
|
+
if hasattr(item[1], "to_dict") else item,
|
112
|
+
value.items()
|
113
|
+
))
|
114
|
+
else:
|
115
|
+
if attr in self.sensitive_list:
|
116
|
+
result[attr] = "****"
|
117
|
+
else:
|
118
|
+
result[attr] = value
|
119
|
+
|
120
|
+
return result
|
121
|
+
|
122
|
+
def to_str(self):
|
123
|
+
"""Returns the string representation of the model"""
|
124
|
+
import simplejson as json
|
125
|
+
if six.PY2:
|
126
|
+
import sys
|
127
|
+
reload(sys)
|
128
|
+
sys.setdefaultencoding("utf-8")
|
129
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
130
|
+
|
131
|
+
def __repr__(self):
|
132
|
+
"""For `print`"""
|
133
|
+
return self.to_str()
|
134
|
+
|
135
|
+
def __eq__(self, other):
|
136
|
+
"""Returns true if both objects are equal"""
|
137
|
+
if not isinstance(other, ExportReportObsFileRespExportReportObsFiles):
|
138
|
+
return False
|
139
|
+
|
140
|
+
return self.__dict__ == other.__dict__
|
141
|
+
|
142
|
+
def __ne__(self, other):
|
143
|
+
"""Returns true if both objects are not equal"""
|
144
|
+
return not self == other
|
@@ -17,28 +17,35 @@ class ImportBatchCreateJobsRequestBody:
|
|
17
17
|
sensitive_list = []
|
18
18
|
|
19
19
|
openapi_types = {
|
20
|
-
'file': 'file'
|
20
|
+
'file': 'file',
|
21
|
+
'type': 'str'
|
21
22
|
}
|
22
23
|
|
23
24
|
attribute_map = {
|
24
|
-
'file': 'file'
|
25
|
+
'file': 'file',
|
26
|
+
'type': 'type'
|
25
27
|
}
|
26
28
|
|
27
|
-
def __init__(self, file=None):
|
29
|
+
def __init__(self, file=None, type=None):
|
28
30
|
r"""ImportBatchCreateJobsRequestBody
|
29
31
|
|
30
32
|
The model defined in huaweicloud sdk
|
31
33
|
|
32
34
|
:param file: 待上传的模板文件。
|
33
35
|
:type file: :class:`huaweicloudsdkcore.http.formdata.FormFile`
|
36
|
+
:param type: 任务类型,迁移,同步,灾备等。 - migration - sync - cloudDataGuard
|
37
|
+
:type type: str
|
34
38
|
"""
|
35
39
|
|
36
40
|
|
37
41
|
|
38
42
|
self._file = None
|
43
|
+
self._type = None
|
39
44
|
self.discriminator = None
|
40
45
|
|
41
46
|
self.file = file
|
47
|
+
if type is not None:
|
48
|
+
self.type = type
|
42
49
|
|
43
50
|
@property
|
44
51
|
def file(self):
|
@@ -62,6 +69,28 @@ class ImportBatchCreateJobsRequestBody:
|
|
62
69
|
"""
|
63
70
|
self._file = file
|
64
71
|
|
72
|
+
@property
|
73
|
+
def type(self):
|
74
|
+
r"""Gets the type of this ImportBatchCreateJobsRequestBody.
|
75
|
+
|
76
|
+
任务类型,迁移,同步,灾备等。 - migration - sync - cloudDataGuard
|
77
|
+
|
78
|
+
:return: The type of this ImportBatchCreateJobsRequestBody.
|
79
|
+
:rtype: str
|
80
|
+
"""
|
81
|
+
return self._type
|
82
|
+
|
83
|
+
@type.setter
|
84
|
+
def type(self, type):
|
85
|
+
r"""Sets the type of this ImportBatchCreateJobsRequestBody.
|
86
|
+
|
87
|
+
任务类型,迁移,同步,灾备等。 - migration - sync - cloudDataGuard
|
88
|
+
|
89
|
+
:param type: The type of this ImportBatchCreateJobsRequestBody.
|
90
|
+
:type type: str
|
91
|
+
"""
|
92
|
+
self._type = type
|
93
|
+
|
65
94
|
def to_dict(self):
|
66
95
|
"""Returns the model properties as a dict"""
|
67
96
|
result = {}
|
@@ -0,0 +1,173 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ListTemplatesRequest:
|
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
|
+
'offset': 'int',
|
22
|
+
'limit': 'int'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'x_language': 'X-Language',
|
27
|
+
'offset': 'offset',
|
28
|
+
'limit': 'limit'
|
29
|
+
}
|
30
|
+
|
31
|
+
def __init__(self, x_language=None, offset=None, limit=None):
|
32
|
+
r"""ListTemplatesRequest
|
33
|
+
|
34
|
+
The model defined in huaweicloud sdk
|
35
|
+
|
36
|
+
:param x_language: 请求语言类型。
|
37
|
+
:type x_language: str
|
38
|
+
:param offset: 偏移量,表示查询该偏移量后面的记录。
|
39
|
+
:type offset: int
|
40
|
+
:param limit: 查询返回记录的数量限制。
|
41
|
+
:type limit: int
|
42
|
+
"""
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
self._x_language = None
|
47
|
+
self._offset = None
|
48
|
+
self._limit = None
|
49
|
+
self.discriminator = None
|
50
|
+
|
51
|
+
if x_language is not None:
|
52
|
+
self.x_language = x_language
|
53
|
+
if offset is not None:
|
54
|
+
self.offset = offset
|
55
|
+
if limit is not None:
|
56
|
+
self.limit = limit
|
57
|
+
|
58
|
+
@property
|
59
|
+
def x_language(self):
|
60
|
+
r"""Gets the x_language of this ListTemplatesRequest.
|
61
|
+
|
62
|
+
请求语言类型。
|
63
|
+
|
64
|
+
:return: The x_language of this ListTemplatesRequest.
|
65
|
+
:rtype: str
|
66
|
+
"""
|
67
|
+
return self._x_language
|
68
|
+
|
69
|
+
@x_language.setter
|
70
|
+
def x_language(self, x_language):
|
71
|
+
r"""Sets the x_language of this ListTemplatesRequest.
|
72
|
+
|
73
|
+
请求语言类型。
|
74
|
+
|
75
|
+
:param x_language: The x_language of this ListTemplatesRequest.
|
76
|
+
:type x_language: str
|
77
|
+
"""
|
78
|
+
self._x_language = x_language
|
79
|
+
|
80
|
+
@property
|
81
|
+
def offset(self):
|
82
|
+
r"""Gets the offset of this ListTemplatesRequest.
|
83
|
+
|
84
|
+
偏移量,表示查询该偏移量后面的记录。
|
85
|
+
|
86
|
+
:return: The offset of this ListTemplatesRequest.
|
87
|
+
:rtype: int
|
88
|
+
"""
|
89
|
+
return self._offset
|
90
|
+
|
91
|
+
@offset.setter
|
92
|
+
def offset(self, offset):
|
93
|
+
r"""Sets the offset of this ListTemplatesRequest.
|
94
|
+
|
95
|
+
偏移量,表示查询该偏移量后面的记录。
|
96
|
+
|
97
|
+
:param offset: The offset of this ListTemplatesRequest.
|
98
|
+
:type offset: int
|
99
|
+
"""
|
100
|
+
self._offset = offset
|
101
|
+
|
102
|
+
@property
|
103
|
+
def limit(self):
|
104
|
+
r"""Gets the limit of this ListTemplatesRequest.
|
105
|
+
|
106
|
+
查询返回记录的数量限制。
|
107
|
+
|
108
|
+
:return: The limit of this ListTemplatesRequest.
|
109
|
+
:rtype: int
|
110
|
+
"""
|
111
|
+
return self._limit
|
112
|
+
|
113
|
+
@limit.setter
|
114
|
+
def limit(self, limit):
|
115
|
+
r"""Sets the limit of this ListTemplatesRequest.
|
116
|
+
|
117
|
+
查询返回记录的数量限制。
|
118
|
+
|
119
|
+
:param limit: The limit of this ListTemplatesRequest.
|
120
|
+
:type limit: int
|
121
|
+
"""
|
122
|
+
self._limit = limit
|
123
|
+
|
124
|
+
def to_dict(self):
|
125
|
+
"""Returns the model properties as a dict"""
|
126
|
+
result = {}
|
127
|
+
|
128
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
129
|
+
value = getattr(self, attr)
|
130
|
+
if isinstance(value, list):
|
131
|
+
result[attr] = list(map(
|
132
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
133
|
+
value
|
134
|
+
))
|
135
|
+
elif hasattr(value, "to_dict"):
|
136
|
+
result[attr] = value.to_dict()
|
137
|
+
elif isinstance(value, dict):
|
138
|
+
result[attr] = dict(map(
|
139
|
+
lambda item: (item[0], item[1].to_dict())
|
140
|
+
if hasattr(item[1], "to_dict") else item,
|
141
|
+
value.items()
|
142
|
+
))
|
143
|
+
else:
|
144
|
+
if attr in self.sensitive_list:
|
145
|
+
result[attr] = "****"
|
146
|
+
else:
|
147
|
+
result[attr] = value
|
148
|
+
|
149
|
+
return result
|
150
|
+
|
151
|
+
def to_str(self):
|
152
|
+
"""Returns the string representation of the model"""
|
153
|
+
import simplejson as json
|
154
|
+
if six.PY2:
|
155
|
+
import sys
|
156
|
+
reload(sys)
|
157
|
+
sys.setdefaultencoding("utf-8")
|
158
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
159
|
+
|
160
|
+
def __repr__(self):
|
161
|
+
"""For `print`"""
|
162
|
+
return self.to_str()
|
163
|
+
|
164
|
+
def __eq__(self, other):
|
165
|
+
"""Returns true if both objects are equal"""
|
166
|
+
if not isinstance(other, ListTemplatesRequest):
|
167
|
+
return False
|
168
|
+
|
169
|
+
return self.__dict__ == other.__dict__
|
170
|
+
|
171
|
+
def __ne__(self, other):
|
172
|
+
"""Returns true if both objects are not equal"""
|
173
|
+
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 ListTemplatesResponse(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
|
+
'count': 'int',
|
22
|
+
'export_report_obs_files': 'list[ExportReportObsFileRespExportReportObsFiles]'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'count': 'count',
|
27
|
+
'export_report_obs_files': 'export_report_obs_files'
|
28
|
+
}
|
29
|
+
|
30
|
+
def __init__(self, count=None, export_report_obs_files=None):
|
31
|
+
r"""ListTemplatesResponse
|
32
|
+
|
33
|
+
The model defined in huaweicloud sdk
|
34
|
+
|
35
|
+
:param count: 总数。
|
36
|
+
:type count: int
|
37
|
+
:param export_report_obs_files: 文件列表。
|
38
|
+
:type export_report_obs_files: list[:class:`huaweicloudsdkdrs.v5.ExportReportObsFileRespExportReportObsFiles`]
|
39
|
+
"""
|
40
|
+
|
41
|
+
super(ListTemplatesResponse, self).__init__()
|
42
|
+
|
43
|
+
self._count = None
|
44
|
+
self._export_report_obs_files = None
|
45
|
+
self.discriminator = None
|
46
|
+
|
47
|
+
if count is not None:
|
48
|
+
self.count = count
|
49
|
+
if export_report_obs_files is not None:
|
50
|
+
self.export_report_obs_files = export_report_obs_files
|
51
|
+
|
52
|
+
@property
|
53
|
+
def count(self):
|
54
|
+
r"""Gets the count of this ListTemplatesResponse.
|
55
|
+
|
56
|
+
总数。
|
57
|
+
|
58
|
+
:return: The count of this ListTemplatesResponse.
|
59
|
+
:rtype: int
|
60
|
+
"""
|
61
|
+
return self._count
|
62
|
+
|
63
|
+
@count.setter
|
64
|
+
def count(self, count):
|
65
|
+
r"""Sets the count of this ListTemplatesResponse.
|
66
|
+
|
67
|
+
总数。
|
68
|
+
|
69
|
+
:param count: The count of this ListTemplatesResponse.
|
70
|
+
:type count: int
|
71
|
+
"""
|
72
|
+
self._count = count
|
73
|
+
|
74
|
+
@property
|
75
|
+
def export_report_obs_files(self):
|
76
|
+
r"""Gets the export_report_obs_files of this ListTemplatesResponse.
|
77
|
+
|
78
|
+
文件列表。
|
79
|
+
|
80
|
+
:return: The export_report_obs_files of this ListTemplatesResponse.
|
81
|
+
:rtype: list[:class:`huaweicloudsdkdrs.v5.ExportReportObsFileRespExportReportObsFiles`]
|
82
|
+
"""
|
83
|
+
return self._export_report_obs_files
|
84
|
+
|
85
|
+
@export_report_obs_files.setter
|
86
|
+
def export_report_obs_files(self, export_report_obs_files):
|
87
|
+
r"""Sets the export_report_obs_files of this ListTemplatesResponse.
|
88
|
+
|
89
|
+
文件列表。
|
90
|
+
|
91
|
+
:param export_report_obs_files: The export_report_obs_files of this ListTemplatesResponse.
|
92
|
+
:type export_report_obs_files: list[:class:`huaweicloudsdkdrs.v5.ExportReportObsFileRespExportReportObsFiles`]
|
93
|
+
"""
|
94
|
+
self._export_report_obs_files = export_report_obs_files
|
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, ListTemplatesResponse):
|
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
|