mongo

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2023 License: Apache-2.0 Imports: 26 Imported by: 0

README

Go API client for mongo

With IONOS Cloud Database as a Service, you have the ability to quickly set up and manage a MongoDB database. You can also delete clusters, manage backups and users via the API.

MongoDB is an open source, cross-platform, document-oriented database program. Classified as a NoSQL database program, it uses JSON-like documents with optional schemas.

The MongoDB API allows you to create additional database clusters or modify existing ones. Both tools, the Data Center Designer (DCD) and the API use the same concepts consistently and are well suited for smooth and intuitive use.

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/mongo.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/mongo.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/mongo@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_LOGLEVEL 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

Basic Authentication
  • Type: HTTP basic authentication

Example

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

func basicAuthExample() error {
	cfg := shared.NewConfiguration("username_here", "pwd_here", "", "")
	cfg.LogLevel = Trace
	apiClient := mongo.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"
        mongo "github.com/ionos-cloud/sdk-go-bundle/products/dbaas/mongo"
        "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(), "")
        cfg.LogLevel = Trace
        apiClient := mongo.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"
         mongo "github.com/ionos-cloud/sdk-go-bundle/products/dbaas/mongo"
        "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 := mongo.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 now inject any logger that implements Printf as a logger instead of using the default sdk logger. There are now Loglevels 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 (
        mongo "github.com/ionos-cloud/sdk-go-bundle/products/dbaas/mongo"
        "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
    cfg.LogLevel = Trace
    // inject your own logger that implements Printf
    cfg.Logger = logrus.New()
    // create you api client with the configuration
    apiClient := mongo.NewAPIClient(cfg)
}

Documentation for API Endpoints

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

API Endpoints table
Class Method HTTP request Description
ClustersApi ClustersDelete Delete /clusters/{clusterId} Delete a Cluster
ClustersApi ClustersFindById Get /clusters/{clusterId} Get a cluster by id
ClustersApi ClustersGet Get /clusters Get Clusters
ClustersApi ClustersPatch Patch /clusters/{clusterId} Patch a cluster
ClustersApi ClustersPost Post /clusters Create a Cluster
LogsApi ClustersLogsGet Get /clusters/{clusterId}/logs Get logs of your cluster
MetadataApi InfosVersionGet Get /infos/version Get API Version
MetadataApi InfosVersionsGet Get /infos/versions Get All API Versions
RestoresApi ClustersRestorePost Post /clusters/{clusterId}/restore In-place restore of a cluster
SnapshotsApi ClustersSnapshotsGet Get /clusters/{clusterId}/snapshots Get the snapshots of your cluster
TemplatesApi TemplatesGet Get /templates Get Templates
UsersApi ClustersUsersDelete Delete /clusters/{clusterId}/users/{username} Delete a MongoDB User by ID
UsersApi ClustersUsersFindById Get /clusters/{clusterId}/users/{username} Get a MongoDB User by ID
UsersApi ClustersUsersGet Get /clusters/{clusterId}/users Get all Cluster Users
UsersApi ClustersUsersPatch Patch /clusters/{clusterId}/users/{username} Patch a MongoDB User by ID
UsersApi ClustersUsersPost Post /clusters/{clusterId}/users Create MongoDB User

Documentation For Models

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

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/mongo/v0.1.0"
)

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.

Types

type APIClient

type APIClient struct {
	ClustersApi *ClustersApiService

	LogsApi *LogsApiService

	MetadataApi *MetadataApiService

	RestoresApi *RestoresApiService

	SnapshotsApi *SnapshotsApiService

	TemplatesApi *TemplatesApiService

	UsersApi *UsersApiService
	// contains filtered or unexported fields
}

APIClient manages communication with the IONOS DBaaS MongoDB 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 the value is explicit nil, the zero value for string will be returned

func (*APIVersion) GetNameOk

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

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*APIVersion) GetSwaggerUrl

func (o *APIVersion) GetSwaggerUrl() *string

GetSwaggerUrl returns the SwaggerUrl field value If the value is explicit nil, the zero value for string will be returned

func (*APIVersion) GetSwaggerUrlOk

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

GetSwaggerUrlOk returns a tuple with the SwaggerUrl field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

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) MarshalJSON

func (o APIVersion) MarshalJSON() ([]byte, error)

func (*APIVersion) SetName

func (o *APIVersion) SetName(v string)

SetName sets field value

func (*APIVersion) SetSwaggerUrl

func (o *APIVersion) SetSwaggerUrl(v string)

SetSwaggerUrl sets field value

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

type ApiClustersLogsGetRequest

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

func (ApiClustersLogsGetRequest) Direction

func (ApiClustersLogsGetRequest) End

func (ApiClustersLogsGetRequest) Execute

func (ApiClustersLogsGetRequest) Limit

func (ApiClustersLogsGetRequest) Start

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 ApiClustersRestorePostRequest

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

func (ApiClustersRestorePostRequest) CreateRestoreRequest

func (r ApiClustersRestorePostRequest) CreateRestoreRequest(createRestoreRequest CreateRestoreRequest) ApiClustersRestorePostRequest

func (ApiClustersRestorePostRequest) Execute

type ApiClustersSnapshotsGetRequest

type ApiClustersSnapshotsGetRequest struct {
	ApiService *SnapshotsApiService
	// contains filtered or unexported fields
}

func (ApiClustersSnapshotsGetRequest) Execute

type ApiClustersUsersDeleteRequest

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

func (ApiClustersUsersDeleteRequest) Execute

type ApiClustersUsersFindByIdRequest

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

func (ApiClustersUsersFindByIdRequest) Execute

type ApiClustersUsersGetRequest

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

func (ApiClustersUsersGetRequest) Execute

type ApiClustersUsersPatchRequest

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

func (ApiClustersUsersPatchRequest) Execute

func (ApiClustersUsersPatchRequest) PatchUserRequest

func (r ApiClustersUsersPatchRequest) PatchUserRequest(patchUserRequest PatchUserRequest) ApiClustersUsersPatchRequest

type ApiClustersUsersPostRequest

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

func (ApiClustersUsersPostRequest) Execute

func (ApiClustersUsersPostRequest) User

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 ApiTemplatesGetRequest

type ApiTemplatesGetRequest struct {
	ApiService *TemplatesApiService
	// contains filtered or unexported fields
}

func (ApiTemplatesGetRequest) Execute

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) (not implemented yet).
	Offset *int32 `json:"offset,omitempty"`
	// The limit specified in the request (if none was specified, use the endpoint's default pagination limit) (not implemented yet, always return number of items).
	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 the value is explicit nil, the zero value for string will be returned

func (*ClusterList) GetIdOk

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

GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ClusterList) GetItems

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

GetItems returns the Items field value If the value is explicit nil, the zero value for []ClusterResponse will be returned

func (*ClusterList) GetItemsOk

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

GetItemsOk returns a tuple with the Items field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ClusterList) GetLimit

func (o *ClusterList) GetLimit() *int32

GetLimit returns the Limit field value If the value is explicit nil, the zero value for int32 will be returned

func (*ClusterList) GetLimitOk

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

GetLimitOk returns a tuple with the Limit field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (o *ClusterList) GetLinks() *PaginationLinks

GetLinks returns the Links field value If the value is explicit nil, the zero value for PaginationLinks will be returned

func (*ClusterList) GetLinksOk

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

GetLinksOk returns a tuple with the Links field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ClusterList) GetOffset

func (o *ClusterList) GetOffset() *int32

GetOffset returns the Offset field value If the value is explicit nil, the zero value for int32 will be returned

func (*ClusterList) GetOffsetOk

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

GetOffsetOk returns a tuple with the Offset field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ClusterList) GetType

func (o *ClusterList) GetType() *ResourceType

GetType returns the Type field value If the value is explicit nil, the zero value for ResourceType will be returned

func (*ClusterList) GetTypeOk

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

GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

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) MarshalJSON

func (o ClusterList) MarshalJSON() ([]byte, error)

func (*ClusterList) SetId

func (o *ClusterList) SetId(v string)

SetId sets field value

func (*ClusterList) SetItems

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

SetItems sets field value

func (*ClusterList) SetLimit

func (o *ClusterList) SetLimit(v int32)

SetLimit sets field value

func (o *ClusterList) SetLinks(v PaginationLinks)

SetLinks sets field value

func (*ClusterList) SetOffset

func (o *ClusterList) SetOffset(v int32)

SetOffset sets field value

func (*ClusterList) SetType

func (o *ClusterList) SetType(v ResourceType)

SetType sets field value

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 the value is explicit nil, the zero value for string will be returned

func (*ClusterListAllOf) GetIdOk

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

GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ClusterListAllOf) GetItems

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

GetItems returns the Items field value If the value is explicit nil, the zero value for []ClusterResponse will be returned

func (*ClusterListAllOf) GetItemsOk

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

GetItemsOk returns a tuple with the Items field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ClusterListAllOf) GetType

func (o *ClusterListAllOf) GetType() *ResourceType

GetType returns the Type field value If the value is explicit nil, the zero value for ResourceType will be returned

func (*ClusterListAllOf) GetTypeOk

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

GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

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) MarshalJSON

func (o ClusterListAllOf) MarshalJSON() ([]byte, error)

func (*ClusterListAllOf) SetId

func (o *ClusterListAllOf) SetId(v string)

SetId sets field value

func (*ClusterListAllOf) SetItems

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

SetItems sets field value

func (*ClusterListAllOf) SetType

func (o *ClusterListAllOf) SetType(v ResourceType)

SetType sets field value

type ClusterLogs

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

ClusterLogs The logs of the MongoDB 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 the value is explicit nil, the zero value for []ClusterLogsInstances will be returned

func (*ClusterLogs) GetInstancesOk

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

GetInstancesOk returns a tuple with the Instances field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ClusterLogs) HasInstances

func (o *ClusterLogs) HasInstances() bool

HasInstances returns a boolean if a field has been set.

func (ClusterLogs) MarshalJSON

func (o ClusterLogs) MarshalJSON() ([]byte, error)

func (*ClusterLogs) SetInstances

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

SetInstances sets field value

type ClusterLogsInstances

type ClusterLogsInstances struct {
	// The name of the MongoDB instance.
	Name     *string                `json:"name,omitempty"`
	Messages *[]ClusterLogsMessages `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

func (o *ClusterLogsInstances) GetMessages() *[]ClusterLogsMessages

GetMessages returns the Messages field value If the value is explicit nil, the zero value for []ClusterLogsMessages will be returned

func (*ClusterLogsInstances) GetMessagesOk

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

GetMessagesOk returns a tuple with the Messages field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ClusterLogsInstances) GetName

func (o *ClusterLogsInstances) GetName() *string

GetName returns the Name field value If the value is explicit nil, the zero value for string will be returned

func (*ClusterLogsInstances) GetNameOk

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

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

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) MarshalJSON

func (o ClusterLogsInstances) MarshalJSON() ([]byte, error)

func (*ClusterLogsInstances) SetMessages

func (o *ClusterLogsInstances) SetMessages(v []ClusterLogsMessages)

SetMessages sets field value

func (*ClusterLogsInstances) SetName

func (o *ClusterLogsInstances) SetName(v string)

SetName sets field value

type ClusterLogsMessages

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

ClusterLogsMessages struct for ClusterLogsMessages

func NewClusterLogsMessages

func NewClusterLogsMessages() *ClusterLogsMessages

NewClusterLogsMessages instantiates a new ClusterLogsMessages 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 NewClusterLogsMessagesWithDefaults

func NewClusterLogsMessagesWithDefaults() *ClusterLogsMessages

NewClusterLogsMessagesWithDefaults instantiates a new ClusterLogsMessages 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 (*ClusterLogsMessages) GetMessage

func (o *ClusterLogsMessages) GetMessage() *string

GetMessage returns the Message field value If the value is explicit nil, the zero value for string will be returned

func (*ClusterLogsMessages) GetMessageOk

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

GetMessageOk returns a tuple with the Message field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ClusterLogsMessages) GetTime

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

GetTime returns the Time field value If the value is explicit nil, the zero value for time.Time will be returned

func (*ClusterLogsMessages) GetTimeOk

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

GetTimeOk returns a tuple with the Time field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ClusterLogsMessages) HasMessage

func (o *ClusterLogsMessages) HasMessage() bool

HasMessage returns a boolean if a field has been set.

func (*ClusterLogsMessages) HasTime

func (o *ClusterLogsMessages) HasTime() bool

HasTime returns a boolean if a field has been set.

func (ClusterLogsMessages) MarshalJSON

func (o ClusterLogsMessages) MarshalJSON() ([]byte, error)

func (*ClusterLogsMessages) SetMessage

func (o *ClusterLogsMessages) SetMessage(v string)

SetMessage sets field value

func (*ClusterLogsMessages) SetTime

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

SetTime sets field value

type ClusterProperties

type ClusterProperties struct {
	// The name of your cluster.
	DisplayName *string `json:"displayName,omitempty"`
	// The MongoDB version of your cluster.
	MongoDBVersion *string `json:"mongoDBVersion,omitempty"`
	// The physical location where the cluster will be created. This is the location where all your instances will be located. This property is immutable.
	Location *string `json:"location,omitempty"`
	// The total number of instances in the cluster (one primary and n-1 secondaries).
	Instances         *int32             `json:"instances,omitempty"`
	Connections       *[]Connection      `json:"connections,omitempty"`
	MaintenanceWindow *MaintenanceWindow `json:"maintenanceWindow,omitempty"`
	// The unique ID of the template, which specifies the number of cores, storage size, and memory. You cannot downgrade to a smaller template or minor edition (e.g. from business to playground). To get a list of all templates to confirm the changes use the /templates endpoint.
	TemplateID *string `json:"templateID,omitempty"`
	// The connection string for your cluster.
	ConnectionString *string `json:"connectionString,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) GetConnectionString

func (o *ClusterProperties) GetConnectionString() *string

GetConnectionString returns the ConnectionString field value If the value is explicit nil, the zero value for string will be returned

func (*ClusterProperties) GetConnectionStringOk

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

GetConnectionStringOk returns a tuple with the ConnectionString field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ClusterProperties) GetConnections

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

GetConnections returns the Connections field value If the value is explicit nil, the zero value for []Connection will be returned

func (*ClusterProperties) GetConnectionsOk

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

GetConnectionsOk returns a tuple with the Connections field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ClusterProperties) GetDisplayName

func (o *ClusterProperties) GetDisplayName() *string

GetDisplayName returns the DisplayName field value If the value is explicit nil, the zero value for string will be returned

func (*ClusterProperties) GetDisplayNameOk

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

GetDisplayNameOk returns a tuple with the DisplayName field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ClusterProperties) GetInstances

func (o *ClusterProperties) GetInstances() *int32

GetInstances returns the Instances field value If the value is explicit nil, the zero value for int32 will be returned

func (*ClusterProperties) GetInstancesOk

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

GetInstancesOk returns a tuple with the Instances field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ClusterProperties) GetLocation

func (o *ClusterProperties) GetLocation() *string

GetLocation returns the Location field value If the value is explicit nil, the zero value for string will be returned

func (*ClusterProperties) GetLocationOk

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

GetLocationOk returns a tuple with the Location field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ClusterProperties) GetMaintenanceWindow

func (o *ClusterProperties) GetMaintenanceWindow() *MaintenanceWindow

GetMaintenanceWindow returns the MaintenanceWindow field value If the value is explicit nil, the zero value for MaintenanceWindow will be returned

func (*ClusterProperties) GetMaintenanceWindowOk

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

GetMaintenanceWindowOk returns a tuple with the MaintenanceWindow field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ClusterProperties) GetMongoDBVersion

func (o *ClusterProperties) GetMongoDBVersion() *string

GetMongoDBVersion returns the MongoDBVersion field value If the value is explicit nil, the zero value for string will be returned

func (*ClusterProperties) GetMongoDBVersionOk

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

GetMongoDBVersionOk returns a tuple with the MongoDBVersion field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ClusterProperties) GetTemplateID

func (o *ClusterProperties) GetTemplateID() *string

GetTemplateID returns the TemplateID field value If the value is explicit nil, the zero value for string will be returned

func (*ClusterProperties) GetTemplateIDOk

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

GetTemplateIDOk returns a tuple with the TemplateID field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ClusterProperties) HasConnectionString

func (o *ClusterProperties) HasConnectionString() bool

HasConnectionString 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) HasDisplayName

func (o *ClusterProperties) HasDisplayName() bool

HasDisplayName 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) HasMongoDBVersion

func (o *ClusterProperties) HasMongoDBVersion() bool

HasMongoDBVersion returns a boolean if a field has been set.

func (*ClusterProperties) HasTemplateID

func (o *ClusterProperties) HasTemplateID() bool

HasTemplateID returns a boolean if a field has been set.

func (ClusterProperties) MarshalJSON

func (o ClusterProperties) MarshalJSON() ([]byte, error)

func (*ClusterProperties) SetConnectionString

func (o *ClusterProperties) SetConnectionString(v string)

SetConnectionString sets field value

func (*ClusterProperties) SetConnections

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

SetConnections sets field value

func (*ClusterProperties) SetDisplayName

func (o *ClusterProperties) SetDisplayName(v string)

SetDisplayName sets field value

func (*ClusterProperties) SetInstances

func (o *ClusterProperties) SetInstances(v int32)

SetInstances sets field value

func (*ClusterProperties) SetLocation

func (o *ClusterProperties) SetLocation(v string)

SetLocation sets field value

func (*ClusterProperties) SetMaintenanceWindow

func (o *ClusterProperties) SetMaintenanceWindow(v MaintenanceWindow)

SetMaintenanceWindow sets field value

func (*ClusterProperties) SetMongoDBVersion

func (o *ClusterProperties) SetMongoDBVersion(v string)

SetMongoDBVersion sets field value

func (*ClusterProperties) SetTemplateID

func (o *ClusterProperties) SetTemplateID(v string)

SetTemplateID sets field value

type ClusterResponse

type ClusterResponse struct {
	Type *ResourceType `json:"type,omitempty"`
	// The unique ID of the resource.
	Id         *string            `json:"id,omitempty"`
	Metadata   *Metadata          `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 the value is explicit nil, the zero value for string will be returned

func (*ClusterResponse) GetIdOk

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

GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ClusterResponse) GetMetadata

func (o *ClusterResponse) GetMetadata() *Metadata

GetMetadata returns the Metadata field value If the value is explicit nil, the zero value for Metadata will be returned

func (*ClusterResponse) GetMetadataOk

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

GetMetadataOk returns a tuple with the Metadata field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ClusterResponse) GetProperties

func (o *ClusterResponse) GetProperties() *ClusterProperties

GetProperties returns the Properties field value If the value is explicit nil, the zero value for ClusterProperties will be returned

func (*ClusterResponse) GetPropertiesOk

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

GetPropertiesOk returns a tuple with the Properties field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ClusterResponse) GetType

func (o *ClusterResponse) GetType() *ResourceType

GetType returns the Type field value If the value is explicit nil, the zero value for ResourceType will be returned

func (*ClusterResponse) GetTypeOk

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

GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

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) MarshalJSON

func (o ClusterResponse) MarshalJSON() ([]byte, error)

func (*ClusterResponse) SetId

func (o *ClusterResponse) SetId(v string)

SetId sets field value

func (*ClusterResponse) SetMetadata

func (o *ClusterResponse) SetMetadata(v Metadata)

SetMetadata sets field value

func (*ClusterResponse) SetProperties

func (o *ClusterResponse) SetProperties(v ClusterProperties)

SetProperties sets field value

func (*ClusterResponse) SetType

func (o *ClusterResponse) SetType(v ResourceType)

SetType sets field value

type ClustersApiService

type ClustersApiService service

ClustersApiService ClustersApi service

func (*ClustersApiService) ClustersDelete

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

* ClustersDelete Delete a Cluster * Deletes a MongoDB 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 Get a cluster by id * Get a cluster by id. * @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 Get Clusters * Retrieves a list of MongoDB 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 MongoDB 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 MongoDB cluster.

* @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

type Connection

type Connection struct {
	// The datacenter to which your cluster will be connected.
	DatacenterId *string `json:"datacenterId"`
	// The numeric LAN ID with which you connect your cluster.
	LanId *string `json:"lanId"`
	// The list of IPs for your cluster. All IPs must be in a /24 network. Note the following unavailable IP ranges: 10.233.114.0/24
	CidrList *[]string `json:"cidrList"`
}

Connection The network connection details for your cluster.

func NewConnection

func NewConnection(datacenterId string, lanId string, cidrList []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) GetCidrList

func (o *Connection) GetCidrList() *[]string

GetCidrList returns the CidrList field value If the value is explicit nil, the zero value for []string will be returned

func (*Connection) GetCidrListOk

func (o *Connection) GetCidrListOk() (*[]string, bool)

GetCidrListOk returns a tuple with the CidrList field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Connection) GetDatacenterId

func (o *Connection) GetDatacenterId() *string

GetDatacenterId returns the DatacenterId field value If the value is explicit nil, the zero value for string will be returned

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. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Connection) GetLanId

func (o *Connection) GetLanId() *string

GetLanId returns the LanId field value If the value is explicit nil, the zero value for string will be returned

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. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Connection) HasCidrList

func (o *Connection) HasCidrList() bool

HasCidrList returns a boolean if a field has been set.

func (*Connection) HasDatacenterId

func (o *Connection) HasDatacenterId() bool

HasDatacenterId returns a boolean if a field has been set.

func (*Connection) HasLanId

func (o *Connection) HasLanId() bool

HasLanId returns a boolean if a field has been set.

func (Connection) MarshalJSON

func (o Connection) MarshalJSON() ([]byte, error)

func (*Connection) SetCidrList

func (o *Connection) SetCidrList(v []string)

SetCidrList 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

type CreateClusterProperties

type CreateClusterProperties struct {
	// The unique ID of the template, which specifies the number of cores, storage size, and memory. You cannot downgrade to a smaller template or minor edition (e.g. from business to playground). To get a list of all templates to confirm the changes use the /templates endpoint.
	TemplateID *string `json:"templateID"`
	// The MongoDB version of your cluster.
	MongoDBVersion *string `json:"mongoDBVersion,omitempty"`
	// The total number of instances in the cluster (one primary and n-1 secondaries).
	Instances   *int32        `json:"instances"`
	Connections *[]Connection `json:"connections"`
	// The physical location where the cluster will be created. This is the location where all your instances will be located. This property is immutable.
	Location *string `json:"location"`
	// The name of your cluster.
	DisplayName       *string            `json:"displayName"`
	MaintenanceWindow *MaintenanceWindow `json:"maintenanceWindow,omitempty"`
}

CreateClusterProperties The properties with all data needed to create a new MongoDB cluster.

func NewCreateClusterProperties

func NewCreateClusterProperties(templateID string, instances int32, connections []Connection, location string, displayName string) *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) GetConnections

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

GetConnections returns the Connections field value If the value is explicit nil, the zero value for []Connection will be returned

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. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*CreateClusterProperties) GetDisplayName

func (o *CreateClusterProperties) GetDisplayName() *string

GetDisplayName returns the DisplayName field value If the value is explicit nil, the zero value for string will be returned

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. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*CreateClusterProperties) GetInstances

func (o *CreateClusterProperties) GetInstances() *int32

GetInstances returns the Instances field value If the value is explicit nil, the zero value for int32 will be returned

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. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*CreateClusterProperties) GetLocation

func (o *CreateClusterProperties) GetLocation() *string

GetLocation returns the Location field value If the value is explicit nil, the zero value for string will be returned

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. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*CreateClusterProperties) GetMaintenanceWindow

func (o *CreateClusterProperties) GetMaintenanceWindow() *MaintenanceWindow

GetMaintenanceWindow returns the MaintenanceWindow field value If the value is explicit nil, the zero value for MaintenanceWindow will be returned

func (*CreateClusterProperties) GetMaintenanceWindowOk

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

GetMaintenanceWindowOk returns a tuple with the MaintenanceWindow field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*CreateClusterProperties) GetMongoDBVersion

func (o *CreateClusterProperties) GetMongoDBVersion() *string

GetMongoDBVersion returns the MongoDBVersion field value If the value is explicit nil, the zero value for string will be returned

func (*CreateClusterProperties) GetMongoDBVersionOk

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

GetMongoDBVersionOk returns a tuple with the MongoDBVersion field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*CreateClusterProperties) GetTemplateID

func (o *CreateClusterProperties) GetTemplateID() *string

GetTemplateID returns the TemplateID field value If the value is explicit nil, the zero value for string will be returned

func (*CreateClusterProperties) GetTemplateIDOk

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

GetTemplateIDOk returns a tuple with the TemplateID field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*CreateClusterProperties) HasConnections

func (o *CreateClusterProperties) HasConnections() bool

HasConnections returns a boolean if a field has been set.

func (*CreateClusterProperties) HasDisplayName

func (o *CreateClusterProperties) HasDisplayName() bool

HasDisplayName returns a boolean if a field has been set.

func (*CreateClusterProperties) HasInstances

func (o *CreateClusterProperties) HasInstances() bool

HasInstances returns a boolean if a field has been set.

func (*CreateClusterProperties) HasLocation

func (o *CreateClusterProperties) HasLocation() bool

HasLocation 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) HasMongoDBVersion

func (o *CreateClusterProperties) HasMongoDBVersion() bool

HasMongoDBVersion returns a boolean if a field has been set.

func (*CreateClusterProperties) HasTemplateID

func (o *CreateClusterProperties) HasTemplateID() bool

HasTemplateID returns a boolean if a field has been set.

func (CreateClusterProperties) MarshalJSON

func (o CreateClusterProperties) MarshalJSON() ([]byte, error)

func (*CreateClusterProperties) SetConnections

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

SetConnections sets field value

func (*CreateClusterProperties) SetDisplayName

func (o *CreateClusterProperties) SetDisplayName(v string)

SetDisplayName sets field value

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 sets field value

func (*CreateClusterProperties) SetMongoDBVersion

func (o *CreateClusterProperties) SetMongoDBVersion(v string)

SetMongoDBVersion sets field value

func (*CreateClusterProperties) SetTemplateID

func (o *CreateClusterProperties) SetTemplateID(v string)

SetTemplateID sets field value

type CreateClusterRequest

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

CreateClusterRequest The request payload with all data needed to create a new MongoDB 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() *Metadata

GetMetadata returns the Metadata field value If the value is explicit nil, the zero value for Metadata will be returned

func (*CreateClusterRequest) GetMetadataOk

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

GetMetadataOk returns a tuple with the Metadata field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*CreateClusterRequest) GetProperties

func (o *CreateClusterRequest) GetProperties() *CreateClusterProperties

GetProperties returns the Properties field value If the value is explicit nil, the zero value for CreateClusterProperties will be returned

func (*CreateClusterRequest) GetPropertiesOk

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

GetPropertiesOk returns a tuple with the Properties field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

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) MarshalJSON

func (o CreateClusterRequest) MarshalJSON() ([]byte, error)

func (*CreateClusterRequest) SetMetadata

func (o *CreateClusterRequest) SetMetadata(v Metadata)

SetMetadata sets field value

func (*CreateClusterRequest) SetProperties

func (o *CreateClusterRequest) SetProperties(v CreateClusterProperties)

SetProperties sets field value

type CreateRestoreRequest

type CreateRestoreRequest struct {
	// The unique ID of the snapshot you want to restore.
	SnapshotId *string `json:"snapshotId"`
}

CreateRestoreRequest The restore request.

func NewCreateRestoreRequest

func NewCreateRestoreRequest(snapshotId 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) GetSnapshotId

func (o *CreateRestoreRequest) GetSnapshotId() *string

GetSnapshotId returns the SnapshotId field value If the value is explicit nil, the zero value for string will be returned

func (*CreateRestoreRequest) GetSnapshotIdOk

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

GetSnapshotIdOk returns a tuple with the SnapshotId field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*CreateRestoreRequest) HasSnapshotId

func (o *CreateRestoreRequest) HasSnapshotId() bool

HasSnapshotId returns a boolean if a field has been set.

func (CreateRestoreRequest) MarshalJSON

func (o CreateRestoreRequest) MarshalJSON() ([]byte, error)

func (*CreateRestoreRequest) SetSnapshotId

func (o *CreateRestoreRequest) SetSnapshotId(v string)

SetSnapshotId sets field value

type DayOfTheWeek

type DayOfTheWeek string

DayOfTheWeek 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 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 the value is explicit nil, the zero value for string will be returned

func (*ErrorMessage) GetErrorCodeOk

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

GetErrorCodeOk returns a tuple with the ErrorCode field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ErrorMessage) GetMessage

func (o *ErrorMessage) GetMessage() *string

GetMessage returns the Message field value If the value is explicit nil, the zero value for string will be returned

func (*ErrorMessage) GetMessageOk

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

GetMessageOk returns a tuple with the Message field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

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) MarshalJSON

func (o ErrorMessage) MarshalJSON() ([]byte, error)

func (*ErrorMessage) SetErrorCode

func (o *ErrorMessage) SetErrorCode(v string)

SetErrorCode sets field value

func (*ErrorMessage) SetMessage

func (o *ErrorMessage) SetMessage(v string)

SetMessage sets field value

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 the value is explicit nil, the zero value for int32 will be returned

func (*ErrorResponse) GetHttpStatusOk

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

GetHttpStatusOk returns a tuple with the HttpStatus field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ErrorResponse) GetMessages

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

GetMessages returns the Messages field value If the value is explicit nil, the zero value for []ErrorMessage will be returned

func (*ErrorResponse) GetMessagesOk

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

GetMessagesOk returns a tuple with the Messages field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

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) MarshalJSON

func (o ErrorResponse) MarshalJSON() ([]byte, error)

func (*ErrorResponse) SetHttpStatus

func (o *ErrorResponse) SetHttpStatus(v int32)

SetHttpStatus sets field value

func (*ErrorResponse) SetMessages

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

SetMessages sets field value

type Health

type Health string

Health The current health status reported by the cluster. * **HEALTHY** Primary exists and number of replicas is equal to specified. * **UNHEALTHY** Primary does not exist or cluster doesn't have majority. * **DEGRADED** Primary exists and number of replicas is less than specified. * **UNKNOWN** The health status is unknown.

const (
	HEALTH_HEALTHY   Health = "HEALTHY"
	HEALTH_UNHEALTHY Health = "UNHEALTHY"
	HEALTH_DEGRADED  Health = "DEGRADED"
	HEALTH_UNKNOWN   Health = "UNKNOWN"
)

List of Health

func (Health) Ptr

func (v Health) Ptr() *Health

Ptr returns reference to Health value

func (*Health) UnmarshalJSON

func (v *Health) UnmarshalJSON(src []byte) 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) ClustersLogsGet

func (a *LogsApiService) ClustersLogsGet(ctx _context.Context, clusterId string) ApiClustersLogsGetRequest

* ClustersLogsGet Get logs of your cluster * Retrieves MongoDB 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 ApiClustersLogsGetRequest

func (*LogsApiService) ClustersLogsGetExecute

func (a *LogsApiService) ClustersLogsGetExecute(r ApiClustersLogsGetRequest) (ClusterLogs, *shared.APIResponse, error)

* Execute executes the request * @return ClusterLogs

type MaintenanceWindow

type MaintenanceWindow struct {
	Time         *string       `json:"time"`
	DayOfTheWeek *DayOfTheWeek `json:"dayOfTheWeek"`
}

MaintenanceWindow A weekly window of 4 hours during which maintenance work can be performed.

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 If the value is explicit nil, the zero value for DayOfTheWeek will be returned

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. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*MaintenanceWindow) GetTime

func (o *MaintenanceWindow) GetTime() *string

GetTime returns the Time field value If the value is explicit nil, the zero value for string will be returned

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. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*MaintenanceWindow) HasDayOfTheWeek

func (o *MaintenanceWindow) HasDayOfTheWeek() bool

HasDayOfTheWeek returns a boolean if a field has been set.

func (*MaintenanceWindow) HasTime

func (o *MaintenanceWindow) HasTime() bool

HasTime returns a boolean if a field has been set.

func (MaintenanceWindow) MarshalJSON

func (o MaintenanceWindow) MarshalJSON() ([]byte, error)

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

type Metadata

type Metadata struct {
	// The date the resource was created.
	CreatedDate *IonosTime `json:"createdDate,omitempty"`
	// The user who created the resource.
	CreatedBy *string `json:"createdBy,omitempty"`
	// The ID of the user who created the resource.
	CreatedByUserId *string `json:"createdByUserId,omitempty"`
	// The date the resource was last modified.
	LastModifiedDate *IonosTime `json:"lastModifiedDate,omitempty"`
	// The last user who modified the resource.
	LastModifiedBy *string `json:"lastModifiedBy,omitempty"`
	// The ID of the user who last modified the resource.
	LastModifiedByUserId *string `json:"lastModifiedByUserId,omitempty"`
	State                *State  `json:"state,omitempty"`
	Health               *Health `json:"health,omitempty"`
}

Metadata The metadata of the resource.

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 the value is explicit nil, the zero value for string will be returned

func (*Metadata) GetCreatedByOk

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

GetCreatedByOk returns a tuple with the CreatedBy field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Metadata) GetCreatedByUserId

func (o *Metadata) GetCreatedByUserId() *string

GetCreatedByUserId returns the CreatedByUserId field value If the value is explicit nil, the zero value for string will be returned

func (*Metadata) GetCreatedByUserIdOk

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

GetCreatedByUserIdOk returns a tuple with the CreatedByUserId field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Metadata) GetCreatedDate

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

GetCreatedDate returns the CreatedDate field value If the value is explicit nil, the zero value for time.Time will be returned

func (*Metadata) GetCreatedDateOk

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

GetCreatedDateOk returns a tuple with the CreatedDate field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Metadata) GetHealth

func (o *Metadata) GetHealth() *Health

GetHealth returns the Health field value If the value is explicit nil, the zero value for Health will be returned

func (*Metadata) GetHealthOk

func (o *Metadata) GetHealthOk() (*Health, bool)

GetHealthOk returns a tuple with the Health field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Metadata) GetLastModifiedBy

func (o *Metadata) GetLastModifiedBy() *string

GetLastModifiedBy returns the LastModifiedBy field value If the value is explicit nil, the zero value for string will be returned

func (*Metadata) GetLastModifiedByOk

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

GetLastModifiedByOk returns a tuple with the LastModifiedBy field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Metadata) GetLastModifiedByUserId

func (o *Metadata) GetLastModifiedByUserId() *string

GetLastModifiedByUserId returns the LastModifiedByUserId field value If the value is explicit nil, the zero value for string will be returned

func (*Metadata) GetLastModifiedByUserIdOk

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

GetLastModifiedByUserIdOk returns a tuple with the LastModifiedByUserId field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Metadata) GetLastModifiedDate

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

GetLastModifiedDate returns the LastModifiedDate field value If the value is explicit nil, the zero value for time.Time will be returned

func (*Metadata) GetLastModifiedDateOk

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

GetLastModifiedDateOk returns a tuple with the LastModifiedDate field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Metadata) GetState

func (o *Metadata) GetState() *State

GetState returns the State field value If the value is explicit nil, the zero value for State will be returned

func (*Metadata) GetStateOk

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

GetStateOk returns a tuple with the State field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

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) HasHealth

func (o *Metadata) HasHealth() bool

HasHealth 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) HasState

func (o *Metadata) HasState() bool

HasState returns a boolean if a field has been set.

func (Metadata) MarshalJSON

func (o Metadata) MarshalJSON() ([]byte, error)

func (*Metadata) SetCreatedBy

func (o *Metadata) SetCreatedBy(v string)

SetCreatedBy sets field value

func (*Metadata) SetCreatedByUserId

func (o *Metadata) SetCreatedByUserId(v string)

SetCreatedByUserId sets field value

func (*Metadata) SetCreatedDate

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

SetCreatedDate sets field value

func (*Metadata) SetHealth

func (o *Metadata) SetHealth(v Health)

SetHealth sets field value

func (*Metadata) SetLastModifiedBy

func (o *Metadata) SetLastModifiedBy(v string)

SetLastModifiedBy sets field value

func (*Metadata) SetLastModifiedByUserId

func (o *Metadata) SetLastModifiedByUserId(v string)

SetLastModifiedByUserId sets field value

func (*Metadata) SetLastModifiedDate

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

SetLastModifiedDate sets field value

func (*Metadata) SetState

func (o *Metadata) SetState(v State)

SetState sets field value

type MetadataApiService

type MetadataApiService service

MetadataApiService MetadataApi service

func (*MetadataApiService) InfosVersionGet

* InfosVersionGet Get 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 Get 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 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 NullableClusterLogsMessages

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

func NewNullableClusterLogsMessages

func NewNullableClusterLogsMessages(val *ClusterLogsMessages) *NullableClusterLogsMessages

func (NullableClusterLogsMessages) Get

func (NullableClusterLogsMessages) IsSet

func (NullableClusterLogsMessages) MarshalJSON

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

func (*NullableClusterLogsMessages) Set

func (*NullableClusterLogsMessages) UnmarshalJSON

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

func (*NullableClusterLogsMessages) Unset

func (v *NullableClusterLogsMessages) 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 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 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 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 NullableHealth

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

func NewNullableHealth

func NewNullableHealth(val *Health) *NullableHealth

func (NullableHealth) Get

func (v NullableHealth) Get() *Health

func (NullableHealth) IsSet

func (v NullableHealth) IsSet() bool

func (NullableHealth) MarshalJSON

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

func (*NullableHealth) Set

func (v *NullableHealth) Set(val *Health)

func (*NullableHealth) UnmarshalJSON

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

func (*NullableHealth) Unset

func (v *NullableHealth) Unset()

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 NullablePatchUserRequest

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

func NewNullablePatchUserRequest

func NewNullablePatchUserRequest(val *PatchUserRequest) *NullablePatchUserRequest

func (NullablePatchUserRequest) Get

func (NullablePatchUserRequest) IsSet

func (v NullablePatchUserRequest) IsSet() bool

func (NullablePatchUserRequest) MarshalJSON

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

func (*NullablePatchUserRequest) Set

func (*NullablePatchUserRequest) UnmarshalJSON

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

func (*NullablePatchUserRequest) Unset

func (v *NullablePatchUserRequest) 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 NullableSnapshotList

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

func NewNullableSnapshotList

func NewNullableSnapshotList(val *SnapshotList) *NullableSnapshotList

func (NullableSnapshotList) Get

func (NullableSnapshotList) IsSet

func (v NullableSnapshotList) IsSet() bool

func (NullableSnapshotList) MarshalJSON

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

func (*NullableSnapshotList) Set

func (v *NullableSnapshotList) Set(val *SnapshotList)

func (*NullableSnapshotList) UnmarshalJSON

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

func (*NullableSnapshotList) Unset

func (v *NullableSnapshotList) Unset()

type NullableSnapshotListAllOf

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

func NewNullableSnapshotListAllOf

func NewNullableSnapshotListAllOf(val *SnapshotListAllOf) *NullableSnapshotListAllOf

func (NullableSnapshotListAllOf) Get

func (NullableSnapshotListAllOf) IsSet

func (v NullableSnapshotListAllOf) IsSet() bool

func (NullableSnapshotListAllOf) MarshalJSON

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

func (*NullableSnapshotListAllOf) Set

func (*NullableSnapshotListAllOf) UnmarshalJSON

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

func (*NullableSnapshotListAllOf) Unset

func (v *NullableSnapshotListAllOf) Unset()

type NullableSnapshotProperties

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

func NewNullableSnapshotProperties

func NewNullableSnapshotProperties(val *SnapshotProperties) *NullableSnapshotProperties

func (NullableSnapshotProperties) Get

func (NullableSnapshotProperties) IsSet

func (v NullableSnapshotProperties) IsSet() bool

func (NullableSnapshotProperties) MarshalJSON

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

func (*NullableSnapshotProperties) Set

func (*NullableSnapshotProperties) UnmarshalJSON

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

func (*NullableSnapshotProperties) Unset

func (v *NullableSnapshotProperties) Unset()

type NullableSnapshotResponse

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

func NewNullableSnapshotResponse

func NewNullableSnapshotResponse(val *SnapshotResponse) *NullableSnapshotResponse

func (NullableSnapshotResponse) Get

func (NullableSnapshotResponse) IsSet

func (v NullableSnapshotResponse) IsSet() bool

func (NullableSnapshotResponse) MarshalJSON

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

func (*NullableSnapshotResponse) Set

func (*NullableSnapshotResponse) UnmarshalJSON

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

func (*NullableSnapshotResponse) Unset

func (v *NullableSnapshotResponse) 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 NullableTemplateList

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

func NewNullableTemplateList

func NewNullableTemplateList(val *TemplateList) *NullableTemplateList

func (NullableTemplateList) Get

func (NullableTemplateList) IsSet

func (v NullableTemplateList) IsSet() bool

func (NullableTemplateList) MarshalJSON

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

func (*NullableTemplateList) Set

func (v *NullableTemplateList) Set(val *TemplateList)

func (*NullableTemplateList) UnmarshalJSON

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

func (*NullableTemplateList) Unset

func (v *NullableTemplateList) Unset()

type NullableTemplateListAllOf

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

func NewNullableTemplateListAllOf

func NewNullableTemplateListAllOf(val *TemplateListAllOf) *NullableTemplateListAllOf

func (NullableTemplateListAllOf) Get

func (NullableTemplateListAllOf) IsSet

func (v NullableTemplateListAllOf) IsSet() bool

func (NullableTemplateListAllOf) MarshalJSON

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

func (*NullableTemplateListAllOf) Set

func (*NullableTemplateListAllOf) UnmarshalJSON

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

func (*NullableTemplateListAllOf) Unset

func (v *NullableTemplateListAllOf) Unset()

type NullableTemplateResponse

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

func NewNullableTemplateResponse

func NewNullableTemplateResponse(val *TemplateResponse) *NullableTemplateResponse

func (NullableTemplateResponse) Get

func (NullableTemplateResponse) IsSet

func (v NullableTemplateResponse) IsSet() bool

func (NullableTemplateResponse) MarshalJSON

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

func (*NullableTemplateResponse) Set

func (*NullableTemplateResponse) UnmarshalJSON

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

func (*NullableTemplateResponse) Unset

func (v *NullableTemplateResponse) 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 NullableUserMetadata

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

func NewNullableUserMetadata

func NewNullableUserMetadata(val *UserMetadata) *NullableUserMetadata

func (NullableUserMetadata) Get

func (NullableUserMetadata) IsSet

func (v NullableUserMetadata) IsSet() bool

func (NullableUserMetadata) MarshalJSON

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

func (*NullableUserMetadata) Set

func (v *NullableUserMetadata) Set(val *UserMetadata)

func (*NullableUserMetadata) UnmarshalJSON

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

func (*NullableUserMetadata) Unset

func (v *NullableUserMetadata) 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 NullableUserRoles

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

func NewNullableUserRoles

func NewNullableUserRoles(val *UserRoles) *NullableUserRoles

func (NullableUserRoles) Get

func (v NullableUserRoles) Get() *UserRoles

func (NullableUserRoles) IsSet

func (v NullableUserRoles) IsSet() bool

func (NullableUserRoles) MarshalJSON

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

func (*NullableUserRoles) Set

func (v *NullableUserRoles) Set(val *UserRoles)

func (*NullableUserRoles) UnmarshalJSON

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

func (*NullableUserRoles) Unset

func (v *NullableUserRoles) Unset()

type NullableUsersList

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

func NewNullableUsersList

func NewNullableUsersList(val *UsersList) *NullableUsersList

func (NullableUsersList) Get

func (v NullableUsersList) Get() *UsersList

func (NullableUsersList) IsSet

func (v NullableUsersList) IsSet() bool

func (NullableUsersList) MarshalJSON

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

func (*NullableUsersList) Set

func (v *NullableUsersList) Set(val *UsersList)

func (*NullableUsersList) UnmarshalJSON

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

func (*NullableUsersList) Unset

func (v *NullableUsersList) Unset()

type Pagination

type Pagination struct {
	// The offset specified in the request (if none was specified, the default offset is 0) (not implemented yet).
	Offset *int32 `json:"offset,omitempty"`
	// The limit specified in the request (if none was specified, use the endpoint's default pagination limit) (not implemented yet, always return number of items).
	Limit *int32           `json:"limit,omitempty"`
	Links *PaginationLinks `json:"_links,omitempty"`
}

Pagination struct for Pagination

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 the value is explicit nil, the zero value for int32 will be returned

func (*Pagination) GetLimitOk

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

GetLimitOk returns a tuple with the Limit field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (o *Pagination) GetLinks() *PaginationLinks

GetLinks returns the Links field value If the value is explicit nil, the zero value for PaginationLinks will be returned

func (*Pagination) GetLinksOk

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

GetLinksOk returns a tuple with the Links field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Pagination) GetOffset

func (o *Pagination) GetOffset() *int32

GetOffset returns the Offset field value If the value is explicit nil, the zero value for int32 will be returned

func (*Pagination) GetOffsetOk

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

GetOffsetOk returns a tuple with the Offset field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

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) MarshalJSON

func (o Pagination) MarshalJSON() ([]byte, error)

func (*Pagination) SetLimit

func (o *Pagination) SetLimit(v int32)

SetLimit sets field value

func (o *Pagination) SetLinks(v PaginationLinks)

SetLinks sets field value

func (*Pagination) SetOffset

func (o *Pagination) SetOffset(v int32)

SetOffset sets field value

type PaginationLinks struct {
	// The URL (with offset and limit parameters) of the previous page; only present if the offset is greater than 0.
	Prev *string `json:"prev,omitempty"`
	// The URL (with offset and limit parameters) of the current page.
	Self *string `json:"self,omitempty"`
	// The URL (with offset and limit parameters) of the next page; only present if the offset and limit is less than the total number of elements.
	Next *string `json:"next,omitempty"`
}

PaginationLinks The URLs to navigate the different pages. As of now we always only return a single page.

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 the value is explicit nil, the zero value for string will be returned

func (*PaginationLinks) GetNextOk

func (o *PaginationLinks) GetNextOk() (*string, bool)

GetNextOk returns a tuple with the Next field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*PaginationLinks) GetPrev

func (o *PaginationLinks) GetPrev() *string

GetPrev returns the Prev field value If the value is explicit nil, the zero value for string will be returned

func (*PaginationLinks) GetPrevOk

func (o *PaginationLinks) GetPrevOk() (*string, bool)

GetPrevOk returns a tuple with the Prev field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*PaginationLinks) GetSelf

func (o *PaginationLinks) GetSelf() *string

GetSelf returns the Self field value If the value is explicit nil, the zero value for string will be returned

func (*PaginationLinks) GetSelfOk

func (o *PaginationLinks) GetSelfOk() (*string, bool)

GetSelfOk returns a tuple with the Self field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

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) MarshalJSON

func (o PaginationLinks) MarshalJSON() ([]byte, error)

func (*PaginationLinks) SetNext

func (o *PaginationLinks) SetNext(v string)

SetNext sets field value

func (*PaginationLinks) SetPrev

func (o *PaginationLinks) SetPrev(v string)

SetPrev sets field value

func (*PaginationLinks) SetSelf

func (o *PaginationLinks) SetSelf(v string)

SetSelf sets field value

type PatchClusterProperties

type PatchClusterProperties struct {
	// The name of your cluster.
	DisplayName       *string            `json:"displayName,omitempty"`
	MaintenanceWindow *MaintenanceWindow `json:"maintenanceWindow,omitempty"`
	// The total number of instances in the cluster (one primary and n-1 secondaries).
	Instances   *int32        `json:"instances,omitempty"`
	Connections *[]Connection `json:"connections,omitempty"`
	// The unique ID of the template, which specifies the number of cores, storage size, and memory. You cannot downgrade to a smaller template or minor edition (e.g. from business to playground). To get a list of all templates to confirm the changes use the /templates endpoint.
	TemplateID *string `json:"templateID,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) GetConnections

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

GetConnections returns the Connections field value If the value is explicit nil, the zero value for []Connection will be returned

func (*PatchClusterProperties) GetConnectionsOk

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

GetConnectionsOk returns a tuple with the Connections field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*PatchClusterProperties) GetDisplayName

func (o *PatchClusterProperties) GetDisplayName() *string

GetDisplayName returns the DisplayName field value If the value is explicit nil, the zero value for string will be returned

func (*PatchClusterProperties) GetDisplayNameOk

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

GetDisplayNameOk returns a tuple with the DisplayName field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*PatchClusterProperties) GetInstances

func (o *PatchClusterProperties) GetInstances() *int32

GetInstances returns the Instances field value If the value is explicit nil, the zero value for int32 will be returned

func (*PatchClusterProperties) GetInstancesOk

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

GetInstancesOk returns a tuple with the Instances field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*PatchClusterProperties) GetMaintenanceWindow

func (o *PatchClusterProperties) GetMaintenanceWindow() *MaintenanceWindow

GetMaintenanceWindow returns the MaintenanceWindow field value If the value is explicit nil, the zero value for MaintenanceWindow will be returned

func (*PatchClusterProperties) GetMaintenanceWindowOk

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

GetMaintenanceWindowOk returns a tuple with the MaintenanceWindow field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*PatchClusterProperties) GetTemplateID

func (o *PatchClusterProperties) GetTemplateID() *string

GetTemplateID returns the TemplateID field value If the value is explicit nil, the zero value for string will be returned

func (*PatchClusterProperties) GetTemplateIDOk

func (o *PatchClusterProperties) GetTemplateIDOk() (*string, bool)

GetTemplateIDOk returns a tuple with the TemplateID field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*PatchClusterProperties) HasConnections

func (o *PatchClusterProperties) HasConnections() bool

HasConnections 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) HasTemplateID

func (o *PatchClusterProperties) HasTemplateID() bool

HasTemplateID returns a boolean if a field has been set.

func (PatchClusterProperties) MarshalJSON

func (o PatchClusterProperties) MarshalJSON() ([]byte, error)

func (*PatchClusterProperties) SetConnections

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

SetConnections sets field value

func (*PatchClusterProperties) SetDisplayName

func (o *PatchClusterProperties) SetDisplayName(v string)

SetDisplayName sets field value

func (*PatchClusterProperties) SetInstances

func (o *PatchClusterProperties) SetInstances(v int32)

SetInstances sets field value

func (*PatchClusterProperties) SetMaintenanceWindow

func (o *PatchClusterProperties) SetMaintenanceWindow(v MaintenanceWindow)

SetMaintenanceWindow sets field value

func (*PatchClusterProperties) SetTemplateID

func (o *PatchClusterProperties) SetTemplateID(v string)

SetTemplateID sets field value

type PatchClusterRequest

type PatchClusterRequest struct {
	Metadata   *Metadata               `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() *Metadata

GetMetadata returns the Metadata field value If the value is explicit nil, the zero value for Metadata will be returned

func (*PatchClusterRequest) GetMetadataOk

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

GetMetadataOk returns a tuple with the Metadata field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*PatchClusterRequest) GetProperties

func (o *PatchClusterRequest) GetProperties() *PatchClusterProperties

GetProperties returns the Properties field value If the value is explicit nil, the zero value for PatchClusterProperties will be returned

func (*PatchClusterRequest) GetPropertiesOk

func (o *PatchClusterRequest) GetPropertiesOk() (*PatchClusterProperties, bool)

GetPropertiesOk returns a tuple with the Properties field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

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) MarshalJSON

func (o PatchClusterRequest) MarshalJSON() ([]byte, error)

func (*PatchClusterRequest) SetMetadata

func (o *PatchClusterRequest) SetMetadata(v Metadata)

SetMetadata sets field value

func (*PatchClusterRequest) SetProperties

func (o *PatchClusterRequest) SetProperties(v PatchClusterProperties)

SetProperties sets field value

type PatchUserProperties

type PatchUserProperties struct {
	Password *string      `json:"password,omitempty"`
	Roles    *[]UserRoles `json:"roles,omitempty"`
}

PatchUserProperties MongoDB database user patch request properties.

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 the value is explicit nil, the zero value for string will be returned

func (*PatchUserProperties) GetPasswordOk

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

GetPasswordOk returns a tuple with the Password field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*PatchUserProperties) GetRoles

func (o *PatchUserProperties) GetRoles() *[]UserRoles

GetRoles returns the Roles field value If the value is explicit nil, the zero value for []UserRoles will be returned

func (*PatchUserProperties) GetRolesOk

func (o *PatchUserProperties) GetRolesOk() (*[]UserRoles, bool)

GetRolesOk returns a tuple with the Roles field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*PatchUserProperties) HasPassword

func (o *PatchUserProperties) HasPassword() bool

HasPassword returns a boolean if a field has been set.

func (*PatchUserProperties) HasRoles

func (o *PatchUserProperties) HasRoles() bool

HasRoles returns a boolean if a field has been set.

func (PatchUserProperties) MarshalJSON

func (o PatchUserProperties) MarshalJSON() ([]byte, error)

func (*PatchUserProperties) SetPassword

func (o *PatchUserProperties) SetPassword(v string)

SetPassword sets field value

func (*PatchUserProperties) SetRoles

func (o *PatchUserProperties) SetRoles(v []UserRoles)

SetRoles sets field value

type PatchUserRequest

type PatchUserRequest struct {
	Metadata   *UserMetadata        `json:"metadata,omitempty"`
	Properties *PatchUserProperties `json:"properties,omitempty"`
}

PatchUserRequest MongoDB database user patch request.

func NewPatchUserRequest

func NewPatchUserRequest() *PatchUserRequest

NewPatchUserRequest instantiates a new PatchUserRequest 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 NewPatchUserRequestWithDefaults

func NewPatchUserRequestWithDefaults() *PatchUserRequest

NewPatchUserRequestWithDefaults instantiates a new PatchUserRequest 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 (*PatchUserRequest) GetMetadata

func (o *PatchUserRequest) GetMetadata() *UserMetadata

GetMetadata returns the Metadata field value If the value is explicit nil, the zero value for UserMetadata will be returned

func (*PatchUserRequest) GetMetadataOk

func (o *PatchUserRequest) GetMetadataOk() (*UserMetadata, bool)

GetMetadataOk returns a tuple with the Metadata field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*PatchUserRequest) GetProperties

func (o *PatchUserRequest) GetProperties() *PatchUserProperties

GetProperties returns the Properties field value If the value is explicit nil, the zero value for PatchUserProperties will be returned

func (*PatchUserRequest) GetPropertiesOk

func (o *PatchUserRequest) GetPropertiesOk() (*PatchUserProperties, bool)

GetPropertiesOk returns a tuple with the Properties field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*PatchUserRequest) HasMetadata

func (o *PatchUserRequest) HasMetadata() bool

HasMetadata returns a boolean if a field has been set.

func (*PatchUserRequest) HasProperties

func (o *PatchUserRequest) HasProperties() bool

HasProperties returns a boolean if a field has been set.

func (PatchUserRequest) MarshalJSON

func (o PatchUserRequest) MarshalJSON() ([]byte, error)

func (*PatchUserRequest) SetMetadata

func (o *PatchUserRequest) SetMetadata(v UserMetadata)

SetMetadata sets field value

func (*PatchUserRequest) SetProperties

func (o *PatchUserRequest) SetProperties(v PatchUserProperties)

SetProperties sets field value

type ResourceType

type ResourceType string

ResourceType The resource type.

const (
	RESOURCETYPE_COLLECTION ResourceType = "collection"
	RESOURCETYPE_CLUSTER    ResourceType = "cluster"
	RESOURCETYPE_USER       ResourceType = "user"
	RESOURCETYPE_SNAPSHOT   ResourceType = "snapshot"
)

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) ClustersRestorePost

func (a *RestoresApiService) ClustersRestorePost(ctx _context.Context, clusterId string) ApiClustersRestorePostRequest

* ClustersRestorePost In-place restore of a cluster * Triggers an in-place restore of the given MongoDB 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 ApiClustersRestorePostRequest

func (*RestoresApiService) ClustersRestorePostExecute

func (a *RestoresApiService) ClustersRestorePostExecute(r ApiClustersRestorePostRequest) (*shared.APIResponse, error)

* Execute executes the request

type SnapshotList

type SnapshotList struct {
	Type *ResourceType `json:"type,omitempty"`
	// The unique ID of the resource.
	Id    *string             `json:"id,omitempty"`
	Items *[]SnapshotResponse `json:"items,omitempty"`
	// The offset specified in the request (if none was specified, the default offset is 0) (not implemented yet).
	Offset *int32 `json:"offset,omitempty"`
	// The limit specified in the request (if none was specified, use the endpoint's default pagination limit) (not implemented yet, always return number of items).
	Limit *int32           `json:"limit,omitempty"`
	Links *PaginationLinks `json:"_links,omitempty"`
}

SnapshotList List of snapshots.

func NewSnapshotList

func NewSnapshotList() *SnapshotList

NewSnapshotList instantiates a new SnapshotList 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 NewSnapshotListWithDefaults

func NewSnapshotListWithDefaults() *SnapshotList

NewSnapshotListWithDefaults instantiates a new SnapshotList 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 (*SnapshotList) GetId

func (o *SnapshotList) GetId() *string

GetId returns the Id field value If the value is explicit nil, the zero value for string will be returned

func (*SnapshotList) GetIdOk

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

GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*SnapshotList) GetItems

func (o *SnapshotList) GetItems() *[]SnapshotResponse

GetItems returns the Items field value If the value is explicit nil, the zero value for []SnapshotResponse will be returned

func (*SnapshotList) GetItemsOk

func (o *SnapshotList) GetItemsOk() (*[]SnapshotResponse, bool)

GetItemsOk returns a tuple with the Items field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*SnapshotList) GetLimit

func (o *SnapshotList) GetLimit() *int32

GetLimit returns the Limit field value If the value is explicit nil, the zero value for int32 will be returned

func (*SnapshotList) GetLimitOk

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

GetLimitOk returns a tuple with the Limit field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (o *SnapshotList) GetLinks() *PaginationLinks

GetLinks returns the Links field value If the value is explicit nil, the zero value for PaginationLinks will be returned

func (*SnapshotList) GetLinksOk

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

GetLinksOk returns a tuple with the Links field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*SnapshotList) GetOffset

func (o *SnapshotList) GetOffset() *int32

GetOffset returns the Offset field value If the value is explicit nil, the zero value for int32 will be returned

func (*SnapshotList) GetOffsetOk

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

GetOffsetOk returns a tuple with the Offset field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*SnapshotList) GetType

func (o *SnapshotList) GetType() *ResourceType

GetType returns the Type field value If the value is explicit nil, the zero value for ResourceType will be returned

func (*SnapshotList) GetTypeOk

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

GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*SnapshotList) HasId

func (o *SnapshotList) HasId() bool

HasId returns a boolean if a field has been set.

func (*SnapshotList) HasItems

func (o *SnapshotList) HasItems() bool

HasItems returns a boolean if a field has been set.

func (*SnapshotList) HasLimit

func (o *SnapshotList) HasLimit() bool

HasLimit returns a boolean if a field has been set.

func (o *SnapshotList) HasLinks() bool

HasLinks returns a boolean if a field has been set.

func (*SnapshotList) HasOffset

func (o *SnapshotList) HasOffset() bool

HasOffset returns a boolean if a field has been set.

func (*SnapshotList) HasType

func (o *SnapshotList) HasType() bool

HasType returns a boolean if a field has been set.

func (SnapshotList) MarshalJSON

func (o SnapshotList) MarshalJSON() ([]byte, error)

func (*SnapshotList) SetId

func (o *SnapshotList) SetId(v string)

SetId sets field value

func (*SnapshotList) SetItems

func (o *SnapshotList) SetItems(v []SnapshotResponse)

SetItems sets field value

func (*SnapshotList) SetLimit

func (o *SnapshotList) SetLimit(v int32)

SetLimit sets field value

func (o *SnapshotList) SetLinks(v PaginationLinks)

SetLinks sets field value

func (*SnapshotList) SetOffset

func (o *SnapshotList) SetOffset(v int32)

SetOffset sets field value

func (*SnapshotList) SetType

func (o *SnapshotList) SetType(v ResourceType)

SetType sets field value

type SnapshotListAllOf

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

SnapshotListAllOf struct for SnapshotListAllOf

func NewSnapshotListAllOf

func NewSnapshotListAllOf() *SnapshotListAllOf

NewSnapshotListAllOf instantiates a new SnapshotListAllOf 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 NewSnapshotListAllOfWithDefaults

func NewSnapshotListAllOfWithDefaults() *SnapshotListAllOf

NewSnapshotListAllOfWithDefaults instantiates a new SnapshotListAllOf 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 (*SnapshotListAllOf) GetId

func (o *SnapshotListAllOf) GetId() *string

GetId returns the Id field value If the value is explicit nil, the zero value for string will be returned

func (*SnapshotListAllOf) GetIdOk

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

GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*SnapshotListAllOf) GetItems

func (o *SnapshotListAllOf) GetItems() *[]SnapshotResponse

GetItems returns the Items field value If the value is explicit nil, the zero value for []SnapshotResponse will be returned

func (*SnapshotListAllOf) GetItemsOk

func (o *SnapshotListAllOf) GetItemsOk() (*[]SnapshotResponse, bool)

GetItemsOk returns a tuple with the Items field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*SnapshotListAllOf) GetType

func (o *SnapshotListAllOf) GetType() *ResourceType

GetType returns the Type field value If the value is explicit nil, the zero value for ResourceType will be returned

func (*SnapshotListAllOf) GetTypeOk

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

GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*SnapshotListAllOf) HasId

func (o *SnapshotListAllOf) HasId() bool

HasId returns a boolean if a field has been set.

func (*SnapshotListAllOf) HasItems

func (o *SnapshotListAllOf) HasItems() bool

HasItems returns a boolean if a field has been set.

func (*SnapshotListAllOf) HasType

func (o *SnapshotListAllOf) HasType() bool

HasType returns a boolean if a field has been set.

func (SnapshotListAllOf) MarshalJSON

func (o SnapshotListAllOf) MarshalJSON() ([]byte, error)

func (*SnapshotListAllOf) SetId

func (o *SnapshotListAllOf) SetId(v string)

SetId sets field value

func (*SnapshotListAllOf) SetItems

func (o *SnapshotListAllOf) SetItems(v []SnapshotResponse)

SetItems sets field value

func (*SnapshotListAllOf) SetType

func (o *SnapshotListAllOf) SetType(v ResourceType)

SetType sets field value

type SnapshotProperties

type SnapshotProperties struct {
	// The MongoDB version this backup was created from.
	Version *string `json:"version,omitempty"`
	// The size of the snapshot in Mebibytes.
	Size *int32 `json:"size,omitempty"`
	// The date the resource was created.
	CreationTime *IonosTime `json:"creationTime,omitempty"`
}

SnapshotProperties Properties of a snapshot.

func NewSnapshotProperties

func NewSnapshotProperties() *SnapshotProperties

NewSnapshotProperties instantiates a new SnapshotProperties 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 NewSnapshotPropertiesWithDefaults

func NewSnapshotPropertiesWithDefaults() *SnapshotProperties

NewSnapshotPropertiesWithDefaults instantiates a new SnapshotProperties 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 (*SnapshotProperties) GetCreationTime

func (o *SnapshotProperties) GetCreationTime() *time.Time

GetCreationTime returns the CreationTime field value If the value is explicit nil, the zero value for time.Time will be returned

func (*SnapshotProperties) GetCreationTimeOk

func (o *SnapshotProperties) GetCreationTimeOk() (*time.Time, bool)

GetCreationTimeOk returns a tuple with the CreationTime field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*SnapshotProperties) GetSize

func (o *SnapshotProperties) GetSize() *int32

GetSize returns the Size field value If the value is explicit nil, the zero value for int32 will be returned

func (*SnapshotProperties) GetSizeOk

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

GetSizeOk returns a tuple with the Size field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*SnapshotProperties) GetVersion

func (o *SnapshotProperties) GetVersion() *string

GetVersion returns the Version field value If the value is explicit nil, the zero value for string will be returned

func (*SnapshotProperties) GetVersionOk

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

GetVersionOk returns a tuple with the Version field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*SnapshotProperties) HasCreationTime

func (o *SnapshotProperties) HasCreationTime() bool

HasCreationTime returns a boolean if a field has been set.

func (*SnapshotProperties) HasSize

func (o *SnapshotProperties) HasSize() bool

HasSize returns a boolean if a field has been set.

func (*SnapshotProperties) HasVersion

func (o *SnapshotProperties) HasVersion() bool

HasVersion returns a boolean if a field has been set.

func (SnapshotProperties) MarshalJSON

func (o SnapshotProperties) MarshalJSON() ([]byte, error)

func (*SnapshotProperties) SetCreationTime

func (o *SnapshotProperties) SetCreationTime(v time.Time)

SetCreationTime sets field value

func (*SnapshotProperties) SetSize

func (o *SnapshotProperties) SetSize(v int32)

SetSize sets field value

func (*SnapshotProperties) SetVersion

func (o *SnapshotProperties) SetVersion(v string)

SetVersion sets field value

type SnapshotResponse

type SnapshotResponse struct {
	Type *ResourceType `json:"type,omitempty"`
	// The unique ID of the resource.
	Id         *string             `json:"id,omitempty"`
	Properties *SnapshotProperties `json:"properties,omitempty"`
}

SnapshotResponse A database snapshot.

func NewSnapshotResponse

func NewSnapshotResponse() *SnapshotResponse

NewSnapshotResponse instantiates a new SnapshotResponse 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 NewSnapshotResponseWithDefaults

func NewSnapshotResponseWithDefaults() *SnapshotResponse

NewSnapshotResponseWithDefaults instantiates a new SnapshotResponse 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 (*SnapshotResponse) GetId

func (o *SnapshotResponse) GetId() *string

GetId returns the Id field value If the value is explicit nil, the zero value for string will be returned

func (*SnapshotResponse) GetIdOk

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

GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*SnapshotResponse) GetProperties

func (o *SnapshotResponse) GetProperties() *SnapshotProperties

GetProperties returns the Properties field value If the value is explicit nil, the zero value for SnapshotProperties will be returned

func (*SnapshotResponse) GetPropertiesOk

func (o *SnapshotResponse) GetPropertiesOk() (*SnapshotProperties, bool)

GetPropertiesOk returns a tuple with the Properties field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*SnapshotResponse) GetType

func (o *SnapshotResponse) GetType() *ResourceType

GetType returns the Type field value If the value is explicit nil, the zero value for ResourceType will be returned

func (*SnapshotResponse) GetTypeOk

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

GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*SnapshotResponse) HasId

func (o *SnapshotResponse) HasId() bool

HasId returns a boolean if a field has been set.

func (*SnapshotResponse) HasProperties

func (o *SnapshotResponse) HasProperties() bool

HasProperties returns a boolean if a field has been set.

func (*SnapshotResponse) HasType

func (o *SnapshotResponse) HasType() bool

HasType returns a boolean if a field has been set.

func (SnapshotResponse) MarshalJSON

func (o SnapshotResponse) MarshalJSON() ([]byte, error)

func (*SnapshotResponse) SetId

func (o *SnapshotResponse) SetId(v string)

SetId sets field value

func (*SnapshotResponse) SetProperties

func (o *SnapshotResponse) SetProperties(v SnapshotProperties)

SetProperties sets field value

func (*SnapshotResponse) SetType

func (o *SnapshotResponse) SetType(v ResourceType)

SetType sets field value

type SnapshotsApiService

type SnapshotsApiService service

SnapshotsApiService SnapshotsApi service

func (*SnapshotsApiService) ClustersSnapshotsGet

func (a *SnapshotsApiService) ClustersSnapshotsGet(ctx _context.Context, clusterId string) ApiClustersSnapshotsGetRequest

* ClustersSnapshotsGet Get the snapshots of your cluster * Retrieves MongoDB snapshots. * @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 ApiClustersSnapshotsGetRequest

func (*SnapshotsApiService) ClustersSnapshotsGetExecute

* Execute executes the request * @return SnapshotList

type State

type State string

State The current status reported by the cluster. * **AVAILABLE** Resources for this cluster exist and are healthy. * **BUSY** Resources for this cluster are being created or updated. * **DESTROYING** Delete cluster command was issued, the cluster is being deleted. * **FAILED** Failed to get the cluster status. * **UNKNOWN** The state is unknown.

const (
	STATE_AVAILABLE  State = "AVAILABLE"
	STATE_BUSY       State = "BUSY"
	STATE_DESTROYING State = "DESTROYING"
	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 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 TemplateList

type TemplateList struct {
	Type *ResourceType `json:"type,omitempty"`
	// The unique ID of the resource.
	Id    *string             `json:"id,omitempty"`
	Items *[]TemplateResponse `json:"items,omitempty"`
	// The offset specified in the request (if none was specified, the default offset is 0) (not implemented yet).
	Offset *int32 `json:"offset,omitempty"`
	// The limit specified in the request (if none was specified, use the endpoint's default pagination limit) (not implemented yet, always return number of items).
	Limit *int32           `json:"limit,omitempty"`
	Links *PaginationLinks `json:"_links,omitempty"`
}

TemplateList The list of MongoDB templates.

func NewTemplateList

func NewTemplateList() *TemplateList

NewTemplateList instantiates a new TemplateList 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 NewTemplateListWithDefaults

func NewTemplateListWithDefaults() *TemplateList

NewTemplateListWithDefaults instantiates a new TemplateList 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 (*TemplateList) GetId

func (o *TemplateList) GetId() *string

GetId returns the Id field value If the value is explicit nil, the zero value for string will be returned

func (*TemplateList) GetIdOk

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

GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*TemplateList) GetItems

func (o *TemplateList) GetItems() *[]TemplateResponse

GetItems returns the Items field value If the value is explicit nil, the zero value for []TemplateResponse will be returned

func (*TemplateList) GetItemsOk

func (o *TemplateList) GetItemsOk() (*[]TemplateResponse, bool)

GetItemsOk returns a tuple with the Items field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*TemplateList) GetLimit

func (o *TemplateList) GetLimit() *int32

GetLimit returns the Limit field value If the value is explicit nil, the zero value for int32 will be returned

func (*TemplateList) GetLimitOk

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

GetLimitOk returns a tuple with the Limit field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (o *TemplateList) GetLinks() *PaginationLinks

GetLinks returns the Links field value If the value is explicit nil, the zero value for PaginationLinks will be returned

func (*TemplateList) GetLinksOk

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

GetLinksOk returns a tuple with the Links field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*TemplateList) GetOffset

func (o *TemplateList) GetOffset() *int32

GetOffset returns the Offset field value If the value is explicit nil, the zero value for int32 will be returned

func (*TemplateList) GetOffsetOk

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

GetOffsetOk returns a tuple with the Offset field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*TemplateList) GetType

func (o *TemplateList) GetType() *ResourceType

GetType returns the Type field value If the value is explicit nil, the zero value for ResourceType will be returned

func (*TemplateList) GetTypeOk

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

GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*TemplateList) HasId

func (o *TemplateList) HasId() bool

HasId returns a boolean if a field has been set.

func (*TemplateList) HasItems

func (o *TemplateList) HasItems() bool

HasItems returns a boolean if a field has been set.

func (*TemplateList) HasLimit

func (o *TemplateList) HasLimit() bool

HasLimit returns a boolean if a field has been set.

func (o *TemplateList) HasLinks() bool

HasLinks returns a boolean if a field has been set.

func (*TemplateList) HasOffset

func (o *TemplateList) HasOffset() bool

HasOffset returns a boolean if a field has been set.

func (*TemplateList) HasType

func (o *TemplateList) HasType() bool

HasType returns a boolean if a field has been set.

func (TemplateList) MarshalJSON

func (o TemplateList) MarshalJSON() ([]byte, error)

func (*TemplateList) SetId

func (o *TemplateList) SetId(v string)

SetId sets field value

func (*TemplateList) SetItems

func (o *TemplateList) SetItems(v []TemplateResponse)

SetItems sets field value

func (*TemplateList) SetLimit

func (o *TemplateList) SetLimit(v int32)

SetLimit sets field value

func (o *TemplateList) SetLinks(v PaginationLinks)

SetLinks sets field value

func (*TemplateList) SetOffset

func (o *TemplateList) SetOffset(v int32)

SetOffset sets field value

func (*TemplateList) SetType

func (o *TemplateList) SetType(v ResourceType)

SetType sets field value

type TemplateListAllOf

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

TemplateListAllOf struct for TemplateListAllOf

func NewTemplateListAllOf

func NewTemplateListAllOf() *TemplateListAllOf

NewTemplateListAllOf instantiates a new TemplateListAllOf 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 NewTemplateListAllOfWithDefaults

func NewTemplateListAllOfWithDefaults() *TemplateListAllOf

NewTemplateListAllOfWithDefaults instantiates a new TemplateListAllOf 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 (*TemplateListAllOf) GetId

func (o *TemplateListAllOf) GetId() *string

GetId returns the Id field value If the value is explicit nil, the zero value for string will be returned

func (*TemplateListAllOf) GetIdOk

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

GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*TemplateListAllOf) GetItems

func (o *TemplateListAllOf) GetItems() *[]TemplateResponse

GetItems returns the Items field value If the value is explicit nil, the zero value for []TemplateResponse will be returned

func (*TemplateListAllOf) GetItemsOk

func (o *TemplateListAllOf) GetItemsOk() (*[]TemplateResponse, bool)

GetItemsOk returns a tuple with the Items field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*TemplateListAllOf) GetType

func (o *TemplateListAllOf) GetType() *ResourceType

GetType returns the Type field value If the value is explicit nil, the zero value for ResourceType will be returned

func (*TemplateListAllOf) GetTypeOk

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

GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*TemplateListAllOf) HasId

func (o *TemplateListAllOf) HasId() bool

HasId returns a boolean if a field has been set.

func (*TemplateListAllOf) HasItems

func (o *TemplateListAllOf) HasItems() bool

HasItems returns a boolean if a field has been set.

func (*TemplateListAllOf) HasType

func (o *TemplateListAllOf) HasType() bool

HasType returns a boolean if a field has been set.

func (TemplateListAllOf) MarshalJSON

func (o TemplateListAllOf) MarshalJSON() ([]byte, error)

func (*TemplateListAllOf) SetId

func (o *TemplateListAllOf) SetId(v string)

SetId sets field value

func (*TemplateListAllOf) SetItems

func (o *TemplateListAllOf) SetItems(v []TemplateResponse)

SetItems sets field value

func (*TemplateListAllOf) SetType

func (o *TemplateListAllOf) SetType(v ResourceType)

SetType sets field value

type TemplateResponse

type TemplateResponse struct {
	// The unique template ID.
	Id *string `json:"id,omitempty"`
	// The name of the template.
	Name *string `json:"name,omitempty"`
	// The edition of the template (e.g. enterprise)
	Edition *string `json:"edition,omitempty"`
	// The number of CPU cores.
	Cores *int32 `json:"cores,omitempty"`
	// The amount of memory in GB.
	Ram *int32 `json:"ram,omitempty"`
	// The amount of storage size in GB.
	StorageSize *int32 `json:"storageSize,omitempty"`
}

TemplateResponse A MongoDB template item.

func NewTemplateResponse

func NewTemplateResponse() *TemplateResponse

NewTemplateResponse instantiates a new TemplateResponse 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 NewTemplateResponseWithDefaults

func NewTemplateResponseWithDefaults() *TemplateResponse

NewTemplateResponseWithDefaults instantiates a new TemplateResponse 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 (*TemplateResponse) GetCores

func (o *TemplateResponse) GetCores() *int32

GetCores returns the Cores field value If the value is explicit nil, the zero value for int32 will be returned

func (*TemplateResponse) GetCoresOk

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

GetCoresOk returns a tuple with the Cores field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*TemplateResponse) GetEdition

func (o *TemplateResponse) GetEdition() *string

GetEdition returns the Edition field value If the value is explicit nil, the zero value for string will be returned

func (*TemplateResponse) GetEditionOk

func (o *TemplateResponse) GetEditionOk() (*string, bool)

GetEditionOk returns a tuple with the Edition field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*TemplateResponse) GetId

func (o *TemplateResponse) GetId() *string

GetId returns the Id field value If the value is explicit nil, the zero value for string will be returned

func (*TemplateResponse) GetIdOk

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

GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*TemplateResponse) GetName

func (o *TemplateResponse) GetName() *string

GetName returns the Name field value If the value is explicit nil, the zero value for string will be returned

func (*TemplateResponse) GetNameOk

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

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*TemplateResponse) GetRam

func (o *TemplateResponse) GetRam() *int32

GetRam returns the Ram field value If the value is explicit nil, the zero value for int32 will be returned

func (*TemplateResponse) GetRamOk

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

GetRamOk returns a tuple with the Ram field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*TemplateResponse) GetStorageSize

func (o *TemplateResponse) GetStorageSize() *int32

GetStorageSize returns the StorageSize field value If the value is explicit nil, the zero value for int32 will be returned

func (*TemplateResponse) GetStorageSizeOk

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

GetStorageSizeOk returns a tuple with the StorageSize field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*TemplateResponse) HasCores

func (o *TemplateResponse) HasCores() bool

HasCores returns a boolean if a field has been set.

func (*TemplateResponse) HasEdition

func (o *TemplateResponse) HasEdition() bool

HasEdition returns a boolean if a field has been set.

func (*TemplateResponse) HasId

func (o *TemplateResponse) HasId() bool

HasId returns a boolean if a field has been set.

func (*TemplateResponse) HasName

func (o *TemplateResponse) HasName() bool

HasName returns a boolean if a field has been set.

func (*TemplateResponse) HasRam

func (o *TemplateResponse) HasRam() bool

HasRam returns a boolean if a field has been set.

func (*TemplateResponse) HasStorageSize

func (o *TemplateResponse) HasStorageSize() bool

HasStorageSize returns a boolean if a field has been set.

func (TemplateResponse) MarshalJSON

func (o TemplateResponse) MarshalJSON() ([]byte, error)

func (*TemplateResponse) SetCores

func (o *TemplateResponse) SetCores(v int32)

SetCores sets field value

func (*TemplateResponse) SetEdition

func (o *TemplateResponse) SetEdition(v string)

SetEdition sets field value

func (*TemplateResponse) SetId

func (o *TemplateResponse) SetId(v string)

SetId sets field value

func (*TemplateResponse) SetName

func (o *TemplateResponse) SetName(v string)

SetName sets field value

func (*TemplateResponse) SetRam

func (o *TemplateResponse) SetRam(v int32)

SetRam sets field value

func (*TemplateResponse) SetStorageSize

func (o *TemplateResponse) SetStorageSize(v int32)

SetStorageSize sets field value

type TemplatesApiService

type TemplatesApiService service

TemplatesApiService TemplatesApi service

func (*TemplatesApiService) TemplatesGet

* TemplatesGet Get Templates * Retrieves a list of valid templates. These templates can be used to create MongoDB clusters; they contain properties, such as number of cores, RAM, and the storage size.

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

func (*TemplatesApiService) TemplatesGetExecute

* Execute executes the request * @return TemplateList

type User

type User struct {
	Type       *ResourceType   `json:"type,omitempty"`
	Metadata   *UserMetadata   `json:"metadata,omitempty"`
	Properties *UserProperties `json:"properties,omitempty"`
}

User MongoDB database user.

func NewUser

func NewUser() *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) GetMetadata

func (o *User) GetMetadata() *UserMetadata

GetMetadata returns the Metadata field value If the value is explicit nil, the zero value for UserMetadata will be returned

func (*User) GetMetadataOk

func (o *User) GetMetadataOk() (*UserMetadata, bool)

GetMetadataOk returns a tuple with the Metadata field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*User) GetProperties

func (o *User) GetProperties() *UserProperties

GetProperties returns the Properties field value If the value is explicit nil, the zero value for UserProperties will be returned

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. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*User) GetType

func (o *User) GetType() *ResourceType

GetType returns the Type field value If the value is explicit nil, the zero value for ResourceType will be returned

func (*User) GetTypeOk

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

GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*User) HasMetadata

func (o *User) HasMetadata() bool

HasMetadata returns a boolean if a field has been set.

func (*User) HasProperties

func (o *User) HasProperties() bool

HasProperties returns a boolean if a field has been set.

func (*User) HasType

func (o *User) HasType() bool

HasType returns a boolean if a field has been set.

func (User) MarshalJSON

func (o User) MarshalJSON() ([]byte, error)

func (*User) SetMetadata

func (o *User) SetMetadata(v UserMetadata)

SetMetadata sets field value

func (*User) SetProperties

func (o *User) SetProperties(v UserProperties)

SetProperties sets field value

func (*User) SetType

func (o *User) SetType(v ResourceType)

SetType sets field value

type UserMetadata

type UserMetadata struct {
	// The date the resource was created.
	CreatedDate *IonosTime `json:"createdDate,omitempty"`
	// The user who created the resource.
	CreatedBy *string `json:"createdBy,omitempty"`
	// The ID of the user who created the resource.
	CreatedByUserId *string `json:"createdByUserId,omitempty"`
	// The user state.
	State *string `json:"state,omitempty"`
}

UserMetadata The metadata of the resource.

func NewUserMetadata

func NewUserMetadata() *UserMetadata

NewUserMetadata instantiates a new UserMetadata 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 NewUserMetadataWithDefaults

func NewUserMetadataWithDefaults() *UserMetadata

NewUserMetadataWithDefaults instantiates a new UserMetadata 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 (*UserMetadata) GetCreatedBy

func (o *UserMetadata) GetCreatedBy() *string

GetCreatedBy returns the CreatedBy field value If the value is explicit nil, the zero value for string will be returned

func (*UserMetadata) GetCreatedByOk

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

GetCreatedByOk returns a tuple with the CreatedBy field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*UserMetadata) GetCreatedByUserId

func (o *UserMetadata) GetCreatedByUserId() *string

GetCreatedByUserId returns the CreatedByUserId field value If the value is explicit nil, the zero value for string will be returned

func (*UserMetadata) GetCreatedByUserIdOk

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

GetCreatedByUserIdOk returns a tuple with the CreatedByUserId field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*UserMetadata) GetCreatedDate

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

GetCreatedDate returns the CreatedDate field value If the value is explicit nil, the zero value for time.Time will be returned

func (*UserMetadata) GetCreatedDateOk

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

GetCreatedDateOk returns a tuple with the CreatedDate field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*UserMetadata) GetState

func (o *UserMetadata) GetState() *string

GetState returns the State field value If the value is explicit nil, the zero value for string will be returned

func (*UserMetadata) GetStateOk

func (o *UserMetadata) GetStateOk() (*string, bool)

GetStateOk returns a tuple with the State field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*UserMetadata) HasCreatedBy

func (o *UserMetadata) HasCreatedBy() bool

HasCreatedBy returns a boolean if a field has been set.

func (*UserMetadata) HasCreatedByUserId

func (o *UserMetadata) HasCreatedByUserId() bool

HasCreatedByUserId returns a boolean if a field has been set.

func (*UserMetadata) HasCreatedDate

func (o *UserMetadata) HasCreatedDate() bool

HasCreatedDate returns a boolean if a field has been set.

func (*UserMetadata) HasState

func (o *UserMetadata) HasState() bool

HasState returns a boolean if a field has been set.

func (UserMetadata) MarshalJSON

func (o UserMetadata) MarshalJSON() ([]byte, error)

func (*UserMetadata) SetCreatedBy

func (o *UserMetadata) SetCreatedBy(v string)

SetCreatedBy sets field value

func (*UserMetadata) SetCreatedByUserId

func (o *UserMetadata) SetCreatedByUserId(v string)

SetCreatedByUserId sets field value

func (*UserMetadata) SetCreatedDate

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

SetCreatedDate sets field value

func (*UserMetadata) SetState

func (o *UserMetadata) SetState(v string)

SetState sets field value

type UserProperties

type UserProperties struct {
	Username *string      `json:"username"`
	Password *string      `json:"password"`
	Roles    *[]UserRoles `json:"roles,omitempty"`
}

UserProperties Mongodb user properties.

func NewUserProperties

func NewUserProperties(username string, password 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 the value is explicit nil, the zero value for string will be returned

func (*UserProperties) GetPasswordOk

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

GetPasswordOk returns a tuple with the Password field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*UserProperties) GetRoles

func (o *UserProperties) GetRoles() *[]UserRoles

GetRoles returns the Roles field value If the value is explicit nil, the zero value for []UserRoles will be returned

func (*UserProperties) GetRolesOk

func (o *UserProperties) GetRolesOk() (*[]UserRoles, bool)

GetRolesOk returns a tuple with the Roles field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*UserProperties) GetUsername

func (o *UserProperties) GetUsername() *string

GetUsername returns the Username field value If the value is explicit nil, the zero value for string will be returned

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. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*UserProperties) HasPassword

func (o *UserProperties) HasPassword() bool

HasPassword returns a boolean if a field has been set.

func (*UserProperties) HasRoles

func (o *UserProperties) HasRoles() bool

HasRoles returns a boolean if a field has been set.

func (*UserProperties) HasUsername

func (o *UserProperties) HasUsername() bool

HasUsername returns a boolean if a field has been set.

func (UserProperties) MarshalJSON

func (o UserProperties) MarshalJSON() ([]byte, error)

func (*UserProperties) SetPassword

func (o *UserProperties) SetPassword(v string)

SetPassword sets field value

func (*UserProperties) SetRoles

func (o *UserProperties) SetRoles(v []UserRoles)

SetRoles sets field value

func (*UserProperties) SetUsername

func (o *UserProperties) SetUsername(v string)

SetUsername sets field value

type UserRoles

type UserRoles struct {
	Role     *string `json:"role,omitempty"`
	Database *string `json:"database,omitempty"`
}

UserRoles a list of mongodb user role.

func NewUserRoles

func NewUserRoles() *UserRoles

NewUserRoles instantiates a new UserRoles 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 NewUserRolesWithDefaults

func NewUserRolesWithDefaults() *UserRoles

NewUserRolesWithDefaults instantiates a new UserRoles 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 (*UserRoles) GetDatabase

func (o *UserRoles) GetDatabase() *string

GetDatabase returns the Database field value If the value is explicit nil, the zero value for string will be returned

func (*UserRoles) GetDatabaseOk

func (o *UserRoles) GetDatabaseOk() (*string, bool)

GetDatabaseOk returns a tuple with the Database field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*UserRoles) GetRole

func (o *UserRoles) GetRole() *string

GetRole returns the Role field value If the value is explicit nil, the zero value for string will be returned

func (*UserRoles) GetRoleOk

func (o *UserRoles) GetRoleOk() (*string, bool)

GetRoleOk returns a tuple with the Role field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*UserRoles) HasDatabase

func (o *UserRoles) HasDatabase() bool

HasDatabase returns a boolean if a field has been set.

func (*UserRoles) HasRole

func (o *UserRoles) HasRole() bool

HasRole returns a boolean if a field has been set.

func (UserRoles) MarshalJSON

func (o UserRoles) MarshalJSON() ([]byte, error)

func (*UserRoles) SetDatabase

func (o *UserRoles) SetDatabase(v string)

SetDatabase sets field value

func (*UserRoles) SetRole

func (o *UserRoles) SetRole(v string)

SetRole sets field value

type UsersApiService

type UsersApiService service

UsersApiService UsersApi service

func (*UsersApiService) ClustersUsersDelete

func (a *UsersApiService) ClustersUsersDelete(ctx _context.Context, clusterId string, username string) ApiClustersUsersDeleteRequest

* ClustersUsersDelete Delete a MongoDB User by ID * Deletes a MongoDB user specified by its ID. * @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 ApiClustersUsersDeleteRequest

func (*UsersApiService) ClustersUsersDeleteExecute

func (a *UsersApiService) ClustersUsersDeleteExecute(r ApiClustersUsersDeleteRequest) (User, *shared.APIResponse, error)

* Execute executes the request * @return User

func (*UsersApiService) ClustersUsersFindById

func (a *UsersApiService) ClustersUsersFindById(ctx _context.Context, clusterId string, username string) ApiClustersUsersFindByIdRequest

* ClustersUsersFindById Get a MongoDB User by ID * Retrieves the MongoDB user identified by the username. * @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 ApiClustersUsersFindByIdRequest

func (*UsersApiService) ClustersUsersFindByIdExecute

func (a *UsersApiService) ClustersUsersFindByIdExecute(r ApiClustersUsersFindByIdRequest) (User, *shared.APIResponse, error)

* Execute executes the request * @return User

func (*UsersApiService) ClustersUsersGet

func (a *UsersApiService) ClustersUsersGet(ctx _context.Context, clusterId string) ApiClustersUsersGetRequest

* ClustersUsersGet Get all Cluster Users * Retrieves a list of MongoDB 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 ApiClustersUsersGetRequest

func (*UsersApiService) ClustersUsersGetExecute

func (a *UsersApiService) ClustersUsersGetExecute(r ApiClustersUsersGetRequest) (UsersList, *shared.APIResponse, error)

* Execute executes the request * @return UsersList

func (*UsersApiService) ClustersUsersPatch

func (a *UsersApiService) ClustersUsersPatch(ctx _context.Context, clusterId string, username string) ApiClustersUsersPatchRequest

* ClustersUsersPatch Patch a MongoDB User by ID * Patches a MongoDB user specified by its ID. * @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 ApiClustersUsersPatchRequest

func (*UsersApiService) ClustersUsersPatchExecute

func (a *UsersApiService) ClustersUsersPatchExecute(r ApiClustersUsersPatchRequest) (User, *shared.APIResponse, error)

* Execute executes the request * @return User

func (*UsersApiService) ClustersUsersPost

func (a *UsersApiService) ClustersUsersPost(ctx _context.Context, clusterId string) ApiClustersUsersPostRequest

* ClustersUsersPost Create MongoDB User * Creates a MongoDB 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 ApiClustersUsersPostRequest

func (*UsersApiService) ClustersUsersPostExecute

func (a *UsersApiService) ClustersUsersPostExecute(r ApiClustersUsersPostRequest) (User, *shared.APIResponse, error)

* Execute executes the request * @return User

type UsersList

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

UsersList List of cluster users.

func NewUsersList

func NewUsersList() *UsersList

NewUsersList instantiates a new UsersList 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 NewUsersListWithDefaults

func NewUsersListWithDefaults() *UsersList

NewUsersListWithDefaults instantiates a new UsersList 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 (*UsersList) GetId

func (o *UsersList) GetId() *string

GetId returns the Id field value If the value is explicit nil, the zero value for string will be returned

func (*UsersList) GetIdOk

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

GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*UsersList) GetItems

func (o *UsersList) GetItems() *[]User

GetItems returns the Items field value If the value is explicit nil, the zero value for []User will be returned

func (*UsersList) GetItemsOk

func (o *UsersList) GetItemsOk() (*[]User, bool)

GetItemsOk returns a tuple with the Items field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*UsersList) GetType

func (o *UsersList) GetType() *ResourceType

GetType returns the Type field value If the value is explicit nil, the zero value for ResourceType will be returned

func (*UsersList) GetTypeOk

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

GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*UsersList) HasId

func (o *UsersList) HasId() bool

HasId returns a boolean if a field has been set.

func (*UsersList) HasItems

func (o *UsersList) HasItems() bool

HasItems returns a boolean if a field has been set.

func (*UsersList) HasType

func (o *UsersList) HasType() bool

HasType returns a boolean if a field has been set.

func (UsersList) MarshalJSON

func (o UsersList) MarshalJSON() ([]byte, error)

func (*UsersList) SetId

func (o *UsersList) SetId(v string)

SetId sets field value

func (*UsersList) SetItems

func (o *UsersList) SetItems(v []User)

SetItems sets field value

func (*UsersList) SetType

func (o *UsersList) SetType(v ResourceType)

SetType sets field value

Jump to

Keyboard shortcuts

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