Skip to main content

Class: ComputeConfigScalingGroup

compute.v1.ComputeConfigScalingGroup

Represents a ComputeConfigScalingGroup.

Properties​

provider​

• Optional provider: null | $Properties

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


scaler​

• Optional scaler: null | $Properties

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​

▸ create(properties?): ComputeConfigScalingGroup & $Properties

Creates a new ComputeConfigScalingGroup instance using the specified properties.

Parameters​

NameTypeDescription
properties?$PropertiesProperties to set

Returns​

ComputeConfigScalingGroup & $Properties

ComputeConfigScalingGroup instance

▸ create(properties?): ComputeConfigScalingGroup

Parameters​

NameType
properties?$Properties

Returns​

ComputeConfigScalingGroup


decode​

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

Decodes a ComputeConfigScalingGroup message from the specified reader or buffer.

Parameters​

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from
length?numberMessage 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​

▸ decodeDelimited(reader): ComputeConfigScalingGroup & $Properties

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

Parameters​

NameTypeDescription
readerUint8Array | ReaderReader 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​

▸ encode(message, writer?): Writer

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

Parameters​

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

Returns​

Writer

Writer


encodeDelimited​

▸ encodeDelimited(message, writer?): Writer

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

Parameters​

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

Returns​

Writer

Writer


fromObject​

▸ fromObject(object): ComputeConfigScalingGroup

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

Parameters​

NameTypeDescription
objectObjectPlain object

Returns​

ComputeConfigScalingGroup

ComputeConfigScalingGroup


toObject​

▸ toObject(message, options?): Object

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

Parameters​

NameTypeDescription
messageComputeConfigScalingGroupComputeConfigScalingGroup
options?IConversionOptionsConversion options

Returns​

Object

Plain object