Alpha (#4)
* chore: initial push to be able to work together * chore: add missing wait folder * chore: add missing folders * chore: cleanup alpha branch * feat: mssql alpha instance (#2) * fix: remove unused attribute types and functions from backup models * fix: update API client references to use sqlserverflexalpha package * fix: update package references to use sqlserverflexalpha and modify user data source model * fix: add sqlserverflexalpha user data source to provider * fix: add sqlserverflexalpha user resource and update related functionality * chore: add stackit_sqlserverflexalpha_user resource and instance_id variable * fix: refactor sqlserverflexalpha user resource and enhance schema with status and default_database --------- Co-authored-by: Andre Harms <andre.harms@stackit.cloud> Co-authored-by: Marcel S. Henselin <marcel.henselin@stackit.cloud> * feat: add sqlserver instance * chore: fixing tests * chore: update docs --------- Co-authored-by: Marcel S. Henselin <marcel.henselin@stackit.cloud> Co-authored-by: Andre Harms <andre.harms@stackit.cloud>
This commit is contained in:
parent
45073a716b
commit
2733834fc9
351 changed files with 62744 additions and 3 deletions
176
pkg/sqlserverflexalpha/model_database_getcollation.go
Normal file
176
pkg/sqlserverflexalpha/model_database_getcollation.go
Normal file
|
|
@ -0,0 +1,176 @@
|
|||
/*
|
||||
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)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue