GIF89;aGIF89;aGIF89;a
Team Anon Force
https://t.me/Professor6T9x
Professor6T9 Web SheLL
Linux das102.truehost.cloud 4.18.0-553.8.1.lve.el8.x86_64 #1 SMP Thu Jul 4 16:24:39 UTC 2024 x86_64
LiteSpeed
156.232.88.2
/
opt
/
alt
/
python38
/
lib
/
python3.8
/
site-packages
/
influxdb_client
/
domain
/
__pycache__
[ HOME ]
Exec
Submit
File Name : task.cpython-38.pyc
U ܒi�D � @ s( d Z ddlZddlZG dd� de�ZdS )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 ZdZdddddddddddddddddddd�Zdd d ddd dddddddddddddd�Zdadd�Zedd� �Zej d d� �Zed!d"� �Z e j d#d"� �Z ed$d%� �Zej d&d%� �Zed'd(� �Zej d)d(� �Zed*d+� �Z e j d,d+� �Z ed-d.� �Zej d/d.� �Zed0d1� �Zej d2d1� �Zed3d4� �Zej d5d4� �Zed6d7� �Zej d8d7� �Zed9d:� �Zej d;d:� �Zed<d=� �Zej d>d=� �Zed?d@� �Zej dAd@� �ZedBdC� �Zej dDdC� �ZedEdF� �Zej dGdF� �ZedHdI� �Zej dJdI� �ZedKdL� �Zej dMdL� �ZedNdO� �Zej dPdO� �ZedQdR� �Zej dSdR� �ZedTdU� �Zej dVdU� �ZdWdX� ZdYdZ� Zd[d\� Zd]d^� Zd_d`� Z dS )b�Taskz�NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. �strZTaskStatusTypezlist[Label]�datetimeZ TaskLinks)�id�org_id�org�name�owner_id�description�status�labels�authorization_id�flux�every�cron�offset�latest_completed�last_run_status�last_run_error� created_at� updated_at�linksr ZorgIDr r ZownerIDr r r ZauthorizationIDr r r r ZlatestCompletedZ lastRunStatusZlastRunErrorZ createdAtZ updatedAtr Nc C sv d| _ d| _d| _d| _d| _d| _d| _d| _d| _d| _ d| _ d| _d| _d| _ d| _d| _d| _d| _d| _d| _|| _|| _|dk r�|| _|| _|dk r�|| _|dk r�|| _|dk r�|| _|dk r�|| _| dk r�| | _| | _|dk r�|| _|dk �r|| _| dk �r| | _ |dk �r"|| _!|dk �r2|| _"|dk �rB|| _#|dk �rR|| _$|dk �rb|| _%|dk �rr|| _&dS )z"Task - a model defined in OpenAPI.N)'�_id�_org_id�_org�_name� _owner_id�_description�_status�_labels�_authorization_id�_flux�_every�_cron�_offset�_latest_completed�_last_run_status�_last_run_error�_created_at�_updated_at�_linksZ discriminatorr r r r r r r r r r r r r r r r r r r )�selfr r r r r r r r r r r r r r r r r r r � r, �L/opt/alt/python38/lib/python3.8/site-packages/influxdb_client/domain/task.py�__init__L sl z Task.__init__c C s | j S )z\Get the id of this Task. :return: The id of this Task. :rtype: str )r �r+ r, r, r- r � s zTask.idc C s |dkrt d��|| _dS )z]Set the id of this Task. :param id: The id of this Task. :type: str Nz*Invalid value for `id`, must not be `None`)� ValueErrorr )r+ r r, r, r- r � s c C s | j S )a Get the org_id of this Task. An [organization](https://docs.influxdata.com/influxdb/latest/reference/glossary/#organization) ID. Specifies the organization that owns the task. :return: The org_id of this Task. :rtype: str )r r/ r, r, r- r � s zTask.org_idc C s |dkrt d��|| _dS )a Set the org_id of this Task. An [organization](https://docs.influxdata.com/influxdb/latest/reference/glossary/#organization) ID. Specifies the organization that owns the task. :param org_id: The org_id of this Task. :type: str Nz.Invalid value for `org_id`, must not be `None`)r0 r )r+ r r, r, r- r � s c C s | j S )z�Get the org of this Task. An [organization](https://docs.influxdata.com/influxdb/latest/reference/glossary/#organization) name. Specifies the organization that owns the task. :return: The org of this Task. :rtype: str �r r/ r, r, r- r � s zTask.orgc C s || _ dS )z�Set the org of this Task. An [organization](https://docs.influxdata.com/influxdb/latest/reference/glossary/#organization) name. Specifies the organization that owns the task. :param org: The org of this Task. :type: str Nr1 )r+ r r, r, r- r � s c C s | j S )zGet the name of this Task. The name of the task. :return: The name of this Task. :rtype: str )r r/ r, r, r- r � s z Task.namec C s |dkrt d��|| _dS )z�Set the name of this Task. The name of the task. :param name: The name of this Task. :type: str Nz,Invalid value for `name`, must not be `None`)r0 r )r+ r r, r, r- r � s c C s | j S )aL Get the owner_id of this Task. A [user](https://docs.influxdata.com/influxdb/latest/reference/glossary/#user) ID. Specifies the owner of the task. To find a user ID, you can use the [`GET /api/v2/users` endpoint](#operation/GetUsers) to list users. :return: The owner_id of this Task. :rtype: str �r r/ r, r, r- r � s z Task.owner_idc C s || _ dS )aS Set the owner_id of this Task. A [user](https://docs.influxdata.com/influxdb/latest/reference/glossary/#user) ID. Specifies the owner of the task. To find a user ID, you can use the [`GET /api/v2/users` endpoint](#operation/GetUsers) to list users. :param owner_id: The owner_id of this Task. :type: str Nr2 )r+ r r, r, r- r � s c C s | j S )z�Get the description of this Task. A description of the task. :return: The description of this Task. :rtype: str �r r/ r, r, r- r � s zTask.descriptionc C s || _ dS )z�Set the description of this Task. A description of the task. :param description: The description of this Task. :type: str Nr3 )r+ r r, r, r- r s c C s | j S )zoGet the status of this Task. :return: The status of this Task. :rtype: TaskStatusType �r r/ r, r, r- r s zTask.statusc C s || _ dS )ztSet the status of this Task. :param status: The status of this Task. :type: TaskStatusType Nr4 )r+ r r, r, r- r s c C s | j S )zlGet the labels of this Task. :return: The labels of this Task. :rtype: list[Label] �r r/ r, r, r- r s zTask.labelsc C s || _ dS )zqSet the labels of this Task. :param labels: The labels of this Task. :type: list[Label] Nr5 )r+ r r, r, r- r ' s c C s | j S )am Get the authorization_id of this Task. An authorization ID. Specifies the authorization used when the task communicates with the query engine. To find an authorization ID, use the [`GET /api/v2/authorizations` endpoint](#operation/GetAuthorizations) to list authorizations. :return: The authorization_id of this Task. :rtype: str �r r/ r, r, r- r 0 s zTask.authorization_idc C s || _ dS )a| Set the authorization_id of this Task. An authorization ID. Specifies the authorization used when the task communicates with the query engine. To find an authorization ID, use the [`GET /api/v2/authorizations` endpoint](#operation/GetAuthorizations) to list authorizations. :param authorization_id: The authorization_id of this Task. :type: str Nr6 )r+ r r, r, r- r ; s c C s | j S )z�Get the flux of this Task. The Flux script that the task executes. :return: The flux of this Task. :rtype: str )r! r/ r, r, r- r F s z Task.fluxc C s |dkrt d��|| _dS )z�Set the flux of this Task. The Flux script that the task executes. :param flux: The flux of this Task. :type: str Nz,Invalid value for `flux`, must not be `None`)r0 r! )r+ r r, r, r- r Q s c C s | j S )aK Get the every of this Task. The interval ([duration literal](https://docs.influxdata.com/influxdb/latest/reference/glossary/#rfc3339-timestamp)) at which the task runs. `every` also determines when the task first runs, depending on the specified time. :return: The every of this Task. :rtype: str �r"