Sha256: 249c7509c8e2ca18f953d11938846e998a9741ba23bc380335c5b40663e42d73
Contents?: true
Size: 619 Bytes
Versions: 21
Compression:
Stored size: 619 Bytes
Contents
module Fog module Rackspace class NetworkingV2 class SecurityGroup < Fog::Model identity :id attribute :name attribute :description attribute :tenant_id def save data = unless self.id.nil? service.update_security_group(self) else service.create_security_group(self) end merge_attributes(data.body['security_group']) true end def destroy requires :identity service.delete_security_group(identity) true end end end end end
Version data entries
21 entries across 19 versions & 4 rubygems