Class: ComputeConfigScalingGroup
compute.v1.ComputeConfigScalingGroup
Represents a ComputeConfigScalingGroup.
Implements
Constructors
constructor
• new ComputeConfigScalingGroup(properties?): ComputeConfigScalingGroup
Constructs a new ComputeConfigScalingGroup.
Parameters
| Name | Type | Description |
|---|---|---|
properties? | IComputeConfigScalingGroup | Properties to set |
Returns
Properties
provider
• Optional provider: null | IComputeProvider
Stores instructions for a worker control plane controller how to respond to worker lifeycle events.
Implementation of
IComputeConfigScalingGroup.provider
scaler
• Optional scaler: null | IComputeScaler
Informs a worker lifecycle controller when and how often to perform certain worker lifecycle actions like starting a serverless worker.
Implementation of
IComputeConfigScalingGroup.scaler
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.
Implementation of
IComputeConfigScalingGroup.taskQueueTypes
Methods
toJSON
▸ toJSON(): Object
Converts this ComputeConfigScalingGroup to JSON.
Returns
Object
JSON object
create
▸ create(properties?): ComputeConfigScalingGroup
Creates a new ComputeConfigScalingGroup instance using the specified properties.
Parameters
| Name | Type | Description |
|---|---|---|
properties? | IComputeConfigScalingGroup | Properties to set |
Returns
ComputeConfigScalingGroup instance
decode
▸ decode(reader, length?): ComputeConfigScalingGroup
Decodes a ComputeConfigScalingGroup 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
ComputeConfigScalingGroup
Throws
If the payload is not a reader or valid buffer
Throws
If required fields are missing
decodeDelimited
▸ decodeDelimited(reader): ComputeConfigScalingGroup
Decodes a ComputeConfigScalingGroup message from the specified reader or buffer, length delimited.
Parameters
| Name | Type | Description |
|---|---|---|
reader | Uint8Array | Reader | Reader or buffer to decode from |
Returns
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
| Name | Type | Description |
|---|---|---|
message | IComputeConfigScalingGroup | ComputeConfigScalingGroup message or plain object to encode |
writer? | Writer | Writer 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
| Name | Type | Description |
|---|---|---|
message | IComputeConfigScalingGroup | ComputeConfigScalingGroup message or plain object to encode |
writer? | Writer | Writer to encode to |
Returns
Writer
Writer