| Server IP : 157.22.201.140 / Your IP : 216.73.216.74 Web Server : nginx/1.30.1 System : Linux mit.vincode.fvds.ru 6.8.0-111-generic #111-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 11 23:16:02 UTC 2026 x86_64 User : root ( 0) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /lib/python3/dist-packages/libcloud/backup/__pycache__/ |
Upload File : |
�
�q�a�= � � � d dl mZmZ d dlmZ g d�Z G d� de� Z G d� de� Z G d� d e� Z G d
� de� Z
y)
� )�ConnectionUserAndKey�
BaseDriver)�BackupTargetType)�BackupTarget�BackupDriver�BackupTargetJob�BackupTargetRecoveryPointc �2 � e Zd ZdZdd�Zd d�Zd� Zd� Zd� Zy)
r z
A backup target
Nc �z � |rt |� nd| _ || _ || _ || _ || _ |xs i | _ y)a
:param id: Target id
:type id: ``str``
:param name: Name of the target
:type name: ``str``
:param address: Hostname, FQDN, IP, file path etc.
:type address: ``str``
:param type: Backup target type (Physical, Virtual, ...).
:type type: :class:`.BackupTargetType`
:param driver: BackupDriver instance.
:type driver: :class:`.BackupDriver`
:param extra: (optional) Extra attributes (driver specific).
:type extra: ``dict``
N)�str�id�name�address�type�driver�extra)�selfr
r r r r r s �6/usr/lib/python3/dist-packages/libcloud/backup/base.py�__init__zBackupTarget.__init__ s: � �( �#�b�'�T����� ������ �����[�b��
� c �@ � | j j | |||�� S )N)�targetr r r )r �
update_target)r r r r s r �updatezBackupTarget.update; s) � ��{�{�(�(��.2�18�/4� )� 6� 6r c �: � | j j | �� S )N)r )r �
delete_target�r s r �deletezBackupTarget.deleteA s � ��{�{�(�(��(�5�5r c �T � | j }|j � rt |� }|S �N)r
�isdigit�int)r � target_ids r �_get_numeric_idzBackupTarget._get_numeric_idD s&