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
  • get
  • post
  • put
  • delete
  • patch
  • publish
  • subscribe
  • unsubscribe
  1. Google Cloud APIs

GCPRestApi

get

Make GET call for GCPRestApi.

GCPRestApi.get(requestUrl)

or

GCPRestApi.get(requestUrl, serviceAccountKeyPropName, 
authenticationPath)

or

GCPRestApi.get(requestUrl, refreshToken, clientId, 
clientSecret)

Parameters

requestUrl (string)
serviceAccountKeyPropName (string)
authenticationPath (string)
refreshToken (string)
clientId (string)
clientSecret (string)

Returns

Object

post

Make POST call for GCPRestApi.

GCPRestApi.post(requestUrl, body)

or

GCPRestApi.post(requestUrl, body, headers)

or

GCPRestApi.post(requestUrl, body, serviceAccountKeyPropName, 
authenticationPath)

or

GCPRestApi.post(requestUrl, body, refreshToken, clientId, 
clientSecret)

or 

GCPRestApi.post(requestUrl, body, headers,
      refreshToken, clientId, clientSecret)
      
or

GCPRestApi.post(requestUrl, body, headers,
      serviceAccountKeyPropName, authenticationPath)

Parameters

requestUrl (string)
body (object)
serviceAccountKeyPropName (string)
authenticationPath (string)
refreshToken (string)
clientId (string)
clientSecret (string)
headers (dictionary)

Returns

Object

put

Make PUT call for GCPRestApi.

GCPRestApi.put(requestUrl, body)

or

GCPRestApi.put(requestUrl, body, serviceAccountKeyPropName, 
authenticationPath)

or

GCPRestApi.put(requestUrl, body, refreshToken, clientId, 
clientSecret)

Parameters

requestUrl (string)
body (object)
serviceAccountKeyPropName (string)
authenticationPath (string)
refreshToken (string)
clientId (string)
clientSecret (string)

Returns

Object

delete

Make DELETE call for GCPRestApi.

GCPRestApi.delete(requestUrl, body)

or

GCPRestApi.delete(requestUrl, body, serviceAccountKeyPropName, 
authenticationPath)

or

GCPRestApi.delete(requestUrl, body, refreshToken, clientId, 
clientSecret)

Parameters

requestUrl (string)
body (object)
serviceAccountKeyPropName (string)
authenticationPath (string)
refreshToken (string)
clientId (string)
clientSecret (string)

Returns

Object

patch

Make PATCH call for GCPRestApi.

GCPRestApi.patch(requestUrl, body)

or

GCPRestApi.patch(requestUrl, body, serviceAccountKeyPropName,
                           authenticationPath)

or

GCPRestApi.patch(requestUrl, body, refreshToken, clientId,
                           clientSecret)

Parameters

requestUrl (string)
body (object)
serviceAccountKeyPropName (string)
authenticationPath (string)
refreshToken (string)
clientIdv
clientSecret (string)

Returns

Object

publish

publish message

GCPRestApi.publish(topicId, message)

Parameters

topicId (string)
message (object)

Returns

Result

subscribe

subscribe message

GCPRestApi.subscribe(subscriptionId, receiver)

Parameters

subscriptionId (string)
receiver (string)

Returns

Result

unsubscribe

unsubscribe message

GCPRestApi.serviceAccountKeyToToken(serviceAccountKeyPropName,
      authenticationPath)

Parameters

serviceAccountKeyPropName (string)
authenticationPath (string)

Returns

GCPTokenInfo

PreviousGCPAuthApiNextGCPTokenInfo

Last updated 1 year ago