U vi @ s( d Z ddlZddlZG dd deZdS )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 @ s e Zd ZdZddddZddddZdd d Zedd Zej d d Zedd Z e j dd Z edd Zej dd Zdd Zdd Z dd Zdd Zdd ZdS )DurationzNOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. strint)type magnitudeunitr r r Nc C sF d| _ d| _d| _d| _|dk r&|| _|dk r4|| _|dk rB|| _dS )z&Duration - a model defined in OpenAPI.N)_type _magnitude_unitZ discriminatorr r r )selfr r r r P/opt/alt/python38/lib/python3.8/site-packages/influxdb_client/domain/duration.py__init__, s zDuration.__init__c C s | j S )zGet the type of this Duration. Type of AST node :return: The type of this Duration. :rtype: str r r r r r r : s z Duration.typec C s || _ dS )zSet the type of this Duration. Type of AST node :param type: The type of this Duration. :type: str Nr )r r r r r r E s c C s | j S )zrGet the magnitude of this Duration. :return: The magnitude of this Duration. :rtype: int r r r r r r P s zDuration.magnitudec C s || _ dS )zzSet the magnitude of this Duration. :param magnitude: The magnitude of this Duration. :type: int Nr )r r r r r r Y s c C s | j S )zhGet the unit of this Duration. :return: The unit of this Duration. :rtype: str r r r r r r b s z Duration.unitc C s || _ dS )zkSet the unit of this Duration. :param unit: The unit of this Duration. :type: str Nr )r r r r r r k s c C s i }| j D ]z\}}t| |}t|trBttdd |||<