DataSource¶
- class oci.cloud_guard.models.DataSource(**kwargs)¶
Bases:
objectDetailed information for a data source (DataSource resource).
Attributes:
A constant which can be used with the data_source_feed_provider property of a DataSource.
A constant which can be used with the data_source_feed_provider property of a DataSource.
A constant which can be used with the lifecycle_state property of a DataSource.
A constant which can be used with the lifecycle_state property of a DataSource.
A constant which can be used with the lifecycle_state property of a DataSource.
A constant which can be used with the lifecycle_state property of a DataSource.
A constant which can be used with the lifecycle_state property of a DataSource.
A constant which can be used with the lifecycle_state property of a DataSource.
A constant which can be used with the lifecycle_state property of a DataSource.
A constant which can be used with the status property of a DataSource.
A constant which can be used with the status property of a DataSource.
[Required] Gets the compartment_id of this DataSource.
Gets the data_source_details of this DataSource.
Gets the data_source_detector_mapping_info of this DataSource.
[Required] Gets the data_source_feed_provider of this DataSource.
Gets the defined_tags of this DataSource.
[Required] Gets the display_name of this DataSource.
Gets the freeform_tags of this DataSource.
[Required] Gets the id of this DataSource.
Gets the lifecycle_state of this DataSource.
Gets the locks of this DataSource.
Gets the region_status_detail of this DataSource.
Gets the status of this DataSource.
Gets the system_tags of this DataSource.
Gets the time_created of this DataSource.
Gets the time_updated of this DataSource.
Methods:
__init__(**kwargs)Initializes a new DataSource object with values from keyword arguments.
- DATA_SOURCE_FEED_PROVIDER_LOGGINGQUERY = 'LOGGINGQUERY'¶
A constant which can be used with the data_source_feed_provider property of a DataSource. This constant has a value of “LOGGINGQUERY”
- DATA_SOURCE_FEED_PROVIDER_SCHEDULEDQUERY = 'SCHEDULEDQUERY'¶
A constant which can be used with the data_source_feed_provider property of a DataSource. This constant has a value of “SCHEDULEDQUERY”
- LIFECYCLE_STATE_ACTIVE = 'ACTIVE'¶
A constant which can be used with the lifecycle_state property of a DataSource. This constant has a value of “ACTIVE”
- LIFECYCLE_STATE_CREATING = 'CREATING'¶
A constant which can be used with the lifecycle_state property of a DataSource. This constant has a value of “CREATING”
- LIFECYCLE_STATE_DELETED = 'DELETED'¶
A constant which can be used with the lifecycle_state property of a DataSource. This constant has a value of “DELETED”
- LIFECYCLE_STATE_DELETING = 'DELETING'¶
A constant which can be used with the lifecycle_state property of a DataSource. This constant has a value of “DELETING”
- LIFECYCLE_STATE_FAILED = 'FAILED'¶
A constant which can be used with the lifecycle_state property of a DataSource. This constant has a value of “FAILED”
- LIFECYCLE_STATE_INACTIVE = 'INACTIVE'¶
A constant which can be used with the lifecycle_state property of a DataSource. This constant has a value of “INACTIVE”
- LIFECYCLE_STATE_UPDATING = 'UPDATING'¶
A constant which can be used with the lifecycle_state property of a DataSource. This constant has a value of “UPDATING”
- STATUS_DISABLED = 'DISABLED'¶
A constant which can be used with the status property of a DataSource. This constant has a value of “DISABLED”
- STATUS_ENABLED = 'ENABLED'¶
A constant which can be used with the status property of a DataSource. This constant has a value of “ENABLED”
- __init__(**kwargs)¶
Initializes a new DataSource 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 DataSource.
display_name (str) – The value to assign to the display_name property of this DataSource.
data_source_feed_provider (str) – The value to assign to the data_source_feed_provider property of this DataSource. Allowed values for this property are: “LOGGINGQUERY”, “SCHEDULEDQUERY”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
compartment_id (str) – The value to assign to the compartment_id property of this DataSource.
data_source_details (oci.cloud_guard.models.DataSourceDetails) – The value to assign to the data_source_details property of this DataSource.
time_created (datetime) – The value to assign to the time_created property of this DataSource.
time_updated (datetime) – The value to assign to the time_updated property of this DataSource.
status (str) – The value to assign to the status property of this DataSource. Allowed values for this property are: “ENABLED”, “DISABLED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
data_source_detector_mapping_info (list[oci.cloud_guard.models.DataSourceMappingInfo]) – The value to assign to the data_source_detector_mapping_info property of this DataSource.
region_status_detail (list[oci.cloud_guard.models.RegionStatusDetail]) – The value to assign to the region_status_detail property of this DataSource.
lifecycle_state (str) – The value to assign to the lifecycle_state property of this DataSource. 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’.
locks (list[oci.cloud_guard.models.ResourceLock]) – The value to assign to the locks property of this DataSource.
freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this DataSource.
defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this DataSource.
system_tags (dict(str, dict(str, object))) – The value to assign to the system_tags property of this DataSource.
- property compartment_id¶
[Required] Gets the compartment_id of this DataSource. Compartment OCID of data source
- Returns
The compartment_id of this DataSource.
- Return type
str
- property data_source_details¶
Gets the data_source_details of this DataSource.
- Returns
The data_source_details of this DataSource.
- Return type
- property data_source_detector_mapping_info¶
Gets the data_source_detector_mapping_info of this DataSource. Information about the detector recipe and rule attached
- Returns
The data_source_detector_mapping_info of this DataSource.
- Return type
- property data_source_feed_provider¶
[Required] Gets the data_source_feed_provider of this DataSource. Possible type of dataSourceFeed Provider(LoggingQuery)
Allowed values for this property are: “LOGGINGQUERY”, “SCHEDULEDQUERY”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- Returns
The data_source_feed_provider of this DataSource.
- Return type
str
- property defined_tags¶
Gets the defined_tags of this DataSource. 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 DataSource.
- Return type
dict(str, dict(str, object))
- property display_name¶
[Required] Gets the display_name of this DataSource. Display name of the data source
- Returns
The display_name of this DataSource.
- Return type
str
- property freeform_tags¶
Gets the freeform_tags of this DataSource. 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 DataSource.
- Return type
dict(str, str)
- property id¶
[Required] Gets the id of this DataSource. OCID for the data source
- Returns
The id of this DataSource.
- Return type
str
- property lifecycle_state¶
Gets the lifecycle_state of this DataSource. 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 DataSource.
- Return type
str
- property locks¶
Gets the locks of this DataSource. Locks associated with this resource.
- Returns
The locks of this DataSource.
- Return type
- property region_status_detail¶
Gets the region_status_detail of this DataSource. Information about the region and status of query replication
- Returns
The region_status_detail of this DataSource.
- Return type
- property status¶
Gets the status of this DataSource. Enablement status of the data source
Allowed values for this property are: “ENABLED”, “DISABLED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- Returns
The status of this DataSource.
- Return type
str
- property system_tags¶
Gets the system_tags of this DataSource. 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 DataSource.
- Return type
dict(str, dict(str, object))
- property time_created¶
Gets the time_created of this DataSource. The date and time the Data source was created. Format defined by RFC3339.
- Returns
The time_created of this DataSource.
- Return type
datetime
- property time_updated¶
Gets the time_updated of this DataSource. The date and time the data source was updated. Format defined by RFC3339.
- Returns
The time_updated of this DataSource.
- Return type
datetime