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 |
`google.auth.credentials.Credentials`
(Optional) The OAuth2 Credentials to use for this client. If not passed (and if no |
_http |
`requests.Session`
(Optional) HTTP object to make requests. Can be any object that defines |
client_info |
`google.api_core.client_info.ClientInfo`
The client info used to send a user-agent string along with API requests. If |
client_options |
`google.api_core.client_options.ClientOptions` or `dict`
(Optional) Client options used to set user options on the client. API Endpoint should be set through client_options. |
Inheritance
builtins.object > google.cloud.client._ClientFactoryMixin > google.cloud.client.Client > builtins.object > google.cloud.client._ClientProjectMixin > google.cloud.client.ClientWithProject > ClientMethods
config
config(config_name)
Factory constructor for config object.
Name | Description |
config_name |
str
The name of the config to be instantiated. |
Type | Description |
Config | The config object created. |