msgraph-sdk 1.9.0__py3-none-any.whl → 1.10.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 (74) hide show
  1. msgraph/_version.py +1 -1
  2. msgraph/generated/chats/item/messages/delta/delta_request_builder.py +3 -3
  3. msgraph/generated/chats/item/messages/item/replies/delta/delta_request_builder.py +3 -3
  4. msgraph/generated/chats/item/messages/messages_request_builder.py +3 -3
  5. msgraph/generated/communications/calls/item/participants/invite/invite_request_builder.py +3 -3
  6. msgraph/generated/device_app_management/device_app_management_request_builder.py +2 -2
  7. msgraph/generated/device_app_management/managed_app_policies/item/managed_app_policy_item_request_builder.py +4 -4
  8. msgraph/generated/device_app_management/managed_app_policies/item/target_apps/target_apps_request_builder.py +1 -1
  9. msgraph/generated/device_app_management/managed_app_registrations/item/applied_policies/item/target_apps/target_apps_request_builder.py +1 -1
  10. msgraph/generated/device_app_management/managed_app_registrations/item/intended_policies/item/target_apps/target_apps_request_builder.py +1 -1
  11. msgraph/generated/device_app_management/managed_app_registrations/managed_app_registrations_request_builder.py +4 -4
  12. msgraph/generated/device_app_management/managed_app_statuses/item/managed_app_status_item_request_builder.py +4 -4
  13. msgraph/generated/device_app_management/managed_app_statuses/managed_app_statuses_request_builder.py +4 -4
  14. msgraph/generated/device_app_management/managed_e_books/item/assignments/item/managed_e_book_assignment_item_request_builder.py +7 -7
  15. msgraph/generated/device_app_management/managed_e_books/managed_e_books_request_builder.py +4 -4
  16. msgraph/generated/device_app_management/mobile_apps/item/mobile_app_item_request_builder.py +6 -6
  17. msgraph/generated/device_app_management/mobile_apps/mobile_apps_request_builder.py +7 -7
  18. msgraph/generated/device_management/device_compliance_policies/device_compliance_policies_request_builder.py +7 -7
  19. msgraph/generated/device_management/device_compliance_policies/item/device_compliance_policy_item_request_builder.py +10 -10
  20. msgraph/generated/device_management/device_configurations/device_configurations_request_builder.py +7 -7
  21. msgraph/generated/device_management/device_configurations/item/device_configuration_item_request_builder.py +10 -10
  22. msgraph/generated/device_management/device_enrollment_configurations/item/device_enrollment_configuration_item_request_builder.py +4 -4
  23. msgraph/generated/device_management/device_management_request_builder.py +2 -2
  24. msgraph/generated/device_management/managed_devices/item/device_category/device_category_request_builder.py +10 -0
  25. msgraph/generated/device_management/managed_devices/item/device_category/ref/ref_request_builder.py +157 -0
  26. msgraph/generated/device_management/role_definitions/item/role_definition_item_request_builder.py +7 -7
  27. msgraph/generated/device_management/role_definitions/role_definitions_request_builder.py +7 -7
  28. msgraph/generated/external/connections/item/items/item/external_item_item_request_builder.py +3 -3
  29. msgraph/generated/groups/groups_request_builder.py +3 -3
  30. msgraph/generated/groups/item/conversations/conversations_request_builder.py +3 -3
  31. msgraph/generated/groups/item/conversations/item/conversation_item_request_builder.py +1 -1
  32. msgraph/generated/groups/item/conversations/item/threads/item/reply/reply_request_builder.py +3 -3
  33. msgraph/generated/groups/item/team/channels/item/messages/delta/delta_request_builder.py +3 -3
  34. msgraph/generated/groups/item/team/channels/item/messages/item/replies/delta/delta_request_builder.py +3 -3
  35. msgraph/generated/groups/item/team/primary_channel/messages/delta/delta_request_builder.py +3 -3
  36. msgraph/generated/groups/item/team/primary_channel/messages/item/replies/delta/delta_request_builder.py +3 -3
  37. msgraph/generated/groups/item/threads/item/conversation_thread_item_request_builder.py +4 -4
  38. msgraph/generated/groups/item/threads/item/reply/reply_request_builder.py +3 -3
  39. msgraph/generated/identity/conditional_access/named_locations/item/named_location_item_request_builder.py +7 -7
  40. msgraph/generated/identity_governance/entitlement_management/access_packages/item/access_package_item_request_builder.py +4 -4
  41. msgraph/generated/identity_governance/entitlement_management/catalogs/item/custom_workflow_extensions/item/custom_callout_extension_item_request_builder.py +7 -7
  42. msgraph/generated/kiota-dom-export.txt +32 -0
  43. msgraph/generated/kiota-lock.json +2 -2
  44. msgraph/generated/models/entitlement_management_schedule.py +1 -1
  45. msgraph/generated/models/on_premises_directory_synchronization_feature.py +1 -1
  46. msgraph/generated/models/service_principal.py +1 -1
  47. msgraph/generated/models/user.py +3 -3
  48. msgraph/generated/organization/item/organization_item_request_builder.py +3 -3
  49. msgraph/generated/organization/organization_request_builder.py +4 -4
  50. msgraph/generated/sites/item/lists/item/list_item_request_builder.py +4 -4
  51. msgraph/generated/sites/sites_request_builder.py +4 -4
  52. msgraph/generated/teams/item/channels/item/members/item/conversation_member_item_request_builder.py +3 -3
  53. msgraph/generated/teams/item/channels/item/messages/delta/delta_request_builder.py +3 -3
  54. msgraph/generated/teams/item/channels/item/messages/item/replies/delta/delta_request_builder.py +3 -3
  55. msgraph/generated/teams/item/channels/item/messages/messages_request_builder.py +3 -3
  56. msgraph/generated/teams/item/primary_channel/messages/delta/delta_request_builder.py +3 -3
  57. msgraph/generated/teams/item/primary_channel/messages/item/replies/delta/delta_request_builder.py +3 -3
  58. msgraph/generated/teamwork/deleted_teams/item/channels/item/messages/delta/delta_request_builder.py +3 -3
  59. msgraph/generated/teamwork/deleted_teams/item/channels/item/messages/item/replies/delta/delta_request_builder.py +3 -3
  60. msgraph/generated/users/item/chats/item/messages/delta/delta_request_builder.py +3 -3
  61. msgraph/generated/users/item/chats/item/messages/item/replies/delta/delta_request_builder.py +3 -3
  62. msgraph/generated/users/item/joined_teams/item/channels/item/messages/delta/delta_request_builder.py +3 -3
  63. msgraph/generated/users/item/joined_teams/item/channels/item/messages/item/replies/delta/delta_request_builder.py +3 -3
  64. msgraph/generated/users/item/joined_teams/item/primary_channel/messages/delta/delta_request_builder.py +3 -3
  65. msgraph/generated/users/item/joined_teams/item/primary_channel/messages/item/replies/delta/delta_request_builder.py +3 -3
  66. msgraph/generated/users/item/managed_devices/item/device_category/device_category_request_builder.py +10 -0
  67. msgraph/generated/users/item/managed_devices/item/device_category/ref/ref_request_builder.py +157 -0
  68. msgraph/generated/users/item/presence/presence_request_builder.py +4 -4
  69. msgraph/generated/users/item/user_item_request_builder.py +8 -8
  70. msgraph/generated/users/users_request_builder.py +7 -7
  71. {msgraph_sdk-1.9.0.dist-info → msgraph_sdk-1.10.0.dist-info}/METADATA +1 -1
  72. {msgraph_sdk-1.9.0.dist-info → msgraph_sdk-1.10.0.dist-info}/RECORD +74 -72
  73. {msgraph_sdk-1.9.0.dist-info → msgraph_sdk-1.10.0.dist-info}/LICENSE +0 -0
  74. {msgraph_sdk-1.9.0.dist-info → msgraph_sdk-1.10.0.dist-info}/WHEEL +0 -0
@@ -31,7 +31,7 @@ class DeltaRequestBuilder(BaseRequestBuilder):
31
31
 
32
32
  async def get(self,request_configuration: Optional[RequestConfiguration[DeltaRequestBuilderGetQueryParameters]] = None) -> Optional[DeltaGetResponse]:
33
33
  """
34
- Retrieve the list of messages (without the replies) in a channel of a team. By using delta query, you can get new or updated messages in a channel. Delta query supports both full synchronization that retrieves all the messages in the specified channel, and incremental synchronization that retrieves those messages that have been added or changed in the channel since the last synchronization. Typically, you would do an initial full synchronization, and then get incremental changes to that messages view periodically. To get the replies for a message, use the list message replies or the get message reply operation. A GET request with the delta function returns either: State tokens are opaque to the client. To proceed with a round of change tracking, copy and apply the @odata.nextLink or @odata.deltaLink URL returned from the last GET request to the next delta function call for that same calendar view. A @odata.deltaLink returned in a response signifies that the current round of change tracking is complete. You can save and use the @odata.deltaLink URL when you begin to retrieve more changes (messages changed or posted after acquiring @odata.deltaLink). For more information, see the delta query documentation.
34
+ Get the list of messages from all chats in which a user is a participant, including one-on-one chats, group chats, and meeting chats. When you use delta query, you can get new or updated messages. To get the replies for a message, use the list message replies or the get message reply operations. A GET request with the delta function returns one of the following: State tokens are opaque to the client. To proceed with a round of change tracking, copy and apply the @odata.nextLink or @odata.deltaLink URL returned from the last GET request to the next delta function call. An @odata.deltaLink returned in a response signifies that the current round of change tracking is complete. You can save and use the @odata.deltaLink URL when you begin to retrieve more changes (messages changed or posted after you acquire @odata.deltaLink). For more information, see the delta query documentation.
35
35
  param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
36
36
  Returns: Optional[DeltaGetResponse]
37
37
  Find more info here: https://learn.microsoft.com/graph/api/chatmessage-delta?view=graph-rest-1.0
@@ -52,7 +52,7 @@ class DeltaRequestBuilder(BaseRequestBuilder):
52
52
 
53
53
  def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[DeltaRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
54
54
  """
55
- Retrieve the list of messages (without the replies) in a channel of a team. By using delta query, you can get new or updated messages in a channel. Delta query supports both full synchronization that retrieves all the messages in the specified channel, and incremental synchronization that retrieves those messages that have been added or changed in the channel since the last synchronization. Typically, you would do an initial full synchronization, and then get incremental changes to that messages view periodically. To get the replies for a message, use the list message replies or the get message reply operation. A GET request with the delta function returns either: State tokens are opaque to the client. To proceed with a round of change tracking, copy and apply the @odata.nextLink or @odata.deltaLink URL returned from the last GET request to the next delta function call for that same calendar view. A @odata.deltaLink returned in a response signifies that the current round of change tracking is complete. You can save and use the @odata.deltaLink URL when you begin to retrieve more changes (messages changed or posted after acquiring @odata.deltaLink). For more information, see the delta query documentation.
55
+ Get the list of messages from all chats in which a user is a participant, including one-on-one chats, group chats, and meeting chats. When you use delta query, you can get new or updated messages. To get the replies for a message, use the list message replies or the get message reply operations. A GET request with the delta function returns one of the following: State tokens are opaque to the client. To proceed with a round of change tracking, copy and apply the @odata.nextLink or @odata.deltaLink URL returned from the last GET request to the next delta function call. An @odata.deltaLink returned in a response signifies that the current round of change tracking is complete. You can save and use the @odata.deltaLink URL when you begin to retrieve more changes (messages changed or posted after you acquire @odata.deltaLink). For more information, see the delta query documentation.
56
56
  param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
57
57
  Returns: RequestInformation
58
58
  """
@@ -74,7 +74,7 @@ class DeltaRequestBuilder(BaseRequestBuilder):
74
74
  @dataclass
75
75
  class DeltaRequestBuilderGetQueryParameters():
76
76
  """
77
- Retrieve the list of messages (without the replies) in a channel of a team. By using delta query, you can get new or updated messages in a channel. Delta query supports both full synchronization that retrieves all the messages in the specified channel, and incremental synchronization that retrieves those messages that have been added or changed in the channel since the last synchronization. Typically, you would do an initial full synchronization, and then get incremental changes to that messages view periodically. To get the replies for a message, use the list message replies or the get message reply operation. A GET request with the delta function returns either: State tokens are opaque to the client. To proceed with a round of change tracking, copy and apply the @odata.nextLink or @odata.deltaLink URL returned from the last GET request to the next delta function call for that same calendar view. A @odata.deltaLink returned in a response signifies that the current round of change tracking is complete. You can save and use the @odata.deltaLink URL when you begin to retrieve more changes (messages changed or posted after acquiring @odata.deltaLink). For more information, see the delta query documentation.
77
+ Get the list of messages from all chats in which a user is a participant, including one-on-one chats, group chats, and meeting chats. When you use delta query, you can get new or updated messages. To get the replies for a message, use the list message replies or the get message reply operations. A GET request with the delta function returns one of the following: State tokens are opaque to the client. To proceed with a round of change tracking, copy and apply the @odata.nextLink or @odata.deltaLink URL returned from the last GET request to the next delta function call. An @odata.deltaLink returned in a response signifies that the current round of change tracking is complete. You can save and use the @odata.deltaLink URL when you begin to retrieve more changes (messages changed or posted after you acquire @odata.deltaLink). For more information, see the delta query documentation.
78
78
  """
79
79
  def get_query_parameter(self,original_name: str) -> str:
80
80
  """
@@ -31,7 +31,7 @@ class DeltaRequestBuilder(BaseRequestBuilder):
31
31
 
32
32
  async def get(self,request_configuration: Optional[RequestConfiguration[DeltaRequestBuilderGetQueryParameters]] = None) -> Optional[DeltaGetResponse]:
33
33
  """
34
- Retrieve the list of messages (without the replies) in a channel of a team. By using delta query, you can get new or updated messages in a channel. Delta query supports both full synchronization that retrieves all the messages in the specified channel, and incremental synchronization that retrieves those messages that have been added or changed in the channel since the last synchronization. Typically, you would do an initial full synchronization, and then get incremental changes to that messages view periodically. To get the replies for a message, use the list message replies or the get message reply operation. A GET request with the delta function returns either: State tokens are opaque to the client. To proceed with a round of change tracking, copy and apply the @odata.nextLink or @odata.deltaLink URL returned from the last GET request to the next delta function call for that same calendar view. A @odata.deltaLink returned in a response signifies that the current round of change tracking is complete. You can save and use the @odata.deltaLink URL when you begin to retrieve more changes (messages changed or posted after acquiring @odata.deltaLink). For more information, see the delta query documentation.
34
+ Get the list of messages from all chats in which a user is a participant, including one-on-one chats, group chats, and meeting chats. When you use delta query, you can get new or updated messages. To get the replies for a message, use the list message replies or the get message reply operations. A GET request with the delta function returns one of the following: State tokens are opaque to the client. To proceed with a round of change tracking, copy and apply the @odata.nextLink or @odata.deltaLink URL returned from the last GET request to the next delta function call. An @odata.deltaLink returned in a response signifies that the current round of change tracking is complete. You can save and use the @odata.deltaLink URL when you begin to retrieve more changes (messages changed or posted after you acquire @odata.deltaLink). For more information, see the delta query documentation.
35
35
  param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
36
36
  Returns: Optional[DeltaGetResponse]
37
37
  Find more info here: https://learn.microsoft.com/graph/api/chatmessage-delta?view=graph-rest-1.0
@@ -52,7 +52,7 @@ class DeltaRequestBuilder(BaseRequestBuilder):
52
52
 
53
53
  def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[DeltaRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
54
54
  """
55
- Retrieve the list of messages (without the replies) in a channel of a team. By using delta query, you can get new or updated messages in a channel. Delta query supports both full synchronization that retrieves all the messages in the specified channel, and incremental synchronization that retrieves those messages that have been added or changed in the channel since the last synchronization. Typically, you would do an initial full synchronization, and then get incremental changes to that messages view periodically. To get the replies for a message, use the list message replies or the get message reply operation. A GET request with the delta function returns either: State tokens are opaque to the client. To proceed with a round of change tracking, copy and apply the @odata.nextLink or @odata.deltaLink URL returned from the last GET request to the next delta function call for that same calendar view. A @odata.deltaLink returned in a response signifies that the current round of change tracking is complete. You can save and use the @odata.deltaLink URL when you begin to retrieve more changes (messages changed or posted after acquiring @odata.deltaLink). For more information, see the delta query documentation.
55
+ Get the list of messages from all chats in which a user is a participant, including one-on-one chats, group chats, and meeting chats. When you use delta query, you can get new or updated messages. To get the replies for a message, use the list message replies or the get message reply operations. A GET request with the delta function returns one of the following: State tokens are opaque to the client. To proceed with a round of change tracking, copy and apply the @odata.nextLink or @odata.deltaLink URL returned from the last GET request to the next delta function call. An @odata.deltaLink returned in a response signifies that the current round of change tracking is complete. You can save and use the @odata.deltaLink URL when you begin to retrieve more changes (messages changed or posted after you acquire @odata.deltaLink). For more information, see the delta query documentation.
56
56
  param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
57
57
  Returns: RequestInformation
58
58
  """
@@ -74,7 +74,7 @@ class DeltaRequestBuilder(BaseRequestBuilder):
74
74
  @dataclass
75
75
  class DeltaRequestBuilderGetQueryParameters():
76
76
  """
77
- Retrieve the list of messages (without the replies) in a channel of a team. By using delta query, you can get new or updated messages in a channel. Delta query supports both full synchronization that retrieves all the messages in the specified channel, and incremental synchronization that retrieves those messages that have been added or changed in the channel since the last synchronization. Typically, you would do an initial full synchronization, and then get incremental changes to that messages view periodically. To get the replies for a message, use the list message replies or the get message reply operation. A GET request with the delta function returns either: State tokens are opaque to the client. To proceed with a round of change tracking, copy and apply the @odata.nextLink or @odata.deltaLink URL returned from the last GET request to the next delta function call for that same calendar view. A @odata.deltaLink returned in a response signifies that the current round of change tracking is complete. You can save and use the @odata.deltaLink URL when you begin to retrieve more changes (messages changed or posted after acquiring @odata.deltaLink). For more information, see the delta query documentation.
77
+ Get the list of messages from all chats in which a user is a participant, including one-on-one chats, group chats, and meeting chats. When you use delta query, you can get new or updated messages. To get the replies for a message, use the list message replies or the get message reply operations. A GET request with the delta function returns one of the following: State tokens are opaque to the client. To proceed with a round of change tracking, copy and apply the @odata.nextLink or @odata.deltaLink URL returned from the last GET request to the next delta function call. An @odata.deltaLink returned in a response signifies that the current round of change tracking is complete. You can save and use the @odata.deltaLink URL when you begin to retrieve more changes (messages changed or posted after you acquire @odata.deltaLink). For more information, see the delta query documentation.
78
78
  """
79
79
  def get_query_parameter(self,original_name: str) -> str:
80
80
  """
@@ -15,6 +15,7 @@ from warnings import warn
15
15
  if TYPE_CHECKING:
16
16
  from ......models.device_category import DeviceCategory
17
17
  from ......models.o_data_errors.o_data_error import ODataError
18
+ from .ref.ref_request_builder import RefRequestBuilder
18
19
 
19
20
  class DeviceCategoryRequestBuilder(BaseRequestBuilder):
20
21
  """
@@ -137,6 +138,15 @@ class DeviceCategoryRequestBuilder(BaseRequestBuilder):
137
138
  raise TypeError("raw_url cannot be null.")
138
139
  return DeviceCategoryRequestBuilder(self.request_adapter, raw_url)
139
140
 
141
+ @property
142
+ def ref(self) -> RefRequestBuilder:
143
+ """
144
+ Provides operations to manage the collection of user entities.
145
+ """
146
+ from .ref.ref_request_builder import RefRequestBuilder
147
+
148
+ return RefRequestBuilder(self.request_adapter, self.path_parameters)
149
+
140
150
  @dataclass
141
151
  class DeviceCategoryRequestBuilderDeleteRequestConfiguration(RequestConfiguration[QueryParameters]):
142
152
  """
@@ -0,0 +1,157 @@
1
+ from __future__ import annotations
2
+ from dataclasses import dataclass, field
3
+ from kiota_abstractions.base_request_builder import BaseRequestBuilder
4
+ from kiota_abstractions.base_request_configuration import RequestConfiguration
5
+ from kiota_abstractions.default_query_parameters import QueryParameters
6
+ from kiota_abstractions.get_path_parameters import get_path_parameters
7
+ from kiota_abstractions.method import Method
8
+ from kiota_abstractions.request_adapter import RequestAdapter
9
+ from kiota_abstractions.request_information import RequestInformation
10
+ from kiota_abstractions.request_option import RequestOption
11
+ from kiota_abstractions.serialization import Parsable, ParsableFactory
12
+ from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union
13
+ from warnings import warn
14
+
15
+ if TYPE_CHECKING:
16
+ from .......models.o_data_errors.o_data_error import ODataError
17
+ from .......models.reference_update import ReferenceUpdate
18
+
19
+ class RefRequestBuilder(BaseRequestBuilder):
20
+ """
21
+ Provides operations to manage the collection of user entities.
22
+ """
23
+ def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, Dict[str, Any]]) -> None:
24
+ """
25
+ Instantiates a new RefRequestBuilder 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}/managedDevices/{managedDevice%2Did}/deviceCategory/$ref", path_parameters)
31
+
32
+ async def delete(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> None:
33
+ """
34
+ Delete ref of navigation property deviceCategory for users
35
+ param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
36
+ Returns: None
37
+ """
38
+ request_info = self.to_delete_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_no_response_content_async(request_info, error_mapping)
49
+
50
+ async def get(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[str]:
51
+ """
52
+ Device category
53
+ param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
54
+ Returns: Optional[str]
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
+ return await self.request_adapter.send_primitive_async(request_info, "str", error_mapping)
67
+
68
+ async def put(self,body: ReferenceUpdate, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> None:
69
+ """
70
+ Update the ref of navigation property deviceCategory in users
71
+ param body: The request body
72
+ param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
73
+ Returns: None
74
+ """
75
+ if body is None:
76
+ raise TypeError("body cannot be null.")
77
+ request_info = self.to_put_request_information(
78
+ body, request_configuration
79
+ )
80
+ from .......models.o_data_errors.o_data_error import ODataError
81
+
82
+ error_mapping: Dict[str, type[ParsableFactory]] = {
83
+ "XXX": ODataError,
84
+ }
85
+ if not self.request_adapter:
86
+ raise Exception("Http core is null")
87
+ return await self.request_adapter.send_no_response_content_async(request_info, error_mapping)
88
+
89
+ def to_delete_request_information(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
90
+ """
91
+ Delete ref of navigation property deviceCategory for users
92
+ param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
93
+ Returns: RequestInformation
94
+ """
95
+ request_info = RequestInformation(Method.DELETE, self.url_template, self.path_parameters)
96
+ request_info.configure(request_configuration)
97
+ request_info.headers.try_add("Accept", "application/json")
98
+ return request_info
99
+
100
+ def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
101
+ """
102
+ Device category
103
+ param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
104
+ Returns: RequestInformation
105
+ """
106
+ request_info = RequestInformation(Method.GET, self.url_template, self.path_parameters)
107
+ request_info.configure(request_configuration)
108
+ request_info.headers.try_add("Accept", "application/json")
109
+ return request_info
110
+
111
+ def to_put_request_information(self,body: ReferenceUpdate, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
112
+ """
113
+ Update the ref of navigation property deviceCategory in users
114
+ param body: The request body
115
+ param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
116
+ Returns: RequestInformation
117
+ """
118
+ if body is None:
119
+ raise TypeError("body cannot be null.")
120
+ request_info = RequestInformation(Method.PUT, self.url_template, self.path_parameters)
121
+ request_info.configure(request_configuration)
122
+ request_info.headers.try_add("Accept", "application/json")
123
+ request_info.set_content_from_parsable(self.request_adapter, "application/json", body)
124
+ return request_info
125
+
126
+ def with_url(self,raw_url: str) -> RefRequestBuilder:
127
+ """
128
+ Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
129
+ param raw_url: The raw URL to use for the request builder.
130
+ Returns: RefRequestBuilder
131
+ """
132
+ if raw_url is None:
133
+ raise TypeError("raw_url cannot be null.")
134
+ return RefRequestBuilder(self.request_adapter, raw_url)
135
+
136
+ @dataclass
137
+ class RefRequestBuilderDeleteRequestConfiguration(RequestConfiguration[QueryParameters]):
138
+ """
139
+ Configuration for the request such as headers, query parameters, and middleware options.
140
+ """
141
+ warn("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.", DeprecationWarning)
142
+
143
+ @dataclass
144
+ class RefRequestBuilderGetRequestConfiguration(RequestConfiguration[QueryParameters]):
145
+ """
146
+ Configuration for the request such as headers, query parameters, and middleware options.
147
+ """
148
+ warn("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.", DeprecationWarning)
149
+
150
+ @dataclass
151
+ class RefRequestBuilderPutRequestConfiguration(RequestConfiguration[QueryParameters]):
152
+ """
153
+ Configuration for the request such as headers, query parameters, and middleware options.
154
+ """
155
+ warn("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.", DeprecationWarning)
156
+
157
+
@@ -54,10 +54,10 @@ class PresenceRequestBuilder(BaseRequestBuilder):
54
54
 
55
55
  async def get(self,request_configuration: Optional[RequestConfiguration[PresenceRequestBuilderGetQueryParameters]] = None) -> Optional[Presence]:
56
56
  """
57
- Set a presence status message for a user. An optional expiration date and time can be supplied.
57
+ Get a user's presence information.
58
58
  param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
59
59
  Returns: Optional[Presence]
60
- Find more info here: https://learn.microsoft.com/graph/api/presence-setstatusmessage?view=graph-rest-1.0
60
+ Find more info here: https://learn.microsoft.com/graph/api/presence-get?view=graph-rest-1.0
61
61
  """
62
62
  request_info = self.to_get_request_information(
63
63
  request_configuration
@@ -109,7 +109,7 @@ class PresenceRequestBuilder(BaseRequestBuilder):
109
109
 
110
110
  def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[PresenceRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
111
111
  """
112
- Set a presence status message for a user. An optional expiration date and time can be supplied.
112
+ Get a user's presence information.
113
113
  param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
114
114
  Returns: RequestInformation
115
115
  """
@@ -198,7 +198,7 @@ class PresenceRequestBuilder(BaseRequestBuilder):
198
198
  @dataclass
199
199
  class PresenceRequestBuilderGetQueryParameters():
200
200
  """
201
- Set a presence status message for a user. An optional expiration date and time can be supplied.
201
+ Get a user's presence information.
202
202
  """
203
203
  def get_query_parameter(self,original_name: str) -> str:
204
204
  """
@@ -107,10 +107,10 @@ class UserItemRequestBuilder(BaseRequestBuilder):
107
107
 
108
108
  async def delete(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> None:
109
109
  """
110
- Deletes a user.
110
+ Delete a user object. When deleted, user resources, including their mailbox and license assignments, are moved to a temporary container and if the user is restored within 30 days, these objects are restored to them. The user is also restored to any groups they were a member of. After 30 days and if not restored, the user object is permanently deleted and their assigned resources freed. To manage the deleted user object, see deletedItems.
111
111
  param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
112
112
  Returns: None
113
- Find more info here: https://learn.microsoft.com/graph/api/intune-mam-user-delete?view=graph-rest-1.0
113
+ Find more info here: https://learn.microsoft.com/graph/api/user-delete?view=graph-rest-1.0
114
114
  """
115
115
  request_info = self.to_delete_request_information(
116
116
  request_configuration
@@ -141,10 +141,10 @@ class UserItemRequestBuilder(BaseRequestBuilder):
141
141
 
142
142
  async def get(self,request_configuration: Optional[RequestConfiguration[UserItemRequestBuilderGetQueryParameters]] = None) -> Optional[User]:
143
143
  """
144
- Retrieve the properties and relationships of user object. This operation returns by default only a subset of the more commonly used properties for each user. These default properties are noted in the Properties section. To get properties that are not returned by default, do a GET operation for the user and specify the properties in a $select OData query option. Because the user resource supports extensions, you can also use the GET operation to get custom properties and extension data in a user instance. Customers through Microsoft Entra ID for customers can also use this API operation to retrieve their details.
144
+ Read properties and relationships of the user object.
145
145
  param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
146
146
  Returns: Optional[User]
147
- Find more info here: https://learn.microsoft.com/graph/api/user-get?view=graph-rest-1.0
147
+ Find more info here: https://learn.microsoft.com/graph/api/intune-onboarding-user-get?view=graph-rest-1.0
148
148
  """
149
149
  request_info = self.to_get_request_information(
150
150
  request_configuration
@@ -166,7 +166,7 @@ class UserItemRequestBuilder(BaseRequestBuilder):
166
166
  param body: The request body
167
167
  param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
168
168
  Returns: Optional[User]
169
- Find more info here: https://learn.microsoft.com/graph/api/intune-onboarding-user-update?view=graph-rest-1.0
169
+ Find more info here: https://learn.microsoft.com/graph/api/user-update?view=graph-rest-1.0
170
170
  """
171
171
  if body is None:
172
172
  raise TypeError("body cannot be null.")
@@ -201,7 +201,7 @@ class UserItemRequestBuilder(BaseRequestBuilder):
201
201
 
202
202
  def to_delete_request_information(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
203
203
  """
204
- Deletes a user.
204
+ Delete a user object. When deleted, user resources, including their mailbox and license assignments, are moved to a temporary container and if the user is restored within 30 days, these objects are restored to them. The user is also restored to any groups they were a member of. After 30 days and if not restored, the user object is permanently deleted and their assigned resources freed. To manage the deleted user object, see deletedItems.
205
205
  param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
206
206
  Returns: RequestInformation
207
207
  """
@@ -212,7 +212,7 @@ class UserItemRequestBuilder(BaseRequestBuilder):
212
212
 
213
213
  def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[UserItemRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
214
214
  """
215
- Retrieve the properties and relationships of user object. This operation returns by default only a subset of the more commonly used properties for each user. These default properties are noted in the Properties section. To get properties that are not returned by default, do a GET operation for the user and specify the properties in a $select OData query option. Because the user resource supports extensions, you can also use the GET operation to get custom properties and extension data in a user instance. Customers through Microsoft Entra ID for customers can also use this API operation to retrieve their details.
215
+ Read properties and relationships of the user object.
216
216
  param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
217
217
  Returns: RequestInformation
218
218
  """
@@ -922,7 +922,7 @@ class UserItemRequestBuilder(BaseRequestBuilder):
922
922
  @dataclass
923
923
  class UserItemRequestBuilderGetQueryParameters():
924
924
  """
925
- Retrieve the properties and relationships of user object. This operation returns by default only a subset of the more commonly used properties for each user. These default properties are noted in the Properties section. To get properties that are not returned by default, do a GET operation for the user and specify the properties in a $select OData query option. Because the user resource supports extensions, you can also use the GET operation to get custom properties and extension data in a user instance. Customers through Microsoft Entra ID for customers can also use this API operation to retrieve their details.
925
+ Read properties and relationships of the user object.
926
926
  """
927
927
  def get_query_parameter(self,original_name: str) -> str:
928
928
  """
@@ -52,10 +52,10 @@ class UsersRequestBuilder(BaseRequestBuilder):
52
52
 
53
53
  async def get(self,request_configuration: Optional[RequestConfiguration[UsersRequestBuilderGetQueryParameters]] = None) -> Optional[UserCollectionResponse]:
54
54
  """
55
- Retrieve a list of user objects.
55
+ List properties and relationships of the user objects.
56
56
  param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
57
57
  Returns: Optional[UserCollectionResponse]
58
- Find more info here: https://learn.microsoft.com/graph/api/user-list?view=graph-rest-1.0
58
+ Find more info here: https://learn.microsoft.com/graph/api/intune-onboarding-user-list?view=graph-rest-1.0
59
59
  """
60
60
  request_info = self.to_get_request_information(
61
61
  request_configuration
@@ -73,11 +73,11 @@ class UsersRequestBuilder(BaseRequestBuilder):
73
73
 
74
74
  async def post(self,body: User, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[User]:
75
75
  """
76
- Create a new user object.
76
+ Create a new user.The request body contains the user to create. At a minimum, you must specify the required properties for the user. You can optionally specify any other writable properties.
77
77
  param body: The request body
78
78
  param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
79
79
  Returns: Optional[User]
80
- Find more info here: https://learn.microsoft.com/graph/api/intune-mam-user-create?view=graph-rest-1.0
80
+ Find more info here: https://learn.microsoft.com/graph/api/user-post-users?view=graph-rest-1.0
81
81
  """
82
82
  if body is None:
83
83
  raise TypeError("body cannot be null.")
@@ -97,7 +97,7 @@ class UsersRequestBuilder(BaseRequestBuilder):
97
97
 
98
98
  def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[UsersRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
99
99
  """
100
- Retrieve a list of user objects.
100
+ List properties and relationships of the user objects.
101
101
  param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
102
102
  Returns: RequestInformation
103
103
  """
@@ -108,7 +108,7 @@ class UsersRequestBuilder(BaseRequestBuilder):
108
108
 
109
109
  def to_post_request_information(self,body: User, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
110
110
  """
111
- Create a new user object.
111
+ Create a new user.The request body contains the user to create. At a minimum, you must specify the required properties for the user. You can optionally specify any other writable properties.
112
112
  param body: The request body
113
113
  param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
114
114
  Returns: RequestInformation
@@ -179,7 +179,7 @@ class UsersRequestBuilder(BaseRequestBuilder):
179
179
  @dataclass
180
180
  class UsersRequestBuilderGetQueryParameters():
181
181
  """
182
- Retrieve a list of user objects.
182
+ List properties and relationships of the user objects.
183
183
  """
184
184
  def get_query_parameter(self,original_name: str) -> str:
185
185
  """
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: msgraph-sdk
3
- Version: 1.9.0
3
+ Version: 1.10.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>