Skip to main content

Class: Deployment

deployment.v1.Deployment

Deployment identifies a deployment of Temporal workers. The combination of deployment series name + build ID serves as the identifier. User can use WorkerDeploymentOptions in their worker programs to specify these values.

Implements

Constructors

constructor

new Deployment(properties?): Deployment

Constructs a new Deployment.

Parameters

NameTypeDescription
properties?IDeploymentProperties to set

Returns

Deployment

Properties

buildId

buildId: string

Build ID changes with each version of the worker when the worker program code and/or config changes.

Implementation of

IDeployment.buildId


seriesName

seriesName: string

Different versions of the same worker service/application are related together by having a shared series name. Out of all deployments of a series, one can be designated as the current deployment, which receives new workflow executions and new tasks of workflows with VERSIONING_BEHAVIOR_AUTO_UPGRADE versioning behavior.

Implementation of

IDeployment.seriesName

Methods

toJSON

toJSON(): Object

Converts this Deployment to JSON.

Returns

Object

JSON object


create

create(properties?): Deployment

Creates a new Deployment instance using the specified properties.

Parameters

NameTypeDescription
properties?IDeploymentProperties to set

Returns

Deployment

Deployment instance


decode

decode(reader, length?): Deployment

Decodes a Deployment message from the specified reader or buffer.

Parameters

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

Returns

Deployment

Deployment

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited

decodeDelimited(reader): Deployment

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

Parameters

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from

Returns

Deployment

Deployment

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 Deployment message. Does not implicitly temporal.api.deployment.v1.Deployment.verify|verify messages.

Parameters

NameTypeDescription
messageIDeploymentDeployment message or plain object to encode
writer?WriterWriter to encode to

Returns

Writer

Writer


encodeDelimited

encodeDelimited(message, writer?): Writer

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

Parameters

NameTypeDescription
messageIDeploymentDeployment message or plain object to encode
writer?WriterWriter to encode to

Returns

Writer

Writer


fromObject

fromObject(object): Deployment

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

Parameters

NameTypeDescription
objectObjectPlain object

Returns

Deployment

Deployment


getTypeUrl

getTypeUrl(typeUrlPrefix?): string

Gets the default type url for Deployment

Parameters

NameTypeDescription
typeUrlPrefix?stringyour custom typeUrlPrefix(default "type.googleapis.com")

Returns

string

The default type url


toObject

toObject(message, options?): Object

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

Parameters

NameTypeDescription
messageDeploymentDeployment
options?IConversionOptionsConversion options

Returns

Object

Plain object