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
| Name | Type | Description |
|---|---|---|
properties? | $Properties | Properties to set |
Returns
CreateWorkerDeploymentVersionRequest & $Properties
CreateWorkerDeploymentVersionRequest instance
▸ create(properties?): CreateWorkerDeploymentVersionRequest
Parameters
| Name | Type |
|---|---|
properties? | $Properties |
Returns
CreateWorkerDeploymentVersionRequest
decode
▸ decode(reader, length?): CreateWorkerDeploymentVersionRequest & $Properties
Decodes a CreateWorkerDeploymentVersionRequest 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
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
| Name | Type | Description |
|---|---|---|
reader | Uint8Array | Reader | Reader 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
| Name | Type | Description |
|---|---|---|
message | $Properties | CreateWorkerDeploymentVersionRequest message or plain object to encode |
writer? | Writer | Writer 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
| Name | Type | Description |
|---|---|---|
message | $Properties | CreateWorkerDeploymentVersionRequest message or plain object to encode |
writer? | Writer | Writer 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
| Name | Type | Description |
|---|---|---|
object | Object | Plain 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
| Name | Type | Description |
|---|---|---|
message | CreateWorkerDeploymentVersionRequest | CreateWorkerDeploymentVersionRequest |
options? | IConversionOptions | Conversion options |
Returns
Object
Plain object