docstr: Sets the Telekom OBS configuration for the datasource of the current dataset.
  
  Args:
      resource_path:
          OBS url of your dataset. For example, "obs://my_bucket/path/to/my/data".
      obs_endpoint:
          OBS endpoint.
      obs_access_key_id:
          OBS access key id.
      obs_secret_access_key:
          OBS secret access key.
      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","Telekom","OBS","configuration","for","the","datasource","of","the","current","dataset",".","Args",":","resource_path",":","OBS","url","of","your","dataset",".","For","example",",","``","obs",":","\/\/my_bucket\/path\/to\/my\/data","''",".","obs_endpoint",":","OBS","endpoint",".","obs_access_key_id",":","OBS","access","key","id",".","obs_secret_access_key",":","OBS","secret","access","key",".","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_obs_config(
      self,
      resource_path: str,
      obs_endpoint: str,
      obs_access_key_id: str,
      obs_secret_access_key: str,
      thumbnail_suffix: Optional[
          str
      ] = ".lightly/thumbnails/[filename]_thumb.[extension]",
      purpose: str = DatasourcePurpose.INPUT_OUTPUT,
  ) -> None:
      """Sets the Telekom OBS configuration for the datasource of the current dataset.
  
      Args:
          resource_path:
              OBS url of your dataset. For example, "obs://my_bucket/path/to/my/data".
          obs_endpoint:
              OBS endpoint.
          obs_access_key_id:
              OBS access key id.
          obs_secret_access_key:
              OBS secret access key.
          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 DatasourceConfigOBS once we switch/update the api generator.
      self._datasources_api.update_datasource_by_dataset_id(
          datasource_config=DatasourceConfig.from_dict(
              {
                  "type": "OBS",
                  "fullPath": resource_path,
                  "thumbSuffix": thumbnail_suffix,
                  "obsEndpoint": obs_endpoint,
                  "obsAccessKeyId": obs_access_key_id,
                  "obsSecretAccessKey": obs_secret_access_key,
                  "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 15 for calling the _DatasourcesMixin obj's underlying member method code with example usage: obj.set_obs_config(resource_path, obs_endpoint, obs_access_key_id, obs_secret_access_key, thumbnail_suffix, purpose) without return types