Contains all the Google Cloud Storage C++ client APIs.
Classes AlwaysRetryIdempotencyPolicyA IdempotencyPolicy that always retries all requests.
BucketAccessControlWraps the bucketAccessControl resource in Google Cloud Storage.
BucketAccessControlPatchBuilderPrepares a patch for a BucketAccessControl resource.
BucketMetadataRepresents a Google Cloud Storage Bucket Metadata object.
BucketMetadataPatchBuilderPrepares a patch for the Bucket resource.
ChannelOptionsDescribes the configuration for low-level connection features.
ClientThe Google Cloud Storage (GCS) Client.
ClientOptionsDescribes the configuration for a storage::Client
object.
An option to inject custom headers into the request.
HashMismatchErrorReport checksum mismatches as exceptions.
HmacKeyMetadataRepresents the metadata for a Google Cloud Storage HmacKeyResource.
IdempotencyPolicyDefine the interface for the idempotency policy.
LifecycleRuleDefines objects to read, create, and modify Object Lifecycle Rules.
LimitedErrorCountRetryPolicyA retry policy based on counting errors.
LimitedTimeRetryPolicyA retry policy based on elapsed time.
MaxStreamsA parameter type indicating the maximum number of streams to ParallelUploadFile
.
A parameter type indicating the minimum stream size to ParallelUploadFile
.
Represents a google::type::Expr.
NativeIamBindingRepresents a Binding which associates a member
with a particular role
which can be used for Identity and Access management for Cloud Platform Resources.
Represent the result of a GetIamPolicy or SetIamPolicy request.
NotificationMetadataRepresents the metadata for a Google Cloud Storage Notification resource.
ObjectAccessControlWraps the objectAccessControl resource in Google Cloud Storage.
ObjectAccessControlPatchBuilderPrepares a patch for an ObjectAccessControl resource.
ObjectMetadataRepresents the metadata for a Google Cloud Storage Object.
ObjectMetadataPatchBuilderPrepares a patch for the Bucket resource.
ObjectReadStreamDefines a std::basic_istream<char>
to read from a GCS Object.
Complete long running object rewrite operations.
ObjectWriteStreamDefines a std::basic_ostream<char>
to write to a GCS object.
Define a condition for a policy document.
RetryPolicyThe base class for the Storage library retry policies.
ServiceAccountRepresents the metadata for a Google Cloud Storage service account.
StrictIdempotencyPolicyA IdempotencyPolicy that only retries strictly idempotent requests.
Structs AcceptEncodingModify the accepted encodings.
AddExtensionFieldOptionAdd a extension header to a POST policy.
Add a extension header to a signed URL.
AddQueryParameterOptionAdd a extension header to a signed URL.
AutoFinalizeControl whether upload streams auto-finalize on destruction.
BackoffPolicyOptionSet the backoff policy for a GCS client.
BucketAutoclassThe autoclass configuration for a Bucket.
BucketBillingThe billing configuration for a Bucket.
BucketBoundHostnameUse domain-named bucket in a V4 signed URL.
BucketCustomPlacementConfigConfiguration for Custom Dual Regions.
BucketEncryptionDescribes the default customer managed encryption key for a bucket.
BucketHierarchicalNamespaceConfiguration for a bucket's hierarchical namespace feature.
BucketIamConfigurationThe IAM configuration for a Bucket.
BucketLifecycleThe Object Lifecycle configuration for a Bucket.
BucketLoggingThe Logging configuration for a Bucket.
BucketObjectRetentionThe soft delete policy for a bucket.
BucketRetentionPolicyThe retention policy for a bucket.
BucketSoftDeletePolicyThe soft delete policy for a bucket.
BucketVersioningThe versioning configuration for a Bucket.
BucketWebsiteThe website configuration for a Bucket.
ComposeSourceObjectDefines one of the source objects for a compose operation.
ConnectionPoolSizeOptionSet the maximum connection pool size.
ContentEncodingSets the contentEncoding option for object uploads.
ContentTypeSet the MIME content type of an object.
CopySourceAclApplicable only for buckets the don't have uniform bucket-level access enabled.
CorsEntryAn entry in the CORS list.
Crc32cChecksumValueProvide a pre-computed CRC32C checksum value.
CustomerEncryptionA simple representation for the customerEncryption field.
DeletedIncluded deleted HMAC keys in list requests.
DelimiterReturns results in a directory-like mode.
DestinationKmsKeyNameConfigure the Customer-Managed Encryption Key (CMEK) for an rewrite.
DestinationPredefinedAclSet the ACL to a predefined value when copying Objects.
DisableCrc32cChecksumDisable CRC32C checksum computations.
DisableMD5HashDisable or enable MD5 Hashing computations.
DownloadBufferSizeOptionControl the formatted I/O download buffer.
DownloadStallMinimumRateOptionThe minimum accepted bytes/second download rate.
DownloadStallTimeoutOptionSets the download stall timeout.
EnableCurlSigpipeHandlerOptionDisables automatic OpenSSL sigpipe handler.
EnableCurlSslLockingOptionDisables automatic OpenSSL locking.
EnableObjectRetentionSet this parameter to true
to create buckets with object retention enabled.
An optional parameter to set the Customer-Supplied Encryption key.
EncryptionKeyDataA simple wrapper for the encryption key attributes.
EndOffsetFilter results to objects whose names are lexicographically before EndOffset.
ExpirationTimeDefine the expiration time for a signed URL.
FieldsDefines the fields
query parameter.
Set the version of an object to operate on.
IamEndpointOptionConfigure the IAM endpoint for the GCS client library.
IdempotencyPolicyOptionSet the idempotency policy for a GCS client.
IfGenerationMatchA pre-condition: the request succeeds only if the object generation matches.
IfGenerationNotMatchA pre-condition: the request succeeds unless the object generation matches.
IfMatchEtagA pre-condition: apply this operation only if the HTTP Entity Tag matches.
IfMetagenerationMatchA pre-condition: the request succeeds if the metadata generation matches.
IfMetagenerationNotMatchA pre-condition: the request succeeds unless the metadata generation matches.
IfNoneMatchEtagA pre-condition: apply this operation only if the HTTP Entity Tag does not match.
IfSourceGenerationMatchA pre-condition: the request succeeds if the source object generation matches.
IfSourceGenerationNotMatchA pre-condition: the request succeeds unless the source object generation matches.
IfSourceMetagenerationMatchA pre-condition: the request succeeds if the source object metadata generation matches.
IfSourceMetagenerationNotMatchA pre-condition: the request succeeds unless the source object metadata generation matches.
IncludeFoldersAsPrefixesSet this parameter to true
to include folders in the Client::ListObjectsAndPrefixes()
calls.
If true
, objects that end in exactly one instance of delimiter have their metadata included in items[]
in addition to the relevant part of the object name appearing in prefixes[]
.
Configure the Customer-Managed Encryption Key (CMEK) for an upload.
LifecycleRuleActionImplement a wrapper for Lifecycle Rules actions.
LifecycleRuleConditionImplement a wrapper for Lifecycle Conditions.
MatchGlobRestrict list operations to entries matching a glob pattern.
MaxBytesRewrittenPerCallLimit the number of bytes rewritten in a Objects: rewrite
step.
Control the maximum socket receive buffer.
MaximumCurlSocketSendSizeOptionControl the maximum socket send buffer.
MaximumSimpleUploadSizeOptionDefines the threshold to switch from simple to resumable uploads for files.
MaxResultsLimit the number of results per page when listing Buckets and Objects.
MD5HashValueProvide a pre-computed MD5 hash value.
Oauth2CredentialsOptionConfigure oauth2::Credentials
for the GCS client library.
Specifies the retention parameters of an object.
OverrideDefaultProjectOverride the default project.
OverrideUnlockedRetentionSet this parameter to true
to override the current object's retention.
A simple wrapper for the owner
field in object and bucket metadata.
Define a policy document.
PolicyDocumentResultDefine a policy document result.
PolicyDocumentV4Define a policy document V4.
PolicyDocumentV4ResultDefine a policy document result V4.
PredefinedAclSet the ACL to predefined values when creating Buckets or Objects.
PredefinedDefaultObjectAclSet the default object ACL to a predefined value in a Bucket.
PrefixRestrict list operations to entries starting with this value.
ProjectIdOptionSet the Google Cloud Platform project id.
ProjectionControls what metadata fields are included in the response.
ProjectTeamRepresents the projectTeam field in *AccessControls.
QuotaUserSets the user for this operation for quota enforcement purposes.
ReadFromOffsetDownload all the data from the GCS object starting at the given offset.
ReadLastRead last N bytes from the GCS object.
ReadRangeRequest only a portion of the GCS object in a ReadObject operation.
ReadRangeData RequestedPolicyVersionControls the IAM policy version returned by IAM queries.
RestEndpointOptionConfigure the REST endpoint for the GCS client library.
RetryPolicyOptionSet the retry policy for a GCS client.
RewriteProgressRepresents the status of a rewrite operation.
SchemeUse the specified scheme (e.g. "http") in a V4 signed URL.
ServiceAccountFilterOnly list HMAC keys belonging to a specific Service Account.
SignedUrlDurationDefine the duration for a V4 signed URL.
SignedUrlTimestampDefine the timestamp duration for a V4 signed URL.
SigningAccountSpecify the service account used to sign a blob.
SigningAccountDelegatesSpecify the sequence of delegates used to sign a blob.
SoftDeletedSet this parameter to true
to include soft-deleted object in Client::ListObjects()
and Client::GetObjectMetadata()
calls.
An optional parameter to set the Customer-Supplied Encryption key for rewrite source object.
SourceGenerationSet the generation for the source object in copy operations.
StartOffsetFilter results to objects whose names are lexicographically equal to or after StartOffset.
SubResourceOptionSpecify a sub-resource in a signed URL.
TransferStallMinimumRateOptionThe minimum accepted bytes/second transfer rate.
TransferStallTimeoutOptionSets the transfer stall timeout.
UniformBucketLevelAccessConfigure if only the IAM policies are used for access control.
UploadBufferSizeSet the buffer size for a stream created in Client::WriteObject()
.
Control the formatted I/O upload buffer.
UploadContentLengthProvide an expected final length of an uploaded object.
UploadFromOffsetUpload the local file to GCS server starting at the given offset.
UploadLimitThe maximum length of the local file to upload to GCS server.
UseResumableUploadSessionRequest a resumable upload, restoring a previous session if necessary.
UserIpSets the user IP on an operation for quota enforcement purposes.
UserProjectSet the project used for billing in "requester pays" Buckets.
VersionsControl if all versions of an object should be included when listing objects.
VirtualHostnameIndicate that the bucket should be a part of hostname in the URL.
WithObjectMetadataA request option to define the object metadata attributes.
Enums AutoFinalizeConfig Functions PublicAccessPreventionEnforced()Public Access Prevention helper functions
Returns Type Descriptionstd::string
PublicAccessPreventionInherited()
Public Access Prevention helper functions
Returns Type Descriptionstd::string
PublicAccessPreventionUnspecified()
Public Access Prevention helper functions
Returns Type Descriptionstd::string
TEAM_EDITORS()
Well-known values for the project_team().team field..
The following functions are handy to avoid common typos in the team names.
We use functions instead of enums because enums are not backwards compatible and are brittle to changes in the server-side.
Returns Type Descriptionstd::string
TEAM_OWNERS()
Well-known values for the project_team().team field..
The following functions are handy to avoid common typos in the team names.
We use functions instead of enums because enums are not backwards compatible and are brittle to changes in the server-side.
Returns Type Descriptionstd::string
TEAM_VIEWERS()
Well-known values for the project_team().team field..
The following functions are handy to avoid common typos in the team names.
We use functions instead of enums because enums are not backwards compatible and are brittle to changes in the server-side.
Returns Type Descriptionstd::string
AutoFinalizeEnabled()
Configure a stream to automatically finalize an upload on destruction.
Returns Type DescriptionAutoFinalize
AutoFinalizeDisabled()
Configure a stream to leave uploads pending (not finalized) on destruction.
Returns Type DescriptionAutoFinalize
RpoDefault()
A helper function to avoid typos in the RPO configuration.
Returns Type Descriptionstd::string
RpoAsyncTurbo()
A helper function to avoid typos in the RPO configuration.
Returns Type Descriptionstd::string
CreateRandomPrefixName(std::string const &)
Create a random prefix for object names.
This is useful for operations which require a unique prefix for temporary files.
This is a helper function and it doesn't communicate with GCS, so there is a very small chance that names generated this way aren't unique. The chance should be small enough to fit any error budget.
Given the same prefix
, the randomly generated names will have the same length.
prefix
std::string const &
the prefix of the prefix to be created.
Returns Type Descriptionstd::string
the random prefix name
DeleteByPrefix(Client &, std::string const &, std::string const &, Options &&...)Delete objects whose names match a given prefix.
Parameters Name Descriptionclient
Client &
the client on which to perform the operation.
bucket_name
std::string const &
the name of the bucket that will contain the object.
prefix
std::string const &
the prefix of the objects to be deleted.
options
Options &&...
a list of optional query parameters and/or request headers. Valid types for this operation include QuotaUser
, UserIp
, UserProject
and Versions
.
typename...
Status
ComposeMany(Client &, std::string const &, std::vector< ComposeSourceObject >, std::string const &, std::string, bool, Options &&...)
Compose existing objects into a new object in the same bucket.
Contrary to Client::ComposeObject
, this function doesn't have a limit on the number of source objects.
The implementation may need to perform multiple Client::ComposeObject
calls to create intermediate, temporary objects which are then further composed. Due to the lack of atomicity of this series of operations, stray temporary objects might be left over if there are transient failures. In order to allow the user to easily control for such situations, the user is expected to provide a unique prefix
parameter, which will become the prefix of all the temporary objects created by this function. Once this function finishes, the user may safely remove all objects with the provided prefix (e.g. via DeleteByPrefix()). We recommend using CreateRandomPrefixName() for selecting a random prefix within a bucket.
This operation is not idempotent. While each request performed by this function is retried based on the client policies, the operation itself stops on the first request that fails.
Example namespace gcs = ::google::cloud::storage;
using ::google::cloud::StatusOr;
[](gcs::Client client, std::string const& bucket_name,
std::string const& destination_object_name,
std::vector<gcs::ComposeSourceObject> const& compose_objects) {
std::string prefix = gcs::CreateRandomPrefixName(".tmpfiles");
StatusOr<gcs::ObjectMetadata> composed_object =
ComposeMany(client, bucket_name, compose_objects, prefix,
destination_object_name, false);
// If this is an effect of some transient unavailability, stray temporary
// might be left over. You can use `DeleteByPrefix()` with `prefix` as
// argument to delete them.
if (!composed_object) throw std::move(composed_object).status();
std::cout << "Composed new object " << composed_object->name()
<< " in bucket " << composed_object->bucket()
<< "\nFull metadata: " << *composed_object << "\n";
}
Parameters Name Description client
Client &
the client on which to perform the operations needed by this function
bucket_name
std::string const &
the name of the bucket used for source object and destination object.
source_objects
std::vector< ComposeSourceObject >
objects used to compose destination_object_name
.
prefix
std::string const &
prefix for temporary objects created by this function; there should not be any objects with this prefix; in order to avoid race conditions, this function will create an object with this name
destination_object_name
std::string
the composed object name.
ignore_cleanup_failures
bool
if the composition succeeds but cleanup of temporary objects fails, depending on this parameter either a success will be returned (true
) or the relevant cleanup error (false
)
options
Options &&...
a list of optional query parameters and/or request headers. Valid types for this operation include DestinationPredefinedAcl
, EncryptionKey
, IfGenerationMatch
, IfMetagenerationMatch
KmsKeyName
, QuotaUser
, UserIp
, UserProject
and WithObjectMetadata
.
typename...
StatusOr< ObjectMetadata >
MakeGrpcClient(Options)
Create a google::cloud::storage::Client
object configured to use gRPC.
void GrpcReadWrite(std::string const& bucket_name) {
namespace gcs = ::google::cloud::storage;
auto constexpr kText = R"""(Hello World!)""";
auto client = gcs::MakeGrpcClient();
auto object = client.InsertObject(bucket_name, "lorem.txt", kText);
if (!object) throw std::move(object).status();
auto input = client.ReadObject(bucket_name, "lorem.txt",
gcs::Generation(object->generation()));
std::string const actual(std::istreambuf_iterator<char>{input}, {});
if (input.bad()) throw google::cloud::Status(input.status());
std::cout << "The contents read back are:\n"
<< actual
<< "\nThe received checksums are: " << input.received_hash()
<< "\nThe computed checksums are: " << input.computed_hash()
<< "\nThe original hashes are: crc32c=" << object->crc32c()
<< ",md5=" << object->md5_hash() << "\n";
}
Parameter Name Description opts
Options
the configuration parameters for the Client.
Returns Type Descriptiongoogle::cloud::storage::Client
ComputeMD5Hash(absl::string_view)
Compute the MD5 Hash of a buffer in the format preferred by GCS.
Parameter Name Descriptionpayload
absl::string_view
std::string
ComputeMD5Hash(std::string const &)
Compute the MD5 Hash of a buffer in the format preferred by GCS.
Parameter Name Descriptionpayload
std::string const &
std::string
ComputeMD5Hash(char const *)
Compute the MD5 Hash of a buffer in the format preferred by GCS.
Parameter Name Descriptionpayload
char const *
std::string
EnableMD5Hash()
Enable MD5 hashes in upload and download operations.
Use this function where the option DisableMD5Hash
is expected to enable MD5 hashes.
DisableMD5Hash
ComputeCrc32cChecksum(absl::string_view)
Compute the CRC32C checksum of a buffer in the format preferred by GCS.
Parameter Name Descriptionpayload
absl::string_view
std::string
ComputeCrc32cChecksum(std::string const &)
Compute the CRC32C checksum of a buffer in the format preferred by GCS.
Parameter Name Descriptionpayload
std::string const &
std::string
ComputeCrc32cChecksum(char const *)
Compute the CRC32C checksum of a buffer in the format preferred by GCS.
Parameter Name Descriptionpayload
char const *
std::string
ObjectRetentionUnlocked()
A helper function to avoid typos in the ObjectRetention configuration.
Returns Type Descriptionstd::string
ObjectRetentionLocked()
A helper function to avoid typos in the ObjectRetention configuration.
Returns Type Descriptionstd::string
ParallelUploadFile(Client, std::string, std::string, std::string, std::string, bool, Options &&...)
Perform a parallel upload of a given file.
You can affect how many shards will be created by using the MaxStreams
and MinStreamSize
options.
This operation is not idempotent. While each request performed by this function is retried based on the client policies, the operation itself stops on the first request that fails.
Example namespace gcs = ::google::cloud::storage;
using ::google::cloud::StatusOr;
[](gcs::Client client, std::string const& file_name,
std::string const& bucket_name, std::string const& object_name) {
// Pick a unique random prefix for the temporary objects created by the
// parallel upload.
auto prefix = gcs::CreateRandomPrefixName("");
auto metadata = gcs::ParallelUploadFile(
std::move(client), file_name, bucket_name, object_name, prefix, false);
if (!metadata) throw std::move(metadata).status();
std::cout << "Uploaded " << file_name << " to object " << metadata->name()
<< " in bucket " << metadata->bucket()
<< "\nFull metadata: " << *metadata << "\n";
}
Parameters Name Description client
Client
the client on which to perform the operation.
file_name
std::string
the path to the file to be uploaded
bucket_name
std::string
the name of the bucket that will contain the object.
object_name
std::string
the uploaded object name.
prefix
std::string
the prefix with which temporary objects will be created.
ignore_cleanup_failures
bool
treat failures to cleanup the temporary objects as not fatal.
options
Options &&...
a list of optional query parameters and/or request headers. Valid types for this operation include DestinationPredefinedAcl
, EncryptionKey
, IfGenerationMatch
, IfMetagenerationMatch
, KmsKeyName
, MaxStreams
,
MinStreamSize,
QuotaUser,
UserIp,
UserProject,
WithObjectMetadata,
UseResumableUploadSession`.
typename...
StatusOr< ObjectMetadata >
the metadata of the object created by the upload.
FormatDateForForm(PolicyDocumentV4Result const &)Format the current date in the format expected by a POST form.
Parameter Name Description
PolicyDocumentV4Result const &
std::string
AddExtensionHeader(std::string, std::string) Parameters Name Description header
std::string
value
std::string
AddExtensionHeaderOption
WithGeneration(std::uint64_t) Parameter Name Description generation
std::uint64_t
AddQueryParameterOption
WithGenerationMarker(std::uint64_t) Parameter Name Description generation
std::uint64_t
AddQueryParameterOption
WithUserProject(std::string) Parameter Name Description user_project
std::string
AddQueryParameterOption
WithMarker(std::string) Parameter Name Description marker
std::string
AddQueryParameterOption
WithResponseContentDisposition(std::string) Parameter Name Description disposition
std::string
AddQueryParameterOption
WithResponseContentType(std::string const &) Parameter Name Description type
std::string const &
AddQueryParameterOption
WithAcl() Returns Type Description SubResourceOption
WithBilling() Returns Type Description SubResourceOption
WithCompose() Returns Type Description SubResourceOption
WithCors() Returns Type Description SubResourceOption
WithEncryption() Returns Type Description SubResourceOption
WithEncryptionConfig() Returns Type Description SubResourceOption
WithLifecycle() Returns Type Description SubResourceOption
WithLocation() Returns Type Description SubResourceOption
WithLogging() Returns Type Description SubResourceOption
WithStorageClass() Returns Type Description SubResourceOption
WithTagging() Returns Type Description SubResourceOption
AddExtensionField(std::string, std::string) Parameters Name Description field
std::string
value
std::string
AddExtensionFieldOption
RestoreResumableUploadSession(std::string)
Create a UseResumableUploadSession option that restores previous sessions.
Parameter Name Descriptionsession_id
std::string
UseResumableUploadSession
NewResumableUploadSession()
Create a UseResumableUploadSession option that requests new sessions.
Returns Type DescriptionUseResumableUploadSession
version_major()
Returns the Google Cloud Storage C++ Client major version.
Returns Type Descriptionint constexpr
version_minor()
Returns the Google Cloud Storage C++ Client minor version.
Returns Type Descriptionint constexpr
version_patch()
Returns the Google Cloud Storage C++ Client patch version.
Returns Type Descriptionint constexpr
version_pre_release()
Returns the Google Cloud Storage C++ Client pre-release version.
Returns Type Descriptionchar const *
version()
Returns a single integer representing the Major/Minor/Patch version.
Returns Type Descriptionint constexpr
version_string()
Returns the version as a string, in MAJOR.MINOR.PATCH[-PRE][+gitrev] format.
Returns Type Descriptionstd::string
x_goog_api_client()
Returns the value for x-goog-api-client
header.
std::string
EncryptionDataFromBinaryKey(std::string const &)
Formats a (potentially binary) encryption key in the format required by the Google Cloud Storage API.
Parameter Name Descriptionkey
std::string const &
a binary key, must have exactly 32 bytes.
Returns Type DescriptionEncryptionKeyData
EncryptionDataFromBase64Key(std::string const &)
Formats an encryption key in base64 format to the data structure required by the Google Cloud Storage API.
Parameter Name Descriptionkey
std::string const &
a base64-encoded key, must have exactly 32 bytes when decoded.
Returns Type DescriptionEncryptionKeyData
CreateKeyFromGenerator(Generator &)
Creates an encryption key parameter from a pseudo-random number generator.
Example // Create a pseudo-random number generator (PRNG), this is included for
// demonstration purposes only. You should consult your security team about
// best practices to initialize PRNG. In particular, you should verify that
// the C++ library and operating system provide enough entropy to meet the
// security policies in your organization.
// Use the Mersenne-Twister Engine in this example:
// https://en.cppreference.com/w/cpp/numeric/random/mersenne_twister_engine
// Any C++ PRNG can be used below, the choice is arbitrary.
using GeneratorType = std::mt19937_64;
// Create the default random device to fetch entropy.
std::random_device rd;
// Compute how much entropy we need to initialize the GeneratorType:
constexpr auto kRequiredEntropyWords =
GeneratorType::state_size *
(GeneratorType::word_size / std::numeric_limits<unsigned int>::digits);
// Capture the entropy bits into a vector.
std::vector<std::uint64_t> entropy(kRequiredEntropyWords);
std::generate(entropy.begin(), entropy.end(), [&rd] { return rd(); });
// Create the PRNG with the fetched entropy.
std::seed_seq seed(entropy.begin(), entropy.end());
// initialized with enough entropy such that the encryption keys are not
// predictable. Note that the default constructor for all the generators in
// the C++ standard library produce predictable keys.
std::mt19937_64 gen(seed);
namespace gcs = ::google::cloud::storage;
gcs::EncryptionKeyData data = gcs::CreateKeyFromGenerator(gen);
std::cout << "Base64 encoded key = " << data.key << "\n"
<< "Base64 encoded SHA256 of key = " << data.sha256 << "\n";
See Also
https://en.cppreference.com/w/cpp/numeric/random for a general overview of C++ pseudo-random number support.
See Alsohttps://en.cppreference.com/w/cpp/numeric/random/UniformRandomBitGenerator for a more detailed overview of the requirements for generators.
Parameters Name Descriptiongen
Generator &
the pseudo-random number generator.
typename Generator
the pseudo-random number generator type, it must meet the UniformRandomBitGenerator
requirements.
EncryptionKeyData
AcceptEncodingGzip() Returns Type Description AcceptEncoding
AcceptEncodingIdentity() Returns Type Description AcceptEncoding
Type Aliases BucketPolicyOnly
Alias Of: UniformBucketLevelAccess
Alias Of: std::multimap< std::string, std::string >
Represents the headers returned in a streaming upload or download operation.
ListBucketsReaderAlias Of: google::cloud::internal::PaginationRange< BucketMetadata >
Alias Of: ListBucketsReader::iterator
Alias Of: google::cloud::internal::PaginationRange< HmacKeyMetadata >
A range to paginate over the HmacKeys for a project.
ListHmacKeysIteratorAlias Of: ListHmacKeysReader::iterator
Alias Of: absl::variant< ObjectMetadata, std::string >
Alias Of: google::cloud::internal::PaginationRange< ObjectOrPrefix >
Alias Of: ListObjectsAndPrefixesReader::iterator
Alias Of: google::cloud::internal::PaginationRange< ObjectMetadata >
Alias Of: ListObjectsReader::iterator
Alias Of: ::google::cloud::OptionList< RestEndpointOption, IamEndpointOption, Oauth2CredentialsOption, ProjectIdOption, ProjectIdOption, ConnectionPoolSizeOption, DownloadBufferSizeOption, UploadBufferSizeOption, EnableCurlSslLockingOption, EnableCurlSigpipeHandlerOption, MaximumCurlSocketRecvSizeOption, MaximumCurlSocketSendSizeOption, TransferStallTimeoutOption, RetryPolicyOption, BackoffPolicyOption, IdempotencyPolicyOption, CARootsFilePathOption, storage_experimental::HttpVersionOption >
The complete list of options accepted by storage::Client
.
Alias Of: ::google::cloud::internal::BackoffPolicy
The backoff policy base class.
ExponentialBackoffPolicyAlias Of: ::google::cloud::internal::ExponentialBackoffPolicy
Implement truncated exponential backoff with randomization.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4