Module: GClouder::Resources::Compute::Routers::Local

Includes:
Logging
Defined in:
lib/gclouder/resources/compute/routers.rb

Class Method Summary collapse

Methods included from Logging

#add, #bad, #change, #debug, #error, #fatal, #good, included, #info, log, loggers, #remove, report, #resource_state, setup, #warn, #warning

Class Method Details

.listObject



46
47
48
# File 'lib/gclouder/resources/compute/routers.rb', line 46

def self.list
  Resources::Region.instances(path: ["routers"])
end

.sectionObject



42
43
44
# File 'lib/gclouder/resources/compute/routers.rb', line 42

def self.section
  ["compute", "routers"]
end

.validateObject



50
51
52
53
54
55
56
57
58
# File 'lib/gclouder/resources/compute/routers.rb', line 50

def self.validate
  Resources::Validate::Region.instances(
    list,
    required_keys:  GClouder::Config::Arguments.required(section),
    permitted_keys: GClouder::Config::Arguments.permitted(section),
    # ignore ASN until Fixnums are supported
    ignore_keys: [ "asn" ],
  )
end