Skip to main content

Class: ComputeConfigScalingGroup

Represents a ComputeConfigScalingGroup.

Properties​

provider?​

optional provider?: $Properties | null

Stores instructions for a worker control plane controller how to respond to worker lifeycle events.


regionIds​

regionIds: string[]

Optional. If set, this scaling group is used only while the namespace is active in one of these regions.


scaler?​

optional scaler?: $Properties | null

Informs a worker lifecycle controller when and how often to perform certain worker lifecycle actions like starting a serverless worker.


taskQueueTypes​

taskQueueTypes: TaskQueueType[]

Optional. The set of task queue types this scaling group serves. If not provided, this scaling group serves all not otherwise defined task types.

Methods​

toJSON()​

toJSON(): object

Converts this ComputeConfigScalingGroup to JSON.

Returns​

object

JSON object


create()​

Call Signature​

static create(properties?): ComputeConfigScalingGroup & $Properties

Creates a new ComputeConfigScalingGroup instance using the specified properties.

Parameters​
properties?​

$Properties

Properties to set

Returns​

ComputeConfigScalingGroup & $Properties

ComputeConfigScalingGroup instance

Call Signature​

static create(properties?): ComputeConfigScalingGroup

Creates a new ComputeConfigScalingGroup instance using the specified properties.

Parameters​
properties?​

$Properties

Properties to set

Returns​

ComputeConfigScalingGroup

ComputeConfigScalingGroup instance


decode()​

static decode(reader, length?): ComputeConfigScalingGroup & $Properties

Decodes a ComputeConfigScalingGroup message from the specified reader or buffer.

Parameters​

reader​

Uint8Array<ArrayBufferLike> | Reader

Reader or buffer to decode from

length?​

number

Message length if known beforehand

Returns​

ComputeConfigScalingGroup & $Properties

ComputeConfigScalingGroup

Throws​

If the payload is not a reader or valid buffer

Throws​

If required fields are missing


decodeDelimited()​

static decodeDelimited(reader): ComputeConfigScalingGroup & $Properties

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

Parameters​

reader​

Uint8Array<ArrayBufferLike> | Reader

Reader or buffer to decode from

Returns​

ComputeConfigScalingGroup & $Properties

ComputeConfigScalingGroup

Throws​

If the payload is not a reader or valid buffer

Throws​

If required fields are missing


encode()​

static encode(message, writer?): Writer

Encodes the specified ComputeConfigScalingGroup message. Does not implicitly temporal.api.compute.v1.ComputeConfigScalingGroup.verify|verify messages.

Parameters​

message​

$Properties

ComputeConfigScalingGroup message or plain object to encode

writer?​

Writer

Writer to encode to

Returns​

Writer

Writer


encodeDelimited()​

static encodeDelimited(message, writer?): Writer

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

Parameters​

message​

$Properties

ComputeConfigScalingGroup message or plain object to encode

writer?​

Writer

Writer to encode to

Returns​

Writer

Writer


fromObject()​

static fromObject(object): ComputeConfigScalingGroup

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

Parameters​

object​

Plain object

Returns​

ComputeConfigScalingGroup

ComputeConfigScalingGroup


toObject()​

static toObject(message, options?): object

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

Parameters​

message​

ComputeConfigScalingGroup

ComputeConfigScalingGroup

options?​

IConversionOptions

Conversion options

Returns​

object

Plain object