U vâ’i)ã@s(dZddlZddlZGdd„deƒZdS)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¶eZdZdZdddddddddddddœ Zd d d d d ddddddddœ ZdGdd„Zedd„ƒZej dd„ƒZedd„ƒZ e j dd„ƒZ edd „ƒZ e j d!d „ƒZ ed"d#„ƒZ e j d$d#„ƒZ ed%d&„ƒZ e j d'd&„ƒZ ed(d)„ƒZej d*d)„ƒZed+d,„ƒZej d-d,„ƒZed.d/„ƒZej d0d/„ƒZed1d2„ƒZej d3d2„ƒZed4d5„ƒZej d6d5„ƒZed7d8„ƒZej d9d8„ƒZed:d;„ƒZej d„Zd?d@„ZdAdB„ZdCdD„ZdEdF„ZdS)HÚBucketz‹NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. Z BucketLinksÚstrZ SchemaTypeÚdatetimezlist[BucketRetentionRules]z list[Label]) ÚlinksÚidÚtypeÚnameÚ descriptionÚorg_idÚrpÚ schema_typeÚ created_atÚ updated_atÚretention_rulesÚlabelsrrrrr ZorgIDr Z schemaTypeZ createdAtZ updatedAtZretentionRulesrNÚuserc Csêd|_d|_d|_d|_d|_d|_d|_d|_d|_d|_ d|_ d|_ d|_ |dk r\||_ |dk rj||_|dk rx||_||_|dk rŒ||_|dk rš||_|dk r¨||_|dk r¶||_| dk rÄ| |_| dk rÒ| |_| |_| dk ræ| |_dS)z$Bucket - a model defined in OpenAPI.N)Ú_linksÚ_idÚ_typeÚ_nameÚ _descriptionÚ_org_idÚ_rpÚ _schema_typeÚ _created_atÚ _updated_atÚ_retention_rulesÚ_labelsZ discriminatorrrrrr r r r r rrr) Úselfrrrrr r r r r rrr©rúN/opt/alt/python38/lib/python3.8/site-packages/influxdb_client/domain/bucket.pyÚ__init__>sFzBucket.__init__cCs|jS)znGet the links of this Bucket. :return: The links of this Bucket. :rtype: BucketLinks ©r©rrrr resz Bucket.linkscCs ||_dS)zrSet the links of this Bucket. :param links: The links of this Bucket. :type: BucketLinks Nr")rrrrr rnscCs|jS)z`Get the id of this Bucket. :return: The id of this Bucket. :rtype: str ©rr#rrr rwsz Bucket.idcCs ||_dS)zaSet the id of this Bucket. :param id: The id of this Bucket. :type: str Nr$)rrrrr r€scCs|jS)zdGet the type of this Bucket. :return: The type of this Bucket. :rtype: str ©rr#rrr r‰sz Bucket.typecCs ||_dS)zgSet the type of this Bucket. :param type: The type of this Bucket. :type: str Nr%)rrrrr r’scCs|jS)zdGet the name of this Bucket. :return: The name of this Bucket. :rtype: str )rr#rrr r›sz Bucket.namecCs|dkrtdƒ‚||_dS)zgSet the name of this Bucket. :param name: The name of this Bucket. :type: str Nz,Invalid value for `name`, must not be `None`)Ú ValueErrorr)rrrrr r¤scCs|jS)zrGet the description of this Bucket. :return: The description of this Bucket. :rtype: str ©rr#rrr r ¯szBucket.descriptioncCs ||_dS)z|Set the description of this Bucket. :param description: The description of this Bucket. :type: str Nr')rr rrr r ¸scCs|jS)zhGet the org_id of this Bucket. :return: The org_id of this Bucket. :rtype: str ©rr#rrr r Ász Bucket.org_idcCs ||_dS)zmSet the org_id of this Bucket. :param org_id: The org_id of this Bucket. :type: str Nr()rr rrr r ÊscCs|jS)z`Get the rp of this Bucket. :return: The rp of this Bucket. :rtype: str ©rr#rrr r Ósz Bucket.rpcCs ||_dS)zaSet the rp of this Bucket. :param rp: The rp of this Bucket. :type: str Nr))rr rrr r ÜscCs|jS)zyGet the schema_type of this Bucket. :return: The schema_type of this Bucket. :rtype: SchemaType ©rr#rrr r åszBucket.schema_typecCs ||_dS)zƒSet the schema_type of this Bucket. :param schema_type: The schema_type of this Bucket. :type: SchemaType Nr*)rr rrr r îscCs|jS)zuGet the created_at of this Bucket. :return: The created_at of this Bucket. :rtype: datetime ©rr#rrr r ÷szBucket.created_atcCs ||_dS)z~Set the created_at of this Bucket. :param created_at: The created_at of this Bucket. :type: datetime Nr+)rr rrr r scCs|jS)zuGet the updated_at of this Bucket. :return: The updated_at of this Bucket. :rtype: datetime ©rr#rrr r szBucket.updated_atcCs ||_dS)z~Set the updated_at of this Bucket. :param updated_at: The updated_at of this Bucket. :type: datetime Nr,)rrrrr rscCs|jS)aÙGet the retention_rules of this Bucket. Retention rules to expire or retain data. The InfluxDB `/api/v2` API uses `RetentionRules` to configure the [retention period](https://docs.influxdata.com/influxdb/latest/reference/glossary/#retention-period). #### InfluxDB Cloud - `retentionRules` is required. #### InfluxDB OSS - `retentionRules` isn't required. :return: The retention_rules of this Bucket. :rtype: list[BucketRetentionRules] )rr#rrr rs zBucket.retention_rulescCs|dkrtdƒ‚||_dS)açSet the retention_rules of this Bucket. Retention rules to expire or retain data. The InfluxDB `/api/v2` API uses `RetentionRules` to configure the [retention period](https://docs.influxdata.com/influxdb/latest/reference/glossary/#retention-period). #### InfluxDB Cloud - `retentionRules` is required. #### InfluxDB OSS - `retentionRules` isn't required. :param retention_rules: The retention_rules of this Bucket. :type: list[BucketRetentionRules] Nz7Invalid value for `retention_rules`, must not be `None`)r&r)rrrrr r&s cCs|jS)zpGet the labels of this Bucket. :return: The labels of this Bucket. :rtype: list[Label] ©rr#rrr r3sz Bucket.labelscCs ||_dS)zuSet the labels of this Bucket. :param labels: The labels of this Bucket. :type: list[Label] Nr-)rrrrr r<scCsŽi}|j ¡D]z\}}t||ƒ}t|tƒrBttdd„|ƒƒ||<qt|dƒrZ| ¡||<qt|tƒr€ttdd„| ¡ƒƒ||<q|||<q|S)z&Return the model properties as a dict.cSst|dƒr| ¡S|S)NÚto_dict©Úhasattrr.)Úxrrr ÚMóz Bucket.to_dict..r.cSs&t|ddƒr"|d|d ¡fS|S)Nér.rr/)Úitemrrr r2Ts ÿ) Ú openapi_typesÚitemsÚgetattrÚ isinstanceÚlistÚmapr0r.Údict)rÚresultÚattrÚ_Úvaluerrr r.Es"  þ   ý  zBucket.to_dictcCst | ¡¡S)z.Return the string representation of the model.)ÚpprintÚpformatr.r#rrr Úto_str]sz Bucket.to_strcCs| ¡S)zFor `print` and `pprint`.)rCr#rrr Ú__repr__aszBucket.__repr__cCst|tƒsdS|j|jkS)z&Return true if both objects are equal.F)r9rÚ__dict__©rÚotherrrr Ú__eq__es z Bucket.__eq__cCs ||k S)z*Return true if both objects are not equal.rrFrrr Ú__ne__lsz Bucket.__ne__) NNrNNNNNNNNN)Ú__name__Ú __module__Ú __qualname__Ú__doc__r6Z attribute_mapr!ÚpropertyrÚsetterrrrr r r r r rrrr.rCrDrHrIrrrr rs¢ôô '                        r)rMrAÚreÚobjectrrrrr Ús