msgraph-sdk 1.52.0__py3-none-any.whl → 1.53.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
msgraph/_version.py CHANGED
@@ -1,4 +1,4 @@
1
1
  # The SDK version
2
2
  # x-release-please-start-version
3
- VERSION: str = '1.52.0'
3
+ VERSION: str = '1.53.0'
4
4
  # x-release-please-end
@@ -123760,6 +123760,24 @@ msgraph.generated.models.ProtectedContent::|public|odata_type(value:str):None
123760
123760
  msgraph.generated.models.ProtectedContent::|public|serialize(writer:SerializationWriter):None
123761
123761
  msgraph.generated.models.ProtectedContent::|static|public|create_from_discriminator_value(parse_node:ParseNode):ProtectedContent
123762
123762
  msgraph.generated.models.ProtectedContent~~>AdditionalDataHolder; BackedModel; Parsable
123763
+ msgraph.generated.models.ProtectionPolicyArtifactCount::|public|additional_data():dict[str, Any]
123764
+ msgraph.generated.models.ProtectionPolicyArtifactCount::|public|additional_data(value:dict[str, Any]):None
123765
+ msgraph.generated.models.ProtectionPolicyArtifactCount::|public|backing_store:BackingStore
123766
+ msgraph.generated.models.ProtectionPolicyArtifactCount::|public|completed():int
123767
+ msgraph.generated.models.ProtectionPolicyArtifactCount::|public|completed(value:int):None
123768
+ msgraph.generated.models.ProtectionPolicyArtifactCount::|public|constructor():None
123769
+ msgraph.generated.models.ProtectionPolicyArtifactCount::|public|failed():int
123770
+ msgraph.generated.models.ProtectionPolicyArtifactCount::|public|failed(value:int):None
123771
+ msgraph.generated.models.ProtectionPolicyArtifactCount::|public|get_field_deserializers():dict[str, Callable[[ParseNode], None]]
123772
+ msgraph.generated.models.ProtectionPolicyArtifactCount::|public|in_progress():int
123773
+ msgraph.generated.models.ProtectionPolicyArtifactCount::|public|in_progress(value:int):None
123774
+ msgraph.generated.models.ProtectionPolicyArtifactCount::|public|odata_type():str
123775
+ msgraph.generated.models.ProtectionPolicyArtifactCount::|public|odata_type(value:str):None
123776
+ msgraph.generated.models.ProtectionPolicyArtifactCount::|public|serialize(writer:SerializationWriter):None
123777
+ msgraph.generated.models.ProtectionPolicyArtifactCount::|public|total():int
123778
+ msgraph.generated.models.ProtectionPolicyArtifactCount::|public|total(value:int):None
123779
+ msgraph.generated.models.ProtectionPolicyArtifactCount::|static|public|create_from_discriminator_value(parse_node:ParseNode):ProtectionPolicyArtifactCount
123780
+ msgraph.generated.models.ProtectionPolicyArtifactCount~~>AdditionalDataHolder; BackedModel; Parsable
123763
123781
  msgraph.generated.models.ProtectionPolicyBase-->Entity
123764
123782
  msgraph.generated.models.ProtectionPolicyBase::|public|constructor():None
123765
123783
  msgraph.generated.models.ProtectionPolicyBase::|public|created_by():IdentitySet
@@ -123769,11 +123787,15 @@ msgraph.generated.models.ProtectionPolicyBase::|public|created_date_time(value:d
123769
123787
  msgraph.generated.models.ProtectionPolicyBase::|public|display_name():str
123770
123788
  msgraph.generated.models.ProtectionPolicyBase::|public|display_name(value:str):None
123771
123789
  msgraph.generated.models.ProtectionPolicyBase::|public|get_field_deserializers():dict[str, Callable[[ParseNode], None]]
123790
+ msgraph.generated.models.ProtectionPolicyBase::|public|is_enabled():bool
123791
+ msgraph.generated.models.ProtectionPolicyBase::|public|is_enabled(value:bool):None
123772
123792
  msgraph.generated.models.ProtectionPolicyBase::|public|last_modified_by():IdentitySet
123773
123793
  msgraph.generated.models.ProtectionPolicyBase::|public|last_modified_by(value:IdentitySet):None
123774
123794
  msgraph.generated.models.ProtectionPolicyBase::|public|last_modified_date_time():datetime.datetime
123775
123795
  msgraph.generated.models.ProtectionPolicyBase::|public|last_modified_date_time(value:datetime.datetime):None
123776
123796
  msgraph.generated.models.ProtectionPolicyBase::|public|odata_type:str
123797
+ msgraph.generated.models.ProtectionPolicyBase::|public|protection_policy_artifact_count():ProtectionPolicyArtifactCount
123798
+ msgraph.generated.models.ProtectionPolicyBase::|public|protection_policy_artifact_count(value:ProtectionPolicyArtifactCount):None
123777
123799
  msgraph.generated.models.ProtectionPolicyBase::|public|retention_settings():list[RetentionSetting]
123778
123800
  msgraph.generated.models.ProtectionPolicyBase::|public|retention_settings(value:list[RetentionSetting]):None
123779
123801
  msgraph.generated.models.ProtectionPolicyBase::|public|serialize(writer:SerializationWriter):None
@@ -129141,6 +129163,8 @@ msgraph.generated.models.security.Incident::|public|last_modified_by(value:str):
129141
129163
  msgraph.generated.models.security.Incident::|public|last_update_date_time():datetime.datetime
129142
129164
  msgraph.generated.models.security.Incident::|public|last_update_date_time(value:datetime.datetime):None
129143
129165
  msgraph.generated.models.security.Incident::|public|odata_type:str
129166
+ msgraph.generated.models.security.Incident::|public|priority_score():int
129167
+ msgraph.generated.models.security.Incident::|public|priority_score(value:int):None
129144
129168
  msgraph.generated.models.security.Incident::|public|redirect_incident_id():str
129145
129169
  msgraph.generated.models.security.Incident::|public|redirect_incident_id(value:str):None
129146
129170
  msgraph.generated.models.security.Incident::|public|resolving_comment():str
@@ -130121,6 +130145,8 @@ msgraph.generated.models.security.Sensor::|public|open_health_issues_count(value
130121
130145
  msgraph.generated.models.security.Sensor::|public|sensor_type():SensorType
130122
130146
  msgraph.generated.models.security.Sensor::|public|sensor_type(value:SensorType):None
130123
130147
  msgraph.generated.models.security.Sensor::|public|serialize(writer:SerializationWriter):None
130148
+ msgraph.generated.models.security.Sensor::|public|service_status():ServiceStatus
130149
+ msgraph.generated.models.security.Sensor::|public|service_status(value:ServiceStatus):None
130124
130150
  msgraph.generated.models.security.Sensor::|public|settings():SensorSettings
130125
130151
  msgraph.generated.models.security.Sensor::|public|settings(value:SensorSettings):None
130126
130152
  msgraph.generated.models.security.Sensor::|public|version():str
@@ -130130,6 +130156,8 @@ msgraph.generated.models.security.SensorCandidate-->Entity
130130
130156
  msgraph.generated.models.security.SensorCandidate::|public|computer_dns_name():str
130131
130157
  msgraph.generated.models.security.SensorCandidate::|public|computer_dns_name(value:str):None
130132
130158
  msgraph.generated.models.security.SensorCandidate::|public|constructor():None
130159
+ msgraph.generated.models.security.SensorCandidate::|public|domain_name():str
130160
+ msgraph.generated.models.security.SensorCandidate::|public|domain_name(value:str):None
130133
130161
  msgraph.generated.models.security.SensorCandidate::|public|get_field_deserializers():dict[str, Callable[[ParseNode], None]]
130134
130162
  msgraph.generated.models.security.SensorCandidate::|public|last_seen_date_time():datetime.datetime
130135
130163
  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
130243
130271
  msgraph.generated.models.security.ServiceSource::0011-MicrosoftSentinel
130244
130272
  msgraph.generated.models.security.ServiceSource::0012-MicrosoftInsiderRiskManagement
130245
130273
  msgraph.generated.models.security.ServiceSource::0013-MicrosoftThreatIntelligence
130274
+ msgraph.generated.models.security.ServiceStatus::0000-Stopped
130275
+ msgraph.generated.models.security.ServiceStatus::0001-Starting
130276
+ msgraph.generated.models.security.ServiceStatus::0002-Running
130277
+ msgraph.generated.models.security.ServiceStatus::0003-Disabled
130278
+ msgraph.generated.models.security.ServiceStatus::0004-Onboarding
130279
+ msgraph.generated.models.security.ServiceStatus::0005-Unknown
130280
+ msgraph.generated.models.security.ServiceStatus::0006-UnknownFutureValue
130246
130281
  msgraph.generated.models.security.SinglePropertySchema::|public|additional_data():dict[str, Any]
130247
130282
  msgraph.generated.models.security.SinglePropertySchema::|public|additional_data(value:dict[str, Any]):None
130248
130283
  msgraph.generated.models.security.SinglePropertySchema::|public|backing_store:BackingStore
@@ -1,5 +1,5 @@
1
1
  {
2
- "descriptionHash": "B772231A114EE0F151C5CAD415592E6EC30B995AF2CC2035B656C76E0001C925D96ED0F43B5BE31AF65452F62E25448AB3A19A7FBECB1096C50BCB71D40F0E49",
2
+ "descriptionHash": "B02CED4D519DAD7AEE3434A50C96EA210737F35497DEDEB8E7604CCBC9B0E4C9C9387FBD5AA8BDCD61AF3F723790969091A25F0BB6E7AF2D2ED117718910B5FC",
3
3
  "descriptionLocation": "../../msgraph-metadata/clean_v10_openapi/openapi.yaml",
4
4
  "lockFileVersion": "1.0.0",
5
5
  "kiotaVersion": "1.30.0",
@@ -0,0 +1,66 @@
1
+ from __future__ import annotations
2
+ from collections.abc import Callable
3
+ from dataclasses import dataclass, field
4
+ from kiota_abstractions.serialization import AdditionalDataHolder, Parsable, ParseNode, SerializationWriter
5
+ from kiota_abstractions.store import BackedModel, BackingStore, BackingStoreFactorySingleton
6
+ from typing import Any, Optional, TYPE_CHECKING, Union
7
+
8
+ @dataclass
9
+ class ProtectionPolicyArtifactCount(AdditionalDataHolder, BackedModel, Parsable):
10
+ # Stores model information.
11
+ backing_store: BackingStore = field(default_factory=BackingStoreFactorySingleton(backing_store_factory=None).backing_store_factory.create_backing_store, repr=False)
12
+
13
+ # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
14
+ additional_data: dict[str, Any] = field(default_factory=dict)
15
+ # The completed property
16
+ completed: Optional[int] = None
17
+ # The failed property
18
+ failed: Optional[int] = None
19
+ # The inProgress property
20
+ in_progress: Optional[int] = None
21
+ # The OdataType property
22
+ odata_type: Optional[str] = None
23
+ # The total property
24
+ total: Optional[int] = None
25
+
26
+ @staticmethod
27
+ def create_from_discriminator_value(parse_node: ParseNode) -> ProtectionPolicyArtifactCount:
28
+ """
29
+ Creates a new instance of the appropriate class based on discriminator value
30
+ param parse_node: The parse node to use to read the discriminator value and create the object
31
+ Returns: ProtectionPolicyArtifactCount
32
+ """
33
+ if parse_node is None:
34
+ raise TypeError("parse_node cannot be null.")
35
+ return ProtectionPolicyArtifactCount()
36
+
37
+ def get_field_deserializers(self,) -> dict[str, Callable[[ParseNode], None]]:
38
+ """
39
+ The deserialization information for the current model
40
+ Returns: dict[str, Callable[[ParseNode], None]]
41
+ """
42
+ fields: dict[str, Callable[[Any], None]] = {
43
+ "completed": lambda n : setattr(self, 'completed', n.get_int_value()),
44
+ "failed": lambda n : setattr(self, 'failed', n.get_int_value()),
45
+ "inProgress": lambda n : setattr(self, 'in_progress', n.get_int_value()),
46
+ "@odata.type": lambda n : setattr(self, 'odata_type', n.get_str_value()),
47
+ "total": lambda n : setattr(self, 'total', n.get_int_value()),
48
+ }
49
+ return fields
50
+
51
+ def serialize(self,writer: SerializationWriter) -> None:
52
+ """
53
+ Serializes information the current object
54
+ param writer: Serialization writer to use to serialize this model
55
+ Returns: None
56
+ """
57
+ if writer is None:
58
+ raise TypeError("writer cannot be null.")
59
+ writer.write_int_value("completed", self.completed)
60
+ writer.write_int_value("failed", self.failed)
61
+ writer.write_int_value("inProgress", self.in_progress)
62
+ writer.write_str_value("@odata.type", self.odata_type)
63
+ writer.write_int_value("total", self.total)
64
+ writer.write_additional_data_value(self.additional_data)
65
+
66
+
@@ -10,6 +10,7 @@ if TYPE_CHECKING:
10
10
  from .exchange_protection_policy import ExchangeProtectionPolicy
11
11
  from .identity_set import IdentitySet
12
12
  from .one_drive_for_business_protection_policy import OneDriveForBusinessProtectionPolicy
13
+ from .protection_policy_artifact_count import ProtectionPolicyArtifactCount
13
14
  from .protection_policy_status import ProtectionPolicyStatus
14
15
  from .retention_setting import RetentionSetting
15
16
  from .share_point_protection_policy import SharePointProtectionPolicy
@@ -24,12 +25,16 @@ class ProtectionPolicyBase(Entity, Parsable):
24
25
  created_date_time: Optional[datetime.datetime] = None
25
26
  # The name of the policy to be created.
26
27
  display_name: Optional[str] = None
28
+ # The isEnabled property
29
+ is_enabled: Optional[bool] = None
27
30
  # The identity of the person who last modified the policy.
28
31
  last_modified_by: Optional[IdentitySet] = None
29
32
  # The timestamp of the last modification of the policy.
30
33
  last_modified_date_time: Optional[datetime.datetime] = None
31
34
  # The OdataType property
32
35
  odata_type: Optional[str] = None
36
+ # The protectionPolicyArtifactCount property
37
+ protection_policy_artifact_count: Optional[ProtectionPolicyArtifactCount] = None
33
38
  # Contains the retention setting details for the policy.
34
39
  retention_settings: Optional[list[RetentionSetting]] = None
35
40
  # The aggregated status of the protection units associated with the policy. The possible values are: inactive, activeWithErrors, updating, active, unknownFutureValue.
@@ -72,6 +77,7 @@ class ProtectionPolicyBase(Entity, Parsable):
72
77
  from .exchange_protection_policy import ExchangeProtectionPolicy
73
78
  from .identity_set import IdentitySet
74
79
  from .one_drive_for_business_protection_policy import OneDriveForBusinessProtectionPolicy
80
+ from .protection_policy_artifact_count import ProtectionPolicyArtifactCount
75
81
  from .protection_policy_status import ProtectionPolicyStatus
76
82
  from .retention_setting import RetentionSetting
77
83
  from .share_point_protection_policy import SharePointProtectionPolicy
@@ -80,6 +86,7 @@ class ProtectionPolicyBase(Entity, Parsable):
80
86
  from .exchange_protection_policy import ExchangeProtectionPolicy
81
87
  from .identity_set import IdentitySet
82
88
  from .one_drive_for_business_protection_policy import OneDriveForBusinessProtectionPolicy
89
+ from .protection_policy_artifact_count import ProtectionPolicyArtifactCount
83
90
  from .protection_policy_status import ProtectionPolicyStatus
84
91
  from .retention_setting import RetentionSetting
85
92
  from .share_point_protection_policy import SharePointProtectionPolicy
@@ -88,8 +95,10 @@ class ProtectionPolicyBase(Entity, Parsable):
88
95
  "createdBy": lambda n : setattr(self, 'created_by', n.get_object_value(IdentitySet)),
89
96
  "createdDateTime": lambda n : setattr(self, 'created_date_time', n.get_datetime_value()),
90
97
  "displayName": lambda n : setattr(self, 'display_name', n.get_str_value()),
98
+ "isEnabled": lambda n : setattr(self, 'is_enabled', n.get_bool_value()),
91
99
  "lastModifiedBy": lambda n : setattr(self, 'last_modified_by', n.get_object_value(IdentitySet)),
92
100
  "lastModifiedDateTime": lambda n : setattr(self, 'last_modified_date_time', n.get_datetime_value()),
101
+ "protectionPolicyArtifactCount": lambda n : setattr(self, 'protection_policy_artifact_count', n.get_object_value(ProtectionPolicyArtifactCount)),
93
102
  "retentionSettings": lambda n : setattr(self, 'retention_settings', n.get_collection_of_object_values(RetentionSetting)),
94
103
  "status": lambda n : setattr(self, 'status', n.get_enum_value(ProtectionPolicyStatus)),
95
104
  }
@@ -109,8 +118,10 @@ class ProtectionPolicyBase(Entity, Parsable):
109
118
  writer.write_object_value("createdBy", self.created_by)
110
119
  writer.write_datetime_value("createdDateTime", self.created_date_time)
111
120
  writer.write_str_value("displayName", self.display_name)
121
+ writer.write_bool_value("isEnabled", self.is_enabled)
112
122
  writer.write_object_value("lastModifiedBy", self.last_modified_by)
113
123
  writer.write_datetime_value("lastModifiedDateTime", self.last_modified_date_time)
124
+ writer.write_object_value("protectionPolicyArtifactCount", self.protection_policy_artifact_count)
114
125
  writer.write_collection_of_object_values("retentionSettings", self.retention_settings)
115
126
  writer.write_enum_value("status", self.status)
116
127
 
@@ -44,7 +44,7 @@ class Alert(Entity, Parsable):
44
44
  custom_details: Optional[Dictionary] = None
45
45
  # String value describing each alert.
46
46
  description: Optional[str] = None
47
- # 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.
47
+ # Detection technology or sensor that identified the notable component or activity.
48
48
  detection_source: Optional[DetectionSource] = None
49
49
  # The ID of the detector that triggered the alert.
50
50
  detector_id: Optional[str] = None
@@ -44,6 +44,8 @@ class Incident(Entity, Parsable):
44
44
  last_update_date_time: Optional[datetime.datetime] = None
45
45
  # The OdataType property
46
46
  odata_type: Optional[str] = None
47
+ # The priorityScore property
48
+ priority_score: Optional[int] = None
47
49
  # 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.
48
50
  redirect_incident_id: Optional[str] = None
49
51
  # User input that explains the resolution of the incident and the classification choice. This property contains free editable text.
@@ -104,6 +106,7 @@ class Incident(Entity, Parsable):
104
106
  "incidentWebUrl": lambda n : setattr(self, 'incident_web_url', n.get_str_value()),
105
107
  "lastModifiedBy": lambda n : setattr(self, 'last_modified_by', n.get_str_value()),
106
108
  "lastUpdateDateTime": lambda n : setattr(self, 'last_update_date_time', n.get_datetime_value()),
109
+ "priorityScore": lambda n : setattr(self, 'priority_score', n.get_int_value()),
107
110
  "redirectIncidentId": lambda n : setattr(self, 'redirect_incident_id', n.get_str_value()),
108
111
  "resolvingComment": lambda n : setattr(self, 'resolving_comment', n.get_str_value()),
109
112
  "severity": lambda n : setattr(self, 'severity', n.get_enum_value(AlertSeverity)),
@@ -137,6 +140,7 @@ class Incident(Entity, Parsable):
137
140
  writer.write_str_value("incidentWebUrl", self.incident_web_url)
138
141
  writer.write_str_value("lastModifiedBy", self.last_modified_by)
139
142
  writer.write_datetime_value("lastUpdateDateTime", self.last_update_date_time)
143
+ writer.write_int_value("priorityScore", self.priority_score)
140
144
  writer.write_str_value("redirectIncidentId", self.redirect_incident_id)
141
145
  writer.write_str_value("resolvingComment", self.resolving_comment)
142
146
  writer.write_enum_value("severity", self.severity)
@@ -12,6 +12,7 @@ if TYPE_CHECKING:
12
12
  from .sensor_health_status import SensorHealthStatus
13
13
  from .sensor_settings import SensorSettings
14
14
  from .sensor_type import SensorType
15
+ from .service_status import ServiceStatus
15
16
 
16
17
  from ..entity import Entity
17
18
 
@@ -35,6 +36,8 @@ class Sensor(Entity, Parsable):
35
36
  open_health_issues_count: Optional[int] = None
36
37
  # The sensorType property
37
38
  sensor_type: Optional[SensorType] = None
39
+ # The serviceStatus property
40
+ service_status: Optional[ServiceStatus] = None
38
41
  # The settings property
39
42
  settings: Optional[SensorSettings] = None
40
43
  # The version of the sensor.
@@ -62,6 +65,7 @@ class Sensor(Entity, Parsable):
62
65
  from .sensor_health_status import SensorHealthStatus
63
66
  from .sensor_settings import SensorSettings
64
67
  from .sensor_type import SensorType
68
+ from .service_status import ServiceStatus
65
69
 
66
70
  from ..entity import Entity
67
71
  from .deployment_status import DeploymentStatus
@@ -69,6 +73,7 @@ class Sensor(Entity, Parsable):
69
73
  from .sensor_health_status import SensorHealthStatus
70
74
  from .sensor_settings import SensorSettings
71
75
  from .sensor_type import SensorType
76
+ from .service_status import ServiceStatus
72
77
 
73
78
  fields: dict[str, Callable[[Any], None]] = {
74
79
  "createdDateTime": lambda n : setattr(self, 'created_date_time', n.get_datetime_value()),
@@ -79,6 +84,7 @@ class Sensor(Entity, Parsable):
79
84
  "healthStatus": lambda n : setattr(self, 'health_status', n.get_enum_value(SensorHealthStatus)),
80
85
  "openHealthIssuesCount": lambda n : setattr(self, 'open_health_issues_count', n.get_int_value()),
81
86
  "sensorType": lambda n : setattr(self, 'sensor_type', n.get_enum_value(SensorType)),
87
+ "serviceStatus": lambda n : setattr(self, 'service_status', n.get_enum_value(ServiceStatus)),
82
88
  "settings": lambda n : setattr(self, 'settings', n.get_object_value(SensorSettings)),
83
89
  "version": lambda n : setattr(self, 'version', n.get_str_value()),
84
90
  }
@@ -103,6 +109,7 @@ class Sensor(Entity, Parsable):
103
109
  writer.write_enum_value("healthStatus", self.health_status)
104
110
  writer.write_int_value("openHealthIssuesCount", self.open_health_issues_count)
105
111
  writer.write_enum_value("sensorType", self.sensor_type)
112
+ writer.write_enum_value("serviceStatus", self.service_status)
106
113
  writer.write_object_value("settings", self.settings)
107
114
  writer.write_str_value("version", self.version)
108
115
 
@@ -14,6 +14,8 @@ from ..entity import Entity
14
14
  class SensorCandidate(Entity, Parsable):
15
15
  # The DNS name of the computer associated with the sensor.
16
16
  computer_dns_name: Optional[str] = None
17
+ # The domain name of the sensor.
18
+ domain_name: Optional[str] = None
17
19
  # The date and time when the sensor was last seen.
18
20
  last_seen_date_time: Optional[datetime.datetime] = None
19
21
  # The OdataType property
@@ -43,6 +45,7 @@ class SensorCandidate(Entity, Parsable):
43
45
 
44
46
  fields: dict[str, Callable[[Any], None]] = {
45
47
  "computerDnsName": lambda n : setattr(self, 'computer_dns_name', n.get_str_value()),
48
+ "domainName": lambda n : setattr(self, 'domain_name', n.get_str_value()),
46
49
  "lastSeenDateTime": lambda n : setattr(self, 'last_seen_date_time', n.get_datetime_value()),
47
50
  "senseClientVersion": lambda n : setattr(self, 'sense_client_version', n.get_str_value()),
48
51
  }
@@ -60,6 +63,7 @@ class SensorCandidate(Entity, Parsable):
60
63
  raise TypeError("writer cannot be null.")
61
64
  super().serialize(writer)
62
65
  writer.write_str_value("computerDnsName", self.computer_dns_name)
66
+ writer.write_str_value("domainName", self.domain_name)
63
67
  writer.write_datetime_value("lastSeenDateTime", self.last_seen_date_time)
64
68
  writer.write_str_value("senseClientVersion", self.sense_client_version)
65
69
 
@@ -0,0 +1,11 @@
1
+ from enum import Enum
2
+
3
+ class ServiceStatus(str, Enum):
4
+ Stopped = "stopped",
5
+ Starting = "starting",
6
+ Running = "running",
7
+ Disabled = "disabled",
8
+ Onboarding = "onboarding",
9
+ Unknown = "unknown",
10
+ UnknownFutureValue = "unknownFutureValue",
11
+
@@ -122,7 +122,7 @@ class ServicePrincipal(DirectoryObject, Parsable):
122
122
  saml_single_sign_on_settings: Optional[SamlSingleSignOnSettings] = None
123
123
  # 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).
124
124
  service_principal_names: Optional[list[str]] = None
125
- # 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.
125
+ # 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.
126
126
  service_principal_type: Optional[str] = None
127
127
  # 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.
128
128
  sign_in_audience: Optional[str] = None
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: msgraph-sdk
3
- Version: 1.52.0
3
+ Version: 1.53.0
4
4
  Summary: The Microsoft Graph Python SDK
5
5
  Keywords: msgraph,openAPI,Microsoft,Graph
6
6
  Author-email: Microsoft <graphtooling+python@microsoft.com>
@@ -1,11 +1,11 @@
1
1
  msgraph/__init__.py,sha256=z9y3uvhxSkYvEROUONqY_Lg8ORHRDI9mWdeqqPhSWEo,211
2
- msgraph/_version.py,sha256=H_NFwdlw6vDJ50WrgwgrRbmKUhgZ83tuSh8FRLPrT-E,98
2
+ msgraph/_version.py,sha256=pKxUf6d1TcjHk408Y37drHNyVviJWzQGDp5QO6L31IM,98
3
3
  msgraph/graph_request_adapter.py,sha256=t4rnrAb-jWOOzFO2m8fDT9F7DiqSHMMX7CoEToxGNkY,1033
4
4
  msgraph/graph_service_client.py,sha256=KoDB2xwNpbXk3sc1X34-4lFiztLJdqiC8Ku9zbihcsE,2904
5
5
  msgraph/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
6
  msgraph/generated/base_graph_service_client.py,sha256=zXv7Ej4zxRZqn9jkuzSTT63R4a1ubhg6TRlI9HW5-zs,39014
7
- msgraph/generated/kiota-dom-export.txt,sha256=ABSjtHm7hclNKkGROTVZIbX3efGXDXrNTDKCpu7mJsA,32956946
8
- msgraph/generated/kiota-lock.json,sha256=IcGZu2HDYIg9h5TUBPk4HDNdGM6_wehuqhnpLwuBA_Y,1421
7
+ msgraph/generated/kiota-dom-export.txt,sha256=4Ywrwtv3C9plRyPEK2kxdpKmA8QAD17TjGIPp_9Uapc,32960006
8
+ msgraph/generated/kiota-lock.json,sha256=vEkkqSUXvf4v266gCq3RdkEl6p6Nw0Rku7s3VjPLzHA,1421
9
9
  msgraph/generated/admin/admin_request_builder.py,sha256=JStkuG6-NtggbEDRZYeU_ULPIgYpIWRyWOVmyD7_LYY,10078
10
10
  msgraph/generated/admin/edge/edge_request_builder.py,sha256=pw3s08tg9OakRr09USd6YdX1fTLomFuUxnLDmCCXazg,9487
11
11
  msgraph/generated/admin/edge/internet_explorer_mode/internet_explorer_mode_request_builder.py,sha256=mU0u6DC0DxzxQMaHforG5HIoWNPkjYB88E12xRSw6W4,9908
@@ -8856,7 +8856,8 @@ msgraph/generated/models/prompt_login_behavior.py,sha256=WDTVuegLuIKUee_XNKWomQw
8856
8856
  msgraph/generated/models/pronouns_settings.py,sha256=lz2Agzc35QMnCUH_aZYQxuGm-DZ-cEe8dY00Pl4eO40,2148
8857
8857
  msgraph/generated/models/protected_application_metadata.py,sha256=WLz7zaac4NFSudHYdmazz82-QHgIjjxeb3DVDlxhY1A,2564
8858
8858
  msgraph/generated/models/protected_content.py,sha256=b9XoaJck2PKSU9ROEFz4ObYaywgh3pEY7OphKfo-pAw,2855
8859
- msgraph/generated/models/protection_policy_base.py,sha256=-Kr3tWxdcyqIlrI2k0g7NpbY0q8F_s18gnIVJMhkUVQ,6154
8859
+ msgraph/generated/models/protection_policy_artifact_count.py,sha256=ytXhThti1DhyLbXofKaDoRF6y8KxwgIdUZnSQumjJnU,3096
8860
+ msgraph/generated/models/protection_policy_base.py,sha256=ERKxECuLxSk9M09VoRXnNp5YEnPe4rQojp0z07t_AU4,7014
8860
8861
  msgraph/generated/models/protection_policy_base_collection_response.py,sha256=5svQLEz8yi-5TfLWZ8RyZbkbFWLT0dsR52obL1KMaBE,2534
8861
8862
  msgraph/generated/models/protection_policy_status.py,sha256=ytr4ox8kSkEj6lrD5Rt_rafe-Fl1Ft5D33vgXBjkOkQ,232
8862
8863
  msgraph/generated/models/protection_rule_base.py,sha256=ghQ6axkcFmTkBUJ2uqgxZuG_mSoVqtGs-vg-Z-B5X88,5967
@@ -9133,7 +9134,7 @@ msgraph/generated/models/service_health_origin.py,sha256=nf73gpw3vGY6BPlzIAmYKtV
9133
9134
  msgraph/generated/models/service_health_status.py,sha256=5OHfoGbqCdSKSOcXP298WRCp_OhGFI0dV7gFpg310P8,816
9134
9135
  msgraph/generated/models/service_hosted_media_config.py,sha256=TomL__Z7B8xtc8IlNxIGcNSsJEIMK81RnFGqVqhdc58,2305
9135
9136
  msgraph/generated/models/service_plan_info.py,sha256=hdKA3sC5n8ScxwGF8fT690OTxkH49uj-DccKO4z01SQ,3922
9136
- msgraph/generated/models/service_principal.py,sha256=ClgXkqNzc_Uxof7uoayaTK-3-jPOsJ4xQkZCvM8bzgY,31144
9137
+ msgraph/generated/models/service_principal.py,sha256=RrbomZ6JX_0Vnn4haTZ942BwK0_JTJ2JlynE07qC9NE,31225
9137
9138
  msgraph/generated/models/service_principal_collection_response.py,sha256=z6zVPjs-WFsVnic_F9gTqck_GJJwjU3bXlsmGyFsweA,2483
9138
9139
  msgraph/generated/models/service_principal_identity.py,sha256=c0rr1XchnXVdpsBFL7QL96rHOEHgp-f4ZnFhJBnvEIE,2073
9139
9140
  msgraph/generated/models/service_principal_lock_configuration.py,sha256=w3rFOCNEUG_KPA_36vdV03ObQflxiF46tefgzfro67c,4188
@@ -10159,7 +10160,7 @@ msgraph/generated/models/security/additional_data_options.py,sha256=q2SCm4Ji_vxe
10159
10160
  msgraph/generated/models/security/additional_options.py,sha256=JkWtgBSkm9SV8QXVnPATTcQBz0GP_udzzrt_gUyUbiw,690
10160
10161
  msgraph/generated/models/security/ai_agent_evidence.py,sha256=5iUYQxFmSYIoMhgXDNBGBR9bJocnL-jiZWd0UZrewJ8,3102
10161
10162
  msgraph/generated/models/security/ai_agent_platform.py,sha256=MXz1chs9jXtYXXPigqsaQmgt9EMQgfzPnhiQ5GTnVA4,231
10162
- msgraph/generated/models/security/alert.py,sha256=MSV7Vt9SfXusHIyupB2mwxqHCBFkEiPCSkob4IHsK0g,15508
10163
+ msgraph/generated/models/security/alert.py,sha256=k4vCbe2rA3TccRzDVfB3Oq7PdCYVoeEnB_Qx-SsfH34,13917
10163
10164
  msgraph/generated/models/security/alert_classification.py,sha256=agQc-CsuyspKi9UyaZxZ8n8tO934fhYC_Jth1ySE_nc,275
10164
10165
  msgraph/generated/models/security/alert_collection_response.py,sha256=IKr_j7Nt8LCejqrV6HZ_rfc_EhbCqNKDvX37fW5LzgA,2352
10165
10166
  msgraph/generated/models/security/alert_comment.py,sha256=P7wWLupRfiY7YdWjKdLMb8RcHFqQJ5E7QrvpUPB0dd8,3024
@@ -10328,7 +10329,7 @@ msgraph/generated/models/security/identity_accounts.py,sha256=GMEypFzZ9A_mFt9L5d
10328
10329
  msgraph/generated/models/security/identity_accounts_collection_response.py,sha256=ArTOOZFkNNk0Qhojp-KGPPdqp3ttmXcLvY8ka4hZwpE,2487
10329
10330
  msgraph/generated/models/security/identity_container.py,sha256=ZVZWGg3tkAhB112ZY1WF9g_Gjcq2ePCLrIMUGz_IANo,4549
10330
10331
  msgraph/generated/models/security/identity_provider.py,sha256=CUY336MsAODi9OWAm1eegB_J8pPB4sevCM0OT_CVzO8,191
10331
- msgraph/generated/models/security/incident.py,sha256=CX6alGrOF2gujEEZg9V-9YW7QPW9QAydwbQ1-qQdfcI,8382
10332
+ msgraph/generated/models/security/incident.py,sha256=mc-erSM_g7yroVLUznvv0zECGkXoStEI_LGhQc0Q5Y4,8617
10332
10333
  msgraph/generated/models/security/incident_collection_response.py,sha256=7TFkjMg3Ts5-8qPRjRukCtAQatEpeBzLs9TXTX6HyKc,2388
10333
10334
  msgraph/generated/models/security/incident_status.py,sha256=U45Y8IRcgrWglkpbupwznWsT7BlBxNvNr9SRV00OSCU,255
10334
10335
  msgraph/generated/models/security/indicator.py,sha256=nTAQJSN_2YHtrG9XX4ECNcVpOnvMj5A3KzJc4BVS6OI,3550
@@ -10398,8 +10399,8 @@ msgraph/generated/models/security/sas_token_evidence.py,sha256=KQr9MdE0ARBXAlotj
10398
10399
  msgraph/generated/models/security/search.py,sha256=di0asMdyUd-hlZ_NoY_t2MrianFuCsyZJ7RKXQoEh9Y,4702
10399
10400
  msgraph/generated/models/security/security.py,sha256=6URtwhsTeoyXl-ANMzfHPT5NCIsHK7cW5mLr33a2yWo,8105
10400
10401
  msgraph/generated/models/security/security_group_evidence.py,sha256=w4bXG2ZvZtOTByQZH1AGcRDggpXNLQ7LYhKRCOpsaCA,3471
10401
- msgraph/generated/models/security/sensor.py,sha256=8O-z5zFXqJlLLpGDvbljN7AiDFBU5foGK5KFwcqPBTs,5398
10402
- msgraph/generated/models/security/sensor_candidate.py,sha256=qpPM8nPoEcNX_Wpc9xYRMX6VufDgx-73e5cfTJ7L3zE,2674
10402
+ msgraph/generated/models/security/sensor.py,sha256=DVTGjo6MWrf8WTamqeTMuBxMtk3pHb-djSras7wqFd4,5804
10403
+ msgraph/generated/models/security/sensor_candidate.py,sha256=ePmzeBeUViQbJ29F5QFkhur81Qmonx5LfTkU0E-uDys,2898
10403
10404
  msgraph/generated/models/security/sensor_candidate_activation_configuration.py,sha256=raOEw8HkJmIDdlql_naSq6uhzb7k-3rWgxeMgUI18pc,2401
10404
10405
  msgraph/generated/models/security/sensor_candidate_activation_mode.py,sha256=9Xt-V0UKogsEO2xQcgGtnoTUAMzf7am2UJ3xv_nyKWk,171
10405
10406
  msgraph/generated/models/security/sensor_candidate_collection_response.py,sha256=9rqcKN7qZHCfS0KDknoh1tJUXpHFSKHQxAPKr6vJSkI,2475
@@ -10411,6 +10412,7 @@ msgraph/generated/models/security/sensor_type.py,sha256=SQHvz1Iwph_3-phVkpA15mvj
10411
10412
  msgraph/generated/models/security/service_principal_evidence.py,sha256=A1dpOfHGeWDfhNLUH0ZdOfcElnoEitmIsRsK7WVNncE,3658
10412
10413
  msgraph/generated/models/security/service_principal_type.py,sha256=LxviVLNih36-L9xxJqSwldKWippCTSDZUpzc2i-dwlY,232
10413
10414
  msgraph/generated/models/security/service_source.py,sha256=sX-5A4rUpoFRFQd7abJIn1LpoAsQhujzGDw3lB4L73E,856
10415
+ msgraph/generated/models/security/service_status.py,sha256=rO4wXlWECVyuPpRZQeQx8TpvfjPvSde8IX0rZUP9rPk,263
10414
10416
  msgraph/generated/models/security/single_property_schema.py,sha256=rOMGpBVuTbDiupXKiYKJwzyqBhdB6b0F2sJVgQaKJYg,2633
10415
10417
  msgraph/generated/models/security/site_source.py,sha256=LBSuD7HN2VXDUcvBF2_xkOq0S--KvbKBuoRpbF4Q0ts,2094
10416
10418
  msgraph/generated/models/security/site_source_collection_response.py,sha256=Opytf0MN-N0wv4tUZNzaoPQqL4aC7ie8w3zy_MpABNg,2415
@@ -14668,7 +14670,7 @@ msgraph/generated/users/item/wipe_managed_app_registrations_by_device_tag/wipe_m
14668
14670
  msgraph/generated/users/validate_properties/validate_properties_post_request_body.py,sha256=d7byBhVBxhmN0jEHKTrPuu4enDvOYFq6ZD-NyoMHrdo,3054
14669
14671
  msgraph/generated/users/validate_properties/validate_properties_request_builder.py,sha256=yha6wDN26GoeGwoxhFwW0WjPMeiYLCf8Latq-yAxy68,6370
14670
14672
  msgraph/generated/users_with_user_principal_name/users_with_user_principal_name_request_builder.py,sha256=pZKcmsFGR3DlVagfIIi2F2j9Ft7KtA_OseRITV9ormY,12210
14671
- msgraph_sdk-1.52.0.dist-info/licenses/LICENSE,sha256=ws_MuBL-SCEBqPBFl9_FqZkaaydIJmxHrJG2parhU4M,1141
14672
- msgraph_sdk-1.52.0.dist-info/WHEEL,sha256=G2gURzTEtmeR8nrdXUJfNiB3VYVxigPQ-bEQujpNiNs,82
14673
- msgraph_sdk-1.52.0.dist-info/METADATA,sha256=fT8j6Ya5LXIUs9Se6ezQdQqNY8lutC2js3fOlRgAqZ8,13330
14674
- msgraph_sdk-1.52.0.dist-info/RECORD,,
14673
+ msgraph_sdk-1.53.0.dist-info/licenses/LICENSE,sha256=ws_MuBL-SCEBqPBFl9_FqZkaaydIJmxHrJG2parhU4M,1141
14674
+ msgraph_sdk-1.53.0.dist-info/WHEEL,sha256=G2gURzTEtmeR8nrdXUJfNiB3VYVxigPQ-bEQujpNiNs,82
14675
+ msgraph_sdk-1.53.0.dist-info/METADATA,sha256=Du7bb16gVNXDuA0zX0OLgCFIoM1wAjgloEA-TiqzARo,13330
14676
+ msgraph_sdk-1.53.0.dist-info/RECORD,,