Skip to main content

Class: CreateWorkerDeploymentVersionRequest

workflowservice.v1.CreateWorkerDeploymentVersionRequest

Creates a new WorkerDeploymentVersion.

Properties

computeConfig

Optional computeConfig: null | $Properties

Optional. Contains the new worker compute configuration for the Worker Deployment. Used for worker scale management.


deploymentVersion

Optional deploymentVersion: null | $Properties

Required.


identity

identity: string

Optional. The identity of the client who initiated this request.


namespace

namespace: string

CreateWorkerDeploymentVersionRequest namespace.


requestId

requestId: string

A unique identifier for this create request for idempotence. Typically UUIDv4. If a second request with the same ID is recieved, it is considered a successful no-op. Retrying with a different request ID for the same deployment name + build ID is an error.

Methods

toJSON

toJSON(): Object

Converts this CreateWorkerDeploymentVersionRequest to JSON.

Returns

Object

JSON object


create

create(properties?): CreateWorkerDeploymentVersionRequest & $Properties

Creates a new CreateWorkerDeploymentVersionRequest instance using the specified properties.

Parameters

NameTypeDescription
properties?$PropertiesProperties to set

Returns

CreateWorkerDeploymentVersionRequest & $Properties

CreateWorkerDeploymentVersionRequest instance

create(properties?): CreateWorkerDeploymentVersionRequest

Parameters

NameType
properties?$Properties

Returns

CreateWorkerDeploymentVersionRequest


decode

decode(reader, length?): CreateWorkerDeploymentVersionRequest & $Properties

Decodes a CreateWorkerDeploymentVersionRequest message from the specified reader or buffer.

Parameters

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from
length?numberMessage length if known beforehand

Returns

CreateWorkerDeploymentVersionRequest & $Properties

CreateWorkerDeploymentVersionRequest

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited

decodeDelimited(reader): CreateWorkerDeploymentVersionRequest & $Properties

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

Parameters

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from

Returns

CreateWorkerDeploymentVersionRequest & $Properties

CreateWorkerDeploymentVersionRequest

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 CreateWorkerDeploymentVersionRequest message. Does not implicitly temporal.api.workflowservice.v1.CreateWorkerDeploymentVersionRequest.verify|verify messages.

Parameters

NameTypeDescription
message$PropertiesCreateWorkerDeploymentVersionRequest message or plain object to encode
writer?WriterWriter to encode to

Returns

Writer

Writer


encodeDelimited

encodeDelimited(message, writer?): Writer

Encodes the specified CreateWorkerDeploymentVersionRequest message, length delimited. Does not implicitly temporal.api.workflowservice.v1.CreateWorkerDeploymentVersionRequest.verify|verify messages.

Parameters

NameTypeDescription
message$PropertiesCreateWorkerDeploymentVersionRequest message or plain object to encode
writer?WriterWriter to encode to

Returns

Writer

Writer


fromObject

fromObject(object): CreateWorkerDeploymentVersionRequest

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

Parameters

NameTypeDescription
objectObjectPlain object

Returns

CreateWorkerDeploymentVersionRequest

CreateWorkerDeploymentVersionRequest


toObject

toObject(message, options?): Object

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

Parameters

NameTypeDescription
messageCreateWorkerDeploymentVersionRequestCreateWorkerDeploymentVersionRequest
options?IConversionOptionsConversion options

Returns

Object

Plain object