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// UpdateDrgRequest wrapper for the UpdateDrg operation 12type UpdateDrgRequest struct { 13 14 // The OCID of the DRG. 15 DrgId *string `mandatory:"true" contributesTo:"path" name:"drgId"` 16 17 // Details object for updating a DRG. 18 UpdateDrgDetails `contributesTo:"body"` 19 20 // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` 21 // parameter to the value of the etag from a previous GET or POST response for that resource. The resource 22 // will be updated or deleted only if the etag you provide matches the resource's current etag value. 23 IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` 24 25 // Unique Oracle-assigned identifier for the request. 26 // If you need to contact Oracle about a particular request, please provide the request ID. 27 OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` 28 29 // Metadata about the request. This information will not be transmitted to the service, but 30 // represents information that the SDK will consume to drive retry behavior. 31 RequestMetadata common.RequestMetadata 32} 33 34func (request UpdateDrgRequest) String() string { 35 return common.PointerString(request) 36} 37 38// HTTPRequest implements the OCIRequest interface 39func (request UpdateDrgRequest) HTTPRequest(method, path string) (http.Request, error) { 40 return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request) 41} 42 43// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. 44func (request UpdateDrgRequest) RetryPolicy() *common.RetryPolicy { 45 return request.RequestMetadata.RetryPolicy 46} 47 48// UpdateDrgResponse wrapper for the UpdateDrg operation 49type UpdateDrgResponse struct { 50 51 // The underlying http response 52 RawResponse *http.Response 53 54 // The Drg instance 55 Drg `presentIn:"body"` 56 57 // For optimistic concurrency control. See `if-match`. 58 Etag *string `presentIn:"header" name:"etag"` 59 60 // Unique Oracle-assigned identifier for the request. If you need to contact 61 // Oracle about a particular request, please provide the request ID. 62 OpcRequestId *string `presentIn:"header" name:"opc-request-id"` 63} 64 65func (response UpdateDrgResponse) String() string { 66 return common.PointerString(response) 67} 68 69// HTTPResponse implements the OCIResponse interface 70func (response UpdateDrgResponse) HTTPResponse() *http.Response { 71 return response.RawResponse 72} 73