udpate openapi spec

This commit is contained in:
2026-08-04 15:28:33 +02:00
parent e4acb6918a
commit fa7835c7e6
32 changed files with 2946 additions and 229 deletions

View File

@@ -22,9 +22,11 @@ var _ MappedNullable = &AccessAuthorizationResponse{}
// AccessAuthorizationResponse struct for AccessAuthorizationResponse
type AccessAuthorizationResponse struct {
Name string `json:"name"`
Type string `json:"type"`
IsActive bool `json:"is_active"`
Id int32 `json:"id"`
Timetables []Timetable `json:"timetables"`
Timetables []Timetable `json:"timetables,omitempty"`
Oneshot NullableOneShotAccessBase `json:"oneshot,omitempty"`
Groups []GroupDB `json:"groups"`
}
@@ -34,12 +36,12 @@ type _AccessAuthorizationResponse AccessAuthorizationResponse
// 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 NewAccessAuthorizationResponse(name string, isActive bool, id int32, timetables []Timetable, groups []GroupDB) *AccessAuthorizationResponse {
func NewAccessAuthorizationResponse(name string, type_ string, isActive bool, id int32, groups []GroupDB) *AccessAuthorizationResponse {
this := AccessAuthorizationResponse{}
this.Name = name
this.Type = type_
this.IsActive = isActive
this.Id = id
this.Timetables = timetables
this.Groups = groups
return &this
}
@@ -76,6 +78,30 @@ func (o *AccessAuthorizationResponse) SetName(v string) {
o.Name = v
}
// GetType returns the Type field value
func (o *AccessAuthorizationResponse) GetType() string {
if o == nil {
var ret string
return ret
}
return o.Type
}
// GetTypeOk returns a tuple with the Type field value
// and a boolean to check if the value has been set.
func (o *AccessAuthorizationResponse) GetTypeOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.Type, true
}
// SetType sets field value
func (o *AccessAuthorizationResponse) SetType(v string) {
o.Type = v
}
// GetIsActive returns the IsActive field value
func (o *AccessAuthorizationResponse) GetIsActive() bool {
if o == nil {
@@ -124,30 +150,80 @@ func (o *AccessAuthorizationResponse) SetId(v int32) {
o.Id = v
}
// GetTimetables returns the Timetables field value
// GetTimetables returns the Timetables field value if set, zero value otherwise.
func (o *AccessAuthorizationResponse) GetTimetables() []Timetable {
if o == nil {
if o == nil || IsNil(o.Timetables) {
var ret []Timetable
return ret
}
return o.Timetables
}
// GetTimetablesOk returns a tuple with the Timetables field value
// GetTimetablesOk returns a tuple with the Timetables field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AccessAuthorizationResponse) GetTimetablesOk() ([]Timetable, bool) {
if o == nil {
if o == nil || IsNil(o.Timetables) {
return nil, false
}
return o.Timetables, true
}
// SetTimetables sets field value
// HasTimetables returns a boolean if a field has been set.
func (o *AccessAuthorizationResponse) HasTimetables() bool {
if o != nil && !IsNil(o.Timetables) {
return true
}
return false
}
// SetTimetables gets a reference to the given []Timetable and assigns it to the Timetables field.
func (o *AccessAuthorizationResponse) SetTimetables(v []Timetable) {
o.Timetables = v
}
// GetOneshot returns the Oneshot field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *AccessAuthorizationResponse) GetOneshot() OneShotAccessBase {
if o == nil || IsNil(o.Oneshot.Get()) {
var ret OneShotAccessBase
return ret
}
return *o.Oneshot.Get()
}
// GetOneshotOk returns a tuple with the Oneshot field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *AccessAuthorizationResponse) GetOneshotOk() (*OneShotAccessBase, bool) {
if o == nil {
return nil, false
}
return o.Oneshot.Get(), o.Oneshot.IsSet()
}
// HasOneshot returns a boolean if a field has been set.
func (o *AccessAuthorizationResponse) HasOneshot() bool {
if o != nil && o.Oneshot.IsSet() {
return true
}
return false
}
// SetOneshot gets a reference to the given NullableOneShotAccessBase and assigns it to the Oneshot field.
func (o *AccessAuthorizationResponse) SetOneshot(v OneShotAccessBase) {
o.Oneshot.Set(&v)
}
// SetOneshotNil sets the value for Oneshot to be an explicit nil
func (o *AccessAuthorizationResponse) SetOneshotNil() {
o.Oneshot.Set(nil)
}
// UnsetOneshot ensures that no value is present for Oneshot, not even an explicit nil
func (o *AccessAuthorizationResponse) UnsetOneshot() {
o.Oneshot.Unset()
}
// GetGroups returns the Groups field value
func (o *AccessAuthorizationResponse) GetGroups() []GroupDB {
if o == nil {
@@ -183,9 +259,15 @@ func (o AccessAuthorizationResponse) MarshalJSON() ([]byte, error) {
func (o AccessAuthorizationResponse) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
toSerialize["name"] = o.Name
toSerialize["type"] = o.Type
toSerialize["is_active"] = o.IsActive
toSerialize["id"] = o.Id
toSerialize["timetables"] = o.Timetables
if !IsNil(o.Timetables) {
toSerialize["timetables"] = o.Timetables
}
if o.Oneshot.IsSet() {
toSerialize["oneshot"] = o.Oneshot.Get()
}
toSerialize["groups"] = o.Groups
return toSerialize, nil
}
@@ -196,9 +278,9 @@ func (o *AccessAuthorizationResponse) UnmarshalJSON(data []byte) (err error) {
// that every required field exists as a key in the generic map.
requiredProperties := []string{
"name",
"type",
"is_active",
"id",
"timetables",
"groups",
}