Class protos.google.cloud.dataproc.v1.WorkflowTemplateService (5.12.0)

Represents a WorkflowTemplateService

Inheritance

$protobuf.rpc.Service > protos.google.cloud.dataproc.v1.WorkflowTemplateService

Package

@google-cloud/dataproc

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

Constructs a new WorkflowTemplateService 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): WorkflowTemplateService;

Creates new WorkflowTemplateService 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
WorkflowTemplateService

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

createWorkflowTemplate(request, callback)

public createWorkflowTemplate(request: google.cloud.dataproc.v1.ICreateWorkflowTemplateRequest, callback: google.cloud.dataproc.v1.WorkflowTemplateService.CreateWorkflowTemplateCallback): void;

Calls CreateWorkflowTemplate.

Parameters
Name Description
request ICreateWorkflowTemplateRequest

CreateWorkflowTemplateRequest message or plain object

callback CreateWorkflowTemplateCallback

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

Returns
Type Description
void

createWorkflowTemplate(request)

public createWorkflowTemplate(request: google.cloud.dataproc.v1.ICreateWorkflowTemplateRequest): Promise<google.cloud.dataproc.v1.WorkflowTemplate>;

Calls CreateWorkflowTemplate.

Parameter
Name Description
request ICreateWorkflowTemplateRequest

CreateWorkflowTemplateRequest message or plain object

Returns
Type Description
Promise<google.cloud.dataproc.v1.WorkflowTemplate>

Promise

deleteWorkflowTemplate(request, callback)

public deleteWorkflowTemplate(request: google.cloud.dataproc.v1.IDeleteWorkflowTemplateRequest, callback: google.cloud.dataproc.v1.WorkflowTemplateService.DeleteWorkflowTemplateCallback): void;

Calls DeleteWorkflowTemplate.

Parameters
Name Description
request IDeleteWorkflowTemplateRequest

DeleteWorkflowTemplateRequest message or plain object

callback DeleteWorkflowTemplateCallback

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

Returns
Type Description
void

deleteWorkflowTemplate(request)

public deleteWorkflowTemplate(request: google.cloud.dataproc.v1.IDeleteWorkflowTemplateRequest): Promise<google.protobuf.Empty>;

Calls DeleteWorkflowTemplate.

Parameter
Name Description
request IDeleteWorkflowTemplateRequest

DeleteWorkflowTemplateRequest message or plain object

Returns
Type Description
Promise<google.protobuf.Empty>

Promise

getWorkflowTemplate(request, callback)

public getWorkflowTemplate(request: google.cloud.dataproc.v1.IGetWorkflowTemplateRequest, callback: google.cloud.dataproc.v1.WorkflowTemplateService.GetWorkflowTemplateCallback): void;

Calls GetWorkflowTemplate.

Parameters
Name Description
request IGetWorkflowTemplateRequest

GetWorkflowTemplateRequest message or plain object

callback GetWorkflowTemplateCallback

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

Returns
Type Description
void

getWorkflowTemplate(request)

public getWorkflowTemplate(request: google.cloud.dataproc.v1.IGetWorkflowTemplateRequest): Promise<google.cloud.dataproc.v1.WorkflowTemplate>;

Calls GetWorkflowTemplate.

Parameter
Name Description
request IGetWorkflowTemplateRequest

GetWorkflowTemplateRequest message or plain object

Returns
Type Description
Promise<google.cloud.dataproc.v1.WorkflowTemplate>

Promise

instantiateInlineWorkflowTemplate(request, callback)

public instantiateInlineWorkflowTemplate(request: google.cloud.dataproc.v1.IInstantiateInlineWorkflowTemplateRequest, callback: google.cloud.dataproc.v1.WorkflowTemplateService.InstantiateInlineWorkflowTemplateCallback): void;

Calls InstantiateInlineWorkflowTemplate.

Parameters
Name Description
request IInstantiateInlineWorkflowTemplateRequest

InstantiateInlineWorkflowTemplateRequest message or plain object

callback InstantiateInlineWorkflowTemplateCallback

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

Returns
Type Description
void

instantiateInlineWorkflowTemplate(request)

public instantiateInlineWorkflowTemplate(request: google.cloud.dataproc.v1.IInstantiateInlineWorkflowTemplateRequest): Promise<google.longrunning.Operation>;

Calls InstantiateInlineWorkflowTemplate.

Parameter
Name Description
request IInstantiateInlineWorkflowTemplateRequest

InstantiateInlineWorkflowTemplateRequest message or plain object

Returns
Type Description
Promise<google.longrunning.Operation>

Promise

instantiateWorkflowTemplate(request, callback)

public instantiateWorkflowTemplate(request: google.cloud.dataproc.v1.IInstantiateWorkflowTemplateRequest, callback: google.cloud.dataproc.v1.WorkflowTemplateService.InstantiateWorkflowTemplateCallback): void;

Calls InstantiateWorkflowTemplate.

Parameters
Name Description
request IInstantiateWorkflowTemplateRequest

InstantiateWorkflowTemplateRequest message or plain object

callback InstantiateWorkflowTemplateCallback

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

Returns
Type Description
void

instantiateWorkflowTemplate(request)

public instantiateWorkflowTemplate(request: google.cloud.dataproc.v1.IInstantiateWorkflowTemplateRequest): Promise<google.longrunning.Operation>;

Calls InstantiateWorkflowTemplate.

Parameter
Name Description
request IInstantiateWorkflowTemplateRequest

InstantiateWorkflowTemplateRequest message or plain object

Returns
Type Description
Promise<google.longrunning.Operation>

Promise

listWorkflowTemplates(request, callback)

public listWorkflowTemplates(request: google.cloud.dataproc.v1.IListWorkflowTemplatesRequest, callback: google.cloud.dataproc.v1.WorkflowTemplateService.ListWorkflowTemplatesCallback): void;

Calls ListWorkflowTemplates.

Parameters
Name Description
request IListWorkflowTemplatesRequest

ListWorkflowTemplatesRequest message or plain object

callback ListWorkflowTemplatesCallback

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

Returns
Type Description
void

listWorkflowTemplates(request)

public listWorkflowTemplates(request: google.cloud.dataproc.v1.IListWorkflowTemplatesRequest): Promise<google.cloud.dataproc.v1.ListWorkflowTemplatesResponse>;

Calls ListWorkflowTemplates.

Parameter
Name Description
request IListWorkflowTemplatesRequest

ListWorkflowTemplatesRequest message or plain object

Returns
Type Description
Promise<google.cloud.dataproc.v1.ListWorkflowTemplatesResponse>

Promise

updateWorkflowTemplate(request, callback)

public updateWorkflowTemplate(request: google.cloud.dataproc.v1.IUpdateWorkflowTemplateRequest, callback: google.cloud.dataproc.v1.WorkflowTemplateService.UpdateWorkflowTemplateCallback): void;

Calls UpdateWorkflowTemplate.

Parameters
Name Description
request IUpdateWorkflowTemplateRequest

UpdateWorkflowTemplateRequest message or plain object

callback UpdateWorkflowTemplateCallback

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

Returns
Type Description
void

updateWorkflowTemplate(request)

public updateWorkflowTemplate(request: google.cloud.dataproc.v1.IUpdateWorkflowTemplateRequest): Promise<google.cloud.dataproc.v1.WorkflowTemplate>;

Calls UpdateWorkflowTemplate.

Parameter
Name Description
request IUpdateWorkflowTemplateRequest

UpdateWorkflowTemplateRequest message or plain object

Returns
Type Description
Promise<google.cloud.dataproc.v1.WorkflowTemplate>

Promise