Update shuffle.
This commit is contained in:
parent
e51f654e46
commit
b13f5b6fb6
@ -0,0 +1,97 @@
|
||||
package callrecords
|
||||
import (
|
||||
"errors"
|
||||
)
|
||||
// Provides operations to manage the sites property of the microsoft.graph.browserSiteList entity.
|
||||
type AudioCodec int
|
||||
|
||||
const (
|
||||
UNKNOWN_AUDIOCODEC AudioCodec = iota
|
||||
INVALID_AUDIOCODEC
|
||||
CN_AUDIOCODEC
|
||||
PCMA_AUDIOCODEC
|
||||
PCMU_AUDIOCODEC
|
||||
AMRWIDE_AUDIOCODEC
|
||||
G722_AUDIOCODEC
|
||||
G7221_AUDIOCODEC
|
||||
G7221C_AUDIOCODEC
|
||||
G729_AUDIOCODEC
|
||||
MULTICHANNELAUDIO_AUDIOCODEC
|
||||
MUCHV2_AUDIOCODEC
|
||||
OPUS_AUDIOCODEC
|
||||
SATIN_AUDIOCODEC
|
||||
SATINFULLBAND_AUDIOCODEC
|
||||
RTAUDIO8_AUDIOCODEC
|
||||
RTAUDIO16_AUDIOCODEC
|
||||
SILK_AUDIOCODEC
|
||||
SILKNARROW_AUDIOCODEC
|
||||
SILKWIDE_AUDIOCODEC
|
||||
SIREN_AUDIOCODEC
|
||||
XMSRTA_AUDIOCODEC
|
||||
UNKNOWNFUTUREVALUE_AUDIOCODEC
|
||||
)
|
||||
|
||||
func (i AudioCodec) String() string {
|
||||
return []string{"unknown", "invalid", "cn", "pcma", "pcmu", "amrWide", "g722", "g7221", "g7221c", "g729", "multiChannelAudio", "muchv2", "opus", "satin", "satinFullband", "rtAudio8", "rtAudio16", "silk", "silkNarrow", "silkWide", "siren", "xmsRta", "unknownFutureValue"}[i]
|
||||
}
|
||||
func ParseAudioCodec(v string) (interface{}, error) {
|
||||
result := UNKNOWN_AUDIOCODEC
|
||||
switch v {
|
||||
case "unknown":
|
||||
result = UNKNOWN_AUDIOCODEC
|
||||
case "invalid":
|
||||
result = INVALID_AUDIOCODEC
|
||||
case "cn":
|
||||
result = CN_AUDIOCODEC
|
||||
case "pcma":
|
||||
result = PCMA_AUDIOCODEC
|
||||
case "pcmu":
|
||||
result = PCMU_AUDIOCODEC
|
||||
case "amrWide":
|
||||
result = AMRWIDE_AUDIOCODEC
|
||||
case "g722":
|
||||
result = G722_AUDIOCODEC
|
||||
case "g7221":
|
||||
result = G7221_AUDIOCODEC
|
||||
case "g7221c":
|
||||
result = G7221C_AUDIOCODEC
|
||||
case "g729":
|
||||
result = G729_AUDIOCODEC
|
||||
case "multiChannelAudio":
|
||||
result = MULTICHANNELAUDIO_AUDIOCODEC
|
||||
case "muchv2":
|
||||
result = MUCHV2_AUDIOCODEC
|
||||
case "opus":
|
||||
result = OPUS_AUDIOCODEC
|
||||
case "satin":
|
||||
result = SATIN_AUDIOCODEC
|
||||
case "satinFullband":
|
||||
result = SATINFULLBAND_AUDIOCODEC
|
||||
case "rtAudio8":
|
||||
result = RTAUDIO8_AUDIOCODEC
|
||||
case "rtAudio16":
|
||||
result = RTAUDIO16_AUDIOCODEC
|
||||
case "silk":
|
||||
result = SILK_AUDIOCODEC
|
||||
case "silkNarrow":
|
||||
result = SILKNARROW_AUDIOCODEC
|
||||
case "silkWide":
|
||||
result = SILKWIDE_AUDIOCODEC
|
||||
case "siren":
|
||||
result = SIREN_AUDIOCODEC
|
||||
case "xmsRta":
|
||||
result = XMSRTA_AUDIOCODEC
|
||||
case "unknownFutureValue":
|
||||
result = UNKNOWNFUTUREVALUE_AUDIOCODEC
|
||||
default:
|
||||
return 0, errors.New("Unknown AudioCodec value: " + v)
|
||||
}
|
||||
return &result, nil
|
||||
}
|
||||
func SerializeAudioCodec(values []AudioCodec) []string {
|
||||
result := make([]string, len(values))
|
||||
for i, v := range values {
|
||||
result[i] = v.String()
|
||||
}
|
||||
return result
|
||||
}
|
||||
@ -0,0 +1,317 @@
|
||||
package callrecords
|
||||
|
||||
import (
|
||||
i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time"
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models"
|
||||
)
|
||||
|
||||
// CallRecord provides operations to manage the sites property of the microsoft.graph.browserSiteList entity.
|
||||
type CallRecord struct {
|
||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.Entity
|
||||
// UTC time when the last user left the call. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z
|
||||
endDateTime *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time
|
||||
// Meeting URL associated to the call. May not be available for a peerToPeer call record type.
|
||||
joinWebUrl *string
|
||||
// UTC time when the call record was created. The DatetimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z
|
||||
lastModifiedDateTime *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time
|
||||
// List of all the modalities used in the call. Possible values are: unknown, audio, video, videoBasedScreenSharing, data, screenSharing, unknownFutureValue.
|
||||
modalities []Modality
|
||||
// The organizing party's identity.
|
||||
organizer ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.IdentitySetable
|
||||
// List of distinct identities involved in the call.
|
||||
participants []ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.IdentitySetable
|
||||
// List of sessions involved in the call. Peer-to-peer calls typically only have one session, whereas group calls typically have at least one session per participant. Read-only. Nullable.
|
||||
sessions []Sessionable
|
||||
// UTC time when the first user joined the call. The DatetimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z
|
||||
startDateTime *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time
|
||||
// The type property
|
||||
type_escaped *CallType
|
||||
// Monotonically increasing version of the call record. Higher version call records with the same ID includes additional data compared to the lower version.
|
||||
version *int64
|
||||
}
|
||||
// NewCallRecord instantiates a new callRecord and sets the default values.
|
||||
func NewCallRecord()(*CallRecord) {
|
||||
m := &CallRecord{
|
||||
Entity: *ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.NewEntity(),
|
||||
}
|
||||
return m
|
||||
}
|
||||
// CreateCallRecordFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
||||
func CreateCallRecordFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
||||
return NewCallRecord(), nil
|
||||
}
|
||||
// GetEndDateTime gets the endDateTime property value. UTC time when the last user left the call. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z
|
||||
func (m *CallRecord) GetEndDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) {
|
||||
return m.endDateTime
|
||||
}
|
||||
// GetFieldDeserializers the deserialization information for the current model
|
||||
func (m *CallRecord) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
|
||||
res := m.Entity.GetFieldDeserializers()
|
||||
res["endDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetTimeValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetEndDateTime(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["joinWebUrl"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetJoinWebUrl(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["lastModifiedDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetTimeValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetLastModifiedDateTime(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["modalities"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetCollectionOfEnumValues(ParseModality)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
res := make([]Modality, len(val))
|
||||
for i, v := range val {
|
||||
res[i] = *(v.(*Modality))
|
||||
}
|
||||
m.SetModalities(res)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["organizer"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetObjectValue(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.CreateIdentitySetFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetOrganizer(val.(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.IdentitySetable))
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["participants"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetCollectionOfObjectValues(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.CreateIdentitySetFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
res := make([]ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.IdentitySetable, len(val))
|
||||
for i, v := range val {
|
||||
res[i] = v.(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.IdentitySetable)
|
||||
}
|
||||
m.SetParticipants(res)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["sessions"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetCollectionOfObjectValues(CreateSessionFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
res := make([]Sessionable, len(val))
|
||||
for i, v := range val {
|
||||
res[i] = v.(Sessionable)
|
||||
}
|
||||
m.SetSessions(res)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["startDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetTimeValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetStartDateTime(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetEnumValue(ParseCallType)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetType(val.(*CallType))
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["version"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetInt64Value()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetVersion(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
return res
|
||||
}
|
||||
// GetJoinWebUrl gets the joinWebUrl property value. Meeting URL associated to the call. May not be available for a peerToPeer call record type.
|
||||
func (m *CallRecord) GetJoinWebUrl()(*string) {
|
||||
return m.joinWebUrl
|
||||
}
|
||||
// GetLastModifiedDateTime gets the lastModifiedDateTime property value. UTC time when the call record was created. The DatetimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z
|
||||
func (m *CallRecord) GetLastModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) {
|
||||
return m.lastModifiedDateTime
|
||||
}
|
||||
// GetModalities gets the modalities property value. List of all the modalities used in the call. Possible values are: unknown, audio, video, videoBasedScreenSharing, data, screenSharing, unknownFutureValue.
|
||||
func (m *CallRecord) GetModalities()([]Modality) {
|
||||
return m.modalities
|
||||
}
|
||||
// GetOrganizer gets the organizer property value. The organizing party's identity.
|
||||
func (m *CallRecord) GetOrganizer()(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.IdentitySetable) {
|
||||
return m.organizer
|
||||
}
|
||||
// GetParticipants gets the participants property value. List of distinct identities involved in the call.
|
||||
func (m *CallRecord) GetParticipants()([]ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.IdentitySetable) {
|
||||
return m.participants
|
||||
}
|
||||
// GetSessions gets the sessions property value. List of sessions involved in the call. Peer-to-peer calls typically only have one session, whereas group calls typically have at least one session per participant. Read-only. Nullable.
|
||||
func (m *CallRecord) GetSessions()([]Sessionable) {
|
||||
return m.sessions
|
||||
}
|
||||
// GetStartDateTime gets the startDateTime property value. UTC time when the first user joined the call. The DatetimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z
|
||||
func (m *CallRecord) GetStartDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) {
|
||||
return m.startDateTime
|
||||
}
|
||||
// GetType gets the type property value. The type property
|
||||
func (m *CallRecord) GetType()(*CallType) {
|
||||
return m.type_escaped
|
||||
}
|
||||
// GetVersion gets the version property value. Monotonically increasing version of the call record. Higher version call records with the same ID includes additional data compared to the lower version.
|
||||
func (m *CallRecord) GetVersion()(*int64) {
|
||||
return m.version
|
||||
}
|
||||
// Serialize serializes information the current object
|
||||
func (m *CallRecord) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
|
||||
err := m.Entity.Serialize(writer)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
{
|
||||
err = writer.WriteTimeValue("endDateTime", m.GetEndDateTime())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteStringValue("joinWebUrl", m.GetJoinWebUrl())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteTimeValue("lastModifiedDateTime", m.GetLastModifiedDateTime())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
if m.GetModalities() != nil {
|
||||
err = writer.WriteCollectionOfStringValues("modalities", SerializeModality(m.GetModalities()))
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteObjectValue("organizer", m.GetOrganizer())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
if m.GetParticipants() != nil {
|
||||
cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetParticipants()))
|
||||
for i, v := range m.GetParticipants() {
|
||||
cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable)
|
||||
}
|
||||
err = writer.WriteCollectionOfObjectValues("participants", cast)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
if m.GetSessions() != nil {
|
||||
cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetSessions()))
|
||||
for i, v := range m.GetSessions() {
|
||||
cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable)
|
||||
}
|
||||
err = writer.WriteCollectionOfObjectValues("sessions", cast)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteTimeValue("startDateTime", m.GetStartDateTime())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
if m.GetType() != nil {
|
||||
cast := (*m.GetType()).String()
|
||||
err = writer.WriteStringValue("type", &cast)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteInt64Value("version", m.GetVersion())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
// SetEndDateTime sets the endDateTime property value. UTC time when the last user left the call. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z
|
||||
func (m *CallRecord) SetEndDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() {
|
||||
m.endDateTime = value
|
||||
}
|
||||
// SetJoinWebUrl sets the joinWebUrl property value. Meeting URL associated to the call. May not be available for a peerToPeer call record type.
|
||||
func (m *CallRecord) SetJoinWebUrl(value *string)() {
|
||||
m.joinWebUrl = value
|
||||
}
|
||||
// SetLastModifiedDateTime sets the lastModifiedDateTime property value. UTC time when the call record was created. The DatetimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z
|
||||
func (m *CallRecord) SetLastModifiedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() {
|
||||
m.lastModifiedDateTime = value
|
||||
}
|
||||
// SetModalities sets the modalities property value. List of all the modalities used in the call. Possible values are: unknown, audio, video, videoBasedScreenSharing, data, screenSharing, unknownFutureValue.
|
||||
func (m *CallRecord) SetModalities(value []Modality)() {
|
||||
m.modalities = value
|
||||
}
|
||||
// SetOrganizer sets the organizer property value. The organizing party's identity.
|
||||
func (m *CallRecord) SetOrganizer(value ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.IdentitySetable)() {
|
||||
m.organizer = value
|
||||
}
|
||||
// SetParticipants sets the participants property value. List of distinct identities involved in the call.
|
||||
func (m *CallRecord) SetParticipants(value []ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.IdentitySetable)() {
|
||||
m.participants = value
|
||||
}
|
||||
// SetSessions sets the sessions property value. List of sessions involved in the call. Peer-to-peer calls typically only have one session, whereas group calls typically have at least one session per participant. Read-only. Nullable.
|
||||
func (m *CallRecord) SetSessions(value []Sessionable)() {
|
||||
m.sessions = value
|
||||
}
|
||||
// SetStartDateTime sets the startDateTime property value. UTC time when the first user joined the call. The DatetimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z
|
||||
func (m *CallRecord) SetStartDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() {
|
||||
m.startDateTime = value
|
||||
}
|
||||
// SetType sets the type property value. The type property
|
||||
func (m *CallRecord) SetType(value *CallType)() {
|
||||
m.type_escaped = value
|
||||
}
|
||||
// SetVersion sets the version property value. Monotonically increasing version of the call record. Higher version call records with the same ID includes additional data compared to the lower version.
|
||||
func (m *CallRecord) SetVersion(value *int64)() {
|
||||
m.version = value
|
||||
}
|
||||
@ -0,0 +1,69 @@
|
||||
package callrecords
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models"
|
||||
)
|
||||
|
||||
// CallRecordCollectionResponse
|
||||
type CallRecordCollectionResponse struct {
|
||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.BaseCollectionPaginationCountResponse
|
||||
// The value property
|
||||
value []CallRecordable
|
||||
}
|
||||
// NewCallRecordCollectionResponse instantiates a new CallRecordCollectionResponse and sets the default values.
|
||||
func NewCallRecordCollectionResponse()(*CallRecordCollectionResponse) {
|
||||
m := &CallRecordCollectionResponse{
|
||||
BaseCollectionPaginationCountResponse: *ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.NewBaseCollectionPaginationCountResponse(),
|
||||
}
|
||||
return m
|
||||
}
|
||||
// CreateCallRecordCollectionResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
||||
func CreateCallRecordCollectionResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
||||
return NewCallRecordCollectionResponse(), nil
|
||||
}
|
||||
// GetFieldDeserializers the deserialization information for the current model
|
||||
func (m *CallRecordCollectionResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
|
||||
res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers()
|
||||
res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetCollectionOfObjectValues(CreateCallRecordFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
res := make([]CallRecordable, len(val))
|
||||
for i, v := range val {
|
||||
res[i] = v.(CallRecordable)
|
||||
}
|
||||
m.SetValue(res)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
return res
|
||||
}
|
||||
// GetValue gets the value property value. The value property
|
||||
func (m *CallRecordCollectionResponse) GetValue()([]CallRecordable) {
|
||||
return m.value
|
||||
}
|
||||
// Serialize serializes information the current object
|
||||
func (m *CallRecordCollectionResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
|
||||
err := m.BaseCollectionPaginationCountResponse.Serialize(writer)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if m.GetValue() != nil {
|
||||
cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue()))
|
||||
for i, v := range m.GetValue() {
|
||||
cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable)
|
||||
}
|
||||
err = writer.WriteCollectionOfObjectValues("value", cast)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
// SetValue sets the value property value. The value property
|
||||
func (m *CallRecordCollectionResponse) SetValue(value []CallRecordable)() {
|
||||
m.value = value
|
||||
}
|
||||
@ -0,0 +1,14 @@
|
||||
package callrecords
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models"
|
||||
)
|
||||
|
||||
// CallRecordCollectionResponseable
|
||||
type CallRecordCollectionResponseable interface {
|
||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.BaseCollectionPaginationCountResponseable
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
||||
GetValue()([]CallRecordable)
|
||||
SetValue(value []CallRecordable)()
|
||||
}
|
||||
@ -0,0 +1,33 @@
|
||||
package callrecords
|
||||
|
||||
import (
|
||||
i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time"
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models"
|
||||
)
|
||||
|
||||
// CallRecordable
|
||||
type CallRecordable interface {
|
||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.Entityable
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
||||
GetEndDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)
|
||||
GetJoinWebUrl()(*string)
|
||||
GetLastModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)
|
||||
GetModalities()([]Modality)
|
||||
GetOrganizer()(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.IdentitySetable)
|
||||
GetParticipants()([]ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.IdentitySetable)
|
||||
GetSessions()([]Sessionable)
|
||||
GetStartDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)
|
||||
GetType()(*CallType)
|
||||
GetVersion()(*int64)
|
||||
SetEndDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)()
|
||||
SetJoinWebUrl(value *string)()
|
||||
SetLastModifiedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)()
|
||||
SetModalities(value []Modality)()
|
||||
SetOrganizer(value ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.IdentitySetable)()
|
||||
SetParticipants(value []ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.IdentitySetable)()
|
||||
SetSessions(value []Sessionable)()
|
||||
SetStartDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)()
|
||||
SetType(value *CallType)()
|
||||
SetVersion(value *int64)()
|
||||
}
|
||||
@ -0,0 +1,40 @@
|
||||
package callrecords
|
||||
import (
|
||||
"errors"
|
||||
)
|
||||
// Provides operations to manage the sites property of the microsoft.graph.browserSiteList entity.
|
||||
type CallType int
|
||||
|
||||
const (
|
||||
UNKNOWN_CALLTYPE CallType = iota
|
||||
GROUPCALL_CALLTYPE
|
||||
PEERTOPEER_CALLTYPE
|
||||
UNKNOWNFUTUREVALUE_CALLTYPE
|
||||
)
|
||||
|
||||
func (i CallType) String() string {
|
||||
return []string{"unknown", "groupCall", "peerToPeer", "unknownFutureValue"}[i]
|
||||
}
|
||||
func ParseCallType(v string) (interface{}, error) {
|
||||
result := UNKNOWN_CALLTYPE
|
||||
switch v {
|
||||
case "unknown":
|
||||
result = UNKNOWN_CALLTYPE
|
||||
case "groupCall":
|
||||
result = GROUPCALL_CALLTYPE
|
||||
case "peerToPeer":
|
||||
result = PEERTOPEER_CALLTYPE
|
||||
case "unknownFutureValue":
|
||||
result = UNKNOWNFUTUREVALUE_CALLTYPE
|
||||
default:
|
||||
return 0, errors.New("Unknown CallType value: " + v)
|
||||
}
|
||||
return &result, nil
|
||||
}
|
||||
func SerializeCallType(values []CallType) []string {
|
||||
result := make([]string, len(values))
|
||||
for i, v := range values {
|
||||
result[i] = v.String()
|
||||
}
|
||||
return result
|
||||
}
|
||||
@ -0,0 +1,61 @@
|
||||
package callrecords
|
||||
import (
|
||||
"errors"
|
||||
)
|
||||
// Provides operations to manage the sites property of the microsoft.graph.browserSiteList entity.
|
||||
type ClientPlatform int
|
||||
|
||||
const (
|
||||
UNKNOWN_CLIENTPLATFORM ClientPlatform = iota
|
||||
WINDOWS_CLIENTPLATFORM
|
||||
MACOS_CLIENTPLATFORM
|
||||
IOS_CLIENTPLATFORM
|
||||
ANDROID_CLIENTPLATFORM
|
||||
WEB_CLIENTPLATFORM
|
||||
IPPHONE_CLIENTPLATFORM
|
||||
ROOMSYSTEM_CLIENTPLATFORM
|
||||
SURFACEHUB_CLIENTPLATFORM
|
||||
HOLOLENS_CLIENTPLATFORM
|
||||
UNKNOWNFUTUREVALUE_CLIENTPLATFORM
|
||||
)
|
||||
|
||||
func (i ClientPlatform) String() string {
|
||||
return []string{"unknown", "windows", "macOS", "iOS", "android", "web", "ipPhone", "roomSystem", "surfaceHub", "holoLens", "unknownFutureValue"}[i]
|
||||
}
|
||||
func ParseClientPlatform(v string) (interface{}, error) {
|
||||
result := UNKNOWN_CLIENTPLATFORM
|
||||
switch v {
|
||||
case "unknown":
|
||||
result = UNKNOWN_CLIENTPLATFORM
|
||||
case "windows":
|
||||
result = WINDOWS_CLIENTPLATFORM
|
||||
case "macOS":
|
||||
result = MACOS_CLIENTPLATFORM
|
||||
case "iOS":
|
||||
result = IOS_CLIENTPLATFORM
|
||||
case "android":
|
||||
result = ANDROID_CLIENTPLATFORM
|
||||
case "web":
|
||||
result = WEB_CLIENTPLATFORM
|
||||
case "ipPhone":
|
||||
result = IPPHONE_CLIENTPLATFORM
|
||||
case "roomSystem":
|
||||
result = ROOMSYSTEM_CLIENTPLATFORM
|
||||
case "surfaceHub":
|
||||
result = SURFACEHUB_CLIENTPLATFORM
|
||||
case "holoLens":
|
||||
result = HOLOLENS_CLIENTPLATFORM
|
||||
case "unknownFutureValue":
|
||||
result = UNKNOWNFUTUREVALUE_CLIENTPLATFORM
|
||||
default:
|
||||
return 0, errors.New("Unknown ClientPlatform value: " + v)
|
||||
}
|
||||
return &result, nil
|
||||
}
|
||||
func SerializeClientPlatform(values []ClientPlatform) []string {
|
||||
result := make([]string, len(values))
|
||||
for i, v := range values {
|
||||
result[i] = v.String()
|
||||
}
|
||||
return result
|
||||
}
|
||||
@ -0,0 +1,142 @@
|
||||
package callrecords
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// ClientUserAgent
|
||||
type ClientUserAgent struct {
|
||||
UserAgent
|
||||
// The unique identifier of the Azure AD application used by this endpoint.
|
||||
azureADAppId *string
|
||||
// Immutable resource identifier of the Azure Communication Service associated with this endpoint based on Communication Services APIs.
|
||||
communicationServiceId *string
|
||||
// The platform property
|
||||
platform *ClientPlatform
|
||||
// The productFamily property
|
||||
productFamily *ProductFamily
|
||||
}
|
||||
// NewClientUserAgent instantiates a new ClientUserAgent and sets the default values.
|
||||
func NewClientUserAgent()(*ClientUserAgent) {
|
||||
m := &ClientUserAgent{
|
||||
UserAgent: *NewUserAgent(),
|
||||
}
|
||||
odataTypeValue := "#microsoft.graph.callRecords.clientUserAgent";
|
||||
m.SetOdataType(&odataTypeValue);
|
||||
return m
|
||||
}
|
||||
// CreateClientUserAgentFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
||||
func CreateClientUserAgentFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
||||
return NewClientUserAgent(), nil
|
||||
}
|
||||
// GetAzureADAppId gets the azureADAppId property value. The unique identifier of the Azure AD application used by this endpoint.
|
||||
func (m *ClientUserAgent) GetAzureADAppId()(*string) {
|
||||
return m.azureADAppId
|
||||
}
|
||||
// GetCommunicationServiceId gets the communicationServiceId property value. Immutable resource identifier of the Azure Communication Service associated with this endpoint based on Communication Services APIs.
|
||||
func (m *ClientUserAgent) GetCommunicationServiceId()(*string) {
|
||||
return m.communicationServiceId
|
||||
}
|
||||
// GetFieldDeserializers the deserialization information for the current model
|
||||
func (m *ClientUserAgent) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
|
||||
res := m.UserAgent.GetFieldDeserializers()
|
||||
res["azureADAppId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetAzureADAppId(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["communicationServiceId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetCommunicationServiceId(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["platform"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetEnumValue(ParseClientPlatform)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetPlatform(val.(*ClientPlatform))
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["productFamily"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetEnumValue(ParseProductFamily)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetProductFamily(val.(*ProductFamily))
|
||||
}
|
||||
return nil
|
||||
}
|
||||
return res
|
||||
}
|
||||
// GetPlatform gets the platform property value. The platform property
|
||||
func (m *ClientUserAgent) GetPlatform()(*ClientPlatform) {
|
||||
return m.platform
|
||||
}
|
||||
// GetProductFamily gets the productFamily property value. The productFamily property
|
||||
func (m *ClientUserAgent) GetProductFamily()(*ProductFamily) {
|
||||
return m.productFamily
|
||||
}
|
||||
// Serialize serializes information the current object
|
||||
func (m *ClientUserAgent) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
|
||||
err := m.UserAgent.Serialize(writer)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
{
|
||||
err = writer.WriteStringValue("azureADAppId", m.GetAzureADAppId())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteStringValue("communicationServiceId", m.GetCommunicationServiceId())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
if m.GetPlatform() != nil {
|
||||
cast := (*m.GetPlatform()).String()
|
||||
err = writer.WriteStringValue("platform", &cast)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
if m.GetProductFamily() != nil {
|
||||
cast := (*m.GetProductFamily()).String()
|
||||
err = writer.WriteStringValue("productFamily", &cast)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
// SetAzureADAppId sets the azureADAppId property value. The unique identifier of the Azure AD application used by this endpoint.
|
||||
func (m *ClientUserAgent) SetAzureADAppId(value *string)() {
|
||||
m.azureADAppId = value
|
||||
}
|
||||
// SetCommunicationServiceId sets the communicationServiceId property value. Immutable resource identifier of the Azure Communication Service associated with this endpoint based on Communication Services APIs.
|
||||
func (m *ClientUserAgent) SetCommunicationServiceId(value *string)() {
|
||||
m.communicationServiceId = value
|
||||
}
|
||||
// SetPlatform sets the platform property value. The platform property
|
||||
func (m *ClientUserAgent) SetPlatform(value *ClientPlatform)() {
|
||||
m.platform = value
|
||||
}
|
||||
// SetProductFamily sets the productFamily property value. The productFamily property
|
||||
func (m *ClientUserAgent) SetProductFamily(value *ProductFamily)() {
|
||||
m.productFamily = value
|
||||
}
|
||||
@ -0,0 +1,19 @@
|
||||
package callrecords
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// ClientUserAgentable
|
||||
type ClientUserAgentable interface {
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
||||
UserAgentable
|
||||
GetAzureADAppId()(*string)
|
||||
GetCommunicationServiceId()(*string)
|
||||
GetPlatform()(*ClientPlatform)
|
||||
GetProductFamily()(*ProductFamily)
|
||||
SetAzureADAppId(value *string)()
|
||||
SetCommunicationServiceId(value *string)()
|
||||
SetPlatform(value *ClientPlatform)()
|
||||
SetProductFamily(value *ProductFamily)()
|
||||
}
|
||||
@ -0,0 +1,617 @@
|
||||
package callrecords
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// DeviceInfo
|
||||
type DeviceInfo struct {
|
||||
// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
additionalData map[string]interface{}
|
||||
// Name of the capture device driver used by the media endpoint.
|
||||
captureDeviceDriver *string
|
||||
// Name of the capture device used by the media endpoint.
|
||||
captureDeviceName *string
|
||||
// Fraction of the call that the media endpoint detected the capture device was not working properly.
|
||||
captureNotFunctioningEventRatio *float32
|
||||
// Fraction of the call that the media endpoint detected the CPU resources available were insufficient and caused poor quality of the audio sent and received.
|
||||
cpuInsufficentEventRatio *float32
|
||||
// Fraction of the call that the media endpoint detected clipping in the captured audio that caused poor quality of the audio being sent.
|
||||
deviceClippingEventRatio *float32
|
||||
// Fraction of the call that the media endpoint detected glitches or gaps in the audio played or captured that caused poor quality of the audio being sent or received.
|
||||
deviceGlitchEventRatio *float32
|
||||
// Number of times during the call that the media endpoint detected howling or screeching audio.
|
||||
howlingEventCount *int32
|
||||
// The root mean square (RMS) of the incoming signal of up to the first 30 seconds of the call.
|
||||
initialSignalLevelRootMeanSquare *float32
|
||||
// Fraction of the call that the media endpoint detected low speech level that caused poor quality of the audio being sent.
|
||||
lowSpeechLevelEventRatio *float32
|
||||
// Fraction of the call that the media endpoint detected low speech to noise level that caused poor quality of the audio being sent.
|
||||
lowSpeechToNoiseEventRatio *float32
|
||||
// Glitches per 5 minute interval for the media endpoint's microphone.
|
||||
micGlitchRate *float32
|
||||
// The OdataType property
|
||||
odataType *string
|
||||
// Average energy level of received audio for audio classified as mono noise or left channel of stereo noise by the media endpoint.
|
||||
receivedNoiseLevel *int32
|
||||
// Average energy level of received audio for audio classified as mono speech, or left channel of stereo speech by the media endpoint.
|
||||
receivedSignalLevel *int32
|
||||
// Name of the render device driver used by the media endpoint.
|
||||
renderDeviceDriver *string
|
||||
// Name of the render device used by the media endpoint.
|
||||
renderDeviceName *string
|
||||
// Fraction of the call that media endpoint detected device render is muted.
|
||||
renderMuteEventRatio *float32
|
||||
// Fraction of the call that the media endpoint detected the render device was not working properly.
|
||||
renderNotFunctioningEventRatio *float32
|
||||
// Fraction of the call that media endpoint detected device render volume is set to 0.
|
||||
renderZeroVolumeEventRatio *float32
|
||||
// Average energy level of sent audio for audio classified as mono noise or left channel of stereo noise by the media endpoint.
|
||||
sentNoiseLevel *int32
|
||||
// Average energy level of sent audio for audio classified as mono speech, or left channel of stereo speech by the media endpoint.
|
||||
sentSignalLevel *int32
|
||||
// Glitches per 5 minute internal for the media endpoint's loudspeaker.
|
||||
speakerGlitchRate *float32
|
||||
}
|
||||
// NewDeviceInfo instantiates a new deviceInfo and sets the default values.
|
||||
func NewDeviceInfo()(*DeviceInfo) {
|
||||
m := &DeviceInfo{
|
||||
}
|
||||
m.SetAdditionalData(make(map[string]interface{}));
|
||||
return m
|
||||
}
|
||||
// CreateDeviceInfoFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
||||
func CreateDeviceInfoFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
||||
return NewDeviceInfo(), 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 *DeviceInfo) GetAdditionalData()(map[string]interface{}) {
|
||||
return m.additionalData
|
||||
}
|
||||
// GetCaptureDeviceDriver gets the captureDeviceDriver property value. Name of the capture device driver used by the media endpoint.
|
||||
func (m *DeviceInfo) GetCaptureDeviceDriver()(*string) {
|
||||
return m.captureDeviceDriver
|
||||
}
|
||||
// GetCaptureDeviceName gets the captureDeviceName property value. Name of the capture device used by the media endpoint.
|
||||
func (m *DeviceInfo) GetCaptureDeviceName()(*string) {
|
||||
return m.captureDeviceName
|
||||
}
|
||||
// GetCaptureNotFunctioningEventRatio gets the captureNotFunctioningEventRatio property value. Fraction of the call that the media endpoint detected the capture device was not working properly.
|
||||
func (m *DeviceInfo) GetCaptureNotFunctioningEventRatio()(*float32) {
|
||||
return m.captureNotFunctioningEventRatio
|
||||
}
|
||||
// GetCpuInsufficentEventRatio gets the cpuInsufficentEventRatio property value. Fraction of the call that the media endpoint detected the CPU resources available were insufficient and caused poor quality of the audio sent and received.
|
||||
func (m *DeviceInfo) GetCpuInsufficentEventRatio()(*float32) {
|
||||
return m.cpuInsufficentEventRatio
|
||||
}
|
||||
// GetDeviceClippingEventRatio gets the deviceClippingEventRatio property value. Fraction of the call that the media endpoint detected clipping in the captured audio that caused poor quality of the audio being sent.
|
||||
func (m *DeviceInfo) GetDeviceClippingEventRatio()(*float32) {
|
||||
return m.deviceClippingEventRatio
|
||||
}
|
||||
// GetDeviceGlitchEventRatio gets the deviceGlitchEventRatio property value. Fraction of the call that the media endpoint detected glitches or gaps in the audio played or captured that caused poor quality of the audio being sent or received.
|
||||
func (m *DeviceInfo) GetDeviceGlitchEventRatio()(*float32) {
|
||||
return m.deviceGlitchEventRatio
|
||||
}
|
||||
// GetFieldDeserializers the deserialization information for the current model
|
||||
func (m *DeviceInfo) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
|
||||
res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
|
||||
res["captureDeviceDriver"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetCaptureDeviceDriver(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["captureDeviceName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetCaptureDeviceName(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["captureNotFunctioningEventRatio"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetFloat32Value()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetCaptureNotFunctioningEventRatio(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["cpuInsufficentEventRatio"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetFloat32Value()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetCpuInsufficentEventRatio(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["deviceClippingEventRatio"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetFloat32Value()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetDeviceClippingEventRatio(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["deviceGlitchEventRatio"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetFloat32Value()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetDeviceGlitchEventRatio(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["howlingEventCount"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetInt32Value()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetHowlingEventCount(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["initialSignalLevelRootMeanSquare"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetFloat32Value()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetInitialSignalLevelRootMeanSquare(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["lowSpeechLevelEventRatio"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetFloat32Value()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetLowSpeechLevelEventRatio(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["lowSpeechToNoiseEventRatio"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetFloat32Value()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetLowSpeechToNoiseEventRatio(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["micGlitchRate"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetFloat32Value()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetMicGlitchRate(val)
|
||||
}
|
||||
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["receivedNoiseLevel"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetInt32Value()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetReceivedNoiseLevel(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["receivedSignalLevel"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetInt32Value()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetReceivedSignalLevel(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["renderDeviceDriver"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetRenderDeviceDriver(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["renderDeviceName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetRenderDeviceName(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["renderMuteEventRatio"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetFloat32Value()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetRenderMuteEventRatio(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["renderNotFunctioningEventRatio"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetFloat32Value()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetRenderNotFunctioningEventRatio(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["renderZeroVolumeEventRatio"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetFloat32Value()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetRenderZeroVolumeEventRatio(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["sentNoiseLevel"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetInt32Value()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetSentNoiseLevel(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["sentSignalLevel"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetInt32Value()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetSentSignalLevel(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["speakerGlitchRate"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetFloat32Value()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetSpeakerGlitchRate(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
return res
|
||||
}
|
||||
// GetHowlingEventCount gets the howlingEventCount property value. Number of times during the call that the media endpoint detected howling or screeching audio.
|
||||
func (m *DeviceInfo) GetHowlingEventCount()(*int32) {
|
||||
return m.howlingEventCount
|
||||
}
|
||||
// GetInitialSignalLevelRootMeanSquare gets the initialSignalLevelRootMeanSquare property value. The root mean square (RMS) of the incoming signal of up to the first 30 seconds of the call.
|
||||
func (m *DeviceInfo) GetInitialSignalLevelRootMeanSquare()(*float32) {
|
||||
return m.initialSignalLevelRootMeanSquare
|
||||
}
|
||||
// GetLowSpeechLevelEventRatio gets the lowSpeechLevelEventRatio property value. Fraction of the call that the media endpoint detected low speech level that caused poor quality of the audio being sent.
|
||||
func (m *DeviceInfo) GetLowSpeechLevelEventRatio()(*float32) {
|
||||
return m.lowSpeechLevelEventRatio
|
||||
}
|
||||
// GetLowSpeechToNoiseEventRatio gets the lowSpeechToNoiseEventRatio property value. Fraction of the call that the media endpoint detected low speech to noise level that caused poor quality of the audio being sent.
|
||||
func (m *DeviceInfo) GetLowSpeechToNoiseEventRatio()(*float32) {
|
||||
return m.lowSpeechToNoiseEventRatio
|
||||
}
|
||||
// GetMicGlitchRate gets the micGlitchRate property value. Glitches per 5 minute interval for the media endpoint's microphone.
|
||||
func (m *DeviceInfo) GetMicGlitchRate()(*float32) {
|
||||
return m.micGlitchRate
|
||||
}
|
||||
// GetOdataType gets the @odata.type property value. The OdataType property
|
||||
func (m *DeviceInfo) GetOdataType()(*string) {
|
||||
return m.odataType
|
||||
}
|
||||
// GetReceivedNoiseLevel gets the receivedNoiseLevel property value. Average energy level of received audio for audio classified as mono noise or left channel of stereo noise by the media endpoint.
|
||||
func (m *DeviceInfo) GetReceivedNoiseLevel()(*int32) {
|
||||
return m.receivedNoiseLevel
|
||||
}
|
||||
// GetReceivedSignalLevel gets the receivedSignalLevel property value. Average energy level of received audio for audio classified as mono speech, or left channel of stereo speech by the media endpoint.
|
||||
func (m *DeviceInfo) GetReceivedSignalLevel()(*int32) {
|
||||
return m.receivedSignalLevel
|
||||
}
|
||||
// GetRenderDeviceDriver gets the renderDeviceDriver property value. Name of the render device driver used by the media endpoint.
|
||||
func (m *DeviceInfo) GetRenderDeviceDriver()(*string) {
|
||||
return m.renderDeviceDriver
|
||||
}
|
||||
// GetRenderDeviceName gets the renderDeviceName property value. Name of the render device used by the media endpoint.
|
||||
func (m *DeviceInfo) GetRenderDeviceName()(*string) {
|
||||
return m.renderDeviceName
|
||||
}
|
||||
// GetRenderMuteEventRatio gets the renderMuteEventRatio property value. Fraction of the call that media endpoint detected device render is muted.
|
||||
func (m *DeviceInfo) GetRenderMuteEventRatio()(*float32) {
|
||||
return m.renderMuteEventRatio
|
||||
}
|
||||
// GetRenderNotFunctioningEventRatio gets the renderNotFunctioningEventRatio property value. Fraction of the call that the media endpoint detected the render device was not working properly.
|
||||
func (m *DeviceInfo) GetRenderNotFunctioningEventRatio()(*float32) {
|
||||
return m.renderNotFunctioningEventRatio
|
||||
}
|
||||
// GetRenderZeroVolumeEventRatio gets the renderZeroVolumeEventRatio property value. Fraction of the call that media endpoint detected device render volume is set to 0.
|
||||
func (m *DeviceInfo) GetRenderZeroVolumeEventRatio()(*float32) {
|
||||
return m.renderZeroVolumeEventRatio
|
||||
}
|
||||
// GetSentNoiseLevel gets the sentNoiseLevel property value. Average energy level of sent audio for audio classified as mono noise or left channel of stereo noise by the media endpoint.
|
||||
func (m *DeviceInfo) GetSentNoiseLevel()(*int32) {
|
||||
return m.sentNoiseLevel
|
||||
}
|
||||
// GetSentSignalLevel gets the sentSignalLevel property value. Average energy level of sent audio for audio classified as mono speech, or left channel of stereo speech by the media endpoint.
|
||||
func (m *DeviceInfo) GetSentSignalLevel()(*int32) {
|
||||
return m.sentSignalLevel
|
||||
}
|
||||
// GetSpeakerGlitchRate gets the speakerGlitchRate property value. Glitches per 5 minute internal for the media endpoint's loudspeaker.
|
||||
func (m *DeviceInfo) GetSpeakerGlitchRate()(*float32) {
|
||||
return m.speakerGlitchRate
|
||||
}
|
||||
// Serialize serializes information the current object
|
||||
func (m *DeviceInfo) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
|
||||
{
|
||||
err := writer.WriteStringValue("captureDeviceDriver", m.GetCaptureDeviceDriver())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteStringValue("captureDeviceName", m.GetCaptureDeviceName())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteFloat32Value("captureNotFunctioningEventRatio", m.GetCaptureNotFunctioningEventRatio())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteFloat32Value("cpuInsufficentEventRatio", m.GetCpuInsufficentEventRatio())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteFloat32Value("deviceClippingEventRatio", m.GetDeviceClippingEventRatio())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteFloat32Value("deviceGlitchEventRatio", m.GetDeviceGlitchEventRatio())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteInt32Value("howlingEventCount", m.GetHowlingEventCount())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteFloat32Value("initialSignalLevelRootMeanSquare", m.GetInitialSignalLevelRootMeanSquare())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteFloat32Value("lowSpeechLevelEventRatio", m.GetLowSpeechLevelEventRatio())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteFloat32Value("lowSpeechToNoiseEventRatio", m.GetLowSpeechToNoiseEventRatio())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteFloat32Value("micGlitchRate", m.GetMicGlitchRate())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteStringValue("@odata.type", m.GetOdataType())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteInt32Value("receivedNoiseLevel", m.GetReceivedNoiseLevel())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteInt32Value("receivedSignalLevel", m.GetReceivedSignalLevel())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteStringValue("renderDeviceDriver", m.GetRenderDeviceDriver())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteStringValue("renderDeviceName", m.GetRenderDeviceName())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteFloat32Value("renderMuteEventRatio", m.GetRenderMuteEventRatio())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteFloat32Value("renderNotFunctioningEventRatio", m.GetRenderNotFunctioningEventRatio())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteFloat32Value("renderZeroVolumeEventRatio", m.GetRenderZeroVolumeEventRatio())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteInt32Value("sentNoiseLevel", m.GetSentNoiseLevel())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteInt32Value("sentSignalLevel", m.GetSentSignalLevel())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteFloat32Value("speakerGlitchRate", m.GetSpeakerGlitchRate())
|
||||
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 *DeviceInfo) SetAdditionalData(value map[string]interface{})() {
|
||||
m.additionalData = value
|
||||
}
|
||||
// SetCaptureDeviceDriver sets the captureDeviceDriver property value. Name of the capture device driver used by the media endpoint.
|
||||
func (m *DeviceInfo) SetCaptureDeviceDriver(value *string)() {
|
||||
m.captureDeviceDriver = value
|
||||
}
|
||||
// SetCaptureDeviceName sets the captureDeviceName property value. Name of the capture device used by the media endpoint.
|
||||
func (m *DeviceInfo) SetCaptureDeviceName(value *string)() {
|
||||
m.captureDeviceName = value
|
||||
}
|
||||
// SetCaptureNotFunctioningEventRatio sets the captureNotFunctioningEventRatio property value. Fraction of the call that the media endpoint detected the capture device was not working properly.
|
||||
func (m *DeviceInfo) SetCaptureNotFunctioningEventRatio(value *float32)() {
|
||||
m.captureNotFunctioningEventRatio = value
|
||||
}
|
||||
// SetCpuInsufficentEventRatio sets the cpuInsufficentEventRatio property value. Fraction of the call that the media endpoint detected the CPU resources available were insufficient and caused poor quality of the audio sent and received.
|
||||
func (m *DeviceInfo) SetCpuInsufficentEventRatio(value *float32)() {
|
||||
m.cpuInsufficentEventRatio = value
|
||||
}
|
||||
// SetDeviceClippingEventRatio sets the deviceClippingEventRatio property value. Fraction of the call that the media endpoint detected clipping in the captured audio that caused poor quality of the audio being sent.
|
||||
func (m *DeviceInfo) SetDeviceClippingEventRatio(value *float32)() {
|
||||
m.deviceClippingEventRatio = value
|
||||
}
|
||||
// SetDeviceGlitchEventRatio sets the deviceGlitchEventRatio property value. Fraction of the call that the media endpoint detected glitches or gaps in the audio played or captured that caused poor quality of the audio being sent or received.
|
||||
func (m *DeviceInfo) SetDeviceGlitchEventRatio(value *float32)() {
|
||||
m.deviceGlitchEventRatio = value
|
||||
}
|
||||
// SetHowlingEventCount sets the howlingEventCount property value. Number of times during the call that the media endpoint detected howling or screeching audio.
|
||||
func (m *DeviceInfo) SetHowlingEventCount(value *int32)() {
|
||||
m.howlingEventCount = value
|
||||
}
|
||||
// SetInitialSignalLevelRootMeanSquare sets the initialSignalLevelRootMeanSquare property value. The root mean square (RMS) of the incoming signal of up to the first 30 seconds of the call.
|
||||
func (m *DeviceInfo) SetInitialSignalLevelRootMeanSquare(value *float32)() {
|
||||
m.initialSignalLevelRootMeanSquare = value
|
||||
}
|
||||
// SetLowSpeechLevelEventRatio sets the lowSpeechLevelEventRatio property value. Fraction of the call that the media endpoint detected low speech level that caused poor quality of the audio being sent.
|
||||
func (m *DeviceInfo) SetLowSpeechLevelEventRatio(value *float32)() {
|
||||
m.lowSpeechLevelEventRatio = value
|
||||
}
|
||||
// SetLowSpeechToNoiseEventRatio sets the lowSpeechToNoiseEventRatio property value. Fraction of the call that the media endpoint detected low speech to noise level that caused poor quality of the audio being sent.
|
||||
func (m *DeviceInfo) SetLowSpeechToNoiseEventRatio(value *float32)() {
|
||||
m.lowSpeechToNoiseEventRatio = value
|
||||
}
|
||||
// SetMicGlitchRate sets the micGlitchRate property value. Glitches per 5 minute interval for the media endpoint's microphone.
|
||||
func (m *DeviceInfo) SetMicGlitchRate(value *float32)() {
|
||||
m.micGlitchRate = value
|
||||
}
|
||||
// SetOdataType sets the @odata.type property value. The OdataType property
|
||||
func (m *DeviceInfo) SetOdataType(value *string)() {
|
||||
m.odataType = value
|
||||
}
|
||||
// SetReceivedNoiseLevel sets the receivedNoiseLevel property value. Average energy level of received audio for audio classified as mono noise or left channel of stereo noise by the media endpoint.
|
||||
func (m *DeviceInfo) SetReceivedNoiseLevel(value *int32)() {
|
||||
m.receivedNoiseLevel = value
|
||||
}
|
||||
// SetReceivedSignalLevel sets the receivedSignalLevel property value. Average energy level of received audio for audio classified as mono speech, or left channel of stereo speech by the media endpoint.
|
||||
func (m *DeviceInfo) SetReceivedSignalLevel(value *int32)() {
|
||||
m.receivedSignalLevel = value
|
||||
}
|
||||
// SetRenderDeviceDriver sets the renderDeviceDriver property value. Name of the render device driver used by the media endpoint.
|
||||
func (m *DeviceInfo) SetRenderDeviceDriver(value *string)() {
|
||||
m.renderDeviceDriver = value
|
||||
}
|
||||
// SetRenderDeviceName sets the renderDeviceName property value. Name of the render device used by the media endpoint.
|
||||
func (m *DeviceInfo) SetRenderDeviceName(value *string)() {
|
||||
m.renderDeviceName = value
|
||||
}
|
||||
// SetRenderMuteEventRatio sets the renderMuteEventRatio property value. Fraction of the call that media endpoint detected device render is muted.
|
||||
func (m *DeviceInfo) SetRenderMuteEventRatio(value *float32)() {
|
||||
m.renderMuteEventRatio = value
|
||||
}
|
||||
// SetRenderNotFunctioningEventRatio sets the renderNotFunctioningEventRatio property value. Fraction of the call that the media endpoint detected the render device was not working properly.
|
||||
func (m *DeviceInfo) SetRenderNotFunctioningEventRatio(value *float32)() {
|
||||
m.renderNotFunctioningEventRatio = value
|
||||
}
|
||||
// SetRenderZeroVolumeEventRatio sets the renderZeroVolumeEventRatio property value. Fraction of the call that media endpoint detected device render volume is set to 0.
|
||||
func (m *DeviceInfo) SetRenderZeroVolumeEventRatio(value *float32)() {
|
||||
m.renderZeroVolumeEventRatio = value
|
||||
}
|
||||
// SetSentNoiseLevel sets the sentNoiseLevel property value. Average energy level of sent audio for audio classified as mono noise or left channel of stereo noise by the media endpoint.
|
||||
func (m *DeviceInfo) SetSentNoiseLevel(value *int32)() {
|
||||
m.sentNoiseLevel = value
|
||||
}
|
||||
// SetSentSignalLevel sets the sentSignalLevel property value. Average energy level of sent audio for audio classified as mono speech, or left channel of stereo speech by the media endpoint.
|
||||
func (m *DeviceInfo) SetSentSignalLevel(value *int32)() {
|
||||
m.sentSignalLevel = value
|
||||
}
|
||||
// SetSpeakerGlitchRate sets the speakerGlitchRate property value. Glitches per 5 minute internal for the media endpoint's loudspeaker.
|
||||
func (m *DeviceInfo) SetSpeakerGlitchRate(value *float32)() {
|
||||
m.speakerGlitchRate = value
|
||||
}
|
||||
@ -0,0 +1,55 @@
|
||||
package callrecords
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// DeviceInfoable
|
||||
type DeviceInfoable interface {
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
||||
GetCaptureDeviceDriver()(*string)
|
||||
GetCaptureDeviceName()(*string)
|
||||
GetCaptureNotFunctioningEventRatio()(*float32)
|
||||
GetCpuInsufficentEventRatio()(*float32)
|
||||
GetDeviceClippingEventRatio()(*float32)
|
||||
GetDeviceGlitchEventRatio()(*float32)
|
||||
GetHowlingEventCount()(*int32)
|
||||
GetInitialSignalLevelRootMeanSquare()(*float32)
|
||||
GetLowSpeechLevelEventRatio()(*float32)
|
||||
GetLowSpeechToNoiseEventRatio()(*float32)
|
||||
GetMicGlitchRate()(*float32)
|
||||
GetOdataType()(*string)
|
||||
GetReceivedNoiseLevel()(*int32)
|
||||
GetReceivedSignalLevel()(*int32)
|
||||
GetRenderDeviceDriver()(*string)
|
||||
GetRenderDeviceName()(*string)
|
||||
GetRenderMuteEventRatio()(*float32)
|
||||
GetRenderNotFunctioningEventRatio()(*float32)
|
||||
GetRenderZeroVolumeEventRatio()(*float32)
|
||||
GetSentNoiseLevel()(*int32)
|
||||
GetSentSignalLevel()(*int32)
|
||||
GetSpeakerGlitchRate()(*float32)
|
||||
SetCaptureDeviceDriver(value *string)()
|
||||
SetCaptureDeviceName(value *string)()
|
||||
SetCaptureNotFunctioningEventRatio(value *float32)()
|
||||
SetCpuInsufficentEventRatio(value *float32)()
|
||||
SetDeviceClippingEventRatio(value *float32)()
|
||||
SetDeviceGlitchEventRatio(value *float32)()
|
||||
SetHowlingEventCount(value *int32)()
|
||||
SetInitialSignalLevelRootMeanSquare(value *float32)()
|
||||
SetLowSpeechLevelEventRatio(value *float32)()
|
||||
SetLowSpeechToNoiseEventRatio(value *float32)()
|
||||
SetMicGlitchRate(value *float32)()
|
||||
SetOdataType(value *string)()
|
||||
SetReceivedNoiseLevel(value *int32)()
|
||||
SetReceivedSignalLevel(value *int32)()
|
||||
SetRenderDeviceDriver(value *string)()
|
||||
SetRenderDeviceName(value *string)()
|
||||
SetRenderMuteEventRatio(value *float32)()
|
||||
SetRenderNotFunctioningEventRatio(value *float32)()
|
||||
SetRenderZeroVolumeEventRatio(value *float32)()
|
||||
SetSentNoiseLevel(value *int32)()
|
||||
SetSentSignalLevel(value *int32)()
|
||||
SetSpeakerGlitchRate(value *float32)()
|
||||
}
|
||||
@ -0,0 +1,117 @@
|
||||
package callrecords
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// Endpoint
|
||||
type Endpoint struct {
|
||||
// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
additionalData map[string]interface{}
|
||||
// The OdataType property
|
||||
odataType *string
|
||||
// User-agent reported by this endpoint.
|
||||
userAgent UserAgentable
|
||||
}
|
||||
// NewEndpoint instantiates a new endpoint and sets the default values.
|
||||
func NewEndpoint()(*Endpoint) {
|
||||
m := &Endpoint{
|
||||
}
|
||||
m.SetAdditionalData(make(map[string]interface{}));
|
||||
return m
|
||||
}
|
||||
// CreateEndpointFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
||||
func CreateEndpointFromDiscriminatorValue(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.callRecords.participantEndpoint":
|
||||
return NewParticipantEndpoint(), nil
|
||||
case "#microsoft.graph.callRecords.serviceEndpoint":
|
||||
return NewServiceEndpoint(), nil
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return NewEndpoint(), 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 *Endpoint) GetAdditionalData()(map[string]interface{}) {
|
||||
return m.additionalData
|
||||
}
|
||||
// GetFieldDeserializers the deserialization information for the current model
|
||||
func (m *Endpoint) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
|
||||
res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
|
||||
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["userAgent"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetObjectValue(CreateUserAgentFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetUserAgent(val.(UserAgentable))
|
||||
}
|
||||
return nil
|
||||
}
|
||||
return res
|
||||
}
|
||||
// GetOdataType gets the @odata.type property value. The OdataType property
|
||||
func (m *Endpoint) GetOdataType()(*string) {
|
||||
return m.odataType
|
||||
}
|
||||
// GetUserAgent gets the userAgent property value. User-agent reported by this endpoint.
|
||||
func (m *Endpoint) GetUserAgent()(UserAgentable) {
|
||||
return m.userAgent
|
||||
}
|
||||
// Serialize serializes information the current object
|
||||
func (m *Endpoint) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
|
||||
{
|
||||
err := writer.WriteStringValue("@odata.type", m.GetOdataType())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteObjectValue("userAgent", m.GetUserAgent())
|
||||
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 *Endpoint) SetAdditionalData(value map[string]interface{})() {
|
||||
m.additionalData = value
|
||||
}
|
||||
// SetOdataType sets the @odata.type property value. The OdataType property
|
||||
func (m *Endpoint) SetOdataType(value *string)() {
|
||||
m.odataType = value
|
||||
}
|
||||
// SetUserAgent sets the userAgent property value. User-agent reported by this endpoint.
|
||||
func (m *Endpoint) SetUserAgent(value UserAgentable)() {
|
||||
m.userAgent = value
|
||||
}
|
||||
@ -0,0 +1,15 @@
|
||||
package callrecords
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// Endpointable
|
||||
type Endpointable interface {
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
||||
GetOdataType()(*string)
|
||||
GetUserAgent()(UserAgentable)
|
||||
SetOdataType(value *string)()
|
||||
SetUserAgent(value UserAgentable)()
|
||||
}
|
||||
@ -0,0 +1,124 @@
|
||||
package callrecords
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// FailureInfo
|
||||
type FailureInfo struct {
|
||||
// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
additionalData map[string]interface{}
|
||||
// The OdataType property
|
||||
odataType *string
|
||||
// Classification of why a call or portion of a call failed.
|
||||
reason *string
|
||||
// The stage property
|
||||
stage *FailureStage
|
||||
}
|
||||
// NewFailureInfo instantiates a new failureInfo and sets the default values.
|
||||
func NewFailureInfo()(*FailureInfo) {
|
||||
m := &FailureInfo{
|
||||
}
|
||||
m.SetAdditionalData(make(map[string]interface{}));
|
||||
return m
|
||||
}
|
||||
// CreateFailureInfoFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
||||
func CreateFailureInfoFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
||||
return NewFailureInfo(), 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 *FailureInfo) GetAdditionalData()(map[string]interface{}) {
|
||||
return m.additionalData
|
||||
}
|
||||
// GetFieldDeserializers the deserialization information for the current model
|
||||
func (m *FailureInfo) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
|
||||
res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
|
||||
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["reason"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetReason(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["stage"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetEnumValue(ParseFailureStage)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetStage(val.(*FailureStage))
|
||||
}
|
||||
return nil
|
||||
}
|
||||
return res
|
||||
}
|
||||
// GetOdataType gets the @odata.type property value. The OdataType property
|
||||
func (m *FailureInfo) GetOdataType()(*string) {
|
||||
return m.odataType
|
||||
}
|
||||
// GetReason gets the reason property value. Classification of why a call or portion of a call failed.
|
||||
func (m *FailureInfo) GetReason()(*string) {
|
||||
return m.reason
|
||||
}
|
||||
// GetStage gets the stage property value. The stage property
|
||||
func (m *FailureInfo) GetStage()(*FailureStage) {
|
||||
return m.stage
|
||||
}
|
||||
// Serialize serializes information the current object
|
||||
func (m *FailureInfo) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
|
||||
{
|
||||
err := writer.WriteStringValue("@odata.type", m.GetOdataType())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteStringValue("reason", m.GetReason())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
if m.GetStage() != nil {
|
||||
cast := (*m.GetStage()).String()
|
||||
err := writer.WriteStringValue("stage", &cast)
|
||||
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 *FailureInfo) SetAdditionalData(value map[string]interface{})() {
|
||||
m.additionalData = value
|
||||
}
|
||||
// SetOdataType sets the @odata.type property value. The OdataType property
|
||||
func (m *FailureInfo) SetOdataType(value *string)() {
|
||||
m.odataType = value
|
||||
}
|
||||
// SetReason sets the reason property value. Classification of why a call or portion of a call failed.
|
||||
func (m *FailureInfo) SetReason(value *string)() {
|
||||
m.reason = value
|
||||
}
|
||||
// SetStage sets the stage property value. The stage property
|
||||
func (m *FailureInfo) SetStage(value *FailureStage)() {
|
||||
m.stage = value
|
||||
}
|
||||
@ -0,0 +1,17 @@
|
||||
package callrecords
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// FailureInfoable
|
||||
type FailureInfoable interface {
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
||||
GetOdataType()(*string)
|
||||
GetReason()(*string)
|
||||
GetStage()(*FailureStage)
|
||||
SetOdataType(value *string)()
|
||||
SetReason(value *string)()
|
||||
SetStage(value *FailureStage)()
|
||||
}
|
||||
@ -0,0 +1,40 @@
|
||||
package callrecords
|
||||
import (
|
||||
"errors"
|
||||
)
|
||||
// Provides operations to manage the sites property of the microsoft.graph.browserSiteList entity.
|
||||
type FailureStage int
|
||||
|
||||
const (
|
||||
UNKNOWN_FAILURESTAGE FailureStage = iota
|
||||
CALLSETUP_FAILURESTAGE
|
||||
MIDCALL_FAILURESTAGE
|
||||
UNKNOWNFUTUREVALUE_FAILURESTAGE
|
||||
)
|
||||
|
||||
func (i FailureStage) String() string {
|
||||
return []string{"unknown", "callSetup", "midcall", "unknownFutureValue"}[i]
|
||||
}
|
||||
func ParseFailureStage(v string) (interface{}, error) {
|
||||
result := UNKNOWN_FAILURESTAGE
|
||||
switch v {
|
||||
case "unknown":
|
||||
result = UNKNOWN_FAILURESTAGE
|
||||
case "callSetup":
|
||||
result = CALLSETUP_FAILURESTAGE
|
||||
case "midcall":
|
||||
result = MIDCALL_FAILURESTAGE
|
||||
case "unknownFutureValue":
|
||||
result = UNKNOWNFUTUREVALUE_FAILURESTAGE
|
||||
default:
|
||||
return 0, errors.New("Unknown FailureStage value: " + v)
|
||||
}
|
||||
return &result, nil
|
||||
}
|
||||
func SerializeFailureStage(values []FailureStage) []string {
|
||||
result := make([]string, len(values))
|
||||
for i, v := range values {
|
||||
result[i] = v.String()
|
||||
}
|
||||
return result
|
||||
}
|
||||
@ -0,0 +1,71 @@
|
||||
package callrecords
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// FeedbackTokenSet
|
||||
type FeedbackTokenSet struct {
|
||||
// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
additionalData map[string]interface{}
|
||||
// The OdataType property
|
||||
odataType *string
|
||||
}
|
||||
// NewFeedbackTokenSet instantiates a new feedbackTokenSet and sets the default values.
|
||||
func NewFeedbackTokenSet()(*FeedbackTokenSet) {
|
||||
m := &FeedbackTokenSet{
|
||||
}
|
||||
m.SetAdditionalData(make(map[string]interface{}));
|
||||
return m
|
||||
}
|
||||
// CreateFeedbackTokenSetFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
||||
func CreateFeedbackTokenSetFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
||||
return NewFeedbackTokenSet(), 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 *FeedbackTokenSet) GetAdditionalData()(map[string]interface{}) {
|
||||
return m.additionalData
|
||||
}
|
||||
// GetFieldDeserializers the deserialization information for the current model
|
||||
func (m *FeedbackTokenSet) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
|
||||
res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
|
||||
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
|
||||
}
|
||||
return res
|
||||
}
|
||||
// GetOdataType gets the @odata.type property value. The OdataType property
|
||||
func (m *FeedbackTokenSet) GetOdataType()(*string) {
|
||||
return m.odataType
|
||||
}
|
||||
// Serialize serializes information the current object
|
||||
func (m *FeedbackTokenSet) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
|
||||
{
|
||||
err := writer.WriteStringValue("@odata.type", m.GetOdataType())
|
||||
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 *FeedbackTokenSet) SetAdditionalData(value map[string]interface{})() {
|
||||
m.additionalData = value
|
||||
}
|
||||
// SetOdataType sets the @odata.type property value. The OdataType property
|
||||
func (m *FeedbackTokenSet) SetOdataType(value *string)() {
|
||||
m.odataType = value
|
||||
}
|
||||
@ -0,0 +1,13 @@
|
||||
package callrecords
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// FeedbackTokenSetable
|
||||
type FeedbackTokenSetable interface {
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
||||
GetOdataType()(*string)
|
||||
SetOdataType(value *string)()
|
||||
}
|
||||
235
src/internal/connector/graph/betaSDK/models/callrecords/media.go
Normal file
235
src/internal/connector/graph/betaSDK/models/callrecords/media.go
Normal file
@ -0,0 +1,235 @@
|
||||
package callrecords
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// Media
|
||||
type Media struct {
|
||||
// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
additionalData map[string]interface{}
|
||||
// Device information associated with the callee endpoint of this media.
|
||||
calleeDevice DeviceInfoable
|
||||
// Network information associated with the callee endpoint of this media.
|
||||
calleeNetwork NetworkInfoable
|
||||
// Device information associated with the caller endpoint of this media.
|
||||
callerDevice DeviceInfoable
|
||||
// Network information associated with the caller endpoint of this media.
|
||||
callerNetwork NetworkInfoable
|
||||
// How the media was identified during media negotiation stage.
|
||||
label *string
|
||||
// The OdataType property
|
||||
odataType *string
|
||||
// Network streams associated with this media.
|
||||
streams []MediaStreamable
|
||||
}
|
||||
// NewMedia instantiates a new media and sets the default values.
|
||||
func NewMedia()(*Media) {
|
||||
m := &Media{
|
||||
}
|
||||
m.SetAdditionalData(make(map[string]interface{}));
|
||||
return m
|
||||
}
|
||||
// CreateMediaFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
||||
func CreateMediaFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
||||
return NewMedia(), 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 *Media) GetAdditionalData()(map[string]interface{}) {
|
||||
return m.additionalData
|
||||
}
|
||||
// GetCalleeDevice gets the calleeDevice property value. Device information associated with the callee endpoint of this media.
|
||||
func (m *Media) GetCalleeDevice()(DeviceInfoable) {
|
||||
return m.calleeDevice
|
||||
}
|
||||
// GetCalleeNetwork gets the calleeNetwork property value. Network information associated with the callee endpoint of this media.
|
||||
func (m *Media) GetCalleeNetwork()(NetworkInfoable) {
|
||||
return m.calleeNetwork
|
||||
}
|
||||
// GetCallerDevice gets the callerDevice property value. Device information associated with the caller endpoint of this media.
|
||||
func (m *Media) GetCallerDevice()(DeviceInfoable) {
|
||||
return m.callerDevice
|
||||
}
|
||||
// GetCallerNetwork gets the callerNetwork property value. Network information associated with the caller endpoint of this media.
|
||||
func (m *Media) GetCallerNetwork()(NetworkInfoable) {
|
||||
return m.callerNetwork
|
||||
}
|
||||
// GetFieldDeserializers the deserialization information for the current model
|
||||
func (m *Media) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
|
||||
res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
|
||||
res["calleeDevice"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetObjectValue(CreateDeviceInfoFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetCalleeDevice(val.(DeviceInfoable))
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["calleeNetwork"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetObjectValue(CreateNetworkInfoFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetCalleeNetwork(val.(NetworkInfoable))
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["callerDevice"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetObjectValue(CreateDeviceInfoFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetCallerDevice(val.(DeviceInfoable))
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["callerNetwork"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetObjectValue(CreateNetworkInfoFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetCallerNetwork(val.(NetworkInfoable))
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["label"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetLabel(val)
|
||||
}
|
||||
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["streams"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetCollectionOfObjectValues(CreateMediaStreamFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
res := make([]MediaStreamable, len(val))
|
||||
for i, v := range val {
|
||||
res[i] = v.(MediaStreamable)
|
||||
}
|
||||
m.SetStreams(res)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
return res
|
||||
}
|
||||
// GetLabel gets the label property value. How the media was identified during media negotiation stage.
|
||||
func (m *Media) GetLabel()(*string) {
|
||||
return m.label
|
||||
}
|
||||
// GetOdataType gets the @odata.type property value. The OdataType property
|
||||
func (m *Media) GetOdataType()(*string) {
|
||||
return m.odataType
|
||||
}
|
||||
// GetStreams gets the streams property value. Network streams associated with this media.
|
||||
func (m *Media) GetStreams()([]MediaStreamable) {
|
||||
return m.streams
|
||||
}
|
||||
// Serialize serializes information the current object
|
||||
func (m *Media) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
|
||||
{
|
||||
err := writer.WriteObjectValue("calleeDevice", m.GetCalleeDevice())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteObjectValue("calleeNetwork", m.GetCalleeNetwork())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteObjectValue("callerDevice", m.GetCallerDevice())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteObjectValue("callerNetwork", m.GetCallerNetwork())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteStringValue("label", m.GetLabel())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteStringValue("@odata.type", m.GetOdataType())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
if m.GetStreams() != nil {
|
||||
cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetStreams()))
|
||||
for i, v := range m.GetStreams() {
|
||||
cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable)
|
||||
}
|
||||
err := writer.WriteCollectionOfObjectValues("streams", cast)
|
||||
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 *Media) SetAdditionalData(value map[string]interface{})() {
|
||||
m.additionalData = value
|
||||
}
|
||||
// SetCalleeDevice sets the calleeDevice property value. Device information associated with the callee endpoint of this media.
|
||||
func (m *Media) SetCalleeDevice(value DeviceInfoable)() {
|
||||
m.calleeDevice = value
|
||||
}
|
||||
// SetCalleeNetwork sets the calleeNetwork property value. Network information associated with the callee endpoint of this media.
|
||||
func (m *Media) SetCalleeNetwork(value NetworkInfoable)() {
|
||||
m.calleeNetwork = value
|
||||
}
|
||||
// SetCallerDevice sets the callerDevice property value. Device information associated with the caller endpoint of this media.
|
||||
func (m *Media) SetCallerDevice(value DeviceInfoable)() {
|
||||
m.callerDevice = value
|
||||
}
|
||||
// SetCallerNetwork sets the callerNetwork property value. Network information associated with the caller endpoint of this media.
|
||||
func (m *Media) SetCallerNetwork(value NetworkInfoable)() {
|
||||
m.callerNetwork = value
|
||||
}
|
||||
// SetLabel sets the label property value. How the media was identified during media negotiation stage.
|
||||
func (m *Media) SetLabel(value *string)() {
|
||||
m.label = value
|
||||
}
|
||||
// SetOdataType sets the @odata.type property value. The OdataType property
|
||||
func (m *Media) SetOdataType(value *string)() {
|
||||
m.odataType = value
|
||||
}
|
||||
// SetStreams sets the streams property value. Network streams associated with this media.
|
||||
func (m *Media) SetStreams(value []MediaStreamable)() {
|
||||
m.streams = value
|
||||
}
|
||||
@ -0,0 +1,69 @@
|
||||
package callrecords
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models"
|
||||
)
|
||||
|
||||
// MediaCollectionResponse
|
||||
type MediaCollectionResponse struct {
|
||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.BaseCollectionPaginationCountResponse
|
||||
// The value property
|
||||
value []Mediaable
|
||||
}
|
||||
// NewMediaCollectionResponse instantiates a new MediaCollectionResponse and sets the default values.
|
||||
func NewMediaCollectionResponse()(*MediaCollectionResponse) {
|
||||
m := &MediaCollectionResponse{
|
||||
BaseCollectionPaginationCountResponse: *ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.NewBaseCollectionPaginationCountResponse(),
|
||||
}
|
||||
return m
|
||||
}
|
||||
// CreateMediaCollectionResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
||||
func CreateMediaCollectionResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
||||
return NewMediaCollectionResponse(), nil
|
||||
}
|
||||
// GetFieldDeserializers the deserialization information for the current model
|
||||
func (m *MediaCollectionResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
|
||||
res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers()
|
||||
res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetCollectionOfObjectValues(CreateMediaFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
res := make([]Mediaable, len(val))
|
||||
for i, v := range val {
|
||||
res[i] = v.(Mediaable)
|
||||
}
|
||||
m.SetValue(res)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
return res
|
||||
}
|
||||
// GetValue gets the value property value. The value property
|
||||
func (m *MediaCollectionResponse) GetValue()([]Mediaable) {
|
||||
return m.value
|
||||
}
|
||||
// Serialize serializes information the current object
|
||||
func (m *MediaCollectionResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
|
||||
err := m.BaseCollectionPaginationCountResponse.Serialize(writer)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if m.GetValue() != nil {
|
||||
cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue()))
|
||||
for i, v := range m.GetValue() {
|
||||
cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable)
|
||||
}
|
||||
err = writer.WriteCollectionOfObjectValues("value", cast)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
// SetValue sets the value property value. The value property
|
||||
func (m *MediaCollectionResponse) SetValue(value []Mediaable)() {
|
||||
m.value = value
|
||||
}
|
||||
@ -0,0 +1,14 @@
|
||||
package callrecords
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models"
|
||||
)
|
||||
|
||||
// MediaCollectionResponseable
|
||||
type MediaCollectionResponseable interface {
|
||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.BaseCollectionPaginationCountResponseable
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
||||
GetValue()([]Mediaable)
|
||||
SetValue(value []Mediaable)()
|
||||
}
|
||||
@ -0,0 +1,777 @@
|
||||
package callrecords
|
||||
|
||||
import (
|
||||
i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time"
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// MediaStream
|
||||
type MediaStream struct {
|
||||
// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
additionalData map[string]interface{}
|
||||
// Codec name used to encode audio for transmission on the network. Possible values are: unknown, invalid, cn, pcma, pcmu, amrWide, g722, g7221, g7221c, g729, multiChannelAudio, muchv2, opus, satin, satinFullband, rtAudio8, rtAudio16, silk, silkNarrow, silkWide, siren, xmsRTA, unknownFutureValue.
|
||||
audioCodec *AudioCodec
|
||||
// Average Network Mean Opinion Score degradation for stream. Represents how much the network loss and jitter has impacted the quality of received audio.
|
||||
averageAudioDegradation *float32
|
||||
// Average jitter for the stream computed as specified in [RFC 3550][], denoted in [ISO 8601][] format. For example, 1 second is denoted as 'PT1S', where 'P' is the duration designator, 'T' is the time designator, and 'S' is the second designator.
|
||||
averageAudioNetworkJitter *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ISODuration
|
||||
// Average estimated bandwidth available between two endpoints in bits per second.
|
||||
averageBandwidthEstimate *int64
|
||||
// Average jitter for the stream computed as specified in [RFC 3550][], denoted in [ISO 8601][] format. For example, 1 second is denoted as 'PT1S', where 'P' is the duration designator, 'T' is the time designator, and 'S' is the second designator.
|
||||
averageJitter *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ISODuration
|
||||
// Average packet loss rate for stream.
|
||||
averagePacketLossRate *float32
|
||||
// Ratio of the number of audio frames with samples generated by packet loss concealment to the total number of audio frames.
|
||||
averageRatioOfConcealedSamples *float32
|
||||
// Average frames per second received for all video streams computed over the duration of the session.
|
||||
averageReceivedFrameRate *float32
|
||||
// Average network propagation round-trip time computed as specified in [RFC 3550][], denoted in [ISO 8601][] format. For example, 1 second is denoted as 'PT1S', where 'P' is the duration designator, 'T' is the time designator, and 'S' is the second designator.
|
||||
averageRoundTripTime *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ISODuration
|
||||
// Average percentage of video frames lost as displayed to the user.
|
||||
averageVideoFrameLossPercentage *float32
|
||||
// Average frames per second received for a video stream, computed over the duration of the session.
|
||||
averageVideoFrameRate *float32
|
||||
// Average fraction of packets lost, as specified in [RFC 3550][], computed over the duration of the session.
|
||||
averageVideoPacketLossRate *float32
|
||||
// UTC time when the stream ended. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z
|
||||
endDateTime *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time
|
||||
// Fraction of the call where frame rate is less than 7.5 frames per second.
|
||||
lowFrameRateRatio *float32
|
||||
// Fraction of the call that the client is running less than 70% expected video processing capability.
|
||||
lowVideoProcessingCapabilityRatio *float32
|
||||
// Maximum of audio network jitter computed over each of the 20 second windows during the session, denoted in [ISO 8601][] format. For example, 1 second is denoted as 'PT1S', where 'P' is the duration designator, 'T' is the time designator, and 'S' is the second designator.
|
||||
maxAudioNetworkJitter *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ISODuration
|
||||
// Maximum jitter for the stream computed as specified in RFC 3550, denoted in [ISO 8601][] format. For example, 1 second is denoted as 'PT1S', where 'P' is the duration designator, 'T' is the time designator, and 'S' is the second designator.
|
||||
maxJitter *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ISODuration
|
||||
// Maximum packet loss rate for the stream.
|
||||
maxPacketLossRate *float32
|
||||
// Maximum ratio of packets concealed by the healer.
|
||||
maxRatioOfConcealedSamples *float32
|
||||
// Maximum network propagation round-trip time computed as specified in [RFC 3550][], denoted in [ISO 8601][] format. For example, 1 second is denoted as 'PT1S', where 'P' is the duration designator, 'T' is the time designator, and 'S' is the second designator.
|
||||
maxRoundTripTime *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ISODuration
|
||||
// The OdataType property
|
||||
odataType *string
|
||||
// Packet count for the stream.
|
||||
packetUtilization *int64
|
||||
// Packet loss rate after FEC has been applied aggregated across all video streams and codecs.
|
||||
postForwardErrorCorrectionPacketLossRate *float32
|
||||
// UTC time when the stream started. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z
|
||||
startDateTime *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time
|
||||
// The streamDirection property
|
||||
streamDirection *MediaStreamDirection
|
||||
// Unique identifier for the stream.
|
||||
streamId *string
|
||||
// Codec name used to encode video for transmission on the network. Possible values are: unknown, invalid, av1, h263, h264, h264s, h264uc, h265, rtvc1, rtVideo, xrtvc1, unknownFutureValue.
|
||||
videoCodec *VideoCodec
|
||||
// True if the media stream bypassed the Mediation Server and went straight between client and PSTN Gateway/PBX, false otherwise.
|
||||
wasMediaBypassed *bool
|
||||
}
|
||||
// NewMediaStream instantiates a new mediaStream and sets the default values.
|
||||
func NewMediaStream()(*MediaStream) {
|
||||
m := &MediaStream{
|
||||
}
|
||||
m.SetAdditionalData(make(map[string]interface{}));
|
||||
return m
|
||||
}
|
||||
// CreateMediaStreamFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
||||
func CreateMediaStreamFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
||||
return NewMediaStream(), 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 *MediaStream) GetAdditionalData()(map[string]interface{}) {
|
||||
return m.additionalData
|
||||
}
|
||||
// GetAudioCodec gets the audioCodec property value. Codec name used to encode audio for transmission on the network. Possible values are: unknown, invalid, cn, pcma, pcmu, amrWide, g722, g7221, g7221c, g729, multiChannelAudio, muchv2, opus, satin, satinFullband, rtAudio8, rtAudio16, silk, silkNarrow, silkWide, siren, xmsRTA, unknownFutureValue.
|
||||
func (m *MediaStream) GetAudioCodec()(*AudioCodec) {
|
||||
return m.audioCodec
|
||||
}
|
||||
// GetAverageAudioDegradation gets the averageAudioDegradation property value. Average Network Mean Opinion Score degradation for stream. Represents how much the network loss and jitter has impacted the quality of received audio.
|
||||
func (m *MediaStream) GetAverageAudioDegradation()(*float32) {
|
||||
return m.averageAudioDegradation
|
||||
}
|
||||
// GetAverageAudioNetworkJitter gets the averageAudioNetworkJitter property value. Average jitter for the stream computed as specified in [RFC 3550][], denoted in [ISO 8601][] format. For example, 1 second is denoted as 'PT1S', where 'P' is the duration designator, 'T' is the time designator, and 'S' is the second designator.
|
||||
func (m *MediaStream) GetAverageAudioNetworkJitter()(*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ISODuration) {
|
||||
return m.averageAudioNetworkJitter
|
||||
}
|
||||
// GetAverageBandwidthEstimate gets the averageBandwidthEstimate property value. Average estimated bandwidth available between two endpoints in bits per second.
|
||||
func (m *MediaStream) GetAverageBandwidthEstimate()(*int64) {
|
||||
return m.averageBandwidthEstimate
|
||||
}
|
||||
// GetAverageJitter gets the averageJitter property value. Average jitter for the stream computed as specified in [RFC 3550][], denoted in [ISO 8601][] format. For example, 1 second is denoted as 'PT1S', where 'P' is the duration designator, 'T' is the time designator, and 'S' is the second designator.
|
||||
func (m *MediaStream) GetAverageJitter()(*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ISODuration) {
|
||||
return m.averageJitter
|
||||
}
|
||||
// GetAveragePacketLossRate gets the averagePacketLossRate property value. Average packet loss rate for stream.
|
||||
func (m *MediaStream) GetAveragePacketLossRate()(*float32) {
|
||||
return m.averagePacketLossRate
|
||||
}
|
||||
// GetAverageRatioOfConcealedSamples gets the averageRatioOfConcealedSamples property value. Ratio of the number of audio frames with samples generated by packet loss concealment to the total number of audio frames.
|
||||
func (m *MediaStream) GetAverageRatioOfConcealedSamples()(*float32) {
|
||||
return m.averageRatioOfConcealedSamples
|
||||
}
|
||||
// GetAverageReceivedFrameRate gets the averageReceivedFrameRate property value. Average frames per second received for all video streams computed over the duration of the session.
|
||||
func (m *MediaStream) GetAverageReceivedFrameRate()(*float32) {
|
||||
return m.averageReceivedFrameRate
|
||||
}
|
||||
// GetAverageRoundTripTime gets the averageRoundTripTime property value. Average network propagation round-trip time computed as specified in [RFC 3550][], denoted in [ISO 8601][] format. For example, 1 second is denoted as 'PT1S', where 'P' is the duration designator, 'T' is the time designator, and 'S' is the second designator.
|
||||
func (m *MediaStream) GetAverageRoundTripTime()(*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ISODuration) {
|
||||
return m.averageRoundTripTime
|
||||
}
|
||||
// GetAverageVideoFrameLossPercentage gets the averageVideoFrameLossPercentage property value. Average percentage of video frames lost as displayed to the user.
|
||||
func (m *MediaStream) GetAverageVideoFrameLossPercentage()(*float32) {
|
||||
return m.averageVideoFrameLossPercentage
|
||||
}
|
||||
// GetAverageVideoFrameRate gets the averageVideoFrameRate property value. Average frames per second received for a video stream, computed over the duration of the session.
|
||||
func (m *MediaStream) GetAverageVideoFrameRate()(*float32) {
|
||||
return m.averageVideoFrameRate
|
||||
}
|
||||
// GetAverageVideoPacketLossRate gets the averageVideoPacketLossRate property value. Average fraction of packets lost, as specified in [RFC 3550][], computed over the duration of the session.
|
||||
func (m *MediaStream) GetAverageVideoPacketLossRate()(*float32) {
|
||||
return m.averageVideoPacketLossRate
|
||||
}
|
||||
// GetEndDateTime gets the endDateTime property value. UTC time when the stream ended. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z
|
||||
func (m *MediaStream) GetEndDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) {
|
||||
return m.endDateTime
|
||||
}
|
||||
// GetFieldDeserializers the deserialization information for the current model
|
||||
func (m *MediaStream) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
|
||||
res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
|
||||
res["audioCodec"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetEnumValue(ParseAudioCodec)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetAudioCodec(val.(*AudioCodec))
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["averageAudioDegradation"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetFloat32Value()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetAverageAudioDegradation(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["averageAudioNetworkJitter"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetISODurationValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetAverageAudioNetworkJitter(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["averageBandwidthEstimate"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetInt64Value()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetAverageBandwidthEstimate(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["averageJitter"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetISODurationValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetAverageJitter(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["averagePacketLossRate"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetFloat32Value()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetAveragePacketLossRate(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["averageRatioOfConcealedSamples"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetFloat32Value()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetAverageRatioOfConcealedSamples(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["averageReceivedFrameRate"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetFloat32Value()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetAverageReceivedFrameRate(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["averageRoundTripTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetISODurationValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetAverageRoundTripTime(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["averageVideoFrameLossPercentage"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetFloat32Value()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetAverageVideoFrameLossPercentage(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["averageVideoFrameRate"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetFloat32Value()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetAverageVideoFrameRate(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["averageVideoPacketLossRate"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetFloat32Value()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetAverageVideoPacketLossRate(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["endDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetTimeValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetEndDateTime(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["lowFrameRateRatio"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetFloat32Value()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetLowFrameRateRatio(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["lowVideoProcessingCapabilityRatio"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetFloat32Value()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetLowVideoProcessingCapabilityRatio(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["maxAudioNetworkJitter"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetISODurationValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetMaxAudioNetworkJitter(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["maxJitter"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetISODurationValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetMaxJitter(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["maxPacketLossRate"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetFloat32Value()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetMaxPacketLossRate(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["maxRatioOfConcealedSamples"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetFloat32Value()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetMaxRatioOfConcealedSamples(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["maxRoundTripTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetISODurationValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetMaxRoundTripTime(val)
|
||||
}
|
||||
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["packetUtilization"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetInt64Value()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetPacketUtilization(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["postForwardErrorCorrectionPacketLossRate"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetFloat32Value()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetPostForwardErrorCorrectionPacketLossRate(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["startDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetTimeValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetStartDateTime(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["streamDirection"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetEnumValue(ParseMediaStreamDirection)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetStreamDirection(val.(*MediaStreamDirection))
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["streamId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetStreamId(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["videoCodec"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetEnumValue(ParseVideoCodec)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetVideoCodec(val.(*VideoCodec))
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["wasMediaBypassed"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetBoolValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetWasMediaBypassed(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
return res
|
||||
}
|
||||
// GetLowFrameRateRatio gets the lowFrameRateRatio property value. Fraction of the call where frame rate is less than 7.5 frames per second.
|
||||
func (m *MediaStream) GetLowFrameRateRatio()(*float32) {
|
||||
return m.lowFrameRateRatio
|
||||
}
|
||||
// GetLowVideoProcessingCapabilityRatio gets the lowVideoProcessingCapabilityRatio property value. Fraction of the call that the client is running less than 70% expected video processing capability.
|
||||
func (m *MediaStream) GetLowVideoProcessingCapabilityRatio()(*float32) {
|
||||
return m.lowVideoProcessingCapabilityRatio
|
||||
}
|
||||
// GetMaxAudioNetworkJitter gets the maxAudioNetworkJitter property value. Maximum of audio network jitter computed over each of the 20 second windows during the session, denoted in [ISO 8601][] format. For example, 1 second is denoted as 'PT1S', where 'P' is the duration designator, 'T' is the time designator, and 'S' is the second designator.
|
||||
func (m *MediaStream) GetMaxAudioNetworkJitter()(*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ISODuration) {
|
||||
return m.maxAudioNetworkJitter
|
||||
}
|
||||
// GetMaxJitter gets the maxJitter property value. Maximum jitter for the stream computed as specified in RFC 3550, denoted in [ISO 8601][] format. For example, 1 second is denoted as 'PT1S', where 'P' is the duration designator, 'T' is the time designator, and 'S' is the second designator.
|
||||
func (m *MediaStream) GetMaxJitter()(*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ISODuration) {
|
||||
return m.maxJitter
|
||||
}
|
||||
// GetMaxPacketLossRate gets the maxPacketLossRate property value. Maximum packet loss rate for the stream.
|
||||
func (m *MediaStream) GetMaxPacketLossRate()(*float32) {
|
||||
return m.maxPacketLossRate
|
||||
}
|
||||
// GetMaxRatioOfConcealedSamples gets the maxRatioOfConcealedSamples property value. Maximum ratio of packets concealed by the healer.
|
||||
func (m *MediaStream) GetMaxRatioOfConcealedSamples()(*float32) {
|
||||
return m.maxRatioOfConcealedSamples
|
||||
}
|
||||
// GetMaxRoundTripTime gets the maxRoundTripTime property value. Maximum network propagation round-trip time computed as specified in [RFC 3550][], denoted in [ISO 8601][] format. For example, 1 second is denoted as 'PT1S', where 'P' is the duration designator, 'T' is the time designator, and 'S' is the second designator.
|
||||
func (m *MediaStream) GetMaxRoundTripTime()(*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ISODuration) {
|
||||
return m.maxRoundTripTime
|
||||
}
|
||||
// GetOdataType gets the @odata.type property value. The OdataType property
|
||||
func (m *MediaStream) GetOdataType()(*string) {
|
||||
return m.odataType
|
||||
}
|
||||
// GetPacketUtilization gets the packetUtilization property value. Packet count for the stream.
|
||||
func (m *MediaStream) GetPacketUtilization()(*int64) {
|
||||
return m.packetUtilization
|
||||
}
|
||||
// GetPostForwardErrorCorrectionPacketLossRate gets the postForwardErrorCorrectionPacketLossRate property value. Packet loss rate after FEC has been applied aggregated across all video streams and codecs.
|
||||
func (m *MediaStream) GetPostForwardErrorCorrectionPacketLossRate()(*float32) {
|
||||
return m.postForwardErrorCorrectionPacketLossRate
|
||||
}
|
||||
// GetStartDateTime gets the startDateTime property value. UTC time when the stream started. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z
|
||||
func (m *MediaStream) GetStartDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) {
|
||||
return m.startDateTime
|
||||
}
|
||||
// GetStreamDirection gets the streamDirection property value. The streamDirection property
|
||||
func (m *MediaStream) GetStreamDirection()(*MediaStreamDirection) {
|
||||
return m.streamDirection
|
||||
}
|
||||
// GetStreamId gets the streamId property value. Unique identifier for the stream.
|
||||
func (m *MediaStream) GetStreamId()(*string) {
|
||||
return m.streamId
|
||||
}
|
||||
// GetVideoCodec gets the videoCodec property value. Codec name used to encode video for transmission on the network. Possible values are: unknown, invalid, av1, h263, h264, h264s, h264uc, h265, rtvc1, rtVideo, xrtvc1, unknownFutureValue.
|
||||
func (m *MediaStream) GetVideoCodec()(*VideoCodec) {
|
||||
return m.videoCodec
|
||||
}
|
||||
// GetWasMediaBypassed gets the wasMediaBypassed property value. True if the media stream bypassed the Mediation Server and went straight between client and PSTN Gateway/PBX, false otherwise.
|
||||
func (m *MediaStream) GetWasMediaBypassed()(*bool) {
|
||||
return m.wasMediaBypassed
|
||||
}
|
||||
// Serialize serializes information the current object
|
||||
func (m *MediaStream) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
|
||||
if m.GetAudioCodec() != nil {
|
||||
cast := (*m.GetAudioCodec()).String()
|
||||
err := writer.WriteStringValue("audioCodec", &cast)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteFloat32Value("averageAudioDegradation", m.GetAverageAudioDegradation())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteISODurationValue("averageAudioNetworkJitter", m.GetAverageAudioNetworkJitter())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteInt64Value("averageBandwidthEstimate", m.GetAverageBandwidthEstimate())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteISODurationValue("averageJitter", m.GetAverageJitter())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteFloat32Value("averagePacketLossRate", m.GetAveragePacketLossRate())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteFloat32Value("averageRatioOfConcealedSamples", m.GetAverageRatioOfConcealedSamples())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteFloat32Value("averageReceivedFrameRate", m.GetAverageReceivedFrameRate())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteISODurationValue("averageRoundTripTime", m.GetAverageRoundTripTime())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteFloat32Value("averageVideoFrameLossPercentage", m.GetAverageVideoFrameLossPercentage())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteFloat32Value("averageVideoFrameRate", m.GetAverageVideoFrameRate())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteFloat32Value("averageVideoPacketLossRate", m.GetAverageVideoPacketLossRate())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteTimeValue("endDateTime", m.GetEndDateTime())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteFloat32Value("lowFrameRateRatio", m.GetLowFrameRateRatio())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteFloat32Value("lowVideoProcessingCapabilityRatio", m.GetLowVideoProcessingCapabilityRatio())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteISODurationValue("maxAudioNetworkJitter", m.GetMaxAudioNetworkJitter())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteISODurationValue("maxJitter", m.GetMaxJitter())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteFloat32Value("maxPacketLossRate", m.GetMaxPacketLossRate())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteFloat32Value("maxRatioOfConcealedSamples", m.GetMaxRatioOfConcealedSamples())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteISODurationValue("maxRoundTripTime", m.GetMaxRoundTripTime())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteStringValue("@odata.type", m.GetOdataType())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteInt64Value("packetUtilization", m.GetPacketUtilization())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteFloat32Value("postForwardErrorCorrectionPacketLossRate", m.GetPostForwardErrorCorrectionPacketLossRate())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteTimeValue("startDateTime", m.GetStartDateTime())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
if m.GetStreamDirection() != nil {
|
||||
cast := (*m.GetStreamDirection()).String()
|
||||
err := writer.WriteStringValue("streamDirection", &cast)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteStringValue("streamId", m.GetStreamId())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
if m.GetVideoCodec() != nil {
|
||||
cast := (*m.GetVideoCodec()).String()
|
||||
err := writer.WriteStringValue("videoCodec", &cast)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteBoolValue("wasMediaBypassed", m.GetWasMediaBypassed())
|
||||
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 *MediaStream) SetAdditionalData(value map[string]interface{})() {
|
||||
m.additionalData = value
|
||||
}
|
||||
// SetAudioCodec sets the audioCodec property value. Codec name used to encode audio for transmission on the network. Possible values are: unknown, invalid, cn, pcma, pcmu, amrWide, g722, g7221, g7221c, g729, multiChannelAudio, muchv2, opus, satin, satinFullband, rtAudio8, rtAudio16, silk, silkNarrow, silkWide, siren, xmsRTA, unknownFutureValue.
|
||||
func (m *MediaStream) SetAudioCodec(value *AudioCodec)() {
|
||||
m.audioCodec = value
|
||||
}
|
||||
// SetAverageAudioDegradation sets the averageAudioDegradation property value. Average Network Mean Opinion Score degradation for stream. Represents how much the network loss and jitter has impacted the quality of received audio.
|
||||
func (m *MediaStream) SetAverageAudioDegradation(value *float32)() {
|
||||
m.averageAudioDegradation = value
|
||||
}
|
||||
// SetAverageAudioNetworkJitter sets the averageAudioNetworkJitter property value. Average jitter for the stream computed as specified in [RFC 3550][], denoted in [ISO 8601][] format. For example, 1 second is denoted as 'PT1S', where 'P' is the duration designator, 'T' is the time designator, and 'S' is the second designator.
|
||||
func (m *MediaStream) SetAverageAudioNetworkJitter(value *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ISODuration)() {
|
||||
m.averageAudioNetworkJitter = value
|
||||
}
|
||||
// SetAverageBandwidthEstimate sets the averageBandwidthEstimate property value. Average estimated bandwidth available between two endpoints in bits per second.
|
||||
func (m *MediaStream) SetAverageBandwidthEstimate(value *int64)() {
|
||||
m.averageBandwidthEstimate = value
|
||||
}
|
||||
// SetAverageJitter sets the averageJitter property value. Average jitter for the stream computed as specified in [RFC 3550][], denoted in [ISO 8601][] format. For example, 1 second is denoted as 'PT1S', where 'P' is the duration designator, 'T' is the time designator, and 'S' is the second designator.
|
||||
func (m *MediaStream) SetAverageJitter(value *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ISODuration)() {
|
||||
m.averageJitter = value
|
||||
}
|
||||
// SetAveragePacketLossRate sets the averagePacketLossRate property value. Average packet loss rate for stream.
|
||||
func (m *MediaStream) SetAveragePacketLossRate(value *float32)() {
|
||||
m.averagePacketLossRate = value
|
||||
}
|
||||
// SetAverageRatioOfConcealedSamples sets the averageRatioOfConcealedSamples property value. Ratio of the number of audio frames with samples generated by packet loss concealment to the total number of audio frames.
|
||||
func (m *MediaStream) SetAverageRatioOfConcealedSamples(value *float32)() {
|
||||
m.averageRatioOfConcealedSamples = value
|
||||
}
|
||||
// SetAverageReceivedFrameRate sets the averageReceivedFrameRate property value. Average frames per second received for all video streams computed over the duration of the session.
|
||||
func (m *MediaStream) SetAverageReceivedFrameRate(value *float32)() {
|
||||
m.averageReceivedFrameRate = value
|
||||
}
|
||||
// SetAverageRoundTripTime sets the averageRoundTripTime property value. Average network propagation round-trip time computed as specified in [RFC 3550][], denoted in [ISO 8601][] format. For example, 1 second is denoted as 'PT1S', where 'P' is the duration designator, 'T' is the time designator, and 'S' is the second designator.
|
||||
func (m *MediaStream) SetAverageRoundTripTime(value *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ISODuration)() {
|
||||
m.averageRoundTripTime = value
|
||||
}
|
||||
// SetAverageVideoFrameLossPercentage sets the averageVideoFrameLossPercentage property value. Average percentage of video frames lost as displayed to the user.
|
||||
func (m *MediaStream) SetAverageVideoFrameLossPercentage(value *float32)() {
|
||||
m.averageVideoFrameLossPercentage = value
|
||||
}
|
||||
// SetAverageVideoFrameRate sets the averageVideoFrameRate property value. Average frames per second received for a video stream, computed over the duration of the session.
|
||||
func (m *MediaStream) SetAverageVideoFrameRate(value *float32)() {
|
||||
m.averageVideoFrameRate = value
|
||||
}
|
||||
// SetAverageVideoPacketLossRate sets the averageVideoPacketLossRate property value. Average fraction of packets lost, as specified in [RFC 3550][], computed over the duration of the session.
|
||||
func (m *MediaStream) SetAverageVideoPacketLossRate(value *float32)() {
|
||||
m.averageVideoPacketLossRate = value
|
||||
}
|
||||
// SetEndDateTime sets the endDateTime property value. UTC time when the stream ended. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z
|
||||
func (m *MediaStream) SetEndDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() {
|
||||
m.endDateTime = value
|
||||
}
|
||||
// SetLowFrameRateRatio sets the lowFrameRateRatio property value. Fraction of the call where frame rate is less than 7.5 frames per second.
|
||||
func (m *MediaStream) SetLowFrameRateRatio(value *float32)() {
|
||||
m.lowFrameRateRatio = value
|
||||
}
|
||||
// SetLowVideoProcessingCapabilityRatio sets the lowVideoProcessingCapabilityRatio property value. Fraction of the call that the client is running less than 70% expected video processing capability.
|
||||
func (m *MediaStream) SetLowVideoProcessingCapabilityRatio(value *float32)() {
|
||||
m.lowVideoProcessingCapabilityRatio = value
|
||||
}
|
||||
// SetMaxAudioNetworkJitter sets the maxAudioNetworkJitter property value. Maximum of audio network jitter computed over each of the 20 second windows during the session, denoted in [ISO 8601][] format. For example, 1 second is denoted as 'PT1S', where 'P' is the duration designator, 'T' is the time designator, and 'S' is the second designator.
|
||||
func (m *MediaStream) SetMaxAudioNetworkJitter(value *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ISODuration)() {
|
||||
m.maxAudioNetworkJitter = value
|
||||
}
|
||||
// SetMaxJitter sets the maxJitter property value. Maximum jitter for the stream computed as specified in RFC 3550, denoted in [ISO 8601][] format. For example, 1 second is denoted as 'PT1S', where 'P' is the duration designator, 'T' is the time designator, and 'S' is the second designator.
|
||||
func (m *MediaStream) SetMaxJitter(value *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ISODuration)() {
|
||||
m.maxJitter = value
|
||||
}
|
||||
// SetMaxPacketLossRate sets the maxPacketLossRate property value. Maximum packet loss rate for the stream.
|
||||
func (m *MediaStream) SetMaxPacketLossRate(value *float32)() {
|
||||
m.maxPacketLossRate = value
|
||||
}
|
||||
// SetMaxRatioOfConcealedSamples sets the maxRatioOfConcealedSamples property value. Maximum ratio of packets concealed by the healer.
|
||||
func (m *MediaStream) SetMaxRatioOfConcealedSamples(value *float32)() {
|
||||
m.maxRatioOfConcealedSamples = value
|
||||
}
|
||||
// SetMaxRoundTripTime sets the maxRoundTripTime property value. Maximum network propagation round-trip time computed as specified in [RFC 3550][], denoted in [ISO 8601][] format. For example, 1 second is denoted as 'PT1S', where 'P' is the duration designator, 'T' is the time designator, and 'S' is the second designator.
|
||||
func (m *MediaStream) SetMaxRoundTripTime(value *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ISODuration)() {
|
||||
m.maxRoundTripTime = value
|
||||
}
|
||||
// SetOdataType sets the @odata.type property value. The OdataType property
|
||||
func (m *MediaStream) SetOdataType(value *string)() {
|
||||
m.odataType = value
|
||||
}
|
||||
// SetPacketUtilization sets the packetUtilization property value. Packet count for the stream.
|
||||
func (m *MediaStream) SetPacketUtilization(value *int64)() {
|
||||
m.packetUtilization = value
|
||||
}
|
||||
// SetPostForwardErrorCorrectionPacketLossRate sets the postForwardErrorCorrectionPacketLossRate property value. Packet loss rate after FEC has been applied aggregated across all video streams and codecs.
|
||||
func (m *MediaStream) SetPostForwardErrorCorrectionPacketLossRate(value *float32)() {
|
||||
m.postForwardErrorCorrectionPacketLossRate = value
|
||||
}
|
||||
// SetStartDateTime sets the startDateTime property value. UTC time when the stream started. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z
|
||||
func (m *MediaStream) SetStartDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() {
|
||||
m.startDateTime = value
|
||||
}
|
||||
// SetStreamDirection sets the streamDirection property value. The streamDirection property
|
||||
func (m *MediaStream) SetStreamDirection(value *MediaStreamDirection)() {
|
||||
m.streamDirection = value
|
||||
}
|
||||
// SetStreamId sets the streamId property value. Unique identifier for the stream.
|
||||
func (m *MediaStream) SetStreamId(value *string)() {
|
||||
m.streamId = value
|
||||
}
|
||||
// SetVideoCodec sets the videoCodec property value. Codec name used to encode video for transmission on the network. Possible values are: unknown, invalid, av1, h263, h264, h264s, h264uc, h265, rtvc1, rtVideo, xrtvc1, unknownFutureValue.
|
||||
func (m *MediaStream) SetVideoCodec(value *VideoCodec)() {
|
||||
m.videoCodec = value
|
||||
}
|
||||
// SetWasMediaBypassed sets the wasMediaBypassed property value. True if the media stream bypassed the Mediation Server and went straight between client and PSTN Gateway/PBX, false otherwise.
|
||||
func (m *MediaStream) SetWasMediaBypassed(value *bool)() {
|
||||
m.wasMediaBypassed = value
|
||||
}
|
||||
@ -0,0 +1,69 @@
|
||||
package callrecords
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models"
|
||||
)
|
||||
|
||||
// MediaStreamCollectionResponse
|
||||
type MediaStreamCollectionResponse struct {
|
||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.BaseCollectionPaginationCountResponse
|
||||
// The value property
|
||||
value []MediaStreamable
|
||||
}
|
||||
// NewMediaStreamCollectionResponse instantiates a new MediaStreamCollectionResponse and sets the default values.
|
||||
func NewMediaStreamCollectionResponse()(*MediaStreamCollectionResponse) {
|
||||
m := &MediaStreamCollectionResponse{
|
||||
BaseCollectionPaginationCountResponse: *ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.NewBaseCollectionPaginationCountResponse(),
|
||||
}
|
||||
return m
|
||||
}
|
||||
// CreateMediaStreamCollectionResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
||||
func CreateMediaStreamCollectionResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
||||
return NewMediaStreamCollectionResponse(), nil
|
||||
}
|
||||
// GetFieldDeserializers the deserialization information for the current model
|
||||
func (m *MediaStreamCollectionResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
|
||||
res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers()
|
||||
res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetCollectionOfObjectValues(CreateMediaStreamFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
res := make([]MediaStreamable, len(val))
|
||||
for i, v := range val {
|
||||
res[i] = v.(MediaStreamable)
|
||||
}
|
||||
m.SetValue(res)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
return res
|
||||
}
|
||||
// GetValue gets the value property value. The value property
|
||||
func (m *MediaStreamCollectionResponse) GetValue()([]MediaStreamable) {
|
||||
return m.value
|
||||
}
|
||||
// Serialize serializes information the current object
|
||||
func (m *MediaStreamCollectionResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
|
||||
err := m.BaseCollectionPaginationCountResponse.Serialize(writer)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if m.GetValue() != nil {
|
||||
cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue()))
|
||||
for i, v := range m.GetValue() {
|
||||
cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable)
|
||||
}
|
||||
err = writer.WriteCollectionOfObjectValues("value", cast)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
// SetValue sets the value property value. The value property
|
||||
func (m *MediaStreamCollectionResponse) SetValue(value []MediaStreamable)() {
|
||||
m.value = value
|
||||
}
|
||||
@ -0,0 +1,14 @@
|
||||
package callrecords
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models"
|
||||
)
|
||||
|
||||
// MediaStreamCollectionResponseable
|
||||
type MediaStreamCollectionResponseable interface {
|
||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.BaseCollectionPaginationCountResponseable
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
||||
GetValue()([]MediaStreamable)
|
||||
SetValue(value []MediaStreamable)()
|
||||
}
|
||||
@ -0,0 +1,34 @@
|
||||
package callrecords
|
||||
import (
|
||||
"errors"
|
||||
)
|
||||
// Provides operations to manage the sites property of the microsoft.graph.browserSiteList entity.
|
||||
type MediaStreamDirection int
|
||||
|
||||
const (
|
||||
CALLERTOCALLEE_MEDIASTREAMDIRECTION MediaStreamDirection = iota
|
||||
CALLEETOCALLER_MEDIASTREAMDIRECTION
|
||||
)
|
||||
|
||||
func (i MediaStreamDirection) String() string {
|
||||
return []string{"callerToCallee", "calleeToCaller"}[i]
|
||||
}
|
||||
func ParseMediaStreamDirection(v string) (interface{}, error) {
|
||||
result := CALLERTOCALLEE_MEDIASTREAMDIRECTION
|
||||
switch v {
|
||||
case "callerToCallee":
|
||||
result = CALLERTOCALLEE_MEDIASTREAMDIRECTION
|
||||
case "calleeToCaller":
|
||||
result = CALLEETOCALLER_MEDIASTREAMDIRECTION
|
||||
default:
|
||||
return 0, errors.New("Unknown MediaStreamDirection value: " + v)
|
||||
}
|
||||
return &result, nil
|
||||
}
|
||||
func SerializeMediaStreamDirection(values []MediaStreamDirection) []string {
|
||||
result := make([]string, len(values))
|
||||
for i, v := range values {
|
||||
result[i] = v.String()
|
||||
}
|
||||
return result
|
||||
}
|
||||
@ -0,0 +1,68 @@
|
||||
package callrecords
|
||||
|
||||
import (
|
||||
i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time"
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// MediaStreamable
|
||||
type MediaStreamable interface {
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
||||
GetAudioCodec()(*AudioCodec)
|
||||
GetAverageAudioDegradation()(*float32)
|
||||
GetAverageAudioNetworkJitter()(*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ISODuration)
|
||||
GetAverageBandwidthEstimate()(*int64)
|
||||
GetAverageJitter()(*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ISODuration)
|
||||
GetAveragePacketLossRate()(*float32)
|
||||
GetAverageRatioOfConcealedSamples()(*float32)
|
||||
GetAverageReceivedFrameRate()(*float32)
|
||||
GetAverageRoundTripTime()(*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ISODuration)
|
||||
GetAverageVideoFrameLossPercentage()(*float32)
|
||||
GetAverageVideoFrameRate()(*float32)
|
||||
GetAverageVideoPacketLossRate()(*float32)
|
||||
GetEndDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)
|
||||
GetLowFrameRateRatio()(*float32)
|
||||
GetLowVideoProcessingCapabilityRatio()(*float32)
|
||||
GetMaxAudioNetworkJitter()(*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ISODuration)
|
||||
GetMaxJitter()(*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ISODuration)
|
||||
GetMaxPacketLossRate()(*float32)
|
||||
GetMaxRatioOfConcealedSamples()(*float32)
|
||||
GetMaxRoundTripTime()(*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ISODuration)
|
||||
GetOdataType()(*string)
|
||||
GetPacketUtilization()(*int64)
|
||||
GetPostForwardErrorCorrectionPacketLossRate()(*float32)
|
||||
GetStartDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)
|
||||
GetStreamDirection()(*MediaStreamDirection)
|
||||
GetStreamId()(*string)
|
||||
GetVideoCodec()(*VideoCodec)
|
||||
GetWasMediaBypassed()(*bool)
|
||||
SetAudioCodec(value *AudioCodec)()
|
||||
SetAverageAudioDegradation(value *float32)()
|
||||
SetAverageAudioNetworkJitter(value *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ISODuration)()
|
||||
SetAverageBandwidthEstimate(value *int64)()
|
||||
SetAverageJitter(value *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ISODuration)()
|
||||
SetAveragePacketLossRate(value *float32)()
|
||||
SetAverageRatioOfConcealedSamples(value *float32)()
|
||||
SetAverageReceivedFrameRate(value *float32)()
|
||||
SetAverageRoundTripTime(value *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ISODuration)()
|
||||
SetAverageVideoFrameLossPercentage(value *float32)()
|
||||
SetAverageVideoFrameRate(value *float32)()
|
||||
SetAverageVideoPacketLossRate(value *float32)()
|
||||
SetEndDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)()
|
||||
SetLowFrameRateRatio(value *float32)()
|
||||
SetLowVideoProcessingCapabilityRatio(value *float32)()
|
||||
SetMaxAudioNetworkJitter(value *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ISODuration)()
|
||||
SetMaxJitter(value *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ISODuration)()
|
||||
SetMaxPacketLossRate(value *float32)()
|
||||
SetMaxRatioOfConcealedSamples(value *float32)()
|
||||
SetMaxRoundTripTime(value *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ISODuration)()
|
||||
SetOdataType(value *string)()
|
||||
SetPacketUtilization(value *int64)()
|
||||
SetPostForwardErrorCorrectionPacketLossRate(value *float32)()
|
||||
SetStartDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)()
|
||||
SetStreamDirection(value *MediaStreamDirection)()
|
||||
SetStreamId(value *string)()
|
||||
SetVideoCodec(value *VideoCodec)()
|
||||
SetWasMediaBypassed(value *bool)()
|
||||
}
|
||||
@ -0,0 +1,25 @@
|
||||
package callrecords
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// Mediaable
|
||||
type Mediaable interface {
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
||||
GetCalleeDevice()(DeviceInfoable)
|
||||
GetCalleeNetwork()(NetworkInfoable)
|
||||
GetCallerDevice()(DeviceInfoable)
|
||||
GetCallerNetwork()(NetworkInfoable)
|
||||
GetLabel()(*string)
|
||||
GetOdataType()(*string)
|
||||
GetStreams()([]MediaStreamable)
|
||||
SetCalleeDevice(value DeviceInfoable)()
|
||||
SetCalleeNetwork(value NetworkInfoable)()
|
||||
SetCallerDevice(value DeviceInfoable)()
|
||||
SetCallerNetwork(value NetworkInfoable)()
|
||||
SetLabel(value *string)()
|
||||
SetOdataType(value *string)()
|
||||
SetStreams(value []MediaStreamable)()
|
||||
}
|
||||
@ -0,0 +1,46 @@
|
||||
package callrecords
|
||||
import (
|
||||
"errors"
|
||||
)
|
||||
// Provides operations to manage the sites property of the microsoft.graph.browserSiteList entity.
|
||||
type Modality int
|
||||
|
||||
const (
|
||||
AUDIO_MODALITY Modality = iota
|
||||
VIDEO_MODALITY
|
||||
VIDEOBASEDSCREENSHARING_MODALITY
|
||||
DATA_MODALITY
|
||||
SCREENSHARING_MODALITY
|
||||
UNKNOWNFUTUREVALUE_MODALITY
|
||||
)
|
||||
|
||||
func (i Modality) String() string {
|
||||
return []string{"audio", "video", "videoBasedScreenSharing", "data", "screenSharing", "unknownFutureValue"}[i]
|
||||
}
|
||||
func ParseModality(v string) (interface{}, error) {
|
||||
result := AUDIO_MODALITY
|
||||
switch v {
|
||||
case "audio":
|
||||
result = AUDIO_MODALITY
|
||||
case "video":
|
||||
result = VIDEO_MODALITY
|
||||
case "videoBasedScreenSharing":
|
||||
result = VIDEOBASEDSCREENSHARING_MODALITY
|
||||
case "data":
|
||||
result = DATA_MODALITY
|
||||
case "screenSharing":
|
||||
result = SCREENSHARING_MODALITY
|
||||
case "unknownFutureValue":
|
||||
result = UNKNOWNFUTUREVALUE_MODALITY
|
||||
default:
|
||||
return 0, errors.New("Unknown Modality value: " + v)
|
||||
}
|
||||
return &result, nil
|
||||
}
|
||||
func SerializeModality(values []Modality) []string {
|
||||
result := make([]string, len(values))
|
||||
for i, v := range values {
|
||||
result[i] = v.String()
|
||||
}
|
||||
return result
|
||||
}
|
||||
@ -0,0 +1,46 @@
|
||||
package callrecords
|
||||
import (
|
||||
"errors"
|
||||
)
|
||||
// Provides operations to manage the sites property of the microsoft.graph.browserSiteList entity.
|
||||
type NetworkConnectionType int
|
||||
|
||||
const (
|
||||
UNKNOWN_NETWORKCONNECTIONTYPE NetworkConnectionType = iota
|
||||
WIRED_NETWORKCONNECTIONTYPE
|
||||
WIFI_NETWORKCONNECTIONTYPE
|
||||
MOBILE_NETWORKCONNECTIONTYPE
|
||||
TUNNEL_NETWORKCONNECTIONTYPE
|
||||
UNKNOWNFUTUREVALUE_NETWORKCONNECTIONTYPE
|
||||
)
|
||||
|
||||
func (i NetworkConnectionType) String() string {
|
||||
return []string{"unknown", "wired", "wifi", "mobile", "tunnel", "unknownFutureValue"}[i]
|
||||
}
|
||||
func ParseNetworkConnectionType(v string) (interface{}, error) {
|
||||
result := UNKNOWN_NETWORKCONNECTIONTYPE
|
||||
switch v {
|
||||
case "unknown":
|
||||
result = UNKNOWN_NETWORKCONNECTIONTYPE
|
||||
case "wired":
|
||||
result = WIRED_NETWORKCONNECTIONTYPE
|
||||
case "wifi":
|
||||
result = WIFI_NETWORKCONNECTIONTYPE
|
||||
case "mobile":
|
||||
result = MOBILE_NETWORKCONNECTIONTYPE
|
||||
case "tunnel":
|
||||
result = TUNNEL_NETWORKCONNECTIONTYPE
|
||||
case "unknownFutureValue":
|
||||
result = UNKNOWNFUTUREVALUE_NETWORKCONNECTIONTYPE
|
||||
default:
|
||||
return 0, errors.New("Unknown NetworkConnectionType value: " + v)
|
||||
}
|
||||
return &result, nil
|
||||
}
|
||||
func SerializeNetworkConnectionType(values []NetworkConnectionType) []string {
|
||||
result := make([]string, len(values))
|
||||
for i, v := range values {
|
||||
result[i] = v.String()
|
||||
}
|
||||
return result
|
||||
}
|
||||
@ -0,0 +1,759 @@
|
||||
package callrecords
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// NetworkInfo
|
||||
type NetworkInfo struct {
|
||||
// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
additionalData map[string]interface{}
|
||||
// Fraction of the call that the media endpoint detected the available bandwidth or bandwidth policy was low enough to cause poor quality of the audio sent.
|
||||
bandwidthLowEventRatio *float32
|
||||
// The wireless LAN basic service set identifier of the media endpoint used to connect to the network.
|
||||
basicServiceSetIdentifier *string
|
||||
// The connectionType property
|
||||
connectionType *NetworkConnectionType
|
||||
// Fraction of the call that the media endpoint detected the network delay was significant enough to impact the ability to have real-time two-way communication.
|
||||
delayEventRatio *float32
|
||||
// DNS suffix associated with the network adapter of the media endpoint.
|
||||
dnsSuffix *string
|
||||
// IP address of the media endpoint.
|
||||
ipAddress *string
|
||||
// Link speed in bits per second reported by the network adapter used by the media endpoint.
|
||||
linkSpeed *int64
|
||||
// The media access control (MAC) address of the media endpoint's network device.
|
||||
macAddress *string
|
||||
// The networkTransportProtocol property
|
||||
networkTransportProtocol *NetworkTransportProtocol
|
||||
// The OdataType property
|
||||
odataType *string
|
||||
// Network port number used by media endpoint.
|
||||
port *int32
|
||||
// Fraction of the call that the media endpoint detected the network was causing poor quality of the audio received.
|
||||
receivedQualityEventRatio *float32
|
||||
// IP address of the media endpoint as seen by the media relay server. This is typically the public internet IP address associated to the endpoint.
|
||||
reflexiveIPAddress *string
|
||||
// IP address of the media relay server allocated by the media endpoint.
|
||||
relayIPAddress *string
|
||||
// Network port number allocated on the media relay server by the media endpoint.
|
||||
relayPort *int32
|
||||
// Fraction of the call that the media endpoint detected the network was causing poor quality of the audio sent.
|
||||
sentQualityEventRatio *float32
|
||||
// Subnet used for media stream by the media endpoint.
|
||||
subnet *string
|
||||
// List of network trace route hops collected for this media stream.*
|
||||
traceRouteHops []TraceRouteHopable
|
||||
// The wifiBand property
|
||||
wifiBand *WifiBand
|
||||
// Estimated remaining battery charge in percentage reported by the media endpoint.
|
||||
wifiBatteryCharge *int32
|
||||
// WiFi channel used by the media endpoint.
|
||||
wifiChannel *int32
|
||||
// Name of the Microsoft WiFi driver used by the media endpoint. Value may be localized based on the language used by endpoint.
|
||||
wifiMicrosoftDriver *string
|
||||
// Version of the Microsoft WiFi driver used by the media endpoint.
|
||||
wifiMicrosoftDriverVersion *string
|
||||
// The wifiRadioType property
|
||||
wifiRadioType *WifiRadioType
|
||||
// WiFi signal strength in percentage reported by the media endpoint.
|
||||
wifiSignalStrength *int32
|
||||
// Name of the WiFi driver used by the media endpoint. Value may be localized based on the language used by endpoint.
|
||||
wifiVendorDriver *string
|
||||
// Version of the WiFi driver used by the media endpoint.
|
||||
wifiVendorDriverVersion *string
|
||||
}
|
||||
// NewNetworkInfo instantiates a new networkInfo and sets the default values.
|
||||
func NewNetworkInfo()(*NetworkInfo) {
|
||||
m := &NetworkInfo{
|
||||
}
|
||||
m.SetAdditionalData(make(map[string]interface{}));
|
||||
return m
|
||||
}
|
||||
// CreateNetworkInfoFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
||||
func CreateNetworkInfoFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
||||
return NewNetworkInfo(), 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 *NetworkInfo) GetAdditionalData()(map[string]interface{}) {
|
||||
return m.additionalData
|
||||
}
|
||||
// GetBandwidthLowEventRatio gets the bandwidthLowEventRatio property value. Fraction of the call that the media endpoint detected the available bandwidth or bandwidth policy was low enough to cause poor quality of the audio sent.
|
||||
func (m *NetworkInfo) GetBandwidthLowEventRatio()(*float32) {
|
||||
return m.bandwidthLowEventRatio
|
||||
}
|
||||
// GetBasicServiceSetIdentifier gets the basicServiceSetIdentifier property value. The wireless LAN basic service set identifier of the media endpoint used to connect to the network.
|
||||
func (m *NetworkInfo) GetBasicServiceSetIdentifier()(*string) {
|
||||
return m.basicServiceSetIdentifier
|
||||
}
|
||||
// GetConnectionType gets the connectionType property value. The connectionType property
|
||||
func (m *NetworkInfo) GetConnectionType()(*NetworkConnectionType) {
|
||||
return m.connectionType
|
||||
}
|
||||
// GetDelayEventRatio gets the delayEventRatio property value. Fraction of the call that the media endpoint detected the network delay was significant enough to impact the ability to have real-time two-way communication.
|
||||
func (m *NetworkInfo) GetDelayEventRatio()(*float32) {
|
||||
return m.delayEventRatio
|
||||
}
|
||||
// GetDnsSuffix gets the dnsSuffix property value. DNS suffix associated with the network adapter of the media endpoint.
|
||||
func (m *NetworkInfo) GetDnsSuffix()(*string) {
|
||||
return m.dnsSuffix
|
||||
}
|
||||
// GetFieldDeserializers the deserialization information for the current model
|
||||
func (m *NetworkInfo) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
|
||||
res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
|
||||
res["bandwidthLowEventRatio"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetFloat32Value()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetBandwidthLowEventRatio(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["basicServiceSetIdentifier"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetBasicServiceSetIdentifier(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["connectionType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetEnumValue(ParseNetworkConnectionType)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetConnectionType(val.(*NetworkConnectionType))
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["delayEventRatio"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetFloat32Value()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetDelayEventRatio(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["dnsSuffix"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetDnsSuffix(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["ipAddress"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetIpAddress(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["linkSpeed"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetInt64Value()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetLinkSpeed(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["macAddress"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetMacAddress(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["networkTransportProtocol"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetEnumValue(ParseNetworkTransportProtocol)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetNetworkTransportProtocol(val.(*NetworkTransportProtocol))
|
||||
}
|
||||
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["port"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetInt32Value()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetPort(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["receivedQualityEventRatio"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetFloat32Value()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetReceivedQualityEventRatio(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["reflexiveIPAddress"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetReflexiveIPAddress(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["relayIPAddress"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetRelayIPAddress(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["relayPort"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetInt32Value()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetRelayPort(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["sentQualityEventRatio"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetFloat32Value()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetSentQualityEventRatio(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["subnet"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetSubnet(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["traceRouteHops"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetCollectionOfObjectValues(CreateTraceRouteHopFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
res := make([]TraceRouteHopable, len(val))
|
||||
for i, v := range val {
|
||||
res[i] = v.(TraceRouteHopable)
|
||||
}
|
||||
m.SetTraceRouteHops(res)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["wifiBand"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetEnumValue(ParseWifiBand)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetWifiBand(val.(*WifiBand))
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["wifiBatteryCharge"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetInt32Value()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetWifiBatteryCharge(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["wifiChannel"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetInt32Value()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetWifiChannel(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["wifiMicrosoftDriver"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetWifiMicrosoftDriver(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["wifiMicrosoftDriverVersion"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetWifiMicrosoftDriverVersion(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["wifiRadioType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetEnumValue(ParseWifiRadioType)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetWifiRadioType(val.(*WifiRadioType))
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["wifiSignalStrength"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetInt32Value()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetWifiSignalStrength(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["wifiVendorDriver"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetWifiVendorDriver(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["wifiVendorDriverVersion"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetWifiVendorDriverVersion(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
return res
|
||||
}
|
||||
// GetIpAddress gets the ipAddress property value. IP address of the media endpoint.
|
||||
func (m *NetworkInfo) GetIpAddress()(*string) {
|
||||
return m.ipAddress
|
||||
}
|
||||
// GetLinkSpeed gets the linkSpeed property value. Link speed in bits per second reported by the network adapter used by the media endpoint.
|
||||
func (m *NetworkInfo) GetLinkSpeed()(*int64) {
|
||||
return m.linkSpeed
|
||||
}
|
||||
// GetMacAddress gets the macAddress property value. The media access control (MAC) address of the media endpoint's network device.
|
||||
func (m *NetworkInfo) GetMacAddress()(*string) {
|
||||
return m.macAddress
|
||||
}
|
||||
// GetNetworkTransportProtocol gets the networkTransportProtocol property value. The networkTransportProtocol property
|
||||
func (m *NetworkInfo) GetNetworkTransportProtocol()(*NetworkTransportProtocol) {
|
||||
return m.networkTransportProtocol
|
||||
}
|
||||
// GetOdataType gets the @odata.type property value. The OdataType property
|
||||
func (m *NetworkInfo) GetOdataType()(*string) {
|
||||
return m.odataType
|
||||
}
|
||||
// GetPort gets the port property value. Network port number used by media endpoint.
|
||||
func (m *NetworkInfo) GetPort()(*int32) {
|
||||
return m.port
|
||||
}
|
||||
// GetReceivedQualityEventRatio gets the receivedQualityEventRatio property value. Fraction of the call that the media endpoint detected the network was causing poor quality of the audio received.
|
||||
func (m *NetworkInfo) GetReceivedQualityEventRatio()(*float32) {
|
||||
return m.receivedQualityEventRatio
|
||||
}
|
||||
// GetReflexiveIPAddress gets the reflexiveIPAddress property value. IP address of the media endpoint as seen by the media relay server. This is typically the public internet IP address associated to the endpoint.
|
||||
func (m *NetworkInfo) GetReflexiveIPAddress()(*string) {
|
||||
return m.reflexiveIPAddress
|
||||
}
|
||||
// GetRelayIPAddress gets the relayIPAddress property value. IP address of the media relay server allocated by the media endpoint.
|
||||
func (m *NetworkInfo) GetRelayIPAddress()(*string) {
|
||||
return m.relayIPAddress
|
||||
}
|
||||
// GetRelayPort gets the relayPort property value. Network port number allocated on the media relay server by the media endpoint.
|
||||
func (m *NetworkInfo) GetRelayPort()(*int32) {
|
||||
return m.relayPort
|
||||
}
|
||||
// GetSentQualityEventRatio gets the sentQualityEventRatio property value. Fraction of the call that the media endpoint detected the network was causing poor quality of the audio sent.
|
||||
func (m *NetworkInfo) GetSentQualityEventRatio()(*float32) {
|
||||
return m.sentQualityEventRatio
|
||||
}
|
||||
// GetSubnet gets the subnet property value. Subnet used for media stream by the media endpoint.
|
||||
func (m *NetworkInfo) GetSubnet()(*string) {
|
||||
return m.subnet
|
||||
}
|
||||
// GetTraceRouteHops gets the traceRouteHops property value. List of network trace route hops collected for this media stream.*
|
||||
func (m *NetworkInfo) GetTraceRouteHops()([]TraceRouteHopable) {
|
||||
return m.traceRouteHops
|
||||
}
|
||||
// GetWifiBand gets the wifiBand property value. The wifiBand property
|
||||
func (m *NetworkInfo) GetWifiBand()(*WifiBand) {
|
||||
return m.wifiBand
|
||||
}
|
||||
// GetWifiBatteryCharge gets the wifiBatteryCharge property value. Estimated remaining battery charge in percentage reported by the media endpoint.
|
||||
func (m *NetworkInfo) GetWifiBatteryCharge()(*int32) {
|
||||
return m.wifiBatteryCharge
|
||||
}
|
||||
// GetWifiChannel gets the wifiChannel property value. WiFi channel used by the media endpoint.
|
||||
func (m *NetworkInfo) GetWifiChannel()(*int32) {
|
||||
return m.wifiChannel
|
||||
}
|
||||
// GetWifiMicrosoftDriver gets the wifiMicrosoftDriver property value. Name of the Microsoft WiFi driver used by the media endpoint. Value may be localized based on the language used by endpoint.
|
||||
func (m *NetworkInfo) GetWifiMicrosoftDriver()(*string) {
|
||||
return m.wifiMicrosoftDriver
|
||||
}
|
||||
// GetWifiMicrosoftDriverVersion gets the wifiMicrosoftDriverVersion property value. Version of the Microsoft WiFi driver used by the media endpoint.
|
||||
func (m *NetworkInfo) GetWifiMicrosoftDriverVersion()(*string) {
|
||||
return m.wifiMicrosoftDriverVersion
|
||||
}
|
||||
// GetWifiRadioType gets the wifiRadioType property value. The wifiRadioType property
|
||||
func (m *NetworkInfo) GetWifiRadioType()(*WifiRadioType) {
|
||||
return m.wifiRadioType
|
||||
}
|
||||
// GetWifiSignalStrength gets the wifiSignalStrength property value. WiFi signal strength in percentage reported by the media endpoint.
|
||||
func (m *NetworkInfo) GetWifiSignalStrength()(*int32) {
|
||||
return m.wifiSignalStrength
|
||||
}
|
||||
// GetWifiVendorDriver gets the wifiVendorDriver property value. Name of the WiFi driver used by the media endpoint. Value may be localized based on the language used by endpoint.
|
||||
func (m *NetworkInfo) GetWifiVendorDriver()(*string) {
|
||||
return m.wifiVendorDriver
|
||||
}
|
||||
// GetWifiVendorDriverVersion gets the wifiVendorDriverVersion property value. Version of the WiFi driver used by the media endpoint.
|
||||
func (m *NetworkInfo) GetWifiVendorDriverVersion()(*string) {
|
||||
return m.wifiVendorDriverVersion
|
||||
}
|
||||
// Serialize serializes information the current object
|
||||
func (m *NetworkInfo) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
|
||||
{
|
||||
err := writer.WriteFloat32Value("bandwidthLowEventRatio", m.GetBandwidthLowEventRatio())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteStringValue("basicServiceSetIdentifier", m.GetBasicServiceSetIdentifier())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
if m.GetConnectionType() != nil {
|
||||
cast := (*m.GetConnectionType()).String()
|
||||
err := writer.WriteStringValue("connectionType", &cast)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteFloat32Value("delayEventRatio", m.GetDelayEventRatio())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteStringValue("dnsSuffix", m.GetDnsSuffix())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteStringValue("ipAddress", m.GetIpAddress())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteInt64Value("linkSpeed", m.GetLinkSpeed())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteStringValue("macAddress", m.GetMacAddress())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
if m.GetNetworkTransportProtocol() != nil {
|
||||
cast := (*m.GetNetworkTransportProtocol()).String()
|
||||
err := writer.WriteStringValue("networkTransportProtocol", &cast)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteStringValue("@odata.type", m.GetOdataType())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteInt32Value("port", m.GetPort())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteFloat32Value("receivedQualityEventRatio", m.GetReceivedQualityEventRatio())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteStringValue("reflexiveIPAddress", m.GetReflexiveIPAddress())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteStringValue("relayIPAddress", m.GetRelayIPAddress())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteInt32Value("relayPort", m.GetRelayPort())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteFloat32Value("sentQualityEventRatio", m.GetSentQualityEventRatio())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteStringValue("subnet", m.GetSubnet())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
if m.GetTraceRouteHops() != nil {
|
||||
cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetTraceRouteHops()))
|
||||
for i, v := range m.GetTraceRouteHops() {
|
||||
cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable)
|
||||
}
|
||||
err := writer.WriteCollectionOfObjectValues("traceRouteHops", cast)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
if m.GetWifiBand() != nil {
|
||||
cast := (*m.GetWifiBand()).String()
|
||||
err := writer.WriteStringValue("wifiBand", &cast)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteInt32Value("wifiBatteryCharge", m.GetWifiBatteryCharge())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteInt32Value("wifiChannel", m.GetWifiChannel())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteStringValue("wifiMicrosoftDriver", m.GetWifiMicrosoftDriver())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteStringValue("wifiMicrosoftDriverVersion", m.GetWifiMicrosoftDriverVersion())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
if m.GetWifiRadioType() != nil {
|
||||
cast := (*m.GetWifiRadioType()).String()
|
||||
err := writer.WriteStringValue("wifiRadioType", &cast)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteInt32Value("wifiSignalStrength", m.GetWifiSignalStrength())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteStringValue("wifiVendorDriver", m.GetWifiVendorDriver())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteStringValue("wifiVendorDriverVersion", m.GetWifiVendorDriverVersion())
|
||||
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 *NetworkInfo) SetAdditionalData(value map[string]interface{})() {
|
||||
m.additionalData = value
|
||||
}
|
||||
// SetBandwidthLowEventRatio sets the bandwidthLowEventRatio property value. Fraction of the call that the media endpoint detected the available bandwidth or bandwidth policy was low enough to cause poor quality of the audio sent.
|
||||
func (m *NetworkInfo) SetBandwidthLowEventRatio(value *float32)() {
|
||||
m.bandwidthLowEventRatio = value
|
||||
}
|
||||
// SetBasicServiceSetIdentifier sets the basicServiceSetIdentifier property value. The wireless LAN basic service set identifier of the media endpoint used to connect to the network.
|
||||
func (m *NetworkInfo) SetBasicServiceSetIdentifier(value *string)() {
|
||||
m.basicServiceSetIdentifier = value
|
||||
}
|
||||
// SetConnectionType sets the connectionType property value. The connectionType property
|
||||
func (m *NetworkInfo) SetConnectionType(value *NetworkConnectionType)() {
|
||||
m.connectionType = value
|
||||
}
|
||||
// SetDelayEventRatio sets the delayEventRatio property value. Fraction of the call that the media endpoint detected the network delay was significant enough to impact the ability to have real-time two-way communication.
|
||||
func (m *NetworkInfo) SetDelayEventRatio(value *float32)() {
|
||||
m.delayEventRatio = value
|
||||
}
|
||||
// SetDnsSuffix sets the dnsSuffix property value. DNS suffix associated with the network adapter of the media endpoint.
|
||||
func (m *NetworkInfo) SetDnsSuffix(value *string)() {
|
||||
m.dnsSuffix = value
|
||||
}
|
||||
// SetIpAddress sets the ipAddress property value. IP address of the media endpoint.
|
||||
func (m *NetworkInfo) SetIpAddress(value *string)() {
|
||||
m.ipAddress = value
|
||||
}
|
||||
// SetLinkSpeed sets the linkSpeed property value. Link speed in bits per second reported by the network adapter used by the media endpoint.
|
||||
func (m *NetworkInfo) SetLinkSpeed(value *int64)() {
|
||||
m.linkSpeed = value
|
||||
}
|
||||
// SetMacAddress sets the macAddress property value. The media access control (MAC) address of the media endpoint's network device.
|
||||
func (m *NetworkInfo) SetMacAddress(value *string)() {
|
||||
m.macAddress = value
|
||||
}
|
||||
// SetNetworkTransportProtocol sets the networkTransportProtocol property value. The networkTransportProtocol property
|
||||
func (m *NetworkInfo) SetNetworkTransportProtocol(value *NetworkTransportProtocol)() {
|
||||
m.networkTransportProtocol = value
|
||||
}
|
||||
// SetOdataType sets the @odata.type property value. The OdataType property
|
||||
func (m *NetworkInfo) SetOdataType(value *string)() {
|
||||
m.odataType = value
|
||||
}
|
||||
// SetPort sets the port property value. Network port number used by media endpoint.
|
||||
func (m *NetworkInfo) SetPort(value *int32)() {
|
||||
m.port = value
|
||||
}
|
||||
// SetReceivedQualityEventRatio sets the receivedQualityEventRatio property value. Fraction of the call that the media endpoint detected the network was causing poor quality of the audio received.
|
||||
func (m *NetworkInfo) SetReceivedQualityEventRatio(value *float32)() {
|
||||
m.receivedQualityEventRatio = value
|
||||
}
|
||||
// SetReflexiveIPAddress sets the reflexiveIPAddress property value. IP address of the media endpoint as seen by the media relay server. This is typically the public internet IP address associated to the endpoint.
|
||||
func (m *NetworkInfo) SetReflexiveIPAddress(value *string)() {
|
||||
m.reflexiveIPAddress = value
|
||||
}
|
||||
// SetRelayIPAddress sets the relayIPAddress property value. IP address of the media relay server allocated by the media endpoint.
|
||||
func (m *NetworkInfo) SetRelayIPAddress(value *string)() {
|
||||
m.relayIPAddress = value
|
||||
}
|
||||
// SetRelayPort sets the relayPort property value. Network port number allocated on the media relay server by the media endpoint.
|
||||
func (m *NetworkInfo) SetRelayPort(value *int32)() {
|
||||
m.relayPort = value
|
||||
}
|
||||
// SetSentQualityEventRatio sets the sentQualityEventRatio property value. Fraction of the call that the media endpoint detected the network was causing poor quality of the audio sent.
|
||||
func (m *NetworkInfo) SetSentQualityEventRatio(value *float32)() {
|
||||
m.sentQualityEventRatio = value
|
||||
}
|
||||
// SetSubnet sets the subnet property value. Subnet used for media stream by the media endpoint.
|
||||
func (m *NetworkInfo) SetSubnet(value *string)() {
|
||||
m.subnet = value
|
||||
}
|
||||
// SetTraceRouteHops sets the traceRouteHops property value. List of network trace route hops collected for this media stream.*
|
||||
func (m *NetworkInfo) SetTraceRouteHops(value []TraceRouteHopable)() {
|
||||
m.traceRouteHops = value
|
||||
}
|
||||
// SetWifiBand sets the wifiBand property value. The wifiBand property
|
||||
func (m *NetworkInfo) SetWifiBand(value *WifiBand)() {
|
||||
m.wifiBand = value
|
||||
}
|
||||
// SetWifiBatteryCharge sets the wifiBatteryCharge property value. Estimated remaining battery charge in percentage reported by the media endpoint.
|
||||
func (m *NetworkInfo) SetWifiBatteryCharge(value *int32)() {
|
||||
m.wifiBatteryCharge = value
|
||||
}
|
||||
// SetWifiChannel sets the wifiChannel property value. WiFi channel used by the media endpoint.
|
||||
func (m *NetworkInfo) SetWifiChannel(value *int32)() {
|
||||
m.wifiChannel = value
|
||||
}
|
||||
// SetWifiMicrosoftDriver sets the wifiMicrosoftDriver property value. Name of the Microsoft WiFi driver used by the media endpoint. Value may be localized based on the language used by endpoint.
|
||||
func (m *NetworkInfo) SetWifiMicrosoftDriver(value *string)() {
|
||||
m.wifiMicrosoftDriver = value
|
||||
}
|
||||
// SetWifiMicrosoftDriverVersion sets the wifiMicrosoftDriverVersion property value. Version of the Microsoft WiFi driver used by the media endpoint.
|
||||
func (m *NetworkInfo) SetWifiMicrosoftDriverVersion(value *string)() {
|
||||
m.wifiMicrosoftDriverVersion = value
|
||||
}
|
||||
// SetWifiRadioType sets the wifiRadioType property value. The wifiRadioType property
|
||||
func (m *NetworkInfo) SetWifiRadioType(value *WifiRadioType)() {
|
||||
m.wifiRadioType = value
|
||||
}
|
||||
// SetWifiSignalStrength sets the wifiSignalStrength property value. WiFi signal strength in percentage reported by the media endpoint.
|
||||
func (m *NetworkInfo) SetWifiSignalStrength(value *int32)() {
|
||||
m.wifiSignalStrength = value
|
||||
}
|
||||
// SetWifiVendorDriver sets the wifiVendorDriver property value. Name of the WiFi driver used by the media endpoint. Value may be localized based on the language used by endpoint.
|
||||
func (m *NetworkInfo) SetWifiVendorDriver(value *string)() {
|
||||
m.wifiVendorDriver = value
|
||||
}
|
||||
// SetWifiVendorDriverVersion sets the wifiVendorDriverVersion property value. Version of the WiFi driver used by the media endpoint.
|
||||
func (m *NetworkInfo) SetWifiVendorDriverVersion(value *string)() {
|
||||
m.wifiVendorDriverVersion = value
|
||||
}
|
||||
@ -0,0 +1,65 @@
|
||||
package callrecords
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// NetworkInfoable
|
||||
type NetworkInfoable interface {
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
||||
GetBandwidthLowEventRatio()(*float32)
|
||||
GetBasicServiceSetIdentifier()(*string)
|
||||
GetConnectionType()(*NetworkConnectionType)
|
||||
GetDelayEventRatio()(*float32)
|
||||
GetDnsSuffix()(*string)
|
||||
GetIpAddress()(*string)
|
||||
GetLinkSpeed()(*int64)
|
||||
GetMacAddress()(*string)
|
||||
GetNetworkTransportProtocol()(*NetworkTransportProtocol)
|
||||
GetOdataType()(*string)
|
||||
GetPort()(*int32)
|
||||
GetReceivedQualityEventRatio()(*float32)
|
||||
GetReflexiveIPAddress()(*string)
|
||||
GetRelayIPAddress()(*string)
|
||||
GetRelayPort()(*int32)
|
||||
GetSentQualityEventRatio()(*float32)
|
||||
GetSubnet()(*string)
|
||||
GetTraceRouteHops()([]TraceRouteHopable)
|
||||
GetWifiBand()(*WifiBand)
|
||||
GetWifiBatteryCharge()(*int32)
|
||||
GetWifiChannel()(*int32)
|
||||
GetWifiMicrosoftDriver()(*string)
|
||||
GetWifiMicrosoftDriverVersion()(*string)
|
||||
GetWifiRadioType()(*WifiRadioType)
|
||||
GetWifiSignalStrength()(*int32)
|
||||
GetWifiVendorDriver()(*string)
|
||||
GetWifiVendorDriverVersion()(*string)
|
||||
SetBandwidthLowEventRatio(value *float32)()
|
||||
SetBasicServiceSetIdentifier(value *string)()
|
||||
SetConnectionType(value *NetworkConnectionType)()
|
||||
SetDelayEventRatio(value *float32)()
|
||||
SetDnsSuffix(value *string)()
|
||||
SetIpAddress(value *string)()
|
||||
SetLinkSpeed(value *int64)()
|
||||
SetMacAddress(value *string)()
|
||||
SetNetworkTransportProtocol(value *NetworkTransportProtocol)()
|
||||
SetOdataType(value *string)()
|
||||
SetPort(value *int32)()
|
||||
SetReceivedQualityEventRatio(value *float32)()
|
||||
SetReflexiveIPAddress(value *string)()
|
||||
SetRelayIPAddress(value *string)()
|
||||
SetRelayPort(value *int32)()
|
||||
SetSentQualityEventRatio(value *float32)()
|
||||
SetSubnet(value *string)()
|
||||
SetTraceRouteHops(value []TraceRouteHopable)()
|
||||
SetWifiBand(value *WifiBand)()
|
||||
SetWifiBatteryCharge(value *int32)()
|
||||
SetWifiChannel(value *int32)()
|
||||
SetWifiMicrosoftDriver(value *string)()
|
||||
SetWifiMicrosoftDriverVersion(value *string)()
|
||||
SetWifiRadioType(value *WifiRadioType)()
|
||||
SetWifiSignalStrength(value *int32)()
|
||||
SetWifiVendorDriver(value *string)()
|
||||
SetWifiVendorDriverVersion(value *string)()
|
||||
}
|
||||
@ -0,0 +1,40 @@
|
||||
package callrecords
|
||||
import (
|
||||
"errors"
|
||||
)
|
||||
// Provides operations to manage the sites property of the microsoft.graph.browserSiteList entity.
|
||||
type NetworkTransportProtocol int
|
||||
|
||||
const (
|
||||
UNKNOWN_NETWORKTRANSPORTPROTOCOL NetworkTransportProtocol = iota
|
||||
UDP_NETWORKTRANSPORTPROTOCOL
|
||||
TCP_NETWORKTRANSPORTPROTOCOL
|
||||
UNKNOWNFUTUREVALUE_NETWORKTRANSPORTPROTOCOL
|
||||
)
|
||||
|
||||
func (i NetworkTransportProtocol) String() string {
|
||||
return []string{"unknown", "udp", "tcp", "unknownFutureValue"}[i]
|
||||
}
|
||||
func ParseNetworkTransportProtocol(v string) (interface{}, error) {
|
||||
result := UNKNOWN_NETWORKTRANSPORTPROTOCOL
|
||||
switch v {
|
||||
case "unknown":
|
||||
result = UNKNOWN_NETWORKTRANSPORTPROTOCOL
|
||||
case "udp":
|
||||
result = UDP_NETWORKTRANSPORTPROTOCOL
|
||||
case "tcp":
|
||||
result = TCP_NETWORKTRANSPORTPROTOCOL
|
||||
case "unknownFutureValue":
|
||||
result = UNKNOWNFUTUREVALUE_NETWORKTRANSPORTPROTOCOL
|
||||
default:
|
||||
return 0, errors.New("Unknown NetworkTransportProtocol value: " + v)
|
||||
}
|
||||
return &result, nil
|
||||
}
|
||||
func SerializeNetworkTransportProtocol(values []NetworkTransportProtocol) []string {
|
||||
result := make([]string, len(values))
|
||||
for i, v := range values {
|
||||
result[i] = v.String()
|
||||
}
|
||||
return result
|
||||
}
|
||||
@ -0,0 +1,89 @@
|
||||
package callrecords
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models"
|
||||
)
|
||||
|
||||
// ParticipantEndpoint
|
||||
type ParticipantEndpoint struct {
|
||||
Endpoint
|
||||
// The feedback provided by the user of this endpoint about the quality of the session.
|
||||
feedback UserFeedbackable
|
||||
// Identity associated with the endpoint.
|
||||
identity ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.IdentitySetable
|
||||
}
|
||||
// NewParticipantEndpoint instantiates a new ParticipantEndpoint and sets the default values.
|
||||
func NewParticipantEndpoint()(*ParticipantEndpoint) {
|
||||
m := &ParticipantEndpoint{
|
||||
Endpoint: *NewEndpoint(),
|
||||
}
|
||||
odataTypeValue := "#microsoft.graph.callRecords.participantEndpoint";
|
||||
m.SetOdataType(&odataTypeValue);
|
||||
return m
|
||||
}
|
||||
// CreateParticipantEndpointFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
||||
func CreateParticipantEndpointFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
||||
return NewParticipantEndpoint(), nil
|
||||
}
|
||||
// GetFeedback gets the feedback property value. The feedback provided by the user of this endpoint about the quality of the session.
|
||||
func (m *ParticipantEndpoint) GetFeedback()(UserFeedbackable) {
|
||||
return m.feedback
|
||||
}
|
||||
// GetFieldDeserializers the deserialization information for the current model
|
||||
func (m *ParticipantEndpoint) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
|
||||
res := m.Endpoint.GetFieldDeserializers()
|
||||
res["feedback"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetObjectValue(CreateUserFeedbackFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetFeedback(val.(UserFeedbackable))
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["identity"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetObjectValue(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.CreateIdentitySetFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetIdentity(val.(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.IdentitySetable))
|
||||
}
|
||||
return nil
|
||||
}
|
||||
return res
|
||||
}
|
||||
// GetIdentity gets the identity property value. Identity associated with the endpoint.
|
||||
func (m *ParticipantEndpoint) GetIdentity()(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.IdentitySetable) {
|
||||
return m.identity
|
||||
}
|
||||
// Serialize serializes information the current object
|
||||
func (m *ParticipantEndpoint) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
|
||||
err := m.Endpoint.Serialize(writer)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
{
|
||||
err = writer.WriteObjectValue("feedback", m.GetFeedback())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteObjectValue("identity", m.GetIdentity())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
// SetFeedback sets the feedback property value. The feedback provided by the user of this endpoint about the quality of the session.
|
||||
func (m *ParticipantEndpoint) SetFeedback(value UserFeedbackable)() {
|
||||
m.feedback = value
|
||||
}
|
||||
// SetIdentity sets the identity property value. Identity associated with the endpoint.
|
||||
func (m *ParticipantEndpoint) SetIdentity(value ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.IdentitySetable)() {
|
||||
m.identity = value
|
||||
}
|
||||
@ -0,0 +1,16 @@
|
||||
package callrecords
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models"
|
||||
)
|
||||
|
||||
// ParticipantEndpointable
|
||||
type ParticipantEndpointable interface {
|
||||
Endpointable
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
||||
GetFeedback()(UserFeedbackable)
|
||||
GetIdentity()(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.IdentitySetable)
|
||||
SetFeedback(value UserFeedbackable)()
|
||||
SetIdentity(value ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.IdentitySetable)()
|
||||
}
|
||||
@ -0,0 +1,46 @@
|
||||
package callrecords
|
||||
import (
|
||||
"errors"
|
||||
)
|
||||
// Provides operations to manage the sites property of the microsoft.graph.browserSiteList entity.
|
||||
type ProductFamily int
|
||||
|
||||
const (
|
||||
UNKNOWN_PRODUCTFAMILY ProductFamily = iota
|
||||
TEAMS_PRODUCTFAMILY
|
||||
SKYPEFORBUSINESS_PRODUCTFAMILY
|
||||
LYNC_PRODUCTFAMILY
|
||||
UNKNOWNFUTUREVALUE_PRODUCTFAMILY
|
||||
AZURECOMMUNICATIONSERVICES_PRODUCTFAMILY
|
||||
)
|
||||
|
||||
func (i ProductFamily) String() string {
|
||||
return []string{"unknown", "teams", "skypeForBusiness", "lync", "unknownFutureValue", "azureCommunicationServices"}[i]
|
||||
}
|
||||
func ParseProductFamily(v string) (interface{}, error) {
|
||||
result := UNKNOWN_PRODUCTFAMILY
|
||||
switch v {
|
||||
case "unknown":
|
||||
result = UNKNOWN_PRODUCTFAMILY
|
||||
case "teams":
|
||||
result = TEAMS_PRODUCTFAMILY
|
||||
case "skypeForBusiness":
|
||||
result = SKYPEFORBUSINESS_PRODUCTFAMILY
|
||||
case "lync":
|
||||
result = LYNC_PRODUCTFAMILY
|
||||
case "unknownFutureValue":
|
||||
result = UNKNOWNFUTUREVALUE_PRODUCTFAMILY
|
||||
case "azureCommunicationServices":
|
||||
result = AZURECOMMUNICATIONSERVICES_PRODUCTFAMILY
|
||||
default:
|
||||
return 0, errors.New("Unknown ProductFamily value: " + v)
|
||||
}
|
||||
return &result, nil
|
||||
}
|
||||
func SerializeProductFamily(values []ProductFamily) []string {
|
||||
result := make([]string, len(values))
|
||||
for i, v := range values {
|
||||
result[i] = v.String()
|
||||
}
|
||||
return result
|
||||
}
|
||||
@ -0,0 +1,200 @@
|
||||
package callrecords
|
||||
|
||||
import (
|
||||
i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time"
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models"
|
||||
)
|
||||
|
||||
// Segment provides operations to manage the sites property of the microsoft.graph.browserSiteList entity.
|
||||
type Segment struct {
|
||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.Entity
|
||||
// Endpoint that answered this segment.
|
||||
callee Endpointable
|
||||
// Endpoint that initiated this segment.
|
||||
caller Endpointable
|
||||
// UTC time when the segment ended. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z
|
||||
endDateTime *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time
|
||||
// Failure information associated with the segment if it failed.
|
||||
failureInfo FailureInfoable
|
||||
// Media associated with this segment.
|
||||
media []Mediaable
|
||||
// UTC time when the segment started. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z
|
||||
startDateTime *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time
|
||||
}
|
||||
// NewSegment instantiates a new segment and sets the default values.
|
||||
func NewSegment()(*Segment) {
|
||||
m := &Segment{
|
||||
Entity: *ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.NewEntity(),
|
||||
}
|
||||
return m
|
||||
}
|
||||
// CreateSegmentFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
||||
func CreateSegmentFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
||||
return NewSegment(), nil
|
||||
}
|
||||
// GetCallee gets the callee property value. Endpoint that answered this segment.
|
||||
func (m *Segment) GetCallee()(Endpointable) {
|
||||
return m.callee
|
||||
}
|
||||
// GetCaller gets the caller property value. Endpoint that initiated this segment.
|
||||
func (m *Segment) GetCaller()(Endpointable) {
|
||||
return m.caller
|
||||
}
|
||||
// GetEndDateTime gets the endDateTime property value. UTC time when the segment ended. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z
|
||||
func (m *Segment) GetEndDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) {
|
||||
return m.endDateTime
|
||||
}
|
||||
// GetFailureInfo gets the failureInfo property value. Failure information associated with the segment if it failed.
|
||||
func (m *Segment) GetFailureInfo()(FailureInfoable) {
|
||||
return m.failureInfo
|
||||
}
|
||||
// GetFieldDeserializers the deserialization information for the current model
|
||||
func (m *Segment) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
|
||||
res := m.Entity.GetFieldDeserializers()
|
||||
res["callee"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetObjectValue(CreateEndpointFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetCallee(val.(Endpointable))
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["caller"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetObjectValue(CreateEndpointFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetCaller(val.(Endpointable))
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["endDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetTimeValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetEndDateTime(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["failureInfo"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetObjectValue(CreateFailureInfoFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetFailureInfo(val.(FailureInfoable))
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["media"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetCollectionOfObjectValues(CreateMediaFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
res := make([]Mediaable, len(val))
|
||||
for i, v := range val {
|
||||
res[i] = v.(Mediaable)
|
||||
}
|
||||
m.SetMedia(res)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["startDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetTimeValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetStartDateTime(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
return res
|
||||
}
|
||||
// GetMedia gets the media property value. Media associated with this segment.
|
||||
func (m *Segment) GetMedia()([]Mediaable) {
|
||||
return m.media
|
||||
}
|
||||
// GetStartDateTime gets the startDateTime property value. UTC time when the segment started. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z
|
||||
func (m *Segment) GetStartDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) {
|
||||
return m.startDateTime
|
||||
}
|
||||
// Serialize serializes information the current object
|
||||
func (m *Segment) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
|
||||
err := m.Entity.Serialize(writer)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
{
|
||||
err = writer.WriteObjectValue("callee", m.GetCallee())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteObjectValue("caller", m.GetCaller())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteTimeValue("endDateTime", m.GetEndDateTime())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteObjectValue("failureInfo", m.GetFailureInfo())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
if m.GetMedia() != nil {
|
||||
cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetMedia()))
|
||||
for i, v := range m.GetMedia() {
|
||||
cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable)
|
||||
}
|
||||
err = writer.WriteCollectionOfObjectValues("media", cast)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteTimeValue("startDateTime", m.GetStartDateTime())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
// SetCallee sets the callee property value. Endpoint that answered this segment.
|
||||
func (m *Segment) SetCallee(value Endpointable)() {
|
||||
m.callee = value
|
||||
}
|
||||
// SetCaller sets the caller property value. Endpoint that initiated this segment.
|
||||
func (m *Segment) SetCaller(value Endpointable)() {
|
||||
m.caller = value
|
||||
}
|
||||
// SetEndDateTime sets the endDateTime property value. UTC time when the segment ended. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z
|
||||
func (m *Segment) SetEndDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() {
|
||||
m.endDateTime = value
|
||||
}
|
||||
// SetFailureInfo sets the failureInfo property value. Failure information associated with the segment if it failed.
|
||||
func (m *Segment) SetFailureInfo(value FailureInfoable)() {
|
||||
m.failureInfo = value
|
||||
}
|
||||
// SetMedia sets the media property value. Media associated with this segment.
|
||||
func (m *Segment) SetMedia(value []Mediaable)() {
|
||||
m.media = value
|
||||
}
|
||||
// SetStartDateTime sets the startDateTime property value. UTC time when the segment started. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z
|
||||
func (m *Segment) SetStartDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() {
|
||||
m.startDateTime = value
|
||||
}
|
||||
@ -0,0 +1,69 @@
|
||||
package callrecords
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models"
|
||||
)
|
||||
|
||||
// SegmentCollectionResponse
|
||||
type SegmentCollectionResponse struct {
|
||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.BaseCollectionPaginationCountResponse
|
||||
// The value property
|
||||
value []Segmentable
|
||||
}
|
||||
// NewSegmentCollectionResponse instantiates a new SegmentCollectionResponse and sets the default values.
|
||||
func NewSegmentCollectionResponse()(*SegmentCollectionResponse) {
|
||||
m := &SegmentCollectionResponse{
|
||||
BaseCollectionPaginationCountResponse: *ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.NewBaseCollectionPaginationCountResponse(),
|
||||
}
|
||||
return m
|
||||
}
|
||||
// CreateSegmentCollectionResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
||||
func CreateSegmentCollectionResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
||||
return NewSegmentCollectionResponse(), nil
|
||||
}
|
||||
// GetFieldDeserializers the deserialization information for the current model
|
||||
func (m *SegmentCollectionResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
|
||||
res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers()
|
||||
res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetCollectionOfObjectValues(CreateSegmentFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
res := make([]Segmentable, len(val))
|
||||
for i, v := range val {
|
||||
res[i] = v.(Segmentable)
|
||||
}
|
||||
m.SetValue(res)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
return res
|
||||
}
|
||||
// GetValue gets the value property value. The value property
|
||||
func (m *SegmentCollectionResponse) GetValue()([]Segmentable) {
|
||||
return m.value
|
||||
}
|
||||
// Serialize serializes information the current object
|
||||
func (m *SegmentCollectionResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
|
||||
err := m.BaseCollectionPaginationCountResponse.Serialize(writer)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if m.GetValue() != nil {
|
||||
cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue()))
|
||||
for i, v := range m.GetValue() {
|
||||
cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable)
|
||||
}
|
||||
err = writer.WriteCollectionOfObjectValues("value", cast)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
// SetValue sets the value property value. The value property
|
||||
func (m *SegmentCollectionResponse) SetValue(value []Segmentable)() {
|
||||
m.value = value
|
||||
}
|
||||
@ -0,0 +1,14 @@
|
||||
package callrecords
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models"
|
||||
)
|
||||
|
||||
// SegmentCollectionResponseable
|
||||
type SegmentCollectionResponseable interface {
|
||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.BaseCollectionPaginationCountResponseable
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
||||
GetValue()([]Segmentable)
|
||||
SetValue(value []Segmentable)()
|
||||
}
|
||||
@ -0,0 +1,25 @@
|
||||
package callrecords
|
||||
|
||||
import (
|
||||
i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time"
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models"
|
||||
)
|
||||
|
||||
// Segmentable
|
||||
type Segmentable interface {
|
||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.Entityable
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
||||
GetCallee()(Endpointable)
|
||||
GetCaller()(Endpointable)
|
||||
GetEndDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)
|
||||
GetFailureInfo()(FailureInfoable)
|
||||
GetMedia()([]Mediaable)
|
||||
GetStartDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)
|
||||
SetCallee(value Endpointable)()
|
||||
SetCaller(value Endpointable)()
|
||||
SetEndDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)()
|
||||
SetFailureInfo(value FailureInfoable)()
|
||||
SetMedia(value []Mediaable)()
|
||||
SetStartDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)()
|
||||
}
|
||||
@ -0,0 +1,36 @@
|
||||
package callrecords
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// ServiceEndpoint
|
||||
type ServiceEndpoint struct {
|
||||
Endpoint
|
||||
}
|
||||
// NewServiceEndpoint instantiates a new ServiceEndpoint and sets the default values.
|
||||
func NewServiceEndpoint()(*ServiceEndpoint) {
|
||||
m := &ServiceEndpoint{
|
||||
Endpoint: *NewEndpoint(),
|
||||
}
|
||||
odataTypeValue := "#microsoft.graph.callRecords.serviceEndpoint";
|
||||
m.SetOdataType(&odataTypeValue);
|
||||
return m
|
||||
}
|
||||
// CreateServiceEndpointFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
||||
func CreateServiceEndpointFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
||||
return NewServiceEndpoint(), nil
|
||||
}
|
||||
// GetFieldDeserializers the deserialization information for the current model
|
||||
func (m *ServiceEndpoint) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
|
||||
res := m.Endpoint.GetFieldDeserializers()
|
||||
return res
|
||||
}
|
||||
// Serialize serializes information the current object
|
||||
func (m *ServiceEndpoint) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
|
||||
err := m.Endpoint.Serialize(writer)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
}
|
||||
@ -0,0 +1,11 @@
|
||||
package callrecords
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// ServiceEndpointable
|
||||
type ServiceEndpointable interface {
|
||||
Endpointable
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
||||
}
|
||||
@ -0,0 +1,94 @@
|
||||
package callrecords
|
||||
import (
|
||||
"errors"
|
||||
)
|
||||
// Provides operations to manage the sites property of the microsoft.graph.browserSiteList entity.
|
||||
type ServiceRole int
|
||||
|
||||
const (
|
||||
UNKNOWN_SERVICEROLE ServiceRole = iota
|
||||
CUSTOMBOT_SERVICEROLE
|
||||
SKYPEFORBUSINESSMICROSOFTTEAMSGATEWAY_SERVICEROLE
|
||||
SKYPEFORBUSINESSAUDIOVIDEOMCU_SERVICEROLE
|
||||
SKYPEFORBUSINESSAPPLICATIONSHARINGMCU_SERVICEROLE
|
||||
SKYPEFORBUSINESSCALLQUEUES_SERVICEROLE
|
||||
SKYPEFORBUSINESSAUTOATTENDANT_SERVICEROLE
|
||||
MEDIATIONSERVER_SERVICEROLE
|
||||
MEDIATIONSERVERCLOUDCONNECTOREDITION_SERVICEROLE
|
||||
EXCHANGEUNIFIEDMESSAGINGSERVICE_SERVICEROLE
|
||||
MEDIACONTROLLER_SERVICEROLE
|
||||
CONFERENCINGANNOUNCEMENTSERVICE_SERVICEROLE
|
||||
CONFERENCINGATTENDANT_SERVICEROLE
|
||||
AUDIOTELECONFERENCERCONTROLLER_SERVICEROLE
|
||||
SKYPEFORBUSINESSUNIFIEDCOMMUNICATIONAPPLICATIONPLATFORM_SERVICEROLE
|
||||
RESPONSEGROUPSERVICEANNOUNCEMENTSERVICE_SERVICEROLE
|
||||
GATEWAY_SERVICEROLE
|
||||
SKYPETRANSLATOR_SERVICEROLE
|
||||
SKYPEFORBUSINESSATTENDANT_SERVICEROLE
|
||||
RESPONSEGROUPSERVICE_SERVICEROLE
|
||||
VOICEMAIL_SERVICEROLE
|
||||
UNKNOWNFUTUREVALUE_SERVICEROLE
|
||||
)
|
||||
|
||||
func (i ServiceRole) String() string {
|
||||
return []string{"unknown", "customBot", "skypeForBusinessMicrosoftTeamsGateway", "skypeForBusinessAudioVideoMcu", "skypeForBusinessApplicationSharingMcu", "skypeForBusinessCallQueues", "skypeForBusinessAutoAttendant", "mediationServer", "mediationServerCloudConnectorEdition", "exchangeUnifiedMessagingService", "mediaController", "conferencingAnnouncementService", "conferencingAttendant", "audioTeleconferencerController", "skypeForBusinessUnifiedCommunicationApplicationPlatform", "responseGroupServiceAnnouncementService", "gateway", "skypeTranslator", "skypeForBusinessAttendant", "responseGroupService", "voicemail", "unknownFutureValue"}[i]
|
||||
}
|
||||
func ParseServiceRole(v string) (interface{}, error) {
|
||||
result := UNKNOWN_SERVICEROLE
|
||||
switch v {
|
||||
case "unknown":
|
||||
result = UNKNOWN_SERVICEROLE
|
||||
case "customBot":
|
||||
result = CUSTOMBOT_SERVICEROLE
|
||||
case "skypeForBusinessMicrosoftTeamsGateway":
|
||||
result = SKYPEFORBUSINESSMICROSOFTTEAMSGATEWAY_SERVICEROLE
|
||||
case "skypeForBusinessAudioVideoMcu":
|
||||
result = SKYPEFORBUSINESSAUDIOVIDEOMCU_SERVICEROLE
|
||||
case "skypeForBusinessApplicationSharingMcu":
|
||||
result = SKYPEFORBUSINESSAPPLICATIONSHARINGMCU_SERVICEROLE
|
||||
case "skypeForBusinessCallQueues":
|
||||
result = SKYPEFORBUSINESSCALLQUEUES_SERVICEROLE
|
||||
case "skypeForBusinessAutoAttendant":
|
||||
result = SKYPEFORBUSINESSAUTOATTENDANT_SERVICEROLE
|
||||
case "mediationServer":
|
||||
result = MEDIATIONSERVER_SERVICEROLE
|
||||
case "mediationServerCloudConnectorEdition":
|
||||
result = MEDIATIONSERVERCLOUDCONNECTOREDITION_SERVICEROLE
|
||||
case "exchangeUnifiedMessagingService":
|
||||
result = EXCHANGEUNIFIEDMESSAGINGSERVICE_SERVICEROLE
|
||||
case "mediaController":
|
||||
result = MEDIACONTROLLER_SERVICEROLE
|
||||
case "conferencingAnnouncementService":
|
||||
result = CONFERENCINGANNOUNCEMENTSERVICE_SERVICEROLE
|
||||
case "conferencingAttendant":
|
||||
result = CONFERENCINGATTENDANT_SERVICEROLE
|
||||
case "audioTeleconferencerController":
|
||||
result = AUDIOTELECONFERENCERCONTROLLER_SERVICEROLE
|
||||
case "skypeForBusinessUnifiedCommunicationApplicationPlatform":
|
||||
result = SKYPEFORBUSINESSUNIFIEDCOMMUNICATIONAPPLICATIONPLATFORM_SERVICEROLE
|
||||
case "responseGroupServiceAnnouncementService":
|
||||
result = RESPONSEGROUPSERVICEANNOUNCEMENTSERVICE_SERVICEROLE
|
||||
case "gateway":
|
||||
result = GATEWAY_SERVICEROLE
|
||||
case "skypeTranslator":
|
||||
result = SKYPETRANSLATOR_SERVICEROLE
|
||||
case "skypeForBusinessAttendant":
|
||||
result = SKYPEFORBUSINESSATTENDANT_SERVICEROLE
|
||||
case "responseGroupService":
|
||||
result = RESPONSEGROUPSERVICE_SERVICEROLE
|
||||
case "voicemail":
|
||||
result = VOICEMAIL_SERVICEROLE
|
||||
case "unknownFutureValue":
|
||||
result = UNKNOWNFUTUREVALUE_SERVICEROLE
|
||||
default:
|
||||
return 0, errors.New("Unknown ServiceRole value: " + v)
|
||||
}
|
||||
return &result, nil
|
||||
}
|
||||
func SerializeServiceRole(values []ServiceRole) []string {
|
||||
result := make([]string, len(values))
|
||||
for i, v := range values {
|
||||
result[i] = v.String()
|
||||
}
|
||||
return result
|
||||
}
|
||||
@ -0,0 +1,63 @@
|
||||
package callrecords
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// ServiceUserAgent
|
||||
type ServiceUserAgent struct {
|
||||
UserAgent
|
||||
// The role property
|
||||
role *ServiceRole
|
||||
}
|
||||
// NewServiceUserAgent instantiates a new ServiceUserAgent and sets the default values.
|
||||
func NewServiceUserAgent()(*ServiceUserAgent) {
|
||||
m := &ServiceUserAgent{
|
||||
UserAgent: *NewUserAgent(),
|
||||
}
|
||||
odataTypeValue := "#microsoft.graph.callRecords.serviceUserAgent";
|
||||
m.SetOdataType(&odataTypeValue);
|
||||
return m
|
||||
}
|
||||
// CreateServiceUserAgentFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
||||
func CreateServiceUserAgentFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
||||
return NewServiceUserAgent(), nil
|
||||
}
|
||||
// GetFieldDeserializers the deserialization information for the current model
|
||||
func (m *ServiceUserAgent) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
|
||||
res := m.UserAgent.GetFieldDeserializers()
|
||||
res["role"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetEnumValue(ParseServiceRole)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetRole(val.(*ServiceRole))
|
||||
}
|
||||
return nil
|
||||
}
|
||||
return res
|
||||
}
|
||||
// GetRole gets the role property value. The role property
|
||||
func (m *ServiceUserAgent) GetRole()(*ServiceRole) {
|
||||
return m.role
|
||||
}
|
||||
// Serialize serializes information the current object
|
||||
func (m *ServiceUserAgent) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
|
||||
err := m.UserAgent.Serialize(writer)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if m.GetRole() != nil {
|
||||
cast := (*m.GetRole()).String()
|
||||
err = writer.WriteStringValue("role", &cast)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
// SetRole sets the role property value. The role property
|
||||
func (m *ServiceUserAgent) SetRole(value *ServiceRole)() {
|
||||
m.role = value
|
||||
}
|
||||
@ -0,0 +1,13 @@
|
||||
package callrecords
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// ServiceUserAgentable
|
||||
type ServiceUserAgentable interface {
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
||||
UserAgentable
|
||||
GetRole()(*ServiceRole)
|
||||
SetRole(value *ServiceRole)()
|
||||
}
|
||||
@ -0,0 +1,230 @@
|
||||
package callrecords
|
||||
|
||||
import (
|
||||
i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time"
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models"
|
||||
)
|
||||
|
||||
// Session provides operations to manage the sites property of the microsoft.graph.browserSiteList entity.
|
||||
type Session struct {
|
||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.Entity
|
||||
// Endpoint that answered the session.
|
||||
callee Endpointable
|
||||
// Endpoint that initiated the session.
|
||||
caller Endpointable
|
||||
// UTC time when the last user left the session. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z
|
||||
endDateTime *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time
|
||||
// Failure information associated with the session if the session failed.
|
||||
failureInfo FailureInfoable
|
||||
// List of modalities present in the session. Possible values are: unknown, audio, video, videoBasedScreenSharing, data, screenSharing, unknownFutureValue.
|
||||
modalities []Modality
|
||||
// The list of segments involved in the session. Read-only. Nullable.
|
||||
segments []Segmentable
|
||||
// UTC fime when the first user joined the session. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z
|
||||
startDateTime *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time
|
||||
}
|
||||
// NewSession instantiates a new session and sets the default values.
|
||||
func NewSession()(*Session) {
|
||||
m := &Session{
|
||||
Entity: *ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.NewEntity(),
|
||||
}
|
||||
return m
|
||||
}
|
||||
// CreateSessionFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
||||
func CreateSessionFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
||||
return NewSession(), nil
|
||||
}
|
||||
// GetCallee gets the callee property value. Endpoint that answered the session.
|
||||
func (m *Session) GetCallee()(Endpointable) {
|
||||
return m.callee
|
||||
}
|
||||
// GetCaller gets the caller property value. Endpoint that initiated the session.
|
||||
func (m *Session) GetCaller()(Endpointable) {
|
||||
return m.caller
|
||||
}
|
||||
// GetEndDateTime gets the endDateTime property value. UTC time when the last user left the session. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z
|
||||
func (m *Session) GetEndDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) {
|
||||
return m.endDateTime
|
||||
}
|
||||
// GetFailureInfo gets the failureInfo property value. Failure information associated with the session if the session failed.
|
||||
func (m *Session) GetFailureInfo()(FailureInfoable) {
|
||||
return m.failureInfo
|
||||
}
|
||||
// GetFieldDeserializers the deserialization information for the current model
|
||||
func (m *Session) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
|
||||
res := m.Entity.GetFieldDeserializers()
|
||||
res["callee"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetObjectValue(CreateEndpointFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetCallee(val.(Endpointable))
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["caller"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetObjectValue(CreateEndpointFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetCaller(val.(Endpointable))
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["endDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetTimeValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetEndDateTime(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["failureInfo"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetObjectValue(CreateFailureInfoFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetFailureInfo(val.(FailureInfoable))
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["modalities"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetCollectionOfEnumValues(ParseModality)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
res := make([]Modality, len(val))
|
||||
for i, v := range val {
|
||||
res[i] = *(v.(*Modality))
|
||||
}
|
||||
m.SetModalities(res)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["segments"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetCollectionOfObjectValues(CreateSegmentFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
res := make([]Segmentable, len(val))
|
||||
for i, v := range val {
|
||||
res[i] = v.(Segmentable)
|
||||
}
|
||||
m.SetSegments(res)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["startDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetTimeValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetStartDateTime(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
return res
|
||||
}
|
||||
// GetModalities gets the modalities property value. List of modalities present in the session. Possible values are: unknown, audio, video, videoBasedScreenSharing, data, screenSharing, unknownFutureValue.
|
||||
func (m *Session) GetModalities()([]Modality) {
|
||||
return m.modalities
|
||||
}
|
||||
// GetSegments gets the segments property value. The list of segments involved in the session. Read-only. Nullable.
|
||||
func (m *Session) GetSegments()([]Segmentable) {
|
||||
return m.segments
|
||||
}
|
||||
// GetStartDateTime gets the startDateTime property value. UTC fime when the first user joined the session. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z
|
||||
func (m *Session) GetStartDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) {
|
||||
return m.startDateTime
|
||||
}
|
||||
// Serialize serializes information the current object
|
||||
func (m *Session) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
|
||||
err := m.Entity.Serialize(writer)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
{
|
||||
err = writer.WriteObjectValue("callee", m.GetCallee())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteObjectValue("caller", m.GetCaller())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteTimeValue("endDateTime", m.GetEndDateTime())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteObjectValue("failureInfo", m.GetFailureInfo())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
if m.GetModalities() != nil {
|
||||
err = writer.WriteCollectionOfStringValues("modalities", SerializeModality(m.GetModalities()))
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
if m.GetSegments() != nil {
|
||||
cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetSegments()))
|
||||
for i, v := range m.GetSegments() {
|
||||
cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable)
|
||||
}
|
||||
err = writer.WriteCollectionOfObjectValues("segments", cast)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteTimeValue("startDateTime", m.GetStartDateTime())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
// SetCallee sets the callee property value. Endpoint that answered the session.
|
||||
func (m *Session) SetCallee(value Endpointable)() {
|
||||
m.callee = value
|
||||
}
|
||||
// SetCaller sets the caller property value. Endpoint that initiated the session.
|
||||
func (m *Session) SetCaller(value Endpointable)() {
|
||||
m.caller = value
|
||||
}
|
||||
// SetEndDateTime sets the endDateTime property value. UTC time when the last user left the session. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z
|
||||
func (m *Session) SetEndDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() {
|
||||
m.endDateTime = value
|
||||
}
|
||||
// SetFailureInfo sets the failureInfo property value. Failure information associated with the session if the session failed.
|
||||
func (m *Session) SetFailureInfo(value FailureInfoable)() {
|
||||
m.failureInfo = value
|
||||
}
|
||||
// SetModalities sets the modalities property value. List of modalities present in the session. Possible values are: unknown, audio, video, videoBasedScreenSharing, data, screenSharing, unknownFutureValue.
|
||||
func (m *Session) SetModalities(value []Modality)() {
|
||||
m.modalities = value
|
||||
}
|
||||
// SetSegments sets the segments property value. The list of segments involved in the session. Read-only. Nullable.
|
||||
func (m *Session) SetSegments(value []Segmentable)() {
|
||||
m.segments = value
|
||||
}
|
||||
// SetStartDateTime sets the startDateTime property value. UTC fime when the first user joined the session. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z
|
||||
func (m *Session) SetStartDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() {
|
||||
m.startDateTime = value
|
||||
}
|
||||
@ -0,0 +1,69 @@
|
||||
package callrecords
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models"
|
||||
)
|
||||
|
||||
// SessionCollectionResponse
|
||||
type SessionCollectionResponse struct {
|
||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.BaseCollectionPaginationCountResponse
|
||||
// The value property
|
||||
value []Sessionable
|
||||
}
|
||||
// NewSessionCollectionResponse instantiates a new SessionCollectionResponse and sets the default values.
|
||||
func NewSessionCollectionResponse()(*SessionCollectionResponse) {
|
||||
m := &SessionCollectionResponse{
|
||||
BaseCollectionPaginationCountResponse: *ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.NewBaseCollectionPaginationCountResponse(),
|
||||
}
|
||||
return m
|
||||
}
|
||||
// CreateSessionCollectionResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
||||
func CreateSessionCollectionResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
||||
return NewSessionCollectionResponse(), nil
|
||||
}
|
||||
// GetFieldDeserializers the deserialization information for the current model
|
||||
func (m *SessionCollectionResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
|
||||
res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers()
|
||||
res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetCollectionOfObjectValues(CreateSessionFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
res := make([]Sessionable, len(val))
|
||||
for i, v := range val {
|
||||
res[i] = v.(Sessionable)
|
||||
}
|
||||
m.SetValue(res)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
return res
|
||||
}
|
||||
// GetValue gets the value property value. The value property
|
||||
func (m *SessionCollectionResponse) GetValue()([]Sessionable) {
|
||||
return m.value
|
||||
}
|
||||
// Serialize serializes information the current object
|
||||
func (m *SessionCollectionResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
|
||||
err := m.BaseCollectionPaginationCountResponse.Serialize(writer)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if m.GetValue() != nil {
|
||||
cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue()))
|
||||
for i, v := range m.GetValue() {
|
||||
cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable)
|
||||
}
|
||||
err = writer.WriteCollectionOfObjectValues("value", cast)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
// SetValue sets the value property value. The value property
|
||||
func (m *SessionCollectionResponse) SetValue(value []Sessionable)() {
|
||||
m.value = value
|
||||
}
|
||||
@ -0,0 +1,14 @@
|
||||
package callrecords
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models"
|
||||
)
|
||||
|
||||
// SessionCollectionResponseable
|
||||
type SessionCollectionResponseable interface {
|
||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.BaseCollectionPaginationCountResponseable
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
||||
GetValue()([]Sessionable)
|
||||
SetValue(value []Sessionable)()
|
||||
}
|
||||
@ -0,0 +1,27 @@
|
||||
package callrecords
|
||||
|
||||
import (
|
||||
i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time"
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models"
|
||||
)
|
||||
|
||||
// Sessionable
|
||||
type Sessionable interface {
|
||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.Entityable
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
||||
GetCallee()(Endpointable)
|
||||
GetCaller()(Endpointable)
|
||||
GetEndDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)
|
||||
GetFailureInfo()(FailureInfoable)
|
||||
GetModalities()([]Modality)
|
||||
GetSegments()([]Segmentable)
|
||||
GetStartDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)
|
||||
SetCallee(value Endpointable)()
|
||||
SetCaller(value Endpointable)()
|
||||
SetEndDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)()
|
||||
SetFailureInfo(value FailureInfoable)()
|
||||
SetModalities(value []Modality)()
|
||||
SetSegments(value []Segmentable)()
|
||||
SetStartDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)()
|
||||
}
|
||||
@ -0,0 +1,149 @@
|
||||
package callrecords
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// TraceRouteHop
|
||||
type TraceRouteHop struct {
|
||||
// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
additionalData map[string]interface{}
|
||||
// The network path count of this hop that was used to compute the round-trip time.
|
||||
hopCount *int32
|
||||
// IP address used for this hop in the network trace.
|
||||
ipAddress *string
|
||||
// The OdataType property
|
||||
odataType *string
|
||||
// The time from when the trace route packet was sent from the client to this hop and back to the client, denoted in [ISO 8601][] format. For example, 1 second is denoted as PT1S, where P is the duration designator, T is the time designator, and S is the second designator.
|
||||
roundTripTime *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ISODuration
|
||||
}
|
||||
// NewTraceRouteHop instantiates a new traceRouteHop and sets the default values.
|
||||
func NewTraceRouteHop()(*TraceRouteHop) {
|
||||
m := &TraceRouteHop{
|
||||
}
|
||||
m.SetAdditionalData(make(map[string]interface{}));
|
||||
return m
|
||||
}
|
||||
// CreateTraceRouteHopFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
||||
func CreateTraceRouteHopFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
||||
return NewTraceRouteHop(), 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 *TraceRouteHop) GetAdditionalData()(map[string]interface{}) {
|
||||
return m.additionalData
|
||||
}
|
||||
// GetFieldDeserializers the deserialization information for the current model
|
||||
func (m *TraceRouteHop) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
|
||||
res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
|
||||
res["hopCount"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetInt32Value()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetHopCount(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["ipAddress"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetIpAddress(val)
|
||||
}
|
||||
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["roundTripTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetISODurationValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetRoundTripTime(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
return res
|
||||
}
|
||||
// GetHopCount gets the hopCount property value. The network path count of this hop that was used to compute the round-trip time.
|
||||
func (m *TraceRouteHop) GetHopCount()(*int32) {
|
||||
return m.hopCount
|
||||
}
|
||||
// GetIpAddress gets the ipAddress property value. IP address used for this hop in the network trace.
|
||||
func (m *TraceRouteHop) GetIpAddress()(*string) {
|
||||
return m.ipAddress
|
||||
}
|
||||
// GetOdataType gets the @odata.type property value. The OdataType property
|
||||
func (m *TraceRouteHop) GetOdataType()(*string) {
|
||||
return m.odataType
|
||||
}
|
||||
// GetRoundTripTime gets the roundTripTime property value. The time from when the trace route packet was sent from the client to this hop and back to the client, denoted in [ISO 8601][] format. For example, 1 second is denoted as PT1S, where P is the duration designator, T is the time designator, and S is the second designator.
|
||||
func (m *TraceRouteHop) GetRoundTripTime()(*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ISODuration) {
|
||||
return m.roundTripTime
|
||||
}
|
||||
// Serialize serializes information the current object
|
||||
func (m *TraceRouteHop) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
|
||||
{
|
||||
err := writer.WriteInt32Value("hopCount", m.GetHopCount())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteStringValue("ipAddress", m.GetIpAddress())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteStringValue("@odata.type", m.GetOdataType())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteISODurationValue("roundTripTime", m.GetRoundTripTime())
|
||||
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 *TraceRouteHop) SetAdditionalData(value map[string]interface{})() {
|
||||
m.additionalData = value
|
||||
}
|
||||
// SetHopCount sets the hopCount property value. The network path count of this hop that was used to compute the round-trip time.
|
||||
func (m *TraceRouteHop) SetHopCount(value *int32)() {
|
||||
m.hopCount = value
|
||||
}
|
||||
// SetIpAddress sets the ipAddress property value. IP address used for this hop in the network trace.
|
||||
func (m *TraceRouteHop) SetIpAddress(value *string)() {
|
||||
m.ipAddress = value
|
||||
}
|
||||
// SetOdataType sets the @odata.type property value. The OdataType property
|
||||
func (m *TraceRouteHop) SetOdataType(value *string)() {
|
||||
m.odataType = value
|
||||
}
|
||||
// SetRoundTripTime sets the roundTripTime property value. The time from when the trace route packet was sent from the client to this hop and back to the client, denoted in [ISO 8601][] format. For example, 1 second is denoted as PT1S, where P is the duration designator, T is the time designator, and S is the second designator.
|
||||
func (m *TraceRouteHop) SetRoundTripTime(value *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ISODuration)() {
|
||||
m.roundTripTime = value
|
||||
}
|
||||
@ -0,0 +1,69 @@
|
||||
package callrecords
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models"
|
||||
)
|
||||
|
||||
// TraceRouteHopCollectionResponse
|
||||
type TraceRouteHopCollectionResponse struct {
|
||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.BaseCollectionPaginationCountResponse
|
||||
// The value property
|
||||
value []TraceRouteHopable
|
||||
}
|
||||
// NewTraceRouteHopCollectionResponse instantiates a new TraceRouteHopCollectionResponse and sets the default values.
|
||||
func NewTraceRouteHopCollectionResponse()(*TraceRouteHopCollectionResponse) {
|
||||
m := &TraceRouteHopCollectionResponse{
|
||||
BaseCollectionPaginationCountResponse: *ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.NewBaseCollectionPaginationCountResponse(),
|
||||
}
|
||||
return m
|
||||
}
|
||||
// CreateTraceRouteHopCollectionResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
||||
func CreateTraceRouteHopCollectionResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
||||
return NewTraceRouteHopCollectionResponse(), nil
|
||||
}
|
||||
// GetFieldDeserializers the deserialization information for the current model
|
||||
func (m *TraceRouteHopCollectionResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
|
||||
res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers()
|
||||
res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetCollectionOfObjectValues(CreateTraceRouteHopFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
res := make([]TraceRouteHopable, len(val))
|
||||
for i, v := range val {
|
||||
res[i] = v.(TraceRouteHopable)
|
||||
}
|
||||
m.SetValue(res)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
return res
|
||||
}
|
||||
// GetValue gets the value property value. The value property
|
||||
func (m *TraceRouteHopCollectionResponse) GetValue()([]TraceRouteHopable) {
|
||||
return m.value
|
||||
}
|
||||
// Serialize serializes information the current object
|
||||
func (m *TraceRouteHopCollectionResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
|
||||
err := m.BaseCollectionPaginationCountResponse.Serialize(writer)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if m.GetValue() != nil {
|
||||
cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue()))
|
||||
for i, v := range m.GetValue() {
|
||||
cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable)
|
||||
}
|
||||
err = writer.WriteCollectionOfObjectValues("value", cast)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
// SetValue sets the value property value. The value property
|
||||
func (m *TraceRouteHopCollectionResponse) SetValue(value []TraceRouteHopable)() {
|
||||
m.value = value
|
||||
}
|
||||
@ -0,0 +1,14 @@
|
||||
package callrecords
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models"
|
||||
)
|
||||
|
||||
// TraceRouteHopCollectionResponseable
|
||||
type TraceRouteHopCollectionResponseable interface {
|
||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.BaseCollectionPaginationCountResponseable
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
||||
GetValue()([]TraceRouteHopable)
|
||||
SetValue(value []TraceRouteHopable)()
|
||||
}
|
||||
@ -0,0 +1,19 @@
|
||||
package callrecords
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// TraceRouteHopable
|
||||
type TraceRouteHopable interface {
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
||||
GetHopCount()(*int32)
|
||||
GetIpAddress()(*string)
|
||||
GetOdataType()(*string)
|
||||
GetRoundTripTime()(*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ISODuration)
|
||||
SetHopCount(value *int32)()
|
||||
SetIpAddress(value *string)()
|
||||
SetOdataType(value *string)()
|
||||
SetRoundTripTime(value *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ISODuration)()
|
||||
}
|
||||
@ -0,0 +1,143 @@
|
||||
package callrecords
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// UserAgent
|
||||
type UserAgent struct {
|
||||
// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
additionalData map[string]interface{}
|
||||
// Identifies the version of application software used by this endpoint.
|
||||
applicationVersion *string
|
||||
// User-agent header value reported by this endpoint.
|
||||
headerValue *string
|
||||
// The OdataType property
|
||||
odataType *string
|
||||
}
|
||||
// NewUserAgent instantiates a new userAgent and sets the default values.
|
||||
func NewUserAgent()(*UserAgent) {
|
||||
m := &UserAgent{
|
||||
}
|
||||
m.SetAdditionalData(make(map[string]interface{}));
|
||||
return m
|
||||
}
|
||||
// CreateUserAgentFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
||||
func CreateUserAgentFromDiscriminatorValue(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.callRecords.clientUserAgent":
|
||||
return NewClientUserAgent(), nil
|
||||
case "#microsoft.graph.callRecords.serviceUserAgent":
|
||||
return NewServiceUserAgent(), nil
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return NewUserAgent(), 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 *UserAgent) GetAdditionalData()(map[string]interface{}) {
|
||||
return m.additionalData
|
||||
}
|
||||
// GetApplicationVersion gets the applicationVersion property value. Identifies the version of application software used by this endpoint.
|
||||
func (m *UserAgent) GetApplicationVersion()(*string) {
|
||||
return m.applicationVersion
|
||||
}
|
||||
// GetFieldDeserializers the deserialization information for the current model
|
||||
func (m *UserAgent) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
|
||||
res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
|
||||
res["applicationVersion"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetApplicationVersion(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["headerValue"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetHeaderValue(val)
|
||||
}
|
||||
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
|
||||
}
|
||||
return res
|
||||
}
|
||||
// GetHeaderValue gets the headerValue property value. User-agent header value reported by this endpoint.
|
||||
func (m *UserAgent) GetHeaderValue()(*string) {
|
||||
return m.headerValue
|
||||
}
|
||||
// GetOdataType gets the @odata.type property value. The OdataType property
|
||||
func (m *UserAgent) GetOdataType()(*string) {
|
||||
return m.odataType
|
||||
}
|
||||
// Serialize serializes information the current object
|
||||
func (m *UserAgent) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
|
||||
{
|
||||
err := writer.WriteStringValue("applicationVersion", m.GetApplicationVersion())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteStringValue("headerValue", m.GetHeaderValue())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteStringValue("@odata.type", m.GetOdataType())
|
||||
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 *UserAgent) SetAdditionalData(value map[string]interface{})() {
|
||||
m.additionalData = value
|
||||
}
|
||||
// SetApplicationVersion sets the applicationVersion property value. Identifies the version of application software used by this endpoint.
|
||||
func (m *UserAgent) SetApplicationVersion(value *string)() {
|
||||
m.applicationVersion = value
|
||||
}
|
||||
// SetHeaderValue sets the headerValue property value. User-agent header value reported by this endpoint.
|
||||
func (m *UserAgent) SetHeaderValue(value *string)() {
|
||||
m.headerValue = value
|
||||
}
|
||||
// SetOdataType sets the @odata.type property value. The OdataType property
|
||||
func (m *UserAgent) SetOdataType(value *string)() {
|
||||
m.odataType = value
|
||||
}
|
||||
@ -0,0 +1,17 @@
|
||||
package callrecords
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// UserAgentable
|
||||
type UserAgentable interface {
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
||||
GetApplicationVersion()(*string)
|
||||
GetHeaderValue()(*string)
|
||||
GetOdataType()(*string)
|
||||
SetApplicationVersion(value *string)()
|
||||
SetHeaderValue(value *string)()
|
||||
SetOdataType(value *string)()
|
||||
}
|
||||
@ -0,0 +1,150 @@
|
||||
package callrecords
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// UserFeedback
|
||||
type UserFeedback struct {
|
||||
// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
additionalData map[string]interface{}
|
||||
// The OdataType property
|
||||
odataType *string
|
||||
// The rating property
|
||||
rating *UserFeedbackRating
|
||||
// The feedback text provided by the user of this endpoint for the session.
|
||||
text *string
|
||||
// The set of feedback tokens provided by the user of this endpoint for the session. This is a set of Boolean properties. The property names should not be relied upon since they may change depending on what tokens are offered to the user.
|
||||
tokens FeedbackTokenSetable
|
||||
}
|
||||
// NewUserFeedback instantiates a new userFeedback and sets the default values.
|
||||
func NewUserFeedback()(*UserFeedback) {
|
||||
m := &UserFeedback{
|
||||
}
|
||||
m.SetAdditionalData(make(map[string]interface{}));
|
||||
return m
|
||||
}
|
||||
// CreateUserFeedbackFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
||||
func CreateUserFeedbackFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
||||
return NewUserFeedback(), 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 *UserFeedback) GetAdditionalData()(map[string]interface{}) {
|
||||
return m.additionalData
|
||||
}
|
||||
// GetFieldDeserializers the deserialization information for the current model
|
||||
func (m *UserFeedback) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
|
||||
res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
|
||||
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["rating"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetEnumValue(ParseUserFeedbackRating)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetRating(val.(*UserFeedbackRating))
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["text"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetText(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["tokens"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetObjectValue(CreateFeedbackTokenSetFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetTokens(val.(FeedbackTokenSetable))
|
||||
}
|
||||
return nil
|
||||
}
|
||||
return res
|
||||
}
|
||||
// GetOdataType gets the @odata.type property value. The OdataType property
|
||||
func (m *UserFeedback) GetOdataType()(*string) {
|
||||
return m.odataType
|
||||
}
|
||||
// GetRating gets the rating property value. The rating property
|
||||
func (m *UserFeedback) GetRating()(*UserFeedbackRating) {
|
||||
return m.rating
|
||||
}
|
||||
// GetText gets the text property value. The feedback text provided by the user of this endpoint for the session.
|
||||
func (m *UserFeedback) GetText()(*string) {
|
||||
return m.text
|
||||
}
|
||||
// GetTokens gets the tokens property value. The set of feedback tokens provided by the user of this endpoint for the session. This is a set of Boolean properties. The property names should not be relied upon since they may change depending on what tokens are offered to the user.
|
||||
func (m *UserFeedback) GetTokens()(FeedbackTokenSetable) {
|
||||
return m.tokens
|
||||
}
|
||||
// Serialize serializes information the current object
|
||||
func (m *UserFeedback) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
|
||||
{
|
||||
err := writer.WriteStringValue("@odata.type", m.GetOdataType())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
if m.GetRating() != nil {
|
||||
cast := (*m.GetRating()).String()
|
||||
err := writer.WriteStringValue("rating", &cast)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteStringValue("text", m.GetText())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteObjectValue("tokens", m.GetTokens())
|
||||
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 *UserFeedback) SetAdditionalData(value map[string]interface{})() {
|
||||
m.additionalData = value
|
||||
}
|
||||
// SetOdataType sets the @odata.type property value. The OdataType property
|
||||
func (m *UserFeedback) SetOdataType(value *string)() {
|
||||
m.odataType = value
|
||||
}
|
||||
// SetRating sets the rating property value. The rating property
|
||||
func (m *UserFeedback) SetRating(value *UserFeedbackRating)() {
|
||||
m.rating = value
|
||||
}
|
||||
// SetText sets the text property value. The feedback text provided by the user of this endpoint for the session.
|
||||
func (m *UserFeedback) SetText(value *string)() {
|
||||
m.text = value
|
||||
}
|
||||
// SetTokens sets the tokens property value. The set of feedback tokens provided by the user of this endpoint for the session. This is a set of Boolean properties. The property names should not be relied upon since they may change depending on what tokens are offered to the user.
|
||||
func (m *UserFeedback) SetTokens(value FeedbackTokenSetable)() {
|
||||
m.tokens = value
|
||||
}
|
||||
@ -0,0 +1,49 @@
|
||||
package callrecords
|
||||
import (
|
||||
"errors"
|
||||
)
|
||||
// Provides operations to manage the sites property of the microsoft.graph.browserSiteList entity.
|
||||
type UserFeedbackRating int
|
||||
|
||||
const (
|
||||
NOTRATED_USERFEEDBACKRATING UserFeedbackRating = iota
|
||||
BAD_USERFEEDBACKRATING
|
||||
POOR_USERFEEDBACKRATING
|
||||
FAIR_USERFEEDBACKRATING
|
||||
GOOD_USERFEEDBACKRATING
|
||||
EXCELLENT_USERFEEDBACKRATING
|
||||
UNKNOWNFUTUREVALUE_USERFEEDBACKRATING
|
||||
)
|
||||
|
||||
func (i UserFeedbackRating) String() string {
|
||||
return []string{"notRated", "bad", "poor", "fair", "good", "excellent", "unknownFutureValue"}[i]
|
||||
}
|
||||
func ParseUserFeedbackRating(v string) (interface{}, error) {
|
||||
result := NOTRATED_USERFEEDBACKRATING
|
||||
switch v {
|
||||
case "notRated":
|
||||
result = NOTRATED_USERFEEDBACKRATING
|
||||
case "bad":
|
||||
result = BAD_USERFEEDBACKRATING
|
||||
case "poor":
|
||||
result = POOR_USERFEEDBACKRATING
|
||||
case "fair":
|
||||
result = FAIR_USERFEEDBACKRATING
|
||||
case "good":
|
||||
result = GOOD_USERFEEDBACKRATING
|
||||
case "excellent":
|
||||
result = EXCELLENT_USERFEEDBACKRATING
|
||||
case "unknownFutureValue":
|
||||
result = UNKNOWNFUTUREVALUE_USERFEEDBACKRATING
|
||||
default:
|
||||
return 0, errors.New("Unknown UserFeedbackRating value: " + v)
|
||||
}
|
||||
return &result, nil
|
||||
}
|
||||
func SerializeUserFeedbackRating(values []UserFeedbackRating) []string {
|
||||
result := make([]string, len(values))
|
||||
for i, v := range values {
|
||||
result[i] = v.String()
|
||||
}
|
||||
return result
|
||||
}
|
||||
@ -0,0 +1,19 @@
|
||||
package callrecords
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// UserFeedbackable
|
||||
type UserFeedbackable interface {
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
||||
GetOdataType()(*string)
|
||||
GetRating()(*UserFeedbackRating)
|
||||
GetText()(*string)
|
||||
GetTokens()(FeedbackTokenSetable)
|
||||
SetOdataType(value *string)()
|
||||
SetRating(value *UserFeedbackRating)()
|
||||
SetText(value *string)()
|
||||
SetTokens(value FeedbackTokenSetable)()
|
||||
}
|
||||
@ -0,0 +1,64 @@
|
||||
package callrecords
|
||||
import (
|
||||
"errors"
|
||||
)
|
||||
// Provides operations to manage the sites property of the microsoft.graph.browserSiteList entity.
|
||||
type VideoCodec int
|
||||
|
||||
const (
|
||||
UNKNOWN_VIDEOCODEC VideoCodec = iota
|
||||
INVALID_VIDEOCODEC
|
||||
AV1_VIDEOCODEC
|
||||
H263_VIDEOCODEC
|
||||
H264_VIDEOCODEC
|
||||
H264S_VIDEOCODEC
|
||||
H264UC_VIDEOCODEC
|
||||
H265_VIDEOCODEC
|
||||
RTVC1_VIDEOCODEC
|
||||
RTVIDEO_VIDEOCODEC
|
||||
XRTVC1_VIDEOCODEC
|
||||
UNKNOWNFUTUREVALUE_VIDEOCODEC
|
||||
)
|
||||
|
||||
func (i VideoCodec) String() string {
|
||||
return []string{"unknown", "invalid", "av1", "h263", "h264", "h264s", "h264uc", "h265", "rtvc1", "rtVideo", "xrtvc1", "unknownFutureValue"}[i]
|
||||
}
|
||||
func ParseVideoCodec(v string) (interface{}, error) {
|
||||
result := UNKNOWN_VIDEOCODEC
|
||||
switch v {
|
||||
case "unknown":
|
||||
result = UNKNOWN_VIDEOCODEC
|
||||
case "invalid":
|
||||
result = INVALID_VIDEOCODEC
|
||||
case "av1":
|
||||
result = AV1_VIDEOCODEC
|
||||
case "h263":
|
||||
result = H263_VIDEOCODEC
|
||||
case "h264":
|
||||
result = H264_VIDEOCODEC
|
||||
case "h264s":
|
||||
result = H264S_VIDEOCODEC
|
||||
case "h264uc":
|
||||
result = H264UC_VIDEOCODEC
|
||||
case "h265":
|
||||
result = H265_VIDEOCODEC
|
||||
case "rtvc1":
|
||||
result = RTVC1_VIDEOCODEC
|
||||
case "rtVideo":
|
||||
result = RTVIDEO_VIDEOCODEC
|
||||
case "xrtvc1":
|
||||
result = XRTVC1_VIDEOCODEC
|
||||
case "unknownFutureValue":
|
||||
result = UNKNOWNFUTUREVALUE_VIDEOCODEC
|
||||
default:
|
||||
return 0, errors.New("Unknown VideoCodec value: " + v)
|
||||
}
|
||||
return &result, nil
|
||||
}
|
||||
func SerializeVideoCodec(values []VideoCodec) []string {
|
||||
result := make([]string, len(values))
|
||||
for i, v := range values {
|
||||
result[i] = v.String()
|
||||
}
|
||||
return result
|
||||
}
|
||||
@ -0,0 +1,43 @@
|
||||
package callrecords
|
||||
import (
|
||||
"errors"
|
||||
)
|
||||
// Provides operations to manage the sites property of the microsoft.graph.browserSiteList entity.
|
||||
type WifiBand int
|
||||
|
||||
const (
|
||||
UNKNOWN_WIFIBAND WifiBand = iota
|
||||
FREQUENCY24GHZ_WIFIBAND
|
||||
FREQUENCY50GHZ_WIFIBAND
|
||||
FREQUENCY60GHZ_WIFIBAND
|
||||
UNKNOWNFUTUREVALUE_WIFIBAND
|
||||
)
|
||||
|
||||
func (i WifiBand) String() string {
|
||||
return []string{"unknown", "frequency24GHz", "frequency50GHz", "frequency60GHz", "unknownFutureValue"}[i]
|
||||
}
|
||||
func ParseWifiBand(v string) (interface{}, error) {
|
||||
result := UNKNOWN_WIFIBAND
|
||||
switch v {
|
||||
case "unknown":
|
||||
result = UNKNOWN_WIFIBAND
|
||||
case "frequency24GHz":
|
||||
result = FREQUENCY24GHZ_WIFIBAND
|
||||
case "frequency50GHz":
|
||||
result = FREQUENCY50GHZ_WIFIBAND
|
||||
case "frequency60GHz":
|
||||
result = FREQUENCY60GHZ_WIFIBAND
|
||||
case "unknownFutureValue":
|
||||
result = UNKNOWNFUTUREVALUE_WIFIBAND
|
||||
default:
|
||||
return 0, errors.New("Unknown WifiBand value: " + v)
|
||||
}
|
||||
return &result, nil
|
||||
}
|
||||
func SerializeWifiBand(values []WifiBand) []string {
|
||||
result := make([]string, len(values))
|
||||
for i, v := range values {
|
||||
result[i] = v.String()
|
||||
}
|
||||
return result
|
||||
}
|
||||
@ -0,0 +1,52 @@
|
||||
package callrecords
|
||||
import (
|
||||
"errors"
|
||||
)
|
||||
// Provides operations to manage the sites property of the microsoft.graph.browserSiteList entity.
|
||||
type WifiRadioType int
|
||||
|
||||
const (
|
||||
UNKNOWN_WIFIRADIOTYPE WifiRadioType = iota
|
||||
WIFI80211A_WIFIRADIOTYPE
|
||||
WIFI80211B_WIFIRADIOTYPE
|
||||
WIFI80211G_WIFIRADIOTYPE
|
||||
WIFI80211N_WIFIRADIOTYPE
|
||||
WIFI80211AC_WIFIRADIOTYPE
|
||||
WIFI80211AX_WIFIRADIOTYPE
|
||||
UNKNOWNFUTUREVALUE_WIFIRADIOTYPE
|
||||
)
|
||||
|
||||
func (i WifiRadioType) String() string {
|
||||
return []string{"unknown", "wifi80211a", "wifi80211b", "wifi80211g", "wifi80211n", "wifi80211ac", "wifi80211ax", "unknownFutureValue"}[i]
|
||||
}
|
||||
func ParseWifiRadioType(v string) (interface{}, error) {
|
||||
result := UNKNOWN_WIFIRADIOTYPE
|
||||
switch v {
|
||||
case "unknown":
|
||||
result = UNKNOWN_WIFIRADIOTYPE
|
||||
case "wifi80211a":
|
||||
result = WIFI80211A_WIFIRADIOTYPE
|
||||
case "wifi80211b":
|
||||
result = WIFI80211B_WIFIRADIOTYPE
|
||||
case "wifi80211g":
|
||||
result = WIFI80211G_WIFIRADIOTYPE
|
||||
case "wifi80211n":
|
||||
result = WIFI80211N_WIFIRADIOTYPE
|
||||
case "wifi80211ac":
|
||||
result = WIFI80211AC_WIFIRADIOTYPE
|
||||
case "wifi80211ax":
|
||||
result = WIFI80211AX_WIFIRADIOTYPE
|
||||
case "unknownFutureValue":
|
||||
result = UNKNOWNFUTUREVALUE_WIFIRADIOTYPE
|
||||
default:
|
||||
return 0, errors.New("Unknown WifiRadioType value: " + v)
|
||||
}
|
||||
return &result, nil
|
||||
}
|
||||
func SerializeWifiRadioType(values []WifiRadioType) []string {
|
||||
result := make([]string, len(values))
|
||||
for i, v := range values {
|
||||
result[i] = v.String()
|
||||
}
|
||||
return result
|
||||
}
|
||||
@ -0,0 +1,43 @@
|
||||
package devicemanagement
|
||||
import (
|
||||
"errors"
|
||||
)
|
||||
// Provides operations to manage the sites property of the microsoft.graph.browserSiteList entity.
|
||||
type AggregationType int
|
||||
|
||||
const (
|
||||
COUNT_AGGREGATIONTYPE AggregationType = iota
|
||||
PERCENTAGE_AGGREGATIONTYPE
|
||||
AFFECTEDCLOUDPCCOUNT_AGGREGATIONTYPE
|
||||
AFFECTEDCLOUDPCPERCENTAGE_AGGREGATIONTYPE
|
||||
UNKNOWNFUTUREVALUE_AGGREGATIONTYPE
|
||||
)
|
||||
|
||||
func (i AggregationType) String() string {
|
||||
return []string{"count", "percentage", "affectedCloudPcCount", "affectedCloudPcPercentage", "unknownFutureValue"}[i]
|
||||
}
|
||||
func ParseAggregationType(v string) (interface{}, error) {
|
||||
result := COUNT_AGGREGATIONTYPE
|
||||
switch v {
|
||||
case "count":
|
||||
result = COUNT_AGGREGATIONTYPE
|
||||
case "percentage":
|
||||
result = PERCENTAGE_AGGREGATIONTYPE
|
||||
case "affectedCloudPcCount":
|
||||
result = AFFECTEDCLOUDPCCOUNT_AGGREGATIONTYPE
|
||||
case "affectedCloudPcPercentage":
|
||||
result = AFFECTEDCLOUDPCPERCENTAGE_AGGREGATIONTYPE
|
||||
case "unknownFutureValue":
|
||||
result = UNKNOWNFUTUREVALUE_AGGREGATIONTYPE
|
||||
default:
|
||||
return 0, errors.New("Unknown AggregationType value: " + v)
|
||||
}
|
||||
return &result, nil
|
||||
}
|
||||
func SerializeAggregationType(values []AggregationType) []string {
|
||||
result := make([]string, len(values))
|
||||
for i, v := range values {
|
||||
result[i] = v.String()
|
||||
}
|
||||
return result
|
||||
}
|
||||
@ -0,0 +1,124 @@
|
||||
package devicemanagement
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// AlertImpact
|
||||
type AlertImpact struct {
|
||||
// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
additionalData map[string]interface{}
|
||||
// The aggregation type of the impact. The possible values are: count, percentage, affectedCloudPcCount, affectedCloudPcPercentage, unknownFutureValue.
|
||||
aggregationType *AggregationType
|
||||
// The OdataType property
|
||||
odataType *string
|
||||
// The number value of the impact. For the aggregation types of count and affectedCloudPcCount, the value indicates the number of affected instances. For example, 6 affectedCloudPcCount means that 6 Cloud PCs are affected. For the aggregation types of percentage and affectedCloudPcPercentage, the value indicates the percent of affected instances. For example, 12 affectedCloudPcPercentage means that 12% of Cloud PCs are affected.
|
||||
value *int32
|
||||
}
|
||||
// NewAlertImpact instantiates a new alertImpact and sets the default values.
|
||||
func NewAlertImpact()(*AlertImpact) {
|
||||
m := &AlertImpact{
|
||||
}
|
||||
m.SetAdditionalData(make(map[string]interface{}));
|
||||
return m
|
||||
}
|
||||
// CreateAlertImpactFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
||||
func CreateAlertImpactFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
||||
return NewAlertImpact(), 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 *AlertImpact) GetAdditionalData()(map[string]interface{}) {
|
||||
return m.additionalData
|
||||
}
|
||||
// GetAggregationType gets the aggregationType property value. The aggregation type of the impact. The possible values are: count, percentage, affectedCloudPcCount, affectedCloudPcPercentage, unknownFutureValue.
|
||||
func (m *AlertImpact) GetAggregationType()(*AggregationType) {
|
||||
return m.aggregationType
|
||||
}
|
||||
// GetFieldDeserializers the deserialization information for the current model
|
||||
func (m *AlertImpact) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
|
||||
res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
|
||||
res["aggregationType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetEnumValue(ParseAggregationType)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetAggregationType(val.(*AggregationType))
|
||||
}
|
||||
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["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetInt32Value()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetValue(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
return res
|
||||
}
|
||||
// GetOdataType gets the @odata.type property value. The OdataType property
|
||||
func (m *AlertImpact) GetOdataType()(*string) {
|
||||
return m.odataType
|
||||
}
|
||||
// GetValue gets the value property value. The number value of the impact. For the aggregation types of count and affectedCloudPcCount, the value indicates the number of affected instances. For example, 6 affectedCloudPcCount means that 6 Cloud PCs are affected. For the aggregation types of percentage and affectedCloudPcPercentage, the value indicates the percent of affected instances. For example, 12 affectedCloudPcPercentage means that 12% of Cloud PCs are affected.
|
||||
func (m *AlertImpact) GetValue()(*int32) {
|
||||
return m.value
|
||||
}
|
||||
// Serialize serializes information the current object
|
||||
func (m *AlertImpact) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
|
||||
if m.GetAggregationType() != nil {
|
||||
cast := (*m.GetAggregationType()).String()
|
||||
err := writer.WriteStringValue("aggregationType", &cast)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteStringValue("@odata.type", m.GetOdataType())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteInt32Value("value", m.GetValue())
|
||||
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 *AlertImpact) SetAdditionalData(value map[string]interface{})() {
|
||||
m.additionalData = value
|
||||
}
|
||||
// SetAggregationType sets the aggregationType property value. The aggregation type of the impact. The possible values are: count, percentage, affectedCloudPcCount, affectedCloudPcPercentage, unknownFutureValue.
|
||||
func (m *AlertImpact) SetAggregationType(value *AggregationType)() {
|
||||
m.aggregationType = value
|
||||
}
|
||||
// SetOdataType sets the @odata.type property value. The OdataType property
|
||||
func (m *AlertImpact) SetOdataType(value *string)() {
|
||||
m.odataType = value
|
||||
}
|
||||
// SetValue sets the value property value. The number value of the impact. For the aggregation types of count and affectedCloudPcCount, the value indicates the number of affected instances. For example, 6 affectedCloudPcCount means that 6 Cloud PCs are affected. For the aggregation types of percentage and affectedCloudPcPercentage, the value indicates the percent of affected instances. For example, 12 affectedCloudPcPercentage means that 12% of Cloud PCs are affected.
|
||||
func (m *AlertImpact) SetValue(value *int32)() {
|
||||
m.value = value
|
||||
}
|
||||
@ -0,0 +1,17 @@
|
||||
package devicemanagement
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// AlertImpactable
|
||||
type AlertImpactable interface {
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
||||
GetAggregationType()(*AggregationType)
|
||||
GetOdataType()(*string)
|
||||
GetValue()(*int32)
|
||||
SetAggregationType(value *AggregationType)()
|
||||
SetOdataType(value *string)()
|
||||
SetValue(value *int32)()
|
||||
}
|
||||
@ -0,0 +1,273 @@
|
||||
package devicemanagement
|
||||
|
||||
import (
|
||||
i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time"
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models"
|
||||
)
|
||||
|
||||
// AlertRecord provides operations to manage the sites property of the microsoft.graph.browserSiteList entity.
|
||||
type AlertRecord struct {
|
||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.Entity
|
||||
// The impact of the alert event. Consists of a number followed by the aggregation type. For example, 6 affectedCloudPcCount means that 6 Cloud PCs are affected. 12 affectedCloudPcPercentage means 12% of Cloud PCs are affected.
|
||||
alertImpact AlertImpactable
|
||||
// The corresponding ID of the alert rule.
|
||||
alertRuleId *string
|
||||
// The rule template of the alert event. The possible values are: cloudPcProvisionScenario, cloudPcImageUploadScenario, cloudPcOnPremiseNetworkConnectionCheckScenario, unknownFutureValue.
|
||||
alertRuleTemplate *AlertRuleTemplate
|
||||
// The date and time when the alert event was detected. The Timestamp type represents date and time information using ISO 8601 format. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.
|
||||
detectedDateTime *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time
|
||||
// The display name of the alert record.
|
||||
displayName *string
|
||||
// The date and time when the alert record was last updated. The Timestamp type represents date and time information using ISO 8601 format. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.
|
||||
lastUpdatedDateTime *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time
|
||||
// The date and time when the alert event was resolved. The Timestamp type represents date and time information using ISO 8601 format. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.
|
||||
resolvedDateTime *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time
|
||||
// The severity of the alert event. The possible values are: unknown, informational, warning, critical, unknownFutureValue.
|
||||
severity *RuleSeverityType
|
||||
// The status of the alert record. The possible values are: active, resolved, unknownFutureValue.
|
||||
status *AlertStatusType
|
||||
}
|
||||
// NewAlertRecord instantiates a new alertRecord and sets the default values.
|
||||
func NewAlertRecord()(*AlertRecord) {
|
||||
m := &AlertRecord{
|
||||
Entity: *ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.NewEntity(),
|
||||
}
|
||||
return m
|
||||
}
|
||||
// CreateAlertRecordFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
||||
func CreateAlertRecordFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
||||
return NewAlertRecord(), nil
|
||||
}
|
||||
// GetAlertImpact gets the alertImpact property value. The impact of the alert event. Consists of a number followed by the aggregation type. For example, 6 affectedCloudPcCount means that 6 Cloud PCs are affected. 12 affectedCloudPcPercentage means 12% of Cloud PCs are affected.
|
||||
func (m *AlertRecord) GetAlertImpact()(AlertImpactable) {
|
||||
return m.alertImpact
|
||||
}
|
||||
// GetAlertRuleId gets the alertRuleId property value. The corresponding ID of the alert rule.
|
||||
func (m *AlertRecord) GetAlertRuleId()(*string) {
|
||||
return m.alertRuleId
|
||||
}
|
||||
// GetAlertRuleTemplate gets the alertRuleTemplate property value. The rule template of the alert event. The possible values are: cloudPcProvisionScenario, cloudPcImageUploadScenario, cloudPcOnPremiseNetworkConnectionCheckScenario, unknownFutureValue.
|
||||
func (m *AlertRecord) GetAlertRuleTemplate()(*AlertRuleTemplate) {
|
||||
return m.alertRuleTemplate
|
||||
}
|
||||
// GetDetectedDateTime gets the detectedDateTime property value. The date and time when the alert event was detected. The Timestamp type represents date and time information using ISO 8601 format. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.
|
||||
func (m *AlertRecord) GetDetectedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) {
|
||||
return m.detectedDateTime
|
||||
}
|
||||
// GetDisplayName gets the displayName property value. The display name of the alert record.
|
||||
func (m *AlertRecord) GetDisplayName()(*string) {
|
||||
return m.displayName
|
||||
}
|
||||
// GetFieldDeserializers the deserialization information for the current model
|
||||
func (m *AlertRecord) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
|
||||
res := m.Entity.GetFieldDeserializers()
|
||||
res["alertImpact"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetObjectValue(CreateAlertImpactFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetAlertImpact(val.(AlertImpactable))
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["alertRuleId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetAlertRuleId(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["alertRuleTemplate"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetEnumValue(ParseAlertRuleTemplate)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetAlertRuleTemplate(val.(*AlertRuleTemplate))
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["detectedDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetTimeValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetDetectedDateTime(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["lastUpdatedDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetTimeValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetLastUpdatedDateTime(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["resolvedDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetTimeValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetResolvedDateTime(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["severity"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetEnumValue(ParseRuleSeverityType)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetSeverity(val.(*RuleSeverityType))
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["status"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetEnumValue(ParseAlertStatusType)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetStatus(val.(*AlertStatusType))
|
||||
}
|
||||
return nil
|
||||
}
|
||||
return res
|
||||
}
|
||||
// GetLastUpdatedDateTime gets the lastUpdatedDateTime property value. The date and time when the alert record was last updated. The Timestamp type represents date and time information using ISO 8601 format. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.
|
||||
func (m *AlertRecord) GetLastUpdatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) {
|
||||
return m.lastUpdatedDateTime
|
||||
}
|
||||
// GetResolvedDateTime gets the resolvedDateTime property value. The date and time when the alert event was resolved. The Timestamp type represents date and time information using ISO 8601 format. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.
|
||||
func (m *AlertRecord) GetResolvedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) {
|
||||
return m.resolvedDateTime
|
||||
}
|
||||
// GetSeverity gets the severity property value. The severity of the alert event. The possible values are: unknown, informational, warning, critical, unknownFutureValue.
|
||||
func (m *AlertRecord) GetSeverity()(*RuleSeverityType) {
|
||||
return m.severity
|
||||
}
|
||||
// GetStatus gets the status property value. The status of the alert record. The possible values are: active, resolved, unknownFutureValue.
|
||||
func (m *AlertRecord) GetStatus()(*AlertStatusType) {
|
||||
return m.status
|
||||
}
|
||||
// Serialize serializes information the current object
|
||||
func (m *AlertRecord) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
|
||||
err := m.Entity.Serialize(writer)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
{
|
||||
err = writer.WriteObjectValue("alertImpact", m.GetAlertImpact())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteStringValue("alertRuleId", m.GetAlertRuleId())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
if m.GetAlertRuleTemplate() != nil {
|
||||
cast := (*m.GetAlertRuleTemplate()).String()
|
||||
err = writer.WriteStringValue("alertRuleTemplate", &cast)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteTimeValue("detectedDateTime", m.GetDetectedDateTime())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteStringValue("displayName", m.GetDisplayName())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteTimeValue("lastUpdatedDateTime", m.GetLastUpdatedDateTime())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteTimeValue("resolvedDateTime", m.GetResolvedDateTime())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
if m.GetSeverity() != nil {
|
||||
cast := (*m.GetSeverity()).String()
|
||||
err = writer.WriteStringValue("severity", &cast)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
if m.GetStatus() != nil {
|
||||
cast := (*m.GetStatus()).String()
|
||||
err = writer.WriteStringValue("status", &cast)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
// SetAlertImpact sets the alertImpact property value. The impact of the alert event. Consists of a number followed by the aggregation type. For example, 6 affectedCloudPcCount means that 6 Cloud PCs are affected. 12 affectedCloudPcPercentage means 12% of Cloud PCs are affected.
|
||||
func (m *AlertRecord) SetAlertImpact(value AlertImpactable)() {
|
||||
m.alertImpact = value
|
||||
}
|
||||
// SetAlertRuleId sets the alertRuleId property value. The corresponding ID of the alert rule.
|
||||
func (m *AlertRecord) SetAlertRuleId(value *string)() {
|
||||
m.alertRuleId = value
|
||||
}
|
||||
// SetAlertRuleTemplate sets the alertRuleTemplate property value. The rule template of the alert event. The possible values are: cloudPcProvisionScenario, cloudPcImageUploadScenario, cloudPcOnPremiseNetworkConnectionCheckScenario, unknownFutureValue.
|
||||
func (m *AlertRecord) SetAlertRuleTemplate(value *AlertRuleTemplate)() {
|
||||
m.alertRuleTemplate = value
|
||||
}
|
||||
// SetDetectedDateTime sets the detectedDateTime property value. The date and time when the alert event was detected. The Timestamp type represents date and time information using ISO 8601 format. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.
|
||||
func (m *AlertRecord) SetDetectedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() {
|
||||
m.detectedDateTime = value
|
||||
}
|
||||
// SetDisplayName sets the displayName property value. The display name of the alert record.
|
||||
func (m *AlertRecord) SetDisplayName(value *string)() {
|
||||
m.displayName = value
|
||||
}
|
||||
// SetLastUpdatedDateTime sets the lastUpdatedDateTime property value. The date and time when the alert record was last updated. The Timestamp type represents date and time information using ISO 8601 format. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.
|
||||
func (m *AlertRecord) SetLastUpdatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() {
|
||||
m.lastUpdatedDateTime = value
|
||||
}
|
||||
// SetResolvedDateTime sets the resolvedDateTime property value. The date and time when the alert event was resolved. The Timestamp type represents date and time information using ISO 8601 format. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.
|
||||
func (m *AlertRecord) SetResolvedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() {
|
||||
m.resolvedDateTime = value
|
||||
}
|
||||
// SetSeverity sets the severity property value. The severity of the alert event. The possible values are: unknown, informational, warning, critical, unknownFutureValue.
|
||||
func (m *AlertRecord) SetSeverity(value *RuleSeverityType)() {
|
||||
m.severity = value
|
||||
}
|
||||
// SetStatus sets the status property value. The status of the alert record. The possible values are: active, resolved, unknownFutureValue.
|
||||
func (m *AlertRecord) SetStatus(value *AlertStatusType)() {
|
||||
m.status = value
|
||||
}
|
||||
@ -0,0 +1,69 @@
|
||||
package devicemanagement
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models"
|
||||
)
|
||||
|
||||
// AlertRecordCollectionResponse
|
||||
type AlertRecordCollectionResponse struct {
|
||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.BaseCollectionPaginationCountResponse
|
||||
// The value property
|
||||
value []AlertRecordable
|
||||
}
|
||||
// NewAlertRecordCollectionResponse instantiates a new AlertRecordCollectionResponse and sets the default values.
|
||||
func NewAlertRecordCollectionResponse()(*AlertRecordCollectionResponse) {
|
||||
m := &AlertRecordCollectionResponse{
|
||||
BaseCollectionPaginationCountResponse: *ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.NewBaseCollectionPaginationCountResponse(),
|
||||
}
|
||||
return m
|
||||
}
|
||||
// CreateAlertRecordCollectionResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
||||
func CreateAlertRecordCollectionResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
||||
return NewAlertRecordCollectionResponse(), nil
|
||||
}
|
||||
// GetFieldDeserializers the deserialization information for the current model
|
||||
func (m *AlertRecordCollectionResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
|
||||
res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers()
|
||||
res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetCollectionOfObjectValues(CreateAlertRecordFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
res := make([]AlertRecordable, len(val))
|
||||
for i, v := range val {
|
||||
res[i] = v.(AlertRecordable)
|
||||
}
|
||||
m.SetValue(res)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
return res
|
||||
}
|
||||
// GetValue gets the value property value. The value property
|
||||
func (m *AlertRecordCollectionResponse) GetValue()([]AlertRecordable) {
|
||||
return m.value
|
||||
}
|
||||
// Serialize serializes information the current object
|
||||
func (m *AlertRecordCollectionResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
|
||||
err := m.BaseCollectionPaginationCountResponse.Serialize(writer)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if m.GetValue() != nil {
|
||||
cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue()))
|
||||
for i, v := range m.GetValue() {
|
||||
cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable)
|
||||
}
|
||||
err = writer.WriteCollectionOfObjectValues("value", cast)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
// SetValue sets the value property value. The value property
|
||||
func (m *AlertRecordCollectionResponse) SetValue(value []AlertRecordable)() {
|
||||
m.value = value
|
||||
}
|
||||
@ -0,0 +1,14 @@
|
||||
package devicemanagement
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models"
|
||||
)
|
||||
|
||||
// AlertRecordCollectionResponseable
|
||||
type AlertRecordCollectionResponseable interface {
|
||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.BaseCollectionPaginationCountResponseable
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
||||
GetValue()([]AlertRecordable)
|
||||
SetValue(value []AlertRecordable)()
|
||||
}
|
||||
@ -0,0 +1,31 @@
|
||||
package devicemanagement
|
||||
|
||||
import (
|
||||
i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time"
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models"
|
||||
)
|
||||
|
||||
// AlertRecordable
|
||||
type AlertRecordable interface {
|
||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.Entityable
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
||||
GetAlertImpact()(AlertImpactable)
|
||||
GetAlertRuleId()(*string)
|
||||
GetAlertRuleTemplate()(*AlertRuleTemplate)
|
||||
GetDetectedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)
|
||||
GetDisplayName()(*string)
|
||||
GetLastUpdatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)
|
||||
GetResolvedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)
|
||||
GetSeverity()(*RuleSeverityType)
|
||||
GetStatus()(*AlertStatusType)
|
||||
SetAlertImpact(value AlertImpactable)()
|
||||
SetAlertRuleId(value *string)()
|
||||
SetAlertRuleTemplate(value *AlertRuleTemplate)()
|
||||
SetDetectedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)()
|
||||
SetDisplayName(value *string)()
|
||||
SetLastUpdatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)()
|
||||
SetResolvedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)()
|
||||
SetSeverity(value *RuleSeverityType)()
|
||||
SetStatus(value *AlertStatusType)()
|
||||
}
|
||||
@ -0,0 +1,253 @@
|
||||
package devicemanagement
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models"
|
||||
)
|
||||
|
||||
// AlertRule provides operations to manage the sites property of the microsoft.graph.browserSiteList entity.
|
||||
type AlertRule struct {
|
||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.Entity
|
||||
// The rule template of the alert event. The possible values are: cloudPcProvisionScenario, cloudPcImageUploadScenario, cloudPcOnPremiseNetworkConnectionCheckScenario, unknownFutureValue.
|
||||
alertRuleTemplate *AlertRuleTemplate
|
||||
// The rule description.
|
||||
description *string
|
||||
// The display name of the rule.
|
||||
displayName *string
|
||||
// The status of the rule that indicates whether the rule is enabled or disabled. If true, the rule is enabled; otherwise, the rule is disabled.
|
||||
enabled *bool
|
||||
// Indicates whether the rule is a system rule. If true, the rule is a system rule; otherwise, the rule is a custom defined rule and can be edited. System rules are built-in and only a few properties can be edited.
|
||||
isSystemRule *bool
|
||||
// The notification channels of the rule selected by the user.
|
||||
notificationChannels []NotificationChannelable
|
||||
// The severity of the rule. The possible values are: unknown, informational, warning, critical, unknownFutureValue.
|
||||
severity *RuleSeverityType
|
||||
// The conditions to send alerts. For example, send alert when provisioning has failed for greater than or equal to 6 Cloud PCs.
|
||||
threshold RuleThresholdable
|
||||
}
|
||||
// NewAlertRule instantiates a new alertRule and sets the default values.
|
||||
func NewAlertRule()(*AlertRule) {
|
||||
m := &AlertRule{
|
||||
Entity: *ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.NewEntity(),
|
||||
}
|
||||
return m
|
||||
}
|
||||
// CreateAlertRuleFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
||||
func CreateAlertRuleFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
||||
return NewAlertRule(), nil
|
||||
}
|
||||
// GetAlertRuleTemplate gets the alertRuleTemplate property value. The rule template of the alert event. The possible values are: cloudPcProvisionScenario, cloudPcImageUploadScenario, cloudPcOnPremiseNetworkConnectionCheckScenario, unknownFutureValue.
|
||||
func (m *AlertRule) GetAlertRuleTemplate()(*AlertRuleTemplate) {
|
||||
return m.alertRuleTemplate
|
||||
}
|
||||
// GetDescription gets the description property value. The rule description.
|
||||
func (m *AlertRule) GetDescription()(*string) {
|
||||
return m.description
|
||||
}
|
||||
// GetDisplayName gets the displayName property value. The display name of the rule.
|
||||
func (m *AlertRule) GetDisplayName()(*string) {
|
||||
return m.displayName
|
||||
}
|
||||
// GetEnabled gets the enabled property value. The status of the rule that indicates whether the rule is enabled or disabled. If true, the rule is enabled; otherwise, the rule is disabled.
|
||||
func (m *AlertRule) GetEnabled()(*bool) {
|
||||
return m.enabled
|
||||
}
|
||||
// GetFieldDeserializers the deserialization information for the current model
|
||||
func (m *AlertRule) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
|
||||
res := m.Entity.GetFieldDeserializers()
|
||||
res["alertRuleTemplate"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetEnumValue(ParseAlertRuleTemplate)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetAlertRuleTemplate(val.(*AlertRuleTemplate))
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["description"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetDescription(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["enabled"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetBoolValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetEnabled(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["isSystemRule"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetBoolValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetIsSystemRule(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["notificationChannels"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetCollectionOfObjectValues(CreateNotificationChannelFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
res := make([]NotificationChannelable, len(val))
|
||||
for i, v := range val {
|
||||
res[i] = v.(NotificationChannelable)
|
||||
}
|
||||
m.SetNotificationChannels(res)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["severity"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetEnumValue(ParseRuleSeverityType)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetSeverity(val.(*RuleSeverityType))
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["threshold"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetObjectValue(CreateRuleThresholdFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetThreshold(val.(RuleThresholdable))
|
||||
}
|
||||
return nil
|
||||
}
|
||||
return res
|
||||
}
|
||||
// GetIsSystemRule gets the isSystemRule property value. Indicates whether the rule is a system rule. If true, the rule is a system rule; otherwise, the rule is a custom defined rule and can be edited. System rules are built-in and only a few properties can be edited.
|
||||
func (m *AlertRule) GetIsSystemRule()(*bool) {
|
||||
return m.isSystemRule
|
||||
}
|
||||
// GetNotificationChannels gets the notificationChannels property value. The notification channels of the rule selected by the user.
|
||||
func (m *AlertRule) GetNotificationChannels()([]NotificationChannelable) {
|
||||
return m.notificationChannels
|
||||
}
|
||||
// GetSeverity gets the severity property value. The severity of the rule. The possible values are: unknown, informational, warning, critical, unknownFutureValue.
|
||||
func (m *AlertRule) GetSeverity()(*RuleSeverityType) {
|
||||
return m.severity
|
||||
}
|
||||
// GetThreshold gets the threshold property value. The conditions to send alerts. For example, send alert when provisioning has failed for greater than or equal to 6 Cloud PCs.
|
||||
func (m *AlertRule) GetThreshold()(RuleThresholdable) {
|
||||
return m.threshold
|
||||
}
|
||||
// Serialize serializes information the current object
|
||||
func (m *AlertRule) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
|
||||
err := m.Entity.Serialize(writer)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if m.GetAlertRuleTemplate() != nil {
|
||||
cast := (*m.GetAlertRuleTemplate()).String()
|
||||
err = writer.WriteStringValue("alertRuleTemplate", &cast)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteStringValue("description", m.GetDescription())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteStringValue("displayName", m.GetDisplayName())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteBoolValue("enabled", m.GetEnabled())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteBoolValue("isSystemRule", m.GetIsSystemRule())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
if m.GetNotificationChannels() != nil {
|
||||
cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetNotificationChannels()))
|
||||
for i, v := range m.GetNotificationChannels() {
|
||||
cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable)
|
||||
}
|
||||
err = writer.WriteCollectionOfObjectValues("notificationChannels", cast)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
if m.GetSeverity() != nil {
|
||||
cast := (*m.GetSeverity()).String()
|
||||
err = writer.WriteStringValue("severity", &cast)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteObjectValue("threshold", m.GetThreshold())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
// SetAlertRuleTemplate sets the alertRuleTemplate property value. The rule template of the alert event. The possible values are: cloudPcProvisionScenario, cloudPcImageUploadScenario, cloudPcOnPremiseNetworkConnectionCheckScenario, unknownFutureValue.
|
||||
func (m *AlertRule) SetAlertRuleTemplate(value *AlertRuleTemplate)() {
|
||||
m.alertRuleTemplate = value
|
||||
}
|
||||
// SetDescription sets the description property value. The rule description.
|
||||
func (m *AlertRule) SetDescription(value *string)() {
|
||||
m.description = value
|
||||
}
|
||||
// SetDisplayName sets the displayName property value. The display name of the rule.
|
||||
func (m *AlertRule) SetDisplayName(value *string)() {
|
||||
m.displayName = value
|
||||
}
|
||||
// SetEnabled sets the enabled property value. The status of the rule that indicates whether the rule is enabled or disabled. If true, the rule is enabled; otherwise, the rule is disabled.
|
||||
func (m *AlertRule) SetEnabled(value *bool)() {
|
||||
m.enabled = value
|
||||
}
|
||||
// SetIsSystemRule sets the isSystemRule property value. Indicates whether the rule is a system rule. If true, the rule is a system rule; otherwise, the rule is a custom defined rule and can be edited. System rules are built-in and only a few properties can be edited.
|
||||
func (m *AlertRule) SetIsSystemRule(value *bool)() {
|
||||
m.isSystemRule = value
|
||||
}
|
||||
// SetNotificationChannels sets the notificationChannels property value. The notification channels of the rule selected by the user.
|
||||
func (m *AlertRule) SetNotificationChannels(value []NotificationChannelable)() {
|
||||
m.notificationChannels = value
|
||||
}
|
||||
// SetSeverity sets the severity property value. The severity of the rule. The possible values are: unknown, informational, warning, critical, unknownFutureValue.
|
||||
func (m *AlertRule) SetSeverity(value *RuleSeverityType)() {
|
||||
m.severity = value
|
||||
}
|
||||
// SetThreshold sets the threshold property value. The conditions to send alerts. For example, send alert when provisioning has failed for greater than or equal to 6 Cloud PCs.
|
||||
func (m *AlertRule) SetThreshold(value RuleThresholdable)() {
|
||||
m.threshold = value
|
||||
}
|
||||
@ -0,0 +1,69 @@
|
||||
package devicemanagement
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models"
|
||||
)
|
||||
|
||||
// AlertRuleCollectionResponse
|
||||
type AlertRuleCollectionResponse struct {
|
||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.BaseCollectionPaginationCountResponse
|
||||
// The value property
|
||||
value []AlertRuleable
|
||||
}
|
||||
// NewAlertRuleCollectionResponse instantiates a new AlertRuleCollectionResponse and sets the default values.
|
||||
func NewAlertRuleCollectionResponse()(*AlertRuleCollectionResponse) {
|
||||
m := &AlertRuleCollectionResponse{
|
||||
BaseCollectionPaginationCountResponse: *ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.NewBaseCollectionPaginationCountResponse(),
|
||||
}
|
||||
return m
|
||||
}
|
||||
// CreateAlertRuleCollectionResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
||||
func CreateAlertRuleCollectionResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
||||
return NewAlertRuleCollectionResponse(), nil
|
||||
}
|
||||
// GetFieldDeserializers the deserialization information for the current model
|
||||
func (m *AlertRuleCollectionResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
|
||||
res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers()
|
||||
res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetCollectionOfObjectValues(CreateAlertRuleFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
res := make([]AlertRuleable, len(val))
|
||||
for i, v := range val {
|
||||
res[i] = v.(AlertRuleable)
|
||||
}
|
||||
m.SetValue(res)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
return res
|
||||
}
|
||||
// GetValue gets the value property value. The value property
|
||||
func (m *AlertRuleCollectionResponse) GetValue()([]AlertRuleable) {
|
||||
return m.value
|
||||
}
|
||||
// Serialize serializes information the current object
|
||||
func (m *AlertRuleCollectionResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
|
||||
err := m.BaseCollectionPaginationCountResponse.Serialize(writer)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if m.GetValue() != nil {
|
||||
cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue()))
|
||||
for i, v := range m.GetValue() {
|
||||
cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable)
|
||||
}
|
||||
err = writer.WriteCollectionOfObjectValues("value", cast)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
// SetValue sets the value property value. The value property
|
||||
func (m *AlertRuleCollectionResponse) SetValue(value []AlertRuleable)() {
|
||||
m.value = value
|
||||
}
|
||||
@ -0,0 +1,14 @@
|
||||
package devicemanagement
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models"
|
||||
)
|
||||
|
||||
// AlertRuleCollectionResponseable
|
||||
type AlertRuleCollectionResponseable interface {
|
||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.BaseCollectionPaginationCountResponseable
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
||||
GetValue()([]AlertRuleable)
|
||||
SetValue(value []AlertRuleable)()
|
||||
}
|
||||
@ -0,0 +1,40 @@
|
||||
package devicemanagement
|
||||
import (
|
||||
"errors"
|
||||
)
|
||||
// Provides operations to manage the sites property of the microsoft.graph.browserSiteList entity.
|
||||
type AlertRuleTemplate int
|
||||
|
||||
const (
|
||||
CLOUDPCPROVISIONSCENARIO_ALERTRULETEMPLATE AlertRuleTemplate = iota
|
||||
CLOUDPCIMAGEUPLOADSCENARIO_ALERTRULETEMPLATE
|
||||
CLOUDPCONPREMISENETWORKCONNECTIONCHECKSCENARIO_ALERTRULETEMPLATE
|
||||
UNKNOWNFUTUREVALUE_ALERTRULETEMPLATE
|
||||
)
|
||||
|
||||
func (i AlertRuleTemplate) String() string {
|
||||
return []string{"cloudPcProvisionScenario", "cloudPcImageUploadScenario", "cloudPcOnPremiseNetworkConnectionCheckScenario", "unknownFutureValue"}[i]
|
||||
}
|
||||
func ParseAlertRuleTemplate(v string) (interface{}, error) {
|
||||
result := CLOUDPCPROVISIONSCENARIO_ALERTRULETEMPLATE
|
||||
switch v {
|
||||
case "cloudPcProvisionScenario":
|
||||
result = CLOUDPCPROVISIONSCENARIO_ALERTRULETEMPLATE
|
||||
case "cloudPcImageUploadScenario":
|
||||
result = CLOUDPCIMAGEUPLOADSCENARIO_ALERTRULETEMPLATE
|
||||
case "cloudPcOnPremiseNetworkConnectionCheckScenario":
|
||||
result = CLOUDPCONPREMISENETWORKCONNECTIONCHECKSCENARIO_ALERTRULETEMPLATE
|
||||
case "unknownFutureValue":
|
||||
result = UNKNOWNFUTUREVALUE_ALERTRULETEMPLATE
|
||||
default:
|
||||
return 0, errors.New("Unknown AlertRuleTemplate value: " + v)
|
||||
}
|
||||
return &result, nil
|
||||
}
|
||||
func SerializeAlertRuleTemplate(values []AlertRuleTemplate) []string {
|
||||
result := make([]string, len(values))
|
||||
for i, v := range values {
|
||||
result[i] = v.String()
|
||||
}
|
||||
return result
|
||||
}
|
||||
@ -0,0 +1,28 @@
|
||||
package devicemanagement
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models"
|
||||
)
|
||||
|
||||
// AlertRuleable
|
||||
type AlertRuleable interface {
|
||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.Entityable
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
||||
GetAlertRuleTemplate()(*AlertRuleTemplate)
|
||||
GetDescription()(*string)
|
||||
GetDisplayName()(*string)
|
||||
GetEnabled()(*bool)
|
||||
GetIsSystemRule()(*bool)
|
||||
GetNotificationChannels()([]NotificationChannelable)
|
||||
GetSeverity()(*RuleSeverityType)
|
||||
GetThreshold()(RuleThresholdable)
|
||||
SetAlertRuleTemplate(value *AlertRuleTemplate)()
|
||||
SetDescription(value *string)()
|
||||
SetDisplayName(value *string)()
|
||||
SetEnabled(value *bool)()
|
||||
SetIsSystemRule(value *bool)()
|
||||
SetNotificationChannels(value []NotificationChannelable)()
|
||||
SetSeverity(value *RuleSeverityType)()
|
||||
SetThreshold(value RuleThresholdable)()
|
||||
}
|
||||
@ -0,0 +1,37 @@
|
||||
package devicemanagement
|
||||
import (
|
||||
"errors"
|
||||
)
|
||||
// Provides operations to manage the sites property of the microsoft.graph.browserSiteList entity.
|
||||
type AlertStatusType int
|
||||
|
||||
const (
|
||||
ACTIVE_ALERTSTATUSTYPE AlertStatusType = iota
|
||||
RESOLVED_ALERTSTATUSTYPE
|
||||
UNKNOWNFUTUREVALUE_ALERTSTATUSTYPE
|
||||
)
|
||||
|
||||
func (i AlertStatusType) String() string {
|
||||
return []string{"active", "resolved", "unknownFutureValue"}[i]
|
||||
}
|
||||
func ParseAlertStatusType(v string) (interface{}, error) {
|
||||
result := ACTIVE_ALERTSTATUSTYPE
|
||||
switch v {
|
||||
case "active":
|
||||
result = ACTIVE_ALERTSTATUSTYPE
|
||||
case "resolved":
|
||||
result = RESOLVED_ALERTSTATUSTYPE
|
||||
case "unknownFutureValue":
|
||||
result = UNKNOWNFUTUREVALUE_ALERTSTATUSTYPE
|
||||
default:
|
||||
return 0, errors.New("Unknown AlertStatusType value: " + v)
|
||||
}
|
||||
return &result, nil
|
||||
}
|
||||
func SerializeAlertStatusType(values []AlertStatusType) []string {
|
||||
result := make([]string, len(values))
|
||||
for i, v := range values {
|
||||
result[i] = v.String()
|
||||
}
|
||||
return result
|
||||
}
|
||||
@ -0,0 +1,103 @@
|
||||
package devicemanagement
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models"
|
||||
)
|
||||
|
||||
// Monitoring
|
||||
type Monitoring struct {
|
||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.Entity
|
||||
// The collection of records of alert events.
|
||||
alertRecords []AlertRecordable
|
||||
// The collection of alert rules.
|
||||
alertRules []AlertRuleable
|
||||
}
|
||||
// NewMonitoring instantiates a new monitoring and sets the default values.
|
||||
func NewMonitoring()(*Monitoring) {
|
||||
m := &Monitoring{
|
||||
Entity: *ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.NewEntity(),
|
||||
}
|
||||
return m
|
||||
}
|
||||
// CreateMonitoringFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
||||
func CreateMonitoringFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
||||
return NewMonitoring(), nil
|
||||
}
|
||||
// GetAlertRecords gets the alertRecords property value. The collection of records of alert events.
|
||||
func (m *Monitoring) GetAlertRecords()([]AlertRecordable) {
|
||||
return m.alertRecords
|
||||
}
|
||||
// GetAlertRules gets the alertRules property value. The collection of alert rules.
|
||||
func (m *Monitoring) GetAlertRules()([]AlertRuleable) {
|
||||
return m.alertRules
|
||||
}
|
||||
// GetFieldDeserializers the deserialization information for the current model
|
||||
func (m *Monitoring) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
|
||||
res := m.Entity.GetFieldDeserializers()
|
||||
res["alertRecords"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetCollectionOfObjectValues(CreateAlertRecordFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
res := make([]AlertRecordable, len(val))
|
||||
for i, v := range val {
|
||||
res[i] = v.(AlertRecordable)
|
||||
}
|
||||
m.SetAlertRecords(res)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["alertRules"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetCollectionOfObjectValues(CreateAlertRuleFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
res := make([]AlertRuleable, len(val))
|
||||
for i, v := range val {
|
||||
res[i] = v.(AlertRuleable)
|
||||
}
|
||||
m.SetAlertRules(res)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
return res
|
||||
}
|
||||
// Serialize serializes information the current object
|
||||
func (m *Monitoring) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
|
||||
err := m.Entity.Serialize(writer)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if m.GetAlertRecords() != nil {
|
||||
cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetAlertRecords()))
|
||||
for i, v := range m.GetAlertRecords() {
|
||||
cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable)
|
||||
}
|
||||
err = writer.WriteCollectionOfObjectValues("alertRecords", cast)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
if m.GetAlertRules() != nil {
|
||||
cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetAlertRules()))
|
||||
for i, v := range m.GetAlertRules() {
|
||||
cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable)
|
||||
}
|
||||
err = writer.WriteCollectionOfObjectValues("alertRules", cast)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
// SetAlertRecords sets the alertRecords property value. The collection of records of alert events.
|
||||
func (m *Monitoring) SetAlertRecords(value []AlertRecordable)() {
|
||||
m.alertRecords = value
|
||||
}
|
||||
// SetAlertRules sets the alertRules property value. The collection of alert rules.
|
||||
func (m *Monitoring) SetAlertRules(value []AlertRuleable)() {
|
||||
m.alertRules = value
|
||||
}
|
||||
@ -0,0 +1,16 @@
|
||||
package devicemanagement
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models"
|
||||
)
|
||||
|
||||
// Monitoringable
|
||||
type Monitoringable interface {
|
||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.Entityable
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
||||
GetAlertRecords()([]AlertRecordable)
|
||||
GetAlertRules()([]AlertRuleable)
|
||||
SetAlertRecords(value []AlertRecordable)()
|
||||
SetAlertRules(value []AlertRuleable)()
|
||||
}
|
||||
@ -0,0 +1,162 @@
|
||||
package devicemanagement
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// NotificationChannel
|
||||
type NotificationChannel struct {
|
||||
// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
additionalData map[string]interface{}
|
||||
// The type of the notification channel. The possible values are: portal, email, phoneCall, sms, unknownFutureValue.
|
||||
notificationChannelType *NotificationChannelType
|
||||
// Information about the notification receivers, such as locale and contact information. For example, en-us for locale and serena.davis@contoso.com for contact information.
|
||||
notificationReceivers []NotificationReceiverable
|
||||
// The OdataType property
|
||||
odataType *string
|
||||
// The contact information about the notification receivers, such as email addresses. For portal notifications, receivers can be left blank. For email notifications, receivers consists of email addresses such as serena.davis@contoso.com.
|
||||
receivers []string
|
||||
}
|
||||
// NewNotificationChannel instantiates a new notificationChannel and sets the default values.
|
||||
func NewNotificationChannel()(*NotificationChannel) {
|
||||
m := &NotificationChannel{
|
||||
}
|
||||
m.SetAdditionalData(make(map[string]interface{}));
|
||||
return m
|
||||
}
|
||||
// CreateNotificationChannelFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
||||
func CreateNotificationChannelFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
||||
return NewNotificationChannel(), 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 *NotificationChannel) GetAdditionalData()(map[string]interface{}) {
|
||||
return m.additionalData
|
||||
}
|
||||
// GetFieldDeserializers the deserialization information for the current model
|
||||
func (m *NotificationChannel) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
|
||||
res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
|
||||
res["notificationChannelType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetEnumValue(ParseNotificationChannelType)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetNotificationChannelType(val.(*NotificationChannelType))
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["notificationReceivers"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetCollectionOfObjectValues(CreateNotificationReceiverFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
res := make([]NotificationReceiverable, len(val))
|
||||
for i, v := range val {
|
||||
res[i] = v.(NotificationReceiverable)
|
||||
}
|
||||
m.SetNotificationReceivers(res)
|
||||
}
|
||||
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["receivers"] = 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 {
|
||||
res[i] = *(v.(*string))
|
||||
}
|
||||
m.SetReceivers(res)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
return res
|
||||
}
|
||||
// GetNotificationChannelType gets the notificationChannelType property value. The type of the notification channel. The possible values are: portal, email, phoneCall, sms, unknownFutureValue.
|
||||
func (m *NotificationChannel) GetNotificationChannelType()(*NotificationChannelType) {
|
||||
return m.notificationChannelType
|
||||
}
|
||||
// GetNotificationReceivers gets the notificationReceivers property value. Information about the notification receivers, such as locale and contact information. For example, en-us for locale and serena.davis@contoso.com for contact information.
|
||||
func (m *NotificationChannel) GetNotificationReceivers()([]NotificationReceiverable) {
|
||||
return m.notificationReceivers
|
||||
}
|
||||
// GetOdataType gets the @odata.type property value. The OdataType property
|
||||
func (m *NotificationChannel) GetOdataType()(*string) {
|
||||
return m.odataType
|
||||
}
|
||||
// GetReceivers gets the receivers property value. The contact information about the notification receivers, such as email addresses. For portal notifications, receivers can be left blank. For email notifications, receivers consists of email addresses such as serena.davis@contoso.com.
|
||||
func (m *NotificationChannel) GetReceivers()([]string) {
|
||||
return m.receivers
|
||||
}
|
||||
// Serialize serializes information the current object
|
||||
func (m *NotificationChannel) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
|
||||
if m.GetNotificationChannelType() != nil {
|
||||
cast := (*m.GetNotificationChannelType()).String()
|
||||
err := writer.WriteStringValue("notificationChannelType", &cast)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
if m.GetNotificationReceivers() != nil {
|
||||
cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetNotificationReceivers()))
|
||||
for i, v := range m.GetNotificationReceivers() {
|
||||
cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable)
|
||||
}
|
||||
err := writer.WriteCollectionOfObjectValues("notificationReceivers", cast)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteStringValue("@odata.type", m.GetOdataType())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
if m.GetReceivers() != nil {
|
||||
err := writer.WriteCollectionOfStringValues("receivers", m.GetReceivers())
|
||||
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 *NotificationChannel) SetAdditionalData(value map[string]interface{})() {
|
||||
m.additionalData = value
|
||||
}
|
||||
// SetNotificationChannelType sets the notificationChannelType property value. The type of the notification channel. The possible values are: portal, email, phoneCall, sms, unknownFutureValue.
|
||||
func (m *NotificationChannel) SetNotificationChannelType(value *NotificationChannelType)() {
|
||||
m.notificationChannelType = value
|
||||
}
|
||||
// SetNotificationReceivers sets the notificationReceivers property value. Information about the notification receivers, such as locale and contact information. For example, en-us for locale and serena.davis@contoso.com for contact information.
|
||||
func (m *NotificationChannel) SetNotificationReceivers(value []NotificationReceiverable)() {
|
||||
m.notificationReceivers = value
|
||||
}
|
||||
// SetOdataType sets the @odata.type property value. The OdataType property
|
||||
func (m *NotificationChannel) SetOdataType(value *string)() {
|
||||
m.odataType = value
|
||||
}
|
||||
// SetReceivers sets the receivers property value. The contact information about the notification receivers, such as email addresses. For portal notifications, receivers can be left blank. For email notifications, receivers consists of email addresses such as serena.davis@contoso.com.
|
||||
func (m *NotificationChannel) SetReceivers(value []string)() {
|
||||
m.receivers = value
|
||||
}
|
||||
@ -0,0 +1,69 @@
|
||||
package devicemanagement
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models"
|
||||
)
|
||||
|
||||
// NotificationChannelCollectionResponse
|
||||
type NotificationChannelCollectionResponse struct {
|
||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.BaseCollectionPaginationCountResponse
|
||||
// The value property
|
||||
value []NotificationChannelable
|
||||
}
|
||||
// NewNotificationChannelCollectionResponse instantiates a new NotificationChannelCollectionResponse and sets the default values.
|
||||
func NewNotificationChannelCollectionResponse()(*NotificationChannelCollectionResponse) {
|
||||
m := &NotificationChannelCollectionResponse{
|
||||
BaseCollectionPaginationCountResponse: *ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.NewBaseCollectionPaginationCountResponse(),
|
||||
}
|
||||
return m
|
||||
}
|
||||
// CreateNotificationChannelCollectionResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
||||
func CreateNotificationChannelCollectionResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
||||
return NewNotificationChannelCollectionResponse(), nil
|
||||
}
|
||||
// GetFieldDeserializers the deserialization information for the current model
|
||||
func (m *NotificationChannelCollectionResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
|
||||
res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers()
|
||||
res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetCollectionOfObjectValues(CreateNotificationChannelFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
res := make([]NotificationChannelable, len(val))
|
||||
for i, v := range val {
|
||||
res[i] = v.(NotificationChannelable)
|
||||
}
|
||||
m.SetValue(res)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
return res
|
||||
}
|
||||
// GetValue gets the value property value. The value property
|
||||
func (m *NotificationChannelCollectionResponse) GetValue()([]NotificationChannelable) {
|
||||
return m.value
|
||||
}
|
||||
// Serialize serializes information the current object
|
||||
func (m *NotificationChannelCollectionResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
|
||||
err := m.BaseCollectionPaginationCountResponse.Serialize(writer)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if m.GetValue() != nil {
|
||||
cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue()))
|
||||
for i, v := range m.GetValue() {
|
||||
cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable)
|
||||
}
|
||||
err = writer.WriteCollectionOfObjectValues("value", cast)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
// SetValue sets the value property value. The value property
|
||||
func (m *NotificationChannelCollectionResponse) SetValue(value []NotificationChannelable)() {
|
||||
m.value = value
|
||||
}
|
||||
@ -0,0 +1,14 @@
|
||||
package devicemanagement
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models"
|
||||
)
|
||||
|
||||
// NotificationChannelCollectionResponseable
|
||||
type NotificationChannelCollectionResponseable interface {
|
||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.BaseCollectionPaginationCountResponseable
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
||||
GetValue()([]NotificationChannelable)
|
||||
SetValue(value []NotificationChannelable)()
|
||||
}
|
||||
@ -0,0 +1,43 @@
|
||||
package devicemanagement
|
||||
import (
|
||||
"errors"
|
||||
)
|
||||
// Provides operations to manage the sites property of the microsoft.graph.browserSiteList entity.
|
||||
type NotificationChannelType int
|
||||
|
||||
const (
|
||||
PORTAL_NOTIFICATIONCHANNELTYPE NotificationChannelType = iota
|
||||
EMAIL_NOTIFICATIONCHANNELTYPE
|
||||
PHONECALL_NOTIFICATIONCHANNELTYPE
|
||||
SMS_NOTIFICATIONCHANNELTYPE
|
||||
UNKNOWNFUTUREVALUE_NOTIFICATIONCHANNELTYPE
|
||||
)
|
||||
|
||||
func (i NotificationChannelType) String() string {
|
||||
return []string{"portal", "email", "phoneCall", "sms", "unknownFutureValue"}[i]
|
||||
}
|
||||
func ParseNotificationChannelType(v string) (interface{}, error) {
|
||||
result := PORTAL_NOTIFICATIONCHANNELTYPE
|
||||
switch v {
|
||||
case "portal":
|
||||
result = PORTAL_NOTIFICATIONCHANNELTYPE
|
||||
case "email":
|
||||
result = EMAIL_NOTIFICATIONCHANNELTYPE
|
||||
case "phoneCall":
|
||||
result = PHONECALL_NOTIFICATIONCHANNELTYPE
|
||||
case "sms":
|
||||
result = SMS_NOTIFICATIONCHANNELTYPE
|
||||
case "unknownFutureValue":
|
||||
result = UNKNOWNFUTUREVALUE_NOTIFICATIONCHANNELTYPE
|
||||
default:
|
||||
return 0, errors.New("Unknown NotificationChannelType value: " + v)
|
||||
}
|
||||
return &result, nil
|
||||
}
|
||||
func SerializeNotificationChannelType(values []NotificationChannelType) []string {
|
||||
result := make([]string, len(values))
|
||||
for i, v := range values {
|
||||
result[i] = v.String()
|
||||
}
|
||||
return result
|
||||
}
|
||||
@ -0,0 +1,19 @@
|
||||
package devicemanagement
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// NotificationChannelable
|
||||
type NotificationChannelable interface {
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
||||
GetNotificationChannelType()(*NotificationChannelType)
|
||||
GetNotificationReceivers()([]NotificationReceiverable)
|
||||
GetOdataType()(*string)
|
||||
GetReceivers()([]string)
|
||||
SetNotificationChannelType(value *NotificationChannelType)()
|
||||
SetNotificationReceivers(value []NotificationReceiverable)()
|
||||
SetOdataType(value *string)()
|
||||
SetReceivers(value []string)()
|
||||
}
|
||||
@ -0,0 +1,123 @@
|
||||
package devicemanagement
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// NotificationReceiver
|
||||
type NotificationReceiver struct {
|
||||
// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
additionalData map[string]interface{}
|
||||
// The contact information about the notification receivers, such as an email address. Currently, only email and portal notifications are supported. For portal notifications, contactInformation can be left blank. For email notifications, contactInformation consists of an email address such as serena.davis@contoso.com.
|
||||
contactInformation *string
|
||||
// Defines the language and format in which the notification will be sent. Supported locale values are: en-us, cs-cz, de-de, es-es, fr-fr, hu-hu, it-it, ja-jp, ko-kr, nl-nl, pl-pl, pt-br, pt-pt, ru-ru, sv-se, tr-tr, zh-cn, zh-tw.
|
||||
locale *string
|
||||
// The OdataType property
|
||||
odataType *string
|
||||
}
|
||||
// NewNotificationReceiver instantiates a new notificationReceiver and sets the default values.
|
||||
func NewNotificationReceiver()(*NotificationReceiver) {
|
||||
m := &NotificationReceiver{
|
||||
}
|
||||
m.SetAdditionalData(make(map[string]interface{}));
|
||||
return m
|
||||
}
|
||||
// CreateNotificationReceiverFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
||||
func CreateNotificationReceiverFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
||||
return NewNotificationReceiver(), 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 *NotificationReceiver) GetAdditionalData()(map[string]interface{}) {
|
||||
return m.additionalData
|
||||
}
|
||||
// GetContactInformation gets the contactInformation property value. The contact information about the notification receivers, such as an email address. Currently, only email and portal notifications are supported. For portal notifications, contactInformation can be left blank. For email notifications, contactInformation consists of an email address such as serena.davis@contoso.com.
|
||||
func (m *NotificationReceiver) GetContactInformation()(*string) {
|
||||
return m.contactInformation
|
||||
}
|
||||
// GetFieldDeserializers the deserialization information for the current model
|
||||
func (m *NotificationReceiver) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
|
||||
res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
|
||||
res["contactInformation"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetContactInformation(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["locale"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetLocale(val)
|
||||
}
|
||||
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
|
||||
}
|
||||
return res
|
||||
}
|
||||
// GetLocale gets the locale property value. Defines the language and format in which the notification will be sent. Supported locale values are: en-us, cs-cz, de-de, es-es, fr-fr, hu-hu, it-it, ja-jp, ko-kr, nl-nl, pl-pl, pt-br, pt-pt, ru-ru, sv-se, tr-tr, zh-cn, zh-tw.
|
||||
func (m *NotificationReceiver) GetLocale()(*string) {
|
||||
return m.locale
|
||||
}
|
||||
// GetOdataType gets the @odata.type property value. The OdataType property
|
||||
func (m *NotificationReceiver) GetOdataType()(*string) {
|
||||
return m.odataType
|
||||
}
|
||||
// Serialize serializes information the current object
|
||||
func (m *NotificationReceiver) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
|
||||
{
|
||||
err := writer.WriteStringValue("contactInformation", m.GetContactInformation())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteStringValue("locale", m.GetLocale())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteStringValue("@odata.type", m.GetOdataType())
|
||||
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 *NotificationReceiver) SetAdditionalData(value map[string]interface{})() {
|
||||
m.additionalData = value
|
||||
}
|
||||
// SetContactInformation sets the contactInformation property value. The contact information about the notification receivers, such as an email address. Currently, only email and portal notifications are supported. For portal notifications, contactInformation can be left blank. For email notifications, contactInformation consists of an email address such as serena.davis@contoso.com.
|
||||
func (m *NotificationReceiver) SetContactInformation(value *string)() {
|
||||
m.contactInformation = value
|
||||
}
|
||||
// SetLocale sets the locale property value. Defines the language and format in which the notification will be sent. Supported locale values are: en-us, cs-cz, de-de, es-es, fr-fr, hu-hu, it-it, ja-jp, ko-kr, nl-nl, pl-pl, pt-br, pt-pt, ru-ru, sv-se, tr-tr, zh-cn, zh-tw.
|
||||
func (m *NotificationReceiver) SetLocale(value *string)() {
|
||||
m.locale = value
|
||||
}
|
||||
// SetOdataType sets the @odata.type property value. The OdataType property
|
||||
func (m *NotificationReceiver) SetOdataType(value *string)() {
|
||||
m.odataType = value
|
||||
}
|
||||
@ -0,0 +1,69 @@
|
||||
package devicemanagement
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models"
|
||||
)
|
||||
|
||||
// NotificationReceiverCollectionResponse
|
||||
type NotificationReceiverCollectionResponse struct {
|
||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.BaseCollectionPaginationCountResponse
|
||||
// The value property
|
||||
value []NotificationReceiverable
|
||||
}
|
||||
// NewNotificationReceiverCollectionResponse instantiates a new NotificationReceiverCollectionResponse and sets the default values.
|
||||
func NewNotificationReceiverCollectionResponse()(*NotificationReceiverCollectionResponse) {
|
||||
m := &NotificationReceiverCollectionResponse{
|
||||
BaseCollectionPaginationCountResponse: *ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.NewBaseCollectionPaginationCountResponse(),
|
||||
}
|
||||
return m
|
||||
}
|
||||
// CreateNotificationReceiverCollectionResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
||||
func CreateNotificationReceiverCollectionResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
||||
return NewNotificationReceiverCollectionResponse(), nil
|
||||
}
|
||||
// GetFieldDeserializers the deserialization information for the current model
|
||||
func (m *NotificationReceiverCollectionResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
|
||||
res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers()
|
||||
res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetCollectionOfObjectValues(CreateNotificationReceiverFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
res := make([]NotificationReceiverable, len(val))
|
||||
for i, v := range val {
|
||||
res[i] = v.(NotificationReceiverable)
|
||||
}
|
||||
m.SetValue(res)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
return res
|
||||
}
|
||||
// GetValue gets the value property value. The value property
|
||||
func (m *NotificationReceiverCollectionResponse) GetValue()([]NotificationReceiverable) {
|
||||
return m.value
|
||||
}
|
||||
// Serialize serializes information the current object
|
||||
func (m *NotificationReceiverCollectionResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
|
||||
err := m.BaseCollectionPaginationCountResponse.Serialize(writer)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if m.GetValue() != nil {
|
||||
cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue()))
|
||||
for i, v := range m.GetValue() {
|
||||
cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable)
|
||||
}
|
||||
err = writer.WriteCollectionOfObjectValues("value", cast)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
// SetValue sets the value property value. The value property
|
||||
func (m *NotificationReceiverCollectionResponse) SetValue(value []NotificationReceiverable)() {
|
||||
m.value = value
|
||||
}
|
||||
@ -0,0 +1,14 @@
|
||||
package devicemanagement
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models"
|
||||
)
|
||||
|
||||
// NotificationReceiverCollectionResponseable
|
||||
type NotificationReceiverCollectionResponseable interface {
|
||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.BaseCollectionPaginationCountResponseable
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
||||
GetValue()([]NotificationReceiverable)
|
||||
SetValue(value []NotificationReceiverable)()
|
||||
}
|
||||
@ -0,0 +1,17 @@
|
||||
package devicemanagement
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// NotificationReceiverable
|
||||
type NotificationReceiverable interface {
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
||||
GetContactInformation()(*string)
|
||||
GetLocale()(*string)
|
||||
GetOdataType()(*string)
|
||||
SetContactInformation(value *string)()
|
||||
SetLocale(value *string)()
|
||||
SetOdataType(value *string)()
|
||||
}
|
||||
@ -0,0 +1,49 @@
|
||||
package devicemanagement
|
||||
import (
|
||||
"errors"
|
||||
)
|
||||
// Provides operations to manage the sites property of the microsoft.graph.browserSiteList entity.
|
||||
type OperatorType int
|
||||
|
||||
const (
|
||||
GREATEROREQUAL_OPERATORTYPE OperatorType = iota
|
||||
EQUAL_OPERATORTYPE
|
||||
GREATER_OPERATORTYPE
|
||||
LESS_OPERATORTYPE
|
||||
LESSOREQUAL_OPERATORTYPE
|
||||
NOTEQUAL_OPERATORTYPE
|
||||
UNKNOWNFUTUREVALUE_OPERATORTYPE
|
||||
)
|
||||
|
||||
func (i OperatorType) String() string {
|
||||
return []string{"greaterOrEqual", "equal", "greater", "less", "lessOrEqual", "notEqual", "unknownFutureValue"}[i]
|
||||
}
|
||||
func ParseOperatorType(v string) (interface{}, error) {
|
||||
result := GREATEROREQUAL_OPERATORTYPE
|
||||
switch v {
|
||||
case "greaterOrEqual":
|
||||
result = GREATEROREQUAL_OPERATORTYPE
|
||||
case "equal":
|
||||
result = EQUAL_OPERATORTYPE
|
||||
case "greater":
|
||||
result = GREATER_OPERATORTYPE
|
||||
case "less":
|
||||
result = LESS_OPERATORTYPE
|
||||
case "lessOrEqual":
|
||||
result = LESSOREQUAL_OPERATORTYPE
|
||||
case "notEqual":
|
||||
result = NOTEQUAL_OPERATORTYPE
|
||||
case "unknownFutureValue":
|
||||
result = UNKNOWNFUTUREVALUE_OPERATORTYPE
|
||||
default:
|
||||
return 0, errors.New("Unknown OperatorType value: " + v)
|
||||
}
|
||||
return &result, nil
|
||||
}
|
||||
func SerializeOperatorType(values []OperatorType) []string {
|
||||
result := make([]string, len(values))
|
||||
for i, v := range values {
|
||||
result[i] = v.String()
|
||||
}
|
||||
return result
|
||||
}
|
||||
@ -0,0 +1,43 @@
|
||||
package devicemanagement
|
||||
import (
|
||||
"errors"
|
||||
)
|
||||
// Provides operations to manage the sites property of the microsoft.graph.browserSiteList entity.
|
||||
type RuleSeverityType int
|
||||
|
||||
const (
|
||||
UNKNOWN_RULESEVERITYTYPE RuleSeverityType = iota
|
||||
INFORMATIONAL_RULESEVERITYTYPE
|
||||
WARNING_RULESEVERITYTYPE
|
||||
CRITICAL_RULESEVERITYTYPE
|
||||
UNKNOWNFUTUREVALUE_RULESEVERITYTYPE
|
||||
)
|
||||
|
||||
func (i RuleSeverityType) String() string {
|
||||
return []string{"unknown", "informational", "warning", "critical", "unknownFutureValue"}[i]
|
||||
}
|
||||
func ParseRuleSeverityType(v string) (interface{}, error) {
|
||||
result := UNKNOWN_RULESEVERITYTYPE
|
||||
switch v {
|
||||
case "unknown":
|
||||
result = UNKNOWN_RULESEVERITYTYPE
|
||||
case "informational":
|
||||
result = INFORMATIONAL_RULESEVERITYTYPE
|
||||
case "warning":
|
||||
result = WARNING_RULESEVERITYTYPE
|
||||
case "critical":
|
||||
result = CRITICAL_RULESEVERITYTYPE
|
||||
case "unknownFutureValue":
|
||||
result = UNKNOWNFUTUREVALUE_RULESEVERITYTYPE
|
||||
default:
|
||||
return 0, errors.New("Unknown RuleSeverityType value: " + v)
|
||||
}
|
||||
return &result, nil
|
||||
}
|
||||
func SerializeRuleSeverityType(values []RuleSeverityType) []string {
|
||||
result := make([]string, len(values))
|
||||
for i, v := range values {
|
||||
result[i] = v.String()
|
||||
}
|
||||
return result
|
||||
}
|
||||
@ -0,0 +1,151 @@
|
||||
package devicemanagement
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// RuleThreshold
|
||||
type RuleThreshold struct {
|
||||
// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
additionalData map[string]interface{}
|
||||
// Indicates the built-in aggregation methods. The possible values are: count, percentage, affectedCloudPcCount, affectedCloudPcPercentage, unknownFutureValue.
|
||||
aggregation *AggregationType
|
||||
// The OdataType property
|
||||
odataType *string
|
||||
// Indicates the built-in operator. The possible values are: greaterOrEqual, equal, greater, less, lessOrEqual, notEqual, unknownFutureValue.
|
||||
operator *OperatorType
|
||||
// The target threshold value.
|
||||
target *int32
|
||||
}
|
||||
// NewRuleThreshold instantiates a new ruleThreshold and sets the default values.
|
||||
func NewRuleThreshold()(*RuleThreshold) {
|
||||
m := &RuleThreshold{
|
||||
}
|
||||
m.SetAdditionalData(make(map[string]interface{}));
|
||||
return m
|
||||
}
|
||||
// CreateRuleThresholdFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
||||
func CreateRuleThresholdFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
||||
return NewRuleThreshold(), 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 *RuleThreshold) GetAdditionalData()(map[string]interface{}) {
|
||||
return m.additionalData
|
||||
}
|
||||
// GetAggregation gets the aggregation property value. Indicates the built-in aggregation methods. The possible values are: count, percentage, affectedCloudPcCount, affectedCloudPcPercentage, unknownFutureValue.
|
||||
func (m *RuleThreshold) GetAggregation()(*AggregationType) {
|
||||
return m.aggregation
|
||||
}
|
||||
// GetFieldDeserializers the deserialization information for the current model
|
||||
func (m *RuleThreshold) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
|
||||
res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
|
||||
res["aggregation"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetEnumValue(ParseAggregationType)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetAggregation(val.(*AggregationType))
|
||||
}
|
||||
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["operator"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetEnumValue(ParseOperatorType)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetOperator(val.(*OperatorType))
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["target"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetInt32Value()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetTarget(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
return res
|
||||
}
|
||||
// GetOdataType gets the @odata.type property value. The OdataType property
|
||||
func (m *RuleThreshold) GetOdataType()(*string) {
|
||||
return m.odataType
|
||||
}
|
||||
// GetOperator gets the operator property value. Indicates the built-in operator. The possible values are: greaterOrEqual, equal, greater, less, lessOrEqual, notEqual, unknownFutureValue.
|
||||
func (m *RuleThreshold) GetOperator()(*OperatorType) {
|
||||
return m.operator
|
||||
}
|
||||
// GetTarget gets the target property value. The target threshold value.
|
||||
func (m *RuleThreshold) GetTarget()(*int32) {
|
||||
return m.target
|
||||
}
|
||||
// Serialize serializes information the current object
|
||||
func (m *RuleThreshold) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
|
||||
if m.GetAggregation() != nil {
|
||||
cast := (*m.GetAggregation()).String()
|
||||
err := writer.WriteStringValue("aggregation", &cast)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteStringValue("@odata.type", m.GetOdataType())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
if m.GetOperator() != nil {
|
||||
cast := (*m.GetOperator()).String()
|
||||
err := writer.WriteStringValue("operator", &cast)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteInt32Value("target", m.GetTarget())
|
||||
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 *RuleThreshold) SetAdditionalData(value map[string]interface{})() {
|
||||
m.additionalData = value
|
||||
}
|
||||
// SetAggregation sets the aggregation property value. Indicates the built-in aggregation methods. The possible values are: count, percentage, affectedCloudPcCount, affectedCloudPcPercentage, unknownFutureValue.
|
||||
func (m *RuleThreshold) SetAggregation(value *AggregationType)() {
|
||||
m.aggregation = value
|
||||
}
|
||||
// SetOdataType sets the @odata.type property value. The OdataType property
|
||||
func (m *RuleThreshold) SetOdataType(value *string)() {
|
||||
m.odataType = value
|
||||
}
|
||||
// SetOperator sets the operator property value. Indicates the built-in operator. The possible values are: greaterOrEqual, equal, greater, less, lessOrEqual, notEqual, unknownFutureValue.
|
||||
func (m *RuleThreshold) SetOperator(value *OperatorType)() {
|
||||
m.operator = value
|
||||
}
|
||||
// SetTarget sets the target property value. The target threshold value.
|
||||
func (m *RuleThreshold) SetTarget(value *int32)() {
|
||||
m.target = value
|
||||
}
|
||||
@ -0,0 +1,19 @@
|
||||
package devicemanagement
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// RuleThresholdable
|
||||
type RuleThresholdable interface {
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
||||
GetAggregation()(*AggregationType)
|
||||
GetOdataType()(*string)
|
||||
GetOperator()(*OperatorType)
|
||||
GetTarget()(*int32)
|
||||
SetAggregation(value *AggregationType)()
|
||||
SetOdataType(value *string)()
|
||||
SetOperator(value *OperatorType)()
|
||||
SetTarget(value *int32)()
|
||||
}
|
||||
@ -0,0 +1,86 @@
|
||||
package ediscovery
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// AddToReviewSetOperation
|
||||
type AddToReviewSetOperation struct {
|
||||
CaseOperation
|
||||
// The review set to which items matching the source collection query are added to.
|
||||
reviewSet ReviewSetable
|
||||
// The sourceCollection that items are being added from.
|
||||
sourceCollection SourceCollectionable
|
||||
}
|
||||
// NewAddToReviewSetOperation instantiates a new AddToReviewSetOperation and sets the default values.
|
||||
func NewAddToReviewSetOperation()(*AddToReviewSetOperation) {
|
||||
m := &AddToReviewSetOperation{
|
||||
CaseOperation: *NewCaseOperation(),
|
||||
}
|
||||
return m
|
||||
}
|
||||
// CreateAddToReviewSetOperationFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
||||
func CreateAddToReviewSetOperationFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
||||
return NewAddToReviewSetOperation(), nil
|
||||
}
|
||||
// GetFieldDeserializers the deserialization information for the current model
|
||||
func (m *AddToReviewSetOperation) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
|
||||
res := m.CaseOperation.GetFieldDeserializers()
|
||||
res["reviewSet"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetObjectValue(CreateReviewSetFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetReviewSet(val.(ReviewSetable))
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["sourceCollection"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetObjectValue(CreateSourceCollectionFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetSourceCollection(val.(SourceCollectionable))
|
||||
}
|
||||
return nil
|
||||
}
|
||||
return res
|
||||
}
|
||||
// GetReviewSet gets the reviewSet property value. The review set to which items matching the source collection query are added to.
|
||||
func (m *AddToReviewSetOperation) GetReviewSet()(ReviewSetable) {
|
||||
return m.reviewSet
|
||||
}
|
||||
// GetSourceCollection gets the sourceCollection property value. The sourceCollection that items are being added from.
|
||||
func (m *AddToReviewSetOperation) GetSourceCollection()(SourceCollectionable) {
|
||||
return m.sourceCollection
|
||||
}
|
||||
// Serialize serializes information the current object
|
||||
func (m *AddToReviewSetOperation) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
|
||||
err := m.CaseOperation.Serialize(writer)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
{
|
||||
err = writer.WriteObjectValue("reviewSet", m.GetReviewSet())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteObjectValue("sourceCollection", m.GetSourceCollection())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
// SetReviewSet sets the reviewSet property value. The review set to which items matching the source collection query are added to.
|
||||
func (m *AddToReviewSetOperation) SetReviewSet(value ReviewSetable)() {
|
||||
m.reviewSet = value
|
||||
}
|
||||
// SetSourceCollection sets the sourceCollection property value. The sourceCollection that items are being added from.
|
||||
func (m *AddToReviewSetOperation) SetSourceCollection(value SourceCollectionable)() {
|
||||
m.sourceCollection = value
|
||||
}
|
||||
@ -0,0 +1,69 @@
|
||||
package ediscovery
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models"
|
||||
)
|
||||
|
||||
// AddToReviewSetOperationCollectionResponse
|
||||
type AddToReviewSetOperationCollectionResponse struct {
|
||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.BaseCollectionPaginationCountResponse
|
||||
// The value property
|
||||
value []AddToReviewSetOperationable
|
||||
}
|
||||
// NewAddToReviewSetOperationCollectionResponse instantiates a new AddToReviewSetOperationCollectionResponse and sets the default values.
|
||||
func NewAddToReviewSetOperationCollectionResponse()(*AddToReviewSetOperationCollectionResponse) {
|
||||
m := &AddToReviewSetOperationCollectionResponse{
|
||||
BaseCollectionPaginationCountResponse: *ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.NewBaseCollectionPaginationCountResponse(),
|
||||
}
|
||||
return m
|
||||
}
|
||||
// CreateAddToReviewSetOperationCollectionResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
||||
func CreateAddToReviewSetOperationCollectionResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
||||
return NewAddToReviewSetOperationCollectionResponse(), nil
|
||||
}
|
||||
// GetFieldDeserializers the deserialization information for the current model
|
||||
func (m *AddToReviewSetOperationCollectionResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
|
||||
res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers()
|
||||
res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetCollectionOfObjectValues(CreateAddToReviewSetOperationFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
res := make([]AddToReviewSetOperationable, len(val))
|
||||
for i, v := range val {
|
||||
res[i] = v.(AddToReviewSetOperationable)
|
||||
}
|
||||
m.SetValue(res)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
return res
|
||||
}
|
||||
// GetValue gets the value property value. The value property
|
||||
func (m *AddToReviewSetOperationCollectionResponse) GetValue()([]AddToReviewSetOperationable) {
|
||||
return m.value
|
||||
}
|
||||
// Serialize serializes information the current object
|
||||
func (m *AddToReviewSetOperationCollectionResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
|
||||
err := m.BaseCollectionPaginationCountResponse.Serialize(writer)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if m.GetValue() != nil {
|
||||
cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue()))
|
||||
for i, v := range m.GetValue() {
|
||||
cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable)
|
||||
}
|
||||
err = writer.WriteCollectionOfObjectValues("value", cast)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
// SetValue sets the value property value. The value property
|
||||
func (m *AddToReviewSetOperationCollectionResponse) SetValue(value []AddToReviewSetOperationable)() {
|
||||
m.value = value
|
||||
}
|
||||
@ -0,0 +1,14 @@
|
||||
package ediscovery
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models"
|
||||
)
|
||||
|
||||
// AddToReviewSetOperationCollectionResponseable
|
||||
type AddToReviewSetOperationCollectionResponseable interface {
|
||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.BaseCollectionPaginationCountResponseable
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
||||
GetValue()([]AddToReviewSetOperationable)
|
||||
SetValue(value []AddToReviewSetOperationable)()
|
||||
}
|
||||
@ -0,0 +1,15 @@
|
||||
package ediscovery
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// AddToReviewSetOperationable
|
||||
type AddToReviewSetOperationable interface {
|
||||
CaseOperationable
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
||||
GetReviewSet()(ReviewSetable)
|
||||
GetSourceCollection()(SourceCollectionable)
|
||||
SetReviewSet(value ReviewSetable)()
|
||||
SetSourceCollection(value SourceCollectionable)()
|
||||
}
|
||||
@ -0,0 +1,55 @@
|
||||
package ediscovery
|
||||
import (
|
||||
"errors"
|
||||
)
|
||||
// Provides operations to manage the sites property of the microsoft.graph.browserSiteList entity.
|
||||
type CaseAction int
|
||||
|
||||
const (
|
||||
CONTENTEXPORT_CASEACTION CaseAction = iota
|
||||
APPLYTAGS_CASEACTION
|
||||
CONVERTTOPDF_CASEACTION
|
||||
INDEX_CASEACTION
|
||||
ESTIMATESTATISTICS_CASEACTION
|
||||
ADDTOREVIEWSET_CASEACTION
|
||||
HOLDUPDATE_CASEACTION
|
||||
UNKNOWNFUTUREVALUE_CASEACTION
|
||||
PURGEDATA_CASEACTION
|
||||
)
|
||||
|
||||
func (i CaseAction) String() string {
|
||||
return []string{"contentExport", "applyTags", "convertToPdf", "index", "estimateStatistics", "addToReviewSet", "holdUpdate", "unknownFutureValue", "purgeData"}[i]
|
||||
}
|
||||
func ParseCaseAction(v string) (interface{}, error) {
|
||||
result := CONTENTEXPORT_CASEACTION
|
||||
switch v {
|
||||
case "contentExport":
|
||||
result = CONTENTEXPORT_CASEACTION
|
||||
case "applyTags":
|
||||
result = APPLYTAGS_CASEACTION
|
||||
case "convertToPdf":
|
||||
result = CONVERTTOPDF_CASEACTION
|
||||
case "index":
|
||||
result = INDEX_CASEACTION
|
||||
case "estimateStatistics":
|
||||
result = ESTIMATESTATISTICS_CASEACTION
|
||||
case "addToReviewSet":
|
||||
result = ADDTOREVIEWSET_CASEACTION
|
||||
case "holdUpdate":
|
||||
result = HOLDUPDATE_CASEACTION
|
||||
case "unknownFutureValue":
|
||||
result = UNKNOWNFUTUREVALUE_CASEACTION
|
||||
case "purgeData":
|
||||
result = PURGEDATA_CASEACTION
|
||||
default:
|
||||
return 0, errors.New("Unknown CaseAction value: " + v)
|
||||
}
|
||||
return &result, nil
|
||||
}
|
||||
func SerializeCaseAction(values []CaseAction) []string {
|
||||
result := make([]string, len(values))
|
||||
for i, v := range values {
|
||||
result[i] = v.String()
|
||||
}
|
||||
return result
|
||||
}
|
||||
@ -0,0 +1,69 @@
|
||||
package ediscovery
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models"
|
||||
)
|
||||
|
||||
// CaseCollectionResponse
|
||||
type CaseCollectionResponse struct {
|
||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.BaseCollectionPaginationCountResponse
|
||||
// The value property
|
||||
value []Case_escapedable
|
||||
}
|
||||
// NewCaseCollectionResponse instantiates a new CaseCollectionResponse and sets the default values.
|
||||
func NewCaseCollectionResponse()(*CaseCollectionResponse) {
|
||||
m := &CaseCollectionResponse{
|
||||
BaseCollectionPaginationCountResponse: *ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.NewBaseCollectionPaginationCountResponse(),
|
||||
}
|
||||
return m
|
||||
}
|
||||
// CreateCaseCollectionResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
||||
func CreateCaseCollectionResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
||||
return NewCaseCollectionResponse(), nil
|
||||
}
|
||||
// GetFieldDeserializers the deserialization information for the current model
|
||||
func (m *CaseCollectionResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
|
||||
res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers()
|
||||
res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetCollectionOfObjectValues(CreateCase_escapedFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
res := make([]Case_escapedable, len(val))
|
||||
for i, v := range val {
|
||||
res[i] = v.(Case_escapedable)
|
||||
}
|
||||
m.SetValue(res)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
return res
|
||||
}
|
||||
// GetValue gets the value property value. The value property
|
||||
func (m *CaseCollectionResponse) GetValue()([]Case_escapedable) {
|
||||
return m.value
|
||||
}
|
||||
// Serialize serializes information the current object
|
||||
func (m *CaseCollectionResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
|
||||
err := m.BaseCollectionPaginationCountResponse.Serialize(writer)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if m.GetValue() != nil {
|
||||
cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue()))
|
||||
for i, v := range m.GetValue() {
|
||||
cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable)
|
||||
}
|
||||
err = writer.WriteCollectionOfObjectValues("value", cast)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
// SetValue sets the value property value. The value property
|
||||
func (m *CaseCollectionResponse) SetValue(value []Case_escapedable)() {
|
||||
m.value = value
|
||||
}
|
||||
@ -0,0 +1,14 @@
|
||||
package ediscovery
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models"
|
||||
)
|
||||
|
||||
// CaseCollectionResponseable
|
||||
type CaseCollectionResponseable interface {
|
||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.BaseCollectionPaginationCountResponseable
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
||||
GetValue()([]Case_escapedable)
|
||||
SetValue(value []Case_escapedable)()
|
||||
}
|
||||
@ -0,0 +1,535 @@
|
||||
package ediscovery
|
||||
|
||||
import (
|
||||
i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time"
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models"
|
||||
)
|
||||
|
||||
// Case_escaped provides operations to manage the sites property of the microsoft.graph.browserSiteList entity.
|
||||
type Case_escaped struct {
|
||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.Entity
|
||||
// The user who closed the case.
|
||||
closedBy ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.IdentitySetable
|
||||
// The date and time when the case was closed. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z
|
||||
closedDateTime *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time
|
||||
// The date and time when the entity was created. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z
|
||||
createdDateTime *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time
|
||||
// Returns a list of case custodian objects for this case. Nullable.
|
||||
custodians []Custodianable
|
||||
// The case description.
|
||||
description *string
|
||||
// The case name.
|
||||
displayName *string
|
||||
// The external case number for customer reference.
|
||||
externalId *string
|
||||
// The last user who modified the entity.
|
||||
lastModifiedBy ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.IdentitySetable
|
||||
// The latest date and time when the case was modified. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z
|
||||
lastModifiedDateTime *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time
|
||||
// Returns a list of case legalHold objects for this case. Nullable.
|
||||
legalHolds []LegalHoldable
|
||||
// Returns a list of case noncustodialDataSource objects for this case. Nullable.
|
||||
noncustodialDataSources []NoncustodialDataSourceable
|
||||
// Returns a list of case operation objects for this case. Nullable.
|
||||
operations []CaseOperationable
|
||||
// Returns a list of reviewSet objects in the case. Read-only. Nullable.
|
||||
reviewSets []ReviewSetable
|
||||
// The settings property
|
||||
settings CaseSettingsable
|
||||
// Returns a list of sourceCollection objects associated with this case.
|
||||
sourceCollections []SourceCollectionable
|
||||
// The case status. Possible values are unknown, active, pendingDelete, closing, closed, and closedWithError. For details, see the following table.
|
||||
status *CaseStatus
|
||||
// Returns a list of tag objects associated to this case.
|
||||
tags []Tagable
|
||||
}
|
||||
// NewCase_escaped instantiates a new case_escaped and sets the default values.
|
||||
func NewCase_escaped()(*Case_escaped) {
|
||||
m := &Case_escaped{
|
||||
Entity: *ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.NewEntity(),
|
||||
}
|
||||
return m
|
||||
}
|
||||
// CreateCase_escapedFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
||||
func CreateCase_escapedFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
||||
return NewCase_escaped(), nil
|
||||
}
|
||||
// GetClosedBy gets the closedBy property value. The user who closed the case.
|
||||
func (m *Case_escaped) GetClosedBy()(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.IdentitySetable) {
|
||||
return m.closedBy
|
||||
}
|
||||
// GetClosedDateTime gets the closedDateTime property value. The date and time when the case was closed. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z
|
||||
func (m *Case_escaped) GetClosedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) {
|
||||
return m.closedDateTime
|
||||
}
|
||||
// GetCreatedDateTime gets the createdDateTime property value. The date and time when the entity was created. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z
|
||||
func (m *Case_escaped) GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) {
|
||||
return m.createdDateTime
|
||||
}
|
||||
// GetCustodians gets the custodians property value. Returns a list of case custodian objects for this case. Nullable.
|
||||
func (m *Case_escaped) GetCustodians()([]Custodianable) {
|
||||
return m.custodians
|
||||
}
|
||||
// GetDescription gets the description property value. The case description.
|
||||
func (m *Case_escaped) GetDescription()(*string) {
|
||||
return m.description
|
||||
}
|
||||
// GetDisplayName gets the displayName property value. The case name.
|
||||
func (m *Case_escaped) GetDisplayName()(*string) {
|
||||
return m.displayName
|
||||
}
|
||||
// GetExternalId gets the externalId property value. The external case number for customer reference.
|
||||
func (m *Case_escaped) GetExternalId()(*string) {
|
||||
return m.externalId
|
||||
}
|
||||
// GetFieldDeserializers the deserialization information for the current model
|
||||
func (m *Case_escaped) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
|
||||
res := m.Entity.GetFieldDeserializers()
|
||||
res["closedBy"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetObjectValue(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.CreateIdentitySetFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetClosedBy(val.(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.IdentitySetable))
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["closedDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetTimeValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetClosedDateTime(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["createdDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetTimeValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetCreatedDateTime(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["custodians"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetCollectionOfObjectValues(CreateCustodianFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
res := make([]Custodianable, len(val))
|
||||
for i, v := range val {
|
||||
res[i] = v.(Custodianable)
|
||||
}
|
||||
m.SetCustodians(res)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["description"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetDescription(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["lastModifiedBy"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetObjectValue(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.CreateIdentitySetFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetLastModifiedBy(val.(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.IdentitySetable))
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["lastModifiedDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetTimeValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetLastModifiedDateTime(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["legalHolds"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetCollectionOfObjectValues(CreateLegalHoldFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
res := make([]LegalHoldable, len(val))
|
||||
for i, v := range val {
|
||||
res[i] = v.(LegalHoldable)
|
||||
}
|
||||
m.SetLegalHolds(res)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["noncustodialDataSources"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetCollectionOfObjectValues(CreateNoncustodialDataSourceFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
res := make([]NoncustodialDataSourceable, len(val))
|
||||
for i, v := range val {
|
||||
res[i] = v.(NoncustodialDataSourceable)
|
||||
}
|
||||
m.SetNoncustodialDataSources(res)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["operations"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetCollectionOfObjectValues(CreateCaseOperationFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
res := make([]CaseOperationable, len(val))
|
||||
for i, v := range val {
|
||||
res[i] = v.(CaseOperationable)
|
||||
}
|
||||
m.SetOperations(res)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["reviewSets"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetCollectionOfObjectValues(CreateReviewSetFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
res := make([]ReviewSetable, len(val))
|
||||
for i, v := range val {
|
||||
res[i] = v.(ReviewSetable)
|
||||
}
|
||||
m.SetReviewSets(res)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["settings"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetObjectValue(CreateCaseSettingsFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetSettings(val.(CaseSettingsable))
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["sourceCollections"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetCollectionOfObjectValues(CreateSourceCollectionFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
res := make([]SourceCollectionable, len(val))
|
||||
for i, v := range val {
|
||||
res[i] = v.(SourceCollectionable)
|
||||
}
|
||||
m.SetSourceCollections(res)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["status"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetEnumValue(ParseCaseStatus)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetStatus(val.(*CaseStatus))
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["tags"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetCollectionOfObjectValues(CreateTagFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
res := make([]Tagable, len(val))
|
||||
for i, v := range val {
|
||||
res[i] = v.(Tagable)
|
||||
}
|
||||
m.SetTags(res)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
return res
|
||||
}
|
||||
// GetLastModifiedBy gets the lastModifiedBy property value. The last user who modified the entity.
|
||||
func (m *Case_escaped) GetLastModifiedBy()(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.IdentitySetable) {
|
||||
return m.lastModifiedBy
|
||||
}
|
||||
// GetLastModifiedDateTime gets the lastModifiedDateTime property value. The latest date and time when the case was modified. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z
|
||||
func (m *Case_escaped) GetLastModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) {
|
||||
return m.lastModifiedDateTime
|
||||
}
|
||||
// GetLegalHolds gets the legalHolds property value. Returns a list of case legalHold objects for this case. Nullable.
|
||||
func (m *Case_escaped) GetLegalHolds()([]LegalHoldable) {
|
||||
return m.legalHolds
|
||||
}
|
||||
// GetNoncustodialDataSources gets the noncustodialDataSources property value. Returns a list of case noncustodialDataSource objects for this case. Nullable.
|
||||
func (m *Case_escaped) GetNoncustodialDataSources()([]NoncustodialDataSourceable) {
|
||||
return m.noncustodialDataSources
|
||||
}
|
||||
// GetOperations gets the operations property value. Returns a list of case operation objects for this case. Nullable.
|
||||
func (m *Case_escaped) GetOperations()([]CaseOperationable) {
|
||||
return m.operations
|
||||
}
|
||||
// GetReviewSets gets the reviewSets property value. Returns a list of reviewSet objects in the case. Read-only. Nullable.
|
||||
func (m *Case_escaped) GetReviewSets()([]ReviewSetable) {
|
||||
return m.reviewSets
|
||||
}
|
||||
// GetSettings gets the settings property value. The settings property
|
||||
func (m *Case_escaped) GetSettings()(CaseSettingsable) {
|
||||
return m.settings
|
||||
}
|
||||
// GetSourceCollections gets the sourceCollections property value. Returns a list of sourceCollection objects associated with this case.
|
||||
func (m *Case_escaped) GetSourceCollections()([]SourceCollectionable) {
|
||||
return m.sourceCollections
|
||||
}
|
||||
// GetStatus gets the status property value. The case status. Possible values are unknown, active, pendingDelete, closing, closed, and closedWithError. For details, see the following table.
|
||||
func (m *Case_escaped) GetStatus()(*CaseStatus) {
|
||||
return m.status
|
||||
}
|
||||
// GetTags gets the tags property value. Returns a list of tag objects associated to this case.
|
||||
func (m *Case_escaped) GetTags()([]Tagable) {
|
||||
return m.tags
|
||||
}
|
||||
// Serialize serializes information the current object
|
||||
func (m *Case_escaped) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
|
||||
err := m.Entity.Serialize(writer)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
{
|
||||
err = writer.WriteObjectValue("closedBy", m.GetClosedBy())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteTimeValue("closedDateTime", m.GetClosedDateTime())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteTimeValue("createdDateTime", m.GetCreatedDateTime())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
if m.GetCustodians() != nil {
|
||||
cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetCustodians()))
|
||||
for i, v := range m.GetCustodians() {
|
||||
cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable)
|
||||
}
|
||||
err = writer.WriteCollectionOfObjectValues("custodians", cast)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteStringValue("description", m.GetDescription())
|
||||
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.WriteObjectValue("lastModifiedBy", m.GetLastModifiedBy())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteTimeValue("lastModifiedDateTime", m.GetLastModifiedDateTime())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
if m.GetLegalHolds() != nil {
|
||||
cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetLegalHolds()))
|
||||
for i, v := range m.GetLegalHolds() {
|
||||
cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable)
|
||||
}
|
||||
err = writer.WriteCollectionOfObjectValues("legalHolds", cast)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
if m.GetNoncustodialDataSources() != nil {
|
||||
cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetNoncustodialDataSources()))
|
||||
for i, v := range m.GetNoncustodialDataSources() {
|
||||
cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable)
|
||||
}
|
||||
err = writer.WriteCollectionOfObjectValues("noncustodialDataSources", cast)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
if m.GetOperations() != nil {
|
||||
cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetOperations()))
|
||||
for i, v := range m.GetOperations() {
|
||||
cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable)
|
||||
}
|
||||
err = writer.WriteCollectionOfObjectValues("operations", cast)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
if m.GetReviewSets() != nil {
|
||||
cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetReviewSets()))
|
||||
for i, v := range m.GetReviewSets() {
|
||||
cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable)
|
||||
}
|
||||
err = writer.WriteCollectionOfObjectValues("reviewSets", cast)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteObjectValue("settings", m.GetSettings())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
if m.GetSourceCollections() != nil {
|
||||
cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetSourceCollections()))
|
||||
for i, v := range m.GetSourceCollections() {
|
||||
cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable)
|
||||
}
|
||||
err = writer.WriteCollectionOfObjectValues("sourceCollections", cast)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
if m.GetStatus() != nil {
|
||||
cast := (*m.GetStatus()).String()
|
||||
err = writer.WriteStringValue("status", &cast)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
if m.GetTags() != nil {
|
||||
cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetTags()))
|
||||
for i, v := range m.GetTags() {
|
||||
cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable)
|
||||
}
|
||||
err = writer.WriteCollectionOfObjectValues("tags", cast)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
// SetClosedBy sets the closedBy property value. The user who closed the case.
|
||||
func (m *Case_escaped) SetClosedBy(value ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.IdentitySetable)() {
|
||||
m.closedBy = value
|
||||
}
|
||||
// SetClosedDateTime sets the closedDateTime property value. The date and time when the case was closed. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z
|
||||
func (m *Case_escaped) SetClosedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() {
|
||||
m.closedDateTime = value
|
||||
}
|
||||
// SetCreatedDateTime sets the createdDateTime property value. The date and time when the entity was created. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z
|
||||
func (m *Case_escaped) SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() {
|
||||
m.createdDateTime = value
|
||||
}
|
||||
// SetCustodians sets the custodians property value. Returns a list of case custodian objects for this case. Nullable.
|
||||
func (m *Case_escaped) SetCustodians(value []Custodianable)() {
|
||||
m.custodians = value
|
||||
}
|
||||
// SetDescription sets the description property value. The case description.
|
||||
func (m *Case_escaped) SetDescription(value *string)() {
|
||||
m.description = value
|
||||
}
|
||||
// SetDisplayName sets the displayName property value. The case name.
|
||||
func (m *Case_escaped) SetDisplayName(value *string)() {
|
||||
m.displayName = value
|
||||
}
|
||||
// SetExternalId sets the externalId property value. The external case number for customer reference.
|
||||
func (m *Case_escaped) SetExternalId(value *string)() {
|
||||
m.externalId = value
|
||||
}
|
||||
// SetLastModifiedBy sets the lastModifiedBy property value. The last user who modified the entity.
|
||||
func (m *Case_escaped) SetLastModifiedBy(value ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.IdentitySetable)() {
|
||||
m.lastModifiedBy = value
|
||||
}
|
||||
// SetLastModifiedDateTime sets the lastModifiedDateTime property value. The latest date and time when the case was modified. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z
|
||||
func (m *Case_escaped) SetLastModifiedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() {
|
||||
m.lastModifiedDateTime = value
|
||||
}
|
||||
// SetLegalHolds sets the legalHolds property value. Returns a list of case legalHold objects for this case. Nullable.
|
||||
func (m *Case_escaped) SetLegalHolds(value []LegalHoldable)() {
|
||||
m.legalHolds = value
|
||||
}
|
||||
// SetNoncustodialDataSources sets the noncustodialDataSources property value. Returns a list of case noncustodialDataSource objects for this case. Nullable.
|
||||
func (m *Case_escaped) SetNoncustodialDataSources(value []NoncustodialDataSourceable)() {
|
||||
m.noncustodialDataSources = value
|
||||
}
|
||||
// SetOperations sets the operations property value. Returns a list of case operation objects for this case. Nullable.
|
||||
func (m *Case_escaped) SetOperations(value []CaseOperationable)() {
|
||||
m.operations = value
|
||||
}
|
||||
// SetReviewSets sets the reviewSets property value. Returns a list of reviewSet objects in the case. Read-only. Nullable.
|
||||
func (m *Case_escaped) SetReviewSets(value []ReviewSetable)() {
|
||||
m.reviewSets = value
|
||||
}
|
||||
// SetSettings sets the settings property value. The settings property
|
||||
func (m *Case_escaped) SetSettings(value CaseSettingsable)() {
|
||||
m.settings = value
|
||||
}
|
||||
// SetSourceCollections sets the sourceCollections property value. Returns a list of sourceCollection objects associated with this case.
|
||||
func (m *Case_escaped) SetSourceCollections(value []SourceCollectionable)() {
|
||||
m.sourceCollections = value
|
||||
}
|
||||
// SetStatus sets the status property value. The case status. Possible values are unknown, active, pendingDelete, closing, closed, and closedWithError. For details, see the following table.
|
||||
func (m *Case_escaped) SetStatus(value *CaseStatus)() {
|
||||
m.status = value
|
||||
}
|
||||
// SetTags sets the tags property value. Returns a list of tag objects associated to this case.
|
||||
func (m *Case_escaped) SetTags(value []Tagable)() {
|
||||
m.tags = value
|
||||
}
|
||||
@ -0,0 +1,47 @@
|
||||
package ediscovery
|
||||
|
||||
import (
|
||||
i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time"
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models"
|
||||
)
|
||||
|
||||
// Case_escapedable
|
||||
type Case_escapedable interface {
|
||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.Entityable
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
||||
GetClosedBy()(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.IdentitySetable)
|
||||
GetClosedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)
|
||||
GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)
|
||||
GetCustodians()([]Custodianable)
|
||||
GetDescription()(*string)
|
||||
GetDisplayName()(*string)
|
||||
GetExternalId()(*string)
|
||||
GetLastModifiedBy()(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.IdentitySetable)
|
||||
GetLastModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)
|
||||
GetLegalHolds()([]LegalHoldable)
|
||||
GetNoncustodialDataSources()([]NoncustodialDataSourceable)
|
||||
GetOperations()([]CaseOperationable)
|
||||
GetReviewSets()([]ReviewSetable)
|
||||
GetSettings()(CaseSettingsable)
|
||||
GetSourceCollections()([]SourceCollectionable)
|
||||
GetStatus()(*CaseStatus)
|
||||
GetTags()([]Tagable)
|
||||
SetClosedBy(value ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.IdentitySetable)()
|
||||
SetClosedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)()
|
||||
SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)()
|
||||
SetCustodians(value []Custodianable)()
|
||||
SetDescription(value *string)()
|
||||
SetDisplayName(value *string)()
|
||||
SetExternalId(value *string)()
|
||||
SetLastModifiedBy(value ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.IdentitySetable)()
|
||||
SetLastModifiedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)()
|
||||
SetLegalHolds(value []LegalHoldable)()
|
||||
SetNoncustodialDataSources(value []NoncustodialDataSourceable)()
|
||||
SetOperations(value []CaseOperationable)()
|
||||
SetReviewSets(value []ReviewSetable)()
|
||||
SetSettings(value CaseSettingsable)()
|
||||
SetSourceCollections(value []SourceCollectionable)()
|
||||
SetStatus(value *CaseStatus)()
|
||||
SetTags(value []Tagable)()
|
||||
}
|
||||
@ -0,0 +1,244 @@
|
||||
package ediscovery
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// CaseExportOperation
|
||||
type CaseExportOperation struct {
|
||||
CaseOperation
|
||||
// The name of the Azure storage location where the export will be stored. This only applies to exports stored in your own Azure storage location.
|
||||
azureBlobContainer *string
|
||||
// The SAS token for the Azure storage location. This only applies to exports stored in your own Azure storage location.
|
||||
azureBlobToken *string
|
||||
// The description provided for the export.
|
||||
description *string
|
||||
// The options provided for the export. For more details, see reviewSet: export. Possible values are: originalFiles, text, pdfReplacement, fileInfo, tags.
|
||||
exportOptions *ExportOptions
|
||||
// The options provided that specify the structure of the export. For more details, see reviewSet: export. Possible values are: none, directory, pst.
|
||||
exportStructure *ExportFileStructure
|
||||
// The outputFolderId property
|
||||
outputFolderId *string
|
||||
// The name provided for the export.
|
||||
outputName *string
|
||||
// The review set the content is being exported from.
|
||||
reviewSet ReviewSetable
|
||||
}
|
||||
// NewCaseExportOperation instantiates a new CaseExportOperation and sets the default values.
|
||||
func NewCaseExportOperation()(*CaseExportOperation) {
|
||||
m := &CaseExportOperation{
|
||||
CaseOperation: *NewCaseOperation(),
|
||||
}
|
||||
return m
|
||||
}
|
||||
// CreateCaseExportOperationFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
||||
func CreateCaseExportOperationFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
||||
return NewCaseExportOperation(), nil
|
||||
}
|
||||
// GetAzureBlobContainer gets the azureBlobContainer property value. The name of the Azure storage location where the export will be stored. This only applies to exports stored in your own Azure storage location.
|
||||
func (m *CaseExportOperation) GetAzureBlobContainer()(*string) {
|
||||
return m.azureBlobContainer
|
||||
}
|
||||
// GetAzureBlobToken gets the azureBlobToken property value. The SAS token for the Azure storage location. This only applies to exports stored in your own Azure storage location.
|
||||
func (m *CaseExportOperation) GetAzureBlobToken()(*string) {
|
||||
return m.azureBlobToken
|
||||
}
|
||||
// GetDescription gets the description property value. The description provided for the export.
|
||||
func (m *CaseExportOperation) GetDescription()(*string) {
|
||||
return m.description
|
||||
}
|
||||
// GetExportOptions gets the exportOptions property value. The options provided for the export. For more details, see reviewSet: export. Possible values are: originalFiles, text, pdfReplacement, fileInfo, tags.
|
||||
func (m *CaseExportOperation) GetExportOptions()(*ExportOptions) {
|
||||
return m.exportOptions
|
||||
}
|
||||
// GetExportStructure gets the exportStructure property value. The options provided that specify the structure of the export. For more details, see reviewSet: export. Possible values are: none, directory, pst.
|
||||
func (m *CaseExportOperation) GetExportStructure()(*ExportFileStructure) {
|
||||
return m.exportStructure
|
||||
}
|
||||
// GetFieldDeserializers the deserialization information for the current model
|
||||
func (m *CaseExportOperation) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
|
||||
res := m.CaseOperation.GetFieldDeserializers()
|
||||
res["azureBlobContainer"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetAzureBlobContainer(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["azureBlobToken"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetAzureBlobToken(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["description"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetDescription(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["exportOptions"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetEnumValue(ParseExportOptions)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetExportOptions(val.(*ExportOptions))
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["exportStructure"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetEnumValue(ParseExportFileStructure)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetExportStructure(val.(*ExportFileStructure))
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["outputFolderId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetOutputFolderId(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["outputName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetOutputName(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["reviewSet"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetObjectValue(CreateReviewSetFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetReviewSet(val.(ReviewSetable))
|
||||
}
|
||||
return nil
|
||||
}
|
||||
return res
|
||||
}
|
||||
// GetOutputFolderId gets the outputFolderId property value. The outputFolderId property
|
||||
func (m *CaseExportOperation) GetOutputFolderId()(*string) {
|
||||
return m.outputFolderId
|
||||
}
|
||||
// GetOutputName gets the outputName property value. The name provided for the export.
|
||||
func (m *CaseExportOperation) GetOutputName()(*string) {
|
||||
return m.outputName
|
||||
}
|
||||
// GetReviewSet gets the reviewSet property value. The review set the content is being exported from.
|
||||
func (m *CaseExportOperation) GetReviewSet()(ReviewSetable) {
|
||||
return m.reviewSet
|
||||
}
|
||||
// Serialize serializes information the current object
|
||||
func (m *CaseExportOperation) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
|
||||
err := m.CaseOperation.Serialize(writer)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
{
|
||||
err = writer.WriteStringValue("azureBlobContainer", m.GetAzureBlobContainer())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteStringValue("azureBlobToken", m.GetAzureBlobToken())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteStringValue("description", m.GetDescription())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
if m.GetExportOptions() != nil {
|
||||
cast := (*m.GetExportOptions()).String()
|
||||
err = writer.WriteStringValue("exportOptions", &cast)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
if m.GetExportStructure() != nil {
|
||||
cast := (*m.GetExportStructure()).String()
|
||||
err = writer.WriteStringValue("exportStructure", &cast)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteStringValue("outputFolderId", m.GetOutputFolderId())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteStringValue("outputName", m.GetOutputName())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteObjectValue("reviewSet", m.GetReviewSet())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
// SetAzureBlobContainer sets the azureBlobContainer property value. The name of the Azure storage location where the export will be stored. This only applies to exports stored in your own Azure storage location.
|
||||
func (m *CaseExportOperation) SetAzureBlobContainer(value *string)() {
|
||||
m.azureBlobContainer = value
|
||||
}
|
||||
// SetAzureBlobToken sets the azureBlobToken property value. The SAS token for the Azure storage location. This only applies to exports stored in your own Azure storage location.
|
||||
func (m *CaseExportOperation) SetAzureBlobToken(value *string)() {
|
||||
m.azureBlobToken = value
|
||||
}
|
||||
// SetDescription sets the description property value. The description provided for the export.
|
||||
func (m *CaseExportOperation) SetDescription(value *string)() {
|
||||
m.description = value
|
||||
}
|
||||
// SetExportOptions sets the exportOptions property value. The options provided for the export. For more details, see reviewSet: export. Possible values are: originalFiles, text, pdfReplacement, fileInfo, tags.
|
||||
func (m *CaseExportOperation) SetExportOptions(value *ExportOptions)() {
|
||||
m.exportOptions = value
|
||||
}
|
||||
// SetExportStructure sets the exportStructure property value. The options provided that specify the structure of the export. For more details, see reviewSet: export. Possible values are: none, directory, pst.
|
||||
func (m *CaseExportOperation) SetExportStructure(value *ExportFileStructure)() {
|
||||
m.exportStructure = value
|
||||
}
|
||||
// SetOutputFolderId sets the outputFolderId property value. The outputFolderId property
|
||||
func (m *CaseExportOperation) SetOutputFolderId(value *string)() {
|
||||
m.outputFolderId = value
|
||||
}
|
||||
// SetOutputName sets the outputName property value. The name provided for the export.
|
||||
func (m *CaseExportOperation) SetOutputName(value *string)() {
|
||||
m.outputName = value
|
||||
}
|
||||
// SetReviewSet sets the reviewSet property value. The review set the content is being exported from.
|
||||
func (m *CaseExportOperation) SetReviewSet(value ReviewSetable)() {
|
||||
m.reviewSet = value
|
||||
}
|
||||
@ -0,0 +1,69 @@
|
||||
package ediscovery
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models"
|
||||
)
|
||||
|
||||
// CaseExportOperationCollectionResponse
|
||||
type CaseExportOperationCollectionResponse struct {
|
||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.BaseCollectionPaginationCountResponse
|
||||
// The value property
|
||||
value []CaseExportOperationable
|
||||
}
|
||||
// NewCaseExportOperationCollectionResponse instantiates a new CaseExportOperationCollectionResponse and sets the default values.
|
||||
func NewCaseExportOperationCollectionResponse()(*CaseExportOperationCollectionResponse) {
|
||||
m := &CaseExportOperationCollectionResponse{
|
||||
BaseCollectionPaginationCountResponse: *ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.NewBaseCollectionPaginationCountResponse(),
|
||||
}
|
||||
return m
|
||||
}
|
||||
// CreateCaseExportOperationCollectionResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
||||
func CreateCaseExportOperationCollectionResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
||||
return NewCaseExportOperationCollectionResponse(), nil
|
||||
}
|
||||
// GetFieldDeserializers the deserialization information for the current model
|
||||
func (m *CaseExportOperationCollectionResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
|
||||
res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers()
|
||||
res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetCollectionOfObjectValues(CreateCaseExportOperationFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
res := make([]CaseExportOperationable, len(val))
|
||||
for i, v := range val {
|
||||
res[i] = v.(CaseExportOperationable)
|
||||
}
|
||||
m.SetValue(res)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
return res
|
||||
}
|
||||
// GetValue gets the value property value. The value property
|
||||
func (m *CaseExportOperationCollectionResponse) GetValue()([]CaseExportOperationable) {
|
||||
return m.value
|
||||
}
|
||||
// Serialize serializes information the current object
|
||||
func (m *CaseExportOperationCollectionResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
|
||||
err := m.BaseCollectionPaginationCountResponse.Serialize(writer)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if m.GetValue() != nil {
|
||||
cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue()))
|
||||
for i, v := range m.GetValue() {
|
||||
cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable)
|
||||
}
|
||||
err = writer.WriteCollectionOfObjectValues("value", cast)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
// SetValue sets the value property value. The value property
|
||||
func (m *CaseExportOperationCollectionResponse) SetValue(value []CaseExportOperationable)() {
|
||||
m.value = value
|
||||
}
|
||||
@ -0,0 +1,14 @@
|
||||
package ediscovery
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models"
|
||||
)
|
||||
|
||||
// CaseExportOperationCollectionResponseable
|
||||
type CaseExportOperationCollectionResponseable interface {
|
||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.BaseCollectionPaginationCountResponseable
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
||||
GetValue()([]CaseExportOperationable)
|
||||
SetValue(value []CaseExportOperationable)()
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user