class_docstr: Lists all accounts to which the user has access.
  
  .. seealso::
      This operator is deprecated, please use
      :class:`~airflow.providers.google.marketing_platform.operators.analytics_admin.GoogleAnalyticsAdminListAccountsOperator`:
  
  .. seealso::
      Check official API docs:
      https://developers.google.com/analytics/devguides/config/mgmt/v3/mgmtReference/management/accounts/list
      and for python client
      http://googleapis.github.io/google-api-python-client/docs/dyn/analytics_v3.management.accounts.html#list
  
  .. seealso::
      For more information on how to use this operator, take a look at the guide:
      :ref:`howto/operator:GoogleAnalyticsListAccountsOperator`
  
  :param api_version: The version of the api that will be requested for example 'v3'.
  :param gcp_conn_id: The connection ID to use when fetching connection info.
  :param impersonation_chain: Optional service account to impersonate using short-term
      credentials, or chained list of accounts required to get the access_token
      of the last account in the list, which will be impersonated in the request.
      If set as a string, the account must grant the originating account
      the Service Account Token Creator IAM role.
      If set as a sequence, the identities from the list must grant
      Service Account Token Creator IAM role to the directly preceding identity, with first
      account from the list granting this role to the originating account (templated).
class_docstr_tok: ["Lists","all","accounts","to","which","the","user","has","access",".","..","seealso",":",":","This","operator","is","deprecated",",","please","use",":","class",":","`","~airflow.providers.google.marketing_platform.operators.analytics_admin.GoogleAnalyticsAdminListAccountsOperator","`",":","..","seealso",":",":","Check","official","API","docs",":","https",":","\/\/developers.google.com\/analytics\/devguides\/config\/mgmt\/v3\/mgmtReference\/management\/accounts\/list","and","for","python","client","http",":","\/\/googleapis.github.io\/google-api-python-client\/docs\/dyn\/analytics_v3.management.accounts.html","#","list","..","seealso",":",":","For","more","information","on","how","to","use","this","operator",",","take","a","look","at","the","guide",":",":","ref",":","`","howto\/operator",":","GoogleAnalyticsListAccountsOperator","`",":","param","api_version",":","The","version","of","the","api","that","will","be","requested","for","example","'v3","'",".",":","param","gcp_conn_id",":","The","connection","ID","to","use","when","fetching","connection","info",".",":","param","impersonation_chain",":","Optional","service","account","to","impersonate","using","short-term","credentials",",","or","chained","list","of","accounts","required","to","get","the","access_token","of","the","last","account","in","the","list",",","which","will","be","impersonated","in","the","request",".","If","set","as","a","string",",","the","account","must","grant","the","originating","account","the","Service","Account","Token","Creator","IAM","role",".","If","set","as","a","sequence",",","the","identities","from","the","list","must","grant","Service","Account","Token","Creator","IAM","role","to","the","directly","preceding","identity",",","with","first","account","from","the","list","granting","this","role","to","the","originating","account","(","templated",")","."]
code: def __init__(
      self,
      *,
      api_version: str = "v3",
      gcp_conn_id: str = "google_cloud_default",
      impersonation_chain: str | Sequence[str] | None = None,
      **kwargs,
  ) -> None:
      warnings.warn(
          f"The `{type(self).__name__}` operator is deprecated, please use "
          f"`GoogleAnalyticsAdminListAccountsOperator` instead.",
          AirflowProviderDeprecationWarning,
          stacklevel=1,
      )
  
      super().__init__(**kwargs)
  
      self.api_version = api_version
      self.gcp_conn_id = gcp_conn_id
      self.impersonation_chain = impersonation_chain
  
imports: from __future__ import annotations
  import csv
  import warnings
  from tempfile import NamedTemporaryFile
  from typing import TYPE_CHECKING, Any, Sequence
  from airflow.exceptions import AirflowProviderDeprecationWarning
  from airflow.models import BaseOperator
  from airflow.providers.google.cloud.hooks.gcs import GCSHook
  from airflow.providers.google.marketing_platform.hooks.analytics import GoogleAnalyticsHook
label_desc: Use image node_id 1 to create a new GoogleAnalyticsListAccountsOperator object from inherited base classes: BaseOperator with example: obj = GoogleAnalyticsListAccountsOperator()