planetscale

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 30, 2024 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Code generated by `github.com/sst/terraform-provider-planetscale/internal/cmd/client_codegen` DO NOT EDIT

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Actor

type Actor struct {
	AvatarUrl   string `json:"avatar_url" tfsdk:"avatar_url"`
	DisplayName string `json:"display_name" tfsdk:"display_name"`
	Id          string `json:"id" tfsdk:"id"`
}

type Backup

type Backup struct {
	Actor                Actor          `json:"actor" tfsdk:"actor"`
	BackupPolicy         BackupPolicy   `json:"backup_policy" tfsdk:"backup_policy"`
	CreatedAt            string         `json:"created_at" tfsdk:"created_at"`
	EstimatedStorageCost string         `json:"estimated_storage_cost" tfsdk:"estimated_storage_cost"`
	Id                   string         `json:"id" tfsdk:"id"`
	Name                 string         `json:"name" tfsdk:"name"`
	Required             bool           `json:"required" tfsdk:"required"`
	RestoredBranches     *[]string      `json:"restored_branches,omitempty" tfsdk:"restored_branches"`
	SchemaSnapshot       SchemaSnapshot `json:"schema_snapshot" tfsdk:"schema_snapshot"`
	Size                 float64        `json:"size" tfsdk:"size"`
	State                string         `json:"state" tfsdk:"state"`
	UpdatedAt            string         `json:"updated_at" tfsdk:"updated_at"`
}

type BackupPolicy

type BackupPolicy struct {
	CreatedAt      string  `json:"created_at" tfsdk:"created_at"`
	FrequencyUnit  string  `json:"frequency_unit" tfsdk:"frequency_unit"`
	FrequencyValue float64 `json:"frequency_value" tfsdk:"frequency_value"`
	Id             string  `json:"id" tfsdk:"id"`
	LastRanAt      string  `json:"last_ran_at" tfsdk:"last_ran_at"`
	Name           string  `json:"name" tfsdk:"name"`
	NextRunAt      string  `json:"next_run_at" tfsdk:"next_run_at"`
	RetentionUnit  string  `json:"retention_unit" tfsdk:"retention_unit"`
	RetentionValue float64 `json:"retention_value" tfsdk:"retention_value"`
	ScheduleDay    string  `json:"schedule_day" tfsdk:"schedule_day"`
	ScheduleWeek   string  `json:"schedule_week" tfsdk:"schedule_week"`
	Target         string  `json:"target" tfsdk:"target"`
	UpdatedAt      string  `json:"updated_at" tfsdk:"updated_at"`
}

type Branch

type Branch struct {
	AccessHostUrl               *string             `json:"access_host_url,omitempty" tfsdk:"access_host_url"`
	Actor                       *Actor              `json:"actor,omitempty" tfsdk:"actor"`
	ClusterRateName             string              `json:"cluster_rate_name" tfsdk:"cluster_rate_name"`
	CreatedAt                   string              `json:"created_at" tfsdk:"created_at"`
	HtmlUrl                     string              `json:"html_url" tfsdk:"html_url"`
	Id                          string              `json:"id" tfsdk:"id"`
	InitialRestoreId            *string             `json:"initial_restore_id,omitempty" tfsdk:"initial_restore_id"`
	MysqlAddress                string              `json:"mysql_address" tfsdk:"mysql_address"`
	MysqlEdgeAddress            string              `json:"mysql_edge_address" tfsdk:"mysql_edge_address"`
	Name                        string              `json:"name" tfsdk:"name"`
	ParentBranch                *string             `json:"parent_branch,omitempty" tfsdk:"parent_branch"`
	Production                  bool                `json:"production" tfsdk:"production"`
	Ready                       bool                `json:"ready" tfsdk:"ready"`
	Region                      *Region             `json:"region,omitempty" tfsdk:"region"`
	RestoreChecklistCompletedAt *string             `json:"restore_checklist_completed_at,omitempty" tfsdk:"restore_checklist_completed_at"`
	RestoredFromBranch          *RestoredFromBranch `json:"restored_from_branch,omitempty" tfsdk:"restored_from_branch"`
	SchemaLastUpdatedAt         string              `json:"schema_last_updated_at" tfsdk:"schema_last_updated_at"`
	ShardCount                  *float64            `json:"shard_count,omitempty" tfsdk:"shard_count"`
	Sharded                     bool                `json:"sharded" tfsdk:"sharded"`
	UpdatedAt                   string              `json:"updated_at" tfsdk:"updated_at"`
}

type BranchForPassword

type BranchForPassword struct {
	AccessHostUrl    string `json:"access_host_url" tfsdk:"access_host_url"`
	Id               string `json:"id" tfsdk:"id"`
	MysqlEdgeAddress string `json:"mysql_edge_address" tfsdk:"mysql_edge_address"`
	Name             string `json:"name" tfsdk:"name"`
	Production       bool   `json:"production" tfsdk:"production"`
}

type CancelQueuedDeployRequestRes

type CancelQueuedDeployRequestRes struct {
	DeployRequest
}

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(httpCl *http.Client, baseURL *url.URL) *Client

func (*Client) CancelQueuedDeployRequest

func (cl *Client) CancelQueuedDeployRequest(ctx context.Context, organization string, database string, number string) (res200 *CancelQueuedDeployRequestRes, err error)

func (*Client) CloseDeployRequest

func (cl *Client) CloseDeployRequest(ctx context.Context, organization string, database string, number string, req CloseDeployRequestReq) (res200 *CloseDeployRequestRes, err error)

func (*Client) CompleteErroredDeploy

func (cl *Client) CompleteErroredDeploy(ctx context.Context, organization string, database string, number string) (res200 *CompleteErroredDeployRes, err error)

func (*Client) CompleteGatedDeployRequest

func (cl *Client) CompleteGatedDeployRequest(ctx context.Context, organization string, database string, number string) (res200 *CompleteGatedDeployRequestRes, err error)

func (*Client) CompleteRevert

func (cl *Client) CompleteRevert(ctx context.Context, organization string, database string, number string) (res200 *CompleteRevertRes, err error)

func (*Client) CreateBackup

func (cl *Client) CreateBackup(ctx context.Context, organization string, database string, branch string, req CreateBackupReq) (res201 *CreateBackupRes, err error)

func (*Client) CreateBranch

func (cl *Client) CreateBranch(ctx context.Context, organization string, database string, req CreateBranchReq) (res201 *CreateBranchRes, err error)

func (*Client) CreateDatabase

func (cl *Client) CreateDatabase(ctx context.Context, organization string, req CreateDatabaseReq) (res201 *CreateDatabaseRes, err error)

func (*Client) CreateDeployRequest

func (cl *Client) CreateDeployRequest(ctx context.Context, organization string, database string, req CreateDeployRequestReq) (res201 *CreateDeployRequestRes, err error)

func (*Client) CreateOrRenewOauthToken

func (cl *Client) CreateOrRenewOauthToken(ctx context.Context, organization string, id string, req CreateOrRenewOauthTokenReq) (res200 *CreateOrRenewOauthTokenRes, err error)

func (*Client) CreatePassword

func (cl *Client) CreatePassword(ctx context.Context, organization string, database string, branch string, req CreatePasswordReq) (res201 *CreatePasswordRes, err error)

func (*Client) DeleteBackup

func (cl *Client) DeleteBackup(ctx context.Context, organization string, database string, branch string, id string) (res204 *DeleteBackupRes, err error)

func (*Client) DeleteBranch

func (cl *Client) DeleteBranch(ctx context.Context, organization string, database string, name string) (res204 *DeleteBranchRes, err error)

func (*Client) DeleteDatabase

func (cl *Client) DeleteDatabase(ctx context.Context, organization string, name string) (res204 *DeleteDatabaseRes, err error)

func (*Client) DeleteOauthToken

func (cl *Client) DeleteOauthToken(ctx context.Context, organization string, applicationId string, tokenId string) (res204 *DeleteOauthTokenRes, err error)

func (*Client) DeletePassword

func (cl *Client) DeletePassword(ctx context.Context, organization string, database string, branch string, id string) (res204 *DeletePasswordRes, err error)

func (*Client) DemoteBranch

func (cl *Client) DemoteBranch(ctx context.Context, organization string, database string, name string) (res200 *DemoteBranchRes, err error)

func (*Client) DisableSafeMigrationsForBranch

func (cl *Client) DisableSafeMigrationsForBranch(ctx context.Context, organization string, database string, name string) (res200 *DisableSafeMigrationsForBranchRes, err error)

func (*Client) EnableSafeMigrationsForBranch

func (cl *Client) EnableSafeMigrationsForBranch(ctx context.Context, organization string, database string, name string) (res200 *EnableSafeMigrationsForBranchRes, err error)

func (*Client) GetBackup

func (cl *Client) GetBackup(ctx context.Context, organization string, database string, branch string, id string) (res200 *GetBackupRes, err error)

func (*Client) GetBranch

func (cl *Client) GetBranch(ctx context.Context, organization string, database string, name string) (res200 *GetBranchRes, err error)

func (*Client) GetBranchSchema

func (cl *Client) GetBranchSchema(ctx context.Context, organization string, database string, name string, keyspace *string) (res200 *GetBranchSchemaRes, err error)

func (*Client) GetCurrentUser

func (cl *Client) GetCurrentUser(ctx context.Context) (res200 *GetCurrentUserRes, err error)

func (*Client) GetDatabase

func (cl *Client) GetDatabase(ctx context.Context, organization string, name string) (res200 *GetDatabaseRes, err error)

func (*Client) GetDeployRequest

func (cl *Client) GetDeployRequest(ctx context.Context, organization string, database string, number string) (res200 *GetDeployRequestRes, err error)

func (*Client) GetDeployment

func (cl *Client) GetDeployment(ctx context.Context, organization string, database string, number string) (res200 *GetDeploymentRes, err error)

func (*Client) GetOauthApplication

func (cl *Client) GetOauthApplication(ctx context.Context, organization string, applicationId string) (res200 *GetOauthApplicationRes, err error)

func (*Client) GetOauthToken

func (cl *Client) GetOauthToken(ctx context.Context, organization string, applicationId string, tokenId string) (res200 *GetOauthTokenRes, err error)

func (*Client) GetOrganization

func (cl *Client) GetOrganization(ctx context.Context, name string) (res200 *GetOrganizationRes, err error)

func (*Client) GetPassword

func (cl *Client) GetPassword(ctx context.Context, organization string, database string, branch string, id string, readOnlyRegionId *string) (res200 *GetPasswordRes, err error)

func (*Client) GetTheDeployQueue

func (cl *Client) GetTheDeployQueue(ctx context.Context, organization string, database string) (res200 *GetTheDeployQueueRes, err error)

func (*Client) LintBranchSchema

func (cl *Client) LintBranchSchema(ctx context.Context, organization string, database string, name string, page *int, perPage *int) (res200 *LintBranchSchemaRes, err error)

func (*Client) ListBackups

func (cl *Client) ListBackups(ctx context.Context, organization string, database string, branch string, page *int, perPage *int) (res200 *ListBackupsRes, err error)

func (*Client) ListBranches

func (cl *Client) ListBranches(ctx context.Context, organization string, database string, page *int, perPage *int) (res200 *ListBranchesRes, err error)

func (*Client) ListDatabaseRegions

func (cl *Client) ListDatabaseRegions(ctx context.Context, organization string, name string, page *int, perPage *int) (res200 *ListDatabaseRegionsRes, err error)

func (*Client) ListDatabases

func (cl *Client) ListDatabases(ctx context.Context, organization string, page *int, perPage *int) (res200 *ListDatabasesRes, err error)

func (*Client) ListDeployOperations

func (cl *Client) ListDeployOperations(ctx context.Context, organization string, database string, number string, page *int, perPage *int) (res200 *ListDeployOperationsRes, err error)

func (*Client) ListDeployRequestReviews

func (cl *Client) ListDeployRequestReviews(ctx context.Context, organization string, database string, number string) (res200 *ListDeployRequestReviewsRes, err error)

func (*Client) ListDeployRequests

func (cl *Client) ListDeployRequests(ctx context.Context, organization string, database string, page *int, perPage *int, state *string, branch *string, intoBranch *string) (res200 *ListDeployRequestsRes, err error)

func (*Client) ListOauthApplications

func (cl *Client) ListOauthApplications(ctx context.Context, organization string, page *int, perPage *int) (res200 *ListOauthApplicationsRes, err error)

func (*Client) ListOauthTokens

func (cl *Client) ListOauthTokens(ctx context.Context, organization string, applicationId string, page *int, perPage *int) (res200 *ListOauthTokensRes, err error)

func (*Client) ListOrganizations

func (cl *Client) ListOrganizations(ctx context.Context, page *int, perPage *int) (res200 *ListOrganizationsRes, err error)

func (*Client) ListPasswords

func (cl *Client) ListPasswords(ctx context.Context, organization string, database string, branch string, readOnlyRegionId *string, page *int, perPage *int) (res200 *ListPasswordsRes, err error)

func (*Client) ListReadOnlyRegions

func (cl *Client) ListReadOnlyRegions(ctx context.Context, organization string, name string, page *int, perPage *int) (res200 *ListReadOnlyRegionsRes, err error)

func (*Client) ListRegionsForOrganization

func (cl *Client) ListRegionsForOrganization(ctx context.Context, name string, page *int, perPage *int) (res200 *ListRegionsForOrganizationRes, err error)

func (*Client) PromoteBranch

func (cl *Client) PromoteBranch(ctx context.Context, organization string, database string, name string) (res200 *PromoteBranchRes, err error)

func (*Client) QueueDeployRequest

func (cl *Client) QueueDeployRequest(ctx context.Context, organization string, database string, number string) (res200 *QueueDeployRequestRes, err error)

func (*Client) RenewPassword

func (cl *Client) RenewPassword(ctx context.Context, organization string, database string, branch string, id string, req RenewPasswordReq) (res200 *RenewPasswordRes, err error)

func (*Client) ReviewDeployRequest

func (cl *Client) ReviewDeployRequest(ctx context.Context, organization string, database string, number string, req ReviewDeployRequestReq) (res201 *ReviewDeployRequestRes, err error)

func (*Client) SkipRevertPeriod

func (cl *Client) SkipRevertPeriod(ctx context.Context, organization string, database string, number string) (res200 *SkipRevertPeriodRes, err error)

func (*Client) UpdateAutoApplyForDeployRequest

func (cl *Client) UpdateAutoApplyForDeployRequest(ctx context.Context, organization string, database string, number string, req UpdateAutoApplyForDeployRequestReq) (res200 *UpdateAutoApplyForDeployRequestRes, err error)

func (*Client) UpdateDatabaseSettings

func (cl *Client) UpdateDatabaseSettings(ctx context.Context, organization string, name string, req UpdateDatabaseSettingsReq) (res200 *UpdateDatabaseSettingsRes, err error)

func (*Client) UpdateOrganization

func (cl *Client) UpdateOrganization(ctx context.Context, name string, req UpdateOrganizationReq) (res200 *UpdateOrganizationRes, err error)

func (*Client) UpdatePassword

func (cl *Client) UpdatePassword(ctx context.Context, organization string, database string, branch string, id string, req UpdatePasswordReq) (res200 *UpdatePasswordRes, err error)

type CloseDeployRequestReq

type CloseDeployRequestReq struct {
	State *string `json:"state,omitempty" tfsdk:"state"`
}

type CloseDeployRequestRes

type CloseDeployRequestRes struct {
	DeployRequestWithDeployment
}

type CompleteErroredDeployRes

type CompleteErroredDeployRes struct {
	DeployRequest
}

type CompleteGatedDeployRequestRes

type CompleteGatedDeployRequestRes struct {
	DeployRequest
}

type CompleteRevertRes

type CompleteRevertRes struct {
	DeployRequest
}

type CreateBackupReq

type CreateBackupReq struct {
	Name           *string  `json:"name,omitempty" tfsdk:"name"`
	RetentionUnit  *string  `json:"retention_unit,omitempty" tfsdk:"retention_unit"`
	RetentionValue *float64 `json:"retention_value,omitempty" tfsdk:"retention_value"`
}

type CreateBackupRes

type CreateBackupRes struct {
	Backup
}

type CreateBackupRes401

type CreateBackupRes401 struct {
	*ErrorResponse
}

type CreateBackupRes403

type CreateBackupRes403 struct {
	*ErrorResponse
}

type CreateBackupRes404

type CreateBackupRes404 struct {
	*ErrorResponse
}

type CreateBackupRes500

type CreateBackupRes500 struct {
	*ErrorResponse
}

type CreateBranchReq

type CreateBranchReq struct {
	BackupId     *string `json:"backup_id,omitempty" tfsdk:"backup_id"`
	Name         string  `json:"name" tfsdk:"name"`
	ParentBranch string  `json:"parent_branch" tfsdk:"parent_branch"`
}

type CreateBranchRes

type CreateBranchRes struct {
	Branch
}

type CreateBranchRes401

type CreateBranchRes401 struct {
	*ErrorResponse
}

type CreateBranchRes403

type CreateBranchRes403 struct {
	*ErrorResponse
}

type CreateBranchRes404

type CreateBranchRes404 struct {
	*ErrorResponse
}

type CreateBranchRes500

type CreateBranchRes500 struct {
	*ErrorResponse
}

type CreateDatabaseReq

type CreateDatabaseReq struct {
	ClusterSize *string `json:"cluster_size,omitempty" tfsdk:"cluster_size"`
	Name        string  `json:"name" tfsdk:"name"`
	Plan        *string `json:"plan,omitempty" tfsdk:"plan"`
	Region      *string `json:"region,omitempty" tfsdk:"region"`
}

type CreateDatabaseRes

type CreateDatabaseRes struct {
	Database
}

type CreateDatabaseRes401

type CreateDatabaseRes401 struct {
	*ErrorResponse
}

type CreateDatabaseRes403

type CreateDatabaseRes403 struct {
	*ErrorResponse
}

type CreateDatabaseRes404

type CreateDatabaseRes404 struct {
	*ErrorResponse
}

type CreateDatabaseRes500

type CreateDatabaseRes500 struct {
	*ErrorResponse
}

type CreateDeployRequestReq

type CreateDeployRequestReq struct {
	Branch     *string `json:"branch,omitempty" tfsdk:"branch"`
	IntoBranch *string `json:"into_branch,omitempty" tfsdk:"into_branch"`
	Notes      *string `json:"notes,omitempty" tfsdk:"notes"`
}

type CreateDeployRequestRes

type CreateDeployRequestRes struct {
	DeployRequestWithDeployment
}

type CreateOrRenewOauthTokenReq

type CreateOrRenewOauthTokenReq struct {
	ClientId     string  `json:"client_id" tfsdk:"client_id"`
	ClientSecret string  `json:"client_secret" tfsdk:"client_secret"`
	Code         *string `json:"code,omitempty" tfsdk:"code"`
	GrantType    string  `json:"grant_type" tfsdk:"grant_type"`
	RedirectUri  *string `json:"redirect_uri,omitempty" tfsdk:"redirect_uri"`
	RefreshToken *string `json:"refresh_token,omitempty" tfsdk:"refresh_token"`
}

type CreateOrRenewOauthTokenRes

type CreateOrRenewOauthTokenRes struct {
	CreatedOauthToken
}

type CreateOrRenewOauthTokenRes403

type CreateOrRenewOauthTokenRes403 struct {
	*ErrorResponse
}

type CreateOrRenewOauthTokenRes404

type CreateOrRenewOauthTokenRes404 struct {
	*ErrorResponse
}

type CreateOrRenewOauthTokenRes422

type CreateOrRenewOauthTokenRes422 struct {
	*ErrorResponse
}

type CreateOrRenewOauthTokenRes500

type CreateOrRenewOauthTokenRes500 struct {
	*ErrorResponse
}

type CreatePasswordReq

type CreatePasswordReq struct {
	Name *string  `json:"name,omitempty" tfsdk:"name"`
	Role *string  `json:"role,omitempty" tfsdk:"role"`
	Ttl  *float64 `json:"ttl,omitempty" tfsdk:"ttl"`
}

type CreatePasswordRes

type CreatePasswordRes struct {
	PasswordWithPlaintext
}

type CreatePasswordRes401

type CreatePasswordRes401 struct {
	*ErrorResponse
}

type CreatePasswordRes403

type CreatePasswordRes403 struct {
	*ErrorResponse
}

type CreatePasswordRes404

type CreatePasswordRes404 struct {
	*ErrorResponse
}

type CreatePasswordRes422

type CreatePasswordRes422 struct {
	*ErrorResponse
}

type CreatePasswordRes500

type CreatePasswordRes500 struct {
	*ErrorResponse
}

type CreatedOauthToken

type CreatedOauthToken struct {
	ActorDisplayName      *string   `json:"actor_display_name,omitempty" tfsdk:"actor_display_name"`
	ActorId               *string   `json:"actor_id,omitempty" tfsdk:"actor_id"`
	DisplayName           *string   `json:"display_name,omitempty" tfsdk:"display_name"`
	Name                  *string   `json:"name,omitempty" tfsdk:"name"`
	PlainTextRefreshToken *string   `json:"plain_text_refresh_token,omitempty" tfsdk:"plain_text_refresh_token"`
	ServiceTokenAccesses  *[]string `json:"service_token_accesses,omitempty" tfsdk:"service_token_accesses"`
	Token                 *string   `json:"token,omitempty" tfsdk:"token"`
}

type DataImport

type DataImport struct {
	DataSource        DataSource `json:"data_source" tfsdk:"data_source"`
	FinishedAt        string     `json:"finished_at" tfsdk:"finished_at"`
	ImportCheckErrors string     `json:"import_check_errors" tfsdk:"import_check_errors"`
	StartedAt         string     `json:"started_at" tfsdk:"started_at"`
	State             string     `json:"state" tfsdk:"state"`
}

type DataSource

type DataSource struct {
	Database string `json:"database" tfsdk:"database"`
	Hostname string `json:"hostname" tfsdk:"hostname"`
	Port     string `json:"port" tfsdk:"port"`
}

type Database

type Database struct {
	AllowDataBranching                bool        `json:"allow_data_branching" tfsdk:"allow_data_branching"`
	AtBackupRestoreBranchesLimit      bool        `json:"at_backup_restore_branches_limit" tfsdk:"at_backup_restore_branches_limit"`
	AtDevelopmentBranchLimit          bool        `json:"at_development_branch_limit" tfsdk:"at_development_branch_limit"`
	AutomaticMigrations               *bool       `json:"automatic_migrations,omitempty" tfsdk:"automatic_migrations"`
	BranchesCount                     float64     `json:"branches_count" tfsdk:"branches_count"`
	BranchesUrl                       string      `json:"branches_url" tfsdk:"branches_url"`
	CreatedAt                         string      `json:"created_at" tfsdk:"created_at"`
	DataImport                        *DataImport `json:"data_import,omitempty" tfsdk:"data_import"`
	DefaultBranch                     string      `json:"default_branch" tfsdk:"default_branch"`
	DefaultBranchReadOnlyRegionsCount float64     `json:"default_branch_read_only_regions_count" tfsdk:"default_branch_read_only_regions_count"`
	DefaultBranchShardCount           float64     `json:"default_branch_shard_count" tfsdk:"default_branch_shard_count"`
	DefaultBranchTableCount           float64     `json:"default_branch_table_count" tfsdk:"default_branch_table_count"`
	DevelopmentBranchesCount          float64     `json:"development_branches_count" tfsdk:"development_branches_count"`
	HtmlUrl                           string      `json:"html_url" tfsdk:"html_url"`
	Id                                string      `json:"id" tfsdk:"id"`
	InsightsRawQueries                bool        `json:"insights_raw_queries" tfsdk:"insights_raw_queries"`
	IssuesCount                       float64     `json:"issues_count" tfsdk:"issues_count"`
	MigrationFramework                *string     `json:"migration_framework,omitempty" tfsdk:"migration_framework"`
	MigrationTableName                *string     `json:"migration_table_name,omitempty" tfsdk:"migration_table_name"`
	MultipleAdminsRequiredForDeletion bool        `json:"multiple_admins_required_for_deletion" tfsdk:"multiple_admins_required_for_deletion"`
	Name                              string      `json:"name" tfsdk:"name"`
	Plan                              string      `json:"plan" tfsdk:"plan"`
	ProductionBranchWebConsole        bool        `json:"production_branch_web_console" tfsdk:"production_branch_web_console"`
	ProductionBranchesCount           float64     `json:"production_branches_count" tfsdk:"production_branches_count"`
	Ready                             bool        `json:"ready" tfsdk:"ready"`
	Region                            Region      `json:"region" tfsdk:"region"`
	RequireApprovalForDeploy          bool        `json:"require_approval_for_deploy" tfsdk:"require_approval_for_deploy"`
	RestrictBranchRegion              bool        `json:"restrict_branch_region" tfsdk:"restrict_branch_region"`
	SchemaLastUpdatedAt               *string     `json:"schema_last_updated_at,omitempty" tfsdk:"schema_last_updated_at"`
	Sharded                           bool        `json:"sharded" tfsdk:"sharded"`
	State                             string      `json:"state" tfsdk:"state"`
	Type                              string      `json:"type" tfsdk:"type"`
	UpdatedAt                         string      `json:"updated_at" tfsdk:"updated_at"`
	Url                               string      `json:"url" tfsdk:"url"`
}

type DeleteBackupRes

type DeleteBackupRes struct{}

type DeleteBackupRes401

type DeleteBackupRes401 struct {
	*ErrorResponse
}

type DeleteBackupRes403

type DeleteBackupRes403 struct {
	*ErrorResponse
}

type DeleteBackupRes404

type DeleteBackupRes404 struct {
	*ErrorResponse
}

type DeleteBackupRes500

type DeleteBackupRes500 struct {
	*ErrorResponse
}

type DeleteBranchRes

type DeleteBranchRes struct{}

type DeleteBranchRes401

type DeleteBranchRes401 struct {
	*ErrorResponse
}

type DeleteBranchRes403

type DeleteBranchRes403 struct {
	*ErrorResponse
}

type DeleteBranchRes404

type DeleteBranchRes404 struct {
	*ErrorResponse
}

type DeleteBranchRes500

type DeleteBranchRes500 struct {
	*ErrorResponse
}

type DeleteDatabaseRes

type DeleteDatabaseRes struct{}

type DeleteDatabaseRes401

type DeleteDatabaseRes401 struct {
	*ErrorResponse
}

type DeleteDatabaseRes403

type DeleteDatabaseRes403 struct {
	*ErrorResponse
}

type DeleteDatabaseRes404

type DeleteDatabaseRes404 struct {
	*ErrorResponse
}

type DeleteDatabaseRes500

type DeleteDatabaseRes500 struct {
	*ErrorResponse
}

type DeleteOauthTokenRes

type DeleteOauthTokenRes struct{}

type DeleteOauthTokenRes401

type DeleteOauthTokenRes401 struct {
	*ErrorResponse
}

type DeleteOauthTokenRes403

type DeleteOauthTokenRes403 struct {
	*ErrorResponse
}

type DeleteOauthTokenRes404

type DeleteOauthTokenRes404 struct {
	*ErrorResponse
}

type DeleteOauthTokenRes500

type DeleteOauthTokenRes500 struct {
	*ErrorResponse
}

type DeletePasswordRes

type DeletePasswordRes struct{}

type DeletePasswordRes401

type DeletePasswordRes401 struct {
	*ErrorResponse
}

type DeletePasswordRes403

type DeletePasswordRes403 struct {
	*ErrorResponse
}

type DeletePasswordRes404

type DeletePasswordRes404 struct {
	*ErrorResponse
}

type DeletePasswordRes500

type DeletePasswordRes500 struct {
	*ErrorResponse
}

type DemoteBranchRes

type DemoteBranchRes struct {
	Branch
}

type DemoteBranchRes401

type DemoteBranchRes401 struct {
	*ErrorResponse
}

type DemoteBranchRes403

type DemoteBranchRes403 struct {
	*ErrorResponse
}

type DemoteBranchRes404

type DemoteBranchRes404 struct {
	*ErrorResponse
}

type DemoteBranchRes500

type DemoteBranchRes500 struct {
	*ErrorResponse
}

type DeployOperation

type DeployOperation struct {
	CanDropData          bool     `json:"can_drop_data" tfsdk:"can_drop_data"`
	CreatedAt            string   `json:"created_at" tfsdk:"created_at"`
	DdlStatement         string   `json:"ddl_statement" tfsdk:"ddl_statement"`
	DeployErrorDocsUrl   string   `json:"deploy_error_docs_url" tfsdk:"deploy_error_docs_url"`
	DeployErrors         []string `json:"deploy_errors" tfsdk:"deploy_errors"`
	EtaSeconds           float64  `json:"eta_seconds" tfsdk:"eta_seconds"`
	Id                   string   `json:"id" tfsdk:"id"`
	KeyspaceName         string   `json:"keyspace_name" tfsdk:"keyspace_name"`
	OperationName        string   `json:"operation_name" tfsdk:"operation_name"`
	ProgressPercentage   float64  `json:"progress_percentage" tfsdk:"progress_percentage"`
	State                string   `json:"state" tfsdk:"state"`
	SyntaxHighlightedDdl string   `json:"syntax_highlighted_ddl" tfsdk:"syntax_highlighted_ddl"`
	TableName            string   `json:"table_name" tfsdk:"table_name"`
	TableRecentlyUsed    bool     `json:"table_recently_used" tfsdk:"table_recently_used"`
	TableRecentlyUsedAt  string   `json:"table_recently_used_at" tfsdk:"table_recently_used_at"`
	UpdatedAt            string   `json:"updated_at" tfsdk:"updated_at"`
}

type DeployRequest

type DeployRequest struct {
	Actor                Actor   `json:"actor" tfsdk:"actor"`
	Approved             bool    `json:"approved" tfsdk:"approved"`
	Branch               string  `json:"branch" tfsdk:"branch"`
	BranchDeleted        bool    `json:"branch_deleted" tfsdk:"branch_deleted"`
	BranchDeletedAt      string  `json:"branch_deleted_at" tfsdk:"branch_deleted_at"`
	BranchDeletedBy      Actor   `json:"branch_deleted_by" tfsdk:"branch_deleted_by"`
	ClosedAt             string  `json:"closed_at" tfsdk:"closed_at"`
	ClosedBy             Actor   `json:"closed_by" tfsdk:"closed_by"`
	CreatedAt            string  `json:"created_at" tfsdk:"created_at"`
	DeployedAt           string  `json:"deployed_at" tfsdk:"deployed_at"`
	DeploymentState      string  `json:"deployment_state" tfsdk:"deployment_state"`
	HtmlBody             string  `json:"html_body" tfsdk:"html_body"`
	HtmlUrl              string  `json:"html_url" tfsdk:"html_url"`
	Id                   string  `json:"id" tfsdk:"id"`
	IntoBranch           string  `json:"into_branch" tfsdk:"into_branch"`
	IntoBranchShardCount float64 `json:"into_branch_shard_count" tfsdk:"into_branch_shard_count"`
	IntoBranchSharded    bool    `json:"into_branch_sharded" tfsdk:"into_branch_sharded"`
	Notes                string  `json:"notes" tfsdk:"notes"`
	Number               float64 `json:"number" tfsdk:"number"`
	State                string  `json:"state" tfsdk:"state"`
	UpdatedAt            string  `json:"updated_at" tfsdk:"updated_at"`
}

type DeployRequestWithDeployment

type DeployRequestWithDeployment struct {
	Actor                Actor      `json:"actor" tfsdk:"actor"`
	Approved             bool       `json:"approved" tfsdk:"approved"`
	Branch               string     `json:"branch" tfsdk:"branch"`
	BranchDeleted        bool       `json:"branch_deleted" tfsdk:"branch_deleted"`
	BranchDeletedAt      string     `json:"branch_deleted_at" tfsdk:"branch_deleted_at"`
	BranchDeletedBy      Actor      `json:"branch_deleted_by" tfsdk:"branch_deleted_by"`
	ClosedAt             string     `json:"closed_at" tfsdk:"closed_at"`
	ClosedBy             Actor      `json:"closed_by" tfsdk:"closed_by"`
	CreatedAt            string     `json:"created_at" tfsdk:"created_at"`
	DeployedAt           string     `json:"deployed_at" tfsdk:"deployed_at"`
	Deployment           Deployment `json:"deployment" tfsdk:"deployment"`
	DeploymentState      string     `json:"deployment_state" tfsdk:"deployment_state"`
	HtmlBody             string     `json:"html_body" tfsdk:"html_body"`
	HtmlUrl              string     `json:"html_url" tfsdk:"html_url"`
	Id                   string     `json:"id" tfsdk:"id"`
	IntoBranch           string     `json:"into_branch" tfsdk:"into_branch"`
	IntoBranchShardCount float64    `json:"into_branch_shard_count" tfsdk:"into_branch_shard_count"`
	IntoBranchSharded    bool       `json:"into_branch_sharded" tfsdk:"into_branch_sharded"`
	Notes                string     `json:"notes" tfsdk:"notes"`
	Number               float64    `json:"number" tfsdk:"number"`
	State                string     `json:"state" tfsdk:"state"`
	UpdatedAt            string     `json:"updated_at" tfsdk:"updated_at"`
}

type DeployReview

type DeployReview struct {
	Actor     Actor  `json:"actor" tfsdk:"actor"`
	Body      string `json:"body" tfsdk:"body"`
	CreatedAt string `json:"created_at" tfsdk:"created_at"`
	HtmlBody  string `json:"html_body" tfsdk:"html_body"`
	Id        string `json:"id" tfsdk:"id"`
	State     string `json:"state" tfsdk:"state"`
	UpdatedAt string `json:"updated_at" tfsdk:"updated_at"`
}

type Deployment

type Deployment struct {
	AutoCutover       bool    `json:"auto_cutover" tfsdk:"auto_cutover"`
	CreatedAt         string  `json:"created_at" tfsdk:"created_at"`
	CutoverAt         *string `json:"cutover_at,omitempty" tfsdk:"cutover_at"`
	CutoverExpiring   bool    `json:"cutover_expiring" tfsdk:"cutover_expiring"`
	DeployCheckErrors *string `json:"deploy_check_errors,omitempty" tfsdk:"deploy_check_errors"`
	FinishedAt        *string `json:"finished_at,omitempty" tfsdk:"finished_at"`
	Id                string  `json:"id" tfsdk:"id"`
	QueuedAt          *string `json:"queued_at,omitempty" tfsdk:"queued_at"`
	ReadyToCutoverAt  *string `json:"ready_to_cutover_at,omitempty" tfsdk:"ready_to_cutover_at"`
	StartedAt         *string `json:"started_at,omitempty" tfsdk:"started_at"`
	State             string  `json:"state" tfsdk:"state"`
	SubmittedAt       string  `json:"submitted_at" tfsdk:"submitted_at"`
	UpdatedAt         string  `json:"updated_at" tfsdk:"updated_at"`
}

type DisableSafeMigrationsForBranchRes

type DisableSafeMigrationsForBranchRes struct {
	Branch
}

type DisableSafeMigrationsForBranchRes401

type DisableSafeMigrationsForBranchRes401 struct {
	*ErrorResponse
}

type DisableSafeMigrationsForBranchRes403

type DisableSafeMigrationsForBranchRes403 struct {
	*ErrorResponse
}

type DisableSafeMigrationsForBranchRes404

type DisableSafeMigrationsForBranchRes404 struct {
	*ErrorResponse
}

type DisableSafeMigrationsForBranchRes500

type DisableSafeMigrationsForBranchRes500 struct {
	*ErrorResponse
}

type EnableSafeMigrationsForBranchRes

type EnableSafeMigrationsForBranchRes struct {
	Branch
}

type EnableSafeMigrationsForBranchRes401

type EnableSafeMigrationsForBranchRes401 struct {
	*ErrorResponse
}

type EnableSafeMigrationsForBranchRes403

type EnableSafeMigrationsForBranchRes403 struct {
	*ErrorResponse
}

type EnableSafeMigrationsForBranchRes404

type EnableSafeMigrationsForBranchRes404 struct {
	*ErrorResponse
}

type EnableSafeMigrationsForBranchRes500

type EnableSafeMigrationsForBranchRes500 struct {
	*ErrorResponse
}

type ErrorResponse

type ErrorResponse struct {
	Code    string `json:"code"`
	Message string `json:"message"`
}

func (*ErrorResponse) Error

func (err *ErrorResponse) Error() string

type Features

type Features struct {
	Insights      *bool `json:"insights,omitempty" tfsdk:"insights"`
	SingleTenancy *bool `json:"single_tenancy,omitempty" tfsdk:"single_tenancy"`
	Sso           *bool `json:"sso,omitempty" tfsdk:"sso"`
}

type Flags

type Flags struct {
	ExampleFlag *string `json:"example_flag,omitempty" tfsdk:"example_flag"`
}

type GetBackupRes

type GetBackupRes struct {
	Backup
}

type GetBackupRes401

type GetBackupRes401 struct {
	*ErrorResponse
}

type GetBackupRes403

type GetBackupRes403 struct {
	*ErrorResponse
}

type GetBackupRes404

type GetBackupRes404 struct {
	*ErrorResponse
}

type GetBackupRes500

type GetBackupRes500 struct {
	*ErrorResponse
}

type GetBranchRes

type GetBranchRes struct {
	Branch
}

type GetBranchRes401

type GetBranchRes401 struct {
	*ErrorResponse
}

type GetBranchRes403

type GetBranchRes403 struct {
	*ErrorResponse
}

type GetBranchRes404

type GetBranchRes404 struct {
	*ErrorResponse
}

type GetBranchRes500

type GetBranchRes500 struct {
	*ErrorResponse
}

type GetBranchSchemaRes

type GetBranchSchemaRes struct {
	Data []TableSchema `json:"data" tfsdk:"data"`
}

type GetBranchSchemaRes401

type GetBranchSchemaRes401 struct {
	*ErrorResponse
}

type GetBranchSchemaRes403

type GetBranchSchemaRes403 struct {
	*ErrorResponse
}

type GetBranchSchemaRes404

type GetBranchSchemaRes404 struct {
	*ErrorResponse
}

type GetBranchSchemaRes500

type GetBranchSchemaRes500 struct {
	*ErrorResponse
}

type GetCurrentUserRes

type GetCurrentUserRes struct {
	User
}

type GetCurrentUserRes401

type GetCurrentUserRes401 struct {
	*ErrorResponse
}

type GetCurrentUserRes403

type GetCurrentUserRes403 struct {
	*ErrorResponse
}

type GetCurrentUserRes404

type GetCurrentUserRes404 struct {
	*ErrorResponse
}

type GetCurrentUserRes500

type GetCurrentUserRes500 struct {
	*ErrorResponse
}

type GetDatabaseRes

type GetDatabaseRes struct {
	Database
}

type GetDatabaseRes401

type GetDatabaseRes401 struct {
	*ErrorResponse
}

type GetDatabaseRes403

type GetDatabaseRes403 struct {
	*ErrorResponse
}

type GetDatabaseRes404

type GetDatabaseRes404 struct {
	*ErrorResponse
}

type GetDatabaseRes500

type GetDatabaseRes500 struct {
	*ErrorResponse
}

type GetDeployRequestRes

type GetDeployRequestRes struct {
	DeployRequestWithDeployment
}

type GetDeploymentRes

type GetDeploymentRes struct {
	Deployment
}

type GetOauthApplicationRes

type GetOauthApplicationRes struct {
	OauthApplication
}

type GetOauthApplicationRes401

type GetOauthApplicationRes401 struct {
	*ErrorResponse
}

type GetOauthApplicationRes403

type GetOauthApplicationRes403 struct {
	*ErrorResponse
}

type GetOauthApplicationRes404

type GetOauthApplicationRes404 struct {
	*ErrorResponse
}

type GetOauthApplicationRes500

type GetOauthApplicationRes500 struct {
	*ErrorResponse
}

type GetOauthTokenRes

type GetOauthTokenRes struct {
	OauthTokenWithDetails
}

type GetOauthTokenRes401

type GetOauthTokenRes401 struct {
	*ErrorResponse
}

type GetOauthTokenRes403

type GetOauthTokenRes403 struct {
	*ErrorResponse
}

type GetOauthTokenRes404

type GetOauthTokenRes404 struct {
	*ErrorResponse
}

type GetOauthTokenRes500

type GetOauthTokenRes500 struct {
	*ErrorResponse
}

type GetOrganizationRes

type GetOrganizationRes struct {
	Organization
}

type GetOrganizationRes401

type GetOrganizationRes401 struct {
	*ErrorResponse
}

type GetOrganizationRes403

type GetOrganizationRes403 struct {
	*ErrorResponse
}

type GetOrganizationRes404

type GetOrganizationRes404 struct {
	*ErrorResponse
}

type GetOrganizationRes500

type GetOrganizationRes500 struct {
	*ErrorResponse
}

type GetPasswordRes

type GetPasswordRes struct {
	Password
}

type GetPasswordRes401

type GetPasswordRes401 struct {
	*ErrorResponse
}

type GetPasswordRes403

type GetPasswordRes403 struct {
	*ErrorResponse
}

type GetPasswordRes404

type GetPasswordRes404 struct {
	*ErrorResponse
}

type GetPasswordRes500

type GetPasswordRes500 struct {
	*ErrorResponse
}

type GetTheDeployQueueRes

type GetTheDeployQueueRes struct {
	Data []QueuedDeployRequest `json:"data" tfsdk:"data"`
}

type LintBranchSchemaRes

type LintBranchSchemaRes struct {
	Data []LintError `json:"data" tfsdk:"data"`
}

type LintBranchSchemaRes401

type LintBranchSchemaRes401 struct {
	*ErrorResponse
}

type LintBranchSchemaRes403

type LintBranchSchemaRes403 struct {
	*ErrorResponse
}

type LintBranchSchemaRes404

type LintBranchSchemaRes404 struct {
	*ErrorResponse
}

type LintBranchSchemaRes500

type LintBranchSchemaRes500 struct {
	*ErrorResponse
}

type LintError

type LintError struct {
	AutoIncrementColumnNames []string `json:"auto_increment_column_names" tfsdk:"auto_increment_column_names"`
	CharsetName              string   `json:"charset_name" tfsdk:"charset_name"`
	CheckConstraintName      string   `json:"check_constraint_name" tfsdk:"check_constraint_name"`
	ColumnName               string   `json:"column_name" tfsdk:"column_name"`
	DocsUrl                  string   `json:"docs_url" tfsdk:"docs_url"`
	EngineName               string   `json:"engine_name" tfsdk:"engine_name"`
	EnumValue                string   `json:"enum_value" tfsdk:"enum_value"`
	ErrorDescription         string   `json:"error_description" tfsdk:"error_description"`
	ForeignKeyColumnNames    []string `json:"foreign_key_column_names" tfsdk:"foreign_key_column_names"`
	JsonPath                 string   `json:"json_path" tfsdk:"json_path"`
	KeyspaceName             string   `json:"keyspace_name" tfsdk:"keyspace_name"`
	LintError                string   `json:"lint_error" tfsdk:"lint_error"`
	PartitionName            string   `json:"partition_name" tfsdk:"partition_name"`
	PartitioningType         string   `json:"partitioning_type" tfsdk:"partitioning_type"`
	SubjectType              string   `json:"subject_type" tfsdk:"subject_type"`
	TableName                string   `json:"table_name" tfsdk:"table_name"`
	VindexName               string   `json:"vindex_name" tfsdk:"vindex_name"`
}

type ListBackupsRes

type ListBackupsRes struct {
	Data []Backup `json:"data" tfsdk:"data"`
}

type ListBackupsRes401

type ListBackupsRes401 struct {
	*ErrorResponse
}

type ListBackupsRes403

type ListBackupsRes403 struct {
	*ErrorResponse
}

type ListBackupsRes404

type ListBackupsRes404 struct {
	*ErrorResponse
}

type ListBackupsRes500

type ListBackupsRes500 struct {
	*ErrorResponse
}

type ListBranchesRes

type ListBranchesRes struct {
	Data []Branch `json:"data" tfsdk:"data"`
}

type ListBranchesRes401

type ListBranchesRes401 struct {
	*ErrorResponse
}

type ListBranchesRes403

type ListBranchesRes403 struct {
	*ErrorResponse
}

type ListBranchesRes404

type ListBranchesRes404 struct {
	*ErrorResponse
}

type ListBranchesRes500

type ListBranchesRes500 struct {
	*ErrorResponse
}

type ListDatabaseRegionsRes

type ListDatabaseRegionsRes struct {
	Data []Region `json:"data" tfsdk:"data"`
}

type ListDatabaseRegionsRes401

type ListDatabaseRegionsRes401 struct {
	*ErrorResponse
}

type ListDatabaseRegionsRes403

type ListDatabaseRegionsRes403 struct {
	*ErrorResponse
}

type ListDatabaseRegionsRes404

type ListDatabaseRegionsRes404 struct {
	*ErrorResponse
}

type ListDatabaseRegionsRes500

type ListDatabaseRegionsRes500 struct {
	*ErrorResponse
}

type ListDatabasesRes

type ListDatabasesRes struct {
	Data []Database `json:"data" tfsdk:"data"`
}

type ListDatabasesRes401

type ListDatabasesRes401 struct {
	*ErrorResponse
}

type ListDatabasesRes403

type ListDatabasesRes403 struct {
	*ErrorResponse
}

type ListDatabasesRes404

type ListDatabasesRes404 struct {
	*ErrorResponse
}

type ListDatabasesRes500

type ListDatabasesRes500 struct {
	*ErrorResponse
}

type ListDeployOperationsRes

type ListDeployOperationsRes struct {
	Data []DeployOperation `json:"data" tfsdk:"data"`
}

type ListDeployRequestReviewsRes

type ListDeployRequestReviewsRes struct {
	Data []DeployReview `json:"data" tfsdk:"data"`
}

type ListDeployRequestsRes

type ListDeployRequestsRes struct {
	Data []DeployRequest `json:"data" tfsdk:"data"`
}

type ListOauthApplicationsRes

type ListOauthApplicationsRes struct {
	Data []OauthApplication `json:"data" tfsdk:"data"`
}

type ListOauthApplicationsRes401

type ListOauthApplicationsRes401 struct {
	*ErrorResponse
}

type ListOauthApplicationsRes403

type ListOauthApplicationsRes403 struct {
	*ErrorResponse
}

type ListOauthApplicationsRes404

type ListOauthApplicationsRes404 struct {
	*ErrorResponse
}

type ListOauthApplicationsRes500

type ListOauthApplicationsRes500 struct {
	*ErrorResponse
}

type ListOauthTokensRes

type ListOauthTokensRes struct {
	Data []OauthToken `json:"data" tfsdk:"data"`
}

type ListOauthTokensRes401

type ListOauthTokensRes401 struct {
	*ErrorResponse
}

type ListOauthTokensRes403

type ListOauthTokensRes403 struct {
	*ErrorResponse
}

type ListOauthTokensRes404

type ListOauthTokensRes404 struct {
	*ErrorResponse
}

type ListOauthTokensRes500

type ListOauthTokensRes500 struct {
	*ErrorResponse
}

type ListOrganizationsRes

type ListOrganizationsRes struct {
	Data []Organization `json:"data" tfsdk:"data"`
}

type ListOrganizationsRes401

type ListOrganizationsRes401 struct {
	*ErrorResponse
}

type ListOrganizationsRes403

type ListOrganizationsRes403 struct {
	*ErrorResponse
}

type ListOrganizationsRes404

type ListOrganizationsRes404 struct {
	*ErrorResponse
}

type ListOrganizationsRes500

type ListOrganizationsRes500 struct {
	*ErrorResponse
}

type ListPasswordsRes

type ListPasswordsRes struct {
	Data []Password `json:"data" tfsdk:"data"`
}

type ListPasswordsRes401

type ListPasswordsRes401 struct {
	*ErrorResponse
}

type ListPasswordsRes403

type ListPasswordsRes403 struct {
	*ErrorResponse
}

type ListPasswordsRes404

type ListPasswordsRes404 struct {
	*ErrorResponse
}

type ListPasswordsRes500

type ListPasswordsRes500 struct {
	*ErrorResponse
}

type ListReadOnlyRegionsRes

type ListReadOnlyRegionsRes struct {
	Data []ReadOnlyRegion `json:"data" tfsdk:"data"`
}

type ListReadOnlyRegionsRes401

type ListReadOnlyRegionsRes401 struct {
	*ErrorResponse
}

type ListReadOnlyRegionsRes403

type ListReadOnlyRegionsRes403 struct {
	*ErrorResponse
}

type ListReadOnlyRegionsRes404

type ListReadOnlyRegionsRes404 struct {
	*ErrorResponse
}

type ListReadOnlyRegionsRes500

type ListReadOnlyRegionsRes500 struct {
	*ErrorResponse
}

type ListRegionsForOrganizationRes

type ListRegionsForOrganizationRes struct {
	Data []Region `json:"data" tfsdk:"data"`
}

type ListRegionsForOrganizationRes401

type ListRegionsForOrganizationRes401 struct {
	*ErrorResponse
}

type ListRegionsForOrganizationRes403

type ListRegionsForOrganizationRes403 struct {
	*ErrorResponse
}

type ListRegionsForOrganizationRes404

type ListRegionsForOrganizationRes404 struct {
	*ErrorResponse
}

type ListRegionsForOrganizationRes500

type ListRegionsForOrganizationRes500 struct {
	*ErrorResponse
}

type OauthAccessesByResource

type OauthAccessesByResource struct {
	Branch       OauthBranchAccesses       `json:"branch" tfsdk:"branch"`
	Database     OauthDatabaseAccesses     `json:"database" tfsdk:"database"`
	Organization OauthOrganizationAccesses `json:"organization" tfsdk:"organization"`
	User         OauthUserAccesses         `json:"user" tfsdk:"user"`
}

type OauthApplication

type OauthApplication struct {
	Avatar      *string  `json:"avatar,omitempty" tfsdk:"avatar"`
	ClientId    string   `json:"client_id" tfsdk:"client_id"`
	CreatedAt   string   `json:"created_at" tfsdk:"created_at"`
	Domain      string   `json:"domain" tfsdk:"domain"`
	Id          string   `json:"id" tfsdk:"id"`
	Name        string   `json:"name" tfsdk:"name"`
	RedirectUri string   `json:"redirect_uri" tfsdk:"redirect_uri"`
	Scopes      []string `json:"scopes" tfsdk:"scopes"`
	Tokens      float64  `json:"tokens" tfsdk:"tokens"`
	UpdatedAt   string   `json:"updated_at" tfsdk:"updated_at"`
}

type OauthBranchAccesses

type OauthBranchAccesses struct {
	Accesses []string `json:"accesses" tfsdk:"accesses"`
	Branches []string `json:"branches" tfsdk:"branches"`
}

type OauthDatabaseAccesses

type OauthDatabaseAccesses struct {
	Accesses  []string `json:"accesses" tfsdk:"accesses"`
	Databases []string `json:"databases" tfsdk:"databases"`
}

type OauthOrganizationAccesses

type OauthOrganizationAccesses struct {
	Accesses      []string `json:"accesses" tfsdk:"accesses"`
	Organizations []string `json:"organizations" tfsdk:"organizations"`
}

type OauthToken

type OauthToken struct {
	ActorDisplayName string `json:"actor_display_name" tfsdk:"actor_display_name"`
	ActorId          string `json:"actor_id" tfsdk:"actor_id"`
	ActorType        string `json:"actor_type" tfsdk:"actor_type"`
	AvatarUrl        string `json:"avatar_url" tfsdk:"avatar_url"`
	CreatedAt        string `json:"created_at" tfsdk:"created_at"`
	DisplayName      string `json:"display_name" tfsdk:"display_name"`
	ExpiresAt        string `json:"expires_at" tfsdk:"expires_at"`
	Id               string `json:"id" tfsdk:"id"`
	LastUsedAt       string `json:"last_used_at" tfsdk:"last_used_at"`
	Name             string `json:"name" tfsdk:"name"`
	UpdatedAt        string `json:"updated_at" tfsdk:"updated_at"`
}

type OauthTokenWithDetails

type OauthTokenWithDetails struct {
	ActorDisplayName        string                  `json:"actor_display_name" tfsdk:"actor_display_name"`
	ActorId                 string                  `json:"actor_id" tfsdk:"actor_id"`
	ActorType               string                  `json:"actor_type" tfsdk:"actor_type"`
	AvatarUrl               string                  `json:"avatar_url" tfsdk:"avatar_url"`
	CreatedAt               string                  `json:"created_at" tfsdk:"created_at"`
	DisplayName             string                  `json:"display_name" tfsdk:"display_name"`
	ExpiresAt               string                  `json:"expires_at" tfsdk:"expires_at"`
	Id                      string                  `json:"id" tfsdk:"id"`
	LastUsedAt              string                  `json:"last_used_at" tfsdk:"last_used_at"`
	Name                    string                  `json:"name" tfsdk:"name"`
	OauthAccessesByResource OauthAccessesByResource `json:"oauth_accesses_by_resource" tfsdk:"oauth_accesses_by_resource"`
	UpdatedAt               string                  `json:"updated_at" tfsdk:"updated_at"`
}

type OauthUserAccesses

type OauthUserAccesses struct {
	Accesses []string `json:"accesses" tfsdk:"accesses"`
	Users    []string `json:"users" tfsdk:"users"`
}

type Organization

type Organization struct {
	AdminOnlyProductionAccess bool      `json:"admin_only_production_access" tfsdk:"admin_only_production_access"`
	BillingEmail              *string   `json:"billing_email,omitempty" tfsdk:"billing_email"`
	CanCreateDatabases        bool      `json:"can_create_databases" tfsdk:"can_create_databases"`
	CreatedAt                 string    `json:"created_at" tfsdk:"created_at"`
	DatabaseCount             float64   `json:"database_count" tfsdk:"database_count"`
	Features                  *Features `json:"features,omitempty" tfsdk:"features"`
	Flags                     *Flags    `json:"flags,omitempty" tfsdk:"flags"`
	FreeDatabasesRemaining    float64   `json:"free_databases_remaining" tfsdk:"free_databases_remaining"`
	HasPastDueInvoices        bool      `json:"has_past_due_invoices" tfsdk:"has_past_due_invoices"`
	Id                        string    `json:"id" tfsdk:"id"`
	IdpManagedRoles           bool      `json:"idp_managed_roles" tfsdk:"idp_managed_roles"`
	Name                      string    `json:"name" tfsdk:"name"`
	Plan                      string    `json:"plan" tfsdk:"plan"`
	SingleTenancy             bool      `json:"single_tenancy" tfsdk:"single_tenancy"`
	SleepingDatabaseCount     float64   `json:"sleeping_database_count" tfsdk:"sleeping_database_count"`
	Sso                       bool      `json:"sso" tfsdk:"sso"`
	SsoDirectory              bool      `json:"sso_directory" tfsdk:"sso_directory"`
	SsoPortalUrl              *string   `json:"sso_portal_url,omitempty" tfsdk:"sso_portal_url"`
	UpdatedAt                 string    `json:"updated_at" tfsdk:"updated_at"`
	ValidBillingInfo          bool      `json:"valid_billing_info" tfsdk:"valid_billing_info"`
}

type Password

type Password struct {
	AccessHostUrl  string            `json:"access_host_url" tfsdk:"access_host_url"`
	Actor          *Actor            `json:"actor,omitempty" tfsdk:"actor"`
	CreatedAt      string            `json:"created_at" tfsdk:"created_at"`
	DatabaseBranch BranchForPassword `json:"database_branch" tfsdk:"database_branch"`
	DeletedAt      *string           `json:"deleted_at,omitempty" tfsdk:"deleted_at"`
	ExpiresAt      *string           `json:"expires_at,omitempty" tfsdk:"expires_at"`
	Id             string            `json:"id" tfsdk:"id"`
	Name           string            `json:"name" tfsdk:"name"`
	Region         *Region           `json:"region,omitempty" tfsdk:"region"`
	Renewable      bool              `json:"renewable" tfsdk:"renewable"`
	Role           string            `json:"role" tfsdk:"role"`
	TtlSeconds     float64           `json:"ttl_seconds" tfsdk:"ttl_seconds"`
	Username       *string           `json:"username,omitempty" tfsdk:"username"`
}

type PasswordWithPlaintext

type PasswordWithPlaintext struct {
	AccessHostUrl  string            `json:"access_host_url" tfsdk:"access_host_url"`
	Actor          *Actor            `json:"actor,omitempty" tfsdk:"actor"`
	CreatedAt      string            `json:"created_at" tfsdk:"created_at"`
	DatabaseBranch BranchForPassword `json:"database_branch" tfsdk:"database_branch"`
	DeletedAt      *string           `json:"deleted_at,omitempty" tfsdk:"deleted_at"`
	ExpiresAt      *string           `json:"expires_at,omitempty" tfsdk:"expires_at"`
	Id             string            `json:"id" tfsdk:"id"`
	Name           string            `json:"name" tfsdk:"name"`
	PlainText      string            `json:"plain_text" tfsdk:"plain_text"`
	Region         *Region           `json:"region,omitempty" tfsdk:"region"`
	Renewable      bool              `json:"renewable" tfsdk:"renewable"`
	Role           string            `json:"role" tfsdk:"role"`
	TtlSeconds     float64           `json:"ttl_seconds" tfsdk:"ttl_seconds"`
	Username       *string           `json:"username,omitempty" tfsdk:"username"`
}

type PromoteBranchRes

type PromoteBranchRes struct {
	Branch
}

type PromoteBranchRes401

type PromoteBranchRes401 struct {
	*ErrorResponse
}

type PromoteBranchRes403

type PromoteBranchRes403 struct {
	*ErrorResponse
}

type PromoteBranchRes404

type PromoteBranchRes404 struct {
	*ErrorResponse
}

type PromoteBranchRes500

type PromoteBranchRes500 struct {
	*ErrorResponse
}

type QueueDeployRequestRes

type QueueDeployRequestRes struct {
	DeployRequest
}

type QueuedDeployRequest

type QueuedDeployRequest struct {
	AutoCutover       bool    `json:"auto_cutover" tfsdk:"auto_cutover"`
	CreatedAt         string  `json:"created_at" tfsdk:"created_at"`
	CutoverAt         *string `json:"cutover_at,omitempty" tfsdk:"cutover_at"`
	CutoverExpiring   bool    `json:"cutover_expiring" tfsdk:"cutover_expiring"`
	DeployCheckErrors *string `json:"deploy_check_errors,omitempty" tfsdk:"deploy_check_errors"`
	FinishedAt        *string `json:"finished_at,omitempty" tfsdk:"finished_at"`
	Id                string  `json:"id" tfsdk:"id"`
	QueuedAt          *string `json:"queued_at,omitempty" tfsdk:"queued_at"`
	ReadyToCutoverAt  *string `json:"ready_to_cutover_at,omitempty" tfsdk:"ready_to_cutover_at"`
	StartedAt         *string `json:"started_at,omitempty" tfsdk:"started_at"`
	State             string  `json:"state" tfsdk:"state"`
	SubmittedAt       string  `json:"submitted_at" tfsdk:"submitted_at"`
	UpdatedAt         string  `json:"updated_at" tfsdk:"updated_at"`
}

type ReadOnlyRegion

type ReadOnlyRegion struct {
	Actor       Actor  `json:"actor" tfsdk:"actor"`
	CreatedAt   string `json:"created_at" tfsdk:"created_at"`
	DisplayName string `json:"display_name" tfsdk:"display_name"`
	Id          string `json:"id" tfsdk:"id"`
	Ready       bool   `json:"ready" tfsdk:"ready"`
	ReadyAt     string `json:"ready_at" tfsdk:"ready_at"`
	Region      Region `json:"region" tfsdk:"region"`
	UpdatedAt   string `json:"updated_at" tfsdk:"updated_at"`
}

type Region

type Region struct {
	DisplayName       string   `json:"display_name" tfsdk:"display_name"`
	Enabled           bool     `json:"enabled" tfsdk:"enabled"`
	Id                string   `json:"id" tfsdk:"id"`
	Location          string   `json:"location" tfsdk:"location"`
	Provider          string   `json:"provider" tfsdk:"provider"`
	PublicIpAddresses []string `json:"public_ip_addresses" tfsdk:"public_ip_addresses"`
	Slug              string   `json:"slug" tfsdk:"slug"`
}

type RenewPasswordReq

type RenewPasswordReq struct {
	ReadOnlyRegionId *string `json:"read_only_region_id,omitempty" tfsdk:"read_only_region_id"`
}

type RenewPasswordRes

type RenewPasswordRes struct {
	PasswordWithPlaintext
}

type RenewPasswordRes401

type RenewPasswordRes401 struct {
	*ErrorResponse
}

type RenewPasswordRes403

type RenewPasswordRes403 struct {
	*ErrorResponse
}

type RenewPasswordRes404

type RenewPasswordRes404 struct {
	*ErrorResponse
}

type RenewPasswordRes500

type RenewPasswordRes500 struct {
	*ErrorResponse
}

type RestoredFromBranch

type RestoredFromBranch struct {
	CreatedAt string `json:"created_at" tfsdk:"created_at"`
	DeletedAt string `json:"deleted_at" tfsdk:"deleted_at"`
	Id        string `json:"id" tfsdk:"id"`
	Name      string `json:"name" tfsdk:"name"`
	UpdatedAt string `json:"updated_at" tfsdk:"updated_at"`
}

type ReviewDeployRequestReq

type ReviewDeployRequestReq struct {
	Body  *string `json:"body,omitempty" tfsdk:"body"`
	State *string `json:"state,omitempty" tfsdk:"state"`
}

type ReviewDeployRequestRes

type ReviewDeployRequestRes struct {
	DeployReview
}

type SchemaSnapshot

type SchemaSnapshot struct {
	CreatedAt string `json:"created_at" tfsdk:"created_at"`
	Id        string `json:"id" tfsdk:"id"`
	Name      string `json:"name" tfsdk:"name"`
	UpdatedAt string `json:"updated_at" tfsdk:"updated_at"`
	Url       string `json:"url" tfsdk:"url"`
}

type SkipRevertPeriodRes

type SkipRevertPeriodRes struct {
	DeployRequest
}

type TableSchema

type TableSchema struct {
	Html string `json:"html" tfsdk:"html"`
	Name string `json:"name" tfsdk:"name"`
	Raw  string `json:"raw" tfsdk:"raw"`
}

type UpdateAutoApplyForDeployRequestReq

type UpdateAutoApplyForDeployRequestReq struct {
	Enable *bool `json:"enable,omitempty" tfsdk:"enable"`
}

type UpdateAutoApplyForDeployRequestRes

type UpdateAutoApplyForDeployRequestRes struct {
	DeployRequest
}

type UpdateDatabaseSettingsReq

type UpdateDatabaseSettingsReq struct {
	AllowDataBranching         *bool   `json:"allow_data_branching,omitempty" tfsdk:"allow_data_branching"`
	AutomaticMigrations        *bool   `json:"automatic_migrations,omitempty" tfsdk:"automatic_migrations"`
	DefaultBranch              *string `json:"default_branch,omitempty" tfsdk:"default_branch"`
	InsightsRawQueries         *bool   `json:"insights_raw_queries,omitempty" tfsdk:"insights_raw_queries"`
	MigrationFramework         *string `json:"migration_framework,omitempty" tfsdk:"migration_framework"`
	MigrationTableName         *string `json:"migration_table_name,omitempty" tfsdk:"migration_table_name"`
	ProductionBranchWebConsole *bool   `json:"production_branch_web_console,omitempty" tfsdk:"production_branch_web_console"`
	RequireApprovalForDeploy   *bool   `json:"require_approval_for_deploy,omitempty" tfsdk:"require_approval_for_deploy"`
	RestrictBranchRegion       *bool   `json:"restrict_branch_region,omitempty" tfsdk:"restrict_branch_region"`
}

type UpdateDatabaseSettingsRes

type UpdateDatabaseSettingsRes struct {
	Database
}

type UpdateDatabaseSettingsRes401

type UpdateDatabaseSettingsRes401 struct {
	*ErrorResponse
}

type UpdateDatabaseSettingsRes403

type UpdateDatabaseSettingsRes403 struct {
	*ErrorResponse
}

type UpdateDatabaseSettingsRes404

type UpdateDatabaseSettingsRes404 struct {
	*ErrorResponse
}

type UpdateDatabaseSettingsRes500

type UpdateDatabaseSettingsRes500 struct {
	*ErrorResponse
}

type UpdateOrganizationReq

type UpdateOrganizationReq struct {
	BillingEmail                    *string `json:"billing_email,omitempty" tfsdk:"billing_email"`
	IdpManagedRoles                 *bool   `json:"idp_managed_roles,omitempty" tfsdk:"idp_managed_roles"`
	RequireAdminForProductionAccess *bool   `json:"require_admin_for_production_access,omitempty" tfsdk:"require_admin_for_production_access"`
}

type UpdateOrganizationRes

type UpdateOrganizationRes struct {
	Organization
}

type UpdateOrganizationRes401

type UpdateOrganizationRes401 struct {
	*ErrorResponse
}

type UpdateOrganizationRes403

type UpdateOrganizationRes403 struct {
	*ErrorResponse
}

type UpdateOrganizationRes404

type UpdateOrganizationRes404 struct {
	*ErrorResponse
}

type UpdateOrganizationRes500

type UpdateOrganizationRes500 struct {
	*ErrorResponse
}

type UpdatePasswordReq

type UpdatePasswordReq struct {
	Name string `json:"name" tfsdk:"name"`
}

type UpdatePasswordRes

type UpdatePasswordRes struct {
	Password
}

type UpdatePasswordRes401

type UpdatePasswordRes401 struct {
	*ErrorResponse
}

type UpdatePasswordRes403

type UpdatePasswordRes403 struct {
	*ErrorResponse
}

type UpdatePasswordRes404

type UpdatePasswordRes404 struct {
	*ErrorResponse
}

type UpdatePasswordRes500

type UpdatePasswordRes500 struct {
	*ErrorResponse
}

type User

type User struct {
	AvatarUrl               *string `json:"avatar_url,omitempty" tfsdk:"avatar_url"`
	CreatedAt               *string `json:"created_at,omitempty" tfsdk:"created_at"`
	DefaultOrganizationId   *string `json:"default_organization_id,omitempty" tfsdk:"default_organization_id"`
	DirectoryManaged        *bool   `json:"directory_managed,omitempty" tfsdk:"directory_managed"`
	DisplayName             *string `json:"display_name,omitempty" tfsdk:"display_name"`
	Email                   *string `json:"email,omitempty" tfsdk:"email"`
	EmailVerified           *bool   `json:"email_verified,omitempty" tfsdk:"email_verified"`
	Id                      *string `json:"id,omitempty" tfsdk:"id"`
	Managed                 *bool   `json:"managed,omitempty" tfsdk:"managed"`
	Name                    *string `json:"name,omitempty" tfsdk:"name"`
	Sso                     *bool   `json:"sso,omitempty" tfsdk:"sso"`
	TwoFactorAuthConfigured *bool   `json:"two_factor_auth_configured,omitempty" tfsdk:"two_factor_auth_configured"`
	UpdatedAt               *string `json:"updated_at,omitempty" tfsdk:"updated_at"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL