@lansweeper/scanningconfig-grpc 0.1.0 → 0.1.2
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/Lansweeper.ScanningConfig.GRPC.csproj +12 -12
- package/bin/Debug/net6.0/Lansweeper.ScanningConfig.GRPC.deps.json +2 -2
- package/bin/Debug/net6.0/Lansweeper.ScanningConfig.GRPC.dll +0 -0
- package/bin/Debug/net6.0/Lansweeper.ScanningConfig.GRPC.pdb +0 -0
- package/gen-proto/image.json +1 -1
- package/gen-proto/scanningconfig_pb.d.ts +63 -0
- package/gen-proto/scanningconfig_pb.js +531 -6
- package/generated-go/scanningconfig.pb.go +329 -140
- package/generated-go/scanningconfig_grpc.pb.go +1 -1
- package/obj/Debug/net6.0/Lansweeper.ScanningConfig.GRPC.AssemblyInfo.cs +3 -3
- package/obj/Debug/net6.0/Lansweeper.ScanningConfig.GRPC.AssemblyInfoInputs.cache +1 -1
- package/obj/Debug/net6.0/Lansweeper.ScanningConfig.GRPC.csproj.AssemblyReference.cache +0 -0
- package/obj/Debug/net6.0/Lansweeper.ScanningConfig.GRPC.csproj.CoreCompileInputs.cache +1 -1
- package/obj/Debug/net6.0/Lansweeper.ScanningConfig.GRPC.dll +0 -0
- package/obj/Debug/net6.0/Lansweeper.ScanningConfig.GRPC.pdb +0 -0
- package/obj/Debug/net6.0/proto/Scanningconfig.cs +578 -38
- package/obj/Debug/net6.0/ref/Lansweeper.ScanningConfig.GRPC.dll +0 -0
- package/obj/Debug/net6.0/refint/Lansweeper.ScanningConfig.GRPC.dll +0 -0
- package/obj/Lansweeper.ScanningConfig.GRPC.csproj.nuget.dgspec.json +2 -2
- package/obj/Lansweeper.ScanningConfig.GRPC.csproj.nuget.g.props +1 -1
- package/obj/project.assets.json +2 -2
- package/obj/project.nuget.cache +1 -1
- package/package.json +2 -2
- package/proto/scanningconfig.proto +16 -2
|
@@ -13,13 +13,20 @@
|
|
|
13
13
|
|
|
14
14
|
var jspb = require('google-protobuf');
|
|
15
15
|
var goog = jspb;
|
|
16
|
-
var global =
|
|
16
|
+
var global = (function() {
|
|
17
|
+
if (this) { return this; }
|
|
18
|
+
if (typeof window !== 'undefined') { return window; }
|
|
19
|
+
if (typeof global !== 'undefined') { return global; }
|
|
20
|
+
if (typeof self !== 'undefined') { return self; }
|
|
21
|
+
return Function('return this')();
|
|
22
|
+
}.call(null));
|
|
17
23
|
|
|
18
24
|
goog.exportSymbol('proto.lansweeper.scanningconfig.v1.Action', null, global);
|
|
19
25
|
goog.exportSymbol('proto.lansweeper.scanningconfig.v1.Action.ActionType', null, global);
|
|
20
26
|
goog.exportSymbol('proto.lansweeper.scanningconfig.v1.Action.DefinitionCase', null, global);
|
|
21
27
|
goog.exportSymbol('proto.lansweeper.scanningconfig.v1.Agent', null, global);
|
|
22
28
|
goog.exportSymbol('proto.lansweeper.scanningconfig.v1.Agent.ScanFocus', null, global);
|
|
29
|
+
goog.exportSymbol('proto.lansweeper.scanningconfig.v1.Agentless', null, global);
|
|
23
30
|
goog.exportSymbol('proto.lansweeper.scanningconfig.v1.AssetRadar', null, global);
|
|
24
31
|
goog.exportSymbol('proto.lansweeper.scanningconfig.v1.AutoUpdate', null, global);
|
|
25
32
|
goog.exportSymbol('proto.lansweeper.scanningconfig.v1.Component', null, global);
|
|
@@ -28,6 +35,7 @@ goog.exportSymbol('proto.lansweeper.scanningconfig.v1.Credential', null, global)
|
|
|
28
35
|
goog.exportSymbol('proto.lansweeper.scanningconfig.v1.Credential.CredentialType', null, global);
|
|
29
36
|
goog.exportSymbol('proto.lansweeper.scanningconfig.v1.GetConfigurationsBySourceRequest', null, global);
|
|
30
37
|
goog.exportSymbol('proto.lansweeper.scanningconfig.v1.GetConfigurationsBySourceResponse', null, global);
|
|
38
|
+
goog.exportSymbol('proto.lansweeper.scanningconfig.v1.NetworkVisibility', null, global);
|
|
31
39
|
goog.exportSymbol('proto.lansweeper.scanningconfig.v1.OperationalConfig', null, global);
|
|
32
40
|
goog.exportSymbol('proto.lansweeper.scanningconfig.v1.Trigger', null, global);
|
|
33
41
|
/**
|
|
@@ -114,6 +122,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
114
122
|
*/
|
|
115
123
|
proto.lansweeper.scanningconfig.v1.AssetRadar.displayName = 'proto.lansweeper.scanningconfig.v1.AssetRadar';
|
|
116
124
|
}
|
|
125
|
+
/**
|
|
126
|
+
* Generated by JsPbCodeGenerator.
|
|
127
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
128
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
129
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
130
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
131
|
+
* valid.
|
|
132
|
+
* @extends {jspb.Message}
|
|
133
|
+
* @constructor
|
|
134
|
+
*/
|
|
135
|
+
proto.lansweeper.scanningconfig.v1.NetworkVisibility = function(opt_data) {
|
|
136
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.lansweeper.scanningconfig.v1.NetworkVisibility.repeatedFields_, null);
|
|
137
|
+
};
|
|
138
|
+
goog.inherits(proto.lansweeper.scanningconfig.v1.NetworkVisibility, jspb.Message);
|
|
139
|
+
if (goog.DEBUG && !COMPILED) {
|
|
140
|
+
/**
|
|
141
|
+
* @public
|
|
142
|
+
* @override
|
|
143
|
+
*/
|
|
144
|
+
proto.lansweeper.scanningconfig.v1.NetworkVisibility.displayName = 'proto.lansweeper.scanningconfig.v1.NetworkVisibility';
|
|
145
|
+
}
|
|
117
146
|
/**
|
|
118
147
|
* Generated by JsPbCodeGenerator.
|
|
119
148
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -198,6 +227,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
198
227
|
*/
|
|
199
228
|
proto.lansweeper.scanningconfig.v1.Action.displayName = 'proto.lansweeper.scanningconfig.v1.Action';
|
|
200
229
|
}
|
|
230
|
+
/**
|
|
231
|
+
* Generated by JsPbCodeGenerator.
|
|
232
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
233
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
234
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
235
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
236
|
+
* valid.
|
|
237
|
+
* @extends {jspb.Message}
|
|
238
|
+
* @constructor
|
|
239
|
+
*/
|
|
240
|
+
proto.lansweeper.scanningconfig.v1.Agentless = function(opt_data) {
|
|
241
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.lansweeper.scanningconfig.v1.Agentless.repeatedFields_, null);
|
|
242
|
+
};
|
|
243
|
+
goog.inherits(proto.lansweeper.scanningconfig.v1.Agentless, jspb.Message);
|
|
244
|
+
if (goog.DEBUG && !COMPILED) {
|
|
245
|
+
/**
|
|
246
|
+
* @public
|
|
247
|
+
* @override
|
|
248
|
+
*/
|
|
249
|
+
proto.lansweeper.scanningconfig.v1.Agentless.displayName = 'proto.lansweeper.scanningconfig.v1.Agentless';
|
|
250
|
+
}
|
|
201
251
|
/**
|
|
202
252
|
* Generated by JsPbCodeGenerator.
|
|
203
253
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -603,7 +653,8 @@ proto.lansweeper.scanningconfig.v1.Component.toObject = function(includeInstance
|
|
|
603
653
|
type: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
604
654
|
actionsList: jspb.Message.toObjectList(msg.getActionsList(),
|
|
605
655
|
proto.lansweeper.scanningconfig.v1.Action.toObject, includeInstance),
|
|
606
|
-
opConfig: (f = msg.getOpConfig()) && proto.lansweeper.scanningconfig.v1.OperationalConfig.toObject(includeInstance, f)
|
|
656
|
+
opConfig: (f = msg.getOpConfig()) && proto.lansweeper.scanningconfig.v1.OperationalConfig.toObject(includeInstance, f),
|
|
657
|
+
enabled: jspb.Message.getBooleanFieldWithDefault(msg, 5, false)
|
|
607
658
|
};
|
|
608
659
|
|
|
609
660
|
if (includeInstance) {
|
|
@@ -658,6 +709,10 @@ proto.lansweeper.scanningconfig.v1.Component.deserializeBinaryFromReader = funct
|
|
|
658
709
|
reader.readMessage(value,proto.lansweeper.scanningconfig.v1.OperationalConfig.deserializeBinaryFromReader);
|
|
659
710
|
msg.setOpConfig(value);
|
|
660
711
|
break;
|
|
712
|
+
case 5:
|
|
713
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
714
|
+
msg.setEnabled(value);
|
|
715
|
+
break;
|
|
661
716
|
default:
|
|
662
717
|
reader.skipField();
|
|
663
718
|
break;
|
|
@@ -717,6 +772,13 @@ proto.lansweeper.scanningconfig.v1.Component.serializeBinaryToWriter = function(
|
|
|
717
772
|
proto.lansweeper.scanningconfig.v1.OperationalConfig.serializeBinaryToWriter
|
|
718
773
|
);
|
|
719
774
|
}
|
|
775
|
+
f = message.getEnabled();
|
|
776
|
+
if (f) {
|
|
777
|
+
writer.writeBool(
|
|
778
|
+
5,
|
|
779
|
+
f
|
|
780
|
+
);
|
|
781
|
+
}
|
|
720
782
|
};
|
|
721
783
|
|
|
722
784
|
|
|
@@ -841,6 +903,24 @@ proto.lansweeper.scanningconfig.v1.Component.prototype.hasOpConfig = function()
|
|
|
841
903
|
};
|
|
842
904
|
|
|
843
905
|
|
|
906
|
+
/**
|
|
907
|
+
* optional bool enabled = 5;
|
|
908
|
+
* @return {boolean}
|
|
909
|
+
*/
|
|
910
|
+
proto.lansweeper.scanningconfig.v1.Component.prototype.getEnabled = function() {
|
|
911
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false));
|
|
912
|
+
};
|
|
913
|
+
|
|
914
|
+
|
|
915
|
+
/**
|
|
916
|
+
* @param {boolean} value
|
|
917
|
+
* @return {!proto.lansweeper.scanningconfig.v1.Component} returns this
|
|
918
|
+
*/
|
|
919
|
+
proto.lansweeper.scanningconfig.v1.Component.prototype.setEnabled = function(value) {
|
|
920
|
+
return jspb.Message.setProto3BooleanField(this, 5, value);
|
|
921
|
+
};
|
|
922
|
+
|
|
923
|
+
|
|
844
924
|
|
|
845
925
|
/**
|
|
846
926
|
* List of repeated fields within this message type.
|
|
@@ -1028,6 +1108,192 @@ proto.lansweeper.scanningconfig.v1.AssetRadar.prototype.clearExcludedInterfacesL
|
|
|
1028
1108
|
|
|
1029
1109
|
|
|
1030
1110
|
|
|
1111
|
+
/**
|
|
1112
|
+
* List of repeated fields within this message type.
|
|
1113
|
+
* @private {!Array<number>}
|
|
1114
|
+
* @const
|
|
1115
|
+
*/
|
|
1116
|
+
proto.lansweeper.scanningconfig.v1.NetworkVisibility.repeatedFields_ = [2];
|
|
1117
|
+
|
|
1118
|
+
|
|
1119
|
+
|
|
1120
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1121
|
+
/**
|
|
1122
|
+
* Creates an object representation of this proto.
|
|
1123
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1124
|
+
* Optional fields that are not set will be set to undefined.
|
|
1125
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1126
|
+
* For the list of reserved names please see:
|
|
1127
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1128
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1129
|
+
* JSPB instance for transitional soy proto support:
|
|
1130
|
+
* http://goto/soy-param-migration
|
|
1131
|
+
* @return {!Object}
|
|
1132
|
+
*/
|
|
1133
|
+
proto.lansweeper.scanningconfig.v1.NetworkVisibility.prototype.toObject = function(opt_includeInstance) {
|
|
1134
|
+
return proto.lansweeper.scanningconfig.v1.NetworkVisibility.toObject(opt_includeInstance, this);
|
|
1135
|
+
};
|
|
1136
|
+
|
|
1137
|
+
|
|
1138
|
+
/**
|
|
1139
|
+
* Static version of the {@see toObject} method.
|
|
1140
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1141
|
+
* the JSPB instance for transitional soy proto support:
|
|
1142
|
+
* http://goto/soy-param-migration
|
|
1143
|
+
* @param {!proto.lansweeper.scanningconfig.v1.NetworkVisibility} msg The msg instance to transform.
|
|
1144
|
+
* @return {!Object}
|
|
1145
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1146
|
+
*/
|
|
1147
|
+
proto.lansweeper.scanningconfig.v1.NetworkVisibility.toObject = function(includeInstance, msg) {
|
|
1148
|
+
var f, obj = {
|
|
1149
|
+
enabled: jspb.Message.getBooleanFieldWithDefault(msg, 1, false),
|
|
1150
|
+
excludedInterfacesList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f
|
|
1151
|
+
};
|
|
1152
|
+
|
|
1153
|
+
if (includeInstance) {
|
|
1154
|
+
obj.$jspbMessageInstance = msg;
|
|
1155
|
+
}
|
|
1156
|
+
return obj;
|
|
1157
|
+
};
|
|
1158
|
+
}
|
|
1159
|
+
|
|
1160
|
+
|
|
1161
|
+
/**
|
|
1162
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1163
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1164
|
+
* @return {!proto.lansweeper.scanningconfig.v1.NetworkVisibility}
|
|
1165
|
+
*/
|
|
1166
|
+
proto.lansweeper.scanningconfig.v1.NetworkVisibility.deserializeBinary = function(bytes) {
|
|
1167
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1168
|
+
var msg = new proto.lansweeper.scanningconfig.v1.NetworkVisibility;
|
|
1169
|
+
return proto.lansweeper.scanningconfig.v1.NetworkVisibility.deserializeBinaryFromReader(msg, reader);
|
|
1170
|
+
};
|
|
1171
|
+
|
|
1172
|
+
|
|
1173
|
+
/**
|
|
1174
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1175
|
+
* given reader into the given message object.
|
|
1176
|
+
* @param {!proto.lansweeper.scanningconfig.v1.NetworkVisibility} msg The message object to deserialize into.
|
|
1177
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1178
|
+
* @return {!proto.lansweeper.scanningconfig.v1.NetworkVisibility}
|
|
1179
|
+
*/
|
|
1180
|
+
proto.lansweeper.scanningconfig.v1.NetworkVisibility.deserializeBinaryFromReader = function(msg, reader) {
|
|
1181
|
+
while (reader.nextField()) {
|
|
1182
|
+
if (reader.isEndGroup()) {
|
|
1183
|
+
break;
|
|
1184
|
+
}
|
|
1185
|
+
var field = reader.getFieldNumber();
|
|
1186
|
+
switch (field) {
|
|
1187
|
+
case 1:
|
|
1188
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
1189
|
+
msg.setEnabled(value);
|
|
1190
|
+
break;
|
|
1191
|
+
case 2:
|
|
1192
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1193
|
+
msg.addExcludedInterfaces(value);
|
|
1194
|
+
break;
|
|
1195
|
+
default:
|
|
1196
|
+
reader.skipField();
|
|
1197
|
+
break;
|
|
1198
|
+
}
|
|
1199
|
+
}
|
|
1200
|
+
return msg;
|
|
1201
|
+
};
|
|
1202
|
+
|
|
1203
|
+
|
|
1204
|
+
/**
|
|
1205
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1206
|
+
* @return {!Uint8Array}
|
|
1207
|
+
*/
|
|
1208
|
+
proto.lansweeper.scanningconfig.v1.NetworkVisibility.prototype.serializeBinary = function() {
|
|
1209
|
+
var writer = new jspb.BinaryWriter();
|
|
1210
|
+
proto.lansweeper.scanningconfig.v1.NetworkVisibility.serializeBinaryToWriter(this, writer);
|
|
1211
|
+
return writer.getResultBuffer();
|
|
1212
|
+
};
|
|
1213
|
+
|
|
1214
|
+
|
|
1215
|
+
/**
|
|
1216
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
1217
|
+
* format), writing to the given BinaryWriter.
|
|
1218
|
+
* @param {!proto.lansweeper.scanningconfig.v1.NetworkVisibility} message
|
|
1219
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1220
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1221
|
+
*/
|
|
1222
|
+
proto.lansweeper.scanningconfig.v1.NetworkVisibility.serializeBinaryToWriter = function(message, writer) {
|
|
1223
|
+
var f = undefined;
|
|
1224
|
+
f = message.getEnabled();
|
|
1225
|
+
if (f) {
|
|
1226
|
+
writer.writeBool(
|
|
1227
|
+
1,
|
|
1228
|
+
f
|
|
1229
|
+
);
|
|
1230
|
+
}
|
|
1231
|
+
f = message.getExcludedInterfacesList();
|
|
1232
|
+
if (f.length > 0) {
|
|
1233
|
+
writer.writeRepeatedString(
|
|
1234
|
+
2,
|
|
1235
|
+
f
|
|
1236
|
+
);
|
|
1237
|
+
}
|
|
1238
|
+
};
|
|
1239
|
+
|
|
1240
|
+
|
|
1241
|
+
/**
|
|
1242
|
+
* optional bool enabled = 1;
|
|
1243
|
+
* @return {boolean}
|
|
1244
|
+
*/
|
|
1245
|
+
proto.lansweeper.scanningconfig.v1.NetworkVisibility.prototype.getEnabled = function() {
|
|
1246
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false));
|
|
1247
|
+
};
|
|
1248
|
+
|
|
1249
|
+
|
|
1250
|
+
/**
|
|
1251
|
+
* @param {boolean} value
|
|
1252
|
+
* @return {!proto.lansweeper.scanningconfig.v1.NetworkVisibility} returns this
|
|
1253
|
+
*/
|
|
1254
|
+
proto.lansweeper.scanningconfig.v1.NetworkVisibility.prototype.setEnabled = function(value) {
|
|
1255
|
+
return jspb.Message.setProto3BooleanField(this, 1, value);
|
|
1256
|
+
};
|
|
1257
|
+
|
|
1258
|
+
|
|
1259
|
+
/**
|
|
1260
|
+
* repeated string excluded_interfaces = 2;
|
|
1261
|
+
* @return {!Array<string>}
|
|
1262
|
+
*/
|
|
1263
|
+
proto.lansweeper.scanningconfig.v1.NetworkVisibility.prototype.getExcludedInterfacesList = function() {
|
|
1264
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
|
|
1265
|
+
};
|
|
1266
|
+
|
|
1267
|
+
|
|
1268
|
+
/**
|
|
1269
|
+
* @param {!Array<string>} value
|
|
1270
|
+
* @return {!proto.lansweeper.scanningconfig.v1.NetworkVisibility} returns this
|
|
1271
|
+
*/
|
|
1272
|
+
proto.lansweeper.scanningconfig.v1.NetworkVisibility.prototype.setExcludedInterfacesList = function(value) {
|
|
1273
|
+
return jspb.Message.setField(this, 2, value || []);
|
|
1274
|
+
};
|
|
1275
|
+
|
|
1276
|
+
|
|
1277
|
+
/**
|
|
1278
|
+
* @param {string} value
|
|
1279
|
+
* @param {number=} opt_index
|
|
1280
|
+
* @return {!proto.lansweeper.scanningconfig.v1.NetworkVisibility} returns this
|
|
1281
|
+
*/
|
|
1282
|
+
proto.lansweeper.scanningconfig.v1.NetworkVisibility.prototype.addExcludedInterfaces = function(value, opt_index) {
|
|
1283
|
+
return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
|
|
1284
|
+
};
|
|
1285
|
+
|
|
1286
|
+
|
|
1287
|
+
/**
|
|
1288
|
+
* Clears the list making it empty but non-null.
|
|
1289
|
+
* @return {!proto.lansweeper.scanningconfig.v1.NetworkVisibility} returns this
|
|
1290
|
+
*/
|
|
1291
|
+
proto.lansweeper.scanningconfig.v1.NetworkVisibility.prototype.clearExcludedInterfacesList = function() {
|
|
1292
|
+
return this.setExcludedInterfacesList([]);
|
|
1293
|
+
};
|
|
1294
|
+
|
|
1295
|
+
|
|
1296
|
+
|
|
1031
1297
|
|
|
1032
1298
|
|
|
1033
1299
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
@@ -1220,7 +1486,8 @@ proto.lansweeper.scanningconfig.v1.OperationalConfig.prototype.toObject = functi
|
|
|
1220
1486
|
proto.lansweeper.scanningconfig.v1.OperationalConfig.toObject = function(includeInstance, msg) {
|
|
1221
1487
|
var f, obj = {
|
|
1222
1488
|
assetRadarConfig: (f = msg.getAssetRadarConfig()) && proto.lansweeper.scanningconfig.v1.AssetRadar.toObject(includeInstance, f),
|
|
1223
|
-
autoUpdateConfig: (f = msg.getAutoUpdateConfig()) && proto.lansweeper.scanningconfig.v1.AutoUpdate.toObject(includeInstance, f)
|
|
1489
|
+
autoUpdateConfig: (f = msg.getAutoUpdateConfig()) && proto.lansweeper.scanningconfig.v1.AutoUpdate.toObject(includeInstance, f),
|
|
1490
|
+
networkVisibilityConfig: (f = msg.getNetworkVisibilityConfig()) && proto.lansweeper.scanningconfig.v1.NetworkVisibility.toObject(includeInstance, f)
|
|
1224
1491
|
};
|
|
1225
1492
|
|
|
1226
1493
|
if (includeInstance) {
|
|
@@ -1267,6 +1534,11 @@ proto.lansweeper.scanningconfig.v1.OperationalConfig.deserializeBinaryFromReader
|
|
|
1267
1534
|
reader.readMessage(value,proto.lansweeper.scanningconfig.v1.AutoUpdate.deserializeBinaryFromReader);
|
|
1268
1535
|
msg.setAutoUpdateConfig(value);
|
|
1269
1536
|
break;
|
|
1537
|
+
case 3:
|
|
1538
|
+
var value = new proto.lansweeper.scanningconfig.v1.NetworkVisibility;
|
|
1539
|
+
reader.readMessage(value,proto.lansweeper.scanningconfig.v1.NetworkVisibility.deserializeBinaryFromReader);
|
|
1540
|
+
msg.setNetworkVisibilityConfig(value);
|
|
1541
|
+
break;
|
|
1270
1542
|
default:
|
|
1271
1543
|
reader.skipField();
|
|
1272
1544
|
break;
|
|
@@ -1312,6 +1584,14 @@ proto.lansweeper.scanningconfig.v1.OperationalConfig.serializeBinaryToWriter = f
|
|
|
1312
1584
|
proto.lansweeper.scanningconfig.v1.AutoUpdate.serializeBinaryToWriter
|
|
1313
1585
|
);
|
|
1314
1586
|
}
|
|
1587
|
+
f = message.getNetworkVisibilityConfig();
|
|
1588
|
+
if (f != null) {
|
|
1589
|
+
writer.writeMessage(
|
|
1590
|
+
3,
|
|
1591
|
+
f,
|
|
1592
|
+
proto.lansweeper.scanningconfig.v1.NetworkVisibility.serializeBinaryToWriter
|
|
1593
|
+
);
|
|
1594
|
+
}
|
|
1315
1595
|
};
|
|
1316
1596
|
|
|
1317
1597
|
|
|
@@ -1389,6 +1669,43 @@ proto.lansweeper.scanningconfig.v1.OperationalConfig.prototype.hasAutoUpdateConf
|
|
|
1389
1669
|
};
|
|
1390
1670
|
|
|
1391
1671
|
|
|
1672
|
+
/**
|
|
1673
|
+
* optional NetworkVisibility network_visibility_config = 3;
|
|
1674
|
+
* @return {?proto.lansweeper.scanningconfig.v1.NetworkVisibility}
|
|
1675
|
+
*/
|
|
1676
|
+
proto.lansweeper.scanningconfig.v1.OperationalConfig.prototype.getNetworkVisibilityConfig = function() {
|
|
1677
|
+
return /** @type{?proto.lansweeper.scanningconfig.v1.NetworkVisibility} */ (
|
|
1678
|
+
jspb.Message.getWrapperField(this, proto.lansweeper.scanningconfig.v1.NetworkVisibility, 3));
|
|
1679
|
+
};
|
|
1680
|
+
|
|
1681
|
+
|
|
1682
|
+
/**
|
|
1683
|
+
* @param {?proto.lansweeper.scanningconfig.v1.NetworkVisibility|undefined} value
|
|
1684
|
+
* @return {!proto.lansweeper.scanningconfig.v1.OperationalConfig} returns this
|
|
1685
|
+
*/
|
|
1686
|
+
proto.lansweeper.scanningconfig.v1.OperationalConfig.prototype.setNetworkVisibilityConfig = function(value) {
|
|
1687
|
+
return jspb.Message.setWrapperField(this, 3, value);
|
|
1688
|
+
};
|
|
1689
|
+
|
|
1690
|
+
|
|
1691
|
+
/**
|
|
1692
|
+
* Clears the message field making it undefined.
|
|
1693
|
+
* @return {!proto.lansweeper.scanningconfig.v1.OperationalConfig} returns this
|
|
1694
|
+
*/
|
|
1695
|
+
proto.lansweeper.scanningconfig.v1.OperationalConfig.prototype.clearNetworkVisibilityConfig = function() {
|
|
1696
|
+
return this.setNetworkVisibilityConfig(undefined);
|
|
1697
|
+
};
|
|
1698
|
+
|
|
1699
|
+
|
|
1700
|
+
/**
|
|
1701
|
+
* Returns whether this field is set.
|
|
1702
|
+
* @return {boolean}
|
|
1703
|
+
*/
|
|
1704
|
+
proto.lansweeper.scanningconfig.v1.OperationalConfig.prototype.hasNetworkVisibilityConfig = function() {
|
|
1705
|
+
return jspb.Message.getField(this, 3) != null;
|
|
1706
|
+
};
|
|
1707
|
+
|
|
1708
|
+
|
|
1392
1709
|
|
|
1393
1710
|
|
|
1394
1711
|
|
|
@@ -1535,14 +1852,15 @@ proto.lansweeper.scanningconfig.v1.Action.repeatedFields_ = [1,3];
|
|
|
1535
1852
|
* @private {!Array<!Array<number>>}
|
|
1536
1853
|
* @const
|
|
1537
1854
|
*/
|
|
1538
|
-
proto.lansweeper.scanningconfig.v1.Action.oneofGroups_ = [[4]];
|
|
1855
|
+
proto.lansweeper.scanningconfig.v1.Action.oneofGroups_ = [[4,5]];
|
|
1539
1856
|
|
|
1540
1857
|
/**
|
|
1541
1858
|
* @enum {number}
|
|
1542
1859
|
*/
|
|
1543
1860
|
proto.lansweeper.scanningconfig.v1.Action.DefinitionCase = {
|
|
1544
1861
|
DEFINITION_NOT_SET: 0,
|
|
1545
|
-
AGENT: 4
|
|
1862
|
+
AGENT: 4,
|
|
1863
|
+
AGENTLESS: 5
|
|
1546
1864
|
};
|
|
1547
1865
|
|
|
1548
1866
|
/**
|
|
@@ -1588,7 +1906,8 @@ proto.lansweeper.scanningconfig.v1.Action.toObject = function(includeInstance, m
|
|
|
1588
1906
|
actionType: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
1589
1907
|
credentialsList: jspb.Message.toObjectList(msg.getCredentialsList(),
|
|
1590
1908
|
proto.lansweeper.scanningconfig.v1.Credential.toObject, includeInstance),
|
|
1591
|
-
agent: (f = msg.getAgent()) && proto.lansweeper.scanningconfig.v1.Agent.toObject(includeInstance, f)
|
|
1909
|
+
agent: (f = msg.getAgent()) && proto.lansweeper.scanningconfig.v1.Agent.toObject(includeInstance, f),
|
|
1910
|
+
agentless: (f = msg.getAgentless()) && proto.lansweeper.scanningconfig.v1.Agentless.toObject(includeInstance, f)
|
|
1592
1911
|
};
|
|
1593
1912
|
|
|
1594
1913
|
if (includeInstance) {
|
|
@@ -1644,6 +1963,11 @@ proto.lansweeper.scanningconfig.v1.Action.deserializeBinaryFromReader = function
|
|
|
1644
1963
|
reader.readMessage(value,proto.lansweeper.scanningconfig.v1.Agent.deserializeBinaryFromReader);
|
|
1645
1964
|
msg.setAgent(value);
|
|
1646
1965
|
break;
|
|
1966
|
+
case 5:
|
|
1967
|
+
var value = new proto.lansweeper.scanningconfig.v1.Agentless;
|
|
1968
|
+
reader.readMessage(value,proto.lansweeper.scanningconfig.v1.Agentless.deserializeBinaryFromReader);
|
|
1969
|
+
msg.setAgentless(value);
|
|
1970
|
+
break;
|
|
1647
1971
|
default:
|
|
1648
1972
|
reader.skipField();
|
|
1649
1973
|
break;
|
|
@@ -1704,6 +2028,14 @@ proto.lansweeper.scanningconfig.v1.Action.serializeBinaryToWriter = function(mes
|
|
|
1704
2028
|
proto.lansweeper.scanningconfig.v1.Agent.serializeBinaryToWriter
|
|
1705
2029
|
);
|
|
1706
2030
|
}
|
|
2031
|
+
f = message.getAgentless();
|
|
2032
|
+
if (f != null) {
|
|
2033
|
+
writer.writeMessage(
|
|
2034
|
+
5,
|
|
2035
|
+
f,
|
|
2036
|
+
proto.lansweeper.scanningconfig.v1.Agentless.serializeBinaryToWriter
|
|
2037
|
+
);
|
|
2038
|
+
}
|
|
1707
2039
|
};
|
|
1708
2040
|
|
|
1709
2041
|
|
|
@@ -1846,6 +2178,199 @@ proto.lansweeper.scanningconfig.v1.Action.prototype.hasAgent = function() {
|
|
|
1846
2178
|
};
|
|
1847
2179
|
|
|
1848
2180
|
|
|
2181
|
+
/**
|
|
2182
|
+
* optional Agentless agentless = 5;
|
|
2183
|
+
* @return {?proto.lansweeper.scanningconfig.v1.Agentless}
|
|
2184
|
+
*/
|
|
2185
|
+
proto.lansweeper.scanningconfig.v1.Action.prototype.getAgentless = function() {
|
|
2186
|
+
return /** @type{?proto.lansweeper.scanningconfig.v1.Agentless} */ (
|
|
2187
|
+
jspb.Message.getWrapperField(this, proto.lansweeper.scanningconfig.v1.Agentless, 5));
|
|
2188
|
+
};
|
|
2189
|
+
|
|
2190
|
+
|
|
2191
|
+
/**
|
|
2192
|
+
* @param {?proto.lansweeper.scanningconfig.v1.Agentless|undefined} value
|
|
2193
|
+
* @return {!proto.lansweeper.scanningconfig.v1.Action} returns this
|
|
2194
|
+
*/
|
|
2195
|
+
proto.lansweeper.scanningconfig.v1.Action.prototype.setAgentless = function(value) {
|
|
2196
|
+
return jspb.Message.setOneofWrapperField(this, 5, proto.lansweeper.scanningconfig.v1.Action.oneofGroups_[0], value);
|
|
2197
|
+
};
|
|
2198
|
+
|
|
2199
|
+
|
|
2200
|
+
/**
|
|
2201
|
+
* Clears the message field making it undefined.
|
|
2202
|
+
* @return {!proto.lansweeper.scanningconfig.v1.Action} returns this
|
|
2203
|
+
*/
|
|
2204
|
+
proto.lansweeper.scanningconfig.v1.Action.prototype.clearAgentless = function() {
|
|
2205
|
+
return this.setAgentless(undefined);
|
|
2206
|
+
};
|
|
2207
|
+
|
|
2208
|
+
|
|
2209
|
+
/**
|
|
2210
|
+
* Returns whether this field is set.
|
|
2211
|
+
* @return {boolean}
|
|
2212
|
+
*/
|
|
2213
|
+
proto.lansweeper.scanningconfig.v1.Action.prototype.hasAgentless = function() {
|
|
2214
|
+
return jspb.Message.getField(this, 5) != null;
|
|
2215
|
+
};
|
|
2216
|
+
|
|
2217
|
+
|
|
2218
|
+
|
|
2219
|
+
/**
|
|
2220
|
+
* List of repeated fields within this message type.
|
|
2221
|
+
* @private {!Array<number>}
|
|
2222
|
+
* @const
|
|
2223
|
+
*/
|
|
2224
|
+
proto.lansweeper.scanningconfig.v1.Agentless.repeatedFields_ = [1];
|
|
2225
|
+
|
|
2226
|
+
|
|
2227
|
+
|
|
2228
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2229
|
+
/**
|
|
2230
|
+
* Creates an object representation of this proto.
|
|
2231
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
2232
|
+
* Optional fields that are not set will be set to undefined.
|
|
2233
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
2234
|
+
* For the list of reserved names please see:
|
|
2235
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
2236
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
2237
|
+
* JSPB instance for transitional soy proto support:
|
|
2238
|
+
* http://goto/soy-param-migration
|
|
2239
|
+
* @return {!Object}
|
|
2240
|
+
*/
|
|
2241
|
+
proto.lansweeper.scanningconfig.v1.Agentless.prototype.toObject = function(opt_includeInstance) {
|
|
2242
|
+
return proto.lansweeper.scanningconfig.v1.Agentless.toObject(opt_includeInstance, this);
|
|
2243
|
+
};
|
|
2244
|
+
|
|
2245
|
+
|
|
2246
|
+
/**
|
|
2247
|
+
* Static version of the {@see toObject} method.
|
|
2248
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
2249
|
+
* the JSPB instance for transitional soy proto support:
|
|
2250
|
+
* http://goto/soy-param-migration
|
|
2251
|
+
* @param {!proto.lansweeper.scanningconfig.v1.Agentless} msg The msg instance to transform.
|
|
2252
|
+
* @return {!Object}
|
|
2253
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2254
|
+
*/
|
|
2255
|
+
proto.lansweeper.scanningconfig.v1.Agentless.toObject = function(includeInstance, msg) {
|
|
2256
|
+
var f, obj = {
|
|
2257
|
+
targetsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
|
|
2258
|
+
};
|
|
2259
|
+
|
|
2260
|
+
if (includeInstance) {
|
|
2261
|
+
obj.$jspbMessageInstance = msg;
|
|
2262
|
+
}
|
|
2263
|
+
return obj;
|
|
2264
|
+
};
|
|
2265
|
+
}
|
|
2266
|
+
|
|
2267
|
+
|
|
2268
|
+
/**
|
|
2269
|
+
* Deserializes binary data (in protobuf wire format).
|
|
2270
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
2271
|
+
* @return {!proto.lansweeper.scanningconfig.v1.Agentless}
|
|
2272
|
+
*/
|
|
2273
|
+
proto.lansweeper.scanningconfig.v1.Agentless.deserializeBinary = function(bytes) {
|
|
2274
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
2275
|
+
var msg = new proto.lansweeper.scanningconfig.v1.Agentless;
|
|
2276
|
+
return proto.lansweeper.scanningconfig.v1.Agentless.deserializeBinaryFromReader(msg, reader);
|
|
2277
|
+
};
|
|
2278
|
+
|
|
2279
|
+
|
|
2280
|
+
/**
|
|
2281
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
2282
|
+
* given reader into the given message object.
|
|
2283
|
+
* @param {!proto.lansweeper.scanningconfig.v1.Agentless} msg The message object to deserialize into.
|
|
2284
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2285
|
+
* @return {!proto.lansweeper.scanningconfig.v1.Agentless}
|
|
2286
|
+
*/
|
|
2287
|
+
proto.lansweeper.scanningconfig.v1.Agentless.deserializeBinaryFromReader = function(msg, reader) {
|
|
2288
|
+
while (reader.nextField()) {
|
|
2289
|
+
if (reader.isEndGroup()) {
|
|
2290
|
+
break;
|
|
2291
|
+
}
|
|
2292
|
+
var field = reader.getFieldNumber();
|
|
2293
|
+
switch (field) {
|
|
2294
|
+
case 1:
|
|
2295
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2296
|
+
msg.addTargets(value);
|
|
2297
|
+
break;
|
|
2298
|
+
default:
|
|
2299
|
+
reader.skipField();
|
|
2300
|
+
break;
|
|
2301
|
+
}
|
|
2302
|
+
}
|
|
2303
|
+
return msg;
|
|
2304
|
+
};
|
|
2305
|
+
|
|
2306
|
+
|
|
2307
|
+
/**
|
|
2308
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
2309
|
+
* @return {!Uint8Array}
|
|
2310
|
+
*/
|
|
2311
|
+
proto.lansweeper.scanningconfig.v1.Agentless.prototype.serializeBinary = function() {
|
|
2312
|
+
var writer = new jspb.BinaryWriter();
|
|
2313
|
+
proto.lansweeper.scanningconfig.v1.Agentless.serializeBinaryToWriter(this, writer);
|
|
2314
|
+
return writer.getResultBuffer();
|
|
2315
|
+
};
|
|
2316
|
+
|
|
2317
|
+
|
|
2318
|
+
/**
|
|
2319
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
2320
|
+
* format), writing to the given BinaryWriter.
|
|
2321
|
+
* @param {!proto.lansweeper.scanningconfig.v1.Agentless} message
|
|
2322
|
+
* @param {!jspb.BinaryWriter} writer
|
|
2323
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2324
|
+
*/
|
|
2325
|
+
proto.lansweeper.scanningconfig.v1.Agentless.serializeBinaryToWriter = function(message, writer) {
|
|
2326
|
+
var f = undefined;
|
|
2327
|
+
f = message.getTargetsList();
|
|
2328
|
+
if (f.length > 0) {
|
|
2329
|
+
writer.writeRepeatedString(
|
|
2330
|
+
1,
|
|
2331
|
+
f
|
|
2332
|
+
);
|
|
2333
|
+
}
|
|
2334
|
+
};
|
|
2335
|
+
|
|
2336
|
+
|
|
2337
|
+
/**
|
|
2338
|
+
* repeated string targets = 1;
|
|
2339
|
+
* @return {!Array<string>}
|
|
2340
|
+
*/
|
|
2341
|
+
proto.lansweeper.scanningconfig.v1.Agentless.prototype.getTargetsList = function() {
|
|
2342
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
|
|
2343
|
+
};
|
|
2344
|
+
|
|
2345
|
+
|
|
2346
|
+
/**
|
|
2347
|
+
* @param {!Array<string>} value
|
|
2348
|
+
* @return {!proto.lansweeper.scanningconfig.v1.Agentless} returns this
|
|
2349
|
+
*/
|
|
2350
|
+
proto.lansweeper.scanningconfig.v1.Agentless.prototype.setTargetsList = function(value) {
|
|
2351
|
+
return jspb.Message.setField(this, 1, value || []);
|
|
2352
|
+
};
|
|
2353
|
+
|
|
2354
|
+
|
|
2355
|
+
/**
|
|
2356
|
+
* @param {string} value
|
|
2357
|
+
* @param {number=} opt_index
|
|
2358
|
+
* @return {!proto.lansweeper.scanningconfig.v1.Agentless} returns this
|
|
2359
|
+
*/
|
|
2360
|
+
proto.lansweeper.scanningconfig.v1.Agentless.prototype.addTargets = function(value, opt_index) {
|
|
2361
|
+
return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
|
|
2362
|
+
};
|
|
2363
|
+
|
|
2364
|
+
|
|
2365
|
+
/**
|
|
2366
|
+
* Clears the list making it empty but non-null.
|
|
2367
|
+
* @return {!proto.lansweeper.scanningconfig.v1.Agentless} returns this
|
|
2368
|
+
*/
|
|
2369
|
+
proto.lansweeper.scanningconfig.v1.Agentless.prototype.clearTargetsList = function() {
|
|
2370
|
+
return this.setTargetsList([]);
|
|
2371
|
+
};
|
|
2372
|
+
|
|
2373
|
+
|
|
1849
2374
|
|
|
1850
2375
|
|
|
1851
2376
|
|