ruạṛ
# 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 LogAnalyticsSourceFunction(object): """ LogAnalyticsSourceFunction """ #: A constant which can be used with the function_name property of a LogAnalyticsSourceFunction. #: This constant has a value of "GEOLOCATION" FUNCTION_NAME_GEOLOCATION = "GEOLOCATION" #: A constant which can be used with the function_name property of a LogAnalyticsSourceFunction. #: This constant has a value of "LOOKUP" FUNCTION_NAME_LOOKUP = "LOOKUP" def __init__(self, **kwargs): """ Initializes a new LogAnalyticsSourceFunction object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param arguments: The value to assign to the arguments property of this LogAnalyticsSourceFunction. :type arguments: list[oci.log_analytics.models.LogAnalyticsMetaFunctionArgument] :param is_enabled: The value to assign to the is_enabled property of this LogAnalyticsSourceFunction. :type is_enabled: bool :param function: The value to assign to the function property of this LogAnalyticsSourceFunction. :type function: oci.log_analytics.models.LogAnalyticsMetaFunction :param function_name: The value to assign to the function_name property of this LogAnalyticsSourceFunction. Allowed values for this property are: "GEOLOCATION", "LOOKUP", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type function_name: str :param function_reference: The value to assign to the function_reference property of this LogAnalyticsSourceFunction. :type function_reference: str :param source_reference: The value to assign to the source_reference property of this LogAnalyticsSourceFunction. :type source_reference: str :param features: The value to assign to the features property of this LogAnalyticsSourceFunction. :type features: list[str] :param function_id: The value to assign to the function_id property of this LogAnalyticsSourceFunction. :type function_id: int :param order: The value to assign to the order property of this LogAnalyticsSourceFunction. :type order: int :param is_system: The value to assign to the is_system property of this LogAnalyticsSourceFunction. :type is_system: bool :param lookup_column: The value to assign to the lookup_column property of this LogAnalyticsSourceFunction. :type lookup_column: str :param lookup_column_position: The value to assign to the lookup_column_position property of this LogAnalyticsSourceFunction. :type lookup_column_position: int :param lookup_display_name: The value to assign to the lookup_display_name property of this LogAnalyticsSourceFunction. :type lookup_display_name: str :param lookup_mode: The value to assign to the lookup_mode property of this LogAnalyticsSourceFunction. :type lookup_mode: int :param lookup_table: The value to assign to the lookup_table property of this LogAnalyticsSourceFunction. :type lookup_table: str :param source_id: The value to assign to the source_id property of this LogAnalyticsSourceFunction. :type source_id: int """ self.swagger_types = { 'arguments': 'list[LogAnalyticsMetaFunctionArgument]', 'is_enabled': 'bool', 'function': 'LogAnalyticsMetaFunction', 'function_name': 'str', 'function_reference': 'str', 'source_reference': 'str', 'features': 'list[str]', 'function_id': 'int', 'order': 'int', 'is_system': 'bool', 'lookup_column': 'str', 'lookup_column_position': 'int', 'lookup_display_name': 'str', 'lookup_mode': 'int', 'lookup_table': 'str', 'source_id': 'int' } self.attribute_map = { 'arguments': 'arguments', 'is_enabled': 'isEnabled', 'function': 'function', 'function_name': 'functionName', 'function_reference': 'functionReference', 'source_reference': 'sourceReference', 'features': 'features', 'function_id': 'functionId', 'order': 'order', 'is_system': 'isSystem', 'lookup_column': 'lookupColumn', 'lookup_column_position': 'lookupColumnPosition', 'lookup_display_name': 'lookupDisplayName', 'lookup_mode': 'lookupMode', 'lookup_table': 'lookupTable', 'source_id': 'sourceId' } self._arguments = None self._is_enabled = None self._function = None self._function_name = None self._function_reference = None self._source_reference = None self._features = None self._function_id = None self._order = None self._is_system = None self._lookup_column = None self._lookup_column_position = None self._lookup_display_name = None self._lookup_mode = None self._lookup_table = None self._source_id = None @property def arguments(self): """ Gets the arguments of this LogAnalyticsSourceFunction. The function argument. :return: The arguments of this LogAnalyticsSourceFunction. :rtype: list[oci.log_analytics.models.LogAnalyticsMetaFunctionArgument] """ return self._arguments @arguments.setter def arguments(self, arguments): """ Sets the arguments of this LogAnalyticsSourceFunction. The function argument. :param arguments: The arguments of this LogAnalyticsSourceFunction. :type: list[oci.log_analytics.models.LogAnalyticsMetaFunctionArgument] """ self._arguments = arguments @property def is_enabled(self): """ Gets the is_enabled of this LogAnalyticsSourceFunction. A flag inidcating whether or not the source function is enabled. :return: The is_enabled of this LogAnalyticsSourceFunction. :rtype: bool """ return self._is_enabled @is_enabled.setter def is_enabled(self, is_enabled): """ Sets the is_enabled of this LogAnalyticsSourceFunction. A flag inidcating whether or not the source function is enabled. :param is_enabled: The is_enabled of this LogAnalyticsSourceFunction. :type: bool """ self._is_enabled = is_enabled @property def function(self): """ Gets the function of this LogAnalyticsSourceFunction. :return: The function of this LogAnalyticsSourceFunction. :rtype: oci.log_analytics.models.LogAnalyticsMetaFunction """ return self._function @function.setter def function(self, function): """ Sets the function of this LogAnalyticsSourceFunction. :param function: The function of this LogAnalyticsSourceFunction. :type: oci.log_analytics.models.LogAnalyticsMetaFunction """ self._function = function @property def function_name(self): """ Gets the function_name of this LogAnalyticsSourceFunction. The source function name Allowed values for this property are: "GEOLOCATION", "LOOKUP", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The function_name of this LogAnalyticsSourceFunction. :rtype: str """ return self._function_name @function_name.setter def function_name(self, function_name): """ Sets the function_name of this LogAnalyticsSourceFunction. The source function name :param function_name: The function_name of this LogAnalyticsSourceFunction. :type: str """ allowed_values = ["GEOLOCATION", "LOOKUP"] if not value_allowed_none_or_none_sentinel(function_name, allowed_values): function_name = 'UNKNOWN_ENUM_VALUE' self._function_name = function_name @property def function_reference(self): """ Gets the function_reference of this LogAnalyticsSourceFunction. The source function unique identifier as a string. :return: The function_reference of this LogAnalyticsSourceFunction. :rtype: str """ return self._function_reference @function_reference.setter def function_reference(self, function_reference): """ Sets the function_reference of this LogAnalyticsSourceFunction. The source function unique identifier as a string. :param function_reference: The function_reference of this LogAnalyticsSourceFunction. :type: str """ self._function_reference = function_reference @property def source_reference(self): """ Gets the source_reference of this LogAnalyticsSourceFunction. The source unique identifier as a string. :return: The source_reference of this LogAnalyticsSourceFunction. :rtype: str """ return self._source_reference @source_reference.setter def source_reference(self, source_reference): """ Sets the source_reference of this LogAnalyticsSourceFunction. The source unique identifier as a string. :param source_reference: The source_reference of this LogAnalyticsSourceFunction. :type: str """ self._source_reference = source_reference @property def features(self): """ Gets the features of this LogAnalyticsSourceFunction. Features of the source function to use for enrichment. :return: The features of this LogAnalyticsSourceFunction. :rtype: list[str] """ return self._features @features.setter def features(self, features): """ Sets the features of this LogAnalyticsSourceFunction. Features of the source function to use for enrichment. :param features: The features of this LogAnalyticsSourceFunction. :type: list[str] """ self._features = features @property def function_id(self): """ Gets the function_id of this LogAnalyticsSourceFunction. The source function unique identifier. :return: The function_id of this LogAnalyticsSourceFunction. :rtype: int """ return self._function_id @function_id.setter def function_id(self, function_id): """ Sets the function_id of this LogAnalyticsSourceFunction. The source function unique identifier. :param function_id: The function_id of this LogAnalyticsSourceFunction. :type: int """ self._function_id = function_id @property def order(self): """ Gets the order of this LogAnalyticsSourceFunction. The source function order. :return: The order of this LogAnalyticsSourceFunction. :rtype: int """ return self._order @order.setter def order(self, order): """ Sets the order of this LogAnalyticsSourceFunction. The source function order. :param order: The order of this LogAnalyticsSourceFunction. :type: int """ self._order = order @property def is_system(self): """ Gets the is_system of this LogAnalyticsSourceFunction. The system flag. A value of false denotes a custom, or user defined object. A value of true denotes a built in object. :return: The is_system of this LogAnalyticsSourceFunction. :rtype: bool """ return self._is_system @is_system.setter def is_system(self, is_system): """ Sets the is_system of this LogAnalyticsSourceFunction. The system flag. A value of false denotes a custom, or user defined object. A value of true denotes a built in object. :param is_system: The is_system of this LogAnalyticsSourceFunction. :type: bool """ self._is_system = is_system @property def lookup_column(self): """ Gets the lookup_column of this LogAnalyticsSourceFunction. The lookup column. :return: The lookup_column of this LogAnalyticsSourceFunction. :rtype: str """ return self._lookup_column @lookup_column.setter def lookup_column(self, lookup_column): """ Sets the lookup_column of this LogAnalyticsSourceFunction. The lookup column. :param lookup_column: The lookup_column of this LogAnalyticsSourceFunction. :type: str """ self._lookup_column = lookup_column @property def lookup_column_position(self): """ Gets the lookup_column_position of this LogAnalyticsSourceFunction. The lookup column position. :return: The lookup_column_position of this LogAnalyticsSourceFunction. :rtype: int """ return self._lookup_column_position @lookup_column_position.setter def lookup_column_position(self, lookup_column_position): """ Sets the lookup_column_position of this LogAnalyticsSourceFunction. The lookup column position. :param lookup_column_position: The lookup_column_position of this LogAnalyticsSourceFunction. :type: int """ self._lookup_column_position = lookup_column_position @property def lookup_display_name(self): """ Gets the lookup_display_name of this LogAnalyticsSourceFunction. The lookup display name. :return: The lookup_display_name of this LogAnalyticsSourceFunction. :rtype: str """ return self._lookup_display_name @lookup_display_name.setter def lookup_display_name(self, lookup_display_name): """ Sets the lookup_display_name of this LogAnalyticsSourceFunction. The lookup display name. :param lookup_display_name: The lookup_display_name of this LogAnalyticsSourceFunction. :type: str """ self._lookup_display_name = lookup_display_name @property def lookup_mode(self): """ Gets the lookup_mode of this LogAnalyticsSourceFunction. The lookup mode. :return: The lookup_mode of this LogAnalyticsSourceFunction. :rtype: int """ return self._lookup_mode @lookup_mode.setter def lookup_mode(self, lookup_mode): """ Sets the lookup_mode of this LogAnalyticsSourceFunction. The lookup mode. :param lookup_mode: The lookup_mode of this LogAnalyticsSourceFunction. :type: int """ self._lookup_mode = lookup_mode @property def lookup_table(self): """ Gets the lookup_table of this LogAnalyticsSourceFunction. The lookup table. :return: The lookup_table of this LogAnalyticsSourceFunction. :rtype: str """ return self._lookup_table @lookup_table.setter def lookup_table(self, lookup_table): """ Sets the lookup_table of this LogAnalyticsSourceFunction. The lookup table. :param lookup_table: The lookup_table of this LogAnalyticsSourceFunction. :type: str """ self._lookup_table = lookup_table @property def source_id(self): """ Gets the source_id of this LogAnalyticsSourceFunction. The source unique identifier. :return: The source_id of this LogAnalyticsSourceFunction. :rtype: int """ return self._source_id @source_id.setter def source_id(self, source_id): """ Sets the source_id of this LogAnalyticsSourceFunction. The source unique identifier. :param source_id: The source_id of this LogAnalyticsSourceFunction. :type: int """ self._source_id = source_id 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
cải xoăn