Skip to content

Commit 3b554c3

Browse files
committed
Merge "integration_2025-12-22_1095718133250" into "graph-Python-2018-01-01-online-1944-2025_12_16_10_29_38"
Conflicts: pyproject.toml
2 parents e8349b1 + 02749f6 commit 3b554c3

File tree

74 files changed

+14040
-231
lines changed

Some content is hidden

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

74 files changed

+14040
-231
lines changed

SDK_Integration_zh.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -603,7 +603,7 @@ configuration.sk = "Your sk"
603603
# 全局配置
604604
configuration.auto_retry = True # 开启自动重试,默认开启
605605
configuration.num_max_retries = 4 # 最大重试次数,默认3次
606-
configuration.min_retry_delay_ms = 200 # 最小重试延迟毫秒,默认30毫秒
606+
configuration.min_retry_delay_ms = 200 # 最小重试延迟毫秒,默认300毫秒
607607
configuration.max_retry_delay_ms = 6000 # 最大重试延迟毫秒,默认300000毫秒
608608
configuration.backoff_strategy = ExponentialWithRandomJitterBackoffStrategy() # 重试策略,默认ExponentialWithRandomJitterBackoffStrategy
609609
configuration.retry_condition = DefaultRetryCondition() # 重试条件,默认DefaultRetryCondition
@@ -614,7 +614,7 @@ volcenginesdkcore.Configuration.set_default(configuration)
614614
runtime_options = RuntimeOption(
615615
auto_retry = True, # 开启自动重试,默认开启
616616
num_max_retries = 4, # 最大重试次数,默认3次
617-
min_retry_delay_ms = 200, # 最小重试延迟毫秒,默认30毫秒
617+
min_retry_delay_ms = 200, # 最小重试延迟毫秒,默认300毫秒
618618
max_retry_delay_ms = 6000, # 最大重试延迟毫秒,默认300000毫秒
619619
backoff_strategy = ExponentialWithRandomJitterBackoffStrategy(), # 重试策略,默认ExponentialWithRandomJitterBackoffStrategy
620620
retry_condition = DefaultRetryCondition(), # 重试条件,默认DefaultRetryCondition

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "volcengine-python-sdk"
3-
version = "4.0.43"
3+
version = "4.0.44"
44
authors = [
55
{name = "volc-engine", email = "[email protected]"},
66
]

volcenginesdkcore/api_client.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ def __call_api(
154154
raise retry_err
155155
break
156156
retry_count += 1
157+
retry_err = None
157158

158159
interceptor_context.response = Response(response_data)
159160
interceptor_context = self.interceptor_chain.execute_response(interceptor_context)

volcenginesdki18nopenapi/models/task_info_for_video_project_serial_task_create_input.py

Lines changed: 30 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,13 @@ class TaskInfoForVideoProjectSerialTaskCreateInput(object):
3535
swagger_types = {
3636
'ai_remove_type': 'str',
3737
'asr_model': 'int',
38+
'bgm_policy': 'int',
3839
'comment': 'str',
3940
'deadline': 'int',
4041
'drama_cover_url': 'str',
4142
'drama_description': 'str',
4243
'drama_title': 'str',
43-
'is_dub': 'int',
44+
'is_dub': 'bool',
4445
'need_translate_cover': 'bool',
4546
'need_translate_desc': 'bool',
4647
'need_translate_title': 'bool',
@@ -56,6 +57,7 @@ class TaskInfoForVideoProjectSerialTaskCreateInput(object):
5657
attribute_map = {
5758
'ai_remove_type': 'aiRemoveType',
5859
'asr_model': 'asrModel',
60+
'bgm_policy': 'bgmPolicy',
5961
'comment': 'comment',
6062
'deadline': 'deadline',
6163
'drama_cover_url': 'dramaCoverUrl',
@@ -74,14 +76,15 @@ class TaskInfoForVideoProjectSerialTaskCreateInput(object):
7476
'use_mt': 'useMT'
7577
}
7678

77-
def __init__(self, ai_remove_type=None, asr_model=None, comment=None, deadline=None, drama_cover_url=None, drama_description=None, drama_title=None, is_dub=None, need_translate_cover=None, need_translate_desc=None, need_translate_title=None, need_translate_title_and_desc=None, serial_number=None, source_lang=None, target_langs=None, target_style_map=None, task_name=None, use_mt=None, _configuration=None): # noqa: E501
79+
def __init__(self, ai_remove_type=None, asr_model=None, bgm_policy=None, comment=None, deadline=None, drama_cover_url=None, drama_description=None, drama_title=None, is_dub=None, need_translate_cover=None, need_translate_desc=None, need_translate_title=None, need_translate_title_and_desc=None, serial_number=None, source_lang=None, target_langs=None, target_style_map=None, task_name=None, use_mt=None, _configuration=None): # noqa: E501
7880
"""TaskInfoForVideoProjectSerialTaskCreateInput - a model defined in Swagger""" # noqa: E501
7981
if _configuration is None:
8082
_configuration = Configuration()
8183
self._configuration = _configuration
8284

8385
self._ai_remove_type = None
8486
self._asr_model = None
87+
self._bgm_policy = None
8588
self._comment = None
8689
self._deadline = None
8790
self._drama_cover_url = None
@@ -104,6 +107,8 @@ def __init__(self, ai_remove_type=None, asr_model=None, comment=None, deadline=N
104107
self.ai_remove_type = ai_remove_type
105108
if asr_model is not None:
106109
self.asr_model = asr_model
110+
if bgm_policy is not None:
111+
self.bgm_policy = bgm_policy
107112
if comment is not None:
108113
self.comment = comment
109114
if deadline is not None:
@@ -179,6 +184,27 @@ def asr_model(self, asr_model):
179184

180185
self._asr_model = asr_model
181186

187+
@property
188+
def bgm_policy(self):
189+
"""Gets the bgm_policy of this TaskInfoForVideoProjectSerialTaskCreateInput. # noqa: E501
190+
191+
192+
:return: The bgm_policy of this TaskInfoForVideoProjectSerialTaskCreateInput. # noqa: E501
193+
:rtype: int
194+
"""
195+
return self._bgm_policy
196+
197+
@bgm_policy.setter
198+
def bgm_policy(self, bgm_policy):
199+
"""Sets the bgm_policy of this TaskInfoForVideoProjectSerialTaskCreateInput.
200+
201+
202+
:param bgm_policy: The bgm_policy of this TaskInfoForVideoProjectSerialTaskCreateInput. # noqa: E501
203+
:type: int
204+
"""
205+
206+
self._bgm_policy = bgm_policy
207+
182208
@property
183209
def comment(self):
184210
"""Gets the comment of this TaskInfoForVideoProjectSerialTaskCreateInput. # noqa: E501
@@ -290,7 +316,7 @@ def is_dub(self):
290316
291317
292318
:return: The is_dub of this TaskInfoForVideoProjectSerialTaskCreateInput. # noqa: E501
293-
:rtype: int
319+
:rtype: bool
294320
"""
295321
return self._is_dub
296322

@@ -300,7 +326,7 @@ def is_dub(self, is_dub):
300326
301327
302328
:param is_dub: The is_dub of this TaskInfoForVideoProjectSerialTaskCreateInput. # noqa: E501
303-
:type: int
329+
:type: bool
304330
"""
305331

306332
self._is_dub = is_dub

volcenginesdkkms/models/create_key_request.py

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ class CreateKeyRequest(object):
4242
'multi_region': 'bool',
4343
'origin': 'str',
4444
'protection_level': 'str',
45+
'rotate_interval': 'int',
4546
'rotate_state': 'str',
4647
'tags': 'list[TagForCreateKeyInput]',
4748
'xks_key_id': 'str'
@@ -57,12 +58,13 @@ class CreateKeyRequest(object):
5758
'multi_region': 'MultiRegion',
5859
'origin': 'Origin',
5960
'protection_level': 'ProtectionLevel',
61+
'rotate_interval': 'RotateInterval',
6062
'rotate_state': 'RotateState',
6163
'tags': 'Tags',
6264
'xks_key_id': 'XksKeyID'
6365
}
6466

65-
def __init__(self, custom_key_store_id=None, description=None, key_name=None, key_spec=None, key_usage=None, keyring_name=None, multi_region=None, origin=None, protection_level=None, rotate_state=None, tags=None, xks_key_id=None, _configuration=None): # noqa: E501
67+
def __init__(self, custom_key_store_id=None, description=None, key_name=None, key_spec=None, key_usage=None, keyring_name=None, multi_region=None, origin=None, protection_level=None, rotate_interval=None, rotate_state=None, tags=None, xks_key_id=None, _configuration=None): # noqa: E501
6668
"""CreateKeyRequest - a model defined in Swagger""" # noqa: E501
6769
if _configuration is None:
6870
_configuration = Configuration()
@@ -77,6 +79,7 @@ def __init__(self, custom_key_store_id=None, description=None, key_name=None, ke
7779
self._multi_region = None
7880
self._origin = None
7981
self._protection_level = None
82+
self._rotate_interval = None
8083
self._rotate_state = None
8184
self._tags = None
8285
self._xks_key_id = None
@@ -98,6 +101,8 @@ def __init__(self, custom_key_store_id=None, description=None, key_name=None, ke
98101
self.origin = origin
99102
if protection_level is not None:
100103
self.protection_level = protection_level
104+
if rotate_interval is not None:
105+
self.rotate_interval = rotate_interval
101106
if rotate_state is not None:
102107
self.rotate_state = rotate_state
103108
if tags is not None:
@@ -319,6 +324,33 @@ def protection_level(self, protection_level):
319324

320325
self._protection_level = protection_level
321326

327+
@property
328+
def rotate_interval(self):
329+
"""Gets the rotate_interval of this CreateKeyRequest. # noqa: E501
330+
331+
332+
:return: The rotate_interval of this CreateKeyRequest. # noqa: E501
333+
:rtype: int
334+
"""
335+
return self._rotate_interval
336+
337+
@rotate_interval.setter
338+
def rotate_interval(self, rotate_interval):
339+
"""Sets the rotate_interval of this CreateKeyRequest.
340+
341+
342+
:param rotate_interval: The rotate_interval of this CreateKeyRequest. # noqa: E501
343+
:type: int
344+
"""
345+
if (self._configuration.client_side_validation and
346+
rotate_interval is not None and rotate_interval > 2560): # noqa: E501
347+
raise ValueError("Invalid value for `rotate_interval`, must be a value less than or equal to `2560`") # noqa: E501
348+
if (self._configuration.client_side_validation and
349+
rotate_interval is not None and rotate_interval < 90): # noqa: E501
350+
raise ValueError("Invalid value for `rotate_interval`, must be a value greater than or equal to `90`") # noqa: E501
351+
352+
self._rotate_interval = rotate_interval
353+
322354
@property
323355
def rotate_state(self):
324356
"""Gets the rotate_state of this CreateKeyRequest. # noqa: E501

volcenginesdkkms/models/enable_key_rotation_request.py

Lines changed: 35 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,18 @@ class EnableKeyRotationRequest(object):
3535
swagger_types = {
3636
'key_id': 'str',
3737
'key_name': 'str',
38-
'keyring_name': 'str'
38+
'keyring_name': 'str',
39+
'rotate_interval': 'int'
3940
}
4041

4142
attribute_map = {
4243
'key_id': 'KeyID',
4344
'key_name': 'KeyName',
44-
'keyring_name': 'KeyringName'
45+
'keyring_name': 'KeyringName',
46+
'rotate_interval': 'RotateInterval'
4547
}
4648

47-
def __init__(self, key_id=None, key_name=None, keyring_name=None, _configuration=None): # noqa: E501
49+
def __init__(self, key_id=None, key_name=None, keyring_name=None, rotate_interval=None, _configuration=None): # noqa: E501
4850
"""EnableKeyRotationRequest - a model defined in Swagger""" # noqa: E501
4951
if _configuration is None:
5052
_configuration = Configuration()
@@ -53,6 +55,7 @@ def __init__(self, key_id=None, key_name=None, keyring_name=None, _configuration
5355
self._key_id = None
5456
self._key_name = None
5557
self._keyring_name = None
58+
self._rotate_interval = None
5659
self.discriminator = None
5760

5861
if key_id is not None:
@@ -61,6 +64,8 @@ def __init__(self, key_id=None, key_name=None, keyring_name=None, _configuration
6164
self.key_name = key_name
6265
if keyring_name is not None:
6366
self.keyring_name = keyring_name
67+
if rotate_interval is not None:
68+
self.rotate_interval = rotate_interval
6469

6570
@property
6671
def key_id(self):
@@ -137,6 +142,33 @@ def keyring_name(self, keyring_name):
137142

138143
self._keyring_name = keyring_name
139144

145+
@property
146+
def rotate_interval(self):
147+
"""Gets the rotate_interval of this EnableKeyRotationRequest. # noqa: E501
148+
149+
150+
:return: The rotate_interval of this EnableKeyRotationRequest. # noqa: E501
151+
:rtype: int
152+
"""
153+
return self._rotate_interval
154+
155+
@rotate_interval.setter
156+
def rotate_interval(self, rotate_interval):
157+
"""Sets the rotate_interval of this EnableKeyRotationRequest.
158+
159+
160+
:param rotate_interval: The rotate_interval of this EnableKeyRotationRequest. # noqa: E501
161+
:type: int
162+
"""
163+
if (self._configuration.client_side_validation and
164+
rotate_interval is not None and rotate_interval > 2560): # noqa: E501
165+
raise ValueError("Invalid value for `rotate_interval`, must be a value less than or equal to `2560`") # noqa: E501
166+
if (self._configuration.client_side_validation and
167+
rotate_interval is not None and rotate_interval < 90): # noqa: E501
168+
raise ValueError("Invalid value for `rotate_interval`, must be a value greater than or equal to `90`") # noqa: E501
169+
170+
self._rotate_interval = rotate_interval
171+
140172
def to_dict(self):
141173
"""Returns the model properties as a dict"""
142174
result = {}

0 commit comments

Comments
 (0)