huaweicloudsdkdcs 3.1.126__py2.py3-none-any.whl → 3.1.128__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 +31 -0
- huaweicloudsdkdcs/v2/dcs_async_client.py +688 -28
- huaweicloudsdkdcs/v2/dcs_client.py +688 -28
- huaweicloudsdkdcs/v2/model/__init__.py +31 -0
- huaweicloudsdkdcs/v2/model/bandwidth_auto_scaling_policy.py +258 -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/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/group_bandwidth_info.py +231 -0
- 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 +259 -0
- huaweicloudsdkdcs/v2/model/show_instance_version_request.py +114 -0
- huaweicloudsdkdcs/v2/model/show_instance_version_response.py +261 -0
- 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 +258 -0
- huaweicloudsdkdcs/v2/model/update_instance_bandwidth_auto_scaling_policy_response.py +259 -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-3.1.126.dist-info → huaweicloudsdkdcs-3.1.128.dist-info}/METADATA +2 -2
- {huaweicloudsdkdcs-3.1.126.dist-info → huaweicloudsdkdcs-3.1.128.dist-info}/RECORD +40 -9
- {huaweicloudsdkdcs-3.1.126.dist-info → huaweicloudsdkdcs-3.1.128.dist-info}/LICENSE +0 -0
- {huaweicloudsdkdcs-3.1.126.dist-info → huaweicloudsdkdcs-3.1.128.dist-info}/WHEEL +0 -0
- {huaweicloudsdkdcs-3.1.126.dist-info → huaweicloudsdkdcs-3.1.128.dist-info}/top_level.txt +0 -0
|
@@ -495,6 +495,73 @@ class DcsClient(Client):
|
|
|
495
495
|
|
|
496
496
|
return http_info
|
|
497
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
|
+
|
|
498
565
|
def copy_instance(self, request):
|
|
499
566
|
"""备份指定实例
|
|
500
567
|
|
|
@@ -1897,6 +1964,71 @@ class DcsClient(Client):
|
|
|
1897
1964
|
|
|
1898
1965
|
return http_info
|
|
1899
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
|
+
|
|
1900
2032
|
def delete_ip_from_domain_name(self, request):
|
|
1901
2033
|
"""域名摘除IP
|
|
1902
2034
|
|
|
@@ -2031,6 +2163,71 @@ class DcsClient(Client):
|
|
|
2031
2163
|
|
|
2032
2164
|
return http_info
|
|
2033
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
|
+
|
|
2034
2231
|
def delete_single_instance(self, request):
|
|
2035
2232
|
"""删除实例
|
|
2036
2233
|
|
|
@@ -5330,6 +5527,71 @@ class DcsClient(Client):
|
|
|
5330
5527
|
|
|
5331
5528
|
return http_info
|
|
5332
5529
|
|
|
5530
|
+
def show_bandwidths(self, request):
|
|
5531
|
+
"""获取实例分片带宽
|
|
5532
|
+
|
|
5533
|
+
获取实例各个分片带宽。
|
|
5534
|
+
|
|
5535
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
|
5536
|
+
|
|
5537
|
+
:param request: Request instance for ShowBandwidths
|
|
5538
|
+
:type request: :class:`huaweicloudsdkdcs.v2.ShowBandwidthsRequest`
|
|
5539
|
+
:rtype: :class:`huaweicloudsdkdcs.v2.ShowBandwidthsResponse`
|
|
5540
|
+
"""
|
|
5541
|
+
http_info = self._show_bandwidths_http_info(request)
|
|
5542
|
+
return self._call_api(**http_info)
|
|
5543
|
+
|
|
5544
|
+
def show_bandwidths_invoker(self, request):
|
|
5545
|
+
http_info = self._show_bandwidths_http_info(request)
|
|
5546
|
+
return SyncInvoker(self, http_info)
|
|
5547
|
+
|
|
5548
|
+
@classmethod
|
|
5549
|
+
def _show_bandwidths_http_info(cls, request):
|
|
5550
|
+
http_info = {
|
|
5551
|
+
"method": "GET",
|
|
5552
|
+
"resource_path": "/v2/{project_id}/instances/{instance_id}/bandwidths",
|
|
5553
|
+
"request_type": request.__class__.__name__,
|
|
5554
|
+
"response_type": "ShowBandwidthsResponse"
|
|
5555
|
+
}
|
|
5556
|
+
|
|
5557
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
|
5558
|
+
|
|
5559
|
+
cname = None
|
|
5560
|
+
|
|
5561
|
+
collection_formats = {}
|
|
5562
|
+
|
|
5563
|
+
path_params = {}
|
|
5564
|
+
if 'instance_id' in local_var_params:
|
|
5565
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
|
5566
|
+
|
|
5567
|
+
query_params = []
|
|
5568
|
+
|
|
5569
|
+
header_params = {}
|
|
5570
|
+
|
|
5571
|
+
form_params = {}
|
|
5572
|
+
|
|
5573
|
+
body = None
|
|
5574
|
+
if isinstance(request, SdkStreamRequest):
|
|
5575
|
+
body = request.get_file_stream()
|
|
5576
|
+
|
|
5577
|
+
response_headers = []
|
|
5578
|
+
|
|
5579
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
|
5580
|
+
['application/json'])
|
|
5581
|
+
|
|
5582
|
+
auth_settings = []
|
|
5583
|
+
|
|
5584
|
+
http_info["cname"] = cname
|
|
5585
|
+
http_info["collection_formats"] = collection_formats
|
|
5586
|
+
http_info["path_params"] = path_params
|
|
5587
|
+
http_info["query_params"] = query_params
|
|
5588
|
+
http_info["header_params"] = header_params
|
|
5589
|
+
http_info["post_params"] = form_params
|
|
5590
|
+
http_info["body"] = body
|
|
5591
|
+
http_info["response_headers"] = response_headers
|
|
5592
|
+
|
|
5593
|
+
return http_info
|
|
5594
|
+
|
|
5333
5595
|
def show_bigkey_autoscan_config(self, request):
|
|
5334
5596
|
"""查询大key自动分析配置
|
|
5335
5597
|
|
|
@@ -5994,31 +6256,31 @@ class DcsClient(Client):
|
|
|
5994
6256
|
|
|
5995
6257
|
return http_info
|
|
5996
6258
|
|
|
5997
|
-
def
|
|
5998
|
-
"""
|
|
6259
|
+
def show_instance_bandwidth_auto_scaling_policy(self, request):
|
|
6260
|
+
"""查询实例带宽弹性伸缩策略
|
|
5999
6261
|
|
|
6000
|
-
|
|
6262
|
+
查询实例带宽弹性伸缩策略。
|
|
6001
6263
|
|
|
6002
6264
|
Please refer to HUAWEI cloud API Explorer for details.
|
|
6003
6265
|
|
|
6004
|
-
:param request: Request instance for
|
|
6005
|
-
:type request: :class:`huaweicloudsdkdcs.v2.
|
|
6006
|
-
:rtype: :class:`huaweicloudsdkdcs.v2.
|
|
6266
|
+
:param request: Request instance for ShowInstanceBandwidthAutoScalingPolicy
|
|
6267
|
+
:type request: :class:`huaweicloudsdkdcs.v2.ShowInstanceBandwidthAutoScalingPolicyRequest`
|
|
6268
|
+
:rtype: :class:`huaweicloudsdkdcs.v2.ShowInstanceBandwidthAutoScalingPolicyResponse`
|
|
6007
6269
|
"""
|
|
6008
|
-
http_info = self.
|
|
6270
|
+
http_info = self._show_instance_bandwidth_auto_scaling_policy_http_info(request)
|
|
6009
6271
|
return self._call_api(**http_info)
|
|
6010
6272
|
|
|
6011
|
-
def
|
|
6012
|
-
http_info = self.
|
|
6273
|
+
def show_instance_bandwidth_auto_scaling_policy_invoker(self, request):
|
|
6274
|
+
http_info = self._show_instance_bandwidth_auto_scaling_policy_http_info(request)
|
|
6013
6275
|
return SyncInvoker(self, http_info)
|
|
6014
6276
|
|
|
6015
6277
|
@classmethod
|
|
6016
|
-
def
|
|
6278
|
+
def _show_instance_bandwidth_auto_scaling_policy_http_info(cls, request):
|
|
6017
6279
|
http_info = {
|
|
6018
6280
|
"method": "GET",
|
|
6019
|
-
"resource_path": "/v2/{project_id}/instances/{instance_id}/
|
|
6281
|
+
"resource_path": "/v2/{project_id}/instances/{instance_id}/autoscaling-policy/bandwidth",
|
|
6020
6282
|
"request_type": request.__class__.__name__,
|
|
6021
|
-
"response_type": "
|
|
6283
|
+
"response_type": "ShowInstanceBandwidthAutoScalingPolicyResponse"
|
|
6022
6284
|
}
|
|
6023
6285
|
|
|
6024
6286
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
|
@@ -6059,31 +6321,31 @@ class DcsClient(Client):
|
|
|
6059
6321
|
|
|
6060
6322
|
return http_info
|
|
6061
6323
|
|
|
6062
|
-
def
|
|
6063
|
-
"""
|
|
6324
|
+
def show_instance_ssl_detail(self, request):
|
|
6325
|
+
"""查询实例SSL信息
|
|
6064
6326
|
|
|
6065
|
-
|
|
6327
|
+
查询实例SSL信息。该接口目前仅针对Redis 6.0[基础版](tag:hws,hws_hk)版本实例。
|
|
6066
6328
|
|
|
6067
6329
|
Please refer to HUAWEI cloud API Explorer for details.
|
|
6068
6330
|
|
|
6069
|
-
:param request: Request instance for
|
|
6070
|
-
:type request: :class:`huaweicloudsdkdcs.v2.
|
|
6071
|
-
:rtype: :class:`huaweicloudsdkdcs.v2.
|
|
6331
|
+
:param request: Request instance for ShowInstanceSslDetail
|
|
6332
|
+
:type request: :class:`huaweicloudsdkdcs.v2.ShowInstanceSslDetailRequest`
|
|
6333
|
+
:rtype: :class:`huaweicloudsdkdcs.v2.ShowInstanceSslDetailResponse`
|
|
6072
6334
|
"""
|
|
6073
|
-
http_info = self.
|
|
6335
|
+
http_info = self._show_instance_ssl_detail_http_info(request)
|
|
6074
6336
|
return self._call_api(**http_info)
|
|
6075
6337
|
|
|
6076
|
-
def
|
|
6077
|
-
http_info = self.
|
|
6338
|
+
def show_instance_ssl_detail_invoker(self, request):
|
|
6339
|
+
http_info = self._show_instance_ssl_detail_http_info(request)
|
|
6078
6340
|
return SyncInvoker(self, http_info)
|
|
6079
6341
|
|
|
6080
6342
|
@classmethod
|
|
6081
|
-
def
|
|
6343
|
+
def _show_instance_ssl_detail_http_info(cls, request):
|
|
6082
6344
|
http_info = {
|
|
6083
6345
|
"method": "GET",
|
|
6084
|
-
"resource_path": "/v2/{project_id}/
|
|
6346
|
+
"resource_path": "/v2/{project_id}/instances/{instance_id}/ssl",
|
|
6085
6347
|
"request_type": request.__class__.__name__,
|
|
6086
|
-
"response_type": "
|
|
6348
|
+
"response_type": "ShowInstanceSslDetailResponse"
|
|
6087
6349
|
}
|
|
6088
6350
|
|
|
6089
6351
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
|
@@ -6093,8 +6355,8 @@ class DcsClient(Client):
|
|
|
6093
6355
|
collection_formats = {}
|
|
6094
6356
|
|
|
6095
6357
|
path_params = {}
|
|
6096
|
-
if '
|
|
6097
|
-
path_params['
|
|
6358
|
+
if 'instance_id' in local_var_params:
|
|
6359
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
|
6098
6360
|
|
|
6099
6361
|
query_params = []
|
|
6100
6362
|
|
|
@@ -6124,8 +6386,138 @@ class DcsClient(Client):
|
|
|
6124
6386
|
|
|
6125
6387
|
return http_info
|
|
6126
6388
|
|
|
6127
|
-
def
|
|
6128
|
-
"""
|
|
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
|
+
|
|
6454
|
+
def show_job_info(self, request):
|
|
6455
|
+
"""查询租户Job执行结果
|
|
6456
|
+
|
|
6457
|
+
查询租户Job执行结果
|
|
6458
|
+
|
|
6459
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
|
6460
|
+
|
|
6461
|
+
:param request: Request instance for ShowJobInfo
|
|
6462
|
+
:type request: :class:`huaweicloudsdkdcs.v2.ShowJobInfoRequest`
|
|
6463
|
+
:rtype: :class:`huaweicloudsdkdcs.v2.ShowJobInfoResponse`
|
|
6464
|
+
"""
|
|
6465
|
+
http_info = self._show_job_info_http_info(request)
|
|
6466
|
+
return self._call_api(**http_info)
|
|
6467
|
+
|
|
6468
|
+
def show_job_info_invoker(self, request):
|
|
6469
|
+
http_info = self._show_job_info_http_info(request)
|
|
6470
|
+
return SyncInvoker(self, http_info)
|
|
6471
|
+
|
|
6472
|
+
@classmethod
|
|
6473
|
+
def _show_job_info_http_info(cls, request):
|
|
6474
|
+
http_info = {
|
|
6475
|
+
"method": "GET",
|
|
6476
|
+
"resource_path": "/v2/{project_id}/jobs/{job_id}",
|
|
6477
|
+
"request_type": request.__class__.__name__,
|
|
6478
|
+
"response_type": "ShowJobInfoResponse"
|
|
6479
|
+
}
|
|
6480
|
+
|
|
6481
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
|
6482
|
+
|
|
6483
|
+
cname = None
|
|
6484
|
+
|
|
6485
|
+
collection_formats = {}
|
|
6486
|
+
|
|
6487
|
+
path_params = {}
|
|
6488
|
+
if 'job_id' in local_var_params:
|
|
6489
|
+
path_params['job_id'] = local_var_params['job_id']
|
|
6490
|
+
|
|
6491
|
+
query_params = []
|
|
6492
|
+
|
|
6493
|
+
header_params = {}
|
|
6494
|
+
|
|
6495
|
+
form_params = {}
|
|
6496
|
+
|
|
6497
|
+
body = None
|
|
6498
|
+
if isinstance(request, SdkStreamRequest):
|
|
6499
|
+
body = request.get_file_stream()
|
|
6500
|
+
|
|
6501
|
+
response_headers = []
|
|
6502
|
+
|
|
6503
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
|
6504
|
+
['application/json'])
|
|
6505
|
+
|
|
6506
|
+
auth_settings = []
|
|
6507
|
+
|
|
6508
|
+
http_info["cname"] = cname
|
|
6509
|
+
http_info["collection_formats"] = collection_formats
|
|
6510
|
+
http_info["path_params"] = path_params
|
|
6511
|
+
http_info["query_params"] = query_params
|
|
6512
|
+
http_info["header_params"] = header_params
|
|
6513
|
+
http_info["post_params"] = form_params
|
|
6514
|
+
http_info["body"] = body
|
|
6515
|
+
http_info["response_headers"] = response_headers
|
|
6516
|
+
|
|
6517
|
+
return http_info
|
|
6518
|
+
|
|
6519
|
+
def show_migration_task(self, request):
|
|
6520
|
+
"""查询迁移任务详情
|
|
6129
6521
|
|
|
6130
6522
|
查询迁移任务详情。
|
|
6131
6523
|
|
|
@@ -6920,6 +7312,73 @@ class DcsClient(Client):
|
|
|
6920
7312
|
|
|
6921
7313
|
return http_info
|
|
6922
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
|
+
|
|
6923
7382
|
def update_bigkey_autoscan_config(self, request):
|
|
6924
7383
|
"""设置大key自动分析配置
|
|
6925
7384
|
|
|
@@ -7454,6 +7913,73 @@ class DcsClient(Client):
|
|
|
7454
7913
|
|
|
7455
7914
|
return http_info
|
|
7456
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
|
+
|
|
7457
7983
|
def update_instance_config(self, request):
|
|
7458
7984
|
"""异步修改实例配置参数
|
|
7459
7985
|
|
|
@@ -7655,6 +8181,73 @@ class DcsClient(Client):
|
|
|
7655
8181
|
|
|
7656
8182
|
return http_info
|
|
7657
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
|
+
|
|
7658
8251
|
def update_slave_priority(self, request):
|
|
7659
8252
|
"""设置备节点优先级
|
|
7660
8253
|
|
|
@@ -7793,6 +8386,73 @@ class DcsClient(Client):
|
|
|
7793
8386
|
|
|
7794
8387
|
return http_info
|
|
7795
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
|
+
|
|
7796
8456
|
def validate_deletable_replica(self, request):
|
|
7797
8457
|
"""校验集群副本是否支持删除
|
|
7798
8458
|
|