Google Cloud Storage C++ Client
1.42.0
A C++ Client Library for Google Cloud Storage
|
#include "google/cloud/storage/client_options.h"
#include "google/cloud/storage/oauth2/credentials.h"
#include "google/cloud/storage/version.h"
#include "google/cloud/optional.h"
#include "absl/types/optional.h"
#include <memory>
#include <set>
#include <string>
Go to the source code of this file.
Namespaces | |
google::cloud | |
google::cloud::storage | |
Contains all the Google Cloud Storage C++ client APIs. | |
google::cloud::storage::oauth2 | |
Functions | |
StatusOr< std::shared_ptr< Credentials > > | google::cloud::storage::oauth2::GoogleDefaultCredentials (ChannelOptions const &options={}) |
Produces a Credentials type based on the runtime environment. More... | |
Functions to manually create specific credential types. | |
std::shared_ptr< Credentials > | google::cloud::storage::oauth2::CreateAnonymousCredentials () |
Creates an AnonymousCredentials. More... | |
StatusOr< std::shared_ptr< Credentials > > | google::cloud::storage::oauth2::CreateAuthorizedUserCredentialsFromJsonFilePath (std::string const &path) |
Creates an AuthorizedUserCredentials from a JSON file at the specified path. More... | |
StatusOr< std::shared_ptr< Credentials > > | google::cloud::storage::oauth2::CreateAuthorizedUserCredentialsFromJsonContents (std::string const &contents, ChannelOptions const &options={}) |
Creates an AuthorizedUserCredentials from a JSON string. More... | |
Load service account key files. | |
StatusOr< std::shared_ptr< Credentials > > | google::cloud::storage::oauth2::CreateServiceAccountCredentialsFromFilePath (std::string const &path) |
Creates a ServiceAccountCredentials from a file at the specified path. More... | |
StatusOr< std::shared_ptr< Credentials > > | google::cloud::storage::oauth2::CreateServiceAccountCredentialsFromFilePath (std::string const &path, absl::optional< std::set< std::string >> scopes, absl::optional< std::string > subject) |
Creates a ServiceAccountCredentials from a file at the specified path. More... | |
StatusOr< std::shared_ptr< Credentials > > | google::cloud::storage::oauth2::CreateServiceAccountCredentialsFromJsonFilePath (std::string const &path) |
Creates a ServiceAccountCredentials from a JSON file at the specified path. More... | |
StatusOr< std::shared_ptr< Credentials > > | google::cloud::storage::oauth2::CreateServiceAccountCredentialsFromJsonFilePath (std::string const &path, absl::optional< std::set< std::string >> scopes, absl::optional< std::string > subject, ChannelOptions const &options={}) |
Creates a ServiceAccountCredentials from a JSON file at the specified path. More... | |
StatusOr< std::shared_ptr< Credentials > > | google::cloud::storage::oauth2::CreateServiceAccountCredentialsFromP12FilePath (std::string const &path) |
Creates a ServiceAccountCredentials from a P12 file at the specified path. More... | |
StatusOr< std::shared_ptr< Credentials > > | google::cloud::storage::oauth2::CreateServiceAccountCredentialsFromP12FilePath (std::string const &path, absl::optional< std::set< std::string >> scopes, absl::optional< std::string > subject, ChannelOptions const &options={}) |
Creates a ServiceAccountCredentials from a P12 file at the specified path. More... | |
StatusOr< std::shared_ptr< Credentials > > | google::cloud::storage::oauth2::CreateServiceAccountCredentialsFromDefaultPaths (ChannelOptions const &options={}) |
Produces a ServiceAccountCredentials type by trying to load the standard Application Default Credentials paths. More... | |
StatusOr< std::shared_ptr< Credentials > > | google::cloud::storage::oauth2::CreateServiceAccountCredentialsFromDefaultPaths (absl::optional< std::set< std::string >> scopes, absl::optional< std::string > subject, ChannelOptions const &options={}) |
Produces a ServiceAccountCredentials type by trying to load the standard Application Default Credentials paths. More... | |
StatusOr< std::shared_ptr< Credentials > > | google::cloud::storage::oauth2::CreateServiceAccountCredentialsFromJsonContents (std::string const &contents, ChannelOptions const &options={}) |
Creates a ServiceAccountCredentials from a JSON string. More... | |
StatusOr< std::shared_ptr< Credentials > > | google::cloud::storage::oauth2::CreateServiceAccountCredentialsFromJsonContents (std::string const &contents, absl::optional< std::set< std::string >> scopes, absl::optional< std::string > subject, ChannelOptions const &options={}) |
Creates a ServiceAccountCredentials from a JSON string. More... | |
std::shared_ptr< Credentials > | google::cloud::storage::oauth2::CreateComputeEngineCredentials () |
Creates a ComputeEngineCredentials for the VM's default service account. More... | |
std::shared_ptr< Credentials > | google::cloud::storage::oauth2::CreateComputeEngineCredentials (std::string const &service_account_email) |
Creates a ComputeEngineCredentials for the VM's specified service account. More... | |