AutoPromoteConfigDetails

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

Bases: oci.stack_monitoring.models.config.Config

A configuration of the AUTO_PROMOTE type, consists of a resource type and a boolean value that determines if this resource needs to be automatically promoted/discovered. For example, when a Management Agent registration event occurs and if isEnabled is TRUE for a HOST resource type, a HOST resource will be automatically discovered using that Management Agent.

Attributes

CONFIG_TYPE_AUTO_PROMOTE str(object=’’) -> str
CONFIG_TYPE_LICENSE_AUTO_ASSIGN str(object=’’) -> str
CONFIG_TYPE_LICENSE_ENTERPRISE_EXTENSIBILITY str(object=’’) -> str
LIFECYCLE_STATE_ACTIVE str(object=’’) -> str
LIFECYCLE_STATE_CREATING str(object=’’) -> str
LIFECYCLE_STATE_DELETED str(object=’’) -> str
LIFECYCLE_STATE_DELETING str(object=’’) -> str
LIFECYCLE_STATE_FAILED str(object=’’) -> str
LIFECYCLE_STATE_UPDATING str(object=’’) -> str
RESOURCE_TYPE_HOST A constant which can be used with the resource_type property of a AutoPromoteConfigDetails.
compartment_id [Required] Gets the compartment_id of this Config.
config_type [Required] Gets the config_type of this Config.
defined_tags Gets the defined_tags of this Config.
display_name Gets the display_name of this Config.
freeform_tags Gets the freeform_tags of this Config.
id [Required] Gets the id of this Config.
is_enabled [Required] Gets the is_enabled of this AutoPromoteConfigDetails.
lifecycle_state [Required] Gets the lifecycle_state of this Config.
resource_type [Required] Gets the resource_type of this AutoPromoteConfigDetails.
system_tags Gets the system_tags of this Config.
time_created Gets the time_created of this Config.
time_updated Gets the time_updated of this Config.

Methods

__init__(**kwargs) Initializes a new AutoPromoteConfigDetails 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.
CONFIG_TYPE_AUTO_PROMOTE = 'AUTO_PROMOTE'
CONFIG_TYPE_LICENSE_AUTO_ASSIGN = 'LICENSE_AUTO_ASSIGN'
CONFIG_TYPE_LICENSE_ENTERPRISE_EXTENSIBILITY = 'LICENSE_ENTERPRISE_EXTENSIBILITY'
LIFECYCLE_STATE_ACTIVE = 'ACTIVE'
LIFECYCLE_STATE_CREATING = 'CREATING'
LIFECYCLE_STATE_DELETED = 'DELETED'
LIFECYCLE_STATE_DELETING = 'DELETING'
LIFECYCLE_STATE_FAILED = 'FAILED'
LIFECYCLE_STATE_UPDATING = 'UPDATING'
RESOURCE_TYPE_HOST = 'HOST'

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

__init__(**kwargs)

Initializes a new AutoPromoteConfigDetails 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:
  • id (str) – The value to assign to the id property of this AutoPromoteConfigDetails.
  • compartment_id (str) – The value to assign to the compartment_id property of this AutoPromoteConfigDetails.
  • display_name (str) – The value to assign to the display_name property of this AutoPromoteConfigDetails.
  • time_created (datetime) – The value to assign to the time_created property of this AutoPromoteConfigDetails.
  • time_updated (datetime) – The value to assign to the time_updated property of this AutoPromoteConfigDetails.
  • lifecycle_state (str) – The value to assign to the lifecycle_state property of this AutoPromoteConfigDetails. Allowed values for this property are: “CREATING”, “UPDATING”, “ACTIVE”, “DELETING”, “DELETED”, “FAILED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • config_type (str) – The value to assign to the config_type property of this AutoPromoteConfigDetails. Allowed values for this property are: “AUTO_PROMOTE”, “LICENSE_AUTO_ASSIGN”, “LICENSE_ENTERPRISE_EXTENSIBILITY”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this AutoPromoteConfigDetails.
  • defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this AutoPromoteConfigDetails.
  • system_tags (dict(str, dict(str, object))) – The value to assign to the system_tags property of this AutoPromoteConfigDetails.
  • resource_type (str) – The value to assign to the resource_type property of this AutoPromoteConfigDetails. Allowed values for this property are: “HOST”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • is_enabled (bool) – The value to assign to the is_enabled property of this AutoPromoteConfigDetails.
compartment_id

[Required] Gets the compartment_id of this Config. The OCID of the compartment containing the configuration.

Returns:The compartment_id of this Config.
Return type:str
config_type

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

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

Returns:The config_type of this Config.
Return type:str
defined_tags

Gets the defined_tags of this Config. 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 Config.
Return type:dict(str, dict(str, object))
display_name

Gets the display_name of this Config. A user-friendly name. Does not have to be unique, and it’s changeable. Avoid entering confidential information.

Returns:The display_name of this Config.
Return type:str
freeform_tags

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

id

[Required] Gets the id of this Config. The Unique Oracle ID (OCID) that is immutable on creation.

Returns:The id of this Config.
Return type:str
is_enabled

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

Returns:The is_enabled of this AutoPromoteConfigDetails.
Return type:bool
lifecycle_state

[Required] Gets the lifecycle_state of this Config. The current state of the configuration.

Allowed values for this property are: “CREATING”, “UPDATING”, “ACTIVE”, “DELETING”, “DELETED”, “FAILED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The lifecycle_state of this Config.
Return type:str
resource_type

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

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

Returns:The resource_type of this AutoPromoteConfigDetails.
Return type:str
system_tags

Gets the system_tags of this Config. Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {“orcl-cloud”: {“free-tier-retained”: “true”}}

Returns:The system_tags of this Config.
Return type:dict(str, dict(str, object))
time_created

Gets the time_created of this Config. The time the configuration was created. An RFC3339 formatted datetime string.

Returns:The time_created of this Config.
Return type:datetime
time_updated

Gets the time_updated of this Config. The time the Config was updated.

Returns:The time_updated of this Config.
Return type:datetime