* 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>
126 lines
4.4 KiB
Go
126 lines
4.4 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 ListCompatibilityResponse type satisfies the MappedNullable interface at compile time
|
|
var _ MappedNullable = &ListCompatibilityResponse{}
|
|
|
|
/*
|
|
types and functions for compatibilities
|
|
*/
|
|
|
|
// isArray
|
|
type ListCompatibilityResponseGetCompatibilitiesAttributeType = *[]DatabaseGetcompatibility
|
|
type ListCompatibilityResponseGetCompatibilitiesArgType = []DatabaseGetcompatibility
|
|
type ListCompatibilityResponseGetCompatibilitiesRetType = []DatabaseGetcompatibility
|
|
|
|
func getListCompatibilityResponseGetCompatibilitiesAttributeTypeOk(arg ListCompatibilityResponseGetCompatibilitiesAttributeType) (ret ListCompatibilityResponseGetCompatibilitiesRetType, ok bool) {
|
|
if arg == nil {
|
|
return ret, false
|
|
}
|
|
return *arg, true
|
|
}
|
|
|
|
func setListCompatibilityResponseGetCompatibilitiesAttributeType(arg *ListCompatibilityResponseGetCompatibilitiesAttributeType, val ListCompatibilityResponseGetCompatibilitiesRetType) {
|
|
*arg = &val
|
|
}
|
|
|
|
// ListCompatibilityResponse struct for ListCompatibilityResponse
|
|
type ListCompatibilityResponse struct {
|
|
// List of compatibilities available for a d
|
|
// REQUIRED
|
|
Compatibilities ListCompatibilityResponseGetCompatibilitiesAttributeType `json:"compatibilities" required:"true"`
|
|
}
|
|
|
|
type _ListCompatibilityResponse ListCompatibilityResponse
|
|
|
|
// NewListCompatibilityResponse instantiates a new ListCompatibilityResponse 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 NewListCompatibilityResponse(compatibilities ListCompatibilityResponseGetCompatibilitiesArgType) *ListCompatibilityResponse {
|
|
this := ListCompatibilityResponse{}
|
|
setListCompatibilityResponseGetCompatibilitiesAttributeType(&this.Compatibilities, compatibilities)
|
|
return &this
|
|
}
|
|
|
|
// NewListCompatibilityResponseWithDefaults instantiates a new ListCompatibilityResponse 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 NewListCompatibilityResponseWithDefaults() *ListCompatibilityResponse {
|
|
this := ListCompatibilityResponse{}
|
|
return &this
|
|
}
|
|
|
|
// GetCompatibilities returns the Compatibilities field value
|
|
func (o *ListCompatibilityResponse) GetCompatibilities() (ret ListCompatibilityResponseGetCompatibilitiesRetType) {
|
|
ret, _ = o.GetCompatibilitiesOk()
|
|
return ret
|
|
}
|
|
|
|
// GetCompatibilitiesOk returns a tuple with the Compatibilities field value
|
|
// and a boolean to check if the value has been set.
|
|
func (o *ListCompatibilityResponse) GetCompatibilitiesOk() (ret ListCompatibilityResponseGetCompatibilitiesRetType, ok bool) {
|
|
return getListCompatibilityResponseGetCompatibilitiesAttributeTypeOk(o.Compatibilities)
|
|
}
|
|
|
|
// SetCompatibilities sets field value
|
|
func (o *ListCompatibilityResponse) SetCompatibilities(v ListCompatibilityResponseGetCompatibilitiesRetType) {
|
|
setListCompatibilityResponseGetCompatibilitiesAttributeType(&o.Compatibilities, v)
|
|
}
|
|
|
|
func (o ListCompatibilityResponse) ToMap() (map[string]interface{}, error) {
|
|
toSerialize := map[string]interface{}{}
|
|
if val, ok := getListCompatibilityResponseGetCompatibilitiesAttributeTypeOk(o.Compatibilities); ok {
|
|
toSerialize["Compatibilities"] = val
|
|
}
|
|
return toSerialize, nil
|
|
}
|
|
|
|
type NullableListCompatibilityResponse struct {
|
|
value *ListCompatibilityResponse
|
|
isSet bool
|
|
}
|
|
|
|
func (v NullableListCompatibilityResponse) Get() *ListCompatibilityResponse {
|
|
return v.value
|
|
}
|
|
|
|
func (v *NullableListCompatibilityResponse) Set(val *ListCompatibilityResponse) {
|
|
v.value = val
|
|
v.isSet = true
|
|
}
|
|
|
|
func (v NullableListCompatibilityResponse) IsSet() bool {
|
|
return v.isSet
|
|
}
|
|
|
|
func (v *NullableListCompatibilityResponse) Unset() {
|
|
v.value = nil
|
|
v.isSet = false
|
|
}
|
|
|
|
func NewNullableListCompatibilityResponse(val *ListCompatibilityResponse) *NullableListCompatibilityResponse {
|
|
return &NullableListCompatibilityResponse{value: val, isSet: true}
|
|
}
|
|
|
|
func (v NullableListCompatibilityResponse) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(v.value)
|
|
}
|
|
|
|
func (v *NullableListCompatibilityResponse) UnmarshalJSON(src []byte) error {
|
|
v.isSet = true
|
|
return json.Unmarshal(src, &v.value)
|
|
}
|