auth.iam

Module Contents

Classes

IamClient

Attributes

API_ROOT_IAM

API_ROOT_IAM_CREDENTIALS

SCOPES

auth.iam.API_ROOT_IAM = 'https://iam.googleapis.com/v1'
auth.iam.API_ROOT_IAM_CREDENTIALS = 'https://iamcredentials.googleapis.com/v1'
auth.iam.SCOPES = ['https://www.googleapis.com/auth/iam']
class auth.iam.IamClient(service_file=None, session=None, token=None)
Parameters:
  • service_file (Optional[Union[str, IO[AnyStr]]]) –

  • session (Optional[requests.Session]) –

  • token (Optional[auth.token.Token]) –

property service_account_email: str | None
Return type:

Optional[str]

async headers()
Return type:

Dict[str, str]

async get_public_key(key_id=None, key=None, service_account_email=None, project=None, session=None, timeout=10)
Parameters:
  • key_id (Optional[str]) –

  • key (Optional[str]) –

  • service_account_email (Optional[str]) –

  • project (Optional[str]) –

  • session (Optional[requests.Session]) –

  • timeout (int) –

Return type:

Dict[str, str]

async list_public_keys(service_account_email=None, project=None, session=None, timeout=10)
Parameters:
  • service_account_email (Optional[str]) –

  • project (Optional[str]) –

  • session (Optional[requests.Session]) –

  • timeout (int) –

Return type:

List[Dict[str, str]]

async sign_blob(payload, service_account_email=None, delegates=None, session=None, timeout=10)
Parameters:
  • payload (Optional[Union[str, bytes]]) –

  • service_account_email (Optional[str]) –

  • delegates (Optional[List[str]]) –

  • session (Optional[requests.Session]) –

  • timeout (int) –

Return type:

Dict[str, str]

async close()
Return type:

None

async __aenter__()
Return type:

IamClient

async __aexit__(*args)
Parameters:

args (Any) –

Return type:

None