@@ -2458,6 +2458,200 @@ def describe_available_cross_region_with_http_info(self, body, **kwargs): # noq
24582458 _request_timeout = params .get ('_request_timeout' ),
24592459 collection_formats = collection_formats )
24602460
2461+ def describe_backup_decryption_key (self , body , ** kwargs ): # noqa: E501
2462+ """describe_backup_decryption_key # noqa: E501
2463+
2464+ This method makes a synchronous HTTP request by default. To make an
2465+ asynchronous HTTP request, please pass async_req=True
2466+ >>> thread = api.describe_backup_decryption_key(body, async_req=True)
2467+ >>> result = thread.get()
2468+
2469+ :param async_req bool
2470+ :param DescribeBackupDecryptionKeyRequest body: (required)
2471+ :return: DescribeBackupDecryptionKeyResponse
2472+ If the method is called asynchronously,
2473+ returns the request thread.
2474+ """
2475+ kwargs ['_return_http_data_only' ] = True
2476+ if kwargs .get ('async_req' ):
2477+ return self .describe_backup_decryption_key_with_http_info (body , ** kwargs ) # noqa: E501
2478+ else :
2479+ (data ) = self .describe_backup_decryption_key_with_http_info (body , ** kwargs ) # noqa: E501
2480+ return data
2481+
2482+ def describe_backup_decryption_key_with_http_info (self , body , ** kwargs ): # noqa: E501
2483+ """describe_backup_decryption_key # noqa: E501
2484+
2485+ This method makes a synchronous HTTP request by default. To make an
2486+ asynchronous HTTP request, please pass async_req=True
2487+ >>> thread = api.describe_backup_decryption_key_with_http_info(body, async_req=True)
2488+ >>> result = thread.get()
2489+
2490+ :param async_req bool
2491+ :param DescribeBackupDecryptionKeyRequest body: (required)
2492+ :return: DescribeBackupDecryptionKeyResponse
2493+ If the method is called asynchronously,
2494+ returns the request thread.
2495+ """
2496+
2497+ all_params = ['body' ] # noqa: E501
2498+ all_params .append ('async_req' )
2499+ all_params .append ('_return_http_data_only' )
2500+ all_params .append ('_preload_content' )
2501+ all_params .append ('_request_timeout' )
2502+
2503+ params = locals ()
2504+ for key , val in six .iteritems (params ['kwargs' ]):
2505+ if key not in all_params :
2506+ raise TypeError (
2507+ "Got an unexpected keyword argument '%s'"
2508+ " to method describe_backup_decryption_key" % key
2509+ )
2510+ params [key ] = val
2511+ del params ['kwargs' ]
2512+ # verify the required parameter 'body' is set
2513+ if self .api_client .client_side_validation and ('body' not in params or
2514+ params ['body' ] is None ): # noqa: E501
2515+ raise ValueError ("Missing the required parameter `body` when calling `describe_backup_decryption_key`" ) # noqa: E501
2516+
2517+ collection_formats = {}
2518+
2519+ path_params = {}
2520+
2521+ query_params = []
2522+
2523+ header_params = {}
2524+
2525+ form_params = []
2526+ local_var_files = {}
2527+
2528+ body_params = None
2529+ if 'body' in params :
2530+ body_params = params ['body' ]
2531+ # HTTP header `Accept`
2532+ header_params ['Accept' ] = self .api_client .select_header_accept (
2533+ ['application/json' ]) # noqa: E501
2534+
2535+ # HTTP header `Content-Type`
2536+ header_params ['Content-Type' ] = self .api_client .select_header_content_type ( # noqa: E501
2537+ ['application/json' ]) # noqa: E501
2538+
2539+ # Authentication setting
2540+ auth_settings = ['volcengineSign' ] # noqa: E501
2541+
2542+ return self .api_client .call_api (
2543+ '/DescribeBackupDecryptionKey/2022-01-01/rds_mysql/post/application_json/' , 'POST' ,
2544+ path_params ,
2545+ query_params ,
2546+ header_params ,
2547+ body = body_params ,
2548+ post_params = form_params ,
2549+ files = local_var_files ,
2550+ response_type = 'DescribeBackupDecryptionKeyResponse' , # noqa: E501
2551+ auth_settings = auth_settings ,
2552+ async_req = params .get ('async_req' ),
2553+ _return_http_data_only = params .get ('_return_http_data_only' ),
2554+ _preload_content = params .get ('_preload_content' , True ),
2555+ _request_timeout = params .get ('_request_timeout' ),
2556+ collection_formats = collection_formats )
2557+
2558+ def describe_backup_encryption_status (self , body , ** kwargs ): # noqa: E501
2559+ """describe_backup_encryption_status # noqa: E501
2560+
2561+ This method makes a synchronous HTTP request by default. To make an
2562+ asynchronous HTTP request, please pass async_req=True
2563+ >>> thread = api.describe_backup_encryption_status(body, async_req=True)
2564+ >>> result = thread.get()
2565+
2566+ :param async_req bool
2567+ :param DescribeBackupEncryptionStatusRequest body: (required)
2568+ :return: DescribeBackupEncryptionStatusResponse
2569+ If the method is called asynchronously,
2570+ returns the request thread.
2571+ """
2572+ kwargs ['_return_http_data_only' ] = True
2573+ if kwargs .get ('async_req' ):
2574+ return self .describe_backup_encryption_status_with_http_info (body , ** kwargs ) # noqa: E501
2575+ else :
2576+ (data ) = self .describe_backup_encryption_status_with_http_info (body , ** kwargs ) # noqa: E501
2577+ return data
2578+
2579+ def describe_backup_encryption_status_with_http_info (self , body , ** kwargs ): # noqa: E501
2580+ """describe_backup_encryption_status # noqa: E501
2581+
2582+ This method makes a synchronous HTTP request by default. To make an
2583+ asynchronous HTTP request, please pass async_req=True
2584+ >>> thread = api.describe_backup_encryption_status_with_http_info(body, async_req=True)
2585+ >>> result = thread.get()
2586+
2587+ :param async_req bool
2588+ :param DescribeBackupEncryptionStatusRequest body: (required)
2589+ :return: DescribeBackupEncryptionStatusResponse
2590+ If the method is called asynchronously,
2591+ returns the request thread.
2592+ """
2593+
2594+ all_params = ['body' ] # noqa: E501
2595+ all_params .append ('async_req' )
2596+ all_params .append ('_return_http_data_only' )
2597+ all_params .append ('_preload_content' )
2598+ all_params .append ('_request_timeout' )
2599+
2600+ params = locals ()
2601+ for key , val in six .iteritems (params ['kwargs' ]):
2602+ if key not in all_params :
2603+ raise TypeError (
2604+ "Got an unexpected keyword argument '%s'"
2605+ " to method describe_backup_encryption_status" % key
2606+ )
2607+ params [key ] = val
2608+ del params ['kwargs' ]
2609+ # verify the required parameter 'body' is set
2610+ if self .api_client .client_side_validation and ('body' not in params or
2611+ params ['body' ] is None ): # noqa: E501
2612+ raise ValueError ("Missing the required parameter `body` when calling `describe_backup_encryption_status`" ) # noqa: E501
2613+
2614+ collection_formats = {}
2615+
2616+ path_params = {}
2617+
2618+ query_params = []
2619+
2620+ header_params = {}
2621+
2622+ form_params = []
2623+ local_var_files = {}
2624+
2625+ body_params = None
2626+ if 'body' in params :
2627+ body_params = params ['body' ]
2628+ # HTTP header `Accept`
2629+ header_params ['Accept' ] = self .api_client .select_header_accept (
2630+ ['application/json' ]) # noqa: E501
2631+
2632+ # HTTP header `Content-Type`
2633+ header_params ['Content-Type' ] = self .api_client .select_header_content_type ( # noqa: E501
2634+ ['application/json' ]) # noqa: E501
2635+
2636+ # Authentication setting
2637+ auth_settings = ['volcengineSign' ] # noqa: E501
2638+
2639+ return self .api_client .call_api (
2640+ '/DescribeBackupEncryptionStatus/2022-01-01/rds_mysql/post/application_json/' , 'POST' ,
2641+ path_params ,
2642+ query_params ,
2643+ header_params ,
2644+ body = body_params ,
2645+ post_params = form_params ,
2646+ files = local_var_files ,
2647+ response_type = 'DescribeBackupEncryptionStatusResponse' , # noqa: E501
2648+ auth_settings = auth_settings ,
2649+ async_req = params .get ('async_req' ),
2650+ _return_http_data_only = params .get ('_return_http_data_only' ),
2651+ _preload_content = params .get ('_preload_content' , True ),
2652+ _request_timeout = params .get ('_request_timeout' ),
2653+ collection_formats = collection_formats )
2654+
24612655 def describe_backup_policy (self , body , ** kwargs ): # noqa: E501
24622656 """describe_backup_policy # noqa: E501
24632657
@@ -5562,6 +5756,103 @@ def modify_allow_list_with_http_info(self, body, **kwargs): # noqa: E501
55625756 _request_timeout = params .get ('_request_timeout' ),
55635757 collection_formats = collection_formats )
55645758
5759+ def modify_backup_encryption_policy (self , body , ** kwargs ): # noqa: E501
5760+ """modify_backup_encryption_policy # noqa: E501
5761+
5762+ This method makes a synchronous HTTP request by default. To make an
5763+ asynchronous HTTP request, please pass async_req=True
5764+ >>> thread = api.modify_backup_encryption_policy(body, async_req=True)
5765+ >>> result = thread.get()
5766+
5767+ :param async_req bool
5768+ :param ModifyBackupEncryptionPolicyRequest body: (required)
5769+ :return: ModifyBackupEncryptionPolicyResponse
5770+ If the method is called asynchronously,
5771+ returns the request thread.
5772+ """
5773+ kwargs ['_return_http_data_only' ] = True
5774+ if kwargs .get ('async_req' ):
5775+ return self .modify_backup_encryption_policy_with_http_info (body , ** kwargs ) # noqa: E501
5776+ else :
5777+ (data ) = self .modify_backup_encryption_policy_with_http_info (body , ** kwargs ) # noqa: E501
5778+ return data
5779+
5780+ def modify_backup_encryption_policy_with_http_info (self , body , ** kwargs ): # noqa: E501
5781+ """modify_backup_encryption_policy # noqa: E501
5782+
5783+ This method makes a synchronous HTTP request by default. To make an
5784+ asynchronous HTTP request, please pass async_req=True
5785+ >>> thread = api.modify_backup_encryption_policy_with_http_info(body, async_req=True)
5786+ >>> result = thread.get()
5787+
5788+ :param async_req bool
5789+ :param ModifyBackupEncryptionPolicyRequest body: (required)
5790+ :return: ModifyBackupEncryptionPolicyResponse
5791+ If the method is called asynchronously,
5792+ returns the request thread.
5793+ """
5794+
5795+ all_params = ['body' ] # noqa: E501
5796+ all_params .append ('async_req' )
5797+ all_params .append ('_return_http_data_only' )
5798+ all_params .append ('_preload_content' )
5799+ all_params .append ('_request_timeout' )
5800+
5801+ params = locals ()
5802+ for key , val in six .iteritems (params ['kwargs' ]):
5803+ if key not in all_params :
5804+ raise TypeError (
5805+ "Got an unexpected keyword argument '%s'"
5806+ " to method modify_backup_encryption_policy" % key
5807+ )
5808+ params [key ] = val
5809+ del params ['kwargs' ]
5810+ # verify the required parameter 'body' is set
5811+ if self .api_client .client_side_validation and ('body' not in params or
5812+ params ['body' ] is None ): # noqa: E501
5813+ raise ValueError ("Missing the required parameter `body` when calling `modify_backup_encryption_policy`" ) # noqa: E501
5814+
5815+ collection_formats = {}
5816+
5817+ path_params = {}
5818+
5819+ query_params = []
5820+
5821+ header_params = {}
5822+
5823+ form_params = []
5824+ local_var_files = {}
5825+
5826+ body_params = None
5827+ if 'body' in params :
5828+ body_params = params ['body' ]
5829+ # HTTP header `Accept`
5830+ header_params ['Accept' ] = self .api_client .select_header_accept (
5831+ ['application/json' ]) # noqa: E501
5832+
5833+ # HTTP header `Content-Type`
5834+ header_params ['Content-Type' ] = self .api_client .select_header_content_type ( # noqa: E501
5835+ ['application/json' ]) # noqa: E501
5836+
5837+ # Authentication setting
5838+ auth_settings = ['volcengineSign' ] # noqa: E501
5839+
5840+ return self .api_client .call_api (
5841+ '/ModifyBackupEncryptionPolicy/2022-01-01/rds_mysql/post/application_json/' , 'POST' ,
5842+ path_params ,
5843+ query_params ,
5844+ header_params ,
5845+ body = body_params ,
5846+ post_params = form_params ,
5847+ files = local_var_files ,
5848+ response_type = 'ModifyBackupEncryptionPolicyResponse' , # noqa: E501
5849+ auth_settings = auth_settings ,
5850+ async_req = params .get ('async_req' ),
5851+ _return_http_data_only = params .get ('_return_http_data_only' ),
5852+ _preload_content = params .get ('_preload_content' , True ),
5853+ _request_timeout = params .get ('_request_timeout' ),
5854+ collection_formats = collection_formats )
5855+
55655856 def modify_backup_policy (self , body , ** kwargs ): # noqa: E501
55665857 """modify_backup_policy # noqa: E501
55675858
0 commit comments