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,104 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
from collections.abc import Callable
|
|
3
|
+
from dataclasses import dataclass, field
|
|
4
|
+
from kiota_abstractions.base_request_builder import BaseRequestBuilder
|
|
5
|
+
from kiota_abstractions.base_request_configuration import RequestConfiguration
|
|
6
|
+
from kiota_abstractions.default_query_parameters import QueryParameters
|
|
7
|
+
from kiota_abstractions.get_path_parameters import get_path_parameters
|
|
8
|
+
from kiota_abstractions.method import Method
|
|
9
|
+
from kiota_abstractions.request_adapter import RequestAdapter
|
|
10
|
+
from kiota_abstractions.request_information import RequestInformation
|
|
11
|
+
from kiota_abstractions.request_option import RequestOption
|
|
12
|
+
from kiota_abstractions.serialization import Parsable, ParsableFactory
|
|
13
|
+
from typing import Any, Optional, TYPE_CHECKING, Union
|
|
14
|
+
from warnings import warn
|
|
15
|
+
|
|
16
|
+
if TYPE_CHECKING:
|
|
17
|
+
from ......models.o_data_errors.o_data_error import ODataError
|
|
18
|
+
|
|
19
|
+
class CountRequestBuilder(BaseRequestBuilder):
|
|
20
|
+
"""
|
|
21
|
+
Provides operations to count the resources in the collection.
|
|
22
|
+
"""
|
|
23
|
+
def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, dict[str, Any]]) -> None:
|
|
24
|
+
"""
|
|
25
|
+
Instantiates a new CountRequestBuilder and sets the default values.
|
|
26
|
+
param path_parameters: The raw url or the url-template parameters for the request.
|
|
27
|
+
param request_adapter: The request adapter to use to execute the requests.
|
|
28
|
+
Returns: None
|
|
29
|
+
"""
|
|
30
|
+
super().__init__(request_adapter, "{+baseurl}/communications/adhocCalls/{adhocCall%2Did}/transcripts/$count{?%24filter,%24search}", path_parameters)
|
|
31
|
+
|
|
32
|
+
async def get(self,request_configuration: Optional[RequestConfiguration[CountRequestBuilderGetQueryParameters]] = None) -> Optional[int]:
|
|
33
|
+
"""
|
|
34
|
+
Get the number of the resource
|
|
35
|
+
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
|
36
|
+
Returns: Optional[int]
|
|
37
|
+
"""
|
|
38
|
+
request_info = self.to_get_request_information(
|
|
39
|
+
request_configuration
|
|
40
|
+
)
|
|
41
|
+
from ......models.o_data_errors.o_data_error import ODataError
|
|
42
|
+
|
|
43
|
+
error_mapping: dict[str, type[ParsableFactory]] = {
|
|
44
|
+
"XXX": ODataError,
|
|
45
|
+
}
|
|
46
|
+
if not self.request_adapter:
|
|
47
|
+
raise Exception("Http core is null")
|
|
48
|
+
return await self.request_adapter.send_primitive_async(request_info, "int", error_mapping)
|
|
49
|
+
|
|
50
|
+
def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[CountRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
|
|
51
|
+
"""
|
|
52
|
+
Get the number of the resource
|
|
53
|
+
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
|
54
|
+
Returns: RequestInformation
|
|
55
|
+
"""
|
|
56
|
+
request_info = RequestInformation(Method.GET, self.url_template, self.path_parameters)
|
|
57
|
+
request_info.configure(request_configuration)
|
|
58
|
+
request_info.headers.try_add("Accept", "text/plain;q=0.9")
|
|
59
|
+
return request_info
|
|
60
|
+
|
|
61
|
+
def with_url(self,raw_url: str) -> CountRequestBuilder:
|
|
62
|
+
"""
|
|
63
|
+
Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
|
|
64
|
+
param raw_url: The raw URL to use for the request builder.
|
|
65
|
+
Returns: CountRequestBuilder
|
|
66
|
+
"""
|
|
67
|
+
if raw_url is None:
|
|
68
|
+
raise TypeError("raw_url cannot be null.")
|
|
69
|
+
return CountRequestBuilder(self.request_adapter, raw_url)
|
|
70
|
+
|
|
71
|
+
@dataclass
|
|
72
|
+
class CountRequestBuilderGetQueryParameters():
|
|
73
|
+
"""
|
|
74
|
+
Get the number of the resource
|
|
75
|
+
"""
|
|
76
|
+
def get_query_parameter(self,original_name: str) -> str:
|
|
77
|
+
"""
|
|
78
|
+
Maps the query parameters names to their encoded names for the URI template parsing.
|
|
79
|
+
param original_name: The original query parameter name in the class.
|
|
80
|
+
Returns: str
|
|
81
|
+
"""
|
|
82
|
+
if original_name is None:
|
|
83
|
+
raise TypeError("original_name cannot be null.")
|
|
84
|
+
if original_name == "filter":
|
|
85
|
+
return "%24filter"
|
|
86
|
+
if original_name == "search":
|
|
87
|
+
return "%24search"
|
|
88
|
+
return original_name
|
|
89
|
+
|
|
90
|
+
# Filter items by property values
|
|
91
|
+
filter: Optional[str] = None
|
|
92
|
+
|
|
93
|
+
# Search items by search phrases
|
|
94
|
+
search: Optional[str] = None
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
@dataclass
|
|
98
|
+
class CountRequestBuilderGetRequestConfiguration(RequestConfiguration[CountRequestBuilderGetQueryParameters]):
|
|
99
|
+
"""
|
|
100
|
+
Configuration for the request such as headers, query parameters, and middleware options.
|
|
101
|
+
"""
|
|
102
|
+
warn("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.", DeprecationWarning)
|
|
103
|
+
|
|
104
|
+
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
from collections.abc import Callable
|
|
3
|
+
from dataclasses import dataclass, field
|
|
4
|
+
from kiota_abstractions.serialization import Parsable, ParseNode, SerializationWriter
|
|
5
|
+
from typing import Any, Optional, TYPE_CHECKING, Union
|
|
6
|
+
|
|
7
|
+
if TYPE_CHECKING:
|
|
8
|
+
from ......models.base_delta_function_response import BaseDeltaFunctionResponse
|
|
9
|
+
from ......models.call_transcript import CallTranscript
|
|
10
|
+
|
|
11
|
+
from ......models.base_delta_function_response import BaseDeltaFunctionResponse
|
|
12
|
+
|
|
13
|
+
@dataclass
|
|
14
|
+
class DeltaGetResponse(BaseDeltaFunctionResponse, Parsable):
|
|
15
|
+
# The value property
|
|
16
|
+
value: Optional[list[CallTranscript]] = None
|
|
17
|
+
|
|
18
|
+
@staticmethod
|
|
19
|
+
def create_from_discriminator_value(parse_node: ParseNode) -> DeltaGetResponse:
|
|
20
|
+
"""
|
|
21
|
+
Creates a new instance of the appropriate class based on discriminator value
|
|
22
|
+
param parse_node: The parse node to use to read the discriminator value and create the object
|
|
23
|
+
Returns: DeltaGetResponse
|
|
24
|
+
"""
|
|
25
|
+
if parse_node is None:
|
|
26
|
+
raise TypeError("parse_node cannot be null.")
|
|
27
|
+
return DeltaGetResponse()
|
|
28
|
+
|
|
29
|
+
def get_field_deserializers(self,) -> dict[str, Callable[[ParseNode], None]]:
|
|
30
|
+
"""
|
|
31
|
+
The deserialization information for the current model
|
|
32
|
+
Returns: dict[str, Callable[[ParseNode], None]]
|
|
33
|
+
"""
|
|
34
|
+
from ......models.base_delta_function_response import BaseDeltaFunctionResponse
|
|
35
|
+
from ......models.call_transcript import CallTranscript
|
|
36
|
+
|
|
37
|
+
from ......models.base_delta_function_response import BaseDeltaFunctionResponse
|
|
38
|
+
from ......models.call_transcript import CallTranscript
|
|
39
|
+
|
|
40
|
+
fields: dict[str, Callable[[Any], None]] = {
|
|
41
|
+
"value": lambda n : setattr(self, 'value', n.get_collection_of_object_values(CallTranscript)),
|
|
42
|
+
}
|
|
43
|
+
super_fields = super().get_field_deserializers()
|
|
44
|
+
fields.update(super_fields)
|
|
45
|
+
return fields
|
|
46
|
+
|
|
47
|
+
def serialize(self,writer: SerializationWriter) -> None:
|
|
48
|
+
"""
|
|
49
|
+
Serializes information the current object
|
|
50
|
+
param writer: Serialization writer to use to serialize this model
|
|
51
|
+
Returns: None
|
|
52
|
+
"""
|
|
53
|
+
if writer is None:
|
|
54
|
+
raise TypeError("writer cannot be null.")
|
|
55
|
+
super().serialize(writer)
|
|
56
|
+
writer.write_collection_of_object_values("value", self.value)
|
|
57
|
+
|
|
58
|
+
|
|
@@ -0,0 +1,137 @@
|
|
|
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 .delta_get_response import DeltaGetResponse
|
|
19
|
+
|
|
20
|
+
class DeltaRequestBuilder(BaseRequestBuilder):
|
|
21
|
+
"""
|
|
22
|
+
Provides operations to call the delta method.
|
|
23
|
+
"""
|
|
24
|
+
def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, dict[str, Any]]) -> None:
|
|
25
|
+
"""
|
|
26
|
+
Instantiates a new DeltaRequestBuilder 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}/communications/adhocCalls/{adhocCall%2Did}/transcripts/delta(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", path_parameters)
|
|
32
|
+
|
|
33
|
+
async def get(self,request_configuration: Optional[RequestConfiguration[DeltaRequestBuilderGetQueryParameters]] = None) -> Optional[DeltaGetResponse]:
|
|
34
|
+
"""
|
|
35
|
+
Invoke function delta
|
|
36
|
+
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
|
37
|
+
Returns: Optional[DeltaGetResponse]
|
|
38
|
+
"""
|
|
39
|
+
request_info = self.to_get_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
|
+
from .delta_get_response import DeltaGetResponse
|
|
50
|
+
|
|
51
|
+
return await self.request_adapter.send_async(request_info, DeltaGetResponse, error_mapping)
|
|
52
|
+
|
|
53
|
+
def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[DeltaRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
|
|
54
|
+
"""
|
|
55
|
+
Invoke function delta
|
|
56
|
+
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
|
57
|
+
Returns: RequestInformation
|
|
58
|
+
"""
|
|
59
|
+
request_info = RequestInformation(Method.GET, self.url_template, self.path_parameters)
|
|
60
|
+
request_info.configure(request_configuration)
|
|
61
|
+
request_info.headers.try_add("Accept", "application/json")
|
|
62
|
+
return request_info
|
|
63
|
+
|
|
64
|
+
def with_url(self,raw_url: str) -> DeltaRequestBuilder:
|
|
65
|
+
"""
|
|
66
|
+
Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
|
|
67
|
+
param raw_url: The raw URL to use for the request builder.
|
|
68
|
+
Returns: DeltaRequestBuilder
|
|
69
|
+
"""
|
|
70
|
+
if raw_url is None:
|
|
71
|
+
raise TypeError("raw_url cannot be null.")
|
|
72
|
+
return DeltaRequestBuilder(self.request_adapter, raw_url)
|
|
73
|
+
|
|
74
|
+
@dataclass
|
|
75
|
+
class DeltaRequestBuilderGetQueryParameters():
|
|
76
|
+
"""
|
|
77
|
+
Invoke function delta
|
|
78
|
+
"""
|
|
79
|
+
def get_query_parameter(self,original_name: str) -> str:
|
|
80
|
+
"""
|
|
81
|
+
Maps the query parameters names to their encoded names for the URI template parsing.
|
|
82
|
+
param original_name: The original query parameter name in the class.
|
|
83
|
+
Returns: str
|
|
84
|
+
"""
|
|
85
|
+
if original_name is None:
|
|
86
|
+
raise TypeError("original_name cannot be null.")
|
|
87
|
+
if original_name == "count":
|
|
88
|
+
return "%24count"
|
|
89
|
+
if original_name == "expand":
|
|
90
|
+
return "%24expand"
|
|
91
|
+
if original_name == "filter":
|
|
92
|
+
return "%24filter"
|
|
93
|
+
if original_name == "orderby":
|
|
94
|
+
return "%24orderby"
|
|
95
|
+
if original_name == "search":
|
|
96
|
+
return "%24search"
|
|
97
|
+
if original_name == "select":
|
|
98
|
+
return "%24select"
|
|
99
|
+
if original_name == "skip":
|
|
100
|
+
return "%24skip"
|
|
101
|
+
if original_name == "top":
|
|
102
|
+
return "%24top"
|
|
103
|
+
return original_name
|
|
104
|
+
|
|
105
|
+
# Include count of items
|
|
106
|
+
count: Optional[bool] = None
|
|
107
|
+
|
|
108
|
+
# Expand related entities
|
|
109
|
+
expand: Optional[list[str]] = None
|
|
110
|
+
|
|
111
|
+
# Filter items by property values
|
|
112
|
+
filter: Optional[str] = None
|
|
113
|
+
|
|
114
|
+
# Order items by property values
|
|
115
|
+
orderby: Optional[list[str]] = None
|
|
116
|
+
|
|
117
|
+
# Search items by search phrases
|
|
118
|
+
search: Optional[str] = None
|
|
119
|
+
|
|
120
|
+
# Select properties to be returned
|
|
121
|
+
select: Optional[list[str]] = None
|
|
122
|
+
|
|
123
|
+
# Skip the first n items
|
|
124
|
+
skip: Optional[int] = None
|
|
125
|
+
|
|
126
|
+
# Show only the first n items
|
|
127
|
+
top: Optional[int] = None
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
@dataclass
|
|
131
|
+
class DeltaRequestBuilderGetRequestConfiguration(RequestConfiguration[DeltaRequestBuilderGetQueryParameters]):
|
|
132
|
+
"""
|
|
133
|
+
Configuration for the request such as headers, query parameters, and middleware options.
|
|
134
|
+
"""
|
|
135
|
+
warn("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.", DeprecationWarning)
|
|
136
|
+
|
|
137
|
+
|
|
@@ -0,0 +1,208 @@
|
|
|
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.o_data_errors.o_data_error import ODataError
|
|
19
|
+
from .content.content_request_builder import ContentRequestBuilder
|
|
20
|
+
from .metadata_content.metadata_content_request_builder import MetadataContentRequestBuilder
|
|
21
|
+
|
|
22
|
+
class CallTranscriptItemRequestBuilder(BaseRequestBuilder):
|
|
23
|
+
"""
|
|
24
|
+
Provides operations to manage the transcripts property of the microsoft.graph.adhocCall entity.
|
|
25
|
+
"""
|
|
26
|
+
def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, dict[str, Any]]) -> None:
|
|
27
|
+
"""
|
|
28
|
+
Instantiates a new CallTranscriptItemRequestBuilder and sets the default values.
|
|
29
|
+
param path_parameters: The raw url or the url-template parameters for the request.
|
|
30
|
+
param request_adapter: The request adapter to use to execute the requests.
|
|
31
|
+
Returns: None
|
|
32
|
+
"""
|
|
33
|
+
super().__init__(request_adapter, "{+baseurl}/communications/adhocCalls/{adhocCall%2Did}/transcripts/{callTranscript%2Did}{?%24expand,%24select}", path_parameters)
|
|
34
|
+
|
|
35
|
+
async def delete(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> None:
|
|
36
|
+
"""
|
|
37
|
+
Delete navigation property transcripts for communications
|
|
38
|
+
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
|
39
|
+
Returns: None
|
|
40
|
+
"""
|
|
41
|
+
request_info = self.to_delete_request_information(
|
|
42
|
+
request_configuration
|
|
43
|
+
)
|
|
44
|
+
from ......models.o_data_errors.o_data_error import ODataError
|
|
45
|
+
|
|
46
|
+
error_mapping: dict[str, type[ParsableFactory]] = {
|
|
47
|
+
"XXX": ODataError,
|
|
48
|
+
}
|
|
49
|
+
if not self.request_adapter:
|
|
50
|
+
raise Exception("Http core is null")
|
|
51
|
+
return await self.request_adapter.send_no_response_content_async(request_info, error_mapping)
|
|
52
|
+
|
|
53
|
+
async def get(self,request_configuration: Optional[RequestConfiguration[CallTranscriptItemRequestBuilderGetQueryParameters]] = None) -> Optional[CallTranscript]:
|
|
54
|
+
"""
|
|
55
|
+
The transcripts of a call. Read-only.
|
|
56
|
+
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
|
57
|
+
Returns: Optional[CallTranscript]
|
|
58
|
+
"""
|
|
59
|
+
request_info = self.to_get_request_information(
|
|
60
|
+
request_configuration
|
|
61
|
+
)
|
|
62
|
+
from ......models.o_data_errors.o_data_error import ODataError
|
|
63
|
+
|
|
64
|
+
error_mapping: dict[str, type[ParsableFactory]] = {
|
|
65
|
+
"XXX": ODataError,
|
|
66
|
+
}
|
|
67
|
+
if not self.request_adapter:
|
|
68
|
+
raise Exception("Http core is null")
|
|
69
|
+
from ......models.call_transcript import CallTranscript
|
|
70
|
+
|
|
71
|
+
return await self.request_adapter.send_async(request_info, CallTranscript, error_mapping)
|
|
72
|
+
|
|
73
|
+
async def patch(self,body: CallTranscript, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[CallTranscript]:
|
|
74
|
+
"""
|
|
75
|
+
Update the navigation property transcripts in communications
|
|
76
|
+
param body: The request body
|
|
77
|
+
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
|
78
|
+
Returns: Optional[CallTranscript]
|
|
79
|
+
"""
|
|
80
|
+
if body is None:
|
|
81
|
+
raise TypeError("body cannot be null.")
|
|
82
|
+
request_info = self.to_patch_request_information(
|
|
83
|
+
body, request_configuration
|
|
84
|
+
)
|
|
85
|
+
from ......models.o_data_errors.o_data_error import ODataError
|
|
86
|
+
|
|
87
|
+
error_mapping: dict[str, type[ParsableFactory]] = {
|
|
88
|
+
"XXX": ODataError,
|
|
89
|
+
}
|
|
90
|
+
if not self.request_adapter:
|
|
91
|
+
raise Exception("Http core is null")
|
|
92
|
+
from ......models.call_transcript import CallTranscript
|
|
93
|
+
|
|
94
|
+
return await self.request_adapter.send_async(request_info, CallTranscript, error_mapping)
|
|
95
|
+
|
|
96
|
+
def to_delete_request_information(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
|
|
97
|
+
"""
|
|
98
|
+
Delete navigation property transcripts for communications
|
|
99
|
+
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
|
100
|
+
Returns: RequestInformation
|
|
101
|
+
"""
|
|
102
|
+
request_info = RequestInformation(Method.DELETE, self.url_template, self.path_parameters)
|
|
103
|
+
request_info.configure(request_configuration)
|
|
104
|
+
request_info.headers.try_add("Accept", "application/json")
|
|
105
|
+
return request_info
|
|
106
|
+
|
|
107
|
+
def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[CallTranscriptItemRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
|
|
108
|
+
"""
|
|
109
|
+
The transcripts of a call. Read-only.
|
|
110
|
+
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
|
111
|
+
Returns: RequestInformation
|
|
112
|
+
"""
|
|
113
|
+
request_info = RequestInformation(Method.GET, self.url_template, self.path_parameters)
|
|
114
|
+
request_info.configure(request_configuration)
|
|
115
|
+
request_info.headers.try_add("Accept", "application/json")
|
|
116
|
+
return request_info
|
|
117
|
+
|
|
118
|
+
def to_patch_request_information(self,body: CallTranscript, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
|
|
119
|
+
"""
|
|
120
|
+
Update the navigation property transcripts in communications
|
|
121
|
+
param body: The request body
|
|
122
|
+
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
|
123
|
+
Returns: RequestInformation
|
|
124
|
+
"""
|
|
125
|
+
if body is None:
|
|
126
|
+
raise TypeError("body cannot be null.")
|
|
127
|
+
request_info = RequestInformation(Method.PATCH, self.url_template, self.path_parameters)
|
|
128
|
+
request_info.configure(request_configuration)
|
|
129
|
+
request_info.headers.try_add("Accept", "application/json")
|
|
130
|
+
request_info.set_content_from_parsable(self.request_adapter, "application/json", body)
|
|
131
|
+
return request_info
|
|
132
|
+
|
|
133
|
+
def with_url(self,raw_url: str) -> CallTranscriptItemRequestBuilder:
|
|
134
|
+
"""
|
|
135
|
+
Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
|
|
136
|
+
param raw_url: The raw URL to use for the request builder.
|
|
137
|
+
Returns: CallTranscriptItemRequestBuilder
|
|
138
|
+
"""
|
|
139
|
+
if raw_url is None:
|
|
140
|
+
raise TypeError("raw_url cannot be null.")
|
|
141
|
+
return CallTranscriptItemRequestBuilder(self.request_adapter, raw_url)
|
|
142
|
+
|
|
143
|
+
@property
|
|
144
|
+
def content(self) -> ContentRequestBuilder:
|
|
145
|
+
"""
|
|
146
|
+
Provides operations to manage the media for the cloudCommunications entity.
|
|
147
|
+
"""
|
|
148
|
+
from .content.content_request_builder import ContentRequestBuilder
|
|
149
|
+
|
|
150
|
+
return ContentRequestBuilder(self.request_adapter, self.path_parameters)
|
|
151
|
+
|
|
152
|
+
@property
|
|
153
|
+
def metadata_content(self) -> MetadataContentRequestBuilder:
|
|
154
|
+
"""
|
|
155
|
+
Provides operations to manage the media for the cloudCommunications entity.
|
|
156
|
+
"""
|
|
157
|
+
from .metadata_content.metadata_content_request_builder import MetadataContentRequestBuilder
|
|
158
|
+
|
|
159
|
+
return MetadataContentRequestBuilder(self.request_adapter, self.path_parameters)
|
|
160
|
+
|
|
161
|
+
@dataclass
|
|
162
|
+
class CallTranscriptItemRequestBuilderDeleteRequestConfiguration(RequestConfiguration[QueryParameters]):
|
|
163
|
+
"""
|
|
164
|
+
Configuration for the request such as headers, query parameters, and middleware options.
|
|
165
|
+
"""
|
|
166
|
+
warn("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.", DeprecationWarning)
|
|
167
|
+
|
|
168
|
+
@dataclass
|
|
169
|
+
class CallTranscriptItemRequestBuilderGetQueryParameters():
|
|
170
|
+
"""
|
|
171
|
+
The transcripts of a call. Read-only.
|
|
172
|
+
"""
|
|
173
|
+
def get_query_parameter(self,original_name: str) -> str:
|
|
174
|
+
"""
|
|
175
|
+
Maps the query parameters names to their encoded names for the URI template parsing.
|
|
176
|
+
param original_name: The original query parameter name in the class.
|
|
177
|
+
Returns: str
|
|
178
|
+
"""
|
|
179
|
+
if original_name is None:
|
|
180
|
+
raise TypeError("original_name cannot be null.")
|
|
181
|
+
if original_name == "expand":
|
|
182
|
+
return "%24expand"
|
|
183
|
+
if original_name == "select":
|
|
184
|
+
return "%24select"
|
|
185
|
+
return original_name
|
|
186
|
+
|
|
187
|
+
# Expand related entities
|
|
188
|
+
expand: Optional[list[str]] = None
|
|
189
|
+
|
|
190
|
+
# Select properties to be returned
|
|
191
|
+
select: Optional[list[str]] = None
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
@dataclass
|
|
195
|
+
class CallTranscriptItemRequestBuilderGetRequestConfiguration(RequestConfiguration[CallTranscriptItemRequestBuilderGetQueryParameters]):
|
|
196
|
+
"""
|
|
197
|
+
Configuration for the request such as headers, query parameters, and middleware options.
|
|
198
|
+
"""
|
|
199
|
+
warn("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.", DeprecationWarning)
|
|
200
|
+
|
|
201
|
+
@dataclass
|
|
202
|
+
class CallTranscriptItemRequestBuilderPatchRequestConfiguration(RequestConfiguration[QueryParameters]):
|
|
203
|
+
"""
|
|
204
|
+
Configuration for the request such as headers, query parameters, and middleware options.
|
|
205
|
+
"""
|
|
206
|
+
warn("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.", DeprecationWarning)
|
|
207
|
+
|
|
208
|
+
|
|
@@ -0,0 +1,160 @@
|
|
|
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.o_data_errors.o_data_error import ODataError
|
|
19
|
+
|
|
20
|
+
class ContentRequestBuilder(BaseRequestBuilder):
|
|
21
|
+
"""
|
|
22
|
+
Provides operations to manage the media for the cloudCommunications entity.
|
|
23
|
+
"""
|
|
24
|
+
def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, dict[str, Any]]) -> None:
|
|
25
|
+
"""
|
|
26
|
+
Instantiates a new ContentRequestBuilder 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}/communications/adhocCalls/{adhocCall%2Did}/transcripts/{callTranscript%2Did}/content", path_parameters)
|
|
32
|
+
|
|
33
|
+
async def delete(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> None:
|
|
34
|
+
"""
|
|
35
|
+
The content of the transcript. Read-only.
|
|
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[QueryParameters]] = None) -> Optional[bytes]:
|
|
52
|
+
"""
|
|
53
|
+
The content of the transcript. Read-only.
|
|
54
|
+
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
|
55
|
+
Returns: bytes
|
|
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
|
+
return await self.request_adapter.send_primitive_async(request_info, "bytes", error_mapping)
|
|
68
|
+
|
|
69
|
+
async def put(self,body: bytes, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[CallTranscript]:
|
|
70
|
+
"""
|
|
71
|
+
The content of the transcript. Read-only.
|
|
72
|
+
param body: Binary request body
|
|
73
|
+
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
|
74
|
+
Returns: Optional[CallTranscript]
|
|
75
|
+
"""
|
|
76
|
+
if body is None:
|
|
77
|
+
raise TypeError("body cannot be null.")
|
|
78
|
+
request_info = self.to_put_request_information(
|
|
79
|
+
body, request_configuration
|
|
80
|
+
)
|
|
81
|
+
from .......models.o_data_errors.o_data_error import ODataError
|
|
82
|
+
|
|
83
|
+
error_mapping: dict[str, type[ParsableFactory]] = {
|
|
84
|
+
"XXX": ODataError,
|
|
85
|
+
}
|
|
86
|
+
if not self.request_adapter:
|
|
87
|
+
raise Exception("Http core is null")
|
|
88
|
+
from .......models.call_transcript import CallTranscript
|
|
89
|
+
|
|
90
|
+
return await self.request_adapter.send_async(request_info, CallTranscript, error_mapping)
|
|
91
|
+
|
|
92
|
+
def to_delete_request_information(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
|
|
93
|
+
"""
|
|
94
|
+
The content of the transcript. Read-only.
|
|
95
|
+
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
|
96
|
+
Returns: RequestInformation
|
|
97
|
+
"""
|
|
98
|
+
request_info = RequestInformation(Method.DELETE, self.url_template, self.path_parameters)
|
|
99
|
+
request_info.configure(request_configuration)
|
|
100
|
+
request_info.headers.try_add("Accept", "application/json")
|
|
101
|
+
return request_info
|
|
102
|
+
|
|
103
|
+
def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
|
|
104
|
+
"""
|
|
105
|
+
The content of the transcript. Read-only.
|
|
106
|
+
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
|
107
|
+
Returns: RequestInformation
|
|
108
|
+
"""
|
|
109
|
+
request_info = RequestInformation(Method.GET, self.url_template, self.path_parameters)
|
|
110
|
+
request_info.configure(request_configuration)
|
|
111
|
+
request_info.headers.try_add("Accept", "application/octet-stream, application/json")
|
|
112
|
+
return request_info
|
|
113
|
+
|
|
114
|
+
def to_put_request_information(self,body: bytes, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
|
|
115
|
+
"""
|
|
116
|
+
The content of the transcript. Read-only.
|
|
117
|
+
param body: Binary request body
|
|
118
|
+
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
|
119
|
+
Returns: RequestInformation
|
|
120
|
+
"""
|
|
121
|
+
if body is None:
|
|
122
|
+
raise TypeError("body cannot be null.")
|
|
123
|
+
request_info = RequestInformation(Method.PUT, self.url_template, self.path_parameters)
|
|
124
|
+
request_info.configure(request_configuration)
|
|
125
|
+
request_info.headers.try_add("Accept", "application/json")
|
|
126
|
+
request_info.set_stream_content(body, "application/octet-stream")
|
|
127
|
+
return request_info
|
|
128
|
+
|
|
129
|
+
def with_url(self,raw_url: str) -> ContentRequestBuilder:
|
|
130
|
+
"""
|
|
131
|
+
Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
|
|
132
|
+
param raw_url: The raw URL to use for the request builder.
|
|
133
|
+
Returns: ContentRequestBuilder
|
|
134
|
+
"""
|
|
135
|
+
if raw_url is None:
|
|
136
|
+
raise TypeError("raw_url cannot be null.")
|
|
137
|
+
return ContentRequestBuilder(self.request_adapter, raw_url)
|
|
138
|
+
|
|
139
|
+
@dataclass
|
|
140
|
+
class ContentRequestBuilderDeleteRequestConfiguration(RequestConfiguration[QueryParameters]):
|
|
141
|
+
"""
|
|
142
|
+
Configuration for the request such as headers, query parameters, and middleware options.
|
|
143
|
+
"""
|
|
144
|
+
warn("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.", DeprecationWarning)
|
|
145
|
+
|
|
146
|
+
@dataclass
|
|
147
|
+
class ContentRequestBuilderGetRequestConfiguration(RequestConfiguration[QueryParameters]):
|
|
148
|
+
"""
|
|
149
|
+
Configuration for the request such as headers, query parameters, and middleware options.
|
|
150
|
+
"""
|
|
151
|
+
warn("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.", DeprecationWarning)
|
|
152
|
+
|
|
153
|
+
@dataclass
|
|
154
|
+
class ContentRequestBuilderPutRequestConfiguration(RequestConfiguration[QueryParameters]):
|
|
155
|
+
"""
|
|
156
|
+
Configuration for the request such as headers, query parameters, and middleware options.
|
|
157
|
+
"""
|
|
158
|
+
warn("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.", DeprecationWarning)
|
|
159
|
+
|
|
160
|
+
|