File manager - Edit - /home/u478019808/domains/bestandroidphones.store/public_html/static/img/logo/iamcredentials_api.cpython-39.pyc.tar
Back
opt/gsutil/gslib/__pycache__/iamcredentials_api.cpython-39.pyc 0000644 00000017176 15025234504 0020447 0 ustar 00 a +(Wg�. � @ s. d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlZddlZddlZddl m Z ddlm Z dd lmZ dd lmZ ddlmZ ddlmZ dd lmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlm Z ddlm!Z! ej"Z#e�$� �rdZ%ndZ%G dd� de&�Z'dS )z>JSON gsutil Cloud API implementation for Google Cloud Storage.� )�absolute_import)�print_function)�division)�unicode_literalsN)� exceptions)�config)�AccessDeniedException)�BadRequestException)�NotFoundException)�PreconditionException)�ServiceException)�NoOpCredentials)�iamcredentials_v1_client)�iamcredentials_v1_messages)�system_util)�GetCertsFile)�GetMaxRetryDelay)� GetNewHttp)� GetNumRetrieszVInsufficient OAuth2 scope to perform this operation. Please re-run `gcloud auth login`zRInsufficient OAuth2 scope to perform this operation. Please re-run `gsutil config`c sV e Zd ZdZd� fdd� Zdd� Zdd � Zdd d�Zddd �Zdd� Z dd� Z � ZS )�IamcredentailsApizCWraps calls to the Cloud IAM Credentials v1 interface via apitools.Nr c s� t t| ��� || _|| _t� | _t� | _d| _ d}t �ddt �d|d��| _t �ddd�}|rhd| nd | _ | j | j | j | _|d k}|d k}tj| j| j||| jd�| _t� | _| j| j_t� | _| j| j_t| jt�r�| j�dd � dS )a Performs necessary setup for interacting with Google Cloud IAM Credentials. Args: logger: logging.logger for outputting log messages. credentials: Credentials to be used for interacting with Cloud IAM debug: Debug level for the API implementation (0..3). zhttps://Zgs_iamcredentails_host�CredentialsZgs_iamcredentials_hostziamcredentials.googleapis.comZgs_iamcredentails_portN�:� � )�url�http�log_request�log_response�credentials�key�'AIzaSyDnacJHrKma0048b13sh8cgxNUwulubmJM)�superr �__init__�loggerr r � certs_filer r � http_baser �get� host_base� host_port�url_base�apitools_clientZIamcredentialsV1� api_clientr �num_retriesr �max_retry_wait� isinstancer �AddGlobalParam)�selfr# r �debugZlegacy_typoZgs_iamcred_portr r �� __class__� �'/opt/gsutil/gslib/iamcredentials_api.pyr"