class GoogleCloudStorage::Bucket

Overview

A bucket.

Included Modules

Defined in:

google_cloud_storage/models/bucket.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::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


[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::BucketAccessControl) | Nil) #

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


[View source]
def autoclass : GoogleCloudStorage::BucketAutoclass | Nil #

[View source]
def autoclass=(new_value : GoogleCloudStorage::BucketAutoclass | Nil) #

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


[View source]
def billing : GoogleCloudStorage::BucketBilling | Nil #

[View source]
def billing=(new_value : GoogleCloudStorage::BucketBilling | Nil) #

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


[View source]
def cors : Array(GoogleCloudStorage::BucketCorsInner) | Nil #

[View source]
def cors=(new_value : Array(GoogleCloudStorage::BucketCorsInner) | Nil) #

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


[View source]
def default_event_based_hold : Bool | Nil #

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

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


[View source]
def default_object_acl : Array(GoogleCloudStorage::ObjectAccessControl) | Nil #

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

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


[View source]
def encryption : GoogleCloudStorage::BucketEncryption | Nil #

[View source]
def encryption=(new_value : GoogleCloudStorage::BucketEncryption | Nil) #

Custom attribute writer method checking allowed values (enum). @param [Object] 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 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 iam_configuration : GoogleCloudStorage::BucketIamConfiguration | Nil #

[View source]
def iam_configuration=(new_value : GoogleCloudStorage::BucketIamConfiguration | Nil) #

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


[View source]
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 labels : Hash(String, String) | Nil #

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

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


[View source]
def lifecycle : GoogleCloudStorage::BucketLifecycle | Nil #

[View source]
def lifecycle=(new_value : GoogleCloudStorage::BucketLifecycle | Nil) #

Custom attribute writer method checking allowed values (enum). @param [Object] lifecycle 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 location : String | Nil #

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

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


[View source]
def location_type : String | Nil #

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

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


[View source]
def logging : GoogleCloudStorage::BucketLogging | Nil #

[View source]
def logging=(new_value : GoogleCloudStorage::BucketLogging | Nil) #

Custom attribute writer method checking allowed values (enum). @param [Object] logging 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::BucketOwner | Nil) #

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


[View source]
def project_number : String | Nil #

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

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


[View source]
def retention_policy : GoogleCloudStorage::BucketRetentionPolicy | Nil #

[View source]
def retention_policy=(new_value : GoogleCloudStorage::BucketRetentionPolicy | Nil) #

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


[View source]
def rpo : String | Nil #

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

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


[View source]
def satisfies_pzs : Bool | Nil #

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

Custom attribute writer method checking allowed values (enum). @param [Object] satisfies_pzs 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 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 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 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]
def versioning : GoogleCloudStorage::BucketVersioning | Nil #

[View source]
def versioning=(new_value : GoogleCloudStorage::BucketVersioning | Nil) #

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


[View source]
def website : GoogleCloudStorage::BucketWebsite | Nil #

[View source]
def website=(new_value : GoogleCloudStorage::BucketWebsite | Nil) #

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


[View source]