# google-auth 2.62.0 (Apache-2.0), harvested by tools/harvest_corpus.py
=== input
Makes a request to the Google Cloud IAM service to sign a JWT using a
    service account's system-managed private key.
    Args:
        request (Request): The Request object to use.
        principal (str): The principal to request an access token for.
        headers (Mapping[str, str]): Map of headers to transmit.
        payload (Mapping[str, str]): The JWT payload to sign. Must be a
            serialized JSON object that contains a JWT Claims Set.
        delegates (Sequence[str]): The chained list of delegates required
            to grant the final access_token.  If set, the sequence of
            identities must have "Service Account Token Creator" capability
            granted to the prceeding identity.  For example, if set to
            [serviceAccountB, serviceAccountC], the source_credential
            must have the Token Creator role on serviceAccountB.
            serviceAccountB must have the Token Creator on
            serviceAccountC.
            Finally, C must have Token Creator on target_principal.
            If left unset, source_credential must have that role on
            target_principal.

    Raises:
        google.auth.exceptions.TransportError: Raised if there is an underlying
            HTTP connection error
        google.auth.exceptions.RefreshError: Raised if the impersonated
            credentials are not available.  Common reasons are
            `iamcredentials.googleapis.com` is not enabled or the
            `Service Account Token Creator` is not assigned
    
=== parse google
short_description: |
  Makes a request to the Google Cloud IAM service to sign a JWT using a
  service account's system-managed private key.
blank_after_short_description: False
blank_after_long_description: False
style: google
- DocstringParam
  description: 'The Request object to use.'
  kind: param
  key: 'param'
  arg_name: 'request'
  type_name: 'Request'
  is_optional: False
- DocstringParam
  description: 'The principal to request an access token for.'
  kind: param
  key: 'param'
  arg_name: 'principal'
  type_name: 'str'
  is_optional: False
- DocstringParam
  description: 'Map of headers to transmit.'
  kind: param
  key: 'param'
  arg_name: 'headers'
  type_name: 'Mapping[str, str]'
  is_optional: False
- DocstringParam
  description: |
    The JWT payload to sign. Must be a
    serialized JSON object that contains a JWT Claims Set.
  kind: param
  key: 'param'
  arg_name: 'payload'
  type_name: 'Mapping[str, str]'
  is_optional: False
- DocstringParam
  description: |
    The chained list of delegates required
    to grant the final access_token.  If set, the sequence of
    identities must have "Service Account Token Creator" capability
    granted to the prceeding identity.  For example, if set to
    [serviceAccountB, serviceAccountC], the source_credential
    must have the Token Creator role on serviceAccountB.
    serviceAccountB must have the Token Creator on
    serviceAccountC.
    Finally, C must have Token Creator on target_principal.
    If left unset, source_credential must have that role on
    target_principal.
  kind: param
  key: 'param'
  arg_name: 'delegates'
  type_name: 'Sequence[str]'
  is_optional: False
- DocstringRaises
  description: |
    Raised if there is an underlying
    HTTP connection error
  kind: raises
  key: 'raises'
  type_name: 'google.auth.exceptions.TransportError'
- DocstringRaises
  description: |
    Raised if the impersonated
    credentials are not available.  Common reasons are
    `iamcredentials.googleapis.com` is not enabled or the
    `Service Account Token Creator` is not assigned
  kind: raises
  key: 'raises'
  type_name: 'google.auth.exceptions.RefreshError'
=== detect
google
=== compose google
Makes a request to the Google Cloud IAM service to sign a JWT using a
service account's system-managed private key.
Args:
    request (Request): The Request object to use.
    principal (str): The principal to request an access token for.
    headers (Mapping[str, str]): Map of headers to transmit.
    payload (Mapping[str, str]): The JWT payload to sign. Must be a
        serialized JSON object that contains a JWT Claims Set.
    delegates (Sequence[str]): The chained list of delegates required
        to grant the final access_token.  If set, the sequence of
        identities must have "Service Account Token Creator" capability
        granted to the prceeding identity.  For example, if set to
        [serviceAccountB, serviceAccountC], the source_credential
        must have the Token Creator role on serviceAccountB.
        serviceAccountB must have the Token Creator on
        serviceAccountC.
        Finally, C must have Token Creator on target_principal.
        If left unset, source_credential must have that role on
        target_principal.

Raises:
    google.auth.exceptions.TransportError: Raised if there is an underlying
        HTTP connection error
    google.auth.exceptions.RefreshError: Raised if the impersonated
        credentials are not available.  Common reasons are
        `iamcredentials.googleapis.com` is not enabled or the
        `Service Account Token Creator` is not assigned
