DynamicSet

class oci.os_management_hub.models.DynamicSet(**kwargs)

Bases: object

An object that defines the dynamic set.

Attributes

LIFECYCLE_STATE_ACTIVE A constant which can be used with the lifecycle_state property of a DynamicSet.
LIFECYCLE_STATE_CREATING A constant which can be used with the lifecycle_state property of a DynamicSet.
LIFECYCLE_STATE_DELETED A constant which can be used with the lifecycle_state property of a DynamicSet.
LIFECYCLE_STATE_DELETING A constant which can be used with the lifecycle_state property of a DynamicSet.
LIFECYCLE_STATE_FAILED A constant which can be used with the lifecycle_state property of a DynamicSet.
LIFECYCLE_STATE_UPDATING A constant which can be used with the lifecycle_state property of a DynamicSet.
MATCH_TYPE_ALL A constant which can be used with the match_type property of a DynamicSet.
MATCH_TYPE_ANY A constant which can be used with the match_type property of a DynamicSet.
compartment_id [Required] Gets the compartment_id of this DynamicSet.
defined_tags [Required] Gets the defined_tags of this DynamicSet.
description Gets the description of this DynamicSet.
display_name [Required] Gets the display_name of this DynamicSet.
freeform_tags [Required] Gets the freeform_tags of this DynamicSet.
id [Required] Gets the id of this DynamicSet.
lifecycle_state [Required] Gets the lifecycle_state of this DynamicSet.
match_type Gets the match_type of this DynamicSet.
matching_rule Gets the matching_rule of this DynamicSet.
scheduled_job_count Gets the scheduled_job_count of this DynamicSet.
system_tags Gets the system_tags of this DynamicSet.
target_compartments Gets the target_compartments of this DynamicSet.
time_created [Required] Gets the time_created of this DynamicSet.
time_updated Gets the time_updated of this DynamicSet.

Methods

__init__(**kwargs) Initializes a new DynamicSet object with values from keyword arguments.
LIFECYCLE_STATE_ACTIVE = 'ACTIVE'

A constant which can be used with the lifecycle_state property of a DynamicSet. This constant has a value of “ACTIVE”

LIFECYCLE_STATE_CREATING = 'CREATING'

A constant which can be used with the lifecycle_state property of a DynamicSet. This constant has a value of “CREATING”

LIFECYCLE_STATE_DELETED = 'DELETED'

A constant which can be used with the lifecycle_state property of a DynamicSet. This constant has a value of “DELETED”

LIFECYCLE_STATE_DELETING = 'DELETING'

A constant which can be used with the lifecycle_state property of a DynamicSet. This constant has a value of “DELETING”

LIFECYCLE_STATE_FAILED = 'FAILED'

A constant which can be used with the lifecycle_state property of a DynamicSet. This constant has a value of “FAILED”

LIFECYCLE_STATE_UPDATING = 'UPDATING'

A constant which can be used with the lifecycle_state property of a DynamicSet. This constant has a value of “UPDATING”

MATCH_TYPE_ALL = 'ALL'

A constant which can be used with the match_type property of a DynamicSet. This constant has a value of “ALL”

MATCH_TYPE_ANY = 'ANY'

A constant which can be used with the match_type property of a DynamicSet. This constant has a value of “ANY”

__init__(**kwargs)

Initializes a new DynamicSet object with values from keyword arguments. 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 DynamicSet.
  • compartment_id (str) – The value to assign to the compartment_id property of this DynamicSet.
  • display_name (str) – The value to assign to the display_name property of this DynamicSet.
  • description (str) – The value to assign to the description property of this DynamicSet.
  • time_created (datetime) – The value to assign to the time_created property of this DynamicSet.
  • time_updated (datetime) – The value to assign to the time_updated property of this DynamicSet.
  • lifecycle_state (str) – The value to assign to the lifecycle_state property of this DynamicSet. 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’.
  • scheduled_job_count (str) – The value to assign to the scheduled_job_count property of this DynamicSet.
  • target_compartments (list[oci.os_management_hub.models.TargetCompartmentDetails]) – The value to assign to the target_compartments property of this DynamicSet.
  • match_type (str) – The value to assign to the match_type property of this DynamicSet. Allowed values for this property are: “ANY”, “ALL”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • matching_rule (oci.os_management_hub.models.MatchingRule) – The value to assign to the matching_rule property of this DynamicSet.
  • freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this DynamicSet.
  • defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this DynamicSet.
  • system_tags (dict(str, dict(str, object))) – The value to assign to the system_tags property of this DynamicSet.
compartment_id

[Required] Gets the compartment_id of this DynamicSet. The OCID of the compartment that contains the dynamic set.

Returns:The compartment_id of this DynamicSet.
Return type:str
defined_tags

[Required] Gets the defined_tags of this DynamicSet. Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {“Operations”: {“CostCenter”: “42”}}

Returns:The defined_tags of this DynamicSet.
Return type:dict(str, dict(str, object))
description

Gets the description of this DynamicSet. User-specified description for the dynamic set.

Returns:The description of this DynamicSet.
Return type:str
display_name

[Required] Gets the display_name of this DynamicSet. User-friendly name for the dynamic set.

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

[Required] Gets the freeform_tags of this DynamicSet. Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {“Department”: “Finance”}

Returns:The freeform_tags of this DynamicSet.
Return type:dict(str, str)
id

[Required] Gets the id of this DynamicSet. The OCID of the dynamic set.

Returns:The id of this DynamicSet.
Return type:str
lifecycle_state

[Required] Gets the lifecycle_state of this DynamicSet. The current state of the event.

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 DynamicSet.
Return type:str
match_type

Gets the match_type of this DynamicSet. Include either any or all attributes.

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

Returns:The match_type of this DynamicSet.
Return type:str
matching_rule

Gets the matching_rule of this DynamicSet.

Returns:The matching_rule of this DynamicSet.
Return type:oci.os_management_hub.models.MatchingRule
scheduled_job_count

Gets the scheduled_job_count of this DynamicSet. Number of scheduled jobs currently targeting this dynamic set.

Returns:The scheduled_job_count of this DynamicSet.
Return type:str
system_tags

Gets the system_tags of this DynamicSet. System tags for this resource. Each key is predefined and scoped to a namespace. Example: {“orcl-cloud”: {“free-tier-retained”: “true”}}

Returns:The system_tags of this DynamicSet.
Return type:dict(str, dict(str, object))
target_compartments

Gets the target_compartments of this DynamicSet. The list of compartment details.

Returns:The target_compartments of this DynamicSet.
Return type:list[oci.os_management_hub.models.TargetCompartmentDetails]
time_created

[Required] Gets the time_created of this DynamicSet. The date and time the dynamic set was created (in RFC 3339 format).

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

Gets the time_updated of this DynamicSet. The date and time the dynamic set was last updated (in RFC 3339 format).

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