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.
- msgraph/_version.py +1 -1
- msgraph/generated/admin/admin_request_builder.py +10 -0
- msgraph/generated/admin/teams/teams_request_builder.py +198 -0
- msgraph/generated/admin/teams/user_configurations/count/count_request_builder.py +104 -0
- msgraph/generated/admin/teams/user_configurations/item/teams_user_configuration_item_request_builder.py +199 -0
- msgraph/generated/admin/teams/user_configurations/item/user/mailbox_settings/mailbox_settings_request_builder.py +152 -0
- msgraph/generated/admin/teams/user_configurations/item/user/service_provisioning_errors/count/count_request_builder.py +104 -0
- msgraph/generated/admin/teams/user_configurations/item/user/service_provisioning_errors/service_provisioning_errors_request_builder.py +147 -0
- msgraph/generated/admin/teams/user_configurations/item/user/user_request_builder.py +127 -0
- msgraph/generated/admin/teams/user_configurations/user_configurations_request_builder.py +209 -0
- msgraph/generated/communications/adhoc_calls/adhoc_calls_request_builder.py +208 -0
- msgraph/generated/communications/adhoc_calls/count/count_request_builder.py +104 -0
- msgraph/generated/communications/adhoc_calls/item/adhoc_call_item_request_builder.py +208 -0
- msgraph/generated/communications/adhoc_calls/item/recordings/count/count_request_builder.py +104 -0
- msgraph/generated/communications/adhoc_calls/item/recordings/delta/delta_get_response.py +58 -0
- msgraph/generated/communications/adhoc_calls/item/recordings/delta/delta_request_builder.py +137 -0
- msgraph/generated/communications/adhoc_calls/item/recordings/item/call_recording_item_request_builder.py +198 -0
- msgraph/generated/communications/adhoc_calls/item/recordings/item/content/content_request_builder.py +160 -0
- msgraph/generated/communications/adhoc_calls/item/recordings/recordings_request_builder.py +218 -0
- msgraph/generated/communications/adhoc_calls/item/transcripts/count/count_request_builder.py +104 -0
- msgraph/generated/communications/adhoc_calls/item/transcripts/delta/delta_get_response.py +58 -0
- msgraph/generated/communications/adhoc_calls/item/transcripts/delta/delta_request_builder.py +137 -0
- msgraph/generated/communications/adhoc_calls/item/transcripts/item/call_transcript_item_request_builder.py +208 -0
- msgraph/generated/communications/adhoc_calls/item/transcripts/item/content/content_request_builder.py +160 -0
- msgraph/generated/communications/adhoc_calls/item/transcripts/item/metadata_content/metadata_content_request_builder.py +157 -0
- msgraph/generated/communications/adhoc_calls/item/transcripts/transcripts_request_builder.py +218 -0
- msgraph/generated/communications/communications_request_builder.py +10 -0
- msgraph/generated/communications/presences/item/clear_automatic_location/clear_automatic_location_request_builder.py +79 -0
- msgraph/generated/communications/presences/item/clear_location/clear_location_request_builder.py +79 -0
- msgraph/generated/communications/presences/item/presence_item_request_builder.py +40 -0
- msgraph/generated/communications/presences/item/set_automatic_location/set_automatic_location_post_request_body.py +61 -0
- msgraph/generated/communications/presences/item/set_automatic_location/set_automatic_location_request_builder.py +87 -0
- msgraph/generated/communications/presences/item/set_manual_location/set_manual_location_post_request_body.py +61 -0
- msgraph/generated/communications/presences/item/set_manual_location/set_manual_location_request_builder.py +87 -0
- msgraph/generated/device_management/virtual_endpoint/cloud_p_cs/item/cloud_p_c_item_request_builder.py +20 -0
- msgraph/generated/device_management/virtual_endpoint/cloud_p_cs/item/reprovision/reprovision_post_request_body.py +64 -0
- msgraph/generated/device_management/virtual_endpoint/cloud_p_cs/item/reprovision/reprovision_request_builder.py +87 -0
- 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
- msgraph/generated/device_management/virtual_endpoint/report/report_request_builder.py +198 -0
- msgraph/generated/device_management/virtual_endpoint/report/retrieve_cloud_pc_recommendation_reports/retrieve_cloud_pc_recommendation_reports_post_request_body.py +85 -0
- msgraph/generated/device_management/virtual_endpoint/report/retrieve_cloud_pc_recommendation_reports/retrieve_cloud_pc_recommendation_reports_request_builder.py +87 -0
- msgraph/generated/device_management/virtual_endpoint/virtual_endpoint_request_builder.py +10 -0
- msgraph/generated/drives/item/recent/recent_request_builder.py +3 -0
- msgraph/generated/drives/item/shared_with_me/shared_with_me_request_builder.py +3 -0
- msgraph/generated/kiota-dom-export.txt +1954 -1
- msgraph/generated/kiota-lock.json +1 -1
- msgraph/generated/models/action_item.py +62 -0
- msgraph/generated/models/adhoc_call.py +67 -0
- msgraph/generated/models/adhoc_call_collection_response.py +58 -0
- msgraph/generated/models/admin.py +7 -0
- msgraph/generated/models/ai_online_meeting.py +60 -0
- msgraph/generated/models/ai_user.py +7 -0
- msgraph/generated/models/allowed_target_scope.py +1 -0
- msgraph/generated/models/building.py +7 -0
- msgraph/generated/models/call_ai_insight.py +91 -0
- msgraph/generated/models/call_ai_insight_view_point.py +61 -0
- msgraph/generated/models/cloud_communications.py +7 -0
- msgraph/generated/models/cloud_pc_launch_detail.py +73 -0
- msgraph/generated/models/cloud_pc_operating_system.py +7 -0
- msgraph/generated/models/cloud_pc_recommendation_report_type.py +6 -0
- msgraph/generated/models/cloud_pc_report.py +53 -0
- msgraph/generated/models/cloud_pc_user_account_type.py +7 -0
- msgraph/generated/models/desk.py +8 -1
- msgraph/generated/models/entity.py +84 -0
- msgraph/generated/models/file_storage.py +16 -2
- msgraph/generated/models/file_storage_container.py +7 -0
- msgraph/generated/models/file_storage_container_billing_classification.py +8 -0
- msgraph/generated/models/file_storage_container_billing_status.py +7 -0
- msgraph/generated/models/file_storage_container_type.py +96 -0
- msgraph/generated/models/file_storage_container_type_app_permission.py +20 -0
- msgraph/generated/models/file_storage_container_type_app_permission_grant.py +69 -0
- msgraph/generated/models/file_storage_container_type_app_permission_grant_collection_response.py +58 -0
- msgraph/generated/models/file_storage_container_type_collection_response.py +58 -0
- msgraph/generated/models/file_storage_container_type_registration.py +103 -0
- msgraph/generated/models/file_storage_container_type_registration_collection_response.py +58 -0
- msgraph/generated/models/file_storage_container_type_registration_settings.py +89 -0
- msgraph/generated/models/file_storage_container_type_settings.py +96 -0
- msgraph/generated/models/file_storage_container_type_settings_override.py +11 -0
- msgraph/generated/models/list_item.py +7 -0
- msgraph/generated/models/max_work_location_details.py +9 -0
- msgraph/generated/models/meeting_note.py +69 -0
- msgraph/generated/models/meeting_note_subpoint.py +58 -0
- msgraph/generated/models/mention_event.py +70 -0
- msgraph/generated/models/online_meeting_base.py +20 -0
- msgraph/generated/models/online_meeting_sensitivity_label_assignment.py +54 -0
- msgraph/generated/models/place_feature_enablement.py +8 -0
- msgraph/generated/models/place_mode.py +7 -0
- msgraph/generated/models/presence.py +7 -0
- msgraph/generated/models/restore_point_search_result.py +1 -1
- msgraph/generated/models/room.py +11 -0
- msgraph/generated/models/security/active_directory_domain_evidence.py +61 -0
- msgraph/generated/models/security/alert_evidence.py +7 -0
- msgraph/generated/models/security/device_evidence.py +8 -1
- msgraph/generated/models/security/ediscovery_case.py +7 -0
- msgraph/generated/models/security/ediscovery_case_member.py +68 -0
- msgraph/generated/models/security/ediscovery_case_member_collection_response.py +58 -0
- msgraph/generated/models/security/mailbox_configuration_evidence.py +6 -6
- msgraph/generated/models/security/recipient_type.py +7 -0
- msgraph/generated/models/sensitivity_label.py +4 -0
- msgraph/generated/models/subject_set.py +7 -0
- msgraph/generated/models/target_agent_identity_sponsors_or_owners.py +53 -0
- msgraph/generated/models/teams_administration/account_type.py +11 -0
- msgraph/generated/models/teams_administration/assigned_telephone_number.py +65 -0
- msgraph/generated/models/teams_administration/assignment_category.py +8 -0
- msgraph/generated/models/teams_administration/assignment_type.py +7 -0
- msgraph/generated/models/teams_administration/effective_policy_assignment.py +65 -0
- msgraph/generated/models/teams_administration/policy_assignment.py +73 -0
- msgraph/generated/models/teams_administration/teams_admin_root.py +60 -0
- msgraph/generated/models/teams_administration/teams_user_configuration.py +106 -0
- msgraph/generated/models/teams_administration/teams_user_configuration_collection_response.py +58 -0
- msgraph/generated/models/time_off_details.py +58 -0
- msgraph/generated/models/unavailable_place_mode.py +57 -0
- msgraph/generated/models/user.py +14 -0
- msgraph/generated/models/user_settings.py +8 -1
- msgraph/generated/models/user_work_location.py +72 -0
- msgraph/generated/models/virtual_endpoint.py +7 -0
- msgraph/generated/models/windows365_switch_compatibility_failure_reason_type.py +7 -0
- msgraph/generated/models/work_hours_and_locations_setting.py +74 -0
- msgraph/generated/models/work_location_source.py +9 -0
- msgraph/generated/models/work_location_type.py +9 -0
- msgraph/generated/models/work_location_update_scope.py +7 -0
- msgraph/generated/models/work_plan_occurrence.py +86 -0
- msgraph/generated/models/work_plan_occurrence_collection_response.py +58 -0
- msgraph/generated/models/work_plan_recurrence.py +82 -0
- msgraph/generated/models/work_plan_recurrence_collection_response.py +58 -0
- msgraph/generated/models/workspace.py +5 -1
- msgraph/generated/security/cases/ediscovery_cases/item/case_members/case_members_request_builder.py +210 -0
- msgraph/generated/security/cases/ediscovery_cases/item/case_members/count/count_request_builder.py +104 -0
- msgraph/generated/security/cases/ediscovery_cases/item/case_members/item/ediscovery_case_member_item_request_builder.py +189 -0
- msgraph/generated/security/cases/ediscovery_cases/item/ediscovery_case_item_request_builder.py +10 -0
- msgraph/generated/security/secure_score_control_profiles/item/secure_score_control_profile_item_request_builder.py +2 -2
- msgraph/generated/solutions/backup_restore/service_apps/item/service_app_item_request_builder.py +2 -2
- msgraph/generated/storage/file_storage/container_type_registrations/container_type_registrations_request_builder.py +209 -0
- msgraph/generated/storage/file_storage/container_type_registrations/count/count_request_builder.py +104 -0
- msgraph/generated/storage/file_storage/container_type_registrations/item/application_permission_grants/application_permission_grants_request_builder.py +209 -0
- msgraph/generated/storage/file_storage/container_type_registrations/item/application_permission_grants/count/count_request_builder.py +104 -0
- 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
- msgraph/generated/storage/file_storage/container_type_registrations/item/file_storage_container_type_registration_item_request_builder.py +201 -0
- msgraph/generated/storage/file_storage/container_types/container_types_request_builder.py +210 -0
- msgraph/generated/storage/file_storage/container_types/count/count_request_builder.py +104 -0
- msgraph/generated/storage/file_storage/container_types/item/file_storage_container_type_item_request_builder.py +191 -0
- msgraph/generated/storage/file_storage/containers/item/file_storage_container_item_request_builder.py +3 -3
- msgraph/generated/storage/file_storage/deleted_containers/deleted_containers_request_builder.py +3 -3
- msgraph/generated/storage/file_storage/deleted_containers/item/file_storage_container_item_request_builder.py +3 -3
- msgraph/generated/storage/file_storage/file_storage_request_builder.py +20 -0
- msgraph/generated/users/item/adhoc_calls/adhoc_calls_request_builder.py +208 -0
- msgraph/generated/users/item/adhoc_calls/count/count_request_builder.py +104 -0
- msgraph/generated/users/item/adhoc_calls/item/adhoc_call_item_request_builder.py +208 -0
- msgraph/generated/users/item/adhoc_calls/item/recordings/count/count_request_builder.py +104 -0
- msgraph/generated/users/item/adhoc_calls/item/recordings/delta/delta_get_response.py +58 -0
- msgraph/generated/users/item/adhoc_calls/item/recordings/delta/delta_request_builder.py +137 -0
- msgraph/generated/users/item/adhoc_calls/item/recordings/item/call_recording_item_request_builder.py +199 -0
- msgraph/generated/users/item/adhoc_calls/item/recordings/item/content/content_request_builder.py +161 -0
- msgraph/generated/users/item/adhoc_calls/item/recordings/recordings_request_builder.py +218 -0
- msgraph/generated/users/item/adhoc_calls/item/transcripts/count/count_request_builder.py +104 -0
- msgraph/generated/users/item/adhoc_calls/item/transcripts/delta/delta_get_response.py +58 -0
- msgraph/generated/users/item/adhoc_calls/item/transcripts/delta/delta_request_builder.py +137 -0
- msgraph/generated/users/item/adhoc_calls/item/transcripts/item/call_transcript_item_request_builder.py +209 -0
- msgraph/generated/users/item/adhoc_calls/item/transcripts/item/content/content_request_builder.py +161 -0
- msgraph/generated/users/item/adhoc_calls/item/transcripts/item/metadata_content/metadata_content_request_builder.py +157 -0
- msgraph/generated/users/item/adhoc_calls/item/transcripts/transcripts_request_builder.py +218 -0
- msgraph/generated/users/item/cloud_p_cs/item/cloud_p_c_item_request_builder.py +20 -0
- msgraph/generated/users/item/cloud_p_cs/item/reprovision/reprovision_post_request_body.py +64 -0
- msgraph/generated/users/item/cloud_p_cs/item/reprovision/reprovision_request_builder.py +87 -0
- msgraph/generated/users/item/cloud_p_cs/item/retrieve_cloud_pc_launch_detail/retrieve_cloud_pc_launch_detail_request_builder.py +82 -0
- msgraph/generated/users/item/mail_folders/item/child_folders/item/messages/delta/delta_request_builder.py +3 -3
- msgraph/generated/users/item/mail_folders/item/messages/delta/delta_request_builder.py +3 -3
- msgraph/generated/users/item/messages/delta/delta_request_builder.py +3 -3
- msgraph/generated/users/item/on_premises_sync_behavior/on_premises_sync_behavior_request_builder.py +188 -0
- msgraph/generated/users/item/presence/clear_automatic_location/clear_automatic_location_request_builder.py +79 -0
- msgraph/generated/users/item/presence/clear_location/clear_location_request_builder.py +79 -0
- msgraph/generated/users/item/presence/presence_request_builder.py +40 -0
- msgraph/generated/users/item/presence/set_automatic_location/set_automatic_location_post_request_body.py +61 -0
- msgraph/generated/users/item/presence/set_automatic_location/set_automatic_location_request_builder.py +87 -0
- msgraph/generated/users/item/presence/set_manual_location/set_manual_location_post_request_body.py +61 -0
- msgraph/generated/users/item/presence/set_manual_location/set_manual_location_request_builder.py +87 -0
- msgraph/generated/users/item/settings/settings_request_builder.py +10 -0
- msgraph/generated/users/item/settings/windows/item/windows_setting_item_request_builder.py +3 -3
- msgraph/generated/users/item/settings/windows/windows_request_builder.py +3 -3
- msgraph/generated/users/item/settings/work_hours_and_locations/occurrences/count/count_request_builder.py +104 -0
- msgraph/generated/users/item/settings/work_hours_and_locations/occurrences/item/work_plan_occurrence_item_request_builder.py +188 -0
- msgraph/generated/users/item/settings/work_hours_and_locations/occurrences/occurrences_request_builder.py +218 -0
- msgraph/generated/users/item/settings/work_hours_and_locations/occurrences/set_current_location/set_current_location_post_request_body.py +68 -0
- msgraph/generated/users/item/settings/work_hours_and_locations/occurrences/set_current_location/set_current_location_request_builder.py +87 -0
- 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
- 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
- msgraph/generated/users/item/settings/work_hours_and_locations/recurrences/count/count_request_builder.py +104 -0
- msgraph/generated/users/item/settings/work_hours_and_locations/recurrences/item/work_plan_recurrence_item_request_builder.py +188 -0
- msgraph/generated/users/item/settings/work_hours_and_locations/recurrences/recurrences_request_builder.py +208 -0
- msgraph/generated/users/item/settings/work_hours_and_locations/work_hours_and_locations_request_builder.py +188 -0
- msgraph/generated/users/item/user_item_request_builder.py +20 -0
- {msgraph_sdk-1.51.0.dist-info → msgraph_sdk-1.52.0.dist-info}/METADATA +1 -1
- {msgraph_sdk-1.51.0.dist-info → msgraph_sdk-1.52.0.dist-info}/RECORD +195 -55
- {msgraph_sdk-1.51.0.dist-info → msgraph_sdk-1.52.0.dist-info}/WHEEL +0 -0
- {msgraph_sdk-1.51.0.dist-info → msgraph_sdk-1.52.0.dist-info}/licenses/LICENSE +0 -0
|
@@ -0,0 +1,157 @@
|
|
|
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 MetadataContentRequestBuilder(BaseRequestBuilder):
|
|
20
|
+
"""
|
|
21
|
+
Provides operations to manage the media for the cloudCommunications entity.
|
|
22
|
+
"""
|
|
23
|
+
def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, dict[str, Any]]) -> None:
|
|
24
|
+
"""
|
|
25
|
+
Instantiates a new MetadataContentRequestBuilder 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}/communications/adhocCalls/{adhocCall%2Did}/transcripts/{callTranscript%2Did}/metadataContent", path_parameters)
|
|
31
|
+
|
|
32
|
+
async def delete(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> None:
|
|
33
|
+
"""
|
|
34
|
+
The time-aligned metadata of the utterances in the transcript. Read-only.
|
|
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[bytes]:
|
|
51
|
+
"""
|
|
52
|
+
The time-aligned metadata of the utterances in the transcript. Read-only.
|
|
53
|
+
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
|
54
|
+
Returns: bytes
|
|
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, "bytes", error_mapping)
|
|
67
|
+
|
|
68
|
+
async def put(self,body: bytes, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[bytes]:
|
|
69
|
+
"""
|
|
70
|
+
The time-aligned metadata of the utterances in the transcript. Read-only.
|
|
71
|
+
param body: Binary request body
|
|
72
|
+
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
|
73
|
+
Returns: bytes
|
|
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_primitive_async(request_info, "bytes", error_mapping)
|
|
88
|
+
|
|
89
|
+
def to_delete_request_information(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
|
|
90
|
+
"""
|
|
91
|
+
The time-aligned metadata of the utterances in the transcript. Read-only.
|
|
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
|
+
The time-aligned metadata of the utterances in the transcript. Read-only.
|
|
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/octet-stream, application/json")
|
|
109
|
+
return request_info
|
|
110
|
+
|
|
111
|
+
def to_put_request_information(self,body: bytes, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
|
|
112
|
+
"""
|
|
113
|
+
The time-aligned metadata of the utterances in the transcript. Read-only.
|
|
114
|
+
param body: Binary 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_stream_content(body, "application/octet-stream")
|
|
124
|
+
return request_info
|
|
125
|
+
|
|
126
|
+
def with_url(self,raw_url: str) -> MetadataContentRequestBuilder:
|
|
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: MetadataContentRequestBuilder
|
|
131
|
+
"""
|
|
132
|
+
if raw_url is None:
|
|
133
|
+
raise TypeError("raw_url cannot be null.")
|
|
134
|
+
return MetadataContentRequestBuilder(self.request_adapter, raw_url)
|
|
135
|
+
|
|
136
|
+
@dataclass
|
|
137
|
+
class MetadataContentRequestBuilderDeleteRequestConfiguration(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 MetadataContentRequestBuilderGetRequestConfiguration(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 MetadataContentRequestBuilderPutRequestConfiguration(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
|
+
|
|
@@ -0,0 +1,218 @@
|
|
|
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.call_transcript import CallTranscript
|
|
18
|
+
from .....models.call_transcript_collection_response import CallTranscriptCollectionResponse
|
|
19
|
+
from .....models.o_data_errors.o_data_error import ODataError
|
|
20
|
+
from .count.count_request_builder import CountRequestBuilder
|
|
21
|
+
from .delta.delta_request_builder import DeltaRequestBuilder
|
|
22
|
+
from .item.call_transcript_item_request_builder import CallTranscriptItemRequestBuilder
|
|
23
|
+
|
|
24
|
+
class TranscriptsRequestBuilder(BaseRequestBuilder):
|
|
25
|
+
"""
|
|
26
|
+
Provides operations to manage the transcripts property of the microsoft.graph.adhocCall entity.
|
|
27
|
+
"""
|
|
28
|
+
def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, dict[str, Any]]) -> None:
|
|
29
|
+
"""
|
|
30
|
+
Instantiates a new TranscriptsRequestBuilder and sets the default values.
|
|
31
|
+
param path_parameters: The raw url or the url-template parameters for the request.
|
|
32
|
+
param request_adapter: The request adapter to use to execute the requests.
|
|
33
|
+
Returns: None
|
|
34
|
+
"""
|
|
35
|
+
super().__init__(request_adapter, "{+baseurl}/communications/adhocCalls/{adhocCall%2Did}/transcripts{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", path_parameters)
|
|
36
|
+
|
|
37
|
+
def by_call_transcript_id(self,call_transcript_id: str) -> CallTranscriptItemRequestBuilder:
|
|
38
|
+
"""
|
|
39
|
+
Provides operations to manage the transcripts property of the microsoft.graph.adhocCall entity.
|
|
40
|
+
param call_transcript_id: The unique identifier of callTranscript
|
|
41
|
+
Returns: CallTranscriptItemRequestBuilder
|
|
42
|
+
"""
|
|
43
|
+
if call_transcript_id is None:
|
|
44
|
+
raise TypeError("call_transcript_id cannot be null.")
|
|
45
|
+
from .item.call_transcript_item_request_builder import CallTranscriptItemRequestBuilder
|
|
46
|
+
|
|
47
|
+
url_tpl_params = get_path_parameters(self.path_parameters)
|
|
48
|
+
url_tpl_params["callTranscript%2Did"] = call_transcript_id
|
|
49
|
+
return CallTranscriptItemRequestBuilder(self.request_adapter, url_tpl_params)
|
|
50
|
+
|
|
51
|
+
async def get(self,request_configuration: Optional[RequestConfiguration[TranscriptsRequestBuilderGetQueryParameters]] = None) -> Optional[CallTranscriptCollectionResponse]:
|
|
52
|
+
"""
|
|
53
|
+
The transcripts of a call. Read-only.
|
|
54
|
+
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
|
55
|
+
Returns: Optional[CallTranscriptCollectionResponse]
|
|
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.call_transcript_collection_response import CallTranscriptCollectionResponse
|
|
68
|
+
|
|
69
|
+
return await self.request_adapter.send_async(request_info, CallTranscriptCollectionResponse, error_mapping)
|
|
70
|
+
|
|
71
|
+
async def post(self,body: CallTranscript, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[CallTranscript]:
|
|
72
|
+
"""
|
|
73
|
+
Create new navigation property to transcripts for communications
|
|
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[CallTranscript]
|
|
77
|
+
"""
|
|
78
|
+
if body is None:
|
|
79
|
+
raise TypeError("body cannot be null.")
|
|
80
|
+
request_info = self.to_post_request_information(
|
|
81
|
+
body, request_configuration
|
|
82
|
+
)
|
|
83
|
+
from .....models.o_data_errors.o_data_error import ODataError
|
|
84
|
+
|
|
85
|
+
error_mapping: dict[str, type[ParsableFactory]] = {
|
|
86
|
+
"XXX": ODataError,
|
|
87
|
+
}
|
|
88
|
+
if not self.request_adapter:
|
|
89
|
+
raise Exception("Http core is null")
|
|
90
|
+
from .....models.call_transcript import CallTranscript
|
|
91
|
+
|
|
92
|
+
return await self.request_adapter.send_async(request_info, CallTranscript, error_mapping)
|
|
93
|
+
|
|
94
|
+
def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[TranscriptsRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
|
|
95
|
+
"""
|
|
96
|
+
The transcripts of a call. Read-only.
|
|
97
|
+
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
|
98
|
+
Returns: RequestInformation
|
|
99
|
+
"""
|
|
100
|
+
request_info = RequestInformation(Method.GET, self.url_template, self.path_parameters)
|
|
101
|
+
request_info.configure(request_configuration)
|
|
102
|
+
request_info.headers.try_add("Accept", "application/json")
|
|
103
|
+
return request_info
|
|
104
|
+
|
|
105
|
+
def to_post_request_information(self,body: CallTranscript, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
|
|
106
|
+
"""
|
|
107
|
+
Create new navigation property to transcripts for communications
|
|
108
|
+
param body: The request body
|
|
109
|
+
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
|
110
|
+
Returns: RequestInformation
|
|
111
|
+
"""
|
|
112
|
+
if body is None:
|
|
113
|
+
raise TypeError("body cannot be null.")
|
|
114
|
+
request_info = RequestInformation(Method.POST, self.url_template, self.path_parameters)
|
|
115
|
+
request_info.configure(request_configuration)
|
|
116
|
+
request_info.headers.try_add("Accept", "application/json")
|
|
117
|
+
request_info.set_content_from_parsable(self.request_adapter, "application/json", body)
|
|
118
|
+
return request_info
|
|
119
|
+
|
|
120
|
+
def with_url(self,raw_url: str) -> TranscriptsRequestBuilder:
|
|
121
|
+
"""
|
|
122
|
+
Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
|
|
123
|
+
param raw_url: The raw URL to use for the request builder.
|
|
124
|
+
Returns: TranscriptsRequestBuilder
|
|
125
|
+
"""
|
|
126
|
+
if raw_url is None:
|
|
127
|
+
raise TypeError("raw_url cannot be null.")
|
|
128
|
+
return TranscriptsRequestBuilder(self.request_adapter, raw_url)
|
|
129
|
+
|
|
130
|
+
@property
|
|
131
|
+
def count(self) -> CountRequestBuilder:
|
|
132
|
+
"""
|
|
133
|
+
Provides operations to count the resources in the collection.
|
|
134
|
+
"""
|
|
135
|
+
from .count.count_request_builder import CountRequestBuilder
|
|
136
|
+
|
|
137
|
+
return CountRequestBuilder(self.request_adapter, self.path_parameters)
|
|
138
|
+
|
|
139
|
+
@property
|
|
140
|
+
def delta(self) -> DeltaRequestBuilder:
|
|
141
|
+
"""
|
|
142
|
+
Provides operations to call the delta method.
|
|
143
|
+
"""
|
|
144
|
+
from .delta.delta_request_builder import DeltaRequestBuilder
|
|
145
|
+
|
|
146
|
+
return DeltaRequestBuilder(self.request_adapter, self.path_parameters)
|
|
147
|
+
|
|
148
|
+
@dataclass
|
|
149
|
+
class TranscriptsRequestBuilderGetQueryParameters():
|
|
150
|
+
"""
|
|
151
|
+
The transcripts of a call. Read-only.
|
|
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 == "count":
|
|
162
|
+
return "%24count"
|
|
163
|
+
if original_name == "expand":
|
|
164
|
+
return "%24expand"
|
|
165
|
+
if original_name == "filter":
|
|
166
|
+
return "%24filter"
|
|
167
|
+
if original_name == "orderby":
|
|
168
|
+
return "%24orderby"
|
|
169
|
+
if original_name == "search":
|
|
170
|
+
return "%24search"
|
|
171
|
+
if original_name == "select":
|
|
172
|
+
return "%24select"
|
|
173
|
+
if original_name == "skip":
|
|
174
|
+
return "%24skip"
|
|
175
|
+
if original_name == "top":
|
|
176
|
+
return "%24top"
|
|
177
|
+
return original_name
|
|
178
|
+
|
|
179
|
+
# Include count of items
|
|
180
|
+
count: Optional[bool] = None
|
|
181
|
+
|
|
182
|
+
# Expand related entities
|
|
183
|
+
expand: Optional[list[str]] = None
|
|
184
|
+
|
|
185
|
+
# Filter items by property values
|
|
186
|
+
filter: Optional[str] = None
|
|
187
|
+
|
|
188
|
+
# Order items by property values
|
|
189
|
+
orderby: Optional[list[str]] = None
|
|
190
|
+
|
|
191
|
+
# Search items by search phrases
|
|
192
|
+
search: Optional[str] = None
|
|
193
|
+
|
|
194
|
+
# Select properties to be returned
|
|
195
|
+
select: Optional[list[str]] = None
|
|
196
|
+
|
|
197
|
+
# Skip the first n items
|
|
198
|
+
skip: Optional[int] = None
|
|
199
|
+
|
|
200
|
+
# Show only the first n items
|
|
201
|
+
top: Optional[int] = None
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
@dataclass
|
|
205
|
+
class TranscriptsRequestBuilderGetRequestConfiguration(RequestConfiguration[TranscriptsRequestBuilderGetQueryParameters]):
|
|
206
|
+
"""
|
|
207
|
+
Configuration for the request such as headers, query parameters, and middleware options.
|
|
208
|
+
"""
|
|
209
|
+
warn("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.", DeprecationWarning)
|
|
210
|
+
|
|
211
|
+
@dataclass
|
|
212
|
+
class TranscriptsRequestBuilderPostRequestConfiguration(RequestConfiguration[QueryParameters]):
|
|
213
|
+
"""
|
|
214
|
+
Configuration for the request such as headers, query parameters, and middleware options.
|
|
215
|
+
"""
|
|
216
|
+
warn("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.", DeprecationWarning)
|
|
217
|
+
|
|
218
|
+
|
|
@@ -16,6 +16,7 @@ from warnings import warn
|
|
|
16
16
|
if TYPE_CHECKING:
|
|
17
17
|
from ..models.cloud_communications import CloudCommunications
|
|
18
18
|
from ..models.o_data_errors.o_data_error import ODataError
|
|
19
|
+
from .adhoc_calls.adhoc_calls_request_builder import AdhocCallsRequestBuilder
|
|
19
20
|
from .calls.calls_request_builder import CallsRequestBuilder
|
|
20
21
|
from .call_records.call_records_request_builder import CallRecordsRequestBuilder
|
|
21
22
|
from .get_all_online_meeting_messages.get_all_online_meeting_messages_request_builder import GetAllOnlineMeetingMessagesRequestBuilder
|
|
@@ -116,6 +117,15 @@ class CommunicationsRequestBuilder(BaseRequestBuilder):
|
|
|
116
117
|
raise TypeError("raw_url cannot be null.")
|
|
117
118
|
return CommunicationsRequestBuilder(self.request_adapter, raw_url)
|
|
118
119
|
|
|
120
|
+
@property
|
|
121
|
+
def adhoc_calls(self) -> AdhocCallsRequestBuilder:
|
|
122
|
+
"""
|
|
123
|
+
Provides operations to manage the adhocCalls property of the microsoft.graph.cloudCommunications entity.
|
|
124
|
+
"""
|
|
125
|
+
from .adhoc_calls.adhoc_calls_request_builder import AdhocCallsRequestBuilder
|
|
126
|
+
|
|
127
|
+
return AdhocCallsRequestBuilder(self.request_adapter, self.path_parameters)
|
|
128
|
+
|
|
119
129
|
@property
|
|
120
130
|
def call_records(self) -> CallRecordsRequestBuilder:
|
|
121
131
|
"""
|
|
@@ -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}/communications/presences/{presence%2Did}/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
|
+
|
msgraph/generated/communications/presences/item/clear_location/clear_location_request_builder.py
ADDED
|
@@ -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}/communications/presences/{presence%2Did}/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 PresenceItemRequestBuilder(BaseRequestBuilder):
|
|
|
144
148
|
raise TypeError("raw_url cannot be null.")
|
|
145
149
|
return PresenceItemRequestBuilder(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 PresenceItemRequestBuilder(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
|
"""
|