...

Package usage

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

Overview ▾

Index ▾

func GetListProductsProducttypeEnumStringValues() []string
func GetListProductsSortByEnumStringValues() []string
func GetListProductsSortOrderEnumStringValues() []string
func GetListRedeemableUsersSortByEnumStringValues() []string
func GetListRedeemableUsersSortOrderEnumStringValues() []string
func GetListRedemptionsSortByEnumStringValues() []string
func GetListRedemptionsSortOrderEnumStringValues() []string
type CreateRedeemableUserDetails
    func (m CreateRedeemableUserDetails) String() string
    func (m CreateRedeemableUserDetails) ValidateEnumValue() (bool, error)
type CreateRedeemableUserRequest
    func (request CreateRedeemableUserRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request CreateRedeemableUserRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request CreateRedeemableUserRequest) RetryPolicy() *common.RetryPolicy
    func (request CreateRedeemableUserRequest) String() string
    func (request CreateRedeemableUserRequest) ValidateEnumValue() (bool, error)
type CreateRedeemableUserResponse
    func (response CreateRedeemableUserResponse) HTTPResponse() *http.Response
    func (response CreateRedeemableUserResponse) String() string
type DeleteRedeemableUserRequest
    func (request DeleteRedeemableUserRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request DeleteRedeemableUserRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request DeleteRedeemableUserRequest) RetryPolicy() *common.RetryPolicy
    func (request DeleteRedeemableUserRequest) String() string
    func (request DeleteRedeemableUserRequest) ValidateEnumValue() (bool, error)
type DeleteRedeemableUserResponse
    func (response DeleteRedeemableUserResponse) HTTPResponse() *http.Response
    func (response DeleteRedeemableUserResponse) String() string
type ListProductsProducttypeEnum
    func GetListProductsProducttypeEnumValues() []ListProductsProducttypeEnum
    func GetMappingListProductsProducttypeEnum(val string) (ListProductsProducttypeEnum, bool)
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 ListProductsSortByEnum
    func GetListProductsSortByEnumValues() []ListProductsSortByEnum
    func GetMappingListProductsSortByEnum(val string) (ListProductsSortByEnum, bool)
type ListProductsSortOrderEnum
    func GetListProductsSortOrderEnumValues() []ListProductsSortOrderEnum
    func GetMappingListProductsSortOrderEnum(val string) (ListProductsSortOrderEnum, bool)
type ListRedeemableUsersRequest
    func (request ListRedeemableUsersRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request ListRedeemableUsersRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request ListRedeemableUsersRequest) RetryPolicy() *common.RetryPolicy
    func (request ListRedeemableUsersRequest) String() string
    func (request ListRedeemableUsersRequest) ValidateEnumValue() (bool, error)
type ListRedeemableUsersResponse
    func (response ListRedeemableUsersResponse) HTTPResponse() *http.Response
    func (response ListRedeemableUsersResponse) String() string
type ListRedeemableUsersSortByEnum
    func GetListRedeemableUsersSortByEnumValues() []ListRedeemableUsersSortByEnum
    func GetMappingListRedeemableUsersSortByEnum(val string) (ListRedeemableUsersSortByEnum, bool)
type ListRedeemableUsersSortOrderEnum
    func GetListRedeemableUsersSortOrderEnumValues() []ListRedeemableUsersSortOrderEnum
    func GetMappingListRedeemableUsersSortOrderEnum(val string) (ListRedeemableUsersSortOrderEnum, bool)
type ListRedemptionsRequest
    func (request ListRedemptionsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request ListRedemptionsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request ListRedemptionsRequest) RetryPolicy() *common.RetryPolicy
    func (request ListRedemptionsRequest) String() string
    func (request ListRedemptionsRequest) ValidateEnumValue() (bool, error)
type ListRedemptionsResponse
    func (response ListRedemptionsResponse) HTTPResponse() *http.Response
    func (response ListRedemptionsResponse) String() string
type ListRedemptionsSortByEnum
    func GetListRedemptionsSortByEnumValues() []ListRedemptionsSortByEnum
    func GetMappingListRedemptionsSortByEnum(val string) (ListRedemptionsSortByEnum, bool)
type ListRedemptionsSortOrderEnum
    func GetListRedemptionsSortOrderEnumValues() []ListRedemptionsSortOrderEnum
    func GetMappingListRedemptionsSortOrderEnum(val string) (ListRedemptionsSortOrderEnum, bool)
type ListRewardsRequest
    func (request ListRewardsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request ListRewardsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request ListRewardsRequest) RetryPolicy() *common.RetryPolicy
    func (request ListRewardsRequest) String() string
    func (request ListRewardsRequest) ValidateEnumValue() (bool, error)
type ListRewardsResponse
    func (response ListRewardsResponse) HTTPResponse() *http.Response
    func (response ListRewardsResponse) String() string
type MonthlyRewardSummary
    func (m MonthlyRewardSummary) String() string
    func (m MonthlyRewardSummary) ValidateEnumValue() (bool, error)
type ProductCollection
    func (m ProductCollection) String() string
    func (m ProductCollection) ValidateEnumValue() (bool, error)
type ProductSummary
    func (m ProductSummary) String() string
    func (m ProductSummary) ValidateEnumValue() (bool, error)
type RedeemableUser
    func (m RedeemableUser) String() string
    func (m RedeemableUser) ValidateEnumValue() (bool, error)
type RedeemableUserCollection
    func (m RedeemableUserCollection) String() string
    func (m RedeemableUserCollection) ValidateEnumValue() (bool, error)
type RedeemableUserSummary
    func (m RedeemableUserSummary) String() string
    func (m RedeemableUserSummary) ValidateEnumValue() (bool, error)
type RedemptionCollection
    func (m RedemptionCollection) String() string
    func (m RedemptionCollection) ValidateEnumValue() (bool, error)
type RedemptionSummary
    func (m RedemptionSummary) String() string
    func (m RedemptionSummary) ValidateEnumValue() (bool, error)
type RewardCollection
    func (m RewardCollection) String() string
    func (m RewardCollection) ValidateEnumValue() (bool, error)
type RewardDetails
    func (m RewardDetails) String() string
    func (m RewardDetails) ValidateEnumValue() (bool, error)
type RewardsClient
    func NewRewardsClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client RewardsClient, err error)
    func NewRewardsClientWithOboToken(configProvider common.ConfigurationProvider, oboToken string) (client RewardsClient, err error)
    func (client *RewardsClient) ConfigurationProvider() *common.ConfigurationProvider
    func (client RewardsClient) CreateRedeemableUser(ctx context.Context, request CreateRedeemableUserRequest) (response CreateRedeemableUserResponse, err error)
    func (client RewardsClient) DeleteRedeemableUser(ctx context.Context, request DeleteRedeemableUserRequest) (response DeleteRedeemableUserResponse, err error)
    func (client RewardsClient) ListProducts(ctx context.Context, request ListProductsRequest) (response ListProductsResponse, err error)
    func (client RewardsClient) ListRedeemableUsers(ctx context.Context, request ListRedeemableUsersRequest) (response ListRedeemableUsersResponse, err error)
    func (client RewardsClient) ListRedemptions(ctx context.Context, request ListRedemptionsRequest) (response ListRedemptionsResponse, err error)
    func (client RewardsClient) ListRewards(ctx context.Context, request ListRewardsRequest) (response ListRewardsResponse, err error)
    func (client *RewardsClient) SetRegion(region string)

Package files

create_redeemable_user_details.go create_redeemable_user_request_response.go delete_redeemable_user_request_response.go list_products_request_response.go list_redeemable_users_request_response.go list_redemptions_request_response.go list_rewards_request_response.go monthly_reward_summary.go product_collection.go product_summary.go redeemable_user.go redeemable_user_collection.go redeemable_user_summary.go redemption_collection.go redemption_summary.go reward_collection.go reward_details.go usage_rewards_client.go

func GetListProductsProducttypeEnumStringValues

func GetListProductsProducttypeEnumStringValues() []string

GetListProductsProducttypeEnumStringValues Enumerates the set of values in String for ListProductsProducttypeEnum

func GetListProductsSortByEnumStringValues

func GetListProductsSortByEnumStringValues() []string

GetListProductsSortByEnumStringValues Enumerates the set of values in String for ListProductsSortByEnum

func GetListProductsSortOrderEnumStringValues

func GetListProductsSortOrderEnumStringValues() []string

GetListProductsSortOrderEnumStringValues Enumerates the set of values in String for ListProductsSortOrderEnum

func GetListRedeemableUsersSortByEnumStringValues

func GetListRedeemableUsersSortByEnumStringValues() []string

GetListRedeemableUsersSortByEnumStringValues Enumerates the set of values in String for ListRedeemableUsersSortByEnum

func GetListRedeemableUsersSortOrderEnumStringValues

func GetListRedeemableUsersSortOrderEnumStringValues() []string

GetListRedeemableUsersSortOrderEnumStringValues Enumerates the set of values in String for ListRedeemableUsersSortOrderEnum

func GetListRedemptionsSortByEnumStringValues

func GetListRedemptionsSortByEnumStringValues() []string

GetListRedemptionsSortByEnumStringValues Enumerates the set of values in String for ListRedemptionsSortByEnum

func GetListRedemptionsSortOrderEnumStringValues

func GetListRedemptionsSortOrderEnumStringValues() []string

GetListRedemptionsSortOrderEnumStringValues Enumerates the set of values in String for ListRedemptionsSortOrderEnum

type CreateRedeemableUserDetails

CreateRedeemableUserDetails A list of new user to be added to the list of user that can redeem rewards.

type CreateRedeemableUserDetails struct {

    // The list of new user to be added to the list of user that can redeem rewards.
    Items []RedeemableUser `mandatory:"false" json:"items"`
}

func (CreateRedeemableUserDetails) String

func (m CreateRedeemableUserDetails) String() string

func (CreateRedeemableUserDetails) ValidateEnumValue

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

CreateRedeemableUserRequest wrapper for the CreateRedeemableUser operation

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.24.0/usage/CreateRedeemableUser.go.html to see an example of how to use CreateRedeemableUserRequest.

type CreateRedeemableUserRequest struct {

    // CreateRedeemableUserDetails information.
    CreateRedeemableUserDetails `contributesTo:"body"`

    // The OCID of the tenancy.
    TenancyId *string `mandatory:"true" contributesTo:"query" name:"tenancyId"`

    // The subscription ID for which rewards information is requested for.
    SubscriptionId *string `mandatory:"true" contributesTo:"path" name:"subscriptionId"`

    // The user ID of the person to send a copy of an email.
    UserId *string `mandatory:"false" contributesTo:"query" name:"userId"`

    // 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 will be updated or deleted, only if the etag you
    // provide matches the resource's current etag value.
    IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"`

    // A token that uniquely identifies a request so it can be retried in case of a timeout or
    // server error, without risk of executing that same action again. Retry tokens expire after 24
    // hours, but can be invalidated before then due to conflicting operations. For example, if a resource
    // has been deleted and purged from the system, then a retry of the original creation request
    // might be rejected.
    OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"`

    // Metadata about the request. This information will not be transmitted to the service, but
    // represents information that the SDK will consume to drive retry behavior.
    RequestMetadata common.RequestMetadata
}

func (CreateRedeemableUserRequest) BinaryRequestBody

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

BinaryRequestBody implements the OCIRequest interface

func (CreateRedeemableUserRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (CreateRedeemableUserRequest) RetryPolicy

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

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

func (CreateRedeemableUserRequest) String

func (request CreateRedeemableUserRequest) String() string

func (CreateRedeemableUserRequest) ValidateEnumValue

func (request CreateRedeemableUserRequest) 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 CreateRedeemableUserResponse

CreateRedeemableUserResponse wrapper for the CreateRedeemableUser operation

type CreateRedeemableUserResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // The RedeemableUserCollection instance
    RedeemableUserCollection `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 (CreateRedeemableUserResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (CreateRedeemableUserResponse) String

func (response CreateRedeemableUserResponse) String() string

type DeleteRedeemableUserRequest

DeleteRedeemableUserRequest wrapper for the DeleteRedeemableUser operation

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.24.0/usage/DeleteRedeemableUser.go.html to see an example of how to use DeleteRedeemableUserRequest.

type DeleteRedeemableUserRequest struct {

    // The email ID that needs to be deleted.
    EmailId *string `mandatory:"true" contributesTo:"query" name:"emailId"`

    // The OCID of the tenancy.
    TenancyId *string `mandatory:"true" contributesTo:"query" name:"tenancyId"`

    // The subscription ID for which rewards information is requested for.
    SubscriptionId *string `mandatory:"true" contributesTo:"path" name:"subscriptionId"`

    // 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 will be updated or deleted, only if the etag you
    // provide matches the resource's current etag value.
    IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"`

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

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

BinaryRequestBody implements the OCIRequest interface

func (DeleteRedeemableUserRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (DeleteRedeemableUserRequest) RetryPolicy

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

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

func (DeleteRedeemableUserRequest) String

func (request DeleteRedeemableUserRequest) String() string

func (DeleteRedeemableUserRequest) ValidateEnumValue

func (request DeleteRedeemableUserRequest) 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 DeleteRedeemableUserResponse

DeleteRedeemableUserResponse wrapper for the DeleteRedeemableUser operation

type DeleteRedeemableUserResponse 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 (DeleteRedeemableUserResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (DeleteRedeemableUserResponse) String

func (response DeleteRedeemableUserResponse) String() string

type ListProductsProducttypeEnum

ListProductsProducttypeEnum Enum with underlying type: string

type ListProductsProducttypeEnum string

Set of constants representing the allowable values for ListProductsProducttypeEnum

const (
    ListProductsProducttypeAll        ListProductsProducttypeEnum = "ALL"
    ListProductsProducttypeEligible   ListProductsProducttypeEnum = "ELIGIBLE"
    ListProductsProducttypeIneligible ListProductsProducttypeEnum = "INELIGIBLE"
)

func GetListProductsProducttypeEnumValues

func GetListProductsProducttypeEnumValues() []ListProductsProducttypeEnum

GetListProductsProducttypeEnumValues Enumerates the set of values for ListProductsProducttypeEnum

func GetMappingListProductsProducttypeEnum

func GetMappingListProductsProducttypeEnum(val string) (ListProductsProducttypeEnum, bool)

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

type ListProductsRequest

ListProductsRequest wrapper for the ListProducts operation

See also

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

type ListProductsRequest struct {

    // The OCID of the tenancy.
    TenancyId *string `mandatory:"true" contributesTo:"query" name:"tenancyId"`

    // The subscription ID for which rewards information is requested for.
    SubscriptionId *string `mandatory:"true" contributesTo:"path" name:"subscriptionId"`

    // The SPM Identifier for the usage period.
    UsagePeriodKey *string `mandatory:"true" contributesTo:"query" name:"usagePeriodKey"`

    // 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 call.
    Page *string `mandatory:"false" contributesTo:"query" name:"page"`

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

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

    // The field to sort by. Supports one sort order.
    SortBy ListProductsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"`

    // The field to specify the type of product.
    Producttype ListProductsProducttypeEnum `mandatory:"false" contributesTo:"query" name:"producttype" omitEmpty:"true"`

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

func (ListProductsResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (ListProductsResponse) String

func (response ListProductsResponse) String() string

type ListProductsSortByEnum

ListProductsSortByEnum Enum with underlying type: string

type ListProductsSortByEnum string

Set of constants representing the allowable values for ListProductsSortByEnum

const (
    ListProductsSortByTimecreated ListProductsSortByEnum = "TIMECREATED"
    ListProductsSortByTimestart   ListProductsSortByEnum = "TIMESTART"
)

func GetListProductsSortByEnumValues

func GetListProductsSortByEnumValues() []ListProductsSortByEnum

GetListProductsSortByEnumValues Enumerates the set of values for ListProductsSortByEnum

func GetMappingListProductsSortByEnum

func GetMappingListProductsSortByEnum(val string) (ListProductsSortByEnum, bool)

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

type ListProductsSortOrderEnum

ListProductsSortOrderEnum Enum with underlying type: string

type ListProductsSortOrderEnum string

Set of constants representing the allowable values for ListProductsSortOrderEnum

const (
    ListProductsSortOrderAsc  ListProductsSortOrderEnum = "ASC"
    ListProductsSortOrderDesc ListProductsSortOrderEnum = "DESC"
)

func GetListProductsSortOrderEnumValues

func GetListProductsSortOrderEnumValues() []ListProductsSortOrderEnum

GetListProductsSortOrderEnumValues Enumerates the set of values for ListProductsSortOrderEnum

func GetMappingListProductsSortOrderEnum

func GetMappingListProductsSortOrderEnum(val string) (ListProductsSortOrderEnum, bool)

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

type ListRedeemableUsersRequest

ListRedeemableUsersRequest wrapper for the ListRedeemableUsers operation

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.24.0/usage/ListRedeemableUsers.go.html to see an example of how to use ListRedeemableUsersRequest.

type ListRedeemableUsersRequest struct {

    // The OCID of the tenancy.
    TenancyId *string `mandatory:"true" contributesTo:"query" name:"tenancyId"`

    // The subscription ID for which rewards information is requested for.
    SubscriptionId *string `mandatory:"true" contributesTo:"path" name:"subscriptionId"`

    // 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 call.
    Page *string `mandatory:"false" contributesTo:"query" name:"page"`

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

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

    // The field to sort by. Supports one sort order.
    SortBy ListRedeemableUsersSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"`

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

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

BinaryRequestBody implements the OCIRequest interface

func (ListRedeemableUsersRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (ListRedeemableUsersRequest) RetryPolicy

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

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

func (ListRedeemableUsersRequest) String

func (request ListRedeemableUsersRequest) String() string

func (ListRedeemableUsersRequest) ValidateEnumValue

func (request ListRedeemableUsersRequest) 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 ListRedeemableUsersResponse

ListRedeemableUsersResponse wrapper for the ListRedeemableUsers operation

type ListRedeemableUsersResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // A list of RedeemableUserCollection instances
    RedeemableUserCollection `presentIn:"body"`

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

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

func (ListRedeemableUsersResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (ListRedeemableUsersResponse) String

func (response ListRedeemableUsersResponse) String() string

type ListRedeemableUsersSortByEnum

ListRedeemableUsersSortByEnum Enum with underlying type: string

type ListRedeemableUsersSortByEnum string

Set of constants representing the allowable values for ListRedeemableUsersSortByEnum

const (
    ListRedeemableUsersSortByTimecreated ListRedeemableUsersSortByEnum = "TIMECREATED"
    ListRedeemableUsersSortByTimestart   ListRedeemableUsersSortByEnum = "TIMESTART"
)

func GetListRedeemableUsersSortByEnumValues

func GetListRedeemableUsersSortByEnumValues() []ListRedeemableUsersSortByEnum

GetListRedeemableUsersSortByEnumValues Enumerates the set of values for ListRedeemableUsersSortByEnum

func GetMappingListRedeemableUsersSortByEnum

func GetMappingListRedeemableUsersSortByEnum(val string) (ListRedeemableUsersSortByEnum, bool)

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

type ListRedeemableUsersSortOrderEnum

ListRedeemableUsersSortOrderEnum Enum with underlying type: string

type ListRedeemableUsersSortOrderEnum string

Set of constants representing the allowable values for ListRedeemableUsersSortOrderEnum

const (
    ListRedeemableUsersSortOrderAsc  ListRedeemableUsersSortOrderEnum = "ASC"
    ListRedeemableUsersSortOrderDesc ListRedeemableUsersSortOrderEnum = "DESC"
)

func GetListRedeemableUsersSortOrderEnumValues

func GetListRedeemableUsersSortOrderEnumValues() []ListRedeemableUsersSortOrderEnum

GetListRedeemableUsersSortOrderEnumValues Enumerates the set of values for ListRedeemableUsersSortOrderEnum

func GetMappingListRedeemableUsersSortOrderEnum

func GetMappingListRedeemableUsersSortOrderEnum(val string) (ListRedeemableUsersSortOrderEnum, bool)

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

type ListRedemptionsRequest

ListRedemptionsRequest wrapper for the ListRedemptions operation

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.24.0/usage/ListRedemptions.go.html to see an example of how to use ListRedemptionsRequest.

type ListRedemptionsRequest struct {

    // The OCID of the tenancy.
    TenancyId *string `mandatory:"true" contributesTo:"query" name:"tenancyId"`

    // The subscription ID for which rewards information is requested for.
    SubscriptionId *string `mandatory:"true" contributesTo:"path" name:"subscriptionId"`

    // The starting redeemed date filter for the redemption history.
    TimeRedeemedGreaterThanOrEqualTo *common.SDKTime `mandatory:"false" contributesTo:"query" name:"timeRedeemedGreaterThanOrEqualTo"`

    // The ending redeemed date filter for the redemption history.
    TimeRedeemedLessThan *common.SDKTime `mandatory:"false" contributesTo:"query" name:"timeRedeemedLessThan"`

    // 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 call.
    Page *string `mandatory:"false" contributesTo:"query" name:"page"`

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

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

    // The field to be used only for list redemptions API. Supports one sort order.
    SortBy ListRedemptionsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"`

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

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

BinaryRequestBody implements the OCIRequest interface

func (ListRedemptionsRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (ListRedemptionsRequest) RetryPolicy

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

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

func (ListRedemptionsRequest) String

func (request ListRedemptionsRequest) String() string

func (ListRedemptionsRequest) ValidateEnumValue

func (request ListRedemptionsRequest) 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 ListRedemptionsResponse

ListRedemptionsResponse wrapper for the ListRedemptions operation

type ListRedemptionsResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // A list of RedemptionCollection instances
    RedemptionCollection `presentIn:"body"`

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

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

func (ListRedemptionsResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (ListRedemptionsResponse) String

func (response ListRedemptionsResponse) String() string

type ListRedemptionsSortByEnum

ListRedemptionsSortByEnum Enum with underlying type: string

type ListRedemptionsSortByEnum string

Set of constants representing the allowable values for ListRedemptionsSortByEnum

const (
    ListRedemptionsSortByTimeredeemed ListRedemptionsSortByEnum = "TIMEREDEEMED"
)

func GetListRedemptionsSortByEnumValues

func GetListRedemptionsSortByEnumValues() []ListRedemptionsSortByEnum

GetListRedemptionsSortByEnumValues Enumerates the set of values for ListRedemptionsSortByEnum

func GetMappingListRedemptionsSortByEnum

func GetMappingListRedemptionsSortByEnum(val string) (ListRedemptionsSortByEnum, bool)

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

type ListRedemptionsSortOrderEnum

ListRedemptionsSortOrderEnum Enum with underlying type: string

type ListRedemptionsSortOrderEnum string

Set of constants representing the allowable values for ListRedemptionsSortOrderEnum

const (
    ListRedemptionsSortOrderAsc  ListRedemptionsSortOrderEnum = "ASC"
    ListRedemptionsSortOrderDesc ListRedemptionsSortOrderEnum = "DESC"
)

func GetListRedemptionsSortOrderEnumValues

func GetListRedemptionsSortOrderEnumValues() []ListRedemptionsSortOrderEnum

GetListRedemptionsSortOrderEnumValues Enumerates the set of values for ListRedemptionsSortOrderEnum

func GetMappingListRedemptionsSortOrderEnum

func GetMappingListRedemptionsSortOrderEnum(val string) (ListRedemptionsSortOrderEnum, bool)

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

type ListRewardsRequest

ListRewardsRequest wrapper for the ListRewards operation

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.24.0/usage/ListRewards.go.html to see an example of how to use ListRewardsRequest.

type ListRewardsRequest struct {

    // The OCID of the tenancy.
    TenancyId *string `mandatory:"true" contributesTo:"query" name:"tenancyId"`

    // The subscription ID for which rewards information is requested for.
    SubscriptionId *string `mandatory:"true" contributesTo:"path" name:"subscriptionId"`

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

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

BinaryRequestBody implements the OCIRequest interface

func (ListRewardsRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (ListRewardsRequest) RetryPolicy

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

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

func (ListRewardsRequest) String

func (request ListRewardsRequest) String() string

func (ListRewardsRequest) ValidateEnumValue

func (request ListRewardsRequest) 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 ListRewardsResponse

ListRewardsResponse wrapper for the ListRewards operation

type ListRewardsResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // The RewardCollection instance
    RewardCollection `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 (ListRewardsResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (ListRewardsResponse) String

func (response ListRewardsResponse) String() string

type MonthlyRewardSummary

MonthlyRewardSummary Object describing the monthly rewards summary for the requested subscription ID.

type MonthlyRewardSummary struct {

    // The number of rewards available for a specific usage period.
    AvailableRewards *float32 `mandatory:"false" json:"availableRewards"`

    // The number of rewards redeemed for a specific month.
    RedeemedRewards *float32 `mandatory:"false" json:"redeemedRewards"`

    // The number of rewards earned for the specific usage period.
    EarnedRewards *float32 `mandatory:"false" json:"earnedRewards"`

    // The boolean parameter to indicate whether or not the available rewards are manually posted.
    IsManual *bool `mandatory:"false" json:"isManual"`

    // The date and time when rewards expire.
    TimeRewardsExpired *common.SDKTime `mandatory:"false" json:"timeRewardsExpired"`

    // The date and time when rewards accrue.
    TimeRewardsEarned *common.SDKTime `mandatory:"false" json:"timeRewardsEarned"`

    // The start date and time for the usage period.
    TimeUsageStarted *common.SDKTime `mandatory:"false" json:"timeUsageStarted"`

    // The end date and time for the usage period.
    TimeUsageEnded *common.SDKTime `mandatory:"false" json:"timeUsageEnded"`

    // The usage amount for the usage period.
    UsageAmount *float64 `mandatory:"false" json:"usageAmount"`

    // The eligible usage amount for the usage period.
    EligibleUsageAmount *float64 `mandatory:"false" json:"eligibleUsageAmount"`

    // The ineligible usage amount for the usage period.
    IneligibleUsageAmount *float64 `mandatory:"false" json:"ineligibleUsageAmount"`

    // The usage period ID.
    UsagePeriodKey *string `mandatory:"false" json:"usagePeriodKey"`
}

func (MonthlyRewardSummary) String

func (m MonthlyRewardSummary) String() string

func (MonthlyRewardSummary) ValidateEnumValue

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

ProductCollection A product list.

type ProductCollection struct {

    // The list of product rewards summaries.
    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 ProductSummary

ProductSummary Provides details about product rewards and the usage amount.

type ProductSummary struct {

    // The rate card product number.
    ProductNumber *string `mandatory:"false" json:"productNumber"`

    // The rate card product name.
    ProductName *string `mandatory:"false" json:"productName"`

    // The rate card product usage amount.
    UsageAmount *float64 `mandatory:"false" json:"usageAmount"`

    // The earned rewards for the product.
    EarnedRewards *float32 `mandatory:"false" json:"earnedRewards"`

    // The boolean parameter to indicate if the product is eligible to earn rewards.
    IsEligibleToEarnRewards *bool `mandatory:"false" json:"isEligibleToEarnRewards"`
}

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 RedeemableUser

RedeemableUser The summary of a user that can redeem rewards.

type RedeemableUser struct {

    // The email ID for a user that can redeem rewards.
    EmailId *string `mandatory:"true" json:"emailId"`

    // The first name of the user that can redeem rewards.
    FirstName *string `mandatory:"false" json:"firstName"`

    // The last name of the user that can redeem rewards.
    LastName *string `mandatory:"false" json:"lastName"`
}

func (RedeemableUser) String

func (m RedeemableUser) String() string

func (RedeemableUser) ValidateEnumValue

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

RedeemableUserCollection The list of user summary that can redeem rewards.

type RedeemableUserCollection struct {

    // The list of user summary that can redeem rewards.
    Items []RedeemableUserSummary `mandatory:"true" json:"items"`
}

func (RedeemableUserCollection) String

func (m RedeemableUserCollection) String() string

func (RedeemableUserCollection) ValidateEnumValue

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

RedeemableUserSummary User summary that can redeem rewards.

type RedeemableUserSummary struct {

    // The email ID of the user that can redeem rewards.
    EmailId *string `mandatory:"false" json:"emailId"`

    // The first name of the user that can redeem rewards.
    FirstName *string `mandatory:"false" json:"firstName"`

    // The last name of the user that can redeem rewards.
    LastName *string `mandatory:"false" json:"lastName"`
}

func (RedeemableUserSummary) String

func (m RedeemableUserSummary) String() string

func (RedeemableUserSummary) ValidateEnumValue

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

RedemptionCollection The list of redemption summary for the requested subscription ID and date range.

type RedemptionCollection struct {

    // The list of redemption summary.
    Items []RedemptionSummary `mandatory:"true" json:"items"`
}

func (RedemptionCollection) String

func (m RedemptionCollection) String() string

func (RedemptionCollection) ValidateEnumValue

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

RedemptionSummary The redemption summary for the requested subscription ID and date range.

type RedemptionSummary struct {

    // It provides redeem date.
    TimeRedeemed *common.SDKTime `mandatory:"false" json:"timeRedeemed"`

    // It provides the redemption email id.
    RedemptionEmail *string `mandatory:"false" json:"redemptionEmail"`

    // The redemption code used in the Billing Center during the reward redemption process.
    RedemptionCode *string `mandatory:"false" json:"redemptionCode"`

    // It provides the invoice number against the redemption.
    InvoiceNumber *string `mandatory:"false" json:"invoiceNumber"`

    // It provides the invoice total amount of given redemption.
    InvoiceTotalAmount *float64 `mandatory:"false" json:"invoiceTotalAmount"`

    // The currency associated with invoice.
    InvoiceCurrency *string `mandatory:"false" json:"invoiceCurrency"`

    // It provides the redeemed rewards in invoice currency.
    RedeemedRewards *float32 `mandatory:"false" json:"redeemedRewards"`

    // It provides the redeemed rewards in base/subscription currency.
    BaseRewards *float32 `mandatory:"false" json:"baseRewards"`

    // It provides the fxRate between invoice currency and subscription currency.
    FxRate *float64 `mandatory:"false" json:"fxRate"`

    // It provides the invoice date.
    TimeInvoiced *common.SDKTime `mandatory:"false" json:"timeInvoiced"`
}

func (RedemptionSummary) String

func (m RedemptionSummary) String() string

func (RedemptionSummary) ValidateEnumValue

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

RewardCollection The response object for the ListRewards API call. Provides information about the subscription rewards.

type RewardCollection struct {
    Summary *RewardDetails `mandatory:"true" json:"summary"`

    // The monthly summary of rewards.
    Items []MonthlyRewardSummary `mandatory:"false" json:"items"`
}

func (RewardCollection) String

func (m RewardCollection) String() string

func (RewardCollection) ValidateEnumValue

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

RewardDetails The overall monthly reward summary.

type RewardDetails struct {

    // The OCID of the target tenancy.
    TenancyId *string `mandatory:"false" json:"tenancyId"`

    // The entitlement ID from MQS, which is the same as the subcription ID.
    SubscriptionId *string `mandatory:"false" json:"subscriptionId"`

    // The currency unit for the reward amount.
    Currency *string `mandatory:"false" json:"currency"`

    // The current Rewards percentage in decimal format.
    RewardsRate *float64 `mandatory:"false" json:"rewardsRate"`

    // The total number of available rewards for a given subscription ID.
    TotalRewardsAvailable *float32 `mandatory:"false" json:"totalRewardsAvailable"`

    // The redemption code used in the Billing Center during the reward redemption process.
    RedemptionCode *string `mandatory:"false" json:"redemptionCode"`
}

func (RewardDetails) String

func (m RewardDetails) String() string

func (RewardDetails) ValidateEnumValue

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

RewardsClient a client for Rewards

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

func NewRewardsClientWithConfigurationProvider

func NewRewardsClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client RewardsClient, err error)

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

func NewRewardsClientWithOboToken

func NewRewardsClientWithOboToken(configProvider common.ConfigurationProvider, oboToken string) (client RewardsClient, err error)

NewRewardsClientWithOboToken Creates a new default Rewards 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 (*RewardsClient) ConfigurationProvider

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

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

func (RewardsClient) CreateRedeemableUser

func (client RewardsClient) CreateRedeemableUser(ctx context.Context, request CreateRedeemableUserRequest) (response CreateRedeemableUserResponse, err error)

CreateRedeemableUser Adds the list of redeemable user summary for a subscription ID.

See also

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

func (RewardsClient) DeleteRedeemableUser

func (client RewardsClient) DeleteRedeemableUser(ctx context.Context, request DeleteRedeemableUserRequest) (response DeleteRedeemableUserResponse, err error)

DeleteRedeemableUser Deletes the list of redeemable user email ID for a subscription ID.

See also

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

func (RewardsClient) ListProducts

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

ListProducts Provides product information that is specific to a reward usage period and its usage details.

See also

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

func (RewardsClient) ListRedeemableUsers

func (client RewardsClient) ListRedeemableUsers(ctx context.Context, request ListRedeemableUsersRequest) (response ListRedeemableUsersResponse, err error)

ListRedeemableUsers Provides the list of user summary that can redeem rewards for the given subscription ID.

See also

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

func (RewardsClient) ListRedemptions

func (client RewardsClient) ListRedemptions(ctx context.Context, request ListRedemptionsRequest) (response ListRedemptionsResponse, err error)

ListRedemptions Returns the list of redemption for the subscription ID.

See also

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

func (RewardsClient) ListRewards

func (client RewardsClient) ListRewards(ctx context.Context, request ListRewardsRequest) (response ListRewardsResponse, err error)

ListRewards Returns the list of rewards for a subscription ID.

See also

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

func (*RewardsClient) SetRegion

func (client *RewardsClient) SetRegion(region string)

SetRegion overrides the region of this client.