huaweicloudsdkgaussdb 3.1.103__py2.py3-none-any.whl → 3.1.105__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 (23) hide show
  1. huaweicloudsdkgaussdb/v3/__init__.py +14 -0
  2. huaweicloudsdkgaussdb/v3/gaussdb_async_client.py +347 -0
  3. huaweicloudsdkgaussdb/v3/gaussdb_client.py +347 -0
  4. huaweicloudsdkgaussdb/v3/model/__init__.py +14 -0
  5. huaweicloudsdkgaussdb/v3/model/check_starrocks_params_request.py +140 -0
  6. huaweicloudsdkgaussdb/v3/model/check_starrocks_params_request_body.py +114 -0
  7. huaweicloudsdkgaussdb/v3/model/check_starrocks_params_response.py +116 -0
  8. huaweicloudsdkgaussdb/v3/model/resize_star_rocks_flavor_request.py +168 -0
  9. huaweicloudsdkgaussdb/v3/model/resize_star_rocks_flavor_response.py +116 -0
  10. huaweicloudsdkgaussdb/v3/model/show_starrocks_params_request.py +229 -0
  11. huaweicloudsdkgaussdb/v3/model/show_starrocks_params_response.py +170 -0
  12. huaweicloudsdkgaussdb/v3/model/sr_flavor_resize_req.py +144 -0
  13. huaweicloudsdkgaussdb/v3/model/sync_star_rocks_users_request.py +168 -0
  14. huaweicloudsdkgaussdb/v3/model/sync_star_rocks_users_response.py +116 -0
  15. huaweicloudsdkgaussdb/v3/model/update_param_info.py +142 -0
  16. huaweicloudsdkgaussdb/v3/model/update_starrocks_params_request.py +168 -0
  17. huaweicloudsdkgaussdb/v3/model/update_starrocks_params_response.py +145 -0
  18. huaweicloudsdkgaussdb/v3/model/user_sync_req.py +114 -0
  19. {huaweicloudsdkgaussdb-3.1.103.dist-info → huaweicloudsdkgaussdb-3.1.105.dist-info}/METADATA +2 -2
  20. {huaweicloudsdkgaussdb-3.1.103.dist-info → huaweicloudsdkgaussdb-3.1.105.dist-info}/RECORD +23 -9
  21. {huaweicloudsdkgaussdb-3.1.103.dist-info → huaweicloudsdkgaussdb-3.1.105.dist-info}/LICENSE +0 -0
  22. {huaweicloudsdkgaussdb-3.1.103.dist-info → huaweicloudsdkgaussdb-3.1.105.dist-info}/WHEEL +0 -0
  23. {huaweicloudsdkgaussdb-3.1.103.dist-info → huaweicloudsdkgaussdb-3.1.105.dist-info}/top_level.txt +0 -0
@@ -9713,6 +9713,73 @@ class GaussDBClient(Client):
9713
9713
 
9714
9714
  return http_info
9715
9715
 
9716
+ def check_starrocks_params(self, request):
9717
+ """参数对比
9718
+
9719
+ 对比实例参数和默认模板的差异
9720
+
9721
+ Please refer to HUAWEI cloud API Explorer for details.
9722
+
9723
+ :param request: Request instance for CheckStarrocksParams
9724
+ :type request: :class:`huaweicloudsdkgaussdb.v3.CheckStarrocksParamsRequest`
9725
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.CheckStarrocksParamsResponse`
9726
+ """
9727
+ http_info = self._check_starrocks_params_http_info(request)
9728
+ return self._call_api(**http_info)
9729
+
9730
+ def check_starrocks_params_invoker(self, request):
9731
+ http_info = self._check_starrocks_params_http_info(request)
9732
+ return SyncInvoker(self, http_info)
9733
+
9734
+ @classmethod
9735
+ def _check_starrocks_params_http_info(cls, request):
9736
+ http_info = {
9737
+ "method": "POST",
9738
+ "resource_path": "/v3/{project_id}/configurations/starrocks/comparison",
9739
+ "request_type": request.__class__.__name__,
9740
+ "response_type": "CheckStarrocksParamsResponse"
9741
+ }
9742
+
9743
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
9744
+
9745
+ cname = None
9746
+
9747
+ collection_formats = {}
9748
+
9749
+ path_params = {}
9750
+
9751
+ query_params = []
9752
+
9753
+ header_params = {}
9754
+ if 'x_language' in local_var_params:
9755
+ header_params['X-Language'] = local_var_params['x_language']
9756
+
9757
+ form_params = {}
9758
+
9759
+ body = None
9760
+ if 'body' in local_var_params:
9761
+ body = local_var_params['body']
9762
+ if isinstance(request, SdkStreamRequest):
9763
+ body = request.get_file_stream()
9764
+
9765
+ response_headers = []
9766
+
9767
+ header_params['Content-Type'] = http_utils.select_header_content_type(
9768
+ ['application/json;charset=UTF-8'])
9769
+
9770
+ auth_settings = []
9771
+
9772
+ http_info["cname"] = cname
9773
+ http_info["collection_formats"] = collection_formats
9774
+ http_info["path_params"] = path_params
9775
+ http_info["query_params"] = query_params
9776
+ http_info["header_params"] = header_params
9777
+ http_info["post_params"] = form_params
9778
+ http_info["body"] = body
9779
+ http_info["response_headers"] = response_headers
9780
+
9781
+ return http_info
9782
+
9716
9783
  def check_table_config(self, request):
9717
9784
  """HTAP数据同步表配置校验
9718
9785
 
@@ -12061,6 +12128,75 @@ class GaussDBClient(Client):
12061
12128
 
12062
12129
  return http_info
12063
12130
 
12131
+ def resize_star_rocks_flavor(self, request):
12132
+ """StarRocks实例规格变更
12133
+
12134
+ StarRocks实例规格变更。
12135
+
12136
+ Please refer to HUAWEI cloud API Explorer for details.
12137
+
12138
+ :param request: Request instance for ResizeStarRocksFlavor
12139
+ :type request: :class:`huaweicloudsdkgaussdb.v3.ResizeStarRocksFlavorRequest`
12140
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ResizeStarRocksFlavorResponse`
12141
+ """
12142
+ http_info = self._resize_star_rocks_flavor_http_info(request)
12143
+ return self._call_api(**http_info)
12144
+
12145
+ def resize_star_rocks_flavor_invoker(self, request):
12146
+ http_info = self._resize_star_rocks_flavor_http_info(request)
12147
+ return SyncInvoker(self, http_info)
12148
+
12149
+ @classmethod
12150
+ def _resize_star_rocks_flavor_http_info(cls, request):
12151
+ http_info = {
12152
+ "method": "POST",
12153
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/starrocks/resize-flavor",
12154
+ "request_type": request.__class__.__name__,
12155
+ "response_type": "ResizeStarRocksFlavorResponse"
12156
+ }
12157
+
12158
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
12159
+
12160
+ cname = None
12161
+
12162
+ collection_formats = {}
12163
+
12164
+ path_params = {}
12165
+ if 'instance_id' in local_var_params:
12166
+ path_params['instance_id'] = local_var_params['instance_id']
12167
+
12168
+ query_params = []
12169
+
12170
+ header_params = {}
12171
+ if 'x_language' in local_var_params:
12172
+ header_params['X-Language'] = local_var_params['x_language']
12173
+
12174
+ form_params = {}
12175
+
12176
+ body = None
12177
+ if 'body' in local_var_params:
12178
+ body = local_var_params['body']
12179
+ if isinstance(request, SdkStreamRequest):
12180
+ body = request.get_file_stream()
12181
+
12182
+ response_headers = []
12183
+
12184
+ header_params['Content-Type'] = http_utils.select_header_content_type(
12185
+ ['application/json;charset=UTF-8'])
12186
+
12187
+ auth_settings = []
12188
+
12189
+ http_info["cname"] = cname
12190
+ http_info["collection_formats"] = collection_formats
12191
+ http_info["path_params"] = path_params
12192
+ http_info["query_params"] = query_params
12193
+ http_info["header_params"] = header_params
12194
+ http_info["post_params"] = form_params
12195
+ http_info["body"] = body
12196
+ http_info["response_headers"] = response_headers
12197
+
12198
+ return http_info
12199
+
12064
12200
  def restart_starrocks_instance(self, request):
12065
12201
  """重启StarRocks实例
12066
12202
 
@@ -12623,6 +12759,148 @@ class GaussDBClient(Client):
12623
12759
 
12624
12760
  return http_info
12625
12761
 
12762
+ def show_starrocks_params(self, request):
12763
+ """查询参数
12764
+
12765
+ 按节点类型查询参数
12766
+
12767
+ Please refer to HUAWEI cloud API Explorer for details.
12768
+
12769
+ :param request: Request instance for ShowStarrocksParams
12770
+ :type request: :class:`huaweicloudsdkgaussdb.v3.ShowStarrocksParamsRequest`
12771
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ShowStarrocksParamsResponse`
12772
+ """
12773
+ http_info = self._show_starrocks_params_http_info(request)
12774
+ return self._call_api(**http_info)
12775
+
12776
+ def show_starrocks_params_invoker(self, request):
12777
+ http_info = self._show_starrocks_params_http_info(request)
12778
+ return SyncInvoker(self, http_info)
12779
+
12780
+ @classmethod
12781
+ def _show_starrocks_params_http_info(cls, request):
12782
+ http_info = {
12783
+ "method": "GET",
12784
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/starrocks/configurations",
12785
+ "request_type": request.__class__.__name__,
12786
+ "response_type": "ShowStarrocksParamsResponse"
12787
+ }
12788
+
12789
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
12790
+
12791
+ cname = None
12792
+
12793
+ collection_formats = {}
12794
+
12795
+ path_params = {}
12796
+ if 'instance_id' in local_var_params:
12797
+ path_params['instance_id'] = local_var_params['instance_id']
12798
+
12799
+ query_params = []
12800
+ if 'node_type' in local_var_params:
12801
+ query_params.append(('node_type', local_var_params['node_type']))
12802
+ if 'offset' in local_var_params:
12803
+ query_params.append(('offset', local_var_params['offset']))
12804
+ if 'limit' in local_var_params:
12805
+ query_params.append(('limit', local_var_params['limit']))
12806
+
12807
+ header_params = {}
12808
+ if 'x_language' in local_var_params:
12809
+ header_params['X-Language'] = local_var_params['x_language']
12810
+
12811
+ form_params = {}
12812
+
12813
+ body = None
12814
+ if isinstance(request, SdkStreamRequest):
12815
+ body = request.get_file_stream()
12816
+
12817
+ response_headers = []
12818
+
12819
+ header_params['Content-Type'] = http_utils.select_header_content_type(
12820
+ ['application/json'])
12821
+
12822
+ auth_settings = []
12823
+
12824
+ http_info["cname"] = cname
12825
+ http_info["collection_formats"] = collection_formats
12826
+ http_info["path_params"] = path_params
12827
+ http_info["query_params"] = query_params
12828
+ http_info["header_params"] = header_params
12829
+ http_info["post_params"] = form_params
12830
+ http_info["body"] = body
12831
+ http_info["response_headers"] = response_headers
12832
+
12833
+ return http_info
12834
+
12835
+ def sync_star_rocks_users(self, request):
12836
+ """StarRocks实例开启行列分流
12837
+
12838
+ StarRocks实例开启行列分流。
12839
+
12840
+ Please refer to HUAWEI cloud API Explorer for details.
12841
+
12842
+ :param request: Request instance for SyncStarRocksUsers
12843
+ :type request: :class:`huaweicloudsdkgaussdb.v3.SyncStarRocksUsersRequest`
12844
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.SyncStarRocksUsersResponse`
12845
+ """
12846
+ http_info = self._sync_star_rocks_users_http_info(request)
12847
+ return self._call_api(**http_info)
12848
+
12849
+ def sync_star_rocks_users_invoker(self, request):
12850
+ http_info = self._sync_star_rocks_users_http_info(request)
12851
+ return SyncInvoker(self, http_info)
12852
+
12853
+ @classmethod
12854
+ def _sync_star_rocks_users_http_info(cls, request):
12855
+ http_info = {
12856
+ "method": "POST",
12857
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/starrocks/users/sync",
12858
+ "request_type": request.__class__.__name__,
12859
+ "response_type": "SyncStarRocksUsersResponse"
12860
+ }
12861
+
12862
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
12863
+
12864
+ cname = None
12865
+
12866
+ collection_formats = {}
12867
+
12868
+ path_params = {}
12869
+ if 'instance_id' in local_var_params:
12870
+ path_params['instance_id'] = local_var_params['instance_id']
12871
+
12872
+ query_params = []
12873
+
12874
+ header_params = {}
12875
+ if 'x_language' in local_var_params:
12876
+ header_params['X-Language'] = local_var_params['x_language']
12877
+
12878
+ form_params = {}
12879
+
12880
+ body = None
12881
+ if 'body' in local_var_params:
12882
+ body = local_var_params['body']
12883
+ if isinstance(request, SdkStreamRequest):
12884
+ body = request.get_file_stream()
12885
+
12886
+ response_headers = []
12887
+
12888
+ header_params['Content-Type'] = http_utils.select_header_content_type(
12889
+ ['application/json;charset=UTF-8'])
12890
+
12891
+ auth_settings = []
12892
+
12893
+ http_info["cname"] = cname
12894
+ http_info["collection_formats"] = collection_formats
12895
+ http_info["path_params"] = path_params
12896
+ http_info["query_params"] = query_params
12897
+ http_info["header_params"] = header_params
12898
+ http_info["post_params"] = form_params
12899
+ http_info["body"] = body
12900
+ http_info["response_headers"] = response_headers
12901
+
12902
+ return http_info
12903
+
12626
12904
  def update_click_house_data_base_config(self, request):
12627
12905
  """修改数据同步
12628
12906
 
@@ -13104,6 +13382,75 @@ class GaussDBClient(Client):
13104
13382
 
13105
13383
  return http_info
13106
13384
 
13385
+ def update_starrocks_params(self, request):
13386
+ """修改参数
13387
+
13388
+ 按节点类型修改节点参数
13389
+
13390
+ Please refer to HUAWEI cloud API Explorer for details.
13391
+
13392
+ :param request: Request instance for UpdateStarrocksParams
13393
+ :type request: :class:`huaweicloudsdkgaussdb.v3.UpdateStarrocksParamsRequest`
13394
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.UpdateStarrocksParamsResponse`
13395
+ """
13396
+ http_info = self._update_starrocks_params_http_info(request)
13397
+ return self._call_api(**http_info)
13398
+
13399
+ def update_starrocks_params_invoker(self, request):
13400
+ http_info = self._update_starrocks_params_http_info(request)
13401
+ return SyncInvoker(self, http_info)
13402
+
13403
+ @classmethod
13404
+ def _update_starrocks_params_http_info(cls, request):
13405
+ http_info = {
13406
+ "method": "PUT",
13407
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/starrocks/configurations",
13408
+ "request_type": request.__class__.__name__,
13409
+ "response_type": "UpdateStarrocksParamsResponse"
13410
+ }
13411
+
13412
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
13413
+
13414
+ cname = None
13415
+
13416
+ collection_formats = {}
13417
+
13418
+ path_params = {}
13419
+ if 'instance_id' in local_var_params:
13420
+ path_params['instance_id'] = local_var_params['instance_id']
13421
+
13422
+ query_params = []
13423
+
13424
+ header_params = {}
13425
+ if 'x_language' in local_var_params:
13426
+ header_params['X-Language'] = local_var_params['x_language']
13427
+
13428
+ form_params = {}
13429
+
13430
+ body = None
13431
+ if 'body' in local_var_params:
13432
+ body = local_var_params['body']
13433
+ if isinstance(request, SdkStreamRequest):
13434
+ body = request.get_file_stream()
13435
+
13436
+ response_headers = []
13437
+
13438
+ header_params['Content-Type'] = http_utils.select_header_content_type(
13439
+ ['application/json;charset=UTF-8'])
13440
+
13441
+ auth_settings = []
13442
+
13443
+ http_info["cname"] = cname
13444
+ http_info["collection_formats"] = collection_formats
13445
+ http_info["path_params"] = path_params
13446
+ http_info["query_params"] = query_params
13447
+ http_info["header_params"] = header_params
13448
+ http_info["post_params"] = form_params
13449
+ http_info["body"] = body
13450
+ http_info["response_headers"] = response_headers
13451
+
13452
+ return http_info
13453
+
13107
13454
  def delete_sql_filter_rule(self, request):
13108
13455
  """删除SQL限流规则
13109
13456
 
@@ -61,6 +61,9 @@ from huaweicloudsdkgaussdb.v3.model.check_resource_request_body import CheckReso
61
61
  from huaweicloudsdkgaussdb.v3.model.check_resource_response import CheckResourceResponse
62
62
  from huaweicloudsdkgaussdb.v3.model.check_star_rocks_resource_request import CheckStarRocksResourceRequest
63
63
  from huaweicloudsdkgaussdb.v3.model.check_star_rocks_resource_response import CheckStarRocksResourceResponse
64
+ from huaweicloudsdkgaussdb.v3.model.check_starrocks_params_request import CheckStarrocksParamsRequest
65
+ from huaweicloudsdkgaussdb.v3.model.check_starrocks_params_request_body import CheckStarrocksParamsRequestBody
66
+ from huaweicloudsdkgaussdb.v3.model.check_starrocks_params_response import CheckStarrocksParamsResponse
64
67
  from huaweicloudsdkgaussdb.v3.model.check_table_config_request import CheckTableConfigRequest
65
68
  from huaweicloudsdkgaussdb.v3.model.check_table_config_response import CheckTableConfigResponse
66
69
  from huaweicloudsdkgaussdb.v3.model.click_house_database_user_info import ClickHouseDatabaseUserInfo
@@ -430,6 +433,8 @@ from huaweicloudsdkgaussdb.v3.model.resize_click_house_flavor_request import Res
430
433
  from huaweicloudsdkgaussdb.v3.model.resize_click_house_flavor_response import ResizeClickHouseFlavorResponse
431
434
  from huaweicloudsdkgaussdb.v3.model.resize_click_house_instance_request import ResizeClickHouseInstanceRequest
432
435
  from huaweicloudsdkgaussdb.v3.model.resize_click_house_instance_response import ResizeClickHouseInstanceResponse
436
+ from huaweicloudsdkgaussdb.v3.model.resize_star_rocks_flavor_request import ResizeStarRocksFlavorRequest
437
+ from huaweicloudsdkgaussdb.v3.model.resize_star_rocks_flavor_response import ResizeStarRocksFlavorResponse
433
438
  from huaweicloudsdkgaussdb.v3.model.resource import Resource
434
439
  from huaweicloudsdkgaussdb.v3.model.resource_check import ResourceCheck
435
440
  from huaweicloudsdkgaussdb.v3.model.resource_check_resource import ResourceCheckResource
@@ -544,6 +549,8 @@ from huaweicloudsdkgaussdb.v3.model.show_sql_filter_rule_response import ShowSql
544
549
  from huaweicloudsdkgaussdb.v3.model.show_star_rocks_database_user_request import ShowStarRocksDatabaseUserRequest
545
550
  from huaweicloudsdkgaussdb.v3.model.show_star_rocks_database_user_response import ShowStarRocksDatabaseUserResponse
546
551
  from huaweicloudsdkgaussdb.v3.model.show_star_rocks_database_users_user_details import ShowStarRocksDatabaseUsersUserDetails
552
+ from huaweicloudsdkgaussdb.v3.model.show_starrocks_params_request import ShowStarrocksParamsRequest
553
+ from huaweicloudsdkgaussdb.v3.model.show_starrocks_params_response import ShowStarrocksParamsResponse
547
554
  from huaweicloudsdkgaussdb.v3.model.shrink_gauss_my_sql_proxy_request import ShrinkGaussMySqlProxyRequest
548
555
  from huaweicloudsdkgaussdb.v3.model.shrink_gauss_my_sql_proxy_request_body import ShrinkGaussMySqlProxyRequestBody
549
556
  from huaweicloudsdkgaussdb.v3.model.shrink_gauss_my_sql_proxy_response import ShrinkGaussMySqlProxyResponse
@@ -556,6 +563,7 @@ from huaweicloudsdkgaussdb.v3.model.sr_create_instance_rsp_instance_pay_info imp
556
563
  from huaweicloudsdkgaussdb.v3.model.sr_create_instance_rsp_instance_tags_info import SrCreateInstanceRspInstanceTagsInfo
557
564
  from huaweicloudsdkgaussdb.v3.model.sr_create_instance_rsp_instance_tags_info_sys_tags import SrCreateInstanceRspInstanceTagsInfoSysTags
558
565
  from huaweicloudsdkgaussdb.v3.model.sr_data_stores_datastores import SrDataStoresDatastores
566
+ from huaweicloudsdkgaussdb.v3.model.sr_flavor_resize_req import SrFlavorResizeReq
559
567
  from huaweicloudsdkgaussdb.v3.model.star_rocks_create_request import StarRocksCreateRequest
560
568
  from huaweicloudsdkgaussdb.v3.model.star_rocks_create_request_be_volume import StarRocksCreateRequestBeVolume
561
569
  from huaweicloudsdkgaussdb.v3.model.star_rocks_create_request_engine import StarRocksCreateRequestEngine
@@ -588,6 +596,8 @@ from huaweicloudsdkgaussdb.v3.model.switch_gauss_my_sql_proxy_ssl_request import
588
596
  from huaweicloudsdkgaussdb.v3.model.switch_gauss_my_sql_proxy_ssl_response import SwitchGaussMySqlProxySslResponse
589
597
  from huaweicloudsdkgaussdb.v3.model.switch_proxy_ssl_request import SwitchProxySSLRequest
590
598
  from huaweicloudsdkgaussdb.v3.model.switch_ssl_request import SwitchSSLRequest
599
+ from huaweicloudsdkgaussdb.v3.model.sync_star_rocks_users_request import SyncStarRocksUsersRequest
600
+ from huaweicloudsdkgaussdb.v3.model.sync_star_rocks_users_response import SyncStarRocksUsersResponse
591
601
  from huaweicloudsdkgaussdb.v3.model.table_config_check_request_v3 import TableConfigCheckRequestV3
592
602
  from huaweicloudsdkgaussdb.v3.model.table_config_check_result import TableConfigCheckResult
593
603
  from huaweicloudsdkgaussdb.v3.model.table_repl_config import TableReplConfig
@@ -657,6 +667,7 @@ from huaweicloudsdkgaussdb.v3.model.update_instance_monitor_response import Upda
657
667
  from huaweicloudsdkgaussdb.v3.model.update_new_node_auto_add_switch_request import UpdateNewNodeAutoAddSwitchRequest
658
668
  from huaweicloudsdkgaussdb.v3.model.update_new_node_auto_add_switch_request_body import UpdateNewNodeAutoAddSwitchRequestBody
659
669
  from huaweicloudsdkgaussdb.v3.model.update_new_node_auto_add_switch_response import UpdateNewNodeAutoAddSwitchResponse
670
+ from huaweicloudsdkgaussdb.v3.model.update_param_info import UpdateParamInfo
660
671
  from huaweicloudsdkgaussdb.v3.model.update_proxy_configuration_item import UpdateProxyConfigurationItem
661
672
  from huaweicloudsdkgaussdb.v3.model.update_proxy_connection_pool_type_request import UpdateProxyConnectionPoolTypeRequest
662
673
  from huaweicloudsdkgaussdb.v3.model.update_proxy_connection_pool_type_response import UpdateProxyConnectionPoolTypeResponse
@@ -682,6 +693,8 @@ from huaweicloudsdkgaussdb.v3.model.update_star_rocks_database_user_password_req
682
693
  from huaweicloudsdkgaussdb.v3.model.update_star_rocks_database_user_password_response import UpdateStarRocksDatabaseUserPasswordResponse
683
694
  from huaweicloudsdkgaussdb.v3.model.update_star_rocks_database_user_permission_request import UpdateStarRocksDatabaseUserPermissionRequest
684
695
  from huaweicloudsdkgaussdb.v3.model.update_star_rocks_database_user_permission_response import UpdateStarRocksDatabaseUserPermissionResponse
696
+ from huaweicloudsdkgaussdb.v3.model.update_starrocks_params_request import UpdateStarrocksParamsRequest
697
+ from huaweicloudsdkgaussdb.v3.model.update_starrocks_params_response import UpdateStarrocksParamsResponse
685
698
  from huaweicloudsdkgaussdb.v3.model.update_transaction_split_status_request import UpdateTransactionSplitStatusRequest
686
699
  from huaweicloudsdkgaussdb.v3.model.update_transaction_split_status_response import UpdateTransactionSplitStatusResponse
687
700
  from huaweicloudsdkgaussdb.v3.model.upgrade_database_request import UpgradeDatabaseRequest
@@ -689,3 +702,4 @@ from huaweicloudsdkgaussdb.v3.model.upgrade_gauss_my_sql_instance_database_reque
689
702
  from huaweicloudsdkgaussdb.v3.model.upgrade_gauss_my_sql_instance_database_response import UpgradeGaussMySqlInstanceDatabaseResponse
690
703
  from huaweicloudsdkgaussdb.v3.model.upgrade_proxy_version_request import UpgradeProxyVersionRequest
691
704
  from huaweicloudsdkgaussdb.v3.model.upgrade_proxy_version_response import UpgradeProxyVersionResponse
705
+ from huaweicloudsdkgaussdb.v3.model.user_sync_req import UserSyncReq
@@ -0,0 +1,140 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class CheckStarrocksParamsRequest:
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
+ 'body': 'CheckStarrocksParamsRequestBody'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'x_language': 'X-Language',
26
+ 'body': 'body'
27
+ }
28
+
29
+ def __init__(self, x_language=None, body=None):
30
+ """CheckStarrocksParamsRequest
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param x_language: 请求语言类型。默认en-us。 取值范围: - en-us - zh-cn
35
+ :type x_language: str
36
+ :param body: Body of the CheckStarrocksParamsRequest
37
+ :type body: :class:`huaweicloudsdkgaussdb.v3.CheckStarrocksParamsRequestBody`
38
+ """
39
+
40
+
41
+
42
+ self._x_language = None
43
+ self._body = None
44
+ self.discriminator = None
45
+
46
+ if x_language is not None:
47
+ self.x_language = x_language
48
+ if body is not None:
49
+ self.body = body
50
+
51
+ @property
52
+ def x_language(self):
53
+ """Gets the x_language of this CheckStarrocksParamsRequest.
54
+
55
+ 请求语言类型。默认en-us。 取值范围: - en-us - zh-cn
56
+
57
+ :return: The x_language of this CheckStarrocksParamsRequest.
58
+ :rtype: str
59
+ """
60
+ return self._x_language
61
+
62
+ @x_language.setter
63
+ def x_language(self, x_language):
64
+ """Sets the x_language of this CheckStarrocksParamsRequest.
65
+
66
+ 请求语言类型。默认en-us。 取值范围: - en-us - zh-cn
67
+
68
+ :param x_language: The x_language of this CheckStarrocksParamsRequest.
69
+ :type x_language: str
70
+ """
71
+ self._x_language = x_language
72
+
73
+ @property
74
+ def body(self):
75
+ """Gets the body of this CheckStarrocksParamsRequest.
76
+
77
+ :return: The body of this CheckStarrocksParamsRequest.
78
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.CheckStarrocksParamsRequestBody`
79
+ """
80
+ return self._body
81
+
82
+ @body.setter
83
+ def body(self, body):
84
+ """Sets the body of this CheckStarrocksParamsRequest.
85
+
86
+ :param body: The body of this CheckStarrocksParamsRequest.
87
+ :type body: :class:`huaweicloudsdkgaussdb.v3.CheckStarrocksParamsRequestBody`
88
+ """
89
+ self._body = body
90
+
91
+ def to_dict(self):
92
+ """Returns the model properties as a dict"""
93
+ result = {}
94
+
95
+ for attr, _ in six.iteritems(self.openapi_types):
96
+ value = getattr(self, attr)
97
+ if isinstance(value, list):
98
+ result[attr] = list(map(
99
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
100
+ value
101
+ ))
102
+ elif hasattr(value, "to_dict"):
103
+ result[attr] = value.to_dict()
104
+ elif isinstance(value, dict):
105
+ result[attr] = dict(map(
106
+ lambda item: (item[0], item[1].to_dict())
107
+ if hasattr(item[1], "to_dict") else item,
108
+ value.items()
109
+ ))
110
+ else:
111
+ if attr in self.sensitive_list:
112
+ result[attr] = "****"
113
+ else:
114
+ result[attr] = value
115
+
116
+ return result
117
+
118
+ def to_str(self):
119
+ """Returns the string representation of the model"""
120
+ import simplejson as json
121
+ if six.PY2:
122
+ import sys
123
+ reload(sys)
124
+ sys.setdefaultencoding("utf-8")
125
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
126
+
127
+ def __repr__(self):
128
+ """For `print`"""
129
+ return self.to_str()
130
+
131
+ def __eq__(self, other):
132
+ """Returns true if both objects are equal"""
133
+ if not isinstance(other, CheckStarrocksParamsRequest):
134
+ return False
135
+
136
+ return self.__dict__ == other.__dict__
137
+
138
+ def __ne__(self, other):
139
+ """Returns true if both objects are not equal"""
140
+ return not self == other
@@ -0,0 +1,114 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class CheckStarrocksParamsRequestBody:
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
+ 'source_configuration_id': 'str'
21
+ }
22
+
23
+ attribute_map = {
24
+ 'source_configuration_id': 'source_configuration_id'
25
+ }
26
+
27
+ def __init__(self, source_configuration_id=None):
28
+ """CheckStarrocksParamsRequestBody
29
+
30
+ The model defined in huaweicloud sdk
31
+
32
+ :param source_configuration_id: 需要进行比较的源参数模板ID。通过ListStarrocksInstanceInfo接口获得。
33
+ :type source_configuration_id: str
34
+ """
35
+
36
+
37
+
38
+ self._source_configuration_id = None
39
+ self.discriminator = None
40
+
41
+ self.source_configuration_id = source_configuration_id
42
+
43
+ @property
44
+ def source_configuration_id(self):
45
+ """Gets the source_configuration_id of this CheckStarrocksParamsRequestBody.
46
+
47
+ 需要进行比较的源参数模板ID。通过ListStarrocksInstanceInfo接口获得。
48
+
49
+ :return: The source_configuration_id of this CheckStarrocksParamsRequestBody.
50
+ :rtype: str
51
+ """
52
+ return self._source_configuration_id
53
+
54
+ @source_configuration_id.setter
55
+ def source_configuration_id(self, source_configuration_id):
56
+ """Sets the source_configuration_id of this CheckStarrocksParamsRequestBody.
57
+
58
+ 需要进行比较的源参数模板ID。通过ListStarrocksInstanceInfo接口获得。
59
+
60
+ :param source_configuration_id: The source_configuration_id of this CheckStarrocksParamsRequestBody.
61
+ :type source_configuration_id: str
62
+ """
63
+ self._source_configuration_id = source_configuration_id
64
+
65
+ def to_dict(self):
66
+ """Returns the model properties as a dict"""
67
+ result = {}
68
+
69
+ for attr, _ in six.iteritems(self.openapi_types):
70
+ value = getattr(self, attr)
71
+ if isinstance(value, list):
72
+ result[attr] = list(map(
73
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
74
+ value
75
+ ))
76
+ elif hasattr(value, "to_dict"):
77
+ result[attr] = value.to_dict()
78
+ elif isinstance(value, dict):
79
+ result[attr] = dict(map(
80
+ lambda item: (item[0], item[1].to_dict())
81
+ if hasattr(item[1], "to_dict") else item,
82
+ value.items()
83
+ ))
84
+ else:
85
+ if attr in self.sensitive_list:
86
+ result[attr] = "****"
87
+ else:
88
+ result[attr] = value
89
+
90
+ return result
91
+
92
+ def to_str(self):
93
+ """Returns the string representation of the model"""
94
+ import simplejson as json
95
+ if six.PY2:
96
+ import sys
97
+ reload(sys)
98
+ sys.setdefaultencoding("utf-8")
99
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
100
+
101
+ def __repr__(self):
102
+ """For `print`"""
103
+ return self.to_str()
104
+
105
+ def __eq__(self, other):
106
+ """Returns true if both objects are equal"""
107
+ if not isinstance(other, CheckStarrocksParamsRequestBody):
108
+ return False
109
+
110
+ return self.__dict__ == other.__dict__
111
+
112
+ def __ne__(self, other):
113
+ """Returns true if both objects are not equal"""
114
+ return not self == other