Client(
project=None, credentials=None, _http=None, client_info=None, client_options=None
)Client to bundle configuration needed for API requests.
Parameters |
|
|---|---|
| Name | Description |
project |
str
(Optional) The project which the client acts on behalf of. If not passed, falls back to the default inferred from the environment. |
credentials |
(Optional) The OAuth2 Credentials to use for this client. If not passed (and if no |
_http |
(Optional) HTTP object to make requests. Can be any object that defines |
client_info |
The client info used to send a user-agent string along with API requests. If |
client_options |
(Optional) Client options used to set user options on the client. API Endpoint should be set through client_options. |
Methods
config
config(config_name)Factory constructor for config object.
| Parameter | |
|---|---|
| Name | Description |
config_name |
str
The name of the config to be instantiated. |
| Returns | |
|---|---|
| Type | Description |
Config |
The config object created. |