Class: McServerTemplateMultiCloudImage
- Inherits:
-
Object
- Object
- McServerTemplateMultiCloudImage
- Extended by:
- RightScale::Api::GatewayExtend
- Includes:
- RightScale::Api::Gateway
- Defined in:
- lib/rest_connection/rightscale/mc_server_template_multi_cloud_image.rb
Overview
API 1.5
Instance Attribute Summary
Attributes included from RightScale::Api::Base
Class Method Summary collapse
Instance Method Summary collapse
Methods included from RightScale::Api::GatewayExtend
create, filters, find, find_all, find_by, find_with_filter, load, load_all, parse_args, resource_post_name
Methods included from RightScale::Api::GatewayConnection
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
Methods included from RightScale::Api::BaseConnection
Methods included from RightScale::Api::Gateway
#[], #[]=, #actions, #hash_of_links, #href, #initialize, #load, #method_missing, #nickname, #parse_params, #rediscover, #save
Methods included from RightScale::Api::Base
#[], #[]=, #destroy, #initialize, #method_missing, #reload, #rs_id, #save
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class RightScale::Api::Gateway
Class Method Details
.filters ⇒ Object
50 51 52 |
# File 'lib/rest_connection/rightscale/mc_server_template_multi_cloud_image.rb', line 50 def self.filters [:is_default, :multi_cloud_image_href, :server_template_href] end |
.resource_plural_name ⇒ Object
42 43 44 |
# File 'lib/rest_connection/rightscale/mc_server_template_multi_cloud_image.rb', line 42 def self.resource_plural_name "server_template_multi_cloud_images" end |
.resource_singular_name ⇒ Object
46 47 48 |
# File 'lib/rest_connection/rightscale/mc_server_template_multi_cloud_image.rb', line 46 def self.resource_singular_name "server_template_multi_cloud_image" end |
Instance Method Details
#make_default ⇒ Object
54 55 56 57 |
# File 'lib/rest_connection/rightscale/mc_server_template_multi_cloud_image.rb', line 54 def make_default my_href = URI.parse(self.href) connection.post(my_href + "/make_default") end |
#resource_plural_name ⇒ Object
34 35 36 |
# File 'lib/rest_connection/rightscale/mc_server_template_multi_cloud_image.rb', line 34 def resource_plural_name "server_template_multi_cloud_images" end |
#resource_singular_name ⇒ Object
38 39 40 |
# File 'lib/rest_connection/rightscale/mc_server_template_multi_cloud_image.rb', line 38 def resource_singular_name "server_template_multi_cloud_image" end |