msgraph-sdk 1.51.0__py3-none-any.whl → 1.52.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 (195) hide show
  1. msgraph/_version.py +1 -1
  2. msgraph/generated/admin/admin_request_builder.py +10 -0
  3. msgraph/generated/admin/teams/teams_request_builder.py +198 -0
  4. msgraph/generated/admin/teams/user_configurations/count/count_request_builder.py +104 -0
  5. msgraph/generated/admin/teams/user_configurations/item/teams_user_configuration_item_request_builder.py +199 -0
  6. msgraph/generated/admin/teams/user_configurations/item/user/mailbox_settings/mailbox_settings_request_builder.py +152 -0
  7. msgraph/generated/admin/teams/user_configurations/item/user/service_provisioning_errors/count/count_request_builder.py +104 -0
  8. msgraph/generated/admin/teams/user_configurations/item/user/service_provisioning_errors/service_provisioning_errors_request_builder.py +147 -0
  9. msgraph/generated/admin/teams/user_configurations/item/user/user_request_builder.py +127 -0
  10. msgraph/generated/admin/teams/user_configurations/user_configurations_request_builder.py +209 -0
  11. msgraph/generated/communications/adhoc_calls/adhoc_calls_request_builder.py +208 -0
  12. msgraph/generated/communications/adhoc_calls/count/count_request_builder.py +104 -0
  13. msgraph/generated/communications/adhoc_calls/item/adhoc_call_item_request_builder.py +208 -0
  14. msgraph/generated/communications/adhoc_calls/item/recordings/count/count_request_builder.py +104 -0
  15. msgraph/generated/communications/adhoc_calls/item/recordings/delta/delta_get_response.py +58 -0
  16. msgraph/generated/communications/adhoc_calls/item/recordings/delta/delta_request_builder.py +137 -0
  17. msgraph/generated/communications/adhoc_calls/item/recordings/item/call_recording_item_request_builder.py +198 -0
  18. msgraph/generated/communications/adhoc_calls/item/recordings/item/content/content_request_builder.py +160 -0
  19. msgraph/generated/communications/adhoc_calls/item/recordings/recordings_request_builder.py +218 -0
  20. msgraph/generated/communications/adhoc_calls/item/transcripts/count/count_request_builder.py +104 -0
  21. msgraph/generated/communications/adhoc_calls/item/transcripts/delta/delta_get_response.py +58 -0
  22. msgraph/generated/communications/adhoc_calls/item/transcripts/delta/delta_request_builder.py +137 -0
  23. msgraph/generated/communications/adhoc_calls/item/transcripts/item/call_transcript_item_request_builder.py +208 -0
  24. msgraph/generated/communications/adhoc_calls/item/transcripts/item/content/content_request_builder.py +160 -0
  25. msgraph/generated/communications/adhoc_calls/item/transcripts/item/metadata_content/metadata_content_request_builder.py +157 -0
  26. msgraph/generated/communications/adhoc_calls/item/transcripts/transcripts_request_builder.py +218 -0
  27. msgraph/generated/communications/communications_request_builder.py +10 -0
  28. msgraph/generated/communications/presences/item/clear_automatic_location/clear_automatic_location_request_builder.py +79 -0
  29. msgraph/generated/communications/presences/item/clear_location/clear_location_request_builder.py +79 -0
  30. msgraph/generated/communications/presences/item/presence_item_request_builder.py +40 -0
  31. msgraph/generated/communications/presences/item/set_automatic_location/set_automatic_location_post_request_body.py +61 -0
  32. msgraph/generated/communications/presences/item/set_automatic_location/set_automatic_location_request_builder.py +87 -0
  33. msgraph/generated/communications/presences/item/set_manual_location/set_manual_location_post_request_body.py +61 -0
  34. msgraph/generated/communications/presences/item/set_manual_location/set_manual_location_request_builder.py +87 -0
  35. msgraph/generated/device_management/virtual_endpoint/cloud_p_cs/item/cloud_p_c_item_request_builder.py +20 -0
  36. msgraph/generated/device_management/virtual_endpoint/cloud_p_cs/item/reprovision/reprovision_post_request_body.py +64 -0
  37. msgraph/generated/device_management/virtual_endpoint/cloud_p_cs/item/reprovision/reprovision_request_builder.py +87 -0
  38. msgraph/generated/device_management/virtual_endpoint/cloud_p_cs/item/retrieve_cloud_pc_launch_detail/retrieve_cloud_pc_launch_detail_request_builder.py +82 -0
  39. msgraph/generated/device_management/virtual_endpoint/report/report_request_builder.py +198 -0
  40. msgraph/generated/device_management/virtual_endpoint/report/retrieve_cloud_pc_recommendation_reports/retrieve_cloud_pc_recommendation_reports_post_request_body.py +85 -0
  41. msgraph/generated/device_management/virtual_endpoint/report/retrieve_cloud_pc_recommendation_reports/retrieve_cloud_pc_recommendation_reports_request_builder.py +87 -0
  42. msgraph/generated/device_management/virtual_endpoint/virtual_endpoint_request_builder.py +10 -0
  43. msgraph/generated/drives/item/recent/recent_request_builder.py +3 -0
  44. msgraph/generated/drives/item/shared_with_me/shared_with_me_request_builder.py +3 -0
  45. msgraph/generated/kiota-dom-export.txt +1954 -1
  46. msgraph/generated/kiota-lock.json +1 -1
  47. msgraph/generated/models/action_item.py +62 -0
  48. msgraph/generated/models/adhoc_call.py +67 -0
  49. msgraph/generated/models/adhoc_call_collection_response.py +58 -0
  50. msgraph/generated/models/admin.py +7 -0
  51. msgraph/generated/models/ai_online_meeting.py +60 -0
  52. msgraph/generated/models/ai_user.py +7 -0
  53. msgraph/generated/models/allowed_target_scope.py +1 -0
  54. msgraph/generated/models/building.py +7 -0
  55. msgraph/generated/models/call_ai_insight.py +91 -0
  56. msgraph/generated/models/call_ai_insight_view_point.py +61 -0
  57. msgraph/generated/models/cloud_communications.py +7 -0
  58. msgraph/generated/models/cloud_pc_launch_detail.py +73 -0
  59. msgraph/generated/models/cloud_pc_operating_system.py +7 -0
  60. msgraph/generated/models/cloud_pc_recommendation_report_type.py +6 -0
  61. msgraph/generated/models/cloud_pc_report.py +53 -0
  62. msgraph/generated/models/cloud_pc_user_account_type.py +7 -0
  63. msgraph/generated/models/desk.py +8 -1
  64. msgraph/generated/models/entity.py +84 -0
  65. msgraph/generated/models/file_storage.py +16 -2
  66. msgraph/generated/models/file_storage_container.py +7 -0
  67. msgraph/generated/models/file_storage_container_billing_classification.py +8 -0
  68. msgraph/generated/models/file_storage_container_billing_status.py +7 -0
  69. msgraph/generated/models/file_storage_container_type.py +96 -0
  70. msgraph/generated/models/file_storage_container_type_app_permission.py +20 -0
  71. msgraph/generated/models/file_storage_container_type_app_permission_grant.py +69 -0
  72. msgraph/generated/models/file_storage_container_type_app_permission_grant_collection_response.py +58 -0
  73. msgraph/generated/models/file_storage_container_type_collection_response.py +58 -0
  74. msgraph/generated/models/file_storage_container_type_registration.py +103 -0
  75. msgraph/generated/models/file_storage_container_type_registration_collection_response.py +58 -0
  76. msgraph/generated/models/file_storage_container_type_registration_settings.py +89 -0
  77. msgraph/generated/models/file_storage_container_type_settings.py +96 -0
  78. msgraph/generated/models/file_storage_container_type_settings_override.py +11 -0
  79. msgraph/generated/models/list_item.py +7 -0
  80. msgraph/generated/models/max_work_location_details.py +9 -0
  81. msgraph/generated/models/meeting_note.py +69 -0
  82. msgraph/generated/models/meeting_note_subpoint.py +58 -0
  83. msgraph/generated/models/mention_event.py +70 -0
  84. msgraph/generated/models/online_meeting_base.py +20 -0
  85. msgraph/generated/models/online_meeting_sensitivity_label_assignment.py +54 -0
  86. msgraph/generated/models/place_feature_enablement.py +8 -0
  87. msgraph/generated/models/place_mode.py +7 -0
  88. msgraph/generated/models/presence.py +7 -0
  89. msgraph/generated/models/restore_point_search_result.py +1 -1
  90. msgraph/generated/models/room.py +11 -0
  91. msgraph/generated/models/security/active_directory_domain_evidence.py +61 -0
  92. msgraph/generated/models/security/alert_evidence.py +7 -0
  93. msgraph/generated/models/security/device_evidence.py +8 -1
  94. msgraph/generated/models/security/ediscovery_case.py +7 -0
  95. msgraph/generated/models/security/ediscovery_case_member.py +68 -0
  96. msgraph/generated/models/security/ediscovery_case_member_collection_response.py +58 -0
  97. msgraph/generated/models/security/mailbox_configuration_evidence.py +6 -6
  98. msgraph/generated/models/security/recipient_type.py +7 -0
  99. msgraph/generated/models/sensitivity_label.py +4 -0
  100. msgraph/generated/models/subject_set.py +7 -0
  101. msgraph/generated/models/target_agent_identity_sponsors_or_owners.py +53 -0
  102. msgraph/generated/models/teams_administration/account_type.py +11 -0
  103. msgraph/generated/models/teams_administration/assigned_telephone_number.py +65 -0
  104. msgraph/generated/models/teams_administration/assignment_category.py +8 -0
  105. msgraph/generated/models/teams_administration/assignment_type.py +7 -0
  106. msgraph/generated/models/teams_administration/effective_policy_assignment.py +65 -0
  107. msgraph/generated/models/teams_administration/policy_assignment.py +73 -0
  108. msgraph/generated/models/teams_administration/teams_admin_root.py +60 -0
  109. msgraph/generated/models/teams_administration/teams_user_configuration.py +106 -0
  110. msgraph/generated/models/teams_administration/teams_user_configuration_collection_response.py +58 -0
  111. msgraph/generated/models/time_off_details.py +58 -0
  112. msgraph/generated/models/unavailable_place_mode.py +57 -0
  113. msgraph/generated/models/user.py +14 -0
  114. msgraph/generated/models/user_settings.py +8 -1
  115. msgraph/generated/models/user_work_location.py +72 -0
  116. msgraph/generated/models/virtual_endpoint.py +7 -0
  117. msgraph/generated/models/windows365_switch_compatibility_failure_reason_type.py +7 -0
  118. msgraph/generated/models/work_hours_and_locations_setting.py +74 -0
  119. msgraph/generated/models/work_location_source.py +9 -0
  120. msgraph/generated/models/work_location_type.py +9 -0
  121. msgraph/generated/models/work_location_update_scope.py +7 -0
  122. msgraph/generated/models/work_plan_occurrence.py +86 -0
  123. msgraph/generated/models/work_plan_occurrence_collection_response.py +58 -0
  124. msgraph/generated/models/work_plan_recurrence.py +82 -0
  125. msgraph/generated/models/work_plan_recurrence_collection_response.py +58 -0
  126. msgraph/generated/models/workspace.py +5 -1
  127. msgraph/generated/security/cases/ediscovery_cases/item/case_members/case_members_request_builder.py +210 -0
  128. msgraph/generated/security/cases/ediscovery_cases/item/case_members/count/count_request_builder.py +104 -0
  129. msgraph/generated/security/cases/ediscovery_cases/item/case_members/item/ediscovery_case_member_item_request_builder.py +189 -0
  130. msgraph/generated/security/cases/ediscovery_cases/item/ediscovery_case_item_request_builder.py +10 -0
  131. msgraph/generated/security/secure_score_control_profiles/item/secure_score_control_profile_item_request_builder.py +2 -2
  132. msgraph/generated/solutions/backup_restore/service_apps/item/service_app_item_request_builder.py +2 -2
  133. msgraph/generated/storage/file_storage/container_type_registrations/container_type_registrations_request_builder.py +209 -0
  134. msgraph/generated/storage/file_storage/container_type_registrations/count/count_request_builder.py +104 -0
  135. msgraph/generated/storage/file_storage/container_type_registrations/item/application_permission_grants/application_permission_grants_request_builder.py +209 -0
  136. msgraph/generated/storage/file_storage/container_type_registrations/item/application_permission_grants/count/count_request_builder.py +104 -0
  137. msgraph/generated/storage/file_storage/container_type_registrations/item/application_permission_grants/item/file_storage_container_type_app_permission_grant_app_item_request_builder.py +191 -0
  138. msgraph/generated/storage/file_storage/container_type_registrations/item/file_storage_container_type_registration_item_request_builder.py +201 -0
  139. msgraph/generated/storage/file_storage/container_types/container_types_request_builder.py +210 -0
  140. msgraph/generated/storage/file_storage/container_types/count/count_request_builder.py +104 -0
  141. msgraph/generated/storage/file_storage/container_types/item/file_storage_container_type_item_request_builder.py +191 -0
  142. msgraph/generated/storage/file_storage/containers/item/file_storage_container_item_request_builder.py +3 -3
  143. msgraph/generated/storage/file_storage/deleted_containers/deleted_containers_request_builder.py +3 -3
  144. msgraph/generated/storage/file_storage/deleted_containers/item/file_storage_container_item_request_builder.py +3 -3
  145. msgraph/generated/storage/file_storage/file_storage_request_builder.py +20 -0
  146. msgraph/generated/users/item/adhoc_calls/adhoc_calls_request_builder.py +208 -0
  147. msgraph/generated/users/item/adhoc_calls/count/count_request_builder.py +104 -0
  148. msgraph/generated/users/item/adhoc_calls/item/adhoc_call_item_request_builder.py +208 -0
  149. msgraph/generated/users/item/adhoc_calls/item/recordings/count/count_request_builder.py +104 -0
  150. msgraph/generated/users/item/adhoc_calls/item/recordings/delta/delta_get_response.py +58 -0
  151. msgraph/generated/users/item/adhoc_calls/item/recordings/delta/delta_request_builder.py +137 -0
  152. msgraph/generated/users/item/adhoc_calls/item/recordings/item/call_recording_item_request_builder.py +199 -0
  153. msgraph/generated/users/item/adhoc_calls/item/recordings/item/content/content_request_builder.py +161 -0
  154. msgraph/generated/users/item/adhoc_calls/item/recordings/recordings_request_builder.py +218 -0
  155. msgraph/generated/users/item/adhoc_calls/item/transcripts/count/count_request_builder.py +104 -0
  156. msgraph/generated/users/item/adhoc_calls/item/transcripts/delta/delta_get_response.py +58 -0
  157. msgraph/generated/users/item/adhoc_calls/item/transcripts/delta/delta_request_builder.py +137 -0
  158. msgraph/generated/users/item/adhoc_calls/item/transcripts/item/call_transcript_item_request_builder.py +209 -0
  159. msgraph/generated/users/item/adhoc_calls/item/transcripts/item/content/content_request_builder.py +161 -0
  160. msgraph/generated/users/item/adhoc_calls/item/transcripts/item/metadata_content/metadata_content_request_builder.py +157 -0
  161. msgraph/generated/users/item/adhoc_calls/item/transcripts/transcripts_request_builder.py +218 -0
  162. msgraph/generated/users/item/cloud_p_cs/item/cloud_p_c_item_request_builder.py +20 -0
  163. msgraph/generated/users/item/cloud_p_cs/item/reprovision/reprovision_post_request_body.py +64 -0
  164. msgraph/generated/users/item/cloud_p_cs/item/reprovision/reprovision_request_builder.py +87 -0
  165. msgraph/generated/users/item/cloud_p_cs/item/retrieve_cloud_pc_launch_detail/retrieve_cloud_pc_launch_detail_request_builder.py +82 -0
  166. msgraph/generated/users/item/mail_folders/item/child_folders/item/messages/delta/delta_request_builder.py +3 -3
  167. msgraph/generated/users/item/mail_folders/item/messages/delta/delta_request_builder.py +3 -3
  168. msgraph/generated/users/item/messages/delta/delta_request_builder.py +3 -3
  169. msgraph/generated/users/item/on_premises_sync_behavior/on_premises_sync_behavior_request_builder.py +188 -0
  170. msgraph/generated/users/item/presence/clear_automatic_location/clear_automatic_location_request_builder.py +79 -0
  171. msgraph/generated/users/item/presence/clear_location/clear_location_request_builder.py +79 -0
  172. msgraph/generated/users/item/presence/presence_request_builder.py +40 -0
  173. msgraph/generated/users/item/presence/set_automatic_location/set_automatic_location_post_request_body.py +61 -0
  174. msgraph/generated/users/item/presence/set_automatic_location/set_automatic_location_request_builder.py +87 -0
  175. msgraph/generated/users/item/presence/set_manual_location/set_manual_location_post_request_body.py +61 -0
  176. msgraph/generated/users/item/presence/set_manual_location/set_manual_location_request_builder.py +87 -0
  177. msgraph/generated/users/item/settings/settings_request_builder.py +10 -0
  178. msgraph/generated/users/item/settings/windows/item/windows_setting_item_request_builder.py +3 -3
  179. msgraph/generated/users/item/settings/windows/windows_request_builder.py +3 -3
  180. msgraph/generated/users/item/settings/work_hours_and_locations/occurrences/count/count_request_builder.py +104 -0
  181. msgraph/generated/users/item/settings/work_hours_and_locations/occurrences/item/work_plan_occurrence_item_request_builder.py +188 -0
  182. msgraph/generated/users/item/settings/work_hours_and_locations/occurrences/occurrences_request_builder.py +218 -0
  183. msgraph/generated/users/item/settings/work_hours_and_locations/occurrences/set_current_location/set_current_location_post_request_body.py +68 -0
  184. msgraph/generated/users/item/settings/work_hours_and_locations/occurrences/set_current_location/set_current_location_request_builder.py +87 -0
  185. msgraph/generated/users/item/settings/work_hours_and_locations/occurrences_view_with_start_date_time_with_end_date_time/occurrences_view_with_start_date_time_with_end_date_time_get_response.py +58 -0
  186. msgraph/generated/users/item/settings/work_hours_and_locations/occurrences_view_with_start_date_time_with_end_date_time/occurrences_view_with_start_date_time_with_end_date_time_request_builder.py +143 -0
  187. msgraph/generated/users/item/settings/work_hours_and_locations/recurrences/count/count_request_builder.py +104 -0
  188. msgraph/generated/users/item/settings/work_hours_and_locations/recurrences/item/work_plan_recurrence_item_request_builder.py +188 -0
  189. msgraph/generated/users/item/settings/work_hours_and_locations/recurrences/recurrences_request_builder.py +208 -0
  190. msgraph/generated/users/item/settings/work_hours_and_locations/work_hours_and_locations_request_builder.py +188 -0
  191. msgraph/generated/users/item/user_item_request_builder.py +20 -0
  192. {msgraph_sdk-1.51.0.dist-info → msgraph_sdk-1.52.0.dist-info}/METADATA +1 -1
  193. {msgraph_sdk-1.51.0.dist-info → msgraph_sdk-1.52.0.dist-info}/RECORD +195 -55
  194. {msgraph_sdk-1.51.0.dist-info → msgraph_sdk-1.52.0.dist-info}/WHEEL +0 -0
  195. {msgraph_sdk-1.51.0.dist-info → msgraph_sdk-1.52.0.dist-info}/licenses/LICENSE +0 -0
@@ -32,7 +32,7 @@ class DeltaRequestBuilder(BaseRequestBuilder):
32
32
 
33
33
  async def get(self,request_configuration: Optional[RequestConfiguration[DeltaRequestBuilderGetQueryParameters]] = None) -> Optional[DeltaGetResponse]:
34
34
  """
35
- Get a set of messages that have been added, deleted, or updated in a specified folder. A delta function call for messages in a folder is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls, you can [query for incremental changes in the messages inthat folder](/graph/delta-query-messages). This allows you to maintain and synchronize a local store of a user's messages withouthaving to fetch the entire set of messages from the server every time.
35
+ Get a set of messages added, deleted, or updated in a specified folder. A delta function call for messages in a folder is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls, you can [query for incremental changes in the messages inthat folder](/graph/delta-query-messages). It allows you to maintain and synchronize a local store of a user's messages withouthaving to fetch the entire set of messages from the server every time.
36
36
  param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
37
37
  Returns: Optional[DeltaGetResponse]
38
38
  Find more info here: https://learn.microsoft.com/graph/api/message-delta?view=graph-rest-1.0
@@ -53,7 +53,7 @@ class DeltaRequestBuilder(BaseRequestBuilder):
53
53
 
54
54
  def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[DeltaRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
55
55
  """
56
- Get a set of messages that have been added, deleted, or updated in a specified folder. A delta function call for messages in a folder is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls, you can [query for incremental changes in the messages inthat folder](/graph/delta-query-messages). This allows you to maintain and synchronize a local store of a user's messages withouthaving to fetch the entire set of messages from the server every time.
56
+ Get a set of messages added, deleted, or updated in a specified folder. A delta function call for messages in a folder is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls, you can [query for incremental changes in the messages inthat folder](/graph/delta-query-messages). It allows you to maintain and synchronize a local store of a user's messages withouthaving to fetch the entire set of messages from the server every time.
57
57
  param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
58
58
  Returns: RequestInformation
59
59
  """
@@ -75,7 +75,7 @@ class DeltaRequestBuilder(BaseRequestBuilder):
75
75
  @dataclass
76
76
  class DeltaRequestBuilderGetQueryParameters():
77
77
  """
78
- Get a set of messages that have been added, deleted, or updated in a specified folder. A delta function call for messages in a folder is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls, you can [query for incremental changes in the messages inthat folder](/graph/delta-query-messages). This allows you to maintain and synchronize a local store of a user's messages withouthaving to fetch the entire set of messages from the server every time.
78
+ Get a set of messages added, deleted, or updated in a specified folder. A delta function call for messages in a folder is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls, you can [query for incremental changes in the messages inthat folder](/graph/delta-query-messages). It allows you to maintain and synchronize a local store of a user's messages withouthaving to fetch the entire set of messages from the server every time.
79
79
  """
80
80
  def get_query_parameter(self,original_name: str) -> str:
81
81
  """
@@ -32,7 +32,7 @@ class DeltaRequestBuilder(BaseRequestBuilder):
32
32
 
33
33
  async def get(self,request_configuration: Optional[RequestConfiguration[DeltaRequestBuilderGetQueryParameters]] = None) -> Optional[DeltaGetResponse]:
34
34
  """
35
- Get a set of messages that have been added, deleted, or updated in a specified folder. A delta function call for messages in a folder is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls, you can [query for incremental changes in the messages inthat folder](/graph/delta-query-messages). This allows you to maintain and synchronize a local store of a user's messages withouthaving to fetch the entire set of messages from the server every time.
35
+ Get a set of messages added, deleted, or updated in a specified folder. A delta function call for messages in a folder is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls, you can [query for incremental changes in the messages inthat folder](/graph/delta-query-messages). It allows you to maintain and synchronize a local store of a user's messages withouthaving to fetch the entire set of messages from the server every time.
36
36
  param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
37
37
  Returns: Optional[DeltaGetResponse]
38
38
  Find more info here: https://learn.microsoft.com/graph/api/message-delta?view=graph-rest-1.0
@@ -53,7 +53,7 @@ class DeltaRequestBuilder(BaseRequestBuilder):
53
53
 
54
54
  def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[DeltaRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
55
55
  """
56
- Get a set of messages that have been added, deleted, or updated in a specified folder. A delta function call for messages in a folder is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls, you can [query for incremental changes in the messages inthat folder](/graph/delta-query-messages). This allows you to maintain and synchronize a local store of a user's messages withouthaving to fetch the entire set of messages from the server every time.
56
+ Get a set of messages added, deleted, or updated in a specified folder. A delta function call for messages in a folder is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls, you can [query for incremental changes in the messages inthat folder](/graph/delta-query-messages). It allows you to maintain and synchronize a local store of a user's messages withouthaving to fetch the entire set of messages from the server every time.
57
57
  param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
58
58
  Returns: RequestInformation
59
59
  """
@@ -75,7 +75,7 @@ class DeltaRequestBuilder(BaseRequestBuilder):
75
75
  @dataclass
76
76
  class DeltaRequestBuilderGetQueryParameters():
77
77
  """
78
- Get a set of messages that have been added, deleted, or updated in a specified folder. A delta function call for messages in a folder is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls, you can [query for incremental changes in the messages inthat folder](/graph/delta-query-messages). This allows you to maintain and synchronize a local store of a user's messages withouthaving to fetch the entire set of messages from the server every time.
78
+ Get a set of messages added, deleted, or updated in a specified folder. A delta function call for messages in a folder is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls, you can [query for incremental changes in the messages inthat folder](/graph/delta-query-messages). It allows you to maintain and synchronize a local store of a user's messages withouthaving to fetch the entire set of messages from the server every time.
79
79
  """
80
80
  def get_query_parameter(self,original_name: str) -> str:
81
81
  """
@@ -32,7 +32,7 @@ class DeltaRequestBuilder(BaseRequestBuilder):
32
32
 
33
33
  async def get(self,request_configuration: Optional[RequestConfiguration[DeltaRequestBuilderGetQueryParameters]] = None) -> Optional[DeltaGetResponse]:
34
34
  """
35
- Get a set of messages that have been added, deleted, or updated in a specified folder. A delta function call for messages in a folder is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls, you can [query for incremental changes in the messages inthat folder](/graph/delta-query-messages). This allows you to maintain and synchronize a local store of a user's messages withouthaving to fetch the entire set of messages from the server every time.
35
+ Get a set of messages added, deleted, or updated in a specified folder. A delta function call for messages in a folder is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls, you can [query for incremental changes in the messages inthat folder](/graph/delta-query-messages). It allows you to maintain and synchronize a local store of a user's messages withouthaving to fetch the entire set of messages from the server every time.
36
36
  param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
37
37
  Returns: Optional[DeltaGetResponse]
38
38
  Find more info here: https://learn.microsoft.com/graph/api/message-delta?view=graph-rest-1.0
@@ -53,7 +53,7 @@ class DeltaRequestBuilder(BaseRequestBuilder):
53
53
 
54
54
  def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[DeltaRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
55
55
  """
56
- Get a set of messages that have been added, deleted, or updated in a specified folder. A delta function call for messages in a folder is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls, you can [query for incremental changes in the messages inthat folder](/graph/delta-query-messages). This allows you to maintain and synchronize a local store of a user's messages withouthaving to fetch the entire set of messages from the server every time.
56
+ Get a set of messages added, deleted, or updated in a specified folder. A delta function call for messages in a folder is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls, you can [query for incremental changes in the messages inthat folder](/graph/delta-query-messages). It allows you to maintain and synchronize a local store of a user's messages withouthaving to fetch the entire set of messages from the server every time.
57
57
  param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
58
58
  Returns: RequestInformation
59
59
  """
@@ -75,7 +75,7 @@ class DeltaRequestBuilder(BaseRequestBuilder):
75
75
  @dataclass
76
76
  class DeltaRequestBuilderGetQueryParameters():
77
77
  """
78
- Get a set of messages that have been added, deleted, or updated in a specified folder. A delta function call for messages in a folder is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls, you can [query for incremental changes in the messages inthat folder](/graph/delta-query-messages). This allows you to maintain and synchronize a local store of a user's messages withouthaving to fetch the entire set of messages from the server every time.
78
+ Get a set of messages added, deleted, or updated in a specified folder. A delta function call for messages in a folder is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls, you can [query for incremental changes in the messages inthat folder](/graph/delta-query-messages). It allows you to maintain and synchronize a local store of a user's messages withouthaving to fetch the entire set of messages from the server every time.
79
79
  """
80
80
  def get_query_parameter(self,original_name: str) -> str:
81
81
  """
@@ -0,0 +1,188 @@
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.on_premises_sync_behavior import OnPremisesSyncBehavior
18
+ from ....models.o_data_errors.o_data_error import ODataError
19
+
20
+ class OnPremisesSyncBehaviorRequestBuilder(BaseRequestBuilder):
21
+ """
22
+ Provides operations to manage the onPremisesSyncBehavior property of the microsoft.graph.user entity.
23
+ """
24
+ def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, dict[str, Any]]) -> None:
25
+ """
26
+ Instantiates a new OnPremisesSyncBehaviorRequestBuilder 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}/onPremisesSyncBehavior{?%24expand,%24select}", path_parameters)
32
+
33
+ async def delete(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> None:
34
+ """
35
+ Delete navigation property onPremisesSyncBehavior for users
36
+ param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
37
+ Returns: None
38
+ """
39
+ request_info = self.to_delete_request_information(
40
+ request_configuration
41
+ )
42
+ from ....models.o_data_errors.o_data_error import ODataError
43
+
44
+ error_mapping: dict[str, type[ParsableFactory]] = {
45
+ "XXX": ODataError,
46
+ }
47
+ if not self.request_adapter:
48
+ raise Exception("Http core is null")
49
+ return await self.request_adapter.send_no_response_content_async(request_info, error_mapping)
50
+
51
+ async def get(self,request_configuration: Optional[RequestConfiguration[OnPremisesSyncBehaviorRequestBuilderGetQueryParameters]] = None) -> Optional[OnPremisesSyncBehavior]:
52
+ """
53
+ Get onPremisesSyncBehavior from users
54
+ param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
55
+ Returns: Optional[OnPremisesSyncBehavior]
56
+ """
57
+ request_info = self.to_get_request_information(
58
+ request_configuration
59
+ )
60
+ from ....models.o_data_errors.o_data_error import ODataError
61
+
62
+ error_mapping: dict[str, type[ParsableFactory]] = {
63
+ "XXX": ODataError,
64
+ }
65
+ if not self.request_adapter:
66
+ raise Exception("Http core is null")
67
+ from ....models.on_premises_sync_behavior import OnPremisesSyncBehavior
68
+
69
+ return await self.request_adapter.send_async(request_info, OnPremisesSyncBehavior, error_mapping)
70
+
71
+ async def patch(self,body: OnPremisesSyncBehavior, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[OnPremisesSyncBehavior]:
72
+ """
73
+ Update the navigation property onPremisesSyncBehavior in users
74
+ param body: The request body
75
+ param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
76
+ Returns: Optional[OnPremisesSyncBehavior]
77
+ """
78
+ if body is None:
79
+ raise TypeError("body cannot be null.")
80
+ request_info = self.to_patch_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.on_premises_sync_behavior import OnPremisesSyncBehavior
91
+
92
+ return await self.request_adapter.send_async(request_info, OnPremisesSyncBehavior, error_mapping)
93
+
94
+ def to_delete_request_information(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
95
+ """
96
+ Delete navigation property onPremisesSyncBehavior for users
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.DELETE, 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_get_request_information(self,request_configuration: Optional[RequestConfiguration[OnPremisesSyncBehaviorRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
106
+ """
107
+ Get onPremisesSyncBehavior from users
108
+ param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
109
+ Returns: RequestInformation
110
+ """
111
+ request_info = RequestInformation(Method.GET, self.url_template, self.path_parameters)
112
+ request_info.configure(request_configuration)
113
+ request_info.headers.try_add("Accept", "application/json")
114
+ return request_info
115
+
116
+ def to_patch_request_information(self,body: OnPremisesSyncBehavior, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
117
+ """
118
+ Update the navigation property onPremisesSyncBehavior in users
119
+ param body: The request body
120
+ param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
121
+ Returns: RequestInformation
122
+ """
123
+ if body is None:
124
+ raise TypeError("body cannot be null.")
125
+ request_info = RequestInformation(Method.PATCH, self.url_template, self.path_parameters)
126
+ request_info.configure(request_configuration)
127
+ request_info.headers.try_add("Accept", "application/json")
128
+ request_info.set_content_from_parsable(self.request_adapter, "application/json", body)
129
+ return request_info
130
+
131
+ def with_url(self,raw_url: str) -> OnPremisesSyncBehaviorRequestBuilder:
132
+ """
133
+ Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
134
+ param raw_url: The raw URL to use for the request builder.
135
+ Returns: OnPremisesSyncBehaviorRequestBuilder
136
+ """
137
+ if raw_url is None:
138
+ raise TypeError("raw_url cannot be null.")
139
+ return OnPremisesSyncBehaviorRequestBuilder(self.request_adapter, raw_url)
140
+
141
+ @dataclass
142
+ class OnPremisesSyncBehaviorRequestBuilderDeleteRequestConfiguration(RequestConfiguration[QueryParameters]):
143
+ """
144
+ Configuration for the request such as headers, query parameters, and middleware options.
145
+ """
146
+ warn("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.", DeprecationWarning)
147
+
148
+ @dataclass
149
+ class OnPremisesSyncBehaviorRequestBuilderGetQueryParameters():
150
+ """
151
+ Get onPremisesSyncBehavior from users
152
+ """
153
+ def get_query_parameter(self,original_name: str) -> str:
154
+ """
155
+ Maps the query parameters names to their encoded names for the URI template parsing.
156
+ param original_name: The original query parameter name in the class.
157
+ Returns: str
158
+ """
159
+ if original_name is None:
160
+ raise TypeError("original_name cannot be null.")
161
+ if original_name == "expand":
162
+ return "%24expand"
163
+ if original_name == "select":
164
+ return "%24select"
165
+ return original_name
166
+
167
+ # Expand related entities
168
+ expand: Optional[list[str]] = None
169
+
170
+ # Select properties to be returned
171
+ select: Optional[list[str]] = None
172
+
173
+
174
+ @dataclass
175
+ class OnPremisesSyncBehaviorRequestBuilderGetRequestConfiguration(RequestConfiguration[OnPremisesSyncBehaviorRequestBuilderGetQueryParameters]):
176
+ """
177
+ Configuration for the request such as headers, query parameters, and middleware options.
178
+ """
179
+ warn("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.", DeprecationWarning)
180
+
181
+ @dataclass
182
+ class OnPremisesSyncBehaviorRequestBuilderPatchRequestConfiguration(RequestConfiguration[QueryParameters]):
183
+ """
184
+ Configuration for the request such as headers, query parameters, and middleware options.
185
+ """
186
+ warn("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.", DeprecationWarning)
187
+
188
+
@@ -0,0 +1,79 @@
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 ClearAutomaticLocationRequestBuilder(BaseRequestBuilder):
20
+ """
21
+ Provides operations to call the clearAutomaticLocation method.
22
+ """
23
+ def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, dict[str, Any]]) -> None:
24
+ """
25
+ Instantiates a new ClearAutomaticLocationRequestBuilder 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}/presence/clearAutomaticLocation", path_parameters)
31
+
32
+ async def post(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> None:
33
+ """
34
+ Clear the automatic work location signal for a user. After clearing, the user’s final aggregated work location is recomputed according to the precedence rules: Use this operation when you need to remove the current autodetected signal without affecting manual or scheduled layers.
35
+ param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
36
+ Returns: None
37
+ Find more info here: https://learn.microsoft.com/graph/api/presence-clearautomaticlocation?view=graph-rest-1.0
38
+ """
39
+ request_info = self.to_post_request_information(
40
+ request_configuration
41
+ )
42
+ from .....models.o_data_errors.o_data_error import ODataError
43
+
44
+ error_mapping: dict[str, type[ParsableFactory]] = {
45
+ "XXX": ODataError,
46
+ }
47
+ if not self.request_adapter:
48
+ raise Exception("Http core is null")
49
+ return await self.request_adapter.send_no_response_content_async(request_info, error_mapping)
50
+
51
+ def to_post_request_information(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
52
+ """
53
+ Clear the automatic work location signal for a user. After clearing, the user’s final aggregated work location is recomputed according to the precedence rules: Use this operation when you need to remove the current autodetected signal without affecting manual or scheduled layers.
54
+ param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
55
+ Returns: RequestInformation
56
+ """
57
+ request_info = RequestInformation(Method.POST, self.url_template, self.path_parameters)
58
+ request_info.configure(request_configuration)
59
+ request_info.headers.try_add("Accept", "application/json")
60
+ return request_info
61
+
62
+ def with_url(self,raw_url: str) -> ClearAutomaticLocationRequestBuilder:
63
+ """
64
+ Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
65
+ param raw_url: The raw URL to use for the request builder.
66
+ Returns: ClearAutomaticLocationRequestBuilder
67
+ """
68
+ if raw_url is None:
69
+ raise TypeError("raw_url cannot be null.")
70
+ return ClearAutomaticLocationRequestBuilder(self.request_adapter, raw_url)
71
+
72
+ @dataclass
73
+ class ClearAutomaticLocationRequestBuilderPostRequestConfiguration(RequestConfiguration[QueryParameters]):
74
+ """
75
+ Configuration for the request such as headers, query parameters, and middleware options.
76
+ """
77
+ warn("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.", DeprecationWarning)
78
+
79
+
@@ -0,0 +1,79 @@
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 ClearLocationRequestBuilder(BaseRequestBuilder):
20
+ """
21
+ Provides operations to call the clearLocation method.
22
+ """
23
+ def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, dict[str, Any]]) -> None:
24
+ """
25
+ Instantiates a new ClearLocationRequestBuilder 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}/presence/clearLocation", path_parameters)
31
+
32
+ async def post(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> None:
33
+ """
34
+ Clear the work location signals for a user, including both the manual and automatic layers for the current date.
35
+ param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
36
+ Returns: None
37
+ Find more info here: https://learn.microsoft.com/graph/api/presence-clearlocation?view=graph-rest-1.0
38
+ """
39
+ request_info = self.to_post_request_information(
40
+ request_configuration
41
+ )
42
+ from .....models.o_data_errors.o_data_error import ODataError
43
+
44
+ error_mapping: dict[str, type[ParsableFactory]] = {
45
+ "XXX": ODataError,
46
+ }
47
+ if not self.request_adapter:
48
+ raise Exception("Http core is null")
49
+ return await self.request_adapter.send_no_response_content_async(request_info, error_mapping)
50
+
51
+ def to_post_request_information(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
52
+ """
53
+ Clear the work location signals for a user, including both the manual and automatic layers for the current date.
54
+ param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
55
+ Returns: RequestInformation
56
+ """
57
+ request_info = RequestInformation(Method.POST, self.url_template, self.path_parameters)
58
+ request_info.configure(request_configuration)
59
+ request_info.headers.try_add("Accept", "application/json")
60
+ return request_info
61
+
62
+ def with_url(self,raw_url: str) -> ClearLocationRequestBuilder:
63
+ """
64
+ Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
65
+ param raw_url: The raw URL to use for the request builder.
66
+ Returns: ClearLocationRequestBuilder
67
+ """
68
+ if raw_url is None:
69
+ raise TypeError("raw_url cannot be null.")
70
+ return ClearLocationRequestBuilder(self.request_adapter, raw_url)
71
+
72
+ @dataclass
73
+ class ClearLocationRequestBuilderPostRequestConfiguration(RequestConfiguration[QueryParameters]):
74
+ """
75
+ Configuration for the request such as headers, query parameters, and middleware options.
76
+ """
77
+ warn("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.", DeprecationWarning)
78
+
79
+
@@ -16,8 +16,12 @@ 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.presence import Presence
19
+ from .clear_automatic_location.clear_automatic_location_request_builder import ClearAutomaticLocationRequestBuilder
20
+ from .clear_location.clear_location_request_builder import ClearLocationRequestBuilder
19
21
  from .clear_presence.clear_presence_request_builder import ClearPresenceRequestBuilder
20
22
  from .clear_user_preferred_presence.clear_user_preferred_presence_request_builder import ClearUserPreferredPresenceRequestBuilder
23
+ from .set_automatic_location.set_automatic_location_request_builder import SetAutomaticLocationRequestBuilder
24
+ from .set_manual_location.set_manual_location_request_builder import SetManualLocationRequestBuilder
21
25
  from .set_presence.set_presence_request_builder import SetPresenceRequestBuilder
22
26
  from .set_status_message.set_status_message_request_builder import SetStatusMessageRequestBuilder
23
27
  from .set_user_preferred_presence.set_user_preferred_presence_request_builder import SetUserPreferredPresenceRequestBuilder
@@ -144,6 +148,24 @@ class PresenceRequestBuilder(BaseRequestBuilder):
144
148
  raise TypeError("raw_url cannot be null.")
145
149
  return PresenceRequestBuilder(self.request_adapter, raw_url)
146
150
 
151
+ @property
152
+ def clear_automatic_location(self) -> ClearAutomaticLocationRequestBuilder:
153
+ """
154
+ Provides operations to call the clearAutomaticLocation method.
155
+ """
156
+ from .clear_automatic_location.clear_automatic_location_request_builder import ClearAutomaticLocationRequestBuilder
157
+
158
+ return ClearAutomaticLocationRequestBuilder(self.request_adapter, self.path_parameters)
159
+
160
+ @property
161
+ def clear_location(self) -> ClearLocationRequestBuilder:
162
+ """
163
+ Provides operations to call the clearLocation method.
164
+ """
165
+ from .clear_location.clear_location_request_builder import ClearLocationRequestBuilder
166
+
167
+ return ClearLocationRequestBuilder(self.request_adapter, self.path_parameters)
168
+
147
169
  @property
148
170
  def clear_presence(self) -> ClearPresenceRequestBuilder:
149
171
  """
@@ -162,6 +184,24 @@ class PresenceRequestBuilder(BaseRequestBuilder):
162
184
 
163
185
  return ClearUserPreferredPresenceRequestBuilder(self.request_adapter, self.path_parameters)
164
186
 
187
+ @property
188
+ def set_automatic_location(self) -> SetAutomaticLocationRequestBuilder:
189
+ """
190
+ Provides operations to call the setAutomaticLocation method.
191
+ """
192
+ from .set_automatic_location.set_automatic_location_request_builder import SetAutomaticLocationRequestBuilder
193
+
194
+ return SetAutomaticLocationRequestBuilder(self.request_adapter, self.path_parameters)
195
+
196
+ @property
197
+ def set_manual_location(self) -> SetManualLocationRequestBuilder:
198
+ """
199
+ Provides operations to call the setManualLocation method.
200
+ """
201
+ from .set_manual_location.set_manual_location_request_builder import SetManualLocationRequestBuilder
202
+
203
+ return SetManualLocationRequestBuilder(self.request_adapter, self.path_parameters)
204
+
165
205
  @property
166
206
  def set_presence(self) -> SetPresenceRequestBuilder:
167
207
  """
@@ -0,0 +1,61 @@
1
+ from __future__ import annotations
2
+ from collections.abc import Callable
3
+ from dataclasses import dataclass, field
4
+ from kiota_abstractions.serialization import AdditionalDataHolder, Parsable, ParseNode, SerializationWriter
5
+ from kiota_abstractions.store import BackedModel, BackingStore, BackingStoreFactorySingleton
6
+ from typing import Any, Optional, TYPE_CHECKING, Union
7
+
8
+ if TYPE_CHECKING:
9
+ from .....models.work_location_type import WorkLocationType
10
+
11
+ @dataclass
12
+ class SetAutomaticLocationPostRequestBody(AdditionalDataHolder, BackedModel, Parsable):
13
+ # Stores model information.
14
+ backing_store: BackingStore = field(default_factory=BackingStoreFactorySingleton(backing_store_factory=None).backing_store_factory.create_backing_store, repr=False)
15
+
16
+ # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
17
+ additional_data: dict[str, Any] = field(default_factory=dict)
18
+ # The placeId property
19
+ place_id: Optional[str] = None
20
+ # The workLocationType property
21
+ work_location_type: Optional[WorkLocationType] = None
22
+
23
+ @staticmethod
24
+ def create_from_discriminator_value(parse_node: ParseNode) -> SetAutomaticLocationPostRequestBody:
25
+ """
26
+ Creates a new instance of the appropriate class based on discriminator value
27
+ param parse_node: The parse node to use to read the discriminator value and create the object
28
+ Returns: SetAutomaticLocationPostRequestBody
29
+ """
30
+ if parse_node is None:
31
+ raise TypeError("parse_node cannot be null.")
32
+ return SetAutomaticLocationPostRequestBody()
33
+
34
+ def get_field_deserializers(self,) -> dict[str, Callable[[ParseNode], None]]:
35
+ """
36
+ The deserialization information for the current model
37
+ Returns: dict[str, Callable[[ParseNode], None]]
38
+ """
39
+ from .....models.work_location_type import WorkLocationType
40
+
41
+ from .....models.work_location_type import WorkLocationType
42
+
43
+ fields: dict[str, Callable[[Any], None]] = {
44
+ "placeId": lambda n : setattr(self, 'place_id', n.get_str_value()),
45
+ "workLocationType": lambda n : setattr(self, 'work_location_type', n.get_enum_value(WorkLocationType)),
46
+ }
47
+ return fields
48
+
49
+ def serialize(self,writer: SerializationWriter) -> None:
50
+ """
51
+ Serializes information the current object
52
+ param writer: Serialization writer to use to serialize this model
53
+ Returns: None
54
+ """
55
+ if writer is None:
56
+ raise TypeError("writer cannot be null.")
57
+ writer.write_str_value("placeId", self.place_id)
58
+ writer.write_enum_value("workLocationType", self.work_location_type)
59
+ writer.write_additional_data_value(self.additional_data)
60
+
61
+
@@ -0,0 +1,87 @@
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 .set_automatic_location_post_request_body import SetAutomaticLocationPostRequestBody
19
+
20
+ class SetAutomaticLocationRequestBuilder(BaseRequestBuilder):
21
+ """
22
+ Provides operations to call the setAutomaticLocation method.
23
+ """
24
+ def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, dict[str, Any]]) -> None:
25
+ """
26
+ Instantiates a new SetAutomaticLocationRequestBuilder 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}/presence/setAutomaticLocation", path_parameters)
32
+
33
+ async def post(self,body: SetAutomaticLocationPostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> None:
34
+ """
35
+ Update the automatic work location for a user. The automatic layer participates in the standard precedence model: Use this operation from clients or services that automatically detect location (for example, Teams, network and location agents, or OEM docking apps). It doesn't clear manual or scheduled signals.
36
+ param body: The request body
37
+ param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
38
+ Returns: None
39
+ Find more info here: https://learn.microsoft.com/graph/api/presence-setautomaticlocation?view=graph-rest-1.0
40
+ """
41
+ if body is None:
42
+ raise TypeError("body cannot be null.")
43
+ request_info = self.to_post_request_information(
44
+ body, request_configuration
45
+ )
46
+ from .....models.o_data_errors.o_data_error import ODataError
47
+
48
+ error_mapping: dict[str, type[ParsableFactory]] = {
49
+ "XXX": ODataError,
50
+ }
51
+ if not self.request_adapter:
52
+ raise Exception("Http core is null")
53
+ return await self.request_adapter.send_no_response_content_async(request_info, error_mapping)
54
+
55
+ def to_post_request_information(self,body: SetAutomaticLocationPostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
56
+ """
57
+ Update the automatic work location for a user. The automatic layer participates in the standard precedence model: Use this operation from clients or services that automatically detect location (for example, Teams, network and location agents, or OEM docking apps). It doesn't clear manual or scheduled signals.
58
+ param body: The request body
59
+ param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
60
+ Returns: RequestInformation
61
+ """
62
+ if body is None:
63
+ raise TypeError("body cannot be null.")
64
+ request_info = RequestInformation(Method.POST, self.url_template, self.path_parameters)
65
+ request_info.configure(request_configuration)
66
+ request_info.headers.try_add("Accept", "application/json")
67
+ request_info.set_content_from_parsable(self.request_adapter, "application/json", body)
68
+ return request_info
69
+
70
+ def with_url(self,raw_url: str) -> SetAutomaticLocationRequestBuilder:
71
+ """
72
+ Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
73
+ param raw_url: The raw URL to use for the request builder.
74
+ Returns: SetAutomaticLocationRequestBuilder
75
+ """
76
+ if raw_url is None:
77
+ raise TypeError("raw_url cannot be null.")
78
+ return SetAutomaticLocationRequestBuilder(self.request_adapter, raw_url)
79
+
80
+ @dataclass
81
+ class SetAutomaticLocationRequestBuilderPostRequestConfiguration(RequestConfiguration[QueryParameters]):
82
+ """
83
+ Configuration for the request such as headers, query parameters, and middleware options.
84
+ """
85
+ warn("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.", DeprecationWarning)
86
+
87
+