huaweicloudsdkgaussdbforopengauss 3.1.137__py2.py3-none-any.whl → 3.1.138__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 (24) hide show
  1. huaweicloudsdkgaussdbforopengauss/v3/__init__.py +15 -0
  2. huaweicloudsdkgaussdbforopengauss/v3/gaussdbforopengauss_async_client.py +349 -0
  3. huaweicloudsdkgaussdbforopengauss/v3/gaussdbforopengauss_client.py +349 -0
  4. huaweicloudsdkgaussdbforopengauss/v3/model/__init__.py +15 -0
  5. huaweicloudsdkgaussdbforopengauss/v3/model/cancel_schedule_task_request.py +143 -0
  6. huaweicloudsdkgaussdbforopengauss/v3/model/cancel_schedule_task_response.py +85 -0
  7. huaweicloudsdkgaussdbforopengauss/v3/model/create_schedule_task_request.py +140 -0
  8. huaweicloudsdkgaussdbforopengauss/v3/model/create_schedule_task_request_body.py +226 -0
  9. huaweicloudsdkgaussdbforopengauss/v3/model/create_schedule_task_response.py +116 -0
  10. huaweicloudsdkgaussdbforopengauss/v3/model/delete_schedule_task_request.py +143 -0
  11. huaweicloudsdkgaussdbforopengauss/v3/model/delete_schedule_task_response.py +85 -0
  12. huaweicloudsdkgaussdbforopengauss/v3/model/instance_detail.py +260 -0
  13. huaweicloudsdkgaussdbforopengauss/v3/model/instance_engine_detail.py +144 -0
  14. huaweicloudsdkgaussdbforopengauss/v3/model/instance_task_detail.py +173 -0
  15. huaweicloudsdkgaussdbforopengauss/v3/model/list_instance_engine_detail_request.py +173 -0
  16. huaweicloudsdkgaussdbforopengauss/v3/model/list_instance_engine_detail_response.py +145 -0
  17. huaweicloudsdkgaussdbforopengauss/v3/model/list_schedule_task_request.py +318 -0
  18. huaweicloudsdkgaussdbforopengauss/v3/model/list_schedule_task_response.py +145 -0
  19. huaweicloudsdkgaussdbforopengauss/v3/model/schedule_task_detail.py +318 -0
  20. {huaweicloudsdkgaussdbforopengauss-3.1.137.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.138.dist-info}/METADATA +2 -2
  21. {huaweicloudsdkgaussdbforopengauss-3.1.137.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.138.dist-info}/RECORD +24 -9
  22. {huaweicloudsdkgaussdbforopengauss-3.1.137.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.138.dist-info}/LICENSE +0 -0
  23. {huaweicloudsdkgaussdbforopengauss-3.1.137.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.138.dist-info}/WHEEL +0 -0
  24. {huaweicloudsdkgaussdbforopengauss-3.1.137.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.138.dist-info}/top_level.txt +0 -0
@@ -377,6 +377,73 @@ class GaussDBforopenGaussClient(Client):
377
377
 
378
378
  return http_info
379
379
 
380
+ def cancel_schedule_task(self, request):
381
+ """取消定时任务
382
+
383
+ 取消定时任务
384
+
385
+ Please refer to HUAWEI cloud API Explorer for details.
386
+
387
+ :param request: Request instance for CancelScheduleTask
388
+ :type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.CancelScheduleTaskRequest`
389
+ :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.CancelScheduleTaskResponse`
390
+ """
391
+ http_info = self._cancel_schedule_task_http_info(request)
392
+ return self._call_api(**http_info)
393
+
394
+ def cancel_schedule_task_invoker(self, request):
395
+ http_info = self._cancel_schedule_task_http_info(request)
396
+ return SyncInvoker(self, http_info)
397
+
398
+ @classmethod
399
+ def _cancel_schedule_task_http_info(cls, request):
400
+ http_info = {
401
+ "method": "PUT",
402
+ "resource_path": "/v3/{project_id}/instances/schedule-task/{task_id}/cancel",
403
+ "request_type": request.__class__.__name__,
404
+ "response_type": "CancelScheduleTaskResponse"
405
+ }
406
+
407
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
408
+
409
+ cname = None
410
+
411
+ collection_formats = {}
412
+
413
+ path_params = {}
414
+ if 'task_id' in local_var_params:
415
+ path_params['task_id'] = local_var_params['task_id']
416
+
417
+ query_params = []
418
+
419
+ header_params = {}
420
+ if 'x_language' in local_var_params:
421
+ header_params['X-Language'] = local_var_params['x_language']
422
+
423
+ form_params = {}
424
+
425
+ body = None
426
+ if isinstance(request, SdkStreamRequest):
427
+ body = request.get_file_stream()
428
+
429
+ response_headers = []
430
+
431
+ header_params['Content-Type'] = http_utils.select_header_content_type(
432
+ ['application/json'])
433
+
434
+ auth_settings = []
435
+
436
+ http_info["cname"] = cname
437
+ http_info["collection_formats"] = collection_formats
438
+ http_info["path_params"] = path_params
439
+ http_info["query_params"] = query_params
440
+ http_info["header_params"] = header_params
441
+ http_info["post_params"] = form_params
442
+ http_info["body"] = body
443
+ http_info["response_headers"] = response_headers
444
+
445
+ return http_info
446
+
380
447
  def confirm_restored_data(self, request):
381
448
  """备份恢复到目标实例数据后执行数据确认
382
449
 
@@ -1260,6 +1327,73 @@ class GaussDBforopenGaussClient(Client):
1260
1327
 
1261
1328
  return http_info
1262
1329
 
1330
+ def create_schedule_task(self, request):
1331
+ """批量实例内核版本定时升级
1332
+
1333
+ 批量实例内核版本定时升级
1334
+
1335
+ Please refer to HUAWEI cloud API Explorer for details.
1336
+
1337
+ :param request: Request instance for CreateScheduleTask
1338
+ :type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.CreateScheduleTaskRequest`
1339
+ :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.CreateScheduleTaskResponse`
1340
+ """
1341
+ http_info = self._create_schedule_task_http_info(request)
1342
+ return self._call_api(**http_info)
1343
+
1344
+ def create_schedule_task_invoker(self, request):
1345
+ http_info = self._create_schedule_task_http_info(request)
1346
+ return SyncInvoker(self, http_info)
1347
+
1348
+ @classmethod
1349
+ def _create_schedule_task_http_info(cls, request):
1350
+ http_info = {
1351
+ "method": "POST",
1352
+ "resource_path": "/v3/{project_id}/instances/db-upgrade/schedule-task",
1353
+ "request_type": request.__class__.__name__,
1354
+ "response_type": "CreateScheduleTaskResponse"
1355
+ }
1356
+
1357
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1358
+
1359
+ cname = None
1360
+
1361
+ collection_formats = {}
1362
+
1363
+ path_params = {}
1364
+
1365
+ query_params = []
1366
+
1367
+ header_params = {}
1368
+ if 'x_language' in local_var_params:
1369
+ header_params['X-Language'] = local_var_params['x_language']
1370
+
1371
+ form_params = {}
1372
+
1373
+ body = None
1374
+ if 'body' in local_var_params:
1375
+ body = local_var_params['body']
1376
+ if isinstance(request, SdkStreamRequest):
1377
+ body = request.get_file_stream()
1378
+
1379
+ response_headers = []
1380
+
1381
+ header_params['Content-Type'] = http_utils.select_header_content_type(
1382
+ ['application/json;charset=UTF-8'])
1383
+
1384
+ auth_settings = []
1385
+
1386
+ http_info["cname"] = cname
1387
+ http_info["collection_formats"] = collection_formats
1388
+ http_info["path_params"] = path_params
1389
+ http_info["query_params"] = query_params
1390
+ http_info["header_params"] = header_params
1391
+ http_info["post_params"] = form_params
1392
+ http_info["body"] = body
1393
+ http_info["response_headers"] = response_headers
1394
+
1395
+ return http_info
1396
+
1263
1397
  def create_slow_log_download(self, request):
1264
1398
  """创建慢日志下载信息
1265
1399
 
@@ -1802,6 +1936,73 @@ class GaussDBforopenGaussClient(Client):
1802
1936
 
1803
1937
  return http_info
1804
1938
 
1939
+ def delete_schedule_task(self, request):
1940
+ """删除定时任务信息
1941
+
1942
+ 删除定时任务信息
1943
+
1944
+ Please refer to HUAWEI cloud API Explorer for details.
1945
+
1946
+ :param request: Request instance for DeleteScheduleTask
1947
+ :type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.DeleteScheduleTaskRequest`
1948
+ :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.DeleteScheduleTaskResponse`
1949
+ """
1950
+ http_info = self._delete_schedule_task_http_info(request)
1951
+ return self._call_api(**http_info)
1952
+
1953
+ def delete_schedule_task_invoker(self, request):
1954
+ http_info = self._delete_schedule_task_http_info(request)
1955
+ return SyncInvoker(self, http_info)
1956
+
1957
+ @classmethod
1958
+ def _delete_schedule_task_http_info(cls, request):
1959
+ http_info = {
1960
+ "method": "DELETE",
1961
+ "resource_path": "/v3/{project_id}/instances/schedule-task/{task_id}",
1962
+ "request_type": request.__class__.__name__,
1963
+ "response_type": "DeleteScheduleTaskResponse"
1964
+ }
1965
+
1966
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1967
+
1968
+ cname = None
1969
+
1970
+ collection_formats = {}
1971
+
1972
+ path_params = {}
1973
+ if 'task_id' in local_var_params:
1974
+ path_params['task_id'] = local_var_params['task_id']
1975
+
1976
+ query_params = []
1977
+
1978
+ header_params = {}
1979
+ if 'x_language' in local_var_params:
1980
+ header_params['X-Language'] = local_var_params['x_language']
1981
+
1982
+ form_params = {}
1983
+
1984
+ body = None
1985
+ if isinstance(request, SdkStreamRequest):
1986
+ body = request.get_file_stream()
1987
+
1988
+ response_headers = []
1989
+
1990
+ header_params['Content-Type'] = http_utils.select_header_content_type(
1991
+ ['application/json'])
1992
+
1993
+ auth_settings = []
1994
+
1995
+ http_info["cname"] = cname
1996
+ http_info["collection_formats"] = collection_formats
1997
+ http_info["path_params"] = path_params
1998
+ http_info["query_params"] = query_params
1999
+ http_info["header_params"] = header_params
2000
+ http_info["post_params"] = form_params
2001
+ http_info["body"] = body
2002
+ http_info["response_headers"] = response_headers
2003
+
2004
+ return http_info
2005
+
1805
2006
  def download_backup(self, request):
1806
2007
  """获取备份下载链接
1807
2008
 
@@ -3824,6 +4025,75 @@ class GaussDBforopenGaussClient(Client):
3824
4025
 
3825
4026
  return http_info
3826
4027
 
4028
+ def list_instance_engine_detail(self, request):
4029
+ """查看实例引擎版本分布
4030
+
4031
+ 查看实例引擎版本分布
4032
+
4033
+ Please refer to HUAWEI cloud API Explorer for details.
4034
+
4035
+ :param request: Request instance for ListInstanceEngineDetail
4036
+ :type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.ListInstanceEngineDetailRequest`
4037
+ :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.ListInstanceEngineDetailResponse`
4038
+ """
4039
+ http_info = self._list_instance_engine_detail_http_info(request)
4040
+ return self._call_api(**http_info)
4041
+
4042
+ def list_instance_engine_detail_invoker(self, request):
4043
+ http_info = self._list_instance_engine_detail_http_info(request)
4044
+ return SyncInvoker(self, http_info)
4045
+
4046
+ @classmethod
4047
+ def _list_instance_engine_detail_http_info(cls, request):
4048
+ http_info = {
4049
+ "method": "GET",
4050
+ "resource_path": "/v3/{project_id}/datastore/instances",
4051
+ "request_type": request.__class__.__name__,
4052
+ "response_type": "ListInstanceEngineDetailResponse"
4053
+ }
4054
+
4055
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
4056
+
4057
+ cname = None
4058
+
4059
+ collection_formats = {}
4060
+
4061
+ path_params = {}
4062
+
4063
+ query_params = []
4064
+ if 'offset' in local_var_params:
4065
+ query_params.append(('offset', local_var_params['offset']))
4066
+ if 'limit' in local_var_params:
4067
+ query_params.append(('limit', local_var_params['limit']))
4068
+
4069
+ header_params = {}
4070
+ if 'x_language' in local_var_params:
4071
+ header_params['X-Language'] = local_var_params['x_language']
4072
+
4073
+ form_params = {}
4074
+
4075
+ body = None
4076
+ if isinstance(request, SdkStreamRequest):
4077
+ body = request.get_file_stream()
4078
+
4079
+ response_headers = []
4080
+
4081
+ header_params['Content-Type'] = http_utils.select_header_content_type(
4082
+ ['application/json'])
4083
+
4084
+ auth_settings = []
4085
+
4086
+ http_info["cname"] = cname
4087
+ http_info["collection_formats"] = collection_formats
4088
+ http_info["path_params"] = path_params
4089
+ http_info["query_params"] = query_params
4090
+ http_info["header_params"] = header_params
4091
+ http_info["post_params"] = form_params
4092
+ http_info["body"] = body
4093
+ http_info["response_headers"] = response_headers
4094
+
4095
+ return http_info
4096
+
3827
4097
  def list_instance_error_logs(self, request):
3828
4098
  """查询错误日志下载链接
3829
4099
 
@@ -4904,6 +5174,85 @@ class GaussDBforopenGaussClient(Client):
4904
5174
 
4905
5175
  return http_info
4906
5176
 
5177
+ def list_schedule_task(self, request):
5178
+ """查看定时任务列表
5179
+
5180
+ 查看定时任务列表
5181
+
5182
+ Please refer to HUAWEI cloud API Explorer for details.
5183
+
5184
+ :param request: Request instance for ListScheduleTask
5185
+ :type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.ListScheduleTaskRequest`
5186
+ :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.ListScheduleTaskResponse`
5187
+ """
5188
+ http_info = self._list_schedule_task_http_info(request)
5189
+ return self._call_api(**http_info)
5190
+
5191
+ def list_schedule_task_invoker(self, request):
5192
+ http_info = self._list_schedule_task_http_info(request)
5193
+ return SyncInvoker(self, http_info)
5194
+
5195
+ @classmethod
5196
+ def _list_schedule_task_http_info(cls, request):
5197
+ http_info = {
5198
+ "method": "GET",
5199
+ "resource_path": "/v3/{project_id}/instances/schedule-tasks",
5200
+ "request_type": request.__class__.__name__,
5201
+ "response_type": "ListScheduleTaskResponse"
5202
+ }
5203
+
5204
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
5205
+
5206
+ cname = None
5207
+
5208
+ collection_formats = {}
5209
+
5210
+ path_params = {}
5211
+
5212
+ query_params = []
5213
+ if 'instance_id' in local_var_params:
5214
+ query_params.append(('instance_id', local_var_params['instance_id']))
5215
+ if 'status' in local_var_params:
5216
+ query_params.append(('status', local_var_params['status']))
5217
+ if 'name' in local_var_params:
5218
+ query_params.append(('name', local_var_params['name']))
5219
+ if 'start_time' in local_var_params:
5220
+ query_params.append(('start_time', local_var_params['start_time']))
5221
+ if 'end_time' in local_var_params:
5222
+ query_params.append(('end_time', local_var_params['end_time']))
5223
+ if 'offset' in local_var_params:
5224
+ query_params.append(('offset', local_var_params['offset']))
5225
+ if 'limit' in local_var_params:
5226
+ query_params.append(('limit', local_var_params['limit']))
5227
+
5228
+ header_params = {}
5229
+ if 'x_language' in local_var_params:
5230
+ header_params['X-Language'] = local_var_params['x_language']
5231
+
5232
+ form_params = {}
5233
+
5234
+ body = None
5235
+ if isinstance(request, SdkStreamRequest):
5236
+ body = request.get_file_stream()
5237
+
5238
+ response_headers = []
5239
+
5240
+ header_params['Content-Type'] = http_utils.select_header_content_type(
5241
+ ['application/json'])
5242
+
5243
+ auth_settings = []
5244
+
5245
+ http_info["cname"] = cname
5246
+ http_info["collection_formats"] = collection_formats
5247
+ http_info["path_params"] = path_params
5248
+ http_info["query_params"] = query_params
5249
+ http_info["header_params"] = header_params
5250
+ http_info["post_params"] = form_params
5251
+ http_info["body"] = body
5252
+ http_info["response_headers"] = response_headers
5253
+
5254
+ return http_info
5255
+
4907
5256
  def list_storage_types(self, request):
4908
5257
  """查询数据库磁盘类型
4909
5258
 
@@ -28,6 +28,8 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.bind_eip_request_body import Bin
28
28
  from huaweicloudsdkgaussdbforopengauss.v3.model.binded_eip_result import BindedEipResult
29
29
  from huaweicloudsdkgaussdbforopengauss.v3.model.can_be_rollbacked_hotfix_detail import CanBeRollbackedHotfixDetail
30
30
  from huaweicloudsdkgaussdbforopengauss.v3.model.can_be_upgraded_hotfix_detail import CanBeUpgradedHotfixDetail
31
+ from huaweicloudsdkgaussdbforopengauss.v3.model.cancel_schedule_task_request import CancelScheduleTaskRequest
32
+ from huaweicloudsdkgaussdbforopengauss.v3.model.cancel_schedule_task_response import CancelScheduleTaskResponse
31
33
  from huaweicloudsdkgaussdbforopengauss.v3.model.cn_info_before_reduce import CnInfoBeforeReduce
32
34
  from huaweicloudsdkgaussdbforopengauss.v3.model.components import Components
33
35
  from huaweicloudsdkgaussdbforopengauss.v3.model.configuration_parameter import ConfigurationParameter
@@ -72,6 +74,9 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.create_manual_backup_request_bod
72
74
  from huaweicloudsdkgaussdbforopengauss.v3.model.create_manual_backup_response import CreateManualBackupResponse
73
75
  from huaweicloudsdkgaussdbforopengauss.v3.model.create_restore_instance_request import CreateRestoreInstanceRequest
74
76
  from huaweicloudsdkgaussdbforopengauss.v3.model.create_restore_instance_response import CreateRestoreInstanceResponse
77
+ from huaweicloudsdkgaussdbforopengauss.v3.model.create_schedule_task_request import CreateScheduleTaskRequest
78
+ from huaweicloudsdkgaussdbforopengauss.v3.model.create_schedule_task_request_body import CreateScheduleTaskRequestBody
79
+ from huaweicloudsdkgaussdbforopengauss.v3.model.create_schedule_task_response import CreateScheduleTaskResponse
75
80
  from huaweicloudsdkgaussdbforopengauss.v3.model.create_slow_log_download_request import CreateSlowLogDownloadRequest
76
81
  from huaweicloudsdkgaussdbforopengauss.v3.model.create_slow_log_download_response import CreateSlowLogDownloadResponse
77
82
  from huaweicloudsdkgaussdbforopengauss.v3.model.data_stroe_error_response import DataStroeErrorResponse
@@ -97,6 +102,8 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.delete_limit_task_request import
97
102
  from huaweicloudsdkgaussdbforopengauss.v3.model.delete_limit_task_response import DeleteLimitTaskResponse
98
103
  from huaweicloudsdkgaussdbforopengauss.v3.model.delete_manual_backup_request import DeleteManualBackupRequest
99
104
  from huaweicloudsdkgaussdbforopengauss.v3.model.delete_manual_backup_response import DeleteManualBackupResponse
105
+ from huaweicloudsdkgaussdbforopengauss.v3.model.delete_schedule_task_request import DeleteScheduleTaskRequest
106
+ from huaweicloudsdkgaussdbforopengauss.v3.model.delete_schedule_task_response import DeleteScheduleTaskResponse
100
107
  from huaweicloudsdkgaussdbforopengauss.v3.model.download_backup_error_response import DownloadBackupErrorResponse
101
108
  from huaweicloudsdkgaussdbforopengauss.v3.model.download_backup_request import DownloadBackupRequest
102
109
  from huaweicloudsdkgaussdbforopengauss.v3.model.download_backup_response import DownloadBackupResponse
@@ -131,8 +138,11 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.hotfix_version_info import Hotfi
131
138
  from huaweicloudsdkgaussdbforopengauss.v3.model.install_kernel_plugin_request import InstallKernelPluginRequest
132
139
  from huaweicloudsdkgaussdbforopengauss.v3.model.install_kernel_plugin_request_body import InstallKernelPluginRequestBody
133
140
  from huaweicloudsdkgaussdbforopengauss.v3.model.install_kernel_plugin_response import InstallKernelPluginResponse
141
+ from huaweicloudsdkgaussdbforopengauss.v3.model.instance_detail import InstanceDetail
142
+ from huaweicloudsdkgaussdbforopengauss.v3.model.instance_engine_detail import InstanceEngineDetail
134
143
  from huaweicloudsdkgaussdbforopengauss.v3.model.instance_info_result import InstanceInfoResult
135
144
  from huaweicloudsdkgaussdbforopengauss.v3.model.instance_log_file import InstanceLogFile
145
+ from huaweicloudsdkgaussdbforopengauss.v3.model.instance_task_detail import InstanceTaskDetail
136
146
  from huaweicloudsdkgaussdbforopengauss.v3.model.instances_list_result import InstancesListResult
137
147
  from huaweicloudsdkgaussdbforopengauss.v3.model.instances_result import InstancesResult
138
148
  from huaweicloudsdkgaussdbforopengauss.v3.model.job_detail import JobDetail
@@ -198,6 +208,8 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.list_history_operations_result i
198
208
  from huaweicloudsdkgaussdbforopengauss.v3.model.list_instance_datastore import ListInstanceDatastore
199
209
  from huaweicloudsdkgaussdbforopengauss.v3.model.list_instance_details_request import ListInstanceDetailsRequest
200
210
  from huaweicloudsdkgaussdbforopengauss.v3.model.list_instance_details_response import ListInstanceDetailsResponse
211
+ from huaweicloudsdkgaussdbforopengauss.v3.model.list_instance_engine_detail_request import ListInstanceEngineDetailRequest
212
+ from huaweicloudsdkgaussdbforopengauss.v3.model.list_instance_engine_detail_response import ListInstanceEngineDetailResponse
201
213
  from huaweicloudsdkgaussdbforopengauss.v3.model.list_instance_error_logs_request import ListInstanceErrorLogsRequest
202
214
  from huaweicloudsdkgaussdbforopengauss.v3.model.list_instance_error_logs_response import ListInstanceErrorLogsResponse
203
215
  from huaweicloudsdkgaussdbforopengauss.v3.model.list_instance_response import ListInstanceResponse
@@ -239,6 +251,8 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.list_restorable_instances_reques
239
251
  from huaweicloudsdkgaussdbforopengauss.v3.model.list_restorable_instances_response import ListRestorableInstancesResponse
240
252
  from huaweicloudsdkgaussdbforopengauss.v3.model.list_restore_times_request import ListRestoreTimesRequest
241
253
  from huaweicloudsdkgaussdbforopengauss.v3.model.list_restore_times_response import ListRestoreTimesResponse
254
+ from huaweicloudsdkgaussdbforopengauss.v3.model.list_schedule_task_request import ListScheduleTaskRequest
255
+ from huaweicloudsdkgaussdbforopengauss.v3.model.list_schedule_task_response import ListScheduleTaskResponse
242
256
  from huaweicloudsdkgaussdbforopengauss.v3.model.list_storage_types_request import ListStorageTypesRequest
243
257
  from huaweicloudsdkgaussdbforopengauss.v3.model.list_storage_types_response import ListStorageTypesResponse
244
258
  from huaweicloudsdkgaussdbforopengauss.v3.model.list_support_kernel_plugins_request import ListSupportKernelPluginsRequest
@@ -319,6 +333,7 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.resume_plugin_extensions_respons
319
333
  from huaweicloudsdkgaussdbforopengauss.v3.model.roll_upgrade_progress import RollUpgradeProgress
320
334
  from huaweicloudsdkgaussdbforopengauss.v3.model.run_instance_action_request import RunInstanceActionRequest
321
335
  from huaweicloudsdkgaussdbforopengauss.v3.model.run_instance_action_response import RunInstanceActionResponse
336
+ from huaweicloudsdkgaussdbforopengauss.v3.model.schedule_task_detail import ScheduleTaskDetail
322
337
  from huaweicloudsdkgaussdbforopengauss.v3.model.search_auto_enlarge_policy_request import SearchAutoEnlargePolicyRequest
323
338
  from huaweicloudsdkgaussdbforopengauss.v3.model.search_auto_enlarge_policy_response import SearchAutoEnlargePolicyResponse
324
339
  from huaweicloudsdkgaussdbforopengauss.v3.model.set_backup_policy_request import SetBackupPolicyRequest
@@ -0,0 +1,143 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class CancelScheduleTaskRequest:
9
+
10
+ """
11
+ Attributes:
12
+ openapi_types (dict): The key is attribute name
13
+ and the value is attribute type.
14
+ attribute_map (dict): The key is attribute name
15
+ and the value is json key in definition.
16
+ """
17
+ sensitive_list = []
18
+
19
+ openapi_types = {
20
+ 'x_language': 'str',
21
+ 'task_id': 'str'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'x_language': 'X-Language',
26
+ 'task_id': 'task_id'
27
+ }
28
+
29
+ def __init__(self, x_language=None, task_id=None):
30
+ """CancelScheduleTaskRequest
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param x_language: 语言。
35
+ :type x_language: str
36
+ :param task_id: 任务id。
37
+ :type task_id: str
38
+ """
39
+
40
+
41
+
42
+ self._x_language = None
43
+ self._task_id = None
44
+ self.discriminator = None
45
+
46
+ if x_language is not None:
47
+ self.x_language = x_language
48
+ self.task_id = task_id
49
+
50
+ @property
51
+ def x_language(self):
52
+ """Gets the x_language of this CancelScheduleTaskRequest.
53
+
54
+ 语言。
55
+
56
+ :return: The x_language of this CancelScheduleTaskRequest.
57
+ :rtype: str
58
+ """
59
+ return self._x_language
60
+
61
+ @x_language.setter
62
+ def x_language(self, x_language):
63
+ """Sets the x_language of this CancelScheduleTaskRequest.
64
+
65
+ 语言。
66
+
67
+ :param x_language: The x_language of this CancelScheduleTaskRequest.
68
+ :type x_language: str
69
+ """
70
+ self._x_language = x_language
71
+
72
+ @property
73
+ def task_id(self):
74
+ """Gets the task_id of this CancelScheduleTaskRequest.
75
+
76
+ 任务id。
77
+
78
+ :return: The task_id of this CancelScheduleTaskRequest.
79
+ :rtype: str
80
+ """
81
+ return self._task_id
82
+
83
+ @task_id.setter
84
+ def task_id(self, task_id):
85
+ """Sets the task_id of this CancelScheduleTaskRequest.
86
+
87
+ 任务id。
88
+
89
+ :param task_id: The task_id of this CancelScheduleTaskRequest.
90
+ :type task_id: str
91
+ """
92
+ self._task_id = task_id
93
+
94
+ def to_dict(self):
95
+ """Returns the model properties as a dict"""
96
+ result = {}
97
+
98
+ for attr, _ in six.iteritems(self.openapi_types):
99
+ value = getattr(self, attr)
100
+ if isinstance(value, list):
101
+ result[attr] = list(map(
102
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
103
+ value
104
+ ))
105
+ elif hasattr(value, "to_dict"):
106
+ result[attr] = value.to_dict()
107
+ elif isinstance(value, dict):
108
+ result[attr] = dict(map(
109
+ lambda item: (item[0], item[1].to_dict())
110
+ if hasattr(item[1], "to_dict") else item,
111
+ value.items()
112
+ ))
113
+ else:
114
+ if attr in self.sensitive_list:
115
+ result[attr] = "****"
116
+ else:
117
+ result[attr] = value
118
+
119
+ return result
120
+
121
+ def to_str(self):
122
+ """Returns the string representation of the model"""
123
+ import simplejson as json
124
+ if six.PY2:
125
+ import sys
126
+ reload(sys)
127
+ sys.setdefaultencoding("utf-8")
128
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
129
+
130
+ def __repr__(self):
131
+ """For `print`"""
132
+ return self.to_str()
133
+
134
+ def __eq__(self, other):
135
+ """Returns true if both objects are equal"""
136
+ if not isinstance(other, CancelScheduleTaskRequest):
137
+ return False
138
+
139
+ return self.__dict__ == other.__dict__
140
+
141
+ def __ne__(self, other):
142
+ """Returns true if both objects are not equal"""
143
+ return not self == other
@@ -0,0 +1,85 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.sdk_response import SdkResponse
6
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
7
+
8
+
9
+ class CancelScheduleTaskResponse(SdkResponse):
10
+
11
+ """
12
+ Attributes:
13
+ openapi_types (dict): The key is attribute name
14
+ and the value is attribute type.
15
+ attribute_map (dict): The key is attribute name
16
+ and the value is json key in definition.
17
+ """
18
+ sensitive_list = []
19
+
20
+ openapi_types = {
21
+ }
22
+
23
+ attribute_map = {
24
+ }
25
+
26
+ def __init__(self):
27
+ """CancelScheduleTaskResponse
28
+
29
+ The model defined in huaweicloud sdk
30
+
31
+ """
32
+
33
+ super(CancelScheduleTaskResponse, self).__init__()
34
+ self.discriminator = None
35
+
36
+ def to_dict(self):
37
+ """Returns the model properties as a dict"""
38
+ result = {}
39
+
40
+ for attr, _ in six.iteritems(self.openapi_types):
41
+ value = getattr(self, attr)
42
+ if isinstance(value, list):
43
+ result[attr] = list(map(
44
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
45
+ value
46
+ ))
47
+ elif hasattr(value, "to_dict"):
48
+ result[attr] = value.to_dict()
49
+ elif isinstance(value, dict):
50
+ result[attr] = dict(map(
51
+ lambda item: (item[0], item[1].to_dict())
52
+ if hasattr(item[1], "to_dict") else item,
53
+ value.items()
54
+ ))
55
+ else:
56
+ if attr in self.sensitive_list:
57
+ result[attr] = "****"
58
+ else:
59
+ result[attr] = value
60
+
61
+ return result
62
+
63
+ def to_str(self):
64
+ """Returns the string representation of the model"""
65
+ import simplejson as json
66
+ if six.PY2:
67
+ import sys
68
+ reload(sys)
69
+ sys.setdefaultencoding("utf-8")
70
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
71
+
72
+ def __repr__(self):
73
+ """For `print`"""
74
+ return self.to_str()
75
+
76
+ def __eq__(self, other):
77
+ """Returns true if both objects are equal"""
78
+ if not isinstance(other, CancelScheduleTaskResponse):
79
+ return False
80
+
81
+ return self.__dict__ == other.__dict__
82
+
83
+ def __ne__(self, other):
84
+ """Returns true if both objects are not equal"""
85
+ return not self == other