CreateChargebackPlanDetails

class oci.opsi.models.CreateChargebackPlanDetails(**kwargs)

Bases: object

The details used to create a new Ops Insights chargeback plan.

Attributes:

ENTITY_SOURCE_CHARGEBACK_COMPUTE

A constant which can be used with the entity_source property of a CreateChargebackPlanDetails.

ENTITY_SOURCE_CHARGEBACK_EXADATA

A constant which can be used with the entity_source property of a CreateChargebackPlanDetails.

compartment_id

[Required] Gets the compartment_id of this CreateChargebackPlanDetails.

defined_tags

Gets the defined_tags of this CreateChargebackPlanDetails.

entity_source

[Required] Gets the entity_source of this CreateChargebackPlanDetails.

freeform_tags

Gets the freeform_tags of this CreateChargebackPlanDetails.

plan_custom_items

Gets the plan_custom_items of this CreateChargebackPlanDetails.

plan_description

Gets the plan_description of this CreateChargebackPlanDetails.

plan_name

[Required] Gets the plan_name of this CreateChargebackPlanDetails.

plan_type

[Required] Gets the plan_type of this CreateChargebackPlanDetails.

Methods:

__init__(**kwargs)

Initializes a new CreateChargebackPlanDetails object with values from keyword arguments.

get_subtype(object_dictionary)

Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.

ENTITY_SOURCE_CHARGEBACK_COMPUTE = 'CHARGEBACK_COMPUTE'

A constant which can be used with the entity_source property of a CreateChargebackPlanDetails. This constant has a value of “CHARGEBACK_COMPUTE”

ENTITY_SOURCE_CHARGEBACK_EXADATA = 'CHARGEBACK_EXADATA'

A constant which can be used with the entity_source property of a CreateChargebackPlanDetails. This constant has a value of “CHARGEBACK_EXADATA”

__init__(**kwargs)

Initializes a new CreateChargebackPlanDetails object with values from keyword arguments. This class has the following subclasses and if you are using this class as input to a service operations then you should favor using a subclass over the base class:

The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters
  • entity_source (str) – The value to assign to the entity_source property of this CreateChargebackPlanDetails. Allowed values for this property are: “CHARGEBACK_EXADATA”, “CHARGEBACK_COMPUTE”

  • compartment_id (str) – The value to assign to the compartment_id property of this CreateChargebackPlanDetails.

  • freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this CreateChargebackPlanDetails.

  • defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this CreateChargebackPlanDetails.

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

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

  • plan_type (str) – The value to assign to the plan_type property of this CreateChargebackPlanDetails.

  • plan_custom_items (list[oci.opsi.models.CreatePlanCustomItemDetails]) – The value to assign to the plan_custom_items property of this CreateChargebackPlanDetails.

property compartment_id

[Required] Gets the compartment_id of this CreateChargebackPlanDetails. The OCID of the compartment.

Returns

The compartment_id of this CreateChargebackPlanDetails.

Return type

str

property defined_tags

Gets the defined_tags of this CreateChargebackPlanDetails. Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {“foo-namespace”: {“bar-key”: “value”}}

Returns

The defined_tags of this CreateChargebackPlanDetails.

Return type

dict(str, dict(str, object))

property entity_source

[Required] Gets the entity_source of this CreateChargebackPlanDetails. Source of the chargeback plan.

Allowed values for this property are: “CHARGEBACK_EXADATA”, “CHARGEBACK_COMPUTE”

Returns

The entity_source of this CreateChargebackPlanDetails.

Return type

str

property freeform_tags

Gets the freeform_tags of this CreateChargebackPlanDetails. Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {“bar-key”: “value”}

Returns

The freeform_tags of this CreateChargebackPlanDetails.

Return type

dict(str, str)

static get_subtype(object_dictionary)

Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.

property plan_custom_items

Gets the plan_custom_items of this CreateChargebackPlanDetails. List of chargeback plan customizations.

Returns

The plan_custom_items of this CreateChargebackPlanDetails.

Return type

list[oci.opsi.models.CreatePlanCustomItemDetails]

property plan_description

Gets the plan_description of this CreateChargebackPlanDetails. Description of OPSI Chargeback Plan.

Returns

The plan_description of this CreateChargebackPlanDetails.

Return type

str

property plan_name

[Required] Gets the plan_name of this CreateChargebackPlanDetails. Name for the OPSI Chargeback plan.

Returns

The plan_name of this CreateChargebackPlanDetails.

Return type

str

property plan_type

[Required] Gets the plan_type of this CreateChargebackPlanDetails. Chargeback Plan type of the chargeback entity. For an Exadata it can be WEIGHTED_ALLOCATION, EQUAL_ALLOCATION, UNUSED_ALLOCATION.

Returns

The plan_type of this CreateChargebackPlanDetails.

Return type

str