postgresflex

package module
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2024 License: Apache-2.0 Imports: 22 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CacheExpires

func CacheExpires(r *http.Response) time.Time

CacheExpires helper function to determine remaining time before repeating a request.

func IsNil

func IsNil(i interface{}) bool

IsNil checks if an input is nil

func NewConfiguration

func NewConfiguration() *config.Configuration

NewConfiguration returns a new Configuration object

func ParameterValueToString

func ParameterValueToString(obj interface{}, key string) string

func PtrBool

func PtrBool(v bool) *bool

PtrBool is a helper routine that returns a pointer to given boolean value.

func PtrFloat32

func PtrFloat32(v float32) *float32

PtrFloat32 is a helper routine that returns a pointer to given float value.

func PtrFloat64

func PtrFloat64(v float64) *float64

PtrFloat64 is a helper routine that returns a pointer to given float value.

func PtrInt

func PtrInt(v int) *int

PtrInt is a helper routine that returns a pointer to given integer value.

func PtrInt32

func PtrInt32(v int32) *int32

PtrInt32 is a helper routine that returns a pointer to given integer value.

func PtrInt64

func PtrInt64(v int64) *int64

PtrInt64 is a helper routine that returns a pointer to given integer value.

func PtrString

func PtrString(v string) *string

PtrString is a helper routine that returns a pointer to given string value.

func PtrTime

func PtrTime(v time.Time) *time.Time

PtrTime is helper routine that returns a pointer to given Time value.

Types

type ACL

type ACL struct {
	Items *[]string `json:"items,omitempty"`
}

type APIClient

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

APIClient manages communication with the STACKIT PostgreSQL Flex API API v1.0.0 In most cases there should be only one, shared, APIClient.

func NewAPIClient

func NewAPIClient(opts ...config.ConfigurationOption) (*APIClient, error)

NewAPIClient creates a new API client. Optionally receives configuration options

func (*APIClient) CloneInstance added in v0.10.0

func (a *APIClient) CloneInstance(ctx context.Context, projectId string, instanceId string) ApiCloneInstanceRequest

CloneInstance Clone Instance

Clone an existing instance of a postgres database to a new destination instance

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param projectId Project ID
@param instanceId Instance ID
@return ApiCloneInstanceRequest

func (*APIClient) CloneInstanceExecute added in v0.10.0

func (a *APIClient) CloneInstanceExecute(ctx context.Context, projectId string, instanceId string) (*CloneInstanceResponse, error)

func (*APIClient) CreateDatabase added in v0.15.0

func (a *APIClient) CreateDatabase(ctx context.Context, projectId string, instanceId string) ApiCreateDatabaseRequest

CreateDatabase Create Database

Create database for a user Note: The name of a valid user must be provided in the "options" map field using the key "owner"

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param projectId Project ID
@param instanceId Instance ID
@return ApiCreateDatabaseRequest

func (*APIClient) CreateDatabaseExecute added in v0.15.0

func (a *APIClient) CreateDatabaseExecute(ctx context.Context, projectId string, instanceId string) (*InstanceCreateDatabaseResponse, error)

func (*APIClient) CreateInstance

func (a *APIClient) CreateInstance(ctx context.Context, projectId string) ApiCreateInstanceRequest

CreateInstance Create Instance

Create a new instance of a postgres database

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param projectId Project ID
@return ApiCreateInstanceRequest

func (*APIClient) CreateInstanceExecute

func (a *APIClient) CreateInstanceExecute(ctx context.Context, projectId string) (*CreateInstanceResponse, error)

func (*APIClient) CreateUser

func (a *APIClient) CreateUser(ctx context.Context, projectId string, instanceId string) ApiCreateUserRequest

CreateUser Create User

Create user for an instance

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param projectId Project ID
@param instanceId Instance ID
@return ApiCreateUserRequest

func (*APIClient) CreateUserExecute

func (a *APIClient) CreateUserExecute(ctx context.Context, projectId string, instanceId string) (*CreateUserResponse, error)

func (*APIClient) DeleteDatabase added in v0.15.0

func (a *APIClient) DeleteDatabase(ctx context.Context, projectId string, instanceId string, databaseId string) ApiDeleteDatabaseRequest

DeleteDatabase Delete Database

Delete database for an instance

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param projectId Project ID
@param instanceId Instance ID
@param databaseId Database ID
@return ApiDeleteDatabaseRequest

func (*APIClient) DeleteDatabaseExecute added in v0.15.0

func (a *APIClient) DeleteDatabaseExecute(ctx context.Context, projectId string, instanceId string, databaseId string) error

func (*APIClient) DeleteInstance

func (a *APIClient) DeleteInstance(ctx context.Context, projectId string, instanceId string) ApiDeleteInstanceRequest

DeleteInstance Delete Instance

Delete available instance

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param projectId Project ID
@param instanceId Instance ID
@return ApiDeleteInstanceRequest

func (*APIClient) DeleteInstanceExecute

func (a *APIClient) DeleteInstanceExecute(ctx context.Context, projectId string, instanceId string) error

func (*APIClient) DeleteUser

func (a *APIClient) DeleteUser(ctx context.Context, projectId string, instanceId string, userId string) ApiDeleteUserRequest

DeleteUser Delete User

Delete user for an instance

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param projectId Project ID
@param instanceId Instance ID
@param userId User ID
@return ApiDeleteUserRequest

func (*APIClient) DeleteUserExecute

func (a *APIClient) DeleteUserExecute(ctx context.Context, projectId string, instanceId string, userId string) error

func (*APIClient) DisableService added in v0.15.0

func (a *APIClient) DisableService(ctx context.Context, projectId string) ApiDisableServiceRequest

DisableService Terminate the Project

Termination is the deletion of a whole project which causes the deletion of all instances for this project. Only System with permission system.databases-project.remove is able to call this resource

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param projectId Project ID
@return ApiDisableServiceRequest

func (*APIClient) DisableServiceExecute added in v0.15.0

func (a *APIClient) DisableServiceExecute(ctx context.Context, projectId string) error

func (*APIClient) ForceDeleteInstance added in v0.11.0

func (a *APIClient) ForceDeleteInstance(ctx context.Context, projectId string, instanceId string) ApiForceDeleteInstanceRequest

ForceDeleteInstance Force delete instance

Forces the deletion of an delayed deleted instance

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param projectId Project ID
@param instanceId Instance ID
@return ApiForceDeleteInstanceRequest

func (*APIClient) ForceDeleteInstanceExecute added in v0.11.0

func (a *APIClient) ForceDeleteInstanceExecute(ctx context.Context, projectId string, instanceId string) error

func (*APIClient) GetBackup

func (a *APIClient) GetBackup(ctx context.Context, projectId string, instanceId string, backupId string) ApiGetBackupRequest

GetBackup Get specific backup

Get specific available backup

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param projectId Project ID
@param instanceId Instance ID
@param backupId Backup ID
@return ApiGetBackupRequest

func (*APIClient) GetBackupExecute

func (a *APIClient) GetBackupExecute(ctx context.Context, projectId string, instanceId string, backupId string) (*GetBackupResponse, error)

func (*APIClient) GetConfig

func (c *APIClient) GetConfig() *config.Configuration

Allow modification of underlying config for alternate implementations and testing Caution: modifying the configuration while live can cause data races and potentially unwanted behavior

func (*APIClient) GetInstance

func (a *APIClient) GetInstance(ctx context.Context, projectId string, instanceId string) ApiGetInstanceRequest

GetInstance Get specific instance

Get specific available instances

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param projectId Project ID
@param instanceId Instance ID
@return ApiGetInstanceRequest

func (*APIClient) GetInstanceExecute

func (a *APIClient) GetInstanceExecute(ctx context.Context, projectId string, instanceId string) (*InstanceResponse, error)

func (*APIClient) GetUser

func (a *APIClient) GetUser(ctx context.Context, projectId string, instanceId string, userId string) ApiGetUserRequest

GetUser Get User

Get specific available user for an instance

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param projectId Project ID
@param instanceId Instance ID
@param userId User ID
@return ApiGetUserRequest

func (*APIClient) GetUserExecute

func (a *APIClient) GetUserExecute(ctx context.Context, projectId string, instanceId string, userId string) (*GetUserResponse, error)

func (*APIClient) ListBackups

func (a *APIClient) ListBackups(ctx context.Context, projectId string, instanceId string) ApiListBackupsRequest

ListBackups List backups

List all backups which are available for a specific instance

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param projectId Project ID
@param instanceId Instance ID
@return ApiListBackupsRequest

func (*APIClient) ListBackupsExecute

func (a *APIClient) ListBackupsExecute(ctx context.Context, projectId string, instanceId string) (*ListBackupsResponse, error)

func (*APIClient) ListDatabaseParameters added in v0.15.0

func (a *APIClient) ListDatabaseParameters(ctx context.Context, projectId string, instanceId string) ApiListDatabaseParametersRequest

ListDatabaseParameters List Databases parameter

List available databases parameter

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param projectId Project ID
@param instanceId Instance ID
@return ApiListDatabaseParametersRequest

func (*APIClient) ListDatabaseParametersExecute added in v0.15.0

func (a *APIClient) ListDatabaseParametersExecute(ctx context.Context, projectId string, instanceId string) (*PostgresDatabaseParameterResponse, error)

func (*APIClient) ListDatabases added in v0.15.0

func (a *APIClient) ListDatabases(ctx context.Context, projectId string, instanceId string) ApiListDatabasesRequest

ListDatabases List Databases

List available databases for an instance

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param projectId Project ID
@param instanceId Instance ID
@return ApiListDatabasesRequest

func (*APIClient) ListDatabasesExecute added in v0.15.0

func (a *APIClient) ListDatabasesExecute(ctx context.Context, projectId string, instanceId string) (*InstanceListDatabasesResponse, error)

func (*APIClient) ListFlavors

func (a *APIClient) ListFlavors(ctx context.Context, projectId string) ApiListFlavorsRequest

ListFlavors Get Flavors

Get available flavors for a specific projectID

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param projectId Project ID
@return ApiListFlavorsRequest

func (*APIClient) ListFlavorsExecute

func (a *APIClient) ListFlavorsExecute(ctx context.Context, projectId string) (*ListFlavorsResponse, error)

func (*APIClient) ListInstances

func (a *APIClient) ListInstances(ctx context.Context, projectId string) ApiListInstancesRequest

ListInstances List Instances

List available instances

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param projectId Project ID
@return ApiListInstancesRequest

func (*APIClient) ListInstancesExecute

func (a *APIClient) ListInstancesExecute(ctx context.Context, projectId string) (*ListInstancesResponse, error)

func (*APIClient) ListMetrics added in v0.15.0

func (a *APIClient) ListMetrics(ctx context.Context, projectId string, instanceId string, metric string) ApiListMetricsRequest

ListMetrics Get Metric

Returns a metric for an instance. The metric will only be for the master pod if needed. Granularity parameter is always needed. If start and end time is provided, period is not considered in max-connections and disk-use. If you provide start time, you have to provide end time as well and vice versa.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param projectId The UUID of the project.
@param instanceId The UUID of the instance.
@param metric The name of the metric. Valid metrics are 'cpu', 'memory', 'max-connections', 'connections' and 'disk-use'.
@return ApiListMetricsRequest

func (*APIClient) ListMetricsExecute added in v0.15.0

func (a *APIClient) ListMetricsExecute(ctx context.Context, projectId string, instanceId string, metric string) (*InstanceMetricsResponse, error)

func (*APIClient) ListStorages

func (a *APIClient) ListStorages(ctx context.Context, projectId string, flavorId string) ApiListStoragesRequest

ListStorages Get Storages

Get available storages for a specific flavor

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param projectId Project ID
@param flavorId Flavor ID
@return ApiListStoragesRequest

func (*APIClient) ListStoragesExecute

func (a *APIClient) ListStoragesExecute(ctx context.Context, projectId string, flavorId string) (*ListStoragesResponse, error)

func (*APIClient) ListUsers

func (a *APIClient) ListUsers(ctx context.Context, projectId string, instanceId string) ApiListUsersRequest

ListUsers List Users

List available users for an instance

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param projectId Project ID
@param instanceId Instance ID
@return ApiListUsersRequest

func (*APIClient) ListUsersExecute

func (a *APIClient) ListUsersExecute(ctx context.Context, projectId string, instanceId string) (*ListUsersResponse, error)

func (*APIClient) ListVersions

func (a *APIClient) ListVersions(ctx context.Context, projectId string) ApiListVersionsRequest

ListVersions Get Versions

Get available versions for postgres database

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param projectId Project ID
@return ApiListVersionsRequest

func (*APIClient) ListVersionsExecute

func (a *APIClient) ListVersionsExecute(ctx context.Context, projectId string) (*ListVersionsResponse, error)

func (*APIClient) PartialUpdateInstance

func (a *APIClient) PartialUpdateInstance(ctx context.Context, projectId string, instanceId string) ApiPartialUpdateInstanceRequest

PartialUpdateInstance Update Instance

Update available instance of a postgres database. Supported Versions are 12, 13, 14, 15 -- only upgrades are allowed!

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param projectId Project ID
@param instanceId Instance ID
@return ApiPartialUpdateInstanceRequest

func (*APIClient) PartialUpdateInstanceExecute

func (a *APIClient) PartialUpdateInstanceExecute(ctx context.Context, projectId string, instanceId string) (*PartialUpdateInstanceResponse, error)

func (*APIClient) PartialUpdateUser added in v0.9.0

func (a *APIClient) PartialUpdateUser(ctx context.Context, projectId string, instanceId string, userId string) ApiPartialUpdateUserRequest

PartialUpdateUser Update User

Update user for an instance. Only the roles are updatable.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param projectId The ID of the project
@param instanceId The ID of the instance
@param userId The ID of the user in the database
@return ApiPartialUpdateUserRequest

func (*APIClient) PartialUpdateUserExecute added in v0.9.0

func (a *APIClient) PartialUpdateUserExecute(ctx context.Context, projectId string, instanceId string, userId string) error

func (*APIClient) ResetUser added in v0.9.0

func (a *APIClient) ResetUser(ctx context.Context, projectId string, instanceId string, userId string) ApiResetUserRequest

ResetUser Reset User

Reset user password for a postgres instance

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param projectId Project ID
@param instanceId Instance ID
@param userId user ID
@return ApiResetUserRequest

func (*APIClient) ResetUserExecute added in v0.9.0

func (a *APIClient) ResetUserExecute(ctx context.Context, projectId string, instanceId string, userId string) (*ResetUserResponse, error)

func (*APIClient) UpdateBackupSchedule

func (a *APIClient) UpdateBackupSchedule(ctx context.Context, projectId string, instanceId string) ApiUpdateBackupScheduleRequest

UpdateBackupSchedule Update Backup Schedule

Update backup schedule

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param projectId Project ID
@param instanceId Instance ID
@return ApiUpdateBackupScheduleRequest

func (*APIClient) UpdateBackupScheduleExecute

func (a *APIClient) UpdateBackupScheduleExecute(ctx context.Context, projectId string, instanceId string) error

func (*APIClient) UpdateInstance added in v0.15.0

func (a *APIClient) UpdateInstance(ctx context.Context, projectId string, instanceId string) ApiUpdateInstanceRequest

UpdateInstance Update Instance

Update available instance of a postgres database. Supported Versions are 12, 13, 14, 15 -- only upgrades are allowed!

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param projectId Project ID
@param instanceId Instance ID
@return ApiUpdateInstanceRequest

func (*APIClient) UpdateInstanceExecute added in v0.15.0

func (a *APIClient) UpdateInstanceExecute(ctx context.Context, projectId string, instanceId string) (*PartialUpdateInstanceResponse, error)

func (*APIClient) UpdateUser added in v0.9.0

func (a *APIClient) UpdateUser(ctx context.Context, projectId string, instanceId string, userId string) ApiUpdateUserRequest

UpdateUser Update User

Update user for an instance. Only the roles are updatable.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param projectId The ID of the project
@param instanceId The ID of the instance
@param userId The ID of the user in the database
@return ApiUpdateUserRequest

func (*APIClient) UpdateUserExecute added in v0.9.0

func (a *APIClient) UpdateUserExecute(ctx context.Context, projectId string, instanceId string, userId string) error

type ApiCloneInstanceRequest added in v0.10.0

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

func (ApiCloneInstanceRequest) CloneInstancePayload added in v0.10.0

func (r ApiCloneInstanceRequest) CloneInstancePayload(cloneInstancePayload CloneInstancePayload) ApiCloneInstanceRequest

func (ApiCloneInstanceRequest) Execute added in v0.10.0

type ApiConfiguration added in v0.11.0

type ApiConfiguration struct {
	Name    *string `json:"name,omitempty"`
	Setting *string `json:"setting,omitempty"`
}

type ApiCreateDatabaseRequest added in v0.15.0

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

func (ApiCreateDatabaseRequest) CreateDatabasePayload added in v0.15.0

func (r ApiCreateDatabaseRequest) CreateDatabasePayload(createDatabasePayload CreateDatabasePayload) ApiCreateDatabaseRequest

func (ApiCreateDatabaseRequest) Execute added in v0.15.0

type ApiCreateInstanceRequest

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

func (ApiCreateInstanceRequest) CreateInstancePayload

func (r ApiCreateInstanceRequest) CreateInstancePayload(createInstancePayload CreateInstancePayload) ApiCreateInstanceRequest

func (ApiCreateInstanceRequest) Execute

type ApiCreateUserRequest

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

func (ApiCreateUserRequest) CreateUserPayload

func (r ApiCreateUserRequest) CreateUserPayload(createUserPayload CreateUserPayload) ApiCreateUserRequest

func (ApiCreateUserRequest) Execute

type ApiDeleteDatabaseRequest added in v0.15.0

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

func (ApiDeleteDatabaseRequest) Execute added in v0.15.0

func (r ApiDeleteDatabaseRequest) Execute() error

type ApiDeleteInstanceRequest

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

func (ApiDeleteInstanceRequest) Execute

func (r ApiDeleteInstanceRequest) Execute() error

type ApiDeleteUserRequest

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

func (ApiDeleteUserRequest) Execute

func (r ApiDeleteUserRequest) Execute() error

type ApiDisableServiceRequest added in v0.15.0

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

func (ApiDisableServiceRequest) Execute added in v0.15.0

func (r ApiDisableServiceRequest) Execute() error

type ApiExtensionConfigLoadResponse added in v0.11.0

type ApiExtensionConfigLoadResponse struct {
	// Returns marshalled JSON of the new configuration of whatever extension is called
	Configuration *[]ApiConfiguration `json:"configuration,omitempty"`
}

type ApiExtensionConfigureResponse added in v0.11.0

type ApiExtensionConfigureResponse struct {
	// Returns marshalled JSON of the new configuration of whatever extension is called
	Configuration *[]ApiConfiguration `json:"configuration,omitempty"`
}

type ApiExtensionDeleteResponse added in v0.11.0

type ApiExtensionDeleteResponse struct {
	IsSucceded *bool `json:"isSucceded,omitempty"`
}

type ApiExtensionList added in v0.11.0

type ApiExtensionList struct {
	ID          *int64  `json:"ID,omitempty"`
	Description *string `json:"description,omitempty"`
	Name        *string `json:"name,omitempty"`
}

type ApiExtensionLoadResponse added in v0.11.0

type ApiExtensionLoadResponse struct {
	Extension *ApiExtensionList `json:"extension,omitempty"`
}

type ApiForceDeleteInstanceRequest added in v0.11.0

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

func (ApiForceDeleteInstanceRequest) Execute added in v0.11.0

type ApiGetBackupRequest

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

func (ApiGetBackupRequest) Execute

type ApiGetInstanceRequest

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

func (ApiGetInstanceRequest) Execute

type ApiGetUserRequest

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

func (ApiGetUserRequest) Execute

func (r ApiGetUserRequest) Execute() (*GetUserResponse, error)

type ApiInstallResponse added in v0.11.0

type ApiInstallResponse struct {
	Extension *ApiExtensionList `json:"extension,omitempty"`
}

type ApiInstalledListResponse added in v0.11.0

type ApiInstalledListResponse struct {
	Installed *[]ApiExtensionList `json:"installed,omitempty"`
}

type ApiListBackupsRequest

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

func (ApiListBackupsRequest) Execute

type ApiListDatabaseParametersRequest added in v0.15.0

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

func (ApiListDatabaseParametersRequest) Execute added in v0.15.0

type ApiListDatabasesRequest added in v0.15.0

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

func (ApiListDatabasesRequest) Execute added in v0.15.0

type ApiListFlavorsRequest

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

func (ApiListFlavorsRequest) Execute

type ApiListInstancesRequest

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

func (ApiListInstancesRequest) Execute

type ApiListMetricsRequest added in v0.15.0

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

func (ApiListMetricsRequest) End added in v0.15.0

func (ApiListMetricsRequest) Execute added in v0.15.0

func (ApiListMetricsRequest) Granularity added in v0.15.0

func (r ApiListMetricsRequest) Granularity(granularity string) ApiListMetricsRequest

func (ApiListMetricsRequest) Period added in v0.15.0

func (ApiListMetricsRequest) Start added in v0.15.0

type ApiListStoragesRequest

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

func (ApiListStoragesRequest) Execute

type ApiListUsersRequest

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

func (ApiListUsersRequest) Execute

type ApiListVersionsRequest

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

func (ApiListVersionsRequest) Execute

func (ApiListVersionsRequest) InstanceId

func (r ApiListVersionsRequest) InstanceId(instanceId string) ApiListVersionsRequest

type ApiPartialUpdateInstanceRequest

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

func (ApiPartialUpdateInstanceRequest) Execute

func (ApiPartialUpdateInstanceRequest) PartialUpdateInstancePayload

func (r ApiPartialUpdateInstanceRequest) PartialUpdateInstancePayload(partialUpdateInstancePayload PartialUpdateInstancePayload) ApiPartialUpdateInstanceRequest

type ApiPartialUpdateUserRequest added in v0.9.0

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

func (ApiPartialUpdateUserRequest) Execute added in v0.9.0

func (r ApiPartialUpdateUserRequest) Execute() error

func (ApiPartialUpdateUserRequest) PartialUpdateUserPayload added in v0.9.0

func (r ApiPartialUpdateUserRequest) PartialUpdateUserPayload(partialUpdateUserPayload PartialUpdateUserPayload) ApiPartialUpdateUserRequest

type ApiResetUserRequest added in v0.9.0

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

func (ApiResetUserRequest) Execute added in v0.9.0

type ApiUpdateBackupScheduleRequest

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

func (ApiUpdateBackupScheduleRequest) Execute

func (ApiUpdateBackupScheduleRequest) UpdateBackupSchedulePayload

func (r ApiUpdateBackupScheduleRequest) UpdateBackupSchedulePayload(updateBackupSchedulePayload UpdateBackupSchedulePayload) ApiUpdateBackupScheduleRequest

type ApiUpdateInstanceRequest added in v0.15.0

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

func (ApiUpdateInstanceRequest) Execute added in v0.15.0

func (ApiUpdateInstanceRequest) UpdateInstancePayload added in v0.15.0

func (r ApiUpdateInstanceRequest) UpdateInstancePayload(updateInstancePayload UpdateInstancePayload) ApiUpdateInstanceRequest

type ApiUpdateUserRequest added in v0.9.0

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

func (ApiUpdateUserRequest) Execute added in v0.9.0

func (r ApiUpdateUserRequest) Execute() error

func (ApiUpdateUserRequest) UpdateUserPayload added in v0.9.0

func (r ApiUpdateUserRequest) UpdateUserPayload(updateUserPayload UpdateUserPayload) ApiUpdateUserRequest

type Backup

type Backup struct {
	EndTime   *string            `json:"endTime,omitempty"`
	Error     *string            `json:"error,omitempty"`
	Id        *string            `json:"id,omitempty"`
	Labels    *[]string          `json:"labels,omitempty"`
	Name      *string            `json:"name,omitempty"`
	Options   *map[string]string `json:"options,omitempty"`
	Size      *int64             `json:"size,omitempty"`
	StartTime *string            `json:"startTime,omitempty"`
}

type CloneInstancePayload added in v0.10.0

type CloneInstancePayload struct {
	Class *string `json:"class,omitempty"`
	Size  *int64  `json:"size,omitempty"`
	// The timestamp should be specified in UTC time following the format provided in the example.
	Timestamp *string `json:"timestamp,omitempty"`
}

type CloneInstanceResponse added in v0.10.0

type CloneInstanceResponse struct {
	InstanceId *string `json:"instanceId,omitempty"`
}

type CreateDatabasePayload added in v0.15.0

type CreateDatabasePayload struct {
	Name *string `json:"name,omitempty"`
	// Database specific options
	Options *map[string]string `json:"options,omitempty"`
}

type CreateInstancePayload

type CreateInstancePayload struct {
	// REQUIRED
	Acl *ACL `json:"acl"`
	// REQUIRED
	BackupSchedule *string `json:"backupSchedule"`
	// REQUIRED
	FlavorId *string `json:"flavorId"`
	// Labels field is not certain/clear
	Labels *map[string]string `json:"labels,omitempty"`
	// REQUIRED
	Name *string `json:"name"`
	// REQUIRED
	Options *map[string]string `json:"options"`
	// REQUIRED
	Replicas *int64 `json:"replicas"`
	// REQUIRED
	Storage *Storage `json:"storage"`
	// REQUIRED
	Version *string `json:"version"`
}

type CreateInstanceResponse

type CreateInstanceResponse struct {
	Id *string `json:"id,omitempty"`
}

type CreateUserPayload

type CreateUserPayload struct {
	Roles    *[]string `json:"roles,omitempty"`
	Username *string   `json:"username,omitempty"`
}

type CreateUserResponse

type CreateUserResponse struct {
	Item *User `json:"item,omitempty"`
}

type DefaultApiService

type DefaultApiService service

DefaultApiService DefaultApi service

type Error

type Error struct {
	Code    *int64               `json:"code,omitempty"`
	Fields  *map[string][]string `json:"fields,omitempty"`
	Message *string              `json:"message,omitempty"`
	Type    *string              `json:"type,omitempty"`
}

type ExtensionsConfiguration added in v0.11.0

type ExtensionsConfiguration struct {
	Name    *string `json:"name,omitempty"`
	Setting *string `json:"setting,omitempty"`
}

type ExtensionsExtensionListResponse added in v0.11.0

type ExtensionsExtensionListResponse struct {
	List *[]ApiExtensionList `json:"list,omitempty"`
}

type ExtensionsNewConfig added in v0.11.0

type ExtensionsNewConfig struct {
	Configuration *[]ExtensionsConfiguration `json:"configuration,omitempty"`
}

type Flavor

type Flavor struct {
	Cpu         *int64  `json:"cpu,omitempty"`
	Description *string `json:"description,omitempty"`
	Id          *string `json:"id,omitempty"`
	Memory      *int64  `json:"memory,omitempty"`
}

type GetBackupResponse

type GetBackupResponse struct {
	Item *Backup `json:"item,omitempty"`
}

type GetUserResponse

type GetUserResponse struct {
	Item *UserResponse `json:"item,omitempty"`
}

type Instance

type Instance struct {
	Acl            *ACL               `json:"acl,omitempty"`
	BackupSchedule *string            `json:"backupSchedule,omitempty"`
	Flavor         *Flavor            `json:"flavor,omitempty"`
	Id             *string            `json:"id,omitempty"`
	Name           *string            `json:"name,omitempty"`
	Options        *map[string]string `json:"options,omitempty"`
	Replicas       *int64             `json:"replicas,omitempty"`
	Status         *string            `json:"status,omitempty"`
	Storage        *Storage           `json:"storage,omitempty"`
	Version        *string            `json:"version,omitempty"`
}

type InstanceCreateDatabaseResponse added in v0.8.5

type InstanceCreateDatabaseResponse struct {
	Id *string `json:"id,omitempty"`
}

type InstanceDataPoint

type InstanceDataPoint struct {
	Timestamp *string  `json:"timestamp,omitempty"`
	Value     *float64 `json:"value,omitempty"`
}

type InstanceDatabase added in v0.8.5

type InstanceDatabase struct {
	Id   *string `json:"id,omitempty"`
	Name *string `json:"name,omitempty"`
	// Database specific options
	Options *map[string]interface{} `json:"options,omitempty"`
}

type InstanceHost

type InstanceHost struct {
	HostMetrics *[]InstanceHostMetric `json:"hostMetrics,omitempty"`
	Id          *string               `json:"id,omitempty"`
}

type InstanceHostMetric

type InstanceHostMetric struct {
	Datapoints *[]InstanceDataPoint `json:"datapoints,omitempty"`
	Name       *string              `json:"name,omitempty"`
	Units      *string              `json:"units,omitempty"`
}

type InstanceListDatabasesResponse added in v0.8.5

type InstanceListDatabasesResponse struct {
	Databases *[]InstanceDatabase `json:"databases,omitempty"`
}

type InstanceListInstance

type InstanceListInstance struct {
	Id     *string `json:"id,omitempty"`
	Name   *string `json:"name,omitempty"`
	Status *string `json:"status,omitempty"`
}

type InstanceMetricsResponse

type InstanceMetricsResponse struct {
	Hosts *[]InstanceHost `json:"hosts,omitempty"`
}

type InstanceResponse

type InstanceResponse struct {
	Item *Instance `json:"item,omitempty"`
}

type ListBackupsResponse

type ListBackupsResponse struct {
	Count *int64    `json:"count,omitempty"`
	Items *[]Backup `json:"items,omitempty"`
}

type ListFlavorsResponse

type ListFlavorsResponse struct {
	Flavors *[]Flavor `json:"flavors,omitempty"`
}

type ListInstancesResponse

type ListInstancesResponse struct {
	Count *int64                  `json:"count,omitempty"`
	Items *[]InstanceListInstance `json:"items,omitempty"`
}

type ListStoragesResponse

type ListStoragesResponse struct {
	StorageClasses *[]string     `json:"storageClasses,omitempty"`
	StorageRange   *StorageRange `json:"storageRange,omitempty"`
}

type ListUsersResponse

type ListUsersResponse struct {
	Count *int64                   `json:"count,omitempty"`
	Items *[]ListUsersResponseItem `json:"items,omitempty"`
}

type ListUsersResponseItem

type ListUsersResponseItem struct {
	Id       *string `json:"id,omitempty"`
	Username *string `json:"username,omitempty"`
}

type ListVersionsResponse

type ListVersionsResponse struct {
	Versions *[]string `json:"versions,omitempty"`
}

type MappedNullable

type MappedNullable interface {
	ToMap() (map[string]interface{}, error)
}

type NullableBool

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

func NewNullableBool

func NewNullableBool(val *bool) *NullableBool

func (NullableBool) Get

func (v NullableBool) Get() *bool

func (NullableBool) IsSet

func (v NullableBool) IsSet() bool

func (NullableBool) MarshalJSON

func (v NullableBool) MarshalJSON() ([]byte, error)

func (*NullableBool) Set

func (v *NullableBool) Set(val *bool)

func (*NullableBool) UnmarshalJSON

func (v *NullableBool) UnmarshalJSON(src []byte) error

func (*NullableBool) Unset

func (v *NullableBool) Unset()

type NullableFloat32

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

func NewNullableFloat32

func NewNullableFloat32(val *float32) *NullableFloat32

func (NullableFloat32) Get

func (v NullableFloat32) Get() *float32

func (NullableFloat32) IsSet

func (v NullableFloat32) IsSet() bool

func (NullableFloat32) MarshalJSON

func (v NullableFloat32) MarshalJSON() ([]byte, error)

func (*NullableFloat32) Set

func (v *NullableFloat32) Set(val *float32)

func (*NullableFloat32) UnmarshalJSON

func (v *NullableFloat32) UnmarshalJSON(src []byte) error

func (*NullableFloat32) Unset

func (v *NullableFloat32) Unset()

type NullableFloat64

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

func NewNullableFloat64

func NewNullableFloat64(val *float64) *NullableFloat64

func (NullableFloat64) Get

func (v NullableFloat64) Get() *float64

func (NullableFloat64) IsSet

func (v NullableFloat64) IsSet() bool

func (NullableFloat64) MarshalJSON

func (v NullableFloat64) MarshalJSON() ([]byte, error)

func (*NullableFloat64) Set

func (v *NullableFloat64) Set(val *float64)

func (*NullableFloat64) UnmarshalJSON

func (v *NullableFloat64) UnmarshalJSON(src []byte) error

func (*NullableFloat64) Unset

func (v *NullableFloat64) Unset()

type NullableInt

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

func NewNullableInt

func NewNullableInt(val *int) *NullableInt

func (NullableInt) Get

func (v NullableInt) Get() *int

func (NullableInt) IsSet

func (v NullableInt) IsSet() bool

func (NullableInt) MarshalJSON

func (v NullableInt) MarshalJSON() ([]byte, error)

func (*NullableInt) Set

func (v *NullableInt) Set(val *int)

func (*NullableInt) UnmarshalJSON

func (v *NullableInt) UnmarshalJSON(src []byte) error

func (*NullableInt) Unset

func (v *NullableInt) Unset()

type NullableInt32

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

func NewNullableInt32

func NewNullableInt32(val *int32) *NullableInt32

func (NullableInt32) Get

func (v NullableInt32) Get() *int32

func (NullableInt32) IsSet

func (v NullableInt32) IsSet() bool

func (NullableInt32) MarshalJSON

func (v NullableInt32) MarshalJSON() ([]byte, error)

func (*NullableInt32) Set

func (v *NullableInt32) Set(val *int32)

func (*NullableInt32) UnmarshalJSON

func (v *NullableInt32) UnmarshalJSON(src []byte) error

func (*NullableInt32) Unset

func (v *NullableInt32) Unset()

type NullableInt64

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

func NewNullableInt64

func NewNullableInt64(val *int64) *NullableInt64

func (NullableInt64) Get

func (v NullableInt64) Get() *int64

func (NullableInt64) IsSet

func (v NullableInt64) IsSet() bool

func (NullableInt64) MarshalJSON

func (v NullableInt64) MarshalJSON() ([]byte, error)

func (*NullableInt64) Set

func (v *NullableInt64) Set(val *int64)

func (*NullableInt64) UnmarshalJSON

func (v *NullableInt64) UnmarshalJSON(src []byte) error

func (*NullableInt64) Unset

func (v *NullableInt64) Unset()

type NullableString

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

func NewNullableString

func NewNullableString(val *string) *NullableString

func (NullableString) Get

func (v NullableString) Get() *string

func (NullableString) IsSet

func (v NullableString) IsSet() bool

func (NullableString) MarshalJSON

func (v NullableString) MarshalJSON() ([]byte, error)

func (*NullableString) Set

func (v *NullableString) Set(val *string)

func (*NullableString) UnmarshalJSON

func (v *NullableString) UnmarshalJSON(src []byte) error

func (*NullableString) Unset

func (v *NullableString) Unset()

type NullableTime

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

func NewNullableTime

func NewNullableTime(val *time.Time) *NullableTime

func (NullableTime) Get

func (v NullableTime) Get() *time.Time

func (NullableTime) IsSet

func (v NullableTime) IsSet() bool

func (NullableTime) MarshalJSON

func (v NullableTime) MarshalJSON() ([]byte, error)

func (*NullableTime) Set

func (v *NullableTime) Set(val *time.Time)

func (*NullableTime) UnmarshalJSON

func (v *NullableTime) UnmarshalJSON(src []byte) error

func (*NullableTime) Unset

func (v *NullableTime) Unset()

type PartialUpdateInstancePayload

type PartialUpdateInstancePayload struct {
	Acl            *ACL    `json:"acl,omitempty"`
	BackupSchedule *string `json:"backupSchedule,omitempty"`
	FlavorId       *string `json:"flavorId,omitempty"`
	// Labels field is not certain/clear
	Labels   *map[string]string `json:"labels,omitempty"`
	Name     *string            `json:"name,omitempty"`
	Options  *map[string]string `json:"options,omitempty"`
	Replicas *int64             `json:"replicas,omitempty"`
	Storage  *Storage           `json:"storage,omitempty"`
	Version  *string            `json:"version,omitempty"`
}

type PartialUpdateInstanceResponse

type PartialUpdateInstanceResponse struct {
	Item *Instance `json:"item,omitempty"`
}

type PartialUpdateUserPayload added in v0.9.0

type PartialUpdateUserPayload struct {
	Database *string   `json:"database,omitempty"`
	Roles    *[]string `json:"roles,omitempty"`
}

type PostgresDatabaseParameter added in v0.11.0

type PostgresDatabaseParameter struct {
	// Context of the parameter.
	Context *string `json:"context,omitempty"`
	// Datatype describes the type of data that is used in the Value field.
	DataType *string `json:"dataType,omitempty"`
	// DefaultValue for the value field.
	DefaultValue *string `json:"defaultValue,omitempty"`
	// Description of the parameter.
	Description *string `json:"description,omitempty"`
	// Edit shows if the user can change this value.
	Edit *bool `json:"edit,omitempty"`
	// MaxValue describes the highest possible value that can be set.
	MaxValue *string `json:"maxValue,omitempty"`
	// MinValue describes the lowest possible value that can be set.
	MinValue *string `json:"minValue,omitempty"`
	// Name of the parameter.
	Name *string `json:"name,omitempty"`
	// PendingRestart describes if a parameter change requires a restart of the server.
	PendingRestart *bool `json:"pendingRestart,omitempty"`
	// ResetValue for the value field af.ter a reset.
	ResetValue *string `json:"resetValue,omitempty"`
	// Unit if the parameter has a unit if not empty.
	Unit *string `json:"unit,omitempty"`
	// Value of this parameter.
	Value *string `json:"value,omitempty"`
}

type PostgresDatabaseParameterResponse added in v0.11.0

type PostgresDatabaseParameterResponse struct {
	// List of the parameter
	Parameter *[]PostgresDatabaseParameter `json:"parameter,omitempty"`
}

type ResetUserResponse

type ResetUserResponse struct {
	Item *User `json:"item,omitempty"`
}

type Storage

type Storage struct {
	Class *string `json:"class,omitempty"`
	Size  *int64  `json:"size,omitempty"`
}

type StorageRange

type StorageRange struct {
	Max *int64 `json:"max,omitempty"`
	Min *int64 `json:"min,omitempty"`
}

type UpdateBackupSchedulePayload

type UpdateBackupSchedulePayload struct {
	// REQUIRED
	BackupSchedule *string `json:"backupSchedule"`
}

type UpdateInstancePayload added in v0.15.0

type UpdateInstancePayload struct {
	Acl            *ACL    `json:"acl,omitempty"`
	BackupSchedule *string `json:"backupSchedule,omitempty"`
	FlavorId       *string `json:"flavorId,omitempty"`
	// Labels field is not certain/clear
	Labels   *map[string]string `json:"labels,omitempty"`
	Name     *string            `json:"name,omitempty"`
	Options  *map[string]string `json:"options,omitempty"`
	Replicas *int64             `json:"replicas,omitempty"`
	Storage  *Storage           `json:"storage,omitempty"`
	Version  *string            `json:"version,omitempty"`
}

type UpdateUserPayload added in v0.9.0

type UpdateUserPayload struct {
	Database *string   `json:"database,omitempty"`
	Roles    *[]string `json:"roles,omitempty"`
}

type User

type User struct {
	Database *string   `json:"database,omitempty"`
	Host     *string   `json:"host,omitempty"`
	Id       *string   `json:"id,omitempty"`
	Password *string   `json:"password,omitempty"`
	Port     *int64    `json:"port,omitempty"`
	Roles    *[]string `json:"roles,omitempty"`
	Uri      *string   `json:"uri,omitempty"`
	Username *string   `json:"username,omitempty"`
}

type UserResponse

type UserResponse struct {
	Host     *string   `json:"host,omitempty"`
	Id       *string   `json:"id,omitempty"`
	Port     *int64    `json:"port,omitempty"`
	Roles    *[]string `json:"roles,omitempty"`
	Username *string   `json:"username,omitempty"`
}

Source Files

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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