Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/openstack/object_store/v1/__pycache__/container.cpython-39.pyc
Ðазад
a u�hS � @ s. d dl mZ d dlmZ G dd� dej�ZdS )� )�_base)�resourcec @ s@ e Zd ZdZdddddddd �Zd ZdZdZdZdZ dZ dZdZe �d d�Ze jdddd�Ze jdedd�Ze jdedd�Ze jdedd�Ze jdedd�Ze �d�Ze jded�Ze �d�Ze �d�Ze �d�Ze �d�Ze �d�Ze �d�Z e jded�Z!e �d�Z"e �d�Z#e �d�Z$e%dd � �Z&d'd"d#�Z'd(d%d&�Z(d!S ))� ContainerzX-Container-Meta-zcontent-typezx-detect-content-typezx-versions-locationzx-container-readzx-container-writezx-container-sync-tozx-container-sync-key)�content_type�is_content_type_detected�versions_location�read_ACL� write_ACL�sync_to�sync_key�/zX-Account-Container-CountT�prefix�format�name�id)Zalternate_id�alias�count�object_count)�typer �bytes� bytes_usedzx-container-object-countzx-container-bytes-usedzx-timestampzx-newest)r z if-none-matchzx-container-meta-temp-url-keyzx-container-meta-temp-url-key-2c K s. |� dd �}|r|�d|� | f ddi|��S )Nr r Z _synchronizedF)�pop� setdefault)�cls�kwargsr � r ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/openstack/object_store/v1/container.py�newl s z Container.newNc C s4 | j d||d�}|j|j|jd�}| j|dd� | S )aB Create a remote resource based on this instance. :param session: The session to use for making this request. :type session: :class:`~keystoneauth1.adapter.Adapter` :param prepend_key: A boolean indicating whether the resource_key should be prepended in a resource creation request. Default to True. :return: This :class:`Resource` instance. :raises: :exc:`~openstack.exceptions.MethodNotSupported` if :data:`Resource.allow_create` is not set to ``True``. T)Zrequires_id�prepend_key� base_path)�headersF)Zhas_body)Z_prepare_request�put�urlr Z_translate_response)�self�sessionr r �request�responser r r �createv s ��zContainer.createFc C s d}|r|d7 }| � |||i�S )a� Set the temporary url key for a container. :param proxy: The proxy to use for making this request. :type proxy: :class:`~openstack.proxy.Proxy` :param container: The value can be the name of a container or a :class:`~openstack.object_store.v1.container.Container` instance. :param key: Text of the key to use. :param bool secondary: Whether this should set the second key. (defaults to False) zTemp-URL-Keyz-2)Zset_metadata)r# �proxy�keyZ secondary�headerr r r �set_temp_url_key� s zContainer.set_temp_url_key)TN)F))�__name__� __module__�__qualname__Z_custom_metadata_prefixZ_system_metadatar Zpagination_keyZallow_createZallow_fetchZallow_commitZallow_deleteZ allow_listZ allow_headr ZQueryParametersZ_query_mappingZBodyr �intr r �Headerr r � timestamp�boolZ is_newestr r r r r r r Z if_none_matchZmeta_temp_url_keyZmeta_temp_url_key_2�classmethodr r'