U wii"@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@seZdZdZdddddddZdddd d d dZd,ddZeddZej ddZeddZ e j ddZ eddZ e j ddZ eddZ e j ddZ eddZ e j ddZ edd Zej d!d Zd"d#Zd$d%Zd&d'Zd(d)Zd*d+Zd S)-PostBucketRequestzNOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. strzlist[BucketRetentionRules]Z SchemaType)org_idname descriptionrpretention_rules schema_typeZorgIDrrrZretentionRulesZ schemaTypeN0cCsrd|_d|_d|_d|_d|_d|_d|_||_||_|dk rD||_ |dk rR||_ |dk r`||_ |dk rn||_ dS)z/PostBucketRequest - a model defined in OpenAPI.N) _org_id_name _description_rp_retention_rules _schema_typeZ discriminatorrrrrrr )selfrrrrrr r[/opt/alt/python38/lib/python3.8/site-packages/influxdb_client/domain/post_bucket_request.py__init__2s"zPostBucketRequest.__init__cCs|jS)zGet the org_id of this PostBucketRequest. The organization ID. Specifies the organization that owns the bucket. :return: The org_id of this PostBucketRequest. :rtype: str )r rrrrrGs zPostBucketRequest.org_idcCs|dkrtd||_dS)zSet the org_id of this PostBucketRequest. The organization ID. Specifies the organization that owns the bucket. :param org_id: The org_id of this PostBucketRequest. :type: str Nz.Invalid value for `org_id`, must not be `None`) ValueErrorr )rrrrrrRs cCs|jS)zGet the name of this PostBucketRequest. The bucket name. :return: The name of this PostBucketRequest. :rtype: str )r rrrrr_s zPostBucketRequest.namecCs|dkrtd||_dS)zSet the name of this PostBucketRequest. The bucket name. :param name: The name of this PostBucketRequest. :type: str Nz,Invalid value for `name`, must not be `None`)rr )rrrrrrjs cCs|jS)zGet the description of this PostBucketRequest. A description of the bucket. :return: The description of this PostBucketRequest. :rtype: str r rrrrrws zPostBucketRequest.descriptioncCs ||_dS)zSet the description of this PostBucketRequest. A description of the bucket. :param description: The description of this PostBucketRequest. :type: str Nr)rrrrrrs cCs|jS)aGet the rp of this PostBucketRequest. The retention policy for the bucket. For InfluxDB 1.x, specifies the duration of time that each data point in the retention policy persists. If you need compatibility with InfluxDB 1.x, specify a value for the `rp` property; otherwise, see the `retentionRules` property. [Retention policy](https://docs.influxdata.com/influxdb/v1.8/concepts/glossary/#retention-policy-rp) is an InfluxDB 1.x concept. The InfluxDB 2.x and Cloud equivalent is [retention period](https://docs.influxdata.com/influxdb/latest/reference/glossary/#retention-period). The InfluxDB `/api/v2` API uses `RetentionRules` to configure the retention period. :return: The rp of this PostBucketRequest. :rtype: str rrrrrrs zPostBucketRequest.rpcCs ||_dS)aSet the rp of this PostBucketRequest. The retention policy for the bucket. For InfluxDB 1.x, specifies the duration of time that each data point in the retention policy persists. If you need compatibility with InfluxDB 1.x, specify a value for the `rp` property; otherwise, see the `retentionRules` property. [Retention policy](https://docs.influxdata.com/influxdb/v1.8/concepts/glossary/#retention-policy-rp) is an InfluxDB 1.x concept. The InfluxDB 2.x and Cloud equivalent is [retention period](https://docs.influxdata.com/influxdb/latest/reference/glossary/#retention-period). The InfluxDB `/api/v2` API uses `RetentionRules` to configure the retention period. :param rp: The rp of this PostBucketRequest. :type: str Nr)rrrrrrs cCs|jS)aGet the retention_rules of this PostBucketRequest. 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 PostBucketRequest. :rtype: list[BucketRetentionRules] rrrrrrs z!PostBucketRequest.retention_rulescCs ||_dS)aSet the retention_rules of this PostBucketRequest. 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 PostBucketRequest. :type: list[BucketRetentionRules] Nr)rrrrrrs cCs|jS)zGet the schema_type of this PostBucketRequest. :return: The schema_type of this PostBucketRequest. :rtype: SchemaType rrrrrr szPostBucketRequest.schema_typecCs ||_dS)zSet the schema_type of this PostBucketRequest. :param schema_type: The schema_type of this PostBucketRequest. :type: SchemaType Nr)rr rrrr scCsi}|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+PostBucketRequest.to_dict..rcSs&t|ddr"|d|dfS|S)Nrrr)itemrrrrs ) openapi_typesitemsgetattr isinstancelistmaprrdict)rresultattr_valuerrrrs"       zPostBucketRequest.to_dictcCst|S)z.Return the string representation of the model.)pprintpformatrrrrrto_strszPostBucketRequest.to_strcCs|S)zFor `print` and `pprint`.)r0rrrr__repr__szPostBucketRequest.__repr__cCst|tsdS|j|jkS)z&Return true if both objects are equal.F)r&r__dict__rotherrrr__eq__s zPostBucketRequest.__eq__cCs ||k S)z*Return true if both objects are not equal.rr3rrr__ne__szPostBucketRequest.__ne__)NNNr NN)__name__ __module__ __qualname____doc__r#Z attribute_maprpropertyrsetterrrrrr rr0r1r5r6rrrrrsZ              r)r:r.reobjectrrrrrs