Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/openstack/key_manager/v1/__pycache__/_proxy.cpython-39.pyc
Ðазад
a u�h�) � @ sF d dl mZ d dl mZ d dl mZ d dlmZ G dd� dej �Z dS )� )� container)�order)�secret)�proxyc @ s� e Zd Zdd� Zd'dd�Zd(dd�Zdd � Zd d� Zdd � Zdd� Z d)dd�Z d*dd�Zdd� Zdd� Z dd� Zdd� Zd+dd�Zd,dd�Zd d!� Zd"d#� Zd$d%� Zd&S )-�Proxyc K s | j tjfi |��S )a� Create a new container from attributes :param dict attrs: Keyword arguments which will be used to create a :class:`~openstack.key_manager.v1.container.Container`, comprised of the properties on the Container class. :returns: The results of container creation :rtype: :class:`~openstack.key_manager.v1.container.Container` )�_create� _container� Container��self�attrs� r ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/openstack/key_manager/v1/_proxy.py�create_container s zProxy.create_containerTc C s | j tj||d� dS )a2 Delete a container :param container: The value can be either the ID of a container or a :class:`~openstack.key_manager.v1.container.Container` instance. :param bool ignore_missing: When set to ``False`` :class:`~openstack.exceptions.ResourceNotFound` will be raised when the container does not exist. When set to ``True``, no exception will be set when attempting to delete a nonexistent container. :returns: ``None`` ��ignore_missingN)�_deleter r )r r r r r r �delete_container! s �zProxy.delete_containerc C s | j tj||d�S )a Find a single container :param name_or_id: The name or ID of a container. :param bool ignore_missing: When set to ``False`` :class:`~openstack.exceptions.ResourceNotFound` will be raised when the resource does not exist. When set to ``True``, None will be returned when attempting to find a nonexistent resource. :returns: One :class:`~openstack.key_manager.v1.container.Container` or None r )�_findr r �r Z name_or_idr r r r �find_container2 s �zProxy.find_containerc C s | � tj|�S )a� Get a single container :param container: The value can be the ID of a container or a :class:`~openstack.key_manager.v1.container.Container` instance. :returns: One :class:`~openstack.key_manager.v1.container.Container` :raises: :class:`~openstack.exceptions.ResourceNotFound` when no resource can be found. )�_getr r )r r r r r � get_containerA s zProxy.get_containerc K s | j tjfi |��S )a/ Return a generator of containers :param kwargs query: Optional query parameters to be sent to limit the resources being returned. :returns: A generator of container objects :rtype: :class:`~openstack.key_manager.v1.container.Container` )�_listr r �r �queryr r r � containersN s zProxy.containersc K s | j tj|fi |��S )a� Update a container :param container: Either the id of a container or a :class:`~openstack.key_manager.v1.container.Container` instance. :attrs kwargs: The attributes to update on the container represented by ``value``. :returns: The updated container :rtype: :class:`~openstack.key_manager.v1.container.Container` )�_updater r )r r r r r r �update_containerY s zProxy.update_containerc K s | j tjfi |��S )a~ Create a new order from attributes :param dict attrs: Keyword arguments which will be used to create a :class:`~openstack.key_manager.v1.order.Order`, comprised of the properties on the Order class. :returns: The results of order creation :rtype: :class:`~openstack.key_manager.v1.order.Order` )r �_order�Orderr r r r �create_orderg s zProxy.create_orderc C s | j tj||d� dS )a% Delete an order :param order: The value can be either the ID of a order or a :class:`~openstack.key_manager.v1.order.Order` instance. :param bool ignore_missing: When set to ``False`` :class:`~openstack.exceptions.ResourceNotFound` will be raised when the order does not exist. When set to ``True``, no exception will be set when attempting to delete a nonexistent order. :returns: ``None`` r N)r r r )r r r r r r �delete_orders s zProxy.delete_orderc C s | j tj||d�S )a� Find a single order :param name_or_id: The name or ID of a order. :param bool ignore_missing: When set to ``False`` :class:`~openstack.exceptions.ResourceNotFound` will be raised when the resource does not exist. When set to ``True``, None will be returned when attempting to find a nonexistent resource. :returns: One :class:`~openstack.key_manager.v1.order.Order` or None r )r r r r r r r � find_order� s �zProxy.find_orderc C s | � tj|�S )aw Get a single order :param order: The value can be the ID of an order or a :class:`~openstack.key_manager.v1.order.Order` instance. :returns: One :class:`~openstack.key_manager.v1.order.Order` :raises: :class:`~openstack.exceptions.ResourceNotFound` when no resource can be found. )r r r )r r r r r � get_order� s zProxy.get_orderc K s | j tjfi |��S )a Return a generator of orders :param kwargs query: Optional query parameters to be sent to limit the resources being returned. :returns: A generator of order objects :rtype: :class:`~openstack.key_manager.v1.order.Order` )r r r r r r r �orders� s zProxy.ordersc K s | j tj|fi |��S )a� Update a order :param order: Either the id of a order or a :class:`~openstack.key_manager.v1.order.Order` instance. :attrs kwargs: The attributes to update on the order represented by ``value``. :returns: The updated order :rtype: :class:`~openstack.key_manager.v1.order.Order` )r r r )r r r r r r �update_order� s zProxy.update_orderc K s | j tjfi |��S )a� Create a new secret from attributes :param dict attrs: Keyword arguments which will be used to create a :class:`~openstack.key_manager.v1.secret.Secret`, comprised of the properties on the Order class. :returns: The results of secret creation :rtype: :class:`~openstack.key_manager.v1.secret.Secret` )r �_secret�Secretr r r r � create_secret� s zProxy.create_secretc C s | j tj||d� dS )a- Delete a secret :param secret: The value can be either the ID of a secret or a :class:`~openstack.key_manager.v1.secret.Secret` instance. :param bool ignore_missing: When set to ``False`` :class:`~openstack.exceptions.ResourceNotFound` will be raised when the secret does not exist. When set to ``True``, no exception will be set when attempting to delete a nonexistent secret. :returns: ``None`` r N)r r'