U vi}@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@seZdZdZdddZdddZddd Zed d Zej d d Zed dZ e j ddZ ddZ ddZ ddZ ddZddZdS) DBRPUpdatezNOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. strbool)retention_policydefaultrrNcCs2d|_d|_d|_|dk r ||_|dk r.||_dS)z(DBRPUpdate - a model defined in OpenAPI.N)_retention_policy_defaultZ discriminatorrr)selfrrr S/opt/alt/python38/lib/python3.8/site-packages/influxdb_client/domain/dbrp_update.py__init__*szDBRPUpdate.__init__cCs|jS)a/Get the retention_policy of this DBRPUpdate. 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 DBRPUpdate. :rtype: str rr r r r r5s zDBRPUpdate.retention_policycCs ||_dS)a>Set the retention_policy of this DBRPUpdate. 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 DBRPUpdate. :type: str Nr )r rr r r r@s cCs|jS)a3Get the default of this DBRPUpdate. Set to `true` to use this DBRP mapping as the default retention policy for the database (specified by the `database` property's value). To remove the default mapping, set to `false`. :return: The default of this DBRPUpdate. :rtype: bool rrr r r rKs zDBRPUpdate.defaultcCs ||_dS)a9Set the default of this DBRPUpdate. Set to `true` to use this DBRP mapping as the default retention policy for the database (specified by the `database` property's value). To remove the default mapping, set to `false`. :param default: The default of this DBRPUpdate. :type: bool Nr)r rr r r rVs 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)xr r r iz$DBRPUpdate.to_dict..rcSs&t|ddr"|d|dfS|S)Nrrr)itemr r r rps ) openapi_typesitemsgetattr isinstancelistmaprrdict)r resultattr_valuer r r ras"       zDBRPUpdate.to_dictcCst|S)z.Return the string representation of the model.)pprintpformatrrr r r to_stryszDBRPUpdate.to_strcCs|S)zFor `print` and `pprint`.)r%rr r r __repr__}szDBRPUpdate.__repr__cCst|tsdS|j|jkS)z&Return true if both objects are equal.F)rr__dict__r otherr r r __eq__s zDBRPUpdate.__eq__cCs ||k S)z*Return true if both objects are not equal.r r(r r r __ne__szDBRPUpdate.__ne__)NN)__name__ __module__ __qualname____doc__rZ attribute_mapr propertyrsetterrrr%r&r*r+r r r r rs*     r)r/r#reobjectrr r r r s