@lansweeper/discovery-cloud-proto 0.0.4 → 0.0.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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@lansweeper/discovery-cloud-proto",
3
3
  "description": "Discovery Public Cloud (Azure,AWS,GCP) proto",
4
- "version": "0.0.4",
4
+ "version": "0.0.6",
5
5
  "main": "gen-proto/index.js",
6
6
  "types": "gen-proto/index.d.ts",
7
7
  "license": "MIT",
@@ -16,5 +16,5 @@
16
16
  "devDependencies": {
17
17
  "@types/google-protobuf": "^3.15.5"
18
18
  },
19
- "gitHead": "9ae21cf7c8c82113612575c0d141d06ca8bfb6e5"
19
+ "gitHead": "67c91fb9f02e969315b89ea9c2d236e4e21721c1"
20
20
  }
@@ -1,6 +1,7 @@
1
1
  syntax = "proto3";
2
2
 
3
3
  import "google/protobuf/wrappers.proto";
4
+ import "google/protobuf/any.proto";
4
5
 
5
6
  package com.lansweeper.discovery.cloud.api.v1;
6
7
 
@@ -8,6 +9,25 @@ option java_multiple_files = true;
8
9
 
9
10
  option csharp_namespace = "Lansweeper.Discovery.Model.Proto.Cloud.Api";
10
11
 
12
+ /**
13
+ * Main entry point for cloud assets.
14
+ * EdgeInboundMessage thus will be:
15
+ * {
16
+ * site_id: "12121"
17
+ * source_id: "23232"
18
+ * source_type: "CDK"
19
+ * entity_type: "CloudEntity"
20
+ * entity_id: "23232-3232-3232" // GUID of Entity
21
+ * }
22
+ */
23
+ message CloudEntity {
24
+ string entity_name = 1; // "GCPAppEngine"
25
+ string entity_id = 2;
26
+ // other relevant fields here if available
27
+ // for core-field easy mapping, if it makes sense...
28
+ google.protobuf.Any body = 3;
29
+ }
30
+
11
31
  //This file is a first attempt to use protobuf format to send to kafka for ingestion
12
32
  //Content bellow has been generated automatically and will be improved to 'fit' with targeted data model
13
33
  //Serverless application platform for apps and backends.