huaweicloudsdkoms 3.1.160__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.
Files changed (121) hide show
  1. huaweicloudsdkoms/__init__.py +0 -0
  2. huaweicloudsdkoms/v2/__init__.py +117 -0
  3. huaweicloudsdkoms/v2/model/__init__.py +114 -0
  4. huaweicloudsdkoms/v2/model/bandwidth_policy_dto.py +170 -0
  5. huaweicloudsdkoms/v2/model/batch_update_tasks_req.py +201 -0
  6. huaweicloudsdkoms/v2/model/batch_update_tasks_request.py +111 -0
  7. huaweicloudsdkoms/v2/model/batch_update_tasks_response.py +85 -0
  8. huaweicloudsdkoms/v2/model/check_prefix_req.py +343 -0
  9. huaweicloudsdkoms/v2/model/check_prefix_request.py +111 -0
  10. huaweicloudsdkoms/v2/model/check_prefix_response.py +116 -0
  11. huaweicloudsdkoms/v2/model/checked_key.py +173 -0
  12. huaweicloudsdkoms/v2/model/create_sync_events_request.py +139 -0
  13. huaweicloudsdkoms/v2/model/create_sync_events_response.py +85 -0
  14. huaweicloudsdkoms/v2/model/create_sync_task_req.py +567 -0
  15. huaweicloudsdkoms/v2/model/create_sync_task_request.py +111 -0
  16. huaweicloudsdkoms/v2/model/create_sync_task_response.py +116 -0
  17. huaweicloudsdkoms/v2/model/create_task_group_req.py +531 -0
  18. huaweicloudsdkoms/v2/model/create_task_group_request.py +111 -0
  19. huaweicloudsdkoms/v2/model/create_task_group_response.py +116 -0
  20. huaweicloudsdkoms/v2/model/create_task_req.py +561 -0
  21. huaweicloudsdkoms/v2/model/create_task_request.py +111 -0
  22. huaweicloudsdkoms/v2/model/create_task_response.py +145 -0
  23. huaweicloudsdkoms/v2/model/delete_sync_task_request.py +114 -0
  24. huaweicloudsdkoms/v2/model/delete_sync_task_response.py +85 -0
  25. huaweicloudsdkoms/v2/model/delete_task_group_request.py +114 -0
  26. huaweicloudsdkoms/v2/model/delete_task_group_response.py +85 -0
  27. huaweicloudsdkoms/v2/model/delete_task_request.py +114 -0
  28. huaweicloudsdkoms/v2/model/delete_task_response.py +85 -0
  29. huaweicloudsdkoms/v2/model/dst_node_req.py +256 -0
  30. huaweicloudsdkoms/v2/model/dst_node_resp.py +173 -0
  31. huaweicloudsdkoms/v2/model/error_reason_resp.py +144 -0
  32. huaweicloudsdkoms/v2/model/failed_object_record_dto.py +173 -0
  33. huaweicloudsdkoms/v2/model/link.py +144 -0
  34. huaweicloudsdkoms/v2/model/list_api_versions_request.py +84 -0
  35. huaweicloudsdkoms/v2/model/list_api_versions_response.py +116 -0
  36. huaweicloudsdkoms/v2/model/list_buckets_req.py +230 -0
  37. huaweicloudsdkoms/v2/model/list_file.py +171 -0
  38. huaweicloudsdkoms/v2/model/list_sync_task_statistic_request.py +198 -0
  39. huaweicloudsdkoms/v2/model/list_sync_task_statistic_response.py +174 -0
  40. huaweicloudsdkoms/v2/model/list_sync_tasks_request.py +173 -0
  41. huaweicloudsdkoms/v2/model/list_sync_tasks_response.py +145 -0
  42. huaweicloudsdkoms/v2/model/list_task_group_request.py +173 -0
  43. huaweicloudsdkoms/v2/model/list_task_group_response.py +145 -0
  44. huaweicloudsdkoms/v2/model/list_tasks_request.py +202 -0
  45. huaweicloudsdkoms/v2/model/list_tasks_response.py +145 -0
  46. huaweicloudsdkoms/v2/model/prefix_key_info.py +114 -0
  47. huaweicloudsdkoms/v2/model/region_info.py +173 -0
  48. huaweicloudsdkoms/v2/model/retry_task_group_req.py +289 -0
  49. huaweicloudsdkoms/v2/model/retry_task_group_request.py +139 -0
  50. huaweicloudsdkoms/v2/model/retry_task_group_response.py +85 -0
  51. huaweicloudsdkoms/v2/model/show_api_info_request.py +114 -0
  52. huaweicloudsdkoms/v2/model/show_api_info_response.py +203 -0
  53. huaweicloudsdkoms/v2/model/show_bucket_list_request.py +111 -0
  54. huaweicloudsdkoms/v2/model/show_bucket_list_response.py +112 -0
  55. huaweicloudsdkoms/v2/model/show_bucket_objects_request.py +111 -0
  56. huaweicloudsdkoms/v2/model/show_bucket_objects_response.py +174 -0
  57. huaweicloudsdkoms/v2/model/show_bucket_record.py +144 -0
  58. huaweicloudsdkoms/v2/model/show_bucket_region_req.py +258 -0
  59. huaweicloudsdkoms/v2/model/show_bucket_region_request.py +111 -0
  60. huaweicloudsdkoms/v2/model/show_bucket_region_response.py +174 -0
  61. huaweicloudsdkoms/v2/model/show_bucket_req.py +370 -0
  62. huaweicloudsdkoms/v2/model/show_cdn_info_req.py +304 -0
  63. huaweicloudsdkoms/v2/model/show_cdn_info_request.py +111 -0
  64. huaweicloudsdkoms/v2/model/show_cdn_info_response.py +174 -0
  65. huaweicloudsdkoms/v2/model/show_cloud_type_request.py +114 -0
  66. huaweicloudsdkoms/v2/model/show_cloud_type_response.py +112 -0
  67. huaweicloudsdkoms/v2/model/show_region_info_request.py +84 -0
  68. huaweicloudsdkoms/v2/model/show_region_info_resp.py +144 -0
  69. huaweicloudsdkoms/v2/model/show_region_info_response.py +112 -0
  70. huaweicloudsdkoms/v2/model/show_sync_task_request.py +142 -0
  71. huaweicloudsdkoms/v2/model/show_sync_task_response.py +725 -0
  72. huaweicloudsdkoms/v2/model/show_task_group_request.py +114 -0
  73. huaweicloudsdkoms/v2/model/show_task_group_response.py +1165 -0
  74. huaweicloudsdkoms/v2/model/show_task_request.py +114 -0
  75. huaweicloudsdkoms/v2/model/show_task_response.py +1194 -0
  76. huaweicloudsdkoms/v2/model/smn_config.py +200 -0
  77. huaweicloudsdkoms/v2/model/smn_info.py +173 -0
  78. huaweicloudsdkoms/v2/model/source_cdn_req.py +199 -0
  79. huaweicloudsdkoms/v2/model/source_cdn_resp.py +171 -0
  80. huaweicloudsdkoms/v2/model/src_node_req.py +372 -0
  81. huaweicloudsdkoms/v2/model/src_node_resp.py +256 -0
  82. huaweicloudsdkoms/v2/model/start_sync_task_req.py +227 -0
  83. huaweicloudsdkoms/v2/model/start_sync_task_request.py +139 -0
  84. huaweicloudsdkoms/v2/model/start_sync_task_response.py +85 -0
  85. huaweicloudsdkoms/v2/model/start_task_group_req.py +258 -0
  86. huaweicloudsdkoms/v2/model/start_task_group_request.py +139 -0
  87. huaweicloudsdkoms/v2/model/start_task_group_response.py +85 -0
  88. huaweicloudsdkoms/v2/model/start_task_req.py +345 -0
  89. huaweicloudsdkoms/v2/model/start_task_request.py +139 -0
  90. huaweicloudsdkoms/v2/model/start_task_response.py +85 -0
  91. huaweicloudsdkoms/v2/model/statistic_data.py +144 -0
  92. huaweicloudsdkoms/v2/model/statistic_type_data.py +144 -0
  93. huaweicloudsdkoms/v2/model/stop_sync_task_request.py +114 -0
  94. huaweicloudsdkoms/v2/model/stop_sync_task_response.py +85 -0
  95. huaweicloudsdkoms/v2/model/stop_task_group_request.py +114 -0
  96. huaweicloudsdkoms/v2/model/stop_task_group_response.py +85 -0
  97. huaweicloudsdkoms/v2/model/stop_task_request.py +114 -0
  98. huaweicloudsdkoms/v2/model/stop_task_response.py +85 -0
  99. huaweicloudsdkoms/v2/model/sync_object_req.py +114 -0
  100. huaweicloudsdkoms/v2/model/sync_task_info.py +604 -0
  101. huaweicloudsdkoms/v2/model/task_group_dst_node.py +256 -0
  102. huaweicloudsdkoms/v2/model/task_group_dst_node_resp.py +173 -0
  103. huaweicloudsdkoms/v2/model/task_group_resp.py +1164 -0
  104. huaweicloudsdkoms/v2/model/task_group_src_node.py +343 -0
  105. huaweicloudsdkoms/v2/model/task_group_src_node_resp.py +256 -0
  106. huaweicloudsdkoms/v2/model/task_resp.py +1193 -0
  107. huaweicloudsdkoms/v2/model/update_bandwidth_policy_req.py +114 -0
  108. huaweicloudsdkoms/v2/model/update_bandwidth_policy_request.py +139 -0
  109. huaweicloudsdkoms/v2/model/update_bandwidth_policy_response.py +85 -0
  110. huaweicloudsdkoms/v2/model/update_task_group_request.py +139 -0
  111. huaweicloudsdkoms/v2/model/update_task_group_response.py +85 -0
  112. huaweicloudsdkoms/v2/model/version.py +202 -0
  113. huaweicloudsdkoms/v2/oms_async_client.py +2263 -0
  114. huaweicloudsdkoms/v2/oms_client.py +2260 -0
  115. huaweicloudsdkoms/v2/region/__init__.py +0 -0
  116. huaweicloudsdkoms/v2/region/oms_region.py +91 -0
  117. huaweicloudsdkoms-3.1.160.dist-info/LICENSE +13 -0
  118. huaweicloudsdkoms-3.1.160.dist-info/METADATA +26 -0
  119. huaweicloudsdkoms-3.1.160.dist-info/RECORD +121 -0
  120. huaweicloudsdkoms-3.1.160.dist-info/WHEEL +5 -0
  121. huaweicloudsdkoms-3.1.160.dist-info/top_level.txt +1 -0
@@ -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 ListSyncTaskStatisticResponse(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
+ 'sync_task_id': 'str',
22
+ 'statistic_time_type': 'str',
23
+ 'statistic_datas': 'list[StatisticTypeData]'
24
+ }
25
+
26
+ attribute_map = {
27
+ 'sync_task_id': 'sync_task_id',
28
+ 'statistic_time_type': 'statistic_time_type',
29
+ 'statistic_datas': 'statistic_datas'
30
+ }
31
+
32
+ def __init__(self, sync_task_id=None, statistic_time_type=None, statistic_datas=None):
33
+ r"""ListSyncTaskStatisticResponse
34
+
35
+ The model defined in huaweicloud sdk
36
+
37
+ :param sync_task_id: 同步任务id
38
+ :type sync_task_id: str
39
+ :param statistic_time_type: 统计结果时间间隔说明描述 FIVE_MINUTES:5分钟 ONE_HOUR:1小时
40
+ :type statistic_time_type: str
41
+ :param statistic_datas: 查询的同步任务统计结果集
42
+ :type statistic_datas: list[:class:`huaweicloudsdkoms.v2.StatisticTypeData`]
43
+ """
44
+
45
+ super(ListSyncTaskStatisticResponse, self).__init__()
46
+
47
+ self._sync_task_id = None
48
+ self._statistic_time_type = None
49
+ self._statistic_datas = None
50
+ self.discriminator = None
51
+
52
+ if sync_task_id is not None:
53
+ self.sync_task_id = sync_task_id
54
+ if statistic_time_type is not None:
55
+ self.statistic_time_type = statistic_time_type
56
+ if statistic_datas is not None:
57
+ self.statistic_datas = statistic_datas
58
+
59
+ @property
60
+ def sync_task_id(self):
61
+ r"""Gets the sync_task_id of this ListSyncTaskStatisticResponse.
62
+
63
+ 同步任务id
64
+
65
+ :return: The sync_task_id of this ListSyncTaskStatisticResponse.
66
+ :rtype: str
67
+ """
68
+ return self._sync_task_id
69
+
70
+ @sync_task_id.setter
71
+ def sync_task_id(self, sync_task_id):
72
+ r"""Sets the sync_task_id of this ListSyncTaskStatisticResponse.
73
+
74
+ 同步任务id
75
+
76
+ :param sync_task_id: The sync_task_id of this ListSyncTaskStatisticResponse.
77
+ :type sync_task_id: str
78
+ """
79
+ self._sync_task_id = sync_task_id
80
+
81
+ @property
82
+ def statistic_time_type(self):
83
+ r"""Gets the statistic_time_type of this ListSyncTaskStatisticResponse.
84
+
85
+ 统计结果时间间隔说明描述 FIVE_MINUTES:5分钟 ONE_HOUR:1小时
86
+
87
+ :return: The statistic_time_type of this ListSyncTaskStatisticResponse.
88
+ :rtype: str
89
+ """
90
+ return self._statistic_time_type
91
+
92
+ @statistic_time_type.setter
93
+ def statistic_time_type(self, statistic_time_type):
94
+ r"""Sets the statistic_time_type of this ListSyncTaskStatisticResponse.
95
+
96
+ 统计结果时间间隔说明描述 FIVE_MINUTES:5分钟 ONE_HOUR:1小时
97
+
98
+ :param statistic_time_type: The statistic_time_type of this ListSyncTaskStatisticResponse.
99
+ :type statistic_time_type: str
100
+ """
101
+ self._statistic_time_type = statistic_time_type
102
+
103
+ @property
104
+ def statistic_datas(self):
105
+ r"""Gets the statistic_datas of this ListSyncTaskStatisticResponse.
106
+
107
+ 查询的同步任务统计结果集
108
+
109
+ :return: The statistic_datas of this ListSyncTaskStatisticResponse.
110
+ :rtype: list[:class:`huaweicloudsdkoms.v2.StatisticTypeData`]
111
+ """
112
+ return self._statistic_datas
113
+
114
+ @statistic_datas.setter
115
+ def statistic_datas(self, statistic_datas):
116
+ r"""Sets the statistic_datas of this ListSyncTaskStatisticResponse.
117
+
118
+ 查询的同步任务统计结果集
119
+
120
+ :param statistic_datas: The statistic_datas of this ListSyncTaskStatisticResponse.
121
+ :type statistic_datas: list[:class:`huaweicloudsdkoms.v2.StatisticTypeData`]
122
+ """
123
+ self._statistic_datas = statistic_datas
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, ListSyncTaskStatisticResponse):
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,173 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ListSyncTasksRequest:
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
+ 'limit': 'int',
21
+ 'offset': 'int',
22
+ 'status': 'str'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'limit': 'limit',
27
+ 'offset': 'offset',
28
+ 'status': 'status'
29
+ }
30
+
31
+ def __init__(self, limit=None, offset=None, status=None):
32
+ r"""ListSyncTasksRequest
33
+
34
+ The model defined in huaweicloud sdk
35
+
36
+ :param limit: 查询返回同步任务列表当前页面的数量,默认查询10条。 最多返回100条迁移任务信息。
37
+ :type limit: int
38
+ :param offset: 起始的任务序号,默认为0。 取值大于等于0,取值为0时从第一条开始查询。
39
+ :type offset: int
40
+ :param status: 同步任务状态(无该参数时代表查询所有状态的任务): SYNCHRONIZING:同步中 STOPPED:已停止
41
+ :type status: str
42
+ """
43
+
44
+
45
+
46
+ self._limit = None
47
+ self._offset = None
48
+ self._status = None
49
+ self.discriminator = None
50
+
51
+ if limit is not None:
52
+ self.limit = limit
53
+ if offset is not None:
54
+ self.offset = offset
55
+ if status is not None:
56
+ self.status = status
57
+
58
+ @property
59
+ def limit(self):
60
+ r"""Gets the limit of this ListSyncTasksRequest.
61
+
62
+ 查询返回同步任务列表当前页面的数量,默认查询10条。 最多返回100条迁移任务信息。
63
+
64
+ :return: The limit of this ListSyncTasksRequest.
65
+ :rtype: int
66
+ """
67
+ return self._limit
68
+
69
+ @limit.setter
70
+ def limit(self, limit):
71
+ r"""Sets the limit of this ListSyncTasksRequest.
72
+
73
+ 查询返回同步任务列表当前页面的数量,默认查询10条。 最多返回100条迁移任务信息。
74
+
75
+ :param limit: The limit of this ListSyncTasksRequest.
76
+ :type limit: int
77
+ """
78
+ self._limit = limit
79
+
80
+ @property
81
+ def offset(self):
82
+ r"""Gets the offset of this ListSyncTasksRequest.
83
+
84
+ 起始的任务序号,默认为0。 取值大于等于0,取值为0时从第一条开始查询。
85
+
86
+ :return: The offset of this ListSyncTasksRequest.
87
+ :rtype: int
88
+ """
89
+ return self._offset
90
+
91
+ @offset.setter
92
+ def offset(self, offset):
93
+ r"""Sets the offset of this ListSyncTasksRequest.
94
+
95
+ 起始的任务序号,默认为0。 取值大于等于0,取值为0时从第一条开始查询。
96
+
97
+ :param offset: The offset of this ListSyncTasksRequest.
98
+ :type offset: int
99
+ """
100
+ self._offset = offset
101
+
102
+ @property
103
+ def status(self):
104
+ r"""Gets the status of this ListSyncTasksRequest.
105
+
106
+ 同步任务状态(无该参数时代表查询所有状态的任务): SYNCHRONIZING:同步中 STOPPED:已停止
107
+
108
+ :return: The status of this ListSyncTasksRequest.
109
+ :rtype: str
110
+ """
111
+ return self._status
112
+
113
+ @status.setter
114
+ def status(self, status):
115
+ r"""Sets the status of this ListSyncTasksRequest.
116
+
117
+ 同步任务状态(无该参数时代表查询所有状态的任务): SYNCHRONIZING:同步中 STOPPED:已停止
118
+
119
+ :param status: The status of this ListSyncTasksRequest.
120
+ :type status: str
121
+ """
122
+ self._status = status
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, ListSyncTasksRequest):
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 ListSyncTasksResponse(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
+ 'tasks': 'list[SyncTaskInfo]',
22
+ 'count': 'int'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'tasks': 'tasks',
27
+ 'count': 'count'
28
+ }
29
+
30
+ def __init__(self, tasks=None, count=None):
31
+ r"""ListSyncTasksResponse
32
+
33
+ The model defined in huaweicloud sdk
34
+
35
+ :param tasks: 查询的同步任务详情
36
+ :type tasks: list[:class:`huaweicloudsdkoms.v2.SyncTaskInfo`]
37
+ :param count: 满足查询条件的同步任务总数
38
+ :type count: int
39
+ """
40
+
41
+ super(ListSyncTasksResponse, self).__init__()
42
+
43
+ self._tasks = None
44
+ self._count = None
45
+ self.discriminator = None
46
+
47
+ if tasks is not None:
48
+ self.tasks = tasks
49
+ if count is not None:
50
+ self.count = count
51
+
52
+ @property
53
+ def tasks(self):
54
+ r"""Gets the tasks of this ListSyncTasksResponse.
55
+
56
+ 查询的同步任务详情
57
+
58
+ :return: The tasks of this ListSyncTasksResponse.
59
+ :rtype: list[:class:`huaweicloudsdkoms.v2.SyncTaskInfo`]
60
+ """
61
+ return self._tasks
62
+
63
+ @tasks.setter
64
+ def tasks(self, tasks):
65
+ r"""Sets the tasks of this ListSyncTasksResponse.
66
+
67
+ 查询的同步任务详情
68
+
69
+ :param tasks: The tasks of this ListSyncTasksResponse.
70
+ :type tasks: list[:class:`huaweicloudsdkoms.v2.SyncTaskInfo`]
71
+ """
72
+ self._tasks = tasks
73
+
74
+ @property
75
+ def count(self):
76
+ r"""Gets the count of this ListSyncTasksResponse.
77
+
78
+ 满足查询条件的同步任务总数
79
+
80
+ :return: The count of this ListSyncTasksResponse.
81
+ :rtype: int
82
+ """
83
+ return self._count
84
+
85
+ @count.setter
86
+ def count(self, count):
87
+ r"""Sets the count of this ListSyncTasksResponse.
88
+
89
+ 满足查询条件的同步任务总数
90
+
91
+ :param count: The count of this ListSyncTasksResponse.
92
+ :type count: int
93
+ """
94
+ self._count = count
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, ListSyncTasksResponse):
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,173 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ListTaskGroupRequest:
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
+ 'limit': 'int',
21
+ 'offset': 'int',
22
+ 'status': 'int'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'limit': 'limit',
27
+ 'offset': 'offset',
28
+ 'status': 'status'
29
+ }
30
+
31
+ def __init__(self, limit=None, offset=None, status=None):
32
+ r"""ListTaskGroupRequest
33
+
34
+ The model defined in huaweicloud sdk
35
+
36
+ :param limit: 查询返回迁移组任务列表当前页面的数量,默认查询10条。 最多返回100条迁移任务信息。
37
+ :type limit: int
38
+ :param offset: 起始的任务序号,默认为0。 取值大于等于0,取值为0时从第一条开始查询。
39
+ :type offset: int
40
+ :param status: 迁移任务组状态(无该参数时代表查询所有状态的任务) 0 – 等待中 1 – 执行中/创建中 2 – 监控任务执行 3 – 暂停 4 – 创建任务失败 5 – 迁移失败 6 – 迁移完成 7 – 暂停中 8 – 等待删除中 9 – 删除
41
+ :type status: int
42
+ """
43
+
44
+
45
+
46
+ self._limit = None
47
+ self._offset = None
48
+ self._status = None
49
+ self.discriminator = None
50
+
51
+ if limit is not None:
52
+ self.limit = limit
53
+ if offset is not None:
54
+ self.offset = offset
55
+ if status is not None:
56
+ self.status = status
57
+
58
+ @property
59
+ def limit(self):
60
+ r"""Gets the limit of this ListTaskGroupRequest.
61
+
62
+ 查询返回迁移组任务列表当前页面的数量,默认查询10条。 最多返回100条迁移任务信息。
63
+
64
+ :return: The limit of this ListTaskGroupRequest.
65
+ :rtype: int
66
+ """
67
+ return self._limit
68
+
69
+ @limit.setter
70
+ def limit(self, limit):
71
+ r"""Sets the limit of this ListTaskGroupRequest.
72
+
73
+ 查询返回迁移组任务列表当前页面的数量,默认查询10条。 最多返回100条迁移任务信息。
74
+
75
+ :param limit: The limit of this ListTaskGroupRequest.
76
+ :type limit: int
77
+ """
78
+ self._limit = limit
79
+
80
+ @property
81
+ def offset(self):
82
+ r"""Gets the offset of this ListTaskGroupRequest.
83
+
84
+ 起始的任务序号,默认为0。 取值大于等于0,取值为0时从第一条开始查询。
85
+
86
+ :return: The offset of this ListTaskGroupRequest.
87
+ :rtype: int
88
+ """
89
+ return self._offset
90
+
91
+ @offset.setter
92
+ def offset(self, offset):
93
+ r"""Sets the offset of this ListTaskGroupRequest.
94
+
95
+ 起始的任务序号,默认为0。 取值大于等于0,取值为0时从第一条开始查询。
96
+
97
+ :param offset: The offset of this ListTaskGroupRequest.
98
+ :type offset: int
99
+ """
100
+ self._offset = offset
101
+
102
+ @property
103
+ def status(self):
104
+ r"""Gets the status of this ListTaskGroupRequest.
105
+
106
+ 迁移任务组状态(无该参数时代表查询所有状态的任务) 0 – 等待中 1 – 执行中/创建中 2 – 监控任务执行 3 – 暂停 4 – 创建任务失败 5 – 迁移失败 6 – 迁移完成 7 – 暂停中 8 – 等待删除中 9 – 删除
107
+
108
+ :return: The status of this ListTaskGroupRequest.
109
+ :rtype: int
110
+ """
111
+ return self._status
112
+
113
+ @status.setter
114
+ def status(self, status):
115
+ r"""Sets the status of this ListTaskGroupRequest.
116
+
117
+ 迁移任务组状态(无该参数时代表查询所有状态的任务) 0 – 等待中 1 – 执行中/创建中 2 – 监控任务执行 3 – 暂停 4 – 创建任务失败 5 – 迁移失败 6 – 迁移完成 7 – 暂停中 8 – 等待删除中 9 – 删除
118
+
119
+ :param status: The status of this ListTaskGroupRequest.
120
+ :type status: int
121
+ """
122
+ self._status = status
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, ListTaskGroupRequest):
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