@lansweeper/data-platform-outbound-grpc 0.3.34 → 0.3.35
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 +8 -0
- package/gen-proto/image.json +1 -1
- package/gen-proto/outbound_grpc_pb.d.ts +17 -0
- package/gen-proto/outbound_grpc_pb.js +24 -0
- package/gen-proto/outbound_pb.d.ts +28 -0
- package/gen-proto/outbound_pb.js +233 -0
- package/generated-go/outbound.pb.go +12193 -12103
- package/generated-go/outbound_grpc.pb.go +42 -0
- package/java.json +1 -1
- package/model/pom.xml +1 -1
- package/model/src/main/proto/outbound.proto +9 -0
- package/model/target/classes/com/lansweeper/dp/outbound/v1/DeconcileRequest$1.class +0 -0
- package/model/target/classes/com/lansweeper/dp/outbound/v1/DeconcileRequest$Builder.class +0 -0
- package/model/target/classes/com/lansweeper/dp/outbound/v1/DeconcileRequest.class +0 -0
- package/model/target/classes/com/lansweeper/dp/outbound/v1/DeconcileRequestOrBuilder.class +0 -0
- package/model/target/classes/com/lansweeper/dp/outbound/v1/Outbound.class +0 -0
- package/model/target/classes/outbound.proto +9 -0
- package/model/target/generated-sources/protobuf/java/com/lansweeper/dp/outbound/v1/DeconcileRequest.java +954 -0
- package/model/target/generated-sources/protobuf/java/com/lansweeper/dp/outbound/v1/DeconcileRequestOrBuilder.java +49 -0
- package/model/target/generated-sources/protobuf/java/com/lansweeper/dp/outbound/v1/Outbound.java +3601 -3583
- package/model/target/maven-archiver/pom.properties +2 -2
- package/model/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst +4 -0
- package/model/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst +2 -0
- package/model/target/{outbound-model-0.3.33-sources.jar → outbound-model-0.3.34-sources.jar} +0 -0
- package/model/target/{outbound-model-0.3.33.jar → outbound-model-0.3.34.jar} +0 -0
- package/package.json +2 -2
- package/pom.xml +1 -1
- package/proto/outbound.proto +9 -0
- package/service/pom.xml +1 -1
- package/service/target/classes/com/lansweeper/dp/outbound/v1/DataCoreOutboundServiceGrpc$1.class +0 -0
- package/service/target/classes/com/lansweeper/dp/outbound/v1/DataCoreOutboundServiceGrpc$2.class +0 -0
- package/service/target/classes/com/lansweeper/dp/outbound/v1/DataCoreOutboundServiceGrpc$3.class +0 -0
- package/service/target/classes/com/lansweeper/dp/outbound/v1/DataCoreOutboundServiceGrpc$DataCoreOutboundServiceBaseDescriptorSupplier.class +0 -0
- package/service/target/classes/com/lansweeper/dp/outbound/v1/DataCoreOutboundServiceGrpc$DataCoreOutboundServiceBlockingStub.class +0 -0
- package/service/target/classes/com/lansweeper/dp/outbound/v1/DataCoreOutboundServiceGrpc$DataCoreOutboundServiceFileDescriptorSupplier.class +0 -0
- package/service/target/classes/com/lansweeper/dp/outbound/v1/DataCoreOutboundServiceGrpc$DataCoreOutboundServiceFutureStub.class +0 -0
- package/service/target/classes/com/lansweeper/dp/outbound/v1/DataCoreOutboundServiceGrpc$DataCoreOutboundServiceImplBase.class +0 -0
- package/service/target/classes/com/lansweeper/dp/outbound/v1/DataCoreOutboundServiceGrpc$DataCoreOutboundServiceMethodDescriptorSupplier.class +0 -0
- package/service/target/classes/com/lansweeper/dp/outbound/v1/DataCoreOutboundServiceGrpc$DataCoreOutboundServiceStub.class +0 -0
- package/service/target/classes/com/lansweeper/dp/outbound/v1/DataCoreOutboundServiceGrpc$MethodHandlers.class +0 -0
- package/service/target/classes/com/lansweeper/dp/outbound/v1/DataCoreOutboundServiceGrpc.class +0 -0
- package/service/target/classes/com/lansweeper/dp/outbound/v1/ReactorDataCoreOutboundServiceGrpc$DataCoreOutboundServiceImplBase.class +0 -0
- package/service/target/classes/com/lansweeper/dp/outbound/v1/ReactorDataCoreOutboundServiceGrpc$MethodHandlers.class +0 -0
- package/service/target/classes/com/lansweeper/dp/outbound/v1/ReactorDataCoreOutboundServiceGrpc$ReactorDataCoreOutboundServiceStub.class +0 -0
- package/service/target/classes/com/lansweeper/dp/outbound/v1/ReactorDataCoreOutboundServiceGrpc.class +0 -0
- package/service/target/generated-sources/protobuf/grpc-java/com/lansweeper/dp/outbound/v1/DataCoreOutboundServiceGrpc.java +94 -3
- package/service/target/generated-sources/protobuf/java/com/lansweeper/dp/outbound/v1/ReactorDataCoreBackofficeServiceGrpc.java +12 -12
- package/service/target/generated-sources/protobuf/java/com/lansweeper/dp/outbound/v1/ReactorDataCoreOutboundServiceGrpc.java +45 -3
- package/service/target/maven-archiver/pom.properties +2 -2
- package/service/target/outbound-service-0.3.34-sources.jar +0 -0
- package/service/target/outbound-service-0.3.34.jar +0 -0
- package/service/target/outbound-service-0.3.33-sources.jar +0 -0
- package/service/target/outbound-service-0.3.33.jar +0 -0
|
@@ -28,6 +28,7 @@ const _ = grpc.SupportPackageIsVersion8
|
|
|
28
28
|
const (
|
|
29
29
|
DataCoreOutboundService_GetEntity_FullMethodName = "/com.lansweeper.dp.outbound.v1.DataCoreOutboundService/GetEntity"
|
|
30
30
|
DataCoreOutboundService_ListEntities_FullMethodName = "/com.lansweeper.dp.outbound.v1.DataCoreOutboundService/ListEntities"
|
|
31
|
+
DataCoreOutboundService_EntityDeconcile_FullMethodName = "/com.lansweeper.dp.outbound.v1.DataCoreOutboundService/EntityDeconcile"
|
|
31
32
|
DataCoreOutboundService_CatalogLookup_FullMethodName = "/com.lansweeper.dp.outbound.v1.DataCoreOutboundService/CatalogLookup"
|
|
32
33
|
DataCoreOutboundService_GetIpLocationConfig_FullMethodName = "/com.lansweeper.dp.outbound.v1.DataCoreOutboundService/GetIpLocationConfig"
|
|
33
34
|
DataCoreOutboundService_SetIpLocationConfig_FullMethodName = "/com.lansweeper.dp.outbound.v1.DataCoreOutboundService/SetIpLocationConfig"
|
|
@@ -41,11 +42,14 @@ const (
|
|
|
41
42
|
// GRPC Service. Currently supported operation:
|
|
42
43
|
// - Get Entity
|
|
43
44
|
// - Stream Entities
|
|
45
|
+
// - Deconcile Entity
|
|
44
46
|
type DataCoreOutboundServiceClient interface {
|
|
45
47
|
// Retrieve a single entity by site/inst-id/type/id
|
|
46
48
|
GetEntity(ctx context.Context, in *GetEntityRequest, opts ...grpc.CallOption) (*GetEntityResponse, error)
|
|
47
49
|
// lists entities for a site or site/type
|
|
48
50
|
ListEntities(ctx context.Context, in *ListEntityRequest, opts ...grpc.CallOption) (DataCoreOutboundService_ListEntitiesClient, error)
|
|
51
|
+
// Deconcile an entity from the aliases (reverse reconciliation)
|
|
52
|
+
EntityDeconcile(ctx context.Context, in *DeconcileRequest, opts ...grpc.CallOption) (*GetEntityResponse, error)
|
|
49
53
|
// Retrieve a single entity by site/inst-id/type/id
|
|
50
54
|
CatalogLookup(ctx context.Context, in *CatalogLookupRequest, opts ...grpc.CallOption) (*CatalogLookupResponse, error)
|
|
51
55
|
// Get IP Location config (BY SITE)
|
|
@@ -105,6 +109,16 @@ func (x *dataCoreOutboundServiceListEntitiesClient) Recv() (*ListEntityResponse,
|
|
|
105
109
|
return m, nil
|
|
106
110
|
}
|
|
107
111
|
|
|
112
|
+
func (c *dataCoreOutboundServiceClient) EntityDeconcile(ctx context.Context, in *DeconcileRequest, opts ...grpc.CallOption) (*GetEntityResponse, error) {
|
|
113
|
+
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
114
|
+
out := new(GetEntityResponse)
|
|
115
|
+
err := c.cc.Invoke(ctx, DataCoreOutboundService_EntityDeconcile_FullMethodName, in, out, cOpts...)
|
|
116
|
+
if err != nil {
|
|
117
|
+
return nil, err
|
|
118
|
+
}
|
|
119
|
+
return out, nil
|
|
120
|
+
}
|
|
121
|
+
|
|
108
122
|
func (c *dataCoreOutboundServiceClient) CatalogLookup(ctx context.Context, in *CatalogLookupRequest, opts ...grpc.CallOption) (*CatalogLookupResponse, error) {
|
|
109
123
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
110
124
|
out := new(CatalogLookupResponse)
|
|
@@ -143,11 +157,14 @@ func (c *dataCoreOutboundServiceClient) SetIpLocationConfig(ctx context.Context,
|
|
|
143
157
|
// GRPC Service. Currently supported operation:
|
|
144
158
|
// - Get Entity
|
|
145
159
|
// - Stream Entities
|
|
160
|
+
// - Deconcile Entity
|
|
146
161
|
type DataCoreOutboundServiceServer interface {
|
|
147
162
|
// Retrieve a single entity by site/inst-id/type/id
|
|
148
163
|
GetEntity(context.Context, *GetEntityRequest) (*GetEntityResponse, error)
|
|
149
164
|
// lists entities for a site or site/type
|
|
150
165
|
ListEntities(*ListEntityRequest, DataCoreOutboundService_ListEntitiesServer) error
|
|
166
|
+
// Deconcile an entity from the aliases (reverse reconciliation)
|
|
167
|
+
EntityDeconcile(context.Context, *DeconcileRequest) (*GetEntityResponse, error)
|
|
151
168
|
// Retrieve a single entity by site/inst-id/type/id
|
|
152
169
|
CatalogLookup(context.Context, *CatalogLookupRequest) (*CatalogLookupResponse, error)
|
|
153
170
|
// Get IP Location config (BY SITE)
|
|
@@ -167,6 +184,9 @@ func (UnimplementedDataCoreOutboundServiceServer) GetEntity(context.Context, *Ge
|
|
|
167
184
|
func (UnimplementedDataCoreOutboundServiceServer) ListEntities(*ListEntityRequest, DataCoreOutboundService_ListEntitiesServer) error {
|
|
168
185
|
return status.Errorf(codes.Unimplemented, "method ListEntities not implemented")
|
|
169
186
|
}
|
|
187
|
+
func (UnimplementedDataCoreOutboundServiceServer) EntityDeconcile(context.Context, *DeconcileRequest) (*GetEntityResponse, error) {
|
|
188
|
+
return nil, status.Errorf(codes.Unimplemented, "method EntityDeconcile not implemented")
|
|
189
|
+
}
|
|
170
190
|
func (UnimplementedDataCoreOutboundServiceServer) CatalogLookup(context.Context, *CatalogLookupRequest) (*CatalogLookupResponse, error) {
|
|
171
191
|
return nil, status.Errorf(codes.Unimplemented, "method CatalogLookup not implemented")
|
|
172
192
|
}
|
|
@@ -229,6 +249,24 @@ func (x *dataCoreOutboundServiceListEntitiesServer) Send(m *ListEntityResponse)
|
|
|
229
249
|
return x.ServerStream.SendMsg(m)
|
|
230
250
|
}
|
|
231
251
|
|
|
252
|
+
func _DataCoreOutboundService_EntityDeconcile_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
253
|
+
in := new(DeconcileRequest)
|
|
254
|
+
if err := dec(in); err != nil {
|
|
255
|
+
return nil, err
|
|
256
|
+
}
|
|
257
|
+
if interceptor == nil {
|
|
258
|
+
return srv.(DataCoreOutboundServiceServer).EntityDeconcile(ctx, in)
|
|
259
|
+
}
|
|
260
|
+
info := &grpc.UnaryServerInfo{
|
|
261
|
+
Server: srv,
|
|
262
|
+
FullMethod: DataCoreOutboundService_EntityDeconcile_FullMethodName,
|
|
263
|
+
}
|
|
264
|
+
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
265
|
+
return srv.(DataCoreOutboundServiceServer).EntityDeconcile(ctx, req.(*DeconcileRequest))
|
|
266
|
+
}
|
|
267
|
+
return interceptor(ctx, in, info, handler)
|
|
268
|
+
}
|
|
269
|
+
|
|
232
270
|
func _DataCoreOutboundService_CatalogLookup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
233
271
|
in := new(CatalogLookupRequest)
|
|
234
272
|
if err := dec(in); err != nil {
|
|
@@ -294,6 +332,10 @@ var DataCoreOutboundService_ServiceDesc = grpc.ServiceDesc{
|
|
|
294
332
|
MethodName: "GetEntity",
|
|
295
333
|
Handler: _DataCoreOutboundService_GetEntity_Handler,
|
|
296
334
|
},
|
|
335
|
+
{
|
|
336
|
+
MethodName: "EntityDeconcile",
|
|
337
|
+
Handler: _DataCoreOutboundService_EntityDeconcile_Handler,
|
|
338
|
+
},
|
|
297
339
|
{
|
|
298
340
|
MethodName: "CatalogLookup",
|
|
299
341
|
Handler: _DataCoreOutboundService_CatalogLookup_Handler,
|
package/java.json
CHANGED
package/model/pom.xml
CHANGED
|
@@ -19,6 +19,7 @@ import "google/protobuf/any.proto";
|
|
|
19
19
|
* GRPC Service. Currently supported operation:
|
|
20
20
|
* - Get Entity
|
|
21
21
|
* - Stream Entities
|
|
22
|
+
* - Deconcile Entity
|
|
22
23
|
*/
|
|
23
24
|
service DataCoreOutboundService {
|
|
24
25
|
|
|
@@ -32,6 +33,9 @@ service DataCoreOutboundService {
|
|
|
32
33
|
// lists entities for a site or site/type
|
|
33
34
|
rpc ListEntities(ListEntityRequest) returns (stream ListEntityResponse) {}
|
|
34
35
|
|
|
36
|
+
// Deconcile an entity from the aliases (reverse reconciliation)
|
|
37
|
+
rpc EntityDeconcile(DeconcileRequest) returns (GetEntityResponse) {}
|
|
38
|
+
|
|
35
39
|
// ----------------------------------------
|
|
36
40
|
// ENRICHMENT API
|
|
37
41
|
// ----------------------------------------
|
|
@@ -141,6 +145,11 @@ message ListEntityResponse {
|
|
|
141
145
|
repeated Entity related = 2;
|
|
142
146
|
}
|
|
143
147
|
|
|
148
|
+
message DeconcileRequest {
|
|
149
|
+
EntityPath master = 1;
|
|
150
|
+
repeated EntityPath aliases = 2;
|
|
151
|
+
}
|
|
152
|
+
|
|
144
153
|
message CatalogLookupRequest {
|
|
145
154
|
repeated int64 brand_id = 1;
|
|
146
155
|
repeated int64 model_id = 2;
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -19,6 +19,7 @@ import "google/protobuf/any.proto";
|
|
|
19
19
|
* GRPC Service. Currently supported operation:
|
|
20
20
|
* - Get Entity
|
|
21
21
|
* - Stream Entities
|
|
22
|
+
* - Deconcile Entity
|
|
22
23
|
*/
|
|
23
24
|
service DataCoreOutboundService {
|
|
24
25
|
|
|
@@ -32,6 +33,9 @@ service DataCoreOutboundService {
|
|
|
32
33
|
// lists entities for a site or site/type
|
|
33
34
|
rpc ListEntities(ListEntityRequest) returns (stream ListEntityResponse) {}
|
|
34
35
|
|
|
36
|
+
// Deconcile an entity from the aliases (reverse reconciliation)
|
|
37
|
+
rpc EntityDeconcile(DeconcileRequest) returns (GetEntityResponse) {}
|
|
38
|
+
|
|
35
39
|
// ----------------------------------------
|
|
36
40
|
// ENRICHMENT API
|
|
37
41
|
// ----------------------------------------
|
|
@@ -141,6 +145,11 @@ message ListEntityResponse {
|
|
|
141
145
|
repeated Entity related = 2;
|
|
142
146
|
}
|
|
143
147
|
|
|
148
|
+
message DeconcileRequest {
|
|
149
|
+
EntityPath master = 1;
|
|
150
|
+
repeated EntityPath aliases = 2;
|
|
151
|
+
}
|
|
152
|
+
|
|
144
153
|
message CatalogLookupRequest {
|
|
145
154
|
repeated int64 brand_id = 1;
|
|
146
155
|
repeated int64 model_id = 2;
|