Skip to content

Commit e08a6c6

Browse files
committed
Merge 'integration_2025-11-06_1076451254274' into 'master'
merge branch integration_2025-11-06_1076451254274 into master See merge request: !904
2 parents cbb2069 + 6eb8d68 commit e08a6c6

File tree

69 files changed

+5967
-140
lines changed

Some content is hidden

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

69 files changed

+5967
-140
lines changed

SDK_Integration_zh.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
- [自定义RegionId](#自定义regionid)
1414
- [自动化Endpoint寻址](#自动化endpoint寻址)
1515
- [Endpoint默认寻址](#endpoint默认寻址)
16+
- [Endpoint标准寻址](#endpoint标准寻址)
1617
- [Http连接池配置](#http连接池配置)
1718
- [Https请求配置](#https请求配置)
1819
- [指定scheme](#指定scheme)
@@ -415,6 +416,33 @@ configuration.custom_bootstrap_region = {
415416
volcenginesdkcore.Configuration.set_default(configuration)
416417
```
417418

419+
### Endpoint标准寻址
420+
**标准寻址规则**
421+
422+
| Global服务 | 双栈 | 格式 |
423+
|----------|----|------------------------------------------------------------------------------------------------------------------|
424+
||| `{Service}.volcengine-api.com` |
425+
||| `{Service}.volcengineapi.com` |
426+
||| `{Service}.{region}.volcengine-api.com`|
427+
||| `{Service}.{region}.volcengineapi.com` |
428+
429+
**代码示例:**
430+
431+
是否global服务根据具体调用的服务决定的,是否global无法修改的。
432+
可以参考列表:[./volcenginesdkcore/endpoint/providers/standard_provider.py#ServiceInfos](./volcenginesdkcore/endpoint/providers/standard_provider.py#L51)
433+
```python
434+
import volcenginesdkcore
435+
from volcenginesdkcore.endpoint.providers.standard_provider import StandardEndpointResolver
436+
configuration = volcenginesdkcore.Configuration()
437+
configuration.ak = "Your ak"
438+
configuration.sk = "Your sk"
439+
configuration.endpoint_provider = StandardEndpointResolver() # 配置标准寻址
440+
configuration.use_dual_stack = True # 配置是否双栈
441+
configuration.region = "cn-beijing" # 配置region
442+
volcenginesdkcore.Configuration.set_default(configuration)
443+
```
444+
445+
418446
# Http连接池配置
419447

420448
> **默认**

meta.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"lasted": "4.0.31",
3-
"meta_commit": "8724fb294f8c22b4dbe5c1dd0430a9e286f03fb7"
2+
"lasted": "4.0.32",
3+
"meta_commit": "615e689185f8dc78fa72869fb8df272ab3343113"
44
}

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.31"
3+
version = "4.0.32"
44
authors = [
55
{name = "volc-engine", email = "[email protected]"},
66
]

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 = "4.0.31"
6+
VERSION = "4.0.32"
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
@@ -64,7 +64,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None,
6464
self.default_headers[header_name] = header_value
6565
self.cookie = cookie
6666
# Set default User-Agent.
67-
self.user_agent = 'volcstack-python-sdk/4.0.31'
67+
self.user_agent = 'volcstack-python-sdk/4.0.32'
6868
self.client_side_validation = configuration.client_side_validation
6969

7070
self.interceptor_chain = InterceptorChain()

volcenginesdkcore/configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ def to_debug_report(self):
272272
"OS: {env}\n" \
273273
"Python Version: {pyversion}\n" \
274274
"Version of the API: 0.1.0\n" \
275-
"SDK Package Version: 4.0.31".\
275+
"SDK Package Version: 4.0.32".\
276276
format(env=sys.platform, pyversion=sys.version)
277277

278278
@property

0 commit comments

Comments
 (0)