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
|
@@ -9,6 +9,7 @@ if TYPE_CHECKING:
|
|
|
9
9
|
from .built_in_identity_provider import BuiltInIdentityProvider
|
|
10
10
|
from .entity import Entity
|
|
11
11
|
from .internal_domain_federation import InternalDomainFederation
|
|
12
|
+
from .oidc_identity_provider import OidcIdentityProvider
|
|
12
13
|
from .saml_or_ws_fed_external_domain_federation import SamlOrWsFedExternalDomainFederation
|
|
13
14
|
from .saml_or_ws_fed_provider import SamlOrWsFedProvider
|
|
14
15
|
from .social_identity_provider import SocialIdentityProvider
|
|
@@ -48,6 +49,10 @@ class IdentityProviderBase(Entity, Parsable):
|
|
|
48
49
|
from .internal_domain_federation import InternalDomainFederation
|
|
49
50
|
|
|
50
51
|
return InternalDomainFederation()
|
|
52
|
+
if mapping_value and mapping_value.casefold() == "#microsoft.graph.oidcIdentityProvider".casefold():
|
|
53
|
+
from .oidc_identity_provider import OidcIdentityProvider
|
|
54
|
+
|
|
55
|
+
return OidcIdentityProvider()
|
|
51
56
|
if mapping_value and mapping_value.casefold() == "#microsoft.graph.samlOrWsFedExternalDomainFederation".casefold():
|
|
52
57
|
from .saml_or_ws_fed_external_domain_federation import SamlOrWsFedExternalDomainFederation
|
|
53
58
|
|
|
@@ -71,6 +76,7 @@ class IdentityProviderBase(Entity, Parsable):
|
|
|
71
76
|
from .built_in_identity_provider import BuiltInIdentityProvider
|
|
72
77
|
from .entity import Entity
|
|
73
78
|
from .internal_domain_federation import InternalDomainFederation
|
|
79
|
+
from .oidc_identity_provider import OidcIdentityProvider
|
|
74
80
|
from .saml_or_ws_fed_external_domain_federation import SamlOrWsFedExternalDomainFederation
|
|
75
81
|
from .saml_or_ws_fed_provider import SamlOrWsFedProvider
|
|
76
82
|
from .social_identity_provider import SocialIdentityProvider
|
|
@@ -79,6 +85,7 @@ class IdentityProviderBase(Entity, Parsable):
|
|
|
79
85
|
from .built_in_identity_provider import BuiltInIdentityProvider
|
|
80
86
|
from .entity import Entity
|
|
81
87
|
from .internal_domain_federation import InternalDomainFederation
|
|
88
|
+
from .oidc_identity_provider import OidcIdentityProvider
|
|
82
89
|
from .saml_or_ws_fed_external_domain_federation import SamlOrWsFedExternalDomainFederation
|
|
83
90
|
from .saml_or_ws_fed_provider import SamlOrWsFedProvider
|
|
84
91
|
from .social_identity_provider import SocialIdentityProvider
|
|
@@ -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
|
|
@@ -15,8 +14,6 @@ from .authentication_method import AuthenticationMethod
|
|
|
15
14
|
class MicrosoftAuthenticatorAuthenticationMethod(AuthenticationMethod, Parsable):
|
|
16
15
|
# The OdataType property
|
|
17
16
|
odata_type: Optional[str] = "#microsoft.graph.microsoftAuthenticatorAuthenticationMethod"
|
|
18
|
-
# The date and time that this app was registered. This property is null if the device isn't registered for passwordless Phone Sign-In.
|
|
19
|
-
created_date_time: Optional[datetime.datetime] = None
|
|
20
17
|
# The registered device on which Microsoft Authenticator resides. This property is null if the device isn't registered for passwordless Phone Sign-In.
|
|
21
18
|
device: Optional[Device] = None
|
|
22
19
|
# Tags containing app metadata.
|
|
@@ -49,7 +46,6 @@ class MicrosoftAuthenticatorAuthenticationMethod(AuthenticationMethod, Parsable)
|
|
|
49
46
|
from .device import Device
|
|
50
47
|
|
|
51
48
|
fields: dict[str, Callable[[Any], None]] = {
|
|
52
|
-
"createdDateTime": lambda n : setattr(self, 'created_date_time', n.get_datetime_value()),
|
|
53
49
|
"device": lambda n : setattr(self, 'device', n.get_object_value(Device)),
|
|
54
50
|
"deviceTag": lambda n : setattr(self, 'device_tag', n.get_str_value()),
|
|
55
51
|
"displayName": lambda n : setattr(self, 'display_name', n.get_str_value()),
|
|
@@ -68,7 +64,6 @@ class MicrosoftAuthenticatorAuthenticationMethod(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("deviceTag", self.device_tag)
|
|
74
69
|
writer.write_str_value("displayName", self.display_name)
|
|
@@ -0,0 +1,70 @@
|
|
|
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 OidcAddressInboundClaims(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 country property
|
|
16
|
+
country: Optional[str] = None
|
|
17
|
+
# The locality property
|
|
18
|
+
locality: Optional[str] = None
|
|
19
|
+
# The OdataType property
|
|
20
|
+
odata_type: Optional[str] = None
|
|
21
|
+
# The postal_code property
|
|
22
|
+
postal_code: Optional[str] = None
|
|
23
|
+
# The region property
|
|
24
|
+
region: Optional[str] = None
|
|
25
|
+
# The street_address property
|
|
26
|
+
street_address: Optional[str] = None
|
|
27
|
+
|
|
28
|
+
@staticmethod
|
|
29
|
+
def create_from_discriminator_value(parse_node: ParseNode) -> OidcAddressInboundClaims:
|
|
30
|
+
"""
|
|
31
|
+
Creates a new instance of the appropriate class based on discriminator value
|
|
32
|
+
param parse_node: The parse node to use to read the discriminator value and create the object
|
|
33
|
+
Returns: OidcAddressInboundClaims
|
|
34
|
+
"""
|
|
35
|
+
if parse_node is None:
|
|
36
|
+
raise TypeError("parse_node cannot be null.")
|
|
37
|
+
return OidcAddressInboundClaims()
|
|
38
|
+
|
|
39
|
+
def get_field_deserializers(self,) -> dict[str, Callable[[ParseNode], None]]:
|
|
40
|
+
"""
|
|
41
|
+
The deserialization information for the current model
|
|
42
|
+
Returns: dict[str, Callable[[ParseNode], None]]
|
|
43
|
+
"""
|
|
44
|
+
fields: dict[str, Callable[[Any], None]] = {
|
|
45
|
+
"country": lambda n : setattr(self, 'country', n.get_str_value()),
|
|
46
|
+
"locality": lambda n : setattr(self, 'locality', n.get_str_value()),
|
|
47
|
+
"@odata.type": lambda n : setattr(self, 'odata_type', n.get_str_value()),
|
|
48
|
+
"postal_code": lambda n : setattr(self, 'postal_code', n.get_str_value()),
|
|
49
|
+
"region": lambda n : setattr(self, 'region', n.get_str_value()),
|
|
50
|
+
"street_address": lambda n : setattr(self, 'street_address', n.get_str_value()),
|
|
51
|
+
}
|
|
52
|
+
return fields
|
|
53
|
+
|
|
54
|
+
def serialize(self,writer: SerializationWriter) -> None:
|
|
55
|
+
"""
|
|
56
|
+
Serializes information the current object
|
|
57
|
+
param writer: Serialization writer to use to serialize this model
|
|
58
|
+
Returns: None
|
|
59
|
+
"""
|
|
60
|
+
if writer is None:
|
|
61
|
+
raise TypeError("writer cannot be null.")
|
|
62
|
+
writer.write_str_value("country", self.country)
|
|
63
|
+
writer.write_str_value("locality", self.locality)
|
|
64
|
+
writer.write_str_value("@odata.type", self.odata_type)
|
|
65
|
+
writer.write_str_value("postal_code", self.postal_code)
|
|
66
|
+
writer.write_str_value("region", self.region)
|
|
67
|
+
writer.write_str_value("street_address", self.street_address)
|
|
68
|
+
writer.write_additional_data_value(self.additional_data)
|
|
69
|
+
|
|
70
|
+
|
|
@@ -0,0 +1,73 @@
|
|
|
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 .oidc_client_secret_authentication import OidcClientSecretAuthentication
|
|
10
|
+
from .oidc_private_jwt_key_client_authentication import OidcPrivateJwtKeyClientAuthentication
|
|
11
|
+
|
|
12
|
+
@dataclass
|
|
13
|
+
class OidcClientAuthentication(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 OdataType property
|
|
20
|
+
odata_type: Optional[str] = None
|
|
21
|
+
|
|
22
|
+
@staticmethod
|
|
23
|
+
def create_from_discriminator_value(parse_node: ParseNode) -> OidcClientAuthentication:
|
|
24
|
+
"""
|
|
25
|
+
Creates a new instance of the appropriate class based on discriminator value
|
|
26
|
+
param parse_node: The parse node to use to read the discriminator value and create the object
|
|
27
|
+
Returns: OidcClientAuthentication
|
|
28
|
+
"""
|
|
29
|
+
if parse_node is None:
|
|
30
|
+
raise TypeError("parse_node cannot be null.")
|
|
31
|
+
try:
|
|
32
|
+
child_node = parse_node.get_child_node("@odata.type")
|
|
33
|
+
mapping_value = child_node.get_str_value() if child_node else None
|
|
34
|
+
except AttributeError:
|
|
35
|
+
mapping_value = None
|
|
36
|
+
if mapping_value and mapping_value.casefold() == "#microsoft.graph.oidcClientSecretAuthentication".casefold():
|
|
37
|
+
from .oidc_client_secret_authentication import OidcClientSecretAuthentication
|
|
38
|
+
|
|
39
|
+
return OidcClientSecretAuthentication()
|
|
40
|
+
if mapping_value and mapping_value.casefold() == "#microsoft.graph.oidcPrivateJwtKeyClientAuthentication".casefold():
|
|
41
|
+
from .oidc_private_jwt_key_client_authentication import OidcPrivateJwtKeyClientAuthentication
|
|
42
|
+
|
|
43
|
+
return OidcPrivateJwtKeyClientAuthentication()
|
|
44
|
+
return OidcClientAuthentication()
|
|
45
|
+
|
|
46
|
+
def get_field_deserializers(self,) -> dict[str, Callable[[ParseNode], None]]:
|
|
47
|
+
"""
|
|
48
|
+
The deserialization information for the current model
|
|
49
|
+
Returns: dict[str, Callable[[ParseNode], None]]
|
|
50
|
+
"""
|
|
51
|
+
from .oidc_client_secret_authentication import OidcClientSecretAuthentication
|
|
52
|
+
from .oidc_private_jwt_key_client_authentication import OidcPrivateJwtKeyClientAuthentication
|
|
53
|
+
|
|
54
|
+
from .oidc_client_secret_authentication import OidcClientSecretAuthentication
|
|
55
|
+
from .oidc_private_jwt_key_client_authentication import OidcPrivateJwtKeyClientAuthentication
|
|
56
|
+
|
|
57
|
+
fields: dict[str, Callable[[Any], None]] = {
|
|
58
|
+
"@odata.type": lambda n : setattr(self, 'odata_type', n.get_str_value()),
|
|
59
|
+
}
|
|
60
|
+
return fields
|
|
61
|
+
|
|
62
|
+
def serialize(self,writer: SerializationWriter) -> None:
|
|
63
|
+
"""
|
|
64
|
+
Serializes information the current object
|
|
65
|
+
param writer: Serialization writer to use to serialize this model
|
|
66
|
+
Returns: None
|
|
67
|
+
"""
|
|
68
|
+
if writer is None:
|
|
69
|
+
raise TypeError("writer cannot be null.")
|
|
70
|
+
writer.write_str_value("@odata.type", self.odata_type)
|
|
71
|
+
writer.write_additional_data_value(self.additional_data)
|
|
72
|
+
|
|
73
|
+
|
|
@@ -0,0 +1,57 @@
|
|
|
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 .oidc_client_authentication import OidcClientAuthentication
|
|
9
|
+
|
|
10
|
+
from .oidc_client_authentication import OidcClientAuthentication
|
|
11
|
+
|
|
12
|
+
@dataclass
|
|
13
|
+
class OidcClientSecretAuthentication(OidcClientAuthentication, Parsable):
|
|
14
|
+
# The OdataType property
|
|
15
|
+
odata_type: Optional[str] = "#microsoft.graph.oidcClientSecretAuthentication"
|
|
16
|
+
# The clientSecret property
|
|
17
|
+
client_secret: Optional[str] = None
|
|
18
|
+
|
|
19
|
+
@staticmethod
|
|
20
|
+
def create_from_discriminator_value(parse_node: ParseNode) -> OidcClientSecretAuthentication:
|
|
21
|
+
"""
|
|
22
|
+
Creates a new instance of the appropriate class based on discriminator value
|
|
23
|
+
param parse_node: The parse node to use to read the discriminator value and create the object
|
|
24
|
+
Returns: OidcClientSecretAuthentication
|
|
25
|
+
"""
|
|
26
|
+
if parse_node is None:
|
|
27
|
+
raise TypeError("parse_node cannot be null.")
|
|
28
|
+
return OidcClientSecretAuthentication()
|
|
29
|
+
|
|
30
|
+
def get_field_deserializers(self,) -> dict[str, Callable[[ParseNode], None]]:
|
|
31
|
+
"""
|
|
32
|
+
The deserialization information for the current model
|
|
33
|
+
Returns: dict[str, Callable[[ParseNode], None]]
|
|
34
|
+
"""
|
|
35
|
+
from .oidc_client_authentication import OidcClientAuthentication
|
|
36
|
+
|
|
37
|
+
from .oidc_client_authentication import OidcClientAuthentication
|
|
38
|
+
|
|
39
|
+
fields: dict[str, Callable[[Any], None]] = {
|
|
40
|
+
"clientSecret": lambda n : setattr(self, 'client_secret', n.get_str_value()),
|
|
41
|
+
}
|
|
42
|
+
super_fields = super().get_field_deserializers()
|
|
43
|
+
fields.update(super_fields)
|
|
44
|
+
return fields
|
|
45
|
+
|
|
46
|
+
def serialize(self,writer: SerializationWriter) -> None:
|
|
47
|
+
"""
|
|
48
|
+
Serializes information the current object
|
|
49
|
+
param writer: Serialization writer to use to serialize this model
|
|
50
|
+
Returns: None
|
|
51
|
+
"""
|
|
52
|
+
if writer is None:
|
|
53
|
+
raise TypeError("writer cannot be null.")
|
|
54
|
+
super().serialize(writer)
|
|
55
|
+
writer.write_str_value("clientSecret", self.client_secret)
|
|
56
|
+
|
|
57
|
+
|
|
@@ -0,0 +1,90 @@
|
|
|
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 .identity_provider_base import IdentityProviderBase
|
|
9
|
+
from .oidc_client_authentication import OidcClientAuthentication
|
|
10
|
+
from .oidc_inbound_claim_mapping_override import OidcInboundClaimMappingOverride
|
|
11
|
+
from .oidc_response_type import OidcResponseType
|
|
12
|
+
|
|
13
|
+
from .identity_provider_base import IdentityProviderBase
|
|
14
|
+
|
|
15
|
+
@dataclass
|
|
16
|
+
class OidcIdentityProvider(IdentityProviderBase, Parsable):
|
|
17
|
+
# The OdataType property
|
|
18
|
+
odata_type: Optional[str] = "#microsoft.graph.oidcIdentityProvider"
|
|
19
|
+
# The clientAuthentication property
|
|
20
|
+
client_authentication: Optional[OidcClientAuthentication] = None
|
|
21
|
+
# The clientId property
|
|
22
|
+
client_id: Optional[str] = None
|
|
23
|
+
# The inboundClaimMapping property
|
|
24
|
+
inbound_claim_mapping: Optional[OidcInboundClaimMappingOverride] = None
|
|
25
|
+
# The issuer property
|
|
26
|
+
issuer: Optional[str] = None
|
|
27
|
+
# The responseType property
|
|
28
|
+
response_type: Optional[OidcResponseType] = None
|
|
29
|
+
# The scope property
|
|
30
|
+
scope: Optional[str] = None
|
|
31
|
+
# The wellKnownEndpoint property
|
|
32
|
+
well_known_endpoint: Optional[str] = None
|
|
33
|
+
|
|
34
|
+
@staticmethod
|
|
35
|
+
def create_from_discriminator_value(parse_node: ParseNode) -> OidcIdentityProvider:
|
|
36
|
+
"""
|
|
37
|
+
Creates a new instance of the appropriate class based on discriminator value
|
|
38
|
+
param parse_node: The parse node to use to read the discriminator value and create the object
|
|
39
|
+
Returns: OidcIdentityProvider
|
|
40
|
+
"""
|
|
41
|
+
if parse_node is None:
|
|
42
|
+
raise TypeError("parse_node cannot be null.")
|
|
43
|
+
return OidcIdentityProvider()
|
|
44
|
+
|
|
45
|
+
def get_field_deserializers(self,) -> dict[str, Callable[[ParseNode], None]]:
|
|
46
|
+
"""
|
|
47
|
+
The deserialization information for the current model
|
|
48
|
+
Returns: dict[str, Callable[[ParseNode], None]]
|
|
49
|
+
"""
|
|
50
|
+
from .identity_provider_base import IdentityProviderBase
|
|
51
|
+
from .oidc_client_authentication import OidcClientAuthentication
|
|
52
|
+
from .oidc_inbound_claim_mapping_override import OidcInboundClaimMappingOverride
|
|
53
|
+
from .oidc_response_type import OidcResponseType
|
|
54
|
+
|
|
55
|
+
from .identity_provider_base import IdentityProviderBase
|
|
56
|
+
from .oidc_client_authentication import OidcClientAuthentication
|
|
57
|
+
from .oidc_inbound_claim_mapping_override import OidcInboundClaimMappingOverride
|
|
58
|
+
from .oidc_response_type import OidcResponseType
|
|
59
|
+
|
|
60
|
+
fields: dict[str, Callable[[Any], None]] = {
|
|
61
|
+
"clientAuthentication": lambda n : setattr(self, 'client_authentication', n.get_object_value(OidcClientAuthentication)),
|
|
62
|
+
"clientId": lambda n : setattr(self, 'client_id', n.get_str_value()),
|
|
63
|
+
"inboundClaimMapping": lambda n : setattr(self, 'inbound_claim_mapping', n.get_object_value(OidcInboundClaimMappingOverride)),
|
|
64
|
+
"issuer": lambda n : setattr(self, 'issuer', n.get_str_value()),
|
|
65
|
+
"responseType": lambda n : setattr(self, 'response_type', n.get_collection_of_enum_values(OidcResponseType)),
|
|
66
|
+
"scope": lambda n : setattr(self, 'scope', n.get_str_value()),
|
|
67
|
+
"wellKnownEndpoint": lambda n : setattr(self, 'well_known_endpoint', n.get_str_value()),
|
|
68
|
+
}
|
|
69
|
+
super_fields = super().get_field_deserializers()
|
|
70
|
+
fields.update(super_fields)
|
|
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
|
+
super().serialize(writer)
|
|
82
|
+
writer.write_object_value("clientAuthentication", self.client_authentication)
|
|
83
|
+
writer.write_str_value("clientId", self.client_id)
|
|
84
|
+
writer.write_object_value("inboundClaimMapping", self.inbound_claim_mapping)
|
|
85
|
+
writer.write_str_value("issuer", self.issuer)
|
|
86
|
+
writer.write_enum_value("responseType", self.response_type)
|
|
87
|
+
writer.write_str_value("scope", self.scope)
|
|
88
|
+
writer.write_str_value("wellKnownEndpoint", self.well_known_endpoint)
|
|
89
|
+
|
|
90
|
+
|
|
@@ -0,0 +1,93 @@
|
|
|
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 .oidc_address_inbound_claims import OidcAddressInboundClaims
|
|
10
|
+
|
|
11
|
+
@dataclass
|
|
12
|
+
class OidcInboundClaimMappingOverride(AdditionalDataHolder, BackedModel, Parsable):
|
|
13
|
+
# Stores model information.
|
|
14
|
+
backing_store: BackingStore = field(default_factory=BackingStoreFactorySingleton(backing_store_factory=None).backing_store_factory.create_backing_store, repr=False)
|
|
15
|
+
|
|
16
|
+
# Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
|
17
|
+
additional_data: dict[str, Any] = field(default_factory=dict)
|
|
18
|
+
# The address property
|
|
19
|
+
address: Optional[OidcAddressInboundClaims] = None
|
|
20
|
+
# The email property
|
|
21
|
+
email: Optional[str] = None
|
|
22
|
+
# The email_verified property
|
|
23
|
+
email_verified: Optional[str] = None
|
|
24
|
+
# The family_name property
|
|
25
|
+
family_name: Optional[str] = None
|
|
26
|
+
# The given_name property
|
|
27
|
+
given_name: Optional[str] = None
|
|
28
|
+
# The name property
|
|
29
|
+
name: Optional[str] = None
|
|
30
|
+
# The OdataType property
|
|
31
|
+
odata_type: Optional[str] = None
|
|
32
|
+
# The phone_number property
|
|
33
|
+
phone_number: Optional[str] = None
|
|
34
|
+
# The phone_number_verified property
|
|
35
|
+
phone_number_verified: Optional[str] = None
|
|
36
|
+
# The sub property
|
|
37
|
+
sub: Optional[str] = None
|
|
38
|
+
|
|
39
|
+
@staticmethod
|
|
40
|
+
def create_from_discriminator_value(parse_node: ParseNode) -> OidcInboundClaimMappingOverride:
|
|
41
|
+
"""
|
|
42
|
+
Creates a new instance of the appropriate class based on discriminator value
|
|
43
|
+
param parse_node: The parse node to use to read the discriminator value and create the object
|
|
44
|
+
Returns: OidcInboundClaimMappingOverride
|
|
45
|
+
"""
|
|
46
|
+
if parse_node is None:
|
|
47
|
+
raise TypeError("parse_node cannot be null.")
|
|
48
|
+
return OidcInboundClaimMappingOverride()
|
|
49
|
+
|
|
50
|
+
def get_field_deserializers(self,) -> dict[str, Callable[[ParseNode], None]]:
|
|
51
|
+
"""
|
|
52
|
+
The deserialization information for the current model
|
|
53
|
+
Returns: dict[str, Callable[[ParseNode], None]]
|
|
54
|
+
"""
|
|
55
|
+
from .oidc_address_inbound_claims import OidcAddressInboundClaims
|
|
56
|
+
|
|
57
|
+
from .oidc_address_inbound_claims import OidcAddressInboundClaims
|
|
58
|
+
|
|
59
|
+
fields: dict[str, Callable[[Any], None]] = {
|
|
60
|
+
"address": lambda n : setattr(self, 'address', n.get_object_value(OidcAddressInboundClaims)),
|
|
61
|
+
"email": lambda n : setattr(self, 'email', n.get_str_value()),
|
|
62
|
+
"email_verified": lambda n : setattr(self, 'email_verified', n.get_str_value()),
|
|
63
|
+
"family_name": lambda n : setattr(self, 'family_name', n.get_str_value()),
|
|
64
|
+
"given_name": lambda n : setattr(self, 'given_name', 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
|
+
"phone_number": lambda n : setattr(self, 'phone_number', n.get_str_value()),
|
|
68
|
+
"phone_number_verified": lambda n : setattr(self, 'phone_number_verified', n.get_str_value()),
|
|
69
|
+
"sub": lambda n : setattr(self, 'sub', 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_object_value("address", self.address)
|
|
82
|
+
writer.write_str_value("email", self.email)
|
|
83
|
+
writer.write_str_value("email_verified", self.email_verified)
|
|
84
|
+
writer.write_str_value("family_name", self.family_name)
|
|
85
|
+
writer.write_str_value("given_name", self.given_name)
|
|
86
|
+
writer.write_str_value("name", self.name)
|
|
87
|
+
writer.write_str_value("@odata.type", self.odata_type)
|
|
88
|
+
writer.write_str_value("phone_number", self.phone_number)
|
|
89
|
+
writer.write_str_value("phone_number_verified", self.phone_number_verified)
|
|
90
|
+
writer.write_str_value("sub", self.sub)
|
|
91
|
+
writer.write_additional_data_value(self.additional_data)
|
|
92
|
+
|
|
93
|
+
|
|
@@ -0,0 +1,53 @@
|
|
|
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 .oidc_client_authentication import OidcClientAuthentication
|
|
9
|
+
|
|
10
|
+
from .oidc_client_authentication import OidcClientAuthentication
|
|
11
|
+
|
|
12
|
+
@dataclass
|
|
13
|
+
class OidcPrivateJwtKeyClientAuthentication(OidcClientAuthentication, Parsable):
|
|
14
|
+
# The OdataType property
|
|
15
|
+
odata_type: Optional[str] = "#microsoft.graph.oidcPrivateJwtKeyClientAuthentication"
|
|
16
|
+
|
|
17
|
+
@staticmethod
|
|
18
|
+
def create_from_discriminator_value(parse_node: ParseNode) -> OidcPrivateJwtKeyClientAuthentication:
|
|
19
|
+
"""
|
|
20
|
+
Creates a new instance of the appropriate class based on discriminator value
|
|
21
|
+
param parse_node: The parse node to use to read the discriminator value and create the object
|
|
22
|
+
Returns: OidcPrivateJwtKeyClientAuthentication
|
|
23
|
+
"""
|
|
24
|
+
if parse_node is None:
|
|
25
|
+
raise TypeError("parse_node cannot be null.")
|
|
26
|
+
return OidcPrivateJwtKeyClientAuthentication()
|
|
27
|
+
|
|
28
|
+
def get_field_deserializers(self,) -> dict[str, Callable[[ParseNode], None]]:
|
|
29
|
+
"""
|
|
30
|
+
The deserialization information for the current model
|
|
31
|
+
Returns: dict[str, Callable[[ParseNode], None]]
|
|
32
|
+
"""
|
|
33
|
+
from .oidc_client_authentication import OidcClientAuthentication
|
|
34
|
+
|
|
35
|
+
from .oidc_client_authentication import OidcClientAuthentication
|
|
36
|
+
|
|
37
|
+
fields: dict[str, Callable[[Any], None]] = {
|
|
38
|
+
}
|
|
39
|
+
super_fields = super().get_field_deserializers()
|
|
40
|
+
fields.update(super_fields)
|
|
41
|
+
return fields
|
|
42
|
+
|
|
43
|
+
def serialize(self,writer: SerializationWriter) -> None:
|
|
44
|
+
"""
|
|
45
|
+
Serializes information the current object
|
|
46
|
+
param writer: Serialization writer to use to serialize this model
|
|
47
|
+
Returns: None
|
|
48
|
+
"""
|
|
49
|
+
if writer is None:
|
|
50
|
+
raise TypeError("writer cannot be null.")
|
|
51
|
+
super().serialize(writer)
|
|
52
|
+
|
|
53
|
+
|
|
@@ -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
|
|
@@ -14,8 +13,6 @@ from .authentication_method import AuthenticationMethod
|
|
|
14
13
|
class PasswordAuthenticationMethod(AuthenticationMethod, Parsable):
|
|
15
14
|
# The OdataType property
|
|
16
15
|
odata_type: Optional[str] = "#microsoft.graph.passwordAuthenticationMethod"
|
|
17
|
-
# The date and time when this password was last updated. This property is currently not populated. Read-only. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.
|
|
18
|
-
created_date_time: Optional[datetime.datetime] = None
|
|
19
16
|
# For security, the password is always returned as null from a LIST or GET operation.
|
|
20
17
|
password: Optional[str] = None
|
|
21
18
|
|
|
@@ -40,7 +37,6 @@ class PasswordAuthenticationMethod(AuthenticationMethod, Parsable):
|
|
|
40
37
|
from .authentication_method import AuthenticationMethod
|
|
41
38
|
|
|
42
39
|
fields: dict[str, Callable[[Any], None]] = {
|
|
43
|
-
"createdDateTime": lambda n : setattr(self, 'created_date_time', n.get_datetime_value()),
|
|
44
40
|
"password": lambda n : setattr(self, 'password', n.get_str_value()),
|
|
45
41
|
}
|
|
46
42
|
super_fields = super().get_field_deserializers()
|
|
@@ -56,7 +52,6 @@ class PasswordAuthenticationMethod(AuthenticationMethod, Parsable):
|
|
|
56
52
|
if writer is None:
|
|
57
53
|
raise TypeError("writer cannot be null.")
|
|
58
54
|
super().serialize(writer)
|
|
59
|
-
writer.write_datetime_value("createdDateTime", self.created_date_time)
|
|
60
55
|
writer.write_str_value("password", self.password)
|
|
61
56
|
|
|
62
57
|
|
|
@@ -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
|
|
@@ -17,8 +16,6 @@ from .authentication_method import AuthenticationMethod
|
|
|
17
16
|
class PlatformCredentialAuthenticationMethod(AuthenticationMethod, Parsable):
|
|
18
17
|
# The OdataType property
|
|
19
18
|
odata_type: Optional[str] = "#microsoft.graph.platformCredentialAuthenticationMethod"
|
|
20
|
-
# The date and time that this Platform Credential Key was registered.
|
|
21
|
-
created_date_time: Optional[datetime.datetime] = None
|
|
22
19
|
# The registered device on which this Platform Credential resides. Supports $expand. When you get a user's Platform Credential registration information, this property is returned only on a single GET and when you specify ?$expand. For example, GET /users/admin@contoso.com/authentication/platformCredentialAuthenticationMethod/_jpuR-TGZtk6aQCLF3BQjA2?$expand=device.
|
|
23
20
|
device: Optional[Device] = None
|
|
24
21
|
# The name of the device on which Platform Credential is registered.
|
|
@@ -55,7 +52,6 @@ class PlatformCredentialAuthenticationMethod(AuthenticationMethod, Parsable):
|
|
|
55
52
|
from .device import Device
|
|
56
53
|
|
|
57
54
|
fields: dict[str, Callable[[Any], None]] = {
|
|
58
|
-
"createdDateTime": lambda n : setattr(self, 'created_date_time', n.get_datetime_value()),
|
|
59
55
|
"device": lambda n : setattr(self, 'device', n.get_object_value(Device)),
|
|
60
56
|
"displayName": lambda n : setattr(self, 'display_name', n.get_str_value()),
|
|
61
57
|
"keyStrength": lambda n : setattr(self, 'key_strength', n.get_enum_value(AuthenticationMethodKeyStrength)),
|
|
@@ -74,7 +70,6 @@ class PlatformCredentialAuthenticationMethod(AuthenticationMethod, Parsable):
|
|
|
74
70
|
if writer is None:
|
|
75
71
|
raise TypeError("writer cannot be null.")
|
|
76
72
|
super().serialize(writer)
|
|
77
|
-
writer.write_datetime_value("createdDateTime", self.created_date_time)
|
|
78
73
|
writer.write_object_value("device", self.device)
|
|
79
74
|
writer.write_str_value("displayName", self.display_name)
|
|
80
75
|
writer.write_enum_value("keyStrength", self.key_strength)
|
|
@@ -5,8 +5,10 @@ from kiota_abstractions.serialization import Parsable, ParseNode, SerializationW
|
|
|
5
5
|
from typing import Any, Optional, TYPE_CHECKING, Union
|
|
6
6
|
|
|
7
7
|
if TYPE_CHECKING:
|
|
8
|
+
from .ai_agent_info import AiAgentInfo
|
|
8
9
|
from .ai_interaction_plugin import AiInteractionPlugin
|
|
9
10
|
from .process_content_metadata_base import ProcessContentMetadataBase
|
|
11
|
+
from .resource_access_detail import ResourceAccessDetail
|
|
10
12
|
|
|
11
13
|
from .process_content_metadata_base import ProcessContentMetadataBase
|
|
12
14
|
|
|
@@ -16,6 +18,10 @@ class ProcessConversationMetadata(ProcessContentMetadataBase, Parsable):
|
|
|
16
18
|
odata_type: Optional[str] = "#microsoft.graph.processConversationMetadata"
|
|
17
19
|
# List of resources (for example, file URLs, web URLs) accessed during the generation of this message (relevant for bot interactions).
|
|
18
20
|
accessed_resources: Optional[list[str]] = None
|
|
21
|
+
# The accessedResources_v2 property
|
|
22
|
+
accessed_resources_v2: Optional[list[ResourceAccessDetail]] = None
|
|
23
|
+
# The agents property
|
|
24
|
+
agents: Optional[list[AiAgentInfo]] = None
|
|
19
25
|
# Identifier of the parent message in a threaded conversation, if applicable.
|
|
20
26
|
parent_message_id: Optional[str] = None
|
|
21
27
|
# List of plugins used during the generation of this message (relevant for AI/bot interactions).
|
|
@@ -37,14 +43,20 @@ class ProcessConversationMetadata(ProcessContentMetadataBase, Parsable):
|
|
|
37
43
|
The deserialization information for the current model
|
|
38
44
|
Returns: dict[str, Callable[[ParseNode], None]]
|
|
39
45
|
"""
|
|
46
|
+
from .ai_agent_info import AiAgentInfo
|
|
40
47
|
from .ai_interaction_plugin import AiInteractionPlugin
|
|
41
48
|
from .process_content_metadata_base import ProcessContentMetadataBase
|
|
49
|
+
from .resource_access_detail import ResourceAccessDetail
|
|
42
50
|
|
|
51
|
+
from .ai_agent_info import AiAgentInfo
|
|
43
52
|
from .ai_interaction_plugin import AiInteractionPlugin
|
|
44
53
|
from .process_content_metadata_base import ProcessContentMetadataBase
|
|
54
|
+
from .resource_access_detail import ResourceAccessDetail
|
|
45
55
|
|
|
46
56
|
fields: dict[str, Callable[[Any], None]] = {
|
|
47
57
|
"accessedResources": lambda n : setattr(self, 'accessed_resources', n.get_collection_of_primitive_values(str)),
|
|
58
|
+
"accessedResources_v2": lambda n : setattr(self, 'accessed_resources_v2', n.get_collection_of_object_values(ResourceAccessDetail)),
|
|
59
|
+
"agents": lambda n : setattr(self, 'agents', n.get_collection_of_object_values(AiAgentInfo)),
|
|
48
60
|
"parentMessageId": lambda n : setattr(self, 'parent_message_id', n.get_str_value()),
|
|
49
61
|
"plugins": lambda n : setattr(self, 'plugins', n.get_collection_of_object_values(AiInteractionPlugin)),
|
|
50
62
|
}
|
|
@@ -62,6 +74,8 @@ class ProcessConversationMetadata(ProcessContentMetadataBase, Parsable):
|
|
|
62
74
|
raise TypeError("writer cannot be null.")
|
|
63
75
|
super().serialize(writer)
|
|
64
76
|
writer.write_collection_of_primitive_values("accessedResources", self.accessed_resources)
|
|
77
|
+
writer.write_collection_of_object_values("accessedResources_v2", self.accessed_resources_v2)
|
|
78
|
+
writer.write_collection_of_object_values("agents", self.agents)
|
|
65
79
|
writer.write_str_value("parentMessageId", self.parent_message_id)
|
|
66
80
|
writer.write_collection_of_object_values("plugins", self.plugins)
|
|
67
81
|
|