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