Sha256: f3af5b2f6a57fa20c588269e39ebc42b8ac60a98fd4efb4a5220d2f16ef49729
Contents?: true
Size: 661 Bytes
Versions: 4
Compression:
Stored size: 661 Bytes
Contents
require 'fog/huaweicloud/models/collection' require 'fog/compute/huaweicloud/models/security_group' module Fog module Compute class HuaweiCloud class SecurityGroups < Fog::HuaweiCloud::Collection model Fog::Compute::HuaweiCloud::SecurityGroup def all(options = {}) load_response(service.list_security_groups(options), 'security_groups') end def get(security_group_id) if security_group_id new(service.get_security_group(security_group_id).body['security_group']) end rescue Fog::Compute::HuaweiCloud::NotFound nil end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems