1// Copyright (c) 2016, 2018, 2019, Oracle and/or its affiliates. All rights reserved. 2// Code generated. DO NOT EDIT. 3 4package objectstorage 5 6import ( 7 "github.com/oracle/oci-go-sdk/common" 8 "net/http" 9) 10 11// UpdateBucketRequest wrapper for the UpdateBucket operation 12type UpdateBucketRequest struct { 13 14 // The Object Storage namespace used for the request. 15 NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` 16 17 // The name of the bucket. Avoid entering confidential information. 18 // Example: `my-new-bucket1` 19 BucketName *string `mandatory:"true" contributesTo:"path" name:"bucketName"` 20 21 // Request object for updating a bucket. 22 UpdateBucketDetails `contributesTo:"body"` 23 24 // The entity tag (ETag) to match. For creating and committing a multipart upload to an object, this is the entity tag of the target object. 25 // For uploading a part, this is the entity tag of the target part. 26 IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` 27 28 // The client request ID for tracing. 29 OpcClientRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-client-request-id"` 30 31 // Metadata about the request. This information will not be transmitted to the service, but 32 // represents information that the SDK will consume to drive retry behavior. 33 RequestMetadata common.RequestMetadata 34} 35 36func (request UpdateBucketRequest) String() string { 37 return common.PointerString(request) 38} 39 40// HTTPRequest implements the OCIRequest interface 41func (request UpdateBucketRequest) HTTPRequest(method, path string) (http.Request, error) { 42 return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request) 43} 44 45// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. 46func (request UpdateBucketRequest) RetryPolicy() *common.RetryPolicy { 47 return request.RequestMetadata.RetryPolicy 48} 49 50// UpdateBucketResponse wrapper for the UpdateBucket operation 51type UpdateBucketResponse struct { 52 53 // The underlying http response 54 RawResponse *http.Response 55 56 // The Bucket instance 57 Bucket `presentIn:"body"` 58 59 // Echoes back the value passed in the opc-client-request-id header, for use by clients when debugging. 60 OpcClientRequestId *string `presentIn:"header" name:"opc-client-request-id"` 61 62 // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular 63 // request, provide this request ID. 64 OpcRequestId *string `presentIn:"header" name:"opc-request-id"` 65 66 // The entity tag (ETag) for the updated bucket. 67 ETag *string `presentIn:"header" name:"etag"` 68} 69 70func (response UpdateBucketResponse) String() string { 71 return common.PointerString(response) 72} 73 74// HTTPResponse implements the OCIResponse interface 75func (response UpdateBucketResponse) HTTPResponse() *http.Response { 76 return response.RawResponse 77} 78