/
githubmirror
/
origin
Обзор
Документация
Войти
/
githubmirror
/
origin
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
vendor/github.com/microsoftgraph/msgraph-sdk-go/models/security/artifact.go
79 строк
4 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 security import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" ) type Artifact struct { iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Entity } // NewArtifact instantiates a new Artifact and sets the default values. func NewArtifact()(*Artifact) { m := &Artifact{ Entity: *iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.NewEntity(), } return m } // CreateArtifactFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value // returns a Parsable when successful func CreateArtifactFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { if parseNode != nil { mappingValueNode, err := parseNode.GetChildNode("@odata.type") if err != nil { return nil, err } if mappingValueNode != nil { mappingValue, err := mappingValueNode.GetStringValue() if err != nil { return nil, err } if mappingValue != nil { switch *mappingValue { case "#microsoft.graph.security.host": return NewHost(), nil case "#microsoft.graph.security.hostComponent": return NewHostComponent(), nil case "#microsoft.graph.security.hostCookie": return NewHostCookie(), nil case "#microsoft.graph.security.hostname": return NewHostname(), nil case "#microsoft.graph.security.hostSslCertificate": return NewHostSslCertificate(), nil case "#microsoft.graph.security.hostTracker": return NewHostTracker(), nil case "#microsoft.graph.security.ipAddress": return NewIpAddress(), nil case "#microsoft.graph.security.passiveDnsRecord": return NewPassiveDnsRecord(), nil case "#microsoft.graph.security.sslCertificate": return NewSslCertificate(), nil case "#microsoft.graph.security.unclassifiedArtifact": return NewUnclassifiedArtifact(), nil } } } } return NewArtifact(), nil } // GetFieldDeserializers the deserialization information for the current model // returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful func (m *Artifact) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.Entity.GetFieldDeserializers() return res } // Serialize serializes information the current object func (m *Artifact) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.Entity.Serialize(writer) if err != nil { return err } return nil } type Artifactable interface { iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Entityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable }