Class: Conductor::Http::Models::WorkflowSchedule

Inherits:
BaseModel
  • Object
show all
Defined in:
lib/conductor/http/models/workflow_schedule.rb

Overview

Workflow schedule (returned from server)

Constant Summary collapse

SWAGGER_TYPES =
{
  name: 'String',
  cron_expression: 'String',
  start_workflow_request: 'StartWorkflowRequest',
  paused: 'Boolean',
  run_catchup_schedule_instances: 'Boolean',
  schedule_start_time: 'Integer',
  schedule_end_time: 'Integer',
  create_time: 'Integer',
  updated_time: 'Integer',
  created_by: 'String',
  updated_by: 'String'
}.freeze
ATTRIBUTE_MAP =
{
  name: :name,
  cron_expression: :cronExpression,
  start_workflow_request: :startWorkflowRequest,
  paused: :paused,
  run_catchup_schedule_instances: :runCatchupScheduleInstances,
  schedule_start_time: :scheduleStartTime,
  schedule_end_time: :scheduleEndTime,
  create_time: :createTime,
  updated_time: :updatedTime,
  created_by: :createdBy,
  updated_by: :updatedBy
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from BaseModel

attribute_map, deserialize_model, deserialize_value, find_model_class, from_hash, from_json, parse_datetime, swagger_types, #to_h, #to_json

Constructor Details

#initialize(params = {}) ⇒ WorkflowSchedule

Returns a new instance of WorkflowSchedule.



84
85
86
87
88
89
90
91
92
93
94
95
96
# File 'lib/conductor/http/models/workflow_schedule.rb', line 84

def initialize(params = {})
  @name = params[:name]
  @cron_expression = params[:cron_expression]
  @start_workflow_request = params[:start_workflow_request]
  @paused = params.fetch(:paused, false)
  @run_catchup_schedule_instances = params.fetch(:run_catchup_schedule_instances, false)
  @schedule_start_time = params[:schedule_start_time]
  @schedule_end_time = params[:schedule_end_time]
  @create_time = params[:create_time]
  @updated_time = params[:updated_time]
  @created_by = params[:created_by]
  @updated_by = params[:updated_by]
end

Instance Attribute Details

#create_timeObject

Returns the value of attribute create_time.



79
80
81
# File 'lib/conductor/http/models/workflow_schedule.rb', line 79

def create_time
  @create_time
end

#created_byObject

Returns the value of attribute created_by.



79
80
81
# File 'lib/conductor/http/models/workflow_schedule.rb', line 79

def created_by
  @created_by
end

#cron_expressionObject

Returns the value of attribute cron_expression.



79
80
81
# File 'lib/conductor/http/models/workflow_schedule.rb', line 79

def cron_expression
  @cron_expression
end

#nameObject

Returns the value of attribute name.



79
80
81
# File 'lib/conductor/http/models/workflow_schedule.rb', line 79

def name
  @name
end

#pausedObject

Returns the value of attribute paused.



79
80
81
# File 'lib/conductor/http/models/workflow_schedule.rb', line 79

def paused
  @paused
end

#run_catchup_schedule_instancesObject

Returns the value of attribute run_catchup_schedule_instances.



79
80
81
# File 'lib/conductor/http/models/workflow_schedule.rb', line 79

def run_catchup_schedule_instances
  @run_catchup_schedule_instances
end

#schedule_end_timeObject

Returns the value of attribute schedule_end_time.



79
80
81
# File 'lib/conductor/http/models/workflow_schedule.rb', line 79

def schedule_end_time
  @schedule_end_time
end

#schedule_start_timeObject

Returns the value of attribute schedule_start_time.



79
80
81
# File 'lib/conductor/http/models/workflow_schedule.rb', line 79

def schedule_start_time
  @schedule_start_time
end

#start_workflow_requestObject

Returns the value of attribute start_workflow_request.



79
80
81
# File 'lib/conductor/http/models/workflow_schedule.rb', line 79

def start_workflow_request
  @start_workflow_request
end

#updated_byObject

Returns the value of attribute updated_by.



79
80
81
# File 'lib/conductor/http/models/workflow_schedule.rb', line 79

def updated_by
  @updated_by
end

#updated_timeObject

Returns the value of attribute updated_time.



79
80
81
# File 'lib/conductor/http/models/workflow_schedule.rb', line 79

def updated_time
  @updated_time
end