diff --git a/garage b/garage index 008119e..ba67922 160000 --- a/garage +++ b/garage @@ -1 +1 @@ -Subproject commit 008119e1ba24f19f8f8fdaec7a451b209ef56a12 +Subproject commit ba6792231072c32f4de3cd2cec0788c55e7de6c0 diff --git a/python/docs/KeyApi.md b/python/docs/KeyApi.md index 2dd050b..91893a7 100644 --- a/python/docs/KeyApi.md +++ b/python/docs/KeyApi.md @@ -486,7 +486,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **update_key** -> KeyInfo update_key(access_key) +> KeyInfo update_key(access_key, update_key_request) Update a key @@ -532,21 +532,12 @@ with garage_admin_sdk.ApiClient(configuration) as api_client: deny=UpdateKeyRequestDeny( create_bucket=True, ), - ) # UpdateKeyRequest | For a given key, provide a first set with the permissions to grant, and a second set with the permissions to remove (optional) + ) # UpdateKeyRequest | For a given key, provide a first set with the permissions to grant, and a second set with the permissions to remove # example passing only required values which don't have defaults set try: # Update a key - api_response = api_instance.update_key(access_key) - pprint(api_response) - except garage_admin_sdk.ApiException as e: - print("Exception when calling KeyApi->update_key: %s\n" % e) - - # example passing only required values which don't have defaults set - # and optional values - try: - # Update a key - api_response = api_instance.update_key(access_key, update_key_request=update_key_request) + api_response = api_instance.update_key(access_key, update_key_request) pprint(api_response) except garage_admin_sdk.ApiException as e: print("Exception when calling KeyApi->update_key: %s\n" % e) @@ -558,7 +549,7 @@ with garage_admin_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **access_key** | **str**| The exact API access key generated by Garage | - **update_key_request** | [**UpdateKeyRequest**](UpdateKeyRequest.md)| For a given key, provide a first set with the permissions to grant, and a second set with the permissions to remove | [optional] + **update_key_request** | [**UpdateKeyRequest**](UpdateKeyRequest.md)| For a given key, provide a first set with the permissions to grant, and a second set with the permissions to remove | ### Return type diff --git a/python/garage_admin_sdk/api/key_api.py b/python/garage_admin_sdk/api/key_api.py index 6373d57..4ac7196 100644 --- a/python/garage_admin_sdk/api/key_api.py +++ b/python/garage_admin_sdk/api/key_api.py @@ -356,6 +356,7 @@ class KeyApi(object): ], 'required': [ 'access_key', + 'update_key_request', ], 'nullable': [ ], @@ -892,6 +893,7 @@ class KeyApi(object): def update_key( self, access_key, + update_key_request, **kwargs ): """Update a key # noqa: E501 @@ -900,14 +902,14 @@ class KeyApi(object): This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.update_key(access_key, async_req=True) + >>> thread = api.update_key(access_key, update_key_request, async_req=True) >>> result = thread.get() Args: access_key (str): The exact API access key generated by Garage + update_key_request (UpdateKeyRequest): For a given key, provide a first set with the permissions to grant, and a second set with the permissions to remove Keyword Args: - update_key_request (UpdateKeyRequest): For a given key, provide a first set with the permissions to grant, and a second set with the permissions to remove . [optional] _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object @@ -971,5 +973,7 @@ class KeyApi(object): kwargs['_request_auths'] = kwargs.get('_request_auths', None) kwargs['access_key'] = \ access_key + kwargs['update_key_request'] = \ + update_key_request return self.update_key_endpoint.call_with_http_info(**kwargs)