Module: GClouder::Resources::Storage::Notifications::Local
- Defined in:
- lib/gclouder/resources/storage/notifications.rb
Class Method Summary collapse
Class Method Details
.instances ⇒ Object
54 55 56 |
# File 'lib/gclouder/resources/storage/notifications.rb', line 54 def self.instances Resources::Region.instances(path: ["storage", "notifications"]) end |
.list ⇒ Object
34 35 36 |
# File 'lib/gclouder/resources/storage/notifications.rb', line 34 def self.list instances end |
.validate ⇒ Object
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 |
# File 'lib/gclouder/resources/storage/notifications.rb', line 38 def self.validate # Validation knowledge included here because we don't have arguments parser for gsutil. # We also don't support every key that gsutil does. See Notification.ensure() below. permitted_and_required_keys = { "bucket"=>{"type"=>"String", "required"=>true}, "project"=>{"type"=>"String", "required"=>true}, "events"=>{"type"=>"Array", "required"=>false}, "prefix"=>{"type"=>"String", "required"=>false} } Resources::Validate::Region.instances( instances, permitted_keys: permitted_and_required_keys ) end |