@lansweeper/data-platform-outbound-grpc 0.0.2 → 0.1.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/CHANGELOG.md +16 -0
- package/DOC.md +591 -0
- package/gen-proto/image.json +1 -1
- package/gen-proto/outbound_grpc_pb.d.ts +3 -3
- package/gen-proto/outbound_grpc_pb.js +29 -25
- package/gen-proto/outbound_pb.d.ts +1 -1
- package/gen-proto/outbound_pb.js +1811 -1811
- package/package.json +2 -2
- package/pom.xml +29 -0
- package/proto/outbound.proto +9 -4
- package/src/main/java/com/lansweeper/dp/outbound/v1/Outbound.java +43170 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// package: com.lansweeper.dp.
|
|
1
|
+
// package: com.lansweeper.dp.outbound.v1
|
|
2
2
|
// file: outbound.proto
|
|
3
3
|
|
|
4
4
|
/* tslint:disable */
|
|
@@ -14,7 +14,7 @@ interface IDataCoreOutboundServiceService extends grpc.ServiceDefinition<grpc.Un
|
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
interface IDataCoreOutboundServiceService_IGetEntity extends grpc.MethodDefinition<outbound_pb.GetEntityRequest, outbound_pb.GetEntityResponse> {
|
|
17
|
-
path: "/com.lansweeper.dp.
|
|
17
|
+
path: "/com.lansweeper.dp.outbound.v1.DataCoreOutboundService/GetEntity";
|
|
18
18
|
requestStream: false;
|
|
19
19
|
responseStream: false;
|
|
20
20
|
requestSerialize: grpc.serialize<outbound_pb.GetEntityRequest>;
|
|
@@ -23,7 +23,7 @@ interface IDataCoreOutboundServiceService_IGetEntity extends grpc.MethodDefiniti
|
|
|
23
23
|
responseDeserialize: grpc.deserialize<outbound_pb.GetEntityResponse>;
|
|
24
24
|
}
|
|
25
25
|
interface IDataCoreOutboundServiceService_IListEntities extends grpc.MethodDefinition<outbound_pb.ListEntityRequest, outbound_pb.ListEntityResponse> {
|
|
26
|
-
path: "/com.lansweeper.dp.
|
|
26
|
+
path: "/com.lansweeper.dp.outbound.v1.DataCoreOutboundService/ListEntities";
|
|
27
27
|
requestStream: false;
|
|
28
28
|
responseStream: true;
|
|
29
29
|
requestSerialize: grpc.serialize<outbound_pb.ListEntityRequest>;
|
|
@@ -2,87 +2,91 @@
|
|
|
2
2
|
|
|
3
3
|
// Original file comments:
|
|
4
4
|
// *
|
|
5
|
-
// Copyright
|
|
5
|
+
// Copyright Lansweeper (c)
|
|
6
6
|
//
|
|
7
|
-
// This files contains
|
|
7
|
+
// This files contains the Data Access API and the definition of outbound model
|
|
8
8
|
//
|
|
9
|
-
// https://github.com/pseudomuto/protoc-gen-doc
|
|
9
|
+
// N.B. This file has been documented using the specification available here: https://github.com/pseudomuto/protoc-gen-doc
|
|
10
10
|
'use strict';
|
|
11
11
|
var grpc = require('@grpc/grpc-js');
|
|
12
12
|
var outbound_pb = require('./outbound_pb.js');
|
|
13
13
|
var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
|
|
14
14
|
|
|
15
|
-
function
|
|
15
|
+
function serialize_com_lansweeper_dp_outbound_v1_GetEntityRequest(arg) {
|
|
16
16
|
if (!(arg instanceof outbound_pb.GetEntityRequest)) {
|
|
17
|
-
throw new Error('Expected argument of type com.lansweeper.dp.
|
|
17
|
+
throw new Error('Expected argument of type com.lansweeper.dp.outbound.v1.GetEntityRequest');
|
|
18
18
|
}
|
|
19
19
|
return Buffer.from(arg.serializeBinary());
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
function
|
|
22
|
+
function deserialize_com_lansweeper_dp_outbound_v1_GetEntityRequest(buffer_arg) {
|
|
23
23
|
return outbound_pb.GetEntityRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
function
|
|
26
|
+
function serialize_com_lansweeper_dp_outbound_v1_GetEntityResponse(arg) {
|
|
27
27
|
if (!(arg instanceof outbound_pb.GetEntityResponse)) {
|
|
28
|
-
throw new Error('Expected argument of type com.lansweeper.dp.
|
|
28
|
+
throw new Error('Expected argument of type com.lansweeper.dp.outbound.v1.GetEntityResponse');
|
|
29
29
|
}
|
|
30
30
|
return Buffer.from(arg.serializeBinary());
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
function
|
|
33
|
+
function deserialize_com_lansweeper_dp_outbound_v1_GetEntityResponse(buffer_arg) {
|
|
34
34
|
return outbound_pb.GetEntityResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
function
|
|
37
|
+
function serialize_com_lansweeper_dp_outbound_v1_ListEntityRequest(arg) {
|
|
38
38
|
if (!(arg instanceof outbound_pb.ListEntityRequest)) {
|
|
39
|
-
throw new Error('Expected argument of type com.lansweeper.dp.
|
|
39
|
+
throw new Error('Expected argument of type com.lansweeper.dp.outbound.v1.ListEntityRequest');
|
|
40
40
|
}
|
|
41
41
|
return Buffer.from(arg.serializeBinary());
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
function
|
|
44
|
+
function deserialize_com_lansweeper_dp_outbound_v1_ListEntityRequest(buffer_arg) {
|
|
45
45
|
return outbound_pb.ListEntityRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
function
|
|
48
|
+
function serialize_com_lansweeper_dp_outbound_v1_ListEntityResponse(arg) {
|
|
49
49
|
if (!(arg instanceof outbound_pb.ListEntityResponse)) {
|
|
50
|
-
throw new Error('Expected argument of type com.lansweeper.dp.
|
|
50
|
+
throw new Error('Expected argument of type com.lansweeper.dp.outbound.v1.ListEntityResponse');
|
|
51
51
|
}
|
|
52
52
|
return Buffer.from(arg.serializeBinary());
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
-
function
|
|
55
|
+
function deserialize_com_lansweeper_dp_outbound_v1_ListEntityResponse(buffer_arg) {
|
|
56
56
|
return outbound_pb.ListEntityResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
|
|
60
60
|
// ----- Service Part ------
|
|
61
61
|
//
|
|
62
|
+
// *
|
|
63
|
+
// GRPC Service. Currently supported operation:
|
|
64
|
+
// - Get Entity
|
|
65
|
+
// - Stream Entities
|
|
62
66
|
var DataCoreOutboundServiceService = exports.DataCoreOutboundServiceService = {
|
|
63
67
|
// Retrieve a single entity by site/inst-id/type/id
|
|
64
68
|
getEntity: {
|
|
65
|
-
path: '/com.lansweeper.dp.
|
|
69
|
+
path: '/com.lansweeper.dp.outbound.v1.DataCoreOutboundService/GetEntity',
|
|
66
70
|
requestStream: false,
|
|
67
71
|
responseStream: false,
|
|
68
72
|
requestType: outbound_pb.GetEntityRequest,
|
|
69
73
|
responseType: outbound_pb.GetEntityResponse,
|
|
70
|
-
requestSerialize:
|
|
71
|
-
requestDeserialize:
|
|
72
|
-
responseSerialize:
|
|
73
|
-
responseDeserialize:
|
|
74
|
+
requestSerialize: serialize_com_lansweeper_dp_outbound_v1_GetEntityRequest,
|
|
75
|
+
requestDeserialize: deserialize_com_lansweeper_dp_outbound_v1_GetEntityRequest,
|
|
76
|
+
responseSerialize: serialize_com_lansweeper_dp_outbound_v1_GetEntityResponse,
|
|
77
|
+
responseDeserialize: deserialize_com_lansweeper_dp_outbound_v1_GetEntityResponse,
|
|
74
78
|
},
|
|
75
79
|
// lists entities for a site or site/type
|
|
76
80
|
listEntities: {
|
|
77
|
-
path: '/com.lansweeper.dp.
|
|
81
|
+
path: '/com.lansweeper.dp.outbound.v1.DataCoreOutboundService/ListEntities',
|
|
78
82
|
requestStream: false,
|
|
79
83
|
responseStream: true,
|
|
80
84
|
requestType: outbound_pb.ListEntityRequest,
|
|
81
85
|
responseType: outbound_pb.ListEntityResponse,
|
|
82
|
-
requestSerialize:
|
|
83
|
-
requestDeserialize:
|
|
84
|
-
responseSerialize:
|
|
85
|
-
responseDeserialize:
|
|
86
|
+
requestSerialize: serialize_com_lansweeper_dp_outbound_v1_ListEntityRequest,
|
|
87
|
+
requestDeserialize: deserialize_com_lansweeper_dp_outbound_v1_ListEntityRequest,
|
|
88
|
+
responseSerialize: serialize_com_lansweeper_dp_outbound_v1_ListEntityResponse,
|
|
89
|
+
responseDeserialize: deserialize_com_lansweeper_dp_outbound_v1_ListEntityResponse,
|
|
86
90
|
},
|
|
87
91
|
};
|
|
88
92
|
|