CreateAutoPromoteConfigDetails

class oci.stack_monitoring.models.CreateAutoPromoteConfigDetails(**kwargs)

Bases: CreateConfigDetails

The details of an AUTO_PROMOTE configuration.

Attributes:

RESOURCE_TYPE_HOST

A constant which can be used with the resource_type property of a CreateAutoPromoteConfigDetails.

compartment_id

[Required] Gets the compartment_id of this CreateConfigDetails.

config_type

[Required] Gets the config_type of this CreateConfigDetails.

defined_tags

Gets the defined_tags of this CreateConfigDetails.

display_name

Gets the display_name of this CreateConfigDetails.

freeform_tags

Gets the freeform_tags of this CreateConfigDetails.

is_enabled

[Required] Gets the is_enabled of this CreateAutoPromoteConfigDetails.

resource_type

[Required] Gets the resource_type of this CreateAutoPromoteConfigDetails.

Methods:

__init__(**kwargs)

Initializes a new CreateAutoPromoteConfigDetails 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.

RESOURCE_TYPE_HOST = 'HOST'

A constant which can be used with the resource_type property of a CreateAutoPromoteConfigDetails. This constant has a value of “HOST”

__init__(**kwargs)

Initializes a new CreateAutoPromoteConfigDetails object with values from keyword arguments. The default value of the config_type attribute of this class is AUTO_PROMOTE and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters
  • display_name (str) – The value to assign to the display_name property of this CreateAutoPromoteConfigDetails.

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

  • config_type (str) – The value to assign to the config_type property of this CreateAutoPromoteConfigDetails.

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

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

  • resource_type (str) – The value to assign to the resource_type property of this CreateAutoPromoteConfigDetails. Allowed values for this property are: “HOST”

  • is_enabled (bool) – The value to assign to the is_enabled property of this CreateAutoPromoteConfigDetails.

property compartment_id

[Required] Gets the compartment_id of this CreateConfigDetails. Compartment in which the configuration is created.

Returns

The compartment_id of this CreateConfigDetails.

Return type

str

property config_type

[Required] Gets the config_type of this CreateConfigDetails. The type of configuration.

Returns

The config_type of this CreateConfigDetails.

Return type

str

property defined_tags

Gets the defined_tags of this CreateConfigDetails. 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 CreateConfigDetails.

Return type

dict(str, dict(str, object))

property display_name

Gets the display_name of this CreateConfigDetails. The display name of the configuration.

Returns

The display_name of this CreateConfigDetails.

Return type

str

property freeform_tags

Gets the freeform_tags of this CreateConfigDetails. 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 CreateConfigDetails.

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 is_enabled

[Required] Gets the is_enabled of this CreateAutoPromoteConfigDetails. True if automatic promotion is enabled, false if it is not enabled.

Returns

The is_enabled of this CreateAutoPromoteConfigDetails.

Return type

bool

property resource_type

[Required] Gets the resource_type of this CreateAutoPromoteConfigDetails. The type of resource to configure for automatic promotion.

Allowed values for this property are: “HOST”

Returns

The resource_type of this CreateAutoPromoteConfigDetails.

Return type

str