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@seZdZdZddddZddddZd d d Zed dZej ddZeddZ e j ddZ eddZ e j ddZ ddZ ddZ ddZddZddZd S)!PatchRetentionRulezNOTE: 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)z0PatchRetentionRule - 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/patch_retention_rule.py__init__,szPatchRetentionRule.__init__cCs|jS)z|Get the type of this PatchRetentionRule. :return: The type of this PatchRetentionRule. :rtype: str r r rrrr9szPatchRetentionRule.typecCs ||_dS)zSet the type of this PatchRetentionRule. :param type: The type of this PatchRetentionRule. :type: str Nr)r rrrrrBscCs|jS)aGet the every_seconds of this PatchRetentionRule. The number of seconds to keep data. Default duration is `2592000` (30 days). `0` represents infinite retention. :return: The every_seconds of this PatchRetentionRule. :rtype: int )r rrrrrKs z PatchRetentionRule.every_secondscCs2|dkrtd|dk r(|dkr(td||_dS)aSet the every_seconds of this PatchRetentionRule. The number of seconds to keep data. Default duration is `2592000` (30 days). `0` represents infinite retention. :param every_seconds: The every_seconds of this PatchRetentionRule. :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 PatchRetentionRule. The [shard group duration](https://docs.influxdata.com/influxdb/latest/reference/glossary/#shard). The number of seconds that each shard group covers. #### InfluxDB Cloud - Doesn't use `shardGroupDurationsSeconds`. #### InfluxDB OSS - Default value depends on the [bucket retention period](https://docs.influxdata.com/influxdb/latest/reference/internals/shards/#shard-group-duration). #### Related guides - InfluxDB [shards and shard groups](https://docs.influxdata.com/influxdb/latest/reference/internals/shards/) :return: The shard_group_duration_seconds of this PatchRetentionRule. :rtype: int r rrrrres z/PatchRetentionRule.shard_group_duration_secondscCs ||_dS)aSet the shard_group_duration_seconds of this PatchRetentionRule. The [shard group duration](https://docs.influxdata.com/influxdb/latest/reference/glossary/#shard). The number of seconds that each shard group covers. #### InfluxDB Cloud - Doesn't use `shardGroupDurationsSeconds`. #### InfluxDB OSS - Default value depends on the [bucket retention period](https://docs.influxdata.com/influxdb/latest/reference/internals/shards/#shard-group-duration). #### Related guides - InfluxDB [shards and shard groups](https://docs.influxdata.com/influxdb/latest/reference/internals/shards/) :param shard_group_duration_seconds: The shard_group_duration_seconds of this PatchRetentionRule. :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,PatchRetentionRule.to_dict..rcSs&t|ddr"|d|dfS|S)Nrrr)itemrrrrs ) openapi_typesitemsgetattr isinstancelistmaprrdict)r resultattr_valuerrrr{s"       zPatchRetentionRule.to_dictcCst|S)z.Return the string representation of the model.)pprintpformatrrrrrto_strszPatchRetentionRule.to_strcCs|S)zFor `print` and `pprint`.)r*rrrr__repr__szPatchRetentionRule.__repr__cCst|tsdS|j|jkS)z&Return true if both objects are equal.F)r r__dict__r otherrrr__eq__s zPatchRetentionRule.__eq__cCs ||k S)z*Return true if both objects are not equal.rr-rrr__ne__szPatchRetentionRule.__ne__)rr N)__name__ __module__ __qualname____doc__rZ attribute_maprpropertyrsetterrrrr*r+r/r0rrrrrs6       r)r4r(reobjectrrrrrs