@lansweeper/multitenant-api-grpc 0.4.44 → 0.4.46
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -0
- package/gen-proto/image.json +1 -1
- package/gen-proto/limits/limits_pb.d.ts +26 -0
- package/gen-proto/limits/limits_pb.js +204 -1
- package/gen-proto/multitenant_pb.d.ts +1 -0
- package/gen-proto/multitenant_pb.js +2 -1
- package/generated-go/multitenant.pb.go +346 -341
- package/package.json +2 -2
- package/proto/limits/limits.proto +5 -0
- package/proto/multitenant.proto +1 -1
|
@@ -139,6 +139,26 @@ export namespace Assets {
|
|
|
139
139
|
}
|
|
140
140
|
}
|
|
141
141
|
|
|
142
|
+
export class Scopes extends jspb.Message {
|
|
143
|
+
getCreateMax(): number;
|
|
144
|
+
setCreateMax(value: number): Scopes;
|
|
145
|
+
|
|
146
|
+
serializeBinary(): Uint8Array;
|
|
147
|
+
toObject(includeInstance?: boolean): Scopes.AsObject;
|
|
148
|
+
static toObject(includeInstance: boolean, msg: Scopes): Scopes.AsObject;
|
|
149
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
150
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
151
|
+
static serializeBinaryToWriter(message: Scopes, writer: jspb.BinaryWriter): void;
|
|
152
|
+
static deserializeBinary(bytes: Uint8Array): Scopes;
|
|
153
|
+
static deserializeBinaryFromReader(message: Scopes, reader: jspb.BinaryReader): Scopes;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
export namespace Scopes {
|
|
157
|
+
export type AsObject = {
|
|
158
|
+
createMax: number,
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
|
|
142
162
|
export class SiteLimits extends jspb.Message {
|
|
143
163
|
getTier(): SiteLimitsTiers;
|
|
144
164
|
setTier(value: SiteLimitsTiers): SiteLimits;
|
|
@@ -153,6 +173,11 @@ export class SiteLimits extends jspb.Message {
|
|
|
153
173
|
getAssets(): Assets | undefined;
|
|
154
174
|
setAssets(value?: Assets): SiteLimits;
|
|
155
175
|
|
|
176
|
+
hasScopes(): boolean;
|
|
177
|
+
clearScopes(): void;
|
|
178
|
+
getScopes(): Scopes | undefined;
|
|
179
|
+
setScopes(value?: Scopes): SiteLimits;
|
|
180
|
+
|
|
156
181
|
serializeBinary(): Uint8Array;
|
|
157
182
|
toObject(includeInstance?: boolean): SiteLimits.AsObject;
|
|
158
183
|
static toObject(includeInstance: boolean, msg: SiteLimits): SiteLimits.AsObject;
|
|
@@ -168,6 +193,7 @@ export namespace SiteLimits {
|
|
|
168
193
|
tier: SiteLimitsTiers,
|
|
169
194
|
riskInsights?: RiskInsights.AsObject,
|
|
170
195
|
assets?: Assets.AsObject,
|
|
196
|
+
scopes?: Scopes.AsObject,
|
|
171
197
|
}
|
|
172
198
|
}
|
|
173
199
|
|
|
@@ -29,6 +29,7 @@ goog.exportSymbol('proto.lansweeper.shared.limits.v1.CalculateRiskInsights', nul
|
|
|
29
29
|
goog.exportSymbol('proto.lansweeper.shared.limits.v1.ExpirableAllowedEntities', null, global);
|
|
30
30
|
goog.exportSymbol('proto.lansweeper.shared.limits.v1.RiskInsights', null, global);
|
|
31
31
|
goog.exportSymbol('proto.lansweeper.shared.limits.v1.RiskInsightsSeverity', null, global);
|
|
32
|
+
goog.exportSymbol('proto.lansweeper.shared.limits.v1.Scopes', null, global);
|
|
32
33
|
goog.exportSymbol('proto.lansweeper.shared.limits.v1.SiteLimits', null, global);
|
|
33
34
|
goog.exportSymbol('proto.lansweeper.shared.limits.v1.SiteLimitsTiers', null, global);
|
|
34
35
|
/**
|
|
@@ -136,6 +137,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
136
137
|
*/
|
|
137
138
|
proto.lansweeper.shared.limits.v1.Assets.displayName = 'proto.lansweeper.shared.limits.v1.Assets';
|
|
138
139
|
}
|
|
140
|
+
/**
|
|
141
|
+
* Generated by JsPbCodeGenerator.
|
|
142
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
143
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
144
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
145
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
146
|
+
* valid.
|
|
147
|
+
* @extends {jspb.Message}
|
|
148
|
+
* @constructor
|
|
149
|
+
*/
|
|
150
|
+
proto.lansweeper.shared.limits.v1.Scopes = function(opt_data) {
|
|
151
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
152
|
+
};
|
|
153
|
+
goog.inherits(proto.lansweeper.shared.limits.v1.Scopes, jspb.Message);
|
|
154
|
+
if (goog.DEBUG && !COMPILED) {
|
|
155
|
+
/**
|
|
156
|
+
* @public
|
|
157
|
+
* @override
|
|
158
|
+
*/
|
|
159
|
+
proto.lansweeper.shared.limits.v1.Scopes.displayName = 'proto.lansweeper.shared.limits.v1.Scopes';
|
|
160
|
+
}
|
|
139
161
|
/**
|
|
140
162
|
* Generated by JsPbCodeGenerator.
|
|
141
163
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -1077,6 +1099,136 @@ proto.lansweeper.shared.limits.v1.Assets.prototype.hasViewRiskInsights = functio
|
|
|
1077
1099
|
|
|
1078
1100
|
|
|
1079
1101
|
|
|
1102
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1103
|
+
/**
|
|
1104
|
+
* Creates an object representation of this proto.
|
|
1105
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1106
|
+
* Optional fields that are not set will be set to undefined.
|
|
1107
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1108
|
+
* For the list of reserved names please see:
|
|
1109
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1110
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1111
|
+
* JSPB instance for transitional soy proto support:
|
|
1112
|
+
* http://goto/soy-param-migration
|
|
1113
|
+
* @return {!Object}
|
|
1114
|
+
*/
|
|
1115
|
+
proto.lansweeper.shared.limits.v1.Scopes.prototype.toObject = function(opt_includeInstance) {
|
|
1116
|
+
return proto.lansweeper.shared.limits.v1.Scopes.toObject(opt_includeInstance, this);
|
|
1117
|
+
};
|
|
1118
|
+
|
|
1119
|
+
|
|
1120
|
+
/**
|
|
1121
|
+
* Static version of the {@see toObject} method.
|
|
1122
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1123
|
+
* the JSPB instance for transitional soy proto support:
|
|
1124
|
+
* http://goto/soy-param-migration
|
|
1125
|
+
* @param {!proto.lansweeper.shared.limits.v1.Scopes} msg The msg instance to transform.
|
|
1126
|
+
* @return {!Object}
|
|
1127
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1128
|
+
*/
|
|
1129
|
+
proto.lansweeper.shared.limits.v1.Scopes.toObject = function(includeInstance, msg) {
|
|
1130
|
+
var f, obj = {
|
|
1131
|
+
createMax: jspb.Message.getFieldWithDefault(msg, 1, 0)
|
|
1132
|
+
};
|
|
1133
|
+
|
|
1134
|
+
if (includeInstance) {
|
|
1135
|
+
obj.$jspbMessageInstance = msg;
|
|
1136
|
+
}
|
|
1137
|
+
return obj;
|
|
1138
|
+
};
|
|
1139
|
+
}
|
|
1140
|
+
|
|
1141
|
+
|
|
1142
|
+
/**
|
|
1143
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1144
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1145
|
+
* @return {!proto.lansweeper.shared.limits.v1.Scopes}
|
|
1146
|
+
*/
|
|
1147
|
+
proto.lansweeper.shared.limits.v1.Scopes.deserializeBinary = function(bytes) {
|
|
1148
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1149
|
+
var msg = new proto.lansweeper.shared.limits.v1.Scopes;
|
|
1150
|
+
return proto.lansweeper.shared.limits.v1.Scopes.deserializeBinaryFromReader(msg, reader);
|
|
1151
|
+
};
|
|
1152
|
+
|
|
1153
|
+
|
|
1154
|
+
/**
|
|
1155
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1156
|
+
* given reader into the given message object.
|
|
1157
|
+
* @param {!proto.lansweeper.shared.limits.v1.Scopes} msg The message object to deserialize into.
|
|
1158
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1159
|
+
* @return {!proto.lansweeper.shared.limits.v1.Scopes}
|
|
1160
|
+
*/
|
|
1161
|
+
proto.lansweeper.shared.limits.v1.Scopes.deserializeBinaryFromReader = function(msg, reader) {
|
|
1162
|
+
while (reader.nextField()) {
|
|
1163
|
+
if (reader.isEndGroup()) {
|
|
1164
|
+
break;
|
|
1165
|
+
}
|
|
1166
|
+
var field = reader.getFieldNumber();
|
|
1167
|
+
switch (field) {
|
|
1168
|
+
case 1:
|
|
1169
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
1170
|
+
msg.setCreateMax(value);
|
|
1171
|
+
break;
|
|
1172
|
+
default:
|
|
1173
|
+
reader.skipField();
|
|
1174
|
+
break;
|
|
1175
|
+
}
|
|
1176
|
+
}
|
|
1177
|
+
return msg;
|
|
1178
|
+
};
|
|
1179
|
+
|
|
1180
|
+
|
|
1181
|
+
/**
|
|
1182
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1183
|
+
* @return {!Uint8Array}
|
|
1184
|
+
*/
|
|
1185
|
+
proto.lansweeper.shared.limits.v1.Scopes.prototype.serializeBinary = function() {
|
|
1186
|
+
var writer = new jspb.BinaryWriter();
|
|
1187
|
+
proto.lansweeper.shared.limits.v1.Scopes.serializeBinaryToWriter(this, writer);
|
|
1188
|
+
return writer.getResultBuffer();
|
|
1189
|
+
};
|
|
1190
|
+
|
|
1191
|
+
|
|
1192
|
+
/**
|
|
1193
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
1194
|
+
* format), writing to the given BinaryWriter.
|
|
1195
|
+
* @param {!proto.lansweeper.shared.limits.v1.Scopes} message
|
|
1196
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1197
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1198
|
+
*/
|
|
1199
|
+
proto.lansweeper.shared.limits.v1.Scopes.serializeBinaryToWriter = function(message, writer) {
|
|
1200
|
+
var f = undefined;
|
|
1201
|
+
f = message.getCreateMax();
|
|
1202
|
+
if (f !== 0) {
|
|
1203
|
+
writer.writeInt32(
|
|
1204
|
+
1,
|
|
1205
|
+
f
|
|
1206
|
+
);
|
|
1207
|
+
}
|
|
1208
|
+
};
|
|
1209
|
+
|
|
1210
|
+
|
|
1211
|
+
/**
|
|
1212
|
+
* optional int32 create_max = 1;
|
|
1213
|
+
* @return {number}
|
|
1214
|
+
*/
|
|
1215
|
+
proto.lansweeper.shared.limits.v1.Scopes.prototype.getCreateMax = function() {
|
|
1216
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
1217
|
+
};
|
|
1218
|
+
|
|
1219
|
+
|
|
1220
|
+
/**
|
|
1221
|
+
* @param {number} value
|
|
1222
|
+
* @return {!proto.lansweeper.shared.limits.v1.Scopes} returns this
|
|
1223
|
+
*/
|
|
1224
|
+
proto.lansweeper.shared.limits.v1.Scopes.prototype.setCreateMax = function(value) {
|
|
1225
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
1226
|
+
};
|
|
1227
|
+
|
|
1228
|
+
|
|
1229
|
+
|
|
1230
|
+
|
|
1231
|
+
|
|
1080
1232
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1081
1233
|
/**
|
|
1082
1234
|
* Creates an object representation of this proto.
|
|
@@ -1108,7 +1260,8 @@ proto.lansweeper.shared.limits.v1.SiteLimits.toObject = function(includeInstance
|
|
|
1108
1260
|
var f, obj = {
|
|
1109
1261
|
tier: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
1110
1262
|
riskInsights: (f = msg.getRiskInsights()) && proto.lansweeper.shared.limits.v1.RiskInsights.toObject(includeInstance, f),
|
|
1111
|
-
assets: (f = msg.getAssets()) && proto.lansweeper.shared.limits.v1.Assets.toObject(includeInstance, f)
|
|
1263
|
+
assets: (f = msg.getAssets()) && proto.lansweeper.shared.limits.v1.Assets.toObject(includeInstance, f),
|
|
1264
|
+
scopes: (f = msg.getScopes()) && proto.lansweeper.shared.limits.v1.Scopes.toObject(includeInstance, f)
|
|
1112
1265
|
};
|
|
1113
1266
|
|
|
1114
1267
|
if (includeInstance) {
|
|
@@ -1159,6 +1312,11 @@ proto.lansweeper.shared.limits.v1.SiteLimits.deserializeBinaryFromReader = funct
|
|
|
1159
1312
|
reader.readMessage(value,proto.lansweeper.shared.limits.v1.Assets.deserializeBinaryFromReader);
|
|
1160
1313
|
msg.setAssets(value);
|
|
1161
1314
|
break;
|
|
1315
|
+
case 5:
|
|
1316
|
+
var value = new proto.lansweeper.shared.limits.v1.Scopes;
|
|
1317
|
+
reader.readMessage(value,proto.lansweeper.shared.limits.v1.Scopes.deserializeBinaryFromReader);
|
|
1318
|
+
msg.setScopes(value);
|
|
1319
|
+
break;
|
|
1162
1320
|
default:
|
|
1163
1321
|
reader.skipField();
|
|
1164
1322
|
break;
|
|
@@ -1211,6 +1369,14 @@ proto.lansweeper.shared.limits.v1.SiteLimits.serializeBinaryToWriter = function(
|
|
|
1211
1369
|
proto.lansweeper.shared.limits.v1.Assets.serializeBinaryToWriter
|
|
1212
1370
|
);
|
|
1213
1371
|
}
|
|
1372
|
+
f = message.getScopes();
|
|
1373
|
+
if (f != null) {
|
|
1374
|
+
writer.writeMessage(
|
|
1375
|
+
5,
|
|
1376
|
+
f,
|
|
1377
|
+
proto.lansweeper.shared.limits.v1.Scopes.serializeBinaryToWriter
|
|
1378
|
+
);
|
|
1379
|
+
}
|
|
1214
1380
|
};
|
|
1215
1381
|
|
|
1216
1382
|
|
|
@@ -1306,6 +1472,43 @@ proto.lansweeper.shared.limits.v1.SiteLimits.prototype.hasAssets = function() {
|
|
|
1306
1472
|
};
|
|
1307
1473
|
|
|
1308
1474
|
|
|
1475
|
+
/**
|
|
1476
|
+
* optional Scopes scopes = 5;
|
|
1477
|
+
* @return {?proto.lansweeper.shared.limits.v1.Scopes}
|
|
1478
|
+
*/
|
|
1479
|
+
proto.lansweeper.shared.limits.v1.SiteLimits.prototype.getScopes = function() {
|
|
1480
|
+
return /** @type{?proto.lansweeper.shared.limits.v1.Scopes} */ (
|
|
1481
|
+
jspb.Message.getWrapperField(this, proto.lansweeper.shared.limits.v1.Scopes, 5));
|
|
1482
|
+
};
|
|
1483
|
+
|
|
1484
|
+
|
|
1485
|
+
/**
|
|
1486
|
+
* @param {?proto.lansweeper.shared.limits.v1.Scopes|undefined} value
|
|
1487
|
+
* @return {!proto.lansweeper.shared.limits.v1.SiteLimits} returns this
|
|
1488
|
+
*/
|
|
1489
|
+
proto.lansweeper.shared.limits.v1.SiteLimits.prototype.setScopes = function(value) {
|
|
1490
|
+
return jspb.Message.setWrapperField(this, 5, value);
|
|
1491
|
+
};
|
|
1492
|
+
|
|
1493
|
+
|
|
1494
|
+
/**
|
|
1495
|
+
* Clears the message field making it undefined.
|
|
1496
|
+
* @return {!proto.lansweeper.shared.limits.v1.SiteLimits} returns this
|
|
1497
|
+
*/
|
|
1498
|
+
proto.lansweeper.shared.limits.v1.SiteLimits.prototype.clearScopes = function() {
|
|
1499
|
+
return this.setScopes(undefined);
|
|
1500
|
+
};
|
|
1501
|
+
|
|
1502
|
+
|
|
1503
|
+
/**
|
|
1504
|
+
* Returns whether this field is set.
|
|
1505
|
+
* @return {boolean}
|
|
1506
|
+
*/
|
|
1507
|
+
proto.lansweeper.shared.limits.v1.SiteLimits.prototype.hasScopes = function() {
|
|
1508
|
+
return jspb.Message.getField(this, 5) != null;
|
|
1509
|
+
};
|
|
1510
|
+
|
|
1511
|
+
|
|
1309
1512
|
/**
|
|
1310
1513
|
* @enum {number}
|
|
1311
1514
|
*/
|
|
@@ -18298,7 +18298,8 @@ proto.lansweeper.multitenant.v1.InstallType = {
|
|
|
18298
18298
|
IT: 0,
|
|
18299
18299
|
OT: 1,
|
|
18300
18300
|
IT_AGENT: 2,
|
|
18301
|
-
CLOUD: 3
|
|
18301
|
+
CLOUD: 3,
|
|
18302
|
+
NETWORK_DISCOVERY: 4
|
|
18302
18303
|
};
|
|
18303
18304
|
|
|
18304
18305
|
/**
|