U vi2@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@seZdZdZddddddddddddddddZd d d d d dddddddddddZdRddZeddZej ddZeddZ e j d dZ ed!d"Z e j d#d"Z ed$d%Z e j d&d%Z ed'd(Z e j d)d(Z ed*d+Zej d,d+Zed-d.Zej d/d.Zed0d1Zej d2d1Zed3d4Zej d5d4Zed6d7Zej d8d7Zed9d:Zej d;d:Zedd=Zed?d@Zej dAd@ZedBdCZej dDdCZedEdFZej dGdFZdHdIZdJdKZdLdMZdNdOZdPdQZdS)S CheckBasezNOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. strdatetimeZDashboardQueryZTaskStatusTypez list[Label]ZCheckBaseLinks)idnameorg_idtask_idowner_id created_at updated_atquerystatus descriptionlatest_completedlast_run_statuslast_run_errorlabelslinksrrZorgIDZtaskIDZownerIDZ createdAtZ updatedAtr r rZlatestCompletedZ lastRunStatusZ lastRunErrorrrNcCs"d|_d|_d|_d|_d|_d|_d|_d|_d|_d|_ d|_ d|_ d|_ d|_ d|_d|_|dk rn||_||_||_|dk r||_|dk r||_|dk r||_|dk r||_||_| dk r| |_| dk r| |_| dk r| |_| dk r| |_| dk r| |_|dk r||_|dk r||_dS)z'CheckBase - a model defined in OpenAPI.N)_id_name_org_id_task_id _owner_id _created_at _updated_at_query_status _description_latest_completed_last_run_status_last_run_error_labels_linksZ discriminatorrrrrr r r r r rrrrrr)selfrrrrr r r r r rrrrrrr$R/opt/alt/python38/lib/python3.8/site-packages/influxdb_client/domain/check_base.py__init__DsV  zCheckBase.__init__cCs|jS)zfGet the id of this CheckBase. :return: The id of this CheckBase. :rtype: str rr#r$r$r%rssz CheckBase.idcCs ||_dS)zgSet the id of this CheckBase. :param id: The id of this CheckBase. :type: str Nr')r#rr$r$r%r|scCs|jS)zjGet the name of this CheckBase. :return: The name of this CheckBase. :rtype: str )rr(r$r$r%rszCheckBase.namecCs|dkrtd||_dS)zmSet the name of this CheckBase. :param name: The name of this CheckBase. :type: str Nz,Invalid value for `name`, must not be `None`) ValueErrorr)r#rr$r$r%rscCs|jS)zGet the org_id of this CheckBase. The ID of the organization that owns this check. :return: The org_id of this CheckBase. :rtype: str )rr(r$r$r%rs zCheckBase.org_idcCs|dkrtd||_dS)zSet the org_id of this CheckBase. The ID of the organization that owns this check. :param org_id: The org_id of this CheckBase. :type: str Nz.Invalid value for `org_id`, must not be `None`)r)r)r#rr$r$r%rs cCs|jS)zGet the task_id of this CheckBase. The ID of the task associated with this check. :return: The task_id of this CheckBase. :rtype: str rr(r$r$r%rs zCheckBase.task_idcCs ||_dS)zSet the task_id of this CheckBase. The ID of the task associated with this check. :param task_id: The task_id of this CheckBase. :type: str Nr*)r#rr$r$r%rs cCs|jS)zGet the owner_id of this CheckBase. The ID of creator used to create this check. :return: The owner_id of this CheckBase. :rtype: str rr(r$r$r%r s zCheckBase.owner_idcCs ||_dS)zSet the owner_id of this CheckBase. The ID of creator used to create this check. :param owner_id: The owner_id of this CheckBase. :type: str Nr+)r#r r$r$r%r s cCs|jS)z{Get the created_at of this CheckBase. :return: The created_at of this CheckBase. :rtype: datetime rr(r$r$r%r szCheckBase.created_atcCs ||_dS)zSet the created_at of this CheckBase. :param created_at: The created_at of this CheckBase. :type: datetime Nr,)r#r r$r$r%r scCs|jS)z{Get the updated_at of this CheckBase. :return: The updated_at of this CheckBase. :rtype: datetime rr(r$r$r%r szCheckBase.updated_atcCs ||_dS)zSet the updated_at of this CheckBase. :param updated_at: The updated_at of this CheckBase. :type: datetime Nr-)r#r r$r$r%r scCs|jS)zwGet the query of this CheckBase. :return: The query of this CheckBase. :rtype: DashboardQuery )rr(r$r$r%r szCheckBase.querycCs|dkrtd||_dS)z{Set the query of this CheckBase. :param query: The query of this CheckBase. :type: DashboardQuery Nz-Invalid value for `query`, must not be `None`)r)r)r#r r$r$r%r scCs|jS)zyGet the status of this CheckBase. :return: The status of this CheckBase. :rtype: TaskStatusType rr(r$r$r%r szCheckBase.statuscCs ||_dS)z~Set the status of this CheckBase. :param status: The status of this CheckBase. :type: TaskStatusType Nr.)r#r r$r$r%r scCs|jS)zGet the description of this CheckBase. An optional description of the check. :return: The description of this CheckBase. :rtype: str rr(r$r$r%r's zCheckBase.descriptioncCs ||_dS)zSet the description of this CheckBase. An optional description of the check. :param description: The description of this CheckBase. :type: str Nr/)r#rr$r$r%r2s cCs|jS)a7Get the latest_completed of this CheckBase. A timestamp ([RFC3339 date/time format](https://docs.influxdata.com/influxdb/latest/reference/glossary/#rfc3339-timestamp)) of the latest scheduled and completed run. :return: The latest_completed of this CheckBase. :rtype: datetime rr(r$r$r%r=s zCheckBase.latest_completedcCs ||_dS)aFSet the latest_completed of this CheckBase. A timestamp ([RFC3339 date/time format](https://docs.influxdata.com/influxdb/latest/reference/glossary/#rfc3339-timestamp)) of the latest scheduled and completed run. :param latest_completed: The latest_completed of this CheckBase. :type: datetime Nr0)r#rr$r$r%rHs cCs|jS)zGet the last_run_status of this CheckBase. :return: The last_run_status of this CheckBase. :rtype: str rr(r$r$r%rSszCheckBase.last_run_statuscCs ||_dS)zSet the last_run_status of this CheckBase. :param last_run_status: The last_run_status of this CheckBase. :type: str Nr1)r#rr$r$r%r\scCs|jS)z~Get the last_run_error of this CheckBase. :return: The last_run_error of this CheckBase. :rtype: str r r(r$r$r%reszCheckBase.last_run_errorcCs ||_dS)zSet the last_run_error of this CheckBase. :param last_run_error: The last_run_error of this CheckBase. :type: str Nr2)r#rr$r$r%rnscCs|jS)zvGet the labels of this CheckBase. :return: The labels of this CheckBase. :rtype: list[Label] r!r(r$r$r%rwszCheckBase.labelscCs ||_dS)z{Set the labels of this CheckBase. :param labels: The labels of this CheckBase. :type: list[Label] Nr3)r#rr$r$r%rscCs|jS)zwGet the links of this CheckBase. :return: The links of this CheckBase. :rtype: CheckBaseLinks r"r(r$r$r%rszCheckBase.linkscCs ||_dS)z{Set the links of this CheckBase. :param links: The links of this CheckBase. :type: CheckBaseLinks Nr4)r#rr$r$r%rscCsi}|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_dicthasattrr5)xr$r$r%z#CheckBase.to_dict..r5cSs&t|ddr"|d|dfS|S)Nr5rr6)itemr$r$r%r9s ) openapi_typesitemsgetattr isinstancelistmapr7r5dict)r#resultattr_valuer$r$r%r5s"       zCheckBase.to_dictcCst|S)z.Return the string representation of the model.)pprintpformatr5r(r$r$r%to_strszCheckBase.to_strcCs|S)zFor `print` and `pprint`.)rJr(r$r$r%__repr__szCheckBase.__repr__cCst|tsdS|j|jkS)z&Return true if both objects are equal.F)r@r__dict__r#otherr$r$r%__eq__s zCheckBase.__eq__cCs ||k S)z*Return true if both objects are not equal.r$rMr$r$r%__ne__szCheckBase.__ne__)NNNNNNNNNNNNNNN)__name__ __module__ __qualname____doc__r=Z attribute_mapr&propertyrsetterrrrr r r r r rrrrrrr5rJrKrOrPr$r$r$r%rs /                              r)rTrHreobjectrr$r$r$r%s