1// Copyright (c) 2016, 2018, 2019, Oracle and/or its affiliates. All rights reserved.
2// Code generated. DO NOT EDIT.
3
4package identity
5
6import (
7	"github.com/oracle/oci-go-sdk/common"
8	"net/http"
9)
10
11// ListRegionsRequest wrapper for the ListRegions operation
12type ListRegionsRequest 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 ListRegionsRequest) String() string {
24	return common.PointerString(request)
25}
26
27// HTTPRequest implements the OCIRequest interface
28func (request ListRegionsRequest) 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 ListRegionsRequest) RetryPolicy() *common.RetryPolicy {
34	return request.RequestMetadata.RetryPolicy
35}
36
37// ListRegionsResponse wrapper for the ListRegions operation
38type ListRegionsResponse struct {
39
40	// The underlying http response
41	RawResponse *http.Response
42
43	// The []Region instance
44	Items []Region `presentIn:"body"`
45
46	// Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
47	// particular request, please provide the request ID.
48	OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
49}
50
51func (response ListRegionsResponse) String() string {
52	return common.PointerString(response)
53}
54
55// HTTPResponse implements the OCIResponse interface
56func (response ListRegionsResponse) HTTPResponse() *http.Response {
57	return response.RawResponse
58}
59