@lansweeper/scanningconfig-grpc 0.1.5 → 0.1.6

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.
@@ -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.5")]
18
+ [assembly: System.Reflection.AssemblyInformationalVersionAttribute("0.1.5")]
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.5.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
+ 24deb2b46f75010745195bd3c0a230a6d780f0c4
@@ -48,27 +48,33 @@ namespace Lansweeper.Scanningconfig.V1 {
48
48
  "bGFuc3dlZXBlci5zY2FubmluZ2NvbmZpZy52MS5OZXR3b3JrVmlzaWJpbGl0",
49
49
  "eUgCiAEBQhUKE19hc3NldF9yYWRhcl9jb25maWdCFQoTX2F1dG9fdXBkYXRl",
50
50
  "X2NvbmZpZ0IcChpfbmV0d29ya192aXNpYmlsaXR5X2NvbmZpZyIqCgdUcmln",
51
- "Z2VyEhEKCWNyb25fZXhwchgBIAEoCRIMCgRuYW1lGAIgASgJIoEDCgZBY3Rp",
51
+ "Z2VyEhEKCWNyb25fZXhwchgBIAEoCRIMCgRuYW1lGAIgASgJItQDCgZBY3Rp",
52
52
  "b24SNwoIdHJpZ2dlcnMYASADKAsyJS5sYW5zd2VlcGVyLnNjYW5uaW5nY29u",
53
53
  "ZmlnLnYxLlRyaWdnZXISRAoLYWN0aW9uX3R5cGUYAiABKA4yLy5sYW5zd2V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
+ "bnRpYWwSRQoEdHlwZRgBIAEoDjI3LmxhbnN3ZWVwZXIuc2Nhbm5pbmdjb25m",
71
+ "aWcudjEuQ3JlZGVudGlhbC5DcmVkZW50aWFsVHlwZRIKCgJpZBgCIAEoCSIh",
72
+ "Cg5DcmVkZW50aWFsVHlwZRIPCgtVTlNQRUNJRklFRBAAMrgBChVTY2Fubmlu",
73
+ "Z0NvbmZpZ1NlcnZpY2USngEKGUdldENvbmZpZ3VyYXRpb25zQnlTb3VyY2US",
74
+ "Pi5sYW5zd2VlcGVyLnNjYW5uaW5nY29uZmlnLnYxLkdldENvbmZpZ3VyYXRp",
75
+ "b25zQnlTb3VyY2VSZXF1ZXN0Gj8ubGFuc3dlZXBlci5zY2FubmluZ2NvbmZp",
76
+ "Zy52MS5HZXRDb25maWd1cmF0aW9uc0J5U291cmNlUmVzcG9uc2UiAEIQWg4u",
77
+ "L2dlbmVyYXRlZC1nb2IGcHJvdG8z"));
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" }, 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,7 @@ 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;
2058
2066
  switch (other.DefinitionCase) {
2059
2067
  case DefinitionOneofCase.Agent:
2060
2068
  Agent = other.Agent.Clone();
@@ -2109,6 +2117,7 @@ namespace Lansweeper.Scanningconfig.V1 {
2109
2117
 
2110
2118
  /// <summary>Field number for the "agent" field.</summary>
2111
2119
  public const int AgentFieldNumber = 4;
2120
+ [global::System.ObsoleteAttribute]
2112
2121
  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2113
2122
  [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2114
2123
  public global::Lansweeper.Scanningconfig.V1.Agent Agent {
@@ -2121,6 +2130,7 @@ namespace Lansweeper.Scanningconfig.V1 {
2121
2130
 
2122
2131
  /// <summary>Field number for the "agentless" field.</summary>
2123
2132
  public const int AgentlessFieldNumber = 5;
2133
+ [global::System.ObsoleteAttribute]
2124
2134
  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2125
2135
  [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2126
2136
  public global::Lansweeper.Scanningconfig.V1.Agentless Agentless {
@@ -2131,6 +2141,18 @@ namespace Lansweeper.Scanningconfig.V1 {
2131
2141
  }
2132
2142
  }
2133
2143
 
2144
+ /// <summary>Field number for the "action_definition" field.</summary>
2145
+ public const int ActionDefinitionFieldNumber = 6;
2146
+ private global::Lansweeper.Scanningconfig.V1.ActionDefinition actionDefinition_;
2147
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2148
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2149
+ public global::Lansweeper.Scanningconfig.V1.ActionDefinition ActionDefinition {
2150
+ get { return actionDefinition_; }
2151
+ set {
2152
+ actionDefinition_ = value;
2153
+ }
2154
+ }
2155
+
2134
2156
  private object definition_;
2135
2157
  /// <summary>Enum of possible cases for the "definition" oneof.</summary>
2136
2158
  public enum DefinitionOneofCase {
@@ -2172,6 +2194,7 @@ namespace Lansweeper.Scanningconfig.V1 {
2172
2194
  if(!credentials_.Equals(other.credentials_)) return false;
2173
2195
  if (!object.Equals(Agent, other.Agent)) return false;
2174
2196
  if (!object.Equals(Agentless, other.Agentless)) return false;
2197
+ if (!object.Equals(ActionDefinition, other.ActionDefinition)) return false;
2175
2198
  if (DefinitionCase != other.DefinitionCase) return false;
2176
2199
  return Equals(_unknownFields, other._unknownFields);
2177
2200
  }
@@ -2185,6 +2208,7 @@ namespace Lansweeper.Scanningconfig.V1 {
2185
2208
  hash ^= credentials_.GetHashCode();
2186
2209
  if (definitionCase_ == DefinitionOneofCase.Agent) hash ^= Agent.GetHashCode();
2187
2210
  if (definitionCase_ == DefinitionOneofCase.Agentless) hash ^= Agentless.GetHashCode();
2211
+ if (actionDefinition_ != null) hash ^= ActionDefinition.GetHashCode();
2188
2212
  hash ^= (int) definitionCase_;
2189
2213
  if (_unknownFields != null) {
2190
2214
  hash ^= _unknownFields.GetHashCode();
@@ -2218,6 +2242,10 @@ namespace Lansweeper.Scanningconfig.V1 {
2218
2242
  output.WriteRawTag(42);
2219
2243
  output.WriteMessage(Agentless);
2220
2244
  }
2245
+ if (actionDefinition_ != null) {
2246
+ output.WriteRawTag(50);
2247
+ output.WriteMessage(ActionDefinition);
2248
+ }
2221
2249
  if (_unknownFields != null) {
2222
2250
  _unknownFields.WriteTo(output);
2223
2251
  }
@@ -2242,6 +2270,10 @@ namespace Lansweeper.Scanningconfig.V1 {
2242
2270
  output.WriteRawTag(42);
2243
2271
  output.WriteMessage(Agentless);
2244
2272
  }
2273
+ if (actionDefinition_ != null) {
2274
+ output.WriteRawTag(50);
2275
+ output.WriteMessage(ActionDefinition);
2276
+ }
2245
2277
  if (_unknownFields != null) {
2246
2278
  _unknownFields.WriteTo(ref output);
2247
2279
  }
@@ -2263,6 +2295,9 @@ namespace Lansweeper.Scanningconfig.V1 {
2263
2295
  if (definitionCase_ == DefinitionOneofCase.Agentless) {
2264
2296
  size += 1 + pb::CodedOutputStream.ComputeMessageSize(Agentless);
2265
2297
  }
2298
+ if (actionDefinition_ != null) {
2299
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(ActionDefinition);
2300
+ }
2266
2301
  if (_unknownFields != null) {
2267
2302
  size += _unknownFields.CalculateSize();
2268
2303
  }
@@ -2280,6 +2315,12 @@ namespace Lansweeper.Scanningconfig.V1 {
2280
2315
  ActionType = other.ActionType;
2281
2316
  }
2282
2317
  credentials_.Add(other.credentials_);
2318
+ if (other.actionDefinition_ != null) {
2319
+ if (actionDefinition_ == null) {
2320
+ ActionDefinition = new global::Lansweeper.Scanningconfig.V1.ActionDefinition();
2321
+ }
2322
+ ActionDefinition.MergeFrom(other.ActionDefinition);
2323
+ }
2283
2324
  switch (other.DefinitionCase) {
2284
2325
  case DefinitionOneofCase.Agent:
2285
2326
  if (Agent == null) {
@@ -2340,6 +2381,13 @@ namespace Lansweeper.Scanningconfig.V1 {
2340
2381
  Agentless = subBuilder;
2341
2382
  break;
2342
2383
  }
2384
+ case 50: {
2385
+ if (actionDefinition_ == null) {
2386
+ ActionDefinition = new global::Lansweeper.Scanningconfig.V1.ActionDefinition();
2387
+ }
2388
+ input.ReadMessage(ActionDefinition);
2389
+ break;
2390
+ }
2343
2391
  }
2344
2392
  }
2345
2393
  #endif
@@ -2385,6 +2433,13 @@ namespace Lansweeper.Scanningconfig.V1 {
2385
2433
  Agentless = subBuilder;
2386
2434
  break;
2387
2435
  }
2436
+ case 50: {
2437
+ if (actionDefinition_ == null) {
2438
+ ActionDefinition = new global::Lansweeper.Scanningconfig.V1.ActionDefinition();
2439
+ }
2440
+ input.ReadMessage(ActionDefinition);
2441
+ break;
2442
+ }
2388
2443
  }
2389
2444
  }
2390
2445
  }
@@ -2584,6 +2639,250 @@ namespace Lansweeper.Scanningconfig.V1 {
2584
2639
 
2585
2640
  }
2586
2641
 
2642
+ public sealed partial class ActionDefinition : pb::IMessage<ActionDefinition>
2643
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2644
+ , pb::IBufferMessage
2645
+ #endif
2646
+ {
2647
+ private static readonly pb::MessageParser<ActionDefinition> _parser = new pb::MessageParser<ActionDefinition>(() => new ActionDefinition());
2648
+ private pb::UnknownFieldSet _unknownFields;
2649
+ private int _hasBits0;
2650
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2651
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2652
+ public static pb::MessageParser<ActionDefinition> Parser { get { return _parser; } }
2653
+
2654
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2655
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2656
+ public static pbr::MessageDescriptor Descriptor {
2657
+ get { return global::Lansweeper.Scanningconfig.V1.ScanningconfigReflection.Descriptor.MessageTypes[10]; }
2658
+ }
2659
+
2660
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2661
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2662
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
2663
+ get { return Descriptor; }
2664
+ }
2665
+
2666
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2667
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2668
+ public ActionDefinition() {
2669
+ OnConstruction();
2670
+ }
2671
+
2672
+ partial void OnConstruction();
2673
+
2674
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2675
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2676
+ public ActionDefinition(ActionDefinition other) : this() {
2677
+ _hasBits0 = other._hasBits0;
2678
+ scanFocus_ = other.scanFocus_;
2679
+ targets_ = other.targets_.Clone();
2680
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
2681
+ }
2682
+
2683
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2684
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2685
+ public ActionDefinition Clone() {
2686
+ return new ActionDefinition(this);
2687
+ }
2688
+
2689
+ /// <summary>Field number for the "scan_focus" field.</summary>
2690
+ public const int ScanFocusFieldNumber = 1;
2691
+ private global::Lansweeper.Scanningconfig.V1.ActionDefinition.Types.ScanFocus scanFocus_;
2692
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2693
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2694
+ public global::Lansweeper.Scanningconfig.V1.ActionDefinition.Types.ScanFocus ScanFocus {
2695
+ get { if ((_hasBits0 & 1) != 0) { return scanFocus_; } else { return global::Lansweeper.Scanningconfig.V1.ActionDefinition.Types.ScanFocus.All; } }
2696
+ set {
2697
+ _hasBits0 |= 1;
2698
+ scanFocus_ = value;
2699
+ }
2700
+ }
2701
+ /// <summary>Gets whether the "scan_focus" field is set</summary>
2702
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2703
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2704
+ public bool HasScanFocus {
2705
+ get { return (_hasBits0 & 1) != 0; }
2706
+ }
2707
+ /// <summary>Clears the value of the "scan_focus" field</summary>
2708
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2709
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2710
+ public void ClearScanFocus() {
2711
+ _hasBits0 &= ~1;
2712
+ }
2713
+
2714
+ /// <summary>Field number for the "targets" field.</summary>
2715
+ public const int TargetsFieldNumber = 2;
2716
+ private static readonly pb::FieldCodec<string> _repeated_targets_codec
2717
+ = pb::FieldCodec.ForString(18);
2718
+ private readonly pbc::RepeatedField<string> targets_ = new pbc::RepeatedField<string>();
2719
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2720
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2721
+ public pbc::RepeatedField<string> Targets {
2722
+ get { return targets_; }
2723
+ }
2724
+
2725
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2726
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2727
+ public override bool Equals(object other) {
2728
+ return Equals(other as ActionDefinition);
2729
+ }
2730
+
2731
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2732
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2733
+ public bool Equals(ActionDefinition other) {
2734
+ if (ReferenceEquals(other, null)) {
2735
+ return false;
2736
+ }
2737
+ if (ReferenceEquals(other, this)) {
2738
+ return true;
2739
+ }
2740
+ if (ScanFocus != other.ScanFocus) return false;
2741
+ if(!targets_.Equals(other.targets_)) return false;
2742
+ return Equals(_unknownFields, other._unknownFields);
2743
+ }
2744
+
2745
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2746
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2747
+ public override int GetHashCode() {
2748
+ int hash = 1;
2749
+ if (HasScanFocus) hash ^= ScanFocus.GetHashCode();
2750
+ hash ^= targets_.GetHashCode();
2751
+ if (_unknownFields != null) {
2752
+ hash ^= _unknownFields.GetHashCode();
2753
+ }
2754
+ return hash;
2755
+ }
2756
+
2757
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2758
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2759
+ public override string ToString() {
2760
+ return pb::JsonFormatter.ToDiagnosticString(this);
2761
+ }
2762
+
2763
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2764
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2765
+ public void WriteTo(pb::CodedOutputStream output) {
2766
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2767
+ output.WriteRawMessage(this);
2768
+ #else
2769
+ if (HasScanFocus) {
2770
+ output.WriteRawTag(8);
2771
+ output.WriteEnum((int) ScanFocus);
2772
+ }
2773
+ targets_.WriteTo(output, _repeated_targets_codec);
2774
+ if (_unknownFields != null) {
2775
+ _unknownFields.WriteTo(output);
2776
+ }
2777
+ #endif
2778
+ }
2779
+
2780
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2781
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2782
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2783
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
2784
+ if (HasScanFocus) {
2785
+ output.WriteRawTag(8);
2786
+ output.WriteEnum((int) ScanFocus);
2787
+ }
2788
+ targets_.WriteTo(ref output, _repeated_targets_codec);
2789
+ if (_unknownFields != null) {
2790
+ _unknownFields.WriteTo(ref output);
2791
+ }
2792
+ }
2793
+ #endif
2794
+
2795
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2796
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2797
+ public int CalculateSize() {
2798
+ int size = 0;
2799
+ if (HasScanFocus) {
2800
+ size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ScanFocus);
2801
+ }
2802
+ size += targets_.CalculateSize(_repeated_targets_codec);
2803
+ if (_unknownFields != null) {
2804
+ size += _unknownFields.CalculateSize();
2805
+ }
2806
+ return size;
2807
+ }
2808
+
2809
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2810
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2811
+ public void MergeFrom(ActionDefinition other) {
2812
+ if (other == null) {
2813
+ return;
2814
+ }
2815
+ if (other.HasScanFocus) {
2816
+ ScanFocus = other.ScanFocus;
2817
+ }
2818
+ targets_.Add(other.targets_);
2819
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
2820
+ }
2821
+
2822
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2823
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2824
+ public void MergeFrom(pb::CodedInputStream input) {
2825
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2826
+ input.ReadRawMessage(this);
2827
+ #else
2828
+ uint tag;
2829
+ while ((tag = input.ReadTag()) != 0) {
2830
+ switch(tag) {
2831
+ default:
2832
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
2833
+ break;
2834
+ case 8: {
2835
+ ScanFocus = (global::Lansweeper.Scanningconfig.V1.ActionDefinition.Types.ScanFocus) input.ReadEnum();
2836
+ break;
2837
+ }
2838
+ case 18: {
2839
+ targets_.AddEntriesFrom(input, _repeated_targets_codec);
2840
+ break;
2841
+ }
2842
+ }
2843
+ }
2844
+ #endif
2845
+ }
2846
+
2847
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2848
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2849
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2850
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
2851
+ uint tag;
2852
+ while ((tag = input.ReadTag()) != 0) {
2853
+ switch(tag) {
2854
+ default:
2855
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
2856
+ break;
2857
+ case 8: {
2858
+ ScanFocus = (global::Lansweeper.Scanningconfig.V1.ActionDefinition.Types.ScanFocus) input.ReadEnum();
2859
+ break;
2860
+ }
2861
+ case 18: {
2862
+ targets_.AddEntriesFrom(ref input, _repeated_targets_codec);
2863
+ break;
2864
+ }
2865
+ }
2866
+ }
2867
+ }
2868
+ #endif
2869
+
2870
+ #region Nested types
2871
+ /// <summary>Container for nested types declared in the ActionDefinition message type.</summary>
2872
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2873
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2874
+ public static partial class Types {
2875
+ public enum ScanFocus {
2876
+ [pbr::OriginalName("ALL")] All = 0,
2877
+ [pbr::OriginalName("USERS")] Users = 1,
2878
+ [pbr::OriginalName("INVENTORY")] Inventory = 2,
2879
+ }
2880
+
2881
+ }
2882
+ #endregion
2883
+
2884
+ }
2885
+
2587
2886
  public sealed partial class Agent : pb::IMessage<Agent>
2588
2887
  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2589
2888
  , pb::IBufferMessage
@@ -2598,7 +2897,7 @@ namespace Lansweeper.Scanningconfig.V1 {
2598
2897
  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2599
2898
  [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2600
2899
  public static pbr::MessageDescriptor Descriptor {
2601
- get { return global::Lansweeper.Scanningconfig.V1.ScanningconfigReflection.Descriptor.MessageTypes[10]; }
2900
+ get { return global::Lansweeper.Scanningconfig.V1.ScanningconfigReflection.Descriptor.MessageTypes[11]; }
2602
2901
  }
2603
2902
 
2604
2903
  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
@@ -2801,7 +3100,7 @@ namespace Lansweeper.Scanningconfig.V1 {
2801
3100
  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2802
3101
  [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2803
3102
  public static pbr::MessageDescriptor Descriptor {
2804
- get { return global::Lansweeper.Scanningconfig.V1.ScanningconfigReflection.Descriptor.MessageTypes[11]; }
3103
+ get { return global::Lansweeper.Scanningconfig.V1.ScanningconfigReflection.Descriptor.MessageTypes[12]; }
2805
3104
  }
2806
3105
 
2807
3106
  [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.5",
9
9
  "restore": {
10
10
  "projectUniqueName": "/home/circleci/project/packages/scanningconfig/grpc/Lansweeper.ScanningConfig.GRPC.csproj",
11
11
  "projectName": "Lansweeper.ScanningConfig.GRPC",
@@ -235,7 +235,7 @@
235
235
  "/home/circleci/.nuget/packages/": {}
236
236
  },
237
237
  "project": {
238
- "version": "0.1.4",
238
+ "version": "0.1.5",
239
239
  "restore": {
240
240
  "projectUniqueName": "/home/circleci/project/packages/scanningconfig/grpc/Lansweeper.ScanningConfig.GRPC.csproj",
241
241
  "projectName": "Lansweeper.ScanningConfig.GRPC",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 2,
3
- "dgSpecHash": "PIOKyeIENmeAukxmxVpoN6/6H3rj5lfo1MEHKCu9xFyP+D3lNaFKLOhAdJLkFXziTkEYXx2IgLUDCV4X3B7ZOw==",
3
+ "dgSpecHash": "2dfbd07ZufySkrQW5/CNsxUsxD+TGJeVykUcua88fcC7bT4sJ0ZCqW+HHEzKQ06plbBx/Z4h6Boh/9KDLeuE5w==",
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.6",
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": "8f3f507f128ed6b03b51b967287c3ec7b8c2edb7"
16
16
  }
@@ -69,16 +69,29 @@ 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;
76
77
  }
77
78
 
78
79
  message Agentless{
79
80
  repeated string targets = 1;
80
81
  }
81
82
 
83
+ message ActionDefinition
84
+ {
85
+ enum ScanFocus {
86
+ ALL = 0;
87
+ USERS = 1;
88
+ INVENTORY = 2;
89
+ }
90
+
91
+ optional ScanFocus scan_focus = 1;
92
+ repeated string targets = 2;
93
+ }
94
+
82
95
  message Agent{
83
96
  enum ScanFocus {
84
97
  ALL = 0;