U wih@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@seZdZdZddddddZddddd dZd&d d Zed dZej ddZeddZ e j ddZ eddZ e j ddZ eddZ e j ddZ eddZ e j ddZ ddZddZd 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_idorgstatusflux descriptionZorgIDrrrrNcCsfd|_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 discriminatorrrrrr)selfrrrrrr[/opt/alt/python38/lib/python3.8/site-packages/influxdb_client/domain/task_create_request.py__init__0szTaskCreateRequest.__init__cCs|jS)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 rrrrrCs zTaskCreateRequest.org_idcCs ||_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)rrrrrrNs cCs|jS)zGet the org of this TaskCreateRequest. The name of the organization that owns this Task. :return: The org of this TaskCreateRequest. :rtype: str r rrrrrYs zTaskCreateRequest.orgcCs ||_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)rrrrrrds cCs|jS)zGet the status of this TaskCreateRequest. :return: The status of this TaskCreateRequest. :rtype: TaskStatusType r rrrrroszTaskCreateRequest.statuscCs ||_dS)zSet the status of this TaskCreateRequest. :param status: The status of this TaskCreateRequest. :type: TaskStatusType Nr)rrrrrrxscCs|jS)zGet the flux of this TaskCreateRequest. The Flux script to run for this task. :return: The flux of this TaskCreateRequest. :rtype: str )r rrrrrs zTaskCreateRequest.fluxcCs|dkrtd||_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 )rrrrrrs cCs|jS)zGet the description of this TaskCreateRequest. An optional description of the task. :return: The description of this TaskCreateRequest. :rtype: str r rrrrrs zTaskCreateRequest.descriptioncCs ||_dS)zSet the description of this TaskCreateRequest. An optional description of the task. :param description: The description of this TaskCreateRequest. :type: str Nr)rrrrrrs 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)xrrrz+TaskCreateRequest.to_dict..rcSs&t|ddr"|d|dfS|S)Nrrr)itemrrrrs ) openapi_typesitemsgetattr isinstancelistmaprrdict)rresultattr_valuerrrrs"       zTaskCreateRequest.to_dictcCst|S)z.Return the string representation of the model.)pprintpformatrrrrrto_strszTaskCreateRequest.to_strcCs|S)zFor `print` and `pprint`.)r-rrrr__repr__szTaskCreateRequest.__repr__cCst|tsdS|j|jkS)z&Return true if both objects are equal.F)r#r__dict__rotherrrr__eq__s zTaskCreateRequest.__eq__cCs ||k S)z*Return true if both objects are not equal.rr0rrr__ne__szTaskCreateRequest.__ne__)NNNNN)__name__ __module__ __qualname____doc__r Z attribute_maprpropertyrsetterrrrrrr-r.r2r3rrrrrsN            r)r7r+reobjectrrrrrs