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_roles_response.go
Normal file
126
pkg/sqlserverflexalpha/model_list_roles_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 ListRolesResponse type satisfies the MappedNullable interface at compile time
|
||||
var _ MappedNullable = &ListRolesResponse{}
|
||||
|
||||
/*
|
||||
types and functions for roles
|
||||
*/
|
||||
|
||||
// isArray
|
||||
type ListRolesResponseGetRolesAttributeType = *[]UserRole
|
||||
type ListRolesResponseGetRolesArgType = []UserRole
|
||||
type ListRolesResponseGetRolesRetType = []UserRole
|
||||
|
||||
func getListRolesResponseGetRolesAttributeTypeOk(arg ListRolesResponseGetRolesAttributeType) (ret ListRolesResponseGetRolesRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setListRolesResponseGetRolesAttributeType(arg *ListRolesResponseGetRolesAttributeType, val ListRolesResponseGetRolesRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
// ListRolesResponse struct for ListRolesResponse
|
||||
type ListRolesResponse struct {
|
||||
// List of roles available for an instance.
|
||||
// REQUIRED
|
||||
Roles ListRolesResponseGetRolesAttributeType `json:"roles" required:"true"`
|
||||
}
|
||||
|
||||
type _ListRolesResponse ListRolesResponse
|
||||
|
||||
// NewListRolesResponse instantiates a new ListRolesResponse 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 NewListRolesResponse(roles ListRolesResponseGetRolesArgType) *ListRolesResponse {
|
||||
this := ListRolesResponse{}
|
||||
setListRolesResponseGetRolesAttributeType(&this.Roles, roles)
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewListRolesResponseWithDefaults instantiates a new ListRolesResponse 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 NewListRolesResponseWithDefaults() *ListRolesResponse {
|
||||
this := ListRolesResponse{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetRoles returns the Roles field value
|
||||
func (o *ListRolesResponse) GetRoles() (ret ListRolesResponseGetRolesRetType) {
|
||||
ret, _ = o.GetRolesOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetRolesOk returns a tuple with the Roles field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *ListRolesResponse) GetRolesOk() (ret ListRolesResponseGetRolesRetType, ok bool) {
|
||||
return getListRolesResponseGetRolesAttributeTypeOk(o.Roles)
|
||||
}
|
||||
|
||||
// SetRoles sets field value
|
||||
func (o *ListRolesResponse) SetRoles(v ListRolesResponseGetRolesRetType) {
|
||||
setListRolesResponseGetRolesAttributeType(&o.Roles, v)
|
||||
}
|
||||
|
||||
func (o ListRolesResponse) ToMap() (map[string]interface{}, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if val, ok := getListRolesResponseGetRolesAttributeTypeOk(o.Roles); ok {
|
||||
toSerialize["Roles"] = val
|
||||
}
|
||||
return toSerialize, nil
|
||||
}
|
||||
|
||||
type NullableListRolesResponse struct {
|
||||
value *ListRolesResponse
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableListRolesResponse) Get() *ListRolesResponse {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableListRolesResponse) Set(val *ListRolesResponse) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableListRolesResponse) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableListRolesResponse) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableListRolesResponse(val *ListRolesResponse) *NullableListRolesResponse {
|
||||
return &NullableListRolesResponse{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableListRolesResponse) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableListRolesResponse) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue