class McSshKey
API 1.5
Public Class Methods
create(opts)
click to toggle source
# File lib/rest_connection/rightscale/mc_ssh_key.rb, line 57 def self.create(opts) create_opts = { self.resource_singular_name.to_sym => opts } location = connection.post("clouds/#{opts['cloud_id']}/#{self.resource_plural_name}", create_opts) newrecord = self.new('href' => location) newrecord.reload newrecord end
filters()
click to toggle source
# File lib/rest_connection/rightscale/mc_ssh_key.rb, line 53 def self.filters [:resource_uid] end
parse_args(cloud_id)
click to toggle source
# File lib/rest_connection/rightscale/mc_ssh_key.rb, line 49 def self.parse_args(cloud_id) "clouds/#{cloud_id}/" end
resource_plural_name()
click to toggle source
# File lib/rest_connection/rightscale/mc_ssh_key.rb, line 41 def self.resource_plural_name "ssh_keys" end
resource_singular_name()
click to toggle source
# File lib/rest_connection/rightscale/mc_ssh_key.rb, line 45 def self.resource_singular_name "ssh_key" end
Public Instance Methods
resource_plural_name()
click to toggle source
# File lib/rest_connection/rightscale/mc_ssh_key.rb, line 33 def resource_plural_name "ssh_keys" end
resource_singular_name()
click to toggle source
# File lib/rest_connection/rightscale/mc_ssh_key.rb, line 37 def resource_singular_name "ssh_key" end