Skip to content

Latest commit

 

History

History
562 lines (301 loc) · 15.3 KB

Database.md

File metadata and controls

562 lines (301 loc) · 15.3 KB

Database

Properties

Name Type Description Notes
Id string [readonly]
CreatedAt time.Time [readonly]
UpdatedAt Pointer to time.Time [optional] [readonly]
Name string name is case insensitive
Description Pointer to string give a description to this database [optional]
Type DatabaseTypeEnum
Version string
Mode DatabaseModeEnum
Accessibility Pointer to DatabaseAccessibilityEnum [optional] [default to DATABASEACCESSIBILITYENUM_PRIVATE]
Cpu Pointer to int32 unit is millicores (m). 1000m = 1 cpu This field will be ignored for managed DB (instance type will be used instead). [optional] [default to 250]
InstanceType Pointer to string Database instance type to be used for this database. The list of values can be retrieved via the endpoint /{CloudProvider}/managedDatabase/instanceType/{region}/{dbType}. This field is null for container DB. [optional]
Memory Pointer to int32 unit is MB. 1024 MB = 1GB This field will be ignored for managed DB (instance type will be used instead). Default value is linked to the database type: - MANAGED: `100` - CONTAINER - POSTGRES: `100` - REDIS: `100` - MYSQL: `512` - MONGODB: `256` [optional]
Storage Pointer to int32 unit is GB [optional] [default to 10]
AnnotationsGroups Pointer to []OrganizationAnnotationsGroupResponse [optional]
LabelsGroups Pointer to []OrganizationLabelsGroupResponse [optional]
IconUri string Icon URI representing the database.
Environment ReferenceObject
Host Pointer to string [optional]
Port Pointer to int32 [optional]
MaximumCpu Pointer to int32 Maximum cpu that can be allocated to the database based on organization cluster configuration. unit is millicores (m). 1000m = 1 cpu [optional]
MaximumMemory Pointer to int32 Maximum memory that can be allocated to the database based on organization cluster configuration. unit is MB. 1024 MB = 1GB [optional]
DiskEncrypted Pointer to bool indicates if the database disk is encrypted or not [optional]

Methods

NewDatabase

func NewDatabase(id string, createdAt time.Time, name string, type_ DatabaseTypeEnum, version string, mode DatabaseModeEnum, iconUri string, environment ReferenceObject, ) *Database

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

NewDatabaseWithDefaults

func NewDatabaseWithDefaults() *Database

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

GetId

func (o *Database) GetId() string

GetId returns the Id field if non-nil, zero value otherwise.

GetIdOk

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

GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetId

func (o *Database) SetId(v string)

SetId sets Id field to given value.

GetCreatedAt

func (o *Database) GetCreatedAt() time.Time

GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise.

GetCreatedAtOk

func (o *Database) GetCreatedAtOk() (*time.Time, bool)

GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetCreatedAt

func (o *Database) SetCreatedAt(v time.Time)

SetCreatedAt sets CreatedAt field to given value.

GetUpdatedAt

func (o *Database) GetUpdatedAt() time.Time

GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise.

GetUpdatedAtOk

func (o *Database) GetUpdatedAtOk() (*time.Time, bool)

GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetUpdatedAt

func (o *Database) SetUpdatedAt(v time.Time)

SetUpdatedAt sets UpdatedAt field to given value.

HasUpdatedAt

func (o *Database) HasUpdatedAt() bool

HasUpdatedAt returns a boolean if a field has been set.

GetName

func (o *Database) GetName() string

GetName returns the Name field if non-nil, zero value otherwise.

GetNameOk

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

GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetName

func (o *Database) SetName(v string)

SetName sets Name field to given value.

GetDescription

func (o *Database) GetDescription() string

GetDescription returns the Description field if non-nil, zero value otherwise.

GetDescriptionOk

func (o *Database) GetDescriptionOk() (*string, bool)

GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetDescription

func (o *Database) SetDescription(v string)

SetDescription sets Description field to given value.

HasDescription

func (o *Database) HasDescription() bool

HasDescription returns a boolean if a field has been set.

GetType

func (o *Database) GetType() DatabaseTypeEnum

GetType returns the Type field if non-nil, zero value otherwise.

GetTypeOk

func (o *Database) GetTypeOk() (*DatabaseTypeEnum, bool)

GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetType

func (o *Database) SetType(v DatabaseTypeEnum)

SetType sets Type field to given value.

GetVersion

func (o *Database) GetVersion() string

GetVersion returns the Version field if non-nil, zero value otherwise.

GetVersionOk

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

GetVersionOk returns a tuple with the Version field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetVersion

func (o *Database) SetVersion(v string)

SetVersion sets Version field to given value.

GetMode

func (o *Database) GetMode() DatabaseModeEnum

GetMode returns the Mode field if non-nil, zero value otherwise.

GetModeOk

func (o *Database) GetModeOk() (*DatabaseModeEnum, bool)

GetModeOk returns a tuple with the Mode field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetMode

func (o *Database) SetMode(v DatabaseModeEnum)

SetMode sets Mode field to given value.

GetAccessibility

func (o *Database) GetAccessibility() DatabaseAccessibilityEnum

GetAccessibility returns the Accessibility field if non-nil, zero value otherwise.

GetAccessibilityOk

func (o *Database) GetAccessibilityOk() (*DatabaseAccessibilityEnum, bool)

GetAccessibilityOk returns a tuple with the Accessibility field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetAccessibility

func (o *Database) SetAccessibility(v DatabaseAccessibilityEnum)

SetAccessibility sets Accessibility field to given value.

HasAccessibility

func (o *Database) HasAccessibility() bool

HasAccessibility returns a boolean if a field has been set.

GetCpu

func (o *Database) GetCpu() int32

GetCpu returns the Cpu field if non-nil, zero value otherwise.

GetCpuOk

func (o *Database) GetCpuOk() (*int32, bool)

GetCpuOk returns a tuple with the Cpu field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetCpu

func (o *Database) SetCpu(v int32)

SetCpu sets Cpu field to given value.

HasCpu

func (o *Database) HasCpu() bool

HasCpu returns a boolean if a field has been set.

GetInstanceType

func (o *Database) GetInstanceType() string

GetInstanceType returns the InstanceType field if non-nil, zero value otherwise.

GetInstanceTypeOk

func (o *Database) GetInstanceTypeOk() (*string, bool)

GetInstanceTypeOk returns a tuple with the InstanceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetInstanceType

func (o *Database) SetInstanceType(v string)

SetInstanceType sets InstanceType field to given value.

HasInstanceType

func (o *Database) HasInstanceType() bool

HasInstanceType returns a boolean if a field has been set.

GetMemory

func (o *Database) GetMemory() int32

GetMemory returns the Memory field if non-nil, zero value otherwise.

GetMemoryOk

func (o *Database) GetMemoryOk() (*int32, bool)

GetMemoryOk returns a tuple with the Memory field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetMemory

func (o *Database) SetMemory(v int32)

SetMemory sets Memory field to given value.

HasMemory

func (o *Database) HasMemory() bool

HasMemory returns a boolean if a field has been set.

GetStorage

func (o *Database) GetStorage() int32

GetStorage returns the Storage field if non-nil, zero value otherwise.

GetStorageOk

func (o *Database) GetStorageOk() (*int32, bool)

GetStorageOk returns a tuple with the Storage field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetStorage

func (o *Database) SetStorage(v int32)

SetStorage sets Storage field to given value.

HasStorage

func (o *Database) HasStorage() bool

HasStorage returns a boolean if a field has been set.

GetAnnotationsGroups

func (o *Database) GetAnnotationsGroups() []OrganizationAnnotationsGroupResponse

GetAnnotationsGroups returns the AnnotationsGroups field if non-nil, zero value otherwise.

GetAnnotationsGroupsOk

func (o *Database) GetAnnotationsGroupsOk() (*[]OrganizationAnnotationsGroupResponse, bool)

GetAnnotationsGroupsOk returns a tuple with the AnnotationsGroups field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetAnnotationsGroups

func (o *Database) SetAnnotationsGroups(v []OrganizationAnnotationsGroupResponse)

SetAnnotationsGroups sets AnnotationsGroups field to given value.

HasAnnotationsGroups

func (o *Database) HasAnnotationsGroups() bool

HasAnnotationsGroups returns a boolean if a field has been set.

GetLabelsGroups

func (o *Database) GetLabelsGroups() []OrganizationLabelsGroupResponse

GetLabelsGroups returns the LabelsGroups field if non-nil, zero value otherwise.

GetLabelsGroupsOk

func (o *Database) GetLabelsGroupsOk() (*[]OrganizationLabelsGroupResponse, bool)

GetLabelsGroupsOk returns a tuple with the LabelsGroups field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetLabelsGroups

func (o *Database) SetLabelsGroups(v []OrganizationLabelsGroupResponse)

SetLabelsGroups sets LabelsGroups field to given value.

HasLabelsGroups

func (o *Database) HasLabelsGroups() bool

HasLabelsGroups returns a boolean if a field has been set.

GetIconUri

func (o *Database) GetIconUri() string

GetIconUri returns the IconUri field if non-nil, zero value otherwise.

GetIconUriOk

func (o *Database) GetIconUriOk() (*string, bool)

GetIconUriOk returns a tuple with the IconUri field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetIconUri

func (o *Database) SetIconUri(v string)

SetIconUri sets IconUri field to given value.

GetEnvironment

func (o *Database) GetEnvironment() ReferenceObject

GetEnvironment returns the Environment field if non-nil, zero value otherwise.

GetEnvironmentOk

func (o *Database) GetEnvironmentOk() (*ReferenceObject, bool)

GetEnvironmentOk returns a tuple with the Environment field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetEnvironment

func (o *Database) SetEnvironment(v ReferenceObject)

SetEnvironment sets Environment field to given value.

GetHost

func (o *Database) GetHost() string

GetHost returns the Host field if non-nil, zero value otherwise.

GetHostOk

func (o *Database) GetHostOk() (*string, bool)

GetHostOk returns a tuple with the Host field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetHost

func (o *Database) SetHost(v string)

SetHost sets Host field to given value.

HasHost

func (o *Database) HasHost() bool

HasHost returns a boolean if a field has been set.

GetPort

func (o *Database) GetPort() int32

GetPort returns the Port field if non-nil, zero value otherwise.

GetPortOk

func (o *Database) GetPortOk() (*int32, bool)

GetPortOk returns a tuple with the Port field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetPort

func (o *Database) SetPort(v int32)

SetPort sets Port field to given value.

HasPort

func (o *Database) HasPort() bool

HasPort returns a boolean if a field has been set.

GetMaximumCpu

func (o *Database) GetMaximumCpu() int32

GetMaximumCpu returns the MaximumCpu field if non-nil, zero value otherwise.

GetMaximumCpuOk

func (o *Database) GetMaximumCpuOk() (*int32, bool)

GetMaximumCpuOk returns a tuple with the MaximumCpu field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetMaximumCpu

func (o *Database) SetMaximumCpu(v int32)

SetMaximumCpu sets MaximumCpu field to given value.

HasMaximumCpu

func (o *Database) HasMaximumCpu() bool

HasMaximumCpu returns a boolean if a field has been set.

GetMaximumMemory

func (o *Database) GetMaximumMemory() int32

GetMaximumMemory returns the MaximumMemory field if non-nil, zero value otherwise.

GetMaximumMemoryOk

func (o *Database) GetMaximumMemoryOk() (*int32, bool)

GetMaximumMemoryOk returns a tuple with the MaximumMemory field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetMaximumMemory

func (o *Database) SetMaximumMemory(v int32)

SetMaximumMemory sets MaximumMemory field to given value.

HasMaximumMemory

func (o *Database) HasMaximumMemory() bool

HasMaximumMemory returns a boolean if a field has been set.

GetDiskEncrypted

func (o *Database) GetDiskEncrypted() bool

GetDiskEncrypted returns the DiskEncrypted field if non-nil, zero value otherwise.

GetDiskEncryptedOk

func (o *Database) GetDiskEncryptedOk() (*bool, bool)

GetDiskEncryptedOk returns a tuple with the DiskEncrypted field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetDiskEncrypted

func (o *Database) SetDiskEncrypted(v bool)

SetDiskEncrypted sets DiskEncrypted field to given value.

HasDiskEncrypted

func (o *Database) HasDiskEncrypted() bool

HasDiskEncrypted returns a boolean if a field has been set.

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