Google Cloud Storage C++ Client  1.42.0
A C++ Client Library for Google Cloud Storage
Namespaces | Classes | Typedefs | Enumerations | Functions
google::cloud::storage Namespace Reference

Contains all the Google Cloud Storage C++ client APIs. More...

Namespaces

 event_type
 Contains functions to return well-known notification event type names.
 
 oauth2
 
 payload_format
 Contains functions to return well-known notification payload format names.
 
 storage_class
 Contains functions to return well-known storage class names.
 

Classes

struct  AutoFinalize
 Control whether upload streams auto-finalize on destruction. More...
 
class  BucketAccessControl
 Wraps the bucketAccessControl resource in Google Cloud Storage. More...
 
class  BucketAccessControlPatchBuilder
 Prepares a patch for a BucketAccessControl resource. More...
 
struct  BucketBilling
 The billing configuration for a Bucket. More...
 
struct  CorsEntry
 An entry in the CORS list. More...
 
struct  UniformBucketLevelAccess
 Configure if only the IAM policies are used for access control. More...
 
struct  BucketIamConfiguration
 The IAM configuration for a Bucket. More...
 
struct  BucketLifecycle
 The Object Lifecycle configuration for a Bucket. More...
 
struct  BucketLogging
 The Logging configuration for a Bucket. More...
 
struct  BucketEncryption
 Describes the default customer managed encryption key for a bucket. More...
 
struct  BucketRetentionPolicy
 The retention policy for a bucket. More...
 
struct  BucketVersioning
 The versioning configuration for a Bucket. More...
 
struct  BucketWebsite
 The website configuration for a Bucket. More...
 
class  BucketMetadata
 Represents a Google Cloud Storage Bucket Metadata object. More...
 
class  BucketMetadataPatchBuilder
 Prepares a patch for the Bucket resource. More...
 
class  Client
 The Google Cloud Storage (GCS) Client. More...
 
class  ChannelOptions
 Describes the configuration for low-level connection features. More...
 
class  ClientOptions
 Describes the configuration for a storage::Client object. More...
 
struct  ReadRangeData
 
struct  ReadRange
 Request only a portion of the GCS object in a ReadObject operation. More...
 
struct  ReadFromOffset
 Download all the data from the GCS object starting at the given offset. More...
 
struct  ReadLast
 Read last N bytes from the GCS object. More...
 
class  HashMismatchError
 Report checksum mismatches as exceptions. More...
 
struct  MD5HashValue
 Provide a pre-computed MD5 hash value. More...
 
struct  DisableMD5Hash
 Disable or enable MD5 Hashing computations. More...
 
struct  Crc32cChecksumValue
 Provide a pre-computed CRC32C checksum value. More...
 
struct  DisableCrc32cChecksum
 Disable CRC32C checksum computations. More...
 
class  HmacKeyMetadata
 Represents the metadata for a Google Cloud Storage HmacKeyResource. More...
 
class  NativeExpression
 Represents a google::type::Expr. More...
 
class  NativeIamBinding
 Represents a Binding which associates a member with a particular role which can be used for Identity and Access management for Cloud Platform Resources. More...
 
class  NativeIamPolicy
 Represent the result of a GetIamPolicy or SetIamPolicy request. More...
 
class  IdempotencyPolicy
 Define the interface for the idempotency policy. More...
 
class  AlwaysRetryIdempotencyPolicy
 A IdempotencyPolicy that always retries all requests. More...
 
class  StrictIdempotencyPolicy
 A IdempotencyPolicy that only retries strictly idempotent requests. More...
 
struct  LifecycleRuleAction
 Implement a wrapper for Lifecycle Rules actions. More...
 
struct  LifecycleRuleCondition
 Implement a wrapper for Lifecycle Conditions. More...
 
class  LifecycleRule
 Defines objects to read, create, and modify Object Lifecycle Rules. More...
 
class  NotificationMetadata
 Represents the metadata for a Google Cloud Storage Notification resource. More...
 
class  ObjectAccessControl
 Wraps the objectAccessControl resource in Google Cloud Storage. More...
 
class  ObjectAccessControlPatchBuilder
 Prepares a patch for an ObjectAccessControl resource. More...
 
struct  CustomerEncryption
 A simple representation for the customerEncryption field. More...
 
struct  ComposeSourceObject
 Defines one of the source objects for a compose operation. More...
 
class  ObjectMetadata
 Represents the metadata for a Google Cloud Storage Object. More...
 
class  ObjectMetadataPatchBuilder
 Prepares a patch for the Bucket resource. More...
 
struct  WithObjectMetadata
 A request option to define the object metadata attributes. More...
 
class  ObjectReadStream
 Defines a std::basic_istream<char> to read from a GCS Object. More...
 
struct  RewriteProgress
 Represents the status of a rewrite operation. More...
 
class  ObjectRewriter
 Complete long running object rewrite operations. More...
 
class  ObjectWriteStream
 Defines a std::basic_ostream<char> to write to a GCS object. More...
 
struct  RestEndpointOption
 Configure the REST endpoint for the GCS client library. More...
 
struct  IamEndpointOption
 Configure the IAM endpoint for the GCS client library. More...
 
struct  Oauth2CredentialsOption
 Configure oauth2::Credentials for the GCS client library. More...
 
struct  ProjectIdOption
 Set the Google Cloud Platform project id. More...
 
struct  ConnectionPoolSizeOption
 Set the maximum connection pool size. More...
 
struct  DownloadBufferSizeOption
 Control the formatted I/O download buffer. More...
 
struct  UploadBufferSizeOption
 Control the formatted I/O upload buffer. More...
 
struct  MaximumSimpleUploadSizeOption
 Defines the threshold to switch from simple to resumable uploads for files. More...
 
struct  EnableCurlSslLockingOption
 Disables automatic OpenSSL locking. More...
 
struct  EnableCurlSigpipeHandlerOption
 Disables automatic OpenSSL sigpipe handler. More...
 
struct  MaximumCurlSocketRecvSizeOption
 Control the maximum socket receive buffer. More...
 
struct  MaximumCurlSocketSendSizeOption
 Control the maximum socket send buffer. More...
 
struct  TransferStallTimeoutOption
 Sets the transfer stall timeout. More...
 
struct  DownloadStallTimeoutOption
 Sets the download stall timeout. More...
 
struct  RetryPolicyOption
 Set the retry policy for a GCS client. More...
 
struct  BackoffPolicyOption
 Set the backoff policy for a GCS client. More...
 
struct  IdempotencyPolicyOption
 Set the idempotency policy for a GCS client. More...
 
struct  OverrideDefaultProject
 Override the default project. More...
 
class  MaxStreams
 A parameter type indicating the maximum number of streams to ParallelUploadFile. More...
 
class  MinStreamSize
 A parameter type indicating the minimum stream size to ParallelUploadFile. More...
 
class  PolicyDocumentCondition
 Define a condition for a policy document. More...
 
struct  PolicyDocument
 Define a policy document. More...
 
struct  PolicyDocumentV4
 Define a policy document V4. More...
 
struct  PolicyDocumentResult
 Define a policy document result. More...
 
struct  PolicyDocumentV4Result
 Define a policy document result V4. More...
 
class  ServiceAccount
 Represents the metadata for a Google Cloud Storage service account. More...
 
struct  ExpirationTime
 Define the expiration time for a signed URL. More...
 
struct  AddExtensionHeaderOption
 Add a extension header to a signed URL. More...
 
struct  AddQueryParameterOption
 Add a extension header to a signed URL. More...
 
struct  SubResourceOption
 Specify a sub-resource in a signed URL. More...
 
struct  SignedUrlTimestamp
 Define the timestamp duration for a V4 signed URL. More...
 
struct  SignedUrlDuration
 Define the duration for a V4 signed URL. More...
 
struct  SigningAccount
 Specify the service account used to sign a blob. More...
 
struct  SigningAccountDelegates
 Specify the sequence of delegates used to sign a blob. More...
 
struct  VirtualHostname
 Indicate that the bucket should be a part of hostname in the URL. More...
 
struct  BucketBoundHostname
 Use domain-named bucket in a V4 signed URL. More...
 
struct  Scheme
 Use the specified scheme (e.g. "http") in a V4 signed URL. More...
 
struct  AddExtensionFieldOption
 Add a extension header to a POST policy. More...
 
struct  UseResumableUploadSession
 Request a resumable upload, restoring a previous session if necessary. More...
 
struct  UploadContentLength
 Provide an expected final length of an uploaded object. More...
 
struct  UploadFromOffset
 Upload the local file to GCS server starting at the given offset. More...
 
struct  UploadLimit
 The maximum length of the local file to upload to GCS server. More...
 
struct  UploadBufferSize
 Set the buffer size for a stream created in Client::WriteObject(). More...
 
struct  ContentType
 Set the MIME content type of an object. More...
 
class  CustomHeader
 An option to inject custom headers into the request. More...
 
struct  IfMatchEtag
 A pre-condition: apply this operation only if the HTTP Entity Tag matches. More...
 
struct  IfNoneMatchEtag
 A pre-condition: apply this operation only if the HTTP Entity Tag does not match. More...
 
struct  EncryptionKeyData
 A simple wrapper for the encryption key attributes. More...
 
struct  EncryptionKey
 An optional parameter to set the Customer-Supplied Encryption key. More...
 
struct  SourceEncryptionKey
 An optional parameter to set the Customer-Supplied Encryption key for rewrite source object. More...
 
struct  AcceptEncoding
 Modify the accepted encodings. More...
 
struct  ContentEncoding
 Sets the contentEncoding option for object uploads. More...
 
struct  Deleted
 Included deleted HMAC keys in list requests. More...
 
struct  DestinationKmsKeyName
 Configure the Customer-Managed Encryption Key (CMEK) for an rewrite. More...
 
struct  Fields
 Defines the fields query parameter. More...
 
struct  Generation
 Set the version of an object to operate on. More...
 
struct  IfGenerationMatch
 A pre-condition: the request succeeds only if the object generation matches. More...
 
struct  IfGenerationNotMatch
 A pre-condition: the request succeeds unless the object generation matches. More...
 
struct  IfMetagenerationMatch
 A pre-condition: the request succeeds if the metadata generation matches. More...
 
struct  IfMetagenerationNotMatch
 A pre-condition: the request succeeds unless the metadata generation matches. More...
 
struct  IfSourceGenerationMatch
 A pre-condition: the request succeeds if the source object generation matches. More...
 
struct  IfSourceGenerationNotMatch
 A pre-condition: the request succeeds unless the source object generation matches. More...
 
struct  IfSourceMetagenerationMatch
 A pre-condition: the request succeeds if the source object metadata generation matches. More...
 
struct  IfSourceMetagenerationNotMatch
 A pre-condition: the request succeeds unless the source object metadata generation matches. More...
 
struct  KmsKeyName
 Configure the Customer-Managed Encryption Key (CMEK) for an upload. More...
 
struct  MaxResults
 Limit the number of results per page when listing Buckets and Objects. More...
 
struct  MaxBytesRewrittenPerCall
 Limit the number of bytes rewritten in a Objects: rewrite step. More...
 
struct  PredefinedAcl
 Set the ACL to predefined values when creating Buckets or Objects. More...
 
struct  DestinationPredefinedAcl
 Set the ACL to a predefined value when copying Objects. More...
 
struct  PredefinedDefaultObjectAcl
 Set the default object ACL to a predefined value in a Bucket. More...
 
struct  Prefix
 Restrict list operations to entries starting with this value. More...
 
struct  Delimiter
 Returns results in a directory-like mode. More...
 
struct  IncludeTrailingDelimiter
 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[]. More...
 
struct  StartOffset
 Filter results to objects whose names are lexicographically equal to or after StartOffset. More...
 
struct  EndOffset
 Filter results to objects whose names are lexicographically before EndOffset. More...
 
struct  Projection
 Controls what metadata fields are included in the response. More...
 
struct  QuotaUser
 Sets the user for this operation for quota enforcement purposes. More...
 
struct  ServiceAccountFilter
 Only list HMAC keys belonging to a specific Service Account. More...
 
struct  SourceGeneration
 Set the generation for the source object in copy operations. More...
 
struct  UserProject
 Set the project used for billing in "requester pays" Buckets. More...
 
struct  Versions
 Control if all versions of an object should be included when listing objects. More...
 
struct  RequestedPolicyVersion
 Controls the IAM policy version returned by IAM queries. More...
 

Typedefs

using HeadersMap = std::multimap< std::string, std::string >
 Represents the headers returned in a streaming upload or download operation. More...
 
using ListBucketsReader = google::cloud::internal::PaginationRange< BucketMetadata >
 
using ListBucketsIterator = ListBucketsReader::iterator
 
using ListHmacKeysReader = google::cloud::internal::PaginationRange< HmacKeyMetadata >
 A range to paginate over the HmacKeys for a project. More...
 
using ListHmacKeysIterator = ListHmacKeysReader::iterator
 
using ObjectOrPrefix = absl::variant< ObjectMetadata, std::string >
 
using ListObjectsAndPrefixesReader = google::cloud::internal::PaginationRange< ObjectOrPrefix >
 
using ListObjectsAndPrefixesIterator = ListObjectsAndPrefixesReader::iterator
 
using ListObjectsReader = google::cloud::internal::PaginationRange< ObjectMetadata >
 
using ListObjectsIterator = ListObjectsReader::iterator
 
using ClientOptionList = ::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. More...
 
using RetryPolicy = ::google::cloud::internal::TraitBasedRetryPolicy< internal::StatusTraits >
 The retry policy base class. More...
 
using LimitedTimeRetryPolicy = ::google::cloud::internal::LimitedTimeRetryPolicy< internal::StatusTraits >
 Keep retrying until some time has expired. More...
 
using LimitedErrorCountRetryPolicy = ::google::cloud::internal::LimitedErrorCountRetryPolicy< internal::StatusTraits >
 Keep retrying until the error count has been exceeded. More...
 
using BackoffPolicy = ::google::cloud::internal::BackoffPolicy
 The backoff policy base class. More...
 
using ExponentialBackoffPolicy = ::google::cloud::internal::ExponentialBackoffPolicy
 Implement truncated exponential backoff with randomization. More...
 

Enumerations

enum class  AutoFinalizeConfig { kDisabled , kEnabled }
 

Functions

AutoFinalize AutoFinalizeEnabled ()
 Configure a stream to automatically finalize an upload on destruction. More...
 
AutoFinalize AutoFinalizeDisabled ()
 Configure a stream to leave uploads pending (not finalized) on destruction. More...
 
std::ostream & operator<< (std::ostream &os, AutoFinalize const &rhs)
 
std::ostream & operator<< (std::ostream &os, BucketAccessControl const &rhs)
 
bool operator== (BucketBilling const &lhs, BucketBilling const &rhs)
 
bool operator< (BucketBilling const &lhs, BucketBilling const &rhs)
 
bool operator!= (BucketBilling const &lhs, BucketBilling const &rhs)
 
bool operator> (BucketBilling const &lhs, BucketBilling const &rhs)
 
bool operator<= (BucketBilling const &lhs, BucketBilling const &rhs)
 
bool operator>= (BucketBilling const &lhs, BucketBilling const &rhs)
 
std::string CreateRandomPrefixName (std::string const &prefix="")
 Create a random prefix for object names. More...
 
template<typename... Options>
Status DeleteByPrefix (Client &client, std::string const &bucket_name, std::string const &prefix, Options &&... options)
 Delete objects whose names match a given prefix. More...
 
template<typename... Options>
StatusOr< ObjectMetadataComposeMany (Client &client, std::string const &bucket_name, std::vector< ComposeSourceObject > source_objects, std::string const &prefix, std::string destination_object_name, bool ignore_cleanup_failures, Options &&... options)
 Compose existing objects into a new object in the same bucket. More...
 
std::ostream & operator<< (std::ostream &os, ReadRangeData const &rhs)
 
std::string ComputeMD5Hash (std::string const &payload)
 Compute the MD5 Hash of a string in the format preferred by GCS. More...
 
DisableMD5Hash EnableMD5Hash ()
 Enable MD5 hashes in upload and download operations. More...
 
std::string ComputeCrc32cChecksum (std::string const &payload)
 Compute the CRC32C checksum of a string in the format preferred by GCS. More...
 
bool operator== (HmacKeyMetadata const &lhs, HmacKeyMetadata const &rhs)
 
bool operator!= (HmacKeyMetadata const &lhs, HmacKeyMetadata const &rhs)
 
std::ostream & operator<< (std::ostream &os, HmacKeyMetadata const &rhs)
 
std::ostream & operator<< (std::ostream &stream, NativeExpression const &)
 
std::ostream & operator<< (std::ostream &os, NativeIamBinding const &binding)
 
std::ostream & operator<< (std::ostream &os, NativeIamPolicy const &rhs)
 
bool operator== (LifecycleRuleAction const &lhs, LifecycleRuleAction const &rhs)
 
bool operator< (LifecycleRuleAction const &lhs, LifecycleRuleAction const &rhs)
 
bool operator!= (LifecycleRuleAction const &lhs, LifecycleRuleAction const &rhs)
 
bool operator> (LifecycleRuleAction const &lhs, LifecycleRuleAction const &rhs)
 
bool operator<= (LifecycleRuleAction const &lhs, LifecycleRuleAction const &rhs)
 
bool operator>= (LifecycleRuleAction const &lhs, LifecycleRuleAction const &rhs)
 
std::ostream & operator<< (std::ostream &os, LifecycleRuleAction const &rhs)
 
bool operator== (LifecycleRuleCondition const &lhs, LifecycleRuleCondition const &rhs)
 
bool operator< (LifecycleRuleCondition const &lhs, LifecycleRuleCondition const &rhs)
 
bool operator!= (LifecycleRuleCondition const &lhs, LifecycleRuleCondition const &rhs)
 
bool operator> (LifecycleRuleCondition const &lhs, LifecycleRuleCondition const &rhs)
 
bool operator<= (LifecycleRuleCondition const &lhs, LifecycleRuleCondition const &rhs)
 
bool operator>= (LifecycleRuleCondition const &lhs, LifecycleRuleCondition const &rhs)
 
std::ostream & operator<< (std::ostream &os, LifecycleRuleCondition const &rhs)
 
bool operator== (LifecycleRule const &lhs, LifecycleRule const &rhs)
 
bool operator< (LifecycleRule const &lhs, LifecycleRule const &rhs)
 
bool operator!= (LifecycleRule const &lhs, LifecycleRule const &rhs)
 
bool operator> (LifecycleRule const &lhs, LifecycleRule const &rhs)
 
bool operator<= (LifecycleRule const &lhs, LifecycleRule const &rhs)
 
bool operator>= (LifecycleRule const &lhs, LifecycleRule const &rhs)
 
std::ostream & operator<< (std::ostream &os, LifecycleRule const &rhs)
 
bool operator== (NotificationMetadata const &lhs, NotificationMetadata const &rhs)
 
bool operator< (NotificationMetadata const &lhs, NotificationMetadata const &rhs)
 
bool operator!= (NotificationMetadata const &lhs, NotificationMetadata const &rhs)
 
bool operator> (NotificationMetadata const &lhs, NotificationMetadata const &rhs)
 
bool operator<= (NotificationMetadata const &lhs, NotificationMetadata const &rhs)
 
bool operator>= (NotificationMetadata const &lhs, NotificationMetadata const &rhs)
 
std::ostream & operator<< (std::ostream &os, NotificationMetadata const &rhs)
 
std::ostream & operator<< (std::ostream &os, ObjectAccessControl const &rhs)
 
std::ostream & operator<< (std::ostream &os, ComposeSourceObject const &r)
 
bool operator== (CustomerEncryption const &lhs, CustomerEncryption const &rhs)
 
bool operator< (CustomerEncryption const &lhs, CustomerEncryption const &rhs)
 
bool operator!= (CustomerEncryption const &lhs, CustomerEncryption const &rhs)
 
bool operator> (CustomerEncryption const &lhs, CustomerEncryption const &rhs)
 
bool operator<= (CustomerEncryption const &lhs, CustomerEncryption const &rhs)
 
bool operator>= (CustomerEncryption const &lhs, CustomerEncryption const &rhs)
 
std::ostream & operator<< (std::ostream &os, ObjectMetadata const &rhs)
 
template<typename... Options>
StatusOr< ObjectMetadataParallelUploadFile (Client client, std::string file_name, std::string bucket_name, std::string object_name, std::string prefix, bool ignore_cleanup_failures, Options &&... options)
 Perform a parallel upload of a given file. More...
 
bool operator== (PolicyDocumentCondition const &lhs, PolicyDocumentCondition const &rhs)
 
bool operator< (PolicyDocumentCondition const &lhs, PolicyDocumentCondition const &rhs)
 
bool operator!= (PolicyDocumentCondition const &lhs, PolicyDocumentCondition const &rhs)
 
bool operator> (PolicyDocumentCondition const &lhs, PolicyDocumentCondition const &rhs)
 
bool operator<= (PolicyDocumentCondition const &lhs, PolicyDocumentCondition const &rhs)
 
bool operator>= (PolicyDocumentCondition const &lhs, PolicyDocumentCondition const &rhs)
 
std::ostream & operator<< (std::ostream &os, PolicyDocumentCondition const &rhs)
 
std::ostream & operator<< (std::ostream &os, PolicyDocument const &rhs)
 
std::ostream & operator<< (std::ostream &os, PolicyDocumentV4 const &rhs)
 
std::ostream & operator<< (std::ostream &os, PolicyDocumentResult const &rhs)
 
std::string FormatDateForForm (PolicyDocumentV4Result const &)
 Format the current date in the format expected by a POST form. More...
 
std::ostream & operator<< (std::ostream &os, PolicyDocumentV4Result const &rhs)
 
bool operator== (ServiceAccount const &lhs, ServiceAccount const &rhs)
 
bool operator< (ServiceAccount const &lhs, ServiceAccount const &rhs)
 
bool operator!= (ServiceAccount const &lhs, ServiceAccount const &rhs)
 
bool operator> (ServiceAccount const &lhs, ServiceAccount const &rhs)
 
bool operator<= (ServiceAccount const &lhs, ServiceAccount const &rhs)
 
bool operator>= (ServiceAccount const &lhs, ServiceAccount const &rhs)
 
std::ostream & operator<< (std::ostream &os, ServiceAccount const &rhs)
 
AddExtensionHeaderOption AddExtensionHeader (std::string header, std::string value)
 
AddQueryParameterOption WithGeneration (std::uint64_t generation)
 
AddQueryParameterOption WithGenerationMarker (std::uint64_t generation)
 
AddQueryParameterOption WithUserProject (std::string user_project)
 
AddQueryParameterOption WithMarker (std::string marker)
 
AddQueryParameterOption WithResponseContentDisposition (std::string disposition)
 
AddQueryParameterOption WithResponseContentType (std::string const &type)
 
SubResourceOption WithAcl ()
 
SubResourceOption WithBilling ()
 
SubResourceOption WithCompose ()
 
SubResourceOption WithCors ()
 
SubResourceOption WithEncryption ()
 
SubResourceOption WithEncryptionConfig ()
 
SubResourceOption WithLifecycle ()
 
SubResourceOption WithLocation ()
 
SubResourceOption WithLogging ()
 
SubResourceOption WithStorageClass ()
 
SubResourceOption WithTagging ()
 
AddExtensionFieldOption AddExtensionField (std::string field, std::string value)
 
UseResumableUploadSession RestoreResumableUploadSession (std::string session_id)
 Create a UseResumableUploadSession option that restores previous sessions. More...
 
UseResumableUploadSession NewResumableUploadSession ()
 Create a UseResumableUploadSession option that requests new sessions. More...
 
constexpr int version_major ()
 Returns the Google Cloud Storage C++ Client major version. More...
 
constexpr int version_minor ()
 Returns the Google Cloud Storage C++ Client minor version. More...
 
constexpr int version_patch ()
 Returns the Google Cloud Storage C++ Client patch version. More...
 
constexpr int version ()
 Returns a single integer representing the Major/Minor/Patch version. More...
 
std::string version_string ()
 Returns the version as a string, in MAJOR.MINOR.PATCH+gitrev format. More...
 
std::string x_goog_api_client ()
 Returns the value for x-goog-api-client header. More...
 
std::ostream & operator<< (std::ostream &os, CustomHeader const &rhs)
 
EncryptionKeyData EncryptionDataFromBinaryKey (std::string const &key)
 Formats a (potentially binary) encryption key in the format required by the Google Cloud Storage API. More...
 
EncryptionKeyData EncryptionDataFromBase64Key (std::string const &key)
 Formats an encryption key in base64 format to the data structure required by the Google Cloud Storage API. More...
 
std::ostream & operator<< (std::ostream &os, EncryptionKey const &rhs)
 
std::ostream & operator<< (std::ostream &os, SourceEncryptionKey const &rhs)
 
template<typename Generator >
EncryptionKeyData CreateKeyFromGenerator (Generator &gen)
 Creates an encryption key parameter from a pseudo-random number generator. More...
 
AcceptEncoding AcceptEncodingGzip ()
 
AcceptEncoding AcceptEncodingIdentity ()
 
Comparison operators For UniformBucketLevelAccess
bool operator== (UniformBucketLevelAccess const &lhs, UniformBucketLevelAccess const &rhs)
 
bool operator< (UniformBucketLevelAccess const &lhs, UniformBucketLevelAccess const &rhs)
 
bool operator!= (UniformBucketLevelAccess const &lhs, UniformBucketLevelAccess const &rhs)
 
bool operator> (UniformBucketLevelAccess const &lhs, UniformBucketLevelAccess const &rhs)
 
bool operator<= (UniformBucketLevelAccess const &lhs, UniformBucketLevelAccess const &rhs)
 
bool operator>= (UniformBucketLevelAccess const &lhs, UniformBucketLevelAccess const &rhs)
 
std::ostream & operator<< (std::ostream &os, UniformBucketLevelAccess const &rhs)
 
Public Access Prevention helper functions
std::string PublicAccessPreventionEnforced ()
 
std::string PublicAccessPreventionInherited ()
 
std::string PublicAccessPreventionUnspecified ()
 
Comparison operators for BucketIamConfiguration.
bool operator== (BucketIamConfiguration const &lhs, BucketIamConfiguration const &rhs)
 
bool operator< (BucketIamConfiguration const &lhs, BucketIamConfiguration const &rhs)
 
bool operator!= (BucketIamConfiguration const &lhs, BucketIamConfiguration const &rhs)
 
bool operator> (BucketIamConfiguration const &lhs, BucketIamConfiguration const &rhs)
 
bool operator<= (BucketIamConfiguration const &lhs, BucketIamConfiguration const &rhs)
 
bool operator>= (BucketIamConfiguration const &lhs, BucketIamConfiguration const &rhs)
 
std::ostream & operator<< (std::ostream &os, BucketIamConfiguration const &rhs)
 
Comparison operators for BucketLifecycle.
bool operator== (BucketLifecycle const &lhs, BucketLifecycle const &rhs)
 A helper function to avoid typos in the RPO configuration. More...
 
bool operator< (BucketLifecycle const &lhs, BucketLifecycle const &rhs)
 A helper function to avoid typos in the RPO configuration. More...
 
bool operator!= (BucketLifecycle const &lhs, BucketLifecycle const &rhs)
 A helper function to avoid typos in the RPO configuration. More...
 
bool operator> (BucketLifecycle const &lhs, BucketLifecycle const &rhs)
 A helper function to avoid typos in the RPO configuration. More...
 
bool operator<= (BucketLifecycle const &lhs, BucketLifecycle const &rhs)
 A helper function to avoid typos in the RPO configuration. More...
 
bool operator>= (BucketLifecycle const &lhs, BucketLifecycle const &rhs)
 A helper function to avoid typos in the RPO configuration. More...
 
bool operator== (BucketLogging const &lhs, BucketLogging const &rhs)
 A helper function to avoid typos in the RPO configuration. More...
 
bool operator< (BucketLogging const &lhs, BucketLogging const &rhs)
 A helper function to avoid typos in the RPO configuration. More...
 
bool operator!= (BucketLogging const &lhs, BucketLogging const &rhs)
 A helper function to avoid typos in the RPO configuration. More...
 
bool operator> (BucketLogging const &lhs, BucketLogging const &rhs)
 A helper function to avoid typos in the RPO configuration. More...
 
bool operator<= (BucketLogging const &lhs, BucketLogging const &rhs)
 A helper function to avoid typos in the RPO configuration. More...
 
bool operator>= (BucketLogging const &lhs, BucketLogging const &rhs)
 A helper function to avoid typos in the RPO configuration. More...
 
std::ostream & operator<< (std::ostream &os, BucketLogging const &rhs)
 A helper function to avoid typos in the RPO configuration. More...
 
bool operator== (BucketEncryption const &lhs, BucketEncryption const &rhs)
 A helper function to avoid typos in the RPO configuration. More...
 
bool operator< (BucketEncryption const &lhs, BucketEncryption const &rhs)
 A helper function to avoid typos in the RPO configuration. More...
 
bool operator!= (BucketEncryption const &lhs, BucketEncryption const &rhs)
 A helper function to avoid typos in the RPO configuration. More...
 
bool operator> (BucketEncryption const &lhs, BucketEncryption const &rhs)
 A helper function to avoid typos in the RPO configuration. More...
 
bool operator<= (BucketEncryption const &lhs, BucketEncryption const &rhs)
 A helper function to avoid typos in the RPO configuration. More...
 
bool operator>= (BucketEncryption const &lhs, BucketEncryption const &rhs)
 A helper function to avoid typos in the RPO configuration. More...
 
bool operator== (BucketRetentionPolicy const &lhs, BucketRetentionPolicy const &rhs)
 A helper function to avoid typos in the RPO configuration. More...
 
bool operator< (BucketRetentionPolicy const &lhs, BucketRetentionPolicy const &rhs)
 A helper function to avoid typos in the RPO configuration. More...
 
bool operator!= (BucketRetentionPolicy const &lhs, BucketRetentionPolicy const &rhs)
 A helper function to avoid typos in the RPO configuration. More...
 
bool operator> (BucketRetentionPolicy const &lhs, BucketRetentionPolicy const &rhs)
 A helper function to avoid typos in the RPO configuration. More...
 
bool operator<= (BucketRetentionPolicy const &lhs, BucketRetentionPolicy const &rhs)
 A helper function to avoid typos in the RPO configuration. More...
 
bool operator>= (BucketRetentionPolicy const &lhs, BucketRetentionPolicy const &rhs)
 A helper function to avoid typos in the RPO configuration. More...
 
std::ostream & operator<< (std::ostream &os, BucketRetentionPolicy const &rhs)
 A helper function to avoid typos in the RPO configuration. More...
 
std::string RpoDefault ()
 A helper function to avoid typos in the RPO configuration. More...
 
std::string RpoAsyncTurbo ()
 A helper function to avoid typos in the RPO configuration. More...
 
bool operator== (BucketVersioning const &lhs, BucketVersioning const &rhs)
 A helper function to avoid typos in the RPO configuration. More...
 
bool operator< (BucketVersioning const &lhs, BucketVersioning const &rhs)
 A helper function to avoid typos in the RPO configuration. More...
 
bool operator!= (BucketVersioning const &lhs, BucketVersioning const &rhs)
 A helper function to avoid typos in the RPO configuration. More...
 
bool operator> (BucketVersioning const &lhs, BucketVersioning const &rhs)
 A helper function to avoid typos in the RPO configuration. More...
 
bool operator<= (BucketVersioning const &lhs, BucketVersioning const &rhs)
 A helper function to avoid typos in the RPO configuration. More...
 
bool operator>= (BucketVersioning const &lhs, BucketVersioning const &rhs)
 A helper function to avoid typos in the RPO configuration. More...
 
bool operator== (BucketWebsite const &lhs, BucketWebsite const &rhs)
 A helper function to avoid typos in the RPO configuration. More...
 
bool operator< (BucketWebsite const &lhs, BucketWebsite const &rhs)
 A helper function to avoid typos in the RPO configuration. More...
 
bool operator!= (BucketWebsite const &lhs, BucketWebsite const &rhs)
 A helper function to avoid typos in the RPO configuration. More...
 
bool operator> (BucketWebsite const &lhs, BucketWebsite const &rhs)
 A helper function to avoid typos in the RPO configuration. More...
 
bool operator<= (BucketWebsite const &lhs, BucketWebsite const &rhs)
 A helper function to avoid typos in the RPO configuration. More...
 
bool operator>= (BucketWebsite const &lhs, BucketWebsite const &rhs)
 A helper function to avoid typos in the RPO configuration. More...
 
std::ostream & operator<< (std::ostream &os, BucketMetadata const &rhs)
 A helper function to avoid typos in the RPO configuration. More...
 

Comparison operators for CorsEntry.

using BucketPolicyOnly = UniformBucketLevelAccess
 
bool operator== (CorsEntry const &lhs, CorsEntry const &rhs)
 
bool operator< (CorsEntry const &lhs, CorsEntry const &rhs)
 
bool operator!= (CorsEntry const &lhs, CorsEntry const &rhs)
 
bool operator> (CorsEntry const &lhs, CorsEntry const &rhs)
 
bool operator<= (CorsEntry const &lhs, CorsEntry const &rhs)
 
bool operator>= (CorsEntry const &lhs, CorsEntry const &rhs)
 
std::ostream & operator<< (std::ostream &os, CorsEntry const &rhs)
 

Detailed Description

Contains all the Google Cloud Storage C++ client APIs.

Typedef Documentation

◆ BackoffPolicy

using google::cloud::storage::BackoffPolicy = typedef ::google::cloud::internal::BackoffPolicy

The backoff policy base class.

Definition at line 53 of file retry_policy.h.

◆ BucketPolicyOnly

Definition at line 156 of file bucket_metadata.h.

◆ ClientOptionList

The complete list of options accepted by storage::Client.

Definition at line 265 of file options.h.

◆ ExponentialBackoffPolicy

using google::cloud::storage::ExponentialBackoffPolicy = typedef ::google::cloud::internal::ExponentialBackoffPolicy

Implement truncated exponential backoff with randomization.

Definition at line 56 of file retry_policy.h.

◆ HeadersMap

using google::cloud::storage::HeadersMap = typedef std::multimap<std::string, std::string>

Represents the headers returned in a streaming upload or download operation.

Definition at line 28 of file headers_map.h.

◆ LimitedErrorCountRetryPolicy

using google::cloud::storage::LimitedErrorCountRetryPolicy = typedef ::google::cloud::internal::LimitedErrorCountRetryPolicy< internal::StatusTraits>

Keep retrying until the error count has been exceeded.

Definition at line 48 of file retry_policy.h.

◆ LimitedTimeRetryPolicy

using google::cloud::storage::LimitedTimeRetryPolicy = typedef ::google::cloud::internal::LimitedTimeRetryPolicy<internal::StatusTraits>

Keep retrying until some time has expired.

Definition at line 44 of file retry_policy.h.

◆ ListBucketsIterator

using google::cloud::storage::ListBucketsIterator = typedef ListBucketsReader::iterator

Definition at line 31 of file list_buckets_reader.h.

◆ ListBucketsReader

using google::cloud::storage::ListBucketsReader = typedef google::cloud::internal::PaginationRange<BucketMetadata>

Definition at line 28 of file list_buckets_reader.h.

◆ ListHmacKeysIterator

using google::cloud::storage::ListHmacKeysIterator = typedef ListHmacKeysReader::iterator

Definition at line 36 of file list_hmac_keys_reader.h.

◆ ListHmacKeysReader

using google::cloud::storage::ListHmacKeysReader = typedef google::cloud::internal::PaginationRange<HmacKeyMetadata>

A range to paginate over the HmacKeys for a project.

Definition at line 33 of file list_hmac_keys_reader.h.

◆ ListObjectsAndPrefixesIterator

using google::cloud::storage::ListObjectsAndPrefixesIterator = typedef ListObjectsAndPrefixesReader::iterator

Definition at line 34 of file list_objects_and_prefixes_reader.h.

◆ ListObjectsAndPrefixesReader

using google::cloud::storage::ListObjectsAndPrefixesReader = typedef google::cloud::internal::PaginationRange<ObjectOrPrefix>

Definition at line 31 of file list_objects_and_prefixes_reader.h.

◆ ListObjectsIterator

using google::cloud::storage::ListObjectsIterator = typedef ListObjectsReader::iterator

Definition at line 33 of file list_objects_reader.h.

◆ ListObjectsReader

using google::cloud::storage::ListObjectsReader = typedef google::cloud::internal::PaginationRange<ObjectMetadata>

Definition at line 30 of file list_objects_reader.h.

◆ ObjectOrPrefix

using google::cloud::storage::ObjectOrPrefix = typedef absl::variant<ObjectMetadata, std::string>

Definition at line 29 of file list_objects_and_prefixes_reader.h.

◆ RetryPolicy

using google::cloud::storage::RetryPolicy = typedef ::google::cloud::internal::TraitBasedRetryPolicy<internal::StatusTraits>

The retry policy base class.

Definition at line 40 of file retry_policy.h.

Enumeration Type Documentation

◆ AutoFinalizeConfig

Enumerator
kDisabled 
kEnabled 

Definition at line 27 of file auto_finalize.h.

Function Documentation

◆ AcceptEncodingGzip()

AcceptEncoding google::cloud::storage::AcceptEncodingGzip ( )
inline

Definition at line 307 of file well_known_headers.h.

◆ AcceptEncodingIdentity()

AcceptEncoding google::cloud::storage::AcceptEncodingIdentity ( )
inline

Definition at line 309 of file well_known_headers.h.

◆ AddExtensionField()

AddExtensionFieldOption google::cloud::storage::AddExtensionField ( std::string  field,
std::string  value 
)
inline

Definition at line 267 of file signed_url_options.h.

◆ AddExtensionHeader()

AddExtensionHeaderOption google::cloud::storage::AddExtensionHeader ( std::string  header,
std::string  value 
)
inline

Definition at line 58 of file signed_url_options.h.

◆ AutoFinalizeDisabled()

AutoFinalize google::cloud::storage::AutoFinalizeDisabled ( )
inline

Configure a stream to leave uploads pending (not finalized) on destruction.

Definition at line 54 of file auto_finalize.h.

◆ AutoFinalizeEnabled()

AutoFinalize google::cloud::storage::AutoFinalizeEnabled ( )
inline

Configure a stream to automatically finalize an upload on destruction.

Definition at line 49 of file auto_finalize.h.

◆ ComposeMany()

template<typename... Options>
StatusOr<ObjectMetadata> google::cloud::storage::ComposeMany ( Client client,
std::string const &  bucket_name,
std::vector< ComposeSourceObject source_objects,
std::string const &  prefix,
std::string  destination_object_name,
bool  ignore_cleanup_failures,
Options &&...  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.

Parameters
clientthe client on which to perform the operations needed by this function
bucket_namethe name of the bucket used for source object and destination object.
source_objectsobjects used to compose destination_object_name.
destination_object_namethe composed object name.
prefixprefix 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
ignore_cleanup_failuresif 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)
optionsa 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.
Idempotency
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 (!composed_object) {
// 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.
throw std::runtime_error(composed_object.status().message());
}
std::cout << "Composed new object " << composed_object->name()
<< " in bucket " << composed_object->bucket()
<< "\nFull metadata: " << *composed_object << "\n";
}
StatusOr< ObjectMetadata > ComposeMany(Client &client, std::string const &bucket_name, std::vector< ComposeSourceObject > source_objects, std::string const &prefix, std::string destination_object_name, bool ignore_cleanup_failures, Options &&... options)
Compose existing objects into a new object in the same bucket.
Definition: client.h:3613
std::string CreateRandomPrefixName(std::string const &prefix="")
Create a random prefix for object names.

Definition at line 3613 of file client.h.

◆ ComputeCrc32cChecksum()

std::string google::cloud::storage::ComputeCrc32cChecksum ( std::string const &  payload)

Compute the CRC32C checksum of a string in the format preferred by GCS.

◆ ComputeMD5Hash()

std::string google::cloud::storage::ComputeMD5Hash ( std::string const &  payload)

Compute the MD5 Hash of a string in the format preferred by GCS.

◆ CreateKeyFromGenerator()

template<typename Generator >
EncryptionKeyData google::cloud::storage::CreateKeyFromGenerator ( Generator &  gen)

Creates an encryption key parameter from a pseudo-random number generator.

Template Parameters
Generatorthe pseudo-random number generator type, it must meet the UniformRandomBitGenerator requirements.
Parameters
genthe 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";
EncryptionKeyData CreateKeyFromGenerator(Generator &gen)
Creates an encryption key parameter from a pseudo-random number generator.
See also
https://en.cppreference.com/w/cpp/numeric/random for a general overview of C++ pseudo-random number support.
https://en.cppreference.com/w/cpp/numeric/random/UniformRandomBitGenerator for a more detailed overview of the requirements for generators.

Definition at line 269 of file well_known_headers.h.

◆ CreateRandomPrefixName()

std::string google::cloud::storage::CreateRandomPrefixName ( std::string const &  prefix = "")

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.

Parameters
prefixthe prefix of the prefix to be created.
Returns
the random prefix name

◆ DeleteByPrefix()

template<typename... Options>
Status google::cloud::storage::DeleteByPrefix ( Client client,
std::string const &  bucket_name,
std::string const &  prefix,
Options &&...  options 
)

Delete objects whose names match a given prefix.

Parameters
clientthe client on which to perform the operation.
bucket_namethe name of the bucket that will contain the object.
prefixthe prefix of the objects to be deleted.
optionsa list of optional query parameters and/or request headers. Valid types for this operation include QuotaUser, UserIp, UserProject and Versions.

Definition at line 3493 of file client.h.

◆ EnableMD5Hash()

DisableMD5Hash google::cloud::storage::EnableMD5Hash ( )
inline

Enable MD5 hashes in upload and download operations.

Use this function where the option DisableMD5Hash is expected to enable MD5 hashes.

Definition at line 78 of file hashing_options.h.

◆ EncryptionDataFromBase64Key()

EncryptionKeyData google::cloud::storage::EncryptionDataFromBase64Key ( std::string const &  key)

Formats an encryption key in base64 format to the data structure required by the Google Cloud Storage API.

Parameters
keya base64-encoded key, must have exactly 32 bytes when decoded.

◆ EncryptionDataFromBinaryKey()

EncryptionKeyData google::cloud::storage::EncryptionDataFromBinaryKey ( std::string const &  key)

Formats a (potentially binary) encryption key in the format required by the Google Cloud Storage API.

Parameters
keya binary key, must have exactly 32 bytes.

◆ FormatDateForForm()

std::string google::cloud::storage::FormatDateForForm ( PolicyDocumentV4Result const &  )

Format the current date in the format expected by a POST form.

◆ NewResumableUploadSession()

UseResumableUploadSession google::cloud::storage::NewResumableUploadSession ( )
inline

Create a UseResumableUploadSession option that requests new sessions.

Definition at line 54 of file upload_options.h.

◆ operator!=() [1/18]

bool google::cloud::storage::operator!= ( BucketBilling const &  lhs,
BucketBilling const &  rhs 
)
inline

Definition at line 65 of file bucket_metadata.h.

◆ operator!=() [2/18]

bool google::cloud::storage::operator!= ( BucketEncryption const &  lhs,
BucketEncryption const &  rhs 
)
inline

A helper function to avoid typos in the RPO configuration.

Definition at line 366 of file bucket_metadata.h.

◆ operator!=() [3/18]

bool google::cloud::storage::operator!= ( BucketIamConfiguration const &  lhs,
BucketIamConfiguration const &  rhs 
)
inline

Definition at line 241 of file bucket_metadata.h.

◆ operator!=() [4/18]

bool google::cloud::storage::operator!= ( BucketLifecycle const &  lhs,
BucketLifecycle const &  rhs 
)
inline

A helper function to avoid typos in the RPO configuration.

Definition at line 284 of file bucket_metadata.h.

◆ operator!=() [5/18]

bool google::cloud::storage::operator!= ( BucketLogging const &  lhs,
BucketLogging const &  rhs 
)
inline

A helper function to avoid typos in the RPO configuration.

Definition at line 322 of file bucket_metadata.h.

◆ operator!=() [6/18]

bool google::cloud::storage::operator!= ( BucketRetentionPolicy const &  lhs,
BucketRetentionPolicy const &  rhs 
)
inline

A helper function to avoid typos in the RPO configuration.

Definition at line 416 of file bucket_metadata.h.

◆ operator!=() [7/18]

bool google::cloud::storage::operator!= ( BucketVersioning const &  lhs,
BucketVersioning const &  rhs 
)
inline

A helper function to avoid typos in the RPO configuration.

Definition at line 467 of file bucket_metadata.h.

◆ operator!=() [8/18]

bool google::cloud::storage::operator!= ( BucketWebsite const &  lhs,
BucketWebsite const &  rhs 
)
inline

A helper function to avoid typos in the RPO configuration.

Definition at line 508 of file bucket_metadata.h.

◆ operator!=() [9/18]

bool google::cloud::storage::operator!= ( CorsEntry const &  lhs,
CorsEntry const &  rhs 
)
inline

Definition at line 121 of file bucket_metadata.h.

◆ operator!=() [10/18]

bool google::cloud::storage::operator!= ( CustomerEncryption const &  lhs,
CustomerEncryption const &  rhs 
)
inline

Definition at line 69 of file object_metadata.h.

◆ operator!=() [11/18]

bool google::cloud::storage::operator!= ( HmacKeyMetadata const &  lhs,
HmacKeyMetadata const &  rhs 
)
inline

Definition at line 111 of file hmac_key_metadata.h.

◆ operator!=() [12/18]

bool google::cloud::storage::operator!= ( LifecycleRule const &  lhs,
LifecycleRule const &  rhs 
)
inline

Definition at line 358 of file lifecycle_rule.h.

◆ operator!=() [13/18]

bool google::cloud::storage::operator!= ( LifecycleRuleAction const &  lhs,
LifecycleRuleAction const &  rhs 
)
inline

Definition at line 57 of file lifecycle_rule.h.

◆ operator!=() [14/18]

bool google::cloud::storage::operator!= ( LifecycleRuleCondition const &  lhs,
LifecycleRuleCondition const &  rhs 
)
inline

Definition at line 100 of file lifecycle_rule.h.

◆ operator!=() [15/18]

bool google::cloud::storage::operator!= ( NotificationMetadata const &  lhs,
NotificationMetadata const &  rhs 
)
inline

Definition at line 181 of file notification_metadata.h.

◆ operator!=() [16/18]

bool google::cloud::storage::operator!= ( PolicyDocumentCondition const &  lhs,
PolicyDocumentCondition const &  rhs 
)
inline

Definition at line 98 of file policy_document.h.

◆ operator!=() [17/18]

bool google::cloud::storage::operator!= ( ServiceAccount const &  lhs,
ServiceAccount const &  rhs 
)
inline

Definition at line 59 of file service_account.h.

◆ operator!=() [18/18]

bool google::cloud::storage::operator!= ( UniformBucketLevelAccess const &  lhs,
UniformBucketLevelAccess const &  rhs 
)
inline

Definition at line 172 of file bucket_metadata.h.

◆ operator<() [1/17]

bool google::cloud::storage::operator< ( BucketBilling const &  lhs,
BucketBilling const &  rhs 
)
inline

Definition at line 61 of file bucket_metadata.h.

◆ operator<() [2/17]

bool google::cloud::storage::operator< ( BucketEncryption const &  lhs,
BucketEncryption const &  rhs 
)
inline

A helper function to avoid typos in the RPO configuration.

Definition at line 361 of file bucket_metadata.h.

◆ operator<() [3/17]

bool google::cloud::storage::operator< ( BucketIamConfiguration const &  lhs,
BucketIamConfiguration const &  rhs 
)
inline

Definition at line 233 of file bucket_metadata.h.

◆ operator<() [4/17]

bool google::cloud::storage::operator< ( BucketLifecycle const &  lhs,
BucketLifecycle const &  rhs 
)
inline

A helper function to avoid typos in the RPO configuration.

Definition at line 280 of file bucket_metadata.h.

◆ operator<() [5/17]

bool google::cloud::storage::operator< ( BucketLogging const &  lhs,
BucketLogging const &  rhs 
)
inline

A helper function to avoid typos in the RPO configuration.

Definition at line 317 of file bucket_metadata.h.

◆ operator<() [6/17]

bool google::cloud::storage::operator< ( BucketRetentionPolicy const &  lhs,
BucketRetentionPolicy const &  rhs 
)
inline

A helper function to avoid typos in the RPO configuration.

Definition at line 410 of file bucket_metadata.h.

◆ operator<() [7/17]

bool google::cloud::storage::operator< ( BucketVersioning const &  lhs,
BucketVersioning const &  rhs 
)
inline

A helper function to avoid typos in the RPO configuration.

Definition at line 462 of file bucket_metadata.h.

◆ operator<() [8/17]

bool google::cloud::storage::operator< ( BucketWebsite const &  lhs,
BucketWebsite const &  rhs 
)
inline

A helper function to avoid typos in the RPO configuration.

Definition at line 503 of file bucket_metadata.h.

◆ operator<() [9/17]

bool google::cloud::storage::operator< ( CorsEntry const &  lhs,
CorsEntry const &  rhs 
)
inline

Definition at line 114 of file bucket_metadata.h.

◆ operator<() [10/17]

bool google::cloud::storage::operator< ( CustomerEncryption const &  lhs,
CustomerEncryption const &  rhs 
)
inline

Definition at line 63 of file object_metadata.h.

◆ operator<() [11/17]

bool google::cloud::storage::operator< ( LifecycleRule const &  lhs,
LifecycleRule const &  rhs 
)
inline

Definition at line 353 of file lifecycle_rule.h.

◆ operator<() [12/17]

bool google::cloud::storage::operator< ( LifecycleRuleAction const &  lhs,
LifecycleRuleAction const &  rhs 
)
inline

Definition at line 51 of file lifecycle_rule.h.

◆ operator<() [13/17]

bool google::cloud::storage::operator< ( LifecycleRuleCondition const &  lhs,
LifecycleRuleCondition const &  rhs 
)

◆ operator<() [14/17]

bool google::cloud::storage::operator< ( NotificationMetadata const &  lhs,
NotificationMetadata const &  rhs 
)
inline

Definition at line 171 of file notification_metadata.h.

◆ operator<() [15/17]

bool google::cloud::storage::operator< ( PolicyDocumentCondition const &  lhs,
PolicyDocumentCondition const &  rhs 
)
inline

Definition at line 93 of file policy_document.h.

◆ operator<() [16/17]

bool google::cloud::storage::operator< ( ServiceAccount const &  lhs,
ServiceAccount const &  rhs 
)
inline

Definition at line 54 of file service_account.h.

◆ operator<() [17/17]

bool google::cloud::storage::operator< ( UniformBucketLevelAccess const &  lhs,
UniformBucketLevelAccess const &  rhs 
)
inline

Definition at line 166 of file bucket_metadata.h.

◆ operator<<() [1/29]

std::ostream& google::cloud::storage::operator<< ( std::ostream &  os,
AutoFinalize const &  rhs 
)

◆ operator<<() [2/29]

std::ostream& google::cloud::storage::operator<< ( std::ostream &  os,
BucketAccessControl const &  rhs 
)

◆ operator<<() [3/29]

std::ostream& google::cloud::storage::operator<< ( std::ostream &  os,
BucketIamConfiguration const &  rhs 
)

◆ operator<<() [4/29]

std::ostream& google::cloud::storage::operator<< ( std::ostream &  os,
BucketLogging const &  rhs 
)

A helper function to avoid typos in the RPO configuration.

◆ operator<<() [5/29]

std::ostream& google::cloud::storage::operator<< ( std::ostream &  os,
BucketMetadata const &  rhs 
)

A helper function to avoid typos in the RPO configuration.

◆ operator<<() [6/29]

std::ostream& google::cloud::storage::operator<< ( std::ostream &  os,
BucketRetentionPolicy const &  rhs 
)

A helper function to avoid typos in the RPO configuration.

◆ operator<<() [7/29]

std::ostream& google::cloud::storage::operator<< ( std::ostream &  os,
ComposeSourceObject const &  r 
)

◆ operator<<() [8/29]

std::ostream& google::cloud::storage::operator<< ( std::ostream &  os,
CorsEntry const &  rhs 
)

◆ operator<<() [9/29]

std::ostream& google::cloud::storage::operator<< ( std::ostream &  os,
CustomHeader const &  rhs 
)

◆ operator<<() [10/29]

std::ostream& google::cloud::storage::operator<< ( std::ostream &  os,
EncryptionKey const &  rhs 
)

◆ operator<<() [11/29]

std::ostream& google::cloud::storage::operator<< ( std::ostream &  os,
HmacKeyMetadata const &  rhs 
)

◆ operator<<() [12/29]

std::ostream& google::cloud::storage::operator<< ( std::ostream &  os,
LifecycleRule const &  rhs 
)

◆ operator<<() [13/29]

std::ostream& google::cloud::storage::operator<< ( std::ostream &  os,
LifecycleRuleAction const &  rhs 
)

◆ operator<<() [14/29]

std::ostream& google::cloud::storage::operator<< ( std::ostream &  os,
LifecycleRuleCondition const &  rhs 
)

◆ operator<<() [15/29]

std::ostream& google::cloud::storage::operator<< ( std::ostream &  os,
NativeIamBinding const &  binding 
)

◆ operator<<() [16/29]

std::ostream& google::cloud::storage::operator<< ( std::ostream &  os,
NativeIamPolicy const &  rhs 
)

◆ operator<<() [17/29]

std::ostream& google::cloud::storage::operator<< ( std::ostream &  os,
NotificationMetadata const &  rhs 
)

◆ operator<<() [18/29]

std::ostream& google::cloud::storage::operator<< ( std::ostream &  os,
ObjectAccessControl const &  rhs 
)

◆ operator<<() [19/29]

std::ostream& google::cloud::storage::operator<< ( std::ostream &  os,
ObjectMetadata const &  rhs 
)

◆ operator<<() [20/29]

std::ostream& google::cloud::storage::operator<< ( std::ostream &  os,
PolicyDocument const &  rhs 
)

◆ operator<<() [21/29]

std::ostream& google::cloud::storage::operator<< ( std::ostream &  os,
PolicyDocumentCondition const &  rhs 
)

◆ operator<<() [22/29]

std::ostream& google::cloud::storage::operator<< ( std::ostream &  os,
PolicyDocumentResult const &  rhs 
)

◆ operator<<() [23/29]

std::ostream& google::cloud::storage::operator<< ( std::ostream &  os,
PolicyDocumentV4 const &  rhs 
)

◆ operator<<() [24/29]

std::ostream& google::cloud::storage::operator<< ( std::ostream &  os,
PolicyDocumentV4Result const &  rhs 
)

◆ operator<<() [25/29]

std::ostream& google::cloud::storage::operator<< ( std::ostream &  os,
ReadRangeData const &  rhs 
)
inline

Definition at line 45 of file download_options.h.

◆ operator<<() [26/29]

std::ostream& google::cloud::storage::operator<< ( std::ostream &  os,
ServiceAccount const &  rhs 
)

◆ operator<<() [27/29]

std::ostream& google::cloud::storage::operator<< ( std::ostream &  os,
SourceEncryptionKey const &  rhs 
)

◆ operator<<() [28/29]

std::ostream& google::cloud::storage::operator<< ( std::ostream &  os,
UniformBucketLevelAccess const &  rhs 
)

◆ operator<<() [29/29]

std::ostream& google::cloud::storage::operator<< ( std::ostream &  stream,
NativeExpression const &   
)

◆ operator<=() [1/17]

bool google::cloud::storage::operator<= ( BucketBilling const &  lhs,
BucketBilling const &  rhs 
)
inline

Definition at line 73 of file bucket_metadata.h.

◆ operator<=() [2/17]

bool google::cloud::storage::operator<= ( BucketEncryption const &  lhs,
BucketEncryption const &  rhs 
)
inline

A helper function to avoid typos in the RPO configuration.

Definition at line 376 of file bucket_metadata.h.

◆ operator<=() [3/17]

bool google::cloud::storage::operator<= ( BucketIamConfiguration const &  lhs,
BucketIamConfiguration const &  rhs 
)
inline

Definition at line 251 of file bucket_metadata.h.

◆ operator<=() [4/17]

bool google::cloud::storage::operator<= ( BucketLifecycle const &  lhs,
BucketLifecycle const &  rhs 
)
inline

A helper function to avoid typos in the RPO configuration.

Definition at line 292 of file bucket_metadata.h.

◆ operator<=() [5/17]

bool google::cloud::storage::operator<= ( BucketLogging const &  lhs,
BucketLogging const &  rhs 
)
inline

A helper function to avoid typos in the RPO configuration.

Definition at line 330 of file bucket_metadata.h.

◆ operator<=() [6/17]

bool google::cloud::storage::operator<= ( BucketRetentionPolicy const &  lhs,
BucketRetentionPolicy const &  rhs 
)
inline

A helper function to avoid typos in the RPO configuration.

Definition at line 426 of file bucket_metadata.h.

◆ operator<=() [7/17]

bool google::cloud::storage::operator<= ( BucketVersioning const &  lhs,
BucketVersioning const &  rhs 
)
inline

A helper function to avoid typos in the RPO configuration.

Definition at line 477 of file bucket_metadata.h.

◆ operator<=() [8/17]

bool google::cloud::storage::operator<= ( BucketWebsite const &  lhs,
BucketWebsite const &  rhs 
)
inline

A helper function to avoid typos in the RPO configuration.

Definition at line 516 of file bucket_metadata.h.

◆ operator<=() [9/17]

bool google::cloud::storage::operator<= ( CorsEntry const &  lhs,
CorsEntry const &  rhs 
)
inline

Definition at line 129 of file bucket_metadata.h.

◆ operator<=() [10/17]

bool google::cloud::storage::operator<= ( CustomerEncryption const &  lhs,
CustomerEncryption const &  rhs 
)
inline

Definition at line 79 of file object_metadata.h.

◆ operator<=() [11/17]

bool google::cloud::storage::operator<= ( LifecycleRule const &  lhs,
LifecycleRule const &  rhs 
)
inline

Definition at line 366 of file lifecycle_rule.h.

◆ operator<=() [12/17]

bool google::cloud::storage::operator<= ( LifecycleRuleAction const &  lhs,
LifecycleRuleAction const &  rhs 
)
inline

Definition at line 67 of file lifecycle_rule.h.

◆ operator<=() [13/17]

bool google::cloud::storage::operator<= ( LifecycleRuleCondition const &  lhs,
LifecycleRuleCondition const &  rhs 
)
inline

Definition at line 110 of file lifecycle_rule.h.

◆ operator<=() [14/17]

bool google::cloud::storage::operator<= ( NotificationMetadata const &  lhs,
NotificationMetadata const &  rhs 
)
inline

Definition at line 191 of file notification_metadata.h.

◆ operator<=() [15/17]

bool google::cloud::storage::operator<= ( PolicyDocumentCondition const &  lhs,
PolicyDocumentCondition const &  rhs 
)
inline

Definition at line 108 of file policy_document.h.

◆ operator<=() [16/17]

bool google::cloud::storage::operator<= ( ServiceAccount const &  lhs,
ServiceAccount const &  rhs 
)
inline

Definition at line 67 of file service_account.h.

◆ operator<=() [17/17]

bool google::cloud::storage::operator<= ( UniformBucketLevelAccess const &  lhs,
UniformBucketLevelAccess const &  rhs 
)
inline

Definition at line 182 of file bucket_metadata.h.

◆ operator==() [1/18]

bool google::cloud::storage::operator== ( BucketBilling const &  lhs,
BucketBilling const &  rhs 
)
inline

Definition at line 57 of file bucket_metadata.h.

◆ operator==() [2/18]

bool google::cloud::storage::operator== ( BucketEncryption const &  lhs,
BucketEncryption const &  rhs 
)
inline

A helper function to avoid typos in the RPO configuration.

Definition at line 356 of file bucket_metadata.h.

◆ operator==() [3/18]

bool google::cloud::storage::operator== ( BucketIamConfiguration const &  lhs,
BucketIamConfiguration const &  rhs 
)
inline

Definition at line 225 of file bucket_metadata.h.

◆ operator==() [4/18]

bool google::cloud::storage::operator== ( BucketLifecycle const &  lhs,
BucketLifecycle const &  rhs 
)
inline

A helper function to avoid typos in the RPO configuration.

Definition at line 276 of file bucket_metadata.h.

◆ operator==() [5/18]

bool google::cloud::storage::operator== ( BucketLogging const &  lhs,
BucketLogging const &  rhs 
)
inline

A helper function to avoid typos in the RPO configuration.

Definition at line 312 of file bucket_metadata.h.

◆ operator==() [6/18]

bool google::cloud::storage::operator== ( BucketRetentionPolicy const &  lhs,
BucketRetentionPolicy const &  rhs 
)
inline

A helper function to avoid typos in the RPO configuration.

Definition at line 404 of file bucket_metadata.h.

◆ operator==() [7/18]

bool google::cloud::storage::operator== ( BucketVersioning const &  lhs,
BucketVersioning const &  rhs 
)
inline

A helper function to avoid typos in the RPO configuration.

Definition at line 457 of file bucket_metadata.h.

◆ operator==() [8/18]

bool google::cloud::storage::operator== ( BucketWebsite const &  lhs,
BucketWebsite const &  rhs 
)
inline

A helper function to avoid typos in the RPO configuration.

Definition at line 498 of file bucket_metadata.h.

◆ operator==() [9/18]

bool google::cloud::storage::operator== ( CorsEntry const &  lhs,
CorsEntry const &  rhs 
)
inline

Definition at line 107 of file bucket_metadata.h.

◆ operator==() [10/18]

bool google::cloud::storage::operator== ( CustomerEncryption const &  lhs,
CustomerEncryption const &  rhs 
)
inline

Definition at line 57 of file object_metadata.h.

◆ operator==() [11/18]

bool google::cloud::storage::operator== ( HmacKeyMetadata const &  lhs,
HmacKeyMetadata const &  rhs 
)
inline

Definition at line 98 of file hmac_key_metadata.h.

◆ operator==() [12/18]

bool google::cloud::storage::operator== ( LifecycleRule const &  lhs,
LifecycleRule const &  rhs 
)
inline

Definition at line 348 of file lifecycle_rule.h.

◆ operator==() [13/18]

bool google::cloud::storage::operator== ( LifecycleRuleAction const &  lhs,
LifecycleRuleAction const &  rhs 
)
inline

Definition at line 45 of file lifecycle_rule.h.

◆ operator==() [14/18]

bool google::cloud::storage::operator== ( LifecycleRuleCondition const &  lhs,
LifecycleRuleCondition const &  rhs 
)

◆ operator==() [15/18]

bool google::cloud::storage::operator== ( NotificationMetadata const &  lhs,
NotificationMetadata const &  rhs 
)
inline

Definition at line 161 of file notification_metadata.h.

◆ operator==() [16/18]

bool google::cloud::storage::operator== ( PolicyDocumentCondition const &  lhs,
PolicyDocumentCondition const &  rhs 
)
inline

Definition at line 88 of file policy_document.h.

◆ operator==() [17/18]

bool google::cloud::storage::operator== ( ServiceAccount const &  lhs,
ServiceAccount const &  rhs 
)
inline

Definition at line 49 of file service_account.h.

◆ operator==() [18/18]

bool google::cloud::storage::operator== ( UniformBucketLevelAccess const &  lhs,
UniformBucketLevelAccess const &  rhs 
)
inline

Definition at line 160 of file bucket_metadata.h.

◆ operator>() [1/17]

bool google::cloud::storage::operator> ( BucketBilling const &  lhs,
BucketBilling const &  rhs 
)
inline

Definition at line 69 of file bucket_metadata.h.

◆ operator>() [2/17]

bool google::cloud::storage::operator> ( BucketEncryption const &  lhs,
BucketEncryption const &  rhs 
)
inline

A helper function to avoid typos in the RPO configuration.

Definition at line 371 of file bucket_metadata.h.

◆ operator>() [3/17]

bool google::cloud::storage::operator> ( BucketIamConfiguration const &  lhs,
BucketIamConfiguration const &  rhs 
)
inline

Definition at line 246 of file bucket_metadata.h.

◆ operator>() [4/17]

bool google::cloud::storage::operator> ( BucketLifecycle const &  lhs,
BucketLifecycle const &  rhs 
)
inline

A helper function to avoid typos in the RPO configuration.

Definition at line 288 of file bucket_metadata.h.

◆ operator>() [5/17]

bool google::cloud::storage::operator> ( BucketLogging const &  lhs,
BucketLogging const &  rhs 
)
inline

A helper function to avoid typos in the RPO configuration.

Definition at line 326 of file bucket_metadata.h.

◆ operator>() [6/17]

bool google::cloud::storage::operator> ( BucketRetentionPolicy const &  lhs,
BucketRetentionPolicy const &  rhs 
)
inline

A helper function to avoid typos in the RPO configuration.

Definition at line 421 of file bucket_metadata.h.

◆ operator>() [7/17]

bool google::cloud::storage::operator> ( BucketVersioning const &  lhs,
BucketVersioning const &  rhs 
)
inline

A helper function to avoid typos in the RPO configuration.

Definition at line 472 of file bucket_metadata.h.

◆ operator>() [8/17]

bool google::cloud::storage::operator> ( BucketWebsite const &  lhs,
BucketWebsite const &  rhs 
)
inline

A helper function to avoid typos in the RPO configuration.

Definition at line 512 of file bucket_metadata.h.

◆ operator>() [9/17]

bool google::cloud::storage::operator> ( CorsEntry const &  lhs,
CorsEntry const &  rhs 
)
inline

Definition at line 125 of file bucket_metadata.h.

◆ operator>() [10/17]

bool google::cloud::storage::operator> ( CustomerEncryption const &  lhs,
CustomerEncryption const &  rhs 
)
inline

Definition at line 74 of file object_metadata.h.

◆ operator>() [11/17]

bool google::cloud::storage::operator> ( LifecycleRule const &  lhs,
LifecycleRule const &  rhs 
)
inline

Definition at line 362 of file lifecycle_rule.h.

◆ operator>() [12/17]

bool google::cloud::storage::operator> ( LifecycleRuleAction const &  lhs,
LifecycleRuleAction const &  rhs 
)
inline

Definition at line 62 of file lifecycle_rule.h.

◆ operator>() [13/17]

bool google::cloud::storage::operator> ( LifecycleRuleCondition const &  lhs,
LifecycleRuleCondition const &  rhs 
)
inline

Definition at line 105 of file lifecycle_rule.h.

◆ operator>() [14/17]

bool google::cloud::storage::operator> ( NotificationMetadata const &  lhs,
NotificationMetadata const &  rhs 
)
inline

Definition at line 186 of file notification_metadata.h.

◆ operator>() [15/17]

bool google::cloud::storage::operator> ( PolicyDocumentCondition const &  lhs,
PolicyDocumentCondition const &  rhs 
)
inline

Definition at line 103 of file policy_document.h.

◆ operator>() [16/17]

bool google::cloud::storage::operator> ( ServiceAccount const &  lhs,
ServiceAccount const &  rhs 
)
inline

Definition at line 63 of file service_account.h.

◆ operator>() [17/17]

bool google::cloud::storage::operator> ( UniformBucketLevelAccess const &  lhs,
UniformBucketLevelAccess const &  rhs 
)
inline

Definition at line 177 of file bucket_metadata.h.

◆ operator>=() [1/17]

bool google::cloud::storage::operator>= ( BucketBilling const &  lhs,
BucketBilling const &  rhs 
)
inline

Definition at line 77 of file bucket_metadata.h.

◆ operator>=() [2/17]

bool google::cloud::storage::operator>= ( BucketEncryption const &  lhs,
BucketEncryption const &  rhs 
)
inline

A helper function to avoid typos in the RPO configuration.

Definition at line 381 of file bucket_metadata.h.

◆ operator>=() [3/17]

bool google::cloud::storage::operator>= ( BucketIamConfiguration const &  lhs,
BucketIamConfiguration const &  rhs 
)
inline

Definition at line 256 of file bucket_metadata.h.

◆ operator>=() [4/17]

bool google::cloud::storage::operator>= ( BucketLifecycle const &  lhs,
BucketLifecycle const &  rhs 
)
inline

A helper function to avoid typos in the RPO configuration.

Definition at line 296 of file bucket_metadata.h.

◆ operator>=() [5/17]

bool google::cloud::storage::operator>= ( BucketLogging const &  lhs,
BucketLogging const &  rhs 
)
inline

A helper function to avoid typos in the RPO configuration.

Definition at line 334 of file bucket_metadata.h.

◆ operator>=() [6/17]

bool google::cloud::storage::operator>= ( BucketRetentionPolicy const &  lhs,
BucketRetentionPolicy const &  rhs 
)
inline

A helper function to avoid typos in the RPO configuration.

Definition at line 431 of file bucket_metadata.h.

◆ operator>=() [7/17]

bool google::cloud::storage::operator>= ( BucketVersioning const &  lhs,
BucketVersioning const &  rhs 
)
inline

A helper function to avoid typos in the RPO configuration.

Definition at line 482 of file bucket_metadata.h.

◆ operator>=() [8/17]

bool google::cloud::storage::operator>= ( BucketWebsite const &  lhs,
BucketWebsite const &  rhs 
)
inline

A helper function to avoid typos in the RPO configuration.

Definition at line 520 of file bucket_metadata.h.

◆ operator>=() [9/17]

bool google::cloud::storage::operator>= ( CorsEntry const &  lhs,
CorsEntry const &  rhs 
)
inline

Definition at line 133 of file bucket_metadata.h.

◆ operator>=() [10/17]

bool google::cloud::storage::operator>= ( CustomerEncryption const &  lhs,
CustomerEncryption const &  rhs 
)
inline

Definition at line 84 of file object_metadata.h.

◆ operator>=() [11/17]

bool google::cloud::storage::operator>= ( LifecycleRule const &  lhs,
LifecycleRule const &  rhs 
)
inline

Definition at line 370 of file lifecycle_rule.h.

◆ operator>=() [12/17]

bool google::cloud::storage::operator>= ( LifecycleRuleAction const &  lhs,
LifecycleRuleAction const &  rhs 
)
inline

Definition at line 72 of file lifecycle_rule.h.

◆ operator>=() [13/17]

bool google::cloud::storage::operator>= ( LifecycleRuleCondition const &  lhs,
LifecycleRuleCondition const &  rhs 
)
inline

Definition at line 115 of file lifecycle_rule.h.

◆ operator>=() [14/17]

bool google::cloud::storage::operator>= ( NotificationMetadata const &  lhs,
NotificationMetadata const &  rhs 
)
inline

Definition at line 196 of file notification_metadata.h.

◆ operator>=() [15/17]

bool google::cloud::storage::operator>= ( PolicyDocumentCondition const &  lhs,
PolicyDocumentCondition const &  rhs 
)
inline

Definition at line 113 of file policy_document.h.

◆ operator>=() [16/17]

bool google::cloud::storage::operator>= ( ServiceAccount const &  lhs,
ServiceAccount const &  rhs 
)
inline

Definition at line 71 of file service_account.h.

◆ operator>=() [17/17]

bool google::cloud::storage::operator>= ( UniformBucketLevelAccess const &  lhs,
UniformBucketLevelAccess const &  rhs 
)
inline

Definition at line 187 of file bucket_metadata.h.

◆ ParallelUploadFile()

template<typename... Options>
StatusOr<ObjectMetadata> google::cloud::storage::ParallelUploadFile ( Client  client,
std::string  file_name,
std::string  bucket_name,
std::string  object_name,
std::string  prefix,
bool  ignore_cleanup_failures,
Options &&...  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.

Parameters
clientthe client on which to perform the operation.
file_namethe path to the file to be uploaded
bucket_namethe name of the bucket that will contain the object.
object_namethe uploaded object name.
prefixthe prefix with which temporary objects will be created.
ignore_cleanup_failurestreat failures to cleanup the temporary objects as not fatal.
optionsa 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`.
Returns
the metadata of the object created by the upload.
Idempotency
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::runtime_error(metadata.status().message());
std::cout << "Uploaded " << file_name << " to object " << metadata->name()
<< " in bucket " << metadata->bucket()
<< "\nFull metadata: " << *metadata << "\n";
}
StatusOr< ObjectMetadata > ParallelUploadFile(Client client, std::string file_name, std::string bucket_name, std::string object_name, std::string prefix, bool ignore_cleanup_failures, Options &&... options)
Perform a parallel upload of a given file.

Definition at line 1161 of file parallel_upload.h.

◆ PublicAccessPreventionEnforced()

std::string google::cloud::storage::PublicAccessPreventionEnforced ( )
inline

Definition at line 217 of file bucket_metadata.h.

◆ PublicAccessPreventionInherited()

std::string google::cloud::storage::PublicAccessPreventionInherited ( )
inline

Definition at line 218 of file bucket_metadata.h.

◆ PublicAccessPreventionUnspecified()

std::string google::cloud::storage::PublicAccessPreventionUnspecified ( )
inline

Definition at line 220 of file bucket_metadata.h.

◆ RestoreResumableUploadSession()

UseResumableUploadSession google::cloud::storage::RestoreResumableUploadSession ( std::string  session_id)
inline

Create a UseResumableUploadSession option that restores previous sessions.

Definition at line 48 of file upload_options.h.

◆ RpoAsyncTurbo()

std::string google::cloud::storage::RpoAsyncTurbo ( )
inline

A helper function to avoid typos in the RPO configuration.

Definition at line 442 of file bucket_metadata.h.

◆ RpoDefault()

std::string google::cloud::storage::RpoDefault ( )
inline

A helper function to avoid typos in the RPO configuration.

Definition at line 439 of file bucket_metadata.h.

◆ version()

constexpr int google::cloud::storage::version ( )
constexpr

Returns a single integer representing the Major/Minor/Patch version.

Definition at line 68 of file version.h.

◆ version_major()

constexpr int google::cloud::storage::version_major ( )
constexpr

Returns the Google Cloud Storage C++ Client major version.

See also
https://semver.org/spec/v2.0.0.html for details.

Definition at line 51 of file version.h.

◆ version_minor()

constexpr int google::cloud::storage::version_minor ( )
constexpr

Returns the Google Cloud Storage C++ Client minor version.

See also
https://semver.org/spec/v2.0.0.html for details.

Definition at line 58 of file version.h.

◆ version_patch()

constexpr int google::cloud::storage::version_patch ( )
constexpr

Returns the Google Cloud Storage C++ Client patch version.

See also
https://semver.org/spec/v2.0.0.html for details.

Definition at line 65 of file version.h.

◆ version_string()

std::string google::cloud::storage::version_string ( )

Returns the version as a string, in MAJOR.MINOR.PATCH+gitrev format.

◆ WithAcl()

SubResourceOption google::cloud::storage::WithAcl ( )
inline

Definition at line 121 of file signed_url_options.h.

◆ WithBilling()

SubResourceOption google::cloud::storage::WithBilling ( )
inline

Definition at line 123 of file signed_url_options.h.

◆ WithCompose()

SubResourceOption google::cloud::storage::WithCompose ( )
inline

Definition at line 125 of file signed_url_options.h.

◆ WithCors()

SubResourceOption google::cloud::storage::WithCors ( )
inline

Definition at line 127 of file signed_url_options.h.

◆ WithEncryption()

SubResourceOption google::cloud::storage::WithEncryption ( )
inline

Definition at line 129 of file signed_url_options.h.

◆ WithEncryptionConfig()

SubResourceOption google::cloud::storage::WithEncryptionConfig ( )
inline

Definition at line 133 of file signed_url_options.h.

◆ WithGeneration()

AddQueryParameterOption google::cloud::storage::WithGeneration ( std::uint64_t  generation)
inline

Definition at line 81 of file signed_url_options.h.

◆ WithGenerationMarker()

AddQueryParameterOption google::cloud::storage::WithGenerationMarker ( std::uint64_t  generation)
inline

Definition at line 85 of file signed_url_options.h.

◆ WithLifecycle()

SubResourceOption google::cloud::storage::WithLifecycle ( )
inline

Definition at line 137 of file signed_url_options.h.

◆ WithLocation()

SubResourceOption google::cloud::storage::WithLocation ( )
inline

Definition at line 141 of file signed_url_options.h.

◆ WithLogging()

SubResourceOption google::cloud::storage::WithLogging ( )
inline

Definition at line 145 of file signed_url_options.h.

◆ WithMarker()

AddQueryParameterOption google::cloud::storage::WithMarker ( std::string  marker)
inline

Definition at line 94 of file signed_url_options.h.

◆ WithResponseContentDisposition()

AddQueryParameterOption google::cloud::storage::WithResponseContentDisposition ( std::string  disposition)
inline

Definition at line 98 of file signed_url_options.h.

◆ WithResponseContentType()

AddQueryParameterOption google::cloud::storage::WithResponseContentType ( std::string const &  type)
inline

Definition at line 104 of file signed_url_options.h.

◆ WithStorageClass()

SubResourceOption google::cloud::storage::WithStorageClass ( )
inline

Definition at line 147 of file signed_url_options.h.

◆ WithTagging()

SubResourceOption google::cloud::storage::WithTagging ( )
inline

Definition at line 151 of file signed_url_options.h.

◆ WithUserProject()

AddQueryParameterOption google::cloud::storage::WithUserProject ( std::string  user_project)
inline

Definition at line 90 of file signed_url_options.h.

◆ x_goog_api_client()

std::string google::cloud::storage::x_goog_api_client ( )

Returns the value for x-goog-api-client header.