class Google::Apis::StorageV1::Bucket

A bucket.

Attributes

acl[RW]

Access controls on the bucket. Corresponds to the JSON property `acl` @return [Array<Google::Apis::StorageV1::BucketAccessControl>]

cors_configurations[RW]

The bucket's Cross-Origin Resource Sharing (CORS) configuration. Corresponds to the JSON property `cors` @return [Array<Google::Apis::StorageV1::Bucket::CorsConfiguration>]

default_object_acl[RW]

Default access controls to apply to new objects when no ACL is provided. Corresponds to the JSON property `defaultObjectAcl` @return [Array<Google::Apis::StorageV1::ObjectAccessControl>]

etag[RW]

HTTP 1.1 Entity tag for the bucket. Corresponds to the JSON property `etag` @return [String]

id[RW]

The ID of the bucket. Corresponds to the JSON property `id` @return [String]

kind[RW]

The kind of item this is. For buckets, this is always storage#bucket. Corresponds to the JSON property `kind` @return [String]

lifecycle[RW]

The bucket's lifecycle configuration. See lifecycle management for more information. Corresponds to the JSON property `lifecycle` @return [Google::Apis::StorageV1::Bucket::Lifecycle]

location[RW]

The location of the bucket. Object data for objects in the bucket resides in physical storage within this region. Defaults to US. See the developer's guide for the authoritative list. Corresponds to the JSON property `location` @return [String]

logging[RW]

The bucket's logging configuration, which defines the destination bucket and optional name prefix for the current bucket's logs. Corresponds to the JSON property `logging` @return [Google::Apis::StorageV1::Bucket::Logging]

metageneration[RW]

The metadata generation of this bucket. Corresponds to the JSON property `metageneration` @return [String]

name[RW]

The name of the bucket. Corresponds to the JSON property `name` @return [String]

owner[RW]

The owner of the bucket. This is always the project team's owner group. Corresponds to the JSON property `owner` @return [Google::Apis::StorageV1::Bucket::Owner]

project_number[RW]

The project number of the project the bucket belongs to. Corresponds to the JSON property `projectNumber` @return [String]

storage_class[RW]

The bucket's storage class. This defines how objects in the bucket are stored and determines the SLA and the cost of storage. Values include STANDARD, NEARLINE and DURABLE_REDUCED_AVAILABILITY. Defaults to STANDARD. For more information, see storage classes. Corresponds to the JSON property `storageClass` @return [String]

time_created[RW]

The creation time of the bucket in RFC 3339 format. Corresponds to the JSON property `timeCreated` @return [DateTime]

updated[RW]

The modification time of the bucket in RFC 3339 format. Corresponds to the JSON property `updated` @return [DateTime]

versioning[RW]

The bucket's versioning configuration. Corresponds to the JSON property `versioning` @return [Google::Apis::StorageV1::Bucket::Versioning]

website[RW]

The bucket's website configuration. Corresponds to the JSON property `website` @return [Google::Apis::StorageV1::Bucket::Website]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/storage_v1/classes.rb, line 131
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/storage_v1/classes.rb, line 136
def update!(**args)
  @acl = args[:acl] if args.key?(:acl)
  @cors_configurations = args[:cors_configurations] if args.key?(:cors_configurations)
  @default_object_acl = args[:default_object_acl] if args.key?(:default_object_acl)
  @etag = args[:etag] if args.key?(:etag)
  @id = args[:id] if args.key?(:id)
  @kind = args[:kind] if args.key?(:kind)
  @lifecycle = args[:lifecycle] if args.key?(:lifecycle)
  @location = args[:location] if args.key?(:location)
  @logging = args[:logging] if args.key?(:logging)
  @metageneration = args[:metageneration] if args.key?(:metageneration)
  @name = args[:name] if args.key?(:name)
  @owner = args[:owner] if args.key?(:owner)
  @project_number = args[:project_number] if args.key?(:project_number)
  @self_link = args[:self_link] if args.key?(:self_link)
  @storage_class = args[:storage_class] if args.key?(:storage_class)
  @time_created = args[:time_created] if args.key?(:time_created)
  @updated = args[:updated] if args.key?(:updated)
  @versioning = args[:versioning] if args.key?(:versioning)
  @website = args[:website] if args.key?(:website)
end