@@ -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