@@ -146,6 +146,12 @@ def upsert_blob_storage_integration(
146146 Examples
147147 --------
148148 from langfuse import LangfuseAPI
149+ from langfuse.blob_storage_integrations import (
150+ BlobStorageExportFrequency,
151+ BlobStorageExportMode,
152+ BlobStorageIntegrationFileType,
153+ BlobStorageIntegrationType,
154+ )
149155
150156 client = LangfuseAPI(
151157 x_langfuse_sdk_name="YOUR_X_LANGFUSE_SDK_NAME",
@@ -157,14 +163,14 @@ def upsert_blob_storage_integration(
157163 )
158164 client.blob_storage_integrations.upsert_blob_storage_integration(
159165 project_id="projectId",
160- type="S3" ,
166+ type=BlobStorageIntegrationType.S3 ,
161167 bucket_name="bucketName",
162168 region="region",
163- export_frequency="hourly" ,
169+ export_frequency=BlobStorageExportFrequency.HOURLY ,
164170 enabled=True,
165171 force_path_style=True,
166- file_type=" JSON" ,
167- export_mode=" FULL_HISTORY" ,
172+ file_type=BlobStorageIntegrationFileType. JSON,
173+ export_mode=BlobStorageExportMode. FULL_HISTORY,
168174 )
169175 """
170176 _response = self ._raw_client .upsert_blob_storage_integration (
@@ -358,6 +364,12 @@ async def upsert_blob_storage_integration(
358364 import asyncio
359365
360366 from langfuse import AsyncLangfuseAPI
367+ from langfuse.blob_storage_integrations import (
368+ BlobStorageExportFrequency,
369+ BlobStorageExportMode,
370+ BlobStorageIntegrationFileType,
371+ BlobStorageIntegrationType,
372+ )
361373
362374 client = AsyncLangfuseAPI(
363375 x_langfuse_sdk_name="YOUR_X_LANGFUSE_SDK_NAME",
@@ -372,14 +384,14 @@ async def upsert_blob_storage_integration(
372384 async def main() -> None:
373385 await client.blob_storage_integrations.upsert_blob_storage_integration(
374386 project_id="projectId",
375- type="S3" ,
387+ type=BlobStorageIntegrationType.S3 ,
376388 bucket_name="bucketName",
377389 region="region",
378- export_frequency="hourly" ,
390+ export_frequency=BlobStorageExportFrequency.HOURLY ,
379391 enabled=True,
380392 force_path_style=True,
381- file_type=" JSON" ,
382- export_mode=" FULL_HISTORY" ,
393+ file_type=BlobStorageIntegrationFileType. JSON,
394+ export_mode=BlobStorageExportMode. FULL_HISTORY,
383395 )
384396
385397
0 commit comments