U wi @ s( d Z ddlZddlZG dd deZdS )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 e Zd ZdZddddZddddZdd d Zedd Zej d d Zedd Z e j dd Z edd Zej dd Zdd Zdd Z dd Zdd Zdd ZdS )PatchBucketRequestzNOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. strzlist[PatchRetentionRule])namedescriptionretention_rulesr r ZretentionRulesNc C sF d| _ d| _d| _d| _|dk r&|| _|dk r4|| _|dk rB|| _dS )z0PatchBucketRequest - a model defined in OpenAPI.N)_name_description_retention_rulesZ discriminatorr r r )selfr r r r \/opt/alt/python38/lib/python3.8/site-packages/influxdb_client/domain/patch_bucket_request.py__init__, s zPatchBucketRequest.__init__c C s | j S )zGet the name of this PatchBucketRequest. The name of the bucket. :return: The name of this PatchBucketRequest. :rtype: str r r r r r r : s zPatchBucketRequest.namec C s || _ dS )zSet the name of this PatchBucketRequest. The name of the bucket. :param name: The name of this PatchBucketRequest. :type: str Nr )r r r r r r E s c C s | j S )zGet the description of this PatchBucketRequest. A description of the bucket. :return: The description of this PatchBucketRequest. :rtype: str r r r r r r P s zPatchBucketRequest.descriptionc C s || _ dS )zSet the description of this PatchBucketRequest. A description of the bucket. :param description: The description of this PatchBucketRequest. :type: str Nr )r r r r r r [ s c C s | j S )zGet the retention_rules of this PatchBucketRequest. Updates to rules to expire or retain data. No rules means no updates. :return: The retention_rules of this PatchBucketRequest. :rtype: list[PatchRetentionRule] r r r r r r f s z"PatchBucketRequest.retention_rulesc C s || _ dS )a Set the retention_rules of this PatchBucketRequest. Updates to rules to expire or retain data. No rules means no updates. :param retention_rules: The retention_rules of this PatchBucketRequest. :type: list[PatchRetentionRule] Nr )r r r r r r q s c C s i }| j D ]z\}}t| |}t|trBttdd |||<