RewardDetails¶
- class oci.usage.models.RewardDetails(**kwargs)¶
Bases:
objectThe overall monthly reward summary.
Methods:
__init__(**kwargs)Initializes a new RewardDetails object with values from keyword arguments.
Attributes:
Gets the currency of this RewardDetails.
Gets the redemption_code of this RewardDetails.
Gets the rewards_rate of this RewardDetails.
Gets the subscription_id of this RewardDetails.
Gets the tenancy_id of this RewardDetails.
Gets the total_rewards_available of this RewardDetails.
- __init__(**kwargs)¶
Initializes a new RewardDetails object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
- Parameters
tenancy_id (str) – The value to assign to the tenancy_id property of this RewardDetails.
subscription_id (str) – The value to assign to the subscription_id property of this RewardDetails.
currency (str) – The value to assign to the currency property of this RewardDetails.
rewards_rate (float) – The value to assign to the rewards_rate property of this RewardDetails.
total_rewards_available (float) – The value to assign to the total_rewards_available property of this RewardDetails.
redemption_code (str) – The value to assign to the redemption_code property of this RewardDetails.
- property currency¶
Gets the currency of this RewardDetails. The currency unit for the reward amount.
- Returns
The currency of this RewardDetails.
- Return type
str
- property redemption_code¶
Gets the redemption_code of this RewardDetails. The redemption code used in the Billing Center during the reward redemption process.
- Returns
The redemption_code of this RewardDetails.
- Return type
str
- property rewards_rate¶
Gets the rewards_rate of this RewardDetails. The current Rewards percentage in decimal format.
- Returns
The rewards_rate of this RewardDetails.
- Return type
float
- property subscription_id¶
Gets the subscription_id of this RewardDetails. The entitlement ID from MQS, which is the same as the subcription ID.
- Returns
The subscription_id of this RewardDetails.
- Return type
str
- property tenancy_id¶
Gets the tenancy_id of this RewardDetails. The OCID of the target tenancy.
- Returns
The tenancy_id of this RewardDetails.
- Return type
str
- property total_rewards_available¶
Gets the total_rewards_available of this RewardDetails. The total number of available rewards for a given subscription ID.
- Returns
The total_rewards_available of this RewardDetails.
- Return type
float