Class: Google::Storage::Data::BucketActionApi

Inherits:
BucketAction
  • Object
show all
Defined in:
lib/google/storage/property/bucket_action.rb

Overview

Manages a BucketAction nested object Data is coming from the GCP API

Instance Attribute Summary

Attributes inherited from BucketAction

#storage_class, #type

Instance Method Summary collapse

Methods inherited from BucketAction

#<=>, #==, #to_json, #to_s

Constructor Details

#initialize(args) ⇒ BucketActionApi

Returns a new instance of BucketActionApi.



86
87
88
89
# File 'lib/google/storage/property/bucket_action.rb', line 86

def initialize(args)
  @storage_class = Google::Storage::Property::String.api_munge(args['storageClass'])
  @type = Google::Storage::Property::Enum.api_munge(args['type'])
end