Sha256: 712e9af950600b4d32ad694081ea68b358ac2682811f2f8a6445d9f9d4cbfcad

Contents?: true

Size: 625 Bytes

Versions: 4

Compression:

Stored size: 625 Bytes

Contents

module Fog
  module Orchestration
    class HuaweiCloud
      class Real
        def show_event_details(stack, resource, event_id)
          request(
            :method  => 'GET',
            :path    => "stacks/#{stack.stack_name}/#{stack.id}/resources/#{resource.resource_name}/events/#{event_id}",
            :expects => 200
          )
        end
      end

      class Mock
        def show_event_details(_stack, _event)
          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/show_event_details.rb
fog-huaweicloud-0.0.2 lib/fog/orchestration/huaweicloud/requests/show_event_details.rb
fog-huaweicloud-0.1.3 lib/fog/orchestration/huaweicloud/requests/show_event_details.rb
fog-huaweicloud-0.1.2 lib/fog/orchestration/huaweicloud/requests/show_event_details.rb