Sha256: dca4a969fa2ff40aaab2109e88b0fee05433fc6ffdc46bbd0ad52737c14fb795

Contents?: true

Size: 568 Bytes

Versions: 22

Compression:

Stored size: 568 Bytes

Contents

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

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

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

Version data entries

22 entries across 22 versions & 3 rubygems

Version Path
fog-openstack-1.1.5 lib/fog/openstack/orchestration/requests/list_resource_types.rb
fog-openstack-1.1.4 lib/fog/openstack/orchestration/requests/list_resource_types.rb
fog-openstack-1.1.3 lib/fog/openstack/orchestration/requests/list_resource_types.rb
fog-openstack-1.1.2 lib/fog/openstack/orchestration/requests/list_resource_types.rb
fog-openstack-fork-99 lib/fog/openstack/orchestration/requests/list_resource_types.rb
fog-openstack-1.1.0 lib/fog/openstack/orchestration/requests/list_resource_types.rb
fog-openstack-1.1.0.pre lib/fog/openstack/orchestration/requests/list_resource_types.rb
fog-openstack-apibank-1.0.102 lib/fog/openstack/orchestration/requests/list_resource_types.rb
fog-openstack-1.0.11 lib/fog/openstack/orchestration/requests/list_resource_types.rb
fog-openstack-apibank-1.0.101 lib/fog/openstack/orchestration/requests/list_resource_types.rb
fog-openstack-1.0.10 lib/fog/openstack/orchestration/requests/list_resource_types.rb
fog-openstack-1.0.9 lib/fog/openstack/orchestration/requests/list_resource_types.rb
fog-openstack-1.0.8 lib/fog/openstack/orchestration/requests/list_resource_types.rb
fog-openstack-1.0.7 lib/fog/openstack/orchestration/requests/list_resource_types.rb
fog-openstack-1.0.6 lib/fog/openstack/orchestration/requests/list_resource_types.rb
fog-openstack-1.0.5 lib/fog/openstack/orchestration/requests/list_resource_types.rb
fog-openstack-1.0.4 lib/fog/openstack/orchestration/requests/list_resource_types.rb
fog-openstack-1.0.3 lib/fog/openstack/orchestration/requests/list_resource_types.rb
fog-openstack-1.0.2 lib/fog/openstack/orchestration/requests/list_resource_types.rb
fog-openstack-1.0.1 lib/fog/openstack/orchestration/requests/list_resource_types.rb