Skip to content

Commit

Permalink
chore(schemas): update katapult API schema and generated code (#159)
Browse files Browse the repository at this point in the history
  • Loading branch information
jimehk authored May 17, 2024
1 parent 7cb5bcd commit 2489a43
Show file tree
Hide file tree
Showing 2 changed files with 82 additions and 0 deletions.
19 changes: 19 additions & 0 deletions core/errors_generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

63 changes: 63 additions & 0 deletions schemas/core/v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,13 @@
"endpoint": "CoreAPI/Endpoints/VirtualMachines/AllocateIPEndpoint",
"group": "virtual_machines"
},
{
"path": "virtual_machine/authorized_keys",
"request_method": "GET",
"controller": null,
"endpoint": "CoreAPI/Endpoints/VirtualMachines/AuthorizedKeysEndpoint",
"group": "virtual_machines"
},
{
"path": "organizations/:organization/virtual_machines/build",
"request_method": "POST",
Expand Down Expand Up @@ -7539,6 +7546,62 @@
"fields": []
}
},
{
"type": "endpoint",
"value": {
"id": "CoreAPI/Endpoints/VirtualMachines/AuthorizedKeysEndpoint",
"name": "Get authorized keys for a virtual machine",
"description": "Return the authorized keys for the virtual machine associated with the provided API token",
"http_status": 200,
"authenticator": null,
"argument_set": {
"id": "CoreAPI/Endpoints/VirtualMachines/AuthorizedKeysEndpoint/BaseArgumentSet",
"name": null,
"description": null,
"arguments": []
},
"fields": [
{
"id": "CoreAPI/Endpoints/VirtualMachines/AuthorizedKeysEndpoint/AuthorizedKeysField",
"name": "authorized_keys",
"description": null,
"type": "Apia/Scalars/String",
"null": false,
"array": false,
"spec": {
"all": true,
"spec": null
}
}
],
"potential_errors": [
"CoreAPI/Endpoints/VirtualMachines/AuthorizedKeysEndpoint/NoVirtualMachineForAPIToken"
],
"scopes": [
"virtual_machines:authorized_keys"
]
}
},
{
"type": "argument_set",
"value": {
"id": "CoreAPI/Endpoints/VirtualMachines/AuthorizedKeysEndpoint/BaseArgumentSet",
"name": null,
"description": null,
"arguments": []
}
},
{
"type": "error",
"value": {
"id": "CoreAPI/Endpoints/VirtualMachines/AuthorizedKeysEndpoint/NoVirtualMachineForAPIToken",
"name": null,
"description": "No virtual machine was found for the provided API token",
"code": "no_virtual_machine_for_api_token",
"http_status": 404,
"fields": []
}
},
{
"type": "endpoint",
"value": {
Expand Down

0 comments on commit 2489a43

Please sign in to comment.