U wih @ 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 ZdZddddddZddddd dZd&ddZed d Zej dd Zedd Z e j dd Z edd Zej dd Zedd Zej dd Zedd Z e j dd Z dd Zdd Zd d! Zd"d# Zd$d% Zd S )'TaskCreateRequestzNOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. strZTaskStatusType)org_idorgstatusfluxdescriptionZorgIDr r r r Nc C sf d| _ d| _d| _d| _d| _d| _|dk r2|| _|dk r@|| _|dk rN|| _|| _ |dk rb|| _ dS )z/TaskCreateRequest - a model defined in OpenAPI.N)_org_id_org_status_flux_descriptionZ discriminatorr r r r r )selfr r r r r r [/opt/alt/python38/lib/python3.8/site-packages/influxdb_client/domain/task_create_request.py__init__0 s zTaskCreateRequest.__init__c C s | j S )zGet the org_id of this TaskCreateRequest. The ID of the organization that owns this Task. :return: The org_id of this TaskCreateRequest. :rtype: str r r r r r r C s zTaskCreateRequest.org_idc C s || _ dS )zSet the org_id of this TaskCreateRequest. The ID of the organization that owns this Task. :param org_id: The org_id of this TaskCreateRequest. :type: str Nr )r r r r r r N s c C s | j S )zGet the org of this TaskCreateRequest. The name of the organization that owns this Task. :return: The org of this TaskCreateRequest. :rtype: str r r r r r r Y s zTaskCreateRequest.orgc C s || _ dS )zSet the org of this TaskCreateRequest. The name of the organization that owns this Task. :param org: The org of this TaskCreateRequest. :type: str Nr )r r r r r r d s c C s | j S )zGet the status of this TaskCreateRequest. :return: The status of this TaskCreateRequest. :rtype: TaskStatusType r r r r r r o s zTaskCreateRequest.statusc C s || _ dS )zSet the status of this TaskCreateRequest. :param status: The status of this TaskCreateRequest. :type: TaskStatusType Nr )r r r r r r x s c C s | j S )zGet the flux of this TaskCreateRequest. The Flux script to run for this task. :return: The flux of this TaskCreateRequest. :rtype: str )r r r r r r s zTaskCreateRequest.fluxc C s |dkrt d|| _dS )zSet the flux of this TaskCreateRequest. The Flux script to run for this task. :param flux: The flux of this TaskCreateRequest. :type: str Nz,Invalid value for `flux`, must not be `None`) ValueErrorr )r r r r r r s c C s | j S )zGet the description of this TaskCreateRequest. An optional description of the task. :return: The description of this TaskCreateRequest. :rtype: str r r r r r r s zTaskCreateRequest.descriptionc C s || _ dS )zSet the description of this TaskCreateRequest. An optional description of the task. :param description: The description of this TaskCreateRequest. :type: str Nr )r r r r r r s c C s i }| j D ]z\}}t| |}t|trBttdd |||<