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 osmanagement 6 7import ( 8 "github.com/oracle/oci-go-sdk/common" 9 "net/http" 10) 11 12// GetManagedInstanceRequest wrapper for the GetManagedInstance operation 13type GetManagedInstanceRequest struct { 14 15 // OCID for the managed instance 16 ManagedInstanceId *string `mandatory:"true" contributesTo:"path" name:"managedInstanceId"` 17 18 // The client request ID for tracing. 19 OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` 20 21 // Metadata about the request. This information will not be transmitted to the service, but 22 // represents information that the SDK will consume to drive retry behavior. 23 RequestMetadata common.RequestMetadata 24} 25 26func (request GetManagedInstanceRequest) String() string { 27 return common.PointerString(request) 28} 29 30// HTTPRequest implements the OCIRequest interface 31func (request GetManagedInstanceRequest) HTTPRequest(method, path string) (http.Request, error) { 32 return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request) 33} 34 35// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. 36func (request GetManagedInstanceRequest) RetryPolicy() *common.RetryPolicy { 37 return request.RequestMetadata.RetryPolicy 38} 39 40// GetManagedInstanceResponse wrapper for the GetManagedInstance operation 41type GetManagedInstanceResponse struct { 42 43 // The underlying http response 44 RawResponse *http.Response 45 46 // The ManagedInstance instance 47 ManagedInstance `presentIn:"body"` 48 49 // Unique Oracle-assigned identifier for the request. If 50 // you need to contact Oracle about a particular request, 51 // please provide the request ID. 52 OpcRequestId *string `presentIn:"header" name:"opc-request-id"` 53} 54 55func (response GetManagedInstanceResponse) String() string { 56 return common.PointerString(response) 57} 58 59// HTTPResponse implements the OCIResponse interface 60func (response GetManagedInstanceResponse) HTTPResponse() *http.Response { 61 return response.RawResponse 62} 63