DynamicResourceSelection

class oci.fleet_apps_management.models.DynamicResourceSelection(**kwargs)

Bases: ResourceSelection

Dynamic Resource Selection Type

Attributes:

RESOURCE_SELECTION_TYPE_DYNAMIC

A constant which can be used with the resource_selection_type property of a ResourceSelection.

RESOURCE_SELECTION_TYPE_MANUAL

A constant which can be used with the resource_selection_type property of a ResourceSelection.

resource_selection_type

[Required] Gets the resource_selection_type of this ResourceSelection.

rule_selection_criteria

[Required] Gets the rule_selection_criteria of this DynamicResourceSelection.

Methods:

__init__(**kwargs)

Initializes a new DynamicResourceSelection 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_SELECTION_TYPE_DYNAMIC = 'DYNAMIC'

A constant which can be used with the resource_selection_type property of a ResourceSelection. This constant has a value of “DYNAMIC”

RESOURCE_SELECTION_TYPE_MANUAL = 'MANUAL'

A constant which can be used with the resource_selection_type property of a ResourceSelection. This constant has a value of “MANUAL”

__init__(**kwargs)

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

Parameters
  • resource_selection_type (str) – The value to assign to the resource_selection_type property of this DynamicResourceSelection. Allowed values for this property are: “DYNAMIC”, “MANUAL”

  • rule_selection_criteria (oci.fleet_apps_management.models.SelectionCriteria) – The value to assign to the rule_selection_criteria property of this DynamicResourceSelection.

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 resource_selection_type

[Required] Gets the resource_selection_type of this ResourceSelection. Type of resource selection in a Fleet. Select resources manually or select resources based on rules.

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

Returns

The resource_selection_type of this ResourceSelection.

Return type

str

property rule_selection_criteria

[Required] Gets the rule_selection_criteria of this DynamicResourceSelection.

Returns

The rule_selection_criteria of this DynamicResourceSelection.

Return type

oci.fleet_apps_management.models.SelectionCriteria