Class: Fog::Compute::Ecloud::AdminOrganization
- Inherits:
-
Ecloud::Model
- Object
- Model
- Ecloud::Model
- Fog::Compute::Ecloud::AdminOrganization
- Defined in:
- lib/fog/ecloud/models/compute/admin_organization.rb
Instance Attribute Summary
Attributes inherited from Ecloud::Model
Attributes inherited from Model
Instance Method Summary collapse
- #authentication_levels ⇒ Object
- #id ⇒ Object
- #login_banner ⇒ Object
- #organization ⇒ Object
- #password_complexity_rules ⇒ Object
- #ssh_keys ⇒ Object
Methods inherited from Ecloud::Model
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 Fog::Core::DeprecatedConnectionAccessors
#connection, #connection=, #prepare_service_value
Methods included from Attributes::InstanceMethods
#_dump, #attributes, #dup, #identity, #identity=, #merge_attributes, #new_record?, #persisted?, #requires, #requires_one
Constructor Details
This class inherits a constructor from Fog::Model
Instance Method Details
#authentication_levels ⇒ Object
25 26 27 |
# File 'lib/fog/ecloud/models/compute/admin_organization.rb', line 25 def authentication_levels @authentication_levels = Fog::Compute::Ecloud::AuthenticationLevels.new(:service => service, :href => "/cloudapi/ecloud/admin/organizations/#{organization.id}/authenticationLevels") end |
#id ⇒ Object
29 30 31 |
# File 'lib/fog/ecloud/models/compute/admin_organization.rb', line 29 def id href.scan(/\d+/)[0] end |
#login_banner ⇒ Object
21 22 23 |
# File 'lib/fog/ecloud/models/compute/admin_organization.rb', line 21 def @login_banner = Fog::Compute::Ecloud::LoginBanner.new(:service => service, :href => "/cloudapi/ecloud/admin/organizations/#{organization.id}/loginBanner") end |
#organization ⇒ Object
33 34 35 36 37 38 39 |
# File 'lib/fog/ecloud/models/compute/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 ⇒ Object
17 18 19 |
# File 'lib/fog/ecloud/models/compute/admin_organization.rb', line 17 def password_complexity_rules @password_complexity_rules = Fog::Compute::Ecloud::PasswordComplexityRules.new(:service => service, :href => "/cloudapi/ecloud/admin/organizations/#{organization.id}/passwordComplexityRules") end |