U vâ’i5ã@s(dZddlZddlZGdd„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@seZdZdZdddddddœZddddd d dœZd*d d „Zedd„ƒZej dd„ƒZedd„ƒZ e j dd„ƒZ edd„ƒZ e j dd„ƒZ edd„ƒZ e j dd„ƒZ edd„ƒZ e j dd„ƒZ edd„ƒZej dd„ƒZd d!„Zd"d#„Zd$d%„Zd&d'„Zd(d)„Zd S)+Ú DBRPCreatez‹NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. ÚstrÚbool)ÚorgÚorg_idÚ bucket_idÚdatabaseÚretention_policyÚdefaultrZorgIDZbucketIDrr r NcCsjd|_d|_d|_d|_d|_d|_d|_|dk r8||_|dk rF||_||_ ||_ ||_ |dk rf||_ dS)z(DBRPCreate - a model defined in OpenAPI.N) Ú_orgÚ_org_idÚ _bucket_idÚ _databaseÚ_retention_policyÚ_defaultZ discriminatorrrrrr r )Úselfrrrrr r ©rúS/opt/alt/python38/lib/python3.8/site-packages/influxdb_client/domain/dbrp_create.pyÚ__init__2s zDBRPCreate.__init__cCs|jS)a Get the org of this DBRPCreate. An organization name. Identifies the [organization](https://docs.influxdata.com/influxdb/latest/reference/glossary/#organization) that owns the mapping. :return: The org of this DBRPCreate. :rtype: str ©r ©rrrrrFs zDBRPCreate.orgcCs ||_dS)aSet the org of this DBRPCreate. An organization name. Identifies the [organization](https://docs.influxdata.com/influxdb/latest/reference/glossary/#organization) that owns the mapping. :param org: The org of this DBRPCreate. :type: str Nr)rrrrrrQs cCs|jS)aGet the org_id of this DBRPCreate. An organization ID. Identifies the [organization](https://docs.influxdata.com/influxdb/latest/reference/glossary/#organization) that owns the mapping. :return: The org_id of this DBRPCreate. :rtype: str ©r rrrrr\s zDBRPCreate.org_idcCs ||_dS)aSet the org_id of this DBRPCreate. An organization ID. Identifies the [organization](https://docs.influxdata.com/influxdb/latest/reference/glossary/#organization) that owns the mapping. :param org_id: The org_id of this DBRPCreate. :type: str Nr)rrrrrrgs cCs|jS)zÊGet the bucket_id of this DBRPCreate. A bucket ID. Identifies the bucket used as the target for the translation. :return: The bucket_id of this DBRPCreate. :rtype: str )r rrrrrrs zDBRPCreate.bucket_idcCs|dkrtdƒ‚||_dS)zÒSet the bucket_id of this DBRPCreate. A bucket ID. Identifies the bucket used as the target for the translation. :param bucket_id: The bucket_id of this DBRPCreate. :type: str Nz1Invalid value for `bucket_id`, must not be `None`)Ú ValueErrorr )rrrrrr}s cCs|jS)z³Get the database of this DBRPCreate. A database name. Identifies the InfluxDB v1 database. :return: The database of this DBRPCreate. :rtype: str )rrrrrrŠs zDBRPCreate.databasecCs|dkrtdƒ‚||_dS)zºSet the database of this DBRPCreate. A database name. Identifies the InfluxDB v1 database. :param database: The database of this DBRPCreate. :type: str Nz0Invalid value for `database`, must not be `None`)rr)rrrrrr•s cCs|jS)a/Get the retention_policy of this DBRPCreate. A [retention policy](https://docs.influxdata.com/influxdb/v1.8/concepts/glossary/#retention-policy-rp) name. Identifies the InfluxDB v1 retention policy mapping. :return: The retention_policy of this DBRPCreate. :rtype: str )rrrrrr ¢s zDBRPCreate.retention_policycCs|dkrtdƒ‚||_dS)a>Set the retention_policy of this DBRPCreate. A [retention policy](https://docs.influxdata.com/influxdb/v1.8/concepts/glossary/#retention-policy-rp) name. Identifies the InfluxDB v1 retention policy mapping. :param retention_policy: The retention_policy of this DBRPCreate. :type: str Nz8Invalid value for `retention_policy`, must not be `None`)rr)rr rrrr ­s cCs|jS)aGet the default of this DBRPCreate. Set to `true` to use this DBRP mapping as the default retention policy for the database (specified by the `database` property's value). :return: The default of this DBRPCreate. :rtype: bool ©rrrrrr ºs zDBRPCreate.defaultcCs ||_dS)a Set the default of this DBRPCreate. Set to `true` to use this DBRP mapping as the default retention policy for the database (specified by the `database` property's value). :param default: The default of this DBRPCreate. :type: bool Nr)rr rrrr Ås cCsŽi}|j ¡D]z\}}t||ƒ}t|tƒrBttdd„|ƒƒ||<qt|dƒrZ| ¡||<qt|tƒr€ttdd„| ¡ƒƒ||<q|||<q|S)z&Return the model properties as a dict.cSst|dƒr| ¡S|S)NÚto_dict©Úhasattrr)ÚxrrrÚØóz$DBRPCreate.to_dict..rcSs&t|ddƒr"|d|d ¡fS|S)Nérrr)Úitemrrrrßs ÿ) Ú openapi_typesÚitemsÚgetattrÚ isinstanceÚlistÚmaprrÚdict)rÚresultÚattrÚ_ÚvaluerrrrÐs"  þ   ý  zDBRPCreate.to_dictcCst | ¡¡S)z.Return the string representation of the model.)ÚpprintÚpformatrrrrrÚto_strèszDBRPCreate.to_strcCs| ¡S)zFor `print` and `pprint`.)r/rrrrÚ__repr__ìszDBRPCreate.__repr__cCst|tƒsdS|j|jkS)z&Return true if both objects are equal.F)r%rÚ__dict__©rÚotherrrrÚ__eq__ðs zDBRPCreate.__eq__cCs ||k S)z*Return true if both objects are not equal.rr2rrrÚ__ne__÷szDBRPCreate.__ne__)NNNNNN)Ú__name__Ú __module__Ú __qualname__Ú__doc__r"Z attribute_maprÚpropertyrÚsetterrrrr r rr/r0r4r5rrrrrsZú ú             r)r9r-ÚreÚobjectrrrrrÚs