Skip to content

Commit

Permalink
CORE-15805: Avro for getting schema SQL (#1389)
Browse files Browse the repository at this point in the history
* Added VirtualNodeSchemaRequest and Response and add to VirtualNodeManagement avro class
  • Loading branch information
BenYip123 authored Jan 5, 2024
1 parent c23d34c commit 0440b8f
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
"type": [
"net.corda.data.virtualnode.VirtualNodeStateChangeRequest",
"net.corda.data.virtualnode.VirtualNodeDBResetRequest",
"net.corda.data.virtualnode.VirtualNodeOperationStatusRequest"
"net.corda.data.virtualnode.VirtualNodeOperationStatusRequest",
"net.corda.data.virtualnode.VirtualNodeSchemaRequest"
]
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"net.corda.data.virtualnode.VirtualNodeUpdateDbStatusResponse",
"net.corda.data.virtualnode.VirtualNodeDBResetResponse",
"net.corda.data.virtualnode.VirtualNodeManagementResponseFailure",
"net.corda.data.virtualnode.VirtualNodeOperationStatusResponse"
"net.corda.data.virtualnode.VirtualNodeOperationStatusResponse",
"net.corda.data.virtualnode.VirtualNodeSchemaResponse"
]
}
]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"type": "record",
"name": "VirtualNodeSchemaRequest",
"namespace": "net.corda.data.virtualnode",
"doc": "Represents the input parameters for getting a schema SQL",
"fields": [
{
"name": "dbType",
"doc": "The type of database to get the schema from.",
"type": {
"name": "DbTypes",
"type": "enum",
"symbols": [
"CRYPTO",
"UNIQUENESS",
"VAULT"
]
}
},
{
"name": "virtualNodeShortHash",
"type": [ "null", "string" ],
"doc": "Short hash of the virtual node."
},
{
"name": "cpiChecksum",
"type": [ "null", "string" ],
"doc": "The checksum of the CPI file."
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"type": "record",
"name": "VirtualNodeSchemaResponse",
"namespace": "net.corda.data.virtualnode",
"fields": [
{
"name": "schemaSql",
"type": "string"
}
]
}

0 comments on commit 0440b8f

Please sign in to comment.