Module: GClouder::Resources::Storage::Buckets::Local

Defined in:
lib/gclouder/resources/storage/buckets.rb

Class Method Summary collapse

Class Method Details

.instancesObject



53
54
55
# File 'lib/gclouder/resources/storage/buckets.rb', line 53

def self.instances
  Resources::Region.instances(path: ["storage", "buckets"])
end

.listObject



36
37
38
# File 'lib/gclouder/resources/storage/buckets.rb', line 36

def self.list
  instances
end

.validateObject



40
41
42
43
44
45
46
47
48
49
50
51
# File 'lib/gclouder/resources/storage/buckets.rb', line 40

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 Bucket.ensure() below.
  permitted_and_required_keys = {
    "default_access"=>{"type"=>"String", "required"=>true}
  }

  Resources::Validate::Region.instances(
    instances,
    permitted_keys: permitted_and_required_keys
  )
end