GCSApi (Cloud Storage APIs)

getTrilloGCSBucket

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

GCSApi.getTrilloGCSBucket()

parameters:

none​

Return:

the name of the bucket​ as String

getTrilloGCSBucketURI

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

GCSApi.getTrilloGCSBucketURI()

parameters:

none​

Return:

uri of the bucket​ as String

getGCSFileURI

Get the file URI path from the cloud storage bucket.

GCSApi.getGCSFileURI(String pathToFile)

or

BigQueryApi.getGCSFileURI(String path, String fileName)

parameters:

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

Return:

uri of bucket file path​ as String

getLocalPath

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

GCSApi.getLocalPath (String bucketPath)

parameters:

bucket name and path

Return:

the locally mapped path name  as String

getGCSPath

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

GCSApi.getGCSPath(String appDataPath)

parameters:

appDataPath

Return:

the path​ as String

getGCSTempPath

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

GCSApi.getGCSTempPath()

parameters:

none​

Return:

temporary path​

getDefaultRootFolder

Get the default root path on the storage bucket.

GCSApi.getDefaultRootFolder()

parameters:

none​

Return:

the root path​

Last updated