ProductSummary

class oci.usage.models.ProductSummary(**kwargs)

Bases: object

Provides details about product rewards and the usage amount.

Methods:

__init__(**kwargs)

Initializes a new ProductSummary object with values from keyword arguments.

Attributes:

earned_rewards

Gets the earned_rewards of this ProductSummary.

is_eligible_to_earn_rewards

Gets the is_eligible_to_earn_rewards of this ProductSummary.

product_name

Gets the product_name of this ProductSummary.

product_number

Gets the product_number of this ProductSummary.

usage_amount

Gets the usage_amount of this ProductSummary.

__init__(**kwargs)

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

Parameters
  • product_number (str) – The value to assign to the product_number property of this ProductSummary.

  • product_name (str) – The value to assign to the product_name property of this ProductSummary.

  • usage_amount (float) – The value to assign to the usage_amount property of this ProductSummary.

  • earned_rewards (float) – The value to assign to the earned_rewards property of this ProductSummary.

  • is_eligible_to_earn_rewards (bool) – The value to assign to the is_eligible_to_earn_rewards property of this ProductSummary.

property earned_rewards

Gets the earned_rewards of this ProductSummary. The earned rewards for the product.

Returns

The earned_rewards of this ProductSummary.

Return type

float

property is_eligible_to_earn_rewards

Gets the is_eligible_to_earn_rewards of this ProductSummary. The boolean parameter to indicate if the product is eligible to earn rewards.

Returns

The is_eligible_to_earn_rewards of this ProductSummary.

Return type

bool

property product_name

Gets the product_name of this ProductSummary. The rate card product name.

Returns

The product_name of this ProductSummary.

Return type

str

property product_number

Gets the product_number of this ProductSummary. The rate card product number.

Returns

The product_number of this ProductSummary.

Return type

str

property usage_amount

Gets the usage_amount of this ProductSummary. The rate card product usage amount.

Returns

The usage_amount of this ProductSummary.

Return type

float