U vâ’i5 ã @ s( d Z ddlZddlZG dd„ 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 e Zd ZdZdddddddœZddddd d dœZd*dd „Zedd„ ƒZej dd„ ƒZedd„ ƒZ e j dd„ ƒZ edd„ ƒZej dd„ ƒZedd„ ƒZej dd„ ƒZedd„ ƒZ e j dd„ ƒZ edd„ ƒZej dd„ ƒZd d!„ Zd"d#„ Zd$d%„ Zd&d'„ Zd(d)„ ZdS )+Ú DBRPCreatez‹NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. ÚstrÚbool)ÚorgÚorg_idÚ bucket_idÚdatabaseÚretention_policyÚdefaultr ZorgIDZbucketIDr r r Nc C sj d| _ d| _d| _d| _d| _d| _d| _|dk r8|| _|dk rF|| _|| _ || _ || _|dk rf|| _dS )z(DBRPCreate - a model defined in OpenAPI.N) Ú_orgÚ_org_idÚ _bucket_idÚ _databaseÚ_retention_policyÚ_defaultZ discriminatorr r r r r r )Úselfr r r r r r © r úS/opt/alt/python38/lib/python3.8/site-packages/influxdb_client/domain/dbrp_create.pyÚ__init__2 s zDBRPCreate.__init__c C s | j S )a Get the org of this DBRPCreate. An organization name. Identifies the [organization](https://docs.influxdata.com/influxdb/latest/reference/glossary/#organization) that owns the mapping. :return: The org of this DBRPCreate. :rtype: str ©r ©r r r r r F s zDBRPCreate.orgc C s || _ dS )a Set the org of this DBRPCreate. An organization name. Identifies the [organization](https://docs.influxdata.com/influxdb/latest/reference/glossary/#organization) that owns the mapping. :param org: The org of this DBRPCreate. :type: str Nr )r r r r r r Q s c C s | j S )a Get the org_id of this DBRPCreate. An organization ID. Identifies the [organization](https://docs.influxdata.com/influxdb/latest/reference/glossary/#organization) that owns the mapping. :return: The org_id of this DBRPCreate. :rtype: str ©r r r r r r \ s zDBRPCreate.org_idc C s || _ dS )a Set the org_id of this DBRPCreate. An organization ID. Identifies the [organization](https://docs.influxdata.com/influxdb/latest/reference/glossary/#organization) that owns the mapping. :param org_id: The org_id of this DBRPCreate. :type: str Nr )r r r r r r g s c C s | j S )zÊGet the bucket_id of this DBRPCreate. A bucket ID. Identifies the bucket used as the target for the translation. :return: The bucket_id of this DBRPCreate. :rtype: str )r r r r r r r s zDBRPCreate.bucket_idc C s |dkrt dƒ‚|| _dS )zÒSet the bucket_id of this DBRPCreate. A bucket ID. Identifies the bucket used as the target for the translation. :param bucket_id: The bucket_id of this DBRPCreate. :type: str Nz1Invalid value for `bucket_id`, must not be `None`)Ú ValueErrorr )r r r r r r } s c C s | j S )z³Get the database of this DBRPCreate. A database name. Identifies the InfluxDB v1 database. :return: The database of this DBRPCreate. :rtype: str )r r r r r r Š s zDBRPCreate.databasec C s |dkrt dƒ‚|| _dS )zºSet the database of this DBRPCreate. A database name. Identifies the InfluxDB v1 database. :param database: The database of this DBRPCreate. :type: str Nz0Invalid value for `database`, must not be `None`)r r )r r r r r r • s c C s | j S )a/ Get the retention_policy of this DBRPCreate. A [retention policy](https://docs.influxdata.com/influxdb/v1.8/concepts/glossary/#retention-policy-rp) name. Identifies the InfluxDB v1 retention policy mapping. :return: The retention_policy of this DBRPCreate. :rtype: str )r r r r r r ¢ s zDBRPCreate.retention_policyc C s |dkrt dƒ‚|| _dS )a> Set the retention_policy of this DBRPCreate. A [retention policy](https://docs.influxdata.com/influxdb/v1.8/concepts/glossary/#retention-policy-rp) name. Identifies the InfluxDB v1 retention policy mapping. :param retention_policy: The retention_policy of this DBRPCreate. :type: str Nz8Invalid value for `retention_policy`, must not be `None`)r r )r r r r r r s c C s | j S )a Get the default of this DBRPCreate. Set to `true` to use this DBRP mapping as the default retention policy for the database (specified by the `database` property's value). :return: The default of this DBRPCreate. :rtype: bool ©r r r r r r º s zDBRPCreate.defaultc C s || _ dS )a Set the default of this DBRPCreate. Set to `true` to use this DBRP mapping as the default retention policy for the database (specified by the `database` property's value). :param default: The default of this DBRPCreate. :type: bool Nr )r r r r r r Å s c C sŽ i }| j ¡ D ]z\}}t| |ƒ}t|tƒrBttdd„ |ƒƒ||<