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@seZdZdZddddZddddZdd d Zed d Zej d d ZeddZ e j ddZ eddZ e j ddZ ddZ ddZ ddZddZddZdS)PatchBucketRequestzNOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. strzlist[PatchRetentionRule])name descriptionretention_rulesrrZretentionRulesNcCsFd|_d|_d|_d|_|dk r&||_|dk r4||_|dk rB||_dS)z0PatchBucketRequest - a model defined in OpenAPI.N)_name _description_retention_rulesZ discriminatorrrr)selfrrrr \/opt/alt/python38/lib/python3.8/site-packages/influxdb_client/domain/patch_bucket_request.py__init__,szPatchBucketRequest.__init__cCs|jS)zGet the name of this PatchBucketRequest. The name of the bucket. :return: The name of this PatchBucketRequest. :rtype: str rr r r r r:s zPatchBucketRequest.namecCs ||_dS)zSet the name of this PatchBucketRequest. The name of the bucket. :param name: The name of this PatchBucketRequest. :type: str Nr)r rr r r rEs cCs|jS)zGet the description of this PatchBucketRequest. A description of the bucket. :return: The description of this PatchBucketRequest. :rtype: str rrr r r rPs zPatchBucketRequest.descriptioncCs ||_dS)zSet the description of this PatchBucketRequest. A description of the bucket. :param description: The description of this PatchBucketRequest. :type: str Nr)r rr r r r[s cCs|jS)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 rr r r rfs z"PatchBucketRequest.retention_rulescCs ||_dS)aSet 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 rr r r rqs 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 z,PatchBucketRequest.to_dict..rcSs&t|ddr"|d|dfS|S)Nrrr)itemr r r rs ) openapi_typesitemsgetattr isinstancelistmaprrdict)r resultattr_valuer r r r|s"       zPatchBucketRequest.to_dictcCst|S)z.Return the string representation of the model.)pprintpformatrrr r r to_strszPatchBucketRequest.to_strcCs|S)zFor `print` and `pprint`.)r'rr r r __repr__szPatchBucketRequest.__repr__cCst|tsdS|j|jkS)z&Return true if both objects are equal.F)rr__dict__r otherr r r __eq__s zPatchBucketRequest.__eq__cCs ||k S)z*Return true if both objects are not equal.r r*r r r __ne__szPatchBucketRequest.__ne__)NNN)__name__ __module__ __qualname____doc__rZ attribute_mapr propertyrsetterrrrr'r(r,r-r r r r rs6       r)r1r%reobjectrr r r r s