bce-python-sdk 0.9.63__py3-none-any.whl → 0.9.64__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- baidubce/__init__.py +1 -1
- baidubce/services/aihc/modules/job/job_client.py +3 -0
- baidubce/services/bcc/bcc_client.py +8 -4
- baidubce/services/blb/app_blb_client.py +285 -47
- baidubce/services/blb/user_service_client.py +13 -48
- baidubce/services/eip/eip_client.py +217 -0
- baidubce/services/ipv6gateway/ipv6gateway_client.py +62 -1
- baidubce/services/lbdc/lbdc_client.py +2 -4
- {bce_python_sdk-0.9.63.dist-info → bce_python_sdk-0.9.64.dist-info}/METADATA +1 -1
- {bce_python_sdk-0.9.63.dist-info → bce_python_sdk-0.9.64.dist-info}/RECORD +12 -12
- {bce_python_sdk-0.9.63.dist-info → bce_python_sdk-0.9.64.dist-info}/WHEEL +1 -1
- {bce_python_sdk-0.9.63.dist-info → bce_python_sdk-0.9.64.dist-info}/top_level.txt +0 -0
baidubce/__init__.py
CHANGED
|
@@ -536,6 +536,7 @@ class JobClient(AIHCBaseClient):
|
|
|
536
536
|
def DescribeJobMetrics(
|
|
537
537
|
self,
|
|
538
538
|
resourcePoolId,
|
|
539
|
+
queueID,
|
|
539
540
|
jobId,
|
|
540
541
|
metricType,
|
|
541
542
|
startTime=None,
|
|
@@ -550,6 +551,7 @@ class JobClient(AIHCBaseClient):
|
|
|
550
551
|
|
|
551
552
|
Args:
|
|
552
553
|
resourcePoolId: 注意区分资源池类型,自运维资源池传递资源池唯一标识(示例:cce-1uji3ib5),托管资源池固定传递 aihc-serverless(必填)
|
|
554
|
+
queueID: 任务所属队列,通用资源池须填入队列名称,托管资源池须填入队列Id(必填,Query参数)
|
|
553
555
|
jobId: 任务ID(必填,Body参数)
|
|
554
556
|
metricType: 查询监控数据的指标类型(必填,Body参数)
|
|
555
557
|
startTime: 开始时间,Unix时间格式(可选,Body参数)
|
|
@@ -568,6 +570,7 @@ class JobClient(AIHCBaseClient):
|
|
|
568
570
|
params = {
|
|
569
571
|
'action': 'DescribeJobMetrics',
|
|
570
572
|
'resourcePoolId': resourcePoolId,
|
|
573
|
+
'queueID': queueID,
|
|
571
574
|
}
|
|
572
575
|
|
|
573
576
|
body = {
|
|
@@ -1875,10 +1875,11 @@ class BccClient(bce_base_client.BceBaseClient):
|
|
|
1875
1875
|
|
|
1876
1876
|
@required(instance_id=(bytes, str),
|
|
1877
1877
|
tags=list)
|
|
1878
|
-
def bind_instance_to_tags(self, instance_id, tags, config=None):
|
|
1878
|
+
def bind_instance_to_tags(self, instance_id, tags, attachRelatedResourceTag, config=None):
|
|
1879
1879
|
"""
|
|
1880
1880
|
:param instance_id:
|
|
1881
1881
|
:param tags:
|
|
1882
|
+
:param attachRelatedResourceTag
|
|
1882
1883
|
:param config:
|
|
1883
1884
|
:return:
|
|
1884
1885
|
"""
|
|
@@ -1886,7 +1887,8 @@ class BccClient(bce_base_client.BceBaseClient):
|
|
|
1886
1887
|
path = b'/instance/%s/tag' % instance_id
|
|
1887
1888
|
tag_list = [tag.__dict__ for tag in tags]
|
|
1888
1889
|
body = {
|
|
1889
|
-
'changeTags': tag_list
|
|
1890
|
+
'changeTags': tag_list,
|
|
1891
|
+
'attachRelatedResourceTag': attachRelatedResourceTag
|
|
1890
1892
|
}
|
|
1891
1893
|
params = {
|
|
1892
1894
|
'bind': None
|
|
@@ -1896,10 +1898,11 @@ class BccClient(bce_base_client.BceBaseClient):
|
|
|
1896
1898
|
|
|
1897
1899
|
@required(instance_id=(bytes, str),
|
|
1898
1900
|
tags=list)
|
|
1899
|
-
def unbind_instance_from_tags(self, instance_id, tags, config=None):
|
|
1901
|
+
def unbind_instance_from_tags(self, instance_id, tags, attachRelatedResourceTag, config=None):
|
|
1900
1902
|
"""
|
|
1901
1903
|
:param instance_id:
|
|
1902
1904
|
:param tags:
|
|
1905
|
+
:param attachRelatedResourceTag
|
|
1903
1906
|
:param config:
|
|
1904
1907
|
:return:
|
|
1905
1908
|
"""
|
|
@@ -1907,7 +1910,8 @@ class BccClient(bce_base_client.BceBaseClient):
|
|
|
1907
1910
|
path = b'/instance/%s/tag' % instance_id
|
|
1908
1911
|
tag_list = [tag.__dict__ for tag in tags]
|
|
1909
1912
|
body = {
|
|
1910
|
-
'changeTags': tag_list
|
|
1913
|
+
'changeTags': tag_list,
|
|
1914
|
+
'attachRelatedResourceTag': attachRelatedResourceTag
|
|
1911
1915
|
}
|
|
1912
1916
|
params = {
|
|
1913
1917
|
'unbind': None
|