Class: Namespace
Represents a Namespace.
Properties
activeRegion
activeRegion:
string
The currently active region for the namespace.
asyncOperationId
asyncOperationId:
string
The id of the async operation that is creating/updating/deleting the namespace, if any.
capacity?
optionalcapacity?:$Properties|null
The status of namespace's capacity, if any.
connectivityRules
connectivityRules:
$Properties[]
The connectivity rules that are set on this namespace.
createdTime?
optionalcreatedTime?:$Properties|null
The date and time when the namespace was created.
endpoints?
optionalendpoints?:$Properties|null
The endpoints for the namespace.
lastModifiedTime?
optionallastModifiedTime?:$Properties|null
The date and time when the namespace was last modified. Will not be set if the namespace has never been modified.
limits?
optionallimits?:$Properties|null
The limits set on the namespace currently.
namespace
namespace:
string
The namespace identifier.
privateConnectivities
privateConnectivities:
$Properties[]
The private connectivities for the namespace, if any.
regionStatus
regionStatus:
object
The status of each region where the namespace is available. The id of the region is the key and the status is the value of the map. deprecated: Use replicas field instead. temporal:versioning:max_version=v0.15.0
Index Signature
[k: string]: $Properties
replicas
replicas:
$Properties[]
The status of each replica where the namespace is available. temporal:versioning:min_version=v0.13.0
resourceVersion
resourceVersion:
string
The current version of the namespace specification. The next update operation will have to include this version.
spec?
optionalspec?:$Properties|null
The namespace specification.
state
state:
ResourceState
The current state of the namespace. For any failed state, reach out to Temporal Cloud support for remediation. temporal:versioning:min_version=v0.3.0 temporal:enums:replaces=state_deprecated
stateDeprecated
stateDeprecated:
string
The current state of the namespace. Deprecated: Not supported after v0.3.0 api version. Use state instead. temporal:versioning:max_version=v0.3.0
tags
tags:
object
The tags for the namespace.
Index Signature
[k: string]: string
Methods
toJSON()
toJSON():
object
Converts this Namespace to JSON.
Returns
object
JSON object
create()
Call Signature
staticcreate(properties?):Namespace&$Shape
Creates a new Namespace instance using the specified properties.
Parameters
properties?
Properties to set
Returns
Namespace & $Shape
Namespace instance
Call Signature
staticcreate(properties?):Namespace
Creates a new Namespace instance using the specified properties.
Parameters
properties?
Properties to set
Returns
Namespace
Namespace instance
decode()
staticdecode(reader,length?):Namespace&$Shape
Decodes a Namespace 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
Namespace & $Shape
Namespace
Throws
If the payload is not a reader or valid buffer
Throws
If required fields are missing
decodeDelimited()
staticdecodeDelimited(reader):Namespace&$Shape
Decodes a Namespace message from the specified reader or buffer, length delimited.
Parameters
reader
Uint8Array<ArrayBufferLike> | Reader
Reader or buffer to decode from
Returns
Namespace & $Shape
Namespace
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 Namespace message. Does not implicitly temporal.api.cloud.namespace.v1.Namespace.verify|verify messages.
Parameters
message
Namespace message or plain object to encode
writer?
Writer
Writer to encode to
Returns
Writer
Writer
encodeDelimited()
staticencodeDelimited(message,writer?):Writer
Encodes the specified Namespace message, length delimited. Does not implicitly temporal.api.cloud.namespace.v1.Namespace.verify|verify messages.
Parameters
message
Namespace message or plain object to encode
writer?
Writer
Writer to encode to
Returns
Writer
Writer
fromObject()
staticfromObject(object):Namespace
Creates a Namespace message from a plain object. Also converts values to their respective internal types.
Parameters
object
{[k: string]: any; }
Plain object
Returns
Namespace
Namespace
toObject()
statictoObject(message,options?):object
Creates a plain object from a Namespace message. Also converts values to other types if specified.
Parameters
message
Namespace
Namespace
options?
IConversionOptions
Conversion options
Returns
object
Plain object