func GetAttachmentLifecycleStateEnumStringValues() []string
GetAttachmentLifecycleStateEnumStringValues Enumerates the set of values in String for AttachmentLifecycleStateEnum
func GetAttachmentTypeEnumStringValues() []string
GetAttachmentTypeEnumStringValues Enumerates the set of values in String for AttachmentTypeEnum
func GetListAttachmentsSortByEnumStringValues() []string
GetListAttachmentsSortByEnumStringValues Enumerates the set of values in String for ListAttachmentsSortByEnum
func GetListAttachmentsSortOrderEnumStringValues() []string
GetListAttachmentsSortOrderEnumStringValues Enumerates the set of values in String for ListAttachmentsSortOrderEnum
func GetListOffersSortByEnumStringValues() []string
GetListOffersSortByEnumStringValues Enumerates the set of values in String for ListOffersSortByEnum
func GetListOffersSortOrderEnumStringValues() []string
GetListOffersSortOrderEnumStringValues Enumerates the set of values in String for ListOffersSortOrderEnum
func GetOfferLifecycleStateEnumStringValues() []string
GetOfferLifecycleStateEnumStringValues Enumerates the set of values in String for OfferLifecycleStateEnum
func GetOfferOfferStatusEnumStringValues() []string
GetOfferOfferStatusEnumStringValues Enumerates the set of values in String for OfferOfferStatusEnum
func GetPackageTypeEnumStringValues() []string
GetPackageTypeEnumStringValues Enumerates the set of values in String for PackageTypeEnum
func GetPricingBillingCycleEnumStringValues() []string
GetPricingBillingCycleEnumStringValues Enumerates the set of values in String for PricingBillingCycleEnum
func GetPublisherSummaryPublisherTypeEnumStringValues() []string
GetPublisherSummaryPublisherTypeEnumStringValues Enumerates the set of values in String for PublisherSummaryPublisherTypeEnum
func GetResourceBundleTypeEnumStringValues() []string
GetResourceBundleTypeEnumStringValues Enumerates the set of values in String for ResourceBundleTypeEnum
func GetResourceBundleUnitOfMeasurementEnumStringValues() []string
GetResourceBundleUnitOfMeasurementEnumStringValues Enumerates the set of values in String for ResourceBundleUnitOfMeasurementEnum
func GetSortOrderEnumStringValues() []string
GetSortOrderEnumStringValues Enumerates the set of values in String for SortOrderEnum
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 (m Attachment) String() string
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
AttachmentClient a client for Attachment
type AttachmentClient struct { common.BaseClient // contains filtered or unexported fields }
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(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 (client *AttachmentClient) ConfigurationProvider() *common.ConfigurationProvider
ConfigurationProvider the ConfigurationProvider used in this client, or null if none set
func (client AttachmentClient) CreateAttachment(ctx context.Context, request CreateAttachmentRequest) (response CreateAttachmentResponse, err error)
CreateAttachment Creates a new Attachment.
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/marketplaceprivateoffer/CreateAttachment.go.html to see an example of how to use CreateAttachment API. A default retry strategy applies to this operation CreateAttachment()
func (client AttachmentClient) DeleteAttachment(ctx context.Context, request DeleteAttachmentRequest) (response DeleteAttachmentResponse, err error)
DeleteAttachment Deletes a Attachment resource by identifier
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/marketplaceprivateoffer/DeleteAttachment.go.html to see an example of how to use DeleteAttachment API. A default retry strategy applies to this operation DeleteAttachment()
func (client AttachmentClient) GetAttachment(ctx context.Context, request GetAttachmentRequest) (response GetAttachmentResponse, err error)
GetAttachment Gets a Attachment by identifier
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/marketplaceprivateoffer/GetAttachment.go.html to see an example of how to use GetAttachment API. A default retry strategy applies to this operation GetAttachment()
func (client AttachmentClient) GetAttachmentContent(ctx context.Context, request GetAttachmentContentRequest) (response GetAttachmentContentResponse, err error)
GetAttachmentContent Gets a Attachment content by identifier
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/marketplaceprivateoffer/GetAttachmentContent.go.html to see an example of how to use GetAttachmentContent API. A default retry strategy applies to this operation GetAttachmentContent()
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.
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/marketplaceprivateoffer/ListAttachments.go.html to see an example of how to use ListAttachments API. A default retry strategy applies to this operation ListAttachments()
func (client *AttachmentClient) SetRegion(region string)
SetRegion overrides the region of this client.
AttachmentCollection Results of a offers search. Contains boh AttachmentSummary items.
type AttachmentCollection struct { // List of attachment. Items []AttachmentSummary `mandatory:"true" json:"items"` }
func (m AttachmentCollection) String() string
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
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() []AttachmentLifecycleStateEnum
GetAttachmentLifecycleStateEnumValues Enumerates the set of values for AttachmentLifecycleStateEnum
func GetMappingAttachmentLifecycleStateEnum(val string) (AttachmentLifecycleStateEnum, bool)
GetMappingAttachmentLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum
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 (m AttachmentSummary) String() string
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
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() []AttachmentTypeEnum
GetAttachmentTypeEnumValues Enumerates the set of values for AttachmentTypeEnum
func GetMappingAttachmentTypeEnum(val string) (AttachmentTypeEnum, bool)
GetMappingAttachmentTypeEnum performs case Insensitive comparison on enum value and return the desired enum
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 (m BuyerInformation) String() string
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
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 (m Contact) String() string
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
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 (m CreateAttachmentDetails) String() string
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
CreateAttachmentRequest wrapper for the CreateAttachment operation
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/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 (request CreateAttachmentRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request CreateAttachmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request CreateAttachmentRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request CreateAttachmentRequest) String() string
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
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 (response CreateAttachmentResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response CreateAttachmentResponse) String() string
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 (m CreateOfferDetails) String() string
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
CreateOfferRequest wrapper for the CreateOffer operation
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/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 (request CreateOfferRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request CreateOfferRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request CreateOfferRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request CreateOfferRequest) String() string
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
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 (response CreateOfferResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response CreateOfferResponse) String() string
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 (m CustomField) String() string
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
DeleteAttachmentRequest wrapper for the DeleteAttachment operation
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/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 (request DeleteAttachmentRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request DeleteAttachmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request DeleteAttachmentRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request DeleteAttachmentRequest) String() string
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
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 (response DeleteAttachmentResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response DeleteAttachmentResponse) String() string
DeleteOfferRequest wrapper for the DeleteOffer operation
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/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 (request DeleteOfferRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request DeleteOfferRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request DeleteOfferRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request DeleteOfferRequest) String() string
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
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 (response DeleteOfferResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response DeleteOfferResponse) String() string
GetAttachmentContentRequest wrapper for the GetAttachmentContent operation
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/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 (request GetAttachmentContentRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request GetAttachmentContentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request GetAttachmentContentRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request GetAttachmentContentRequest) String() string
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
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 (response GetAttachmentContentResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response GetAttachmentContentResponse) String() string
GetAttachmentRequest wrapper for the GetAttachment operation
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/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 (request GetAttachmentRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request GetAttachmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request GetAttachmentRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request GetAttachmentRequest) String() string
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
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 (response GetAttachmentResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response GetAttachmentResponse) String() string
GetOfferInternalDetailRequest wrapper for the GetOfferInternalDetail operation
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/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 (request GetOfferInternalDetailRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request GetOfferInternalDetailRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request GetOfferInternalDetailRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request GetOfferInternalDetailRequest) String() string
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
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 (response GetOfferInternalDetailResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response GetOfferInternalDetailResponse) String() string
GetOfferRequest wrapper for the GetOffer operation
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/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 (request GetOfferRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request GetOfferRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request GetOfferRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request GetOfferRequest) String() string
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
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 (response GetOfferResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response GetOfferResponse) String() string
ListAttachmentsRequest wrapper for the ListAttachments operation
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/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 (request ListAttachmentsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request ListAttachmentsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request ListAttachmentsRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request ListAttachmentsRequest) String() string
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
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 (response ListAttachmentsResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response ListAttachmentsResponse) String() string
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() []ListAttachmentsSortByEnum
GetListAttachmentsSortByEnumValues Enumerates the set of values for ListAttachmentsSortByEnum
func GetMappingListAttachmentsSortByEnum(val string) (ListAttachmentsSortByEnum, bool)
GetMappingListAttachmentsSortByEnum performs case Insensitive comparison on enum value and return the desired enum
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() []ListAttachmentsSortOrderEnum
GetListAttachmentsSortOrderEnumValues Enumerates the set of values for ListAttachmentsSortOrderEnum
func GetMappingListAttachmentsSortOrderEnum(val string) (ListAttachmentsSortOrderEnum, bool)
GetMappingListAttachmentsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum
ListOffersRequest wrapper for the ListOffers operation
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/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 (request ListOffersRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request ListOffersRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request ListOffersRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request ListOffersRequest) String() string
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
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 (response ListOffersResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response ListOffersResponse) String() string
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() []ListOffersSortByEnum
GetListOffersSortByEnumValues Enumerates the set of values for ListOffersSortByEnum
func GetMappingListOffersSortByEnum(val string) (ListOffersSortByEnum, bool)
GetMappingListOffersSortByEnum performs case Insensitive comparison on enum value and return the desired enum
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() []ListOffersSortOrderEnum
GetListOffersSortOrderEnumValues Enumerates the set of values for ListOffersSortOrderEnum
func GetMappingListOffersSortOrderEnum(val string) (ListOffersSortOrderEnum, bool)
GetMappingListOffersSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum
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 (m Offer) String() string
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
OfferClient a client for Offer
type OfferClient struct { common.BaseClient // contains filtered or unexported fields }
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(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 (client *OfferClient) ConfigurationProvider() *common.ConfigurationProvider
ConfigurationProvider the ConfigurationProvider used in this client, or null if none set
func (client OfferClient) CreateOffer(ctx context.Context, request CreateOfferRequest) (response CreateOfferResponse, err error)
CreateOffer Creates a new Offer.
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/marketplaceprivateoffer/CreateOffer.go.html to see an example of how to use CreateOffer API. A default retry strategy applies to this operation CreateOffer()
func (client OfferClient) DeleteOffer(ctx context.Context, request DeleteOfferRequest) (response DeleteOfferResponse, err error)
DeleteOffer Deletes an Offer resource by identifier
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/marketplaceprivateoffer/DeleteOffer.go.html to see an example of how to use DeleteOffer API. A default retry strategy applies to this operation DeleteOffer()
func (client OfferClient) GetOffer(ctx context.Context, request GetOfferRequest) (response GetOfferResponse, err error)
GetOffer Gets an Offer by identifier
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/marketplaceprivateoffer/GetOffer.go.html to see an example of how to use GetOffer API. A default retry strategy applies to this operation GetOffer()
func (client OfferClient) GetOfferInternalDetail(ctx context.Context, request GetOfferInternalDetailRequest) (response GetOfferInternalDetailResponse, err error)
GetOfferInternalDetail Gets an Offer internal details by identifier
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/marketplaceprivateoffer/GetOfferInternalDetail.go.html to see an example of how to use GetOfferInternalDetail API. A default retry strategy applies to this operation GetOfferInternalDetail()
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.
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/marketplaceprivateoffer/ListOffers.go.html to see an example of how to use ListOffers API. A default retry strategy applies to this operation ListOffers()
func (client *OfferClient) SetRegion(region string)
SetRegion overrides the region of this client.
func (client OfferClient) UpdateOffer(ctx context.Context, request UpdateOfferRequest) (response UpdateOfferResponse, err error)
UpdateOffer Updates the Offer
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/marketplaceprivateoffer/UpdateOffer.go.html to see an example of how to use UpdateOffer API. A default retry strategy applies to this operation UpdateOffer()
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 (m OfferCollection) String() string
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
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 (m OfferInternalDetail) String() string
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
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(val string) (OfferLifecycleStateEnum, bool)
GetMappingOfferLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum
func GetOfferLifecycleStateEnumValues() []OfferLifecycleStateEnum
GetOfferLifecycleStateEnumValues Enumerates the set of values for OfferLifecycleStateEnum
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(val string) (OfferOfferStatusEnum, bool)
GetMappingOfferOfferStatusEnum performs case Insensitive comparison on enum value and return the desired enum
func GetOfferOfferStatusEnumValues() []OfferOfferStatusEnum
GetOfferOfferStatusEnumValues Enumerates the set of values for OfferOfferStatusEnum
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 (m OfferSummary) String() string
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
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(val string) (PackageTypeEnum, bool)
GetMappingPackageTypeEnum performs case Insensitive comparison on enum value and return the desired enum
func GetPackageTypeEnumValues() []PackageTypeEnum
GetPackageTypeEnumValues Enumerates the set of values for PackageTypeEnum
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 (m Pricing) String() string
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
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(val string) (PricingBillingCycleEnum, bool)
GetMappingPricingBillingCycleEnum performs case Insensitive comparison on enum value and return the desired enum
func GetPricingBillingCycleEnumValues() []PricingBillingCycleEnum
GetPricingBillingCycleEnumValues Enumerates the set of values for PricingBillingCycleEnum
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 (m PublisherSummary) String() string
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
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(val string) (PublisherSummaryPublisherTypeEnum, bool)
GetMappingPublisherSummaryPublisherTypeEnum performs case Insensitive comparison on enum value and return the desired enum
func GetPublisherSummaryPublisherTypeEnumValues() []PublisherSummaryPublisherTypeEnum
GetPublisherSummaryPublisherTypeEnumValues Enumerates the set of values for PublisherSummaryPublisherTypeEnum
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 (m ResourceBundle) String() string
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
ResourceBundleTypeEnum Enum with underlying type: string
type ResourceBundleTypeEnum string
Set of constants representing the allowable values for ResourceBundleTypeEnum
const ( ResourceBundleTypeListing ResourceBundleTypeEnum = "LISTING" )
func GetMappingResourceBundleTypeEnum(val string) (ResourceBundleTypeEnum, bool)
GetMappingResourceBundleTypeEnum performs case Insensitive comparison on enum value and return the desired enum
func GetResourceBundleTypeEnumValues() []ResourceBundleTypeEnum
GetResourceBundleTypeEnumValues Enumerates the set of values for ResourceBundleTypeEnum
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(val string) (ResourceBundleUnitOfMeasurementEnum, bool)
GetMappingResourceBundleUnitOfMeasurementEnum performs case Insensitive comparison on enum value and return the desired enum
func GetResourceBundleUnitOfMeasurementEnumValues() []ResourceBundleUnitOfMeasurementEnum
GetResourceBundleUnitOfMeasurementEnumValues Enumerates the set of values for ResourceBundleUnitOfMeasurementEnum
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 (m SellerInformation) String() string
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
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(val string) (SortOrderEnum, bool)
GetMappingSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum
func GetSortOrderEnumValues() []SortOrderEnum
GetSortOrderEnumValues Enumerates the set of values for SortOrderEnum
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 (m UpdateOfferDetails) String() string
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
UpdateOfferRequest wrapper for the UpdateOffer operation
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/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 (request UpdateOfferRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request UpdateOfferRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request UpdateOfferRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request UpdateOfferRequest) String() string
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
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 (response UpdateOfferResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response UpdateOfferResponse) String() string
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 (m UploadData) String() string
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