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 99.. toctree ::
1010 auth
1111 client_info
12+ client_options
1213 exceptions
1314 futures
1415 helpers
Original file line number Diff line number Diff line change 1616
1717Client options provide a consistent interface for user options to be defined
1818across 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+
1940"""
2041
2142
You can’t perform that action at this time.
0 commit comments