class Fog::Compute::Ecloud::AdminOrganization
Public Instance Methods
authentication_levels()
click to toggle source
# File lib/fog/compute/ecloud/models/admin_organization.rb, line 25 def authentication_levels @authentication_levels = Fog::Compute::Ecloud::AuthenticationLevels.new(:service => service, :href => "#{service.base_path}/admin/organizations/#{organization.id}/authenticationLevels") end
id()
click to toggle source
# File lib/fog/compute/ecloud/models/admin_organization.rb, line 29 def id href.scan(/\d+/)[0] end
organization()
click to toggle source
# File lib/fog/compute/ecloud/models/admin_organization.rb, line 33 def organization @organization ||= begin reload unless other_links organization_link = other_links.find{|l| l[:type] == "application/vnd.tmrk.cloud.organization"} self.service.organizations.new(organization_link) end end
password_complexity_rules()
click to toggle source
# File lib/fog/compute/ecloud/models/admin_organization.rb, line 17 def password_complexity_rules @password_complexity_rules = Fog::Compute::Ecloud::PasswordComplexityRules.new(:service => service, :href => "#{service.base_path}/admin/organizations/#{organization.id}/passwordComplexityRules") end
reload()
click to toggle source
Calls superclass method
Fog::Ecloud::Model#reload
# File lib/fog/compute/ecloud/models/admin_organization.rb, line 41 def reload @organization = nil super end
ssh_keys()
click to toggle source
# File lib/fog/compute/ecloud/models/admin_organization.rb, line 13 def ssh_keys @ssh_keys = Fog::Compute::Ecloud::SshKeys.new(:service => service, :href => "#{service.base_path}/admin/sshKeys/organizations/#{organization.id}") end