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// ListDedicatedVmHostInstanceShapesRequest wrapper for the ListDedicatedVmHostInstanceShapes operation 13type ListDedicatedVmHostInstanceShapesRequest struct { 14 15 // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment. 16 CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` 17 18 // The name of the availability domain. 19 // Example: `Uocm:PHX-AD-1` 20 AvailabilityDomain *string `mandatory:"false" contributesTo:"query" name:"availabilityDomain"` 21 22 // Dedicated VM host shape name 23 DedicatedVmHostShape *string `mandatory:"false" contributesTo:"query" name:"dedicatedVmHostShape"` 24 25 // For list pagination. The maximum number of results per page, or items to return in a paginated 26 // "List" call. For important details about how pagination works, see 27 // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). 28 // Example: `50` 29 Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` 30 31 // For list pagination. The value of the `opc-next-page` response header from the previous "List" 32 // call. For important details about how pagination works, see 33 // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). 34 Page *string `mandatory:"false" contributesTo:"query" name:"page"` 35 36 // Unique identifier for the request. 37 // If you need to contact Oracle about a particular request, please provide the request ID. 38 OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` 39 40 // Metadata about the request. This information will not be transmitted to the service, but 41 // represents information that the SDK will consume to drive retry behavior. 42 RequestMetadata common.RequestMetadata 43} 44 45func (request ListDedicatedVmHostInstanceShapesRequest) String() string { 46 return common.PointerString(request) 47} 48 49// HTTPRequest implements the OCIRequest interface 50func (request ListDedicatedVmHostInstanceShapesRequest) HTTPRequest(method, path string) (http.Request, error) { 51 return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request) 52} 53 54// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. 55func (request ListDedicatedVmHostInstanceShapesRequest) RetryPolicy() *common.RetryPolicy { 56 return request.RequestMetadata.RetryPolicy 57} 58 59// ListDedicatedVmHostInstanceShapesResponse wrapper for the ListDedicatedVmHostInstanceShapes operation 60type ListDedicatedVmHostInstanceShapesResponse struct { 61 62 // The underlying http response 63 RawResponse *http.Response 64 65 // A list of []DedicatedVmHostInstanceShapeSummary instances 66 Items []DedicatedVmHostInstanceShapeSummary `presentIn:"body"` 67 68 // For list pagination. When this header appears in the response, additional pages 69 // of results remain. For important details about how pagination works, see 70 // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). 71 OpcNextPage *string `presentIn:"header" name:"opc-next-page"` 72 73 // Unique Oracle-assigned identifier for the request. If you need to contact 74 // Oracle about a particular request, please provide the request ID. 75 OpcRequestId *string `presentIn:"header" name:"opc-request-id"` 76} 77 78func (response ListDedicatedVmHostInstanceShapesResponse) String() string { 79 return common.PointerString(response) 80} 81 82// HTTPResponse implements the OCIResponse interface 83func (response ListDedicatedVmHostInstanceShapesResponse) HTTPResponse() *http.Response { 84 return response.RawResponse 85} 86