@@ -6629,6 +6629,103 @@ def modify_db_instance_params_with_http_info(self, body, **kwargs): # noqa: E50
66296629 _request_timeout = params .get ('_request_timeout' ),
66306630 collection_formats = collection_formats )
66316631
6632+ def modify_db_instance_private_dns_visibility (self , body , ** kwargs ): # noqa: E501
6633+ """modify_db_instance_private_dns_visibility # noqa: E501
6634+
6635+ This method makes a synchronous HTTP request by default. To make an
6636+ asynchronous HTTP request, please pass async_req=True
6637+ >>> thread = api.modify_db_instance_private_dns_visibility(body, async_req=True)
6638+ >>> result = thread.get()
6639+
6640+ :param async_req bool
6641+ :param ModifyDBInstancePrivateDNSVisibilityRequest body: (required)
6642+ :return: ModifyDBInstancePrivateDNSVisibilityResponse
6643+ If the method is called asynchronously,
6644+ returns the request thread.
6645+ """
6646+ kwargs ['_return_http_data_only' ] = True
6647+ if kwargs .get ('async_req' ):
6648+ return self .modify_db_instance_private_dns_visibility_with_http_info (body , ** kwargs ) # noqa: E501
6649+ else :
6650+ (data ) = self .modify_db_instance_private_dns_visibility_with_http_info (body , ** kwargs ) # noqa: E501
6651+ return data
6652+
6653+ def modify_db_instance_private_dns_visibility_with_http_info (self , body , ** kwargs ): # noqa: E501
6654+ """modify_db_instance_private_dns_visibility # noqa: E501
6655+
6656+ This method makes a synchronous HTTP request by default. To make an
6657+ asynchronous HTTP request, please pass async_req=True
6658+ >>> thread = api.modify_db_instance_private_dns_visibility_with_http_info(body, async_req=True)
6659+ >>> result = thread.get()
6660+
6661+ :param async_req bool
6662+ :param ModifyDBInstancePrivateDNSVisibilityRequest body: (required)
6663+ :return: ModifyDBInstancePrivateDNSVisibilityResponse
6664+ If the method is called asynchronously,
6665+ returns the request thread.
6666+ """
6667+
6668+ all_params = ['body' ] # noqa: E501
6669+ all_params .append ('async_req' )
6670+ all_params .append ('_return_http_data_only' )
6671+ all_params .append ('_preload_content' )
6672+ all_params .append ('_request_timeout' )
6673+
6674+ params = locals ()
6675+ for key , val in six .iteritems (params ['kwargs' ]):
6676+ if key not in all_params :
6677+ raise TypeError (
6678+ "Got an unexpected keyword argument '%s'"
6679+ " to method modify_db_instance_private_dns_visibility" % key
6680+ )
6681+ params [key ] = val
6682+ del params ['kwargs' ]
6683+ # verify the required parameter 'body' is set
6684+ if self .api_client .client_side_validation and ('body' not in params or
6685+ params ['body' ] is None ): # noqa: E501
6686+ raise ValueError ("Missing the required parameter `body` when calling `modify_db_instance_private_dns_visibility`" ) # noqa: E501
6687+
6688+ collection_formats = {}
6689+
6690+ path_params = {}
6691+
6692+ query_params = []
6693+
6694+ header_params = {}
6695+
6696+ form_params = []
6697+ local_var_files = {}
6698+
6699+ body_params = None
6700+ if 'body' in params :
6701+ body_params = params ['body' ]
6702+ # HTTP header `Accept`
6703+ header_params ['Accept' ] = self .api_client .select_header_accept (
6704+ ['application/json' ]) # noqa: E501
6705+
6706+ # HTTP header `Content-Type`
6707+ header_params ['Content-Type' ] = self .api_client .select_header_content_type ( # noqa: E501
6708+ ['application/json' ]) # noqa: E501
6709+
6710+ # Authentication setting
6711+ auth_settings = ['volcengineSign' ] # noqa: E501
6712+
6713+ return self .api_client .call_api (
6714+ '/ModifyDBInstancePrivateDNSVisibility/2020-12-07/redis/post/application_json/' , 'POST' ,
6715+ path_params ,
6716+ query_params ,
6717+ header_params ,
6718+ body = body_params ,
6719+ post_params = form_params ,
6720+ files = local_var_files ,
6721+ response_type = 'ModifyDBInstancePrivateDNSVisibilityResponse' , # noqa: E501
6722+ auth_settings = auth_settings ,
6723+ async_req = params .get ('async_req' ),
6724+ _return_http_data_only = params .get ('_return_http_data_only' ),
6725+ _preload_content = params .get ('_preload_content' , True ),
6726+ _request_timeout = params .get ('_request_timeout' ),
6727+ collection_formats = collection_formats )
6728+
66326729 def modify_db_instance_shard_capacity (self , body , ** kwargs ): # noqa: E501
66336730 """modify_db_instance_shard_capacity # noqa: E501
66346731
0 commit comments