@lansweeper/scanningconfig-grpc 0.0.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/.useprotoc +0 -0
- package/CHANGELOG.md +11 -0
- package/Lansweeper.ScanningConfig.GRPC.csproj +21 -0
- package/Scanningconfig.cs +2230 -0
- package/bin/Debug/net6.0/Lansweeper.ScanningConfig.GRPC.deps.json +41 -0
- package/bin/Debug/net6.0/Lansweeper.ScanningConfig.GRPC.dll +0 -0
- package/bin/Debug/net6.0/Lansweeper.ScanningConfig.GRPC.pdb +0 -0
- package/buf.yaml +22 -0
- package/gen-proto/image.json +1 -0
- package/gen-proto/index.d.ts +2 -0
- package/gen-proto/index.js +3 -0
- package/gen-proto/scanningconfig_grpc_pb.d.ts +41 -0
- package/gen-proto/scanningconfig_grpc_pb.js +44 -0
- package/gen-proto/scanningconfig_pb.d.ts +293 -0
- package/gen-proto/scanningconfig_pb.js +2125 -0
- package/generated-go/scanningconfig.pb.go +1107 -0
- package/generated-go/scanningconfig_grpc.pb.go +109 -0
- package/go.mod +3 -0
- package/obj/Debug/net6.0/.NETCoreApp,Version=v6.0.AssemblyAttributes.cs +4 -0
- package/obj/Debug/net6.0/Lansweeper.ScanningConfig.GRPC.AssemblyInfo.cs +25 -0
- package/obj/Debug/net6.0/Lansweeper.ScanningConfig.GRPC.AssemblyInfoInputs.cache +1 -0
- package/obj/Debug/net6.0/Lansweeper.ScanningConfig.GRPC.GeneratedMSBuildEditorConfig.editorconfig +10 -0
- package/obj/Debug/net6.0/Lansweeper.ScanningConfig.GRPC.assets.cache +0 -0
- 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 -0
- package/obj/Debug/net6.0/Lansweeper.ScanningConfig.GRPC.csproj.FileListAbsolute.txt +12 -0
- 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/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 +68 -0
- package/obj/Lansweeper.ScanningConfig.GRPC.csproj.nuget.g.props +15 -0
- package/obj/Lansweeper.ScanningConfig.GRPC.csproj.nuget.g.targets +2 -0
- package/obj/project.assets.json +113 -0
- package/obj/project.nuget.cache +10 -0
- package/package.json +16 -0
- package/proto/scanningconfig.proto +83 -0
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
{
|
|
2
|
+
"runtimeTarget": {
|
|
3
|
+
"name": ".NETCoreApp,Version=v6.0",
|
|
4
|
+
"signature": ""
|
|
5
|
+
},
|
|
6
|
+
"compilationOptions": {},
|
|
7
|
+
"targets": {
|
|
8
|
+
".NETCoreApp,Version=v6.0": {
|
|
9
|
+
"Lansweeper.ScanningConfig.GRPC/0.0.0": {
|
|
10
|
+
"dependencies": {
|
|
11
|
+
"Google.Protobuf": "3.22.0"
|
|
12
|
+
},
|
|
13
|
+
"runtime": {
|
|
14
|
+
"Lansweeper.ScanningConfig.GRPC.dll": {}
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"Google.Protobuf/3.22.0": {
|
|
18
|
+
"runtime": {
|
|
19
|
+
"lib/net5.0/Google.Protobuf.dll": {
|
|
20
|
+
"assemblyVersion": "3.22.0.0",
|
|
21
|
+
"fileVersion": "3.22.0.0"
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"libraries": {
|
|
28
|
+
"Lansweeper.ScanningConfig.GRPC/0.0.0": {
|
|
29
|
+
"type": "project",
|
|
30
|
+
"serviceable": false,
|
|
31
|
+
"sha512": ""
|
|
32
|
+
},
|
|
33
|
+
"Google.Protobuf/3.22.0": {
|
|
34
|
+
"type": "package",
|
|
35
|
+
"serviceable": true,
|
|
36
|
+
"sha512": "sha512-UE1TRMrBBBmnA8xbqzTvX4sSwn+2W/Xxrs/v5Aws/7C8RD6fY6STi1eAnCu7Ez93oHcPdpyStGnFel/aIB407Q==",
|
|
37
|
+
"path": "google.protobuf/3.22.0",
|
|
38
|
+
"hashPath": "google.protobuf.3.22.0.nupkg.sha512"
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
Binary file
|
|
Binary file
|
package/buf.yaml
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
version: v1
|
|
2
|
+
build:
|
|
3
|
+
excludes:
|
|
4
|
+
- node_modules
|
|
5
|
+
lint:
|
|
6
|
+
use:
|
|
7
|
+
- DEFAULT
|
|
8
|
+
except:
|
|
9
|
+
- FIELD_LOWER_SNAKE_CASE
|
|
10
|
+
- PACKAGE_DIRECTORY_MATCH
|
|
11
|
+
- PACKAGE_SAME_DIRECTORY
|
|
12
|
+
- SERVICE_SUFFIX
|
|
13
|
+
- RPC_REQUEST_STANDARD_NAME
|
|
14
|
+
- RPC_RESPONSE_STANDARD_NAME
|
|
15
|
+
- RPC_REQUEST_RESPONSE_UNIQUE
|
|
16
|
+
- ENUM_ZERO_VALUE_SUFFIX
|
|
17
|
+
- ENUM_VALUE_PREFIX
|
|
18
|
+
breaking:
|
|
19
|
+
use:
|
|
20
|
+
- FILE
|
|
21
|
+
except:
|
|
22
|
+
- FILE_SAME_GO_PACKAGE
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":[{"name":"proto/scanningconfig.proto","package":"lansweeper.scanningconfig.v1","messageType":[{"name":"GetConfigurationsBySourceRequest","field":[{"name":"source_id","number":1,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"sourceId"},{"name":"site_id","number":2,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"siteId"}]},{"name":"GetConfigurationsBySourceResponse","field":[{"name":"configs","number":1,"label":"LABEL_REPEATED","type":"TYPE_MESSAGE","typeName":".lansweeper.scanningconfig.v1.Component","jsonName":"configs"}]},{"name":"Component","field":[{"name":"id","number":1,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"id"},{"name":"type","number":2,"label":"LABEL_OPTIONAL","type":"TYPE_ENUM","typeName":".lansweeper.scanningconfig.v1.Component.ComponentType","jsonName":"type"},{"name":"actions","number":3,"label":"LABEL_REPEATED","type":"TYPE_MESSAGE","typeName":".lansweeper.scanningconfig.v1.Action","jsonName":"actions"},{"name":"op_config","number":4,"label":"LABEL_OPTIONAL","type":"TYPE_MESSAGE","typeName":".lansweeper.scanningconfig.v1.OperationalConfig","oneofIndex":0,"jsonName":"opConfig","proto3Optional":true}],"enumType":[{"name":"ComponentType","value":[{"name":"UNSPECIFIED","number":0},{"name":"AGENT","number":1},{"name":"IT_SENSOR","number":2},{"name":"IT_HUB","number":3}]}],"oneofDecl":[{"name":"_op_config"}]},{"name":"AssetRadar","field":[{"name":"enabled","number":1,"label":"LABEL_OPTIONAL","type":"TYPE_BOOL","jsonName":"enabled"},{"name":"excluded_interfaces","number":2,"label":"LABEL_REPEATED","type":"TYPE_STRING","jsonName":"excludedInterfaces"}]},{"name":"AutoUpdate","field":[{"name":"enabled","number":1,"label":"LABEL_OPTIONAL","type":"TYPE_BOOL","jsonName":"enabled"},{"name":"schedule","number":2,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"schedule"}]},{"name":"OperationalConfig","field":[{"name":"asset_radar_config","number":1,"label":"LABEL_OPTIONAL","type":"TYPE_MESSAGE","typeName":".lansweeper.scanningconfig.v1.AssetRadar","oneofIndex":0,"jsonName":"assetRadarConfig","proto3Optional":true},{"name":"auto_update_config","number":2,"label":"LABEL_OPTIONAL","type":"TYPE_MESSAGE","typeName":".lansweeper.scanningconfig.v1.AutoUpdate","oneofIndex":1,"jsonName":"autoUpdateConfig","proto3Optional":true}],"oneofDecl":[{"name":"_asset_radar_config"},{"name":"_auto_update_config"}]},{"name":"Trigger","field":[{"name":"cron_expr","number":1,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"cronExpr"}]},{"name":"Action","field":[{"name":"triggers","number":1,"label":"LABEL_REPEATED","type":"TYPE_MESSAGE","typeName":".lansweeper.scanningconfig.v1.Trigger","jsonName":"triggers"},{"name":"action_type","number":2,"label":"LABEL_OPTIONAL","type":"TYPE_ENUM","typeName":".lansweeper.scanningconfig.v1.Action.ActionType","jsonName":"actionType"},{"name":"credentials","number":3,"label":"LABEL_REPEATED","type":"TYPE_MESSAGE","typeName":".lansweeper.scanningconfig.v1.Credential","jsonName":"credentials"},{"name":"agent","number":4,"label":"LABEL_OPTIONAL","type":"TYPE_MESSAGE","typeName":".lansweeper.scanningconfig.v1.Agent","oneofIndex":0,"jsonName":"agent"}],"enumType":[{"name":"ActionType","value":[{"name":"UNSPECIFIED","number":0},{"name":"AGENT","number":1}]}],"oneofDecl":[{"name":"definition"}]},{"name":"Agent","field":[{"name":"scan_focus","number":1,"label":"LABEL_OPTIONAL","type":"TYPE_ENUM","typeName":".lansweeper.scanningconfig.v1.Agent.ScanFocus","jsonName":"scanFocus"}],"enumType":[{"name":"ScanFocus","value":[{"name":"ALL","number":0},{"name":"USERS","number":1},{"name":"INVENTORY","number":2}]}]},{"name":"Credential","field":[{"name":"type","number":1,"label":"LABEL_OPTIONAL","type":"TYPE_ENUM","typeName":".lansweeper.scanningconfig.v1.Credential.CredentialType","jsonName":"type"}],"enumType":[{"name":"CredentialType","value":[{"name":"UNSPECIFIED","number":0}]}]}],"service":[{"name":"ScanningConfigService","method":[{"name":"GetConfigurationsBySource","inputType":".lansweeper.scanningconfig.v1.GetConfigurationsBySourceRequest","outputType":".lansweeper.scanningconfig.v1.GetConfigurationsBySourceResponse","options":{}}]}],"options":{"goPackage":"./generated-go"},"sourceCodeInfo":{"location":[{"span":[0,0,82,1]},{"path":[12],"span":[0,0,18]},{"path":[2],"span":[2,0,37]},{"path":[8],"span":[3,0,37]},{"path":[8,11],"span":[3,0,37]},{"path":[6,0],"span":[5,0,7,1]},{"path":[6,0,1],"span":[5,8,29]},{"path":[6,0,2,0],"span":[6,2,112]},{"path":[6,0,2,0,1],"span":[6,6,31]},{"path":[6,0,2,0,2],"span":[6,32,64]},{"path":[6,0,2,0,3],"span":[6,75,108]},{"path":[4,0],"span":[9,0,12,1]},{"path":[4,0,1],"span":[9,8,40]},{"path":[4,0,2,0],"span":[10,2,23]},{"path":[4,0,2,0,5],"span":[10,2,8]},{"path":[4,0,2,0,1],"span":[10,9,18]},{"path":[4,0,2,0,3],"span":[10,21,22]},{"path":[4,0,2,1],"span":[11,2,21]},{"path":[4,0,2,1,5],"span":[11,2,8]},{"path":[4,0,2,1,1],"span":[11,9,16]},{"path":[4,0,2,1,3],"span":[11,19,20]},{"path":[4,1],"span":[14,0,16,1]},{"path":[4,1,1],"span":[14,8,41]},{"path":[4,1,2,0],"span":[15,2,33]},{"path":[4,1,2,0,4],"span":[15,2,10]},{"path":[4,1,2,0,6],"span":[15,11,20]},{"path":[4,1,2,0,1],"span":[15,21,28]},{"path":[4,1,2,0,3],"span":[15,31,32]},{"path":[4,2],"span":[18,0,30,1]},{"path":[4,2,1],"span":[18,8,17]},{"path":[4,2,4,0],"span":[19,2,24,3]},{"path":[4,2,4,0,1],"span":[19,7,20]},{"path":[4,2,4,0,2,0],"span":[20,4,20]},{"path":[4,2,4,0,2,0,1],"span":[20,4,15]},{"path":[4,2,4,0,2,0,2],"span":[20,18,19]},{"path":[4,2,4,0,2,1],"span":[21,4,14]},{"path":[4,2,4,0,2,1,1],"span":[21,4,9]},{"path":[4,2,4,0,2,1,2],"span":[21,12,13]},{"path":[4,2,4,0,2,2],"span":[22,4,18]},{"path":[4,2,4,0,2,2,1],"span":[22,4,13]},{"path":[4,2,4,0,2,2,2],"span":[22,16,17]},{"path":[4,2,4,0,2,3],"span":[23,4,15]},{"path":[4,2,4,0,2,3,1],"span":[23,4,10]},{"path":[4,2,4,0,2,3,2],"span":[23,13,14]},{"path":[4,2,2,0],"span":[26,2,16]},{"path":[4,2,2,0,5],"span":[26,2,8]},{"path":[4,2,2,0,1],"span":[26,9,11]},{"path":[4,2,2,0,3],"span":[26,14,15]},{"path":[4,2,2,1],"span":[27,2,25]},{"path":[4,2,2,1,6],"span":[27,2,15]},{"path":[4,2,2,1,1],"span":[27,16,20]},{"path":[4,2,2,1,3],"span":[27,23,24]},{"path":[4,2,2,2],"span":[28,2,30]},{"path":[4,2,2,2,4],"span":[28,2,10]},{"path":[4,2,2,2,6],"span":[28,11,17]},{"path":[4,2,2,2,1],"span":[28,18,25]},{"path":[4,2,2,2,3],"span":[28,28,29]},{"path":[4,2,2,3],"span":[29,2,43]},{"path":[4,2,2,3,4],"span":[29,2,10]},{"path":[4,2,2,3,6],"span":[29,11,28]},{"path":[4,2,2,3,1],"span":[29,29,38]},{"path":[4,2,2,3,3],"span":[29,41,42]},{"path":[4,3],"span":[32,0,35,1]},{"path":[4,3,1],"span":[32,8,18]},{"path":[4,3,2,0],"span":[33,2,19]},{"path":[4,3,2,0,5],"span":[33,2,6]},{"path":[4,3,2,0,1],"span":[33,7,14]},{"path":[4,3,2,0,3],"span":[33,17,18]},{"path":[4,3,2,1],"span":[34,2,42]},{"path":[4,3,2,1,4],"span":[34,2,10]},{"path":[4,3,2,1,5],"span":[34,11,17]},{"path":[4,3,2,1,1],"span":[34,18,37]},{"path":[4,3,2,1,3],"span":[34,40,41]},{"path":[4,4],"span":[37,0,40,1]},{"path":[4,4,1],"span":[37,8,18]},{"path":[4,4,2,0],"span":[38,2,19]},{"path":[4,4,2,0,5],"span":[38,2,6]},{"path":[4,4,2,0,1],"span":[38,7,14]},{"path":[4,4,2,0,3],"span":[38,17,18]},{"path":[4,4,2,1],"span":[39,2,22]},{"path":[4,4,2,1,5],"span":[39,2,8]},{"path":[4,4,2,1,1],"span":[39,9,17]},{"path":[4,4,2,1,3],"span":[39,20,21]},{"path":[4,5],"span":[42,0,45,1]},{"path":[4,5,1],"span":[42,8,25]},{"path":[4,5,2,0],"span":[43,2,45]},{"path":[4,5,2,0,4],"span":[43,2,10]},{"path":[4,5,2,0,6],"span":[43,11,21]},{"path":[4,5,2,0,1],"span":[43,22,40]},{"path":[4,5,2,0,3],"span":[43,43,44]},{"path":[4,5,2,1],"span":[44,2,45]},{"path":[4,5,2,1,4],"span":[44,2,10]},{"path":[4,5,2,1,6],"span":[44,11,21]},{"path":[4,5,2,1,1],"span":[44,22,40]},{"path":[4,5,2,1,3],"span":[44,43,44]},{"path":[4,6],"span":[47,0,49,1]},{"path":[4,6,1],"span":[47,8,15]},{"path":[4,6,2,0],"span":[48,2,22]},{"path":[4,6,2,0,5],"span":[48,2,8]},{"path":[4,6,2,0,1],"span":[48,9,18]},{"path":[4,6,2,0,3],"span":[48,20,21]},{"path":[4,7],"span":[51,0,63,1]},{"path":[4,7,1],"span":[51,8,14]},{"path":[4,7,4,0],"span":[52,2,55,3]},{"path":[4,7,4,0,1],"span":[52,7,17]},{"path":[4,7,4,0,2,0],"span":[53,4,20]},{"path":[4,7,4,0,2,0,1],"span":[53,4,15]},{"path":[4,7,4,0,2,0,2],"span":[53,18,19]},{"path":[4,7,4,0,2,1],"span":[54,4,14]},{"path":[4,7,4,0,2,1,1],"span":[54,4,9]},{"path":[4,7,4,0,2,1,2],"span":[54,12,13]},{"path":[4,7,2,0],"span":[57,2,32]},{"path":[4,7,2,0,4],"span":[57,2,10]},{"path":[4,7,2,0,6],"span":[57,11,18]},{"path":[4,7,2,0,1],"span":[57,19,27]},{"path":[4,7,2,0,3],"span":[57,30,31]},{"path":[4,7,2,1],"span":[58,2,29]},{"path":[4,7,2,1,6],"span":[58,2,12]},{"path":[4,7,2,1,1],"span":[58,13,24]},{"path":[4,7,2,1,3],"span":[58,27,28]},{"path":[4,7,2,2],"span":[59,2,38]},{"path":[4,7,2,2,4],"span":[59,2,10]},{"path":[4,7,2,2,6],"span":[59,11,21]},{"path":[4,7,2,2,1],"span":[59,22,33]},{"path":[4,7,2,2,3],"span":[59,36,37]},{"path":[4,7,8,0],"span":[60,2,62,3]},{"path":[4,7,8,0,1],"span":[60,8,18]},{"path":[4,7,2,3],"span":[61,4,20]},{"path":[4,7,2,3,6],"span":[61,4,9]},{"path":[4,7,2,3,1],"span":[61,10,15]},{"path":[4,7,2,3,3],"span":[61,18,19]},{"path":[4,8],"span":[65,0,73,1]},{"path":[4,8,1],"span":[65,8,13]},{"path":[4,8,4,0],"span":[66,2,70,3]},{"path":[4,8,4,0,1],"span":[66,7,16]},{"path":[4,8,4,0,2,0],"span":[67,4,12]},{"path":[4,8,4,0,2,0,1],"span":[67,4,7]},{"path":[4,8,4,0,2,0,2],"span":[67,10,11]},{"path":[4,8,4,0,2,1],"span":[68,4,14]},{"path":[4,8,4,0,2,1,1],"span":[68,4,9]},{"path":[4,8,4,0,2,1,2],"span":[68,12,13]},{"path":[4,8,4,0,2,2],"span":[69,4,18]},{"path":[4,8,4,0,2,2,1],"span":[69,4,13]},{"path":[4,8,4,0,2,2,2],"span":[69,16,17]},{"path":[4,8,2,0],"span":[72,2,27]},{"path":[4,8,2,0,6],"span":[72,2,11]},{"path":[4,8,2,0,1],"span":[72,12,22]},{"path":[4,8,2,0,3],"span":[72,25,26]},{"path":[4,9],"span":[75,0,82,1]},{"path":[4,9,1],"span":[75,8,18]},{"path":[4,9,4,0],"span":[76,2,79,3]},{"path":[4,9,4,0,1],"span":[76,7,21]},{"path":[4,9,4,0,2,0],"span":[78,4,20]},{"path":[4,9,4,0,2,0,1],"span":[78,4,15]},{"path":[4,9,4,0,2,0,2],"span":[78,18,19]},{"path":[4,9,2,0],"span":[81,2,26]},{"path":[4,9,2,0,6],"span":[81,2,16]},{"path":[4,9,2,0,1],"span":[81,17,21]},{"path":[4,9,2,0,3],"span":[81,24,25]}]},"syntax":"proto3","bufExtension":{"isImport":false,"isSyntaxUnspecified":false}}]}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
// package: lansweeper.scanningconfig.v1
|
|
2
|
+
// file: scanningconfig.proto
|
|
3
|
+
|
|
4
|
+
/* tslint:disable */
|
|
5
|
+
/* eslint-disable */
|
|
6
|
+
|
|
7
|
+
import * as grpc from "@grpc/grpc-js";
|
|
8
|
+
import * as scanningconfig_pb from "./scanningconfig_pb";
|
|
9
|
+
|
|
10
|
+
interface IScanningConfigServiceService extends grpc.ServiceDefinition<grpc.UntypedServiceImplementation> {
|
|
11
|
+
getConfigurationsBySource: IScanningConfigServiceService_IGetConfigurationsBySource;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
interface IScanningConfigServiceService_IGetConfigurationsBySource extends grpc.MethodDefinition<scanningconfig_pb.GetConfigurationsBySourceRequest, scanningconfig_pb.GetConfigurationsBySourceResponse> {
|
|
15
|
+
path: "/lansweeper.scanningconfig.v1.ScanningConfigService/GetConfigurationsBySource";
|
|
16
|
+
requestStream: false;
|
|
17
|
+
responseStream: false;
|
|
18
|
+
requestSerialize: grpc.serialize<scanningconfig_pb.GetConfigurationsBySourceRequest>;
|
|
19
|
+
requestDeserialize: grpc.deserialize<scanningconfig_pb.GetConfigurationsBySourceRequest>;
|
|
20
|
+
responseSerialize: grpc.serialize<scanningconfig_pb.GetConfigurationsBySourceResponse>;
|
|
21
|
+
responseDeserialize: grpc.deserialize<scanningconfig_pb.GetConfigurationsBySourceResponse>;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export const ScanningConfigServiceService: IScanningConfigServiceService;
|
|
25
|
+
|
|
26
|
+
export interface IScanningConfigServiceServer extends grpc.UntypedServiceImplementation {
|
|
27
|
+
getConfigurationsBySource: grpc.handleUnaryCall<scanningconfig_pb.GetConfigurationsBySourceRequest, scanningconfig_pb.GetConfigurationsBySourceResponse>;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export interface IScanningConfigServiceClient {
|
|
31
|
+
getConfigurationsBySource(request: scanningconfig_pb.GetConfigurationsBySourceRequest, callback: (error: grpc.ServiceError | null, response: scanningconfig_pb.GetConfigurationsBySourceResponse) => void): grpc.ClientUnaryCall;
|
|
32
|
+
getConfigurationsBySource(request: scanningconfig_pb.GetConfigurationsBySourceRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: scanningconfig_pb.GetConfigurationsBySourceResponse) => void): grpc.ClientUnaryCall;
|
|
33
|
+
getConfigurationsBySource(request: scanningconfig_pb.GetConfigurationsBySourceRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: scanningconfig_pb.GetConfigurationsBySourceResponse) => void): grpc.ClientUnaryCall;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export class ScanningConfigServiceClient extends grpc.Client implements IScanningConfigServiceClient {
|
|
37
|
+
constructor(address: string, credentials: grpc.ChannelCredentials, options?: Partial<grpc.ClientOptions>);
|
|
38
|
+
public getConfigurationsBySource(request: scanningconfig_pb.GetConfigurationsBySourceRequest, callback: (error: grpc.ServiceError | null, response: scanningconfig_pb.GetConfigurationsBySourceResponse) => void): grpc.ClientUnaryCall;
|
|
39
|
+
public getConfigurationsBySource(request: scanningconfig_pb.GetConfigurationsBySourceRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: scanningconfig_pb.GetConfigurationsBySourceResponse) => void): grpc.ClientUnaryCall;
|
|
40
|
+
public getConfigurationsBySource(request: scanningconfig_pb.GetConfigurationsBySourceRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: scanningconfig_pb.GetConfigurationsBySourceResponse) => void): grpc.ClientUnaryCall;
|
|
41
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
// GENERATED CODE -- DO NOT EDIT!
|
|
2
|
+
|
|
3
|
+
'use strict';
|
|
4
|
+
var grpc = require('@grpc/grpc-js');
|
|
5
|
+
var scanningconfig_pb = require('./scanningconfig_pb.js');
|
|
6
|
+
|
|
7
|
+
function serialize_lansweeper_scanningconfig_v1_GetConfigurationsBySourceRequest(arg) {
|
|
8
|
+
if (!(arg instanceof scanningconfig_pb.GetConfigurationsBySourceRequest)) {
|
|
9
|
+
throw new Error('Expected argument of type lansweeper.scanningconfig.v1.GetConfigurationsBySourceRequest');
|
|
10
|
+
}
|
|
11
|
+
return Buffer.from(arg.serializeBinary());
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
function deserialize_lansweeper_scanningconfig_v1_GetConfigurationsBySourceRequest(buffer_arg) {
|
|
15
|
+
return scanningconfig_pb.GetConfigurationsBySourceRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
function serialize_lansweeper_scanningconfig_v1_GetConfigurationsBySourceResponse(arg) {
|
|
19
|
+
if (!(arg instanceof scanningconfig_pb.GetConfigurationsBySourceResponse)) {
|
|
20
|
+
throw new Error('Expected argument of type lansweeper.scanningconfig.v1.GetConfigurationsBySourceResponse');
|
|
21
|
+
}
|
|
22
|
+
return Buffer.from(arg.serializeBinary());
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
function deserialize_lansweeper_scanningconfig_v1_GetConfigurationsBySourceResponse(buffer_arg) {
|
|
26
|
+
return scanningconfig_pb.GetConfigurationsBySourceResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
var ScanningConfigServiceService = exports.ScanningConfigServiceService = {
|
|
31
|
+
getConfigurationsBySource: {
|
|
32
|
+
path: '/lansweeper.scanningconfig.v1.ScanningConfigService/GetConfigurationsBySource',
|
|
33
|
+
requestStream: false,
|
|
34
|
+
responseStream: false,
|
|
35
|
+
requestType: scanningconfig_pb.GetConfigurationsBySourceRequest,
|
|
36
|
+
responseType: scanningconfig_pb.GetConfigurationsBySourceResponse,
|
|
37
|
+
requestSerialize: serialize_lansweeper_scanningconfig_v1_GetConfigurationsBySourceRequest,
|
|
38
|
+
requestDeserialize: deserialize_lansweeper_scanningconfig_v1_GetConfigurationsBySourceRequest,
|
|
39
|
+
responseSerialize: serialize_lansweeper_scanningconfig_v1_GetConfigurationsBySourceResponse,
|
|
40
|
+
responseDeserialize: deserialize_lansweeper_scanningconfig_v1_GetConfigurationsBySourceResponse,
|
|
41
|
+
},
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
exports.ScanningConfigServiceClient = grpc.makeGenericClientConstructor(ScanningConfigServiceService);
|
|
@@ -0,0 +1,293 @@
|
|
|
1
|
+
// package: lansweeper.scanningconfig.v1
|
|
2
|
+
// file: scanningconfig.proto
|
|
3
|
+
|
|
4
|
+
/* tslint:disable */
|
|
5
|
+
/* eslint-disable */
|
|
6
|
+
|
|
7
|
+
import * as jspb from "google-protobuf";
|
|
8
|
+
|
|
9
|
+
export class GetConfigurationsBySourceRequest extends jspb.Message {
|
|
10
|
+
getSourceId(): string;
|
|
11
|
+
setSourceId(value: string): GetConfigurationsBySourceRequest;
|
|
12
|
+
getSiteId(): string;
|
|
13
|
+
setSiteId(value: string): GetConfigurationsBySourceRequest;
|
|
14
|
+
|
|
15
|
+
serializeBinary(): Uint8Array;
|
|
16
|
+
toObject(includeInstance?: boolean): GetConfigurationsBySourceRequest.AsObject;
|
|
17
|
+
static toObject(includeInstance: boolean, msg: GetConfigurationsBySourceRequest): GetConfigurationsBySourceRequest.AsObject;
|
|
18
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
19
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
20
|
+
static serializeBinaryToWriter(message: GetConfigurationsBySourceRequest, writer: jspb.BinaryWriter): void;
|
|
21
|
+
static deserializeBinary(bytes: Uint8Array): GetConfigurationsBySourceRequest;
|
|
22
|
+
static deserializeBinaryFromReader(message: GetConfigurationsBySourceRequest, reader: jspb.BinaryReader): GetConfigurationsBySourceRequest;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export namespace GetConfigurationsBySourceRequest {
|
|
26
|
+
export type AsObject = {
|
|
27
|
+
sourceId: string,
|
|
28
|
+
siteId: string,
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export class GetConfigurationsBySourceResponse extends jspb.Message {
|
|
33
|
+
clearConfigsList(): void;
|
|
34
|
+
getConfigsList(): Array<Component>;
|
|
35
|
+
setConfigsList(value: Array<Component>): GetConfigurationsBySourceResponse;
|
|
36
|
+
addConfigs(value?: Component, index?: number): Component;
|
|
37
|
+
|
|
38
|
+
serializeBinary(): Uint8Array;
|
|
39
|
+
toObject(includeInstance?: boolean): GetConfigurationsBySourceResponse.AsObject;
|
|
40
|
+
static toObject(includeInstance: boolean, msg: GetConfigurationsBySourceResponse): GetConfigurationsBySourceResponse.AsObject;
|
|
41
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
42
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
43
|
+
static serializeBinaryToWriter(message: GetConfigurationsBySourceResponse, writer: jspb.BinaryWriter): void;
|
|
44
|
+
static deserializeBinary(bytes: Uint8Array): GetConfigurationsBySourceResponse;
|
|
45
|
+
static deserializeBinaryFromReader(message: GetConfigurationsBySourceResponse, reader: jspb.BinaryReader): GetConfigurationsBySourceResponse;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export namespace GetConfigurationsBySourceResponse {
|
|
49
|
+
export type AsObject = {
|
|
50
|
+
configsList: Array<Component.AsObject>,
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export class Component extends jspb.Message {
|
|
55
|
+
getId(): string;
|
|
56
|
+
setId(value: string): Component;
|
|
57
|
+
getType(): Component.ComponentType;
|
|
58
|
+
setType(value: Component.ComponentType): Component;
|
|
59
|
+
clearActionsList(): void;
|
|
60
|
+
getActionsList(): Array<Action>;
|
|
61
|
+
setActionsList(value: Array<Action>): Component;
|
|
62
|
+
addActions(value?: Action, index?: number): Action;
|
|
63
|
+
|
|
64
|
+
hasOpConfig(): boolean;
|
|
65
|
+
clearOpConfig(): void;
|
|
66
|
+
getOpConfig(): OperationalConfig | undefined;
|
|
67
|
+
setOpConfig(value?: OperationalConfig): Component;
|
|
68
|
+
|
|
69
|
+
serializeBinary(): Uint8Array;
|
|
70
|
+
toObject(includeInstance?: boolean): Component.AsObject;
|
|
71
|
+
static toObject(includeInstance: boolean, msg: Component): Component.AsObject;
|
|
72
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
73
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
74
|
+
static serializeBinaryToWriter(message: Component, writer: jspb.BinaryWriter): void;
|
|
75
|
+
static deserializeBinary(bytes: Uint8Array): Component;
|
|
76
|
+
static deserializeBinaryFromReader(message: Component, reader: jspb.BinaryReader): Component;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export namespace Component {
|
|
80
|
+
export type AsObject = {
|
|
81
|
+
id: string,
|
|
82
|
+
type: Component.ComponentType,
|
|
83
|
+
actionsList: Array<Action.AsObject>,
|
|
84
|
+
opConfig?: OperationalConfig.AsObject,
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export enum ComponentType {
|
|
88
|
+
UNSPECIFIED = 0,
|
|
89
|
+
AGENT = 1,
|
|
90
|
+
IT_SENSOR = 2,
|
|
91
|
+
IT_HUB = 3,
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export class AssetRadar extends jspb.Message {
|
|
97
|
+
getEnabled(): boolean;
|
|
98
|
+
setEnabled(value: boolean): AssetRadar;
|
|
99
|
+
clearExcludedInterfacesList(): void;
|
|
100
|
+
getExcludedInterfacesList(): Array<string>;
|
|
101
|
+
setExcludedInterfacesList(value: Array<string>): AssetRadar;
|
|
102
|
+
addExcludedInterfaces(value: string, index?: number): string;
|
|
103
|
+
|
|
104
|
+
serializeBinary(): Uint8Array;
|
|
105
|
+
toObject(includeInstance?: boolean): AssetRadar.AsObject;
|
|
106
|
+
static toObject(includeInstance: boolean, msg: AssetRadar): AssetRadar.AsObject;
|
|
107
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
108
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
109
|
+
static serializeBinaryToWriter(message: AssetRadar, writer: jspb.BinaryWriter): void;
|
|
110
|
+
static deserializeBinary(bytes: Uint8Array): AssetRadar;
|
|
111
|
+
static deserializeBinaryFromReader(message: AssetRadar, reader: jspb.BinaryReader): AssetRadar;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
export namespace AssetRadar {
|
|
115
|
+
export type AsObject = {
|
|
116
|
+
enabled: boolean,
|
|
117
|
+
excludedInterfacesList: Array<string>,
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
export class AutoUpdate extends jspb.Message {
|
|
122
|
+
getEnabled(): boolean;
|
|
123
|
+
setEnabled(value: boolean): AutoUpdate;
|
|
124
|
+
getSchedule(): string;
|
|
125
|
+
setSchedule(value: string): AutoUpdate;
|
|
126
|
+
|
|
127
|
+
serializeBinary(): Uint8Array;
|
|
128
|
+
toObject(includeInstance?: boolean): AutoUpdate.AsObject;
|
|
129
|
+
static toObject(includeInstance: boolean, msg: AutoUpdate): AutoUpdate.AsObject;
|
|
130
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
131
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
132
|
+
static serializeBinaryToWriter(message: AutoUpdate, writer: jspb.BinaryWriter): void;
|
|
133
|
+
static deserializeBinary(bytes: Uint8Array): AutoUpdate;
|
|
134
|
+
static deserializeBinaryFromReader(message: AutoUpdate, reader: jspb.BinaryReader): AutoUpdate;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
export namespace AutoUpdate {
|
|
138
|
+
export type AsObject = {
|
|
139
|
+
enabled: boolean,
|
|
140
|
+
schedule: string,
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
export class OperationalConfig extends jspb.Message {
|
|
145
|
+
|
|
146
|
+
hasAssetRadarConfig(): boolean;
|
|
147
|
+
clearAssetRadarConfig(): void;
|
|
148
|
+
getAssetRadarConfig(): AssetRadar | undefined;
|
|
149
|
+
setAssetRadarConfig(value?: AssetRadar): OperationalConfig;
|
|
150
|
+
|
|
151
|
+
hasAutoUpdateConfig(): boolean;
|
|
152
|
+
clearAutoUpdateConfig(): void;
|
|
153
|
+
getAutoUpdateConfig(): AutoUpdate | undefined;
|
|
154
|
+
setAutoUpdateConfig(value?: AutoUpdate): OperationalConfig;
|
|
155
|
+
|
|
156
|
+
serializeBinary(): Uint8Array;
|
|
157
|
+
toObject(includeInstance?: boolean): OperationalConfig.AsObject;
|
|
158
|
+
static toObject(includeInstance: boolean, msg: OperationalConfig): OperationalConfig.AsObject;
|
|
159
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
160
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
161
|
+
static serializeBinaryToWriter(message: OperationalConfig, writer: jspb.BinaryWriter): void;
|
|
162
|
+
static deserializeBinary(bytes: Uint8Array): OperationalConfig;
|
|
163
|
+
static deserializeBinaryFromReader(message: OperationalConfig, reader: jspb.BinaryReader): OperationalConfig;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
export namespace OperationalConfig {
|
|
167
|
+
export type AsObject = {
|
|
168
|
+
assetRadarConfig?: AssetRadar.AsObject,
|
|
169
|
+
autoUpdateConfig?: AutoUpdate.AsObject,
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
export class Trigger extends jspb.Message {
|
|
174
|
+
getCronExpr(): string;
|
|
175
|
+
setCronExpr(value: string): Trigger;
|
|
176
|
+
|
|
177
|
+
serializeBinary(): Uint8Array;
|
|
178
|
+
toObject(includeInstance?: boolean): Trigger.AsObject;
|
|
179
|
+
static toObject(includeInstance: boolean, msg: Trigger): Trigger.AsObject;
|
|
180
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
181
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
182
|
+
static serializeBinaryToWriter(message: Trigger, writer: jspb.BinaryWriter): void;
|
|
183
|
+
static deserializeBinary(bytes: Uint8Array): Trigger;
|
|
184
|
+
static deserializeBinaryFromReader(message: Trigger, reader: jspb.BinaryReader): Trigger;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
export namespace Trigger {
|
|
188
|
+
export type AsObject = {
|
|
189
|
+
cronExpr: string,
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
export class Action extends jspb.Message {
|
|
194
|
+
clearTriggersList(): void;
|
|
195
|
+
getTriggersList(): Array<Trigger>;
|
|
196
|
+
setTriggersList(value: Array<Trigger>): Action;
|
|
197
|
+
addTriggers(value?: Trigger, index?: number): Trigger;
|
|
198
|
+
getActionType(): Action.ActionType;
|
|
199
|
+
setActionType(value: Action.ActionType): Action;
|
|
200
|
+
clearCredentialsList(): void;
|
|
201
|
+
getCredentialsList(): Array<Credential>;
|
|
202
|
+
setCredentialsList(value: Array<Credential>): Action;
|
|
203
|
+
addCredentials(value?: Credential, index?: number): Credential;
|
|
204
|
+
|
|
205
|
+
hasAgent(): boolean;
|
|
206
|
+
clearAgent(): void;
|
|
207
|
+
getAgent(): Agent | undefined;
|
|
208
|
+
setAgent(value?: Agent): Action;
|
|
209
|
+
|
|
210
|
+
getDefinitionCase(): Action.DefinitionCase;
|
|
211
|
+
|
|
212
|
+
serializeBinary(): Uint8Array;
|
|
213
|
+
toObject(includeInstance?: boolean): Action.AsObject;
|
|
214
|
+
static toObject(includeInstance: boolean, msg: Action): Action.AsObject;
|
|
215
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
216
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
217
|
+
static serializeBinaryToWriter(message: Action, writer: jspb.BinaryWriter): void;
|
|
218
|
+
static deserializeBinary(bytes: Uint8Array): Action;
|
|
219
|
+
static deserializeBinaryFromReader(message: Action, reader: jspb.BinaryReader): Action;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
export namespace Action {
|
|
223
|
+
export type AsObject = {
|
|
224
|
+
triggersList: Array<Trigger.AsObject>,
|
|
225
|
+
actionType: Action.ActionType,
|
|
226
|
+
credentialsList: Array<Credential.AsObject>,
|
|
227
|
+
agent?: Agent.AsObject,
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
export enum ActionType {
|
|
231
|
+
UNSPECIFIED = 0,
|
|
232
|
+
AGENT = 1,
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
|
|
236
|
+
export enum DefinitionCase {
|
|
237
|
+
DEFINITION_NOT_SET = 0,
|
|
238
|
+
AGENT = 4,
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
export class Agent extends jspb.Message {
|
|
244
|
+
getScanFocus(): Agent.ScanFocus;
|
|
245
|
+
setScanFocus(value: Agent.ScanFocus): Agent;
|
|
246
|
+
|
|
247
|
+
serializeBinary(): Uint8Array;
|
|
248
|
+
toObject(includeInstance?: boolean): Agent.AsObject;
|
|
249
|
+
static toObject(includeInstance: boolean, msg: Agent): Agent.AsObject;
|
|
250
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
251
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
252
|
+
static serializeBinaryToWriter(message: Agent, writer: jspb.BinaryWriter): void;
|
|
253
|
+
static deserializeBinary(bytes: Uint8Array): Agent;
|
|
254
|
+
static deserializeBinaryFromReader(message: Agent, reader: jspb.BinaryReader): Agent;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
export namespace Agent {
|
|
258
|
+
export type AsObject = {
|
|
259
|
+
scanFocus: Agent.ScanFocus,
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
export enum ScanFocus {
|
|
263
|
+
ALL = 0,
|
|
264
|
+
USERS = 1,
|
|
265
|
+
INVENTORY = 2,
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
export class Credential extends jspb.Message {
|
|
271
|
+
getType(): Credential.CredentialType;
|
|
272
|
+
setType(value: Credential.CredentialType): Credential;
|
|
273
|
+
|
|
274
|
+
serializeBinary(): Uint8Array;
|
|
275
|
+
toObject(includeInstance?: boolean): Credential.AsObject;
|
|
276
|
+
static toObject(includeInstance: boolean, msg: Credential): Credential.AsObject;
|
|
277
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
278
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
279
|
+
static serializeBinaryToWriter(message: Credential, writer: jspb.BinaryWriter): void;
|
|
280
|
+
static deserializeBinary(bytes: Uint8Array): Credential;
|
|
281
|
+
static deserializeBinaryFromReader(message: Credential, reader: jspb.BinaryReader): Credential;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
export namespace Credential {
|
|
285
|
+
export type AsObject = {
|
|
286
|
+
type: Credential.CredentialType,
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
export enum CredentialType {
|
|
290
|
+
UNSPECIFIED = 0,
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
}
|