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// DeleteObjectLifecyclePolicyRequest wrapper for the DeleteObjectLifecyclePolicy operation 12type DeleteObjectLifecyclePolicyRequest 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 client request ID for tracing. 22 OpcClientRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-client-request-id"` 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 // Metadata about the request. This information will not be transmitted to the service, but 29 // represents information that the SDK will consume to drive retry behavior. 30 RequestMetadata common.RequestMetadata 31} 32 33func (request DeleteObjectLifecyclePolicyRequest) String() string { 34 return common.PointerString(request) 35} 36 37// HTTPRequest implements the OCIRequest interface 38func (request DeleteObjectLifecyclePolicyRequest) HTTPRequest(method, path string) (http.Request, error) { 39 return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request) 40} 41 42// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. 43func (request DeleteObjectLifecyclePolicyRequest) RetryPolicy() *common.RetryPolicy { 44 return request.RequestMetadata.RetryPolicy 45} 46 47// DeleteObjectLifecyclePolicyResponse wrapper for the DeleteObjectLifecyclePolicy operation 48type DeleteObjectLifecyclePolicyResponse struct { 49 50 // The underlying http response 51 RawResponse *http.Response 52 53 // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, 54 // provide this request ID. 55 OpcRequestId *string `presentIn:"header" name:"opc-request-id"` 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 61func (response DeleteObjectLifecyclePolicyResponse) String() string { 62 return common.PointerString(response) 63} 64 65// HTTPResponse implements the OCIResponse interface 66func (response DeleteObjectLifecyclePolicyResponse) HTTPResponse() *http.Response { 67 return response.RawResponse 68} 69