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_getcompatibility.go
Normal file
176
pkg/sqlserverflexalpha/model_database_getcompatibility.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 DatabaseGetcompatibility type satisfies the MappedNullable interface at compile time
|
||||
var _ MappedNullable = &DatabaseGetcompatibility{}
|
||||
|
||||
/*
|
||||
types and functions for compatibility_level
|
||||
*/
|
||||
|
||||
// isInteger
|
||||
type DatabaseGetcompatibilityGetCompatibilityLevelAttributeType = *int64
|
||||
type DatabaseGetcompatibilityGetCompatibilityLevelArgType = int64
|
||||
type DatabaseGetcompatibilityGetCompatibilityLevelRetType = int64
|
||||
|
||||
func getDatabaseGetcompatibilityGetCompatibilityLevelAttributeTypeOk(arg DatabaseGetcompatibilityGetCompatibilityLevelAttributeType) (ret DatabaseGetcompatibilityGetCompatibilityLevelRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setDatabaseGetcompatibilityGetCompatibilityLevelAttributeType(arg *DatabaseGetcompatibilityGetCompatibilityLevelAttributeType, val DatabaseGetcompatibilityGetCompatibilityLevelRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
/*
|
||||
types and functions for description
|
||||
*/
|
||||
|
||||
// isNotNullableString
|
||||
type DatabaseGetcompatibilityGetDescriptionAttributeType = *string
|
||||
|
||||
func getDatabaseGetcompatibilityGetDescriptionAttributeTypeOk(arg DatabaseGetcompatibilityGetDescriptionAttributeType) (ret DatabaseGetcompatibilityGetDescriptionRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setDatabaseGetcompatibilityGetDescriptionAttributeType(arg *DatabaseGetcompatibilityGetDescriptionAttributeType, val DatabaseGetcompatibilityGetDescriptionRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
type DatabaseGetcompatibilityGetDescriptionArgType = string
|
||||
type DatabaseGetcompatibilityGetDescriptionRetType = string
|
||||
|
||||
// DatabaseGetcompatibility struct for DatabaseGetcompatibility
|
||||
type DatabaseGetcompatibility struct {
|
||||
// Can be cast to int32 without loss of precision.
|
||||
CompatibilityLevel DatabaseGetcompatibilityGetCompatibilityLevelAttributeType `json:"compatibility_level,omitempty"`
|
||||
Description DatabaseGetcompatibilityGetDescriptionAttributeType `json:"description,omitempty"`
|
||||
}
|
||||
|
||||
// NewDatabaseGetcompatibility instantiates a new DatabaseGetcompatibility 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 NewDatabaseGetcompatibility() *DatabaseGetcompatibility {
|
||||
this := DatabaseGetcompatibility{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewDatabaseGetcompatibilityWithDefaults instantiates a new DatabaseGetcompatibility 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 NewDatabaseGetcompatibilityWithDefaults() *DatabaseGetcompatibility {
|
||||
this := DatabaseGetcompatibility{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetCompatibilityLevel returns the CompatibilityLevel field value if set, zero value otherwise.
|
||||
func (o *DatabaseGetcompatibility) GetCompatibilityLevel() (res DatabaseGetcompatibilityGetCompatibilityLevelRetType) {
|
||||
res, _ = o.GetCompatibilityLevelOk()
|
||||
return
|
||||
}
|
||||
|
||||
// GetCompatibilityLevelOk returns a tuple with the CompatibilityLevel field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *DatabaseGetcompatibility) GetCompatibilityLevelOk() (ret DatabaseGetcompatibilityGetCompatibilityLevelRetType, ok bool) {
|
||||
return getDatabaseGetcompatibilityGetCompatibilityLevelAttributeTypeOk(o.CompatibilityLevel)
|
||||
}
|
||||
|
||||
// HasCompatibilityLevel returns a boolean if a field has been set.
|
||||
func (o *DatabaseGetcompatibility) HasCompatibilityLevel() bool {
|
||||
_, ok := o.GetCompatibilityLevelOk()
|
||||
return ok
|
||||
}
|
||||
|
||||
// SetCompatibilityLevel gets a reference to the given int64 and assigns it to the CompatibilityLevel field.
|
||||
func (o *DatabaseGetcompatibility) SetCompatibilityLevel(v DatabaseGetcompatibilityGetCompatibilityLevelRetType) {
|
||||
setDatabaseGetcompatibilityGetCompatibilityLevelAttributeType(&o.CompatibilityLevel, v)
|
||||
}
|
||||
|
||||
// GetDescription returns the Description field value if set, zero value otherwise.
|
||||
func (o *DatabaseGetcompatibility) GetDescription() (res DatabaseGetcompatibilityGetDescriptionRetType) {
|
||||
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 *DatabaseGetcompatibility) GetDescriptionOk() (ret DatabaseGetcompatibilityGetDescriptionRetType, ok bool) {
|
||||
return getDatabaseGetcompatibilityGetDescriptionAttributeTypeOk(o.Description)
|
||||
}
|
||||
|
||||
// HasDescription returns a boolean if a field has been set.
|
||||
func (o *DatabaseGetcompatibility) HasDescription() bool {
|
||||
_, ok := o.GetDescriptionOk()
|
||||
return ok
|
||||
}
|
||||
|
||||
// SetDescription gets a reference to the given string and assigns it to the Description field.
|
||||
func (o *DatabaseGetcompatibility) SetDescription(v DatabaseGetcompatibilityGetDescriptionRetType) {
|
||||
setDatabaseGetcompatibilityGetDescriptionAttributeType(&o.Description, v)
|
||||
}
|
||||
|
||||
func (o DatabaseGetcompatibility) ToMap() (map[string]interface{}, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if val, ok := getDatabaseGetcompatibilityGetCompatibilityLevelAttributeTypeOk(o.CompatibilityLevel); ok {
|
||||
toSerialize["CompatibilityLevel"] = val
|
||||
}
|
||||
if val, ok := getDatabaseGetcompatibilityGetDescriptionAttributeTypeOk(o.Description); ok {
|
||||
toSerialize["Description"] = val
|
||||
}
|
||||
return toSerialize, nil
|
||||
}
|
||||
|
||||
type NullableDatabaseGetcompatibility struct {
|
||||
value *DatabaseGetcompatibility
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableDatabaseGetcompatibility) Get() *DatabaseGetcompatibility {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableDatabaseGetcompatibility) Set(val *DatabaseGetcompatibility) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableDatabaseGetcompatibility) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableDatabaseGetcompatibility) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableDatabaseGetcompatibility(val *DatabaseGetcompatibility) *NullableDatabaseGetcompatibility {
|
||||
return &NullableDatabaseGetcompatibility{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableDatabaseGetcompatibility) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableDatabaseGetcompatibility) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue