U vi?@s(dZddlZddlZGdddeZdS)a InfluxDB OSS API Service. The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech Nc@seZdZdZdddddZdddddZd"d d Zed d Zej dd ZeddZ e j ddZ eddZ e j ddZ eddZ e j ddZ ddZ ddZddZddZd d!Zd S)#FieldzNOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. strz list[Field])valuetypealiasargsrrrrNcCsZd|_d|_d|_d|_d|_|dk r,||_|dk r:||_|dk rH||_|dk rV||_dS)z#Field - a model defined in OpenAPI.N) _value_type_alias_argsZ discriminatorrrrr)selfrrrrr M/opt/alt/python38/lib/python3.8/site-packages/influxdb_client/domain/field.py__init__.szField.__init__cCs|jS)zGet the value of this Field. value is the value of the field. Meaning of the value is implied by the `type` key :return: The value of this Field. :rtype: str rr r r rr?s z Field.valuecCs ||_dS)zSet the value of this Field. value is the value of the field. Meaning of the value is implied by the `type` key :param value: The value of this Field. :type: str Nr)r rr r rrJs cCs|jS)zGet the type of this Field. `type` describes the field type. `func` is a function. `field` is a field reference. :return: The type of this Field. :rtype: str r rr r rrUs z Field.typecCs ||_dS)zSet the type of this Field. `type` describes the field type. `func` is a function. `field` is a field reference. :param type: The type of this Field. :type: str Nr)r rr r rr`s cCs|jS)zGet the alias of this Field. Alias overrides the field name in the returned response. Applies only if type is `func` :return: The alias of this Field. :rtype: str r rr r rrks z Field.aliascCs ||_dS)zSet the alias of this Field. Alias overrides the field name in the returned response. Applies only if type is `func` :param alias: The alias of this Field. :type: str Nr)r rr r rrvs cCs|jS)zGet the args of this Field. Args are the arguments to the function :return: The args of this Field. :rtype: list[Field] r rr r rrs z Field.argscCs ||_dS)zSet the args of this Field. Args are the arguments to the function :param args: The args of this Field. :type: list[Field] Nr)r rr r rrs cCsi}|jD]z\}}t||}t|trBttdd|||<qt|drZ|||<qt|trttdd|||<q|||<q|S)z&Return the model properties as a dict.cSst|dr|S|S)Nto_dicthasattrr)xr r rzField.to_dict..rcSs&t|ddr"|d|dfS|S)Nrrr)itemr r rrs ) openapi_typesitemsgetattr isinstancelistmaprrdict)r resultattr_rr r rrs"       z Field.to_dictcCst|S)z.Return the string representation of the model.)pprintpformatrrr r rto_strsz Field.to_strcCs|S)zFor `print` and `pprint`.)r)rr r r__repr__szField.__repr__cCst|tsdS|j|jkS)z&Return true if both objects are equal.F)r r__dict__r otherr r r__eq__s z Field.__eq__cCs ||k S)z*Return true if both objects are not equal.r r,r r r__ne__sz Field.__ne__)NNNN)__name__ __module__ __qualname____doc__rZ attribute_maprpropertyrsetterrrrrr)r*r.r/r r r rrsB         r)r3r'reobjectrr r r rs