admin()
click to toggle source
def admin
@admin ||= Fog::Compute::Ecloud::AdminOrganizations.new(:connection => connection, :href => "/cloudapi/ecloud/admin/organizations/#{id}").first
end
disable_support_access(options = {})
click to toggle source
def disable_support_access(options = {})
options[:uri] = "/cloudapi/ecloud/admin/organizations/#{id}/action/disableSupportAccess"
connection.admin_disable_support_access(options[:uri])
end
edit_authentication_levels(options = {})
click to toggle source
def edit_authentication_levels(options = {})
options[:uri] = "/cloudapi/ecloud/admin/organizations/#{id}/authenticationLevels"
data = connection.admin_edit_authentication_levels(options).body
level = Fog::Compute::Ecloud::AdminOrganizations.new(:connection => connection, :href => data[:href])[0]
end
edit_login_banner(options = {})
click to toggle source
def edit_login_banner(options = {})
options[:uri] = "/cloudapi/ecloud/admin/organizations/#{id}/loginBanner"
data = connection.admin_edit_login_banner(options).body
banner = Fog::Compute::Ecloud::LoginBanners.new(:connection => connection, :href => data[:href])[0]
end
edit_password_complexity_rules(options = {})
click to toggle source
def edit_password_complexity_rules(options = {})
options[:uri] = "/cloudapi/ecloud/admin/organizations/#{id}/passwordComplexityRules"
data = connection.admin_edit_password_complexity_rules(options).body
level = Fog::Compute::Ecloud::PasswordComplexityRules.new(:connection => connection, :href => data[:href])[0]
end
enable_support_access(options = {})
click to toggle source
def enable_support_access(options = {})
options[:uri] = "/cloudapi/ecloud/admin/organizations/#{id}/action/enableSupportAccess"
connection.admin_enable_support_access(options[:uri])
end
environments()
click to toggle source
def environments
@environments ||= Fog::Compute::Ecloud::Environments.new(:connection => connection, :href => href)
end
id()
click to toggle source
def id
href.scan(%r\d+/)[0]
end
locations()
click to toggle source
def locations
@locations ||= Fog::Compute::Ecloud::Locations.new( :connection => connection, :href => href )
end
support_tickets(type = :open)
click to toggle source
def support_tickets(type = :open)
case type
when :open
@support_tickets ||= Fog::Compute::Ecloud::SupportTickets.new(:connection => connection, :href => "/cloudapi/ecloud/admin/tickets/organizations/#{id}/active")
when :closed
@support_tickets ||= Fog::Compute::Ecloud::SupportTickets.new(:connection => connection, :href => "/cloudapi/ecloud/admin/tickets/organizations/#{id}/closed")
end
end
users()
click to toggle source
def users
@users ||= Fog::Compute::Ecloud::Users.new(:connection => connection, :href => "/cloudapi/ecloud/admin/users/organizations/#{id}")
end
vdcs()
click to toggle source