Class: Softlayer::Network::Storage::Allowed::Host::VirtualGuest

Inherits:
Softlayer::Network::Storage::Allowed::Host show all
Defined in:
lib/softlayer/network/storage/allowed/host/virtual_guest.rb

Defined Under Namespace

Classes: Representer

Constant Summary collapse

SERVICE =
'SoftLayer_Network_Storage_Allowed_Host_VirtualGuest'

Instance Attribute Summary collapse

Attributes inherited from Softlayer::Network::Storage::Allowed::Host

#assigned_group_count, #assigned_groups, #assigned_replication_volume_count, #assigned_replication_volumes, #assigned_volume_count, #assigned_volumes, #credential, #credential_id, #id, #name, #resource_table_id, #resource_table_name

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

#resourceObject

Returns the value of attribute resource.



8
9
10
# File 'lib/softlayer/network/storage/allowed/host/virtual_guest.rb', line 8

def resource
  @resource
end

Class Method Details

.create_object(message) ⇒ Object

template_object



11
12
13
# File 'lib/softlayer/network/storage/allowed/host/virtual_guest.rb', line 11

def self.create_object(message)
  request(:create_object, Boolean, message)
end

Instance Method Details

#delete_objectObject



15
16
17
# File 'lib/softlayer/network/storage/allowed/host/virtual_guest.rb', line 15

def delete_object
  request(:delete_object, Boolean)
end

#edit_object(message) ⇒ Object

template_object



20
21
22
# File 'lib/softlayer/network/storage/allowed/host/virtual_guest.rb', line 20

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

#get_assigned_groupsObject



24
25
26
# File 'lib/softlayer/network/storage/allowed/host/virtual_guest.rb', line 24

def get_assigned_groups
  request(:get_assigned_groups, Array[Softlayer::Network::Storage::Group])
end

#get_assigned_replication_volumesObject



28
29
30
# File 'lib/softlayer/network/storage/allowed/host/virtual_guest.rb', line 28

def get_assigned_replication_volumes
  request(:get_assigned_replication_volumes, Array[Softlayer::Network::Storage])
end

#get_assigned_volumesObject



32
33
34
# File 'lib/softlayer/network/storage/allowed/host/virtual_guest.rb', line 32

def get_assigned_volumes
  request(:get_assigned_volumes, Array[Softlayer::Network::Storage])
end

#get_credentialObject



36
37
38
# File 'lib/softlayer/network/storage/allowed/host/virtual_guest.rb', line 36

def get_credential
  request(:get_credential, Softlayer::Network::Storage::Credential)
end

#get_objectObject



40
41
42
# File 'lib/softlayer/network/storage/allowed/host/virtual_guest.rb', line 40

def get_object
  request(:get_object, Softlayer::Network::Storage::Allowed::Host::VirtualGuest)
end

#get_resourceObject



44
45
46
# File 'lib/softlayer/network/storage/allowed/host/virtual_guest.rb', line 44

def get_resource
  request(:get_resource, Softlayer::Virtual::Guest)
end

#set_credential_password(message) ⇒ Object

password



49
50
51
# File 'lib/softlayer/network/storage/allowed/host/virtual_guest.rb', line 49

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