diff --git a/src/main/proto/epp.proto b/src/main/proto/epp.proto index 777f2e18..1d1f8731 100644 --- a/src/main/proto/epp.proto +++ b/src/main/proto/epp.proto @@ -4,11 +4,16 @@ option java_multiple_files = true; option java_package = "gov.nist.csd.pm.epp.proto"; option java_outer_classname = "EPPProto"; +message OperandEntry { + string name = 1; + repeated string value = 2; +} + message EventContext { string user = 1; string process = 2; string opName = 3; - map operands = 4; + repeated OperandEntry operands = 4; } message EPPResponse {} diff --git a/src/main/proto/pdp.proto b/src/main/proto/pdp.proto index 146c7c54..1e4b8088 100644 --- a/src/main/proto/pdp.proto +++ b/src/main/proto/pdp.proto @@ -1,5 +1,7 @@ syntax = "proto3"; +import "epp.proto"; + option java_multiple_files = true; option java_package = "gov.nist.csd.pm.pdp.proto"; option java_outer_classname = "PDPProto"; @@ -9,8 +11,14 @@ message ResourceOperationRequest { string target = 2; } +message Node { + string name = 1; + string type = 2; + map properties = 3; +} + message ResourceOperationResponse { - bytes node = 1; + Node node = 1; } service ResourcePDP { @@ -19,7 +27,7 @@ service ResourcePDP { message AdminOperationRequest { string opName = 1; - map operands = 2; + repeated OperandEntry operands = 2; } message AdminOperationResponse {}