1// Copyright (c) 2016, 2018, 2019, Oracle and/or its affiliates. All rights reserved. 2// Code generated. DO NOT EDIT. 3 4package core 5 6import ( 7 "github.com/oracle/oci-go-sdk/common" 8 "net/http" 9) 10 11// DeleteBootVolumeKmsKeyRequest wrapper for the DeleteBootVolumeKmsKey operation 12type DeleteBootVolumeKmsKeyRequest struct { 13 14 // The OCID of the boot volume. 15 BootVolumeId *string `mandatory:"true" contributesTo:"path" name:"bootVolumeId"` 16 17 // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` 18 // parameter to the value of the etag from a previous GET or POST response for that resource. The resource 19 // will be updated or deleted only if the etag you provide matches the resource's current etag value. 20 IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` 21 22 // Unique Oracle-assigned identifier for the request. 23 // If you need to contact Oracle about a particular request, please provide the request ID. 24 OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` 25 26 // Metadata about the request. This information will not be transmitted to the service, but 27 // represents information that the SDK will consume to drive retry behavior. 28 RequestMetadata common.RequestMetadata 29} 30 31func (request DeleteBootVolumeKmsKeyRequest) String() string { 32 return common.PointerString(request) 33} 34 35// HTTPRequest implements the OCIRequest interface 36func (request DeleteBootVolumeKmsKeyRequest) HTTPRequest(method, path string) (http.Request, error) { 37 return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request) 38} 39 40// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. 41func (request DeleteBootVolumeKmsKeyRequest) RetryPolicy() *common.RetryPolicy { 42 return request.RequestMetadata.RetryPolicy 43} 44 45// DeleteBootVolumeKmsKeyResponse wrapper for the DeleteBootVolumeKmsKey operation 46type DeleteBootVolumeKmsKeyResponse struct { 47 48 // The underlying http response 49 RawResponse *http.Response 50 51 // Unique Oracle-assigned identifier for the request. If you need to contact 52 // Oracle about a particular request, please provide the request ID. 53 OpcRequestId *string `presentIn:"header" name:"opc-request-id"` 54} 55 56func (response DeleteBootVolumeKmsKeyResponse) String() string { 57 return common.PointerString(response) 58} 59 60// HTTPResponse implements the OCIResponse interface 61func (response DeleteBootVolumeKmsKeyResponse) HTTPResponse() *http.Response { 62 return response.RawResponse 63} 64