Module: GClouder::Resources::Compute::FirewallRules::Local

Includes:
Config::Project, Logging
Defined in:
lib/gclouder/resources/compute/firewall_rules.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

Methods included from Config::Project

load, #project, project

Methods included from Helpers

#hash_to_args, included, #module_exists?, #to_arg, #to_deep_merge_hash, #valid_json?

Class Method Details

.listObject



51
52
53
# File 'lib/gclouder/resources/compute/firewall_rules.rb', line 51

def self.list
  Resources::Global.instances(path: %w(firewall rules))
end

.validateObject



41
42
43
44
45
46
47
48
49
# File 'lib/gclouder/resources/compute/firewall_rules.rb', line 41

def self.validate
  info "global", heading: true, indent: 2
  Resources::Validate::Global.instances(
    list,
    required_keys:  GClouder::Config::Arguments.required(%w(compute firewall-rules)),
    permitted_keys: GClouder::Config::Arguments.permitted(%w(compute firewall-rules)),
    ignore_keys: ["internal-icmp"]
  )
end