From 781d1dea320bdcd9b2a616db93917d224d0c9595 Mon Sep 17 00:00:00 2001 From: Microsoft Graph DevX Tooling Date: Thu, 22 Jan 2026 18:26:17 +0000 Subject: [PATCH] feat(generation): update request builders and models Update generated files with build 208109 --- .../graph/generated/kiota-dom-export.txt | 37 ++++ .../microsoft/graph/generated/kiota-lock.json | 2 +- .../models/ProtectionPolicyArtifactCount.java | 175 ++++++++++++++++++ .../models/ProtectionPolicyBase.java | 34 ++++ .../generated/models/ServicePrincipal.java | 4 +- .../generated/models/security/Alert.java | 4 +- .../generated/models/security/Incident.java | 17 ++ .../generated/models/security/Sensor.java | 17 ++ .../models/security/SensorCandidate.java | 17 ++ .../models/security/ServiceStatus.java | 35 ++++ 10 files changed, 337 insertions(+), 5 deletions(-) create mode 100644 src/main/java/com/microsoft/graph/generated/models/ProtectionPolicyArtifactCount.java create mode 100644 src/main/java/com/microsoft/graph/generated/models/security/ServiceStatus.java diff --git a/src/main/java/com/microsoft/graph/generated/kiota-dom-export.txt b/src/main/java/com/microsoft/graph/generated/kiota-dom-export.txt index 617000cf520..ed00a7552c1 100644 --- a/src/main/java/com/microsoft/graph/generated/kiota-dom-export.txt +++ b/src/main/java/com/microsoft/graph/generated/kiota-dom-export.txt @@ -141613,14 +141613,36 @@ com.microsoft.graph.models.ProtectedContent::|public|setLabelId(value?:String):v com.microsoft.graph.models.ProtectedContent::|public|setOdataType(value?:String):void com.microsoft.graph.models.ProtectedContent::|static|public|createFromDiscriminatorValue(parseNode:ParseNode):ProtectedContent com.microsoft.graph.models.ProtectedContent~~>AdditionalDataHolder; BackedModel; Parsable +com.microsoft.graph.models.ProtectionPolicyArtifactCount::|protected|backingStore:BackingStore +com.microsoft.graph.models.ProtectionPolicyArtifactCount::|public|constructor():void +com.microsoft.graph.models.ProtectionPolicyArtifactCount::|public|getAdditionalData():Map +com.microsoft.graph.models.ProtectionPolicyArtifactCount::|public|getBackingStore():BackingStore +com.microsoft.graph.models.ProtectionPolicyArtifactCount::|public|getCompleted():Integer +com.microsoft.graph.models.ProtectionPolicyArtifactCount::|public|getFailed():Integer +com.microsoft.graph.models.ProtectionPolicyArtifactCount::|public|getFieldDeserializers():Map> +com.microsoft.graph.models.ProtectionPolicyArtifactCount::|public|getInProgress():Integer +com.microsoft.graph.models.ProtectionPolicyArtifactCount::|public|getOdataType():String +com.microsoft.graph.models.ProtectionPolicyArtifactCount::|public|getTotal():Integer +com.microsoft.graph.models.ProtectionPolicyArtifactCount::|public|serialize(writer:SerializationWriter):Void +com.microsoft.graph.models.ProtectionPolicyArtifactCount::|public|setAdditionalData(value?:Map):void +com.microsoft.graph.models.ProtectionPolicyArtifactCount::|public|setBackingStore(value:BackingStore):void +com.microsoft.graph.models.ProtectionPolicyArtifactCount::|public|setCompleted(value?:Integer):void +com.microsoft.graph.models.ProtectionPolicyArtifactCount::|public|setFailed(value?:Integer):void +com.microsoft.graph.models.ProtectionPolicyArtifactCount::|public|setInProgress(value?:Integer):void +com.microsoft.graph.models.ProtectionPolicyArtifactCount::|public|setOdataType(value?:String):void +com.microsoft.graph.models.ProtectionPolicyArtifactCount::|public|setTotal(value?:Integer):void +com.microsoft.graph.models.ProtectionPolicyArtifactCount::|static|public|createFromDiscriminatorValue(parseNode:ParseNode):ProtectionPolicyArtifactCount +com.microsoft.graph.models.ProtectionPolicyArtifactCount~~>AdditionalDataHolder; BackedModel; Parsable com.microsoft.graph.models.ProtectionPolicyBase-->Entity com.microsoft.graph.models.ProtectionPolicyBase::|public|constructor():void com.microsoft.graph.models.ProtectionPolicyBase::|public|getCreatedBy():IdentitySet com.microsoft.graph.models.ProtectionPolicyBase::|public|getCreatedDateTime():OffsetDateTime com.microsoft.graph.models.ProtectionPolicyBase::|public|getDisplayName():String com.microsoft.graph.models.ProtectionPolicyBase::|public|getFieldDeserializers():Map> +com.microsoft.graph.models.ProtectionPolicyBase::|public|getIsEnabled():Boolean com.microsoft.graph.models.ProtectionPolicyBase::|public|getLastModifiedBy():IdentitySet com.microsoft.graph.models.ProtectionPolicyBase::|public|getLastModifiedDateTime():OffsetDateTime +com.microsoft.graph.models.ProtectionPolicyBase::|public|getProtectionPolicyArtifactCount():ProtectionPolicyArtifactCount com.microsoft.graph.models.ProtectionPolicyBase::|public|getRetentionSettings():java.util.List com.microsoft.graph.models.ProtectionPolicyBase::|public|getStatus():ProtectionPolicyStatus com.microsoft.graph.models.ProtectionPolicyBase::|public|OdataType:String @@ -141628,8 +141650,10 @@ com.microsoft.graph.models.ProtectionPolicyBase::|public|serialize(writer:Serial com.microsoft.graph.models.ProtectionPolicyBase::|public|setCreatedBy(value?:IdentitySet):void com.microsoft.graph.models.ProtectionPolicyBase::|public|setCreatedDateTime(value?:OffsetDateTime):void com.microsoft.graph.models.ProtectionPolicyBase::|public|setDisplayName(value?:String):void +com.microsoft.graph.models.ProtectionPolicyBase::|public|setIsEnabled(value?:Boolean):void com.microsoft.graph.models.ProtectionPolicyBase::|public|setLastModifiedBy(value?:IdentitySet):void com.microsoft.graph.models.ProtectionPolicyBase::|public|setLastModifiedDateTime(value?:OffsetDateTime):void +com.microsoft.graph.models.ProtectionPolicyBase::|public|setProtectionPolicyArtifactCount(value?:ProtectionPolicyArtifactCount):void com.microsoft.graph.models.ProtectionPolicyBase::|public|setRetentionSettings(value?:java.util.List):void com.microsoft.graph.models.ProtectionPolicyBase::|public|setStatus(value?:ProtectionPolicyStatus):void com.microsoft.graph.models.ProtectionPolicyBase::|static|public|createFromDiscriminatorValue(parseNode:ParseNode):ProtectionPolicyBase @@ -147196,6 +147220,7 @@ com.microsoft.graph.models.security.Incident::|public|getFieldDeserializers():Ma com.microsoft.graph.models.security.Incident::|public|getIncidentWebUrl():String com.microsoft.graph.models.security.Incident::|public|getLastModifiedBy():String com.microsoft.graph.models.security.Incident::|public|getLastUpdateDateTime():OffsetDateTime +com.microsoft.graph.models.security.Incident::|public|getPriorityScore():Integer com.microsoft.graph.models.security.Incident::|public|getRedirectIncidentId():String com.microsoft.graph.models.security.Incident::|public|getResolvingComment():String com.microsoft.graph.models.security.Incident::|public|getSeverity():AlertSeverity @@ -147217,6 +147242,7 @@ com.microsoft.graph.models.security.Incident::|public|setDisplayName(value?:Stri com.microsoft.graph.models.security.Incident::|public|setIncidentWebUrl(value?:String):void com.microsoft.graph.models.security.Incident::|public|setLastModifiedBy(value?:String):void com.microsoft.graph.models.security.Incident::|public|setLastUpdateDateTime(value?:OffsetDateTime):void +com.microsoft.graph.models.security.Incident::|public|setPriorityScore(value?:Integer):void com.microsoft.graph.models.security.Incident::|public|setRedirectIncidentId(value?:String):void com.microsoft.graph.models.security.Incident::|public|setResolvingComment(value?:String):void com.microsoft.graph.models.security.Incident::|public|setSeverity(value?:AlertSeverity):void @@ -148165,6 +148191,7 @@ com.microsoft.graph.models.security.Sensor::|public|getHealthIssues():java.util. com.microsoft.graph.models.security.Sensor::|public|getHealthStatus():SensorHealthStatus com.microsoft.graph.models.security.Sensor::|public|getOpenHealthIssuesCount():Long com.microsoft.graph.models.security.Sensor::|public|getSensorType():SensorType +com.microsoft.graph.models.security.Sensor::|public|getServiceStatus():ServiceStatus com.microsoft.graph.models.security.Sensor::|public|getSettings():SensorSettings com.microsoft.graph.models.security.Sensor::|public|getVersion():String com.microsoft.graph.models.security.Sensor::|public|OdataType:String @@ -148177,18 +148204,21 @@ com.microsoft.graph.models.security.Sensor::|public|setHealthIssues(value?:java. com.microsoft.graph.models.security.Sensor::|public|setHealthStatus(value?:SensorHealthStatus):void com.microsoft.graph.models.security.Sensor::|public|setOpenHealthIssuesCount(value?:Long):void com.microsoft.graph.models.security.Sensor::|public|setSensorType(value?:SensorType):void +com.microsoft.graph.models.security.Sensor::|public|setServiceStatus(value?:ServiceStatus):void com.microsoft.graph.models.security.Sensor::|public|setSettings(value?:SensorSettings):void com.microsoft.graph.models.security.Sensor::|public|setVersion(value?:String):void com.microsoft.graph.models.security.Sensor::|static|public|createFromDiscriminatorValue(parseNode:ParseNode):Sensor com.microsoft.graph.models.security.SensorCandidate-->Entity com.microsoft.graph.models.security.SensorCandidate::|public|constructor():void com.microsoft.graph.models.security.SensorCandidate::|public|getComputerDnsName():String +com.microsoft.graph.models.security.SensorCandidate::|public|getDomainName():String com.microsoft.graph.models.security.SensorCandidate::|public|getFieldDeserializers():Map> com.microsoft.graph.models.security.SensorCandidate::|public|getLastSeenDateTime():OffsetDateTime com.microsoft.graph.models.security.SensorCandidate::|public|getSenseClientVersion():String com.microsoft.graph.models.security.SensorCandidate::|public|OdataType:String com.microsoft.graph.models.security.SensorCandidate::|public|serialize(writer:SerializationWriter):Void com.microsoft.graph.models.security.SensorCandidate::|public|setComputerDnsName(value?:String):void +com.microsoft.graph.models.security.SensorCandidate::|public|setDomainName(value?:String):void com.microsoft.graph.models.security.SensorCandidate::|public|setLastSeenDateTime(value?:OffsetDateTime):void com.microsoft.graph.models.security.SensorCandidate::|public|setSenseClientVersion(value?:String):void com.microsoft.graph.models.security.SensorCandidate::|static|public|createFromDiscriminatorValue(parseNode:ParseNode):SensorCandidate @@ -148301,6 +148331,13 @@ com.microsoft.graph.models.security.ServiceSource::0010-MicrosoftDefenderForClou com.microsoft.graph.models.security.ServiceSource::0011-MicrosoftSentinel com.microsoft.graph.models.security.ServiceSource::0012-MicrosoftInsiderRiskManagement com.microsoft.graph.models.security.ServiceSource::0013-MicrosoftThreatIntelligence +com.microsoft.graph.models.security.ServiceStatus::0000-Stopped +com.microsoft.graph.models.security.ServiceStatus::0001-Starting +com.microsoft.graph.models.security.ServiceStatus::0002-Running +com.microsoft.graph.models.security.ServiceStatus::0003-Disabled +com.microsoft.graph.models.security.ServiceStatus::0004-Onboarding +com.microsoft.graph.models.security.ServiceStatus::0005-Unknown +com.microsoft.graph.models.security.ServiceStatus::0006-UnknownFutureValue com.microsoft.graph.models.security.SinglePropertySchema::|protected|backingStore:BackingStore com.microsoft.graph.models.security.SinglePropertySchema::|public|constructor():void com.microsoft.graph.models.security.SinglePropertySchema::|public|getAdditionalData():Map diff --git a/src/main/java/com/microsoft/graph/generated/kiota-lock.json b/src/main/java/com/microsoft/graph/generated/kiota-lock.json index 7e331b6ba96..e4f80678a5b 100644 --- a/src/main/java/com/microsoft/graph/generated/kiota-lock.json +++ b/src/main/java/com/microsoft/graph/generated/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/src/main/java/com/microsoft/graph/generated/models/ProtectionPolicyArtifactCount.java b/src/main/java/com/microsoft/graph/generated/models/ProtectionPolicyArtifactCount.java new file mode 100644 index 00000000000..4f0e339900e --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/ProtectionPolicyArtifactCount.java @@ -0,0 +1,175 @@ +package com.microsoft.graph.models; + +import com.microsoft.kiota.serialization.AdditionalDataHolder; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import com.microsoft.kiota.store.BackedModel; +import com.microsoft.kiota.store.BackingStore; +import com.microsoft.kiota.store.BackingStoreFactorySingleton; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +@jakarta.annotation.Generated("com.microsoft.kiota") +public class ProtectionPolicyArtifactCount implements AdditionalDataHolder, BackedModel, Parsable { + /** + * Stores model information. + */ + @jakarta.annotation.Nonnull + protected BackingStore backingStore; + /** + * Instantiates a new {@link ProtectionPolicyArtifactCount} and sets the default values. + */ + public ProtectionPolicyArtifactCount() { + this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); + this.setAdditionalData(new HashMap<>()); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link ProtectionPolicyArtifactCount} + */ + @jakarta.annotation.Nonnull + public static ProtectionPolicyArtifactCount createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new ProtectionPolicyArtifactCount(); + } + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map getAdditionalData() { + Map value = this.backingStore.get("additionalData"); + if(value == null) { + value = new HashMap<>(); + this.setAdditionalData(value); + } + return value; + } + /** + * Gets the backingStore property value. Stores model information. + * @return a {@link BackingStore} + */ + @jakarta.annotation.Nonnull + public BackingStore getBackingStore() { + return this.backingStore; + } + /** + * Gets the completed property value. The completed property + * @return a {@link Integer} + */ + @jakarta.annotation.Nullable + public Integer getCompleted() { + return this.backingStore.get("completed"); + } + /** + * Gets the failed property value. The failed property + * @return a {@link Integer} + */ + @jakarta.annotation.Nullable + public Integer getFailed() { + return this.backingStore.get("failed"); + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(5); + deserializerMap.put("completed", (n) -> { this.setCompleted(n.getIntegerValue()); }); + deserializerMap.put("failed", (n) -> { this.setFailed(n.getIntegerValue()); }); + deserializerMap.put("inProgress", (n) -> { this.setInProgress(n.getIntegerValue()); }); + deserializerMap.put("@odata.type", (n) -> { this.setOdataType(n.getStringValue()); }); + deserializerMap.put("total", (n) -> { this.setTotal(n.getIntegerValue()); }); + return deserializerMap; + } + /** + * Gets the inProgress property value. The inProgress property + * @return a {@link Integer} + */ + @jakarta.annotation.Nullable + public Integer getInProgress() { + return this.backingStore.get("inProgress"); + } + /** + * Gets the @odata.type property value. The OdataType property + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getOdataType() { + return this.backingStore.get("odataType"); + } + /** + * Gets the total property value. The total property + * @return a {@link Integer} + */ + @jakarta.annotation.Nullable + public Integer getTotal() { + return this.backingStore.get("total"); + } + /** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ + public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { + Objects.requireNonNull(writer); + writer.writeIntegerValue("completed", this.getCompleted()); + writer.writeIntegerValue("failed", this.getFailed()); + writer.writeIntegerValue("inProgress", this.getInProgress()); + writer.writeStringValue("@odata.type", this.getOdataType()); + writer.writeIntegerValue("total", this.getTotal()); + writer.writeAdditionalData(this.getAdditionalData()); + } + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { + this.backingStore.set("additionalData", value); + } + /** + * Sets the backingStore property value. Stores model information. + * @param value Value to set for the backingStore property. + */ + public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { + Objects.requireNonNull(value); + this.backingStore = value; + } + /** + * Sets the completed property value. The completed property + * @param value Value to set for the completed property. + */ + public void setCompleted(@jakarta.annotation.Nullable final Integer value) { + this.backingStore.set("completed", value); + } + /** + * Sets the failed property value. The failed property + * @param value Value to set for the failed property. + */ + public void setFailed(@jakarta.annotation.Nullable final Integer value) { + this.backingStore.set("failed", value); + } + /** + * Sets the inProgress property value. The inProgress property + * @param value Value to set for the inProgress property. + */ + public void setInProgress(@jakarta.annotation.Nullable final Integer value) { + this.backingStore.set("inProgress", value); + } + /** + * Sets the @odata.type property value. The OdataType property + * @param value Value to set for the @odata.type property. + */ + public void setOdataType(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("odataType", value); + } + /** + * Sets the total property value. The total property + * @param value Value to set for the total property. + */ + public void setTotal(@jakarta.annotation.Nullable final Integer value) { + this.backingStore.set("total", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/ProtectionPolicyBase.java b/src/main/java/com/microsoft/graph/generated/models/ProtectionPolicyBase.java index 9fe89b7cdcf..2058ef71af9 100644 --- a/src/main/java/com/microsoft/graph/generated/models/ProtectionPolicyBase.java +++ b/src/main/java/com/microsoft/graph/generated/models/ProtectionPolicyBase.java @@ -68,12 +68,22 @@ public Map> getFieldDeserializers deserializerMap.put("createdBy", (n) -> { this.setCreatedBy(n.getObjectValue(IdentitySet::createFromDiscriminatorValue)); }); deserializerMap.put("createdDateTime", (n) -> { this.setCreatedDateTime(n.getOffsetDateTimeValue()); }); deserializerMap.put("displayName", (n) -> { this.setDisplayName(n.getStringValue()); }); + deserializerMap.put("isEnabled", (n) -> { this.setIsEnabled(n.getBooleanValue()); }); deserializerMap.put("lastModifiedBy", (n) -> { this.setLastModifiedBy(n.getObjectValue(IdentitySet::createFromDiscriminatorValue)); }); deserializerMap.put("lastModifiedDateTime", (n) -> { this.setLastModifiedDateTime(n.getOffsetDateTimeValue()); }); + deserializerMap.put("protectionPolicyArtifactCount", (n) -> { this.setProtectionPolicyArtifactCount(n.getObjectValue(ProtectionPolicyArtifactCount::createFromDiscriminatorValue)); }); deserializerMap.put("retentionSettings", (n) -> { this.setRetentionSettings(n.getCollectionOfObjectValues(RetentionSetting::createFromDiscriminatorValue)); }); deserializerMap.put("status", (n) -> { this.setStatus(n.getEnumValue(ProtectionPolicyStatus::forValue)); }); return deserializerMap; } + /** + * Gets the isEnabled property value. The isEnabled property + * @return a {@link Boolean} + */ + @jakarta.annotation.Nullable + public Boolean getIsEnabled() { + return this.backingStore.get("isEnabled"); + } /** * Gets the lastModifiedBy property value. The identity of the person who last modified the policy. * @return a {@link IdentitySet} @@ -90,6 +100,14 @@ public IdentitySet getLastModifiedBy() { public OffsetDateTime getLastModifiedDateTime() { return this.backingStore.get("lastModifiedDateTime"); } + /** + * Gets the protectionPolicyArtifactCount property value. The protectionPolicyArtifactCount property + * @return a {@link ProtectionPolicyArtifactCount} + */ + @jakarta.annotation.Nullable + public ProtectionPolicyArtifactCount getProtectionPolicyArtifactCount() { + return this.backingStore.get("protectionPolicyArtifactCount"); + } /** * Gets the retentionSettings property value. Contains the retention setting details for the policy. * @return a {@link java.util.List} @@ -116,8 +134,10 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeObjectValue("createdBy", this.getCreatedBy()); writer.writeOffsetDateTimeValue("createdDateTime", this.getCreatedDateTime()); writer.writeStringValue("displayName", this.getDisplayName()); + writer.writeBooleanValue("isEnabled", this.getIsEnabled()); writer.writeObjectValue("lastModifiedBy", this.getLastModifiedBy()); writer.writeOffsetDateTimeValue("lastModifiedDateTime", this.getLastModifiedDateTime()); + writer.writeObjectValue("protectionPolicyArtifactCount", this.getProtectionPolicyArtifactCount()); writer.writeCollectionOfObjectValues("retentionSettings", this.getRetentionSettings()); writer.writeEnumValue("status", this.getStatus()); } @@ -142,6 +162,13 @@ public void setCreatedDateTime(@jakarta.annotation.Nullable final OffsetDateTime public void setDisplayName(@jakarta.annotation.Nullable final String value) { this.backingStore.set("displayName", value); } + /** + * Sets the isEnabled property value. The isEnabled property + * @param value Value to set for the isEnabled property. + */ + public void setIsEnabled(@jakarta.annotation.Nullable final Boolean value) { + this.backingStore.set("isEnabled", value); + } /** * Sets the lastModifiedBy property value. The identity of the person who last modified the policy. * @param value Value to set for the lastModifiedBy property. @@ -156,6 +183,13 @@ public void setLastModifiedBy(@jakarta.annotation.Nullable final IdentitySet val public void setLastModifiedDateTime(@jakarta.annotation.Nullable final OffsetDateTime value) { this.backingStore.set("lastModifiedDateTime", value); } + /** + * Sets the protectionPolicyArtifactCount property value. The protectionPolicyArtifactCount property + * @param value Value to set for the protectionPolicyArtifactCount property. + */ + public void setProtectionPolicyArtifactCount(@jakarta.annotation.Nullable final ProtectionPolicyArtifactCount value) { + this.backingStore.set("protectionPolicyArtifactCount", value); + } /** * Sets the retentionSettings property value. Contains the retention setting details for the policy. * @param value Value to set for the retentionSettings property. diff --git a/src/main/java/com/microsoft/graph/generated/models/ServicePrincipal.java b/src/main/java/com/microsoft/graph/generated/models/ServicePrincipal.java index c9eff2788ad..9863011c76d 100644 --- a/src/main/java/com/microsoft/graph/generated/models/ServicePrincipal.java +++ b/src/main/java/com/microsoft/graph/generated/models/ServicePrincipal.java @@ -432,7 +432,7 @@ public java.util.List getServicePrincipalNames() { return this.backingStore.get("servicePrincipalNames"); } /** - * 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. + * 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. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -865,7 +865,7 @@ public void setServicePrincipalNames(@jakarta.annotation.Nullable final java.uti this.backingStore.set("servicePrincipalNames", value); } /** - * 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. + * 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. * @param value Value to set for the servicePrincipalType property. */ public void setServicePrincipalType(@jakarta.annotation.Nullable final String value) { diff --git a/src/main/java/com/microsoft/graph/generated/models/security/Alert.java b/src/main/java/com/microsoft/graph/generated/models/security/Alert.java index 34b2e7990fb..ca44fde4b30 100644 --- a/src/main/java/com/microsoft/graph/generated/models/security/Alert.java +++ b/src/main/java/com/microsoft/graph/generated/models/security/Alert.java @@ -115,7 +115,7 @@ public String getDescription() { return this.backingStore.get("description"); } /** - * 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. + * Gets the detectionSource property value. Detection technology or sensor that identified the notable component or activity. * @return a {@link DetectionSource} */ @jakarta.annotation.Nullable @@ -461,7 +461,7 @@ public void setDescription(@jakarta.annotation.Nullable final String value) { this.backingStore.set("description", value); } /** - * 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. + * Sets the detectionSource property value. Detection technology or sensor that identified the notable component or activity. * @param value Value to set for the detectionSource property. */ public void setDetectionSource(@jakarta.annotation.Nullable final DetectionSource value) { diff --git a/src/main/java/com/microsoft/graph/generated/models/security/Incident.java b/src/main/java/com/microsoft/graph/generated/models/security/Incident.java index a6eb1b9ba7d..4293de9c666 100644 --- a/src/main/java/com/microsoft/graph/generated/models/security/Incident.java +++ b/src/main/java/com/microsoft/graph/generated/models/security/Incident.java @@ -117,6 +117,7 @@ public Map> getFieldDeserializers deserializerMap.put("incidentWebUrl", (n) -> { this.setIncidentWebUrl(n.getStringValue()); }); deserializerMap.put("lastModifiedBy", (n) -> { this.setLastModifiedBy(n.getStringValue()); }); deserializerMap.put("lastUpdateDateTime", (n) -> { this.setLastUpdateDateTime(n.getOffsetDateTimeValue()); }); + deserializerMap.put("priorityScore", (n) -> { this.setPriorityScore(n.getIntegerValue()); }); deserializerMap.put("redirectIncidentId", (n) -> { this.setRedirectIncidentId(n.getStringValue()); }); deserializerMap.put("resolvingComment", (n) -> { this.setResolvingComment(n.getStringValue()); }); deserializerMap.put("severity", (n) -> { this.setSeverity(n.getEnumValue(AlertSeverity::forValue)); }); @@ -150,6 +151,14 @@ public String getLastModifiedBy() { public OffsetDateTime getLastUpdateDateTime() { return this.backingStore.get("lastUpdateDateTime"); } + /** + * Gets the priorityScore property value. The priorityScore property + * @return a {@link Integer} + */ + @jakarta.annotation.Nullable + public Integer getPriorityScore() { + return this.backingStore.get("priorityScore"); + } /** * 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. * @return a {@link String} @@ -225,6 +234,7 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeStringValue("incidentWebUrl", this.getIncidentWebUrl()); writer.writeStringValue("lastModifiedBy", this.getLastModifiedBy()); writer.writeOffsetDateTimeValue("lastUpdateDateTime", this.getLastUpdateDateTime()); + writer.writeIntegerValue("priorityScore", this.getPriorityScore()); writer.writeStringValue("redirectIncidentId", this.getRedirectIncidentId()); writer.writeStringValue("resolvingComment", this.getResolvingComment()); writer.writeEnumValue("severity", this.getSeverity()); @@ -317,6 +327,13 @@ public void setLastModifiedBy(@jakarta.annotation.Nullable final String value) { public void setLastUpdateDateTime(@jakarta.annotation.Nullable final OffsetDateTime value) { this.backingStore.set("lastUpdateDateTime", value); } + /** + * Sets the priorityScore property value. The priorityScore property + * @param value Value to set for the priorityScore property. + */ + public void setPriorityScore(@jakarta.annotation.Nullable final Integer value) { + this.backingStore.set("priorityScore", value); + } /** * 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. * @param value Value to set for the redirectIncidentId property. diff --git a/src/main/java/com/microsoft/graph/generated/models/security/Sensor.java b/src/main/java/com/microsoft/graph/generated/models/security/Sensor.java index 973fecc281e..fa58987ba21 100644 --- a/src/main/java/com/microsoft/graph/generated/models/security/Sensor.java +++ b/src/main/java/com/microsoft/graph/generated/models/security/Sensor.java @@ -73,6 +73,7 @@ public Map> getFieldDeserializers deserializerMap.put("healthStatus", (n) -> { this.setHealthStatus(n.getEnumValue(SensorHealthStatus::forValue)); }); deserializerMap.put("openHealthIssuesCount", (n) -> { this.setOpenHealthIssuesCount(n.getLongValue()); }); deserializerMap.put("sensorType", (n) -> { this.setSensorType(n.getEnumValue(SensorType::forValue)); }); + deserializerMap.put("serviceStatus", (n) -> { this.setServiceStatus(n.getEnumValue(ServiceStatus::forValue)); }); deserializerMap.put("settings", (n) -> { this.setSettings(n.getObjectValue(SensorSettings::createFromDiscriminatorValue)); }); deserializerMap.put("version", (n) -> { this.setVersion(n.getStringValue()); }); return deserializerMap; @@ -109,6 +110,14 @@ public Long getOpenHealthIssuesCount() { public SensorType getSensorType() { return this.backingStore.get("sensorType"); } + /** + * Gets the serviceStatus property value. The serviceStatus property + * @return a {@link ServiceStatus} + */ + @jakarta.annotation.Nullable + public ServiceStatus getServiceStatus() { + return this.backingStore.get("serviceStatus"); + } /** * Gets the settings property value. The settings property * @return a {@link SensorSettings} @@ -140,6 +149,7 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeEnumValue("healthStatus", this.getHealthStatus()); writer.writeLongValue("openHealthIssuesCount", this.getOpenHealthIssuesCount()); writer.writeEnumValue("sensorType", this.getSensorType()); + writer.writeEnumValue("serviceStatus", this.getServiceStatus()); writer.writeObjectValue("settings", this.getSettings()); writer.writeStringValue("version", this.getVersion()); } @@ -199,6 +209,13 @@ public void setOpenHealthIssuesCount(@jakarta.annotation.Nullable final Long val public void setSensorType(@jakarta.annotation.Nullable final SensorType value) { this.backingStore.set("sensorType", value); } + /** + * Sets the serviceStatus property value. The serviceStatus property + * @param value Value to set for the serviceStatus property. + */ + public void setServiceStatus(@jakarta.annotation.Nullable final ServiceStatus value) { + this.backingStore.set("serviceStatus", value); + } /** * Sets the settings property value. The settings property * @param value Value to set for the settings property. diff --git a/src/main/java/com/microsoft/graph/generated/models/security/SensorCandidate.java b/src/main/java/com/microsoft/graph/generated/models/security/SensorCandidate.java index b46ac1d67e8..abcc4407fbd 100644 --- a/src/main/java/com/microsoft/graph/generated/models/security/SensorCandidate.java +++ b/src/main/java/com/microsoft/graph/generated/models/security/SensorCandidate.java @@ -34,6 +34,14 @@ public static SensorCandidate createFromDiscriminatorValue(@jakarta.annotation.N public String getComputerDnsName() { return this.backingStore.get("computerDnsName"); } + /** + * Gets the domainName property value. The domain name of the sensor. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getDomainName() { + return this.backingStore.get("domainName"); + } /** * The deserialization information for the current model * @return a {@link Map>} @@ -42,6 +50,7 @@ public String getComputerDnsName() { public Map> getFieldDeserializers() { final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); deserializerMap.put("computerDnsName", (n) -> { this.setComputerDnsName(n.getStringValue()); }); + deserializerMap.put("domainName", (n) -> { this.setDomainName(n.getStringValue()); }); deserializerMap.put("lastSeenDateTime", (n) -> { this.setLastSeenDateTime(n.getOffsetDateTimeValue()); }); deserializerMap.put("senseClientVersion", (n) -> { this.setSenseClientVersion(n.getStringValue()); }); return deserializerMap; @@ -70,6 +79,7 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ Objects.requireNonNull(writer); super.serialize(writer); writer.writeStringValue("computerDnsName", this.getComputerDnsName()); + writer.writeStringValue("domainName", this.getDomainName()); writer.writeOffsetDateTimeValue("lastSeenDateTime", this.getLastSeenDateTime()); writer.writeStringValue("senseClientVersion", this.getSenseClientVersion()); } @@ -80,6 +90,13 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ public void setComputerDnsName(@jakarta.annotation.Nullable final String value) { this.backingStore.set("computerDnsName", value); } + /** + * Sets the domainName property value. The domain name of the sensor. + * @param value Value to set for the domainName property. + */ + public void setDomainName(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("domainName", value); + } /** * Sets the lastSeenDateTime property value. The date and time when the sensor was last seen. * @param value Value to set for the lastSeenDateTime property. diff --git a/src/main/java/com/microsoft/graph/generated/models/security/ServiceStatus.java b/src/main/java/com/microsoft/graph/generated/models/security/ServiceStatus.java new file mode 100644 index 00000000000..b37899aa71c --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/security/ServiceStatus.java @@ -0,0 +1,35 @@ +package com.microsoft.graph.models.security; + +import com.microsoft.kiota.serialization.ValuedEnum; +import java.util.Objects; + +@jakarta.annotation.Generated("com.microsoft.kiota") +public enum ServiceStatus implements ValuedEnum { + Stopped("stopped"), + Starting("starting"), + Running("running"), + Disabled("disabled"), + Onboarding("onboarding"), + Unknown("unknown"), + UnknownFutureValue("unknownFutureValue"); + public final String value; + ServiceStatus(final String value) { + this.value = value; + } + @jakarta.annotation.Nonnull + public String getValue() { return this.value; } + @jakarta.annotation.Nullable + public static ServiceStatus forValue(@jakarta.annotation.Nonnull final String searchValue) { + Objects.requireNonNull(searchValue); + switch(searchValue) { + case "stopped": return Stopped; + case "starting": return Starting; + case "running": return Running; + case "disabled": return Disabled; + case "onboarding": return Onboarding; + case "unknown": return Unknown; + case "unknownFutureValue": return UnknownFutureValue; + default: return null; + } + } +}