U wi @ 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 ZdZddddZddddZdd d Zedd Zej d d Zedd Z e j dd Z edd Zej dd Zdd Zdd Z dd Zdd Zdd ZdS )RestoredBucketMappingszNOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. strzlist[BucketShardMapping])idnameshard_mappingsr r Z shardMappingsNc C s. d| _ d| _d| _d| _|| _|| _|| _dS )z4RestoredBucketMappings - a model defined in OpenAPI.N)_id_name_shard_mappingsZ discriminatorr r r )selfr r r r `/opt/alt/python38/lib/python3.8/site-packages/influxdb_client/domain/restored_bucket_mappings.py__init__, s zRestoredBucketMappings.__init__c C s | j S )zGet the id of this RestoredBucketMappings. New ID of the restored bucket :return: The id of this RestoredBucketMappings. :rtype: str )r r r r r r 7 s zRestoredBucketMappings.idc C s |dkrt d|| _dS )zSet the id of this RestoredBucketMappings. New ID of the restored bucket :param id: The id of this RestoredBucketMappings. :type: str Nz*Invalid value for `id`, must not be `None`) ValueErrorr )r r r r r r B s c C s | j S )zGet the name of this RestoredBucketMappings. :return: The name of this RestoredBucketMappings. :rtype: str )r r r r r r O s zRestoredBucketMappings.namec C s |dkrt d|| _dS )zSet the name of this RestoredBucketMappings. :param name: The name of this RestoredBucketMappings. :type: str Nz,Invalid value for `name`, must not be `None`)r r )r r r r r r X s c C s | j S )zGet the shard_mappings of this RestoredBucketMappings. :return: The shard_mappings of this RestoredBucketMappings. :rtype: list[BucketShardMapping] )r r r r r r c s z%RestoredBucketMappings.shard_mappingsc C s |dkrt d|| _dS )zSet the shard_mappings of this RestoredBucketMappings. :param shard_mappings: The shard_mappings of this RestoredBucketMappings. :type: list[BucketShardMapping] Nz6Invalid value for `shard_mappings`, must not be `None`)r r )r r r r r r l s c C s i }| j D ]z\}}t| |}t|trBttdd |||<