func GetListProductsProducttypeEnumStringValues() []string
GetListProductsProducttypeEnumStringValues Enumerates the set of values in String for ListProductsProducttypeEnum
func GetListProductsSortByEnumStringValues() []string
GetListProductsSortByEnumStringValues Enumerates the set of values in String for ListProductsSortByEnum
func GetListProductsSortOrderEnumStringValues() []string
GetListProductsSortOrderEnumStringValues Enumerates the set of values in String for ListProductsSortOrderEnum
func GetListRedeemableUsersSortByEnumStringValues() []string
GetListRedeemableUsersSortByEnumStringValues Enumerates the set of values in String for ListRedeemableUsersSortByEnum
func GetListRedeemableUsersSortOrderEnumStringValues() []string
GetListRedeemableUsersSortOrderEnumStringValues Enumerates the set of values in String for ListRedeemableUsersSortOrderEnum
func GetListRedemptionsSortByEnumStringValues() []string
GetListRedemptionsSortByEnumStringValues Enumerates the set of values in String for ListRedemptionsSortByEnum
func GetListRedemptionsSortOrderEnumStringValues() []string
GetListRedemptionsSortOrderEnumStringValues Enumerates the set of values in String for ListRedemptionsSortOrderEnum
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 (m CreateRedeemableUserDetails) String() string
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
CreateRedeemableUserRequest wrapper for the CreateRedeemableUser operation
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.35.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 (request CreateRedeemableUserRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request CreateRedeemableUserRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request CreateRedeemableUserRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request CreateRedeemableUserRequest) String() string
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
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 (response CreateRedeemableUserResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response CreateRedeemableUserResponse) String() string
DeleteRedeemableUserRequest wrapper for the DeleteRedeemableUser operation
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.35.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 (request DeleteRedeemableUserRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request DeleteRedeemableUserRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request DeleteRedeemableUserRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request DeleteRedeemableUserRequest) String() string
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
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 (response DeleteRedeemableUserResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response DeleteRedeemableUserResponse) String() string
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() []ListProductsProducttypeEnum
GetListProductsProducttypeEnumValues Enumerates the set of values for ListProductsProducttypeEnum
func GetMappingListProductsProducttypeEnum(val string) (ListProductsProducttypeEnum, bool)
GetMappingListProductsProducttypeEnum performs case Insensitive comparison on enum value and return the desired enum
ListProductsRequest wrapper for the ListProducts operation
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.35.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 (request ListProductsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request ListProductsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request ListProductsRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request ListProductsRequest) String() string
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
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 (response ListProductsResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response ListProductsResponse) String() string
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() []ListProductsSortByEnum
GetListProductsSortByEnumValues Enumerates the set of values for ListProductsSortByEnum
func GetMappingListProductsSortByEnum(val string) (ListProductsSortByEnum, bool)
GetMappingListProductsSortByEnum performs case Insensitive comparison on enum value and return the desired enum
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() []ListProductsSortOrderEnum
GetListProductsSortOrderEnumValues Enumerates the set of values for ListProductsSortOrderEnum
func GetMappingListProductsSortOrderEnum(val string) (ListProductsSortOrderEnum, bool)
GetMappingListProductsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum
ListRedeemableUsersRequest wrapper for the ListRedeemableUsers operation
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.35.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 (request ListRedeemableUsersRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request ListRedeemableUsersRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request ListRedeemableUsersRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request ListRedeemableUsersRequest) String() string
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
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 (response ListRedeemableUsersResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response ListRedeemableUsersResponse) String() string
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() []ListRedeemableUsersSortByEnum
GetListRedeemableUsersSortByEnumValues Enumerates the set of values for ListRedeemableUsersSortByEnum
func GetMappingListRedeemableUsersSortByEnum(val string) (ListRedeemableUsersSortByEnum, bool)
GetMappingListRedeemableUsersSortByEnum performs case Insensitive comparison on enum value and return the desired enum
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() []ListRedeemableUsersSortOrderEnum
GetListRedeemableUsersSortOrderEnumValues Enumerates the set of values for ListRedeemableUsersSortOrderEnum
func GetMappingListRedeemableUsersSortOrderEnum(val string) (ListRedeemableUsersSortOrderEnum, bool)
GetMappingListRedeemableUsersSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum
ListRedemptionsRequest wrapper for the ListRedemptions operation
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.35.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 (request ListRedemptionsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request ListRedemptionsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request ListRedemptionsRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request ListRedemptionsRequest) String() string
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
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 (response ListRedemptionsResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response ListRedemptionsResponse) String() string
ListRedemptionsSortByEnum Enum with underlying type: string
type ListRedemptionsSortByEnum string
Set of constants representing the allowable values for ListRedemptionsSortByEnum
const ( ListRedemptionsSortByTimeredeemed ListRedemptionsSortByEnum = "TIMEREDEEMED" )
func GetListRedemptionsSortByEnumValues() []ListRedemptionsSortByEnum
GetListRedemptionsSortByEnumValues Enumerates the set of values for ListRedemptionsSortByEnum
func GetMappingListRedemptionsSortByEnum(val string) (ListRedemptionsSortByEnum, bool)
GetMappingListRedemptionsSortByEnum performs case Insensitive comparison on enum value and return the desired enum
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() []ListRedemptionsSortOrderEnum
GetListRedemptionsSortOrderEnumValues Enumerates the set of values for ListRedemptionsSortOrderEnum
func GetMappingListRedemptionsSortOrderEnum(val string) (ListRedemptionsSortOrderEnum, bool)
GetMappingListRedemptionsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum
ListRewardsRequest wrapper for the ListRewards operation
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.35.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 (request ListRewardsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request ListRewardsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request ListRewardsRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request ListRewardsRequest) String() string
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
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 (response ListRewardsResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response ListRewardsResponse) String() string
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 (m MonthlyRewardSummary) String() string
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
ProductCollection A product list.
type ProductCollection struct { // The list of product rewards summaries. Items []ProductSummary `mandatory:"true" json:"items"` }
func (m ProductCollection) String() string
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
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 (m ProductSummary) String() string
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
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 (m RedeemableUser) String() string
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
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 (m RedeemableUserCollection) String() string
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
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 (m RedeemableUserSummary) String() string
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
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 (m RedemptionCollection) String() string
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
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 (m RedemptionSummary) String() string
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
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 (m RewardCollection) String() string
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
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 (m RewardDetails) String() string
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
RewardsClient a client for Rewards
type RewardsClient struct { common.BaseClient // contains filtered or unexported fields }
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(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 (client *RewardsClient) ConfigurationProvider() *common.ConfigurationProvider
ConfigurationProvider the ConfigurationProvider used in this client, or null if none set
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.
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.35.0/usage/CreateRedeemableUser.go.html to see an example of how to use CreateRedeemableUser API.
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.
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.35.0/usage/DeleteRedeemableUser.go.html to see an example of how to use DeleteRedeemableUser API.
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.
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.35.0/usage/ListProducts.go.html to see an example of how to use ListProducts API.
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.
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.35.0/usage/ListRedeemableUsers.go.html to see an example of how to use ListRedeemableUsers API.
func (client RewardsClient) ListRedemptions(ctx context.Context, request ListRedemptionsRequest) (response ListRedemptionsResponse, err error)
ListRedemptions Returns the list of redemption for the subscription ID.
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.35.0/usage/ListRedemptions.go.html to see an example of how to use ListRedemptions API.
func (client RewardsClient) ListRewards(ctx context.Context, request ListRewardsRequest) (response ListRewardsResponse, err error)
ListRewards Returns the list of rewards for a subscription ID.
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.35.0/usage/ListRewards.go.html to see an example of how to use ListRewards API.
func (client *RewardsClient) SetRegion(region string)
SetRegion overrides the region of this client.