fog/fog-openstack

View on GitHub
lib/fog/openstack/identity/v3/requests/update_os_credential.rb

Summary

Maintainability
A
15 mins
Test Coverage
module Fog
  module OpenStack
    class Identity
      class V3
        class Real
          def update_os_credential(id, credential)
            request(
              :expects => [200],
              :method  => 'PATCH',
              :path    => "credentials/#{id}",
              :body    => Fog::JSON.encode(:credential => credential)
            )
          end
        end

        class Mock
        end
      end
    end
  end
end