File manager - Edit - /usr/lib/mysqlsh/lib/python3.9/site-packages/oci/log_analytics/models/namespace.py
Back
# coding: utf-8 # Copyright (c) 2016, 2026, 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 Namespace(object): """ This is the namespace details of a tenancy in Log Analytics application """ #: A constant which can be used with the lifecycle_state property of a Namespace. #: This constant has a value of "ACTIVE" LIFECYCLE_STATE_ACTIVE = "ACTIVE" #: A constant which can be used with the lifecycle_state property of a Namespace. #: This constant has a value of "INACTIVE" LIFECYCLE_STATE_INACTIVE = "INACTIVE" def __init__(self, **kwargs): """ Initializes a new Namespace object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param namespace_name: The value to assign to the namespace_name property of this Namespace. :type namespace_name: str :param compartment_id: The value to assign to the compartment_id property of this Namespace. :type compartment_id: str :param is_onboarded: The value to assign to the is_onboarded property of this Namespace. :type is_onboarded: bool :param is_log_set_enabled: The value to assign to the is_log_set_enabled property of this Namespace. :type is_log_set_enabled: bool :param is_data_ever_ingested: The value to assign to the is_data_ever_ingested property of this Namespace. :type is_data_ever_ingested: bool :param is_archiving_enabled: The value to assign to the is_archiving_enabled property of this Namespace. :type is_archiving_enabled: bool :param lifecycle_state: The value to assign to the lifecycle_state property of this Namespace. Allowed values for this property are: "ACTIVE", "INACTIVE", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type lifecycle_state: str """ self.swagger_types = { 'namespace_name': 'str', 'compartment_id': 'str', 'is_onboarded': 'bool', 'is_log_set_enabled': 'bool', 'is_data_ever_ingested': 'bool', 'is_archiving_enabled': 'bool', 'lifecycle_state': 'str' } self.attribute_map = { 'namespace_name': 'namespaceName', 'compartment_id': 'compartmentId', 'is_onboarded': 'isOnboarded', 'is_log_set_enabled': 'isLogSetEnabled', 'is_data_ever_ingested': 'isDataEverIngested', 'is_archiving_enabled': 'isArchivingEnabled', 'lifecycle_state': 'lifecycleState' } self._namespace_name = None self._compartment_id = None self._is_onboarded = None self._is_log_set_enabled = None self._is_data_ever_ingested = None self._is_archiving_enabled = None self._lifecycle_state = None @property def namespace_name(self): """ **[Required]** Gets the namespace_name of this Namespace. This is the namespace name of a tenancy :return: The namespace_name of this Namespace. :rtype: str """ return self._namespace_name @namespace_name.setter def namespace_name(self, namespace_name): """ Sets the namespace_name of this Namespace. This is the namespace name of a tenancy :param namespace_name: The namespace_name of this Namespace. :type: str """ self._namespace_name = namespace_name @property def compartment_id(self): """ **[Required]** Gets the compartment_id of this Namespace. The is the tenancy ID :return: The compartment_id of this Namespace. :rtype: str """ return self._compartment_id @compartment_id.setter def compartment_id(self, compartment_id): """ Sets the compartment_id of this Namespace. The is the tenancy ID :param compartment_id: The compartment_id of this Namespace. :type: str """ self._compartment_id = compartment_id @property def is_onboarded(self): """ **[Required]** Gets the is_onboarded of this Namespace. This indicates if the tenancy is onboarded to Log Analytics :return: The is_onboarded of this Namespace. :rtype: bool """ return self._is_onboarded @is_onboarded.setter def is_onboarded(self, is_onboarded): """ Sets the is_onboarded of this Namespace. This indicates if the tenancy is onboarded to Log Analytics :param is_onboarded: The is_onboarded of this Namespace. :type: bool """ self._is_onboarded = is_onboarded @property def is_log_set_enabled(self): """ Gets the is_log_set_enabled of this Namespace. This indicates if the log set feature is enabled for the tenancy :return: The is_log_set_enabled of this Namespace. :rtype: bool """ return self._is_log_set_enabled @is_log_set_enabled.setter def is_log_set_enabled(self, is_log_set_enabled): """ Sets the is_log_set_enabled of this Namespace. This indicates if the log set feature is enabled for the tenancy :param is_log_set_enabled: The is_log_set_enabled of this Namespace. :type: bool """ self._is_log_set_enabled = is_log_set_enabled @property def is_data_ever_ingested(self): """ Gets the is_data_ever_ingested of this Namespace. This indicates if data has ever been ingested for the tenancy in Log Analytics :return: The is_data_ever_ingested of this Namespace. :rtype: bool """ return self._is_data_ever_ingested @is_data_ever_ingested.setter def is_data_ever_ingested(self, is_data_ever_ingested): """ Sets the is_data_ever_ingested of this Namespace. This indicates if data has ever been ingested for the tenancy in Log Analytics :param is_data_ever_ingested: The is_data_ever_ingested of this Namespace. :type: bool """ self._is_data_ever_ingested = is_data_ever_ingested @property def is_archiving_enabled(self): """ Gets the is_archiving_enabled of this Namespace. This indicates if old data can be archived for a tenancy :return: The is_archiving_enabled of this Namespace. :rtype: bool """ return self._is_archiving_enabled @is_archiving_enabled.setter def is_archiving_enabled(self, is_archiving_enabled): """ Sets the is_archiving_enabled of this Namespace. This indicates if old data can be archived for a tenancy :param is_archiving_enabled: The is_archiving_enabled of this Namespace. :type: bool """ self._is_archiving_enabled = is_archiving_enabled @property def lifecycle_state(self): """ Gets the lifecycle_state of this Namespace. The current state of the compartment. Allowed values for this property are: "ACTIVE", "INACTIVE", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The lifecycle_state of this Namespace. :rtype: str """ return self._lifecycle_state @lifecycle_state.setter def lifecycle_state(self, lifecycle_state): """ Sets the lifecycle_state of this Namespace. The current state of the compartment. :param lifecycle_state: The lifecycle_state of this Namespace. :type: str """ allowed_values = ["ACTIVE", "INACTIVE"] if not value_allowed_none_or_none_sentinel(lifecycle_state, allowed_values): lifecycle_state = 'UNKNOWN_ENUM_VALUE' self._lifecycle_state = lifecycle_state 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
| ver. 1.4 |
Github
|
.
| PHP 8.2.32 | Generation time: 0.06 |
proxy
|
phpinfo
|
Settings