Skip to content

Commit

Permalink
chore: generate openapi client
Browse files Browse the repository at this point in the history
  • Loading branch information
sweatybridge committed Oct 29, 2024
1 parent 1250951 commit 074cbb6
Show file tree
Hide file tree
Showing 4 changed files with 400 additions and 35 deletions.
95 changes: 94 additions & 1 deletion api/beta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1525,6 +1525,63 @@ paths:
- Projects
security:
- bearer: []
/v1/projects/{ref}/config/storage:
get:
operationId: v1-get-storage-config
summary: Gets project's storage config
parameters:
- name: ref
required: true
in: path
description: Project ref
schema:
minLength: 20
maxLength: 20
type: string
responses:
'200':
description: ''
content:
application/json:
schema:
$ref: '#/components/schemas/StorageConfigResponse'
'403':
description: ''
'500':
description: Failed to retrieve project's storage config
tags:
- Storage
security:
- bearer: []
patch:
operationId: v1-update-storage-config
summary: Updates project's storage config
parameters:
- name: ref
required: true
in: path
description: Project ref
schema:
minLength: 20
maxLength: 20
type: string
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/UpdateStorageConfigBody'
responses:
'200':
description: ''
'403':
description: ''
'500':
description: Failed to update project's storage config
tags:
- Storage
security:
- bearer: []
/v1/projects/{ref}/config/database/postgres:
get:
operationId: v1-get-postgres-config
Expand Down Expand Up @@ -1910,7 +1967,7 @@ paths:
- bearer: []
/v1/projects/{ref}/functions:
post:
operationId: createFunction
operationId: v1-create-a-function
summary: Create a function
description: Creates a function and adds it to the specified project.
parameters:
Expand Down Expand Up @@ -2545,6 +2602,7 @@ components:
- RESTORING
- RESTORE_FAILED
- PAUSE_FAILED
- RESIZING
type: string
db_host:
type: string
Expand Down Expand Up @@ -2639,9 +2697,12 @@ components:
BranchResetResponse:
type: object
properties:
workflow_run_id:
type: string
message:
type: string
required:
- workflow_run_id
- message
V1DatabaseResponse:
type: object
Expand Down Expand Up @@ -2701,6 +2762,7 @@ components:
- RESTORING
- RESTORE_FAILED
- PAUSE_FAILED
- RESIZING
type: string
required:
- id
Expand Down Expand Up @@ -3644,6 +3706,37 @@ components:
- name
- healthy
- status
StorageFeatureImageTransformation:
type: object
properties:
enabled:
type: boolean
required:
- enabled
StorageFeatures:
type: object
properties:
imageTransformation:
$ref: '#/components/schemas/StorageFeatureImageTransformation'
required:
- imageTransformation
StorageConfigResponse:
type: object
properties:
fileSizeLimit:
type: number
features:
$ref: '#/components/schemas/StorageFeatures'
required:
- fileSizeLimit
- features
UpdateStorageConfigBody:
type: object
properties:
fileSizeLimit:
type: number
features:
$ref: '#/components/schemas/StorageFeatures'
PostgresConfigResponse:
type: object
properties:
Expand Down
Loading

0 comments on commit 074cbb6

Please sign in to comment.