ComputeInstanceGroupByQuerySelector¶
- class oci.devops.models.ComputeInstanceGroupByQuerySelector(**kwargs)¶
Bases:
ComputeInstanceGroupSelectorSpecifies the Compute instance group environment filtered by the RQS query expression.
Attributes:
A constant which can be used with the selector_type property of a ComputeInstanceGroupSelector.
A constant which can be used with the selector_type property of a ComputeInstanceGroupSelector.
[Required] Gets the query of this ComputeInstanceGroupByQuerySelector.
[Required] Gets the region of this ComputeInstanceGroupByQuerySelector.
[Required] Gets the selector_type of this ComputeInstanceGroupSelector.
Methods:
__init__(**kwargs)Initializes a new ComputeInstanceGroupByQuerySelector 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.
- SELECTOR_TYPE_INSTANCE_IDS = 'INSTANCE_IDS'¶
A constant which can be used with the selector_type property of a ComputeInstanceGroupSelector. This constant has a value of “INSTANCE_IDS”
- SELECTOR_TYPE_INSTANCE_QUERY = 'INSTANCE_QUERY'¶
A constant which can be used with the selector_type property of a ComputeInstanceGroupSelector. This constant has a value of “INSTANCE_QUERY”
- __init__(**kwargs)¶
Initializes a new ComputeInstanceGroupByQuerySelector object with values from keyword arguments. The default value of the
selector_typeattribute of this class isINSTANCE_QUERYand it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):- Parameters
selector_type (str) – The value to assign to the selector_type property of this ComputeInstanceGroupByQuerySelector. Allowed values for this property are: “INSTANCE_IDS”, “INSTANCE_QUERY”
region (str) – The value to assign to the region property of this ComputeInstanceGroupByQuerySelector.
query (str) – The value to assign to the query property of this ComputeInstanceGroupByQuerySelector.
- 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 query¶
[Required] Gets the query of this ComputeInstanceGroupByQuerySelector. Query expression confirming to the OCI Search Language syntax to select compute instances for the group. The language is documented at https://docs.oracle.com/en-us/iaas/Content/Search/Concepts/querysyntax.htm
- Returns
The query of this ComputeInstanceGroupByQuerySelector.
- Return type
str
- property region¶
[Required] Gets the region of this ComputeInstanceGroupByQuerySelector. Region identifier referred by the deployment environment. Region identifiers are listed at https://docs.oracle.com/en-us/iaas/Content/General/Concepts/regions.htm
- Returns
The region of this ComputeInstanceGroupByQuerySelector.
- Return type
str
- property selector_type¶
[Required] Gets the selector_type of this ComputeInstanceGroupSelector. Defines the type of the instance selector for the group.
Allowed values for this property are: “INSTANCE_IDS”, “INSTANCE_QUERY”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- Returns
The selector_type of this ComputeInstanceGroupSelector.
- Return type
str