/
githubmirror
/
origin
Обзор
Документация
Войти
/
githubmirror
/
origin
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
vendor/github.com/microsoftgraph/msgraph-sdk-go/models/scheduling_group.go
192 строки
7 KB
Justin Pierce
Add compat_otp package with openshift-tests-private (OTP) util implementations
11 авг 2025, 18:00
11 авг 2025, 18:00
80ac5c1
Код
Авторство
О чём код?
// Code generated by Microsoft Kiota - DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. package models import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) type SchedulingGroup struct { ChangeTrackedEntity } // NewSchedulingGroup instantiates a new SchedulingGroup and sets the default values. func NewSchedulingGroup()(*SchedulingGroup) { m := &SchedulingGroup{ ChangeTrackedEntity: *NewChangeTrackedEntity(), } odataTypeValue := "#microsoft.graph.schedulingGroup" m.SetOdataType(&odataTypeValue) return m } // CreateSchedulingGroupFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value // returns a Parsable when successful func CreateSchedulingGroupFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewSchedulingGroup(), nil } // GetCode gets the code property value. The code for the schedulingGroup to represent an external identifier. This field must be unique within the team in Microsoft Teams and uses an alphanumeric format, with a maximum of 100 characters. // returns a *string when successful func (m *SchedulingGroup) GetCode()(*string) { val, err := m.GetBackingStore().Get("code") if err != nil { panic(err) } if val != nil { return val.(*string) } return nil } // GetDisplayName gets the displayName property value. The display name for the schedulingGroup. Required. // returns a *string when successful func (m *SchedulingGroup) GetDisplayName()(*string) { val, err := m.GetBackingStore().Get("displayName") if err != nil { panic(err) } if val != nil { return val.(*string) } return nil } // GetFieldDeserializers the deserialization information for the current model // returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful func (m *SchedulingGroup) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.ChangeTrackedEntity.GetFieldDeserializers() res["code"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { return err } if val != nil { m.SetCode(val) } return nil } res["displayName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { return err } if val != nil { m.SetDisplayName(val) } return nil } res["isActive"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetBoolValue() if err != nil { return err } if val != nil { m.SetIsActive(val) } return nil } res["userIds"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetCollectionOfPrimitiveValues("string") if err != nil { return err } if val != nil { res := make([]string, len(val)) for i, v := range val { if v != nil { res[i] = *(v.(*string)) } } m.SetUserIds(res) } return nil } return res } // GetIsActive gets the isActive property value. Indicates whether the schedulingGroup can be used when creating new entities or updating existing ones. Required. // returns a *bool when successful func (m *SchedulingGroup) GetIsActive()(*bool) { val, err := m.GetBackingStore().Get("isActive") if err != nil { panic(err) } if val != nil { return val.(*bool) } return nil } // GetUserIds gets the userIds property value. The list of user IDs that are a member of the schedulingGroup. Required. // returns a []string when successful func (m *SchedulingGroup) GetUserIds()([]string) { val, err := m.GetBackingStore().Get("userIds") if err != nil { panic(err) } if val != nil { return val.([]string) } return nil } // Serialize serializes information the current object func (m *SchedulingGroup) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.ChangeTrackedEntity.Serialize(writer) if err != nil { return err } { err = writer.WriteStringValue("code", m.GetCode()) if err != nil { return err } } { err = writer.WriteStringValue("displayName", m.GetDisplayName()) if err != nil { return err } } if m.GetUserIds() != nil { err = writer.WriteCollectionOfStringValues("userIds", m.GetUserIds()) if err != nil { return err } } return nil } // SetCode sets the code property value. The code for the schedulingGroup to represent an external identifier. This field must be unique within the team in Microsoft Teams and uses an alphanumeric format, with a maximum of 100 characters. func (m *SchedulingGroup) SetCode(value *string)() { err := m.GetBackingStore().Set("code", value) if err != nil { panic(err) } } // SetDisplayName sets the displayName property value. The display name for the schedulingGroup. Required. func (m *SchedulingGroup) SetDisplayName(value *string)() { err := m.GetBackingStore().Set("displayName", value) if err != nil { panic(err) } } // SetIsActive sets the isActive property value. Indicates whether the schedulingGroup can be used when creating new entities or updating existing ones. Required. func (m *SchedulingGroup) SetIsActive(value *bool)() { err := m.GetBackingStore().Set("isActive", value) if err != nil { panic(err) } } // SetUserIds sets the userIds property value. The list of user IDs that are a member of the schedulingGroup. Required. func (m *SchedulingGroup) SetUserIds(value []string)() { err := m.GetBackingStore().Set("userIds", value) if err != nil { panic(err) } } type SchedulingGroupable interface { ChangeTrackedEntityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetCode()(*string) GetDisplayName()(*string) GetIsActive()(*bool) GetUserIds()([]string) SetCode(value *string)() SetDisplayName(value *string)() SetIsActive(value *bool)() SetUserIds(value []string)() }