U wi @ 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 ZdZdddddddddd Zdddd d ddd dd Zd7ddZedd Zej dd Zedd Z e j dd Z edd Zej dd Zedd Zej dd Zedd Z e j d d Z ed!d" Zej d#d" Zed$d% Zej d&d% Zed'd( Zej d)d( Zed*d+ Zej d,d+ Zd-d. Zd/d0 Zd1d2 Zd3d4 Zd5d6 ZdS )8ScriptzNOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. strZScriptLanguagedatetime) idnamedescriptionorg_idscriptlanguageurl created_at updated_atr r r ZorgIDr r r Z createdAtZ updatedAtNc C s d| _ d| _d| _d| _d| _d| _d| _d| _d| _d| _ |dk rJ|| _ || _|dk r^|| _|| _ || _|dk rx|| _|dk r|| _|dk r|| _| dk r| | _dS )z$Script - a model defined in OpenAPI.N)_id_name_description_org_id_script _language_url_created_at_updated_atZ discriminatorr r r r r r r r r ) selfr r r r r r r r r r N/opt/alt/python38/lib/python3.8/site-packages/influxdb_client/domain/script.py__init__8 s2 zScript.__init__c C s | j S )z`Get the id of this Script. :return: The id of this Script. :rtype: str r r r r r r U s z Script.idc C s || _ dS )zaSet the id of this Script. :param id: The id of this Script. :type: str Nr )r r r r r r ^ s c C s | j S )zdGet the name of this Script. :return: The name of this Script. :rtype: str )r r r r r r g s zScript.namec C s |dkrt d|| _dS )zgSet the name of this Script. :param name: The name of this Script. :type: str Nz,Invalid value for `name`, must not be `None`) ValueErrorr )r r r r r r p s c C s | j S )zrGet the description of this Script. :return: The description of this Script. :rtype: str r r r r r r { s zScript.descriptionc C s || _ dS )z|Set the description of this Script. :param description: The description of this Script. :type: str Nr )r r r r r r s c C s | j S )zhGet the org_id of this Script. :return: The org_id of this Script. :rtype: str )r r r r r r s z Script.org_idc C s |dkrt d|| _dS )zmSet the org_id of this Script. :param org_id: The org_id of this Script. :type: str Nz.Invalid value for `org_id`, must not be `None`)r r )r r r r r r s c C s | j S )zGet the script of this Script. The script to execute. :return: The script of this Script. :rtype: str )r r r r r r s z Script.scriptc C s |dkrt d|| _dS )zSet the script of this Script. The script to execute. :param script: The script of this Script. :type: str Nz.Invalid value for `script`, must not be `None`)r r )r r r r r r s c C s | j S )zwGet the language of this Script. :return: The language of this Script. :rtype: ScriptLanguage r r r r r r s zScript.languagec C s || _ dS )z~Set the language of this Script. :param language: The language of this Script. :type: ScriptLanguage Nr )r r r r r r s c C s | j S )zGet the url of this Script. The invocation endpoint address. :return: The url of this Script. :rtype: str r r r r r r s z Script.urlc C s || _ dS )zSet the url of this Script. The invocation endpoint address. :param url: The url of this Script. :type: str Nr )r r r r r r s c C s | j S )zuGet the created_at of this Script. :return: The created_at of this Script. :rtype: datetime r r r r r r s zScript.created_atc C s || _ dS )z~Set the created_at of this Script. :param created_at: The created_at of this Script. :type: datetime Nr! )r r r r r r s c C s | j S )zuGet the updated_at of this Script. :return: The updated_at of this Script. :rtype: datetime r r r r r r s zScript.updated_atc C s || _ dS )z~Set the updated_at of this Script. :param updated_at: The updated_at of this Script. :type: datetime Nr" )r r r r r r s c C s i }| j D ]z\}}t| |}t|trBttdd |||<