Skip to content

Latest commit

 

History

History
352 lines (191 loc) · 10.5 KB

File metadata and controls

352 lines (191 loc) · 10.5 KB

DatabaseEditRequest

Properties

Name Type Description Notes
Name Pointer to string name is case-insensitive [optional]
Description Pointer to string give a description to this database [optional]
Version Pointer to string [optional]
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]
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]
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]
AnnotationsGroups Pointer to []ServiceAnnotationRequest [optional]
LabelsGroups Pointer to []ServiceLabelRequest [optional]
IconUri Pointer to string Icon URI representing the database. [optional]
DiskType Pointer to NullableString EBS disk type for MANAGED AWS databases. Allowed values: gp2, gp3. Only applicable for MANAGED mode. [optional]

Methods

NewDatabaseEditRequest

func NewDatabaseEditRequest() *DatabaseEditRequest

NewDatabaseEditRequest instantiates a new DatabaseEditRequest 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

NewDatabaseEditRequestWithDefaults

func NewDatabaseEditRequestWithDefaults() *DatabaseEditRequest

NewDatabaseEditRequestWithDefaults instantiates a new DatabaseEditRequest 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

GetName

func (o *DatabaseEditRequest) GetName() string

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

GetNameOk

func (o *DatabaseEditRequest) 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 *DatabaseEditRequest) SetName(v string)

SetName sets Name field to given value.

HasName

func (o *DatabaseEditRequest) HasName() bool

HasName returns a boolean if a field has been set.

GetDescription

func (o *DatabaseEditRequest) GetDescription() string

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

GetDescriptionOk

func (o *DatabaseEditRequest) 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 *DatabaseEditRequest) SetDescription(v string)

SetDescription sets Description field to given value.

HasDescription

func (o *DatabaseEditRequest) HasDescription() bool

HasDescription returns a boolean if a field has been set.

GetVersion

func (o *DatabaseEditRequest) GetVersion() string

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

GetVersionOk

func (o *DatabaseEditRequest) 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 *DatabaseEditRequest) SetVersion(v string)

SetVersion sets Version field to given value.

HasVersion

func (o *DatabaseEditRequest) HasVersion() bool

HasVersion returns a boolean if a field has been set.

GetAccessibility

func (o *DatabaseEditRequest) GetAccessibility() DatabaseAccessibilityEnum

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

GetAccessibilityOk

func (o *DatabaseEditRequest) 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 *DatabaseEditRequest) SetAccessibility(v DatabaseAccessibilityEnum)

SetAccessibility sets Accessibility field to given value.

HasAccessibility

func (o *DatabaseEditRequest) HasAccessibility() bool

HasAccessibility returns a boolean if a field has been set.

GetCpu

func (o *DatabaseEditRequest) GetCpu() int32

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

GetCpuOk

func (o *DatabaseEditRequest) 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 *DatabaseEditRequest) SetCpu(v int32)

SetCpu sets Cpu field to given value.

HasCpu

func (o *DatabaseEditRequest) HasCpu() bool

HasCpu returns a boolean if a field has been set.

GetMemory

func (o *DatabaseEditRequest) GetMemory() int32

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

GetMemoryOk

func (o *DatabaseEditRequest) 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 *DatabaseEditRequest) SetMemory(v int32)

SetMemory sets Memory field to given value.

HasMemory

func (o *DatabaseEditRequest) HasMemory() bool

HasMemory returns a boolean if a field has been set.

GetStorage

func (o *DatabaseEditRequest) GetStorage() int32

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

GetStorageOk

func (o *DatabaseEditRequest) 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 *DatabaseEditRequest) SetStorage(v int32)

SetStorage sets Storage field to given value.

HasStorage

func (o *DatabaseEditRequest) HasStorage() bool

HasStorage returns a boolean if a field has been set.

GetInstanceType

func (o *DatabaseEditRequest) GetInstanceType() string

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

GetInstanceTypeOk

func (o *DatabaseEditRequest) 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 *DatabaseEditRequest) SetInstanceType(v string)

SetInstanceType sets InstanceType field to given value.

HasInstanceType

func (o *DatabaseEditRequest) HasInstanceType() bool

HasInstanceType returns a boolean if a field has been set.

GetAnnotationsGroups

func (o *DatabaseEditRequest) GetAnnotationsGroups() []ServiceAnnotationRequest

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

GetAnnotationsGroupsOk

func (o *DatabaseEditRequest) 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.

SetAnnotationsGroups

func (o *DatabaseEditRequest) SetAnnotationsGroups(v []ServiceAnnotationRequest)

SetAnnotationsGroups sets AnnotationsGroups field to given value.

HasAnnotationsGroups

func (o *DatabaseEditRequest) HasAnnotationsGroups() bool

HasAnnotationsGroups returns a boolean if a field has been set.

GetLabelsGroups

func (o *DatabaseEditRequest) GetLabelsGroups() []ServiceLabelRequest

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

GetLabelsGroupsOk

func (o *DatabaseEditRequest) 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.

SetLabelsGroups

func (o *DatabaseEditRequest) SetLabelsGroups(v []ServiceLabelRequest)

SetLabelsGroups sets LabelsGroups field to given value.

HasLabelsGroups

func (o *DatabaseEditRequest) HasLabelsGroups() bool

HasLabelsGroups returns a boolean if a field has been set.

GetIconUri

func (o *DatabaseEditRequest) GetIconUri() string

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

GetIconUriOk

func (o *DatabaseEditRequest) 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 *DatabaseEditRequest) SetIconUri(v string)

SetIconUri sets IconUri field to given value.

HasIconUri

func (o *DatabaseEditRequest) HasIconUri() bool

HasIconUri returns a boolean if a field has been set.

GetDiskType

func (o *DatabaseEditRequest) GetDiskType() string

GetDiskType returns the DiskType field if non-nil, zero value otherwise.

GetDiskTypeOk

func (o *DatabaseEditRequest) GetDiskTypeOk() (*string, bool)

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

SetDiskType

func (o *DatabaseEditRequest) SetDiskType(v string)

SetDiskType sets DiskType field to given value.

HasDiskType

func (o *DatabaseEditRequest) HasDiskType() bool

HasDiskType returns a boolean if a field has been set.

SetDiskTypeNil

func (o *DatabaseEditRequest) SetDiskTypeNil(b bool)

SetDiskTypeNil sets the value for DiskType to be an explicit nil

UnsetDiskType

func (o *DatabaseEditRequest) UnsetDiskType()

UnsetDiskType ensures that no value is present for DiskType, not even an explicit nil

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