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,344 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class BatchCreateProtectedInstancesRequestParams:
|
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
|
+
'name_prefix': 'str',
|
21
|
+
'description': 'str',
|
22
|
+
'server_group_id': 'str',
|
23
|
+
'cluster_id': 'str',
|
24
|
+
'primary_subnet_id': 'str',
|
25
|
+
'tenancy': 'str',
|
26
|
+
'dedicated_host_id': 'str',
|
27
|
+
'servers': 'list[ServerInfo]',
|
28
|
+
'tags': 'list[ResourceTag]'
|
29
|
+
}
|
30
|
+
|
31
|
+
attribute_map = {
|
32
|
+
'name_prefix': 'name_prefix',
|
33
|
+
'description': 'description',
|
34
|
+
'server_group_id': 'server_group_id',
|
35
|
+
'cluster_id': 'cluster_id',
|
36
|
+
'primary_subnet_id': 'primary_subnet_id',
|
37
|
+
'tenancy': 'tenancy',
|
38
|
+
'dedicated_host_id': 'dedicated_host_id',
|
39
|
+
'servers': 'servers',
|
40
|
+
'tags': 'tags'
|
41
|
+
}
|
42
|
+
|
43
|
+
def __init__(self, name_prefix=None, description=None, server_group_id=None, cluster_id=None, primary_subnet_id=None, tenancy=None, dedicated_host_id=None, servers=None, tags=None):
|
44
|
+
r"""BatchCreateProtectedInstancesRequestParams
|
45
|
+
|
46
|
+
The model defined in huaweicloud sdk
|
47
|
+
|
48
|
+
:param name_prefix: 保护实例的名称前缀,批量创建保护实例时,为区分不同保护实例,创建过程中系统会自动在名称后加\"-0001\"的类似标记,故此时名称的长度为[1-59]个字符。只包含中文字符、英文字母(a~z、A~Z)、数字(0~9)、小数点(.)、下划线(_)、中划线(-)。
|
49
|
+
:type name_prefix: str
|
50
|
+
:param description: 保护实例的描述,最大支持长度为64个字符。不能包含左尖括号(<)或右尖括号(>)。
|
51
|
+
:type description: str
|
52
|
+
:param server_group_id: 需要加入的保护组ID。
|
53
|
+
:type server_group_id: str
|
54
|
+
:param cluster_id: 专属分布式存储池ID。当容灾站点磁盘选择专属分布式存储时指定该字段。
|
55
|
+
:type cluster_id: str
|
56
|
+
:param primary_subnet_id: 容灾站点云服务器主网卡所在的子网subnetID,与neutron_network_id字段值一致。
|
57
|
+
:type primary_subnet_id: str
|
58
|
+
:param tenancy: 在专属主机或共享池中创建容灾站点云服务器,默认为在共享池中创建。值为:shared或dedicated。shared:表示共享池。dedicated:表示专属主机。
|
59
|
+
:type tenancy: str
|
60
|
+
:param dedicated_host_id: 专属主机id,此属性仅在tenancy值为dedicated时有效。若不指定此属性,系统将自动分配租户可以自动放置弹性云服务器的专属主机。
|
61
|
+
:type dedicated_host_id: str
|
62
|
+
:param servers: 用于创建保护实例的云服务器信息列表。
|
63
|
+
:type servers: list[:class:`huaweicloudsdksdrs.v1.ServerInfo`]
|
64
|
+
:param tags: 标签列表。
|
65
|
+
:type tags: list[:class:`huaweicloudsdksdrs.v1.ResourceTag`]
|
66
|
+
"""
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
self._name_prefix = None
|
71
|
+
self._description = None
|
72
|
+
self._server_group_id = None
|
73
|
+
self._cluster_id = None
|
74
|
+
self._primary_subnet_id = None
|
75
|
+
self._tenancy = None
|
76
|
+
self._dedicated_host_id = None
|
77
|
+
self._servers = None
|
78
|
+
self._tags = None
|
79
|
+
self.discriminator = None
|
80
|
+
|
81
|
+
self.name_prefix = name_prefix
|
82
|
+
if description is not None:
|
83
|
+
self.description = description
|
84
|
+
self.server_group_id = server_group_id
|
85
|
+
if cluster_id is not None:
|
86
|
+
self.cluster_id = cluster_id
|
87
|
+
if primary_subnet_id is not None:
|
88
|
+
self.primary_subnet_id = primary_subnet_id
|
89
|
+
if tenancy is not None:
|
90
|
+
self.tenancy = tenancy
|
91
|
+
if dedicated_host_id is not None:
|
92
|
+
self.dedicated_host_id = dedicated_host_id
|
93
|
+
self.servers = servers
|
94
|
+
if tags is not None:
|
95
|
+
self.tags = tags
|
96
|
+
|
97
|
+
@property
|
98
|
+
def name_prefix(self):
|
99
|
+
r"""Gets the name_prefix of this BatchCreateProtectedInstancesRequestParams.
|
100
|
+
|
101
|
+
保护实例的名称前缀,批量创建保护实例时,为区分不同保护实例,创建过程中系统会自动在名称后加\"-0001\"的类似标记,故此时名称的长度为[1-59]个字符。只包含中文字符、英文字母(a~z、A~Z)、数字(0~9)、小数点(.)、下划线(_)、中划线(-)。
|
102
|
+
|
103
|
+
:return: The name_prefix of this BatchCreateProtectedInstancesRequestParams.
|
104
|
+
:rtype: str
|
105
|
+
"""
|
106
|
+
return self._name_prefix
|
107
|
+
|
108
|
+
@name_prefix.setter
|
109
|
+
def name_prefix(self, name_prefix):
|
110
|
+
r"""Sets the name_prefix of this BatchCreateProtectedInstancesRequestParams.
|
111
|
+
|
112
|
+
保护实例的名称前缀,批量创建保护实例时,为区分不同保护实例,创建过程中系统会自动在名称后加\"-0001\"的类似标记,故此时名称的长度为[1-59]个字符。只包含中文字符、英文字母(a~z、A~Z)、数字(0~9)、小数点(.)、下划线(_)、中划线(-)。
|
113
|
+
|
114
|
+
:param name_prefix: The name_prefix of this BatchCreateProtectedInstancesRequestParams.
|
115
|
+
:type name_prefix: str
|
116
|
+
"""
|
117
|
+
self._name_prefix = name_prefix
|
118
|
+
|
119
|
+
@property
|
120
|
+
def description(self):
|
121
|
+
r"""Gets the description of this BatchCreateProtectedInstancesRequestParams.
|
122
|
+
|
123
|
+
保护实例的描述,最大支持长度为64个字符。不能包含左尖括号(<)或右尖括号(>)。
|
124
|
+
|
125
|
+
:return: The description of this BatchCreateProtectedInstancesRequestParams.
|
126
|
+
:rtype: str
|
127
|
+
"""
|
128
|
+
return self._description
|
129
|
+
|
130
|
+
@description.setter
|
131
|
+
def description(self, description):
|
132
|
+
r"""Sets the description of this BatchCreateProtectedInstancesRequestParams.
|
133
|
+
|
134
|
+
保护实例的描述,最大支持长度为64个字符。不能包含左尖括号(<)或右尖括号(>)。
|
135
|
+
|
136
|
+
:param description: The description of this BatchCreateProtectedInstancesRequestParams.
|
137
|
+
:type description: str
|
138
|
+
"""
|
139
|
+
self._description = description
|
140
|
+
|
141
|
+
@property
|
142
|
+
def server_group_id(self):
|
143
|
+
r"""Gets the server_group_id of this BatchCreateProtectedInstancesRequestParams.
|
144
|
+
|
145
|
+
需要加入的保护组ID。
|
146
|
+
|
147
|
+
:return: The server_group_id of this BatchCreateProtectedInstancesRequestParams.
|
148
|
+
:rtype: str
|
149
|
+
"""
|
150
|
+
return self._server_group_id
|
151
|
+
|
152
|
+
@server_group_id.setter
|
153
|
+
def server_group_id(self, server_group_id):
|
154
|
+
r"""Sets the server_group_id of this BatchCreateProtectedInstancesRequestParams.
|
155
|
+
|
156
|
+
需要加入的保护组ID。
|
157
|
+
|
158
|
+
:param server_group_id: The server_group_id of this BatchCreateProtectedInstancesRequestParams.
|
159
|
+
:type server_group_id: str
|
160
|
+
"""
|
161
|
+
self._server_group_id = server_group_id
|
162
|
+
|
163
|
+
@property
|
164
|
+
def cluster_id(self):
|
165
|
+
r"""Gets the cluster_id of this BatchCreateProtectedInstancesRequestParams.
|
166
|
+
|
167
|
+
专属分布式存储池ID。当容灾站点磁盘选择专属分布式存储时指定该字段。
|
168
|
+
|
169
|
+
:return: The cluster_id of this BatchCreateProtectedInstancesRequestParams.
|
170
|
+
:rtype: str
|
171
|
+
"""
|
172
|
+
return self._cluster_id
|
173
|
+
|
174
|
+
@cluster_id.setter
|
175
|
+
def cluster_id(self, cluster_id):
|
176
|
+
r"""Sets the cluster_id of this BatchCreateProtectedInstancesRequestParams.
|
177
|
+
|
178
|
+
专属分布式存储池ID。当容灾站点磁盘选择专属分布式存储时指定该字段。
|
179
|
+
|
180
|
+
:param cluster_id: The cluster_id of this BatchCreateProtectedInstancesRequestParams.
|
181
|
+
:type cluster_id: str
|
182
|
+
"""
|
183
|
+
self._cluster_id = cluster_id
|
184
|
+
|
185
|
+
@property
|
186
|
+
def primary_subnet_id(self):
|
187
|
+
r"""Gets the primary_subnet_id of this BatchCreateProtectedInstancesRequestParams.
|
188
|
+
|
189
|
+
容灾站点云服务器主网卡所在的子网subnetID,与neutron_network_id字段值一致。
|
190
|
+
|
191
|
+
:return: The primary_subnet_id of this BatchCreateProtectedInstancesRequestParams.
|
192
|
+
:rtype: str
|
193
|
+
"""
|
194
|
+
return self._primary_subnet_id
|
195
|
+
|
196
|
+
@primary_subnet_id.setter
|
197
|
+
def primary_subnet_id(self, primary_subnet_id):
|
198
|
+
r"""Sets the primary_subnet_id of this BatchCreateProtectedInstancesRequestParams.
|
199
|
+
|
200
|
+
容灾站点云服务器主网卡所在的子网subnetID,与neutron_network_id字段值一致。
|
201
|
+
|
202
|
+
:param primary_subnet_id: The primary_subnet_id of this BatchCreateProtectedInstancesRequestParams.
|
203
|
+
:type primary_subnet_id: str
|
204
|
+
"""
|
205
|
+
self._primary_subnet_id = primary_subnet_id
|
206
|
+
|
207
|
+
@property
|
208
|
+
def tenancy(self):
|
209
|
+
r"""Gets the tenancy of this BatchCreateProtectedInstancesRequestParams.
|
210
|
+
|
211
|
+
在专属主机或共享池中创建容灾站点云服务器,默认为在共享池中创建。值为:shared或dedicated。shared:表示共享池。dedicated:表示专属主机。
|
212
|
+
|
213
|
+
:return: The tenancy of this BatchCreateProtectedInstancesRequestParams.
|
214
|
+
:rtype: str
|
215
|
+
"""
|
216
|
+
return self._tenancy
|
217
|
+
|
218
|
+
@tenancy.setter
|
219
|
+
def tenancy(self, tenancy):
|
220
|
+
r"""Sets the tenancy of this BatchCreateProtectedInstancesRequestParams.
|
221
|
+
|
222
|
+
在专属主机或共享池中创建容灾站点云服务器,默认为在共享池中创建。值为:shared或dedicated。shared:表示共享池。dedicated:表示专属主机。
|
223
|
+
|
224
|
+
:param tenancy: The tenancy of this BatchCreateProtectedInstancesRequestParams.
|
225
|
+
:type tenancy: str
|
226
|
+
"""
|
227
|
+
self._tenancy = tenancy
|
228
|
+
|
229
|
+
@property
|
230
|
+
def dedicated_host_id(self):
|
231
|
+
r"""Gets the dedicated_host_id of this BatchCreateProtectedInstancesRequestParams.
|
232
|
+
|
233
|
+
专属主机id,此属性仅在tenancy值为dedicated时有效。若不指定此属性,系统将自动分配租户可以自动放置弹性云服务器的专属主机。
|
234
|
+
|
235
|
+
:return: The dedicated_host_id of this BatchCreateProtectedInstancesRequestParams.
|
236
|
+
:rtype: str
|
237
|
+
"""
|
238
|
+
return self._dedicated_host_id
|
239
|
+
|
240
|
+
@dedicated_host_id.setter
|
241
|
+
def dedicated_host_id(self, dedicated_host_id):
|
242
|
+
r"""Sets the dedicated_host_id of this BatchCreateProtectedInstancesRequestParams.
|
243
|
+
|
244
|
+
专属主机id,此属性仅在tenancy值为dedicated时有效。若不指定此属性,系统将自动分配租户可以自动放置弹性云服务器的专属主机。
|
245
|
+
|
246
|
+
:param dedicated_host_id: The dedicated_host_id of this BatchCreateProtectedInstancesRequestParams.
|
247
|
+
:type dedicated_host_id: str
|
248
|
+
"""
|
249
|
+
self._dedicated_host_id = dedicated_host_id
|
250
|
+
|
251
|
+
@property
|
252
|
+
def servers(self):
|
253
|
+
r"""Gets the servers of this BatchCreateProtectedInstancesRequestParams.
|
254
|
+
|
255
|
+
用于创建保护实例的云服务器信息列表。
|
256
|
+
|
257
|
+
:return: The servers of this BatchCreateProtectedInstancesRequestParams.
|
258
|
+
:rtype: list[:class:`huaweicloudsdksdrs.v1.ServerInfo`]
|
259
|
+
"""
|
260
|
+
return self._servers
|
261
|
+
|
262
|
+
@servers.setter
|
263
|
+
def servers(self, servers):
|
264
|
+
r"""Sets the servers of this BatchCreateProtectedInstancesRequestParams.
|
265
|
+
|
266
|
+
用于创建保护实例的云服务器信息列表。
|
267
|
+
|
268
|
+
:param servers: The servers of this BatchCreateProtectedInstancesRequestParams.
|
269
|
+
:type servers: list[:class:`huaweicloudsdksdrs.v1.ServerInfo`]
|
270
|
+
"""
|
271
|
+
self._servers = servers
|
272
|
+
|
273
|
+
@property
|
274
|
+
def tags(self):
|
275
|
+
r"""Gets the tags of this BatchCreateProtectedInstancesRequestParams.
|
276
|
+
|
277
|
+
标签列表。
|
278
|
+
|
279
|
+
:return: The tags of this BatchCreateProtectedInstancesRequestParams.
|
280
|
+
:rtype: list[:class:`huaweicloudsdksdrs.v1.ResourceTag`]
|
281
|
+
"""
|
282
|
+
return self._tags
|
283
|
+
|
284
|
+
@tags.setter
|
285
|
+
def tags(self, tags):
|
286
|
+
r"""Sets the tags of this BatchCreateProtectedInstancesRequestParams.
|
287
|
+
|
288
|
+
标签列表。
|
289
|
+
|
290
|
+
:param tags: The tags of this BatchCreateProtectedInstancesRequestParams.
|
291
|
+
:type tags: list[:class:`huaweicloudsdksdrs.v1.ResourceTag`]
|
292
|
+
"""
|
293
|
+
self._tags = tags
|
294
|
+
|
295
|
+
def to_dict(self):
|
296
|
+
"""Returns the model properties as a dict"""
|
297
|
+
result = {}
|
298
|
+
|
299
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
300
|
+
value = getattr(self, attr)
|
301
|
+
if isinstance(value, list):
|
302
|
+
result[attr] = list(map(
|
303
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
304
|
+
value
|
305
|
+
))
|
306
|
+
elif hasattr(value, "to_dict"):
|
307
|
+
result[attr] = value.to_dict()
|
308
|
+
elif isinstance(value, dict):
|
309
|
+
result[attr] = dict(map(
|
310
|
+
lambda item: (item[0], item[1].to_dict())
|
311
|
+
if hasattr(item[1], "to_dict") else item,
|
312
|
+
value.items()
|
313
|
+
))
|
314
|
+
else:
|
315
|
+
if attr in self.sensitive_list:
|
316
|
+
result[attr] = "****"
|
317
|
+
else:
|
318
|
+
result[attr] = value
|
319
|
+
|
320
|
+
return result
|
321
|
+
|
322
|
+
def to_str(self):
|
323
|
+
"""Returns the string representation of the model"""
|
324
|
+
import simplejson as json
|
325
|
+
if six.PY2:
|
326
|
+
import sys
|
327
|
+
reload(sys)
|
328
|
+
sys.setdefaultencoding("utf-8")
|
329
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
330
|
+
|
331
|
+
def __repr__(self):
|
332
|
+
"""For `print`"""
|
333
|
+
return self.to_str()
|
334
|
+
|
335
|
+
def __eq__(self, other):
|
336
|
+
"""Returns true if both objects are equal"""
|
337
|
+
if not isinstance(other, BatchCreateProtectedInstancesRequestParams):
|
338
|
+
return False
|
339
|
+
|
340
|
+
return self.__dict__ == other.__dict__
|
341
|
+
|
342
|
+
def __ne__(self, other):
|
343
|
+
"""Returns true if both objects are not equal"""
|
344
|
+
return not self == other
|
@@ -0,0 +1,116 @@
|
|
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 BatchCreateProtectedInstancesResponse(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
|
+
'job_id': 'str'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'job_id': 'job_id'
|
26
|
+
}
|
27
|
+
|
28
|
+
def __init__(self, job_id=None):
|
29
|
+
r"""BatchCreateProtectedInstancesResponse
|
30
|
+
|
31
|
+
The model defined in huaweicloud sdk
|
32
|
+
|
33
|
+
:param job_id: 成功返回jobId信息
|
34
|
+
:type job_id: str
|
35
|
+
"""
|
36
|
+
|
37
|
+
super(BatchCreateProtectedInstancesResponse, self).__init__()
|
38
|
+
|
39
|
+
self._job_id = None
|
40
|
+
self.discriminator = None
|
41
|
+
|
42
|
+
if job_id is not None:
|
43
|
+
self.job_id = job_id
|
44
|
+
|
45
|
+
@property
|
46
|
+
def job_id(self):
|
47
|
+
r"""Gets the job_id of this BatchCreateProtectedInstancesResponse.
|
48
|
+
|
49
|
+
成功返回jobId信息
|
50
|
+
|
51
|
+
:return: The job_id of this BatchCreateProtectedInstancesResponse.
|
52
|
+
:rtype: str
|
53
|
+
"""
|
54
|
+
return self._job_id
|
55
|
+
|
56
|
+
@job_id.setter
|
57
|
+
def job_id(self, job_id):
|
58
|
+
r"""Sets the job_id of this BatchCreateProtectedInstancesResponse.
|
59
|
+
|
60
|
+
成功返回jobId信息
|
61
|
+
|
62
|
+
:param job_id: The job_id of this BatchCreateProtectedInstancesResponse.
|
63
|
+
:type job_id: str
|
64
|
+
"""
|
65
|
+
self._job_id = job_id
|
66
|
+
|
67
|
+
def to_dict(self):
|
68
|
+
"""Returns the model properties as a dict"""
|
69
|
+
result = {}
|
70
|
+
|
71
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
72
|
+
value = getattr(self, attr)
|
73
|
+
if isinstance(value, list):
|
74
|
+
result[attr] = list(map(
|
75
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
76
|
+
value
|
77
|
+
))
|
78
|
+
elif hasattr(value, "to_dict"):
|
79
|
+
result[attr] = value.to_dict()
|
80
|
+
elif isinstance(value, dict):
|
81
|
+
result[attr] = dict(map(
|
82
|
+
lambda item: (item[0], item[1].to_dict())
|
83
|
+
if hasattr(item[1], "to_dict") else item,
|
84
|
+
value.items()
|
85
|
+
))
|
86
|
+
else:
|
87
|
+
if attr in self.sensitive_list:
|
88
|
+
result[attr] = "****"
|
89
|
+
else:
|
90
|
+
result[attr] = value
|
91
|
+
|
92
|
+
return result
|
93
|
+
|
94
|
+
def to_str(self):
|
95
|
+
"""Returns the string representation of the model"""
|
96
|
+
import simplejson as json
|
97
|
+
if six.PY2:
|
98
|
+
import sys
|
99
|
+
reload(sys)
|
100
|
+
sys.setdefaultencoding("utf-8")
|
101
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
102
|
+
|
103
|
+
def __repr__(self):
|
104
|
+
"""For `print`"""
|
105
|
+
return self.to_str()
|
106
|
+
|
107
|
+
def __eq__(self, other):
|
108
|
+
"""Returns true if both objects are equal"""
|
109
|
+
if not isinstance(other, BatchCreateProtectedInstancesResponse):
|
110
|
+
return False
|
111
|
+
|
112
|
+
return self.__dict__ == other.__dict__
|
113
|
+
|
114
|
+
def __ne__(self, other):
|
115
|
+
"""Returns true if both objects are not equal"""
|
116
|
+
return not self == other
|
@@ -0,0 +1,111 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class BatchDeleteProtectedInstancesRequest:
|
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
|
+
'body': 'BatchDeleteProtectedInstancesRequestBody'
|
21
|
+
}
|
22
|
+
|
23
|
+
attribute_map = {
|
24
|
+
'body': 'body'
|
25
|
+
}
|
26
|
+
|
27
|
+
def __init__(self, body=None):
|
28
|
+
r"""BatchDeleteProtectedInstancesRequest
|
29
|
+
|
30
|
+
The model defined in huaweicloud sdk
|
31
|
+
|
32
|
+
:param body: Body of the BatchDeleteProtectedInstancesRequest
|
33
|
+
:type body: :class:`huaweicloudsdksdrs.v1.BatchDeleteProtectedInstancesRequestBody`
|
34
|
+
"""
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
self._body = None
|
39
|
+
self.discriminator = None
|
40
|
+
|
41
|
+
if body is not None:
|
42
|
+
self.body = body
|
43
|
+
|
44
|
+
@property
|
45
|
+
def body(self):
|
46
|
+
r"""Gets the body of this BatchDeleteProtectedInstancesRequest.
|
47
|
+
|
48
|
+
:return: The body of this BatchDeleteProtectedInstancesRequest.
|
49
|
+
:rtype: :class:`huaweicloudsdksdrs.v1.BatchDeleteProtectedInstancesRequestBody`
|
50
|
+
"""
|
51
|
+
return self._body
|
52
|
+
|
53
|
+
@body.setter
|
54
|
+
def body(self, body):
|
55
|
+
r"""Sets the body of this BatchDeleteProtectedInstancesRequest.
|
56
|
+
|
57
|
+
:param body: The body of this BatchDeleteProtectedInstancesRequest.
|
58
|
+
:type body: :class:`huaweicloudsdksdrs.v1.BatchDeleteProtectedInstancesRequestBody`
|
59
|
+
"""
|
60
|
+
self._body = body
|
61
|
+
|
62
|
+
def to_dict(self):
|
63
|
+
"""Returns the model properties as a dict"""
|
64
|
+
result = {}
|
65
|
+
|
66
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
67
|
+
value = getattr(self, attr)
|
68
|
+
if isinstance(value, list):
|
69
|
+
result[attr] = list(map(
|
70
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
71
|
+
value
|
72
|
+
))
|
73
|
+
elif hasattr(value, "to_dict"):
|
74
|
+
result[attr] = value.to_dict()
|
75
|
+
elif isinstance(value, dict):
|
76
|
+
result[attr] = dict(map(
|
77
|
+
lambda item: (item[0], item[1].to_dict())
|
78
|
+
if hasattr(item[1], "to_dict") else item,
|
79
|
+
value.items()
|
80
|
+
))
|
81
|
+
else:
|
82
|
+
if attr in self.sensitive_list:
|
83
|
+
result[attr] = "****"
|
84
|
+
else:
|
85
|
+
result[attr] = value
|
86
|
+
|
87
|
+
return result
|
88
|
+
|
89
|
+
def to_str(self):
|
90
|
+
"""Returns the string representation of the model"""
|
91
|
+
import simplejson as json
|
92
|
+
if six.PY2:
|
93
|
+
import sys
|
94
|
+
reload(sys)
|
95
|
+
sys.setdefaultencoding("utf-8")
|
96
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
97
|
+
|
98
|
+
def __repr__(self):
|
99
|
+
"""For `print`"""
|
100
|
+
return self.to_str()
|
101
|
+
|
102
|
+
def __eq__(self, other):
|
103
|
+
"""Returns true if both objects are equal"""
|
104
|
+
if not isinstance(other, BatchDeleteProtectedInstancesRequest):
|
105
|
+
return False
|
106
|
+
|
107
|
+
return self.__dict__ == other.__dict__
|
108
|
+
|
109
|
+
def __ne__(self, other):
|
110
|
+
"""Returns true if both objects are not equal"""
|
111
|
+
return not self == other
|