Class: ComputeConfigScalingGroup
Represents a ComputeConfigScalingGroup.
Properties
provider?
optionalprovider?:$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?
optionalscaler?:$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
staticcreate(properties?):ComputeConfigScalingGroup&$Properties
Creates a new ComputeConfigScalingGroup instance using the specified properties.
Parameters
properties?
Properties to set
Returns
ComputeConfigScalingGroup & $Properties
ComputeConfigScalingGroup instance
Call Signature
staticcreate(properties?):ComputeConfigScalingGroup
Creates a new ComputeConfigScalingGroup instance using the specified properties.
Parameters
properties?
Properties to set
Returns
ComputeConfigScalingGroup
ComputeConfigScalingGroup instance
decode()
staticdecode(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()
staticdecodeDelimited(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()
staticencode(message,writer?):Writer
Encodes the specified ComputeConfigScalingGroup message. Does not implicitly temporal.api.compute.v1.ComputeConfigScalingGroup.verify|verify messages.
Parameters
message
ComputeConfigScalingGroup message or plain object to encode
writer?
Writer
Writer to encode to
Returns
Writer
Writer
encodeDelimited()
staticencodeDelimited(message,writer?):Writer
Encodes the specified ComputeConfigScalingGroup message, length delimited. Does not implicitly temporal.api.compute.v1.ComputeConfigScalingGroup.verify|verify messages.
Parameters
message
ComputeConfigScalingGroup message or plain object to encode
writer?
Writer
Writer to encode to
Returns
Writer
Writer
fromObject()
staticfromObject(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()
statictoObject(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