File tree Expand file tree Collapse file tree 3 files changed +28
-0
lines changed Expand file tree Collapse file tree 3 files changed +28
-0
lines changed Original file line number Diff line number Diff line change
1
+ Client Options
2
+ ==========================
3
+
4
+ .. automodule :: google.api_core.client_options
5
+ :members:
6
+ :show-inheritance:
Original file line number Diff line number Diff line change 9
9
.. toctree ::
10
10
auth
11
11
client_info
12
+ client_options
12
13
exceptions
13
14
futures
14
15
helpers
Original file line number Diff line number Diff line change 16
16
17
17
Client options provide a consistent interface for user options to be defined
18
18
across clients.
19
+
20
+ You can pass a client options object to a client.
21
+
22
+ .. code-block:: python
23
+
24
+ from google.api_core.client_options import ClientOptions
25
+ from google.cloud.vision_v1 import ImageAnnotatorClient
26
+
27
+ options = ClientOptions(api_endpoint="foo.googleapis.com")
28
+
29
+ client = ImageAnnotatorClient(client_options=options)
30
+
31
+ You can also pass a dictionary.
32
+
33
+ .. code-block:: python
34
+
35
+ from google.cloud.vision_v1 import ImageAnnotatorClient
36
+
37
+ client = ImageAnnotatorClient(client_options={"api_endpoint": "foo.googleapis.com"})
38
+
39
+
19
40
"""
20
41
21
42
You can’t perform that action at this time.
0 commit comments