...

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
func GetListResourceQuotaSortByEnumStringValues() []string
func GetListResourceQuotaSortOrderEnumStringValues() []string
func GetListResourcesSortByEnumStringValues() []string
func GetListResourcesSortOrderEnumStringValues() []string
func GetListUsageLimitsSortByEnumStringValues() []string
func GetListUsageLimitsSortOrderEnumStringValues() []string
func GetResourceSummaryUsageDataTypeEnumStringValues() []string
func GetUsageLimitSummaryActionEnumStringValues() []string
func GetUsageLimitSummaryLifecycleStateEnumStringValues() []string
func GetUsageLimitSummaryLimitTypeEnumStringValues() []string
func GetUsageLimitSummaryValueTypeEnumStringValues() []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 ListResourceQuotaRequest
    func (request ListResourceQuotaRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request ListResourceQuotaRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request ListResourceQuotaRequest) RetryPolicy() *common.RetryPolicy
    func (request ListResourceQuotaRequest) String() string
    func (request ListResourceQuotaRequest) ValidateEnumValue() (bool, error)
type ListResourceQuotaResponse
    func (response ListResourceQuotaResponse) HTTPResponse() *http.Response
    func (response ListResourceQuotaResponse) String() string
type ListResourceQuotaSortByEnum
    func GetListResourceQuotaSortByEnumValues() []ListResourceQuotaSortByEnum
    func GetMappingListResourceQuotaSortByEnum(val string) (ListResourceQuotaSortByEnum, bool)
type ListResourceQuotaSortOrderEnum
    func GetListResourceQuotaSortOrderEnumValues() []ListResourceQuotaSortOrderEnum
    func GetMappingListResourceQuotaSortOrderEnum(val string) (ListResourceQuotaSortOrderEnum, bool)
type ListResourcesRequest
    func (request ListResourcesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request ListResourcesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request ListResourcesRequest) RetryPolicy() *common.RetryPolicy
    func (request ListResourcesRequest) String() string
    func (request ListResourcesRequest) ValidateEnumValue() (bool, error)
type ListResourcesResponse
    func (response ListResourcesResponse) HTTPResponse() *http.Response
    func (response ListResourcesResponse) String() string
type ListResourcesSortByEnum
    func GetListResourcesSortByEnumValues() []ListResourcesSortByEnum
    func GetMappingListResourcesSortByEnum(val string) (ListResourcesSortByEnum, bool)
type ListResourcesSortOrderEnum
    func GetListResourcesSortOrderEnumValues() []ListResourcesSortOrderEnum
    func GetMappingListResourcesSortOrderEnum(val string) (ListResourcesSortOrderEnum, 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 ListUsageLimitsRequest
    func (request ListUsageLimitsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request ListUsageLimitsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request ListUsageLimitsRequest) RetryPolicy() *common.RetryPolicy
    func (request ListUsageLimitsRequest) String() string
    func (request ListUsageLimitsRequest) ValidateEnumValue() (bool, error)
type ListUsageLimitsResponse
    func (response ListUsageLimitsResponse) HTTPResponse() *http.Response
    func (response ListUsageLimitsResponse) String() string
type ListUsageLimitsSortByEnum
    func GetListUsageLimitsSortByEnumValues() []ListUsageLimitsSortByEnum
    func GetMappingListUsageLimitsSortByEnum(val string) (ListUsageLimitsSortByEnum, bool)
type ListUsageLimitsSortOrderEnum
    func GetListUsageLimitsSortOrderEnumValues() []ListUsageLimitsSortOrderEnum
    func GetMappingListUsageLimitsSortOrderEnum(val string) (ListUsageLimitsSortOrderEnum, bool)
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 ResourceQuotumCollection
    func (m ResourceQuotumCollection) String() string
    func (m ResourceQuotumCollection) ValidateEnumValue() (bool, error)
type ResourceQuotumSummary
    func (m ResourceQuotumSummary) String() string
    func (m ResourceQuotumSummary) ValidateEnumValue() (bool, error)
type ResourceSummary
    func (m ResourceSummary) String() string
    func (m ResourceSummary) ValidateEnumValue() (bool, error)
type ResourceSummaryUsageDataTypeEnum
    func GetMappingResourceSummaryUsageDataTypeEnum(val string) (ResourceSummaryUsageDataTypeEnum, bool)
    func GetResourceSummaryUsageDataTypeEnumValues() []ResourceSummaryUsageDataTypeEnum
type ResourcesClient
    func NewResourcesClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client ResourcesClient, err error)
    func NewResourcesClientWithOboToken(configProvider common.ConfigurationProvider, oboToken string) (client ResourcesClient, err error)
    func (client *ResourcesClient) ConfigurationProvider() *common.ConfigurationProvider
    func (client ResourcesClient) ListResourceQuota(ctx context.Context, request ListResourceQuotaRequest) (response ListResourceQuotaResponse, err error)
    func (client ResourcesClient) ListResources(ctx context.Context, request ListResourcesRequest) (response ListResourcesResponse, err error)
    func (client *ResourcesClient) SetRegion(region string)
type ResourcesCollection
    func (m ResourcesCollection) String() string
    func (m ResourcesCollection) 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)
type SkuProducts
    func (m SkuProducts) String() string
    func (m SkuProducts) ValidateEnumValue() (bool, error)
type UsageLimitCollection
    func (m UsageLimitCollection) String() string
    func (m UsageLimitCollection) ValidateEnumValue() (bool, error)
type UsageLimitSummary
    func (m UsageLimitSummary) String() string
    func (m UsageLimitSummary) ValidateEnumValue() (bool, error)
type UsageLimitSummaryActionEnum
    func GetMappingUsageLimitSummaryActionEnum(val string) (UsageLimitSummaryActionEnum, bool)
    func GetUsageLimitSummaryActionEnumValues() []UsageLimitSummaryActionEnum
type UsageLimitSummaryLifecycleStateEnum
    func GetMappingUsageLimitSummaryLifecycleStateEnum(val string) (UsageLimitSummaryLifecycleStateEnum, bool)
    func GetUsageLimitSummaryLifecycleStateEnumValues() []UsageLimitSummaryLifecycleStateEnum
type UsageLimitSummaryLimitTypeEnum
    func GetMappingUsageLimitSummaryLimitTypeEnum(val string) (UsageLimitSummaryLimitTypeEnum, bool)
    func GetUsageLimitSummaryLimitTypeEnumValues() []UsageLimitSummaryLimitTypeEnum
type UsageLimitSummaryValueTypeEnum
    func GetMappingUsageLimitSummaryValueTypeEnum(val string) (UsageLimitSummaryValueTypeEnum, bool)
    func GetUsageLimitSummaryValueTypeEnumValues() []UsageLimitSummaryValueTypeEnum
type UsagelimitsClient
    func NewUsagelimitsClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client UsagelimitsClient, err error)
    func NewUsagelimitsClientWithOboToken(configProvider common.ConfigurationProvider, oboToken string) (client UsagelimitsClient, err error)
    func (client *UsagelimitsClient) ConfigurationProvider() *common.ConfigurationProvider
    func (client UsagelimitsClient) ListUsageLimits(ctx context.Context, request ListUsageLimitsRequest) (response ListUsageLimitsResponse, err error)
    func (client *UsagelimitsClient) 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_resource_quota_request_response.go list_resources_request_response.go list_rewards_request_response.go list_usage_limits_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 resource_quotum_collection.go resource_quotum_summary.go resource_summary.go resources_collection.go reward_collection.go reward_details.go sku_products.go usage_limit_collection.go usage_limit_summary.go usage_resources_client.go usage_rewards_client.go usage_usagelimits_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

func GetListResourceQuotaSortByEnumStringValues

func GetListResourceQuotaSortByEnumStringValues() []string

GetListResourceQuotaSortByEnumStringValues Enumerates the set of values in String for ListResourceQuotaSortByEnum

func GetListResourceQuotaSortOrderEnumStringValues

func GetListResourceQuotaSortOrderEnumStringValues() []string

GetListResourceQuotaSortOrderEnumStringValues Enumerates the set of values in String for ListResourceQuotaSortOrderEnum

func GetListResourcesSortByEnumStringValues

func GetListResourcesSortByEnumStringValues() []string

GetListResourcesSortByEnumStringValues Enumerates the set of values in String for ListResourcesSortByEnum

func GetListResourcesSortOrderEnumStringValues

func GetListResourcesSortOrderEnumStringValues() []string

GetListResourcesSortOrderEnumStringValues Enumerates the set of values in String for ListResourcesSortOrderEnum

func GetListUsageLimitsSortByEnumStringValues

func GetListUsageLimitsSortByEnumStringValues() []string

GetListUsageLimitsSortByEnumStringValues Enumerates the set of values in String for ListUsageLimitsSortByEnum

func GetListUsageLimitsSortOrderEnumStringValues

func GetListUsageLimitsSortOrderEnumStringValues() []string

GetListUsageLimitsSortOrderEnumStringValues Enumerates the set of values in String for ListUsageLimitsSortOrderEnum

func GetResourceSummaryUsageDataTypeEnumStringValues

func GetResourceSummaryUsageDataTypeEnumStringValues() []string

GetResourceSummaryUsageDataTypeEnumStringValues Enumerates the set of values in String for ResourceSummaryUsageDataTypeEnum

func GetUsageLimitSummaryActionEnumStringValues

func GetUsageLimitSummaryActionEnumStringValues() []string

GetUsageLimitSummaryActionEnumStringValues Enumerates the set of values in String for UsageLimitSummaryActionEnum

func GetUsageLimitSummaryLifecycleStateEnumStringValues

func GetUsageLimitSummaryLifecycleStateEnumStringValues() []string

GetUsageLimitSummaryLifecycleStateEnumStringValues Enumerates the set of values in String for UsageLimitSummaryLifecycleStateEnum

func GetUsageLimitSummaryLimitTypeEnumStringValues

func GetUsageLimitSummaryLimitTypeEnumStringValues() []string

GetUsageLimitSummaryLimitTypeEnumStringValues Enumerates the set of values in String for UsageLimitSummaryLimitTypeEnum

func GetUsageLimitSummaryValueTypeEnumStringValues

func GetUsageLimitSummaryValueTypeEnumStringValues() []string

GetUsageLimitSummaryValueTypeEnumStringValues Enumerates the set of values in String for UsageLimitSummaryValueTypeEnum

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.64.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.64.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.64.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.64.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.64.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 ListResourceQuotaRequest

ListResourceQuotaRequest wrapper for the ListResourceQuota operation

# See also

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

type ListResourceQuotaRequest struct {

    // Service Name.
    ServiceName *string `mandatory:"true" contributesTo:"query" name:"serviceName"`

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

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

    // Service entitlement Id.
    ServiceEntitlement *string `mandatory:"false" contributesTo:"query" name:"serviceEntitlement"`

    // 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 ListResourceQuotaSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"`

    // The field to sort by. Supports one sort order.
    SortBy ListResourceQuotaSortByEnum `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 (ListResourceQuotaRequest) BinaryRequestBody

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

BinaryRequestBody implements the OCIRequest interface

func (ListResourceQuotaRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (ListResourceQuotaRequest) RetryPolicy

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

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

func (ListResourceQuotaRequest) String

func (request ListResourceQuotaRequest) String() string

func (ListResourceQuotaRequest) ValidateEnumValue

func (request ListResourceQuotaRequest) 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 ListResourceQuotaResponse

ListResourceQuotaResponse wrapper for the ListResourceQuota operation

type ListResourceQuotaResponse struct {

    // The underlying http response
    RawResponse *http.Response

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

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

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

func (ListResourceQuotaResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (ListResourceQuotaResponse) String

func (response ListResourceQuotaResponse) String() string

type ListResourceQuotaSortByEnum

ListResourceQuotaSortByEnum Enum with underlying type: string

type ListResourceQuotaSortByEnum string

Set of constants representing the allowable values for ListResourceQuotaSortByEnum

const (
    ListResourceQuotaSortByTimecreated ListResourceQuotaSortByEnum = "TIMECREATED"
    ListResourceQuotaSortByTimestart   ListResourceQuotaSortByEnum = "TIMESTART"
)

func GetListResourceQuotaSortByEnumValues

func GetListResourceQuotaSortByEnumValues() []ListResourceQuotaSortByEnum

GetListResourceQuotaSortByEnumValues Enumerates the set of values for ListResourceQuotaSortByEnum

func GetMappingListResourceQuotaSortByEnum

func GetMappingListResourceQuotaSortByEnum(val string) (ListResourceQuotaSortByEnum, bool)

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

type ListResourceQuotaSortOrderEnum

ListResourceQuotaSortOrderEnum Enum with underlying type: string

type ListResourceQuotaSortOrderEnum string

Set of constants representing the allowable values for ListResourceQuotaSortOrderEnum

const (
    ListResourceQuotaSortOrderAsc  ListResourceQuotaSortOrderEnum = "ASC"
    ListResourceQuotaSortOrderDesc ListResourceQuotaSortOrderEnum = "DESC"
)

func GetListResourceQuotaSortOrderEnumValues

func GetListResourceQuotaSortOrderEnumValues() []ListResourceQuotaSortOrderEnum

GetListResourceQuotaSortOrderEnumValues Enumerates the set of values for ListResourceQuotaSortOrderEnum

func GetMappingListResourceQuotaSortOrderEnum

func GetMappingListResourceQuotaSortOrderEnum(val string) (ListResourceQuotaSortOrderEnum, bool)

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

type ListResourcesRequest

ListResourcesRequest wrapper for the ListResources operation

# See also

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

type ListResourcesRequest struct {

    // Service Name.
    ServiceName *string `mandatory:"true" contributesTo:"query" name:"serviceName"`

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

    // Subscription or entitlement Id.
    EntitlementId *string `mandatory:"false" contributesTo:"query" name:"entitlementId"`

    // 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 ListResourcesSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"`

    // The field to sort by. Supports one sort order.
    SortBy ListResourcesSortByEnum `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 (ListResourcesRequest) BinaryRequestBody

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

BinaryRequestBody implements the OCIRequest interface

func (ListResourcesRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (ListResourcesRequest) RetryPolicy

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

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

func (ListResourcesRequest) String

func (request ListResourcesRequest) String() string

func (ListResourcesRequest) ValidateEnumValue

func (request ListResourcesRequest) 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 ListResourcesResponse

ListResourcesResponse wrapper for the ListResources operation

type ListResourcesResponse struct {

    // The underlying http response
    RawResponse *http.Response

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

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

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

func (ListResourcesResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (ListResourcesResponse) String

func (response ListResourcesResponse) String() string

type ListResourcesSortByEnum

ListResourcesSortByEnum Enum with underlying type: string

type ListResourcesSortByEnum string

Set of constants representing the allowable values for ListResourcesSortByEnum

const (
    ListResourcesSortByTimecreated ListResourcesSortByEnum = "TIMECREATED"
    ListResourcesSortByTimestart   ListResourcesSortByEnum = "TIMESTART"
)

func GetListResourcesSortByEnumValues

func GetListResourcesSortByEnumValues() []ListResourcesSortByEnum

GetListResourcesSortByEnumValues Enumerates the set of values for ListResourcesSortByEnum

func GetMappingListResourcesSortByEnum

func GetMappingListResourcesSortByEnum(val string) (ListResourcesSortByEnum, bool)

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

type ListResourcesSortOrderEnum

ListResourcesSortOrderEnum Enum with underlying type: string

type ListResourcesSortOrderEnum string

Set of constants representing the allowable values for ListResourcesSortOrderEnum

const (
    ListResourcesSortOrderAsc  ListResourcesSortOrderEnum = "ASC"
    ListResourcesSortOrderDesc ListResourcesSortOrderEnum = "DESC"
)

func GetListResourcesSortOrderEnumValues

func GetListResourcesSortOrderEnumValues() []ListResourcesSortOrderEnum

GetListResourcesSortOrderEnumValues Enumerates the set of values for ListResourcesSortOrderEnum

func GetMappingListResourcesSortOrderEnum

func GetMappingListResourcesSortOrderEnum(val string) (ListResourcesSortOrderEnum, bool)

GetMappingListResourcesSortOrderEnum 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.64.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 ListUsageLimitsRequest

ListUsageLimitsRequest wrapper for the ListUsageLimits operation

# See also

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

type ListUsageLimitsRequest struct {

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

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

    // Hard or soft limit. Hard limits lead to breaches, soft to alerts.
    LimitType *string `mandatory:"false" contributesTo:"query" name:"limitType"`

    // Resource Name.
    ResourceType *string `mandatory:"false" contributesTo:"query" name:"resourceType"`

    // Service Name.
    ServiceType *string `mandatory:"false" contributesTo:"query" name:"serviceType"`

    // 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 ListUsageLimitsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"`

    // The field to sort by. Supports one sort order.
    SortBy ListUsageLimitsSortByEnum `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 (ListUsageLimitsRequest) BinaryRequestBody

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

BinaryRequestBody implements the OCIRequest interface

func (ListUsageLimitsRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (ListUsageLimitsRequest) RetryPolicy

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

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

func (ListUsageLimitsRequest) String

func (request ListUsageLimitsRequest) String() string

func (ListUsageLimitsRequest) ValidateEnumValue

func (request ListUsageLimitsRequest) 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 ListUsageLimitsResponse

ListUsageLimitsResponse wrapper for the ListUsageLimits operation

type ListUsageLimitsResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // A list of UsageLimitCollection instances
    UsageLimitCollection `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 (ListUsageLimitsResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (ListUsageLimitsResponse) String

func (response ListUsageLimitsResponse) String() string

type ListUsageLimitsSortByEnum

ListUsageLimitsSortByEnum Enum with underlying type: string

type ListUsageLimitsSortByEnum string

Set of constants representing the allowable values for ListUsageLimitsSortByEnum

const (
    ListUsageLimitsSortByTimecreated ListUsageLimitsSortByEnum = "TIMECREATED"
    ListUsageLimitsSortByTimestart   ListUsageLimitsSortByEnum = "TIMESTART"
)

func GetListUsageLimitsSortByEnumValues

func GetListUsageLimitsSortByEnumValues() []ListUsageLimitsSortByEnum

GetListUsageLimitsSortByEnumValues Enumerates the set of values for ListUsageLimitsSortByEnum

func GetMappingListUsageLimitsSortByEnum

func GetMappingListUsageLimitsSortByEnum(val string) (ListUsageLimitsSortByEnum, bool)

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

type ListUsageLimitsSortOrderEnum

ListUsageLimitsSortOrderEnum Enum with underlying type: string

type ListUsageLimitsSortOrderEnum string

Set of constants representing the allowable values for ListUsageLimitsSortOrderEnum

const (
    ListUsageLimitsSortOrderAsc  ListUsageLimitsSortOrderEnum = "ASC"
    ListUsageLimitsSortOrderDesc ListUsageLimitsSortOrderEnum = "DESC"
)

func GetListUsageLimitsSortOrderEnumValues

func GetListUsageLimitsSortOrderEnumValues() []ListUsageLimitsSortOrderEnum

GetListUsageLimitsSortOrderEnumValues Enumerates the set of values for ListUsageLimitsSortOrderEnum

func GetMappingListUsageLimitsSortOrderEnum

func GetMappingListUsageLimitsSortOrderEnum(val string) (ListUsageLimitsSortOrderEnum, bool)

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

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 ResourceQuotumCollection

ResourceQuotumCollection The quota details of resources under a tenancy.

type ResourceQuotumCollection struct {

    // The list of resource quota details.
    Items []ResourceQuotumSummary `mandatory:"true" json:"items"`

    // Used to indicate if further quota consumption isAllowed.
    IsAllowed *bool `mandatory:"true" json:"isAllowed"`
}

func (ResourceQuotumCollection) String

func (m ResourceQuotumCollection) String() string

func (ResourceQuotumCollection) ValidateEnumValue

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

ResourceQuotumSummary The resource quota balance details.

type ResourceQuotumSummary struct {

    // The resource name.
    Name *string `mandatory:"false" json:"name"`

    // Used to indicate if further quota consumption isAllowed.
    IsAllowed *bool `mandatory:"false" json:"isAllowed"`

    // The quota limit.
    Limit *float64 `mandatory:"false" json:"limit"`

    // The quota balance.
    Balance *float64 `mandatory:"false" json:"balance"`

    // Used to indicate if overages are incurred.
    IsOverage *bool `mandatory:"false" json:"isOverage"`

    // The purchased quota limit.
    PurchasedLimit *float64 `mandatory:"false" json:"purchasedLimit"`

    // The service name.
    Service *string `mandatory:"false" json:"service"`

    // Used to indicate any resource dependencies.
    IsDependency *bool `mandatory:"false" json:"isDependency"`

    // The affected resource name.
    AffectedResource *string `mandatory:"false" json:"affectedResource"`
}

func (ResourceQuotumSummary) String

func (m ResourceQuotumSummary) String() string

func (ResourceQuotumSummary) ValidateEnumValue

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

ResourceSummary The details of a resource under a service.

type ResourceSummary struct {

    // Units to be used for daily aggregated data.
    DailyUnitDisplayName *string `mandatory:"false" json:"dailyUnitDisplayName"`

    // Units to be used for hourly aggregated data.
    HourlyUnitDisplayName *string `mandatory:"false" json:"hourlyUnitDisplayName"`

    // Default units to use when unspecified.
    RawUnitDisplayName *string `mandatory:"false" json:"rawUnitDisplayName"`

    // Usage data type of the resource.
    UsageDataType ResourceSummaryUsageDataTypeEnum `mandatory:"false" json:"usageDataType,omitempty"`

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

    // Name of the service.
    Servicename *string `mandatory:"false" json:"servicename"`

    // Description of the resource.
    Description *string `mandatory:"false" json:"description"`

    // Instance type for the resource.
    InstanceType *string `mandatory:"false" json:"instanceType"`

    // Indicates if the SKU was purchased
    IsPurchased *bool `mandatory:"false" json:"isPurchased"`

    // The details of any child resources.
    ChildResources []string `mandatory:"false" json:"childResources"`

    // The details of resource Skus.
    Skus []SkuProducts `mandatory:"false" json:"skus"`
}

func (ResourceSummary) String

func (m ResourceSummary) String() string

func (ResourceSummary) ValidateEnumValue

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

ResourceSummaryUsageDataTypeEnum Enum with underlying type: string

type ResourceSummaryUsageDataTypeEnum string

Set of constants representing the allowable values for ResourceSummaryUsageDataTypeEnum

const (
    ResourceSummaryUsageDataTypeInterval  ResourceSummaryUsageDataTypeEnum = "INTERVAL"
    ResourceSummaryUsageDataTypePointData ResourceSummaryUsageDataTypeEnum = "POINT_DATA"
)

func GetMappingResourceSummaryUsageDataTypeEnum

func GetMappingResourceSummaryUsageDataTypeEnum(val string) (ResourceSummaryUsageDataTypeEnum, bool)

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

func GetResourceSummaryUsageDataTypeEnumValues

func GetResourceSummaryUsageDataTypeEnumValues() []ResourceSummaryUsageDataTypeEnum

GetResourceSummaryUsageDataTypeEnumValues Enumerates the set of values for ResourceSummaryUsageDataTypeEnum

type ResourcesClient

ResourcesClient a client for Resources

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

func NewResourcesClientWithConfigurationProvider

func NewResourcesClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client ResourcesClient, err error)

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

func NewResourcesClientWithOboToken

func NewResourcesClientWithOboToken(configProvider common.ConfigurationProvider, oboToken string) (client ResourcesClient, err error)

NewResourcesClientWithOboToken Creates a new default Resources 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 (*ResourcesClient) ConfigurationProvider

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

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

func (ResourcesClient) ListResourceQuota

func (client ResourcesClient) ListResourceQuota(ctx context.Context, request ListResourceQuotaRequest) (response ListResourceQuotaResponse, err error)

ListResourceQuota Returns the resource quota details under a tenancy > **Important**: Calls to this API will only succeed against the endpoint in the home region.

# See also

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

func (ResourcesClient) ListResources

func (client ResourcesClient) ListResources(ctx context.Context, request ListResourcesRequest) (response ListResourcesResponse, err error)

ListResources Returns the resource details for a service > **Important**: Calls to this API will only succeed against the endpoint in the home region.

# See also

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

func (*ResourcesClient) SetRegion

func (client *ResourcesClient) SetRegion(region string)

SetRegion overrides the region of this client.

type ResourcesCollection

ResourcesCollection The resources of a service.

type ResourcesCollection struct {

    // The list of resource details for a service.
    Items []ResourceSummary `mandatory:"true" json:"items"`
}

func (ResourcesCollection) String

func (m ResourcesCollection) String() string

func (ResourcesCollection) ValidateEnumValue

func (m ResourcesCollection) 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.64.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.64.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.64.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.64.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.64.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.64.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.

type SkuProducts

SkuProducts The SKU Product Id details for a resource.

type SkuProducts struct {

    // The Sku Id for the resource.
    SkuId *string `mandatory:"false" json:"skuId"`

    // The Sku type for the resource.
    SkuType *string `mandatory:"false" json:"skuType"`

    // The cloud credit type for the resource.
    CloudCreditType *string `mandatory:"false" json:"cloudCreditType"`
}

func (SkuProducts) String

func (m SkuProducts) String() string

func (SkuProducts) ValidateEnumValue

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

UsageLimitCollection The list of usage limit summary for the requested tenancy ID and subscription ID.

type UsageLimitCollection struct {

    // The list of usage limits.
    Items []UsageLimitSummary `mandatory:"true" json:"items"`
}

func (UsageLimitCollection) String

func (m UsageLimitCollection) String() string

func (UsageLimitCollection) ValidateEnumValue

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

UsageLimitSummary Encapsulates a collection of Hard and Soft Limits for a resource within a subscription.

type UsageLimitSummary struct {

    // Time when the usage limit was created
    TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"`

    // Entitlement ID of the usage limit
    EntitlementId *string `mandatory:"true" json:"entitlementId"`

    // The usage limit ID
    Id *string `mandatory:"true" json:"id"`

    // Time when the usage limit was modified
    TimeModified *common.SDKTime `mandatory:"true" json:"timeModified"`

    // The resource for which the limit is defined
    ResourceName *string `mandatory:"true" json:"resourceName"`

    // The service for which the limit is defined
    ServiceName *string `mandatory:"true" json:"serviceName"`

    // The limit value
    Limit *string `mandatory:"true" json:"limit"`

    // The user who created the limit
    CreatedBy *string `mandatory:"true" json:"createdBy"`

    // The user who modified the limit
    ModifiedBy *string `mandatory:"true" json:"modifiedBy"`

    // The action when usage limit is hit
    Action UsageLimitSummaryActionEnum `mandatory:"true" json:"action"`

    // The alert level of the usage limit
    AlertLevel *float32 `mandatory:"true" json:"alertLevel"`

    // The limit type of the usage limit
    LimitType UsageLimitSummaryLimitTypeEnum `mandatory:"true" json:"limitType"`

    // The value type of the usage limit
    ValueType UsageLimitSummaryValueTypeEnum `mandatory:"true" json:"valueType"`

    // The usage limit lifecycle state.
    LifecycleState UsageLimitSummaryLifecycleStateEnum `mandatory:"true" json:"lifecycleState"`

    // The maximum hard limit set for the usage limit
    MaxHardLimit *string `mandatory:"false" json:"maxHardLimit"`

    // The SKU for which the usage limit is set
    SkuPartId *string `mandatory:"false" json:"skuPartId"`
}

func (UsageLimitSummary) String

func (m UsageLimitSummary) String() string

func (UsageLimitSummary) ValidateEnumValue

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

UsageLimitSummaryActionEnum Enum with underlying type: string

type UsageLimitSummaryActionEnum string

Set of constants representing the allowable values for UsageLimitSummaryActionEnum

const (
    UsageLimitSummaryActionBreach UsageLimitSummaryActionEnum = "QUOTA_BREACH"
    UsageLimitSummaryActionAlert  UsageLimitSummaryActionEnum = "QUOTA_ALERT"
)

func GetMappingUsageLimitSummaryActionEnum

func GetMappingUsageLimitSummaryActionEnum(val string) (UsageLimitSummaryActionEnum, bool)

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

func GetUsageLimitSummaryActionEnumValues

func GetUsageLimitSummaryActionEnumValues() []UsageLimitSummaryActionEnum

GetUsageLimitSummaryActionEnumValues Enumerates the set of values for UsageLimitSummaryActionEnum

type UsageLimitSummaryLifecycleStateEnum

UsageLimitSummaryLifecycleStateEnum Enum with underlying type: string

type UsageLimitSummaryLifecycleStateEnum string

Set of constants representing the allowable values for UsageLimitSummaryLifecycleStateEnum

const (
    UsageLimitSummaryLifecycleStateActive UsageLimitSummaryLifecycleStateEnum = "ACTIVE"
)

func GetMappingUsageLimitSummaryLifecycleStateEnum

func GetMappingUsageLimitSummaryLifecycleStateEnum(val string) (UsageLimitSummaryLifecycleStateEnum, bool)

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

func GetUsageLimitSummaryLifecycleStateEnumValues

func GetUsageLimitSummaryLifecycleStateEnumValues() []UsageLimitSummaryLifecycleStateEnum

GetUsageLimitSummaryLifecycleStateEnumValues Enumerates the set of values for UsageLimitSummaryLifecycleStateEnum

type UsageLimitSummaryLimitTypeEnum

UsageLimitSummaryLimitTypeEnum Enum with underlying type: string

type UsageLimitSummaryLimitTypeEnum string

Set of constants representing the allowable values for UsageLimitSummaryLimitTypeEnum

const (
    UsageLimitSummaryLimitTypeHard UsageLimitSummaryLimitTypeEnum = "HARD"
    UsageLimitSummaryLimitTypeSoft UsageLimitSummaryLimitTypeEnum = "SOFT"
)

func GetMappingUsageLimitSummaryLimitTypeEnum

func GetMappingUsageLimitSummaryLimitTypeEnum(val string) (UsageLimitSummaryLimitTypeEnum, bool)

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

func GetUsageLimitSummaryLimitTypeEnumValues

func GetUsageLimitSummaryLimitTypeEnumValues() []UsageLimitSummaryLimitTypeEnum

GetUsageLimitSummaryLimitTypeEnumValues Enumerates the set of values for UsageLimitSummaryLimitTypeEnum

type UsageLimitSummaryValueTypeEnum

UsageLimitSummaryValueTypeEnum Enum with underlying type: string

type UsageLimitSummaryValueTypeEnum string

Set of constants representing the allowable values for UsageLimitSummaryValueTypeEnum

const (
    UsageLimitSummaryValueTypeAbsolute   UsageLimitSummaryValueTypeEnum = "ABSOLUTE"
    UsageLimitSummaryValueTypePercentage UsageLimitSummaryValueTypeEnum = "PERCENTAGE"
)

func GetMappingUsageLimitSummaryValueTypeEnum

func GetMappingUsageLimitSummaryValueTypeEnum(val string) (UsageLimitSummaryValueTypeEnum, bool)

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

func GetUsageLimitSummaryValueTypeEnumValues

func GetUsageLimitSummaryValueTypeEnumValues() []UsageLimitSummaryValueTypeEnum

GetUsageLimitSummaryValueTypeEnumValues Enumerates the set of values for UsageLimitSummaryValueTypeEnum

type UsagelimitsClient

UsagelimitsClient a client for Usagelimits

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

func NewUsagelimitsClientWithConfigurationProvider

func NewUsagelimitsClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client UsagelimitsClient, err error)

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

func NewUsagelimitsClientWithOboToken

func NewUsagelimitsClientWithOboToken(configProvider common.ConfigurationProvider, oboToken string) (client UsagelimitsClient, err error)

NewUsagelimitsClientWithOboToken Creates a new default Usagelimits 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 (*UsagelimitsClient) ConfigurationProvider

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

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

func (UsagelimitsClient) ListUsageLimits

func (client UsagelimitsClient) ListUsageLimits(ctx context.Context, request ListUsageLimitsRequest) (response ListUsageLimitsResponse, err error)

ListUsageLimits Returns the list of usage limit for the subscription ID and tenant ID.

# See also

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

func (*UsagelimitsClient) SetRegion

func (client *UsagelimitsClient) SetRegion(region string)

SetRegion overrides the region of this client.