Show / Hide Table of Contents

Class Object

An object.

Inheritance
object
Object
Implements
IDirectResponseSchema
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.Storage.v1.Data
Assembly: Google.Apis.Storage.v1.dll
Syntax
public class Object : IDirectResponseSchema

Properties

Acl

Access controls on the object.

Declaration
[JsonProperty("acl")]
public virtual IList<ObjectAccessControl> Acl { get; set; }
Property Value
Type Description
IList<ObjectAccessControl>

Bucket

The name of the bucket containing this object.

Declaration
[JsonProperty("bucket")]
public virtual string Bucket { get; set; }
Property Value
Type Description
string

CacheControl

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.

Declaration
[JsonProperty("cacheControl")]
public virtual string CacheControl { get; set; }
Property Value
Type Description
string

ComponentCount

Number of underlying components that make up this object. Components are accumulated by compose operations.

Declaration
[JsonProperty("componentCount")]
public virtual int? ComponentCount { get; set; }
Property Value
Type Description
int?

ContentDisposition

Content-Disposition of the object data.

Declaration
[JsonProperty("contentDisposition")]
public virtual string ContentDisposition { get; set; }
Property Value
Type Description
string

ContentEncoding

Content-Encoding of the object data.

Declaration
[JsonProperty("contentEncoding")]
public virtual string ContentEncoding { get; set; }
Property Value
Type Description
string

ContentLanguage

Content-Language of the object data.

Declaration
[JsonProperty("contentLanguage")]
public virtual string ContentLanguage { get; set; }
Property Value
Type Description
string

ContentType

Content-Type of the object data. If an object is stored without a Content-Type, it is served as application/octet-stream.

Declaration
[JsonProperty("contentType")]
public virtual string ContentType { get; set; }
Property Value
Type Description
string

Crc32c

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 Data Validation and Change Detection.

Declaration
[JsonProperty("crc32c")]
public virtual string Crc32c { get; set; }
Property Value
Type Description
string

CustomTime

DateTime representation of CustomTimeRaw.

Declaration
[JsonIgnore]
[Obsolete("This property is obsolete and may behave unexpectedly; please use CustomTimeDateTimeOffset instead.")]
public virtual DateTime? CustomTime { get; set; }
Property Value
Type Description
DateTime?

CustomTimeDateTimeOffset

DateTimeOffset representation of CustomTimeRaw.

Declaration
[JsonIgnore]
public virtual DateTimeOffset? CustomTimeDateTimeOffset { get; set; }
Property Value
Type Description
DateTimeOffset?

CustomTimeRaw

A timestamp in RFC 3339 format specified by the user for an object.

Declaration
[JsonProperty("customTime")]
public virtual string CustomTimeRaw { get; set; }
Property Value
Type Description
string

CustomerEncryption

Metadata of customer-supplied encryption key, if the object is encrypted by such a key.

Declaration
[JsonProperty("customerEncryption")]
public virtual Object.CustomerEncryptionData CustomerEncryption { get; set; }
Property Value
Type Description
Object.CustomerEncryptionData

ETag

HTTP 1.1 Entity tag for the object.

Declaration
[JsonProperty("etag")]
public virtual string ETag { get; set; }
Property Value
Type Description
string

EventBasedHold

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.

Declaration
[JsonProperty("eventBasedHold")]
public virtual bool? EventBasedHold { get; set; }
Property Value
Type Description
bool?

Generation

The content generation of this object. Used for object versioning.

Declaration
[JsonProperty("generation")]
public virtual long? Generation { get; set; }
Property Value
Type Description
long?

HardDeleteTime

DateTime representation of HardDeleteTimeRaw.

Declaration
[JsonIgnore]
[Obsolete("This property is obsolete and may behave unexpectedly; please use HardDeleteTimeDateTimeOffset instead.")]
public virtual DateTime? HardDeleteTime { get; set; }
Property Value
Type Description
DateTime?

HardDeleteTimeDateTimeOffset

DateTimeOffset representation of HardDeleteTimeRaw.

Declaration
[JsonIgnore]
public virtual DateTimeOffset? HardDeleteTimeDateTimeOffset { get; set; }
Property Value
Type Description
DateTimeOffset?

HardDeleteTimeRaw

This is the time (in the future) when the soft-deleted object will no longer be restorable. It is equal to the soft delete time plus the current soft delete retention duration of the bucket.

Declaration
[JsonProperty("hardDeleteTime")]
public virtual string HardDeleteTimeRaw { get; set; }
Property Value
Type Description
string

Id

The ID of the object, including the bucket name, object name, and generation number.

Declaration
[JsonProperty("id")]
public virtual string Id { get; set; }
Property Value
Type Description
string

Kind

The kind of item this is. For objects, this is always storage#object.

Declaration
[JsonProperty("kind")]
public virtual string Kind { get; set; }
Property Value
Type Description
string

KmsKeyName

Not currently supported. Specifying the parameter causes the request to fail with status code 400 - Bad Request.

Declaration
[JsonProperty("kmsKeyName")]
public virtual string KmsKeyName { get; set; }
Property Value
Type Description
string

Md5Hash

MD5 hash of the data; encoded using base64. For more information about using the MD5 hash, see Data Validation and Change Detection.

Declaration
[JsonProperty("md5Hash")]
public virtual string Md5Hash { get; set; }
Property Value
Type Description
string

MediaLink

Media download link.

Declaration
[JsonProperty("mediaLink")]
public virtual string MediaLink { get; set; }
Property Value
Type Description
string

Metadata

User-provided metadata, in key/value pairs.

Declaration
[JsonProperty("metadata")]
public virtual IDictionary<string, string> Metadata { get; set; }
Property Value
Type Description
IDictionary<string, string>

Metageneration

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.

Declaration
[JsonProperty("metageneration")]
public virtual long? Metageneration { get; set; }
Property Value
Type Description
long?

Name

The name of the object. Required if not specified by URL parameter.

Declaration
[JsonProperty("name")]
public virtual string Name { get; set; }
Property Value
Type Description
string

Owner

The owner of the object. This will always be the uploader of the object.

Declaration
[JsonProperty("owner")]
public virtual Object.OwnerData Owner { get; set; }
Property Value
Type Description
Object.OwnerData

RestoreToken

Restore token used to differentiate deleted objects with the same name and generation. This field is only returned for deleted objects in hierarchical namespace buckets.

Declaration
[JsonProperty("restoreToken")]
public virtual string RestoreToken { get; set; }
Property Value
Type Description
string

Retention

A collection of object level retention parameters.

Declaration
[JsonProperty("retention")]
public virtual Object.RetentionData Retention { get; set; }
Property Value
Type Description
Object.RetentionData

RetentionExpirationTime

DateTime representation of RetentionExpirationTimeRaw.

Declaration
[JsonIgnore]
[Obsolete("This property is obsolete and may behave unexpectedly; please use RetentionExpirationTimeDateTimeOffset instead.")]
public virtual DateTime? RetentionExpirationTime { get; set; }
Property Value
Type Description
DateTime?

RetentionExpirationTimeDateTimeOffset

DateTimeOffset representation of RetentionExpirationTimeRaw.

Declaration
[JsonIgnore]
public virtual DateTimeOffset? RetentionExpirationTimeDateTimeOffset { get; set; }
Property Value
Type Description
DateTimeOffset?

RetentionExpirationTimeRaw

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).

Declaration
[JsonProperty("retentionExpirationTime")]
public virtual string RetentionExpirationTimeRaw { get; set; }
Property Value
Type Description
string

SelfLink

The link to this object.

Declaration
[JsonProperty("selfLink")]
public virtual string SelfLink { get; set; }
Property Value
Type Description
string

Size

Content-Length of the data in bytes.

Declaration
[JsonProperty("size")]
public virtual ulong? Size { get; set; }
Property Value
Type Description
ulong?

SoftDeleteTime

DateTime representation of SoftDeleteTimeRaw.

Declaration
[JsonIgnore]
[Obsolete("This property is obsolete and may behave unexpectedly; please use SoftDeleteTimeDateTimeOffset instead.")]
public virtual DateTime? SoftDeleteTime { get; set; }
Property Value
Type Description
DateTime?

SoftDeleteTimeDateTimeOffset

DateTimeOffset representation of SoftDeleteTimeRaw.

Declaration
[JsonIgnore]
public virtual DateTimeOffset? SoftDeleteTimeDateTimeOffset { get; set; }
Property Value
Type Description
DateTimeOffset?

SoftDeleteTimeRaw

The time at which the object became soft-deleted in RFC 3339 format.

Declaration
[JsonProperty("softDeleteTime")]
public virtual string SoftDeleteTimeRaw { get; set; }
Property Value
Type Description
string

StorageClass

Storage class of the object.

Declaration
[JsonProperty("storageClass")]
public virtual string StorageClass { get; set; }
Property Value
Type Description
string

TemporaryHold

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.

Declaration
[JsonProperty("temporaryHold")]
public virtual bool? TemporaryHold { get; set; }
Property Value
Type Description
bool?

TimeCreated

DateTime representation of TimeCreatedRaw.

Declaration
[JsonIgnore]
[Obsolete("This property is obsolete and may behave unexpectedly; please use TimeCreatedDateTimeOffset instead.")]
public virtual DateTime? TimeCreated { get; set; }
Property Value
Type Description
DateTime?

TimeCreatedDateTimeOffset

DateTimeOffset representation of TimeCreatedRaw.

Declaration
[JsonIgnore]
public virtual DateTimeOffset? TimeCreatedDateTimeOffset { get; set; }
Property Value
Type Description
DateTimeOffset?

TimeCreatedRaw

The creation time of the object in RFC 3339 format.

Declaration
[JsonProperty("timeCreated")]
public virtual string TimeCreatedRaw { get; set; }
Property Value
Type Description
string

TimeDeleted

DateTime representation of TimeDeletedRaw.

Declaration
[JsonIgnore]
[Obsolete("This property is obsolete and may behave unexpectedly; please use TimeDeletedDateTimeOffset instead.")]
public virtual DateTime? TimeDeleted { get; set; }
Property Value
Type Description
DateTime?

TimeDeletedDateTimeOffset

DateTimeOffset representation of TimeDeletedRaw.

Declaration
[JsonIgnore]
public virtual DateTimeOffset? TimeDeletedDateTimeOffset { get; set; }
Property Value
Type Description
DateTimeOffset?

TimeDeletedRaw

The time at which the object became noncurrent in RFC 3339 format. Will be returned if and only if this version of the object has been deleted.

Declaration
[JsonProperty("timeDeleted")]
public virtual string TimeDeletedRaw { get; set; }
Property Value
Type Description
string

TimeFinalized

DateTime representation of TimeFinalizedRaw.

Declaration
[JsonIgnore]
[Obsolete("This property is obsolete and may behave unexpectedly; please use TimeFinalizedDateTimeOffset instead.")]
public virtual DateTime? TimeFinalized { get; set; }
Property Value
Type Description
DateTime?

TimeFinalizedDateTimeOffset

DateTimeOffset representation of TimeFinalizedRaw.

Declaration
[JsonIgnore]
public virtual DateTimeOffset? TimeFinalizedDateTimeOffset { get; set; }
Property Value
Type Description
DateTimeOffset?

TimeFinalizedRaw

The time when the object was finalized.

Declaration
[JsonProperty("timeFinalized")]
public virtual string TimeFinalizedRaw { get; set; }
Property Value
Type Description
string

TimeStorageClassUpdated

DateTime representation of TimeStorageClassUpdatedRaw.

Declaration
[JsonIgnore]
[Obsolete("This property is obsolete and may behave unexpectedly; please use TimeStorageClassUpdatedDateTimeOffset instead.")]
public virtual DateTime? TimeStorageClassUpdated { get; set; }
Property Value
Type Description
DateTime?

TimeStorageClassUpdatedDateTimeOffset

DateTimeOffset representation of TimeStorageClassUpdatedRaw.

Declaration
[JsonIgnore]
public virtual DateTimeOffset? TimeStorageClassUpdatedDateTimeOffset { get; set; }
Property Value
Type Description
DateTimeOffset?

TimeStorageClassUpdatedRaw

The time at which the object's storage class was last changed. When the object is initially created, it will be set to timeCreated.

Declaration
[JsonProperty("timeStorageClassUpdated")]
public virtual string TimeStorageClassUpdatedRaw { get; set; }
Property Value
Type Description
string

Updated

DateTime representation of UpdatedRaw.

Declaration
[JsonIgnore]
[Obsolete("This property is obsolete and may behave unexpectedly; please use UpdatedDateTimeOffset instead.")]
public virtual DateTime? Updated { get; set; }
Property Value
Type Description
DateTime?

UpdatedDateTimeOffset

DateTimeOffset representation of UpdatedRaw.

Declaration
[JsonIgnore]
public virtual DateTimeOffset? UpdatedDateTimeOffset { get; set; }
Property Value
Type Description
DateTimeOffset?

UpdatedRaw

The modification time of the object metadata in RFC 3339 format. Set initially to object creation time and then updated whenever any metadata of the object changes. This includes changes made by a requester, such as modifying custom metadata, as well as changes made by Cloud Storage on behalf of a requester, such as changing the storage class based on an Object Lifecycle Configuration.

Declaration
[JsonProperty("updated")]
public virtual string UpdatedRaw { get; set; }
Property Value
Type Description
string

Implements

IDirectResponseSchema
In this article
Back to top Generated by DocFX