docstr: Sets the Google Cloud Storage configuration for the datasource of the
  current dataset.
  
  See our docs for a detailed explanation on how to setup Lightly with
  Google Cloud Storage: https://docs.lightly.ai/docs/google-cloud-storage
  
  Args:
      resource_path:
          GCS url of your dataset, for example: "gs://my_bucket/path/to/my/data"
      project_id:
          GCS project id.
      credentials:
          Content of the credentials JSON file stringified which you
          download from Google Cloud Platform.
      thumbnail_suffix:
          Where to save thumbnails of the images in the dataset, for
          example ".lightly/thumbnails/[filename]_thumb.[extension]".
          Set to None to disable thumbnails and use the full images from the
          datasource instead.
      purpose:
          Datasource purpose, determines if datasource is read only (INPUT)
          or can be written to as well (LIGHTLY, INPUT_OUTPUT).
docstr_tok: ["Sets","the","Google","Cloud","Storage","configuration","for","the","datasource","of","the","current","dataset",".","See","our","docs","for","a","detailed","explanation","on","how","to","setup","Lightly","with","Google","Cloud","Storage",":","https",":","\/\/docs.lightly.ai\/docs\/google-cloud-storage","Args",":","resource_path",":","GCS","url","of","your","dataset",",","for","example",":","``","gs",":","\/\/my_bucket\/path\/to\/my\/data","''","project_id",":","GCS","project","id",".","credentials",":","Content","of","the","credentials","JSON","file","stringified","which","you","download","from","Google","Cloud","Platform",".","thumbnail_suffix",":","Where","to","save","thumbnails","of","the","images","in","the","dataset",",","for","example","``",".lightly\/thumbnails\/","[","filename","]","_thumb.","[","extension","]","''",".","Set","to","None","to","disable","thumbnails","and","use","the","full","images","from","the","datasource","instead",".","purpose",":","Datasource","purpose",",","determines","if","datasource","is","read","only","(","INPUT",")","or","can","be","written","to","as","well","(","LIGHTLY",",","INPUT_OUTPUT",")","."]
code: def set_gcs_config(
      self,
      resource_path: str,
      project_id: str,
      credentials: str,
      thumbnail_suffix: Optional[
          str
      ] = ".lightly/thumbnails/[filename]_thumb.[extension]",
      purpose: str = DatasourcePurpose.INPUT_OUTPUT,
  ) -> None:
      """Sets the Google Cloud Storage configuration for the datasource of the
      current dataset.
  
      See our docs for a detailed explanation on how to setup Lightly with
      Google Cloud Storage: https://docs.lightly.ai/docs/google-cloud-storage
  
      Args:
          resource_path:
              GCS url of your dataset, for example: "gs://my_bucket/path/to/my/data"
          project_id:
              GCS project id.
          credentials:
              Content of the credentials JSON file stringified which you
              download from Google Cloud Platform.
          thumbnail_suffix:
              Where to save thumbnails of the images in the dataset, for
              example ".lightly/thumbnails/[filename]_thumb.[extension]".
              Set to None to disable thumbnails and use the full images from the
              datasource instead.
          purpose:
              Datasource purpose, determines if datasource is read only (INPUT)
              or can be written to as well (LIGHTLY, INPUT_OUTPUT).
  
      """
      # TODO: Use DatasourceConfigGCS once we switch/update the api generator.
      self._datasources_api.update_datasource_by_dataset_id(
          datasource_config=DatasourceConfig.from_dict(
              {
                  "type": "GCS",
                  "fullPath": resource_path,
                  "thumbSuffix": thumbnail_suffix,
                  "gcsProjectId": project_id,
                  "gcsCredentials": credentials,
                  "purpose": purpose,
              }
          ),
          dataset_id=self.dataset_id,
      )
  
imports: import time
  import warnings
  from typing import Dict, Iterator, List, Optional, Set, Tuple, Union
  import tqdm
  from lightly.openapi_generated.swagger_client.models import DatasourceConfig, DatasourceProcessedUntilTimestampRequest, DatasourceProcessedUntilTimestampResponse, DatasourcePurpose, DatasourceRawSamplesData
  from lightly.openapi_generated.swagger_client.models.datasource_raw_samples_data_row import DatasourceRawSamplesDataRow
label_desc: Use image node_id 11 for calling the _DatasourcesMixin obj's underlying member method code with example usage: obj.set_gcs_config(resource_path, project_id, credentials, thumbnail_suffix, purpose) without return types