Sha256: 1242bc979ecbc551b1b300ee28d2ab35d5ba86b1019e37db31e561cbdc5c5e44

Contents?: true

Size: 637 Bytes

Versions: 4

Compression:

Stored size: 637 Bytes

Contents

module Fog
  module Orchestration
    class HuaweiCloud
      class Real
        def show_resource_data(stack_name, stack_id, resource_name)
          request(
            :method  => 'GET',
            :path    => "stacks/#{stack_name}/#{stack_id}/resources/#{resource_name}",
            :expects => 200
          )
        end
      end

      class Mock
        def show_resource_data(_stack_name, _stack_id, _resource_name)
          resources = data[:resources].values

          Excon::Response.new(
            :body   => {'resources' => resources},
            :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_resource_data.rb
fog-huaweicloud-0.0.2 lib/fog/orchestration/huaweicloud/requests/show_resource_data.rb
fog-huaweicloud-0.1.3 lib/fog/orchestration/huaweicloud/requests/show_resource_data.rb
fog-huaweicloud-0.1.2 lib/fog/orchestration/huaweicloud/requests/show_resource_data.rb