Class: Endpoint
An endpoint that receives and then routes Nexus requests
Properties
asyncOperationId
• asyncOperationId: string
The id of any ongoing async operation that is creating, updating, or deleting the endpoint, if any.
createdTime
• Optional createdTime: null | $Properties
The date and time when the endpoint was created.
id
• id: string
The id of the endpoint. This is generated by the server and is immutable.
lastModifiedTime
• Optional lastModifiedTime: null | $Properties
The date and time when the endpoint was last modified.
resourceVersion
• resourceVersion: string
The current version of the endpoint specification. The next update operation must include this version.
spec
• Optional spec: null | $Properties
The endpoint specification.
state
• state: ResourceState
The current state of the endpoint. For any failed state, reach out to Temporal Cloud support for remediation.
Methods
toJSON
▸ toJSON(): Object
Converts this Endpoint to JSON.
Returns
Object
JSON object
create
▸ create(properties?): Endpoint & $Shape
Creates a new Endpoint instance using the specified properties.
Parameters
| Name | Type | Description |
|---|---|---|
properties? | $Shape | Properties to set |
Returns
Endpoint instance
▸ create(properties?): Endpoint
Parameters
| Name | Type |
|---|---|
properties? | $Properties |
Returns
decode
▸ decode(reader, length?): Endpoint & $Shape
Decodes an Endpoint 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
Endpoint
Throws
If the payload is not a reader or valid buffer
Throws
If required fields are missing
decodeDelimited
▸ decodeDelimited(reader): Endpoint & $Shape
Decodes an Endpoint message from the specified reader or buffer, length delimited.
Parameters
| Name | Type | Description |
|---|---|---|
reader | Uint8Array | Reader | Reader or buffer to decode from |
Returns
Endpoint
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 Endpoint message. Does not implicitly temporal.api.cloud.nexus.v1.Endpoint.verify|verify messages.
Parameters
| Name | Type | Description |
|---|---|---|
message | $Properties | Endpoint message or plain object to encode |
writer? | Writer | Writer to encode to |
Returns
Writer
Writer
encodeDelimited
▸ encodeDelimited(message, writer?): Writer
Encodes the specified Endpoint message, length delimited. Does not implicitly temporal.api.cloud.nexus.v1.Endpoint.verify|verify messages.
Parameters
| Name | Type | Description |
|---|---|---|
message | $Properties | Endpoint message or plain object to encode |
writer? | Writer | Writer to encode to |
Returns
Writer
Writer
fromObject
▸ fromObject(object): Endpoint
Creates an Endpoint message from a plain object. Also converts values to their respective internal types.
Parameters
| Name | Type | Description |
|---|---|---|
object | Object | Plain object |
Returns
Endpoint
toObject
▸ toObject(message, options?): Object
Creates a plain object from an Endpoint message. Also converts values to other types if specified.
Parameters
| Name | Type | Description |
|---|---|---|
message | Endpoint | Endpoint |
options? | IConversionOptions | Conversion options |
Returns
Object
Plain object