Class: Provisioned
v1.CapacitySpec.Provisioned
Represents a Provisioned.
Properties
value
• value: number
The units of provisioned capacity in TRU (Temporal Resource Units). Each TRU unit assigned to the namespace will entitle it with additional APS limits as specified in the documentation.
Methods
toJSON
▸ toJSON(): Object
Converts this Provisioned to JSON.
Returns
Object
JSON object
create
▸ create(properties?): Provisioned & $Properties
Creates a new Provisioned instance using the specified properties.
Parameters
| Name | Type | Description |
|---|---|---|
properties? | $Properties | Properties to set |
Returns
Provisioned instance
▸ create(properties?): Provisioned
Parameters
| Name | Type |
|---|---|
properties? | $Properties |
Returns
decode
▸ decode(reader, length?): Provisioned & $Properties
Decodes a Provisioned 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
Provisioned
Throws
If the payload is not a reader or valid buffer
Throws
If required fields are missing
decodeDelimited
▸ decodeDelimited(reader): Provisioned & $Properties
Decodes a Provisioned message from the specified reader or buffer, length delimited.
Parameters
| Name | Type | Description |
|---|---|---|
reader | Uint8Array | Reader | Reader or buffer to decode from |
Returns
Provisioned
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 Provisioned message. Does not implicitly temporal.api.cloud.namespace.v1.CapacitySpec.Provisioned.verify|verify messages.
Parameters
| Name | Type | Description |
|---|---|---|
message | $Properties | Provisioned message or plain object to encode |
writer? | Writer | Writer to encode to |
Returns
Writer
Writer
encodeDelimited
▸ encodeDelimited(message, writer?): Writer
Encodes the specified Provisioned message, length delimited. Does not implicitly temporal.api.cloud.namespace.v1.CapacitySpec.Provisioned.verify|verify messages.
Parameters
| Name | Type | Description |
|---|---|---|
message | $Properties | Provisioned message or plain object to encode |
writer? | Writer | Writer to encode to |
Returns
Writer
Writer
fromObject
▸ fromObject(object): Provisioned
Creates a Provisioned message from a plain object. Also converts values to their respective internal types.
Parameters
| Name | Type | Description |
|---|---|---|
object | Object | Plain object |
Returns
Provisioned
toObject
▸ toObject(message, options?): Object
Creates a plain object from a Provisioned message. Also converts values to other types if specified.
Parameters
| Name | Type | Description |
|---|---|---|
message | Provisioned | Provisioned |
options? | IConversionOptions | Conversion options |
Returns
Object
Plain object