Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.

Commit 8e1977d

Browse files
committed
- adds request adapter to set telemetry information
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
1 parent 57a4f6a commit 8e1977d

File tree

3 files changed

+23
-0
lines changed

3 files changed

+23
-0
lines changed

lib/microsoft_graph.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
require_relative 'microsoft_graph_service_client'
2+
require_relative 'microsoft_graph_request_adapter'
3+
module MicrosoftGraph
4+
end
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
require 'microsoft_graph_core'
2+
require 'microsoft_kiota_abstractions'
3+
require_relative 'version_information'
4+
module MicrosoftGraph
5+
class MicrosoftGraphRequestAdapter < MicrosoftGraphCore::GraphRequestAdapterBase
6+
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)
7+
options = MicrosoftGraphCore::GraphClientOptions.new
8+
options.graph_service_library_version = "v" + MicrosoftGraph::VersionInformation::VERSION
9+
super(authentication_provider, options, parse_node_factory, serialization_writer_factory, client)
10+
end
11+
end
12+
end
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
require_relative 'microsoft_graph_service_client_base'
2+
module MicrosoftGraph
3+
class MicrosoftGraphServiceClient < MicrosoftGraphServiceClientBase
4+
#TODO define sugar constructors acception the authentication provider
5+
#TODO shim me
6+
end
7+
end

0 commit comments

Comments
 (0)