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

Inherits:
Softlayer::Scale::Policy::Action show all
Defined in:
lib/softlayer/scale/policy/action/scale.rb

Defined Under Namespace

Classes: Representer

Constant Summary collapse

SERVICE =
'SoftLayer_Scale_Policy_Action_Scale'

Instance Attribute Summary collapse

Attributes inherited from Softlayer::Scale::Policy::Action

#create_date, #delete_flag, #id, #modify_date, #scale_policy, #scale_policy_id, #type, #type_id

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

#amountObject

Returns the value of attribute amount.



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

def amount
  @amount
end

#scale_typeObject

Returns the value of attribute scale_type.



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

def scale_type
  @scale_type
end

Class Method Details

.create_object(message) ⇒ Object

template_object



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

def self.create_object(message)
  request(:create_object, Softlayer::Scale::Policy::Action::Scale, message)
end

Instance Method Details

#delete_objectObject



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

def delete_object
  request(:delete_object, Boolean)
end

#edit_object(message) ⇒ Object

template_object



20
21
22
# File 'lib/softlayer/scale/policy/action/scale.rb', line 20

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

#get_objectObject



24
25
26
# File 'lib/softlayer/scale/policy/action/scale.rb', line 24

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

#get_scale_policyObject



28
29
30
# File 'lib/softlayer/scale/policy/action/scale.rb', line 28

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

#get_typeObject



32
33
34
# File 'lib/softlayer/scale/policy/action/scale.rb', line 32

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