GCSApi (Cloud Storage APIs)
getTrilloGCSBucket
Get the cloud storage bucket name being used by the workbench.
GCSApi.getTrilloGCSBucket()parameters:
noneReturn:
The Trillo GCS bucket.getTrilloGCSBucketURI
same as above but returns a URI of storage bucket.
GCSApi.getTrilloGCSBucketURI()parameters:
noneReturn:
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:
noneReturn:
The temporary GCS path.getDefaultRootFolder
Get the default root path on the storage bucket.
GCSApi.getDefaultRootFolder()parameters:
noneReturn:
The default root folder.Last updated