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// GetAppCatalogListingAgreementsRequest wrapper for the GetAppCatalogListingAgreements operation
12type GetAppCatalogListingAgreementsRequest struct {
13
14	// The OCID of the listing.
15	ListingId *string `mandatory:"true" contributesTo:"path" name:"listingId"`
16
17	// Listing Resource Version.
18	ResourceVersion *string `mandatory:"true" contributesTo:"path" name:"resourceVersion"`
19
20	// Unique Oracle-assigned identifier for the request.
21	// If you need to contact Oracle about a particular request, please provide the request ID.
22	OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`
23
24	// Metadata about the request. This information will not be transmitted to the service, but
25	// represents information that the SDK will consume to drive retry behavior.
26	RequestMetadata common.RequestMetadata
27}
28
29func (request GetAppCatalogListingAgreementsRequest) String() string {
30	return common.PointerString(request)
31}
32
33// HTTPRequest implements the OCIRequest interface
34func (request GetAppCatalogListingAgreementsRequest) HTTPRequest(method, path string) (http.Request, error) {
35	return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request)
36}
37
38// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
39func (request GetAppCatalogListingAgreementsRequest) RetryPolicy() *common.RetryPolicy {
40	return request.RequestMetadata.RetryPolicy
41}
42
43// GetAppCatalogListingAgreementsResponse wrapper for the GetAppCatalogListingAgreements operation
44type GetAppCatalogListingAgreementsResponse struct {
45
46	// The underlying http response
47	RawResponse *http.Response
48
49	// The AppCatalogListingResourceVersionAgreements instance
50	AppCatalogListingResourceVersionAgreements `presentIn:"body"`
51
52	// For optimistic concurrency control. See `if-match`.
53	Etag *string `presentIn:"header" name:"etag"`
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 GetAppCatalogListingAgreementsResponse) String() string {
61	return common.PointerString(response)
62}
63
64// HTTPResponse implements the OCIResponse interface
65func (response GetAppCatalogListingAgreementsResponse) HTTPResponse() *http.Response {
66	return response.RawResponse
67}
68