|
13 | 13 | if TYPE_CHECKING: |
14 | 14 | from ...models.call_records import call_record, call_record_collection_response |
15 | 15 | from ...models.o_data_errors import o_data_error |
16 | | - from .call_records_get_direct_routing_calls_with_from_date_time_with_to_date_time import call_records_get_direct_routing_calls_with_from_date_time_with_to_date_time_request_builder |
17 | | - from .call_records_get_pstn_calls_with_from_date_time_with_to_date_time import call_records_get_pstn_calls_with_from_date_time_with_to_date_time_request_builder |
18 | 16 | from .count import count_request_builder |
19 | 17 | from .item import call_record_item_request_builder |
| 18 | + from .microsoft_graph_call_records_get_direct_routing_calls_with_from_date_time_with_to_date_time import microsoft_graph_call_records_get_direct_routing_calls_with_from_date_time_with_to_date_time_request_builder |
| 19 | + from .microsoft_graph_call_records_get_pstn_calls_with_from_date_time_with_to_date_time import microsoft_graph_call_records_get_pstn_calls_with_from_date_time_with_to_date_time_request_builder |
20 | 20 |
|
21 | 21 | class CallRecordsRequestBuilder(): |
22 | 22 | """ |
@@ -55,59 +55,59 @@ def by_call_record_id(self,call_record_id: str) -> call_record_item_request_buil |
55 | 55 | url_tpl_params["callRecord%2Did"] = call_record_id |
56 | 56 | return call_record_item_request_builder.CallRecordItemRequestBuilder(self.request_adapter, url_tpl_params) |
57 | 57 |
|
58 | | - def call_records_get_direct_routing_calls_with_from_date_time_with_to_date_time(self,from_date_time: Optional[datetime] = None, to_date_time: Optional[datetime] = None) -> call_records_get_direct_routing_calls_with_from_date_time_with_to_date_time_request_builder.CallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTimeRequestBuilder: |
| 58 | + async def get(self,request_configuration: Optional[CallRecordsRequestBuilderGetRequestConfiguration] = None) -> Optional[call_record_collection_response.CallRecordCollectionResponse]: |
| 59 | + """ |
| 60 | + Get callRecords from communications |
| 61 | + Args: |
| 62 | + requestConfiguration: Configuration for the request such as headers, query parameters, and middleware options. |
| 63 | + Returns: Optional[call_record_collection_response.CallRecordCollectionResponse] |
| 64 | + """ |
| 65 | + request_info = self.to_get_request_information( |
| 66 | + request_configuration |
| 67 | + ) |
| 68 | + from ...models.o_data_errors import o_data_error |
| 69 | + |
| 70 | + error_mapping: Dict[str, ParsableFactory] = { |
| 71 | + "4XX": o_data_error.ODataError, |
| 72 | + "5XX": o_data_error.ODataError, |
| 73 | + } |
| 74 | + if not self.request_adapter: |
| 75 | + raise Exception("Http core is null") |
| 76 | + from ...models.call_records import call_record_collection_response |
| 77 | + |
| 78 | + return await self.request_adapter.send_async(request_info, call_record_collection_response.CallRecordCollectionResponse, error_mapping) |
| 79 | + |
| 80 | + def microsoft_graph_call_records_get_direct_routing_calls_with_from_date_time_with_to_date_time(self,from_date_time: Optional[datetime] = None, to_date_time: Optional[datetime] = None) -> microsoft_graph_call_records_get_direct_routing_calls_with_from_date_time_with_to_date_time_request_builder.MicrosoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTimeRequestBuilder: |
59 | 81 | """ |
60 | 82 | Provides operations to call the getDirectRoutingCalls method. |
61 | 83 | Args: |
62 | 84 | fromDateTime: Usage: fromDateTime={fromDateTime} |
63 | 85 | toDateTime: Usage: toDateTime={toDateTime} |
64 | | - Returns: call_records_get_direct_routing_calls_with_from_date_time_with_to_date_time_request_builder.CallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTimeRequestBuilder |
| 86 | + Returns: microsoft_graph_call_records_get_direct_routing_calls_with_from_date_time_with_to_date_time_request_builder.MicrosoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTimeRequestBuilder |
65 | 87 | """ |
66 | 88 | if from_date_time is None: |
67 | 89 | raise Exception("from_date_time cannot be undefined") |
68 | 90 | if to_date_time is None: |
69 | 91 | raise Exception("to_date_time cannot be undefined") |
70 | | - from .call_records_get_direct_routing_calls_with_from_date_time_with_to_date_time import call_records_get_direct_routing_calls_with_from_date_time_with_to_date_time_request_builder |
| 92 | + from .microsoft_graph_call_records_get_direct_routing_calls_with_from_date_time_with_to_date_time import microsoft_graph_call_records_get_direct_routing_calls_with_from_date_time_with_to_date_time_request_builder |
71 | 93 |
|
72 | | - return call_records_get_direct_routing_calls_with_from_date_time_with_to_date_time_request_builder.CallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTimeRequestBuilder(self.request_adapter, self.path_parameters, from_date_time, to_date_time) |
| 94 | + return microsoft_graph_call_records_get_direct_routing_calls_with_from_date_time_with_to_date_time_request_builder.MicrosoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTimeRequestBuilder(self.request_adapter, self.path_parameters, from_date_time, to_date_time) |
73 | 95 |
|
74 | | - def call_records_get_pstn_calls_with_from_date_time_with_to_date_time(self,from_date_time: Optional[datetime] = None, to_date_time: Optional[datetime] = None) -> call_records_get_pstn_calls_with_from_date_time_with_to_date_time_request_builder.CallRecordsGetPstnCallsWithFromDateTimeWithToDateTimeRequestBuilder: |
| 96 | + def microsoft_graph_call_records_get_pstn_calls_with_from_date_time_with_to_date_time(self,from_date_time: Optional[datetime] = None, to_date_time: Optional[datetime] = None) -> microsoft_graph_call_records_get_pstn_calls_with_from_date_time_with_to_date_time_request_builder.MicrosoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithToDateTimeRequestBuilder: |
75 | 97 | """ |
76 | 98 | Provides operations to call the getPstnCalls method. |
77 | 99 | Args: |
78 | 100 | fromDateTime: Usage: fromDateTime={fromDateTime} |
79 | 101 | toDateTime: Usage: toDateTime={toDateTime} |
80 | | - Returns: call_records_get_pstn_calls_with_from_date_time_with_to_date_time_request_builder.CallRecordsGetPstnCallsWithFromDateTimeWithToDateTimeRequestBuilder |
| 102 | + Returns: microsoft_graph_call_records_get_pstn_calls_with_from_date_time_with_to_date_time_request_builder.MicrosoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithToDateTimeRequestBuilder |
81 | 103 | """ |
82 | 104 | if from_date_time is None: |
83 | 105 | raise Exception("from_date_time cannot be undefined") |
84 | 106 | if to_date_time is None: |
85 | 107 | raise Exception("to_date_time cannot be undefined") |
86 | | - from .call_records_get_pstn_calls_with_from_date_time_with_to_date_time import call_records_get_pstn_calls_with_from_date_time_with_to_date_time_request_builder |
| 108 | + from .microsoft_graph_call_records_get_pstn_calls_with_from_date_time_with_to_date_time import microsoft_graph_call_records_get_pstn_calls_with_from_date_time_with_to_date_time_request_builder |
87 | 109 |
|
88 | | - return call_records_get_pstn_calls_with_from_date_time_with_to_date_time_request_builder.CallRecordsGetPstnCallsWithFromDateTimeWithToDateTimeRequestBuilder(self.request_adapter, self.path_parameters, from_date_time, to_date_time) |
89 | | - |
90 | | - async def get(self,request_configuration: Optional[CallRecordsRequestBuilderGetRequestConfiguration] = None) -> Optional[call_record_collection_response.CallRecordCollectionResponse]: |
91 | | - """ |
92 | | - Get callRecords from communications |
93 | | - Args: |
94 | | - requestConfiguration: Configuration for the request such as headers, query parameters, and middleware options. |
95 | | - Returns: Optional[call_record_collection_response.CallRecordCollectionResponse] |
96 | | - """ |
97 | | - request_info = self.to_get_request_information( |
98 | | - request_configuration |
99 | | - ) |
100 | | - from ...models.o_data_errors import o_data_error |
101 | | - |
102 | | - error_mapping: Dict[str, ParsableFactory] = { |
103 | | - "4XX": o_data_error.ODataError, |
104 | | - "5XX": o_data_error.ODataError, |
105 | | - } |
106 | | - if not self.request_adapter: |
107 | | - raise Exception("Http core is null") |
108 | | - from ...models.call_records import call_record_collection_response |
109 | | - |
110 | | - return await self.request_adapter.send_async(request_info, call_record_collection_response.CallRecordCollectionResponse, error_mapping) |
| 110 | + return microsoft_graph_call_records_get_pstn_calls_with_from_date_time_with_to_date_time_request_builder.MicrosoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithToDateTimeRequestBuilder(self.request_adapter, self.path_parameters, from_date_time, to_date_time) |
111 | 111 |
|
112 | 112 | async def post(self,body: Optional[call_record.CallRecord] = None, request_configuration: Optional[CallRecordsRequestBuilderPostRequestConfiguration] = None) -> Optional[call_record.CallRecord]: |
113 | 113 | """ |
|
0 commit comments