ruạṛ
a ���fM � @ sD d dl mZ ddlmZmZmZ ddlmZ eG dd� de��ZdS )� )�AbstractCommandDescriptor� )�formatted_flat_dict� NONE_SENTINEL�#value_allowed_none_or_none_sentinel)�init_model_state_from_kwargsc @ s� e Zd ZdZdd� Zedd� �Zejdd� �Zedd� �Zejd d� �Zed d� �Z e jdd� �Z ed d� �Z e jdd� �Z dd� Zdd� Zdd� Z dS )�BucketCommandDescriptorz> Command descriptor for querylanguage BUCKET command. c K s� dddddddddddd�| _ dd d ddd dddddd�| _d| _d| _d| _d| _d| _d| _d| _d| _ d| _ d| _d| _d| _dS )aj Initializes a new BucketCommandDescriptor object with values from keyword arguments. The default value of the :py:attr:`~oci.log_analytics.models.BucketCommandDescriptor.name` attribute of this class is ``BUCKET`` and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param name: The value to assign to the name property of this BucketCommandDescriptor. Allowed values for this property are: "COMMAND", "SEARCH", "STATS", "GEO_STATS", "TIME_STATS", "SORT", "FIELDS", "ADD_FIELDS", "LINK", "LINK_DETAILS", "CLUSTER", "CLUSTER_DETAILS", "CLUSTER_SPLIT", "EVAL", "EXTRACT", "JSON_EXTRACT", "XML_EXTRACT", "EVENT_STATS", "BUCKET", "CLASSIFY", "TOP", "BOTTOM", "HEAD", "TAIL", "FIELD_SUMMARY", "REGEX", "RENAME", "TIME_COMPARE", "WHERE", "CLUSTER_COMPARE", "DELETE", "CREATETABLE", "SEQUENCE", "DELTA", "DISTINCT", "SEARCH_LOOKUP", "LOOKUP", "DEMO_MODE", "MACRO", "MODULE", "MULTI_SEARCH", "HIGHLIGHT", "HIGHLIGHT_ROWS", "HIGHLIGHT_GROUPS", "CREATE_VIEW", "MAP", "NLP", "COMPARE", "ADD_INSIGHTS", "ANOMALY", "DEDUP", "TIME_CLUSTER", "FREQUENT", "RARE", "OUTLIER" :type name: str :param display_query_string: The value to assign to the display_query_string property of this BucketCommandDescriptor. :type display_query_string: str :param internal_query_string: The value to assign to the internal_query_string property of this BucketCommandDescriptor. :type internal_query_string: str :param category: The value to assign to the category property of this BucketCommandDescriptor. :type category: str :param referenced_fields: The value to assign to the referenced_fields property of this BucketCommandDescriptor. :type referenced_fields: list[oci.log_analytics.models.AbstractField] :param declared_fields: The value to assign to the declared_fields property of this BucketCommandDescriptor. :type declared_fields: list[oci.log_analytics.models.AbstractField] :param is_hidden: The value to assign to the is_hidden property of this BucketCommandDescriptor. :type is_hidden: bool :param max_buckets: The value to assign to the max_buckets property of this BucketCommandDescriptor. :type max_buckets: int :param span: The value to assign to the span property of this BucketCommandDescriptor. :type span: float :param ranges: The value to assign to the ranges property of this BucketCommandDescriptor. :type ranges: list[oci.log_analytics.models.BucketRange] :param default_value: The value to assign to the default_value property of this BucketCommandDescriptor. :type default_value: str �strzlist[AbstractField]�bool�int�floatzlist[BucketRange])�nameZdisplay_query_stringZinternal_query_string�categoryZreferenced_fieldsZdeclared_fieldsZ is_hidden�max_buckets�span�ranges� default_valuer ZdisplayQueryStringZinternalQueryStringr ZreferencedFieldsZdeclaredFieldsZisHiddenZ maxBucketsr r ZdefaultValueNZBUCKET) Z swagger_typesZ attribute_map�_nameZ_display_query_stringZ_internal_query_stringZ _categoryZ_referenced_fieldsZ_declared_fieldsZ _is_hidden�_max_buckets�_span�_ranges�_default_value)�self�kwargs� r �V/usr/lib/python3.9/site-packages/oci/log_analytics/models/bucket_command_descriptor.py�__init__ sH 5��z BucketCommandDescriptor.__init__c C s | j S )z� Gets the max_buckets of this BucketCommandDescriptor. number of auto calculated ranges to compute if specified. :return: The max_buckets of this BucketCommandDescriptor. :rtype: int �r �r r r r r o s z#BucketCommandDescriptor.max_bucketsc C s || _ dS )z� Sets the max_buckets of this BucketCommandDescriptor. number of auto calculated ranges to compute if specified. :param max_buckets: The max_buckets of this BucketCommandDescriptor. :type: int Nr )r r r r r r { s c C s | j S )a Gets the span of this BucketCommandDescriptor. Size of each numeric range if specified. Data type should match numeric field data type specified in the query string. :return: The span of this BucketCommandDescriptor. :rtype: float �r r r r r r � s zBucketCommandDescriptor.spanc C s || _ dS )a Sets the span of this BucketCommandDescriptor. Size of each numeric range if specified. Data type should match numeric field data type specified in the query string. :param span: The span of this BucketCommandDescriptor. :type: float Nr )r r r r r r � s c C s | j S )z� Gets the ranges of this BucketCommandDescriptor. List of the specified numeric ranges. :return: The ranges of this BucketCommandDescriptor. :rtype: list[oci.log_analytics.models.BucketRange] �r r r r r r � s zBucketCommandDescriptor.rangesc C s || _ dS )z� Sets the ranges of this BucketCommandDescriptor. List of the specified numeric ranges. :param ranges: The ranges of this BucketCommandDescriptor. :type: list[oci.log_analytics.models.BucketRange] Nr )r r r r r r � s c C s | j S )a Gets the default_value of this BucketCommandDescriptor. Default value to use in place of null if a result does not fit into any of the specified / calculated ranges. :return: The default_value of this BucketCommandDescriptor. :rtype: str �r r r r r r � s z%BucketCommandDescriptor.default_valuec C s || _ dS )a% Sets the default_value of this BucketCommandDescriptor. Default value to use in place of null if a result does not fit into any of the specified / calculated ranges. :param default_value: The default_value of this BucketCommandDescriptor. :type: str Nr! )r r r r r r � s c C s t | �S �N)r r r r r �__repr__� s z BucketCommandDescriptor.__repr__c C s |d u rdS | j |j kS )NF)�__dict__�r �otherr r r �__eq__� s zBucketCommandDescriptor.__eq__c C s | |k S r"