Skip to content

Commit

Permalink
feat: update generated APIs
Browse files Browse the repository at this point in the history
  • Loading branch information
scaleway-bot committed Dec 13, 2024
1 parent 0d220e0 commit 11305bb
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions api/webhosting/v1/webhosting_sdk.go
Original file line number Diff line number Diff line change
Expand Up @@ -731,6 +731,13 @@ type PlatformControlPanel struct {
URLs *PlatformControlPanelURLs `json:"urls"`
}

// CreateDatabaseRequestUser: create database request user.
type CreateDatabaseRequestUser struct {
Username string `json:"username"`

Password string `json:"password"`
}

// CreateHostingRequestDomainConfiguration: create hosting request domain configuration.
type CreateHostingRequestDomainConfiguration struct {
UpdateNameservers bool `json:"update_nameservers"`
Expand Down Expand Up @@ -1028,6 +1035,14 @@ type DatabaseAPICreateDatabaseRequest struct {

// DatabaseName: name of the database to be created.
DatabaseName string `json:"database_name"`

// NewUser: (Optional) Username and password to create a user and link to the database.
// Precisely one of NewUser, ExistingUsername must be set.
NewUser *CreateDatabaseRequestUser `json:"new_user,omitempty"`

// ExistingUsername: (Optional) Username to link an existing user to the database.
// Precisely one of NewUser, ExistingUsername must be set.
ExistingUsername *string `json:"existing_username,omitempty"`
}

// DatabaseAPICreateDatabaseUserRequest: database api create database user request.
Expand Down

0 comments on commit 11305bb

Please sign in to comment.