1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/lib/fog/rackspace/models/auto_scale/webhook.rb

34 lines
569 B
Ruby
Raw Normal View History

require 'fog/core/model'
module Fog
module Rackspace
class AutoScale
class Webhook < Fog::Model
identity :id
attribute :name
attribute :metadata
attribute :links
def update
required :identity
options = {
'name' => name,
'metadata' => metadata
}
data = service.update_webhook(identity, options)
merge_attribute(data.body)
end
def destroy
required :identity
service.delete_webhook(identity)
end
end
end
end
end