Sha256: 8951e02cea54942d22ffc174917f1c5fb43347abf77aba26a2225f583bc6beb4

Contents?: true

Size: 532 Bytes

Versions: 4

Compression:

Stored size: 532 Bytes

Contents

module Fog
  module Orchestration
    class OpenStack
      class Real
        def list_resource_types
          request(
            :method  => 'GET',
            :path    => "resource_types",
            :expects => 200
          )
        end
      end

      class Mock
        def list_resource_types
          resources = self.data[:resource_types].values

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
fog-1.31.0 lib/fog/openstack/requests/orchestration/list_resource_types.rb
fog-1.30.0 lib/fog/openstack/requests/orchestration/list_resource_types.rb
fog-1.29.0 lib/fog/openstack/requests/orchestration/list_resource_types.rb
fog-1.28.0 lib/fog/openstack/requests/orchestration/list_resource_types.rb