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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) 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 +453 -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/protection_policy_artifact_count.py +66 -0
  40. msgraph/generated/models/protection_policy_base.py +11 -0
  41. msgraph/generated/models/resource_access_detail.py +92 -0
  42. msgraph/generated/models/resource_access_status.py +8 -0
  43. msgraph/generated/models/resource_access_type.py +9 -0
  44. msgraph/generated/models/security/alert.py +1 -1
  45. msgraph/generated/models/security/ediscovery_purge_data_operation.py +7 -0
  46. msgraph/generated/models/security/incident.py +4 -0
  47. msgraph/generated/models/security/sensor.py +7 -0
  48. msgraph/generated/models/security/sensor_candidate.py +4 -0
  49. msgraph/generated/models/security/service_status.py +11 -0
  50. msgraph/generated/models/service_principal.py +1 -1
  51. msgraph/generated/models/teams_administration/policy_identifier_detail.py +61 -0
  52. msgraph/generated/models/teams_administration/teams_admin_root.py +8 -1
  53. msgraph/generated/models/teams_administration/teams_policy_assignment.py +60 -0
  54. msgraph/generated/models/teams_administration/teams_policy_user_assignment.py +65 -0
  55. msgraph/generated/models/teams_administration/teams_policy_user_assignment_collection_response.py +58 -0
  56. msgraph/generated/models/temporary_access_pass_authentication_method.py +0 -4
  57. msgraph/generated/models/usage_rights.py +1 -0
  58. msgraph/generated/models/windows_hello_for_business_authentication_method.py +0 -5
  59. msgraph/generated/policies/authentication_methods_policy/authentication_method_configurations/authentication_method_configurations_request_builder.py +3 -3
  60. msgraph/generated/policies/authentication_methods_policy/authentication_method_configurations/item/authentication_method_configuration_item_request_builder.py +10 -7
  61. msgraph/generated/users/item/authentication/authentication_request_builder.py +10 -0
  62. msgraph/generated/users/item/authentication/external_authentication_methods/count/count_request_builder.py +104 -0
  63. msgraph/generated/users/item/authentication/external_authentication_methods/external_authentication_methods_request_builder.py +209 -0
  64. msgraph/generated/users/item/authentication/external_authentication_methods/item/external_authentication_method_item_request_builder.py +189 -0
  65. {msgraph_sdk-1.52.0.dist-info → msgraph_sdk-1.54.0.dist-info}/METADATA +1 -1
  66. {msgraph_sdk-1.52.0.dist-info → msgraph_sdk-1.54.0.dist-info}/RECORD +68 -35
  67. {msgraph_sdk-1.52.0.dist-info → msgraph_sdk-1.54.0.dist-info}/WHEEL +0 -0
  68. {msgraph_sdk-1.52.0.dist-info → msgraph_sdk-1.54.0.dist-info}/licenses/LICENSE +0 -0
@@ -0,0 +1,228 @@
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
+ from .....models.teams_administration.teams_policy_user_assignment import TeamsPolicyUserAssignment
19
+ from .....models.teams_administration.teams_policy_user_assignment_collection_response import TeamsPolicyUserAssignmentCollectionResponse
20
+ from .count.count_request_builder import CountRequestBuilder
21
+ from .item.teams_policy_user_assignment_item_request_builder import TeamsPolicyUserAssignmentItemRequestBuilder
22
+ from .microsoft_graph_teams_administration_assign.microsoft_graph_teams_administration_assign_request_builder import MicrosoftGraphTeamsAdministrationAssignRequestBuilder
23
+ from .microsoft_graph_teams_administration_unassign.microsoft_graph_teams_administration_unassign_request_builder import MicrosoftGraphTeamsAdministrationUnassignRequestBuilder
24
+
25
+ class UserAssignmentsRequestBuilder(BaseRequestBuilder):
26
+ """
27
+ Provides operations to manage the userAssignments property of the microsoft.graph.teamsAdministration.teamsPolicyAssignment entity.
28
+ """
29
+ def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, dict[str, Any]]) -> None:
30
+ """
31
+ Instantiates a new UserAssignmentsRequestBuilder and sets the default values.
32
+ param path_parameters: The raw url or the url-template parameters for the request.
33
+ param request_adapter: The request adapter to use to execute the requests.
34
+ Returns: None
35
+ """
36
+ super().__init__(request_adapter, "{+baseurl}/admin/teams/policy/userAssignments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", path_parameters)
37
+
38
+ def by_teams_policy_user_assignment_id(self,teams_policy_user_assignment_id: str) -> TeamsPolicyUserAssignmentItemRequestBuilder:
39
+ """
40
+ Provides operations to manage the userAssignments property of the microsoft.graph.teamsAdministration.teamsPolicyAssignment entity.
41
+ param teams_policy_user_assignment_id: The unique identifier of teamsPolicyUserAssignment
42
+ Returns: TeamsPolicyUserAssignmentItemRequestBuilder
43
+ """
44
+ if teams_policy_user_assignment_id is None:
45
+ raise TypeError("teams_policy_user_assignment_id cannot be null.")
46
+ from .item.teams_policy_user_assignment_item_request_builder import TeamsPolicyUserAssignmentItemRequestBuilder
47
+
48
+ url_tpl_params = get_path_parameters(self.path_parameters)
49
+ url_tpl_params["teamsPolicyUserAssignment%2Did"] = teams_policy_user_assignment_id
50
+ return TeamsPolicyUserAssignmentItemRequestBuilder(self.request_adapter, url_tpl_params)
51
+
52
+ async def get(self,request_configuration: Optional[RequestConfiguration[UserAssignmentsRequestBuilderGetQueryParameters]] = None) -> Optional[TeamsPolicyUserAssignmentCollectionResponse]:
53
+ """
54
+ The collection of user policy assignments.
55
+ param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
56
+ Returns: Optional[TeamsPolicyUserAssignmentCollectionResponse]
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.teams_administration.teams_policy_user_assignment_collection_response import TeamsPolicyUserAssignmentCollectionResponse
69
+
70
+ return await self.request_adapter.send_async(request_info, TeamsPolicyUserAssignmentCollectionResponse, error_mapping)
71
+
72
+ async def post(self,body: TeamsPolicyUserAssignment, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[TeamsPolicyUserAssignment]:
73
+ """
74
+ Create new navigation property to userAssignments for admin
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[TeamsPolicyUserAssignment]
78
+ """
79
+ if body is None:
80
+ raise TypeError("body cannot be null.")
81
+ request_info = self.to_post_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.teams_administration.teams_policy_user_assignment import TeamsPolicyUserAssignment
92
+
93
+ return await self.request_adapter.send_async(request_info, TeamsPolicyUserAssignment, error_mapping)
94
+
95
+ def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[UserAssignmentsRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
96
+ """
97
+ The collection of user policy assignments.
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.GET, 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_post_request_information(self,body: TeamsPolicyUserAssignment, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
107
+ """
108
+ Create new navigation property to userAssignments for admin
109
+ param body: The request body
110
+ param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
111
+ Returns: RequestInformation
112
+ """
113
+ if body is None:
114
+ raise TypeError("body cannot be null.")
115
+ request_info = RequestInformation(Method.POST, self.url_template, self.path_parameters)
116
+ request_info.configure(request_configuration)
117
+ request_info.headers.try_add("Accept", "application/json")
118
+ request_info.set_content_from_parsable(self.request_adapter, "application/json", body)
119
+ return request_info
120
+
121
+ def with_url(self,raw_url: str) -> UserAssignmentsRequestBuilder:
122
+ """
123
+ Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
124
+ param raw_url: The raw URL to use for the request builder.
125
+ Returns: UserAssignmentsRequestBuilder
126
+ """
127
+ if raw_url is None:
128
+ raise TypeError("raw_url cannot be null.")
129
+ return UserAssignmentsRequestBuilder(self.request_adapter, raw_url)
130
+
131
+ @property
132
+ def count(self) -> CountRequestBuilder:
133
+ """
134
+ Provides operations to count the resources in the collection.
135
+ """
136
+ from .count.count_request_builder import CountRequestBuilder
137
+
138
+ return CountRequestBuilder(self.request_adapter, self.path_parameters)
139
+
140
+ @property
141
+ def microsoft_graph_teams_administration_assign(self) -> MicrosoftGraphTeamsAdministrationAssignRequestBuilder:
142
+ """
143
+ Provides operations to call the assign method.
144
+ """
145
+ from .microsoft_graph_teams_administration_assign.microsoft_graph_teams_administration_assign_request_builder import MicrosoftGraphTeamsAdministrationAssignRequestBuilder
146
+
147
+ return MicrosoftGraphTeamsAdministrationAssignRequestBuilder(self.request_adapter, self.path_parameters)
148
+
149
+ @property
150
+ def microsoft_graph_teams_administration_unassign(self) -> MicrosoftGraphTeamsAdministrationUnassignRequestBuilder:
151
+ """
152
+ Provides operations to call the unassign method.
153
+ """
154
+ from .microsoft_graph_teams_administration_unassign.microsoft_graph_teams_administration_unassign_request_builder import MicrosoftGraphTeamsAdministrationUnassignRequestBuilder
155
+
156
+ return MicrosoftGraphTeamsAdministrationUnassignRequestBuilder(self.request_adapter, self.path_parameters)
157
+
158
+ @dataclass
159
+ class UserAssignmentsRequestBuilderGetQueryParameters():
160
+ """
161
+ The collection of user policy assignments.
162
+ """
163
+ def get_query_parameter(self,original_name: str) -> str:
164
+ """
165
+ Maps the query parameters names to their encoded names for the URI template parsing.
166
+ param original_name: The original query parameter name in the class.
167
+ Returns: str
168
+ """
169
+ if original_name is None:
170
+ raise TypeError("original_name cannot be null.")
171
+ if original_name == "count":
172
+ return "%24count"
173
+ if original_name == "expand":
174
+ return "%24expand"
175
+ if original_name == "filter":
176
+ return "%24filter"
177
+ if original_name == "orderby":
178
+ return "%24orderby"
179
+ if original_name == "search":
180
+ return "%24search"
181
+ if original_name == "select":
182
+ return "%24select"
183
+ if original_name == "skip":
184
+ return "%24skip"
185
+ if original_name == "top":
186
+ return "%24top"
187
+ return original_name
188
+
189
+ # Include count of items
190
+ count: Optional[bool] = None
191
+
192
+ # Expand related entities
193
+ expand: Optional[list[str]] = None
194
+
195
+ # Filter items by property values
196
+ filter: Optional[str] = None
197
+
198
+ # Order items by property values
199
+ orderby: Optional[list[str]] = None
200
+
201
+ # Search items by search phrases
202
+ search: Optional[str] = None
203
+
204
+ # Select properties to be returned
205
+ select: Optional[list[str]] = None
206
+
207
+ # Skip the first n items
208
+ skip: Optional[int] = None
209
+
210
+ # Show only the first n items
211
+ top: Optional[int] = None
212
+
213
+
214
+ @dataclass
215
+ class UserAssignmentsRequestBuilderGetRequestConfiguration(RequestConfiguration[UserAssignmentsRequestBuilderGetQueryParameters]):
216
+ """
217
+ Configuration for the request such as headers, query parameters, and middleware options.
218
+ """
219
+ warn("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.", DeprecationWarning)
220
+
221
+ @dataclass
222
+ class UserAssignmentsRequestBuilderPostRequestConfiguration(RequestConfiguration[QueryParameters]):
223
+ """
224
+ Configuration for the request such as headers, query parameters, and middleware options.
225
+ """
226
+ warn("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.", DeprecationWarning)
227
+
228
+
@@ -16,6 +16,7 @@ from warnings import warn
16
16
  if TYPE_CHECKING:
17
17
  from ...models.o_data_errors.o_data_error import ODataError
18
18
  from ...models.teams_administration.teams_admin_root import TeamsAdminRoot
19
+ from .policy.policy_request_builder import PolicyRequestBuilder
19
20
  from .user_configurations.user_configurations_request_builder import UserConfigurationsRequestBuilder
20
21
 
21
22
  class TeamsRequestBuilder(BaseRequestBuilder):
@@ -51,7 +52,7 @@ class TeamsRequestBuilder(BaseRequestBuilder):
51
52
 
52
53
  async def get(self,request_configuration: Optional[RequestConfiguration[TeamsRequestBuilderGetQueryParameters]] = None) -> Optional[TeamsAdminRoot]:
53
54
  """
54
- Represents a collection of user configurations.
55
+ A container for Teams administration functionalities, such as user configurations and policy assignments.
55
56
  param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
56
57
  Returns: Optional[TeamsAdminRoot]
57
58
  """
@@ -105,7 +106,7 @@ class TeamsRequestBuilder(BaseRequestBuilder):
105
106
 
106
107
  def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[TeamsRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
107
108
  """
108
- Represents a collection of user configurations.
109
+ A container for Teams administration functionalities, such as user configurations and policy assignments.
109
110
  param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
110
111
  Returns: RequestInformation
111
112
  """
@@ -139,6 +140,15 @@ class TeamsRequestBuilder(BaseRequestBuilder):
139
140
  raise TypeError("raw_url cannot be null.")
140
141
  return TeamsRequestBuilder(self.request_adapter, raw_url)
141
142
 
143
+ @property
144
+ def policy(self) -> PolicyRequestBuilder:
145
+ """
146
+ Provides operations to manage the policy property of the microsoft.graph.teamsAdministration.teamsAdminRoot entity.
147
+ """
148
+ from .policy.policy_request_builder import PolicyRequestBuilder
149
+
150
+ return PolicyRequestBuilder(self.request_adapter, self.path_parameters)
151
+
142
152
  @property
143
153
  def user_configurations(self) -> UserConfigurationsRequestBuilder:
144
154
  """
@@ -158,7 +168,7 @@ class TeamsRequestBuilder(BaseRequestBuilder):
158
168
  @dataclass
159
169
  class TeamsRequestBuilderGetQueryParameters():
160
170
  """
161
- Represents a collection of user configurations.
171
+ A container for Teams administration functionalities, such as user configurations and policy assignments.
162
172
  """
163
173
  def get_query_parameter(self,original_name: str) -> str:
164
174
  """