Class: Softlayer::Account::Link::OpenStack

Inherits:
Softlayer::Account::Link show all
Defined in:
lib/softlayer/account/link/open_stack.rb,
lib/softlayer/account/link/open_stack/link_request.rb,
lib/softlayer/account/link/open_stack/project_details.rb,
lib/softlayer/account/link/open_stack/domain_creation_details.rb,
lib/softlayer/account/link/open_stack/project_creation_details.rb

Defined Under Namespace

Classes: DomainCreationDetails, LinkRequest, ProjectCreationDetails, ProjectDetails, Representer

Constant Summary collapse

SERVICE =
'SoftLayer_Account_Link_OpenStack'

Instance Attribute Summary collapse

Attributes inherited from Softlayer::Account::Link

#account, #account_id, #create_date, #destination_account_alphanumeric_id, #destination_account_id, #id, #service_provider, #service_provider_id

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Model

all, all_request_for, create, find, #init_headers, parse, process_message, #request, request, service_name, #service_name, #to_hash, #to_softlayer

Methods included from Model::Operations

extended, #filter, included, #limit, #mask, #request_headers

Instance Attribute Details

#domain_idObject

Returns the value of attribute domain_id.



10
11
12
# File 'lib/softlayer/account/link/open_stack.rb', line 10

def domain_id
  @domain_id
end

Class Method Details

.create_os_domainObject



12
13
14
# File 'lib/softlayer/account/link/open_stack.rb', line 12

def self.create_os_domain
  request(:create_os_domain, nil)
end

.create_os_projectObject



16
17
18
# File 'lib/softlayer/account/link/open_stack.rb', line 16

def self.create_os_project
  request(:create_os_project, nil)
end

.delete_os_domainObject



20
21
22
# File 'lib/softlayer/account/link/open_stack.rb', line 20

def self.delete_os_domain
  request(:delete_os_domain, nil)
end

.delete_os_projectObject



24
25
26
# File 'lib/softlayer/account/link/open_stack.rb', line 24

def self.delete_os_project
  request(:delete_os_project, nil)
end

.get_os_projectObject



36
37
38
# File 'lib/softlayer/account/link/open_stack.rb', line 36

def self.get_os_project
  request(:get_os_project, nil)
end

.list_os_projectsObject



48
49
50
# File 'lib/softlayer/account/link/open_stack.rb', line 48

def self.list_os_projects
  request(:list_os_projects, nil)
end

Instance Method Details

#delete_objectObject



28
29
30
# File 'lib/softlayer/account/link/open_stack.rb', line 28

def delete_object
  request(:delete_object, Boolean)
end

#get_accountObject



32
33
34
# File 'lib/softlayer/account/link/open_stack.rb', line 32

def 
  request(:get_account, Softlayer::Account)
end

#get_objectObject



40
41
42
# File 'lib/softlayer/account/link/open_stack.rb', line 40

def get_object
  request(:get_object, Softlayer::Account::Link::OpenStack)
end

#get_service_providerObject



44
45
46
# File 'lib/softlayer/account/link/open_stack.rb', line 44

def get_service_provider
  request(:get_service_provider, Softlayer::Service::Provider)
end