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
126
pkg/sqlserverflexalpha/model_list_compatibility_response.go
Normal file
126
pkg/sqlserverflexalpha/model_list_compatibility_response.go
Normal file
|
|
@ -0,0 +1,126 @@
|
|||
/*
|
||||
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)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue