{
  "components": {
    "schemas": {
      "Attachment": {
        "description": "What was asked for (`spec`), what is (`status`), and how far the second is behind the first (`meta.generation` against `status.observedGeneration`).",
        "properties": {
          "meta": {
            "$ref": "#/components/schemas/Meta"
          },
          "spec": {
            "$ref": "#/components/schemas/AttachmentSpec"
          },
          "status": {
            "$ref": "#/components/schemas/Status"
          }
        },
        "required": [
          "meta",
          "spec",
          "status"
        ],
        "type": "object"
      },
      "AttachmentSpec": {
        "additionalProperties": true,
        "description": "Attaching is its own object, so a crash mid-way leaves a truthful record rather than a volume nobody can reattach.",
        "properties": {
          "instance": {
            "description": "The name of a `instances` object.",
            "type": "string"
          },
          "node": {
            "description": "The name of a `nodes` object. Where the volume will be opened. Taken from the instance. Derived: omitted, the API fills it in; stated, it must agree.",
            "type": "string"
          },
          "readOnly": {
            "type": "boolean"
          },
          "volume": {
            "description": "The name of a `volumes` object.",
            "type": "string"
          }
        },
        "required": [
          "volume",
          "instance"
        ],
        "type": "object"
      },
      "AuditRecord": {
        "description": "What was asked for (`spec`), what is (`status`), and how far the second is behind the first (`meta.generation` against `status.observedGeneration`).",
        "properties": {
          "meta": {
            "$ref": "#/components/schemas/Meta"
          },
          "spec": {
            "$ref": "#/components/schemas/AuditRecordSpec"
          },
          "status": {
            "$ref": "#/components/schemas/Status"
          }
        },
        "required": [
          "meta",
          "spec",
          "status"
        ],
        "type": "object"
      },
      "AuditRecordSpec": {
        "additionalProperties": true,
        "description": "What was refused, and who signed in. Not a log of everything that happened — every successful write already leaves an operation carrying its target, its verb and who asked. What no operation exists for is a request that was turned down, and that is the one a multi-tenant cell gets asked about later.",
        "properties": {},
        "type": "object"
      },
      "BGPPeer": {
        "description": "What was asked for (`spec`), what is (`status`), and how far the second is behind the first (`meta.generation` against `status.observedGeneration`).",
        "properties": {
          "meta": {
            "$ref": "#/components/schemas/Meta"
          },
          "spec": {
            "$ref": "#/components/schemas/BGPPeerSpec"
          },
          "status": {
            "$ref": "#/components/schemas/Status"
          }
        },
        "required": [
          "meta",
          "spec",
          "status"
        ],
        "type": "object"
      },
      "BGPPeerSpec": {
        "additionalProperties": true,
        "description": "Sessions from the cell's gateways to the routers in front of it. What gets announced is derived, never listed: every external subnet, and a host route for each public address that is in front of something — so the router ahead of the cell and this console cannot disagree about what the cell claims.",
        "properties": {
          "description": {
            "type": "string"
          },
          "localAs": {
            "maximum": 4294967295,
            "minimum": 1,
            "type": "integer"
          },
          "multihop": {
            "description": "Only when the router is not on the same wire: eBGP refuses a neighbour more than one hop away unless told the distance.",
            "maximum": 255,
            "minimum": 1,
            "type": "integer"
          },
          "node": {
            "description": "The name of a `nodes` object. The machine that holds the session — a gateway, with FRR installed. One session is one speaker.",
            "type": "string"
          },
          "password": {
            "description": "The same string the router has for this session (RFC 2385). Most firewalls will not bring a session up without one.",
            "type": "string"
          },
          "peer": {
            "description": "The router or firewall in front of the cell.",
            "type": "string"
          },
          "peerAs": {
            "maximum": 4294967295,
            "minimum": 1,
            "type": "integer"
          }
        },
        "required": [
          "peer",
          "peerAs",
          "localAs",
          "node"
        ],
        "type": "object"
      },
      "Backup": {
        "description": "What was asked for (`spec`), what is (`status`), and how far the second is behind the first (`meta.generation` against `status.observedGeneration`).",
        "properties": {
          "meta": {
            "$ref": "#/components/schemas/Meta"
          },
          "spec": {
            "$ref": "#/components/schemas/BackupSpec"
          },
          "status": {
            "$ref": "#/components/schemas/Status"
          }
        },
        "required": [
          "meta",
          "spec",
          "status"
        ],
        "type": "object"
      },
      "BackupSchedule": {
        "description": "What was asked for (`spec`), what is (`status`), and how far the second is behind the first (`meta.generation` against `status.observedGeneration`).",
        "properties": {
          "meta": {
            "$ref": "#/components/schemas/Meta"
          },
          "spec": {
            "$ref": "#/components/schemas/BackupScheduleSpec"
          },
          "status": {
            "$ref": "#/components/schemas/Status"
          }
        },
        "required": [
          "meta",
          "spec",
          "status"
        ],
        "type": "object"
      },
      "BackupScheduleSpec": {
        "additionalProperties": true,
        "description": "An intention, not a job queue: there should be a copy of this volume no older than the interval, and the last few kept. What exists is what decides — a copy still being made holds the schedule, and a stuck one holds it for one interval and no longer.",
        "properties": {
          "everyHours": {
            "description": "How stale the newest copy may get before another is made. An interval rather than a cron line, because the only question anybody asks a schedule is when it will next run.",
            "maximum": 8760,
            "minimum": 1,
            "type": "integer",
            "x-unit": "hours"
          },
          "keep": {
            "description": "How many of this schedule's copies to keep. Only finished copies count, so a run of failures never expires the last one that worked. Copies taken by hand are never expired.",
            "maximum": 365,
            "minimum": 1,
            "type": "integer",
            "x-unit": "copies"
          },
          "target": {
            "description": "The name of a `backup-targets` object. Leave empty to use an available backup destination.",
            "type": "string"
          },
          "volume": {
            "description": "The name of a `volumes` object. What is copied.",
            "type": "string"
          }
        },
        "required": [
          "volume",
          "everyHours",
          "keep"
        ],
        "type": "object"
      },
      "BackupSpec": {
        "additionalProperties": true,
        "description": "One copy of one volume, at one moment. Restoring makes a new volume from a copy — never writing one back over the original, which would be a command living in a spec and carried out again on every resync.",
        "properties": {
          "target": {
            "description": "The name of a `backup-targets` object. Where the copy goes. Left empty, the cell's most roomy accepting target answers. A target in the volume's own pool is refused: a copy beside the original is a snapshot, and is lost with the pool it is in.",
            "type": "string"
          },
          "volume": {
            "description": "The name of a `volumes` object. What is copied.",
            "type": "string"
          }
        },
        "required": [
          "volume"
        ],
        "type": "object"
      },
      "BackupTarget": {
        "description": "What was asked for (`spec`), what is (`status`), and how far the second is behind the first (`meta.generation` against `status.observedGeneration`).",
        "properties": {
          "meta": {
            "$ref": "#/components/schemas/Meta"
          },
          "spec": {
            "$ref": "#/components/schemas/BackupTargetSpec"
          },
          "status": {
            "$ref": "#/components/schemas/Status"
          }
        },
        "required": [
          "meta",
          "spec",
          "status"
        ],
        "type": "object"
      },
      "BackupTargetSpec": {
        "additionalProperties": true,
        "description": "Where backups are kept. Deliberately not a pool: a copy that lives beside the original is a snapshot, and is lost with the pool it is in. A target in a volume's own pool is refused.",
        "properties": {
          "accepting": {
            "description": "Turning this off stops new copies going here. What is already here stays, and can still be restored from.",
            "type": "boolean"
          },
          "agent": {
            "description": "The name of a `pools` object. The pool agent that says whether this path is there, whether it can be written, and how much room is left. Named rather than claimed by whoever gets there first — a target assigned to nobody is one any agent could report on. Leave it empty and nobody looks: copies are still written by the pool holding the volume, and a path it cannot reach fails on the backup instead.",
            "type": "string"
          },
          "path": {
            "description": "An absolute path the agent can already write to. Mounting an NFS or CIFS share is the host's job, not this platform's — one that managed its own mounts would be a second, worse copy of what init already does.",
            "type": "string"
          },
          "verifyEveryHours": {
            "description": "How often a copy here is read back and checked against what it hashed to when it was written. 0 never checks, which is the default: verification reads every byte of a copy, and that is real I/O somebody has to decide to spend. Without it, 'the backup exists' is the only thing anybody can say about it. One copy per pass, the one whose last check is stalest — so a target holding more copies checks each of them less often rather than falling behind on the work that is not optional.",
            "maximum": 8760,
            "minimum": 0,
            "type": "integer",
            "x-unit": "hours"
          }
        },
        "required": [
          "path"
        ],
        "type": "object"
      },
      "Capture": {
        "description": "What was asked for (`spec`), what is (`status`), and how far the second is behind the first (`meta.generation` against `status.observedGeneration`).",
        "properties": {
          "meta": {
            "$ref": "#/components/schemas/Meta"
          },
          "spec": {
            "$ref": "#/components/schemas/CaptureSpec"
          },
          "status": {
            "$ref": "#/components/schemas/Status"
          }
        },
        "required": [
          "meta",
          "spec",
          "status"
        ],
        "type": "object"
      },
      "CaptureSpec": {
        "additionalProperties": true,
        "description": "Build an instance by hand, get it right, capture it — then every instance made from the result starts where that one left off. It has to be stopped first: a disk copied from under a running machine is crash-consistent, and a template is stamped out by people who assume it is clean.",
        "properties": {
          "instance": {
            "description": "The name of a `instances` object. It must be stopped. A disk copied from under a running machine is crash-consistent, which a template stamped out a hundred times must not be — if you want a copy of a running instance, take a backup instead.",
            "type": "string"
          },
          "label": {
            "description": "What the resulting image is called. Its digest is added to this — a list of hashes is not something anybody chooses from.",
            "format": "id",
            "type": "string"
          },
          "target": {
            "description": "The name of a `backup-targets` object. Where the bytes go. Any node that can reach the same path can then boot instances from the image.",
            "type": "string"
          }
        },
        "required": [
          "instance",
          "label",
          "target"
        ],
        "type": "object"
      },
      "CephCluster": {
        "description": "What was asked for (`spec`), what is (`status`), and how far the second is behind the first (`meta.generation` against `status.observedGeneration`).",
        "properties": {
          "meta": {
            "$ref": "#/components/schemas/Meta"
          },
          "spec": {
            "$ref": "#/components/schemas/CephClusterSpec"
          },
          "status": {
            "$ref": "#/components/schemas/Status"
          }
        },
        "required": [
          "meta",
          "spec",
          "status"
        ],
        "type": "object"
      },
      "CephClusterSpec": {
        "additionalProperties": true,
        "description": "Cluster storage every node reaches, instead of a pool per machine. Optional: a cell with directory pools is a working cell, and nothing here turns itself on. Choosing a disk for an OSD erases it.",
        "properties": {
          "clusterNetwork": {
            "description": "A separate network for replication. Empty means the one above carries both, which is the ordinary answer for a small cluster.",
            "format": "cidr",
            "type": "string"
          },
          "monitors": {
            "description": "Three nodes, or one for a lab. Never two: a quorum of two survives no failures and looks like it would.",
            "items": {
              "description": "The name of a `nodes` object.",
              "type": "string"
            },
            "type": "array"
          },
          "osds": {
            "description": "One disk, one OSD. Anything that cannot be chosen says why beside it rather than being greyed out — only a device the node can see is empty is offered, so a disk you really do want to give up has to be wiped outside the platform first.",
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": "array"
          },
          "paused": {
            "description": "Stops the deployment where it stands. Nothing is torn down, and turning it off carries on from there.",
            "type": "boolean"
          },
          "pools": {
            "description": "Where volumes are stored. Remove marks an existing pool for deletion; Ceph refuses it while it contains any objects. Copies is how many of every object exist; below the floor the pool refuses writes rather than holding data it cannot protect — so a floor equal to the copies means one node rebooting stops writing.",
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": "array"
          },
          "publicNetwork": {
            "description": "Where the daemons talk to each other and to clients. A node with several interfaces has several answers, and the wrong one puts replication traffic on the tenant network.",
            "format": "cidr",
            "type": "string"
          }
        },
        "required": [
          "publicNetwork",
          "monitors"
        ],
        "type": "object"
      },
      "Condition": {
        "properties": {
          "kind": {
            "description": "`Ready`, `Scheduled`, `Applied`, …",
            "type": "string"
          },
          "lastTransition": {
            "type": "integer"
          },
          "message": {
            "description": "A sentence, for a person.",
            "type": "string"
          },
          "observedGeneration": {
            "type": "integer"
          },
          "reason": {
            "description": "One word in CamelCase, for a program.",
            "type": "string"
          },
          "status": {
            "enum": [
              "True",
              "False",
              "Unknown"
            ],
            "type": "string"
          }
        },
        "required": [
          "kind",
          "status"
        ],
        "type": "object"
      },
      "ConsoleSession": {
        "description": "What was asked for (`spec`), what is (`status`), and how far the second is behind the first (`meta.generation` against `status.observedGeneration`).",
        "properties": {
          "meta": {
            "$ref": "#/components/schemas/Meta"
          },
          "spec": {
            "$ref": "#/components/schemas/ConsoleSessionSpec"
          },
          "status": {
            "$ref": "#/components/schemas/Status"
          }
        },
        "required": [
          "meta",
          "spec",
          "status"
        ],
        "type": "object"
      },
      "ConsoleSessionSpec": {
        "additionalProperties": true,
        "description": "The console has no form for this collection, so its fields are not enumerated here; docs/rest-contract.md names them.",
        "type": "object"
      },
      "DeviceClass": {
        "description": "What was asked for (`spec`), what is (`status`), and how far the second is behind the first (`meta.generation` against `status.observedGeneration`).",
        "properties": {
          "meta": {
            "$ref": "#/components/schemas/Meta"
          },
          "spec": {
            "$ref": "#/components/schemas/DeviceClassSpec"
          },
          "status": {
            "$ref": "#/components/schemas/Status"
          }
        },
        "required": [
          "meta",
          "spec",
          "status"
        ],
        "type": "object"
      },
      "DeviceClassSpec": {
        "additionalProperties": true,
        "description": "Names for interchangeable hardware. An instance asks for a class, never an address: an address belongs to one machine, so an instance naming one could only ever run there. A device is offered only when everything in its IOMMU group is free — a group is passed through whole or not at all.",
        "properties": {
          "description": {
            "description": "What to call it in this console.",
            "type": "string"
          },
          "matches": {
            "description": "vendor:device, as `lspci -n` prints it. Several, because a fleet buys the same accelerator across board revisions.",
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "matches"
        ],
        "type": "object"
      },
      "Enrollment": {
        "description": "What was asked for (`spec`), what is (`status`), and how far the second is behind the first (`meta.generation` against `status.observedGeneration`).",
        "properties": {
          "meta": {
            "$ref": "#/components/schemas/Meta"
          },
          "spec": {
            "$ref": "#/components/schemas/EnrollmentSpec"
          },
          "status": {
            "$ref": "#/components/schemas/Status"
          }
        },
        "required": [
          "meta",
          "spec",
          "status"
        ],
        "type": "object"
      },
      "EnrollmentSpec": {
        "additionalProperties": true,
        "description": "The console has no form for this collection, so its fields are not enumerated here; docs/rest-contract.md names them.",
        "type": "object"
      },
      "Error": {
        "properties": {
          "error": {
            "properties": {
              "code": {
                "enum": [
                  "INVALID_ARGUMENT",
                  "NOT_FOUND",
                  "ALREADY_EXISTS",
                  "FAILED_PRECONDITION",
                  "ABORTED",
                  "RESOURCE_EXHAUSTED",
                  "PERMISSION_DENIED",
                  "UNAUTHENTICATED",
                  "INTERNAL"
                ],
                "type": "string"
              },
              "field": {
                "description": "The offending path, `spec.vcpus`, when there is one.",
                "type": "string"
              },
              "message": {
                "description": "A sentence for a person.",
                "type": "string"
              }
            },
            "required": [
              "code",
              "message"
            ],
            "type": "object"
          }
        },
        "required": [
          "error"
        ],
        "type": "object"
      },
      "Flavor": {
        "description": "What was asked for (`spec`), what is (`status`), and how far the second is behind the first (`meta.generation` against `status.observedGeneration`).",
        "properties": {
          "meta": {
            "$ref": "#/components/schemas/Meta"
          },
          "spec": {
            "$ref": "#/components/schemas/FlavorSpec"
          },
          "status": {
            "$ref": "#/components/schemas/Status"
          }
        },
        "required": [
          "meta",
          "spec",
          "status"
        ],
        "type": "object"
      },
      "FlavorSpec": {
        "additionalProperties": true,
        "description": "Named machine sizes, offered by the cell. An instance is an m1-small, not a hand-entered triple of numbers — the sizes that land on the fleet are the shapes it was bought for. Whether a project may also size by hand is that project's policy.",
        "properties": {
          "description": {
            "description": "One sentence for the picker. The numbers already say most of it.",
            "type": "string"
          },
          "memoryMib": {
            "maximum": 4194304,
            "minimum": 256,
            "type": "integer",
            "x-unit": "MiB"
          },
          "rootDiskGib": {
            "maximum": 65536,
            "minimum": 1,
            "type": "integer",
            "x-unit": "GiB"
          },
          "vcpus": {
            "maximum": 256,
            "minimum": 1,
            "type": "integer"
          }
        },
        "required": [
          "vcpus",
          "memoryMib",
          "rootDiskGib"
        ],
        "type": "object"
      },
      "FloatingIP": {
        "description": "What was asked for (`spec`), what is (`status`), and how far the second is behind the first (`meta.generation` against `status.observedGeneration`).",
        "properties": {
          "meta": {
            "$ref": "#/components/schemas/Meta"
          },
          "spec": {
            "$ref": "#/components/schemas/FloatingIPSpec"
          },
          "status": {
            "$ref": "#/components/schemas/Status"
          }
        },
        "required": [
          "meta",
          "spec",
          "status"
        ],
        "type": "object"
      },
      "FloatingIPSpec": {
        "additionalProperties": true,
        "description": "Addresses that outlive the machine answering on them. The address is held by the declaration, not by the port, so replacing an instance does not change what the outside world reaches.",
        "properties": {
          "address": {
            "description": "Leave empty to be given the lowest address nothing else holds.",
            "format": "ip",
            "type": "string"
          },
          "announce": {
            "description": "The machine holding the instance is the shortest path: nothing is encapsulated for traffic to and from the world, and the route follows a live migration by itself. It needs every hypervisor to be allowed to peer with the router above it. A gateway node needs only that one machine to peer, and costs a detour in both directions.",
            "enum": [
              "",
              "FromHost",
              "FromGateway"
            ],
            "type": "string"
          },
          "delivery": {
            "description": "Held by the instance means the address is bound to its port and configured inside the machine — nothing rewrites a packet, and the machine can tell anybody its own address, which SIP, FTP, IPsec and mDNS all need. Translated means the edge answers for it and the machine never knows. A held address has to come from an external network.",
            "enum": [
              "Nat",
              "Routed"
            ],
            "type": "string"
          },
          "instance": {
            "description": "The name of a `instances` object. The instance this address sits in front of. Its interface and the cell's public pool are found for you — name the subnet under More settings to choose v6, or a particular pool. Settable at creation only.",
            "type": "string",
            "x-at-creation": true
          },
          "port": {
            "description": "The name of a `ports` object. The port this address reaches. Clearing it holds the address while the machine behind it is replaced.",
            "type": "string"
          },
          "subnet": {
            "description": "The name of a `subnets` object. Where the address comes from. Left empty, the cell's public pool answers — IPv4 first. Naming a subnet is how you choose v6, or a particular pool.",
            "type": "string"
          }
        },
        "type": "object"
      },
      "Folder": {
        "description": "What was asked for (`spec`), what is (`status`), and how far the second is behind the first (`meta.generation` against `status.observedGeneration`).",
        "properties": {
          "meta": {
            "$ref": "#/components/schemas/Meta"
          },
          "spec": {
            "$ref": "#/components/schemas/FolderSpec"
          },
          "status": {
            "$ref": "#/components/schemas/Status"
          }
        },
        "required": [
          "meta",
          "spec",
          "status"
        ],
        "type": "object"
      },
      "FolderSpec": {
        "additionalProperties": true,
        "description": "A place to put projects, and a place to grant a role once instead of forty times. Roles granted here reach everything below.",
        "properties": {
          "displayName": {
            "type": "string"
          },
          "parent": {
            "description": "The name of a `folders` object. Left empty this folder sits at the top. Roles granted above it reach in here too.",
            "type": "string"
          }
        },
        "type": "object"
      },
      "Image": {
        "description": "What was asked for (`spec`), what is (`status`), and how far the second is behind the first (`meta.generation` against `status.observedGeneration`).",
        "properties": {
          "meta": {
            "$ref": "#/components/schemas/Meta"
          },
          "spec": {
            "$ref": "#/components/schemas/ImageSpec"
          },
          "status": {
            "$ref": "#/components/schemas/Status"
          }
        },
        "required": [
          "meta",
          "spec",
          "status"
        ],
        "type": "object"
      },
      "ImageSource": {
        "description": "What was asked for (`spec`), what is (`status`), and how far the second is behind the first (`meta.generation` against `status.observedGeneration`).",
        "properties": {
          "meta": {
            "$ref": "#/components/schemas/Meta"
          },
          "spec": {
            "$ref": "#/components/schemas/ImageSourceSpec"
          },
          "status": {
            "$ref": "#/components/schemas/Status"
          }
        },
        "required": [
          "meta",
          "spec",
          "status"
        ],
        "type": "object"
      },
      "ImageSourceSpec": {
        "additionalProperties": true,
        "description": "Where a family's images come from. The cell asks the checksums file what the current digest is, over https so the certificate is checked, and publishes an image when the answer is one it does not have. Nothing about a running instance changes: a machine keeps the bytes it was built from, and \"always the newest\" means new machines get it.",
        "properties": {
          "checksums": {
            "description": "A `sha256sum`- or `sha512sum`-style file covering the image's filename — Debian publishes only the latter for its cloud images, and either is read. **https only**, and refused otherwise: this is the one value the whole arrangement trusts, and whoever can rewrite it chooses what every new instance in this cell boots.",
            "format": "uri",
            "type": "string"
          },
          "everyMs": {
            "description": "Six hours when left empty. Cloud images are published daily at best, and a cell that asks every minute spends its day fetching a checksums file to learn nothing.",
            "maximum": 2592000000,
            "minimum": 60000,
            "type": "integer",
            "x-unit": "ms"
          },
          "family": {
            "description": "Everything this source publishes joins this family, and an instance asking for `families/debian-13` gets the newest of them.",
            "format": "id",
            "type": "string"
          },
          "format": {
            "description": "Leave it alone for a `.qcow2` file — the name settles it. Everywhere else it has to be said: nothing here ever fetches the bytes, and the filename lies (Ubuntu ships qcow2 under `.img`). A node handed a mis-declared image refuses the disk, and every instance of this family goes without one.",
            "enum": [
              "Qcow2",
              "Raw"
            ],
            "type": "string"
          },
          "keep": {
            "description": "How many of this family to keep. Three when left empty. An image an instance was built from is never taken away, however old — the instance would be unable to start on its next move.",
            "maximum": 50,
            "minimum": 1,
            "type": "integer"
          },
          "paused": {
            "description": "Stop looking, without forgetting where this came from.",
            "type": "boolean"
          },
          "url": {
            "description": "Where the bytes are. This may be plain http: the digest below is what makes fetching them safe, and a wrong byte gives a wrong digest and fails the fetch.",
            "format": "uri",
            "type": "string"
          }
        },
        "required": [
          "family",
          "url",
          "checksums"
        ],
        "type": "object"
      },
      "ImageSpec": {
        "additionalProperties": true,
        "description": "Content-addressed and immutable. Cached copies are a placement preference, never a requirement.",
        "properties": {
          "digest": {
            "description": "The bytes are addressed by this, so an image cannot be replaced under an instance that was built from it.",
            "format": "sha256",
            "type": "string"
          },
          "family": {
            "description": "What this image is, in the words somebody would use to ask for it. An instance can then name `families/debian-13` and get the newest one there is, resolved when it is created and written down — so an instance never changes its operating system on a restart.",
            "format": "id",
            "type": "string"
          },
          "format": {
            "enum": [
              "Raw",
              "Qcow2"
            ],
            "type": "string"
          },
          "from": {
            "description": "The name of a `images` object. Take the digest, format, size and source from an image that already exists. Nothing is copied — an image is addressed by its digest, so every node that had the bytes still has them. Anything you fill in below wins over what is taken. Settable at creation only.",
            "type": "string",
            "x-at-creation": true
          },
          "replacement": {
            "description": "The name of a `images` object. Named in the refusal a tenant reads, so they are told where to go rather than only that the door is shut.",
            "type": "string"
          },
          "sharedWith": {
            "description": "Projects that may boot from this image besides this one, or `*` for every project in the cell. A one-way grant: whoever receives it can boot and cannot edit, retire or delete.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "signature": {
            "description": "An Ed25519 signature over the digest line as written — `sha256:<hex>` or `sha512:<hex>` — base64. Accepted only when it verifies under a key the cell was started with; refused otherwise, so a stored signature is a verified one.",
            "type": "string"
          },
          "sizeBytes": {
            "maximum": 9223372036854775807,
            "minimum": 0,
            "type": "integer",
            "x-unit": "bytes"
          },
          "sourceUrl": {
            "format": "uri",
            "type": "string"
          },
          "state": {
            "description": "An image is never replaced, only superseded. Deprecating one stops a family choosing it while everything pinned to it keeps working; retiring it refuses anything new. Neither touches a running instance.",
            "enum": [
              "Active",
              "Deprecated",
              "Obsolete"
            ],
            "type": "string"
          },
          "version": {
            "description": "Which one in the family, for a person to read. Newest is decided by when this cell learned of the image, not by comparing this — every scheme for ordering version strings is wrong for somebody's.",
            "type": "string"
          }
        },
        "type": "object"
      },
      "Instance": {
        "description": "What was asked for (`spec`), what is (`status`), and how far the second is behind the first (`meta.generation` against `status.observedGeneration`).",
        "properties": {
          "meta": {
            "$ref": "#/components/schemas/Meta"
          },
          "spec": {
            "$ref": "#/components/schemas/InstanceSpec"
          },
          "status": {
            "$ref": "#/components/schemas/Status"
          }
        },
        "required": [
          "meta",
          "spec",
          "status"
        ],
        "type": "object"
      },
      "InstanceSpec": {
        "additionalProperties": true,
        "description": "Virtual machines. What was asked for is the spec; what the node reports is the status, and they are shown together.",
        "properties": {
          "bootVolume": {
            "description": "The name of a `volumes` object. Left empty, the root disk is a file on whichever machine runs this guest, sized by the flavor — and the guest cannot be moved to another machine, because moving a guest does not move its disk. Named, the root disk is that volume, in its pool: it is sized by the volume rather than by the flavor, it outlives the guest, and a guest whose root is in a pool both machines can reach can be moved between them. Settable at creation only.",
            "type": "string",
            "x-at-creation": true
          },
          "console": {
            "description": "Publishes what the operating system inside writes to its serial console, so it can be read here. Off by default because it costs a report every time it logs a line. An instance that is not running shows its last output whether this is on or not.",
            "type": "boolean"
          },
          "desiredState": {
            "description": "What it should be doing. Asking twice is the same as asking once.",
            "enum": [
              "Running",
              "Stopped"
            ],
            "type": "string"
          },
          "devices": {
            "description": "A class, not a machine's address. Two of the same class means two devices. An instance holding one cannot be live-migrated — a device's state is in hardware and cannot be transferred.",
            "items": {
              "description": "The name of a `device-classes` object.",
              "type": "string"
            },
            "type": "array"
          },
          "flavor": {
            "description": "The name of a `flavors` object. A named size from the cell's menu. Picking one sets the vCPUs, memory and root disk below; typing sizes instead needs the project's leave.",
            "type": "string"
          },
          "image": {
            "description": "The name of a `families` object. A family is a name for a line of builds — `debian-13`, not one digest. It resolves to the newest image in it at the moment this instance is created, and the instance keeps that image for life: a family publishing a new build never changes what is already running. Settable at creation only.",
            "type": "string",
            "x-at-creation": true
          },
          "memoryMib": {
            "maximum": 4194304,
            "minimum": 256,
            "type": "integer",
            "x-unit": "MiB"
          },
          "networks": {
            "description": "Left empty, this instance joins your project's default network — made the first time somebody needs it, so two machines in a project can talk without anybody configuring anything. Settable at creation only.",
            "items": {
              "description": "The name of a `networks` object.",
              "type": "string"
            },
            "type": "array",
            "x-at-creation": true
          },
          "node": {
            "description": "The name of a `nodes` object. Left empty the scheduler chooses. Moving it afterwards is a migration, not an edit.",
            "type": "string"
          },
          "onNodeLoss": {
            "description": "Only for an instance whose storage every node can reach. One on local storage that is started elsewhere is an empty machine wearing a familiar name. Recovery requires a fencing deadline and an operator's confirmation that the host was independently fenced. Silence alone never proves that its guests stopped.",
            "enum": [
              "leave",
              "restart"
            ],
            "type": "string"
          },
          "placementPolicy.affinity": {
            "description": "A rule refuses every node but the one the group is already on, and says which that is. A wish places elsewhere rather than not at all.",
            "enum": [
              "Required",
              "Preferred"
            ],
            "type": "string"
          },
          "placementPolicy.affinityGroup": {
            "description": "The opposite ask: instances in one group are placed together. For a pair that talks constantly — an application and the cache it reads on every request — where a hop between machines is the whole latency budget.",
            "format": "id",
            "type": "string"
          },
          "placementPolicy.antiAffinityGroup": {
            "description": "Instances in one group are kept off the same node — what keeps a service alive when a machine dies.",
            "format": "id",
            "type": "string"
          },
          "placementPolicy.minCpuLevel": {
            "description": "What the image needs to run. RHEL 9 and CentOS Stream 9 need x86-64-v2 or they will not boot.",
            "enum": [
              "",
              "x86-64-v2",
              "x86-64-v3",
              "x86-64-v4"
            ],
            "type": "string"
          },
          "placementPolicy.requiredLabels": {
            "description": "Only nodes carrying all of these.",
            "items": {
              "format": "id",
              "type": "string"
            },
            "type": "array"
          },
          "placementPolicy.spread": {
            "description": "A rule refuses a node that already runs a member — three replicas of a database must not share a machine even if that means one stays down. A wish takes a crowded node over not running at all, which is what twelve web servers want.",
            "enum": [
              "Required",
              "Preferred"
            ],
            "type": "string"
          },
          "ports": {
            "description": "For a NIC that already exists — one holding an address you want this instance to keep. To simply put a machine on a network, name the network above and the port is made for you.",
            "items": {
              "description": "The name of a `ports` object.",
              "type": "string"
            },
            "type": "array"
          },
          "rootDiskGib": {
            "description": "Set by the flavor when one is picked.",
            "maximum": 65536,
            "minimum": 1,
            "type": "integer",
            "x-unit": "GiB"
          },
          "sshKeys": {
            "description": "Read by cloud-init inside the instance on its **first** boot and never again, so adding one to a machine that has already started does nothing to that machine. Without a key and without a password set in user-data, the console is the only way in.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "startDelayS": {
            "description": "Measured from the newest start in that group, not each member in turn — a hundred instances at thirty seconds each would be fifty minutes of nothing happening.",
            "maximum": 3600,
            "minimum": 0,
            "type": "integer",
            "x-unit": "s"
          },
          "startOrder": {
            "description": "Lower starts first; the same number is a group that starts together. Matters after a power cut, when a node brings back everything it holds at once and the database loses the race for disk to a dozen web servers.",
            "maximum": 999,
            "minimum": 0,
            "type": "integer"
          },
          "userData": {
            "description": "Handed to the instance on first boot.",
            "type": "string"
          },
          "vcpus": {
            "maximum": 256,
            "minimum": 1,
            "type": "integer"
          },
          "volumes": {
            "description": "Attached once the instance is on a node. Take one off the list to detach it.",
            "items": {
              "description": "The name of a `volumes` object.",
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "image"
        ],
        "type": "object"
      },
      "LoadBalancer": {
        "description": "What was asked for (`spec`), what is (`status`), and how far the second is behind the first (`meta.generation` against `status.observedGeneration`).",
        "properties": {
          "meta": {
            "$ref": "#/components/schemas/Meta"
          },
          "spec": {
            "$ref": "#/components/schemas/LoadBalancerSpec"
          },
          "status": {
            "$ref": "#/components/schemas/Status"
          }
        },
        "required": [
          "meta",
          "spec",
          "status"
        ],
        "type": "object"
      },
      "LoadBalancerSpec": {
        "additionalProperties": true,
        "description": "One address in front of many ports. The network itself balances by connection, on whichever machine the traffic arrives at — there is no appliance to place and nothing to fail over. Nothing here probes a member's health: the pool is what was declared, not a judgement about it.",
        "properties": {
          "draining": {
            "description": "Members being taken out of service: they take no new connections and keep the ones they have until the clients are done. Every name here has to be one of the members. Removing a member outright cuts its connections instead.",
            "items": {
              "description": "The name of a `ports` object.",
              "type": "string"
            },
            "type": "array"
          },
          "listeners": {
            "description": "The ports the address answers on. Traffic is spread across the pool by connection, so one client's connection stays on one member.",
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": "array"
          },
          "members": {
            "description": "The ports behind the address — ports, not addresses, so an instance that moves stays in the pool. Empty holds the address and forwards to nothing.",
            "items": {
              "description": "The name of a `ports` object.",
              "type": "string"
            },
            "type": "array"
          },
          "network": {
            "description": "The name of a `networks` object. The network the address lives on. It scopes the service, so two projects may front the same address on different networks.",
            "type": "string"
          },
          "sessionAffinity": {
            "description": "For a service that keeps something per client between connections — a session in memory, an upload in pieces. The cost: one client is one member, so a pool fronting few busy clients spreads worse, and everyone behind one NAT counts as one client.",
            "type": "boolean"
          },
          "subnet": {
            "description": "The name of a `subnets` object. Where the address comes from. The same counting as a port's address and a floating IP's, so no two of them are ever the same address.",
            "type": "string"
          },
          "vip": {
            "description": "Leave empty to be given the lowest address nothing else holds.",
            "format": "ip",
            "type": "string"
          }
        },
        "required": [
          "network",
          "subnet",
          "listeners"
        ],
        "type": "object"
      },
      "MaintenanceWindow": {
        "description": "What was asked for (`spec`), what is (`status`), and how far the second is behind the first (`meta.generation` against `status.observedGeneration`).",
        "properties": {
          "meta": {
            "$ref": "#/components/schemas/Meta"
          },
          "spec": {
            "$ref": "#/components/schemas/MaintenanceWindowSpec"
          },
          "status": {
            "$ref": "#/components/schemas/Status"
          }
        },
        "required": [
          "meta",
          "spec",
          "status"
        ],
        "type": "object"
      },
      "MaintenanceWindowSpec": {
        "additionalProperties": true,
        "description": "Say in advance that a machine is going out of service, and the cell stops placing work on it when the time comes — without anybody being awake to flip a switch, and without anything to flip back afterwards. Whether a window is upcoming, open or over is read off the clock, so a window that ends puts everything back by ceasing to be open.",
        "properties": {
          "drain": {
            "description": "Off — nothing new is placed here and everything already running stays put, which is what a four-minute firmware update wants. On — the instances are migrated away as well, which is what pulling the machine wants. One that cannot move is left where it is, and :explainMaintenance says which.",
            "type": "boolean"
          },
          "minutes": {
            "description": "How long it stays open. There is no end time to keep in step with this one: two fields that can disagree about the same fact are one field too many.",
            "maximum": 20160,
            "minimum": 15,
            "type": "integer",
            "x-unit": "minutes"
          },
          "node": {
            "description": "The name of a `nodes` object. The machine going out of service.",
            "type": "string"
          },
          "note": {
            "description": "Shown wherever this window is the reason something was refused, so \"no capacity\" reads as \"node-b is out until 03:00 for the memory swap\" instead.",
            "type": "string"
          },
          "startsAt": {
            "description": "A moment, as milliseconds since the Unix epoch. In your own timezone. A start already past means now — work that has already begun is a true thing to declare.",
            "type": "integer"
          }
        },
        "required": [
          "node",
          "startsAt",
          "minutes"
        ],
        "type": "object"
      },
      "Meta": {
        "properties": {
          "createdAt": {
            "description": "Milliseconds since the Unix epoch.",
            "type": "integer"
          },
          "deletedAt": {
            "type": [
              "integer",
              "null"
            ]
          },
          "finalizers": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "generation": {
            "description": "Bumped on every change to spec.",
            "type": "integer"
          },
          "labels": {
            "additionalProperties": {
              "type": "string"
            },
            "type": "object"
          },
          "name": {
            "description": "The full resource name, `projects/p1/instances/i1`.",
            "type": "string"
          },
          "placement": {
            "properties": {
              "cell": {
                "type": "string"
              },
              "region": {
                "type": "string"
              }
            },
            "required": [
              "region",
              "cell"
            ],
            "type": "object"
          },
          "revision": {
            "description": "The store revision; what `If-Match` and `fromRevision` carry.",
            "type": "string"
          },
          "uid": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "uid",
          "generation",
          "revision",
          "placement",
          "createdAt"
        ],
        "type": "object"
      },
      "Migration": {
        "description": "What was asked for (`spec`), what is (`status`), and how far the second is behind the first (`meta.generation` against `status.observedGeneration`).",
        "properties": {
          "meta": {
            "$ref": "#/components/schemas/Meta"
          },
          "spec": {
            "$ref": "#/components/schemas/MigrationSpec"
          },
          "status": {
            "$ref": "#/components/schemas/Status"
          }
        },
        "required": [
          "meta",
          "spec",
          "status"
        ],
        "type": "object"
      },
      "MigrationSpec": {
        "additionalProperties": true,
        "description": "Moving a running instance to another node. There is no migrating state anywhere: this object is the ask, and whether it is finished is read from where the instance actually runs. Start one from the instance you want to move — the destination is chosen where it is.",
        "properties": {
          "connections": {
            "description": "Parallel streams for the transfer. One is the only value a local socket accepts.",
            "maximum": 8,
            "minimum": 1,
            "type": "integer"
          },
          "downtimeMs": {
            "description": "The pause the instance may take at the end. A busy one needs a larger budget or the transfer never converges.",
            "maximum": 60000,
            "minimum": 50,
            "type": "integer",
            "x-unit": "ms"
          },
          "fromNode": {
            "description": "The name of a `nodes` object. Where it is now. Taken from the instance above. Derived: omitted, the API fills it in; stated, it must agree.",
            "type": "string"
          },
          "instance": {
            "description": "The name of a `instances` object.",
            "type": "string"
          },
          "mode": {
            "description": "What a failure costs. Under Live the instance stays where it is; under Post-copy a failure mid-flight loses it.",
            "enum": [
              "Live",
              "PostCopy",
              "Reboot"
            ],
            "type": "string"
          },
          "timeoutS": {
            "description": "A migration that cannot converge is one that runs until somebody notices.",
            "maximum": 86400,
            "minimum": 30,
            "type": "integer",
            "x-unit": "s"
          },
          "toNode": {
            "description": "The name of a `nodes` object. Only the nodes that can receive this instance can be chosen. The rest are shown with the reason they cannot.",
            "type": "string"
          }
        },
        "required": [
          "instance",
          "toNode"
        ],
        "type": "object"
      },
      "Network": {
        "description": "What was asked for (`spec`), what is (`status`), and how far the second is behind the first (`meta.generation` against `status.observedGeneration`).",
        "properties": {
          "meta": {
            "$ref": "#/components/schemas/Meta"
          },
          "spec": {
            "$ref": "#/components/schemas/NetworkSpec"
          },
          "status": {
            "$ref": "#/components/schemas/Status"
          }
        },
        "required": [
          "meta",
          "spec",
          "status"
        ],
        "type": "object"
      },
      "NetworkSpec": {
        "additionalProperties": true,
        "description": "A private network of this project's own. Instances on one reach each other wherever they are placed, and nothing outside the project can join. Its VNI is the tag this cell puts on the network's packets to keep them apart from every other network's on the same wire.",
        "properties": {
          "announce": {
            "description": "What this cell does by default for addresses from this network. An individual address may say otherwise. Meaningless on a network that carries no real addresses.",
            "enum": [
              "FromGateway",
              "FromHost"
            ],
            "type": "string"
          },
          "external": {
            "description": "The prefixes on this network's subnets are routed to this cell by whoever is above it, so an address from one is an address the world can reach. Only a cell operator may say so — a tenant who could would mint themselves a public range by typing a CIDR.",
            "type": "boolean"
          },
          "hostBridge": {
            "description": "A bridge that already exists on the nodes — `br0`, `vmbr0`. Instances on this network go straight onto whatever the machine is on: the house LAN, a VLAN, a lab network. Their addresses come from whatever serves that wire and this platform allocates none, holds no gateway and enforces no security group. Empty is the ordinary case. Only a cell operator may set it — it is a decision about the machine, not about a project. Settable at creation only.",
            "type": "string",
            "x-at-creation": true
          },
          "mtu": {
            "description": "1450 when left empty. Everything a machine sends is carried across the cell's own network inside another 50 bytes of headers, so a network told to use the wire's own 1500 loses every large packet — which looks like an application bug for a week.",
            "maximum": 9216,
            "minimum": 1280,
            "type": "integer",
            "x-unit": "bytes"
          },
          "vni": {
            "description": "The number this cell tags the network's traffic with, so two projects that both use 10.0.0.0/24 never see each other's packets. Left empty, the cell assigns the smallest free one — which is the only correct answer, and not one a tenant can work out. Derived: omitted, the API fills it in; stated, it must agree.",
            "maximum": 16777215,
            "minimum": 0,
            "type": "integer"
          }
        },
        "type": "object"
      },
      "Node": {
        "description": "What was asked for (`spec`), what is (`status`), and how far the second is behind the first (`meta.generation` against `status.observedGeneration`).",
        "properties": {
          "meta": {
            "$ref": "#/components/schemas/Meta"
          },
          "spec": {
            "$ref": "#/components/schemas/NodeSpec"
          },
          "status": {
            "$ref": "#/components/schemas/Status"
          }
        },
        "required": [
          "meta",
          "spec",
          "status"
        ],
        "type": "object"
      },
      "NodeSpec": {
        "additionalProperties": true,
        "description": "Every machine in the cell: control planes, compute nodes and storage nodes. The spec is what an operator decided about one; the status is what its agent last reported. Adding one here creates the object and mints its registration token — shown once, because the platform keeps a hash and cannot show it again.",
        "properties": {
          "cpuBaseline": {
            "description": "Present the same CPU as other nodes so instances can migrate between them. Those already running keep the CPU they started with and adopt this one when they next restart.",
            "enum": [
              "",
              "x86-64-v2",
              "x86-64-v3",
              "x86-64-v4"
            ],
            "type": "string"
          },
          "evacuate": {
            "description": "Separate from draining. Draining says nothing new comes here; this says none of the old stays either. One migration is started per instance that can move — one holding a passed-through device cannot, and stays with the reason on it.",
            "type": "boolean"
          },
          "fenceAfterS": {
            "description": "How long this node may fail to report before it stops the instances it holds. Left empty it never does — and a node that never does is never recovered from, because nothing can tell unreachable from stopped. Set it and instances marked for restart can be brought up elsewhere.",
            "maximum": 3600,
            "minimum": 0,
            "type": "integer",
            "x-unit": "s"
          },
          "gateway": {
            "description": "A public address whose network says so is announced from here, and packets for it reach the instance over the overlay. Several machines may carry it — the network above sees them as equal next hops — and a cell with none simply cannot use that mode.",
            "type": "boolean"
          },
          "labels": {
            "description": "What placement policies match on.",
            "items": {
              "format": "id",
              "type": "string"
            },
            "type": "array"
          },
          "roles": {
            "description": "Control planes remain visible here but do not receive instances. Adding Compute makes the node eligible only after its compute agent reports Ready.",
            "items": {
              "enum": [
                "control-plane",
                "compute",
                "storage"
              ],
              "type": "string"
            },
            "type": "array",
            "uniqueItems": true
          },
          "schedulable": {
            "description": "Turning this off drains the node: nothing new is placed, what runs keeps running.",
            "type": "boolean"
          },
          "vcpuOvercommit": {
            "description": "How many vCPUs this machine may hand out per real core. Zero or one means one for one. A processor can be shared — two instances that both want a core get one each in turn, and being wrong costs speed — which is how nearly every fleet in the world is run. There is deliberately no setting for memory: an instance promised 8 GiB and handed 4 is not slow, it is killed.",
            "maximum": 32,
            "minimum": 0,
            "type": "integer",
            "x-unit": "per core"
          }
        },
        "type": "object"
      },
      "Operation": {
        "description": "What was asked for (`spec`), what is (`status`), and how far the second is behind the first (`meta.generation` against `status.observedGeneration`).",
        "properties": {
          "meta": {
            "$ref": "#/components/schemas/Meta"
          },
          "spec": {
            "$ref": "#/components/schemas/OperationSpec"
          },
          "status": {
            "$ref": "#/components/schemas/Status"
          }
        },
        "required": [
          "meta",
          "spec",
          "status"
        ],
        "type": "object"
      },
      "OperationSpec": {
        "additionalProperties": true,
        "description": "Track long-running requests and their outcomes. Pending progress follows the target; completed results are retained.",
        "properties": {
          "requestedBy": {
            "description": "Derived: omitted, the API fills it in; stated, it must agree.",
            "type": "string"
          },
          "target": {
            "description": "Derived: omitted, the API fills it in; stated, it must agree.",
            "type": "string"
          },
          "targetGeneration": {
            "description": "Which version of the target's spec this request concerns. A pending operation follows that version's progress; once finished, its outcome is retained even if the target changes again. Derived: omitted, the API fills it in; stated, it must agree.",
            "maximum": 9223372036854775807,
            "minimum": 0,
            "type": "integer"
          },
          "verb": {
            "description": "Derived: omitted, the API fills it in; stated, it must agree.",
            "type": "string"
          }
        },
        "required": [
          "target",
          "verb"
        ],
        "type": "object"
      },
      "Pool": {
        "description": "What was asked for (`spec`), what is (`status`), and how far the second is behind the first (`meta.generation` against `status.observedGeneration`).",
        "properties": {
          "meta": {
            "$ref": "#/components/schemas/Meta"
          },
          "spec": {
            "$ref": "#/components/schemas/PoolSpec"
          },
          "status": {
            "$ref": "#/components/schemas/Status"
          }
        },
        "required": [
          "meta",
          "spec",
          "status"
        ],
        "type": "object"
      },
      "PoolSpec": {
        "additionalProperties": true,
        "description": "Where volumes live. The spec is what an operator decided about a pool; the backend, the capacity and what is used are what its agent found.",
        "properties": {
          "accepting": {
            "description": "Turning this off drains the pool: nothing new is provisioned into it, what it holds stays.",
            "type": "boolean"
          },
          "backend": {
            "description": "The storage implementation the pool agent must use.",
            "enum": [
              "Ceph",
              "Directory",
              "Lvm",
              "External"
            ],
            "type": "string"
          },
          "backendTarget": {
            "description": "For Ceph, the RBD pool; for Directory, the absolute path; for LVM, the volume group.",
            "type": "string"
          },
          "labels": {
            "description": "What a volume's placement matches on.",
            "items": {
              "format": "id",
              "type": "string"
            },
            "type": "array"
          },
          "node": {
            "description": "The name of a `nodes` object. The machine this pool's bytes are on, where that is one machine. Leave it empty for storage every node can reach — a Ceph pool, an NFS mount — which is what the platform assumes when nothing is said. A directory or an LVM group is on one host, and until the object said so the platform would put a volume there, schedule the guest that needs it somewhere else, and let the attach fail with a path the tenant cannot act on.",
            "type": "string"
          },
          "projects": {
            "description": "Projects allowed to create volumes in this pool. Leave empty or use * for every project. Removing a project stops new placement and leaves its existing volumes untouched.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "scope": {
            "description": "Choose where workloads may reach these bytes. Machine storage stays tied to the selected node.",
            "enum": [
              "Global",
              "Region",
              "Machine"
            ],
            "type": "string"
          },
          "thinPool": {
            "description": "Optional thin pool inside the selected volume group. Used only by the LVM backend.",
            "type": "string"
          },
          "volumeCeiling.iops": {
            "description": "The most any one volume in this pool may take. A volume that names nothing of its own gets this; one that asks for more is brought down to it. Left empty there is no ceiling.",
            "maximum": 10000000,
            "minimum": 0,
            "type": "integer",
            "x-unit": "/s"
          },
          "volumeCeiling.readMibps": {
            "maximum": 1000000,
            "minimum": 0,
            "type": "integer",
            "x-unit": "MiB/s"
          },
          "volumeCeiling.writeMibps": {
            "maximum": 1000000,
            "minimum": 0,
            "type": "integer",
            "x-unit": "MiB/s"
          }
        },
        "required": [
          "scope",
          "backend"
        ],
        "type": "object"
      },
      "Port": {
        "description": "What was asked for (`spec`), what is (`status`), and how far the second is behind the first (`meta.generation` against `status.observedGeneration`).",
        "properties": {
          "meta": {
            "$ref": "#/components/schemas/Meta"
          },
          "spec": {
            "$ref": "#/components/schemas/PortSpec"
          },
          "status": {
            "$ref": "#/components/schemas/Status"
          }
        },
        "required": [
          "meta",
          "spec",
          "status"
        ],
        "type": "object"
      },
      "PortSpec": {
        "additionalProperties": true,
        "description": "What an instance is attached to the fabric by. Programmed means the agent has it in its maps.",
        "properties": {
          "address": {
            "description": "Left empty IPAM allocates one. It never changes afterwards — an address that moves under a running instance is an outage.",
            "format": "ip",
            "type": "string"
          },
          "mac": {
            "format": "mac",
            "type": "string"
          },
          "network": {
            "description": "The name of a `networks` object.",
            "type": "string"
          },
          "rateLimitMbit": {
            "description": "Zero is unlimited. Multi-tenancy without a ceiling is one noisy neighbour away from an incident.",
            "maximum": 400000,
            "minimum": 0,
            "type": "integer",
            "x-unit": "Mbit/s"
          },
          "securityGroups": {
            "description": "Rules only ever add allowances, so ordering does not matter and two groups cannot contradict each other. With none, the port keeps the platform's default: nothing in, everything out, replies always.",
            "items": {
              "description": "The name of a `security-groups` object.",
              "type": "string"
            },
            "type": "array"
          },
          "subnet": {
            "description": "The name of a `subnets` object.",
            "type": "string"
          }
        },
        "required": [
          "network",
          "subnet"
        ],
        "type": "object"
      },
      "Project": {
        "description": "What was asked for (`spec`), what is (`status`), and how far the second is behind the first (`meta.generation` against `status.observedGeneration`).",
        "properties": {
          "meta": {
            "$ref": "#/components/schemas/Meta"
          },
          "spec": {
            "$ref": "#/components/schemas/ProjectSpec"
          },
          "status": {
            "$ref": "#/components/schemas/Status"
          }
        },
        "required": [
          "meta",
          "spec",
          "status"
        ],
        "type": "object"
      },
      "ProjectSpec": {
        "additionalProperties": true,
        "description": "The quota and access anchor. Usage is counted from what exists, never decremented by hand.",
        "properties": {
          "cell": {
            "description": "A cell is one installation of this platform — its own machines, its own network and its own address space, administered as one thing. This says which of them holds this project's resources and where requests for them are routed. Leave empty to use whichever cell answers, which is what an installation with one cell wants.",
            "format": "id",
            "type": "string"
          },
          "displayName": {
            "type": "string"
          },
          "parent": {
            "description": "The name of a `folders` object. Roles granted on the folder reach every project under it. Quota and policy are this project's own.",
            "type": "string"
          },
          "policy.customSizes": {
            "description": "Whether instances here may be sized by typed numbers instead of a flavor. Only asked once the cell has flavors at all: with a menu defined, the closed answer is the sold one, and this is the deliberate exception for the customer whose shapes are their own. Settable at creation only.",
            "type": "boolean",
            "x-at-creation": true
          },
          "policy.devicePassthrough": {
            "description": "Whether instances here may be given a GPU or a NIC of their own. A passed-through device is a physical thing one instance holds and no other can have, so a project that may ask for them can empty a node of the hardware everybody else was scheduled against. Settable at creation only.",
            "type": "boolean",
            "x-at-creation": true
          },
          "policy.floatingIps": {
            "description": "Whether this project may claim addresses the world can reach. They come out of address space the cell was given by whoever is above it, so a project that could mint them could exhaust the pool every other project is waiting on. Settable at creation only.",
            "type": "boolean",
            "x-at-creation": true
          },
          "policy.hostBridges": {
            "description": "One bridge per line, as they are named on the nodes. A network put on one takes its instances off this platform's networks and onto whatever the machine is on — no address from us, no gateway, no security group. Empty means this project gets logical networks only, which is what a new customer should have. Named rather than a yes/no, because what anybody means by a host bridge is a particular wire. Settable at creation only.",
            "items": {
              "type": "string"
            },
            "type": "array",
            "x-at-creation": true
          },
          "quota.backupGib": {
            "description": "Counted from what each backup turned out to occupy. Left empty there is no limit.",
            "maximum": 1073741824,
            "minimum": 0,
            "type": "integer",
            "x-unit": "GiB"
          },
          "quota.backups": {
            "description": "Separate from snapshots because they live on a backup target rather than in the pool. Left empty there is no limit.",
            "maximum": 1000000,
            "minimum": 0,
            "type": "integer",
            "x-unit": "backups"
          },
          "quota.devices": {
            "description": "Each one is a piece of hardware that exists once and cannot be oversubscribed, so without a cap one project can take every accelerator in the cell. Left empty there is no limit.",
            "maximum": 10000,
            "minimum": 0,
            "type": "integer",
            "x-unit": "devices"
          },
          "quota.floatingIps": {
            "description": "An address that outlives the machine answering on it is scarce and externally routable. Left empty there is no limit.",
            "maximum": 100000,
            "minimum": 0,
            "type": "integer",
            "x-unit": "addresses"
          },
          "quota.instances": {
            "description": "How many instances may exist here at once, running or not. Left empty there is no limit — an empty box is stored as a zero, and the platform reads a zero quota as no cap rather than as none allowed.",
            "maximum": 100000,
            "minimum": 0,
            "type": "integer"
          },
          "quota.loadBalancers": {
            "description": "Each one takes an address out of a subnet and an entry on every host that traffic arrives at. Left empty there is no limit.",
            "maximum": 100000,
            "minimum": 0,
            "type": "integer",
            "x-unit": "balancers"
          },
          "quota.memoryMib": {
            "description": "Counted across every instance that exists, whether or not it is running. Left empty there is no limit.",
            "maximum": 100000000,
            "minimum": 0,
            "type": "integer",
            "x-unit": "MiB"
          },
          "quota.snapshotGib": {
            "description": "Counted from what each snapshot turned out to occupy, which the pool reports after the fact. Left empty there is no limit.",
            "maximum": 1073741824,
            "minimum": 0,
            "type": "integer",
            "x-unit": "GiB"
          },
          "quota.snapshots": {
            "description": "Cheap to ask for and occupying a pool for as long as they exist. A schedule nobody is watching is the ordinary way a cell fills up. Left empty there is no limit.",
            "maximum": 1000000,
            "minimum": 0,
            "type": "integer",
            "x-unit": "snapshots"
          },
          "quota.vcpus": {
            "description": "Counted across every instance that exists, whether or not it is running. Left empty there is no limit.",
            "maximum": 1000000,
            "minimum": 0,
            "type": "integer"
          },
          "quota.volumeGib": {
            "description": "The sizes of this project's volumes added up. Left empty there is no limit.",
            "maximum": 10000000,
            "minimum": 0,
            "type": "integer",
            "x-unit": "GiB"
          },
          "quota.volumes": {
            "description": "A count, separate from the space: per-volume overhead is a different worry from capacity, and the two are capped apart. Left empty there is no limit.",
            "maximum": 100000,
            "minimum": 0,
            "type": "integer",
            "x-unit": "volumes"
          }
        },
        "required": [
          "displayName"
        ],
        "type": "object"
      },
      "Release": {
        "description": "What was asked for (`spec`), what is (`status`), and how far the second is behind the first (`meta.generation` against `status.observedGeneration`).",
        "properties": {
          "meta": {
            "$ref": "#/components/schemas/Meta"
          },
          "spec": {
            "$ref": "#/components/schemas/ReleaseSpec"
          },
          "status": {
            "$ref": "#/components/schemas/Status"
          }
        },
        "required": [
          "meta",
          "spec",
          "status"
        ],
        "type": "object"
      },
      "ReleaseSpec": {
        "additionalProperties": true,
        "description": "A build the cell can move to, and where it comes from. Name the channel a published version was downloaded from — a GitHub release's directory, or a directory copied onto the control plane — and the cell reads which build it holds, fetches every file onto its own disk and verifies each. From then on the cell is the channel for its machines: a rollout hands each node what the cell holds, and an install medium is cut from the installer here.",
        "properties": {
          "url": {
            "description": "A directory holding the files a release publishes and their SHA256SUMS: a GitHub release's download directory, or file:///var/lib/velstra/releases/<version> for a directory copied onto the control plane. What it holds is what the release is — the version is read off the files, never typed — and the cell fetches every file onto its own disk before it is ready.",
            "format": "uri",
            "type": "string"
          }
        },
        "required": [
          "url"
        ],
        "type": "object"
      },
      "Role": {
        "description": "What was asked for (`spec`), what is (`status`), and how far the second is behind the first (`meta.generation` against `status.observedGeneration`).",
        "properties": {
          "meta": {
            "$ref": "#/components/schemas/Meta"
          },
          "spec": {
            "$ref": "#/components/schemas/RoleSpec"
          },
          "status": {
            "$ref": "#/components/schemas/Status"
          }
        },
        "required": [
          "meta",
          "spec",
          "status"
        ],
        "type": "object"
      },
      "RoleSpec": {
        "additionalProperties": true,
        "description": "The four rungs say how much somebody may do. A role here says *what* — collection by collection, for the case a rung cannot express: may restart the database machines, may not touch the network.",
        "properties": {
          "description": {
            "description": "Somebody granting this will read this line and nothing else.",
            "type": "string"
          },
          "displayName": {
            "type": "string"
          },
          "grants": {
            "description": "A verb, and the collections it applies to. Being able to act on something carries being able to see it — anything else is a button that works above a screen that shows nothing.",
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": "array"
          }
        },
        "required": [
          "grants"
        ],
        "type": "object"
      },
      "Rollout": {
        "description": "What was asked for (`spec`), what is (`status`), and how far the second is behind the first (`meta.generation` against `status.observedGeneration`).",
        "properties": {
          "meta": {
            "$ref": "#/components/schemas/Meta"
          },
          "spec": {
            "$ref": "#/components/schemas/RolloutSpec"
          },
          "status": {
            "$ref": "#/components/schemas/Status"
          }
        },
        "required": [
          "meta",
          "spec",
          "status"
        ],
        "type": "object"
      },
      "RolloutSpec": {
        "additionalProperties": true,
        "description": "Moving the cell's machines to a release, one at a time: taken out of service, drained if asked, handed what to run, waited for, put back. The control plane goes last. A machine that does not come back stops the rollout by name and leaves the rest as they were; one the cell cannot update is refused by name and the rest go on. Pause it and the machine in flight finishes while no other starts.",
        "properties": {
          "evacuate": {
            "description": "Every guest on a machine is moved to another before it is updated — live where the destination can take it. Off, its guests go down with its reboot. Settable at creation only.",
            "type": "boolean",
            "x-at-creation": true
          },
          "maxUnavailable": {
            "description": "How many machines may be out of service at the same time.",
            "maximum": 64,
            "minimum": 1,
            "type": "integer",
            "x-unit": "machines"
          },
          "nodes": {
            "description": "Which machines; none means every node in the cell. One at a time, the control plane last. A machine the cell cannot update — one running the NixOS module on its own operating system — is refused by name and the rest go on. Settable at creation only.",
            "items": {
              "description": "The name of a `nodes` object.",
              "type": "string"
            },
            "type": "array",
            "x-at-creation": true
          },
          "paused": {
            "description": "Finish the machine in flight and start no other. The knob to reach for at the first sign of trouble.",
            "type": "boolean"
          },
          "release": {
            "description": "The name of a `releases` object. What to move the machines to. Only a release that is ready — every file fetched and verified — moves anything. Settable at creation only.",
            "type": "string",
            "x-at-creation": true
          }
        },
        "required": [
          "release"
        ],
        "type": "object"
      },
      "Router": {
        "description": "What was asked for (`spec`), what is (`status`), and how far the second is behind the first (`meta.generation` against `status.observedGeneration`).",
        "properties": {
          "meta": {
            "$ref": "#/components/schemas/Meta"
          },
          "spec": {
            "$ref": "#/components/schemas/RouterSpec"
          },
          "status": {
            "$ref": "#/components/schemas/Status"
          }
        },
        "required": [
          "meta",
          "spec",
          "status"
        ],
        "type": "object"
      },
      "RouterSpec": {
        "additionalProperties": true,
        "description": "Which of this project's networks reach each other. A membership rather than a box: there is nothing to place and nothing to fail over — the gateway answers on whichever machine the packet is already on. The routed VNI and gateway MAC are what the cell tags and addresses that traffic with; nothing inside a machine has to know either.",
        "properties": {
          "networks": {
            "description": "The networks whose subnets reach each other. A network belongs to at most one router.",
            "items": {
              "description": "The name of a `networks` object.",
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "networks"
        ],
        "type": "object"
      },
      "SecurityGroup": {
        "description": "What was asked for (`spec`), what is (`status`), and how far the second is behind the first (`meta.generation` against `status.observedGeneration`).",
        "properties": {
          "meta": {
            "$ref": "#/components/schemas/Meta"
          },
          "spec": {
            "$ref": "#/components/schemas/SecurityGroupSpec"
          },
          "status": {
            "$ref": "#/components/schemas/Status"
          }
        },
        "required": [
          "meta",
          "spec",
          "status"
        ],
        "type": "object"
      },
      "SecurityGroupSpec": {
        "additionalProperties": true,
        "description": "What a port is allowed to carry. Rules only add allowances — ingress is denied, egress is allowed and replies always come back, so a port in no group is not an open one.",
        "properties": {
          "rules": {
            "description": "Every rule permits; none of them forbids. A group with no rules is a group that allows nothing extra, which is the platform's default anyway: nothing in, everything out, replies always.",
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "Snapshot": {
        "description": "What was asked for (`spec`), what is (`status`), and how far the second is behind the first (`meta.generation` against `status.observedGeneration`).",
        "properties": {
          "meta": {
            "$ref": "#/components/schemas/Meta"
          },
          "spec": {
            "$ref": "#/components/schemas/SnapshotSpec"
          },
          "status": {
            "$ref": "#/components/schemas/Status"
          }
        },
        "required": [
          "meta",
          "spec",
          "status"
        ],
        "type": "object"
      },
      "SnapshotSchedule": {
        "description": "What was asked for (`spec`), what is (`status`), and how far the second is behind the first (`meta.generation` against `status.observedGeneration`).",
        "properties": {
          "meta": {
            "$ref": "#/components/schemas/Meta"
          },
          "spec": {
            "$ref": "#/components/schemas/SnapshotScheduleSpec"
          },
          "status": {
            "$ref": "#/components/schemas/Status"
          }
        },
        "required": [
          "meta",
          "spec",
          "status"
        ],
        "type": "object"
      },
      "SnapshotScheduleSpec": {
        "additionalProperties": true,
        "description": "The cheap half of the pair. A snapshot lives in the volume's own pool — taken in a moment, costs almost nothing, and lost with the pool it is in. For a copy that survives losing the pool, use a backup schedule.",
        "properties": {
          "everyHours": {
            "description": "Cheap enough to run hourly. A snapshot lives in the volume's own pool: it is the right tool for going back an hour, and it is lost with the pool — which is what backups are for.",
            "maximum": 168,
            "minimum": 1,
            "type": "integer",
            "x-unit": "hours"
          },
          "keep": {
            "description": "Only finished ones count, so a run of failures never expires the last one that worked. Snapshots taken by hand are never expired.",
            "maximum": 336,
            "minimum": 1,
            "type": "integer",
            "x-unit": "snapshots"
          },
          "volume": {
            "description": "The name of a `volumes` object. What is snapshotted.",
            "type": "string"
          }
        },
        "required": [
          "volume",
          "everyHours",
          "keep"
        ],
        "type": "object"
      },
      "SnapshotSpec": {
        "additionalProperties": true,
        "description": "The console has no form for this collection, so its fields are not enumerated here; docs/rest-contract.md names them.",
        "type": "object"
      },
      "Status": {
        "additionalProperties": true,
        "description": "The owning agent's report. `Unknown` is an honest absence of knowledge — there is no `PENDING` — and the rest of the shape is the agent's.",
        "properties": {
          "conditions": {
            "items": {
              "$ref": "#/components/schemas/Condition"
            },
            "type": "array"
          },
          "observedGeneration": {
            "type": "integer"
          }
        },
        "type": "object"
      },
      "Subnet": {
        "description": "What was asked for (`spec`), what is (`status`), and how far the second is behind the first (`meta.generation` against `status.observedGeneration`).",
        "properties": {
          "meta": {
            "$ref": "#/components/schemas/Meta"
          },
          "spec": {
            "$ref": "#/components/schemas/SubnetSpec"
          },
          "status": {
            "$ref": "#/components/schemas/Status"
          }
        },
        "required": [
          "meta",
          "spec",
          "status"
        ],
        "type": "object"
      },
      "SubnetSpec": {
        "additionalProperties": true,
        "description": "A range on a network, and the count of what IPAM has handed out of it.",
        "properties": {
          "cidr": {
            "format": "cidr",
            "type": "string"
          },
          "dns": {
            "description": "Left empty the instances use this cell's own resolver, which names the project's other machines and forwards everything else. Name one here to send them somewhere of your own instead.",
            "items": {
              "format": "ip",
              "type": "string"
            },
            "type": "array"
          },
          "gateway": {
            "format": "ip",
            "type": "string"
          },
          "network": {
            "description": "The name of a `networks` object.",
            "type": "string"
          },
          "reserved": {
            "description": "Addresses the platform will not hand out.",
            "items": {
              "format": "ip",
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "network",
          "cidr",
          "gateway"
        ],
        "type": "object"
      },
      "UsageRecord": {
        "description": "What was asked for (`spec`), what is (`status`), and how far the second is behind the first (`meta.generation` against `status.observedGeneration`).",
        "properties": {
          "meta": {
            "$ref": "#/components/schemas/Meta"
          },
          "spec": {
            "$ref": "#/components/schemas/UsageRecordSpec"
          },
          "status": {
            "$ref": "#/components/schemas/Status"
          }
        },
        "required": [
          "meta",
          "spec",
          "status"
        ],
        "type": "object"
      },
      "UsageRecordSpec": {
        "additionalProperties": true,
        "description": "What this project had, read once an hour and kept for ninety days. A reading is a sample, not a total: something created and destroyed between two of them is in neither. Quota says what is in use now; this is the only thing that remembers.",
        "properties": {},
        "type": "object"
      },
      "User": {
        "description": "What was asked for (`spec`), what is (`status`), and how far the second is behind the first (`meta.generation` against `status.observedGeneration`).",
        "properties": {
          "meta": {
            "$ref": "#/components/schemas/Meta"
          },
          "spec": {
            "$ref": "#/components/schemas/UserSpec"
          },
          "status": {
            "$ref": "#/components/schemas/Status"
          }
        },
        "required": [
          "meta",
          "spec",
          "status"
        ],
        "type": "object"
      },
      "UserSpec": {
        "additionalProperties": true,
        "description": "Who can sign in. A password is set from the row rather than shown on it — the platform stores a hash and cannot recover the original, which is the point.",
        "properties": {
          "cellAdmin": {
            "description": "May do anything anywhere in this cell, including inside every project. Grant it to operate the platform, not to use it.",
            "type": "boolean"
          },
          "disabled": {
            "description": "Ends every session this account holds immediately, and refuses new sign-ins. Its roles are kept, so turning it back on restores exactly what it had.",
            "type": "boolean"
          },
          "displayName": {
            "description": "Shown on screen. Never used to decide anything — the account's id is its identity.",
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "service": {
            "description": "A program rather than a person: it signs in with no password and carries a token instead, minted by an operator and shown once. It is named in a project's bindings like anybody else and gets the same four roles.",
            "type": "boolean"
          }
        },
        "type": "object"
      },
      "Volume": {
        "description": "What was asked for (`spec`), what is (`status`), and how far the second is behind the first (`meta.generation` against `status.observedGeneration`).",
        "properties": {
          "meta": {
            "$ref": "#/components/schemas/Meta"
          },
          "spec": {
            "$ref": "#/components/schemas/VolumeSpec"
          },
          "status": {
            "$ref": "#/components/schemas/Status"
          }
        },
        "required": [
          "meta",
          "spec",
          "status"
        ],
        "type": "object"
      },
      "VolumeSpec": {
        "additionalProperties": true,
        "description": "Block devices. A volume knows nothing about who has it open — that is an attachment.",
        "properties": {
          "encryptionKey": {
            "description": "Not yet: this cell has no key manager, so a key here is refused and the bytes are stored in the clear. The field is here for when one exists. Settable at creation only.",
            "type": "string",
            "x-at-creation": true
          },
          "limits.iops": {
            "description": "What this volume may take. Left empty — which is stored as a zero — it takes the pool's ceiling, if the pool has one, and asking for more than the ceiling gets the ceiling rather than a refusal.",
            "maximum": 10000000,
            "minimum": 0,
            "type": "integer",
            "x-unit": "/s"
          },
          "limits.readMibps": {
            "description": "Read bandwidth. Left empty it takes the pool's ceiling, if the pool has one.",
            "maximum": 1000000,
            "minimum": 0,
            "type": "integer",
            "x-unit": "MiB/s"
          },
          "limits.writeMibps": {
            "description": "Write bandwidth. Left empty it takes the pool's ceiling. Separate from reads because they are not the same cost on any backend here: a write to a replicated Ceph pool is three writes.",
            "maximum": 1000000,
            "minimum": 0,
            "type": "integer",
            "x-unit": "MiB/s"
          },
          "pool": {
            "description": "The name of a `pools` object. Left empty, the cell chooses: the accepting pool with the most room. Naming one is for operators pinning a volume to specific hardware — a tenant cannot list pools and does not need to. Settable at creation only.",
            "type": "string",
            "x-at-creation": true
          },
          "sizeGib": {
            "maximum": 262144,
            "minimum": 1,
            "type": "integer",
            "x-unit": "GiB"
          },
          "sourceBackup": {
            "description": "The name of a `backups` object. Restores that copy into a new volume. This is the way back when the pool the volume lived on is gone. Settable at creation only.",
            "type": "string",
            "x-at-creation": true
          },
          "sourceImage": {
            "description": "The name of a `images` object. Left empty the volume comes up blank. Settable at creation only.",
            "type": "string",
            "x-at-creation": true
          },
          "sourceSnapshot": {
            "description": "Restores that snapshot into a new volume. A volume is never restored in place, so this is what restoring means. Settable at creation only.",
            "type": "string",
            "x-at-creation": true
          }
        },
        "required": [
          "sizeGib"
        ],
        "type": "object"
      }
    },
    "securitySchemes": {
      "bearer": {
        "description": "A session token from `POST /api/v1/sessions`, a service-account token from `POST /api/v1/users/{id}/tokens`, or a node's own credential.",
        "scheme": "bearer",
        "type": "http"
      }
    }
  },
  "info": {
    "description": "The JSON gateway over the same handlers gRPC serves. A resource is addressed the way AIP addresses one — `projects/{project}/instances/{instance}` — and the HTTP path is that name under `/api/v1/`. Every resource body is `meta`, `spec` and `status`: what was asked for, and what the node that owns it reports. Only a controller writes spec; only the owning agent writes status; `generation` and `observedGeneration` say whether the second has caught up with the first. docs/rest-contract.md is the contract in prose; this document is derived from the router and the console's schema and cannot disagree with either.",
    "title": "Velstra Cloud",
    "version": "0.1.0"
  },
  "openapi": "3.1.0",
  "paths": {
    "/api/v1/audit": {
      "get": {
        "operationId": "list-audit",
        "parameters": [
          {
            "description": "How many to return; the response carries `nextPageToken` when there are more.",
            "in": "query",
            "name": "pageSize",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "Where the previous page ended.",
            "in": "query",
            "name": "pageToken",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only objects carrying these labels, as `key=value,key2=value2`.",
            "in": "query",
            "name": "labels",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "`true` streams changes as server-sent events instead of listing.",
            "in": "query",
            "name": "watch",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "description": "With `watch`: the revision a list reported, so nothing between the list and the watch is lost.",
            "in": "query",
            "name": "fromRevision",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only objects created at or after this moment: milliseconds since the epoch, or a span back from now like `30m`, `6h`, `7d`.",
            "in": "query",
            "name": "since",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only objects created before this moment, same spellings as `since`. Exclusive, so two adjacent ranges neither overlap nor skip.",
            "in": "query",
            "name": "until",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "`name` or `createdAt`, optionally followed by ` desc`. An ordered listing is a top-N: everything the filter admits is read and sorted, and the first `pageSize` of the sorted order is returned with no `nextPageToken` (and `\"truncated\": true` when the answer was cut). Refused together with `pageToken`.",
            "in": "query",
            "name": "orderBy",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "A read mask: comma-separated dotted paths, as `meta.name,status.conditions`. `meta.name` is always returned.",
            "in": "query",
            "name": "fields",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "items": {
                      "items": {
                        "$ref": "#/components/schemas/AuditRecord"
                      },
                      "type": "array"
                    },
                    "nextPageToken": {
                      "type": "string"
                    },
                    "revision": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "items",
                    "revision"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A page of objects. `X-Velstra-Revision` is the revision the list is consistent at."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "List Audit",
        "tags": [
          "Audit"
        ]
      }
    },
    "/api/v1/audit/{name}": {
      "delete": {
        "description": "Marks the object for deletion; it is gone once every finalizer has released it.",
        "operationId": "delete-audit",
        "parameters": [
          {
            "description": "The object's id — the last segment of its name.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "202": {
            "description": "Deleting: the object exists until its finalizers release it."
          },
          "204": {
            "description": "Gone."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Delete one of Audit",
        "tags": [
          "Audit"
        ]
      },
      "get": {
        "operationId": "get-audit",
        "parameters": [
          {
            "description": "The object's id — the last segment of its name.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuditRecord"
                }
              }
            },
            "description": "The object."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Read one of Audit",
        "tags": [
          "Audit"
        ]
      }
    },
    "/api/v1/backup-targets": {
      "get": {
        "operationId": "list-backup-targets",
        "parameters": [
          {
            "description": "How many to return; the response carries `nextPageToken` when there are more.",
            "in": "query",
            "name": "pageSize",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "Where the previous page ended.",
            "in": "query",
            "name": "pageToken",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only objects carrying these labels, as `key=value,key2=value2`.",
            "in": "query",
            "name": "labels",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "`true` streams changes as server-sent events instead of listing.",
            "in": "query",
            "name": "watch",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "description": "With `watch`: the revision a list reported, so nothing between the list and the watch is lost.",
            "in": "query",
            "name": "fromRevision",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only objects created at or after this moment: milliseconds since the epoch, or a span back from now like `30m`, `6h`, `7d`.",
            "in": "query",
            "name": "since",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only objects created before this moment, same spellings as `since`. Exclusive, so two adjacent ranges neither overlap nor skip.",
            "in": "query",
            "name": "until",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "`name` or `createdAt`, optionally followed by ` desc`. An ordered listing is a top-N: everything the filter admits is read and sorted, and the first `pageSize` of the sorted order is returned with no `nextPageToken` (and `\"truncated\": true` when the answer was cut). Refused together with `pageToken`.",
            "in": "query",
            "name": "orderBy",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "A read mask: comma-separated dotted paths, as `meta.name,status.conditions`. `meta.name` is always returned.",
            "in": "query",
            "name": "fields",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "items": {
                      "items": {
                        "$ref": "#/components/schemas/BackupTarget"
                      },
                      "type": "array"
                    },
                    "nextPageToken": {
                      "type": "string"
                    },
                    "revision": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "items",
                    "revision"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A page of objects. `X-Velstra-Revision` is the revision the list is consistent at."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "List Backup targets",
        "tags": [
          "Backup targets"
        ]
      },
      "post": {
        "operationId": "create-backup-targets",
        "parameters": [
          {
            "description": "A key of the caller's own invention, sent again on every retry of the same create. The second attempt is answered with the first attempt's operation and target instead of making a second object, and carries `x-velstra-idempotent-replay: true`. Reusing a key for a different request is refused. Keys are remembered for a day. Registering a node or a pool does not take one: its answer carries a credential shown only once.",
            "in": "header",
            "name": "idempotency-key",
            "required": false,
            "schema": {
              "maxLength": 255,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "id": {
                    "description": "The last segment of the name.",
                    "type": "string"
                  },
                  "labels": {
                    "additionalProperties": {
                      "type": "string"
                    },
                    "type": "object"
                  },
                  "spec": {
                    "$ref": "#/components/schemas/BackupTargetSpec"
                  }
                },
                "required": [
                  "id",
                  "spec"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "joinToken": {
                      "description": "Only when a node or pool was registered and this API advertises an address: the whole hand-off in one string — token, cell, addresses and certificate — to paste into the installer or `velstra-cloud-node setup --join`. Shown once. See docs/joining.md.",
                      "type": "string"
                    },
                    "nodeToken": {
                      "description": "Only when a node was registered: the agent's bearer token, returned once and never readable again.",
                      "type": "string"
                    },
                    "operation": {
                      "description": "The operation's resource name. Read it to learn when the object settled.",
                      "type": "string"
                    },
                    "poolToken": {
                      "description": "Only when a pool was registered: the pool agent's bearer token, returned once and never readable again.",
                      "type": "string"
                    },
                    "target": {
                      "description": "The name the object was given.",
                      "type": "string"
                    }
                  },
                  "required": [
                    "operation",
                    "target"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Accepted. The object exists and is converging; poll the operation named here."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Create one of Backup targets",
        "tags": [
          "Backup targets"
        ]
      }
    },
    "/api/v1/backup-targets/{name}": {
      "delete": {
        "description": "Marks the object for deletion; it is gone once every finalizer has released it.",
        "operationId": "delete-backup-targets",
        "parameters": [
          {
            "description": "The object's id — the last segment of its name.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "202": {
            "description": "Deleting: the object exists until its finalizers release it."
          },
          "204": {
            "description": "Gone."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Delete one of Backup targets",
        "tags": [
          "Backup targets"
        ]
      },
      "get": {
        "operationId": "get-backup-targets",
        "parameters": [
          {
            "description": "The object's id — the last segment of its name.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BackupTarget"
                }
              }
            },
            "description": "The object."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Read one of Backup targets",
        "tags": [
          "Backup targets"
        ]
      },
      "patch": {
        "description": "Only `spec` and `labels` are writable here; `status` is the owning agent's, written through `:reportStatus`. Send `If-Match` with the revision read to make the write a compare-and-swap.",
        "operationId": "patch-backup-targets",
        "parameters": [
          {
            "description": "The object's id — the last segment of its name.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "labels": {
                    "additionalProperties": {
                      "type": "string"
                    },
                    "type": "object"
                  },
                  "spec": {
                    "$ref": "#/components/schemas/BackupTargetSpec"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BackupTarget"
                }
              }
            },
            "description": "The object as stored."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Change the spec of one of Backup targets",
        "tags": [
          "Backup targets"
        ]
      }
    },
    "/api/v1/bgp-peers": {
      "get": {
        "operationId": "list-bgp-peers",
        "parameters": [
          {
            "description": "How many to return; the response carries `nextPageToken` when there are more.",
            "in": "query",
            "name": "pageSize",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "Where the previous page ended.",
            "in": "query",
            "name": "pageToken",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only objects carrying these labels, as `key=value,key2=value2`.",
            "in": "query",
            "name": "labels",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "`true` streams changes as server-sent events instead of listing.",
            "in": "query",
            "name": "watch",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "description": "With `watch`: the revision a list reported, so nothing between the list and the watch is lost.",
            "in": "query",
            "name": "fromRevision",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only objects created at or after this moment: milliseconds since the epoch, or a span back from now like `30m`, `6h`, `7d`.",
            "in": "query",
            "name": "since",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only objects created before this moment, same spellings as `since`. Exclusive, so two adjacent ranges neither overlap nor skip.",
            "in": "query",
            "name": "until",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "`name` or `createdAt`, optionally followed by ` desc`. An ordered listing is a top-N: everything the filter admits is read and sorted, and the first `pageSize` of the sorted order is returned with no `nextPageToken` (and `\"truncated\": true` when the answer was cut). Refused together with `pageToken`.",
            "in": "query",
            "name": "orderBy",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "A read mask: comma-separated dotted paths, as `meta.name,status.conditions`. `meta.name` is always returned.",
            "in": "query",
            "name": "fields",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "items": {
                      "items": {
                        "$ref": "#/components/schemas/BGPPeer"
                      },
                      "type": "array"
                    },
                    "nextPageToken": {
                      "type": "string"
                    },
                    "revision": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "items",
                    "revision"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A page of objects. `X-Velstra-Revision` is the revision the list is consistent at."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "List BGP peers",
        "tags": [
          "BGP peers"
        ]
      },
      "post": {
        "operationId": "create-bgp-peers",
        "parameters": [
          {
            "description": "A key of the caller's own invention, sent again on every retry of the same create. The second attempt is answered with the first attempt's operation and target instead of making a second object, and carries `x-velstra-idempotent-replay: true`. Reusing a key for a different request is refused. Keys are remembered for a day. Registering a node or a pool does not take one: its answer carries a credential shown only once.",
            "in": "header",
            "name": "idempotency-key",
            "required": false,
            "schema": {
              "maxLength": 255,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "id": {
                    "description": "The last segment of the name.",
                    "type": "string"
                  },
                  "labels": {
                    "additionalProperties": {
                      "type": "string"
                    },
                    "type": "object"
                  },
                  "spec": {
                    "$ref": "#/components/schemas/BGPPeerSpec"
                  }
                },
                "required": [
                  "id",
                  "spec"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "joinToken": {
                      "description": "Only when a node or pool was registered and this API advertises an address: the whole hand-off in one string — token, cell, addresses and certificate — to paste into the installer or `velstra-cloud-node setup --join`. Shown once. See docs/joining.md.",
                      "type": "string"
                    },
                    "nodeToken": {
                      "description": "Only when a node was registered: the agent's bearer token, returned once and never readable again.",
                      "type": "string"
                    },
                    "operation": {
                      "description": "The operation's resource name. Read it to learn when the object settled.",
                      "type": "string"
                    },
                    "poolToken": {
                      "description": "Only when a pool was registered: the pool agent's bearer token, returned once and never readable again.",
                      "type": "string"
                    },
                    "target": {
                      "description": "The name the object was given.",
                      "type": "string"
                    }
                  },
                  "required": [
                    "operation",
                    "target"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Accepted. The object exists and is converging; poll the operation named here."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Create one of BGP peers",
        "tags": [
          "BGP peers"
        ]
      }
    },
    "/api/v1/bgp-peers/{name}": {
      "delete": {
        "description": "Marks the object for deletion; it is gone once every finalizer has released it.",
        "operationId": "delete-bgp-peers",
        "parameters": [
          {
            "description": "The object's id — the last segment of its name.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "202": {
            "description": "Deleting: the object exists until its finalizers release it."
          },
          "204": {
            "description": "Gone."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Delete one of BGP peers",
        "tags": [
          "BGP peers"
        ]
      },
      "get": {
        "operationId": "get-bgp-peers",
        "parameters": [
          {
            "description": "The object's id — the last segment of its name.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BGPPeer"
                }
              }
            },
            "description": "The object."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Read one of BGP peers",
        "tags": [
          "BGP peers"
        ]
      },
      "patch": {
        "description": "Only `spec` and `labels` are writable here; `status` is the owning agent's, written through `:reportStatus`. Send `If-Match` with the revision read to make the write a compare-and-swap.",
        "operationId": "patch-bgp-peers",
        "parameters": [
          {
            "description": "The object's id — the last segment of its name.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "labels": {
                    "additionalProperties": {
                      "type": "string"
                    },
                    "type": "object"
                  },
                  "spec": {
                    "$ref": "#/components/schemas/BGPPeerSpec"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BGPPeer"
                }
              }
            },
            "description": "The object as stored."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Change the spec of one of BGP peers",
        "tags": [
          "BGP peers"
        ]
      }
    },
    "/api/v1/ceph-clusters": {
      "get": {
        "operationId": "list-ceph-clusters",
        "parameters": [
          {
            "description": "How many to return; the response carries `nextPageToken` when there are more.",
            "in": "query",
            "name": "pageSize",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "Where the previous page ended.",
            "in": "query",
            "name": "pageToken",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only objects carrying these labels, as `key=value,key2=value2`.",
            "in": "query",
            "name": "labels",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "`true` streams changes as server-sent events instead of listing.",
            "in": "query",
            "name": "watch",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "description": "With `watch`: the revision a list reported, so nothing between the list and the watch is lost.",
            "in": "query",
            "name": "fromRevision",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only objects created at or after this moment: milliseconds since the epoch, or a span back from now like `30m`, `6h`, `7d`.",
            "in": "query",
            "name": "since",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only objects created before this moment, same spellings as `since`. Exclusive, so two adjacent ranges neither overlap nor skip.",
            "in": "query",
            "name": "until",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "`name` or `createdAt`, optionally followed by ` desc`. An ordered listing is a top-N: everything the filter admits is read and sorted, and the first `pageSize` of the sorted order is returned with no `nextPageToken` (and `\"truncated\": true` when the answer was cut). Refused together with `pageToken`.",
            "in": "query",
            "name": "orderBy",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "A read mask: comma-separated dotted paths, as `meta.name,status.conditions`. `meta.name` is always returned.",
            "in": "query",
            "name": "fields",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "items": {
                      "items": {
                        "$ref": "#/components/schemas/CephCluster"
                      },
                      "type": "array"
                    },
                    "nextPageToken": {
                      "type": "string"
                    },
                    "revision": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "items",
                    "revision"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A page of objects. `X-Velstra-Revision` is the revision the list is consistent at."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "List Ceph",
        "tags": [
          "Ceph"
        ]
      },
      "post": {
        "operationId": "create-ceph-clusters",
        "parameters": [
          {
            "description": "A key of the caller's own invention, sent again on every retry of the same create. The second attempt is answered with the first attempt's operation and target instead of making a second object, and carries `x-velstra-idempotent-replay: true`. Reusing a key for a different request is refused. Keys are remembered for a day. Registering a node or a pool does not take one: its answer carries a credential shown only once.",
            "in": "header",
            "name": "idempotency-key",
            "required": false,
            "schema": {
              "maxLength": 255,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "id": {
                    "description": "The last segment of the name.",
                    "type": "string"
                  },
                  "labels": {
                    "additionalProperties": {
                      "type": "string"
                    },
                    "type": "object"
                  },
                  "spec": {
                    "$ref": "#/components/schemas/CephClusterSpec"
                  }
                },
                "required": [
                  "id",
                  "spec"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "joinToken": {
                      "description": "Only when a node or pool was registered and this API advertises an address: the whole hand-off in one string — token, cell, addresses and certificate — to paste into the installer or `velstra-cloud-node setup --join`. Shown once. See docs/joining.md.",
                      "type": "string"
                    },
                    "nodeToken": {
                      "description": "Only when a node was registered: the agent's bearer token, returned once and never readable again.",
                      "type": "string"
                    },
                    "operation": {
                      "description": "The operation's resource name. Read it to learn when the object settled.",
                      "type": "string"
                    },
                    "poolToken": {
                      "description": "Only when a pool was registered: the pool agent's bearer token, returned once and never readable again.",
                      "type": "string"
                    },
                    "target": {
                      "description": "The name the object was given.",
                      "type": "string"
                    }
                  },
                  "required": [
                    "operation",
                    "target"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Accepted. The object exists and is converging; poll the operation named here."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Create one of Ceph",
        "tags": [
          "Ceph"
        ]
      }
    },
    "/api/v1/ceph-clusters/{name}": {
      "delete": {
        "description": "Marks the object for deletion; it is gone once every finalizer has released it.",
        "operationId": "delete-ceph-clusters",
        "parameters": [
          {
            "description": "The object's id — the last segment of its name.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "202": {
            "description": "Deleting: the object exists until its finalizers release it."
          },
          "204": {
            "description": "Gone."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Delete one of Ceph",
        "tags": [
          "Ceph"
        ]
      },
      "get": {
        "operationId": "get-ceph-clusters",
        "parameters": [
          {
            "description": "The object's id — the last segment of its name.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CephCluster"
                }
              }
            },
            "description": "The object."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Read one of Ceph",
        "tags": [
          "Ceph"
        ]
      },
      "patch": {
        "description": "Only `spec` and `labels` are writable here; `status` is the owning agent's, written through `:reportStatus`. Send `If-Match` with the revision read to make the write a compare-and-swap.",
        "operationId": "patch-ceph-clusters",
        "parameters": [
          {
            "description": "The object's id — the last segment of its name.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "labels": {
                    "additionalProperties": {
                      "type": "string"
                    },
                    "type": "object"
                  },
                  "spec": {
                    "$ref": "#/components/schemas/CephClusterSpec"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CephCluster"
                }
              }
            },
            "description": "The object as stored."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Change the spec of one of Ceph",
        "tags": [
          "Ceph"
        ]
      }
    },
    "/api/v1/device-classes": {
      "get": {
        "operationId": "list-device-classes",
        "parameters": [
          {
            "description": "How many to return; the response carries `nextPageToken` when there are more.",
            "in": "query",
            "name": "pageSize",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "Where the previous page ended.",
            "in": "query",
            "name": "pageToken",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only objects carrying these labels, as `key=value,key2=value2`.",
            "in": "query",
            "name": "labels",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "`true` streams changes as server-sent events instead of listing.",
            "in": "query",
            "name": "watch",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "description": "With `watch`: the revision a list reported, so nothing between the list and the watch is lost.",
            "in": "query",
            "name": "fromRevision",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only objects created at or after this moment: milliseconds since the epoch, or a span back from now like `30m`, `6h`, `7d`.",
            "in": "query",
            "name": "since",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only objects created before this moment, same spellings as `since`. Exclusive, so two adjacent ranges neither overlap nor skip.",
            "in": "query",
            "name": "until",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "`name` or `createdAt`, optionally followed by ` desc`. An ordered listing is a top-N: everything the filter admits is read and sorted, and the first `pageSize` of the sorted order is returned with no `nextPageToken` (and `\"truncated\": true` when the answer was cut). Refused together with `pageToken`.",
            "in": "query",
            "name": "orderBy",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "A read mask: comma-separated dotted paths, as `meta.name,status.conditions`. `meta.name` is always returned.",
            "in": "query",
            "name": "fields",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "items": {
                      "items": {
                        "$ref": "#/components/schemas/DeviceClass"
                      },
                      "type": "array"
                    },
                    "nextPageToken": {
                      "type": "string"
                    },
                    "revision": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "items",
                    "revision"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A page of objects. `X-Velstra-Revision` is the revision the list is consistent at."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "List Device classes",
        "tags": [
          "Device classes"
        ]
      },
      "post": {
        "operationId": "create-device-classes",
        "parameters": [
          {
            "description": "A key of the caller's own invention, sent again on every retry of the same create. The second attempt is answered with the first attempt's operation and target instead of making a second object, and carries `x-velstra-idempotent-replay: true`. Reusing a key for a different request is refused. Keys are remembered for a day. Registering a node or a pool does not take one: its answer carries a credential shown only once.",
            "in": "header",
            "name": "idempotency-key",
            "required": false,
            "schema": {
              "maxLength": 255,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "id": {
                    "description": "The last segment of the name.",
                    "type": "string"
                  },
                  "labels": {
                    "additionalProperties": {
                      "type": "string"
                    },
                    "type": "object"
                  },
                  "spec": {
                    "$ref": "#/components/schemas/DeviceClassSpec"
                  }
                },
                "required": [
                  "id",
                  "spec"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "joinToken": {
                      "description": "Only when a node or pool was registered and this API advertises an address: the whole hand-off in one string — token, cell, addresses and certificate — to paste into the installer or `velstra-cloud-node setup --join`. Shown once. See docs/joining.md.",
                      "type": "string"
                    },
                    "nodeToken": {
                      "description": "Only when a node was registered: the agent's bearer token, returned once and never readable again.",
                      "type": "string"
                    },
                    "operation": {
                      "description": "The operation's resource name. Read it to learn when the object settled.",
                      "type": "string"
                    },
                    "poolToken": {
                      "description": "Only when a pool was registered: the pool agent's bearer token, returned once and never readable again.",
                      "type": "string"
                    },
                    "target": {
                      "description": "The name the object was given.",
                      "type": "string"
                    }
                  },
                  "required": [
                    "operation",
                    "target"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Accepted. The object exists and is converging; poll the operation named here."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Create one of Device classes",
        "tags": [
          "Device classes"
        ]
      }
    },
    "/api/v1/device-classes/{name}": {
      "delete": {
        "description": "Marks the object for deletion; it is gone once every finalizer has released it.",
        "operationId": "delete-device-classes",
        "parameters": [
          {
            "description": "The object's id — the last segment of its name.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "202": {
            "description": "Deleting: the object exists until its finalizers release it."
          },
          "204": {
            "description": "Gone."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Delete one of Device classes",
        "tags": [
          "Device classes"
        ]
      },
      "get": {
        "operationId": "get-device-classes",
        "parameters": [
          {
            "description": "The object's id — the last segment of its name.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeviceClass"
                }
              }
            },
            "description": "The object."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Read one of Device classes",
        "tags": [
          "Device classes"
        ]
      },
      "patch": {
        "description": "Only `spec` and `labels` are writable here; `status` is the owning agent's, written through `:reportStatus`. Send `If-Match` with the revision read to make the write a compare-and-swap.",
        "operationId": "patch-device-classes",
        "parameters": [
          {
            "description": "The object's id — the last segment of its name.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "labels": {
                    "additionalProperties": {
                      "type": "string"
                    },
                    "type": "object"
                  },
                  "spec": {
                    "$ref": "#/components/schemas/DeviceClassSpec"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeviceClass"
                }
              }
            },
            "description": "The object as stored."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Change the spec of one of Device classes",
        "tags": [
          "Device classes"
        ]
      }
    },
    "/api/v1/enrollments": {
      "get": {
        "operationId": "list-enrollments",
        "parameters": [
          {
            "description": "How many to return; the response carries `nextPageToken` when there are more.",
            "in": "query",
            "name": "pageSize",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "Where the previous page ended.",
            "in": "query",
            "name": "pageToken",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only objects carrying these labels, as `key=value,key2=value2`.",
            "in": "query",
            "name": "labels",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "`true` streams changes as server-sent events instead of listing.",
            "in": "query",
            "name": "watch",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "description": "With `watch`: the revision a list reported, so nothing between the list and the watch is lost.",
            "in": "query",
            "name": "fromRevision",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only objects created at or after this moment: milliseconds since the epoch, or a span back from now like `30m`, `6h`, `7d`.",
            "in": "query",
            "name": "since",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only objects created before this moment, same spellings as `since`. Exclusive, so two adjacent ranges neither overlap nor skip.",
            "in": "query",
            "name": "until",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "`name` or `createdAt`, optionally followed by ` desc`. An ordered listing is a top-N: everything the filter admits is read and sorted, and the first `pageSize` of the sorted order is returned with no `nextPageToken` (and `\"truncated\": true` when the answer was cut). Refused together with `pageToken`.",
            "in": "query",
            "name": "orderBy",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "A read mask: comma-separated dotted paths, as `meta.name,status.conditions`. `meta.name` is always returned.",
            "in": "query",
            "name": "fields",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "items": {
                      "items": {
                        "$ref": "#/components/schemas/Enrollment"
                      },
                      "type": "array"
                    },
                    "nextPageToken": {
                      "type": "string"
                    },
                    "revision": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "items",
                    "revision"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A page of objects. `X-Velstra-Revision` is the revision the list is consistent at."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "List enrollments",
        "tags": [
          "enrollments"
        ]
      }
    },
    "/api/v1/enrollments/{name}": {
      "get": {
        "operationId": "get-enrollments",
        "parameters": [
          {
            "description": "The object's id — the last segment of its name.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Enrollment"
                }
              }
            },
            "description": "The object."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Read one of enrollments",
        "tags": [
          "enrollments"
        ]
      },
      "patch": {
        "description": "Only `spec` and `labels` are writable here; `status` is the owning agent's, written through `:reportStatus`. Send `If-Match` with the revision read to make the write a compare-and-swap.",
        "operationId": "patch-enrollments",
        "parameters": [
          {
            "description": "The object's id — the last segment of its name.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "labels": {
                    "additionalProperties": {
                      "type": "string"
                    },
                    "type": "object"
                  },
                  "spec": {
                    "$ref": "#/components/schemas/EnrollmentSpec"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Enrollment"
                }
              }
            },
            "description": "The object as stored."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Change the spec of one of enrollments",
        "tags": [
          "enrollments"
        ]
      }
    },
    "/api/v1/enrollments:announce": {
      "post": {
        "operationId": "announce-enrollments",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": true,
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": true,
                  "type": "object"
                }
              }
            },
            "description": "The answer."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "A machine announcing itself to this cell, with no token — it has just booted an installer and holds none. Carries `publicKey` (Ed25519, base64), optionally `seenCertificate` and `reported`. Answers the enrolment's id and the fingerprint of the key, which the machine prints on its screen for an operator to compare. Grants nothing: an operator has to name the machine and say what it is for before anything can be claimed. Idempotent in the key, so a machine that announces again lands on its own row; capped, because it is the one door a stranger can write through.",
        "tags": [
          "enrollments"
        ]
      }
    },
    "/api/v1/enrollments:claim": {
      "post": {
        "operationId": "claim-enrollments",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": true,
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": true,
                  "type": "object"
                }
              }
            },
            "description": "The answer."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "A machine collecting the credential an operator approved for it, with no token. Carries `id` and `signature` — an Ed25519 signature over `velstra-enrollment-claim:v1:<id>`, made with the key the machine announced — and answers `nodeToken` and `joinToken`, once. Authorised by that signature and by the recorded approval of a person. A collection verb rather than `enrollments/<id>:claim` because a path segment in this router is either a literal or a parameter and never both; the id is not a secret.",
        "tags": [
          "enrollments"
        ]
      }
    },
    "/api/v1/flavors": {
      "get": {
        "operationId": "list-flavors",
        "parameters": [
          {
            "description": "How many to return; the response carries `nextPageToken` when there are more.",
            "in": "query",
            "name": "pageSize",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "Where the previous page ended.",
            "in": "query",
            "name": "pageToken",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only objects carrying these labels, as `key=value,key2=value2`.",
            "in": "query",
            "name": "labels",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "`true` streams changes as server-sent events instead of listing.",
            "in": "query",
            "name": "watch",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "description": "With `watch`: the revision a list reported, so nothing between the list and the watch is lost.",
            "in": "query",
            "name": "fromRevision",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only objects created at or after this moment: milliseconds since the epoch, or a span back from now like `30m`, `6h`, `7d`.",
            "in": "query",
            "name": "since",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only objects created before this moment, same spellings as `since`. Exclusive, so two adjacent ranges neither overlap nor skip.",
            "in": "query",
            "name": "until",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "`name` or `createdAt`, optionally followed by ` desc`. An ordered listing is a top-N: everything the filter admits is read and sorted, and the first `pageSize` of the sorted order is returned with no `nextPageToken` (and `\"truncated\": true` when the answer was cut). Refused together with `pageToken`.",
            "in": "query",
            "name": "orderBy",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "A read mask: comma-separated dotted paths, as `meta.name,status.conditions`. `meta.name` is always returned.",
            "in": "query",
            "name": "fields",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "items": {
                      "items": {
                        "$ref": "#/components/schemas/Flavor"
                      },
                      "type": "array"
                    },
                    "nextPageToken": {
                      "type": "string"
                    },
                    "revision": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "items",
                    "revision"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A page of objects. `X-Velstra-Revision` is the revision the list is consistent at."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "List Flavors",
        "tags": [
          "Flavors"
        ]
      },
      "post": {
        "operationId": "create-flavors",
        "parameters": [
          {
            "description": "A key of the caller's own invention, sent again on every retry of the same create. The second attempt is answered with the first attempt's operation and target instead of making a second object, and carries `x-velstra-idempotent-replay: true`. Reusing a key for a different request is refused. Keys are remembered for a day. Registering a node or a pool does not take one: its answer carries a credential shown only once.",
            "in": "header",
            "name": "idempotency-key",
            "required": false,
            "schema": {
              "maxLength": 255,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "id": {
                    "description": "The last segment of the name.",
                    "type": "string"
                  },
                  "labels": {
                    "additionalProperties": {
                      "type": "string"
                    },
                    "type": "object"
                  },
                  "spec": {
                    "$ref": "#/components/schemas/FlavorSpec"
                  }
                },
                "required": [
                  "id",
                  "spec"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "joinToken": {
                      "description": "Only when a node or pool was registered and this API advertises an address: the whole hand-off in one string — token, cell, addresses and certificate — to paste into the installer or `velstra-cloud-node setup --join`. Shown once. See docs/joining.md.",
                      "type": "string"
                    },
                    "nodeToken": {
                      "description": "Only when a node was registered: the agent's bearer token, returned once and never readable again.",
                      "type": "string"
                    },
                    "operation": {
                      "description": "The operation's resource name. Read it to learn when the object settled.",
                      "type": "string"
                    },
                    "poolToken": {
                      "description": "Only when a pool was registered: the pool agent's bearer token, returned once and never readable again.",
                      "type": "string"
                    },
                    "target": {
                      "description": "The name the object was given.",
                      "type": "string"
                    }
                  },
                  "required": [
                    "operation",
                    "target"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Accepted. The object exists and is converging; poll the operation named here."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Create one of Flavors",
        "tags": [
          "Flavors"
        ]
      }
    },
    "/api/v1/flavors/{name}": {
      "delete": {
        "description": "Marks the object for deletion; it is gone once every finalizer has released it.",
        "operationId": "delete-flavors",
        "parameters": [
          {
            "description": "The object's id — the last segment of its name.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "202": {
            "description": "Deleting: the object exists until its finalizers release it."
          },
          "204": {
            "description": "Gone."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Delete one of Flavors",
        "tags": [
          "Flavors"
        ]
      },
      "get": {
        "operationId": "get-flavors",
        "parameters": [
          {
            "description": "The object's id — the last segment of its name.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Flavor"
                }
              }
            },
            "description": "The object."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Read one of Flavors",
        "tags": [
          "Flavors"
        ]
      },
      "patch": {
        "description": "Only `spec` and `labels` are writable here; `status` is the owning agent's, written through `:reportStatus`. Send `If-Match` with the revision read to make the write a compare-and-swap.",
        "operationId": "patch-flavors",
        "parameters": [
          {
            "description": "The object's id — the last segment of its name.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "labels": {
                    "additionalProperties": {
                      "type": "string"
                    },
                    "type": "object"
                  },
                  "spec": {
                    "$ref": "#/components/schemas/FlavorSpec"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Flavor"
                }
              }
            },
            "description": "The object as stored."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Change the spec of one of Flavors",
        "tags": [
          "Flavors"
        ]
      }
    },
    "/api/v1/folders": {
      "get": {
        "operationId": "list-folders",
        "parameters": [
          {
            "description": "How many to return; the response carries `nextPageToken` when there are more.",
            "in": "query",
            "name": "pageSize",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "Where the previous page ended.",
            "in": "query",
            "name": "pageToken",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only objects carrying these labels, as `key=value,key2=value2`.",
            "in": "query",
            "name": "labels",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "`true` streams changes as server-sent events instead of listing.",
            "in": "query",
            "name": "watch",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "description": "With `watch`: the revision a list reported, so nothing between the list and the watch is lost.",
            "in": "query",
            "name": "fromRevision",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only objects created at or after this moment: milliseconds since the epoch, or a span back from now like `30m`, `6h`, `7d`.",
            "in": "query",
            "name": "since",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only objects created before this moment, same spellings as `since`. Exclusive, so two adjacent ranges neither overlap nor skip.",
            "in": "query",
            "name": "until",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "`name` or `createdAt`, optionally followed by ` desc`. An ordered listing is a top-N: everything the filter admits is read and sorted, and the first `pageSize` of the sorted order is returned with no `nextPageToken` (and `\"truncated\": true` when the answer was cut). Refused together with `pageToken`.",
            "in": "query",
            "name": "orderBy",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "A read mask: comma-separated dotted paths, as `meta.name,status.conditions`. `meta.name` is always returned.",
            "in": "query",
            "name": "fields",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "items": {
                      "items": {
                        "$ref": "#/components/schemas/Folder"
                      },
                      "type": "array"
                    },
                    "nextPageToken": {
                      "type": "string"
                    },
                    "revision": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "items",
                    "revision"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A page of objects. `X-Velstra-Revision` is the revision the list is consistent at."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "List Folders",
        "tags": [
          "Folders"
        ]
      },
      "post": {
        "operationId": "create-folders",
        "parameters": [
          {
            "description": "A key of the caller's own invention, sent again on every retry of the same create. The second attempt is answered with the first attempt's operation and target instead of making a second object, and carries `x-velstra-idempotent-replay: true`. Reusing a key for a different request is refused. Keys are remembered for a day. Registering a node or a pool does not take one: its answer carries a credential shown only once.",
            "in": "header",
            "name": "idempotency-key",
            "required": false,
            "schema": {
              "maxLength": 255,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "id": {
                    "description": "The last segment of the name.",
                    "type": "string"
                  },
                  "labels": {
                    "additionalProperties": {
                      "type": "string"
                    },
                    "type": "object"
                  },
                  "spec": {
                    "$ref": "#/components/schemas/FolderSpec"
                  }
                },
                "required": [
                  "id",
                  "spec"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "joinToken": {
                      "description": "Only when a node or pool was registered and this API advertises an address: the whole hand-off in one string — token, cell, addresses and certificate — to paste into the installer or `velstra-cloud-node setup --join`. Shown once. See docs/joining.md.",
                      "type": "string"
                    },
                    "nodeToken": {
                      "description": "Only when a node was registered: the agent's bearer token, returned once and never readable again.",
                      "type": "string"
                    },
                    "operation": {
                      "description": "The operation's resource name. Read it to learn when the object settled.",
                      "type": "string"
                    },
                    "poolToken": {
                      "description": "Only when a pool was registered: the pool agent's bearer token, returned once and never readable again.",
                      "type": "string"
                    },
                    "target": {
                      "description": "The name the object was given.",
                      "type": "string"
                    }
                  },
                  "required": [
                    "operation",
                    "target"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Accepted. The object exists and is converging; poll the operation named here."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Create one of Folders",
        "tags": [
          "Folders"
        ]
      }
    },
    "/api/v1/folders/{name}": {
      "delete": {
        "description": "Marks the object for deletion; it is gone once every finalizer has released it.",
        "operationId": "delete-folders",
        "parameters": [
          {
            "description": "The object's id — the last segment of its name.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "202": {
            "description": "Deleting: the object exists until its finalizers release it."
          },
          "204": {
            "description": "Gone."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Delete one of Folders",
        "tags": [
          "Folders"
        ]
      },
      "get": {
        "operationId": "get-folders",
        "parameters": [
          {
            "description": "The object's id — the last segment of its name.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Folder"
                }
              }
            },
            "description": "The object."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Read one of Folders",
        "tags": [
          "Folders"
        ]
      },
      "patch": {
        "description": "Only `spec` and `labels` are writable here; `status` is the owning agent's, written through `:reportStatus`. Send `If-Match` with the revision read to make the write a compare-and-swap.",
        "operationId": "patch-folders",
        "parameters": [
          {
            "description": "The object's id — the last segment of its name.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "labels": {
                    "additionalProperties": {
                      "type": "string"
                    },
                    "type": "object"
                  },
                  "spec": {
                    "$ref": "#/components/schemas/FolderSpec"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Folder"
                }
              }
            },
            "description": "The object as stored."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Change the spec of one of Folders",
        "tags": [
          "Folders"
        ]
      }
    },
    "/api/v1/image-sources": {
      "get": {
        "operationId": "list-image-sources",
        "parameters": [
          {
            "description": "How many to return; the response carries `nextPageToken` when there are more.",
            "in": "query",
            "name": "pageSize",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "Where the previous page ended.",
            "in": "query",
            "name": "pageToken",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only objects carrying these labels, as `key=value,key2=value2`.",
            "in": "query",
            "name": "labels",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "`true` streams changes as server-sent events instead of listing.",
            "in": "query",
            "name": "watch",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "description": "With `watch`: the revision a list reported, so nothing between the list and the watch is lost.",
            "in": "query",
            "name": "fromRevision",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only objects created at or after this moment: milliseconds since the epoch, or a span back from now like `30m`, `6h`, `7d`.",
            "in": "query",
            "name": "since",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only objects created before this moment, same spellings as `since`. Exclusive, so two adjacent ranges neither overlap nor skip.",
            "in": "query",
            "name": "until",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "`name` or `createdAt`, optionally followed by ` desc`. An ordered listing is a top-N: everything the filter admits is read and sorted, and the first `pageSize` of the sorted order is returned with no `nextPageToken` (and `\"truncated\": true` when the answer was cut). Refused together with `pageToken`.",
            "in": "query",
            "name": "orderBy",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "A read mask: comma-separated dotted paths, as `meta.name,status.conditions`. `meta.name` is always returned.",
            "in": "query",
            "name": "fields",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "items": {
                      "items": {
                        "$ref": "#/components/schemas/ImageSource"
                      },
                      "type": "array"
                    },
                    "nextPageToken": {
                      "type": "string"
                    },
                    "revision": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "items",
                    "revision"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A page of objects. `X-Velstra-Revision` is the revision the list is consistent at."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "List Image sources",
        "tags": [
          "Image sources"
        ]
      },
      "post": {
        "operationId": "create-image-sources",
        "parameters": [
          {
            "description": "A key of the caller's own invention, sent again on every retry of the same create. The second attempt is answered with the first attempt's operation and target instead of making a second object, and carries `x-velstra-idempotent-replay: true`. Reusing a key for a different request is refused. Keys are remembered for a day. Registering a node or a pool does not take one: its answer carries a credential shown only once.",
            "in": "header",
            "name": "idempotency-key",
            "required": false,
            "schema": {
              "maxLength": 255,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "id": {
                    "description": "The last segment of the name.",
                    "type": "string"
                  },
                  "labels": {
                    "additionalProperties": {
                      "type": "string"
                    },
                    "type": "object"
                  },
                  "spec": {
                    "$ref": "#/components/schemas/ImageSourceSpec"
                  }
                },
                "required": [
                  "id",
                  "spec"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "joinToken": {
                      "description": "Only when a node or pool was registered and this API advertises an address: the whole hand-off in one string — token, cell, addresses and certificate — to paste into the installer or `velstra-cloud-node setup --join`. Shown once. See docs/joining.md.",
                      "type": "string"
                    },
                    "nodeToken": {
                      "description": "Only when a node was registered: the agent's bearer token, returned once and never readable again.",
                      "type": "string"
                    },
                    "operation": {
                      "description": "The operation's resource name. Read it to learn when the object settled.",
                      "type": "string"
                    },
                    "poolToken": {
                      "description": "Only when a pool was registered: the pool agent's bearer token, returned once and never readable again.",
                      "type": "string"
                    },
                    "target": {
                      "description": "The name the object was given.",
                      "type": "string"
                    }
                  },
                  "required": [
                    "operation",
                    "target"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Accepted. The object exists and is converging; poll the operation named here."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Create one of Image sources",
        "tags": [
          "Image sources"
        ]
      }
    },
    "/api/v1/image-sources/{name}": {
      "delete": {
        "description": "Marks the object for deletion; it is gone once every finalizer has released it.",
        "operationId": "delete-image-sources",
        "parameters": [
          {
            "description": "The object's id — the last segment of its name.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "202": {
            "description": "Deleting: the object exists until its finalizers release it."
          },
          "204": {
            "description": "Gone."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Delete one of Image sources",
        "tags": [
          "Image sources"
        ]
      },
      "get": {
        "operationId": "get-image-sources",
        "parameters": [
          {
            "description": "The object's id — the last segment of its name.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ImageSource"
                }
              }
            },
            "description": "The object."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Read one of Image sources",
        "tags": [
          "Image sources"
        ]
      },
      "patch": {
        "description": "Only `spec` and `labels` are writable here; `status` is the owning agent's, written through `:reportStatus`. Send `If-Match` with the revision read to make the write a compare-and-swap.",
        "operationId": "patch-image-sources",
        "parameters": [
          {
            "description": "The object's id — the last segment of its name.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "labels": {
                    "additionalProperties": {
                      "type": "string"
                    },
                    "type": "object"
                  },
                  "spec": {
                    "$ref": "#/components/schemas/ImageSourceSpec"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ImageSource"
                }
              }
            },
            "description": "The object as stored."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Change the spec of one of Image sources",
        "tags": [
          "Image sources"
        ]
      }
    },
    "/api/v1/maintenance-windows": {
      "get": {
        "operationId": "list-maintenance-windows",
        "parameters": [
          {
            "description": "How many to return; the response carries `nextPageToken` when there are more.",
            "in": "query",
            "name": "pageSize",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "Where the previous page ended.",
            "in": "query",
            "name": "pageToken",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only objects carrying these labels, as `key=value,key2=value2`.",
            "in": "query",
            "name": "labels",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "`true` streams changes as server-sent events instead of listing.",
            "in": "query",
            "name": "watch",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "description": "With `watch`: the revision a list reported, so nothing between the list and the watch is lost.",
            "in": "query",
            "name": "fromRevision",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only objects created at or after this moment: milliseconds since the epoch, or a span back from now like `30m`, `6h`, `7d`.",
            "in": "query",
            "name": "since",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only objects created before this moment, same spellings as `since`. Exclusive, so two adjacent ranges neither overlap nor skip.",
            "in": "query",
            "name": "until",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "`name` or `createdAt`, optionally followed by ` desc`. An ordered listing is a top-N: everything the filter admits is read and sorted, and the first `pageSize` of the sorted order is returned with no `nextPageToken` (and `\"truncated\": true` when the answer was cut). Refused together with `pageToken`.",
            "in": "query",
            "name": "orderBy",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "A read mask: comma-separated dotted paths, as `meta.name,status.conditions`. `meta.name` is always returned.",
            "in": "query",
            "name": "fields",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "items": {
                      "items": {
                        "$ref": "#/components/schemas/MaintenanceWindow"
                      },
                      "type": "array"
                    },
                    "nextPageToken": {
                      "type": "string"
                    },
                    "revision": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "items",
                    "revision"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A page of objects. `X-Velstra-Revision` is the revision the list is consistent at."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "List Maintenance",
        "tags": [
          "Maintenance"
        ]
      },
      "post": {
        "operationId": "create-maintenance-windows",
        "parameters": [
          {
            "description": "A key of the caller's own invention, sent again on every retry of the same create. The second attempt is answered with the first attempt's operation and target instead of making a second object, and carries `x-velstra-idempotent-replay: true`. Reusing a key for a different request is refused. Keys are remembered for a day. Registering a node or a pool does not take one: its answer carries a credential shown only once.",
            "in": "header",
            "name": "idempotency-key",
            "required": false,
            "schema": {
              "maxLength": 255,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "id": {
                    "description": "The last segment of the name.",
                    "type": "string"
                  },
                  "labels": {
                    "additionalProperties": {
                      "type": "string"
                    },
                    "type": "object"
                  },
                  "spec": {
                    "$ref": "#/components/schemas/MaintenanceWindowSpec"
                  }
                },
                "required": [
                  "id",
                  "spec"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "joinToken": {
                      "description": "Only when a node or pool was registered and this API advertises an address: the whole hand-off in one string — token, cell, addresses and certificate — to paste into the installer or `velstra-cloud-node setup --join`. Shown once. See docs/joining.md.",
                      "type": "string"
                    },
                    "nodeToken": {
                      "description": "Only when a node was registered: the agent's bearer token, returned once and never readable again.",
                      "type": "string"
                    },
                    "operation": {
                      "description": "The operation's resource name. Read it to learn when the object settled.",
                      "type": "string"
                    },
                    "poolToken": {
                      "description": "Only when a pool was registered: the pool agent's bearer token, returned once and never readable again.",
                      "type": "string"
                    },
                    "target": {
                      "description": "The name the object was given.",
                      "type": "string"
                    }
                  },
                  "required": [
                    "operation",
                    "target"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Accepted. The object exists and is converging; poll the operation named here."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Create one of Maintenance",
        "tags": [
          "Maintenance"
        ]
      }
    },
    "/api/v1/maintenance-windows/{name}": {
      "delete": {
        "description": "Marks the object for deletion; it is gone once every finalizer has released it.",
        "operationId": "delete-maintenance-windows",
        "parameters": [
          {
            "description": "The object's id — the last segment of its name.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "202": {
            "description": "Deleting: the object exists until its finalizers release it."
          },
          "204": {
            "description": "Gone."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Delete one of Maintenance",
        "tags": [
          "Maintenance"
        ]
      },
      "get": {
        "operationId": "get-maintenance-windows",
        "parameters": [
          {
            "description": "The object's id — the last segment of its name.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MaintenanceWindow"
                }
              }
            },
            "description": "The object."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Read one of Maintenance",
        "tags": [
          "Maintenance"
        ]
      },
      "patch": {
        "description": "Only `spec` and `labels` are writable here; `status` is the owning agent's, written through `:reportStatus`. Send `If-Match` with the revision read to make the write a compare-and-swap.",
        "operationId": "patch-maintenance-windows",
        "parameters": [
          {
            "description": "The object's id — the last segment of its name.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "labels": {
                    "additionalProperties": {
                      "type": "string"
                    },
                    "type": "object"
                  },
                  "spec": {
                    "$ref": "#/components/schemas/MaintenanceWindowSpec"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MaintenanceWindow"
                }
              }
            },
            "description": "The object as stored."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Change the spec of one of Maintenance",
        "tags": [
          "Maintenance"
        ]
      }
    },
    "/api/v1/media/{ticket}": {
      "get": {
        "operationId": "collect-medium",
        "parameters": [
          {
            "description": "The one-time ticket the cut answered with.",
            "in": "path",
            "name": "ticket",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The medium, as `application/octet-stream` with a `Content-Disposition` naming the file."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "security": [],
        "summary": "Collect an install medium cut by `nodes/{name}:installMedium`, once. The ticket is the credential — the link carries no other, so a browser's plain download can fetch it — and it is spent on the way in and gone after ten minutes. Streams the ISO and then the node's join file.",
        "tags": [
          "Nodes"
        ]
      }
    },
    "/api/v1/nodes": {
      "get": {
        "operationId": "list-nodes",
        "parameters": [
          {
            "description": "How many to return; the response carries `nextPageToken` when there are more.",
            "in": "query",
            "name": "pageSize",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "Where the previous page ended.",
            "in": "query",
            "name": "pageToken",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only objects carrying these labels, as `key=value,key2=value2`.",
            "in": "query",
            "name": "labels",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "`true` streams changes as server-sent events instead of listing.",
            "in": "query",
            "name": "watch",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "description": "With `watch`: the revision a list reported, so nothing between the list and the watch is lost.",
            "in": "query",
            "name": "fromRevision",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only objects created at or after this moment: milliseconds since the epoch, or a span back from now like `30m`, `6h`, `7d`.",
            "in": "query",
            "name": "since",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only objects created before this moment, same spellings as `since`. Exclusive, so two adjacent ranges neither overlap nor skip.",
            "in": "query",
            "name": "until",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "`name` or `createdAt`, optionally followed by ` desc`. An ordered listing is a top-N: everything the filter admits is read and sorted, and the first `pageSize` of the sorted order is returned with no `nextPageToken` (and `\"truncated\": true` when the answer was cut). Refused together with `pageToken`.",
            "in": "query",
            "name": "orderBy",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "A read mask: comma-separated dotted paths, as `meta.name,status.conditions`. `meta.name` is always returned.",
            "in": "query",
            "name": "fields",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "items": {
                      "items": {
                        "$ref": "#/components/schemas/Node"
                      },
                      "type": "array"
                    },
                    "nextPageToken": {
                      "type": "string"
                    },
                    "revision": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "items",
                    "revision"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A page of objects. `X-Velstra-Revision` is the revision the list is consistent at."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "List Nodes",
        "tags": [
          "Nodes"
        ]
      },
      "post": {
        "operationId": "create-nodes",
        "parameters": [
          {
            "description": "A key of the caller's own invention, sent again on every retry of the same create. The second attempt is answered with the first attempt's operation and target instead of making a second object, and carries `x-velstra-idempotent-replay: true`. Reusing a key for a different request is refused. Keys are remembered for a day. Registering a node or a pool does not take one: its answer carries a credential shown only once.",
            "in": "header",
            "name": "idempotency-key",
            "required": false,
            "schema": {
              "maxLength": 255,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "id": {
                    "description": "The last segment of the name.",
                    "type": "string"
                  },
                  "labels": {
                    "additionalProperties": {
                      "type": "string"
                    },
                    "type": "object"
                  },
                  "spec": {
                    "$ref": "#/components/schemas/NodeSpec"
                  }
                },
                "required": [
                  "id",
                  "spec"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "joinToken": {
                      "description": "Only when a node or pool was registered and this API advertises an address: the whole hand-off in one string — token, cell, addresses and certificate — to paste into the installer or `velstra-cloud-node setup --join`. Shown once. See docs/joining.md.",
                      "type": "string"
                    },
                    "nodeToken": {
                      "description": "Only when a node was registered: the agent's bearer token, returned once and never readable again.",
                      "type": "string"
                    },
                    "operation": {
                      "description": "The operation's resource name. Read it to learn when the object settled.",
                      "type": "string"
                    },
                    "poolToken": {
                      "description": "Only when a pool was registered: the pool agent's bearer token, returned once and never readable again.",
                      "type": "string"
                    },
                    "target": {
                      "description": "The name the object was given.",
                      "type": "string"
                    }
                  },
                  "required": [
                    "operation",
                    "target"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Accepted. The object exists and is converging; poll the operation named here."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Create one of Nodes",
        "tags": [
          "Nodes"
        ]
      }
    },
    "/api/v1/nodes/{id}/credentials": {
      "get": {
        "operationId": "list-nodes-credentials",
        "parameters": [
          {
            "description": "The node.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "expiresAt": {
                            "description": "Absent means it does not expire, which is the default: an agent reads its token once at startup and cannot fetch another.",
                            "nullable": true,
                            "type": "integer"
                          },
                          "id": {
                            "description": "Name it to revoke it.",
                            "type": "string"
                          },
                          "issuedAt": {
                            "description": "Milliseconds since the epoch.",
                            "type": "integer"
                          },
                          "purpose": {
                            "type": "string"
                          }
                        },
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "What the machine holds."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Every credential this node's agent holds, without the tokens — id, purpose, when it was issued and when it ends.",
        "tags": [
          "Nodes"
        ]
      }
    },
    "/api/v1/nodes/{id}/credentials/{credential}": {
      "delete": {
        "operationId": "revoke-nodes-credential",
        "parameters": [
          {
            "description": "The node.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The id the list gives.",
            "in": "path",
            "name": "credential",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Gone."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Take one credential out of use. Already gone is not an error.",
        "tags": [
          "Nodes"
        ]
      }
    },
    "/api/v1/nodes/{name}": {
      "delete": {
        "description": "Marks the object for deletion; it is gone once every finalizer has released it.",
        "operationId": "delete-nodes",
        "parameters": [
          {
            "description": "The object's id — the last segment of its name.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "202": {
            "description": "Deleting: the object exists until its finalizers release it."
          },
          "204": {
            "description": "Gone."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Delete one of Nodes",
        "tags": [
          "Nodes"
        ]
      },
      "get": {
        "operationId": "get-nodes",
        "parameters": [
          {
            "description": "The object's id — the last segment of its name.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Node"
                }
              }
            },
            "description": "The object."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Read one of Nodes",
        "tags": [
          "Nodes"
        ]
      },
      "patch": {
        "description": "Only `spec` and `labels` are writable here; `status` is the owning agent's, written through `:reportStatus`. Send `If-Match` with the revision read to make the write a compare-and-swap.",
        "operationId": "patch-nodes",
        "parameters": [
          {
            "description": "The object's id — the last segment of its name.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "labels": {
                    "additionalProperties": {
                      "type": "string"
                    },
                    "type": "object"
                  },
                  "spec": {
                    "$ref": "#/components/schemas/NodeSpec"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Node"
                }
              }
            },
            "description": "The object as stored."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Change the spec of one of Nodes",
        "tags": [
          "Nodes"
        ]
      }
    },
    "/api/v1/nodes/{name}:cloudInit": {
      "post": {
        "operationId": "cloudInit-nodes",
        "parameters": [
          {
            "description": "The object's id — the last segment of its name.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": true,
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": true,
                  "type": "object"
                }
              }
            },
            "description": "The answer."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "The same token as a `#cloud-config` for a machine that boots Debian or Ubuntu: it writes the join file 0600, runs `velstra-cloud-node setup --join-file` against it, and shreds it. It installs no package — which repository a fleet takes one from is the fleet's decision. Answers `text/plain`.",
        "tags": [
          "Nodes"
        ]
      }
    },
    "/api/v1/nodes/{name}:explainMaintenance": {
      "get": {
        "operationId": "explainMaintenance-nodes",
        "parameters": [
          {
            "description": "The object's id — the last segment of its name.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": true,
                  "type": "object"
                }
              }
            },
            "description": "The answer."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "What taking the machine out of service would move, and where to.",
        "tags": [
          "Nodes"
        ]
      }
    },
    "/api/v1/nodes/{name}:installMedium": {
      "post": {
        "operationId": "installMedium-nodes",
        "parameters": [
          {
            "description": "The object's id — the last segment of its name.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": true,
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": true,
                  "type": "object"
                }
              }
            },
            "description": "The answer."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Cut an install medium for this machine: the installer ISO a release holds, with this node's join file appended after the ISO's last byte — one download, one stick, nothing typed. The body may name `release`; without it the newest release whose installer is on this cell is used. Answers a one-time link (`url`), the `filename`, the `release` and its `version`, the `size` and `expiresAt`: `GET` the link without a token within ten minutes and it streams the medium once. POST because it mints the node's credential, as `:joinFile` does; refused with `FAILED_PRECONDITION` while no release on this cell holds a verified installer.",
        "tags": [
          "Nodes"
        ]
      }
    },
    "/api/v1/nodes/{name}:issueCredential": {
      "post": {
        "operationId": "issueCredential-nodes",
        "parameters": [
          {
            "description": "The object's id — the last segment of its name.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": true,
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": true,
                  "type": "object"
                }
              }
            },
            "description": "The answer."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Mint a fresh credential for a machine that already exists; shown once, as `nodeToken` and — when this API advertises an address — as `joinToken`, the whole hand-off in one string. The body may carry `purpose` and `expiresAt`. Issuing never revokes, so rotation has no gap: issue, install, restart the agent, then revoke the old one.",
        "tags": [
          "Nodes"
        ]
      }
    },
    "/api/v1/nodes/{name}:joinFile": {
      "post": {
        "operationId": "joinFile-nodes",
        "parameters": [
          {
            "description": "The object's id — the last segment of its name.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": true,
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": true,
                  "type": "object"
                }
              }
            },
            "description": "The answer."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "The same credential as `:issueCredential`, formatted as the file the installer looks for on anything plugged into a machine. Answers `text/plain`, not JSON: `curl -X POST … -o /mnt/velstra/join` is the intended use. A comment above the token names the node and the cell, because the file will be found by somebody who did not write it. POST and not GET because it mints a credential.",
        "tags": [
          "Nodes"
        ]
      }
    },
    "/api/v1/nodes/{name}:reportStatus": {
      "post": {
        "operationId": "reportStatus-nodes",
        "parameters": [
          {
            "description": "The object's id — the last segment of its name.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": true,
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": true,
                  "type": "object"
                }
              }
            },
            "description": "The answer."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "The machine's own report. A node identity only; `If-Match` carries the revision read.",
        "tags": [
          "Nodes"
        ]
      }
    },
    "/api/v1/nodes:explainCapacity": {
      "get": {
        "operationId": "explainCapacity-nodes",
        "parameters": [
          {
            "description": "One machine rather than all.",
            "in": "query",
            "name": "node",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "One pool rather than all.",
            "in": "query",
            "name": "pool",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": true,
                  "type": "object"
                }
              }
            },
            "description": "The answer."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "What the cell has in silicon and what it can still schedule.",
        "tags": [
          "Nodes"
        ]
      }
    },
    "/api/v1/nodes:explainCpu": {
      "get": {
        "operationId": "explainCpu-nodes",
        "parameters": [],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": true,
                  "type": "object"
                }
              }
            },
            "description": "The answer."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "The cell's processor generations, and what can migrate where.",
        "tags": [
          "Nodes"
        ]
      }
    },
    "/api/v1/openapi.json": {
      "get": {
        "operationId": "openapi",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            },
            "description": "OpenAPI 3.1."
          }
        },
        "security": [],
        "summary": "This document.",
        "tags": [
          "Cell"
        ]
      }
    },
    "/api/v1/pools": {
      "get": {
        "operationId": "list-pools",
        "parameters": [
          {
            "description": "How many to return; the response carries `nextPageToken` when there are more.",
            "in": "query",
            "name": "pageSize",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "Where the previous page ended.",
            "in": "query",
            "name": "pageToken",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only objects carrying these labels, as `key=value,key2=value2`.",
            "in": "query",
            "name": "labels",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "`true` streams changes as server-sent events instead of listing.",
            "in": "query",
            "name": "watch",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "description": "With `watch`: the revision a list reported, so nothing between the list and the watch is lost.",
            "in": "query",
            "name": "fromRevision",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only objects created at or after this moment: milliseconds since the epoch, or a span back from now like `30m`, `6h`, `7d`.",
            "in": "query",
            "name": "since",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only objects created before this moment, same spellings as `since`. Exclusive, so two adjacent ranges neither overlap nor skip.",
            "in": "query",
            "name": "until",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "`name` or `createdAt`, optionally followed by ` desc`. An ordered listing is a top-N: everything the filter admits is read and sorted, and the first `pageSize` of the sorted order is returned with no `nextPageToken` (and `\"truncated\": true` when the answer was cut). Refused together with `pageToken`.",
            "in": "query",
            "name": "orderBy",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "A read mask: comma-separated dotted paths, as `meta.name,status.conditions`. `meta.name` is always returned.",
            "in": "query",
            "name": "fields",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "items": {
                      "items": {
                        "$ref": "#/components/schemas/Pool"
                      },
                      "type": "array"
                    },
                    "nextPageToken": {
                      "type": "string"
                    },
                    "revision": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "items",
                    "revision"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A page of objects. `X-Velstra-Revision` is the revision the list is consistent at."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "List Pools",
        "tags": [
          "Pools"
        ]
      },
      "post": {
        "operationId": "create-pools",
        "parameters": [
          {
            "description": "A key of the caller's own invention, sent again on every retry of the same create. The second attempt is answered with the first attempt's operation and target instead of making a second object, and carries `x-velstra-idempotent-replay: true`. Reusing a key for a different request is refused. Keys are remembered for a day. Registering a node or a pool does not take one: its answer carries a credential shown only once.",
            "in": "header",
            "name": "idempotency-key",
            "required": false,
            "schema": {
              "maxLength": 255,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "id": {
                    "description": "The last segment of the name.",
                    "type": "string"
                  },
                  "labels": {
                    "additionalProperties": {
                      "type": "string"
                    },
                    "type": "object"
                  },
                  "spec": {
                    "$ref": "#/components/schemas/PoolSpec"
                  }
                },
                "required": [
                  "id",
                  "spec"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "joinToken": {
                      "description": "Only when a node or pool was registered and this API advertises an address: the whole hand-off in one string — token, cell, addresses and certificate — to paste into the installer or `velstra-cloud-node setup --join`. Shown once. See docs/joining.md.",
                      "type": "string"
                    },
                    "nodeToken": {
                      "description": "Only when a node was registered: the agent's bearer token, returned once and never readable again.",
                      "type": "string"
                    },
                    "operation": {
                      "description": "The operation's resource name. Read it to learn when the object settled.",
                      "type": "string"
                    },
                    "poolToken": {
                      "description": "Only when a pool was registered: the pool agent's bearer token, returned once and never readable again.",
                      "type": "string"
                    },
                    "target": {
                      "description": "The name the object was given.",
                      "type": "string"
                    }
                  },
                  "required": [
                    "operation",
                    "target"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Accepted. The object exists and is converging; poll the operation named here."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Create one of Pools",
        "tags": [
          "Pools"
        ]
      }
    },
    "/api/v1/pools/{id}/credentials": {
      "get": {
        "operationId": "list-pools-credentials",
        "parameters": [
          {
            "description": "The storage pool.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "expiresAt": {
                            "description": "Absent means it does not expire, which is the default: an agent reads its token once at startup and cannot fetch another.",
                            "nullable": true,
                            "type": "integer"
                          },
                          "id": {
                            "description": "Name it to revoke it.",
                            "type": "string"
                          },
                          "issuedAt": {
                            "description": "Milliseconds since the epoch.",
                            "type": "integer"
                          },
                          "purpose": {
                            "type": "string"
                          }
                        },
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "What the machine holds."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Every credential this storage pool's agent holds, without the tokens — id, purpose, when it was issued and when it ends.",
        "tags": [
          "Pools"
        ]
      }
    },
    "/api/v1/pools/{id}/credentials/{credential}": {
      "delete": {
        "operationId": "revoke-pools-credential",
        "parameters": [
          {
            "description": "The storage pool.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The id the list gives.",
            "in": "path",
            "name": "credential",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Gone."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Take one credential out of use. Already gone is not an error.",
        "tags": [
          "Pools"
        ]
      }
    },
    "/api/v1/pools/{name}": {
      "delete": {
        "description": "Marks the object for deletion; it is gone once every finalizer has released it.",
        "operationId": "delete-pools",
        "parameters": [
          {
            "description": "The object's id — the last segment of its name.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "202": {
            "description": "Deleting: the object exists until its finalizers release it."
          },
          "204": {
            "description": "Gone."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Delete one of Pools",
        "tags": [
          "Pools"
        ]
      },
      "get": {
        "operationId": "get-pools",
        "parameters": [
          {
            "description": "The object's id — the last segment of its name.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Pool"
                }
              }
            },
            "description": "The object."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Read one of Pools",
        "tags": [
          "Pools"
        ]
      },
      "patch": {
        "description": "Only `spec` and `labels` are writable here; `status` is the owning agent's, written through `:reportStatus`. Send `If-Match` with the revision read to make the write a compare-and-swap.",
        "operationId": "patch-pools",
        "parameters": [
          {
            "description": "The object's id — the last segment of its name.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "labels": {
                    "additionalProperties": {
                      "type": "string"
                    },
                    "type": "object"
                  },
                  "spec": {
                    "$ref": "#/components/schemas/PoolSpec"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Pool"
                }
              }
            },
            "description": "The object as stored."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Change the spec of one of Pools",
        "tags": [
          "Pools"
        ]
      }
    },
    "/api/v1/pools/{name}:issueCredential": {
      "post": {
        "operationId": "issueCredential-pools",
        "parameters": [
          {
            "description": "The object's id — the last segment of its name.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": true,
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": true,
                  "type": "object"
                }
              }
            },
            "description": "The answer."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Mint a fresh credential for a pool that already exists; shown once, as `poolToken` and — when this API advertises an address — as `joinToken`. The body may carry `purpose` and `expiresAt`.",
        "tags": [
          "Pools"
        ]
      }
    },
    "/api/v1/projects": {
      "get": {
        "operationId": "list-projects",
        "parameters": [
          {
            "description": "How many to return; the response carries `nextPageToken` when there are more.",
            "in": "query",
            "name": "pageSize",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "Where the previous page ended.",
            "in": "query",
            "name": "pageToken",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only objects carrying these labels, as `key=value,key2=value2`.",
            "in": "query",
            "name": "labels",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "`true` streams changes as server-sent events instead of listing.",
            "in": "query",
            "name": "watch",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "description": "With `watch`: the revision a list reported, so nothing between the list and the watch is lost.",
            "in": "query",
            "name": "fromRevision",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only objects created at or after this moment: milliseconds since the epoch, or a span back from now like `30m`, `6h`, `7d`.",
            "in": "query",
            "name": "since",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only objects created before this moment, same spellings as `since`. Exclusive, so two adjacent ranges neither overlap nor skip.",
            "in": "query",
            "name": "until",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "`name` or `createdAt`, optionally followed by ` desc`. An ordered listing is a top-N: everything the filter admits is read and sorted, and the first `pageSize` of the sorted order is returned with no `nextPageToken` (and `\"truncated\": true` when the answer was cut). Refused together with `pageToken`.",
            "in": "query",
            "name": "orderBy",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "A read mask: comma-separated dotted paths, as `meta.name,status.conditions`. `meta.name` is always returned.",
            "in": "query",
            "name": "fields",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "items": {
                      "items": {
                        "$ref": "#/components/schemas/Project"
                      },
                      "type": "array"
                    },
                    "nextPageToken": {
                      "type": "string"
                    },
                    "revision": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "items",
                    "revision"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A page of objects. `X-Velstra-Revision` is the revision the list is consistent at."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "List Projects",
        "tags": [
          "Projects"
        ]
      },
      "post": {
        "operationId": "create-projects",
        "parameters": [
          {
            "description": "A key of the caller's own invention, sent again on every retry of the same create. The second attempt is answered with the first attempt's operation and target instead of making a second object, and carries `x-velstra-idempotent-replay: true`. Reusing a key for a different request is refused. Keys are remembered for a day. Registering a node or a pool does not take one: its answer carries a credential shown only once.",
            "in": "header",
            "name": "idempotency-key",
            "required": false,
            "schema": {
              "maxLength": 255,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "id": {
                    "description": "The last segment of the name.",
                    "type": "string"
                  },
                  "labels": {
                    "additionalProperties": {
                      "type": "string"
                    },
                    "type": "object"
                  },
                  "spec": {
                    "$ref": "#/components/schemas/ProjectSpec"
                  }
                },
                "required": [
                  "id",
                  "spec"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "joinToken": {
                      "description": "Only when a node or pool was registered and this API advertises an address: the whole hand-off in one string — token, cell, addresses and certificate — to paste into the installer or `velstra-cloud-node setup --join`. Shown once. See docs/joining.md.",
                      "type": "string"
                    },
                    "nodeToken": {
                      "description": "Only when a node was registered: the agent's bearer token, returned once and never readable again.",
                      "type": "string"
                    },
                    "operation": {
                      "description": "The operation's resource name. Read it to learn when the object settled.",
                      "type": "string"
                    },
                    "poolToken": {
                      "description": "Only when a pool was registered: the pool agent's bearer token, returned once and never readable again.",
                      "type": "string"
                    },
                    "target": {
                      "description": "The name the object was given.",
                      "type": "string"
                    }
                  },
                  "required": [
                    "operation",
                    "target"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Accepted. The object exists and is converging; poll the operation named here."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Create one of Projects",
        "tags": [
          "Projects"
        ]
      }
    },
    "/api/v1/projects/{name}": {
      "delete": {
        "description": "Marks the object for deletion; it is gone once every finalizer has released it.",
        "operationId": "delete-projects",
        "parameters": [
          {
            "description": "The object's id — the last segment of its name.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "202": {
            "description": "Deleting: the object exists until its finalizers release it."
          },
          "204": {
            "description": "Gone."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Delete one of Projects",
        "tags": [
          "Projects"
        ]
      },
      "get": {
        "operationId": "get-projects",
        "parameters": [
          {
            "description": "The object's id — the last segment of its name.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Project"
                }
              }
            },
            "description": "The object."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Read one of Projects",
        "tags": [
          "Projects"
        ]
      },
      "patch": {
        "description": "Only `spec` and `labels` are writable here; `status` is the owning agent's, written through `:reportStatus`. Send `If-Match` with the revision read to make the write a compare-and-swap.",
        "operationId": "patch-projects",
        "parameters": [
          {
            "description": "The object's id — the last segment of its name.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "labels": {
                    "additionalProperties": {
                      "type": "string"
                    },
                    "type": "object"
                  },
                  "spec": {
                    "$ref": "#/components/schemas/ProjectSpec"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Project"
                }
              }
            },
            "description": "The object as stored."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Change the spec of one of Projects",
        "tags": [
          "Projects"
        ]
      }
    },
    "/api/v1/projects/{name}:explainQuota": {
      "get": {
        "operationId": "explainQuota-projects",
        "parameters": [
          {
            "description": "The object's id — the last segment of its name.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": true,
                  "type": "object"
                }
              }
            },
            "description": "The answer."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "What the project has left, and what it could actually start.",
        "tags": [
          "Projects"
        ]
      }
    },
    "/api/v1/projects/{name}:explainUsage": {
      "get": {
        "operationId": "explainUsage-projects",
        "parameters": [
          {
            "description": "The object's id — the last segment of its name.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "A month as `YYYY-MM`; the current one when absent.",
            "in": "query",
            "name": "month",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": true,
                  "type": "object"
                }
              }
            },
            "description": "The answer."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "What the project had, and when.",
        "tags": [
          "Projects"
        ]
      }
    },
    "/api/v1/projects/{project}/attachments": {
      "get": {
        "operationId": "list-attachments",
        "parameters": [
          {
            "description": "The project the object belongs to.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "How many to return; the response carries `nextPageToken` when there are more.",
            "in": "query",
            "name": "pageSize",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "Where the previous page ended.",
            "in": "query",
            "name": "pageToken",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only objects carrying these labels, as `key=value,key2=value2`.",
            "in": "query",
            "name": "labels",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "`true` streams changes as server-sent events instead of listing.",
            "in": "query",
            "name": "watch",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "description": "With `watch`: the revision a list reported, so nothing between the list and the watch is lost.",
            "in": "query",
            "name": "fromRevision",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only objects created at or after this moment: milliseconds since the epoch, or a span back from now like `30m`, `6h`, `7d`.",
            "in": "query",
            "name": "since",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only objects created before this moment, same spellings as `since`. Exclusive, so two adjacent ranges neither overlap nor skip.",
            "in": "query",
            "name": "until",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "`name` or `createdAt`, optionally followed by ` desc`. An ordered listing is a top-N: everything the filter admits is read and sorted, and the first `pageSize` of the sorted order is returned with no `nextPageToken` (and `\"truncated\": true` when the answer was cut). Refused together with `pageToken`.",
            "in": "query",
            "name": "orderBy",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "A read mask: comma-separated dotted paths, as `meta.name,status.conditions`. `meta.name` is always returned.",
            "in": "query",
            "name": "fields",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "items": {
                      "items": {
                        "$ref": "#/components/schemas/Attachment"
                      },
                      "type": "array"
                    },
                    "nextPageToken": {
                      "type": "string"
                    },
                    "revision": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "items",
                    "revision"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A page of objects. `X-Velstra-Revision` is the revision the list is consistent at."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "List Attachments",
        "tags": [
          "Attachments"
        ]
      },
      "post": {
        "operationId": "create-attachments",
        "parameters": [
          {
            "description": "The project the object belongs to.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "A key of the caller's own invention, sent again on every retry of the same create. The second attempt is answered with the first attempt's operation and target instead of making a second object, and carries `x-velstra-idempotent-replay: true`. Reusing a key for a different request is refused. Keys are remembered for a day. Registering a node or a pool does not take one: its answer carries a credential shown only once.",
            "in": "header",
            "name": "idempotency-key",
            "required": false,
            "schema": {
              "maxLength": 255,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "id": {
                    "description": "The last segment of the name.",
                    "type": "string"
                  },
                  "labels": {
                    "additionalProperties": {
                      "type": "string"
                    },
                    "type": "object"
                  },
                  "spec": {
                    "$ref": "#/components/schemas/AttachmentSpec"
                  }
                },
                "required": [
                  "id",
                  "spec"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "joinToken": {
                      "description": "Only when a node or pool was registered and this API advertises an address: the whole hand-off in one string — token, cell, addresses and certificate — to paste into the installer or `velstra-cloud-node setup --join`. Shown once. See docs/joining.md.",
                      "type": "string"
                    },
                    "nodeToken": {
                      "description": "Only when a node was registered: the agent's bearer token, returned once and never readable again.",
                      "type": "string"
                    },
                    "operation": {
                      "description": "The operation's resource name. Read it to learn when the object settled.",
                      "type": "string"
                    },
                    "poolToken": {
                      "description": "Only when a pool was registered: the pool agent's bearer token, returned once and never readable again.",
                      "type": "string"
                    },
                    "target": {
                      "description": "The name the object was given.",
                      "type": "string"
                    }
                  },
                  "required": [
                    "operation",
                    "target"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Accepted. The object exists and is converging; poll the operation named here."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Create one of Attachments",
        "tags": [
          "Attachments"
        ]
      }
    },
    "/api/v1/projects/{project}/attachments/{name}": {
      "delete": {
        "description": "Marks the object for deletion; it is gone once every finalizer has released it.",
        "operationId": "delete-attachments",
        "parameters": [
          {
            "description": "The project the object belongs to.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The object's id — the last segment of its name.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "202": {
            "description": "Deleting: the object exists until its finalizers release it."
          },
          "204": {
            "description": "Gone."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Delete one of Attachments",
        "tags": [
          "Attachments"
        ]
      },
      "get": {
        "operationId": "get-attachments",
        "parameters": [
          {
            "description": "The project the object belongs to.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The object's id — the last segment of its name.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Attachment"
                }
              }
            },
            "description": "The object."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Read one of Attachments",
        "tags": [
          "Attachments"
        ]
      },
      "patch": {
        "description": "Only `spec` and `labels` are writable here; `status` is the owning agent's, written through `:reportStatus`. Send `If-Match` with the revision read to make the write a compare-and-swap.",
        "operationId": "patch-attachments",
        "parameters": [
          {
            "description": "The project the object belongs to.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The object's id — the last segment of its name.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "labels": {
                    "additionalProperties": {
                      "type": "string"
                    },
                    "type": "object"
                  },
                  "spec": {
                    "$ref": "#/components/schemas/AttachmentSpec"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Attachment"
                }
              }
            },
            "description": "The object as stored."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Change the spec of one of Attachments",
        "tags": [
          "Attachments"
        ]
      }
    },
    "/api/v1/projects/{project}/attachments/{name}:reportStatus": {
      "post": {
        "operationId": "reportStatus-attachments",
        "parameters": [
          {
            "description": "The project the object belongs to.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The object's id — the last segment of its name.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": true,
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": true,
                  "type": "object"
                }
              }
            },
            "description": "The answer."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "The owning agent's report. A node identity only; `If-Match` carries the revision read.",
        "tags": [
          "Attachments"
        ]
      }
    },
    "/api/v1/projects/{project}/backup-schedules": {
      "get": {
        "operationId": "list-backup-schedules",
        "parameters": [
          {
            "description": "The project the object belongs to.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "How many to return; the response carries `nextPageToken` when there are more.",
            "in": "query",
            "name": "pageSize",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "Where the previous page ended.",
            "in": "query",
            "name": "pageToken",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only objects carrying these labels, as `key=value,key2=value2`.",
            "in": "query",
            "name": "labels",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "`true` streams changes as server-sent events instead of listing.",
            "in": "query",
            "name": "watch",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "description": "With `watch`: the revision a list reported, so nothing between the list and the watch is lost.",
            "in": "query",
            "name": "fromRevision",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only objects created at or after this moment: milliseconds since the epoch, or a span back from now like `30m`, `6h`, `7d`.",
            "in": "query",
            "name": "since",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only objects created before this moment, same spellings as `since`. Exclusive, so two adjacent ranges neither overlap nor skip.",
            "in": "query",
            "name": "until",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "`name` or `createdAt`, optionally followed by ` desc`. An ordered listing is a top-N: everything the filter admits is read and sorted, and the first `pageSize` of the sorted order is returned with no `nextPageToken` (and `\"truncated\": true` when the answer was cut). Refused together with `pageToken`.",
            "in": "query",
            "name": "orderBy",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "A read mask: comma-separated dotted paths, as `meta.name,status.conditions`. `meta.name` is always returned.",
            "in": "query",
            "name": "fields",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "items": {
                      "items": {
                        "$ref": "#/components/schemas/BackupSchedule"
                      },
                      "type": "array"
                    },
                    "nextPageToken": {
                      "type": "string"
                    },
                    "revision": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "items",
                    "revision"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A page of objects. `X-Velstra-Revision` is the revision the list is consistent at."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "List Backup schedules",
        "tags": [
          "Backup schedules"
        ]
      },
      "post": {
        "operationId": "create-backup-schedules",
        "parameters": [
          {
            "description": "The project the object belongs to.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "A key of the caller's own invention, sent again on every retry of the same create. The second attempt is answered with the first attempt's operation and target instead of making a second object, and carries `x-velstra-idempotent-replay: true`. Reusing a key for a different request is refused. Keys are remembered for a day. Registering a node or a pool does not take one: its answer carries a credential shown only once.",
            "in": "header",
            "name": "idempotency-key",
            "required": false,
            "schema": {
              "maxLength": 255,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "id": {
                    "description": "The last segment of the name.",
                    "type": "string"
                  },
                  "labels": {
                    "additionalProperties": {
                      "type": "string"
                    },
                    "type": "object"
                  },
                  "spec": {
                    "$ref": "#/components/schemas/BackupScheduleSpec"
                  }
                },
                "required": [
                  "id",
                  "spec"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "joinToken": {
                      "description": "Only when a node or pool was registered and this API advertises an address: the whole hand-off in one string — token, cell, addresses and certificate — to paste into the installer or `velstra-cloud-node setup --join`. Shown once. See docs/joining.md.",
                      "type": "string"
                    },
                    "nodeToken": {
                      "description": "Only when a node was registered: the agent's bearer token, returned once and never readable again.",
                      "type": "string"
                    },
                    "operation": {
                      "description": "The operation's resource name. Read it to learn when the object settled.",
                      "type": "string"
                    },
                    "poolToken": {
                      "description": "Only when a pool was registered: the pool agent's bearer token, returned once and never readable again.",
                      "type": "string"
                    },
                    "target": {
                      "description": "The name the object was given.",
                      "type": "string"
                    }
                  },
                  "required": [
                    "operation",
                    "target"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Accepted. The object exists and is converging; poll the operation named here."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Create one of Backup schedules",
        "tags": [
          "Backup schedules"
        ]
      }
    },
    "/api/v1/projects/{project}/backup-schedules/{name}": {
      "delete": {
        "description": "Marks the object for deletion; it is gone once every finalizer has released it.",
        "operationId": "delete-backup-schedules",
        "parameters": [
          {
            "description": "The project the object belongs to.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The object's id — the last segment of its name.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "202": {
            "description": "Deleting: the object exists until its finalizers release it."
          },
          "204": {
            "description": "Gone."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Delete one of Backup schedules",
        "tags": [
          "Backup schedules"
        ]
      },
      "get": {
        "operationId": "get-backup-schedules",
        "parameters": [
          {
            "description": "The project the object belongs to.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The object's id — the last segment of its name.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BackupSchedule"
                }
              }
            },
            "description": "The object."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Read one of Backup schedules",
        "tags": [
          "Backup schedules"
        ]
      },
      "patch": {
        "description": "Only `spec` and `labels` are writable here; `status` is the owning agent's, written through `:reportStatus`. Send `If-Match` with the revision read to make the write a compare-and-swap.",
        "operationId": "patch-backup-schedules",
        "parameters": [
          {
            "description": "The project the object belongs to.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The object's id — the last segment of its name.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "labels": {
                    "additionalProperties": {
                      "type": "string"
                    },
                    "type": "object"
                  },
                  "spec": {
                    "$ref": "#/components/schemas/BackupScheduleSpec"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BackupSchedule"
                }
              }
            },
            "description": "The object as stored."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Change the spec of one of Backup schedules",
        "tags": [
          "Backup schedules"
        ]
      }
    },
    "/api/v1/projects/{project}/backups": {
      "get": {
        "operationId": "list-backups",
        "parameters": [
          {
            "description": "The project the object belongs to.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "How many to return; the response carries `nextPageToken` when there are more.",
            "in": "query",
            "name": "pageSize",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "Where the previous page ended.",
            "in": "query",
            "name": "pageToken",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only objects carrying these labels, as `key=value,key2=value2`.",
            "in": "query",
            "name": "labels",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "`true` streams changes as server-sent events instead of listing.",
            "in": "query",
            "name": "watch",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "description": "With `watch`: the revision a list reported, so nothing between the list and the watch is lost.",
            "in": "query",
            "name": "fromRevision",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only objects created at or after this moment: milliseconds since the epoch, or a span back from now like `30m`, `6h`, `7d`.",
            "in": "query",
            "name": "since",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only objects created before this moment, same spellings as `since`. Exclusive, so two adjacent ranges neither overlap nor skip.",
            "in": "query",
            "name": "until",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "`name` or `createdAt`, optionally followed by ` desc`. An ordered listing is a top-N: everything the filter admits is read and sorted, and the first `pageSize` of the sorted order is returned with no `nextPageToken` (and `\"truncated\": true` when the answer was cut). Refused together with `pageToken`.",
            "in": "query",
            "name": "orderBy",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "A read mask: comma-separated dotted paths, as `meta.name,status.conditions`. `meta.name` is always returned.",
            "in": "query",
            "name": "fields",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "items": {
                      "items": {
                        "$ref": "#/components/schemas/Backup"
                      },
                      "type": "array"
                    },
                    "nextPageToken": {
                      "type": "string"
                    },
                    "revision": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "items",
                    "revision"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A page of objects. `X-Velstra-Revision` is the revision the list is consistent at."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "List Backups",
        "tags": [
          "Backups"
        ]
      },
      "post": {
        "operationId": "create-backups",
        "parameters": [
          {
            "description": "The project the object belongs to.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "A key of the caller's own invention, sent again on every retry of the same create. The second attempt is answered with the first attempt's operation and target instead of making a second object, and carries `x-velstra-idempotent-replay: true`. Reusing a key for a different request is refused. Keys are remembered for a day. Registering a node or a pool does not take one: its answer carries a credential shown only once.",
            "in": "header",
            "name": "idempotency-key",
            "required": false,
            "schema": {
              "maxLength": 255,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "id": {
                    "description": "The last segment of the name.",
                    "type": "string"
                  },
                  "labels": {
                    "additionalProperties": {
                      "type": "string"
                    },
                    "type": "object"
                  },
                  "spec": {
                    "$ref": "#/components/schemas/BackupSpec"
                  }
                },
                "required": [
                  "id",
                  "spec"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "joinToken": {
                      "description": "Only when a node or pool was registered and this API advertises an address: the whole hand-off in one string — token, cell, addresses and certificate — to paste into the installer or `velstra-cloud-node setup --join`. Shown once. See docs/joining.md.",
                      "type": "string"
                    },
                    "nodeToken": {
                      "description": "Only when a node was registered: the agent's bearer token, returned once and never readable again.",
                      "type": "string"
                    },
                    "operation": {
                      "description": "The operation's resource name. Read it to learn when the object settled.",
                      "type": "string"
                    },
                    "poolToken": {
                      "description": "Only when a pool was registered: the pool agent's bearer token, returned once and never readable again.",
                      "type": "string"
                    },
                    "target": {
                      "description": "The name the object was given.",
                      "type": "string"
                    }
                  },
                  "required": [
                    "operation",
                    "target"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Accepted. The object exists and is converging; poll the operation named here."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Create one of Backups",
        "tags": [
          "Backups"
        ]
      }
    },
    "/api/v1/projects/{project}/backups/{name}": {
      "delete": {
        "description": "Marks the object for deletion; it is gone once every finalizer has released it.",
        "operationId": "delete-backups",
        "parameters": [
          {
            "description": "The project the object belongs to.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The object's id — the last segment of its name.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "202": {
            "description": "Deleting: the object exists until its finalizers release it."
          },
          "204": {
            "description": "Gone."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Delete one of Backups",
        "tags": [
          "Backups"
        ]
      },
      "get": {
        "operationId": "get-backups",
        "parameters": [
          {
            "description": "The project the object belongs to.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The object's id — the last segment of its name.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Backup"
                }
              }
            },
            "description": "The object."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Read one of Backups",
        "tags": [
          "Backups"
        ]
      }
    },
    "/api/v1/projects/{project}/captures": {
      "get": {
        "operationId": "list-captures",
        "parameters": [
          {
            "description": "The project the object belongs to.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "How many to return; the response carries `nextPageToken` when there are more.",
            "in": "query",
            "name": "pageSize",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "Where the previous page ended.",
            "in": "query",
            "name": "pageToken",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only objects carrying these labels, as `key=value,key2=value2`.",
            "in": "query",
            "name": "labels",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "`true` streams changes as server-sent events instead of listing.",
            "in": "query",
            "name": "watch",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "description": "With `watch`: the revision a list reported, so nothing between the list and the watch is lost.",
            "in": "query",
            "name": "fromRevision",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only objects created at or after this moment: milliseconds since the epoch, or a span back from now like `30m`, `6h`, `7d`.",
            "in": "query",
            "name": "since",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only objects created before this moment, same spellings as `since`. Exclusive, so two adjacent ranges neither overlap nor skip.",
            "in": "query",
            "name": "until",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "`name` or `createdAt`, optionally followed by ` desc`. An ordered listing is a top-N: everything the filter admits is read and sorted, and the first `pageSize` of the sorted order is returned with no `nextPageToken` (and `\"truncated\": true` when the answer was cut). Refused together with `pageToken`.",
            "in": "query",
            "name": "orderBy",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "A read mask: comma-separated dotted paths, as `meta.name,status.conditions`. `meta.name` is always returned.",
            "in": "query",
            "name": "fields",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "items": {
                      "items": {
                        "$ref": "#/components/schemas/Capture"
                      },
                      "type": "array"
                    },
                    "nextPageToken": {
                      "type": "string"
                    },
                    "revision": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "items",
                    "revision"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A page of objects. `X-Velstra-Revision` is the revision the list is consistent at."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "List Captures",
        "tags": [
          "Captures"
        ]
      },
      "post": {
        "operationId": "create-captures",
        "parameters": [
          {
            "description": "The project the object belongs to.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "A key of the caller's own invention, sent again on every retry of the same create. The second attempt is answered with the first attempt's operation and target instead of making a second object, and carries `x-velstra-idempotent-replay: true`. Reusing a key for a different request is refused. Keys are remembered for a day. Registering a node or a pool does not take one: its answer carries a credential shown only once.",
            "in": "header",
            "name": "idempotency-key",
            "required": false,
            "schema": {
              "maxLength": 255,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "id": {
                    "description": "The last segment of the name.",
                    "type": "string"
                  },
                  "labels": {
                    "additionalProperties": {
                      "type": "string"
                    },
                    "type": "object"
                  },
                  "spec": {
                    "$ref": "#/components/schemas/CaptureSpec"
                  }
                },
                "required": [
                  "id",
                  "spec"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "joinToken": {
                      "description": "Only when a node or pool was registered and this API advertises an address: the whole hand-off in one string — token, cell, addresses and certificate — to paste into the installer or `velstra-cloud-node setup --join`. Shown once. See docs/joining.md.",
                      "type": "string"
                    },
                    "nodeToken": {
                      "description": "Only when a node was registered: the agent's bearer token, returned once and never readable again.",
                      "type": "string"
                    },
                    "operation": {
                      "description": "The operation's resource name. Read it to learn when the object settled.",
                      "type": "string"
                    },
                    "poolToken": {
                      "description": "Only when a pool was registered: the pool agent's bearer token, returned once and never readable again.",
                      "type": "string"
                    },
                    "target": {
                      "description": "The name the object was given.",
                      "type": "string"
                    }
                  },
                  "required": [
                    "operation",
                    "target"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Accepted. The object exists and is converging; poll the operation named here."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Create one of Captures",
        "tags": [
          "Captures"
        ]
      }
    },
    "/api/v1/projects/{project}/captures/{name}": {
      "delete": {
        "description": "Marks the object for deletion; it is gone once every finalizer has released it.",
        "operationId": "delete-captures",
        "parameters": [
          {
            "description": "The project the object belongs to.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The object's id — the last segment of its name.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "202": {
            "description": "Deleting: the object exists until its finalizers release it."
          },
          "204": {
            "description": "Gone."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Delete one of Captures",
        "tags": [
          "Captures"
        ]
      },
      "get": {
        "operationId": "get-captures",
        "parameters": [
          {
            "description": "The project the object belongs to.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The object's id — the last segment of its name.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Capture"
                }
              }
            },
            "description": "The object."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Read one of Captures",
        "tags": [
          "Captures"
        ]
      }
    },
    "/api/v1/projects/{project}/console-sessions": {
      "get": {
        "operationId": "list-console-sessions",
        "parameters": [
          {
            "description": "The project the object belongs to.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "How many to return; the response carries `nextPageToken` when there are more.",
            "in": "query",
            "name": "pageSize",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "Where the previous page ended.",
            "in": "query",
            "name": "pageToken",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only objects carrying these labels, as `key=value,key2=value2`.",
            "in": "query",
            "name": "labels",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "`true` streams changes as server-sent events instead of listing.",
            "in": "query",
            "name": "watch",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "description": "With `watch`: the revision a list reported, so nothing between the list and the watch is lost.",
            "in": "query",
            "name": "fromRevision",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only objects created at or after this moment: milliseconds since the epoch, or a span back from now like `30m`, `6h`, `7d`.",
            "in": "query",
            "name": "since",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only objects created before this moment, same spellings as `since`. Exclusive, so two adjacent ranges neither overlap nor skip.",
            "in": "query",
            "name": "until",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "`name` or `createdAt`, optionally followed by ` desc`. An ordered listing is a top-N: everything the filter admits is read and sorted, and the first `pageSize` of the sorted order is returned with no `nextPageToken` (and `\"truncated\": true` when the answer was cut). Refused together with `pageToken`.",
            "in": "query",
            "name": "orderBy",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "A read mask: comma-separated dotted paths, as `meta.name,status.conditions`. `meta.name` is always returned.",
            "in": "query",
            "name": "fields",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "items": {
                      "items": {
                        "$ref": "#/components/schemas/ConsoleSession"
                      },
                      "type": "array"
                    },
                    "nextPageToken": {
                      "type": "string"
                    },
                    "revision": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "items",
                    "revision"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A page of objects. `X-Velstra-Revision` is the revision the list is consistent at."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "List console-sessions",
        "tags": [
          "console-sessions"
        ]
      },
      "post": {
        "operationId": "create-console-sessions",
        "parameters": [
          {
            "description": "The project the object belongs to.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "A key of the caller's own invention, sent again on every retry of the same create. The second attempt is answered with the first attempt's operation and target instead of making a second object, and carries `x-velstra-idempotent-replay: true`. Reusing a key for a different request is refused. Keys are remembered for a day. Registering a node or a pool does not take one: its answer carries a credential shown only once.",
            "in": "header",
            "name": "idempotency-key",
            "required": false,
            "schema": {
              "maxLength": 255,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "id": {
                    "description": "The last segment of the name.",
                    "type": "string"
                  },
                  "labels": {
                    "additionalProperties": {
                      "type": "string"
                    },
                    "type": "object"
                  },
                  "spec": {
                    "$ref": "#/components/schemas/ConsoleSessionSpec"
                  }
                },
                "required": [
                  "id",
                  "spec"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "joinToken": {
                      "description": "Only when a node or pool was registered and this API advertises an address: the whole hand-off in one string — token, cell, addresses and certificate — to paste into the installer or `velstra-cloud-node setup --join`. Shown once. See docs/joining.md.",
                      "type": "string"
                    },
                    "nodeToken": {
                      "description": "Only when a node was registered: the agent's bearer token, returned once and never readable again.",
                      "type": "string"
                    },
                    "operation": {
                      "description": "The operation's resource name. Read it to learn when the object settled.",
                      "type": "string"
                    },
                    "poolToken": {
                      "description": "Only when a pool was registered: the pool agent's bearer token, returned once and never readable again.",
                      "type": "string"
                    },
                    "target": {
                      "description": "The name the object was given.",
                      "type": "string"
                    }
                  },
                  "required": [
                    "operation",
                    "target"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Accepted. The object exists and is converging; poll the operation named here."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Create one of console-sessions",
        "tags": [
          "console-sessions"
        ]
      }
    },
    "/api/v1/projects/{project}/console-sessions/{name}": {
      "delete": {
        "description": "Marks the object for deletion; it is gone once every finalizer has released it.",
        "operationId": "delete-console-sessions",
        "parameters": [
          {
            "description": "The project the object belongs to.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The object's id — the last segment of its name.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "202": {
            "description": "Deleting: the object exists until its finalizers release it."
          },
          "204": {
            "description": "Gone."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Delete one of console-sessions",
        "tags": [
          "console-sessions"
        ]
      },
      "get": {
        "operationId": "get-console-sessions",
        "parameters": [
          {
            "description": "The project the object belongs to.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The object's id — the last segment of its name.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConsoleSession"
                }
              }
            },
            "description": "The object."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Read one of console-sessions",
        "tags": [
          "console-sessions"
        ]
      },
      "patch": {
        "description": "Only `spec` and `labels` are writable here; `status` is the owning agent's, written through `:reportStatus`. Send `If-Match` with the revision read to make the write a compare-and-swap.",
        "operationId": "patch-console-sessions",
        "parameters": [
          {
            "description": "The project the object belongs to.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The object's id — the last segment of its name.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "labels": {
                    "additionalProperties": {
                      "type": "string"
                    },
                    "type": "object"
                  },
                  "spec": {
                    "$ref": "#/components/schemas/ConsoleSessionSpec"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConsoleSession"
                }
              }
            },
            "description": "The object as stored."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Change the spec of one of console-sessions",
        "tags": [
          "console-sessions"
        ]
      }
    },
    "/api/v1/projects/{project}/floatingips": {
      "get": {
        "operationId": "list-floatingips",
        "parameters": [
          {
            "description": "The project the object belongs to.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "How many to return; the response carries `nextPageToken` when there are more.",
            "in": "query",
            "name": "pageSize",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "Where the previous page ended.",
            "in": "query",
            "name": "pageToken",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only objects carrying these labels, as `key=value,key2=value2`.",
            "in": "query",
            "name": "labels",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "`true` streams changes as server-sent events instead of listing.",
            "in": "query",
            "name": "watch",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "description": "With `watch`: the revision a list reported, so nothing between the list and the watch is lost.",
            "in": "query",
            "name": "fromRevision",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only objects created at or after this moment: milliseconds since the epoch, or a span back from now like `30m`, `6h`, `7d`.",
            "in": "query",
            "name": "since",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only objects created before this moment, same spellings as `since`. Exclusive, so two adjacent ranges neither overlap nor skip.",
            "in": "query",
            "name": "until",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "`name` or `createdAt`, optionally followed by ` desc`. An ordered listing is a top-N: everything the filter admits is read and sorted, and the first `pageSize` of the sorted order is returned with no `nextPageToken` (and `\"truncated\": true` when the answer was cut). Refused together with `pageToken`.",
            "in": "query",
            "name": "orderBy",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "A read mask: comma-separated dotted paths, as `meta.name,status.conditions`. `meta.name` is always returned.",
            "in": "query",
            "name": "fields",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "items": {
                      "items": {
                        "$ref": "#/components/schemas/FloatingIP"
                      },
                      "type": "array"
                    },
                    "nextPageToken": {
                      "type": "string"
                    },
                    "revision": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "items",
                    "revision"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A page of objects. `X-Velstra-Revision` is the revision the list is consistent at."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "List Floating IPs",
        "tags": [
          "Floating IPs"
        ]
      },
      "post": {
        "operationId": "create-floatingips",
        "parameters": [
          {
            "description": "The project the object belongs to.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "A key of the caller's own invention, sent again on every retry of the same create. The second attempt is answered with the first attempt's operation and target instead of making a second object, and carries `x-velstra-idempotent-replay: true`. Reusing a key for a different request is refused. Keys are remembered for a day. Registering a node or a pool does not take one: its answer carries a credential shown only once.",
            "in": "header",
            "name": "idempotency-key",
            "required": false,
            "schema": {
              "maxLength": 255,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "id": {
                    "description": "The last segment of the name.",
                    "type": "string"
                  },
                  "labels": {
                    "additionalProperties": {
                      "type": "string"
                    },
                    "type": "object"
                  },
                  "spec": {
                    "$ref": "#/components/schemas/FloatingIPSpec"
                  }
                },
                "required": [
                  "id",
                  "spec"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "joinToken": {
                      "description": "Only when a node or pool was registered and this API advertises an address: the whole hand-off in one string — token, cell, addresses and certificate — to paste into the installer or `velstra-cloud-node setup --join`. Shown once. See docs/joining.md.",
                      "type": "string"
                    },
                    "nodeToken": {
                      "description": "Only when a node was registered: the agent's bearer token, returned once and never readable again.",
                      "type": "string"
                    },
                    "operation": {
                      "description": "The operation's resource name. Read it to learn when the object settled.",
                      "type": "string"
                    },
                    "poolToken": {
                      "description": "Only when a pool was registered: the pool agent's bearer token, returned once and never readable again.",
                      "type": "string"
                    },
                    "target": {
                      "description": "The name the object was given.",
                      "type": "string"
                    }
                  },
                  "required": [
                    "operation",
                    "target"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Accepted. The object exists and is converging; poll the operation named here."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Create one of Floating IPs",
        "tags": [
          "Floating IPs"
        ]
      }
    },
    "/api/v1/projects/{project}/floatingips/{name}": {
      "delete": {
        "description": "Marks the object for deletion; it is gone once every finalizer has released it.",
        "operationId": "delete-floatingips",
        "parameters": [
          {
            "description": "The project the object belongs to.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The object's id — the last segment of its name.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "202": {
            "description": "Deleting: the object exists until its finalizers release it."
          },
          "204": {
            "description": "Gone."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Delete one of Floating IPs",
        "tags": [
          "Floating IPs"
        ]
      },
      "get": {
        "operationId": "get-floatingips",
        "parameters": [
          {
            "description": "The project the object belongs to.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The object's id — the last segment of its name.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FloatingIP"
                }
              }
            },
            "description": "The object."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Read one of Floating IPs",
        "tags": [
          "Floating IPs"
        ]
      },
      "patch": {
        "description": "Only `spec` and `labels` are writable here; `status` is the owning agent's, written through `:reportStatus`. Send `If-Match` with the revision read to make the write a compare-and-swap.",
        "operationId": "patch-floatingips",
        "parameters": [
          {
            "description": "The project the object belongs to.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The object's id — the last segment of its name.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "labels": {
                    "additionalProperties": {
                      "type": "string"
                    },
                    "type": "object"
                  },
                  "spec": {
                    "$ref": "#/components/schemas/FloatingIPSpec"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FloatingIP"
                }
              }
            },
            "description": "The object as stored."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Change the spec of one of Floating IPs",
        "tags": [
          "Floating IPs"
        ]
      }
    },
    "/api/v1/projects/{project}/floatingips/{name}:explainReach": {
      "get": {
        "operationId": "explainReach-floatingips",
        "parameters": [
          {
            "description": "The project the object belongs to.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The object's id — the last segment of its name.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": true,
                  "type": "object"
                }
              }
            },
            "description": "The answer."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Whether the address reaches a guest, and every hop that decides it.",
        "tags": [
          "Floating IPs"
        ]
      }
    },
    "/api/v1/projects/{project}/images": {
      "get": {
        "operationId": "list-images",
        "parameters": [
          {
            "description": "The project the object belongs to.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "How many to return; the response carries `nextPageToken` when there are more.",
            "in": "query",
            "name": "pageSize",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "Where the previous page ended.",
            "in": "query",
            "name": "pageToken",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only objects carrying these labels, as `key=value,key2=value2`.",
            "in": "query",
            "name": "labels",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "`true` streams changes as server-sent events instead of listing.",
            "in": "query",
            "name": "watch",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "description": "With `watch`: the revision a list reported, so nothing between the list and the watch is lost.",
            "in": "query",
            "name": "fromRevision",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only objects created at or after this moment: milliseconds since the epoch, or a span back from now like `30m`, `6h`, `7d`.",
            "in": "query",
            "name": "since",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only objects created before this moment, same spellings as `since`. Exclusive, so two adjacent ranges neither overlap nor skip.",
            "in": "query",
            "name": "until",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "`name` or `createdAt`, optionally followed by ` desc`. An ordered listing is a top-N: everything the filter admits is read and sorted, and the first `pageSize` of the sorted order is returned with no `nextPageToken` (and `\"truncated\": true` when the answer was cut). Refused together with `pageToken`.",
            "in": "query",
            "name": "orderBy",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "A read mask: comma-separated dotted paths, as `meta.name,status.conditions`. `meta.name` is always returned.",
            "in": "query",
            "name": "fields",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "items": {
                      "items": {
                        "$ref": "#/components/schemas/Image"
                      },
                      "type": "array"
                    },
                    "nextPageToken": {
                      "type": "string"
                    },
                    "revision": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "items",
                    "revision"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A page of objects. `X-Velstra-Revision` is the revision the list is consistent at."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "List Images",
        "tags": [
          "Images"
        ]
      },
      "post": {
        "operationId": "create-images",
        "parameters": [
          {
            "description": "The project the object belongs to.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "A key of the caller's own invention, sent again on every retry of the same create. The second attempt is answered with the first attempt's operation and target instead of making a second object, and carries `x-velstra-idempotent-replay: true`. Reusing a key for a different request is refused. Keys are remembered for a day. Registering a node or a pool does not take one: its answer carries a credential shown only once.",
            "in": "header",
            "name": "idempotency-key",
            "required": false,
            "schema": {
              "maxLength": 255,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "id": {
                    "description": "The last segment of the name.",
                    "type": "string"
                  },
                  "labels": {
                    "additionalProperties": {
                      "type": "string"
                    },
                    "type": "object"
                  },
                  "spec": {
                    "$ref": "#/components/schemas/ImageSpec"
                  }
                },
                "required": [
                  "id",
                  "spec"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "joinToken": {
                      "description": "Only when a node or pool was registered and this API advertises an address: the whole hand-off in one string — token, cell, addresses and certificate — to paste into the installer or `velstra-cloud-node setup --join`. Shown once. See docs/joining.md.",
                      "type": "string"
                    },
                    "nodeToken": {
                      "description": "Only when a node was registered: the agent's bearer token, returned once and never readable again.",
                      "type": "string"
                    },
                    "operation": {
                      "description": "The operation's resource name. Read it to learn when the object settled.",
                      "type": "string"
                    },
                    "poolToken": {
                      "description": "Only when a pool was registered: the pool agent's bearer token, returned once and never readable again.",
                      "type": "string"
                    },
                    "target": {
                      "description": "The name the object was given.",
                      "type": "string"
                    }
                  },
                  "required": [
                    "operation",
                    "target"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Accepted. The object exists and is converging; poll the operation named here."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Create one of Images",
        "tags": [
          "Images"
        ]
      }
    },
    "/api/v1/projects/{project}/images/{name}": {
      "delete": {
        "description": "Marks the object for deletion; it is gone once every finalizer has released it.",
        "operationId": "delete-images",
        "parameters": [
          {
            "description": "The project the object belongs to.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The object's id — the last segment of its name.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "202": {
            "description": "Deleting: the object exists until its finalizers release it."
          },
          "204": {
            "description": "Gone."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Delete one of Images",
        "tags": [
          "Images"
        ]
      },
      "get": {
        "operationId": "get-images",
        "parameters": [
          {
            "description": "The project the object belongs to.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The object's id — the last segment of its name.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Image"
                }
              }
            },
            "description": "The object."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Read one of Images",
        "tags": [
          "Images"
        ]
      },
      "patch": {
        "description": "Only `spec` and `labels` are writable here; `status` is the owning agent's, written through `:reportStatus`. Send `If-Match` with the revision read to make the write a compare-and-swap.",
        "operationId": "patch-images",
        "parameters": [
          {
            "description": "The project the object belongs to.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The object's id — the last segment of its name.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "labels": {
                    "additionalProperties": {
                      "type": "string"
                    },
                    "type": "object"
                  },
                  "spec": {
                    "$ref": "#/components/schemas/ImageSpec"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Image"
                }
              }
            },
            "description": "The object as stored."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Change the spec of one of Images",
        "tags": [
          "Images"
        ]
      }
    },
    "/api/v1/projects/{project}/instances": {
      "get": {
        "operationId": "list-instances",
        "parameters": [
          {
            "description": "The project the object belongs to.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "How many to return; the response carries `nextPageToken` when there are more.",
            "in": "query",
            "name": "pageSize",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "Where the previous page ended.",
            "in": "query",
            "name": "pageToken",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only objects carrying these labels, as `key=value,key2=value2`.",
            "in": "query",
            "name": "labels",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "`true` streams changes as server-sent events instead of listing.",
            "in": "query",
            "name": "watch",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "description": "With `watch`: the revision a list reported, so nothing between the list and the watch is lost.",
            "in": "query",
            "name": "fromRevision",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only objects created at or after this moment: milliseconds since the epoch, or a span back from now like `30m`, `6h`, `7d`.",
            "in": "query",
            "name": "since",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only objects created before this moment, same spellings as `since`. Exclusive, so two adjacent ranges neither overlap nor skip.",
            "in": "query",
            "name": "until",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "`name` or `createdAt`, optionally followed by ` desc`. An ordered listing is a top-N: everything the filter admits is read and sorted, and the first `pageSize` of the sorted order is returned with no `nextPageToken` (and `\"truncated\": true` when the answer was cut). Refused together with `pageToken`.",
            "in": "query",
            "name": "orderBy",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "A read mask: comma-separated dotted paths, as `meta.name,status.conditions`. `meta.name` is always returned.",
            "in": "query",
            "name": "fields",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "items": {
                      "items": {
                        "$ref": "#/components/schemas/Instance"
                      },
                      "type": "array"
                    },
                    "nextPageToken": {
                      "type": "string"
                    },
                    "revision": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "items",
                    "revision"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A page of objects. `X-Velstra-Revision` is the revision the list is consistent at."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "List Instances",
        "tags": [
          "Instances"
        ]
      },
      "post": {
        "operationId": "create-instances",
        "parameters": [
          {
            "description": "The project the object belongs to.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "A key of the caller's own invention, sent again on every retry of the same create. The second attempt is answered with the first attempt's operation and target instead of making a second object, and carries `x-velstra-idempotent-replay: true`. Reusing a key for a different request is refused. Keys are remembered for a day. Registering a node or a pool does not take one: its answer carries a credential shown only once.",
            "in": "header",
            "name": "idempotency-key",
            "required": false,
            "schema": {
              "maxLength": 255,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "id": {
                    "description": "The last segment of the name.",
                    "type": "string"
                  },
                  "labels": {
                    "additionalProperties": {
                      "type": "string"
                    },
                    "type": "object"
                  },
                  "spec": {
                    "$ref": "#/components/schemas/InstanceSpec"
                  }
                },
                "required": [
                  "id",
                  "spec"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "joinToken": {
                      "description": "Only when a node or pool was registered and this API advertises an address: the whole hand-off in one string — token, cell, addresses and certificate — to paste into the installer or `velstra-cloud-node setup --join`. Shown once. See docs/joining.md.",
                      "type": "string"
                    },
                    "nodeToken": {
                      "description": "Only when a node was registered: the agent's bearer token, returned once and never readable again.",
                      "type": "string"
                    },
                    "operation": {
                      "description": "The operation's resource name. Read it to learn when the object settled.",
                      "type": "string"
                    },
                    "poolToken": {
                      "description": "Only when a pool was registered: the pool agent's bearer token, returned once and never readable again.",
                      "type": "string"
                    },
                    "target": {
                      "description": "The name the object was given.",
                      "type": "string"
                    }
                  },
                  "required": [
                    "operation",
                    "target"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Accepted. The object exists and is converging; poll the operation named here."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Create one of Instances",
        "tags": [
          "Instances"
        ]
      }
    },
    "/api/v1/projects/{project}/instances/{name}": {
      "delete": {
        "description": "Marks the object for deletion; it is gone once every finalizer has released it.",
        "operationId": "delete-instances",
        "parameters": [
          {
            "description": "The project the object belongs to.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The object's id — the last segment of its name.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "202": {
            "description": "Deleting: the object exists until its finalizers release it."
          },
          "204": {
            "description": "Gone."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Delete one of Instances",
        "tags": [
          "Instances"
        ]
      },
      "get": {
        "operationId": "get-instances",
        "parameters": [
          {
            "description": "The project the object belongs to.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The object's id — the last segment of its name.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Instance"
                }
              }
            },
            "description": "The object."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Read one of Instances",
        "tags": [
          "Instances"
        ]
      },
      "patch": {
        "description": "Only `spec` and `labels` are writable here; `status` is the owning agent's, written through `:reportStatus`. Send `If-Match` with the revision read to make the write a compare-and-swap.",
        "operationId": "patch-instances",
        "parameters": [
          {
            "description": "The project the object belongs to.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The object's id — the last segment of its name.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "labels": {
                    "additionalProperties": {
                      "type": "string"
                    },
                    "type": "object"
                  },
                  "spec": {
                    "$ref": "#/components/schemas/InstanceSpec"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Instance"
                }
              }
            },
            "description": "The object as stored."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Change the spec of one of Instances",
        "tags": [
          "Instances"
        ]
      }
    },
    "/api/v1/projects/{project}/instances/{name}:console": {
      "post": {
        "operationId": "console-instances",
        "parameters": [
          {
            "description": "The project the object belongs to.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The object's id — the last segment of its name.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": true,
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": true,
                  "type": "object"
                }
              }
            },
            "description": "The answer."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Open a console session to the guest; the answer names the session and its ticket.",
        "tags": [
          "Instances"
        ]
      }
    },
    "/api/v1/projects/{project}/instances/{name}:consoleStream": {
      "get": {
        "operationId": "consoleStream-instances",
        "parameters": [
          {
            "description": "The project the object belongs to.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The object's id — the last segment of its name.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The session `:console` returned.",
            "in": "query",
            "name": "session",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Its ticket — what the node checks.",
            "in": "query",
            "name": "ticket",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": true,
                  "type": "object"
                }
              }
            },
            "description": "The answer."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "The console stream itself, as a WebSocket upgrade.",
        "tags": [
          "Instances"
        ]
      }
    },
    "/api/v1/projects/{project}/instances/{name}:explainMigration": {
      "get": {
        "operationId": "explainMigration-instances",
        "parameters": [
          {
            "description": "The project the object belongs to.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The object's id — the last segment of its name.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "`Live`, `PostCopy` or `Reboot` (stop here, start there); they refuse different things. Default `Live`.",
            "in": "query",
            "name": "mode",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": true,
                  "type": "object"
                }
              }
            },
            "description": "The answer."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Where the guest could move, and which node refused for what.",
        "tags": [
          "Instances"
        ]
      }
    },
    "/api/v1/projects/{project}/instances/{name}:explainPlacement": {
      "get": {
        "operationId": "explainPlacement-instances",
        "parameters": [
          {
            "description": "The project the object belongs to.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The object's id — the last segment of its name.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": true,
                  "type": "object"
                }
              }
            },
            "description": "The answer."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Why the guest is where it is — or which rule stopped it going anywhere.",
        "tags": [
          "Instances"
        ]
      }
    },
    "/api/v1/projects/{project}/instances/{name}:explainRecovery": {
      "get": {
        "operationId": "explainRecovery-instances",
        "parameters": [
          {
            "description": "The project the object belongs to.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The object's id — the last segment of its name.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": true,
                  "type": "object"
                }
              }
            },
            "description": "The answer."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "What would happen to the guest if its node stopped answering.",
        "tags": [
          "Instances"
        ]
      }
    },
    "/api/v1/projects/{project}/instances/{name}:reportStatus": {
      "post": {
        "operationId": "reportStatus-instances",
        "parameters": [
          {
            "description": "The project the object belongs to.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The object's id — the last segment of its name.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": true,
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": true,
                  "type": "object"
                }
              }
            },
            "description": "The answer."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "The owning agent's report. A node identity only; `If-Match` carries the revision read.",
        "tags": [
          "Instances"
        ]
      }
    },
    "/api/v1/projects/{project}/load-balancers": {
      "get": {
        "operationId": "list-load-balancers",
        "parameters": [
          {
            "description": "The project the object belongs to.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "How many to return; the response carries `nextPageToken` when there are more.",
            "in": "query",
            "name": "pageSize",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "Where the previous page ended.",
            "in": "query",
            "name": "pageToken",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only objects carrying these labels, as `key=value,key2=value2`.",
            "in": "query",
            "name": "labels",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "`true` streams changes as server-sent events instead of listing.",
            "in": "query",
            "name": "watch",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "description": "With `watch`: the revision a list reported, so nothing between the list and the watch is lost.",
            "in": "query",
            "name": "fromRevision",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only objects created at or after this moment: milliseconds since the epoch, or a span back from now like `30m`, `6h`, `7d`.",
            "in": "query",
            "name": "since",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only objects created before this moment, same spellings as `since`. Exclusive, so two adjacent ranges neither overlap nor skip.",
            "in": "query",
            "name": "until",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "`name` or `createdAt`, optionally followed by ` desc`. An ordered listing is a top-N: everything the filter admits is read and sorted, and the first `pageSize` of the sorted order is returned with no `nextPageToken` (and `\"truncated\": true` when the answer was cut). Refused together with `pageToken`.",
            "in": "query",
            "name": "orderBy",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "A read mask: comma-separated dotted paths, as `meta.name,status.conditions`. `meta.name` is always returned.",
            "in": "query",
            "name": "fields",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "items": {
                      "items": {
                        "$ref": "#/components/schemas/LoadBalancer"
                      },
                      "type": "array"
                    },
                    "nextPageToken": {
                      "type": "string"
                    },
                    "revision": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "items",
                    "revision"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A page of objects. `X-Velstra-Revision` is the revision the list is consistent at."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "List Load balancers",
        "tags": [
          "Load balancers"
        ]
      },
      "post": {
        "operationId": "create-load-balancers",
        "parameters": [
          {
            "description": "The project the object belongs to.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "A key of the caller's own invention, sent again on every retry of the same create. The second attempt is answered with the first attempt's operation and target instead of making a second object, and carries `x-velstra-idempotent-replay: true`. Reusing a key for a different request is refused. Keys are remembered for a day. Registering a node or a pool does not take one: its answer carries a credential shown only once.",
            "in": "header",
            "name": "idempotency-key",
            "required": false,
            "schema": {
              "maxLength": 255,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "id": {
                    "description": "The last segment of the name.",
                    "type": "string"
                  },
                  "labels": {
                    "additionalProperties": {
                      "type": "string"
                    },
                    "type": "object"
                  },
                  "spec": {
                    "$ref": "#/components/schemas/LoadBalancerSpec"
                  }
                },
                "required": [
                  "id",
                  "spec"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "joinToken": {
                      "description": "Only when a node or pool was registered and this API advertises an address: the whole hand-off in one string — token, cell, addresses and certificate — to paste into the installer or `velstra-cloud-node setup --join`. Shown once. See docs/joining.md.",
                      "type": "string"
                    },
                    "nodeToken": {
                      "description": "Only when a node was registered: the agent's bearer token, returned once and never readable again.",
                      "type": "string"
                    },
                    "operation": {
                      "description": "The operation's resource name. Read it to learn when the object settled.",
                      "type": "string"
                    },
                    "poolToken": {
                      "description": "Only when a pool was registered: the pool agent's bearer token, returned once and never readable again.",
                      "type": "string"
                    },
                    "target": {
                      "description": "The name the object was given.",
                      "type": "string"
                    }
                  },
                  "required": [
                    "operation",
                    "target"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Accepted. The object exists and is converging; poll the operation named here."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Create one of Load balancers",
        "tags": [
          "Load balancers"
        ]
      }
    },
    "/api/v1/projects/{project}/load-balancers/{name}": {
      "delete": {
        "description": "Marks the object for deletion; it is gone once every finalizer has released it.",
        "operationId": "delete-load-balancers",
        "parameters": [
          {
            "description": "The project the object belongs to.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The object's id — the last segment of its name.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "202": {
            "description": "Deleting: the object exists until its finalizers release it."
          },
          "204": {
            "description": "Gone."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Delete one of Load balancers",
        "tags": [
          "Load balancers"
        ]
      },
      "get": {
        "operationId": "get-load-balancers",
        "parameters": [
          {
            "description": "The project the object belongs to.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The object's id — the last segment of its name.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LoadBalancer"
                }
              }
            },
            "description": "The object."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Read one of Load balancers",
        "tags": [
          "Load balancers"
        ]
      },
      "patch": {
        "description": "Only `spec` and `labels` are writable here; `status` is the owning agent's, written through `:reportStatus`. Send `If-Match` with the revision read to make the write a compare-and-swap.",
        "operationId": "patch-load-balancers",
        "parameters": [
          {
            "description": "The project the object belongs to.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The object's id — the last segment of its name.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "labels": {
                    "additionalProperties": {
                      "type": "string"
                    },
                    "type": "object"
                  },
                  "spec": {
                    "$ref": "#/components/schemas/LoadBalancerSpec"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LoadBalancer"
                }
              }
            },
            "description": "The object as stored."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Change the spec of one of Load balancers",
        "tags": [
          "Load balancers"
        ]
      }
    },
    "/api/v1/projects/{project}/migrations": {
      "get": {
        "operationId": "list-migrations",
        "parameters": [
          {
            "description": "The project the object belongs to.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "How many to return; the response carries `nextPageToken` when there are more.",
            "in": "query",
            "name": "pageSize",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "Where the previous page ended.",
            "in": "query",
            "name": "pageToken",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only objects carrying these labels, as `key=value,key2=value2`.",
            "in": "query",
            "name": "labels",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "`true` streams changes as server-sent events instead of listing.",
            "in": "query",
            "name": "watch",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "description": "With `watch`: the revision a list reported, so nothing between the list and the watch is lost.",
            "in": "query",
            "name": "fromRevision",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only objects created at or after this moment: milliseconds since the epoch, or a span back from now like `30m`, `6h`, `7d`.",
            "in": "query",
            "name": "since",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only objects created before this moment, same spellings as `since`. Exclusive, so two adjacent ranges neither overlap nor skip.",
            "in": "query",
            "name": "until",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "`name` or `createdAt`, optionally followed by ` desc`. An ordered listing is a top-N: everything the filter admits is read and sorted, and the first `pageSize` of the sorted order is returned with no `nextPageToken` (and `\"truncated\": true` when the answer was cut). Refused together with `pageToken`.",
            "in": "query",
            "name": "orderBy",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "A read mask: comma-separated dotted paths, as `meta.name,status.conditions`. `meta.name` is always returned.",
            "in": "query",
            "name": "fields",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "items": {
                      "items": {
                        "$ref": "#/components/schemas/Migration"
                      },
                      "type": "array"
                    },
                    "nextPageToken": {
                      "type": "string"
                    },
                    "revision": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "items",
                    "revision"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A page of objects. `X-Velstra-Revision` is the revision the list is consistent at."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "List Migrations",
        "tags": [
          "Migrations"
        ]
      },
      "post": {
        "operationId": "create-migrations",
        "parameters": [
          {
            "description": "The project the object belongs to.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "A key of the caller's own invention, sent again on every retry of the same create. The second attempt is answered with the first attempt's operation and target instead of making a second object, and carries `x-velstra-idempotent-replay: true`. Reusing a key for a different request is refused. Keys are remembered for a day. Registering a node or a pool does not take one: its answer carries a credential shown only once.",
            "in": "header",
            "name": "idempotency-key",
            "required": false,
            "schema": {
              "maxLength": 255,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "id": {
                    "description": "The last segment of the name.",
                    "type": "string"
                  },
                  "labels": {
                    "additionalProperties": {
                      "type": "string"
                    },
                    "type": "object"
                  },
                  "spec": {
                    "$ref": "#/components/schemas/MigrationSpec"
                  }
                },
                "required": [
                  "id",
                  "spec"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "joinToken": {
                      "description": "Only when a node or pool was registered and this API advertises an address: the whole hand-off in one string — token, cell, addresses and certificate — to paste into the installer or `velstra-cloud-node setup --join`. Shown once. See docs/joining.md.",
                      "type": "string"
                    },
                    "nodeToken": {
                      "description": "Only when a node was registered: the agent's bearer token, returned once and never readable again.",
                      "type": "string"
                    },
                    "operation": {
                      "description": "The operation's resource name. Read it to learn when the object settled.",
                      "type": "string"
                    },
                    "poolToken": {
                      "description": "Only when a pool was registered: the pool agent's bearer token, returned once and never readable again.",
                      "type": "string"
                    },
                    "target": {
                      "description": "The name the object was given.",
                      "type": "string"
                    }
                  },
                  "required": [
                    "operation",
                    "target"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Accepted. The object exists and is converging; poll the operation named here."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Create one of Migrations",
        "tags": [
          "Migrations"
        ]
      }
    },
    "/api/v1/projects/{project}/migrations/{name}": {
      "delete": {
        "description": "Marks the object for deletion; it is gone once every finalizer has released it.",
        "operationId": "delete-migrations",
        "parameters": [
          {
            "description": "The project the object belongs to.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The object's id — the last segment of its name.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "202": {
            "description": "Deleting: the object exists until its finalizers release it."
          },
          "204": {
            "description": "Gone."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Delete one of Migrations",
        "tags": [
          "Migrations"
        ]
      },
      "get": {
        "operationId": "get-migrations",
        "parameters": [
          {
            "description": "The project the object belongs to.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The object's id — the last segment of its name.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Migration"
                }
              }
            },
            "description": "The object."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Read one of Migrations",
        "tags": [
          "Migrations"
        ]
      }
    },
    "/api/v1/projects/{project}/networks": {
      "get": {
        "operationId": "list-networks",
        "parameters": [
          {
            "description": "The project the object belongs to.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "How many to return; the response carries `nextPageToken` when there are more.",
            "in": "query",
            "name": "pageSize",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "Where the previous page ended.",
            "in": "query",
            "name": "pageToken",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only objects carrying these labels, as `key=value,key2=value2`.",
            "in": "query",
            "name": "labels",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "`true` streams changes as server-sent events instead of listing.",
            "in": "query",
            "name": "watch",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "description": "With `watch`: the revision a list reported, so nothing between the list and the watch is lost.",
            "in": "query",
            "name": "fromRevision",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only objects created at or after this moment: milliseconds since the epoch, or a span back from now like `30m`, `6h`, `7d`.",
            "in": "query",
            "name": "since",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only objects created before this moment, same spellings as `since`. Exclusive, so two adjacent ranges neither overlap nor skip.",
            "in": "query",
            "name": "until",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "`name` or `createdAt`, optionally followed by ` desc`. An ordered listing is a top-N: everything the filter admits is read and sorted, and the first `pageSize` of the sorted order is returned with no `nextPageToken` (and `\"truncated\": true` when the answer was cut). Refused together with `pageToken`.",
            "in": "query",
            "name": "orderBy",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "A read mask: comma-separated dotted paths, as `meta.name,status.conditions`. `meta.name` is always returned.",
            "in": "query",
            "name": "fields",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "items": {
                      "items": {
                        "$ref": "#/components/schemas/Network"
                      },
                      "type": "array"
                    },
                    "nextPageToken": {
                      "type": "string"
                    },
                    "revision": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "items",
                    "revision"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A page of objects. `X-Velstra-Revision` is the revision the list is consistent at."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "List Networks",
        "tags": [
          "Networks"
        ]
      },
      "post": {
        "operationId": "create-networks",
        "parameters": [
          {
            "description": "The project the object belongs to.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "A key of the caller's own invention, sent again on every retry of the same create. The second attempt is answered with the first attempt's operation and target instead of making a second object, and carries `x-velstra-idempotent-replay: true`. Reusing a key for a different request is refused. Keys are remembered for a day. Registering a node or a pool does not take one: its answer carries a credential shown only once.",
            "in": "header",
            "name": "idempotency-key",
            "required": false,
            "schema": {
              "maxLength": 255,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "id": {
                    "description": "The last segment of the name.",
                    "type": "string"
                  },
                  "labels": {
                    "additionalProperties": {
                      "type": "string"
                    },
                    "type": "object"
                  },
                  "spec": {
                    "$ref": "#/components/schemas/NetworkSpec"
                  }
                },
                "required": [
                  "id",
                  "spec"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "joinToken": {
                      "description": "Only when a node or pool was registered and this API advertises an address: the whole hand-off in one string — token, cell, addresses and certificate — to paste into the installer or `velstra-cloud-node setup --join`. Shown once. See docs/joining.md.",
                      "type": "string"
                    },
                    "nodeToken": {
                      "description": "Only when a node was registered: the agent's bearer token, returned once and never readable again.",
                      "type": "string"
                    },
                    "operation": {
                      "description": "The operation's resource name. Read it to learn when the object settled.",
                      "type": "string"
                    },
                    "poolToken": {
                      "description": "Only when a pool was registered: the pool agent's bearer token, returned once and never readable again.",
                      "type": "string"
                    },
                    "target": {
                      "description": "The name the object was given.",
                      "type": "string"
                    }
                  },
                  "required": [
                    "operation",
                    "target"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Accepted. The object exists and is converging; poll the operation named here."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Create one of Networks",
        "tags": [
          "Networks"
        ]
      }
    },
    "/api/v1/projects/{project}/networks/{name}": {
      "delete": {
        "description": "Marks the object for deletion; it is gone once every finalizer has released it.",
        "operationId": "delete-networks",
        "parameters": [
          {
            "description": "The project the object belongs to.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The object's id — the last segment of its name.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "202": {
            "description": "Deleting: the object exists until its finalizers release it."
          },
          "204": {
            "description": "Gone."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Delete one of Networks",
        "tags": [
          "Networks"
        ]
      },
      "get": {
        "operationId": "get-networks",
        "parameters": [
          {
            "description": "The project the object belongs to.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The object's id — the last segment of its name.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Network"
                }
              }
            },
            "description": "The object."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Read one of Networks",
        "tags": [
          "Networks"
        ]
      },
      "patch": {
        "description": "Only `spec` and `labels` are writable here; `status` is the owning agent's, written through `:reportStatus`. Send `If-Match` with the revision read to make the write a compare-and-swap.",
        "operationId": "patch-networks",
        "parameters": [
          {
            "description": "The project the object belongs to.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The object's id — the last segment of its name.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "labels": {
                    "additionalProperties": {
                      "type": "string"
                    },
                    "type": "object"
                  },
                  "spec": {
                    "$ref": "#/components/schemas/NetworkSpec"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Network"
                }
              }
            },
            "description": "The object as stored."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Change the spec of one of Networks",
        "tags": [
          "Networks"
        ]
      }
    },
    "/api/v1/projects/{project}/operations": {
      "get": {
        "operationId": "list-operations",
        "parameters": [
          {
            "description": "The project the object belongs to.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "How many to return; the response carries `nextPageToken` when there are more.",
            "in": "query",
            "name": "pageSize",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "Where the previous page ended.",
            "in": "query",
            "name": "pageToken",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only objects carrying these labels, as `key=value,key2=value2`.",
            "in": "query",
            "name": "labels",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "`true` streams changes as server-sent events instead of listing.",
            "in": "query",
            "name": "watch",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "description": "With `watch`: the revision a list reported, so nothing between the list and the watch is lost.",
            "in": "query",
            "name": "fromRevision",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only objects created at or after this moment: milliseconds since the epoch, or a span back from now like `30m`, `6h`, `7d`.",
            "in": "query",
            "name": "since",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only objects created before this moment, same spellings as `since`. Exclusive, so two adjacent ranges neither overlap nor skip.",
            "in": "query",
            "name": "until",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "`name` or `createdAt`, optionally followed by ` desc`. An ordered listing is a top-N: everything the filter admits is read and sorted, and the first `pageSize` of the sorted order is returned with no `nextPageToken` (and `\"truncated\": true` when the answer was cut). Refused together with `pageToken`.",
            "in": "query",
            "name": "orderBy",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "A read mask: comma-separated dotted paths, as `meta.name,status.conditions`. `meta.name` is always returned.",
            "in": "query",
            "name": "fields",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "items": {
                      "items": {
                        "$ref": "#/components/schemas/Operation"
                      },
                      "type": "array"
                    },
                    "nextPageToken": {
                      "type": "string"
                    },
                    "revision": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "items",
                    "revision"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A page of objects. `X-Velstra-Revision` is the revision the list is consistent at."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "List Operations",
        "tags": [
          "Operations"
        ]
      }
    },
    "/api/v1/projects/{project}/operations/{name}": {
      "get": {
        "operationId": "get-operations",
        "parameters": [
          {
            "description": "The project the object belongs to.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The object's id — the last segment of its name.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Operation"
                }
              }
            },
            "description": "The object."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Read one of Operations",
        "tags": [
          "Operations"
        ]
      }
    },
    "/api/v1/projects/{project}/ports": {
      "get": {
        "operationId": "list-ports",
        "parameters": [
          {
            "description": "The project the object belongs to.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "How many to return; the response carries `nextPageToken` when there are more.",
            "in": "query",
            "name": "pageSize",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "Where the previous page ended.",
            "in": "query",
            "name": "pageToken",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only objects carrying these labels, as `key=value,key2=value2`.",
            "in": "query",
            "name": "labels",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "`true` streams changes as server-sent events instead of listing.",
            "in": "query",
            "name": "watch",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "description": "With `watch`: the revision a list reported, so nothing between the list and the watch is lost.",
            "in": "query",
            "name": "fromRevision",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only objects created at or after this moment: milliseconds since the epoch, or a span back from now like `30m`, `6h`, `7d`.",
            "in": "query",
            "name": "since",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only objects created before this moment, same spellings as `since`. Exclusive, so two adjacent ranges neither overlap nor skip.",
            "in": "query",
            "name": "until",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "`name` or `createdAt`, optionally followed by ` desc`. An ordered listing is a top-N: everything the filter admits is read and sorted, and the first `pageSize` of the sorted order is returned with no `nextPageToken` (and `\"truncated\": true` when the answer was cut). Refused together with `pageToken`.",
            "in": "query",
            "name": "orderBy",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "A read mask: comma-separated dotted paths, as `meta.name,status.conditions`. `meta.name` is always returned.",
            "in": "query",
            "name": "fields",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "items": {
                      "items": {
                        "$ref": "#/components/schemas/Port"
                      },
                      "type": "array"
                    },
                    "nextPageToken": {
                      "type": "string"
                    },
                    "revision": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "items",
                    "revision"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A page of objects. `X-Velstra-Revision` is the revision the list is consistent at."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "List Ports",
        "tags": [
          "Ports"
        ]
      },
      "post": {
        "operationId": "create-ports",
        "parameters": [
          {
            "description": "The project the object belongs to.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "A key of the caller's own invention, sent again on every retry of the same create. The second attempt is answered with the first attempt's operation and target instead of making a second object, and carries `x-velstra-idempotent-replay: true`. Reusing a key for a different request is refused. Keys are remembered for a day. Registering a node or a pool does not take one: its answer carries a credential shown only once.",
            "in": "header",
            "name": "idempotency-key",
            "required": false,
            "schema": {
              "maxLength": 255,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "id": {
                    "description": "The last segment of the name.",
                    "type": "string"
                  },
                  "labels": {
                    "additionalProperties": {
                      "type": "string"
                    },
                    "type": "object"
                  },
                  "spec": {
                    "$ref": "#/components/schemas/PortSpec"
                  }
                },
                "required": [
                  "id",
                  "spec"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "joinToken": {
                      "description": "Only when a node or pool was registered and this API advertises an address: the whole hand-off in one string — token, cell, addresses and certificate — to paste into the installer or `velstra-cloud-node setup --join`. Shown once. See docs/joining.md.",
                      "type": "string"
                    },
                    "nodeToken": {
                      "description": "Only when a node was registered: the agent's bearer token, returned once and never readable again.",
                      "type": "string"
                    },
                    "operation": {
                      "description": "The operation's resource name. Read it to learn when the object settled.",
                      "type": "string"
                    },
                    "poolToken": {
                      "description": "Only when a pool was registered: the pool agent's bearer token, returned once and never readable again.",
                      "type": "string"
                    },
                    "target": {
                      "description": "The name the object was given.",
                      "type": "string"
                    }
                  },
                  "required": [
                    "operation",
                    "target"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Accepted. The object exists and is converging; poll the operation named here."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Create one of Ports",
        "tags": [
          "Ports"
        ]
      }
    },
    "/api/v1/projects/{project}/ports/{name}": {
      "delete": {
        "description": "Marks the object for deletion; it is gone once every finalizer has released it.",
        "operationId": "delete-ports",
        "parameters": [
          {
            "description": "The project the object belongs to.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The object's id — the last segment of its name.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "202": {
            "description": "Deleting: the object exists until its finalizers release it."
          },
          "204": {
            "description": "Gone."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Delete one of Ports",
        "tags": [
          "Ports"
        ]
      },
      "get": {
        "operationId": "get-ports",
        "parameters": [
          {
            "description": "The project the object belongs to.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The object's id — the last segment of its name.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Port"
                }
              }
            },
            "description": "The object."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Read one of Ports",
        "tags": [
          "Ports"
        ]
      },
      "patch": {
        "description": "Only `spec` and `labels` are writable here; `status` is the owning agent's, written through `:reportStatus`. Send `If-Match` with the revision read to make the write a compare-and-swap.",
        "operationId": "patch-ports",
        "parameters": [
          {
            "description": "The project the object belongs to.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The object's id — the last segment of its name.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "labels": {
                    "additionalProperties": {
                      "type": "string"
                    },
                    "type": "object"
                  },
                  "spec": {
                    "$ref": "#/components/schemas/PortSpec"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Port"
                }
              }
            },
            "description": "The object as stored."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Change the spec of one of Ports",
        "tags": [
          "Ports"
        ]
      }
    },
    "/api/v1/projects/{project}/ports/{name}:reportStatus": {
      "post": {
        "operationId": "reportStatus-ports",
        "parameters": [
          {
            "description": "The project the object belongs to.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The object's id — the last segment of its name.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": true,
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": true,
                  "type": "object"
                }
              }
            },
            "description": "The answer."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "The owning agent's report. A node identity only; `If-Match` carries the revision read.",
        "tags": [
          "Ports"
        ]
      }
    },
    "/api/v1/projects/{project}/routers": {
      "get": {
        "operationId": "list-routers",
        "parameters": [
          {
            "description": "The project the object belongs to.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "How many to return; the response carries `nextPageToken` when there are more.",
            "in": "query",
            "name": "pageSize",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "Where the previous page ended.",
            "in": "query",
            "name": "pageToken",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only objects carrying these labels, as `key=value,key2=value2`.",
            "in": "query",
            "name": "labels",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "`true` streams changes as server-sent events instead of listing.",
            "in": "query",
            "name": "watch",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "description": "With `watch`: the revision a list reported, so nothing between the list and the watch is lost.",
            "in": "query",
            "name": "fromRevision",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only objects created at or after this moment: milliseconds since the epoch, or a span back from now like `30m`, `6h`, `7d`.",
            "in": "query",
            "name": "since",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only objects created before this moment, same spellings as `since`. Exclusive, so two adjacent ranges neither overlap nor skip.",
            "in": "query",
            "name": "until",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "`name` or `createdAt`, optionally followed by ` desc`. An ordered listing is a top-N: everything the filter admits is read and sorted, and the first `pageSize` of the sorted order is returned with no `nextPageToken` (and `\"truncated\": true` when the answer was cut). Refused together with `pageToken`.",
            "in": "query",
            "name": "orderBy",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "A read mask: comma-separated dotted paths, as `meta.name,status.conditions`. `meta.name` is always returned.",
            "in": "query",
            "name": "fields",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "items": {
                      "items": {
                        "$ref": "#/components/schemas/Router"
                      },
                      "type": "array"
                    },
                    "nextPageToken": {
                      "type": "string"
                    },
                    "revision": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "items",
                    "revision"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A page of objects. `X-Velstra-Revision` is the revision the list is consistent at."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "List Routers",
        "tags": [
          "Routers"
        ]
      },
      "post": {
        "operationId": "create-routers",
        "parameters": [
          {
            "description": "The project the object belongs to.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "A key of the caller's own invention, sent again on every retry of the same create. The second attempt is answered with the first attempt's operation and target instead of making a second object, and carries `x-velstra-idempotent-replay: true`. Reusing a key for a different request is refused. Keys are remembered for a day. Registering a node or a pool does not take one: its answer carries a credential shown only once.",
            "in": "header",
            "name": "idempotency-key",
            "required": false,
            "schema": {
              "maxLength": 255,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "id": {
                    "description": "The last segment of the name.",
                    "type": "string"
                  },
                  "labels": {
                    "additionalProperties": {
                      "type": "string"
                    },
                    "type": "object"
                  },
                  "spec": {
                    "$ref": "#/components/schemas/RouterSpec"
                  }
                },
                "required": [
                  "id",
                  "spec"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "joinToken": {
                      "description": "Only when a node or pool was registered and this API advertises an address: the whole hand-off in one string — token, cell, addresses and certificate — to paste into the installer or `velstra-cloud-node setup --join`. Shown once. See docs/joining.md.",
                      "type": "string"
                    },
                    "nodeToken": {
                      "description": "Only when a node was registered: the agent's bearer token, returned once and never readable again.",
                      "type": "string"
                    },
                    "operation": {
                      "description": "The operation's resource name. Read it to learn when the object settled.",
                      "type": "string"
                    },
                    "poolToken": {
                      "description": "Only when a pool was registered: the pool agent's bearer token, returned once and never readable again.",
                      "type": "string"
                    },
                    "target": {
                      "description": "The name the object was given.",
                      "type": "string"
                    }
                  },
                  "required": [
                    "operation",
                    "target"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Accepted. The object exists and is converging; poll the operation named here."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Create one of Routers",
        "tags": [
          "Routers"
        ]
      }
    },
    "/api/v1/projects/{project}/routers/{name}": {
      "delete": {
        "description": "Marks the object for deletion; it is gone once every finalizer has released it.",
        "operationId": "delete-routers",
        "parameters": [
          {
            "description": "The project the object belongs to.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The object's id — the last segment of its name.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "202": {
            "description": "Deleting: the object exists until its finalizers release it."
          },
          "204": {
            "description": "Gone."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Delete one of Routers",
        "tags": [
          "Routers"
        ]
      },
      "get": {
        "operationId": "get-routers",
        "parameters": [
          {
            "description": "The project the object belongs to.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The object's id — the last segment of its name.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Router"
                }
              }
            },
            "description": "The object."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Read one of Routers",
        "tags": [
          "Routers"
        ]
      },
      "patch": {
        "description": "Only `spec` and `labels` are writable here; `status` is the owning agent's, written through `:reportStatus`. Send `If-Match` with the revision read to make the write a compare-and-swap.",
        "operationId": "patch-routers",
        "parameters": [
          {
            "description": "The project the object belongs to.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The object's id — the last segment of its name.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "labels": {
                    "additionalProperties": {
                      "type": "string"
                    },
                    "type": "object"
                  },
                  "spec": {
                    "$ref": "#/components/schemas/RouterSpec"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Router"
                }
              }
            },
            "description": "The object as stored."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Change the spec of one of Routers",
        "tags": [
          "Routers"
        ]
      }
    },
    "/api/v1/projects/{project}/security-groups": {
      "get": {
        "operationId": "list-security-groups",
        "parameters": [
          {
            "description": "The project the object belongs to.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "How many to return; the response carries `nextPageToken` when there are more.",
            "in": "query",
            "name": "pageSize",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "Where the previous page ended.",
            "in": "query",
            "name": "pageToken",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only objects carrying these labels, as `key=value,key2=value2`.",
            "in": "query",
            "name": "labels",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "`true` streams changes as server-sent events instead of listing.",
            "in": "query",
            "name": "watch",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "description": "With `watch`: the revision a list reported, so nothing between the list and the watch is lost.",
            "in": "query",
            "name": "fromRevision",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only objects created at or after this moment: milliseconds since the epoch, or a span back from now like `30m`, `6h`, `7d`.",
            "in": "query",
            "name": "since",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only objects created before this moment, same spellings as `since`. Exclusive, so two adjacent ranges neither overlap nor skip.",
            "in": "query",
            "name": "until",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "`name` or `createdAt`, optionally followed by ` desc`. An ordered listing is a top-N: everything the filter admits is read and sorted, and the first `pageSize` of the sorted order is returned with no `nextPageToken` (and `\"truncated\": true` when the answer was cut). Refused together with `pageToken`.",
            "in": "query",
            "name": "orderBy",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "A read mask: comma-separated dotted paths, as `meta.name,status.conditions`. `meta.name` is always returned.",
            "in": "query",
            "name": "fields",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "items": {
                      "items": {
                        "$ref": "#/components/schemas/SecurityGroup"
                      },
                      "type": "array"
                    },
                    "nextPageToken": {
                      "type": "string"
                    },
                    "revision": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "items",
                    "revision"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A page of objects. `X-Velstra-Revision` is the revision the list is consistent at."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "List Security groups",
        "tags": [
          "Security groups"
        ]
      },
      "post": {
        "operationId": "create-security-groups",
        "parameters": [
          {
            "description": "The project the object belongs to.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "A key of the caller's own invention, sent again on every retry of the same create. The second attempt is answered with the first attempt's operation and target instead of making a second object, and carries `x-velstra-idempotent-replay: true`. Reusing a key for a different request is refused. Keys are remembered for a day. Registering a node or a pool does not take one: its answer carries a credential shown only once.",
            "in": "header",
            "name": "idempotency-key",
            "required": false,
            "schema": {
              "maxLength": 255,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "id": {
                    "description": "The last segment of the name.",
                    "type": "string"
                  },
                  "labels": {
                    "additionalProperties": {
                      "type": "string"
                    },
                    "type": "object"
                  },
                  "spec": {
                    "$ref": "#/components/schemas/SecurityGroupSpec"
                  }
                },
                "required": [
                  "id",
                  "spec"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "joinToken": {
                      "description": "Only when a node or pool was registered and this API advertises an address: the whole hand-off in one string — token, cell, addresses and certificate — to paste into the installer or `velstra-cloud-node setup --join`. Shown once. See docs/joining.md.",
                      "type": "string"
                    },
                    "nodeToken": {
                      "description": "Only when a node was registered: the agent's bearer token, returned once and never readable again.",
                      "type": "string"
                    },
                    "operation": {
                      "description": "The operation's resource name. Read it to learn when the object settled.",
                      "type": "string"
                    },
                    "poolToken": {
                      "description": "Only when a pool was registered: the pool agent's bearer token, returned once and never readable again.",
                      "type": "string"
                    },
                    "target": {
                      "description": "The name the object was given.",
                      "type": "string"
                    }
                  },
                  "required": [
                    "operation",
                    "target"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Accepted. The object exists and is converging; poll the operation named here."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Create one of Security groups",
        "tags": [
          "Security groups"
        ]
      }
    },
    "/api/v1/projects/{project}/security-groups/{name}": {
      "delete": {
        "description": "Marks the object for deletion; it is gone once every finalizer has released it.",
        "operationId": "delete-security-groups",
        "parameters": [
          {
            "description": "The project the object belongs to.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The object's id — the last segment of its name.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "202": {
            "description": "Deleting: the object exists until its finalizers release it."
          },
          "204": {
            "description": "Gone."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Delete one of Security groups",
        "tags": [
          "Security groups"
        ]
      },
      "get": {
        "operationId": "get-security-groups",
        "parameters": [
          {
            "description": "The project the object belongs to.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The object's id — the last segment of its name.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SecurityGroup"
                }
              }
            },
            "description": "The object."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Read one of Security groups",
        "tags": [
          "Security groups"
        ]
      },
      "patch": {
        "description": "Only `spec` and `labels` are writable here; `status` is the owning agent's, written through `:reportStatus`. Send `If-Match` with the revision read to make the write a compare-and-swap.",
        "operationId": "patch-security-groups",
        "parameters": [
          {
            "description": "The project the object belongs to.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The object's id — the last segment of its name.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "labels": {
                    "additionalProperties": {
                      "type": "string"
                    },
                    "type": "object"
                  },
                  "spec": {
                    "$ref": "#/components/schemas/SecurityGroupSpec"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SecurityGroup"
                }
              }
            },
            "description": "The object as stored."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Change the spec of one of Security groups",
        "tags": [
          "Security groups"
        ]
      }
    },
    "/api/v1/projects/{project}/snapshot-schedules": {
      "get": {
        "operationId": "list-snapshot-schedules",
        "parameters": [
          {
            "description": "The project the object belongs to.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "How many to return; the response carries `nextPageToken` when there are more.",
            "in": "query",
            "name": "pageSize",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "Where the previous page ended.",
            "in": "query",
            "name": "pageToken",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only objects carrying these labels, as `key=value,key2=value2`.",
            "in": "query",
            "name": "labels",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "`true` streams changes as server-sent events instead of listing.",
            "in": "query",
            "name": "watch",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "description": "With `watch`: the revision a list reported, so nothing between the list and the watch is lost.",
            "in": "query",
            "name": "fromRevision",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only objects created at or after this moment: milliseconds since the epoch, or a span back from now like `30m`, `6h`, `7d`.",
            "in": "query",
            "name": "since",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only objects created before this moment, same spellings as `since`. Exclusive, so two adjacent ranges neither overlap nor skip.",
            "in": "query",
            "name": "until",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "`name` or `createdAt`, optionally followed by ` desc`. An ordered listing is a top-N: everything the filter admits is read and sorted, and the first `pageSize` of the sorted order is returned with no `nextPageToken` (and `\"truncated\": true` when the answer was cut). Refused together with `pageToken`.",
            "in": "query",
            "name": "orderBy",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "A read mask: comma-separated dotted paths, as `meta.name,status.conditions`. `meta.name` is always returned.",
            "in": "query",
            "name": "fields",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "items": {
                      "items": {
                        "$ref": "#/components/schemas/SnapshotSchedule"
                      },
                      "type": "array"
                    },
                    "nextPageToken": {
                      "type": "string"
                    },
                    "revision": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "items",
                    "revision"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A page of objects. `X-Velstra-Revision` is the revision the list is consistent at."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "List Snapshot schedules",
        "tags": [
          "Snapshot schedules"
        ]
      },
      "post": {
        "operationId": "create-snapshot-schedules",
        "parameters": [
          {
            "description": "The project the object belongs to.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "A key of the caller's own invention, sent again on every retry of the same create. The second attempt is answered with the first attempt's operation and target instead of making a second object, and carries `x-velstra-idempotent-replay: true`. Reusing a key for a different request is refused. Keys are remembered for a day. Registering a node or a pool does not take one: its answer carries a credential shown only once.",
            "in": "header",
            "name": "idempotency-key",
            "required": false,
            "schema": {
              "maxLength": 255,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "id": {
                    "description": "The last segment of the name.",
                    "type": "string"
                  },
                  "labels": {
                    "additionalProperties": {
                      "type": "string"
                    },
                    "type": "object"
                  },
                  "spec": {
                    "$ref": "#/components/schemas/SnapshotScheduleSpec"
                  }
                },
                "required": [
                  "id",
                  "spec"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "joinToken": {
                      "description": "Only when a node or pool was registered and this API advertises an address: the whole hand-off in one string — token, cell, addresses and certificate — to paste into the installer or `velstra-cloud-node setup --join`. Shown once. See docs/joining.md.",
                      "type": "string"
                    },
                    "nodeToken": {
                      "description": "Only when a node was registered: the agent's bearer token, returned once and never readable again.",
                      "type": "string"
                    },
                    "operation": {
                      "description": "The operation's resource name. Read it to learn when the object settled.",
                      "type": "string"
                    },
                    "poolToken": {
                      "description": "Only when a pool was registered: the pool agent's bearer token, returned once and never readable again.",
                      "type": "string"
                    },
                    "target": {
                      "description": "The name the object was given.",
                      "type": "string"
                    }
                  },
                  "required": [
                    "operation",
                    "target"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Accepted. The object exists and is converging; poll the operation named here."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Create one of Snapshot schedules",
        "tags": [
          "Snapshot schedules"
        ]
      }
    },
    "/api/v1/projects/{project}/snapshot-schedules/{name}": {
      "delete": {
        "description": "Marks the object for deletion; it is gone once every finalizer has released it.",
        "operationId": "delete-snapshot-schedules",
        "parameters": [
          {
            "description": "The project the object belongs to.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The object's id — the last segment of its name.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "202": {
            "description": "Deleting: the object exists until its finalizers release it."
          },
          "204": {
            "description": "Gone."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Delete one of Snapshot schedules",
        "tags": [
          "Snapshot schedules"
        ]
      },
      "get": {
        "operationId": "get-snapshot-schedules",
        "parameters": [
          {
            "description": "The project the object belongs to.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The object's id — the last segment of its name.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SnapshotSchedule"
                }
              }
            },
            "description": "The object."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Read one of Snapshot schedules",
        "tags": [
          "Snapshot schedules"
        ]
      },
      "patch": {
        "description": "Only `spec` and `labels` are writable here; `status` is the owning agent's, written through `:reportStatus`. Send `If-Match` with the revision read to make the write a compare-and-swap.",
        "operationId": "patch-snapshot-schedules",
        "parameters": [
          {
            "description": "The project the object belongs to.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The object's id — the last segment of its name.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "labels": {
                    "additionalProperties": {
                      "type": "string"
                    },
                    "type": "object"
                  },
                  "spec": {
                    "$ref": "#/components/schemas/SnapshotScheduleSpec"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SnapshotSchedule"
                }
              }
            },
            "description": "The object as stored."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Change the spec of one of Snapshot schedules",
        "tags": [
          "Snapshot schedules"
        ]
      }
    },
    "/api/v1/projects/{project}/snapshots": {
      "get": {
        "operationId": "list-snapshots",
        "parameters": [
          {
            "description": "The project the object belongs to.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "How many to return; the response carries `nextPageToken` when there are more.",
            "in": "query",
            "name": "pageSize",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "Where the previous page ended.",
            "in": "query",
            "name": "pageToken",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only objects carrying these labels, as `key=value,key2=value2`.",
            "in": "query",
            "name": "labels",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "`true` streams changes as server-sent events instead of listing.",
            "in": "query",
            "name": "watch",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "description": "With `watch`: the revision a list reported, so nothing between the list and the watch is lost.",
            "in": "query",
            "name": "fromRevision",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only objects created at or after this moment: milliseconds since the epoch, or a span back from now like `30m`, `6h`, `7d`.",
            "in": "query",
            "name": "since",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only objects created before this moment, same spellings as `since`. Exclusive, so two adjacent ranges neither overlap nor skip.",
            "in": "query",
            "name": "until",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "`name` or `createdAt`, optionally followed by ` desc`. An ordered listing is a top-N: everything the filter admits is read and sorted, and the first `pageSize` of the sorted order is returned with no `nextPageToken` (and `\"truncated\": true` when the answer was cut). Refused together with `pageToken`.",
            "in": "query",
            "name": "orderBy",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "A read mask: comma-separated dotted paths, as `meta.name,status.conditions`. `meta.name` is always returned.",
            "in": "query",
            "name": "fields",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "items": {
                      "items": {
                        "$ref": "#/components/schemas/Snapshot"
                      },
                      "type": "array"
                    },
                    "nextPageToken": {
                      "type": "string"
                    },
                    "revision": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "items",
                    "revision"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A page of objects. `X-Velstra-Revision` is the revision the list is consistent at."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "List snapshots",
        "tags": [
          "snapshots"
        ]
      },
      "post": {
        "operationId": "create-snapshots",
        "parameters": [
          {
            "description": "The project the object belongs to.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "A key of the caller's own invention, sent again on every retry of the same create. The second attempt is answered with the first attempt's operation and target instead of making a second object, and carries `x-velstra-idempotent-replay: true`. Reusing a key for a different request is refused. Keys are remembered for a day. Registering a node or a pool does not take one: its answer carries a credential shown only once.",
            "in": "header",
            "name": "idempotency-key",
            "required": false,
            "schema": {
              "maxLength": 255,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "id": {
                    "description": "The last segment of the name.",
                    "type": "string"
                  },
                  "labels": {
                    "additionalProperties": {
                      "type": "string"
                    },
                    "type": "object"
                  },
                  "spec": {
                    "$ref": "#/components/schemas/SnapshotSpec"
                  }
                },
                "required": [
                  "id",
                  "spec"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "joinToken": {
                      "description": "Only when a node or pool was registered and this API advertises an address: the whole hand-off in one string — token, cell, addresses and certificate — to paste into the installer or `velstra-cloud-node setup --join`. Shown once. See docs/joining.md.",
                      "type": "string"
                    },
                    "nodeToken": {
                      "description": "Only when a node was registered: the agent's bearer token, returned once and never readable again.",
                      "type": "string"
                    },
                    "operation": {
                      "description": "The operation's resource name. Read it to learn when the object settled.",
                      "type": "string"
                    },
                    "poolToken": {
                      "description": "Only when a pool was registered: the pool agent's bearer token, returned once and never readable again.",
                      "type": "string"
                    },
                    "target": {
                      "description": "The name the object was given.",
                      "type": "string"
                    }
                  },
                  "required": [
                    "operation",
                    "target"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Accepted. The object exists and is converging; poll the operation named here."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Create one of snapshots",
        "tags": [
          "snapshots"
        ]
      }
    },
    "/api/v1/projects/{project}/snapshots/{name}": {
      "delete": {
        "description": "Marks the object for deletion; it is gone once every finalizer has released it.",
        "operationId": "delete-snapshots",
        "parameters": [
          {
            "description": "The project the object belongs to.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The object's id — the last segment of its name.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "202": {
            "description": "Deleting: the object exists until its finalizers release it."
          },
          "204": {
            "description": "Gone."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Delete one of snapshots",
        "tags": [
          "snapshots"
        ]
      },
      "get": {
        "operationId": "get-snapshots",
        "parameters": [
          {
            "description": "The project the object belongs to.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The object's id — the last segment of its name.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Snapshot"
                }
              }
            },
            "description": "The object."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Read one of snapshots",
        "tags": [
          "snapshots"
        ]
      },
      "patch": {
        "description": "Only `spec` and `labels` are writable here; `status` is the owning agent's, written through `:reportStatus`. Send `If-Match` with the revision read to make the write a compare-and-swap.",
        "operationId": "patch-snapshots",
        "parameters": [
          {
            "description": "The project the object belongs to.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The object's id — the last segment of its name.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "labels": {
                    "additionalProperties": {
                      "type": "string"
                    },
                    "type": "object"
                  },
                  "spec": {
                    "$ref": "#/components/schemas/SnapshotSpec"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Snapshot"
                }
              }
            },
            "description": "The object as stored."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Change the spec of one of snapshots",
        "tags": [
          "snapshots"
        ]
      }
    },
    "/api/v1/projects/{project}/subnets": {
      "get": {
        "operationId": "list-subnets",
        "parameters": [
          {
            "description": "The project the object belongs to.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "How many to return; the response carries `nextPageToken` when there are more.",
            "in": "query",
            "name": "pageSize",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "Where the previous page ended.",
            "in": "query",
            "name": "pageToken",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only objects carrying these labels, as `key=value,key2=value2`.",
            "in": "query",
            "name": "labels",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "`true` streams changes as server-sent events instead of listing.",
            "in": "query",
            "name": "watch",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "description": "With `watch`: the revision a list reported, so nothing between the list and the watch is lost.",
            "in": "query",
            "name": "fromRevision",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only objects created at or after this moment: milliseconds since the epoch, or a span back from now like `30m`, `6h`, `7d`.",
            "in": "query",
            "name": "since",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only objects created before this moment, same spellings as `since`. Exclusive, so two adjacent ranges neither overlap nor skip.",
            "in": "query",
            "name": "until",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "`name` or `createdAt`, optionally followed by ` desc`. An ordered listing is a top-N: everything the filter admits is read and sorted, and the first `pageSize` of the sorted order is returned with no `nextPageToken` (and `\"truncated\": true` when the answer was cut). Refused together with `pageToken`.",
            "in": "query",
            "name": "orderBy",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "A read mask: comma-separated dotted paths, as `meta.name,status.conditions`. `meta.name` is always returned.",
            "in": "query",
            "name": "fields",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "items": {
                      "items": {
                        "$ref": "#/components/schemas/Subnet"
                      },
                      "type": "array"
                    },
                    "nextPageToken": {
                      "type": "string"
                    },
                    "revision": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "items",
                    "revision"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A page of objects. `X-Velstra-Revision` is the revision the list is consistent at."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "List Subnets",
        "tags": [
          "Subnets"
        ]
      },
      "post": {
        "operationId": "create-subnets",
        "parameters": [
          {
            "description": "The project the object belongs to.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "A key of the caller's own invention, sent again on every retry of the same create. The second attempt is answered with the first attempt's operation and target instead of making a second object, and carries `x-velstra-idempotent-replay: true`. Reusing a key for a different request is refused. Keys are remembered for a day. Registering a node or a pool does not take one: its answer carries a credential shown only once.",
            "in": "header",
            "name": "idempotency-key",
            "required": false,
            "schema": {
              "maxLength": 255,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "id": {
                    "description": "The last segment of the name.",
                    "type": "string"
                  },
                  "labels": {
                    "additionalProperties": {
                      "type": "string"
                    },
                    "type": "object"
                  },
                  "spec": {
                    "$ref": "#/components/schemas/SubnetSpec"
                  }
                },
                "required": [
                  "id",
                  "spec"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "joinToken": {
                      "description": "Only when a node or pool was registered and this API advertises an address: the whole hand-off in one string — token, cell, addresses and certificate — to paste into the installer or `velstra-cloud-node setup --join`. Shown once. See docs/joining.md.",
                      "type": "string"
                    },
                    "nodeToken": {
                      "description": "Only when a node was registered: the agent's bearer token, returned once and never readable again.",
                      "type": "string"
                    },
                    "operation": {
                      "description": "The operation's resource name. Read it to learn when the object settled.",
                      "type": "string"
                    },
                    "poolToken": {
                      "description": "Only when a pool was registered: the pool agent's bearer token, returned once and never readable again.",
                      "type": "string"
                    },
                    "target": {
                      "description": "The name the object was given.",
                      "type": "string"
                    }
                  },
                  "required": [
                    "operation",
                    "target"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Accepted. The object exists and is converging; poll the operation named here."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Create one of Subnets",
        "tags": [
          "Subnets"
        ]
      }
    },
    "/api/v1/projects/{project}/subnets/{name}": {
      "delete": {
        "description": "Marks the object for deletion; it is gone once every finalizer has released it.",
        "operationId": "delete-subnets",
        "parameters": [
          {
            "description": "The project the object belongs to.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The object's id — the last segment of its name.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "202": {
            "description": "Deleting: the object exists until its finalizers release it."
          },
          "204": {
            "description": "Gone."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Delete one of Subnets",
        "tags": [
          "Subnets"
        ]
      },
      "get": {
        "operationId": "get-subnets",
        "parameters": [
          {
            "description": "The project the object belongs to.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The object's id — the last segment of its name.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Subnet"
                }
              }
            },
            "description": "The object."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Read one of Subnets",
        "tags": [
          "Subnets"
        ]
      },
      "patch": {
        "description": "Only `spec` and `labels` are writable here; `status` is the owning agent's, written through `:reportStatus`. Send `If-Match` with the revision read to make the write a compare-and-swap.",
        "operationId": "patch-subnets",
        "parameters": [
          {
            "description": "The project the object belongs to.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The object's id — the last segment of its name.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "labels": {
                    "additionalProperties": {
                      "type": "string"
                    },
                    "type": "object"
                  },
                  "spec": {
                    "$ref": "#/components/schemas/SubnetSpec"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Subnet"
                }
              }
            },
            "description": "The object as stored."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Change the spec of one of Subnets",
        "tags": [
          "Subnets"
        ]
      }
    },
    "/api/v1/projects/{project}/usage": {
      "get": {
        "operationId": "list-usage",
        "parameters": [
          {
            "description": "The project the object belongs to.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "How many to return; the response carries `nextPageToken` when there are more.",
            "in": "query",
            "name": "pageSize",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "Where the previous page ended.",
            "in": "query",
            "name": "pageToken",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only objects carrying these labels, as `key=value,key2=value2`.",
            "in": "query",
            "name": "labels",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "`true` streams changes as server-sent events instead of listing.",
            "in": "query",
            "name": "watch",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "description": "With `watch`: the revision a list reported, so nothing between the list and the watch is lost.",
            "in": "query",
            "name": "fromRevision",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only objects created at or after this moment: milliseconds since the epoch, or a span back from now like `30m`, `6h`, `7d`.",
            "in": "query",
            "name": "since",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only objects created before this moment, same spellings as `since`. Exclusive, so two adjacent ranges neither overlap nor skip.",
            "in": "query",
            "name": "until",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "`name` or `createdAt`, optionally followed by ` desc`. An ordered listing is a top-N: everything the filter admits is read and sorted, and the first `pageSize` of the sorted order is returned with no `nextPageToken` (and `\"truncated\": true` when the answer was cut). Refused together with `pageToken`.",
            "in": "query",
            "name": "orderBy",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "A read mask: comma-separated dotted paths, as `meta.name,status.conditions`. `meta.name` is always returned.",
            "in": "query",
            "name": "fields",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "items": {
                      "items": {
                        "$ref": "#/components/schemas/UsageRecord"
                      },
                      "type": "array"
                    },
                    "nextPageToken": {
                      "type": "string"
                    },
                    "revision": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "items",
                    "revision"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A page of objects. `X-Velstra-Revision` is the revision the list is consistent at."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "List Usage",
        "tags": [
          "Usage"
        ]
      }
    },
    "/api/v1/projects/{project}/usage/{name}": {
      "get": {
        "operationId": "get-usage",
        "parameters": [
          {
            "description": "The project the object belongs to.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The object's id — the last segment of its name.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UsageRecord"
                }
              }
            },
            "description": "The object."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Read one of Usage",
        "tags": [
          "Usage"
        ]
      }
    },
    "/api/v1/projects/{project}/volumes": {
      "get": {
        "operationId": "list-volumes",
        "parameters": [
          {
            "description": "The project the object belongs to.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "How many to return; the response carries `nextPageToken` when there are more.",
            "in": "query",
            "name": "pageSize",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "Where the previous page ended.",
            "in": "query",
            "name": "pageToken",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only objects carrying these labels, as `key=value,key2=value2`.",
            "in": "query",
            "name": "labels",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "`true` streams changes as server-sent events instead of listing.",
            "in": "query",
            "name": "watch",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "description": "With `watch`: the revision a list reported, so nothing between the list and the watch is lost.",
            "in": "query",
            "name": "fromRevision",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only objects created at or after this moment: milliseconds since the epoch, or a span back from now like `30m`, `6h`, `7d`.",
            "in": "query",
            "name": "since",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only objects created before this moment, same spellings as `since`. Exclusive, so two adjacent ranges neither overlap nor skip.",
            "in": "query",
            "name": "until",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "`name` or `createdAt`, optionally followed by ` desc`. An ordered listing is a top-N: everything the filter admits is read and sorted, and the first `pageSize` of the sorted order is returned with no `nextPageToken` (and `\"truncated\": true` when the answer was cut). Refused together with `pageToken`.",
            "in": "query",
            "name": "orderBy",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "A read mask: comma-separated dotted paths, as `meta.name,status.conditions`. `meta.name` is always returned.",
            "in": "query",
            "name": "fields",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "items": {
                      "items": {
                        "$ref": "#/components/schemas/Volume"
                      },
                      "type": "array"
                    },
                    "nextPageToken": {
                      "type": "string"
                    },
                    "revision": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "items",
                    "revision"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A page of objects. `X-Velstra-Revision` is the revision the list is consistent at."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "List Volumes",
        "tags": [
          "Volumes"
        ]
      },
      "post": {
        "operationId": "create-volumes",
        "parameters": [
          {
            "description": "The project the object belongs to.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "A key of the caller's own invention, sent again on every retry of the same create. The second attempt is answered with the first attempt's operation and target instead of making a second object, and carries `x-velstra-idempotent-replay: true`. Reusing a key for a different request is refused. Keys are remembered for a day. Registering a node or a pool does not take one: its answer carries a credential shown only once.",
            "in": "header",
            "name": "idempotency-key",
            "required": false,
            "schema": {
              "maxLength": 255,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "id": {
                    "description": "The last segment of the name.",
                    "type": "string"
                  },
                  "labels": {
                    "additionalProperties": {
                      "type": "string"
                    },
                    "type": "object"
                  },
                  "spec": {
                    "$ref": "#/components/schemas/VolumeSpec"
                  }
                },
                "required": [
                  "id",
                  "spec"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "joinToken": {
                      "description": "Only when a node or pool was registered and this API advertises an address: the whole hand-off in one string — token, cell, addresses and certificate — to paste into the installer or `velstra-cloud-node setup --join`. Shown once. See docs/joining.md.",
                      "type": "string"
                    },
                    "nodeToken": {
                      "description": "Only when a node was registered: the agent's bearer token, returned once and never readable again.",
                      "type": "string"
                    },
                    "operation": {
                      "description": "The operation's resource name. Read it to learn when the object settled.",
                      "type": "string"
                    },
                    "poolToken": {
                      "description": "Only when a pool was registered: the pool agent's bearer token, returned once and never readable again.",
                      "type": "string"
                    },
                    "target": {
                      "description": "The name the object was given.",
                      "type": "string"
                    }
                  },
                  "required": [
                    "operation",
                    "target"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Accepted. The object exists and is converging; poll the operation named here."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Create one of Volumes",
        "tags": [
          "Volumes"
        ]
      }
    },
    "/api/v1/projects/{project}/volumes/{name}": {
      "delete": {
        "description": "Marks the object for deletion; it is gone once every finalizer has released it.",
        "operationId": "delete-volumes",
        "parameters": [
          {
            "description": "The project the object belongs to.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The object's id — the last segment of its name.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "202": {
            "description": "Deleting: the object exists until its finalizers release it."
          },
          "204": {
            "description": "Gone."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Delete one of Volumes",
        "tags": [
          "Volumes"
        ]
      },
      "get": {
        "operationId": "get-volumes",
        "parameters": [
          {
            "description": "The project the object belongs to.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The object's id — the last segment of its name.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Volume"
                }
              }
            },
            "description": "The object."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Read one of Volumes",
        "tags": [
          "Volumes"
        ]
      },
      "patch": {
        "description": "Only `spec` and `labels` are writable here; `status` is the owning agent's, written through `:reportStatus`. Send `If-Match` with the revision read to make the write a compare-and-swap.",
        "operationId": "patch-volumes",
        "parameters": [
          {
            "description": "The project the object belongs to.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The object's id — the last segment of its name.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "labels": {
                    "additionalProperties": {
                      "type": "string"
                    },
                    "type": "object"
                  },
                  "spec": {
                    "$ref": "#/components/schemas/VolumeSpec"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Volume"
                }
              }
            },
            "description": "The object as stored."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Change the spec of one of Volumes",
        "tags": [
          "Volumes"
        ]
      }
    },
    "/api/v1/projects/{project}/volumes/{name}:reportStatus": {
      "post": {
        "operationId": "reportStatus-volumes",
        "parameters": [
          {
            "description": "The project the object belongs to.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The object's id — the last segment of its name.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": true,
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": true,
                  "type": "object"
                }
              }
            },
            "description": "The answer."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "The owning agent's report. A node identity only; `If-Match` carries the revision read.",
        "tags": [
          "Volumes"
        ]
      }
    },
    "/api/v1/releases": {
      "get": {
        "operationId": "list-releases",
        "parameters": [
          {
            "description": "How many to return; the response carries `nextPageToken` when there are more.",
            "in": "query",
            "name": "pageSize",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "Where the previous page ended.",
            "in": "query",
            "name": "pageToken",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only objects carrying these labels, as `key=value,key2=value2`.",
            "in": "query",
            "name": "labels",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "`true` streams changes as server-sent events instead of listing.",
            "in": "query",
            "name": "watch",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "description": "With `watch`: the revision a list reported, so nothing between the list and the watch is lost.",
            "in": "query",
            "name": "fromRevision",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only objects created at or after this moment: milliseconds since the epoch, or a span back from now like `30m`, `6h`, `7d`.",
            "in": "query",
            "name": "since",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only objects created before this moment, same spellings as `since`. Exclusive, so two adjacent ranges neither overlap nor skip.",
            "in": "query",
            "name": "until",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "`name` or `createdAt`, optionally followed by ` desc`. An ordered listing is a top-N: everything the filter admits is read and sorted, and the first `pageSize` of the sorted order is returned with no `nextPageToken` (and `\"truncated\": true` when the answer was cut). Refused together with `pageToken`.",
            "in": "query",
            "name": "orderBy",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "A read mask: comma-separated dotted paths, as `meta.name,status.conditions`. `meta.name` is always returned.",
            "in": "query",
            "name": "fields",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "items": {
                      "items": {
                        "$ref": "#/components/schemas/Release"
                      },
                      "type": "array"
                    },
                    "nextPageToken": {
                      "type": "string"
                    },
                    "revision": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "items",
                    "revision"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A page of objects. `X-Velstra-Revision` is the revision the list is consistent at."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "List Releases",
        "tags": [
          "Releases"
        ]
      },
      "post": {
        "operationId": "create-releases",
        "parameters": [
          {
            "description": "A key of the caller's own invention, sent again on every retry of the same create. The second attempt is answered with the first attempt's operation and target instead of making a second object, and carries `x-velstra-idempotent-replay: true`. Reusing a key for a different request is refused. Keys are remembered for a day. Registering a node or a pool does not take one: its answer carries a credential shown only once.",
            "in": "header",
            "name": "idempotency-key",
            "required": false,
            "schema": {
              "maxLength": 255,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "id": {
                    "description": "The last segment of the name.",
                    "type": "string"
                  },
                  "labels": {
                    "additionalProperties": {
                      "type": "string"
                    },
                    "type": "object"
                  },
                  "spec": {
                    "$ref": "#/components/schemas/ReleaseSpec"
                  }
                },
                "required": [
                  "id",
                  "spec"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "joinToken": {
                      "description": "Only when a node or pool was registered and this API advertises an address: the whole hand-off in one string — token, cell, addresses and certificate — to paste into the installer or `velstra-cloud-node setup --join`. Shown once. See docs/joining.md.",
                      "type": "string"
                    },
                    "nodeToken": {
                      "description": "Only when a node was registered: the agent's bearer token, returned once and never readable again.",
                      "type": "string"
                    },
                    "operation": {
                      "description": "The operation's resource name. Read it to learn when the object settled.",
                      "type": "string"
                    },
                    "poolToken": {
                      "description": "Only when a pool was registered: the pool agent's bearer token, returned once and never readable again.",
                      "type": "string"
                    },
                    "target": {
                      "description": "The name the object was given.",
                      "type": "string"
                    }
                  },
                  "required": [
                    "operation",
                    "target"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Accepted. The object exists and is converging; poll the operation named here."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Create one of Releases",
        "tags": [
          "Releases"
        ]
      }
    },
    "/api/v1/releases/{id}/files/{file}": {
      "get": {
        "operationId": "get-release-file",
        "parameters": [
          {
            "description": "The release.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The file, by the name the release's status gives it.",
            "in": "path",
            "name": "file",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The file, as `application/octet-stream`."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "One of a release's files, as this cell fetched and verified it — what a node fetches when told what to run. Only a file the release's status names, and only once it is recorded as fetched; a name is never a path. For the cell's machines and its operators.",
        "tags": [
          "Releases"
        ]
      }
    },
    "/api/v1/releases/{name}": {
      "delete": {
        "description": "Marks the object for deletion; it is gone once every finalizer has released it.",
        "operationId": "delete-releases",
        "parameters": [
          {
            "description": "The object's id — the last segment of its name.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "202": {
            "description": "Deleting: the object exists until its finalizers release it."
          },
          "204": {
            "description": "Gone."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Delete one of Releases",
        "tags": [
          "Releases"
        ]
      },
      "get": {
        "operationId": "get-releases",
        "parameters": [
          {
            "description": "The object's id — the last segment of its name.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Release"
                }
              }
            },
            "description": "The object."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Read one of Releases",
        "tags": [
          "Releases"
        ]
      },
      "patch": {
        "description": "Only `spec` and `labels` are writable here; `status` is the owning agent's, written through `:reportStatus`. Send `If-Match` with the revision read to make the write a compare-and-swap.",
        "operationId": "patch-releases",
        "parameters": [
          {
            "description": "The object's id — the last segment of its name.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "labels": {
                    "additionalProperties": {
                      "type": "string"
                    },
                    "type": "object"
                  },
                  "spec": {
                    "$ref": "#/components/schemas/ReleaseSpec"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Release"
                }
              }
            },
            "description": "The object as stored."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Change the spec of one of Releases",
        "tags": [
          "Releases"
        ]
      }
    },
    "/api/v1/roles": {
      "get": {
        "operationId": "list-roles",
        "parameters": [
          {
            "description": "How many to return; the response carries `nextPageToken` when there are more.",
            "in": "query",
            "name": "pageSize",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "Where the previous page ended.",
            "in": "query",
            "name": "pageToken",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only objects carrying these labels, as `key=value,key2=value2`.",
            "in": "query",
            "name": "labels",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "`true` streams changes as server-sent events instead of listing.",
            "in": "query",
            "name": "watch",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "description": "With `watch`: the revision a list reported, so nothing between the list and the watch is lost.",
            "in": "query",
            "name": "fromRevision",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only objects created at or after this moment: milliseconds since the epoch, or a span back from now like `30m`, `6h`, `7d`.",
            "in": "query",
            "name": "since",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only objects created before this moment, same spellings as `since`. Exclusive, so two adjacent ranges neither overlap nor skip.",
            "in": "query",
            "name": "until",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "`name` or `createdAt`, optionally followed by ` desc`. An ordered listing is a top-N: everything the filter admits is read and sorted, and the first `pageSize` of the sorted order is returned with no `nextPageToken` (and `\"truncated\": true` when the answer was cut). Refused together with `pageToken`.",
            "in": "query",
            "name": "orderBy",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "A read mask: comma-separated dotted paths, as `meta.name,status.conditions`. `meta.name` is always returned.",
            "in": "query",
            "name": "fields",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "items": {
                      "items": {
                        "$ref": "#/components/schemas/Role"
                      },
                      "type": "array"
                    },
                    "nextPageToken": {
                      "type": "string"
                    },
                    "revision": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "items",
                    "revision"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A page of objects. `X-Velstra-Revision` is the revision the list is consistent at."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "List Roles",
        "tags": [
          "Roles"
        ]
      },
      "post": {
        "operationId": "create-roles",
        "parameters": [
          {
            "description": "A key of the caller's own invention, sent again on every retry of the same create. The second attempt is answered with the first attempt's operation and target instead of making a second object, and carries `x-velstra-idempotent-replay: true`. Reusing a key for a different request is refused. Keys are remembered for a day. Registering a node or a pool does not take one: its answer carries a credential shown only once.",
            "in": "header",
            "name": "idempotency-key",
            "required": false,
            "schema": {
              "maxLength": 255,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "id": {
                    "description": "The last segment of the name.",
                    "type": "string"
                  },
                  "labels": {
                    "additionalProperties": {
                      "type": "string"
                    },
                    "type": "object"
                  },
                  "spec": {
                    "$ref": "#/components/schemas/RoleSpec"
                  }
                },
                "required": [
                  "id",
                  "spec"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "joinToken": {
                      "description": "Only when a node or pool was registered and this API advertises an address: the whole hand-off in one string — token, cell, addresses and certificate — to paste into the installer or `velstra-cloud-node setup --join`. Shown once. See docs/joining.md.",
                      "type": "string"
                    },
                    "nodeToken": {
                      "description": "Only when a node was registered: the agent's bearer token, returned once and never readable again.",
                      "type": "string"
                    },
                    "operation": {
                      "description": "The operation's resource name. Read it to learn when the object settled.",
                      "type": "string"
                    },
                    "poolToken": {
                      "description": "Only when a pool was registered: the pool agent's bearer token, returned once and never readable again.",
                      "type": "string"
                    },
                    "target": {
                      "description": "The name the object was given.",
                      "type": "string"
                    }
                  },
                  "required": [
                    "operation",
                    "target"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Accepted. The object exists and is converging; poll the operation named here."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Create one of Roles",
        "tags": [
          "Roles"
        ]
      }
    },
    "/api/v1/roles/{name}": {
      "delete": {
        "description": "Marks the object for deletion; it is gone once every finalizer has released it.",
        "operationId": "delete-roles",
        "parameters": [
          {
            "description": "The object's id — the last segment of its name.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "202": {
            "description": "Deleting: the object exists until its finalizers release it."
          },
          "204": {
            "description": "Gone."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Delete one of Roles",
        "tags": [
          "Roles"
        ]
      },
      "get": {
        "operationId": "get-roles",
        "parameters": [
          {
            "description": "The object's id — the last segment of its name.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Role"
                }
              }
            },
            "description": "The object."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Read one of Roles",
        "tags": [
          "Roles"
        ]
      },
      "patch": {
        "description": "Only `spec` and `labels` are writable here; `status` is the owning agent's, written through `:reportStatus`. Send `If-Match` with the revision read to make the write a compare-and-swap.",
        "operationId": "patch-roles",
        "parameters": [
          {
            "description": "The object's id — the last segment of its name.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "labels": {
                    "additionalProperties": {
                      "type": "string"
                    },
                    "type": "object"
                  },
                  "spec": {
                    "$ref": "#/components/schemas/RoleSpec"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Role"
                }
              }
            },
            "description": "The object as stored."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Change the spec of one of Roles",
        "tags": [
          "Roles"
        ]
      }
    },
    "/api/v1/rollouts": {
      "get": {
        "operationId": "list-rollouts",
        "parameters": [
          {
            "description": "How many to return; the response carries `nextPageToken` when there are more.",
            "in": "query",
            "name": "pageSize",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "Where the previous page ended.",
            "in": "query",
            "name": "pageToken",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only objects carrying these labels, as `key=value,key2=value2`.",
            "in": "query",
            "name": "labels",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "`true` streams changes as server-sent events instead of listing.",
            "in": "query",
            "name": "watch",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "description": "With `watch`: the revision a list reported, so nothing between the list and the watch is lost.",
            "in": "query",
            "name": "fromRevision",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only objects created at or after this moment: milliseconds since the epoch, or a span back from now like `30m`, `6h`, `7d`.",
            "in": "query",
            "name": "since",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only objects created before this moment, same spellings as `since`. Exclusive, so two adjacent ranges neither overlap nor skip.",
            "in": "query",
            "name": "until",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "`name` or `createdAt`, optionally followed by ` desc`. An ordered listing is a top-N: everything the filter admits is read and sorted, and the first `pageSize` of the sorted order is returned with no `nextPageToken` (and `\"truncated\": true` when the answer was cut). Refused together with `pageToken`.",
            "in": "query",
            "name": "orderBy",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "A read mask: comma-separated dotted paths, as `meta.name,status.conditions`. `meta.name` is always returned.",
            "in": "query",
            "name": "fields",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "items": {
                      "items": {
                        "$ref": "#/components/schemas/Rollout"
                      },
                      "type": "array"
                    },
                    "nextPageToken": {
                      "type": "string"
                    },
                    "revision": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "items",
                    "revision"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A page of objects. `X-Velstra-Revision` is the revision the list is consistent at."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "List Rollouts",
        "tags": [
          "Rollouts"
        ]
      },
      "post": {
        "operationId": "create-rollouts",
        "parameters": [
          {
            "description": "A key of the caller's own invention, sent again on every retry of the same create. The second attempt is answered with the first attempt's operation and target instead of making a second object, and carries `x-velstra-idempotent-replay: true`. Reusing a key for a different request is refused. Keys are remembered for a day. Registering a node or a pool does not take one: its answer carries a credential shown only once.",
            "in": "header",
            "name": "idempotency-key",
            "required": false,
            "schema": {
              "maxLength": 255,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "id": {
                    "description": "The last segment of the name.",
                    "type": "string"
                  },
                  "labels": {
                    "additionalProperties": {
                      "type": "string"
                    },
                    "type": "object"
                  },
                  "spec": {
                    "$ref": "#/components/schemas/RolloutSpec"
                  }
                },
                "required": [
                  "id",
                  "spec"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "joinToken": {
                      "description": "Only when a node or pool was registered and this API advertises an address: the whole hand-off in one string — token, cell, addresses and certificate — to paste into the installer or `velstra-cloud-node setup --join`. Shown once. See docs/joining.md.",
                      "type": "string"
                    },
                    "nodeToken": {
                      "description": "Only when a node was registered: the agent's bearer token, returned once and never readable again.",
                      "type": "string"
                    },
                    "operation": {
                      "description": "The operation's resource name. Read it to learn when the object settled.",
                      "type": "string"
                    },
                    "poolToken": {
                      "description": "Only when a pool was registered: the pool agent's bearer token, returned once and never readable again.",
                      "type": "string"
                    },
                    "target": {
                      "description": "The name the object was given.",
                      "type": "string"
                    }
                  },
                  "required": [
                    "operation",
                    "target"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Accepted. The object exists and is converging; poll the operation named here."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Create one of Rollouts",
        "tags": [
          "Rollouts"
        ]
      }
    },
    "/api/v1/rollouts/{name}": {
      "delete": {
        "description": "Marks the object for deletion; it is gone once every finalizer has released it.",
        "operationId": "delete-rollouts",
        "parameters": [
          {
            "description": "The object's id — the last segment of its name.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "202": {
            "description": "Deleting: the object exists until its finalizers release it."
          },
          "204": {
            "description": "Gone."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Delete one of Rollouts",
        "tags": [
          "Rollouts"
        ]
      },
      "get": {
        "operationId": "get-rollouts",
        "parameters": [
          {
            "description": "The object's id — the last segment of its name.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rollout"
                }
              }
            },
            "description": "The object."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Read one of Rollouts",
        "tags": [
          "Rollouts"
        ]
      },
      "patch": {
        "description": "Only `spec` and `labels` are writable here; `status` is the owning agent's, written through `:reportStatus`. Send `If-Match` with the revision read to make the write a compare-and-swap.",
        "operationId": "patch-rollouts",
        "parameters": [
          {
            "description": "The object's id — the last segment of its name.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "labels": {
                    "additionalProperties": {
                      "type": "string"
                    },
                    "type": "object"
                  },
                  "spec": {
                    "$ref": "#/components/schemas/RolloutSpec"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rollout"
                }
              }
            },
            "description": "The object as stored."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Change the spec of one of Rollouts",
        "tags": [
          "Rollouts"
        ]
      }
    },
    "/api/v1/sessions": {
      "post": {
        "operationId": "sign-in",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "password": {
                    "format": "password",
                    "type": "string"
                  },
                  "username": {
                    "type": "string"
                  }
                },
                "required": [
                  "username",
                  "password"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "expiresAt": {
                      "type": "integer"
                    },
                    "token": {
                      "type": "string"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "Signed in."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "security": [],
        "summary": "Sign in with a username and password; the answer carries the token every other route wants.",
        "tags": [
          "Sessions"
        ]
      }
    },
    "/api/v1/sessions/current": {
      "delete": {
        "operationId": "sign-out",
        "responses": {
          "204": {
            "description": "Ended."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Sign out: end the session this token names.",
        "tags": [
          "Sessions"
        ]
      },
      "get": {
        "operationId": "whoami",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "capabilities": {
                      "additionalProperties": {
                        "additionalProperties": {
                          "items": {
                            "enum": [
                              "read",
                              "operate",
                              "write",
                              "administer"
                            ],
                            "type": "string"
                          },
                          "type": "array"
                        },
                        "type": "object"
                      },
                      "type": "object"
                    },
                    "cellAdmin": {
                      "type": "boolean"
                    },
                    "displayName": {
                      "type": "string"
                    },
                    "projects": {
                      "additionalProperties": {
                        "type": "string"
                      },
                      "type": "object"
                    },
                    "session": {
                      "type": "boolean"
                    },
                    "subject": {
                      "type": "string"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "The caller."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Who this token is, including effective permissions for every bound project and collection.",
        "tags": [
          "Sessions"
        ]
      }
    },
    "/api/v1/users": {
      "get": {
        "operationId": "list-users",
        "parameters": [
          {
            "description": "How many to return; the response carries `nextPageToken` when there are more.",
            "in": "query",
            "name": "pageSize",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "Where the previous page ended.",
            "in": "query",
            "name": "pageToken",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only objects carrying these labels, as `key=value,key2=value2`.",
            "in": "query",
            "name": "labels",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "`true` streams changes as server-sent events instead of listing.",
            "in": "query",
            "name": "watch",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "description": "With `watch`: the revision a list reported, so nothing between the list and the watch is lost.",
            "in": "query",
            "name": "fromRevision",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only objects created at or after this moment: milliseconds since the epoch, or a span back from now like `30m`, `6h`, `7d`.",
            "in": "query",
            "name": "since",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only objects created before this moment, same spellings as `since`. Exclusive, so two adjacent ranges neither overlap nor skip.",
            "in": "query",
            "name": "until",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "`name` or `createdAt`, optionally followed by ` desc`. An ordered listing is a top-N: everything the filter admits is read and sorted, and the first `pageSize` of the sorted order is returned with no `nextPageToken` (and `\"truncated\": true` when the answer was cut). Refused together with `pageToken`.",
            "in": "query",
            "name": "orderBy",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "A read mask: comma-separated dotted paths, as `meta.name,status.conditions`. `meta.name` is always returned.",
            "in": "query",
            "name": "fields",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "items": {
                      "items": {
                        "$ref": "#/components/schemas/User"
                      },
                      "type": "array"
                    },
                    "nextPageToken": {
                      "type": "string"
                    },
                    "revision": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "items",
                    "revision"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A page of objects. `X-Velstra-Revision` is the revision the list is consistent at."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "List Users",
        "tags": [
          "Users"
        ]
      },
      "post": {
        "operationId": "create-users",
        "parameters": [
          {
            "description": "A key of the caller's own invention, sent again on every retry of the same create. The second attempt is answered with the first attempt's operation and target instead of making a second object, and carries `x-velstra-idempotent-replay: true`. Reusing a key for a different request is refused. Keys are remembered for a day. Registering a node or a pool does not take one: its answer carries a credential shown only once.",
            "in": "header",
            "name": "idempotency-key",
            "required": false,
            "schema": {
              "maxLength": 255,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "id": {
                    "description": "The last segment of the name.",
                    "type": "string"
                  },
                  "labels": {
                    "additionalProperties": {
                      "type": "string"
                    },
                    "type": "object"
                  },
                  "spec": {
                    "$ref": "#/components/schemas/UserSpec"
                  }
                },
                "required": [
                  "id",
                  "spec"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "joinToken": {
                      "description": "Only when a node or pool was registered and this API advertises an address: the whole hand-off in one string — token, cell, addresses and certificate — to paste into the installer or `velstra-cloud-node setup --join`. Shown once. See docs/joining.md.",
                      "type": "string"
                    },
                    "nodeToken": {
                      "description": "Only when a node was registered: the agent's bearer token, returned once and never readable again.",
                      "type": "string"
                    },
                    "operation": {
                      "description": "The operation's resource name. Read it to learn when the object settled.",
                      "type": "string"
                    },
                    "poolToken": {
                      "description": "Only when a pool was registered: the pool agent's bearer token, returned once and never readable again.",
                      "type": "string"
                    },
                    "target": {
                      "description": "The name the object was given.",
                      "type": "string"
                    }
                  },
                  "required": [
                    "operation",
                    "target"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Accepted. The object exists and is converging; poll the operation named here."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Create one of Users",
        "tags": [
          "Users"
        ]
      }
    },
    "/api/v1/users/{id}/password": {
      "put": {
        "operationId": "set-password",
        "parameters": [
          {
            "description": "The account.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "current": {
                    "format": "password",
                    "type": "string"
                  },
                  "password": {
                    "format": "password",
                    "type": "string"
                  }
                },
                "required": [
                  "password"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "204": {
            "description": "Set; every other session of the account is ended."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Set a password. One's own with the current one; anybody's as a cell operator.",
        "tags": [
          "Users"
        ]
      }
    },
    "/api/v1/users/{id}/tokens": {
      "get": {
        "operationId": "list-tokens",
        "parameters": [
          {
            "description": "The service account.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "id": {
                            "description": "Name it to revoke it.",
                            "type": "string"
                          },
                          "issuedAt": {
                            "description": "Milliseconds since the epoch.",
                            "type": "integer"
                          },
                          "purpose": {
                            "type": "string"
                          }
                        },
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "What the account holds."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Every token this account holds, without the tokens — id, purpose and when it was minted.",
        "tags": [
          "Users"
        ]
      },
      "post": {
        "operationId": "mint-token",
        "parameters": [
          {
            "description": "The service account.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "purpose": {
                    "description": "What tells this token apart when one has to go.",
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "purpose": {
                      "type": "string"
                    },
                    "shownOnce": {
                      "type": "boolean"
                    },
                    "token": {
                      "type": "string"
                    },
                    "user": {
                      "type": "string"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "The token, once."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Mint a token for a service account. Shown once; several may exist so rotation has no gap.",
        "tags": [
          "Users"
        ]
      }
    },
    "/api/v1/users/{id}/tokens/{token}": {
      "delete": {
        "operationId": "revoke-token",
        "parameters": [
          {
            "description": "The service account.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The id the list gives.",
            "in": "path",
            "name": "token",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Gone."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Take one token out of use. Already gone is not an error.",
        "tags": [
          "Users"
        ]
      }
    },
    "/api/v1/users/{name}": {
      "delete": {
        "description": "Marks the object for deletion; it is gone once every finalizer has released it.",
        "operationId": "delete-users",
        "parameters": [
          {
            "description": "The object's id — the last segment of its name.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "202": {
            "description": "Deleting: the object exists until its finalizers release it."
          },
          "204": {
            "description": "Gone."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Delete one of Users",
        "tags": [
          "Users"
        ]
      },
      "get": {
        "operationId": "get-users",
        "parameters": [
          {
            "description": "The object's id — the last segment of its name.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/User"
                }
              }
            },
            "description": "The object."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Read one of Users",
        "tags": [
          "Users"
        ]
      },
      "patch": {
        "description": "Only `spec` and `labels` are writable here; `status` is the owning agent's, written through `:reportStatus`. Send `If-Match` with the revision read to make the write a compare-and-swap.",
        "operationId": "patch-users",
        "parameters": [
          {
            "description": "The object's id — the last segment of its name.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "labels": {
                    "additionalProperties": {
                      "type": "string"
                    },
                    "type": "object"
                  },
                  "spec": {
                    "$ref": "#/components/schemas/UserSpec"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/User"
                }
              }
            },
            "description": "The object as stored."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Refused, with a code a program can branch on and a sentence a person can read."
          }
        },
        "summary": "Change the spec of one of Users",
        "tags": [
          "Users"
        ]
      }
    },
    "/metrics": {
      "get": {
        "operationId": "metrics",
        "responses": {
          "200": {
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "The counters."
          }
        },
        "summary": "Prometheus text exposition, behind the same bearer token as everything else.",
        "tags": [
          "Cell"
        ]
      }
    }
  },
  "security": [
    {
      "bearer": []
    }
  ],
  "servers": [
    {
      "url": "/"
    }
  ]
}
