class_docstr: Synchronizes the contents of the buckets or bucket's directories in the Google Cloud Services.
  
  Parameters ``source_object`` and ``destination_object`` describe the root sync directory. If they are
  not passed, the entire bucket will be synchronized. They should point to directories.
  
  .. note::
      The synchronization of individual files is not supported. Only entire directories can be
      synchronized.
  
  .. seealso::
      For more information on how to use this operator, take a look at the guide:
      :ref:`howto/operator:GCSSynchronizeBucketsOperator`
  
  :param source_bucket: The name of the bucket containing the source objects.
  :param destination_bucket: The name of the bucket containing the destination objects.
  :param source_object: The root sync directory in the source bucket.
  :param destination_object: The root sync directory in the destination bucket.
  :param recursive: If True, subdirectories will be considered
  :param allow_overwrite: if True, the files will be overwritten if a mismatched file is found.
      By default, overwriting files is not allowed
  :param delete_extra_files: if True, deletes additional files from the source that not found in the
      destination. By default extra files are not deleted.
  
      .. note::
          This option can delete data quickly if you specify the wrong source/destination combination.
  
  :param gcp_conn_id: (Optional) The connection ID used to connect to Google Cloud.
  :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: ["Synchronizes","the","contents","of","the","buckets","or","bucket","'s","directories","in","the","Google","Cloud","Services",".","Parameters","``","source_object","``","and","``","destination_object","``","describe","the","root","sync","directory",".","If","they","are","not","passed",",","the","entire","bucket","will","be","synchronized",".","They","should","point","to","directories",".","..","note",":",":","The","synchronization","of","individual","files","is","not","supported",".","Only","entire","directories","can","be","synchronized",".","..","seealso",":",":","For","more","information","on","how","to","use","this","operator",",","take","a","look","at","the","guide",":",":","ref",":","`","howto\/operator",":","GCSSynchronizeBucketsOperator","`",":","param","source_bucket",":","The","name","of","the","bucket","containing","the","source","objects",".",":","param","destination_bucket",":","The","name","of","the","bucket","containing","the","destination","objects",".",":","param","source_object",":","The","root","sync","directory","in","the","source","bucket",".",":","param","destination_object",":","The","root","sync","directory","in","the","destination","bucket",".",":","param","recursive",":","If","True",",","subdirectories","will","be","considered",":","param","allow_overwrite",":","if","True",",","the","files","will","be","overwritten","if","a","mismatched","file","is","found",".","By","default",",","overwriting","files","is","not","allowed",":","param","delete_extra_files",":","if","True",",","deletes","additional","files","from","the","source","that","not","found","in","the","destination",".","By","default","extra","files","are","not","deleted",".","..","note",":",":","This","option","can","delete","data","quickly","if","you","specify","the","wrong","source\/destination","combination",".",":","param","gcp_conn_id",":","(","Optional",")","The","connection","ID","used","to","connect","to","Google","Cloud",".",":","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 execute(self, context: Context) -> None:
      hook = GCSHook(
          gcp_conn_id=self.gcp_conn_id,
          impersonation_chain=self.impersonation_chain,
      )
      StorageLink.persist(
          context=context,
          task_instance=self,
          uri=self._get_uri(
              self.destination_bucket, self.destination_object
          ),
          project_id=hook.project_id,
      )
      hook.sync(
          source_bucket=self.source_bucket,
          destination_bucket=self.destination_bucket,
          source_object=self.source_object,
          destination_object=self.destination_object,
          recursive=self.recursive,
          delete_extra_files=self.delete_extra_files,
          allow_overwrite=self.allow_overwrite,
      )
  
imports: from __future__ import annotations
  import datetime
  import subprocess
  import sys
  import warnings
  from pathlib import Path
  from tempfile import NamedTemporaryFile, TemporaryDirectory
  from typing import TYPE_CHECKING, Sequence
  import pendulum
  from google.api_core.exceptions import Conflict
  from google.cloud.exceptions import GoogleCloudError
  from airflow.exceptions import AirflowException, AirflowProviderDeprecationWarning
  from airflow.providers.google.cloud.hooks.gcs import GCSHook
  from airflow.providers.google.cloud.operators.cloud_base import GoogleCloudBaseOperator
  from airflow.providers.google.common.links.storage import FileDetailsLink, StorageLink
  from airflow.utils import timezone
label_desc: Use image node_id 2 for calling the GCSSynchronizeBucketsOperator obj's underlying member method code with example usage: obj.execute(context) without return types