Skip to main content

Class: DeploymentVersionTransition

workflow.v1.DeploymentVersionTransition

Holds information about ongoing transition of a workflow execution from one worker deployment version to another. Experimental. Might change in the future.

Properties​

deploymentVersion​

• Optional deploymentVersion: null | $Properties

The target Version of the transition. If nil, a so-far-versioned workflow is transitioning to unversioned workers.


version​

• version: string

Deprecated. Use deployment_version.

Methods​

toJSON​

▸ toJSON(): Object

Converts this DeploymentVersionTransition to JSON.

Returns​

Object

JSON object


create​

▸ create(properties?): DeploymentVersionTransition & $Properties

Creates a new DeploymentVersionTransition instance using the specified properties.

Parameters​

NameTypeDescription
properties?$PropertiesProperties to set

Returns​

DeploymentVersionTransition & $Properties

DeploymentVersionTransition instance

▸ create(properties?): DeploymentVersionTransition

Parameters​

NameType
properties?$Properties

Returns​

DeploymentVersionTransition


decode​

▸ decode(reader, length?): DeploymentVersionTransition & $Properties

Decodes a DeploymentVersionTransition message from the specified reader or buffer.

Parameters​

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from
length?numberMessage length if known beforehand

Returns​

DeploymentVersionTransition & $Properties

DeploymentVersionTransition

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited​

▸ decodeDelimited(reader): DeploymentVersionTransition & $Properties

Decodes a DeploymentVersionTransition message from the specified reader or buffer, length delimited.

Parameters​

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from

Returns​

DeploymentVersionTransition & $Properties

DeploymentVersionTransition

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


encode​

▸ encode(message, writer?): Writer

Encodes the specified DeploymentVersionTransition message. Does not implicitly temporal.api.workflow.v1.DeploymentVersionTransition.verify|verify messages.

Parameters​

NameTypeDescription
message$PropertiesDeploymentVersionTransition message or plain object to encode
writer?WriterWriter to encode to

Returns​

Writer

Writer


encodeDelimited​

▸ encodeDelimited(message, writer?): Writer

Encodes the specified DeploymentVersionTransition message, length delimited. Does not implicitly temporal.api.workflow.v1.DeploymentVersionTransition.verify|verify messages.

Parameters​

NameTypeDescription
message$PropertiesDeploymentVersionTransition message or plain object to encode
writer?WriterWriter to encode to

Returns​

Writer

Writer


fromObject​

▸ fromObject(object): DeploymentVersionTransition

Creates a DeploymentVersionTransition message from a plain object. Also converts values to their respective internal types.

Parameters​

NameTypeDescription
objectObjectPlain object

Returns​

DeploymentVersionTransition

DeploymentVersionTransition


toObject​

▸ toObject(message, options?): Object

Creates a plain object from a DeploymentVersionTransition message. Also converts values to other types if specified.

Parameters​

NameTypeDescription
messageDeploymentVersionTransitionDeploymentVersionTransition
options?IConversionOptionsConversion options

Returns​

Object

Plain object