Class: Softlayer::Scale::Policy::Trigger::Repeating

Inherits:
Softlayer::Scale::Policy::Trigger show all
Defined in:
lib/softlayer/scale/policy/trigger/repeating.rb

Defined Under Namespace

Classes: Representer

Constant Summary collapse

SERVICE =
'SoftLayer_Scale_Policy_Trigger_Repeating'

Instance Attribute Summary collapse

Attributes inherited from Softlayer::Scale::Policy::Trigger

#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

#scheduleObject

Returns the value of attribute schedule.



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

def schedule
  @schedule
end

Class Method Details

.create_object(message) ⇒ Object

template_object



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

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

Instance Method Details

#delete_objectObject



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

def delete_object
  request(:delete_object, Boolean)
end

#edit_object(message) ⇒ Object

template_object



19
20
21
# File 'lib/softlayer/scale/policy/trigger/repeating.rb', line 19

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

#get_objectObject



23
24
25
# File 'lib/softlayer/scale/policy/trigger/repeating.rb', line 23

def get_object
  request(:get_object, Softlayer::Scale::Policy::Trigger::Repeating)
end

#get_scale_policyObject



27
28
29
# File 'lib/softlayer/scale/policy/trigger/repeating.rb', line 27

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

#get_typeObject



31
32
33
# File 'lib/softlayer/scale/policy/trigger/repeating.rb', line 31

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

#validate_cron_expression(message) ⇒ Object

expression



36
37
38
# File 'lib/softlayer/scale/policy/trigger/repeating.rb', line 36

def validate_cron_expression(message)
  request(:validate_cron_expression, nil, message)
end