Skip to main content

Class: DeploymentInfo

deployment.v1.DeploymentInfo

DeploymentInfo holds information about a deployment. Deployment information is tracked automatically by server as soon as the first poll from that deployment reaches the server. There can be multiple task queue workers in a single deployment which are listed in this message. Deprecated.

Properties​

createTime​

• Optional createTime: null | $Properties

DeploymentInfo createTime.


deployment​

• Optional deployment: null | $Properties

DeploymentInfo deployment.


isCurrent​

• isCurrent: boolean

If this deployment is the current deployment of its deployment series.


metadata​

• metadata: Object

A user-defined set of key-values. Can be updated as part of write operations to the deployment, such as SetCurrentDeployment.

Index signature​

▪ [k: string]: $Properties


taskQueueInfos​

• taskQueueInfos: $Properties[]

DeploymentInfo taskQueueInfos.

Methods​

toJSON​

▸ toJSON(): Object

Converts this DeploymentInfo to JSON.

Returns​

Object

JSON object


create​

▸ create(properties?): DeploymentInfo & $Properties

Creates a new DeploymentInfo instance using the specified properties.

Parameters​

NameTypeDescription
properties?$PropertiesProperties to set

Returns​

DeploymentInfo & $Properties

DeploymentInfo instance

▸ create(properties?): DeploymentInfo

Parameters​

NameType
properties?$Properties

Returns​

DeploymentInfo


decode​

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

Decodes a DeploymentInfo message from the specified reader or buffer.

Parameters​

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

Returns​

DeploymentInfo & $Properties

DeploymentInfo

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited​

▸ decodeDelimited(reader): DeploymentInfo & $Properties

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

Parameters​

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from

Returns​

DeploymentInfo & $Properties

DeploymentInfo

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

Parameters​

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

Returns​

Writer

Writer


encodeDelimited​

▸ encodeDelimited(message, writer?): Writer

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

Parameters​

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

Returns​

Writer

Writer


fromObject​

▸ fromObject(object): DeploymentInfo

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

Parameters​

NameTypeDescription
objectObjectPlain object

Returns​

DeploymentInfo

DeploymentInfo


toObject​

▸ toObject(message, options?): Object

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

Parameters​

NameTypeDescription
messageDeploymentInfoDeploymentInfo
options?IConversionOptionsConversion options

Returns​

Object

Plain object