Sha256: 7893b93ab4e24238b11e8b6768fb7cfa9f34accb980806464318e8fc815ccb8b
Contents?: true
Size: 1022 Bytes
Versions: 19
Compression:
Stored size: 1022 Bytes
Contents
module Fog module Orchestration class OpenStack class Real def list_resource_events(stack, resource, options = {}) Fog::Logger.deprecation('Calling OpenStack[:orchestration].list_resource_events(stack, resource, options)'\ ' is deprecated, call .list_events(:stack => stack, :resource => resource) or '\ ' .list_events(:stack_name => value, :stack_id => value, :resource_name => value)'\ ' instead') uri = "stacks/#{stack.stack_name}/#{stack.id}/resources/#{resource.resource_name}/events" request(:method => 'GET', :path => uri, :expects => 200, :query => options) end end class Mock def list_resource_events(stack, resource, options={}) events = self.data[:events].values Excon::Response.new( :body => { 'events' => events }, :status => 200 ) end end end end end
Version data entries
19 entries across 19 versions & 3 rubygems