Class: TaskQueueVersioningInfo
taskqueue.v1.TaskQueueVersioningInfo
Represents a TaskQueueVersioningInfo.
Implements
Constructors
constructor
• new TaskQueueVersioningInfo(properties?): TaskQueueVersioningInfo
Constructs a new TaskQueueVersioningInfo.
Parameters
| Name | Type | Description |
|---|---|---|
properties? | ITaskQueueVersioningInfo | Properties to set |
Returns
Properties
currentDeploymentVersion
• Optional currentDeploymentVersion: null | IWorkerDeploymentVersion
Specifies which Deployment Version should receive new workflow executions and tasks of
existing unversioned or AutoUpgrade workflows.
Nil value represents all the unversioned workers (those with UNVERSIONED (or unspecified) WorkerVersioningMode.)
Note: Current Version is overridden by the Ramping Version for a portion of traffic when ramp percentage
is non-zero (see ramping_deployment_version and ramping_version_percentage).
Implementation of
ITaskQueueVersioningInfo.currentDeploymentVersion
currentVersion
• currentVersion: string
Deprecated. Use current_deployment_version.
Implementation of
ITaskQueueVersioningInfo.currentVersion
rampingDeploymentVersion
• Optional rampingDeploymentVersion: null | IWorkerDeploymentVersion
When ramp percentage is non-zero, that portion of traffic is shifted from the Current Version to the Ramping Version.
Must always be different from current_deployment_version unless both are nil.
Nil value represents all the unversioned workers (those with UNVERSIONED (or unspecified) WorkerVersioningMode.)
Note that it is possible to ramp from one Version to another Version, or from unversioned
workers to a particular Version, or from a particular Version to unversioned workers.
Implementation of
ITaskQueueVersioningInfo.rampingDeploymentVersion
rampingVersion
• rampingVersion: string
Deprecated. Use ramping_deployment_version.
Implementation of
ITaskQueueVersioningInfo.rampingVersion
rampingVersionPercentage
• rampingVersionPercentage: number
Percentage of tasks that are routed to the Ramping Version instead of the Current Version. Valid range: [0, 100]. A 100% value means the Ramping Version is receiving full traffic but not yet "promoted" to be the Current Version, likely due to pending validations. A 0% value means the Ramping Version is receiving no traffic.
Implementation of
ITaskQueueVersioningInfo.rampingVersionPercentage
updateTime
• Optional updateTime: null | ITimestamp
Last time versioning information of this Task Queue changed.
Implementation of
ITaskQueueVersioningInfo.updateTime
Methods
toJSON
▸ toJSON(): Object
Converts this TaskQueueVersioningInfo to JSON.
Returns
Object
JSON object
create
▸ create(properties?): TaskQueueVersioningInfo
Creates a new TaskQueueVersioningInfo instance using the specified properties.
Parameters
| Name | Type | Description |
|---|---|---|
properties? | ITaskQueueVersioningInfo | Properties to set |
Returns
TaskQueueVersioningInfo instance
decode
▸ decode(reader, length?): TaskQueueVersioningInfo
Decodes a TaskQueueVersioningInfo 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
TaskQueueVersioningInfo
Throws
If the payload is not a reader or valid buffer
Throws
If required fields are missing
decodeDelimited
▸ decodeDelimited(reader): TaskQueueVersioningInfo
Decodes a TaskQueueVersioningInfo message from the specified reader or buffer, length delimited.
Parameters
| Name | Type | Description |
|---|---|---|
reader | Uint8Array | Reader | Reader or buffer to decode from |
Returns
TaskQueueVersioningInfo
Throws
If the payload is not a reader or valid buffer
Throws
If required fields are missing