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

Inherits:
Entity
  • Object
show all
Defined in:
lib/softlayer/network/storage/allowed/host.rb,
lib/softlayer/network/storage/allowed/host/subnet.rb,
lib/softlayer/network/storage/allowed/host/hardware.rb,
lib/softlayer/network/storage/allowed/host/ip_address.rb,
lib/softlayer/network/storage/allowed/host/virtual_guest.rb

Direct Known Subclasses

Hardware, IpAddress, Subnet, VirtualGuest

Defined Under Namespace

Classes: Hardware, IpAddress, Representer, Subnet, VirtualGuest

Constant Summary collapse

SERVICE =
'SoftLayer_Network_Storage_Allowed_Host'

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

#assigned_group_countObject

Returns the value of attribute assigned_group_count.



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

def assigned_group_count
  @assigned_group_count
end

#assigned_groupsObject

Returns the value of attribute assigned_groups.



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

def assigned_groups
  @assigned_groups
end

#assigned_replication_volume_countObject

Returns the value of attribute assigned_replication_volume_count.



17
18
19
# File 'lib/softlayer/network/storage/allowed/host.rb', line 17

def assigned_replication_volume_count
  @assigned_replication_volume_count
end

#assigned_replication_volumesObject

Returns the value of attribute assigned_replication_volumes.



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

def assigned_replication_volumes
  @assigned_replication_volumes
end

#assigned_volume_countObject

Returns the value of attribute assigned_volume_count.



18
19
20
# File 'lib/softlayer/network/storage/allowed/host.rb', line 18

def assigned_volume_count
  @assigned_volume_count
end

#assigned_volumesObject

Returns the value of attribute assigned_volumes.



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

def assigned_volumes
  @assigned_volumes
end

#credentialObject

Returns the value of attribute credential.



22
23
24
# File 'lib/softlayer/network/storage/allowed/host.rb', line 22

def credential
  @credential
end

#credential_idObject

Returns the value of attribute credential_id.



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

def credential_id
  @credential_id
end

#idObject

Returns the value of attribute id.



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

def id
  @id
end

#nameObject

Returns the value of attribute name.



13
14
15
# File 'lib/softlayer/network/storage/allowed/host.rb', line 13

def name
  @name
end

#resource_table_idObject

Returns the value of attribute resource_table_id.



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

def resource_table_id
  @resource_table_id
end

#resource_table_nameObject

Returns the value of attribute resource_table_name.



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

def resource_table_name
  @resource_table_name
end

Class Method Details

.create_object(message) ⇒ Object

template_object



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

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

Instance Method Details

#delete_objectObject



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

def delete_object
  request(:delete_object, Boolean)
end

#edit_object(message) ⇒ Object

template_object



34
35
36
# File 'lib/softlayer/network/storage/allowed/host.rb', line 34

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

#get_assigned_groupsObject



38
39
40
# File 'lib/softlayer/network/storage/allowed/host.rb', line 38

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

#get_assigned_replication_volumesObject



42
43
44
# File 'lib/softlayer/network/storage/allowed/host.rb', line 42

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

#get_assigned_volumesObject



46
47
48
# File 'lib/softlayer/network/storage/allowed/host.rb', line 46

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

#get_credentialObject



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

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

#get_objectObject



54
55
56
# File 'lib/softlayer/network/storage/allowed/host.rb', line 54

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

#set_credential_password(message) ⇒ Object

password



59
60
61
# File 'lib/softlayer/network/storage/allowed/host.rb', line 59

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