(username)
return credentials
Gets valid user credentials from a JSON service account key file.

  Args:
    username: The email address of the user to impersonate.
  Returns:
    Credentials, the obtained credential.
Gets valid user credentials from a JSON service account key file.
Gets valid user credentials from a JSON service account key file .
def get_credentials(username):
  """Gets valid user credentials from a JSON service account key file.

  Args:
    username: The email address of the user to impersonate.
  Returns:
    Credentials, the obtained credential.
  """
  credentials = ServiceAccountCredentials.from_json_keyfile_name(
      args.json,
      scopes=SCOPES).create_delegated(username)

  return credentials
def get_credentials ( username ) : credentials = ServiceAccountCredentials . from_json_keyfile_name ( args . json , scopes = SCOPES ) . create_delegated ( username ) return credentials