Class: Softlayer::Tag

Inherits:
Entity show all
Defined in:
lib/softlayer/tag.rb,
lib/softlayer/tag/type.rb,
lib/softlayer/tag/reference.rb,
lib/softlayer/tag/reference/network.rb,
lib/softlayer/tag/reference/virtual.rb,
lib/softlayer/tag/reference/hardware.rb,
lib/softlayer/tag/reference/resource.rb,
lib/softlayer/tag/reference/network/vlan.rb,
lib/softlayer/tag/reference/virtual/guest.rb,
lib/softlayer/tag/reference/resource/group.rb,
lib/softlayer/tag/reference/network/application.rb,
lib/softlayer/tag/reference/virtual/guest/block.rb,
lib/softlayer/tag/reference/network/vlan/firewall.rb,
lib/softlayer/tag/reference/virtual/guest/block/device.rb,
lib/softlayer/tag/reference/network/application/delivery.rb,
lib/softlayer/tag/reference/virtual/guest/block/device/template.rb,
lib/softlayer/tag/reference/network/application/delivery/controller.rb,
lib/softlayer/tag/reference/virtual/guest/block/device/template/group.rb

Defined Under Namespace

Classes: Reference, Representer, Type

Constant Summary collapse

SERVICE =
'SoftLayer_Tag'

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.



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

def 
  @account
end

#account_idObject

Returns the value of attribute account_id.



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

def 
  @account_id
end

#idObject

Returns the value of attribute id.



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

def id
  @id
end

#internalObject

Returns the value of attribute internal.



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

def internal
  @internal
end

#nameObject

Returns the value of attribute name.



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

def name
  @name
end

#reference_countObject

Returns the value of attribute reference_count.



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

def reference_count
  @reference_count
end

#referencesObject

Returns the value of attribute references.



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

def references
  @references
end

Class Method Details

.auto_complete(message) ⇒ Object

tag



15
16
17
# File 'lib/softlayer/tag.rb', line 15

def self.auto_complete(message)
  request(:auto_complete, Array[Softlayer::Tag], message)
end

.get_all_tag_typesObject



23
24
25
# File 'lib/softlayer/tag.rb', line 23

def self.get_all_tag_types
  request(:get_all_tag_types, Array[Softlayer::Tag::Type])
end

.get_tag_by_tag_name(message) ⇒ Object

tag_list



36
37
38
# File 'lib/softlayer/tag.rb', line 36

def self.get_tag_by_tag_name(message)
  request(:get_tag_by_tag_name, Array[Softlayer::Tag], message)
end

.set_tags(message) ⇒ Object

tags key_name resource_table_id



43
44
45
# File 'lib/softlayer/tag.rb', line 43

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

Instance Method Details

#get_accountObject



19
20
21
# File 'lib/softlayer/tag.rb', line 19

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

#get_objectObject



27
28
29
# File 'lib/softlayer/tag.rb', line 27

def get_object
  request(:get_object, Softlayer::Tag)
end

#get_referencesObject



31
32
33
# File 'lib/softlayer/tag.rb', line 31

def get_references
  request(:get_references, Array[Softlayer::Tag::Reference])
end