Add missing parameter on UpdateBucket
This commit is contained in:
parent
9f4d8d2ebe
commit
b98957202f
3 changed files with 16 additions and 4 deletions
2
garage
2
garage
|
@ -1 +1 @@
|
||||||
Subproject commit eabb37b53f3dc09ddc7cac1ff4e2bf9fa985bf78
|
Subproject commit 74ea449f4be28d4f73d9c8edaf4a427b32c4602e
|
|
@ -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)
|
[[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**
|
# **update_bucket**
|
||||||
> BucketInfo update_bucket(update_bucket_request)
|
> BucketInfo update_bucket(bucket_id, update_bucket_request)
|
||||||
|
|
||||||
Update a bucket
|
Update a bucket
|
||||||
|
|
||||||
|
@ -967,6 +967,7 @@ configuration = garage_admin_sdk.Configuration(
|
||||||
with garage_admin_sdk.ApiClient(configuration) as api_client:
|
with garage_admin_sdk.ApiClient(configuration) as api_client:
|
||||||
# Create an instance of the API class
|
# Create an instance of the API class
|
||||||
api_instance = bucket_api.BucketApi(api_client)
|
api_instance = bucket_api.BucketApi(api_client)
|
||||||
|
bucket_id = "b4018dc61b27ccb5c64ec1b24f53454bbbd180697c758c4d47a22a8921864a87" # str | The exact bucket identifier, a 32 bytes hexadecimal string
|
||||||
update_bucket_request = UpdateBucketRequest(
|
update_bucket_request = UpdateBucketRequest(
|
||||||
website_access=UpdateBucketRequestWebsiteAccess(
|
website_access=UpdateBucketRequestWebsiteAccess(
|
||||||
enabled=True,
|
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
|
# example passing only required values which don't have defaults set
|
||||||
try:
|
try:
|
||||||
# Update a bucket
|
# 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)
|
pprint(api_response)
|
||||||
except garage_admin_sdk.ApiException as e:
|
except garage_admin_sdk.ApiException as e:
|
||||||
print("Exception when calling BucketApi->update_bucket: %s\n" % 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
|
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. |
|
**update_bucket_request** | [**UpdateBucketRequest**](UpdateBucketRequest.md)| Requested changes on the bucket. Both root fields are optionals. |
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
|
@ -643,9 +643,11 @@ class BucketApi(object):
|
||||||
},
|
},
|
||||||
params_map={
|
params_map={
|
||||||
'all': [
|
'all': [
|
||||||
|
'bucket_id',
|
||||||
'update_bucket_request',
|
'update_bucket_request',
|
||||||
],
|
],
|
||||||
'required': [
|
'required': [
|
||||||
|
'bucket_id',
|
||||||
'update_bucket_request',
|
'update_bucket_request',
|
||||||
],
|
],
|
||||||
'nullable': [
|
'nullable': [
|
||||||
|
@ -661,12 +663,16 @@ class BucketApi(object):
|
||||||
'allowed_values': {
|
'allowed_values': {
|
||||||
},
|
},
|
||||||
'openapi_types': {
|
'openapi_types': {
|
||||||
|
'bucket_id':
|
||||||
|
(str,),
|
||||||
'update_bucket_request':
|
'update_bucket_request':
|
||||||
(UpdateBucketRequest,),
|
(UpdateBucketRequest,),
|
||||||
},
|
},
|
||||||
'attribute_map': {
|
'attribute_map': {
|
||||||
|
'bucket_id': 'bucket_id',
|
||||||
},
|
},
|
||||||
'location_map': {
|
'location_map': {
|
||||||
|
'bucket_id': 'path',
|
||||||
'update_bucket_request': 'body',
|
'update_bucket_request': 'body',
|
||||||
},
|
},
|
||||||
'collection_format_map': {
|
'collection_format_map': {
|
||||||
|
@ -1617,6 +1623,7 @@ class BucketApi(object):
|
||||||
|
|
||||||
def update_bucket(
|
def update_bucket(
|
||||||
self,
|
self,
|
||||||
|
bucket_id,
|
||||||
update_bucket_request,
|
update_bucket_request,
|
||||||
**kwargs
|
**kwargs
|
||||||
):
|
):
|
||||||
|
@ -1626,10 +1633,11 @@ class BucketApi(object):
|
||||||
This method makes a synchronous HTTP request by default. To make an
|
This method makes a synchronous HTTP request by default. To make an
|
||||||
asynchronous HTTP request, please pass async_req=True
|
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()
|
>>> result = thread.get()
|
||||||
|
|
||||||
Args:
|
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.
|
update_bucket_request (UpdateBucketRequest): Requested changes on the bucket. Both root fields are optionals.
|
||||||
|
|
||||||
Keyword Args:
|
Keyword Args:
|
||||||
|
@ -1694,6 +1702,8 @@ class BucketApi(object):
|
||||||
'_content_type')
|
'_content_type')
|
||||||
kwargs['_host_index'] = kwargs.get('_host_index')
|
kwargs['_host_index'] = kwargs.get('_host_index')
|
||||||
kwargs['_request_auths'] = kwargs.get('_request_auths', None)
|
kwargs['_request_auths'] = kwargs.get('_request_auths', None)
|
||||||
|
kwargs['bucket_id'] = \
|
||||||
|
bucket_id
|
||||||
kwargs['update_bucket_request'] = \
|
kwargs['update_bucket_request'] = \
|
||||||
update_bucket_request
|
update_bucket_request
|
||||||
return self.update_bucket_endpoint.call_with_http_info(**kwargs)
|
return self.update_bucket_endpoint.call_with_http_info(**kwargs)
|
||||||
|
|
Loading…
Reference in a new issue