Skip to content

Commit 2489a43

Browse files
authored
chore(schemas): update katapult API schema and generated code (#159)
1 parent 7cb5bcd commit 2489a43

File tree

2 files changed

+82
-0
lines changed

2 files changed

+82
-0
lines changed

core/errors_generated.go

Lines changed: 19 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

schemas/core/v1.json

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,13 @@
202202
"endpoint": "CoreAPI/Endpoints/VirtualMachines/AllocateIPEndpoint",
203203
"group": "virtual_machines"
204204
},
205+
{
206+
"path": "virtual_machine/authorized_keys",
207+
"request_method": "GET",
208+
"controller": null,
209+
"endpoint": "CoreAPI/Endpoints/VirtualMachines/AuthorizedKeysEndpoint",
210+
"group": "virtual_machines"
211+
},
205212
{
206213
"path": "organizations/:organization/virtual_machines/build",
207214
"request_method": "POST",
@@ -7539,6 +7546,62 @@
75397546
"fields": []
75407547
}
75417548
},
7549+
{
7550+
"type": "endpoint",
7551+
"value": {
7552+
"id": "CoreAPI/Endpoints/VirtualMachines/AuthorizedKeysEndpoint",
7553+
"name": "Get authorized keys for a virtual machine",
7554+
"description": "Return the authorized keys for the virtual machine associated with the provided API token",
7555+
"http_status": 200,
7556+
"authenticator": null,
7557+
"argument_set": {
7558+
"id": "CoreAPI/Endpoints/VirtualMachines/AuthorizedKeysEndpoint/BaseArgumentSet",
7559+
"name": null,
7560+
"description": null,
7561+
"arguments": []
7562+
},
7563+
"fields": [
7564+
{
7565+
"id": "CoreAPI/Endpoints/VirtualMachines/AuthorizedKeysEndpoint/AuthorizedKeysField",
7566+
"name": "authorized_keys",
7567+
"description": null,
7568+
"type": "Apia/Scalars/String",
7569+
"null": false,
7570+
"array": false,
7571+
"spec": {
7572+
"all": true,
7573+
"spec": null
7574+
}
7575+
}
7576+
],
7577+
"potential_errors": [
7578+
"CoreAPI/Endpoints/VirtualMachines/AuthorizedKeysEndpoint/NoVirtualMachineForAPIToken"
7579+
],
7580+
"scopes": [
7581+
"virtual_machines:authorized_keys"
7582+
]
7583+
}
7584+
},
7585+
{
7586+
"type": "argument_set",
7587+
"value": {
7588+
"id": "CoreAPI/Endpoints/VirtualMachines/AuthorizedKeysEndpoint/BaseArgumentSet",
7589+
"name": null,
7590+
"description": null,
7591+
"arguments": []
7592+
}
7593+
},
7594+
{
7595+
"type": "error",
7596+
"value": {
7597+
"id": "CoreAPI/Endpoints/VirtualMachines/AuthorizedKeysEndpoint/NoVirtualMachineForAPIToken",
7598+
"name": null,
7599+
"description": "No virtual machine was found for the provided API token",
7600+
"code": "no_virtual_machine_for_api_token",
7601+
"http_status": 404,
7602+
"fields": []
7603+
}
7604+
},
75427605
{
75437606
"type": "endpoint",
75447607
"value": {

0 commit comments

Comments
 (0)