Sha256: b196c04bf3990e73acb1ef62e52769c1cf2e342b31e65eb2012b774074a7c7d7

Contents?: true

Size: 1.4 KB

Versions: 24

Compression:

Stored size: 1.4 KB

Contents

module Fog
  module AWS
    class IAM
      class Real

        require 'fog/aws/parsers/iam/list_users'

        # List users
        # 
        # ==== Parameters
        # * options<~Hash>:
        #   * 'Marker'<~String>: used to paginate subsequent requests
        #   * 'MaxItems'<~Integer>: limit results to this number per page
        #   * 'PathPrefix'<~String>: prefix for filtering results
        #
        # ==== Returns
        # * response<~Excon::Response>:
        #   * body<~Hash>:
        #     * 'Users'<~Array> - Matching groups
        #       * user<~Hash>:
        #         * Arn<~String> -
        #         * Path<~String> -
        #         * UserId<~String> -
        #         * UserName<~String> -
        #     * 'IsTruncated<~Boolean> - Whether or not results were truncated
        #     * 'Marker'<~String> - appears when IsTruncated is true as the next marker to use
        #     * 'RequestId'<~String> - Id of the request
        #
        # ==== See Also
        # http://docs.amazonwebservices.com/IAM/latest/APIReference/API_ListUsers.html
        #
        def list_users(options = {})
          request({
            'Action'  => 'ListUsers',
            :parser   => Fog::Parsers::AWS::IAM::ListUsers.new
          }.merge!(options))
        end

      end

      class Mock

        def list_users(options = {})
          Fog::Mock.not_implemented
        end

      end
    end
  end
end

Version data entries

24 entries across 24 versions & 3 rubygems

Version Path
fog-0.3.23 lib/fog/aws/requests/iam/list_users.rb
fog-0.3.22 lib/fog/aws/requests/iam/list_users.rb
fog-0.3.21 lib/fog/aws/requests/iam/list_users.rb
fog-0.3.20 lib/fog/aws/requests/iam/list_users.rb