Skip to content

Commit 40ddacd

Browse files
committed
feat: update api
1 parent 15c1736 commit 40ddacd

File tree

96 files changed

+10119
-49
lines changed

Some content is hidden

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

96 files changed

+10119
-49
lines changed

volcenginesdkclb/__init__.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,8 @@
9898
from volcenginesdkclb.models.health_check_for_describe_listener_attributes_output import HealthCheckForDescribeListenerAttributesOutput
9999
from volcenginesdkclb.models.health_check_for_describe_listeners_output import HealthCheckForDescribeListenersOutput
100100
from volcenginesdkclb.models.health_check_for_modify_listener_attributes_input import HealthCheckForModifyListenerAttributesInput
101+
from volcenginesdkclb.models.list_tags_for_resources_request import ListTagsForResourcesRequest
102+
from volcenginesdkclb.models.list_tags_for_resources_response import ListTagsForResourcesResponse
101103
from volcenginesdkclb.models.listener_for_describe_acl_attributes_output import ListenerForDescribeAclAttributesOutput
102104
from volcenginesdkclb.models.listener_for_describe_listeners_output import ListenerForDescribeListenersOutput
103105
from volcenginesdkclb.models.listener_for_describe_load_balancer_attributes_output import ListenerForDescribeLoadBalancerAttributesOutput
@@ -119,6 +121,7 @@
119121
from volcenginesdkclb.models.remove_server_group_backend_servers_response import RemoveServerGroupBackendServersResponse
120122
from volcenginesdkclb.models.renew_load_balancer_request import RenewLoadBalancerRequest
121123
from volcenginesdkclb.models.renew_load_balancer_response import RenewLoadBalancerResponse
124+
from volcenginesdkclb.models.resource_tag_for_list_tags_for_resources_output import ResourceTagForListTagsForResourcesOutput
122125
from volcenginesdkclb.models.result_for_describe_listener_health_output import ResultForDescribeListenerHealthOutput
123126
from volcenginesdkclb.models.rule_for_create_rules_input import RuleForCreateRulesInput
124127
from volcenginesdkclb.models.rule_for_describe_rules_output import RuleForDescribeRulesOutput
@@ -131,5 +134,15 @@
131134
from volcenginesdkclb.models.server_group_for_describe_server_groups_output import ServerGroupForDescribeServerGroupsOutput
132135
from volcenginesdkclb.models.set_load_balancer_renewal_request import SetLoadBalancerRenewalRequest
133136
from volcenginesdkclb.models.set_load_balancer_renewal_response import SetLoadBalancerRenewalResponse
137+
from volcenginesdkclb.models.tag_filter_for_describe_load_balancers_input import TagFilterForDescribeLoadBalancersInput
138+
from volcenginesdkclb.models.tag_filter_for_list_tags_for_resources_input import TagFilterForListTagsForResourcesInput
139+
from volcenginesdkclb.models.tag_for_create_load_balancer_input import TagForCreateLoadBalancerInput
140+
from volcenginesdkclb.models.tag_for_describe_load_balancer_attributes_output import TagForDescribeLoadBalancerAttributesOutput
141+
from volcenginesdkclb.models.tag_for_describe_load_balancers_output import TagForDescribeLoadBalancersOutput
142+
from volcenginesdkclb.models.tag_for_tag_resources_input import TagForTagResourcesInput
143+
from volcenginesdkclb.models.tag_resources_request import TagResourcesRequest
144+
from volcenginesdkclb.models.tag_resources_response import TagResourcesResponse
145+
from volcenginesdkclb.models.untag_resources_request import UntagResourcesRequest
146+
from volcenginesdkclb.models.untag_resources_response import UntagResourcesResponse
134147
from volcenginesdkclb.models.upload_certificate_request import UploadCertificateRequest
135148
from volcenginesdkclb.models.upload_certificate_response import UploadCertificateResponse

volcenginesdkclb/api/clb_api.py

Lines changed: 291 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3331,6 +3331,103 @@ def enable_access_log_with_http_info(self, body, **kwargs): # noqa: E501
33313331
_request_timeout=params.get('_request_timeout'),
33323332
collection_formats=collection_formats)
33333333

3334+
def list_tags_for_resources(self, body, **kwargs): # noqa: E501
3335+
"""list_tags_for_resources # noqa: E501
3336+
3337+
This method makes a synchronous HTTP request by default. To make an
3338+
asynchronous HTTP request, please pass async_req=True
3339+
>>> thread = api.list_tags_for_resources(body, async_req=True)
3340+
>>> result = thread.get()
3341+
3342+
:param async_req bool
3343+
:param ListTagsForResourcesRequest body: (required)
3344+
:return: ListTagsForResourcesResponse
3345+
If the method is called asynchronously,
3346+
returns the request thread.
3347+
"""
3348+
kwargs['_return_http_data_only'] = True
3349+
if kwargs.get('async_req'):
3350+
return self.list_tags_for_resources_with_http_info(body, **kwargs) # noqa: E501
3351+
else:
3352+
(data) = self.list_tags_for_resources_with_http_info(body, **kwargs) # noqa: E501
3353+
return data
3354+
3355+
def list_tags_for_resources_with_http_info(self, body, **kwargs): # noqa: E501
3356+
"""list_tags_for_resources # noqa: E501
3357+
3358+
This method makes a synchronous HTTP request by default. To make an
3359+
asynchronous HTTP request, please pass async_req=True
3360+
>>> thread = api.list_tags_for_resources_with_http_info(body, async_req=True)
3361+
>>> result = thread.get()
3362+
3363+
:param async_req bool
3364+
:param ListTagsForResourcesRequest body: (required)
3365+
:return: ListTagsForResourcesResponse
3366+
If the method is called asynchronously,
3367+
returns the request thread.
3368+
"""
3369+
3370+
all_params = ['body'] # noqa: E501
3371+
all_params.append('async_req')
3372+
all_params.append('_return_http_data_only')
3373+
all_params.append('_preload_content')
3374+
all_params.append('_request_timeout')
3375+
3376+
params = locals()
3377+
for key, val in six.iteritems(params['kwargs']):
3378+
if key not in all_params:
3379+
raise TypeError(
3380+
"Got an unexpected keyword argument '%s'"
3381+
" to method list_tags_for_resources" % key
3382+
)
3383+
params[key] = val
3384+
del params['kwargs']
3385+
# verify the required parameter 'body' is set
3386+
if self.api_client.client_side_validation and ('body' not in params or
3387+
params['body'] is None): # noqa: E501
3388+
raise ValueError("Missing the required parameter `body` when calling `list_tags_for_resources`") # noqa: E501
3389+
3390+
collection_formats = {}
3391+
3392+
path_params = {}
3393+
3394+
query_params = []
3395+
3396+
header_params = {}
3397+
3398+
form_params = []
3399+
local_var_files = {}
3400+
3401+
body_params = None
3402+
if 'body' in params:
3403+
body_params = params['body']
3404+
# HTTP header `Accept`
3405+
header_params['Accept'] = self.api_client.select_header_accept(
3406+
['application/json']) # noqa: E501
3407+
3408+
# HTTP header `Content-Type`
3409+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
3410+
['text/plain']) # noqa: E501
3411+
3412+
# Authentication setting
3413+
auth_settings = ['volcengineSign'] # noqa: E501
3414+
3415+
return self.api_client.call_api(
3416+
'/ListTagsForResources/2020-04-01/clb/get/', 'GET',
3417+
path_params,
3418+
query_params,
3419+
header_params,
3420+
body=body_params,
3421+
post_params=form_params,
3422+
files=local_var_files,
3423+
response_type='ListTagsForResourcesResponse', # noqa: E501
3424+
auth_settings=auth_settings,
3425+
async_req=params.get('async_req'),
3426+
_return_http_data_only=params.get('_return_http_data_only'),
3427+
_preload_content=params.get('_preload_content', True),
3428+
_request_timeout=params.get('_request_timeout'),
3429+
collection_formats=collection_formats)
3430+
33343431
def modify_acl_attributes(self, body, **kwargs): # noqa: E501
33353432
"""modify_acl_attributes # noqa: E501
33363433
@@ -4204,6 +4301,200 @@ def set_load_balancer_renewal_with_http_info(self, body, **kwargs): # noqa: E50
42044301
_request_timeout=params.get('_request_timeout'),
42054302
collection_formats=collection_formats)
42064303

4304+
def tag_resources(self, body, **kwargs): # noqa: E501
4305+
"""tag_resources # noqa: E501
4306+
4307+
This method makes a synchronous HTTP request by default. To make an
4308+
asynchronous HTTP request, please pass async_req=True
4309+
>>> thread = api.tag_resources(body, async_req=True)
4310+
>>> result = thread.get()
4311+
4312+
:param async_req bool
4313+
:param TagResourcesRequest body: (required)
4314+
:return: TagResourcesResponse
4315+
If the method is called asynchronously,
4316+
returns the request thread.
4317+
"""
4318+
kwargs['_return_http_data_only'] = True
4319+
if kwargs.get('async_req'):
4320+
return self.tag_resources_with_http_info(body, **kwargs) # noqa: E501
4321+
else:
4322+
(data) = self.tag_resources_with_http_info(body, **kwargs) # noqa: E501
4323+
return data
4324+
4325+
def tag_resources_with_http_info(self, body, **kwargs): # noqa: E501
4326+
"""tag_resources # noqa: E501
4327+
4328+
This method makes a synchronous HTTP request by default. To make an
4329+
asynchronous HTTP request, please pass async_req=True
4330+
>>> thread = api.tag_resources_with_http_info(body, async_req=True)
4331+
>>> result = thread.get()
4332+
4333+
:param async_req bool
4334+
:param TagResourcesRequest body: (required)
4335+
:return: TagResourcesResponse
4336+
If the method is called asynchronously,
4337+
returns the request thread.
4338+
"""
4339+
4340+
all_params = ['body'] # noqa: E501
4341+
all_params.append('async_req')
4342+
all_params.append('_return_http_data_only')
4343+
all_params.append('_preload_content')
4344+
all_params.append('_request_timeout')
4345+
4346+
params = locals()
4347+
for key, val in six.iteritems(params['kwargs']):
4348+
if key not in all_params:
4349+
raise TypeError(
4350+
"Got an unexpected keyword argument '%s'"
4351+
" to method tag_resources" % key
4352+
)
4353+
params[key] = val
4354+
del params['kwargs']
4355+
# verify the required parameter 'body' is set
4356+
if self.api_client.client_side_validation and ('body' not in params or
4357+
params['body'] is None): # noqa: E501
4358+
raise ValueError("Missing the required parameter `body` when calling `tag_resources`") # noqa: E501
4359+
4360+
collection_formats = {}
4361+
4362+
path_params = {}
4363+
4364+
query_params = []
4365+
4366+
header_params = {}
4367+
4368+
form_params = []
4369+
local_var_files = {}
4370+
4371+
body_params = None
4372+
if 'body' in params:
4373+
body_params = params['body']
4374+
# HTTP header `Accept`
4375+
header_params['Accept'] = self.api_client.select_header_accept(
4376+
['application/json']) # noqa: E501
4377+
4378+
# HTTP header `Content-Type`
4379+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
4380+
['text/plain']) # noqa: E501
4381+
4382+
# Authentication setting
4383+
auth_settings = ['volcengineSign'] # noqa: E501
4384+
4385+
return self.api_client.call_api(
4386+
'/TagResources/2020-04-01/clb/get/', 'GET',
4387+
path_params,
4388+
query_params,
4389+
header_params,
4390+
body=body_params,
4391+
post_params=form_params,
4392+
files=local_var_files,
4393+
response_type='TagResourcesResponse', # noqa: E501
4394+
auth_settings=auth_settings,
4395+
async_req=params.get('async_req'),
4396+
_return_http_data_only=params.get('_return_http_data_only'),
4397+
_preload_content=params.get('_preload_content', True),
4398+
_request_timeout=params.get('_request_timeout'),
4399+
collection_formats=collection_formats)
4400+
4401+
def untag_resources(self, body, **kwargs): # noqa: E501
4402+
"""untag_resources # noqa: E501
4403+
4404+
This method makes a synchronous HTTP request by default. To make an
4405+
asynchronous HTTP request, please pass async_req=True
4406+
>>> thread = api.untag_resources(body, async_req=True)
4407+
>>> result = thread.get()
4408+
4409+
:param async_req bool
4410+
:param UntagResourcesRequest body: (required)
4411+
:return: UntagResourcesResponse
4412+
If the method is called asynchronously,
4413+
returns the request thread.
4414+
"""
4415+
kwargs['_return_http_data_only'] = True
4416+
if kwargs.get('async_req'):
4417+
return self.untag_resources_with_http_info(body, **kwargs) # noqa: E501
4418+
else:
4419+
(data) = self.untag_resources_with_http_info(body, **kwargs) # noqa: E501
4420+
return data
4421+
4422+
def untag_resources_with_http_info(self, body, **kwargs): # noqa: E501
4423+
"""untag_resources # noqa: E501
4424+
4425+
This method makes a synchronous HTTP request by default. To make an
4426+
asynchronous HTTP request, please pass async_req=True
4427+
>>> thread = api.untag_resources_with_http_info(body, async_req=True)
4428+
>>> result = thread.get()
4429+
4430+
:param async_req bool
4431+
:param UntagResourcesRequest body: (required)
4432+
:return: UntagResourcesResponse
4433+
If the method is called asynchronously,
4434+
returns the request thread.
4435+
"""
4436+
4437+
all_params = ['body'] # noqa: E501
4438+
all_params.append('async_req')
4439+
all_params.append('_return_http_data_only')
4440+
all_params.append('_preload_content')
4441+
all_params.append('_request_timeout')
4442+
4443+
params = locals()
4444+
for key, val in six.iteritems(params['kwargs']):
4445+
if key not in all_params:
4446+
raise TypeError(
4447+
"Got an unexpected keyword argument '%s'"
4448+
" to method untag_resources" % key
4449+
)
4450+
params[key] = val
4451+
del params['kwargs']
4452+
# verify the required parameter 'body' is set
4453+
if self.api_client.client_side_validation and ('body' not in params or
4454+
params['body'] is None): # noqa: E501
4455+
raise ValueError("Missing the required parameter `body` when calling `untag_resources`") # noqa: E501
4456+
4457+
collection_formats = {}
4458+
4459+
path_params = {}
4460+
4461+
query_params = []
4462+
4463+
header_params = {}
4464+
4465+
form_params = []
4466+
local_var_files = {}
4467+
4468+
body_params = None
4469+
if 'body' in params:
4470+
body_params = params['body']
4471+
# HTTP header `Accept`
4472+
header_params['Accept'] = self.api_client.select_header_accept(
4473+
['application/json']) # noqa: E501
4474+
4475+
# HTTP header `Content-Type`
4476+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
4477+
['text/plain']) # noqa: E501
4478+
4479+
# Authentication setting
4480+
auth_settings = ['volcengineSign'] # noqa: E501
4481+
4482+
return self.api_client.call_api(
4483+
'/UntagResources/2020-04-01/clb/get/', 'GET',
4484+
path_params,
4485+
query_params,
4486+
header_params,
4487+
body=body_params,
4488+
post_params=form_params,
4489+
files=local_var_files,
4490+
response_type='UntagResourcesResponse', # noqa: E501
4491+
auth_settings=auth_settings,
4492+
async_req=params.get('async_req'),
4493+
_return_http_data_only=params.get('_return_http_data_only'),
4494+
_preload_content=params.get('_preload_content', True),
4495+
_request_timeout=params.get('_request_timeout'),
4496+
collection_formats=collection_formats)
4497+
42074498
def upload_certificate(self, body, **kwargs): # noqa: E501
42084499
"""upload_certificate # noqa: E501
42094500

volcenginesdkclb/models/__init__.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@
9494
from volcenginesdkclb.models.health_check_for_describe_listener_attributes_output import HealthCheckForDescribeListenerAttributesOutput
9595
from volcenginesdkclb.models.health_check_for_describe_listeners_output import HealthCheckForDescribeListenersOutput
9696
from volcenginesdkclb.models.health_check_for_modify_listener_attributes_input import HealthCheckForModifyListenerAttributesInput
97+
from volcenginesdkclb.models.list_tags_for_resources_request import ListTagsForResourcesRequest
98+
from volcenginesdkclb.models.list_tags_for_resources_response import ListTagsForResourcesResponse
9799
from volcenginesdkclb.models.listener_for_describe_acl_attributes_output import ListenerForDescribeAclAttributesOutput
98100
from volcenginesdkclb.models.listener_for_describe_listeners_output import ListenerForDescribeListenersOutput
99101
from volcenginesdkclb.models.listener_for_describe_load_balancer_attributes_output import ListenerForDescribeLoadBalancerAttributesOutput
@@ -115,6 +117,7 @@
115117
from volcenginesdkclb.models.remove_server_group_backend_servers_response import RemoveServerGroupBackendServersResponse
116118
from volcenginesdkclb.models.renew_load_balancer_request import RenewLoadBalancerRequest
117119
from volcenginesdkclb.models.renew_load_balancer_response import RenewLoadBalancerResponse
120+
from volcenginesdkclb.models.resource_tag_for_list_tags_for_resources_output import ResourceTagForListTagsForResourcesOutput
118121
from volcenginesdkclb.models.result_for_describe_listener_health_output import ResultForDescribeListenerHealthOutput
119122
from volcenginesdkclb.models.rule_for_create_rules_input import RuleForCreateRulesInput
120123
from volcenginesdkclb.models.rule_for_describe_rules_output import RuleForDescribeRulesOutput
@@ -127,5 +130,15 @@
127130
from volcenginesdkclb.models.server_group_for_describe_server_groups_output import ServerGroupForDescribeServerGroupsOutput
128131
from volcenginesdkclb.models.set_load_balancer_renewal_request import SetLoadBalancerRenewalRequest
129132
from volcenginesdkclb.models.set_load_balancer_renewal_response import SetLoadBalancerRenewalResponse
133+
from volcenginesdkclb.models.tag_filter_for_describe_load_balancers_input import TagFilterForDescribeLoadBalancersInput
134+
from volcenginesdkclb.models.tag_filter_for_list_tags_for_resources_input import TagFilterForListTagsForResourcesInput
135+
from volcenginesdkclb.models.tag_for_create_load_balancer_input import TagForCreateLoadBalancerInput
136+
from volcenginesdkclb.models.tag_for_describe_load_balancer_attributes_output import TagForDescribeLoadBalancerAttributesOutput
137+
from volcenginesdkclb.models.tag_for_describe_load_balancers_output import TagForDescribeLoadBalancersOutput
138+
from volcenginesdkclb.models.tag_for_tag_resources_input import TagForTagResourcesInput
139+
from volcenginesdkclb.models.tag_resources_request import TagResourcesRequest
140+
from volcenginesdkclb.models.tag_resources_response import TagResourcesResponse
141+
from volcenginesdkclb.models.untag_resources_request import UntagResourcesRequest
142+
from volcenginesdkclb.models.untag_resources_response import UntagResourcesResponse
130143
from volcenginesdkclb.models.upload_certificate_request import UploadCertificateRequest
131144
from volcenginesdkclb.models.upload_certificate_response import UploadCertificateResponse

0 commit comments

Comments
 (0)