Sha256: c650491b954466e1bc39943347e4baa23d3ff44f97ac7339b51ef731412b13a7
Contents?: true
Size: 850 Bytes
Versions: 21
Compression:
Stored size: 850 Bytes
Contents
module Fog module Rackspace class NetworkingV2 class SecurityGroupRule < Fog::Model identity :id attribute :direction attribute :ethertype attribute :port_range_max attribute :port_range_min attribute :protocol attribute :remote_group_id attribute :remote_ip_prefix attribute :security_group_id attribute :tenant_id def save data = unless self.id.nil? service.update_security_group_rule(self) else service.create_security_group_rule(self) end merge_attributes(data.body['security_group_rule']) true end def destroy requires :identity service.delete_security_group_rule(identity) true end end end end end
Version data entries
21 entries across 19 versions & 4 rubygems