Documentation ¶
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
- type AttachmentClient
- 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
- type AttachmentLifecycleStateEnum
- type AttachmentSummary
- type AttachmentTypeEnum
- type BuyerInformation
- type Contact
- type CreateAttachmentDetails
- type CreateAttachmentRequest
- func (request CreateAttachmentRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
- func (request CreateAttachmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, ...) (http.Request, error)
- func (request CreateAttachmentRequest) RetryPolicy() *common.RetryPolicy
- func (request CreateAttachmentRequest) String() string
- func (request CreateAttachmentRequest) ValidateEnumValue() (bool, error)
- type CreateAttachmentResponse
- type CreateOfferDetails
- type CreateOfferRequest
- func (request CreateOfferRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
- func (request CreateOfferRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, ...) (http.Request, error)
- func (request CreateOfferRequest) RetryPolicy() *common.RetryPolicy
- func (request CreateOfferRequest) String() string
- func (request CreateOfferRequest) ValidateEnumValue() (bool, error)
- type CreateOfferResponse
- type CustomField
- type DeleteAttachmentRequest
- func (request DeleteAttachmentRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
- func (request DeleteAttachmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, ...) (http.Request, error)
- func (request DeleteAttachmentRequest) RetryPolicy() *common.RetryPolicy
- func (request DeleteAttachmentRequest) String() string
- func (request DeleteAttachmentRequest) ValidateEnumValue() (bool, error)
- type DeleteAttachmentResponse
- type DeleteOfferRequest
- func (request DeleteOfferRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
- func (request DeleteOfferRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, ...) (http.Request, error)
- func (request DeleteOfferRequest) RetryPolicy() *common.RetryPolicy
- func (request DeleteOfferRequest) String() string
- func (request DeleteOfferRequest) ValidateEnumValue() (bool, error)
- type DeleteOfferResponse
- type GetAttachmentContentRequest
- func (request GetAttachmentContentRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
- func (request GetAttachmentContentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, ...) (http.Request, error)
- func (request GetAttachmentContentRequest) RetryPolicy() *common.RetryPolicy
- func (request GetAttachmentContentRequest) String() string
- func (request GetAttachmentContentRequest) ValidateEnumValue() (bool, error)
- type GetAttachmentContentResponse
- type GetAttachmentRequest
- func (request GetAttachmentRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
- func (request GetAttachmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, ...) (http.Request, error)
- func (request GetAttachmentRequest) RetryPolicy() *common.RetryPolicy
- func (request GetAttachmentRequest) String() string
- func (request GetAttachmentRequest) ValidateEnumValue() (bool, error)
- type GetAttachmentResponse
- type GetOfferInternalDetailRequest
- func (request GetOfferInternalDetailRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
- func (request GetOfferInternalDetailRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, ...) (http.Request, error)
- func (request GetOfferInternalDetailRequest) RetryPolicy() *common.RetryPolicy
- func (request GetOfferInternalDetailRequest) String() string
- func (request GetOfferInternalDetailRequest) ValidateEnumValue() (bool, error)
- type GetOfferInternalDetailResponse
- type GetOfferRequest
- func (request GetOfferRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
- func (request GetOfferRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, ...) (http.Request, error)
- func (request GetOfferRequest) RetryPolicy() *common.RetryPolicy
- func (request GetOfferRequest) String() string
- func (request GetOfferRequest) ValidateEnumValue() (bool, error)
- type GetOfferResponse
- type ListAttachmentsRequest
- func (request ListAttachmentsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
- func (request ListAttachmentsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, ...) (http.Request, error)
- func (request ListAttachmentsRequest) RetryPolicy() *common.RetryPolicy
- func (request ListAttachmentsRequest) String() string
- func (request ListAttachmentsRequest) ValidateEnumValue() (bool, error)
- type ListAttachmentsResponse
- type ListAttachmentsSortByEnum
- type ListAttachmentsSortOrderEnum
- type ListOffersRequest
- func (request ListOffersRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
- func (request ListOffersRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, ...) (http.Request, error)
- func (request ListOffersRequest) RetryPolicy() *common.RetryPolicy
- func (request ListOffersRequest) String() string
- func (request ListOffersRequest) ValidateEnumValue() (bool, error)
- type ListOffersResponse
- type ListOffersSortByEnum
- type ListOffersSortOrderEnum
- type Offer
- type OfferClient
- 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
- type OfferInternalDetail
- type OfferLifecycleStateEnum
- type OfferOfferStatusEnum
- type OfferSummary
- type PackageTypeEnum
- type Pricing
- type PricingBillingCycleEnum
- type PublisherSummary
- type PublisherSummaryPublisherTypeEnum
- type ResourceBundle
- type ResourceBundleTypeEnum
- type ResourceBundleUnitOfMeasurementEnum
- type SellerInformation
- type SortOrderEnum
- type UpdateOfferDetails
- type UpdateOfferRequest
- func (request UpdateOfferRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
- func (request UpdateOfferRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, ...) (http.Request, error)
- func (request UpdateOfferRequest) RetryPolicy() *common.RetryPolicy
- func (request UpdateOfferRequest) String() string
- func (request UpdateOfferRequest) ValidateEnumValue() (bool, error)
- type UpdateOfferResponse
- type UploadData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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
Types ¶
type 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"` }
Attachment Description of Attachment.
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 ¶
type AttachmentClient struct { common.BaseClient // contains filtered or unexported fields }
AttachmentClient a client for Attachment
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/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 (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/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 (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/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 (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/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 (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/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 (*AttachmentClient) SetRegion ¶
func (client *AttachmentClient) SetRegion(region string)
SetRegion overrides the region of this client.
type AttachmentCollection ¶
type AttachmentCollection struct { // List of attachment. Items []AttachmentSummary `mandatory:"true" json:"items"` }
AttachmentCollection Results of a offers search. Contains boh AttachmentSummary 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 ¶
type AttachmentLifecycleStateEnum string
AttachmentLifecycleStateEnum Enum with underlying type: string
const ( AttachmentLifecycleStateCreating AttachmentLifecycleStateEnum = "CREATING" AttachmentLifecycleStateUpdating AttachmentLifecycleStateEnum = "UPDATING" AttachmentLifecycleStateActive AttachmentLifecycleStateEnum = "ACTIVE" AttachmentLifecycleStateDeleting AttachmentLifecycleStateEnum = "DELETING" AttachmentLifecycleStateDeleted AttachmentLifecycleStateEnum = "DELETED" AttachmentLifecycleStateFailed AttachmentLifecycleStateEnum = "FAILED" )
Set of constants representing the allowable values for AttachmentLifecycleStateEnum
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 ¶
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"` }
AttachmentSummary Description of Attachment.
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 ¶
type AttachmentTypeEnum string
AttachmentTypeEnum Enum with underlying type: string
const ( AttachmentTypeContractTAndC AttachmentTypeEnum = "CONTRACT_T_AND_C" AttachmentTypeQuote AttachmentTypeEnum = "QUOTE" AttachmentTypeEula AttachmentTypeEnum = "EULA" AttachmentTypeTermsOfUse AttachmentTypeEnum = "TERMS_OF_USE" AttachmentTypeMisc AttachmentTypeEnum = "MISC" )
Set of constants representing the allowable values for AttachmentTypeEnum
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 ¶
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"` }
BuyerInformation The information related to the buyer of an Offer
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 ¶
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"` }
Contact The contact information of an individual
func (Contact) ValidateEnumValue ¶
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 ¶
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"` }
CreateAttachmentDetails An attachment uploaded by the Publisher to be attached to an Offer.
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 ¶
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 }
CreateAttachmentRequest wrapper for the CreateAttachment operation
See also ¶
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/marketplaceprivateoffer/CreateAttachment.go.html to see an example of how to use CreateAttachmentRequest.
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 ¶
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"` }
CreateAttachmentResponse wrapper for the CreateAttachment operation
func (CreateAttachmentResponse) HTTPResponse ¶
func (response CreateAttachmentResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (CreateAttachmentResponse) String ¶
func (response CreateAttachmentResponse) String() string
type CreateOfferDetails ¶
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"` }
CreateOfferDetails The information about new Offers.
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 ¶
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 }
CreateOfferRequest wrapper for the CreateOffer operation
See also ¶
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/marketplaceprivateoffer/CreateOffer.go.html to see an example of how to use CreateOfferRequest.
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 ¶
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"` }
CreateOfferResponse wrapper for the CreateOffer operation
func (CreateOfferResponse) HTTPResponse ¶
func (response CreateOfferResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (CreateOfferResponse) String ¶
func (response CreateOfferResponse) String() string
type CustomField ¶
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"` }
CustomField A key value pair specified by the seller of the offer
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 ¶
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 }
DeleteAttachmentRequest wrapper for the DeleteAttachment operation
See also ¶
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/marketplaceprivateoffer/DeleteAttachment.go.html to see an example of how to use DeleteAttachmentRequest.
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 ¶
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"` }
DeleteAttachmentResponse wrapper for the DeleteAttachment operation
func (DeleteAttachmentResponse) HTTPResponse ¶
func (response DeleteAttachmentResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (DeleteAttachmentResponse) String ¶
func (response DeleteAttachmentResponse) String() string
type 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 }
DeleteOfferRequest wrapper for the DeleteOffer operation
See also ¶
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/marketplaceprivateoffer/DeleteOffer.go.html to see an example of how to use DeleteOfferRequest.
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 ¶
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"` }
DeleteOfferResponse wrapper for the DeleteOffer operation
func (DeleteOfferResponse) HTTPResponse ¶
func (response DeleteOfferResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (DeleteOfferResponse) String ¶
func (response DeleteOfferResponse) String() string
type 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 }
GetAttachmentContentRequest wrapper for the GetAttachmentContent operation
See also ¶
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/marketplaceprivateoffer/GetAttachmentContent.go.html to see an example of how to use GetAttachmentContentRequest.
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 ¶
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"` }
GetAttachmentContentResponse wrapper for the GetAttachmentContent operation
func (GetAttachmentContentResponse) HTTPResponse ¶
func (response GetAttachmentContentResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (GetAttachmentContentResponse) String ¶
func (response GetAttachmentContentResponse) String() string
type 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 }
GetAttachmentRequest wrapper for the GetAttachment operation
See also ¶
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/marketplaceprivateoffer/GetAttachment.go.html to see an example of how to use GetAttachmentRequest.
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 ¶
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"` }
GetAttachmentResponse wrapper for the GetAttachment operation
func (GetAttachmentResponse) HTTPResponse ¶
func (response GetAttachmentResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (GetAttachmentResponse) String ¶
func (response GetAttachmentResponse) String() string
type 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 }
GetOfferInternalDetailRequest wrapper for the GetOfferInternalDetail operation
See also ¶
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/marketplaceprivateoffer/GetOfferInternalDetail.go.html to see an example of how to use GetOfferInternalDetailRequest.
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 ¶
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"` }
GetOfferInternalDetailResponse wrapper for the GetOfferInternalDetail operation
func (GetOfferInternalDetailResponse) HTTPResponse ¶
func (response GetOfferInternalDetailResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (GetOfferInternalDetailResponse) String ¶
func (response GetOfferInternalDetailResponse) String() string
type 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 }
GetOfferRequest wrapper for the GetOffer operation
See also ¶
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/marketplaceprivateoffer/GetOffer.go.html to see an example of how to use GetOfferRequest.
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 ¶
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"` }
GetOfferResponse wrapper for the GetOffer operation
func (GetOfferResponse) HTTPResponse ¶
func (response GetOfferResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (GetOfferResponse) String ¶
func (response GetOfferResponse) String() string
type 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 }
ListAttachmentsRequest wrapper for the ListAttachments operation
See also ¶
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/marketplaceprivateoffer/ListAttachments.go.html to see an example of how to use ListAttachmentsRequest.
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 ¶
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"` }
ListAttachmentsResponse wrapper for the ListAttachments operation
func (ListAttachmentsResponse) HTTPResponse ¶
func (response ListAttachmentsResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (ListAttachmentsResponse) String ¶
func (response ListAttachmentsResponse) String() string
type ListAttachmentsSortByEnum ¶
type ListAttachmentsSortByEnum string
ListAttachmentsSortByEnum Enum with underlying type: string
const ( ListAttachmentsSortByTimecreated ListAttachmentsSortByEnum = "timeCreated" ListAttachmentsSortByDisplayname ListAttachmentsSortByEnum = "displayName" )
Set of constants representing the allowable values for ListAttachmentsSortByEnum
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 ¶
type ListAttachmentsSortOrderEnum string
ListAttachmentsSortOrderEnum Enum with underlying type: string
const ( ListAttachmentsSortOrderAsc ListAttachmentsSortOrderEnum = "ASC" ListAttachmentsSortOrderDesc ListAttachmentsSortOrderEnum = "DESC" )
Set of constants representing the allowable values for ListAttachmentsSortOrderEnum
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 ¶
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 }
ListOffersRequest wrapper for the ListOffers operation
See also ¶
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/marketplaceprivateoffer/ListOffers.go.html to see an example of how to use ListOffersRequest.
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 ¶
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"` }
ListOffersResponse wrapper for the ListOffers operation
func (ListOffersResponse) HTTPResponse ¶
func (response ListOffersResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (ListOffersResponse) String ¶
func (response ListOffersResponse) String() string
type ListOffersSortByEnum ¶
type ListOffersSortByEnum string
ListOffersSortByEnum Enum with underlying type: string
const ( ListOffersSortByTimecreated ListOffersSortByEnum = "timeCreated" ListOffersSortByDisplayname ListOffersSortByEnum = "displayName" )
Set of constants representing the allowable values for ListOffersSortByEnum
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 ¶
type ListOffersSortOrderEnum string
ListOffersSortOrderEnum Enum with underlying type: string
const ( ListOffersSortOrderAsc ListOffersSortOrderEnum = "ASC" ListOffersSortOrderDesc ListOffersSortOrderEnum = "DESC" )
Set of constants representing the allowable values for ListOffersSortOrderEnum
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 ¶
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"` }
Offer Description of Offer.
func (Offer) ValidateEnumValue ¶
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 ¶
type OfferClient struct { common.BaseClient // contains filtered or unexported fields }
OfferClient a client for Offer
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/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 (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/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 (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/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 (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/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 (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/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 (*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/latest/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 ¶
type OfferCollection struct { // List of offers. Items []OfferSummary `mandatory:"true" json:"items"` }
OfferCollection Results of a offers search. Contains boh OfferSummary items and other information, such as metadata.
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 ¶
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"` }
OfferInternalDetail the internal details of an offer that are only visible to the seller
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 ¶
type OfferLifecycleStateEnum string
OfferLifecycleStateEnum Enum with underlying type: string
const ( OfferLifecycleStateCreating OfferLifecycleStateEnum = "CREATING" OfferLifecycleStateUpdating OfferLifecycleStateEnum = "UPDATING" OfferLifecycleStateActive OfferLifecycleStateEnum = "ACTIVE" OfferLifecycleStateDeleting OfferLifecycleStateEnum = "DELETING" OfferLifecycleStateDeleted OfferLifecycleStateEnum = "DELETED" OfferLifecycleStateFailed OfferLifecycleStateEnum = "FAILED" )
Set of constants representing the allowable values for OfferLifecycleStateEnum
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 ¶
type OfferOfferStatusEnum string
OfferOfferStatusEnum Enum with underlying type: string
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" )
Set of constants representing the allowable values for OfferOfferStatusEnum
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 ¶
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"` }
OfferSummary Summary of the Offers.
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 ¶
type PackageTypeEnum string
PackageTypeEnum Enum with underlying type: string
const ( PackageTypeContainerImage PackageTypeEnum = "CONTAINER_IMAGE" PackageTypeHelmChart PackageTypeEnum = "HELM_CHART" )
Set of constants representing the allowable values for PackageTypeEnum
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 ¶
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"` }
Pricing the pricing information for the offer
func (Pricing) ValidateEnumValue ¶
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 ¶
type PricingBillingCycleEnum string
PricingBillingCycleEnum Enum with underlying type: string
const (
PricingBillingCycleOneTime PricingBillingCycleEnum = "ONE_TIME"
)
Set of constants representing the allowable values for PricingBillingCycleEnum
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 ¶
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"` }
PublisherSummary The model for a publisher.
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 ¶
type PublisherSummaryPublisherTypeEnum string
PublisherSummaryPublisherTypeEnum Enum with underlying type: string
const ( PublisherSummaryPublisherTypeInternal PublisherSummaryPublisherTypeEnum = "INTERNAL" PublisherSummaryPublisherTypeExternal PublisherSummaryPublisherTypeEnum = "EXTERNAL" )
Set of constants representing the allowable values for PublisherSummaryPublisherTypeEnum
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 ¶
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"` }
ResourceBundle Resource Bundle associated with an Offer
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 ¶
type ResourceBundleTypeEnum string
ResourceBundleTypeEnum Enum with underlying type: string
const (
ResourceBundleTypeListing ResourceBundleTypeEnum = "LISTING"
)
Set of constants representing the allowable values for ResourceBundleTypeEnum
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 ¶
type ResourceBundleUnitOfMeasurementEnum string
ResourceBundleUnitOfMeasurementEnum Enum with underlying type: string
const ( ResourceBundleUnitOfMeasurementOcpuPerHour ResourceBundleUnitOfMeasurementEnum = "OCPU_PER_HOUR" ResourceBundleUnitOfMeasurementInstancePerHour ResourceBundleUnitOfMeasurementEnum = "INSTANCE_PER_HOUR" ResourceBundleUnitOfMeasurementCredits ResourceBundleUnitOfMeasurementEnum = "CREDITS" ResourceBundleUnitOfMeasurementInstances ResourceBundleUnitOfMeasurementEnum = "INSTANCES" ResourceBundleUnitOfMeasurementNodes ResourceBundleUnitOfMeasurementEnum = "NODES" )
Set of constants representing the allowable values for ResourceBundleUnitOfMeasurementEnum
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 ¶
type SellerInformation struct { PrimaryContact *Contact `mandatory:"false" json:"primaryContact"` // the additional contacts associated with the seller AdditionalContacts []Contact `mandatory:"false" json:"additionalContacts"` }
SellerInformation The information related to the seller of an Offer
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 ¶
type SortOrderEnum string
SortOrderEnum Enum with underlying type: string
const ( SortOrderAsc SortOrderEnum = "ASC" SortOrderDesc SortOrderEnum = "DESC" )
Set of constants representing the allowable values for SortOrderEnum
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 ¶
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"` }
UpdateOfferDetails The information to be updated.
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 ¶
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 }
UpdateOfferRequest wrapper for the UpdateOffer operation
See also ¶
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/marketplaceprivateoffer/UpdateOffer.go.html to see an example of how to use UpdateOfferRequest.
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 ¶
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"` }
UpdateOfferResponse wrapper for the UpdateOffer operation
func (UpdateOfferResponse) HTTPResponse ¶
func (response UpdateOfferResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (UpdateOfferResponse) String ¶
func (response UpdateOfferResponse) String() string
type UploadData ¶
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"` }
UploadData The model for upload data for images and icons.
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
Source 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