Sha256: 941e92e5345cfeca1cbcadb8827df65305c7450cfd1cb6fece1074b549aa8e9f

Contents?: true

Size: 641 Bytes

Versions: 19

Compression:

Stored size: 641 Bytes

Contents

module Fog
  module Identity
    class OpenStack
      class V3
        class Real
          def list_groups(options = {})
            user_id = options.delete('user_id') || options.delete(:user_id)

            if user_id
              path = "users/#{user_id}groups"
            else
              path = "groups"
            end

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

        class Mock
          def list_groups(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_groups.rb
fog-openstack-0.1.9 lib/fog/openstack/requests/identity_v3/list_groups.rb
fog-openstack-0.1.8 lib/fog/openstack/requests/identity_v3/list_groups.rb
fog-openstack-0.1.7 lib/fog/openstack/requests/identity_v3/list_groups.rb
fog-openstack-0.1.6 lib/fog/openstack/requests/identity_v3/list_groups.rb
fog-openstack-0.1.5 lib/fog/openstack/requests/identity_v3/list_groups.rb
fog-openstack-0.1.4 lib/fog/openstack/requests/identity_v3/list_groups.rb
fog-openstack-0.1.3 lib/fog/openstack/requests/identity_v3/list_groups.rb
fog-openstack-0.1.2 lib/fog/openstack/requests/identity_v3/list_groups.rb
fog-openstack-0.1.1 lib/fog/openstack/requests/identity_v3/list_groups.rb
fog-openstack-0.1.0 lib/fog/openstack/requests/identity_v3/list_groups.rb
fog-1.37.0 lib/fog/openstack/requests/identity_v3/list_groups.rb
fog-1.36.0 lib/fog/openstack/requests/identity_v3/list_groups.rb
fog-1.35.0 lib/fog/openstack/requests/identity_v3/list_groups.rb
fog-2.0.0.pre.0 lib/fog/openstack/requests/identity_v3/list_groups.rb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/fog-1.32.0/lib/fog/openstack/requests/identity_v3/list_groups.rb
fog-1.34.0 lib/fog/openstack/requests/identity_v3/list_groups.rb
fog-1.33.0 lib/fog/openstack/requests/identity_v3/list_groups.rb
fog-1.32.0 lib/fog/openstack/requests/identity_v3/list_groups.rb