Skip to content

Commit 5a6662d

Browse files
committed
Merge 'integration_2024-07-25_331985312002' into 'master'
merge branch integration_2024-07-25_331985312002 into master See merge request: !353
2 parents e36d7ba + 82aece7 commit 5a6662d

File tree

47 files changed

+3303
-163
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+3303
-163
lines changed

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,12 @@
99

1010
### Requirements ###
1111

12-
Python版本需要不低于2.7。
12+
* Python版本需要不低于2.7。
13+
* 由于 Windows 系统有最长路径限制,可能会导致安装失败,请按照以下方式设置:
14+
```
15+
1. 按下 Win+R ,输入 regedit 打开注册表编辑器。
16+
2. 设置 \HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem 路径下的变量 LongPathsEnabled 为 1 即可。
17+
```
1318

1419
### Install ###
1520

meta.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"lasted": "1.0.93",
3-
"meta_commit": "8b9b8807615fedb8d11908ede4eace795abaaf46"
2+
"lasted": "1.0.94",
3+
"meta_commit": "92cfd1814f057ab80f1ec26a43284b1038a2771f"
44
}

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from setuptools import setup, find_packages # noqa: H301
44

55
NAME = "volcengine-python-sdk"
6-
VERSION = "1.0.93"
6+
VERSION = "1.0.94"
77
# To install the library, run the following
88
#
99
# python setup.py install

volcenginesdkcore/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None,
6767
self.default_headers[header_name] = header_value
6868
self.cookie = cookie
6969
# Set default User-Agent.
70-
self.user_agent = 'volcstack-python-sdk/1.0.93'
70+
self.user_agent = 'volcstack-python-sdk/1.0.94'
7171
self.client_side_validation = configuration.client_side_validation
7272

7373
def __del__(self):

volcenginesdkcore/configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,5 +221,5 @@ def to_debug_report(self):
221221
"OS: {env}\n"\
222222
"Python Version: {pyversion}\n"\
223223
"Version of the API: 0.1.0\n"\
224-
"SDK Package Version: 1.0.93".\
224+
"SDK Package Version: 1.0.94".\
225225
format(env=sys.platform, pyversion=sys.version)

volcenginesdkrdsmysqlv2/__init__.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,10 @@
9595
from volcenginesdkrdsmysqlv2.models.describe_availability_zones_response import DescribeAvailabilityZonesResponse
9696
from volcenginesdkrdsmysqlv2.models.describe_available_cross_region_request import DescribeAvailableCrossRegionRequest
9797
from volcenginesdkrdsmysqlv2.models.describe_available_cross_region_response import DescribeAvailableCrossRegionResponse
98+
from volcenginesdkrdsmysqlv2.models.describe_backup_decryption_key_request import DescribeBackupDecryptionKeyRequest
99+
from volcenginesdkrdsmysqlv2.models.describe_backup_decryption_key_response import DescribeBackupDecryptionKeyResponse
100+
from volcenginesdkrdsmysqlv2.models.describe_backup_encryption_status_request import DescribeBackupEncryptionStatusRequest
101+
from volcenginesdkrdsmysqlv2.models.describe_backup_encryption_status_response import DescribeBackupEncryptionStatusResponse
98102
from volcenginesdkrdsmysqlv2.models.describe_backup_policy_request import DescribeBackupPolicyRequest
99103
from volcenginesdkrdsmysqlv2.models.describe_backup_policy_response import DescribeBackupPolicyResponse
100104
from volcenginesdkrdsmysqlv2.models.describe_backups_request import DescribeBackupsRequest
@@ -163,11 +167,14 @@
163167
from volcenginesdkrdsmysqlv2.models.instance_tag_for_restore_to_new_instance_input import InstanceTagForRestoreToNewInstanceInput
164168
from volcenginesdkrdsmysqlv2.models.list_parameter_templates_request import ListParameterTemplatesRequest
165169
from volcenginesdkrdsmysqlv2.models.list_parameter_templates_response import ListParameterTemplatesResponse
170+
from volcenginesdkrdsmysqlv2.models.maintenance_window_for_create_db_instance_input import MaintenanceWindowForCreateDBInstanceInput
166171
from volcenginesdkrdsmysqlv2.models.maintenance_window_for_describe_db_instances_output import MaintenanceWindowForDescribeDBInstancesOutput
167172
from volcenginesdkrdsmysqlv2.models.migrate_to_other_zone_request import MigrateToOtherZoneRequest
168173
from volcenginesdkrdsmysqlv2.models.migrate_to_other_zone_response import MigrateToOtherZoneResponse
169174
from volcenginesdkrdsmysqlv2.models.modify_allow_list_request import ModifyAllowListRequest
170175
from volcenginesdkrdsmysqlv2.models.modify_allow_list_response import ModifyAllowListResponse
176+
from volcenginesdkrdsmysqlv2.models.modify_backup_encryption_policy_request import ModifyBackupEncryptionPolicyRequest
177+
from volcenginesdkrdsmysqlv2.models.modify_backup_encryption_policy_response import ModifyBackupEncryptionPolicyResponse
171178
from volcenginesdkrdsmysqlv2.models.modify_backup_policy_request import ModifyBackupPolicyRequest
172179
from volcenginesdkrdsmysqlv2.models.modify_backup_policy_response import ModifyBackupPolicyResponse
173180
from volcenginesdkrdsmysqlv2.models.modify_cross_backup_policy_request import ModifyCrossBackupPolicyRequest
@@ -256,9 +263,11 @@
256263
from volcenginesdkrdsmysqlv2.models.switch_db_instance_ha_response import SwitchDBInstanceHAResponse
257264
from volcenginesdkrdsmysqlv2.models.table_for_restore_to_existed_instance_input import TableForRestoreToExistedInstanceInput
258265
from volcenginesdkrdsmysqlv2.models.table_meta_for_restore_to_existed_instance_input import TableMetaForRestoreToExistedInstanceInput
266+
from volcenginesdkrdsmysqlv2.models.tag_filter_for_describe_db_instances_input import TagFilterForDescribeDBInstancesInput
259267
from volcenginesdkrdsmysqlv2.models.tag_filter_for_describe_tags_by_resource_input import TagFilterForDescribeTagsByResourceInput
260268
from volcenginesdkrdsmysqlv2.models.tag_for_add_tags_to_resource_input import TagForAddTagsToResourceInput
261269
from volcenginesdkrdsmysqlv2.models.tag_for_describe_db_instance_detail_output import TagForDescribeDBInstanceDetailOutput
270+
from volcenginesdkrdsmysqlv2.models.tag_for_describe_db_instances_output import TagForDescribeDBInstancesOutput
262271
from volcenginesdkrdsmysqlv2.models.tag_resource_for_describe_tags_by_resource_output import TagResourceForDescribeTagsByResourceOutput
263272
from volcenginesdkrdsmysqlv2.models.task_progress_for_describe_tasks_output import TaskProgressForDescribeTasksOutput
264273
from volcenginesdkrdsmysqlv2.models.template_info_for_describe_parameter_template_output import TemplateInfoForDescribeParameterTemplateOutput

volcenginesdkrdsmysqlv2/api/rds_mysql_v2_api.py

Lines changed: 291 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)