cloudreactor_api_client 0.1.2 → 0.3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +20 -13
  3. data/cloudreactor_api_client.md +11 -14
  4. data/lib/cloudreactor_api_client/api/alert_methods_api.rb +5 -5
  5. data/lib/cloudreactor_api_client/api/email_notification_profiles_api.rb +5 -5
  6. data/lib/cloudreactor_api_client/api/pagerduty_profiles_api.rb +5 -5
  7. data/lib/cloudreactor_api_client/api/run_environments_api.rb +5 -5
  8. data/lib/cloudreactor_api_client/api/task_executions_api.rb +4 -4
  9. data/lib/cloudreactor_api_client/api/tasks_api.rb +4 -4
  10. data/lib/cloudreactor_api_client/api/workflow_executions_api.rb +6 -6
  11. data/lib/cloudreactor_api_client/api/workflow_task_instances_api.rb +4 -4
  12. data/lib/cloudreactor_api_client/api/workflow_transitions_api.rb +4 -4
  13. data/lib/cloudreactor_api_client/api/workflows_api.rb +5 -5
  14. data/lib/cloudreactor_api_client/api_client.rb +1 -1
  15. data/lib/cloudreactor_api_client/api_error.rb +1 -1
  16. data/lib/cloudreactor_api_client/configuration.rb +3 -3
  17. data/lib/cloudreactor_api_client/models/alert_method.rb +1 -36
  18. data/lib/cloudreactor_api_client/models/aws_ecs_execution_method.rb +1 -26
  19. data/lib/cloudreactor_api_client/models/aws_ecs_execution_method_capability.rb +1 -41
  20. data/lib/cloudreactor_api_client/models/aws_ecs_launch_type.rb +1 -1
  21. data/lib/cloudreactor_api_client/models/aws_ecs_run_environment_execution_method_capability.rb +1 -36
  22. data/lib/cloudreactor_api_client/models/aws_ecs_service_load_balancer_details.rb +1 -1
  23. data/lib/cloudreactor_api_client/models/aws_ecs_service_options.rb +1 -6
  24. data/lib/cloudreactor_api_client/models/current_service_info.rb +2 -11
  25. data/lib/cloudreactor_api_client/models/email_notification_profile.rb +1 -31
  26. data/lib/cloudreactor_api_client/models/execution_method_capability.rb +1 -1
  27. data/lib/cloudreactor_api_client/models/failure_behavior_enum.rb +1 -1
  28. data/lib/cloudreactor_api_client/models/group.rb +1 -11
  29. data/lib/cloudreactor_api_client/models/link.rb +1 -6
  30. data/lib/cloudreactor_api_client/models/name_and_uuid.rb +1 -1
  31. data/lib/cloudreactor_api_client/models/notification_severity.rb +1 -1
  32. data/lib/cloudreactor_api_client/models/pager_duty_profile.rb +1 -31
  33. data/lib/cloudreactor_api_client/models/paginated_alert_method_list.rb +1 -1
  34. data/lib/cloudreactor_api_client/models/paginated_email_notification_profile_list.rb +1 -1
  35. data/lib/cloudreactor_api_client/models/paginated_pager_duty_profile_list.rb +1 -1
  36. data/lib/cloudreactor_api_client/models/paginated_run_environment_list.rb +1 -1
  37. data/lib/cloudreactor_api_client/models/paginated_task_execution_list.rb +1 -1
  38. data/lib/cloudreactor_api_client/models/paginated_task_list.rb +1 -1
  39. data/lib/cloudreactor_api_client/models/paginated_workflow_execution_summary_list.rb +1 -1
  40. data/lib/cloudreactor_api_client/models/paginated_workflow_summary_list.rb +1 -1
  41. data/lib/cloudreactor_api_client/models/paginated_workflow_task_instance_list.rb +1 -1
  42. data/lib/cloudreactor_api_client/models/paginated_workflow_transition_list.rb +1 -1
  43. data/lib/cloudreactor_api_client/models/patched_alert_method.rb +1 -1
  44. data/lib/cloudreactor_api_client/models/patched_email_notification_profile.rb +1 -1
  45. data/lib/cloudreactor_api_client/models/patched_pager_duty_profile.rb +1 -1
  46. data/lib/cloudreactor_api_client/models/patched_run_environment.rb +1 -1
  47. data/lib/cloudreactor_api_client/models/patched_task.rb +1 -1
  48. data/lib/cloudreactor_api_client/models/patched_task_execution.rb +4 -1
  49. data/lib/cloudreactor_api_client/models/patched_workflow.rb +2 -1
  50. data/lib/cloudreactor_api_client/models/patched_workflow_execution.rb +7 -52
  51. data/lib/cloudreactor_api_client/models/patched_workflow_task_instance.rb +1 -1
  52. data/lib/cloudreactor_api_client/models/patched_workflow_transition.rb +1 -1
  53. data/lib/cloudreactor_api_client/models/propagate_tags_enum.rb +1 -1
  54. data/lib/cloudreactor_api_client/models/rule_type_enum.rb +1 -1
  55. data/lib/cloudreactor_api_client/models/run_environment.rb +1 -36
  56. data/lib/cloudreactor_api_client/models/start_transition_condition_enum.rb +1 -1
  57. data/lib/cloudreactor_api_client/models/stop_reason_enum.rb +1 -1
  58. data/lib/cloudreactor_api_client/models/task.rb +1 -36
  59. data/lib/cloudreactor_api_client/models/task_execution.rb +4 -46
  60. data/lib/cloudreactor_api_client/models/task_execution_status.rb +1 -1
  61. data/lib/cloudreactor_api_client/models/threshold_property_enum.rb +1 -1
  62. data/lib/cloudreactor_api_client/models/timeout_behavior_enum.rb +1 -1
  63. data/lib/cloudreactor_api_client/models/unknown_execution_method_capability.rb +1 -11
  64. data/lib/cloudreactor_api_client/models/workflow.rb +2 -41
  65. data/lib/cloudreactor_api_client/models/workflow_execution.rb +7 -112
  66. data/lib/cloudreactor_api_client/models/workflow_execution_run_reason.rb +38 -0
  67. data/lib/cloudreactor_api_client/models/workflow_execution_status.rb +1 -1
  68. data/lib/cloudreactor_api_client/models/workflow_execution_stop_reason.rb +37 -0
  69. data/lib/cloudreactor_api_client/models/workflow_execution_summary.rb +4 -83
  70. data/lib/cloudreactor_api_client/models/workflow_summary.rb +2 -31
  71. data/lib/cloudreactor_api_client/models/workflow_task_instance.rb +1 -21
  72. data/lib/cloudreactor_api_client/models/workflow_task_instance_execution.rb +1 -16
  73. data/lib/cloudreactor_api_client/models/workflow_task_instance_execution_base.rb +1 -16
  74. data/lib/cloudreactor_api_client/models/workflow_transition.rb +1 -21
  75. data/lib/cloudreactor_api_client/models/workflow_transition_evaluation.rb +1 -16
  76. data/lib/cloudreactor_api_client/version.rb +2 -2
  77. data/lib/cloudreactor_api_client.rb +3 -16
  78. data/lib/cloudreactor_wrapper_io/status_updater.rb +1 -1
  79. data/spec/api_client_spec.rb +1 -1
  80. data/spec/configuration_spec.rb +1 -1
  81. data/spec/integration/task_execution_integration_spec.rb +2 -2
  82. data/spec/models/workflow_execution_run_reason_spec.rb +28 -0
  83. data/spec/models/workflow_execution_stop_reason_spec.rb +28 -0
  84. data/spec/spec_helper.rb +1 -1
  85. metadata +8 -2
@@ -3,7 +3,7 @@
3
3
 
4
4
  #CloudReactor API Documentation
5
5
 
6
- The version of the OpenAPI document: 0.2.0
6
+ The version of the OpenAPI document: 0.3.0
7
7
  Contact: jeff@cloudreactor.io
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.4.0
@@ -77,22 +77,12 @@ module CloudReactorAPIClient
77
77
  # @return Array for valid properties with the reasons
78
78
  def list_invalid_properties
79
79
  invalid_properties = Array.new
80
- if @type.nil?
81
- invalid_properties.push('invalid value for "type", type cannot be nil.')
82
- end
83
-
84
- if @capabilities.nil?
85
- invalid_properties.push('invalid value for "capabilities", capabilities cannot be nil.')
86
- end
87
-
88
80
  invalid_properties
89
81
  end
90
82
 
91
83
  # Check to see if the all the properties in the model are valid
92
84
  # @return true if the model is valid
93
85
  def valid?
94
- return false if @type.nil?
95
- return false if @capabilities.nil?
96
86
  true
97
87
  end
98
88
 
@@ -3,7 +3,7 @@
3
3
 
4
4
  #CloudReactor API Documentation
5
5
 
6
- The version of the OpenAPI document: 0.2.0
6
+ The version of the OpenAPI document: 0.3.0
7
7
  Contact: jeff@cloudreactor.io
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.4.0
@@ -115,6 +115,7 @@ module CloudReactorAPIClient
115
115
  Set.new([
116
116
  :'max_concurrency',
117
117
  :'max_age_seconds',
118
+ :'latest_workflow_execution',
118
119
  :'created_by_group',
119
120
  :'run_environment',
120
121
  ])
@@ -222,14 +223,6 @@ module CloudReactorAPIClient
222
223
  # @return Array for valid properties with the reasons
223
224
  def list_invalid_properties
224
225
  invalid_properties = Array.new
225
- if @url.nil?
226
- invalid_properties.push('invalid value for "url", url cannot be nil.')
227
- end
228
-
229
- if @uuid.nil?
230
- invalid_properties.push('invalid value for "uuid", uuid cannot be nil.')
231
- end
232
-
233
226
  if @name.nil?
234
227
  invalid_properties.push('invalid value for "name", name cannot be nil.')
235
228
  end
@@ -242,10 +235,6 @@ module CloudReactorAPIClient
242
235
  invalid_properties.push('invalid value for "description", the character length must be smaller than or equal to 5000.')
243
236
  end
244
237
 
245
- if @dashboard_url.nil?
246
- invalid_properties.push('invalid value for "dashboard_url", dashboard_url cannot be nil.')
247
- end
248
-
249
238
  if !@schedule.nil? && @schedule.to_s.length > 1000
250
239
  invalid_properties.push('invalid value for "schedule", the character length must be smaller than or equal to 1000.')
251
240
  end
@@ -274,38 +263,15 @@ module CloudReactorAPIClient
274
263
  invalid_properties.push('invalid value for "default_max_retries", must be greater than or equal to -2147483648.')
275
264
  end
276
265
 
277
- if @created_by_user.nil?
278
- invalid_properties.push('invalid value for "created_by_user", created_by_user cannot be nil.')
279
- end
280
-
281
- if @created_at.nil?
282
- invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
283
- end
284
-
285
- if @updated_at.nil?
286
- invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
287
- end
288
-
289
- if @workflow_task_instances.nil?
290
- invalid_properties.push('invalid value for "workflow_task_instances", workflow_task_instances cannot be nil.')
291
- end
292
-
293
- if @workflow_transitions.nil?
294
- invalid_properties.push('invalid value for "workflow_transitions", workflow_transitions cannot be nil.')
295
- end
296
-
297
266
  invalid_properties
298
267
  end
299
268
 
300
269
  # Check to see if the all the properties in the model are valid
301
270
  # @return true if the model is valid
302
271
  def valid?
303
- return false if @url.nil?
304
- return false if @uuid.nil?
305
272
  return false if @name.nil?
306
273
  return false if @name.to_s.length > 200
307
274
  return false if !@description.nil? && @description.to_s.length > 5000
308
- return false if @dashboard_url.nil?
309
275
  return false if !@schedule.nil? && @schedule.to_s.length > 1000
310
276
  return false if !@max_concurrency.nil? && @max_concurrency > 2147483647
311
277
  return false if !@max_concurrency.nil? && @max_concurrency < -2147483648
@@ -313,11 +279,6 @@ module CloudReactorAPIClient
313
279
  return false if !@max_age_seconds.nil? && @max_age_seconds < -2147483648
314
280
  return false if !@default_max_retries.nil? && @default_max_retries > 2147483647
315
281
  return false if !@default_max_retries.nil? && @default_max_retries < -2147483648
316
- return false if @created_by_user.nil?
317
- return false if @created_at.nil?
318
- return false if @updated_at.nil?
319
- return false if @workflow_task_instances.nil?
320
- return false if @workflow_transitions.nil?
321
282
  true
322
283
  end
323
284
 
@@ -3,7 +3,7 @@
3
3
 
4
4
  #CloudReactor API Documentation
5
5
 
6
- The version of the OpenAPI document: 0.2.0
6
+ The version of the OpenAPI document: 0.3.0
7
7
  Contact: jeff@cloudreactor.io
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.4.0
@@ -14,6 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module CloudReactorAPIClient
17
+ # A WorkflowExecution holds data on a specific execution (run) of a Workflow.
17
18
  class WorkflowExecution
18
19
  attr_accessor :url
19
20
 
@@ -109,12 +110,12 @@ module CloudReactorAPIClient
109
110
  :'dashboard_url' => :'String',
110
111
  :'workflow' => :'NameAndUuid',
111
112
  :'status' => :'WorkflowExecutionStatus',
112
- :'run_reason' => :'Integer',
113
+ :'run_reason' => :'WorkflowExecutionRunReason',
113
114
  :'started_at' => :'Time',
114
115
  :'started_by' => :'String',
115
116
  :'finished_at' => :'Time',
116
117
  :'last_heartbeat_at' => :'Time',
117
- :'stop_reason' => :'Integer',
118
+ :'stop_reason' => :'WorkflowExecutionStopReason',
118
119
  :'marked_done_at' => :'Time',
119
120
  :'marked_done_by' => :'String',
120
121
  :'kill_started_at' => :'Time',
@@ -134,11 +135,13 @@ module CloudReactorAPIClient
134
135
  # List of attributes with nullable: true
135
136
  def self.openapi_nullable
136
137
  Set.new([
138
+ :'started_by',
137
139
  :'finished_at',
138
140
  :'last_heartbeat_at',
139
- :'stop_reason',
140
141
  :'marked_done_at',
142
+ :'marked_done_by',
141
143
  :'kill_started_at',
144
+ :'killed_by',
142
145
  :'kill_finished_at',
143
146
  :'kill_error_code',
144
147
  ])
@@ -266,18 +269,6 @@ module CloudReactorAPIClient
266
269
  # @return Array for valid properties with the reasons
267
270
  def list_invalid_properties
268
271
  invalid_properties = Array.new
269
- if @url.nil?
270
- invalid_properties.push('invalid value for "url", url cannot be nil.')
271
- end
272
-
273
- if @uuid.nil?
274
- invalid_properties.push('invalid value for "uuid", uuid cannot be nil.')
275
- end
276
-
277
- if @dashboard_url.nil?
278
- invalid_properties.push('invalid value for "dashboard_url", dashboard_url cannot be nil.')
279
- end
280
-
281
272
  if @workflow.nil?
282
273
  invalid_properties.push('invalid value for "workflow", workflow cannot be nil.')
283
274
  end
@@ -286,38 +277,6 @@ module CloudReactorAPIClient
286
277
  invalid_properties.push('invalid value for "status", status cannot be nil.')
287
278
  end
288
279
 
289
- if !@run_reason.nil? && @run_reason > 2147483647
290
- invalid_properties.push('invalid value for "run_reason", must be smaller than or equal to 2147483647.')
291
- end
292
-
293
- if !@run_reason.nil? && @run_reason < -2147483648
294
- invalid_properties.push('invalid value for "run_reason", must be greater than or equal to -2147483648.')
295
- end
296
-
297
- if @started_at.nil?
298
- invalid_properties.push('invalid value for "started_at", started_at cannot be nil.')
299
- end
300
-
301
- if @started_by.nil?
302
- invalid_properties.push('invalid value for "started_by", started_by cannot be nil.')
303
- end
304
-
305
- if !@stop_reason.nil? && @stop_reason > 2147483647
306
- invalid_properties.push('invalid value for "stop_reason", must be smaller than or equal to 2147483647.')
307
- end
308
-
309
- if !@stop_reason.nil? && @stop_reason < -2147483648
310
- invalid_properties.push('invalid value for "stop_reason", must be greater than or equal to -2147483648.')
311
- end
312
-
313
- if @marked_done_by.nil?
314
- invalid_properties.push('invalid value for "marked_done_by", marked_done_by cannot be nil.')
315
- end
316
-
317
- if @killed_by.nil?
318
- invalid_properties.push('invalid value for "killed_by", killed_by cannot be nil.')
319
- end
320
-
321
280
  if !@kill_error_code.nil? && @kill_error_code > 2147483647
322
281
  invalid_properties.push('invalid value for "kill_error_code", must be smaller than or equal to 2147483647.')
323
282
  end
@@ -342,87 +301,23 @@ module CloudReactorAPIClient
342
301
  invalid_properties.push('invalid value for "timed_out_attempts", must be greater than or equal to -2147483648.')
343
302
  end
344
303
 
345
- if @workflow_snapshot.nil?
346
- invalid_properties.push('invalid value for "workflow_snapshot", workflow_snapshot cannot be nil.')
347
- end
348
-
349
- if @workflow_task_instance_executions.nil?
350
- invalid_properties.push('invalid value for "workflow_task_instance_executions", workflow_task_instance_executions cannot be nil.')
351
- end
352
-
353
- if @workflow_transition_evaluations.nil?
354
- invalid_properties.push('invalid value for "workflow_transition_evaluations", workflow_transition_evaluations cannot be nil.')
355
- end
356
-
357
- if @created_at.nil?
358
- invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
359
- end
360
-
361
- if @updated_at.nil?
362
- invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
363
- end
364
-
365
304
  invalid_properties
366
305
  end
367
306
 
368
307
  # Check to see if the all the properties in the model are valid
369
308
  # @return true if the model is valid
370
309
  def valid?
371
- return false if @url.nil?
372
- return false if @uuid.nil?
373
- return false if @dashboard_url.nil?
374
310
  return false if @workflow.nil?
375
311
  return false if @status.nil?
376
- return false if !@run_reason.nil? && @run_reason > 2147483647
377
- return false if !@run_reason.nil? && @run_reason < -2147483648
378
- return false if @started_at.nil?
379
- return false if @started_by.nil?
380
- return false if !@stop_reason.nil? && @stop_reason > 2147483647
381
- return false if !@stop_reason.nil? && @stop_reason < -2147483648
382
- return false if @marked_done_by.nil?
383
- return false if @killed_by.nil?
384
312
  return false if !@kill_error_code.nil? && @kill_error_code > 2147483647
385
313
  return false if !@kill_error_code.nil? && @kill_error_code < -2147483648
386
314
  return false if !@failed_attempts.nil? && @failed_attempts > 2147483647
387
315
  return false if !@failed_attempts.nil? && @failed_attempts < -2147483648
388
316
  return false if !@timed_out_attempts.nil? && @timed_out_attempts > 2147483647
389
317
  return false if !@timed_out_attempts.nil? && @timed_out_attempts < -2147483648
390
- return false if @workflow_snapshot.nil?
391
- return false if @workflow_task_instance_executions.nil?
392
- return false if @workflow_transition_evaluations.nil?
393
- return false if @created_at.nil?
394
- return false if @updated_at.nil?
395
318
  true
396
319
  end
397
320
 
398
- # Custom attribute writer method with validation
399
- # @param [Object] run_reason Value to be assigned
400
- def run_reason=(run_reason)
401
- if !run_reason.nil? && run_reason > 2147483647
402
- fail ArgumentError, 'invalid value for "run_reason", must be smaller than or equal to 2147483647.'
403
- end
404
-
405
- if !run_reason.nil? && run_reason < -2147483648
406
- fail ArgumentError, 'invalid value for "run_reason", must be greater than or equal to -2147483648.'
407
- end
408
-
409
- @run_reason = run_reason
410
- end
411
-
412
- # Custom attribute writer method with validation
413
- # @param [Object] stop_reason Value to be assigned
414
- def stop_reason=(stop_reason)
415
- if !stop_reason.nil? && stop_reason > 2147483647
416
- fail ArgumentError, 'invalid value for "stop_reason", must be smaller than or equal to 2147483647.'
417
- end
418
-
419
- if !stop_reason.nil? && stop_reason < -2147483648
420
- fail ArgumentError, 'invalid value for "stop_reason", must be greater than or equal to -2147483648.'
421
- end
422
-
423
- @stop_reason = stop_reason
424
- end
425
-
426
321
  # Custom attribute writer method with validation
427
322
  # @param [Object] kill_error_code Value to be assigned
428
323
  def kill_error_code=(kill_error_code)
@@ -0,0 +1,38 @@
1
+ =begin
2
+ #CloudReactor API
3
+
4
+ #CloudReactor API Documentation
5
+
6
+ The version of the OpenAPI document: 0.3.0
7
+ Contact: jeff@cloudreactor.io
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 5.4.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module CloudReactorAPIClient
17
+ class WorkflowExecutionRunReason
18
+ EXPLICIT_START = "EXPLICIT_START".freeze
19
+ SCHEDULED_START = "SCHEDULED_START".freeze
20
+ EXPLICIT_RETRY = "EXPLICIT_RETRY".freeze
21
+
22
+ # Builds the enum from string
23
+ # @param [String] The enum value in the form of the string
24
+ # @return [String] The enum value
25
+ def self.build_from_hash(value)
26
+ new.build_from_hash(value)
27
+ end
28
+
29
+ # Builds the enum from string
30
+ # @param [String] The enum value in the form of the string
31
+ # @return [String] The enum value
32
+ def build_from_hash(value)
33
+ constantValues = WorkflowExecutionRunReason.constants.select { |c| WorkflowExecutionRunReason::const_get(c) == value }
34
+ raise "Invalid ENUM value #{value} for class #WorkflowExecutionRunReason" if constantValues.empty?
35
+ value
36
+ end
37
+ end
38
+ end
@@ -3,7 +3,7 @@
3
3
 
4
4
  #CloudReactor API Documentation
5
5
 
6
- The version of the OpenAPI document: 0.2.0
6
+ The version of the OpenAPI document: 0.3.0
7
7
  Contact: jeff@cloudreactor.io
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.4.0
@@ -0,0 +1,37 @@
1
+ =begin
2
+ #CloudReactor API
3
+
4
+ #CloudReactor API Documentation
5
+
6
+ The version of the OpenAPI document: 0.3.0
7
+ Contact: jeff@cloudreactor.io
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 5.4.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module CloudReactorAPIClient
17
+ class WorkflowExecutionStopReason
18
+ MANUAL = "MANUAL".freeze
19
+ MAX_EXECUTION_TIME_EXCEEDED = "MAX_EXECUTION_TIME_EXCEEDED".freeze
20
+
21
+ # Builds the enum from string
22
+ # @param [String] The enum value in the form of the string
23
+ # @return [String] The enum value
24
+ def self.build_from_hash(value)
25
+ new.build_from_hash(value)
26
+ end
27
+
28
+ # Builds the enum from string
29
+ # @param [String] The enum value in the form of the string
30
+ # @return [String] The enum value
31
+ def build_from_hash(value)
32
+ constantValues = WorkflowExecutionStopReason.constants.select { |c| WorkflowExecutionStopReason::const_get(c) == value }
33
+ raise "Invalid ENUM value #{value} for class #WorkflowExecutionStopReason" if constantValues.empty?
34
+ value
35
+ end
36
+ end
37
+ end
@@ -3,7 +3,7 @@
3
3
 
4
4
  #CloudReactor API Documentation
5
5
 
6
- The version of the OpenAPI document: 0.2.0
6
+ The version of the OpenAPI document: 0.3.0
7
7
  Contact: jeff@cloudreactor.io
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.4.0
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module CloudReactorAPIClient
17
- # A WorkflowExecution holds data on a specific execution (run) of a Workflow.
17
+ # A WorkflowExecutionSummary contains a subset of the data inside of a WorkflowExecution.
18
18
  class WorkflowExecutionSummary
19
19
  attr_accessor :url
20
20
 
@@ -85,11 +85,11 @@ module CloudReactorAPIClient
85
85
  :'uuid' => :'String',
86
86
  :'dashboard_url' => :'String',
87
87
  :'status' => :'WorkflowExecutionStatus',
88
- :'run_reason' => :'Integer',
88
+ :'run_reason' => :'WorkflowExecutionRunReason',
89
89
  :'started_at' => :'Time',
90
90
  :'finished_at' => :'Time',
91
91
  :'last_heartbeat_at' => :'Time',
92
- :'stop_reason' => :'Integer',
92
+ :'stop_reason' => :'WorkflowExecutionStopReason',
93
93
  :'marked_done_at' => :'Time',
94
94
  :'kill_started_at' => :'Time',
95
95
  :'kill_finished_at' => :'Time',
@@ -106,7 +106,6 @@ module CloudReactorAPIClient
106
106
  Set.new([
107
107
  :'finished_at',
108
108
  :'last_heartbeat_at',
109
- :'stop_reason',
110
109
  :'marked_done_at',
111
110
  :'kill_started_at',
112
111
  :'kill_finished_at',
@@ -202,42 +201,10 @@ module CloudReactorAPIClient
202
201
  # @return Array for valid properties with the reasons
203
202
  def list_invalid_properties
204
203
  invalid_properties = Array.new
205
- if @url.nil?
206
- invalid_properties.push('invalid value for "url", url cannot be nil.')
207
- end
208
-
209
- if @uuid.nil?
210
- invalid_properties.push('invalid value for "uuid", uuid cannot be nil.')
211
- end
212
-
213
- if @dashboard_url.nil?
214
- invalid_properties.push('invalid value for "dashboard_url", dashboard_url cannot be nil.')
215
- end
216
-
217
204
  if @status.nil?
218
205
  invalid_properties.push('invalid value for "status", status cannot be nil.')
219
206
  end
220
207
 
221
- if !@run_reason.nil? && @run_reason > 2147483647
222
- invalid_properties.push('invalid value for "run_reason", must be smaller than or equal to 2147483647.')
223
- end
224
-
225
- if !@run_reason.nil? && @run_reason < -2147483648
226
- invalid_properties.push('invalid value for "run_reason", must be greater than or equal to -2147483648.')
227
- end
228
-
229
- if @started_at.nil?
230
- invalid_properties.push('invalid value for "started_at", started_at cannot be nil.')
231
- end
232
-
233
- if !@stop_reason.nil? && @stop_reason > 2147483647
234
- invalid_properties.push('invalid value for "stop_reason", must be smaller than or equal to 2147483647.')
235
- end
236
-
237
- if !@stop_reason.nil? && @stop_reason < -2147483648
238
- invalid_properties.push('invalid value for "stop_reason", must be greater than or equal to -2147483648.')
239
- end
240
-
241
208
  if !@kill_error_code.nil? && @kill_error_code > 2147483647
242
209
  invalid_properties.push('invalid value for "kill_error_code", must be smaller than or equal to 2147483647.')
243
210
  end
@@ -262,68 +229,22 @@ module CloudReactorAPIClient
262
229
  invalid_properties.push('invalid value for "timed_out_attempts", must be greater than or equal to -2147483648.')
263
230
  end
264
231
 
265
- if @created_at.nil?
266
- invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
267
- end
268
-
269
- if @updated_at.nil?
270
- invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
271
- end
272
-
273
232
  invalid_properties
274
233
  end
275
234
 
276
235
  # Check to see if the all the properties in the model are valid
277
236
  # @return true if the model is valid
278
237
  def valid?
279
- return false if @url.nil?
280
- return false if @uuid.nil?
281
- return false if @dashboard_url.nil?
282
238
  return false if @status.nil?
283
- return false if !@run_reason.nil? && @run_reason > 2147483647
284
- return false if !@run_reason.nil? && @run_reason < -2147483648
285
- return false if @started_at.nil?
286
- return false if !@stop_reason.nil? && @stop_reason > 2147483647
287
- return false if !@stop_reason.nil? && @stop_reason < -2147483648
288
239
  return false if !@kill_error_code.nil? && @kill_error_code > 2147483647
289
240
  return false if !@kill_error_code.nil? && @kill_error_code < -2147483648
290
241
  return false if !@failed_attempts.nil? && @failed_attempts > 2147483647
291
242
  return false if !@failed_attempts.nil? && @failed_attempts < -2147483648
292
243
  return false if !@timed_out_attempts.nil? && @timed_out_attempts > 2147483647
293
244
  return false if !@timed_out_attempts.nil? && @timed_out_attempts < -2147483648
294
- return false if @created_at.nil?
295
- return false if @updated_at.nil?
296
245
  true
297
246
  end
298
247
 
299
- # Custom attribute writer method with validation
300
- # @param [Object] run_reason Value to be assigned
301
- def run_reason=(run_reason)
302
- if !run_reason.nil? && run_reason > 2147483647
303
- fail ArgumentError, 'invalid value for "run_reason", must be smaller than or equal to 2147483647.'
304
- end
305
-
306
- if !run_reason.nil? && run_reason < -2147483648
307
- fail ArgumentError, 'invalid value for "run_reason", must be greater than or equal to -2147483648.'
308
- end
309
-
310
- @run_reason = run_reason
311
- end
312
-
313
- # Custom attribute writer method with validation
314
- # @param [Object] stop_reason Value to be assigned
315
- def stop_reason=(stop_reason)
316
- if !stop_reason.nil? && stop_reason > 2147483647
317
- fail ArgumentError, 'invalid value for "stop_reason", must be smaller than or equal to 2147483647.'
318
- end
319
-
320
- if !stop_reason.nil? && stop_reason < -2147483648
321
- fail ArgumentError, 'invalid value for "stop_reason", must be greater than or equal to -2147483648.'
322
- end
323
-
324
- @stop_reason = stop_reason
325
- end
326
-
327
248
  # Custom attribute writer method with validation
328
249
  # @param [Object] kill_error_code Value to be assigned
329
250
  def kill_error_code=(kill_error_code)
@@ -3,7 +3,7 @@
3
3
 
4
4
  #CloudReactor API Documentation
5
5
 
6
- The version of the OpenAPI document: 0.2.0
6
+ The version of the OpenAPI document: 0.3.0
7
7
  Contact: jeff@cloudreactor.io
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.4.0
@@ -103,6 +103,7 @@ module CloudReactorAPIClient
103
103
  Set.new([
104
104
  :'max_concurrency',
105
105
  :'max_age_seconds',
106
+ :'latest_workflow_execution',
106
107
  :'created_by_group',
107
108
  :'run_environment',
108
109
  ])
@@ -192,14 +193,6 @@ module CloudReactorAPIClient
192
193
  # @return Array for valid properties with the reasons
193
194
  def list_invalid_properties
194
195
  invalid_properties = Array.new
195
- if @url.nil?
196
- invalid_properties.push('invalid value for "url", url cannot be nil.')
197
- end
198
-
199
- if @uuid.nil?
200
- invalid_properties.push('invalid value for "uuid", uuid cannot be nil.')
201
- end
202
-
203
196
  if @name.nil?
204
197
  invalid_properties.push('invalid value for "name", name cannot be nil.')
205
198
  end
@@ -212,10 +205,6 @@ module CloudReactorAPIClient
212
205
  invalid_properties.push('invalid value for "description", the character length must be smaller than or equal to 5000.')
213
206
  end
214
207
 
215
- if @dashboard_url.nil?
216
- invalid_properties.push('invalid value for "dashboard_url", dashboard_url cannot be nil.')
217
- end
218
-
219
208
  if !@schedule.nil? && @schedule.to_s.length > 1000
220
209
  invalid_properties.push('invalid value for "schedule", the character length must be smaller than or equal to 1000.')
221
210
  end
@@ -244,30 +233,15 @@ module CloudReactorAPIClient
244
233
  invalid_properties.push('invalid value for "default_max_retries", must be greater than or equal to -2147483648.')
245
234
  end
246
235
 
247
- if @created_by_user.nil?
248
- invalid_properties.push('invalid value for "created_by_user", created_by_user cannot be nil.')
249
- end
250
-
251
- if @created_at.nil?
252
- invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
253
- end
254
-
255
- if @updated_at.nil?
256
- invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
257
- end
258
-
259
236
  invalid_properties
260
237
  end
261
238
 
262
239
  # Check to see if the all the properties in the model are valid
263
240
  # @return true if the model is valid
264
241
  def valid?
265
- return false if @url.nil?
266
- return false if @uuid.nil?
267
242
  return false if @name.nil?
268
243
  return false if @name.to_s.length > 200
269
244
  return false if !@description.nil? && @description.to_s.length > 5000
270
- return false if @dashboard_url.nil?
271
245
  return false if !@schedule.nil? && @schedule.to_s.length > 1000
272
246
  return false if !@max_concurrency.nil? && @max_concurrency > 2147483647
273
247
  return false if !@max_concurrency.nil? && @max_concurrency < -2147483648
@@ -275,9 +249,6 @@ module CloudReactorAPIClient
275
249
  return false if !@max_age_seconds.nil? && @max_age_seconds < -2147483648
276
250
  return false if !@default_max_retries.nil? && @default_max_retries > 2147483647
277
251
  return false if !@default_max_retries.nil? && @default_max_retries < -2147483648
278
- return false if @created_by_user.nil?
279
- return false if @created_at.nil?
280
- return false if @updated_at.nil?
281
252
  true
282
253
  end
283
254