Sha256: 5459335459e33ba2f230db632c63f7119a56ec7fe7909abb0a9defecfb6535fc
Contents?: true
Size: 839 Bytes
Versions: 6
Compression:
Stored size: 839 Bytes
Contents
require 'fog/openstack/models/model' module Fog module Monitoring class OpenStack class NotificationMethod < Fog::OpenStack::Model identity :id attribute :name attribute :links attribute :type attribute :address def create requires :name, :type, :address merge_attributes( service.create_notification_method(attributes).body ) end def update(attr = nil) requires :name, :type, :address merge_attributes( service.update_notification_method(id, attr || attributes).body ) end def destroy requires :id service.delete_notification_method(id) true end def to_s name end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems