@lansweeper/scanningconfig-grpc 0.2.8 → 0.3.1
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/.ignorecompat +0 -0
- package/CHANGELOG.md +41 -0
- package/Lansweeper.ScanningConfig.GRPC.csproj +4 -3
- 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/bin/Debug/net6.0/ref/Lansweeper.ScanningConfig.GRPC.dll +0 -0
- package/gen-proto/image.json +1 -1
- package/gen-proto/scanningconfig_grpc_pb.d.ts +1 -0
- package/gen-proto/scanningconfig_grpc_pb.js +1 -0
- package/gen-proto/scanningconfig_pb.d.ts +791 -0
- package/gen-proto/scanningconfig_pb.js +7868 -1783
- package/generated-go/scanningconfig.pb.go +2629 -315
- 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.dll +0 -0
- package/obj/Debug/net6.0/Lansweeper.ScanningConfig.GRPC.pdb +0 -0
- package/obj/Debug/net6.0/dfe805b7589f203f_scanningconfig.protodep +2 -1
- package/obj/Debug/net6.0/proto/Scanningconfig.cs +6710 -78
- package/obj/Debug/net6.0/ref/Lansweeper.ScanningConfig.GRPC.dll +0 -0
- package/obj/Lansweeper.ScanningConfig.GRPC.csproj.nuget.dgspec.json +1 -1
- package/obj/project.assets.json +1 -1
- package/obj/project.nuget.cache +1 -1
- package/package.json +2 -2
- package/proto/scanningconfig.proto +152 -4
|
Binary file
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
},
|
|
6
6
|
"projects": {
|
|
7
7
|
"/home/circleci/project/packages/scanningconfig/grpc/Lansweeper.ScanningConfig.GRPC.csproj": {
|
|
8
|
-
"version": "0.
|
|
8
|
+
"version": "0.3.0",
|
|
9
9
|
"restore": {
|
|
10
10
|
"projectUniqueName": "/home/circleci/project/packages/scanningconfig/grpc/Lansweeper.ScanningConfig.GRPC.csproj",
|
|
11
11
|
"projectName": "Lansweeper.ScanningConfig.GRPC",
|
package/obj/project.assets.json
CHANGED
|
@@ -235,7 +235,7 @@
|
|
|
235
235
|
"/home/circleci/.nuget/packages/": {}
|
|
236
236
|
},
|
|
237
237
|
"project": {
|
|
238
|
-
"version": "0.
|
|
238
|
+
"version": "0.3.0",
|
|
239
239
|
"restore": {
|
|
240
240
|
"projectUniqueName": "/home/circleci/project/packages/scanningconfig/grpc/Lansweeper.ScanningConfig.GRPC.csproj",
|
|
241
241
|
"projectName": "Lansweeper.ScanningConfig.GRPC",
|
package/obj/project.nuget.cache
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 2,
|
|
3
|
-
"dgSpecHash": "
|
|
3
|
+
"dgSpecHash": "KuCbIVsE7BZg8ztaQSClXxeEOkQCob3Q8Fo8mSAivDpj/6tW/Zh35rb/wD3axItmyn3bboUQ3+OXxo5fG+W6EQ==",
|
|
4
4
|
"success": true,
|
|
5
5
|
"projectFilePath": "/home/circleci/project/packages/scanningconfig/grpc/Lansweeper.ScanningConfig.GRPC.csproj",
|
|
6
6
|
"expectedPackageFiles": [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lansweeper/scanningconfig-grpc",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"description": "ScanningConfig grpc",
|
|
5
5
|
"main": "gen-proto/index.js",
|
|
6
6
|
"types": "gen-proto/index.d.ts",
|
|
@@ -12,5 +12,5 @@
|
|
|
12
12
|
"@grpc/grpc-js": "^1.6.2",
|
|
13
13
|
"@types/google-protobuf": "^3.15.5"
|
|
14
14
|
},
|
|
15
|
-
"gitHead": "
|
|
15
|
+
"gitHead": "7bb9cd27bb8af5e88bc7702648314d4c2e63f4f2"
|
|
16
16
|
}
|
|
@@ -3,6 +3,8 @@ syntax = "proto3";
|
|
|
3
3
|
package lansweeper.scanningconfig.v1;
|
|
4
4
|
option go_package = "./generated-go";
|
|
5
5
|
|
|
6
|
+
import "google/protobuf/wrappers.proto";
|
|
7
|
+
|
|
6
8
|
service ScanningConfigService {
|
|
7
9
|
rpc GetConfigurationsBySource(GetConfigurationsBySourceRequest) returns (GetConfigurationsBySourceResponse) {}
|
|
8
10
|
}
|
|
@@ -28,12 +30,11 @@ message Component {
|
|
|
28
30
|
string id = 1;
|
|
29
31
|
ComponentType type = 2;
|
|
30
32
|
repeated Action actions = 3;
|
|
31
|
-
optional OperationalConfig op_config = 4;
|
|
33
|
+
optional OperationalConfig op_config = 4 [deprecated = true];
|
|
32
34
|
bool enabled = 5;
|
|
35
|
+
optional ApplicationConfig app_config = 6;
|
|
33
36
|
}
|
|
34
37
|
|
|
35
|
-
|
|
36
|
-
|
|
37
38
|
message AssetRadar{
|
|
38
39
|
option deprecated = true;
|
|
39
40
|
bool enabled = 1;
|
|
@@ -41,10 +42,13 @@ message AssetRadar{
|
|
|
41
42
|
}
|
|
42
43
|
|
|
43
44
|
message NetworkVisibility{
|
|
45
|
+
option deprecated = true;
|
|
44
46
|
bool enabled = 1;
|
|
45
47
|
repeated string excluded_interfaces = 2;
|
|
46
48
|
}
|
|
49
|
+
|
|
47
50
|
message AutoUpdate{
|
|
51
|
+
option deprecated = true;
|
|
48
52
|
bool enabled = 1;
|
|
49
53
|
string schedule = 2;
|
|
50
54
|
}
|
|
@@ -170,4 +174,148 @@ message Credential{
|
|
|
170
174
|
CredentialType type = 1 [deprecated=true];
|
|
171
175
|
string id = 2;
|
|
172
176
|
int32 order = 3;
|
|
173
|
-
}
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
message ApplicationConfig {
|
|
180
|
+
optional LogSettings logging = 1;
|
|
181
|
+
optional HubSettings hub = 2;
|
|
182
|
+
optional UpdateSettings update = 3;
|
|
183
|
+
optional ItSensorSettings it_sensor = 4;
|
|
184
|
+
optional OtSensorSettings ot_sensor = 5;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
message HubSettings {
|
|
188
|
+
optional NetworkConfigurationSettings network_configuration = 1;
|
|
189
|
+
optional MaintenanceSettings maintenance = 2;
|
|
190
|
+
optional NotificationSettings notifications = 3;
|
|
191
|
+
optional FeatureFlagSettings feature_flags = 4;
|
|
192
|
+
optional ScanConfigurationSettings scan_configuration = 5;
|
|
193
|
+
optional ImportSettings import = 6;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
message MaintenanceSettings {
|
|
197
|
+
google.protobuf.StringValue maintenance_window = 1; // cron expression
|
|
198
|
+
optional RetentionPolicySettings retention_policy = 2;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
message RetentionPolicySettings {
|
|
202
|
+
google.protobuf.Int32Value synced_data_retention_days = 1; // default 30 days
|
|
203
|
+
google.protobuf.Int32Value unsynced_data_retention_days = 2; // default 365 days
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
message NotificationSettings {
|
|
207
|
+
google.protobuf.BoolValue smart_polling_enabled = 1;
|
|
208
|
+
google.protobuf.Int32Value default_polling_interval_seconds = 2; // will only be used if smart polling is disabled, default 60 seconds.
|
|
209
|
+
|
|
210
|
+
map<int32, int32> smart_polling_intervals = 3; // key is the polling zero based frequency, value is the polling interval in seconds. Will only be used if smart polling is enabled. I.e: [(0, 15), (1, 60), (2, 120)] = 15 seconds for the high frequency polling, 60 seconds for the normal frequency polling, 120 seconds for the low frequency polling
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
message FeatureFlagSettings {
|
|
214
|
+
google.protobuf.Int32Value polling_interval_minutes = 1; // default 15 minutes
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
message ScanConfigurationSettings {
|
|
218
|
+
google.protobuf.Int32Value polling_interval_minutes = 1; // default 240 minutes (4 hours)
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
message ImportSettings {
|
|
222
|
+
google.protobuf.BoolValue enabled = 1;
|
|
223
|
+
google.protobuf.Int32Value polling_interval_seconds = 2;
|
|
224
|
+
google.protobuf.StringValue folder = 3;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
message NetworkConfigurationSettings {
|
|
228
|
+
optional ParallelismSettings parallelism = 1;
|
|
229
|
+
optional NetworkVisibilitySettings network_visibility = 2;
|
|
230
|
+
optional PingBehaviorSettings ping_behavior = 3;
|
|
231
|
+
optional ProtocolConfigurationSettings protocol_configuration = 4;
|
|
232
|
+
optional ExclusionSettings exclusions = 5;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
message ParallelismSettings {
|
|
236
|
+
google.protobuf.Int32Value max_parallelism = 1; // default 100
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
message ExclusionSettings {
|
|
240
|
+
repeated string excluded_targets = 1; // Ip addresses (including ranges and CIDR notations) or hostnames.
|
|
241
|
+
repeated string excluded_interfaces = 2; // Network interface names.
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
message NetworkVisibilitySettings {
|
|
245
|
+
google.protobuf.BoolValue enabled = 1;
|
|
246
|
+
google.protobuf.BoolValue active_cdr_enabled = 2;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
message PingBehaviorSettings {
|
|
250
|
+
// leaving it empty on purpose for now, because we have another task to rework the entire ping behavior. Would be a shame if next sprint, we have to deprecate all these settings already
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
message ProtocolConfigurationSettings {
|
|
254
|
+
google.protobuf.BoolValue all_enabled = 1;
|
|
255
|
+
map<string, ProtocolDetailSettings> protocols = 2;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
message ProtocolDetailSettings {
|
|
259
|
+
google.protobuf.BoolValue enabled = 1;
|
|
260
|
+
google.protobuf.Int32Value port = 2;
|
|
261
|
+
map<string, string> additional_data = 3; // additional data for a specific for the protocol
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
message ItSensorSettings {
|
|
265
|
+
optional NetworkConfigurationSettings network_configuration = 1;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
message OtSensorSettings {
|
|
269
|
+
optional NetworkConfigurationSettings network_configuration = 1;
|
|
270
|
+
optional TrafficLogSettings traffic_logging = 2; // used to enable raw traffic packets logging for the OT sensor.
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
message TrafficLogSettings {
|
|
274
|
+
google.protobuf.BoolValue enabled = 1;
|
|
275
|
+
google.protobuf.StringValue path = 2;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
message UpdateSettings {
|
|
279
|
+
google.protobuf.BoolValue update_on_availability = 1; // default false
|
|
280
|
+
optional UpdateWindowSettings update_window = 2;
|
|
281
|
+
optional DownloadSettings download = 3;
|
|
282
|
+
optional BackupSettings backup = 4;
|
|
283
|
+
optional PrerequisiteSettings prerequisites = 5;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
message UpdateWindowSettings {
|
|
287
|
+
google.protobuf.BoolValue enabled = 1;
|
|
288
|
+
google.protobuf.StringValue update_window = 2; // cron expression
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
message BackupSettings {
|
|
292
|
+
google.protobuf.StringValue backup_folder = 1;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
message DownloadSettings {
|
|
296
|
+
google.protobuf.BoolValue download_on_availability = 1; // default true
|
|
297
|
+
google.protobuf.StringValue download_window = 2; // cron expression
|
|
298
|
+
google.protobuf.StringValue download_folder = 3;
|
|
299
|
+
google.protobuf.Int32Value download_timeout_seconds = 4;
|
|
300
|
+
google.protobuf.Int32Value throttle_rate_kb_per_second = 5;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
message PrerequisiteSettings {
|
|
304
|
+
google.protobuf.Int64Value required_free_disk_space_bytes = 1;
|
|
305
|
+
google.protobuf.Int32Value required_free_disk_space_percentage = 2;
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
message LogSettings {
|
|
309
|
+
enum LogLevel {
|
|
310
|
+
VERBOSE = 0;
|
|
311
|
+
DEBUG = 1;
|
|
312
|
+
INFORMATION = 2;
|
|
313
|
+
WARNING = 3;
|
|
314
|
+
ERROR = 4;
|
|
315
|
+
FATAL = 5;
|
|
316
|
+
}
|
|
317
|
+
optional LogLevel level = 1; // default INFORMATION
|
|
318
|
+
google.protobuf.Int64Value file_size_limit_bytes = 2; // default 52428800 bytes (50MB)
|
|
319
|
+
google.protobuf.Int32Value retained_file_count_limit = 3; // default 5
|
|
320
|
+
map<string,string> overrides = 4;
|
|
321
|
+
}
|