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

@@ -20,8 +20,10 @@ var _ MappedNullable = &AccessAuthorizationUpdate{}
// AccessAuthorizationUpdate struct for AccessAuthorizationUpdate
type AccessAuthorizationUpdate struct {
Name NullableString `json:"name,omitempty"`
Type NullableString `json:"type,omitempty"`
IsActive NullableBool `json:"is_active,omitempty"`
Timetables []TimetableCreate `json:"timetables,omitempty"`
Oneshot NullableOneShotAccessBase `json:"oneshot,omitempty"`
}
// NewAccessAuthorizationUpdate instantiates a new AccessAuthorizationUpdate object
@@ -83,6 +85,48 @@ func (o *AccessAuthorizationUpdate) UnsetName() {
o.Name.Unset()
}
// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *AccessAuthorizationUpdate) GetType() string {
if o == nil || IsNil(o.Type.Get()) {
var ret string
return ret
}
return *o.Type.Get()
}
// GetTypeOk returns a tuple with the Type 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 *AccessAuthorizationUpdate) GetTypeOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.Type.Get(), o.Type.IsSet()
}
// HasType returns a boolean if a field has been set.
func (o *AccessAuthorizationUpdate) HasType() bool {
if o != nil && o.Type.IsSet() {
return true
}
return false
}
// SetType gets a reference to the given NullableString and assigns it to the Type field.
func (o *AccessAuthorizationUpdate) SetType(v string) {
o.Type.Set(&v)
}
// SetTypeNil sets the value for Type to be an explicit nil
func (o *AccessAuthorizationUpdate) SetTypeNil() {
o.Type.Set(nil)
}
// UnsetType ensures that no value is present for Type, not even an explicit nil
func (o *AccessAuthorizationUpdate) UnsetType() {
o.Type.Unset()
}
// GetIsActive returns the IsActive field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *AccessAuthorizationUpdate) GetIsActive() bool {
if o == nil || IsNil(o.IsActive.Get()) {
@@ -158,6 +202,48 @@ func (o *AccessAuthorizationUpdate) 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 *AccessAuthorizationUpdate) 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 *AccessAuthorizationUpdate) 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 *AccessAuthorizationUpdate) 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 *AccessAuthorizationUpdate) SetOneshot(v OneShotAccessBase) {
o.Oneshot.Set(&v)
}
// SetOneshotNil sets the value for Oneshot to be an explicit nil
func (o *AccessAuthorizationUpdate) SetOneshotNil() {
o.Oneshot.Set(nil)
}
// UnsetOneshot ensures that no value is present for Oneshot, not even an explicit nil
func (o *AccessAuthorizationUpdate) UnsetOneshot() {
o.Oneshot.Unset()
}
func (o AccessAuthorizationUpdate) MarshalJSON() ([]byte, error) {
toSerialize,err := o.ToMap()
if err != nil {
@@ -171,12 +257,18 @@ func (o AccessAuthorizationUpdate) ToMap() (map[string]interface{}, error) {
if o.Name.IsSet() {
toSerialize["name"] = o.Name.Get()
}
if o.Type.IsSet() {
toSerialize["type"] = o.Type.Get()
}
if o.IsActive.IsSet() {
toSerialize["is_active"] = o.IsActive.Get()
}
if o.Timetables != nil {
toSerialize["timetables"] = o.Timetables
}
if o.Oneshot.IsSet() {
toSerialize["oneshot"] = o.Oneshot.Get()
}
return toSerialize, nil
}