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