garm/apiserver/swagger-models.yaml
Gabriel Adrian Samfira 9748aa47af Move URLs from default section of config to DB
This change moves the callback_url, metadata_url and webhooks_url from
the config to the database. The goal is to move as much as possible from
the config to the DB, in preparation for a potential refactor that will
allow GARM to scale out. This would allow multiple nodes to share a single
source of truth.

Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
2024-06-07 09:27:24 +00:00

287 lines
7.3 KiB
YAML

# NOTE: The purpose of these definitions is to reuse the existing golang
# types from GARM packages.
definitions:
User:
type: object
x-go-type:
type: User
import:
package: github.com/cloudbase/garm/params
alias: garm_params
HookInfo:
type: object
x-go-type:
type: HookInfo
import:
package: github.com/cloudbase/garm/params
alias: garm_params
ControllerInfo:
type: object
x-go-type:
type: ControllerInfo
import:
package: github.com/cloudbase/garm/params
alias: garm_params
InstallWebhookParams:
type: object
x-go-type:
type: InstallWebhookParams
import:
package: github.com/cloudbase/garm/params
alias: garm_params
NewUserParams:
type: object
x-go-type:
type: NewUserParams
import:
package: github.com/cloudbase/garm/params
alias: garm_params
PasswordLoginParams:
type: object
x-go-type:
type: PasswordLoginParams
import:
package: github.com/cloudbase/garm/params
alias: garm_params
JWTResponse:
type: object
x-go-type:
type: JWTResponse
import:
package: github.com/cloudbase/garm/params
alias: garm_params
Jobs:
type: array
x-go-type:
type: Jobs
import:
package: github.com/cloudbase/garm/params
alias: garm_params
items:
$ref: '#/definitions/Job'
Job:
type: object
x-go-type:
type: Job
import:
package: github.com/cloudbase/garm/params
alias: garm_params
Credentials:
type: array
x-go-type:
type: Credentials
import:
package: github.com/cloudbase/garm/params
alias: garm_params
items:
$ref: '#/definitions/GithubCredentials'
GithubCredentials:
type: object
x-go-type:
type: GithubCredentials
import:
package: github.com/cloudbase/garm/params
alias: garm_params
Providers:
type: array
x-go-type:
type: Providers
import:
package: github.com/cloudbase/garm/params
alias: garm_params
items:
$ref: '#/definitions/Provider'
Provider:
type: object
x-go-type:
type: Provider
import:
package: github.com/cloudbase/garm/params
alias: garm_params
Instances:
type: array
x-go-type:
type: Instances
import:
package: github.com/cloudbase/garm/params
alias: garm_params
items:
$ref: '#/definitions/Instance'
Instance:
type: object
x-go-type:
type: Instance
import:
package: github.com/cloudbase/garm/params
alias: garm_params
Pools:
type: array
x-go-type:
type: Pools
import:
package: github.com/cloudbase/garm/params
alias: garm_params
items:
$ref: '#/definitions/Pool'
Pool:
type: object
x-go-type:
type: Pool
import:
package: github.com/cloudbase/garm/params
alias: garm_params
Repositories:
type: array
x-go-type:
type: Repositories
import:
package: github.com/cloudbase/garm/params
alias: garm_params
items:
$ref: '#/definitions/Repository'
Repository:
type: object
x-go-type:
type: Repository
import:
package: github.com/cloudbase/garm/params
alias: garm_params
CreateRepoParams:
type: object
x-go-type:
type: CreateRepoParams
import:
package: github.com/cloudbase/garm/params
alias: garm_params
Organizations:
type: array
x-go-type:
type: Organizations
import:
package: github.com/cloudbase/garm/params
alias: garm_params
items:
$ref: '#/definitions/Organization'
Organization:
type: object
x-go-type:
type: Organization
import:
package: github.com/cloudbase/garm/params
alias: garm_params
CreateOrgParams:
type: object
x-go-type:
type: CreateOrgParams
import:
package: github.com/cloudbase/garm/params
alias: garm_params
Enterprises:
type: array
x-go-type:
type: Enterprises
import:
package: github.com/cloudbase/garm/params
alias: garm_params
items:
$ref: '#/definitions/Enterprise'
Enterprise:
type: object
x-go-type:
type: Enterprise
import:
package: github.com/cloudbase/garm/params
alias: garm_params
CreateEnterpriseParams:
type: object
x-go-type:
type: CreateEnterpriseParams
import:
package: github.com/cloudbase/garm/params
alias: garm_params
UpdateEntityParams:
type: object
x-go-type:
type: UpdateEntityParams
import:
package: github.com/cloudbase/garm/params
alias: garm_params
CreatePoolParams:
type: object
x-go-type:
type: CreatePoolParams
import:
package: github.com/cloudbase/garm/params
alias: garm_params
UpdatePoolParams:
type: object
x-go-type:
type: UpdatePoolParams
import:
package: github.com/cloudbase/garm/params
alias: garm_params
APIErrorResponse:
type: object
x-go-type:
type: APIErrorResponse
import:
package: github.com/cloudbase/garm/apiserver/params
alias: apiserver_params
CreateInstanceParams:
type: object
x-go-type:
type: CreateInstanceParams
import:
package: github.com/cloudbase/garm/params
alias: garm_params
UpdateGithubEndpointParams:
type: object
x-go-type:
type: UpdateGithubEndpointParams
import:
package: github.com/cloudbase/garm/params
alias: garm_params
GithubEndpoint:
type: object
x-go-type:
type: GithubEndpoint
import:
package: github.com/cloudbase/garm/params
alias: garm_params
GithubEndpoints:
type: array
x-go-type:
type: GithubEndpoints
import:
package: github.com/cloudbase/garm/params
alias: garm_params
items:
$ref: '#/definitions/GithubEndpoint'
CreateGithubEndpointParams:
type: object
x-go-type:
type: CreateGithubEndpointParams
import:
package: github.com/cloudbase/garm/params
alias: garm_params
CreateGithubCredentialsParams:
type: object
x-go-type:
type: CreateGithubCredentialsParams
import:
package: github.com/cloudbase/garm/params
alias: garm_params
UpdateGithubCredentialsParams:
type: object
x-go-type:
type: UpdateGithubCredentialsParams
import:
package: github.com/cloudbase/garm/params
alias: garm_params
UpdateControllerParams:
type: object
x-go-type:
type: UpdateControllerParams
import:
package: github.com/cloudbase/garm/params
alias: garm_params