Class protos.google.cloud.functions.v2beta.FunctionService (3.3.0)

Represents a FunctionService

Inheritance

$protobuf.rpc.Service > protos.google.cloud.functions.v2beta.FunctionService

Package

@google-cloud/functions

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);

Constructs a new FunctionService service.

Parameters
Name Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Methods

create(rpcImpl, requestDelimited, responseDelimited)

public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): FunctionService;

Creates new FunctionService service using the specified rpc implementation.

Parameters
Name Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Returns
Type Description
FunctionService

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

createFunction(request, callback)

public createFunction(request: google.cloud.functions.v2beta.ICreateFunctionRequest, callback: google.cloud.functions.v2beta.FunctionService.CreateFunctionCallback): void;

Calls CreateFunction.

Parameters
Name Description
request ICreateFunctionRequest

CreateFunctionRequest message or plain object

callback CreateFunctionCallback

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

Returns
Type Description
void

createFunction(request)

public createFunction(request: google.cloud.functions.v2beta.ICreateFunctionRequest): Promise<google.longrunning.Operation>;

Calls CreateFunction.

Parameter
Name Description
request ICreateFunctionRequest

CreateFunctionRequest message or plain object

Returns
Type Description
Promise<google.longrunning.Operation>

Promise

deleteFunction(request, callback)

public deleteFunction(request: google.cloud.functions.v2beta.IDeleteFunctionRequest, callback: google.cloud.functions.v2beta.FunctionService.DeleteFunctionCallback): void;

Calls DeleteFunction.

Parameters
Name Description
request IDeleteFunctionRequest

DeleteFunctionRequest message or plain object

callback DeleteFunctionCallback

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

Returns
Type Description
void

deleteFunction(request)

public deleteFunction(request: google.cloud.functions.v2beta.IDeleteFunctionRequest): Promise<google.longrunning.Operation>;

Calls DeleteFunction.

Parameter
Name Description
request IDeleteFunctionRequest

DeleteFunctionRequest message or plain object

Returns
Type Description
Promise<google.longrunning.Operation>

Promise

generateDownloadUrl(request, callback)

public generateDownloadUrl(request: google.cloud.functions.v2beta.IGenerateDownloadUrlRequest, callback: google.cloud.functions.v2beta.FunctionService.GenerateDownloadUrlCallback): void;

Calls GenerateDownloadUrl.

Parameters
Name Description
request IGenerateDownloadUrlRequest

GenerateDownloadUrlRequest message or plain object

callback GenerateDownloadUrlCallback

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

Returns
Type Description
void

generateDownloadUrl(request)

public generateDownloadUrl(request: google.cloud.functions.v2beta.IGenerateDownloadUrlRequest): Promise<google.cloud.functions.v2beta.GenerateDownloadUrlResponse>;

Calls GenerateDownloadUrl.

Parameter
Name Description
request IGenerateDownloadUrlRequest

GenerateDownloadUrlRequest message or plain object

Returns
Type Description
Promise<google.cloud.functions.v2beta.GenerateDownloadUrlResponse>

Promise

generateUploadUrl(request, callback)

public generateUploadUrl(request: google.cloud.functions.v2beta.IGenerateUploadUrlRequest, callback: google.cloud.functions.v2beta.FunctionService.GenerateUploadUrlCallback): void;

Calls GenerateUploadUrl.

Parameters
Name Description
request IGenerateUploadUrlRequest

GenerateUploadUrlRequest message or plain object

callback GenerateUploadUrlCallback

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

Returns
Type Description
void

generateUploadUrl(request)

public generateUploadUrl(request: google.cloud.functions.v2beta.IGenerateUploadUrlRequest): Promise<google.cloud.functions.v2beta.GenerateUploadUrlResponse>;

Calls GenerateUploadUrl.

Parameter
Name Description
request IGenerateUploadUrlRequest

GenerateUploadUrlRequest message or plain object

Returns
Type Description
Promise<google.cloud.functions.v2beta.GenerateUploadUrlResponse>

Promise

getFunction(request, callback)

public getFunction(request: google.cloud.functions.v2beta.IGetFunctionRequest, callback: google.cloud.functions.v2beta.FunctionService.GetFunctionCallback): void;

Calls GetFunction.

Parameters
Name Description
request IGetFunctionRequest

GetFunctionRequest message or plain object

callback GetFunctionCallback

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

Returns
Type Description
void

getFunction(request)

public getFunction(request: google.cloud.functions.v2beta.IGetFunctionRequest): Promise<google.cloud.functions.v2beta.Function>;

Calls GetFunction.

Parameter
Name Description
request IGetFunctionRequest

GetFunctionRequest message or plain object

Returns
Type Description
Promise<google.cloud.functions.v2beta.Function>

Promise

listFunctions(request, callback)

public listFunctions(request: google.cloud.functions.v2beta.IListFunctionsRequest, callback: google.cloud.functions.v2beta.FunctionService.ListFunctionsCallback): void;

Calls ListFunctions.

Parameters
Name Description
request IListFunctionsRequest

ListFunctionsRequest message or plain object

callback ListFunctionsCallback

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

Returns
Type Description
void

listFunctions(request)

public listFunctions(request: google.cloud.functions.v2beta.IListFunctionsRequest): Promise<google.cloud.functions.v2beta.ListFunctionsResponse>;

Calls ListFunctions.

Parameter
Name Description
request IListFunctionsRequest

ListFunctionsRequest message or plain object

Returns
Type Description
Promise<google.cloud.functions.v2beta.ListFunctionsResponse>

Promise

listRuntimes(request, callback)

public listRuntimes(request: google.cloud.functions.v2beta.IListRuntimesRequest, callback: google.cloud.functions.v2beta.FunctionService.ListRuntimesCallback): void;

Calls ListRuntimes.

Parameters
Name Description
request IListRuntimesRequest

ListRuntimesRequest message or plain object

callback ListRuntimesCallback

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

Returns
Type Description
void

listRuntimes(request)

public listRuntimes(request: google.cloud.functions.v2beta.IListRuntimesRequest): Promise<google.cloud.functions.v2beta.ListRuntimesResponse>;

Calls ListRuntimes.

Parameter
Name Description
request IListRuntimesRequest

ListRuntimesRequest message or plain object

Returns
Type Description
Promise<google.cloud.functions.v2beta.ListRuntimesResponse>

Promise

updateFunction(request, callback)

public updateFunction(request: google.cloud.functions.v2beta.IUpdateFunctionRequest, callback: google.cloud.functions.v2beta.FunctionService.UpdateFunctionCallback): void;

Calls UpdateFunction.

Parameters
Name Description
request IUpdateFunctionRequest

UpdateFunctionRequest message or plain object

callback UpdateFunctionCallback

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

Returns
Type Description
void

updateFunction(request)

public updateFunction(request: google.cloud.functions.v2beta.IUpdateFunctionRequest): Promise<google.longrunning.Operation>;

Calls UpdateFunction.

Parameter
Name Description
request IUpdateFunctionRequest

UpdateFunctionRequest message or plain object

Returns
Type Description
Promise<google.longrunning.Operation>

Promise