Class: MicrosoftGraph::Communications::CallRecords::MicrosoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithToDateTime::MicrosoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithToDateTimeRequestBuilder
- Inherits:
-
MicrosoftKiotaAbstractions::BaseRequestBuilder
- Object
- MicrosoftKiotaAbstractions::BaseRequestBuilder
- MicrosoftGraph::Communications::CallRecords::MicrosoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithToDateTime::MicrosoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithToDateTimeRequestBuilder
- Defined in:
- lib/communications/call_records/microsoft_graph_call_records_get_pstn_calls_with_from_date_time_with_to_date_time/2ff200d164cec84baf5b570e76631427bf3cd3168578fa5068b156783f678b22.rb
Overview
Provides operations to call the getPstnCalls method.
Defined Under Namespace
Classes: MicrosoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithToDateTimeRequestBuilderGetQueryParameters
Instance Method Summary collapse
-
#get(request_configuration = nil) ⇒ Object
Invoke function getPstnCalls.
-
#initialize(path_parameters, request_adapter, from_date_time = nil, to_date_time = nil) ⇒ Object
constructor
Instantiates a new MicrosoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithToDateTimeRequestBuilder and sets the default values.
-
#to_get_request_information(request_configuration = nil) ⇒ Object
Invoke function getPstnCalls.
Constructor Details
#initialize(path_parameters, request_adapter, from_date_time = nil, to_date_time = nil) ⇒ Object
Instantiates a new MicrosoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithToDateTimeRequestBuilder and sets the default values.
25 26 27 |
# File 'lib/communications/call_records/microsoft_graph_call_records_get_pstn_calls_with_from_date_time_with_to_date_time/2ff200d164cec84baf5b570e76631427bf3cd3168578fa5068b156783f678b22.rb', line 25 def initialize(path_parameters, request_adapter, from_date_time=nil, to_date_time=nil) super(path_parameters, request_adapter, "{+baseurl}/communications/callRecords/microsoft.graph.callRecords.getPstnCalls(fromDateTime={fromDateTime},toDateTime={toDateTime}){?%24top,%24skip,%24search,%24filter,%24count}") end |
Instance Method Details
#get(request_configuration = nil) ⇒ Object
Invoke function getPstnCalls
33 34 35 36 37 38 39 40 41 |
# File 'lib/communications/call_records/microsoft_graph_call_records_get_pstn_calls_with_from_date_time_with_to_date_time/2ff200d164cec84baf5b570e76631427bf3cd3168578fa5068b156783f678b22.rb', line 33 def get(request_configuration=nil) request_info = self.to_get_request_information( request_configuration ) error_mapping = Hash.new error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Communications::CallRecords::MicrosoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithToDateTime::GetPstnCallsWithFromDateTimeWithToDateTimeResponse.create_from_discriminator_value(pn) }, error_mapping) end |
#to_get_request_information(request_configuration = nil) ⇒ Object
Invoke function getPstnCalls
47 48 49 50 51 52 53 54 55 56 57 58 59 |
# File 'lib/communications/call_records/microsoft_graph_call_records_get_pstn_calls_with_from_date_time_with_to_date_time/2ff200d164cec84baf5b570e76631427bf3cd3168578fa5068b156783f678b22.rb', line 47 def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() request_info.url_template = @url_template request_info.path_parameters = @path_parameters request_info.http_method = :GET request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.(request_configuration.) end return request_info end |