forked from microsoftgraph/msgraph-sdk-python-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathclient_factory.puml
46 lines (36 loc) · 879 Bytes
/
client_factory.puml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
@startuml ClientFactory
enum NationalClouds {
+GERMANY
+PUBLIC
+US_GOV
+CHINA
}
class HttpClientFactory {
-TIMEOUT: string
-SDK_VERSION: string
-BASE_URL: string
-pipeline: MiddlewarePipeline
+__init__(session: Session, cloud: NationalClouds)
+with_default_middleware(auth_provider: TokenCredential): Session
+with_user_middleware(middleware: [Middleware]): Session
}
class Session {}
class GraphClient {
-session: Session
+__init__(session: Session, credential: TokenCredential,
version: ApiVersion, cloud: NationalClouds)
+get()
+post()
+put()
+patch()
+delete()
}
package "middleware" {
class MiddlewarePipeline {}
}
HttpClientFactory --> NationalClouds
HttpClientFactory -right-> middleware
HttpClientFactory --> Session
GraphClient -right-> HttpClientFactory
note right of Session: HTTPClient imported from requests
@enduml