Sha256: c9b235a856663ed416293f7e1b5716bf3042c52dacbb4453b1c804637e7ecfe5
Contents?: true
Size: 748 Bytes
Versions: 5
Compression:
Stored size: 748 Bytes
Contents
require 'fog/core/model' module Fog module Compute class OracleCloud class SshKey < Fog::Model identity :uri attribute :enabled attribute :key attribute :name def save identity ? update : create end def create requires :enabled, :name, :key data = service.create_ssh_key(name, enabled, key) merge_attributes(data.body) end def update requires :enabled, :name, :key, :uri data = service.update_ssh_key(uri, name, enabled, key) merge_attributes(data.body) end def destroy requires :name service.delete_ssh_key(name) end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems