From 5e3939bfc525b3991ff37b05439f800a82c8451c Mon Sep 17 00:00:00 2001 From: Microsoft Graph DevX Tooling Date: Thu, 22 Jan 2026 18:16:30 +0000 Subject: [PATCH] feat(generation): update request builders and models Update generated files with build 208109 --- msgraph/generated/kiota-dom-export.txt | 35 ++++++++++ msgraph/generated/kiota-lock.json | 2 +- .../protection_policy_artifact_count.py | 66 +++++++++++++++++++ .../models/protection_policy_base.py | 11 ++++ msgraph/generated/models/security/alert.py | 2 +- msgraph/generated/models/security/incident.py | 4 ++ msgraph/generated/models/security/sensor.py | 7 ++ .../models/security/sensor_candidate.py | 4 ++ .../models/security/service_status.py | 11 ++++ msgraph/generated/models/service_principal.py | 2 +- 10 files changed, 141 insertions(+), 3 deletions(-) create mode 100644 msgraph/generated/models/protection_policy_artifact_count.py create mode 100644 msgraph/generated/models/security/service_status.py diff --git a/msgraph/generated/kiota-dom-export.txt b/msgraph/generated/kiota-dom-export.txt index 7f3bc4baa4d..aad44737ff4 100644 --- a/msgraph/generated/kiota-dom-export.txt +++ b/msgraph/generated/kiota-dom-export.txt @@ -123760,6 +123760,24 @@ msgraph.generated.models.ProtectedContent::|public|odata_type(value:str):None msgraph.generated.models.ProtectedContent::|public|serialize(writer:SerializationWriter):None msgraph.generated.models.ProtectedContent::|static|public|create_from_discriminator_value(parse_node:ParseNode):ProtectedContent msgraph.generated.models.ProtectedContent~~>AdditionalDataHolder; BackedModel; Parsable +msgraph.generated.models.ProtectionPolicyArtifactCount::|public|additional_data():dict[str, Any] +msgraph.generated.models.ProtectionPolicyArtifactCount::|public|additional_data(value:dict[str, Any]):None +msgraph.generated.models.ProtectionPolicyArtifactCount::|public|backing_store:BackingStore +msgraph.generated.models.ProtectionPolicyArtifactCount::|public|completed():int +msgraph.generated.models.ProtectionPolicyArtifactCount::|public|completed(value:int):None +msgraph.generated.models.ProtectionPolicyArtifactCount::|public|constructor():None +msgraph.generated.models.ProtectionPolicyArtifactCount::|public|failed():int +msgraph.generated.models.ProtectionPolicyArtifactCount::|public|failed(value:int):None +msgraph.generated.models.ProtectionPolicyArtifactCount::|public|get_field_deserializers():dict[str, Callable[[ParseNode], None]] +msgraph.generated.models.ProtectionPolicyArtifactCount::|public|in_progress():int +msgraph.generated.models.ProtectionPolicyArtifactCount::|public|in_progress(value:int):None +msgraph.generated.models.ProtectionPolicyArtifactCount::|public|odata_type():str +msgraph.generated.models.ProtectionPolicyArtifactCount::|public|odata_type(value:str):None +msgraph.generated.models.ProtectionPolicyArtifactCount::|public|serialize(writer:SerializationWriter):None +msgraph.generated.models.ProtectionPolicyArtifactCount::|public|total():int +msgraph.generated.models.ProtectionPolicyArtifactCount::|public|total(value:int):None +msgraph.generated.models.ProtectionPolicyArtifactCount::|static|public|create_from_discriminator_value(parse_node:ParseNode):ProtectionPolicyArtifactCount +msgraph.generated.models.ProtectionPolicyArtifactCount~~>AdditionalDataHolder; BackedModel; Parsable msgraph.generated.models.ProtectionPolicyBase-->Entity msgraph.generated.models.ProtectionPolicyBase::|public|constructor():None msgraph.generated.models.ProtectionPolicyBase::|public|created_by():IdentitySet @@ -123769,11 +123787,15 @@ msgraph.generated.models.ProtectionPolicyBase::|public|created_date_time(value:d msgraph.generated.models.ProtectionPolicyBase::|public|display_name():str msgraph.generated.models.ProtectionPolicyBase::|public|display_name(value:str):None msgraph.generated.models.ProtectionPolicyBase::|public|get_field_deserializers():dict[str, Callable[[ParseNode], None]] +msgraph.generated.models.ProtectionPolicyBase::|public|is_enabled():bool +msgraph.generated.models.ProtectionPolicyBase::|public|is_enabled(value:bool):None msgraph.generated.models.ProtectionPolicyBase::|public|last_modified_by():IdentitySet msgraph.generated.models.ProtectionPolicyBase::|public|last_modified_by(value:IdentitySet):None msgraph.generated.models.ProtectionPolicyBase::|public|last_modified_date_time():datetime.datetime msgraph.generated.models.ProtectionPolicyBase::|public|last_modified_date_time(value:datetime.datetime):None msgraph.generated.models.ProtectionPolicyBase::|public|odata_type:str +msgraph.generated.models.ProtectionPolicyBase::|public|protection_policy_artifact_count():ProtectionPolicyArtifactCount +msgraph.generated.models.ProtectionPolicyBase::|public|protection_policy_artifact_count(value:ProtectionPolicyArtifactCount):None msgraph.generated.models.ProtectionPolicyBase::|public|retention_settings():list[RetentionSetting] msgraph.generated.models.ProtectionPolicyBase::|public|retention_settings(value:list[RetentionSetting]):None msgraph.generated.models.ProtectionPolicyBase::|public|serialize(writer:SerializationWriter):None @@ -129141,6 +129163,8 @@ msgraph.generated.models.security.Incident::|public|last_modified_by(value:str): msgraph.generated.models.security.Incident::|public|last_update_date_time():datetime.datetime msgraph.generated.models.security.Incident::|public|last_update_date_time(value:datetime.datetime):None msgraph.generated.models.security.Incident::|public|odata_type:str +msgraph.generated.models.security.Incident::|public|priority_score():int +msgraph.generated.models.security.Incident::|public|priority_score(value:int):None msgraph.generated.models.security.Incident::|public|redirect_incident_id():str msgraph.generated.models.security.Incident::|public|redirect_incident_id(value:str):None msgraph.generated.models.security.Incident::|public|resolving_comment():str @@ -130121,6 +130145,8 @@ msgraph.generated.models.security.Sensor::|public|open_health_issues_count(value msgraph.generated.models.security.Sensor::|public|sensor_type():SensorType msgraph.generated.models.security.Sensor::|public|sensor_type(value:SensorType):None msgraph.generated.models.security.Sensor::|public|serialize(writer:SerializationWriter):None +msgraph.generated.models.security.Sensor::|public|service_status():ServiceStatus +msgraph.generated.models.security.Sensor::|public|service_status(value:ServiceStatus):None msgraph.generated.models.security.Sensor::|public|settings():SensorSettings msgraph.generated.models.security.Sensor::|public|settings(value:SensorSettings):None msgraph.generated.models.security.Sensor::|public|version():str @@ -130130,6 +130156,8 @@ msgraph.generated.models.security.SensorCandidate-->Entity msgraph.generated.models.security.SensorCandidate::|public|computer_dns_name():str msgraph.generated.models.security.SensorCandidate::|public|computer_dns_name(value:str):None msgraph.generated.models.security.SensorCandidate::|public|constructor():None +msgraph.generated.models.security.SensorCandidate::|public|domain_name():str +msgraph.generated.models.security.SensorCandidate::|public|domain_name(value:str):None msgraph.generated.models.security.SensorCandidate::|public|get_field_deserializers():dict[str, Callable[[ParseNode], None]] msgraph.generated.models.security.SensorCandidate::|public|last_seen_date_time():datetime.datetime msgraph.generated.models.security.SensorCandidate::|public|last_seen_date_time(value:datetime.datetime):None @@ -130243,6 +130271,13 @@ msgraph.generated.models.security.ServiceSource::0010-MicrosoftDefenderForCloud msgraph.generated.models.security.ServiceSource::0011-MicrosoftSentinel msgraph.generated.models.security.ServiceSource::0012-MicrosoftInsiderRiskManagement msgraph.generated.models.security.ServiceSource::0013-MicrosoftThreatIntelligence +msgraph.generated.models.security.ServiceStatus::0000-Stopped +msgraph.generated.models.security.ServiceStatus::0001-Starting +msgraph.generated.models.security.ServiceStatus::0002-Running +msgraph.generated.models.security.ServiceStatus::0003-Disabled +msgraph.generated.models.security.ServiceStatus::0004-Onboarding +msgraph.generated.models.security.ServiceStatus::0005-Unknown +msgraph.generated.models.security.ServiceStatus::0006-UnknownFutureValue msgraph.generated.models.security.SinglePropertySchema::|public|additional_data():dict[str, Any] msgraph.generated.models.security.SinglePropertySchema::|public|additional_data(value:dict[str, Any]):None msgraph.generated.models.security.SinglePropertySchema::|public|backing_store:BackingStore diff --git a/msgraph/generated/kiota-lock.json b/msgraph/generated/kiota-lock.json index 14e42d9f645..38fdd149fbb 100644 --- a/msgraph/generated/kiota-lock.json +++ b/msgraph/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/msgraph/generated/models/protection_policy_artifact_count.py b/msgraph/generated/models/protection_policy_artifact_count.py new file mode 100644 index 00000000000..a69a1e7252c --- /dev/null +++ b/msgraph/generated/models/protection_policy_artifact_count.py @@ -0,0 +1,66 @@ +from __future__ import annotations +from collections.abc import Callable +from dataclasses import dataclass, field +from kiota_abstractions.serialization import AdditionalDataHolder, Parsable, ParseNode, SerializationWriter +from kiota_abstractions.store import BackedModel, BackingStore, BackingStoreFactorySingleton +from typing import Any, Optional, TYPE_CHECKING, Union + +@dataclass +class ProtectionPolicyArtifactCount(AdditionalDataHolder, BackedModel, Parsable): + # Stores model information. + backing_store: BackingStore = field(default_factory=BackingStoreFactorySingleton(backing_store_factory=None).backing_store_factory.create_backing_store, repr=False) + + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additional_data: dict[str, Any] = field(default_factory=dict) + # The completed property + completed: Optional[int] = None + # The failed property + failed: Optional[int] = None + # The inProgress property + in_progress: Optional[int] = None + # The OdataType property + odata_type: Optional[str] = None + # The total property + total: Optional[int] = None + + @staticmethod + def create_from_discriminator_value(parse_node: ParseNode) -> ProtectionPolicyArtifactCount: + """ + Creates a new instance of the appropriate class based on discriminator value + param parse_node: The parse node to use to read the discriminator value and create the object + Returns: ProtectionPolicyArtifactCount + """ + if parse_node is None: + raise TypeError("parse_node cannot be null.") + return ProtectionPolicyArtifactCount() + + def get_field_deserializers(self,) -> dict[str, Callable[[ParseNode], None]]: + """ + The deserialization information for the current model + Returns: dict[str, Callable[[ParseNode], None]] + """ + fields: dict[str, Callable[[Any], None]] = { + "completed": lambda n : setattr(self, 'completed', n.get_int_value()), + "failed": lambda n : setattr(self, 'failed', n.get_int_value()), + "inProgress": lambda n : setattr(self, 'in_progress', n.get_int_value()), + "@odata.type": lambda n : setattr(self, 'odata_type', n.get_str_value()), + "total": lambda n : setattr(self, 'total', n.get_int_value()), + } + return fields + + def serialize(self,writer: SerializationWriter) -> None: + """ + Serializes information the current object + param writer: Serialization writer to use to serialize this model + Returns: None + """ + if writer is None: + raise TypeError("writer cannot be null.") + writer.write_int_value("completed", self.completed) + writer.write_int_value("failed", self.failed) + writer.write_int_value("inProgress", self.in_progress) + writer.write_str_value("@odata.type", self.odata_type) + writer.write_int_value("total", self.total) + writer.write_additional_data_value(self.additional_data) + + diff --git a/msgraph/generated/models/protection_policy_base.py b/msgraph/generated/models/protection_policy_base.py index 74ad2b5806a..7a644e090e8 100644 --- a/msgraph/generated/models/protection_policy_base.py +++ b/msgraph/generated/models/protection_policy_base.py @@ -10,6 +10,7 @@ from .exchange_protection_policy import ExchangeProtectionPolicy from .identity_set import IdentitySet from .one_drive_for_business_protection_policy import OneDriveForBusinessProtectionPolicy + from .protection_policy_artifact_count import ProtectionPolicyArtifactCount from .protection_policy_status import ProtectionPolicyStatus from .retention_setting import RetentionSetting from .share_point_protection_policy import SharePointProtectionPolicy @@ -24,12 +25,16 @@ class ProtectionPolicyBase(Entity, Parsable): created_date_time: Optional[datetime.datetime] = None # The name of the policy to be created. display_name: Optional[str] = None + # The isEnabled property + is_enabled: Optional[bool] = None # The identity of the person who last modified the policy. last_modified_by: Optional[IdentitySet] = None # The timestamp of the last modification of the policy. last_modified_date_time: Optional[datetime.datetime] = None # The OdataType property odata_type: Optional[str] = None + # The protectionPolicyArtifactCount property + protection_policy_artifact_count: Optional[ProtectionPolicyArtifactCount] = None # Contains the retention setting details for the policy. retention_settings: Optional[list[RetentionSetting]] = None # The aggregated status of the protection units associated with the policy. The possible values are: inactive, activeWithErrors, updating, active, unknownFutureValue. @@ -72,6 +77,7 @@ def get_field_deserializers(self,) -> dict[str, Callable[[ParseNode], None]]: from .exchange_protection_policy import ExchangeProtectionPolicy from .identity_set import IdentitySet from .one_drive_for_business_protection_policy import OneDriveForBusinessProtectionPolicy + from .protection_policy_artifact_count import ProtectionPolicyArtifactCount from .protection_policy_status import ProtectionPolicyStatus from .retention_setting import RetentionSetting from .share_point_protection_policy import SharePointProtectionPolicy @@ -80,6 +86,7 @@ def get_field_deserializers(self,) -> dict[str, Callable[[ParseNode], None]]: from .exchange_protection_policy import ExchangeProtectionPolicy from .identity_set import IdentitySet from .one_drive_for_business_protection_policy import OneDriveForBusinessProtectionPolicy + from .protection_policy_artifact_count import ProtectionPolicyArtifactCount from .protection_policy_status import ProtectionPolicyStatus from .retention_setting import RetentionSetting from .share_point_protection_policy import SharePointProtectionPolicy @@ -88,8 +95,10 @@ def get_field_deserializers(self,) -> dict[str, Callable[[ParseNode], None]]: "createdBy": lambda n : setattr(self, 'created_by', n.get_object_value(IdentitySet)), "createdDateTime": lambda n : setattr(self, 'created_date_time', n.get_datetime_value()), "displayName": lambda n : setattr(self, 'display_name', n.get_str_value()), + "isEnabled": lambda n : setattr(self, 'is_enabled', n.get_bool_value()), "lastModifiedBy": lambda n : setattr(self, 'last_modified_by', n.get_object_value(IdentitySet)), "lastModifiedDateTime": lambda n : setattr(self, 'last_modified_date_time', n.get_datetime_value()), + "protectionPolicyArtifactCount": lambda n : setattr(self, 'protection_policy_artifact_count', n.get_object_value(ProtectionPolicyArtifactCount)), "retentionSettings": lambda n : setattr(self, 'retention_settings', n.get_collection_of_object_values(RetentionSetting)), "status": lambda n : setattr(self, 'status', n.get_enum_value(ProtectionPolicyStatus)), } @@ -109,8 +118,10 @@ def serialize(self,writer: SerializationWriter) -> None: writer.write_object_value("createdBy", self.created_by) writer.write_datetime_value("createdDateTime", self.created_date_time) writer.write_str_value("displayName", self.display_name) + writer.write_bool_value("isEnabled", self.is_enabled) writer.write_object_value("lastModifiedBy", self.last_modified_by) writer.write_datetime_value("lastModifiedDateTime", self.last_modified_date_time) + writer.write_object_value("protectionPolicyArtifactCount", self.protection_policy_artifact_count) writer.write_collection_of_object_values("retentionSettings", self.retention_settings) writer.write_enum_value("status", self.status) diff --git a/msgraph/generated/models/security/alert.py b/msgraph/generated/models/security/alert.py index 108dfb49a22..8ef59f524d8 100644 --- a/msgraph/generated/models/security/alert.py +++ b/msgraph/generated/models/security/alert.py @@ -44,7 +44,7 @@ class Alert(Entity, Parsable): custom_details: Optional[Dictionary] = None # String value describing each alert. description: Optional[str] = None - # 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. + # Detection technology or sensor that identified the notable component or activity. detection_source: Optional[DetectionSource] = None # The ID of the detector that triggered the alert. detector_id: Optional[str] = None diff --git a/msgraph/generated/models/security/incident.py b/msgraph/generated/models/security/incident.py index 50411ffb4fd..17466003553 100644 --- a/msgraph/generated/models/security/incident.py +++ b/msgraph/generated/models/security/incident.py @@ -44,6 +44,8 @@ class Incident(Entity, Parsable): last_update_date_time: Optional[datetime.datetime] = None # The OdataType property odata_type: Optional[str] = None + # The priorityScore property + priority_score: Optional[int] = None # 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. redirect_incident_id: Optional[str] = None # User input that explains the resolution of the incident and the classification choice. This property contains free editable text. @@ -104,6 +106,7 @@ def get_field_deserializers(self,) -> dict[str, Callable[[ParseNode], None]]: "incidentWebUrl": lambda n : setattr(self, 'incident_web_url', n.get_str_value()), "lastModifiedBy": lambda n : setattr(self, 'last_modified_by', n.get_str_value()), "lastUpdateDateTime": lambda n : setattr(self, 'last_update_date_time', n.get_datetime_value()), + "priorityScore": lambda n : setattr(self, 'priority_score', n.get_int_value()), "redirectIncidentId": lambda n : setattr(self, 'redirect_incident_id', n.get_str_value()), "resolvingComment": lambda n : setattr(self, 'resolving_comment', n.get_str_value()), "severity": lambda n : setattr(self, 'severity', n.get_enum_value(AlertSeverity)), @@ -137,6 +140,7 @@ def serialize(self,writer: SerializationWriter) -> None: writer.write_str_value("incidentWebUrl", self.incident_web_url) writer.write_str_value("lastModifiedBy", self.last_modified_by) writer.write_datetime_value("lastUpdateDateTime", self.last_update_date_time) + writer.write_int_value("priorityScore", self.priority_score) writer.write_str_value("redirectIncidentId", self.redirect_incident_id) writer.write_str_value("resolvingComment", self.resolving_comment) writer.write_enum_value("severity", self.severity) diff --git a/msgraph/generated/models/security/sensor.py b/msgraph/generated/models/security/sensor.py index d41ee1d6b30..13760c2eb6f 100644 --- a/msgraph/generated/models/security/sensor.py +++ b/msgraph/generated/models/security/sensor.py @@ -12,6 +12,7 @@ from .sensor_health_status import SensorHealthStatus from .sensor_settings import SensorSettings from .sensor_type import SensorType + from .service_status import ServiceStatus from ..entity import Entity @@ -35,6 +36,8 @@ class Sensor(Entity, Parsable): open_health_issues_count: Optional[int] = None # The sensorType property sensor_type: Optional[SensorType] = None + # The serviceStatus property + service_status: Optional[ServiceStatus] = None # The settings property settings: Optional[SensorSettings] = None # The version of the sensor. @@ -62,6 +65,7 @@ def get_field_deserializers(self,) -> dict[str, Callable[[ParseNode], None]]: from .sensor_health_status import SensorHealthStatus from .sensor_settings import SensorSettings from .sensor_type import SensorType + from .service_status import ServiceStatus from ..entity import Entity from .deployment_status import DeploymentStatus @@ -69,6 +73,7 @@ def get_field_deserializers(self,) -> dict[str, Callable[[ParseNode], None]]: from .sensor_health_status import SensorHealthStatus from .sensor_settings import SensorSettings from .sensor_type import SensorType + from .service_status import ServiceStatus fields: dict[str, Callable[[Any], None]] = { "createdDateTime": lambda n : setattr(self, 'created_date_time', n.get_datetime_value()), @@ -79,6 +84,7 @@ def get_field_deserializers(self,) -> dict[str, Callable[[ParseNode], None]]: "healthStatus": lambda n : setattr(self, 'health_status', n.get_enum_value(SensorHealthStatus)), "openHealthIssuesCount": lambda n : setattr(self, 'open_health_issues_count', n.get_int_value()), "sensorType": lambda n : setattr(self, 'sensor_type', n.get_enum_value(SensorType)), + "serviceStatus": lambda n : setattr(self, 'service_status', n.get_enum_value(ServiceStatus)), "settings": lambda n : setattr(self, 'settings', n.get_object_value(SensorSettings)), "version": lambda n : setattr(self, 'version', n.get_str_value()), } @@ -103,6 +109,7 @@ def serialize(self,writer: SerializationWriter) -> None: writer.write_enum_value("healthStatus", self.health_status) writer.write_int_value("openHealthIssuesCount", self.open_health_issues_count) writer.write_enum_value("sensorType", self.sensor_type) + writer.write_enum_value("serviceStatus", self.service_status) writer.write_object_value("settings", self.settings) writer.write_str_value("version", self.version) diff --git a/msgraph/generated/models/security/sensor_candidate.py b/msgraph/generated/models/security/sensor_candidate.py index da8056c1056..2b985c429b3 100644 --- a/msgraph/generated/models/security/sensor_candidate.py +++ b/msgraph/generated/models/security/sensor_candidate.py @@ -14,6 +14,8 @@ class SensorCandidate(Entity, Parsable): # The DNS name of the computer associated with the sensor. computer_dns_name: Optional[str] = None + # The domain name of the sensor. + domain_name: Optional[str] = None # The date and time when the sensor was last seen. last_seen_date_time: Optional[datetime.datetime] = None # The OdataType property @@ -43,6 +45,7 @@ def get_field_deserializers(self,) -> dict[str, Callable[[ParseNode], None]]: fields: dict[str, Callable[[Any], None]] = { "computerDnsName": lambda n : setattr(self, 'computer_dns_name', n.get_str_value()), + "domainName": lambda n : setattr(self, 'domain_name', n.get_str_value()), "lastSeenDateTime": lambda n : setattr(self, 'last_seen_date_time', n.get_datetime_value()), "senseClientVersion": lambda n : setattr(self, 'sense_client_version', n.get_str_value()), } @@ -60,6 +63,7 @@ def serialize(self,writer: SerializationWriter) -> None: raise TypeError("writer cannot be null.") super().serialize(writer) writer.write_str_value("computerDnsName", self.computer_dns_name) + writer.write_str_value("domainName", self.domain_name) writer.write_datetime_value("lastSeenDateTime", self.last_seen_date_time) writer.write_str_value("senseClientVersion", self.sense_client_version) diff --git a/msgraph/generated/models/security/service_status.py b/msgraph/generated/models/security/service_status.py new file mode 100644 index 00000000000..40b5a65ff6a --- /dev/null +++ b/msgraph/generated/models/security/service_status.py @@ -0,0 +1,11 @@ +from enum import Enum + +class ServiceStatus(str, Enum): + Stopped = "stopped", + Starting = "starting", + Running = "running", + Disabled = "disabled", + Onboarding = "onboarding", + Unknown = "unknown", + UnknownFutureValue = "unknownFutureValue", + diff --git a/msgraph/generated/models/service_principal.py b/msgraph/generated/models/service_principal.py index 334ac32ba75..99ab28d2769 100644 --- a/msgraph/generated/models/service_principal.py +++ b/msgraph/generated/models/service_principal.py @@ -122,7 +122,7 @@ class ServicePrincipal(DirectoryObject, Parsable): saml_single_sign_on_settings: Optional[SamlSingleSignOnSettings] = None # Contains the list of identifiersUris, copied over from the associated application. Additional values can be added to hybrid applications. These values can be used to identify the permissions exposed by this app within Microsoft Entra ID. For example,Client apps can specify a resource URI that is based on the values of this property to acquire an access token, which is the URI returned in the 'aud' claim.The any operator is required for filter expressions on multi-valued properties. Not nullable. Supports $filter (eq, not, ge, le, startsWith). service_principal_names: Optional[list[str]] = None - # 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. + # 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. service_principal_type: Optional[str] = None # Specifies the Microsoft accounts that are supported for the current application. Read-only. Supported values are:AzureADMyOrg: Users with a Microsoft work or school account in my organization's Microsoft Entra tenant (single-tenant).AzureADMultipleOrgs: Users with a Microsoft work or school account in any organization's Microsoft Entra tenant (multitenant).AzureADandPersonalMicrosoftAccount: Users with a personal Microsoft account, or a work or school account in any organization's Microsoft Entra tenant.PersonalMicrosoftAccount: Users with a personal Microsoft account only. sign_in_audience: Optional[str] = None