Class: RsInternal

Inherits:
Object
  • Object
show all
Extended by:
RightScale::Api::BaseExtend, RightScale::Api::InternalConnection
Includes:
RightScale::Api::Base
Defined in:
lib/rest_connection/rightscale/rs_internal.rb

Overview

API 0.1

Instance Attribute Summary

Attributes included from RightScale::Api::Base

#params

Class Method Summary collapse

Instance Method Summary collapse

Methods included from RightScale::Api::BaseExtend

[], create, deny_methods, filters, find, find_all, find_by, find_by_cloud_id, find_by_id, find_by_nickname, find_by_nickname_speed, find_with_filter, resource_plural_name, resource_singular_name

Methods included from RightScale::Api::Base

#[], #[]=, #destroy, #initialize, #method_missing, #reload, #resource_plural_name, #resource_singular_name, #rs_id, #save

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class RightScale::Api::Base

Class Method Details

.connectionObject



36
37
38
39
# File 'lib/rest_connection/rightscale/rs_internal.rb', line 36

def self.connection
  # call connection defined in InternalConnection module
  super
end

.get_server_template_multi_cloud_images(server_template_href) ⇒ Object



41
42
43
# File 'lib/rest_connection/rightscale/rs_internal.rb', line 41

def self.get_server_template_multi_cloud_images(server_template_href)
  connection.get("rs_internal/get_server_template_multi_cloud_images","server_template_href=#{server_template_href}")
end

.set_server_multi_cloud_image(server_href, mci_href) ⇒ Object



45
46
47
# File 'lib/rest_connection/rightscale/rs_internal.rb', line 45

def self.set_server_multi_cloud_image(server_href, mci_href)
  connection.put("rs_internal/set_server_multi_cloud_image", {:server_href => server_href, :multi_cloud_image_href => mci_href})
end

Instance Method Details

#connectionObject



32
33
34
# File 'lib/rest_connection/rightscale/rs_internal.rb', line 32

def connection
  self.connection
end