PricingPlan

class oci.self.models.PricingPlan(**kwargs)

Bases: object

A pricing plan details provided by the Publisher.

Attributes:

BILLING_FREQUENCY_ANNUAL

A constant which can be used with the billing_frequency property of a PricingPlan.

BILLING_FREQUENCY_BIENNIAL

A constant which can be used with the billing_frequency property of a PricingPlan.

BILLING_FREQUENCY_MONTHLY

A constant which can be used with the billing_frequency property of a PricingPlan.

BILLING_FREQUENCY_QUARTERLY

A constant which can be used with the billing_frequency property of a PricingPlan.

BILLING_FREQUENCY_SEMI_ANNUAL

A constant which can be used with the billing_frequency property of a PricingPlan.

BILLING_FREQUENCY_TRIENNIAL

A constant which can be used with the billing_frequency property of a PricingPlan.

BILLING_FREQUENCY_YEARLY

A constant which can be used with the billing_frequency property of a PricingPlan.

PLAN_DURATION_ANNUAL

A constant which can be used with the plan_duration property of a PricingPlan.

PLAN_DURATION_BIENNIAL

A constant which can be used with the plan_duration property of a PricingPlan.

PLAN_DURATION_MONTHLY

A constant which can be used with the plan_duration property of a PricingPlan.

PLAN_DURATION_QUARTERLY

A constant which can be used with the plan_duration property of a PricingPlan.

PLAN_DURATION_SEMI_ANNUAL

A constant which can be used with the plan_duration property of a PricingPlan.

PLAN_DURATION_TRIENNIAL

A constant which can be used with the plan_duration property of a PricingPlan.

PLAN_TYPE_FIXED

A constant which can be used with the plan_type property of a PricingPlan.

PLAN_TYPE_HYBRID

A constant which can be used with the plan_type property of a PricingPlan.

PLAN_TYPE_USAGE_BASED

A constant which can be used with the plan_type property of a PricingPlan.

billing_frequency

[Required] Gets the billing_frequency of this PricingPlan.

dimensions

Gets the dimensions of this PricingPlan.

plan_description

Gets the plan_description of this PricingPlan.

plan_duration

Gets the plan_duration of this PricingPlan.

plan_name

[Required] Gets the plan_name of this PricingPlan.

plan_type

[Required] Gets the plan_type of this PricingPlan.

rates

[Required] Gets the rates of this PricingPlan.

Methods:

__init__(**kwargs)

Initializes a new PricingPlan object with values from keyword arguments.

BILLING_FREQUENCY_ANNUAL = 'ANNUAL'

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

BILLING_FREQUENCY_BIENNIAL = 'BIENNIAL'

A constant which can be used with the billing_frequency property of a PricingPlan. This constant has a value of “BIENNIAL”

BILLING_FREQUENCY_MONTHLY = 'MONTHLY'

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

BILLING_FREQUENCY_QUARTERLY = 'QUARTERLY'

A constant which can be used with the billing_frequency property of a PricingPlan. This constant has a value of “QUARTERLY”

BILLING_FREQUENCY_SEMI_ANNUAL = 'SEMI_ANNUAL'

A constant which can be used with the billing_frequency property of a PricingPlan. This constant has a value of “SEMI_ANNUAL”

BILLING_FREQUENCY_TRIENNIAL = 'TRIENNIAL'

A constant which can be used with the billing_frequency property of a PricingPlan. This constant has a value of “TRIENNIAL”

BILLING_FREQUENCY_YEARLY = 'YEARLY'

A constant which can be used with the billing_frequency property of a PricingPlan. This constant has a value of “YEARLY”

PLAN_DURATION_ANNUAL = 'ANNUAL'

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

PLAN_DURATION_BIENNIAL = 'BIENNIAL'

A constant which can be used with the plan_duration property of a PricingPlan. This constant has a value of “BIENNIAL”

PLAN_DURATION_MONTHLY = 'MONTHLY'

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

PLAN_DURATION_QUARTERLY = 'QUARTERLY'

A constant which can be used with the plan_duration property of a PricingPlan. This constant has a value of “QUARTERLY”

PLAN_DURATION_SEMI_ANNUAL = 'SEMI_ANNUAL'

A constant which can be used with the plan_duration property of a PricingPlan. This constant has a value of “SEMI_ANNUAL”

PLAN_DURATION_TRIENNIAL = 'TRIENNIAL'

A constant which can be used with the plan_duration property of a PricingPlan. This constant has a value of “TRIENNIAL”

PLAN_TYPE_FIXED = 'FIXED'

A constant which can be used with the plan_type property of a PricingPlan. This constant has a value of “FIXED”

PLAN_TYPE_HYBRID = 'HYBRID'

A constant which can be used with the plan_type property of a PricingPlan. This constant has a value of “HYBRID”

PLAN_TYPE_USAGE_BASED = 'USAGE_BASED'

A constant which can be used with the plan_type property of a PricingPlan. This constant has a value of “USAGE_BASED”

__init__(**kwargs)

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

Parameters
  • plan_type (str) – The value to assign to the plan_type property of this PricingPlan. Allowed values for this property are: “FIXED”, “USAGE_BASED”, “HYBRID”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

  • plan_name (str) – The value to assign to the plan_name property of this PricingPlan.

  • plan_description (str) – The value to assign to the plan_description property of this PricingPlan.

  • billing_frequency (str) – The value to assign to the billing_frequency property of this PricingPlan. Allowed values for this property are: “MONTHLY”, “QUARTERLY”, “SEMI_ANNUAL”, “ANNUAL”, “BIENNIAL”, “TRIENNIAL”, “YEARLY”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

  • plan_duration (str) – The value to assign to the plan_duration property of this PricingPlan. Allowed values for this property are: “MONTHLY”, “QUARTERLY”, “SEMI_ANNUAL”, “ANNUAL”, “BIENNIAL”, “TRIENNIAL”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

  • rates (list[oci.self.models.PricingRate]) – The value to assign to the rates property of this PricingPlan.

  • dimensions (list[oci.self.models.UsageDimension]) – The value to assign to the dimensions property of this PricingPlan.

property billing_frequency

[Required] Gets the billing_frequency of this PricingPlan. Specifies the interval at which billing occurs for the subscription plan or usage dimension.

Allowed values for this property are: “MONTHLY”, “QUARTERLY”, “SEMI_ANNUAL”, “ANNUAL”, “BIENNIAL”, “TRIENNIAL”, “YEARLY”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns

The billing_frequency of this PricingPlan.

Return type

str

property dimensions

Gets the dimensions of this PricingPlan. Metered usage dimensions associated with the pricing plan.

Returns

The dimensions of this PricingPlan.

Return type

list[oci.self.models.UsageDimension]

property plan_description

Gets the plan_description of this PricingPlan. A detailed explanation of the subscription plan.

Returns

The plan_description of this PricingPlan.

Return type

str

property plan_duration

Gets the plan_duration of this PricingPlan. Specifies the duration of the subscription plan.

Allowed values for this property are: “MONTHLY”, “QUARTERLY”, “SEMI_ANNUAL”, “ANNUAL”, “BIENNIAL”, “TRIENNIAL”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns

The plan_duration of this PricingPlan.

Return type

str

property plan_name

[Required] Gets the plan_name of this PricingPlan. The name of the subscription plan used to identify the plan.

Returns

The plan_name of this PricingPlan.

Return type

str

property plan_type

[Required] Gets the plan_type of this PricingPlan. The type of the subscription plan.

Allowed values for this property are: “FIXED”, “USAGE_BASED”, “HYBRID”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns

The plan_type of this PricingPlan.

Return type

str

property rates

[Required] Gets the rates of this PricingPlan. The pricing details of the subscription plan in various supported currencies.

Returns

The rates of this PricingPlan.

Return type

list[oci.self.models.PricingRate]