Class: Fog::Compute::Ecloud::AdminOrganization

Inherits:
Ecloud::Model show all
Defined in:
lib/rackspace-fog/ecloud/models/compute/admin_organization.rb

Instance Attribute Summary

Attributes inherited from Ecloud::Model

#loaded

Attributes inherited from Model

#collection, #connection

Instance Method Summary collapse

Methods inherited from Ecloud::Model

#load_unless_loaded!, #reload

Methods inherited from Model

#initialize, #inspect, #reload, #symbolize_keys, #to_json, #wait_for

Methods included from Attributes::ClassMethods

#_load, #aliases, #attribute, #attributes, #identity, #ignore_attributes, #ignored_attributes

Methods included from Attributes::InstanceMethods

#_dump, #attributes, #dup, #identity, #identity=, #merge_attributes, #new_record?, #requires, #requires_one

Constructor Details

This class inherits a constructor from Fog::Model

Instance Method Details

#authentication_levelsObject



25
26
27
# File 'lib/rackspace-fog/ecloud/models/compute/admin_organization.rb', line 25

def authentication_levels
  @authentication_levels = Fog::Compute::Ecloud::AuthenticationLevels.new(:connection => connection, :href => "/cloudapi/ecloud/admin/organizations/#{org_id}/authenticationLevels")
end

#idObject



29
30
31
# File 'lib/rackspace-fog/ecloud/models/compute/admin_organization.rb', line 29

def id
  href.scan(/\d+/)[0]
end

#login_bannerObject



21
22
23
# File 'lib/rackspace-fog/ecloud/models/compute/admin_organization.rb', line 21

def 
  @login_banner = Fog::Compute::Ecloud::LoginBanner.new(:connection => connection, :href => "/cloudapi/ecloud/admin/organizations/#{org_id}/loginBanner")
end

#org_idObject



33
34
35
# File 'lib/rackspace-fog/ecloud/models/compute/admin_organization.rb', line 33

def org_id
  other_links[:Link].detect { |l| l[:type] == "application/vnd.tmrk.cloud.organization" }[:href].scan(/\d+/)[0]
end

#password_complexity_rulesObject



17
18
19
# File 'lib/rackspace-fog/ecloud/models/compute/admin_organization.rb', line 17

def password_complexity_rules
  @password_complexity_rules = Fog::Compute::Ecloud::PasswordComplexityRules.new(:connection => connection, :href => "/cloudapi/ecloud/admin/organizations/#{org_id}/passwordComplexityRules")
end

#ssh_keysObject



13
14
15
# File 'lib/rackspace-fog/ecloud/models/compute/admin_organization.rb', line 13

def ssh_keys
  @ssh_keys = Fog::Compute::Ecloud::SshKeys.new(:connection => connection, :href => "/cloudapi/ecloud/admin/sshKeys/organizations/#{org_id}")
end