huaweicloudsdksdrs 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.
- huaweicloudsdksdrs/__init__.py +0 -0
- huaweicloudsdksdrs/v1/__init__.py +173 -0
- huaweicloudsdksdrs/v1/model/__init__.py +170 -0
- huaweicloudsdksdrs/v1/model/add_protected_instance_nic_request.py +139 -0
- huaweicloudsdksdrs/v1/model/add_protected_instance_nic_response.py +116 -0
- huaweicloudsdksdrs/v1/model/add_protected_instance_tags_request.py +139 -0
- huaweicloudsdksdrs/v1/model/add_protected_instance_tags_response.py +85 -0
- huaweicloudsdksdrs/v1/model/attach_protected_instance_replication_request.py +139 -0
- huaweicloudsdksdrs/v1/model/attach_protected_instance_replication_response.py +116 -0
- huaweicloudsdksdrs/v1/model/batch_add_tags_request.py +139 -0
- huaweicloudsdksdrs/v1/model/batch_add_tags_request_body.py +142 -0
- huaweicloudsdksdrs/v1/model/batch_add_tags_response.py +85 -0
- huaweicloudsdksdrs/v1/model/batch_create_protected_instances_request.py +111 -0
- huaweicloudsdksdrs/v1/model/batch_create_protected_instances_request_body.py +110 -0
- huaweicloudsdksdrs/v1/model/batch_create_protected_instances_request_params.py +344 -0
- huaweicloudsdksdrs/v1/model/batch_create_protected_instances_response.py +116 -0
- huaweicloudsdksdrs/v1/model/batch_delete_protected_instances_request.py +111 -0
- huaweicloudsdksdrs/v1/model/batch_delete_protected_instances_request_body.py +172 -0
- huaweicloudsdksdrs/v1/model/batch_delete_protected_instances_response.py +116 -0
- huaweicloudsdksdrs/v1/model/batch_delete_tags_request.py +139 -0
- huaweicloudsdksdrs/v1/model/batch_delete_tags_request_body.py +142 -0
- huaweicloudsdksdrs/v1/model/batch_delete_tags_response.py +85 -0
- huaweicloudsdksdrs/v1/model/create_disaster_recovery_drill_request.py +111 -0
- huaweicloudsdksdrs/v1/model/create_disaster_recovery_drill_request_body.py +110 -0
- huaweicloudsdksdrs/v1/model/create_disaster_recovery_drill_request_params.py +171 -0
- huaweicloudsdksdrs/v1/model/create_disaster_recovery_drill_response.py +116 -0
- huaweicloudsdksdrs/v1/model/create_protected_instance_request.py +111 -0
- huaweicloudsdksdrs/v1/model/create_protected_instance_request_body.py +110 -0
- huaweicloudsdksdrs/v1/model/create_protected_instance_request_params.py +402 -0
- huaweicloudsdksdrs/v1/model/create_protected_instance_response.py +116 -0
- huaweicloudsdksdrs/v1/model/create_protection_group_request.py +111 -0
- huaweicloudsdksdrs/v1/model/create_protection_group_request_body.py +110 -0
- huaweicloudsdksdrs/v1/model/create_protection_group_request_params.py +284 -0
- huaweicloudsdksdrs/v1/model/create_protection_group_response.py +116 -0
- huaweicloudsdksdrs/v1/model/create_replication_request.py +111 -0
- huaweicloudsdksdrs/v1/model/create_replication_request_body.py +110 -0
- huaweicloudsdksdrs/v1/model/create_replication_request_params.py +228 -0
- huaweicloudsdksdrs/v1/model/create_replication_response.py +116 -0
- huaweicloudsdksdrs/v1/model/delete_all_server_group_failure_jobs_request.py +84 -0
- huaweicloudsdksdrs/v1/model/delete_all_server_group_failure_jobs_response.py +85 -0
- huaweicloudsdksdrs/v1/model/delete_disaster_recovery_drill_request.py +114 -0
- huaweicloudsdksdrs/v1/model/delete_disaster_recovery_drill_response.py +116 -0
- huaweicloudsdksdrs/v1/model/delete_failure_job_request.py +114 -0
- huaweicloudsdksdrs/v1/model/delete_failure_job_response.py +85 -0
- huaweicloudsdksdrs/v1/model/delete_protected_instance_nic_request.py +139 -0
- huaweicloudsdksdrs/v1/model/delete_protected_instance_nic_response.py +116 -0
- huaweicloudsdksdrs/v1/model/delete_protected_instance_request.py +139 -0
- huaweicloudsdksdrs/v1/model/delete_protected_instance_request_body.py +144 -0
- huaweicloudsdksdrs/v1/model/delete_protected_instance_response.py +116 -0
- huaweicloudsdksdrs/v1/model/delete_protected_instance_tag_request.py +142 -0
- huaweicloudsdksdrs/v1/model/delete_protected_instance_tag_response.py +85 -0
- huaweicloudsdksdrs/v1/model/delete_protection_group_request.py +114 -0
- huaweicloudsdksdrs/v1/model/delete_protection_group_response.py +116 -0
- huaweicloudsdksdrs/v1/model/delete_replication_request.py +139 -0
- huaweicloudsdksdrs/v1/model/delete_replication_request_body.py +110 -0
- huaweicloudsdksdrs/v1/model/delete_replication_request_params.py +144 -0
- huaweicloudsdksdrs/v1/model/delete_replication_response.py +116 -0
- huaweicloudsdksdrs/v1/model/delete_resource_tag.py +143 -0
- huaweicloudsdksdrs/v1/model/delete_server_group_failure_jobs_request.py +114 -0
- huaweicloudsdksdrs/v1/model/delete_server_group_failure_jobs_response.py +85 -0
- huaweicloudsdksdrs/v1/model/detach_protected_instance_replication_request.py +142 -0
- huaweicloudsdksdrs/v1/model/detach_protected_instance_replication_response.py +116 -0
- huaweicloudsdksdrs/v1/model/drill_server_params.py +142 -0
- huaweicloudsdksdrs/v1/model/expand_replication_request.py +139 -0
- huaweicloudsdksdrs/v1/model/expand_replication_response.py +116 -0
- huaweicloudsdksdrs/v1/model/extend_replication_request_body.py +110 -0
- huaweicloudsdksdrs/v1/model/extend_replication_request_params.py +114 -0
- huaweicloudsdksdrs/v1/model/failover_protection_group_request_body.py +114 -0
- huaweicloudsdksdrs/v1/model/failure_job_params.py +366 -0
- huaweicloudsdksdrs/v1/model/job_entities.py +289 -0
- huaweicloudsdksdrs/v1/model/list_active_active_domains_request.py +84 -0
- huaweicloudsdksdrs/v1/model/list_active_active_domains_response.py +116 -0
- huaweicloudsdksdrs/v1/model/list_api_versions_request.py +84 -0
- huaweicloudsdksdrs/v1/model/list_api_versions_response.py +116 -0
- huaweicloudsdksdrs/v1/model/list_disaster_recovery_drills_request.py +260 -0
- huaweicloudsdksdrs/v1/model/list_disaster_recovery_drills_response.py +145 -0
- huaweicloudsdksdrs/v1/model/list_failure_jobs_request.py +260 -0
- huaweicloudsdksdrs/v1/model/list_failure_jobs_response.py +145 -0
- huaweicloudsdksdrs/v1/model/list_protected_instance_tags_request.py +114 -0
- huaweicloudsdksdrs/v1/model/list_protected_instance_tags_response.py +116 -0
- huaweicloudsdksdrs/v1/model/list_protected_instances_by_tags_request.py +111 -0
- huaweicloudsdksdrs/v1/model/list_protected_instances_by_tags_request_body.py +317 -0
- huaweicloudsdksdrs/v1/model/list_protected_instances_by_tags_response.py +145 -0
- huaweicloudsdksdrs/v1/model/list_protected_instances_project_tags_request.py +84 -0
- huaweicloudsdksdrs/v1/model/list_protected_instances_project_tags_response.py +116 -0
- huaweicloudsdksdrs/v1/model/list_protected_instances_request.py +347 -0
- huaweicloudsdksdrs/v1/model/list_protected_instances_response.py +145 -0
- huaweicloudsdksdrs/v1/model/list_protection_groups_request.py +260 -0
- huaweicloudsdksdrs/v1/model/list_protection_groups_response.py +145 -0
- huaweicloudsdksdrs/v1/model/list_replications_request.py +376 -0
- huaweicloudsdksdrs/v1/model/list_replications_response.py +145 -0
- huaweicloudsdksdrs/v1/model/list_rpo_statistics_request.py +231 -0
- huaweicloudsdksdrs/v1/model/list_rpo_statistics_response.py +145 -0
- huaweicloudsdksdrs/v1/model/match_params.py +142 -0
- huaweicloudsdksdrs/v1/model/metadata_params.py +114 -0
- huaweicloudsdksdrs/v1/model/protected_instance_add_nic_request_body.py +172 -0
- huaweicloudsdksdrs/v1/model/protected_instance_add_tags_request_body.py +110 -0
- huaweicloudsdksdrs/v1/model/protected_instance_attach_replication_request_body.py +110 -0
- huaweicloudsdksdrs/v1/model/protected_instance_attach_replication_request_params.py +142 -0
- huaweicloudsdksdrs/v1/model/protected_instance_attachment.py +142 -0
- huaweicloudsdksdrs/v1/model/protected_instance_delete_nic_request_body.py +114 -0
- huaweicloudsdksdrs/v1/model/quota_params.py +114 -0
- huaweicloudsdksdrs/v1/model/quota_resource_params.py +226 -0
- huaweicloudsdksdrs/v1/model/replication_attachment.py +142 -0
- huaweicloudsdksdrs/v1/model/replication_cluster_params.py +114 -0
- huaweicloudsdksdrs/v1/model/replication_record_metadata.py +198 -0
- huaweicloudsdksdrs/v1/model/resize_protected_instance_request.py +139 -0
- huaweicloudsdksdrs/v1/model/resize_protected_instance_request_body.py +110 -0
- huaweicloudsdksdrs/v1/model/resize_protected_instance_request_params.py +231 -0
- huaweicloudsdksdrs/v1/model/resize_protected_instance_response.py +116 -0
- huaweicloudsdksdrs/v1/model/resource_id.py +114 -0
- huaweicloudsdksdrs/v1/model/resource_params.py +195 -0
- huaweicloudsdksdrs/v1/model/resource_tag.py +142 -0
- huaweicloudsdksdrs/v1/model/reverse_protection_group_request_body.py +110 -0
- huaweicloudsdksdrs/v1/model/reverse_protection_group_request_params.py +114 -0
- huaweicloudsdksdrs/v1/model/rpo_stattistics_params.py +254 -0
- huaweicloudsdksdrs/v1/model/security_groups_params.py +114 -0
- huaweicloudsdksdrs/v1/model/server_info.py +143 -0
- huaweicloudsdksdrs/v1/model/show_active_active_domain_params.py +246 -0
- huaweicloudsdksdrs/v1/model/show_api_version_links_params.py +142 -0
- huaweicloudsdksdrs/v1/model/show_api_version_params.py +254 -0
- huaweicloudsdksdrs/v1/model/show_disaster_recovery_drill_params.py +310 -0
- huaweicloudsdksdrs/v1/model/show_disaster_recovery_drill_request.py +114 -0
- huaweicloudsdksdrs/v1/model/show_disaster_recovery_drill_response.py +112 -0
- huaweicloudsdksdrs/v1/model/show_job_status_request.py +114 -0
- huaweicloudsdksdrs/v1/model/show_job_status_response.py +315 -0
- huaweicloudsdksdrs/v1/model/show_protected_instance_params.py +475 -0
- huaweicloudsdksdrs/v1/model/show_protected_instance_request.py +114 -0
- huaweicloudsdksdrs/v1/model/show_protected_instance_response.py +112 -0
- huaweicloudsdksdrs/v1/model/show_protection_group_params.py +786 -0
- huaweicloudsdksdrs/v1/model/show_protection_group_request.py +114 -0
- huaweicloudsdksdrs/v1/model/show_protection_group_response.py +112 -0
- huaweicloudsdksdrs/v1/model/show_quota_request.py +84 -0
- huaweicloudsdksdrs/v1/model/show_quota_response.py +112 -0
- huaweicloudsdksdrs/v1/model/show_replication_params.py +530 -0
- huaweicloudsdksdrs/v1/model/show_replication_request.py +114 -0
- huaweicloudsdksdrs/v1/model/show_replication_response.py +112 -0
- huaweicloudsdksdrs/v1/model/show_specified_api_version_request.py +114 -0
- huaweicloudsdksdrs/v1/model/show_specified_api_version_response.py +112 -0
- huaweicloudsdksdrs/v1/model/start_failover_protection_group_request.py +139 -0
- huaweicloudsdksdrs/v1/model/start_failover_protection_group_response.py +116 -0
- huaweicloudsdksdrs/v1/model/start_protection_group_request.py +139 -0
- huaweicloudsdksdrs/v1/model/start_protection_group_request_body.py +114 -0
- huaweicloudsdksdrs/v1/model/start_protection_group_response.py +116 -0
- huaweicloudsdksdrs/v1/model/start_reverse_protection_group_request.py +139 -0
- huaweicloudsdksdrs/v1/model/start_reverse_protection_group_response.py +116 -0
- huaweicloudsdksdrs/v1/model/stop_protection_group_request.py +139 -0
- huaweicloudsdksdrs/v1/model/stop_protection_group_request_body.py +114 -0
- huaweicloudsdksdrs/v1/model/stop_protection_group_response.py +116 -0
- huaweicloudsdksdrs/v1/model/sub_job_entities.py +260 -0
- huaweicloudsdksdrs/v1/model/sub_job_params.py +306 -0
- huaweicloudsdksdrs/v1/model/tag_params.py +142 -0
- huaweicloudsdksdrs/v1/model/update_disaster_recovery_drill_name_request.py +139 -0
- huaweicloudsdksdrs/v1/model/update_disaster_recovery_drill_name_request_body.py +110 -0
- huaweicloudsdksdrs/v1/model/update_disaster_recovery_drill_name_request_params.py +114 -0
- huaweicloudsdksdrs/v1/model/update_disaster_recovery_drill_name_response.py +112 -0
- huaweicloudsdksdrs/v1/model/update_protected_instance_name_request.py +139 -0
- huaweicloudsdksdrs/v1/model/update_protected_instance_name_request_body.py +110 -0
- huaweicloudsdksdrs/v1/model/update_protected_instance_name_request_params.py +114 -0
- huaweicloudsdksdrs/v1/model/update_protected_instance_name_response.py +112 -0
- huaweicloudsdksdrs/v1/model/update_protection_group_name_request.py +139 -0
- huaweicloudsdksdrs/v1/model/update_protection_group_name_request_body.py +110 -0
- huaweicloudsdksdrs/v1/model/update_protection_group_name_request_params.py +114 -0
- huaweicloudsdksdrs/v1/model/update_protection_group_name_response.py +112 -0
- huaweicloudsdksdrs/v1/model/update_replication_name_request.py +139 -0
- huaweicloudsdksdrs/v1/model/update_replication_name_request_body.py +110 -0
- huaweicloudsdksdrs/v1/model/update_replication_name_request_params.py +114 -0
- huaweicloudsdksdrs/v1/model/update_replication_name_response.py +112 -0
- huaweicloudsdksdrs/v1/region/__init__.py +0 -0
- huaweicloudsdksdrs/v1/region/sdrs_region.py +49 -0
- huaweicloudsdksdrs/v1/sdrs_async_client.py +3390 -0
- huaweicloudsdksdrs/v1/sdrs_client.py +3387 -0
- huaweicloudsdksdrs-3.1.160.dist-info/LICENSE +13 -0
- huaweicloudsdksdrs-3.1.160.dist-info/METADATA +26 -0
- huaweicloudsdksdrs-3.1.160.dist-info/RECORD +177 -0
- huaweicloudsdksdrs-3.1.160.dist-info/WHEEL +5 -0
- huaweicloudsdksdrs-3.1.160.dist-info/top_level.txt +1 -0
@@ -0,0 +1,231 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ListRpoStatisticsRequest:
|
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
|
+
'start_time': 'str',
|
23
|
+
'end_time': 'str',
|
24
|
+
'resource_type': 'str'
|
25
|
+
}
|
26
|
+
|
27
|
+
attribute_map = {
|
28
|
+
'limit': 'limit',
|
29
|
+
'offset': 'offset',
|
30
|
+
'start_time': 'start_time',
|
31
|
+
'end_time': 'end_time',
|
32
|
+
'resource_type': 'resource_type'
|
33
|
+
}
|
34
|
+
|
35
|
+
def __init__(self, limit=None, offset=None, start_time=None, end_time=None, resource_type=None):
|
36
|
+
r"""ListRpoStatisticsRequest
|
37
|
+
|
38
|
+
The model defined in huaweicloud sdk
|
39
|
+
|
40
|
+
:param limit: 每次请求返回结果个数限制,取值范围为[0,1000]的正整数,默认值为1000。
|
41
|
+
:type limit: int
|
42
|
+
:param offset: 每次请求开始的下标,即偏移量,默认值为0。offset必须为数字,不能为负数。
|
43
|
+
:type offset: int
|
44
|
+
:param start_time: 开始时间。默认格式为:\"yyyy-MM-dd HH:mm:ss.SSS\",例:\"2019-04-01 12:00:00.000\"。
|
45
|
+
:type start_time: str
|
46
|
+
:param end_time: 结束时间。默认格式为:\"yyyy-MM-dd HH:mm:ss.SSS\",例:\"2019-04-01 12:00:00.000\"。
|
47
|
+
:type end_time: str
|
48
|
+
:param resource_type: 资源类型。replication:表示查询复制对的RPO超标趋势记录。
|
49
|
+
:type resource_type: str
|
50
|
+
"""
|
51
|
+
|
52
|
+
|
53
|
+
|
54
|
+
self._limit = None
|
55
|
+
self._offset = None
|
56
|
+
self._start_time = None
|
57
|
+
self._end_time = None
|
58
|
+
self._resource_type = None
|
59
|
+
self.discriminator = None
|
60
|
+
|
61
|
+
if limit is not None:
|
62
|
+
self.limit = limit
|
63
|
+
if offset is not None:
|
64
|
+
self.offset = offset
|
65
|
+
if start_time is not None:
|
66
|
+
self.start_time = start_time
|
67
|
+
if end_time is not None:
|
68
|
+
self.end_time = end_time
|
69
|
+
if resource_type is not None:
|
70
|
+
self.resource_type = resource_type
|
71
|
+
|
72
|
+
@property
|
73
|
+
def limit(self):
|
74
|
+
r"""Gets the limit of this ListRpoStatisticsRequest.
|
75
|
+
|
76
|
+
每次请求返回结果个数限制,取值范围为[0,1000]的正整数,默认值为1000。
|
77
|
+
|
78
|
+
:return: The limit of this ListRpoStatisticsRequest.
|
79
|
+
:rtype: int
|
80
|
+
"""
|
81
|
+
return self._limit
|
82
|
+
|
83
|
+
@limit.setter
|
84
|
+
def limit(self, limit):
|
85
|
+
r"""Sets the limit of this ListRpoStatisticsRequest.
|
86
|
+
|
87
|
+
每次请求返回结果个数限制,取值范围为[0,1000]的正整数,默认值为1000。
|
88
|
+
|
89
|
+
:param limit: The limit of this ListRpoStatisticsRequest.
|
90
|
+
:type limit: int
|
91
|
+
"""
|
92
|
+
self._limit = limit
|
93
|
+
|
94
|
+
@property
|
95
|
+
def offset(self):
|
96
|
+
r"""Gets the offset of this ListRpoStatisticsRequest.
|
97
|
+
|
98
|
+
每次请求开始的下标,即偏移量,默认值为0。offset必须为数字,不能为负数。
|
99
|
+
|
100
|
+
:return: The offset of this ListRpoStatisticsRequest.
|
101
|
+
:rtype: int
|
102
|
+
"""
|
103
|
+
return self._offset
|
104
|
+
|
105
|
+
@offset.setter
|
106
|
+
def offset(self, offset):
|
107
|
+
r"""Sets the offset of this ListRpoStatisticsRequest.
|
108
|
+
|
109
|
+
每次请求开始的下标,即偏移量,默认值为0。offset必须为数字,不能为负数。
|
110
|
+
|
111
|
+
:param offset: The offset of this ListRpoStatisticsRequest.
|
112
|
+
:type offset: int
|
113
|
+
"""
|
114
|
+
self._offset = offset
|
115
|
+
|
116
|
+
@property
|
117
|
+
def start_time(self):
|
118
|
+
r"""Gets the start_time of this ListRpoStatisticsRequest.
|
119
|
+
|
120
|
+
开始时间。默认格式为:\"yyyy-MM-dd HH:mm:ss.SSS\",例:\"2019-04-01 12:00:00.000\"。
|
121
|
+
|
122
|
+
:return: The start_time of this ListRpoStatisticsRequest.
|
123
|
+
:rtype: str
|
124
|
+
"""
|
125
|
+
return self._start_time
|
126
|
+
|
127
|
+
@start_time.setter
|
128
|
+
def start_time(self, start_time):
|
129
|
+
r"""Sets the start_time of this ListRpoStatisticsRequest.
|
130
|
+
|
131
|
+
开始时间。默认格式为:\"yyyy-MM-dd HH:mm:ss.SSS\",例:\"2019-04-01 12:00:00.000\"。
|
132
|
+
|
133
|
+
:param start_time: The start_time of this ListRpoStatisticsRequest.
|
134
|
+
:type start_time: str
|
135
|
+
"""
|
136
|
+
self._start_time = start_time
|
137
|
+
|
138
|
+
@property
|
139
|
+
def end_time(self):
|
140
|
+
r"""Gets the end_time of this ListRpoStatisticsRequest.
|
141
|
+
|
142
|
+
结束时间。默认格式为:\"yyyy-MM-dd HH:mm:ss.SSS\",例:\"2019-04-01 12:00:00.000\"。
|
143
|
+
|
144
|
+
:return: The end_time of this ListRpoStatisticsRequest.
|
145
|
+
:rtype: str
|
146
|
+
"""
|
147
|
+
return self._end_time
|
148
|
+
|
149
|
+
@end_time.setter
|
150
|
+
def end_time(self, end_time):
|
151
|
+
r"""Sets the end_time of this ListRpoStatisticsRequest.
|
152
|
+
|
153
|
+
结束时间。默认格式为:\"yyyy-MM-dd HH:mm:ss.SSS\",例:\"2019-04-01 12:00:00.000\"。
|
154
|
+
|
155
|
+
:param end_time: The end_time of this ListRpoStatisticsRequest.
|
156
|
+
:type end_time: str
|
157
|
+
"""
|
158
|
+
self._end_time = end_time
|
159
|
+
|
160
|
+
@property
|
161
|
+
def resource_type(self):
|
162
|
+
r"""Gets the resource_type of this ListRpoStatisticsRequest.
|
163
|
+
|
164
|
+
资源类型。replication:表示查询复制对的RPO超标趋势记录。
|
165
|
+
|
166
|
+
:return: The resource_type of this ListRpoStatisticsRequest.
|
167
|
+
:rtype: str
|
168
|
+
"""
|
169
|
+
return self._resource_type
|
170
|
+
|
171
|
+
@resource_type.setter
|
172
|
+
def resource_type(self, resource_type):
|
173
|
+
r"""Sets the resource_type of this ListRpoStatisticsRequest.
|
174
|
+
|
175
|
+
资源类型。replication:表示查询复制对的RPO超标趋势记录。
|
176
|
+
|
177
|
+
:param resource_type: The resource_type of this ListRpoStatisticsRequest.
|
178
|
+
:type resource_type: str
|
179
|
+
"""
|
180
|
+
self._resource_type = resource_type
|
181
|
+
|
182
|
+
def to_dict(self):
|
183
|
+
"""Returns the model properties as a dict"""
|
184
|
+
result = {}
|
185
|
+
|
186
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
187
|
+
value = getattr(self, attr)
|
188
|
+
if isinstance(value, list):
|
189
|
+
result[attr] = list(map(
|
190
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
191
|
+
value
|
192
|
+
))
|
193
|
+
elif hasattr(value, "to_dict"):
|
194
|
+
result[attr] = value.to_dict()
|
195
|
+
elif isinstance(value, dict):
|
196
|
+
result[attr] = dict(map(
|
197
|
+
lambda item: (item[0], item[1].to_dict())
|
198
|
+
if hasattr(item[1], "to_dict") else item,
|
199
|
+
value.items()
|
200
|
+
))
|
201
|
+
else:
|
202
|
+
if attr in self.sensitive_list:
|
203
|
+
result[attr] = "****"
|
204
|
+
else:
|
205
|
+
result[attr] = value
|
206
|
+
|
207
|
+
return result
|
208
|
+
|
209
|
+
def to_str(self):
|
210
|
+
"""Returns the string representation of the model"""
|
211
|
+
import simplejson as json
|
212
|
+
if six.PY2:
|
213
|
+
import sys
|
214
|
+
reload(sys)
|
215
|
+
sys.setdefaultencoding("utf-8")
|
216
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
217
|
+
|
218
|
+
def __repr__(self):
|
219
|
+
"""For `print`"""
|
220
|
+
return self.to_str()
|
221
|
+
|
222
|
+
def __eq__(self, other):
|
223
|
+
"""Returns true if both objects are equal"""
|
224
|
+
if not isinstance(other, ListRpoStatisticsRequest):
|
225
|
+
return False
|
226
|
+
|
227
|
+
return self.__dict__ == other.__dict__
|
228
|
+
|
229
|
+
def __ne__(self, other):
|
230
|
+
"""Returns true if both objects are not equal"""
|
231
|
+
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 ListRpoStatisticsResponse(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
|
+
'resource_rpo_statistics': 'list[RpoStattisticsParams]',
|
22
|
+
'count': 'int'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'resource_rpo_statistics': 'resource_rpo_statistics',
|
27
|
+
'count': 'count'
|
28
|
+
}
|
29
|
+
|
30
|
+
def __init__(self, resource_rpo_statistics=None, count=None):
|
31
|
+
r"""ListRpoStatisticsResponse
|
32
|
+
|
33
|
+
The model defined in huaweicloud sdk
|
34
|
+
|
35
|
+
:param resource_rpo_statistics: 资源的RPO超标趋势记录列表。
|
36
|
+
:type resource_rpo_statistics: list[:class:`huaweicloudsdksdrs.v1.RpoStattisticsParams`]
|
37
|
+
:param count: 列表中包含的资源的RPO超标趋势记录个数。
|
38
|
+
:type count: int
|
39
|
+
"""
|
40
|
+
|
41
|
+
super(ListRpoStatisticsResponse, self).__init__()
|
42
|
+
|
43
|
+
self._resource_rpo_statistics = None
|
44
|
+
self._count = None
|
45
|
+
self.discriminator = None
|
46
|
+
|
47
|
+
if resource_rpo_statistics is not None:
|
48
|
+
self.resource_rpo_statistics = resource_rpo_statistics
|
49
|
+
if count is not None:
|
50
|
+
self.count = count
|
51
|
+
|
52
|
+
@property
|
53
|
+
def resource_rpo_statistics(self):
|
54
|
+
r"""Gets the resource_rpo_statistics of this ListRpoStatisticsResponse.
|
55
|
+
|
56
|
+
资源的RPO超标趋势记录列表。
|
57
|
+
|
58
|
+
:return: The resource_rpo_statistics of this ListRpoStatisticsResponse.
|
59
|
+
:rtype: list[:class:`huaweicloudsdksdrs.v1.RpoStattisticsParams`]
|
60
|
+
"""
|
61
|
+
return self._resource_rpo_statistics
|
62
|
+
|
63
|
+
@resource_rpo_statistics.setter
|
64
|
+
def resource_rpo_statistics(self, resource_rpo_statistics):
|
65
|
+
r"""Sets the resource_rpo_statistics of this ListRpoStatisticsResponse.
|
66
|
+
|
67
|
+
资源的RPO超标趋势记录列表。
|
68
|
+
|
69
|
+
:param resource_rpo_statistics: The resource_rpo_statistics of this ListRpoStatisticsResponse.
|
70
|
+
:type resource_rpo_statistics: list[:class:`huaweicloudsdksdrs.v1.RpoStattisticsParams`]
|
71
|
+
"""
|
72
|
+
self._resource_rpo_statistics = resource_rpo_statistics
|
73
|
+
|
74
|
+
@property
|
75
|
+
def count(self):
|
76
|
+
r"""Gets the count of this ListRpoStatisticsResponse.
|
77
|
+
|
78
|
+
列表中包含的资源的RPO超标趋势记录个数。
|
79
|
+
|
80
|
+
:return: The count of this ListRpoStatisticsResponse.
|
81
|
+
:rtype: int
|
82
|
+
"""
|
83
|
+
return self._count
|
84
|
+
|
85
|
+
@count.setter
|
86
|
+
def count(self, count):
|
87
|
+
r"""Sets the count of this ListRpoStatisticsResponse.
|
88
|
+
|
89
|
+
列表中包含的资源的RPO超标趋势记录个数。
|
90
|
+
|
91
|
+
:param count: The count of this ListRpoStatisticsResponse.
|
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, ListRpoStatisticsResponse):
|
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,142 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class MatchParams:
|
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
|
+
'key': 'str',
|
21
|
+
'value': 'str'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'key': 'key',
|
26
|
+
'value': 'value'
|
27
|
+
}
|
28
|
+
|
29
|
+
def __init__(self, key=None, value=None):
|
30
|
+
r"""MatchParams
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
:param key: 键。目前限定为resource_name,后续扩展。
|
35
|
+
:type key: str
|
36
|
+
:param value: 值。每个值最大长度255个unicode字符。
|
37
|
+
:type value: str
|
38
|
+
"""
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
self._key = None
|
43
|
+
self._value = None
|
44
|
+
self.discriminator = None
|
45
|
+
|
46
|
+
self.key = key
|
47
|
+
self.value = value
|
48
|
+
|
49
|
+
@property
|
50
|
+
def key(self):
|
51
|
+
r"""Gets the key of this MatchParams.
|
52
|
+
|
53
|
+
键。目前限定为resource_name,后续扩展。
|
54
|
+
|
55
|
+
:return: The key of this MatchParams.
|
56
|
+
:rtype: str
|
57
|
+
"""
|
58
|
+
return self._key
|
59
|
+
|
60
|
+
@key.setter
|
61
|
+
def key(self, key):
|
62
|
+
r"""Sets the key of this MatchParams.
|
63
|
+
|
64
|
+
键。目前限定为resource_name,后续扩展。
|
65
|
+
|
66
|
+
:param key: The key of this MatchParams.
|
67
|
+
:type key: str
|
68
|
+
"""
|
69
|
+
self._key = key
|
70
|
+
|
71
|
+
@property
|
72
|
+
def value(self):
|
73
|
+
r"""Gets the value of this MatchParams.
|
74
|
+
|
75
|
+
值。每个值最大长度255个unicode字符。
|
76
|
+
|
77
|
+
:return: The value of this MatchParams.
|
78
|
+
:rtype: str
|
79
|
+
"""
|
80
|
+
return self._value
|
81
|
+
|
82
|
+
@value.setter
|
83
|
+
def value(self, value):
|
84
|
+
r"""Sets the value of this MatchParams.
|
85
|
+
|
86
|
+
值。每个值最大长度255个unicode字符。
|
87
|
+
|
88
|
+
:param value: The value of this MatchParams.
|
89
|
+
:type value: str
|
90
|
+
"""
|
91
|
+
self._value = value
|
92
|
+
|
93
|
+
def to_dict(self):
|
94
|
+
"""Returns the model properties as a dict"""
|
95
|
+
result = {}
|
96
|
+
|
97
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
98
|
+
value = getattr(self, attr)
|
99
|
+
if isinstance(value, list):
|
100
|
+
result[attr] = list(map(
|
101
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
102
|
+
value
|
103
|
+
))
|
104
|
+
elif hasattr(value, "to_dict"):
|
105
|
+
result[attr] = value.to_dict()
|
106
|
+
elif isinstance(value, dict):
|
107
|
+
result[attr] = dict(map(
|
108
|
+
lambda item: (item[0], item[1].to_dict())
|
109
|
+
if hasattr(item[1], "to_dict") else item,
|
110
|
+
value.items()
|
111
|
+
))
|
112
|
+
else:
|
113
|
+
if attr in self.sensitive_list:
|
114
|
+
result[attr] = "****"
|
115
|
+
else:
|
116
|
+
result[attr] = value
|
117
|
+
|
118
|
+
return result
|
119
|
+
|
120
|
+
def to_str(self):
|
121
|
+
"""Returns the string representation of the model"""
|
122
|
+
import simplejson as json
|
123
|
+
if six.PY2:
|
124
|
+
import sys
|
125
|
+
reload(sys)
|
126
|
+
sys.setdefaultencoding("utf-8")
|
127
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
128
|
+
|
129
|
+
def __repr__(self):
|
130
|
+
"""For `print`"""
|
131
|
+
return self.to_str()
|
132
|
+
|
133
|
+
def __eq__(self, other):
|
134
|
+
"""Returns true if both objects are equal"""
|
135
|
+
if not isinstance(other, MatchParams):
|
136
|
+
return False
|
137
|
+
|
138
|
+
return self.__dict__ == other.__dict__
|
139
|
+
|
140
|
+
def __ne__(self, other):
|
141
|
+
"""Returns true if both objects are not equal"""
|
142
|
+
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 MetadataParams:
|
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
|
+
'system__frozen': 'str'
|
21
|
+
}
|
22
|
+
|
23
|
+
attribute_map = {
|
24
|
+
'system__frozen': '__system__frozen'
|
25
|
+
}
|
26
|
+
|
27
|
+
def __init__(self, system__frozen=None):
|
28
|
+
r"""MetadataParams
|
29
|
+
|
30
|
+
The model defined in huaweicloud sdk
|
31
|
+
|
32
|
+
:param system__frozen: 保护实例元数据中资源冻结的字段。 true:表示资源被冻结。 空:表示资源没有被冻结。
|
33
|
+
:type system__frozen: str
|
34
|
+
"""
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
self._system__frozen = None
|
39
|
+
self.discriminator = None
|
40
|
+
|
41
|
+
self.system__frozen = system__frozen
|
42
|
+
|
43
|
+
@property
|
44
|
+
def system__frozen(self):
|
45
|
+
r"""Gets the system__frozen of this MetadataParams.
|
46
|
+
|
47
|
+
保护实例元数据中资源冻结的字段。 true:表示资源被冻结。 空:表示资源没有被冻结。
|
48
|
+
|
49
|
+
:return: The system__frozen of this MetadataParams.
|
50
|
+
:rtype: str
|
51
|
+
"""
|
52
|
+
return self._system__frozen
|
53
|
+
|
54
|
+
@system__frozen.setter
|
55
|
+
def system__frozen(self, system__frozen):
|
56
|
+
r"""Sets the system__frozen of this MetadataParams.
|
57
|
+
|
58
|
+
保护实例元数据中资源冻结的字段。 true:表示资源被冻结。 空:表示资源没有被冻结。
|
59
|
+
|
60
|
+
:param system__frozen: The system__frozen of this MetadataParams.
|
61
|
+
:type system__frozen: str
|
62
|
+
"""
|
63
|
+
self._system__frozen = system__frozen
|
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, MetadataParams):
|
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
|