Class: Softlayer::Provisioning::Hook

Inherits:
Entity show all
Defined in:
lib/softlayer/provisioning/hook.rb,
lib/softlayer/provisioning/hook/type.rb

Defined Under Namespace

Classes: Representer, Type

Constant Summary collapse

SERVICE =
'SoftLayer_Provisioning_Hook'

Instance Attribute Summary collapse

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

#accountObject

Returns the value of attribute account.



13
14
15
# File 'lib/softlayer/provisioning/hook.rb', line 13

def 
  @account
end

#account_idObject

Returns the value of attribute account_id.



6
7
8
# File 'lib/softlayer/provisioning/hook.rb', line 6

def 
  @account_id
end

#create_dateObject

Returns the value of attribute create_date.



7
8
9
# File 'lib/softlayer/provisioning/hook.rb', line 7

def create_date
  @create_date
end

#hook_typeObject

Returns the value of attribute hook_type.



14
15
16
# File 'lib/softlayer/provisioning/hook.rb', line 14

def hook_type
  @hook_type
end

#idObject

Returns the value of attribute id.



8
9
10
# File 'lib/softlayer/provisioning/hook.rb', line 8

def id
  @id
end

#modify_dateObject

Returns the value of attribute modify_date.



9
10
11
# File 'lib/softlayer/provisioning/hook.rb', line 9

def modify_date
  @modify_date
end

#nameObject

Returns the value of attribute name.



10
11
12
# File 'lib/softlayer/provisioning/hook.rb', line 10

def name
  @name
end

#type_idObject

Returns the value of attribute type_id.



11
12
13
# File 'lib/softlayer/provisioning/hook.rb', line 11

def type_id
  @type_id
end

#uriObject

Returns the value of attribute uri.



12
13
14
# File 'lib/softlayer/provisioning/hook.rb', line 12

def uri
  @uri
end

Class Method Details

.create_object(message) ⇒ Object

template_object



17
18
19
# File 'lib/softlayer/provisioning/hook.rb', line 17

def self.create_object(message)
  request(:create_object, Softlayer::Provisioning::Hook, message)
end

Instance Method Details

#delete_objectObject



21
22
23
# File 'lib/softlayer/provisioning/hook.rb', line 21

def delete_object
  request(:delete_object, Boolean)
end

#edit_object(message) ⇒ Object

template_object



26
27
28
# File 'lib/softlayer/provisioning/hook.rb', line 26

def edit_object(message)
  request(:edit_object, Boolean, message)
end

#get_accountObject



30
31
32
# File 'lib/softlayer/provisioning/hook.rb', line 30

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

#get_hook_typeObject



34
35
36
# File 'lib/softlayer/provisioning/hook.rb', line 34

def get_hook_type
  request(:get_hook_type, Softlayer::Provisioning::Hook::Type)
end

#get_objectObject



38
39
40
# File 'lib/softlayer/provisioning/hook.rb', line 38

def get_object
  request(:get_object, Softlayer::Provisioning::Hook)
end