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@seZdZdZddddZddddZd d d Zed dZej ddZeddZ e j ddZ eddZ e j ddZ ddZ ddZ ddZddZddZd S)!BucketRetentionRuleszNOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. strint)type every_secondsshard_group_duration_secondsrZ everySecondsZshardGroupDurationSecondsexpire'NcCs>d|_d|_d|_d|_|dk r&||_||_|dk r:||_dS)z2BucketRetentionRules - a model defined in OpenAPI.N)_type_every_seconds_shard_group_duration_secondsZ discriminatorrrr)selfrrrr^/opt/alt/python38/lib/python3.8/site-packages/influxdb_client/domain/bucket_retention_rules.py__init__,szBucketRetentionRules.__init__cCs|jS)zGet the type of this BucketRetentionRules. :return: The type of this BucketRetentionRules. :rtype: str r r rrrr9szBucketRetentionRules.typecCs ||_dS)zSet the type of this BucketRetentionRules. :param type: The type of this BucketRetentionRules. :type: str Nr)r rrrrrBscCs|jS)a/Get the every_seconds of this BucketRetentionRules. The duration in seconds for how long data will be kept in the database. The default duration is 2592000 (30 days). 0 represents infinite retention. :return: The every_seconds of this BucketRetentionRules. :rtype: int )r rrrrrKs z"BucketRetentionRules.every_secondscCs2|dkrtd|dk r(|dkr(td||_dS)a;Set the every_seconds of this BucketRetentionRules. The duration in seconds for how long data will be kept in the database. The default duration is 2592000 (30 days). 0 represents infinite retention. :param every_seconds: The every_seconds of this BucketRetentionRules. :type: int Nz5Invalid value for `every_seconds`, must not be `None`rzOInvalid value for `every_seconds`, must be a value greater than or equal to `0`) ValueErrorr )r rrrrrVs cCs|jS)aGet the shard_group_duration_seconds of this BucketRetentionRules. The shard group duration. The duration or interval (in seconds) that each shard group covers. #### InfluxDB Cloud - Does not use `shardGroupDurationsSeconds`. #### InfluxDB OSS - Default value depends on the [bucket retention period](https://docs.influxdata.com/influxdb/latest/reference/internals/shards/#shard-group-duration). :return: The shard_group_duration_seconds of this BucketRetentionRules. :rtype: int r rrrrres z1BucketRetentionRules.shard_group_duration_secondscCs ||_dS)a!Set the shard_group_duration_seconds of this BucketRetentionRules. The shard group duration. The duration or interval (in seconds) that each shard group covers. #### InfluxDB Cloud - Does not use `shardGroupDurationsSeconds`. #### InfluxDB OSS - Default value depends on the [bucket retention period](https://docs.influxdata.com/influxdb/latest/reference/internals/shards/#shard-group-duration). :param shard_group_duration_seconds: The shard_group_duration_seconds of this BucketRetentionRules. :type: int Nr)r rrrrrps 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)xrrrz.BucketRetentionRules.to_dict..rcSs&t|ddr"|d|dfS|S)Nrrr)itemrrrrs ) openapi_typesitemsgetattr isinstancelistmaprrdict)r resultattr_valuerrrr{s"       zBucketRetentionRules.to_dictcCst|S)z.Return the string representation of the model.)pprintpformatrrrrrto_strszBucketRetentionRules.to_strcCs|S)zFor `print` and `pprint`.)r*rrrr__repr__szBucketRetentionRules.__repr__cCst|tsdS|j|jkS)z&Return true if both objects are equal.F)r r__dict__r otherrrr__eq__s zBucketRetentionRules.__eq__cCs ||k S)z*Return true if both objects are not equal.rr-rrr__ne__szBucketRetentionRules.__ne__)rr N)__name__ __module__ __qualname____doc__rZ attribute_maprpropertyrsetterrrrr*r+r/r0rrrrrs6       r)r4r(reobjectrrrrrs