Skip to content

Commit

Permalink
- fixes build
Browse files Browse the repository at this point in the history
  • Loading branch information
baywet committed Apr 17, 2024
1 parent 1b465af commit 010d5f1
Show file tree
Hide file tree
Showing 4 changed files with 327 additions and 337 deletions.
71 changes: 71 additions & 0 deletions models/admin.go
Original file line number Diff line number Diff line change
Expand Up @@ -518,3 +518,74 @@ type Adminable interface {
SetTodo(value AdminTodoable)()
SetWindows(value AdminWindowsable)()
}

type AdminWindows struct {
Entity
}
// NewAdminWindows instantiates a new AdminWindows and sets the default values.
func NewAdminWindows()(*AdminWindows) {
m := &AdminWindows{
Entity: *NewEntity(),
}
return m
}
// CreateAdminWindowsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
// returns a Parsable when successful
func CreateAdminWindowsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
return NewAdminWindows(), nil
}
// GetFieldDeserializers the deserialization information for the current model
// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful
func (m *AdminWindows) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
res := m.Entity.GetFieldDeserializers()
res["updates"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetObjectValue(CreateAdminWindowsUpdatesFromDiscriminatorValue)
if err != nil {
return err
}
if val != nil {
m.SetUpdates(val.(AdminWindowsUpdatesable))
}
return nil
}
return res
}
// GetUpdates gets the updates property value. Entity that acts as a container for all Windows Update for Business deployment service functionalities. Read-only.
// returns a AdminWindowsUpdatesable when successful
func (m *AdminWindows) GetUpdates()(AdminWindowsUpdatesable) {
val, err := m.GetBackingStore().Get("updates")
if err != nil {
panic(err)
}
if val != nil {
return val.(AdminWindowsUpdatesable)
}
return nil
}
// Serialize serializes information the current object
func (m *AdminWindows) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
err := m.Entity.Serialize(writer)
if err != nil {
return err
}
{
err = writer.WriteObjectValue("updates", m.GetUpdates())
if err != nil {
return err
}
}
return nil
}
// SetUpdates sets the updates property value. Entity that acts as a container for all Windows Update for Business deployment service functionalities. Read-only.
func (m *AdminWindows) SetUpdates(value AdminWindowsUpdatesable)() {
err := m.GetBackingStore().Set("updates", value)
if err != nil {
panic(err)
}
}
type AdminWindowsable interface {
Entityable
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
GetUpdates()(AdminWindowsUpdatesable)
SetUpdates(value AdminWindowsUpdatesable)()
}
76 changes: 0 additions & 76 deletions models/admin_windows.go

This file was deleted.

Loading

0 comments on commit 010d5f1

Please sign in to comment.