🔐 Sid Gifari File Manager Pro
v8.0.5 | 2026-08-09 18:42:37 | PHP 8.2.33
📂
/ (Root)
/
opt
/
alt
/
python38
/
lib
/
python3.8
/
site-packages
/
influxdb_client
/
domain
/
__pycache__
📍 /opt/alt/python38/lib/python3.8/site-packages/influxdb_client/domain/__pycache__
🔄 Refresh
✏️
Editing: retention_policy_manifest.cpython-38.pyc
Read Only
U w�iS � @ 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�Zddd d ddd�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 d!d � �Zd"d#� Zd$d%� Zd&d'� Zd(d)� Zd*d+� Zd S )-�RetentionPolicyManifestz�NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. �str�intzlist[ShardGroupManifest]zlist[SubscriptionManifest])�name� replica_n�duration�shard_group_duration�shard_groups� subscriptionsr ZreplicaNr ZshardGroupDurationZshardGroupsr Nc C sR d| _ d| _d| _d| _d| _d| _d| _|| _|| _|| _ || _ || _|| _dS )z5RetentionPolicyManifest - a model defined in OpenAPI.N) �_name� _replica_n� _duration�_shard_group_duration� _shard_groups�_subscriptionsZ discriminatorr r r r r r )�selfr r r r r r � r �a/opt/alt/python38/lib/python3.8/site-packages/influxdb_client/domain/retention_policy_manifest.py�__init__2 s z RetentionPolicyManifest.__init__c C s | j S )z�Get the name of this RetentionPolicyManifest. :return: The name of this RetentionPolicyManifest. :rtype: str )r �r r r r r C s zRetentionPolicyManifest.namec C s |dkrt d��|| _dS )z�Set the name of this RetentionPolicyManifest. :param name: The name of this RetentionPolicyManifest. :type: str Nz,Invalid value for `name`, must not be `None`)� ValueErrorr )r r r r r r L s c C s | j S )z�Get the replica_n of this RetentionPolicyManifest. :return: The replica_n of this RetentionPolicyManifest. :rtype: int )r r r r r r W s z!RetentionPolicyManifest.replica_nc C s |dkrt d��|| _dS )z�Set the replica_n of this RetentionPolicyManifest. :param replica_n: The replica_n of this RetentionPolicyManifest. :type: int Nz1Invalid value for `replica_n`, must not be `None`)r r )r r r r r r ` s c C s | j S )z�Get the duration of this RetentionPolicyManifest. :return: The duration of this RetentionPolicyManifest. :rtype: int )r r r r r r k s z RetentionPolicyManifest.durationc C s |dkrt d��|| _dS )z�Set the duration of this RetentionPolicyManifest. :param duration: The duration of this RetentionPolicyManifest. :type: int Nz0Invalid value for `duration`, must not be `None`)r r )r r r r r r t s c C s | j S )z�Get the shard_group_duration of this RetentionPolicyManifest. :return: The shard_group_duration of this RetentionPolicyManifest. :rtype: int )r r r r r r s z,RetentionPolicyManifest.shard_group_durationc C s |dkrt d��|| _dS )z�Set the shard_group_duration of this RetentionPolicyManifest. :param shard_group_duration: The shard_group_duration of this RetentionPolicyManifest. :type: int Nz<Invalid value for `shard_group_duration`, must not be `None`)r r )r r r r r r � s c C s | j S )z�Get the shard_groups of this RetentionPolicyManifest. :return: The shard_groups of this RetentionPolicyManifest. :rtype: list[ShardGroupManifest] )r r r r r r � s z$RetentionPolicyManifest.shard_groupsc C s |dkrt d��|| _dS )z�Set the shard_groups of this RetentionPolicyManifest. :param shard_groups: The shard_groups of this RetentionPolicyManifest. :type: list[ShardGroupManifest] Nz4Invalid value for `shard_groups`, must not be `None`)r r )r r r r r r � s c C s | j S )z�Get the subscriptions of this RetentionPolicyManifest. :return: The subscriptions of this RetentionPolicyManifest. :rtype: list[SubscriptionManifest] )r r r r r r � s z%RetentionPolicyManifest.subscriptionsc C s |dkrt d��|| _dS )z�Set the subscriptions of this RetentionPolicyManifest. :param subscriptions: The subscriptions of this RetentionPolicyManifest. :type: list[SubscriptionManifest] Nz5Invalid value for `subscriptions`, must not be `None`)r r )r r r r r r � s c C s� i }| j �� D ]z\}}t| |�}t|t�rBttdd� |��||<