huaweicloudsdkdcs 3.1.85__py2.py3-none-any.whl → 3.1.132__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of huaweicloudsdkdcs might be problematic. Click here for more details.
- huaweicloudsdkdcs/v2/__init__.py +35 -0
- huaweicloudsdkdcs/v2/dcs_async_client.py +753 -28
- huaweicloudsdkdcs/v2/dcs_client.py +753 -28
- huaweicloudsdkdcs/v2/model/__init__.py +35 -0
- huaweicloudsdkdcs/v2/model/backup_files_body.py +2 -1
- huaweicloudsdkdcs/v2/model/bandwidth_auto_scaling_policy.py +257 -0
- huaweicloudsdkdcs/v2/model/bandwidth_info.py +61 -3
- huaweicloudsdkdcs/v2/model/batch_restart_migration_task_result.py +202 -0
- huaweicloudsdkdcs/v2/model/batch_restart_online_migration_tasks_body.py +114 -0
- huaweicloudsdkdcs/v2/model/batch_restart_online_migration_tasks_request.py +111 -0
- huaweicloudsdkdcs/v2/model/batch_restart_online_migration_tasks_response.py +116 -0
- huaweicloudsdkdcs/v2/model/change_nodes_start_stop_status_body.py +144 -0
- huaweicloudsdkdcs/v2/model/change_nodes_start_stop_status_request.py +139 -0
- huaweicloudsdkdcs/v2/model/change_nodes_start_stop_status_resp.py +84 -0
- huaweicloudsdkdcs/v2/model/change_nodes_start_stop_status_response.py +112 -0
- huaweicloudsdkdcs/v2/model/client_info.py +4 -4
- huaweicloudsdkdcs/v2/model/delete_instance_bandwidth_auto_scaling_policy_request.py +114 -0
- huaweicloudsdkdcs/v2/model/delete_instance_bandwidth_auto_scaling_policy_resp.py +84 -0
- huaweicloudsdkdcs/v2/model/delete_instance_bandwidth_auto_scaling_policy_response.py +112 -0
- huaweicloudsdkdcs/v2/model/delete_public_ip_request.py +114 -0
- huaweicloudsdkdcs/v2/model/delete_public_ip_response.py +116 -0
- huaweicloudsdkdcs/v2/model/details_body.py +549 -27
- huaweicloudsdkdcs/v2/model/group_bandwidth_info.py +231 -0
- huaweicloudsdkdcs/v2/model/migration_task_list.py +366 -18
- huaweicloudsdkdcs/v2/model/resize_instance_body.py +3 -3
- huaweicloudsdkdcs/v2/model/show_bandwidths_request.py +114 -0
- huaweicloudsdkdcs/v2/model/show_bandwidths_response.py +203 -0
- huaweicloudsdkdcs/v2/model/show_instance_bandwidth_auto_scaling_policy_request.py +114 -0
- huaweicloudsdkdcs/v2/model/show_instance_bandwidth_auto_scaling_policy_response.py +258 -0
- huaweicloudsdkdcs/v2/model/show_instance_version_request.py +114 -0
- huaweicloudsdkdcs/v2/model/show_instance_version_response.py +261 -0
- huaweicloudsdkdcs/v2/model/show_migration_task_response.py +264 -3
- huaweicloudsdkdcs/v2/model/source_instance_body.py +206 -3
- huaweicloudsdkdcs/v2/model/stop_migration_task_response.py +264 -3
- huaweicloudsdkdcs/v2/model/stop_migration_task_result.py +61 -3
- huaweicloudsdkdcs/v2/model/target_instance_body.py +177 -3
- huaweicloudsdkdcs/v2/model/update_bandwidth_info_request.py +115 -0
- huaweicloudsdkdcs/v2/model/update_bandwidth_request.py +139 -0
- huaweicloudsdkdcs/v2/model/update_bandwidth_resp.py +84 -0
- huaweicloudsdkdcs/v2/model/update_bandwidth_response.py +112 -0
- huaweicloudsdkdcs/v2/model/update_group_bandwidth_info_request.py +142 -0
- huaweicloudsdkdcs/v2/model/update_instance_bandwidth_auto_scaling_policy_request.py +139 -0
- huaweicloudsdkdcs/v2/model/update_instance_bandwidth_auto_scaling_policy_request_body.py +257 -0
- huaweicloudsdkdcs/v2/model/update_instance_bandwidth_auto_scaling_policy_response.py +258 -0
- huaweicloudsdkdcs/v2/model/update_public_ip_request.py +139 -0
- huaweicloudsdkdcs/v2/model/update_public_ip_request_body.py +173 -0
- huaweicloudsdkdcs/v2/model/update_public_ip_response.py +116 -0
- huaweicloudsdkdcs/v2/model/upgrade_instance_minor_version_request.py +139 -0
- huaweicloudsdkdcs/v2/model/upgrade_instance_minor_version_response.py +116 -0
- huaweicloudsdkdcs/v2/model/upgrade_minor_version_request_body.py +144 -0
- huaweicloudsdkdcs/v2/region/dcs_region.py +6 -0
- {huaweicloudsdkdcs-3.1.85.dist-info → huaweicloudsdkdcs-3.1.132.dist-info}/METADATA +2 -2
- {huaweicloudsdkdcs-3.1.85.dist-info → huaweicloudsdkdcs-3.1.132.dist-info}/RECORD +56 -21
- {huaweicloudsdkdcs-3.1.85.dist-info → huaweicloudsdkdcs-3.1.132.dist-info}/WHEEL +1 -1
- {huaweicloudsdkdcs-3.1.85.dist-info → huaweicloudsdkdcs-3.1.132.dist-info}/LICENSE +0 -0
- {huaweicloudsdkdcs-3.1.85.dist-info → huaweicloudsdkdcs-3.1.132.dist-info}/top_level.txt +0 -0
|
@@ -166,6 +166,71 @@ class DcsClient(Client):
|
|
|
166
166
|
|
|
167
167
|
return http_info
|
|
168
168
|
|
|
169
|
+
def batch_restart_online_migration_tasks(self, request):
|
|
170
|
+
"""批量重启在线迁移任务
|
|
171
|
+
|
|
172
|
+
批量重启在线迁移任务,接口响应成功,返回重启在线迁移任务下发结果。
|
|
173
|
+
|
|
174
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
|
175
|
+
|
|
176
|
+
:param request: Request instance for BatchRestartOnlineMigrationTasks
|
|
177
|
+
:type request: :class:`huaweicloudsdkdcs.v2.BatchRestartOnlineMigrationTasksRequest`
|
|
178
|
+
:rtype: :class:`huaweicloudsdkdcs.v2.BatchRestartOnlineMigrationTasksResponse`
|
|
179
|
+
"""
|
|
180
|
+
http_info = self._batch_restart_online_migration_tasks_http_info(request)
|
|
181
|
+
return self._call_api(**http_info)
|
|
182
|
+
|
|
183
|
+
def batch_restart_online_migration_tasks_invoker(self, request):
|
|
184
|
+
http_info = self._batch_restart_online_migration_tasks_http_info(request)
|
|
185
|
+
return SyncInvoker(self, http_info)
|
|
186
|
+
|
|
187
|
+
@classmethod
|
|
188
|
+
def _batch_restart_online_migration_tasks_http_info(cls, request):
|
|
189
|
+
http_info = {
|
|
190
|
+
"method": "POST",
|
|
191
|
+
"resource_path": "/v2/{project_id}/migration-tasks/batch-restart",
|
|
192
|
+
"request_type": request.__class__.__name__,
|
|
193
|
+
"response_type": "BatchRestartOnlineMigrationTasksResponse"
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
|
197
|
+
|
|
198
|
+
cname = None
|
|
199
|
+
|
|
200
|
+
collection_formats = {}
|
|
201
|
+
|
|
202
|
+
path_params = {}
|
|
203
|
+
|
|
204
|
+
query_params = []
|
|
205
|
+
|
|
206
|
+
header_params = {}
|
|
207
|
+
|
|
208
|
+
form_params = {}
|
|
209
|
+
|
|
210
|
+
body = None
|
|
211
|
+
if 'body' in local_var_params:
|
|
212
|
+
body = local_var_params['body']
|
|
213
|
+
if isinstance(request, SdkStreamRequest):
|
|
214
|
+
body = request.get_file_stream()
|
|
215
|
+
|
|
216
|
+
response_headers = []
|
|
217
|
+
|
|
218
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
|
219
|
+
['application/json;charset=UTF-8'])
|
|
220
|
+
|
|
221
|
+
auth_settings = []
|
|
222
|
+
|
|
223
|
+
http_info["cname"] = cname
|
|
224
|
+
http_info["collection_formats"] = collection_formats
|
|
225
|
+
http_info["path_params"] = path_params
|
|
226
|
+
http_info["query_params"] = query_params
|
|
227
|
+
http_info["header_params"] = header_params
|
|
228
|
+
http_info["post_params"] = form_params
|
|
229
|
+
http_info["body"] = body
|
|
230
|
+
http_info["response_headers"] = response_headers
|
|
231
|
+
|
|
232
|
+
return http_info
|
|
233
|
+
|
|
169
234
|
def batch_show_nodes_information(self, request):
|
|
170
235
|
"""批量查询实例节点信息
|
|
171
236
|
|
|
@@ -430,6 +495,73 @@ class DcsClient(Client):
|
|
|
430
495
|
|
|
431
496
|
return http_info
|
|
432
497
|
|
|
498
|
+
def change_nodes_start_stop_status(self, request):
|
|
499
|
+
"""指定实例节点启停开关
|
|
500
|
+
|
|
501
|
+
实例节点启停。执行节点关机操作前的24小时内,需要对实例(单机实例除外)进行数据备份。
|
|
502
|
+
|
|
503
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
|
504
|
+
|
|
505
|
+
:param request: Request instance for ChangeNodesStartStopStatus
|
|
506
|
+
:type request: :class:`huaweicloudsdkdcs.v2.ChangeNodesStartStopStatusRequest`
|
|
507
|
+
:rtype: :class:`huaweicloudsdkdcs.v2.ChangeNodesStartStopStatusResponse`
|
|
508
|
+
"""
|
|
509
|
+
http_info = self._change_nodes_start_stop_status_http_info(request)
|
|
510
|
+
return self._call_api(**http_info)
|
|
511
|
+
|
|
512
|
+
def change_nodes_start_stop_status_invoker(self, request):
|
|
513
|
+
http_info = self._change_nodes_start_stop_status_http_info(request)
|
|
514
|
+
return SyncInvoker(self, http_info)
|
|
515
|
+
|
|
516
|
+
@classmethod
|
|
517
|
+
def _change_nodes_start_stop_status_http_info(cls, request):
|
|
518
|
+
http_info = {
|
|
519
|
+
"method": "PUT",
|
|
520
|
+
"resource_path": "/v2/{project_id}/instances/{instance_id}/nodes/status",
|
|
521
|
+
"request_type": request.__class__.__name__,
|
|
522
|
+
"response_type": "ChangeNodesStartStopStatusResponse"
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
|
526
|
+
|
|
527
|
+
cname = None
|
|
528
|
+
|
|
529
|
+
collection_formats = {}
|
|
530
|
+
|
|
531
|
+
path_params = {}
|
|
532
|
+
if 'instance_id' in local_var_params:
|
|
533
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
|
534
|
+
|
|
535
|
+
query_params = []
|
|
536
|
+
|
|
537
|
+
header_params = {}
|
|
538
|
+
|
|
539
|
+
form_params = {}
|
|
540
|
+
|
|
541
|
+
body = None
|
|
542
|
+
if 'body' in local_var_params:
|
|
543
|
+
body = local_var_params['body']
|
|
544
|
+
if isinstance(request, SdkStreamRequest):
|
|
545
|
+
body = request.get_file_stream()
|
|
546
|
+
|
|
547
|
+
response_headers = []
|
|
548
|
+
|
|
549
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
|
550
|
+
['application/json;charset=UTF-8'])
|
|
551
|
+
|
|
552
|
+
auth_settings = []
|
|
553
|
+
|
|
554
|
+
http_info["cname"] = cname
|
|
555
|
+
http_info["collection_formats"] = collection_formats
|
|
556
|
+
http_info["path_params"] = path_params
|
|
557
|
+
http_info["query_params"] = query_params
|
|
558
|
+
http_info["header_params"] = header_params
|
|
559
|
+
http_info["post_params"] = form_params
|
|
560
|
+
http_info["body"] = body
|
|
561
|
+
http_info["response_headers"] = response_headers
|
|
562
|
+
|
|
563
|
+
return http_info
|
|
564
|
+
|
|
433
565
|
def copy_instance(self, request):
|
|
434
566
|
"""备份指定实例
|
|
435
567
|
|
|
@@ -1832,6 +1964,71 @@ class DcsClient(Client):
|
|
|
1832
1964
|
|
|
1833
1965
|
return http_info
|
|
1834
1966
|
|
|
1967
|
+
def delete_instance_bandwidth_auto_scaling_policy(self, request):
|
|
1968
|
+
"""删除实例带宽弹性伸缩策略
|
|
1969
|
+
|
|
1970
|
+
删除实例带宽弹性伸缩策略。
|
|
1971
|
+
|
|
1972
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
|
1973
|
+
|
|
1974
|
+
:param request: Request instance for DeleteInstanceBandwidthAutoScalingPolicy
|
|
1975
|
+
:type request: :class:`huaweicloudsdkdcs.v2.DeleteInstanceBandwidthAutoScalingPolicyRequest`
|
|
1976
|
+
:rtype: :class:`huaweicloudsdkdcs.v2.DeleteInstanceBandwidthAutoScalingPolicyResponse`
|
|
1977
|
+
"""
|
|
1978
|
+
http_info = self._delete_instance_bandwidth_auto_scaling_policy_http_info(request)
|
|
1979
|
+
return self._call_api(**http_info)
|
|
1980
|
+
|
|
1981
|
+
def delete_instance_bandwidth_auto_scaling_policy_invoker(self, request):
|
|
1982
|
+
http_info = self._delete_instance_bandwidth_auto_scaling_policy_http_info(request)
|
|
1983
|
+
return SyncInvoker(self, http_info)
|
|
1984
|
+
|
|
1985
|
+
@classmethod
|
|
1986
|
+
def _delete_instance_bandwidth_auto_scaling_policy_http_info(cls, request):
|
|
1987
|
+
http_info = {
|
|
1988
|
+
"method": "DELETE",
|
|
1989
|
+
"resource_path": "/v2/{project_id}/instances/{instance_id}/autoscaling-policy/bandwidth",
|
|
1990
|
+
"request_type": request.__class__.__name__,
|
|
1991
|
+
"response_type": "DeleteInstanceBandwidthAutoScalingPolicyResponse"
|
|
1992
|
+
}
|
|
1993
|
+
|
|
1994
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
|
1995
|
+
|
|
1996
|
+
cname = None
|
|
1997
|
+
|
|
1998
|
+
collection_formats = {}
|
|
1999
|
+
|
|
2000
|
+
path_params = {}
|
|
2001
|
+
if 'instance_id' in local_var_params:
|
|
2002
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
|
2003
|
+
|
|
2004
|
+
query_params = []
|
|
2005
|
+
|
|
2006
|
+
header_params = {}
|
|
2007
|
+
|
|
2008
|
+
form_params = {}
|
|
2009
|
+
|
|
2010
|
+
body = None
|
|
2011
|
+
if isinstance(request, SdkStreamRequest):
|
|
2012
|
+
body = request.get_file_stream()
|
|
2013
|
+
|
|
2014
|
+
response_headers = []
|
|
2015
|
+
|
|
2016
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
|
2017
|
+
['application/json'])
|
|
2018
|
+
|
|
2019
|
+
auth_settings = []
|
|
2020
|
+
|
|
2021
|
+
http_info["cname"] = cname
|
|
2022
|
+
http_info["collection_formats"] = collection_formats
|
|
2023
|
+
http_info["path_params"] = path_params
|
|
2024
|
+
http_info["query_params"] = query_params
|
|
2025
|
+
http_info["header_params"] = header_params
|
|
2026
|
+
http_info["post_params"] = form_params
|
|
2027
|
+
http_info["body"] = body
|
|
2028
|
+
http_info["response_headers"] = response_headers
|
|
2029
|
+
|
|
2030
|
+
return http_info
|
|
2031
|
+
|
|
1835
2032
|
def delete_ip_from_domain_name(self, request):
|
|
1836
2033
|
"""域名摘除IP
|
|
1837
2034
|
|
|
@@ -1966,6 +2163,71 @@ class DcsClient(Client):
|
|
|
1966
2163
|
|
|
1967
2164
|
return http_info
|
|
1968
2165
|
|
|
2166
|
+
def delete_public_ip(self, request):
|
|
2167
|
+
"""关闭实例公网访问
|
|
2168
|
+
|
|
2169
|
+
关闭实例公网访问。
|
|
2170
|
+
|
|
2171
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
|
2172
|
+
|
|
2173
|
+
:param request: Request instance for DeletePublicIp
|
|
2174
|
+
:type request: :class:`huaweicloudsdkdcs.v2.DeletePublicIpRequest`
|
|
2175
|
+
:rtype: :class:`huaweicloudsdkdcs.v2.DeletePublicIpResponse`
|
|
2176
|
+
"""
|
|
2177
|
+
http_info = self._delete_public_ip_http_info(request)
|
|
2178
|
+
return self._call_api(**http_info)
|
|
2179
|
+
|
|
2180
|
+
def delete_public_ip_invoker(self, request):
|
|
2181
|
+
http_info = self._delete_public_ip_http_info(request)
|
|
2182
|
+
return SyncInvoker(self, http_info)
|
|
2183
|
+
|
|
2184
|
+
@classmethod
|
|
2185
|
+
def _delete_public_ip_http_info(cls, request):
|
|
2186
|
+
http_info = {
|
|
2187
|
+
"method": "DELETE",
|
|
2188
|
+
"resource_path": "/v2/{project_id}/instances/{instance_id}/public-ip",
|
|
2189
|
+
"request_type": request.__class__.__name__,
|
|
2190
|
+
"response_type": "DeletePublicIpResponse"
|
|
2191
|
+
}
|
|
2192
|
+
|
|
2193
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
|
2194
|
+
|
|
2195
|
+
cname = None
|
|
2196
|
+
|
|
2197
|
+
collection_formats = {}
|
|
2198
|
+
|
|
2199
|
+
path_params = {}
|
|
2200
|
+
if 'instance_id' in local_var_params:
|
|
2201
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
|
2202
|
+
|
|
2203
|
+
query_params = []
|
|
2204
|
+
|
|
2205
|
+
header_params = {}
|
|
2206
|
+
|
|
2207
|
+
form_params = {}
|
|
2208
|
+
|
|
2209
|
+
body = None
|
|
2210
|
+
if isinstance(request, SdkStreamRequest):
|
|
2211
|
+
body = request.get_file_stream()
|
|
2212
|
+
|
|
2213
|
+
response_headers = []
|
|
2214
|
+
|
|
2215
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
|
2216
|
+
['application/json'])
|
|
2217
|
+
|
|
2218
|
+
auth_settings = []
|
|
2219
|
+
|
|
2220
|
+
http_info["cname"] = cname
|
|
2221
|
+
http_info["collection_formats"] = collection_formats
|
|
2222
|
+
http_info["path_params"] = path_params
|
|
2223
|
+
http_info["query_params"] = query_params
|
|
2224
|
+
http_info["header_params"] = header_params
|
|
2225
|
+
http_info["post_params"] = form_params
|
|
2226
|
+
http_info["body"] = body
|
|
2227
|
+
http_info["response_headers"] = response_headers
|
|
2228
|
+
|
|
2229
|
+
return http_info
|
|
2230
|
+
|
|
1969
2231
|
def delete_single_instance(self, request):
|
|
1970
2232
|
"""删除实例
|
|
1971
2233
|
|
|
@@ -5265,31 +5527,31 @@ class DcsClient(Client):
|
|
|
5265
5527
|
|
|
5266
5528
|
return http_info
|
|
5267
5529
|
|
|
5268
|
-
def
|
|
5269
|
-
"""
|
|
5530
|
+
def show_bandwidths(self, request):
|
|
5531
|
+
"""获取实例分片带宽
|
|
5270
5532
|
|
|
5271
|
-
|
|
5533
|
+
获取实例各个分片带宽。
|
|
5272
5534
|
|
|
5273
5535
|
Please refer to HUAWEI cloud API Explorer for details.
|
|
5274
5536
|
|
|
5275
|
-
:param request: Request instance for
|
|
5276
|
-
:type request: :class:`huaweicloudsdkdcs.v2.
|
|
5277
|
-
:rtype: :class:`huaweicloudsdkdcs.v2.
|
|
5537
|
+
:param request: Request instance for ShowBandwidths
|
|
5538
|
+
:type request: :class:`huaweicloudsdkdcs.v2.ShowBandwidthsRequest`
|
|
5539
|
+
:rtype: :class:`huaweicloudsdkdcs.v2.ShowBandwidthsResponse`
|
|
5278
5540
|
"""
|
|
5279
|
-
http_info = self.
|
|
5541
|
+
http_info = self._show_bandwidths_http_info(request)
|
|
5280
5542
|
return self._call_api(**http_info)
|
|
5281
5543
|
|
|
5282
|
-
def
|
|
5283
|
-
http_info = self.
|
|
5544
|
+
def show_bandwidths_invoker(self, request):
|
|
5545
|
+
http_info = self._show_bandwidths_http_info(request)
|
|
5284
5546
|
return SyncInvoker(self, http_info)
|
|
5285
5547
|
|
|
5286
5548
|
@classmethod
|
|
5287
|
-
def
|
|
5549
|
+
def _show_bandwidths_http_info(cls, request):
|
|
5288
5550
|
http_info = {
|
|
5289
5551
|
"method": "GET",
|
|
5290
|
-
"resource_path": "/v2/{project_id}/instances/{instance_id}/
|
|
5552
|
+
"resource_path": "/v2/{project_id}/instances/{instance_id}/bandwidths",
|
|
5291
5553
|
"request_type": request.__class__.__name__,
|
|
5292
|
-
"response_type": "
|
|
5554
|
+
"response_type": "ShowBandwidthsResponse"
|
|
5293
5555
|
}
|
|
5294
5556
|
|
|
5295
5557
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
|
@@ -5330,31 +5592,31 @@ class DcsClient(Client):
|
|
|
5330
5592
|
|
|
5331
5593
|
return http_info
|
|
5332
5594
|
|
|
5333
|
-
def
|
|
5334
|
-
"""查询大key
|
|
5595
|
+
def show_bigkey_autoscan_config(self, request):
|
|
5596
|
+
"""查询大key自动分析配置
|
|
5335
5597
|
|
|
5336
|
-
查询大key
|
|
5598
|
+
查询大key自动分析配置。
|
|
5337
5599
|
|
|
5338
5600
|
Please refer to HUAWEI cloud API Explorer for details.
|
|
5339
5601
|
|
|
5340
|
-
:param request: Request instance for
|
|
5341
|
-
:type request: :class:`huaweicloudsdkdcs.v2.
|
|
5342
|
-
:rtype: :class:`huaweicloudsdkdcs.v2.
|
|
5602
|
+
:param request: Request instance for ShowBigkeyAutoscanConfig
|
|
5603
|
+
:type request: :class:`huaweicloudsdkdcs.v2.ShowBigkeyAutoscanConfigRequest`
|
|
5604
|
+
:rtype: :class:`huaweicloudsdkdcs.v2.ShowBigkeyAutoscanConfigResponse`
|
|
5343
5605
|
"""
|
|
5344
|
-
http_info = self.
|
|
5606
|
+
http_info = self._show_bigkey_autoscan_config_http_info(request)
|
|
5345
5607
|
return self._call_api(**http_info)
|
|
5346
5608
|
|
|
5347
|
-
def
|
|
5348
|
-
http_info = self.
|
|
5609
|
+
def show_bigkey_autoscan_config_invoker(self, request):
|
|
5610
|
+
http_info = self._show_bigkey_autoscan_config_http_info(request)
|
|
5349
5611
|
return SyncInvoker(self, http_info)
|
|
5350
5612
|
|
|
5351
5613
|
@classmethod
|
|
5352
|
-
def
|
|
5614
|
+
def _show_bigkey_autoscan_config_http_info(cls, request):
|
|
5353
5615
|
http_info = {
|
|
5354
5616
|
"method": "GET",
|
|
5355
|
-
"resource_path": "/v2/{project_id}/instances/{instance_id}/bigkey
|
|
5617
|
+
"resource_path": "/v2/{project_id}/instances/{instance_id}/bigkey/autoscan",
|
|
5356
5618
|
"request_type": request.__class__.__name__,
|
|
5357
|
-
"response_type": "
|
|
5619
|
+
"response_type": "ShowBigkeyAutoscanConfigResponse"
|
|
5358
5620
|
}
|
|
5359
5621
|
|
|
5360
5622
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
|
@@ -5366,8 +5628,6 @@ class DcsClient(Client):
|
|
|
5366
5628
|
path_params = {}
|
|
5367
5629
|
if 'instance_id' in local_var_params:
|
|
5368
5630
|
path_params['instance_id'] = local_var_params['instance_id']
|
|
5369
|
-
if 'bigkey_id' in local_var_params:
|
|
5370
|
-
path_params['bigkey_id'] = local_var_params['bigkey_id']
|
|
5371
5631
|
|
|
5372
5632
|
query_params = []
|
|
5373
5633
|
|
|
@@ -5397,8 +5657,75 @@ class DcsClient(Client):
|
|
|
5397
5657
|
|
|
5398
5658
|
return http_info
|
|
5399
5659
|
|
|
5400
|
-
def
|
|
5401
|
-
"""
|
|
5660
|
+
def show_bigkey_scan_task_details(self, request):
|
|
5661
|
+
"""查询大key分析详情
|
|
5662
|
+
|
|
5663
|
+
查询大key分析详情。
|
|
5664
|
+
|
|
5665
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
|
5666
|
+
|
|
5667
|
+
:param request: Request instance for ShowBigkeyScanTaskDetails
|
|
5668
|
+
:type request: :class:`huaweicloudsdkdcs.v2.ShowBigkeyScanTaskDetailsRequest`
|
|
5669
|
+
:rtype: :class:`huaweicloudsdkdcs.v2.ShowBigkeyScanTaskDetailsResponse`
|
|
5670
|
+
"""
|
|
5671
|
+
http_info = self._show_bigkey_scan_task_details_http_info(request)
|
|
5672
|
+
return self._call_api(**http_info)
|
|
5673
|
+
|
|
5674
|
+
def show_bigkey_scan_task_details_invoker(self, request):
|
|
5675
|
+
http_info = self._show_bigkey_scan_task_details_http_info(request)
|
|
5676
|
+
return SyncInvoker(self, http_info)
|
|
5677
|
+
|
|
5678
|
+
@classmethod
|
|
5679
|
+
def _show_bigkey_scan_task_details_http_info(cls, request):
|
|
5680
|
+
http_info = {
|
|
5681
|
+
"method": "GET",
|
|
5682
|
+
"resource_path": "/v2/{project_id}/instances/{instance_id}/bigkey-task/{bigkey_id}",
|
|
5683
|
+
"request_type": request.__class__.__name__,
|
|
5684
|
+
"response_type": "ShowBigkeyScanTaskDetailsResponse"
|
|
5685
|
+
}
|
|
5686
|
+
|
|
5687
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
|
5688
|
+
|
|
5689
|
+
cname = None
|
|
5690
|
+
|
|
5691
|
+
collection_formats = {}
|
|
5692
|
+
|
|
5693
|
+
path_params = {}
|
|
5694
|
+
if 'instance_id' in local_var_params:
|
|
5695
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
|
5696
|
+
if 'bigkey_id' in local_var_params:
|
|
5697
|
+
path_params['bigkey_id'] = local_var_params['bigkey_id']
|
|
5698
|
+
|
|
5699
|
+
query_params = []
|
|
5700
|
+
|
|
5701
|
+
header_params = {}
|
|
5702
|
+
|
|
5703
|
+
form_params = {}
|
|
5704
|
+
|
|
5705
|
+
body = None
|
|
5706
|
+
if isinstance(request, SdkStreamRequest):
|
|
5707
|
+
body = request.get_file_stream()
|
|
5708
|
+
|
|
5709
|
+
response_headers = []
|
|
5710
|
+
|
|
5711
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
|
5712
|
+
['application/json'])
|
|
5713
|
+
|
|
5714
|
+
auth_settings = []
|
|
5715
|
+
|
|
5716
|
+
http_info["cname"] = cname
|
|
5717
|
+
http_info["collection_formats"] = collection_formats
|
|
5718
|
+
http_info["path_params"] = path_params
|
|
5719
|
+
http_info["query_params"] = query_params
|
|
5720
|
+
http_info["header_params"] = header_params
|
|
5721
|
+
http_info["post_params"] = form_params
|
|
5722
|
+
http_info["body"] = body
|
|
5723
|
+
http_info["response_headers"] = response_headers
|
|
5724
|
+
|
|
5725
|
+
return http_info
|
|
5726
|
+
|
|
5727
|
+
def show_config_history_detail(self, request):
|
|
5728
|
+
"""查询实例参数修改记录详情
|
|
5402
5729
|
|
|
5403
5730
|
查询实例参数修改记录详情
|
|
5404
5731
|
|
|
@@ -5929,6 +6256,71 @@ class DcsClient(Client):
|
|
|
5929
6256
|
|
|
5930
6257
|
return http_info
|
|
5931
6258
|
|
|
6259
|
+
def show_instance_bandwidth_auto_scaling_policy(self, request):
|
|
6260
|
+
"""查询实例带宽弹性伸缩策略
|
|
6261
|
+
|
|
6262
|
+
查询实例带宽弹性伸缩策略。
|
|
6263
|
+
|
|
6264
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
|
6265
|
+
|
|
6266
|
+
:param request: Request instance for ShowInstanceBandwidthAutoScalingPolicy
|
|
6267
|
+
:type request: :class:`huaweicloudsdkdcs.v2.ShowInstanceBandwidthAutoScalingPolicyRequest`
|
|
6268
|
+
:rtype: :class:`huaweicloudsdkdcs.v2.ShowInstanceBandwidthAutoScalingPolicyResponse`
|
|
6269
|
+
"""
|
|
6270
|
+
http_info = self._show_instance_bandwidth_auto_scaling_policy_http_info(request)
|
|
6271
|
+
return self._call_api(**http_info)
|
|
6272
|
+
|
|
6273
|
+
def show_instance_bandwidth_auto_scaling_policy_invoker(self, request):
|
|
6274
|
+
http_info = self._show_instance_bandwidth_auto_scaling_policy_http_info(request)
|
|
6275
|
+
return SyncInvoker(self, http_info)
|
|
6276
|
+
|
|
6277
|
+
@classmethod
|
|
6278
|
+
def _show_instance_bandwidth_auto_scaling_policy_http_info(cls, request):
|
|
6279
|
+
http_info = {
|
|
6280
|
+
"method": "GET",
|
|
6281
|
+
"resource_path": "/v2/{project_id}/instances/{instance_id}/autoscaling-policy/bandwidth",
|
|
6282
|
+
"request_type": request.__class__.__name__,
|
|
6283
|
+
"response_type": "ShowInstanceBandwidthAutoScalingPolicyResponse"
|
|
6284
|
+
}
|
|
6285
|
+
|
|
6286
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
|
6287
|
+
|
|
6288
|
+
cname = None
|
|
6289
|
+
|
|
6290
|
+
collection_formats = {}
|
|
6291
|
+
|
|
6292
|
+
path_params = {}
|
|
6293
|
+
if 'instance_id' in local_var_params:
|
|
6294
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
|
6295
|
+
|
|
6296
|
+
query_params = []
|
|
6297
|
+
|
|
6298
|
+
header_params = {}
|
|
6299
|
+
|
|
6300
|
+
form_params = {}
|
|
6301
|
+
|
|
6302
|
+
body = None
|
|
6303
|
+
if isinstance(request, SdkStreamRequest):
|
|
6304
|
+
body = request.get_file_stream()
|
|
6305
|
+
|
|
6306
|
+
response_headers = []
|
|
6307
|
+
|
|
6308
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
|
6309
|
+
['application/json'])
|
|
6310
|
+
|
|
6311
|
+
auth_settings = []
|
|
6312
|
+
|
|
6313
|
+
http_info["cname"] = cname
|
|
6314
|
+
http_info["collection_formats"] = collection_formats
|
|
6315
|
+
http_info["path_params"] = path_params
|
|
6316
|
+
http_info["query_params"] = query_params
|
|
6317
|
+
http_info["header_params"] = header_params
|
|
6318
|
+
http_info["post_params"] = form_params
|
|
6319
|
+
http_info["body"] = body
|
|
6320
|
+
http_info["response_headers"] = response_headers
|
|
6321
|
+
|
|
6322
|
+
return http_info
|
|
6323
|
+
|
|
5932
6324
|
def show_instance_ssl_detail(self, request):
|
|
5933
6325
|
"""查询实例SSL信息
|
|
5934
6326
|
|
|
@@ -5994,6 +6386,71 @@ class DcsClient(Client):
|
|
|
5994
6386
|
|
|
5995
6387
|
return http_info
|
|
5996
6388
|
|
|
6389
|
+
def show_instance_version(self, request):
|
|
6390
|
+
"""根据实例ID获取实例内核版本信息
|
|
6391
|
+
|
|
6392
|
+
获取对应实例内核版本号。
|
|
6393
|
+
|
|
6394
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
|
6395
|
+
|
|
6396
|
+
:param request: Request instance for ShowInstanceVersion
|
|
6397
|
+
:type request: :class:`huaweicloudsdkdcs.v2.ShowInstanceVersionRequest`
|
|
6398
|
+
:rtype: :class:`huaweicloudsdkdcs.v2.ShowInstanceVersionResponse`
|
|
6399
|
+
"""
|
|
6400
|
+
http_info = self._show_instance_version_http_info(request)
|
|
6401
|
+
return self._call_api(**http_info)
|
|
6402
|
+
|
|
6403
|
+
def show_instance_version_invoker(self, request):
|
|
6404
|
+
http_info = self._show_instance_version_http_info(request)
|
|
6405
|
+
return SyncInvoker(self, http_info)
|
|
6406
|
+
|
|
6407
|
+
@classmethod
|
|
6408
|
+
def _show_instance_version_http_info(cls, request):
|
|
6409
|
+
http_info = {
|
|
6410
|
+
"method": "GET",
|
|
6411
|
+
"resource_path": "/v2/{project_id}/instances/{instance_id}/version",
|
|
6412
|
+
"request_type": request.__class__.__name__,
|
|
6413
|
+
"response_type": "ShowInstanceVersionResponse"
|
|
6414
|
+
}
|
|
6415
|
+
|
|
6416
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
|
6417
|
+
|
|
6418
|
+
cname = None
|
|
6419
|
+
|
|
6420
|
+
collection_formats = {}
|
|
6421
|
+
|
|
6422
|
+
path_params = {}
|
|
6423
|
+
if 'instance_id' in local_var_params:
|
|
6424
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
|
6425
|
+
|
|
6426
|
+
query_params = []
|
|
6427
|
+
|
|
6428
|
+
header_params = {}
|
|
6429
|
+
|
|
6430
|
+
form_params = {}
|
|
6431
|
+
|
|
6432
|
+
body = None
|
|
6433
|
+
if isinstance(request, SdkStreamRequest):
|
|
6434
|
+
body = request.get_file_stream()
|
|
6435
|
+
|
|
6436
|
+
response_headers = []
|
|
6437
|
+
|
|
6438
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
|
6439
|
+
['application/json'])
|
|
6440
|
+
|
|
6441
|
+
auth_settings = []
|
|
6442
|
+
|
|
6443
|
+
http_info["cname"] = cname
|
|
6444
|
+
http_info["collection_formats"] = collection_formats
|
|
6445
|
+
http_info["path_params"] = path_params
|
|
6446
|
+
http_info["query_params"] = query_params
|
|
6447
|
+
http_info["header_params"] = header_params
|
|
6448
|
+
http_info["post_params"] = form_params
|
|
6449
|
+
http_info["body"] = body
|
|
6450
|
+
http_info["response_headers"] = response_headers
|
|
6451
|
+
|
|
6452
|
+
return http_info
|
|
6453
|
+
|
|
5997
6454
|
def show_job_info(self, request):
|
|
5998
6455
|
"""查询租户Job执行结果
|
|
5999
6456
|
|
|
@@ -6855,6 +7312,73 @@ class DcsClient(Client):
|
|
|
6855
7312
|
|
|
6856
7313
|
return http_info
|
|
6857
7314
|
|
|
7315
|
+
def update_bandwidth(self, request):
|
|
7316
|
+
"""修改实例分片带宽
|
|
7317
|
+
|
|
7318
|
+
修改实例分片带宽。
|
|
7319
|
+
|
|
7320
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
|
7321
|
+
|
|
7322
|
+
:param request: Request instance for UpdateBandwidth
|
|
7323
|
+
:type request: :class:`huaweicloudsdkdcs.v2.UpdateBandwidthRequest`
|
|
7324
|
+
:rtype: :class:`huaweicloudsdkdcs.v2.UpdateBandwidthResponse`
|
|
7325
|
+
"""
|
|
7326
|
+
http_info = self._update_bandwidth_http_info(request)
|
|
7327
|
+
return self._call_api(**http_info)
|
|
7328
|
+
|
|
7329
|
+
def update_bandwidth_invoker(self, request):
|
|
7330
|
+
http_info = self._update_bandwidth_http_info(request)
|
|
7331
|
+
return SyncInvoker(self, http_info)
|
|
7332
|
+
|
|
7333
|
+
@classmethod
|
|
7334
|
+
def _update_bandwidth_http_info(cls, request):
|
|
7335
|
+
http_info = {
|
|
7336
|
+
"method": "PUT",
|
|
7337
|
+
"resource_path": "/v2/{project_id}/instances/{instance_id}/bandwidths",
|
|
7338
|
+
"request_type": request.__class__.__name__,
|
|
7339
|
+
"response_type": "UpdateBandwidthResponse"
|
|
7340
|
+
}
|
|
7341
|
+
|
|
7342
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
|
7343
|
+
|
|
7344
|
+
cname = None
|
|
7345
|
+
|
|
7346
|
+
collection_formats = {}
|
|
7347
|
+
|
|
7348
|
+
path_params = {}
|
|
7349
|
+
if 'instance_id' in local_var_params:
|
|
7350
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
|
7351
|
+
|
|
7352
|
+
query_params = []
|
|
7353
|
+
|
|
7354
|
+
header_params = {}
|
|
7355
|
+
|
|
7356
|
+
form_params = {}
|
|
7357
|
+
|
|
7358
|
+
body = None
|
|
7359
|
+
if 'body' in local_var_params:
|
|
7360
|
+
body = local_var_params['body']
|
|
7361
|
+
if isinstance(request, SdkStreamRequest):
|
|
7362
|
+
body = request.get_file_stream()
|
|
7363
|
+
|
|
7364
|
+
response_headers = []
|
|
7365
|
+
|
|
7366
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
|
7367
|
+
['application/json'])
|
|
7368
|
+
|
|
7369
|
+
auth_settings = []
|
|
7370
|
+
|
|
7371
|
+
http_info["cname"] = cname
|
|
7372
|
+
http_info["collection_formats"] = collection_formats
|
|
7373
|
+
http_info["path_params"] = path_params
|
|
7374
|
+
http_info["query_params"] = query_params
|
|
7375
|
+
http_info["header_params"] = header_params
|
|
7376
|
+
http_info["post_params"] = form_params
|
|
7377
|
+
http_info["body"] = body
|
|
7378
|
+
http_info["response_headers"] = response_headers
|
|
7379
|
+
|
|
7380
|
+
return http_info
|
|
7381
|
+
|
|
6858
7382
|
def update_bigkey_autoscan_config(self, request):
|
|
6859
7383
|
"""设置大key自动分析配置
|
|
6860
7384
|
|
|
@@ -7389,6 +7913,73 @@ class DcsClient(Client):
|
|
|
7389
7913
|
|
|
7390
7914
|
return http_info
|
|
7391
7915
|
|
|
7916
|
+
def update_instance_bandwidth_auto_scaling_policy(self, request):
|
|
7917
|
+
"""更新实例带宽弹性伸缩策略
|
|
7918
|
+
|
|
7919
|
+
更新实例带宽弹性伸缩策略。暂不支持实例带宽自动回缩。
|
|
7920
|
+
|
|
7921
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
|
7922
|
+
|
|
7923
|
+
:param request: Request instance for UpdateInstanceBandwidthAutoScalingPolicy
|
|
7924
|
+
:type request: :class:`huaweicloudsdkdcs.v2.UpdateInstanceBandwidthAutoScalingPolicyRequest`
|
|
7925
|
+
:rtype: :class:`huaweicloudsdkdcs.v2.UpdateInstanceBandwidthAutoScalingPolicyResponse`
|
|
7926
|
+
"""
|
|
7927
|
+
http_info = self._update_instance_bandwidth_auto_scaling_policy_http_info(request)
|
|
7928
|
+
return self._call_api(**http_info)
|
|
7929
|
+
|
|
7930
|
+
def update_instance_bandwidth_auto_scaling_policy_invoker(self, request):
|
|
7931
|
+
http_info = self._update_instance_bandwidth_auto_scaling_policy_http_info(request)
|
|
7932
|
+
return SyncInvoker(self, http_info)
|
|
7933
|
+
|
|
7934
|
+
@classmethod
|
|
7935
|
+
def _update_instance_bandwidth_auto_scaling_policy_http_info(cls, request):
|
|
7936
|
+
http_info = {
|
|
7937
|
+
"method": "PUT",
|
|
7938
|
+
"resource_path": "/v2/{project_id}/instances/{instance_id}/autoscaling-policy/bandwidth",
|
|
7939
|
+
"request_type": request.__class__.__name__,
|
|
7940
|
+
"response_type": "UpdateInstanceBandwidthAutoScalingPolicyResponse"
|
|
7941
|
+
}
|
|
7942
|
+
|
|
7943
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
|
7944
|
+
|
|
7945
|
+
cname = None
|
|
7946
|
+
|
|
7947
|
+
collection_formats = {}
|
|
7948
|
+
|
|
7949
|
+
path_params = {}
|
|
7950
|
+
if 'instance_id' in local_var_params:
|
|
7951
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
|
7952
|
+
|
|
7953
|
+
query_params = []
|
|
7954
|
+
|
|
7955
|
+
header_params = {}
|
|
7956
|
+
|
|
7957
|
+
form_params = {}
|
|
7958
|
+
|
|
7959
|
+
body = None
|
|
7960
|
+
if 'body' in local_var_params:
|
|
7961
|
+
body = local_var_params['body']
|
|
7962
|
+
if isinstance(request, SdkStreamRequest):
|
|
7963
|
+
body = request.get_file_stream()
|
|
7964
|
+
|
|
7965
|
+
response_headers = []
|
|
7966
|
+
|
|
7967
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
|
7968
|
+
['application/json;charset=UTF-8'])
|
|
7969
|
+
|
|
7970
|
+
auth_settings = []
|
|
7971
|
+
|
|
7972
|
+
http_info["cname"] = cname
|
|
7973
|
+
http_info["collection_formats"] = collection_formats
|
|
7974
|
+
http_info["path_params"] = path_params
|
|
7975
|
+
http_info["query_params"] = query_params
|
|
7976
|
+
http_info["header_params"] = header_params
|
|
7977
|
+
http_info["post_params"] = form_params
|
|
7978
|
+
http_info["body"] = body
|
|
7979
|
+
http_info["response_headers"] = response_headers
|
|
7980
|
+
|
|
7981
|
+
return http_info
|
|
7982
|
+
|
|
7392
7983
|
def update_instance_config(self, request):
|
|
7393
7984
|
"""异步修改实例配置参数
|
|
7394
7985
|
|
|
@@ -7590,6 +8181,73 @@ class DcsClient(Client):
|
|
|
7590
8181
|
|
|
7591
8182
|
return http_info
|
|
7592
8183
|
|
|
8184
|
+
def update_public_ip(self, request):
|
|
8185
|
+
"""开启/修改实例公网访问
|
|
8186
|
+
|
|
8187
|
+
开启/修改实例公网访问。
|
|
8188
|
+
|
|
8189
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
|
8190
|
+
|
|
8191
|
+
:param request: Request instance for UpdatePublicIp
|
|
8192
|
+
:type request: :class:`huaweicloudsdkdcs.v2.UpdatePublicIpRequest`
|
|
8193
|
+
:rtype: :class:`huaweicloudsdkdcs.v2.UpdatePublicIpResponse`
|
|
8194
|
+
"""
|
|
8195
|
+
http_info = self._update_public_ip_http_info(request)
|
|
8196
|
+
return self._call_api(**http_info)
|
|
8197
|
+
|
|
8198
|
+
def update_public_ip_invoker(self, request):
|
|
8199
|
+
http_info = self._update_public_ip_http_info(request)
|
|
8200
|
+
return SyncInvoker(self, http_info)
|
|
8201
|
+
|
|
8202
|
+
@classmethod
|
|
8203
|
+
def _update_public_ip_http_info(cls, request):
|
|
8204
|
+
http_info = {
|
|
8205
|
+
"method": "POST",
|
|
8206
|
+
"resource_path": "/v2/{project_id}/instances/{instance_id}/public-ip",
|
|
8207
|
+
"request_type": request.__class__.__name__,
|
|
8208
|
+
"response_type": "UpdatePublicIpResponse"
|
|
8209
|
+
}
|
|
8210
|
+
|
|
8211
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
|
8212
|
+
|
|
8213
|
+
cname = None
|
|
8214
|
+
|
|
8215
|
+
collection_formats = {}
|
|
8216
|
+
|
|
8217
|
+
path_params = {}
|
|
8218
|
+
if 'instance_id' in local_var_params:
|
|
8219
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
|
8220
|
+
|
|
8221
|
+
query_params = []
|
|
8222
|
+
|
|
8223
|
+
header_params = {}
|
|
8224
|
+
|
|
8225
|
+
form_params = {}
|
|
8226
|
+
|
|
8227
|
+
body = None
|
|
8228
|
+
if 'body' in local_var_params:
|
|
8229
|
+
body = local_var_params['body']
|
|
8230
|
+
if isinstance(request, SdkStreamRequest):
|
|
8231
|
+
body = request.get_file_stream()
|
|
8232
|
+
|
|
8233
|
+
response_headers = []
|
|
8234
|
+
|
|
8235
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
|
8236
|
+
['application/json;charset=UTF-8'])
|
|
8237
|
+
|
|
8238
|
+
auth_settings = []
|
|
8239
|
+
|
|
8240
|
+
http_info["cname"] = cname
|
|
8241
|
+
http_info["collection_formats"] = collection_formats
|
|
8242
|
+
http_info["path_params"] = path_params
|
|
8243
|
+
http_info["query_params"] = query_params
|
|
8244
|
+
http_info["header_params"] = header_params
|
|
8245
|
+
http_info["post_params"] = form_params
|
|
8246
|
+
http_info["body"] = body
|
|
8247
|
+
http_info["response_headers"] = response_headers
|
|
8248
|
+
|
|
8249
|
+
return http_info
|
|
8250
|
+
|
|
7593
8251
|
def update_slave_priority(self, request):
|
|
7594
8252
|
"""设置备节点优先级
|
|
7595
8253
|
|
|
@@ -7728,6 +8386,73 @@ class DcsClient(Client):
|
|
|
7728
8386
|
|
|
7729
8387
|
return http_info
|
|
7730
8388
|
|
|
8389
|
+
def upgrade_instance_minor_version(self, request):
|
|
8390
|
+
"""升级实例小版本
|
|
8391
|
+
|
|
8392
|
+
升级实例小版本。
|
|
8393
|
+
|
|
8394
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
|
8395
|
+
|
|
8396
|
+
:param request: Request instance for UpgradeInstanceMinorVersion
|
|
8397
|
+
:type request: :class:`huaweicloudsdkdcs.v2.UpgradeInstanceMinorVersionRequest`
|
|
8398
|
+
:rtype: :class:`huaweicloudsdkdcs.v2.UpgradeInstanceMinorVersionResponse`
|
|
8399
|
+
"""
|
|
8400
|
+
http_info = self._upgrade_instance_minor_version_http_info(request)
|
|
8401
|
+
return self._call_api(**http_info)
|
|
8402
|
+
|
|
8403
|
+
def upgrade_instance_minor_version_invoker(self, request):
|
|
8404
|
+
http_info = self._upgrade_instance_minor_version_http_info(request)
|
|
8405
|
+
return SyncInvoker(self, http_info)
|
|
8406
|
+
|
|
8407
|
+
@classmethod
|
|
8408
|
+
def _upgrade_instance_minor_version_http_info(cls, request):
|
|
8409
|
+
http_info = {
|
|
8410
|
+
"method": "POST",
|
|
8411
|
+
"resource_path": "/v2/{project_id}/instances/{instance_id}/minor-version/upgrade",
|
|
8412
|
+
"request_type": request.__class__.__name__,
|
|
8413
|
+
"response_type": "UpgradeInstanceMinorVersionResponse"
|
|
8414
|
+
}
|
|
8415
|
+
|
|
8416
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
|
8417
|
+
|
|
8418
|
+
cname = None
|
|
8419
|
+
|
|
8420
|
+
collection_formats = {}
|
|
8421
|
+
|
|
8422
|
+
path_params = {}
|
|
8423
|
+
if 'instance_id' in local_var_params:
|
|
8424
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
|
8425
|
+
|
|
8426
|
+
query_params = []
|
|
8427
|
+
|
|
8428
|
+
header_params = {}
|
|
8429
|
+
|
|
8430
|
+
form_params = {}
|
|
8431
|
+
|
|
8432
|
+
body = None
|
|
8433
|
+
if 'body' in local_var_params:
|
|
8434
|
+
body = local_var_params['body']
|
|
8435
|
+
if isinstance(request, SdkStreamRequest):
|
|
8436
|
+
body = request.get_file_stream()
|
|
8437
|
+
|
|
8438
|
+
response_headers = []
|
|
8439
|
+
|
|
8440
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
|
8441
|
+
['application/json;charset=UTF-8'])
|
|
8442
|
+
|
|
8443
|
+
auth_settings = []
|
|
8444
|
+
|
|
8445
|
+
http_info["cname"] = cname
|
|
8446
|
+
http_info["collection_formats"] = collection_formats
|
|
8447
|
+
http_info["path_params"] = path_params
|
|
8448
|
+
http_info["query_params"] = query_params
|
|
8449
|
+
http_info["header_params"] = header_params
|
|
8450
|
+
http_info["post_params"] = form_params
|
|
8451
|
+
http_info["body"] = body
|
|
8452
|
+
http_info["response_headers"] = response_headers
|
|
8453
|
+
|
|
8454
|
+
return http_info
|
|
8455
|
+
|
|
7731
8456
|
def validate_deletable_replica(self, request):
|
|
7732
8457
|
"""校验集群副本是否支持删除
|
|
7733
8458
|
|