Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/keystoneauth1/__pycache__/token_endpoint.cpython-39.pyc
Ðазад
a s�h� � @ sT d dl Zd dlmZ d dlmZ ejr>d dlmZ d dlmZ G dd� dej �ZdS )� N)�discover)�plugin)�access)�sessionc s� e Zd ZdZeje eje d�� fdd�Zdeje d�dd�Zd d d�deje e ej ejej d�� fd d�Z dej eje d�dd�Zdejd d�dd�Z� ZS )�Tokenz�A provider that will always use the given token and endpoint. This is really only useful for testing and in certain CLI cases where you have a known endpoint and admin token that you want to use. )�endpoint�tokenc s t � �� || _|| _d S �N)�super�__init__r r )�selfr r �� __class__� ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/keystoneauth1/token_endpoint.pyr s zToken.__init__zks_session.Session)r �returnc C s | j S r )r �r r r r r � get_token% s zToken.get_tokenNT��endpoint_override�discover_versions)r r r �kwargsr c s t � j|f|p| j|d�|��S )a5 Return a valid endpoint data for a the service. :param session: A session object that can be used for communication. :type session: keystoneauth1.session.Session :param str endpoint_override: URL to use for version discovery other than the endpoint stored in the plugin. (optional, defaults to None) :param bool discover_versions: Whether to get version metadata from the version discovery document even if it major api version info can be inferred from the url. (optional, defaults to True) :param kwargs: Ignored. :raises keystoneauth1.exceptions.http.HttpError: An error from an invalid HTTP response. :return: Valid EndpointData or None if not available. :rtype: `keystoneauth1.discover.EndpointData` or None r )r �get_endpoint_datar )r r r r r r r r r ( s ���zToken.get_endpoint_data)r r r c K s | j S )z�Return the supplied endpoint. Using this plugin the same endpoint is returned regardless of the parameters passed to the plugin. )r )r r r r r r �get_endpointK s zToken.get_endpointzaccess.AccessInfoc C s dS )z�Return the authentication reference of an auth plugin. :param session: A session object to be used for communication :type session: keystoneauth1.session.session Nr r r r r �get_auth_refU s zToken.get_auth_ref)�__name__� __module__�__qualname__�__doc__�ty�Optional�strr r �bool�Anyr ZEndpointDatar r r � __classcell__r r r r r s$ � �$��r )�typingr Z keystoneauth1r r � TYPE_CHECKINGZkeystoneauth1.accessr r Z ks_sessionZBaseAuthPluginr r r r r �<module> s
| ver. 1.1 | |
.
| PHP 8.3.30 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка