psql

package module
v2.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: Apache-2.0 Imports: 26 Imported by: 1

README

Go API client for psql

An enterprise-grade Database is provided as a Service (DBaaS) solution that can be managed through a browser-based "Data Center Designer" (DCD) tool or via an easy to use API.

The API allows you to create additional PostgreSQL database clusters or modify existing ones. It is designed to allow users to leverage the same power and flexibility found within the DCD visual tool. Both tools are consistent with their concepts and lend well to making the experience smooth and intuitive.

Overview

The IONOS Cloud SDK for GO provides you with access to the IONOS Cloud API. The client library supports both simple and complex requests. It is designed for developers who are building applications in GO . The SDK for GO wraps the IONOS Cloud API. All API operations are performed over SSL and authenticated using your IONOS Cloud portal credentials. The API can be accessed within an instance running in IONOS Cloud or directly over the Internet from any application that can send an HTTPS request and receive an HTTPS response.

Installing

Use go get to retrieve the SDK to add it to your GOPATH workspace, or project's Go module dependencies.
go get github.com/ionos-cloud/sdk-go-bundle/products/dbaas/psql.git

To update the SDK use go get -u to retrieve the latest version of the SDK.

go get -u github.com/ionos-cloud/sdk-go-bundle/products/dbaas/psql.git
Go Modules

If you are using Go modules, your go get will default to the latest tagged release version of the SDK. To get a specific release version of the SDK use @ in your go get command.

To get the latest SDK repository, use @latest.

go get github.com/ionos-cloud/sdk-go-bundle/products/dbaas/psql@latest

Environment Variables

Environment Variable Description
IONOS_USERNAME Specify the username used to login, to authenticate against the IONOS Cloud API
IONOS_PASSWORD Specify the password used to login, to authenticate against the IONOS Cloud API
IONOS_TOKEN Specify the token used to login, if a token is being used instead of username and password
IONOS_API_URL Specify the API URL. It will overwrite the API endpoint default value api.ionos.com. Note: the host URL does not contain the /cloudapi/v6 path, so it should not be included in the IONOS_API_URL environment variable
IONOS_LOG_LEVEL Specify the Log Level used to log messages. Possible values: Off, Debug, Trace
IONOS_PINNED_CERT Specify the SHA-256 public fingerprint here, enables certificate pinning

⚠️ Note: To overwrite the api endpoint - api.ionos.com, the environment variable IONOS_API_URL can be set, and used with NewConfigurationFromEnv() function.

Examples

Examples for creating resources using the Go SDK can be found here

Authentication

All available server URLs are:

By default, https://api.ionos.com/databases/postgresql is used, however this can be overriden at authentication, either by setting the IONOS_API_URL environment variable or by specifying the hostUrl parameter when initializing the sdk client.

Basic Authentication
  • Type: HTTP basic authentication

Example

import (
	"context"
	"fmt"
	"github.com/ionos-cloud/sdk-go-bundle/shared"
	psql "github.com/ionos-cloud/sdk-go-bundle/products/dbaas/psql"
	"log"
)

func basicAuthExample() error {
	cfg := shared.NewConfiguration("username_here", "pwd_here", "", "hostUrl_here")
	cfg.LogLevel = Trace
	apiClient := psql.NewAPIClient(cfg)
	return nil
}
Token Authentication

There are 2 ways to generate your token:

Generate token using sdk for auth:
    import (
        "context"
        "fmt"
        "github.com/ionos-cloud/sdk-go-bundle/products/auth"
        "github.com/ionos-cloud/sdk-go-bundle/shared"
        psql "github.com/ionos-cloud/sdk-go-bundle/products/dbaas/psql"
        "log"
    )

    func TokenAuthExample() error {
        //note: to use NewConfigurationFromEnv(), you need to previously set IONOS_USERNAME and IONOS_PASSWORD as env variables
        authClient := auth.NewAPIClient(authApi.NewConfigurationFromEnv())
        jwt, _, err := auth.TokensApi.TokensGenerate(context.Background()).Execute()
        if err != nil {
            return fmt.Errorf("error occurred while generating token (%w)", err)
        }
        if !jwt.HasToken() {
            return fmt.Errorf("could not generate token")
        }
        cfg := shared.NewConfiguration("", "", *jwt.GetToken(), "hostUrl_here")
        cfg.LogLevel = Trace
        apiClient := psql.NewAPIClient(cfg)
        return nil
    }
Generate token using ionosctl:

Install ionosctl as explained here Run commands to login and generate your token.

    ionosctl login
    ionosctl token generate
    export IONOS_TOKEN="insert_here_token_saved_from_generate_command"

Save the generated token and use it to authenticate:

    import (
        "context"
        "fmt"
        "github.com/ionos-cloud/sdk-go-bundle/products/auth"
         psql "github.com/ionos-cloud/sdk-go-bundle/products/dbaas/psql"
        "log"
    )

    func TokenAuthExample() error {
        //note: to use NewConfigurationFromEnv(), you need to previously set IONOS_TOKEN as env variables
        authClient := auth.NewAPIClient(authApi.NewConfigurationFromEnv())
        cfg.LogLevel = Trace
        apiClient := psql.NewAPIClient(cfg)
        return nil
    }

Certificate pinning:

You can enable certificate pinning if you want to bypass the normal certificate checking procedure, by doing the following:

Set env variable IONOS_PINNED_CERT=<insert_sha256_public_fingerprint_here>

You can get the sha256 fingerprint most easily from the browser by inspecting the certificate.

Depth

Many of the List or Get operations will accept an optional depth argument. Setting this to a value between 0 and 5 affects the amount of data that is returned. The details returned vary depending on the resource being queried, but it generally follows this pattern. By default, the SDK sets the depth argument to the maximum value.

Depth Description
0 Only direct properties are included. Children are not included.
1 Direct properties and children's references are returned.
2 Direct properties and children's properties are returned.
3 Direct properties, children's properties, and descendants' references are returned.
4 Direct properties, children's properties, and descendants' properties are returned.
5 Returns all available properties.
Changing the base URL

Base URL for the HTTP operation can be changed by using the following function:

requestProperties.SetURL("https://api.ionos.com/cloudapi/v6")

Debugging

You can inject any logger that implements Printf as a logger instead of using the default sdk logger. There are log levels that you can set: Off, Debug and Trace. Off - does not show any logs Debug - regular logs, no sensitive information Trace - we recommend you only set this field for debugging purposes. Disable it in your production environments because it can log sensitive data. It logs the full request and response without encryption, even for an HTTPS call. Verbose request and response logging can also significantly impact your application's performance.

package main

    import (
        psql "github.com/ionos-cloud/sdk-go-bundle/products/dbaas/psql"
        "github.com/ionos-cloud/sdk-go-bundle/shared"
        "github.com/sirupsen/logrus"
    )

func main() {
    // create your configuration. replace username, password, token and url with correct values, or use NewConfigurationFromEnv()
    // if you have set your env variables as explained above
    cfg := shared.NewConfiguration("username", "password", "token", "hostUrl")
    // enable request and response logging. this is the most verbose loglevel
    shared.SdkLogLevel = Trace
    // inject your own logger that implements Printf
    shared.SdkLogger = logrus.New()
    // create you api client with the configuration
    apiClient := psql.NewAPIClient(cfg)
}

Documentation for API Endpoints

All URIs are relative to https://api.ionos.com/databases/postgresql

API Endpoints table
Class Method HTTP request Description
BackupsApi ClusterBackupsGet Get /clusters/{clusterId}/backups List backups of cluster
BackupsApi ClustersBackupsFindById Get /clusters/backups/{backupId} Fetch a cluster backup
BackupsApi ClustersBackupsGet Get /clusters/backups List cluster backups
ClustersApi ClusterPostgresVersionsGet Get /clusters/{clusterId}/postgresversions List PostgreSQL versions
ClustersApi ClustersDelete Delete /clusters/{clusterId} Delete a cluster
ClustersApi ClustersFindById Get /clusters/{clusterId} Fetch a cluster
ClustersApi ClustersGet Get /clusters List clusters
ClustersApi ClustersPatch Patch /clusters/{clusterId} Patch a cluster
ClustersApi ClustersPost Post /clusters Create a cluster
ClustersApi PostgresVersionsGet Get /clusters/postgresversions List PostgreSQL versions
DatabasesApi DatabasesDelete Delete /clusters/{clusterId}/databases/{databasename} Delete database
DatabasesApi DatabasesGet Get /clusters/{clusterId}/databases/{databasename} Get database
DatabasesApi DatabasesList Get /clusters/{clusterId}/databases List databases
DatabasesApi DatabasesPost Post /clusters/{clusterId}/databases Create a database
LogsApi ClusterLogsGet Get /clusters/{clusterId}/logs Get logs of your cluster
MetadataApi InfosVersionGet Get /infos/version Get the current API version
MetadataApi InfosVersionsGet Get /infos/versions Fetch all API versions
RestoresApi ClusterRestorePost Post /clusters/{clusterId}/restore In-place restore of a cluster
UsersApi UsersDelete Delete /clusters/{clusterId}/users/{username} Delete user
UsersApi UsersGet Get /clusters/{clusterId}/users/{username} Get user
UsersApi UsersList Get /clusters/{clusterId}/users List users
UsersApi UsersPatch Patch /clusters/{clusterId}/users/{username} Patch user
UsersApi UsersPost Post /clusters/{clusterId}/users Create a user

Documentation For Models

All URIs are relative to https://api.ionos.com/databases/postgresql

API models list

[Back to API list] [Back to Model list]

Documentation

Index

Constants

View Source
const (
	RequestStatusQueued  = "QUEUED"
	RequestStatusRunning = "RUNNING"
	RequestStatusFailed  = "FAILED"
	RequestStatusDone    = "DONE"

	Version = "products/dbaas/psql/v2.0.2"
)

Variables

This section is empty.

Functions

func AddPinnedCert

func AddPinnedCert(transport *http.Transport, pkFingerprint string)

AddPinnedCert - enables pinning of the sha256 public fingerprint to the http client's transport

func CacheExpires

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

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

func DeepCopy added in v2.0.2

func DeepCopy(cfg *shared.Configuration) (*shared.Configuration, error)

func IsNil

func IsNil(i interface{}) bool

IsNil checks if an input is nil

func IsZero

func IsZero(v interface{}) bool

Types

type APIClient

type APIClient struct {
	BackupsApi *BackupsApiService

	ClustersApi *ClustersApiService

	DatabasesApi *DatabasesApiService

	LogsApi *LogsApiService

	MetadataApi *MetadataApiService

	RestoresApi *RestoresApiService

	UsersApi *UsersApiService
	// contains filtered or unexported fields
}

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

func NewAPIClient

func NewAPIClient(cfg *shared.Configuration) *APIClient

NewAPIClient creates a new API client. Requires a userAgent string describing your application. optionally a custom http.Client to allow for advanced features such as caching.

func (*APIClient) GetConfig

func (c *APIClient) GetConfig() *shared.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

type APIVersion

type APIVersion struct {
	Name       *string `json:"name,omitempty"`
	SwaggerUrl *string `json:"swaggerUrl,omitempty"`
}

APIVersion struct for APIVersion

func NewAPIVersion

func NewAPIVersion() *APIVersion

NewAPIVersion instantiates a new APIVersion object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewAPIVersionWithDefaults

func NewAPIVersionWithDefaults() *APIVersion

NewAPIVersionWithDefaults instantiates a new APIVersion object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*APIVersion) GetName

func (o *APIVersion) GetName() string

GetName returns the Name field value if set, zero value otherwise.

func (*APIVersion) GetNameOk

func (o *APIVersion) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.

func (*APIVersion) GetSwaggerUrl

func (o *APIVersion) GetSwaggerUrl() string

GetSwaggerUrl returns the SwaggerUrl field value if set, zero value otherwise.

func (*APIVersion) GetSwaggerUrlOk

func (o *APIVersion) GetSwaggerUrlOk() (*string, bool)

GetSwaggerUrlOk returns a tuple with the SwaggerUrl field value if set, nil otherwise and a boolean to check if the value has been set.

func (*APIVersion) HasName

func (o *APIVersion) HasName() bool

HasName returns a boolean if a field has been set.

func (*APIVersion) HasSwaggerUrl

func (o *APIVersion) HasSwaggerUrl() bool

HasSwaggerUrl returns a boolean if a field has been set.

func (*APIVersion) SetName

func (o *APIVersion) SetName(v string)

SetName gets a reference to the given string and assigns it to the Name field.

func (*APIVersion) SetSwaggerUrl

func (o *APIVersion) SetSwaggerUrl(v string)

SetSwaggerUrl gets a reference to the given string and assigns it to the SwaggerUrl field.

func (APIVersion) ToMap

func (o APIVersion) ToMap() (map[string]interface{}, error)

type ApiClusterBackupsGetRequest

type ApiClusterBackupsGetRequest struct {
	ApiService *BackupsApiService
	// contains filtered or unexported fields
}

func (ApiClusterBackupsGetRequest) Execute

func (ApiClusterBackupsGetRequest) Limit

func (ApiClusterBackupsGetRequest) Offset

type ApiClusterLogsGetRequest

type ApiClusterLogsGetRequest struct {
	ApiService *LogsApiService
	// contains filtered or unexported fields
}

func (ApiClusterLogsGetRequest) Direction

func (ApiClusterLogsGetRequest) End

func (ApiClusterLogsGetRequest) Execute

func (ApiClusterLogsGetRequest) Limit

func (ApiClusterLogsGetRequest) Start

type ApiClusterPostgresVersionsGetRequest

type ApiClusterPostgresVersionsGetRequest struct {
	ApiService *ClustersApiService
	// contains filtered or unexported fields
}

func (ApiClusterPostgresVersionsGetRequest) Execute

type ApiClusterRestorePostRequest

type ApiClusterRestorePostRequest struct {
	ApiService *RestoresApiService
	// contains filtered or unexported fields
}

func (ApiClusterRestorePostRequest) CreateRestoreRequest

func (r ApiClusterRestorePostRequest) CreateRestoreRequest(createRestoreRequest CreateRestoreRequest) ApiClusterRestorePostRequest

func (ApiClusterRestorePostRequest) Execute

type ApiClustersBackupsFindByIdRequest

type ApiClustersBackupsFindByIdRequest struct {
	ApiService *BackupsApiService
	// contains filtered or unexported fields
}

func (ApiClustersBackupsFindByIdRequest) Execute

type ApiClustersBackupsGetRequest

type ApiClustersBackupsGetRequest struct {
	ApiService *BackupsApiService
	// contains filtered or unexported fields
}

func (ApiClustersBackupsGetRequest) Execute

func (ApiClustersBackupsGetRequest) Limit

func (ApiClustersBackupsGetRequest) Offset

type ApiClustersDeleteRequest

type ApiClustersDeleteRequest struct {
	ApiService *ClustersApiService
	// contains filtered or unexported fields
}

func (ApiClustersDeleteRequest) Execute

type ApiClustersFindByIdRequest

type ApiClustersFindByIdRequest struct {
	ApiService *ClustersApiService
	// contains filtered or unexported fields
}

func (ApiClustersFindByIdRequest) Execute

type ApiClustersGetRequest

type ApiClustersGetRequest struct {
	ApiService *ClustersApiService
	// contains filtered or unexported fields
}

func (ApiClustersGetRequest) Execute

func (ApiClustersGetRequest) FilterName

func (r ApiClustersGetRequest) FilterName(filterName string) ApiClustersGetRequest

func (ApiClustersGetRequest) Limit

func (ApiClustersGetRequest) Offset

type ApiClustersPatchRequest

type ApiClustersPatchRequest struct {
	ApiService *ClustersApiService
	// contains filtered or unexported fields
}

func (ApiClustersPatchRequest) Execute

func (ApiClustersPatchRequest) PatchClusterRequest

func (r ApiClustersPatchRequest) PatchClusterRequest(patchClusterRequest PatchClusterRequest) ApiClustersPatchRequest

type ApiClustersPostRequest

type ApiClustersPostRequest struct {
	ApiService *ClustersApiService
	// contains filtered or unexported fields
}

func (ApiClustersPostRequest) CreateClusterRequest

func (r ApiClustersPostRequest) CreateClusterRequest(createClusterRequest CreateClusterRequest) ApiClustersPostRequest

func (ApiClustersPostRequest) Execute

type ApiDatabasesDeleteRequest

type ApiDatabasesDeleteRequest struct {
	ApiService *DatabasesApiService
	// contains filtered or unexported fields
}

func (ApiDatabasesDeleteRequest) Execute

type ApiDatabasesGetRequest

type ApiDatabasesGetRequest struct {
	ApiService *DatabasesApiService
	// contains filtered or unexported fields
}

func (ApiDatabasesGetRequest) Execute

type ApiDatabasesListRequest

type ApiDatabasesListRequest struct {
	ApiService *DatabasesApiService
	// contains filtered or unexported fields
}

func (ApiDatabasesListRequest) Execute

func (ApiDatabasesListRequest) Limit

func (ApiDatabasesListRequest) Offset

type ApiDatabasesPostRequest

type ApiDatabasesPostRequest struct {
	ApiService *DatabasesApiService
	// contains filtered or unexported fields
}

func (ApiDatabasesPostRequest) Database

func (ApiDatabasesPostRequest) Execute

type ApiInfosVersionGetRequest

type ApiInfosVersionGetRequest struct {
	ApiService *MetadataApiService
	// contains filtered or unexported fields
}

func (ApiInfosVersionGetRequest) Execute

type ApiInfosVersionsGetRequest

type ApiInfosVersionsGetRequest struct {
	ApiService *MetadataApiService
	// contains filtered or unexported fields
}

func (ApiInfosVersionsGetRequest) Execute

type ApiPostgresVersionsGetRequest

type ApiPostgresVersionsGetRequest struct {
	ApiService *ClustersApiService
	// contains filtered or unexported fields
}

func (ApiPostgresVersionsGetRequest) Execute

type ApiUsersDeleteRequest

type ApiUsersDeleteRequest struct {
	ApiService *UsersApiService
	// contains filtered or unexported fields
}

func (ApiUsersDeleteRequest) Execute

type ApiUsersGetRequest

type ApiUsersGetRequest struct {
	ApiService *UsersApiService
	// contains filtered or unexported fields
}

func (ApiUsersGetRequest) Execute

type ApiUsersListRequest

type ApiUsersListRequest struct {
	ApiService *UsersApiService
	// contains filtered or unexported fields
}

func (ApiUsersListRequest) Execute

func (ApiUsersListRequest) Limit

func (ApiUsersListRequest) Offset

func (ApiUsersListRequest) System

func (r ApiUsersListRequest) System(system bool) ApiUsersListRequest

type ApiUsersPatchRequest

type ApiUsersPatchRequest struct {
	ApiService *UsersApiService
	// contains filtered or unexported fields
}

func (ApiUsersPatchRequest) Execute

func (ApiUsersPatchRequest) UsersPatchRequest

func (r ApiUsersPatchRequest) UsersPatchRequest(usersPatchRequest UsersPatchRequest) ApiUsersPatchRequest

type ApiUsersPostRequest

type ApiUsersPostRequest struct {
	ApiService *UsersApiService
	// contains filtered or unexported fields
}

func (ApiUsersPostRequest) Execute

func (ApiUsersPostRequest) User

type BackupMetadata

type BackupMetadata struct {
	// The ISO 8601 creation timestamp.
	CreatedDate *IonosTime `json:"createdDate,omitempty"`
	State       *State     `json:"state,omitempty"`
}

BackupMetadata Metadata of the backup resource.

func NewBackupMetadata

func NewBackupMetadata() *BackupMetadata

NewBackupMetadata instantiates a new BackupMetadata object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewBackupMetadataWithDefaults

func NewBackupMetadataWithDefaults() *BackupMetadata

NewBackupMetadataWithDefaults instantiates a new BackupMetadata object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*BackupMetadata) GetCreatedDate

func (o *BackupMetadata) GetCreatedDate() time.Time

GetCreatedDate returns the CreatedDate field value if set, zero value otherwise.

func (*BackupMetadata) GetCreatedDateOk

func (o *BackupMetadata) GetCreatedDateOk() (*time.Time, bool)

GetCreatedDateOk returns a tuple with the CreatedDate field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BackupMetadata) GetState

func (o *BackupMetadata) GetState() State

GetState returns the State field value if set, zero value otherwise.

func (*BackupMetadata) GetStateOk

func (o *BackupMetadata) GetStateOk() (*State, bool)

GetStateOk returns a tuple with the State field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BackupMetadata) HasCreatedDate

func (o *BackupMetadata) HasCreatedDate() bool

HasCreatedDate returns a boolean if a field has been set.

func (*BackupMetadata) HasState

func (o *BackupMetadata) HasState() bool

HasState returns a boolean if a field has been set.

func (*BackupMetadata) SetCreatedDate

func (o *BackupMetadata) SetCreatedDate(v time.Time)

SetCreatedDate gets a reference to the given time.Time and assigns it to the CreatedDate field.

func (*BackupMetadata) SetState

func (o *BackupMetadata) SetState(v State)

SetState gets a reference to the given State and assigns it to the State field.

func (BackupMetadata) ToMap

func (o BackupMetadata) ToMap() (map[string]interface{}, error)

type BackupResponse

type BackupResponse struct {
	Type *ResourceType `json:"type,omitempty"`
	// The unique ID of the resource.
	Id         *string         `json:"id,omitempty"`
	Metadata   *BackupMetadata `json:"metadata,omitempty"`
	Properties *ClusterBackup  `json:"properties,omitempty"`
}

BackupResponse A database backup.

func NewBackupResponse

func NewBackupResponse() *BackupResponse

NewBackupResponse instantiates a new BackupResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewBackupResponseWithDefaults

func NewBackupResponseWithDefaults() *BackupResponse

NewBackupResponseWithDefaults instantiates a new BackupResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*BackupResponse) GetId

func (o *BackupResponse) GetId() string

GetId returns the Id field value if set, zero value otherwise.

func (*BackupResponse) GetIdOk

func (o *BackupResponse) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BackupResponse) GetMetadata

func (o *BackupResponse) GetMetadata() BackupMetadata

GetMetadata returns the Metadata field value if set, zero value otherwise.

func (*BackupResponse) GetMetadataOk

func (o *BackupResponse) GetMetadataOk() (*BackupMetadata, bool)

GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BackupResponse) GetProperties

func (o *BackupResponse) GetProperties() ClusterBackup

GetProperties returns the Properties field value if set, zero value otherwise.

func (*BackupResponse) GetPropertiesOk

func (o *BackupResponse) GetPropertiesOk() (*ClusterBackup, bool)

GetPropertiesOk returns a tuple with the Properties field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BackupResponse) GetType

func (o *BackupResponse) GetType() ResourceType

GetType returns the Type field value if set, zero value otherwise.

func (*BackupResponse) GetTypeOk

func (o *BackupResponse) GetTypeOk() (*ResourceType, bool)

GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BackupResponse) HasId

func (o *BackupResponse) HasId() bool

HasId returns a boolean if a field has been set.

func (*BackupResponse) HasMetadata

func (o *BackupResponse) HasMetadata() bool

HasMetadata returns a boolean if a field has been set.

func (*BackupResponse) HasProperties

func (o *BackupResponse) HasProperties() bool

HasProperties returns a boolean if a field has been set.

func (*BackupResponse) HasType

func (o *BackupResponse) HasType() bool

HasType returns a boolean if a field has been set.

func (*BackupResponse) SetId

func (o *BackupResponse) SetId(v string)

SetId gets a reference to the given string and assigns it to the Id field.

func (*BackupResponse) SetMetadata

func (o *BackupResponse) SetMetadata(v BackupMetadata)

SetMetadata gets a reference to the given BackupMetadata and assigns it to the Metadata field.

func (*BackupResponse) SetProperties

func (o *BackupResponse) SetProperties(v ClusterBackup)

SetProperties gets a reference to the given ClusterBackup and assigns it to the Properties field.

func (*BackupResponse) SetType

func (o *BackupResponse) SetType(v ResourceType)

SetType gets a reference to the given ResourceType and assigns it to the Type field.

func (BackupResponse) ToMap

func (o BackupResponse) ToMap() (map[string]interface{}, error)

type BackupsApiService

type BackupsApiService service

BackupsApiService BackupsApi service

func (*BackupsApiService) ClusterBackupsGet

func (a *BackupsApiService) ClusterBackupsGet(ctx _context.Context, clusterId string) ApiClusterBackupsGetRequest

* ClusterBackupsGet List backups of cluster * Retrieves a list of all backups of the given PostgreSQL cluster. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param clusterId The unique ID of the cluster. * @return ApiClusterBackupsGetRequest

func (*BackupsApiService) ClusterBackupsGetExecute

* Execute executes the request * @return ClusterBackupList

func (*BackupsApiService) ClustersBackupsFindById

func (a *BackupsApiService) ClustersBackupsFindById(ctx _context.Context, backupId string) ApiClustersBackupsFindByIdRequest
  • ClustersBackupsFindById Fetch a cluster backup
  • Retrieve a PostgreSQL cluster backup by using its ID. This value can be

found when you GET a list of PostgreSQL cluster backups.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param backupId The unique ID of the backup.
  • @return ApiClustersBackupsFindByIdRequest

func (*BackupsApiService) ClustersBackupsFindByIdExecute

* Execute executes the request * @return BackupResponse

func (*BackupsApiService) ClustersBackupsGet

* ClustersBackupsGet List cluster backups * Retrieves a list of all PostgreSQL cluster backups. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @return ApiClustersBackupsGetRequest

func (*BackupsApiService) ClustersBackupsGetExecute

* Execute executes the request * @return ClusterBackupList

type ClusterBackup

type ClusterBackup struct {
	// The unique ID of the resource.
	Id *string `json:"id,omitempty"`
	// The unique ID of the cluster.
	ClusterId *string `json:"clusterId,omitempty"`
	// The PostgreSQL version this backup was created from.
	Version *string `json:"version,omitempty"`
	// Whether a cluster currently backs up data to this backup.
	IsActive *bool `json:"isActive,omitempty"`
	// The oldest available timestamp to which you can restore.
	EarliestRecoveryTargetTime *IonosTime `json:"earliestRecoveryTargetTime,omitempty"`
	// Size of all base backups including the wal size in MB.
	Size *int32 `json:"size,omitempty"`
	// The S3 location where the backups will be stored.
	Location *string `json:"location,omitempty"`
}

ClusterBackup A backup object.

func NewClusterBackup

func NewClusterBackup() *ClusterBackup

NewClusterBackup instantiates a new ClusterBackup object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewClusterBackupWithDefaults

func NewClusterBackupWithDefaults() *ClusterBackup

NewClusterBackupWithDefaults instantiates a new ClusterBackup object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ClusterBackup) GetClusterId

func (o *ClusterBackup) GetClusterId() string

GetClusterId returns the ClusterId field value if set, zero value otherwise.

func (*ClusterBackup) GetClusterIdOk

func (o *ClusterBackup) GetClusterIdOk() (*string, bool)

GetClusterIdOk returns a tuple with the ClusterId field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ClusterBackup) GetEarliestRecoveryTargetTime

func (o *ClusterBackup) GetEarliestRecoveryTargetTime() time.Time

GetEarliestRecoveryTargetTime returns the EarliestRecoveryTargetTime field value if set, zero value otherwise.

func (*ClusterBackup) GetEarliestRecoveryTargetTimeOk

func (o *ClusterBackup) GetEarliestRecoveryTargetTimeOk() (*time.Time, bool)

GetEarliestRecoveryTargetTimeOk returns a tuple with the EarliestRecoveryTargetTime field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ClusterBackup) GetId

func (o *ClusterBackup) GetId() string

GetId returns the Id field value if set, zero value otherwise.

func (*ClusterBackup) GetIdOk

func (o *ClusterBackup) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ClusterBackup) GetIsActive

func (o *ClusterBackup) GetIsActive() bool

GetIsActive returns the IsActive field value if set, zero value otherwise.

func (*ClusterBackup) GetIsActiveOk

func (o *ClusterBackup) GetIsActiveOk() (*bool, bool)

GetIsActiveOk returns a tuple with the IsActive field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ClusterBackup) GetLocation

func (o *ClusterBackup) GetLocation() string

GetLocation returns the Location field value if set, zero value otherwise.

func (*ClusterBackup) GetLocationOk

func (o *ClusterBackup) GetLocationOk() (*string, bool)

GetLocationOk returns a tuple with the Location field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ClusterBackup) GetSize

func (o *ClusterBackup) GetSize() int32

GetSize returns the Size field value if set, zero value otherwise.

func (*ClusterBackup) GetSizeOk

func (o *ClusterBackup) GetSizeOk() (*int32, bool)

GetSizeOk returns a tuple with the Size field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ClusterBackup) GetVersion

func (o *ClusterBackup) GetVersion() string

GetVersion returns the Version field value if set, zero value otherwise.

func (*ClusterBackup) GetVersionOk

func (o *ClusterBackup) GetVersionOk() (*string, bool)

GetVersionOk returns a tuple with the Version field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ClusterBackup) HasClusterId

func (o *ClusterBackup) HasClusterId() bool

HasClusterId returns a boolean if a field has been set.

func (*ClusterBackup) HasEarliestRecoveryTargetTime

func (o *ClusterBackup) HasEarliestRecoveryTargetTime() bool

HasEarliestRecoveryTargetTime returns a boolean if a field has been set.

func (*ClusterBackup) HasId

func (o *ClusterBackup) HasId() bool

HasId returns a boolean if a field has been set.

func (*ClusterBackup) HasIsActive

func (o *ClusterBackup) HasIsActive() bool

HasIsActive returns a boolean if a field has been set.

func (*ClusterBackup) HasLocation

func (o *ClusterBackup) HasLocation() bool

HasLocation returns a boolean if a field has been set.

func (*ClusterBackup) HasSize

func (o *ClusterBackup) HasSize() bool

HasSize returns a boolean if a field has been set.

func (*ClusterBackup) HasVersion

func (o *ClusterBackup) HasVersion() bool

HasVersion returns a boolean if a field has been set.

func (*ClusterBackup) SetClusterId

func (o *ClusterBackup) SetClusterId(v string)

SetClusterId gets a reference to the given string and assigns it to the ClusterId field.

func (*ClusterBackup) SetEarliestRecoveryTargetTime

func (o *ClusterBackup) SetEarliestRecoveryTargetTime(v time.Time)

SetEarliestRecoveryTargetTime gets a reference to the given time.Time and assigns it to the EarliestRecoveryTargetTime field.

func (*ClusterBackup) SetId

func (o *ClusterBackup) SetId(v string)

SetId gets a reference to the given string and assigns it to the Id field.

func (*ClusterBackup) SetIsActive

func (o *ClusterBackup) SetIsActive(v bool)

SetIsActive gets a reference to the given bool and assigns it to the IsActive field.

func (*ClusterBackup) SetLocation

func (o *ClusterBackup) SetLocation(v string)

SetLocation gets a reference to the given string and assigns it to the Location field.

func (*ClusterBackup) SetSize

func (o *ClusterBackup) SetSize(v int32)

SetSize gets a reference to the given int32 and assigns it to the Size field.

func (*ClusterBackup) SetVersion

func (o *ClusterBackup) SetVersion(v string)

SetVersion gets a reference to the given string and assigns it to the Version field.

func (ClusterBackup) ToMap

func (o ClusterBackup) ToMap() (map[string]interface{}, error)

type ClusterBackupList

type ClusterBackupList struct {
	Type *ResourceType `json:"type,omitempty"`
	// The unique ID of the resource.
	Id    *string          `json:"id,omitempty"`
	Items []BackupResponse `json:"items,omitempty"`
	// The offset specified in the request (if none was specified, the default offset is 0).
	Offset *int32 `json:"offset,omitempty"`
	// The limit specified in the request (if none was specified, the default limit is 100).
	Limit *int32           `json:"limit,omitempty"`
	Links *PaginationLinks `json:"links,omitempty"`
}

ClusterBackupList List of backups.

func NewClusterBackupList

func NewClusterBackupList() *ClusterBackupList

NewClusterBackupList instantiates a new ClusterBackupList object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewClusterBackupListWithDefaults

func NewClusterBackupListWithDefaults() *ClusterBackupList

NewClusterBackupListWithDefaults instantiates a new ClusterBackupList object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ClusterBackupList) GetId

func (o *ClusterBackupList) GetId() string

GetId returns the Id field value if set, zero value otherwise.

func (*ClusterBackupList) GetIdOk

func (o *ClusterBackupList) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ClusterBackupList) GetItems

func (o *ClusterBackupList) GetItems() []BackupResponse

GetItems returns the Items field value if set, zero value otherwise.

func (*ClusterBackupList) GetItemsOk

func (o *ClusterBackupList) GetItemsOk() ([]BackupResponse, bool)

GetItemsOk returns a tuple with the Items field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ClusterBackupList) GetLimit

func (o *ClusterBackupList) GetLimit() int32

GetLimit returns the Limit field value if set, zero value otherwise.

func (*ClusterBackupList) GetLimitOk

func (o *ClusterBackupList) GetLimitOk() (*int32, bool)

GetLimitOk returns a tuple with the Limit field value if set, nil otherwise and a boolean to check if the value has been set.

func (o *ClusterBackupList) GetLinks() PaginationLinks

GetLinks returns the Links field value if set, zero value otherwise.

func (*ClusterBackupList) GetLinksOk

func (o *ClusterBackupList) GetLinksOk() (*PaginationLinks, bool)

GetLinksOk returns a tuple with the Links field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ClusterBackupList) GetOffset

func (o *ClusterBackupList) GetOffset() int32

GetOffset returns the Offset field value if set, zero value otherwise.

func (*ClusterBackupList) GetOffsetOk

func (o *ClusterBackupList) GetOffsetOk() (*int32, bool)

GetOffsetOk returns a tuple with the Offset field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ClusterBackupList) GetType

func (o *ClusterBackupList) GetType() ResourceType

GetType returns the Type field value if set, zero value otherwise.

func (*ClusterBackupList) GetTypeOk

func (o *ClusterBackupList) GetTypeOk() (*ResourceType, bool)

GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ClusterBackupList) HasId

func (o *ClusterBackupList) HasId() bool

HasId returns a boolean if a field has been set.

func (*ClusterBackupList) HasItems

func (o *ClusterBackupList) HasItems() bool

HasItems returns a boolean if a field has been set.

func (*ClusterBackupList) HasLimit

func (o *ClusterBackupList) HasLimit() bool

HasLimit returns a boolean if a field has been set.

func (o *ClusterBackupList) HasLinks() bool

HasLinks returns a boolean if a field has been set.

func (*ClusterBackupList) HasOffset

func (o *ClusterBackupList) HasOffset() bool

HasOffset returns a boolean if a field has been set.

func (*ClusterBackupList) HasType

func (o *ClusterBackupList) HasType() bool

HasType returns a boolean if a field has been set.

func (*ClusterBackupList) SetId

func (o *ClusterBackupList) SetId(v string)

SetId gets a reference to the given string and assigns it to the Id field.

func (*ClusterBackupList) SetItems

func (o *ClusterBackupList) SetItems(v []BackupResponse)

SetItems gets a reference to the given []BackupResponse and assigns it to the Items field.

func (*ClusterBackupList) SetLimit

func (o *ClusterBackupList) SetLimit(v int32)

SetLimit gets a reference to the given int32 and assigns it to the Limit field.

func (o *ClusterBackupList) SetLinks(v PaginationLinks)

SetLinks gets a reference to the given PaginationLinks and assigns it to the Links field.

func (*ClusterBackupList) SetOffset

func (o *ClusterBackupList) SetOffset(v int32)

SetOffset gets a reference to the given int32 and assigns it to the Offset field.

func (*ClusterBackupList) SetType

func (o *ClusterBackupList) SetType(v ResourceType)

SetType gets a reference to the given ResourceType and assigns it to the Type field.

func (ClusterBackupList) ToMap

func (o ClusterBackupList) ToMap() (map[string]interface{}, error)

type ClusterBackupListAllOf

type ClusterBackupListAllOf struct {
	Type *ResourceType `json:"type,omitempty"`
	// The unique ID of the resource.
	Id    *string          `json:"id,omitempty"`
	Items []BackupResponse `json:"items,omitempty"`
}

ClusterBackupListAllOf struct for ClusterBackupListAllOf

func NewClusterBackupListAllOf

func NewClusterBackupListAllOf() *ClusterBackupListAllOf

NewClusterBackupListAllOf instantiates a new ClusterBackupListAllOf object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewClusterBackupListAllOfWithDefaults

func NewClusterBackupListAllOfWithDefaults() *ClusterBackupListAllOf

NewClusterBackupListAllOfWithDefaults instantiates a new ClusterBackupListAllOf object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ClusterBackupListAllOf) GetId

func (o *ClusterBackupListAllOf) GetId() string

GetId returns the Id field value if set, zero value otherwise.

func (*ClusterBackupListAllOf) GetIdOk

func (o *ClusterBackupListAllOf) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ClusterBackupListAllOf) GetItems

func (o *ClusterBackupListAllOf) GetItems() []BackupResponse

GetItems returns the Items field value if set, zero value otherwise.

func (*ClusterBackupListAllOf) GetItemsOk

func (o *ClusterBackupListAllOf) GetItemsOk() ([]BackupResponse, bool)

GetItemsOk returns a tuple with the Items field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ClusterBackupListAllOf) GetType

func (o *ClusterBackupListAllOf) GetType() ResourceType

GetType returns the Type field value if set, zero value otherwise.

func (*ClusterBackupListAllOf) GetTypeOk

func (o *ClusterBackupListAllOf) GetTypeOk() (*ResourceType, bool)

GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ClusterBackupListAllOf) HasId

func (o *ClusterBackupListAllOf) HasId() bool

HasId returns a boolean if a field has been set.

func (*ClusterBackupListAllOf) HasItems

func (o *ClusterBackupListAllOf) HasItems() bool

HasItems returns a boolean if a field has been set.

func (*ClusterBackupListAllOf) HasType

func (o *ClusterBackupListAllOf) HasType() bool

HasType returns a boolean if a field has been set.

func (*ClusterBackupListAllOf) SetId

func (o *ClusterBackupListAllOf) SetId(v string)

SetId gets a reference to the given string and assigns it to the Id field.

func (*ClusterBackupListAllOf) SetItems

func (o *ClusterBackupListAllOf) SetItems(v []BackupResponse)

SetItems gets a reference to the given []BackupResponse and assigns it to the Items field.

func (*ClusterBackupListAllOf) SetType

func (o *ClusterBackupListAllOf) SetType(v ResourceType)

SetType gets a reference to the given ResourceType and assigns it to the Type field.

func (ClusterBackupListAllOf) ToMap

func (o ClusterBackupListAllOf) ToMap() (map[string]interface{}, error)

type ClusterList

type ClusterList struct {
	Type *ResourceType `json:"type,omitempty"`
	// The unique ID of the resource.
	Id    *string           `json:"id,omitempty"`
	Items []ClusterResponse `json:"items,omitempty"`
	// The offset specified in the request (if none was specified, the default offset is 0).
	Offset *int32 `json:"offset,omitempty"`
	// The limit specified in the request (if none was specified, the default limit is 100).
	Limit *int32           `json:"limit,omitempty"`
	Links *PaginationLinks `json:"links,omitempty"`
}

ClusterList List of clusters.

func NewClusterList

func NewClusterList() *ClusterList

NewClusterList instantiates a new ClusterList object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewClusterListWithDefaults

func NewClusterListWithDefaults() *ClusterList

NewClusterListWithDefaults instantiates a new ClusterList object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ClusterList) GetId

func (o *ClusterList) GetId() string

GetId returns the Id field value if set, zero value otherwise.

func (*ClusterList) GetIdOk

func (o *ClusterList) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ClusterList) GetItems

func (o *ClusterList) GetItems() []ClusterResponse

GetItems returns the Items field value if set, zero value otherwise.

func (*ClusterList) GetItemsOk

func (o *ClusterList) GetItemsOk() ([]ClusterResponse, bool)

GetItemsOk returns a tuple with the Items field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ClusterList) GetLimit

func (o *ClusterList) GetLimit() int32

GetLimit returns the Limit field value if set, zero value otherwise.

func (*ClusterList) GetLimitOk

func (o *ClusterList) GetLimitOk() (*int32, bool)

GetLimitOk returns a tuple with the Limit field value if set, nil otherwise and a boolean to check if the value has been set.

func (o *ClusterList) GetLinks() PaginationLinks

GetLinks returns the Links field value if set, zero value otherwise.

func (*ClusterList) GetLinksOk

func (o *ClusterList) GetLinksOk() (*PaginationLinks, bool)

GetLinksOk returns a tuple with the Links field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ClusterList) GetOffset

func (o *ClusterList) GetOffset() int32

GetOffset returns the Offset field value if set, zero value otherwise.

func (*ClusterList) GetOffsetOk

func (o *ClusterList) GetOffsetOk() (*int32, bool)

GetOffsetOk returns a tuple with the Offset field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ClusterList) GetType

func (o *ClusterList) GetType() ResourceType

GetType returns the Type field value if set, zero value otherwise.

func (*ClusterList) GetTypeOk

func (o *ClusterList) GetTypeOk() (*ResourceType, bool)

GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ClusterList) HasId

func (o *ClusterList) HasId() bool

HasId returns a boolean if a field has been set.

func (*ClusterList) HasItems

func (o *ClusterList) HasItems() bool

HasItems returns a boolean if a field has been set.

func (*ClusterList) HasLimit

func (o *ClusterList) HasLimit() bool

HasLimit returns a boolean if a field has been set.

func (o *ClusterList) HasLinks() bool

HasLinks returns a boolean if a field has been set.

func (*ClusterList) HasOffset

func (o *ClusterList) HasOffset() bool

HasOffset returns a boolean if a field has been set.

func (*ClusterList) HasType

func (o *ClusterList) HasType() bool

HasType returns a boolean if a field has been set.

func (*ClusterList) SetId

func (o *ClusterList) SetId(v string)

SetId gets a reference to the given string and assigns it to the Id field.

func (*ClusterList) SetItems

func (o *ClusterList) SetItems(v []ClusterResponse)

SetItems gets a reference to the given []ClusterResponse and assigns it to the Items field.

func (*ClusterList) SetLimit

func (o *ClusterList) SetLimit(v int32)

SetLimit gets a reference to the given int32 and assigns it to the Limit field.

func (o *ClusterList) SetLinks(v PaginationLinks)

SetLinks gets a reference to the given PaginationLinks and assigns it to the Links field.

func (*ClusterList) SetOffset

func (o *ClusterList) SetOffset(v int32)

SetOffset gets a reference to the given int32 and assigns it to the Offset field.

func (*ClusterList) SetType

func (o *ClusterList) SetType(v ResourceType)

SetType gets a reference to the given ResourceType and assigns it to the Type field.

func (ClusterList) ToMap

func (o ClusterList) ToMap() (map[string]interface{}, error)

type ClusterListAllOf

type ClusterListAllOf struct {
	Type *ResourceType `json:"type,omitempty"`
	// The unique ID of the resource.
	Id    *string           `json:"id,omitempty"`
	Items []ClusterResponse `json:"items,omitempty"`
}

ClusterListAllOf struct for ClusterListAllOf

func NewClusterListAllOf

func NewClusterListAllOf() *ClusterListAllOf

NewClusterListAllOf instantiates a new ClusterListAllOf object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewClusterListAllOfWithDefaults

func NewClusterListAllOfWithDefaults() *ClusterListAllOf

NewClusterListAllOfWithDefaults instantiates a new ClusterListAllOf object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ClusterListAllOf) GetId

func (o *ClusterListAllOf) GetId() string

GetId returns the Id field value if set, zero value otherwise.

func (*ClusterListAllOf) GetIdOk

func (o *ClusterListAllOf) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ClusterListAllOf) GetItems

func (o *ClusterListAllOf) GetItems() []ClusterResponse

GetItems returns the Items field value if set, zero value otherwise.

func (*ClusterListAllOf) GetItemsOk

func (o *ClusterListAllOf) GetItemsOk() ([]ClusterResponse, bool)

GetItemsOk returns a tuple with the Items field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ClusterListAllOf) GetType

func (o *ClusterListAllOf) GetType() ResourceType

GetType returns the Type field value if set, zero value otherwise.

func (*ClusterListAllOf) GetTypeOk

func (o *ClusterListAllOf) GetTypeOk() (*ResourceType, bool)

GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ClusterListAllOf) HasId

func (o *ClusterListAllOf) HasId() bool

HasId returns a boolean if a field has been set.

func (*ClusterListAllOf) HasItems

func (o *ClusterListAllOf) HasItems() bool

HasItems returns a boolean if a field has been set.

func (*ClusterListAllOf) HasType

func (o *ClusterListAllOf) HasType() bool

HasType returns a boolean if a field has been set.

func (*ClusterListAllOf) SetId

func (o *ClusterListAllOf) SetId(v string)

SetId gets a reference to the given string and assigns it to the Id field.

func (*ClusterListAllOf) SetItems

func (o *ClusterListAllOf) SetItems(v []ClusterResponse)

SetItems gets a reference to the given []ClusterResponse and assigns it to the Items field.

func (*ClusterListAllOf) SetType

func (o *ClusterListAllOf) SetType(v ResourceType)

SetType gets a reference to the given ResourceType and assigns it to the Type field.

func (ClusterListAllOf) ToMap

func (o ClusterListAllOf) ToMap() (map[string]interface{}, error)

type ClusterLogs

type ClusterLogs struct {
	Instances []ClusterLogsInstances `json:"instances,omitempty"`
}

ClusterLogs The logs of the PostgreSQL cluster.

func NewClusterLogs

func NewClusterLogs() *ClusterLogs

NewClusterLogs instantiates a new ClusterLogs object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewClusterLogsWithDefaults

func NewClusterLogsWithDefaults() *ClusterLogs

NewClusterLogsWithDefaults instantiates a new ClusterLogs object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ClusterLogs) GetInstances

func (o *ClusterLogs) GetInstances() []ClusterLogsInstances

GetInstances returns the Instances field value if set, zero value otherwise.

func (*ClusterLogs) GetInstancesOk

func (o *ClusterLogs) GetInstancesOk() ([]ClusterLogsInstances, bool)

GetInstancesOk returns a tuple with the Instances field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ClusterLogs) HasInstances

func (o *ClusterLogs) HasInstances() bool

HasInstances returns a boolean if a field has been set.

func (*ClusterLogs) SetInstances

func (o *ClusterLogs) SetInstances(v []ClusterLogsInstances)

SetInstances gets a reference to the given []ClusterLogsInstances and assigns it to the Instances field.

func (ClusterLogs) ToMap

func (o ClusterLogs) ToMap() (map[string]interface{}, error)

type ClusterLogsInstances

type ClusterLogsInstances struct {
	// The name of the PostgreSQL instance.
	Name     *string                        `json:"name,omitempty"`
	Messages []ClusterLogsInstancesMessages `json:"messages,omitempty"`
}

ClusterLogsInstances struct for ClusterLogsInstances

func NewClusterLogsInstances

func NewClusterLogsInstances() *ClusterLogsInstances

NewClusterLogsInstances instantiates a new ClusterLogsInstances object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewClusterLogsInstancesWithDefaults

func NewClusterLogsInstancesWithDefaults() *ClusterLogsInstances

NewClusterLogsInstancesWithDefaults instantiates a new ClusterLogsInstances object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ClusterLogsInstances) GetMessages

GetMessages returns the Messages field value if set, zero value otherwise.

func (*ClusterLogsInstances) GetMessagesOk

func (o *ClusterLogsInstances) GetMessagesOk() ([]ClusterLogsInstancesMessages, bool)

GetMessagesOk returns a tuple with the Messages field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ClusterLogsInstances) GetName

func (o *ClusterLogsInstances) GetName() string

GetName returns the Name field value if set, zero value otherwise.

func (*ClusterLogsInstances) GetNameOk

func (o *ClusterLogsInstances) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ClusterLogsInstances) HasMessages

func (o *ClusterLogsInstances) HasMessages() bool

HasMessages returns a boolean if a field has been set.

func (*ClusterLogsInstances) HasName

func (o *ClusterLogsInstances) HasName() bool

HasName returns a boolean if a field has been set.

func (*ClusterLogsInstances) SetMessages

SetMessages gets a reference to the given []ClusterLogsInstancesMessages and assigns it to the Messages field.

func (*ClusterLogsInstances) SetName

func (o *ClusterLogsInstances) SetName(v string)

SetName gets a reference to the given string and assigns it to the Name field.

func (ClusterLogsInstances) ToMap

func (o ClusterLogsInstances) ToMap() (map[string]interface{}, error)

type ClusterLogsInstancesMessages

type ClusterLogsInstancesMessages struct {
	Time    *IonosTime `json:"time,omitempty"`
	Message *string    `json:"message,omitempty"`
}

ClusterLogsInstancesMessages struct for ClusterLogsInstancesMessages

func NewClusterLogsInstancesMessages

func NewClusterLogsInstancesMessages() *ClusterLogsInstancesMessages

NewClusterLogsInstancesMessages instantiates a new ClusterLogsInstancesMessages object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewClusterLogsInstancesMessagesWithDefaults

func NewClusterLogsInstancesMessagesWithDefaults() *ClusterLogsInstancesMessages

NewClusterLogsInstancesMessagesWithDefaults instantiates a new ClusterLogsInstancesMessages object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ClusterLogsInstancesMessages) GetMessage

func (o *ClusterLogsInstancesMessages) GetMessage() string

GetMessage returns the Message field value if set, zero value otherwise.

func (*ClusterLogsInstancesMessages) GetMessageOk

func (o *ClusterLogsInstancesMessages) GetMessageOk() (*string, bool)

GetMessageOk returns a tuple with the Message field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ClusterLogsInstancesMessages) GetTime

func (o *ClusterLogsInstancesMessages) GetTime() time.Time

GetTime returns the Time field value if set, zero value otherwise.

func (*ClusterLogsInstancesMessages) GetTimeOk

func (o *ClusterLogsInstancesMessages) GetTimeOk() (*time.Time, bool)

GetTimeOk returns a tuple with the Time field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ClusterLogsInstancesMessages) HasMessage

func (o *ClusterLogsInstancesMessages) HasMessage() bool

HasMessage returns a boolean if a field has been set.

func (*ClusterLogsInstancesMessages) HasTime

func (o *ClusterLogsInstancesMessages) HasTime() bool

HasTime returns a boolean if a field has been set.

func (*ClusterLogsInstancesMessages) SetMessage

func (o *ClusterLogsInstancesMessages) SetMessage(v string)

SetMessage gets a reference to the given string and assigns it to the Message field.

func (*ClusterLogsInstancesMessages) SetTime

func (o *ClusterLogsInstancesMessages) SetTime(v time.Time)

SetTime gets a reference to the given time.Time and assigns it to the Time field.

func (ClusterLogsInstancesMessages) ToMap

func (o ClusterLogsInstancesMessages) ToMap() (map[string]interface{}, error)

type ClusterMetadata

type ClusterMetadata struct {
	// The ISO 8601 creation timestamp.
	CreatedDate     *IonosTime `json:"createdDate,omitempty"`
	CreatedBy       *string    `json:"createdBy,omitempty"`
	CreatedByUserId *string    `json:"createdByUserId,omitempty"`
	// The ISO 8601 modified timestamp.
	LastModifiedDate     *IonosTime `json:"lastModifiedDate,omitempty"`
	LastModifiedBy       *string    `json:"lastModifiedBy,omitempty"`
	LastModifiedByUserId *string    `json:"lastModifiedByUserId,omitempty"`
	State                *State     `json:"state,omitempty"`
}

ClusterMetadata Metadata of the resource.

func NewClusterMetadata

func NewClusterMetadata() *ClusterMetadata

NewClusterMetadata instantiates a new ClusterMetadata object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewClusterMetadataWithDefaults

func NewClusterMetadataWithDefaults() *ClusterMetadata

NewClusterMetadataWithDefaults instantiates a new ClusterMetadata object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ClusterMetadata) GetCreatedBy

func (o *ClusterMetadata) GetCreatedBy() string

GetCreatedBy returns the CreatedBy field value if set, zero value otherwise.

func (*ClusterMetadata) GetCreatedByOk

func (o *ClusterMetadata) GetCreatedByOk() (*string, bool)

GetCreatedByOk returns a tuple with the CreatedBy field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ClusterMetadata) GetCreatedByUserId

func (o *ClusterMetadata) GetCreatedByUserId() string

GetCreatedByUserId returns the CreatedByUserId field value if set, zero value otherwise.

func (*ClusterMetadata) GetCreatedByUserIdOk

func (o *ClusterMetadata) GetCreatedByUserIdOk() (*string, bool)

GetCreatedByUserIdOk returns a tuple with the CreatedByUserId field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ClusterMetadata) GetCreatedDate

func (o *ClusterMetadata) GetCreatedDate() time.Time

GetCreatedDate returns the CreatedDate field value if set, zero value otherwise.

func (*ClusterMetadata) GetCreatedDateOk

func (o *ClusterMetadata) GetCreatedDateOk() (*time.Time, bool)

GetCreatedDateOk returns a tuple with the CreatedDate field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ClusterMetadata) GetLastModifiedBy

func (o *ClusterMetadata) GetLastModifiedBy() string

GetLastModifiedBy returns the LastModifiedBy field value if set, zero value otherwise.

func (*ClusterMetadata) GetLastModifiedByOk

func (o *ClusterMetadata) GetLastModifiedByOk() (*string, bool)

GetLastModifiedByOk returns a tuple with the LastModifiedBy field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ClusterMetadata) GetLastModifiedByUserId

func (o *ClusterMetadata) GetLastModifiedByUserId() string

GetLastModifiedByUserId returns the LastModifiedByUserId field value if set, zero value otherwise.

func (*ClusterMetadata) GetLastModifiedByUserIdOk

func (o *ClusterMetadata) GetLastModifiedByUserIdOk() (*string, bool)

GetLastModifiedByUserIdOk returns a tuple with the LastModifiedByUserId field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ClusterMetadata) GetLastModifiedDate

func (o *ClusterMetadata) GetLastModifiedDate() time.Time

GetLastModifiedDate returns the LastModifiedDate field value if set, zero value otherwise.

func (*ClusterMetadata) GetLastModifiedDateOk

func (o *ClusterMetadata) GetLastModifiedDateOk() (*time.Time, bool)

GetLastModifiedDateOk returns a tuple with the LastModifiedDate field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ClusterMetadata) GetState

func (o *ClusterMetadata) GetState() State

GetState returns the State field value if set, zero value otherwise.

func (*ClusterMetadata) GetStateOk

func (o *ClusterMetadata) GetStateOk() (*State, bool)

GetStateOk returns a tuple with the State field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ClusterMetadata) HasCreatedBy

func (o *ClusterMetadata) HasCreatedBy() bool

HasCreatedBy returns a boolean if a field has been set.

func (*ClusterMetadata) HasCreatedByUserId

func (o *ClusterMetadata) HasCreatedByUserId() bool

HasCreatedByUserId returns a boolean if a field has been set.

func (*ClusterMetadata) HasCreatedDate

func (o *ClusterMetadata) HasCreatedDate() bool

HasCreatedDate returns a boolean if a field has been set.

func (*ClusterMetadata) HasLastModifiedBy

func (o *ClusterMetadata) HasLastModifiedBy() bool

HasLastModifiedBy returns a boolean if a field has been set.

func (*ClusterMetadata) HasLastModifiedByUserId

func (o *ClusterMetadata) HasLastModifiedByUserId() bool

HasLastModifiedByUserId returns a boolean if a field has been set.

func (*ClusterMetadata) HasLastModifiedDate

func (o *ClusterMetadata) HasLastModifiedDate() bool

HasLastModifiedDate returns a boolean if a field has been set.

func (*ClusterMetadata) HasState

func (o *ClusterMetadata) HasState() bool

HasState returns a boolean if a field has been set.

func (*ClusterMetadata) SetCreatedBy

func (o *ClusterMetadata) SetCreatedBy(v string)

SetCreatedBy gets a reference to the given string and assigns it to the CreatedBy field.

func (*ClusterMetadata) SetCreatedByUserId

func (o *ClusterMetadata) SetCreatedByUserId(v string)

SetCreatedByUserId gets a reference to the given string and assigns it to the CreatedByUserId field.

func (*ClusterMetadata) SetCreatedDate

func (o *ClusterMetadata) SetCreatedDate(v time.Time)

SetCreatedDate gets a reference to the given time.Time and assigns it to the CreatedDate field.

func (*ClusterMetadata) SetLastModifiedBy

func (o *ClusterMetadata) SetLastModifiedBy(v string)

SetLastModifiedBy gets a reference to the given string and assigns it to the LastModifiedBy field.

func (*ClusterMetadata) SetLastModifiedByUserId

func (o *ClusterMetadata) SetLastModifiedByUserId(v string)

SetLastModifiedByUserId gets a reference to the given string and assigns it to the LastModifiedByUserId field.

func (*ClusterMetadata) SetLastModifiedDate

func (o *ClusterMetadata) SetLastModifiedDate(v time.Time)

SetLastModifiedDate gets a reference to the given time.Time and assigns it to the LastModifiedDate field.

func (*ClusterMetadata) SetState

func (o *ClusterMetadata) SetState(v State)

SetState gets a reference to the given State and assigns it to the State field.

func (ClusterMetadata) ToMap

func (o ClusterMetadata) ToMap() (map[string]interface{}, error)

type ClusterProperties

type ClusterProperties struct {
	// The friendly name of your cluster.
	DisplayName *string `json:"displayName,omitempty"`
	// The PostgreSQL version of your cluster.
	PostgresVersion *string `json:"postgresVersion,omitempty"`
	// The physical location where the cluster will be created. This will be where all of your instances live. Property cannot be modified after datacenter creation.
	Location *string `json:"location,omitempty"`
	// The DNS name pointing to your cluster.
	DnsName *string `json:"dnsName,omitempty"`
	// The S3 location where the backups will be stored.
	BackupLocation *string `json:"backupLocation,omitempty"`
	// The total number of instances in the cluster (one master and n-1 standbys).
	Instances *int32 `json:"instances,omitempty"`
	// The amount of memory per instance in megabytes. Has to be a multiple of 1024.
	Ram *int32 `json:"ram,omitempty"`
	// The number of CPU cores per instance.
	Cores *int32 `json:"cores,omitempty"`
	// The amount of storage per instance in megabytes.
	StorageSize         *int32               `json:"storageSize,omitempty"`
	StorageType         *StorageType         `json:"storageType,omitempty"`
	Connections         []Connection         `json:"connections,omitempty"`
	MaintenanceWindow   *MaintenanceWindow   `json:"maintenanceWindow,omitempty"`
	SynchronizationMode *SynchronizationMode `json:"synchronizationMode,omitempty"`
	ConnectionPooler    *ConnectionPooler    `json:"connectionPooler,omitempty"`
}

ClusterProperties Properties of a database cluster.

func NewClusterProperties

func NewClusterProperties() *ClusterProperties

NewClusterProperties instantiates a new ClusterProperties object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewClusterPropertiesWithDefaults

func NewClusterPropertiesWithDefaults() *ClusterProperties

NewClusterPropertiesWithDefaults instantiates a new ClusterProperties object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ClusterProperties) GetBackupLocation

func (o *ClusterProperties) GetBackupLocation() string

GetBackupLocation returns the BackupLocation field value if set, zero value otherwise.

func (*ClusterProperties) GetBackupLocationOk

func (o *ClusterProperties) GetBackupLocationOk() (*string, bool)

GetBackupLocationOk returns a tuple with the BackupLocation field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ClusterProperties) GetConnectionPooler

func (o *ClusterProperties) GetConnectionPooler() ConnectionPooler

GetConnectionPooler returns the ConnectionPooler field value if set, zero value otherwise.

func (*ClusterProperties) GetConnectionPoolerOk

func (o *ClusterProperties) GetConnectionPoolerOk() (*ConnectionPooler, bool)

GetConnectionPoolerOk returns a tuple with the ConnectionPooler field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ClusterProperties) GetConnections

func (o *ClusterProperties) GetConnections() []Connection

GetConnections returns the Connections field value if set, zero value otherwise.

func (*ClusterProperties) GetConnectionsOk

func (o *ClusterProperties) GetConnectionsOk() ([]Connection, bool)

GetConnectionsOk returns a tuple with the Connections field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ClusterProperties) GetCores

func (o *ClusterProperties) GetCores() int32

GetCores returns the Cores field value if set, zero value otherwise.

func (*ClusterProperties) GetCoresOk

func (o *ClusterProperties) GetCoresOk() (*int32, bool)

GetCoresOk returns a tuple with the Cores field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ClusterProperties) GetDisplayName

func (o *ClusterProperties) GetDisplayName() string

GetDisplayName returns the DisplayName field value if set, zero value otherwise.

func (*ClusterProperties) GetDisplayNameOk

func (o *ClusterProperties) GetDisplayNameOk() (*string, bool)

GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ClusterProperties) GetDnsName

func (o *ClusterProperties) GetDnsName() string

GetDnsName returns the DnsName field value if set, zero value otherwise.

func (*ClusterProperties) GetDnsNameOk

func (o *ClusterProperties) GetDnsNameOk() (*string, bool)

GetDnsNameOk returns a tuple with the DnsName field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ClusterProperties) GetInstances

func (o *ClusterProperties) GetInstances() int32

GetInstances returns the Instances field value if set, zero value otherwise.

func (*ClusterProperties) GetInstancesOk

func (o *ClusterProperties) GetInstancesOk() (*int32, bool)

GetInstancesOk returns a tuple with the Instances field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ClusterProperties) GetLocation

func (o *ClusterProperties) GetLocation() string

GetLocation returns the Location field value if set, zero value otherwise.

func (*ClusterProperties) GetLocationOk

func (o *ClusterProperties) GetLocationOk() (*string, bool)

GetLocationOk returns a tuple with the Location field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ClusterProperties) GetMaintenanceWindow

func (o *ClusterProperties) GetMaintenanceWindow() MaintenanceWindow

GetMaintenanceWindow returns the MaintenanceWindow field value if set, zero value otherwise.

func (*ClusterProperties) GetMaintenanceWindowOk

func (o *ClusterProperties) GetMaintenanceWindowOk() (*MaintenanceWindow, bool)

GetMaintenanceWindowOk returns a tuple with the MaintenanceWindow field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ClusterProperties) GetPostgresVersion

func (o *ClusterProperties) GetPostgresVersion() string

GetPostgresVersion returns the PostgresVersion field value if set, zero value otherwise.

func (*ClusterProperties) GetPostgresVersionOk

func (o *ClusterProperties) GetPostgresVersionOk() (*string, bool)

GetPostgresVersionOk returns a tuple with the PostgresVersion field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ClusterProperties) GetRam

func (o *ClusterProperties) GetRam() int32

GetRam returns the Ram field value if set, zero value otherwise.

func (*ClusterProperties) GetRamOk

func (o *ClusterProperties) GetRamOk() (*int32, bool)

GetRamOk returns a tuple with the Ram field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ClusterProperties) GetStorageSize

func (o *ClusterProperties) GetStorageSize() int32

GetStorageSize returns the StorageSize field value if set, zero value otherwise.

func (*ClusterProperties) GetStorageSizeOk

func (o *ClusterProperties) GetStorageSizeOk() (*int32, bool)

GetStorageSizeOk returns a tuple with the StorageSize field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ClusterProperties) GetStorageType

func (o *ClusterProperties) GetStorageType() StorageType

GetStorageType returns the StorageType field value if set, zero value otherwise.

func (*ClusterProperties) GetStorageTypeOk

func (o *ClusterProperties) GetStorageTypeOk() (*StorageType, bool)

GetStorageTypeOk returns a tuple with the StorageType field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ClusterProperties) GetSynchronizationMode

func (o *ClusterProperties) GetSynchronizationMode() SynchronizationMode

GetSynchronizationMode returns the SynchronizationMode field value if set, zero value otherwise.

func (*ClusterProperties) GetSynchronizationModeOk

func (o *ClusterProperties) GetSynchronizationModeOk() (*SynchronizationMode, bool)

GetSynchronizationModeOk returns a tuple with the SynchronizationMode field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ClusterProperties) HasBackupLocation

func (o *ClusterProperties) HasBackupLocation() bool

HasBackupLocation returns a boolean if a field has been set.

func (*ClusterProperties) HasConnectionPooler

func (o *ClusterProperties) HasConnectionPooler() bool

HasConnectionPooler returns a boolean if a field has been set.

func (*ClusterProperties) HasConnections

func (o *ClusterProperties) HasConnections() bool

HasConnections returns a boolean if a field has been set.

func (*ClusterProperties) HasCores

func (o *ClusterProperties) HasCores() bool

HasCores returns a boolean if a field has been set.

func (*ClusterProperties) HasDisplayName

func (o *ClusterProperties) HasDisplayName() bool

HasDisplayName returns a boolean if a field has been set.

func (*ClusterProperties) HasDnsName

func (o *ClusterProperties) HasDnsName() bool

HasDnsName returns a boolean if a field has been set.

func (*ClusterProperties) HasInstances

func (o *ClusterProperties) HasInstances() bool

HasInstances returns a boolean if a field has been set.

func (*ClusterProperties) HasLocation

func (o *ClusterProperties) HasLocation() bool

HasLocation returns a boolean if a field has been set.

func (*ClusterProperties) HasMaintenanceWindow

func (o *ClusterProperties) HasMaintenanceWindow() bool

HasMaintenanceWindow returns a boolean if a field has been set.

func (*ClusterProperties) HasPostgresVersion

func (o *ClusterProperties) HasPostgresVersion() bool

HasPostgresVersion returns a boolean if a field has been set.

func (*ClusterProperties) HasRam

func (o *ClusterProperties) HasRam() bool

HasRam returns a boolean if a field has been set.

func (*ClusterProperties) HasStorageSize

func (o *ClusterProperties) HasStorageSize() bool

HasStorageSize returns a boolean if a field has been set.

func (*ClusterProperties) HasStorageType

func (o *ClusterProperties) HasStorageType() bool

HasStorageType returns a boolean if a field has been set.

func (*ClusterProperties) HasSynchronizationMode

func (o *ClusterProperties) HasSynchronizationMode() bool

HasSynchronizationMode returns a boolean if a field has been set.

func (*ClusterProperties) SetBackupLocation

func (o *ClusterProperties) SetBackupLocation(v string)

SetBackupLocation gets a reference to the given string and assigns it to the BackupLocation field.

func (*ClusterProperties) SetConnectionPooler

func (o *ClusterProperties) SetConnectionPooler(v ConnectionPooler)

SetConnectionPooler gets a reference to the given ConnectionPooler and assigns it to the ConnectionPooler field.

func (*ClusterProperties) SetConnections

func (o *ClusterProperties) SetConnections(v []Connection)

SetConnections gets a reference to the given []Connection and assigns it to the Connections field.

func (*ClusterProperties) SetCores

func (o *ClusterProperties) SetCores(v int32)

SetCores gets a reference to the given int32 and assigns it to the Cores field.

func (*ClusterProperties) SetDisplayName

func (o *ClusterProperties) SetDisplayName(v string)

SetDisplayName gets a reference to the given string and assigns it to the DisplayName field.

func (*ClusterProperties) SetDnsName

func (o *ClusterProperties) SetDnsName(v string)

SetDnsName gets a reference to the given string and assigns it to the DnsName field.

func (*ClusterProperties) SetInstances

func (o *ClusterProperties) SetInstances(v int32)

SetInstances gets a reference to the given int32 and assigns it to the Instances field.

func (*ClusterProperties) SetLocation

func (o *ClusterProperties) SetLocation(v string)

SetLocation gets a reference to the given string and assigns it to the Location field.

func (*ClusterProperties) SetMaintenanceWindow

func (o *ClusterProperties) SetMaintenanceWindow(v MaintenanceWindow)

SetMaintenanceWindow gets a reference to the given MaintenanceWindow and assigns it to the MaintenanceWindow field.

func (*ClusterProperties) SetPostgresVersion

func (o *ClusterProperties) SetPostgresVersion(v string)

SetPostgresVersion gets a reference to the given string and assigns it to the PostgresVersion field.

func (*ClusterProperties) SetRam

func (o *ClusterProperties) SetRam(v int32)

SetRam gets a reference to the given int32 and assigns it to the Ram field.

func (*ClusterProperties) SetStorageSize

func (o *ClusterProperties) SetStorageSize(v int32)

SetStorageSize gets a reference to the given int32 and assigns it to the StorageSize field.

func (*ClusterProperties) SetStorageType

func (o *ClusterProperties) SetStorageType(v StorageType)

SetStorageType gets a reference to the given StorageType and assigns it to the StorageType field.

func (*ClusterProperties) SetSynchronizationMode

func (o *ClusterProperties) SetSynchronizationMode(v SynchronizationMode)

SetSynchronizationMode gets a reference to the given SynchronizationMode and assigns it to the SynchronizationMode field.

func (ClusterProperties) ToMap

func (o ClusterProperties) ToMap() (map[string]interface{}, error)

type ClusterResponse

type ClusterResponse struct {
	Type *ResourceType `json:"type,omitempty"`
	// The unique ID of the resource.
	Id         *string            `json:"id,omitempty"`
	Metadata   *ClusterMetadata   `json:"metadata,omitempty"`
	Properties *ClusterProperties `json:"properties,omitempty"`
}

ClusterResponse A database cluster.

func NewClusterResponse

func NewClusterResponse() *ClusterResponse

NewClusterResponse instantiates a new ClusterResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewClusterResponseWithDefaults

func NewClusterResponseWithDefaults() *ClusterResponse

NewClusterResponseWithDefaults instantiates a new ClusterResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ClusterResponse) GetId

func (o *ClusterResponse) GetId() string

GetId returns the Id field value if set, zero value otherwise.

func (*ClusterResponse) GetIdOk

func (o *ClusterResponse) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ClusterResponse) GetMetadata

func (o *ClusterResponse) GetMetadata() ClusterMetadata

GetMetadata returns the Metadata field value if set, zero value otherwise.

func (*ClusterResponse) GetMetadataOk

func (o *ClusterResponse) GetMetadataOk() (*ClusterMetadata, bool)

GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ClusterResponse) GetProperties

func (o *ClusterResponse) GetProperties() ClusterProperties

GetProperties returns the Properties field value if set, zero value otherwise.

func (*ClusterResponse) GetPropertiesOk

func (o *ClusterResponse) GetPropertiesOk() (*ClusterProperties, bool)

GetPropertiesOk returns a tuple with the Properties field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ClusterResponse) GetType

func (o *ClusterResponse) GetType() ResourceType

GetType returns the Type field value if set, zero value otherwise.

func (*ClusterResponse) GetTypeOk

func (o *ClusterResponse) GetTypeOk() (*ResourceType, bool)

GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ClusterResponse) HasId

func (o *ClusterResponse) HasId() bool

HasId returns a boolean if a field has been set.

func (*ClusterResponse) HasMetadata

func (o *ClusterResponse) HasMetadata() bool

HasMetadata returns a boolean if a field has been set.

func (*ClusterResponse) HasProperties

func (o *ClusterResponse) HasProperties() bool

HasProperties returns a boolean if a field has been set.

func (*ClusterResponse) HasType

func (o *ClusterResponse) HasType() bool

HasType returns a boolean if a field has been set.

func (*ClusterResponse) SetId

func (o *ClusterResponse) SetId(v string)

SetId gets a reference to the given string and assigns it to the Id field.

func (*ClusterResponse) SetMetadata

func (o *ClusterResponse) SetMetadata(v ClusterMetadata)

SetMetadata gets a reference to the given ClusterMetadata and assigns it to the Metadata field.

func (*ClusterResponse) SetProperties

func (o *ClusterResponse) SetProperties(v ClusterProperties)

SetProperties gets a reference to the given ClusterProperties and assigns it to the Properties field.

func (*ClusterResponse) SetType

func (o *ClusterResponse) SetType(v ResourceType)

SetType gets a reference to the given ResourceType and assigns it to the Type field.

func (ClusterResponse) ToMap

func (o ClusterResponse) ToMap() (map[string]interface{}, error)

type ClustersApiService

type ClustersApiService service

ClustersApiService ClustersApi service

func (*ClustersApiService) ClusterPostgresVersionsGet

func (a *ClustersApiService) ClusterPostgresVersionsGet(ctx _context.Context, clusterId string) ApiClusterPostgresVersionsGetRequest
  • ClusterPostgresVersionsGet List PostgreSQL versions
  • Retrieves a list of all PostgreSQL versions available for this cluster

including the current version.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param clusterId The unique ID of the cluster.
  • @return ApiClusterPostgresVersionsGetRequest

func (*ClustersApiService) ClusterPostgresVersionsGetExecute

* Execute executes the request * @return PostgresVersionList

func (*ClustersApiService) ClustersDelete

func (a *ClustersApiService) ClustersDelete(ctx _context.Context, clusterId string) ApiClustersDeleteRequest

* ClustersDelete Delete a cluster * Delete a PostgreSQL cluster. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param clusterId The unique ID of the cluster. * @return ApiClustersDeleteRequest

func (*ClustersApiService) ClustersDeleteExecute

* Execute executes the request * @return ClusterResponse

func (*ClustersApiService) ClustersFindById

func (a *ClustersApiService) ClustersFindById(ctx _context.Context, clusterId string) ApiClustersFindByIdRequest
  • ClustersFindById Fetch a cluster
  • You can retrieve a PostgreSQL cluster by using its ID. This value can be

found in the response body when a PostgreSQL cluster is created or when you GET a list of PostgreSQL clusters.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param clusterId The unique ID of the cluster.
  • @return ApiClustersFindByIdRequest

func (*ClustersApiService) ClustersFindByIdExecute

* Execute executes the request * @return ClusterResponse

func (*ClustersApiService) ClustersGet

* ClustersGet List clusters * Retrieves a list of PostgreSQL clusters. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @return ApiClustersGetRequest

func (*ClustersApiService) ClustersGetExecute

* Execute executes the request * @return ClusterList

func (*ClustersApiService) ClustersPatch

func (a *ClustersApiService) ClustersPatch(ctx _context.Context, clusterId string) ApiClustersPatchRequest

* ClustersPatch Patch a cluster * Patch attributes of a PostgreSQL cluster. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param clusterId The unique ID of the cluster. * @return ApiClustersPatchRequest

func (*ClustersApiService) ClustersPatchExecute

* Execute executes the request * @return ClusterResponse

func (*ClustersApiService) ClustersPost

  • ClustersPost Create a cluster
  • Creates a new PostgreSQL cluster.

If the `fromBackup` field is populated, the new cluster will be created based on the given backup.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @return ApiClustersPostRequest

func (*ClustersApiService) ClustersPostExecute

* Execute executes the request * @return ClusterResponse

func (*ClustersApiService) PostgresVersionsGet

* PostgresVersionsGet List PostgreSQL versions * Retrieves a list of all available PostgreSQL versions. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @return ApiPostgresVersionsGetRequest

func (*ClustersApiService) PostgresVersionsGetExecute

* Execute executes the request * @return PostgresVersionList

type Connection

type Connection struct {
	// The datacenter to connect your cluster to.
	DatacenterId string `json:"datacenterId"`
	// The numeric LAN ID to connect your cluster to.
	LanId string `json:"lanId"`
	// The IP and subnet for your cluster. Note the following unavailable IP ranges: 10.233.64.0/18 10.233.0.0/18 10.233.114.0/24
	Cidr string `json:"cidr"`
}

Connection Details about the network connection for your cluster.

func NewConnection

func NewConnection(datacenterId string, lanId string, cidr string) *Connection

NewConnection instantiates a new Connection object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewConnectionWithDefaults

func NewConnectionWithDefaults() *Connection

NewConnectionWithDefaults instantiates a new Connection object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*Connection) GetCidr

func (o *Connection) GetCidr() string

GetCidr returns the Cidr field value

func (*Connection) GetCidrOk

func (o *Connection) GetCidrOk() (*string, bool)

GetCidrOk returns a tuple with the Cidr field value and a boolean to check if the value has been set.

func (*Connection) GetDatacenterId

func (o *Connection) GetDatacenterId() string

GetDatacenterId returns the DatacenterId field value

func (*Connection) GetDatacenterIdOk

func (o *Connection) GetDatacenterIdOk() (*string, bool)

GetDatacenterIdOk returns a tuple with the DatacenterId field value and a boolean to check if the value has been set.

func (*Connection) GetLanId

func (o *Connection) GetLanId() string

GetLanId returns the LanId field value

func (*Connection) GetLanIdOk

func (o *Connection) GetLanIdOk() (*string, bool)

GetLanIdOk returns a tuple with the LanId field value and a boolean to check if the value has been set.

func (*Connection) SetCidr

func (o *Connection) SetCidr(v string)

SetCidr sets field value

func (*Connection) SetDatacenterId

func (o *Connection) SetDatacenterId(v string)

SetDatacenterId sets field value

func (*Connection) SetLanId

func (o *Connection) SetLanId(v string)

SetLanId sets field value

func (Connection) ToMap

func (o Connection) ToMap() (map[string]interface{}, error)

type ConnectionPooler

type ConnectionPooler struct {
	Enabled  *bool     `json:"enabled,omitempty"`
	PoolMode *PoolMode `json:"poolMode,omitempty"`
}

ConnectionPooler Configuration options for the connection pooler

func NewConnectionPooler

func NewConnectionPooler() *ConnectionPooler

NewConnectionPooler instantiates a new ConnectionPooler object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewConnectionPoolerWithDefaults

func NewConnectionPoolerWithDefaults() *ConnectionPooler

NewConnectionPoolerWithDefaults instantiates a new ConnectionPooler object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ConnectionPooler) GetEnabled

func (o *ConnectionPooler) GetEnabled() bool

GetEnabled returns the Enabled field value if set, zero value otherwise.

func (*ConnectionPooler) GetEnabledOk

func (o *ConnectionPooler) GetEnabledOk() (*bool, bool)

GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ConnectionPooler) GetPoolMode

func (o *ConnectionPooler) GetPoolMode() PoolMode

GetPoolMode returns the PoolMode field value if set, zero value otherwise.

func (*ConnectionPooler) GetPoolModeOk

func (o *ConnectionPooler) GetPoolModeOk() (*PoolMode, bool)

GetPoolModeOk returns a tuple with the PoolMode field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ConnectionPooler) HasEnabled

func (o *ConnectionPooler) HasEnabled() bool

HasEnabled returns a boolean if a field has been set.

func (*ConnectionPooler) HasPoolMode

func (o *ConnectionPooler) HasPoolMode() bool

HasPoolMode returns a boolean if a field has been set.

func (*ConnectionPooler) SetEnabled

func (o *ConnectionPooler) SetEnabled(v bool)

SetEnabled gets a reference to the given bool and assigns it to the Enabled field.

func (*ConnectionPooler) SetPoolMode

func (o *ConnectionPooler) SetPoolMode(v PoolMode)

SetPoolMode gets a reference to the given PoolMode and assigns it to the PoolMode field.

func (ConnectionPooler) ToMap

func (o ConnectionPooler) ToMap() (map[string]interface{}, error)

type CreateClusterProperties

type CreateClusterProperties struct {
	// The PostgreSQL version of your cluster.
	PostgresVersion string `json:"postgresVersion"`
	// The total number of instances in the cluster (one master and n-1 standbys).
	Instances int32 `json:"instances"`
	// The number of CPU cores per instance.
	Cores int32 `json:"cores"`
	// The amount of memory per instance in megabytes. Has to be a multiple of 1024.
	Ram int32 `json:"ram"`
	// The amount of storage per instance in megabytes.
	StorageSize int32        `json:"storageSize"`
	StorageType StorageType  `json:"storageType"`
	Connections []Connection `json:"connections"`
	// The physical location where the cluster will be created. This will be where all of your instances live. Property cannot be modified after datacenter creation.
	Location string `json:"location"`
	// The S3 location where the backups will be stored.
	BackupLocation *string `json:"backupLocation,omitempty"`
	// The friendly name of your cluster.
	DisplayName         string                `json:"displayName"`
	MaintenanceWindow   *MaintenanceWindow    `json:"maintenanceWindow,omitempty"`
	Credentials         DBUser                `json:"credentials"`
	SynchronizationMode SynchronizationMode   `json:"synchronizationMode"`
	FromBackup          *CreateRestoreRequest `json:"fromBackup,omitempty"`
	ConnectionPooler    *ConnectionPooler     `json:"connectionPooler,omitempty"`
}

CreateClusterProperties Properties with all data needed to create a new PostgreSQL cluster.

func NewCreateClusterProperties

func NewCreateClusterProperties(postgresVersion string, instances int32, cores int32, ram int32, storageSize int32, storageType StorageType, connections []Connection, location string, displayName string, credentials DBUser, synchronizationMode SynchronizationMode) *CreateClusterProperties

NewCreateClusterProperties instantiates a new CreateClusterProperties object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewCreateClusterPropertiesWithDefaults

func NewCreateClusterPropertiesWithDefaults() *CreateClusterProperties

NewCreateClusterPropertiesWithDefaults instantiates a new CreateClusterProperties object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*CreateClusterProperties) GetBackupLocation

func (o *CreateClusterProperties) GetBackupLocation() string

GetBackupLocation returns the BackupLocation field value if set, zero value otherwise.

func (*CreateClusterProperties) GetBackupLocationOk

func (o *CreateClusterProperties) GetBackupLocationOk() (*string, bool)

GetBackupLocationOk returns a tuple with the BackupLocation field value if set, nil otherwise and a boolean to check if the value has been set.

func (*CreateClusterProperties) GetConnectionPooler

func (o *CreateClusterProperties) GetConnectionPooler() ConnectionPooler

GetConnectionPooler returns the ConnectionPooler field value if set, zero value otherwise.

func (*CreateClusterProperties) GetConnectionPoolerOk

func (o *CreateClusterProperties) GetConnectionPoolerOk() (*ConnectionPooler, bool)

GetConnectionPoolerOk returns a tuple with the ConnectionPooler field value if set, nil otherwise and a boolean to check if the value has been set.

func (*CreateClusterProperties) GetConnections

func (o *CreateClusterProperties) GetConnections() []Connection

GetConnections returns the Connections field value

func (*CreateClusterProperties) GetConnectionsOk

func (o *CreateClusterProperties) GetConnectionsOk() ([]Connection, bool)

GetConnectionsOk returns a tuple with the Connections field value and a boolean to check if the value has been set.

func (*CreateClusterProperties) GetCores

func (o *CreateClusterProperties) GetCores() int32

GetCores returns the Cores field value

func (*CreateClusterProperties) GetCoresOk

func (o *CreateClusterProperties) GetCoresOk() (*int32, bool)

GetCoresOk returns a tuple with the Cores field value and a boolean to check if the value has been set.

func (*CreateClusterProperties) GetCredentials

func (o *CreateClusterProperties) GetCredentials() DBUser

GetCredentials returns the Credentials field value

func (*CreateClusterProperties) GetCredentialsOk

func (o *CreateClusterProperties) GetCredentialsOk() (*DBUser, bool)

GetCredentialsOk returns a tuple with the Credentials field value and a boolean to check if the value has been set.

func (*CreateClusterProperties) GetDisplayName

func (o *CreateClusterProperties) GetDisplayName() string

GetDisplayName returns the DisplayName field value

func (*CreateClusterProperties) GetDisplayNameOk

func (o *CreateClusterProperties) GetDisplayNameOk() (*string, bool)

GetDisplayNameOk returns a tuple with the DisplayName field value and a boolean to check if the value has been set.

func (*CreateClusterProperties) GetFromBackup

func (o *CreateClusterProperties) GetFromBackup() CreateRestoreRequest

GetFromBackup returns the FromBackup field value if set, zero value otherwise.

func (*CreateClusterProperties) GetFromBackupOk

func (o *CreateClusterProperties) GetFromBackupOk() (*CreateRestoreRequest, bool)

GetFromBackupOk returns a tuple with the FromBackup field value if set, nil otherwise and a boolean to check if the value has been set.

func (*CreateClusterProperties) GetInstances

func (o *CreateClusterProperties) GetInstances() int32

GetInstances returns the Instances field value

func (*CreateClusterProperties) GetInstancesOk

func (o *CreateClusterProperties) GetInstancesOk() (*int32, bool)

GetInstancesOk returns a tuple with the Instances field value and a boolean to check if the value has been set.

func (*CreateClusterProperties) GetLocation

func (o *CreateClusterProperties) GetLocation() string

GetLocation returns the Location field value

func (*CreateClusterProperties) GetLocationOk

func (o *CreateClusterProperties) GetLocationOk() (*string, bool)

GetLocationOk returns a tuple with the Location field value and a boolean to check if the value has been set.

func (*CreateClusterProperties) GetMaintenanceWindow

func (o *CreateClusterProperties) GetMaintenanceWindow() MaintenanceWindow

GetMaintenanceWindow returns the MaintenanceWindow field value if set, zero value otherwise.

func (*CreateClusterProperties) GetMaintenanceWindowOk

func (o *CreateClusterProperties) GetMaintenanceWindowOk() (*MaintenanceWindow, bool)

GetMaintenanceWindowOk returns a tuple with the MaintenanceWindow field value if set, nil otherwise and a boolean to check if the value has been set.

func (*CreateClusterProperties) GetPostgresVersion

func (o *CreateClusterProperties) GetPostgresVersion() string

GetPostgresVersion returns the PostgresVersion field value

func (*CreateClusterProperties) GetPostgresVersionOk

func (o *CreateClusterProperties) GetPostgresVersionOk() (*string, bool)

GetPostgresVersionOk returns a tuple with the PostgresVersion field value and a boolean to check if the value has been set.

func (*CreateClusterProperties) GetRam

func (o *CreateClusterProperties) GetRam() int32

GetRam returns the Ram field value

func (*CreateClusterProperties) GetRamOk

func (o *CreateClusterProperties) GetRamOk() (*int32, bool)

GetRamOk returns a tuple with the Ram field value and a boolean to check if the value has been set.

func (*CreateClusterProperties) GetStorageSize

func (o *CreateClusterProperties) GetStorageSize() int32

GetStorageSize returns the StorageSize field value

func (*CreateClusterProperties) GetStorageSizeOk

func (o *CreateClusterProperties) GetStorageSizeOk() (*int32, bool)

GetStorageSizeOk returns a tuple with the StorageSize field value and a boolean to check if the value has been set.

func (*CreateClusterProperties) GetStorageType

func (o *CreateClusterProperties) GetStorageType() StorageType

GetStorageType returns the StorageType field value

func (*CreateClusterProperties) GetStorageTypeOk

func (o *CreateClusterProperties) GetStorageTypeOk() (*StorageType, bool)

GetStorageTypeOk returns a tuple with the StorageType field value and a boolean to check if the value has been set.

func (*CreateClusterProperties) GetSynchronizationMode

func (o *CreateClusterProperties) GetSynchronizationMode() SynchronizationMode

GetSynchronizationMode returns the SynchronizationMode field value

func (*CreateClusterProperties) GetSynchronizationModeOk

func (o *CreateClusterProperties) GetSynchronizationModeOk() (*SynchronizationMode, bool)

GetSynchronizationModeOk returns a tuple with the SynchronizationMode field value and a boolean to check if the value has been set.

func (*CreateClusterProperties) HasBackupLocation

func (o *CreateClusterProperties) HasBackupLocation() bool

HasBackupLocation returns a boolean if a field has been set.

func (*CreateClusterProperties) HasConnectionPooler

func (o *CreateClusterProperties) HasConnectionPooler() bool

HasConnectionPooler returns a boolean if a field has been set.

func (*CreateClusterProperties) HasFromBackup

func (o *CreateClusterProperties) HasFromBackup() bool

HasFromBackup returns a boolean if a field has been set.

func (*CreateClusterProperties) HasMaintenanceWindow

func (o *CreateClusterProperties) HasMaintenanceWindow() bool

HasMaintenanceWindow returns a boolean if a field has been set.

func (*CreateClusterProperties) SetBackupLocation

func (o *CreateClusterProperties) SetBackupLocation(v string)

SetBackupLocation gets a reference to the given string and assigns it to the BackupLocation field.

func (*CreateClusterProperties) SetConnectionPooler

func (o *CreateClusterProperties) SetConnectionPooler(v ConnectionPooler)

SetConnectionPooler gets a reference to the given ConnectionPooler and assigns it to the ConnectionPooler field.

func (*CreateClusterProperties) SetConnections

func (o *CreateClusterProperties) SetConnections(v []Connection)

SetConnections sets field value

func (*CreateClusterProperties) SetCores

func (o *CreateClusterProperties) SetCores(v int32)

SetCores sets field value

func (*CreateClusterProperties) SetCredentials

func (o *CreateClusterProperties) SetCredentials(v DBUser)

SetCredentials sets field value

func (*CreateClusterProperties) SetDisplayName

func (o *CreateClusterProperties) SetDisplayName(v string)

SetDisplayName sets field value

func (*CreateClusterProperties) SetFromBackup

func (o *CreateClusterProperties) SetFromBackup(v CreateRestoreRequest)

SetFromBackup gets a reference to the given CreateRestoreRequest and assigns it to the FromBackup field.

func (*CreateClusterProperties) SetInstances

func (o *CreateClusterProperties) SetInstances(v int32)

SetInstances sets field value

func (*CreateClusterProperties) SetLocation

func (o *CreateClusterProperties) SetLocation(v string)

SetLocation sets field value

func (*CreateClusterProperties) SetMaintenanceWindow

func (o *CreateClusterProperties) SetMaintenanceWindow(v MaintenanceWindow)

SetMaintenanceWindow gets a reference to the given MaintenanceWindow and assigns it to the MaintenanceWindow field.

func (*CreateClusterProperties) SetPostgresVersion

func (o *CreateClusterProperties) SetPostgresVersion(v string)

SetPostgresVersion sets field value

func (*CreateClusterProperties) SetRam

func (o *CreateClusterProperties) SetRam(v int32)

SetRam sets field value

func (*CreateClusterProperties) SetStorageSize

func (o *CreateClusterProperties) SetStorageSize(v int32)

SetStorageSize sets field value

func (*CreateClusterProperties) SetStorageType

func (o *CreateClusterProperties) SetStorageType(v StorageType)

SetStorageType sets field value

func (*CreateClusterProperties) SetSynchronizationMode

func (o *CreateClusterProperties) SetSynchronizationMode(v SynchronizationMode)

SetSynchronizationMode sets field value

func (CreateClusterProperties) ToMap

func (o CreateClusterProperties) ToMap() (map[string]interface{}, error)

type CreateClusterRequest

type CreateClusterRequest struct {
	Metadata   *ClusterMetadata         `json:"metadata,omitempty"`
	Properties *CreateClusterProperties `json:"properties,omitempty"`
}

CreateClusterRequest Request payload with all data needed to create a new PostgreSQL cluster.

func NewCreateClusterRequest

func NewCreateClusterRequest() *CreateClusterRequest

NewCreateClusterRequest instantiates a new CreateClusterRequest object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewCreateClusterRequestWithDefaults

func NewCreateClusterRequestWithDefaults() *CreateClusterRequest

NewCreateClusterRequestWithDefaults instantiates a new CreateClusterRequest object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*CreateClusterRequest) GetMetadata

func (o *CreateClusterRequest) GetMetadata() ClusterMetadata

GetMetadata returns the Metadata field value if set, zero value otherwise.

func (*CreateClusterRequest) GetMetadataOk

func (o *CreateClusterRequest) GetMetadataOk() (*ClusterMetadata, bool)

GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise and a boolean to check if the value has been set.

func (*CreateClusterRequest) GetProperties

func (o *CreateClusterRequest) GetProperties() CreateClusterProperties

GetProperties returns the Properties field value if set, zero value otherwise.

func (*CreateClusterRequest) GetPropertiesOk

func (o *CreateClusterRequest) GetPropertiesOk() (*CreateClusterProperties, bool)

GetPropertiesOk returns a tuple with the Properties field value if set, nil otherwise and a boolean to check if the value has been set.

func (*CreateClusterRequest) HasMetadata

func (o *CreateClusterRequest) HasMetadata() bool

HasMetadata returns a boolean if a field has been set.

func (*CreateClusterRequest) HasProperties

func (o *CreateClusterRequest) HasProperties() bool

HasProperties returns a boolean if a field has been set.

func (*CreateClusterRequest) SetMetadata

func (o *CreateClusterRequest) SetMetadata(v ClusterMetadata)

SetMetadata gets a reference to the given ClusterMetadata and assigns it to the Metadata field.

func (*CreateClusterRequest) SetProperties

func (o *CreateClusterRequest) SetProperties(v CreateClusterProperties)

SetProperties gets a reference to the given CreateClusterProperties and assigns it to the Properties field.

func (CreateClusterRequest) ToMap

func (o CreateClusterRequest) ToMap() (map[string]interface{}, error)

type CreateRestoreRequest

type CreateRestoreRequest struct {
	// The unique ID of the backup you want to restore.
	BackupId string `json:"backupId"`
	// If this value is supplied as ISO 8601 timestamp, the backup will be replayed up until the given timestamp. If empty, the backup will be applied completely.
	RecoveryTargetTime *IonosTime `json:"recoveryTargetTime,omitempty"`
}

CreateRestoreRequest The restore request.

func NewCreateRestoreRequest

func NewCreateRestoreRequest(backupId string) *CreateRestoreRequest

NewCreateRestoreRequest instantiates a new CreateRestoreRequest object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewCreateRestoreRequestWithDefaults

func NewCreateRestoreRequestWithDefaults() *CreateRestoreRequest

NewCreateRestoreRequestWithDefaults instantiates a new CreateRestoreRequest object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*CreateRestoreRequest) GetBackupId

func (o *CreateRestoreRequest) GetBackupId() string

GetBackupId returns the BackupId field value

func (*CreateRestoreRequest) GetBackupIdOk

func (o *CreateRestoreRequest) GetBackupIdOk() (*string, bool)

GetBackupIdOk returns a tuple with the BackupId field value and a boolean to check if the value has been set.

func (*CreateRestoreRequest) GetRecoveryTargetTime

func (o *CreateRestoreRequest) GetRecoveryTargetTime() time.Time

GetRecoveryTargetTime returns the RecoveryTargetTime field value if set, zero value otherwise.

func (*CreateRestoreRequest) GetRecoveryTargetTimeOk

func (o *CreateRestoreRequest) GetRecoveryTargetTimeOk() (*time.Time, bool)

GetRecoveryTargetTimeOk returns a tuple with the RecoveryTargetTime field value if set, nil otherwise and a boolean to check if the value has been set.

func (*CreateRestoreRequest) HasRecoveryTargetTime

func (o *CreateRestoreRequest) HasRecoveryTargetTime() bool

HasRecoveryTargetTime returns a boolean if a field has been set.

func (*CreateRestoreRequest) SetBackupId

func (o *CreateRestoreRequest) SetBackupId(v string)

SetBackupId sets field value

func (*CreateRestoreRequest) SetRecoveryTargetTime

func (o *CreateRestoreRequest) SetRecoveryTargetTime(v time.Time)

SetRecoveryTargetTime gets a reference to the given time.Time and assigns it to the RecoveryTargetTime field.

func (CreateRestoreRequest) ToMap

func (o CreateRestoreRequest) ToMap() (map[string]interface{}, error)

type DBUser

type DBUser struct {
	// The username for the initial PostgreSQL user. Some system usernames are restricted (e.g. \"postgres\", \"admin\", \"standby\").
	Username string `json:"username"`
	Password string `json:"password"`
}

DBUser Credentials for the database user to be created.

func NewDBUser

func NewDBUser(username string, password string) *DBUser

NewDBUser instantiates a new DBUser object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewDBUserWithDefaults

func NewDBUserWithDefaults() *DBUser

NewDBUserWithDefaults instantiates a new DBUser object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*DBUser) GetPassword

func (o *DBUser) GetPassword() string

GetPassword returns the Password field value

func (*DBUser) GetPasswordOk

func (o *DBUser) GetPasswordOk() (*string, bool)

GetPasswordOk returns a tuple with the Password field value and a boolean to check if the value has been set.

func (*DBUser) GetUsername

func (o *DBUser) GetUsername() string

GetUsername returns the Username field value

func (*DBUser) GetUsernameOk

func (o *DBUser) GetUsernameOk() (*string, bool)

GetUsernameOk returns a tuple with the Username field value and a boolean to check if the value has been set.

func (*DBUser) SetPassword

func (o *DBUser) SetPassword(v string)

SetPassword sets field value

func (*DBUser) SetUsername

func (o *DBUser) SetUsername(v string)

SetUsername sets field value

func (DBUser) ToMap

func (o DBUser) ToMap() (map[string]interface{}, error)

type Database

type Database struct {
	Properties DatabaseProperties `json:"properties"`
}

Database struct for Database

func NewDatabase

func NewDatabase(properties DatabaseProperties) *Database

NewDatabase instantiates a new Database object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewDatabaseWithDefaults

func NewDatabaseWithDefaults() *Database

NewDatabaseWithDefaults instantiates a new Database object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*Database) GetProperties

func (o *Database) GetProperties() DatabaseProperties

GetProperties returns the Properties field value

func (*Database) GetPropertiesOk

func (o *Database) GetPropertiesOk() (*DatabaseProperties, bool)

GetPropertiesOk returns a tuple with the Properties field value and a boolean to check if the value has been set.

func (*Database) SetProperties

func (o *Database) SetProperties(v DatabaseProperties)

SetProperties sets field value

func (Database) ToMap

func (o Database) ToMap() (map[string]interface{}, error)

type DatabaseItems

type DatabaseItems struct {
	Items []DatabaseResource `json:"items"`
}

DatabaseItems struct for DatabaseItems

func NewDatabaseItems

func NewDatabaseItems(items []DatabaseResource) *DatabaseItems

NewDatabaseItems instantiates a new DatabaseItems object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewDatabaseItemsWithDefaults

func NewDatabaseItemsWithDefaults() *DatabaseItems

NewDatabaseItemsWithDefaults instantiates a new DatabaseItems object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*DatabaseItems) GetItems

func (o *DatabaseItems) GetItems() []DatabaseResource

GetItems returns the Items field value

func (*DatabaseItems) GetItemsOk

func (o *DatabaseItems) GetItemsOk() ([]DatabaseResource, bool)

GetItemsOk returns a tuple with the Items field value and a boolean to check if the value has been set.

func (*DatabaseItems) SetItems

func (o *DatabaseItems) SetItems(v []DatabaseResource)

SetItems sets field value

func (DatabaseItems) ToMap

func (o DatabaseItems) ToMap() (map[string]interface{}, error)

type DatabaseList

type DatabaseList struct {
	// The offset specified in the request (if none was specified, the default offset is 0).
	Offset *int32 `json:"offset,omitempty"`
	// The limit specified in the request (if none was specified, the default limit is 100).
	Limit *int32           `json:"limit,omitempty"`
	Links *PaginationLinks `json:"_links,omitempty"`
	Type  ResourceType     `json:"type"`
	// The unique ID of the resource.
	Id string `json:"id"`
	// Absolute URL of the resource.
	Href  string             `json:"href"`
	Items []DatabaseResource `json:"items"`
}

DatabaseList struct for DatabaseList

func NewDatabaseList

func NewDatabaseList(type_ ResourceType, id string, href string, items []DatabaseResource) *DatabaseList

NewDatabaseList instantiates a new DatabaseList object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewDatabaseListWithDefaults

func NewDatabaseListWithDefaults() *DatabaseList

NewDatabaseListWithDefaults instantiates a new DatabaseList object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*DatabaseList) GetHref

func (o *DatabaseList) GetHref() string

GetHref returns the Href field value

func (*DatabaseList) GetHrefOk

func (o *DatabaseList) GetHrefOk() (*string, bool)

GetHrefOk returns a tuple with the Href field value and a boolean to check if the value has been set.

func (*DatabaseList) GetId

func (o *DatabaseList) GetId() string

GetId returns the Id field value

func (*DatabaseList) GetIdOk

func (o *DatabaseList) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.

func (*DatabaseList) GetItems

func (o *DatabaseList) GetItems() []DatabaseResource

GetItems returns the Items field value

func (*DatabaseList) GetItemsOk

func (o *DatabaseList) GetItemsOk() ([]DatabaseResource, bool)

GetItemsOk returns a tuple with the Items field value and a boolean to check if the value has been set.

func (*DatabaseList) GetLimit

func (o *DatabaseList) GetLimit() int32

GetLimit returns the Limit field value if set, zero value otherwise.

func (*DatabaseList) GetLimitOk

func (o *DatabaseList) GetLimitOk() (*int32, bool)

GetLimitOk returns a tuple with the Limit field value if set, nil otherwise and a boolean to check if the value has been set.

func (o *DatabaseList) GetLinks() PaginationLinks

GetLinks returns the Links field value if set, zero value otherwise.

func (*DatabaseList) GetLinksOk

func (o *DatabaseList) GetLinksOk() (*PaginationLinks, bool)

GetLinksOk returns a tuple with the Links field value if set, nil otherwise and a boolean to check if the value has been set.

func (*DatabaseList) GetOffset

func (o *DatabaseList) GetOffset() int32

GetOffset returns the Offset field value if set, zero value otherwise.

func (*DatabaseList) GetOffsetOk

func (o *DatabaseList) GetOffsetOk() (*int32, bool)

GetOffsetOk returns a tuple with the Offset field value if set, nil otherwise and a boolean to check if the value has been set.

func (*DatabaseList) GetType

func (o *DatabaseList) GetType() ResourceType

GetType returns the Type field value

func (*DatabaseList) GetTypeOk

func (o *DatabaseList) GetTypeOk() (*ResourceType, bool)

GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.

func (*DatabaseList) HasLimit

func (o *DatabaseList) HasLimit() bool

HasLimit returns a boolean if a field has been set.

func (o *DatabaseList) HasLinks() bool

HasLinks returns a boolean if a field has been set.

func (*DatabaseList) HasOffset

func (o *DatabaseList) HasOffset() bool

HasOffset returns a boolean if a field has been set.

func (*DatabaseList) SetHref

func (o *DatabaseList) SetHref(v string)

SetHref sets field value

func (*DatabaseList) SetId

func (o *DatabaseList) SetId(v string)

SetId sets field value

func (*DatabaseList) SetItems

func (o *DatabaseList) SetItems(v []DatabaseResource)

SetItems sets field value

func (*DatabaseList) SetLimit

func (o *DatabaseList) SetLimit(v int32)

SetLimit gets a reference to the given int32 and assigns it to the Limit field.

func (o *DatabaseList) SetLinks(v PaginationLinks)

SetLinks gets a reference to the given PaginationLinks and assigns it to the Links field.

func (*DatabaseList) SetOffset

func (o *DatabaseList) SetOffset(v int32)

SetOffset gets a reference to the given int32 and assigns it to the Offset field.

func (*DatabaseList) SetType

func (o *DatabaseList) SetType(v ResourceType)

SetType sets field value

func (DatabaseList) ToMap

func (o DatabaseList) ToMap() (map[string]interface{}, error)

type DatabaseProperties

type DatabaseProperties struct {
	// The databasename of a given database.
	Name string `json:"name"`
	// The name of the role owning a given database.
	Owner string `json:"owner"`
}

DatabaseProperties struct for DatabaseProperties

func NewDatabaseProperties

func NewDatabaseProperties(name string, owner string) *DatabaseProperties

NewDatabaseProperties instantiates a new DatabaseProperties object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewDatabasePropertiesWithDefaults

func NewDatabasePropertiesWithDefaults() *DatabaseProperties

NewDatabasePropertiesWithDefaults instantiates a new DatabaseProperties object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*DatabaseProperties) GetName

func (o *DatabaseProperties) GetName() string

GetName returns the Name field value

func (*DatabaseProperties) GetNameOk

func (o *DatabaseProperties) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (*DatabaseProperties) GetOwner

func (o *DatabaseProperties) GetOwner() string

GetOwner returns the Owner field value

func (*DatabaseProperties) GetOwnerOk

func (o *DatabaseProperties) GetOwnerOk() (*string, bool)

GetOwnerOk returns a tuple with the Owner field value and a boolean to check if the value has been set.

func (*DatabaseProperties) SetName

func (o *DatabaseProperties) SetName(v string)

SetName sets field value

func (*DatabaseProperties) SetOwner

func (o *DatabaseProperties) SetOwner(v string)

SetOwner sets field value

func (DatabaseProperties) ToMap

func (o DatabaseProperties) ToMap() (map[string]interface{}, error)

type DatabaseResource

type DatabaseResource struct {
	Type ResourceType `json:"type"`
	// The unique ID of the resource.
	Id string `json:"id"`
	// Absolute URL of the resource.
	Href       string             `json:"href"`
	Metadata   *Metadata          `json:"metadata,omitempty"`
	Properties DatabaseProperties `json:"properties"`
}

DatabaseResource struct for DatabaseResource

func NewDatabaseResource

func NewDatabaseResource(type_ ResourceType, id string, href string, properties DatabaseProperties) *DatabaseResource

NewDatabaseResource instantiates a new DatabaseResource object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewDatabaseResourceWithDefaults

func NewDatabaseResourceWithDefaults() *DatabaseResource

NewDatabaseResourceWithDefaults instantiates a new DatabaseResource object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*DatabaseResource) GetHref

func (o *DatabaseResource) GetHref() string

GetHref returns the Href field value

func (*DatabaseResource) GetHrefOk

func (o *DatabaseResource) GetHrefOk() (*string, bool)

GetHrefOk returns a tuple with the Href field value and a boolean to check if the value has been set.

func (*DatabaseResource) GetId

func (o *DatabaseResource) GetId() string

GetId returns the Id field value

func (*DatabaseResource) GetIdOk

func (o *DatabaseResource) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.

func (*DatabaseResource) GetMetadata

func (o *DatabaseResource) GetMetadata() Metadata

GetMetadata returns the Metadata field value if set, zero value otherwise.

func (*DatabaseResource) GetMetadataOk

func (o *DatabaseResource) GetMetadataOk() (*Metadata, bool)

GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise and a boolean to check if the value has been set.

func (*DatabaseResource) GetProperties

func (o *DatabaseResource) GetProperties() DatabaseProperties

GetProperties returns the Properties field value

func (*DatabaseResource) GetPropertiesOk

func (o *DatabaseResource) GetPropertiesOk() (*DatabaseProperties, bool)

GetPropertiesOk returns a tuple with the Properties field value and a boolean to check if the value has been set.

func (*DatabaseResource) GetType

func (o *DatabaseResource) GetType() ResourceType

GetType returns the Type field value

func (*DatabaseResource) GetTypeOk

func (o *DatabaseResource) GetTypeOk() (*ResourceType, bool)

GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.

func (*DatabaseResource) HasMetadata

func (o *DatabaseResource) HasMetadata() bool

HasMetadata returns a boolean if a field has been set.

func (*DatabaseResource) SetHref

func (o *DatabaseResource) SetHref(v string)

SetHref sets field value

func (*DatabaseResource) SetId

func (o *DatabaseResource) SetId(v string)

SetId sets field value

func (*DatabaseResource) SetMetadata

func (o *DatabaseResource) SetMetadata(v Metadata)

SetMetadata gets a reference to the given Metadata and assigns it to the Metadata field.

func (*DatabaseResource) SetProperties

func (o *DatabaseResource) SetProperties(v DatabaseProperties)

SetProperties sets field value

func (*DatabaseResource) SetType

func (o *DatabaseResource) SetType(v ResourceType)

SetType sets field value

func (DatabaseResource) ToMap

func (o DatabaseResource) ToMap() (map[string]interface{}, error)

type DatabasesApiService

type DatabasesApiService service

DatabasesApiService DatabasesApi service

func (*DatabasesApiService) DatabasesDelete

func (a *DatabasesApiService) DatabasesDelete(ctx _context.Context, clusterId string, databasename string) ApiDatabasesDeleteRequest

* DatabasesDelete Delete database * Deletes a single database * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param clusterId The unique ID of the cluster. * @param databasename The database name. * @return ApiDatabasesDeleteRequest

func (*DatabasesApiService) DatabasesDeleteExecute

func (a *DatabasesApiService) DatabasesDeleteExecute(r ApiDatabasesDeleteRequest) (*shared.APIResponse, error)

* Execute executes the request

func (*DatabasesApiService) DatabasesGet

func (a *DatabasesApiService) DatabasesGet(ctx _context.Context, clusterId string, databasename string) ApiDatabasesGetRequest

* DatabasesGet Get database * Retrieves a single database * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param clusterId The unique ID of the cluster. * @param databasename The database name. * @return ApiDatabasesGetRequest

func (*DatabasesApiService) DatabasesGetExecute

* Execute executes the request * @return DatabaseResource

func (*DatabasesApiService) DatabasesList

func (a *DatabasesApiService) DatabasesList(ctx _context.Context, clusterId string) ApiDatabasesListRequest

* DatabasesList List databases * Retrieves a list of databases * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param clusterId The unique ID of the cluster. * @return ApiDatabasesListRequest

func (*DatabasesApiService) DatabasesListExecute

* Execute executes the request * @return DatabaseList

func (*DatabasesApiService) DatabasesPost

func (a *DatabasesApiService) DatabasesPost(ctx _context.Context, clusterId string) ApiDatabasesPostRequest

* DatabasesPost Create a database * Create a new database * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param clusterId The unique ID of the cluster. * @return ApiDatabasesPostRequest

func (*DatabasesApiService) DatabasesPostExecute

* Execute executes the request * @return DatabaseResource

type DayOfTheWeek

type DayOfTheWeek string

DayOfTheWeek The name of the week day.

const (
	DAYOFTHEWEEK_SUNDAY    DayOfTheWeek = "Sunday"
	DAYOFTHEWEEK_MONDAY    DayOfTheWeek = "Monday"
	DAYOFTHEWEEK_TUESDAY   DayOfTheWeek = "Tuesday"
	DAYOFTHEWEEK_WEDNESDAY DayOfTheWeek = "Wednesday"
	DAYOFTHEWEEK_THURSDAY  DayOfTheWeek = "Thursday"
	DAYOFTHEWEEK_FRIDAY    DayOfTheWeek = "Friday"
	DAYOFTHEWEEK_SATURDAY  DayOfTheWeek = "Saturday"
)

List of DayOfTheWeek

func (DayOfTheWeek) Ptr

func (v DayOfTheWeek) Ptr() *DayOfTheWeek

Ptr returns reference to DayOfTheWeek value

func (*DayOfTheWeek) UnmarshalJSON

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

type DeprecatedPagination

type DeprecatedPagination struct {
	// The offset specified in the request (if none was specified, the default offset is 0).
	Offset *int32 `json:"offset,omitempty"`
	// The limit specified in the request (if none was specified, the default limit is 100).
	Limit *int32           `json:"limit,omitempty"`
	Links *PaginationLinks `json:"links,omitempty"`
}

DeprecatedPagination Pagination information in list responses. DEPRECATED because of misspelled _links attribute.

func NewDeprecatedPagination

func NewDeprecatedPagination() *DeprecatedPagination

NewDeprecatedPagination instantiates a new DeprecatedPagination object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewDeprecatedPaginationWithDefaults

func NewDeprecatedPaginationWithDefaults() *DeprecatedPagination

NewDeprecatedPaginationWithDefaults instantiates a new DeprecatedPagination object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*DeprecatedPagination) GetLimit

func (o *DeprecatedPagination) GetLimit() int32

GetLimit returns the Limit field value if set, zero value otherwise.

func (*DeprecatedPagination) GetLimitOk

func (o *DeprecatedPagination) GetLimitOk() (*int32, bool)

GetLimitOk returns a tuple with the Limit field value if set, nil otherwise and a boolean to check if the value has been set.

func (o *DeprecatedPagination) GetLinks() PaginationLinks

GetLinks returns the Links field value if set, zero value otherwise.

func (*DeprecatedPagination) GetLinksOk

func (o *DeprecatedPagination) GetLinksOk() (*PaginationLinks, bool)

GetLinksOk returns a tuple with the Links field value if set, nil otherwise and a boolean to check if the value has been set.

func (*DeprecatedPagination) GetOffset

func (o *DeprecatedPagination) GetOffset() int32

GetOffset returns the Offset field value if set, zero value otherwise.

func (*DeprecatedPagination) GetOffsetOk

func (o *DeprecatedPagination) GetOffsetOk() (*int32, bool)

GetOffsetOk returns a tuple with the Offset field value if set, nil otherwise and a boolean to check if the value has been set.

func (*DeprecatedPagination) HasLimit

func (o *DeprecatedPagination) HasLimit() bool

HasLimit returns a boolean if a field has been set.

func (o *DeprecatedPagination) HasLinks() bool

HasLinks returns a boolean if a field has been set.

func (*DeprecatedPagination) HasOffset

func (o *DeprecatedPagination) HasOffset() bool

HasOffset returns a boolean if a field has been set.

func (*DeprecatedPagination) SetLimit

func (o *DeprecatedPagination) SetLimit(v int32)

SetLimit gets a reference to the given int32 and assigns it to the Limit field.

func (o *DeprecatedPagination) SetLinks(v PaginationLinks)

SetLinks gets a reference to the given PaginationLinks and assigns it to the Links field.

func (*DeprecatedPagination) SetOffset

func (o *DeprecatedPagination) SetOffset(v int32)

SetOffset gets a reference to the given int32 and assigns it to the Offset field.

func (DeprecatedPagination) ToMap

func (o DeprecatedPagination) ToMap() (map[string]interface{}, error)

type ErrorMessage

type ErrorMessage struct {
	// Application internal error code
	ErrorCode *string `json:"errorCode,omitempty"`
	// A human readable explanation specific to this occurrence of the problem.
	Message *string `json:"message,omitempty"`
}

ErrorMessage struct for ErrorMessage

func NewErrorMessage

func NewErrorMessage() *ErrorMessage

NewErrorMessage instantiates a new ErrorMessage object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewErrorMessageWithDefaults

func NewErrorMessageWithDefaults() *ErrorMessage

NewErrorMessageWithDefaults instantiates a new ErrorMessage object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ErrorMessage) GetErrorCode

func (o *ErrorMessage) GetErrorCode() string

GetErrorCode returns the ErrorCode field value if set, zero value otherwise.

func (*ErrorMessage) GetErrorCodeOk

func (o *ErrorMessage) GetErrorCodeOk() (*string, bool)

GetErrorCodeOk returns a tuple with the ErrorCode field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ErrorMessage) GetMessage

func (o *ErrorMessage) GetMessage() string

GetMessage returns the Message field value if set, zero value otherwise.

func (*ErrorMessage) GetMessageOk

func (o *ErrorMessage) GetMessageOk() (*string, bool)

GetMessageOk returns a tuple with the Message field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ErrorMessage) HasErrorCode

func (o *ErrorMessage) HasErrorCode() bool

HasErrorCode returns a boolean if a field has been set.

func (*ErrorMessage) HasMessage

func (o *ErrorMessage) HasMessage() bool

HasMessage returns a boolean if a field has been set.

func (*ErrorMessage) SetErrorCode

func (o *ErrorMessage) SetErrorCode(v string)

SetErrorCode gets a reference to the given string and assigns it to the ErrorCode field.

func (*ErrorMessage) SetMessage

func (o *ErrorMessage) SetMessage(v string)

SetMessage gets a reference to the given string and assigns it to the Message field.

func (ErrorMessage) ToMap

func (o ErrorMessage) ToMap() (map[string]interface{}, error)

type ErrorResponse

type ErrorResponse struct {
	// The HTTP status code of the operation.
	HttpStatus *int32         `json:"httpStatus,omitempty"`
	Messages   []ErrorMessage `json:"messages,omitempty"`
}

ErrorResponse struct for ErrorResponse

func NewErrorResponse

func NewErrorResponse() *ErrorResponse

NewErrorResponse instantiates a new ErrorResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewErrorResponseWithDefaults

func NewErrorResponseWithDefaults() *ErrorResponse

NewErrorResponseWithDefaults instantiates a new ErrorResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ErrorResponse) GetHttpStatus

func (o *ErrorResponse) GetHttpStatus() int32

GetHttpStatus returns the HttpStatus field value if set, zero value otherwise.

func (*ErrorResponse) GetHttpStatusOk

func (o *ErrorResponse) GetHttpStatusOk() (*int32, bool)

GetHttpStatusOk returns a tuple with the HttpStatus field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ErrorResponse) GetMessages

func (o *ErrorResponse) GetMessages() []ErrorMessage

GetMessages returns the Messages field value if set, zero value otherwise.

func (*ErrorResponse) GetMessagesOk

func (o *ErrorResponse) GetMessagesOk() ([]ErrorMessage, bool)

GetMessagesOk returns a tuple with the Messages field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ErrorResponse) HasHttpStatus

func (o *ErrorResponse) HasHttpStatus() bool

HasHttpStatus returns a boolean if a field has been set.

func (*ErrorResponse) HasMessages

func (o *ErrorResponse) HasMessages() bool

HasMessages returns a boolean if a field has been set.

func (*ErrorResponse) SetHttpStatus

func (o *ErrorResponse) SetHttpStatus(v int32)

SetHttpStatus gets a reference to the given int32 and assigns it to the HttpStatus field.

func (*ErrorResponse) SetMessages

func (o *ErrorResponse) SetMessages(v []ErrorMessage)

SetMessages gets a reference to the given []ErrorMessage and assigns it to the Messages field.

func (ErrorResponse) ToMap

func (o ErrorResponse) ToMap() (map[string]interface{}, error)

type IonosTime

type IonosTime struct {
	time.Time
}

func (*IonosTime) UnmarshalJSON

func (t *IonosTime) UnmarshalJSON(data []byte) error

type LogsApiService

type LogsApiService service

LogsApiService LogsApi service

func (*LogsApiService) ClusterLogsGet

func (a *LogsApiService) ClusterLogsGet(ctx _context.Context, clusterId string) ApiClusterLogsGetRequest

* ClusterLogsGet Get logs of your cluster * Retrieves PostgreSQL logs based on the given parameters. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param clusterId The unique ID of the cluster. * @return ApiClusterLogsGetRequest

func (*LogsApiService) ClusterLogsGetExecute

* Execute executes the request * @return ClusterLogs

type MaintenanceWindow

type MaintenanceWindow struct {
	// Start of the maintenance window in UTC time.
	Time         string       `json:"time"`
	DayOfTheWeek DayOfTheWeek `json:"dayOfTheWeek"`
}

MaintenanceWindow A weekly 4 hour-long window, during which maintenance might occur.

func NewMaintenanceWindow

func NewMaintenanceWindow(time string, dayOfTheWeek DayOfTheWeek) *MaintenanceWindow

NewMaintenanceWindow instantiates a new MaintenanceWindow object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewMaintenanceWindowWithDefaults

func NewMaintenanceWindowWithDefaults() *MaintenanceWindow

NewMaintenanceWindowWithDefaults instantiates a new MaintenanceWindow object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*MaintenanceWindow) GetDayOfTheWeek

func (o *MaintenanceWindow) GetDayOfTheWeek() DayOfTheWeek

GetDayOfTheWeek returns the DayOfTheWeek field value

func (*MaintenanceWindow) GetDayOfTheWeekOk

func (o *MaintenanceWindow) GetDayOfTheWeekOk() (*DayOfTheWeek, bool)

GetDayOfTheWeekOk returns a tuple with the DayOfTheWeek field value and a boolean to check if the value has been set.

func (*MaintenanceWindow) GetTime

func (o *MaintenanceWindow) GetTime() string

GetTime returns the Time field value

func (*MaintenanceWindow) GetTimeOk

func (o *MaintenanceWindow) GetTimeOk() (*string, bool)

GetTimeOk returns a tuple with the Time field value and a boolean to check if the value has been set.

func (*MaintenanceWindow) SetDayOfTheWeek

func (o *MaintenanceWindow) SetDayOfTheWeek(v DayOfTheWeek)

SetDayOfTheWeek sets field value

func (*MaintenanceWindow) SetTime

func (o *MaintenanceWindow) SetTime(v string)

SetTime sets field value

func (MaintenanceWindow) ToMap

func (o MaintenanceWindow) ToMap() (map[string]interface{}, error)

type MappedNullable

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

type Metadata

type Metadata struct {
	// The URN of an IAM user.
	CreatedBy *string `json:"createdBy,omitempty"`
	// The ID of an IAM user.
	CreatedByUserId *string `json:"createdByUserId,omitempty"`
	// An ISO 8601 timestamp.
	CreatedDate *IonosTime `json:"createdDate,omitempty"`
	// The URN of an IAM user.
	LastModifiedBy *string `json:"lastModifiedBy,omitempty"`
	// The ID of an IAM user.
	LastModifiedByUserId *string `json:"lastModifiedByUserId,omitempty"`
	// An ISO 8601 timestamp.
	LastModifiedDate *IonosTime `json:"lastModifiedDate,omitempty"`
	// The URN of the resource.
	ResourceURN *string `json:"resourceURN,omitempty"`
}

Metadata struct for Metadata

func NewMetadata

func NewMetadata() *Metadata

NewMetadata instantiates a new Metadata object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewMetadataWithDefaults

func NewMetadataWithDefaults() *Metadata

NewMetadataWithDefaults instantiates a new Metadata object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*Metadata) GetCreatedBy

func (o *Metadata) GetCreatedBy() string

GetCreatedBy returns the CreatedBy field value if set, zero value otherwise.

func (*Metadata) GetCreatedByOk

func (o *Metadata) GetCreatedByOk() (*string, bool)

GetCreatedByOk returns a tuple with the CreatedBy field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Metadata) GetCreatedByUserId

func (o *Metadata) GetCreatedByUserId() string

GetCreatedByUserId returns the CreatedByUserId field value if set, zero value otherwise.

func (*Metadata) GetCreatedByUserIdOk

func (o *Metadata) GetCreatedByUserIdOk() (*string, bool)

GetCreatedByUserIdOk returns a tuple with the CreatedByUserId field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Metadata) GetCreatedDate

func (o *Metadata) GetCreatedDate() time.Time

GetCreatedDate returns the CreatedDate field value if set, zero value otherwise.

func (*Metadata) GetCreatedDateOk

func (o *Metadata) GetCreatedDateOk() (*time.Time, bool)

GetCreatedDateOk returns a tuple with the CreatedDate field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Metadata) GetLastModifiedBy

func (o *Metadata) GetLastModifiedBy() string

GetLastModifiedBy returns the LastModifiedBy field value if set, zero value otherwise.

func (*Metadata) GetLastModifiedByOk

func (o *Metadata) GetLastModifiedByOk() (*string, bool)

GetLastModifiedByOk returns a tuple with the LastModifiedBy field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Metadata) GetLastModifiedByUserId

func (o *Metadata) GetLastModifiedByUserId() string

GetLastModifiedByUserId returns the LastModifiedByUserId field value if set, zero value otherwise.

func (*Metadata) GetLastModifiedByUserIdOk

func (o *Metadata) GetLastModifiedByUserIdOk() (*string, bool)

GetLastModifiedByUserIdOk returns a tuple with the LastModifiedByUserId field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Metadata) GetLastModifiedDate

func (o *Metadata) GetLastModifiedDate() time.Time

GetLastModifiedDate returns the LastModifiedDate field value if set, zero value otherwise.

func (*Metadata) GetLastModifiedDateOk

func (o *Metadata) GetLastModifiedDateOk() (*time.Time, bool)

GetLastModifiedDateOk returns a tuple with the LastModifiedDate field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Metadata) GetResourceURN

func (o *Metadata) GetResourceURN() string

GetResourceURN returns the ResourceURN field value if set, zero value otherwise.

func (*Metadata) GetResourceURNOk

func (o *Metadata) GetResourceURNOk() (*string, bool)

GetResourceURNOk returns a tuple with the ResourceURN field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Metadata) HasCreatedBy

func (o *Metadata) HasCreatedBy() bool

HasCreatedBy returns a boolean if a field has been set.

func (*Metadata) HasCreatedByUserId

func (o *Metadata) HasCreatedByUserId() bool

HasCreatedByUserId returns a boolean if a field has been set.

func (*Metadata) HasCreatedDate

func (o *Metadata) HasCreatedDate() bool

HasCreatedDate returns a boolean if a field has been set.

func (*Metadata) HasLastModifiedBy

func (o *Metadata) HasLastModifiedBy() bool

HasLastModifiedBy returns a boolean if a field has been set.

func (*Metadata) HasLastModifiedByUserId

func (o *Metadata) HasLastModifiedByUserId() bool

HasLastModifiedByUserId returns a boolean if a field has been set.

func (*Metadata) HasLastModifiedDate

func (o *Metadata) HasLastModifiedDate() bool

HasLastModifiedDate returns a boolean if a field has been set.

func (*Metadata) HasResourceURN

func (o *Metadata) HasResourceURN() bool

HasResourceURN returns a boolean if a field has been set.

func (*Metadata) SetCreatedBy

func (o *Metadata) SetCreatedBy(v string)

SetCreatedBy gets a reference to the given string and assigns it to the CreatedBy field.

func (*Metadata) SetCreatedByUserId

func (o *Metadata) SetCreatedByUserId(v string)

SetCreatedByUserId gets a reference to the given string and assigns it to the CreatedByUserId field.

func (*Metadata) SetCreatedDate

func (o *Metadata) SetCreatedDate(v time.Time)

SetCreatedDate gets a reference to the given time.Time and assigns it to the CreatedDate field.

func (*Metadata) SetLastModifiedBy

func (o *Metadata) SetLastModifiedBy(v string)

SetLastModifiedBy gets a reference to the given string and assigns it to the LastModifiedBy field.

func (*Metadata) SetLastModifiedByUserId

func (o *Metadata) SetLastModifiedByUserId(v string)

SetLastModifiedByUserId gets a reference to the given string and assigns it to the LastModifiedByUserId field.

func (*Metadata) SetLastModifiedDate

func (o *Metadata) SetLastModifiedDate(v time.Time)

SetLastModifiedDate gets a reference to the given time.Time and assigns it to the LastModifiedDate field.

func (*Metadata) SetResourceURN

func (o *Metadata) SetResourceURN(v string)

SetResourceURN gets a reference to the given string and assigns it to the ResourceURN field.

func (Metadata) ToMap

func (o Metadata) ToMap() (map[string]interface{}, error)

type MetadataApiService

type MetadataApiService service

MetadataApiService MetadataApi service

func (*MetadataApiService) InfosVersionGet

* InfosVersionGet Get the current API version * Retrieves the current version of the responding API. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @return ApiInfosVersionGetRequest

func (*MetadataApiService) InfosVersionGetExecute

* Execute executes the request * @return APIVersion

func (*MetadataApiService) InfosVersionsGet

* InfosVersionsGet Fetch all API versions * Retrieves all available versions of the responding API. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @return ApiInfosVersionsGetRequest

func (*MetadataApiService) InfosVersionsGetExecute

func (a *MetadataApiService) InfosVersionsGetExecute(r ApiInfosVersionsGetRequest) ([]APIVersion, *shared.APIResponse, error)

* Execute executes the request * @return []APIVersion

type NullableAPIVersion

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

func NewNullableAPIVersion

func NewNullableAPIVersion(val *APIVersion) *NullableAPIVersion

func (NullableAPIVersion) Get

func (v NullableAPIVersion) Get() *APIVersion

func (NullableAPIVersion) IsSet

func (v NullableAPIVersion) IsSet() bool

func (NullableAPIVersion) MarshalJSON

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

func (*NullableAPIVersion) Set

func (v *NullableAPIVersion) Set(val *APIVersion)

func (*NullableAPIVersion) UnmarshalJSON

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

func (*NullableAPIVersion) Unset

func (v *NullableAPIVersion) Unset()

type NullableBackupMetadata

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

func NewNullableBackupMetadata

func NewNullableBackupMetadata(val *BackupMetadata) *NullableBackupMetadata

func (NullableBackupMetadata) Get

func (NullableBackupMetadata) IsSet

func (v NullableBackupMetadata) IsSet() bool

func (NullableBackupMetadata) MarshalJSON

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

func (*NullableBackupMetadata) Set

func (*NullableBackupMetadata) UnmarshalJSON

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

func (*NullableBackupMetadata) Unset

func (v *NullableBackupMetadata) Unset()

type NullableBackupResponse

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

func NewNullableBackupResponse

func NewNullableBackupResponse(val *BackupResponse) *NullableBackupResponse

func (NullableBackupResponse) Get

func (NullableBackupResponse) IsSet

func (v NullableBackupResponse) IsSet() bool

func (NullableBackupResponse) MarshalJSON

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

func (*NullableBackupResponse) Set

func (*NullableBackupResponse) UnmarshalJSON

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

func (*NullableBackupResponse) Unset

func (v *NullableBackupResponse) Unset()

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 NullableClusterBackup

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

func NewNullableClusterBackup

func NewNullableClusterBackup(val *ClusterBackup) *NullableClusterBackup

func (NullableClusterBackup) Get

func (NullableClusterBackup) IsSet

func (v NullableClusterBackup) IsSet() bool

func (NullableClusterBackup) MarshalJSON

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

func (*NullableClusterBackup) Set

func (v *NullableClusterBackup) Set(val *ClusterBackup)

func (*NullableClusterBackup) UnmarshalJSON

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

func (*NullableClusterBackup) Unset

func (v *NullableClusterBackup) Unset()

type NullableClusterBackupList

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

func NewNullableClusterBackupList

func NewNullableClusterBackupList(val *ClusterBackupList) *NullableClusterBackupList

func (NullableClusterBackupList) Get

func (NullableClusterBackupList) IsSet

func (v NullableClusterBackupList) IsSet() bool

func (NullableClusterBackupList) MarshalJSON

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

func (*NullableClusterBackupList) Set

func (*NullableClusterBackupList) UnmarshalJSON

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

func (*NullableClusterBackupList) Unset

func (v *NullableClusterBackupList) Unset()

type NullableClusterBackupListAllOf

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

func (NullableClusterBackupListAllOf) Get

func (NullableClusterBackupListAllOf) IsSet

func (NullableClusterBackupListAllOf) MarshalJSON

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

func (*NullableClusterBackupListAllOf) Set

func (*NullableClusterBackupListAllOf) UnmarshalJSON

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

func (*NullableClusterBackupListAllOf) Unset

func (v *NullableClusterBackupListAllOf) Unset()

type NullableClusterList

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

func NewNullableClusterList

func NewNullableClusterList(val *ClusterList) *NullableClusterList

func (NullableClusterList) Get

func (NullableClusterList) IsSet

func (v NullableClusterList) IsSet() bool

func (NullableClusterList) MarshalJSON

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

func (*NullableClusterList) Set

func (v *NullableClusterList) Set(val *ClusterList)

func (*NullableClusterList) UnmarshalJSON

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

func (*NullableClusterList) Unset

func (v *NullableClusterList) Unset()

type NullableClusterListAllOf

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

func NewNullableClusterListAllOf

func NewNullableClusterListAllOf(val *ClusterListAllOf) *NullableClusterListAllOf

func (NullableClusterListAllOf) Get

func (NullableClusterListAllOf) IsSet

func (v NullableClusterListAllOf) IsSet() bool

func (NullableClusterListAllOf) MarshalJSON

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

func (*NullableClusterListAllOf) Set

func (*NullableClusterListAllOf) UnmarshalJSON

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

func (*NullableClusterListAllOf) Unset

func (v *NullableClusterListAllOf) Unset()

type NullableClusterLogs

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

func NewNullableClusterLogs

func NewNullableClusterLogs(val *ClusterLogs) *NullableClusterLogs

func (NullableClusterLogs) Get

func (NullableClusterLogs) IsSet

func (v NullableClusterLogs) IsSet() bool

func (NullableClusterLogs) MarshalJSON

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

func (*NullableClusterLogs) Set

func (v *NullableClusterLogs) Set(val *ClusterLogs)

func (*NullableClusterLogs) UnmarshalJSON

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

func (*NullableClusterLogs) Unset

func (v *NullableClusterLogs) Unset()

type NullableClusterLogsInstances

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

func NewNullableClusterLogsInstances

func NewNullableClusterLogsInstances(val *ClusterLogsInstances) *NullableClusterLogsInstances

func (NullableClusterLogsInstances) Get

func (NullableClusterLogsInstances) IsSet

func (NullableClusterLogsInstances) MarshalJSON

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

func (*NullableClusterLogsInstances) Set

func (*NullableClusterLogsInstances) UnmarshalJSON

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

func (*NullableClusterLogsInstances) Unset

func (v *NullableClusterLogsInstances) Unset()

type NullableClusterLogsInstancesMessages

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

func (NullableClusterLogsInstancesMessages) Get

func (NullableClusterLogsInstancesMessages) IsSet

func (NullableClusterLogsInstancesMessages) MarshalJSON

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

func (*NullableClusterLogsInstancesMessages) Set

func (*NullableClusterLogsInstancesMessages) UnmarshalJSON

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

func (*NullableClusterLogsInstancesMessages) Unset

type NullableClusterMetadata

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

func NewNullableClusterMetadata

func NewNullableClusterMetadata(val *ClusterMetadata) *NullableClusterMetadata

func (NullableClusterMetadata) Get

func (NullableClusterMetadata) IsSet

func (v NullableClusterMetadata) IsSet() bool

func (NullableClusterMetadata) MarshalJSON

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

func (*NullableClusterMetadata) Set

func (*NullableClusterMetadata) UnmarshalJSON

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

func (*NullableClusterMetadata) Unset

func (v *NullableClusterMetadata) Unset()

type NullableClusterProperties

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

func NewNullableClusterProperties

func NewNullableClusterProperties(val *ClusterProperties) *NullableClusterProperties

func (NullableClusterProperties) Get

func (NullableClusterProperties) IsSet

func (v NullableClusterProperties) IsSet() bool

func (NullableClusterProperties) MarshalJSON

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

func (*NullableClusterProperties) Set

func (*NullableClusterProperties) UnmarshalJSON

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

func (*NullableClusterProperties) Unset

func (v *NullableClusterProperties) Unset()

type NullableClusterResponse

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

func NewNullableClusterResponse

func NewNullableClusterResponse(val *ClusterResponse) *NullableClusterResponse

func (NullableClusterResponse) Get

func (NullableClusterResponse) IsSet

func (v NullableClusterResponse) IsSet() bool

func (NullableClusterResponse) MarshalJSON

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

func (*NullableClusterResponse) Set

func (*NullableClusterResponse) UnmarshalJSON

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

func (*NullableClusterResponse) Unset

func (v *NullableClusterResponse) Unset()

type NullableConnection

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

func NewNullableConnection

func NewNullableConnection(val *Connection) *NullableConnection

func (NullableConnection) Get

func (v NullableConnection) Get() *Connection

func (NullableConnection) IsSet

func (v NullableConnection) IsSet() bool

func (NullableConnection) MarshalJSON

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

func (*NullableConnection) Set

func (v *NullableConnection) Set(val *Connection)

func (*NullableConnection) UnmarshalJSON

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

func (*NullableConnection) Unset

func (v *NullableConnection) Unset()

type NullableConnectionPooler

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

func NewNullableConnectionPooler

func NewNullableConnectionPooler(val *ConnectionPooler) *NullableConnectionPooler

func (NullableConnectionPooler) Get

func (NullableConnectionPooler) IsSet

func (v NullableConnectionPooler) IsSet() bool

func (NullableConnectionPooler) MarshalJSON

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

func (*NullableConnectionPooler) Set

func (*NullableConnectionPooler) UnmarshalJSON

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

func (*NullableConnectionPooler) Unset

func (v *NullableConnectionPooler) Unset()

type NullableCreateClusterProperties

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

func (NullableCreateClusterProperties) Get

func (NullableCreateClusterProperties) IsSet

func (NullableCreateClusterProperties) MarshalJSON

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

func (*NullableCreateClusterProperties) Set

func (*NullableCreateClusterProperties) UnmarshalJSON

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

func (*NullableCreateClusterProperties) Unset

type NullableCreateClusterRequest

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

func NewNullableCreateClusterRequest

func NewNullableCreateClusterRequest(val *CreateClusterRequest) *NullableCreateClusterRequest

func (NullableCreateClusterRequest) Get

func (NullableCreateClusterRequest) IsSet

func (NullableCreateClusterRequest) MarshalJSON

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

func (*NullableCreateClusterRequest) Set

func (*NullableCreateClusterRequest) UnmarshalJSON

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

func (*NullableCreateClusterRequest) Unset

func (v *NullableCreateClusterRequest) Unset()

type NullableCreateRestoreRequest

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

func NewNullableCreateRestoreRequest

func NewNullableCreateRestoreRequest(val *CreateRestoreRequest) *NullableCreateRestoreRequest

func (NullableCreateRestoreRequest) Get

func (NullableCreateRestoreRequest) IsSet

func (NullableCreateRestoreRequest) MarshalJSON

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

func (*NullableCreateRestoreRequest) Set

func (*NullableCreateRestoreRequest) UnmarshalJSON

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

func (*NullableCreateRestoreRequest) Unset

func (v *NullableCreateRestoreRequest) Unset()

type NullableDBUser

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

func NewNullableDBUser

func NewNullableDBUser(val *DBUser) *NullableDBUser

func (NullableDBUser) Get

func (v NullableDBUser) Get() *DBUser

func (NullableDBUser) IsSet

func (v NullableDBUser) IsSet() bool

func (NullableDBUser) MarshalJSON

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

func (*NullableDBUser) Set

func (v *NullableDBUser) Set(val *DBUser)

func (*NullableDBUser) UnmarshalJSON

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

func (*NullableDBUser) Unset

func (v *NullableDBUser) Unset()

type NullableDatabase

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

func NewNullableDatabase

func NewNullableDatabase(val *Database) *NullableDatabase

func (NullableDatabase) Get

func (v NullableDatabase) Get() *Database

func (NullableDatabase) IsSet

func (v NullableDatabase) IsSet() bool

func (NullableDatabase) MarshalJSON

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

func (*NullableDatabase) Set

func (v *NullableDatabase) Set(val *Database)

func (*NullableDatabase) UnmarshalJSON

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

func (*NullableDatabase) Unset

func (v *NullableDatabase) Unset()

type NullableDatabaseItems

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

func NewNullableDatabaseItems

func NewNullableDatabaseItems(val *DatabaseItems) *NullableDatabaseItems

func (NullableDatabaseItems) Get

func (NullableDatabaseItems) IsSet

func (v NullableDatabaseItems) IsSet() bool

func (NullableDatabaseItems) MarshalJSON

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

func (*NullableDatabaseItems) Set

func (v *NullableDatabaseItems) Set(val *DatabaseItems)

func (*NullableDatabaseItems) UnmarshalJSON

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

func (*NullableDatabaseItems) Unset

func (v *NullableDatabaseItems) Unset()

type NullableDatabaseList

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

func NewNullableDatabaseList

func NewNullableDatabaseList(val *DatabaseList) *NullableDatabaseList

func (NullableDatabaseList) Get

func (NullableDatabaseList) IsSet

func (v NullableDatabaseList) IsSet() bool

func (NullableDatabaseList) MarshalJSON

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

func (*NullableDatabaseList) Set

func (v *NullableDatabaseList) Set(val *DatabaseList)

func (*NullableDatabaseList) UnmarshalJSON

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

func (*NullableDatabaseList) Unset

func (v *NullableDatabaseList) Unset()

type NullableDatabaseProperties

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

func NewNullableDatabaseProperties

func NewNullableDatabaseProperties(val *DatabaseProperties) *NullableDatabaseProperties

func (NullableDatabaseProperties) Get

func (NullableDatabaseProperties) IsSet

func (v NullableDatabaseProperties) IsSet() bool

func (NullableDatabaseProperties) MarshalJSON

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

func (*NullableDatabaseProperties) Set

func (*NullableDatabaseProperties) UnmarshalJSON

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

func (*NullableDatabaseProperties) Unset

func (v *NullableDatabaseProperties) Unset()

type NullableDatabaseResource

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

func NewNullableDatabaseResource

func NewNullableDatabaseResource(val *DatabaseResource) *NullableDatabaseResource

func (NullableDatabaseResource) Get

func (NullableDatabaseResource) IsSet

func (v NullableDatabaseResource) IsSet() bool

func (NullableDatabaseResource) MarshalJSON

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

func (*NullableDatabaseResource) Set

func (*NullableDatabaseResource) UnmarshalJSON

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

func (*NullableDatabaseResource) Unset

func (v *NullableDatabaseResource) Unset()

type NullableDayOfTheWeek

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

func NewNullableDayOfTheWeek

func NewNullableDayOfTheWeek(val *DayOfTheWeek) *NullableDayOfTheWeek

func (NullableDayOfTheWeek) Get

func (NullableDayOfTheWeek) IsSet

func (v NullableDayOfTheWeek) IsSet() bool

func (NullableDayOfTheWeek) MarshalJSON

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

func (*NullableDayOfTheWeek) Set

func (v *NullableDayOfTheWeek) Set(val *DayOfTheWeek)

func (*NullableDayOfTheWeek) UnmarshalJSON

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

func (*NullableDayOfTheWeek) Unset

func (v *NullableDayOfTheWeek) Unset()

type NullableDeprecatedPagination

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

func NewNullableDeprecatedPagination

func NewNullableDeprecatedPagination(val *DeprecatedPagination) *NullableDeprecatedPagination

func (NullableDeprecatedPagination) Get

func (NullableDeprecatedPagination) IsSet

func (NullableDeprecatedPagination) MarshalJSON

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

func (*NullableDeprecatedPagination) Set

func (*NullableDeprecatedPagination) UnmarshalJSON

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

func (*NullableDeprecatedPagination) Unset

func (v *NullableDeprecatedPagination) Unset()

type NullableErrorMessage

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

func NewNullableErrorMessage

func NewNullableErrorMessage(val *ErrorMessage) *NullableErrorMessage

func (NullableErrorMessage) Get

func (NullableErrorMessage) IsSet

func (v NullableErrorMessage) IsSet() bool

func (NullableErrorMessage) MarshalJSON

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

func (*NullableErrorMessage) Set

func (v *NullableErrorMessage) Set(val *ErrorMessage)

func (*NullableErrorMessage) UnmarshalJSON

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

func (*NullableErrorMessage) Unset

func (v *NullableErrorMessage) Unset()

type NullableErrorResponse

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

func NewNullableErrorResponse

func NewNullableErrorResponse(val *ErrorResponse) *NullableErrorResponse

func (NullableErrorResponse) Get

func (NullableErrorResponse) IsSet

func (v NullableErrorResponse) IsSet() bool

func (NullableErrorResponse) MarshalJSON

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

func (*NullableErrorResponse) Set

func (v *NullableErrorResponse) Set(val *ErrorResponse)

func (*NullableErrorResponse) UnmarshalJSON

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

func (*NullableErrorResponse) Unset

func (v *NullableErrorResponse) 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 NullableIonosTime added in v2.0.2

type NullableIonosTime struct {
	NullableTime
}

type NullableMaintenanceWindow

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

func NewNullableMaintenanceWindow

func NewNullableMaintenanceWindow(val *MaintenanceWindow) *NullableMaintenanceWindow

func (NullableMaintenanceWindow) Get

func (NullableMaintenanceWindow) IsSet

func (v NullableMaintenanceWindow) IsSet() bool

func (NullableMaintenanceWindow) MarshalJSON

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

func (*NullableMaintenanceWindow) Set

func (*NullableMaintenanceWindow) UnmarshalJSON

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

func (*NullableMaintenanceWindow) Unset

func (v *NullableMaintenanceWindow) Unset()

type NullableMetadata

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

func NewNullableMetadata

func NewNullableMetadata(val *Metadata) *NullableMetadata

func (NullableMetadata) Get

func (v NullableMetadata) Get() *Metadata

func (NullableMetadata) IsSet

func (v NullableMetadata) IsSet() bool

func (NullableMetadata) MarshalJSON

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

func (*NullableMetadata) Set

func (v *NullableMetadata) Set(val *Metadata)

func (*NullableMetadata) UnmarshalJSON

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

func (*NullableMetadata) Unset

func (v *NullableMetadata) Unset()

type NullablePagination

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

func NewNullablePagination

func NewNullablePagination(val *Pagination) *NullablePagination

func (NullablePagination) Get

func (v NullablePagination) Get() *Pagination

func (NullablePagination) IsSet

func (v NullablePagination) IsSet() bool

func (NullablePagination) MarshalJSON

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

func (*NullablePagination) Set

func (v *NullablePagination) Set(val *Pagination)

func (*NullablePagination) UnmarshalJSON

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

func (*NullablePagination) Unset

func (v *NullablePagination) Unset()
type NullablePaginationLinks struct {
	// contains filtered or unexported fields
}
func NewNullablePaginationLinks(val *PaginationLinks) *NullablePaginationLinks

func (NullablePaginationLinks) Get

func (NullablePaginationLinks) IsSet

func (v NullablePaginationLinks) IsSet() bool

func (NullablePaginationLinks) MarshalJSON

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

func (*NullablePaginationLinks) Set

func (*NullablePaginationLinks) UnmarshalJSON

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

func (*NullablePaginationLinks) Unset

func (v *NullablePaginationLinks) Unset()

type NullablePatchClusterProperties

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

func (NullablePatchClusterProperties) Get

func (NullablePatchClusterProperties) IsSet

func (NullablePatchClusterProperties) MarshalJSON

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

func (*NullablePatchClusterProperties) Set

func (*NullablePatchClusterProperties) UnmarshalJSON

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

func (*NullablePatchClusterProperties) Unset

func (v *NullablePatchClusterProperties) Unset()

type NullablePatchClusterRequest

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

func NewNullablePatchClusterRequest

func NewNullablePatchClusterRequest(val *PatchClusterRequest) *NullablePatchClusterRequest

func (NullablePatchClusterRequest) Get

func (NullablePatchClusterRequest) IsSet

func (NullablePatchClusterRequest) MarshalJSON

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

func (*NullablePatchClusterRequest) Set

func (*NullablePatchClusterRequest) UnmarshalJSON

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

func (*NullablePatchClusterRequest) Unset

func (v *NullablePatchClusterRequest) Unset()

type NullablePatchUserProperties

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

func NewNullablePatchUserProperties

func NewNullablePatchUserProperties(val *PatchUserProperties) *NullablePatchUserProperties

func (NullablePatchUserProperties) Get

func (NullablePatchUserProperties) IsSet

func (NullablePatchUserProperties) MarshalJSON

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

func (*NullablePatchUserProperties) Set

func (*NullablePatchUserProperties) UnmarshalJSON

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

func (*NullablePatchUserProperties) Unset

func (v *NullablePatchUserProperties) Unset()

type NullablePoolMode

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

func NewNullablePoolMode

func NewNullablePoolMode(val *PoolMode) *NullablePoolMode

func (NullablePoolMode) Get

func (v NullablePoolMode) Get() *PoolMode

func (NullablePoolMode) IsSet

func (v NullablePoolMode) IsSet() bool

func (NullablePoolMode) MarshalJSON

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

func (*NullablePoolMode) Set

func (v *NullablePoolMode) Set(val *PoolMode)

func (*NullablePoolMode) UnmarshalJSON

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

func (*NullablePoolMode) Unset

func (v *NullablePoolMode) Unset()

type NullablePostgresVersionList

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

func NewNullablePostgresVersionList

func NewNullablePostgresVersionList(val *PostgresVersionList) *NullablePostgresVersionList

func (NullablePostgresVersionList) Get

func (NullablePostgresVersionList) IsSet

func (NullablePostgresVersionList) MarshalJSON

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

func (*NullablePostgresVersionList) Set

func (*NullablePostgresVersionList) UnmarshalJSON

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

func (*NullablePostgresVersionList) Unset

func (v *NullablePostgresVersionList) Unset()

type NullablePostgresVersionListData

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

func (NullablePostgresVersionListData) Get

func (NullablePostgresVersionListData) IsSet

func (NullablePostgresVersionListData) MarshalJSON

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

func (*NullablePostgresVersionListData) Set

func (*NullablePostgresVersionListData) UnmarshalJSON

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

func (*NullablePostgresVersionListData) Unset

type NullableResource

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

func NewNullableResource

func NewNullableResource(val *Resource) *NullableResource

func (NullableResource) Get

func (v NullableResource) Get() *Resource

func (NullableResource) IsSet

func (v NullableResource) IsSet() bool

func (NullableResource) MarshalJSON

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

func (*NullableResource) Set

func (v *NullableResource) Set(val *Resource)

func (*NullableResource) UnmarshalJSON

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

func (*NullableResource) Unset

func (v *NullableResource) Unset()

type NullableResourceMetadata

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

func NewNullableResourceMetadata

func NewNullableResourceMetadata(val *ResourceMetadata) *NullableResourceMetadata

func (NullableResourceMetadata) Get

func (NullableResourceMetadata) IsSet

func (v NullableResourceMetadata) IsSet() bool

func (NullableResourceMetadata) MarshalJSON

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

func (*NullableResourceMetadata) Set

func (*NullableResourceMetadata) UnmarshalJSON

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

func (*NullableResourceMetadata) Unset

func (v *NullableResourceMetadata) Unset()

type NullableResourceType

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

func NewNullableResourceType

func NewNullableResourceType(val *ResourceType) *NullableResourceType

func (NullableResourceType) Get

func (NullableResourceType) IsSet

func (v NullableResourceType) IsSet() bool

func (NullableResourceType) MarshalJSON

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

func (*NullableResourceType) Set

func (v *NullableResourceType) Set(val *ResourceType)

func (*NullableResourceType) UnmarshalJSON

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

func (*NullableResourceType) Unset

func (v *NullableResourceType) Unset()

type NullableState

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

func NewNullableState

func NewNullableState(val *State) *NullableState

func (NullableState) Get

func (v NullableState) Get() *State

func (NullableState) IsSet

func (v NullableState) IsSet() bool

func (NullableState) MarshalJSON

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

func (*NullableState) Set

func (v *NullableState) Set(val *State)

func (*NullableState) UnmarshalJSON

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

func (*NullableState) Unset

func (v *NullableState) Unset()

type NullableStorageType

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

func NewNullableStorageType

func NewNullableStorageType(val *StorageType) *NullableStorageType

func (NullableStorageType) Get

func (NullableStorageType) IsSet

func (v NullableStorageType) IsSet() bool

func (NullableStorageType) MarshalJSON

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

func (*NullableStorageType) Set

func (v *NullableStorageType) Set(val *StorageType)

func (*NullableStorageType) UnmarshalJSON

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

func (*NullableStorageType) Unset

func (v *NullableStorageType) 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 NullableSynchronizationMode

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

func NewNullableSynchronizationMode

func NewNullableSynchronizationMode(val *SynchronizationMode) *NullableSynchronizationMode

func (NullableSynchronizationMode) Get

func (NullableSynchronizationMode) IsSet

func (NullableSynchronizationMode) MarshalJSON

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

func (*NullableSynchronizationMode) Set

func (*NullableSynchronizationMode) UnmarshalJSON

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

func (*NullableSynchronizationMode) Unset

func (v *NullableSynchronizationMode) 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 NullableUser

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

func NewNullableUser

func NewNullableUser(val *User) *NullableUser

func (NullableUser) Get

func (v NullableUser) Get() *User

func (NullableUser) IsSet

func (v NullableUser) IsSet() bool

func (NullableUser) MarshalJSON

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

func (*NullableUser) Set

func (v *NullableUser) Set(val *User)

func (*NullableUser) UnmarshalJSON

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

func (*NullableUser) Unset

func (v *NullableUser) Unset()

type NullableUserItems

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

func NewNullableUserItems

func NewNullableUserItems(val *UserItems) *NullableUserItems

func (NullableUserItems) Get

func (v NullableUserItems) Get() *UserItems

func (NullableUserItems) IsSet

func (v NullableUserItems) IsSet() bool

func (NullableUserItems) MarshalJSON

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

func (*NullableUserItems) Set

func (v *NullableUserItems) Set(val *UserItems)

func (*NullableUserItems) UnmarshalJSON

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

func (*NullableUserItems) Unset

func (v *NullableUserItems) Unset()

type NullableUserList

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

func NewNullableUserList

func NewNullableUserList(val *UserList) *NullableUserList

func (NullableUserList) Get

func (v NullableUserList) Get() *UserList

func (NullableUserList) IsSet

func (v NullableUserList) IsSet() bool

func (NullableUserList) MarshalJSON

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

func (*NullableUserList) Set

func (v *NullableUserList) Set(val *UserList)

func (*NullableUserList) UnmarshalJSON

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

func (*NullableUserList) Unset

func (v *NullableUserList) Unset()

type NullableUserProperties

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

func NewNullableUserProperties

func NewNullableUserProperties(val *UserProperties) *NullableUserProperties

func (NullableUserProperties) Get

func (NullableUserProperties) IsSet

func (v NullableUserProperties) IsSet() bool

func (NullableUserProperties) MarshalJSON

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

func (*NullableUserProperties) Set

func (*NullableUserProperties) UnmarshalJSON

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

func (*NullableUserProperties) Unset

func (v *NullableUserProperties) Unset()

type NullableUserResource

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

func NewNullableUserResource

func NewNullableUserResource(val *UserResource) *NullableUserResource

func (NullableUserResource) Get

func (NullableUserResource) IsSet

func (v NullableUserResource) IsSet() bool

func (NullableUserResource) MarshalJSON

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

func (*NullableUserResource) Set

func (v *NullableUserResource) Set(val *UserResource)

func (*NullableUserResource) UnmarshalJSON

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

func (*NullableUserResource) Unset

func (v *NullableUserResource) Unset()

type NullableUsersPatchRequest

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

func NewNullableUsersPatchRequest

func NewNullableUsersPatchRequest(val *UsersPatchRequest) *NullableUsersPatchRequest

func (NullableUsersPatchRequest) Get

func (NullableUsersPatchRequest) IsSet

func (v NullableUsersPatchRequest) IsSet() bool

func (NullableUsersPatchRequest) MarshalJSON

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

func (*NullableUsersPatchRequest) Set

func (*NullableUsersPatchRequest) UnmarshalJSON

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

func (*NullableUsersPatchRequest) Unset

func (v *NullableUsersPatchRequest) Unset()

type Pagination

type Pagination struct {
	// The offset specified in the request (if none was specified, the default offset is 0).
	Offset *int32 `json:"offset,omitempty"`
	// The limit specified in the request (if none was specified, the default limit is 100).
	Limit *int32           `json:"limit,omitempty"`
	Links *PaginationLinks `json:"_links,omitempty"`
}

Pagination Pagination information in list responses.

func NewPagination

func NewPagination() *Pagination

NewPagination instantiates a new Pagination object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewPaginationWithDefaults

func NewPaginationWithDefaults() *Pagination

NewPaginationWithDefaults instantiates a new Pagination object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*Pagination) GetLimit

func (o *Pagination) GetLimit() int32

GetLimit returns the Limit field value if set, zero value otherwise.

func (*Pagination) GetLimitOk

func (o *Pagination) GetLimitOk() (*int32, bool)

GetLimitOk returns a tuple with the Limit field value if set, nil otherwise and a boolean to check if the value has been set.

func (o *Pagination) GetLinks() PaginationLinks

GetLinks returns the Links field value if set, zero value otherwise.

func (*Pagination) GetLinksOk

func (o *Pagination) GetLinksOk() (*PaginationLinks, bool)

GetLinksOk returns a tuple with the Links field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Pagination) GetOffset

func (o *Pagination) GetOffset() int32

GetOffset returns the Offset field value if set, zero value otherwise.

func (*Pagination) GetOffsetOk

func (o *Pagination) GetOffsetOk() (*int32, bool)

GetOffsetOk returns a tuple with the Offset field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Pagination) HasLimit

func (o *Pagination) HasLimit() bool

HasLimit returns a boolean if a field has been set.

func (o *Pagination) HasLinks() bool

HasLinks returns a boolean if a field has been set.

func (*Pagination) HasOffset

func (o *Pagination) HasOffset() bool

HasOffset returns a boolean if a field has been set.

func (*Pagination) SetLimit

func (o *Pagination) SetLimit(v int32)

SetLimit gets a reference to the given int32 and assigns it to the Limit field.

func (o *Pagination) SetLinks(v PaginationLinks)

SetLinks gets a reference to the given PaginationLinks and assigns it to the Links field.

func (*Pagination) SetOffset

func (o *Pagination) SetOffset(v int32)

SetOffset gets a reference to the given int32 and assigns it to the Offset field.

func (Pagination) ToMap

func (o Pagination) ToMap() (map[string]interface{}, error)
type PaginationLinks struct {
	// URL (with offset and limit parameters) of the previous page; only present if offset is greater than 0.
	Prev *string `json:"prev,omitempty"`
	// URL (with offset and limit parameters) of the current page.
	Self *string `json:"self,omitempty"`
	// URL (with offset and limit parameters) of the next page; only present if offset + limit is less than the total number of elements.
	Next *string `json:"next,omitempty"`
}

PaginationLinks URLs to navigate the different pages.

func NewPaginationLinks() *PaginationLinks

NewPaginationLinks instantiates a new PaginationLinks object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewPaginationLinksWithDefaults

func NewPaginationLinksWithDefaults() *PaginationLinks

NewPaginationLinksWithDefaults instantiates a new PaginationLinks object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*PaginationLinks) GetNext

func (o *PaginationLinks) GetNext() string

GetNext returns the Next field value if set, zero value otherwise.

func (*PaginationLinks) GetNextOk

func (o *PaginationLinks) GetNextOk() (*string, bool)

GetNextOk returns a tuple with the Next field value if set, nil otherwise and a boolean to check if the value has been set.

func (*PaginationLinks) GetPrev

func (o *PaginationLinks) GetPrev() string

GetPrev returns the Prev field value if set, zero value otherwise.

func (*PaginationLinks) GetPrevOk

func (o *PaginationLinks) GetPrevOk() (*string, bool)

GetPrevOk returns a tuple with the Prev field value if set, nil otherwise and a boolean to check if the value has been set.

func (*PaginationLinks) GetSelf

func (o *PaginationLinks) GetSelf() string

GetSelf returns the Self field value if set, zero value otherwise.

func (*PaginationLinks) GetSelfOk

func (o *PaginationLinks) GetSelfOk() (*string, bool)

GetSelfOk returns a tuple with the Self field value if set, nil otherwise and a boolean to check if the value has been set.

func (*PaginationLinks) HasNext

func (o *PaginationLinks) HasNext() bool

HasNext returns a boolean if a field has been set.

func (*PaginationLinks) HasPrev

func (o *PaginationLinks) HasPrev() bool

HasPrev returns a boolean if a field has been set.

func (*PaginationLinks) HasSelf

func (o *PaginationLinks) HasSelf() bool

HasSelf returns a boolean if a field has been set.

func (*PaginationLinks) SetNext

func (o *PaginationLinks) SetNext(v string)

SetNext gets a reference to the given string and assigns it to the Next field.

func (*PaginationLinks) SetPrev

func (o *PaginationLinks) SetPrev(v string)

SetPrev gets a reference to the given string and assigns it to the Prev field.

func (*PaginationLinks) SetSelf

func (o *PaginationLinks) SetSelf(v string)

SetSelf gets a reference to the given string and assigns it to the Self field.

func (PaginationLinks) ToMap

func (o PaginationLinks) ToMap() (map[string]interface{}, error)

type PatchClusterProperties

type PatchClusterProperties struct {
	// The number of CPU cores per instance.
	Cores *int32 `json:"cores,omitempty"`
	// The amount of memory per instance in megabytes. Has to be a multiple of 1024.
	Ram *int32 `json:"ram,omitempty"`
	// The amount of storage per instance in megabytes.
	StorageSize *int32       `json:"storageSize,omitempty"`
	Connections []Connection `json:"connections,omitempty"`
	// The friendly name of your cluster.
	DisplayName       *string            `json:"displayName,omitempty"`
	MaintenanceWindow *MaintenanceWindow `json:"maintenanceWindow,omitempty"`
	// The PostgreSQL version of your cluster.
	PostgresVersion *string `json:"postgresVersion,omitempty"`
	// The total number of instances in the cluster (one master and n-1 standbys).
	Instances        *int32            `json:"instances,omitempty"`
	ConnectionPooler *ConnectionPooler `json:"connectionPooler,omitempty"`
}

PatchClusterProperties Properties of the payload to change a cluster.

func NewPatchClusterProperties

func NewPatchClusterProperties() *PatchClusterProperties

NewPatchClusterProperties instantiates a new PatchClusterProperties object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewPatchClusterPropertiesWithDefaults

func NewPatchClusterPropertiesWithDefaults() *PatchClusterProperties

NewPatchClusterPropertiesWithDefaults instantiates a new PatchClusterProperties object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*PatchClusterProperties) GetConnectionPooler

func (o *PatchClusterProperties) GetConnectionPooler() ConnectionPooler

GetConnectionPooler returns the ConnectionPooler field value if set, zero value otherwise.

func (*PatchClusterProperties) GetConnectionPoolerOk

func (o *PatchClusterProperties) GetConnectionPoolerOk() (*ConnectionPooler, bool)

GetConnectionPoolerOk returns a tuple with the ConnectionPooler field value if set, nil otherwise and a boolean to check if the value has been set.

func (*PatchClusterProperties) GetConnections

func (o *PatchClusterProperties) GetConnections() []Connection

GetConnections returns the Connections field value if set, zero value otherwise.

func (*PatchClusterProperties) GetConnectionsOk

func (o *PatchClusterProperties) GetConnectionsOk() ([]Connection, bool)

GetConnectionsOk returns a tuple with the Connections field value if set, nil otherwise and a boolean to check if the value has been set.

func (*PatchClusterProperties) GetCores

func (o *PatchClusterProperties) GetCores() int32

GetCores returns the Cores field value if set, zero value otherwise.

func (*PatchClusterProperties) GetCoresOk

func (o *PatchClusterProperties) GetCoresOk() (*int32, bool)

GetCoresOk returns a tuple with the Cores field value if set, nil otherwise and a boolean to check if the value has been set.

func (*PatchClusterProperties) GetDisplayName

func (o *PatchClusterProperties) GetDisplayName() string

GetDisplayName returns the DisplayName field value if set, zero value otherwise.

func (*PatchClusterProperties) GetDisplayNameOk

func (o *PatchClusterProperties) GetDisplayNameOk() (*string, bool)

GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise and a boolean to check if the value has been set.

func (*PatchClusterProperties) GetInstances

func (o *PatchClusterProperties) GetInstances() int32

GetInstances returns the Instances field value if set, zero value otherwise.

func (*PatchClusterProperties) GetInstancesOk

func (o *PatchClusterProperties) GetInstancesOk() (*int32, bool)

GetInstancesOk returns a tuple with the Instances field value if set, nil otherwise and a boolean to check if the value has been set.

func (*PatchClusterProperties) GetMaintenanceWindow

func (o *PatchClusterProperties) GetMaintenanceWindow() MaintenanceWindow

GetMaintenanceWindow returns the MaintenanceWindow field value if set, zero value otherwise.

func (*PatchClusterProperties) GetMaintenanceWindowOk

func (o *PatchClusterProperties) GetMaintenanceWindowOk() (*MaintenanceWindow, bool)

GetMaintenanceWindowOk returns a tuple with the MaintenanceWindow field value if set, nil otherwise and a boolean to check if the value has been set.

func (*PatchClusterProperties) GetPostgresVersion

func (o *PatchClusterProperties) GetPostgresVersion() string

GetPostgresVersion returns the PostgresVersion field value if set, zero value otherwise.

func (*PatchClusterProperties) GetPostgresVersionOk

func (o *PatchClusterProperties) GetPostgresVersionOk() (*string, bool)

GetPostgresVersionOk returns a tuple with the PostgresVersion field value if set, nil otherwise and a boolean to check if the value has been set.

func (*PatchClusterProperties) GetRam

func (o *PatchClusterProperties) GetRam() int32

GetRam returns the Ram field value if set, zero value otherwise.

func (*PatchClusterProperties) GetRamOk

func (o *PatchClusterProperties) GetRamOk() (*int32, bool)

GetRamOk returns a tuple with the Ram field value if set, nil otherwise and a boolean to check if the value has been set.

func (*PatchClusterProperties) GetStorageSize

func (o *PatchClusterProperties) GetStorageSize() int32

GetStorageSize returns the StorageSize field value if set, zero value otherwise.

func (*PatchClusterProperties) GetStorageSizeOk

func (o *PatchClusterProperties) GetStorageSizeOk() (*int32, bool)

GetStorageSizeOk returns a tuple with the StorageSize field value if set, nil otherwise and a boolean to check if the value has been set.

func (*PatchClusterProperties) HasConnectionPooler

func (o *PatchClusterProperties) HasConnectionPooler() bool

HasConnectionPooler returns a boolean if a field has been set.

func (*PatchClusterProperties) HasConnections

func (o *PatchClusterProperties) HasConnections() bool

HasConnections returns a boolean if a field has been set.

func (*PatchClusterProperties) HasCores

func (o *PatchClusterProperties) HasCores() bool

HasCores returns a boolean if a field has been set.

func (*PatchClusterProperties) HasDisplayName

func (o *PatchClusterProperties) HasDisplayName() bool

HasDisplayName returns a boolean if a field has been set.

func (*PatchClusterProperties) HasInstances

func (o *PatchClusterProperties) HasInstances() bool

HasInstances returns a boolean if a field has been set.

func (*PatchClusterProperties) HasMaintenanceWindow

func (o *PatchClusterProperties) HasMaintenanceWindow() bool

HasMaintenanceWindow returns a boolean if a field has been set.

func (*PatchClusterProperties) HasPostgresVersion

func (o *PatchClusterProperties) HasPostgresVersion() bool

HasPostgresVersion returns a boolean if a field has been set.

func (*PatchClusterProperties) HasRam

func (o *PatchClusterProperties) HasRam() bool

HasRam returns a boolean if a field has been set.

func (*PatchClusterProperties) HasStorageSize

func (o *PatchClusterProperties) HasStorageSize() bool

HasStorageSize returns a boolean if a field has been set.

func (*PatchClusterProperties) SetConnectionPooler

func (o *PatchClusterProperties) SetConnectionPooler(v ConnectionPooler)

SetConnectionPooler gets a reference to the given ConnectionPooler and assigns it to the ConnectionPooler field.

func (*PatchClusterProperties) SetConnections

func (o *PatchClusterProperties) SetConnections(v []Connection)

SetConnections gets a reference to the given []Connection and assigns it to the Connections field.

func (*PatchClusterProperties) SetCores

func (o *PatchClusterProperties) SetCores(v int32)

SetCores gets a reference to the given int32 and assigns it to the Cores field.

func (*PatchClusterProperties) SetDisplayName

func (o *PatchClusterProperties) SetDisplayName(v string)

SetDisplayName gets a reference to the given string and assigns it to the DisplayName field.

func (*PatchClusterProperties) SetInstances

func (o *PatchClusterProperties) SetInstances(v int32)

SetInstances gets a reference to the given int32 and assigns it to the Instances field.

func (*PatchClusterProperties) SetMaintenanceWindow

func (o *PatchClusterProperties) SetMaintenanceWindow(v MaintenanceWindow)

SetMaintenanceWindow gets a reference to the given MaintenanceWindow and assigns it to the MaintenanceWindow field.

func (*PatchClusterProperties) SetPostgresVersion

func (o *PatchClusterProperties) SetPostgresVersion(v string)

SetPostgresVersion gets a reference to the given string and assigns it to the PostgresVersion field.

func (*PatchClusterProperties) SetRam

func (o *PatchClusterProperties) SetRam(v int32)

SetRam gets a reference to the given int32 and assigns it to the Ram field.

func (*PatchClusterProperties) SetStorageSize

func (o *PatchClusterProperties) SetStorageSize(v int32)

SetStorageSize gets a reference to the given int32 and assigns it to the StorageSize field.

func (PatchClusterProperties) ToMap

func (o PatchClusterProperties) ToMap() (map[string]interface{}, error)

type PatchClusterRequest

type PatchClusterRequest struct {
	Metadata   *ClusterMetadata        `json:"metadata,omitempty"`
	Properties *PatchClusterProperties `json:"properties,omitempty"`
}

PatchClusterRequest Request payload to change a cluster.

func NewPatchClusterRequest

func NewPatchClusterRequest() *PatchClusterRequest

NewPatchClusterRequest instantiates a new PatchClusterRequest object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewPatchClusterRequestWithDefaults

func NewPatchClusterRequestWithDefaults() *PatchClusterRequest

NewPatchClusterRequestWithDefaults instantiates a new PatchClusterRequest object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*PatchClusterRequest) GetMetadata

func (o *PatchClusterRequest) GetMetadata() ClusterMetadata

GetMetadata returns the Metadata field value if set, zero value otherwise.

func (*PatchClusterRequest) GetMetadataOk

func (o *PatchClusterRequest) GetMetadataOk() (*ClusterMetadata, bool)

GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise and a boolean to check if the value has been set.

func (*PatchClusterRequest) GetProperties

func (o *PatchClusterRequest) GetProperties() PatchClusterProperties

GetProperties returns the Properties field value if set, zero value otherwise.

func (*PatchClusterRequest) GetPropertiesOk

func (o *PatchClusterRequest) GetPropertiesOk() (*PatchClusterProperties, bool)

GetPropertiesOk returns a tuple with the Properties field value if set, nil otherwise and a boolean to check if the value has been set.

func (*PatchClusterRequest) HasMetadata

func (o *PatchClusterRequest) HasMetadata() bool

HasMetadata returns a boolean if a field has been set.

func (*PatchClusterRequest) HasProperties

func (o *PatchClusterRequest) HasProperties() bool

HasProperties returns a boolean if a field has been set.

func (*PatchClusterRequest) SetMetadata

func (o *PatchClusterRequest) SetMetadata(v ClusterMetadata)

SetMetadata gets a reference to the given ClusterMetadata and assigns it to the Metadata field.

func (*PatchClusterRequest) SetProperties

func (o *PatchClusterRequest) SetProperties(v PatchClusterProperties)

SetProperties gets a reference to the given PatchClusterProperties and assigns it to the Properties field.

func (PatchClusterRequest) ToMap

func (o PatchClusterRequest) ToMap() (map[string]interface{}, error)

type PatchUserProperties

type PatchUserProperties struct {
	// The password of a given user.
	Password *string `json:"password,omitempty"`
}

PatchUserProperties struct for PatchUserProperties

func NewPatchUserProperties

func NewPatchUserProperties() *PatchUserProperties

NewPatchUserProperties instantiates a new PatchUserProperties object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewPatchUserPropertiesWithDefaults

func NewPatchUserPropertiesWithDefaults() *PatchUserProperties

NewPatchUserPropertiesWithDefaults instantiates a new PatchUserProperties object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*PatchUserProperties) GetPassword

func (o *PatchUserProperties) GetPassword() string

GetPassword returns the Password field value if set, zero value otherwise.

func (*PatchUserProperties) GetPasswordOk

func (o *PatchUserProperties) GetPasswordOk() (*string, bool)

GetPasswordOk returns a tuple with the Password field value if set, nil otherwise and a boolean to check if the value has been set.

func (*PatchUserProperties) HasPassword

func (o *PatchUserProperties) HasPassword() bool

HasPassword returns a boolean if a field has been set.

func (*PatchUserProperties) SetPassword

func (o *PatchUserProperties) SetPassword(v string)

SetPassword gets a reference to the given string and assigns it to the Password field.

func (PatchUserProperties) ToMap

func (o PatchUserProperties) ToMap() (map[string]interface{}, error)

type PoolMode

type PoolMode string

PoolMode Represents different modes of connection pooling for the connection pooler.

const (
	POOLMODE_TRANSACTION PoolMode = "transaction"
	POOLMODE_SESSION     PoolMode = "session"
)

List of PoolMode

func (PoolMode) Ptr

func (v PoolMode) Ptr() *PoolMode

Ptr returns reference to PoolMode value

func (*PoolMode) UnmarshalJSON

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

type PostgresVersionList

type PostgresVersionList struct {
	Data []PostgresVersionListData `json:"data,omitempty"`
}

PostgresVersionList List of PostgreSQL versions.

func NewPostgresVersionList

func NewPostgresVersionList() *PostgresVersionList

NewPostgresVersionList instantiates a new PostgresVersionList object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewPostgresVersionListWithDefaults

func NewPostgresVersionListWithDefaults() *PostgresVersionList

NewPostgresVersionListWithDefaults instantiates a new PostgresVersionList object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*PostgresVersionList) GetData

GetData returns the Data field value if set, zero value otherwise.

func (*PostgresVersionList) GetDataOk

func (o *PostgresVersionList) GetDataOk() ([]PostgresVersionListData, bool)

GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.

func (*PostgresVersionList) HasData

func (o *PostgresVersionList) HasData() bool

HasData returns a boolean if a field has been set.

func (*PostgresVersionList) SetData

SetData gets a reference to the given []PostgresVersionListData and assigns it to the Data field.

func (PostgresVersionList) ToMap

func (o PostgresVersionList) ToMap() (map[string]interface{}, error)

type PostgresVersionListData

type PostgresVersionListData struct {
	Name *string `json:"name,omitempty"`
}

PostgresVersionListData struct for PostgresVersionListData

func NewPostgresVersionListData

func NewPostgresVersionListData() *PostgresVersionListData

NewPostgresVersionListData instantiates a new PostgresVersionListData object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewPostgresVersionListDataWithDefaults

func NewPostgresVersionListDataWithDefaults() *PostgresVersionListData

NewPostgresVersionListDataWithDefaults instantiates a new PostgresVersionListData object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*PostgresVersionListData) GetName

func (o *PostgresVersionListData) GetName() string

GetName returns the Name field value if set, zero value otherwise.

func (*PostgresVersionListData) GetNameOk

func (o *PostgresVersionListData) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.

func (*PostgresVersionListData) HasName

func (o *PostgresVersionListData) HasName() bool

HasName returns a boolean if a field has been set.

func (*PostgresVersionListData) SetName

func (o *PostgresVersionListData) SetName(v string)

SetName gets a reference to the given string and assigns it to the Name field.

func (PostgresVersionListData) ToMap

func (o PostgresVersionListData) ToMap() (map[string]interface{}, error)

type Resource

type Resource struct {
	Type ResourceType `json:"type"`
	// The unique ID of the resource.
	Id string `json:"id"`
	// Absolute URL of the resource.
	Href string `json:"href"`
}

Resource struct for Resource

func NewResource

func NewResource(type_ ResourceType, id string, href string) *Resource

NewResource instantiates a new Resource object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewResourceWithDefaults

func NewResourceWithDefaults() *Resource

NewResourceWithDefaults instantiates a new Resource object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*Resource) GetHref

func (o *Resource) GetHref() string

GetHref returns the Href field value

func (*Resource) GetHrefOk

func (o *Resource) GetHrefOk() (*string, bool)

GetHrefOk returns a tuple with the Href field value and a boolean to check if the value has been set.

func (*Resource) GetId

func (o *Resource) GetId() string

GetId returns the Id field value

func (*Resource) GetIdOk

func (o *Resource) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.

func (*Resource) GetType

func (o *Resource) GetType() ResourceType

GetType returns the Type field value

func (*Resource) GetTypeOk

func (o *Resource) GetTypeOk() (*ResourceType, bool)

GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.

func (*Resource) SetHref

func (o *Resource) SetHref(v string)

SetHref sets field value

func (*Resource) SetId

func (o *Resource) SetId(v string)

SetId sets field value

func (*Resource) SetType

func (o *Resource) SetType(v ResourceType)

SetType sets field value

func (Resource) ToMap

func (o Resource) ToMap() (map[string]interface{}, error)

type ResourceMetadata

type ResourceMetadata struct {
	Metadata *Metadata `json:"metadata,omitempty"`
}

ResourceMetadata struct for ResourceMetadata

func NewResourceMetadata

func NewResourceMetadata() *ResourceMetadata

NewResourceMetadata instantiates a new ResourceMetadata object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewResourceMetadataWithDefaults

func NewResourceMetadataWithDefaults() *ResourceMetadata

NewResourceMetadataWithDefaults instantiates a new ResourceMetadata object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ResourceMetadata) GetMetadata

func (o *ResourceMetadata) GetMetadata() Metadata

GetMetadata returns the Metadata field value if set, zero value otherwise.

func (*ResourceMetadata) GetMetadataOk

func (o *ResourceMetadata) GetMetadataOk() (*Metadata, bool)

GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ResourceMetadata) HasMetadata

func (o *ResourceMetadata) HasMetadata() bool

HasMetadata returns a boolean if a field has been set.

func (*ResourceMetadata) SetMetadata

func (o *ResourceMetadata) SetMetadata(v Metadata)

SetMetadata gets a reference to the given Metadata and assigns it to the Metadata field.

func (ResourceMetadata) ToMap

func (o ResourceMetadata) ToMap() (map[string]interface{}, error)

type ResourceType

type ResourceType string

ResourceType The type of the resource.

const (
	RESOURCETYPE_COLLECTION ResourceType = "collection"
	RESOURCETYPE_CLUSTER    ResourceType = "cluster"
	RESOURCETYPE_BACKUP     ResourceType = "backup"
	RESOURCETYPE_USER       ResourceType = "user"
	RESOURCETYPE_DATABASE   ResourceType = "database"
)

List of ResourceType

func (ResourceType) Ptr

func (v ResourceType) Ptr() *ResourceType

Ptr returns reference to ResourceType value

func (*ResourceType) UnmarshalJSON

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

type RestoresApiService

type RestoresApiService service

RestoresApiService RestoresApi service

func (*RestoresApiService) ClusterRestorePost

func (a *RestoresApiService) ClusterRestorePost(ctx _context.Context, clusterId string) ApiClusterRestorePostRequest

* ClusterRestorePost In-place restore of a cluster * Triggers an in-place restore of the given PostgreSQL. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param clusterId The unique ID of the cluster. * @return ApiClusterRestorePostRequest

func (*RestoresApiService) ClusterRestorePostExecute

func (a *RestoresApiService) ClusterRestorePostExecute(r ApiClusterRestorePostRequest) (*shared.APIResponse, error)

* Execute executes the request

type State

type State string

State The current status reported back by the cluster.

const (
	STATE_AVAILABLE  State = "AVAILABLE"
	STATE_BUSY       State = "BUSY"
	STATE_DESTROYING State = "DESTROYING"
	STATE_DEGRADED   State = "DEGRADED"
	STATE_FAILED     State = "FAILED"
	STATE_UNKNOWN    State = "UNKNOWN"
)

List of State

func (State) Ptr

func (v State) Ptr() *State

Ptr returns reference to State value

func (*State) UnmarshalJSON

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

type StorageType

type StorageType string

StorageType The storage type used in your cluster. (Value \"SSD\" is deprecated. Use the equivalent \"SSD Premium\" instead)

const (
	STORAGETYPE_HDD          StorageType = "HDD"
	STORAGETYPE_SSD          StorageType = "SSD"
	STORAGETYPE_SSD_STANDARD StorageType = "SSD Standard"
	STORAGETYPE_SSD_PREMIUM  StorageType = "SSD Premium"
)

List of StorageType

func (StorageType) Ptr

func (v StorageType) Ptr() *StorageType

Ptr returns reference to StorageType value

func (*StorageType) UnmarshalJSON

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

type SynchronizationMode

type SynchronizationMode string

SynchronizationMode Represents different modes of replication.

const (
	SYNCHRONIZATIONMODE_ASYNCHRONOUS         SynchronizationMode = "ASYNCHRONOUS"
	SYNCHRONIZATIONMODE_SYNCHRONOUS          SynchronizationMode = "SYNCHRONOUS"
	SYNCHRONIZATIONMODE_STRICTLY_SYNCHRONOUS SynchronizationMode = "STRICTLY_SYNCHRONOUS"
)

List of SynchronizationMode

func (SynchronizationMode) Ptr

Ptr returns reference to SynchronizationMode value

func (*SynchronizationMode) UnmarshalJSON

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

type TLSDial

type TLSDial func(ctx context.Context, network, addr string) (net.Conn, error)

TLSDial can be assigned to a http.Transport's DialTLS field.

type User

type User struct {
	Properties UserProperties `json:"properties"`
}

User struct for User

func NewUser

func NewUser(properties UserProperties) *User

NewUser instantiates a new User object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewUserWithDefaults

func NewUserWithDefaults() *User

NewUserWithDefaults instantiates a new User object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*User) GetProperties

func (o *User) GetProperties() UserProperties

GetProperties returns the Properties field value

func (*User) GetPropertiesOk

func (o *User) GetPropertiesOk() (*UserProperties, bool)

GetPropertiesOk returns a tuple with the Properties field value and a boolean to check if the value has been set.

func (*User) SetProperties

func (o *User) SetProperties(v UserProperties)

SetProperties sets field value

func (User) ToMap

func (o User) ToMap() (map[string]interface{}, error)

type UserItems

type UserItems struct {
	Items []UserResource `json:"items"`
}

UserItems struct for UserItems

func NewUserItems

func NewUserItems(items []UserResource) *UserItems

NewUserItems instantiates a new UserItems object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewUserItemsWithDefaults

func NewUserItemsWithDefaults() *UserItems

NewUserItemsWithDefaults instantiates a new UserItems object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*UserItems) GetItems

func (o *UserItems) GetItems() []UserResource

GetItems returns the Items field value

func (*UserItems) GetItemsOk

func (o *UserItems) GetItemsOk() ([]UserResource, bool)

GetItemsOk returns a tuple with the Items field value and a boolean to check if the value has been set.

func (*UserItems) SetItems

func (o *UserItems) SetItems(v []UserResource)

SetItems sets field value

func (UserItems) ToMap

func (o UserItems) ToMap() (map[string]interface{}, error)

type UserList

type UserList struct {
	// The offset specified in the request (if none was specified, the default offset is 0).
	Offset *int32 `json:"offset,omitempty"`
	// The limit specified in the request (if none was specified, the default limit is 100).
	Limit *int32           `json:"limit,omitempty"`
	Links *PaginationLinks `json:"_links,omitempty"`
	Type  ResourceType     `json:"type"`
	// The unique ID of the resource.
	Id string `json:"id"`
	// Absolute URL of the resource.
	Href  string         `json:"href"`
	Items []UserResource `json:"items"`
}

UserList struct for UserList

func NewUserList

func NewUserList(type_ ResourceType, id string, href string, items []UserResource) *UserList

NewUserList instantiates a new UserList object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewUserListWithDefaults

func NewUserListWithDefaults() *UserList

NewUserListWithDefaults instantiates a new UserList object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*UserList) GetHref

func (o *UserList) GetHref() string

GetHref returns the Href field value

func (*UserList) GetHrefOk

func (o *UserList) GetHrefOk() (*string, bool)

GetHrefOk returns a tuple with the Href field value and a boolean to check if the value has been set.

func (*UserList) GetId

func (o *UserList) GetId() string

GetId returns the Id field value

func (*UserList) GetIdOk

func (o *UserList) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.

func (*UserList) GetItems

func (o *UserList) GetItems() []UserResource

GetItems returns the Items field value

func (*UserList) GetItemsOk

func (o *UserList) GetItemsOk() ([]UserResource, bool)

GetItemsOk returns a tuple with the Items field value and a boolean to check if the value has been set.

func (*UserList) GetLimit

func (o *UserList) GetLimit() int32

GetLimit returns the Limit field value if set, zero value otherwise.

func (*UserList) GetLimitOk

func (o *UserList) GetLimitOk() (*int32, bool)

GetLimitOk returns a tuple with the Limit field value if set, nil otherwise and a boolean to check if the value has been set.

func (o *UserList) GetLinks() PaginationLinks

GetLinks returns the Links field value if set, zero value otherwise.

func (*UserList) GetLinksOk

func (o *UserList) GetLinksOk() (*PaginationLinks, bool)

GetLinksOk returns a tuple with the Links field value if set, nil otherwise and a boolean to check if the value has been set.

func (*UserList) GetOffset

func (o *UserList) GetOffset() int32

GetOffset returns the Offset field value if set, zero value otherwise.

func (*UserList) GetOffsetOk

func (o *UserList) GetOffsetOk() (*int32, bool)

GetOffsetOk returns a tuple with the Offset field value if set, nil otherwise and a boolean to check if the value has been set.

func (*UserList) GetType

func (o *UserList) GetType() ResourceType

GetType returns the Type field value

func (*UserList) GetTypeOk

func (o *UserList) GetTypeOk() (*ResourceType, bool)

GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.

func (*UserList) HasLimit

func (o *UserList) HasLimit() bool

HasLimit returns a boolean if a field has been set.

func (o *UserList) HasLinks() bool

HasLinks returns a boolean if a field has been set.

func (*UserList) HasOffset

func (o *UserList) HasOffset() bool

HasOffset returns a boolean if a field has been set.

func (*UserList) SetHref

func (o *UserList) SetHref(v string)

SetHref sets field value

func (*UserList) SetId

func (o *UserList) SetId(v string)

SetId sets field value

func (*UserList) SetItems

func (o *UserList) SetItems(v []UserResource)

SetItems sets field value

func (*UserList) SetLimit

func (o *UserList) SetLimit(v int32)

SetLimit gets a reference to the given int32 and assigns it to the Limit field.

func (o *UserList) SetLinks(v PaginationLinks)

SetLinks gets a reference to the given PaginationLinks and assigns it to the Links field.

func (*UserList) SetOffset

func (o *UserList) SetOffset(v int32)

SetOffset gets a reference to the given int32 and assigns it to the Offset field.

func (*UserList) SetType

func (o *UserList) SetType(v ResourceType)

SetType sets field value

func (UserList) ToMap

func (o UserList) ToMap() (map[string]interface{}, error)

type UserProperties

type UserProperties struct {
	// The username of a given user.
	Username string `json:"username"`
	// The password of a given user.
	Password *string `json:"password,omitempty"`
	// Describes whether this user is a system user or not. A system user cannot be updated or deleted.
	System *bool `json:"system,omitempty"`
}

UserProperties struct for UserProperties

func NewUserProperties

func NewUserProperties(username string) *UserProperties

NewUserProperties instantiates a new UserProperties object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewUserPropertiesWithDefaults

func NewUserPropertiesWithDefaults() *UserProperties

NewUserPropertiesWithDefaults instantiates a new UserProperties object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*UserProperties) GetPassword

func (o *UserProperties) GetPassword() string

GetPassword returns the Password field value if set, zero value otherwise.

func (*UserProperties) GetPasswordOk

func (o *UserProperties) GetPasswordOk() (*string, bool)

GetPasswordOk returns a tuple with the Password field value if set, nil otherwise and a boolean to check if the value has been set.

func (*UserProperties) GetSystem

func (o *UserProperties) GetSystem() bool

GetSystem returns the System field value if set, zero value otherwise.

func (*UserProperties) GetSystemOk

func (o *UserProperties) GetSystemOk() (*bool, bool)

GetSystemOk returns a tuple with the System field value if set, nil otherwise and a boolean to check if the value has been set.

func (*UserProperties) GetUsername

func (o *UserProperties) GetUsername() string

GetUsername returns the Username field value

func (*UserProperties) GetUsernameOk

func (o *UserProperties) GetUsernameOk() (*string, bool)

GetUsernameOk returns a tuple with the Username field value and a boolean to check if the value has been set.

func (*UserProperties) HasPassword

func (o *UserProperties) HasPassword() bool

HasPassword returns a boolean if a field has been set.

func (*UserProperties) HasSystem

func (o *UserProperties) HasSystem() bool

HasSystem returns a boolean if a field has been set.

func (*UserProperties) SetPassword

func (o *UserProperties) SetPassword(v string)

SetPassword gets a reference to the given string and assigns it to the Password field.

func (*UserProperties) SetSystem

func (o *UserProperties) SetSystem(v bool)

SetSystem gets a reference to the given bool and assigns it to the System field.

func (*UserProperties) SetUsername

func (o *UserProperties) SetUsername(v string)

SetUsername sets field value

func (UserProperties) ToMap

func (o UserProperties) ToMap() (map[string]interface{}, error)

type UserResource

type UserResource struct {
	Type ResourceType `json:"type"`
	// The unique ID of the resource.
	Id string `json:"id"`
	// Absolute URL of the resource.
	Href       string         `json:"href"`
	Metadata   *Metadata      `json:"metadata,omitempty"`
	Properties UserProperties `json:"properties"`
}

UserResource struct for UserResource

func NewUserResource

func NewUserResource(type_ ResourceType, id string, href string, properties UserProperties) *UserResource

NewUserResource instantiates a new UserResource object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewUserResourceWithDefaults

func NewUserResourceWithDefaults() *UserResource

NewUserResourceWithDefaults instantiates a new UserResource object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*UserResource) GetHref

func (o *UserResource) GetHref() string

GetHref returns the Href field value

func (*UserResource) GetHrefOk

func (o *UserResource) GetHrefOk() (*string, bool)

GetHrefOk returns a tuple with the Href field value and a boolean to check if the value has been set.

func (*UserResource) GetId

func (o *UserResource) GetId() string

GetId returns the Id field value

func (*UserResource) GetIdOk

func (o *UserResource) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.

func (*UserResource) GetMetadata

func (o *UserResource) GetMetadata() Metadata

GetMetadata returns the Metadata field value if set, zero value otherwise.

func (*UserResource) GetMetadataOk

func (o *UserResource) GetMetadataOk() (*Metadata, bool)

GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise and a boolean to check if the value has been set.

func (*UserResource) GetProperties

func (o *UserResource) GetProperties() UserProperties

GetProperties returns the Properties field value

func (*UserResource) GetPropertiesOk

func (o *UserResource) GetPropertiesOk() (*UserProperties, bool)

GetPropertiesOk returns a tuple with the Properties field value and a boolean to check if the value has been set.

func (*UserResource) GetType

func (o *UserResource) GetType() ResourceType

GetType returns the Type field value

func (*UserResource) GetTypeOk

func (o *UserResource) GetTypeOk() (*ResourceType, bool)

GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.

func (*UserResource) HasMetadata

func (o *UserResource) HasMetadata() bool

HasMetadata returns a boolean if a field has been set.

func (*UserResource) SetHref

func (o *UserResource) SetHref(v string)

SetHref sets field value

func (*UserResource) SetId

func (o *UserResource) SetId(v string)

SetId sets field value

func (*UserResource) SetMetadata

func (o *UserResource) SetMetadata(v Metadata)

SetMetadata gets a reference to the given Metadata and assigns it to the Metadata field.

func (*UserResource) SetProperties

func (o *UserResource) SetProperties(v UserProperties)

SetProperties sets field value

func (*UserResource) SetType

func (o *UserResource) SetType(v ResourceType)

SetType sets field value

func (UserResource) ToMap

func (o UserResource) ToMap() (map[string]interface{}, error)

type UsersApiService

type UsersApiService service

UsersApiService UsersApi service

func (*UsersApiService) UsersDelete

func (a *UsersApiService) UsersDelete(ctx _context.Context, clusterId string, username string) ApiUsersDeleteRequest

* UsersDelete Delete user * Deletes a single user * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param clusterId The unique ID of the cluster. * @param username The authentication username. * @return ApiUsersDeleteRequest

func (*UsersApiService) UsersDeleteExecute

func (a *UsersApiService) UsersDeleteExecute(r ApiUsersDeleteRequest) (*shared.APIResponse, error)

* Execute executes the request

func (*UsersApiService) UsersGet

func (a *UsersApiService) UsersGet(ctx _context.Context, clusterId string, username string) ApiUsersGetRequest

* UsersGet Get user * Retrieves a single user * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param clusterId The unique ID of the cluster. * @param username The authentication username. * @return ApiUsersGetRequest

func (*UsersApiService) UsersGetExecute

* Execute executes the request * @return UserResource

func (*UsersApiService) UsersList

func (a *UsersApiService) UsersList(ctx _context.Context, clusterId string) ApiUsersListRequest

* UsersList List users * Retrieves a list of users * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param clusterId The unique ID of the cluster. * @return ApiUsersListRequest

func (*UsersApiService) UsersListExecute

* Execute executes the request * @return UserList

func (*UsersApiService) UsersPatch

func (a *UsersApiService) UsersPatch(ctx _context.Context, clusterId string, username string) ApiUsersPatchRequest

* UsersPatch Patch user * Patches a single user. Only changing the password is supported. System users cannot be patched. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param clusterId The unique ID of the cluster. * @param username The authentication username. * @return ApiUsersPatchRequest

func (*UsersApiService) UsersPatchExecute

* Execute executes the request * @return UserResource

func (*UsersApiService) UsersPost

func (a *UsersApiService) UsersPost(ctx _context.Context, clusterId string) ApiUsersPostRequest

* UsersPost Create a user * Create a new Postgres User * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param clusterId The unique ID of the cluster. * @return ApiUsersPostRequest

func (*UsersApiService) UsersPostExecute

* Execute executes the request * @return UserResource

type UsersPatchRequest

type UsersPatchRequest struct {
	Properties PatchUserProperties `json:"properties"`
}

UsersPatchRequest struct for UsersPatchRequest

func NewUsersPatchRequest

func NewUsersPatchRequest(properties PatchUserProperties) *UsersPatchRequest

NewUsersPatchRequest instantiates a new UsersPatchRequest object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewUsersPatchRequestWithDefaults

func NewUsersPatchRequestWithDefaults() *UsersPatchRequest

NewUsersPatchRequestWithDefaults instantiates a new UsersPatchRequest object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*UsersPatchRequest) GetProperties

func (o *UsersPatchRequest) GetProperties() PatchUserProperties

GetProperties returns the Properties field value

func (*UsersPatchRequest) GetPropertiesOk

func (o *UsersPatchRequest) GetPropertiesOk() (*PatchUserProperties, bool)

GetPropertiesOk returns a tuple with the Properties field value and a boolean to check if the value has been set.

func (*UsersPatchRequest) SetProperties

func (o *UsersPatchRequest) SetProperties(v PatchUserProperties)

SetProperties sets field value

func (UsersPatchRequest) ToMap

func (o UsersPatchRequest) ToMap() (map[string]interface{}, error)

Jump to

Keyboard shortcuts

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