From 891f6869005305cd8130088cec1d7e43fbdef0b9 Mon Sep 17 00:00:00 2001 From: rkodev <43806892+rkodev@users.noreply.github.com> Date: Fri, 10 Nov 2023 11:31:23 +0300 Subject: [PATCH] fix build --- CHANGELOG.md | 6 + models/admin.go | 909 ++++++++++++++++++++++------------------ models/admin_windows.go | 75 ---- 3 files changed, 514 insertions(+), 476 deletions(-) delete mode 100644 models/admin_windows.go diff --git a/CHANGELOG.md b/CHANGELOG.md index 17141274be8..b117b147d11 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed +## [0.86.0]- 2023-11-10 + +### Changed + +- Weekly generation. + ## [0.85.0]- 2023-10-31 ### Changed diff --git a/models/admin.go b/models/admin.go index 878f03acbdd..27b83ede10b 100644 --- a/models/admin.go +++ b/models/admin.go @@ -1,470 +1,577 @@ package models import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" ) -// Admin +// Admin type Admin struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } + // NewAdmin instantiates a new admin and sets the default values. -func NewAdmin()(*Admin) { - m := &Admin{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m +func NewAdmin() *Admin { + m := &Admin{} + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance() + m.SetAdditionalData(make(map[string]any)) + return m } + // CreateAdminFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -func CreateAdminFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewAdmin(), nil +func CreateAdminFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewAdmin(), nil } + // GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *Admin) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) +func (m *Admin) GetAdditionalData() map[string]any { + val, err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any) + m.SetAdditionalData(value) + } + return val.(map[string]any) } + // GetAppsAndServices gets the appsAndServices property value. The appsAndServices property -func (m *Admin) GetAppsAndServices()(AdminAppsAndServicesable) { - val, err := m.GetBackingStore().Get("appsAndServices") - if err != nil { - panic(err) - } - if val != nil { - return val.(AdminAppsAndServicesable) - } - return nil +func (m *Admin) GetAppsAndServices() AdminAppsAndServicesable { + val, err := m.GetBackingStore().Get("appsAndServices") + if err != nil { + panic(err) + } + if val != nil { + return val.(AdminAppsAndServicesable) + } + return nil } + // GetBackingStore gets the BackingStore property value. Stores model information. -func (m *Admin) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore +func (m *Admin) GetBackingStore() ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore { + return m.backingStore } + // GetDynamics gets the dynamics property value. The dynamics property -func (m *Admin) GetDynamics()(AdminDynamicsable) { - val, err := m.GetBackingStore().Get("dynamics") - if err != nil { - panic(err) - } - if val != nil { - return val.(AdminDynamicsable) - } - return nil +func (m *Admin) GetDynamics() AdminDynamicsable { + val, err := m.GetBackingStore().Get("dynamics") + if err != nil { + panic(err) + } + if val != nil { + return val.(AdminDynamicsable) + } + return nil } + // GetEdge gets the edge property value. A container for Microsoft Edge resources. Read-only. -func (m *Admin) GetEdge()(Edgeable) { - val, err := m.GetBackingStore().Get("edge") - if err != nil { - panic(err) - } - if val != nil { - return val.(Edgeable) - } - return nil +func (m *Admin) GetEdge() Edgeable { + val, err := m.GetBackingStore().Get("edge") + if err != nil { + panic(err) + } + if val != nil { + return val.(Edgeable) + } + return nil } + // GetFieldDeserializers the deserialization information for the current model -func (m *Admin) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["appsAndServices"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(CreateAdminAppsAndServicesFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetAppsAndServices(val.(AdminAppsAndServicesable)) - } - return nil - } - res["dynamics"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(CreateAdminDynamicsFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetDynamics(val.(AdminDynamicsable)) - } - return nil - } - res["edge"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(CreateEdgeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetEdge(val.(Edgeable)) - } - return nil - } - res["forms"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(CreateAdminFormsFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetForms(val.(AdminFormsable)) - } - return nil - } - res["@odata.type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetOdataType(val) - } - return nil - } - res["people"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(CreatePeopleAdminSettingsFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetPeople(val.(PeopleAdminSettingsable)) - } - return nil - } - res["reportSettings"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(CreateAdminReportSettingsFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetReportSettings(val.(AdminReportSettingsable)) - } - return nil - } - res["serviceAnnouncement"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(CreateServiceAnnouncementFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetServiceAnnouncement(val.(ServiceAnnouncementable)) - } - return nil - } - res["sharepoint"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(CreateSharepointFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetSharepoint(val.(Sharepointable)) - } - return nil - } - res["todo"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(CreateAdminTodoFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetTodo(val.(AdminTodoable)) - } - return nil - } - res["windows"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(CreateAdminWindowsFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetWindows(val.(AdminWindowsable)) - } - return nil - } - return res +func (m *Admin) GetFieldDeserializers() map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error) + res["appsAndServices"] = func(n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateAdminAppsAndServicesFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetAppsAndServices(val.(AdminAppsAndServicesable)) + } + return nil + } + res["dynamics"] = func(n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateAdminDynamicsFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetDynamics(val.(AdminDynamicsable)) + } + return nil + } + res["edge"] = func(n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateEdgeFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetEdge(val.(Edgeable)) + } + return nil + } + res["forms"] = func(n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateAdminFormsFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetForms(val.(AdminFormsable)) + } + return nil + } + res["@odata.type"] = func(n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetOdataType(val) + } + return nil + } + res["people"] = func(n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreatePeopleAdminSettingsFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetPeople(val.(PeopleAdminSettingsable)) + } + return nil + } + res["reportSettings"] = func(n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateAdminReportSettingsFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetReportSettings(val.(AdminReportSettingsable)) + } + return nil + } + res["serviceAnnouncement"] = func(n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateServiceAnnouncementFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetServiceAnnouncement(val.(ServiceAnnouncementable)) + } + return nil + } + res["sharepoint"] = func(n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateSharepointFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetSharepoint(val.(Sharepointable)) + } + return nil + } + res["todo"] = func(n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateAdminTodoFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetTodo(val.(AdminTodoable)) + } + return nil + } + res["windows"] = func(n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateAdminWindowsFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetWindows(val.(AdminWindowsable)) + } + return nil + } + return res } + // GetForms gets the forms property value. The forms property -func (m *Admin) GetForms()(AdminFormsable) { - val, err := m.GetBackingStore().Get("forms") - if err != nil { - panic(err) - } - if val != nil { - return val.(AdminFormsable) - } - return nil +func (m *Admin) GetForms() AdminFormsable { + val, err := m.GetBackingStore().Get("forms") + if err != nil { + panic(err) + } + if val != nil { + return val.(AdminFormsable) + } + return nil } + // GetOdataType gets the @odata.type property value. The OdataType property -func (m *Admin) GetOdataType()(*string) { - val, err := m.GetBackingStore().Get("odataType") - if err != nil { - panic(err) - } - if val != nil { - return val.(*string) - } - return nil +func (m *Admin) GetOdataType() *string { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil } + // GetPeople gets the people property value. Represents a setting to control people-related admin settings in the tenant. -func (m *Admin) GetPeople()(PeopleAdminSettingsable) { - val, err := m.GetBackingStore().Get("people") - if err != nil { - panic(err) - } - if val != nil { - return val.(PeopleAdminSettingsable) - } - return nil +func (m *Admin) GetPeople() PeopleAdminSettingsable { + val, err := m.GetBackingStore().Get("people") + if err != nil { + panic(err) + } + if val != nil { + return val.(PeopleAdminSettingsable) + } + return nil } + // GetReportSettings gets the reportSettings property value. A container for administrative resources to manage reports. -func (m *Admin) GetReportSettings()(AdminReportSettingsable) { - val, err := m.GetBackingStore().Get("reportSettings") - if err != nil { - panic(err) - } - if val != nil { - return val.(AdminReportSettingsable) - } - return nil +func (m *Admin) GetReportSettings() AdminReportSettingsable { + val, err := m.GetBackingStore().Get("reportSettings") + if err != nil { + panic(err) + } + if val != nil { + return val.(AdminReportSettingsable) + } + return nil } + // GetServiceAnnouncement gets the serviceAnnouncement property value. A container for service communications resources. Read-only. -func (m *Admin) GetServiceAnnouncement()(ServiceAnnouncementable) { - val, err := m.GetBackingStore().Get("serviceAnnouncement") - if err != nil { - panic(err) - } - if val != nil { - return val.(ServiceAnnouncementable) - } - return nil +func (m *Admin) GetServiceAnnouncement() ServiceAnnouncementable { + val, err := m.GetBackingStore().Get("serviceAnnouncement") + if err != nil { + panic(err) + } + if val != nil { + return val.(ServiceAnnouncementable) + } + return nil } + // GetSharepoint gets the sharepoint property value. The sharepoint property -func (m *Admin) GetSharepoint()(Sharepointable) { - val, err := m.GetBackingStore().Get("sharepoint") - if err != nil { - panic(err) - } - if val != nil { - return val.(Sharepointable) - } - return nil +func (m *Admin) GetSharepoint() Sharepointable { + val, err := m.GetBackingStore().Get("sharepoint") + if err != nil { + panic(err) + } + if val != nil { + return val.(Sharepointable) + } + return nil } + // GetTodo gets the todo property value. The todo property -func (m *Admin) GetTodo()(AdminTodoable) { - val, err := m.GetBackingStore().Get("todo") - if err != nil { - panic(err) - } - if val != nil { - return val.(AdminTodoable) - } - return nil +func (m *Admin) GetTodo() AdminTodoable { + val, err := m.GetBackingStore().Get("todo") + if err != nil { + panic(err) + } + if val != nil { + return val.(AdminTodoable) + } + return nil } + // GetWindows gets the windows property value. A container for all Windows administrator functionalities. Read-only. -func (m *Admin) GetWindows()(AdminWindowsable) { - val, err := m.GetBackingStore().Get("windows") - if err != nil { - panic(err) - } - if val != nil { - return val.(AdminWindowsable) - } - return nil +func (m *Admin) GetWindows() AdminWindowsable { + val, err := m.GetBackingStore().Get("windows") + if err != nil { + panic(err) + } + if val != nil { + return val.(AdminWindowsable) + } + return nil } + // Serialize serializes information the current object -func (m *Admin) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("appsAndServices", m.GetAppsAndServices()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("dynamics", m.GetDynamics()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("edge", m.GetEdge()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("forms", m.GetForms()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("@odata.type", m.GetOdataType()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("people", m.GetPeople()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("reportSettings", m.GetReportSettings()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("serviceAnnouncement", m.GetServiceAnnouncement()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("sharepoint", m.GetSharepoint()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("todo", m.GetTodo()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("windows", m.GetWindows()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil +func (m *Admin) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter) error { + { + err := writer.WriteObjectValue("appsAndServices", m.GetAppsAndServices()) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("dynamics", m.GetDynamics()) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("edge", m.GetEdge()) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("forms", m.GetForms()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("people", m.GetPeople()) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("reportSettings", m.GetReportSettings()) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("serviceAnnouncement", m.GetServiceAnnouncement()) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("sharepoint", m.GetSharepoint()) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("todo", m.GetTodo()) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("windows", m.GetWindows()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil } + // SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *Admin) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } +func (m *Admin) SetAdditionalData(value map[string]any) { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } } + // SetAppsAndServices sets the appsAndServices property value. The appsAndServices property -func (m *Admin) SetAppsAndServices(value AdminAppsAndServicesable)() { - err := m.GetBackingStore().Set("appsAndServices", value) - if err != nil { - panic(err) - } +func (m *Admin) SetAppsAndServices(value AdminAppsAndServicesable) { + err := m.GetBackingStore().Set("appsAndServices", value) + if err != nil { + panic(err) + } } + // SetBackingStore sets the BackingStore property value. Stores model information. -func (m *Admin) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value +func (m *Admin) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + m.backingStore = value } + // SetDynamics sets the dynamics property value. The dynamics property -func (m *Admin) SetDynamics(value AdminDynamicsable)() { - err := m.GetBackingStore().Set("dynamics", value) - if err != nil { - panic(err) - } +func (m *Admin) SetDynamics(value AdminDynamicsable) { + err := m.GetBackingStore().Set("dynamics", value) + if err != nil { + panic(err) + } } + // SetEdge sets the edge property value. A container for Microsoft Edge resources. Read-only. -func (m *Admin) SetEdge(value Edgeable)() { - err := m.GetBackingStore().Set("edge", value) - if err != nil { - panic(err) - } +func (m *Admin) SetEdge(value Edgeable) { + err := m.GetBackingStore().Set("edge", value) + if err != nil { + panic(err) + } } + // SetForms sets the forms property value. The forms property -func (m *Admin) SetForms(value AdminFormsable)() { - err := m.GetBackingStore().Set("forms", value) - if err != nil { - panic(err) - } +func (m *Admin) SetForms(value AdminFormsable) { + err := m.GetBackingStore().Set("forms", value) + if err != nil { + panic(err) + } } + // SetOdataType sets the @odata.type property value. The OdataType property -func (m *Admin) SetOdataType(value *string)() { - err := m.GetBackingStore().Set("odataType", value) - if err != nil { - panic(err) - } +func (m *Admin) SetOdataType(value *string) { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } } + // SetPeople sets the people property value. Represents a setting to control people-related admin settings in the tenant. -func (m *Admin) SetPeople(value PeopleAdminSettingsable)() { - err := m.GetBackingStore().Set("people", value) - if err != nil { - panic(err) - } +func (m *Admin) SetPeople(value PeopleAdminSettingsable) { + err := m.GetBackingStore().Set("people", value) + if err != nil { + panic(err) + } } + // SetReportSettings sets the reportSettings property value. A container for administrative resources to manage reports. -func (m *Admin) SetReportSettings(value AdminReportSettingsable)() { - err := m.GetBackingStore().Set("reportSettings", value) - if err != nil { - panic(err) - } +func (m *Admin) SetReportSettings(value AdminReportSettingsable) { + err := m.GetBackingStore().Set("reportSettings", value) + if err != nil { + panic(err) + } } + // SetServiceAnnouncement sets the serviceAnnouncement property value. A container for service communications resources. Read-only. -func (m *Admin) SetServiceAnnouncement(value ServiceAnnouncementable)() { - err := m.GetBackingStore().Set("serviceAnnouncement", value) - if err != nil { - panic(err) - } +func (m *Admin) SetServiceAnnouncement(value ServiceAnnouncementable) { + err := m.GetBackingStore().Set("serviceAnnouncement", value) + if err != nil { + panic(err) + } } + // SetSharepoint sets the sharepoint property value. The sharepoint property -func (m *Admin) SetSharepoint(value Sharepointable)() { - err := m.GetBackingStore().Set("sharepoint", value) - if err != nil { - panic(err) - } +func (m *Admin) SetSharepoint(value Sharepointable) { + err := m.GetBackingStore().Set("sharepoint", value) + if err != nil { + panic(err) + } } + // SetTodo sets the todo property value. The todo property -func (m *Admin) SetTodo(value AdminTodoable)() { - err := m.GetBackingStore().Set("todo", value) - if err != nil { - panic(err) - } +func (m *Admin) SetTodo(value AdminTodoable) { + err := m.GetBackingStore().Set("todo", value) + if err != nil { + panic(err) + } } + // SetWindows sets the windows property value. A container for all Windows administrator functionalities. Read-only. -func (m *Admin) SetWindows(value AdminWindowsable)() { - err := m.GetBackingStore().Set("windows", value) - if err != nil { - panic(err) - } +func (m *Admin) SetWindows(value AdminWindowsable) { + err := m.GetBackingStore().Set("windows", value) + if err != nil { + panic(err) + } } -// Adminable + +// Adminable type Adminable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetAppsAndServices()(AdminAppsAndServicesable) - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetDynamics()(AdminDynamicsable) - GetEdge()(Edgeable) - GetForms()(AdminFormsable) - GetOdataType()(*string) - GetPeople()(PeopleAdminSettingsable) - GetReportSettings()(AdminReportSettingsable) - GetServiceAnnouncement()(ServiceAnnouncementable) - GetSharepoint()(Sharepointable) - GetTodo()(AdminTodoable) - GetWindows()(AdminWindowsable) - SetAppsAndServices(value AdminAppsAndServicesable)() - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetDynamics(value AdminDynamicsable)() - SetEdge(value Edgeable)() - SetForms(value AdminFormsable)() - SetOdataType(value *string)() - SetPeople(value PeopleAdminSettingsable)() - SetReportSettings(value AdminReportSettingsable)() - SetServiceAnnouncement(value ServiceAnnouncementable)() - SetSharepoint(value Sharepointable)() - SetTodo(value AdminTodoable)() - SetWindows(value AdminWindowsable)() + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetAppsAndServices() AdminAppsAndServicesable + GetBackingStore() ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore + GetDynamics() AdminDynamicsable + GetEdge() Edgeable + GetForms() AdminFormsable + GetOdataType() *string + GetPeople() PeopleAdminSettingsable + GetReportSettings() AdminReportSettingsable + GetServiceAnnouncement() ServiceAnnouncementable + GetSharepoint() Sharepointable + GetTodo() AdminTodoable + GetWindows() AdminWindowsable + SetAppsAndServices(value AdminAppsAndServicesable) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + SetDynamics(value AdminDynamicsable) + SetEdge(value Edgeable) + SetForms(value AdminFormsable) + SetOdataType(value *string) + SetPeople(value PeopleAdminSettingsable) + SetReportSettings(value AdminReportSettingsable) + SetServiceAnnouncement(value ServiceAnnouncementable) + SetSharepoint(value Sharepointable) + SetTodo(value AdminTodoable) + SetWindows(value AdminWindowsable) +} + +// AdminWindows +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 +func CreateAdminWindowsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewAdminWindows(), nil +} + +// GetFieldDeserializers the deserialization information for the current model +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. +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) + } +} + +// AdminWindowsable +type AdminWindowsable interface { + Entityable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetUpdates() AdminWindowsUpdatesable + SetUpdates(value AdminWindowsUpdatesable) } diff --git a/models/admin_windows.go b/models/admin_windows.go deleted file mode 100644 index cdd938a9b06..00000000000 --- a/models/admin_windows.go +++ /dev/null @@ -1,75 +0,0 @@ -package models - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// AdminWindows -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 -func CreateAdminWindowsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewAdminWindows(), nil -} -// GetFieldDeserializers the deserialization information for the current model -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. -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) - } -} -// AdminWindowsable -type AdminWindowsable interface { - Entityable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetUpdates()(AdminWindowsUpdatesable) - SetUpdates(value AdminWindowsUpdatesable)() -}