diff --git a/data/avro-schema/src/main/resources/avro/net/corda/data/virtualnode/VirtualNodeAsynchronousRequest.avsc b/data/avro-schema/src/main/resources/avro/net/corda/data/virtualnode/VirtualNodeAsynchronousRequest.avsc index 5e4a2603dd..c3f8dc8dcc 100644 --- a/data/avro-schema/src/main/resources/avro/net/corda/data/virtualnode/VirtualNodeAsynchronousRequest.avsc +++ b/data/avro-schema/src/main/resources/avro/net/corda/data/virtualnode/VirtualNodeAsynchronousRequest.avsc @@ -21,8 +21,9 @@ "name": "request", "doc": "The operation specific request.", "type": [ - "net.corda.data.virtualnode.VirtualNodeUpgradeRequest", - "net.corda.data.virtualnode.VirtualNodeCreateRequest" + "net.corda.data.virtualnode.VirtualNodeCreateRequest", + "net.corda.data.virtualnode.VirtualNodeUpdateRequest", + "net.corda.data.virtualnode.VirtualNodeUpgradeRequest" ] } ] diff --git a/data/avro-schema/src/main/resources/avro/net/corda/data/virtualnode/VirtualNodeUpdateRequest.avsc b/data/avro-schema/src/main/resources/avro/net/corda/data/virtualnode/VirtualNodeUpdateRequest.avsc new file mode 100644 index 0000000000..250a2bdac8 --- /dev/null +++ b/data/avro-schema/src/main/resources/avro/net/corda/data/virtualnode/VirtualNodeUpdateRequest.avsc @@ -0,0 +1,46 @@ +{ + "type": "record", + "name": "VirtualNodeUpdateRequest", + "namespace": "net.corda.data.virtualnode", + "fields": [ + { + "name": "holdingId", + "type": "net.corda.data.identity.HoldingIdentity" + }, + { + "name": "vaultDdlConnection", + "type": ["null", "string"], + "doc": "Connection details for virtual node Vault DB to be used for DDL operations. If null is passed for both vault connections, cluster DB will be used." + }, + { + "name": "vaultDmlConnection", + "type": ["null", "string"], + "doc": "Connection details for virtual node Vault DB to be used for DML operations. If null is passed for both vault connections, cluster DB will be used." + }, + { + "name": "cryptoDdlConnection", + "type": ["null", "string"], + "doc": "Connection details for virtual node Crypto DB to be used for DDL operations. If null is passed for both crypto connections, cluster DB will be used." + }, + { + "name": "cryptoDmlConnection", + "type": ["null", "string"], + "doc": "Connection details for virtual node Crypto DB to be used for DML operations. If null is passed for both crypto connections, cluster DB will be used." + }, + { + "name": "uniquenessDdlConnection", + "type": ["null", "string"], + "doc": "Connection details for virtual node Uniqueness DB to be used for DDL operations. If null is passed for both uniqueness connections, cluster DB will be used." + }, + { + "name": "uniquenessDmlConnection", + "type": ["null", "string"], + "doc": "Connection details for virtual node Uniqueness DB to be used for DML operations. If null is passed for both uniqueness connections, cluster DB will be used." + }, + { + "name": "updateActor", + "type": "string", + "doc": "ID of RPC user that requested the virtual node creation." + } + ] +} diff --git a/data/avro-schema/src/main/resources/avro/net/corda/data/virtualnode/VirtualNodeUpdateResponse.avsc b/data/avro-schema/src/main/resources/avro/net/corda/data/virtualnode/VirtualNodeUpdateResponse.avsc new file mode 100644 index 0000000000..69c72cc960 --- /dev/null +++ b/data/avro-schema/src/main/resources/avro/net/corda/data/virtualnode/VirtualNodeUpdateResponse.avsc @@ -0,0 +1,98 @@ +{ + "type": "record", + "name": "VirtualNodeUpdateResponse", + "namespace": "net.corda.data.virtualnode", + "fields": [ + { + "name": "holdingIdentity", + "type": [ + "null", + "net.corda.data.identity.HoldingIdentity" + ] + }, + { + "name": "holdingIdentifierHash", + "type": [ + "null", + "string" + ], + "doc": "The short 12-character hash of the holding identity." + }, + { + "name": "vaultDdlConnectionId", + "type": [ + "null", + "string" + ], + "doc": "ID of virtual node Vault DB connection for DDL operations. Null value means that DB is managed externally." + }, + { + "name": "vaultDmlConnectionId", + "type": [ + "null", + "string" + ], + "doc": "ID of virtual node Vault DB connection for DML operations." + }, + { + "name": "cryptoDdlConnectionId", + "type": [ + "null", + "string" + ], + "doc": "ID of virtual node Crypto DB connection for DDL operations. Null value means that DB is managed externally." + }, + { + "name": "cryptoDmlConnectionId", + "type": [ + "null", + "string" + ], + "doc": "ID of virtual node Crypto DB connection for DML operations." + }, + { + "name": "uniquenessDdlConnectionId", + "type": [ + "null", + "string" + ], + "doc": "ID of virtual node Uniqueness DB connection for DDL operations. Null value means that DB is managed externally." + }, + { + "name": "uniquenessDmlConnectionId", + "type": [ + "null", + "string" + ], + "doc": "ID of virtual node Uniqueness DB connection for DML operations." + }, + { + "name": "hsmConnectionId", + "type": [ + "null", + "string" + ], + "doc": "ID of HSM connection. Null value means that HSM is not used." + }, + { + "name": "flowP2pOperationalStatus", + "type": "VirtualNodeOperationalState", + "doc": "The current flow p2p operational status of virtual node" + }, + { + "name": "flowStartOperationalStatus", + "type": "VirtualNodeOperationalState", + "doc": "The current flow start operational status of virtual node" + }, + { + "name": "flowOperationalStatus", + "type": "VirtualNodeOperationalState", + "doc": "The current flow operational status of virtual node" + }, + { + "name": "vaultDbOperationalStatus", + "type": "VirtualNodeOperationalState", + "doc": "The current vault db operational status of virtual node" + } + ] +}