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
126
pkg/sqlserverflexalpha/model_get_collations_response.go
Normal file
126
pkg/sqlserverflexalpha/model_get_collations_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 GetCollationsResponse type satisfies the MappedNullable interface at compile time
|
||||
var _ MappedNullable = &GetCollationsResponse{}
|
||||
|
||||
/*
|
||||
types and functions for collations
|
||||
*/
|
||||
|
||||
// isArray
|
||||
type GetCollationsResponseGetCollationsAttributeType = *[]DatabaseGetcollation
|
||||
type GetCollationsResponseGetCollationsArgType = []DatabaseGetcollation
|
||||
type GetCollationsResponseGetCollationsRetType = []DatabaseGetcollation
|
||||
|
||||
func getGetCollationsResponseGetCollationsAttributeTypeOk(arg GetCollationsResponseGetCollationsAttributeType) (ret GetCollationsResponseGetCollationsRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setGetCollationsResponseGetCollationsAttributeType(arg *GetCollationsResponseGetCollationsAttributeType, val GetCollationsResponseGetCollationsRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
// GetCollationsResponse struct for GetCollationsResponse
|
||||
type GetCollationsResponse struct {
|
||||
// List of collations available for the instance.
|
||||
// REQUIRED
|
||||
Collations GetCollationsResponseGetCollationsAttributeType `json:"collations" required:"true"`
|
||||
}
|
||||
|
||||
type _GetCollationsResponse GetCollationsResponse
|
||||
|
||||
// NewGetCollationsResponse instantiates a new GetCollationsResponse 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 NewGetCollationsResponse(collations GetCollationsResponseGetCollationsArgType) *GetCollationsResponse {
|
||||
this := GetCollationsResponse{}
|
||||
setGetCollationsResponseGetCollationsAttributeType(&this.Collations, collations)
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewGetCollationsResponseWithDefaults instantiates a new GetCollationsResponse 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 NewGetCollationsResponseWithDefaults() *GetCollationsResponse {
|
||||
this := GetCollationsResponse{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetCollations returns the Collations field value
|
||||
func (o *GetCollationsResponse) GetCollations() (ret GetCollationsResponseGetCollationsRetType) {
|
||||
ret, _ = o.GetCollationsOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetCollationsOk returns a tuple with the Collations field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *GetCollationsResponse) GetCollationsOk() (ret GetCollationsResponseGetCollationsRetType, ok bool) {
|
||||
return getGetCollationsResponseGetCollationsAttributeTypeOk(o.Collations)
|
||||
}
|
||||
|
||||
// SetCollations sets field value
|
||||
func (o *GetCollationsResponse) SetCollations(v GetCollationsResponseGetCollationsRetType) {
|
||||
setGetCollationsResponseGetCollationsAttributeType(&o.Collations, v)
|
||||
}
|
||||
|
||||
func (o GetCollationsResponse) ToMap() (map[string]interface{}, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if val, ok := getGetCollationsResponseGetCollationsAttributeTypeOk(o.Collations); ok {
|
||||
toSerialize["Collations"] = val
|
||||
}
|
||||
return toSerialize, nil
|
||||
}
|
||||
|
||||
type NullableGetCollationsResponse struct {
|
||||
value *GetCollationsResponse
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableGetCollationsResponse) Get() *GetCollationsResponse {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableGetCollationsResponse) Set(val *GetCollationsResponse) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableGetCollationsResponse) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableGetCollationsResponse) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableGetCollationsResponse(val *GetCollationsResponse) *NullableGetCollationsResponse {
|
||||
return &NullableGetCollationsResponse{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableGetCollationsResponse) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableGetCollationsResponse) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue