Sha256: ed636d878f13ff35dabc597bcfb5d7184a1229420f0ae3807005893f850fd4a6

Contents?: true

Size: 864 Bytes

Versions: 4

Compression:

Stored size: 864 Bytes

Contents

module Fog
  module Orchestration
    class HuaweiCloud
      class Real
        def list_stack_events(stack, options = {})
          Fog::Logger.deprecation('Calling HuaweiCloud[:orchestration].list_stack_events(stack, options)'\
                                  ' is deprecated, call .list_events(:stack => stack) or '\
                                  ' .list_events(:stack_name => value, :stack_id => value) instead')

          uri = "stacks/#{stack.stack_name}/#{stack.id}/events"
          request(:method => 'GET', :path => uri, :expects => 200, :query => options)
        end
      end

      class Mock
        def list_stack_events(_stack, _options = {})
          events = data[:events].values

          Excon::Response.new(
            :body   => {'events' => events},
            :status => 200
          )
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
fog-huaweicloud-0.0.3 lib/fog/orchestration/huaweicloud/requests/list_stack_events.rb
fog-huaweicloud-0.0.2 lib/fog/orchestration/huaweicloud/requests/list_stack_events.rb
fog-huaweicloud-0.1.3 lib/fog/orchestration/huaweicloud/requests/list_stack_events.rb
fog-huaweicloud-0.1.2 lib/fog/orchestration/huaweicloud/requests/list_stack_events.rb