GoogleApi.Storage.V1.Model.Object (google_api_storage v0.29.0) View Source

An object.

Attributes

  • acl (type: list(GoogleApi.Storage.V1.Model.ObjectAccessControl.t), default: nil) - Access controls on the object.
  • bucket (type: String.t, default: nil) - The name of the bucket containing this object.
  • cacheControl (type: String.t, default: nil) - 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.
  • componentCount (type: integer(), default: nil) - Number of underlying components that make up this object. Components are accumulated by compose operations.
  • contentDisposition (type: String.t, default: nil) - Content-Disposition of the object data.
  • contentEncoding (type: String.t, default: nil) - Content-Encoding of the object data.
  • contentLanguage (type: String.t, default: nil) - Content-Language of the object data.
  • contentType (type: String.t, default: nil) - Content-Type of the object data. If an object is stored without a Content-Type, it is served as application/octet-stream.
  • crc32c (type: String.t, default: nil) - 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.
  • customTime (type: DateTime.t, default: nil) - A timestamp in RFC 3339 format specified by the user for an object.
  • customerEncryption (type: GoogleApi.Storage.V1.Model.ObjectCustomerEncryption.t, default: nil) - Metadata of customer-supplied encryption key, if the object is encrypted by such a key.
  • etag (type: String.t, default: nil) - HTTP 1.1 Entity tag for the object.
  • eventBasedHold (type: boolean(), default: nil) - 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.
  • generation (type: String.t, default: nil) - The content generation of this object. Used for object versioning.
  • id (type: String.t, default: nil) - The ID of the object, including the bucket name, object name, and generation number.
  • kind (type: String.t, default: storage#object) - The kind of item this is. For objects, this is always storage#object.
  • kmsKeyName (type: String.t, default: nil) - Not currently supported. Specifying the parameter causes the request to fail with status code 400 - Bad Request.
  • md5Hash (type: String.t, default: nil) - MD5 hash of the data; encoded using base64. For more information about using the MD5 hash, see Hashes and ETags: Best Practices.
  • mediaLink (type: String.t, default: nil) - Media download link.
  • metadata (type: map(), default: nil) - User-provided metadata, in key/value pairs.
  • metageneration (type: String.t, default: nil) - 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.
  • name (type: String.t, default: nil) - The name of the object. Required if not specified by URL parameter.
  • owner (type: GoogleApi.Storage.V1.Model.ObjectOwner.t, default: nil) - The owner of the object. This will always be the uploader of the object.
  • retentionExpirationTime (type: DateTime.t, default: nil) - 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).
  • selfLink (type: String.t, default: nil) - The link to this object.
  • size (type: String.t, default: nil) - Content-Length of the data in bytes.
  • storageClass (type: String.t, default: nil) - Storage class of the object.
  • temporaryHold (type: boolean(), default: nil) - 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.
  • timeCreated (type: DateTime.t, default: nil) - The creation time of the object in RFC 3339 format.
  • timeDeleted (type: DateTime.t, default: nil) - 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.
  • timeStorageClassUpdated (type: DateTime.t, default: nil) - The time at which the object's storage class was last changed. When the object is initially created, it will be set to timeCreated.
  • updated (type: DateTime.t, default: nil) - The modification time of the object metadata in RFC 3339 format.

Link to this section Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Link to this section Types

Specs

t() :: %GoogleApi.Storage.V1.Model.Object{
  acl: [GoogleApi.Storage.V1.Model.ObjectAccessControl.t()] | nil,
  bucket: String.t() | nil,
  cacheControl: String.t() | nil,
  componentCount: integer() | nil,
  contentDisposition: String.t() | nil,
  contentEncoding: String.t() | nil,
  contentLanguage: String.t() | nil,
  contentType: String.t() | nil,
  crc32c: String.t() | nil,
  customTime: DateTime.t() | nil,
  customerEncryption:
    GoogleApi.Storage.V1.Model.ObjectCustomerEncryption.t() | nil,
  etag: String.t() | nil,
  eventBasedHold: boolean() | nil,
  generation: String.t() | nil,
  id: String.t() | nil,
  kind: String.t() | nil,
  kmsKeyName: String.t() | nil,
  md5Hash: String.t() | nil,
  mediaLink: String.t() | nil,
  metadata: map() | nil,
  metageneration: String.t() | nil,
  name: String.t() | nil,
  owner: GoogleApi.Storage.V1.Model.ObjectOwner.t() | nil,
  retentionExpirationTime: DateTime.t() | nil,
  selfLink: String.t() | nil,
  size: String.t() | nil,
  storageClass: String.t() | nil,
  temporaryHold: boolean() | nil,
  timeCreated: DateTime.t() | nil,
  timeDeleted: DateTime.t() | nil,
  timeStorageClassUpdated: DateTime.t() | nil,
  updated: DateTime.t() | nil
}

Link to this section Functions

Specs

decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.