Workflows is used to deploy and execute workflow programs. Workflows makes sure the program executes reliably, despite hardware and networking interruptions. v1beta
Package
@google-cloud/workflows!Constructors
(constructor)(opts)
constructor
(
opts
?:
ClientOptions
);
Construct an instance of WorkflowsClient.
Type | Name | Description |
---|---|---|
ClientOptions
|
opts |
Properties
apiEndpoint
static
get
apiEndpoint
()
:
string
;
The DNS address for this API service - same as servicePath(), exists for compatibility reasons.
Type | Description |
---|---|
string |
auth
auth
:
gax
.
GoogleAuth
;
Type | Description |
---|---|
gax. GoogleAuth |
descriptors
descriptors
:
Descriptors
;
Type | Description |
---|---|
Descriptors |
innerApiCalls
innerApiCalls
:
{
[
name
:
string
]
:
Function
;
};
Type | Description |
---|---|
{ [name: string]: Function ; } |
operationsClient
operationsClient
:
gax
.
OperationsClient
;
Type | Description |
---|---|
gax. OperationsClient |
pathTemplates
pathTemplates
:
{
[
name
:
string
]
:
gax
.
PathTemplate
;
};
Type | Description |
---|---|
{ [name: string]: gax. PathTemplate ; } |
port
static
get
port
()
:
number
;
The port for this API service.
Type | Description |
---|---|
number |
scopes
static
get
scopes
()
:
string
[];
The scopes needed to make gRPC calls for every method defined in this service.
Type | Description |
---|---|
string[] |
servicePath
static
get
servicePath
()
:
string
;
The DNS address for this API service.
Type | Description |
---|---|
string |
warn
warn
:
(
code
:
string
,
message
:
string
,
warnType
?:
string
)
=
>
void
;
Type | Description |
---|---|
(code: string, message: string, warnType?: string) => void |
workflowsStub
workflowsStub
?:
Promise
< {
[
name
:
string
]
:
Function
;
}>;
Type | Description |
---|---|
Promise <{ [name: string]: Function ; }> |
Methods
checkCreateWorkflowProgress(name)
checkCreateWorkflowProgress
(
name
:
string
)
:
Promise<LROperation<protos
.
google
.
cloud
.
workflows
.
v1beta
.
Workflow
,
protos
.
google
.
cloud
.
workflows
.
v1beta
.
OperationMetadata
>> ;
Check the status of the long running operation returned by createWorkflow()
.
Type | Name | Description |
---|---|---|
string
|
name | The operation name that will be passed. |
Type | Description |
---|---|
Promise < LROperation <protos. google.cloud.workflows.v1beta.Workflow , protos. google.cloud.workflows.v1beta.OperationMetadata >> | {Promise} - The promise which resolves to an object. The decoded operation object has result and metadata field to get information from. Please see the [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations) for more details and examples. |
checkDeleteWorkflowProgress(name)
checkDeleteWorkflowProgress
(
name
:
string
)
:
Promise<LROperation<protos
.
google
.
protobuf
.
Empty
,
protos
.
google
.
cloud
.
workflows
.
v1beta
.
OperationMetadata
>> ;
Check the status of the long running operation returned by deleteWorkflow()
.
Type | Name | Description |
---|---|---|
string
|
name | The operation name that will be passed. |
Type | Description |
---|---|
Promise < LROperation <protos. google.protobuf.Empty , protos. google.cloud.workflows.v1beta.OperationMetadata >> | {Promise} - The promise which resolves to an object. The decoded operation object has result and metadata field to get information from. Please see the [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations) for more details and examples. |
checkUpdateWorkflowProgress(name)
checkUpdateWorkflowProgress
(
name
:
string
)
:
Promise<LROperation<protos
.
google
.
cloud
.
workflows
.
v1beta
.
Workflow
,
protos
.
google
.
cloud
.
workflows
.
v1beta
.
OperationMetadata
>> ;
Check the status of the long running operation returned by updateWorkflow()
.
Type | Name | Description |
---|---|---|
string
|
name | The operation name that will be passed. |
Type | Description |
---|---|
Promise < LROperation <protos. google.cloud.workflows.v1beta.Workflow , protos. google.cloud.workflows.v1beta.OperationMetadata >> | {Promise} - The promise which resolves to an object. The decoded operation object has result and metadata field to get information from. Please see the [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations) for more details and examples. |
close()
close
()
:
Promise<void>
;
Terminate the gRPC channel and close the client.
The client will no longer be usable and all future behavior is undefined.
Type | Description |
---|---|
Promise <void> | {Promise} A promise that resolves when the client is closed. |
createWorkflow(request, options)
createWorkflow
(
request
?:
protos
.
google
.
cloud
.
workflows
.
v1beta
.
ICreateWorkflowRequest
,
options
?:
CallOptions
)
:
Promise
< [
LROperation<protos
.
google
.
cloud
.
workflows
.
v1beta
.
IWorkflow
,
protos
.
google
.
cloud
.
workflows
.
v1beta
.
IOperationMetadata
> ,
protos
.
google
.
longrunning
.
IOperation
|
undefined
,
{}
|
undefined
]>;
Type | Name | Description |
---|---|---|
protos. google.cloud.workflows.v1beta.ICreateWorkflowRequest
|
request | |
CallOptions
|
options |
Type | Description |
---|---|
Promise <[ LROperation <protos. google.cloud.workflows.v1beta.IWorkflow , protos. google.cloud.workflows.v1beta.IOperationMetadata >, protos. google.longrunning.IOperation | undefined, {} | undefined]> |
createWorkflow(request, options, callback)
createWorkflow
(
request
:
protos
.
google
.
cloud
.
workflows
.
v1beta
.
ICreateWorkflowRequest
,
options
:
CallOptions
,
callback
:
Callback<LROperation<protos
.
google
.
cloud
.
workflows
.
v1beta
.
IWorkflow
,
protos
.
google
.
cloud
.
workflows
.
v1beta
.
IOperationMetadata
> ,
protos
.
google
.
longrunning
.
IOperation
|
null
|
undefined
,
{}
|
null
|
undefined
> )
:
void
;
Type | Name | Description |
---|---|---|
protos. google.cloud.workflows.v1beta.ICreateWorkflowRequest
|
request | |
CallOptions
|
options | |
Callback
< LROperation
<protos. google.cloud.workflows.v1beta.IWorkflow
, protos. google.cloud.workflows.v1beta.IOperationMetadata
>, protos. google.longrunning.IOperation
| null | undefined, {} | null | undefined>
|
callback |
Type | Description |
---|---|
void |
createWorkflow(request, callback)
createWorkflow
(
request
:
protos
.
google
.
cloud
.
workflows
.
v1beta
.
ICreateWorkflowRequest
,
callback
:
Callback<LROperation<protos
.
google
.
cloud
.
workflows
.
v1beta
.
IWorkflow
,
protos
.
google
.
cloud
.
workflows
.
v1beta
.
IOperationMetadata
> ,
protos
.
google
.
longrunning
.
IOperation
|
null
|
undefined
,
{}
|
null
|
undefined
> )
:
void
;
Type | Name | Description |
---|---|---|
protos. google.cloud.workflows.v1beta.ICreateWorkflowRequest
|
request | |
Callback
< LROperation
<protos. google.cloud.workflows.v1beta.IWorkflow
, protos. google.cloud.workflows.v1beta.IOperationMetadata
>, protos. google.longrunning.IOperation
| null | undefined, {} | null | undefined>
|
callback |
Type | Description |
---|---|
void |
deleteWorkflow(request, options)
deleteWorkflow
(
request
?:
protos
.
google
.
cloud
.
workflows
.
v1beta
.
IDeleteWorkflowRequest
,
options
?:
CallOptions
)
:
Promise
< [
LROperation<protos
.
google
.
protobuf
.
IEmpty
,
protos
.
google
.
cloud
.
workflows
.
v1beta
.
IOperationMetadata
> ,
protos
.
google
.
longrunning
.
IOperation
|
undefined
,
{}
|
undefined
]>;
Type | Name | Description |
---|---|---|
protos. google.cloud.workflows.v1beta.IDeleteWorkflowRequest
|
request | |
CallOptions
|
options |
Type | Description |
---|---|
Promise <[ LROperation <protos. google.protobuf.IEmpty , protos. google.cloud.workflows.v1beta.IOperationMetadata >, protos. google.longrunning.IOperation | undefined, {} | undefined]> |
deleteWorkflow(request, options, callback)
deleteWorkflow
(
request
:
protos
.
google
.
cloud
.
workflows
.
v1beta
.
IDeleteWorkflowRequest
,
options
:
CallOptions
,
callback
:
Callback<LROperation<protos
.
google
.
protobuf
.
IEmpty
,
protos
.
google
.
cloud
.
workflows
.
v1beta
.
IOperationMetadata
> ,
protos
.
google
.
longrunning
.
IOperation
|
null
|
undefined
,
{}
|
null
|
undefined
> )
:
void
;
Type | Name | Description |
---|---|---|
protos. google.cloud.workflows.v1beta.IDeleteWorkflowRequest
|
request | |
CallOptions
|
options | |
Callback
< LROperation
<protos. google.protobuf.IEmpty
, protos. google.cloud.workflows.v1beta.IOperationMetadata
>, protos. google.longrunning.IOperation
| null | undefined, {} | null | undefined>
|
callback |
Type | Description |
---|---|
void |
deleteWorkflow(request, callback)
deleteWorkflow
(
request
:
protos
.
google
.
cloud
.
workflows
.
v1beta
.
IDeleteWorkflowRequest
,
callback
:
Callback<LROperation<protos
.
google
.
protobuf
.
IEmpty
,
protos
.
google
.
cloud
.
workflows
.
v1beta
.
IOperationMetadata
> ,
protos
.
google
.
longrunning
.
IOperation
|
null
|
undefined
,
{}
|
null
|
undefined
> )
:
void
;
Type | Name | Description |
---|---|---|
protos. google.cloud.workflows.v1beta.IDeleteWorkflowRequest
|
request | |
Callback
< LROperation
<protos. google.protobuf.IEmpty
, protos. google.cloud.workflows.v1beta.IOperationMetadata
>, protos. google.longrunning.IOperation
| null | undefined, {} | null | undefined>
|
callback |
Type | Description |
---|---|
void |
getProjectId()
getProjectId
()
:
Promise<string>
;
Type | Description |
---|---|
Promise <string> |
getProjectId(callback)
getProjectId
(
callback
:
Callback<string
,
undefined
,
undefined
> )
:
void
;
Type | Name | Description |
---|---|---|
Callback
<string, undefined, undefined>
|
callback |
Type | Description |
---|---|
void |
getWorkflow(request, options)
getWorkflow
(
request
?:
protos
.
google
.
cloud
.
workflows
.
v1beta
.
IGetWorkflowRequest
,
options
?:
CallOptions
)
:
Promise
< [
protos
.
google
.
cloud
.
workflows
.
v1beta
.
IWorkflow
,
protos
.
google
.
cloud
.
workflows
.
v1beta
.
IGetWorkflowRequest
|
undefined
,
{}
|
undefined
]>;
Type | Name | Description |
---|---|---|
protos. google.cloud.workflows.v1beta.IGetWorkflowRequest
|
request | |
CallOptions
|
options |
Type | Description |
---|---|
Promise <[protos. google.cloud.workflows.v1beta.IWorkflow , protos. google.cloud.workflows.v1beta.IGetWorkflowRequest | undefined, {} | undefined]> |
getWorkflow(request, options, callback)
getWorkflow
(
request
:
protos
.
google
.
cloud
.
workflows
.
v1beta
.
IGetWorkflowRequest
,
options
:
CallOptions
,
callback
:
Callback<protos
.
google
.
cloud
.
workflows
.
v1beta
.
IWorkflow
,
protos
.
google
.
cloud
.
workflows
.
v1beta
.
IGetWorkflowRequest
|
null
|
undefined
,
{}
|
null
|
undefined
> )
:
void
;
Type | Name | Description |
---|---|---|
protos. google.cloud.workflows.v1beta.IGetWorkflowRequest
|
request | |
CallOptions
|
options | |
Callback
<protos. google.cloud.workflows.v1beta.IWorkflow
, protos. google.cloud.workflows.v1beta.IGetWorkflowRequest
| null | undefined, {} | null | undefined>
|
callback |
Type | Description |
---|---|
void |
getWorkflow(request, callback)
getWorkflow
(
request
:
protos
.
google
.
cloud
.
workflows
.
v1beta
.
IGetWorkflowRequest
,
callback
:
Callback<protos
.
google
.
cloud
.
workflows
.
v1beta
.
IWorkflow
,
protos
.
google
.
cloud
.
workflows
.
v1beta
.
IGetWorkflowRequest
|
null
|
undefined
,
{}
|
null
|
undefined
> )
:
void
;
Type | Name | Description |
---|---|---|
protos. google.cloud.workflows.v1beta.IGetWorkflowRequest
|
request | |
Callback
<protos. google.cloud.workflows.v1beta.IWorkflow
, protos. google.cloud.workflows.v1beta.IGetWorkflowRequest
| null | undefined, {} | null | undefined>
|
callback |
Type | Description |
---|---|
void |
initialize()
initialize
()
:
Promise
< {
[
name
:
string
]
:
Function
;
}>;
Initialize the client. Performs asynchronous operations (such as authentication) and prepares the client. This function will be called automatically when any class method is called for the first time, but if you need to initialize it before calling an actual method, feel free to call initialize() directly.
You can await on this method if you want to make sure the client is initialized.
Type | Description |
---|---|
Promise <{ [name: string]: Function ; }> | {Promise} A promise that resolves to an authenticated service stub. |
listWorkflows(request, options)
listWorkflows
(
request
?:
protos
.
google
.
cloud
.
workflows
.
v1beta
.
IListWorkflowsRequest
,
options
?:
CallOptions
)
:
Promise
< [
protos
.
google
.
cloud
.
workflows
.
v1beta
.
IWorkflow
[],
protos
.
google
.
cloud
.
workflows
.
v1beta
.
IListWorkflowsRequest
|
null
,
protos
.
google
.
cloud
.
workflows
.
v1beta
.
IListWorkflowsResponse
]>;
Type | Name | Description |
---|---|---|
protos. google.cloud.workflows.v1beta.IListWorkflowsRequest
|
request | |
CallOptions
|
options |
Type | Description |
---|---|
Promise <[protos. google.cloud.workflows.v1beta.IWorkflow [], protos. google.cloud.workflows.v1beta.IListWorkflowsRequest | null, protos. google.cloud.workflows.v1beta.IListWorkflowsResponse ]> |
listWorkflows(request, options, callback)
listWorkflows
(
request
:
protos
.
google
.
cloud
.
workflows
.
v1beta
.
IListWorkflowsRequest
,
options
:
CallOptions
,
callback
:
PaginationCallback<protos
.
google
.
cloud
.
workflows
.
v1beta
.
IListWorkflowsRequest
,
protos
.
google
.
cloud
.
workflows
.
v1beta
.
IListWorkflowsResponse
|
null
|
undefined
,
protos
.
google
.
cloud
.
workflows
.
v1beta
.
IWorkflow
> )
:
void
;
Type | Name | Description |
---|---|---|
protos. google.cloud.workflows.v1beta.IListWorkflowsRequest
|
request | |
CallOptions
|
options | |
PaginationCallback
<protos. google.cloud.workflows.v1beta.IListWorkflowsRequest
, protos. google.cloud.workflows.v1beta.IListWorkflowsResponse
| null | undefined, protos. google.cloud.workflows.v1beta.IWorkflow
>
|
callback |
Type | Description |
---|---|
void |
listWorkflows(request, callback)
listWorkflows
(
request
:
protos
.
google
.
cloud
.
workflows
.
v1beta
.
IListWorkflowsRequest
,
callback
:
PaginationCallback<protos
.
google
.
cloud
.
workflows
.
v1beta
.
IListWorkflowsRequest
,
protos
.
google
.
cloud
.
workflows
.
v1beta
.
IListWorkflowsResponse
|
null
|
undefined
,
protos
.
google
.
cloud
.
workflows
.
v1beta
.
IWorkflow
> )
:
void
;
Type | Name | Description |
---|---|---|
protos. google.cloud.workflows.v1beta.IListWorkflowsRequest
|
request | |
PaginationCallback
<protos. google.cloud.workflows.v1beta.IListWorkflowsRequest
, protos. google.cloud.workflows.v1beta.IListWorkflowsResponse
| null | undefined, protos. google.cloud.workflows.v1beta.IWorkflow
>
|
callback |
Type | Description |
---|---|
void |
listWorkflowsAsync(request, options)
listWorkflowsAsync
(
request
?:
protos
.
google
.
cloud
.
workflows
.
v1beta
.
IListWorkflowsRequest
,
options
?:
CallOptions
)
:
AsyncIterable<protos
.
google
.
cloud
.
workflows
.
v1beta
.
IWorkflow
> ;
Equivalent to listWorkflows
, but returns an iterable object.
for
- await
- of
syntax is used with the iterable to get response elements on-demand.
Type | Name | Description |
---|---|---|
protos. google.cloud.workflows.v1beta.IListWorkflowsRequest
|
request | The request object that will be sent. |
CallOptions
|
options | Call options. See CallOptions for more details. |
Type | Description |
---|---|
AsyncIterable <protos. google.cloud.workflows.v1beta.IWorkflow > | {Object} An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). When you iterate the returned iterable, each element will be an object representing [Workflow]. The API will be called under the hood as needed, once per the page, so you can stop the iteration when you don't need more results. Please see the [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) for more details and examples. |
listWorkflowsStream(request, options)
listWorkflowsStream
(
request
?:
protos
.
google
.
cloud
.
workflows
.
v1beta
.
IListWorkflowsRequest
,
options
?:
CallOptions
)
:
Transform
;
Equivalent to method.name.toCamelCase()
, but returns a NodeJS Stream object.
Type | Name | Description |
---|---|---|
protos. google.cloud.workflows.v1beta.IListWorkflowsRequest
|
request | The request object that will be sent. |
CallOptions
|
options | Call options. See CallOptions for more details. |
Type | Description |
---|---|
Transform | {Stream} An object stream which emits an object representing [Workflow] on 'data' event. The client library will perform auto-pagination by default: it will call the API as many times as needed. Note that it can affect your quota. We recommend using |
locationPath(project, location)
locationPath
(
project
:
string
,
location
:
string
)
:
string
;
Return a fully-qualified location resource name string.
Type | Name | Description |
---|---|---|
string
|
project | |
string
|
location |
Type | Description |
---|---|
string | {string} Resource name string. |
matchLocationFromLocationName(locationName)
matchLocationFromLocationName
(
locationName
:
string
)
:
string
|
number
;
Parse the location from Location resource.
Type | Name | Description |
---|---|---|
string
|
locationName | A fully-qualified path representing Location resource. |
Type | Description |
---|---|
string | number | {string} A string representing the location. |
matchLocationFromWorkflowName(workflowName)
matchLocationFromWorkflowName
(
workflowName
:
string
)
:
string
|
number
;
Parse the location from Workflow resource.
Type | Name | Description |
---|---|---|
string
|
workflowName | A fully-qualified path representing Workflow resource. |
Type | Description |
---|---|
string | number | {string} A string representing the location. |
matchProjectFromLocationName(locationName)
matchProjectFromLocationName
(
locationName
:
string
)
:
string
|
number
;
Parse the project from Location resource.
Type | Name | Description |
---|---|---|
string
|
locationName | A fully-qualified path representing Location resource. |
Type | Description |
---|---|
string | number | {string} A string representing the project. |
matchProjectFromWorkflowName(workflowName)
matchProjectFromWorkflowName
(
workflowName
:
string
)
:
string
|
number
;
Parse the project from Workflow resource.
Type | Name | Description |
---|---|---|
string
|
workflowName | A fully-qualified path representing Workflow resource. |
Type | Description |
---|---|
string | number | {string} A string representing the project. |
matchWorkflowFromWorkflowName(workflowName)
matchWorkflowFromWorkflowName
(
workflowName
:
string
)
:
string
|
number
;
Parse the workflow from Workflow resource.
Type | Name | Description |
---|---|---|
string
|
workflowName | A fully-qualified path representing Workflow resource. |
Type | Description |
---|---|
string | number | {string} A string representing the workflow. |
updateWorkflow(request, options)
updateWorkflow
(
request
?:
protos
.
google
.
cloud
.
workflows
.
v1beta
.
IUpdateWorkflowRequest
,
options
?:
CallOptions
)
:
Promise
< [
LROperation<protos
.
google
.
cloud
.
workflows
.
v1beta
.
IWorkflow
,
protos
.
google
.
cloud
.
workflows
.
v1beta
.
IOperationMetadata
> ,
protos
.
google
.
longrunning
.
IOperation
|
undefined
,
{}
|
undefined
]>;
Type | Name | Description |
---|---|---|
protos. google.cloud.workflows.v1beta.IUpdateWorkflowRequest
|
request | |
CallOptions
|
options |
Type | Description |
---|---|
Promise <[ LROperation <protos. google.cloud.workflows.v1beta.IWorkflow , protos. google.cloud.workflows.v1beta.IOperationMetadata >, protos. google.longrunning.IOperation | undefined, {} | undefined]> |
updateWorkflow(request, options, callback)
updateWorkflow
(
request
:
protos
.
google
.
cloud
.
workflows
.
v1beta
.
IUpdateWorkflowRequest
,
options
:
CallOptions
,
callback
:
Callback<LROperation<protos
.
google
.
cloud
.
workflows
.
v1beta
.
IWorkflow
,
protos
.
google
.
cloud
.
workflows
.
v1beta
.
IOperationMetadata
> ,
protos
.
google
.
longrunning
.
IOperation
|
null
|
undefined
,
{}
|
null
|
undefined
> )
:
void
;
Type | Name | Description |
---|---|---|
protos. google.cloud.workflows.v1beta.IUpdateWorkflowRequest
|
request | |
CallOptions
|
options | |
Callback
< LROperation
<protos. google.cloud.workflows.v1beta.IWorkflow
, protos. google.cloud.workflows.v1beta.IOperationMetadata
>, protos. google.longrunning.IOperation
| null | undefined, {} | null | undefined>
|
callback |
Type | Description |
---|---|
void |
updateWorkflow(request, callback)
updateWorkflow
(
request
:
protos
.
google
.
cloud
.
workflows
.
v1beta
.
IUpdateWorkflowRequest
,
callback
:
Callback<LROperation<protos
.
google
.
cloud
.
workflows
.
v1beta
.
IWorkflow
,
protos
.
google
.
cloud
.
workflows
.
v1beta
.
IOperationMetadata
> ,
protos
.
google
.
longrunning
.
IOperation
|
null
|
undefined
,
{}
|
null
|
undefined
> )
:
void
;
Type | Name | Description |
---|---|---|
protos. google.cloud.workflows.v1beta.IUpdateWorkflowRequest
|
request | |
Callback
< LROperation
<protos. google.cloud.workflows.v1beta.IWorkflow
, protos. google.cloud.workflows.v1beta.IOperationMetadata
>, protos. google.longrunning.IOperation
| null | undefined, {} | null | undefined>
|
callback |
Type | Description |
---|---|
void |
workflowPath(project, location, workflow)
workflowPath
(
project
:
string
,
location
:
string
,
workflow
:
string
)
:
string
;
Return a fully-qualified workflow resource name string.
Type | Name | Description |
---|---|---|
string
|
project | |
string
|
location | |
string
|
workflow |
Type | Description |
---|---|
string | {string} Resource name string. |