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] |
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
func NewDatabaseWithDefaults() *Database
NewDatabaseWithDefaults instantiates a new Database object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (o *Database) GetId() string
GetId returns the Id field if non-nil, zero value otherwise.
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.
func (o *Database) SetId(v string)
SetId sets Id field to given value.
func (o *Database) GetCreatedAt() time.Time
GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise.
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.
func (o *Database) SetCreatedAt(v time.Time)
SetCreatedAt sets CreatedAt field to given value.
func (o *Database) GetUpdatedAt() time.Time
GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise.
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.
func (o *Database) SetUpdatedAt(v time.Time)
SetUpdatedAt sets UpdatedAt field to given value.
func (o *Database) HasUpdatedAt() bool
HasUpdatedAt returns a boolean if a field has been set.
func (o *Database) GetName() string
GetName returns the Name field if non-nil, zero value otherwise.
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.
func (o *Database) SetName(v string)
SetName sets Name field to given value.
func (o *Database) GetDescription() string
GetDescription returns the Description field if non-nil, zero value otherwise.
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.
func (o *Database) SetDescription(v string)
SetDescription sets Description field to given value.
func (o *Database) HasDescription() bool
HasDescription returns a boolean if a field has been set.
func (o *Database) GetType() DatabaseTypeEnum
GetType returns the Type field if non-nil, zero value otherwise.
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.
func (o *Database) SetType(v DatabaseTypeEnum)
SetType sets Type field to given value.
func (o *Database) GetVersion() string
GetVersion returns the Version field if non-nil, zero value otherwise.
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.
func (o *Database) SetVersion(v string)
SetVersion sets Version field to given value.
func (o *Database) GetMode() DatabaseModeEnum
GetMode returns the Mode field if non-nil, zero value otherwise.
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.
func (o *Database) SetMode(v DatabaseModeEnum)
SetMode sets Mode field to given value.
func (o *Database) GetAccessibility() DatabaseAccessibilityEnum
GetAccessibility returns the Accessibility field if non-nil, zero value otherwise.
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.
func (o *Database) SetAccessibility(v DatabaseAccessibilityEnum)
SetAccessibility sets Accessibility field to given value.
func (o *Database) HasAccessibility() bool
HasAccessibility returns a boolean if a field has been set.
func (o *Database) GetCpu() int32
GetCpu returns the Cpu field if non-nil, zero value otherwise.
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.
func (o *Database) SetCpu(v int32)
SetCpu sets Cpu field to given value.
func (o *Database) HasCpu() bool
HasCpu returns a boolean if a field has been set.
func (o *Database) GetInstanceType() string
GetInstanceType returns the InstanceType field if non-nil, zero value otherwise.
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.
func (o *Database) SetInstanceType(v string)
SetInstanceType sets InstanceType field to given value.
func (o *Database) HasInstanceType() bool
HasInstanceType returns a boolean if a field has been set.
func (o *Database) GetMemory() int32
GetMemory returns the Memory field if non-nil, zero value otherwise.
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.
func (o *Database) SetMemory(v int32)
SetMemory sets Memory field to given value.
func (o *Database) HasMemory() bool
HasMemory returns a boolean if a field has been set.
func (o *Database) GetStorage() int32
GetStorage returns the Storage field if non-nil, zero value otherwise.
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.
func (o *Database) SetStorage(v int32)
SetStorage sets Storage field to given value.
func (o *Database) HasStorage() bool
HasStorage returns a boolean if a field has been set.
func (o *Database) GetAnnotationsGroups() []OrganizationAnnotationsGroupResponse
GetAnnotationsGroups returns the AnnotationsGroups field if non-nil, zero value otherwise.
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.
func (o *Database) SetAnnotationsGroups(v []OrganizationAnnotationsGroupResponse)
SetAnnotationsGroups sets AnnotationsGroups field to given value.
func (o *Database) HasAnnotationsGroups() bool
HasAnnotationsGroups returns a boolean if a field has been set.
func (o *Database) GetLabelsGroups() []OrganizationLabelsGroupResponse
GetLabelsGroups returns the LabelsGroups field if non-nil, zero value otherwise.
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.
func (o *Database) SetLabelsGroups(v []OrganizationLabelsGroupResponse)
SetLabelsGroups sets LabelsGroups field to given value.
func (o *Database) HasLabelsGroups() bool
HasLabelsGroups returns a boolean if a field has been set.
func (o *Database) GetIconUri() string
GetIconUri returns the IconUri field if non-nil, zero value otherwise.
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.
func (o *Database) SetIconUri(v string)
SetIconUri sets IconUri field to given value.
func (o *Database) GetEnvironment() ReferenceObject
GetEnvironment returns the Environment field if non-nil, zero value otherwise.
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.
func (o *Database) SetEnvironment(v ReferenceObject)
SetEnvironment sets Environment field to given value.
func (o *Database) GetHost() string
GetHost returns the Host field if non-nil, zero value otherwise.
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.
func (o *Database) SetHost(v string)
SetHost sets Host field to given value.
func (o *Database) HasHost() bool
HasHost returns a boolean if a field has been set.
func (o *Database) GetPort() int32
GetPort returns the Port field if non-nil, zero value otherwise.
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.
func (o *Database) SetPort(v int32)
SetPort sets Port field to given value.
func (o *Database) HasPort() bool
HasPort returns a boolean if a field has been set.
func (o *Database) GetMaximumCpu() int32
GetMaximumCpu returns the MaximumCpu field if non-nil, zero value otherwise.
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.
func (o *Database) SetMaximumCpu(v int32)
SetMaximumCpu sets MaximumCpu field to given value.
func (o *Database) HasMaximumCpu() bool
HasMaximumCpu returns a boolean if a field has been set.
func (o *Database) GetMaximumMemory() int32
GetMaximumMemory returns the MaximumMemory field if non-nil, zero value otherwise.
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.
func (o *Database) SetMaximumMemory(v int32)
SetMaximumMemory sets MaximumMemory field to given value.
func (o *Database) HasMaximumMemory() bool
HasMaximumMemory returns a boolean if a field has been set.
func (o *Database) GetDiskEncrypted() bool
GetDiskEncrypted returns the DiskEncrypted field if non-nil, zero value otherwise.
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.
func (o *Database) SetDiskEncrypted(v bool)
SetDiskEncrypted sets DiskEncrypted field to given value.
func (o *Database) HasDiskEncrypted() bool
HasDiskEncrypted returns a boolean if a field has been set.