Google Cloud Storage C++ Client
1.42.0
A C++ Client Library for Google Cloud Storage
|
Describes the configuration for a storage::Client
object.
More...
#include <google/cloud/storage/client_options.h>
Static Public Member Functions | |
static StatusOr< ClientOptions > | CreateDefaultClientOptions () |
Creates a ClientOptions with Google Application Default Credentials. More... | |
static StatusOr< ClientOptions > | CreateDefaultClientOptions (ChannelOptions const &channel_options) |
Describes the configuration for a storage::Client
object.
By default, several environment variables are read to configure the client:
CLOUD_STORAGE_EMULATOR_ENDPOINT
: if set, use this http endpoint to make all http requests instead of the production GCS service. Also, if set, the CreateDefaultClientOptions()
function will use an AnonymousCredentials
object instead of loading Application Default Credentials.CLOUD_STORAGE_ENABLE_CLOG
: if set, enable std::clog as a backend for google::cloud::LogSink
.CLOUD_STORAGE_ENABLE_TRACING
: if set, this is the list of components that will have logging enabled, the component this is:
http
: trace all http request / responses.Definition at line 107 of file client_options.h.
|
inlineexplicit |
Constructor with channel options.
credentials | how to authenticate to the client. Using a nullptr for credentials results in undefined behavior. |
Definition at line 117 of file client_options.h.
google::cloud::storage::ClientOptions::ClientOptions | ( | std::shared_ptr< oauth2::Credentials > | credentials, |
ChannelOptions | channel_options | ||
) |
Constructor with channel options.
credentials | how to authenticate to the client. Using a nullptr for credentials results in undefined behavior. |
channel_options | the configuration for SSL certificate validation. |
|
inline |
Definition at line 297 of file client_options.h.
|
inline |
add_user_agent_prefix()
instead. Definition at line 308 of file client_options.h.
|
inline |
Definition at line 404 of file client_options.h.
|
inline |
Definition at line 407 of file client_options.h.
|
inline |
Definition at line 248 of file client_options.h.
|
static |
Creates a ClientOptions
with Google Application Default Credentials.
If Application Default Credentials could not be loaded, this returns a Status
with failure details. If the CLOUD_STORAGE_EMULATOR_ENDPOINT
environment variable is set, this function instead uses an AnonymousCredentials
to configure the client.
|
static |
|
inline |
Definition at line 150 of file client_options.h.
|
inline |
Definition at line 265 of file client_options.h.
|
inline |
Control the maximum amount of time allowed for "stalls" during a download.
A download that receives no data is considered "stalled". If the download remains stalled for more than the time set in this option then the download is aborted.
The default value is 2 minutes. Can be disabled by setting the value to 0.
Definition at line 422 of file client_options.h.
bool google::cloud::storage::ClientOptions::enable_http_tracing | ( | ) | const |
bool google::cloud::storage::ClientOptions::enable_raw_client_tracing | ( | ) | const |
|
inline |
Definition at line 356 of file client_options.h.
|
inline |
If true and using OpenSSL 1.0.2 the library configures the OpenSSL callbacks for locking.
Definition at line 336 of file client_options.h.
|
inline |
Definition at line 165 of file client_options.h.
|
inline |
Definition at line 180 of file client_options.h.
|
inline |
Definition at line 316 of file client_options.h.
|
inline |
Definition at line 373 of file client_options.h.
|
inline |
Definition at line 390 of file client_options.h.
|
inline |
Definition at line 234 of file client_options.h.
|
inline |
Definition at line 256 of file client_options.h.
|
inline |
Definition at line 157 of file client_options.h.
|
inline |
Definition at line 430 of file client_options.h.
ClientOptions& google::cloud::storage::ClientOptions::set_enable_http_tracing | ( | bool | enable | ) |
ClientOptions& google::cloud::storage::ClientOptions::set_enable_raw_client_tracing | ( | bool | enable | ) |
|
inline |
Definition at line 364 of file client_options.h.
|
inline |
If true and using OpenSSL 1.0.2 the library configures the OpenSSL callbacks for locking.
Definition at line 347 of file client_options.h.
|
inline |
Definition at line 172 of file client_options.h.
|
inline |
Definition at line 187 of file client_options.h.
|
inline |
Definition at line 324 of file client_options.h.
|
inline |
Definition at line 381 of file client_options.h.
|
inline |
Definition at line 398 of file client_options.h.
|
inline |
Definition at line 239 of file client_options.h.
|
inline |
Definition at line 202 of file client_options.h.
ClientOptions& google::cloud::storage::ClientOptions::SetDownloadBufferSize | ( | std::size_t | size | ) |
ClientOptions& google::cloud::storage::ClientOptions::SetUploadBufferSize | ( | std::size_t | size | ) |
|
inline |
Definition at line 278 of file client_options.h.
|
inline |
Definition at line 291 of file client_options.h.
|
inline |
Definition at line 195 of file client_options.h.