...

Package osubsubscription

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

Overview ▾

Index ▾

func GetListCommitmentsSortByEnumStringValues() []string
func GetListCommitmentsSortOrderEnumStringValues() []string
func GetListRateCardsSortByEnumStringValues() []string
func GetListRateCardsSortOrderEnumStringValues() []string
func GetListSubscriptionsSortByEnumStringValues() []string
func GetListSubscriptionsSortOrderEnumStringValues() []string
type Commitment
    func (m Commitment) String() string
    func (m Commitment) ValidateEnumValue() (bool, error)
type CommitmentClient
    func NewCommitmentClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client CommitmentClient, err error)
    func NewCommitmentClientWithOboToken(configProvider common.ConfigurationProvider, oboToken string) (client CommitmentClient, err error)
    func (client *CommitmentClient) ConfigurationProvider() *common.ConfigurationProvider
    func (client CommitmentClient) GetCommitment(ctx context.Context, request GetCommitmentRequest) (response GetCommitmentResponse, err error)
    func (client CommitmentClient) ListCommitments(ctx context.Context, request ListCommitmentsRequest) (response ListCommitmentsResponse, err error)
    func (client *CommitmentClient) SetRegion(region string)
type CommitmentDetail
    func (m CommitmentDetail) String() string
    func (m CommitmentDetail) ValidateEnumValue() (bool, error)
type CommitmentSummary
    func (m CommitmentSummary) String() string
    func (m CommitmentSummary) ValidateEnumValue() (bool, error)
type Currency
    func (m Currency) String() string
    func (m Currency) ValidateEnumValue() (bool, error)
type GetCommitmentRequest
    func (request GetCommitmentRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request GetCommitmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request GetCommitmentRequest) RetryPolicy() *common.RetryPolicy
    func (request GetCommitmentRequest) String() string
    func (request GetCommitmentRequest) ValidateEnumValue() (bool, error)
type GetCommitmentResponse
    func (response GetCommitmentResponse) HTTPResponse() *http.Response
    func (response GetCommitmentResponse) String() string
type ListCommitmentsRequest
    func (request ListCommitmentsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request ListCommitmentsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request ListCommitmentsRequest) RetryPolicy() *common.RetryPolicy
    func (request ListCommitmentsRequest) String() string
    func (request ListCommitmentsRequest) ValidateEnumValue() (bool, error)
type ListCommitmentsResponse
    func (response ListCommitmentsResponse) HTTPResponse() *http.Response
    func (response ListCommitmentsResponse) String() string
type ListCommitmentsSortByEnum
    func GetListCommitmentsSortByEnumValues() []ListCommitmentsSortByEnum
    func GetMappingListCommitmentsSortByEnum(val string) (ListCommitmentsSortByEnum, bool)
type ListCommitmentsSortOrderEnum
    func GetListCommitmentsSortOrderEnumValues() []ListCommitmentsSortOrderEnum
    func GetMappingListCommitmentsSortOrderEnum(val string) (ListCommitmentsSortOrderEnum, bool)
type ListRateCardsRequest
    func (request ListRateCardsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request ListRateCardsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request ListRateCardsRequest) RetryPolicy() *common.RetryPolicy
    func (request ListRateCardsRequest) String() string
    func (request ListRateCardsRequest) ValidateEnumValue() (bool, error)
type ListRateCardsResponse
    func (response ListRateCardsResponse) HTTPResponse() *http.Response
    func (response ListRateCardsResponse) String() string
type ListRateCardsSortByEnum
    func GetListRateCardsSortByEnumValues() []ListRateCardsSortByEnum
    func GetMappingListRateCardsSortByEnum(val string) (ListRateCardsSortByEnum, bool)
type ListRateCardsSortOrderEnum
    func GetListRateCardsSortOrderEnumValues() []ListRateCardsSortOrderEnum
    func GetMappingListRateCardsSortOrderEnum(val string) (ListRateCardsSortOrderEnum, bool)
type ListSubscriptionsRequest
    func (request ListSubscriptionsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request ListSubscriptionsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request ListSubscriptionsRequest) RetryPolicy() *common.RetryPolicy
    func (request ListSubscriptionsRequest) String() string
    func (request ListSubscriptionsRequest) ValidateEnumValue() (bool, error)
type ListSubscriptionsResponse
    func (response ListSubscriptionsResponse) HTTPResponse() *http.Response
    func (response ListSubscriptionsResponse) String() string
type ListSubscriptionsSortByEnum
    func GetListSubscriptionsSortByEnumValues() []ListSubscriptionsSortByEnum
    func GetMappingListSubscriptionsSortByEnum(val string) (ListSubscriptionsSortByEnum, bool)
type ListSubscriptionsSortOrderEnum
    func GetListSubscriptionsSortOrderEnumValues() []ListSubscriptionsSortOrderEnum
    func GetMappingListSubscriptionsSortOrderEnum(val string) (ListSubscriptionsSortOrderEnum, bool)
type Product
    func (m Product) String() string
    func (m Product) ValidateEnumValue() (bool, error)
type RateCardSummary
    func (m RateCardSummary) String() string
    func (m RateCardSummary) ValidateEnumValue() (bool, error)
type RateCardTier
    func (m RateCardTier) String() string
    func (m RateCardTier) ValidateEnumValue() (bool, error)
type RatecardClient
    func NewRatecardClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client RatecardClient, err error)
    func NewRatecardClientWithOboToken(configProvider common.ConfigurationProvider, oboToken string) (client RatecardClient, err error)
    func (client *RatecardClient) ConfigurationProvider() *common.ConfigurationProvider
    func (client RatecardClient) ListRateCards(ctx context.Context, request ListRateCardsRequest) (response ListRateCardsResponse, err error)
    func (client *RatecardClient) SetRegion(region string)
type SubscribedServiceSummary
    func (m SubscribedServiceSummary) String() string
    func (m SubscribedServiceSummary) ValidateEnumValue() (bool, error)
type SubscriptionClient
    func NewSubscriptionClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client SubscriptionClient, err error)
    func NewSubscriptionClientWithOboToken(configProvider common.ConfigurationProvider, oboToken string) (client SubscriptionClient, err error)
    func (client *SubscriptionClient) ConfigurationProvider() *common.ConfigurationProvider
    func (client SubscriptionClient) ListSubscriptions(ctx context.Context, request ListSubscriptionsRequest) (response ListSubscriptionsResponse, err error)
    func (client *SubscriptionClient) SetRegion(region string)
type SubscriptionProduct
    func (m SubscriptionProduct) String() string
    func (m SubscriptionProduct) ValidateEnumValue() (bool, error)
type SubscriptionSummary
    func (m SubscriptionSummary) String() string
    func (m SubscriptionSummary) ValidateEnumValue() (bool, error)

Package files

commitment.go commitment_detail.go commitment_summary.go currency.go get_commitment_request_response.go list_commitments_request_response.go list_rate_cards_request_response.go list_subscriptions_request_response.go osubsubscription_commitment_client.go osubsubscription_ratecard_client.go osubsubscription_subscription_client.go product.go rate_card_summary.go rate_card_tier.go subscribed_service_summary.go subscription_product.go subscription_summary.go

func GetListCommitmentsSortByEnumStringValues

func GetListCommitmentsSortByEnumStringValues() []string

GetListCommitmentsSortByEnumStringValues Enumerates the set of values in String for ListCommitmentsSortByEnum

func GetListCommitmentsSortOrderEnumStringValues

func GetListCommitmentsSortOrderEnumStringValues() []string

GetListCommitmentsSortOrderEnumStringValues Enumerates the set of values in String for ListCommitmentsSortOrderEnum

func GetListRateCardsSortByEnumStringValues

func GetListRateCardsSortByEnumStringValues() []string

GetListRateCardsSortByEnumStringValues Enumerates the set of values in String for ListRateCardsSortByEnum

func GetListRateCardsSortOrderEnumStringValues

func GetListRateCardsSortOrderEnumStringValues() []string

GetListRateCardsSortOrderEnumStringValues Enumerates the set of values in String for ListRateCardsSortOrderEnum

func GetListSubscriptionsSortByEnumStringValues

func GetListSubscriptionsSortByEnumStringValues() []string

GetListSubscriptionsSortByEnumStringValues Enumerates the set of values in String for ListSubscriptionsSortByEnum

func GetListSubscriptionsSortOrderEnumStringValues

func GetListSubscriptionsSortOrderEnumStringValues() []string

GetListSubscriptionsSortOrderEnumStringValues Enumerates the set of values in String for ListSubscriptionsSortOrderEnum

type Commitment

Commitment Subscribed service commitment details

type Commitment struct {

    // Commitment start date
    TimeStart *common.SDKTime `mandatory:"false" json:"timeStart"`

    // Commitment end date
    TimeEnd *common.SDKTime `mandatory:"false" json:"timeEnd"`

    // Commitment quantity
    Quantity *string `mandatory:"false" json:"quantity"`

    // Commitment available amount
    AvailableAmount *string `mandatory:"false" json:"availableAmount"`

    // Commitment line net amount
    LineNetAmount *string `mandatory:"false" json:"lineNetAmount"`

    // Funded Allocation line value
    FundedAllocationValue *string `mandatory:"false" json:"fundedAllocationValue"`
}

func (Commitment) String

func (m Commitment) String() string

func (Commitment) ValidateEnumValue

func (m Commitment) 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 CommitmentClient

CommitmentClient a client for Commitment

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

func NewCommitmentClientWithConfigurationProvider

func NewCommitmentClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client CommitmentClient, err error)

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

func NewCommitmentClientWithOboToken

func NewCommitmentClientWithOboToken(configProvider common.ConfigurationProvider, oboToken string) (client CommitmentClient, err error)

NewCommitmentClientWithOboToken Creates a new default Commitment 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 (*CommitmentClient) ConfigurationProvider

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

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

func (CommitmentClient) GetCommitment

func (client CommitmentClient) GetCommitment(ctx context.Context, request GetCommitmentRequest) (response GetCommitmentResponse, err error)

GetCommitment This API returns the commitment details corresponding to the id provided

# See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.63.2/osubsubscription/GetCommitment.go.html to see an example of how to use GetCommitment API.

func (CommitmentClient) ListCommitments

func (client CommitmentClient) ListCommitments(ctx context.Context, request ListCommitmentsRequest) (response ListCommitmentsResponse, err error)

ListCommitments This list API returns all commitments for a particular Subscribed Service

# See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.63.2/osubsubscription/ListCommitments.go.html to see an example of how to use ListCommitments API.

func (*CommitmentClient) SetRegion

func (client *CommitmentClient) SetRegion(region string)

SetRegion overrides the region of this client.

type CommitmentDetail

CommitmentDetail Subscribed Service commitment summary

type CommitmentDetail struct {

    // SPM internal Commitment ID
    Id *string `mandatory:"true" json:"id"`

    // Commitment start date
    TimeStart *common.SDKTime `mandatory:"false" json:"timeStart"`

    // Commitment end date
    TimeEnd *common.SDKTime `mandatory:"false" json:"timeEnd"`

    // Commitment quantity
    Quantity *string `mandatory:"false" json:"quantity"`

    // Commitment used amount
    UsedAmount *string `mandatory:"false" json:"usedAmount"`

    // Commitment available amount
    AvailableAmount *string `mandatory:"false" json:"availableAmount"`

    // Funded Allocation line value
    // example: 12000.00
    FundedAllocationValue *string `mandatory:"false" json:"fundedAllocationValue"`
}

func (CommitmentDetail) String

func (m CommitmentDetail) String() string

func (CommitmentDetail) ValidateEnumValue

func (m CommitmentDetail) 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 CommitmentSummary

CommitmentSummary Subscribed Service commitment summary

type CommitmentSummary struct {

    // SPM internal Commitment ID
    Id *string `mandatory:"true" json:"id"`

    // Commitment start date
    TimeStart *common.SDKTime `mandatory:"false" json:"timeStart"`

    // Commitment end date
    TimeEnd *common.SDKTime `mandatory:"false" json:"timeEnd"`

    // Commitment quantity
    Quantity *string `mandatory:"false" json:"quantity"`

    // Commitment used amount
    UsedAmount *string `mandatory:"false" json:"usedAmount"`

    // Commitment available amount
    AvailableAmount *string `mandatory:"false" json:"availableAmount"`

    // Funded Allocation line value
    // example: 12000.00
    FundedAllocationValue *string `mandatory:"false" json:"fundedAllocationValue"`
}

func (CommitmentSummary) String

func (m CommitmentSummary) String() string

func (CommitmentSummary) ValidateEnumValue

func (m CommitmentSummary) 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 Currency

Currency Currency details

type Currency struct {

    // Currency Code
    IsoCode *string `mandatory:"true" json:"isoCode"`

    // Currency name
    Name *string `mandatory:"false" json:"name"`

    // Standard Precision of the Currency
    StdPrecision *int64 `mandatory:"false" json:"stdPrecision"`
}

func (Currency) String

func (m Currency) String() string

func (Currency) ValidateEnumValue

func (m Currency) 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 GetCommitmentRequest

GetCommitmentRequest wrapper for the GetCommitment operation

# See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.63.2/osubsubscription/GetCommitment.go.html to see an example of how to use GetCommitmentRequest.

type GetCommitmentRequest struct {

    // The Commitment Id
    CommitmentId *string `mandatory:"true" contributesTo:"path" name:"commitmentId"`

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

    // This header is meant to be used only for internal purposes and will be ignored on any public request. The purpose of this header is
    // to help on Gateway to API calls identification.
    XOneGatewaySubscriptionId *string `mandatory:"false" contributesTo:"header" name:"x-one-gateway-subscription-id"`

    // The OCI home region name in case home region is not us-ashburn-1 (IAD), e.g. ap-mumbai-1, us-phoenix-1 etc.
    XOneOriginRegion *string `mandatory:"false" contributesTo:"header" name:"x-one-origin-region"`

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

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

BinaryRequestBody implements the OCIRequest interface

func (GetCommitmentRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (GetCommitmentRequest) RetryPolicy

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

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

func (GetCommitmentRequest) String

func (request GetCommitmentRequest) String() string

func (GetCommitmentRequest) ValidateEnumValue

func (request GetCommitmentRequest) 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 GetCommitmentResponse

GetCommitmentResponse wrapper for the GetCommitment operation

type GetCommitmentResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // The CommitmentDetail instance
    CommitmentDetail `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"`
}

func (GetCommitmentResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (GetCommitmentResponse) String

func (response GetCommitmentResponse) String() string

type ListCommitmentsRequest

ListCommitmentsRequest wrapper for the ListCommitments operation

# See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.63.2/osubsubscription/ListCommitments.go.html to see an example of how to use ListCommitmentsRequest.

type ListCommitmentsRequest struct {

    // This param is used to get the commitments for a particular subscribed service
    SubscribedServiceId *string `mandatory:"true" contributesTo:"query" name:"subscribedServiceId"`

    // The OCID of the compartment.
    CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"`

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

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

    // The sort order to use, either ascending (`ASC`) or descending (`DESC`).
    SortOrder ListCommitmentsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"`

    // The field to sort by. You can provide one sort order (`sortOrder`).
    SortBy ListCommitmentsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"`

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

    // This header is meant to be used only for internal purposes and will be ignored on any public request. The purpose of this header is
    // to help on Gateway to API calls identification.
    XOneGatewaySubscriptionId *string `mandatory:"false" contributesTo:"header" name:"x-one-gateway-subscription-id"`

    // The OCI home region name in case home region is not us-ashburn-1 (IAD), e.g. ap-mumbai-1, us-phoenix-1 etc.
    XOneOriginRegion *string `mandatory:"false" contributesTo:"header" name:"x-one-origin-region"`

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

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

BinaryRequestBody implements the OCIRequest interface

func (ListCommitmentsRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (ListCommitmentsRequest) RetryPolicy

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

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

func (ListCommitmentsRequest) String

func (request ListCommitmentsRequest) String() string

func (ListCommitmentsRequest) ValidateEnumValue

func (request ListCommitmentsRequest) 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 ListCommitmentsResponse

ListCommitmentsResponse wrapper for the ListCommitments operation

type ListCommitmentsResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // A list of []CommitmentSummary instances
    Items []CommitmentSummary `presentIn:"body"`

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

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

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

HTTPResponse implements the OCIResponse interface

func (ListCommitmentsResponse) String

func (response ListCommitmentsResponse) String() string

type ListCommitmentsSortByEnum

ListCommitmentsSortByEnum Enum with underlying type: string

type ListCommitmentsSortByEnum string

Set of constants representing the allowable values for ListCommitmentsSortByEnum

const (
    ListCommitmentsSortByTimecreated ListCommitmentsSortByEnum = "TIMECREATED"
    ListCommitmentsSortByTimestart   ListCommitmentsSortByEnum = "TIMESTART"
)

func GetListCommitmentsSortByEnumValues

func GetListCommitmentsSortByEnumValues() []ListCommitmentsSortByEnum

GetListCommitmentsSortByEnumValues Enumerates the set of values for ListCommitmentsSortByEnum

func GetMappingListCommitmentsSortByEnum

func GetMappingListCommitmentsSortByEnum(val string) (ListCommitmentsSortByEnum, bool)

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

type ListCommitmentsSortOrderEnum

ListCommitmentsSortOrderEnum Enum with underlying type: string

type ListCommitmentsSortOrderEnum string

Set of constants representing the allowable values for ListCommitmentsSortOrderEnum

const (
    ListCommitmentsSortOrderAsc  ListCommitmentsSortOrderEnum = "ASC"
    ListCommitmentsSortOrderDesc ListCommitmentsSortOrderEnum = "DESC"
)

func GetListCommitmentsSortOrderEnumValues

func GetListCommitmentsSortOrderEnumValues() []ListCommitmentsSortOrderEnum

GetListCommitmentsSortOrderEnumValues Enumerates the set of values for ListCommitmentsSortOrderEnum

func GetMappingListCommitmentsSortOrderEnum

func GetMappingListCommitmentsSortOrderEnum(val string) (ListCommitmentsSortOrderEnum, bool)

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

type ListRateCardsRequest

ListRateCardsRequest wrapper for the ListRateCards operation

# See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.63.2/osubsubscription/ListRateCards.go.html to see an example of how to use ListRateCardsRequest.

type ListRateCardsRequest struct {

    // Line level Subscription Id
    SubscriptionId *string `mandatory:"true" contributesTo:"query" name:"subscriptionId"`

    // The OCID of the compartment.
    CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"`

    // This param is used to get the rate card(s) whose effective start date starts on or after a particular date
    TimeFrom *common.SDKTime `mandatory:"false" contributesTo:"query" name:"timeFrom"`

    // This param is used to get the rate card(s) whose effective end date ends on or before a particular date
    TimeTo *common.SDKTime `mandatory:"false" contributesTo:"query" name:"timeTo"`

    // This param is used to get the rate card(s) filterd by the partNumber
    PartNumber *string `mandatory:"false" contributesTo:"query" name:"partNumber"`

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

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

    // The sort order to use, either ascending (`ASC`) or descending (`DESC`).
    SortOrder ListRateCardsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"`

    // The field to sort by. You can provide one sort order (`sortOrder`).
    SortBy ListRateCardsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"`

    // 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 OCI home region name in case home region is not us-ashburn-1 (IAD), e.g. ap-mumbai-1, us-phoenix-1 etc.
    XOneOriginRegion *string `mandatory:"false" contributesTo:"header" name:"x-one-origin-region"`

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

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

BinaryRequestBody implements the OCIRequest interface

func (ListRateCardsRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (ListRateCardsRequest) RetryPolicy

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

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

func (ListRateCardsRequest) String

func (request ListRateCardsRequest) String() string

func (ListRateCardsRequest) ValidateEnumValue

func (request ListRateCardsRequest) 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 ListRateCardsResponse

ListRateCardsResponse wrapper for the ListRateCards operation

type ListRateCardsResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // A list of []RateCardSummary instances
    Items []RateCardSummary `presentIn:"body"`

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

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

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

HTTPResponse implements the OCIResponse interface

func (ListRateCardsResponse) String

func (response ListRateCardsResponse) String() string

type ListRateCardsSortByEnum

ListRateCardsSortByEnum Enum with underlying type: string

type ListRateCardsSortByEnum string

Set of constants representing the allowable values for ListRateCardsSortByEnum

const (
    ListRateCardsSortByTimecreated ListRateCardsSortByEnum = "TIMECREATED"
    ListRateCardsSortByTimestart   ListRateCardsSortByEnum = "TIMESTART"
)

func GetListRateCardsSortByEnumValues

func GetListRateCardsSortByEnumValues() []ListRateCardsSortByEnum

GetListRateCardsSortByEnumValues Enumerates the set of values for ListRateCardsSortByEnum

func GetMappingListRateCardsSortByEnum

func GetMappingListRateCardsSortByEnum(val string) (ListRateCardsSortByEnum, bool)

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

type ListRateCardsSortOrderEnum

ListRateCardsSortOrderEnum Enum with underlying type: string

type ListRateCardsSortOrderEnum string

Set of constants representing the allowable values for ListRateCardsSortOrderEnum

const (
    ListRateCardsSortOrderAsc  ListRateCardsSortOrderEnum = "ASC"
    ListRateCardsSortOrderDesc ListRateCardsSortOrderEnum = "DESC"
)

func GetListRateCardsSortOrderEnumValues

func GetListRateCardsSortOrderEnumValues() []ListRateCardsSortOrderEnum

GetListRateCardsSortOrderEnumValues Enumerates the set of values for ListRateCardsSortOrderEnum

func GetMappingListRateCardsSortOrderEnum

func GetMappingListRateCardsSortOrderEnum(val string) (ListRateCardsSortOrderEnum, bool)

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

type ListSubscriptionsRequest

ListSubscriptionsRequest wrapper for the ListSubscriptions operation

# See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.63.2/osubsubscription/ListSubscriptions.go.html to see an example of how to use ListSubscriptionsRequest.

type ListSubscriptionsRequest struct {

    // The OCID of the compartment.
    CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"`

    // The Plan Number
    PlanNumber *string `mandatory:"false" contributesTo:"query" name:"planNumber"`

    // Line level Subscription Id
    SubscriptionId *string `mandatory:"false" contributesTo:"query" name:"subscriptionId"`

    // Buyer Email Id
    BuyerEmail *string `mandatory:"false" contributesTo:"query" name:"buyerEmail"`

    // Boolean value to decide whether commitment services will be shown
    IsCommitInfoRequired *bool `mandatory:"false" contributesTo:"query" name:"isCommitInfoRequired"`

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

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

    // The sort order to use, either ascending (`ASC`) or descending (`DESC`).
    SortOrder ListSubscriptionsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"`

    // The field to sort by. You can provide one sort order (`sortOrder`).
    SortBy ListSubscriptionsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"`

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

    // This header is meant to be used only for internal purposes and will be ignored on any public request. The purpose of this header is
    // to help on Gateway to API calls identification.
    XOneGatewaySubscriptionId *string `mandatory:"false" contributesTo:"header" name:"x-one-gateway-subscription-id"`

    // The OCI home region name in case home region is not us-ashburn-1 (IAD), e.g. ap-mumbai-1, us-phoenix-1 etc.
    XOneOriginRegion *string `mandatory:"false" contributesTo:"header" name:"x-one-origin-region"`

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

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

BinaryRequestBody implements the OCIRequest interface

func (ListSubscriptionsRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (ListSubscriptionsRequest) RetryPolicy

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

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

func (ListSubscriptionsRequest) String

func (request ListSubscriptionsRequest) String() string

func (ListSubscriptionsRequest) ValidateEnumValue

func (request ListSubscriptionsRequest) 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 ListSubscriptionsResponse

ListSubscriptionsResponse wrapper for the ListSubscriptions operation

type ListSubscriptionsResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // A list of []SubscriptionSummary instances
    Items []SubscriptionSummary `presentIn:"body"`

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

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

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

HTTPResponse implements the OCIResponse interface

func (ListSubscriptionsResponse) String

func (response ListSubscriptionsResponse) String() string

type ListSubscriptionsSortByEnum

ListSubscriptionsSortByEnum Enum with underlying type: string

type ListSubscriptionsSortByEnum string

Set of constants representing the allowable values for ListSubscriptionsSortByEnum

const (
    ListSubscriptionsSortByTimecreated ListSubscriptionsSortByEnum = "TIMECREATED"
    ListSubscriptionsSortByTimestart   ListSubscriptionsSortByEnum = "TIMESTART"
)

func GetListSubscriptionsSortByEnumValues

func GetListSubscriptionsSortByEnumValues() []ListSubscriptionsSortByEnum

GetListSubscriptionsSortByEnumValues Enumerates the set of values for ListSubscriptionsSortByEnum

func GetMappingListSubscriptionsSortByEnum

func GetMappingListSubscriptionsSortByEnum(val string) (ListSubscriptionsSortByEnum, bool)

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

type ListSubscriptionsSortOrderEnum

ListSubscriptionsSortOrderEnum Enum with underlying type: string

type ListSubscriptionsSortOrderEnum string

Set of constants representing the allowable values for ListSubscriptionsSortOrderEnum

const (
    ListSubscriptionsSortOrderAsc  ListSubscriptionsSortOrderEnum = "ASC"
    ListSubscriptionsSortOrderDesc ListSubscriptionsSortOrderEnum = "DESC"
)

func GetListSubscriptionsSortOrderEnumValues

func GetListSubscriptionsSortOrderEnumValues() []ListSubscriptionsSortOrderEnum

GetListSubscriptionsSortOrderEnumValues Enumerates the set of values for ListSubscriptionsSortOrderEnum

func GetMappingListSubscriptionsSortOrderEnum

func GetMappingListSubscriptionsSortOrderEnum(val string) (ListSubscriptionsSortOrderEnum, bool)

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

type Product

Product Product description

type Product struct {

    // Product part numner
    PartNumber *string `mandatory:"true" json:"partNumber"`

    // Product name
    Name *string `mandatory:"true" json:"name"`

    // Unit of measure
    UnitOfMeasure *string `mandatory:"true" json:"unitOfMeasure"`

    // Metered service billing category
    BillingCategory *string `mandatory:"false" json:"billingCategory"`

    // Product category
    ProductCategory *string `mandatory:"false" json:"productCategory"`

    // Rate card part type of Product
    UcmRateCardPartType *string `mandatory:"false" json:"ucmRateCardPartType"`
}

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 RateCardSummary

RateCardSummary Rate Card Summary

type RateCardSummary struct {
    Product *Product `mandatory:"true" json:"product"`

    // Rate card net unit price
    NetUnitPrice *string `mandatory:"true" json:"netUnitPrice"`

    // Rate card overage price
    OveragePrice *string `mandatory:"true" json:"overagePrice"`

    // Rate card start date
    TimeStart *common.SDKTime `mandatory:"false" json:"timeStart"`

    // Rate card end date
    TimeEnd *common.SDKTime `mandatory:"false" json:"timeEnd"`

    // Rate card discretionary discount percentage
    DiscretionaryDiscountPercentage *string `mandatory:"false" json:"discretionaryDiscountPercentage"`

    // Rate card price tier flag
    IsTier *bool `mandatory:"false" json:"isTier"`

    Currency *Currency `mandatory:"false" json:"currency"`

    // List of tiered rate card prices
    RateCardTiers []RateCardTier `mandatory:"false" json:"rateCardTiers"`
}

func (RateCardSummary) String

func (m RateCardSummary) String() string

func (RateCardSummary) ValidateEnumValue

func (m RateCardSummary) 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 RateCardTier

RateCardTier Rate Card Tier details

type RateCardTier struct {

    // Rate card tier quantity range
    UpToQuantity *string `mandatory:"false" json:"upToQuantity"`

    // Rate card tier net unit price
    NetUnitPrice *string `mandatory:"false" json:"netUnitPrice"`

    // Rate card tier overage price
    OveragePrice *string `mandatory:"false" json:"overagePrice"`
}

func (RateCardTier) String

func (m RateCardTier) String() string

func (RateCardTier) ValidateEnumValue

func (m RateCardTier) 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 RatecardClient

RatecardClient a client for Ratecard

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

func NewRatecardClientWithConfigurationProvider

func NewRatecardClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client RatecardClient, err error)

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

func NewRatecardClientWithOboToken

func NewRatecardClientWithOboToken(configProvider common.ConfigurationProvider, oboToken string) (client RatecardClient, err error)

NewRatecardClientWithOboToken Creates a new default Ratecard 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 (*RatecardClient) ConfigurationProvider

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

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

func (RatecardClient) ListRateCards

func (client RatecardClient) ListRateCards(ctx context.Context, request ListRateCardsRequest) (response ListRateCardsResponse, err error)

ListRateCards List API that returns all ratecards for given Subscription Id and Account ID (if provided) and for a particular date range

# See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.63.2/osubsubscription/ListRateCards.go.html to see an example of how to use ListRateCards API.

func (*RatecardClient) SetRegion

func (client *RatecardClient) SetRegion(region string)

SetRegion overrides the region of this client.

type SubscribedServiceSummary

SubscribedServiceSummary Subscribed Service summary

type SubscribedServiceSummary struct {

    // SPM internal Subscribed Service ID
    Id *string `mandatory:"true" json:"id"`

    Product *SubscriptionProduct `mandatory:"false" json:"product"`

    // Subscribed service quantity
    Quantity *string `mandatory:"false" json:"quantity"`

    // Subscribed service status
    Status *string `mandatory:"false" json:"status"`

    // Subscribed service operation type
    OperationType *string `mandatory:"false" json:"operationType"`

    // Subscribed service net unit price
    NetUnitPrice *string `mandatory:"false" json:"netUnitPrice"`

    // Funded Allocation line value
    // example: 12000.00
    FundedAllocationValue *string `mandatory:"false" json:"fundedAllocationValue"`

    // This field contains the name of the partner to which the subscription belongs - depending on which the invoicing may differ
    PartnerTransactionType *string `mandatory:"false" json:"partnerTransactionType"`

    // Term value in Months
    TermValue *int64 `mandatory:"false" json:"termValue"`

    // Term value UOM
    TermValueUOM *string `mandatory:"false" json:"termValueUOM"`

    // Booking Opportunity Number of Subscribed Service
    BookingOptyNumber *string `mandatory:"false" json:"bookingOptyNumber"`

    // Subscribed service total value
    TotalValue *string `mandatory:"false" json:"totalValue"`

    // Sales Order Number associated to the subscribed service
    OrderNumber *int64 `mandatory:"false" json:"orderNumber"`

    // Subscribed service data center region
    DataCenterRegion *string `mandatory:"false" json:"dataCenterRegion"`

    // Subscribed service pricing model
    PricingModel *string `mandatory:"false" json:"pricingModel"`

    // Subscribed service program type
    ProgramType *string `mandatory:"false" json:"programType"`

    // Subscribed service promotion type
    PromoType *string `mandatory:"false" json:"promoType"`

    // Subscribed service CSI number
    Csi *int64 `mandatory:"false" json:"csi"`

    // Subscribed service intent to pay flag
    IsIntentToPay *bool `mandatory:"false" json:"isIntentToPay"`

    // Subscribed service start date
    TimeStart *common.SDKTime `mandatory:"false" json:"timeStart"`

    // Subscribed service end date
    TimeEnd *common.SDKTime `mandatory:"false" json:"timeEnd"`

    // List of Commitment services of a line
    CommitmentServices []Commitment `mandatory:"false" json:"commitmentServices"`
}

func (SubscribedServiceSummary) String

func (m SubscribedServiceSummary) String() string

func (SubscribedServiceSummary) ValidateEnumValue

func (m SubscribedServiceSummary) 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 SubscriptionClient

SubscriptionClient a client for Subscription

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

func NewSubscriptionClientWithConfigurationProvider

func NewSubscriptionClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client SubscriptionClient, err error)

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

func NewSubscriptionClientWithOboToken

func NewSubscriptionClientWithOboToken(configProvider common.ConfigurationProvider, oboToken string) (client SubscriptionClient, err error)

NewSubscriptionClientWithOboToken Creates a new default Subscription 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 (*SubscriptionClient) ConfigurationProvider

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

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

func (SubscriptionClient) ListSubscriptions

func (client SubscriptionClient) ListSubscriptions(ctx context.Context, request ListSubscriptionsRequest) (response ListSubscriptionsResponse, err error)

ListSubscriptions This list API returns all subscriptions for a given plan number or subscription id or buyer email and provides additional parameters to include ratecard and commitment details. This API expects exactly one of the above mentioned parameters as input. If more than one parameters are provided the API will throw a 400 - invalid parameters exception and if no parameters are provided it will throw a 400 - missing parameter exception

# See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.63.2/osubsubscription/ListSubscriptions.go.html to see an example of how to use ListSubscriptions API.

func (*SubscriptionClient) SetRegion

func (client *SubscriptionClient) SetRegion(region string)

SetRegion overrides the region of this client.

type SubscriptionProduct

SubscriptionProduct Product description

type SubscriptionProduct struct {

    // Product part numner
    PartNumber *string `mandatory:"true" json:"partNumber"`

    // Product name
    Name *string `mandatory:"true" json:"name"`

    // Unit of measure
    UnitOfMeasure *string `mandatory:"true" json:"unitOfMeasure"`

    // Product provisioning group
    ProvisioningGroup *string `mandatory:"false" json:"provisioningGroup"`
}

func (SubscriptionProduct) String

func (m SubscriptionProduct) String() string

func (SubscriptionProduct) ValidateEnumValue

func (m SubscriptionProduct) 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 SubscriptionSummary

SubscriptionSummary Subscription summary

type SubscriptionSummary struct {

    // Status of the plan
    Status *string `mandatory:"false" json:"status"`

    // Represents the date when the first service of the subscription was activated
    TimeStart *common.SDKTime `mandatory:"false" json:"timeStart"`

    // Represents the date when the last service of the subscription ends
    TimeEnd *common.SDKTime `mandatory:"false" json:"timeEnd"`

    Currency *Currency `mandatory:"false" json:"currency"`

    // Customer friendly service name provided by PRG
    ServiceName *string `mandatory:"false" json:"serviceName"`

    // List of Subscribed Services of the plan
    SubscribedServices []SubscribedServiceSummary `mandatory:"false" json:"subscribedServices"`
}

func (SubscriptionSummary) String

func (m SubscriptionSummary) String() string

func (SubscriptionSummary) ValidateEnumValue

func (m SubscriptionSummary) 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