...

Package marketplaceprivateoffer

import "github.com/oracle/oci-go-sdk/marketplaceprivateoffer"
Overview
Index

Overview ▾

Index ▾

func GetAttachmentLifecycleStateEnumStringValues() []string
func GetAttachmentTypeEnumStringValues() []string
func GetListAttachmentsSortByEnumStringValues() []string
func GetListAttachmentsSortOrderEnumStringValues() []string
func GetListOffersSortByEnumStringValues() []string
func GetListOffersSortOrderEnumStringValues() []string
func GetOfferLifecycleStateEnumStringValues() []string
func GetOfferOfferStatusEnumStringValues() []string
func GetPackageTypeEnumStringValues() []string
func GetPricingBillingCycleEnumStringValues() []string
func GetPublisherSummaryPublisherTypeEnumStringValues() []string
func GetResourceBundleTypeEnumStringValues() []string
func GetResourceBundleUnitOfMeasurementEnumStringValues() []string
func GetSortOrderEnumStringValues() []string
type Attachment
    func (m Attachment) String() string
    func (m Attachment) ValidateEnumValue() (bool, error)
type AttachmentClient
    func NewAttachmentClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client AttachmentClient, err error)
    func NewAttachmentClientWithOboToken(configProvider common.ConfigurationProvider, oboToken string) (client AttachmentClient, err error)
    func (client *AttachmentClient) ConfigurationProvider() *common.ConfigurationProvider
    func (client AttachmentClient) CreateAttachment(ctx context.Context, request CreateAttachmentRequest) (response CreateAttachmentResponse, err error)
    func (client AttachmentClient) DeleteAttachment(ctx context.Context, request DeleteAttachmentRequest) (response DeleteAttachmentResponse, err error)
    func (client AttachmentClient) GetAttachment(ctx context.Context, request GetAttachmentRequest) (response GetAttachmentResponse, err error)
    func (client AttachmentClient) GetAttachmentContent(ctx context.Context, request GetAttachmentContentRequest) (response GetAttachmentContentResponse, err error)
    func (client AttachmentClient) ListAttachments(ctx context.Context, request ListAttachmentsRequest) (response ListAttachmentsResponse, err error)
    func (client *AttachmentClient) SetRegion(region string)
type AttachmentCollection
    func (m AttachmentCollection) String() string
    func (m AttachmentCollection) ValidateEnumValue() (bool, error)
type AttachmentLifecycleStateEnum
    func GetAttachmentLifecycleStateEnumValues() []AttachmentLifecycleStateEnum
    func GetMappingAttachmentLifecycleStateEnum(val string) (AttachmentLifecycleStateEnum, bool)
type AttachmentSummary
    func (m AttachmentSummary) String() string
    func (m AttachmentSummary) ValidateEnumValue() (bool, error)
type AttachmentTypeEnum
    func GetAttachmentTypeEnumValues() []AttachmentTypeEnum
    func GetMappingAttachmentTypeEnum(val string) (AttachmentTypeEnum, bool)
type BuyerInformation
    func (m BuyerInformation) String() string
    func (m BuyerInformation) ValidateEnumValue() (bool, error)
type Contact
    func (m Contact) String() string
    func (m Contact) ValidateEnumValue() (bool, error)
type CreateAttachmentDetails
    func (m CreateAttachmentDetails) String() string
    func (m CreateAttachmentDetails) ValidateEnumValue() (bool, error)
type CreateAttachmentRequest
    func (request CreateAttachmentRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request CreateAttachmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request CreateAttachmentRequest) RetryPolicy() *common.RetryPolicy
    func (request CreateAttachmentRequest) String() string
    func (request CreateAttachmentRequest) ValidateEnumValue() (bool, error)
type CreateAttachmentResponse
    func (response CreateAttachmentResponse) HTTPResponse() *http.Response
    func (response CreateAttachmentResponse) String() string
type CreateOfferDetails
    func (m CreateOfferDetails) String() string
    func (m CreateOfferDetails) ValidateEnumValue() (bool, error)
type CreateOfferRequest
    func (request CreateOfferRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request CreateOfferRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request CreateOfferRequest) RetryPolicy() *common.RetryPolicy
    func (request CreateOfferRequest) String() string
    func (request CreateOfferRequest) ValidateEnumValue() (bool, error)
type CreateOfferResponse
    func (response CreateOfferResponse) HTTPResponse() *http.Response
    func (response CreateOfferResponse) String() string
type CustomField
    func (m CustomField) String() string
    func (m CustomField) ValidateEnumValue() (bool, error)
type DeleteAttachmentRequest
    func (request DeleteAttachmentRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request DeleteAttachmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request DeleteAttachmentRequest) RetryPolicy() *common.RetryPolicy
    func (request DeleteAttachmentRequest) String() string
    func (request DeleteAttachmentRequest) ValidateEnumValue() (bool, error)
type DeleteAttachmentResponse
    func (response DeleteAttachmentResponse) HTTPResponse() *http.Response
    func (response DeleteAttachmentResponse) String() string
type DeleteOfferRequest
    func (request DeleteOfferRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request DeleteOfferRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request DeleteOfferRequest) RetryPolicy() *common.RetryPolicy
    func (request DeleteOfferRequest) String() string
    func (request DeleteOfferRequest) ValidateEnumValue() (bool, error)
type DeleteOfferResponse
    func (response DeleteOfferResponse) HTTPResponse() *http.Response
    func (response DeleteOfferResponse) String() string
type GetAttachmentContentRequest
    func (request GetAttachmentContentRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request GetAttachmentContentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request GetAttachmentContentRequest) RetryPolicy() *common.RetryPolicy
    func (request GetAttachmentContentRequest) String() string
    func (request GetAttachmentContentRequest) ValidateEnumValue() (bool, error)
type GetAttachmentContentResponse
    func (response GetAttachmentContentResponse) HTTPResponse() *http.Response
    func (response GetAttachmentContentResponse) String() string
type GetAttachmentRequest
    func (request GetAttachmentRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request GetAttachmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request GetAttachmentRequest) RetryPolicy() *common.RetryPolicy
    func (request GetAttachmentRequest) String() string
    func (request GetAttachmentRequest) ValidateEnumValue() (bool, error)
type GetAttachmentResponse
    func (response GetAttachmentResponse) HTTPResponse() *http.Response
    func (response GetAttachmentResponse) String() string
type GetOfferInternalDetailRequest
    func (request GetOfferInternalDetailRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request GetOfferInternalDetailRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request GetOfferInternalDetailRequest) RetryPolicy() *common.RetryPolicy
    func (request GetOfferInternalDetailRequest) String() string
    func (request GetOfferInternalDetailRequest) ValidateEnumValue() (bool, error)
type GetOfferInternalDetailResponse
    func (response GetOfferInternalDetailResponse) HTTPResponse() *http.Response
    func (response GetOfferInternalDetailResponse) String() string
type GetOfferRequest
    func (request GetOfferRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request GetOfferRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request GetOfferRequest) RetryPolicy() *common.RetryPolicy
    func (request GetOfferRequest) String() string
    func (request GetOfferRequest) ValidateEnumValue() (bool, error)
type GetOfferResponse
    func (response GetOfferResponse) HTTPResponse() *http.Response
    func (response GetOfferResponse) String() string
type ListAttachmentsRequest
    func (request ListAttachmentsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request ListAttachmentsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request ListAttachmentsRequest) RetryPolicy() *common.RetryPolicy
    func (request ListAttachmentsRequest) String() string
    func (request ListAttachmentsRequest) ValidateEnumValue() (bool, error)
type ListAttachmentsResponse
    func (response ListAttachmentsResponse) HTTPResponse() *http.Response
    func (response ListAttachmentsResponse) String() string
type ListAttachmentsSortByEnum
    func GetListAttachmentsSortByEnumValues() []ListAttachmentsSortByEnum
    func GetMappingListAttachmentsSortByEnum(val string) (ListAttachmentsSortByEnum, bool)
type ListAttachmentsSortOrderEnum
    func GetListAttachmentsSortOrderEnumValues() []ListAttachmentsSortOrderEnum
    func GetMappingListAttachmentsSortOrderEnum(val string) (ListAttachmentsSortOrderEnum, bool)
type ListOffersRequest
    func (request ListOffersRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request ListOffersRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request ListOffersRequest) RetryPolicy() *common.RetryPolicy
    func (request ListOffersRequest) String() string
    func (request ListOffersRequest) ValidateEnumValue() (bool, error)
type ListOffersResponse
    func (response ListOffersResponse) HTTPResponse() *http.Response
    func (response ListOffersResponse) String() string
type ListOffersSortByEnum
    func GetListOffersSortByEnumValues() []ListOffersSortByEnum
    func GetMappingListOffersSortByEnum(val string) (ListOffersSortByEnum, bool)
type ListOffersSortOrderEnum
    func GetListOffersSortOrderEnumValues() []ListOffersSortOrderEnum
    func GetMappingListOffersSortOrderEnum(val string) (ListOffersSortOrderEnum, bool)
type Offer
    func (m Offer) String() string
    func (m Offer) ValidateEnumValue() (bool, error)
type OfferClient
    func NewOfferClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client OfferClient, err error)
    func NewOfferClientWithOboToken(configProvider common.ConfigurationProvider, oboToken string) (client OfferClient, err error)
    func (client *OfferClient) ConfigurationProvider() *common.ConfigurationProvider
    func (client OfferClient) CreateOffer(ctx context.Context, request CreateOfferRequest) (response CreateOfferResponse, err error)
    func (client OfferClient) DeleteOffer(ctx context.Context, request DeleteOfferRequest) (response DeleteOfferResponse, err error)
    func (client OfferClient) GetOffer(ctx context.Context, request GetOfferRequest) (response GetOfferResponse, err error)
    func (client OfferClient) GetOfferInternalDetail(ctx context.Context, request GetOfferInternalDetailRequest) (response GetOfferInternalDetailResponse, err error)
    func (client OfferClient) ListOffers(ctx context.Context, request ListOffersRequest) (response ListOffersResponse, err error)
    func (client *OfferClient) SetRegion(region string)
    func (client OfferClient) UpdateOffer(ctx context.Context, request UpdateOfferRequest) (response UpdateOfferResponse, err error)
type OfferCollection
    func (m OfferCollection) String() string
    func (m OfferCollection) ValidateEnumValue() (bool, error)
type OfferInternalDetail
    func (m OfferInternalDetail) String() string
    func (m OfferInternalDetail) ValidateEnumValue() (bool, error)
type OfferLifecycleStateEnum
    func GetMappingOfferLifecycleStateEnum(val string) (OfferLifecycleStateEnum, bool)
    func GetOfferLifecycleStateEnumValues() []OfferLifecycleStateEnum
type OfferOfferStatusEnum
    func GetMappingOfferOfferStatusEnum(val string) (OfferOfferStatusEnum, bool)
    func GetOfferOfferStatusEnumValues() []OfferOfferStatusEnum
type OfferSummary
    func (m OfferSummary) String() string
    func (m OfferSummary) ValidateEnumValue() (bool, error)
type PackageTypeEnum
    func GetMappingPackageTypeEnum(val string) (PackageTypeEnum, bool)
    func GetPackageTypeEnumValues() []PackageTypeEnum
type Pricing
    func (m Pricing) String() string
    func (m Pricing) ValidateEnumValue() (bool, error)
type PricingBillingCycleEnum
    func GetMappingPricingBillingCycleEnum(val string) (PricingBillingCycleEnum, bool)
    func GetPricingBillingCycleEnumValues() []PricingBillingCycleEnum
type PublisherSummary
    func (m PublisherSummary) String() string
    func (m PublisherSummary) ValidateEnumValue() (bool, error)
type PublisherSummaryPublisherTypeEnum
    func GetMappingPublisherSummaryPublisherTypeEnum(val string) (PublisherSummaryPublisherTypeEnum, bool)
    func GetPublisherSummaryPublisherTypeEnumValues() []PublisherSummaryPublisherTypeEnum
type ResourceBundle
    func (m ResourceBundle) String() string
    func (m ResourceBundle) ValidateEnumValue() (bool, error)
type ResourceBundleTypeEnum
    func GetMappingResourceBundleTypeEnum(val string) (ResourceBundleTypeEnum, bool)
    func GetResourceBundleTypeEnumValues() []ResourceBundleTypeEnum
type ResourceBundleUnitOfMeasurementEnum
    func GetMappingResourceBundleUnitOfMeasurementEnum(val string) (ResourceBundleUnitOfMeasurementEnum, bool)
    func GetResourceBundleUnitOfMeasurementEnumValues() []ResourceBundleUnitOfMeasurementEnum
type SellerInformation
    func (m SellerInformation) String() string
    func (m SellerInformation) ValidateEnumValue() (bool, error)
type SortOrderEnum
    func GetMappingSortOrderEnum(val string) (SortOrderEnum, bool)
    func GetSortOrderEnumValues() []SortOrderEnum
type UpdateOfferDetails
    func (m UpdateOfferDetails) String() string
    func (m UpdateOfferDetails) ValidateEnumValue() (bool, error)
type UpdateOfferRequest
    func (request UpdateOfferRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request UpdateOfferRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request UpdateOfferRequest) RetryPolicy() *common.RetryPolicy
    func (request UpdateOfferRequest) String() string
    func (request UpdateOfferRequest) ValidateEnumValue() (bool, error)
type UpdateOfferResponse
    func (response UpdateOfferResponse) HTTPResponse() *http.Response
    func (response UpdateOfferResponse) String() string
type UploadData
    func (m UploadData) String() string
    func (m UploadData) ValidateEnumValue() (bool, error)

Package files

attachment.go attachment_collection.go attachment_summary.go buyer_information.go contact.go create_attachment_details.go create_attachment_request_response.go create_offer_details.go create_offer_request_response.go custom_field.go delete_attachment_request_response.go delete_offer_request_response.go get_attachment_content_request_response.go get_attachment_request_response.go get_offer_internal_detail_request_response.go get_offer_request_response.go list_attachments_request_response.go list_offers_request_response.go marketplaceprivateoffer_attachment_client.go marketplaceprivateoffer_offer_client.go offer.go offer_collection.go offer_internal_detail.go offer_summary.go package_type.go pricing.go publisher_summary.go resource_bundle.go seller_information.go sort_order.go update_offer_details.go update_offer_request_response.go upload_data.go

func GetAttachmentLifecycleStateEnumStringValues

func GetAttachmentLifecycleStateEnumStringValues() []string

GetAttachmentLifecycleStateEnumStringValues Enumerates the set of values in String for AttachmentLifecycleStateEnum

func GetAttachmentTypeEnumStringValues

func GetAttachmentTypeEnumStringValues() []string

GetAttachmentTypeEnumStringValues Enumerates the set of values in String for AttachmentTypeEnum

func GetListAttachmentsSortByEnumStringValues

func GetListAttachmentsSortByEnumStringValues() []string

GetListAttachmentsSortByEnumStringValues Enumerates the set of values in String for ListAttachmentsSortByEnum

func GetListAttachmentsSortOrderEnumStringValues

func GetListAttachmentsSortOrderEnumStringValues() []string

GetListAttachmentsSortOrderEnumStringValues Enumerates the set of values in String for ListAttachmentsSortOrderEnum

func GetListOffersSortByEnumStringValues

func GetListOffersSortByEnumStringValues() []string

GetListOffersSortByEnumStringValues Enumerates the set of values in String for ListOffersSortByEnum

func GetListOffersSortOrderEnumStringValues

func GetListOffersSortOrderEnumStringValues() []string

GetListOffersSortOrderEnumStringValues Enumerates the set of values in String for ListOffersSortOrderEnum

func GetOfferLifecycleStateEnumStringValues

func GetOfferLifecycleStateEnumStringValues() []string

GetOfferLifecycleStateEnumStringValues Enumerates the set of values in String for OfferLifecycleStateEnum

func GetOfferOfferStatusEnumStringValues

func GetOfferOfferStatusEnumStringValues() []string

GetOfferOfferStatusEnumStringValues Enumerates the set of values in String for OfferOfferStatusEnum

func GetPackageTypeEnumStringValues

func GetPackageTypeEnumStringValues() []string

GetPackageTypeEnumStringValues Enumerates the set of values in String for PackageTypeEnum

func GetPricingBillingCycleEnumStringValues

func GetPricingBillingCycleEnumStringValues() []string

GetPricingBillingCycleEnumStringValues Enumerates the set of values in String for PricingBillingCycleEnum

func GetPublisherSummaryPublisherTypeEnumStringValues

func GetPublisherSummaryPublisherTypeEnumStringValues() []string

GetPublisherSummaryPublisherTypeEnumStringValues Enumerates the set of values in String for PublisherSummaryPublisherTypeEnum

func GetResourceBundleTypeEnumStringValues

func GetResourceBundleTypeEnumStringValues() []string

GetResourceBundleTypeEnumStringValues Enumerates the set of values in String for ResourceBundleTypeEnum

func GetResourceBundleUnitOfMeasurementEnumStringValues

func GetResourceBundleUnitOfMeasurementEnumStringValues() []string

GetResourceBundleUnitOfMeasurementEnumStringValues Enumerates the set of values in String for ResourceBundleUnitOfMeasurementEnum

func GetSortOrderEnumStringValues

func GetSortOrderEnumStringValues() []string

GetSortOrderEnumStringValues Enumerates the set of values in String for SortOrderEnum

type Attachment

Attachment Description of Attachment.

type Attachment struct {

    // Unique identifier that is immutable on creation
    Id *string `mandatory:"true" json:"id"`

    // OCID of the seller's tenancy (root compartment).
    SellerCompartmentId *string `mandatory:"true" json:"sellerCompartmentId"`

    // Unique identifier of the associated offer that is immutable on creation
    OfferId *string `mandatory:"true" json:"offerId"`

    // The name used to refer to the uploaded data.
    DisplayName *string `mandatory:"true" json:"displayName"`

    // The type of offer attachment.
    Type AttachmentTypeEnum `mandatory:"true" json:"type"`

    // The time the the Offer was created. An RFC3339 formatted datetime string
    TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"`

    // The current state of the Offer.
    LifecycleState AttachmentLifecycleStateEnum `mandatory:"true" json:"lifecycleState"`

    // Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
    // Example: `{"bar-key": "value"}`
    FreeformTags map[string]string `mandatory:"true" json:"freeformTags"`

    // Defined tags for this resource. Each key is predefined and scoped to a namespace.
    // Example: `{"foo-namespace": {"bar-key": "value"}}`
    DefinedTags map[string]map[string]interface{} `mandatory:"true" json:"definedTags"`

    // OCID of the buyer's tenancy (root compartment).
    BuyerCompartmentId *string `mandatory:"false" json:"buyerCompartmentId"`

    // The MIME type of the uploaded data.
    MimeType *string `mandatory:"false" json:"mimeType"`
}

func (Attachment) String

func (m Attachment) String() string

func (Attachment) ValidateEnumValue

func (m Attachment) ValidateEnumValue() (bool, error)

ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly

type AttachmentClient

AttachmentClient a client for Attachment

type AttachmentClient struct {
    common.BaseClient
    // contains filtered or unexported fields
}

func NewAttachmentClientWithConfigurationProvider

func NewAttachmentClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client AttachmentClient, err error)

NewAttachmentClientWithConfigurationProvider Creates a new default Attachment client with the given configuration provider. the configuration provider will be used for the default signer as well as reading the region

func NewAttachmentClientWithOboToken

func NewAttachmentClientWithOboToken(configProvider common.ConfigurationProvider, oboToken string) (client AttachmentClient, err error)

NewAttachmentClientWithOboToken Creates a new default Attachment client with the given configuration provider. The obotoken will be added to default headers and signed; the configuration provider will be used for the signer

as well as reading the region

func (*AttachmentClient) ConfigurationProvider

func (client *AttachmentClient) ConfigurationProvider() *common.ConfigurationProvider

ConfigurationProvider the ConfigurationProvider used in this client, or null if none set

func (AttachmentClient) CreateAttachment

func (client AttachmentClient) CreateAttachment(ctx context.Context, request CreateAttachmentRequest) (response CreateAttachmentResponse, err error)

CreateAttachment Creates a new Attachment.

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.68.0/marketplaceprivateoffer/CreateAttachment.go.html to see an example of how to use CreateAttachment API. A default retry strategy applies to this operation CreateAttachment()

func (AttachmentClient) DeleteAttachment

func (client AttachmentClient) DeleteAttachment(ctx context.Context, request DeleteAttachmentRequest) (response DeleteAttachmentResponse, err error)

DeleteAttachment Deletes a Attachment resource by identifier

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.68.0/marketplaceprivateoffer/DeleteAttachment.go.html to see an example of how to use DeleteAttachment API. A default retry strategy applies to this operation DeleteAttachment()

func (AttachmentClient) GetAttachment

func (client AttachmentClient) GetAttachment(ctx context.Context, request GetAttachmentRequest) (response GetAttachmentResponse, err error)

GetAttachment Gets a Attachment by identifier

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.68.0/marketplaceprivateoffer/GetAttachment.go.html to see an example of how to use GetAttachment API. A default retry strategy applies to this operation GetAttachment()

func (AttachmentClient) GetAttachmentContent

func (client AttachmentClient) GetAttachmentContent(ctx context.Context, request GetAttachmentContentRequest) (response GetAttachmentContentResponse, err error)

GetAttachmentContent Gets a Attachment content by identifier

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.68.0/marketplaceprivateoffer/GetAttachmentContent.go.html to see an example of how to use GetAttachmentContent API. A default retry strategy applies to this operation GetAttachmentContent()

func (AttachmentClient) ListAttachments

func (client AttachmentClient) ListAttachments(ctx context.Context, request ListAttachmentsRequest) (response ListAttachmentsResponse, err error)

ListAttachments Returns a list of Attachments. Requires either the BuyerCompartmentId or the SellerCompartmentId params. If neither or both are provided, then the API will return a 400.

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.68.0/marketplaceprivateoffer/ListAttachments.go.html to see an example of how to use ListAttachments API. A default retry strategy applies to this operation ListAttachments()

func (*AttachmentClient) SetRegion

func (client *AttachmentClient) SetRegion(region string)

SetRegion overrides the region of this client.

type AttachmentCollection

AttachmentCollection Results of a offers search. Contains boh AttachmentSummary items.

type AttachmentCollection struct {

    // List of attachment.
    Items []AttachmentSummary `mandatory:"true" json:"items"`
}

func (AttachmentCollection) String

func (m AttachmentCollection) String() string

func (AttachmentCollection) ValidateEnumValue

func (m AttachmentCollection) ValidateEnumValue() (bool, error)

ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly

type AttachmentLifecycleStateEnum

AttachmentLifecycleStateEnum Enum with underlying type: string

type AttachmentLifecycleStateEnum string

Set of constants representing the allowable values for AttachmentLifecycleStateEnum

const (
    AttachmentLifecycleStateCreating AttachmentLifecycleStateEnum = "CREATING"
    AttachmentLifecycleStateUpdating AttachmentLifecycleStateEnum = "UPDATING"
    AttachmentLifecycleStateActive   AttachmentLifecycleStateEnum = "ACTIVE"
    AttachmentLifecycleStateDeleting AttachmentLifecycleStateEnum = "DELETING"
    AttachmentLifecycleStateDeleted  AttachmentLifecycleStateEnum = "DELETED"
    AttachmentLifecycleStateFailed   AttachmentLifecycleStateEnum = "FAILED"
)

func GetAttachmentLifecycleStateEnumValues

func GetAttachmentLifecycleStateEnumValues() []AttachmentLifecycleStateEnum

GetAttachmentLifecycleStateEnumValues Enumerates the set of values for AttachmentLifecycleStateEnum

func GetMappingAttachmentLifecycleStateEnum

func GetMappingAttachmentLifecycleStateEnum(val string) (AttachmentLifecycleStateEnum, bool)

GetMappingAttachmentLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum

type AttachmentSummary

AttachmentSummary Description of Attachment.

type AttachmentSummary struct {

    // Unique identifier that is immutable on creation
    Id *string `mandatory:"true" json:"id"`

    // Unique identifier of the associated offer that is immutable on creation
    OfferId *string `mandatory:"true" json:"offerId"`

    // The name used to refer to the uploaded data.
    DisplayName *string `mandatory:"true" json:"displayName"`

    // The type of offer attachment.
    Type AttachmentTypeEnum `mandatory:"true" json:"type"`

    // The current state of the Attachment.
    LifecycleState AttachmentLifecycleStateEnum `mandatory:"true" json:"lifecycleState"`

    // Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
    // Example: `{"bar-key": "value"}`
    FreeformTags map[string]string `mandatory:"true" json:"freeformTags"`

    // Defined tags for this resource. Each key is predefined and scoped to a namespace.
    // Example: `{"foo-namespace": {"bar-key": "value"}}`
    DefinedTags map[string]map[string]interface{} `mandatory:"true" json:"definedTags"`

    // The MIME type of the uploaded data.
    MimeType *string `mandatory:"false" json:"mimeType"`
}

func (AttachmentSummary) String

func (m AttachmentSummary) String() string

func (AttachmentSummary) ValidateEnumValue

func (m AttachmentSummary) ValidateEnumValue() (bool, error)

ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly

type AttachmentTypeEnum

AttachmentTypeEnum Enum with underlying type: string

type AttachmentTypeEnum string

Set of constants representing the allowable values for AttachmentTypeEnum

const (
    AttachmentTypeContractTAndC AttachmentTypeEnum = "CONTRACT_T_AND_C"
    AttachmentTypeQuote         AttachmentTypeEnum = "QUOTE"
    AttachmentTypeEula          AttachmentTypeEnum = "EULA"
    AttachmentTypeTermsOfUse    AttachmentTypeEnum = "TERMS_OF_USE"
    AttachmentTypeMisc          AttachmentTypeEnum = "MISC"
)

func GetAttachmentTypeEnumValues

func GetAttachmentTypeEnumValues() []AttachmentTypeEnum

GetAttachmentTypeEnumValues Enumerates the set of values for AttachmentTypeEnum

func GetMappingAttachmentTypeEnum

func GetMappingAttachmentTypeEnum(val string) (AttachmentTypeEnum, bool)

GetMappingAttachmentTypeEnum performs case Insensitive comparison on enum value and return the desired enum

type BuyerInformation

BuyerInformation The information related to the buyer of an Offer

type BuyerInformation struct {

    // the name of the company for the buyer
    CompanyName *string `mandatory:"false" json:"companyName"`

    // a note the seller can specify for the buyer through a notification email
    NoteToBuyer *string `mandatory:"false" json:"noteToBuyer"`

    PrimaryContact *Contact `mandatory:"false" json:"primaryContact"`

    // the additional contacts associated with the buyer
    AdditionalContacts []Contact `mandatory:"false" json:"additionalContacts"`
}

func (BuyerInformation) String

func (m BuyerInformation) String() string

func (BuyerInformation) ValidateEnumValue

func (m BuyerInformation) ValidateEnumValue() (bool, error)

ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly

type Contact

Contact The contact information of an individual

type Contact struct {

    // The first name of the contact
    FirstName *string `mandatory:"false" json:"firstName"`

    // The last name of the contact
    LastName *string `mandatory:"false" json:"lastName"`

    // The email of the contact
    Email *string `mandatory:"false" json:"email"`
}

func (Contact) String

func (m Contact) String() string

func (Contact) ValidateEnumValue

func (m Contact) ValidateEnumValue() (bool, error)

ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly

type CreateAttachmentDetails

CreateAttachmentDetails An attachment uploaded by the Publisher to be attached to an Offer.

type CreateAttachmentDetails struct {

    // Base64-encoded file to attach to the Offer. File must be a PDF with maximum size of 1 MB
    FileBase64Encoded []byte `mandatory:"true" json:"fileBase64Encoded"`

    // The name used to refer to the uploaded data.
    DisplayName *string `mandatory:"true" json:"displayName"`

    // The type of offer attachment.
    Type AttachmentTypeEnum `mandatory:"true" json:"type"`
}

func (CreateAttachmentDetails) String

func (m CreateAttachmentDetails) String() string

func (CreateAttachmentDetails) ValidateEnumValue

func (m CreateAttachmentDetails) ValidateEnumValue() (bool, error)

ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly

type CreateAttachmentRequest

CreateAttachmentRequest wrapper for the CreateAttachment operation

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.68.0/marketplaceprivateoffer/CreateAttachment.go.html to see an example of how to use CreateAttachmentRequest.

type CreateAttachmentRequest struct {

    // Details for the new Attachment.
    CreateAttachmentDetails `contributesTo:"body"`

    // unique Offer identifier
    OfferId *string `mandatory:"true" contributesTo:"path" name:"offerId"`

    // A token that uniquely identifies a request so it can be retried in case of a timeout or
    // server error without risk of executing that same action again. Retry tokens expire after 24
    // hours, but can be invalidated before then due to conflicting operations. For example, if a resource
    // has been deleted and purged from the system, then a retry of the original creation request
    // might be rejected.
    OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"`

    // The client request ID for tracing.
    OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`

    // Metadata about the request. This information will not be transmitted to the service, but
    // represents information that the SDK will consume to drive retry behavior.
    RequestMetadata common.RequestMetadata
}

func (CreateAttachmentRequest) BinaryRequestBody

func (request CreateAttachmentRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)

BinaryRequestBody implements the OCIRequest interface

func (CreateAttachmentRequest) HTTPRequest

func (request CreateAttachmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)

HTTPRequest implements the OCIRequest interface

func (CreateAttachmentRequest) RetryPolicy

func (request CreateAttachmentRequest) RetryPolicy() *common.RetryPolicy

RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.

func (CreateAttachmentRequest) String

func (request CreateAttachmentRequest) String() string

func (CreateAttachmentRequest) ValidateEnumValue

func (request CreateAttachmentRequest) ValidateEnumValue() (bool, error)

ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly

type CreateAttachmentResponse

CreateAttachmentResponse wrapper for the CreateAttachment operation

type CreateAttachmentResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // The Attachment instance
    Attachment `presentIn:"body"`

    // For optimistic concurrency control. See `if-match`.
    Etag *string `presentIn:"header" name:"etag"`

    // Unique Oracle-assigned identifier for the request. If you need to contact
    // Oracle about a particular request, please provide the request ID.
    OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
}

func (CreateAttachmentResponse) HTTPResponse

func (response CreateAttachmentResponse) HTTPResponse() *http.Response

HTTPResponse implements the OCIResponse interface

func (CreateAttachmentResponse) String

func (response CreateAttachmentResponse) String() string

type CreateOfferDetails

CreateOfferDetails The information about new Offers.

type CreateOfferDetails struct {

    // Offers Identifier
    DisplayName *string `mandatory:"true" json:"displayName"`

    // Compartment Identifier of the seller
    SellerCompartmentId *string `mandatory:"true" json:"sellerCompartmentId"`

    // Compartment Identifier of the buyer
    BuyerCompartmentId *string `mandatory:"false" json:"buyerCompartmentId"`

    // Description of the Offer
    Description *string `mandatory:"false" json:"description"`

    // Internal notes of the Offer
    InternalNotes *string `mandatory:"false" json:"internalNotes"`

    // The time the Offer will become active after it has been accepted by the Buyer. An RFC3339 formatted datetime string
    TimeStartDate *common.SDKTime `mandatory:"false" json:"timeStartDate"`

    // Duration the Offer will be active after its start date. An ISO8601 extended formatted string.
    Duration *string `mandatory:"false" json:"duration"`

    // The time the Offer must be accepted by the Buyer before the Offer becomes invalid. An RFC3339 formatted datetime string
    TimeAcceptBy *common.SDKTime `mandatory:"false" json:"timeAcceptBy"`

    Pricing *Pricing `mandatory:"false" json:"pricing"`

    BuyerInformation *BuyerInformation `mandatory:"false" json:"buyerInformation"`

    SellerInformation *SellerInformation `mandatory:"false" json:"sellerInformation"`

    // A list of Resource Bundles associated with an Offer.
    ResourceBundles []ResourceBundle `mandatory:"false" json:"resourceBundles"`

    // A list of key value pairs specified by the seller
    CustomFields []CustomField `mandatory:"false" json:"customFields"`

    // Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
    // Example: `{"bar-key": "value"}`
    FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`

    // Defined tags for this resource. Each key is predefined and scoped to a namespace.
    // Example: `{"foo-namespace": {"bar-key": "value"}}`
    DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`
}

func (CreateOfferDetails) String

func (m CreateOfferDetails) String() string

func (CreateOfferDetails) ValidateEnumValue

func (m CreateOfferDetails) ValidateEnumValue() (bool, error)

ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly

type CreateOfferRequest

CreateOfferRequest wrapper for the CreateOffer operation

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.68.0/marketplaceprivateoffer/CreateOffer.go.html to see an example of how to use CreateOfferRequest.

type CreateOfferRequest struct {

    // Details for the new Offer.
    CreateOfferDetails `contributesTo:"body"`

    // A token that uniquely identifies a request so it can be retried in case of a timeout or
    // server error without risk of executing that same action again. Retry tokens expire after 24
    // hours, but can be invalidated before then due to conflicting operations. For example, if a resource
    // has been deleted and purged from the system, then a retry of the original creation request
    // might be rejected.
    OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"`

    // The client request ID for tracing.
    OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`

    // Metadata about the request. This information will not be transmitted to the service, but
    // represents information that the SDK will consume to drive retry behavior.
    RequestMetadata common.RequestMetadata
}

func (CreateOfferRequest) BinaryRequestBody

func (request CreateOfferRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)

BinaryRequestBody implements the OCIRequest interface

func (CreateOfferRequest) HTTPRequest

func (request CreateOfferRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)

HTTPRequest implements the OCIRequest interface

func (CreateOfferRequest) RetryPolicy

func (request CreateOfferRequest) RetryPolicy() *common.RetryPolicy

RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.

func (CreateOfferRequest) String

func (request CreateOfferRequest) String() string

func (CreateOfferRequest) ValidateEnumValue

func (request CreateOfferRequest) ValidateEnumValue() (bool, error)

ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly

type CreateOfferResponse

CreateOfferResponse wrapper for the CreateOffer operation

type CreateOfferResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // The Offer instance
    Offer `presentIn:"body"`

    // Unique Oracle-assigned identifier for the request. If you need to contact
    // Oracle about a particular request, please provide the request ID.
    OpcRequestId *string `presentIn:"header" name:"opc-request-id"`

    // For optimistic concurrency control. See `if-match`.
    Etag *string `presentIn:"header" name:"etag"`
}

func (CreateOfferResponse) HTTPResponse

func (response CreateOfferResponse) HTTPResponse() *http.Response

HTTPResponse implements the OCIResponse interface

func (CreateOfferResponse) String

func (response CreateOfferResponse) String() string

type CustomField

CustomField A key value pair specified by the seller of the offer

type CustomField struct {

    // the key of the custom field
    Key *string `mandatory:"false" json:"key"`

    // the value of the custom field
    Value *string `mandatory:"false" json:"value"`
}

func (CustomField) String

func (m CustomField) String() string

func (CustomField) ValidateEnumValue

func (m CustomField) ValidateEnumValue() (bool, error)

ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly

type DeleteAttachmentRequest

DeleteAttachmentRequest wrapper for the DeleteAttachment operation

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.68.0/marketplaceprivateoffer/DeleteAttachment.go.html to see an example of how to use DeleteAttachmentRequest.

type DeleteAttachmentRequest struct {

    // unique Offer identifier
    OfferId *string `mandatory:"true" contributesTo:"path" name:"offerId"`

    // unique Offer identifier
    AttachmentId *string `mandatory:"true" contributesTo:"path" name:"attachmentId"`

    // For optimistic concurrency control. In the PUT or DELETE call
    // for a resource, set the `if-match` parameter to the value of the
    // etag from a previous GET or POST response for that resource.
    // The resource will be updated or deleted only if the etag you
    // provide matches the resource's current etag value.
    IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"`

    // The client request ID for tracing.
    OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`

    // Metadata about the request. This information will not be transmitted to the service, but
    // represents information that the SDK will consume to drive retry behavior.
    RequestMetadata common.RequestMetadata
}

func (DeleteAttachmentRequest) BinaryRequestBody

func (request DeleteAttachmentRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)

BinaryRequestBody implements the OCIRequest interface

func (DeleteAttachmentRequest) HTTPRequest

func (request DeleteAttachmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)

HTTPRequest implements the OCIRequest interface

func (DeleteAttachmentRequest) RetryPolicy

func (request DeleteAttachmentRequest) RetryPolicy() *common.RetryPolicy

RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.

func (DeleteAttachmentRequest) String

func (request DeleteAttachmentRequest) String() string

func (DeleteAttachmentRequest) ValidateEnumValue

func (request DeleteAttachmentRequest) ValidateEnumValue() (bool, error)

ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly

type DeleteAttachmentResponse

DeleteAttachmentResponse wrapper for the DeleteAttachment operation

type DeleteAttachmentResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status.
    OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"`

    // Unique Oracle-assigned identifier for the request. If you need to contact
    // Oracle about a particular request, please provide the request ID.
    OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
}

func (DeleteAttachmentResponse) HTTPResponse

func (response DeleteAttachmentResponse) HTTPResponse() *http.Response

HTTPResponse implements the OCIResponse interface

func (DeleteAttachmentResponse) String

func (response DeleteAttachmentResponse) String() string

type DeleteOfferRequest

DeleteOfferRequest wrapper for the DeleteOffer operation

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.68.0/marketplaceprivateoffer/DeleteOffer.go.html to see an example of how to use DeleteOfferRequest.

type DeleteOfferRequest struct {

    // unique Offer identifier
    OfferId *string `mandatory:"true" contributesTo:"path" name:"offerId"`

    // For optimistic concurrency control. In the PUT or DELETE call
    // for a resource, set the `if-match` parameter to the value of the
    // etag from a previous GET or POST response for that resource.
    // The resource will be updated or deleted only if the etag you
    // provide matches the resource's current etag value.
    IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"`

    // The client request ID for tracing.
    OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`

    // Metadata about the request. This information will not be transmitted to the service, but
    // represents information that the SDK will consume to drive retry behavior.
    RequestMetadata common.RequestMetadata
}

func (DeleteOfferRequest) BinaryRequestBody

func (request DeleteOfferRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)

BinaryRequestBody implements the OCIRequest interface

func (DeleteOfferRequest) HTTPRequest

func (request DeleteOfferRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)

HTTPRequest implements the OCIRequest interface

func (DeleteOfferRequest) RetryPolicy

func (request DeleteOfferRequest) RetryPolicy() *common.RetryPolicy

RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.

func (DeleteOfferRequest) String

func (request DeleteOfferRequest) String() string

func (DeleteOfferRequest) ValidateEnumValue

func (request DeleteOfferRequest) ValidateEnumValue() (bool, error)

ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly

type DeleteOfferResponse

DeleteOfferResponse wrapper for the DeleteOffer operation

type DeleteOfferResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status.
    OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"`

    // Unique Oracle-assigned identifier for the request. If you need to contact
    // Oracle about a particular request, please provide the request ID.
    OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
}

func (DeleteOfferResponse) HTTPResponse

func (response DeleteOfferResponse) HTTPResponse() *http.Response

HTTPResponse implements the OCIResponse interface

func (DeleteOfferResponse) String

func (response DeleteOfferResponse) String() string

type GetAttachmentContentRequest

GetAttachmentContentRequest wrapper for the GetAttachmentContent operation

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.68.0/marketplaceprivateoffer/GetAttachmentContent.go.html to see an example of how to use GetAttachmentContentRequest.

type GetAttachmentContentRequest struct {

    // unique Offer identifier
    OfferId *string `mandatory:"true" contributesTo:"path" name:"offerId"`

    // unique Offer identifier
    AttachmentId *string `mandatory:"true" contributesTo:"path" name:"attachmentId"`

    // The client request ID for tracing.
    OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`

    // Metadata about the request. This information will not be transmitted to the service, but
    // represents information that the SDK will consume to drive retry behavior.
    RequestMetadata common.RequestMetadata
}

func (GetAttachmentContentRequest) BinaryRequestBody

func (request GetAttachmentContentRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)

BinaryRequestBody implements the OCIRequest interface

func (GetAttachmentContentRequest) HTTPRequest

func (request GetAttachmentContentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)

HTTPRequest implements the OCIRequest interface

func (GetAttachmentContentRequest) RetryPolicy

func (request GetAttachmentContentRequest) RetryPolicy() *common.RetryPolicy

RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.

func (GetAttachmentContentRequest) String

func (request GetAttachmentContentRequest) String() string

func (GetAttachmentContentRequest) ValidateEnumValue

func (request GetAttachmentContentRequest) ValidateEnumValue() (bool, error)

ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly

type GetAttachmentContentResponse

GetAttachmentContentResponse wrapper for the GetAttachmentContent operation

type GetAttachmentContentResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // The io.ReadCloser instance
    Content io.ReadCloser `presentIn:"body" encoding:"binary"`

    // Unique Oracle-assigned identifier for the request. If you need to contact
    // Oracle about a particular request, please provide the request ID.
    OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
}

func (GetAttachmentContentResponse) HTTPResponse

func (response GetAttachmentContentResponse) HTTPResponse() *http.Response

HTTPResponse implements the OCIResponse interface

func (GetAttachmentContentResponse) String

func (response GetAttachmentContentResponse) String() string

type GetAttachmentRequest

GetAttachmentRequest wrapper for the GetAttachment operation

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.68.0/marketplaceprivateoffer/GetAttachment.go.html to see an example of how to use GetAttachmentRequest.

type GetAttachmentRequest struct {

    // unique Offer identifier
    OfferId *string `mandatory:"true" contributesTo:"path" name:"offerId"`

    // unique Offer identifier
    AttachmentId *string `mandatory:"true" contributesTo:"path" name:"attachmentId"`

    // The client request ID for tracing.
    OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`

    // Metadata about the request. This information will not be transmitted to the service, but
    // represents information that the SDK will consume to drive retry behavior.
    RequestMetadata common.RequestMetadata
}

func (GetAttachmentRequest) BinaryRequestBody

func (request GetAttachmentRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)

BinaryRequestBody implements the OCIRequest interface

func (GetAttachmentRequest) HTTPRequest

func (request GetAttachmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)

HTTPRequest implements the OCIRequest interface

func (GetAttachmentRequest) RetryPolicy

func (request GetAttachmentRequest) RetryPolicy() *common.RetryPolicy

RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.

func (GetAttachmentRequest) String

func (request GetAttachmentRequest) String() string

func (GetAttachmentRequest) ValidateEnumValue

func (request GetAttachmentRequest) ValidateEnumValue() (bool, error)

ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly

type GetAttachmentResponse

GetAttachmentResponse wrapper for the GetAttachment operation

type GetAttachmentResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // The Attachment instance
    Attachment `presentIn:"body"`

    // For optimistic concurrency control. See `if-match`.
    Etag *string `presentIn:"header" name:"etag"`

    // Unique Oracle-assigned identifier for the request. If you need to contact
    // Oracle about a particular request, please provide the request ID.
    OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
}

func (GetAttachmentResponse) HTTPResponse

func (response GetAttachmentResponse) HTTPResponse() *http.Response

HTTPResponse implements the OCIResponse interface

func (GetAttachmentResponse) String

func (response GetAttachmentResponse) String() string

type GetOfferInternalDetailRequest

GetOfferInternalDetailRequest wrapper for the GetOfferInternalDetail operation

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.68.0/marketplaceprivateoffer/GetOfferInternalDetail.go.html to see an example of how to use GetOfferInternalDetailRequest.

type GetOfferInternalDetailRequest struct {

    // unique Offer identifier
    OfferId *string `mandatory:"true" contributesTo:"path" name:"offerId"`

    // The client request ID for tracing.
    OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`

    // Metadata about the request. This information will not be transmitted to the service, but
    // represents information that the SDK will consume to drive retry behavior.
    RequestMetadata common.RequestMetadata
}

func (GetOfferInternalDetailRequest) BinaryRequestBody

func (request GetOfferInternalDetailRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)

BinaryRequestBody implements the OCIRequest interface

func (GetOfferInternalDetailRequest) HTTPRequest

func (request GetOfferInternalDetailRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)

HTTPRequest implements the OCIRequest interface

func (GetOfferInternalDetailRequest) RetryPolicy

func (request GetOfferInternalDetailRequest) RetryPolicy() *common.RetryPolicy

RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.

func (GetOfferInternalDetailRequest) String

func (request GetOfferInternalDetailRequest) String() string

func (GetOfferInternalDetailRequest) ValidateEnumValue

func (request GetOfferInternalDetailRequest) ValidateEnumValue() (bool, error)

ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly

type GetOfferInternalDetailResponse

GetOfferInternalDetailResponse wrapper for the GetOfferInternalDetail operation

type GetOfferInternalDetailResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // The OfferInternalDetail instance
    OfferInternalDetail `presentIn:"body"`

    // For optimistic concurrency control. See `if-match`.
    Etag *string `presentIn:"header" name:"etag"`

    // Unique Oracle-assigned identifier for the request. If you need to contact
    // Oracle about a particular request, please provide the request ID.
    OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
}

func (GetOfferInternalDetailResponse) HTTPResponse

func (response GetOfferInternalDetailResponse) HTTPResponse() *http.Response

HTTPResponse implements the OCIResponse interface

func (GetOfferInternalDetailResponse) String

func (response GetOfferInternalDetailResponse) String() string

type GetOfferRequest

GetOfferRequest wrapper for the GetOffer operation

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.68.0/marketplaceprivateoffer/GetOffer.go.html to see an example of how to use GetOfferRequest.

type GetOfferRequest struct {

    // unique Offer identifier
    OfferId *string `mandatory:"true" contributesTo:"path" name:"offerId"`

    // The client request ID for tracing.
    OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`

    // Metadata about the request. This information will not be transmitted to the service, but
    // represents information that the SDK will consume to drive retry behavior.
    RequestMetadata common.RequestMetadata
}

func (GetOfferRequest) BinaryRequestBody

func (request GetOfferRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)

BinaryRequestBody implements the OCIRequest interface

func (GetOfferRequest) HTTPRequest

func (request GetOfferRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)

HTTPRequest implements the OCIRequest interface

func (GetOfferRequest) RetryPolicy

func (request GetOfferRequest) RetryPolicy() *common.RetryPolicy

RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.

func (GetOfferRequest) String

func (request GetOfferRequest) String() string

func (GetOfferRequest) ValidateEnumValue

func (request GetOfferRequest) ValidateEnumValue() (bool, error)

ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly

type GetOfferResponse

GetOfferResponse wrapper for the GetOffer operation

type GetOfferResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // The Offer instance
    Offer `presentIn:"body"`

    // For optimistic concurrency control. See `if-match`.
    Etag *string `presentIn:"header" name:"etag"`

    // Unique Oracle-assigned identifier for the request. If you need to contact
    // Oracle about a particular request, please provide the request ID.
    OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
}

func (GetOfferResponse) HTTPResponse

func (response GetOfferResponse) HTTPResponse() *http.Response

HTTPResponse implements the OCIResponse interface

func (GetOfferResponse) String

func (response GetOfferResponse) String() string

type ListAttachmentsRequest

ListAttachmentsRequest wrapper for the ListAttachments operation

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.68.0/marketplaceprivateoffer/ListAttachments.go.html to see an example of how to use ListAttachmentsRequest.

type ListAttachmentsRequest struct {

    // unique Offer identifier
    OfferId *string `mandatory:"true" contributesTo:"path" name:"offerId"`

    // The ID of the buyer compartment this offer is associated with.
    BuyerCompartmentId *string `mandatory:"false" contributesTo:"query" name:"buyerCompartmentId"`

    // The ID of the seller compartment this offer is associated with.
    SellerCompartmentId *string `mandatory:"false" contributesTo:"query" name:"sellerCompartmentId"`

    // A filter to return only resources their lifecycleState matches the given lifecycleState.
    LifecycleState AttachmentLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"`

    // A filter to return only resources that match the entire display name given.
    DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"`

    // unique Offer identifier
    Id *string `mandatory:"false" contributesTo:"query" name:"id"`

    // The maximum number of items to return.
    Limit *int `mandatory:"false" contributesTo:"query" name:"limit"`

    // A token representing the position at which to start retrieving results. This must come from the `opc-next-page` header field of a previous response.
    Page *string `mandatory:"false" contributesTo:"query" name:"page"`

    // The sort order to use, either 'ASC' or 'DESC'.
    SortOrder ListAttachmentsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"`

    // The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending.
    SortBy ListAttachmentsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"`

    // The client request ID for tracing.
    OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`

    // Metadata about the request. This information will not be transmitted to the service, but
    // represents information that the SDK will consume to drive retry behavior.
    RequestMetadata common.RequestMetadata
}

func (ListAttachmentsRequest) BinaryRequestBody

func (request ListAttachmentsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)

BinaryRequestBody implements the OCIRequest interface

func (ListAttachmentsRequest) HTTPRequest

func (request ListAttachmentsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)

HTTPRequest implements the OCIRequest interface

func (ListAttachmentsRequest) RetryPolicy

func (request ListAttachmentsRequest) RetryPolicy() *common.RetryPolicy

RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.

func (ListAttachmentsRequest) String

func (request ListAttachmentsRequest) String() string

func (ListAttachmentsRequest) ValidateEnumValue

func (request ListAttachmentsRequest) ValidateEnumValue() (bool, error)

ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly

type ListAttachmentsResponse

ListAttachmentsResponse wrapper for the ListAttachments operation

type ListAttachmentsResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // A list of AttachmentCollection instances
    AttachmentCollection `presentIn:"body"`

    // Unique Oracle-assigned identifier for the request. If you need to contact
    // Oracle about a particular request, please provide the request ID.
    OpcRequestId *string `presentIn:"header" name:"opc-request-id"`

    // For pagination of a list of items. When paging through a list, if this header appears in the response,
    // then a partial list might have been returned. Include this value as the `page` parameter for the
    // subsequent GET request to get the next batch of items.
    OpcNextPage *string `presentIn:"header" name:"opc-next-page"`
}

func (ListAttachmentsResponse) HTTPResponse

func (response ListAttachmentsResponse) HTTPResponse() *http.Response

HTTPResponse implements the OCIResponse interface

func (ListAttachmentsResponse) String

func (response ListAttachmentsResponse) String() string

type ListAttachmentsSortByEnum

ListAttachmentsSortByEnum Enum with underlying type: string

type ListAttachmentsSortByEnum string

Set of constants representing the allowable values for ListAttachmentsSortByEnum

const (
    ListAttachmentsSortByTimecreated ListAttachmentsSortByEnum = "timeCreated"
    ListAttachmentsSortByDisplayname ListAttachmentsSortByEnum = "displayName"
)

func GetListAttachmentsSortByEnumValues

func GetListAttachmentsSortByEnumValues() []ListAttachmentsSortByEnum

GetListAttachmentsSortByEnumValues Enumerates the set of values for ListAttachmentsSortByEnum

func GetMappingListAttachmentsSortByEnum

func GetMappingListAttachmentsSortByEnum(val string) (ListAttachmentsSortByEnum, bool)

GetMappingListAttachmentsSortByEnum performs case Insensitive comparison on enum value and return the desired enum

type ListAttachmentsSortOrderEnum

ListAttachmentsSortOrderEnum Enum with underlying type: string

type ListAttachmentsSortOrderEnum string

Set of constants representing the allowable values for ListAttachmentsSortOrderEnum

const (
    ListAttachmentsSortOrderAsc  ListAttachmentsSortOrderEnum = "ASC"
    ListAttachmentsSortOrderDesc ListAttachmentsSortOrderEnum = "DESC"
)

func GetListAttachmentsSortOrderEnumValues

func GetListAttachmentsSortOrderEnumValues() []ListAttachmentsSortOrderEnum

GetListAttachmentsSortOrderEnumValues Enumerates the set of values for ListAttachmentsSortOrderEnum

func GetMappingListAttachmentsSortOrderEnum

func GetMappingListAttachmentsSortOrderEnum(val string) (ListAttachmentsSortOrderEnum, bool)

GetMappingListAttachmentsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum

type ListOffersRequest

ListOffersRequest wrapper for the ListOffers operation

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.68.0/marketplaceprivateoffer/ListOffers.go.html to see an example of how to use ListOffersRequest.

type ListOffersRequest struct {

    // The ID of the buyer compartment this offer is associated with.
    BuyerCompartmentId *string `mandatory:"false" contributesTo:"query" name:"buyerCompartmentId"`

    // The ID of the seller compartment this offer is associated with.
    SellerCompartmentId *string `mandatory:"false" contributesTo:"query" name:"sellerCompartmentId"`

    // A filter to return only resources their lifecycleState matches the given lifecycleState.
    LifecycleState OfferLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"`

    // A filter to return only resources that match the entire display name given.
    DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"`

    // unique Offer identifier
    Id *string `mandatory:"false" contributesTo:"query" name:"id"`

    // The maximum number of items to return.
    Limit *int `mandatory:"false" contributesTo:"query" name:"limit"`

    // A token representing the position at which to start retrieving results. This must come from the `opc-next-page` header field of a previous response.
    Page *string `mandatory:"false" contributesTo:"query" name:"page"`

    // The sort order to use, either 'ASC' or 'DESC'.
    SortOrder ListOffersSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"`

    // The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending.
    SortBy ListOffersSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"`

    // The client request ID for tracing.
    OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`

    // Metadata about the request. This information will not be transmitted to the service, but
    // represents information that the SDK will consume to drive retry behavior.
    RequestMetadata common.RequestMetadata
}

func (ListOffersRequest) BinaryRequestBody

func (request ListOffersRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)

BinaryRequestBody implements the OCIRequest interface

func (ListOffersRequest) HTTPRequest

func (request ListOffersRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)

HTTPRequest implements the OCIRequest interface

func (ListOffersRequest) RetryPolicy

func (request ListOffersRequest) RetryPolicy() *common.RetryPolicy

RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.

func (ListOffersRequest) String

func (request ListOffersRequest) String() string

func (ListOffersRequest) ValidateEnumValue

func (request ListOffersRequest) ValidateEnumValue() (bool, error)

ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly

type ListOffersResponse

ListOffersResponse wrapper for the ListOffers operation

type ListOffersResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // A list of OfferCollection instances
    OfferCollection `presentIn:"body"`

    // Unique Oracle-assigned identifier for the request. If you need to contact
    // Oracle about a particular request, please provide the request ID.
    OpcRequestId *string `presentIn:"header" name:"opc-request-id"`

    // For pagination of a list of items. When paging through a list, if this header appears in the response,
    // then a partial list might have been returned. Include this value as the `page` parameter for the
    // subsequent GET request to get the next batch of items.
    OpcNextPage *string `presentIn:"header" name:"opc-next-page"`
}

func (ListOffersResponse) HTTPResponse

func (response ListOffersResponse) HTTPResponse() *http.Response

HTTPResponse implements the OCIResponse interface

func (ListOffersResponse) String

func (response ListOffersResponse) String() string

type ListOffersSortByEnum

ListOffersSortByEnum Enum with underlying type: string

type ListOffersSortByEnum string

Set of constants representing the allowable values for ListOffersSortByEnum

const (
    ListOffersSortByTimecreated ListOffersSortByEnum = "timeCreated"
    ListOffersSortByDisplayname ListOffersSortByEnum = "displayName"
)

func GetListOffersSortByEnumValues

func GetListOffersSortByEnumValues() []ListOffersSortByEnum

GetListOffersSortByEnumValues Enumerates the set of values for ListOffersSortByEnum

func GetMappingListOffersSortByEnum

func GetMappingListOffersSortByEnum(val string) (ListOffersSortByEnum, bool)

GetMappingListOffersSortByEnum performs case Insensitive comparison on enum value and return the desired enum

type ListOffersSortOrderEnum

ListOffersSortOrderEnum Enum with underlying type: string

type ListOffersSortOrderEnum string

Set of constants representing the allowable values for ListOffersSortOrderEnum

const (
    ListOffersSortOrderAsc  ListOffersSortOrderEnum = "ASC"
    ListOffersSortOrderDesc ListOffersSortOrderEnum = "DESC"
)

func GetListOffersSortOrderEnumValues

func GetListOffersSortOrderEnumValues() []ListOffersSortOrderEnum

GetListOffersSortOrderEnumValues Enumerates the set of values for ListOffersSortOrderEnum

func GetMappingListOffersSortOrderEnum

func GetMappingListOffersSortOrderEnum(val string) (ListOffersSortOrderEnum, bool)

GetMappingListOffersSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum

type Offer

Offer Description of Offer.

type Offer struct {

    // Unique identifier that is immutable on creation
    Id *string `mandatory:"true" json:"id"`

    // Offer Identifier, can be renamed
    DisplayName *string `mandatory:"true" json:"displayName"`

    // OCID of the seller's tenancy (root compartment).
    SellerCompartmentId *string `mandatory:"true" json:"sellerCompartmentId"`

    // The time the the Offer was created. An RFC3339 formatted datetime string
    TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"`

    // The current state of the Offer.
    LifecycleState OfferLifecycleStateEnum `mandatory:"true" json:"lifecycleState"`

    // Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
    // Example: `{"bar-key": "value"}`
    FreeformTags map[string]string `mandatory:"true" json:"freeformTags"`

    // Defined tags for this resource. Each key is predefined and scoped to a namespace.
    // Example: `{"foo-namespace": {"bar-key": "value"}}`
    DefinedTags map[string]map[string]interface{} `mandatory:"true" json:"definedTags"`

    // OCID of the buyer's tenancy (root compartment).
    BuyerCompartmentId *string `mandatory:"false" json:"buyerCompartmentId"`

    // The description of the offer
    Description *string `mandatory:"false" json:"description"`

    // The time the Offer will become active after it has been accepted by the Buyer. An RFC3339 formatted datetime string
    TimeStartDate *common.SDKTime `mandatory:"false" json:"timeStartDate"`

    // Duration the Offer will be active after its start date. An ISO8601 extended formatted string.
    Duration *string `mandatory:"false" json:"duration"`

    // The time the Offer was updated. An RFC3339 formatted datetime string
    TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"`

    // The time the Offer must be accepted by the Buyer before the Offer becomes invalid. An RFC3339 formatted datetime string
    TimeAcceptBy *common.SDKTime `mandatory:"false" json:"timeAcceptBy"`

    // The time the Offer was accepted by the Buyer of the Offer. An RFC3339 formatted datetime string
    TimeAccepted *common.SDKTime `mandatory:"false" json:"timeAccepted"`

    // The time the accepted Offer will end. An RFC3339 formatted datetime string
    TimeOfferEnd *common.SDKTime `mandatory:"false" json:"timeOfferEnd"`

    // A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
    LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"`

    // A substate for lifeCycleStatus to give a more human readable version of the offer
    OfferStatus OfferOfferStatusEnum `mandatory:"false" json:"offerStatus,omitempty"`

    PublisherSummary *PublisherSummary `mandatory:"false" json:"publisherSummary"`

    Pricing *Pricing `mandatory:"false" json:"pricing"`

    BuyerInformation *BuyerInformation `mandatory:"false" json:"buyerInformation"`

    SellerInformation *SellerInformation `mandatory:"false" json:"sellerInformation"`

    // A list of Resource Bundles associated with an Offer.
    ResourceBundles []ResourceBundle `mandatory:"false" json:"resourceBundles"`
}

func (Offer) String

func (m Offer) String() string

func (Offer) ValidateEnumValue

func (m Offer) ValidateEnumValue() (bool, error)

ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly

type OfferClient

OfferClient a client for Offer

type OfferClient struct {
    common.BaseClient
    // contains filtered or unexported fields
}

func NewOfferClientWithConfigurationProvider

func NewOfferClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client OfferClient, err error)

NewOfferClientWithConfigurationProvider Creates a new default Offer client with the given configuration provider. the configuration provider will be used for the default signer as well as reading the region

func NewOfferClientWithOboToken

func NewOfferClientWithOboToken(configProvider common.ConfigurationProvider, oboToken string) (client OfferClient, err error)

NewOfferClientWithOboToken Creates a new default Offer client with the given configuration provider. The obotoken will be added to default headers and signed; the configuration provider will be used for the signer

as well as reading the region

func (*OfferClient) ConfigurationProvider

func (client *OfferClient) ConfigurationProvider() *common.ConfigurationProvider

ConfigurationProvider the ConfigurationProvider used in this client, or null if none set

func (OfferClient) CreateOffer

func (client OfferClient) CreateOffer(ctx context.Context, request CreateOfferRequest) (response CreateOfferResponse, err error)

CreateOffer Creates a new Offer.

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.68.0/marketplaceprivateoffer/CreateOffer.go.html to see an example of how to use CreateOffer API. A default retry strategy applies to this operation CreateOffer()

func (OfferClient) DeleteOffer

func (client OfferClient) DeleteOffer(ctx context.Context, request DeleteOfferRequest) (response DeleteOfferResponse, err error)

DeleteOffer Deletes an Offer resource by identifier

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.68.0/marketplaceprivateoffer/DeleteOffer.go.html to see an example of how to use DeleteOffer API. A default retry strategy applies to this operation DeleteOffer()

func (OfferClient) GetOffer

func (client OfferClient) GetOffer(ctx context.Context, request GetOfferRequest) (response GetOfferResponse, err error)

GetOffer Gets an Offer by identifier

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.68.0/marketplaceprivateoffer/GetOffer.go.html to see an example of how to use GetOffer API. A default retry strategy applies to this operation GetOffer()

func (OfferClient) GetOfferInternalDetail

func (client OfferClient) GetOfferInternalDetail(ctx context.Context, request GetOfferInternalDetailRequest) (response GetOfferInternalDetailResponse, err error)

GetOfferInternalDetail Gets an Offer internal details by identifier

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.68.0/marketplaceprivateoffer/GetOfferInternalDetail.go.html to see an example of how to use GetOfferInternalDetail API. A default retry strategy applies to this operation GetOfferInternalDetail()

func (OfferClient) ListOffers

func (client OfferClient) ListOffers(ctx context.Context, request ListOffersRequest) (response ListOffersResponse, err error)

ListOffers Returns a list of Offers. Requires either the BuyerCompartmentId or the SellerCompartmentId params. If neither or both are provided, then the API will return a 400.

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.68.0/marketplaceprivateoffer/ListOffers.go.html to see an example of how to use ListOffers API. A default retry strategy applies to this operation ListOffers()

func (*OfferClient) SetRegion

func (client *OfferClient) SetRegion(region string)

SetRegion overrides the region of this client.

func (OfferClient) UpdateOffer

func (client OfferClient) UpdateOffer(ctx context.Context, request UpdateOfferRequest) (response UpdateOfferResponse, err error)

UpdateOffer Updates the Offer

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.68.0/marketplaceprivateoffer/UpdateOffer.go.html to see an example of how to use UpdateOffer API. A default retry strategy applies to this operation UpdateOffer()

type OfferCollection

OfferCollection Results of a offers search. Contains boh OfferSummary items and other information, such as metadata.

type OfferCollection struct {

    // List of offers.
    Items []OfferSummary `mandatory:"true" json:"items"`
}

func (OfferCollection) String

func (m OfferCollection) String() string

func (OfferCollection) ValidateEnumValue

func (m OfferCollection) ValidateEnumValue() (bool, error)

ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly

type OfferInternalDetail

OfferInternalDetail the internal details of an offer that are only visible to the seller

type OfferInternalDetail struct {

    // A list of key value pairs specified by the seller
    CustomFields []CustomField `mandatory:"true" json:"customFields"`

    // Internal notes only intended for the Publisher of the Offer
    InternalNotes *string `mandatory:"true" json:"internalNotes"`
}

func (OfferInternalDetail) String

func (m OfferInternalDetail) String() string

func (OfferInternalDetail) ValidateEnumValue

func (m OfferInternalDetail) ValidateEnumValue() (bool, error)

ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly

type OfferLifecycleStateEnum

OfferLifecycleStateEnum Enum with underlying type: string

type OfferLifecycleStateEnum string

Set of constants representing the allowable values for OfferLifecycleStateEnum

const (
    OfferLifecycleStateCreating OfferLifecycleStateEnum = "CREATING"
    OfferLifecycleStateUpdating OfferLifecycleStateEnum = "UPDATING"
    OfferLifecycleStateActive   OfferLifecycleStateEnum = "ACTIVE"
    OfferLifecycleStateDeleting OfferLifecycleStateEnum = "DELETING"
    OfferLifecycleStateDeleted  OfferLifecycleStateEnum = "DELETED"
    OfferLifecycleStateFailed   OfferLifecycleStateEnum = "FAILED"
)

func GetMappingOfferLifecycleStateEnum

func GetMappingOfferLifecycleStateEnum(val string) (OfferLifecycleStateEnum, bool)

GetMappingOfferLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum

func GetOfferLifecycleStateEnumValues

func GetOfferLifecycleStateEnumValues() []OfferLifecycleStateEnum

GetOfferLifecycleStateEnumValues Enumerates the set of values for OfferLifecycleStateEnum

type OfferOfferStatusEnum

OfferOfferStatusEnum Enum with underlying type: string

type OfferOfferStatusEnum string

Set of constants representing the allowable values for OfferOfferStatusEnum

const (
    OfferOfferStatusDraft              OfferOfferStatusEnum = "DRAFT"
    OfferOfferStatusPendingMarketplace OfferOfferStatusEnum = "PENDING_MARKETPLACE"
    OfferOfferStatusPendingBuyer       OfferOfferStatusEnum = "PENDING_BUYER"
    OfferOfferStatusExpired            OfferOfferStatusEnum = "EXPIRED"
    OfferOfferStatusAccepted           OfferOfferStatusEnum = "ACCEPTED"
    OfferOfferStatusActive             OfferOfferStatusEnum = "ACTIVE"
    OfferOfferStatusEnded              OfferOfferStatusEnum = "ENDED"
    OfferOfferStatusFailedSend         OfferOfferStatusEnum = "FAILED_SEND"
    OfferOfferStatusFailedAccept       OfferOfferStatusEnum = "FAILED_ACCEPT"
)

func GetMappingOfferOfferStatusEnum

func GetMappingOfferOfferStatusEnum(val string) (OfferOfferStatusEnum, bool)

GetMappingOfferOfferStatusEnum performs case Insensitive comparison on enum value and return the desired enum

func GetOfferOfferStatusEnumValues

func GetOfferOfferStatusEnumValues() []OfferOfferStatusEnum

GetOfferOfferStatusEnumValues Enumerates the set of values for OfferOfferStatusEnum

type OfferSummary

OfferSummary Summary of the Offers.

type OfferSummary struct {

    // Unique identifier that is immutable on creation
    Id *string `mandatory:"true" json:"id"`

    // Offer Identifier, can be renamed
    DisplayName *string `mandatory:"true" json:"displayName"`

    // Ocid of the buyer tenancy.
    BuyerCompartmentId *string `mandatory:"true" json:"buyerCompartmentId"`

    // Ocid of the seller tenancy.
    SellerCompartmentId *string `mandatory:"true" json:"sellerCompartmentId"`

    // The time the the Offer was created. An RFC3339 formatted datetime string
    TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"`

    // The current state of the Offer.
    LifecycleState OfferLifecycleStateEnum `mandatory:"true" json:"lifecycleState"`

    // Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
    // Example: `{"bar-key": "value"}`
    FreeformTags map[string]string `mandatory:"true" json:"freeformTags"`

    // Defined tags for this resource. Each key is predefined and scoped to a namespace.
    // Example: `{"foo-namespace": {"bar-key": "value"}}`
    DefinedTags map[string]map[string]interface{} `mandatory:"true" json:"definedTags"`

    // The time the Offer was updated. An RFC3339 formatted datetime string
    TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"`

    // The time the Offer must be accepted by the Buyer before the Offer becomes invalid. An RFC3339 formatted datetime string
    TimeAcceptBy *common.SDKTime `mandatory:"false" json:"timeAcceptBy"`

    // The time the Offer was accepted by the Buyer of the Offer. An RFC3339 formatted datetime string
    TimeAccepted *common.SDKTime `mandatory:"false" json:"timeAccepted"`

    // The time the Offer will become active after it has been accepted by the Buyer. An RFC3339 formatted datetime string
    TimeStartDate *common.SDKTime `mandatory:"false" json:"timeStartDate"`

    // The time the accepted Offer will end. An RFC3339 formatted datetime string
    TimeOfferEnd *common.SDKTime `mandatory:"false" json:"timeOfferEnd"`

    // A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
    LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"`

    // The human readable representation of where the offer is at in it's contract lifecycle.
    OfferStatus OfferOfferStatusEnum `mandatory:"false" json:"offerStatus,omitempty"`

    BuyerInformation *BuyerInformation `mandatory:"false" json:"buyerInformation"`

    SellerInformation *SellerInformation `mandatory:"false" json:"sellerInformation"`

    Pricing *Pricing `mandatory:"false" json:"pricing"`
}

func (OfferSummary) String

func (m OfferSummary) String() string

func (OfferSummary) ValidateEnumValue

func (m OfferSummary) ValidateEnumValue() (bool, error)

ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly

type PackageTypeEnum

PackageTypeEnum Enum with underlying type: string

type PackageTypeEnum string

Set of constants representing the allowable values for PackageTypeEnum

const (
    PackageTypeContainerImage PackageTypeEnum = "CONTAINER_IMAGE"
    PackageTypeHelmChart      PackageTypeEnum = "HELM_CHART"
)

func GetMappingPackageTypeEnum

func GetMappingPackageTypeEnum(val string) (PackageTypeEnum, bool)

GetMappingPackageTypeEnum performs case Insensitive comparison on enum value and return the desired enum

func GetPackageTypeEnumValues

func GetPackageTypeEnumValues() []PackageTypeEnum

GetPackageTypeEnumValues Enumerates the set of values for PackageTypeEnum

type Pricing

Pricing the pricing information for the offer

type Pricing struct {

    // The currency supported for a given Offer, in the format specified by ISO-4217
    CurrencyType *string `mandatory:"false" json:"currencyType"`

    // The total amount an Offer costs
    TotalAmount *int64 `mandatory:"false" json:"totalAmount"`

    // The frequency at which the customer is billed for the Offer
    BillingCycle PricingBillingCycleEnum `mandatory:"false" json:"billingCycle,omitempty"`
}

func (Pricing) String

func (m Pricing) String() string

func (Pricing) ValidateEnumValue

func (m Pricing) ValidateEnumValue() (bool, error)

ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly

type PricingBillingCycleEnum

PricingBillingCycleEnum Enum with underlying type: string

type PricingBillingCycleEnum string

Set of constants representing the allowable values for PricingBillingCycleEnum

const (
    PricingBillingCycleOneTime PricingBillingCycleEnum = "ONE_TIME"
)

func GetMappingPricingBillingCycleEnum

func GetMappingPricingBillingCycleEnum(val string) (PricingBillingCycleEnum, bool)

GetMappingPricingBillingCycleEnum performs case Insensitive comparison on enum value and return the desired enum

func GetPricingBillingCycleEnumValues

func GetPricingBillingCycleEnumValues() []PricingBillingCycleEnum

GetPricingBillingCycleEnumValues Enumerates the set of values for PricingBillingCycleEnum

type PublisherSummary

PublisherSummary The model for a publisher.

type PublisherSummary struct {

    // Unique OCID identifier for the publisher.
    Id *string `mandatory:"true" json:"id"`

    // The root compartment of the Publisher.
    CompartmentId *string `mandatory:"true" json:"compartmentId"`

    // The namespace for the publisher registry to persist artifacts.
    RegistryNamespace *string `mandatory:"true" json:"registryNamespace"`

    // The name of the publisher.
    DisplayName *string `mandatory:"true" json:"displayName"`

    // The public email address of the publisher for customers.
    ContactEmail *string `mandatory:"true" json:"contactEmail"`

    // The phone number of the publisher in E.164 format.
    ContactPhone *string `mandatory:"true" json:"contactPhone"`

    // publisher type.
    PublisherType PublisherSummaryPublisherTypeEnum `mandatory:"true" json:"publisherType"`

    // The time the publisher was created. An RFC3339 formatted datetime string.
    TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"`

    // The time the publisher was updated. An RFC3339 formatted datetime string.
    TimeUpdated *common.SDKTime `mandatory:"true" json:"timeUpdated"`

    // Unique legacy service identifier for the publisher.
    LegacyId *string `mandatory:"false" json:"legacyId"`

    // A description of the publisher.
    Description *string `mandatory:"false" json:"description"`

    // The year the publisher's company or organization was founded.
    YearFounded *int64 `mandatory:"false" json:"yearFounded"`

    // The publisher's website.
    WebsiteUrl *string `mandatory:"false" json:"websiteUrl"`

    // The address of the publisher's headquarters.
    HqAddress *string `mandatory:"false" json:"hqAddress"`

    Logo *UploadData `mandatory:"false" json:"logo"`

    // Publisher's Facebook URL
    FacebookUrl *string `mandatory:"false" json:"facebookUrl"`

    // Publisher's Twitter URL
    TwitterUrl *string `mandatory:"false" json:"twitterUrl"`

    // Publisher's LinkedIn URL
    LinkedinUrl *string `mandatory:"false" json:"linkedinUrl"`

    // Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
    // Example: `{"bar-key": "value"}`
    FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`

    // Defined tags for this resource. Each key is predefined and scoped to a namespace.
    // Example: `{"foo-namespace": {"bar-key": "value"}}`
    DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`

    // System tags for this resource. Each key is predefined and scoped to a namespace.
    // Example: `{"orcl-cloud": {"free-tier-retained": "true"}}`
    SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"`
}

func (PublisherSummary) String

func (m PublisherSummary) String() string

func (PublisherSummary) ValidateEnumValue

func (m PublisherSummary) ValidateEnumValue() (bool, error)

ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly

type PublisherSummaryPublisherTypeEnum

PublisherSummaryPublisherTypeEnum Enum with underlying type: string

type PublisherSummaryPublisherTypeEnum string

Set of constants representing the allowable values for PublisherSummaryPublisherTypeEnum

const (
    PublisherSummaryPublisherTypeInternal PublisherSummaryPublisherTypeEnum = "INTERNAL"
    PublisherSummaryPublisherTypeExternal PublisherSummaryPublisherTypeEnum = "EXTERNAL"
)

func GetMappingPublisherSummaryPublisherTypeEnum

func GetMappingPublisherSummaryPublisherTypeEnum(val string) (PublisherSummaryPublisherTypeEnum, bool)

GetMappingPublisherSummaryPublisherTypeEnum performs case Insensitive comparison on enum value and return the desired enum

func GetPublisherSummaryPublisherTypeEnumValues

func GetPublisherSummaryPublisherTypeEnumValues() []PublisherSummaryPublisherTypeEnum

GetPublisherSummaryPublisherTypeEnumValues Enumerates the set of values for PublisherSummaryPublisherTypeEnum

type ResourceBundle

ResourceBundle Resource Bundle associated with an Offer

type ResourceBundle struct {

    // The type of resources in the bundle
    Type ResourceBundleTypeEnum `mandatory:"false" json:"type,omitempty"`

    // The quantity of a resources associated with the bundle
    Quantity *int64 `mandatory:"false" json:"quantity"`

    // The unit of measurement for the resource bundle
    UnitOfMeasurement ResourceBundleUnitOfMeasurementEnum `mandatory:"false" json:"unitOfMeasurement,omitempty"`

    // the ids of the resources in the Offer
    ResourceIds []string `mandatory:"false" json:"resourceIds"`
}

func (ResourceBundle) String

func (m ResourceBundle) String() string

func (ResourceBundle) ValidateEnumValue

func (m ResourceBundle) ValidateEnumValue() (bool, error)

ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly

type ResourceBundleTypeEnum

ResourceBundleTypeEnum Enum with underlying type: string

type ResourceBundleTypeEnum string

Set of constants representing the allowable values for ResourceBundleTypeEnum

const (
    ResourceBundleTypeListing ResourceBundleTypeEnum = "LISTING"
)

func GetMappingResourceBundleTypeEnum

func GetMappingResourceBundleTypeEnum(val string) (ResourceBundleTypeEnum, bool)

GetMappingResourceBundleTypeEnum performs case Insensitive comparison on enum value and return the desired enum

func GetResourceBundleTypeEnumValues

func GetResourceBundleTypeEnumValues() []ResourceBundleTypeEnum

GetResourceBundleTypeEnumValues Enumerates the set of values for ResourceBundleTypeEnum

type ResourceBundleUnitOfMeasurementEnum

ResourceBundleUnitOfMeasurementEnum Enum with underlying type: string

type ResourceBundleUnitOfMeasurementEnum string

Set of constants representing the allowable values for ResourceBundleUnitOfMeasurementEnum

const (
    ResourceBundleUnitOfMeasurementOcpuPerHour     ResourceBundleUnitOfMeasurementEnum = "OCPU_PER_HOUR"
    ResourceBundleUnitOfMeasurementInstancePerHour ResourceBundleUnitOfMeasurementEnum = "INSTANCE_PER_HOUR"
    ResourceBundleUnitOfMeasurementCredits         ResourceBundleUnitOfMeasurementEnum = "CREDITS"
    ResourceBundleUnitOfMeasurementInstances       ResourceBundleUnitOfMeasurementEnum = "INSTANCES"
    ResourceBundleUnitOfMeasurementNodes           ResourceBundleUnitOfMeasurementEnum = "NODES"
)

func GetMappingResourceBundleUnitOfMeasurementEnum

func GetMappingResourceBundleUnitOfMeasurementEnum(val string) (ResourceBundleUnitOfMeasurementEnum, bool)

GetMappingResourceBundleUnitOfMeasurementEnum performs case Insensitive comparison on enum value and return the desired enum

func GetResourceBundleUnitOfMeasurementEnumValues

func GetResourceBundleUnitOfMeasurementEnumValues() []ResourceBundleUnitOfMeasurementEnum

GetResourceBundleUnitOfMeasurementEnumValues Enumerates the set of values for ResourceBundleUnitOfMeasurementEnum

type SellerInformation

SellerInformation The information related to the seller of an Offer

type SellerInformation struct {
    PrimaryContact *Contact `mandatory:"false" json:"primaryContact"`

    // the additional contacts associated with the seller
    AdditionalContacts []Contact `mandatory:"false" json:"additionalContacts"`
}

func (SellerInformation) String

func (m SellerInformation) String() string

func (SellerInformation) ValidateEnumValue

func (m SellerInformation) ValidateEnumValue() (bool, error)

ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly

type SortOrderEnum

SortOrderEnum Enum with underlying type: string

type SortOrderEnum string

Set of constants representing the allowable values for SortOrderEnum

const (
    SortOrderAsc  SortOrderEnum = "ASC"
    SortOrderDesc SortOrderEnum = "DESC"
)

func GetMappingSortOrderEnum

func GetMappingSortOrderEnum(val string) (SortOrderEnum, bool)

GetMappingSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum

func GetSortOrderEnumValues

func GetSortOrderEnumValues() []SortOrderEnum

GetSortOrderEnumValues Enumerates the set of values for SortOrderEnum

type UpdateOfferDetails

UpdateOfferDetails The information to be updated.

type UpdateOfferDetails struct {

    // Offers Identifier
    DisplayName *string `mandatory:"false" json:"displayName"`

    // OCID of the buyer's tenancy (root compartment).
    BuyerCompartmentId *string `mandatory:"false" json:"buyerCompartmentId"`

    // Description of the Offer
    Description *string `mandatory:"false" json:"description"`

    // Internal notes of the Offer
    InternalNotes *string `mandatory:"false" json:"internalNotes"`

    // The time the Offer will become active after it has been accepted by the Buyer. An RFC3339 formatted datetime string
    TimeStartDate *common.SDKTime `mandatory:"false" json:"timeStartDate"`

    // Duration the Offer will be active after its start date. An ISO8601 extended formatted string.
    Duration *string `mandatory:"false" json:"duration"`

    // The time the Offer must be accepted by the Buyer before the Offer becomes invalid. An RFC3339 formatted datetime string
    TimeAcceptBy *common.SDKTime `mandatory:"false" json:"timeAcceptBy"`

    Pricing *Pricing `mandatory:"false" json:"pricing"`

    BuyerInformation *BuyerInformation `mandatory:"false" json:"buyerInformation"`

    SellerInformation *SellerInformation `mandatory:"false" json:"sellerInformation"`

    // A list of Resource Bundles associated with an Offer.
    ResourceBundles []ResourceBundle `mandatory:"false" json:"resourceBundles"`

    // A list of key value pairs specified by the seller
    CustomFields []CustomField `mandatory:"false" json:"customFields"`

    // Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
    // Example: `{"bar-key": "value"}`
    FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`

    // Defined tags for this resource. Each key is predefined and scoped to a namespace.
    // Example: `{"foo-namespace": {"bar-key": "value"}}`
    DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`
}

func (UpdateOfferDetails) String

func (m UpdateOfferDetails) String() string

func (UpdateOfferDetails) ValidateEnumValue

func (m UpdateOfferDetails) ValidateEnumValue() (bool, error)

ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly

type UpdateOfferRequest

UpdateOfferRequest wrapper for the UpdateOffer operation

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.68.0/marketplaceprivateoffer/UpdateOffer.go.html to see an example of how to use UpdateOfferRequest.

type UpdateOfferRequest struct {

    // unique Offer identifier
    OfferId *string `mandatory:"true" contributesTo:"path" name:"offerId"`

    // The information to be updated.
    UpdateOfferDetails `contributesTo:"body"`

    // For optimistic concurrency control. In the PUT or DELETE call
    // for a resource, set the `if-match` parameter to the value of the
    // etag from a previous GET or POST response for that resource.
    // The resource will be updated or deleted only if the etag you
    // provide matches the resource's current etag value.
    IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"`

    // The client request ID for tracing.
    OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`

    // Metadata about the request. This information will not be transmitted to the service, but
    // represents information that the SDK will consume to drive retry behavior.
    RequestMetadata common.RequestMetadata
}

func (UpdateOfferRequest) BinaryRequestBody

func (request UpdateOfferRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)

BinaryRequestBody implements the OCIRequest interface

func (UpdateOfferRequest) HTTPRequest

func (request UpdateOfferRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)

HTTPRequest implements the OCIRequest interface

func (UpdateOfferRequest) RetryPolicy

func (request UpdateOfferRequest) RetryPolicy() *common.RetryPolicy

RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.

func (UpdateOfferRequest) String

func (request UpdateOfferRequest) String() string

func (UpdateOfferRequest) ValidateEnumValue

func (request UpdateOfferRequest) ValidateEnumValue() (bool, error)

ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly

type UpdateOfferResponse

UpdateOfferResponse wrapper for the UpdateOffer operation

type UpdateOfferResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // The Offer instance
    Offer `presentIn:"body"`

    // For optimistic concurrency control. See `if-match`.
    Etag *string `presentIn:"header" name:"etag"`

    // Unique Oracle-assigned identifier for the request. If you need to contact
    // Oracle about a particular request, please provide the request ID.
    OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
}

func (UpdateOfferResponse) HTTPResponse

func (response UpdateOfferResponse) HTTPResponse() *http.Response

HTTPResponse implements the OCIResponse interface

func (UpdateOfferResponse) String

func (response UpdateOfferResponse) String() string

type UploadData

UploadData The model for upload data for images and icons.

type UploadData struct {

    // The name used to refer to the upload data.
    Name *string `mandatory:"false" json:"name"`

    // The content URL of the upload data.
    ContentUrl *string `mandatory:"false" json:"contentUrl"`

    // The MIME type of the upload data.
    MimeType *string `mandatory:"false" json:"mimeType"`
}

func (UploadData) String

func (m UploadData) String() string

func (UploadData) ValidateEnumValue

func (m UploadData) ValidateEnumValue() (bool, error)

ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly