huaweicloudsdkgaussdbforopengauss 3.1.118__py2.py3-none-any.whl → 3.1.120__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.
Files changed (39) hide show
  1. huaweicloudsdkgaussdbforopengauss/v3/__init__.py +30 -0
  2. huaweicloudsdkgaussdbforopengauss/v3/gaussdbforopengauss_async_client.py +635 -0
  3. huaweicloudsdkgaussdbforopengauss/v3/gaussdbforopengauss_client.py +635 -0
  4. huaweicloudsdkgaussdbforopengauss/v3/model/__init__.py +30 -0
  5. huaweicloudsdkgaussdbforopengauss/v3/model/create_limit_task_node_option.py +142 -0
  6. huaweicloudsdkgaussdbforopengauss/v3/model/create_limit_task_node_result.py +144 -0
  7. huaweicloudsdkgaussdbforopengauss/v3/model/create_limit_task_request.py +139 -0
  8. huaweicloudsdkgaussdbforopengauss/v3/model/create_limit_task_request_body.py +458 -0
  9. huaweicloudsdkgaussdbforopengauss/v3/model/create_limit_task_response.py +725 -0
  10. huaweicloudsdkgaussdbforopengauss/v3/model/delete_limit_task_request.py +142 -0
  11. huaweicloudsdkgaussdbforopengauss/v3/model/delete_limit_task_response.py +85 -0
  12. huaweicloudsdkgaussdbforopengauss/v3/model/error_response.py +142 -0
  13. huaweicloudsdkgaussdbforopengauss/v3/model/limit_task_rule_info_option.py +170 -0
  14. huaweicloudsdkgaussdbforopengauss/v3/model/list_limit_task_request.py +404 -0
  15. huaweicloudsdkgaussdbforopengauss/v3/model/list_limit_task_response.py +203 -0
  16. huaweicloudsdkgaussdbforopengauss/v3/model/list_limit_task_response_result.py +695 -0
  17. huaweicloudsdkgaussdbforopengauss/v3/model/list_node_limit_sql_model_request.py +229 -0
  18. huaweicloudsdkgaussdbforopengauss/v3/model/list_node_limit_sql_model_response.py +203 -0
  19. huaweicloudsdkgaussdbforopengauss/v3/model/list_node_limit_sql_model_response_result.py +144 -0
  20. huaweicloudsdkgaussdbforopengauss/v3/model/show_limit_task_node_option.py +142 -0
  21. huaweicloudsdkgaussdbforopengauss/v3/model/show_limit_task_request.py +142 -0
  22. huaweicloudsdkgaussdbforopengauss/v3/model/show_limit_task_response.py +406 -0
  23. huaweicloudsdkgaussdbforopengauss/v3/model/start_my_sql_compatibility_request_body.py +114 -0
  24. huaweicloudsdkgaussdbforopengauss/v3/model/start_mysql_compatibility_request.py +168 -0
  25. huaweicloudsdkgaussdbforopengauss/v3/model/start_mysql_compatibility_response.py +116 -0
  26. huaweicloudsdkgaussdbforopengauss/v3/model/stop_instance_request.py +168 -0
  27. huaweicloudsdkgaussdbforopengauss/v3/model/stop_instance_request_body.py +114 -0
  28. huaweicloudsdkgaussdbforopengauss/v3/model/stop_instance_response.py +116 -0
  29. huaweicloudsdkgaussdbforopengauss/v3/model/update_limit_task_request.py +167 -0
  30. huaweicloudsdkgaussdbforopengauss/v3/model/update_limit_task_request_body.py +318 -0
  31. huaweicloudsdkgaussdbforopengauss/v3/model/update_limit_task_response.py +406 -0
  32. huaweicloudsdkgaussdbforopengauss/v3/model/update_my_sql_compatibility_request_body.py +115 -0
  33. huaweicloudsdkgaussdbforopengauss/v3/model/update_mysql_compatibility_request.py +168 -0
  34. huaweicloudsdkgaussdbforopengauss/v3/model/update_mysql_compatibility_response.py +116 -0
  35. {huaweicloudsdkgaussdbforopengauss-3.1.118.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.120.dist-info}/METADATA +2 -2
  36. {huaweicloudsdkgaussdbforopengauss-3.1.118.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.120.dist-info}/RECORD +39 -9
  37. {huaweicloudsdkgaussdbforopengauss-3.1.118.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.120.dist-info}/LICENSE +0 -0
  38. {huaweicloudsdkgaussdbforopengauss-3.1.118.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.120.dist-info}/WHEEL +0 -0
  39. {huaweicloudsdkgaussdbforopengauss-3.1.118.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.120.dist-info}/top_level.txt +0 -0
@@ -6285,6 +6285,75 @@ class GaussDBforopenGaussClient(Client):
6285
6285
 
6286
6286
  return http_info
6287
6287
 
6288
+ def start_mysql_compatibility(self, request):
6289
+ """开启MySQl兼容端口服务
6290
+
6291
+ 开启指定实例的MySQl兼容端口。
6292
+
6293
+ Please refer to HUAWEI cloud API Explorer for details.
6294
+
6295
+ :param request: Request instance for StartMysqlCompatibility
6296
+ :type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.StartMysqlCompatibilityRequest`
6297
+ :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.StartMysqlCompatibilityResponse`
6298
+ """
6299
+ http_info = self._start_mysql_compatibility_http_info(request)
6300
+ return self._call_api(**http_info)
6301
+
6302
+ def start_mysql_compatibility_invoker(self, request):
6303
+ http_info = self._start_mysql_compatibility_http_info(request)
6304
+ return SyncInvoker(self, http_info)
6305
+
6306
+ @classmethod
6307
+ def _start_mysql_compatibility_http_info(cls, request):
6308
+ http_info = {
6309
+ "method": "POST",
6310
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/mysql-compatibility",
6311
+ "request_type": request.__class__.__name__,
6312
+ "response_type": "StartMysqlCompatibilityResponse"
6313
+ }
6314
+
6315
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
6316
+
6317
+ cname = None
6318
+
6319
+ collection_formats = {}
6320
+
6321
+ path_params = {}
6322
+ if 'instance_id' in local_var_params:
6323
+ path_params['instance_id'] = local_var_params['instance_id']
6324
+
6325
+ query_params = []
6326
+
6327
+ header_params = {}
6328
+ if 'x_language' in local_var_params:
6329
+ header_params['X-Language'] = local_var_params['x_language']
6330
+
6331
+ form_params = {}
6332
+
6333
+ body = None
6334
+ if 'body' in local_var_params:
6335
+ body = local_var_params['body']
6336
+ if isinstance(request, SdkStreamRequest):
6337
+ body = request.get_file_stream()
6338
+
6339
+ response_headers = []
6340
+
6341
+ header_params['Content-Type'] = http_utils.select_header_content_type(
6342
+ ['application/json;charset=UTF-8'])
6343
+
6344
+ auth_settings = []
6345
+
6346
+ http_info["cname"] = cname
6347
+ http_info["collection_formats"] = collection_formats
6348
+ http_info["path_params"] = path_params
6349
+ http_info["query_params"] = query_params
6350
+ http_info["header_params"] = header_params
6351
+ http_info["post_params"] = form_params
6352
+ http_info["body"] = body
6353
+ http_info["response_headers"] = response_headers
6354
+
6355
+ return http_info
6356
+
6288
6357
  def stop_backup(self, request):
6289
6358
  """停止备份
6290
6359
 
@@ -6352,6 +6421,75 @@ class GaussDBforopenGaussClient(Client):
6352
6421
 
6353
6422
  return http_info
6354
6423
 
6424
+ def stop_instance(self, request):
6425
+ """停止数据库
6426
+
6427
+ 停止数据库,同时支持节点级别的停止操作
6428
+
6429
+ Please refer to HUAWEI cloud API Explorer for details.
6430
+
6431
+ :param request: Request instance for StopInstance
6432
+ :type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.StopInstanceRequest`
6433
+ :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.StopInstanceResponse`
6434
+ """
6435
+ http_info = self._stop_instance_http_info(request)
6436
+ return self._call_api(**http_info)
6437
+
6438
+ def stop_instance_invoker(self, request):
6439
+ http_info = self._stop_instance_http_info(request)
6440
+ return SyncInvoker(self, http_info)
6441
+
6442
+ @classmethod
6443
+ def _stop_instance_http_info(cls, request):
6444
+ http_info = {
6445
+ "method": "POST",
6446
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/db-stop",
6447
+ "request_type": request.__class__.__name__,
6448
+ "response_type": "StopInstanceResponse"
6449
+ }
6450
+
6451
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
6452
+
6453
+ cname = None
6454
+
6455
+ collection_formats = {}
6456
+
6457
+ path_params = {}
6458
+ if 'instance_id' in local_var_params:
6459
+ path_params['instance_id'] = local_var_params['instance_id']
6460
+
6461
+ query_params = []
6462
+
6463
+ header_params = {}
6464
+ if 'x_language' in local_var_params:
6465
+ header_params['X-Language'] = local_var_params['x_language']
6466
+
6467
+ form_params = {}
6468
+
6469
+ body = None
6470
+ if 'body' in local_var_params:
6471
+ body = local_var_params['body']
6472
+ if isinstance(request, SdkStreamRequest):
6473
+ body = request.get_file_stream()
6474
+
6475
+ response_headers = []
6476
+
6477
+ header_params['Content-Type'] = http_utils.select_header_content_type(
6478
+ ['application/json;charset=UTF-8'])
6479
+
6480
+ auth_settings = []
6481
+
6482
+ http_info["cname"] = cname
6483
+ http_info["collection_formats"] = collection_formats
6484
+ http_info["path_params"] = path_params
6485
+ http_info["query_params"] = query_params
6486
+ http_info["header_params"] = header_params
6487
+ http_info["post_params"] = form_params
6488
+ http_info["body"] = body
6489
+ http_info["response_headers"] = response_headers
6490
+
6491
+ return http_info
6492
+
6355
6493
  def switch_configuration(self, request):
6356
6494
  """应用参数模板
6357
6495
 
@@ -6628,6 +6766,75 @@ class GaussDBforopenGaussClient(Client):
6628
6766
 
6629
6767
  return http_info
6630
6768
 
6769
+ def update_mysql_compatibility(self, request):
6770
+ """更新/关闭MySQl兼容端口服务
6771
+
6772
+ 更新指定实例的MySQl兼容端口服务配置。
6773
+
6774
+ Please refer to HUAWEI cloud API Explorer for details.
6775
+
6776
+ :param request: Request instance for UpdateMysqlCompatibility
6777
+ :type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.UpdateMysqlCompatibilityRequest`
6778
+ :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.UpdateMysqlCompatibilityResponse`
6779
+ """
6780
+ http_info = self._update_mysql_compatibility_http_info(request)
6781
+ return self._call_api(**http_info)
6782
+
6783
+ def update_mysql_compatibility_invoker(self, request):
6784
+ http_info = self._update_mysql_compatibility_http_info(request)
6785
+ return SyncInvoker(self, http_info)
6786
+
6787
+ @classmethod
6788
+ def _update_mysql_compatibility_http_info(cls, request):
6789
+ http_info = {
6790
+ "method": "PUT",
6791
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/mysql-compatibility",
6792
+ "request_type": request.__class__.__name__,
6793
+ "response_type": "UpdateMysqlCompatibilityResponse"
6794
+ }
6795
+
6796
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
6797
+
6798
+ cname = None
6799
+
6800
+ collection_formats = {}
6801
+
6802
+ path_params = {}
6803
+ if 'instance_id' in local_var_params:
6804
+ path_params['instance_id'] = local_var_params['instance_id']
6805
+
6806
+ query_params = []
6807
+
6808
+ header_params = {}
6809
+ if 'x_language' in local_var_params:
6810
+ header_params['X-Language'] = local_var_params['x_language']
6811
+
6812
+ form_params = {}
6813
+
6814
+ body = None
6815
+ if 'body' in local_var_params:
6816
+ body = local_var_params['body']
6817
+ if isinstance(request, SdkStreamRequest):
6818
+ body = request.get_file_stream()
6819
+
6820
+ response_headers = []
6821
+
6822
+ header_params['Content-Type'] = http_utils.select_header_content_type(
6823
+ ['application/json;charset=UTF-8'])
6824
+
6825
+ auth_settings = []
6826
+
6827
+ http_info["cname"] = cname
6828
+ http_info["collection_formats"] = collection_formats
6829
+ http_info["path_params"] = path_params
6830
+ http_info["query_params"] = query_params
6831
+ http_info["header_params"] = header_params
6832
+ http_info["post_params"] = form_params
6833
+ http_info["body"] = body
6834
+ http_info["response_headers"] = response_headers
6835
+
6836
+ return http_info
6837
+
6631
6838
  def upgrade_instance_version(self, request):
6632
6839
  """实例内核版本升级
6633
6840
 
@@ -6919,6 +7126,434 @@ class GaussDBforopenGaussClient(Client):
6919
7126
 
6920
7127
  return http_info
6921
7128
 
7129
+ def create_limit_task(self, request):
7130
+ """创建限流任务
7131
+
7132
+ 根据具体范围和类型,进行限流任务的创建
7133
+
7134
+ Please refer to HUAWEI cloud API Explorer for details.
7135
+
7136
+ :param request: Request instance for CreateLimitTask
7137
+ :type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.CreateLimitTaskRequest`
7138
+ :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.CreateLimitTaskResponse`
7139
+ """
7140
+ http_info = self._create_limit_task_http_info(request)
7141
+ return self._call_api(**http_info)
7142
+
7143
+ def create_limit_task_invoker(self, request):
7144
+ http_info = self._create_limit_task_http_info(request)
7145
+ return SyncInvoker(self, http_info)
7146
+
7147
+ @classmethod
7148
+ def _create_limit_task_http_info(cls, request):
7149
+ http_info = {
7150
+ "method": "POST",
7151
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/limit-task",
7152
+ "request_type": request.__class__.__name__,
7153
+ "response_type": "CreateLimitTaskResponse"
7154
+ }
7155
+
7156
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
7157
+
7158
+ cname = None
7159
+
7160
+ collection_formats = {}
7161
+
7162
+ path_params = {}
7163
+ if 'instance_id' in local_var_params:
7164
+ path_params['instance_id'] = local_var_params['instance_id']
7165
+
7166
+ query_params = []
7167
+
7168
+ header_params = {}
7169
+
7170
+ form_params = {}
7171
+
7172
+ body = None
7173
+ if 'body' in local_var_params:
7174
+ body = local_var_params['body']
7175
+ if isinstance(request, SdkStreamRequest):
7176
+ body = request.get_file_stream()
7177
+
7178
+ response_headers = []
7179
+
7180
+ header_params['Content-Type'] = http_utils.select_header_content_type(
7181
+ ['application/json;charset=UTF-8'])
7182
+
7183
+ auth_settings = []
7184
+
7185
+ http_info["cname"] = cname
7186
+ http_info["collection_formats"] = collection_formats
7187
+ http_info["path_params"] = path_params
7188
+ http_info["query_params"] = query_params
7189
+ http_info["header_params"] = header_params
7190
+ http_info["post_params"] = form_params
7191
+ http_info["body"] = body
7192
+ http_info["response_headers"] = response_headers
7193
+
7194
+ return http_info
7195
+
7196
+ def delete_limit_task(self, request):
7197
+ """删除限流任务
7198
+
7199
+ 根据task_id进行限流任务的删除
7200
+
7201
+ Please refer to HUAWEI cloud API Explorer for details.
7202
+
7203
+ :param request: Request instance for DeleteLimitTask
7204
+ :type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.DeleteLimitTaskRequest`
7205
+ :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.DeleteLimitTaskResponse`
7206
+ """
7207
+ http_info = self._delete_limit_task_http_info(request)
7208
+ return self._call_api(**http_info)
7209
+
7210
+ def delete_limit_task_invoker(self, request):
7211
+ http_info = self._delete_limit_task_http_info(request)
7212
+ return SyncInvoker(self, http_info)
7213
+
7214
+ @classmethod
7215
+ def _delete_limit_task_http_info(cls, request):
7216
+ http_info = {
7217
+ "method": "DELETE",
7218
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/limit-task/{task_id}",
7219
+ "request_type": request.__class__.__name__,
7220
+ "response_type": "DeleteLimitTaskResponse"
7221
+ }
7222
+
7223
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
7224
+
7225
+ cname = None
7226
+
7227
+ collection_formats = {}
7228
+
7229
+ path_params = {}
7230
+ if 'task_id' in local_var_params:
7231
+ path_params['task_id'] = local_var_params['task_id']
7232
+ if 'instance_id' in local_var_params:
7233
+ path_params['instance_id'] = local_var_params['instance_id']
7234
+
7235
+ query_params = []
7236
+
7237
+ header_params = {}
7238
+
7239
+ form_params = {}
7240
+
7241
+ body = None
7242
+ if isinstance(request, SdkStreamRequest):
7243
+ body = request.get_file_stream()
7244
+
7245
+ response_headers = []
7246
+
7247
+ header_params['Content-Type'] = http_utils.select_header_content_type(
7248
+ ['application/json'])
7249
+
7250
+ auth_settings = []
7251
+
7252
+ http_info["cname"] = cname
7253
+ http_info["collection_formats"] = collection_formats
7254
+ http_info["path_params"] = path_params
7255
+ http_info["query_params"] = query_params
7256
+ http_info["header_params"] = header_params
7257
+ http_info["post_params"] = form_params
7258
+ http_info["body"] = body
7259
+ http_info["response_headers"] = response_headers
7260
+
7261
+ return http_info
7262
+
7263
+ def list_limit_task(self, request):
7264
+ """根据指定条件查询限流任务列表
7265
+
7266
+ 根据指定条件查询限流任务列表
7267
+
7268
+ Please refer to HUAWEI cloud API Explorer for details.
7269
+
7270
+ :param request: Request instance for ListLimitTask
7271
+ :type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.ListLimitTaskRequest`
7272
+ :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.ListLimitTaskResponse`
7273
+ """
7274
+ http_info = self._list_limit_task_http_info(request)
7275
+ return self._call_api(**http_info)
7276
+
7277
+ def list_limit_task_invoker(self, request):
7278
+ http_info = self._list_limit_task_http_info(request)
7279
+ return SyncInvoker(self, http_info)
7280
+
7281
+ @classmethod
7282
+ def _list_limit_task_http_info(cls, request):
7283
+ http_info = {
7284
+ "method": "GET",
7285
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/limit-task-list",
7286
+ "request_type": request.__class__.__name__,
7287
+ "response_type": "ListLimitTaskResponse"
7288
+ }
7289
+
7290
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
7291
+
7292
+ cname = None
7293
+
7294
+ collection_formats = {}
7295
+
7296
+ path_params = {}
7297
+ if 'instance_id' in local_var_params:
7298
+ path_params['instance_id'] = local_var_params['instance_id']
7299
+
7300
+ query_params = []
7301
+ if 'task_scope' in local_var_params:
7302
+ query_params.append(('task_scope', local_var_params['task_scope']))
7303
+ if 'limit_type' in local_var_params:
7304
+ query_params.append(('limit_type', local_var_params['limit_type']))
7305
+ if 'limit_type_value' in local_var_params:
7306
+ query_params.append(('limit_type_value', local_var_params['limit_type_value']))
7307
+ if 'task_name' in local_var_params:
7308
+ query_params.append(('task_name', local_var_params['task_name']))
7309
+ if 'sql_model' in local_var_params:
7310
+ query_params.append(('sql_model', local_var_params['sql_model']))
7311
+ if 'rule_name' in local_var_params:
7312
+ query_params.append(('rule_name', local_var_params['rule_name']))
7313
+ if 'start_time' in local_var_params:
7314
+ query_params.append(('start_time', local_var_params['start_time']))
7315
+ if 'end_time' in local_var_params:
7316
+ query_params.append(('end_time', local_var_params['end_time']))
7317
+ if 'offset' in local_var_params:
7318
+ query_params.append(('offset', local_var_params['offset']))
7319
+ if 'limit' in local_var_params:
7320
+ query_params.append(('limit', local_var_params['limit']))
7321
+
7322
+ header_params = {}
7323
+
7324
+ form_params = {}
7325
+
7326
+ body = None
7327
+ if isinstance(request, SdkStreamRequest):
7328
+ body = request.get_file_stream()
7329
+
7330
+ response_headers = []
7331
+
7332
+ header_params['Content-Type'] = http_utils.select_header_content_type(
7333
+ ['application/json'])
7334
+
7335
+ auth_settings = []
7336
+
7337
+ http_info["cname"] = cname
7338
+ http_info["collection_formats"] = collection_formats
7339
+ http_info["path_params"] = path_params
7340
+ http_info["query_params"] = query_params
7341
+ http_info["header_params"] = header_params
7342
+ http_info["post_params"] = form_params
7343
+ http_info["body"] = body
7344
+ http_info["response_headers"] = response_headers
7345
+
7346
+ return http_info
7347
+
7348
+ def list_node_limit_sql_model(self, request):
7349
+ """查询节点的sql模板列表
7350
+
7351
+ 查询节点的sql模板列表
7352
+
7353
+ Please refer to HUAWEI cloud API Explorer for details.
7354
+
7355
+ :param request: Request instance for ListNodeLimitSqlModel
7356
+ :type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.ListNodeLimitSqlModelRequest`
7357
+ :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.ListNodeLimitSqlModelResponse`
7358
+ """
7359
+ http_info = self._list_node_limit_sql_model_http_info(request)
7360
+ return self._call_api(**http_info)
7361
+
7362
+ def list_node_limit_sql_model_invoker(self, request):
7363
+ http_info = self._list_node_limit_sql_model_http_info(request)
7364
+ return SyncInvoker(self, http_info)
7365
+
7366
+ @classmethod
7367
+ def _list_node_limit_sql_model_http_info(cls, request):
7368
+ http_info = {
7369
+ "method": "GET",
7370
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/list-node-limit-sql-model",
7371
+ "request_type": request.__class__.__name__,
7372
+ "response_type": "ListNodeLimitSqlModelResponse"
7373
+ }
7374
+
7375
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
7376
+
7377
+ cname = None
7378
+
7379
+ collection_formats = {}
7380
+
7381
+ path_params = {}
7382
+ if 'instance_id' in local_var_params:
7383
+ path_params['instance_id'] = local_var_params['instance_id']
7384
+
7385
+ query_params = []
7386
+ if 'node_id' in local_var_params:
7387
+ query_params.append(('node_id', local_var_params['node_id']))
7388
+ if 'sql_model' in local_var_params:
7389
+ query_params.append(('sql_model', local_var_params['sql_model']))
7390
+ if 'offset' in local_var_params:
7391
+ query_params.append(('offset', local_var_params['offset']))
7392
+ if 'limit' in local_var_params:
7393
+ query_params.append(('limit', local_var_params['limit']))
7394
+
7395
+ header_params = {}
7396
+
7397
+ form_params = {}
7398
+
7399
+ body = None
7400
+ if isinstance(request, SdkStreamRequest):
7401
+ body = request.get_file_stream()
7402
+
7403
+ response_headers = []
7404
+
7405
+ header_params['Content-Type'] = http_utils.select_header_content_type(
7406
+ ['application/json'])
7407
+
7408
+ auth_settings = []
7409
+
7410
+ http_info["cname"] = cname
7411
+ http_info["collection_formats"] = collection_formats
7412
+ http_info["path_params"] = path_params
7413
+ http_info["query_params"] = query_params
7414
+ http_info["header_params"] = header_params
7415
+ http_info["post_params"] = form_params
7416
+ http_info["body"] = body
7417
+ http_info["response_headers"] = response_headers
7418
+
7419
+ return http_info
7420
+
7421
+ def show_limit_task(self, request):
7422
+ """查询限流任务详情
7423
+
7424
+ 查询限流任务详情
7425
+
7426
+ Please refer to HUAWEI cloud API Explorer for details.
7427
+
7428
+ :param request: Request instance for ShowLimitTask
7429
+ :type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.ShowLimitTaskRequest`
7430
+ :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.ShowLimitTaskResponse`
7431
+ """
7432
+ http_info = self._show_limit_task_http_info(request)
7433
+ return self._call_api(**http_info)
7434
+
7435
+ def show_limit_task_invoker(self, request):
7436
+ http_info = self._show_limit_task_http_info(request)
7437
+ return SyncInvoker(self, http_info)
7438
+
7439
+ @classmethod
7440
+ def _show_limit_task_http_info(cls, request):
7441
+ http_info = {
7442
+ "method": "GET",
7443
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/limit-task/{task_id}",
7444
+ "request_type": request.__class__.__name__,
7445
+ "response_type": "ShowLimitTaskResponse"
7446
+ }
7447
+
7448
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
7449
+
7450
+ cname = None
7451
+
7452
+ collection_formats = {}
7453
+
7454
+ path_params = {}
7455
+ if 'task_id' in local_var_params:
7456
+ path_params['task_id'] = local_var_params['task_id']
7457
+ if 'instance_id' in local_var_params:
7458
+ path_params['instance_id'] = local_var_params['instance_id']
7459
+
7460
+ query_params = []
7461
+
7462
+ header_params = {}
7463
+
7464
+ form_params = {}
7465
+
7466
+ body = None
7467
+ if isinstance(request, SdkStreamRequest):
7468
+ body = request.get_file_stream()
7469
+
7470
+ response_headers = []
7471
+
7472
+ header_params['Content-Type'] = http_utils.select_header_content_type(
7473
+ ['application/json'])
7474
+
7475
+ auth_settings = []
7476
+
7477
+ http_info["cname"] = cname
7478
+ http_info["collection_formats"] = collection_formats
7479
+ http_info["path_params"] = path_params
7480
+ http_info["query_params"] = query_params
7481
+ http_info["header_params"] = header_params
7482
+ http_info["post_params"] = form_params
7483
+ http_info["body"] = body
7484
+ http_info["response_headers"] = response_headers
7485
+
7486
+ return http_info
7487
+
7488
+ def update_limit_task(self, request):
7489
+ """修改限流任务
7490
+
7491
+ 根据新的条件进行限流任务的更新
7492
+
7493
+ Please refer to HUAWEI cloud API Explorer for details.
7494
+
7495
+ :param request: Request instance for UpdateLimitTask
7496
+ :type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.UpdateLimitTaskRequest`
7497
+ :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.UpdateLimitTaskResponse`
7498
+ """
7499
+ http_info = self._update_limit_task_http_info(request)
7500
+ return self._call_api(**http_info)
7501
+
7502
+ def update_limit_task_invoker(self, request):
7503
+ http_info = self._update_limit_task_http_info(request)
7504
+ return SyncInvoker(self, http_info)
7505
+
7506
+ @classmethod
7507
+ def _update_limit_task_http_info(cls, request):
7508
+ http_info = {
7509
+ "method": "PUT",
7510
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/limit-task/{task_id}",
7511
+ "request_type": request.__class__.__name__,
7512
+ "response_type": "UpdateLimitTaskResponse"
7513
+ }
7514
+
7515
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
7516
+
7517
+ cname = None
7518
+
7519
+ collection_formats = {}
7520
+
7521
+ path_params = {}
7522
+ if 'task_id' in local_var_params:
7523
+ path_params['task_id'] = local_var_params['task_id']
7524
+ if 'instance_id' in local_var_params:
7525
+ path_params['instance_id'] = local_var_params['instance_id']
7526
+
7527
+ query_params = []
7528
+
7529
+ header_params = {}
7530
+
7531
+ form_params = {}
7532
+
7533
+ body = None
7534
+ if 'body' in local_var_params:
7535
+ body = local_var_params['body']
7536
+ if isinstance(request, SdkStreamRequest):
7537
+ body = request.get_file_stream()
7538
+
7539
+ response_headers = []
7540
+
7541
+ header_params['Content-Type'] = http_utils.select_header_content_type(
7542
+ ['application/json;charset=UTF-8'])
7543
+
7544
+ auth_settings = []
7545
+
7546
+ http_info["cname"] = cname
7547
+ http_info["collection_formats"] = collection_formats
7548
+ http_info["path_params"] = path_params
7549
+ http_info["query_params"] = query_params
7550
+ http_info["header_params"] = header_params
7551
+ http_info["post_params"] = form_params
7552
+ http_info["body"] = body
7553
+ http_info["response_headers"] = response_headers
7554
+
7555
+ return http_info
7556
+
6922
7557
  def _call_api(self, **kwargs):
6923
7558
  try:
6924
7559
  return self.do_http_request(**kwargs)