|
storage
v1
|
#include <object.h>
Classes | |
| class | ObjectCustomerEncryption |
| class | ObjectOwner |
Public Member Functions | |
| Object (const Json::Value &storage) | |
| Object (Json::Value *storage) | |
| virtual | ~Object () |
| const StringPiece | GetTypeName () const |
| bool | has_acl () const |
| void | clear_acl () |
| const client::JsonCppArray< ObjectAccessControl > | get_acl () const |
| client::JsonCppArray< ObjectAccessControl > | mutable_acl () |
| bool | has_bucket () const |
| void | clear_bucket () |
| const StringPiece | get_bucket () const |
| void | set_bucket (const StringPiece &value) |
| bool | has_cache_control () const |
| void | clear_cache_control () |
| const StringPiece | get_cache_control () const |
| void | set_cache_control (const StringPiece &value) |
| bool | has_component_count () const |
| void | clear_component_count () |
| int32 | get_component_count () const |
| void | set_component_count (int32 value) |
| bool | has_content_disposition () const |
| void | clear_content_disposition () |
| const StringPiece | get_content_disposition () const |
| void | set_content_disposition (const StringPiece &value) |
| bool | has_content_encoding () const |
| void | clear_content_encoding () |
| const StringPiece | get_content_encoding () const |
| void | set_content_encoding (const StringPiece &value) |
| bool | has_content_language () const |
| void | clear_content_language () |
| const StringPiece | get_content_language () const |
| void | set_content_language (const StringPiece &value) |
| bool | has_content_type () const |
| void | clear_content_type () |
| const StringPiece | get_content_type () const |
| void | set_content_type (const StringPiece &value) |
| bool | has_crc32c () const |
| void | clear_crc32c () |
| const StringPiece | get_crc32c () const |
| void | set_crc32c (const StringPiece &value) |
| bool | has_customer_encryption () const |
| void | clear_customer_encryption () |
| const ObjectCustomerEncryption | get_customer_encryption () const |
| ObjectCustomerEncryption | mutable_customerEncryption () |
| bool | has_etag () const |
| void | clear_etag () |
| const StringPiece | get_etag () const |
| void | set_etag (const StringPiece &value) |
| bool | has_event_based_hold () const |
| void | clear_event_based_hold () |
| bool | get_event_based_hold () const |
| void | set_event_based_hold (bool value) |
| bool | has_generation () const |
| void | clear_generation () |
| int64 | get_generation () const |
| void | set_generation (int64 value) |
| bool | has_id () const |
| void | clear_id () |
| const StringPiece | get_id () const |
| void | set_id (const StringPiece &value) |
| bool | has_kind () const |
| void | clear_kind () |
| const StringPiece | get_kind () const |
| void | set_kind (const StringPiece &value) |
| bool | has_kms_key_name () const |
| void | clear_kms_key_name () |
| const StringPiece | get_kms_key_name () const |
| void | set_kms_key_name (const StringPiece &value) |
| bool | has_md5_hash () const |
| void | clear_md5_hash () |
| const StringPiece | get_md5_hash () const |
| void | set_md5_hash (const StringPiece &value) |
| bool | has_media_link () const |
| void | clear_media_link () |
| const StringPiece | get_media_link () const |
| void | set_media_link (const StringPiece &value) |
| bool | has_metadata () const |
| void | clear_metadata () |
| const client::JsonCppAssociativeArray< string > | get_metadata () const |
| client::JsonCppAssociativeArray< string > | mutable_metadata () |
| bool | has_metageneration () const |
| void | clear_metageneration () |
| int64 | get_metageneration () const |
| void | set_metageneration (int64 value) |
| bool | has_name () const |
| void | clear_name () |
| const StringPiece | get_name () const |
| void | set_name (const StringPiece &value) |
| bool | has_owner () const |
| void | clear_owner () |
| const ObjectOwner | get_owner () const |
| ObjectOwner | mutable_owner () |
| bool | has_retention_expiration_time () const |
| void | clear_retention_expiration_time () |
| client::DateTime | get_retention_expiration_time () const |
| void | set_retention_expiration_time (client::DateTime value) |
| bool | has_self_link () const |
| void | clear_self_link () |
| const StringPiece | get_self_link () const |
| void | set_self_link (const StringPiece &value) |
| bool | has_size () const |
| void | clear_size () |
| uint64 | get_size () const |
| void | set_size (uint64 value) |
| bool | has_storage_class () const |
| void | clear_storage_class () |
| const StringPiece | get_storage_class () const |
| void | set_storage_class (const StringPiece &value) |
| bool | has_temporary_hold () const |
| void | clear_temporary_hold () |
| bool | get_temporary_hold () const |
| void | set_temporary_hold (bool value) |
| bool | has_time_created () const |
| void | clear_time_created () |
| client::DateTime | get_time_created () const |
| void | set_time_created (client::DateTime value) |
| bool | has_time_deleted () const |
| void | clear_time_deleted () |
| client::DateTime | get_time_deleted () const |
| void | set_time_deleted (client::DateTime value) |
| bool | has_time_storage_class_updated () const |
| void | clear_time_storage_class_updated () |
| client::DateTime | get_time_storage_class_updated () const |
| void | set_time_storage_class_updated (client::DateTime value) |
| bool | has_updated () const |
| void | clear_updated () |
| client::DateTime | get_updated () const |
| void | set_updated (client::DateTime value) |
Static Public Member Functions | |
| static Object * | New () |
An object.
|
explicit |
Standard constructor for an immutable data object instance.
| [in] | storage | The underlying data storage for this instance. |
|
explicit |
Standard constructor for a mutable data object instance.
| [in] | storage | The underlying data storage for this instance. |
|
virtual |
Standard destructor.
|
inline |
Clears the 'acl' attribute.
|
inline |
Clears the 'bucket' attribute.
|
inline |
Clears the 'cacheControl' attribute.
|
inline |
Clears the 'componentCount' attribute.
|
inline |
Clears the 'contentDisposition' attribute.
|
inline |
Clears the 'contentEncoding' attribute.
|
inline |
Clears the 'contentLanguage' attribute.
|
inline |
Clears the 'contentType' attribute.
|
inline |
Clears the 'crc32c' attribute.
|
inline |
Clears the 'customerEncryption' attribute.
|
inline |
Clears the 'etag' attribute.
|
inline |
Clears the 'eventBasedHold' attribute.
|
inline |
Clears the 'generation' attribute.
|
inline |
Clears the 'id' attribute.
|
inline |
Clears the 'kind' attribute.
|
inline |
Clears the 'kmsKeyName' attribute.
|
inline |
Clears the 'md5Hash' attribute.
|
inline |
Clears the 'mediaLink' attribute.
|
inline |
Clears the 'metadata' attribute.
|
inline |
Clears the 'metageneration' attribute.
|
inline |
Clears the 'name' attribute.
|
inline |
Clears the 'owner' attribute.
|
inline |
Clears the 'retentionExpirationTime' attribute.
|
inline |
Clears the 'selfLink' attribute.
|
inline |
Clears the 'size' attribute.
|
inline |
Clears the 'storageClass' attribute.
|
inline |
Clears the 'temporaryHold' attribute.
|
inline |
Clears the 'timeCreated' attribute.
|
inline |
Clears the 'timeDeleted' attribute.
|
inline |
Clears the 'timeStorageClassUpdated' attribute.
|
inline |
Clears the 'updated' attribute.
| const client::JsonCppArray<ObjectAccessControl > google_storage_api::Object::get_acl | ( | ) | const |
Get a reference to the value of the 'acl' attribute.
|
inline |
Get the value of the 'bucket' attribute.
|
inline |
Get the value of the 'cacheControl' attribute.
|
inline |
Get the value of the 'componentCount' attribute.
|
inline |
Get the value of the 'contentDisposition' attribute.
|
inline |
Get the value of the 'contentEncoding' attribute.
|
inline |
Get the value of the 'contentLanguage' attribute.
|
inline |
Get the value of the 'contentType' attribute.
|
inline |
Get the value of the 'crc32c' attribute.
|
inline |
Get a reference to the value of the 'customerEncryption' attribute.
|
inline |
Get the value of the 'etag' attribute.
|
inline |
Get the value of the 'eventBasedHold' attribute.
|
inline |
Get the value of the 'generation' attribute.
|
inline |
Get the value of the 'id' attribute.
|
inline |
Get the value of the 'kind' attribute.
|
inline |
Get the value of the 'kmsKeyName' attribute.
|
inline |
Get the value of the 'md5Hash' attribute.
|
inline |
Get the value of the 'mediaLink' attribute.
|
inline |
Get a reference to the value of the 'metadata' attribute.
|
inline |
Get the value of the 'metageneration' attribute.
|
inline |
Get the value of the 'name' attribute.
|
inline |
Get a reference to the value of the 'owner' attribute.
|
inline |
Get the value of the 'retentionExpirationTime' attribute.
|
inline |
Get the value of the 'selfLink' attribute.
|
inline |
Get the value of the 'size' attribute.
|
inline |
Get the value of the 'storageClass' attribute.
|
inline |
Get the value of the 'temporaryHold' attribute.
|
inline |
Get the value of the 'timeCreated' attribute.
|
inline |
Get the value of the 'timeDeleted' attribute.
|
inline |
Get the value of the 'timeStorageClassUpdated' attribute.
|
inline |
Get the value of the 'updated' attribute.
|
inline |
Returns a string denoting the type of this data object.
google_storage_api::Object
|
inline |
Determine if the 'acl' attribute was set.
acl' attribute was set.
|
inline |
Determine if the 'bucket' attribute was set.
bucket' attribute was set.
|
inline |
Determine if the 'cacheControl' attribute was set.
cacheControl' attribute was set.
|
inline |
Determine if the 'componentCount' attribute was set.
componentCount' attribute was set.
|
inline |
Determine if the 'contentDisposition' attribute was set.
contentDisposition' attribute was set.
|
inline |
Determine if the 'contentEncoding' attribute was set.
contentEncoding' attribute was set.
|
inline |
Determine if the 'contentLanguage' attribute was set.
contentLanguage' attribute was set.
|
inline |
Determine if the 'contentType' attribute was set.
contentType' attribute was set.
|
inline |
Determine if the 'crc32c' attribute was set.
crc32c' attribute was set.
|
inline |
Determine if the 'customerEncryption' attribute was set.
customerEncryption' attribute was set.
|
inline |
Determine if the 'etag' attribute was set.
etag' attribute was set.
|
inline |
Determine if the 'eventBasedHold' attribute was set.
eventBasedHold' attribute was set.
|
inline |
Determine if the 'generation' attribute was set.
generation' attribute was set.
|
inline |
Determine if the 'id' attribute was set.
id' attribute was set.
|
inline |
Determine if the 'kind' attribute was set.
kind' attribute was set.
|
inline |
Determine if the 'kmsKeyName' attribute was set.
kmsKeyName' attribute was set.
|
inline |
Determine if the 'md5Hash' attribute was set.
md5Hash' attribute was set.
|
inline |
Determine if the 'mediaLink' attribute was set.
mediaLink' attribute was set.
|
inline |
Determine if the 'metadata' attribute was set.
metadata' attribute was set.
|
inline |
Determine if the 'metageneration' attribute was set.
metageneration' attribute was set.
|
inline |
Determine if the 'name' attribute was set.
name' attribute was set.
|
inline |
Determine if the 'owner' attribute was set.
owner' attribute was set.
|
inline |
Determine if the 'retentionExpirationTime' attribute was set.
retentionExpirationTime' attribute was set.
|
inline |
Determine if the 'selfLink' attribute was set.
selfLink' attribute was set.
|
inline |
Determine if the 'size' attribute was set.
size' attribute was set.
|
inline |
Determine if the 'storageClass' attribute was set.
storageClass' attribute was set.
|
inline |
Determine if the 'temporaryHold' attribute was set.
temporaryHold' attribute was set.
|
inline |
Determine if the 'timeCreated' attribute was set.
timeCreated' attribute was set.
|
inline |
Determine if the 'timeDeleted' attribute was set.
timeDeleted' attribute was set.
|
inline |
Determine if the 'timeStorageClassUpdated' attribute was set.
timeStorageClassUpdated' attribute was set.
|
inline |
Determine if the 'updated' attribute was set.
updated' attribute was set. | client::JsonCppArray<ObjectAccessControl > google_storage_api::Object::mutable_acl | ( | ) |
Gets a reference to a mutable value of the 'acl' property.
Access controls on the object.
|
inline |
Gets a reference to a mutable value of the 'customerEncryption' property.
Metadata of customer-supplied encryption key, if the object is encrypted by such a key.
|
inline |
Gets a reference to a mutable value of the 'metadata' property.
User-provided metadata, in key/value pairs.
|
inline |
Gets a reference to a mutable value of the 'owner' property.
The owner of the object. This will always be the uploader of the object.
|
static |
Creates a new default instance.
|
inline |
Change the 'bucket' attribute.
The name of the bucket containing this object.
| [in] | value | The new value. |
|
inline |
Change the 'cacheControl' attribute.
Cache-Control directive for the object data. If omitted, and the object is accessible to all anonymous users, the default will be public, max- age=3600.
| [in] | value | The new value. |
|
inline |
Change the 'componentCount' attribute.
Number of underlying components that make up this object. Components are accumulated by compose operations.
| [in] | value | The new value. |
|
inline |
Change the 'contentDisposition' attribute.
Content-Disposition of the object data.
| [in] | value | The new value. |
|
inline |
Change the 'contentEncoding' attribute.
Content-Encoding of the object data.
| [in] | value | The new value. |
|
inline |
Change the 'contentLanguage' attribute.
Content-Language of the object data.
| [in] | value | The new value. |
|
inline |
Change the 'contentType' attribute.
Content-Type of the object data. If an object is stored without a Content- Type, it is served as application/octet-stream.
| [in] | value | The new value. |
|
inline |
Change the 'crc32c' attribute.
CRC32c checksum, as described in RFC 4960, Appendix B; encoded using base64 in big-endian byte order. For more information about using the CRC32c checksum, see Hashes and ETags: Best Practices.
| [in] | value | The new value. |
|
inline |
Change the 'etag' attribute.
HTTP 1.1 Entity tag for the object.
| [in] | value | The new value. |
|
inline |
Change the 'eventBasedHold' attribute.
Whether an object is under event-based hold. Event-based hold is a way to retain objects until an event occurs, which is signified by the hold's release (i.e. this value is set to false). After being released (set to false), such objects will be subject to bucket-level retention (if any). One sample use case of this flag is for banks to hold loan documents for at least 3 years after loan is paid in full. Here, bucket-level retention is 3 years and the event is the loan being paid in full. In this example, these objects will be held intact for any number of years until the event has occurred (event-based hold on the object is released) and then 3 more years after that. That means retention duration of the objects begins from the moment event-based hold transitioned from true to false.
| [in] | value | The new value. |
|
inline |
Change the 'generation' attribute.
The content generation of this object. Used for object versioning.
| [in] | value | The new value. |
|
inline |
Change the 'id' attribute.
The ID of the object, including the bucket name, object name, and generation number.
| [in] | value | The new value. |
|
inline |
Change the 'kind' attribute.
The kind of item this is. For objects, this is always storage::object.
| [in] | value | The new value. |
|
inline |
Change the 'kmsKeyName' attribute.
Cloud KMS Key used to encrypt this object, if the object is encrypted by such a key.
| [in] | value | The new value. |
|
inline |
Change the 'md5Hash' attribute.
MD5 hash of the data; encoded using base64. For more information about using the MD5 hash, see Hashes and ETags: Best Practices.
| [in] | value | The new value. |
|
inline |
Change the 'mediaLink' attribute.
Media download link.
| [in] | value | The new value. |
|
inline |
Change the 'metageneration' attribute.
The version of the metadata for this object at this generation. Used for preconditions and for detecting changes in metadata. A metageneration number is only meaningful in the context of a particular generation of a particular object.
| [in] | value | The new value. |
|
inline |
Change the 'name' attribute.
The name of the object. Required if not specified by URL parameter.
| [in] | value | The new value. |
|
inline |
Change the 'retentionExpirationTime' attribute.
A server-determined value that specifies the earliest time that the object's retention period expires. This value is in RFC 3339 format. Note 1: This field is not provided for objects with an active event-based hold, since retention expiration is unknown until the hold is removed. Note 2: This value can be provided even when temporary hold is set (so that the user can reason about policy without having to first unset the temporary hold).
| [in] | value | The new value. |
|
inline |
Change the 'selfLink' attribute.
The link to this object.
| [in] | value | The new value. |
|
inline |
Change the 'size' attribute.
Content-Length of the data in bytes.
| [in] | value | The new value. |
|
inline |
Change the 'storageClass' attribute.
Storage class of the object.
| [in] | value | The new value. |
|
inline |
Change the 'temporaryHold' attribute.
Whether an object is under temporary hold. While this flag is set to true, the object is protected against deletion and overwrites. A common use case of this flag is regulatory investigations where objects need to be retained while the investigation is ongoing. Note that unlike event-based hold, temporary hold does not impact retention expiration time of an object.
| [in] | value | The new value. |
|
inline |
Change the 'timeCreated' attribute.
The creation time of the object in RFC 3339 format.
| [in] | value | The new value. |
|
inline |
Change the 'timeDeleted' attribute.
The deletion time of the object in RFC 3339 format. Will be returned if and only if this version of the object has been deleted.
| [in] | value | The new value. |
|
inline |
Change the 'timeStorageClassUpdated' attribute.
The time at which the object's storage class was last changed. When the object is initially created, it will be set to timeCreated.
| [in] | value | The new value. |
|
inline |
Change the 'updated' attribute.
The modification time of the object metadata in RFC 3339 format.
| [in] | value | The new value. |