Website : rimsha.abasa.com
backdoor
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
lib
/
python3
/
dist-packages
/
docker
/
models
/
__pycache__
/
Filename :
resource.cpython-310.pyc
back
Copy
o �2.a3 � @ s G d d� d�Z G dd� d�ZdS )c @ sV e Zd ZdZdZddd�Zdd� Zdd � Zd d� Ze dd � �Z e dd� �Zdd� ZdS )�ModelzF A base class for representing a single object on the server. �IdNc C s* || _ || _|| _| jd u ri | _d S d S �N)�client� collection�attrs)�selfr r r � r �8/usr/lib/python3/dist-packages/docker/models/resource.py�__init__ s �zModel.__init__c C s d| j j� d| j� d�S )N�<z: �>)� __class__�__name__�short_id�r r r r �__repr__ � zModel.__repr__c C s t || j�o| j|jkS r )� isinstancer �id)r �otherr r r �__eq__ r zModel.__eq__c C s t | jj� d| j� ��S )N�:)�hashr r r r r r r �__hash__ r zModel.__hash__c C s | j �| j�S )z' The ID of the object. )r �get�id_attributer r r r r � zModel.idc C s | j dd� S )zC The ID of the object, truncated to 10 characters. N� )r r r r r r # r zModel.short_idc C s | j �| j�}|j| _dS )zh Load this object from the server again and update ``attrs`` with the new data. N)r r r r )r � new_modelr r r �reload* s zModel.reload)NNN) r � __module__�__qualname__�__doc__r r r r r �propertyr r r r r r r r s r c @ sH e Zd ZdZdZddd�Zdd� Zdd� Zd d � Zddd�Z d d� Z dS )� Collectionz[ A base class for representing all objects of a particular type on the server. Nc C s || _ d S r )r )r r r r r r <