huaweicloudsdkgaussdbforopengauss 3.1.165__py3-none-any.whl → 3.1.166__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.
- huaweicloudsdkgaussdbforopengauss/v3/__init__.py +7 -0
- huaweicloudsdkgaussdbforopengauss/v3/gaussdbforopengauss_async_client.py +138 -0
- huaweicloudsdkgaussdbforopengauss/v3/gaussdbforopengauss_client.py +138 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/__init__.py +7 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/database_schema_table_result.py +144 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/export_slow_sql_request.py +168 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/export_slow_sql_response.py +85 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/export_table_volume_request_body.py +258 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_schema_and_table_request.py +168 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_schema_and_table_request_body.py +142 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_schema_and_table_response.py +116 -0
- {huaweicloudsdkgaussdbforopengauss-3.1.165.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.166.dist-info}/METADATA +9 -10
- {huaweicloudsdkgaussdbforopengauss-3.1.165.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.166.dist-info}/RECORD +15 -9
- {huaweicloudsdkgaussdbforopengauss-3.1.165.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.166.dist-info}/WHEEL +1 -2
- huaweicloudsdkgaussdbforopengauss-3.1.165.dist-info/top_level.txt +0 -1
- {huaweicloudsdkgaussdbforopengauss-3.1.165.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.166.dist-info/licenses}/LICENSE +0 -0
@@ -85,6 +85,7 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.create_schedule_task_response im
|
|
85
85
|
from huaweicloudsdkgaussdbforopengauss.v3.model.create_slow_log_download_request import CreateSlowLogDownloadRequest
|
86
86
|
from huaweicloudsdkgaussdbforopengauss.v3.model.create_slow_log_download_response import CreateSlowLogDownloadResponse
|
87
87
|
from huaweicloudsdkgaussdbforopengauss.v3.model.data_stroe_error_response import DataStroeErrorResponse
|
88
|
+
from huaweicloudsdkgaussdbforopengauss.v3.model.database_schema_table_result import DatabaseSchemaTableResult
|
88
89
|
from huaweicloudsdkgaussdbforopengauss.v3.model.datastore_option import DatastoreOption
|
89
90
|
from huaweicloudsdkgaussdbforopengauss.v3.model.datastore_result import DatastoreResult
|
90
91
|
from huaweicloudsdkgaussdbforopengauss.v3.model.datastores_result import DatastoresResult
|
@@ -137,6 +138,9 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.execute_cross_cloud_disaster_swi
|
|
137
138
|
from huaweicloudsdkgaussdbforopengauss.v3.model.execute_cross_cloud_disaster_switchover_response import ExecuteCrossCloudDisasterSwitchoverResponse
|
138
139
|
from huaweicloudsdkgaussdbforopengauss.v3.model.execute_cross_cloud_release_disaster_request import ExecuteCrossCloudReleaseDisasterRequest
|
139
140
|
from huaweicloudsdkgaussdbforopengauss.v3.model.execute_cross_cloud_release_disaster_response import ExecuteCrossCloudReleaseDisasterResponse
|
141
|
+
from huaweicloudsdkgaussdbforopengauss.v3.model.export_slow_sql_request import ExportSlowSqlRequest
|
142
|
+
from huaweicloudsdkgaussdbforopengauss.v3.model.export_slow_sql_response import ExportSlowSqlResponse
|
143
|
+
from huaweicloudsdkgaussdbforopengauss.v3.model.export_table_volume_request_body import ExportTableVolumeRequestBody
|
140
144
|
from huaweicloudsdkgaussdbforopengauss.v3.model.feature_result import FeatureResult
|
141
145
|
from huaweicloudsdkgaussdbforopengauss.v3.model.flavor import Flavor
|
142
146
|
from huaweicloudsdkgaussdbforopengauss.v3.model.flavor_error_response import FlavorErrorResponse
|
@@ -282,6 +286,9 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.list_restore_times_request impor
|
|
282
286
|
from huaweicloudsdkgaussdbforopengauss.v3.model.list_restore_times_response import ListRestoreTimesResponse
|
283
287
|
from huaweicloudsdkgaussdbforopengauss.v3.model.list_schedule_task_request import ListScheduleTaskRequest
|
284
288
|
from huaweicloudsdkgaussdbforopengauss.v3.model.list_schedule_task_response import ListScheduleTaskResponse
|
289
|
+
from huaweicloudsdkgaussdbforopengauss.v3.model.list_schema_and_table_request import ListSchemaAndTableRequest
|
290
|
+
from huaweicloudsdkgaussdbforopengauss.v3.model.list_schema_and_table_request_body import ListSchemaAndTableRequestBody
|
291
|
+
from huaweicloudsdkgaussdbforopengauss.v3.model.list_schema_and_table_response import ListSchemaAndTableResponse
|
285
292
|
from huaweicloudsdkgaussdbforopengauss.v3.model.list_storage_types_request import ListStorageTypesRequest
|
286
293
|
from huaweicloudsdkgaussdbforopengauss.v3.model.list_storage_types_response import ListStorageTypesResponse
|
287
294
|
from huaweicloudsdkgaussdbforopengauss.v3.model.list_support_kernel_plugins_request import ListSupportKernelPluginsRequest
|
@@ -2692,6 +2692,75 @@ class GaussDBforopenGaussAsyncClient(Client):
|
|
2692
2692
|
|
2693
2693
|
return http_info
|
2694
2694
|
|
2695
|
+
def export_slow_sql_async(self, request):
|
2696
|
+
r"""表信息导出
|
2697
|
+
|
2698
|
+
表信息导出
|
2699
|
+
|
2700
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
2701
|
+
|
2702
|
+
|
2703
|
+
:param request: Request instance for ExportSlowSql
|
2704
|
+
:type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.ExportSlowSqlRequest`
|
2705
|
+
:rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.ExportSlowSqlResponse`
|
2706
|
+
"""
|
2707
|
+
http_info = self._export_slow_sql_http_info(request)
|
2708
|
+
return self._call_api(**http_info)
|
2709
|
+
|
2710
|
+
def export_slow_sql_async_invoker(self, request):
|
2711
|
+
http_info = self._export_slow_sql_http_info(request)
|
2712
|
+
return AsyncInvoker(self, http_info)
|
2713
|
+
|
2714
|
+
def _export_slow_sql_http_info(self, request):
|
2715
|
+
http_info = {
|
2716
|
+
"method": "POST",
|
2717
|
+
"resource_path": "/v3/{project_id}/instances/{instance_id}/table-volume/export",
|
2718
|
+
"request_type": request.__class__.__name__,
|
2719
|
+
"response_type": "ExportSlowSqlResponse"
|
2720
|
+
}
|
2721
|
+
|
2722
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
2723
|
+
|
2724
|
+
cname = None
|
2725
|
+
|
2726
|
+
collection_formats = {}
|
2727
|
+
|
2728
|
+
path_params = {}
|
2729
|
+
if 'instance_id' in local_var_params:
|
2730
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
2731
|
+
|
2732
|
+
query_params = []
|
2733
|
+
|
2734
|
+
header_params = {}
|
2735
|
+
if 'x_language' in local_var_params:
|
2736
|
+
header_params['X-Language'] = local_var_params['x_language']
|
2737
|
+
|
2738
|
+
form_params = {}
|
2739
|
+
|
2740
|
+
body = None
|
2741
|
+
if 'body' in local_var_params:
|
2742
|
+
body = local_var_params['body']
|
2743
|
+
if isinstance(request, SdkStreamRequest):
|
2744
|
+
body = request.get_file_stream()
|
2745
|
+
|
2746
|
+
response_headers = []
|
2747
|
+
|
2748
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
2749
|
+
['application/json;charset=UTF-8'])
|
2750
|
+
|
2751
|
+
auth_settings = []
|
2752
|
+
|
2753
|
+
http_info["cname"] = cname
|
2754
|
+
http_info["collection_formats"] = collection_formats
|
2755
|
+
http_info["path_params"] = path_params
|
2756
|
+
http_info["query_params"] = query_params
|
2757
|
+
http_info["header_params"] = header_params
|
2758
|
+
http_info["post_params"] = form_params
|
2759
|
+
http_info["body"] = body
|
2760
|
+
http_info["response_headers"] = response_headers
|
2761
|
+
|
2762
|
+
return http_info
|
2763
|
+
|
2695
2764
|
def install_kernel_plugin_async(self, request):
|
2696
2765
|
r"""安装插件
|
2697
2766
|
|
@@ -5950,6 +6019,75 @@ class GaussDBforopenGaussAsyncClient(Client):
|
|
5950
6019
|
|
5951
6020
|
return http_info
|
5952
6021
|
|
6022
|
+
def list_schema_and_table_async(self, request):
|
6023
|
+
r"""识别SQL文本中的表信息
|
6024
|
+
|
6025
|
+
识别SQL文本中的表信息
|
6026
|
+
|
6027
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
6028
|
+
|
6029
|
+
|
6030
|
+
:param request: Request instance for ListSchemaAndTable
|
6031
|
+
:type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.ListSchemaAndTableRequest`
|
6032
|
+
:rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.ListSchemaAndTableResponse`
|
6033
|
+
"""
|
6034
|
+
http_info = self._list_schema_and_table_http_info(request)
|
6035
|
+
return self._call_api(**http_info)
|
6036
|
+
|
6037
|
+
def list_schema_and_table_async_invoker(self, request):
|
6038
|
+
http_info = self._list_schema_and_table_http_info(request)
|
6039
|
+
return AsyncInvoker(self, http_info)
|
6040
|
+
|
6041
|
+
def _list_schema_and_table_http_info(self, request):
|
6042
|
+
http_info = {
|
6043
|
+
"method": "POST",
|
6044
|
+
"resource_path": "/v3/{project_id}/instances/{instance_id}/parse/schema-table",
|
6045
|
+
"request_type": request.__class__.__name__,
|
6046
|
+
"response_type": "ListSchemaAndTableResponse"
|
6047
|
+
}
|
6048
|
+
|
6049
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
6050
|
+
|
6051
|
+
cname = None
|
6052
|
+
|
6053
|
+
collection_formats = {}
|
6054
|
+
|
6055
|
+
path_params = {}
|
6056
|
+
if 'instance_id' in local_var_params:
|
6057
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
6058
|
+
|
6059
|
+
query_params = []
|
6060
|
+
|
6061
|
+
header_params = {}
|
6062
|
+
if 'x_language' in local_var_params:
|
6063
|
+
header_params['X-Language'] = local_var_params['x_language']
|
6064
|
+
|
6065
|
+
form_params = {}
|
6066
|
+
|
6067
|
+
body = None
|
6068
|
+
if 'body' in local_var_params:
|
6069
|
+
body = local_var_params['body']
|
6070
|
+
if isinstance(request, SdkStreamRequest):
|
6071
|
+
body = request.get_file_stream()
|
6072
|
+
|
6073
|
+
response_headers = []
|
6074
|
+
|
6075
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
6076
|
+
['application/json;charset=UTF-8'])
|
6077
|
+
|
6078
|
+
auth_settings = []
|
6079
|
+
|
6080
|
+
http_info["cname"] = cname
|
6081
|
+
http_info["collection_formats"] = collection_formats
|
6082
|
+
http_info["path_params"] = path_params
|
6083
|
+
http_info["query_params"] = query_params
|
6084
|
+
http_info["header_params"] = header_params
|
6085
|
+
http_info["post_params"] = form_params
|
6086
|
+
http_info["body"] = body
|
6087
|
+
http_info["response_headers"] = response_headers
|
6088
|
+
|
6089
|
+
return http_info
|
6090
|
+
|
5953
6091
|
def list_storage_types_async(self, request):
|
5954
6092
|
r"""查询数据库磁盘类型
|
5955
6093
|
|
@@ -2692,6 +2692,75 @@ class GaussDBforopenGaussClient(Client):
|
|
2692
2692
|
|
2693
2693
|
return http_info
|
2694
2694
|
|
2695
|
+
def export_slow_sql(self, request):
|
2696
|
+
r"""表信息导出
|
2697
|
+
|
2698
|
+
表信息导出
|
2699
|
+
|
2700
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
2701
|
+
|
2702
|
+
:param request: Request instance for ExportSlowSql
|
2703
|
+
:type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.ExportSlowSqlRequest`
|
2704
|
+
:rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.ExportSlowSqlResponse`
|
2705
|
+
"""
|
2706
|
+
http_info = self._export_slow_sql_http_info(request)
|
2707
|
+
return self._call_api(**http_info)
|
2708
|
+
|
2709
|
+
def export_slow_sql_invoker(self, request):
|
2710
|
+
http_info = self._export_slow_sql_http_info(request)
|
2711
|
+
return SyncInvoker(self, http_info)
|
2712
|
+
|
2713
|
+
@classmethod
|
2714
|
+
def _export_slow_sql_http_info(cls, request):
|
2715
|
+
http_info = {
|
2716
|
+
"method": "POST",
|
2717
|
+
"resource_path": "/v3/{project_id}/instances/{instance_id}/table-volume/export",
|
2718
|
+
"request_type": request.__class__.__name__,
|
2719
|
+
"response_type": "ExportSlowSqlResponse"
|
2720
|
+
}
|
2721
|
+
|
2722
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
2723
|
+
|
2724
|
+
cname = None
|
2725
|
+
|
2726
|
+
collection_formats = {}
|
2727
|
+
|
2728
|
+
path_params = {}
|
2729
|
+
if 'instance_id' in local_var_params:
|
2730
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
2731
|
+
|
2732
|
+
query_params = []
|
2733
|
+
|
2734
|
+
header_params = {}
|
2735
|
+
if 'x_language' in local_var_params:
|
2736
|
+
header_params['X-Language'] = local_var_params['x_language']
|
2737
|
+
|
2738
|
+
form_params = {}
|
2739
|
+
|
2740
|
+
body = None
|
2741
|
+
if 'body' in local_var_params:
|
2742
|
+
body = local_var_params['body']
|
2743
|
+
if isinstance(request, SdkStreamRequest):
|
2744
|
+
body = request.get_file_stream()
|
2745
|
+
|
2746
|
+
response_headers = []
|
2747
|
+
|
2748
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
2749
|
+
['application/json;charset=UTF-8'])
|
2750
|
+
|
2751
|
+
auth_settings = []
|
2752
|
+
|
2753
|
+
http_info["cname"] = cname
|
2754
|
+
http_info["collection_formats"] = collection_formats
|
2755
|
+
http_info["path_params"] = path_params
|
2756
|
+
http_info["query_params"] = query_params
|
2757
|
+
http_info["header_params"] = header_params
|
2758
|
+
http_info["post_params"] = form_params
|
2759
|
+
http_info["body"] = body
|
2760
|
+
http_info["response_headers"] = response_headers
|
2761
|
+
|
2762
|
+
return http_info
|
2763
|
+
|
2695
2764
|
def install_kernel_plugin(self, request):
|
2696
2765
|
r"""安装插件
|
2697
2766
|
|
@@ -5950,6 +6019,75 @@ class GaussDBforopenGaussClient(Client):
|
|
5950
6019
|
|
5951
6020
|
return http_info
|
5952
6021
|
|
6022
|
+
def list_schema_and_table(self, request):
|
6023
|
+
r"""识别SQL文本中的表信息
|
6024
|
+
|
6025
|
+
识别SQL文本中的表信息
|
6026
|
+
|
6027
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
6028
|
+
|
6029
|
+
:param request: Request instance for ListSchemaAndTable
|
6030
|
+
:type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.ListSchemaAndTableRequest`
|
6031
|
+
:rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.ListSchemaAndTableResponse`
|
6032
|
+
"""
|
6033
|
+
http_info = self._list_schema_and_table_http_info(request)
|
6034
|
+
return self._call_api(**http_info)
|
6035
|
+
|
6036
|
+
def list_schema_and_table_invoker(self, request):
|
6037
|
+
http_info = self._list_schema_and_table_http_info(request)
|
6038
|
+
return SyncInvoker(self, http_info)
|
6039
|
+
|
6040
|
+
@classmethod
|
6041
|
+
def _list_schema_and_table_http_info(cls, request):
|
6042
|
+
http_info = {
|
6043
|
+
"method": "POST",
|
6044
|
+
"resource_path": "/v3/{project_id}/instances/{instance_id}/parse/schema-table",
|
6045
|
+
"request_type": request.__class__.__name__,
|
6046
|
+
"response_type": "ListSchemaAndTableResponse"
|
6047
|
+
}
|
6048
|
+
|
6049
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
6050
|
+
|
6051
|
+
cname = None
|
6052
|
+
|
6053
|
+
collection_formats = {}
|
6054
|
+
|
6055
|
+
path_params = {}
|
6056
|
+
if 'instance_id' in local_var_params:
|
6057
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
6058
|
+
|
6059
|
+
query_params = []
|
6060
|
+
|
6061
|
+
header_params = {}
|
6062
|
+
if 'x_language' in local_var_params:
|
6063
|
+
header_params['X-Language'] = local_var_params['x_language']
|
6064
|
+
|
6065
|
+
form_params = {}
|
6066
|
+
|
6067
|
+
body = None
|
6068
|
+
if 'body' in local_var_params:
|
6069
|
+
body = local_var_params['body']
|
6070
|
+
if isinstance(request, SdkStreamRequest):
|
6071
|
+
body = request.get_file_stream()
|
6072
|
+
|
6073
|
+
response_headers = []
|
6074
|
+
|
6075
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
6076
|
+
['application/json;charset=UTF-8'])
|
6077
|
+
|
6078
|
+
auth_settings = []
|
6079
|
+
|
6080
|
+
http_info["cname"] = cname
|
6081
|
+
http_info["collection_formats"] = collection_formats
|
6082
|
+
http_info["path_params"] = path_params
|
6083
|
+
http_info["query_params"] = query_params
|
6084
|
+
http_info["header_params"] = header_params
|
6085
|
+
http_info["post_params"] = form_params
|
6086
|
+
http_info["body"] = body
|
6087
|
+
http_info["response_headers"] = response_headers
|
6088
|
+
|
6089
|
+
return http_info
|
6090
|
+
|
5953
6091
|
def list_storage_types(self, request):
|
5954
6092
|
r"""查询数据库磁盘类型
|
5955
6093
|
|
@@ -83,6 +83,7 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.create_schedule_task_response im
|
|
83
83
|
from huaweicloudsdkgaussdbforopengauss.v3.model.create_slow_log_download_request import CreateSlowLogDownloadRequest
|
84
84
|
from huaweicloudsdkgaussdbforopengauss.v3.model.create_slow_log_download_response import CreateSlowLogDownloadResponse
|
85
85
|
from huaweicloudsdkgaussdbforopengauss.v3.model.data_stroe_error_response import DataStroeErrorResponse
|
86
|
+
from huaweicloudsdkgaussdbforopengauss.v3.model.database_schema_table_result import DatabaseSchemaTableResult
|
86
87
|
from huaweicloudsdkgaussdbforopengauss.v3.model.datastore_option import DatastoreOption
|
87
88
|
from huaweicloudsdkgaussdbforopengauss.v3.model.datastore_result import DatastoreResult
|
88
89
|
from huaweicloudsdkgaussdbforopengauss.v3.model.datastores_result import DatastoresResult
|
@@ -135,6 +136,9 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.execute_cross_cloud_disaster_swi
|
|
135
136
|
from huaweicloudsdkgaussdbforopengauss.v3.model.execute_cross_cloud_disaster_switchover_response import ExecuteCrossCloudDisasterSwitchoverResponse
|
136
137
|
from huaweicloudsdkgaussdbforopengauss.v3.model.execute_cross_cloud_release_disaster_request import ExecuteCrossCloudReleaseDisasterRequest
|
137
138
|
from huaweicloudsdkgaussdbforopengauss.v3.model.execute_cross_cloud_release_disaster_response import ExecuteCrossCloudReleaseDisasterResponse
|
139
|
+
from huaweicloudsdkgaussdbforopengauss.v3.model.export_slow_sql_request import ExportSlowSqlRequest
|
140
|
+
from huaweicloudsdkgaussdbforopengauss.v3.model.export_slow_sql_response import ExportSlowSqlResponse
|
141
|
+
from huaweicloudsdkgaussdbforopengauss.v3.model.export_table_volume_request_body import ExportTableVolumeRequestBody
|
138
142
|
from huaweicloudsdkgaussdbforopengauss.v3.model.feature_result import FeatureResult
|
139
143
|
from huaweicloudsdkgaussdbforopengauss.v3.model.flavor import Flavor
|
140
144
|
from huaweicloudsdkgaussdbforopengauss.v3.model.flavor_error_response import FlavorErrorResponse
|
@@ -280,6 +284,9 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.list_restore_times_request impor
|
|
280
284
|
from huaweicloudsdkgaussdbforopengauss.v3.model.list_restore_times_response import ListRestoreTimesResponse
|
281
285
|
from huaweicloudsdkgaussdbforopengauss.v3.model.list_schedule_task_request import ListScheduleTaskRequest
|
282
286
|
from huaweicloudsdkgaussdbforopengauss.v3.model.list_schedule_task_response import ListScheduleTaskResponse
|
287
|
+
from huaweicloudsdkgaussdbforopengauss.v3.model.list_schema_and_table_request import ListSchemaAndTableRequest
|
288
|
+
from huaweicloudsdkgaussdbforopengauss.v3.model.list_schema_and_table_request_body import ListSchemaAndTableRequestBody
|
289
|
+
from huaweicloudsdkgaussdbforopengauss.v3.model.list_schema_and_table_response import ListSchemaAndTableResponse
|
283
290
|
from huaweicloudsdkgaussdbforopengauss.v3.model.list_storage_types_request import ListStorageTypesRequest
|
284
291
|
from huaweicloudsdkgaussdbforopengauss.v3.model.list_storage_types_response import ListStorageTypesResponse
|
285
292
|
from huaweicloudsdkgaussdbforopengauss.v3.model.list_support_kernel_plugins_request import ListSupportKernelPluginsRequest
|
@@ -0,0 +1,144 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class DatabaseSchemaTableResult:
|
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
|
+
'table_name': 'str',
|
21
|
+
'schema_name': 'str'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'table_name': 'table_name',
|
26
|
+
'schema_name': 'schema_name'
|
27
|
+
}
|
28
|
+
|
29
|
+
def __init__(self, table_name=None, schema_name=None):
|
30
|
+
r"""DatabaseSchemaTableResult
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
:param table_name: 表名称
|
35
|
+
:type table_name: str
|
36
|
+
:param schema_name: schema名称
|
37
|
+
:type schema_name: str
|
38
|
+
"""
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
self._table_name = None
|
43
|
+
self._schema_name = None
|
44
|
+
self.discriminator = None
|
45
|
+
|
46
|
+
if table_name is not None:
|
47
|
+
self.table_name = table_name
|
48
|
+
if schema_name is not None:
|
49
|
+
self.schema_name = schema_name
|
50
|
+
|
51
|
+
@property
|
52
|
+
def table_name(self):
|
53
|
+
r"""Gets the table_name of this DatabaseSchemaTableResult.
|
54
|
+
|
55
|
+
表名称
|
56
|
+
|
57
|
+
:return: The table_name of this DatabaseSchemaTableResult.
|
58
|
+
:rtype: str
|
59
|
+
"""
|
60
|
+
return self._table_name
|
61
|
+
|
62
|
+
@table_name.setter
|
63
|
+
def table_name(self, table_name):
|
64
|
+
r"""Sets the table_name of this DatabaseSchemaTableResult.
|
65
|
+
|
66
|
+
表名称
|
67
|
+
|
68
|
+
:param table_name: The table_name of this DatabaseSchemaTableResult.
|
69
|
+
:type table_name: str
|
70
|
+
"""
|
71
|
+
self._table_name = table_name
|
72
|
+
|
73
|
+
@property
|
74
|
+
def schema_name(self):
|
75
|
+
r"""Gets the schema_name of this DatabaseSchemaTableResult.
|
76
|
+
|
77
|
+
schema名称
|
78
|
+
|
79
|
+
:return: The schema_name of this DatabaseSchemaTableResult.
|
80
|
+
:rtype: str
|
81
|
+
"""
|
82
|
+
return self._schema_name
|
83
|
+
|
84
|
+
@schema_name.setter
|
85
|
+
def schema_name(self, schema_name):
|
86
|
+
r"""Sets the schema_name of this DatabaseSchemaTableResult.
|
87
|
+
|
88
|
+
schema名称
|
89
|
+
|
90
|
+
:param schema_name: The schema_name of this DatabaseSchemaTableResult.
|
91
|
+
:type schema_name: str
|
92
|
+
"""
|
93
|
+
self._schema_name = schema_name
|
94
|
+
|
95
|
+
def to_dict(self):
|
96
|
+
"""Returns the model properties as a dict"""
|
97
|
+
result = {}
|
98
|
+
|
99
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
100
|
+
value = getattr(self, attr)
|
101
|
+
if isinstance(value, list):
|
102
|
+
result[attr] = list(map(
|
103
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
104
|
+
value
|
105
|
+
))
|
106
|
+
elif hasattr(value, "to_dict"):
|
107
|
+
result[attr] = value.to_dict()
|
108
|
+
elif isinstance(value, dict):
|
109
|
+
result[attr] = dict(map(
|
110
|
+
lambda item: (item[0], item[1].to_dict())
|
111
|
+
if hasattr(item[1], "to_dict") else item,
|
112
|
+
value.items()
|
113
|
+
))
|
114
|
+
else:
|
115
|
+
if attr in self.sensitive_list:
|
116
|
+
result[attr] = "****"
|
117
|
+
else:
|
118
|
+
result[attr] = value
|
119
|
+
|
120
|
+
return result
|
121
|
+
|
122
|
+
def to_str(self):
|
123
|
+
"""Returns the string representation of the model"""
|
124
|
+
import simplejson as json
|
125
|
+
if six.PY2:
|
126
|
+
import sys
|
127
|
+
reload(sys)
|
128
|
+
sys.setdefaultencoding("utf-8")
|
129
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
130
|
+
|
131
|
+
def __repr__(self):
|
132
|
+
"""For `print`"""
|
133
|
+
return self.to_str()
|
134
|
+
|
135
|
+
def __eq__(self, other):
|
136
|
+
"""Returns true if both objects are equal"""
|
137
|
+
if not isinstance(other, DatabaseSchemaTableResult):
|
138
|
+
return False
|
139
|
+
|
140
|
+
return self.__dict__ == other.__dict__
|
141
|
+
|
142
|
+
def __ne__(self, other):
|
143
|
+
"""Returns true if both objects are not equal"""
|
144
|
+
return not self == other
|
@@ -0,0 +1,168 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ExportSlowSqlRequest:
|
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
|
+
'instance_id': 'str',
|
22
|
+
'body': 'ExportTableVolumeRequestBody'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'x_language': 'X-Language',
|
27
|
+
'instance_id': 'instance_id',
|
28
|
+
'body': 'body'
|
29
|
+
}
|
30
|
+
|
31
|
+
def __init__(self, x_language=None, instance_id=None, body=None):
|
32
|
+
r"""ExportSlowSqlRequest
|
33
|
+
|
34
|
+
The model defined in huaweicloud sdk
|
35
|
+
|
36
|
+
:param x_language: 语言。
|
37
|
+
:type x_language: str
|
38
|
+
:param instance_id: **参数解释**: 实例ID。 **约束限制**: 不涉及 **取值范围**: 不涉及 **默认取值**: 不涉及。
|
39
|
+
:type instance_id: str
|
40
|
+
:param body: Body of the ExportSlowSqlRequest
|
41
|
+
:type body: :class:`huaweicloudsdkgaussdbforopengauss.v3.ExportTableVolumeRequestBody`
|
42
|
+
"""
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
self._x_language = None
|
47
|
+
self._instance_id = None
|
48
|
+
self._body = None
|
49
|
+
self.discriminator = None
|
50
|
+
|
51
|
+
if x_language is not None:
|
52
|
+
self.x_language = x_language
|
53
|
+
self.instance_id = instance_id
|
54
|
+
if body is not None:
|
55
|
+
self.body = body
|
56
|
+
|
57
|
+
@property
|
58
|
+
def x_language(self):
|
59
|
+
r"""Gets the x_language of this ExportSlowSqlRequest.
|
60
|
+
|
61
|
+
语言。
|
62
|
+
|
63
|
+
:return: The x_language of this ExportSlowSqlRequest.
|
64
|
+
:rtype: str
|
65
|
+
"""
|
66
|
+
return self._x_language
|
67
|
+
|
68
|
+
@x_language.setter
|
69
|
+
def x_language(self, x_language):
|
70
|
+
r"""Sets the x_language of this ExportSlowSqlRequest.
|
71
|
+
|
72
|
+
语言。
|
73
|
+
|
74
|
+
:param x_language: The x_language of this ExportSlowSqlRequest.
|
75
|
+
:type x_language: str
|
76
|
+
"""
|
77
|
+
self._x_language = x_language
|
78
|
+
|
79
|
+
@property
|
80
|
+
def instance_id(self):
|
81
|
+
r"""Gets the instance_id of this ExportSlowSqlRequest.
|
82
|
+
|
83
|
+
**参数解释**: 实例ID。 **约束限制**: 不涉及 **取值范围**: 不涉及 **默认取值**: 不涉及。
|
84
|
+
|
85
|
+
:return: The instance_id of this ExportSlowSqlRequest.
|
86
|
+
:rtype: str
|
87
|
+
"""
|
88
|
+
return self._instance_id
|
89
|
+
|
90
|
+
@instance_id.setter
|
91
|
+
def instance_id(self, instance_id):
|
92
|
+
r"""Sets the instance_id of this ExportSlowSqlRequest.
|
93
|
+
|
94
|
+
**参数解释**: 实例ID。 **约束限制**: 不涉及 **取值范围**: 不涉及 **默认取值**: 不涉及。
|
95
|
+
|
96
|
+
:param instance_id: The instance_id of this ExportSlowSqlRequest.
|
97
|
+
:type instance_id: str
|
98
|
+
"""
|
99
|
+
self._instance_id = instance_id
|
100
|
+
|
101
|
+
@property
|
102
|
+
def body(self):
|
103
|
+
r"""Gets the body of this ExportSlowSqlRequest.
|
104
|
+
|
105
|
+
:return: The body of this ExportSlowSqlRequest.
|
106
|
+
:rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.ExportTableVolumeRequestBody`
|
107
|
+
"""
|
108
|
+
return self._body
|
109
|
+
|
110
|
+
@body.setter
|
111
|
+
def body(self, body):
|
112
|
+
r"""Sets the body of this ExportSlowSqlRequest.
|
113
|
+
|
114
|
+
:param body: The body of this ExportSlowSqlRequest.
|
115
|
+
:type body: :class:`huaweicloudsdkgaussdbforopengauss.v3.ExportTableVolumeRequestBody`
|
116
|
+
"""
|
117
|
+
self._body = body
|
118
|
+
|
119
|
+
def to_dict(self):
|
120
|
+
"""Returns the model properties as a dict"""
|
121
|
+
result = {}
|
122
|
+
|
123
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
124
|
+
value = getattr(self, attr)
|
125
|
+
if isinstance(value, list):
|
126
|
+
result[attr] = list(map(
|
127
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
128
|
+
value
|
129
|
+
))
|
130
|
+
elif hasattr(value, "to_dict"):
|
131
|
+
result[attr] = value.to_dict()
|
132
|
+
elif isinstance(value, dict):
|
133
|
+
result[attr] = dict(map(
|
134
|
+
lambda item: (item[0], item[1].to_dict())
|
135
|
+
if hasattr(item[1], "to_dict") else item,
|
136
|
+
value.items()
|
137
|
+
))
|
138
|
+
else:
|
139
|
+
if attr in self.sensitive_list:
|
140
|
+
result[attr] = "****"
|
141
|
+
else:
|
142
|
+
result[attr] = value
|
143
|
+
|
144
|
+
return result
|
145
|
+
|
146
|
+
def to_str(self):
|
147
|
+
"""Returns the string representation of the model"""
|
148
|
+
import simplejson as json
|
149
|
+
if six.PY2:
|
150
|
+
import sys
|
151
|
+
reload(sys)
|
152
|
+
sys.setdefaultencoding("utf-8")
|
153
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
154
|
+
|
155
|
+
def __repr__(self):
|
156
|
+
"""For `print`"""
|
157
|
+
return self.to_str()
|
158
|
+
|
159
|
+
def __eq__(self, other):
|
160
|
+
"""Returns true if both objects are equal"""
|
161
|
+
if not isinstance(other, ExportSlowSqlRequest):
|
162
|
+
return False
|
163
|
+
|
164
|
+
return self.__dict__ == other.__dict__
|
165
|
+
|
166
|
+
def __ne__(self, other):
|
167
|
+
"""Returns true if both objects are not equal"""
|
168
|
+
return not self == other
|