Sha256: 0fe79d74f679a963f9b21b67698502e326dda8c9e719bb169979e067dc78ffcb

Contents?: true

Size: 649 Bytes

Versions: 19

Compression:

Stored size: 649 Bytes

Contents

module Fog
  module Identity
    class OpenStack
      class V3
        class Real
          def list_projects(options = {})
            user_id = options.delete('user_id') || options.delete(:user_id)
            if user_id
              path = "users/#{user_id}/projects"
            else
              path = "projects"
            end

            request(
              :expects => [200],
              :method  => 'GET',
              :path    => path,
              :query   => options
            )
          end
        end

        class Mock
          def list_projects(options = {})

          end
        end
      end
    end
  end
end

Version data entries

19 entries across 19 versions & 3 rubygems

Version Path
fog-openstack-0.1.10 lib/fog/openstack/requests/identity_v3/list_projects.rb
fog-openstack-0.1.9 lib/fog/openstack/requests/identity_v3/list_projects.rb
fog-openstack-0.1.8 lib/fog/openstack/requests/identity_v3/list_projects.rb
fog-openstack-0.1.7 lib/fog/openstack/requests/identity_v3/list_projects.rb
fog-openstack-0.1.6 lib/fog/openstack/requests/identity_v3/list_projects.rb
fog-openstack-0.1.5 lib/fog/openstack/requests/identity_v3/list_projects.rb
fog-openstack-0.1.4 lib/fog/openstack/requests/identity_v3/list_projects.rb
fog-openstack-0.1.3 lib/fog/openstack/requests/identity_v3/list_projects.rb
fog-openstack-0.1.2 lib/fog/openstack/requests/identity_v3/list_projects.rb
fog-openstack-0.1.1 lib/fog/openstack/requests/identity_v3/list_projects.rb
fog-openstack-0.1.0 lib/fog/openstack/requests/identity_v3/list_projects.rb
fog-1.37.0 lib/fog/openstack/requests/identity_v3/list_projects.rb
fog-1.36.0 lib/fog/openstack/requests/identity_v3/list_projects.rb
fog-1.35.0 lib/fog/openstack/requests/identity_v3/list_projects.rb
fog-2.0.0.pre.0 lib/fog/openstack/requests/identity_v3/list_projects.rb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/fog-1.32.0/lib/fog/openstack/requests/identity_v3/list_projects.rb
fog-1.34.0 lib/fog/openstack/requests/identity_v3/list_projects.rb
fog-1.33.0 lib/fog/openstack/requests/identity_v3/list_projects.rb
fog-1.32.0 lib/fog/openstack/requests/identity_v3/list_projects.rb