/
githubmirror
/
origin
Обзор
Документация
Войти
/
githubmirror
/
origin
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
vendor/github.com/microsoftgraph/msgraph-sdk-go/models/calendar.go
776 строк
30 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 Calendar struct { Entity } // NewCalendar instantiates a new Calendar and sets the default values. func NewCalendar()(*Calendar) { m := &Calendar{ Entity: *NewEntity(), } return m } // CreateCalendarFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value // returns a Parsable when successful func CreateCalendarFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewCalendar(), nil } // GetAllowedOnlineMeetingProviders gets the allowedOnlineMeetingProviders property value. Represent the online meeting service providers that can be used to create online meetings in this calendar. Possible values are: unknown, skypeForBusiness, skypeForConsumer, teamsForBusiness. // returns a []OnlineMeetingProviderType when successful func (m *Calendar) GetAllowedOnlineMeetingProviders()([]OnlineMeetingProviderType) { val, err := m.GetBackingStore().Get("allowedOnlineMeetingProviders") if err != nil { panic(err) } if val != nil { return val.([]OnlineMeetingProviderType) } return nil } // GetCalendarPermissions gets the calendarPermissions property value. The permissions of the users with whom the calendar is shared. // returns a []CalendarPermissionable when successful func (m *Calendar) GetCalendarPermissions()([]CalendarPermissionable) { val, err := m.GetBackingStore().Get("calendarPermissions") if err != nil { panic(err) } if val != nil { return val.([]CalendarPermissionable) } return nil } // GetCalendarView gets the calendarView property value. The calendar view for the calendar. Navigation property. Read-only. // returns a []Eventable when successful func (m *Calendar) GetCalendarView()([]Eventable) { val, err := m.GetBackingStore().Get("calendarView") if err != nil { panic(err) } if val != nil { return val.([]Eventable) } return nil } // GetCanEdit gets the canEdit property value. true if the user can write to the calendar, false otherwise. This property is true for the user who created the calendar. This property is also true for a user who shared a calendar and granted write access. // returns a *bool when successful func (m *Calendar) GetCanEdit()(*bool) { val, err := m.GetBackingStore().Get("canEdit") if err != nil { panic(err) } if val != nil { return val.(*bool) } return nil } // GetCanShare gets the canShare property value. true if the user has permission to share the calendar, false otherwise. Only the user who created the calendar can share it. // returns a *bool when successful func (m *Calendar) GetCanShare()(*bool) { val, err := m.GetBackingStore().Get("canShare") if err != nil { panic(err) } if val != nil { return val.(*bool) } return nil } // GetCanViewPrivateItems gets the canViewPrivateItems property value. If true, the user can read calendar items that have been marked private, false otherwise. // returns a *bool when successful func (m *Calendar) GetCanViewPrivateItems()(*bool) { val, err := m.GetBackingStore().Get("canViewPrivateItems") if err != nil { panic(err) } if val != nil { return val.(*bool) } return nil } // GetChangeKey gets the changeKey property value. Identifies the version of the calendar object. Every time the calendar is changed, changeKey changes as well. This allows Exchange to apply changes to the correct version of the object. Read-only. // returns a *string when successful func (m *Calendar) GetChangeKey()(*string) { val, err := m.GetBackingStore().Get("changeKey") if err != nil { panic(err) } if val != nil { return val.(*string) } return nil } // GetColor gets the color property value. Specifies the color theme to distinguish the calendar from other calendars in a UI. The property values are: auto, lightBlue, lightGreen, lightOrange, lightGray, lightYellow, lightTeal, lightPink, lightBrown, lightRed, maxColor. // returns a *CalendarColor when successful func (m *Calendar) GetColor()(*CalendarColor) { val, err := m.GetBackingStore().Get("color") if err != nil { panic(err) } if val != nil { return val.(*CalendarColor) } return nil } // GetDefaultOnlineMeetingProvider gets the defaultOnlineMeetingProvider property value. The default online meeting provider for meetings sent from this calendar. Possible values are: unknown, skypeForBusiness, skypeForConsumer, teamsForBusiness. // returns a *OnlineMeetingProviderType when successful func (m *Calendar) GetDefaultOnlineMeetingProvider()(*OnlineMeetingProviderType) { val, err := m.GetBackingStore().Get("defaultOnlineMeetingProvider") if err != nil { panic(err) } if val != nil { return val.(*OnlineMeetingProviderType) } return nil } // GetEvents gets the events property value. The events in the calendar. Navigation property. Read-only. // returns a []Eventable when successful func (m *Calendar) GetEvents()([]Eventable) { val, err := m.GetBackingStore().Get("events") if err != nil { panic(err) } if val != nil { return val.([]Eventable) } return nil } // GetFieldDeserializers the deserialization information for the current model // returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful func (m *Calendar) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.Entity.GetFieldDeserializers() res["allowedOnlineMeetingProviders"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetCollectionOfEnumValues(ParseOnlineMeetingProviderType) if err != nil { return err } if val != nil { res := make([]OnlineMeetingProviderType, len(val)) for i, v := range val { if v != nil { res[i] = *(v.(*OnlineMeetingProviderType)) } } m.SetAllowedOnlineMeetingProviders(res) } return nil } res["calendarPermissions"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetCollectionOfObjectValues(CreateCalendarPermissionFromDiscriminatorValue) if err != nil { return err } if val != nil { res := make([]CalendarPermissionable, len(val)) for i, v := range val { if v != nil { res[i] = v.(CalendarPermissionable) } } m.SetCalendarPermissions(res) } return nil } res["calendarView"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetCollectionOfObjectValues(CreateEventFromDiscriminatorValue) if err != nil { return err } if val != nil { res := make([]Eventable, len(val)) for i, v := range val { if v != nil { res[i] = v.(Eventable) } } m.SetCalendarView(res) } return nil } res["canEdit"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetBoolValue() if err != nil { return err } if val != nil { m.SetCanEdit(val) } return nil } res["canShare"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetBoolValue() if err != nil { return err } if val != nil { m.SetCanShare(val) } return nil } res["canViewPrivateItems"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetBoolValue() if err != nil { return err } if val != nil { m.SetCanViewPrivateItems(val) } return nil } res["changeKey"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { return err } if val != nil { m.SetChangeKey(val) } return nil } res["color"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetEnumValue(ParseCalendarColor) if err != nil { return err } if val != nil { m.SetColor(val.(*CalendarColor)) } return nil } res["defaultOnlineMeetingProvider"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetEnumValue(ParseOnlineMeetingProviderType) if err != nil { return err } if val != nil { m.SetDefaultOnlineMeetingProvider(val.(*OnlineMeetingProviderType)) } return nil } res["events"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetCollectionOfObjectValues(CreateEventFromDiscriminatorValue) if err != nil { return err } if val != nil { res := make([]Eventable, len(val)) for i, v := range val { if v != nil { res[i] = v.(Eventable) } } m.SetEvents(res) } return nil } res["hexColor"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { return err } if val != nil { m.SetHexColor(val) } return nil } res["isDefaultCalendar"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetBoolValue() if err != nil { return err } if val != nil { m.SetIsDefaultCalendar(val) } return nil } res["isRemovable"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetBoolValue() if err != nil { return err } if val != nil { m.SetIsRemovable(val) } return nil } res["isTallyingResponses"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetBoolValue() if err != nil { return err } if val != nil { m.SetIsTallyingResponses(val) } return nil } res["multiValueExtendedProperties"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetCollectionOfObjectValues(CreateMultiValueLegacyExtendedPropertyFromDiscriminatorValue) if err != nil { return err } if val != nil { res := make([]MultiValueLegacyExtendedPropertyable, len(val)) for i, v := range val { if v != nil { res[i] = v.(MultiValueLegacyExtendedPropertyable) } } m.SetMultiValueExtendedProperties(res) } return nil } res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { return err } if val != nil { m.SetName(val) } return nil } res["owner"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetObjectValue(CreateEmailAddressFromDiscriminatorValue) if err != nil { return err } if val != nil { m.SetOwner(val.(EmailAddressable)) } return nil } res["singleValueExtendedProperties"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetCollectionOfObjectValues(CreateSingleValueLegacyExtendedPropertyFromDiscriminatorValue) if err != nil { return err } if val != nil { res := make([]SingleValueLegacyExtendedPropertyable, len(val)) for i, v := range val { if v != nil { res[i] = v.(SingleValueLegacyExtendedPropertyable) } } m.SetSingleValueExtendedProperties(res) } return nil } return res } // GetHexColor gets the hexColor property value. The calendar color, expressed in a hex color code of three hexadecimal values, each ranging from 00 to FF and representing the red, green, or blue components of the color in the RGB color space. If the user has never explicitly set a color for the calendar, this property is empty. Read-only. // returns a *string when successful func (m *Calendar) GetHexColor()(*string) { val, err := m.GetBackingStore().Get("hexColor") if err != nil { panic(err) } if val != nil { return val.(*string) } return nil } // GetIsDefaultCalendar gets the isDefaultCalendar property value. true if this is the default calendar where new events are created by default, false otherwise. // returns a *bool when successful func (m *Calendar) GetIsDefaultCalendar()(*bool) { val, err := m.GetBackingStore().Get("isDefaultCalendar") if err != nil { panic(err) } if val != nil { return val.(*bool) } return nil } // GetIsRemovable gets the isRemovable property value. Indicates whether this user calendar can be deleted from the user mailbox. // returns a *bool when successful func (m *Calendar) GetIsRemovable()(*bool) { val, err := m.GetBackingStore().Get("isRemovable") if err != nil { panic(err) } if val != nil { return val.(*bool) } return nil } // GetIsTallyingResponses gets the isTallyingResponses property value. Indicates whether this user calendar supports tracking of meeting responses. Only meeting invites sent from users' primary calendars support tracking of meeting responses. // returns a *bool when successful func (m *Calendar) GetIsTallyingResponses()(*bool) { val, err := m.GetBackingStore().Get("isTallyingResponses") if err != nil { panic(err) } if val != nil { return val.(*bool) } return nil } // GetMultiValueExtendedProperties gets the multiValueExtendedProperties property value. The collection of multi-value extended properties defined for the calendar. Read-only. Nullable. // returns a []MultiValueLegacyExtendedPropertyable when successful func (m *Calendar) GetMultiValueExtendedProperties()([]MultiValueLegacyExtendedPropertyable) { val, err := m.GetBackingStore().Get("multiValueExtendedProperties") if err != nil { panic(err) } if val != nil { return val.([]MultiValueLegacyExtendedPropertyable) } return nil } // GetName gets the name property value. The calendar name. // returns a *string when successful func (m *Calendar) GetName()(*string) { val, err := m.GetBackingStore().Get("name") if err != nil { panic(err) } if val != nil { return val.(*string) } return nil } // GetOwner gets the owner property value. If set, this represents the user who created or added the calendar. For a calendar that the user created or added, the owner property is set to the user. For a calendar shared with the user, the owner property is set to the person who shared that calendar with the user. // returns a EmailAddressable when successful func (m *Calendar) GetOwner()(EmailAddressable) { val, err := m.GetBackingStore().Get("owner") if err != nil { panic(err) } if val != nil { return val.(EmailAddressable) } return nil } // GetSingleValueExtendedProperties gets the singleValueExtendedProperties property value. The collection of single-value extended properties defined for the calendar. Read-only. Nullable. // returns a []SingleValueLegacyExtendedPropertyable when successful func (m *Calendar) GetSingleValueExtendedProperties()([]SingleValueLegacyExtendedPropertyable) { val, err := m.GetBackingStore().Get("singleValueExtendedProperties") if err != nil { panic(err) } if val != nil { return val.([]SingleValueLegacyExtendedPropertyable) } return nil } // Serialize serializes information the current object func (m *Calendar) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.Entity.Serialize(writer) if err != nil { return err } if m.GetAllowedOnlineMeetingProviders() != nil { err = writer.WriteCollectionOfStringValues("allowedOnlineMeetingProviders", SerializeOnlineMeetingProviderType(m.GetAllowedOnlineMeetingProviders())) if err != nil { return err } } if m.GetCalendarPermissions() != nil { cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetCalendarPermissions())) for i, v := range m.GetCalendarPermissions() { if v != nil { cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) } } err = writer.WriteCollectionOfObjectValues("calendarPermissions", cast) if err != nil { return err } } if m.GetCalendarView() != nil { cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetCalendarView())) for i, v := range m.GetCalendarView() { if v != nil { cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) } } err = writer.WriteCollectionOfObjectValues("calendarView", cast) if err != nil { return err } } { err = writer.WriteBoolValue("canEdit", m.GetCanEdit()) if err != nil { return err } } { err = writer.WriteBoolValue("canShare", m.GetCanShare()) if err != nil { return err } } { err = writer.WriteBoolValue("canViewPrivateItems", m.GetCanViewPrivateItems()) if err != nil { return err } } { err = writer.WriteStringValue("changeKey", m.GetChangeKey()) if err != nil { return err } } if m.GetColor() != nil { cast := (*m.GetColor()).String() err = writer.WriteStringValue("color", &cast) if err != nil { return err } } if m.GetDefaultOnlineMeetingProvider() != nil { cast := (*m.GetDefaultOnlineMeetingProvider()).String() err = writer.WriteStringValue("defaultOnlineMeetingProvider", &cast) if err != nil { return err } } if m.GetEvents() != nil { cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetEvents())) for i, v := range m.GetEvents() { if v != nil { cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) } } err = writer.WriteCollectionOfObjectValues("events", cast) if err != nil { return err } } { err = writer.WriteStringValue("hexColor", m.GetHexColor()) if err != nil { return err } } { err = writer.WriteBoolValue("isDefaultCalendar", m.GetIsDefaultCalendar()) if err != nil { return err } } { err = writer.WriteBoolValue("isRemovable", m.GetIsRemovable()) if err != nil { return err } } { err = writer.WriteBoolValue("isTallyingResponses", m.GetIsTallyingResponses()) if err != nil { return err } } if m.GetMultiValueExtendedProperties() != nil { cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetMultiValueExtendedProperties())) for i, v := range m.GetMultiValueExtendedProperties() { if v != nil { cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) } } err = writer.WriteCollectionOfObjectValues("multiValueExtendedProperties", cast) if err != nil { return err } } { err = writer.WriteStringValue("name", m.GetName()) if err != nil { return err } } { err = writer.WriteObjectValue("owner", m.GetOwner()) if err != nil { return err } } if m.GetSingleValueExtendedProperties() != nil { cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetSingleValueExtendedProperties())) for i, v := range m.GetSingleValueExtendedProperties() { if v != nil { cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) } } err = writer.WriteCollectionOfObjectValues("singleValueExtendedProperties", cast) if err != nil { return err } } return nil } // SetAllowedOnlineMeetingProviders sets the allowedOnlineMeetingProviders property value. Represent the online meeting service providers that can be used to create online meetings in this calendar. Possible values are: unknown, skypeForBusiness, skypeForConsumer, teamsForBusiness. func (m *Calendar) SetAllowedOnlineMeetingProviders(value []OnlineMeetingProviderType)() { err := m.GetBackingStore().Set("allowedOnlineMeetingProviders", value) if err != nil { panic(err) } } // SetCalendarPermissions sets the calendarPermissions property value. The permissions of the users with whom the calendar is shared. func (m *Calendar) SetCalendarPermissions(value []CalendarPermissionable)() { err := m.GetBackingStore().Set("calendarPermissions", value) if err != nil { panic(err) } } // SetCalendarView sets the calendarView property value. The calendar view for the calendar. Navigation property. Read-only. func (m *Calendar) SetCalendarView(value []Eventable)() { err := m.GetBackingStore().Set("calendarView", value) if err != nil { panic(err) } } // SetCanEdit sets the canEdit property value. true if the user can write to the calendar, false otherwise. This property is true for the user who created the calendar. This property is also true for a user who shared a calendar and granted write access. func (m *Calendar) SetCanEdit(value *bool)() { err := m.GetBackingStore().Set("canEdit", value) if err != nil { panic(err) } } // SetCanShare sets the canShare property value. true if the user has permission to share the calendar, false otherwise. Only the user who created the calendar can share it. func (m *Calendar) SetCanShare(value *bool)() { err := m.GetBackingStore().Set("canShare", value) if err != nil { panic(err) } } // SetCanViewPrivateItems sets the canViewPrivateItems property value. If true, the user can read calendar items that have been marked private, false otherwise. func (m *Calendar) SetCanViewPrivateItems(value *bool)() { err := m.GetBackingStore().Set("canViewPrivateItems", value) if err != nil { panic(err) } } // SetChangeKey sets the changeKey property value. Identifies the version of the calendar object. Every time the calendar is changed, changeKey changes as well. This allows Exchange to apply changes to the correct version of the object. Read-only. func (m *Calendar) SetChangeKey(value *string)() { err := m.GetBackingStore().Set("changeKey", value) if err != nil { panic(err) } } // SetColor sets the color property value. Specifies the color theme to distinguish the calendar from other calendars in a UI. The property values are: auto, lightBlue, lightGreen, lightOrange, lightGray, lightYellow, lightTeal, lightPink, lightBrown, lightRed, maxColor. func (m *Calendar) SetColor(value *CalendarColor)() { err := m.GetBackingStore().Set("color", value) if err != nil { panic(err) } } // SetDefaultOnlineMeetingProvider sets the defaultOnlineMeetingProvider property value. The default online meeting provider for meetings sent from this calendar. Possible values are: unknown, skypeForBusiness, skypeForConsumer, teamsForBusiness. func (m *Calendar) SetDefaultOnlineMeetingProvider(value *OnlineMeetingProviderType)() { err := m.GetBackingStore().Set("defaultOnlineMeetingProvider", value) if err != nil { panic(err) } } // SetEvents sets the events property value. The events in the calendar. Navigation property. Read-only. func (m *Calendar) SetEvents(value []Eventable)() { err := m.GetBackingStore().Set("events", value) if err != nil { panic(err) } } // SetHexColor sets the hexColor property value. The calendar color, expressed in a hex color code of three hexadecimal values, each ranging from 00 to FF and representing the red, green, or blue components of the color in the RGB color space. If the user has never explicitly set a color for the calendar, this property is empty. Read-only. func (m *Calendar) SetHexColor(value *string)() { err := m.GetBackingStore().Set("hexColor", value) if err != nil { panic(err) } } // SetIsDefaultCalendar sets the isDefaultCalendar property value. true if this is the default calendar where new events are created by default, false otherwise. func (m *Calendar) SetIsDefaultCalendar(value *bool)() { err := m.GetBackingStore().Set("isDefaultCalendar", value) if err != nil { panic(err) } } // SetIsRemovable sets the isRemovable property value. Indicates whether this user calendar can be deleted from the user mailbox. func (m *Calendar) SetIsRemovable(value *bool)() { err := m.GetBackingStore().Set("isRemovable", value) if err != nil { panic(err) } } // SetIsTallyingResponses sets the isTallyingResponses property value. Indicates whether this user calendar supports tracking of meeting responses. Only meeting invites sent from users' primary calendars support tracking of meeting responses. func (m *Calendar) SetIsTallyingResponses(value *bool)() { err := m.GetBackingStore().Set("isTallyingResponses", value) if err != nil { panic(err) } } // SetMultiValueExtendedProperties sets the multiValueExtendedProperties property value. The collection of multi-value extended properties defined for the calendar. Read-only. Nullable. func (m *Calendar) SetMultiValueExtendedProperties(value []MultiValueLegacyExtendedPropertyable)() { err := m.GetBackingStore().Set("multiValueExtendedProperties", value) if err != nil { panic(err) } } // SetName sets the name property value. The calendar name. func (m *Calendar) SetName(value *string)() { err := m.GetBackingStore().Set("name", value) if err != nil { panic(err) } } // SetOwner sets the owner property value. If set, this represents the user who created or added the calendar. For a calendar that the user created or added, the owner property is set to the user. For a calendar shared with the user, the owner property is set to the person who shared that calendar with the user. func (m *Calendar) SetOwner(value EmailAddressable)() { err := m.GetBackingStore().Set("owner", value) if err != nil { panic(err) } } // SetSingleValueExtendedProperties sets the singleValueExtendedProperties property value. The collection of single-value extended properties defined for the calendar. Read-only. Nullable. func (m *Calendar) SetSingleValueExtendedProperties(value []SingleValueLegacyExtendedPropertyable)() { err := m.GetBackingStore().Set("singleValueExtendedProperties", value) if err != nil { panic(err) } } type Calendarable interface { Entityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetAllowedOnlineMeetingProviders()([]OnlineMeetingProviderType) GetCalendarPermissions()([]CalendarPermissionable) GetCalendarView()([]Eventable) GetCanEdit()(*bool) GetCanShare()(*bool) GetCanViewPrivateItems()(*bool) GetChangeKey()(*string) GetColor()(*CalendarColor) GetDefaultOnlineMeetingProvider()(*OnlineMeetingProviderType) GetEvents()([]Eventable) GetHexColor()(*string) GetIsDefaultCalendar()(*bool) GetIsRemovable()(*bool) GetIsTallyingResponses()(*bool) GetMultiValueExtendedProperties()([]MultiValueLegacyExtendedPropertyable) GetName()(*string) GetOwner()(EmailAddressable) GetSingleValueExtendedProperties()([]SingleValueLegacyExtendedPropertyable) SetAllowedOnlineMeetingProviders(value []OnlineMeetingProviderType)() SetCalendarPermissions(value []CalendarPermissionable)() SetCalendarView(value []Eventable)() SetCanEdit(value *bool)() SetCanShare(value *bool)() SetCanViewPrivateItems(value *bool)() SetChangeKey(value *string)() SetColor(value *CalendarColor)() SetDefaultOnlineMeetingProvider(value *OnlineMeetingProviderType)() SetEvents(value []Eventable)() SetHexColor(value *string)() SetIsDefaultCalendar(value *bool)() SetIsRemovable(value *bool)() SetIsTallyingResponses(value *bool)() SetMultiValueExtendedProperties(value []MultiValueLegacyExtendedPropertyable)() SetName(value *string)() SetOwner(value EmailAddressable)() SetSingleValueExtendedProperties(value []SingleValueLegacyExtendedPropertyable)() }