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

Represents a FunctionService

Inheritance

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

Package

@google-cloud/functions

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

Constructs a new FunctionService service.

Parameters
NameDescription
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
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Returns
TypeDescription
FunctionService

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

createFunction(request, callback)

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

Calls CreateFunction.

Parameters
NameDescription
request ICreateFunctionRequest

CreateFunctionRequest message or plain object

callback CreateFunctionCallback

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

Returns
TypeDescription
void

createFunction(request)

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

Calls CreateFunction.

Parameter
NameDescription
request ICreateFunctionRequest

CreateFunctionRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise

deleteFunction(request, callback)

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

Calls DeleteFunction.

Parameters
NameDescription
request IDeleteFunctionRequest

DeleteFunctionRequest message or plain object

callback DeleteFunctionCallback

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

Returns
TypeDescription
void

deleteFunction(request)

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

Calls DeleteFunction.

Parameter
NameDescription
request IDeleteFunctionRequest

DeleteFunctionRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise

generateDownloadUrl(request, callback)

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

Calls GenerateDownloadUrl.

Parameters
NameDescription
request IGenerateDownloadUrlRequest

GenerateDownloadUrlRequest message or plain object

callback GenerateDownloadUrlCallback

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

Returns
TypeDescription
void

generateDownloadUrl(request)

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

Calls GenerateDownloadUrl.

Parameter
NameDescription
request IGenerateDownloadUrlRequest

GenerateDownloadUrlRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.functions.v2.GenerateDownloadUrlResponse>

Promise

generateUploadUrl(request, callback)

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

Calls GenerateUploadUrl.

Parameters
NameDescription
request IGenerateUploadUrlRequest

GenerateUploadUrlRequest message or plain object

callback GenerateUploadUrlCallback

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

Returns
TypeDescription
void

generateUploadUrl(request)

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

Calls GenerateUploadUrl.

Parameter
NameDescription
request IGenerateUploadUrlRequest

GenerateUploadUrlRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.functions.v2.GenerateUploadUrlResponse>

Promise

getFunction(request, callback)

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

Calls GetFunction.

Parameters
NameDescription
request IGetFunctionRequest

GetFunctionRequest message or plain object

callback GetFunctionCallback

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

Returns
TypeDescription
void

getFunction(request)

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

Calls GetFunction.

Parameter
NameDescription
request IGetFunctionRequest

GetFunctionRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.functions.v2.Function>

Promise

listFunctions(request, callback)

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

Calls ListFunctions.

Parameters
NameDescription
request IListFunctionsRequest

ListFunctionsRequest message or plain object

callback ListFunctionsCallback

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

Returns
TypeDescription
void

listFunctions(request)

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

Calls ListFunctions.

Parameter
NameDescription
request IListFunctionsRequest

ListFunctionsRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.functions.v2.ListFunctionsResponse>

Promise

listRuntimes(request, callback)

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

Calls ListRuntimes.

Parameters
NameDescription
request IListRuntimesRequest

ListRuntimesRequest message or plain object

callback ListRuntimesCallback

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

Returns
TypeDescription
void

listRuntimes(request)

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

Calls ListRuntimes.

Parameter
NameDescription
request IListRuntimesRequest

ListRuntimesRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.functions.v2.ListRuntimesResponse>

Promise

updateFunction(request, callback)

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

Calls UpdateFunction.

Parameters
NameDescription
request IUpdateFunctionRequest

UpdateFunctionRequest message or plain object

callback UpdateFunctionCallback

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

Returns
TypeDescription
void

updateFunction(request)

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

Calls UpdateFunction.

Parameter
NameDescription
request IUpdateFunctionRequest

UpdateFunctionRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise