Sha256: 949a5d7f207e2ed89081b93d10258ddc12a6878d09bd6e63bd0119fb511a9312

Contents?: true

Size: 815 Bytes

Versions: 65

Compression:

Stored size: 815 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

65 entries across 65 versions & 6 rubygems

Version Path
fog-1.22.0 lib/fog/ecloud/requests/compute/admin_edit_authentication_levels.rb
fog-1.21.0 lib/fog/ecloud/requests/compute/admin_edit_authentication_levels.rb
fog-maestrodev-1.20.0.20140305101839 lib/fog/ecloud/requests/compute/admin_edit_authentication_levels.rb
fog-maestrodev-1.20.0.20140305101305 lib/fog/ecloud/requests/compute/admin_edit_authentication_levels.rb
fog-maestrodev-1.19.0.20140212012611 lib/fog/ecloud/requests/compute/admin_edit_authentication_levels.rb
fog-1.20.0 lib/fog/ecloud/requests/compute/admin_edit_authentication_levels.rb
fog-maestrodev-1.19.0.20140110004459 lib/fog/ecloud/requests/compute/admin_edit_authentication_levels.rb
fog-maestrodev-1.19.0.20140110003812 lib/fog/ecloud/requests/compute/admin_edit_authentication_levels.rb
fog-maestrodev-1.19.0.20140109202555 lib/fog/ecloud/requests/compute/admin_edit_authentication_levels.rb
fog-maestrodev-1.19.0.20140107192102 lib/fog/ecloud/requests/compute/admin_edit_authentication_levels.rb
fog-maestrodev-1.19.0.20140107142106 lib/fog/ecloud/requests/compute/admin_edit_authentication_levels.rb
fog-maestrodev-1.19.0.20131219203941 lib/fog/ecloud/requests/compute/admin_edit_authentication_levels.rb
fog-maestrodev-1.18.0.20131219193542 lib/fog/ecloud/requests/compute/admin_edit_authentication_levels.rb
fog-1.19.0 lib/fog/ecloud/requests/compute/admin_edit_authentication_levels.rb
fog-maestrodev-1.18.0.20131219033443 lib/fog/ecloud/requests/compute/admin_edit_authentication_levels.rb
fog-maestrodev-1.18.0.20131219032002 lib/fog/ecloud/requests/compute/admin_edit_authentication_levels.rb
fog-maestrodev-1.18.0.20131219030716 lib/fog/ecloud/requests/compute/admin_edit_authentication_levels.rb
fog-maestrodev-1.18.0.20131219022322 lib/fog/ecloud/requests/compute/admin_edit_authentication_levels.rb
fog-maestrodev-1.18.0.20131218202447 lib/fog/ecloud/requests/compute/admin_edit_authentication_levels.rb
fog-maestrodev-1.18.0.20131209091424 lib/fog/ecloud/requests/compute/admin_edit_authentication_levels.rb