Add missing parameter on UpdateBucket

This commit is contained in:
Quentin 2022-11-12 23:05:29 +01:00
parent 9f4d8d2ebe
commit b98957202f
Signed by: quentin
GPG Key ID: E9602264D639FF68
3 changed files with 16 additions and 4 deletions

2
garage

@ -1 +1 @@
Subproject commit eabb37b53f3dc09ddc7cac1ff4e2bf9fa985bf78
Subproject commit 74ea449f4be28d4f73d9c8edaf4a427b32c4602e

View File

@ -930,7 +930,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_bucket**
> BucketInfo update_bucket(update_bucket_request)
> BucketInfo update_bucket(bucket_id, update_bucket_request)
Update a bucket
@ -967,6 +967,7 @@ configuration = garage_admin_sdk.Configuration(
with garage_admin_sdk.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = bucket_api.BucketApi(api_client)
bucket_id = "b4018dc61b27ccb5c64ec1b24f53454bbbd180697c758c4d47a22a8921864a87" # str | The exact bucket identifier, a 32 bytes hexadecimal string
update_bucket_request = UpdateBucketRequest(
website_access=UpdateBucketRequestWebsiteAccess(
enabled=True,
@ -982,7 +983,7 @@ with garage_admin_sdk.ApiClient(configuration) as api_client:
# example passing only required values which don't have defaults set
try:
# Update a bucket
api_response = api_instance.update_bucket(update_bucket_request)
api_response = api_instance.update_bucket(bucket_id, update_bucket_request)
pprint(api_response)
except garage_admin_sdk.ApiException as e:
print("Exception when calling BucketApi->update_bucket: %s\n" % e)
@ -993,6 +994,7 @@ with garage_admin_sdk.ApiClient(configuration) as api_client:
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**bucket_id** | **str**| The exact bucket identifier, a 32 bytes hexadecimal string |
**update_bucket_request** | [**UpdateBucketRequest**](UpdateBucketRequest.md)| Requested changes on the bucket. Both root fields are optionals. |
### Return type

View File

@ -643,9 +643,11 @@ class BucketApi(object):
},
params_map={
'all': [
'bucket_id',
'update_bucket_request',
],
'required': [
'bucket_id',
'update_bucket_request',
],
'nullable': [
@ -661,12 +663,16 @@ class BucketApi(object):
'allowed_values': {
},
'openapi_types': {
'bucket_id':
(str,),
'update_bucket_request':
(UpdateBucketRequest,),
},
'attribute_map': {
'bucket_id': 'bucket_id',
},
'location_map': {
'bucket_id': 'path',
'update_bucket_request': 'body',
},
'collection_format_map': {
@ -1617,6 +1623,7 @@ class BucketApi(object):
def update_bucket(
self,
bucket_id,
update_bucket_request,
**kwargs
):
@ -1626,10 +1633,11 @@ class BucketApi(object):
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.update_bucket(update_bucket_request, async_req=True)
>>> thread = api.update_bucket(bucket_id, update_bucket_request, async_req=True)
>>> result = thread.get()
Args:
bucket_id (str): The exact bucket identifier, a 32 bytes hexadecimal string
update_bucket_request (UpdateBucketRequest): Requested changes on the bucket. Both root fields are optionals.
Keyword Args:
@ -1694,6 +1702,8 @@ class BucketApi(object):
'_content_type')
kwargs['_host_index'] = kwargs.get('_host_index')
kwargs['_request_auths'] = kwargs.get('_request_auths', None)
kwargs['bucket_id'] = \
bucket_id
kwargs['update_bucket_request'] = \
update_bucket_request
return self.update_bucket_endpoint.call_with_http_info(**kwargs)