Sha256: d0989db580b796d187c92eef924276bf3a9bef36c3e604b5539f7d7495532887
Contents?: true
Size: 859 Bytes
Versions: 17
Compression:
Stored size: 859 Bytes
Contents
require 'fog/openstack/models/collection' require 'fog/openstack/models/network/security_group_rule' module Fog module Network class OpenStack class SecurityGroupRules < Fog::OpenStack::Collection attribute :filters model Fog::Network::OpenStack::SecurityGroupRule def initialize(attributes) self.filters ||= {} super end def all(filters_arg = filters) filters = filters_arg load_response(service.list_security_group_rules(filters), 'security_group_rules') end def get(sec_group_rule_id) if sec_group_rule = service.get_security_group_rule(sec_group_rule_id).body['security_group_rule'] new(sec_group_rule) end rescue Fog::Network::OpenStack::NotFound nil end end end end end
Version data entries
17 entries across 17 versions & 2 rubygems