diff --git a/docs/KeyApi.md b/docs/KeyApi.md index 29ecaf9..aa520e0 100644 --- a/docs/KeyApi.md +++ b/docs/KeyApi.md @@ -209,7 +209,7 @@ with garage_admin_sdk.ApiClient(configuration) as api_client: api_instance = key_api.KeyApi(api_client) id = "GK31c2f218a2e44f485b94239e" # str | The exact API access key generated by Garage. Incompatible with `search`. (optional) search = "test-k" # str | A pattern (beginning or full string) corresponding to a key identifier or friendly name. Incompatible with `id`. (optional) - show_secret_key = True # bool | Wether or not the secret key should be returned in the response (optional) if omitted the server will use the default value of False + show_secret_key = "true" # str | Wether or not the secret key should be returned in the response (optional) if omitted the server will use the default value of "false" # example passing only required values which don't have defaults set # and optional values @@ -228,7 +228,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **str**| The exact API access key generated by Garage. Incompatible with `search`. | [optional] **search** | **str**| A pattern (beginning or full string) corresponding to a key identifier or friendly name. Incompatible with `id`. | [optional] - **show_secret_key** | **bool**| Wether or not the secret key should be returned in the response | [optional] if omitted the server will use the default value of False + **show_secret_key** | **str**| Wether or not the secret key should be returned in the response | [optional] if omitted the server will use the default value of "false" ### Return type diff --git a/garage_admin_sdk/api/key_api.py b/garage_admin_sdk/api/key_api.py index 75fa17e..1a993fe 100644 --- a/garage_admin_sdk/api/key_api.py +++ b/garage_admin_sdk/api/key_api.py @@ -161,6 +161,7 @@ class KeyApi(object): 'nullable': [ ], 'enum': [ + 'show_secret_key', ], 'validation': [ ] @@ -169,6 +170,11 @@ class KeyApi(object): 'validations': { }, 'allowed_values': { + ('show_secret_key',): { + + "TRUE": "true", + "FALSE": "false" + }, }, 'openapi_types': { 'id': @@ -176,7 +182,7 @@ class KeyApi(object): 'search': (str,), 'show_secret_key': - (bool,), + (str,), }, 'attribute_map': { 'id': 'id', @@ -537,7 +543,7 @@ class KeyApi(object): Keyword Args: id (str): The exact API access key generated by Garage. Incompatible with `search`. . [optional] search (str): A pattern (beginning or full string) corresponding to a key identifier or friendly name. Incompatible with `id`. . [optional] - show_secret_key (bool): Wether or not the secret key should be returned in the response. [optional] if omitted the server will use the default value of False + show_secret_key (str): Wether or not the secret key should be returned in the response. [optional] if omitted the server will use the default value of "false" _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