# google-auth 2.62.0 (Apache-2.0), harvested by tools/harvest_corpus.py
=== input
Creates a copy of the credentials with scopes if scoping is required.

    This helper function is useful when you do not know (or care to know) the
    specific type of credentials you are using (such as when you use
    :func:`google.auth.default`). This function will call
    :meth:`Scoped.with_scopes` if the credentials are scoped credentials and if
    the credentials require scoping. Otherwise, it will return the credentials
    as-is.

    Args:
        credentials (google.auth.credentials.Credentials): The credentials to
            scope if necessary.
        scopes (Sequence[str]): The list of scopes to use.

    Returns:
        google.auth._credentials_async.Credentials: Either a new set of scoped
            credentials, or the passed in credentials instance if no scoping
            was required.
    
=== parse google
short_description: 'Creates a copy of the credentials with scopes if scoping is required.'
long_description: |
  This helper function is useful when you do not know (or care to know) the
  specific type of credentials you are using (such as when you use
  :func:`google.auth.default`). This function will call
  :meth:`Scoped.with_scopes` if the credentials are scoped credentials and if
  the credentials require scoping. Otherwise, it will return the credentials
  as-is.
blank_after_short_description: True
blank_after_long_description: True
style: google
- DocstringParam
  description: |
    The credentials to
    scope if necessary.
  kind: param
  key: 'param'
  arg_name: 'credentials'
  type_name: 'google.auth.credentials.Credentials'
  is_optional: False
- DocstringParam
  description: 'The list of scopes to use.'
  kind: param
  key: 'param'
  arg_name: 'scopes'
  type_name: 'Sequence[str]'
  is_optional: False
- DocstringReturns
  description: |
    Either a new set of scoped
    credentials, or the passed in credentials instance if no scoping
    was required.
  kind: returns
  key: 'returns'
  type_name: 'google.auth._credentials_async.Credentials'
  is_generator: False
=== detect
google
=== compose google
Creates a copy of the credentials with scopes if scoping is required.

This helper function is useful when you do not know (or care to know) the
specific type of credentials you are using (such as when you use
:func:`google.auth.default`). This function will call
:meth:`Scoped.with_scopes` if the credentials are scoped credentials and if
the credentials require scoping. Otherwise, it will return the credentials
as-is.

Args:
    credentials (google.auth.credentials.Credentials): The credentials to
        scope if necessary.
    scopes (Sequence[str]): The list of scopes to use.

Returns:
    google.auth._credentials_async.Credentials: Either a new set of scoped
        credentials, or the passed in credentials instance if no scoping
        was required.
