U vâ’id$ã@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 @s>eZdZdZdddddddddœZdddd d d d d dœZd3dd„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 ed d!„ƒZej d"d!„ƒZed#d$„ƒZej d%d$„ƒZed&d'„ƒZej d(d'„ƒZd)d*„Zd+d,„Zd-d.„Zd/d0„Zd1d2„ZdS)4ÚDBRPz‹NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. ÚstrÚboolZLinks)ÚidÚorg_idÚ bucket_idÚdatabaseÚretention_policyÚdefaultÚvirtualÚlinksrZorgIDZbucketIDrr r r r Nc Cszd|_d|_d|_d|_d|_d|_d|_d|_d|_||_ ||_ ||_ ||_ ||_ ||_|dk rh||_|dk rv||_dS)z"DBRP - a model defined in OpenAPI.N)Ú_idÚ_org_idÚ _bucket_idÚ _databaseÚ_retention_policyÚ_defaultÚ_virtualÚ_linksZ discriminatorrrrrr r r r ) Úselfrrrrr r r r ©rúL/opt/alt/python38/lib/python3.8/site-packages/influxdb_client/domain/dbrp.pyÚ__init__6s&z DBRP.__init__cCs|jS)zËGet the id of this DBRP. The resource ID that InfluxDB uses to uniquely identify the database retention policy (DBRP) mapping. :return: The id of this DBRP. :rtype: str )r ©rrrrrMs zDBRP.idcCs|dkrtdƒ‚||_dS)zÌSet the id of this DBRP. The resource ID that InfluxDB uses to uniquely identify the database retention policy (DBRP) mapping. :param id: The id of this DBRP. :type: str Nz*Invalid value for `id`, must not be `None`)Ú ValueErrorr )rrrrrrXs cCs|jS)aGet the org_id of this DBRP. 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 DBRP. :rtype: str )rrrrrres z DBRP.org_idcCs|dkrtdƒ‚||_dS)a Set the org_id of this DBRP. 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 DBRP. :type: str Nz.Invalid value for `org_id`, must not be `None`)rr)rrrrrrps cCs|jS)z¾Get the bucket_id of this DBRP. A bucket ID. Identifies the bucket used as the target for the translation. :return: The bucket_id of this DBRP. :rtype: str )rrrrrr}s zDBRP.bucket_idcCs|dkrtdƒ‚||_dS)zÆSet the bucket_id of this DBRP. A bucket ID. Identifies the bucket used as the target for the translation. :param bucket_id: The bucket_id of this DBRP. :type: str Nz1Invalid value for `bucket_id`, must not be `None`)rr)rrrrrrˆs cCs|jS)z§Get the database of this DBRP. A database name. Identifies the InfluxDB v1 database. :return: The database of this DBRP. :rtype: str )rrrrrr•s z DBRP.databasecCs|dkrtdƒ‚||_dS)z®Set the database of this DBRP. A database name. Identifies the InfluxDB v1 database. :param database: The database of this DBRP. :type: str Nz0Invalid value for `database`, must not be `None`)rr)rrrrrr s cCs|jS)a#Get the retention_policy of this DBRP. 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 DBRP. :rtype: str )rrrrrr ­s zDBRP.retention_policycCs|dkrtdƒ‚||_dS)a2Set the retention_policy of this DBRP. 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 DBRP. :type: str Nz8Invalid value for `retention_policy`, must not be `None`)rr)rr rrrr ¸s cCs|jS)zõGet the default of this DBRP. If set to `true`, this DBRP mapping is the default retention policy for the database (specified by the `database` property's value). :return: The default of this DBRP. :rtype: bool )rrrrrr Ås z DBRP.defaultcCs|dkrtdƒ‚||_dS)zûSet the default of this DBRP. If set to `true`, this DBRP mapping is the default retention policy for the database (specified by the `database` property's value). :param default: The default of this DBRP. :type: bool Nz/Invalid value for `default`, must not be `None`)rr)rr rrrr Ðs cCs|jS)z×Get the virtual of this DBRP. Indicates an autogenerated, virtual mapping based on the bucket name. Currently only available in OSS. :return: The virtual of this DBRP. :rtype: bool ©rrrrrr Ýs z DBRP.virtualcCs ||_dS)zÝSet the virtual of this DBRP. Indicates an autogenerated, virtual mapping based on the bucket name. Currently only available in OSS. :param virtual: The virtual of this DBRP. :type: bool Nr)rr rrrr ès cCs|jS)zdGet the links of this DBRP. :return: The links of this DBRP. :rtype: Links ©rrrrrr ósz DBRP.linkscCs ||_dS)zhSet the links of this DBRP. :param links: The links of this DBRP. :type: Links Nr)rr rrrr üscCsŽ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Ú ózDBRP.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Ú_Úvaluerrrrs"  þ   ý  z DBRP.to_dictcCst | ¡¡S)z.Return the string representation of the model.)ÚpprintÚpformatrrrrrÚto_strsz DBRP.to_strcCs| ¡S)zFor `print` and `pprint`.)r2rrrrÚ__repr__!sz DBRP.__repr__cCst|tƒsdS|j|jkS)z&Return true if both objects are equal.F)r(rÚ__dict__©rÚotherrrrÚ__eq__%s z DBRP.__eq__cCs ||k S)z*Return true if both objects are not equal.rr5rrrÚ__ne__,sz DBRP.__ne__)NNNNNNNN)Ú__name__Ú __module__Ú __qualname__Ú__doc__r%Z attribute_maprÚpropertyrÚsetterrrrr r r r rr2r3r7r8rrrrrsrø ø                 r)r<r0ÚreÚobjectrrrrrÚs