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
| Name | Type | Description |
|---|---|---|
properties? | $Properties | Properties to set |
Returns
DeploymentInfo instance
▸ create(properties?): DeploymentInfo
Parameters
| Name | Type |
|---|---|
properties? | $Properties |
Returns
decode
▸ decode(reader, length?): DeploymentInfo & $Properties
Decodes a DeploymentInfo message from the specified reader or buffer.
Parameters
| Name | Type | Description |
|---|---|---|
reader | Uint8Array | Reader | Reader or buffer to decode from |
length? | number | Message length if known beforehand |
Returns
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
| Name | Type | Description |
|---|---|---|
reader | Uint8Array | Reader | Reader or buffer to decode from |
Returns
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
| Name | Type | Description |
|---|---|---|
message | $Properties | DeploymentInfo message or plain object to encode |
writer? | Writer | Writer 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
| Name | Type | Description |
|---|---|---|
message | $Properties | DeploymentInfo message or plain object to encode |
writer? | Writer | Writer 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
| Name | Type | Description |
|---|---|---|
object | Object | Plain object |
Returns
DeploymentInfo
toObject
▸ toObject(message, options?): Object
Creates a plain object from a DeploymentInfo message. Also converts values to other types if specified.
Parameters
| Name | Type | Description |
|---|---|---|
message | DeploymentInfo | DeploymentInfo |
options? | IConversionOptions | Conversion options |
Returns
Object
Plain object