func GetAttachmentLifecycleStateEnumStringValues() []string
GetAttachmentLifecycleStateEnumStringValues Enumerates the set of values in String for AttachmentLifecycleStateEnum
func GetAttachmentTypeEnumStringValues() []string
GetAttachmentTypeEnumStringValues Enumerates the set of values in String for AttachmentTypeEnum
func GetListAttachmentsSortByEnumStringValues() []string
GetListAttachmentsSortByEnumStringValues Enumerates the set of values in String for ListAttachmentsSortByEnum
func GetListAttachmentsSortOrderEnumStringValues() []string
GetListAttachmentsSortOrderEnumStringValues Enumerates the set of values in String for ListAttachmentsSortOrderEnum
func GetListOfferQuotesSortByEnumStringValues() []string
GetListOfferQuotesSortByEnumStringValues Enumerates the set of values in String for ListOfferQuotesSortByEnum
func GetListOfferQuotesSortOrderEnumStringValues() []string
GetListOfferQuotesSortOrderEnumStringValues Enumerates the set of values in String for ListOfferQuotesSortOrderEnum
func GetListOffersSortByEnumStringValues() []string
GetListOffersSortByEnumStringValues Enumerates the set of values in String for ListOffersSortByEnum
func GetListOffersSortOrderEnumStringValues() []string
GetListOffersSortOrderEnumStringValues Enumerates the set of values in String for ListOffersSortOrderEnum
func GetListQuoteAttachmentsSortByEnumStringValues() []string
GetListQuoteAttachmentsSortByEnumStringValues Enumerates the set of values in String for ListQuoteAttachmentsSortByEnum
func GetListQuoteAttachmentsSortOrderEnumStringValues() []string
GetListQuoteAttachmentsSortOrderEnumStringValues Enumerates the set of values in String for ListQuoteAttachmentsSortOrderEnum
func GetOfferLifecycleStateEnumStringValues() []string
GetOfferLifecycleStateEnumStringValues Enumerates the set of values in String for OfferLifecycleStateEnum
func GetOfferOfferStatusEnumStringValues() []string
GetOfferOfferStatusEnumStringValues Enumerates the set of values in String for OfferOfferStatusEnum
func GetOfferOfferTypeEnumStringValues() []string
GetOfferOfferTypeEnumStringValues Enumerates the set of values in String for OfferOfferTypeEnum
func GetOfferQuoteLifecycleStateEnumStringValues() []string
GetOfferQuoteLifecycleStateEnumStringValues Enumerates the set of values in String for OfferQuoteLifecycleStateEnum
func GetOfferQuoteOfferQuoteStatusEnumStringValues() []string
GetOfferQuoteOfferQuoteStatusEnumStringValues Enumerates the set of values in String for OfferQuoteOfferQuoteStatusEnum
func GetPackageTypeEnumStringValues() []string
GetPackageTypeEnumStringValues Enumerates the set of values in String for PackageTypeEnum
func GetPricingBillingCycleEnumStringValues() []string
GetPricingBillingCycleEnumStringValues Enumerates the set of values in String for PricingBillingCycleEnum
func GetPublisherSummaryPublisherTypeEnumStringValues() []string
GetPublisherSummaryPublisherTypeEnumStringValues Enumerates the set of values in String for PublisherSummaryPublisherTypeEnum
func GetQuoteAttachmentLifecycleStateEnumStringValues() []string
GetQuoteAttachmentLifecycleStateEnumStringValues Enumerates the set of values in String for QuoteAttachmentLifecycleStateEnum
func GetQuoteAttachmentRecipientEnumStringValues() []string
GetQuoteAttachmentRecipientEnumStringValues Enumerates the set of values in String for QuoteAttachmentRecipientEnum
func GetQuoteAttachmentTypeEnumStringValues() []string
GetQuoteAttachmentTypeEnumStringValues Enumerates the set of values in String for QuoteAttachmentTypeEnum
func GetResourceBundleTypeEnumStringValues() []string
GetResourceBundleTypeEnumStringValues Enumerates the set of values in String for ResourceBundleTypeEnum
func GetResourceBundleUnitOfMeasurementEnumStringValues() []string
GetResourceBundleUnitOfMeasurementEnumStringValues Enumerates the set of values in String for ResourceBundleUnitOfMeasurementEnum
func GetSortOrderEnumStringValues() []string
GetSortOrderEnumStringValues Enumerates the set of values in String for SortOrderEnum
Attachment Description of Attachment.
type Attachment struct {
// Unique identifier that is immutable on creation
Id *string `mandatory:"true" json:"id"`
// OCID of the seller's tenancy (root compartment).
SellerCompartmentId *string `mandatory:"true" json:"sellerCompartmentId"`
// Unique identifier of the associated offer that is immutable on creation
OfferId *string `mandatory:"true" json:"offerId"`
// The name used to refer to the uploaded data.
DisplayName *string `mandatory:"true" json:"displayName"`
// The type of offer attachment.
Type AttachmentTypeEnum `mandatory:"true" json:"type"`
// The time the the Offer was created. An RFC3339 formatted datetime string
TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"`
// The current state of the Offer.
LifecycleState AttachmentLifecycleStateEnum `mandatory:"true" json:"lifecycleState"`
// Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
// Example: `{"bar-key": "value"}`
FreeformTags map[string]string `mandatory:"true" json:"freeformTags"`
// Defined tags for this resource. Each key is predefined and scoped to a namespace.
// Example: `{"foo-namespace": {"bar-key": "value"}}`
DefinedTags map[string]map[string]interface{} `mandatory:"true" json:"definedTags"`
// OCID of the buyer's tenancy (root compartment).
BuyerCompartmentId *string `mandatory:"false" json:"buyerCompartmentId"`
// The MIME type of the uploaded data.
MimeType *string `mandatory:"false" json:"mimeType"`
// The type of the offer.
OfferType OfferOfferTypeEnum `mandatory:"false" json:"offerType,omitempty"`
// System tags for this resource. Each key is predefined and scoped to a namespace.
// Example: `{"orcl-cloud": {"free-tier-retained": "true"}}`
SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"`
}
func (m Attachment) String() string
func (m Attachment) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
AttachmentClient a client for Attachment
type AttachmentClient struct {
common.BaseClient
// contains filtered or unexported fields
}
func NewAttachmentClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client AttachmentClient, err error)
NewAttachmentClientWithConfigurationProvider Creates a new default Attachment client with the given configuration provider. the configuration provider will be used for the default signer as well as reading the region
func NewAttachmentClientWithOboToken(configProvider common.ConfigurationProvider, oboToken string) (client AttachmentClient, err error)
NewAttachmentClientWithOboToken Creates a new default Attachment client with the given configuration provider. The obotoken will be added to default headers and signed; the configuration provider will be used for the signer
as well as reading the region
func (client *AttachmentClient) ConfigurationProvider() *common.ConfigurationProvider
ConfigurationProvider the ConfigurationProvider used in this client, or null if none set
func (client AttachmentClient) CreateAttachment(ctx context.Context, request CreateAttachmentRequest) (response CreateAttachmentResponse, err error)
CreateAttachment Creates a new Attachment.
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/marketplaceprivateoffer/CreateAttachment.go.html to see an example of how to use CreateAttachment API. A default retry strategy applies to this operation CreateAttachment()
func (client AttachmentClient) DeleteAttachment(ctx context.Context, request DeleteAttachmentRequest) (response DeleteAttachmentResponse, err error)
DeleteAttachment Deletes a Attachment resource by identifier
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/marketplaceprivateoffer/DeleteAttachment.go.html to see an example of how to use DeleteAttachment API. A default retry strategy applies to this operation DeleteAttachment()
func (client AttachmentClient) GetAttachment(ctx context.Context, request GetAttachmentRequest) (response GetAttachmentResponse, err error)
GetAttachment Gets a Attachment by identifier
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/marketplaceprivateoffer/GetAttachment.go.html to see an example of how to use GetAttachment API. A default retry strategy applies to this operation GetAttachment()
func (client AttachmentClient) GetAttachmentContent(ctx context.Context, request GetAttachmentContentRequest) (response GetAttachmentContentResponse, err error)
GetAttachmentContent Gets a Attachment content by identifier
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/marketplaceprivateoffer/GetAttachmentContent.go.html to see an example of how to use GetAttachmentContent API. A default retry strategy applies to this operation GetAttachmentContent()
func (client AttachmentClient) ListAttachments(ctx context.Context, request ListAttachmentsRequest) (response ListAttachmentsResponse, err error)
ListAttachments Returns a list of Attachments. Requires either the BuyerCompartmentId or the SellerCompartmentId params. If neither or both are provided, then the API will return a 400.
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/marketplaceprivateoffer/ListAttachments.go.html to see an example of how to use ListAttachments API. A default retry strategy applies to this operation ListAttachments()
func (client *AttachmentClient) SetRegion(region string)
SetRegion overrides the region of this client.
AttachmentCollection Results of a offers search. Contains boh AttachmentSummary items.
type AttachmentCollection struct {
// List of attachment.
Items []AttachmentSummary `mandatory:"true" json:"items"`
}
func (m AttachmentCollection) String() string
func (m AttachmentCollection) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
AttachmentLifecycleStateEnum Enum with underlying type: string
type AttachmentLifecycleStateEnum string
Set of constants representing the allowable values for AttachmentLifecycleStateEnum
const (
AttachmentLifecycleStateCreating AttachmentLifecycleStateEnum = "CREATING"
AttachmentLifecycleStateUpdating AttachmentLifecycleStateEnum = "UPDATING"
AttachmentLifecycleStateActive AttachmentLifecycleStateEnum = "ACTIVE"
AttachmentLifecycleStateDeleting AttachmentLifecycleStateEnum = "DELETING"
AttachmentLifecycleStateDeleted AttachmentLifecycleStateEnum = "DELETED"
AttachmentLifecycleStateFailed AttachmentLifecycleStateEnum = "FAILED"
)
func GetAttachmentLifecycleStateEnumValues() []AttachmentLifecycleStateEnum
GetAttachmentLifecycleStateEnumValues Enumerates the set of values for AttachmentLifecycleStateEnum
func GetMappingAttachmentLifecycleStateEnum(val string) (AttachmentLifecycleStateEnum, bool)
GetMappingAttachmentLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum
AttachmentSummary Description of Attachment.
type AttachmentSummary struct {
// Unique identifier that is immutable on creation
Id *string `mandatory:"true" json:"id"`
// Unique identifier of the associated offer that is immutable on creation
OfferId *string `mandatory:"true" json:"offerId"`
// The name used to refer to the uploaded data.
DisplayName *string `mandatory:"true" json:"displayName"`
// The type of offer attachment.
Type AttachmentTypeEnum `mandatory:"true" json:"type"`
// The current state of the Attachment.
LifecycleState AttachmentLifecycleStateEnum `mandatory:"true" json:"lifecycleState"`
// Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
// Example: `{"bar-key": "value"}`
FreeformTags map[string]string `mandatory:"true" json:"freeformTags"`
// Defined tags for this resource. Each key is predefined and scoped to a namespace.
// Example: `{"foo-namespace": {"bar-key": "value"}}`
DefinedTags map[string]map[string]interface{} `mandatory:"true" json:"definedTags"`
// The MIME type of the uploaded data.
MimeType *string `mandatory:"false" json:"mimeType"`
// The type of the offer.
OfferType OfferOfferTypeEnum `mandatory:"false" json:"offerType,omitempty"`
// System tags for this resource. Each key is predefined and scoped to a namespace.
// Example: `{"orcl-cloud": {"free-tier-retained": "true"}}`
SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"`
}
func (m AttachmentSummary) String() string
func (m AttachmentSummary) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
AttachmentTypeEnum Enum with underlying type: string
type AttachmentTypeEnum string
Set of constants representing the allowable values for AttachmentTypeEnum
const (
AttachmentTypeContractTAndC AttachmentTypeEnum = "CONTRACT_T_AND_C"
AttachmentTypeQuote AttachmentTypeEnum = "QUOTE"
AttachmentTypeEula AttachmentTypeEnum = "EULA"
AttachmentTypeTermsOfUse AttachmentTypeEnum = "TERMS_OF_USE"
AttachmentTypeMisc AttachmentTypeEnum = "MISC"
)
func GetAttachmentTypeEnumValues() []AttachmentTypeEnum
GetAttachmentTypeEnumValues Enumerates the set of values for AttachmentTypeEnum
func GetMappingAttachmentTypeEnum(val string) (AttachmentTypeEnum, bool)
GetMappingAttachmentTypeEnum performs case Insensitive comparison on enum value and return the desired enum
BuyerInformation The information related to the buyer of an Offer
type BuyerInformation struct {
// the name of the company for the buyer
CompanyName *string `mandatory:"false" json:"companyName"`
// a note the seller can specify for the buyer through a notification email
NoteToBuyer *string `mandatory:"false" json:"noteToBuyer"`
PrimaryContact *Contact `mandatory:"false" json:"primaryContact"`
// the additional contacts associated with the buyer
AdditionalContacts []Contact `mandatory:"false" json:"additionalContacts"`
}
func (m BuyerInformation) String() string
func (m BuyerInformation) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
Contact The contact information of an individual.
type Contact struct {
// The first name of the contact.
FirstName *string `mandatory:"false" json:"firstName"`
// The last name of the contact.
LastName *string `mandatory:"false" json:"lastName"`
// The email of the contact.
Email *string `mandatory:"false" json:"email"`
}
func (m Contact) String() string
func (m Contact) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
CreateAttachmentDetails An attachment uploaded by the Publisher to be attached to an Offer.
type CreateAttachmentDetails struct {
// Base64-encoded file to attach to the Offer. File must be a PDF with maximum size of 1 MB
FileBase64Encoded []byte `mandatory:"true" json:"fileBase64Encoded"`
// The name used to refer to the uploaded data.
DisplayName *string `mandatory:"true" json:"displayName"`
// The type of offer attachment.
Type AttachmentTypeEnum `mandatory:"true" json:"type"`
}
func (m CreateAttachmentDetails) String() string
func (m CreateAttachmentDetails) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
CreateAttachmentRequest wrapper for the CreateAttachment operation
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/marketplaceprivateoffer/CreateAttachment.go.html to see an example of how to use CreateAttachmentRequest.
type CreateAttachmentRequest struct {
// Details for the new Attachment.
CreateAttachmentDetails `contributesTo:"body"`
// unique Offer identifier
OfferId *string `mandatory:"true" contributesTo:"path" name:"offerId"`
// A token that uniquely identifies a request so it can be retried in case of a timeout or
// server error without risk of executing that same action again. Retry tokens expire after 24
// hours, but can be invalidated before then due to conflicting operations. For example, if a resource
// has been deleted and purged from the system, then a retry of the original creation request
// might be rejected.
OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"`
// The client request ID for tracing.
OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`
// Metadata about the request. This information will not be transmitted to the service, but
// represents information that the SDK will consume to drive retry behavior.
RequestMetadata common.RequestMetadata
}
func (request CreateAttachmentRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request CreateAttachmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request CreateAttachmentRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request CreateAttachmentRequest) String() string
func (request CreateAttachmentRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
CreateAttachmentResponse wrapper for the CreateAttachment operation
type CreateAttachmentResponse struct {
// The underlying http response
RawResponse *http.Response
// The Attachment instance
Attachment `presentIn:"body"`
// For optimistic concurrency control. See `if-match`.
Etag *string `presentIn:"header" name:"etag"`
// Unique Oracle-assigned identifier for the request. If you need to contact
// Oracle about a particular request, please provide the request ID.
OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
}
func (response CreateAttachmentResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response CreateAttachmentResponse) String() string
CreateOfferDetails The information about new Offers.
type CreateOfferDetails struct {
// Offers Identifier
DisplayName *string `mandatory:"true" json:"displayName"`
// Compartment Identifier of the seller
SellerCompartmentId *string `mandatory:"true" json:"sellerCompartmentId"`
// Compartment Identifier of the buyer
BuyerCompartmentId *string `mandatory:"false" json:"buyerCompartmentId"`
// Description of the Offer
Description *string `mandatory:"false" json:"description"`
// Internal notes of the Offer
InternalNotes *string `mandatory:"false" json:"internalNotes"`
// The time the Offer will become active after it has been accepted by the Buyer. An RFC3339 formatted datetime string
TimeStartDate *common.SDKTime `mandatory:"false" json:"timeStartDate"`
// Duration the Offer will be active after its start date. An ISO8601 extended formatted string.
Duration *string `mandatory:"false" json:"duration"`
// The time the Offer must be accepted by the Buyer before the Offer becomes invalid. An RFC3339 formatted datetime string
TimeAcceptBy *common.SDKTime `mandatory:"false" json:"timeAcceptBy"`
Pricing *Pricing `mandatory:"false" json:"pricing"`
BuyerInformation *BuyerInformation `mandatory:"false" json:"buyerInformation"`
SellerInformation *SellerInformation `mandatory:"false" json:"sellerInformation"`
// A list of Resource Bundles associated with an Offer.
ResourceBundles []ResourceBundle `mandatory:"false" json:"resourceBundles"`
// A list of key value pairs specified by the seller
CustomFields []CustomField `mandatory:"false" json:"customFields"`
// The type of the offer.
OfferType OfferOfferTypeEnum `mandatory:"false" json:"offerType,omitempty"`
// A list of associated offer quotes.
OfferQuoteIds []string `mandatory:"false" json:"offerQuoteIds"`
// Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
// Example: `{"bar-key": "value"}`
FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`
// Defined tags for this resource. Each key is predefined and scoped to a namespace.
// Example: `{"foo-namespace": {"bar-key": "value"}}`
DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`
}
func (m CreateOfferDetails) String() string
func (m CreateOfferDetails) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
CreateOfferQuoteDetails The information about new offer quotes.
type CreateOfferQuoteDetails struct {
// Offer quotes identifier.
DisplayName *string `mandatory:"true" json:"displayName"`
// Compartment identifier of the reseller.
ResellerCompartmentId *string `mandatory:"true" json:"resellerCompartmentId"`
// Compartment identifier of the ISV.
IsvCompartmentId *string `mandatory:"false" json:"isvCompartmentId"`
// Publisher identifier of the ISV.
IsvPublisherId *string `mandatory:"false" json:"isvPublisherId"`
// Description of the offer quote.
Description *string `mandatory:"false" json:"description"`
// A list of resource bundles associated with an offer quote.
ResourceBundles []ResourceBundle `mandatory:"false" json:"resourceBundles"`
// A list of buyer tenancies.
BuyerCompartmentIds []string `mandatory:"false" json:"buyerCompartmentIds"`
ResellerInformation *ResellerInformation `mandatory:"false" json:"resellerInformation"`
IsvInformation *IsvInformation `mandatory:"false" json:"isvInformation"`
// The time the offer for the buyer must be accepted by before the offer becomes invalid. An RFC3339 formatted datetime string.
BuyerAcceptanceDeadline *common.SDKTime `mandatory:"false" json:"buyerAcceptanceDeadline"`
// Duration the offer for the buyer will be active after its start date. An ISO8601 extended formatted string.
BuyerOfferDuration *string `mandatory:"false" json:"buyerOfferDuration"`
// Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
// Example: `{"bar-key": "value"}`
FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`
// Defined tags for this resource. Each key is predefined and scoped to a namespace.
// Example: `{"foo-namespace": {"bar-key": "value"}}`
DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`
}
func (m CreateOfferQuoteDetails) String() string
func (m CreateOfferQuoteDetails) 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
CreateOfferQuoteRequest wrapper for the CreateOfferQuote operation
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/marketplaceprivateoffer/CreateOfferQuote.go.html to see an example of how to use CreateOfferQuoteRequest.
type CreateOfferQuoteRequest struct {
// Details for the new offer quote.
CreateOfferQuoteDetails `contributesTo:"body"`
// A token that uniquely identifies a request so it can be retried in case of a timeout or
// server error without risk of executing that same action again. Retry tokens expire after 24
// hours, but can be invalidated before then due to conflicting operations. For example, if a resource
// has been deleted and purged from the system, then a retry of the original creation request
// might be rejected.
OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"`
// The client request ID for tracing.
OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`
// Metadata about the request. This information will not be transmitted to the service, but
// represents information that the SDK will consume to drive retry behavior.
RequestMetadata common.RequestMetadata
}
func (request CreateOfferQuoteRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request CreateOfferQuoteRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request CreateOfferQuoteRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request CreateOfferQuoteRequest) String() string
func (request CreateOfferQuoteRequest) 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
CreateOfferQuoteResponse wrapper for the CreateOfferQuote operation
type CreateOfferQuoteResponse struct {
// The underlying http response
RawResponse *http.Response
// The OfferQuote instance
OfferQuote `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"`
// URL for the created offer quote. The offer quote OCID is generated after this request is sent.
Location *string `presentIn:"header" name:"location"`
// Same as location.
ContentLocation *string `presentIn:"header" name:"content-location"`
// 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"`
}
func (response CreateOfferQuoteResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response CreateOfferQuoteResponse) String() string
CreateOfferRequest wrapper for the CreateOffer operation
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/marketplaceprivateoffer/CreateOffer.go.html to see an example of how to use CreateOfferRequest.
type CreateOfferRequest struct {
// Details for the new Offer.
CreateOfferDetails `contributesTo:"body"`
// A token that uniquely identifies a request so it can be retried in case of a timeout or
// server error without risk of executing that same action again. Retry tokens expire after 24
// hours, but can be invalidated before then due to conflicting operations. For example, if a resource
// has been deleted and purged from the system, then a retry of the original creation request
// might be rejected.
OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"`
// The client request ID for tracing.
OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`
// Metadata about the request. This information will not be transmitted to the service, but
// represents information that the SDK will consume to drive retry behavior.
RequestMetadata common.RequestMetadata
}
func (request CreateOfferRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request CreateOfferRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request CreateOfferRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request CreateOfferRequest) String() string
func (request CreateOfferRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
CreateOfferResponse wrapper for the CreateOffer operation
type CreateOfferResponse struct {
// The underlying http response
RawResponse *http.Response
// The Offer instance
Offer `presentIn:"body"`
// Unique Oracle-assigned identifier for the request. If you need to contact
// Oracle about a particular request, please provide the request ID.
OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
// For optimistic concurrency control. See `if-match`.
Etag *string `presentIn:"header" name:"etag"`
}
func (response CreateOfferResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response CreateOfferResponse) String() string
CreateQuoteAttachmentDetails The details for creating a new offer quote attachment.
type CreateQuoteAttachmentDetails struct {
// Base64-encoded file to attach to the offer quote.
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 quote attachment.
Type QuoteAttachmentTypeEnum `mandatory:"true" json:"type"`
// The recipient of the offer quote attachment.
Recipient QuoteAttachmentRecipientEnum `mandatory:"true" json:"recipient"`
}
func (m CreateQuoteAttachmentDetails) String() string
func (m CreateQuoteAttachmentDetails) 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
CreateQuoteAttachmentRequest wrapper for the CreateQuoteAttachment operation
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/marketplaceprivateoffer/CreateQuoteAttachment.go.html to see an example of how to use CreateQuoteAttachmentRequest.
type CreateQuoteAttachmentRequest struct {
// Unique offer quote identifier.
OfferQuoteId *string `mandatory:"true" contributesTo:"path" name:"offerQuoteId"`
// Details for the new offer quote attachment.
CreateQuoteAttachmentDetails `contributesTo:"body"`
// The client request ID for tracing.
OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`
// 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"`
// Metadata about the request. This information will not be transmitted to the service, but
// represents information that the SDK will consume to drive retry behavior.
RequestMetadata common.RequestMetadata
}
func (request CreateQuoteAttachmentRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request CreateQuoteAttachmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request CreateQuoteAttachmentRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request CreateQuoteAttachmentRequest) String() string
func (request CreateQuoteAttachmentRequest) 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
CreateQuoteAttachmentResponse wrapper for the CreateQuoteAttachment operation
type CreateQuoteAttachmentResponse struct {
// The underlying http response
RawResponse *http.Response
// The QuoteAttachment instance
QuoteAttachment `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"`
// URL for the created offer quote attachment. The offer quote attachment OCID is generated after this request is sent.
Location *string `presentIn:"header" name:"location"`
// Same as location.
ContentLocation *string `presentIn:"header" name:"content-location"`
// 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"`
}
func (response CreateQuoteAttachmentResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response CreateQuoteAttachmentResponse) String() string
CustomField A key value pair specified by the seller of the offer.
type CustomField struct {
// The key of the custom field.
Key *string `mandatory:"false" json:"key"`
// The value of the custom field.
Value *string `mandatory:"false" json:"value"`
}
func (m CustomField) String() string
func (m CustomField) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
DeleteAttachmentRequest wrapper for the DeleteAttachment operation
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/marketplaceprivateoffer/DeleteAttachment.go.html to see an example of how to use DeleteAttachmentRequest.
type DeleteAttachmentRequest struct {
// unique Offer identifier
OfferId *string `mandatory:"true" contributesTo:"path" name:"offerId"`
// unique Offer identifier
AttachmentId *string `mandatory:"true" contributesTo:"path" name:"attachmentId"`
// For optimistic concurrency control. In the PUT or DELETE call
// for a resource, set the `if-match` parameter to the value of the
// etag from a previous GET or POST response for that resource.
// The resource will be updated or deleted only if the etag you
// provide matches the resource's current etag value.
IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"`
// The client request ID for tracing.
OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`
// Metadata about the request. This information will not be transmitted to the service, but
// represents information that the SDK will consume to drive retry behavior.
RequestMetadata common.RequestMetadata
}
func (request DeleteAttachmentRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request DeleteAttachmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request DeleteAttachmentRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request DeleteAttachmentRequest) String() string
func (request DeleteAttachmentRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
DeleteAttachmentResponse wrapper for the DeleteAttachment operation
type DeleteAttachmentResponse struct {
// The underlying http response
RawResponse *http.Response
// Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status.
OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"`
// Unique Oracle-assigned identifier for the request. If you need to contact
// Oracle about a particular request, please provide the request ID.
OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
}
func (response DeleteAttachmentResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response DeleteAttachmentResponse) String() string
DeleteOfferQuoteRequest wrapper for the DeleteOfferQuote operation
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/marketplaceprivateoffer/DeleteOfferQuote.go.html to see an example of how to use DeleteOfferQuoteRequest.
type DeleteOfferQuoteRequest struct {
// Unique offer quote identifier.
OfferQuoteId *string `mandatory:"true" contributesTo:"path" name:"offerQuoteId"`
// For optimistic concurrency control. In the PUT or DELETE call
// for a resource, set the `if-match` parameter to the value of the
// etag from a previous GET or POST response for that resource.
// The resource will be updated or deleted only if the etag you
// provide matches the resource's current etag value.
IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"`
// The client request ID for tracing.
OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`
// Metadata about the request. This information will not be transmitted to the service, but
// represents information that the SDK will consume to drive retry behavior.
RequestMetadata common.RequestMetadata
}
func (request DeleteOfferQuoteRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request DeleteOfferQuoteRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request DeleteOfferQuoteRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request DeleteOfferQuoteRequest) String() string
func (request DeleteOfferQuoteRequest) 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
DeleteOfferQuoteResponse wrapper for the DeleteOfferQuote operation
type DeleteOfferQuoteResponse struct {
// The underlying http response
RawResponse *http.Response
// Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status.
OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"`
// Unique Oracle-assigned identifier for the request. If you need to contact
// Oracle about a particular request, please provide the request ID.
OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
}
func (response DeleteOfferQuoteResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response DeleteOfferQuoteResponse) String() string
DeleteOfferRequest wrapper for the DeleteOffer operation
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/marketplaceprivateoffer/DeleteOffer.go.html to see an example of how to use DeleteOfferRequest.
type DeleteOfferRequest struct {
// unique Offer identifier
OfferId *string `mandatory:"true" contributesTo:"path" name:"offerId"`
// For optimistic concurrency control. In the PUT or DELETE call
// for a resource, set the `if-match` parameter to the value of the
// etag from a previous GET or POST response for that resource.
// The resource will be updated or deleted only if the etag you
// provide matches the resource's current etag value.
IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"`
// The client request ID for tracing.
OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`
// Metadata about the request. This information will not be transmitted to the service, but
// represents information that the SDK will consume to drive retry behavior.
RequestMetadata common.RequestMetadata
}
func (request DeleteOfferRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request DeleteOfferRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request DeleteOfferRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request DeleteOfferRequest) String() string
func (request DeleteOfferRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
DeleteOfferResponse wrapper for the DeleteOffer operation
type DeleteOfferResponse struct {
// The underlying http response
RawResponse *http.Response
// Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status.
OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"`
// Unique Oracle-assigned identifier for the request. If you need to contact
// Oracle about a particular request, please provide the request ID.
OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
}
func (response DeleteOfferResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response DeleteOfferResponse) String() string
DeleteQuoteAttachmentRequest wrapper for the DeleteQuoteAttachment operation
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/marketplaceprivateoffer/DeleteQuoteAttachment.go.html to see an example of how to use DeleteQuoteAttachmentRequest.
type DeleteQuoteAttachmentRequest struct {
// Unique offer quote identifier.
OfferQuoteId *string `mandatory:"true" contributesTo:"path" name:"offerQuoteId"`
// Unique offer quote attachment identifier.
QuoteAttachmentId *string `mandatory:"true" contributesTo:"path" name:"quoteAttachmentId"`
// For optimistic concurrency control. In the PUT or DELETE call
// for a resource, set the `if-match` parameter to the value of the
// etag from a previous GET or POST response for that resource.
// The resource will be updated or deleted only if the etag you
// provide matches the resource's current etag value.
IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"`
// The client request ID for tracing.
OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`
// Metadata about the request. This information will not be transmitted to the service, but
// represents information that the SDK will consume to drive retry behavior.
RequestMetadata common.RequestMetadata
}
func (request DeleteQuoteAttachmentRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request DeleteQuoteAttachmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request DeleteQuoteAttachmentRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request DeleteQuoteAttachmentRequest) String() string
func (request DeleteQuoteAttachmentRequest) 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
DeleteQuoteAttachmentResponse wrapper for the DeleteQuoteAttachment operation
type DeleteQuoteAttachmentResponse struct {
// The underlying http response
RawResponse *http.Response
// Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status.
OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"`
// Unique Oracle-assigned identifier for the request. If you need to contact
// Oracle about a particular request, please provide the request ID.
OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
}
func (response DeleteQuoteAttachmentResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response DeleteQuoteAttachmentResponse) String() string
GetAttachmentContentRequest wrapper for the GetAttachmentContent operation
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/marketplaceprivateoffer/GetAttachmentContent.go.html to see an example of how to use GetAttachmentContentRequest.
type GetAttachmentContentRequest struct {
// unique Offer identifier
OfferId *string `mandatory:"true" contributesTo:"path" name:"offerId"`
// unique Offer identifier
AttachmentId *string `mandatory:"true" contributesTo:"path" name:"attachmentId"`
// The client request ID for tracing.
OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`
// Metadata about the request. This information will not be transmitted to the service, but
// represents information that the SDK will consume to drive retry behavior.
RequestMetadata common.RequestMetadata
}
func (request GetAttachmentContentRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request GetAttachmentContentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request GetAttachmentContentRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request GetAttachmentContentRequest) String() string
func (request GetAttachmentContentRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
GetAttachmentContentResponse wrapper for the GetAttachmentContent operation
type GetAttachmentContentResponse struct {
// The underlying http response
RawResponse *http.Response
// The io.ReadCloser instance
Content io.ReadCloser `presentIn:"body" encoding:"binary"`
// Unique Oracle-assigned identifier for the request. If you need to contact
// Oracle about a particular request, please provide the request ID.
OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
}
func (response GetAttachmentContentResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response GetAttachmentContentResponse) String() string
GetAttachmentRequest wrapper for the GetAttachment operation
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/marketplaceprivateoffer/GetAttachment.go.html to see an example of how to use GetAttachmentRequest.
type GetAttachmentRequest struct {
// unique Offer identifier
OfferId *string `mandatory:"true" contributesTo:"path" name:"offerId"`
// unique Offer identifier
AttachmentId *string `mandatory:"true" contributesTo:"path" name:"attachmentId"`
// The client request ID for tracing.
OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`
// Metadata about the request. This information will not be transmitted to the service, but
// represents information that the SDK will consume to drive retry behavior.
RequestMetadata common.RequestMetadata
}
func (request GetAttachmentRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request GetAttachmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request GetAttachmentRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request GetAttachmentRequest) String() string
func (request GetAttachmentRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
GetAttachmentResponse wrapper for the GetAttachment operation
type GetAttachmentResponse struct {
// The underlying http response
RawResponse *http.Response
// The Attachment instance
Attachment `presentIn:"body"`
// For optimistic concurrency control. See `if-match`.
Etag *string `presentIn:"header" name:"etag"`
// Unique Oracle-assigned identifier for the request. If you need to contact
// Oracle about a particular request, please provide the request ID.
OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
}
func (response GetAttachmentResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response GetAttachmentResponse) String() string
GetOfferInternalDetailRequest wrapper for the GetOfferInternalDetail operation
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/marketplaceprivateoffer/GetOfferInternalDetail.go.html to see an example of how to use GetOfferInternalDetailRequest.
type GetOfferInternalDetailRequest struct {
// unique Offer identifier
OfferId *string `mandatory:"true" contributesTo:"path" name:"offerId"`
// The client request ID for tracing.
OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`
// Metadata about the request. This information will not be transmitted to the service, but
// represents information that the SDK will consume to drive retry behavior.
RequestMetadata common.RequestMetadata
}
func (request GetOfferInternalDetailRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request GetOfferInternalDetailRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request GetOfferInternalDetailRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request GetOfferInternalDetailRequest) String() string
func (request GetOfferInternalDetailRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
GetOfferInternalDetailResponse wrapper for the GetOfferInternalDetail operation
type GetOfferInternalDetailResponse struct {
// The underlying http response
RawResponse *http.Response
// The OfferInternalDetail instance
OfferInternalDetail `presentIn:"body"`
// For optimistic concurrency control. See `if-match`.
Etag *string `presentIn:"header" name:"etag"`
// Unique Oracle-assigned identifier for the request. If you need to contact
// Oracle about a particular request, please provide the request ID.
OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
}
func (response GetOfferInternalDetailResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response GetOfferInternalDetailResponse) String() string
GetOfferQuoteInternalDetailRequest wrapper for the GetOfferQuoteInternalDetail operation
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/marketplaceprivateoffer/GetOfferQuoteInternalDetail.go.html to see an example of how to use GetOfferQuoteInternalDetailRequest.
type GetOfferQuoteInternalDetailRequest struct {
// Unique offer quote identifier.
OfferQuoteId *string `mandatory:"true" contributesTo:"path" name:"offerQuoteId"`
// The client request ID for tracing.
OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`
// Metadata about the request. This information will not be transmitted to the service, but
// represents information that the SDK will consume to drive retry behavior.
RequestMetadata common.RequestMetadata
}
func (request GetOfferQuoteInternalDetailRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request GetOfferQuoteInternalDetailRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request GetOfferQuoteInternalDetailRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request GetOfferQuoteInternalDetailRequest) String() string
func (request GetOfferQuoteInternalDetailRequest) 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
GetOfferQuoteInternalDetailResponse wrapper for the GetOfferQuoteInternalDetail operation
type GetOfferQuoteInternalDetailResponse struct {
// The underlying http response
RawResponse *http.Response
// The OfferQuoteInternalDetail instance
OfferQuoteInternalDetail `presentIn:"body"`
// For optimistic concurrency control. See `if-match`.
Etag *string `presentIn:"header" name:"etag"`
// Unique Oracle-assigned identifier for the request. If you need to contact
// Oracle about a particular request, please provide the request ID.
OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
}
func (response GetOfferQuoteInternalDetailResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response GetOfferQuoteInternalDetailResponse) String() string
GetOfferQuoteRequest wrapper for the GetOfferQuote operation
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/marketplaceprivateoffer/GetOfferQuote.go.html to see an example of how to use GetOfferQuoteRequest.
type GetOfferQuoteRequest struct {
// Unique offer quote identifier.
OfferQuoteId *string `mandatory:"true" contributesTo:"path" name:"offerQuoteId"`
// The client request ID for tracing.
OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`
// Metadata about the request. This information will not be transmitted to the service, but
// represents information that the SDK will consume to drive retry behavior.
RequestMetadata common.RequestMetadata
}
func (request GetOfferQuoteRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request GetOfferQuoteRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request GetOfferQuoteRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request GetOfferQuoteRequest) String() string
func (request GetOfferQuoteRequest) 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
GetOfferQuoteResponse wrapper for the GetOfferQuote operation
type GetOfferQuoteResponse struct {
// The underlying http response
RawResponse *http.Response
// The OfferQuote instance
OfferQuote `presentIn:"body"`
// For optimistic concurrency control. See `if-match`.
Etag *string `presentIn:"header" name:"etag"`
// Unique Oracle-assigned identifier for the request. If you need to contact
// Oracle about a particular request, please provide the request ID.
OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
}
func (response GetOfferQuoteResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response GetOfferQuoteResponse) String() string
GetOfferRequest wrapper for the GetOffer operation
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/marketplaceprivateoffer/GetOffer.go.html to see an example of how to use GetOfferRequest.
type GetOfferRequest struct {
// unique Offer identifier
OfferId *string `mandatory:"true" contributesTo:"path" name:"offerId"`
// The client request ID for tracing.
OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`
// Metadata about the request. This information will not be transmitted to the service, but
// represents information that the SDK will consume to drive retry behavior.
RequestMetadata common.RequestMetadata
}
func (request GetOfferRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request GetOfferRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request GetOfferRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request GetOfferRequest) String() string
func (request GetOfferRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
GetOfferResponse wrapper for the GetOffer operation
type GetOfferResponse struct {
// The underlying http response
RawResponse *http.Response
// The Offer instance
Offer `presentIn:"body"`
// For optimistic concurrency control. See `if-match`.
Etag *string `presentIn:"header" name:"etag"`
// Unique Oracle-assigned identifier for the request. If you need to contact
// Oracle about a particular request, please provide the request ID.
OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
}
func (response GetOfferResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response GetOfferResponse) String() string
GetQuoteAttachmentContentRequest wrapper for the GetQuoteAttachmentContent operation
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/marketplaceprivateoffer/GetQuoteAttachmentContent.go.html to see an example of how to use GetQuoteAttachmentContentRequest.
type GetQuoteAttachmentContentRequest struct {
// Unique offer quote identifier.
OfferQuoteId *string `mandatory:"true" contributesTo:"path" name:"offerQuoteId"`
// Unique offer quote attachment identifier.
QuoteAttachmentId *string `mandatory:"true" contributesTo:"path" name:"quoteAttachmentId"`
// The client request ID for tracing.
OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`
// Metadata about the request. This information will not be transmitted to the service, but
// represents information that the SDK will consume to drive retry behavior.
RequestMetadata common.RequestMetadata
}
func (request GetQuoteAttachmentContentRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request GetQuoteAttachmentContentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request GetQuoteAttachmentContentRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request GetQuoteAttachmentContentRequest) String() string
func (request GetQuoteAttachmentContentRequest) 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
GetQuoteAttachmentContentResponse wrapper for the GetQuoteAttachmentContent operation
type GetQuoteAttachmentContentResponse struct {
// The underlying http response
RawResponse *http.Response
// The io.ReadCloser instance
Content io.ReadCloser `presentIn:"body" encoding:"binary"`
// Unique Oracle-assigned identifier for the request. If you need to contact
// Oracle about a particular request, please provide the request ID.
OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
}
func (response GetQuoteAttachmentContentResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response GetQuoteAttachmentContentResponse) String() string
GetQuoteAttachmentRequest wrapper for the GetQuoteAttachment operation
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/marketplaceprivateoffer/GetQuoteAttachment.go.html to see an example of how to use GetQuoteAttachmentRequest.
type GetQuoteAttachmentRequest struct {
// Unique offer quote identifier.
OfferQuoteId *string `mandatory:"true" contributesTo:"path" name:"offerQuoteId"`
// Unique offer quote attachment identifier.
QuoteAttachmentId *string `mandatory:"true" contributesTo:"path" name:"quoteAttachmentId"`
// The client request ID for tracing.
OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`
// Metadata about the request. This information will not be transmitted to the service, but
// represents information that the SDK will consume to drive retry behavior.
RequestMetadata common.RequestMetadata
}
func (request GetQuoteAttachmentRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request GetQuoteAttachmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request GetQuoteAttachmentRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request GetQuoteAttachmentRequest) String() string
func (request GetQuoteAttachmentRequest) 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
GetQuoteAttachmentResponse wrapper for the GetQuoteAttachment operation
type GetQuoteAttachmentResponse struct {
// The underlying http response
RawResponse *http.Response
// The QuoteAttachment instance
QuoteAttachment `presentIn:"body"`
// For optimistic concurrency control. See `if-match`.
Etag *string `presentIn:"header" name:"etag"`
// Unique Oracle-assigned identifier for the request. If you need to contact
// Oracle about a particular request, please provide the request ID.
OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
}
func (response GetQuoteAttachmentResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response GetQuoteAttachmentResponse) String() string
IsvInformation The information related to the ISV of an offer quote.
type IsvInformation struct {
PrimaryContact *Contact `mandatory:"false" json:"primaryContact"`
// The additional contacts associated with the ISV.
AdditionalContacts []Contact `mandatory:"false" json:"additionalContacts"`
}
func (m IsvInformation) String() string
func (m IsvInformation) 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
ListAttachmentsRequest wrapper for the ListAttachments operation
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/marketplaceprivateoffer/ListAttachments.go.html to see an example of how to use ListAttachmentsRequest.
type ListAttachmentsRequest struct {
// unique Offer identifier
OfferId *string `mandatory:"true" contributesTo:"path" name:"offerId"`
// The ID of the buyer compartment this offer is associated with.
BuyerCompartmentId *string `mandatory:"false" contributesTo:"query" name:"buyerCompartmentId"`
// The ID of the seller compartment this offer is associated with.
SellerCompartmentId *string `mandatory:"false" contributesTo:"query" name:"sellerCompartmentId"`
// A filter to return only resources their lifecycleState matches the given lifecycleState.
LifecycleState AttachmentLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"`
// A filter to return only resources that match the entire display name given.
DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"`
// unique Offer identifier
Id *string `mandatory:"false" contributesTo:"query" name:"id"`
// The maximum number of items to return.
Limit *int `mandatory:"false" contributesTo:"query" name:"limit"`
// A token representing the position at which to start retrieving results. This must come from the `opc-next-page` header field of a previous response.
Page *string `mandatory:"false" contributesTo:"query" name:"page"`
// The sort order to use, either 'ASC' or 'DESC'.
SortOrder ListAttachmentsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"`
// The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending.
SortBy ListAttachmentsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"`
// The client request ID for tracing.
OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`
// Metadata about the request. This information will not be transmitted to the service, but
// represents information that the SDK will consume to drive retry behavior.
RequestMetadata common.RequestMetadata
}
func (request ListAttachmentsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request ListAttachmentsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request ListAttachmentsRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request ListAttachmentsRequest) String() string
func (request ListAttachmentsRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
ListAttachmentsResponse wrapper for the ListAttachments operation
type ListAttachmentsResponse struct {
// The underlying http response
RawResponse *http.Response
// A list of AttachmentCollection instances
AttachmentCollection `presentIn:"body"`
// Unique Oracle-assigned identifier for the request. If you need to contact
// Oracle about a particular request, please provide the request ID.
OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
// For pagination of a list of items. When paging through a list, if this header appears in the response,
// then a partial list might have been returned. Include this value as the `page` parameter for the
// subsequent GET request to get the next batch of items.
OpcNextPage *string `presentIn:"header" name:"opc-next-page"`
}
func (response ListAttachmentsResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response ListAttachmentsResponse) String() string
ListAttachmentsSortByEnum Enum with underlying type: string
type ListAttachmentsSortByEnum string
Set of constants representing the allowable values for ListAttachmentsSortByEnum
const (
ListAttachmentsSortByTimecreated ListAttachmentsSortByEnum = "timeCreated"
ListAttachmentsSortByDisplayname ListAttachmentsSortByEnum = "displayName"
)
func GetListAttachmentsSortByEnumValues() []ListAttachmentsSortByEnum
GetListAttachmentsSortByEnumValues Enumerates the set of values for ListAttachmentsSortByEnum
func GetMappingListAttachmentsSortByEnum(val string) (ListAttachmentsSortByEnum, bool)
GetMappingListAttachmentsSortByEnum performs case Insensitive comparison on enum value and return the desired enum
ListAttachmentsSortOrderEnum Enum with underlying type: string
type ListAttachmentsSortOrderEnum string
Set of constants representing the allowable values for ListAttachmentsSortOrderEnum
const (
ListAttachmentsSortOrderAsc ListAttachmentsSortOrderEnum = "ASC"
ListAttachmentsSortOrderDesc ListAttachmentsSortOrderEnum = "DESC"
)
func GetListAttachmentsSortOrderEnumValues() []ListAttachmentsSortOrderEnum
GetListAttachmentsSortOrderEnumValues Enumerates the set of values for ListAttachmentsSortOrderEnum
func GetMappingListAttachmentsSortOrderEnum(val string) (ListAttachmentsSortOrderEnum, bool)
GetMappingListAttachmentsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum
ListOfferQuotesRequest wrapper for the ListOfferQuotes operation
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/marketplaceprivateoffer/ListOfferQuotes.go.html to see an example of how to use ListOfferQuotesRequest.
type ListOfferQuotesRequest struct {
// OCID of the reseller's compartment.
ResellerCompartmentId *string `mandatory:"false" contributesTo:"query" name:"resellerCompartmentId"`
// OCID of the ISV's compartment.
IsvCompartmentId *string `mandatory:"false" contributesTo:"query" name:"isvCompartmentId"`
// A filter to return resources whose lifecycle state matches the given lifecycle state.
LifecycleState OfferQuoteLifecycleStateEnum `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 quote 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 ListOfferQuotesSortOrderEnum `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 ListOfferQuotesSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"`
// The client request ID for tracing.
OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`
// Metadata about the request. This information will not be transmitted to the service, but
// represents information that the SDK will consume to drive retry behavior.
RequestMetadata common.RequestMetadata
}
func (request ListOfferQuotesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request ListOfferQuotesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request ListOfferQuotesRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request ListOfferQuotesRequest) String() string
func (request ListOfferQuotesRequest) 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
ListOfferQuotesResponse wrapper for the ListOfferQuotes operation
type ListOfferQuotesResponse struct {
// The underlying http response
RawResponse *http.Response
// A list of OfferQuoteCollection instances
OfferQuoteCollection `presentIn:"body"`
// Unique Oracle-assigned identifier for the request. If you need to contact
// Oracle about a particular request, please provide the request ID.
OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
// For pagination of a list of items. When paging through a list, if this header appears in the response,
// then a partial list might have been returned. Include this value as the `page` parameter for the
// subsequent GET request to get the next batch of items.
OpcNextPage *string `presentIn:"header" name:"opc-next-page"`
}
func (response ListOfferQuotesResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response ListOfferQuotesResponse) String() string
ListOfferQuotesSortByEnum Enum with underlying type: string
type ListOfferQuotesSortByEnum string
Set of constants representing the allowable values for ListOfferQuotesSortByEnum
const (
ListOfferQuotesSortByTimecreated ListOfferQuotesSortByEnum = "timeCreated"
ListOfferQuotesSortByDisplayname ListOfferQuotesSortByEnum = "displayName"
)
func GetListOfferQuotesSortByEnumValues() []ListOfferQuotesSortByEnum
GetListOfferQuotesSortByEnumValues Enumerates the set of values for ListOfferQuotesSortByEnum
func GetMappingListOfferQuotesSortByEnum(val string) (ListOfferQuotesSortByEnum, bool)
GetMappingListOfferQuotesSortByEnum performs case Insensitive comparison on enum value and return the desired enum
ListOfferQuotesSortOrderEnum Enum with underlying type: string
type ListOfferQuotesSortOrderEnum string
Set of constants representing the allowable values for ListOfferQuotesSortOrderEnum
const (
ListOfferQuotesSortOrderAsc ListOfferQuotesSortOrderEnum = "ASC"
ListOfferQuotesSortOrderDesc ListOfferQuotesSortOrderEnum = "DESC"
)
func GetListOfferQuotesSortOrderEnumValues() []ListOfferQuotesSortOrderEnum
GetListOfferQuotesSortOrderEnumValues Enumerates the set of values for ListOfferQuotesSortOrderEnum
func GetMappingListOfferQuotesSortOrderEnum(val string) (ListOfferQuotesSortOrderEnum, bool)
GetMappingListOfferQuotesSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum
ListOffersRequest wrapper for the ListOffers operation
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/marketplaceprivateoffer/ListOffers.go.html to see an example of how to use ListOffersRequest.
type ListOffersRequest struct {
// The ID of the buyer compartment this offer is associated with.
BuyerCompartmentId *string `mandatory:"false" contributesTo:"query" name:"buyerCompartmentId"`
// The ID of the seller compartment this offer is associated with.
SellerCompartmentId *string `mandatory:"false" contributesTo:"query" name:"sellerCompartmentId"`
// A filter to return only resources their lifecycleState matches the given lifecycleState.
LifecycleState OfferLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"`
// A filter to return only resources that match the entire display name given.
DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"`
// unique Offer identifier
Id *string `mandatory:"false" contributesTo:"query" name:"id"`
// The maximum number of items to return.
Limit *int `mandatory:"false" contributesTo:"query" name:"limit"`
// A token representing the position at which to start retrieving results. This must come from the `opc-next-page` header field of a previous response.
Page *string `mandatory:"false" contributesTo:"query" name:"page"`
// The sort order to use, either 'ASC' or 'DESC'.
SortOrder ListOffersSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"`
// The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending.
SortBy ListOffersSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"`
// The client request ID for tracing.
OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`
// Metadata about the request. This information will not be transmitted to the service, but
// represents information that the SDK will consume to drive retry behavior.
RequestMetadata common.RequestMetadata
}
func (request ListOffersRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request ListOffersRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request ListOffersRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request ListOffersRequest) String() string
func (request ListOffersRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
ListOffersResponse wrapper for the ListOffers operation
type ListOffersResponse struct {
// The underlying http response
RawResponse *http.Response
// A list of OfferCollection instances
OfferCollection `presentIn:"body"`
// Unique Oracle-assigned identifier for the request. If you need to contact
// Oracle about a particular request, please provide the request ID.
OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
// For pagination of a list of items. When paging through a list, if this header appears in the response,
// then a partial list might have been returned. Include this value as the `page` parameter for the
// subsequent GET request to get the next batch of items.
OpcNextPage *string `presentIn:"header" name:"opc-next-page"`
}
func (response ListOffersResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response ListOffersResponse) String() string
ListOffersSortByEnum Enum with underlying type: string
type ListOffersSortByEnum string
Set of constants representing the allowable values for ListOffersSortByEnum
const (
ListOffersSortByTimecreated ListOffersSortByEnum = "timeCreated"
ListOffersSortByDisplayname ListOffersSortByEnum = "displayName"
)
func GetListOffersSortByEnumValues() []ListOffersSortByEnum
GetListOffersSortByEnumValues Enumerates the set of values for ListOffersSortByEnum
func GetMappingListOffersSortByEnum(val string) (ListOffersSortByEnum, bool)
GetMappingListOffersSortByEnum performs case Insensitive comparison on enum value and return the desired enum
ListOffersSortOrderEnum Enum with underlying type: string
type ListOffersSortOrderEnum string
Set of constants representing the allowable values for ListOffersSortOrderEnum
const (
ListOffersSortOrderAsc ListOffersSortOrderEnum = "ASC"
ListOffersSortOrderDesc ListOffersSortOrderEnum = "DESC"
)
func GetListOffersSortOrderEnumValues() []ListOffersSortOrderEnum
GetListOffersSortOrderEnumValues Enumerates the set of values for ListOffersSortOrderEnum
func GetMappingListOffersSortOrderEnum(val string) (ListOffersSortOrderEnum, bool)
GetMappingListOffersSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum
ListQuoteAttachmentsRequest wrapper for the ListQuoteAttachments operation
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/marketplaceprivateoffer/ListQuoteAttachments.go.html to see an example of how to use ListQuoteAttachmentsRequest.
type ListQuoteAttachmentsRequest struct {
// Unique offer quote identifier.
OfferQuoteId *string `mandatory:"true" contributesTo:"path" name:"offerQuoteId"`
// OCID of the reseller's compartment.
ResellerCompartmentId *string `mandatory:"false" contributesTo:"query" name:"resellerCompartmentId"`
// OCID of the ISV's compartment.
IsvCompartmentId *string `mandatory:"false" contributesTo:"query" name:"isvCompartmentId"`
// A filter to return only resources their lifecycleState matches the given lifecycleState.
LifecycleState QuoteAttachmentLifecycleStateEnum `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 quote attachment 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 ListQuoteAttachmentsSortOrderEnum `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 ListQuoteAttachmentsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"`
// The client request ID for tracing.
OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`
// Metadata about the request. This information will not be transmitted to the service, but
// represents information that the SDK will consume to drive retry behavior.
RequestMetadata common.RequestMetadata
}
func (request ListQuoteAttachmentsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request ListQuoteAttachmentsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request ListQuoteAttachmentsRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request ListQuoteAttachmentsRequest) String() string
func (request ListQuoteAttachmentsRequest) 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
ListQuoteAttachmentsResponse wrapper for the ListQuoteAttachments operation
type ListQuoteAttachmentsResponse struct {
// The underlying http response
RawResponse *http.Response
// A list of QuoteAttachmentCollection instances
QuoteAttachmentCollection `presentIn:"body"`
// Unique Oracle-assigned identifier for the request. If you need to contact
// Oracle about a particular request, please provide the request ID.
OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
// For pagination of a list of items. When paging through a list, if this header appears in the response,
// then a partial list might have been returned. Include this value as the `page` parameter for the
// subsequent GET request to get the next batch of items.
OpcNextPage *string `presentIn:"header" name:"opc-next-page"`
}
func (response ListQuoteAttachmentsResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response ListQuoteAttachmentsResponse) String() string
ListQuoteAttachmentsSortByEnum Enum with underlying type: string
type ListQuoteAttachmentsSortByEnum string
Set of constants representing the allowable values for ListQuoteAttachmentsSortByEnum
const (
ListQuoteAttachmentsSortByTimecreated ListQuoteAttachmentsSortByEnum = "timeCreated"
ListQuoteAttachmentsSortByDisplayname ListQuoteAttachmentsSortByEnum = "displayName"
)
func GetListQuoteAttachmentsSortByEnumValues() []ListQuoteAttachmentsSortByEnum
GetListQuoteAttachmentsSortByEnumValues Enumerates the set of values for ListQuoteAttachmentsSortByEnum
func GetMappingListQuoteAttachmentsSortByEnum(val string) (ListQuoteAttachmentsSortByEnum, bool)
GetMappingListQuoteAttachmentsSortByEnum performs case Insensitive comparison on enum value and return the desired enum
ListQuoteAttachmentsSortOrderEnum Enum with underlying type: string
type ListQuoteAttachmentsSortOrderEnum string
Set of constants representing the allowable values for ListQuoteAttachmentsSortOrderEnum
const (
ListQuoteAttachmentsSortOrderAsc ListQuoteAttachmentsSortOrderEnum = "ASC"
ListQuoteAttachmentsSortOrderDesc ListQuoteAttachmentsSortOrderEnum = "DESC"
)
func GetListQuoteAttachmentsSortOrderEnumValues() []ListQuoteAttachmentsSortOrderEnum
GetListQuoteAttachmentsSortOrderEnumValues Enumerates the set of values for ListQuoteAttachmentsSortOrderEnum
func GetMappingListQuoteAttachmentsSortOrderEnum(val string) (ListQuoteAttachmentsSortOrderEnum, bool)
GetMappingListQuoteAttachmentsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum
Offer Description of Offer.
type Offer struct {
// Unique identifier that is immutable on creation
Id *string `mandatory:"true" json:"id"`
// Offer Identifier, can be renamed
DisplayName *string `mandatory:"true" json:"displayName"`
// OCID of the seller's tenancy (root compartment).
SellerCompartmentId *string `mandatory:"true" json:"sellerCompartmentId"`
// The time the the Offer was created. An RFC3339 formatted datetime string
TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"`
// The current state of the Offer.
LifecycleState OfferLifecycleStateEnum `mandatory:"true" json:"lifecycleState"`
// Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
// Example: `{"bar-key": "value"}`
FreeformTags map[string]string `mandatory:"true" json:"freeformTags"`
// Defined tags for this resource. Each key is predefined and scoped to a namespace.
// Example: `{"foo-namespace": {"bar-key": "value"}}`
DefinedTags map[string]map[string]interface{} `mandatory:"true" json:"definedTags"`
// OCID of the buyer's tenancy (root compartment).
BuyerCompartmentId *string `mandatory:"false" json:"buyerCompartmentId"`
// The description of the offer
Description *string `mandatory:"false" json:"description"`
// The time the Offer will become active after it has been accepted by the Buyer. An RFC3339 formatted datetime string
TimeStartDate *common.SDKTime `mandatory:"false" json:"timeStartDate"`
// Duration the Offer will be active after its start date. An ISO8601 extended formatted string.
Duration *string `mandatory:"false" json:"duration"`
// The time the Offer was updated. An RFC3339 formatted datetime string
TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"`
// The time the Offer must be accepted by the Buyer before the Offer becomes invalid. An RFC3339 formatted datetime string
TimeAcceptBy *common.SDKTime `mandatory:"false" json:"timeAcceptBy"`
// The time the Offer was accepted by the Buyer of the Offer. An RFC3339 formatted datetime string
TimeAccepted *common.SDKTime `mandatory:"false" json:"timeAccepted"`
// The time the accepted Offer will end. An RFC3339 formatted datetime string
TimeOfferEnd *common.SDKTime `mandatory:"false" json:"timeOfferEnd"`
// A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"`
// A substate for lifeCycleStatus to give a more human readable version of the offer
OfferStatus OfferOfferStatusEnum `mandatory:"false" json:"offerStatus,omitempty"`
PublisherSummary *PublisherSummary `mandatory:"false" json:"publisherSummary"`
Pricing *Pricing `mandatory:"false" json:"pricing"`
BuyerInformation *BuyerInformation `mandatory:"false" json:"buyerInformation"`
SellerInformation *SellerInformation `mandatory:"false" json:"sellerInformation"`
// A list of Resource Bundles associated with an Offer.
ResourceBundles []ResourceBundle `mandatory:"false" json:"resourceBundles"`
// The type of the offer.
OfferType OfferOfferTypeEnum `mandatory:"false" json:"offerType,omitempty"`
// System tags for this resource. Each key is predefined and scoped to a namespace.
// Example: `{"orcl-cloud": {"free-tier-retained": "true"}}`
SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"`
}
func (m Offer) String() string
func (m Offer) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
OfferClient a client for Offer
type OfferClient struct {
common.BaseClient
// contains filtered or unexported fields
}
func NewOfferClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client OfferClient, err error)
NewOfferClientWithConfigurationProvider Creates a new default Offer client with the given configuration provider. the configuration provider will be used for the default signer as well as reading the region
func NewOfferClientWithOboToken(configProvider common.ConfigurationProvider, oboToken string) (client OfferClient, err error)
NewOfferClientWithOboToken Creates a new default Offer client with the given configuration provider. The obotoken will be added to default headers and signed; the configuration provider will be used for the signer
as well as reading the region
func (client *OfferClient) ConfigurationProvider() *common.ConfigurationProvider
ConfigurationProvider the ConfigurationProvider used in this client, or null if none set
func (client OfferClient) CreateOffer(ctx context.Context, request CreateOfferRequest) (response CreateOfferResponse, err error)
CreateOffer Creates a new Offer.
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/marketplaceprivateoffer/CreateOffer.go.html to see an example of how to use CreateOffer API. A default retry strategy applies to this operation CreateOffer()
func (client OfferClient) DeleteOffer(ctx context.Context, request DeleteOfferRequest) (response DeleteOfferResponse, err error)
DeleteOffer Deletes an Offer resource by identifier
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/marketplaceprivateoffer/DeleteOffer.go.html to see an example of how to use DeleteOffer API. A default retry strategy applies to this operation DeleteOffer()
func (client OfferClient) GetOffer(ctx context.Context, request GetOfferRequest) (response GetOfferResponse, err error)
GetOffer Gets an Offer by identifier
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/marketplaceprivateoffer/GetOffer.go.html to see an example of how to use GetOffer API. A default retry strategy applies to this operation GetOffer()
func (client OfferClient) GetOfferInternalDetail(ctx context.Context, request GetOfferInternalDetailRequest) (response GetOfferInternalDetailResponse, err error)
GetOfferInternalDetail Gets an Offer internal details by identifier
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/marketplaceprivateoffer/GetOfferInternalDetail.go.html to see an example of how to use GetOfferInternalDetail API. A default retry strategy applies to this operation GetOfferInternalDetail()
func (client OfferClient) ListOffers(ctx context.Context, request ListOffersRequest) (response ListOffersResponse, err error)
ListOffers Returns a list of Offers. Requires either the BuyerCompartmentId or the SellerCompartmentId params. If neither or both are provided, then the API will return a 400.
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/marketplaceprivateoffer/ListOffers.go.html to see an example of how to use ListOffers API. A default retry strategy applies to this operation ListOffers()
func (client OfferClient) SendOffer(ctx context.Context, request SendOfferRequest) (response SendOfferResponse, err error)
SendOffer Sends an Offer to be reviewed and accepted by the buyer. Validation will be run on the offer first to verify the offer is valid and contains all required fields.
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/marketplaceprivateoffer/SendOffer.go.html to see an example of how to use SendOffer API. A default retry strategy applies to this operation SendOffer()
func (client *OfferClient) SetRegion(region string)
SetRegion overrides the region of this client.
func (client OfferClient) UpdateOffer(ctx context.Context, request UpdateOfferRequest) (response UpdateOfferResponse, err error)
UpdateOffer Updates the Offer
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/marketplaceprivateoffer/UpdateOffer.go.html to see an example of how to use UpdateOffer API. A default retry strategy applies to this operation UpdateOffer()
func (client OfferClient) WithdrawOffer(ctx context.Context, request WithdrawOfferRequest) (response WithdrawOfferResponse, err error)
WithdrawOffer Withdraws an Offer and sends it back into DRAFT state. Offers can only be withdrawn before they are accepted by the buyer.
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/marketplaceprivateoffer/WithdrawOffer.go.html to see an example of how to use WithdrawOffer API. A default retry strategy applies to this operation WithdrawOffer()
OfferCollection Results of a offers search. Contains boh OfferSummary items and other information, such as metadata.
type OfferCollection struct {
// List of offers.
Items []OfferSummary `mandatory:"true" json:"items"`
}
func (m OfferCollection) String() string
func (m OfferCollection) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
OfferInternalDetail the internal details of an offer that are only visible to the seller
type OfferInternalDetail struct {
// A list of key value pairs specified by the seller
CustomFields []CustomField `mandatory:"true" json:"customFields"`
// Internal notes only intended for the Publisher of the Offer
InternalNotes *string `mandatory:"true" json:"internalNotes"`
// A list of associated offer quotes.
OfferQuoteIds []string `mandatory:"false" json:"offerQuoteIds"`
}
func (m OfferInternalDetail) String() string
func (m OfferInternalDetail) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
OfferLifecycleStateEnum Enum with underlying type: string
type OfferLifecycleStateEnum string
Set of constants representing the allowable values for OfferLifecycleStateEnum
const (
OfferLifecycleStateCreating OfferLifecycleStateEnum = "CREATING"
OfferLifecycleStateUpdating OfferLifecycleStateEnum = "UPDATING"
OfferLifecycleStateActive OfferLifecycleStateEnum = "ACTIVE"
OfferLifecycleStateDeleting OfferLifecycleStateEnum = "DELETING"
OfferLifecycleStateDeleted OfferLifecycleStateEnum = "DELETED"
OfferLifecycleStateFailed OfferLifecycleStateEnum = "FAILED"
)
func GetMappingOfferLifecycleStateEnum(val string) (OfferLifecycleStateEnum, bool)
GetMappingOfferLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum
func GetOfferLifecycleStateEnumValues() []OfferLifecycleStateEnum
GetOfferLifecycleStateEnumValues Enumerates the set of values for OfferLifecycleStateEnum
OfferOfferStatusEnum Enum with underlying type: string
type OfferOfferStatusEnum string
Set of constants representing the allowable values for OfferOfferStatusEnum
const (
OfferOfferStatusDraft OfferOfferStatusEnum = "DRAFT"
OfferOfferStatusPendingMarketplace OfferOfferStatusEnum = "PENDING_MARKETPLACE"
OfferOfferStatusPendingBuyer OfferOfferStatusEnum = "PENDING_BUYER"
OfferOfferStatusExpired OfferOfferStatusEnum = "EXPIRED"
OfferOfferStatusAccepted OfferOfferStatusEnum = "ACCEPTED"
OfferOfferStatusActive OfferOfferStatusEnum = "ACTIVE"
OfferOfferStatusEnded OfferOfferStatusEnum = "ENDED"
OfferOfferStatusFailedSend OfferOfferStatusEnum = "FAILED_SEND"
OfferOfferStatusFailedAccept OfferOfferStatusEnum = "FAILED_ACCEPT"
)
func GetMappingOfferOfferStatusEnum(val string) (OfferOfferStatusEnum, bool)
GetMappingOfferOfferStatusEnum performs case Insensitive comparison on enum value and return the desired enum
func GetOfferOfferStatusEnumValues() []OfferOfferStatusEnum
GetOfferOfferStatusEnumValues Enumerates the set of values for OfferOfferStatusEnum
OfferOfferTypeEnum Enum with underlying type: string
type OfferOfferTypeEnum string
Set of constants representing the allowable values for OfferOfferTypeEnum
const (
OfferOfferTypeDirect OfferOfferTypeEnum = "DIRECT"
OfferOfferTypeMultiParty OfferOfferTypeEnum = "MULTI_PARTY"
)
func GetMappingOfferOfferTypeEnum(val string) (OfferOfferTypeEnum, bool)
GetMappingOfferOfferTypeEnum performs case Insensitive comparison on enum value and return the desired enum
func GetOfferOfferTypeEnumValues() []OfferOfferTypeEnum
GetOfferOfferTypeEnumValues Enumerates the set of values for OfferOfferTypeEnum
OfferQuote The model for the offer quote details.
type OfferQuote struct {
// Unique identifier that is immutable on creation.
Id *string `mandatory:"true" json:"id"`
// Offer quote identifier, can be renamed.
DisplayName *string `mandatory:"true" json:"displayName"`
// OCID of the reseller tenancy.
ResellerCompartmentId *string `mandatory:"true" json:"resellerCompartmentId"`
// The time the offer quote was created. An RFC3339 formatted datetime string.
TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"`
// The current state of the offer quote.
LifecycleState OfferQuoteLifecycleStateEnum `mandatory:"true" json:"lifecycleState"`
// OCID of the ISV tenancy.
IsvCompartmentId *string `mandatory:"false" json:"isvCompartmentId"`
// Publisher identifier of the ISV.
IsvPublisherId *string `mandatory:"false" json:"isvPublisherId"`
// Display name of the reseller publisher.
ResellerPublisherDisplayName *string `mandatory:"false" json:"resellerPublisherDisplayName"`
// Display name of the ISV publisher.
IsvPublisherDisplayName *string `mandatory:"false" json:"isvPublisherDisplayName"`
// A list of buyer tenancies.
BuyerCompartmentIds []string `mandatory:"false" json:"buyerCompartmentIds"`
// The description of the offer quote.
Description *string `mandatory:"false" json:"description"`
// The time the offer quote was updated. An RFC3339 formatted datetime string.
TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"`
// Provides detailed information about the current state of the offer quote. For example, if the offer quote is in a failed state this message can include specific validation errors.
LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"`
// The human readable representation of where the offer quote is at in its contract lifecycle.
OfferQuoteStatus OfferQuoteOfferQuoteStatusEnum `mandatory:"false" json:"offerQuoteStatus,omitempty"`
ResellerInformation *ResellerInformation `mandatory:"false" json:"resellerInformation"`
IsvInformation *IsvInformation `mandatory:"false" json:"isvInformation"`
Pricing *Pricing `mandatory:"false" json:"pricing"`
// A list of resource bundles associated with an offer quote.
ResourceBundles []ResourceBundle `mandatory:"false" json:"resourceBundles"`
// The time the offer for the buyer must be accepted by before the offer becomes invalid. An RFC3339 formatted datetime string.
BuyerAcceptanceDeadline *common.SDKTime `mandatory:"false" json:"buyerAcceptanceDeadline"`
// Duration the offer for the buyer will be active after its start date. An ISO8601 extended formatted string.
BuyerOfferDuration *string `mandatory:"false" json:"buyerOfferDuration"`
// Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
// Example: `{"bar-key": "value"}`
FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`
// Defined tags for this resource. Each key is predefined and scoped to a namespace.
// Example: `{"foo-namespace": {"bar-key": "value"}}`
DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`
// System tags for this resource. Each key is predefined and scoped to a namespace.
// Example: `{"orcl-cloud": {"free-tier-retained": "true"}}`
SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"`
}
func (m OfferQuote) String() string
func (m OfferQuote) 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
OfferQuoteClient a client for OfferQuote
type OfferQuoteClient struct {
common.BaseClient
// contains filtered or unexported fields
}
func NewOfferQuoteClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client OfferQuoteClient, err error)
NewOfferQuoteClientWithConfigurationProvider Creates a new default OfferQuote client with the given configuration provider. the configuration provider will be used for the default signer as well as reading the region
func NewOfferQuoteClientWithOboToken(configProvider common.ConfigurationProvider, oboToken string) (client OfferQuoteClient, err error)
NewOfferQuoteClientWithOboToken Creates a new default OfferQuote client with the given configuration provider. The obotoken will be added to default headers and signed; the configuration provider will be used for the signer
as well as reading the region
func (client *OfferQuoteClient) ConfigurationProvider() *common.ConfigurationProvider
ConfigurationProvider the ConfigurationProvider used in this client, or null if none set
func (client OfferQuoteClient) CreateOfferQuote(ctx context.Context, request CreateOfferQuoteRequest) (response CreateOfferQuoteResponse, err error)
CreateOfferQuote Creates a new offer quote.
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/marketplaceprivateoffer/CreateOfferQuote.go.html to see an example of how to use CreateOfferQuote API. A default retry strategy applies to this operation CreateOfferQuote()
func (client OfferQuoteClient) DeleteOfferQuote(ctx context.Context, request DeleteOfferQuoteRequest) (response DeleteOfferQuoteResponse, err error)
DeleteOfferQuote Deletes an offer quote resource by identifier.
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/marketplaceprivateoffer/DeleteOfferQuote.go.html to see an example of how to use DeleteOfferQuote API. A default retry strategy applies to this operation DeleteOfferQuote()
func (client OfferQuoteClient) GetOfferQuote(ctx context.Context, request GetOfferQuoteRequest) (response GetOfferQuoteResponse, err error)
GetOfferQuote Gets an offer quote by identifier.
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/marketplaceprivateoffer/GetOfferQuote.go.html to see an example of how to use GetOfferQuote API. A default retry strategy applies to this operation GetOfferQuote()
func (client OfferQuoteClient) GetOfferQuoteInternalDetail(ctx context.Context, request GetOfferQuoteInternalDetailRequest) (response GetOfferQuoteInternalDetailResponse, err error)
GetOfferQuoteInternalDetail Gets an offer quote internal details by identifier.
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/marketplaceprivateoffer/GetOfferQuoteInternalDetail.go.html to see an example of how to use GetOfferQuoteInternalDetail API. A default retry strategy applies to this operation GetOfferQuoteInternalDetail()
func (client OfferQuoteClient) ListOfferQuotes(ctx context.Context, request ListOfferQuotesRequest) (response ListOfferQuotesResponse, err error)
ListOfferQuotes Returns a list of offer quotes. Requires either a reseller compartment ID or an ISV compartment ID.
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/marketplaceprivateoffer/ListOfferQuotes.go.html to see an example of how to use ListOfferQuotes API. A default retry strategy applies to this operation ListOfferQuotes()
func (client OfferQuoteClient) RespondToOfferQuote(ctx context.Context, request RespondToOfferQuoteRequest) (response RespondToOfferQuoteResponse, err error)
RespondToOfferQuote ISV responds to an offer quote for reseller to review.
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/marketplaceprivateoffer/RespondToOfferQuote.go.html to see an example of how to use RespondToOfferQuote API. A default retry strategy applies to this operation RespondToOfferQuote()
func (client OfferQuoteClient) SendOfferQuote(ctx context.Context, request SendOfferQuoteRequest) (response SendOfferQuoteResponse, err error)
SendOfferQuote Sends an offer quote to be reviewed and updated by the ISV. Validation will be run on the offer quote first to verify it is valid and contains all required fields.
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/marketplaceprivateoffer/SendOfferQuote.go.html to see an example of how to use SendOfferQuote API. A default retry strategy applies to this operation SendOfferQuote()
func (client *OfferQuoteClient) SetRegion(region string)
SetRegion overrides the region of this client.
func (client OfferQuoteClient) UpdateOfferQuote(ctx context.Context, request UpdateOfferQuoteRequest) (response UpdateOfferQuoteResponse, err error)
UpdateOfferQuote Updates the offer quote.
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/marketplaceprivateoffer/UpdateOfferQuote.go.html to see an example of how to use UpdateOfferQuote API. A default retry strategy applies to this operation UpdateOfferQuote()
func (client OfferQuoteClient) WithdrawOfferQuote(ctx context.Context, request WithdrawOfferQuoteRequest) (response WithdrawOfferQuoteResponse, err error)
WithdrawOfferQuote Withdraws an offer quote and transitions to previous state. Offer quotes can only be withdrawn by reseller before the ISV response and withdrawn by the ISV before reseller acceptance.
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/marketplaceprivateoffer/WithdrawOfferQuote.go.html to see an example of how to use WithdrawOfferQuote API. A default retry strategy applies to this operation WithdrawOfferQuote()
OfferQuoteCollection Results of offer quote summaries.
type OfferQuoteCollection struct {
// List of offer quotes.
Items []OfferQuoteSummary `mandatory:"true" json:"items"`
}
func (m OfferQuoteCollection) String() string
func (m OfferQuoteCollection) 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
OfferQuoteInternalDetail The internal details of an offer quote.
type OfferQuoteInternalDetail struct {
// A list of associated offers.
OfferIds []string `mandatory:"false" json:"offerIds"`
}
func (m OfferQuoteInternalDetail) String() string
func (m OfferQuoteInternalDetail) 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
OfferQuoteLifecycleStateEnum Enum with underlying type: string
type OfferQuoteLifecycleStateEnum string
Set of constants representing the allowable values for OfferQuoteLifecycleStateEnum
const (
OfferQuoteLifecycleStateCreating OfferQuoteLifecycleStateEnum = "CREATING"
OfferQuoteLifecycleStateUpdating OfferQuoteLifecycleStateEnum = "UPDATING"
OfferQuoteLifecycleStateActive OfferQuoteLifecycleStateEnum = "ACTIVE"
OfferQuoteLifecycleStateDeleting OfferQuoteLifecycleStateEnum = "DELETING"
OfferQuoteLifecycleStateDeleted OfferQuoteLifecycleStateEnum = "DELETED"
OfferQuoteLifecycleStateFailed OfferQuoteLifecycleStateEnum = "FAILED"
)
func GetMappingOfferQuoteLifecycleStateEnum(val string) (OfferQuoteLifecycleStateEnum, bool)
GetMappingOfferQuoteLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum
func GetOfferQuoteLifecycleStateEnumValues() []OfferQuoteLifecycleStateEnum
GetOfferQuoteLifecycleStateEnumValues Enumerates the set of values for OfferQuoteLifecycleStateEnum
OfferQuoteOfferQuoteStatusEnum Enum with underlying type: string
type OfferQuoteOfferQuoteStatusEnum string
Set of constants representing the allowable values for OfferQuoteOfferQuoteStatusEnum
const (
OfferQuoteOfferQuoteStatusDraft OfferQuoteOfferQuoteStatusEnum = "DRAFT"
OfferQuoteOfferQuoteStatusPendingIsv OfferQuoteOfferQuoteStatusEnum = "PENDING_ISV"
OfferQuoteOfferQuoteStatusPendingIsvUpdate OfferQuoteOfferQuoteStatusEnum = "PENDING_ISV_UPDATE"
OfferQuoteOfferQuoteStatusPendingReseller OfferQuoteOfferQuoteStatusEnum = "PENDING_RESELLER"
OfferQuoteOfferQuoteStatusResellerAccepted OfferQuoteOfferQuoteStatusEnum = "RESELLER_ACCEPTED"
OfferQuoteOfferQuoteStatusBuyerAccepted OfferQuoteOfferQuoteStatusEnum = "BUYER_ACCEPTED"
OfferQuoteOfferQuoteStatusActive OfferQuoteOfferQuoteStatusEnum = "ACTIVE"
OfferQuoteOfferQuoteStatusEnded OfferQuoteOfferQuoteStatusEnum = "ENDED"
OfferQuoteOfferQuoteStatusExpired OfferQuoteOfferQuoteStatusEnum = "EXPIRED"
OfferQuoteOfferQuoteStatusFailedSend OfferQuoteOfferQuoteStatusEnum = "FAILED_SEND"
OfferQuoteOfferQuoteStatusFailedAccept OfferQuoteOfferQuoteStatusEnum = "FAILED_ACCEPT"
OfferQuoteOfferQuoteStatusFailedRespond OfferQuoteOfferQuoteStatusEnum = "FAILED_RESPOND"
)
func GetMappingOfferQuoteOfferQuoteStatusEnum(val string) (OfferQuoteOfferQuoteStatusEnum, bool)
GetMappingOfferQuoteOfferQuoteStatusEnum performs case Insensitive comparison on enum value and return the desired enum
func GetOfferQuoteOfferQuoteStatusEnumValues() []OfferQuoteOfferQuoteStatusEnum
GetOfferQuoteOfferQuoteStatusEnumValues Enumerates the set of values for OfferQuoteOfferQuoteStatusEnum
OfferQuoteSummary Summary of the offer quotes.
type OfferQuoteSummary struct {
// Unique identifier that is immutable on creation.
Id *string `mandatory:"true" json:"id"`
// Offer quote identifier, can be renamed.
DisplayName *string `mandatory:"true" json:"displayName"`
// OCID of the reseller tenancy.
ResellerCompartmentId *string `mandatory:"true" json:"resellerCompartmentId"`
// The time the offer quote was created. An RFC3339 formatted datetime string.
TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"`
// The current state of the offer quote.
LifecycleState OfferQuoteLifecycleStateEnum `mandatory:"true" json:"lifecycleState"`
// OCID of the ISV tenancy.
IsvCompartmentId *string `mandatory:"false" json:"isvCompartmentId"`
// A list of buyer tenancies.
BuyerCompartmentIds []string `mandatory:"false" json:"buyerCompartmentIds"`
// Display name of the reseller publisher.
ResellerPublisherDisplayName *string `mandatory:"false" json:"resellerPublisherDisplayName"`
// Display name of the ISV publisher.
IsvPublisherDisplayName *string `mandatory:"false" json:"isvPublisherDisplayName"`
// The time the offer quote was updated. An RFC3339 formatted datetime string.
TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"`
// Provides detailed information about the current state of the offer quote. For example, if the offer quote is in a failed state this message can include specific validation errors.
LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"`
// The human readable representation of where the offer quote is at in its contract lifecycle.
OfferQuoteStatus OfferQuoteOfferQuoteStatusEnum `mandatory:"false" json:"offerQuoteStatus,omitempty"`
ResellerInformation *ResellerInformation `mandatory:"false" json:"resellerInformation"`
IsvInformation *IsvInformation `mandatory:"false" json:"isvInformation"`
Pricing *Pricing `mandatory:"false" json:"pricing"`
// The time the offer for the buyer must be accepted by before the offer becomes invalid. An RFC3339 formatted datetime string.
BuyerAcceptanceDeadline *common.SDKTime `mandatory:"false" json:"buyerAcceptanceDeadline"`
// Duration the offer for the buyer will be active after its start date. An ISO8601 extended formatted string.
BuyerOfferDuration *string `mandatory:"false" json:"buyerOfferDuration"`
// Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
// Example: `{"bar-key": "value"}`
FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`
// Defined tags for this resource. Each key is predefined and scoped to a namespace.
// Example: `{"foo-namespace": {"bar-key": "value"}}`
DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`
// System tags for this resource. Each key is predefined and scoped to a namespace.
// Example: `{"orcl-cloud": {"free-tier-retained": "true"}}`
SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"`
}
func (m OfferQuoteSummary) String() string
func (m OfferQuoteSummary) 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
OfferSummary Summary of the Offers.
type OfferSummary struct {
// Unique identifier that is immutable on creation
Id *string `mandatory:"true" json:"id"`
// Offer Identifier, can be renamed
DisplayName *string `mandatory:"true" json:"displayName"`
// Ocid of the buyer tenancy.
BuyerCompartmentId *string `mandatory:"true" json:"buyerCompartmentId"`
// Ocid of the seller tenancy.
SellerCompartmentId *string `mandatory:"true" json:"sellerCompartmentId"`
// The time the the Offer was created. An RFC3339 formatted datetime string
TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"`
// The current state of the Offer.
LifecycleState OfferLifecycleStateEnum `mandatory:"true" json:"lifecycleState"`
// Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
// Example: `{"bar-key": "value"}`
FreeformTags map[string]string `mandatory:"true" json:"freeformTags"`
// Defined tags for this resource. Each key is predefined and scoped to a namespace.
// Example: `{"foo-namespace": {"bar-key": "value"}}`
DefinedTags map[string]map[string]interface{} `mandatory:"true" json:"definedTags"`
// The time the Offer was updated. An RFC3339 formatted datetime string
TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"`
// The time the Offer must be accepted by the Buyer before the Offer becomes invalid. An RFC3339 formatted datetime string
TimeAcceptBy *common.SDKTime `mandatory:"false" json:"timeAcceptBy"`
// The time the Offer was accepted by the Buyer of the Offer. An RFC3339 formatted datetime string
TimeAccepted *common.SDKTime `mandatory:"false" json:"timeAccepted"`
// The time the Offer will become active after it has been accepted by the Buyer. An RFC3339 formatted datetime string
TimeStartDate *common.SDKTime `mandatory:"false" json:"timeStartDate"`
// The time the accepted Offer will end. An RFC3339 formatted datetime string
TimeOfferEnd *common.SDKTime `mandatory:"false" json:"timeOfferEnd"`
// A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"`
// The human readable representation of where the offer is at in it's contract lifecycle.
OfferStatus OfferOfferStatusEnum `mandatory:"false" json:"offerStatus,omitempty"`
BuyerInformation *BuyerInformation `mandatory:"false" json:"buyerInformation"`
SellerInformation *SellerInformation `mandatory:"false" json:"sellerInformation"`
Pricing *Pricing `mandatory:"false" json:"pricing"`
// The type of the offer.
OfferType OfferOfferTypeEnum `mandatory:"false" json:"offerType,omitempty"`
// System tags for this resource. Each key is predefined and scoped to a namespace.
// Example: `{"orcl-cloud": {"free-tier-retained": "true"}}`
SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"`
}
func (m OfferSummary) String() string
func (m OfferSummary) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
PackageTypeEnum Enum with underlying type: string
type PackageTypeEnum string
Set of constants representing the allowable values for PackageTypeEnum
const (
PackageTypeContainerImage PackageTypeEnum = "CONTAINER_IMAGE"
PackageTypeHelmChart PackageTypeEnum = "HELM_CHART"
)
func GetMappingPackageTypeEnum(val string) (PackageTypeEnum, bool)
GetMappingPackageTypeEnum performs case Insensitive comparison on enum value and return the desired enum
func GetPackageTypeEnumValues() []PackageTypeEnum
GetPackageTypeEnumValues Enumerates the set of values for PackageTypeEnum
Pricing The pricing information for the offer.
type Pricing struct {
// The currency supported for a given Offer, in the format specified by ISO-4217.
CurrencyType *string `mandatory:"false" json:"currencyType"`
// The total amount an offer costs.
TotalAmount *int64 `mandatory:"false" json:"totalAmount"`
// The frequency at which the customer is billed for the offer.
BillingCycle PricingBillingCycleEnum `mandatory:"false" json:"billingCycle,omitempty"`
}
func (m Pricing) String() string
func (m Pricing) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
PricingBillingCycleEnum Enum with underlying type: string
type PricingBillingCycleEnum string
Set of constants representing the allowable values for PricingBillingCycleEnum
const (
PricingBillingCycleOneTime PricingBillingCycleEnum = "ONE_TIME"
)
func GetMappingPricingBillingCycleEnum(val string) (PricingBillingCycleEnum, bool)
GetMappingPricingBillingCycleEnum performs case Insensitive comparison on enum value and return the desired enum
func GetPricingBillingCycleEnumValues() []PricingBillingCycleEnum
GetPricingBillingCycleEnumValues Enumerates the set of values for PricingBillingCycleEnum
PublisherSummary The model for a publisher.
type PublisherSummary struct {
// Unique OCID identifier for the publisher.
Id *string `mandatory:"true" json:"id"`
// The root compartment of the Publisher.
CompartmentId *string `mandatory:"true" json:"compartmentId"`
// The namespace for the publisher registry to persist artifacts.
RegistryNamespace *string `mandatory:"true" json:"registryNamespace"`
// The name of the publisher.
DisplayName *string `mandatory:"true" json:"displayName"`
// The public email address of the publisher for customers.
ContactEmail *string `mandatory:"true" json:"contactEmail"`
// The phone number of the publisher in E.164 format.
ContactPhone *string `mandatory:"true" json:"contactPhone"`
// publisher type.
PublisherType PublisherSummaryPublisherTypeEnum `mandatory:"true" json:"publisherType"`
// The time the publisher was created. An RFC3339 formatted datetime string.
TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"`
// The time the publisher was updated. An RFC3339 formatted datetime string.
TimeUpdated *common.SDKTime `mandatory:"true" json:"timeUpdated"`
// Unique legacy service identifier for the publisher.
LegacyId *string `mandatory:"false" json:"legacyId"`
// A description of the publisher.
Description *string `mandatory:"false" json:"description"`
// The year the publisher's company or organization was founded.
YearFounded *int64 `mandatory:"false" json:"yearFounded"`
// The publisher's website.
WebsiteUrl *string `mandatory:"false" json:"websiteUrl"`
// The address of the publisher's headquarters.
HqAddress *string `mandatory:"false" json:"hqAddress"`
Logo *UploadData `mandatory:"false" json:"logo"`
// Publisher's Facebook URL
FacebookUrl *string `mandatory:"false" json:"facebookUrl"`
// Publisher's Twitter URL
TwitterUrl *string `mandatory:"false" json:"twitterUrl"`
// Publisher's LinkedIn URL
LinkedinUrl *string `mandatory:"false" json:"linkedinUrl"`
// Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
// Example: `{"bar-key": "value"}`
FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`
// Defined tags for this resource. Each key is predefined and scoped to a namespace.
// Example: `{"foo-namespace": {"bar-key": "value"}}`
DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`
// System tags for this resource. Each key is predefined and scoped to a namespace.
// Example: `{"orcl-cloud": {"free-tier-retained": "true"}}`
SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"`
}
func (m PublisherSummary) String() string
func (m PublisherSummary) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
PublisherSummaryPublisherTypeEnum Enum with underlying type: string
type PublisherSummaryPublisherTypeEnum string
Set of constants representing the allowable values for PublisherSummaryPublisherTypeEnum
const (
PublisherSummaryPublisherTypeInternal PublisherSummaryPublisherTypeEnum = "INTERNAL"
PublisherSummaryPublisherTypeExternal PublisherSummaryPublisherTypeEnum = "EXTERNAL"
)
func GetMappingPublisherSummaryPublisherTypeEnum(val string) (PublisherSummaryPublisherTypeEnum, bool)
GetMappingPublisherSummaryPublisherTypeEnum performs case Insensitive comparison on enum value and return the desired enum
func GetPublisherSummaryPublisherTypeEnumValues() []PublisherSummaryPublisherTypeEnum
GetPublisherSummaryPublisherTypeEnumValues Enumerates the set of values for PublisherSummaryPublisherTypeEnum
QuoteAttachment Description of an offer quote attachment.
type QuoteAttachment struct {
// Unique identifier that is immutable on creation.
Id *string `mandatory:"true" json:"id"`
// Unique identifier of the associated offer quote that is immutable on creation.
OfferQuoteId *string `mandatory:"true" json:"offerQuoteId"`
// OCID of the reseller's tenancy (root compartment).
ResellerCompartmentId *string `mandatory:"true" json:"resellerCompartmentId"`
// OCID of the ISV's tenancy (root compartment).
IsvCompartmentId *string `mandatory:"true" json:"isvCompartmentId"`
// The name used to refer to the uploaded data.
DisplayName *string `mandatory:"true" json:"displayName"`
// The type of offer quote attachment.
Type QuoteAttachmentTypeEnum `mandatory:"true" json:"type"`
// The time the offer quote attachment was created. An RFC3339 formatted datetime string.
TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"`
// The current state of the offer quote attachment.
LifecycleState QuoteAttachmentLifecycleStateEnum `mandatory:"true" json:"lifecycleState"`
// The recipient of the offer quote attachment.
Recipient QuoteAttachmentRecipientEnum `mandatory:"true" json:"recipient"`
// The time the offer quote attachment was updated. An RFC3339 formatted datetime string.
TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"`
// Provides detailed information about the current state of the offer quote attachment. For example, if the offer quote attachment is in a failed state this message can include specific validation errors.
LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"`
// The MIME type of the uploaded data.
MimeType *string `mandatory:"false" json:"mimeType"`
// Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
// Example: `{"bar-key": "value"}`
FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`
// Defined tags for this resource. Each key is predefined and scoped to a namespace.
// Example: `{"foo-namespace": {"bar-key": "value"}}`
DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`
// System tags for this resource. Each key is predefined and scoped to a namespace.
// Example: `{"orcl-cloud": {"free-tier-retained": "true"}}`
SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"`
}
func (m QuoteAttachment) String() string
func (m QuoteAttachment) 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
QuoteAttachmentClient a client for QuoteAttachment
type QuoteAttachmentClient struct {
common.BaseClient
// contains filtered or unexported fields
}
func NewQuoteAttachmentClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client QuoteAttachmentClient, err error)
NewQuoteAttachmentClientWithConfigurationProvider Creates a new default QuoteAttachment client with the given configuration provider. the configuration provider will be used for the default signer as well as reading the region
func NewQuoteAttachmentClientWithOboToken(configProvider common.ConfigurationProvider, oboToken string) (client QuoteAttachmentClient, err error)
NewQuoteAttachmentClientWithOboToken Creates a new default QuoteAttachment client with the given configuration provider. The obotoken will be added to default headers and signed; the configuration provider will be used for the signer
as well as reading the region
func (client *QuoteAttachmentClient) ConfigurationProvider() *common.ConfigurationProvider
ConfigurationProvider the ConfigurationProvider used in this client, or null if none set
func (client QuoteAttachmentClient) CreateQuoteAttachment(ctx context.Context, request CreateQuoteAttachmentRequest) (response CreateQuoteAttachmentResponse, err error)
CreateQuoteAttachment Creates a new offer quote attachment.
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/marketplaceprivateoffer/CreateQuoteAttachment.go.html to see an example of how to use CreateQuoteAttachment API. A default retry strategy applies to this operation CreateQuoteAttachment()
func (client QuoteAttachmentClient) DeleteQuoteAttachment(ctx context.Context, request DeleteQuoteAttachmentRequest) (response DeleteQuoteAttachmentResponse, err error)
DeleteQuoteAttachment Deletes an offer quote attachment resource by identifier.
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/marketplaceprivateoffer/DeleteQuoteAttachment.go.html to see an example of how to use DeleteQuoteAttachment API. A default retry strategy applies to this operation DeleteQuoteAttachment()
func (client QuoteAttachmentClient) GetQuoteAttachment(ctx context.Context, request GetQuoteAttachmentRequest) (response GetQuoteAttachmentResponse, err error)
GetQuoteAttachment Gets an offer quote attachment by identifier.
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/marketplaceprivateoffer/GetQuoteAttachment.go.html to see an example of how to use GetQuoteAttachment API. A default retry strategy applies to this operation GetQuoteAttachment()
func (client QuoteAttachmentClient) GetQuoteAttachmentContent(ctx context.Context, request GetQuoteAttachmentContentRequest) (response GetQuoteAttachmentContentResponse, err error)
GetQuoteAttachmentContent Gets an offer quote attachment content by identifier.
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/marketplaceprivateoffer/GetQuoteAttachmentContent.go.html to see an example of how to use GetQuoteAttachmentContent API. A default retry strategy applies to this operation GetQuoteAttachmentContent()
func (client QuoteAttachmentClient) ListQuoteAttachments(ctx context.Context, request ListQuoteAttachmentsRequest) (response ListQuoteAttachmentsResponse, err error)
ListQuoteAttachments Returns a list of offer quote attachments. Requires either a reseller compartment ID or an ISV compartment ID.
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/marketplaceprivateoffer/ListQuoteAttachments.go.html to see an example of how to use ListQuoteAttachments API. A default retry strategy applies to this operation ListQuoteAttachments()
func (client *QuoteAttachmentClient) SetRegion(region string)
SetRegion overrides the region of this client.
QuoteAttachmentCollection Results of offer quote attachment summaries.
type QuoteAttachmentCollection struct {
// List of offer quote attachments.
Items []QuoteAttachmentSummary `mandatory:"true" json:"items"`
}
func (m QuoteAttachmentCollection) String() string
func (m QuoteAttachmentCollection) 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
QuoteAttachmentLifecycleStateEnum Enum with underlying type: string
type QuoteAttachmentLifecycleStateEnum string
Set of constants representing the allowable values for QuoteAttachmentLifecycleStateEnum
const (
QuoteAttachmentLifecycleStateCreating QuoteAttachmentLifecycleStateEnum = "CREATING"
QuoteAttachmentLifecycleStateUpdating QuoteAttachmentLifecycleStateEnum = "UPDATING"
QuoteAttachmentLifecycleStateActive QuoteAttachmentLifecycleStateEnum = "ACTIVE"
QuoteAttachmentLifecycleStateDeleting QuoteAttachmentLifecycleStateEnum = "DELETING"
QuoteAttachmentLifecycleStateDeleted QuoteAttachmentLifecycleStateEnum = "DELETED"
QuoteAttachmentLifecycleStateFailed QuoteAttachmentLifecycleStateEnum = "FAILED"
)
func GetMappingQuoteAttachmentLifecycleStateEnum(val string) (QuoteAttachmentLifecycleStateEnum, bool)
GetMappingQuoteAttachmentLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum
func GetQuoteAttachmentLifecycleStateEnumValues() []QuoteAttachmentLifecycleStateEnum
GetQuoteAttachmentLifecycleStateEnumValues Enumerates the set of values for QuoteAttachmentLifecycleStateEnum
QuoteAttachmentRecipientEnum Enum with underlying type: string
type QuoteAttachmentRecipientEnum string
Set of constants representing the allowable values for QuoteAttachmentRecipientEnum
const (
QuoteAttachmentRecipientReseller QuoteAttachmentRecipientEnum = "RESELLER"
QuoteAttachmentRecipientBuyer QuoteAttachmentRecipientEnum = "BUYER"
)
func GetMappingQuoteAttachmentRecipientEnum(val string) (QuoteAttachmentRecipientEnum, bool)
GetMappingQuoteAttachmentRecipientEnum performs case Insensitive comparison on enum value and return the desired enum
func GetQuoteAttachmentRecipientEnumValues() []QuoteAttachmentRecipientEnum
GetQuoteAttachmentRecipientEnumValues Enumerates the set of values for QuoteAttachmentRecipientEnum
QuoteAttachmentSummary Summary of offer quote attachment.
type QuoteAttachmentSummary struct {
// Unique identifier that is immutable on creation.
Id *string `mandatory:"true" json:"id"`
// Unique identifier of the associated offer quote that is immutable on creation.
OfferQuoteId *string `mandatory:"true" json:"offerQuoteId"`
// The name used to refer to the uploaded data.
DisplayName *string `mandatory:"true" json:"displayName"`
// The type of offer quote attachment.
Type QuoteAttachmentTypeEnum `mandatory:"true" json:"type"`
// The current state of the offer quote attachment.
LifecycleState QuoteAttachmentLifecycleStateEnum `mandatory:"true" json:"lifecycleState"`
// OCID of the reseller's tenancy (root compartment).
ResellerCompartmentId *string `mandatory:"false" json:"resellerCompartmentId"`
// OCID of the ISV's tenancy (root compartment).
IsvCompartmentId *string `mandatory:"false" json:"isvCompartmentId"`
// The time the offer quote attachment was created. An RFC3339 formatted datetime string.
TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"`
// The time the offer quote attachment was updated. An RFC3339 formatted datetime string.
TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"`
// Provides detailed information about the current state of the offer quote attachment. For example, if the offer quote attachment is in a failed state this message can include specific validation errors.
LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"`
// The MIME type of the uploaded data.
MimeType *string `mandatory:"false" json:"mimeType"`
// The current state of the offer quote attachment.
Recipient QuoteAttachmentRecipientEnum `mandatory:"false" json:"recipient,omitempty"`
// Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
// Example: `{"bar-key": "value"}`
FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`
// Defined tags for this resource. Each key is predefined and scoped to a namespace.
// Example: `{"foo-namespace": {"bar-key": "value"}}`
DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`
// System tags for this resource. Each key is predefined and scoped to a namespace.
// Example: `{"orcl-cloud": {"free-tier-retained": "true"}}`
SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"`
}
func (m QuoteAttachmentSummary) String() string
func (m QuoteAttachmentSummary) 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
QuoteAttachmentTypeEnum Enum with underlying type: string
type QuoteAttachmentTypeEnum string
Set of constants representing the allowable values for QuoteAttachmentTypeEnum
const (
QuoteAttachmentTypeContractTAndC QuoteAttachmentTypeEnum = "CONTRACT_T_AND_C"
QuoteAttachmentTypeQuote QuoteAttachmentTypeEnum = "QUOTE"
QuoteAttachmentTypeEula QuoteAttachmentTypeEnum = "EULA"
QuoteAttachmentTypeTermsOfUse QuoteAttachmentTypeEnum = "TERMS_OF_USE"
QuoteAttachmentTypeMisc QuoteAttachmentTypeEnum = "MISC"
)
func GetMappingQuoteAttachmentTypeEnum(val string) (QuoteAttachmentTypeEnum, bool)
GetMappingQuoteAttachmentTypeEnum performs case Insensitive comparison on enum value and return the desired enum
func GetQuoteAttachmentTypeEnumValues() []QuoteAttachmentTypeEnum
GetQuoteAttachmentTypeEnumValues Enumerates the set of values for QuoteAttachmentTypeEnum
ResellerInformation The information related to the reseller of an offer quote.
type ResellerInformation struct {
PrimaryContact *Contact `mandatory:"false" json:"primaryContact"`
// The additional contacts associated with the reseller.
AdditionalContacts []Contact `mandatory:"false" json:"additionalContacts"`
}
func (m ResellerInformation) String() string
func (m ResellerInformation) 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
ResourceBundle Resource bundle associated with an offer.
type ResourceBundle struct {
// The type of resources in the bundle.
Type ResourceBundleTypeEnum `mandatory:"false" json:"type,omitempty"`
// The quantity of a resources associated with the bundle.
Quantity *int64 `mandatory:"false" json:"quantity"`
// The unit of measurement for the resource bundle.
UnitOfMeasurement ResourceBundleUnitOfMeasurementEnum `mandatory:"false" json:"unitOfMeasurement,omitempty"`
// The IDs of the resources in the offer.
ResourceIds []string `mandatory:"false" json:"resourceIds"`
}
func (m ResourceBundle) String() string
func (m ResourceBundle) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
ResourceBundleTypeEnum Enum with underlying type: string
type ResourceBundleTypeEnum string
Set of constants representing the allowable values for ResourceBundleTypeEnum
const (
ResourceBundleTypeListing ResourceBundleTypeEnum = "LISTING"
)
func GetMappingResourceBundleTypeEnum(val string) (ResourceBundleTypeEnum, bool)
GetMappingResourceBundleTypeEnum performs case Insensitive comparison on enum value and return the desired enum
func GetResourceBundleTypeEnumValues() []ResourceBundleTypeEnum
GetResourceBundleTypeEnumValues Enumerates the set of values for ResourceBundleTypeEnum
ResourceBundleUnitOfMeasurementEnum Enum with underlying type: string
type ResourceBundleUnitOfMeasurementEnum string
Set of constants representing the allowable values for ResourceBundleUnitOfMeasurementEnum
const (
ResourceBundleUnitOfMeasurementOcpuPerHour ResourceBundleUnitOfMeasurementEnum = "OCPU_PER_HOUR"
ResourceBundleUnitOfMeasurementInstancePerHour ResourceBundleUnitOfMeasurementEnum = "INSTANCE_PER_HOUR"
ResourceBundleUnitOfMeasurementCredits ResourceBundleUnitOfMeasurementEnum = "CREDITS"
ResourceBundleUnitOfMeasurementInstances ResourceBundleUnitOfMeasurementEnum = "INSTANCES"
ResourceBundleUnitOfMeasurementNodes ResourceBundleUnitOfMeasurementEnum = "NODES"
)
func GetMappingResourceBundleUnitOfMeasurementEnum(val string) (ResourceBundleUnitOfMeasurementEnum, bool)
GetMappingResourceBundleUnitOfMeasurementEnum performs case Insensitive comparison on enum value and return the desired enum
func GetResourceBundleUnitOfMeasurementEnumValues() []ResourceBundleUnitOfMeasurementEnum
GetResourceBundleUnitOfMeasurementEnumValues Enumerates the set of values for ResourceBundleUnitOfMeasurementEnum
RespondToOfferQuoteDetails Details for the offer quote ISV response.
type RespondToOfferQuoteDetails struct {
Pricing *Pricing `mandatory:"true" json:"pricing"`
}
func (m RespondToOfferQuoteDetails) String() string
func (m RespondToOfferQuoteDetails) 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
RespondToOfferQuoteRequest wrapper for the RespondToOfferQuote operation
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/marketplaceprivateoffer/RespondToOfferQuote.go.html to see an example of how to use RespondToOfferQuoteRequest.
type RespondToOfferQuoteRequest struct {
// Unique offer quote identifier.
OfferQuoteId *string `mandatory:"true" contributesTo:"path" name:"offerQuoteId"`
// Details for the offer quote ISV response.
RespondToOfferQuoteDetails `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"`
// 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"`
// Metadata about the request. This information will not be transmitted to the service, but
// represents information that the SDK will consume to drive retry behavior.
RequestMetadata common.RequestMetadata
}
func (request RespondToOfferQuoteRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request RespondToOfferQuoteRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request RespondToOfferQuoteRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request RespondToOfferQuoteRequest) String() string
func (request RespondToOfferQuoteRequest) 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
RespondToOfferQuoteResponse wrapper for the RespondToOfferQuote operation
type RespondToOfferQuoteResponse struct {
// The underlying http response
RawResponse *http.Response
// Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status.
OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"`
// Unique Oracle-assigned identifier for the request. If you need to contact
// Oracle about a particular request, please provide the request ID.
OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
}
func (response RespondToOfferQuoteResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response RespondToOfferQuoteResponse) String() string
SellerInformation The information related to the seller of an Offer
type SellerInformation struct {
PrimaryContact *Contact `mandatory:"false" json:"primaryContact"`
// the additional contacts associated with the seller
AdditionalContacts []Contact `mandatory:"false" json:"additionalContacts"`
}
func (m SellerInformation) String() string
func (m SellerInformation) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
SendOfferQuoteRequest wrapper for the SendOfferQuote operation
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/marketplaceprivateoffer/SendOfferQuote.go.html to see an example of how to use SendOfferQuoteRequest.
type SendOfferQuoteRequest struct {
// Unique offer quote identifier.
OfferQuoteId *string `mandatory:"true" contributesTo:"path" name:"offerQuoteId"`
// 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"`
// 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"`
// Metadata about the request. This information will not be transmitted to the service, but
// represents information that the SDK will consume to drive retry behavior.
RequestMetadata common.RequestMetadata
}
func (request SendOfferQuoteRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request SendOfferQuoteRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request SendOfferQuoteRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request SendOfferQuoteRequest) String() string
func (request SendOfferQuoteRequest) 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
SendOfferQuoteResponse wrapper for the SendOfferQuote operation
type SendOfferQuoteResponse struct {
// The underlying http response
RawResponse *http.Response
// Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status.
OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"`
// Unique Oracle-assigned identifier for the request. If you need to contact
// Oracle about a particular request, please provide the request ID.
OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
}
func (response SendOfferQuoteResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response SendOfferQuoteResponse) String() string
SendOfferRequest wrapper for the SendOffer operation
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/marketplaceprivateoffer/SendOffer.go.html to see an example of how to use SendOfferRequest.
type SendOfferRequest struct {
// unique Offer identifier
OfferId *string `mandatory:"true" contributesTo:"path" name:"offerId"`
// For optimistic concurrency control. In the PUT or DELETE call
// for a resource, set the `if-match` parameter to the value of the
// etag from a previous GET or POST response for that resource.
// The resource will be updated or deleted only if the etag you
// provide matches the resource's current etag value.
IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"`
// The client request ID for tracing.
OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`
// Metadata about the request. This information will not be transmitted to the service, but
// represents information that the SDK will consume to drive retry behavior.
RequestMetadata common.RequestMetadata
}
func (request SendOfferRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request SendOfferRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request SendOfferRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request SendOfferRequest) String() string
func (request SendOfferRequest) 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
SendOfferResponse wrapper for the SendOffer operation
type SendOfferResponse struct {
// The underlying http response
RawResponse *http.Response
// Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status.
OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"`
// Unique Oracle-assigned identifier for the request. If you need to contact
// Oracle about a particular request, please provide the request ID.
OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
}
func (response SendOfferResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response SendOfferResponse) String() string
SortOrderEnum Enum with underlying type: string
type SortOrderEnum string
Set of constants representing the allowable values for SortOrderEnum
const (
SortOrderAsc SortOrderEnum = "ASC"
SortOrderDesc SortOrderEnum = "DESC"
)
func GetMappingSortOrderEnum(val string) (SortOrderEnum, bool)
GetMappingSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum
func GetSortOrderEnumValues() []SortOrderEnum
GetSortOrderEnumValues Enumerates the set of values for SortOrderEnum
UpdateOfferDetails The information to be updated.
type UpdateOfferDetails struct {
// Offers Identifier
DisplayName *string `mandatory:"false" json:"displayName"`
// OCID of the buyer's tenancy (root compartment).
BuyerCompartmentId *string `mandatory:"false" json:"buyerCompartmentId"`
// Description of the Offer
Description *string `mandatory:"false" json:"description"`
// Internal notes of the Offer
InternalNotes *string `mandatory:"false" json:"internalNotes"`
// The time the Offer will become active after it has been accepted by the Buyer. An RFC3339 formatted datetime string
TimeStartDate *common.SDKTime `mandatory:"false" json:"timeStartDate"`
// Duration the Offer will be active after its start date. An ISO8601 extended formatted string.
Duration *string `mandatory:"false" json:"duration"`
// The time the Offer must be accepted by the Buyer before the Offer becomes invalid. An RFC3339 formatted datetime string
TimeAcceptBy *common.SDKTime `mandatory:"false" json:"timeAcceptBy"`
Pricing *Pricing `mandatory:"false" json:"pricing"`
BuyerInformation *BuyerInformation `mandatory:"false" json:"buyerInformation"`
SellerInformation *SellerInformation `mandatory:"false" json:"sellerInformation"`
// A list of Resource Bundles associated with an Offer.
ResourceBundles []ResourceBundle `mandatory:"false" json:"resourceBundles"`
// A list of key value pairs specified by the seller
CustomFields []CustomField `mandatory:"false" json:"customFields"`
// Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
// Example: `{"bar-key": "value"}`
FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`
// Defined tags for this resource. Each key is predefined and scoped to a namespace.
// Example: `{"foo-namespace": {"bar-key": "value"}}`
DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`
}
func (m UpdateOfferDetails) String() string
func (m UpdateOfferDetails) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
UpdateOfferQuoteDetails The information to be updated.
type UpdateOfferQuoteDetails struct {
// Offer quotes identifier.
DisplayName *string `mandatory:"false" json:"displayName"`
// Compartment identifier of the ISV.
IsvCompartmentId *string `mandatory:"false" json:"isvCompartmentId"`
// Publisher identifier of the ISV.
IsvPublisherId *string `mandatory:"false" json:"isvPublisherId"`
// Description of the offer quote.
Description *string `mandatory:"false" json:"description"`
// A list of buyer tenancies.
BuyerCompartmentIds []string `mandatory:"false" json:"buyerCompartmentIds"`
ResellerInformation *ResellerInformation `mandatory:"false" json:"resellerInformation"`
IsvInformation *IsvInformation `mandatory:"false" json:"isvInformation"`
// A list of resource bundles associated with an offer.
ResourceBundles []ResourceBundle `mandatory:"false" json:"resourceBundles"`
// The time the offer for the buyer must be accepted by before the offer becomes invalid. An RFC3339 formatted datetime string.
BuyerAcceptanceDeadline *common.SDKTime `mandatory:"false" json:"buyerAcceptanceDeadline"`
// Duration the offer for the buyer will be active after its start date. An ISO8601 extended formatted string.
BuyerOfferDuration *string `mandatory:"false" json:"buyerOfferDuration"`
// Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
// Example: `{"bar-key": "value"}`
FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`
// Defined tags for this resource. Each key is predefined and scoped to a namespace.
// Example: `{"foo-namespace": {"bar-key": "value"}}`
DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`
}
func (m UpdateOfferQuoteDetails) String() string
func (m UpdateOfferQuoteDetails) 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
UpdateOfferQuoteRequest wrapper for the UpdateOfferQuote operation
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/marketplaceprivateoffer/UpdateOfferQuote.go.html to see an example of how to use UpdateOfferQuoteRequest.
type UpdateOfferQuoteRequest struct {
// Unique offer quote identifier.
OfferQuoteId *string `mandatory:"true" contributesTo:"path" name:"offerQuoteId"`
// The information to be updated.
UpdateOfferQuoteDetails `contributesTo:"body"`
// For optimistic concurrency control. In the PUT or DELETE call
// for a resource, set the `if-match` parameter to the value of the
// etag from a previous GET or POST response for that resource.
// The resource will be updated or deleted only if the etag you
// provide matches the resource's current etag value.
IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"`
// The client request ID for tracing.
OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`
// Metadata about the request. This information will not be transmitted to the service, but
// represents information that the SDK will consume to drive retry behavior.
RequestMetadata common.RequestMetadata
}
func (request UpdateOfferQuoteRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request UpdateOfferQuoteRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request UpdateOfferQuoteRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request UpdateOfferQuoteRequest) String() string
func (request UpdateOfferQuoteRequest) 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
UpdateOfferQuoteResponse wrapper for the UpdateOfferQuote operation
type UpdateOfferQuoteResponse struct {
// The underlying http response
RawResponse *http.Response
// The OfferQuote instance
OfferQuote `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"`
// 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"`
}
func (response UpdateOfferQuoteResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response UpdateOfferQuoteResponse) String() string
UpdateOfferRequest wrapper for the UpdateOffer operation
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/marketplaceprivateoffer/UpdateOffer.go.html to see an example of how to use UpdateOfferRequest.
type UpdateOfferRequest struct {
// unique Offer identifier
OfferId *string `mandatory:"true" contributesTo:"path" name:"offerId"`
// The information to be updated.
UpdateOfferDetails `contributesTo:"body"`
// For optimistic concurrency control. In the PUT or DELETE call
// for a resource, set the `if-match` parameter to the value of the
// etag from a previous GET or POST response for that resource.
// The resource will be updated or deleted only if the etag you
// provide matches the resource's current etag value.
IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"`
// The client request ID for tracing.
OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`
// Metadata about the request. This information will not be transmitted to the service, but
// represents information that the SDK will consume to drive retry behavior.
RequestMetadata common.RequestMetadata
}
func (request UpdateOfferRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request UpdateOfferRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request UpdateOfferRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request UpdateOfferRequest) String() string
func (request UpdateOfferRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
UpdateOfferResponse wrapper for the UpdateOffer operation
type UpdateOfferResponse struct {
// The underlying http response
RawResponse *http.Response
// The Offer instance
Offer `presentIn:"body"`
// For optimistic concurrency control. See `if-match`.
Etag *string `presentIn:"header" name:"etag"`
// Unique Oracle-assigned identifier for the request. If you need to contact
// Oracle about a particular request, please provide the request ID.
OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
}
func (response UpdateOfferResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response UpdateOfferResponse) String() string
UploadData The model for upload data for images and icons.
type UploadData struct {
// The name used to refer to the upload data.
Name *string `mandatory:"false" json:"name"`
// The content URL of the upload data.
ContentUrl *string `mandatory:"false" json:"contentUrl"`
// The MIME type of the upload data.
MimeType *string `mandatory:"false" json:"mimeType"`
}
func (m UploadData) String() string
func (m UploadData) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
WithdrawOfferQuoteRequest wrapper for the WithdrawOfferQuote operation
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/marketplaceprivateoffer/WithdrawOfferQuote.go.html to see an example of how to use WithdrawOfferQuoteRequest.
type WithdrawOfferQuoteRequest struct {
// Unique offer quote identifier.
OfferQuoteId *string `mandatory:"true" contributesTo:"path" name:"offerQuoteId"`
// OCID of the reseller's compartment.
ResellerCompartmentId *string `mandatory:"false" contributesTo:"query" name:"resellerCompartmentId"`
// OCID of the ISV's compartment.
IsvCompartmentId *string `mandatory:"false" contributesTo:"query" name:"isvCompartmentId"`
// 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"`
// 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"`
// Metadata about the request. This information will not be transmitted to the service, but
// represents information that the SDK will consume to drive retry behavior.
RequestMetadata common.RequestMetadata
}
func (request WithdrawOfferQuoteRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request WithdrawOfferQuoteRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request WithdrawOfferQuoteRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request WithdrawOfferQuoteRequest) String() string
func (request WithdrawOfferQuoteRequest) 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
WithdrawOfferQuoteResponse wrapper for the WithdrawOfferQuote operation
type WithdrawOfferQuoteResponse struct {
// The underlying http response
RawResponse *http.Response
// Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status.
OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"`
// Unique Oracle-assigned identifier for the request. If you need to contact
// Oracle about a particular request, please provide the request ID.
OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
}
func (response WithdrawOfferQuoteResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response WithdrawOfferQuoteResponse) String() string
WithdrawOfferRequest wrapper for the WithdrawOffer operation
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/marketplaceprivateoffer/WithdrawOffer.go.html to see an example of how to use WithdrawOfferRequest.
type WithdrawOfferRequest struct {
// unique Offer identifier
OfferId *string `mandatory:"true" contributesTo:"path" name:"offerId"`
// For optimistic concurrency control. In the PUT or DELETE call
// for a resource, set the `if-match` parameter to the value of the
// etag from a previous GET or POST response for that resource.
// The resource will be updated or deleted only if the etag you
// provide matches the resource's current etag value.
IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"`
// The client request ID for tracing.
OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`
// Metadata about the request. This information will not be transmitted to the service, but
// represents information that the SDK will consume to drive retry behavior.
RequestMetadata common.RequestMetadata
}
func (request WithdrawOfferRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request WithdrawOfferRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request WithdrawOfferRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request WithdrawOfferRequest) String() string
func (request WithdrawOfferRequest) 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
WithdrawOfferResponse wrapper for the WithdrawOffer operation
type WithdrawOfferResponse struct {
// The underlying http response
RawResponse *http.Response
// Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status.
OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"`
// Unique Oracle-assigned identifier for the request. If you need to contact
// Oracle about a particular request, please provide the request ID.
OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
}
func (response WithdrawOfferResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response WithdrawOfferResponse) String() string