chore: initial push to be able to work together
This commit is contained in:
parent
81e8d48cf6
commit
30070d8470
263 changed files with 45437 additions and 2 deletions
261
pkg/sqlserverflexalpha/model_list_database.go
Normal file
261
pkg/sqlserverflexalpha/model_list_database.go
Normal file
|
|
@ -0,0 +1,261 @@
|
|||
/*
|
||||
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 ListDatabase type satisfies the MappedNullable interface at compile time
|
||||
var _ MappedNullable = &ListDatabase{}
|
||||
|
||||
/*
|
||||
types and functions for created
|
||||
*/
|
||||
|
||||
// isNotNullableString
|
||||
type ListDatabaseGetCreatedAttributeType = *string
|
||||
|
||||
func getListDatabaseGetCreatedAttributeTypeOk(arg ListDatabaseGetCreatedAttributeType) (ret ListDatabaseGetCreatedRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setListDatabaseGetCreatedAttributeType(arg *ListDatabaseGetCreatedAttributeType, val ListDatabaseGetCreatedRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
type ListDatabaseGetCreatedArgType = string
|
||||
type ListDatabaseGetCreatedRetType = string
|
||||
|
||||
/*
|
||||
types and functions for id
|
||||
*/
|
||||
|
||||
// isLong
|
||||
type ListDatabaseGetIdAttributeType = *int64
|
||||
type ListDatabaseGetIdArgType = int64
|
||||
type ListDatabaseGetIdRetType = int64
|
||||
|
||||
func getListDatabaseGetIdAttributeTypeOk(arg ListDatabaseGetIdAttributeType) (ret ListDatabaseGetIdRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setListDatabaseGetIdAttributeType(arg *ListDatabaseGetIdAttributeType, val ListDatabaseGetIdRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
/*
|
||||
types and functions for name
|
||||
*/
|
||||
|
||||
// isNotNullableString
|
||||
type ListDatabaseGetNameAttributeType = *string
|
||||
|
||||
func getListDatabaseGetNameAttributeTypeOk(arg ListDatabaseGetNameAttributeType) (ret ListDatabaseGetNameRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setListDatabaseGetNameAttributeType(arg *ListDatabaseGetNameAttributeType, val ListDatabaseGetNameRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
type ListDatabaseGetNameArgType = string
|
||||
type ListDatabaseGetNameRetType = string
|
||||
|
||||
/*
|
||||
types and functions for owner
|
||||
*/
|
||||
|
||||
// isNotNullableString
|
||||
type ListDatabaseGetOwnerAttributeType = *string
|
||||
|
||||
func getListDatabaseGetOwnerAttributeTypeOk(arg ListDatabaseGetOwnerAttributeType) (ret ListDatabaseGetOwnerRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setListDatabaseGetOwnerAttributeType(arg *ListDatabaseGetOwnerAttributeType, val ListDatabaseGetOwnerRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
type ListDatabaseGetOwnerArgType = string
|
||||
type ListDatabaseGetOwnerRetType = string
|
||||
|
||||
// ListDatabase struct for ListDatabase
|
||||
type ListDatabase struct {
|
||||
// The date when the database was created in RFC3339 format.
|
||||
// REQUIRED
|
||||
Created ListDatabaseGetCreatedAttributeType `json:"created" required:"true"`
|
||||
// The id of the database.
|
||||
// REQUIRED
|
||||
Id ListDatabaseGetIdAttributeType `json:"id" required:"true"`
|
||||
// The name of the database.
|
||||
// REQUIRED
|
||||
Name ListDatabaseGetNameAttributeType `json:"name" required:"true"`
|
||||
// The owner of the database.
|
||||
// REQUIRED
|
||||
Owner ListDatabaseGetOwnerAttributeType `json:"owner" required:"true"`
|
||||
}
|
||||
|
||||
type _ListDatabase ListDatabase
|
||||
|
||||
// NewListDatabase instantiates a new ListDatabase 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 NewListDatabase(created ListDatabaseGetCreatedArgType, id ListDatabaseGetIdArgType, name ListDatabaseGetNameArgType, owner ListDatabaseGetOwnerArgType) *ListDatabase {
|
||||
this := ListDatabase{}
|
||||
setListDatabaseGetCreatedAttributeType(&this.Created, created)
|
||||
setListDatabaseGetIdAttributeType(&this.Id, id)
|
||||
setListDatabaseGetNameAttributeType(&this.Name, name)
|
||||
setListDatabaseGetOwnerAttributeType(&this.Owner, owner)
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewListDatabaseWithDefaults instantiates a new ListDatabase 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 NewListDatabaseWithDefaults() *ListDatabase {
|
||||
this := ListDatabase{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetCreated returns the Created field value
|
||||
func (o *ListDatabase) GetCreated() (ret ListDatabaseGetCreatedRetType) {
|
||||
ret, _ = o.GetCreatedOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetCreatedOk returns a tuple with the Created field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *ListDatabase) GetCreatedOk() (ret ListDatabaseGetCreatedRetType, ok bool) {
|
||||
return getListDatabaseGetCreatedAttributeTypeOk(o.Created)
|
||||
}
|
||||
|
||||
// SetCreated sets field value
|
||||
func (o *ListDatabase) SetCreated(v ListDatabaseGetCreatedRetType) {
|
||||
setListDatabaseGetCreatedAttributeType(&o.Created, v)
|
||||
}
|
||||
|
||||
// GetId returns the Id field value
|
||||
func (o *ListDatabase) GetId() (ret ListDatabaseGetIdRetType) {
|
||||
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 *ListDatabase) GetIdOk() (ret ListDatabaseGetIdRetType, ok bool) {
|
||||
return getListDatabaseGetIdAttributeTypeOk(o.Id)
|
||||
}
|
||||
|
||||
// SetId sets field value
|
||||
func (o *ListDatabase) SetId(v ListDatabaseGetIdRetType) {
|
||||
setListDatabaseGetIdAttributeType(&o.Id, v)
|
||||
}
|
||||
|
||||
// GetName returns the Name field value
|
||||
func (o *ListDatabase) GetName() (ret ListDatabaseGetNameRetType) {
|
||||
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 *ListDatabase) GetNameOk() (ret ListDatabaseGetNameRetType, ok bool) {
|
||||
return getListDatabaseGetNameAttributeTypeOk(o.Name)
|
||||
}
|
||||
|
||||
// SetName sets field value
|
||||
func (o *ListDatabase) SetName(v ListDatabaseGetNameRetType) {
|
||||
setListDatabaseGetNameAttributeType(&o.Name, v)
|
||||
}
|
||||
|
||||
// GetOwner returns the Owner field value
|
||||
func (o *ListDatabase) GetOwner() (ret ListDatabaseGetOwnerRetType) {
|
||||
ret, _ = o.GetOwnerOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetOwnerOk returns a tuple with the Owner field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *ListDatabase) GetOwnerOk() (ret ListDatabaseGetOwnerRetType, ok bool) {
|
||||
return getListDatabaseGetOwnerAttributeTypeOk(o.Owner)
|
||||
}
|
||||
|
||||
// SetOwner sets field value
|
||||
func (o *ListDatabase) SetOwner(v ListDatabaseGetOwnerRetType) {
|
||||
setListDatabaseGetOwnerAttributeType(&o.Owner, v)
|
||||
}
|
||||
|
||||
func (o ListDatabase) ToMap() (map[string]interface{}, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if val, ok := getListDatabaseGetCreatedAttributeTypeOk(o.Created); ok {
|
||||
toSerialize["Created"] = val
|
||||
}
|
||||
if val, ok := getListDatabaseGetIdAttributeTypeOk(o.Id); ok {
|
||||
toSerialize["Id"] = val
|
||||
}
|
||||
if val, ok := getListDatabaseGetNameAttributeTypeOk(o.Name); ok {
|
||||
toSerialize["Name"] = val
|
||||
}
|
||||
if val, ok := getListDatabaseGetOwnerAttributeTypeOk(o.Owner); ok {
|
||||
toSerialize["Owner"] = val
|
||||
}
|
||||
return toSerialize, nil
|
||||
}
|
||||
|
||||
type NullableListDatabase struct {
|
||||
value *ListDatabase
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableListDatabase) Get() *ListDatabase {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableListDatabase) Set(val *ListDatabase) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableListDatabase) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableListDatabase) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableListDatabase(val *ListDatabase) *NullableListDatabase {
|
||||
return &NullableListDatabase{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableListDatabase) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableListDatabase) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue