Class: CapacityModeOptions
Represents a CapacityModeOptions.
Properties
onDemand?
optionalonDemand?:$Properties|null
On-Demand capacity information.
provisioned?
optionalprovisioned?:$Properties|null
Provisioned capacity options and entitlements.
Methods
toJSON()
toJSON():
object
Converts this CapacityModeOptions to JSON.
Returns
object
JSON object
create()
Call Signature
staticcreate(properties?):CapacityModeOptions&$Properties
Creates a new CapacityModeOptions instance using the specified properties.
Parameters
properties?
Properties to set
Returns
CapacityModeOptions & $Properties
CapacityModeOptions instance
Call Signature
staticcreate(properties?):CapacityModeOptions
Creates a new CapacityModeOptions instance using the specified properties.
Parameters
properties?
Properties to set
Returns
CapacityModeOptions
CapacityModeOptions instance
decode()
staticdecode(reader,length?):CapacityModeOptions&$Properties
Decodes a CapacityModeOptions 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
CapacityModeOptions & $Properties
CapacityModeOptions
Throws
If the payload is not a reader or valid buffer
Throws
If required fields are missing
decodeDelimited()
staticdecodeDelimited(reader):CapacityModeOptions&$Properties
Decodes a CapacityModeOptions message from the specified reader or buffer, length delimited.
Parameters
reader
Uint8Array<ArrayBufferLike> | Reader
Reader or buffer to decode from
Returns
CapacityModeOptions & $Properties
CapacityModeOptions
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 CapacityModeOptions message. Does not implicitly temporal.api.cloud.namespace.v1.NamespaceCapacityInfo.CapacityModeOptions.verify|verify messages.
Parameters
message
CapacityModeOptions message or plain object to encode
writer?
Writer
Writer to encode to
Returns
Writer
Writer
encodeDelimited()
staticencodeDelimited(message,writer?):Writer
Encodes the specified CapacityModeOptions message, length delimited. Does not implicitly temporal.api.cloud.namespace.v1.NamespaceCapacityInfo.CapacityModeOptions.verify|verify messages.
Parameters
message
CapacityModeOptions message or plain object to encode
writer?
Writer
Writer to encode to
Returns
Writer
Writer
fromObject()
staticfromObject(object):CapacityModeOptions
Creates a CapacityModeOptions message from a plain object. Also converts values to their respective internal types.
Parameters
object
{[k: string]: any; }
Plain object
Returns
CapacityModeOptions
CapacityModeOptions
toObject()
statictoObject(message,options?):object
Creates a plain object from a CapacityModeOptions message. Also converts values to other types if specified.
Parameters
message
CapacityModeOptions
CapacityModeOptions
options?
IConversionOptions
Conversion options
Returns
object
Plain object