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// ChangeVolumeCompartmentRequest wrapper for the ChangeVolumeCompartment operation 12type ChangeVolumeCompartmentRequest struct { 13 14 // The OCID of the volume. 15 VolumeId *string `mandatory:"true" contributesTo:"path" name:"volumeId"` 16 17 // Request to change the compartment of given volume. 18 ChangeVolumeCompartmentDetails `contributesTo:"body"` 19 20 // Unique identifier for the request. 21 // If you need to contact Oracle about a particular request, please provide the request ID. 22 OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` 23 24 // Metadata about the request. This information will not be transmitted to the service, but 25 // represents information that the SDK will consume to drive retry behavior. 26 RequestMetadata common.RequestMetadata 27} 28 29func (request ChangeVolumeCompartmentRequest) String() string { 30 return common.PointerString(request) 31} 32 33// HTTPRequest implements the OCIRequest interface 34func (request ChangeVolumeCompartmentRequest) HTTPRequest(method, path string) (http.Request, error) { 35 return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request) 36} 37 38// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. 39func (request ChangeVolumeCompartmentRequest) RetryPolicy() *common.RetryPolicy { 40 return request.RequestMetadata.RetryPolicy 41} 42 43// ChangeVolumeCompartmentResponse wrapper for the ChangeVolumeCompartment operation 44type ChangeVolumeCompartmentResponse struct { 45 46 // The underlying http response 47 RawResponse *http.Response 48 49 // For optimistic concurrency control. See `if-match`. 50 Etag *string `presentIn:"header" name:"etag"` 51 52 // Unique Oracle-assigned identifier for the request. If you need to contact 53 // Oracle about a particular request, please provide the request ID. 54 OpcRequestId *string `presentIn:"header" name:"opc-request-id"` 55} 56 57func (response ChangeVolumeCompartmentResponse) String() string { 58 return common.PointerString(response) 59} 60 61// HTTPResponse implements the OCIResponse interface 62func (response ChangeVolumeCompartmentResponse) HTTPResponse() *http.Response { 63 return response.RawResponse 64} 65