176 lines
5.9 KiB
Go
176 lines
5.9 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 DatabaseGetcollation type satisfies the MappedNullable interface at compile time
|
|
var _ MappedNullable = &DatabaseGetcollation{}
|
|
|
|
/*
|
|
types and functions for collation_name
|
|
*/
|
|
|
|
// isNotNullableString
|
|
type DatabaseGetcollationGetCollationNameAttributeType = *string
|
|
|
|
func getDatabaseGetcollationGetCollationNameAttributeTypeOk(arg DatabaseGetcollationGetCollationNameAttributeType) (ret DatabaseGetcollationGetCollationNameRetType, ok bool) {
|
|
if arg == nil {
|
|
return ret, false
|
|
}
|
|
return *arg, true
|
|
}
|
|
|
|
func setDatabaseGetcollationGetCollationNameAttributeType(arg *DatabaseGetcollationGetCollationNameAttributeType, val DatabaseGetcollationGetCollationNameRetType) {
|
|
*arg = &val
|
|
}
|
|
|
|
type DatabaseGetcollationGetCollationNameArgType = string
|
|
type DatabaseGetcollationGetCollationNameRetType = string
|
|
|
|
/*
|
|
types and functions for description
|
|
*/
|
|
|
|
// isNotNullableString
|
|
type DatabaseGetcollationGetDescriptionAttributeType = *string
|
|
|
|
func getDatabaseGetcollationGetDescriptionAttributeTypeOk(arg DatabaseGetcollationGetDescriptionAttributeType) (ret DatabaseGetcollationGetDescriptionRetType, ok bool) {
|
|
if arg == nil {
|
|
return ret, false
|
|
}
|
|
return *arg, true
|
|
}
|
|
|
|
func setDatabaseGetcollationGetDescriptionAttributeType(arg *DatabaseGetcollationGetDescriptionAttributeType, val DatabaseGetcollationGetDescriptionRetType) {
|
|
*arg = &val
|
|
}
|
|
|
|
type DatabaseGetcollationGetDescriptionArgType = string
|
|
type DatabaseGetcollationGetDescriptionRetType = string
|
|
|
|
// DatabaseGetcollation struct for DatabaseGetcollation
|
|
type DatabaseGetcollation struct {
|
|
CollationName DatabaseGetcollationGetCollationNameAttributeType `json:"collation_name,omitempty"`
|
|
Description DatabaseGetcollationGetDescriptionAttributeType `json:"description,omitempty"`
|
|
}
|
|
|
|
// NewDatabaseGetcollation instantiates a new DatabaseGetcollation 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 NewDatabaseGetcollation() *DatabaseGetcollation {
|
|
this := DatabaseGetcollation{}
|
|
return &this
|
|
}
|
|
|
|
// NewDatabaseGetcollationWithDefaults instantiates a new DatabaseGetcollation 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 NewDatabaseGetcollationWithDefaults() *DatabaseGetcollation {
|
|
this := DatabaseGetcollation{}
|
|
return &this
|
|
}
|
|
|
|
// GetCollationName returns the CollationName field value if set, zero value otherwise.
|
|
func (o *DatabaseGetcollation) GetCollationName() (res DatabaseGetcollationGetCollationNameRetType) {
|
|
res, _ = o.GetCollationNameOk()
|
|
return
|
|
}
|
|
|
|
// GetCollationNameOk returns a tuple with the CollationName field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *DatabaseGetcollation) GetCollationNameOk() (ret DatabaseGetcollationGetCollationNameRetType, ok bool) {
|
|
return getDatabaseGetcollationGetCollationNameAttributeTypeOk(o.CollationName)
|
|
}
|
|
|
|
// HasCollationName returns a boolean if a field has been set.
|
|
func (o *DatabaseGetcollation) HasCollationName() bool {
|
|
_, ok := o.GetCollationNameOk()
|
|
return ok
|
|
}
|
|
|
|
// SetCollationName gets a reference to the given string and assigns it to the CollationName field.
|
|
func (o *DatabaseGetcollation) SetCollationName(v DatabaseGetcollationGetCollationNameRetType) {
|
|
setDatabaseGetcollationGetCollationNameAttributeType(&o.CollationName, v)
|
|
}
|
|
|
|
// GetDescription returns the Description field value if set, zero value otherwise.
|
|
func (o *DatabaseGetcollation) GetDescription() (res DatabaseGetcollationGetDescriptionRetType) {
|
|
res, _ = o.GetDescriptionOk()
|
|
return
|
|
}
|
|
|
|
// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *DatabaseGetcollation) GetDescriptionOk() (ret DatabaseGetcollationGetDescriptionRetType, ok bool) {
|
|
return getDatabaseGetcollationGetDescriptionAttributeTypeOk(o.Description)
|
|
}
|
|
|
|
// HasDescription returns a boolean if a field has been set.
|
|
func (o *DatabaseGetcollation) HasDescription() bool {
|
|
_, ok := o.GetDescriptionOk()
|
|
return ok
|
|
}
|
|
|
|
// SetDescription gets a reference to the given string and assigns it to the Description field.
|
|
func (o *DatabaseGetcollation) SetDescription(v DatabaseGetcollationGetDescriptionRetType) {
|
|
setDatabaseGetcollationGetDescriptionAttributeType(&o.Description, v)
|
|
}
|
|
|
|
func (o DatabaseGetcollation) ToMap() (map[string]interface{}, error) {
|
|
toSerialize := map[string]interface{}{}
|
|
if val, ok := getDatabaseGetcollationGetCollationNameAttributeTypeOk(o.CollationName); ok {
|
|
toSerialize["CollationName"] = val
|
|
}
|
|
if val, ok := getDatabaseGetcollationGetDescriptionAttributeTypeOk(o.Description); ok {
|
|
toSerialize["Description"] = val
|
|
}
|
|
return toSerialize, nil
|
|
}
|
|
|
|
type NullableDatabaseGetcollation struct {
|
|
value *DatabaseGetcollation
|
|
isSet bool
|
|
}
|
|
|
|
func (v NullableDatabaseGetcollation) Get() *DatabaseGetcollation {
|
|
return v.value
|
|
}
|
|
|
|
func (v *NullableDatabaseGetcollation) Set(val *DatabaseGetcollation) {
|
|
v.value = val
|
|
v.isSet = true
|
|
}
|
|
|
|
func (v NullableDatabaseGetcollation) IsSet() bool {
|
|
return v.isSet
|
|
}
|
|
|
|
func (v *NullableDatabaseGetcollation) Unset() {
|
|
v.value = nil
|
|
v.isSet = false
|
|
}
|
|
|
|
func NewNullableDatabaseGetcollation(val *DatabaseGetcollation) *NullableDatabaseGetcollation {
|
|
return &NullableDatabaseGetcollation{value: val, isSet: true}
|
|
}
|
|
|
|
func (v NullableDatabaseGetcollation) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(v.value)
|
|
}
|
|
|
|
func (v *NullableDatabaseGetcollation) UnmarshalJSON(src []byte) error {
|
|
v.isSet = true
|
|
return json.Unmarshal(src, &v.value)
|
|
}
|