50 lines
1.3 KiB
Go
50 lines
1.3 KiB
Go
package client
|
|
|
|
type NewAppInstanceInput struct {
|
|
Region string `json:"region"`
|
|
AppInst AppInstance `json:"appinst"`
|
|
}
|
|
|
|
type AppInstance struct {
|
|
Key AppInstanceKey `json:"key"`
|
|
AppKey AppKey `json:"app_key"`
|
|
Flavor Flavor `json:"flavor"`
|
|
}
|
|
|
|
type AppInstanceKey struct {
|
|
Organization string `json:"organization"`
|
|
Name string `json:"name"`
|
|
CloudletKey CloudletKey `json:"cloudlet_key"`
|
|
}
|
|
|
|
type CloudletKey struct {
|
|
Organization string `json:"organization"`
|
|
Name string `json:"name"`
|
|
}
|
|
|
|
type AppKey struct {
|
|
Organization string `json:"organization"`
|
|
Name string `json:"name"`
|
|
Version string `json:"version"`
|
|
}
|
|
|
|
type Flavor struct {
|
|
Name string `json:"name"`
|
|
}
|
|
|
|
type NewAppInput struct {
|
|
Region string `json:"region"`
|
|
App App `json:"app"`
|
|
}
|
|
|
|
type App struct {
|
|
Key AppKey `json:"key"`
|
|
Deployment string `json:"deployment"`
|
|
ImageType string `json:"image_type"`
|
|
ImagePath string `json:"image_path"`
|
|
AllowServerless bool `json:"allow_serverless"`
|
|
DefaultFlavor Flavor `json:"defaultFlavor"`
|
|
ServerlessConfig any `json:"serverless_config"`
|
|
DeploymentGenerator string `json:"deployment_generator"`
|
|
DeploymentManifest string `json:"deployment_manifest"`
|
|
}
|