onesubscription

package
v65.67.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 4, 2024 License: Apache-2.0, UPL-1.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAggregatedComputedUsageSummaryPricingModelEnumStringValues

func GetAggregatedComputedUsageSummaryPricingModelEnumStringValues() []string

GetAggregatedComputedUsageSummaryPricingModelEnumStringValues Enumerates the set of values in String for AggregatedComputedUsageSummaryPricingModelEnum

func GetBillingScheduleSummaryInvoiceStatusEnumStringValues

func GetBillingScheduleSummaryInvoiceStatusEnumStringValues() []string

GetBillingScheduleSummaryInvoiceStatusEnumStringValues Enumerates the set of values in String for BillingScheduleSummaryInvoiceStatusEnum

func GetComputedUsageAggregationTypeEnumStringValues

func GetComputedUsageAggregationTypeEnumStringValues() []string

GetComputedUsageAggregationTypeEnumStringValues Enumerates the set of values in String for ComputedUsageAggregationTypeEnum

func GetComputedUsageSummaryTypeEnumStringValues

func GetComputedUsageSummaryTypeEnumStringValues() []string

GetComputedUsageSummaryTypeEnumStringValues Enumerates the set of values in String for ComputedUsageSummaryTypeEnum

func GetComputedUsageTypeEnumStringValues

func GetComputedUsageTypeEnumStringValues() []string

GetComputedUsageTypeEnumStringValues Enumerates the set of values in String for ComputedUsageTypeEnum

func GetInvoicelineComputedUsageSummaryTypeEnumStringValues

func GetInvoicelineComputedUsageSummaryTypeEnumStringValues() []string

GetInvoicelineComputedUsageSummaryTypeEnumStringValues Enumerates the set of values in String for InvoicelineComputedUsageSummaryTypeEnum

func GetListAggregatedComputedUsagesGroupingEnumStringValues

func GetListAggregatedComputedUsagesGroupingEnumStringValues() []string

GetListAggregatedComputedUsagesGroupingEnumStringValues Enumerates the set of values in String for ListAggregatedComputedUsagesGroupingEnum

func GetListBillingSchedulesSortByEnumStringValues

func GetListBillingSchedulesSortByEnumStringValues() []string

GetListBillingSchedulesSortByEnumStringValues Enumerates the set of values in String for ListBillingSchedulesSortByEnum

func GetListBillingSchedulesSortOrderEnumStringValues

func GetListBillingSchedulesSortOrderEnumStringValues() []string

GetListBillingSchedulesSortOrderEnumStringValues Enumerates the set of values in String for ListBillingSchedulesSortOrderEnum

func GetListCommitmentsSortByEnumStringValues

func GetListCommitmentsSortByEnumStringValues() []string

GetListCommitmentsSortByEnumStringValues Enumerates the set of values in String for ListCommitmentsSortByEnum

func GetListCommitmentsSortOrderEnumStringValues

func GetListCommitmentsSortOrderEnumStringValues() []string

GetListCommitmentsSortOrderEnumStringValues Enumerates the set of values in String for ListCommitmentsSortOrderEnum

func GetListComputedUsagesSortByEnumStringValues

func GetListComputedUsagesSortByEnumStringValues() []string

GetListComputedUsagesSortByEnumStringValues Enumerates the set of values in String for ListComputedUsagesSortByEnum

func GetListComputedUsagesSortOrderEnumStringValues

func GetListComputedUsagesSortOrderEnumStringValues() []string

GetListComputedUsagesSortOrderEnumStringValues Enumerates the set of values in String for ListComputedUsagesSortOrderEnum

func GetListInvoicelineComputedUsagesSortByEnumStringValues

func GetListInvoicelineComputedUsagesSortByEnumStringValues() []string

GetListInvoicelineComputedUsagesSortByEnumStringValues Enumerates the set of values in String for ListInvoicelineComputedUsagesSortByEnum

func GetListInvoicelineComputedUsagesSortOrderEnumStringValues

func GetListInvoicelineComputedUsagesSortOrderEnumStringValues() []string

GetListInvoicelineComputedUsagesSortOrderEnumStringValues Enumerates the set of values in String for ListInvoicelineComputedUsagesSortOrderEnum

func GetListInvoicesSortByEnumStringValues

func GetListInvoicesSortByEnumStringValues() []string

GetListInvoicesSortByEnumStringValues Enumerates the set of values in String for ListInvoicesSortByEnum

func GetListInvoicesSortOrderEnumStringValues

func GetListInvoicesSortOrderEnumStringValues() []string

GetListInvoicesSortOrderEnumStringValues Enumerates the set of values in String for ListInvoicesSortOrderEnum

func GetListOrganizationSubscriptionsSortByEnumStringValues

func GetListOrganizationSubscriptionsSortByEnumStringValues() []string

GetListOrganizationSubscriptionsSortByEnumStringValues Enumerates the set of values in String for ListOrganizationSubscriptionsSortByEnum

func GetListOrganizationSubscriptionsSortOrderEnumStringValues

func GetListOrganizationSubscriptionsSortOrderEnumStringValues() []string

GetListOrganizationSubscriptionsSortOrderEnumStringValues Enumerates the set of values in String for ListOrganizationSubscriptionsSortOrderEnum

func GetListRateCardsSortByEnumStringValues

func GetListRateCardsSortByEnumStringValues() []string

GetListRateCardsSortByEnumStringValues Enumerates the set of values in String for ListRateCardsSortByEnum

func GetListRateCardsSortOrderEnumStringValues

func GetListRateCardsSortOrderEnumStringValues() []string

GetListRateCardsSortOrderEnumStringValues Enumerates the set of values in String for ListRateCardsSortOrderEnum

func GetListSubscribedServicesSortByEnumStringValues

func GetListSubscribedServicesSortByEnumStringValues() []string

GetListSubscribedServicesSortByEnumStringValues Enumerates the set of values in String for ListSubscribedServicesSortByEnum

func GetListSubscribedServicesSortOrderEnumStringValues

func GetListSubscribedServicesSortOrderEnumStringValues() []string

GetListSubscribedServicesSortOrderEnumStringValues Enumerates the set of values in String for ListSubscribedServicesSortOrderEnum

func GetListSubscriptionsSortByEnumStringValues

func GetListSubscriptionsSortByEnumStringValues() []string

GetListSubscriptionsSortByEnumStringValues Enumerates the set of values in String for ListSubscriptionsSortByEnum

func GetListSubscriptionsSortOrderEnumStringValues

func GetListSubscriptionsSortOrderEnumStringValues() []string

GetListSubscriptionsSortOrderEnumStringValues Enumerates the set of values in String for ListSubscriptionsSortOrderEnum

Types

type AggregatedComputedUsageSummary

type AggregatedComputedUsageSummary struct {

	// Subscription Id is an identifier associated to the service used for filter the Computed Usage in SPM
	SubscriptionId *string `mandatory:"true" json:"subscriptionId"`

	// Subscribed service line parent id
	ParentSubscribedServiceId *string `mandatory:"false" json:"parentSubscribedServiceId"`

	ParentProduct *ComputedUsageProduct `mandatory:"false" json:"parentProduct"`

	// Subscribed services contract line start date, expressed in RFC 3339 timestamp format.
	TimeStart *common.SDKTime `mandatory:"false" json:"timeStart"`

	// Subscribed services contract line end date, expressed in RFC 3339 timestamp format.
	TimeEnd *common.SDKTime `mandatory:"false" json:"timeEnd"`

	// Subscribed service asociated subscription plan number.
	PlanNumber *string `mandatory:"false" json:"planNumber"`

	// Currency code
	CurrencyCode *string `mandatory:"false" json:"currencyCode"`

	// Inernal SPM Ratecard Id at line level
	RateCardId *string `mandatory:"false" json:"rateCardId"`

	// Subscribed services pricing model
	PricingModel AggregatedComputedUsageSummaryPricingModelEnum `mandatory:"false" json:"pricingModel,omitempty"`

	// Aggregation of computed usages for the subscribed service.
	AggregatedComputedUsages []ComputedUsageAggregation `mandatory:"false" json:"aggregatedComputedUsages"`
}

AggregatedComputedUsageSummary Subscribed Service Contract details

func (AggregatedComputedUsageSummary) String

func (AggregatedComputedUsageSummary) ValidateEnumValue

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

type AggregatedComputedUsageSummaryPricingModelEnum string

AggregatedComputedUsageSummaryPricingModelEnum Enum with underlying type: string

const (
	AggregatedComputedUsageSummaryPricingModelPayAsYouGo       AggregatedComputedUsageSummaryPricingModelEnum = "PAY_AS_YOU_GO"
	AggregatedComputedUsageSummaryPricingModelMonthly          AggregatedComputedUsageSummaryPricingModelEnum = "MONTHLY"
	AggregatedComputedUsageSummaryPricingModelAnnual           AggregatedComputedUsageSummaryPricingModelEnum = "ANNUAL"
	AggregatedComputedUsageSummaryPricingModelPrepaid          AggregatedComputedUsageSummaryPricingModelEnum = "PREPAID"
	AggregatedComputedUsageSummaryPricingModelFundedAllocation AggregatedComputedUsageSummaryPricingModelEnum = "FUNDED_ALLOCATION"
)

Set of constants representing the allowable values for AggregatedComputedUsageSummaryPricingModelEnum

func GetAggregatedComputedUsageSummaryPricingModelEnumValues

func GetAggregatedComputedUsageSummaryPricingModelEnumValues() []AggregatedComputedUsageSummaryPricingModelEnum

GetAggregatedComputedUsageSummaryPricingModelEnumValues Enumerates the set of values for AggregatedComputedUsageSummaryPricingModelEnum

func GetMappingAggregatedComputedUsageSummaryPricingModelEnum

func GetMappingAggregatedComputedUsageSummaryPricingModelEnum(val string) (AggregatedComputedUsageSummaryPricingModelEnum, bool)

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

type BillingScheduleClient

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

BillingScheduleClient a client for BillingSchedule

func NewBillingScheduleClientWithConfigurationProvider

func NewBillingScheduleClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client BillingScheduleClient, err error)

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

func NewBillingScheduleClientWithOboToken

func NewBillingScheduleClientWithOboToken(configProvider common.ConfigurationProvider, oboToken string) (client BillingScheduleClient, err error)

NewBillingScheduleClientWithOboToken Creates a new default BillingSchedule 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 (*BillingScheduleClient) ConfigurationProvider

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

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

func (BillingScheduleClient) ListBillingSchedules

func (client BillingScheduleClient) ListBillingSchedules(ctx context.Context, request ListBillingSchedulesRequest) (response ListBillingSchedulesResponse, err error)

ListBillingSchedules This list API returns all billing schedules for given subscription id and for a particular Subscribed Service if provided

See also

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

func (*BillingScheduleClient) SetRegion

func (client *BillingScheduleClient) SetRegion(region string)

SetRegion overrides the region of this client.

type BillingScheduleProduct

type BillingScheduleProduct struct {

	// Indicates the associated AR Invoice Number
	PartNumber *string `mandatory:"true" json:"partNumber"`

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

BillingScheduleProduct Product description

func (BillingScheduleProduct) String

func (m BillingScheduleProduct) String() string

func (BillingScheduleProduct) ValidateEnumValue

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

type BillingScheduleSummary struct {

	// SPM internal Subscribed Service ID
	SubscribedServiceId *string `mandatory:"false" json:"subscribedServiceId"`

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

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

	// Billing schedule invoicing date
	TimeInvoicing *common.SDKTime `mandatory:"false" json:"timeInvoicing"`

	// Billing schedule invoice status
	InvoiceStatus BillingScheduleSummaryInvoiceStatusEnum `mandatory:"false" json:"invoiceStatus,omitempty"`

	// Billing schedule quantity
	Quantity *string `mandatory:"false" json:"quantity"`

	// Billing schedule net unit price
	NetUnitPrice *string `mandatory:"false" json:"netUnitPrice"`

	// Billing schedule line net amount
	Amount *string `mandatory:"false" json:"amount"`

	// Billing frequency
	BillingFrequency *string `mandatory:"false" json:"billingFrequency"`

	// Indicates the associated AR Invoice Number
	ArInvoiceNumber *string `mandatory:"false" json:"arInvoiceNumber"`

	// Indicates the associated AR Customer transaction id a unique identifier existing on AR.
	ArCustomerTransactionId *string `mandatory:"false" json:"arCustomerTransactionId"`

	// Order number associated with the Subscribed Service
	OrderNumber *string `mandatory:"false" json:"orderNumber"`

	Product *BillingScheduleProduct `mandatory:"false" json:"product"`
}

BillingScheduleSummary Billing schedule details related to Subscription Id

func (BillingScheduleSummary) String

func (m BillingScheduleSummary) String() string

func (BillingScheduleSummary) ValidateEnumValue

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

type BillingScheduleSummaryInvoiceStatusEnum string

BillingScheduleSummaryInvoiceStatusEnum Enum with underlying type: string

const (
	BillingScheduleSummaryInvoiceStatusInvoiced    BillingScheduleSummaryInvoiceStatusEnum = "INVOICED"
	BillingScheduleSummaryInvoiceStatusNotInvoiced BillingScheduleSummaryInvoiceStatusEnum = "NOT_INVOICED"
)

Set of constants representing the allowable values for BillingScheduleSummaryInvoiceStatusEnum

func GetBillingScheduleSummaryInvoiceStatusEnumValues

func GetBillingScheduleSummaryInvoiceStatusEnumValues() []BillingScheduleSummaryInvoiceStatusEnum

GetBillingScheduleSummaryInvoiceStatusEnumValues Enumerates the set of values for BillingScheduleSummaryInvoiceStatusEnum

func GetMappingBillingScheduleSummaryInvoiceStatusEnum

func GetMappingBillingScheduleSummaryInvoiceStatusEnum(val string) (BillingScheduleSummaryInvoiceStatusEnum, bool)

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

type Commitment

type Commitment struct {

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

	// SPM internal Subscribed Service ID
	SubscribedServiceId *string `mandatory:"false" json:"subscribedServiceId"`

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

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

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

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

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

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

Commitment Subscribed Service commitment summary

func (Commitment) String

func (m Commitment) String() string

func (Commitment) ValidateEnumValue

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

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

type CommitmentClient

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

CommitmentClient a client for Commitment

func NewCommitmentClientWithConfigurationProvider

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

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

func NewCommitmentClientWithOboToken

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

NewCommitmentClientWithOboToken Creates a new default Commitment client with the given configuration provider. The obotoken will be added to default headers and signed; the configuration provider will be used for the signer

as well as reading the region

func (*CommitmentClient) ConfigurationProvider

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

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

func (CommitmentClient) GetCommitment

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

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

See also

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

func (CommitmentClient) ListCommitments

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

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

See also

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

func (*CommitmentClient) SetRegion

func (client *CommitmentClient) SetRegion(region string)

SetRegion overrides the region of this client.

type CommitmentService

type CommitmentService struct {

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

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

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

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

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

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

CommitmentService Subscribed service commitment details

func (CommitmentService) String

func (m CommitmentService) String() string

func (CommitmentService) ValidateEnumValue

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

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

type CommitmentSummary

type CommitmentSummary struct {

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

	// SPM internal Subscribed Service ID
	SubscribedServiceId *string `mandatory:"false" json:"subscribedServiceId"`

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

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

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

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

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

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

CommitmentSummary Subscribed Service commitment summary

func (CommitmentSummary) String

func (m CommitmentSummary) String() string

func (CommitmentSummary) ValidateEnumValue

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

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

type ComputedUsage

type ComputedUsage struct {

	// SPM Internal computed usage Id , 32 character string
	Id *string `mandatory:"true" json:"id"`

	// Computed Usage created time, expressed in RFC 3339 timestamp format.
	TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"`

	// Computed Usage updated time, expressed in RFC 3339 timestamp format.
	TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"`

	// Subscribed service line parent id
	ParentSubscribedServiceId *string `mandatory:"false" json:"parentSubscribedServiceId"`

	ParentProduct *ComputedUsageProduct `mandatory:"false" json:"parentProduct"`

	// Subscription plan number
	PlanNumber *string `mandatory:"false" json:"planNumber"`

	// Currency code
	CurrencyCode *string `mandatory:"false" json:"currencyCode"`

	// References the tier in the ratecard for that usage (OCI will be using the same reference to cross-reference for correctness on the usage csv report), comes from Entity OBSCNTR_IPT_PRODUCTTIER.
	RateCardTierdId *string `mandatory:"false" json:"rateCardTierdId"`

	// Ratecard Id at subscribed service level
	RateCardId *string `mandatory:"false" json:"rateCardId"`

	// SPM Internal compute records source .
	ComputeSource *string `mandatory:"false" json:"computeSource"`

	// Data Center Attribute as sent by MQS to SPM.
	DataCenter *string `mandatory:"false" json:"dataCenter"`

	// MQS Identfier send to SPM , SPM does not transform this attribute and is received as is.
	MqsMessageId *string `mandatory:"false" json:"mqsMessageId"`

	// Total Quantity that was used for computation
	Quantity *string `mandatory:"false" json:"quantity"`

	// SPM Internal usage Line number identifier in SPM coming from Metered Services entity.
	UsageNumber *string `mandatory:"false" json:"usageNumber"`

	// SPM Internal Original usage Line number identifier in SPM coming from Metered Services entity.
	OriginalUsageNumber *string `mandatory:"false" json:"originalUsageNumber"`

	// Subscribed service commitmentId.
	CommitmentServiceId *string `mandatory:"false" json:"commitmentServiceId"`

	// Invoicing status for the aggregated compute usage
	IsInvoiced *bool `mandatory:"false" json:"isInvoiced"`

	// Usage compute type in SPM.
	Type ComputedUsageTypeEnum `mandatory:"false" json:"type,omitempty"`

	// Usae computation date, expressed in RFC 3339 timestamp format.
	TimeOfArrival *common.SDKTime `mandatory:"false" json:"timeOfArrival"`

	// Metered Service date, expressed in RFC 3339 timestamp format.
	TimeMeteredOn *common.SDKTime `mandatory:"false" json:"timeMeteredOn"`

	// Net Unit Price for the product in consideration, price actual.
	NetUnitPrice *string `mandatory:"false" json:"netUnitPrice"`

	// Computed Line Amount rounded.
	CostRounded *string `mandatory:"false" json:"costRounded"`

	// Computed Line Amount not rounded
	Cost *string `mandatory:"false" json:"cost"`

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

	// Unit of Messure
	UnitOfMeasure *string `mandatory:"false" json:"unitOfMeasure"`
}

ComputedUsage Computed Usage Summary object

func (ComputedUsage) String

func (m ComputedUsage) String() string

func (ComputedUsage) ValidateEnumValue

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

type ComputedUsageAggregation struct {

	// Total Quantity that was used for computation
	Quantity *string `mandatory:"false" json:"quantity"`

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

	// Data Center Attribute as sent by MQS to SPM.
	DataCenter *string `mandatory:"false" json:"dataCenter"`

	// Metered Service date , expressed in RFC 3339 timestamp format.
	TimeMeteredOn *common.SDKTime `mandatory:"false" json:"timeMeteredOn"`

	// Net Unit Price for the product in consideration.
	NetUnitPrice *string `mandatory:"false" json:"netUnitPrice"`

	// Sum of Computed Line Amount unrounded
	CostUnrounded *string `mandatory:"false" json:"costUnrounded"`

	// Sum of Computed Line Amount rounded
	Cost *string `mandatory:"false" json:"cost"`

	// Usage compute type in SPM.
	Type ComputedUsageAggregationTypeEnum `mandatory:"false" json:"type,omitempty"`
}

ComputedUsageAggregation Computed Usage Aggregation object

func (ComputedUsageAggregation) String

func (m ComputedUsageAggregation) String() string

func (ComputedUsageAggregation) ValidateEnumValue

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

type ComputedUsageAggregationTypeEnum string

ComputedUsageAggregationTypeEnum Enum with underlying type: string

const (
	ComputedUsageAggregationTypePromotion                     ComputedUsageAggregationTypeEnum = "PROMOTION"
	ComputedUsageAggregationTypeDoNotBill                     ComputedUsageAggregationTypeEnum = "DO_NOT_BILL"
	ComputedUsageAggregationTypeUsage                         ComputedUsageAggregationTypeEnum = "USAGE"
	ComputedUsageAggregationTypeCommit                        ComputedUsageAggregationTypeEnum = "COMMIT"
	ComputedUsageAggregationTypeOverage                       ComputedUsageAggregationTypeEnum = "OVERAGE"
	ComputedUsageAggregationTypePayAsYouGo                    ComputedUsageAggregationTypeEnum = "PAY_AS_YOU_GO"
	ComputedUsageAggregationTypeMonthlyMinimum                ComputedUsageAggregationTypeEnum = "MONTHLY_MINIMUM"
	ComputedUsageAggregationTypeDelayedUsageInvoiceTiming     ComputedUsageAggregationTypeEnum = "DELAYED_USAGE_INVOICE_TIMING"
	ComputedUsageAggregationTypeDelayedUsageCommitmentExp     ComputedUsageAggregationTypeEnum = "DELAYED_USAGE_COMMITMENT_EXP"
	ComputedUsageAggregationTypeOnAccountCredit               ComputedUsageAggregationTypeEnum = "ON_ACCOUNT_CREDIT"
	ComputedUsageAggregationTypeServiceCredit                 ComputedUsageAggregationTypeEnum = "SERVICE_CREDIT"
	ComputedUsageAggregationTypeCommitmentExpiration          ComputedUsageAggregationTypeEnum = "COMMITMENT_EXPIRATION"
	ComputedUsageAggregationTypeFundedAllocation              ComputedUsageAggregationTypeEnum = "FUNDED_ALLOCATION"
	ComputedUsageAggregationTypeDonotBillUsagePostTermination ComputedUsageAggregationTypeEnum = "DONOT_BILL_USAGE_POST_TERMINATION"
	ComputedUsageAggregationTypeDelayedUsagePostTermination   ComputedUsageAggregationTypeEnum = "DELAYED_USAGE_POST_TERMINATION"
)

Set of constants representing the allowable values for ComputedUsageAggregationTypeEnum

func GetComputedUsageAggregationTypeEnumValues

func GetComputedUsageAggregationTypeEnumValues() []ComputedUsageAggregationTypeEnum

GetComputedUsageAggregationTypeEnumValues Enumerates the set of values for ComputedUsageAggregationTypeEnum

func GetMappingComputedUsageAggregationTypeEnum

func GetMappingComputedUsageAggregationTypeEnum(val string) (ComputedUsageAggregationTypeEnum, bool)

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

type ComputedUsageClient

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

ComputedUsageClient a client for ComputedUsage

func NewComputedUsageClientWithConfigurationProvider

func NewComputedUsageClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client ComputedUsageClient, err error)

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

func NewComputedUsageClientWithOboToken

func NewComputedUsageClientWithOboToken(configProvider common.ConfigurationProvider, oboToken string) (client ComputedUsageClient, err error)

NewComputedUsageClientWithOboToken Creates a new default ComputedUsage 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 (*ComputedUsageClient) ConfigurationProvider

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

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

func (ComputedUsageClient) GetComputedUsage

func (client ComputedUsageClient) GetComputedUsage(ctx context.Context, request GetComputedUsageRequest) (response GetComputedUsageResponse, err error)

GetComputedUsage This is an API which returns Computed Usage corresponding to the id passed

See also

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

func (ComputedUsageClient) ListAggregatedComputedUsages

func (client ComputedUsageClient) ListAggregatedComputedUsages(ctx context.Context, request ListAggregatedComputedUsagesRequest) (response ListAggregatedComputedUsagesResponse, err error)

ListAggregatedComputedUsages This is a collection API which returns a list of aggregated computed usage details (there can be multiple Parent Products under a given SubID each of which is represented under Subscription Service Line # in SPM).

See also

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

func (ComputedUsageClient) ListComputedUsages

func (client ComputedUsageClient) ListComputedUsages(ctx context.Context, request ListComputedUsagesRequest) (response ListComputedUsagesResponse, err error)

ListComputedUsages This is a collection API which returns a list of Computed Usages for given filters.

See also

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

func (*ComputedUsageClient) SetRegion

func (client *ComputedUsageClient) SetRegion(region string)

SetRegion overrides the region of this client.

type ComputedUsageProduct

type ComputedUsageProduct struct {

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

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

	// Unit of Measure
	UnitOfMeasure *string `mandatory:"false" json:"unitOfMeasure"`

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

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

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

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

ComputedUsageProduct Product description

func (ComputedUsageProduct) String

func (m ComputedUsageProduct) String() string

func (ComputedUsageProduct) ValidateEnumValue

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

type ComputedUsageSummary struct {

	// SPM Internal computed usage Id , 32 character string
	ComputedUsageId *string `mandatory:"true" json:"computedUsageId"`

	// Computed Usage created time, expressed in RFC 3339 timestamp format.
	TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"`

	// Computed Usage updated time, expressed in RFC 3339 timestamp format.
	TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"`

	// Subscribed service line parent id
	ParentSubscribedServiceId *string `mandatory:"false" json:"parentSubscribedServiceId"`

	ParentProduct *ComputedUsageProduct `mandatory:"false" json:"parentProduct"`

	// Subscription plan number
	PlanNumber *string `mandatory:"false" json:"planNumber"`

	// Currency code
	CurrencyCode *string `mandatory:"false" json:"currencyCode"`

	// References the tier in the ratecard for that usage (OCI will be using the same reference to cross-reference for correctness on the usage csv report), comes from Entity OBSCNTR_IPT_PRODUCTTIER.
	RateCardTierdId *string `mandatory:"false" json:"rateCardTierdId"`

	// Ratecard Id at subscribed service level
	RateCardId *string `mandatory:"false" json:"rateCardId"`

	// SPM Internal compute records source .
	ComputeSource *string `mandatory:"false" json:"computeSource"`

	// Data Center Attribute as sent by MQS to SPM.
	DataCenter *string `mandatory:"false" json:"dataCenter"`

	// MQS Identfier send to SPM , SPM does not transform this attribute and is received as is.
	MqsMessageId *string `mandatory:"false" json:"mqsMessageId"`

	// Total Quantity that was used for computation
	Quantity *string `mandatory:"false" json:"quantity"`

	// SPM Internal usage Line number identifier in SPM coming from Metered Services entity.
	UsageNumber *string `mandatory:"false" json:"usageNumber"`

	// SPM Internal Original usage Line number identifier in SPM coming from Metered Services entity.
	OriginalUsageNumber *string `mandatory:"false" json:"originalUsageNumber"`

	// Subscribed service commitmentId.
	CommitmentServiceId *string `mandatory:"false" json:"commitmentServiceId"`

	// Invoicing status for the aggregated compute usage
	IsInvoiced *bool `mandatory:"false" json:"isInvoiced"`

	// Usage compute type in SPM.
	Type ComputedUsageSummaryTypeEnum `mandatory:"false" json:"type,omitempty"`

	// Usae computation date, expressed in RFC 3339 timestamp format.
	TimeOfArrival *common.SDKTime `mandatory:"false" json:"timeOfArrival"`

	// Metered Service date, expressed in RFC 3339 timestamp format.
	TimeMeteredOn *common.SDKTime `mandatory:"false" json:"timeMeteredOn"`

	// Net Unit Price for the product in consideration, price actual.
	NetUnitPrice *string `mandatory:"false" json:"netUnitPrice"`

	// Computed Line Amount rounded.
	CostRounded *string `mandatory:"false" json:"costRounded"`

	// Computed Line Amount not rounded
	Cost *string `mandatory:"false" json:"cost"`

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

	// Unit of Messure
	UnitOfMeasure *string `mandatory:"false" json:"unitOfMeasure"`
}

ComputedUsageSummary Computed Usage Summary object

func (ComputedUsageSummary) String

func (m ComputedUsageSummary) String() string

func (ComputedUsageSummary) ValidateEnumValue

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

type ComputedUsageSummaryTypeEnum string

ComputedUsageSummaryTypeEnum Enum with underlying type: string

const (
	ComputedUsageSummaryTypePromotion                     ComputedUsageSummaryTypeEnum = "PROMOTION"
	ComputedUsageSummaryTypeDoNotBill                     ComputedUsageSummaryTypeEnum = "DO_NOT_BILL"
	ComputedUsageSummaryTypeUsage                         ComputedUsageSummaryTypeEnum = "USAGE"
	ComputedUsageSummaryTypeCommit                        ComputedUsageSummaryTypeEnum = "COMMIT"
	ComputedUsageSummaryTypeOverage                       ComputedUsageSummaryTypeEnum = "OVERAGE"
	ComputedUsageSummaryTypePayAsYouGo                    ComputedUsageSummaryTypeEnum = "PAY_AS_YOU_GO"
	ComputedUsageSummaryTypeMonthlyMinimum                ComputedUsageSummaryTypeEnum = "MONTHLY_MINIMUM"
	ComputedUsageSummaryTypeDelayedUsageInvoiceTiming     ComputedUsageSummaryTypeEnum = "DELAYED_USAGE_INVOICE_TIMING"
	ComputedUsageSummaryTypeDelayedUsageCommitmentExp     ComputedUsageSummaryTypeEnum = "DELAYED_USAGE_COMMITMENT_EXP"
	ComputedUsageSummaryTypeOnAccountCredit               ComputedUsageSummaryTypeEnum = "ON_ACCOUNT_CREDIT"
	ComputedUsageSummaryTypeServiceCredit                 ComputedUsageSummaryTypeEnum = "SERVICE_CREDIT"
	ComputedUsageSummaryTypeCommitmentExpiration          ComputedUsageSummaryTypeEnum = "COMMITMENT_EXPIRATION"
	ComputedUsageSummaryTypeFundedAllocation              ComputedUsageSummaryTypeEnum = "FUNDED_ALLOCATION"
	ComputedUsageSummaryTypeDonotBillUsagePostTermination ComputedUsageSummaryTypeEnum = "DONOT_BILL_USAGE_POST_TERMINATION"
	ComputedUsageSummaryTypeDelayedUsagePostTermination   ComputedUsageSummaryTypeEnum = "DELAYED_USAGE_POST_TERMINATION"
)

Set of constants representing the allowable values for ComputedUsageSummaryTypeEnum

func GetComputedUsageSummaryTypeEnumValues

func GetComputedUsageSummaryTypeEnumValues() []ComputedUsageSummaryTypeEnum

GetComputedUsageSummaryTypeEnumValues Enumerates the set of values for ComputedUsageSummaryTypeEnum

func GetMappingComputedUsageSummaryTypeEnum

func GetMappingComputedUsageSummaryTypeEnum(val string) (ComputedUsageSummaryTypeEnum, bool)

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

type ComputedUsageTypeEnum

type ComputedUsageTypeEnum string

ComputedUsageTypeEnum Enum with underlying type: string

const (
	ComputedUsageTypePromotion                     ComputedUsageTypeEnum = "PROMOTION"
	ComputedUsageTypeDoNotBill                     ComputedUsageTypeEnum = "DO_NOT_BILL"
	ComputedUsageTypeUsage                         ComputedUsageTypeEnum = "USAGE"
	ComputedUsageTypeCommit                        ComputedUsageTypeEnum = "COMMIT"
	ComputedUsageTypeOverage                       ComputedUsageTypeEnum = "OVERAGE"
	ComputedUsageTypePayAsYouGo                    ComputedUsageTypeEnum = "PAY_AS_YOU_GO"
	ComputedUsageTypeMonthlyMinimum                ComputedUsageTypeEnum = "MONTHLY_MINIMUM"
	ComputedUsageTypeDelayedUsageInvoiceTiming     ComputedUsageTypeEnum = "DELAYED_USAGE_INVOICE_TIMING"
	ComputedUsageTypeDelayedUsageCommitmentExp     ComputedUsageTypeEnum = "DELAYED_USAGE_COMMITMENT_EXP"
	ComputedUsageTypeOnAccountCredit               ComputedUsageTypeEnum = "ON_ACCOUNT_CREDIT"
	ComputedUsageTypeServiceCredit                 ComputedUsageTypeEnum = "SERVICE_CREDIT"
	ComputedUsageTypeCommitmentExpiration          ComputedUsageTypeEnum = "COMMITMENT_EXPIRATION"
	ComputedUsageTypeFundedAllocation              ComputedUsageTypeEnum = "FUNDED_ALLOCATION"
	ComputedUsageTypeDonotBillUsagePostTermination ComputedUsageTypeEnum = "DONOT_BILL_USAGE_POST_TERMINATION"
	ComputedUsageTypeDelayedUsagePostTermination   ComputedUsageTypeEnum = "DELAYED_USAGE_POST_TERMINATION"
)

Set of constants representing the allowable values for ComputedUsageTypeEnum

func GetComputedUsageTypeEnumValues

func GetComputedUsageTypeEnumValues() []ComputedUsageTypeEnum

GetComputedUsageTypeEnumValues Enumerates the set of values for ComputedUsageTypeEnum

func GetMappingComputedUsageTypeEnum

func GetMappingComputedUsageTypeEnum(val string) (ComputedUsageTypeEnum, bool)

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

type GetCommitmentRequest

type GetCommitmentRequest struct {

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

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

	// 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
}

GetCommitmentRequest wrapper for the GetCommitment operation

See also

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

func (GetCommitmentRequest) BinaryRequestBody

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

BinaryRequestBody implements the OCIRequest interface

func (GetCommitmentRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (GetCommitmentRequest) RetryPolicy

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

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

func (GetCommitmentRequest) String

func (request GetCommitmentRequest) String() string

func (GetCommitmentRequest) ValidateEnumValue

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

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

type GetCommitmentResponse

type GetCommitmentResponse struct {

	// The underlying http response
	RawResponse *http.Response

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

GetCommitmentResponse wrapper for the GetCommitment operation

func (GetCommitmentResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (GetCommitmentResponse) String

func (response GetCommitmentResponse) String() string

type GetComputedUsageRequest

type GetComputedUsageRequest struct {

	// The Computed Usage Id
	ComputedUsageId *string `mandatory:"true" contributesTo:"path" name:"computedUsageId"`

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

	// Partial response refers to an optimization technique offered
	// by the RESTful web APIs to return only the information
	// (fields) required by the client. This parameter is used to control what fields to
	// return.
	Fields []string `contributesTo:"query" name:"fields" collectionFormat:"multi"`

	// 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
}

GetComputedUsageRequest wrapper for the GetComputedUsage operation

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/onesubscription/GetComputedUsage.go.html to see an example of how to use GetComputedUsageRequest.

func (GetComputedUsageRequest) BinaryRequestBody

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

BinaryRequestBody implements the OCIRequest interface

func (GetComputedUsageRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (GetComputedUsageRequest) RetryPolicy

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

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

func (GetComputedUsageRequest) String

func (request GetComputedUsageRequest) String() string

func (GetComputedUsageRequest) ValidateEnumValue

func (request GetComputedUsageRequest) 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 GetComputedUsageResponse

type GetComputedUsageResponse struct {

	// The underlying http response
	RawResponse *http.Response

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

GetComputedUsageResponse wrapper for the GetComputedUsage operation

func (GetComputedUsageResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (GetComputedUsageResponse) String

func (response GetComputedUsageResponse) String() string

type GetSubscribedServiceRequest

type GetSubscribedServiceRequest struct {

	// The Subscribed Service Id
	SubscribedServiceId *string `mandatory:"true" contributesTo:"path" name:"subscribedServiceId"`

	// Partial response refers to an optimization technique offered
	// by the RESTful web APIs to return only the information
	// (fields) required by the client. In this mechanism, the client
	// sends the required field names as the query parameters for
	// an API to the server, and the server trims down the default
	// response content by removing the fields that are not required
	// by the client. The parameter used to control what fields to
	// return should be a query string parameter called "fields" of
	// type array, and usecollectionFormat
	Fields []string `contributesTo:"query" name:"fields" collectionFormat:"multi"`

	// 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
}

GetSubscribedServiceRequest wrapper for the GetSubscribedService operation

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/onesubscription/GetSubscribedService.go.html to see an example of how to use GetSubscribedServiceRequest.

func (GetSubscribedServiceRequest) BinaryRequestBody

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

BinaryRequestBody implements the OCIRequest interface

func (GetSubscribedServiceRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (GetSubscribedServiceRequest) RetryPolicy

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

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

func (GetSubscribedServiceRequest) String

func (request GetSubscribedServiceRequest) String() string

func (GetSubscribedServiceRequest) ValidateEnumValue

func (request GetSubscribedServiceRequest) 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 GetSubscribedServiceResponse

type GetSubscribedServiceResponse struct {

	// The underlying http response
	RawResponse *http.Response

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

GetSubscribedServiceResponse wrapper for the GetSubscribedService operation

func (GetSubscribedServiceResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (GetSubscribedServiceResponse) String

func (response GetSubscribedServiceResponse) String() string

type InvoiceLineSummary

type InvoiceLineSummary struct {

	// SPM Invoice Line internal identifier
	Id *string `mandatory:"true" json:"id"`

	Product *InvoicingProduct `mandatory:"true" json:"product"`

	// Data Center Attribute.
	DataCenter *string `mandatory:"true" json:"dataCenter"`

	// Usage start time
	TimeStart *common.SDKTime `mandatory:"true" json:"timeStart"`

	// Usage end time
	TimeEnd *common.SDKTime `mandatory:"true" json:"timeEnd"`

	// AR Invoice Number for Invoice Line
	ArInvoiceNumber *string `mandatory:"false" json:"arInvoiceNumber"`
}

InvoiceLineSummary Invoice Line

func (InvoiceLineSummary) String

func (m InvoiceLineSummary) String() string

func (InvoiceLineSummary) ValidateEnumValue

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

type InvoiceSummary struct {

	// SPM Document Number is an functional identifier for invoice in SPM
	SpmInvoiceNumber *string `mandatory:"true" json:"spmInvoiceNumber"`

	BillToCustomer *InvoicingBusinessPartner `mandatory:"true" json:"billToCustomer"`

	BillToContact *InvoicingUser `mandatory:"true" json:"billToContact"`

	BillToAddress *InvoicingAddress `mandatory:"true" json:"billToAddress"`

	// Payment Method
	PaymentMethod *string `mandatory:"true" json:"paymentMethod"`

	PaymentTerm *InvoicingPaymentTerm `mandatory:"true" json:"paymentTerm"`

	Currency *InvoicingCurrency `mandatory:"true" json:"currency"`

	Organization *InvoicingOrganization `mandatory:"true" json:"organization"`

	// Document Type in SPM like SPM Invoice,SPM Credit Memo etc.,
	Type *string `mandatory:"true" json:"type"`

	// Document Status in SPM which depicts current state of invoice
	Status *string `mandatory:"true" json:"status"`

	// Invoice associated subscription plan number.
	SubscriptionNumber *string `mandatory:"true" json:"subscriptionNumber"`

	// Invoice Date
	TimeInvoiceDate *common.SDKTime `mandatory:"true" json:"timeInvoiceDate"`

	// AR Invoice Numbers comma separated under one invoice
	ArInvoices *string `mandatory:"false" json:"arInvoices"`

	// Receipt Method of Payment Mode
	ReceiptMethod *string `mandatory:"false" json:"receiptMethod"`

	// SPM Invocie creation date
	TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"`

	// User that executed SPM Invoice process
	CreatedBy *string `mandatory:"false" json:"createdBy"`

	// SPM Invoice updated date
	TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"`

	// User that updated SPM Invoice
	UpdatedBy *string `mandatory:"false" json:"updatedBy"`

	// Invoice Lines under particular invoice.
	InvoiceLines []InvoiceLineSummary `mandatory:"false" json:"invoiceLines"`
}

InvoiceSummary Invoice details

func (InvoiceSummary) String

func (m InvoiceSummary) String() string

func (InvoiceSummary) ValidateEnumValue

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

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

InvoiceSummaryClient a client for InvoiceSummary

func NewInvoiceSummaryClientWithConfigurationProvider

func NewInvoiceSummaryClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client InvoiceSummaryClient, err error)

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

func NewInvoiceSummaryClientWithOboToken

func NewInvoiceSummaryClientWithOboToken(configProvider common.ConfigurationProvider, oboToken string) (client InvoiceSummaryClient, err error)

NewInvoiceSummaryClientWithOboToken Creates a new default InvoiceSummary 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 (*InvoiceSummaryClient) ConfigurationProvider

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

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

func (InvoiceSummaryClient) ListInvoicelineComputedUsages

func (client InvoiceSummaryClient) ListInvoicelineComputedUsages(ctx context.Context, request ListInvoicelineComputedUsagesRequest) (response ListInvoicelineComputedUsagesResponse, err error)

ListInvoicelineComputedUsages This is a collection API which returns a list of Invoiced Computed Usages for given Invoiceline id.

See also

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

func (InvoiceSummaryClient) ListInvoices

func (client InvoiceSummaryClient) ListInvoices(ctx context.Context, request ListInvoicesRequest) (response ListInvoicesResponse, err error)

ListInvoices This is a collection API which returns a list of Invoices for given filters.

See also

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

func (*InvoiceSummaryClient) SetRegion

func (client *InvoiceSummaryClient) SetRegion(region string)

SetRegion overrides the region of this client.

type InvoicelineComputedUsageSummary

type InvoicelineComputedUsageSummary struct {
	ParentProduct *InvoicingProduct `mandatory:"true" json:"parentProduct"`

	// Total Quantity that was used for computation
	Quantity *float64 `mandatory:"true" json:"quantity"`

	// Net Unit Price for the product in consideration, price actual.
	NetUnitPrice *float64 `mandatory:"true" json:"netUnitPrice"`

	// Metered Service date.
	TimeMeteredOn *common.SDKTime `mandatory:"true" json:"timeMeteredOn"`

	// Usage compute type in SPM.
	Type InvoicelineComputedUsageSummaryTypeEnum `mandatory:"true" json:"type"`

	// Computed Line Amount rounded.
	CostRounded *float64 `mandatory:"true" json:"costRounded"`

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

	// Sum of Usage/Service Billing Line net Amount
	Cost *float64 `mandatory:"false" json:"cost"`
}

InvoicelineComputedUsageSummary Computed Usage Summary object

func (InvoicelineComputedUsageSummary) String

func (InvoicelineComputedUsageSummary) ValidateEnumValue

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

type InvoicelineComputedUsageSummaryTypeEnum string

InvoicelineComputedUsageSummaryTypeEnum Enum with underlying type: string

const (
	InvoicelineComputedUsageSummaryTypePromotion                 InvoicelineComputedUsageSummaryTypeEnum = "PROMOTION"
	InvoicelineComputedUsageSummaryTypeDoNotBill                 InvoicelineComputedUsageSummaryTypeEnum = "DO_NOT_BILL"
	InvoicelineComputedUsageSummaryTypeUsage                     InvoicelineComputedUsageSummaryTypeEnum = "USAGE"
	InvoicelineComputedUsageSummaryTypeCommit                    InvoicelineComputedUsageSummaryTypeEnum = "COMMIT"
	InvoicelineComputedUsageSummaryTypeOverage                   InvoicelineComputedUsageSummaryTypeEnum = "OVERAGE"
	InvoicelineComputedUsageSummaryTypePayAsYouGo                InvoicelineComputedUsageSummaryTypeEnum = "PAY_AS_YOU_GO"
	InvoicelineComputedUsageSummaryTypeMonthlyMinimum            InvoicelineComputedUsageSummaryTypeEnum = "MONTHLY_MINIMUM"
	InvoicelineComputedUsageSummaryTypeDelayedUsageInvoiceTiming InvoicelineComputedUsageSummaryTypeEnum = "DELAYED_USAGE_INVOICE_TIMING"
	InvoicelineComputedUsageSummaryTypeDelayedUsageCommitmentExp InvoicelineComputedUsageSummaryTypeEnum = "DELAYED_USAGE_COMMITMENT_EXP"
	InvoicelineComputedUsageSummaryTypeOnAccountCredit           InvoicelineComputedUsageSummaryTypeEnum = "ON_ACCOUNT_CREDIT"
	InvoicelineComputedUsageSummaryTypeServiceCredit             InvoicelineComputedUsageSummaryTypeEnum = "SERVICE_CREDIT"
)

Set of constants representing the allowable values for InvoicelineComputedUsageSummaryTypeEnum

func GetInvoicelineComputedUsageSummaryTypeEnumValues

func GetInvoicelineComputedUsageSummaryTypeEnumValues() []InvoicelineComputedUsageSummaryTypeEnum

GetInvoicelineComputedUsageSummaryTypeEnumValues Enumerates the set of values for InvoicelineComputedUsageSummaryTypeEnum

func GetMappingInvoicelineComputedUsageSummaryTypeEnum

func GetMappingInvoicelineComputedUsageSummaryTypeEnum(val string) (InvoicelineComputedUsageSummaryTypeEnum, bool)

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

type InvoicingAddress

type InvoicingAddress struct {
	Location *InvoicingLocation `mandatory:"false" json:"location"`

	// Address name identifier.
	Name *string `mandatory:"false" json:"name"`

	// Phone.
	Phone *string `mandatory:"false" json:"phone"`

	// Identify as the customer's billing address.
	IsBillTo *bool `mandatory:"false" json:"isBillTo"`

	// Identify as the customer's shipping address.
	IsShipTo *bool `mandatory:"false" json:"isShipTo"`

	// Bill to site use Id.
	BillSiteUseId *int64 `mandatory:"false" json:"billSiteUseId"`

	// Service to site use Id.
	Service2SiteUseId *int64 `mandatory:"false" json:"service2SiteUseId"`

	// TCA customer account site Id.
	TcaCustAcctSiteId *int64 `mandatory:"false" json:"tcaCustAcctSiteId"`

	// Party site number.
	TcaPartySiteNumber *string `mandatory:"false" json:"tcaPartySiteNumber"`
}

InvoicingAddress Address.

func (InvoicingAddress) String

func (m InvoicingAddress) String() string

func (InvoicingAddress) ValidateEnumValue

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

type InvoicingBusinessPartner struct {

	// Commercial name also called customer name.
	Name *string `mandatory:"false" json:"name"`

	// Phonetic name.
	NamePhonetic *string `mandatory:"false" json:"namePhonetic"`

	// TCA customer account number.
	TcaCustomerAccountNumber *string `mandatory:"false" json:"tcaCustomerAccountNumber"`

	// The business partner is part of the public sector or not.
	IsPublicSector *bool `mandatory:"false" json:"isPublicSector"`

	// The business partner is chain customer or not.
	IsChainCustomer *bool `mandatory:"false" json:"isChainCustomer"`

	// Customer chain type.
	CustomerChainType *string `mandatory:"false" json:"customerChainType"`

	// TCA party number.
	TcaPartyNumber *string `mandatory:"false" json:"tcaPartyNumber"`

	// TCA party ID.
	TcaPartyId *int64 `mandatory:"false" json:"tcaPartyId"`

	// TCA customer account ID.
	TcaCustomerAccountId *int64 `mandatory:"false" json:"tcaCustomerAccountId"`
}

InvoicingBusinessPartner Business partner.

func (InvoicingBusinessPartner) String

func (m InvoicingBusinessPartner) String() string

func (InvoicingBusinessPartner) ValidateEnumValue

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

type InvoicingCurrency struct {

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

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

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

InvoicingCurrency Currency details

func (InvoicingCurrency) String

func (m InvoicingCurrency) String() string

func (InvoicingCurrency) ValidateEnumValue

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

type InvoicingLocation struct {

	// Address first line.
	Address1 *string `mandatory:"false" json:"address1"`

	// Address second line.
	Address2 *string `mandatory:"false" json:"address2"`

	// Postal code.
	PostalCode *string `mandatory:"false" json:"postalCode"`

	// City.
	City *string `mandatory:"false" json:"city"`

	// Country.
	Country *string `mandatory:"false" json:"country"`

	// Region.
	Region *string `mandatory:"false" json:"region"`

	// TCA Location identifier.
	TcaLocationId *int64 `mandatory:"false" json:"tcaLocationId"`
}

InvoicingLocation Address location.

func (InvoicingLocation) String

func (m InvoicingLocation) String() string

func (InvoicingLocation) ValidateEnumValue

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

type InvoicingOrganization struct {

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

	// Organization ID
	Number *float64 `mandatory:"true" json:"number"`
}

InvoicingOrganization Organization details

func (InvoicingOrganization) String

func (m InvoicingOrganization) String() string

func (InvoicingOrganization) ValidateEnumValue

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

type InvoicingPaymentTerm struct {

	// Payment Term name
	Name *string `mandatory:"true" json:"name"`

	// Payment Term value
	Value *string `mandatory:"false" json:"value"`

	// Payment term Description
	Description *string `mandatory:"false" json:"description"`

	// Payment term active flag
	IsActive *bool `mandatory:"false" json:"isActive"`

	// Payment term last update date
	TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"`

	// User that created the Payment term
	CreatedBy *string `mandatory:"false" json:"createdBy"`

	// Payment term last update date
	TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"`

	// User that updated the Payment term
	UpdatedBy *string `mandatory:"false" json:"updatedBy"`
}

InvoicingPaymentTerm Payment Term details

func (InvoicingPaymentTerm) String

func (m InvoicingPaymentTerm) String() string

func (InvoicingPaymentTerm) ValidateEnumValue

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

type InvoicingProduct struct {

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

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

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

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

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

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

InvoicingProduct Product description

func (InvoicingProduct) String

func (m InvoicingProduct) String() string

func (InvoicingProduct) ValidateEnumValue

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

type InvoicingUser struct {

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

	// userName.
	UserName *string `mandatory:"false" json:"userName"`

	// First name.
	FirstName *string `mandatory:"false" json:"firstName"`

	// Last name.
	LastName *string `mandatory:"false" json:"lastName"`

	// Email.
	Email *string `mandatory:"false" json:"email"`

	// TCA contact ID.
	TcaContactId *int64 `mandatory:"false" json:"tcaContactId"`

	// TCA customer account site ID.
	TcaCustAccntSiteId *int64 `mandatory:"false" json:"tcaCustAccntSiteId"`

	// TCA party ID.
	TcaPartyId *int64 `mandatory:"false" json:"tcaPartyId"`
}

InvoicingUser User.

func (InvoicingUser) String

func (m InvoicingUser) String() string

func (InvoicingUser) ValidateEnumValue

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

type ListAggregatedComputedUsagesGroupingEnum string

ListAggregatedComputedUsagesGroupingEnum Enum with underlying type: string

const (
	ListAggregatedComputedUsagesGroupingHourly  ListAggregatedComputedUsagesGroupingEnum = "HOURLY"
	ListAggregatedComputedUsagesGroupingDaily   ListAggregatedComputedUsagesGroupingEnum = "DAILY"
	ListAggregatedComputedUsagesGroupingMonthly ListAggregatedComputedUsagesGroupingEnum = "MONTHLY"
	ListAggregatedComputedUsagesGroupingNone    ListAggregatedComputedUsagesGroupingEnum = "NONE"
)

Set of constants representing the allowable values for ListAggregatedComputedUsagesGroupingEnum

func GetListAggregatedComputedUsagesGroupingEnumValues

func GetListAggregatedComputedUsagesGroupingEnumValues() []ListAggregatedComputedUsagesGroupingEnum

GetListAggregatedComputedUsagesGroupingEnumValues Enumerates the set of values for ListAggregatedComputedUsagesGroupingEnum

func GetMappingListAggregatedComputedUsagesGroupingEnum

func GetMappingListAggregatedComputedUsagesGroupingEnum(val string) (ListAggregatedComputedUsagesGroupingEnum, bool)

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

type ListAggregatedComputedUsagesRequest

type ListAggregatedComputedUsagesRequest struct {

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

	// Subscription Id is an identifier associated to the service used for filter the Computed Usage in SPM.
	SubscriptionId *string `mandatory:"true" contributesTo:"query" name:"subscriptionId"`

	// Initial date to filter Computed Usage data in SPM. In the case of non aggregated data the time period between of fromDate and toDate , expressed in RFC 3339 timestamp format.
	TimeFrom *common.SDKTime `mandatory:"true" contributesTo:"query" name:"timeFrom"`

	// Final date to filter Computed Usage data in SPM, expressed in RFC 3339 timestamp format.
	TimeTo *common.SDKTime `mandatory:"true" contributesTo:"query" name:"timeTo"`

	// Product part number for subscribed service line, called parent product.
	ParentProduct *string `mandatory:"false" contributesTo:"query" name:"parentProduct"`

	// Grouping criteria to use for aggregate the computed Usage, either hourly (`HOURLY`), daily (`DAILY`), monthly(`MONTHLY`) or none (`NONE`) to not follow a grouping criteria by date.
	Grouping ListAggregatedComputedUsagesGroupingEnum `mandatory:"false" contributesTo:"query" name:"grouping" omitEmpty:"true"`

	// The maximum number aggregatedComputedUsages of items to return within the Subscription "List" call, this
	// counts the overall count across all items
	// Example: `500`
	Limit *int `mandatory:"false" contributesTo:"query" name:"limit"`

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

	// 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
}

ListAggregatedComputedUsagesRequest wrapper for the ListAggregatedComputedUsages operation

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/onesubscription/ListAggregatedComputedUsages.go.html to see an example of how to use ListAggregatedComputedUsagesRequest.

func (ListAggregatedComputedUsagesRequest) BinaryRequestBody

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

BinaryRequestBody implements the OCIRequest interface

func (ListAggregatedComputedUsagesRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (ListAggregatedComputedUsagesRequest) RetryPolicy

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

func (ListAggregatedComputedUsagesRequest) String

func (ListAggregatedComputedUsagesRequest) ValidateEnumValue

func (request ListAggregatedComputedUsagesRequest) 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 ListAggregatedComputedUsagesResponse

type ListAggregatedComputedUsagesResponse struct {

	// The underlying http response
	RawResponse *http.Response

	// A list of []AggregatedComputedUsageSummary instances
	Items []AggregatedComputedUsageSummary `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"`
}

ListAggregatedComputedUsagesResponse wrapper for the ListAggregatedComputedUsages operation

func (ListAggregatedComputedUsagesResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (ListAggregatedComputedUsagesResponse) String

func (response ListAggregatedComputedUsagesResponse) String() string

type ListBillingSchedulesRequest

type ListBillingSchedulesRequest struct {

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

	// This param is used to get only the billing schedules for a particular Subscription Id
	SubscriptionId *string `mandatory:"true" contributesTo:"query" name:"subscriptionId"`

	// This param is used to get only the billing schedules for a particular Subscribed Service
	SubscribedServiceId *string `mandatory:"false" contributesTo:"query" name:"subscribedServiceId"`

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

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

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

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

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

	// 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
}

ListBillingSchedulesRequest wrapper for the ListBillingSchedules operation

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/onesubscription/ListBillingSchedules.go.html to see an example of how to use ListBillingSchedulesRequest.

func (ListBillingSchedulesRequest) BinaryRequestBody

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

BinaryRequestBody implements the OCIRequest interface

func (ListBillingSchedulesRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (ListBillingSchedulesRequest) RetryPolicy

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

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

func (ListBillingSchedulesRequest) String

func (request ListBillingSchedulesRequest) String() string

func (ListBillingSchedulesRequest) ValidateEnumValue

func (request ListBillingSchedulesRequest) 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 ListBillingSchedulesResponse

type ListBillingSchedulesResponse struct {

	// The underlying http response
	RawResponse *http.Response

	// A list of []BillingScheduleSummary instances
	Items []BillingScheduleSummary `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"`
}

ListBillingSchedulesResponse wrapper for the ListBillingSchedules operation

func (ListBillingSchedulesResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (ListBillingSchedulesResponse) String

func (response ListBillingSchedulesResponse) String() string

type ListBillingSchedulesSortByEnum

type ListBillingSchedulesSortByEnum string

ListBillingSchedulesSortByEnum Enum with underlying type: string

const (
	ListBillingSchedulesSortByOrdernumber   ListBillingSchedulesSortByEnum = "ORDERNUMBER"
	ListBillingSchedulesSortByTimeinvoicing ListBillingSchedulesSortByEnum = "TIMEINVOICING"
)

Set of constants representing the allowable values for ListBillingSchedulesSortByEnum

func GetListBillingSchedulesSortByEnumValues

func GetListBillingSchedulesSortByEnumValues() []ListBillingSchedulesSortByEnum

GetListBillingSchedulesSortByEnumValues Enumerates the set of values for ListBillingSchedulesSortByEnum

func GetMappingListBillingSchedulesSortByEnum

func GetMappingListBillingSchedulesSortByEnum(val string) (ListBillingSchedulesSortByEnum, bool)

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

type ListBillingSchedulesSortOrderEnum

type ListBillingSchedulesSortOrderEnum string

ListBillingSchedulesSortOrderEnum Enum with underlying type: string

const (
	ListBillingSchedulesSortOrderAsc  ListBillingSchedulesSortOrderEnum = "ASC"
	ListBillingSchedulesSortOrderDesc ListBillingSchedulesSortOrderEnum = "DESC"
)

Set of constants representing the allowable values for ListBillingSchedulesSortOrderEnum

func GetListBillingSchedulesSortOrderEnumValues

func GetListBillingSchedulesSortOrderEnumValues() []ListBillingSchedulesSortOrderEnum

GetListBillingSchedulesSortOrderEnumValues Enumerates the set of values for ListBillingSchedulesSortOrderEnum

func GetMappingListBillingSchedulesSortOrderEnum

func GetMappingListBillingSchedulesSortOrderEnum(val string) (ListBillingSchedulesSortOrderEnum, bool)

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

type ListCommitmentsRequest

type ListCommitmentsRequest struct {

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

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

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

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

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

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

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

	// 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
}

ListCommitmentsRequest wrapper for the ListCommitments operation

See also

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

func (ListCommitmentsRequest) BinaryRequestBody

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

BinaryRequestBody implements the OCIRequest interface

func (ListCommitmentsRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (ListCommitmentsRequest) RetryPolicy

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

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

func (ListCommitmentsRequest) String

func (request ListCommitmentsRequest) String() string

func (ListCommitmentsRequest) ValidateEnumValue

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

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

type ListCommitmentsResponse

type ListCommitmentsResponse struct {

	// The underlying http response
	RawResponse *http.Response

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

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

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

ListCommitmentsResponse wrapper for the ListCommitments operation

func (ListCommitmentsResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (ListCommitmentsResponse) String

func (response ListCommitmentsResponse) String() string

type ListCommitmentsSortByEnum

type ListCommitmentsSortByEnum string

ListCommitmentsSortByEnum Enum with underlying type: string

const (
	ListCommitmentsSortByOrdernumber   ListCommitmentsSortByEnum = "ORDERNUMBER"
	ListCommitmentsSortByTimeinvoicing ListCommitmentsSortByEnum = "TIMEINVOICING"
)

Set of constants representing the allowable values for ListCommitmentsSortByEnum

func GetListCommitmentsSortByEnumValues

func GetListCommitmentsSortByEnumValues() []ListCommitmentsSortByEnum

GetListCommitmentsSortByEnumValues Enumerates the set of values for ListCommitmentsSortByEnum

func GetMappingListCommitmentsSortByEnum

func GetMappingListCommitmentsSortByEnum(val string) (ListCommitmentsSortByEnum, bool)

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

type ListCommitmentsSortOrderEnum

type ListCommitmentsSortOrderEnum string

ListCommitmentsSortOrderEnum Enum with underlying type: string

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

Set of constants representing the allowable values for ListCommitmentsSortOrderEnum

func GetListCommitmentsSortOrderEnumValues

func GetListCommitmentsSortOrderEnumValues() []ListCommitmentsSortOrderEnum

GetListCommitmentsSortOrderEnumValues Enumerates the set of values for ListCommitmentsSortOrderEnum

func GetMappingListCommitmentsSortOrderEnum

func GetMappingListCommitmentsSortOrderEnum(val string) (ListCommitmentsSortOrderEnum, bool)

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

type ListComputedUsagesRequest

type ListComputedUsagesRequest struct {

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

	// Subscription Id is an identifier associated to the service used for filter the Computed Usage in SPM.
	SubscriptionId *string `mandatory:"true" contributesTo:"query" name:"subscriptionId"`

	// Initial date to filter Computed Usage data in SPM. In the case of non aggregated data the time period between of fromDate and toDate , expressed in RFC 3339 timestamp format.
	TimeFrom *common.SDKTime `mandatory:"true" contributesTo:"query" name:"timeFrom"`

	// Final date to filter Computed Usage data in SPM, expressed in RFC 3339 timestamp format.
	TimeTo *common.SDKTime `mandatory:"true" contributesTo:"query" name:"timeTo"`

	// Product part number for subscribed service line, called parent product.
	ParentProduct *string `mandatory:"false" contributesTo:"query" name:"parentProduct"`

	// Product part number for Computed Usage .
	ComputedProduct *string `mandatory:"false" contributesTo:"query" name:"computedProduct"`

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

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

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

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

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

	// 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
}

ListComputedUsagesRequest wrapper for the ListComputedUsages operation

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/onesubscription/ListComputedUsages.go.html to see an example of how to use ListComputedUsagesRequest.

func (ListComputedUsagesRequest) BinaryRequestBody

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

BinaryRequestBody implements the OCIRequest interface

func (ListComputedUsagesRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (ListComputedUsagesRequest) RetryPolicy

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

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

func (ListComputedUsagesRequest) String

func (request ListComputedUsagesRequest) String() string

func (ListComputedUsagesRequest) ValidateEnumValue

func (request ListComputedUsagesRequest) 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 ListComputedUsagesResponse

type ListComputedUsagesResponse struct {

	// The underlying http response
	RawResponse *http.Response

	// A list of []ComputedUsageSummary instances
	Items []ComputedUsageSummary `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"`
}

ListComputedUsagesResponse wrapper for the ListComputedUsages operation

func (ListComputedUsagesResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (ListComputedUsagesResponse) String

func (response ListComputedUsagesResponse) String() string

type ListComputedUsagesSortByEnum

type ListComputedUsagesSortByEnum string

ListComputedUsagesSortByEnum Enum with underlying type: string

const (
	ListComputedUsagesSortByTimecreated   ListComputedUsagesSortByEnum = "timeCreated"
	ListComputedUsagesSortByTimeofarrival ListComputedUsagesSortByEnum = "timeOfArrival"
	ListComputedUsagesSortByTimemeteredon ListComputedUsagesSortByEnum = "timeMeteredOn"
)

Set of constants representing the allowable values for ListComputedUsagesSortByEnum

func GetListComputedUsagesSortByEnumValues

func GetListComputedUsagesSortByEnumValues() []ListComputedUsagesSortByEnum

GetListComputedUsagesSortByEnumValues Enumerates the set of values for ListComputedUsagesSortByEnum

func GetMappingListComputedUsagesSortByEnum

func GetMappingListComputedUsagesSortByEnum(val string) (ListComputedUsagesSortByEnum, bool)

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

type ListComputedUsagesSortOrderEnum

type ListComputedUsagesSortOrderEnum string

ListComputedUsagesSortOrderEnum Enum with underlying type: string

const (
	ListComputedUsagesSortOrderAsc  ListComputedUsagesSortOrderEnum = "ASC"
	ListComputedUsagesSortOrderDesc ListComputedUsagesSortOrderEnum = "DESC"
)

Set of constants representing the allowable values for ListComputedUsagesSortOrderEnum

func GetListComputedUsagesSortOrderEnumValues

func GetListComputedUsagesSortOrderEnumValues() []ListComputedUsagesSortOrderEnum

GetListComputedUsagesSortOrderEnumValues Enumerates the set of values for ListComputedUsagesSortOrderEnum

func GetMappingListComputedUsagesSortOrderEnum

func GetMappingListComputedUsagesSortOrderEnum(val string) (ListComputedUsagesSortOrderEnum, bool)

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

type ListInvoicelineComputedUsagesRequest

type ListInvoicelineComputedUsagesRequest struct {

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

	// Invoice Line Identifier - Primary Key SPM
	InvoiceLineId *string `mandatory:"true" contributesTo:"query" name:"invoiceLineId"`

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

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

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

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

	// Partial response refers to an optimization technique offered
	// by the RESTful web APIs to return only the information
	// (fields) required by the client. This parameter is used to control what fields to
	// return.
	Fields []string `contributesTo:"query" name:"fields" collectionFormat:"multi"`

	// 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
}

ListInvoicelineComputedUsagesRequest wrapper for the ListInvoicelineComputedUsages operation

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/onesubscription/ListInvoicelineComputedUsages.go.html to see an example of how to use ListInvoicelineComputedUsagesRequest.

func (ListInvoicelineComputedUsagesRequest) BinaryRequestBody

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

BinaryRequestBody implements the OCIRequest interface

func (ListInvoicelineComputedUsagesRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (ListInvoicelineComputedUsagesRequest) RetryPolicy

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

func (ListInvoicelineComputedUsagesRequest) String

func (ListInvoicelineComputedUsagesRequest) ValidateEnumValue

func (request ListInvoicelineComputedUsagesRequest) 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 ListInvoicelineComputedUsagesResponse

type ListInvoicelineComputedUsagesResponse struct {

	// The underlying http response
	RawResponse *http.Response

	// A list of []InvoicelineComputedUsageSummary instances
	Items []InvoicelineComputedUsageSummary `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"`
}

ListInvoicelineComputedUsagesResponse wrapper for the ListInvoicelineComputedUsages operation

func (ListInvoicelineComputedUsagesResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (ListInvoicelineComputedUsagesResponse) String

type ListInvoicelineComputedUsagesSortByEnum

type ListInvoicelineComputedUsagesSortByEnum string

ListInvoicelineComputedUsagesSortByEnum Enum with underlying type: string

const (
	ListInvoicelineComputedUsagesSortByTimecreated   ListInvoicelineComputedUsagesSortByEnum = "timeCreated"
	ListInvoicelineComputedUsagesSortByMeteredondate ListInvoicelineComputedUsagesSortByEnum = "meteredOnDate"
)

Set of constants representing the allowable values for ListInvoicelineComputedUsagesSortByEnum

func GetListInvoicelineComputedUsagesSortByEnumValues

func GetListInvoicelineComputedUsagesSortByEnumValues() []ListInvoicelineComputedUsagesSortByEnum

GetListInvoicelineComputedUsagesSortByEnumValues Enumerates the set of values for ListInvoicelineComputedUsagesSortByEnum

func GetMappingListInvoicelineComputedUsagesSortByEnum

func GetMappingListInvoicelineComputedUsagesSortByEnum(val string) (ListInvoicelineComputedUsagesSortByEnum, bool)

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

type ListInvoicelineComputedUsagesSortOrderEnum

type ListInvoicelineComputedUsagesSortOrderEnum string

ListInvoicelineComputedUsagesSortOrderEnum Enum with underlying type: string

const (
	ListInvoicelineComputedUsagesSortOrderAsc  ListInvoicelineComputedUsagesSortOrderEnum = "ASC"
	ListInvoicelineComputedUsagesSortOrderDesc ListInvoicelineComputedUsagesSortOrderEnum = "DESC"
)

Set of constants representing the allowable values for ListInvoicelineComputedUsagesSortOrderEnum

func GetListInvoicelineComputedUsagesSortOrderEnumValues

func GetListInvoicelineComputedUsagesSortOrderEnumValues() []ListInvoicelineComputedUsagesSortOrderEnum

GetListInvoicelineComputedUsagesSortOrderEnumValues Enumerates the set of values for ListInvoicelineComputedUsagesSortOrderEnum

func GetMappingListInvoicelineComputedUsagesSortOrderEnum

func GetMappingListInvoicelineComputedUsagesSortOrderEnum(val string) (ListInvoicelineComputedUsagesSortOrderEnum, bool)

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

type ListInvoicesRequest

type ListInvoicesRequest struct {

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

	// AR Unique identifier for an invoice .
	ArCustomerTransactionId *string `mandatory:"true" contributesTo:"query" name:"arCustomerTransactionId"`

	// Initial date to filter Invoice data in SPM.
	TimeFrom *common.SDKTime `mandatory:"false" contributesTo:"query" name:"timeFrom"`

	// Final date to filter Invoice data in SPM.
	TimeTo *common.SDKTime `mandatory:"false" contributesTo:"query" name:"timeTo"`

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

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

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

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

	// Partial response refers to an optimization technique offered
	// by the RESTful web APIs to return only the information
	// (fields) required by the client. This parameter is used to control what fields to
	// return.
	Fields []string `contributesTo:"query" name:"fields" collectionFormat:"multi"`

	// 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
}

ListInvoicesRequest wrapper for the ListInvoices operation

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/onesubscription/ListInvoices.go.html to see an example of how to use ListInvoicesRequest.

func (ListInvoicesRequest) BinaryRequestBody

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

BinaryRequestBody implements the OCIRequest interface

func (ListInvoicesRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (ListInvoicesRequest) RetryPolicy

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

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

func (ListInvoicesRequest) String

func (request ListInvoicesRequest) String() string

func (ListInvoicesRequest) ValidateEnumValue

func (request ListInvoicesRequest) 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 ListInvoicesResponse

type ListInvoicesResponse struct {

	// The underlying http response
	RawResponse *http.Response

	// A list of []InvoiceSummary instances
	Items []InvoiceSummary `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"`
}

ListInvoicesResponse wrapper for the ListInvoices operation

func (ListInvoicesResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (ListInvoicesResponse) String

func (response ListInvoicesResponse) String() string

type ListInvoicesSortByEnum

type ListInvoicesSortByEnum string

ListInvoicesSortByEnum Enum with underlying type: string

const (
	ListInvoicesSortByOrdernumber   ListInvoicesSortByEnum = "ORDERNUMBER"
	ListInvoicesSortByTimeinvoicing ListInvoicesSortByEnum = "TIMEINVOICING"
)

Set of constants representing the allowable values for ListInvoicesSortByEnum

func GetListInvoicesSortByEnumValues

func GetListInvoicesSortByEnumValues() []ListInvoicesSortByEnum

GetListInvoicesSortByEnumValues Enumerates the set of values for ListInvoicesSortByEnum

func GetMappingListInvoicesSortByEnum

func GetMappingListInvoicesSortByEnum(val string) (ListInvoicesSortByEnum, bool)

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

type ListInvoicesSortOrderEnum

type ListInvoicesSortOrderEnum string

ListInvoicesSortOrderEnum Enum with underlying type: string

const (
	ListInvoicesSortOrderAsc  ListInvoicesSortOrderEnum = "ASC"
	ListInvoicesSortOrderDesc ListInvoicesSortOrderEnum = "DESC"
)

Set of constants representing the allowable values for ListInvoicesSortOrderEnum

func GetListInvoicesSortOrderEnumValues

func GetListInvoicesSortOrderEnumValues() []ListInvoicesSortOrderEnum

GetListInvoicesSortOrderEnumValues Enumerates the set of values for ListInvoicesSortOrderEnum

func GetMappingListInvoicesSortOrderEnum

func GetMappingListInvoicesSortOrderEnum(val string) (ListInvoicesSortOrderEnum, bool)

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

type ListOrganizationSubscriptionsRequest

type ListOrganizationSubscriptionsRequest struct {

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

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

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

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

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

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

	// 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
}

ListOrganizationSubscriptionsRequest wrapper for the ListOrganizationSubscriptions operation

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/onesubscription/ListOrganizationSubscriptions.go.html to see an example of how to use ListOrganizationSubscriptionsRequest.

func (ListOrganizationSubscriptionsRequest) BinaryRequestBody

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

BinaryRequestBody implements the OCIRequest interface

func (ListOrganizationSubscriptionsRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (ListOrganizationSubscriptionsRequest) RetryPolicy

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

func (ListOrganizationSubscriptionsRequest) String

func (ListOrganizationSubscriptionsRequest) ValidateEnumValue

func (request ListOrganizationSubscriptionsRequest) 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 ListOrganizationSubscriptionsResponse

type ListOrganizationSubscriptionsResponse struct {

	// The underlying http response
	RawResponse *http.Response

	// A list of []OrganizationSubscriptionSummary instances
	Items []OrganizationSubscriptionSummary `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"`
}

ListOrganizationSubscriptionsResponse wrapper for the ListOrganizationSubscriptions operation

func (ListOrganizationSubscriptionsResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (ListOrganizationSubscriptionsResponse) String

type ListOrganizationSubscriptionsSortByEnum

type ListOrganizationSubscriptionsSortByEnum string

ListOrganizationSubscriptionsSortByEnum Enum with underlying type: string

const (
	ListOrganizationSubscriptionsSortByOrdernumber   ListOrganizationSubscriptionsSortByEnum = "ORDERNUMBER"
	ListOrganizationSubscriptionsSortByTimeinvoicing ListOrganizationSubscriptionsSortByEnum = "TIMEINVOICING"
)

Set of constants representing the allowable values for ListOrganizationSubscriptionsSortByEnum

func GetListOrganizationSubscriptionsSortByEnumValues

func GetListOrganizationSubscriptionsSortByEnumValues() []ListOrganizationSubscriptionsSortByEnum

GetListOrganizationSubscriptionsSortByEnumValues Enumerates the set of values for ListOrganizationSubscriptionsSortByEnum

func GetMappingListOrganizationSubscriptionsSortByEnum

func GetMappingListOrganizationSubscriptionsSortByEnum(val string) (ListOrganizationSubscriptionsSortByEnum, bool)

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

type ListOrganizationSubscriptionsSortOrderEnum

type ListOrganizationSubscriptionsSortOrderEnum string

ListOrganizationSubscriptionsSortOrderEnum Enum with underlying type: string

const (
	ListOrganizationSubscriptionsSortOrderAsc  ListOrganizationSubscriptionsSortOrderEnum = "ASC"
	ListOrganizationSubscriptionsSortOrderDesc ListOrganizationSubscriptionsSortOrderEnum = "DESC"
)

Set of constants representing the allowable values for ListOrganizationSubscriptionsSortOrderEnum

func GetListOrganizationSubscriptionsSortOrderEnumValues

func GetListOrganizationSubscriptionsSortOrderEnumValues() []ListOrganizationSubscriptionsSortOrderEnum

GetListOrganizationSubscriptionsSortOrderEnumValues Enumerates the set of values for ListOrganizationSubscriptionsSortOrderEnum

func GetMappingListOrganizationSubscriptionsSortOrderEnum

func GetMappingListOrganizationSubscriptionsSortOrderEnum(val string) (ListOrganizationSubscriptionsSortOrderEnum, bool)

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

type ListRateCardsRequest

type ListRateCardsRequest struct {

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

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

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

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

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

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

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

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

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

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

	// 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
}

ListRateCardsRequest wrapper for the ListRateCards operation

See also

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

func (ListRateCardsRequest) BinaryRequestBody

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

BinaryRequestBody implements the OCIRequest interface

func (ListRateCardsRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (ListRateCardsRequest) RetryPolicy

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

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

func (ListRateCardsRequest) String

func (request ListRateCardsRequest) String() string

func (ListRateCardsRequest) ValidateEnumValue

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

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

type ListRateCardsResponse

type ListRateCardsResponse struct {

	// The underlying http response
	RawResponse *http.Response

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

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

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

ListRateCardsResponse wrapper for the ListRateCards operation

func (ListRateCardsResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (ListRateCardsResponse) String

func (response ListRateCardsResponse) String() string

type ListRateCardsSortByEnum

type ListRateCardsSortByEnum string

ListRateCardsSortByEnum Enum with underlying type: string

const (
	ListRateCardsSortByOrdernumber   ListRateCardsSortByEnum = "ORDERNUMBER"
	ListRateCardsSortByTimeinvoicing ListRateCardsSortByEnum = "TIMEINVOICING"
)

Set of constants representing the allowable values for ListRateCardsSortByEnum

func GetListRateCardsSortByEnumValues

func GetListRateCardsSortByEnumValues() []ListRateCardsSortByEnum

GetListRateCardsSortByEnumValues Enumerates the set of values for ListRateCardsSortByEnum

func GetMappingListRateCardsSortByEnum

func GetMappingListRateCardsSortByEnum(val string) (ListRateCardsSortByEnum, bool)

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

type ListRateCardsSortOrderEnum

type ListRateCardsSortOrderEnum string

ListRateCardsSortOrderEnum Enum with underlying type: string

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

Set of constants representing the allowable values for ListRateCardsSortOrderEnum

func GetListRateCardsSortOrderEnumValues

func GetListRateCardsSortOrderEnumValues() []ListRateCardsSortOrderEnum

GetListRateCardsSortOrderEnumValues Enumerates the set of values for ListRateCardsSortOrderEnum

func GetMappingListRateCardsSortOrderEnum

func GetMappingListRateCardsSortOrderEnum(val string) (ListRateCardsSortOrderEnum, bool)

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

type ListSubscribedServicesRequest

type ListSubscribedServicesRequest struct {

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

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

	// Order Line identifier at subscribed service level . This identifier is originated in Order Management module. Default is null.
	OrderLineId *int64 `mandatory:"false" contributesTo:"query" name:"orderLineId"`

	// This param is used to filter subscribed services based on its status
	Status *string `mandatory:"false" contributesTo:"query" name:"status"`

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

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

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

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

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

	// 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
}

ListSubscribedServicesRequest wrapper for the ListSubscribedServices operation

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/onesubscription/ListSubscribedServices.go.html to see an example of how to use ListSubscribedServicesRequest.

func (ListSubscribedServicesRequest) BinaryRequestBody

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

BinaryRequestBody implements the OCIRequest interface

func (ListSubscribedServicesRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (ListSubscribedServicesRequest) RetryPolicy

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

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

func (ListSubscribedServicesRequest) String

func (request ListSubscribedServicesRequest) String() string

func (ListSubscribedServicesRequest) ValidateEnumValue

func (request ListSubscribedServicesRequest) 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 ListSubscribedServicesResponse

type ListSubscribedServicesResponse struct {

	// The underlying http response
	RawResponse *http.Response

	// A list of []SubscribedServiceSummary instances
	Items []SubscribedServiceSummary `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"`
}

ListSubscribedServicesResponse wrapper for the ListSubscribedServices operation

func (ListSubscribedServicesResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (ListSubscribedServicesResponse) String

func (response ListSubscribedServicesResponse) String() string

type ListSubscribedServicesSortByEnum

type ListSubscribedServicesSortByEnum string

ListSubscribedServicesSortByEnum Enum with underlying type: string

const (
	ListSubscribedServicesSortByOrdernumber   ListSubscribedServicesSortByEnum = "ORDERNUMBER"
	ListSubscribedServicesSortByTimeinvoicing ListSubscribedServicesSortByEnum = "TIMEINVOICING"
)

Set of constants representing the allowable values for ListSubscribedServicesSortByEnum

func GetListSubscribedServicesSortByEnumValues

func GetListSubscribedServicesSortByEnumValues() []ListSubscribedServicesSortByEnum

GetListSubscribedServicesSortByEnumValues Enumerates the set of values for ListSubscribedServicesSortByEnum

func GetMappingListSubscribedServicesSortByEnum

func GetMappingListSubscribedServicesSortByEnum(val string) (ListSubscribedServicesSortByEnum, bool)

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

type ListSubscribedServicesSortOrderEnum

type ListSubscribedServicesSortOrderEnum string

ListSubscribedServicesSortOrderEnum Enum with underlying type: string

const (
	ListSubscribedServicesSortOrderAsc  ListSubscribedServicesSortOrderEnum = "ASC"
	ListSubscribedServicesSortOrderDesc ListSubscribedServicesSortOrderEnum = "DESC"
)

Set of constants representing the allowable values for ListSubscribedServicesSortOrderEnum

func GetListSubscribedServicesSortOrderEnumValues

func GetListSubscribedServicesSortOrderEnumValues() []ListSubscribedServicesSortOrderEnum

GetListSubscribedServicesSortOrderEnumValues Enumerates the set of values for ListSubscribedServicesSortOrderEnum

func GetMappingListSubscribedServicesSortOrderEnum

func GetMappingListSubscribedServicesSortOrderEnum(val string) (ListSubscribedServicesSortOrderEnum, bool)

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

type ListSubscriptionsRequest

type ListSubscriptionsRequest struct {

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

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

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

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

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

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

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

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

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

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

	// 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
}

ListSubscriptionsRequest wrapper for the ListSubscriptions operation

See also

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

func (ListSubscriptionsRequest) BinaryRequestBody

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

BinaryRequestBody implements the OCIRequest interface

func (ListSubscriptionsRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (ListSubscriptionsRequest) RetryPolicy

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

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

func (ListSubscriptionsRequest) String

func (request ListSubscriptionsRequest) String() string

func (ListSubscriptionsRequest) ValidateEnumValue

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

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

type ListSubscriptionsResponse

type ListSubscriptionsResponse struct {

	// The underlying http response
	RawResponse *http.Response

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

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

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

ListSubscriptionsResponse wrapper for the ListSubscriptions operation

func (ListSubscriptionsResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (ListSubscriptionsResponse) String

func (response ListSubscriptionsResponse) String() string

type ListSubscriptionsSortByEnum

type ListSubscriptionsSortByEnum string

ListSubscriptionsSortByEnum Enum with underlying type: string

const (
	ListSubscriptionsSortByOrdernumber   ListSubscriptionsSortByEnum = "ORDERNUMBER"
	ListSubscriptionsSortByTimeinvoicing ListSubscriptionsSortByEnum = "TIMEINVOICING"
)

Set of constants representing the allowable values for ListSubscriptionsSortByEnum

func GetListSubscriptionsSortByEnumValues

func GetListSubscriptionsSortByEnumValues() []ListSubscriptionsSortByEnum

GetListSubscriptionsSortByEnumValues Enumerates the set of values for ListSubscriptionsSortByEnum

func GetMappingListSubscriptionsSortByEnum

func GetMappingListSubscriptionsSortByEnum(val string) (ListSubscriptionsSortByEnum, bool)

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

type ListSubscriptionsSortOrderEnum

type ListSubscriptionsSortOrderEnum string

ListSubscriptionsSortOrderEnum Enum with underlying type: string

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

Set of constants representing the allowable values for ListSubscriptionsSortOrderEnum

func GetListSubscriptionsSortOrderEnumValues

func GetListSubscriptionsSortOrderEnumValues() []ListSubscriptionsSortOrderEnum

GetListSubscriptionsSortOrderEnumValues Enumerates the set of values for ListSubscriptionsSortOrderEnum

func GetMappingListSubscriptionsSortOrderEnum

func GetMappingListSubscriptionsSortOrderEnum(val string) (ListSubscriptionsSortOrderEnum, bool)

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

type OrganizationSubscriptionClient

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

OrganizationSubscriptionClient a client for OrganizationSubscription

func NewOrganizationSubscriptionClientWithConfigurationProvider

func NewOrganizationSubscriptionClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client OrganizationSubscriptionClient, err error)

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

func NewOrganizationSubscriptionClientWithOboToken

func NewOrganizationSubscriptionClientWithOboToken(configProvider common.ConfigurationProvider, oboToken string) (client OrganizationSubscriptionClient, err error)

NewOrganizationSubscriptionClientWithOboToken Creates a new default OrganizationSubscription 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 (*OrganizationSubscriptionClient) ConfigurationProvider

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

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

func (OrganizationSubscriptionClient) ListOrganizationSubscriptions

ListOrganizationSubscriptions API that returns data for the list of subscription ids returned from Organizations API

See also

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

func (*OrganizationSubscriptionClient) SetRegion

func (client *OrganizationSubscriptionClient) SetRegion(region string)

SetRegion overrides the region of this client.

type OrganizationSubscriptionSummary

type OrganizationSubscriptionSummary struct {

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

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

	// Subscription Type i.e. IAAS,SAAS,PAAS
	Type *string `mandatory:"false" json:"type"`

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

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

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

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

	// Total aggregate TCLV of all lines for the subscription including expired, active, and signed
	TotalValue *string `mandatory:"false" json:"totalValue"`
}

OrganizationSubscriptionSummary Subscription summary

func (OrganizationSubscriptionSummary) String

func (OrganizationSubscriptionSummary) ValidateEnumValue

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

type OrgnizationSubsCurrency struct {

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

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

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

OrgnizationSubsCurrency Currency details

func (OrgnizationSubsCurrency) String

func (m OrgnizationSubsCurrency) String() string

func (OrgnizationSubsCurrency) ValidateEnumValue

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

type RateCardProduct struct {

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

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

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

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

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

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

RateCardProduct Product description

func (RateCardProduct) String

func (m RateCardProduct) String() string

func (RateCardProduct) ValidateEnumValue

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

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

type RateCardSummary

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

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

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

	// SPM internal Subscribed Service ID
	SubscribedServiceId *string `mandatory:"false" json:"subscribedServiceId"`

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

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

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

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

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

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

RateCardSummary Rate Card Summary

func (RateCardSummary) String

func (m RateCardSummary) String() string

func (RateCardSummary) ValidateEnumValue

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

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

type RateCardTier

type RateCardTier struct {

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

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

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

RateCardTier Rate Card Tier details

func (RateCardTier) String

func (m RateCardTier) String() string

func (RateCardTier) ValidateEnumValue

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

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

type RatecardClient

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

RatecardClient a client for Ratecard

func NewRatecardClientWithConfigurationProvider

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

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

func NewRatecardClientWithOboToken

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

NewRatecardClientWithOboToken Creates a new default Ratecard client with the given configuration provider. The obotoken will be added to default headers and signed; the configuration provider will be used for the signer

as well as reading the region

func (*RatecardClient) ConfigurationProvider

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

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

func (RatecardClient) ListRateCards

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

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

See also

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

func (*RatecardClient) SetRegion

func (client *RatecardClient) SetRegion(region string)

SetRegion overrides the region of this client.

type SubscribedService

type SubscribedService struct {

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

	// Subscribed Service line type
	Type *string `mandatory:"false" json:"type"`

	// Subscribed service line number
	SerialNumber *string `mandatory:"false" json:"serialNumber"`

	// Subscription ID associated to the subscribed service
	SubscriptionId *string `mandatory:"false" json:"subscriptionId"`

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

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

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

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

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

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

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

	// Indicates the period for which the commitment amount can be utilised exceeding which the amount lapses. Also used in calculation of total contract line value
	PricePeriod *string `mandatory:"false" json:"pricePeriod"`

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

	// Indicates if the commitment lines can have different quantities
	IsVariableCommitment *bool `mandatory:"false" json:"isVariableCommitment"`

	// Indicates if a service can recieve usages and consequently have available amounts computed
	IsAllowance *bool `mandatory:"false" json:"isAllowance"`

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

	// Subscribed sercice available or remaining amount
	AvailableAmount *string `mandatory:"false" json:"availableAmount"`

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

	// Indicator on whether or not there has been usage for the subscribed service
	IsHavingUsage *bool `mandatory:"false" json:"isHavingUsage"`

	// If true compares rate between ratecard and the active pricelist and minimum rate would be fetched
	IsCapToPriceList *bool `mandatory:"false" json:"isCapToPriceList"`

	// Subscribed service credit percentage
	CreditPercentage *string `mandatory:"false" json:"creditPercentage"`

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

	// Used in context of service credit lines
	IsCreditEnabled *bool `mandatory:"false" json:"isCreditEnabled"`

	// Overage Policy of Subscribed Service
	OveragePolicy *string `mandatory:"false" json:"overagePolicy"`

	// Overage Bill To of Subscribed Service
	OverageBillTo *string `mandatory:"false" json:"overageBillTo"`

	// Pay As You Go policy of Subscribed Service (Can be null - indicating no payg policy)
	PaygPolicy *string `mandatory:"false" json:"paygPolicy"`

	// Not null if this service has an associated promotion line in SPM. Contains the line identifier from Order Management of
	// the associated promo line.
	PromoOrderLineId *int64 `mandatory:"false" json:"promoOrderLineId"`

	// Promotion Pricing Type of Subscribed Service (Can be null - indicating no promotion pricing)
	PromotionPricingType *string `mandatory:"false" json:"promotionPricingType"`

	// Subscribed service Rate Card Discount Percentage
	RateCardDiscountPercentage *string `mandatory:"false" json:"rateCardDiscountPercentage"`

	// Subscribed service Overage Discount Percentage
	OverageDiscountPercentage *string `mandatory:"false" json:"overageDiscountPercentage"`

	BillToCustomer *SubscribedServiceBusinessPartner `mandatory:"false" json:"billToCustomer"`

	BillToContact *SubscribedServiceUser `mandatory:"false" json:"billToContact"`

	BillToAddress *SubscribedServiceAddress `mandatory:"false" json:"billToAddress"`

	// Payment Number of Subscribed Service
	PaymentNumber *string `mandatory:"false" json:"paymentNumber"`

	// Subscribed service payment expiry date
	TimePaymentExpiry *common.SDKTime `mandatory:"false" json:"timePaymentExpiry"`

	PaymentTerm *SubscribedServicePaymentTerm `mandatory:"false" json:"paymentTerm"`

	// Payment Method of Subscribed Service
	PaymentMethod *string `mandatory:"false" json:"paymentMethod"`

	// Subscribed service Transaction Extension Id
	TransactionExtensionId *int64 `mandatory:"false" json:"transactionExtensionId"`

	// Sales Channel of Subscribed Service
	SalesChannel *string `mandatory:"false" json:"salesChannel"`

	// Subscribed service eligible to renew field
	EligibleToRenew *string `mandatory:"false" json:"eligibleToRenew"`

	// SPM renewed Subscription ID
	RenewedSubscribedServiceId *string `mandatory:"false" json:"renewedSubscribedServiceId"`

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

	// Term value UOM
	TermValueUom *string `mandatory:"false" json:"termValueUom"`

	// Subscribed service Opportunity Id
	RenewalOptyId *int64 `mandatory:"false" json:"renewalOptyId"`

	// Renewal Opportunity Number of Subscribed Service
	RenewalOptyNumber *string `mandatory:"false" json:"renewalOptyNumber"`

	// Renewal Opportunity Type of Subscribed Service
	RenewalOptyType *string `mandatory:"false" json:"renewalOptyType"`

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

	// Subscribed service Revenue Line Id
	RevenueLineId *int64 `mandatory:"false" json:"revenueLineId"`

	// Revenue Line NUmber of Subscribed Service
	RevenueLineNumber *string `mandatory:"false" json:"revenueLineNumber"`

	// Subscribed service Major Set
	MajorSet *int64 `mandatory:"false" json:"majorSet"`

	// Subscribed service Major Set Start date
	TimeMajorsetStart *common.SDKTime `mandatory:"false" json:"timeMajorsetStart"`

	// Subscribed service Major Set End date
	TimeMajorsetEnd *common.SDKTime `mandatory:"false" json:"timeMajorsetEnd"`

	// Subscribed service System ARR
	SystemArrInLc *string `mandatory:"false" json:"systemArrInLc"`

	// Subscribed service System ARR in Standard Currency
	SystemArrInSc *string `mandatory:"false" json:"systemArrInSc"`

	// Subscribed service System ATR-ARR
	SystemAtrArrInLc *string `mandatory:"false" json:"systemAtrArrInLc"`

	// Subscribed service System ATR-ARR in Standard Currency
	SystemAtrArrInSc *string `mandatory:"false" json:"systemAtrArrInSc"`

	// Subscribed service Revised ARR
	RevisedArrInLc *string `mandatory:"false" json:"revisedArrInLc"`

	// Subscribed service Revised ARR in Standard Currency
	RevisedArrInSc *string `mandatory:"false" json:"revisedArrInSc"`

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

	// Subscribed service Promotion Amount
	OriginalPromoAmount *string `mandatory:"false" json:"originalPromoAmount"`

	// Sales Order Header associated to the subscribed service
	OrderHeaderId *int64 `mandatory:"false" json:"orderHeaderId"`

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

	// Order Type of Subscribed Service
	OrderType *string `mandatory:"false" json:"orderType"`

	// Sales Order Line Id associated to the subscribed service
	OrderLineId *int64 `mandatory:"false" json:"orderLineId"`

	// Sales Order Line Number associated to the subscribed service
	OrderLineNumber *int `mandatory:"false" json:"orderLineNumber"`

	// Subscribed service commitment schedule Id
	CommitmentScheduleId *string `mandatory:"false" json:"commitmentScheduleId"`

	// Subscribed service sales account party id
	SalesAccountPartyId *int64 `mandatory:"false" json:"salesAccountPartyId"`

	// Subscribed service data center
	DataCenter *string `mandatory:"false" json:"dataCenter"`

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

	// Subscribed service admin email id
	AdminEmail *string `mandatory:"false" json:"adminEmail"`

	// Subscribed service buyer email id
	BuyerEmail *string `mandatory:"false" json:"buyerEmail"`

	// Subscribed service source
	SubscriptionSource *string `mandatory:"false" json:"subscriptionSource"`

	// Subscribed service provisioning source
	ProvisioningSource *string `mandatory:"false" json:"provisioningSource"`

	// Subscribed service fulfillment set
	FulfillmentSet *string `mandatory:"false" json:"fulfillmentSet"`

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

	// Subscribed service payg flag
	IsPayg *bool `mandatory:"false" json:"isPayg"`

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

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

	// Subscribed service start date type
	StartDateType *string `mandatory:"false" json:"startDateType"`

	// Subscribed service provisioning date
	TimeProvisioned *common.SDKTime `mandatory:"false" json:"timeProvisioned"`

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

	ServiceToCustomer *SubscribedServiceBusinessPartner `mandatory:"false" json:"serviceToCustomer"`

	ServiceToContact *SubscribedServiceUser `mandatory:"false" json:"serviceToContact"`

	ServiceToAddress *SubscribedServiceAddress `mandatory:"false" json:"serviceToAddress"`

	SoldToCustomer *SubscribedServiceBusinessPartner `mandatory:"false" json:"soldToCustomer"`

	SoldToContact *SubscribedServiceUser `mandatory:"false" json:"soldToContact"`

	EndUserCustomer *SubscribedServiceBusinessPartner `mandatory:"false" json:"endUserCustomer"`

	EndUserContact *SubscribedServiceUser `mandatory:"false" json:"endUserContact"`

	EndUserAddress *SubscribedServiceAddress `mandatory:"false" json:"endUserAddress"`

	ResellerCustomer *SubscribedServiceBusinessPartner `mandatory:"false" json:"resellerCustomer"`

	ResellerContact *SubscribedServiceUser `mandatory:"false" json:"resellerContact"`

	ResellerAddress *SubscribedServiceAddress `mandatory:"false" json:"resellerAddress"`

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

	// Identifier for a customer's transactions for purchase of ay oracle services
	CustomerTransactionReference *string `mandatory:"false" json:"customerTransactionReference"`

	// Subscribed service partner credit amount
	PartnerCreditAmount *string `mandatory:"false" json:"partnerCreditAmount"`

	// Indicates if the Subscribed service has a single ratecard
	IsSingleRateCard *bool `mandatory:"false" json:"isSingleRateCard"`

	// Subscribed service agreement ID
	AgreementId *int64 `mandatory:"false" json:"agreementId"`

	// Subscribed service agrrement name
	AgreementName *string `mandatory:"false" json:"agreementName"`

	// Subscribed service agrrement type
	AgreementType *string `mandatory:"false" json:"agreementType"`

	// Subscribed service invoice frequency
	BillingFrequency *string `mandatory:"false" json:"billingFrequency"`

	// Subscribed service welcome email sent date
	TimeWelcomeEmailSent *common.SDKTime `mandatory:"false" json:"timeWelcomeEmailSent"`

	// Subscribed service service configuration email sent date
	TimeServiceConfigurationEmailSent *common.SDKTime `mandatory:"false" json:"timeServiceConfigurationEmailSent"`

	// Subscribed service customer config date
	TimeCustomerConfig *common.SDKTime `mandatory:"false" json:"timeCustomerConfig"`

	// Subscribed service agrrement end date
	TimeAgreementEnd *common.SDKTime `mandatory:"false" json:"timeAgreementEnd"`

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

	// List of Rate Cards of a Subscribed Service
	RateCards []RateCardSummary `mandatory:"false" json:"rateCards"`

	// Subscribed service creation date
	TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"`

	// User that created the subscribed service
	CreatedBy *string `mandatory:"false" json:"createdBy"`

	// Subscribed service last update date
	TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"`

	// User that updated the subscribed service
	UpdatedBy *string `mandatory:"false" json:"updatedBy"`

	// SPM Ratecard Type
	RatecardType *string `mandatory:"false" json:"ratecardType"`
}

SubscribedService Subscribed service contract details

func (SubscribedService) String

func (m SubscribedService) String() string

func (SubscribedService) ValidateEnumValue

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

type SubscribedServiceAddress struct {
	Location *SubscribedServiceLocation `mandatory:"false" json:"location"`

	// Address name identifier.
	Name *string `mandatory:"false" json:"name"`

	// Phone.
	Phone *string `mandatory:"false" json:"phone"`

	// Identify as the customer shipping address.
	IsBillTo *bool `mandatory:"false" json:"isBillTo"`

	// Identify as the customer invoicing address.
	IsShipTo *bool `mandatory:"false" json:"isShipTo"`

	// Bill to site use Id.
	BillSiteUseId *int64 `mandatory:"false" json:"billSiteUseId"`

	// Service to site use Id.
	Service2SiteUseId *int64 `mandatory:"false" json:"service2SiteUseId"`

	// TCA customer account site Id.
	TcaCustAcctSiteId *int64 `mandatory:"false" json:"tcaCustAcctSiteId"`

	// Party site number.
	TcaPartySiteNumber *string `mandatory:"false" json:"tcaPartySiteNumber"`
}

SubscribedServiceAddress Address.

func (SubscribedServiceAddress) String

func (m SubscribedServiceAddress) String() string

func (SubscribedServiceAddress) ValidateEnumValue

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

type SubscribedServiceBusinessPartner struct {

	// Commercial name also called customer name.
	Name *string `mandatory:"false" json:"name"`

	// Phonetic name.
	NamePhonetic *string `mandatory:"false" json:"namePhonetic"`

	// TCA customer account number.
	TcaCustAccountNumber *string `mandatory:"false" json:"tcaCustAccountNumber"`

	// The business partner is part of the public sector or not.
	IsPublicSector *bool `mandatory:"false" json:"isPublicSector"`

	// The business partner is chain customer or not.
	IsChainCustomer *bool `mandatory:"false" json:"isChainCustomer"`

	// Customer chain type.
	CustomerChainType *string `mandatory:"false" json:"customerChainType"`

	// TCA party number.
	TcaPartyNumber *string `mandatory:"false" json:"tcaPartyNumber"`

	// TCA party ID.
	TcaPartyId *int64 `mandatory:"false" json:"tcaPartyId"`

	// TCA customer account ID.
	TcaCustomerAccountId *int64 `mandatory:"false" json:"tcaCustomerAccountId"`
}

SubscribedServiceBusinessPartner Business partner.

func (SubscribedServiceBusinessPartner) String

func (SubscribedServiceBusinessPartner) ValidateEnumValue

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

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

SubscribedServiceClient a client for SubscribedService

func NewSubscribedServiceClientWithConfigurationProvider

func NewSubscribedServiceClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client SubscribedServiceClient, err error)

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

func NewSubscribedServiceClientWithOboToken

func NewSubscribedServiceClientWithOboToken(configProvider common.ConfigurationProvider, oboToken string) (client SubscribedServiceClient, err error)

NewSubscribedServiceClientWithOboToken Creates a new default SubscribedService 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 (*SubscribedServiceClient) ConfigurationProvider

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

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

func (SubscribedServiceClient) GetSubscribedService

func (client SubscribedServiceClient) GetSubscribedService(ctx context.Context, request GetSubscribedServiceRequest) (response GetSubscribedServiceResponse, err error)

GetSubscribedService This API returns the subscribed service details corresponding to the id provided

See also

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

func (SubscribedServiceClient) ListSubscribedServices

func (client SubscribedServiceClient) ListSubscribedServices(ctx context.Context, request ListSubscribedServicesRequest) (response ListSubscribedServicesResponse, err error)

ListSubscribedServices This list API returns all subscribed services for given Subscription ID

See also

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

func (*SubscribedServiceClient) SetRegion

func (client *SubscribedServiceClient) SetRegion(region string)

SetRegion overrides the region of this client.

type SubscribedServiceLocation

type SubscribedServiceLocation struct {

	// Address first line.
	Address1 *string `mandatory:"false" json:"address1"`

	// Address second line.
	Address2 *string `mandatory:"false" json:"address2"`

	// Postal code.
	PostalCode *string `mandatory:"false" json:"postalCode"`

	// City.
	City *string `mandatory:"false" json:"city"`

	// Country.
	Country *string `mandatory:"false" json:"country"`

	// Region.
	Region *string `mandatory:"false" json:"region"`

	// Region.
	TcaLocationId *int64 `mandatory:"false" json:"tcaLocationId"`
}

SubscribedServiceLocation Address location.

func (SubscribedServiceLocation) String

func (m SubscribedServiceLocation) String() string

func (SubscribedServiceLocation) ValidateEnumValue

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

type SubscribedServicePaymentTerm struct {

	// Payment Term name
	Name *string `mandatory:"false" json:"name"`

	// Payment Term value
	Value *string `mandatory:"false" json:"value"`

	// Payment term Description
	Description *string `mandatory:"false" json:"description"`

	// Payment term active flag
	IsActive *bool `mandatory:"false" json:"isActive"`

	// Payment term last update date
	TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"`

	// User that created the Payment term
	CreatedBy *string `mandatory:"false" json:"createdBy"`

	// Payment term last update date
	TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"`

	// User that updated the Payment term
	UpdatedBy *string `mandatory:"false" json:"updatedBy"`
}

SubscribedServicePaymentTerm Payment Term details

func (SubscribedServicePaymentTerm) String

func (SubscribedServicePaymentTerm) ValidateEnumValue

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

type SubscribedServiceSummary struct {

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

	// Subscribed Service line type
	Type *string `mandatory:"false" json:"type"`

	// Subscribed service line number
	SerialNumber *string `mandatory:"false" json:"serialNumber"`

	// Subscription ID associated to the subscribed service
	SubscriptionId *string `mandatory:"false" json:"subscriptionId"`

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

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

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

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

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

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

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

	// Indicates the period for which the commitment amount can be utilised exceeding which the amount lapses. Also used in calculation of total contract line value
	PricePeriod *string `mandatory:"false" json:"pricePeriod"`

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

	// Indicates if the commitment lines can have different quantities
	IsVariableCommitment *bool `mandatory:"false" json:"isVariableCommitment"`

	// Indicates if a service can recieve usages and consequently have available amounts computed
	IsAllowance *bool `mandatory:"false" json:"isAllowance"`

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

	// Subscribed sercice available or remaining amount
	AvailableAmount *string `mandatory:"false" json:"availableAmount"`

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

	// Indicator on whether or not there has been usage for the subscribed service
	IsHavingUsage *bool `mandatory:"false" json:"isHavingUsage"`

	// If true compares rate between ratecard and the active pricelist and minimum rate would be fetched
	IsCapToPriceList *bool `mandatory:"false" json:"isCapToPriceList"`

	// Subscribed service credit percentage
	CreditPercentage *string `mandatory:"false" json:"creditPercentage"`

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

	// Used in context of service credit lines
	IsCreditEnabled *bool `mandatory:"false" json:"isCreditEnabled"`

	// Overage Policy of Subscribed Service
	OveragePolicy *string `mandatory:"false" json:"overagePolicy"`

	// Overage Bill To of Subscribed Service
	OverageBillTo *string `mandatory:"false" json:"overageBillTo"`

	// Pay As You Go policy of Subscribed Service (Can be null - indicating no payg policy)
	PaygPolicy *string `mandatory:"false" json:"paygPolicy"`

	// Not null if this service has an associated promotion line in SPM. Contains the line identifier from Order Management of
	// the associated promo line.
	PromoOrderLineId *int64 `mandatory:"false" json:"promoOrderLineId"`

	// Promotion Pricing Type of Subscribed Service (Can be null - indicating no promotion pricing)
	PromotionPricingType *string `mandatory:"false" json:"promotionPricingType"`

	// Subscribed service Rate Card Discount Percentage
	RateCardDiscountPercentage *string `mandatory:"false" json:"rateCardDiscountPercentage"`

	// Subscribed service Overage Discount Percentage
	OverageDiscountPercentage *string `mandatory:"false" json:"overageDiscountPercentage"`

	BillToCustomer *SubscribedServiceBusinessPartner `mandatory:"false" json:"billToCustomer"`

	BillToContact *SubscribedServiceUser `mandatory:"false" json:"billToContact"`

	BillToAddress *SubscribedServiceAddress `mandatory:"false" json:"billToAddress"`

	// Payment Number of Subscribed Service
	PaymentNumber *string `mandatory:"false" json:"paymentNumber"`

	// Subscribed service payment expiry date
	TimePaymentExpiry *common.SDKTime `mandatory:"false" json:"timePaymentExpiry"`

	PaymentTerm *SubscribedServicePaymentTerm `mandatory:"false" json:"paymentTerm"`

	// Payment Method of Subscribed Service
	PaymentMethod *string `mandatory:"false" json:"paymentMethod"`

	// Subscribed service Transaction Extension Id
	TransactionExtensionId *int64 `mandatory:"false" json:"transactionExtensionId"`

	// Sales Channel of Subscribed Service
	SalesChannel *string `mandatory:"false" json:"salesChannel"`

	// Subscribed service eligible to renew field
	EligibleToRenew *string `mandatory:"false" json:"eligibleToRenew"`

	// SPM renewed Subscription ID
	RenewedSubscribedServiceId *string `mandatory:"false" json:"renewedSubscribedServiceId"`

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

	// Term value UOM
	TermValueUom *string `mandatory:"false" json:"termValueUom"`

	// Subscribed service Opportunity Id
	RenewalOptyId *int64 `mandatory:"false" json:"renewalOptyId"`

	// Renewal Opportunity Number of Subscribed Service
	RenewalOptyNumber *string `mandatory:"false" json:"renewalOptyNumber"`

	// Renewal Opportunity Type of Subscribed Service
	RenewalOptyType *string `mandatory:"false" json:"renewalOptyType"`

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

	// Subscribed service Revenue Line Id
	RevenueLineId *int64 `mandatory:"false" json:"revenueLineId"`

	// Revenue Line NUmber of Subscribed Service
	RevenueLineNumber *string `mandatory:"false" json:"revenueLineNumber"`

	// Subscribed service Major Set
	MajorSet *int64 `mandatory:"false" json:"majorSet"`

	// Subscribed service Major Set Start date
	TimeMajorsetStart *common.SDKTime `mandatory:"false" json:"timeMajorsetStart"`

	// Subscribed service Major Set End date
	TimeMajorsetEnd *common.SDKTime `mandatory:"false" json:"timeMajorsetEnd"`

	// Subscribed service System ARR
	SystemArrInLc *string `mandatory:"false" json:"systemArrInLc"`

	// Subscribed service System ARR in Standard Currency
	SystemArrInSc *string `mandatory:"false" json:"systemArrInSc"`

	// Subscribed service System ATR-ARR
	SystemAtrArrInLc *string `mandatory:"false" json:"systemAtrArrInLc"`

	// Subscribed service System ATR-ARR in Standard Currency
	SystemAtrArrInSc *string `mandatory:"false" json:"systemAtrArrInSc"`

	// Subscribed service Revised ARR
	RevisedArrInLc *string `mandatory:"false" json:"revisedArrInLc"`

	// Subscribed service Revised ARR in Standard Currency
	RevisedArrInSc *string `mandatory:"false" json:"revisedArrInSc"`

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

	// Subscribed service Promotion Amount
	OriginalPromoAmount *string `mandatory:"false" json:"originalPromoAmount"`

	// Sales Order Header associated to the subscribed service
	OrderHeaderId *int64 `mandatory:"false" json:"orderHeaderId"`

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

	// Order Type of Subscribed Service
	OrderType *string `mandatory:"false" json:"orderType"`

	// Sales Order Line Id associated to the subscribed service
	OrderLineId *int64 `mandatory:"false" json:"orderLineId"`

	// Sales Order Line Number associated to the subscribed service
	OrderLineNumber *int `mandatory:"false" json:"orderLineNumber"`

	// Subscribed service commitment schedule Id
	CommitmentScheduleId *string `mandatory:"false" json:"commitmentScheduleId"`

	// Subscribed service sales account party id
	SalesAccountPartyId *int64 `mandatory:"false" json:"salesAccountPartyId"`

	// Subscribed service data center
	DataCenter *string `mandatory:"false" json:"dataCenter"`

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

	// Subscribed service admin email id
	AdminEmail *string `mandatory:"false" json:"adminEmail"`

	// Subscribed service buyer email id
	BuyerEmail *string `mandatory:"false" json:"buyerEmail"`

	// Subscribed service source
	SubscriptionSource *string `mandatory:"false" json:"subscriptionSource"`

	// Subscribed service provisioning source
	ProvisioningSource *string `mandatory:"false" json:"provisioningSource"`

	// Subscribed service fulfillment set
	FulfillmentSet *string `mandatory:"false" json:"fulfillmentSet"`

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

	// Subscribed service payg flag
	IsPayg *bool `mandatory:"false" json:"isPayg"`

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

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

	// Subscribed service start date type
	StartDateType *string `mandatory:"false" json:"startDateType"`

	// Subscribed service provisioning date
	TimeProvisioned *common.SDKTime `mandatory:"false" json:"timeProvisioned"`

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

	ServiceToCustomer *SubscribedServiceBusinessPartner `mandatory:"false" json:"serviceToCustomer"`

	ServiceToContact *SubscribedServiceUser `mandatory:"false" json:"serviceToContact"`

	ServiceToAddress *SubscribedServiceAddress `mandatory:"false" json:"serviceToAddress"`

	SoldToCustomer *SubscribedServiceBusinessPartner `mandatory:"false" json:"soldToCustomer"`

	SoldToContact *SubscribedServiceUser `mandatory:"false" json:"soldToContact"`

	EndUserCustomer *SubscribedServiceBusinessPartner `mandatory:"false" json:"endUserCustomer"`

	EndUserContact *SubscribedServiceUser `mandatory:"false" json:"endUserContact"`

	EndUserAddress *SubscribedServiceAddress `mandatory:"false" json:"endUserAddress"`

	ResellerCustomer *SubscribedServiceBusinessPartner `mandatory:"false" json:"resellerCustomer"`

	ResellerContact *SubscribedServiceUser `mandatory:"false" json:"resellerContact"`

	ResellerAddress *SubscribedServiceAddress `mandatory:"false" json:"resellerAddress"`

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

	// Identifier for a customer's transactions for purchase of ay oracle services
	CustomerTransactionReference *string `mandatory:"false" json:"customerTransactionReference"`

	// Subscribed service partner credit amount
	PartnerCreditAmount *string `mandatory:"false" json:"partnerCreditAmount"`

	// Indicates if the Subscribed service has a single ratecard
	IsSingleRateCard *bool `mandatory:"false" json:"isSingleRateCard"`

	// Subscribed service agreement ID
	AgreementId *int64 `mandatory:"false" json:"agreementId"`

	// Subscribed service agrrement name
	AgreementName *string `mandatory:"false" json:"agreementName"`

	// Subscribed service agrrement type
	AgreementType *string `mandatory:"false" json:"agreementType"`

	// Subscribed service invoice frequency
	BillingFrequency *string `mandatory:"false" json:"billingFrequency"`

	// Subscribed service welcome email sent date
	TimeWelcomeEmailSent *common.SDKTime `mandatory:"false" json:"timeWelcomeEmailSent"`

	// Subscribed service service configuration email sent date
	TimeServiceConfigurationEmailSent *common.SDKTime `mandatory:"false" json:"timeServiceConfigurationEmailSent"`

	// Subscribed service customer config date
	TimeCustomerConfig *common.SDKTime `mandatory:"false" json:"timeCustomerConfig"`

	// Subscribed service agrrement end date
	TimeAgreementEnd *common.SDKTime `mandatory:"false" json:"timeAgreementEnd"`

	// Subscribed service creation date
	TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"`

	// User that created the subscribed service
	CreatedBy *string `mandatory:"false" json:"createdBy"`

	// Subscribed service last update date
	TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"`

	// User that updated the subscribed service
	UpdatedBy *string `mandatory:"false" json:"updatedBy"`

	// SPM Ratecard Type
	RatecardType *string `mandatory:"false" json:"ratecardType"`
}

SubscribedServiceSummary Subscribed service contract details

func (SubscribedServiceSummary) String

func (m SubscribedServiceSummary) String() string

func (SubscribedServiceSummary) ValidateEnumValue

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

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

type SubscribedServiceUser

type SubscribedServiceUser struct {

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

	// Username.
	Username *string `mandatory:"false" json:"username"`

	// First name.
	FirstName *string `mandatory:"false" json:"firstName"`

	// Last name.
	LastName *string `mandatory:"false" json:"lastName"`

	// Email.
	Email *string `mandatory:"false" json:"email"`

	// TCA contact ID.
	TcaContactId *int64 `mandatory:"false" json:"tcaContactId"`

	// TCA customer account site ID.
	TcaCustAccntSiteId *int64 `mandatory:"false" json:"tcaCustAccntSiteId"`

	// TCA party ID.
	TcaPartyId *int64 `mandatory:"false" json:"tcaPartyId"`
}

SubscribedServiceUser User.

func (SubscribedServiceUser) String

func (m SubscribedServiceUser) String() string

func (SubscribedServiceUser) ValidateEnumValue

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

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

type SubscriptionClient

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

SubscriptionClient a client for Subscription

func NewSubscriptionClientWithConfigurationProvider

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

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

func NewSubscriptionClientWithOboToken

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

NewSubscriptionClientWithOboToken Creates a new default Subscription client with the given configuration provider. The obotoken will be added to default headers and signed; the configuration provider will be used for the signer

as well as reading the region

func (*SubscriptionClient) ConfigurationProvider

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

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

func (SubscriptionClient) ListSubscriptions

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

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

See also

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

func (*SubscriptionClient) SetRegion

func (client *SubscriptionClient) SetRegion(region string)

SetRegion overrides the region of this client.

type SubscriptionCurrency

type SubscriptionCurrency struct {

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

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

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

SubscriptionCurrency Currency details

func (SubscriptionCurrency) String

func (m SubscriptionCurrency) String() string

func (SubscriptionCurrency) ValidateEnumValue

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

type SubscriptionProduct struct {

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

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

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

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

SubscriptionProduct Product description

func (SubscriptionProduct) String

func (m SubscriptionProduct) String() string

func (SubscriptionProduct) ValidateEnumValue

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

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

type SubscriptionSubscribedService

type SubscriptionSubscribedService struct {

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

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

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

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

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

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

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

	// Subscribed sercice available or remaining amount
	AvailableAmount *string `mandatory:"false" json:"availableAmount"`

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

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

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

	// Term value UOM
	TermValueUom *string `mandatory:"false" json:"termValueUom"`

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

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

	// Subscribed service Promotion Amount
	OriginalPromoAmount *string `mandatory:"false" json:"originalPromoAmount"`

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

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

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

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

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

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

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

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

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

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

SubscriptionSubscribedService Subscribed Service summary

func (SubscriptionSubscribedService) String

func (SubscriptionSubscribedService) ValidateEnumValue

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

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

type SubscriptionSummary

type SubscriptionSummary struct {

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

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

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

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

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

	// Hold reason of the plan
	HoldReason *string `mandatory:"false" json:"holdReason"`

	// Represents the date of the hold release
	TimeHoldReleaseEta *common.SDKTime `mandatory:"false" json:"timeHoldReleaseEta"`

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

SubscriptionSummary Subscription summary

func (SubscriptionSummary) String

func (m SubscriptionSummary) String() string

func (SubscriptionSummary) ValidateEnumValue

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

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

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL