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
169
pkg/sqlserverflexalpha/model_list_user_response.go
Normal file
169
pkg/sqlserverflexalpha/model_list_user_response.go
Normal file
|
|
@ -0,0 +1,169 @@
|
|||
/*
|
||||
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 ListUserResponse type satisfies the MappedNullable interface at compile time
|
||||
var _ MappedNullable = &ListUserResponse{}
|
||||
|
||||
/*
|
||||
types and functions for pagination
|
||||
*/
|
||||
|
||||
// isModel
|
||||
type ListUserResponseGetPaginationAttributeType = *Pagination
|
||||
type ListUserResponseGetPaginationArgType = Pagination
|
||||
type ListUserResponseGetPaginationRetType = Pagination
|
||||
|
||||
func getListUserResponseGetPaginationAttributeTypeOk(arg ListUserResponseGetPaginationAttributeType) (ret ListUserResponseGetPaginationRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setListUserResponseGetPaginationAttributeType(arg *ListUserResponseGetPaginationAttributeType, val ListUserResponseGetPaginationRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
/*
|
||||
types and functions for users
|
||||
*/
|
||||
|
||||
// isArray
|
||||
type ListUserResponseGetUsersAttributeType = *[]ListUser
|
||||
type ListUserResponseGetUsersArgType = []ListUser
|
||||
type ListUserResponseGetUsersRetType = []ListUser
|
||||
|
||||
func getListUserResponseGetUsersAttributeTypeOk(arg ListUserResponseGetUsersAttributeType) (ret ListUserResponseGetUsersRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setListUserResponseGetUsersAttributeType(arg *ListUserResponseGetUsersAttributeType, val ListUserResponseGetUsersRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
// ListUserResponse struct for ListUserResponse
|
||||
type ListUserResponse struct {
|
||||
// REQUIRED
|
||||
Pagination ListUserResponseGetPaginationAttributeType `json:"pagination" required:"true"`
|
||||
// List of all users inside an instance
|
||||
// REQUIRED
|
||||
Users ListUserResponseGetUsersAttributeType `json:"users" required:"true"`
|
||||
}
|
||||
|
||||
type _ListUserResponse ListUserResponse
|
||||
|
||||
// NewListUserResponse instantiates a new ListUserResponse 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 NewListUserResponse(pagination ListUserResponseGetPaginationArgType, users ListUserResponseGetUsersArgType) *ListUserResponse {
|
||||
this := ListUserResponse{}
|
||||
setListUserResponseGetPaginationAttributeType(&this.Pagination, pagination)
|
||||
setListUserResponseGetUsersAttributeType(&this.Users, users)
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewListUserResponseWithDefaults instantiates a new ListUserResponse 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 NewListUserResponseWithDefaults() *ListUserResponse {
|
||||
this := ListUserResponse{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetPagination returns the Pagination field value
|
||||
func (o *ListUserResponse) GetPagination() (ret ListUserResponseGetPaginationRetType) {
|
||||
ret, _ = o.GetPaginationOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetPaginationOk returns a tuple with the Pagination field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *ListUserResponse) GetPaginationOk() (ret ListUserResponseGetPaginationRetType, ok bool) {
|
||||
return getListUserResponseGetPaginationAttributeTypeOk(o.Pagination)
|
||||
}
|
||||
|
||||
// SetPagination sets field value
|
||||
func (o *ListUserResponse) SetPagination(v ListUserResponseGetPaginationRetType) {
|
||||
setListUserResponseGetPaginationAttributeType(&o.Pagination, v)
|
||||
}
|
||||
|
||||
// GetUsers returns the Users field value
|
||||
func (o *ListUserResponse) GetUsers() (ret ListUserResponseGetUsersRetType) {
|
||||
ret, _ = o.GetUsersOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetUsersOk returns a tuple with the Users field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *ListUserResponse) GetUsersOk() (ret ListUserResponseGetUsersRetType, ok bool) {
|
||||
return getListUserResponseGetUsersAttributeTypeOk(o.Users)
|
||||
}
|
||||
|
||||
// SetUsers sets field value
|
||||
func (o *ListUserResponse) SetUsers(v ListUserResponseGetUsersRetType) {
|
||||
setListUserResponseGetUsersAttributeType(&o.Users, v)
|
||||
}
|
||||
|
||||
func (o ListUserResponse) ToMap() (map[string]interface{}, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if val, ok := getListUserResponseGetPaginationAttributeTypeOk(o.Pagination); ok {
|
||||
toSerialize["Pagination"] = val
|
||||
}
|
||||
if val, ok := getListUserResponseGetUsersAttributeTypeOk(o.Users); ok {
|
||||
toSerialize["Users"] = val
|
||||
}
|
||||
return toSerialize, nil
|
||||
}
|
||||
|
||||
type NullableListUserResponse struct {
|
||||
value *ListUserResponse
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableListUserResponse) Get() *ListUserResponse {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableListUserResponse) Set(val *ListUserResponse) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableListUserResponse) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableListUserResponse) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableListUserResponse(val *ListUserResponse) *NullableListUserResponse {
|
||||
return &NullableListUserResponse{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableListUserResponse) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableListUserResponse) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue