terraform-provider-stackitp.../pkg/sqlserverflexalpha/model_list_backup.go
Marcel S. Henselin 9f41c4da7f
Some checks failed
Publish / Check GoReleaser config (push) Successful in 4s
Release / goreleaser (push) Failing after 29s
Publish / Publish provider (push) Failing after 4m24s
feat: auto generated files and new structure (#4)
## Description

<!-- **Please link some issue here describing what you are trying to achieve.**

In case there is no issue present for your PR, please consider creating one.
At least please give us some description what you are trying to achieve and why your change is needed. -->

relates to #1234

## Checklist

- [ ] Issue was linked above
- [ ] Code format was applied: `make fmt`
- [ ] Examples were added / adjusted (see `examples/` directory)
- [x] Docs are up-to-date: `make generate-docs` (will be checked by CI)
- [ ] Unit tests got implemented or updated
- [ ] Acceptance tests got implemented or updated (see e.g. [here](f5f99d1709/stackit/internal/services/dns/dns_acc_test.go))
- [x] Unit tests are passing: `make test` (will be checked by CI)
- [x] No linter issues: `make lint` (will be checked by CI)

Reviewed-on: #4
Reviewed-by: Andre_Harms <andre.harms@stackit.cloud>
Co-authored-by: Marcel S. Henselin <marcel.henselin@stackit.cloud>
Co-committed-by: Marcel S. Henselin <marcel.henselin@stackit.cloud>
2026-01-29 14:10:25 +00:00

350 lines
10 KiB
Go

/*
STACKIT MSSQL Service API
This is the documentation for the STACKIT MSSQL service
API version: 3alpha1
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package sqlserverflexalpha
import (
"encoding/json"
)
// checks if the ListBackup type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &ListBackup{}
/*
types and functions for completionTime
*/
// isNotNullableString
type ListBackupGetCompletionTimeAttributeType = *string
func getListBackupGetCompletionTimeAttributeTypeOk(arg ListBackupGetCompletionTimeAttributeType) (ret ListBackupGetCompletionTimeRetType, ok bool) {
if arg == nil {
return ret, false
}
return *arg, true
}
func setListBackupGetCompletionTimeAttributeType(arg *ListBackupGetCompletionTimeAttributeType, val ListBackupGetCompletionTimeRetType) {
*arg = &val
}
type ListBackupGetCompletionTimeArgType = string
type ListBackupGetCompletionTimeRetType = string
/*
types and functions for id
*/
// isLong
type ListBackupGetIdAttributeType = *int64
type ListBackupGetIdArgType = int64
type ListBackupGetIdRetType = int64
func getListBackupGetIdAttributeTypeOk(arg ListBackupGetIdAttributeType) (ret ListBackupGetIdRetType, ok bool) {
if arg == nil {
return ret, false
}
return *arg, true
}
func setListBackupGetIdAttributeType(arg *ListBackupGetIdAttributeType, val ListBackupGetIdRetType) {
*arg = &val
}
/*
types and functions for name
*/
// isNotNullableString
type ListBackupGetNameAttributeType = *string
func getListBackupGetNameAttributeTypeOk(arg ListBackupGetNameAttributeType) (ret ListBackupGetNameRetType, ok bool) {
if arg == nil {
return ret, false
}
return *arg, true
}
func setListBackupGetNameAttributeType(arg *ListBackupGetNameAttributeType, val ListBackupGetNameRetType) {
*arg = &val
}
type ListBackupGetNameArgType = string
type ListBackupGetNameRetType = string
/*
types and functions for retainedUntil
*/
// isNotNullableString
type ListBackupGetRetainedUntilAttributeType = *string
func getListBackupGetRetainedUntilAttributeTypeOk(arg ListBackupGetRetainedUntilAttributeType) (ret ListBackupGetRetainedUntilRetType, ok bool) {
if arg == nil {
return ret, false
}
return *arg, true
}
func setListBackupGetRetainedUntilAttributeType(arg *ListBackupGetRetainedUntilAttributeType, val ListBackupGetRetainedUntilRetType) {
*arg = &val
}
type ListBackupGetRetainedUntilArgType = string
type ListBackupGetRetainedUntilRetType = string
/*
types and functions for size
*/
// isLong
type ListBackupGetSizeAttributeType = *int64
type ListBackupGetSizeArgType = int64
type ListBackupGetSizeRetType = int64
func getListBackupGetSizeAttributeTypeOk(arg ListBackupGetSizeAttributeType) (ret ListBackupGetSizeRetType, ok bool) {
if arg == nil {
return ret, false
}
return *arg, true
}
func setListBackupGetSizeAttributeType(arg *ListBackupGetSizeAttributeType, val ListBackupGetSizeRetType) {
*arg = &val
}
/*
types and functions for type
*/
// isNotNullableString
type ListBackupGetTypeAttributeType = *string
func getListBackupGetTypeAttributeTypeOk(arg ListBackupGetTypeAttributeType) (ret ListBackupGetTypeRetType, ok bool) {
if arg == nil {
return ret, false
}
return *arg, true
}
func setListBackupGetTypeAttributeType(arg *ListBackupGetTypeAttributeType, val ListBackupGetTypeRetType) {
*arg = &val
}
type ListBackupGetTypeArgType = string
type ListBackupGetTypeRetType = string
// ListBackup struct for ListBackup
type ListBackup struct {
// The time when the backup was completed in RFC3339 format.
// REQUIRED
CompletionTime ListBackupGetCompletionTimeAttributeType `json:"completionTime" required:"true"`
// The ID of the backup.
// REQUIRED
Id ListBackupGetIdAttributeType `json:"id" required:"true"`
// The name of the backup.
// REQUIRED
Name ListBackupGetNameAttributeType `json:"name" required:"true"`
// The time until the backup will be retained.
// REQUIRED
RetainedUntil ListBackupGetRetainedUntilAttributeType `json:"retainedUntil" required:"true"`
// The size of the backup in bytes.
// REQUIRED
Size ListBackupGetSizeAttributeType `json:"size" required:"true"`
// The type of the backup, which can be automated or manual triggered.
// REQUIRED
Type ListBackupGetTypeAttributeType `json:"type" required:"true"`
}
type _ListBackup ListBackup
// NewListBackup instantiates a new ListBackup 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 NewListBackup(completionTime ListBackupGetCompletionTimeArgType, id ListBackupGetIdArgType, name ListBackupGetNameArgType, retainedUntil ListBackupGetRetainedUntilArgType, size ListBackupGetSizeArgType, types ListBackupGetTypeArgType) *ListBackup {
this := ListBackup{}
setListBackupGetCompletionTimeAttributeType(&this.CompletionTime, completionTime)
setListBackupGetIdAttributeType(&this.Id, id)
setListBackupGetNameAttributeType(&this.Name, name)
setListBackupGetRetainedUntilAttributeType(&this.RetainedUntil, retainedUntil)
setListBackupGetSizeAttributeType(&this.Size, size)
setListBackupGetTypeAttributeType(&this.Type, types)
return &this
}
// NewListBackupWithDefaults instantiates a new ListBackup 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 NewListBackupWithDefaults() *ListBackup {
this := ListBackup{}
return &this
}
// GetCompletionTime returns the CompletionTime field value
func (o *ListBackup) GetCompletionTime() (ret ListBackupGetCompletionTimeRetType) {
ret, _ = o.GetCompletionTimeOk()
return ret
}
// GetCompletionTimeOk returns a tuple with the CompletionTime field value
// and a boolean to check if the value has been set.
func (o *ListBackup) GetCompletionTimeOk() (ret ListBackupGetCompletionTimeRetType, ok bool) {
return getListBackupGetCompletionTimeAttributeTypeOk(o.CompletionTime)
}
// SetCompletionTime sets field value
func (o *ListBackup) SetCompletionTime(v ListBackupGetCompletionTimeRetType) {
setListBackupGetCompletionTimeAttributeType(&o.CompletionTime, v)
}
// GetId returns the Id field value
func (o *ListBackup) GetId() (ret ListBackupGetIdRetType) {
ret, _ = o.GetIdOk()
return ret
}
// GetIdOk returns a tuple with the Id field value
// and a boolean to check if the value has been set.
func (o *ListBackup) GetIdOk() (ret ListBackupGetIdRetType, ok bool) {
return getListBackupGetIdAttributeTypeOk(o.Id)
}
// SetId sets field value
func (o *ListBackup) SetId(v ListBackupGetIdRetType) {
setListBackupGetIdAttributeType(&o.Id, v)
}
// GetName returns the Name field value
func (o *ListBackup) GetName() (ret ListBackupGetNameRetType) {
ret, _ = o.GetNameOk()
return ret
}
// GetNameOk returns a tuple with the Name field value
// and a boolean to check if the value has been set.
func (o *ListBackup) GetNameOk() (ret ListBackupGetNameRetType, ok bool) {
return getListBackupGetNameAttributeTypeOk(o.Name)
}
// SetName sets field value
func (o *ListBackup) SetName(v ListBackupGetNameRetType) {
setListBackupGetNameAttributeType(&o.Name, v)
}
// GetRetainedUntil returns the RetainedUntil field value
func (o *ListBackup) GetRetainedUntil() (ret ListBackupGetRetainedUntilRetType) {
ret, _ = o.GetRetainedUntilOk()
return ret
}
// GetRetainedUntilOk returns a tuple with the RetainedUntil field value
// and a boolean to check if the value has been set.
func (o *ListBackup) GetRetainedUntilOk() (ret ListBackupGetRetainedUntilRetType, ok bool) {
return getListBackupGetRetainedUntilAttributeTypeOk(o.RetainedUntil)
}
// SetRetainedUntil sets field value
func (o *ListBackup) SetRetainedUntil(v ListBackupGetRetainedUntilRetType) {
setListBackupGetRetainedUntilAttributeType(&o.RetainedUntil, v)
}
// GetSize returns the Size field value
func (o *ListBackup) GetSize() (ret ListBackupGetSizeRetType) {
ret, _ = o.GetSizeOk()
return ret
}
// GetSizeOk returns a tuple with the Size field value
// and a boolean to check if the value has been set.
func (o *ListBackup) GetSizeOk() (ret ListBackupGetSizeRetType, ok bool) {
return getListBackupGetSizeAttributeTypeOk(o.Size)
}
// SetSize sets field value
func (o *ListBackup) SetSize(v ListBackupGetSizeRetType) {
setListBackupGetSizeAttributeType(&o.Size, v)
}
// GetType returns the Type field value
func (o *ListBackup) GetType() (ret ListBackupGetTypeRetType) {
ret, _ = o.GetTypeOk()
return ret
}
// GetTypeOk returns a tuple with the Type field value
// and a boolean to check if the value has been set.
func (o *ListBackup) GetTypeOk() (ret ListBackupGetTypeRetType, ok bool) {
return getListBackupGetTypeAttributeTypeOk(o.Type)
}
// SetType sets field value
func (o *ListBackup) SetType(v ListBackupGetTypeRetType) {
setListBackupGetTypeAttributeType(&o.Type, v)
}
func (o ListBackup) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if val, ok := getListBackupGetCompletionTimeAttributeTypeOk(o.CompletionTime); ok {
toSerialize["CompletionTime"] = val
}
if val, ok := getListBackupGetIdAttributeTypeOk(o.Id); ok {
toSerialize["Id"] = val
}
if val, ok := getListBackupGetNameAttributeTypeOk(o.Name); ok {
toSerialize["Name"] = val
}
if val, ok := getListBackupGetRetainedUntilAttributeTypeOk(o.RetainedUntil); ok {
toSerialize["RetainedUntil"] = val
}
if val, ok := getListBackupGetSizeAttributeTypeOk(o.Size); ok {
toSerialize["Size"] = val
}
if val, ok := getListBackupGetTypeAttributeTypeOk(o.Type); ok {
toSerialize["Type"] = val
}
return toSerialize, nil
}
type NullableListBackup struct {
value *ListBackup
isSet bool
}
func (v NullableListBackup) Get() *ListBackup {
return v.value
}
func (v *NullableListBackup) Set(val *ListBackup) {
v.value = val
v.isSet = true
}
func (v NullableListBackup) IsSet() bool {
return v.isSet
}
func (v *NullableListBackup) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableListBackup(val *ListBackup) *NullableListBackup {
return &NullableListBackup{value: val, isSet: true}
}
func (v NullableListBackup) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableListBackup) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}