Skip to content

Commit 22b7d69

Browse files
committed
GRPC clients version 12.2.2
1 parent 1cd1779 commit 22b7d69

File tree

8 files changed

+71
-9
lines changed

8 files changed

+71
-9
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
12.2.1
1+
12.2.2

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.2.1",
3+
"version": "12.2.2",
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: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4939,6 +4939,13 @@ message DeploymentMetrics {
49394939
// you can scale differently.
49404940
message Deployment {
49414941
reserved 5, 6;
4942+
4943+
// Status of the deployment.
4944+
enum Status {
4945+
ENABLED = 0; // Default: deployment is enabled and can serve traffic.
4946+
DISABLED = 1; // Deployment is disabled: scaled to zero, traffic rejected.
4947+
}
4948+
49424949
// An id for this configured deployment.
49434950
string id = 1;
49444951
// The user who owns the deployment. These live in the user/org account.
@@ -5018,6 +5025,11 @@ message Deployment {
50185025

50195026
// Real-time metrics for this deployment, including the desired and live replica counts.
50205027
DeploymentMetrics deployment_metrics = 20;
5028+
5029+
// The current status of the deployment.
5030+
// When disabled, all infrastructure is scaled to zero and prediction requests are rejected.
5031+
// The autoscale_config is preserved for when the deployment is enabled.
5032+
Status status = 21;
50215033
}
50225034

50235035
// DeploymentNodepool associates a nodepool with a deployment and holds per-nodepool settings.
@@ -5779,21 +5791,21 @@ message PipelineTemplateParameter {
57795791
// Maximum length of the string
57805792
uint32 max_length = 4;
57815793
}
5782-
5794+
57835795
message IntConstraints {
57845796
// Minimum value for the int parameter
57855797
int64 min = 1;
57865798
// Maximum value for the int parameter
57875799
int64 max = 2;
57885800
}
5789-
5801+
57905802
message FloatConstraints {
57915803
// Minimum value for the float parameter
57925804
double min = 1;
57935805
// Maximum value for the float parameter
57945806
double max = 2;
57955807
}
5796-
5808+
57975809
oneof constraints {
57985810
StringConstraints string_constraints = 1;
57995811
IntConstraints int_constraints = 2;
@@ -5814,10 +5826,10 @@ message PipelineTemplateParameter {
58145826
}
58155827
// The UI widget to use for displaying this parameter
58165828
UIWidget widget = 1;
5817-
5829+
58185830
// Used for dropdowns populated dynamically
58195831
string data_source = 2;
5820-
5832+
58215833
// Used when backend expects string even if UI shows bool/int
58225834
bool serialize_as_string = 3;
58235835
}
@@ -5828,7 +5840,7 @@ message PipelineTemplateParameter {
58285840

58295841
message PipelineTemplate {
58305842
// Name of the template
5831-
string name = 1;
5843+
string name = 1;
58325844
// Description of the template
58335845
string description = 2;
58345846

proto/clarifai/api/resources_pb.d.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8785,6 +8785,8 @@ export class Deployment extends jspb.Message {
87858785
clearDeploymentMetrics(): void;
87868786
getDeploymentMetrics(): DeploymentMetrics | undefined;
87878787
setDeploymentMetrics(value?: DeploymentMetrics): Deployment;
8788+
getStatus(): Deployment.Status;
8789+
setStatus(value: Deployment.Status): Deployment;
87888790

87898791
serializeBinary(): Uint8Array;
87908792
toObject(includeInstance?: boolean): Deployment.AsObject;
@@ -8816,6 +8818,12 @@ export namespace Deployment {
88168818
gracefulDeploy: boolean,
88178819
deploymentNodepoolsList: Array<DeploymentNodepool.AsObject>,
88188820
deploymentMetrics?: DeploymentMetrics.AsObject,
8821+
status: Deployment.Status,
8822+
}
8823+
8824+
export enum Status {
8825+
ENABLED = 0,
8826+
DISABLED = 1,
88198827
}
88208828

88218829
export enum SchedulingChoice {

proto/clarifai/api/resources_pb.js

Lines changed: 40 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ goog.exportSymbol('proto.clarifai.api.DeleteMetadata', null, global);
137137
goog.exportSymbol('proto.clarifai.api.DeployRestriction', null, global);
138138
goog.exportSymbol('proto.clarifai.api.Deployment', null, global);
139139
goog.exportSymbol('proto.clarifai.api.Deployment.SchedulingChoice', null, global);
140+
goog.exportSymbol('proto.clarifai.api.Deployment.Status', null, global);
140141
goog.exportSymbol('proto.clarifai.api.DeploymentMetrics', null, global);
141142
goog.exportSymbol('proto.clarifai.api.DeploymentNodepool', null, global);
142143
goog.exportSymbol('proto.clarifai.api.DetailConceptCount', null, global);
@@ -73165,7 +73166,8 @@ proto.clarifai.api.Deployment.toObject = function(includeInstance, msg) {
7316573166
gracefulDeploy: jspb.Message.getBooleanFieldWithDefault(msg, 18, false),
7316673167
deploymentNodepoolsList: jspb.Message.toObjectList(msg.getDeploymentNodepoolsList(),
7316773168
proto.clarifai.api.DeploymentNodepool.toObject, includeInstance),
73168-
deploymentMetrics: (f = msg.getDeploymentMetrics()) && proto.clarifai.api.DeploymentMetrics.toObject(includeInstance, f)
73169+
deploymentMetrics: (f = msg.getDeploymentMetrics()) && proto.clarifai.api.DeploymentMetrics.toObject(includeInstance, f),
73170+
status: jspb.Message.getFieldWithDefault(msg, 21, 0)
7316973171
};
7317073172

7317173173
if (includeInstance) {
@@ -73286,6 +73288,10 @@ proto.clarifai.api.Deployment.deserializeBinaryFromReader = function(msg, reader
7328673288
reader.readMessage(value,proto.clarifai.api.DeploymentMetrics.deserializeBinaryFromReader);
7328773289
msg.setDeploymentMetrics(value);
7328873290
break;
73291+
case 21:
73292+
var value = /** @type {!proto.clarifai.api.Deployment.Status} */ (reader.readEnum());
73293+
msg.setStatus(value);
73294+
break;
7328973295
default:
7329073296
reader.skipField();
7329173297
break;
@@ -73453,9 +73459,24 @@ proto.clarifai.api.Deployment.serializeBinaryToWriter = function(message, writer
7345373459
proto.clarifai.api.DeploymentMetrics.serializeBinaryToWriter
7345473460
);
7345573461
}
73462+
f = message.getStatus();
73463+
if (f !== 0.0) {
73464+
writer.writeEnum(
73465+
21,
73466+
f
73467+
);
73468+
}
7345673469
};
7345773470

7345873471

73472+
/**
73473+
* @enum {number}
73474+
*/
73475+
proto.clarifai.api.Deployment.Status = {
73476+
ENABLED: 0,
73477+
DISABLED: 1
73478+
};
73479+
7345973480
/**
7346073481
* @enum {number}
7346173482
*/
@@ -74026,6 +74047,24 @@ proto.clarifai.api.Deployment.prototype.hasDeploymentMetrics = function() {
7402674047
};
7402774048

7402874049

74050+
/**
74051+
* optional Status status = 21;
74052+
* @return {!proto.clarifai.api.Deployment.Status}
74053+
*/
74054+
proto.clarifai.api.Deployment.prototype.getStatus = function() {
74055+
return /** @type {!proto.clarifai.api.Deployment.Status} */ (jspb.Message.getFieldWithDefault(this, 21, 0));
74056+
};
74057+
74058+
74059+
/**
74060+
* @param {!proto.clarifai.api.Deployment.Status} value
74061+
* @return {!proto.clarifai.api.Deployment} returns this
74062+
*/
74063+
proto.clarifai.api.Deployment.prototype.setStatus = function(value) {
74064+
return jspb.Message.setProto3EnumField(this, 21, value);
74065+
};
74066+
74067+
7402974068

7403074069

7403174070

proto/clarifai/api/status/status_code.proto

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,7 @@ enum StatusCode {
250250
DEPLOYMENT_DOES_NOT_EXIST = 25900;
251251
DEPLOYMENT_INVALID_ARGUMENT = 25901;
252252
DEPLOYMENT_INVALID_REQUEST = 25902;
253+
DEPLOYMENT_DISABLED = 25903; // The deployment is disabled and cannot serve traffic.
253254

254255
// InstanceType related codes 260xx
255256
INSTANCE_TYPE_DOES_NOT_EXIST = 26000;

proto/clarifai/api/status/status_code_pb.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ export enum StatusCode {
174174
DEPLOYMENT_DOES_NOT_EXIST = 25900,
175175
DEPLOYMENT_INVALID_ARGUMENT = 25901,
176176
DEPLOYMENT_INVALID_REQUEST = 25902,
177+
DEPLOYMENT_DISABLED = 25903,
177178
INSTANCE_TYPE_DOES_NOT_EXIST = 26000,
178179
INSTANCE_TYPE_INVALID_ARGUMENT = 26001,
179180
INSTANCE_TYPE_INVALID_REQUEST = 26002,

proto/clarifai/api/status/status_code_pb.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,7 @@ proto.clarifai.api.status.StatusCode = {
193193
DEPLOYMENT_DOES_NOT_EXIST: 25900,
194194
DEPLOYMENT_INVALID_ARGUMENT: 25901,
195195
DEPLOYMENT_INVALID_REQUEST: 25902,
196+
DEPLOYMENT_DISABLED: 25903,
196197
INSTANCE_TYPE_DOES_NOT_EXIST: 26000,
197198
INSTANCE_TYPE_INVALID_ARGUMENT: 26001,
198199
INSTANCE_TYPE_INVALID_REQUEST: 26002,

0 commit comments

Comments
 (0)