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.
Files changed (61) hide show
  1. msgraph/_version.py +1 -1
  2. 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
  3. 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
  4. msgraph/generated/admin/teams/policy/policy_request_builder.py +214 -0
  5. msgraph/generated/admin/teams/policy/user_assignments/count/count_request_builder.py +104 -0
  6. msgraph/generated/admin/teams/policy/user_assignments/item/teams_policy_user_assignment_item_request_builder.py +188 -0
  7. msgraph/generated/admin/teams/policy/user_assignments/microsoft_graph_teams_administration_assign/assign_post_request_body.py +57 -0
  8. msgraph/generated/admin/teams/policy/user_assignments/microsoft_graph_teams_administration_assign/microsoft_graph_teams_administration_assign_request_builder.py +87 -0
  9. msgraph/generated/admin/teams/policy/user_assignments/microsoft_graph_teams_administration_unassign/microsoft_graph_teams_administration_unassign_request_builder.py +87 -0
  10. msgraph/generated/admin/teams/policy/user_assignments/microsoft_graph_teams_administration_unassign/unassign_post_request_body.py +57 -0
  11. msgraph/generated/admin/teams/policy/user_assignments/user_assignments_request_builder.py +228 -0
  12. msgraph/generated/admin/teams/teams_request_builder.py +13 -3
  13. msgraph/generated/kiota-dom-export.txt +418 -25
  14. msgraph/generated/kiota-lock.json +2 -2
  15. msgraph/generated/models/admin.py +1 -1
  16. msgraph/generated/models/ai_agent_info.py +57 -0
  17. msgraph/generated/models/ai_interaction_entity.py +85 -0
  18. msgraph/generated/models/ai_interaction_plugin.py +14 -23
  19. msgraph/generated/models/authentication.py +7 -0
  20. msgraph/generated/models/authentication_method.py +12 -0
  21. msgraph/generated/models/cloud_pc_domain_join_configuration.py +1 -1
  22. msgraph/generated/models/cloud_pc_on_premises_connection_health_check.py +1 -1
  23. msgraph/generated/models/entity.py +35 -0
  24. msgraph/generated/models/external_authentication_method.py +61 -0
  25. msgraph/generated/models/external_authentication_method_collection_response.py +58 -0
  26. msgraph/generated/models/fido2_authentication_method.py +0 -5
  27. msgraph/generated/models/identity_provider_base.py +7 -0
  28. msgraph/generated/models/microsoft_authenticator_authentication_method.py +0 -5
  29. msgraph/generated/models/oidc_address_inbound_claims.py +70 -0
  30. msgraph/generated/models/oidc_client_authentication.py +73 -0
  31. msgraph/generated/models/oidc_client_secret_authentication.py +57 -0
  32. msgraph/generated/models/oidc_identity_provider.py +90 -0
  33. msgraph/generated/models/oidc_inbound_claim_mapping_override.py +93 -0
  34. msgraph/generated/models/oidc_private_jwt_key_client_authentication.py +53 -0
  35. msgraph/generated/models/oidc_response_type.py +8 -0
  36. msgraph/generated/models/password_authentication_method.py +0 -5
  37. msgraph/generated/models/platform_credential_authentication_method.py +0 -5
  38. msgraph/generated/models/process_conversation_metadata.py +14 -0
  39. msgraph/generated/models/resource_access_detail.py +92 -0
  40. msgraph/generated/models/resource_access_status.py +8 -0
  41. msgraph/generated/models/resource_access_type.py +9 -0
  42. msgraph/generated/models/security/ediscovery_purge_data_operation.py +7 -0
  43. msgraph/generated/models/security/incident.py +1 -1
  44. msgraph/generated/models/teams_administration/policy_identifier_detail.py +61 -0
  45. msgraph/generated/models/teams_administration/teams_admin_root.py +8 -1
  46. msgraph/generated/models/teams_administration/teams_policy_assignment.py +60 -0
  47. msgraph/generated/models/teams_administration/teams_policy_user_assignment.py +65 -0
  48. msgraph/generated/models/teams_administration/teams_policy_user_assignment_collection_response.py +58 -0
  49. msgraph/generated/models/temporary_access_pass_authentication_method.py +0 -4
  50. msgraph/generated/models/usage_rights.py +1 -0
  51. msgraph/generated/models/windows_hello_for_business_authentication_method.py +0 -5
  52. msgraph/generated/policies/authentication_methods_policy/authentication_method_configurations/authentication_method_configurations_request_builder.py +3 -3
  53. msgraph/generated/policies/authentication_methods_policy/authentication_method_configurations/item/authentication_method_configuration_item_request_builder.py +10 -7
  54. msgraph/generated/users/item/authentication/authentication_request_builder.py +10 -0
  55. msgraph/generated/users/item/authentication/external_authentication_methods/count/count_request_builder.py +104 -0
  56. msgraph/generated/users/item/authentication/external_authentication_methods/external_authentication_methods_request_builder.py +209 -0
  57. msgraph/generated/users/item/authentication/external_authentication_methods/item/external_authentication_method_item_request_builder.py +189 -0
  58. {msgraph_sdk-1.53.0.dist-info → msgraph_sdk-1.54.0.dist-info}/METADATA +1 -1
  59. {msgraph_sdk-1.53.0.dist-info → msgraph_sdk-1.54.0.dist-info}/RECORD +61 -30
  60. {msgraph_sdk-1.53.0.dist-info → msgraph_sdk-1.54.0.dist-info}/WHEEL +0 -0
  61. {msgraph_sdk-1.53.0.dist-info → msgraph_sdk-1.54.0.dist-info}/licenses/LICENSE +0 -0
@@ -0,0 +1,104 @@
1
+ from __future__ import annotations
2
+ from collections.abc import Callable
3
+ from dataclasses import dataclass, field
4
+ from kiota_abstractions.base_request_builder import BaseRequestBuilder
5
+ from kiota_abstractions.base_request_configuration import RequestConfiguration
6
+ from kiota_abstractions.default_query_parameters import QueryParameters
7
+ from kiota_abstractions.get_path_parameters import get_path_parameters
8
+ from kiota_abstractions.method import Method
9
+ from kiota_abstractions.request_adapter import RequestAdapter
10
+ from kiota_abstractions.request_information import RequestInformation
11
+ from kiota_abstractions.request_option import RequestOption
12
+ from kiota_abstractions.serialization import Parsable, ParsableFactory
13
+ from typing import Any, Optional, TYPE_CHECKING, Union
14
+ from warnings import warn
15
+
16
+ if TYPE_CHECKING:
17
+ from ......models.o_data_errors.o_data_error import ODataError
18
+
19
+ class CountRequestBuilder(BaseRequestBuilder):
20
+ """
21
+ Provides operations to count the resources in the collection.
22
+ """
23
+ def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, dict[str, Any]]) -> None:
24
+ """
25
+ Instantiates a new CountRequestBuilder and sets the default values.
26
+ param path_parameters: The raw url or the url-template parameters for the request.
27
+ param request_adapter: The request adapter to use to execute the requests.
28
+ Returns: None
29
+ """
30
+ super().__init__(request_adapter, "{+baseurl}/users/{user%2Did}/authentication/externalAuthenticationMethods/$count{?%24filter,%24search}", path_parameters)
31
+
32
+ async def get(self,request_configuration: Optional[RequestConfiguration[CountRequestBuilderGetQueryParameters]] = None) -> Optional[int]:
33
+ """
34
+ Get the number of the resource
35
+ param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
36
+ Returns: Optional[int]
37
+ """
38
+ request_info = self.to_get_request_information(
39
+ request_configuration
40
+ )
41
+ from ......models.o_data_errors.o_data_error import ODataError
42
+
43
+ error_mapping: dict[str, type[ParsableFactory]] = {
44
+ "XXX": ODataError,
45
+ }
46
+ if not self.request_adapter:
47
+ raise Exception("Http core is null")
48
+ return await self.request_adapter.send_primitive_async(request_info, "int", error_mapping)
49
+
50
+ def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[CountRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
51
+ """
52
+ Get the number of the resource
53
+ param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
54
+ Returns: RequestInformation
55
+ """
56
+ request_info = RequestInformation(Method.GET, self.url_template, self.path_parameters)
57
+ request_info.configure(request_configuration)
58
+ request_info.headers.try_add("Accept", "text/plain;q=0.9")
59
+ return request_info
60
+
61
+ def with_url(self,raw_url: str) -> CountRequestBuilder:
62
+ """
63
+ Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
64
+ param raw_url: The raw URL to use for the request builder.
65
+ Returns: CountRequestBuilder
66
+ """
67
+ if raw_url is None:
68
+ raise TypeError("raw_url cannot be null.")
69
+ return CountRequestBuilder(self.request_adapter, raw_url)
70
+
71
+ @dataclass
72
+ class CountRequestBuilderGetQueryParameters():
73
+ """
74
+ Get the number of the resource
75
+ """
76
+ def get_query_parameter(self,original_name: str) -> str:
77
+ """
78
+ Maps the query parameters names to their encoded names for the URI template parsing.
79
+ param original_name: The original query parameter name in the class.
80
+ Returns: str
81
+ """
82
+ if original_name is None:
83
+ raise TypeError("original_name cannot be null.")
84
+ if original_name == "filter":
85
+ return "%24filter"
86
+ if original_name == "search":
87
+ return "%24search"
88
+ return original_name
89
+
90
+ # Filter items by property values
91
+ filter: Optional[str] = None
92
+
93
+ # Search items by search phrases
94
+ search: Optional[str] = None
95
+
96
+
97
+ @dataclass
98
+ class CountRequestBuilderGetRequestConfiguration(RequestConfiguration[CountRequestBuilderGetQueryParameters]):
99
+ """
100
+ Configuration for the request such as headers, query parameters, and middleware options.
101
+ """
102
+ warn("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.", DeprecationWarning)
103
+
104
+
@@ -0,0 +1,209 @@
1
+ from __future__ import annotations
2
+ from collections.abc import Callable
3
+ from dataclasses import dataclass, field
4
+ from kiota_abstractions.base_request_builder import BaseRequestBuilder
5
+ from kiota_abstractions.base_request_configuration import RequestConfiguration
6
+ from kiota_abstractions.default_query_parameters import QueryParameters
7
+ from kiota_abstractions.get_path_parameters import get_path_parameters
8
+ from kiota_abstractions.method import Method
9
+ from kiota_abstractions.request_adapter import RequestAdapter
10
+ from kiota_abstractions.request_information import RequestInformation
11
+ from kiota_abstractions.request_option import RequestOption
12
+ from kiota_abstractions.serialization import Parsable, ParsableFactory
13
+ from typing import Any, Optional, TYPE_CHECKING, Union
14
+ from warnings import warn
15
+
16
+ if TYPE_CHECKING:
17
+ from .....models.external_authentication_method import ExternalAuthenticationMethod
18
+ from .....models.external_authentication_method_collection_response import ExternalAuthenticationMethodCollectionResponse
19
+ from .....models.o_data_errors.o_data_error import ODataError
20
+ from .count.count_request_builder import CountRequestBuilder
21
+ from .item.external_authentication_method_item_request_builder import ExternalAuthenticationMethodItemRequestBuilder
22
+
23
+ class ExternalAuthenticationMethodsRequestBuilder(BaseRequestBuilder):
24
+ """
25
+ Provides operations to manage the externalAuthenticationMethods property of the microsoft.graph.authentication entity.
26
+ """
27
+ def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, dict[str, Any]]) -> None:
28
+ """
29
+ Instantiates a new ExternalAuthenticationMethodsRequestBuilder and sets the default values.
30
+ param path_parameters: The raw url or the url-template parameters for the request.
31
+ param request_adapter: The request adapter to use to execute the requests.
32
+ Returns: None
33
+ """
34
+ super().__init__(request_adapter, "{+baseurl}/users/{user%2Did}/authentication/externalAuthenticationMethods{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", path_parameters)
35
+
36
+ def by_external_authentication_method_id(self,external_authentication_method_id: str) -> ExternalAuthenticationMethodItemRequestBuilder:
37
+ """
38
+ Provides operations to manage the externalAuthenticationMethods property of the microsoft.graph.authentication entity.
39
+ param external_authentication_method_id: The unique identifier of externalAuthenticationMethod
40
+ Returns: ExternalAuthenticationMethodItemRequestBuilder
41
+ """
42
+ if external_authentication_method_id is None:
43
+ raise TypeError("external_authentication_method_id cannot be null.")
44
+ from .item.external_authentication_method_item_request_builder import ExternalAuthenticationMethodItemRequestBuilder
45
+
46
+ url_tpl_params = get_path_parameters(self.path_parameters)
47
+ url_tpl_params["externalAuthenticationMethod%2Did"] = external_authentication_method_id
48
+ return ExternalAuthenticationMethodItemRequestBuilder(self.request_adapter, url_tpl_params)
49
+
50
+ async def get(self,request_configuration: Optional[RequestConfiguration[ExternalAuthenticationMethodsRequestBuilderGetQueryParameters]] = None) -> Optional[ExternalAuthenticationMethodCollectionResponse]:
51
+ """
52
+ Represents the external authentication methods registered to a user for authentication using an external identity provider.
53
+ param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
54
+ Returns: Optional[ExternalAuthenticationMethodCollectionResponse]
55
+ """
56
+ request_info = self.to_get_request_information(
57
+ request_configuration
58
+ )
59
+ from .....models.o_data_errors.o_data_error import ODataError
60
+
61
+ error_mapping: dict[str, type[ParsableFactory]] = {
62
+ "XXX": ODataError,
63
+ }
64
+ if not self.request_adapter:
65
+ raise Exception("Http core is null")
66
+ from .....models.external_authentication_method_collection_response import ExternalAuthenticationMethodCollectionResponse
67
+
68
+ return await self.request_adapter.send_async(request_info, ExternalAuthenticationMethodCollectionResponse, error_mapping)
69
+
70
+ async def post(self,body: ExternalAuthenticationMethod, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[ExternalAuthenticationMethod]:
71
+ """
72
+ Create a new externalAuthenticationMethod object. This API doesn't support self-service operations.
73
+ param body: The request body
74
+ param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
75
+ Returns: Optional[ExternalAuthenticationMethod]
76
+ Find more info here: https://learn.microsoft.com/graph/api/authentication-post-externalauthenticationmethods?view=graph-rest-1.0
77
+ """
78
+ if body is None:
79
+ raise TypeError("body cannot be null.")
80
+ request_info = self.to_post_request_information(
81
+ body, request_configuration
82
+ )
83
+ from .....models.o_data_errors.o_data_error import ODataError
84
+
85
+ error_mapping: dict[str, type[ParsableFactory]] = {
86
+ "XXX": ODataError,
87
+ }
88
+ if not self.request_adapter:
89
+ raise Exception("Http core is null")
90
+ from .....models.external_authentication_method import ExternalAuthenticationMethod
91
+
92
+ return await self.request_adapter.send_async(request_info, ExternalAuthenticationMethod, error_mapping)
93
+
94
+ def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[ExternalAuthenticationMethodsRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
95
+ """
96
+ Represents the external authentication methods registered to a user for authentication using an external identity provider.
97
+ param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
98
+ Returns: RequestInformation
99
+ """
100
+ request_info = RequestInformation(Method.GET, self.url_template, self.path_parameters)
101
+ request_info.configure(request_configuration)
102
+ request_info.headers.try_add("Accept", "application/json")
103
+ return request_info
104
+
105
+ def to_post_request_information(self,body: ExternalAuthenticationMethod, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
106
+ """
107
+ Create a new externalAuthenticationMethod object. This API doesn't support self-service operations.
108
+ param body: The request body
109
+ param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
110
+ Returns: RequestInformation
111
+ """
112
+ if body is None:
113
+ raise TypeError("body cannot be null.")
114
+ request_info = RequestInformation(Method.POST, self.url_template, self.path_parameters)
115
+ request_info.configure(request_configuration)
116
+ request_info.headers.try_add("Accept", "application/json")
117
+ request_info.set_content_from_parsable(self.request_adapter, "application/json", body)
118
+ return request_info
119
+
120
+ def with_url(self,raw_url: str) -> ExternalAuthenticationMethodsRequestBuilder:
121
+ """
122
+ Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
123
+ param raw_url: The raw URL to use for the request builder.
124
+ Returns: ExternalAuthenticationMethodsRequestBuilder
125
+ """
126
+ if raw_url is None:
127
+ raise TypeError("raw_url cannot be null.")
128
+ return ExternalAuthenticationMethodsRequestBuilder(self.request_adapter, raw_url)
129
+
130
+ @property
131
+ def count(self) -> CountRequestBuilder:
132
+ """
133
+ Provides operations to count the resources in the collection.
134
+ """
135
+ from .count.count_request_builder import CountRequestBuilder
136
+
137
+ return CountRequestBuilder(self.request_adapter, self.path_parameters)
138
+
139
+ @dataclass
140
+ class ExternalAuthenticationMethodsRequestBuilderGetQueryParameters():
141
+ """
142
+ Represents the external authentication methods registered to a user for authentication using an external identity provider.
143
+ """
144
+ def get_query_parameter(self,original_name: str) -> str:
145
+ """
146
+ Maps the query parameters names to their encoded names for the URI template parsing.
147
+ param original_name: The original query parameter name in the class.
148
+ Returns: str
149
+ """
150
+ if original_name is None:
151
+ raise TypeError("original_name cannot be null.")
152
+ if original_name == "count":
153
+ return "%24count"
154
+ if original_name == "expand":
155
+ return "%24expand"
156
+ if original_name == "filter":
157
+ return "%24filter"
158
+ if original_name == "orderby":
159
+ return "%24orderby"
160
+ if original_name == "search":
161
+ return "%24search"
162
+ if original_name == "select":
163
+ return "%24select"
164
+ if original_name == "skip":
165
+ return "%24skip"
166
+ if original_name == "top":
167
+ return "%24top"
168
+ return original_name
169
+
170
+ # Include count of items
171
+ count: Optional[bool] = None
172
+
173
+ # Expand related entities
174
+ expand: Optional[list[str]] = None
175
+
176
+ # Filter items by property values
177
+ filter: Optional[str] = None
178
+
179
+ # Order items by property values
180
+ orderby: Optional[list[str]] = None
181
+
182
+ # Search items by search phrases
183
+ search: Optional[str] = None
184
+
185
+ # Select properties to be returned
186
+ select: Optional[list[str]] = None
187
+
188
+ # Skip the first n items
189
+ skip: Optional[int] = None
190
+
191
+ # Show only the first n items
192
+ top: Optional[int] = None
193
+
194
+
195
+ @dataclass
196
+ class ExternalAuthenticationMethodsRequestBuilderGetRequestConfiguration(RequestConfiguration[ExternalAuthenticationMethodsRequestBuilderGetQueryParameters]):
197
+ """
198
+ Configuration for the request such as headers, query parameters, and middleware options.
199
+ """
200
+ warn("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.", DeprecationWarning)
201
+
202
+ @dataclass
203
+ class ExternalAuthenticationMethodsRequestBuilderPostRequestConfiguration(RequestConfiguration[QueryParameters]):
204
+ """
205
+ Configuration for the request such as headers, query parameters, and middleware options.
206
+ """
207
+ warn("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.", DeprecationWarning)
208
+
209
+
@@ -0,0 +1,189 @@
1
+ from __future__ import annotations
2
+ from collections.abc import Callable
3
+ from dataclasses import dataclass, field
4
+ from kiota_abstractions.base_request_builder import BaseRequestBuilder
5
+ from kiota_abstractions.base_request_configuration import RequestConfiguration
6
+ from kiota_abstractions.default_query_parameters import QueryParameters
7
+ from kiota_abstractions.get_path_parameters import get_path_parameters
8
+ from kiota_abstractions.method import Method
9
+ from kiota_abstractions.request_adapter import RequestAdapter
10
+ from kiota_abstractions.request_information import RequestInformation
11
+ from kiota_abstractions.request_option import RequestOption
12
+ from kiota_abstractions.serialization import Parsable, ParsableFactory
13
+ from typing import Any, Optional, TYPE_CHECKING, Union
14
+ from warnings import warn
15
+
16
+ if TYPE_CHECKING:
17
+ from ......models.external_authentication_method import ExternalAuthenticationMethod
18
+ from ......models.o_data_errors.o_data_error import ODataError
19
+
20
+ class ExternalAuthenticationMethodItemRequestBuilder(BaseRequestBuilder):
21
+ """
22
+ Provides operations to manage the externalAuthenticationMethods property of the microsoft.graph.authentication entity.
23
+ """
24
+ def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, dict[str, Any]]) -> None:
25
+ """
26
+ Instantiates a new ExternalAuthenticationMethodItemRequestBuilder and sets the default values.
27
+ param path_parameters: The raw url or the url-template parameters for the request.
28
+ param request_adapter: The request adapter to use to execute the requests.
29
+ Returns: None
30
+ """
31
+ super().__init__(request_adapter, "{+baseurl}/users/{user%2Did}/authentication/externalAuthenticationMethods/{externalAuthenticationMethod%2Did}{?%24expand,%24select}", path_parameters)
32
+
33
+ async def delete(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> None:
34
+ """
35
+ Delete an externalAuthenticationMethod object. This API doesn't support self-service operations.
36
+ param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
37
+ Returns: None
38
+ Find more info here: https://learn.microsoft.com/graph/api/authentication-delete-externalauthenticationmethods?view=graph-rest-1.0
39
+ """
40
+ request_info = self.to_delete_request_information(
41
+ request_configuration
42
+ )
43
+ from ......models.o_data_errors.o_data_error import ODataError
44
+
45
+ error_mapping: dict[str, type[ParsableFactory]] = {
46
+ "XXX": ODataError,
47
+ }
48
+ if not self.request_adapter:
49
+ raise Exception("Http core is null")
50
+ return await self.request_adapter.send_no_response_content_async(request_info, error_mapping)
51
+
52
+ async def get(self,request_configuration: Optional[RequestConfiguration[ExternalAuthenticationMethodItemRequestBuilderGetQueryParameters]] = None) -> Optional[ExternalAuthenticationMethod]:
53
+ """
54
+ Represents the external authentication methods registered to a user for authentication using an external identity provider.
55
+ param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
56
+ Returns: Optional[ExternalAuthenticationMethod]
57
+ """
58
+ request_info = self.to_get_request_information(
59
+ request_configuration
60
+ )
61
+ from ......models.o_data_errors.o_data_error import ODataError
62
+
63
+ error_mapping: dict[str, type[ParsableFactory]] = {
64
+ "XXX": ODataError,
65
+ }
66
+ if not self.request_adapter:
67
+ raise Exception("Http core is null")
68
+ from ......models.external_authentication_method import ExternalAuthenticationMethod
69
+
70
+ return await self.request_adapter.send_async(request_info, ExternalAuthenticationMethod, error_mapping)
71
+
72
+ async def patch(self,body: ExternalAuthenticationMethod, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[ExternalAuthenticationMethod]:
73
+ """
74
+ Update the navigation property externalAuthenticationMethods in users
75
+ param body: The request body
76
+ param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
77
+ Returns: Optional[ExternalAuthenticationMethod]
78
+ """
79
+ if body is None:
80
+ raise TypeError("body cannot be null.")
81
+ request_info = self.to_patch_request_information(
82
+ body, request_configuration
83
+ )
84
+ from ......models.o_data_errors.o_data_error import ODataError
85
+
86
+ error_mapping: dict[str, type[ParsableFactory]] = {
87
+ "XXX": ODataError,
88
+ }
89
+ if not self.request_adapter:
90
+ raise Exception("Http core is null")
91
+ from ......models.external_authentication_method import ExternalAuthenticationMethod
92
+
93
+ return await self.request_adapter.send_async(request_info, ExternalAuthenticationMethod, error_mapping)
94
+
95
+ def to_delete_request_information(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
96
+ """
97
+ Delete an externalAuthenticationMethod object. This API doesn't support self-service operations.
98
+ param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
99
+ Returns: RequestInformation
100
+ """
101
+ request_info = RequestInformation(Method.DELETE, self.url_template, self.path_parameters)
102
+ request_info.configure(request_configuration)
103
+ request_info.headers.try_add("Accept", "application/json")
104
+ return request_info
105
+
106
+ def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[ExternalAuthenticationMethodItemRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
107
+ """
108
+ Represents the external authentication methods registered to a user for authentication using an external identity provider.
109
+ param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
110
+ Returns: RequestInformation
111
+ """
112
+ request_info = RequestInformation(Method.GET, self.url_template, self.path_parameters)
113
+ request_info.configure(request_configuration)
114
+ request_info.headers.try_add("Accept", "application/json")
115
+ return request_info
116
+
117
+ def to_patch_request_information(self,body: ExternalAuthenticationMethod, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
118
+ """
119
+ Update the navigation property externalAuthenticationMethods in users
120
+ param body: The request body
121
+ param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
122
+ Returns: RequestInformation
123
+ """
124
+ if body is None:
125
+ raise TypeError("body cannot be null.")
126
+ request_info = RequestInformation(Method.PATCH, self.url_template, self.path_parameters)
127
+ request_info.configure(request_configuration)
128
+ request_info.headers.try_add("Accept", "application/json")
129
+ request_info.set_content_from_parsable(self.request_adapter, "application/json", body)
130
+ return request_info
131
+
132
+ def with_url(self,raw_url: str) -> ExternalAuthenticationMethodItemRequestBuilder:
133
+ """
134
+ Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
135
+ param raw_url: The raw URL to use for the request builder.
136
+ Returns: ExternalAuthenticationMethodItemRequestBuilder
137
+ """
138
+ if raw_url is None:
139
+ raise TypeError("raw_url cannot be null.")
140
+ return ExternalAuthenticationMethodItemRequestBuilder(self.request_adapter, raw_url)
141
+
142
+ @dataclass
143
+ class ExternalAuthenticationMethodItemRequestBuilderDeleteRequestConfiguration(RequestConfiguration[QueryParameters]):
144
+ """
145
+ Configuration for the request such as headers, query parameters, and middleware options.
146
+ """
147
+ warn("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.", DeprecationWarning)
148
+
149
+ @dataclass
150
+ class ExternalAuthenticationMethodItemRequestBuilderGetQueryParameters():
151
+ """
152
+ Represents the external authentication methods registered to a user for authentication using an external identity provider.
153
+ """
154
+ def get_query_parameter(self,original_name: str) -> str:
155
+ """
156
+ Maps the query parameters names to their encoded names for the URI template parsing.
157
+ param original_name: The original query parameter name in the class.
158
+ Returns: str
159
+ """
160
+ if original_name is None:
161
+ raise TypeError("original_name cannot be null.")
162
+ if original_name == "expand":
163
+ return "%24expand"
164
+ if original_name == "select":
165
+ return "%24select"
166
+ return original_name
167
+
168
+ # Expand related entities
169
+ expand: Optional[list[str]] = None
170
+
171
+ # Select properties to be returned
172
+ select: Optional[list[str]] = None
173
+
174
+
175
+ @dataclass
176
+ class ExternalAuthenticationMethodItemRequestBuilderGetRequestConfiguration(RequestConfiguration[ExternalAuthenticationMethodItemRequestBuilderGetQueryParameters]):
177
+ """
178
+ Configuration for the request such as headers, query parameters, and middleware options.
179
+ """
180
+ warn("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.", DeprecationWarning)
181
+
182
+ @dataclass
183
+ class ExternalAuthenticationMethodItemRequestBuilderPatchRequestConfiguration(RequestConfiguration[QueryParameters]):
184
+ """
185
+ Configuration for the request such as headers, query parameters, and middleware options.
186
+ """
187
+ warn("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.", DeprecationWarning)
188
+
189
+
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: msgraph-sdk
3
- Version: 1.53.0
3
+ Version: 1.54.0
4
4
  Summary: The Microsoft Graph Python SDK
5
5
  Keywords: msgraph,openAPI,Microsoft,Graph
6
6
  Author-email: Microsoft <graphtooling+python@microsoft.com>