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// GetFastConnectProviderServiceKeyRequest wrapper for the GetFastConnectProviderServiceKey operation
12type GetFastConnectProviderServiceKeyRequest struct {
13
14	// The OCID of the provider service.
15	ProviderServiceId *string `mandatory:"true" contributesTo:"path" name:"providerServiceId"`
16
17	// The provider service key that the provider gives you when you set up a virtual circuit connection
18	// from the provider to Oracle Cloud Infrastructure. You can set up that connection and get your
19	// provider service key at the provider's website or portal. For the portal location, see the `description`
20	// attribute of the FastConnectProviderService.
21	ProviderServiceKeyName *string `mandatory:"true" contributesTo:"path" name:"providerServiceKeyName"`
22
23	// Unique Oracle-assigned identifier for the request.
24	// If you need to contact Oracle about a particular request, please provide the request ID.
25	OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`
26
27	// Metadata about the request. This information will not be transmitted to the service, but
28	// represents information that the SDK will consume to drive retry behavior.
29	RequestMetadata common.RequestMetadata
30}
31
32func (request GetFastConnectProviderServiceKeyRequest) String() string {
33	return common.PointerString(request)
34}
35
36// HTTPRequest implements the OCIRequest interface
37func (request GetFastConnectProviderServiceKeyRequest) HTTPRequest(method, path string) (http.Request, error) {
38	return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request)
39}
40
41// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
42func (request GetFastConnectProviderServiceKeyRequest) RetryPolicy() *common.RetryPolicy {
43	return request.RequestMetadata.RetryPolicy
44}
45
46// GetFastConnectProviderServiceKeyResponse wrapper for the GetFastConnectProviderServiceKey operation
47type GetFastConnectProviderServiceKeyResponse struct {
48
49	// The underlying http response
50	RawResponse *http.Response
51
52	// The FastConnectProviderServiceKey instance
53	FastConnectProviderServiceKey `presentIn:"body"`
54
55	// Unique Oracle-assigned identifier for the request. If you need to contact
56	// Oracle about a particular request, please provide the request ID.
57	OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
58}
59
60func (response GetFastConnectProviderServiceKeyResponse) String() string {
61	return common.PointerString(response)
62}
63
64// HTTPResponse implements the OCIResponse interface
65func (response GetFastConnectProviderServiceKeyResponse) HTTPResponse() *http.Response {
66	return response.RawResponse
67}
68