AdhocQuery

class oci.cloud_guard.models.AdhocQuery(**kwargs)

Bases: object

Details of a adhoc query.

Attributes:

LIFECYCLE_STATE_ACTIVE

A constant which can be used with the lifecycle_state property of a AdhocQuery.

LIFECYCLE_STATE_CREATING

A constant which can be used with the lifecycle_state property of a AdhocQuery.

LIFECYCLE_STATE_DELETED

A constant which can be used with the lifecycle_state property of a AdhocQuery.

LIFECYCLE_STATE_DELETING

A constant which can be used with the lifecycle_state property of a AdhocQuery.

LIFECYCLE_STATE_FAILED

A constant which can be used with the lifecycle_state property of a AdhocQuery.

LIFECYCLE_STATE_INACTIVE

A constant which can be used with the lifecycle_state property of a AdhocQuery.

LIFECYCLE_STATE_UPDATING

A constant which can be used with the lifecycle_state property of a AdhocQuery.

STATUS_COMPLETED

A constant which can be used with the status property of a AdhocQuery.

STATUS_CREATED

A constant which can be used with the status property of a AdhocQuery.

STATUS_CREATING

A constant which can be used with the status property of a AdhocQuery.

STATUS_EXPIRED

A constant which can be used with the status property of a AdhocQuery.

STATUS_FAILED

A constant which can be used with the status property of a AdhocQuery.

STATUS_IN_PROGRESS

A constant which can be used with the status property of a AdhocQuery.

STATUS_PARTIALLY_COMPLETED

A constant which can be used with the status property of a AdhocQuery.

adhoc_query_details

[Required] Gets the adhoc_query_details of this AdhocQuery.

adhoc_query_regional_details

Gets the adhoc_query_regional_details of this AdhocQuery.

compartment_id

[Required] Gets the compartment_id of this AdhocQuery.

defined_tags

Gets the defined_tags of this AdhocQuery.

error_message

Gets the error_message of this AdhocQuery.

freeform_tags

Gets the freeform_tags of this AdhocQuery.

id

[Required] Gets the id of this AdhocQuery.

lifecycle_state

Gets the lifecycle_state of this AdhocQuery.

locks

Gets the locks of this AdhocQuery.

status

[Required] Gets the status of this AdhocQuery.

system_tags

Gets the system_tags of this AdhocQuery.

time_created

Gets the time_created of this AdhocQuery.

time_updated

Gets the time_updated of this AdhocQuery.

Methods:

__init__(**kwargs)

Initializes a new AdhocQuery object with values from keyword arguments.

LIFECYCLE_STATE_ACTIVE = 'ACTIVE'

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

LIFECYCLE_STATE_CREATING = 'CREATING'

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

LIFECYCLE_STATE_DELETED = 'DELETED'

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

LIFECYCLE_STATE_DELETING = 'DELETING'

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

LIFECYCLE_STATE_FAILED = 'FAILED'

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

LIFECYCLE_STATE_INACTIVE = 'INACTIVE'

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

LIFECYCLE_STATE_UPDATING = 'UPDATING'

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

STATUS_COMPLETED = 'COMPLETED'

A constant which can be used with the status property of a AdhocQuery. This constant has a value of “COMPLETED”

STATUS_CREATED = 'CREATED'

A constant which can be used with the status property of a AdhocQuery. This constant has a value of “CREATED”

STATUS_CREATING = 'CREATING'

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

STATUS_EXPIRED = 'EXPIRED'

A constant which can be used with the status property of a AdhocQuery. This constant has a value of “EXPIRED”

STATUS_FAILED = 'FAILED'

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

STATUS_IN_PROGRESS = 'IN_PROGRESS'

A constant which can be used with the status property of a AdhocQuery. This constant has a value of “IN_PROGRESS”

STATUS_PARTIALLY_COMPLETED = 'PARTIALLY_COMPLETED'

A constant which can be used with the status property of a AdhocQuery. This constant has a value of “PARTIALLY_COMPLETED”

__init__(**kwargs)

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

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

  • time_created (datetime) – The value to assign to the time_created property of this AdhocQuery.

  • time_updated (datetime) – The value to assign to the time_updated property of this AdhocQuery.

  • status (str) – The value to assign to the status property of this AdhocQuery. Allowed values for this property are: “CREATING”, “CREATED”, “IN_PROGRESS”, “PARTIALLY_COMPLETED”, “EXPIRED”, “COMPLETED”, “FAILED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

  • adhoc_query_regional_details (list[oci.cloud_guard.models.AdhocQueryRegionalDetails]) – The value to assign to the adhoc_query_regional_details property of this AdhocQuery.

  • adhoc_query_details (oci.cloud_guard.models.AdhocQueryDetails) – The value to assign to the adhoc_query_details property of this AdhocQuery.

  • error_message (str) – The value to assign to the error_message property of this AdhocQuery.

  • locks (list[oci.cloud_guard.models.ResourceLock]) – The value to assign to the locks property of this AdhocQuery.

  • lifecycle_state (str) – The value to assign to the lifecycle_state property of this AdhocQuery. Allowed values for this property are: “CREATING”, “UPDATING”, “ACTIVE”, “INACTIVE”, “DELETING”, “DELETED”, “FAILED”, ‘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 AdhocQuery.

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

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

property adhoc_query_details

[Required] Gets the adhoc_query_details of this AdhocQuery.

Returns

The adhoc_query_details of this AdhocQuery.

Return type

oci.cloud_guard.models.AdhocQueryDetails

property adhoc_query_regional_details

Gets the adhoc_query_regional_details of this AdhocQuery. Instance level status for each region

Returns

The adhoc_query_regional_details of this AdhocQuery.

Return type

list[oci.cloud_guard.models.AdhocQueryRegionalDetails]

property compartment_id

[Required] Gets the compartment_id of this AdhocQuery. Compartment OCID of the adhoc query

Returns

The compartment_id of this AdhocQuery.

Return type

str

property defined_tags

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

Return type

dict(str, dict(str, object))

property error_message

Gets the error_message of this AdhocQuery. Error message to show on UI in case of failure

Returns

The error_message of this AdhocQuery.

Return type

str

property freeform_tags

Gets the freeform_tags of this AdhocQuery. Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {“bar-key”: “value”}

Avoid entering confidential information.

Returns

The freeform_tags of this AdhocQuery.

Return type

dict(str, str)

property id

[Required] Gets the id of this AdhocQuery. OCID for the adhoc query

Returns

The id of this AdhocQuery.

Return type

str

property lifecycle_state

Gets the lifecycle_state of this AdhocQuery. The current lifecycle state of the resource.

Allowed values for this property are: “CREATING”, “UPDATING”, “ACTIVE”, “INACTIVE”, “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 AdhocQuery.

Return type

str

property locks

Gets the locks of this AdhocQuery. Locks associated with this resource.

Returns

The locks of this AdhocQuery.

Return type

list[oci.cloud_guard.models.ResourceLock]

property status

[Required] Gets the status of this AdhocQuery. Status of the adhoc query

Allowed values for this property are: “CREATING”, “CREATED”, “IN_PROGRESS”, “PARTIALLY_COMPLETED”, “EXPIRED”, “COMPLETED”, “FAILED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns

The status of this AdhocQuery.

Return type

str

property system_tags

Gets the system_tags of this AdhocQuery. System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system.

Example: {“orcl-cloud”: {“free-tier-retained”: “true”}}

Returns

The system_tags of this AdhocQuery.

Return type

dict(str, dict(str, object))

property time_created

Gets the time_created of this AdhocQuery. The date and time the adhoc query was created. Format defined by RFC3339.

Returns

The time_created of this AdhocQuery.

Return type

datetime

property time_updated

Gets the time_updated of this AdhocQuery. The date and time the adhoc query was updated. Format defined by RFC3339.

Returns

The time_updated of this AdhocQuery.

Return type

datetime