class GoogleCloudStorage::Object
- GoogleCloudStorage::Object
- Reference
- Object
Overview
An object.
Included Modules
- JSON::Serializable
- JSON::Serializable::Unmapped
- OpenApi::Json
- OpenApi::Validatable
Defined in:
google_cloud_storage/models/object.crConstructors
- .new(pull : JSON::PullParser)
-
.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
Instance Method Summary
-
#==(other : self)
Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes.
- #acl : Array(GoogleCloudStorage::ObjectAccessControl) | Nil
-
#acl=(new_value : Array(GoogleCloudStorage::ObjectAccessControl) | Nil)
Custom attribute writer method checking allowed values (enum).
- #bucket : String | Nil
-
#bucket=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
- #cache_control : String | Nil
-
#cache_control=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
- #component_count : Int32 | Nil
-
#component_count=(new_value : Int32 | Nil)
Custom attribute writer method checking allowed values (enum).
- #content_disposition : String | Nil
-
#content_disposition=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
- #content_encoding : String | Nil
-
#content_encoding=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
- #content_language : String | Nil
-
#content_language=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
- #content_type : String | Nil
-
#content_type=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
- #crc32c : String | Nil
-
#crc32c=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
- #custom_time : Time | Nil
-
#custom_time=(new_value : Time | Nil)
Custom attribute writer method checking allowed values (enum).
- #customer_encryption : GoogleCloudStorage::ObjectCustomerEncryption | Nil
-
#customer_encryption=(new_value : GoogleCloudStorage::ObjectCustomerEncryption | Nil)
Custom attribute writer method checking allowed values (enum).
- #etag : String | Nil
-
#etag=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
- #event_based_hold : Bool | Nil
-
#event_based_hold=(new_value : Bool | Nil)
Custom attribute writer method checking allowed values (enum).
- #generation : String | Nil
-
#generation=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
-
#hash(hasher)
Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes.
- #id : String | Nil
-
#id=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
- #kind : String | Nil
-
#kind=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
- #kms_key_name : String | Nil
-
#kms_key_name=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
-
#list_invalid_properties : Array(String)
Show invalid properties with the reasons.
- #md5_hash : String | Nil
-
#md5_hash=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
- #media_link : String | Nil
-
#media_link=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
- #metadata : Hash(String, String) | Nil
-
#metadata=(new_value : Hash(String, String) | Nil)
Custom attribute writer method checking allowed values (enum).
- #metageneration : String | Nil
-
#metageneration=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
- #name : String | Nil
-
#name=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
- #owner : GoogleCloudStorage::ObjectOwner | Nil
-
#owner=(new_value : GoogleCloudStorage::ObjectOwner | Nil)
Custom attribute writer method checking allowed values (enum).
- #retention_expiration_time : Time | Nil
-
#retention_expiration_time=(new_value : Time | Nil)
Custom attribute writer method checking allowed values (enum).
- #self_link : String | Nil
-
#self_link=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
- #size : String | Nil
-
#size=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
- #storage_class : String | Nil
-
#storage_class=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
- #temporary_hold : Bool | Nil
-
#temporary_hold=(new_value : Bool | Nil)
Custom attribute writer method checking allowed values (enum).
- #time_created : Time | Nil
-
#time_created=(new_value : Time | Nil)
Custom attribute writer method checking allowed values (enum).
- #time_deleted : Time | Nil
-
#time_deleted=(new_value : Time | Nil)
Custom attribute writer method checking allowed values (enum).
- #time_storage_class_updated : Time | Nil
-
#time_storage_class_updated=(new_value : Time | Nil)
Custom attribute writer method checking allowed values (enum).
- #updated : Time | Nil
-
#updated=(new_value : Time | Nil)
Custom attribute writer method checking allowed values (enum).
-
#valid? : Bool
Check to see if the all the properties in the model are valid @return true if the model is valid
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
Initializes the object @param [Hash] attributes Model attributes in the form of hash
Instance Method Detail
Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes. #hash @return [UInt64] Hash code
Custom attribute writer method checking allowed values (enum). @param [Object] acl Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] bucket Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] cache_control Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] component_count Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] content_disposition Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] content_encoding Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] content_language Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] content_type Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] crc32c Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] custom_time Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] customer_encryption Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] etag Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] event_based_hold Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] generation Object to be assigned
Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes. #hash @return [UInt64] Hash code
Custom attribute writer method checking allowed values (enum). @param [Object] id Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] kind Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] kms_key_name Object to be assigned
Show invalid properties with the reasons. Usually used together with valid? @return Array for valid properties with the reasons
Custom attribute writer method checking allowed values (enum). @param [Object] md5_hash Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] media_link Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] metadata Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] metageneration Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] name Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] owner Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] retention_expiration_time Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] self_link Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] size Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] storage_class Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] temporary_hold Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] time_created Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] time_deleted Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] time_storage_class_updated Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] updated Object to be assigned
Check to see if the all the properties in the model are valid @return true if the model is valid