class GoogleCloudStorage::Bucket
- GoogleCloudStorage::Bucket
- Reference
- Object
Overview
A bucket.
Included Modules
- JSON::Serializable
- JSON::Serializable::Unmapped
- OpenApi::Json
- OpenApi::Validatable
Defined in:
google_cloud_storage/models/bucket.crConstructors
- .new(pull : JSON::PullParser)
-
.new(*, acl : Array(GoogleCloudStorage::BucketAccessControl) | Nil = nil, autoclass : GoogleCloudStorage::BucketAutoclass | Nil = nil, billing : GoogleCloudStorage::BucketBilling | Nil = nil, cors : Array(GoogleCloudStorage::BucketCorsInner) | Nil = nil, default_event_based_hold : Bool | Nil = nil, default_object_acl : Array(GoogleCloudStorage::ObjectAccessControl) | Nil = nil, encryption : GoogleCloudStorage::BucketEncryption | Nil = nil, etag : String | Nil = nil, iam_configuration : GoogleCloudStorage::BucketIamConfiguration | Nil = nil, id : String | Nil = nil, kind : String | Nil = "storage#bucket", labels : Hash(String, String) | Nil = nil, lifecycle : GoogleCloudStorage::BucketLifecycle | Nil = nil, location : String | Nil = nil, location_type : String | Nil = nil, logging : GoogleCloudStorage::BucketLogging | Nil = nil, metageneration : String | Nil = nil, name : String | Nil = nil, owner : GoogleCloudStorage::BucketOwner | Nil = nil, project_number : String | Nil = nil, retention_policy : GoogleCloudStorage::BucketRetentionPolicy | Nil = nil, rpo : String | Nil = nil, satisfies_pzs : Bool | Nil = nil, self_link : String | Nil = nil, storage_class : String | Nil = nil, time_created : Time | Nil = nil, updated : Time | Nil = nil, versioning : GoogleCloudStorage::BucketVersioning | Nil = nil, website : GoogleCloudStorage::BucketWebsite | 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::BucketAccessControl) | Nil
-
#acl=(new_value : Array(GoogleCloudStorage::BucketAccessControl) | Nil)
Custom attribute writer method checking allowed values (enum).
- #autoclass : GoogleCloudStorage::BucketAutoclass | Nil
-
#autoclass=(new_value : GoogleCloudStorage::BucketAutoclass | Nil)
Custom attribute writer method checking allowed values (enum).
- #billing : GoogleCloudStorage::BucketBilling | Nil
-
#billing=(new_value : GoogleCloudStorage::BucketBilling | Nil)
Custom attribute writer method checking allowed values (enum).
- #cors : Array(GoogleCloudStorage::BucketCorsInner) | Nil
-
#cors=(new_value : Array(GoogleCloudStorage::BucketCorsInner) | Nil)
Custom attribute writer method checking allowed values (enum).
- #default_event_based_hold : Bool | Nil
-
#default_event_based_hold=(new_value : Bool | Nil)
Custom attribute writer method checking allowed values (enum).
- #default_object_acl : Array(GoogleCloudStorage::ObjectAccessControl) | Nil
-
#default_object_acl=(new_value : Array(GoogleCloudStorage::ObjectAccessControl) | Nil)
Custom attribute writer method checking allowed values (enum).
- #encryption : GoogleCloudStorage::BucketEncryption | Nil
-
#encryption=(new_value : GoogleCloudStorage::BucketEncryption | 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).
-
#hash(hasher)
Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes.
- #iam_configuration : GoogleCloudStorage::BucketIamConfiguration | Nil
-
#iam_configuration=(new_value : GoogleCloudStorage::BucketIamConfiguration | Nil)
Custom attribute writer method checking allowed values (enum).
- #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).
- #labels : Hash(String, String) | Nil
-
#labels=(new_value : Hash(String, String) | Nil)
Custom attribute writer method checking allowed values (enum).
- #lifecycle : GoogleCloudStorage::BucketLifecycle | Nil
-
#lifecycle=(new_value : GoogleCloudStorage::BucketLifecycle | Nil)
Custom attribute writer method checking allowed values (enum).
-
#list_invalid_properties : Array(String)
Show invalid properties with the reasons.
- #location : String | Nil
-
#location=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
- #location_type : String | Nil
-
#location_type=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
- #logging : GoogleCloudStorage::BucketLogging | Nil
-
#logging=(new_value : GoogleCloudStorage::BucketLogging | 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::BucketOwner | Nil
-
#owner=(new_value : GoogleCloudStorage::BucketOwner | Nil)
Custom attribute writer method checking allowed values (enum).
- #project_number : String | Nil
-
#project_number=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
- #retention_policy : GoogleCloudStorage::BucketRetentionPolicy | Nil
-
#retention_policy=(new_value : GoogleCloudStorage::BucketRetentionPolicy | Nil)
Custom attribute writer method checking allowed values (enum).
- #rpo : String | Nil
-
#rpo=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
- #satisfies_pzs : Bool | Nil
-
#satisfies_pzs=(new_value : Bool | 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).
- #storage_class : String | Nil
-
#storage_class=(new_value : String | 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).
- #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
- #versioning : GoogleCloudStorage::BucketVersioning | Nil
-
#versioning=(new_value : GoogleCloudStorage::BucketVersioning | Nil)
Custom attribute writer method checking allowed values (enum).
- #website : GoogleCloudStorage::BucketWebsite | Nil
-
#website=(new_value : GoogleCloudStorage::BucketWebsite | Nil)
Custom attribute writer method checking allowed values (enum).
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] autoclass Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] billing Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] cors Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] default_event_based_hold Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] default_object_acl Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] encryption Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] etag 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] iam_configuration Object to be assigned
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] labels Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] lifecycle 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] location Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] location_type Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] logging 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] project_number Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] retention_policy Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] rpo Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] satisfies_pzs 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] storage_class 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] 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
Custom attribute writer method checking allowed values (enum). @param [Object] versioning Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] website Object to be assigned