Class: Softlayer::Tag
- 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
-
#account ⇒ Object
Returns the value of attribute account.
-
#account_id ⇒ Object
Returns the value of attribute account_id.
-
#id ⇒ Object
Returns the value of attribute id.
-
#internal ⇒ Object
Returns the value of attribute internal.
-
#name ⇒ Object
Returns the value of attribute name.
-
#reference_count ⇒ Object
Returns the value of attribute reference_count.
-
#references ⇒ Object
Returns the value of attribute references.
Class Method Summary collapse
- .auto_complete(tag = nil) ⇒ Object
- .get_all_tag_types ⇒ Object
- .get_tag_by_tag_name(tag_list = nil) ⇒ Object
- .set_tags(tags = nil, key_name = nil, resource_table_id = nil) ⇒ Object
Instance Method Summary collapse
Methods inherited from Model
all, all_request_for, create, find, #init_headers, parse, request, #request, service_name, #service_name, #to_hash
Methods included from Model::Operations
extended, #filter, included, #limit, #mask, #request_headers
Instance Attribute Details
#account ⇒ Object
Returns the value of attribute account.
11 12 13 |
# File 'lib/softlayer/tag.rb', line 11 def account @account end |
#account_id ⇒ Object
Returns the value of attribute account_id.
6 7 8 |
# File 'lib/softlayer/tag.rb', line 6 def account_id @account_id end |
#id ⇒ Object
Returns the value of attribute id.
7 8 9 |
# File 'lib/softlayer/tag.rb', line 7 def id @id end |
#internal ⇒ Object
Returns the value of attribute internal.
8 9 10 |
# File 'lib/softlayer/tag.rb', line 8 def internal @internal end |
#name ⇒ Object
Returns the value of attribute name.
9 10 11 |
# File 'lib/softlayer/tag.rb', line 9 def name @name end |
#reference_count ⇒ Object
Returns the value of attribute reference_count.
10 11 12 |
# File 'lib/softlayer/tag.rb', line 10 def reference_count @reference_count end |
#references ⇒ Object
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(tag = nil) ⇒ Object
14 15 16 17 |
# File 'lib/softlayer/tag.rb', line 14 def self.auto_complete(tag = nil) = {tag: tag} request(:auto_complete, Array[Softlayer::Tag], ) end |
.get_all_tag_types ⇒ Object
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(tag_list = nil) ⇒ Object
35 36 37 38 |
# File 'lib/softlayer/tag.rb', line 35 def self.get_tag_by_tag_name(tag_list = nil) = {tag_list: tag_list} request(:get_tag_by_tag_name, Array[Softlayer::Tag], ) end |
.set_tags(tags = nil, key_name = nil, resource_table_id = nil) ⇒ Object
40 41 42 43 |
# File 'lib/softlayer/tag.rb', line 40 def self.( = nil, key_name = nil, resource_table_id = nil) = {tags: , key_name: key_name, resource_table_id: resource_table_id} request(:set_tags, Boolean, ) end |