1// Copyright (c) 2016, 2018, 2020, Oracle and/or its affiliates. All rights reserved. 2// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. 3// Code generated. DO NOT EDIT. 4 5package core 6 7import ( 8 "github.com/oracle/oci-go-sdk/common" 9 "net/http" 10) 11 12// GetVolumeKmsKeyRequest wrapper for the GetVolumeKmsKey operation 13type GetVolumeKmsKeyRequest struct { 14 15 // The OCID of the volume. 16 VolumeId *string `mandatory:"true" contributesTo:"path" name:"volumeId"` 17 18 // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` 19 // parameter to the value of the etag from a previous GET or POST response for that resource. The resource 20 // will be updated or deleted only if the etag you provide matches the resource's current etag value. 21 IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` 22 23 // Unique Oracle-assigned identifier for the request. 24 // If you need to contact Oracle about a particular request, please provide the request ID. 25 OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` 26 27 // Metadata about the request. This information will not be transmitted to the service, but 28 // represents information that the SDK will consume to drive retry behavior. 29 RequestMetadata common.RequestMetadata 30} 31 32func (request GetVolumeKmsKeyRequest) String() string { 33 return common.PointerString(request) 34} 35 36// HTTPRequest implements the OCIRequest interface 37func (request GetVolumeKmsKeyRequest) HTTPRequest(method, path string) (http.Request, error) { 38 return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request) 39} 40 41// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. 42func (request GetVolumeKmsKeyRequest) RetryPolicy() *common.RetryPolicy { 43 return request.RequestMetadata.RetryPolicy 44} 45 46// GetVolumeKmsKeyResponse wrapper for the GetVolumeKmsKey operation 47type GetVolumeKmsKeyResponse struct { 48 49 // The underlying http response 50 RawResponse *http.Response 51 52 // The VolumeKmsKey instance 53 VolumeKmsKey `presentIn:"body"` 54 55 // For optimistic concurrency control. See `if-match`. 56 Etag *string `presentIn:"header" name:"etag"` 57 58 // Unique Oracle-assigned identifier for the request. If you need to contact 59 // Oracle about a particular request, please provide the request ID. 60 OpcRequestId *string `presentIn:"header" name:"opc-request-id"` 61} 62 63func (response GetVolumeKmsKeyResponse) String() string { 64 return common.PointerString(response) 65} 66 67// HTTPResponse implements the OCIResponse interface 68func (response GetVolumeKmsKeyResponse) HTTPResponse() *http.Response { 69 return response.RawResponse 70} 71