Module: GClouder::Resources::Compute::BGPVPNs::Local

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

Class Method Summary collapse

Class Method Details

.listObject



84
85
86
87
88
# File 'lib/gclouder/resources/compute/bgp-vpns.rb', line 84

def self.list
  Resources::Region.instances(
    path: %w{bgp-vpns}
  ).delete_if { |_k, v| v.empty? }
end

.validateObject



90
91
92
93
94
95
96
97
98
# File 'lib/gclouder/resources/compute/bgp-vpns.rb', line 90

def self.validate
  # FIXME: better validation
  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", "address", "target_vpn_gateway", "bgp", "shared_secret_file", "network"]
  )
end