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,8 +22,10 @@ var _ MappedNullable = &AccessAuthorizationCreate{}
// AccessAuthorizationCreate struct for AccessAuthorizationCreate
type AccessAuthorizationCreate struct {
Name string `json:"name"`
Type string `json:"type"`
IsActive bool `json:"is_active"`
Timetables []TimetableCreate `json:"timetables"`
Timetables []TimetableCreate `json:"timetables,omitempty"`
Oneshot NullableOneShotAccessBase `json:"oneshot,omitempty"`
}
type _AccessAuthorizationCreate AccessAuthorizationCreate
@@ -32,11 +34,11 @@ type _AccessAuthorizationCreate AccessAuthorizationCreate
// 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 NewAccessAuthorizationCreate(name string, isActive bool, timetables []TimetableCreate) *AccessAuthorizationCreate {
func NewAccessAuthorizationCreate(name string, type_ string, isActive bool) *AccessAuthorizationCreate {
this := AccessAuthorizationCreate{}
this.Name = name
this.Type = type_
this.IsActive = isActive
this.Timetables = timetables
return &this
}
@@ -72,6 +74,30 @@ func (o *AccessAuthorizationCreate) SetName(v string) {
o.Name = v
}
// GetType returns the Type field value
func (o *AccessAuthorizationCreate) 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 *AccessAuthorizationCreate) GetTypeOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.Type, true
}
// SetType sets field value
func (o *AccessAuthorizationCreate) SetType(v string) {
o.Type = v
}
// GetIsActive returns the IsActive field value
func (o *AccessAuthorizationCreate) GetIsActive() bool {
if o == nil {
@@ -96,30 +122,80 @@ func (o *AccessAuthorizationCreate) SetIsActive(v bool) {
o.IsActive = v
}
// GetTimetables returns the Timetables field value
// GetTimetables returns the Timetables field value if set, zero value otherwise.
func (o *AccessAuthorizationCreate) GetTimetables() []TimetableCreate {
if o == nil {
if o == nil || IsNil(o.Timetables) {
var ret []TimetableCreate
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 *AccessAuthorizationCreate) GetTimetablesOk() ([]TimetableCreate, 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 *AccessAuthorizationCreate) HasTimetables() bool {
if o != nil && !IsNil(o.Timetables) {
return true
}
return false
}
// SetTimetables gets a reference to the given []TimetableCreate and assigns it to the Timetables field.
func (o *AccessAuthorizationCreate) SetTimetables(v []TimetableCreate) {
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 *AccessAuthorizationCreate) 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 *AccessAuthorizationCreate) 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 *AccessAuthorizationCreate) 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 *AccessAuthorizationCreate) SetOneshot(v OneShotAccessBase) {
o.Oneshot.Set(&v)
}
// SetOneshotNil sets the value for Oneshot to be an explicit nil
func (o *AccessAuthorizationCreate) SetOneshotNil() {
o.Oneshot.Set(nil)
}
// UnsetOneshot ensures that no value is present for Oneshot, not even an explicit nil
func (o *AccessAuthorizationCreate) UnsetOneshot() {
o.Oneshot.Unset()
}
func (o AccessAuthorizationCreate) MarshalJSON() ([]byte, error) {
toSerialize,err := o.ToMap()
if err != nil {
@@ -131,8 +207,14 @@ func (o AccessAuthorizationCreate) MarshalJSON() ([]byte, error) {
func (o AccessAuthorizationCreate) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
toSerialize["name"] = o.Name
toSerialize["type"] = o.Type
toSerialize["is_active"] = o.IsActive
toSerialize["timetables"] = o.Timetables
if !IsNil(o.Timetables) {
toSerialize["timetables"] = o.Timetables
}
if o.Oneshot.IsSet() {
toSerialize["oneshot"] = o.Oneshot.Get()
}
return toSerialize, nil
}
@@ -142,8 +224,8 @@ func (o *AccessAuthorizationCreate) UnmarshalJSON(data []byte) (err error) {
// that every required field exists as a key in the generic map.
requiredProperties := []string{
"name",
"type",
"is_active",
"timetables",
}
allProperties := make(map[string]interface{})