Skip to content

Commit 09089ef

Browse files
committed
GRPC clients version 12.2.0
1 parent 29dce4e commit 09089ef

File tree

5 files changed

+406
-5
lines changed

5 files changed

+406
-5
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
12.1.3
1+
12.2.0

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "clarifai-nodejs-grpc",
3-
"version": "12.1.3",
3+
"version": "12.2.0",
44
"description": "The official Clarifai Node.js gRPC client",
55
"main": "src/index.js",
66
"repository": "https://github.com/Clarifai/clarifai-javascript-grpc",

proto/clarifai/api/resources.proto

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4941,7 +4941,9 @@ message Deployment {
49414941
// NodepoolRank below. Note: even within a single nodepool if it is heterogeneous then
49424942
// we need a way to rank scheduling choices when we don't know how to decide (like a model
49434943
// supports
4944-
repeated Nodepool nodepools = 4;
4944+
4945+
// Use DeploymentNodepools field instead
4946+
repeated Nodepool nodepools = 4 [deprecated = true];
49454947

49464948
// In some scenarios it may not be obvous how we should schedule a resource to underlying nodes
49474949
// within the nodepool(s) above. The SchedulerChoice allows us to specify how to decide which
@@ -4997,6 +4999,28 @@ message Deployment {
49974999
google.protobuf.Duration email_reminder_after = 17;
49985000
// Whether to gracefully deploy a new worker
49995001
bool graceful_deploy = 18;
5002+
5003+
// Per-nodepool settings including priority. If set, 'nodepools' must not also be set.
5004+
// When any priority value is non-zero, the response will populate this field instead
5005+
// of 'nodepools'.
5006+
repeated DeploymentNodepool deployment_nodepools = 19;
5007+
}
5008+
5009+
// DeploymentNodepool associates a nodepool with a deployment and holds per-nodepool settings.
5010+
message DeploymentNodepool {
5011+
// Nodepool ID correlates with nodepools in deployment.
5012+
string id = 1;
5013+
// The compute cluster that owns this nodepool.
5014+
ComputeCluster compute_cluster = 2;
5015+
// The scheduling priority for this deployment on the given nodepool.
5016+
// Valid values are 0-9, where higher values indicate higher priority.
5017+
// Default is 0 (lowest priority).
5018+
uint32 priority = 3;
5019+
5020+
// -------------------------------------------------------------------
5021+
// OUTPUT FIELDS (Server populates these so the client gets the data)
5022+
// -------------------------------------------------------------------
5023+
Nodepool nodepool = 4;
50005024
}
50015025

50025026

proto/clarifai/api/resources_pb.d.ts

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8750,6 +8750,10 @@ export class Deployment extends jspb.Message {
87508750
setEmailReminderAfter(value?: google_protobuf_duration_pb.Duration): Deployment;
87518751
getGracefulDeploy(): boolean;
87528752
setGracefulDeploy(value: boolean): Deployment;
8753+
clearDeploymentNodepoolsList(): void;
8754+
getDeploymentNodepoolsList(): Array<DeploymentNodepool>;
8755+
setDeploymentNodepoolsList(value: Array<DeploymentNodepool>): Deployment;
8756+
addDeploymentNodepools(value?: DeploymentNodepool, index?: number): DeploymentNodepool;
87538757

87548758
serializeBinary(): Uint8Array;
87558759
toObject(includeInstance?: boolean): Deployment.AsObject;
@@ -8779,6 +8783,7 @@ export namespace Deployment {
87798783
specialHandlingList: Array<SpecialHandling.AsObject>,
87808784
emailReminderAfter?: google_protobuf_duration_pb.Duration.AsObject,
87818785
gracefulDeploy: boolean,
8786+
deploymentNodepoolsList: Array<DeploymentNodepool.AsObject>,
87828787
}
87838788

87848789
export enum SchedulingChoice {
@@ -8795,6 +8800,41 @@ export namespace Deployment {
87958800

87968801
}
87978802

8803+
export class DeploymentNodepool extends jspb.Message {
8804+
getId(): string;
8805+
setId(value: string): DeploymentNodepool;
8806+
8807+
hasComputeCluster(): boolean;
8808+
clearComputeCluster(): void;
8809+
getComputeCluster(): ComputeCluster | undefined;
8810+
setComputeCluster(value?: ComputeCluster): DeploymentNodepool;
8811+
getPriority(): number;
8812+
setPriority(value: number): DeploymentNodepool;
8813+
8814+
hasNodepool(): boolean;
8815+
clearNodepool(): void;
8816+
getNodepool(): Nodepool | undefined;
8817+
setNodepool(value?: Nodepool): DeploymentNodepool;
8818+
8819+
serializeBinary(): Uint8Array;
8820+
toObject(includeInstance?: boolean): DeploymentNodepool.AsObject;
8821+
static toObject(includeInstance: boolean, msg: DeploymentNodepool): DeploymentNodepool.AsObject;
8822+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
8823+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
8824+
static serializeBinaryToWriter(message: DeploymentNodepool, writer: jspb.BinaryWriter): void;
8825+
static deserializeBinary(bytes: Uint8Array): DeploymentNodepool;
8826+
static deserializeBinaryFromReader(message: DeploymentNodepool, reader: jspb.BinaryReader): DeploymentNodepool;
8827+
}
8828+
8829+
export namespace DeploymentNodepool {
8830+
export type AsObject = {
8831+
id: string,
8832+
computeCluster?: ComputeCluster.AsObject,
8833+
priority: number,
8834+
nodepool?: Nodepool.AsObject,
8835+
}
8836+
}
8837+
87988838
export class RunnerSelector extends jspb.Message {
87998839

88008840
hasNodepool(): boolean;

0 commit comments

Comments
 (0)