Skip to content

Commit 8007c68

Browse files
author
ci_volc_sdk_gen
committed
feat: auto generate for iam-Python-2018-01-01-online-2202-2026_01_21_16_09_01
1 parent 98df6fb commit 8007c68

17 files changed

Lines changed: 991 additions & 301 deletions

meta.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"lasted": "5.0.6",
3-
"meta_commit": "c052315a28392795bc22f23aa97730902f8f998a"
2+
"lasted": "5.0.7",
3+
"meta_commit": "223c762395da5686a293f47bff1b1171700df1c4"
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 = "5.0.6"
3+
version = "5.0.7"
44
authors = [
55
{name = "volc-engine", email = "volc-sdk-team@bytedance.com"},
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 = "5.0.6"
6+
VERSION = "5.0.7"
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/5.0.6'
67+
self.user_agent = 'volcstack-python-sdk/5.0.7'
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: 5.0.6".\
275+
"SDK Package Version: 5.0.7".\
276276
format(env=sys.platform, pyversion=sys.version)
277277

278278
@property

volcenginesdkiam/__init__.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,8 @@
9090
from volcenginesdkiam.models.get_access_key_last_used_response import GetAccessKeyLastUsedResponse
9191
from volcenginesdkiam.models.get_account_summary_request import GetAccountSummaryRequest
9292
from volcenginesdkiam.models.get_account_summary_response import GetAccountSummaryResponse
93+
from volcenginesdkiam.models.get_allowed_ip_addresses_request import GetAllowedIPAddressesRequest
94+
from volcenginesdkiam.models.get_allowed_ip_addresses_response import GetAllowedIPAddressesResponse
9395
from volcenginesdkiam.models.get_group_request import GetGroupRequest
9496
from volcenginesdkiam.models.get_group_response import GetGroupResponse
9597
from volcenginesdkiam.models.get_login_profile_request import GetLoginProfileRequest
@@ -108,6 +110,8 @@
108110
from volcenginesdkiam.models.get_security_config_response import GetSecurityConfigResponse
109111
from volcenginesdkiam.models.get_user_request import GetUserRequest
110112
from volcenginesdkiam.models.get_user_response import GetUserResponse
113+
from volcenginesdkiam.models.ip_list_for_get_allowed_ip_addresses_output import IPListForGetAllowedIPAddressesOutput
114+
from volcenginesdkiam.models.ip_list_for_update_allowed_ip_addresses_input import IPListForUpdateAllowedIPAddressesInput
111115
from volcenginesdkiam.models.identity_provider_for_list_identity_providers_output import IdentityProviderForListIdentityProvidersOutput
112116
from volcenginesdkiam.models.list_access_keys_request import ListAccessKeysRequest
113117
from volcenginesdkiam.models.list_access_keys_response import ListAccessKeysResponse
@@ -156,8 +160,6 @@
156160
from volcenginesdkiam.models.policy_scope_for_list_entities_for_policy_output import PolicyScopeForListEntitiesForPolicyOutput
157161
from volcenginesdkiam.models.policy_user_for_list_entities_for_policy_output import PolicyUserForListEntitiesForPolicyOutput
158162
from volcenginesdkiam.models.policy_user_group_for_list_entities_for_policy_output import PolicyUserGroupForListEntitiesForPolicyOutput
159-
from volcenginesdkiam.models.recover_access_key_request import RecoverAccessKeyRequest
160-
from volcenginesdkiam.models.recover_access_key_response import RecoverAccessKeyResponse
161163
from volcenginesdkiam.models.remove_client_id_from_oidc_provider_request import RemoveClientIDFromOIDCProviderRequest
162164
from volcenginesdkiam.models.remove_client_id_from_oidc_provider_response import RemoveClientIDFromOIDCProviderResponse
163165
from volcenginesdkiam.models.remove_saml_provider_certificate_request import RemoveSAMLProviderCertificateRequest
@@ -192,6 +194,8 @@
192194
from volcenginesdkiam.models.untag_resources_response import UntagResourcesResponse
193195
from volcenginesdkiam.models.update_access_key_request import UpdateAccessKeyRequest
194196
from volcenginesdkiam.models.update_access_key_response import UpdateAccessKeyResponse
197+
from volcenginesdkiam.models.update_allowed_ip_addresses_request import UpdateAllowedIPAddressesRequest
198+
from volcenginesdkiam.models.update_allowed_ip_addresses_response import UpdateAllowedIPAddressesResponse
195199
from volcenginesdkiam.models.update_group_request import UpdateGroupRequest
196200
from volcenginesdkiam.models.update_group_response import UpdateGroupResponse
197201
from volcenginesdkiam.models.update_login_profile_request import UpdateLoginProfileRequest

volcenginesdkiam/api/iam_api.py

Lines changed: 194 additions & 97 deletions
Original file line numberDiff line numberDiff line change
@@ -3137,6 +3137,103 @@ def get_account_summary_with_http_info(self, body, **kwargs): # noqa: E501
31373137
_request_timeout=params.get('_request_timeout'),
31383138
collection_formats=collection_formats)
31393139

3140+
def get_allowed_ip_addresses(self, body, **kwargs): # noqa: E501
3141+
"""get_allowed_ip_addresses # noqa: E501
3142+
3143+
This method makes a synchronous HTTP request by default. To make an
3144+
asynchronous HTTP request, please pass async_req=True
3145+
>>> thread = api.get_allowed_ip_addresses(body, async_req=True)
3146+
>>> result = thread.get()
3147+
3148+
:param async_req bool
3149+
:param GetAllowedIPAddressesRequest body: (required)
3150+
:return: GetAllowedIPAddressesResponse
3151+
If the method is called asynchronously,
3152+
returns the request thread.
3153+
"""
3154+
kwargs['_return_http_data_only'] = True
3155+
if kwargs.get('async_req'):
3156+
return self.get_allowed_ip_addresses_with_http_info(body, **kwargs) # noqa: E501
3157+
else:
3158+
(data) = self.get_allowed_ip_addresses_with_http_info(body, **kwargs) # noqa: E501
3159+
return data
3160+
3161+
def get_allowed_ip_addresses_with_http_info(self, body, **kwargs): # noqa: E501
3162+
"""get_allowed_ip_addresses # noqa: E501
3163+
3164+
This method makes a synchronous HTTP request by default. To make an
3165+
asynchronous HTTP request, please pass async_req=True
3166+
>>> thread = api.get_allowed_ip_addresses_with_http_info(body, async_req=True)
3167+
>>> result = thread.get()
3168+
3169+
:param async_req bool
3170+
:param GetAllowedIPAddressesRequest body: (required)
3171+
:return: GetAllowedIPAddressesResponse
3172+
If the method is called asynchronously,
3173+
returns the request thread.
3174+
"""
3175+
3176+
all_params = ['body'] # noqa: E501
3177+
all_params.append('async_req')
3178+
all_params.append('_return_http_data_only')
3179+
all_params.append('_preload_content')
3180+
all_params.append('_request_timeout')
3181+
3182+
params = locals()
3183+
for key, val in six.iteritems(params['kwargs']):
3184+
if key not in all_params:
3185+
raise TypeError(
3186+
"Got an unexpected keyword argument '%s'"
3187+
" to method get_allowed_ip_addresses" % key
3188+
)
3189+
params[key] = val
3190+
del params['kwargs']
3191+
# verify the required parameter 'body' is set
3192+
if self.api_client.client_side_validation and ('body' not in params or
3193+
params['body'] is None): # noqa: E501
3194+
raise ValueError("Missing the required parameter `body` when calling `get_allowed_ip_addresses`") # noqa: E501
3195+
3196+
collection_formats = {}
3197+
3198+
path_params = {}
3199+
3200+
query_params = []
3201+
3202+
header_params = {}
3203+
3204+
form_params = []
3205+
local_var_files = {}
3206+
3207+
body_params = None
3208+
if 'body' in params:
3209+
body_params = params['body']
3210+
# HTTP header `Accept`
3211+
header_params['Accept'] = self.api_client.select_header_accept(
3212+
['application/json']) # noqa: E501
3213+
3214+
# HTTP header `Content-Type`
3215+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
3216+
['application/json']) # noqa: E501
3217+
3218+
# Authentication setting
3219+
auth_settings = ['volcengineSign'] # noqa: E501
3220+
3221+
return self.api_client.call_api(
3222+
'/GetAllowedIPAddresses/2018-01-01/iam/post/application_json/', 'POST',
3223+
path_params,
3224+
query_params,
3225+
header_params,
3226+
body=body_params,
3227+
post_params=form_params,
3228+
files=local_var_files,
3229+
response_type='GetAllowedIPAddressesResponse', # noqa: E501
3230+
auth_settings=auth_settings,
3231+
async_req=params.get('async_req'),
3232+
_return_http_data_only=params.get('_return_http_data_only'),
3233+
_preload_content=params.get('_preload_content', True),
3234+
_request_timeout=params.get('_request_timeout'),
3235+
collection_formats=collection_formats)
3236+
31403237
def get_group(self, body, **kwargs): # noqa: E501
31413238
"""get_group # noqa: E501
31423239
@@ -5562,103 +5659,6 @@ def list_users_for_group_with_http_info(self, body, **kwargs): # noqa: E501
55625659
_request_timeout=params.get('_request_timeout'),
55635660
collection_formats=collection_formats)
55645661

5565-
def recover_access_key(self, body, **kwargs): # noqa: E501
5566-
"""recover_access_key # noqa: E501
5567-
5568-
This method makes a synchronous HTTP request by default. To make an
5569-
asynchronous HTTP request, please pass async_req=True
5570-
>>> thread = api.recover_access_key(body, async_req=True)
5571-
>>> result = thread.get()
5572-
5573-
:param async_req bool
5574-
:param RecoverAccessKeyRequest body: (required)
5575-
:return: RecoverAccessKeyResponse
5576-
If the method is called asynchronously,
5577-
returns the request thread.
5578-
"""
5579-
kwargs['_return_http_data_only'] = True
5580-
if kwargs.get('async_req'):
5581-
return self.recover_access_key_with_http_info(body, **kwargs) # noqa: E501
5582-
else:
5583-
(data) = self.recover_access_key_with_http_info(body, **kwargs) # noqa: E501
5584-
return data
5585-
5586-
def recover_access_key_with_http_info(self, body, **kwargs): # noqa: E501
5587-
"""recover_access_key # noqa: E501
5588-
5589-
This method makes a synchronous HTTP request by default. To make an
5590-
asynchronous HTTP request, please pass async_req=True
5591-
>>> thread = api.recover_access_key_with_http_info(body, async_req=True)
5592-
>>> result = thread.get()
5593-
5594-
:param async_req bool
5595-
:param RecoverAccessKeyRequest body: (required)
5596-
:return: RecoverAccessKeyResponse
5597-
If the method is called asynchronously,
5598-
returns the request thread.
5599-
"""
5600-
5601-
all_params = ['body'] # noqa: E501
5602-
all_params.append('async_req')
5603-
all_params.append('_return_http_data_only')
5604-
all_params.append('_preload_content')
5605-
all_params.append('_request_timeout')
5606-
5607-
params = locals()
5608-
for key, val in six.iteritems(params['kwargs']):
5609-
if key not in all_params:
5610-
raise TypeError(
5611-
"Got an unexpected keyword argument '%s'"
5612-
" to method recover_access_key" % key
5613-
)
5614-
params[key] = val
5615-
del params['kwargs']
5616-
# verify the required parameter 'body' is set
5617-
if self.api_client.client_side_validation and ('body' not in params or
5618-
params['body'] is None): # noqa: E501
5619-
raise ValueError("Missing the required parameter `body` when calling `recover_access_key`") # noqa: E501
5620-
5621-
collection_formats = {}
5622-
5623-
path_params = {}
5624-
5625-
query_params = []
5626-
5627-
header_params = {}
5628-
5629-
form_params = []
5630-
local_var_files = {}
5631-
5632-
body_params = None
5633-
if 'body' in params:
5634-
body_params = params['body']
5635-
# HTTP header `Accept`
5636-
header_params['Accept'] = self.api_client.select_header_accept(
5637-
['application/json']) # noqa: E501
5638-
5639-
# HTTP header `Content-Type`
5640-
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
5641-
['text/plain']) # noqa: E501
5642-
5643-
# Authentication setting
5644-
auth_settings = ['volcengineSign'] # noqa: E501
5645-
5646-
return self.api_client.call_api(
5647-
'/RecoverAccessKey/2018-01-01/iam/get/text_plain/', 'GET',
5648-
path_params,
5649-
query_params,
5650-
header_params,
5651-
body=body_params,
5652-
post_params=form_params,
5653-
files=local_var_files,
5654-
response_type='RecoverAccessKeyResponse', # noqa: E501
5655-
auth_settings=auth_settings,
5656-
async_req=params.get('async_req'),
5657-
_return_http_data_only=params.get('_return_http_data_only'),
5658-
_preload_content=params.get('_preload_content', True),
5659-
_request_timeout=params.get('_request_timeout'),
5660-
collection_formats=collection_formats)
5661-
56625662
def remove_client_id_from_oidc_provider(self, body, **kwargs): # noqa: E501
56635663
"""remove_client_id_from_oidc_provider # noqa: E501
56645664
@@ -6435,6 +6435,103 @@ def update_access_key_with_http_info(self, body, **kwargs): # noqa: E501
64356435
_request_timeout=params.get('_request_timeout'),
64366436
collection_formats=collection_formats)
64376437

6438+
def update_allowed_ip_addresses(self, body, **kwargs): # noqa: E501
6439+
"""update_allowed_ip_addresses # noqa: E501
6440+
6441+
This method makes a synchronous HTTP request by default. To make an
6442+
asynchronous HTTP request, please pass async_req=True
6443+
>>> thread = api.update_allowed_ip_addresses(body, async_req=True)
6444+
>>> result = thread.get()
6445+
6446+
:param async_req bool
6447+
:param UpdateAllowedIPAddressesRequest body: (required)
6448+
:return: UpdateAllowedIPAddressesResponse
6449+
If the method is called asynchronously,
6450+
returns the request thread.
6451+
"""
6452+
kwargs['_return_http_data_only'] = True
6453+
if kwargs.get('async_req'):
6454+
return self.update_allowed_ip_addresses_with_http_info(body, **kwargs) # noqa: E501
6455+
else:
6456+
(data) = self.update_allowed_ip_addresses_with_http_info(body, **kwargs) # noqa: E501
6457+
return data
6458+
6459+
def update_allowed_ip_addresses_with_http_info(self, body, **kwargs): # noqa: E501
6460+
"""update_allowed_ip_addresses # noqa: E501
6461+
6462+
This method makes a synchronous HTTP request by default. To make an
6463+
asynchronous HTTP request, please pass async_req=True
6464+
>>> thread = api.update_allowed_ip_addresses_with_http_info(body, async_req=True)
6465+
>>> result = thread.get()
6466+
6467+
:param async_req bool
6468+
:param UpdateAllowedIPAddressesRequest body: (required)
6469+
:return: UpdateAllowedIPAddressesResponse
6470+
If the method is called asynchronously,
6471+
returns the request thread.
6472+
"""
6473+
6474+
all_params = ['body'] # noqa: E501
6475+
all_params.append('async_req')
6476+
all_params.append('_return_http_data_only')
6477+
all_params.append('_preload_content')
6478+
all_params.append('_request_timeout')
6479+
6480+
params = locals()
6481+
for key, val in six.iteritems(params['kwargs']):
6482+
if key not in all_params:
6483+
raise TypeError(
6484+
"Got an unexpected keyword argument '%s'"
6485+
" to method update_allowed_ip_addresses" % key
6486+
)
6487+
params[key] = val
6488+
del params['kwargs']
6489+
# verify the required parameter 'body' is set
6490+
if self.api_client.client_side_validation and ('body' not in params or
6491+
params['body'] is None): # noqa: E501
6492+
raise ValueError("Missing the required parameter `body` when calling `update_allowed_ip_addresses`") # noqa: E501
6493+
6494+
collection_formats = {}
6495+
6496+
path_params = {}
6497+
6498+
query_params = []
6499+
6500+
header_params = {}
6501+
6502+
form_params = []
6503+
local_var_files = {}
6504+
6505+
body_params = None
6506+
if 'body' in params:
6507+
body_params = params['body']
6508+
# HTTP header `Accept`
6509+
header_params['Accept'] = self.api_client.select_header_accept(
6510+
['application/json']) # noqa: E501
6511+
6512+
# HTTP header `Content-Type`
6513+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
6514+
['application/json']) # noqa: E501
6515+
6516+
# Authentication setting
6517+
auth_settings = ['volcengineSign'] # noqa: E501
6518+
6519+
return self.api_client.call_api(
6520+
'/UpdateAllowedIPAddresses/2018-01-01/iam/post/application_json/', 'POST',
6521+
path_params,
6522+
query_params,
6523+
header_params,
6524+
body=body_params,
6525+
post_params=form_params,
6526+
files=local_var_files,
6527+
response_type='UpdateAllowedIPAddressesResponse', # noqa: E501
6528+
auth_settings=auth_settings,
6529+
async_req=params.get('async_req'),
6530+
_return_http_data_only=params.get('_return_http_data_only'),
6531+
_preload_content=params.get('_preload_content', True),
6532+
_request_timeout=params.get('_request_timeout'),
6533+
collection_formats=collection_formats)
6534+
64386535
def update_group(self, body, **kwargs): # noqa: E501
64396536
"""update_group # noqa: E501
64406537

0 commit comments

Comments
 (0)