615 lines
23 KiB
Go
615 lines
23 KiB
Go
/*
|
|
STACKIT IaaS API
|
|
|
|
This API allows you to create and modify IaaS resources.
|
|
|
|
API version: 2beta1
|
|
*/
|
|
|
|
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
|
|
|
package iaasbeta
|
|
|
|
import (
|
|
"encoding/json"
|
|
"time"
|
|
)
|
|
|
|
// checks if the V2beta1UpdateBackupPayload type satisfies the MappedNullable interface at compile time
|
|
var _ MappedNullable = &V2beta1UpdateBackupPayload{}
|
|
|
|
/*
|
|
types and functions for availabilityZone
|
|
*/
|
|
|
|
// isNotNullableString
|
|
type V2beta1UpdateBackupPayloadGetAvailabilityZoneAttributeType = *string
|
|
|
|
func getV2beta1UpdateBackupPayloadGetAvailabilityZoneAttributeTypeOk(arg V2beta1UpdateBackupPayloadGetAvailabilityZoneAttributeType) (ret V2beta1UpdateBackupPayloadGetAvailabilityZoneRetType, ok bool) {
|
|
if arg == nil {
|
|
return ret, false
|
|
}
|
|
return *arg, true
|
|
}
|
|
|
|
func setV2beta1UpdateBackupPayloadGetAvailabilityZoneAttributeType(arg *V2beta1UpdateBackupPayloadGetAvailabilityZoneAttributeType, val V2beta1UpdateBackupPayloadGetAvailabilityZoneRetType) {
|
|
*arg = &val
|
|
}
|
|
|
|
type V2beta1UpdateBackupPayloadGetAvailabilityZoneArgType = string
|
|
type V2beta1UpdateBackupPayloadGetAvailabilityZoneRetType = string
|
|
|
|
/*
|
|
types and functions for createdAt
|
|
*/
|
|
|
|
// isDateTime
|
|
type V2beta1UpdateBackupPayloadGetCreatedAtAttributeType = *time.Time
|
|
type V2beta1UpdateBackupPayloadGetCreatedAtArgType = time.Time
|
|
type V2beta1UpdateBackupPayloadGetCreatedAtRetType = time.Time
|
|
|
|
func getV2beta1UpdateBackupPayloadGetCreatedAtAttributeTypeOk(arg V2beta1UpdateBackupPayloadGetCreatedAtAttributeType) (ret V2beta1UpdateBackupPayloadGetCreatedAtRetType, ok bool) {
|
|
if arg == nil {
|
|
return ret, false
|
|
}
|
|
return *arg, true
|
|
}
|
|
|
|
func setV2beta1UpdateBackupPayloadGetCreatedAtAttributeType(arg *V2beta1UpdateBackupPayloadGetCreatedAtAttributeType, val V2beta1UpdateBackupPayloadGetCreatedAtRetType) {
|
|
*arg = &val
|
|
}
|
|
|
|
/*
|
|
types and functions for encrypted
|
|
*/
|
|
|
|
// isBoolean
|
|
type V2beta1UpdateBackupPayloadgetEncryptedAttributeType = *bool
|
|
type V2beta1UpdateBackupPayloadgetEncryptedArgType = bool
|
|
type V2beta1UpdateBackupPayloadgetEncryptedRetType = bool
|
|
|
|
func getV2beta1UpdateBackupPayloadgetEncryptedAttributeTypeOk(arg V2beta1UpdateBackupPayloadgetEncryptedAttributeType) (ret V2beta1UpdateBackupPayloadgetEncryptedRetType, ok bool) {
|
|
if arg == nil {
|
|
return ret, false
|
|
}
|
|
return *arg, true
|
|
}
|
|
|
|
func setV2beta1UpdateBackupPayloadgetEncryptedAttributeType(arg *V2beta1UpdateBackupPayloadgetEncryptedAttributeType, val V2beta1UpdateBackupPayloadgetEncryptedRetType) {
|
|
*arg = &val
|
|
}
|
|
|
|
/*
|
|
types and functions for id
|
|
*/
|
|
|
|
// isNotNullableString
|
|
type V2beta1UpdateBackupPayloadGetIdAttributeType = *string
|
|
|
|
func getV2beta1UpdateBackupPayloadGetIdAttributeTypeOk(arg V2beta1UpdateBackupPayloadGetIdAttributeType) (ret V2beta1UpdateBackupPayloadGetIdRetType, ok bool) {
|
|
if arg == nil {
|
|
return ret, false
|
|
}
|
|
return *arg, true
|
|
}
|
|
|
|
func setV2beta1UpdateBackupPayloadGetIdAttributeType(arg *V2beta1UpdateBackupPayloadGetIdAttributeType, val V2beta1UpdateBackupPayloadGetIdRetType) {
|
|
*arg = &val
|
|
}
|
|
|
|
type V2beta1UpdateBackupPayloadGetIdArgType = string
|
|
type V2beta1UpdateBackupPayloadGetIdRetType = string
|
|
|
|
/*
|
|
types and functions for labels
|
|
*/
|
|
|
|
// isFreeform
|
|
type V2beta1UpdateBackupPayloadGetLabelsAttributeType = *map[string]interface{}
|
|
type V2beta1UpdateBackupPayloadGetLabelsArgType = map[string]interface{}
|
|
type V2beta1UpdateBackupPayloadGetLabelsRetType = map[string]interface{}
|
|
|
|
func getV2beta1UpdateBackupPayloadGetLabelsAttributeTypeOk(arg V2beta1UpdateBackupPayloadGetLabelsAttributeType) (ret V2beta1UpdateBackupPayloadGetLabelsRetType, ok bool) {
|
|
if arg == nil {
|
|
return ret, false
|
|
}
|
|
return *arg, true
|
|
}
|
|
|
|
func setV2beta1UpdateBackupPayloadGetLabelsAttributeType(arg *V2beta1UpdateBackupPayloadGetLabelsAttributeType, val V2beta1UpdateBackupPayloadGetLabelsRetType) {
|
|
*arg = &val
|
|
}
|
|
|
|
/*
|
|
types and functions for name
|
|
*/
|
|
|
|
// isNotNullableString
|
|
type V2beta1UpdateBackupPayloadGetNameAttributeType = *string
|
|
|
|
func getV2beta1UpdateBackupPayloadGetNameAttributeTypeOk(arg V2beta1UpdateBackupPayloadGetNameAttributeType) (ret V2beta1UpdateBackupPayloadGetNameRetType, ok bool) {
|
|
if arg == nil {
|
|
return ret, false
|
|
}
|
|
return *arg, true
|
|
}
|
|
|
|
func setV2beta1UpdateBackupPayloadGetNameAttributeType(arg *V2beta1UpdateBackupPayloadGetNameAttributeType, val V2beta1UpdateBackupPayloadGetNameRetType) {
|
|
*arg = &val
|
|
}
|
|
|
|
type V2beta1UpdateBackupPayloadGetNameArgType = string
|
|
type V2beta1UpdateBackupPayloadGetNameRetType = string
|
|
|
|
/*
|
|
types and functions for size
|
|
*/
|
|
|
|
// isLong
|
|
type V2beta1UpdateBackupPayloadGetSizeAttributeType = *int64
|
|
type V2beta1UpdateBackupPayloadGetSizeArgType = int64
|
|
type V2beta1UpdateBackupPayloadGetSizeRetType = int64
|
|
|
|
func getV2beta1UpdateBackupPayloadGetSizeAttributeTypeOk(arg V2beta1UpdateBackupPayloadGetSizeAttributeType) (ret V2beta1UpdateBackupPayloadGetSizeRetType, ok bool) {
|
|
if arg == nil {
|
|
return ret, false
|
|
}
|
|
return *arg, true
|
|
}
|
|
|
|
func setV2beta1UpdateBackupPayloadGetSizeAttributeType(arg *V2beta1UpdateBackupPayloadGetSizeAttributeType, val V2beta1UpdateBackupPayloadGetSizeRetType) {
|
|
*arg = &val
|
|
}
|
|
|
|
/*
|
|
types and functions for snapshotId
|
|
*/
|
|
|
|
// isNotNullableString
|
|
type V2beta1UpdateBackupPayloadGetSnapshotIdAttributeType = *string
|
|
|
|
func getV2beta1UpdateBackupPayloadGetSnapshotIdAttributeTypeOk(arg V2beta1UpdateBackupPayloadGetSnapshotIdAttributeType) (ret V2beta1UpdateBackupPayloadGetSnapshotIdRetType, ok bool) {
|
|
if arg == nil {
|
|
return ret, false
|
|
}
|
|
return *arg, true
|
|
}
|
|
|
|
func setV2beta1UpdateBackupPayloadGetSnapshotIdAttributeType(arg *V2beta1UpdateBackupPayloadGetSnapshotIdAttributeType, val V2beta1UpdateBackupPayloadGetSnapshotIdRetType) {
|
|
*arg = &val
|
|
}
|
|
|
|
type V2beta1UpdateBackupPayloadGetSnapshotIdArgType = string
|
|
type V2beta1UpdateBackupPayloadGetSnapshotIdRetType = string
|
|
|
|
/*
|
|
types and functions for status
|
|
*/
|
|
|
|
// isNotNullableString
|
|
type V2beta1UpdateBackupPayloadGetStatusAttributeType = *string
|
|
|
|
func getV2beta1UpdateBackupPayloadGetStatusAttributeTypeOk(arg V2beta1UpdateBackupPayloadGetStatusAttributeType) (ret V2beta1UpdateBackupPayloadGetStatusRetType, ok bool) {
|
|
if arg == nil {
|
|
return ret, false
|
|
}
|
|
return *arg, true
|
|
}
|
|
|
|
func setV2beta1UpdateBackupPayloadGetStatusAttributeType(arg *V2beta1UpdateBackupPayloadGetStatusAttributeType, val V2beta1UpdateBackupPayloadGetStatusRetType) {
|
|
*arg = &val
|
|
}
|
|
|
|
type V2beta1UpdateBackupPayloadGetStatusArgType = string
|
|
type V2beta1UpdateBackupPayloadGetStatusRetType = string
|
|
|
|
/*
|
|
types and functions for updatedAt
|
|
*/
|
|
|
|
// isDateTime
|
|
type V2beta1UpdateBackupPayloadGetUpdatedAtAttributeType = *time.Time
|
|
type V2beta1UpdateBackupPayloadGetUpdatedAtArgType = time.Time
|
|
type V2beta1UpdateBackupPayloadGetUpdatedAtRetType = time.Time
|
|
|
|
func getV2beta1UpdateBackupPayloadGetUpdatedAtAttributeTypeOk(arg V2beta1UpdateBackupPayloadGetUpdatedAtAttributeType) (ret V2beta1UpdateBackupPayloadGetUpdatedAtRetType, ok bool) {
|
|
if arg == nil {
|
|
return ret, false
|
|
}
|
|
return *arg, true
|
|
}
|
|
|
|
func setV2beta1UpdateBackupPayloadGetUpdatedAtAttributeType(arg *V2beta1UpdateBackupPayloadGetUpdatedAtAttributeType, val V2beta1UpdateBackupPayloadGetUpdatedAtRetType) {
|
|
*arg = &val
|
|
}
|
|
|
|
/*
|
|
types and functions for volumeId
|
|
*/
|
|
|
|
// isNotNullableString
|
|
type V2beta1UpdateBackupPayloadGetVolumeIdAttributeType = *string
|
|
|
|
func getV2beta1UpdateBackupPayloadGetVolumeIdAttributeTypeOk(arg V2beta1UpdateBackupPayloadGetVolumeIdAttributeType) (ret V2beta1UpdateBackupPayloadGetVolumeIdRetType, ok bool) {
|
|
if arg == nil {
|
|
return ret, false
|
|
}
|
|
return *arg, true
|
|
}
|
|
|
|
func setV2beta1UpdateBackupPayloadGetVolumeIdAttributeType(arg *V2beta1UpdateBackupPayloadGetVolumeIdAttributeType, val V2beta1UpdateBackupPayloadGetVolumeIdRetType) {
|
|
*arg = &val
|
|
}
|
|
|
|
type V2beta1UpdateBackupPayloadGetVolumeIdArgType = string
|
|
type V2beta1UpdateBackupPayloadGetVolumeIdRetType = string
|
|
|
|
// V2beta1UpdateBackupPayload Object that represents a backup.
|
|
type V2beta1UpdateBackupPayload struct {
|
|
// Object that represents an availability zone.
|
|
AvailabilityZone V2beta1UpdateBackupPayloadGetAvailabilityZoneAttributeType `json:"availabilityZone,omitempty"`
|
|
// Date-time when resource was created.
|
|
CreatedAt V2beta1UpdateBackupPayloadGetCreatedAtAttributeType `json:"createdAt,omitempty"`
|
|
// Indicates if a volume is encrypted.
|
|
Encrypted V2beta1UpdateBackupPayloadgetEncryptedAttributeType `json:"encrypted,omitempty"`
|
|
// Universally Unique Identifier (UUID).
|
|
Id V2beta1UpdateBackupPayloadGetIdAttributeType `json:"id,omitempty"`
|
|
// Object that represents the labels of an object. Regex for keys: `^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$`. Regex for values: `^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$`. Providing a `null` value for a key will remove that key.
|
|
Labels V2beta1UpdateBackupPayloadGetLabelsAttributeType `json:"labels,omitempty"`
|
|
// The name for a General Object. Matches Names and also UUIDs.
|
|
Name V2beta1UpdateBackupPayloadGetNameAttributeType `json:"name,omitempty"`
|
|
// Size in Gigabyte.
|
|
Size V2beta1UpdateBackupPayloadGetSizeAttributeType `json:"size,omitempty"`
|
|
// Universally Unique Identifier (UUID).
|
|
SnapshotId V2beta1UpdateBackupPayloadGetSnapshotIdAttributeType `json:"snapshotId,omitempty"`
|
|
// The status of a backup object. Possible values: `AVAILABLE`, `CREATING`, `DELETED`, `DELETING`, `ERROR`, `RESTORING`.
|
|
Status V2beta1UpdateBackupPayloadGetStatusAttributeType `json:"status,omitempty"`
|
|
// Date-time when resource was last updated.
|
|
UpdatedAt V2beta1UpdateBackupPayloadGetUpdatedAtAttributeType `json:"updatedAt,omitempty"`
|
|
// Universally Unique Identifier (UUID).
|
|
VolumeId V2beta1UpdateBackupPayloadGetVolumeIdAttributeType `json:"volumeId,omitempty"`
|
|
}
|
|
|
|
// NewV2beta1UpdateBackupPayload instantiates a new V2beta1UpdateBackupPayload 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 NewV2beta1UpdateBackupPayload() *V2beta1UpdateBackupPayload {
|
|
this := V2beta1UpdateBackupPayload{}
|
|
return &this
|
|
}
|
|
|
|
// NewV2beta1UpdateBackupPayloadWithDefaults instantiates a new V2beta1UpdateBackupPayload 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 NewV2beta1UpdateBackupPayloadWithDefaults() *V2beta1UpdateBackupPayload {
|
|
this := V2beta1UpdateBackupPayload{}
|
|
return &this
|
|
}
|
|
|
|
// GetAvailabilityZone returns the AvailabilityZone field value if set, zero value otherwise.
|
|
func (o *V2beta1UpdateBackupPayload) GetAvailabilityZone() (res V2beta1UpdateBackupPayloadGetAvailabilityZoneRetType) {
|
|
res, _ = o.GetAvailabilityZoneOk()
|
|
return
|
|
}
|
|
|
|
// GetAvailabilityZoneOk returns a tuple with the AvailabilityZone field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *V2beta1UpdateBackupPayload) GetAvailabilityZoneOk() (ret V2beta1UpdateBackupPayloadGetAvailabilityZoneRetType, ok bool) {
|
|
return getV2beta1UpdateBackupPayloadGetAvailabilityZoneAttributeTypeOk(o.AvailabilityZone)
|
|
}
|
|
|
|
// HasAvailabilityZone returns a boolean if a field has been set.
|
|
func (o *V2beta1UpdateBackupPayload) HasAvailabilityZone() bool {
|
|
_, ok := o.GetAvailabilityZoneOk()
|
|
return ok
|
|
}
|
|
|
|
// SetAvailabilityZone gets a reference to the given string and assigns it to the AvailabilityZone field.
|
|
func (o *V2beta1UpdateBackupPayload) SetAvailabilityZone(v V2beta1UpdateBackupPayloadGetAvailabilityZoneRetType) {
|
|
setV2beta1UpdateBackupPayloadGetAvailabilityZoneAttributeType(&o.AvailabilityZone, v)
|
|
}
|
|
|
|
// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise.
|
|
func (o *V2beta1UpdateBackupPayload) GetCreatedAt() (res V2beta1UpdateBackupPayloadGetCreatedAtRetType) {
|
|
res, _ = o.GetCreatedAtOk()
|
|
return
|
|
}
|
|
|
|
// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *V2beta1UpdateBackupPayload) GetCreatedAtOk() (ret V2beta1UpdateBackupPayloadGetCreatedAtRetType, ok bool) {
|
|
return getV2beta1UpdateBackupPayloadGetCreatedAtAttributeTypeOk(o.CreatedAt)
|
|
}
|
|
|
|
// HasCreatedAt returns a boolean if a field has been set.
|
|
func (o *V2beta1UpdateBackupPayload) HasCreatedAt() bool {
|
|
_, ok := o.GetCreatedAtOk()
|
|
return ok
|
|
}
|
|
|
|
// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field.
|
|
func (o *V2beta1UpdateBackupPayload) SetCreatedAt(v V2beta1UpdateBackupPayloadGetCreatedAtRetType) {
|
|
setV2beta1UpdateBackupPayloadGetCreatedAtAttributeType(&o.CreatedAt, v)
|
|
}
|
|
|
|
// GetEncrypted returns the Encrypted field value if set, zero value otherwise.
|
|
func (o *V2beta1UpdateBackupPayload) GetEncrypted() (res V2beta1UpdateBackupPayloadgetEncryptedRetType) {
|
|
res, _ = o.GetEncryptedOk()
|
|
return
|
|
}
|
|
|
|
// GetEncryptedOk returns a tuple with the Encrypted field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *V2beta1UpdateBackupPayload) GetEncryptedOk() (ret V2beta1UpdateBackupPayloadgetEncryptedRetType, ok bool) {
|
|
return getV2beta1UpdateBackupPayloadgetEncryptedAttributeTypeOk(o.Encrypted)
|
|
}
|
|
|
|
// HasEncrypted returns a boolean if a field has been set.
|
|
func (o *V2beta1UpdateBackupPayload) HasEncrypted() bool {
|
|
_, ok := o.GetEncryptedOk()
|
|
return ok
|
|
}
|
|
|
|
// SetEncrypted gets a reference to the given bool and assigns it to the Encrypted field.
|
|
func (o *V2beta1UpdateBackupPayload) SetEncrypted(v V2beta1UpdateBackupPayloadgetEncryptedRetType) {
|
|
setV2beta1UpdateBackupPayloadgetEncryptedAttributeType(&o.Encrypted, v)
|
|
}
|
|
|
|
// GetId returns the Id field value if set, zero value otherwise.
|
|
func (o *V2beta1UpdateBackupPayload) GetId() (res V2beta1UpdateBackupPayloadGetIdRetType) {
|
|
res, _ = o.GetIdOk()
|
|
return
|
|
}
|
|
|
|
// GetIdOk returns a tuple with the Id field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *V2beta1UpdateBackupPayload) GetIdOk() (ret V2beta1UpdateBackupPayloadGetIdRetType, ok bool) {
|
|
return getV2beta1UpdateBackupPayloadGetIdAttributeTypeOk(o.Id)
|
|
}
|
|
|
|
// HasId returns a boolean if a field has been set.
|
|
func (o *V2beta1UpdateBackupPayload) HasId() bool {
|
|
_, ok := o.GetIdOk()
|
|
return ok
|
|
}
|
|
|
|
// SetId gets a reference to the given string and assigns it to the Id field.
|
|
func (o *V2beta1UpdateBackupPayload) SetId(v V2beta1UpdateBackupPayloadGetIdRetType) {
|
|
setV2beta1UpdateBackupPayloadGetIdAttributeType(&o.Id, v)
|
|
}
|
|
|
|
// GetLabels returns the Labels field value if set, zero value otherwise.
|
|
func (o *V2beta1UpdateBackupPayload) GetLabels() (res V2beta1UpdateBackupPayloadGetLabelsRetType) {
|
|
res, _ = o.GetLabelsOk()
|
|
return
|
|
}
|
|
|
|
// GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *V2beta1UpdateBackupPayload) GetLabelsOk() (ret V2beta1UpdateBackupPayloadGetLabelsRetType, ok bool) {
|
|
return getV2beta1UpdateBackupPayloadGetLabelsAttributeTypeOk(o.Labels)
|
|
}
|
|
|
|
// HasLabels returns a boolean if a field has been set.
|
|
func (o *V2beta1UpdateBackupPayload) HasLabels() bool {
|
|
_, ok := o.GetLabelsOk()
|
|
return ok
|
|
}
|
|
|
|
// SetLabels gets a reference to the given map[string]interface{} and assigns it to the Labels field.
|
|
func (o *V2beta1UpdateBackupPayload) SetLabels(v V2beta1UpdateBackupPayloadGetLabelsRetType) {
|
|
setV2beta1UpdateBackupPayloadGetLabelsAttributeType(&o.Labels, v)
|
|
}
|
|
|
|
// GetName returns the Name field value if set, zero value otherwise.
|
|
func (o *V2beta1UpdateBackupPayload) GetName() (res V2beta1UpdateBackupPayloadGetNameRetType) {
|
|
res, _ = o.GetNameOk()
|
|
return
|
|
}
|
|
|
|
// GetNameOk returns a tuple with the Name field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *V2beta1UpdateBackupPayload) GetNameOk() (ret V2beta1UpdateBackupPayloadGetNameRetType, ok bool) {
|
|
return getV2beta1UpdateBackupPayloadGetNameAttributeTypeOk(o.Name)
|
|
}
|
|
|
|
// HasName returns a boolean if a field has been set.
|
|
func (o *V2beta1UpdateBackupPayload) HasName() bool {
|
|
_, ok := o.GetNameOk()
|
|
return ok
|
|
}
|
|
|
|
// SetName gets a reference to the given string and assigns it to the Name field.
|
|
func (o *V2beta1UpdateBackupPayload) SetName(v V2beta1UpdateBackupPayloadGetNameRetType) {
|
|
setV2beta1UpdateBackupPayloadGetNameAttributeType(&o.Name, v)
|
|
}
|
|
|
|
// GetSize returns the Size field value if set, zero value otherwise.
|
|
func (o *V2beta1UpdateBackupPayload) GetSize() (res V2beta1UpdateBackupPayloadGetSizeRetType) {
|
|
res, _ = o.GetSizeOk()
|
|
return
|
|
}
|
|
|
|
// GetSizeOk returns a tuple with the Size field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *V2beta1UpdateBackupPayload) GetSizeOk() (ret V2beta1UpdateBackupPayloadGetSizeRetType, ok bool) {
|
|
return getV2beta1UpdateBackupPayloadGetSizeAttributeTypeOk(o.Size)
|
|
}
|
|
|
|
// HasSize returns a boolean if a field has been set.
|
|
func (o *V2beta1UpdateBackupPayload) HasSize() bool {
|
|
_, ok := o.GetSizeOk()
|
|
return ok
|
|
}
|
|
|
|
// SetSize gets a reference to the given int64 and assigns it to the Size field.
|
|
func (o *V2beta1UpdateBackupPayload) SetSize(v V2beta1UpdateBackupPayloadGetSizeRetType) {
|
|
setV2beta1UpdateBackupPayloadGetSizeAttributeType(&o.Size, v)
|
|
}
|
|
|
|
// GetSnapshotId returns the SnapshotId field value if set, zero value otherwise.
|
|
func (o *V2beta1UpdateBackupPayload) GetSnapshotId() (res V2beta1UpdateBackupPayloadGetSnapshotIdRetType) {
|
|
res, _ = o.GetSnapshotIdOk()
|
|
return
|
|
}
|
|
|
|
// GetSnapshotIdOk returns a tuple with the SnapshotId field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *V2beta1UpdateBackupPayload) GetSnapshotIdOk() (ret V2beta1UpdateBackupPayloadGetSnapshotIdRetType, ok bool) {
|
|
return getV2beta1UpdateBackupPayloadGetSnapshotIdAttributeTypeOk(o.SnapshotId)
|
|
}
|
|
|
|
// HasSnapshotId returns a boolean if a field has been set.
|
|
func (o *V2beta1UpdateBackupPayload) HasSnapshotId() bool {
|
|
_, ok := o.GetSnapshotIdOk()
|
|
return ok
|
|
}
|
|
|
|
// SetSnapshotId gets a reference to the given string and assigns it to the SnapshotId field.
|
|
func (o *V2beta1UpdateBackupPayload) SetSnapshotId(v V2beta1UpdateBackupPayloadGetSnapshotIdRetType) {
|
|
setV2beta1UpdateBackupPayloadGetSnapshotIdAttributeType(&o.SnapshotId, v)
|
|
}
|
|
|
|
// GetStatus returns the Status field value if set, zero value otherwise.
|
|
func (o *V2beta1UpdateBackupPayload) GetStatus() (res V2beta1UpdateBackupPayloadGetStatusRetType) {
|
|
res, _ = o.GetStatusOk()
|
|
return
|
|
}
|
|
|
|
// GetStatusOk returns a tuple with the Status field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *V2beta1UpdateBackupPayload) GetStatusOk() (ret V2beta1UpdateBackupPayloadGetStatusRetType, ok bool) {
|
|
return getV2beta1UpdateBackupPayloadGetStatusAttributeTypeOk(o.Status)
|
|
}
|
|
|
|
// HasStatus returns a boolean if a field has been set.
|
|
func (o *V2beta1UpdateBackupPayload) HasStatus() bool {
|
|
_, ok := o.GetStatusOk()
|
|
return ok
|
|
}
|
|
|
|
// SetStatus gets a reference to the given string and assigns it to the Status field.
|
|
func (o *V2beta1UpdateBackupPayload) SetStatus(v V2beta1UpdateBackupPayloadGetStatusRetType) {
|
|
setV2beta1UpdateBackupPayloadGetStatusAttributeType(&o.Status, v)
|
|
}
|
|
|
|
// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise.
|
|
func (o *V2beta1UpdateBackupPayload) GetUpdatedAt() (res V2beta1UpdateBackupPayloadGetUpdatedAtRetType) {
|
|
res, _ = o.GetUpdatedAtOk()
|
|
return
|
|
}
|
|
|
|
// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *V2beta1UpdateBackupPayload) GetUpdatedAtOk() (ret V2beta1UpdateBackupPayloadGetUpdatedAtRetType, ok bool) {
|
|
return getV2beta1UpdateBackupPayloadGetUpdatedAtAttributeTypeOk(o.UpdatedAt)
|
|
}
|
|
|
|
// HasUpdatedAt returns a boolean if a field has been set.
|
|
func (o *V2beta1UpdateBackupPayload) HasUpdatedAt() bool {
|
|
_, ok := o.GetUpdatedAtOk()
|
|
return ok
|
|
}
|
|
|
|
// SetUpdatedAt gets a reference to the given time.Time and assigns it to the UpdatedAt field.
|
|
func (o *V2beta1UpdateBackupPayload) SetUpdatedAt(v V2beta1UpdateBackupPayloadGetUpdatedAtRetType) {
|
|
setV2beta1UpdateBackupPayloadGetUpdatedAtAttributeType(&o.UpdatedAt, v)
|
|
}
|
|
|
|
// GetVolumeId returns the VolumeId field value if set, zero value otherwise.
|
|
func (o *V2beta1UpdateBackupPayload) GetVolumeId() (res V2beta1UpdateBackupPayloadGetVolumeIdRetType) {
|
|
res, _ = o.GetVolumeIdOk()
|
|
return
|
|
}
|
|
|
|
// GetVolumeIdOk returns a tuple with the VolumeId field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *V2beta1UpdateBackupPayload) GetVolumeIdOk() (ret V2beta1UpdateBackupPayloadGetVolumeIdRetType, ok bool) {
|
|
return getV2beta1UpdateBackupPayloadGetVolumeIdAttributeTypeOk(o.VolumeId)
|
|
}
|
|
|
|
// HasVolumeId returns a boolean if a field has been set.
|
|
func (o *V2beta1UpdateBackupPayload) HasVolumeId() bool {
|
|
_, ok := o.GetVolumeIdOk()
|
|
return ok
|
|
}
|
|
|
|
// SetVolumeId gets a reference to the given string and assigns it to the VolumeId field.
|
|
func (o *V2beta1UpdateBackupPayload) SetVolumeId(v V2beta1UpdateBackupPayloadGetVolumeIdRetType) {
|
|
setV2beta1UpdateBackupPayloadGetVolumeIdAttributeType(&o.VolumeId, v)
|
|
}
|
|
|
|
func (o V2beta1UpdateBackupPayload) ToMap() (map[string]interface{}, error) {
|
|
toSerialize := map[string]interface{}{}
|
|
if val, ok := getV2beta1UpdateBackupPayloadGetAvailabilityZoneAttributeTypeOk(o.AvailabilityZone); ok {
|
|
toSerialize["AvailabilityZone"] = val
|
|
}
|
|
if val, ok := getV2beta1UpdateBackupPayloadGetCreatedAtAttributeTypeOk(o.CreatedAt); ok {
|
|
toSerialize["CreatedAt"] = val
|
|
}
|
|
if val, ok := getV2beta1UpdateBackupPayloadgetEncryptedAttributeTypeOk(o.Encrypted); ok {
|
|
toSerialize["Encrypted"] = val
|
|
}
|
|
if val, ok := getV2beta1UpdateBackupPayloadGetIdAttributeTypeOk(o.Id); ok {
|
|
toSerialize["Id"] = val
|
|
}
|
|
if val, ok := getV2beta1UpdateBackupPayloadGetLabelsAttributeTypeOk(o.Labels); ok {
|
|
toSerialize["Labels"] = val
|
|
}
|
|
if val, ok := getV2beta1UpdateBackupPayloadGetNameAttributeTypeOk(o.Name); ok {
|
|
toSerialize["Name"] = val
|
|
}
|
|
if val, ok := getV2beta1UpdateBackupPayloadGetSizeAttributeTypeOk(o.Size); ok {
|
|
toSerialize["Size"] = val
|
|
}
|
|
if val, ok := getV2beta1UpdateBackupPayloadGetSnapshotIdAttributeTypeOk(o.SnapshotId); ok {
|
|
toSerialize["SnapshotId"] = val
|
|
}
|
|
if val, ok := getV2beta1UpdateBackupPayloadGetStatusAttributeTypeOk(o.Status); ok {
|
|
toSerialize["Status"] = val
|
|
}
|
|
if val, ok := getV2beta1UpdateBackupPayloadGetUpdatedAtAttributeTypeOk(o.UpdatedAt); ok {
|
|
toSerialize["UpdatedAt"] = val
|
|
}
|
|
if val, ok := getV2beta1UpdateBackupPayloadGetVolumeIdAttributeTypeOk(o.VolumeId); ok {
|
|
toSerialize["VolumeId"] = val
|
|
}
|
|
return toSerialize, nil
|
|
}
|
|
|
|
type NullableV2beta1UpdateBackupPayload struct {
|
|
value *V2beta1UpdateBackupPayload
|
|
isSet bool
|
|
}
|
|
|
|
func (v NullableV2beta1UpdateBackupPayload) Get() *V2beta1UpdateBackupPayload {
|
|
return v.value
|
|
}
|
|
|
|
func (v *NullableV2beta1UpdateBackupPayload) Set(val *V2beta1UpdateBackupPayload) {
|
|
v.value = val
|
|
v.isSet = true
|
|
}
|
|
|
|
func (v NullableV2beta1UpdateBackupPayload) IsSet() bool {
|
|
return v.isSet
|
|
}
|
|
|
|
func (v *NullableV2beta1UpdateBackupPayload) Unset() {
|
|
v.value = nil
|
|
v.isSet = false
|
|
}
|
|
|
|
func NewNullableV2beta1UpdateBackupPayload(val *V2beta1UpdateBackupPayload) *NullableV2beta1UpdateBackupPayload {
|
|
return &NullableV2beta1UpdateBackupPayload{value: val, isSet: true}
|
|
}
|
|
|
|
func (v NullableV2beta1UpdateBackupPayload) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(v.value)
|
|
}
|
|
|
|
func (v *NullableV2beta1UpdateBackupPayload) UnmarshalJSON(src []byte) error {
|
|
v.isSet = true
|
|
return json.Unmarshal(src, &v.value)
|
|
}
|