U wi<@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@seZdZdZdddddZdddd dZd#d d Zed dZej ddZeddZ e j ddZ eddZ e j ddZ eddZ e j ddZ ddZ ddZddZdd Zd!d"Zd S)$StackzNOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. strdatetimezlist[StackEvents])idorg_id created_ateventsrZorgIDZ createdAtrNcCsZd|_d|_d|_d|_d|_|dk r,||_|dk r:||_|dk rH||_|dk rV||_dS)z#Stack - a model defined in OpenAPI.N) _id_org_id _created_at_eventsZ discriminatorrrrr)selfrrrrrM/opt/alt/python38/lib/python3.8/site-packages/influxdb_client/domain/stack.py__init__.szStack.__init__cCs|jS)z^Get the id of this Stack. :return: The id of this Stack. :rtype: str r r rrrr?szStack.idcCs ||_dS)z_Set the id of this Stack. :param id: The id of this Stack. :type: str Nr)r rrrrrHscCs|jS)zfGet the org_id of this Stack. :return: The org_id of this Stack. :rtype: str r rrrrrQsz Stack.org_idcCs ||_dS)zkSet the org_id of this Stack. :param org_id: The org_id of this Stack. :type: str Nr)r rrrrrZscCs|jS)zsGet the created_at of this Stack. :return: The created_at of this Stack. :rtype: datetime r rrrrrcszStack.created_atcCs ||_dS)z|Set the created_at of this Stack. :param created_at: The created_at of this Stack. :type: datetime Nr)r rrrrrlscCs|jS)ztGet the events of this Stack. :return: The events of this Stack. :rtype: list[StackEvents] r rrrrrusz Stack.eventscCs ||_dS)zySet the events of this Stack. :param events: The events of this Stack. :type: list[StackEvents] Nr)r rrrrr~scCsi}|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)xrrrzStack.to_dict..rcSs&t|ddr"|d|dfS|S)Nrrr)itemrrrrs ) openapi_typesitemsgetattr isinstancelistmaprrdict)r resultattr_valuerrrrs"       z Stack.to_dictcCst|S)z.Return the string representation of the model.)pprintpformatrrrrrto_strsz Stack.to_strcCs|S)zFor `print` and `pprint`.)r+rrrr__repr__szStack.__repr__cCst|tsdS|j|jkS)z&Return true if both objects are equal.F)r!r__dict__r otherrrr__eq__s z Stack.__eq__cCs ||k S)z*Return true if both objects are not equal.rr.rrr__ne__sz Stack.__ne__)NNNN)__name__ __module__ __qualname____doc__rZ attribute_maprpropertyrsetterrrrrr+r,r0r1rrrrrsB         r)r5r)reobjectrrrrrs