class Fog::Compute::Ecloud::Organization
Public Instance Methods
admin()
click to toggle source
# File lib/fog/compute/ecloud/models/organization.rb, line 25 def admin @admin ||= self.service.admin_organizations.new(:href => "#{service.base_path}/admin/organizations/#{id}") end
disable_support_access(options = {})
click to toggle source
# File lib/fog/compute/ecloud/models/organization.rb, line 78 def disable_support_access(options = {}) options[:uri] = "#{service.base_path}/admin/organizations/#{id}/action/disableSupportAccess" service.admin_disable_support_access(options[:uri]) end
edit_authentication_levels(options = {})
click to toggle source
# File lib/fog/compute/ecloud/models/organization.rb, line 55 def edit_authentication_levels(options = {}) options[:uri] = "#{service.base_path}/admin/organizations/#{id}/authenticationLevels" data = service.admin_edit_authentication_levels(options).body level = Fog::Compute::Ecloud::AdminOrganizations.new(:service => service, :href => data[:href])[0] end
edit_password_complexity_rules(options = {})
click to toggle source
# File lib/fog/compute/ecloud/models/organization.rb, line 61 def edit_password_complexity_rules(options = {}) options[:uri] = "#{service.base_path}/admin/organizations/#{id}/passwordComplexityRules" data = service.admin_edit_password_complexity_rules(options).body level = Fog::Compute::Ecloud::PasswordComplexityRules.new(:service => service, :href => data[:href])[0] end
enable_support_access(options = {})
click to toggle source
# File lib/fog/compute/ecloud/models/organization.rb, line 73 def enable_support_access(options = {}) options[:uri] = "#{service.base_path}/admin/organizations/#{id}/action/enableSupportAccess" service.admin_enable_support_access(options[:uri]) end
environments()
click to toggle source
# File lib/fog/compute/ecloud/models/organization.rb, line 17 def environments @environments ||= self.service.environments(:href => href) end
Also aliased as: vdcs
id()
click to toggle source
# File lib/fog/compute/ecloud/models/organization.rb, line 83 def id href.scan(/\d+/)[0] end
locations()
click to toggle source
# File lib/fog/compute/ecloud/models/organization.rb, line 13 def locations @locations ||= Fog::Compute::Ecloud::Locations.new( :service => service, :href => href ) end
reload()
click to toggle source
Set instance variables for child collections/models to nil so that they will be reloaded correctly
@return nothing
Calls superclass method
Fog::Ecloud::Model#reload
# File lib/fog/compute/ecloud/models/organization.rb, line 45 def reload @locations = nil @environments = nil @tags = nil @admin = nil @users = nil @support_tickets = nil super end
support_tickets(type = :open)
click to toggle source
# File lib/fog/compute/ecloud/models/organization.rb, line 33 def support_tickets(type = :open) case type when :open @support_tickets ||= Fog::Compute::Ecloud::SupportTickets.new(:service => service, :href => "#{service.base_path}/admin/tickets/organizations/#{id}/active") when :closed @support_tickets ||= Fog::Compute::Ecloud::SupportTickets.new(:service => service, :href => "#{service.base_path}/admin/tickets/organizations/#{id}/closed") end end
users()
click to toggle source
# File lib/fog/compute/ecloud/models/organization.rb, line 29 def users @users ||= self.service.users(:href => "#{service.base_path}/admin/users/organizations/#{id}") end