Class: McMultiCloudImageSetting
- Inherits:
-
Object
- Object
- McMultiCloudImageSetting
- Extended by:
- RightScale::Api::GatewayExtend
- Includes:
- RightScale::Api::Gateway
- Defined in:
- lib/rest_connection/rightscale/mc_multi_cloud_image_setting.rb
Overview
API 1.5
Instance Attribute Summary
Attributes included from RightScale::Api::Base
Class Method Summary collapse
- .filters ⇒ Object
- .parse_args(multi_cloud_image_id) ⇒ Object
- .resource_plural_name ⇒ Object
-
.resource_post_name ⇒ Object
API 1.5 MultiCloudImageSetting is posted to url /api/multi_cloud_images/:id/settings but the object it posts to the API is named :multi_cloud_image_setting => { attrs }.
- .resource_singular_name ⇒ Object
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
53 54 55 |
# File 'lib/rest_connection/rightscale/mc_multi_cloud_image_setting.rb', line 53 def self.filters [:cloud_href, :multi_cloud_image_href] end |
.parse_args(multi_cloud_image_id) ⇒ Object
49 50 51 |
# File 'lib/rest_connection/rightscale/mc_multi_cloud_image_setting.rb', line 49 def self.parse_args(multi_cloud_image_id) "multi_cloud_images/#{multi_cloud_image_id}/" end |
.resource_plural_name ⇒ Object
41 42 43 |
# File 'lib/rest_connection/rightscale/mc_multi_cloud_image_setting.rb', line 41 def self.resource_plural_name "settings" end |
.resource_post_name ⇒ Object
API 1.5 MultiCloudImageSetting is posted to url /api/multi_cloud_images/:id/settings but the object it posts to the API is named :multi_cloud_image_setting => { attrs }
64 65 66 |
# File 'lib/rest_connection/rightscale/mc_multi_cloud_image_setting.rb', line 64 def self.resource_post_name "multi_cloud_image_setting" end |
.resource_singular_name ⇒ Object
45 46 47 |
# File 'lib/rest_connection/rightscale/mc_multi_cloud_image_setting.rb', line 45 def self.resource_singular_name "setting" end |
Instance Method Details
#cloud_id ⇒ Object
57 58 59 |
# File 'lib/rest_connection/rightscale/mc_multi_cloud_image_setting.rb', line 57 def cloud_id self.cloud.split(/\//).last.to_i end |
#resource_plural_name ⇒ Object
33 34 35 |
# File 'lib/rest_connection/rightscale/mc_multi_cloud_image_setting.rb', line 33 def resource_plural_name "settings" end |
#resource_singular_name ⇒ Object
37 38 39 |
# File 'lib/rest_connection/rightscale/mc_multi_cloud_image_setting.rb', line 37 def resource_singular_name "setting" end |