@lansweeper/multitenant-api-grpc 0.4.43 → 0.4.45

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.
@@ -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
  */
@@ -806,8 +806,6 @@ export class CreateInstallRequest extends jspb.Message {
806
806
  setFqdn(value: string): CreateInstallRequest;
807
807
  getCreatedById(): string;
808
808
  setCreatedById(value: string): CreateInstallRequest;
809
- getCreateSqsQueue(): boolean;
810
- setCreateSqsQueue(value: boolean): CreateInstallRequest;
811
809
  getGlobalId(): string;
812
810
  setGlobalId(value: string): CreateInstallRequest;
813
811
  getType(): InstallType;
@@ -833,7 +831,6 @@ export namespace CreateInstallRequest {
833
831
  status: string,
834
832
  fqdn: string,
835
833
  createdById: string,
836
- createSqsQueue: boolean,
837
834
  globalId: string,
838
835
  type: InstallType,
839
836
  clientId: string,
@@ -7599,7 +7599,6 @@ proto.lansweeper.multitenant.v1.CreateInstallRequest.toObject = function(include
7599
7599
  status: jspb.Message.getFieldWithDefault(msg, 5, ""),
7600
7600
  fqdn: jspb.Message.getFieldWithDefault(msg, 6, ""),
7601
7601
  createdById: jspb.Message.getFieldWithDefault(msg, 7, ""),
7602
- createSqsQueue: jspb.Message.getBooleanFieldWithDefault(msg, 8, false),
7603
7602
  globalId: jspb.Message.getFieldWithDefault(msg, 9, ""),
7604
7603
  type: jspb.Message.getFieldWithDefault(msg, 10, 0),
7605
7604
  clientId: jspb.Message.getFieldWithDefault(msg, 11, "")
@@ -7663,10 +7662,6 @@ proto.lansweeper.multitenant.v1.CreateInstallRequest.deserializeBinaryFromReader
7663
7662
  var value = /** @type {string} */ (reader.readString());
7664
7663
  msg.setCreatedById(value);
7665
7664
  break;
7666
- case 8:
7667
- var value = /** @type {boolean} */ (reader.readBool());
7668
- msg.setCreateSqsQueue(value);
7669
- break;
7670
7665
  case 9:
7671
7666
  var value = /** @type {string} */ (reader.readString());
7672
7667
  msg.setGlobalId(value);
@@ -7750,13 +7745,6 @@ proto.lansweeper.multitenant.v1.CreateInstallRequest.serializeBinaryToWriter = f
7750
7745
  f
7751
7746
  );
7752
7747
  }
7753
- f = message.getCreateSqsQueue();
7754
- if (f) {
7755
- writer.writeBool(
7756
- 8,
7757
- f
7758
- );
7759
- }
7760
7748
  f = message.getGlobalId();
7761
7749
  if (f.length > 0) {
7762
7750
  writer.writeString(
@@ -7889,24 +7877,6 @@ proto.lansweeper.multitenant.v1.CreateInstallRequest.prototype.setCreatedById =
7889
7877
  };
7890
7878
 
7891
7879
 
7892
- /**
7893
- * optional bool create_sqs_queue = 8;
7894
- * @return {boolean}
7895
- */
7896
- proto.lansweeper.multitenant.v1.CreateInstallRequest.prototype.getCreateSqsQueue = function() {
7897
- return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 8, false));
7898
- };
7899
-
7900
-
7901
- /**
7902
- * @param {boolean} value
7903
- * @return {!proto.lansweeper.multitenant.v1.CreateInstallRequest} returns this
7904
- */
7905
- proto.lansweeper.multitenant.v1.CreateInstallRequest.prototype.setCreateSqsQueue = function(value) {
7906
- return jspb.Message.setProto3BooleanField(this, 8, value);
7907
- };
7908
-
7909
-
7910
7880
  /**
7911
7881
  * optional string global_id = 9;
7912
7882
  * @return {string}