Class: Softlayer::Scale::Policy::Action

Inherits:
Entity show all
Defined in:
lib/softlayer/scale/policy/action.rb,
lib/softlayer/scale/policy/action/type.rb,
lib/softlayer/scale/policy/action/scale.rb

Direct Known Subclasses

Scale

Defined Under Namespace

Classes: Representer, Scale, Type

Constant Summary collapse

SERVICE =
'SoftLayer_Scale_Policy_Action'

Instance Attribute 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

#create_dateObject

Returns the value of attribute create_date.



8
9
10
# File 'lib/softlayer/scale/policy/action.rb', line 8

def create_date
  @create_date
end

#delete_flagObject

Returns the value of attribute delete_flag.



9
10
11
# File 'lib/softlayer/scale/policy/action.rb', line 9

def delete_flag
  @delete_flag
end

#idObject

Returns the value of attribute id.



10
11
12
# File 'lib/softlayer/scale/policy/action.rb', line 10

def id
  @id
end

#modify_dateObject

Returns the value of attribute modify_date.



11
12
13
# File 'lib/softlayer/scale/policy/action.rb', line 11

def modify_date
  @modify_date
end

#scale_policyObject

Returns the value of attribute scale_policy.



14
15
16
# File 'lib/softlayer/scale/policy/action.rb', line 14

def scale_policy
  @scale_policy
end

#scale_policy_idObject

Returns the value of attribute scale_policy_id.



12
13
14
# File 'lib/softlayer/scale/policy/action.rb', line 12

def scale_policy_id
  @scale_policy_id
end

#typeObject

Returns the value of attribute type.



15
16
17
# File 'lib/softlayer/scale/policy/action.rb', line 15

def type
  @type
end

#type_idObject

Returns the value of attribute type_id.



13
14
15
# File 'lib/softlayer/scale/policy/action.rb', line 13

def type_id
  @type_id
end

Instance Method Details

#delete_objectObject



17
18
19
# File 'lib/softlayer/scale/policy/action.rb', line 17

def delete_object
  request(:delete_object, Boolean)
end

#edit_object(message) ⇒ Object

template_object



22
23
24
# File 'lib/softlayer/scale/policy/action.rb', line 22

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

#get_objectObject



26
27
28
# File 'lib/softlayer/scale/policy/action.rb', line 26

def get_object
  request(:get_object, Softlayer::Scale::Policy::Action)
end

#get_scale_policyObject



30
31
32
# File 'lib/softlayer/scale/policy/action.rb', line 30

def get_scale_policy
  request(:get_scale_policy, Softlayer::Scale::Policy)
end

#get_typeObject



34
35
36
# File 'lib/softlayer/scale/policy/action.rb', line 34

def get_type
  request(:get_type, Softlayer::Scale::Policy::Action::Type)
end