Class: Google::Apis::StorageV1::Bucket::Billing

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/storage_v1/classes.rb,
generated/google/apis/storage_v1/representations.rb,
generated/google/apis/storage_v1/representations.rb

Overview

The bucket's billing configuration.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Billing

Returns a new instance of Billing



184
185
186
# File 'generated/google/apis/storage_v1/classes.rb', line 184

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#requester_paysBoolean Also known as: requester_pays?

When set to true, bucket is requester pays. Corresponds to the JSON property requesterPays

Returns:

  • (Boolean)


181
182
183
# File 'generated/google/apis/storage_v1/classes.rb', line 181

def requester_pays
  @requester_pays
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



189
190
191
# File 'generated/google/apis/storage_v1/classes.rb', line 189

def update!(**args)
  @requester_pays = args[:requester_pays] if args.key?(:requester_pays)
end