Skip to main content

GCS

Any GCS specific configuration.

Constructor​

Signature​

def GCS() -> null

Methods​


auto()​

@classmethod
def auto(cls) -> GCS: ...

Automatically constructs a GCS configuration instance by resolving settings from environment variables and system defaults.

Returns​

TypeDescription
[GCS](gcs.md?sid=flyte_storage__config_gcs)A new GCS instance populated with automatically detected configuration values.

get_fsspec_kwargs()​

def get_fsspec_kwargs(self, anonymous: bool = False, **kwargs) -> typing.Dict[str, typing.Any]: ...

Generates a dictionary of configuration parameters compatible with fsspec for interacting with Google Cloud Storage.

Parameters​

NameTypeDescription
anonymousbool = FalseWhether to connect to GCS without using credentials, typically for accessing public buckets.
kwargsAnyAdditional keyword arguments to be merged into the resulting fsspec configuration dictionary.

Returns​

TypeDescription
typing.Dict[str, typing.Any]A dictionary containing authentication and configuration keys used to initialize an fsspec GCS filesystem.