/
githubmirror
/
origin
Обзор
Документация
Войти
/
githubmirror
/
origin
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
vendor/github.com/microsoftgraph/msgraph-sdk-go/models/linked_resource.go
190 строк
6 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 LinkedResource struct { Entity } // NewLinkedResource instantiates a new LinkedResource and sets the default values. func NewLinkedResource()(*LinkedResource) { m := &LinkedResource{ Entity: *NewEntity(), } return m } // CreateLinkedResourceFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value // returns a Parsable when successful func CreateLinkedResourceFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewLinkedResource(), nil } // GetApplicationName gets the applicationName property value. The app name of the source that sends the linkedResource. // returns a *string when successful func (m *LinkedResource) GetApplicationName()(*string) { val, err := m.GetBackingStore().Get("applicationName") if err != nil { panic(err) } if val != nil { return val.(*string) } return nil } // GetDisplayName gets the displayName property value. The title of the linkedResource. // returns a *string when successful func (m *LinkedResource) GetDisplayName()(*string) { val, err := m.GetBackingStore().Get("displayName") if err != nil { panic(err) } if val != nil { return val.(*string) } return nil } // GetExternalId gets the externalId property value. ID of the object that is associated with this task on the third-party/partner system. // returns a *string when successful func (m *LinkedResource) GetExternalId()(*string) { val, err := m.GetBackingStore().Get("externalId") 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 *LinkedResource) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.Entity.GetFieldDeserializers() res["applicationName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { return err } if val != nil { m.SetApplicationName(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["externalId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { return err } if val != nil { m.SetExternalId(val) } return nil } res["webUrl"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { return err } if val != nil { m.SetWebUrl(val) } return nil } return res } // GetWebUrl gets the webUrl property value. Deep link to the linkedResource. // returns a *string when successful func (m *LinkedResource) GetWebUrl()(*string) { val, err := m.GetBackingStore().Get("webUrl") if err != nil { panic(err) } if val != nil { return val.(*string) } return nil } // Serialize serializes information the current object func (m *LinkedResource) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.Entity.Serialize(writer) if err != nil { return err } { err = writer.WriteStringValue("applicationName", m.GetApplicationName()) if err != nil { return err } } { err = writer.WriteStringValue("displayName", m.GetDisplayName()) if err != nil { return err } } { err = writer.WriteStringValue("externalId", m.GetExternalId()) if err != nil { return err } } { err = writer.WriteStringValue("webUrl", m.GetWebUrl()) if err != nil { return err } } return nil } // SetApplicationName sets the applicationName property value. The app name of the source that sends the linkedResource. func (m *LinkedResource) SetApplicationName(value *string)() { err := m.GetBackingStore().Set("applicationName", value) if err != nil { panic(err) } } // SetDisplayName sets the displayName property value. The title of the linkedResource. func (m *LinkedResource) SetDisplayName(value *string)() { err := m.GetBackingStore().Set("displayName", value) if err != nil { panic(err) } } // SetExternalId sets the externalId property value. ID of the object that is associated with this task on the third-party/partner system. func (m *LinkedResource) SetExternalId(value *string)() { err := m.GetBackingStore().Set("externalId", value) if err != nil { panic(err) } } // SetWebUrl sets the webUrl property value. Deep link to the linkedResource. func (m *LinkedResource) SetWebUrl(value *string)() { err := m.GetBackingStore().Set("webUrl", value) if err != nil { panic(err) } } type LinkedResourceable interface { Entityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetApplicationName()(*string) GetDisplayName()(*string) GetExternalId()(*string) GetWebUrl()(*string) SetApplicationName(value *string)() SetDisplayName(value *string)() SetExternalId(value *string)() SetWebUrl(value *string)() }