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// DeleteObjectRequest wrapper for the DeleteObject operation 12type DeleteObjectRequest 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 // The name of the object. Avoid entering confidential information. 22 // Example: `test/object1.log` 23 ObjectName *string `mandatory:"true" contributesTo:"path" name:"objectName"` 24 25 // 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. 26 // For uploading a part, this is the entity tag of the target part. 27 IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` 28 29 // The client request ID for tracing. 30 OpcClientRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-client-request-id"` 31 32 // Metadata about the request. This information will not be transmitted to the service, but 33 // represents information that the SDK will consume to drive retry behavior. 34 RequestMetadata common.RequestMetadata 35} 36 37func (request DeleteObjectRequest) String() string { 38 return common.PointerString(request) 39} 40 41// HTTPRequest implements the OCIRequest interface 42func (request DeleteObjectRequest) HTTPRequest(method, path string) (http.Request, error) { 43 return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request) 44} 45 46// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. 47func (request DeleteObjectRequest) RetryPolicy() *common.RetryPolicy { 48 return request.RequestMetadata.RetryPolicy 49} 50 51// DeleteObjectResponse wrapper for the DeleteObject operation 52type DeleteObjectResponse struct { 53 54 // The underlying http response 55 RawResponse *http.Response 56 57 // Echoes back the value passed in the opc-client-request-id header, for use by clients when debugging. 58 OpcClientRequestId *string `presentIn:"header" name:"opc-client-request-id"` 59 60 // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular 61 // request, provide this request ID. 62 OpcRequestId *string `presentIn:"header" name:"opc-request-id"` 63 64 // The time the object was deleted, as described in RFC 2616 (https://tools.ietf.org/rfc/rfc2616), section 14.29. 65 LastModified *common.SDKTime `presentIn:"header" name:"last-modified"` 66} 67 68func (response DeleteObjectResponse) String() string { 69 return common.PointerString(response) 70} 71 72// HTTPResponse implements the OCIResponse interface 73func (response DeleteObjectResponse) HTTPResponse() *http.Response { 74 return response.RawResponse 75} 76