U wii" @ 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 ZdZdddddddZdddd d ddZd,ddZedd Zej dd Zedd Z e j dd Z edd Zej dd Zedd Zej dd Zedd Z e j dd Z edd Zej d!d Zd"d# Zd$d% Zd&d' Zd(d) Zd*d+ ZdS )-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_idnamedescriptionrpretention_rulesschema_typeZorgIDr r r ZretentionRulesZ schemaTypeN0c C sr d| _ 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 discriminatorr r r r r r )selfr r r r r r r [/opt/alt/python38/lib/python3.8/site-packages/influxdb_client/domain/post_bucket_request.py__init__2 s" zPostBucketRequest.__init__c C s | j S )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 r r r r r G s zPostBucketRequest.org_idc C s |dkrt d|| _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 )r r r r r r R s c C s | j S )zGet the name of this PostBucketRequest. The bucket name. :return: The name of this PostBucketRequest. :rtype: str )r r r r r r _ s zPostBucketRequest.namec C s |dkrt d|| _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`)r r )r r r r r r j s c C s | j S )zGet the description of this PostBucketRequest. A description of the bucket. :return: The description of this PostBucketRequest. :rtype: str r r r r r r w s zPostBucketRequest.descriptionc C s || _ dS )zSet the description of this PostBucketRequest. A description of the bucket. :param description: The description of this PostBucketRequest. :type: str Nr )r r r r r r s c C s | j S )a Get 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 r r r r r r s zPostBucketRequest.rpc C s || _ dS )a Set 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 )r r r r r r s c C s | j S )a Get 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] r r r r r r s z!PostBucketRequest.retention_rulesc C s || _ dS )a Set 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 )r r r r r r s c C s | j S )zGet the schema_type of this PostBucketRequest. :return: The schema_type of this PostBucketRequest. :rtype: SchemaType r r r r r r s zPostBucketRequest.schema_typec C s || _ dS )zSet the schema_type of this PostBucketRequest. :param schema_type: The schema_type of this PostBucketRequest. :type: SchemaType Nr )r r r r r r s c C s i }| j D ]z\}}t| |}t|trBttdd |||<