@lansweeper/data-platform-outbound-grpc 0.1.21 → 0.1.23

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/java.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.1.20",
2
+ "version": "0.1.22",
3
3
  "package": "com.lansweeper.dp.outbound.v1",
4
4
  "service": true
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lansweeper/data-platform-outbound-grpc",
3
- "version": "0.1.21",
3
+ "version": "0.1.23",
4
4
  "description": "Data Platform Outbound gRPC",
5
5
  "main": "gen-proto/index.js",
6
6
  "types": "gen-proto/index.d.ts",
@@ -9,5 +9,5 @@
9
9
  "@grpc/grpc-js": "^1.5.1",
10
10
  "google-protobuf": "^3.17.0"
11
11
  },
12
- "gitHead": "df7a15e5fd5cb5e0cfd2afe10933fd9fbc006bfd"
12
+ "gitHead": "ec63720fe564ec754d5022cf5979a5fd88d5b3a9"
13
13
  }
@@ -12,6 +12,7 @@ option go_package = "./generated-go";
12
12
  option java_multiple_files = true;
13
13
 
14
14
  import "google/protobuf/timestamp.proto";
15
+ import "google/protobuf/any.proto";
15
16
 
16
17
  // ----- Service Part ------
17
18
 
@@ -132,6 +133,10 @@ message Asset {
132
133
 
133
134
  repeated Processor processor = 15;
134
135
 
136
+ optional OtModule ot_module = 16; // OT specific module info when asset type is 'OT'
137
+
138
+ optional CloudEntity cloud = 17;
139
+
135
140
  // Reconciliation future
136
141
  //string entry_state = 2; // GOLDEN | ALIAS
137
142
  //string master_type = 3; // NULL | ENGINE | USER
@@ -141,6 +146,49 @@ message Asset {
141
146
 
142
147
  }
143
148
 
149
+ /**
150
+ * Cloud entity coming from CDK scanner.
151
+ * This could be extended later on to become more than a carrier of opaque info.
152
+ * I.e. the any object contains objects as defined in discovery_cloud.proto
153
+ * Only objects needing to be mapped into common/core asset fields are handled
154
+ * the rest is fast-forwarded ahead to the chain to allow us to avoid useless
155
+ * early heavy mapping and post-pone it only where/when it's needed.
156
+ */
157
+ message CloudEntity {
158
+ google.protobuf.Any body = 1;
159
+ }
160
+
161
+ /**
162
+ * OT module/card specific info.
163
+ * Information about belonging rack and:
164
+ * - if it's main module, reference to all sub-modules
165
+ * - if it's sub-module, reference to parent main
166
+ * HW info: in HW standard section.
167
+ * OS info: in OS standard section.
168
+ */
169
+ message OtModule {
170
+ optional EntityPath parent_id = 1; // parent module
171
+ repeated EntityPath sub_module_id = 2;
172
+
173
+ int32 rack_number = 3;
174
+ string rack_name = 4;
175
+ int32 rack_size = 5;
176
+ int32 slot = 6;
177
+ int32 slot_width = 7;
178
+
179
+ bool is_main_module = 8;
180
+
181
+ optional string component_type = 9;
182
+
183
+ optional string part_number = 10;
184
+
185
+ repeated OtModuleExtInfo ext_info = 11;
186
+ }
187
+
188
+ message OtModuleExtInfo {
189
+ string key = 1;
190
+ string value = 2;
191
+ }
144
192
 
145
193
  /**
146
194
  * Asset Type enables customers to manage the settings for a
@@ -153,6 +201,8 @@ message AssetType {
153
201
  int32 ls_id = 3;
154
202
  // Fing Type
155
203
  optional string fing_type = 2;
204
+
205
+ optional string sub_type = 4; // sub type for OT and CDK
156
206
  }
157
207
 
158
208
  /**
@@ -221,6 +271,7 @@ message OperatingSystemInfo {
221
271
 
222
272
  oneof spec {
223
273
  WindowsOperatingSystemInfo windows = 32;
274
+ OtFirmwareInfo ot = 33;
224
275
  }
225
276
  }
226
277
 
@@ -243,6 +294,10 @@ message OperatingSystemPatch {
243
294
 
244
295
  }
245
296
 
297
+ message OtFirmwareInfo {
298
+ string firmware = 1;
299
+ }
300
+
246
301
  message WindowsOperatingSystemInfo {
247
302
  optional string version = 1;
248
303
  optional int32 service_pack = 2;