Class: MicrosoftGraphCore::GraphRequestAdapterBase

Inherits:
MicrosoftKiotaFaraday::FaradayRequestAdapter
  • Object
show all
Defined in:
lib/microsoft_graph_core/graph_request_adapter_base.rb

Instance Method Summary collapse

Constructor Details

#initialize(authentication_provider, client_options = MicrosoftGraphCore::GraphClientOptions.new, parse_node_factory = MicrosoftKiotaAbstractions::ParseNodeFactoryRegistry.default_instance, serialization_writer_factory = MicrosoftKiotaAbstractions::SerializationWriterFactoryRegistry.default_instance, client = nil) ⇒ GraphRequestAdapterBase

Returns a new instance of GraphRequestAdapterBase.



7
8
9
10
11
12
13
14
15
# File 'lib/microsoft_graph_core/graph_request_adapter_base.rb', line 7

def initialize(authentication_provider, client_options=MicrosoftGraphCore::GraphClientOptions.new, parse_node_factory=MicrosoftKiotaAbstractions::ParseNodeFactoryRegistry.default_instance, serialization_writer_factory=MicrosoftKiotaAbstractions::SerializationWriterFactoryRegistry.default_instance, client = nil)
	if client_options.nil?
		client_options = MicrosoftGraphCore::GraphClientOptions.new
	end
	if client.nil?
		client = MicrosoftGraphCore::GraphClientFactory::get_default_http_client(nil, [client_options])
	end
	super(authentication_provider, parse_node_factory, serialization_writer_factory, client)
end