Skip to content

Commit 7a04204

Browse files
author
ci_volc_sdk_gen
committed
feat: auto generate for organization-Python-2022-01-01-online-1186-2025_05_21_17_09_06
1 parent 76969ee commit 7a04204

File tree

12 files changed

+925
-5
lines changed

12 files changed

+925
-5
lines changed

meta.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"lasted": "3.0.2",
3-
"meta_commit": "3ab604af6041e27d5f3fdf33a715978cc2e3c5a1"
2+
"lasted": "3.0.3",
3+
"meta_commit": "38ff2d4d01e0cc275845097d8088f52668305126"
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 = "3.0.2"
6+
VERSION = "3.0.3"
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
@@ -63,7 +63,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None,
6363
self.default_headers[header_name] = header_value
6464
self.cookie = cookie
6565
# Set default User-Agent.
66-
self.user_agent = 'volcstack-python-sdk/3.0.2'
66+
self.user_agent = 'volcstack-python-sdk/3.0.3'
6767
self.client_side_validation = configuration.client_side_validation
6868

6969
self.interceptor_chain = InterceptorChain()

volcenginesdkcore/configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,5 +257,5 @@ def to_debug_report(self):
257257
"OS: {env}\n" \
258258
"Python Version: {pyversion}\n" \
259259
"Version of the API: 0.1.0\n" \
260-
"SDK Package Version: 3.0.2".\
260+
"SDK Package Version: 3.0.3".\
261261
format(env=sys.platform, pyversion=sys.version)

volcenginesdkorganization/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,12 @@
114114
from volcenginesdkorganization.models.sub_unit_list_for_list_organizational_units_for_parent_output import SubUnitListForListOrganizationalUnitsForParentOutput
115115
from volcenginesdkorganization.models.sub_unit_list_for_list_organizational_units_output import SubUnitListForListOrganizationalUnitsOutput
116116
from volcenginesdkorganization.models.tag_for_list_accounts_output import TagForListAccountsOutput
117+
from volcenginesdkorganization.models.tag_for_tag_resources_input import TagForTagResourcesInput
118+
from volcenginesdkorganization.models.tag_resources_request import TagResourcesRequest
119+
from volcenginesdkorganization.models.tag_resources_response import TagResourcesResponse
117120
from volcenginesdkorganization.models.target_for_list_targets_for_policy_output import TargetForListTargetsForPolicyOutput
121+
from volcenginesdkorganization.models.untag_resources_request import UntagResourcesRequest
122+
from volcenginesdkorganization.models.untag_resources_response import UntagResourcesResponse
118123
from volcenginesdkorganization.models.update_account_request import UpdateAccountRequest
119124
from volcenginesdkorganization.models.update_account_response import UpdateAccountResponse
120125
from volcenginesdkorganization.models.update_organizational_unit_request import UpdateOrganizationalUnitRequest

volcenginesdkorganization/api/organization_api.py

Lines changed: 194 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4010,6 +4010,200 @@ def retry_change_account_secure_contact_info_with_http_info(self, body, **kwargs
40104010
_request_timeout=params.get('_request_timeout'),
40114011
collection_formats=collection_formats)
40124012

4013+
def tag_resources(self, body, **kwargs): # noqa: E501
4014+
"""tag_resources # noqa: E501
4015+
4016+
This method makes a synchronous HTTP request by default. To make an
4017+
asynchronous HTTP request, please pass async_req=True
4018+
>>> thread = api.tag_resources(body, async_req=True)
4019+
>>> result = thread.get()
4020+
4021+
:param async_req bool
4022+
:param TagResourcesRequest body: (required)
4023+
:return: TagResourcesResponse
4024+
If the method is called asynchronously,
4025+
returns the request thread.
4026+
"""
4027+
kwargs['_return_http_data_only'] = True
4028+
if kwargs.get('async_req'):
4029+
return self.tag_resources_with_http_info(body, **kwargs) # noqa: E501
4030+
else:
4031+
(data) = self.tag_resources_with_http_info(body, **kwargs) # noqa: E501
4032+
return data
4033+
4034+
def tag_resources_with_http_info(self, body, **kwargs): # noqa: E501
4035+
"""tag_resources # noqa: E501
4036+
4037+
This method makes a synchronous HTTP request by default. To make an
4038+
asynchronous HTTP request, please pass async_req=True
4039+
>>> thread = api.tag_resources_with_http_info(body, async_req=True)
4040+
>>> result = thread.get()
4041+
4042+
:param async_req bool
4043+
:param TagResourcesRequest body: (required)
4044+
:return: TagResourcesResponse
4045+
If the method is called asynchronously,
4046+
returns the request thread.
4047+
"""
4048+
4049+
all_params = ['body'] # noqa: E501
4050+
all_params.append('async_req')
4051+
all_params.append('_return_http_data_only')
4052+
all_params.append('_preload_content')
4053+
all_params.append('_request_timeout')
4054+
4055+
params = locals()
4056+
for key, val in six.iteritems(params['kwargs']):
4057+
if key not in all_params:
4058+
raise TypeError(
4059+
"Got an unexpected keyword argument '%s'"
4060+
" to method tag_resources" % key
4061+
)
4062+
params[key] = val
4063+
del params['kwargs']
4064+
# verify the required parameter 'body' is set
4065+
if self.api_client.client_side_validation and ('body' not in params or
4066+
params['body'] is None): # noqa: E501
4067+
raise ValueError("Missing the required parameter `body` when calling `tag_resources`") # noqa: E501
4068+
4069+
collection_formats = {}
4070+
4071+
path_params = {}
4072+
4073+
query_params = []
4074+
4075+
header_params = {}
4076+
4077+
form_params = []
4078+
local_var_files = {}
4079+
4080+
body_params = None
4081+
if 'body' in params:
4082+
body_params = params['body']
4083+
# HTTP header `Accept`
4084+
header_params['Accept'] = self.api_client.select_header_accept(
4085+
['application/json']) # noqa: E501
4086+
4087+
# HTTP header `Content-Type`
4088+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
4089+
['text/plain']) # noqa: E501
4090+
4091+
# Authentication setting
4092+
auth_settings = ['volcengineSign'] # noqa: E501
4093+
4094+
return self.api_client.call_api(
4095+
'/TagResources/2022-01-01/organization/get/text_plain/', 'GET',
4096+
path_params,
4097+
query_params,
4098+
header_params,
4099+
body=body_params,
4100+
post_params=form_params,
4101+
files=local_var_files,
4102+
response_type='TagResourcesResponse', # noqa: E501
4103+
auth_settings=auth_settings,
4104+
async_req=params.get('async_req'),
4105+
_return_http_data_only=params.get('_return_http_data_only'),
4106+
_preload_content=params.get('_preload_content', True),
4107+
_request_timeout=params.get('_request_timeout'),
4108+
collection_formats=collection_formats)
4109+
4110+
def untag_resources(self, body, **kwargs): # noqa: E501
4111+
"""untag_resources # noqa: E501
4112+
4113+
This method makes a synchronous HTTP request by default. To make an
4114+
asynchronous HTTP request, please pass async_req=True
4115+
>>> thread = api.untag_resources(body, async_req=True)
4116+
>>> result = thread.get()
4117+
4118+
:param async_req bool
4119+
:param UntagResourcesRequest body: (required)
4120+
:return: UntagResourcesResponse
4121+
If the method is called asynchronously,
4122+
returns the request thread.
4123+
"""
4124+
kwargs['_return_http_data_only'] = True
4125+
if kwargs.get('async_req'):
4126+
return self.untag_resources_with_http_info(body, **kwargs) # noqa: E501
4127+
else:
4128+
(data) = self.untag_resources_with_http_info(body, **kwargs) # noqa: E501
4129+
return data
4130+
4131+
def untag_resources_with_http_info(self, body, **kwargs): # noqa: E501
4132+
"""untag_resources # noqa: E501
4133+
4134+
This method makes a synchronous HTTP request by default. To make an
4135+
asynchronous HTTP request, please pass async_req=True
4136+
>>> thread = api.untag_resources_with_http_info(body, async_req=True)
4137+
>>> result = thread.get()
4138+
4139+
:param async_req bool
4140+
:param UntagResourcesRequest body: (required)
4141+
:return: UntagResourcesResponse
4142+
If the method is called asynchronously,
4143+
returns the request thread.
4144+
"""
4145+
4146+
all_params = ['body'] # noqa: E501
4147+
all_params.append('async_req')
4148+
all_params.append('_return_http_data_only')
4149+
all_params.append('_preload_content')
4150+
all_params.append('_request_timeout')
4151+
4152+
params = locals()
4153+
for key, val in six.iteritems(params['kwargs']):
4154+
if key not in all_params:
4155+
raise TypeError(
4156+
"Got an unexpected keyword argument '%s'"
4157+
" to method untag_resources" % key
4158+
)
4159+
params[key] = val
4160+
del params['kwargs']
4161+
# verify the required parameter 'body' is set
4162+
if self.api_client.client_side_validation and ('body' not in params or
4163+
params['body'] is None): # noqa: E501
4164+
raise ValueError("Missing the required parameter `body` when calling `untag_resources`") # noqa: E501
4165+
4166+
collection_formats = {}
4167+
4168+
path_params = {}
4169+
4170+
query_params = []
4171+
4172+
header_params = {}
4173+
4174+
form_params = []
4175+
local_var_files = {}
4176+
4177+
body_params = None
4178+
if 'body' in params:
4179+
body_params = params['body']
4180+
# HTTP header `Accept`
4181+
header_params['Accept'] = self.api_client.select_header_accept(
4182+
['application/json']) # noqa: E501
4183+
4184+
# HTTP header `Content-Type`
4185+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
4186+
['text/plain']) # noqa: E501
4187+
4188+
# Authentication setting
4189+
auth_settings = ['volcengineSign'] # noqa: E501
4190+
4191+
return self.api_client.call_api(
4192+
'/UntagResources/2022-01-01/organization/get/text_plain/', 'GET',
4193+
path_params,
4194+
query_params,
4195+
header_params,
4196+
body=body_params,
4197+
post_params=form_params,
4198+
files=local_var_files,
4199+
response_type='UntagResourcesResponse', # noqa: E501
4200+
auth_settings=auth_settings,
4201+
async_req=params.get('async_req'),
4202+
_return_http_data_only=params.get('_return_http_data_only'),
4203+
_preload_content=params.get('_preload_content', True),
4204+
_request_timeout=params.get('_request_timeout'),
4205+
collection_formats=collection_formats)
4206+
40134207
def update_account(self, body, **kwargs): # noqa: E501
40144208
"""update_account # noqa: E501
40154209

volcenginesdkorganization/models/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,12 @@
110110
from volcenginesdkorganization.models.sub_unit_list_for_list_organizational_units_for_parent_output import SubUnitListForListOrganizationalUnitsForParentOutput
111111
from volcenginesdkorganization.models.sub_unit_list_for_list_organizational_units_output import SubUnitListForListOrganizationalUnitsOutput
112112
from volcenginesdkorganization.models.tag_for_list_accounts_output import TagForListAccountsOutput
113+
from volcenginesdkorganization.models.tag_for_tag_resources_input import TagForTagResourcesInput
114+
from volcenginesdkorganization.models.tag_resources_request import TagResourcesRequest
115+
from volcenginesdkorganization.models.tag_resources_response import TagResourcesResponse
113116
from volcenginesdkorganization.models.target_for_list_targets_for_policy_output import TargetForListTargetsForPolicyOutput
117+
from volcenginesdkorganization.models.untag_resources_request import UntagResourcesRequest
118+
from volcenginesdkorganization.models.untag_resources_response import UntagResourcesResponse
114119
from volcenginesdkorganization.models.update_account_request import UpdateAccountRequest
115120
from volcenginesdkorganization.models.update_account_response import UpdateAccountResponse
116121
from volcenginesdkorganization.models.update_organizational_unit_request import UpdateOrganizationalUnitRequest

0 commit comments

Comments
 (0)