CloudFunctionsService

google.cloud.functions.v1. CloudFunctionsService

Represents a CloudFunctionsService

Constructor

new CloudFunctionsService(rpcImpl, requestDelimitedopt, responseDelimitedopt)

Constructs a new CloudFunctionsService service.

Parameters:
Name Type Attributes Default Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean <optional>
false

Whether requests are length-delimited

responseDelimited boolean <optional>
false

Whether responses are length-delimited

Extends

  • $protobuf.rpc.Service

Methods

callFunction(request, callback) → {undefined}

Calls CallFunction.

Parameters:
Name Type Description
request google.cloud.functions.v1.ICallFunctionRequest

CallFunctionRequest message or plain object

callback google.cloud.functions.v1.CloudFunctionsService.CallFunctionCallback

Node-style callback called with the error, if any, and CallFunctionResponse

Returns:
Type Description
undefined

callFunction(request) → {Promise.<google.cloud.functions.v1.CallFunctionResponse>}

Calls CallFunction.

Parameters:
Name Type Description
request google.cloud.functions.v1.ICallFunctionRequest

CallFunctionRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.functions.v1.CallFunctionResponse>

Promise

createFunction(request, callback) → {undefined}

Calls CreateFunction.

Parameters:
Name Type Description
request google.cloud.functions.v1.ICreateFunctionRequest

CreateFunctionRequest message or plain object

callback google.cloud.functions.v1.CloudFunctionsService.CreateFunctionCallback

Node-style callback called with the error, if any, and Operation

Returns:
Type Description
undefined

createFunction(request) → {Promise.<google.longrunning.Operation>}

Calls CreateFunction.

Parameters:
Name Type Description
request google.cloud.functions.v1.ICreateFunctionRequest

CreateFunctionRequest message or plain object

Returns:
Type Description
Promise.<google.longrunning.Operation>

Promise

deleteFunction(request, callback) → {undefined}

Calls DeleteFunction.

Parameters:
Name Type Description
request google.cloud.functions.v1.IDeleteFunctionRequest

DeleteFunctionRequest message or plain object

callback google.cloud.functions.v1.CloudFunctionsService.DeleteFunctionCallback

Node-style callback called with the error, if any, and Operation

Returns:
Type Description
undefined

deleteFunction(request) → {Promise.<google.longrunning.Operation>}

Calls DeleteFunction.

Parameters:
Name Type Description
request google.cloud.functions.v1.IDeleteFunctionRequest

DeleteFunctionRequest message or plain object

Returns:
Type Description
Promise.<google.longrunning.Operation>

Promise

generateDownloadUrl(request, callback) → {undefined}

Calls GenerateDownloadUrl.

Parameters:
Name Type Description
request google.cloud.functions.v1.IGenerateDownloadUrlRequest

GenerateDownloadUrlRequest message or plain object

callback google.cloud.functions.v1.CloudFunctionsService.GenerateDownloadUrlCallback

Node-style callback called with the error, if any, and GenerateDownloadUrlResponse

Returns:
Type Description
undefined

generateDownloadUrl(request) → {Promise.<google.cloud.functions.v1.GenerateDownloadUrlResponse>}

Calls GenerateDownloadUrl.

Parameters:
Name Type Description
request google.cloud.functions.v1.IGenerateDownloadUrlRequest

GenerateDownloadUrlRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.functions.v1.GenerateDownloadUrlResponse>

Promise

generateUploadUrl(request, callback) → {undefined}

Calls GenerateUploadUrl.

Parameters:
Name Type Description
request google.cloud.functions.v1.IGenerateUploadUrlRequest

GenerateUploadUrlRequest message or plain object

callback google.cloud.functions.v1.CloudFunctionsService.GenerateUploadUrlCallback

Node-style callback called with the error, if any, and GenerateUploadUrlResponse

Returns:
Type Description
undefined

generateUploadUrl(request) → {Promise.<google.cloud.functions.v1.GenerateUploadUrlResponse>}

Calls GenerateUploadUrl.

Parameters:
Name Type Description
request google.cloud.functions.v1.IGenerateUploadUrlRequest

GenerateUploadUrlRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.functions.v1.GenerateUploadUrlResponse>

Promise

getFunction(request, callback) → {undefined}

Calls GetFunction.

Parameters:
Name Type Description
request google.cloud.functions.v1.IGetFunctionRequest

GetFunctionRequest message or plain object

callback google.cloud.functions.v1.CloudFunctionsService.GetFunctionCallback

Node-style callback called with the error, if any, and CloudFunction

Returns:
Type Description
undefined

getFunction(request) → {Promise.<google.cloud.functions.v1.CloudFunction>}

Calls GetFunction.

Parameters:
Name Type Description
request google.cloud.functions.v1.IGetFunctionRequest

GetFunctionRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.functions.v1.CloudFunction>

Promise

getIamPolicy(request, callback) → {undefined}

Calls GetIamPolicy.

Parameters:
Name Type Description
request google.iam.v1.IGetIamPolicyRequest

GetIamPolicyRequest message or plain object

callback google.cloud.functions.v1.CloudFunctionsService.GetIamPolicyCallback

Node-style callback called with the error, if any, and Policy

Returns:
Type Description
undefined

getIamPolicy(request) → {Promise.<google.iam.v1.Policy>}

Calls GetIamPolicy.

Parameters:
Name Type Description
request google.iam.v1.IGetIamPolicyRequest

GetIamPolicyRequest message or plain object

Returns:
Type Description
Promise.<google.iam.v1.Policy>

Promise

listFunctions(request, callback) → {undefined}

Calls ListFunctions.

Parameters:
Name Type Description
request google.cloud.functions.v1.IListFunctionsRequest

ListFunctionsRequest message or plain object

callback google.cloud.functions.v1.CloudFunctionsService.ListFunctionsCallback

Node-style callback called with the error, if any, and ListFunctionsResponse

Returns:
Type Description
undefined

listFunctions(request) → {Promise.<google.cloud.functions.v1.ListFunctionsResponse>}

Calls ListFunctions.

Parameters:
Name Type Description
request google.cloud.functions.v1.IListFunctionsRequest

ListFunctionsRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.functions.v1.ListFunctionsResponse>

Promise

setIamPolicy(request, callback) → {undefined}

Calls SetIamPolicy.

Parameters:
Name Type Description
request google.iam.v1.ISetIamPolicyRequest

SetIamPolicyRequest message or plain object

callback google.cloud.functions.v1.CloudFunctionsService.SetIamPolicyCallback

Node-style callback called with the error, if any, and Policy

Returns:
Type Description
undefined

setIamPolicy(request) → {Promise.<google.iam.v1.Policy>}

Calls SetIamPolicy.

Parameters:
Name Type Description
request google.iam.v1.ISetIamPolicyRequest

SetIamPolicyRequest message or plain object

Returns:
Type Description
Promise.<google.iam.v1.Policy>

Promise

testIamPermissions(request, callback) → {undefined}

Calls TestIamPermissions.

Parameters:
Name Type Description
request google.iam.v1.ITestIamPermissionsRequest

TestIamPermissionsRequest message or plain object

callback google.cloud.functions.v1.CloudFunctionsService.TestIamPermissionsCallback

Node-style callback called with the error, if any, and TestIamPermissionsResponse

Returns:
Type Description
undefined

testIamPermissions(request) → {Promise.<google.iam.v1.TestIamPermissionsResponse>}

Calls TestIamPermissions.

Parameters:
Name Type Description
request google.iam.v1.ITestIamPermissionsRequest

TestIamPermissionsRequest message or plain object

Returns:
Type Description
Promise.<google.iam.v1.TestIamPermissionsResponse>

Promise

updateFunction(request, callback) → {undefined}

Calls UpdateFunction.

Parameters:
Name Type Description
request google.cloud.functions.v1.IUpdateFunctionRequest

UpdateFunctionRequest message or plain object

callback google.cloud.functions.v1.CloudFunctionsService.UpdateFunctionCallback

Node-style callback called with the error, if any, and Operation

Returns:
Type Description
undefined

updateFunction(request) → {Promise.<google.longrunning.Operation>}

Calls UpdateFunction.

Parameters:
Name Type Description
request google.cloud.functions.v1.IUpdateFunctionRequest

UpdateFunctionRequest message or plain object

Returns:
Type Description
Promise.<google.longrunning.Operation>

Promise

(static) create(rpcImpl, requestDelimitedopt, responseDelimitedopt) → {CloudFunctionsService}

Creates new CloudFunctionsService service using the specified rpc implementation.

Parameters:
Name Type Attributes Default Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean <optional>
false

Whether requests are length-delimited

responseDelimited boolean <optional>
false

Whether responses are length-delimited

Returns:
Type Description
CloudFunctionsService

RPC service. Useful where requests and/or responses are streamed.

Type Definitions

CallFunctionCallback(error, responseopt)

Callback as used by callFunction.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.functions.v1.CallFunctionResponse <optional>

CallFunctionResponse

CreateFunctionCallback(error, responseopt)

Callback as used by createFunction.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.longrunning.Operation <optional>

Operation

DeleteFunctionCallback(error, responseopt)

Callback as used by deleteFunction.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.longrunning.Operation <optional>

Operation

GenerateDownloadUrlCallback(error, responseopt)

Callback as used by generateDownloadUrl.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.functions.v1.GenerateDownloadUrlResponse <optional>

GenerateDownloadUrlResponse

GenerateUploadUrlCallback(error, responseopt)

Callback as used by generateUploadUrl.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.functions.v1.GenerateUploadUrlResponse <optional>

GenerateUploadUrlResponse

GetFunctionCallback(error, responseopt)

Callback as used by getFunction.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.functions.v1.CloudFunction <optional>

CloudFunction

GetIamPolicyCallback(error, responseopt)

Callback as used by getIamPolicy.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.iam.v1.Policy <optional>

Policy

ListFunctionsCallback(error, responseopt)

Callback as used by listFunctions.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.functions.v1.ListFunctionsResponse <optional>

ListFunctionsResponse

SetIamPolicyCallback(error, responseopt)

Callback as used by setIamPolicy.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.iam.v1.Policy <optional>

Policy

TestIamPermissionsCallback(error, responseopt)

Callback as used by testIamPermissions.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.iam.v1.TestIamPermissionsResponse <optional>

TestIamPermissionsResponse

UpdateFunctionCallback(error, responseopt)

Callback as used by updateFunction.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.longrunning.Operation <optional>

Operation