huaweicloudsdkgaussdbforopengauss 3.1.91__py2.py3-none-any.whl → 3.1.92__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 (22) hide show
  1. huaweicloudsdkgaussdbforopengauss/v3/__init__.py +10 -3
  2. huaweicloudsdkgaussdbforopengauss/v3/gaussdbforopengauss_async_client.py +286 -65
  3. huaweicloudsdkgaussdbforopengauss/v3/gaussdbforopengauss_client.py +286 -65
  4. huaweicloudsdkgaussdbforopengauss/v3/model/__init__.py +10 -3
  5. huaweicloudsdkgaussdbforopengauss/v3/model/delete_instance_tag_request.py +171 -0
  6. huaweicloudsdkgaussdbforopengauss/v3/model/delete_instance_tag_response.py +174 -0
  7. huaweicloudsdkgaussdbforopengauss/v3/model/instance_log_file.py +260 -0
  8. huaweicloudsdkgaussdbforopengauss/v3/model/list_instance_error_logs_request.py +257 -0
  9. huaweicloudsdkgaussdbforopengauss/v3/model/list_instance_error_logs_response.py +145 -0
  10. huaweicloudsdkgaussdbforopengauss/v3/model/list_top_io_traffics_request.py +257 -0
  11. huaweicloudsdkgaussdbforopengauss/v3/model/list_top_io_traffics_response.py +116 -0
  12. huaweicloudsdkgaussdbforopengauss/v3/model/open_gauss_upgrade_request.py +20 -49
  13. huaweicloudsdkgaussdbforopengauss/v3/model/show_backup_policy.py +4 -4
  14. huaweicloudsdkgaussdbforopengauss/v3/model/{instances_statistics_response_body_instances_statistics.py → show_error_log_switch_status_request.py} +42 -41
  15. huaweicloudsdkgaussdbforopengauss/v3/model/{show_instances_statistics_request.py → show_error_log_switch_status_response.py} +25 -24
  16. huaweicloudsdkgaussdbforopengauss/v3/model/top_io_info.py +405 -0
  17. {huaweicloudsdkgaussdbforopengauss-3.1.91.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.92.dist-info}/METADATA +2 -2
  18. {huaweicloudsdkgaussdbforopengauss-3.1.91.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.92.dist-info}/RECORD +21 -14
  19. huaweicloudsdkgaussdbforopengauss/v3/model/show_instances_statistics_response.py +0 -145
  20. {huaweicloudsdkgaussdbforopengauss-3.1.91.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.92.dist-info}/LICENSE +0 -0
  21. {huaweicloudsdkgaussdbforopengauss-3.1.91.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.92.dist-info}/WHEEL +0 -0
  22. {huaweicloudsdkgaussdbforopengauss-3.1.91.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.92.dist-info}/top_level.txt +0 -0
@@ -1122,6 +1122,75 @@ class GaussDBforopenGaussClient(Client):
1122
1122
 
1123
1123
  return http_info
1124
1124
 
1125
+ def delete_instance_tag(self, request):
1126
+ """删除实例标签
1127
+
1128
+ 删除实例标签
1129
+
1130
+ Please refer to HUAWEI cloud API Explorer for details.
1131
+
1132
+ :param request: Request instance for DeleteInstanceTag
1133
+ :type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.DeleteInstanceTagRequest`
1134
+ :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.DeleteInstanceTagResponse`
1135
+ """
1136
+ http_info = self._delete_instance_tag_http_info(request)
1137
+ return self._call_api(**http_info)
1138
+
1139
+ def delete_instance_tag_invoker(self, request):
1140
+ http_info = self._delete_instance_tag_http_info(request)
1141
+ return SyncInvoker(self, http_info)
1142
+
1143
+ @classmethod
1144
+ def _delete_instance_tag_http_info(cls, request):
1145
+ http_info = {
1146
+ "method": "DELETE",
1147
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/tag",
1148
+ "request_type": request.__class__.__name__,
1149
+ "response_type": "DeleteInstanceTagResponse"
1150
+ }
1151
+
1152
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1153
+
1154
+ cname = None
1155
+
1156
+ collection_formats = {}
1157
+
1158
+ path_params = {}
1159
+ if 'instance_id' in local_var_params:
1160
+ path_params['instance_id'] = local_var_params['instance_id']
1161
+
1162
+ query_params = []
1163
+ if 'key' in local_var_params:
1164
+ query_params.append(('key', local_var_params['key']))
1165
+
1166
+ header_params = {}
1167
+ if 'x_language' in local_var_params:
1168
+ header_params['X-Language'] = local_var_params['x_language']
1169
+
1170
+ form_params = {}
1171
+
1172
+ body = None
1173
+ if isinstance(request, SdkStreamRequest):
1174
+ body = request.get_file_stream()
1175
+
1176
+ response_headers = []
1177
+
1178
+ header_params['Content-Type'] = http_utils.select_header_content_type(
1179
+ ['application/json'])
1180
+
1181
+ auth_settings = []
1182
+
1183
+ http_info["cname"] = cname
1184
+ http_info["collection_formats"] = collection_formats
1185
+ http_info["path_params"] = path_params
1186
+ http_info["query_params"] = query_params
1187
+ http_info["header_params"] = header_params
1188
+ http_info["post_params"] = form_params
1189
+ http_info["body"] = body
1190
+ http_info["response_headers"] = response_headers
1191
+
1192
+ return http_info
1193
+
1125
1194
  def delete_job(self, request):
1126
1195
  """删除任务记录
1127
1196
 
@@ -2680,6 +2749,81 @@ class GaussDBforopenGaussClient(Client):
2680
2749
 
2681
2750
  return http_info
2682
2751
 
2752
+ def list_instance_error_logs(self, request):
2753
+ """查询错误日志下载链接
2754
+
2755
+ 查询数据库错误日志下载链接。
2756
+
2757
+ Please refer to HUAWEI cloud API Explorer for details.
2758
+
2759
+ :param request: Request instance for ListInstanceErrorLogs
2760
+ :type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.ListInstanceErrorLogsRequest`
2761
+ :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.ListInstanceErrorLogsResponse`
2762
+ """
2763
+ http_info = self._list_instance_error_logs_http_info(request)
2764
+ return self._call_api(**http_info)
2765
+
2766
+ def list_instance_error_logs_invoker(self, request):
2767
+ http_info = self._list_instance_error_logs_http_info(request)
2768
+ return SyncInvoker(self, http_info)
2769
+
2770
+ @classmethod
2771
+ def _list_instance_error_logs_http_info(cls, request):
2772
+ http_info = {
2773
+ "method": "GET",
2774
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/error-log",
2775
+ "request_type": request.__class__.__name__,
2776
+ "response_type": "ListInstanceErrorLogsResponse"
2777
+ }
2778
+
2779
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2780
+
2781
+ cname = None
2782
+
2783
+ collection_formats = {}
2784
+
2785
+ path_params = {}
2786
+ if 'instance_id' in local_var_params:
2787
+ path_params['instance_id'] = local_var_params['instance_id']
2788
+
2789
+ query_params = []
2790
+ if 'offset' in local_var_params:
2791
+ query_params.append(('offset', local_var_params['offset']))
2792
+ if 'limit' in local_var_params:
2793
+ query_params.append(('limit', local_var_params['limit']))
2794
+ if 'start_time' in local_var_params:
2795
+ query_params.append(('start_time', local_var_params['start_time']))
2796
+ if 'end_time' in local_var_params:
2797
+ query_params.append(('end_time', local_var_params['end_time']))
2798
+
2799
+ header_params = {}
2800
+ if 'x_language' in local_var_params:
2801
+ header_params['X-Language'] = local_var_params['x_language']
2802
+
2803
+ form_params = {}
2804
+
2805
+ body = None
2806
+ if isinstance(request, SdkStreamRequest):
2807
+ body = request.get_file_stream()
2808
+
2809
+ response_headers = []
2810
+
2811
+ header_params['Content-Type'] = http_utils.select_header_content_type(
2812
+ ['application/json'])
2813
+
2814
+ auth_settings = []
2815
+
2816
+ http_info["cname"] = cname
2817
+ http_info["collection_formats"] = collection_formats
2818
+ http_info["path_params"] = path_params
2819
+ http_info["query_params"] = query_params
2820
+ http_info["header_params"] = header_params
2821
+ http_info["post_params"] = form_params
2822
+ http_info["body"] = body
2823
+ http_info["response_headers"] = response_headers
2824
+
2825
+ return http_info
2826
+
2683
2827
  def list_instance_tags(self, request):
2684
2828
  """查询实例标签
2685
2829
 
@@ -3480,6 +3624,81 @@ class GaussDBforopenGaussClient(Client):
3480
3624
 
3481
3625
  return http_info
3482
3626
 
3627
+ def list_top_io_traffics(self, request):
3628
+ """查询Top IO列表
3629
+
3630
+ 查询实例数据库进程下的Top IO流量数据,返回与会话信息相关联后的结果
3631
+
3632
+ Please refer to HUAWEI cloud API Explorer for details.
3633
+
3634
+ :param request: Request instance for ListTopIoTraffics
3635
+ :type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.ListTopIoTrafficsRequest`
3636
+ :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.ListTopIoTrafficsResponse`
3637
+ """
3638
+ http_info = self._list_top_io_traffics_http_info(request)
3639
+ return self._call_api(**http_info)
3640
+
3641
+ def list_top_io_traffics_invoker(self, request):
3642
+ http_info = self._list_top_io_traffics_http_info(request)
3643
+ return SyncInvoker(self, http_info)
3644
+
3645
+ @classmethod
3646
+ def _list_top_io_traffics_http_info(cls, request):
3647
+ http_info = {
3648
+ "method": "GET",
3649
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/top-io-traffics",
3650
+ "request_type": request.__class__.__name__,
3651
+ "response_type": "ListTopIoTrafficsResponse"
3652
+ }
3653
+
3654
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3655
+
3656
+ cname = None
3657
+
3658
+ collection_formats = {}
3659
+
3660
+ path_params = {}
3661
+ if 'instance_id' in local_var_params:
3662
+ path_params['instance_id'] = local_var_params['instance_id']
3663
+
3664
+ query_params = []
3665
+ if 'node_id' in local_var_params:
3666
+ query_params.append(('node_id', local_var_params['node_id']))
3667
+ if 'component_id' in local_var_params:
3668
+ query_params.append(('component_id', local_var_params['component_id']))
3669
+ if 'top_io_num' in local_var_params:
3670
+ query_params.append(('top_io_num', local_var_params['top_io_num']))
3671
+ if 'sort_condition' in local_var_params:
3672
+ query_params.append(('sort_condition', local_var_params['sort_condition']))
3673
+
3674
+ header_params = {}
3675
+ if 'x_language' in local_var_params:
3676
+ header_params['X-Language'] = local_var_params['x_language']
3677
+
3678
+ form_params = {}
3679
+
3680
+ body = None
3681
+ if isinstance(request, SdkStreamRequest):
3682
+ body = request.get_file_stream()
3683
+
3684
+ response_headers = []
3685
+
3686
+ header_params['Content-Type'] = http_utils.select_header_content_type(
3687
+ ['application/json'])
3688
+
3689
+ auth_settings = []
3690
+
3691
+ http_info["cname"] = cname
3692
+ http_info["collection_formats"] = collection_formats
3693
+ http_info["path_params"] = path_params
3694
+ http_info["query_params"] = query_params
3695
+ http_info["header_params"] = header_params
3696
+ http_info["post_params"] = form_params
3697
+ http_info["body"] = body
3698
+ http_info["response_headers"] = response_headers
3699
+
3700
+ return http_info
3701
+
3483
3702
  def modify_eps_quota(self, request):
3484
3703
  """修改企业项目配额
3485
3704
 
@@ -4428,6 +4647,73 @@ class GaussDBforopenGaussClient(Client):
4428
4647
 
4429
4648
  return http_info
4430
4649
 
4650
+ def show_error_log_switch_status(self, request):
4651
+ """查询错误日志采集开关状态
4652
+
4653
+ 查询数据库错误日志采集的开关状态。
4654
+
4655
+ Please refer to HUAWEI cloud API Explorer for details.
4656
+
4657
+ :param request: Request instance for ShowErrorLogSwitchStatus
4658
+ :type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.ShowErrorLogSwitchStatusRequest`
4659
+ :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.ShowErrorLogSwitchStatusResponse`
4660
+ """
4661
+ http_info = self._show_error_log_switch_status_http_info(request)
4662
+ return self._call_api(**http_info)
4663
+
4664
+ def show_error_log_switch_status_invoker(self, request):
4665
+ http_info = self._show_error_log_switch_status_http_info(request)
4666
+ return SyncInvoker(self, http_info)
4667
+
4668
+ @classmethod
4669
+ def _show_error_log_switch_status_http_info(cls, request):
4670
+ http_info = {
4671
+ "method": "GET",
4672
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/error-log/switch/status",
4673
+ "request_type": request.__class__.__name__,
4674
+ "response_type": "ShowErrorLogSwitchStatusResponse"
4675
+ }
4676
+
4677
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
4678
+
4679
+ cname = None
4680
+
4681
+ collection_formats = {}
4682
+
4683
+ path_params = {}
4684
+ if 'instance_id' in local_var_params:
4685
+ path_params['instance_id'] = local_var_params['instance_id']
4686
+
4687
+ query_params = []
4688
+
4689
+ header_params = {}
4690
+ if 'x_language' in local_var_params:
4691
+ header_params['X-Language'] = local_var_params['x_language']
4692
+
4693
+ form_params = {}
4694
+
4695
+ body = None
4696
+ if isinstance(request, SdkStreamRequest):
4697
+ body = request.get_file_stream()
4698
+
4699
+ response_headers = []
4700
+
4701
+ header_params['Content-Type'] = http_utils.select_header_content_type(
4702
+ ['application/json'])
4703
+
4704
+ auth_settings = []
4705
+
4706
+ http_info["cname"] = cname
4707
+ http_info["collection_formats"] = collection_formats
4708
+ http_info["path_params"] = path_params
4709
+ http_info["query_params"] = query_params
4710
+ http_info["header_params"] = header_params
4711
+ http_info["post_params"] = form_params
4712
+ http_info["body"] = body
4713
+ http_info["response_headers"] = response_headers
4714
+
4715
+ return http_info
4716
+
4431
4717
  def show_instance_configuration(self, request):
4432
4718
  """获取指定实例的参数模板
4433
4719
 
@@ -4700,71 +4986,6 @@ class GaussDBforopenGaussClient(Client):
4700
4986
 
4701
4987
  return http_info
4702
4988
 
4703
- def show_instances_statistics(self, request):
4704
- """实例统计
4705
-
4706
- 实例统计
4707
-
4708
- Please refer to HUAWEI cloud API Explorer for details.
4709
-
4710
- :param request: Request instance for ShowInstancesStatistics
4711
- :type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.ShowInstancesStatisticsRequest`
4712
- :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.ShowInstancesStatisticsResponse`
4713
- """
4714
- http_info = self._show_instances_statistics_http_info(request)
4715
- return self._call_api(**http_info)
4716
-
4717
- def show_instances_statistics_invoker(self, request):
4718
- http_info = self._show_instances_statistics_http_info(request)
4719
- return SyncInvoker(self, http_info)
4720
-
4721
- @classmethod
4722
- def _show_instances_statistics_http_info(cls, request):
4723
- http_info = {
4724
- "method": "GET",
4725
- "resource_path": "/v3/instances-statistics",
4726
- "request_type": request.__class__.__name__,
4727
- "response_type": "ShowInstancesStatisticsResponse"
4728
- }
4729
-
4730
- local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
4731
-
4732
- cname = None
4733
-
4734
- collection_formats = {}
4735
-
4736
- path_params = {}
4737
-
4738
- query_params = []
4739
-
4740
- header_params = {}
4741
- if 'x_language' in local_var_params:
4742
- header_params['X-Language'] = local_var_params['x_language']
4743
-
4744
- form_params = {}
4745
-
4746
- body = None
4747
- if isinstance(request, SdkStreamRequest):
4748
- body = request.get_file_stream()
4749
-
4750
- response_headers = []
4751
-
4752
- header_params['Content-Type'] = http_utils.select_header_content_type(
4753
- ['application/json'])
4754
-
4755
- auth_settings = []
4756
-
4757
- http_info["cname"] = cname
4758
- http_info["collection_formats"] = collection_formats
4759
- http_info["path_params"] = path_params
4760
- http_info["query_params"] = query_params
4761
- http_info["header_params"] = header_params
4762
- http_info["post_params"] = form_params
4763
- http_info["body"] = body
4764
- http_info["response_headers"] = response_headers
4765
-
4766
- return http_info
4767
-
4768
4989
  def show_job_detail(self, request):
4769
4990
  """获取指定ID的任务信息。
4770
4991
 
@@ -59,6 +59,8 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.delete_database_request import D
59
59
  from huaweicloudsdkgaussdbforopengauss.v3.model.delete_database_response import DeleteDatabaseResponse
60
60
  from huaweicloudsdkgaussdbforopengauss.v3.model.delete_instance_request import DeleteInstanceRequest
61
61
  from huaweicloudsdkgaussdbforopengauss.v3.model.delete_instance_response import DeleteInstanceResponse
62
+ from huaweicloudsdkgaussdbforopengauss.v3.model.delete_instance_tag_request import DeleteInstanceTagRequest
63
+ from huaweicloudsdkgaussdbforopengauss.v3.model.delete_instance_tag_response import DeleteInstanceTagResponse
62
64
  from huaweicloudsdkgaussdbforopengauss.v3.model.delete_job_request import DeleteJobRequest
63
65
  from huaweicloudsdkgaussdbforopengauss.v3.model.delete_job_response import DeleteJobResponse
64
66
  from huaweicloudsdkgaussdbforopengauss.v3.model.delete_manual_backup_request import DeleteManualBackupRequest
@@ -83,9 +85,9 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.gauss_d_bfor_open_gauss_user_for
83
85
  from huaweicloudsdkgaussdbforopengauss.v3.model.gauss_d_bfor_open_gauss_user_with_privilege import GaussDBforOpenGaussUserWithPrivilege
84
86
  from huaweicloudsdkgaussdbforopengauss.v3.model.get_restore_time_response_restore_time import GetRestoreTimeResponseRestoreTime
85
87
  from huaweicloudsdkgaussdbforopengauss.v3.model.instance_info_result import InstanceInfoResult
88
+ from huaweicloudsdkgaussdbforopengauss.v3.model.instance_log_file import InstanceLogFile
86
89
  from huaweicloudsdkgaussdbforopengauss.v3.model.instances_list_result import InstancesListResult
87
90
  from huaweicloudsdkgaussdbforopengauss.v3.model.instances_result import InstancesResult
88
- from huaweicloudsdkgaussdbforopengauss.v3.model.instances_statistics_response_body_instances_statistics import InstancesStatisticsResponseBodyInstancesStatistics
89
91
  from huaweicloudsdkgaussdbforopengauss.v3.model.job_detail import JobDetail
90
92
  from huaweicloudsdkgaussdbforopengauss.v3.model.job_instance_info import JobInstanceInfo
91
93
  from huaweicloudsdkgaussdbforopengauss.v3.model.list_applicable_instances_request import ListApplicableInstancesRequest
@@ -132,6 +134,8 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.list_ha_result import ListHaResu
132
134
  from huaweicloudsdkgaussdbforopengauss.v3.model.list_history_operations_request import ListHistoryOperationsRequest
133
135
  from huaweicloudsdkgaussdbforopengauss.v3.model.list_history_operations_response import ListHistoryOperationsResponse
134
136
  from huaweicloudsdkgaussdbforopengauss.v3.model.list_history_operations_result import ListHistoryOperationsResult
137
+ from huaweicloudsdkgaussdbforopengauss.v3.model.list_instance_error_logs_request import ListInstanceErrorLogsRequest
138
+ from huaweicloudsdkgaussdbforopengauss.v3.model.list_instance_error_logs_response import ListInstanceErrorLogsResponse
135
139
  from huaweicloudsdkgaussdbforopengauss.v3.model.list_instance_response import ListInstanceResponse
136
140
  from huaweicloudsdkgaussdbforopengauss.v3.model.list_instance_result import ListInstanceResult
137
141
  from huaweicloudsdkgaussdbforopengauss.v3.model.list_instance_tags_request import ListInstanceTagsRequest
@@ -157,6 +161,8 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.list_storage_types_request impor
157
161
  from huaweicloudsdkgaussdbforopengauss.v3.model.list_storage_types_response import ListStorageTypesResponse
158
162
  from huaweicloudsdkgaussdbforopengauss.v3.model.list_tasks_request import ListTasksRequest
159
163
  from huaweicloudsdkgaussdbforopengauss.v3.model.list_tasks_response import ListTasksResponse
164
+ from huaweicloudsdkgaussdbforopengauss.v3.model.list_top_io_traffics_request import ListTopIoTrafficsRequest
165
+ from huaweicloudsdkgaussdbforopengauss.v3.model.list_top_io_traffics_response import ListTopIoTrafficsResponse
160
166
  from huaweicloudsdkgaussdbforopengauss.v3.model.list_volume import ListVolume
161
167
  from huaweicloudsdkgaussdbforopengauss.v3.model.modify_eps_quota_request import ModifyEpsQuotaRequest
162
168
  from huaweicloudsdkgaussdbforopengauss.v3.model.modify_eps_quota_request_body import ModifyEpsQuotaRequestBody
@@ -237,6 +243,8 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.show_configuration_detail_reques
237
243
  from huaweicloudsdkgaussdbforopengauss.v3.model.show_configuration_detail_response import ShowConfigurationDetailResponse
238
244
  from huaweicloudsdkgaussdbforopengauss.v3.model.show_deployment_form_request import ShowDeploymentFormRequest
239
245
  from huaweicloudsdkgaussdbforopengauss.v3.model.show_deployment_form_response import ShowDeploymentFormResponse
246
+ from huaweicloudsdkgaussdbforopengauss.v3.model.show_error_log_switch_status_request import ShowErrorLogSwitchStatusRequest
247
+ from huaweicloudsdkgaussdbforopengauss.v3.model.show_error_log_switch_status_response import ShowErrorLogSwitchStatusResponse
240
248
  from huaweicloudsdkgaussdbforopengauss.v3.model.show_instance_configuration_request import ShowInstanceConfigurationRequest
241
249
  from huaweicloudsdkgaussdbforopengauss.v3.model.show_instance_configuration_response import ShowInstanceConfigurationResponse
242
250
  from huaweicloudsdkgaussdbforopengauss.v3.model.show_instance_disk_request import ShowInstanceDiskRequest
@@ -245,8 +253,6 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.show_instance_param_group_reques
245
253
  from huaweicloudsdkgaussdbforopengauss.v3.model.show_instance_param_group_response import ShowInstanceParamGroupResponse
246
254
  from huaweicloudsdkgaussdbforopengauss.v3.model.show_instance_snapshot_request import ShowInstanceSnapshotRequest
247
255
  from huaweicloudsdkgaussdbforopengauss.v3.model.show_instance_snapshot_response import ShowInstanceSnapshotResponse
248
- from huaweicloudsdkgaussdbforopengauss.v3.model.show_instances_statistics_request import ShowInstancesStatisticsRequest
249
- from huaweicloudsdkgaussdbforopengauss.v3.model.show_instances_statistics_response import ShowInstancesStatisticsResponse
250
256
  from huaweicloudsdkgaussdbforopengauss.v3.model.show_job_detail_request import ShowJobDetailRequest
251
257
  from huaweicloudsdkgaussdbforopengauss.v3.model.show_job_detail_response import ShowJobDetailResponse
252
258
  from huaweicloudsdkgaussdbforopengauss.v3.model.show_project_quotas_request import ShowProjectQuotasRequest
@@ -275,6 +281,7 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.tag_result import TagResult
275
281
  from huaweicloudsdkgaussdbforopengauss.v3.model.tags_option import TagsOption
276
282
  from huaweicloudsdkgaussdbforopengauss.v3.model.tags_result import TagsResult
277
283
  from huaweicloudsdkgaussdbforopengauss.v3.model.task_detail_result import TaskDetailResult
284
+ from huaweicloudsdkgaussdbforopengauss.v3.model.top_io_info import TopIoInfo
278
285
  from huaweicloudsdkgaussdbforopengauss.v3.model.update_instance_configuration_request import UpdateInstanceConfigurationRequest
279
286
  from huaweicloudsdkgaussdbforopengauss.v3.model.update_instance_configuration_response import UpdateInstanceConfigurationResponse
280
287
  from huaweicloudsdkgaussdbforopengauss.v3.model.update_instance_name_request import UpdateInstanceNameRequest
@@ -0,0 +1,171 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class DeleteInstanceTagRequest:
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
+ 'key': 'str'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'x_language': 'X-Language',
27
+ 'instance_id': 'instance_id',
28
+ 'key': 'key'
29
+ }
30
+
31
+ def __init__(self, x_language=None, instance_id=None, key=None):
32
+ """DeleteInstanceTagRequest
33
+
34
+ The model defined in huaweicloud sdk
35
+
36
+ :param x_language: 语言
37
+ :type x_language: str
38
+ :param instance_id: 实例ID,严格匹配UUID规则。
39
+ :type instance_id: str
40
+ :param key: 标签键
41
+ :type key: str
42
+ """
43
+
44
+
45
+
46
+ self._x_language = None
47
+ self._instance_id = None
48
+ self._key = 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
+ self.key = key
55
+
56
+ @property
57
+ def x_language(self):
58
+ """Gets the x_language of this DeleteInstanceTagRequest.
59
+
60
+ 语言
61
+
62
+ :return: The x_language of this DeleteInstanceTagRequest.
63
+ :rtype: str
64
+ """
65
+ return self._x_language
66
+
67
+ @x_language.setter
68
+ def x_language(self, x_language):
69
+ """Sets the x_language of this DeleteInstanceTagRequest.
70
+
71
+ 语言
72
+
73
+ :param x_language: The x_language of this DeleteInstanceTagRequest.
74
+ :type x_language: str
75
+ """
76
+ self._x_language = x_language
77
+
78
+ @property
79
+ def instance_id(self):
80
+ """Gets the instance_id of this DeleteInstanceTagRequest.
81
+
82
+ 实例ID,严格匹配UUID规则。
83
+
84
+ :return: The instance_id of this DeleteInstanceTagRequest.
85
+ :rtype: str
86
+ """
87
+ return self._instance_id
88
+
89
+ @instance_id.setter
90
+ def instance_id(self, instance_id):
91
+ """Sets the instance_id of this DeleteInstanceTagRequest.
92
+
93
+ 实例ID,严格匹配UUID规则。
94
+
95
+ :param instance_id: The instance_id of this DeleteInstanceTagRequest.
96
+ :type instance_id: str
97
+ """
98
+ self._instance_id = instance_id
99
+
100
+ @property
101
+ def key(self):
102
+ """Gets the key of this DeleteInstanceTagRequest.
103
+
104
+ 标签键
105
+
106
+ :return: The key of this DeleteInstanceTagRequest.
107
+ :rtype: str
108
+ """
109
+ return self._key
110
+
111
+ @key.setter
112
+ def key(self, key):
113
+ """Sets the key of this DeleteInstanceTagRequest.
114
+
115
+ 标签键
116
+
117
+ :param key: The key of this DeleteInstanceTagRequest.
118
+ :type key: str
119
+ """
120
+ self._key = key
121
+
122
+ def to_dict(self):
123
+ """Returns the model properties as a dict"""
124
+ result = {}
125
+
126
+ for attr, _ in six.iteritems(self.openapi_types):
127
+ value = getattr(self, attr)
128
+ if isinstance(value, list):
129
+ result[attr] = list(map(
130
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
131
+ value
132
+ ))
133
+ elif hasattr(value, "to_dict"):
134
+ result[attr] = value.to_dict()
135
+ elif isinstance(value, dict):
136
+ result[attr] = dict(map(
137
+ lambda item: (item[0], item[1].to_dict())
138
+ if hasattr(item[1], "to_dict") else item,
139
+ value.items()
140
+ ))
141
+ else:
142
+ if attr in self.sensitive_list:
143
+ result[attr] = "****"
144
+ else:
145
+ result[attr] = value
146
+
147
+ return result
148
+
149
+ def to_str(self):
150
+ """Returns the string representation of the model"""
151
+ import simplejson as json
152
+ if six.PY2:
153
+ import sys
154
+ reload(sys)
155
+ sys.setdefaultencoding("utf-8")
156
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
157
+
158
+ def __repr__(self):
159
+ """For `print`"""
160
+ return self.to_str()
161
+
162
+ def __eq__(self, other):
163
+ """Returns true if both objects are equal"""
164
+ if not isinstance(other, DeleteInstanceTagRequest):
165
+ return False
166
+
167
+ return self.__dict__ == other.__dict__
168
+
169
+ def __ne__(self, other):
170
+ """Returns true if both objects are not equal"""
171
+ return not self == other