Temporal Docs TypeScript SDK API Version 1.27.0 (latest release) Release notes
Skip to main content

Class: ProjectSpec

Represents a ProjectSpec.

Properties​

description​

description: string

A description of the project.


displayName​

displayName: string

The display name of the project.


lifecycle?​

optional lifecycle?: $Properties | null

The lifecycle configuration for the project.

Methods​

toJSON()​

toJSON(): object

Converts this ProjectSpec to JSON.

Returns​

object

JSON object


create()​

Call Signature​

static create(properties?): ProjectSpec & $Properties

Creates a new ProjectSpec instance using the specified properties.

Parameters​
properties?​

$Properties

Properties to set

Returns​

ProjectSpec & $Properties

ProjectSpec instance

Call Signature​

static create(properties?): ProjectSpec

Creates a new ProjectSpec instance using the specified properties.

Parameters​
properties?​

$Properties

Properties to set

Returns​

ProjectSpec

ProjectSpec instance


decode()​

static decode(reader, length?): ProjectSpec & $Properties

Decodes a ProjectSpec 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​

ProjectSpec & $Properties

ProjectSpec

Throws​

If the payload is not a reader or valid buffer

Throws​

If required fields are missing


decodeDelimited()​

static decodeDelimited(reader): ProjectSpec & $Properties

Decodes a ProjectSpec message from the specified reader or buffer, length delimited.

Parameters​

reader​

Uint8Array<ArrayBufferLike> | Reader

Reader or buffer to decode from

Returns​

ProjectSpec & $Properties

ProjectSpec

Throws​

If the payload is not a reader or valid buffer

Throws​

If required fields are missing


encode()​

static encode(message, writer?): Writer

Encodes the specified ProjectSpec message. Does not implicitly temporal.api.cloud.project.v1.ProjectSpec.verify|verify messages.

Parameters​

message​

$Properties

ProjectSpec message or plain object to encode

writer?​

Writer

Writer to encode to

Returns​

Writer

Writer


encodeDelimited()​

static encodeDelimited(message, writer?): Writer

Encodes the specified ProjectSpec message, length delimited. Does not implicitly temporal.api.cloud.project.v1.ProjectSpec.verify|verify messages.

Parameters​

message​

$Properties

ProjectSpec message or plain object to encode

writer?​

Writer

Writer to encode to

Returns​

Writer

Writer


fromObject()​

static fromObject(object): ProjectSpec

Creates a ProjectSpec message from a plain object. Also converts values to their respective internal types.

Parameters​

object​

{[k: string]: any; }

Plain object

Returns​

ProjectSpec

ProjectSpec


toObject()​

static toObject(message, options?): object

Creates a plain object from a ProjectSpec message. Also converts values to other types if specified.

Parameters​

message​

ProjectSpec

ProjectSpec

options?​

IConversionOptions

Conversion options

Returns​

object

Plain object