updaqte showSecretKey

This commit is contained in:
Quentin 2023-11-22 21:08:14 +01:00
parent 0e76d0eb8c
commit e02326f5db
Signed by: quentin
GPG key ID: E9602264D639FF68
2 changed files with 10 additions and 4 deletions

View file

@ -209,7 +209,7 @@ with garage_admin_sdk.ApiClient(configuration) as api_client:
api_instance = key_api.KeyApi(api_client) api_instance = key_api.KeyApi(api_client)
id = "GK31c2f218a2e44f485b94239e" # str | The exact API access key generated by Garage. Incompatible with `search`. (optional) 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) 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 # example passing only required values which don't have defaults set
# and optional values # 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] **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] **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 ### Return type

View file

@ -161,6 +161,7 @@ class KeyApi(object):
'nullable': [ 'nullable': [
], ],
'enum': [ 'enum': [
'show_secret_key',
], ],
'validation': [ 'validation': [
] ]
@ -169,6 +170,11 @@ class KeyApi(object):
'validations': { 'validations': {
}, },
'allowed_values': { 'allowed_values': {
('show_secret_key',): {
"TRUE": "true",
"FALSE": "false"
},
}, },
'openapi_types': { 'openapi_types': {
'id': 'id':
@ -176,7 +182,7 @@ class KeyApi(object):
'search': 'search':
(str,), (str,),
'show_secret_key': 'show_secret_key':
(bool,), (str,),
}, },
'attribute_map': { 'attribute_map': {
'id': 'id', 'id': 'id',
@ -537,7 +543,7 @@ class KeyApi(object):
Keyword Args: Keyword Args:
id (str): The exact API access key generated by Garage. Incompatible with `search`. . [optional] 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] 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 _return_http_data_only (bool): response data without head status
code and headers. Default is True. code and headers. Default is True.
_preload_content (bool): if False, the urllib3.HTTPResponse object _preload_content (bool): if False, the urllib3.HTTPResponse object