Module: GClouder::Resources::Compute::VPNs::Local

Defined in:
lib/gclouder/resources/compute/vpns.rb

Class Method Summary collapse

Class Method Details

.listObject



110
111
112
# File 'lib/gclouder/resources/compute/vpns.rb', line 110

def self.list
  Resources::Region.instances(path: section).delete_if { |_k, v| v.empty? }
end

.sectionObject



106
107
108
# File 'lib/gclouder/resources/compute/vpns.rb', line 106

def self.section
  ["vpns"]
end

.validateObject



114
115
116
117
118
119
120
121
# File 'lib/gclouder/resources/compute/vpns.rb', line 114

def self.validate
  Resources::Validate::Region.instances(
    list,
    required_keys:  GClouder::Config::Arguments.required(["compute", "vpn-tunnels"]),
    permitted_keys: GClouder::Config::Arguments.permitted(["compute", "vpn-tunnels"]),
    ignore_keys:    ["ike_version", "shared_secret_file", "network"]
  )
end