msgraph-sdk 1.52.0__py3-none-any.whl → 1.54.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 +1 -1
- msgraph/generated/admin/teams/policy/microsoft_graph_teams_administration_get_policy_id_with_type_with_name/get_policy_id_with_type_with_name_get_response.py +58 -0
- msgraph/generated/admin/teams/policy/microsoft_graph_teams_administration_get_policy_id_with_type_with_name/microsoft_graph_teams_administration_get_policy_id_with_type_with_name_request_builder.py +143 -0
- msgraph/generated/admin/teams/policy/policy_request_builder.py +214 -0
- msgraph/generated/admin/teams/policy/user_assignments/count/count_request_builder.py +104 -0
- msgraph/generated/admin/teams/policy/user_assignments/item/teams_policy_user_assignment_item_request_builder.py +188 -0
- msgraph/generated/admin/teams/policy/user_assignments/microsoft_graph_teams_administration_assign/assign_post_request_body.py +57 -0
- msgraph/generated/admin/teams/policy/user_assignments/microsoft_graph_teams_administration_assign/microsoft_graph_teams_administration_assign_request_builder.py +87 -0
- msgraph/generated/admin/teams/policy/user_assignments/microsoft_graph_teams_administration_unassign/microsoft_graph_teams_administration_unassign_request_builder.py +87 -0
- msgraph/generated/admin/teams/policy/user_assignments/microsoft_graph_teams_administration_unassign/unassign_post_request_body.py +57 -0
- msgraph/generated/admin/teams/policy/user_assignments/user_assignments_request_builder.py +228 -0
- msgraph/generated/admin/teams/teams_request_builder.py +13 -3
- msgraph/generated/kiota-dom-export.txt +453 -25
- msgraph/generated/kiota-lock.json +2 -2
- msgraph/generated/models/admin.py +1 -1
- msgraph/generated/models/ai_agent_info.py +57 -0
- msgraph/generated/models/ai_interaction_entity.py +85 -0
- msgraph/generated/models/ai_interaction_plugin.py +14 -23
- msgraph/generated/models/authentication.py +7 -0
- msgraph/generated/models/authentication_method.py +12 -0
- msgraph/generated/models/cloud_pc_domain_join_configuration.py +1 -1
- msgraph/generated/models/cloud_pc_on_premises_connection_health_check.py +1 -1
- msgraph/generated/models/entity.py +35 -0
- msgraph/generated/models/external_authentication_method.py +61 -0
- msgraph/generated/models/external_authentication_method_collection_response.py +58 -0
- msgraph/generated/models/fido2_authentication_method.py +0 -5
- msgraph/generated/models/identity_provider_base.py +7 -0
- msgraph/generated/models/microsoft_authenticator_authentication_method.py +0 -5
- msgraph/generated/models/oidc_address_inbound_claims.py +70 -0
- msgraph/generated/models/oidc_client_authentication.py +73 -0
- msgraph/generated/models/oidc_client_secret_authentication.py +57 -0
- msgraph/generated/models/oidc_identity_provider.py +90 -0
- msgraph/generated/models/oidc_inbound_claim_mapping_override.py +93 -0
- msgraph/generated/models/oidc_private_jwt_key_client_authentication.py +53 -0
- msgraph/generated/models/oidc_response_type.py +8 -0
- msgraph/generated/models/password_authentication_method.py +0 -5
- msgraph/generated/models/platform_credential_authentication_method.py +0 -5
- msgraph/generated/models/process_conversation_metadata.py +14 -0
- msgraph/generated/models/protection_policy_artifact_count.py +66 -0
- msgraph/generated/models/protection_policy_base.py +11 -0
- msgraph/generated/models/resource_access_detail.py +92 -0
- msgraph/generated/models/resource_access_status.py +8 -0
- msgraph/generated/models/resource_access_type.py +9 -0
- msgraph/generated/models/security/alert.py +1 -1
- msgraph/generated/models/security/ediscovery_purge_data_operation.py +7 -0
- msgraph/generated/models/security/incident.py +4 -0
- msgraph/generated/models/security/sensor.py +7 -0
- msgraph/generated/models/security/sensor_candidate.py +4 -0
- msgraph/generated/models/security/service_status.py +11 -0
- msgraph/generated/models/service_principal.py +1 -1
- msgraph/generated/models/teams_administration/policy_identifier_detail.py +61 -0
- msgraph/generated/models/teams_administration/teams_admin_root.py +8 -1
- msgraph/generated/models/teams_administration/teams_policy_assignment.py +60 -0
- msgraph/generated/models/teams_administration/teams_policy_user_assignment.py +65 -0
- msgraph/generated/models/teams_administration/teams_policy_user_assignment_collection_response.py +58 -0
- msgraph/generated/models/temporary_access_pass_authentication_method.py +0 -4
- msgraph/generated/models/usage_rights.py +1 -0
- msgraph/generated/models/windows_hello_for_business_authentication_method.py +0 -5
- msgraph/generated/policies/authentication_methods_policy/authentication_method_configurations/authentication_method_configurations_request_builder.py +3 -3
- msgraph/generated/policies/authentication_methods_policy/authentication_method_configurations/item/authentication_method_configuration_item_request_builder.py +10 -7
- msgraph/generated/users/item/authentication/authentication_request_builder.py +10 -0
- msgraph/generated/users/item/authentication/external_authentication_methods/count/count_request_builder.py +104 -0
- msgraph/generated/users/item/authentication/external_authentication_methods/external_authentication_methods_request_builder.py +209 -0
- msgraph/generated/users/item/authentication/external_authentication_methods/item/external_authentication_method_item_request_builder.py +189 -0
- {msgraph_sdk-1.52.0.dist-info → msgraph_sdk-1.54.0.dist-info}/METADATA +1 -1
- {msgraph_sdk-1.52.0.dist-info → msgraph_sdk-1.54.0.dist-info}/RECORD +68 -35
- {msgraph_sdk-1.52.0.dist-info → msgraph_sdk-1.54.0.dist-info}/WHEEL +0 -0
- {msgraph_sdk-1.52.0.dist-info → msgraph_sdk-1.54.0.dist-info}/licenses/LICENSE +0 -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
|
|
|
@@ -0,0 +1,92 @@
|
|
|
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
|
+
if TYPE_CHECKING:
|
|
9
|
+
from .resource_access_status import ResourceAccessStatus
|
|
10
|
+
from .resource_access_type import ResourceAccessType
|
|
11
|
+
|
|
12
|
+
@dataclass
|
|
13
|
+
class ResourceAccessDetail(AdditionalDataHolder, BackedModel, Parsable):
|
|
14
|
+
# Stores model information.
|
|
15
|
+
backing_store: BackingStore = field(default_factory=BackingStoreFactorySingleton(backing_store_factory=None).backing_store_factory.create_backing_store, repr=False)
|
|
16
|
+
|
|
17
|
+
# Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
|
18
|
+
additional_data: dict[str, Any] = field(default_factory=dict)
|
|
19
|
+
# The accessType property
|
|
20
|
+
access_type: Optional[ResourceAccessType] = None
|
|
21
|
+
# The identifier property
|
|
22
|
+
identifier: Optional[str] = None
|
|
23
|
+
# The isCrossPromptInjectionDetected property
|
|
24
|
+
is_cross_prompt_injection_detected: Optional[bool] = None
|
|
25
|
+
# The labelId property
|
|
26
|
+
label_id: Optional[str] = None
|
|
27
|
+
# The name property
|
|
28
|
+
name: Optional[str] = None
|
|
29
|
+
# The OdataType property
|
|
30
|
+
odata_type: Optional[str] = None
|
|
31
|
+
# The status property
|
|
32
|
+
status: Optional[ResourceAccessStatus] = None
|
|
33
|
+
# The storageId property
|
|
34
|
+
storage_id: Optional[str] = None
|
|
35
|
+
# The url property
|
|
36
|
+
url: Optional[str] = None
|
|
37
|
+
|
|
38
|
+
@staticmethod
|
|
39
|
+
def create_from_discriminator_value(parse_node: ParseNode) -> ResourceAccessDetail:
|
|
40
|
+
"""
|
|
41
|
+
Creates a new instance of the appropriate class based on discriminator value
|
|
42
|
+
param parse_node: The parse node to use to read the discriminator value and create the object
|
|
43
|
+
Returns: ResourceAccessDetail
|
|
44
|
+
"""
|
|
45
|
+
if parse_node is None:
|
|
46
|
+
raise TypeError("parse_node cannot be null.")
|
|
47
|
+
return ResourceAccessDetail()
|
|
48
|
+
|
|
49
|
+
def get_field_deserializers(self,) -> dict[str, Callable[[ParseNode], None]]:
|
|
50
|
+
"""
|
|
51
|
+
The deserialization information for the current model
|
|
52
|
+
Returns: dict[str, Callable[[ParseNode], None]]
|
|
53
|
+
"""
|
|
54
|
+
from .resource_access_status import ResourceAccessStatus
|
|
55
|
+
from .resource_access_type import ResourceAccessType
|
|
56
|
+
|
|
57
|
+
from .resource_access_status import ResourceAccessStatus
|
|
58
|
+
from .resource_access_type import ResourceAccessType
|
|
59
|
+
|
|
60
|
+
fields: dict[str, Callable[[Any], None]] = {
|
|
61
|
+
"accessType": lambda n : setattr(self, 'access_type', n.get_collection_of_enum_values(ResourceAccessType)),
|
|
62
|
+
"identifier": lambda n : setattr(self, 'identifier', n.get_str_value()),
|
|
63
|
+
"isCrossPromptInjectionDetected": lambda n : setattr(self, 'is_cross_prompt_injection_detected', n.get_bool_value()),
|
|
64
|
+
"labelId": lambda n : setattr(self, 'label_id', n.get_str_value()),
|
|
65
|
+
"name": lambda n : setattr(self, 'name', n.get_str_value()),
|
|
66
|
+
"@odata.type": lambda n : setattr(self, 'odata_type', n.get_str_value()),
|
|
67
|
+
"status": lambda n : setattr(self, 'status', n.get_enum_value(ResourceAccessStatus)),
|
|
68
|
+
"storageId": lambda n : setattr(self, 'storage_id', n.get_str_value()),
|
|
69
|
+
"url": lambda n : setattr(self, 'url', n.get_str_value()),
|
|
70
|
+
}
|
|
71
|
+
return fields
|
|
72
|
+
|
|
73
|
+
def serialize(self,writer: SerializationWriter) -> None:
|
|
74
|
+
"""
|
|
75
|
+
Serializes information the current object
|
|
76
|
+
param writer: Serialization writer to use to serialize this model
|
|
77
|
+
Returns: None
|
|
78
|
+
"""
|
|
79
|
+
if writer is None:
|
|
80
|
+
raise TypeError("writer cannot be null.")
|
|
81
|
+
writer.write_enum_value("accessType", self.access_type)
|
|
82
|
+
writer.write_str_value("identifier", self.identifier)
|
|
83
|
+
writer.write_bool_value("isCrossPromptInjectionDetected", self.is_cross_prompt_injection_detected)
|
|
84
|
+
writer.write_str_value("labelId", self.label_id)
|
|
85
|
+
writer.write_str_value("name", self.name)
|
|
86
|
+
writer.write_str_value("@odata.type", self.odata_type)
|
|
87
|
+
writer.write_enum_value("status", self.status)
|
|
88
|
+
writer.write_str_value("storageId", self.storage_id)
|
|
89
|
+
writer.write_str_value("url", self.url)
|
|
90
|
+
writer.write_additional_data_value(self.additional_data)
|
|
91
|
+
|
|
92
|
+
|
|
@@ -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.
|
|
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
|
|
@@ -6,6 +6,7 @@ from typing import Any, Optional, TYPE_CHECKING, Union
|
|
|
6
6
|
|
|
7
7
|
if TYPE_CHECKING:
|
|
8
8
|
from .case_operation import CaseOperation
|
|
9
|
+
from .report_file_metadata import ReportFileMetadata
|
|
9
10
|
|
|
10
11
|
from .case_operation import CaseOperation
|
|
11
12
|
|
|
@@ -13,6 +14,8 @@ from .case_operation import CaseOperation
|
|
|
13
14
|
class EdiscoveryPurgeDataOperation(CaseOperation, Parsable):
|
|
14
15
|
# The OdataType property
|
|
15
16
|
odata_type: Optional[str] = None
|
|
17
|
+
# The purge job report file metadata. It contains the properties for report file metadata, including downloadUrl, fileName, and size.
|
|
18
|
+
report_file_metadata: Optional[list[ReportFileMetadata]] = None
|
|
16
19
|
|
|
17
20
|
@staticmethod
|
|
18
21
|
def create_from_discriminator_value(parse_node: ParseNode) -> EdiscoveryPurgeDataOperation:
|
|
@@ -31,10 +34,13 @@ class EdiscoveryPurgeDataOperation(CaseOperation, Parsable):
|
|
|
31
34
|
Returns: dict[str, Callable[[ParseNode], None]]
|
|
32
35
|
"""
|
|
33
36
|
from .case_operation import CaseOperation
|
|
37
|
+
from .report_file_metadata import ReportFileMetadata
|
|
34
38
|
|
|
35
39
|
from .case_operation import CaseOperation
|
|
40
|
+
from .report_file_metadata import ReportFileMetadata
|
|
36
41
|
|
|
37
42
|
fields: dict[str, Callable[[Any], None]] = {
|
|
43
|
+
"reportFileMetadata": lambda n : setattr(self, 'report_file_metadata', n.get_collection_of_object_values(ReportFileMetadata)),
|
|
38
44
|
}
|
|
39
45
|
super_fields = super().get_field_deserializers()
|
|
40
46
|
fields.update(super_fields)
|
|
@@ -49,5 +55,6 @@ class EdiscoveryPurgeDataOperation(CaseOperation, Parsable):
|
|
|
49
55
|
if writer is None:
|
|
50
56
|
raise TypeError("writer cannot be null.")
|
|
51
57
|
super().serialize(writer)
|
|
58
|
+
writer.write_collection_of_object_values("reportFileMetadata", self.report_file_metadata)
|
|
52
59
|
|
|
53
60
|
|
|
@@ -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
|
+
# A priority score for the incident from 0 to 100, with > 85 being the top priority, 15 - 85 medium priority, and < 15 low priority. This score is generated using machine learning and is based on multiple factors, including severity, disruption impact, threat intelligence, alert types, asset criticality, threat analytics, incident rarity, and additional priority signals. The value can also be null which indicates the feature is not open for the tenant or the value of the score is pending calculation.
|
|
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
|
|
|
@@ -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
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
from collections.abc import Callable
|
|
3
|
+
from dataclasses import dataclass, field
|
|
4
|
+
from kiota_abstractions.serialization import Parsable, ParseNode, SerializationWriter
|
|
5
|
+
from typing import Any, Optional, TYPE_CHECKING, Union
|
|
6
|
+
|
|
7
|
+
if TYPE_CHECKING:
|
|
8
|
+
from ..entity import Entity
|
|
9
|
+
|
|
10
|
+
from ..entity import Entity
|
|
11
|
+
|
|
12
|
+
@dataclass
|
|
13
|
+
class PolicyIdentifierDetail(Entity, Parsable):
|
|
14
|
+
# The display name of the policy instance.
|
|
15
|
+
name: Optional[str] = None
|
|
16
|
+
# The OdataType property
|
|
17
|
+
odata_type: Optional[str] = None
|
|
18
|
+
# The unique ID associated with the policy instance.
|
|
19
|
+
policy_id: Optional[str] = None
|
|
20
|
+
|
|
21
|
+
@staticmethod
|
|
22
|
+
def create_from_discriminator_value(parse_node: ParseNode) -> PolicyIdentifierDetail:
|
|
23
|
+
"""
|
|
24
|
+
Creates a new instance of the appropriate class based on discriminator value
|
|
25
|
+
param parse_node: The parse node to use to read the discriminator value and create the object
|
|
26
|
+
Returns: PolicyIdentifierDetail
|
|
27
|
+
"""
|
|
28
|
+
if parse_node is None:
|
|
29
|
+
raise TypeError("parse_node cannot be null.")
|
|
30
|
+
return PolicyIdentifierDetail()
|
|
31
|
+
|
|
32
|
+
def get_field_deserializers(self,) -> dict[str, Callable[[ParseNode], None]]:
|
|
33
|
+
"""
|
|
34
|
+
The deserialization information for the current model
|
|
35
|
+
Returns: dict[str, Callable[[ParseNode], None]]
|
|
36
|
+
"""
|
|
37
|
+
from ..entity import Entity
|
|
38
|
+
|
|
39
|
+
from ..entity import Entity
|
|
40
|
+
|
|
41
|
+
fields: dict[str, Callable[[Any], None]] = {
|
|
42
|
+
"name": lambda n : setattr(self, 'name', n.get_str_value()),
|
|
43
|
+
"policyId": lambda n : setattr(self, 'policy_id', n.get_str_value()),
|
|
44
|
+
}
|
|
45
|
+
super_fields = super().get_field_deserializers()
|
|
46
|
+
fields.update(super_fields)
|
|
47
|
+
return fields
|
|
48
|
+
|
|
49
|
+
def serialize(self,writer: SerializationWriter) -> None:
|
|
50
|
+
"""
|
|
51
|
+
Serializes information the current object
|
|
52
|
+
param writer: Serialization writer to use to serialize this model
|
|
53
|
+
Returns: None
|
|
54
|
+
"""
|
|
55
|
+
if writer is None:
|
|
56
|
+
raise TypeError("writer cannot be null.")
|
|
57
|
+
super().serialize(writer)
|
|
58
|
+
writer.write_str_value("name", self.name)
|
|
59
|
+
writer.write_str_value("policyId", self.policy_id)
|
|
60
|
+
|
|
61
|
+
|
|
@@ -6,6 +6,7 @@ from typing import Any, Optional, TYPE_CHECKING, Union
|
|
|
6
6
|
|
|
7
7
|
if TYPE_CHECKING:
|
|
8
8
|
from ..entity import Entity
|
|
9
|
+
from .teams_policy_assignment import TeamsPolicyAssignment
|
|
9
10
|
from .teams_user_configuration import TeamsUserConfiguration
|
|
10
11
|
|
|
11
12
|
from ..entity import Entity
|
|
@@ -14,7 +15,9 @@ from ..entity import Entity
|
|
|
14
15
|
class TeamsAdminRoot(Entity, Parsable):
|
|
15
16
|
# The OdataType property
|
|
16
17
|
odata_type: Optional[str] = None
|
|
17
|
-
# Represents
|
|
18
|
+
# Represents a navigation property to the Teams policy assignment object.
|
|
19
|
+
policy: Optional[TeamsPolicyAssignment] = None
|
|
20
|
+
# Represents the configuration information of users who have accounts hosted on Microsoft Teams
|
|
18
21
|
user_configurations: Optional[list[TeamsUserConfiguration]] = None
|
|
19
22
|
|
|
20
23
|
@staticmethod
|
|
@@ -34,12 +37,15 @@ class TeamsAdminRoot(Entity, Parsable):
|
|
|
34
37
|
Returns: dict[str, Callable[[ParseNode], None]]
|
|
35
38
|
"""
|
|
36
39
|
from ..entity import Entity
|
|
40
|
+
from .teams_policy_assignment import TeamsPolicyAssignment
|
|
37
41
|
from .teams_user_configuration import TeamsUserConfiguration
|
|
38
42
|
|
|
39
43
|
from ..entity import Entity
|
|
44
|
+
from .teams_policy_assignment import TeamsPolicyAssignment
|
|
40
45
|
from .teams_user_configuration import TeamsUserConfiguration
|
|
41
46
|
|
|
42
47
|
fields: dict[str, Callable[[Any], None]] = {
|
|
48
|
+
"policy": lambda n : setattr(self, 'policy', n.get_object_value(TeamsPolicyAssignment)),
|
|
43
49
|
"userConfigurations": lambda n : setattr(self, 'user_configurations', n.get_collection_of_object_values(TeamsUserConfiguration)),
|
|
44
50
|
}
|
|
45
51
|
super_fields = super().get_field_deserializers()
|
|
@@ -55,6 +61,7 @@ class TeamsAdminRoot(Entity, Parsable):
|
|
|
55
61
|
if writer is None:
|
|
56
62
|
raise TypeError("writer cannot be null.")
|
|
57
63
|
super().serialize(writer)
|
|
64
|
+
writer.write_object_value("policy", self.policy)
|
|
58
65
|
writer.write_collection_of_object_values("userConfigurations", self.user_configurations)
|
|
59
66
|
|
|
60
67
|
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
from collections.abc import Callable
|
|
3
|
+
from dataclasses import dataclass, field
|
|
4
|
+
from kiota_abstractions.serialization import Parsable, ParseNode, SerializationWriter
|
|
5
|
+
from typing import Any, Optional, TYPE_CHECKING, Union
|
|
6
|
+
|
|
7
|
+
if TYPE_CHECKING:
|
|
8
|
+
from ..entity import Entity
|
|
9
|
+
from .teams_policy_user_assignment import TeamsPolicyUserAssignment
|
|
10
|
+
|
|
11
|
+
from ..entity import Entity
|
|
12
|
+
|
|
13
|
+
@dataclass
|
|
14
|
+
class TeamsPolicyAssignment(Entity, Parsable):
|
|
15
|
+
# The OdataType property
|
|
16
|
+
odata_type: Optional[str] = None
|
|
17
|
+
# The collection of user policy assignments.
|
|
18
|
+
user_assignments: Optional[list[TeamsPolicyUserAssignment]] = None
|
|
19
|
+
|
|
20
|
+
@staticmethod
|
|
21
|
+
def create_from_discriminator_value(parse_node: ParseNode) -> TeamsPolicyAssignment:
|
|
22
|
+
"""
|
|
23
|
+
Creates a new instance of the appropriate class based on discriminator value
|
|
24
|
+
param parse_node: The parse node to use to read the discriminator value and create the object
|
|
25
|
+
Returns: TeamsPolicyAssignment
|
|
26
|
+
"""
|
|
27
|
+
if parse_node is None:
|
|
28
|
+
raise TypeError("parse_node cannot be null.")
|
|
29
|
+
return TeamsPolicyAssignment()
|
|
30
|
+
|
|
31
|
+
def get_field_deserializers(self,) -> dict[str, Callable[[ParseNode], None]]:
|
|
32
|
+
"""
|
|
33
|
+
The deserialization information for the current model
|
|
34
|
+
Returns: dict[str, Callable[[ParseNode], None]]
|
|
35
|
+
"""
|
|
36
|
+
from ..entity import Entity
|
|
37
|
+
from .teams_policy_user_assignment import TeamsPolicyUserAssignment
|
|
38
|
+
|
|
39
|
+
from ..entity import Entity
|
|
40
|
+
from .teams_policy_user_assignment import TeamsPolicyUserAssignment
|
|
41
|
+
|
|
42
|
+
fields: dict[str, Callable[[Any], None]] = {
|
|
43
|
+
"userAssignments": lambda n : setattr(self, 'user_assignments', n.get_collection_of_object_values(TeamsPolicyUserAssignment)),
|
|
44
|
+
}
|
|
45
|
+
super_fields = super().get_field_deserializers()
|
|
46
|
+
fields.update(super_fields)
|
|
47
|
+
return fields
|
|
48
|
+
|
|
49
|
+
def serialize(self,writer: SerializationWriter) -> None:
|
|
50
|
+
"""
|
|
51
|
+
Serializes information the current object
|
|
52
|
+
param writer: Serialization writer to use to serialize this model
|
|
53
|
+
Returns: None
|
|
54
|
+
"""
|
|
55
|
+
if writer is None:
|
|
56
|
+
raise TypeError("writer cannot be null.")
|
|
57
|
+
super().serialize(writer)
|
|
58
|
+
writer.write_collection_of_object_values("userAssignments", self.user_assignments)
|
|
59
|
+
|
|
60
|
+
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
from collections.abc import Callable
|
|
3
|
+
from dataclasses import dataclass, field
|
|
4
|
+
from kiota_abstractions.serialization import Parsable, ParseNode, SerializationWriter
|
|
5
|
+
from typing import Any, Optional, TYPE_CHECKING, Union
|
|
6
|
+
|
|
7
|
+
if TYPE_CHECKING:
|
|
8
|
+
from ..entity import Entity
|
|
9
|
+
|
|
10
|
+
from ..entity import Entity
|
|
11
|
+
|
|
12
|
+
@dataclass
|
|
13
|
+
class TeamsPolicyUserAssignment(Entity, Parsable):
|
|
14
|
+
# The OdataType property
|
|
15
|
+
odata_type: Optional[str] = None
|
|
16
|
+
# The unique identifier (GUID) of the policy within the specified policy type.
|
|
17
|
+
policy_id: Optional[str] = None
|
|
18
|
+
# The type of Teams policy assigned or unassigned, such as teamsMeetingBroadcastPolicy.
|
|
19
|
+
policy_type: Optional[str] = None
|
|
20
|
+
# The unique identifier (GUID) of the user.
|
|
21
|
+
user_id: Optional[str] = None
|
|
22
|
+
|
|
23
|
+
@staticmethod
|
|
24
|
+
def create_from_discriminator_value(parse_node: ParseNode) -> TeamsPolicyUserAssignment:
|
|
25
|
+
"""
|
|
26
|
+
Creates a new instance of the appropriate class based on discriminator value
|
|
27
|
+
param parse_node: The parse node to use to read the discriminator value and create the object
|
|
28
|
+
Returns: TeamsPolicyUserAssignment
|
|
29
|
+
"""
|
|
30
|
+
if parse_node is None:
|
|
31
|
+
raise TypeError("parse_node cannot be null.")
|
|
32
|
+
return TeamsPolicyUserAssignment()
|
|
33
|
+
|
|
34
|
+
def get_field_deserializers(self,) -> dict[str, Callable[[ParseNode], None]]:
|
|
35
|
+
"""
|
|
36
|
+
The deserialization information for the current model
|
|
37
|
+
Returns: dict[str, Callable[[ParseNode], None]]
|
|
38
|
+
"""
|
|
39
|
+
from ..entity import Entity
|
|
40
|
+
|
|
41
|
+
from ..entity import Entity
|
|
42
|
+
|
|
43
|
+
fields: dict[str, Callable[[Any], None]] = {
|
|
44
|
+
"policyId": lambda n : setattr(self, 'policy_id', n.get_str_value()),
|
|
45
|
+
"policyType": lambda n : setattr(self, 'policy_type', n.get_str_value()),
|
|
46
|
+
"userId": lambda n : setattr(self, 'user_id', n.get_str_value()),
|
|
47
|
+
}
|
|
48
|
+
super_fields = super().get_field_deserializers()
|
|
49
|
+
fields.update(super_fields)
|
|
50
|
+
return fields
|
|
51
|
+
|
|
52
|
+
def serialize(self,writer: SerializationWriter) -> None:
|
|
53
|
+
"""
|
|
54
|
+
Serializes information the current object
|
|
55
|
+
param writer: Serialization writer to use to serialize this model
|
|
56
|
+
Returns: None
|
|
57
|
+
"""
|
|
58
|
+
if writer is None:
|
|
59
|
+
raise TypeError("writer cannot be null.")
|
|
60
|
+
super().serialize(writer)
|
|
61
|
+
writer.write_str_value("policyId", self.policy_id)
|
|
62
|
+
writer.write_str_value("policyType", self.policy_type)
|
|
63
|
+
writer.write_str_value("userId", self.user_id)
|
|
64
|
+
|
|
65
|
+
|