Skip to content

Commit

Permalink
feat: update to kp 2.54.0
Browse files Browse the repository at this point in the history
  • Loading branch information
bencromwell committed Sep 2, 2024
1 parent dc52f99 commit 255aad2
Show file tree
Hide file tree
Showing 54 changed files with 2,228 additions and 650 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
with:
app_id: ${{ vars.RELEASE_PLEASE_GITHUB_APP_ID }}
private_key: ${{ secrets.RELEASE_PLEASE_GITHUB_APP_PRIVATE_KEY }}
- uses: google-github-actions/release-please-action@v4
- uses: googleapis/release-please-action@v4
id: release-please
with:
token: ${{ steps.generate-github-token.outputs.token }}
Expand Down
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,8 @@ build:
download-spec:
wget -O katapult-core-openapi.json https://api.katapult.io/core/v1/schema/openapi.json
wget -O katapult-public-openapi.json https://api.katapult.io/public/v1/schema/openapi.json

.PHONY: download-staging-spec
download-staging-spec:
wget -O katapult-core-openapi.json https://api.staging.katapult.dev/core/v1/schema/openapi.json
wget -O katapult-public-openapi.json https://api.staging.katapult.dev/public/v1/schema/openapi.json
17 changes: 8 additions & 9 deletions generator/generate
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,6 @@ print_color() {
printf "%b%s%b\n" "$1" "$2" "$ENDCOLOR"
}

# Generate the new client code
generating_log="⚙️ Generating new client..."

# Delete any existing client code
print_color "${GREY}" "🗑️ Deleting existing client code... "
rm -rf "$(pwd)/src"

print_color "${LIGHT_MAGENTA}" "${generating_log}"

# Setup the user for docker permissions
USER="$(id -u):$(id -g)"

Expand All @@ -39,6 +30,14 @@ docker run \
composer:2 \
composer install -q

print_color "${GREY}" "🔧 JanePHP dependencies installed"

# Delete any existing client code
print_color "${GREY}" "🗑️ Deleting existing client code... "
rm -rf "$(pwd)/src"

print_color "${LIGHT_MAGENTA}" "⚙️ Generating new client..."

# Run the generator for Core
docker run \
-u "${USER}" \
Expand Down
212 changes: 161 additions & 51 deletions katapult-core-openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -1217,6 +1217,77 @@
}
}
},
"/address_lists/address_list/entries/bulk": {
"post": {
"operationId": "post:address_list_entries_bulk",
"summary": "Bulk change address list entries",
"description": "Create or delete multiple address list entries for a given address list.\n## Scopes\n- `address_lists`\n",
"tags": [
"Address lists",
"Address list entries"
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"properties": {
"address_list": {
"$ref": "#/components/schemas/AddressListLookup"
},
"add": {
"type": "array",
"items": {
"$ref": "#/components/schemas/AddressListEntryArguments"
}
},
"remove": {
"type": "array",
"items": {
"$ref": "#/components/schemas/AddressListEntryArguments"
}
}
},
"required": [
"address_list"
]
}
}
}
},
"responses": {
"200": {
"description": "Create or delete multiple address list entries for a given address list.",
"content": {
"application/json": {
"schema": {
"properties": {

}
}
}
}
},
"400": {
"$ref": "#/components/responses/APIAuthenticator400Response"
},
"403": {
"$ref": "#/components/responses/PermissionDenied403Res"
},
"404": {
"$ref": "#/components/responses/AddressListNotFoundResponse"
},
"422": {
"$ref": "#/components/responses/ValidationErrorResponse"
},
"429": {
"$ref": "#/components/responses/APIAuthenticator429Response"
},
"503": {
"$ref": "#/components/responses/APIAuthenticator503Response"
}
}
}
},
"/organizations/organization/certificates": {
"get": {
"operationId": "get:organization_certificates",
Expand Down Expand Up @@ -10342,7 +10413,7 @@
"virtual_machine_packages": {
"type": "array",
"items": {
"$ref": "#/components/schemas/GetVirtualMachinePackages200ResponseVirtualMachinePackages"
"$ref": "#/components/schemas/VirtualMachinePackage"
}
}
},
Expand Down Expand Up @@ -11034,6 +11105,12 @@
"$ref": "#/components/schemas/KeyValue"
}
},
"disks": {
"type": "array",
"items": {
"$ref": "#/components/schemas/VirtualMachineBuildDiskArguments"
}
},
"network": {
"$ref": "#/components/schemas/NetworkLookup"
},
Expand Down Expand Up @@ -11107,7 +11184,7 @@
"$ref": "#/components/responses/DataCenterNotFoundVirtualMachinePackageNotFoundZoneNotFound404Res"
},
"422": {
"$ref": "#/components/responses/LocationRequiredValidationError422Res"
"$ref": "#/components/responses/LocationRequiredOneSystemDiskRequiredValidationError422Res"
},
"429": {
"$ref": "#/components/responses/APIAuthenticator429Response"
Expand Down Expand Up @@ -13076,6 +13153,10 @@
"universal": {
"type": "boolean"
},
"size_in_gb": {
"type": "integer",
"nullable": true
},
"latest_version": {
"allOf": [
{
Expand Down Expand Up @@ -14508,6 +14589,10 @@
"universal": {
"type": "boolean"
},
"size_in_gb": {
"type": "integer",
"nullable": true
},
"latest_version": {
"allOf": [
{
Expand Down Expand Up @@ -14613,6 +14698,10 @@
"universal": {
"type": "boolean"
},
"size_in_gb": {
"type": "integer",
"nullable": true
},
"latest_version": {
"allOf": [
{
Expand Down Expand Up @@ -15243,6 +15332,9 @@
},
"use_dedicated_cpus": {
"type": "boolean"
},
"group": {
"$ref": "#/components/schemas/VirtualMachinePackageGroup"
}
}
},
Expand All @@ -15253,6 +15345,17 @@
"private"
]
},
"VirtualMachinePackageGroup": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
}
}
},
"ISO": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -16045,6 +16148,34 @@
}
}
},
"VirtualMachineBuildDiskArguments": {
"description": "All 'disks[]' params are mutually exclusive, only one can be provided.",
"type": "object",
"properties": {
"name": {
"type": "string"
},
"size_in_gb": {
"type": "integer"
},
"initial_file_system": {
"$ref": "#/components/schemas/FileSystemEnum"
},
"system": {
"type": "boolean",
"description": "Default false. Exactly one disk must be marked as the system disk"
},
"io_profile": {
"$ref": "#/components/schemas/DiskIOProfileLookup"
},
"storage_speed": {
"$ref": "#/components/schemas/StorageSpeedEnum"
}
},
"required": [
"size_in_gb"
]
},
"NetworkLookup": {
"description": "All 'network[]' params are mutually exclusive, only one can be provided.",
"type": "object",
Expand Down Expand Up @@ -16278,13 +16409,37 @@
}
}
},
"OneOfLocationRequiredValidationError422Res": {
"OneSystemDiskRequiredEnum": {
"type": "string",
"enum": [
"one_system_disk_required"
]
},
"OneSystemDiskRequiredSchema": {
"type": "object",
"description": "Exactly one disk must be marked as the system disk",
"properties": {
"code": {
"$ref": "#/components/schemas/OneSystemDiskRequiredEnum"
},
"description": {
"type": "string"
},
"detail": {
"type": "object"
}
}
},
"OneOfLocationRequiredOneSystemDiskRequiredValidationError422Res": {
"oneOf": [
{
"$ref": "#/components/schemas/ValidationErrorSchema"
},
{
"$ref": "#/components/schemas/LocationRequiredSchema"
},
{
"$ref": "#/components/schemas/OneSystemDiskRequiredSchema"
}
]
},
Expand Down Expand Up @@ -16547,51 +16702,6 @@
}
]
},
"GetVirtualMachinePackages200ResponseVirtualMachinePackages": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"permalink": {
"type": "string"
},
"cpu_cores": {
"type": "integer"
},
"ipv4_addresses": {
"type": "integer"
},
"memory_in_gb": {
"type": "integer"
},
"storage_in_gb": {
"type": "integer"
},
"privacy": {
"$ref": "#/components/schemas/PrivacyTypesEnum"
},
"icon": {
"allOf": [
{
"$ref": "#/components/schemas/GetVirtualMachinePackagesPartIcon"
}
],
"nullable": true
}
}
},
"GetVirtualMachinePackagesPartIcon": {
"type": "object",
"properties": {
"url": {
"type": "string"
}
}
},
"AuthSSHKey": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -20902,12 +21012,12 @@
}
}
},
"LocationRequiredValidationError422Res": {
"LocationRequiredOneSystemDiskRequiredValidationError422Res": {
"description": "422 error response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/OneOfLocationRequiredValidationError422Res"
"$ref": "#/components/schemas/OneOfLocationRequiredOneSystemDiskRequiredValidationError422Res"
}
}
}
Expand Down Expand Up @@ -22015,4 +22125,4 @@
]
}
]
}
}
Loading

0 comments on commit 255aad2

Please sign in to comment.