Sha256: e2a9ab20993f341afe8bee466da212422f3150259e80249e55644d245bbe3c72

Contents?: true

Size: 568 Bytes

Versions: 39

Compression:

Stored size: 568 Bytes

Contents

module Fog
  module Orchestration
    class OpenStack
      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

39 entries across 37 versions & 3 rubygems

Version Path
fog-openstack-0.1.31 lib/fog/orchestration/openstack/requests/list_resource_types.rb
fog-openstack-0.3.10 lib/fog/orchestration/openstack/requests/list_resource_types.rb
fog-openstack-0.1.30 lib/fog/orchestration/openstack/requests/list_resource_types.rb
fog-openstack-0.1.29 lib/fog/orchestration/openstack/requests/list_resource_types.rb
fog-openstack-0.3.9 lib/fog/orchestration/openstack/requests/list_resource_types.rb
fog-openstack-0.1.28 lib/fog/orchestration/openstack/requests/list_resource_types.rb
fog-openstack-0.3.8 lib/fog/orchestration/openstack/requests/list_resource_types.rb
fog-openstack-0.3.7 lib/fog/orchestration/openstack/requests/list_resource_types.rb
fog-openstack-0.3.6 lib/fog/orchestration/openstack/requests/list_resource_types.rb
fog-openstack-0.3.5 lib/fog/orchestration/openstack/requests/list_resource_types.rb
fog-openstack-0.3.4 lib/fog/orchestration/openstack/requests/list_resource_types.rb
fog-openstack-0.3.3 lib/fog/orchestration/openstack/requests/list_resource_types.rb
fog-openstack-0.3.2 lib/fog/orchestration/openstack/requests/list_resource_types.rb
fog-openstack-0.3.0 lib/fog/orchestration/openstack/requests/list_resource_types.rb
fog-openstack-0.2.4 lib/fog/orchestration/openstack/requests/list_resource_types.rb
fog-openstack-0.2.3 lib/fog/orchestration/openstack/requests/list_resource_types.rb
fog-openstack-0.2.2 lib/fog/orchestration/openstack/requests/list_resource_types.rb
fog-openstack-0.2.1 lib/fog/orchestration/openstack/requests/list_resource_types.rb
fog-openstack-0.2.0 lib/fog/orchestration/openstack/requests/list_resource_types.rb
fog-zj-0.1.28 lib/fog/orchestration/openstack/requests/list_resource_types.rb