...
▽

Package ociproductcatalog

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

Overview ▾

Index ▾

func GetAdminProductLifecycleStateEnumStringValues() []string
func GetAdminProductSummaryLifecycleStateEnumStringValues() []string
func GetCreateProductDetailsBackfillEligibilityEnumStringValues() []string
func GetProductLifecycleStateEnumStringValues() []string
func GetProductSummaryLifecycleStateEnumStringValues() []string
func GetUpdateProductDetailsStateEnumStringValues() []string
type ActivateProductRequest
    func (request ActivateProductRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request ActivateProductRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request ActivateProductRequest) RetryPolicy() *common.RetryPolicy
    func (request ActivateProductRequest) String() string
    func (request ActivateProductRequest) ValidateEnumValue() (bool, error)
type ActivateProductResponse
    func (response ActivateProductResponse) HTTPResponse() *http.Response
    func (response ActivateProductResponse) String() string
type AdminProduct
    func (m AdminProduct) String() string
    func (m AdminProduct) ValidateEnumValue() (bool, error)
type AdminProductLifecycleStateEnum
    func GetAdminProductLifecycleStateEnumValues() []AdminProductLifecycleStateEnum
    func GetMappingAdminProductLifecycleStateEnum(val string) (AdminProductLifecycleStateEnum, bool)
type AdminProductSummary
    func (m AdminProductSummary) String() string
    func (m AdminProductSummary) ValidateEnumValue() (bool, error)
type AdminProductSummaryLifecycleStateEnum
    func GetAdminProductSummaryLifecycleStateEnumValues() []AdminProductSummaryLifecycleStateEnum
    func GetMappingAdminProductSummaryLifecycleStateEnum(val string) (AdminProductSummaryLifecycleStateEnum, bool)
type ChangeAdminProductCompartmentRequest
    func (request ChangeAdminProductCompartmentRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request ChangeAdminProductCompartmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request ChangeAdminProductCompartmentRequest) RetryPolicy() *common.RetryPolicy
    func (request ChangeAdminProductCompartmentRequest) String() string
    func (request ChangeAdminProductCompartmentRequest) ValidateEnumValue() (bool, error)
type ChangeAdminProductCompartmentResponse
    func (response ChangeAdminProductCompartmentResponse) HTTPResponse() *http.Response
    func (response ChangeAdminProductCompartmentResponse) String() string
type ChangeInternalProductCompartmentRequest
    func (request ChangeInternalProductCompartmentRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request ChangeInternalProductCompartmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request ChangeInternalProductCompartmentRequest) RetryPolicy() *common.RetryPolicy
    func (request ChangeInternalProductCompartmentRequest) String() string
    func (request ChangeInternalProductCompartmentRequest) ValidateEnumValue() (bool, error)
type ChangeInternalProductCompartmentResponse
    func (response ChangeInternalProductCompartmentResponse) HTTPResponse() *http.Response
    func (response ChangeInternalProductCompartmentResponse) String() string
type ChangeProductCompartmentDetails
    func (m ChangeProductCompartmentDetails) String() string
    func (m ChangeProductCompartmentDetails) ValidateEnumValue() (bool, error)
type CreateAdminProductRequest
    func (request CreateAdminProductRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request CreateAdminProductRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request CreateAdminProductRequest) RetryPolicy() *common.RetryPolicy
    func (request CreateAdminProductRequest) String() string
    func (request CreateAdminProductRequest) ValidateEnumValue() (bool, error)
type CreateAdminProductResponse
    func (response CreateAdminProductResponse) HTTPResponse() *http.Response
    func (response CreateAdminProductResponse) String() string
type CreateInternalProductRequest
    func (request CreateInternalProductRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request CreateInternalProductRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request CreateInternalProductRequest) RetryPolicy() *common.RetryPolicy
    func (request CreateInternalProductRequest) String() string
    func (request CreateInternalProductRequest) ValidateEnumValue() (bool, error)
type CreateInternalProductResponse
    func (response CreateInternalProductResponse) HTTPResponse() *http.Response
    func (response CreateInternalProductResponse) String() string
type CreateProductDetails
    func (m CreateProductDetails) String() string
    func (m CreateProductDetails) ValidateEnumValue() (bool, error)
type CreateProductDetailsBackfillEligibilityEnum
    func GetCreateProductDetailsBackfillEligibilityEnumValues() []CreateProductDetailsBackfillEligibilityEnum
    func GetMappingCreateProductDetailsBackfillEligibilityEnum(val string) (CreateProductDetailsBackfillEligibilityEnum, bool)
type DeleteAdminProductRequest
    func (request DeleteAdminProductRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request DeleteAdminProductRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request DeleteAdminProductRequest) RetryPolicy() *common.RetryPolicy
    func (request DeleteAdminProductRequest) String() string
    func (request DeleteAdminProductRequest) ValidateEnumValue() (bool, error)
type DeleteAdminProductResponse
    func (response DeleteAdminProductResponse) HTTPResponse() *http.Response
    func (response DeleteAdminProductResponse) String() string
type DeleteInternalProductRequest
    func (request DeleteInternalProductRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request DeleteInternalProductRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request DeleteInternalProductRequest) RetryPolicy() *common.RetryPolicy
    func (request DeleteInternalProductRequest) String() string
    func (request DeleteInternalProductRequest) ValidateEnumValue() (bool, error)
type DeleteInternalProductResponse
    func (response DeleteInternalProductResponse) HTTPResponse() *http.Response
    func (response DeleteInternalProductResponse) String() string
type GetAdminProductRequest
    func (request GetAdminProductRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request GetAdminProductRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request GetAdminProductRequest) RetryPolicy() *common.RetryPolicy
    func (request GetAdminProductRequest) String() string
    func (request GetAdminProductRequest) ValidateEnumValue() (bool, error)
type GetAdminProductResponse
    func (response GetAdminProductResponse) HTTPResponse() *http.Response
    func (response GetAdminProductResponse) String() string
type GetInternalProductRequest
    func (request GetInternalProductRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request GetInternalProductRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request GetInternalProductRequest) RetryPolicy() *common.RetryPolicy
    func (request GetInternalProductRequest) String() string
    func (request GetInternalProductRequest) ValidateEnumValue() (bool, error)
type GetInternalProductResponse
    func (response GetInternalProductResponse) HTTPResponse() *http.Response
    func (response GetInternalProductResponse) String() string
type GetProductRequest
    func (request GetProductRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request GetProductRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request GetProductRequest) RetryPolicy() *common.RetryPolicy
    func (request GetProductRequest) String() string
    func (request GetProductRequest) ValidateEnumValue() (bool, error)
type GetProductResponse
    func (response GetProductResponse) HTTPResponse() *http.Response
    func (response GetProductResponse) String() string
type Limit
    func (m Limit) String() string
    func (m Limit) ValidateEnumValue() (bool, error)
type ListAdminProductsRequest
    func (request ListAdminProductsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request ListAdminProductsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request ListAdminProductsRequest) RetryPolicy() *common.RetryPolicy
    func (request ListAdminProductsRequest) String() string
    func (request ListAdminProductsRequest) ValidateEnumValue() (bool, error)
type ListAdminProductsResponse
    func (response ListAdminProductsResponse) HTTPResponse() *http.Response
    func (response ListAdminProductsResponse) String() string
type ListInternalProductsRequest
    func (request ListInternalProductsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request ListInternalProductsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request ListInternalProductsRequest) RetryPolicy() *common.RetryPolicy
    func (request ListInternalProductsRequest) String() string
    func (request ListInternalProductsRequest) ValidateEnumValue() (bool, error)
type ListInternalProductsResponse
    func (response ListInternalProductsResponse) HTTPResponse() *http.Response
    func (response ListInternalProductsResponse) String() string
type ListProductsRequest
    func (request ListProductsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request ListProductsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request ListProductsRequest) RetryPolicy() *common.RetryPolicy
    func (request ListProductsRequest) String() string
    func (request ListProductsRequest) ValidateEnumValue() (bool, error)
type ListProductsResponse
    func (response ListProductsResponse) HTTPResponse() *http.Response
    func (response ListProductsResponse) String() string
type Meter
    func (m Meter) String() string
    func (m Meter) ValidateEnumValue() (bool, error)
type MeterWithSku
    func (m MeterWithSku) String() string
    func (m MeterWithSku) ValidateEnumValue() (bool, error)
type Product
    func (m Product) String() string
    func (m Product) ValidateEnumValue() (bool, error)
type ProductAdminClient
    func NewProductAdminClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client ProductAdminClient, err error)
    func NewProductAdminClientWithOboToken(configProvider common.ConfigurationProvider, oboToken string) (client ProductAdminClient, err error)
    func (client ProductAdminClient) ChangeAdminProductCompartment(ctx context.Context, request ChangeAdminProductCompartmentRequest) (response ChangeAdminProductCompartmentResponse, err error)
    func (client *ProductAdminClient) ConfigurationProvider() *common.ConfigurationProvider
    func (client ProductAdminClient) CreateAdminProduct(ctx context.Context, request CreateAdminProductRequest) (response CreateAdminProductResponse, err error)
    func (client ProductAdminClient) DeleteAdminProduct(ctx context.Context, request DeleteAdminProductRequest) (response DeleteAdminProductResponse, err error)
    func (client ProductAdminClient) GetAdminProduct(ctx context.Context, request GetAdminProductRequest) (response GetAdminProductResponse, err error)
    func (client ProductAdminClient) ListAdminProducts(ctx context.Context, request ListAdminProductsRequest) (response ListAdminProductsResponse, err error)
    func (client *ProductAdminClient) SetRegion(region string)
    func (client ProductAdminClient) UpdateAdminProduct(ctx context.Context, request UpdateAdminProductRequest) (response UpdateAdminProductResponse, err error)
type ProductClient
    func NewProductClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client ProductClient, err error)
    func NewProductClientWithOboToken(configProvider common.ConfigurationProvider, oboToken string) (client ProductClient, err error)
    func (client ProductClient) ActivateProduct(ctx context.Context, request ActivateProductRequest) (response ActivateProductResponse, err error)
    func (client *ProductClient) ConfigurationProvider() *common.ConfigurationProvider
    func (client ProductClient) GetProduct(ctx context.Context, request GetProductRequest) (response GetProductResponse, err error)
    func (client ProductClient) ListProducts(ctx context.Context, request ListProductsRequest) (response ListProductsResponse, err error)
    func (client *ProductClient) SetRegion(region string)
type ProductCollection
    func (m ProductCollection) String() string
    func (m ProductCollection) ValidateEnumValue() (bool, error)
type ProductInternalClient
    func NewProductInternalClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client ProductInternalClient, err error)
    func NewProductInternalClientWithOboToken(configProvider common.ConfigurationProvider, oboToken string) (client ProductInternalClient, err error)
    func (client ProductInternalClient) ChangeInternalProductCompartment(ctx context.Context, request ChangeInternalProductCompartmentRequest) (response ChangeInternalProductCompartmentResponse, err error)
    func (client *ProductInternalClient) ConfigurationProvider() *common.ConfigurationProvider
    func (client ProductInternalClient) CreateInternalProduct(ctx context.Context, request CreateInternalProductRequest) (response CreateInternalProductResponse, err error)
    func (client ProductInternalClient) DeleteInternalProduct(ctx context.Context, request DeleteInternalProductRequest) (response DeleteInternalProductResponse, err error)
    func (client ProductInternalClient) GetInternalProduct(ctx context.Context, request GetInternalProductRequest) (response GetInternalProductResponse, err error)
    func (client ProductInternalClient) ListInternalProducts(ctx context.Context, request ListInternalProductsRequest) (response ListInternalProductsResponse, err error)
    func (client *ProductInternalClient) SetRegion(region string)
    func (client ProductInternalClient) UpdateInternalProduct(ctx context.Context, request UpdateInternalProductRequest) (response UpdateInternalProductResponse, err error)
type ProductLifecycleStateEnum
    func GetMappingProductLifecycleStateEnum(val string) (ProductLifecycleStateEnum, bool)
    func GetProductLifecycleStateEnumValues() []ProductLifecycleStateEnum
type ProductSummary
    func (m ProductSummary) String() string
    func (m ProductSummary) ValidateEnumValue() (bool, error)
type ProductSummaryLifecycleStateEnum
    func GetMappingProductSummaryLifecycleStateEnum(val string) (ProductSummaryLifecycleStateEnum, bool)
    func GetProductSummaryLifecycleStateEnumValues() []ProductSummaryLifecycleStateEnum
type SkuSummary
    func (m SkuSummary) String() string
    func (m SkuSummary) ValidateEnumValue() (bool, error)
type UpdateAdminProductRequest
    func (request UpdateAdminProductRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request UpdateAdminProductRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request UpdateAdminProductRequest) RetryPolicy() *common.RetryPolicy
    func (request UpdateAdminProductRequest) String() string
    func (request UpdateAdminProductRequest) ValidateEnumValue() (bool, error)
type UpdateAdminProductResponse
    func (response UpdateAdminProductResponse) HTTPResponse() *http.Response
    func (response UpdateAdminProductResponse) String() string
type UpdateInternalProductRequest
    func (request UpdateInternalProductRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request UpdateInternalProductRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request UpdateInternalProductRequest) RetryPolicy() *common.RetryPolicy
    func (request UpdateInternalProductRequest) String() string
    func (request UpdateInternalProductRequest) ValidateEnumValue() (bool, error)
type UpdateInternalProductResponse
    func (response UpdateInternalProductResponse) HTTPResponse() *http.Response
    func (response UpdateInternalProductResponse) String() string
type UpdateProductDetails
    func (m UpdateProductDetails) String() string
    func (m UpdateProductDetails) ValidateEnumValue() (bool, error)
type UpdateProductDetailsStateEnum
    func GetMappingUpdateProductDetailsStateEnum(val string) (UpdateProductDetailsStateEnum, bool)
    func GetUpdateProductDetailsStateEnumValues() []UpdateProductDetailsStateEnum

Package files

activate_product_request_response.go admin_product.go admin_product_summary.go change_admin_product_compartment_request_response.go change_internal_product_compartment_request_response.go change_product_compartment_details.go create_admin_product_request_response.go create_internal_product_request_response.go create_product_details.go delete_admin_product_request_response.go delete_internal_product_request_response.go get_admin_product_request_response.go get_internal_product_request_response.go get_product_request_response.go limit.go list_admin_products_request_response.go list_internal_products_request_response.go list_products_request_response.go meter.go meter_with_sku.go ociproductcatalog_product_client.go ociproductcatalog_productadmin_client.go ociproductcatalog_productinternal_client.go product.go product_collection.go product_summary.go sku_summary.go update_admin_product_request_response.go update_internal_product_request_response.go update_product_details.go

func GetAdminProductLifecycleStateEnumStringValues

func GetAdminProductLifecycleStateEnumStringValues() []string

GetAdminProductLifecycleStateEnumStringValues Enumerates the set of values in String for AdminProductLifecycleStateEnum

func GetAdminProductSummaryLifecycleStateEnumStringValues

func GetAdminProductSummaryLifecycleStateEnumStringValues() []string

GetAdminProductSummaryLifecycleStateEnumStringValues Enumerates the set of values in String for AdminProductSummaryLifecycleStateEnum

func GetCreateProductDetailsBackfillEligibilityEnumStringValues

func GetCreateProductDetailsBackfillEligibilityEnumStringValues() []string

GetCreateProductDetailsBackfillEligibilityEnumStringValues Enumerates the set of values in String for CreateProductDetailsBackfillEligibilityEnum

func GetProductLifecycleStateEnumStringValues

func GetProductLifecycleStateEnumStringValues() []string

GetProductLifecycleStateEnumStringValues Enumerates the set of values in String for ProductLifecycleStateEnum

func GetProductSummaryLifecycleStateEnumStringValues

func GetProductSummaryLifecycleStateEnumStringValues() []string

GetProductSummaryLifecycleStateEnumStringValues Enumerates the set of values in String for ProductSummaryLifecycleStateEnum

func GetUpdateProductDetailsStateEnumStringValues

func GetUpdateProductDetailsStateEnumStringValues() []string

GetUpdateProductDetailsStateEnumStringValues Enumerates the set of values in String for UpdateProductDetailsStateEnum

type ActivateProductRequest

ActivateProductRequest wrapper for the ActivateProduct operation

See also

Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/ociproductcatalog/ActivateProduct.go.html to see an example of how to use ActivateProductRequest.

type ActivateProductRequest struct {

    // OCID of the product
    ProductId *string `mandatory:"true" contributesTo:"path" name:"productId"`

    // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
    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.
    OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"`

    // 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
    // is 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"`

    // 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 (ActivateProductRequest) BinaryRequestBody

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

BinaryRequestBody implements the OCIRequest interface

func (ActivateProductRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (ActivateProductRequest) RetryPolicy

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

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

func (ActivateProductRequest) String

func (request ActivateProductRequest) String() string

func (ActivateProductRequest) ValidateEnumValue

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

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

type ActivateProductResponse

ActivateProductResponse wrapper for the ActivateProduct operation

type ActivateProductResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // The Product instance
    Product `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 (ActivateProductResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (ActivateProductResponse) String

func (response ActivateProductResponse) String() string

type AdminProduct

AdminProduct The properties of a product

type AdminProduct struct {

    // OCID of the product
    Id *string `mandatory:"true" json:"id"`

    // The OCID of the compartment (remember that the tenancy is simply the root compartment).
    CompartmentId *string `mandatory:"true" json:"compartmentId"`

    // Name of the product, defined by service teams. Unique within one service
    Name *string `mandatory:"true" json:"name"`

    // description to the product
    Description *string `mandatory:"true" json:"description"`

    // List of meters associated with this product, including SKU information
    MeterwithSKUs []MeterWithSku `mandatory:"true" json:"meterwithSKUs"`

    // Name of the metering service this product relates to.
    ServiceName *string `mandatory:"true" json:"serviceName"`

    // List of limits that this product is associated with.
    Limits []Limit `mandatory:"true" json:"limits"`

    // The status of a product following the OCI standard. ACTIVE: resources of this product can be used by the end customer. INACTIVE: resources of this product can't be used by the end customer. Product needs manual approval. NEEDS_ATTENTION: operator action is needed.
    LifecycleState AdminProductLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"`

    // The displayed status of a product. lifecycleState to lifecycleDetails mapping: INACTIVE -> "Not yet launched" ACTIVE -> "Launched" NEEDS_ATTENTION -> "Pricing not set"
    LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"`

    // Date and time when the product was created
    // Example: `2022-01-25T21:10:29.600Z`
    TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"`

    // Date and time when the product was updated. Nullable
    // Example: `2022-01-25T21:10:29.600Z`
    TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"`

    // Date and time when the product was set to ready. Nullable
    // Example: `2022-01-25T21:10:29.600Z`
    TimeReady *common.SDKTime `mandatory:"false" json:"timeReady"`

    // Date and time when the product was launched. Nullable
    // Example: `2022-01-25T21:10:29.600Z`
    TimeLaunched *common.SDKTime `mandatory:"false" json:"timeLaunched"`

    // Whether the product is currently excluded from SKU processing flows. Nullable when the
    // exclusion flag has not been explicitly set.
    IsExcluded *bool `mandatory:"false" json:"isExcluded"`

    // Date and time when the product was marked as excluded. Nullable
    // Example: `2022-01-25T21:10:29.600Z`
    TimeExcluded *common.SDKTime `mandatory:"false" json:"timeExcluded"`

    // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace.
    // For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).
    // Example: `{"Department": "Finance"}`
    FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`

    // Defined tags for this resource. Each key is predefined and scoped to a namespace.
    // For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).
    // Example: `{"Operations": {"CostCenter": "42"}}`
    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 (AdminProduct) String

func (m AdminProduct) String() string

func (AdminProduct) ValidateEnumValue

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

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

type AdminProductLifecycleStateEnum

AdminProductLifecycleStateEnum Enum with underlying type: string

type AdminProductLifecycleStateEnum string

Set of constants representing the allowable values for AdminProductLifecycleStateEnum

const (
    AdminProductLifecycleStateActive         AdminProductLifecycleStateEnum = "ACTIVE"
    AdminProductLifecycleStateInactive       AdminProductLifecycleStateEnum = "INACTIVE"
    AdminProductLifecycleStateNeedsAttention AdminProductLifecycleStateEnum = "NEEDS_ATTENTION"
)

func GetAdminProductLifecycleStateEnumValues

func GetAdminProductLifecycleStateEnumValues() []AdminProductLifecycleStateEnum

GetAdminProductLifecycleStateEnumValues Enumerates the set of values for AdminProductLifecycleStateEnum

func GetMappingAdminProductLifecycleStateEnum

func GetMappingAdminProductLifecycleStateEnum(val string) (AdminProductLifecycleStateEnum, bool)

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

type AdminProductSummary

AdminProductSummary The properties of a product returned by the admin get API

type AdminProductSummary struct {

    // OCID of the product
    Id *string `mandatory:"true" json:"id"`

    // The OCID of the compartment (remember that the tenancy is simply the root compartment).
    CompartmentId *string `mandatory:"true" json:"compartmentId"`

    // Name of the product, defined by service teams. Unique within one service
    Name *string `mandatory:"true" json:"name"`

    // description to the product
    Description *string `mandatory:"true" json:"description"`

    // List of meters associated with this product, including SKU information
    MeterwithSKUs []MeterWithSku `mandatory:"true" json:"meterwithSKUs"`

    // Name of the metering service this product relates to.
    ServiceName *string `mandatory:"true" json:"serviceName"`

    // List of limits that this product is associated with.
    Limits []Limit `mandatory:"true" json:"limits"`

    // The status of a product following the OCI standard. ACTIVE: resources of this product can be used by the end customer. INACTIVE: resources of this product can't be used by the end customer. Product needs manual approval. NEEDS_ATTENTION: operator action is needed.
    LifecycleState AdminProductSummaryLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"`

    // The displayed status of a product. lifecycleState to lifecycleDetails mapping: INACTIVE -> "Not yet launched" ACTIVE -> "Launched" NEEDS_ATTENTION -> "Pricing not set"
    LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"`

    // Date and time when the product was created
    // Example: `2022-01-25T21:10:29.600Z`
    TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"`

    // Date and time when the product was updated. Nullable
    // Example: `2022-01-25T21:10:29.600Z`
    TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"`

    // Date and time when the product was set to ready. Nullable
    // Example: `2022-01-25T21:10:29.600Z`
    TimeReady *common.SDKTime `mandatory:"false" json:"timeReady"`

    // Date and time when the product was launched. Nullable
    // Example: `2022-01-25T21:10:29.600Z`
    TimeLaunched *common.SDKTime `mandatory:"false" json:"timeLaunched"`

    // Whether the product is currently excluded from SKU processing flows. Nullable when the
    // exclusion flag has not been explicitly set.
    IsExcluded *bool `mandatory:"false" json:"isExcluded"`

    // Date and time when the product was marked as excluded. Nullable
    // Example: `2022-01-25T21:10:29.600Z`
    TimeExcluded *common.SDKTime `mandatory:"false" json:"timeExcluded"`

    // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace.
    // For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).
    // Example: `{"Department": "Finance"}`
    FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`

    // Defined tags for this resource. Each key is predefined and scoped to a namespace.
    // For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).
    // Example: `{"Operations": {"CostCenter": "42"}}`
    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 (AdminProductSummary) String

func (m AdminProductSummary) String() string

func (AdminProductSummary) ValidateEnumValue

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

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

type AdminProductSummaryLifecycleStateEnum

AdminProductSummaryLifecycleStateEnum Enum with underlying type: string

type AdminProductSummaryLifecycleStateEnum string

Set of constants representing the allowable values for AdminProductSummaryLifecycleStateEnum

const (
    AdminProductSummaryLifecycleStateActive         AdminProductSummaryLifecycleStateEnum = "ACTIVE"
    AdminProductSummaryLifecycleStateInactive       AdminProductSummaryLifecycleStateEnum = "INACTIVE"
    AdminProductSummaryLifecycleStateNeedsAttention AdminProductSummaryLifecycleStateEnum = "NEEDS_ATTENTION"
)

func GetAdminProductSummaryLifecycleStateEnumValues

func GetAdminProductSummaryLifecycleStateEnumValues() []AdminProductSummaryLifecycleStateEnum

GetAdminProductSummaryLifecycleStateEnumValues Enumerates the set of values for AdminProductSummaryLifecycleStateEnum

func GetMappingAdminProductSummaryLifecycleStateEnum

func GetMappingAdminProductSummaryLifecycleStateEnum(val string) (AdminProductSummaryLifecycleStateEnum, bool)

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

type ChangeAdminProductCompartmentRequest

ChangeAdminProductCompartmentRequest wrapper for the ChangeAdminProductCompartment operation

See also

Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/ociproductcatalog/ChangeAdminProductCompartment.go.html to see an example of how to use ChangeAdminProductCompartmentRequest.

type ChangeAdminProductCompartmentRequest struct {

    // OCID of the product
    ProductId *string `mandatory:"true" contributesTo:"path" name:"productId"`

    // The payload for moving a product to a different compartment.
    ChangeProductCompartmentDetails `contributesTo:"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 `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.
    OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"`

    // 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
    // is 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"`

    // 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 (ChangeAdminProductCompartmentRequest) BinaryRequestBody

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

BinaryRequestBody implements the OCIRequest interface

func (ChangeAdminProductCompartmentRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (ChangeAdminProductCompartmentRequest) RetryPolicy

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

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

func (ChangeAdminProductCompartmentRequest) String

func (request ChangeAdminProductCompartmentRequest) String() string

func (ChangeAdminProductCompartmentRequest) ValidateEnumValue

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

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

type ChangeAdminProductCompartmentResponse

ChangeAdminProductCompartmentResponse wrapper for the ChangeAdminProductCompartment operation

type ChangeAdminProductCompartmentResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // 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 (ChangeAdminProductCompartmentResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (ChangeAdminProductCompartmentResponse) String

func (response ChangeAdminProductCompartmentResponse) String() string

type ChangeInternalProductCompartmentRequest

ChangeInternalProductCompartmentRequest wrapper for the ChangeInternalProductCompartment operation

See also

Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/ociproductcatalog/ChangeInternalProductCompartment.go.html to see an example of how to use ChangeInternalProductCompartmentRequest.

type ChangeInternalProductCompartmentRequest struct {

    // OCID of the product
    ProductId *string `mandatory:"true" contributesTo:"path" name:"productId"`

    // The payload for moving a product to a different compartment.
    ChangeProductCompartmentDetails `contributesTo:"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 `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.
    OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"`

    // 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
    // is 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"`

    // 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 (ChangeInternalProductCompartmentRequest) BinaryRequestBody

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

BinaryRequestBody implements the OCIRequest interface

func (ChangeInternalProductCompartmentRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (ChangeInternalProductCompartmentRequest) RetryPolicy

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

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

func (ChangeInternalProductCompartmentRequest) String

func (request ChangeInternalProductCompartmentRequest) String() string

func (ChangeInternalProductCompartmentRequest) ValidateEnumValue

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

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

type ChangeInternalProductCompartmentResponse

ChangeInternalProductCompartmentResponse wrapper for the ChangeInternalProductCompartment operation

type ChangeInternalProductCompartmentResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // 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 (ChangeInternalProductCompartmentResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (ChangeInternalProductCompartmentResponse) String

func (response ChangeInternalProductCompartmentResponse) String() string

type ChangeProductCompartmentDetails

ChangeProductCompartmentDetails The details to change the product's compartment.

type ChangeProductCompartmentDetails struct {

    // The new product compartment OCID.
    NewCompartmentId *string `mandatory:"true" json:"newCompartmentId"`
}

func (ChangeProductCompartmentDetails) String

func (m ChangeProductCompartmentDetails) String() string

func (ChangeProductCompartmentDetails) ValidateEnumValue

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

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

type CreateAdminProductRequest

CreateAdminProductRequest wrapper for the CreateAdminProduct operation

See also

Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/ociproductcatalog/CreateAdminProduct.go.html to see an example of how to use CreateAdminProductRequest.

type CreateAdminProductRequest struct {

    // The payload used to create a product
    CreateProductDetails `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.
    OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"`

    // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
    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 (CreateAdminProductRequest) BinaryRequestBody

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

BinaryRequestBody implements the OCIRequest interface

func (CreateAdminProductRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (CreateAdminProductRequest) RetryPolicy

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

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

func (CreateAdminProductRequest) String

func (request CreateAdminProductRequest) String() string

func (CreateAdminProductRequest) ValidateEnumValue

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

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

type CreateAdminProductResponse

CreateAdminProductResponse wrapper for the CreateAdminProduct operation

type CreateAdminProductResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // The Product instance
    Product `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 (CreateAdminProductResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (CreateAdminProductResponse) String

func (response CreateAdminProductResponse) String() string

type CreateInternalProductRequest

CreateInternalProductRequest wrapper for the CreateInternalProduct operation

See also

Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/ociproductcatalog/CreateInternalProduct.go.html to see an example of how to use CreateInternalProductRequest.

type CreateInternalProductRequest struct {

    // The payload used to create a product
    CreateProductDetails `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.
    OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"`

    // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
    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 (CreateInternalProductRequest) BinaryRequestBody

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

BinaryRequestBody implements the OCIRequest interface

func (CreateInternalProductRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (CreateInternalProductRequest) RetryPolicy

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

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

func (CreateInternalProductRequest) String

func (request CreateInternalProductRequest) String() string

func (CreateInternalProductRequest) ValidateEnumValue

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

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

type CreateInternalProductResponse

CreateInternalProductResponse wrapper for the CreateInternalProduct operation

type CreateInternalProductResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // The Product instance
    Product `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 (CreateInternalProductResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (CreateInternalProductResponse) String

func (response CreateInternalProductResponse) String() string

type CreateProductDetails

CreateProductDetails The properties of a product

type CreateProductDetails struct {

    // The OCID of the compartment (remember that the tenancy is simply the root compartment).
    CompartmentId *string `mandatory:"true" json:"compartmentId"`

    // Name of the product, defined by service teams. Unique within one service
    Name *string `mandatory:"true" json:"name"`

    // description to the product
    Description *string `mandatory:"true" json:"description"`

    // Name of the metering service this product relates to.
    ServiceName *string `mandatory:"true" json:"serviceName"`

    // List of meters associated with this product
    Meters []Meter `mandatory:"false" json:"meters"`

    // List of limits that this product is associated with.
    Limits []Limit `mandatory:"false" json:"limits"`

    // Optional create-time signal that marks the product as eligible for the backfill flow in
    // existing Alloy regions. Omit this field to preserve the current create behavior. Final
    // runtime backfill and auto-enable decisions remain worker-side.
    BackfillEligibility CreateProductDetailsBackfillEligibilityEnum `mandatory:"false" json:"backfillEligibility,omitempty"`

    // Optional create-time exclusion flag. When true, the product is created in an excluded
    // state. Omit this field to preserve backward-compatible create behavior.
    IsExcluded *bool `mandatory:"false" json:"isExcluded"`
}

func (CreateProductDetails) String

func (m CreateProductDetails) String() string

func (CreateProductDetails) ValidateEnumValue

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

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

type CreateProductDetailsBackfillEligibilityEnum

CreateProductDetailsBackfillEligibilityEnum Enum with underlying type: string

type CreateProductDetailsBackfillEligibilityEnum string

Set of constants representing the allowable values for CreateProductDetailsBackfillEligibilityEnum

const (
    CreateProductDetailsBackfillEligibilityBackfillEligible CreateProductDetailsBackfillEligibilityEnum = "BACKFILL_ELIGIBLE"
)

func GetCreateProductDetailsBackfillEligibilityEnumValues

func GetCreateProductDetailsBackfillEligibilityEnumValues() []CreateProductDetailsBackfillEligibilityEnum

GetCreateProductDetailsBackfillEligibilityEnumValues Enumerates the set of values for CreateProductDetailsBackfillEligibilityEnum

func GetMappingCreateProductDetailsBackfillEligibilityEnum

func GetMappingCreateProductDetailsBackfillEligibilityEnum(val string) (CreateProductDetailsBackfillEligibilityEnum, bool)

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

type DeleteAdminProductRequest

DeleteAdminProductRequest wrapper for the DeleteAdminProduct operation

See also

Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/ociproductcatalog/DeleteAdminProduct.go.html to see an example of how to use DeleteAdminProductRequest.

type DeleteAdminProductRequest struct {

    // OCID of the product
    ProductId *string `mandatory:"true" contributesTo:"path" name:"productId"`

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

    // 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
    // is 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"`

    // 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 (DeleteAdminProductRequest) BinaryRequestBody

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

BinaryRequestBody implements the OCIRequest interface

func (DeleteAdminProductRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (DeleteAdminProductRequest) RetryPolicy

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

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

func (DeleteAdminProductRequest) String

func (request DeleteAdminProductRequest) String() string

func (DeleteAdminProductRequest) ValidateEnumValue

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

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

type DeleteAdminProductResponse

DeleteAdminProductResponse wrapper for the DeleteAdminProduct operation

type DeleteAdminProductResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // 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 (DeleteAdminProductResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (DeleteAdminProductResponse) String

func (response DeleteAdminProductResponse) String() string

type DeleteInternalProductRequest

DeleteInternalProductRequest wrapper for the DeleteInternalProduct operation

See also

Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/ociproductcatalog/DeleteInternalProduct.go.html to see an example of how to use DeleteInternalProductRequest.

type DeleteInternalProductRequest struct {

    // OCID of the product
    ProductId *string `mandatory:"true" contributesTo:"path" name:"productId"`

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

    // 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
    // is 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"`

    // 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 (DeleteInternalProductRequest) BinaryRequestBody

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

BinaryRequestBody implements the OCIRequest interface

func (DeleteInternalProductRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (DeleteInternalProductRequest) RetryPolicy

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

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

func (DeleteInternalProductRequest) String

func (request DeleteInternalProductRequest) String() string

func (DeleteInternalProductRequest) ValidateEnumValue

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

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

type DeleteInternalProductResponse

DeleteInternalProductResponse wrapper for the DeleteInternalProduct operation

type DeleteInternalProductResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // 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 (DeleteInternalProductResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (DeleteInternalProductResponse) String

func (response DeleteInternalProductResponse) String() string

type GetAdminProductRequest

GetAdminProductRequest wrapper for the GetAdminProduct operation

See also

Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/ociproductcatalog/GetAdminProduct.go.html to see an example of how to use GetAdminProductRequest.

type GetAdminProductRequest struct {

    // OCID of the product
    ProductId *string `mandatory:"true" contributesTo:"path" name:"productId"`

    // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
    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 (GetAdminProductRequest) BinaryRequestBody

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

BinaryRequestBody implements the OCIRequest interface

func (GetAdminProductRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (GetAdminProductRequest) RetryPolicy

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

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

func (GetAdminProductRequest) String

func (request GetAdminProductRequest) String() string

func (GetAdminProductRequest) ValidateEnumValue

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

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

type GetAdminProductResponse

GetAdminProductResponse wrapper for the GetAdminProduct operation

type GetAdminProductResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // The AdminProduct instance
    AdminProduct `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 (GetAdminProductResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (GetAdminProductResponse) String

func (response GetAdminProductResponse) String() string

type GetInternalProductRequest

GetInternalProductRequest wrapper for the GetInternalProduct operation

See also

Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/ociproductcatalog/GetInternalProduct.go.html to see an example of how to use GetInternalProductRequest.

type GetInternalProductRequest struct {

    // OCID of the product
    ProductId *string `mandatory:"true" contributesTo:"path" name:"productId"`

    // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
    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 (GetInternalProductRequest) BinaryRequestBody

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

BinaryRequestBody implements the OCIRequest interface

func (GetInternalProductRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (GetInternalProductRequest) RetryPolicy

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

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

func (GetInternalProductRequest) String

func (request GetInternalProductRequest) String() string

func (GetInternalProductRequest) ValidateEnumValue

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

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

type GetInternalProductResponse

GetInternalProductResponse wrapper for the GetInternalProduct operation

type GetInternalProductResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // The Product instance
    Product `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 (GetInternalProductResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (GetInternalProductResponse) String

func (response GetInternalProductResponse) String() string

type GetProductRequest

GetProductRequest wrapper for the GetProduct operation

See also

Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/ociproductcatalog/GetProduct.go.html to see an example of how to use GetProductRequest.

type GetProductRequest struct {

    // OCID of the product
    ProductId *string `mandatory:"true" contributesTo:"path" name:"productId"`

    // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
    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 (GetProductRequest) BinaryRequestBody

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

BinaryRequestBody implements the OCIRequest interface

func (GetProductRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (GetProductRequest) RetryPolicy

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

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

func (GetProductRequest) String

func (request GetProductRequest) String() string

func (GetProductRequest) ValidateEnumValue

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

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

type GetProductResponse

GetProductResponse wrapper for the GetProduct operation

type GetProductResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // The Product instance
    Product `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 (GetProductResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (GetProductResponse) String

func (response GetProductResponse) String() string

type Limit

Limit Limit that the use of a resource is controlled with

type Limit struct {

    // public name of the limit
    PublicLimitName *string `mandatory:"false" json:"publicLimitName"`

    // public name of the limit service
    PublicServiceName *string `mandatory:"false" json:"publicServiceName"`
}

func (Limit) String

func (m Limit) String() string

func (Limit) ValidateEnumValue

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

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

type ListAdminProductsRequest

ListAdminProductsRequest wrapper for the ListAdminProducts operation

See also

Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/ociproductcatalog/ListAdminProducts.go.html to see an example of how to use ListAdminProductsRequest.

type ListAdminProductsRequest struct {

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

    // The value of the `opc-next-page` response header from the previous "List" call.
    Page *string `mandatory:"false" contributesTo:"query" name:"page"`

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

    // The name of the product to be queried
    Name *string `mandatory:"false" contributesTo:"query" name:"name"`

    // The OCID of the product to be queried
    Id *string `mandatory:"false" contributesTo:"query" name:"id"`

    // The OCID of the compartment (remember that the tenancy is simply the root compartment).
    CompartmentId *string `mandatory:"false" contributesTo:"query" name:"compartmentId"`

    // 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 (ListAdminProductsRequest) BinaryRequestBody

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

BinaryRequestBody implements the OCIRequest interface

func (ListAdminProductsRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (ListAdminProductsRequest) RetryPolicy

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

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

func (ListAdminProductsRequest) String

func (request ListAdminProductsRequest) String() string

func (ListAdminProductsRequest) ValidateEnumValue

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

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

type ListAdminProductsResponse

ListAdminProductsResponse wrapper for the ListAdminProducts operation

type ListAdminProductsResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // A list of ProductCollection instances
    ProductCollection `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 list pagination. When this header appears in the response, additional pages of results remain. For
    // important details about how pagination works, see List Pagination (https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
    OpcNextPage *string `presentIn:"header" name:"opc-next-page"`
}

func (ListAdminProductsResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (ListAdminProductsResponse) String

func (response ListAdminProductsResponse) String() string

type ListInternalProductsRequest

ListInternalProductsRequest wrapper for the ListInternalProducts operation

See also

Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/ociproductcatalog/ListInternalProducts.go.html to see an example of how to use ListInternalProductsRequest.

type ListInternalProductsRequest struct {

    // The OCID of the compartment (remember that the tenancy is simply the root compartment).
    CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"`

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

    // The value of the `opc-next-page` response header from the previous "List" call.
    Page *string `mandatory:"false" contributesTo:"query" name:"page"`

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

    // The name of the product to be queried
    Name *string `mandatory:"false" contributesTo:"query" name:"name"`

    // The OCID of the product to be queried
    Id *string `mandatory:"false" contributesTo:"query" name:"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 (ListInternalProductsRequest) BinaryRequestBody

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

BinaryRequestBody implements the OCIRequest interface

func (ListInternalProductsRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (ListInternalProductsRequest) RetryPolicy

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

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

func (ListInternalProductsRequest) String

func (request ListInternalProductsRequest) String() string

func (ListInternalProductsRequest) ValidateEnumValue

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

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

type ListInternalProductsResponse

ListInternalProductsResponse wrapper for the ListInternalProducts operation

type ListInternalProductsResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // A list of ProductCollection instances
    ProductCollection `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 list pagination. When this header appears in the response, additional pages of results remain. For
    // important details about how pagination works, see List Pagination (https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
    OpcNextPage *string `presentIn:"header" name:"opc-next-page"`
}

func (ListInternalProductsResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (ListInternalProductsResponse) String

func (response ListInternalProductsResponse) String() string

type ListProductsRequest

ListProductsRequest wrapper for the ListProducts operation

See also

Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/ociproductcatalog/ListProducts.go.html to see an example of how to use ListProductsRequest.

type ListProductsRequest struct {

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

    // The bPartNumber of the SKU to be used to filter the result. All the product has this sku in the skus list will be returned
    SkusContains *string `mandatory:"false" contributesTo:"query" name:"skusContains"`

    // The name of the product to be queried
    Name *string `mandatory:"false" contributesTo:"query" name:"name"`

    // The lifecycleState used to filter the result
    LifecycleState *string `mandatory:"false" contributesTo:"query" name:"lifecycleState"`

    // A filter to return only the products with `timeReady` field greater than or equal to given value.
    // Example: `2022-01-25T21:10:29.600Z`
    TimeReadyGreaterThanOrEqualTo *common.SDKTime `mandatory:"false" contributesTo:"query" name:"timeReadyGreaterThanOrEqualTo"`

    // The value of the `opc-next-page` response header from the previous "List" call.
    Page *string `mandatory:"false" contributesTo:"query" name:"page"`

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

    // The OCID of the product to be queried
    Id *string `mandatory:"false" contributesTo:"query" name:"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 (ListProductsRequest) BinaryRequestBody

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

BinaryRequestBody implements the OCIRequest interface

func (ListProductsRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (ListProductsRequest) RetryPolicy

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

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

func (ListProductsRequest) String

func (request ListProductsRequest) String() string

func (ListProductsRequest) ValidateEnumValue

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

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

type ListProductsResponse

ListProductsResponse wrapper for the ListProducts operation

type ListProductsResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // A list of ProductCollection instances
    ProductCollection `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 list pagination. When this header appears in the response, additional pages of results remain. For
    // important details about how pagination works, see List Pagination (https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
    OpcNextPage *string `presentIn:"header" name:"opc-next-page"`
}

func (ListProductsResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (ListProductsResponse) String

func (response ListProductsResponse) String() string

type Meter

Meter Meter defined in metering service

type Meter struct {

    // Name of the meter
    Name *string `mandatory:"false" json:"name"`
}

func (Meter) String

func (m Meter) String() string

func (Meter) ValidateEnumValue

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

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

type MeterWithSku

MeterWithSku Meter defined in metering service with the associated SKU

type MeterWithSku struct {

    // Name of the meter
    Name *string `mandatory:"false" json:"name"`

    // B number of the SKU associated with the meter
    SkuBNumber *string `mandatory:"false" json:"skuBNumber"`

    // Description of the SKU associated with the meter
    SkuDescription *string `mandatory:"false" json:"skuDescription"`
}

func (MeterWithSku) String

func (m MeterWithSku) String() string

func (MeterWithSku) ValidateEnumValue

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

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

type Product

Product The fields of a product to be displayed to the operator in OCI Console

type Product struct {

    // OCID of the product
    Id *string `mandatory:"true" json:"id"`

    // Name of the product, defined by service teams. Unique within one service
    Name *string `mandatory:"true" json:"name"`

    // List of skus associated with this product.
    Skus []SkuSummary `mandatory:"true" json:"skus"`

    // Name of the metering service this product relates to.
    ServiceName *string `mandatory:"true" json:"serviceName"`

    // The status of a product following the OCI standard. ACTIVE: resources of this product can be used by the end customer. INACTIVE: resources of this product can't be used by the end customer. Product needs manual approval. NEEDS_ATTENTION: operator action is needed.
    LifecycleState ProductLifecycleStateEnum `mandatory:"true" json:"lifecycleState"`

    // description to the product
    Description *string `mandatory:"true" json:"description"`

    // The displayed status of a product. lifecycleState to lifecycleDetails mapping: INACTIVE -> "Not yet launched" ACTIVE -> "Launched" NEEDS_ATTENTION -> "Pricing not set"
    LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"`

    // Date and time when the product is created
    // Example: `2022-01-25T21:10:29.600Z`
    TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"`

    // Date and time when the product is launched. Nullable
    // Example: `2022-01-25T21:10:29.600Z`
    TimeLaunched *common.SDKTime `mandatory:"false" json:"timeLaunched"`

    // Date and time when the product is ready to be launched. Nullable
    // Example: `2022-01-25T21:10:29.600Z`
    TimeReady *common.SDKTime `mandatory:"false" json:"timeReady"`

    // Indicates whether the product is currently excluded from SKU processing flows. This
    // field is nullable when the exclusion flag has not been explicitly set.
    IsExcluded *bool `mandatory:"false" json:"isExcluded"`

    // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace.
    // For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).
    // Example: `{"Department": "Finance"}`
    FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`

    // Defined tags for this resource. Each key is predefined and scoped to a namespace.
    // For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).
    // Example: `{"Operations": {"CostCenter": "42"}}`
    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 (Product) String

func (m Product) String() string

func (Product) ValidateEnumValue

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

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

type ProductAdminClient

ProductAdminClient a client for ProductAdmin

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

func NewProductAdminClientWithConfigurationProvider

func NewProductAdminClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client ProductAdminClient, err error)

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

func NewProductAdminClientWithOboToken

func NewProductAdminClientWithOboToken(configProvider common.ConfigurationProvider, oboToken string) (client ProductAdminClient, err error)

NewProductAdminClientWithOboToken Creates a new default ProductAdmin 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 (ProductAdminClient) ChangeAdminProductCompartment

func (client ProductAdminClient) ChangeAdminProductCompartment(ctx context.Context, request ChangeAdminProductCompartmentRequest) (response ChangeAdminProductCompartmentResponse, err error)

ChangeAdminProductCompartment Change product compartment

See also

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

func (*ProductAdminClient) ConfigurationProvider

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

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

func (ProductAdminClient) CreateAdminProduct

func (client ProductAdminClient) CreateAdminProduct(ctx context.Context, request CreateAdminProductRequest) (response CreateAdminProductResponse, err error)

CreateAdminProduct Used by the OCI service teams to create a product to control the availability of the relative resources

See also

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

func (ProductAdminClient) DeleteAdminProduct

func (client ProductAdminClient) DeleteAdminProduct(ctx context.Context, request DeleteAdminProductRequest) (response DeleteAdminProductResponse, err error)

DeleteAdminProduct Delete the product

See also

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

func (ProductAdminClient) GetAdminProduct

func (client ProductAdminClient) GetAdminProduct(ctx context.Context, request GetAdminProductRequest) (response GetAdminProductResponse, err error)

GetAdminProduct Get the product by ID

See also

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

func (ProductAdminClient) ListAdminProducts

func (client ProductAdminClient) ListAdminProducts(ctx context.Context, request ListAdminProductsRequest) (response ListAdminProductsResponse, err error)

ListAdminProducts List the products with the filters

See also

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

func (*ProductAdminClient) SetRegion

func (client *ProductAdminClient) SetRegion(region string)

SetRegion overrides the region of this client.

func (ProductAdminClient) UpdateAdminProduct

func (client ProductAdminClient) UpdateAdminProduct(ctx context.Context, request UpdateAdminProductRequest) (response UpdateAdminProductResponse, err error)

UpdateAdminProduct Update the product

See also

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

type ProductClient

ProductClient a client for Product

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

func NewProductClientWithConfigurationProvider

func NewProductClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client ProductClient, err error)

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

func NewProductClientWithOboToken

func NewProductClientWithOboToken(configProvider common.ConfigurationProvider, oboToken string) (client ProductClient, err error)

NewProductClientWithOboToken Creates a new default Product 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 (ProductClient) ActivateProduct

func (client ProductClient) ActivateProduct(ctx context.Context, request ActivateProductRequest) (response ActivateProductResponse, err error)

ActivateProduct Activate the target Product. Change lifecycleState from INACTIVE to ACTIVE.

See also

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

func (*ProductClient) ConfigurationProvider

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

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

func (ProductClient) GetProduct

func (client ProductClient) GetProduct(ctx context.Context, request GetProductRequest) (response GetProductResponse, err error)

GetProduct Get product by ID

See also

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

func (ProductClient) ListProducts

func (client ProductClient) ListProducts(ctx context.Context, request ListProductsRequest) (response ListProductsResponse, err error)

ListProducts List products

See also

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

func (*ProductClient) SetRegion

func (client *ProductClient) SetRegion(region string)

SetRegion overrides the region of this client.

type ProductCollection

ProductCollection List of Products

type ProductCollection struct {

    // List of Products
    Items []ProductSummary `mandatory:"true" json:"items"`
}

func (ProductCollection) String

func (m ProductCollection) String() string

func (ProductCollection) ValidateEnumValue

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

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

type ProductInternalClient

ProductInternalClient a client for ProductInternal

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

func NewProductInternalClientWithConfigurationProvider

func NewProductInternalClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client ProductInternalClient, err error)

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

func NewProductInternalClientWithOboToken

func NewProductInternalClientWithOboToken(configProvider common.ConfigurationProvider, oboToken string) (client ProductInternalClient, err error)

NewProductInternalClientWithOboToken Creates a new default ProductInternal 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 (ProductInternalClient) ChangeInternalProductCompartment

func (client ProductInternalClient) ChangeInternalProductCompartment(ctx context.Context, request ChangeInternalProductCompartmentRequest) (response ChangeInternalProductCompartmentResponse, err error)

ChangeInternalProductCompartment Change product compartment

See also

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

func (*ProductInternalClient) ConfigurationProvider

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

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

func (ProductInternalClient) CreateInternalProduct

func (client ProductInternalClient) CreateInternalProduct(ctx context.Context, request CreateInternalProductRequest) (response CreateInternalProductResponse, err error)

CreateInternalProduct Used by the OCI service teams to create a product to control the availability of the relative resources

See also

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

func (ProductInternalClient) DeleteInternalProduct

func (client ProductInternalClient) DeleteInternalProduct(ctx context.Context, request DeleteInternalProductRequest) (response DeleteInternalProductResponse, err error)

DeleteInternalProduct Delete the product

See also

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

func (ProductInternalClient) GetInternalProduct

func (client ProductInternalClient) GetInternalProduct(ctx context.Context, request GetInternalProductRequest) (response GetInternalProductResponse, err error)

GetInternalProduct Get the product by ID

See also

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

func (ProductInternalClient) ListInternalProducts

func (client ProductInternalClient) ListInternalProducts(ctx context.Context, request ListInternalProductsRequest) (response ListInternalProductsResponse, err error)

ListInternalProducts List the products with the filters

See also

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

func (*ProductInternalClient) SetRegion

func (client *ProductInternalClient) SetRegion(region string)

SetRegion overrides the region of this client.

func (ProductInternalClient) UpdateInternalProduct

func (client ProductInternalClient) UpdateInternalProduct(ctx context.Context, request UpdateInternalProductRequest) (response UpdateInternalProductResponse, err error)

UpdateInternalProduct Update the product

See also

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

type ProductLifecycleStateEnum

ProductLifecycleStateEnum Enum with underlying type: string

type ProductLifecycleStateEnum string

Set of constants representing the allowable values for ProductLifecycleStateEnum

const (
    ProductLifecycleStateActive         ProductLifecycleStateEnum = "ACTIVE"
    ProductLifecycleStateInactive       ProductLifecycleStateEnum = "INACTIVE"
    ProductLifecycleStateNeedsAttention ProductLifecycleStateEnum = "NEEDS_ATTENTION"
)

func GetMappingProductLifecycleStateEnum

func GetMappingProductLifecycleStateEnum(val string) (ProductLifecycleStateEnum, bool)

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

func GetProductLifecycleStateEnumValues

func GetProductLifecycleStateEnumValues() []ProductLifecycleStateEnum

GetProductLifecycleStateEnumValues Enumerates the set of values for ProductLifecycleStateEnum

type ProductSummary

ProductSummary The fields of a product to be displayed to the operator in OCI Console

type ProductSummary struct {

    // OCID of the product
    Id *string `mandatory:"true" json:"id"`

    // Name of the product, defined by service teams. Unique within one service
    Name *string `mandatory:"true" json:"name"`

    // List of skus associated with this product.
    Skus []SkuSummary `mandatory:"true" json:"skus"`

    // Name of the metering service this product relates to.
    ServiceName *string `mandatory:"true" json:"serviceName"`

    // The status of a product following the OCI standard. ACTIVE: resources of this product can be used by the end customer. INACTIVE: resources of this product can't be used by the end customer. Product needs manual approval. NEEDS_ATTENTION: operator action is needed.
    LifecycleState ProductSummaryLifecycleStateEnum `mandatory:"true" json:"lifecycleState"`

    // The displayed status of a product. lifecycleState to lifecycleDetails mapping: INACTIVE -> "Not yet launched" ACTIVE -> "Launched" NEEDS_ATTENTION -> "Pricing not set"
    LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"`

    // Date and time when the product is created
    // Example: `2022-01-25T21:10:29.600Z`
    TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"`

    // Date and time when the product is launched. Nullable
    // Example: `2022-01-25T21:10:29.600Z`
    TimeLaunched *common.SDKTime `mandatory:"false" json:"timeLaunched"`

    // Date and time when the product is ready to be launched. Nullable
    // Example: `2022-01-25T21:10:29.600Z`
    TimeReady *common.SDKTime `mandatory:"false" json:"timeReady"`

    // Indicates whether the product is currently excluded from SKU processing flows. This
    // field is nullable when the exclusion flag has not been explicitly set.
    IsExcluded *bool `mandatory:"false" json:"isExcluded"`

    // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace.
    // For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).
    // Example: `{"Department": "Finance"}`
    FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`

    // Defined tags for this resource. Each key is predefined and scoped to a namespace.
    // For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).
    // Example: `{"Operations": {"CostCenter": "42"}}`
    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 (ProductSummary) String

func (m ProductSummary) String() string

func (ProductSummary) ValidateEnumValue

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

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

type ProductSummaryLifecycleStateEnum

ProductSummaryLifecycleStateEnum Enum with underlying type: string

type ProductSummaryLifecycleStateEnum string

Set of constants representing the allowable values for ProductSummaryLifecycleStateEnum

const (
    ProductSummaryLifecycleStateActive         ProductSummaryLifecycleStateEnum = "ACTIVE"
    ProductSummaryLifecycleStateInactive       ProductSummaryLifecycleStateEnum = "INACTIVE"
    ProductSummaryLifecycleStateNeedsAttention ProductSummaryLifecycleStateEnum = "NEEDS_ATTENTION"
)

func GetMappingProductSummaryLifecycleStateEnum

func GetMappingProductSummaryLifecycleStateEnum(val string) (ProductSummaryLifecycleStateEnum, bool)

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

func GetProductSummaryLifecycleStateEnumValues

func GetProductSummaryLifecycleStateEnumValues() []ProductSummaryLifecycleStateEnum

GetProductSummaryLifecycleStateEnumValues Enumerates the set of values for ProductSummaryLifecycleStateEnum

type SkuSummary

SkuSummary The details of a sku

type SkuSummary struct {

    // sku bpartNumber
    BpartNumber *string `mandatory:"true" json:"bpartNumber"`

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

func (SkuSummary) String

func (m SkuSummary) String() string

func (SkuSummary) ValidateEnumValue

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

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

type UpdateAdminProductRequest

UpdateAdminProductRequest wrapper for the UpdateAdminProduct operation

See also

Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/ociproductcatalog/UpdateAdminProduct.go.html to see an example of how to use UpdateAdminProductRequest.

type UpdateAdminProductRequest struct {

    // OCID of the product
    ProductId *string `mandatory:"true" contributesTo:"path" name:"productId"`

    // The payload used to update the product.
    UpdateProductDetails `contributesTo:"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 `mandatory:"false" contributesTo:"header" name:"opc-request-id"`

    // 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
    // is 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"`

    // 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 (UpdateAdminProductRequest) BinaryRequestBody

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

BinaryRequestBody implements the OCIRequest interface

func (UpdateAdminProductRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (UpdateAdminProductRequest) RetryPolicy

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

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

func (UpdateAdminProductRequest) String

func (request UpdateAdminProductRequest) String() string

func (UpdateAdminProductRequest) ValidateEnumValue

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

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

type UpdateAdminProductResponse

UpdateAdminProductResponse wrapper for the UpdateAdminProduct operation

type UpdateAdminProductResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // The Product instance
    Product `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 (UpdateAdminProductResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (UpdateAdminProductResponse) String

func (response UpdateAdminProductResponse) String() string

type UpdateInternalProductRequest

UpdateInternalProductRequest wrapper for the UpdateInternalProduct operation

See also

Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/ociproductcatalog/UpdateInternalProduct.go.html to see an example of how to use UpdateInternalProductRequest.

type UpdateInternalProductRequest struct {

    // OCID of the product
    ProductId *string `mandatory:"true" contributesTo:"path" name:"productId"`

    // The payload used to update the product.
    UpdateProductDetails `contributesTo:"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 `mandatory:"false" contributesTo:"header" name:"opc-request-id"`

    // 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
    // is 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"`

    // 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 (UpdateInternalProductRequest) BinaryRequestBody

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

BinaryRequestBody implements the OCIRequest interface

func (UpdateInternalProductRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (UpdateInternalProductRequest) RetryPolicy

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

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

func (UpdateInternalProductRequest) String

func (request UpdateInternalProductRequest) String() string

func (UpdateInternalProductRequest) ValidateEnumValue

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

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

type UpdateInternalProductResponse

UpdateInternalProductResponse wrapper for the UpdateInternalProduct operation

type UpdateInternalProductResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // The Product instance
    Product `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 (UpdateInternalProductResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (UpdateInternalProductResponse) String

func (response UpdateInternalProductResponse) String() string

type UpdateProductDetails

UpdateProductDetails The properties of a product

type UpdateProductDetails struct {

    // Name of the product, defined by service teams. Unique within one service
    Name *string `mandatory:"false" json:"name"`

    // description to the product
    Description *string `mandatory:"false" json:"description"`

    // The current state of the product. READY - The product is fully configured and ready for activation. ENABLED - The product is active. DISABLED - The product is inactive and not ready for activation. DELETED - The product has been deleted. NEEDS_ATTENTION - Pricing not set.
    State UpdateProductDetailsStateEnum `mandatory:"false" json:"state,omitempty"`

    // List of meters associated with this product
    Meters []Meter `mandatory:"false" json:"meters"`

    // Name of the metering service this product relates to.
    ServiceName *string `mandatory:"false" json:"serviceName"`

    // List of limits that this product is associated with.
    Limits []Limit `mandatory:"false" json:"limits"`

    // Optional exclusion flag update. When true, marks the product as excluded. When false,
    // clears the exclusion state.
    IsExcluded *bool `mandatory:"false" json:"isExcluded"`
}

func (UpdateProductDetails) String

func (m UpdateProductDetails) String() string

func (UpdateProductDetails) ValidateEnumValue

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

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

type UpdateProductDetailsStateEnum

UpdateProductDetailsStateEnum Enum with underlying type: string

type UpdateProductDetailsStateEnum string

Set of constants representing the allowable values for UpdateProductDetailsStateEnum

const (
    UpdateProductDetailsStateReady          UpdateProductDetailsStateEnum = "READY"
    UpdateProductDetailsStateEnabled        UpdateProductDetailsStateEnum = "ENABLED"
    UpdateProductDetailsStateDisabled       UpdateProductDetailsStateEnum = "DISABLED"
    UpdateProductDetailsStateDeleted        UpdateProductDetailsStateEnum = "DELETED"
    UpdateProductDetailsStateNeedsAttention UpdateProductDetailsStateEnum = "NEEDS_ATTENTION"
)

func GetMappingUpdateProductDetailsStateEnum

func GetMappingUpdateProductDetailsStateEnum(val string) (UpdateProductDetailsStateEnum, bool)

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

func GetUpdateProductDetailsStateEnumValues

func GetUpdateProductDetailsStateEnumValues() []UpdateProductDetailsStateEnum

GetUpdateProductDetailsStateEnumValues Enumerates the set of values for UpdateProductDetailsStateEnum