You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"""Build an ObjectStoreConfig instance for HTTP object stores.
47
+
48
+
Parameters
49
+
----------
50
+
opts: dict[str, str] | None
51
+
A dictionary of options for the HTTP object store. See https://docs.rs/object_store/latest/object_store/client/enum.ClientConfigKey.html#variants for a list of possible keys in snake case format.
52
+
"""
53
+
returnObjectStoreConfig.Http(opts)
54
+
55
+
43
56
defs3_store(
44
57
region: str|None=None,
45
58
endpoint_url: str|None=None,
@@ -332,6 +345,19 @@ def r2_storage(
332
345
)
333
346
334
347
348
+
defgcs_store(
349
+
opts: dict[str, str] |None=None,
350
+
) ->ObjectStoreConfig.Gcs:
351
+
"""Build an ObjectStoreConfig instance for Google Cloud Storage object stores.
352
+
353
+
Parameters
354
+
----------
355
+
opts: dict[str, str] | None
356
+
A dictionary of options for the Google Cloud Storage object store. See https://docs.rs/object_store/latest/object_store/gcp/enum.GoogleConfigKey.html#variants for a list of possible configuration keys.
357
+
"""
358
+
returnObjectStoreConfig.Gcs(opts)
359
+
360
+
335
361
defgcs_storage(
336
362
*,
337
363
bucket: str,
@@ -353,10 +379,18 @@ def gcs_storage(
353
379
The bucket where the repository will store its data
354
380
prefix: str | None
355
381
The prefix within the bucket that is the root directory of the repository
356
-
from_env: bool | None
357
-
Fetch credentials from the operative system environment
382
+
service_account_file: str | None
383
+
The path to the service account file
384
+
service_account_key: str | None
385
+
The service account key
386
+
application_credentials: str | None
387
+
The path to the application credentials file
358
388
bearer_token: str | None
359
389
The bearer token to use for the object store
390
+
from_env: bool | None
391
+
Fetch credentials from the operative system environment
392
+
config: dict[str, str] | None
393
+
A dictionary of options for the Google Cloud Storage object store. See https://docs.rs/object_store/latest/object_store/gcp/enum.GoogleConfigKey.html#variants for a list of possible configuration keys.
Use this function to get and refresh object store credentials
362
396
scatter_initial_credentials: bool, optional
@@ -412,6 +446,8 @@ def azure_storage(
412
446
Azure Blob Storage credential bearer token
413
447
from_env: bool | None
414
448
Fetch credentials from the operative system environment
449
+
config: dict[str, str] | None
450
+
A dictionary of options for the Azure Blob Storage object store. See https://docs.rs/object_store/latest/object_store/azure/enum.AzureConfigKey.html#variants for a list of possible configuration keys.
0 commit comments