Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/openstack/identity/v3/__pycache__/_proxy.cpython-39.pyc
Ðазад
a u�h� � @ s6 d dl mZ d dlmZ d dlmZ d dlmZ d dlm Z d dlmZ d dlmZ d dlmZ d d lmZ d d lmZ d dlmZ d dlmZ d d lmZ d dlmZ d dlmZ d dlm Z! d dlm"Z# d dlm$Z% d dlm&Z' d dlm(Z) d dlm*Z+ d dlm,Z- d dlm.Z/ d dl0m1Z1 G dd� de1j2�Z2dS )� N)�application_credential)� credential)�domain)�endpoint)�federation_protocol)�group)�identity_provider)�limit)�mapping)�policy)�project)�region)�registered_limit)�role)�role_assignment)�role_domain_group_assignment)�role_domain_user_assignment)�role_project_group_assignment)�role_project_user_assignment)�service)�trust)�user)�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&d'� Zd�d(d)�Zd�d*d+�Zd,d-� Zd.d/� Zd0d1� Zd2d3� Zd�d4d5�Zd�d6d7�Zd8d9� Zd:d;� Zd<d=� Z d>d?� Z!d�d@dA�Z"d�dBdC�Z#dDdE� Z$dFdG� Z%dHdI� Z&dJdK� Z'dLdM� Z(d�dNdO�Z)d�dPdQ�Z*dRdS� Z+dTdU� Z,dVdW� Z-dXdY� Z.d�dZd[�Z/d�d\d]�Z0d^d_� Z1d`da� Z2dbdc� Z3ddde� Z4d�dfdg�Z5d�dhdi�Z6djdk� Z7dldm� Z8dndo� Z9d�dpdq�Z:d�drds�Z;dtdu� Z<dvdw� Z=dxdy� Z>dzd{� Z?d�d|d}�Z@d�d~d�ZAd�d�� ZBd�d�� ZCd�d�� ZDd�d�d��ZEd�d�� ZFd�d�� ZGd�d�� ZHd�d�� ZId�d�� ZJd�d�d��ZKd�d�� ZLd�d�� ZMd�d�� ZNd�d�� ZOd�d�d��ZPd�d�� ZQd�d�� ZRd�d�� ZSd�d�� ZTd�d�� ZUd�d�� ZVd�d�� ZWd�d�� ZXd�d�� ZYd�d�d��ZZd�d�d��Z[d�d�� Z\d�d�d��Z]d�d�d��Z^d�d�� Z_d�d�� Z`d�d�� Zad�d Zbd�d�dĄZcd�d�dƄZdd�dȄ Zed�dʄ Zfd�d̄ Zgd�d΄ Zhd�d�dЄZid�d�d҄Zjd�dԄ Zkd�dք Zld�d Zmd�S )��Proxyc K s | j tjfi |��S )a} Create a new credential from attributes :param dict attrs: Keyword arguments which will be used to create a :class:`~openstack.identity.v3.credential.Credential`, comprised of the properties on the Credential class. :returns: The results of credential creation :rtype: :class:`~openstack.identity.v3.credential.Credential` )�_create�_credential� Credential��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/identity/v3/_proxy.py�create_credential. s zProxy.create_credentialTc C s | j tj||d� dS )a' Delete a credential :param credential: The value can be either the ID of a credential or a :class:`~openstack.identity.v3.credential.Credential` instance. :param bool ignore_missing: When set to ``False`` :class:`~openstack.exceptions.ResourceNotFound` will be raised when the credential does not exist. When set to ``True``, no exception will be set when attempting to delete a nonexistent credential. :returns: ``None`` ��ignore_missingN)�_deleter r )r r r$ r r r! �delete_credential: s �zProxy.delete_credentialc C s | j tj||d�S )a Find a single credential :param name_or_id: The name or ID of a credential. :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.identity.v3.credential.Credential` or None r# )�_findr r �r � name_or_idr$ r r r! �find_credentialJ s �zProxy.find_credentialc C s | � tj|�S )as Get a single credential :param credential: The value can be the ID of a credential or a :class:`~openstack.identity.v3.credential.Credential` instance. :returns: One :class:`~openstack.identity.v3.credential.Credential` :raises: :class:`~openstack.exceptions.ResourceNotFound` when no resource can be found. )�_getr r )r r r r r! �get_credentialY s zProxy.get_credentialc K s | j tjfi |��S )a6 Retrieve a generator of credentials :param kwargs query: Optional query parameters to be sent to limit the resources being returned. :returns: A generator of credentials instances. :rtype: :class:`~openstack.identity.v3.credential.Credential` )�_listr r �r �queryr r r! �credentialse s zProxy.credentialsc K s | j tj|fi |��S )a� Update a credential :param credential: Either the ID of a credential or a :class:`~openstack.identity.v3.credential.Credential` instance. :attrs kwargs: The attributes to update on the credential represented by ``value``. :returns: The updated credential :rtype: :class:`~openstack.identity.v3.credential.Credential` )�_updater r )r r r r r r! �update_credentialq s zProxy.update_credentialc K s | j tjfi |��S )a Create a new domain from attributes :param dict attrs: Keyword arguments which will be used to create a :class:`~openstack.identity.v3.domain.Domain`, comprised of the properties on the Domain class. :returns: The results of domain creation :rtype: :class:`~openstack.identity.v3.domain.Domain` )r �_domain�Domainr r r r! � create_domain~ s zProxy.create_domainc C s | j tj||d� dS )a Delete a domain :param domain: The value can be either the ID of a domain or a :class:`~openstack.identity.v3.domain.Domain` instance. :param bool ignore_missing: When set to ``False`` :class:`~openstack.exceptions.ResourceNotFound` will be raised when the domain does not exist. When set to ``True``, no exception will be set when attempting to delete a nonexistent domain. :returns: ``None`` r# N)r% r3 r4 )r r r$ r r r! � delete_domain� s zProxy.delete_domainc C s | j tj||d�S )a� Find a single domain :param name_or_id: The name or ID of a domain. :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.identity.v3.domain.Domain` or None r# )r'