    # File lib/fog/openstack/requests/image/update_image_members.rb, line 5
            def update_image_members(image_id, members)
              # Sample members
              # [
              #   {'member_id' => 'tenant1', 'can_share' => true  },
              #   {'member_id' => 'tenant2', 'can_share' => false }
              # ]
              data = { 'memberships' => members }

              request(
                :body    => MultiJson.encode(data),
                :expects => [200, 202],
                :method  => 'PUT',
                :path    => "images/#{image_id}/members"
              )
            end