Name | Type | Description | Notes |
---|---|---|---|
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 SHOULD NOT be set 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 []ServiceAnnotationRequest | [optional] | |
LabelsGroups | Pointer to []ServiceLabelRequest | [optional] |
func NewDatabaseRequest(name string, type_ DatabaseTypeEnum, version string, mode DatabaseModeEnum, ) *DatabaseRequest
NewDatabaseRequest instantiates a new DatabaseRequest 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 NewDatabaseRequestWithDefaults() *DatabaseRequest
NewDatabaseRequestWithDefaults instantiates a new DatabaseRequest 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 *DatabaseRequest) GetName() string
GetName returns the Name field if non-nil, zero value otherwise.
func (o *DatabaseRequest) 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 *DatabaseRequest) SetName(v string)
SetName sets Name field to given value.
func (o *DatabaseRequest) GetDescription() string
GetDescription returns the Description field if non-nil, zero value otherwise.
func (o *DatabaseRequest) 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 *DatabaseRequest) SetDescription(v string)
SetDescription sets Description field to given value.
func (o *DatabaseRequest) HasDescription() bool
HasDescription returns a boolean if a field has been set.
func (o *DatabaseRequest) GetType() DatabaseTypeEnum
GetType returns the Type field if non-nil, zero value otherwise.
func (o *DatabaseRequest) 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 *DatabaseRequest) SetType(v DatabaseTypeEnum)
SetType sets Type field to given value.
func (o *DatabaseRequest) GetVersion() string
GetVersion returns the Version field if non-nil, zero value otherwise.
func (o *DatabaseRequest) 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 *DatabaseRequest) SetVersion(v string)
SetVersion sets Version field to given value.
func (o *DatabaseRequest) GetMode() DatabaseModeEnum
GetMode returns the Mode field if non-nil, zero value otherwise.
func (o *DatabaseRequest) 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 *DatabaseRequest) SetMode(v DatabaseModeEnum)
SetMode sets Mode field to given value.
func (o *DatabaseRequest) GetAccessibility() DatabaseAccessibilityEnum
GetAccessibility returns the Accessibility field if non-nil, zero value otherwise.
func (o *DatabaseRequest) 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 *DatabaseRequest) SetAccessibility(v DatabaseAccessibilityEnum)
SetAccessibility sets Accessibility field to given value.
func (o *DatabaseRequest) HasAccessibility() bool
HasAccessibility returns a boolean if a field has been set.
func (o *DatabaseRequest) GetCpu() int32
GetCpu returns the Cpu field if non-nil, zero value otherwise.
func (o *DatabaseRequest) 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 *DatabaseRequest) SetCpu(v int32)
SetCpu sets Cpu field to given value.
func (o *DatabaseRequest) HasCpu() bool
HasCpu returns a boolean if a field has been set.
func (o *DatabaseRequest) GetInstanceType() string
GetInstanceType returns the InstanceType field if non-nil, zero value otherwise.
func (o *DatabaseRequest) 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 *DatabaseRequest) SetInstanceType(v string)
SetInstanceType sets InstanceType field to given value.
func (o *DatabaseRequest) HasInstanceType() bool
HasInstanceType returns a boolean if a field has been set.
func (o *DatabaseRequest) GetMemory() int32
GetMemory returns the Memory field if non-nil, zero value otherwise.
func (o *DatabaseRequest) 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 *DatabaseRequest) SetMemory(v int32)
SetMemory sets Memory field to given value.
func (o *DatabaseRequest) HasMemory() bool
HasMemory returns a boolean if a field has been set.
func (o *DatabaseRequest) GetStorage() int32
GetStorage returns the Storage field if non-nil, zero value otherwise.
func (o *DatabaseRequest) 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 *DatabaseRequest) SetStorage(v int32)
SetStorage sets Storage field to given value.
func (o *DatabaseRequest) HasStorage() bool
HasStorage returns a boolean if a field has been set.
func (o *DatabaseRequest) GetAnnotationsGroups() []ServiceAnnotationRequest
GetAnnotationsGroups returns the AnnotationsGroups field if non-nil, zero value otherwise.
func (o *DatabaseRequest) GetAnnotationsGroupsOk() (*[]ServiceAnnotationRequest, 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 *DatabaseRequest) SetAnnotationsGroups(v []ServiceAnnotationRequest)
SetAnnotationsGroups sets AnnotationsGroups field to given value.
func (o *DatabaseRequest) HasAnnotationsGroups() bool
HasAnnotationsGroups returns a boolean if a field has been set.
func (o *DatabaseRequest) GetLabelsGroups() []ServiceLabelRequest
GetLabelsGroups returns the LabelsGroups field if non-nil, zero value otherwise.
func (o *DatabaseRequest) GetLabelsGroupsOk() (*[]ServiceLabelRequest, 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 *DatabaseRequest) SetLabelsGroups(v []ServiceLabelRequest)
SetLabelsGroups sets LabelsGroups field to given value.
func (o *DatabaseRequest) HasLabelsGroups() bool
HasLabelsGroups returns a boolean if a field has been set.