File manager - Edit - /usr/local/CyberCP/lib/python3.10/site-packages/google/auth/__pycache__/iam.cpython-310.pyc
Back
o �ha � @ sl d Z ddlZddlmZ ddlZddlmZ ddlmZ ddlm Z dgZ dZdZd Z G d d� dej�ZdS )z�Tools for using the Google `Cloud Identity and Access Management (IAM) API`_'s auth-related functionality. .. _Cloud Identity and Access Management (IAM) API: https://cloud.google.com/iam/docs/ � N)�_helpers)�crypt)� exceptionsz#https://www.googleapis.com/auth/iamzZhttps://iamcredentials.googleapis.com/v1/projects/-/serviceAccounts/{}:generateAccessTokenzOhttps://iamcredentials.googleapis.com/v1/projects/-/serviceAccounts/{}:signBlobzVhttps://iamcredentials.googleapis.com/v1/projects/-/serviceAccounts/{}:generateIdTokenc @ s@ e Zd ZdZdd� Zdd� Zedd� �Ze� e j�dd � �Zd S )�Signera Signs messages using the IAM `signBlob API`_. This is useful when you need to sign bytes but do not have access to the credential's private key file. .. _signBlob API: https://cloud.google.com/iam/reference/rest/v1/projects.serviceAccounts /signBlob c C s || _ || _|| _dS )a� Args: request (google.auth.transport.Request): The object used to make HTTP requests. credentials (google.auth.credentials.Credentials): The credentials that will be used to authenticate the request to the IAM API. The credentials must have of one the following scopes: - https://www.googleapis.com/auth/iam - https://www.googleapis.com/auth/cloud-platform service_account_email (str): The service account email identifying which service account to use to sign bytes. Often, this can be the same as the service account email in the given credentials. N)�_request�_credentials�_service_account_email)�self�request�credentials�service_account_email� r �B/usr/local/CyberCP/lib/python3.10/site-packages/google/auth/iam.py�__init__<