Class: Project
Represents a Project.
Properties
asyncOperationId
asyncOperationId:
string
The id of the async operation that is creating/updating/deleting the project, if any
createdTime?
optionalcreatedTime?:$Properties|null
The date and time when the project was created
id
id:
string
The id of the user
lastModifiedTime?
optionallastModifiedTime?:$Properties|null
The date and time when the project was last modified Will not be set if the project has never been modified
resourceVersion
resourceVersion:
string
The current version of the project specification The next update operation will have to include this version
spec?
optionalspec?:$Properties|null
The project specification
state
state:
ResourceState
The current state of the project. For any failed state, reach out to Temporal Cloud support for remediation.
Methods
toJSON()
toJSON():
object
Converts this Project to JSON.
Returns
object
JSON object
create()
Call Signature
staticcreate(properties?):Project&$Properties
Creates a new Project instance using the specified properties.
Parameters
properties?
Properties to set
Returns
Project & $Properties
Project instance
Call Signature
staticcreate(properties?):Project
Creates a new Project instance using the specified properties.
Parameters
properties?
Properties to set
Returns
Project
Project instance
decode()
staticdecode(reader,length?):Project&$Properties
Decodes a Project 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
Project & $Properties
Project
Throws
If the payload is not a reader or valid buffer
Throws
If required fields are missing
decodeDelimited()
staticdecodeDelimited(reader):Project&$Properties
Decodes a Project message from the specified reader or buffer, length delimited.
Parameters
reader
Uint8Array<ArrayBufferLike> | Reader
Reader or buffer to decode from
Returns
Project & $Properties
Project
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 Project message. Does not implicitly temporal.api.cloud.project.v1.Project.verify|verify messages.
Parameters
message
Project message or plain object to encode
writer?
Writer
Writer to encode to
Returns
Writer
Writer
encodeDelimited()
staticencodeDelimited(message,writer?):Writer
Encodes the specified Project message, length delimited. Does not implicitly temporal.api.cloud.project.v1.Project.verify|verify messages.
Parameters
message
Project message or plain object to encode
writer?
Writer
Writer to encode to
Returns
Writer
Writer
fromObject()
staticfromObject(object):Project
Creates a Project message from a plain object. Also converts values to their respective internal types.
Parameters
object
{[k: string]: any; }
Plain object
Returns
Project
Project
toObject()
statictoObject(message,options?):object
Creates a plain object from a Project message. Also converts values to other types if specified.
Parameters
message
Project
Project
options?
IConversionOptions
Conversion options
Returns
object
Plain object