Sha256: 3b210dec3a115c2e9bfc6e002416613750bede11a1012b4986ab14020a017147

Contents?: true

Size: 828 Bytes

Versions: 14

Compression:

Stored size: 828 Bytes

Contents

module Fog
  module Compute
    class Ecloud
      class Real

        def authentication_levels_edit(data)
          validate_data([:basic, :sha1, :sha256, :sha512], data)
          body = build_authentication_levels_edit(data)
          request(
            :expects => 202,
            :method => 'PUT',
            :headers => {},
            :body => body,
            :uri => data[:uri],
            :parse => true
          )
        end

        private

        
        def build_authentication_levels_edit(data)
          xml = Builder::XmlMarkup.new
          xml.AuthenticationLevels do
            xml.BasicEnabled data[:basic]
            xml.SHA1Enabled data[:sha1]
            xml.SHA256Enabled data[:sha256]
            xml.SHA512Enabled data[:sha512]
          end    
        end
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 8 rubygems

Version Path
fog-nirvanix-1.8.2 lib/fog/ecloud/requests/compute/admin_edit_authentication_levels.rb
fog-nirvanix-1.8.1 lib/fog/ecloud/requests/compute/admin_edit_authentication_levels.rb
fog-parser-fix-1.6.1 lib/fog/ecloud/requests/compute/admin_edit_authentication_levels.rb
fog-test-again-1.6.0 lib/fog/ecloud/requests/compute/admin_edit_authentication_levels.rb
fog-parser-fix-1.6.0 lib/fog/ecloud/requests/compute/admin_edit_authentication_levels.rb
ey-vendored-backup-3.0.27 vendor/gems/fog/lib/fog/ecloud/requests/compute/admin_edit_authentication_levels.rb
fog-sgonyea-1.8.1 lib/fog/ecloud/requests/compute/admin_edit_authentication_levels.rb
fog-1.8.0 lib/fog/ecloud/requests/compute/admin_edit_authentication_levels.rb
fog-maestrodev-1.7.0.20121114190951 lib/fog/ecloud/requests/compute/admin_edit_authentication_levels.rb
fog-1.7.0 lib/fog/ecloud/requests/compute/admin_edit_authentication_levels.rb
fog-1.6.0 lib/fog/ecloud/requests/compute/admin_edit_authentication_levels.rb
fog-1.5.0 lib/fog/ecloud/requests/compute/admin_edit_authentication_levels.rb
rackspace-fog-1.4.2 lib/rackspace-fog/ecloud/requests/compute/admin_edit_authentication_levels.rb
fog-1.4.0 lib/fog/ecloud/requests/compute/admin_edit_authentication_levels.rb