msgraph-sdk 1.53.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 +418 -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/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/ediscovery_purge_data_operation.py +7 -0
- msgraph/generated/models/security/incident.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.53.0.dist-info → msgraph_sdk-1.54.0.dist-info}/METADATA +1 -1
- {msgraph_sdk-1.53.0.dist-info → msgraph_sdk-1.54.0.dist-info}/RECORD +61 -30
- {msgraph_sdk-1.53.0.dist-info → msgraph_sdk-1.54.0.dist-info}/WHEEL +0 -0
- {msgraph_sdk-1.53.0.dist-info → msgraph_sdk-1.54.0.dist-info}/licenses/LICENSE +0 -0
|
@@ -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
|
+
|
|
@@ -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,7 +44,7 @@ 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
|
|
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
48
|
priority_score: Optional[int] = None
|
|
49
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.
|
|
50
50
|
redirect_incident_id: 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
|
+
|
msgraph/generated/models/teams_administration/teams_policy_user_assignment_collection_response.py
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
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 ..base_collection_pagination_count_response import BaseCollectionPaginationCountResponse
|
|
9
|
+
from .teams_policy_user_assignment import TeamsPolicyUserAssignment
|
|
10
|
+
|
|
11
|
+
from ..base_collection_pagination_count_response import BaseCollectionPaginationCountResponse
|
|
12
|
+
|
|
13
|
+
@dataclass
|
|
14
|
+
class TeamsPolicyUserAssignmentCollectionResponse(BaseCollectionPaginationCountResponse, Parsable):
|
|
15
|
+
# The value property
|
|
16
|
+
value: Optional[list[TeamsPolicyUserAssignment]] = None
|
|
17
|
+
|
|
18
|
+
@staticmethod
|
|
19
|
+
def create_from_discriminator_value(parse_node: ParseNode) -> TeamsPolicyUserAssignmentCollectionResponse:
|
|
20
|
+
"""
|
|
21
|
+
Creates a new instance of the appropriate class based on discriminator value
|
|
22
|
+
param parse_node: The parse node to use to read the discriminator value and create the object
|
|
23
|
+
Returns: TeamsPolicyUserAssignmentCollectionResponse
|
|
24
|
+
"""
|
|
25
|
+
if parse_node is None:
|
|
26
|
+
raise TypeError("parse_node cannot be null.")
|
|
27
|
+
return TeamsPolicyUserAssignmentCollectionResponse()
|
|
28
|
+
|
|
29
|
+
def get_field_deserializers(self,) -> dict[str, Callable[[ParseNode], None]]:
|
|
30
|
+
"""
|
|
31
|
+
The deserialization information for the current model
|
|
32
|
+
Returns: dict[str, Callable[[ParseNode], None]]
|
|
33
|
+
"""
|
|
34
|
+
from ..base_collection_pagination_count_response import BaseCollectionPaginationCountResponse
|
|
35
|
+
from .teams_policy_user_assignment import TeamsPolicyUserAssignment
|
|
36
|
+
|
|
37
|
+
from ..base_collection_pagination_count_response import BaseCollectionPaginationCountResponse
|
|
38
|
+
from .teams_policy_user_assignment import TeamsPolicyUserAssignment
|
|
39
|
+
|
|
40
|
+
fields: dict[str, Callable[[Any], None]] = {
|
|
41
|
+
"value": lambda n : setattr(self, 'value', n.get_collection_of_object_values(TeamsPolicyUserAssignment)),
|
|
42
|
+
}
|
|
43
|
+
super_fields = super().get_field_deserializers()
|
|
44
|
+
fields.update(super_fields)
|
|
45
|
+
return fields
|
|
46
|
+
|
|
47
|
+
def serialize(self,writer: SerializationWriter) -> None:
|
|
48
|
+
"""
|
|
49
|
+
Serializes information the current object
|
|
50
|
+
param writer: Serialization writer to use to serialize this model
|
|
51
|
+
Returns: None
|
|
52
|
+
"""
|
|
53
|
+
if writer is None:
|
|
54
|
+
raise TypeError("writer cannot be null.")
|
|
55
|
+
super().serialize(writer)
|
|
56
|
+
writer.write_collection_of_object_values("value", self.value)
|
|
57
|
+
|
|
58
|
+
|
|
@@ -14,8 +14,6 @@ from .authentication_method import AuthenticationMethod
|
|
|
14
14
|
class TemporaryAccessPassAuthenticationMethod(AuthenticationMethod, Parsable):
|
|
15
15
|
# The OdataType property
|
|
16
16
|
odata_type: Optional[str] = "#microsoft.graph.temporaryAccessPassAuthenticationMethod"
|
|
17
|
-
# The date and time when the Temporary Access Pass was created.
|
|
18
|
-
created_date_time: Optional[datetime.datetime] = None
|
|
19
17
|
# The state of the authentication method that indicates whether it's currently usable by the user.
|
|
20
18
|
is_usable: Optional[bool] = None
|
|
21
19
|
# Determines whether the pass is limited to a one-time use. If true, the pass can be used once; if false, the pass can be used multiple times within the Temporary Access Pass lifetime.
|
|
@@ -50,7 +48,6 @@ class TemporaryAccessPassAuthenticationMethod(AuthenticationMethod, Parsable):
|
|
|
50
48
|
from .authentication_method import AuthenticationMethod
|
|
51
49
|
|
|
52
50
|
fields: dict[str, Callable[[Any], None]] = {
|
|
53
|
-
"createdDateTime": lambda n : setattr(self, 'created_date_time', n.get_datetime_value()),
|
|
54
51
|
"isUsable": lambda n : setattr(self, 'is_usable', n.get_bool_value()),
|
|
55
52
|
"isUsableOnce": lambda n : setattr(self, 'is_usable_once', n.get_bool_value()),
|
|
56
53
|
"lifetimeInMinutes": lambda n : setattr(self, 'lifetime_in_minutes', n.get_int_value()),
|
|
@@ -71,7 +68,6 @@ class TemporaryAccessPassAuthenticationMethod(AuthenticationMethod, Parsable):
|
|
|
71
68
|
if writer is None:
|
|
72
69
|
raise TypeError("writer cannot be null.")
|
|
73
70
|
super().serialize(writer)
|
|
74
|
-
writer.write_datetime_value("createdDateTime", self.created_date_time)
|
|
75
71
|
writer.write_bool_value("isUsable", self.is_usable)
|
|
76
72
|
writer.write_bool_value("isUsableOnce", self.is_usable_once)
|
|
77
73
|
writer.write_int_value("lifetimeInMinutes", self.lifetime_in_minutes)
|
|
@@ -21,5 +21,6 @@ class UsageRights(str, Enum):
|
|
|
21
21
|
EncryptedProtectionTypeNotSupportedException = "encryptedProtectionTypeNotSupportedException",
|
|
22
22
|
PurviewClaimsChallengeNotSupportedException = "purviewClaimsChallengeNotSupportedException",
|
|
23
23
|
Exception = "exception",
|
|
24
|
+
LabelNotFoundException = "labelNotFoundException",
|
|
24
25
|
UnknownFutureValue = "unknownFutureValue",
|
|
25
26
|
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
from __future__ import annotations
|
|
2
|
-
import datetime
|
|
3
2
|
from collections.abc import Callable
|
|
4
3
|
from dataclasses import dataclass, field
|
|
5
4
|
from kiota_abstractions.serialization import Parsable, ParseNode, SerializationWriter
|
|
@@ -16,8 +15,6 @@ from .authentication_method import AuthenticationMethod
|
|
|
16
15
|
class WindowsHelloForBusinessAuthenticationMethod(AuthenticationMethod, Parsable):
|
|
17
16
|
# The OdataType property
|
|
18
17
|
odata_type: Optional[str] = "#microsoft.graph.windowsHelloForBusinessAuthenticationMethod"
|
|
19
|
-
# The date and time that this Windows Hello for Business key was registered.
|
|
20
|
-
created_date_time: Optional[datetime.datetime] = None
|
|
21
18
|
# The registered device on which this Windows Hello for Business key resides. Supports $expand. When you get a user's Windows Hello for Business registration information, this property is returned only on a single GET and when you specify ?$expand. For example, GET /users/admin@contoso.com/authentication/windowsHelloForBusinessMethods/_jpuR-TGZtk6aQCLF3BQjA2?$expand=device.
|
|
22
19
|
device: Optional[Device] = None
|
|
23
20
|
# The name of the device on which Windows Hello for Business is registered
|
|
@@ -50,7 +47,6 @@ class WindowsHelloForBusinessAuthenticationMethod(AuthenticationMethod, Parsable
|
|
|
50
47
|
from .device import Device
|
|
51
48
|
|
|
52
49
|
fields: dict[str, Callable[[Any], None]] = {
|
|
53
|
-
"createdDateTime": lambda n : setattr(self, 'created_date_time', n.get_datetime_value()),
|
|
54
50
|
"device": lambda n : setattr(self, 'device', n.get_object_value(Device)),
|
|
55
51
|
"displayName": lambda n : setattr(self, 'display_name', n.get_str_value()),
|
|
56
52
|
"keyStrength": lambda n : setattr(self, 'key_strength', n.get_enum_value(AuthenticationMethodKeyStrength)),
|
|
@@ -68,7 +64,6 @@ class WindowsHelloForBusinessAuthenticationMethod(AuthenticationMethod, Parsable
|
|
|
68
64
|
if writer is None:
|
|
69
65
|
raise TypeError("writer cannot be null.")
|
|
70
66
|
super().serialize(writer)
|
|
71
|
-
writer.write_datetime_value("createdDateTime", self.created_date_time)
|
|
72
67
|
writer.write_object_value("device", self.device)
|
|
73
68
|
writer.write_str_value("displayName", self.display_name)
|
|
74
69
|
writer.write_enum_value("keyStrength", self.key_strength)
|
|
@@ -49,7 +49,7 @@ class AuthenticationMethodConfigurationsRequestBuilder(BaseRequestBuilder):
|
|
|
49
49
|
|
|
50
50
|
async def get(self,request_configuration: Optional[RequestConfiguration[AuthenticationMethodConfigurationsRequestBuilderGetQueryParameters]] = None) -> Optional[AuthenticationMethodConfigurationCollectionResponse]:
|
|
51
51
|
"""
|
|
52
|
-
|
|
52
|
+
Read the properties and relationships of an externalAuthenticationMethodConfiguration object.
|
|
53
53
|
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
|
54
54
|
Returns: Optional[AuthenticationMethodConfigurationCollectionResponse]
|
|
55
55
|
"""
|
|
@@ -92,7 +92,7 @@ class AuthenticationMethodConfigurationsRequestBuilder(BaseRequestBuilder):
|
|
|
92
92
|
|
|
93
93
|
def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[AuthenticationMethodConfigurationsRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
|
|
94
94
|
"""
|
|
95
|
-
|
|
95
|
+
Read the properties and relationships of an externalAuthenticationMethodConfiguration object.
|
|
96
96
|
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
|
97
97
|
Returns: RequestInformation
|
|
98
98
|
"""
|
|
@@ -138,7 +138,7 @@ class AuthenticationMethodConfigurationsRequestBuilder(BaseRequestBuilder):
|
|
|
138
138
|
@dataclass
|
|
139
139
|
class AuthenticationMethodConfigurationsRequestBuilderGetQueryParameters():
|
|
140
140
|
"""
|
|
141
|
-
|
|
141
|
+
Read the properties and relationships of an externalAuthenticationMethodConfiguration object.
|
|
142
142
|
"""
|
|
143
143
|
def get_query_parameter(self,original_name: str) -> str:
|
|
144
144
|
"""
|
|
@@ -32,9 +32,10 @@ class AuthenticationMethodConfigurationItemRequestBuilder(BaseRequestBuilder):
|
|
|
32
32
|
|
|
33
33
|
async def delete(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> None:
|
|
34
34
|
"""
|
|
35
|
-
Delete
|
|
35
|
+
Delete an externalAuthenticationMethodConfiguration object.
|
|
36
36
|
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
|
37
37
|
Returns: None
|
|
38
|
+
Find more info here: https://learn.microsoft.com/graph/api/externalauthenticationmethodconfiguration-delete?view=graph-rest-1.0
|
|
38
39
|
"""
|
|
39
40
|
request_info = self.to_delete_request_information(
|
|
40
41
|
request_configuration
|
|
@@ -50,9 +51,10 @@ class AuthenticationMethodConfigurationItemRequestBuilder(BaseRequestBuilder):
|
|
|
50
51
|
|
|
51
52
|
async def get(self,request_configuration: Optional[RequestConfiguration[AuthenticationMethodConfigurationItemRequestBuilderGetQueryParameters]] = None) -> Optional[AuthenticationMethodConfiguration]:
|
|
52
53
|
"""
|
|
53
|
-
|
|
54
|
+
Read the properties and relationships of an externalAuthenticationMethodConfiguration object.
|
|
54
55
|
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
|
55
56
|
Returns: Optional[AuthenticationMethodConfiguration]
|
|
57
|
+
Find more info here: https://learn.microsoft.com/graph/api/externalauthenticationmethodconfiguration-get?view=graph-rest-1.0
|
|
56
58
|
"""
|
|
57
59
|
request_info = self.to_get_request_information(
|
|
58
60
|
request_configuration
|
|
@@ -70,10 +72,11 @@ class AuthenticationMethodConfigurationItemRequestBuilder(BaseRequestBuilder):
|
|
|
70
72
|
|
|
71
73
|
async def patch(self,body: AuthenticationMethodConfiguration, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[AuthenticationMethodConfiguration]:
|
|
72
74
|
"""
|
|
73
|
-
Update the
|
|
75
|
+
Update the properties of an externalAuthenticationMethodConfiguration object.
|
|
74
76
|
param body: The request body
|
|
75
77
|
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
|
76
78
|
Returns: Optional[AuthenticationMethodConfiguration]
|
|
79
|
+
Find more info here: https://learn.microsoft.com/graph/api/externalauthenticationmethodconfiguration-update?view=graph-rest-1.0
|
|
77
80
|
"""
|
|
78
81
|
if body is None:
|
|
79
82
|
raise TypeError("body cannot be null.")
|
|
@@ -93,7 +96,7 @@ class AuthenticationMethodConfigurationItemRequestBuilder(BaseRequestBuilder):
|
|
|
93
96
|
|
|
94
97
|
def to_delete_request_information(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
|
|
95
98
|
"""
|
|
96
|
-
Delete
|
|
99
|
+
Delete an externalAuthenticationMethodConfiguration object.
|
|
97
100
|
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
|
98
101
|
Returns: RequestInformation
|
|
99
102
|
"""
|
|
@@ -104,7 +107,7 @@ class AuthenticationMethodConfigurationItemRequestBuilder(BaseRequestBuilder):
|
|
|
104
107
|
|
|
105
108
|
def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[AuthenticationMethodConfigurationItemRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
|
|
106
109
|
"""
|
|
107
|
-
|
|
110
|
+
Read the properties and relationships of an externalAuthenticationMethodConfiguration object.
|
|
108
111
|
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
|
109
112
|
Returns: RequestInformation
|
|
110
113
|
"""
|
|
@@ -115,7 +118,7 @@ class AuthenticationMethodConfigurationItemRequestBuilder(BaseRequestBuilder):
|
|
|
115
118
|
|
|
116
119
|
def to_patch_request_information(self,body: AuthenticationMethodConfiguration, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
|
|
117
120
|
"""
|
|
118
|
-
Update the
|
|
121
|
+
Update the properties of an externalAuthenticationMethodConfiguration object.
|
|
119
122
|
param body: The request body
|
|
120
123
|
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
|
121
124
|
Returns: RequestInformation
|
|
@@ -148,7 +151,7 @@ class AuthenticationMethodConfigurationItemRequestBuilder(BaseRequestBuilder):
|
|
|
148
151
|
@dataclass
|
|
149
152
|
class AuthenticationMethodConfigurationItemRequestBuilderGetQueryParameters():
|
|
150
153
|
"""
|
|
151
|
-
|
|
154
|
+
Read the properties and relationships of an externalAuthenticationMethodConfiguration object.
|
|
152
155
|
"""
|
|
153
156
|
def get_query_parameter(self,original_name: str) -> str:
|
|
154
157
|
"""
|
|
@@ -17,6 +17,7 @@ if TYPE_CHECKING:
|
|
|
17
17
|
from ....models.authentication import Authentication
|
|
18
18
|
from ....models.o_data_errors.o_data_error import ODataError
|
|
19
19
|
from .email_methods.email_methods_request_builder import EmailMethodsRequestBuilder
|
|
20
|
+
from .external_authentication_methods.external_authentication_methods_request_builder import ExternalAuthenticationMethodsRequestBuilder
|
|
20
21
|
from .fido2_methods.fido2_methods_request_builder import Fido2MethodsRequestBuilder
|
|
21
22
|
from .methods.methods_request_builder import MethodsRequestBuilder
|
|
22
23
|
from .microsoft_authenticator_methods.microsoft_authenticator_methods_request_builder import MicrosoftAuthenticatorMethodsRequestBuilder
|
|
@@ -158,6 +159,15 @@ class AuthenticationRequestBuilder(BaseRequestBuilder):
|
|
|
158
159
|
|
|
159
160
|
return EmailMethodsRequestBuilder(self.request_adapter, self.path_parameters)
|
|
160
161
|
|
|
162
|
+
@property
|
|
163
|
+
def external_authentication_methods(self) -> ExternalAuthenticationMethodsRequestBuilder:
|
|
164
|
+
"""
|
|
165
|
+
Provides operations to manage the externalAuthenticationMethods property of the microsoft.graph.authentication entity.
|
|
166
|
+
"""
|
|
167
|
+
from .external_authentication_methods.external_authentication_methods_request_builder import ExternalAuthenticationMethodsRequestBuilder
|
|
168
|
+
|
|
169
|
+
return ExternalAuthenticationMethodsRequestBuilder(self.request_adapter, self.path_parameters)
|
|
170
|
+
|
|
161
171
|
@property
|
|
162
172
|
def fido2_methods(self) -> Fido2MethodsRequestBuilder:
|
|
163
173
|
"""
|