From 417a136d7bf4e204e53b60f917c14292cf8a351e Mon Sep 17 00:00:00 2001 From: Microsoft Graph DevX Tooling Date: Thu, 22 Jan 2026 18:16:48 +0000 Subject: [PATCH] feat(generation): update request builders and models Update generated files with build 208109 --- kiota-dom-export.txt | 59 +++++ kiota-lock.json | 2 +- models/protection_policy_artifact_count.go | 264 +++++++++++++++++++++ models/protection_policy_base.go | 74 ++++++ models/security/alert.go | 4 +- models/security/incident.go | 37 +++ models/security/sensor.go | 38 +++ models/security/sensor_candidate.go | 37 +++ models/security/service_status.go | 51 ++++ models/service_principal.go | 4 +- 10 files changed, 565 insertions(+), 5 deletions(-) create mode 100644 models/protection_policy_artifact_count.go create mode 100644 models/security/service_status.go diff --git a/kiota-dom-export.txt b/kiota-dom-export.txt index 4aebfc0b98..46e58adc3b 100644 --- a/kiota-dom-export.txt +++ b/kiota-dom-export.txt @@ -167245,14 +167245,48 @@ github.com/microsoftgraph/msgraph-sdk-go/.models.protectedContentable::|public|S github.com/microsoftgraph/msgraph-sdk-go/.models.protectedContentable::|public|SetOdataType(value:*string):void github.com/microsoftgraph/msgraph-sdk-go/.models.protectedContentable~~>*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder; *ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel; *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable github.com/microsoftgraph/msgraph-sdk-go/.models.protectedContent~~>ProtectedContentable +github.com/microsoftgraph/msgraph-sdk-go/.models.protectionPolicyArtifactCount::|public|constructor():void +github.com/microsoftgraph/msgraph-sdk-go/.models.protectionPolicyArtifactCount::|public|GetAdditionalData():map[string]any +github.com/microsoftgraph/msgraph-sdk-go/.models.protectionPolicyArtifactCount::|public|GetBackingStore():BackingStore +github.com/microsoftgraph/msgraph-sdk-go/.models.protectionPolicyArtifactCount::|public|GetCompleted():*int32 +github.com/microsoftgraph/msgraph-sdk-go/.models.protectionPolicyArtifactCount::|public|GetFailed():*int32 +github.com/microsoftgraph/msgraph-sdk-go/.models.protectionPolicyArtifactCount::|public|getFieldDeserializers():map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) +github.com/microsoftgraph/msgraph-sdk-go/.models.protectionPolicyArtifactCount::|public|GetInProgress():*int32 +github.com/microsoftgraph/msgraph-sdk-go/.models.protectionPolicyArtifactCount::|public|GetOdataType():*string +github.com/microsoftgraph/msgraph-sdk-go/.models.protectionPolicyArtifactCount::|public|GetTotal():*int32 +github.com/microsoftgraph/msgraph-sdk-go/.models.protectionPolicyArtifactCount::|public|Serialize(writer:SerializationWriter):void +github.com/microsoftgraph/msgraph-sdk-go/.models.protectionPolicyArtifactCount::|public|SetAdditionalData(value:map[string]any):void +github.com/microsoftgraph/msgraph-sdk-go/.models.protectionPolicyArtifactCount::|public|SetBackingStore(value:BackingStore):void +github.com/microsoftgraph/msgraph-sdk-go/.models.protectionPolicyArtifactCount::|public|SetCompleted(value:*int32):void +github.com/microsoftgraph/msgraph-sdk-go/.models.protectionPolicyArtifactCount::|public|SetFailed(value:*int32):void +github.com/microsoftgraph/msgraph-sdk-go/.models.protectionPolicyArtifactCount::|public|SetInProgress(value:*int32):void +github.com/microsoftgraph/msgraph-sdk-go/.models.protectionPolicyArtifactCount::|public|SetOdataType(value:*string):void +github.com/microsoftgraph/msgraph-sdk-go/.models.protectionPolicyArtifactCount::|public|SetTotal(value:*int32):void +github.com/microsoftgraph/msgraph-sdk-go/.models.protectionPolicyArtifactCount::|static|public|CreateFromDiscriminatorValue(parseNode:ParseNode):Parsable +github.com/microsoftgraph/msgraph-sdk-go/.models.protectionPolicyArtifactCountable::|public|GetBackingStore():BackingStore +github.com/microsoftgraph/msgraph-sdk-go/.models.protectionPolicyArtifactCountable::|public|GetCompleted():*int32 +github.com/microsoftgraph/msgraph-sdk-go/.models.protectionPolicyArtifactCountable::|public|GetFailed():*int32 +github.com/microsoftgraph/msgraph-sdk-go/.models.protectionPolicyArtifactCountable::|public|GetInProgress():*int32 +github.com/microsoftgraph/msgraph-sdk-go/.models.protectionPolicyArtifactCountable::|public|GetOdataType():*string +github.com/microsoftgraph/msgraph-sdk-go/.models.protectionPolicyArtifactCountable::|public|GetTotal():*int32 +github.com/microsoftgraph/msgraph-sdk-go/.models.protectionPolicyArtifactCountable::|public|SetBackingStore(value:BackingStore):void +github.com/microsoftgraph/msgraph-sdk-go/.models.protectionPolicyArtifactCountable::|public|SetCompleted(value:*int32):void +github.com/microsoftgraph/msgraph-sdk-go/.models.protectionPolicyArtifactCountable::|public|SetFailed(value:*int32):void +github.com/microsoftgraph/msgraph-sdk-go/.models.protectionPolicyArtifactCountable::|public|SetInProgress(value:*int32):void +github.com/microsoftgraph/msgraph-sdk-go/.models.protectionPolicyArtifactCountable::|public|SetOdataType(value:*string):void +github.com/microsoftgraph/msgraph-sdk-go/.models.protectionPolicyArtifactCountable::|public|SetTotal(value:*int32):void +github.com/microsoftgraph/msgraph-sdk-go/.models.protectionPolicyArtifactCountable~~>*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder; *ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel; *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +github.com/microsoftgraph/msgraph-sdk-go/.models.protectionPolicyArtifactCount~~>ProtectionPolicyArtifactCountable github.com/microsoftgraph/msgraph-sdk-go/.models.protectionPolicyBase-->*Entity github.com/microsoftgraph/msgraph-sdk-go/.models.protectionPolicyBase::|public|constructor():void github.com/microsoftgraph/msgraph-sdk-go/.models.protectionPolicyBase::|public|GetCreatedBy():IdentitySetable github.com/microsoftgraph/msgraph-sdk-go/.models.protectionPolicyBase::|public|GetCreatedDateTime():*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time github.com/microsoftgraph/msgraph-sdk-go/.models.protectionPolicyBase::|public|GetDisplayName():*string github.com/microsoftgraph/msgraph-sdk-go/.models.protectionPolicyBase::|public|getFieldDeserializers():map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) +github.com/microsoftgraph/msgraph-sdk-go/.models.protectionPolicyBase::|public|GetIsEnabled():*bool github.com/microsoftgraph/msgraph-sdk-go/.models.protectionPolicyBase::|public|GetLastModifiedBy():IdentitySetable github.com/microsoftgraph/msgraph-sdk-go/.models.protectionPolicyBase::|public|GetLastModifiedDateTime():*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time +github.com/microsoftgraph/msgraph-sdk-go/.models.protectionPolicyBase::|public|GetProtectionPolicyArtifactCount():ProtectionPolicyArtifactCountable github.com/microsoftgraph/msgraph-sdk-go/.models.protectionPolicyBase::|public|GetRetentionSettings():[]RetentionSettingable github.com/microsoftgraph/msgraph-sdk-go/.models.protectionPolicyBase::|public|GetStatus():*ProtectionPolicyStatus github.com/microsoftgraph/msgraph-sdk-go/.models.protectionPolicyBase::|public|OdataType:*string @@ -167260,23 +167294,29 @@ github.com/microsoftgraph/msgraph-sdk-go/.models.protectionPolicyBase::|public|S github.com/microsoftgraph/msgraph-sdk-go/.models.protectionPolicyBase::|public|SetCreatedBy(value:IdentitySetable):void github.com/microsoftgraph/msgraph-sdk-go/.models.protectionPolicyBase::|public|SetCreatedDateTime(value:*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time):void github.com/microsoftgraph/msgraph-sdk-go/.models.protectionPolicyBase::|public|SetDisplayName(value:*string):void +github.com/microsoftgraph/msgraph-sdk-go/.models.protectionPolicyBase::|public|SetIsEnabled(value:*bool):void github.com/microsoftgraph/msgraph-sdk-go/.models.protectionPolicyBase::|public|SetLastModifiedBy(value:IdentitySetable):void github.com/microsoftgraph/msgraph-sdk-go/.models.protectionPolicyBase::|public|SetLastModifiedDateTime(value:*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time):void +github.com/microsoftgraph/msgraph-sdk-go/.models.protectionPolicyBase::|public|SetProtectionPolicyArtifactCount(value:ProtectionPolicyArtifactCountable):void github.com/microsoftgraph/msgraph-sdk-go/.models.protectionPolicyBase::|public|SetRetentionSettings(value:[]RetentionSettingable):void github.com/microsoftgraph/msgraph-sdk-go/.models.protectionPolicyBase::|public|SetStatus(value:*ProtectionPolicyStatus):void github.com/microsoftgraph/msgraph-sdk-go/.models.protectionPolicyBase::|static|public|CreateFromDiscriminatorValue(parseNode:ParseNode):Parsable github.com/microsoftgraph/msgraph-sdk-go/.models.protectionPolicyBaseable::|public|GetCreatedBy():IdentitySetable github.com/microsoftgraph/msgraph-sdk-go/.models.protectionPolicyBaseable::|public|GetCreatedDateTime():*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time github.com/microsoftgraph/msgraph-sdk-go/.models.protectionPolicyBaseable::|public|GetDisplayName():*string +github.com/microsoftgraph/msgraph-sdk-go/.models.protectionPolicyBaseable::|public|GetIsEnabled():*bool github.com/microsoftgraph/msgraph-sdk-go/.models.protectionPolicyBaseable::|public|GetLastModifiedBy():IdentitySetable github.com/microsoftgraph/msgraph-sdk-go/.models.protectionPolicyBaseable::|public|GetLastModifiedDateTime():*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time +github.com/microsoftgraph/msgraph-sdk-go/.models.protectionPolicyBaseable::|public|GetProtectionPolicyArtifactCount():ProtectionPolicyArtifactCountable github.com/microsoftgraph/msgraph-sdk-go/.models.protectionPolicyBaseable::|public|GetRetentionSettings():[]RetentionSettingable github.com/microsoftgraph/msgraph-sdk-go/.models.protectionPolicyBaseable::|public|GetStatus():*ProtectionPolicyStatus github.com/microsoftgraph/msgraph-sdk-go/.models.protectionPolicyBaseable::|public|SetCreatedBy(value:IdentitySetable):void github.com/microsoftgraph/msgraph-sdk-go/.models.protectionPolicyBaseable::|public|SetCreatedDateTime(value:*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time):void github.com/microsoftgraph/msgraph-sdk-go/.models.protectionPolicyBaseable::|public|SetDisplayName(value:*string):void +github.com/microsoftgraph/msgraph-sdk-go/.models.protectionPolicyBaseable::|public|SetIsEnabled(value:*bool):void github.com/microsoftgraph/msgraph-sdk-go/.models.protectionPolicyBaseable::|public|SetLastModifiedBy(value:IdentitySetable):void github.com/microsoftgraph/msgraph-sdk-go/.models.protectionPolicyBaseable::|public|SetLastModifiedDateTime(value:*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time):void +github.com/microsoftgraph/msgraph-sdk-go/.models.protectionPolicyBaseable::|public|SetProtectionPolicyArtifactCount(value:ProtectionPolicyArtifactCountable):void github.com/microsoftgraph/msgraph-sdk-go/.models.protectionPolicyBaseable::|public|SetRetentionSettings(value:[]RetentionSettingable):void github.com/microsoftgraph/msgraph-sdk-go/.models.protectionPolicyBaseable::|public|SetStatus(value:*ProtectionPolicyStatus):void github.com/microsoftgraph/msgraph-sdk-go/.models.protectionPolicyBaseable~~>Entityable; *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable @@ -175763,6 +175803,7 @@ github.com/microsoftgraph/msgraph-sdk-go/.models.security.incident::|public|getF github.com/microsoftgraph/msgraph-sdk-go/.models.security.incident::|public|GetIncidentWebUrl():*string github.com/microsoftgraph/msgraph-sdk-go/.models.security.incident::|public|GetLastModifiedBy():*string github.com/microsoftgraph/msgraph-sdk-go/.models.security.incident::|public|GetLastUpdateDateTime():*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time +github.com/microsoftgraph/msgraph-sdk-go/.models.security.incident::|public|GetPriorityScore():*int32 github.com/microsoftgraph/msgraph-sdk-go/.models.security.incident::|public|GetRedirectIncidentId():*string github.com/microsoftgraph/msgraph-sdk-go/.models.security.incident::|public|GetResolvingComment():*string github.com/microsoftgraph/msgraph-sdk-go/.models.security.incident::|public|GetSeverity():*AlertSeverity @@ -175784,6 +175825,7 @@ github.com/microsoftgraph/msgraph-sdk-go/.models.security.incident::|public|SetD github.com/microsoftgraph/msgraph-sdk-go/.models.security.incident::|public|SetIncidentWebUrl(value:*string):void github.com/microsoftgraph/msgraph-sdk-go/.models.security.incident::|public|SetLastModifiedBy(value:*string):void github.com/microsoftgraph/msgraph-sdk-go/.models.security.incident::|public|SetLastUpdateDateTime(value:*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time):void +github.com/microsoftgraph/msgraph-sdk-go/.models.security.incident::|public|SetPriorityScore(value:*int32):void github.com/microsoftgraph/msgraph-sdk-go/.models.security.incident::|public|SetRedirectIncidentId(value:*string):void github.com/microsoftgraph/msgraph-sdk-go/.models.security.incident::|public|SetResolvingComment(value:*string):void github.com/microsoftgraph/msgraph-sdk-go/.models.security.incident::|public|SetSeverity(value:*AlertSeverity):void @@ -175804,6 +175846,7 @@ github.com/microsoftgraph/msgraph-sdk-go/.models.security.incidentable::|public| github.com/microsoftgraph/msgraph-sdk-go/.models.security.incidentable::|public|GetIncidentWebUrl():*string github.com/microsoftgraph/msgraph-sdk-go/.models.security.incidentable::|public|GetLastModifiedBy():*string github.com/microsoftgraph/msgraph-sdk-go/.models.security.incidentable::|public|GetLastUpdateDateTime():*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time +github.com/microsoftgraph/msgraph-sdk-go/.models.security.incidentable::|public|GetPriorityScore():*int32 github.com/microsoftgraph/msgraph-sdk-go/.models.security.incidentable::|public|GetRedirectIncidentId():*string github.com/microsoftgraph/msgraph-sdk-go/.models.security.incidentable::|public|GetResolvingComment():*string github.com/microsoftgraph/msgraph-sdk-go/.models.security.incidentable::|public|GetSeverity():*AlertSeverity @@ -175823,6 +175866,7 @@ github.com/microsoftgraph/msgraph-sdk-go/.models.security.incidentable::|public| github.com/microsoftgraph/msgraph-sdk-go/.models.security.incidentable::|public|SetIncidentWebUrl(value:*string):void github.com/microsoftgraph/msgraph-sdk-go/.models.security.incidentable::|public|SetLastModifiedBy(value:*string):void github.com/microsoftgraph/msgraph-sdk-go/.models.security.incidentable::|public|SetLastUpdateDateTime(value:*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time):void +github.com/microsoftgraph/msgraph-sdk-go/.models.security.incidentable::|public|SetPriorityScore(value:*int32):void github.com/microsoftgraph/msgraph-sdk-go/.models.security.incidentable::|public|SetRedirectIncidentId(value:*string):void github.com/microsoftgraph/msgraph-sdk-go/.models.security.incidentable::|public|SetResolvingComment(value:*string):void github.com/microsoftgraph/msgraph-sdk-go/.models.security.incidentable::|public|SetSeverity(value:*AlertSeverity):void @@ -177336,6 +177380,7 @@ github.com/microsoftgraph/msgraph-sdk-go/.models.security.sensor::|public|GetHea github.com/microsoftgraph/msgraph-sdk-go/.models.security.sensor::|public|GetHealthStatus():*SensorHealthStatus github.com/microsoftgraph/msgraph-sdk-go/.models.security.sensor::|public|GetOpenHealthIssuesCount():*int64 github.com/microsoftgraph/msgraph-sdk-go/.models.security.sensor::|public|GetSensorType():*SensorType +github.com/microsoftgraph/msgraph-sdk-go/.models.security.sensor::|public|GetServiceStatus():*ServiceStatus github.com/microsoftgraph/msgraph-sdk-go/.models.security.sensor::|public|GetSettings():SensorSettingsable github.com/microsoftgraph/msgraph-sdk-go/.models.security.sensor::|public|GetVersion():*string github.com/microsoftgraph/msgraph-sdk-go/.models.security.sensor::|public|OdataType:*string @@ -177348,6 +177393,7 @@ github.com/microsoftgraph/msgraph-sdk-go/.models.security.sensor::|public|SetHea github.com/microsoftgraph/msgraph-sdk-go/.models.security.sensor::|public|SetHealthStatus(value:*SensorHealthStatus):void github.com/microsoftgraph/msgraph-sdk-go/.models.security.sensor::|public|SetOpenHealthIssuesCount(value:*int64):void github.com/microsoftgraph/msgraph-sdk-go/.models.security.sensor::|public|SetSensorType(value:*SensorType):void +github.com/microsoftgraph/msgraph-sdk-go/.models.security.sensor::|public|SetServiceStatus(value:*ServiceStatus):void github.com/microsoftgraph/msgraph-sdk-go/.models.security.sensor::|public|SetSettings(value:SensorSettingsable):void github.com/microsoftgraph/msgraph-sdk-go/.models.security.sensor::|public|SetVersion(value:*string):void github.com/microsoftgraph/msgraph-sdk-go/.models.security.sensor::|static|public|CreateFromDiscriminatorValue(parseNode:ParseNode):Parsable @@ -177359,6 +177405,7 @@ github.com/microsoftgraph/msgraph-sdk-go/.models.security.sensorable::|public|Ge github.com/microsoftgraph/msgraph-sdk-go/.models.security.sensorable::|public|GetHealthStatus():*SensorHealthStatus github.com/microsoftgraph/msgraph-sdk-go/.models.security.sensorable::|public|GetOpenHealthIssuesCount():*int64 github.com/microsoftgraph/msgraph-sdk-go/.models.security.sensorable::|public|GetSensorType():*SensorType +github.com/microsoftgraph/msgraph-sdk-go/.models.security.sensorable::|public|GetServiceStatus():*ServiceStatus github.com/microsoftgraph/msgraph-sdk-go/.models.security.sensorable::|public|GetSettings():SensorSettingsable github.com/microsoftgraph/msgraph-sdk-go/.models.security.sensorable::|public|GetVersion():*string github.com/microsoftgraph/msgraph-sdk-go/.models.security.sensorable::|public|SetCreatedDateTime(value:*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time):void @@ -177369,25 +177416,30 @@ github.com/microsoftgraph/msgraph-sdk-go/.models.security.sensorable::|public|Se github.com/microsoftgraph/msgraph-sdk-go/.models.security.sensorable::|public|SetHealthStatus(value:*SensorHealthStatus):void github.com/microsoftgraph/msgraph-sdk-go/.models.security.sensorable::|public|SetOpenHealthIssuesCount(value:*int64):void github.com/microsoftgraph/msgraph-sdk-go/.models.security.sensorable::|public|SetSensorType(value:*SensorType):void +github.com/microsoftgraph/msgraph-sdk-go/.models.security.sensorable::|public|SetServiceStatus(value:*ServiceStatus):void github.com/microsoftgraph/msgraph-sdk-go/.models.security.sensorable::|public|SetSettings(value:SensorSettingsable):void github.com/microsoftgraph/msgraph-sdk-go/.models.security.sensorable::|public|SetVersion(value:*string):void github.com/microsoftgraph/msgraph-sdk-go/.models.security.sensorable~~>iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Entityable; *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable github.com/microsoftgraph/msgraph-sdk-go/.models.security.sensorCandidate-->*iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Entity github.com/microsoftgraph/msgraph-sdk-go/.models.security.sensorCandidate::|public|constructor():void github.com/microsoftgraph/msgraph-sdk-go/.models.security.sensorCandidate::|public|GetComputerDnsName():*string +github.com/microsoftgraph/msgraph-sdk-go/.models.security.sensorCandidate::|public|GetDomainName():*string github.com/microsoftgraph/msgraph-sdk-go/.models.security.sensorCandidate::|public|getFieldDeserializers():map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) github.com/microsoftgraph/msgraph-sdk-go/.models.security.sensorCandidate::|public|GetLastSeenDateTime():*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time github.com/microsoftgraph/msgraph-sdk-go/.models.security.sensorCandidate::|public|GetSenseClientVersion():*string github.com/microsoftgraph/msgraph-sdk-go/.models.security.sensorCandidate::|public|OdataType:*string github.com/microsoftgraph/msgraph-sdk-go/.models.security.sensorCandidate::|public|Serialize(writer:SerializationWriter):void github.com/microsoftgraph/msgraph-sdk-go/.models.security.sensorCandidate::|public|SetComputerDnsName(value:*string):void +github.com/microsoftgraph/msgraph-sdk-go/.models.security.sensorCandidate::|public|SetDomainName(value:*string):void github.com/microsoftgraph/msgraph-sdk-go/.models.security.sensorCandidate::|public|SetLastSeenDateTime(value:*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time):void github.com/microsoftgraph/msgraph-sdk-go/.models.security.sensorCandidate::|public|SetSenseClientVersion(value:*string):void github.com/microsoftgraph/msgraph-sdk-go/.models.security.sensorCandidate::|static|public|CreateFromDiscriminatorValue(parseNode:ParseNode):Parsable github.com/microsoftgraph/msgraph-sdk-go/.models.security.sensorCandidateable::|public|GetComputerDnsName():*string +github.com/microsoftgraph/msgraph-sdk-go/.models.security.sensorCandidateable::|public|GetDomainName():*string github.com/microsoftgraph/msgraph-sdk-go/.models.security.sensorCandidateable::|public|GetLastSeenDateTime():*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time github.com/microsoftgraph/msgraph-sdk-go/.models.security.sensorCandidateable::|public|GetSenseClientVersion():*string github.com/microsoftgraph/msgraph-sdk-go/.models.security.sensorCandidateable::|public|SetComputerDnsName(value:*string):void +github.com/microsoftgraph/msgraph-sdk-go/.models.security.sensorCandidateable::|public|SetDomainName(value:*string):void github.com/microsoftgraph/msgraph-sdk-go/.models.security.sensorCandidateable::|public|SetLastSeenDateTime(value:*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time):void github.com/microsoftgraph/msgraph-sdk-go/.models.security.sensorCandidateable::|public|SetSenseClientVersion(value:*string):void github.com/microsoftgraph/msgraph-sdk-go/.models.security.sensorCandidateable~~>iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Entityable; *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable @@ -177542,6 +177594,13 @@ github.com/microsoftgraph/msgraph-sdk-go/.models.security.serviceSource::0010-mi github.com/microsoftgraph/msgraph-sdk-go/.models.security.serviceSource::0011-microsoftSentinel github.com/microsoftgraph/msgraph-sdk-go/.models.security.serviceSource::0012-microsoftInsiderRiskManagement github.com/microsoftgraph/msgraph-sdk-go/.models.security.serviceSource::0013-microsoftThreatIntelligence +github.com/microsoftgraph/msgraph-sdk-go/.models.security.serviceStatus::0000-stopped +github.com/microsoftgraph/msgraph-sdk-go/.models.security.serviceStatus::0001-starting +github.com/microsoftgraph/msgraph-sdk-go/.models.security.serviceStatus::0002-running +github.com/microsoftgraph/msgraph-sdk-go/.models.security.serviceStatus::0003-disabled +github.com/microsoftgraph/msgraph-sdk-go/.models.security.serviceStatus::0004-onboarding +github.com/microsoftgraph/msgraph-sdk-go/.models.security.serviceStatus::0005-unknown +github.com/microsoftgraph/msgraph-sdk-go/.models.security.serviceStatus::0006-unknownFutureValue github.com/microsoftgraph/msgraph-sdk-go/.models.security.singlePropertySchema::|public|constructor():void github.com/microsoftgraph/msgraph-sdk-go/.models.security.singlePropertySchema::|public|GetAdditionalData():map[string]any github.com/microsoftgraph/msgraph-sdk-go/.models.security.singlePropertySchema::|public|GetBackingStore():BackingStore diff --git a/kiota-lock.json b/kiota-lock.json index 2e3d90f101..688ad4772d 100644 --- a/kiota-lock.json +++ b/kiota-lock.json @@ -1,5 +1,5 @@ { - "descriptionHash": "B772231A114EE0F151C5CAD415592E6EC30B995AF2CC2035B656C76E0001C925D96ED0F43B5BE31AF65452F62E25448AB3A19A7FBECB1096C50BCB71D40F0E49", + "descriptionHash": "B02CED4D519DAD7AEE3434A50C96EA210737F35497DEDEB8E7604CCBC9B0E4C9C9387FBD5AA8BDCD61AF3F723790969091A25F0BB6E7AF2D2ED117718910B5FC", "descriptionLocation": "../../msgraph-metadata/clean_v10_openapi/openapi.yaml", "lockFileVersion": "1.0.0", "kiotaVersion": "1.30.0", diff --git a/models/protection_policy_artifact_count.go b/models/protection_policy_artifact_count.go new file mode 100644 index 0000000000..8504d3cef9 --- /dev/null +++ b/models/protection_policy_artifact_count.go @@ -0,0 +1,264 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ProtectionPolicyArtifactCount struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewProtectionPolicyArtifactCount instantiates a new ProtectionPolicyArtifactCount and sets the default values. +func NewProtectionPolicyArtifactCount()(*ProtectionPolicyArtifactCount) { + m := &ProtectionPolicyArtifactCount{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateProtectionPolicyArtifactCountFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateProtectionPolicyArtifactCountFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewProtectionPolicyArtifactCount(), 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. +// returns a map[string]any when successful +func (m *ProtectionPolicyArtifactCount) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ProtectionPolicyArtifactCount) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetCompleted gets the completed property value. The completed property +// returns a *int32 when successful +func (m *ProtectionPolicyArtifactCount) GetCompleted()(*int32) { + val, err := m.GetBackingStore().Get("completed") + if err != nil { + panic(err) + } + if val != nil { + return val.(*int32) + } + return nil +} +// GetFailed gets the failed property value. The failed property +// returns a *int32 when successful +func (m *ProtectionPolicyArtifactCount) GetFailed()(*int32) { + val, err := m.GetBackingStore().Get("failed") + if err != nil { + panic(err) + } + if val != nil { + return val.(*int32) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ProtectionPolicyArtifactCount) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["completed"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetCompleted(val) + } + return nil + } + res["failed"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetFailed(val) + } + return nil + } + res["inProgress"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetInProgress(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["total"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetTotal(val) + } + return nil + } + return res +} +// GetInProgress gets the inProgress property value. The inProgress property +// returns a *int32 when successful +func (m *ProtectionPolicyArtifactCount) GetInProgress()(*int32) { + val, err := m.GetBackingStore().Get("inProgress") + if err != nil { + panic(err) + } + if val != nil { + return val.(*int32) + } + return nil +} +// GetOdataType gets the @odata.type property value. The OdataType property +// returns a *string when successful +func (m *ProtectionPolicyArtifactCount) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetTotal gets the total property value. The total property +// returns a *int32 when successful +func (m *ProtectionPolicyArtifactCount) GetTotal()(*int32) { + val, err := m.GetBackingStore().Get("total") + if err != nil { + panic(err) + } + if val != nil { + return val.(*int32) + } + return nil +} +// Serialize serializes information the current object +func (m *ProtectionPolicyArtifactCount) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteInt32Value("completed", m.GetCompleted()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("failed", m.GetFailed()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("inProgress", m.GetInProgress()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("total", m.GetTotal()) + 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 *ProtectionPolicyArtifactCount) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ProtectionPolicyArtifactCount) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetCompleted sets the completed property value. The completed property +func (m *ProtectionPolicyArtifactCount) SetCompleted(value *int32)() { + err := m.GetBackingStore().Set("completed", value) + if err != nil { + panic(err) + } +} +// SetFailed sets the failed property value. The failed property +func (m *ProtectionPolicyArtifactCount) SetFailed(value *int32)() { + err := m.GetBackingStore().Set("failed", value) + if err != nil { + panic(err) + } +} +// SetInProgress sets the inProgress property value. The inProgress property +func (m *ProtectionPolicyArtifactCount) SetInProgress(value *int32)() { + err := m.GetBackingStore().Set("inProgress", value) + if err != nil { + panic(err) + } +} +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *ProtectionPolicyArtifactCount) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} +// SetTotal sets the total property value. The total property +func (m *ProtectionPolicyArtifactCount) SetTotal(value *int32)() { + err := m.GetBackingStore().Set("total", value) + if err != nil { + panic(err) + } +} +type ProtectionPolicyArtifactCountable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetCompleted()(*int32) + GetFailed()(*int32) + GetInProgress()(*int32) + GetOdataType()(*string) + GetTotal()(*int32) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetCompleted(value *int32)() + SetFailed(value *int32)() + SetInProgress(value *int32)() + SetOdataType(value *string)() + SetTotal(value *int32)() +} diff --git a/models/protection_policy_base.go b/models/protection_policy_base.go index 4b1dbb49d3..fee9faf411 100644 --- a/models/protection_policy_base.go +++ b/models/protection_policy_base.go @@ -115,6 +115,16 @@ func (m *ProtectionPolicyBase) GetFieldDeserializers()(map[string]func(i878a80d2 } return nil } + res["isEnabled"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetIsEnabled(val) + } + return nil + } res["lastModifiedBy"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetObjectValue(CreateIdentitySetFromDiscriminatorValue) if err != nil { @@ -135,6 +145,16 @@ func (m *ProtectionPolicyBase) GetFieldDeserializers()(map[string]func(i878a80d2 } return nil } + res["protectionPolicyArtifactCount"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateProtectionPolicyArtifactCountFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetProtectionPolicyArtifactCount(val.(ProtectionPolicyArtifactCountable)) + } + return nil + } res["retentionSettings"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetCollectionOfObjectValues(CreateRetentionSettingFromDiscriminatorValue) if err != nil { @@ -163,6 +183,18 @@ func (m *ProtectionPolicyBase) GetFieldDeserializers()(map[string]func(i878a80d2 } return res } +// GetIsEnabled gets the isEnabled property value. The isEnabled property +// returns a *bool when successful +func (m *ProtectionPolicyBase) GetIsEnabled()(*bool) { + val, err := m.GetBackingStore().Get("isEnabled") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} // GetLastModifiedBy gets the lastModifiedBy property value. The identity of the person who last modified the policy. // returns a IdentitySetable when successful func (m *ProtectionPolicyBase) GetLastModifiedBy()(IdentitySetable) { @@ -187,6 +219,18 @@ func (m *ProtectionPolicyBase) GetLastModifiedDateTime()(*i336074805fc853987abe6 } return nil } +// GetProtectionPolicyArtifactCount gets the protectionPolicyArtifactCount property value. The protectionPolicyArtifactCount property +// returns a ProtectionPolicyArtifactCountable when successful +func (m *ProtectionPolicyBase) GetProtectionPolicyArtifactCount()(ProtectionPolicyArtifactCountable) { + val, err := m.GetBackingStore().Get("protectionPolicyArtifactCount") + if err != nil { + panic(err) + } + if val != nil { + return val.(ProtectionPolicyArtifactCountable) + } + return nil +} // GetRetentionSettings gets the retentionSettings property value. Contains the retention setting details for the policy. // returns a []RetentionSettingable when successful func (m *ProtectionPolicyBase) GetRetentionSettings()([]RetentionSettingable) { @@ -235,6 +279,12 @@ func (m *ProtectionPolicyBase) Serialize(writer i878a80d2330e89d26896388a3f487ee return err } } + { + err = writer.WriteBoolValue("isEnabled", m.GetIsEnabled()) + if err != nil { + return err + } + } { err = writer.WriteObjectValue("lastModifiedBy", m.GetLastModifiedBy()) if err != nil { @@ -247,6 +297,12 @@ func (m *ProtectionPolicyBase) Serialize(writer i878a80d2330e89d26896388a3f487ee return err } } + { + err = writer.WriteObjectValue("protectionPolicyArtifactCount", m.GetProtectionPolicyArtifactCount()) + if err != nil { + return err + } + } if m.GetRetentionSettings() != nil { cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetRetentionSettings())) for i, v := range m.GetRetentionSettings() { @@ -289,6 +345,13 @@ func (m *ProtectionPolicyBase) SetDisplayName(value *string)() { panic(err) } } +// SetIsEnabled sets the isEnabled property value. The isEnabled property +func (m *ProtectionPolicyBase) SetIsEnabled(value *bool)() { + err := m.GetBackingStore().Set("isEnabled", value) + if err != nil { + panic(err) + } +} // SetLastModifiedBy sets the lastModifiedBy property value. The identity of the person who last modified the policy. func (m *ProtectionPolicyBase) SetLastModifiedBy(value IdentitySetable)() { err := m.GetBackingStore().Set("lastModifiedBy", value) @@ -303,6 +366,13 @@ func (m *ProtectionPolicyBase) SetLastModifiedDateTime(value *i336074805fc853987 panic(err) } } +// SetProtectionPolicyArtifactCount sets the protectionPolicyArtifactCount property value. The protectionPolicyArtifactCount property +func (m *ProtectionPolicyBase) SetProtectionPolicyArtifactCount(value ProtectionPolicyArtifactCountable)() { + err := m.GetBackingStore().Set("protectionPolicyArtifactCount", value) + if err != nil { + panic(err) + } +} // SetRetentionSettings sets the retentionSettings property value. Contains the retention setting details for the policy. func (m *ProtectionPolicyBase) SetRetentionSettings(value []RetentionSettingable)() { err := m.GetBackingStore().Set("retentionSettings", value) @@ -323,15 +393,19 @@ type ProtectionPolicyBaseable interface { GetCreatedBy()(IdentitySetable) GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetDisplayName()(*string) + GetIsEnabled()(*bool) GetLastModifiedBy()(IdentitySetable) GetLastModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetProtectionPolicyArtifactCount()(ProtectionPolicyArtifactCountable) GetRetentionSettings()([]RetentionSettingable) GetStatus()(*ProtectionPolicyStatus) SetCreatedBy(value IdentitySetable)() SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetDisplayName(value *string)() + SetIsEnabled(value *bool)() SetLastModifiedBy(value IdentitySetable)() SetLastModifiedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetProtectionPolicyArtifactCount(value ProtectionPolicyArtifactCountable)() SetRetentionSettings(value []RetentionSettingable)() SetStatus(value *ProtectionPolicyStatus)() } diff --git a/models/security/alert.go b/models/security/alert.go index 7c200c59f2..321afe471a 100644 --- a/models/security/alert.go +++ b/models/security/alert.go @@ -156,7 +156,7 @@ func (m *Alert) GetDescription()(*string) { } return nil } -// GetDetectionSource gets the detectionSource property value. Detection technology or sensor that identified the notable component or activity. The possible values are: unknown, microsoftDefenderForEndpoint, antivirus, smartScreen, customTi, microsoftDefenderForOffice365, automatedInvestigation, microsoftThreatExperts, customDetection, microsoftDefenderForIdentity, cloudAppSecurity, microsoft365Defender, azureAdIdentityProtection, manual, microsoftDataLossPrevention, appGovernancePolicy, appGovernanceDetection, unknownFutureValue, microsoftDefenderForCloud, microsoftDefenderForIoT, microsoftDefenderForServers, microsoftDefenderForStorage, microsoftDefenderForDNS, microsoftDefenderForDatabases, microsoftDefenderForContainers, microsoftDefenderForNetwork, microsoftDefenderForAppService, microsoftDefenderForKeyVault, microsoftDefenderForResourceManager, microsoftDefenderForApiManagement, microsoftSentinel, nrtAlerts, scheduledAlerts, microsoftDefenderThreatIntelligenceAnalytics, builtInMl, microsoftThreatIntelligence, microsoftDefenderForAIServices, securityCopilot. Use the Prefer: include-unknown-enum-members request header to get the following values in this evolvable enum: microsoftDefenderForCloud, microsoftDefenderForIoT, microsoftDefenderForServers, microsoftDefenderForStorage, microsoftDefenderForDNS, microsoftDefenderForDatabases, microsoftDefenderForContainers, microsoftDefenderForNetwork, microsoftDefenderForAppService, microsoftDefenderForKeyVault, microsoftDefenderForResourceManager, microsoftDefenderForApiManagement, microsoftSentinel, nrtAlerts, scheduledAlerts, microsoftDefenderThreatIntelligenceAnalytics, builtInMl, microsoftThreatIntelligence, microsoftDefenderForAIServices, securityCopilot. +// GetDetectionSource gets the detectionSource property value. Detection technology or sensor that identified the notable component or activity. // returns a *DetectionSource when successful func (m *Alert) GetDetectionSource()(*DetectionSource) { val, err := m.GetBackingStore().Get("detectionSource") @@ -1110,7 +1110,7 @@ func (m *Alert) SetDescription(value *string)() { panic(err) } } -// SetDetectionSource sets the detectionSource property value. Detection technology or sensor that identified the notable component or activity. The possible values are: unknown, microsoftDefenderForEndpoint, antivirus, smartScreen, customTi, microsoftDefenderForOffice365, automatedInvestigation, microsoftThreatExperts, customDetection, microsoftDefenderForIdentity, cloudAppSecurity, microsoft365Defender, azureAdIdentityProtection, manual, microsoftDataLossPrevention, appGovernancePolicy, appGovernanceDetection, unknownFutureValue, microsoftDefenderForCloud, microsoftDefenderForIoT, microsoftDefenderForServers, microsoftDefenderForStorage, microsoftDefenderForDNS, microsoftDefenderForDatabases, microsoftDefenderForContainers, microsoftDefenderForNetwork, microsoftDefenderForAppService, microsoftDefenderForKeyVault, microsoftDefenderForResourceManager, microsoftDefenderForApiManagement, microsoftSentinel, nrtAlerts, scheduledAlerts, microsoftDefenderThreatIntelligenceAnalytics, builtInMl, microsoftThreatIntelligence, microsoftDefenderForAIServices, securityCopilot. Use the Prefer: include-unknown-enum-members request header to get the following values in this evolvable enum: microsoftDefenderForCloud, microsoftDefenderForIoT, microsoftDefenderForServers, microsoftDefenderForStorage, microsoftDefenderForDNS, microsoftDefenderForDatabases, microsoftDefenderForContainers, microsoftDefenderForNetwork, microsoftDefenderForAppService, microsoftDefenderForKeyVault, microsoftDefenderForResourceManager, microsoftDefenderForApiManagement, microsoftSentinel, nrtAlerts, scheduledAlerts, microsoftDefenderThreatIntelligenceAnalytics, builtInMl, microsoftThreatIntelligence, microsoftDefenderForAIServices, securityCopilot. +// SetDetectionSource sets the detectionSource property value. Detection technology or sensor that identified the notable component or activity. func (m *Alert) SetDetectionSource(value *DetectionSource)() { err := m.GetBackingStore().Set("detectionSource", value) if err != nil { diff --git a/models/security/incident.go b/models/security/incident.go index 4bcff330fd..610f5b7925 100644 --- a/models/security/incident.go +++ b/models/security/incident.go @@ -274,6 +274,16 @@ func (m *Incident) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896 } return nil } + res["priorityScore"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetPriorityScore(val) + } + return nil + } res["redirectIncidentId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -388,6 +398,18 @@ func (m *Incident) GetLastUpdateDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f } return nil } +// GetPriorityScore gets the priorityScore property value. The priorityScore property +// returns a *int32 when successful +func (m *Incident) GetPriorityScore()(*int32) { + val, err := m.GetBackingStore().Get("priorityScore") + if err != nil { + panic(err) + } + if val != nil { + return val.(*int32) + } + return nil +} // GetRedirectIncidentId gets the redirectIncidentId property value. Only populated in case an incident is grouped with another incident, as part of the logic that processes incidents. In such a case, the status property is redirected. // returns a *string when successful func (m *Incident) GetRedirectIncidentId()(*string) { @@ -564,6 +586,12 @@ func (m *Incident) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c01 return err } } + { + err = writer.WriteInt32Value("priorityScore", m.GetPriorityScore()) + if err != nil { + return err + } + } { err = writer.WriteStringValue("redirectIncidentId", m.GetRedirectIncidentId()) if err != nil { @@ -694,6 +722,13 @@ func (m *Incident) SetLastUpdateDateTime(value *i336074805fc853987abe6f7fe3ad97a panic(err) } } +// SetPriorityScore sets the priorityScore property value. The priorityScore property +func (m *Incident) SetPriorityScore(value *int32)() { + err := m.GetBackingStore().Set("priorityScore", value) + if err != nil { + panic(err) + } +} // SetRedirectIncidentId sets the redirectIncidentId property value. Only populated in case an incident is grouped with another incident, as part of the logic that processes incidents. In such a case, the status property is redirected. func (m *Incident) SetRedirectIncidentId(value *string)() { err := m.GetBackingStore().Set("redirectIncidentId", value) @@ -758,6 +793,7 @@ type Incidentable interface { GetIncidentWebUrl()(*string) GetLastModifiedBy()(*string) GetLastUpdateDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetPriorityScore()(*int32) GetRedirectIncidentId()(*string) GetResolvingComment()(*string) GetSeverity()(*AlertSeverity) @@ -777,6 +813,7 @@ type Incidentable interface { SetIncidentWebUrl(value *string)() SetLastModifiedBy(value *string)() SetLastUpdateDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetPriorityScore(value *int32)() SetRedirectIncidentId(value *string)() SetResolvingComment(value *string)() SetSeverity(value *AlertSeverity)() diff --git a/models/security/sensor.go b/models/security/sensor.go index ab97a48d88..910411522b 100644 --- a/models/security/sensor.go +++ b/models/security/sensor.go @@ -162,6 +162,16 @@ func (m *Sensor) GetFieldDeserializers()(map[string]func(i878a80d2330e89d2689638 } return nil } + res["serviceStatus"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseServiceStatus) + if err != nil { + return err + } + if val != nil { + m.SetServiceStatus(val.(*ServiceStatus)) + } + return nil + } res["settings"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetObjectValue(CreateSensorSettingsFromDiscriminatorValue) if err != nil { @@ -232,6 +242,18 @@ func (m *Sensor) GetSensorType()(*SensorType) { } return nil } +// GetServiceStatus gets the serviceStatus property value. The serviceStatus property +// returns a *ServiceStatus when successful +func (m *Sensor) GetServiceStatus()(*ServiceStatus) { + val, err := m.GetBackingStore().Get("serviceStatus") + if err != nil { + panic(err) + } + if val != nil { + return val.(*ServiceStatus) + } + return nil +} // GetSettings gets the settings property value. The settings property // returns a SensorSettingsable when successful func (m *Sensor) GetSettings()(SensorSettingsable) { @@ -319,6 +341,13 @@ func (m *Sensor) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c return err } } + if m.GetServiceStatus() != nil { + cast := (*m.GetServiceStatus()).String() + err = writer.WriteStringValue("serviceStatus", &cast) + if err != nil { + return err + } + } { err = writer.WriteObjectValue("settings", m.GetSettings()) if err != nil { @@ -389,6 +418,13 @@ func (m *Sensor) SetSensorType(value *SensorType)() { panic(err) } } +// SetServiceStatus sets the serviceStatus property value. The serviceStatus property +func (m *Sensor) SetServiceStatus(value *ServiceStatus)() { + err := m.GetBackingStore().Set("serviceStatus", value) + if err != nil { + panic(err) + } +} // SetSettings sets the settings property value. The settings property func (m *Sensor) SetSettings(value SensorSettingsable)() { err := m.GetBackingStore().Set("settings", value) @@ -414,6 +450,7 @@ type Sensorable interface { GetHealthStatus()(*SensorHealthStatus) GetOpenHealthIssuesCount()(*int64) GetSensorType()(*SensorType) + GetServiceStatus()(*ServiceStatus) GetSettings()(SensorSettingsable) GetVersion()(*string) SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() @@ -424,6 +461,7 @@ type Sensorable interface { SetHealthStatus(value *SensorHealthStatus)() SetOpenHealthIssuesCount(value *int64)() SetSensorType(value *SensorType)() + SetServiceStatus(value *ServiceStatus)() SetSettings(value SensorSettingsable)() SetVersion(value *string)() } diff --git a/models/security/sensor_candidate.go b/models/security/sensor_candidate.go index 2836dc21aa..d305b7375f 100644 --- a/models/security/sensor_candidate.go +++ b/models/security/sensor_candidate.go @@ -36,6 +36,18 @@ func (m *SensorCandidate) GetComputerDnsName()(*string) { } return nil } +// GetDomainName gets the domainName property value. The domain name of the sensor. +// returns a *string when successful +func (m *SensorCandidate) GetDomainName()(*string) { + val, err := m.GetBackingStore().Get("domainName") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetFieldDeserializers the deserialization information for the current model // returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful func (m *SensorCandidate) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { @@ -50,6 +62,16 @@ func (m *SensorCandidate) GetFieldDeserializers()(map[string]func(i878a80d2330e8 } return nil } + res["domainName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDomainName(val) + } + return nil + } res["lastSeenDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetTimeValue() if err != nil { @@ -108,6 +130,12 @@ func (m *SensorCandidate) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0 return err } } + { + err = writer.WriteStringValue("domainName", m.GetDomainName()) + if err != nil { + return err + } + } { err = writer.WriteTimeValue("lastSeenDateTime", m.GetLastSeenDateTime()) if err != nil { @@ -129,6 +157,13 @@ func (m *SensorCandidate) SetComputerDnsName(value *string)() { panic(err) } } +// SetDomainName sets the domainName property value. The domain name of the sensor. +func (m *SensorCandidate) SetDomainName(value *string)() { + err := m.GetBackingStore().Set("domainName", value) + if err != nil { + panic(err) + } +} // SetLastSeenDateTime sets the lastSeenDateTime property value. The date and time when the sensor was last seen. func (m *SensorCandidate) SetLastSeenDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { err := m.GetBackingStore().Set("lastSeenDateTime", value) @@ -147,9 +182,11 @@ type SensorCandidateable interface { iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Entityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetComputerDnsName()(*string) + GetDomainName()(*string) GetLastSeenDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetSenseClientVersion()(*string) SetComputerDnsName(value *string)() + SetDomainName(value *string)() SetLastSeenDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetSenseClientVersion(value *string)() } diff --git a/models/security/service_status.go b/models/security/service_status.go new file mode 100644 index 0000000000..bbc5f35222 --- /dev/null +++ b/models/security/service_status.go @@ -0,0 +1,51 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package security +type ServiceStatus int + +const ( + STOPPED_SERVICESTATUS ServiceStatus = iota + STARTING_SERVICESTATUS + RUNNING_SERVICESTATUS + DISABLED_SERVICESTATUS + ONBOARDING_SERVICESTATUS + UNKNOWN_SERVICESTATUS + UNKNOWNFUTUREVALUE_SERVICESTATUS +) + +func (i ServiceStatus) String() string { + return []string{"stopped", "starting", "running", "disabled", "onboarding", "unknown", "unknownFutureValue"}[i] +} +func ParseServiceStatus(v string) (any, error) { + result := STOPPED_SERVICESTATUS + switch v { + case "stopped": + result = STOPPED_SERVICESTATUS + case "starting": + result = STARTING_SERVICESTATUS + case "running": + result = RUNNING_SERVICESTATUS + case "disabled": + result = DISABLED_SERVICESTATUS + case "onboarding": + result = ONBOARDING_SERVICESTATUS + case "unknown": + result = UNKNOWN_SERVICESTATUS + case "unknownFutureValue": + result = UNKNOWNFUTUREVALUE_SERVICESTATUS + default: + return nil, nil + } + return &result, nil +} +func SerializeServiceStatus(values []ServiceStatus) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i ServiceStatus) isMultiValue() bool { + return false +} diff --git a/models/service_principal.go b/models/service_principal.go index 93cc6e9185..535b6102ca 100644 --- a/models/service_principal.go +++ b/models/service_principal.go @@ -1229,7 +1229,7 @@ func (m *ServicePrincipal) GetServicePrincipalNames()([]string) { } return nil } -// GetServicePrincipalType gets the servicePrincipalType property value. Identifies whether the service principal represents an application, a managed identity, or a legacy application. This is set by Microsoft Entra ID internally. The servicePrincipalType property can be set to three different values: Application - A service principal that represents an application or service. The appId property identifies the associated app registration, and matches the appId of an application, possibly from a different tenant. If the associated app registration is missing, tokens aren't issued for the service principal.ManagedIdentity - A service principal that represents a managed identity. Service principals representing managed identities can be granted access and permissions, but can't be updated or modified directly.Legacy - A service principal that represents an app created before app registrations, or through legacy experiences. A legacy service principal can have credentials, service principal names, reply URLs, and other properties that are editable by an authorized user, but doesn't have an associated app registration. The appId value doesn't associate the service principal with an app registration. The service principal can only be used in the tenant where it was created.SocialIdp - For internal use. +// GetServicePrincipalType gets the servicePrincipalType property value. Identifies whether the service principal represents an application, a managed identity, or a legacy application. This property is set by Microsoft Entra ID internally. The servicePrincipalType property can be set to three different values: Application - A service principal that represents an application or service. The appId property identifies the associated app registration, and matches the appId of an application, possibly from a different tenant. If the associated app registration is missing, tokens aren't issued for the service principal.ManagedIdentity - A service principal that represents a managed identity. Service principals representing managed identities can be granted access and permissions, but can't be updated or modified directly.Legacy - A service principal that represents an app created before app registrations, or through legacy experiences. A legacy service principal can have credentials, service principal names, reply URLs, and other properties that are editable by an authorized user, but doesn't have an associated app registration. The appId value doesn't associate the service principal with an app registration. The service principal can only be used in the tenant where it was created.ServiceIdentity - A service principal that represents an agent identity.SocialIdp - For internal use. // returns a *string when successful func (m *ServicePrincipal) GetServicePrincipalType()(*string) { val, err := m.GetBackingStore().Get("servicePrincipalType") @@ -2090,7 +2090,7 @@ func (m *ServicePrincipal) SetServicePrincipalNames(value []string)() { panic(err) } } -// SetServicePrincipalType sets the servicePrincipalType property value. Identifies whether the service principal represents an application, a managed identity, or a legacy application. This is set by Microsoft Entra ID internally. The servicePrincipalType property can be set to three different values: Application - A service principal that represents an application or service. The appId property identifies the associated app registration, and matches the appId of an application, possibly from a different tenant. If the associated app registration is missing, tokens aren't issued for the service principal.ManagedIdentity - A service principal that represents a managed identity. Service principals representing managed identities can be granted access and permissions, but can't be updated or modified directly.Legacy - A service principal that represents an app created before app registrations, or through legacy experiences. A legacy service principal can have credentials, service principal names, reply URLs, and other properties that are editable by an authorized user, but doesn't have an associated app registration. The appId value doesn't associate the service principal with an app registration. The service principal can only be used in the tenant where it was created.SocialIdp - For internal use. +// SetServicePrincipalType sets the servicePrincipalType property value. Identifies whether the service principal represents an application, a managed identity, or a legacy application. This property is set by Microsoft Entra ID internally. The servicePrincipalType property can be set to three different values: Application - A service principal that represents an application or service. The appId property identifies the associated app registration, and matches the appId of an application, possibly from a different tenant. If the associated app registration is missing, tokens aren't issued for the service principal.ManagedIdentity - A service principal that represents a managed identity. Service principals representing managed identities can be granted access and permissions, but can't be updated or modified directly.Legacy - A service principal that represents an app created before app registrations, or through legacy experiences. A legacy service principal can have credentials, service principal names, reply URLs, and other properties that are editable by an authorized user, but doesn't have an associated app registration. The appId value doesn't associate the service principal with an app registration. The service principal can only be used in the tenant where it was created.ServiceIdentity - A service principal that represents an agent identity.SocialIdp - For internal use. func (m *ServicePrincipal) SetServicePrincipalType(value *string)() { err := m.GetBackingStore().Set("servicePrincipalType", value) if err != nil {