Trillo Workbench Python SDK
  • Introduction
    • Sample Example
  • BaseApi (Basic APIs)
  • LogApi (Logging APIs)
  • DSApi (Database APIs)
    • Overview
    • Retrieve APIs
    • Create and Update API
    • Delete APIs
    • Empty Table
    • Sample Functions Using API
  • FuncApi (Function APIs)
  • TaskApi (Task APIs)
  • CacheApi (Memory Cache APIs)
    • Delete APIs
    • Create and Update API
    • Retrieve APIs
  • StorageApi
  • CallLogger (Logging Level APIs)
  • CommandApi
  • OAuth1Api
  • Google Cloud APIs
    • BigQueryApi (BigQuery APIs)
    • GCSApi (Cloud Storage APIs)
    • GCPAuthApi
    • GCPRestApi
    • GCPTokenInfo
  • Metadata API (MetaApi)
    • Create and Update API
    • All Retrieve-Only
  • UMApi (User, Tenant, Roles APIs)
  • HttpApi (HTTP APIs)
  • SFTPApi
  • FileUtil
  • CSVApi
  • EmailApi (Email APIs)
  • DLPApi
  • DocApi
  • FolderApi
  • GCPGenApi
  • Util
Powered by GitBook
On this page
  • getTrilloGCSBucket
  • getTrilloGCSBucketURI
  • getGCSFileURI
  • getLocalPath
  • getGCSPath
  • getGCSTempPath
  • getDefaultRootFolder
  1. Google Cloud APIs

GCSApi (Cloud Storage APIs)

getTrilloGCSBucket

Get the cloud storage bucket name being used by the workbench.

GCSApi.getTrilloGCSBucket()

parameters:

none​

Return:

The Trillo GCS bucket.

getTrilloGCSBucketURI

same as above but returns a URI of storage bucket.​

GCSApi.getTrilloGCSBucketURI()

parameters:

none​

Return:

The URI of the Trillo GCS bucket.

getGCSFileURI

Get the file URI path from the cloud storage bucket.

GCSApi.getGCSFileURI(pathToFile)

or

BigQueryApi.getGCSFileURI(path, fileName)

parameters:

pathToFile: path to the file (string)
path:       same as above (string)
fileName:   name of the file (string)

Return:

The URI of the GCS file.

getLocalPath

Cloud storage bucket is mapped locally by the workbench​ so its path is available.

GCSApi.getLocalPath (bucketPath)

parameters:

bucket name and path (string)

Return:

The local path corresponding to the bucket path.

getGCSPath

Get cloud storage bucket path from the app Data path provided.​

GCSApi.getGCSPath(appDataPath)

parameters:

appDataPath (string)

Return:

The GCS path corresponding to the app data path.

getGCSTempPath

Get the temporary path on the cloud storage bucket being used by the workbench

GCSApi.getGCSTempPath()

parameters:

none​

Return:

The temporary GCS path.

getDefaultRootFolder

Get the default root path on the storage bucket.

GCSApi.getDefaultRootFolder()

parameters:

none​

Return:

The default root folder.
PreviousBigQueryApi (BigQuery APIs)NextGCPAuthApi

Last updated 1 year ago