AggregatedComputedUsageSummary

class oci.onesubscription.models.AggregatedComputedUsageSummary(**kwargs)

Bases: object

Subscribed Service Contract details

Attributes

PRICING_MODEL_ANNUAL A constant which can be used with the pricing_model property of a AggregatedComputedUsageSummary.
PRICING_MODEL_FUNDED_ALLOCATION A constant which can be used with the pricing_model property of a AggregatedComputedUsageSummary.
PRICING_MODEL_MONTHLY A constant which can be used with the pricing_model property of a AggregatedComputedUsageSummary.
PRICING_MODEL_PAY_AS_YOU_GO A constant which can be used with the pricing_model property of a AggregatedComputedUsageSummary.
PRICING_MODEL_PREPAID A constant which can be used with the pricing_model property of a AggregatedComputedUsageSummary.
aggregated_computed_usages Gets the aggregated_computed_usages of this AggregatedComputedUsageSummary.
currency_code Gets the currency_code of this AggregatedComputedUsageSummary.
parent_product Gets the parent_product of this AggregatedComputedUsageSummary.
parent_subscribed_service_id Gets the parent_subscribed_service_id of this AggregatedComputedUsageSummary.
plan_number Gets the plan_number of this AggregatedComputedUsageSummary.
pricing_model Gets the pricing_model of this AggregatedComputedUsageSummary.
rate_card_id Gets the rate_card_id of this AggregatedComputedUsageSummary.
subscription_id [Required] Gets the subscription_id of this AggregatedComputedUsageSummary.
time_end Gets the time_end of this AggregatedComputedUsageSummary.
time_start Gets the time_start of this AggregatedComputedUsageSummary.

Methods

__init__(**kwargs) Initializes a new AggregatedComputedUsageSummary object with values from keyword arguments.
PRICING_MODEL_ANNUAL = 'ANNUAL'

A constant which can be used with the pricing_model property of a AggregatedComputedUsageSummary. This constant has a value of “ANNUAL”

PRICING_MODEL_FUNDED_ALLOCATION = 'FUNDED_ALLOCATION'

A constant which can be used with the pricing_model property of a AggregatedComputedUsageSummary. This constant has a value of “FUNDED_ALLOCATION”

PRICING_MODEL_MONTHLY = 'MONTHLY'

A constant which can be used with the pricing_model property of a AggregatedComputedUsageSummary. This constant has a value of “MONTHLY”

PRICING_MODEL_PAY_AS_YOU_GO = 'PAY_AS_YOU_GO'

A constant which can be used with the pricing_model property of a AggregatedComputedUsageSummary. This constant has a value of “PAY_AS_YOU_GO”

PRICING_MODEL_PREPAID = 'PREPAID'

A constant which can be used with the pricing_model property of a AggregatedComputedUsageSummary. This constant has a value of “PREPAID”

__init__(**kwargs)

Initializes a new AggregatedComputedUsageSummary object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • subscription_id (str) – The value to assign to the subscription_id property of this AggregatedComputedUsageSummary.
  • parent_subscribed_service_id (str) – The value to assign to the parent_subscribed_service_id property of this AggregatedComputedUsageSummary.
  • parent_product (oci.onesubscription.models.ComputedUsageProduct) – The value to assign to the parent_product property of this AggregatedComputedUsageSummary.
  • time_start (datetime) – The value to assign to the time_start property of this AggregatedComputedUsageSummary.
  • time_end (datetime) – The value to assign to the time_end property of this AggregatedComputedUsageSummary.
  • plan_number (str) – The value to assign to the plan_number property of this AggregatedComputedUsageSummary.
  • currency_code (str) – The value to assign to the currency_code property of this AggregatedComputedUsageSummary.
  • rate_card_id (str) – The value to assign to the rate_card_id property of this AggregatedComputedUsageSummary.
  • pricing_model (str) – The value to assign to the pricing_model property of this AggregatedComputedUsageSummary. Allowed values for this property are: “PAY_AS_YOU_GO”, “MONTHLY”, “ANNUAL”, “PREPAID”, “FUNDED_ALLOCATION”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • aggregated_computed_usages (list[oci.onesubscription.models.ComputedUsageAggregation]) – The value to assign to the aggregated_computed_usages property of this AggregatedComputedUsageSummary.
aggregated_computed_usages

Gets the aggregated_computed_usages of this AggregatedComputedUsageSummary. Aggregation of computed usages for the subscribed service.

Returns:The aggregated_computed_usages of this AggregatedComputedUsageSummary.
Return type:list[oci.onesubscription.models.ComputedUsageAggregation]
currency_code

Gets the currency_code of this AggregatedComputedUsageSummary. Currency code

Returns:The currency_code of this AggregatedComputedUsageSummary.
Return type:str
parent_product

Gets the parent_product of this AggregatedComputedUsageSummary.

Returns:The parent_product of this AggregatedComputedUsageSummary.
Return type:oci.onesubscription.models.ComputedUsageProduct
parent_subscribed_service_id

Gets the parent_subscribed_service_id of this AggregatedComputedUsageSummary. Subscribed service line parent id

Returns:The parent_subscribed_service_id of this AggregatedComputedUsageSummary.
Return type:str
plan_number

Gets the plan_number of this AggregatedComputedUsageSummary. Subscribed service asociated subscription plan number.

Returns:The plan_number of this AggregatedComputedUsageSummary.
Return type:str
pricing_model

Gets the pricing_model of this AggregatedComputedUsageSummary. Subscribed services pricing model

Allowed values for this property are: “PAY_AS_YOU_GO”, “MONTHLY”, “ANNUAL”, “PREPAID”, “FUNDED_ALLOCATION”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The pricing_model of this AggregatedComputedUsageSummary.
Return type:str
rate_card_id

Gets the rate_card_id of this AggregatedComputedUsageSummary. Inernal SPM Ratecard Id at line level

Returns:The rate_card_id of this AggregatedComputedUsageSummary.
Return type:str
subscription_id

[Required] Gets the subscription_id of this AggregatedComputedUsageSummary. Subscription Id is an identifier associated to the service used for filter the Computed Usage in SPM

Returns:The subscription_id of this AggregatedComputedUsageSummary.
Return type:str
time_end

Gets the time_end of this AggregatedComputedUsageSummary. Subscribed services contract line end date, expressed in RFC 3339 timestamp format.

Returns:The time_end of this AggregatedComputedUsageSummary.
Return type:datetime
time_start

Gets the time_start of this AggregatedComputedUsageSummary. Subscribed services contract line start date, expressed in RFC 3339 timestamp format.

Returns:The time_start of this AggregatedComputedUsageSummary.
Return type:datetime