CommitmentPeriod

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

Bases: object

Commitment period for the subscription.

Methods:

__init__(**kwargs)

Initializes a new CommitmentPeriod object with values from keyword arguments.

Attributes:

amount_available

Gets the amount_available of this CommitmentPeriod.

amount_commitment

Gets the amount_commitment of this CommitmentPeriod.

amount_consumed

Gets the amount_consumed of this CommitmentPeriod.

commitment_period

Gets the commitment_period of this CommitmentPeriod.

time_commitment_period_end

Gets the time_commitment_period_end of this CommitmentPeriod.

time_commitment_period_start

Gets the time_commitment_period_start of this CommitmentPeriod.

__init__(**kwargs)

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

Parameters
  • commitment_period (str) – The value to assign to the commitment_period property of this CommitmentPeriod.

  • time_commitment_period_start (datetime) – The value to assign to the time_commitment_period_start property of this CommitmentPeriod.

  • time_commitment_period_end (datetime) – The value to assign to the time_commitment_period_end property of this CommitmentPeriod.

  • amount_commitment (float) – The value to assign to the amount_commitment property of this CommitmentPeriod.

  • amount_consumed (float) – The value to assign to the amount_consumed property of this CommitmentPeriod.

  • amount_available (float) – The value to assign to the amount_available property of this CommitmentPeriod.

property amount_available

Gets the amount_available of this CommitmentPeriod. Amount remaining and available for the commitment period.

Returns

The amount_available of this CommitmentPeriod.

Return type

float

property amount_commitment

Gets the amount_commitment of this CommitmentPeriod. Total committed amount for the commitment period.

Returns

The amount_commitment of this CommitmentPeriod.

Return type

float

property amount_consumed

Gets the amount_consumed of this CommitmentPeriod. Amount consumed during the commitment period.

Returns

The amount_consumed of this CommitmentPeriod.

Return type

float

property commitment_period

Gets the commitment_period of this CommitmentPeriod. Identifier for the commitment period.

Returns

The commitment_period of this CommitmentPeriod.

Return type

str

property time_commitment_period_end

Gets the time_commitment_period_end of this CommitmentPeriod. End date and time of the commitment period.

Returns

The time_commitment_period_end of this CommitmentPeriod.

Return type

datetime

property time_commitment_period_start

Gets the time_commitment_period_start of this CommitmentPeriod. Start date and time of the commitment period.

Returns

The time_commitment_period_start of this CommitmentPeriod.

Return type

datetime