U wi@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@seZdZdZddddZddddZdd d Zed d Zej d d ZeddZ e j ddZ eddZ e j ddZ ddZ ddZ ddZddZddZdS)RestoredBucketMappingszNOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. strzlist[BucketShardMapping])idnameshard_mappingsrrZ shardMappingsNcCs.d|_d|_d|_d|_||_||_||_dS)z4RestoredBucketMappings - a model defined in OpenAPI.N)_id_name_shard_mappingsZ discriminatorrrr)selfrrrr `/opt/alt/python38/lib/python3.8/site-packages/influxdb_client/domain/restored_bucket_mappings.py__init__,szRestoredBucketMappings.__init__cCs|jS)zGet the id of this RestoredBucketMappings. New ID of the restored bucket :return: The id of this RestoredBucketMappings. :rtype: str )rr r r r r7s zRestoredBucketMappings.idcCs|dkrtd||_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 rr r r rBs cCs|jS)zGet the name of this RestoredBucketMappings. :return: The name of this RestoredBucketMappings. :rtype: str )rrr r r rOszRestoredBucketMappings.namecCs|dkrtd||_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`)rr)r rr r r rXscCs|jS)zGet the shard_mappings of this RestoredBucketMappings. :return: The shard_mappings of this RestoredBucketMappings. :rtype: list[BucketShardMapping] )r rr r r rcsz%RestoredBucketMappings.shard_mappingscCs|dkrtd||_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`)rr )r rr r r rlscCsi}|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)xr r r z0RestoredBucketMappings.to_dict..rcSs&t|ddr"|d|dfS|S)Nrrr)itemr r r rs ) openapi_typesitemsgetattr isinstancelistmaprrdict)r resultattr_valuer r r rws"       zRestoredBucketMappings.to_dictcCst|S)z.Return the string representation of the model.)pprintpformatrrr r r to_strszRestoredBucketMappings.to_strcCs|S)zFor `print` and `pprint`.)r%rr r r __repr__szRestoredBucketMappings.__repr__cCst|tsdS|j|jkS)z&Return true if both objects are equal.F)rr__dict__r otherr r r __eq__s zRestoredBucketMappings.__eq__cCs ||k S)z*Return true if both objects are not equal.r r(r r r __ne__szRestoredBucketMappings.__ne__)NNN)__name__ __module__ __qualname____doc__rZ attribute_mapr propertyrsetterrrrr%r&r*r+r r r r rs6       r)r/r#reobjectrr r r r s