# 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
```

