Sha256: 83fa501b9147dddbea4e9a9790bde3f93413214888c039a828c25062c6e84aee

Contents?: true

Size: 567 Bytes

Versions: 4

Compression:

Stored size: 567 Bytes

Contents

module Fog
  module Compute
    class Gridscale
      class Real

        def sshkey_update(sshkey_uuid, payload)
          encoded_body = Fog::JSON.encode(payload)
          request(
              :expects         => [204],
              :headers         => {
                  'Content-Type' => "application/json; charset=UTF-8",
              },
              :method          => 'PATCH',
              :path            => "/objects/sshkeys/#{sshkey_uuid}",
              :body            => encoded_body,

              )
        end

      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
fog-gridscale-0.1.5 lib/fog/compute/gridscale/requests/sshkey_update.rb
fog-gridscale-0.1.4 lib/fog/compute/gridscale/requests/sshkey_update.rb
fog-gridscale-0.1.3 lib/fog/compute/gridscale/requests/sshkey_update.rb
fog-gridscale-0.1.2 lib/fog/compute/gridscale/requests/sshkey_update.rb