class GoogleCloudStorage::Object

Overview

An object.

Included Modules

Defined in:

google_cloud_storage/models/object.cr

Constructors

Instance Method Summary

Instance methods inherited from module OpenApi::Json

after_initialize after_initialize, eql?(o : self) eql?, to_hash : Hash(String, JSON::Any) to_hash, to_json_any : JSON::Any to_json_any

Class methods inherited from module OpenApi::Json

build_from_hash(hash : Hash) build_from_hash, build_from_json_any(json_any : JSON::Any) build_from_json_any

Instance methods inherited from module OpenApi::Validatable

list_invalid_properties : Array(String) list_invalid_properties, list_invalid_properties_for(key : String) : Array(String) list_invalid_properties_for, valid? : Bool valid?, validate : Nil validate

Instance methods inherited from module JSON::Serializable

to_hash : JSON::Any to_hash

Class methods inherited from module JSON::Serializable

build_from_hash(hash : JSON::Any) build_from_hash

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(*, acl : Array(GoogleCloudStorage::ObjectAccessControl) | Nil = nil, bucket : String | Nil = nil, cache_control : String | Nil = nil, component_count : Int32 | Nil = nil, content_disposition : String | Nil = nil, content_encoding : String | Nil = nil, content_language : String | Nil = nil, content_type : String | Nil = nil, crc32c : String | Nil = nil, custom_time : Time | Nil = nil, customer_encryption : GoogleCloudStorage::ObjectCustomerEncryption | Nil = nil, etag : String | Nil = nil, event_based_hold : Bool | Nil = nil, generation : String | Nil = nil, id : String | Nil = nil, kind : String | Nil = "storage#object", kms_key_name : String | Nil = nil, md5_hash : String | Nil = nil, media_link : String | Nil = nil, metadata : Hash(String, String) | Nil = nil, metageneration : String | Nil = nil, name : String | Nil = nil, owner : GoogleCloudStorage::ObjectOwner | Nil = nil, retention_expiration_time : Time | Nil = nil, self_link : String | Nil = nil, size : String | Nil = nil, storage_class : String | Nil = nil, temporary_hold : Bool | Nil = nil, time_created : Time | Nil = nil, time_deleted : Time | Nil = nil, time_storage_class_updated : Time | Nil = nil, updated : Time | Nil = nil) #

Initializes the object @param [Hash] attributes Model attributes in the form of hash


[View source]

Instance Method Detail

def ==(other : self) #

Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes. #hash @return [UInt64] Hash code



[View source]
def acl=(new_value : Array(GoogleCloudStorage::ObjectAccessControl) | Nil) #

Custom attribute writer method checking allowed values (enum). @param [Object] acl Object to be assigned


[View source]
def bucket : String | Nil #

[View source]
def bucket=(new_value : String | Nil) #

Custom attribute writer method checking allowed values (enum). @param [Object] bucket Object to be assigned


[View source]
def cache_control : String | Nil #

[View source]
def cache_control=(new_value : String | Nil) #

Custom attribute writer method checking allowed values (enum). @param [Object] cache_control Object to be assigned


[View source]
def component_count : Int32 | Nil #

[View source]
def component_count=(new_value : Int32 | Nil) #

Custom attribute writer method checking allowed values (enum). @param [Object] component_count Object to be assigned


[View source]
def content_disposition : String | Nil #

[View source]
def content_disposition=(new_value : String | Nil) #

Custom attribute writer method checking allowed values (enum). @param [Object] content_disposition Object to be assigned


[View source]
def content_encoding : String | Nil #

[View source]
def content_encoding=(new_value : String | Nil) #

Custom attribute writer method checking allowed values (enum). @param [Object] content_encoding Object to be assigned


[View source]
def content_language : String | Nil #

[View source]
def content_language=(new_value : String | Nil) #

Custom attribute writer method checking allowed values (enum). @param [Object] content_language Object to be assigned


[View source]
def content_type : String | Nil #

[View source]
def content_type=(new_value : String | Nil) #

Custom attribute writer method checking allowed values (enum). @param [Object] content_type Object to be assigned


[View source]
def crc32c : String | Nil #

[View source]
def crc32c=(new_value : String | Nil) #

Custom attribute writer method checking allowed values (enum). @param [Object] crc32c Object to be assigned


[View source]
def custom_time : Time | Nil #

[View source]
def custom_time=(new_value : Time | Nil) #

Custom attribute writer method checking allowed values (enum). @param [Object] custom_time Object to be assigned


[View source]
def customer_encryption : GoogleCloudStorage::ObjectCustomerEncryption | Nil #

[View source]
def customer_encryption=(new_value : GoogleCloudStorage::ObjectCustomerEncryption | Nil) #

Custom attribute writer method checking allowed values (enum). @param [Object] customer_encryption Object to be assigned


[View source]
def etag : String | Nil #

[View source]
def etag=(new_value : String | Nil) #

Custom attribute writer method checking allowed values (enum). @param [Object] etag Object to be assigned


[View source]
def event_based_hold : Bool | Nil #

[View source]
def event_based_hold=(new_value : Bool | Nil) #

Custom attribute writer method checking allowed values (enum). @param [Object] event_based_hold Object to be assigned


[View source]
def generation : String | Nil #

[View source]
def generation=(new_value : String | Nil) #

Custom attribute writer method checking allowed values (enum). @param [Object] generation Object to be assigned


[View source]
def hash(hasher) #

Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes. #hash @return [UInt64] Hash code


def id : String | Nil #

[View source]
def id=(new_value : String | Nil) #

Custom attribute writer method checking allowed values (enum). @param [Object] id Object to be assigned


[View source]
def kind : String | Nil #

[View source]
def kind=(new_value : String | Nil) #

Custom attribute writer method checking allowed values (enum). @param [Object] kind Object to be assigned


[View source]
def kms_key_name : String | Nil #

[View source]
def kms_key_name=(new_value : String | Nil) #

Custom attribute writer method checking allowed values (enum). @param [Object] kms_key_name Object to be assigned


[View source]
def list_invalid_properties : Array(String) #

Show invalid properties with the reasons. Usually used together with valid? @return Array for valid properties with the reasons


[View source]
def md5_hash : String | Nil #

[View source]
def md5_hash=(new_value : String | Nil) #

Custom attribute writer method checking allowed values (enum). @param [Object] md5_hash Object to be assigned


[View source]
def media_link : String | Nil #

[View source]
def media_link=(new_value : String | Nil) #

Custom attribute writer method checking allowed values (enum). @param [Object] media_link Object to be assigned


[View source]
def metadata : Hash(String, String) | Nil #

[View source]
def metadata=(new_value : Hash(String, String) | Nil) #

Custom attribute writer method checking allowed values (enum). @param [Object] metadata Object to be assigned


[View source]
def metageneration : String | Nil #

[View source]
def metageneration=(new_value : String | Nil) #

Custom attribute writer method checking allowed values (enum). @param [Object] metageneration Object to be assigned


[View source]
def name : String | Nil #

[View source]
def name=(new_value : String | Nil) #

Custom attribute writer method checking allowed values (enum). @param [Object] name Object to be assigned


[View source]

[View source]
def owner=(new_value : GoogleCloudStorage::ObjectOwner | Nil) #

Custom attribute writer method checking allowed values (enum). @param [Object] owner Object to be assigned


[View source]
def retention_expiration_time : Time | Nil #

[View source]
def retention_expiration_time=(new_value : Time | Nil) #

Custom attribute writer method checking allowed values (enum). @param [Object] retention_expiration_time Object to be assigned


[View source]
def self_link : String | Nil #

[View source]
def self_link=(new_value : String | Nil) #

Custom attribute writer method checking allowed values (enum). @param [Object] self_link Object to be assigned


[View source]
def size : String | Nil #

[View source]
def size=(new_value : String | Nil) #

Custom attribute writer method checking allowed values (enum). @param [Object] size Object to be assigned


[View source]
def storage_class : String | Nil #

[View source]
def storage_class=(new_value : String | Nil) #

Custom attribute writer method checking allowed values (enum). @param [Object] storage_class Object to be assigned


[View source]
def temporary_hold : Bool | Nil #

[View source]
def temporary_hold=(new_value : Bool | Nil) #

Custom attribute writer method checking allowed values (enum). @param [Object] temporary_hold Object to be assigned


[View source]
def time_created : Time | Nil #

[View source]
def time_created=(new_value : Time | Nil) #

Custom attribute writer method checking allowed values (enum). @param [Object] time_created Object to be assigned


[View source]
def time_deleted : Time | Nil #

[View source]
def time_deleted=(new_value : Time | Nil) #

Custom attribute writer method checking allowed values (enum). @param [Object] time_deleted Object to be assigned


[View source]
def time_storage_class_updated : Time | Nil #

[View source]
def time_storage_class_updated=(new_value : Time | Nil) #

Custom attribute writer method checking allowed values (enum). @param [Object] time_storage_class_updated Object to be assigned


[View source]
def updated : Time | Nil #

[View source]
def updated=(new_value : Time | Nil) #

Custom attribute writer method checking allowed values (enum). @param [Object] updated Object to be assigned


[View source]
def valid? : Bool #

Check to see if the all the properties in the model are valid @return true if the model is valid


[View source]