Skip to content

Commit

Permalink
update schema JSONs, add replace
Browse files Browse the repository at this point in the history
  • Loading branch information
sunshowers committed Aug 8, 2024
1 parent 14a2dc4 commit aa60254
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 266 deletions.
1 change: 1 addition & 0 deletions clients/sled-agent-client/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ progenitor::generate_api!(
replace = {
Baseboard = nexus_sled_agent_shared::inventory::Baseboard,
ByteCount = omicron_common::api::external::ByteCount,
DatasetKind = omicron_common::api::internal::shared::DatasetKind,
DiskIdentity = omicron_common::disk::DiskIdentity,
DiskVariant = omicron_common::disk::DiskVariant,
Generation = omicron_common::api::external::Generation,
Expand Down
135 changes: 2 additions & 133 deletions openapi/nexus-internal.json
Original file line number Diff line number Diff line change
Expand Up @@ -2591,139 +2591,8 @@
]
},
"DatasetKind": {
"description": "Describes the purpose of the dataset.",
"oneOf": [
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"cockroachdb"
]
}
},
"required": [
"type"
]
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"crucible"
]
}
},
"required": [
"type"
]
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"clickhouse"
]
}
},
"required": [
"type"
]
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"clickhouse_keeper"
]
}
},
"required": [
"type"
]
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"external_dns"
]
}
},
"required": [
"type"
]
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"internal_dns"
]
}
},
"required": [
"type"
]
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"zone_root"
]
}
},
"required": [
"type"
]
},
{
"type": "object",
"properties": {
"name": {
"type": "string"
},
"type": {
"type": "string",
"enum": [
"zone"
]
}
},
"required": [
"name",
"type"
]
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"debug"
]
}
},
"required": [
"type"
]
}
]
"description": "The kind of dataset. See the `DatasetKind` enum in omicron-common for possible values.",
"type": "string"
},
"DatasetPutRequest": {
"description": "Describes a dataset within a pool.",
Expand Down
135 changes: 2 additions & 133 deletions openapi/sled-agent.json
Original file line number Diff line number Diff line change
Expand Up @@ -2205,139 +2205,8 @@
]
},
"DatasetKind": {
"description": "Describes the purpose of the dataset.",
"oneOf": [
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"cockroachdb"
]
}
},
"required": [
"type"
]
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"crucible"
]
}
},
"required": [
"type"
]
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"clickhouse"
]
}
},
"required": [
"type"
]
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"clickhouse_keeper"
]
}
},
"required": [
"type"
]
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"external_dns"
]
}
},
"required": [
"type"
]
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"internal_dns"
]
}
},
"required": [
"type"
]
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"zone_root"
]
}
},
"required": [
"type"
]
},
{
"type": "object",
"properties": {
"name": {
"type": "string"
},
"type": {
"type": "string",
"enum": [
"zone"
]
}
},
"required": [
"name",
"type"
]
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"debug"
]
}
},
"required": [
"type"
]
}
]
"description": "The kind of dataset. See the `DatasetKind` enum in omicron-common for possible values.",
"type": "string"
},
"DatasetManagementStatus": {
"description": "Identifies how a single dataset management operation may have succeeded or failed.",
Expand Down

0 comments on commit aa60254

Please sign in to comment.