@lansweeper/scanningconfig-grpc 0.1.5 → 0.1.7

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.
Files changed (25) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/Lansweeper.ScanningConfig.GRPC.csproj +3 -3
  3. package/bin/Debug/net6.0/Lansweeper.ScanningConfig.GRPC.deps.json +2 -2
  4. package/bin/Debug/net6.0/Lansweeper.ScanningConfig.GRPC.dll +0 -0
  5. package/bin/Debug/net6.0/Lansweeper.ScanningConfig.GRPC.pdb +0 -0
  6. package/bin/Debug/net6.0/ref/Lansweeper.ScanningConfig.GRPC.dll +0 -0
  7. package/gen-proto/image.json +1 -1
  8. package/gen-proto/scanningconfig_pb.d.ts +44 -0
  9. package/gen-proto/scanningconfig_pb.js +318 -1
  10. package/generated-go/scanningconfig.pb.go +270 -109
  11. package/generated-go/scanningconfig_grpc.pb.go +5 -4
  12. package/obj/Debug/net6.0/Lansweeper.ScanningConfig.GRPC.AssemblyInfo.cs +3 -3
  13. package/obj/Debug/net6.0/Lansweeper.ScanningConfig.GRPC.AssemblyInfoInputs.cache +1 -1
  14. package/obj/Debug/net6.0/Lansweeper.ScanningConfig.GRPC.csproj.AssemblyReference.cache +0 -0
  15. package/obj/Debug/net6.0/Lansweeper.ScanningConfig.GRPC.csproj.CoreCompileInputs.cache +1 -1
  16. package/obj/Debug/net6.0/Lansweeper.ScanningConfig.GRPC.dll +0 -0
  17. package/obj/Debug/net6.0/Lansweeper.ScanningConfig.GRPC.pdb +0 -0
  18. package/obj/Debug/net6.0/proto/Scanningconfig.cs +356 -20
  19. package/obj/Debug/net6.0/ref/Lansweeper.ScanningConfig.GRPC.dll +0 -0
  20. package/obj/Lansweeper.ScanningConfig.GRPC.csproj.nuget.dgspec.json +2 -2
  21. package/obj/Lansweeper.ScanningConfig.GRPC.csproj.nuget.g.props +1 -1
  22. package/obj/project.assets.json +2 -2
  23. package/obj/project.nuget.cache +1 -1
  24. package/package.json +2 -2
  25. package/proto/scanningconfig.proto +17 -3
@@ -1,6 +1,6 @@
1
1
  // Code generated by protoc-gen-go-grpc. DO NOT EDIT.
2
2
  // versions:
3
- // - protoc-gen-go-grpc v1.3.0
3
+ // - protoc-gen-go-grpc v1.4.0
4
4
  // - protoc v3.19.1
5
5
  // source: scanningconfig.proto
6
6
 
@@ -15,8 +15,8 @@ import (
15
15
 
16
16
  // This is a compile-time assertion to ensure that this generated file
17
17
  // is compatible with the grpc package it is being compiled against.
18
- // Requires gRPC-Go v1.32.0 or later.
19
- const _ = grpc.SupportPackageIsVersion7
18
+ // Requires gRPC-Go v1.62.0 or later.
19
+ const _ = grpc.SupportPackageIsVersion8
20
20
 
21
21
  const (
22
22
  ScanningConfigService_GetConfigurationsBySource_FullMethodName = "/lansweeper.scanningconfig.v1.ScanningConfigService/GetConfigurationsBySource"
@@ -38,8 +38,9 @@ func NewScanningConfigServiceClient(cc grpc.ClientConnInterface) ScanningConfigS
38
38
  }
39
39
 
40
40
  func (c *scanningConfigServiceClient) GetConfigurationsBySource(ctx context.Context, in *GetConfigurationsBySourceRequest, opts ...grpc.CallOption) (*GetConfigurationsBySourceResponse, error) {
41
+ cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
41
42
  out := new(GetConfigurationsBySourceResponse)
42
- err := c.cc.Invoke(ctx, ScanningConfigService_GetConfigurationsBySource_FullMethodName, in, out, opts...)
43
+ err := c.cc.Invoke(ctx, ScanningConfigService_GetConfigurationsBySource_FullMethodName, in, out, cOpts...)
43
44
  if err != nil {
44
45
  return nil, err
45
46
  }
@@ -14,11 +14,11 @@ using System.Reflection;
14
14
  [assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
15
15
  [assembly: System.Reflection.AssemblyCopyrightAttribute("Lansweeper")]
16
16
  [assembly: System.Reflection.AssemblyDescriptionAttribute("More Info : http://www.lansweeper.com")]
17
- [assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.4")]
18
- [assembly: System.Reflection.AssemblyInformationalVersionAttribute("0.1.4")]
17
+ [assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.6")]
18
+ [assembly: System.Reflection.AssemblyInformationalVersionAttribute("0.1.6")]
19
19
  [assembly: System.Reflection.AssemblyProductAttribute("Lansweeper ScanningConfig model/proto")]
20
20
  [assembly: System.Reflection.AssemblyTitleAttribute("Lansweeper.ScanningConfig.GRPC")]
21
- [assembly: System.Reflection.AssemblyVersionAttribute("0.1.4.0")]
21
+ [assembly: System.Reflection.AssemblyVersionAttribute("0.1.6.0")]
22
22
  [assembly: System.Reflection.AssemblyMetadataAttribute("RepositoryUrl", "https://github.com/Lansweeper/lansweeperapis")]
23
23
 
24
24
  // Generated by the MSBuild WriteCodeFragment class.
@@ -1 +1 @@
1
- 0a6fe68e3d3c8bc9f53175fd161f66a97e3d8b9b
1
+ d7683f49010135f198642484a7236ae8ded130fa
@@ -1 +1 @@
1
- e89cf97cbd84931b4e81957cc8803ae4bcfc518d
1
+ 364d426e3f4ee75738036310a7b2cd2d8c926bbd
@@ -48,27 +48,33 @@ namespace Lansweeper.Scanningconfig.V1 {
48
48
  "bGFuc3dlZXBlci5zY2FubmluZ2NvbmZpZy52MS5OZXR3b3JrVmlzaWJpbGl0",
49
49
  "eUgCiAEBQhUKE19hc3NldF9yYWRhcl9jb25maWdCFQoTX2F1dG9fdXBkYXRl",
50
50
  "X2NvbmZpZ0IcChpfbmV0d29ya192aXNpYmlsaXR5X2NvbmZpZyIqCgdUcmln",
51
- "Z2VyEhEKCWNyb25fZXhwchgBIAEoCRIMCgRuYW1lGAIgASgJIoEDCgZBY3Rp",
51
+ "Z2VyEhEKCWNyb25fZXhwchgBIAEoCRIMCgRuYW1lGAIgASgJIuADCgZBY3Rp",
52
52
  "b24SNwoIdHJpZ2dlcnMYASADKAsyJS5sYW5zd2VlcGVyLnNjYW5uaW5nY29u",
53
53
  "ZmlnLnYxLlRyaWdnZXISRAoLYWN0aW9uX3R5cGUYAiABKA4yLy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WRU5UT1JZ",
70
+ "EAIiggEKCkNyZWRlbnRpYWwSRQoEdHlwZRgBIAEoDjI3LmxhbnN3ZWVwZXIu",
71
+ "c2Nhbm5pbmdjb25maWcudjEuQ3JlZGVudGlhbC5DcmVkZW50aWFsVHlwZRIK",
72
+ "CgJpZBgCIAEoCSIhCg5DcmVkZW50aWFsVHlwZRIPCgtVTlNQRUNJRklFRBAA",
73
+ "MrgBChVTY2FubmluZ0NvbmZpZ1NlcnZpY2USngEKGUdldENvbmZpZ3VyYXRp",
74
+ "b25zQnlTb3VyY2USPi5sYW5zd2VlcGVyLnNjYW5uaW5nY29uZmlnLnYxLkdl",
75
+ "dENvbmZpZ3VyYXRpb25zQnlTb3VyY2VSZXF1ZXN0Gj8ubGFuc3dlZXBlci5z",
76
+ "Y2FubmluZ2NvbmZpZy52MS5HZXRDb25maWd1cmF0aW9uc0J5U291cmNlUmVz",
77
+ "cG9uc2UiAEIQWg4uL2dlbmVyYXRlZC1nb2IGcHJvdG8z"));
72
78
  descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
73
79
  new pbr::FileDescriptor[] { },
74
80
  new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
@@ -80,8 +86,9 @@ namespace Lansweeper.Scanningconfig.V1 {
80
86
  new pbr::GeneratedClrTypeInfo(typeof(global::Lansweeper.Scanningconfig.V1.AutoUpdate), global::Lansweeper.Scanningconfig.V1.AutoUpdate.Parser, new[]{ "Enabled", "Schedule" }, null, null, null, null),
81
87
  new pbr::GeneratedClrTypeInfo(typeof(global::Lansweeper.Scanningconfig.V1.OperationalConfig), global::Lansweeper.Scanningconfig.V1.OperationalConfig.Parser, new[]{ "AssetRadarConfig", "AutoUpdateConfig", "NetworkVisibilityConfig" }, new[]{ "AssetRadarConfig", "AutoUpdateConfig", "NetworkVisibilityConfig" }, null, null, null),
82
88
  new pbr::GeneratedClrTypeInfo(typeof(global::Lansweeper.Scanningconfig.V1.Trigger), global::Lansweeper.Scanningconfig.V1.Trigger.Parser, new[]{ "CronExpr", "Name" }, null, null, null, null),
83
- new pbr::GeneratedClrTypeInfo(typeof(global::Lansweeper.Scanningconfig.V1.Action), global::Lansweeper.Scanningconfig.V1.Action.Parser, new[]{ "Triggers", "ActionType", "Credentials", "Agent", "Agentless" }, new[]{ "Definition" }, new[]{ typeof(global::Lansweeper.Scanningconfig.V1.Action.Types.ActionType) }, null, null),
89
+ new pbr::GeneratedClrTypeInfo(typeof(global::Lansweeper.Scanningconfig.V1.Action), global::Lansweeper.Scanningconfig.V1.Action.Parser, new[]{ "Triggers", "ActionType", "Credentials", "Agent", "Agentless", "ActionDefinition", "Id" }, new[]{ "Definition" }, new[]{ typeof(global::Lansweeper.Scanningconfig.V1.Action.Types.ActionType) }, null, null),
84
90
  new pbr::GeneratedClrTypeInfo(typeof(global::Lansweeper.Scanningconfig.V1.Agentless), global::Lansweeper.Scanningconfig.V1.Agentless.Parser, new[]{ "Targets" }, null, null, null, null),
91
+ new pbr::GeneratedClrTypeInfo(typeof(global::Lansweeper.Scanningconfig.V1.ActionDefinition), global::Lansweeper.Scanningconfig.V1.ActionDefinition.Parser, new[]{ "ScanFocus", "Targets" }, new[]{ "ScanFocus" }, new[]{ typeof(global::Lansweeper.Scanningconfig.V1.ActionDefinition.Types.ScanFocus) }, null, null),
85
92
  new pbr::GeneratedClrTypeInfo(typeof(global::Lansweeper.Scanningconfig.V1.Agent), global::Lansweeper.Scanningconfig.V1.Agent.Parser, new[]{ "ScanFocus" }, null, new[]{ typeof(global::Lansweeper.Scanningconfig.V1.Agent.Types.ScanFocus) }, null, null),
86
93
  new pbr::GeneratedClrTypeInfo(typeof(global::Lansweeper.Scanningconfig.V1.Credential), global::Lansweeper.Scanningconfig.V1.Credential.Parser, new[]{ "Type", "Id" }, null, new[]{ typeof(global::Lansweeper.Scanningconfig.V1.Credential.Types.CredentialType) }, null, null)
87
94
  }));
@@ -2055,6 +2062,8 @@ namespace Lansweeper.Scanningconfig.V1 {
2055
2062
  triggers_ = other.triggers_.Clone();
2056
2063
  actionType_ = other.actionType_;
2057
2064
  credentials_ = other.credentials_.Clone();
2065
+ actionDefinition_ = other.actionDefinition_ != null ? other.actionDefinition_.Clone() : null;
2066
+ id_ = other.id_;
2058
2067
  switch (other.DefinitionCase) {
2059
2068
  case DefinitionOneofCase.Agent:
2060
2069
  Agent = other.Agent.Clone();
@@ -2109,6 +2118,7 @@ namespace Lansweeper.Scanningconfig.V1 {
2109
2118
 
2110
2119
  /// <summary>Field number for the "agent" field.</summary>
2111
2120
  public const int AgentFieldNumber = 4;
2121
+ [global::System.ObsoleteAttribute]
2112
2122
  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2113
2123
  [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2114
2124
  public global::Lansweeper.Scanningconfig.V1.Agent Agent {
@@ -2121,6 +2131,7 @@ namespace Lansweeper.Scanningconfig.V1 {
2121
2131
 
2122
2132
  /// <summary>Field number for the "agentless" field.</summary>
2123
2133
  public const int AgentlessFieldNumber = 5;
2134
+ [global::System.ObsoleteAttribute]
2124
2135
  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2125
2136
  [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2126
2137
  public global::Lansweeper.Scanningconfig.V1.Agentless Agentless {
@@ -2131,6 +2142,30 @@ namespace Lansweeper.Scanningconfig.V1 {
2131
2142
  }
2132
2143
  }
2133
2144
 
2145
+ /// <summary>Field number for the "action_definition" field.</summary>
2146
+ public const int ActionDefinitionFieldNumber = 6;
2147
+ private global::Lansweeper.Scanningconfig.V1.ActionDefinition actionDefinition_;
2148
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2149
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2150
+ public global::Lansweeper.Scanningconfig.V1.ActionDefinition ActionDefinition {
2151
+ get { return actionDefinition_; }
2152
+ set {
2153
+ actionDefinition_ = value;
2154
+ }
2155
+ }
2156
+
2157
+ /// <summary>Field number for the "id" field.</summary>
2158
+ public const int IdFieldNumber = 7;
2159
+ private string id_ = "";
2160
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2161
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2162
+ public string Id {
2163
+ get { return id_; }
2164
+ set {
2165
+ id_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
2166
+ }
2167
+ }
2168
+
2134
2169
  private object definition_;
2135
2170
  /// <summary>Enum of possible cases for the "definition" oneof.</summary>
2136
2171
  public enum DefinitionOneofCase {
@@ -2172,6 +2207,8 @@ namespace Lansweeper.Scanningconfig.V1 {
2172
2207
  if(!credentials_.Equals(other.credentials_)) return false;
2173
2208
  if (!object.Equals(Agent, other.Agent)) return false;
2174
2209
  if (!object.Equals(Agentless, other.Agentless)) return false;
2210
+ if (!object.Equals(ActionDefinition, other.ActionDefinition)) return false;
2211
+ if (Id != other.Id) return false;
2175
2212
  if (DefinitionCase != other.DefinitionCase) return false;
2176
2213
  return Equals(_unknownFields, other._unknownFields);
2177
2214
  }
@@ -2185,6 +2222,8 @@ namespace Lansweeper.Scanningconfig.V1 {
2185
2222
  hash ^= credentials_.GetHashCode();
2186
2223
  if (definitionCase_ == DefinitionOneofCase.Agent) hash ^= Agent.GetHashCode();
2187
2224
  if (definitionCase_ == DefinitionOneofCase.Agentless) hash ^= Agentless.GetHashCode();
2225
+ if (actionDefinition_ != null) hash ^= ActionDefinition.GetHashCode();
2226
+ if (Id.Length != 0) hash ^= Id.GetHashCode();
2188
2227
  hash ^= (int) definitionCase_;
2189
2228
  if (_unknownFields != null) {
2190
2229
  hash ^= _unknownFields.GetHashCode();
@@ -2218,6 +2257,14 @@ namespace Lansweeper.Scanningconfig.V1 {
2218
2257
  output.WriteRawTag(42);
2219
2258
  output.WriteMessage(Agentless);
2220
2259
  }
2260
+ if (actionDefinition_ != null) {
2261
+ output.WriteRawTag(50);
2262
+ output.WriteMessage(ActionDefinition);
2263
+ }
2264
+ if (Id.Length != 0) {
2265
+ output.WriteRawTag(58);
2266
+ output.WriteString(Id);
2267
+ }
2221
2268
  if (_unknownFields != null) {
2222
2269
  _unknownFields.WriteTo(output);
2223
2270
  }
@@ -2242,6 +2289,14 @@ namespace Lansweeper.Scanningconfig.V1 {
2242
2289
  output.WriteRawTag(42);
2243
2290
  output.WriteMessage(Agentless);
2244
2291
  }
2292
+ if (actionDefinition_ != null) {
2293
+ output.WriteRawTag(50);
2294
+ output.WriteMessage(ActionDefinition);
2295
+ }
2296
+ if (Id.Length != 0) {
2297
+ output.WriteRawTag(58);
2298
+ output.WriteString(Id);
2299
+ }
2245
2300
  if (_unknownFields != null) {
2246
2301
  _unknownFields.WriteTo(ref output);
2247
2302
  }
@@ -2263,6 +2318,12 @@ namespace Lansweeper.Scanningconfig.V1 {
2263
2318
  if (definitionCase_ == DefinitionOneofCase.Agentless) {
2264
2319
  size += 1 + pb::CodedOutputStream.ComputeMessageSize(Agentless);
2265
2320
  }
2321
+ if (actionDefinition_ != null) {
2322
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(ActionDefinition);
2323
+ }
2324
+ if (Id.Length != 0) {
2325
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(Id);
2326
+ }
2266
2327
  if (_unknownFields != null) {
2267
2328
  size += _unknownFields.CalculateSize();
2268
2329
  }
@@ -2280,6 +2341,15 @@ namespace Lansweeper.Scanningconfig.V1 {
2280
2341
  ActionType = other.ActionType;
2281
2342
  }
2282
2343
  credentials_.Add(other.credentials_);
2344
+ if (other.actionDefinition_ != null) {
2345
+ if (actionDefinition_ == null) {
2346
+ ActionDefinition = new global::Lansweeper.Scanningconfig.V1.ActionDefinition();
2347
+ }
2348
+ ActionDefinition.MergeFrom(other.ActionDefinition);
2349
+ }
2350
+ if (other.Id.Length != 0) {
2351
+ Id = other.Id;
2352
+ }
2283
2353
  switch (other.DefinitionCase) {
2284
2354
  case DefinitionOneofCase.Agent:
2285
2355
  if (Agent == null) {
@@ -2340,6 +2410,17 @@ namespace Lansweeper.Scanningconfig.V1 {
2340
2410
  Agentless = subBuilder;
2341
2411
  break;
2342
2412
  }
2413
+ case 50: {
2414
+ if (actionDefinition_ == null) {
2415
+ ActionDefinition = new global::Lansweeper.Scanningconfig.V1.ActionDefinition();
2416
+ }
2417
+ input.ReadMessage(ActionDefinition);
2418
+ break;
2419
+ }
2420
+ case 58: {
2421
+ Id = input.ReadString();
2422
+ break;
2423
+ }
2343
2424
  }
2344
2425
  }
2345
2426
  #endif
@@ -2385,6 +2466,17 @@ namespace Lansweeper.Scanningconfig.V1 {
2385
2466
  Agentless = subBuilder;
2386
2467
  break;
2387
2468
  }
2469
+ case 50: {
2470
+ if (actionDefinition_ == null) {
2471
+ ActionDefinition = new global::Lansweeper.Scanningconfig.V1.ActionDefinition();
2472
+ }
2473
+ input.ReadMessage(ActionDefinition);
2474
+ break;
2475
+ }
2476
+ case 58: {
2477
+ Id = input.ReadString();
2478
+ break;
2479
+ }
2388
2480
  }
2389
2481
  }
2390
2482
  }
@@ -2584,6 +2676,250 @@ namespace Lansweeper.Scanningconfig.V1 {
2584
2676
 
2585
2677
  }
2586
2678
 
2679
+ public sealed partial class ActionDefinition : pb::IMessage<ActionDefinition>
2680
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2681
+ , pb::IBufferMessage
2682
+ #endif
2683
+ {
2684
+ private static readonly pb::MessageParser<ActionDefinition> _parser = new pb::MessageParser<ActionDefinition>(() => new ActionDefinition());
2685
+ private pb::UnknownFieldSet _unknownFields;
2686
+ private int _hasBits0;
2687
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2688
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2689
+ public static pb::MessageParser<ActionDefinition> Parser { get { return _parser; } }
2690
+
2691
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2692
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2693
+ public static pbr::MessageDescriptor Descriptor {
2694
+ get { return global::Lansweeper.Scanningconfig.V1.ScanningconfigReflection.Descriptor.MessageTypes[10]; }
2695
+ }
2696
+
2697
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2698
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2699
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
2700
+ get { return Descriptor; }
2701
+ }
2702
+
2703
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2704
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2705
+ public ActionDefinition() {
2706
+ OnConstruction();
2707
+ }
2708
+
2709
+ partial void OnConstruction();
2710
+
2711
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2712
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2713
+ public ActionDefinition(ActionDefinition other) : this() {
2714
+ _hasBits0 = other._hasBits0;
2715
+ scanFocus_ = other.scanFocus_;
2716
+ targets_ = other.targets_.Clone();
2717
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
2718
+ }
2719
+
2720
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2721
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2722
+ public ActionDefinition Clone() {
2723
+ return new ActionDefinition(this);
2724
+ }
2725
+
2726
+ /// <summary>Field number for the "scan_focus" field.</summary>
2727
+ public const int ScanFocusFieldNumber = 1;
2728
+ private global::Lansweeper.Scanningconfig.V1.ActionDefinition.Types.ScanFocus scanFocus_;
2729
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2730
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2731
+ public global::Lansweeper.Scanningconfig.V1.ActionDefinition.Types.ScanFocus ScanFocus {
2732
+ get { if ((_hasBits0 & 1) != 0) { return scanFocus_; } else { return global::Lansweeper.Scanningconfig.V1.ActionDefinition.Types.ScanFocus.All; } }
2733
+ set {
2734
+ _hasBits0 |= 1;
2735
+ scanFocus_ = value;
2736
+ }
2737
+ }
2738
+ /// <summary>Gets whether the "scan_focus" field is set</summary>
2739
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2740
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2741
+ public bool HasScanFocus {
2742
+ get { return (_hasBits0 & 1) != 0; }
2743
+ }
2744
+ /// <summary>Clears the value of the "scan_focus" field</summary>
2745
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2746
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2747
+ public void ClearScanFocus() {
2748
+ _hasBits0 &= ~1;
2749
+ }
2750
+
2751
+ /// <summary>Field number for the "targets" field.</summary>
2752
+ public const int TargetsFieldNumber = 2;
2753
+ private static readonly pb::FieldCodec<string> _repeated_targets_codec
2754
+ = pb::FieldCodec.ForString(18);
2755
+ private readonly pbc::RepeatedField<string> targets_ = new pbc::RepeatedField<string>();
2756
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2757
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2758
+ public pbc::RepeatedField<string> Targets {
2759
+ get { return targets_; }
2760
+ }
2761
+
2762
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2763
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2764
+ public override bool Equals(object other) {
2765
+ return Equals(other as ActionDefinition);
2766
+ }
2767
+
2768
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2769
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2770
+ public bool Equals(ActionDefinition other) {
2771
+ if (ReferenceEquals(other, null)) {
2772
+ return false;
2773
+ }
2774
+ if (ReferenceEquals(other, this)) {
2775
+ return true;
2776
+ }
2777
+ if (ScanFocus != other.ScanFocus) return false;
2778
+ if(!targets_.Equals(other.targets_)) return false;
2779
+ return Equals(_unknownFields, other._unknownFields);
2780
+ }
2781
+
2782
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2783
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2784
+ public override int GetHashCode() {
2785
+ int hash = 1;
2786
+ if (HasScanFocus) hash ^= ScanFocus.GetHashCode();
2787
+ hash ^= targets_.GetHashCode();
2788
+ if (_unknownFields != null) {
2789
+ hash ^= _unknownFields.GetHashCode();
2790
+ }
2791
+ return hash;
2792
+ }
2793
+
2794
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2795
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2796
+ public override string ToString() {
2797
+ return pb::JsonFormatter.ToDiagnosticString(this);
2798
+ }
2799
+
2800
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2801
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2802
+ public void WriteTo(pb::CodedOutputStream output) {
2803
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2804
+ output.WriteRawMessage(this);
2805
+ #else
2806
+ if (HasScanFocus) {
2807
+ output.WriteRawTag(8);
2808
+ output.WriteEnum((int) ScanFocus);
2809
+ }
2810
+ targets_.WriteTo(output, _repeated_targets_codec);
2811
+ if (_unknownFields != null) {
2812
+ _unknownFields.WriteTo(output);
2813
+ }
2814
+ #endif
2815
+ }
2816
+
2817
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2818
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2819
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2820
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
2821
+ if (HasScanFocus) {
2822
+ output.WriteRawTag(8);
2823
+ output.WriteEnum((int) ScanFocus);
2824
+ }
2825
+ targets_.WriteTo(ref output, _repeated_targets_codec);
2826
+ if (_unknownFields != null) {
2827
+ _unknownFields.WriteTo(ref output);
2828
+ }
2829
+ }
2830
+ #endif
2831
+
2832
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2833
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2834
+ public int CalculateSize() {
2835
+ int size = 0;
2836
+ if (HasScanFocus) {
2837
+ size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ScanFocus);
2838
+ }
2839
+ size += targets_.CalculateSize(_repeated_targets_codec);
2840
+ if (_unknownFields != null) {
2841
+ size += _unknownFields.CalculateSize();
2842
+ }
2843
+ return size;
2844
+ }
2845
+
2846
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2847
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2848
+ public void MergeFrom(ActionDefinition other) {
2849
+ if (other == null) {
2850
+ return;
2851
+ }
2852
+ if (other.HasScanFocus) {
2853
+ ScanFocus = other.ScanFocus;
2854
+ }
2855
+ targets_.Add(other.targets_);
2856
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
2857
+ }
2858
+
2859
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2860
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2861
+ public void MergeFrom(pb::CodedInputStream input) {
2862
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2863
+ input.ReadRawMessage(this);
2864
+ #else
2865
+ uint tag;
2866
+ while ((tag = input.ReadTag()) != 0) {
2867
+ switch(tag) {
2868
+ default:
2869
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
2870
+ break;
2871
+ case 8: {
2872
+ ScanFocus = (global::Lansweeper.Scanningconfig.V1.ActionDefinition.Types.ScanFocus) input.ReadEnum();
2873
+ break;
2874
+ }
2875
+ case 18: {
2876
+ targets_.AddEntriesFrom(input, _repeated_targets_codec);
2877
+ break;
2878
+ }
2879
+ }
2880
+ }
2881
+ #endif
2882
+ }
2883
+
2884
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2885
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2886
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2887
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
2888
+ uint tag;
2889
+ while ((tag = input.ReadTag()) != 0) {
2890
+ switch(tag) {
2891
+ default:
2892
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
2893
+ break;
2894
+ case 8: {
2895
+ ScanFocus = (global::Lansweeper.Scanningconfig.V1.ActionDefinition.Types.ScanFocus) input.ReadEnum();
2896
+ break;
2897
+ }
2898
+ case 18: {
2899
+ targets_.AddEntriesFrom(ref input, _repeated_targets_codec);
2900
+ break;
2901
+ }
2902
+ }
2903
+ }
2904
+ }
2905
+ #endif
2906
+
2907
+ #region Nested types
2908
+ /// <summary>Container for nested types declared in the ActionDefinition message type.</summary>
2909
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2910
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2911
+ public static partial class Types {
2912
+ public enum ScanFocus {
2913
+ [pbr::OriginalName("ALL")] All = 0,
2914
+ [pbr::OriginalName("USERS")] Users = 1,
2915
+ [pbr::OriginalName("INVENTORY")] Inventory = 2,
2916
+ }
2917
+
2918
+ }
2919
+ #endregion
2920
+
2921
+ }
2922
+
2587
2923
  public sealed partial class Agent : pb::IMessage<Agent>
2588
2924
  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2589
2925
  , pb::IBufferMessage
@@ -2598,7 +2934,7 @@ namespace Lansweeper.Scanningconfig.V1 {
2598
2934
  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2599
2935
  [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2600
2936
  public static pbr::MessageDescriptor Descriptor {
2601
- get { return global::Lansweeper.Scanningconfig.V1.ScanningconfigReflection.Descriptor.MessageTypes[10]; }
2937
+ get { return global::Lansweeper.Scanningconfig.V1.ScanningconfigReflection.Descriptor.MessageTypes[11]; }
2602
2938
  }
2603
2939
 
2604
2940
  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
@@ -2801,7 +3137,7 @@ namespace Lansweeper.Scanningconfig.V1 {
2801
3137
  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2802
3138
  [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2803
3139
  public static pbr::MessageDescriptor Descriptor {
2804
- get { return global::Lansweeper.Scanningconfig.V1.ScanningconfigReflection.Descriptor.MessageTypes[11]; }
3140
+ get { return global::Lansweeper.Scanningconfig.V1.ScanningconfigReflection.Descriptor.MessageTypes[12]; }
2805
3141
  }
2806
3142
 
2807
3143
  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
@@ -5,7 +5,7 @@
5
5
  },
6
6
  "projects": {
7
7
  "/home/circleci/project/packages/scanningconfig/grpc/Lansweeper.ScanningConfig.GRPC.csproj": {
8
- "version": "0.1.4",
8
+ "version": "0.1.6",
9
9
  "restore": {
10
10
  "projectUniqueName": "/home/circleci/project/packages/scanningconfig/grpc/Lansweeper.ScanningConfig.GRPC.csproj",
11
11
  "projectName": "Lansweeper.ScanningConfig.GRPC",
@@ -69,7 +69,7 @@
69
69
  "privateAssets": "all"
70
70
  }
71
71
  },
72
- "runtimeIdentifierGraphPath": "/usr/lib/dotnet/sdk/6.0.128/RuntimeIdentifierGraph.json"
72
+ "runtimeIdentifierGraphPath": "/usr/lib/dotnet/sdk/6.0.132/RuntimeIdentifierGraph.json"
73
73
  }
74
74
  }
75
75
  }
@@ -7,7 +7,7 @@
7
7
  <NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">/home/circleci/.nuget/packages/</NuGetPackageRoot>
8
8
  <NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">/home/circleci/.nuget/packages/</NuGetPackageFolders>
9
9
  <NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
10
- <NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.0.5</NuGetToolVersion>
10
+ <NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.0.6</NuGetToolVersion>
11
11
  </PropertyGroup>
12
12
  <ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
13
13
  <SourceRoot Include="/home/circleci/.nuget/packages/" />
@@ -235,7 +235,7 @@
235
235
  "/home/circleci/.nuget/packages/": {}
236
236
  },
237
237
  "project": {
238
- "version": "0.1.4",
238
+ "version": "0.1.6",
239
239
  "restore": {
240
240
  "projectUniqueName": "/home/circleci/project/packages/scanningconfig/grpc/Lansweeper.ScanningConfig.GRPC.csproj",
241
241
  "projectName": "Lansweeper.ScanningConfig.GRPC",
@@ -299,7 +299,7 @@
299
299
  "privateAssets": "all"
300
300
  }
301
301
  },
302
- "runtimeIdentifierGraphPath": "/usr/lib/dotnet/sdk/6.0.128/RuntimeIdentifierGraph.json"
302
+ "runtimeIdentifierGraphPath": "/usr/lib/dotnet/sdk/6.0.132/RuntimeIdentifierGraph.json"
303
303
  }
304
304
  }
305
305
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 2,
3
- "dgSpecHash": "PIOKyeIENmeAukxmxVpoN6/6H3rj5lfo1MEHKCu9xFyP+D3lNaFKLOhAdJLkFXziTkEYXx2IgLUDCV4X3B7ZOw==",
3
+ "dgSpecHash": "vHQYluIVp843rK2ArJo7f7bfu8xRZzw+5xJc/fbQwvrMOSfOds9lrXM1RyoXoM+o3CAljZhB0c6uLu0RmQHB4w==",
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.1.5",
3
+ "version": "0.1.7",
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": "6e9a2eb0f9caadb600b9840ec1fe90c82f217498"
15
+ "gitHead": "31f330f232d3ccc4e1818e35b70eba7bed7ffa62"
16
16
  }
@@ -69,16 +69,30 @@ message Action{
69
69
  repeated Trigger triggers = 1;
70
70
  ActionType action_type = 2;
71
71
  repeated Credential credentials = 3;
72
- oneof definition {
73
- Agent agent = 4;
74
- Agentless agentless = 5;
72
+ oneof definition {
73
+ Agent agent = 4 [deprecated = true];
74
+ Agentless agentless = 5 [deprecated = true];
75
75
  }
76
+ ActionDefinition action_definition = 6;
77
+ string id = 7;
76
78
  }
77
79
 
78
80
  message Agentless{
79
81
  repeated string targets = 1;
80
82
  }
81
83
 
84
+ message ActionDefinition
85
+ {
86
+ enum ScanFocus {
87
+ ALL = 0;
88
+ USERS = 1;
89
+ INVENTORY = 2;
90
+ }
91
+
92
+ optional ScanFocus scan_focus = 1;
93
+ repeated string targets = 2;
94
+ }
95
+
82
96
  message Agent{
83
97
  enum ScanFocus {
84
98
  ALL = 0;