Represents a TemplatesService
Inheritance
$protobuf.rpc.Service > protos.google.dataflow.v1beta3.TemplatesServicePackage
@google-cloud/dataflowConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
Constructs a new TemplatesService 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): TemplatesService;
Creates new TemplatesService 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 |
TemplatesService | RPC service. Useful where requests and/or responses are streamed. |
createJobFromTemplate(request, callback)
public createJobFromTemplate(request: google.dataflow.v1beta3.ICreateJobFromTemplateRequest, callback: google.dataflow.v1beta3.TemplatesService.CreateJobFromTemplateCallback): void;
Calls CreateJobFromTemplate.
Parameters | |
---|---|
Name | Description |
request |
google.dataflow.v1beta3.ICreateJobFromTemplateRequest
CreateJobFromTemplateRequest message or plain object |
callback |
google.dataflow.v1beta3.TemplatesService.CreateJobFromTemplateCallback
Node-style callback called with the error, if any, and Job |
Returns | |
---|---|
Type | Description |
void |
createJobFromTemplate(request)
public createJobFromTemplate(request: google.dataflow.v1beta3.ICreateJobFromTemplateRequest): Promise<google.dataflow.v1beta3.Job>;
Calls CreateJobFromTemplate.
Parameter | |
---|---|
Name | Description |
request |
google.dataflow.v1beta3.ICreateJobFromTemplateRequest
CreateJobFromTemplateRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.dataflow.v1beta3.Job> | Promise |
getTemplate(request, callback)
public getTemplate(request: google.dataflow.v1beta3.IGetTemplateRequest, callback: google.dataflow.v1beta3.TemplatesService.GetTemplateCallback): void;
Calls GetTemplate.
Parameters | |
---|---|
Name | Description |
request |
google.dataflow.v1beta3.IGetTemplateRequest
GetTemplateRequest message or plain object |
callback |
google.dataflow.v1beta3.TemplatesService.GetTemplateCallback
Node-style callback called with the error, if any, and GetTemplateResponse |
Returns | |
---|---|
Type | Description |
void |
getTemplate(request)
public getTemplate(request: google.dataflow.v1beta3.IGetTemplateRequest): Promise<google.dataflow.v1beta3.GetTemplateResponse>;
Calls GetTemplate.
Parameter | |
---|---|
Name | Description |
request |
google.dataflow.v1beta3.IGetTemplateRequest
GetTemplateRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.dataflow.v1beta3.GetTemplateResponse> | Promise |
launchTemplate(request, callback)
public launchTemplate(request: google.dataflow.v1beta3.ILaunchTemplateRequest, callback: google.dataflow.v1beta3.TemplatesService.LaunchTemplateCallback): void;
Calls LaunchTemplate.
Parameters | |
---|---|
Name | Description |
request |
ILaunchTemplateRequest
LaunchTemplateRequest message or plain object |
callback |
google.dataflow.v1beta3.TemplatesService.LaunchTemplateCallback
Node-style callback called with the error, if any, and LaunchTemplateResponse |
Returns | |
---|---|
Type | Description |
void |
launchTemplate(request)
public launchTemplate(request: google.dataflow.v1beta3.ILaunchTemplateRequest): Promise<google.dataflow.v1beta3.LaunchTemplateResponse>;
Calls LaunchTemplate.
Parameter | |
---|---|
Name | Description |
request |
ILaunchTemplateRequest
LaunchTemplateRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.dataflow.v1beta3.LaunchTemplateResponse> | Promise |