cloudreactor_api_client 0.1.0.pre

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 (151) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +21 -0
  3. data/README.md +92 -0
  4. data/cloudreactor_api_client.md +226 -0
  5. data/lib/cloudreactor_api_client/api/alert_methods_api.rb +482 -0
  6. data/lib/cloudreactor_api_client/api/email_notification_profiles_api.rb +482 -0
  7. data/lib/cloudreactor_api_client/api/pagerduty_profiles_api.rb +482 -0
  8. data/lib/cloudreactor_api_client/api/run_environments_api.rb +479 -0
  9. data/lib/cloudreactor_api_client/api/task_executions_api.rb +409 -0
  10. data/lib/cloudreactor_api_client/api/tasks_api.rb +412 -0
  11. data/lib/cloudreactor_api_client/api/workflow_executions_api.rb +549 -0
  12. data/lib/cloudreactor_api_client/api/workflow_task_instances_api.rb +424 -0
  13. data/lib/cloudreactor_api_client/api/workflow_transitions_api.rb +406 -0
  14. data/lib/cloudreactor_api_client/api/workflows_api.rb +482 -0
  15. data/lib/cloudreactor_api_client/api_client.rb +390 -0
  16. data/lib/cloudreactor_api_client/api_error.rb +57 -0
  17. data/lib/cloudreactor_api_client/configuration.rb +277 -0
  18. data/lib/cloudreactor_api_client/models/alert_method.rb +449 -0
  19. data/lib/cloudreactor_api_client/models/aws_ecs_execution_method.rb +517 -0
  20. data/lib/cloudreactor_api_client/models/aws_ecs_execution_method_capability.rb +565 -0
  21. data/lib/cloudreactor_api_client/models/aws_ecs_launch_type.rb +37 -0
  22. data/lib/cloudreactor_api_client/models/aws_ecs_run_environment_execution_method_capability.rb +476 -0
  23. data/lib/cloudreactor_api_client/models/aws_ecs_service_load_balancer_details.rb +307 -0
  24. data/lib/cloudreactor_api_client/models/aws_ecs_service_options.rb +308 -0
  25. data/lib/cloudreactor_api_client/models/current_service_info.rb +255 -0
  26. data/lib/cloudreactor_api_client/models/email_notification_profile.rb +454 -0
  27. data/lib/cloudreactor_api_client/models/execution_method_capability.rb +54 -0
  28. data/lib/cloudreactor_api_client/models/failure_behavior_enum.rb +38 -0
  29. data/lib/cloudreactor_api_client/models/group.rb +268 -0
  30. data/lib/cloudreactor_api_client/models/link.rb +301 -0
  31. data/lib/cloudreactor_api_client/models/name_and_uuid.rb +236 -0
  32. data/lib/cloudreactor_api_client/models/notification_severity.rb +39 -0
  33. data/lib/cloudreactor_api_client/models/pager_duty_profile.rb +484 -0
  34. data/lib/cloudreactor_api_client/models/paginated_alert_method_list.rb +247 -0
  35. data/lib/cloudreactor_api_client/models/paginated_email_notification_profile_list.rb +247 -0
  36. data/lib/cloudreactor_api_client/models/paginated_pager_duty_profile_list.rb +247 -0
  37. data/lib/cloudreactor_api_client/models/paginated_run_environment_list.rb +247 -0
  38. data/lib/cloudreactor_api_client/models/paginated_task_execution_list.rb +247 -0
  39. data/lib/cloudreactor_api_client/models/paginated_task_list.rb +247 -0
  40. data/lib/cloudreactor_api_client/models/paginated_workflow_execution_summary_list.rb +247 -0
  41. data/lib/cloudreactor_api_client/models/paginated_workflow_summary_list.rb +247 -0
  42. data/lib/cloudreactor_api_client/models/paginated_workflow_task_instance_list.rb +247 -0
  43. data/lib/cloudreactor_api_client/models/paginated_workflow_transition_list.rb +247 -0
  44. data/lib/cloudreactor_api_client/models/patched_alert_method.rb +405 -0
  45. data/lib/cloudreactor_api_client/models/patched_email_notification_profile.rb +415 -0
  46. data/lib/cloudreactor_api_client/models/patched_pager_duty_profile.rb +436 -0
  47. data/lib/cloudreactor_api_client/models/patched_run_environment.rb +511 -0
  48. data/lib/cloudreactor_api_client/models/patched_task.rb +897 -0
  49. data/lib/cloudreactor_api_client/models/patched_task_execution.rb +1904 -0
  50. data/lib/cloudreactor_api_client/models/patched_workflow.rb +507 -0
  51. data/lib/cloudreactor_api_client/models/patched_workflow_execution.rb +559 -0
  52. data/lib/cloudreactor_api_client/models/patched_workflow_task_instance.rb +676 -0
  53. data/lib/cloudreactor_api_client/models/patched_workflow_transition.rb +432 -0
  54. data/lib/cloudreactor_api_client/models/propagate_tags_enum.rb +37 -0
  55. data/lib/cloudreactor_api_client/models/rule_type_enum.rb +43 -0
  56. data/lib/cloudreactor_api_client/models/run_environment.rb +555 -0
  57. data/lib/cloudreactor_api_client/models/start_transition_condition_enum.rb +39 -0
  58. data/lib/cloudreactor_api_client/models/stop_reason_enum.rb +42 -0
  59. data/lib/cloudreactor_api_client/models/task.rb +941 -0
  60. data/lib/cloudreactor_api_client/models/task_execution.rb +1954 -0
  61. data/lib/cloudreactor_api_client/models/task_execution_status.rb +46 -0
  62. data/lib/cloudreactor_api_client/models/threshold_property_enum.rb +39 -0
  63. data/lib/cloudreactor_api_client/models/timeout_behavior_enum.rb +40 -0
  64. data/lib/cloudreactor_api_client/models/unknown_execution_method_capability.rb +238 -0
  65. data/lib/cloudreactor_api_client/models/workflow.rb +556 -0
  66. data/lib/cloudreactor_api_client/models/workflow_execution.rb +629 -0
  67. data/lib/cloudreactor_api_client/models/workflow_execution_status.rb +42 -0
  68. data/lib/cloudreactor_api_client/models/workflow_execution_summary.rb +523 -0
  69. data/lib/cloudreactor_api_client/models/workflow_summary.rb +513 -0
  70. data/lib/cloudreactor_api_client/models/workflow_task_instance.rb +715 -0
  71. data/lib/cloudreactor_api_client/models/workflow_task_instance_execution.rb +280 -0
  72. data/lib/cloudreactor_api_client/models/workflow_task_instance_execution_base.rb +270 -0
  73. data/lib/cloudreactor_api_client/models/workflow_transition.rb +467 -0
  74. data/lib/cloudreactor_api_client/models/workflow_transition_evaluation.rb +280 -0
  75. data/lib/cloudreactor_api_client/version.rb +15 -0
  76. data/lib/cloudreactor_api_client.rb +121 -0
  77. data/lib/cloudreactor_wrapper_io/status_updater.rb +124 -0
  78. data/lib/cloudreactor_wrapper_io.rb +13 -0
  79. data/spec/api/alert_methods_api_spec.rb +114 -0
  80. data/spec/api/email_notification_profiles_api_spec.rb +114 -0
  81. data/spec/api/pagerduty_profiles_api_spec.rb +114 -0
  82. data/spec/api/run_environments_api_spec.rb +113 -0
  83. data/spec/api/task_executions_api_spec.rb +102 -0
  84. data/spec/api/tasks_api_spec.rb +103 -0
  85. data/spec/api/workflow_executions_api_spec.rb +124 -0
  86. data/spec/api/workflow_task_instances_api_spec.rb +107 -0
  87. data/spec/api/workflow_transitions_api_spec.rb +101 -0
  88. data/spec/api/workflows_api_spec.rb +114 -0
  89. data/spec/api_client_spec.rb +226 -0
  90. data/spec/configuration_spec.rb +42 -0
  91. data/spec/integration/task_execution_integration_spec.rb +51 -0
  92. data/spec/models/alert_method_spec.rb +136 -0
  93. data/spec/models/aws_ecs_execution_method_capability_spec.rb +166 -0
  94. data/spec/models/aws_ecs_execution_method_spec.rb +148 -0
  95. data/spec/models/aws_ecs_launch_type_spec.rb +28 -0
  96. data/spec/models/aws_ecs_run_environment_execution_method_capability_spec.rb +130 -0
  97. data/spec/models/aws_ecs_service_load_balancer_details_spec.rb +46 -0
  98. data/spec/models/aws_ecs_service_options_spec.rb +88 -0
  99. data/spec/models/current_service_info_spec.rb +52 -0
  100. data/spec/models/email_notification_profile_spec.rb +118 -0
  101. data/spec/models/execution_method_capability_spec.rb +43 -0
  102. data/spec/models/failure_behavior_enum_spec.rb +28 -0
  103. data/spec/models/group_spec.rb +46 -0
  104. data/spec/models/link_spec.rb +70 -0
  105. data/spec/models/name_and_uuid_spec.rb +46 -0
  106. data/spec/models/notification_severity_spec.rb +28 -0
  107. data/spec/models/pager_duty_profile_spec.rb +118 -0
  108. data/spec/models/paginated_alert_method_list_spec.rb +52 -0
  109. data/spec/models/paginated_email_notification_profile_list_spec.rb +52 -0
  110. data/spec/models/paginated_pager_duty_profile_list_spec.rb +52 -0
  111. data/spec/models/paginated_run_environment_list_spec.rb +52 -0
  112. data/spec/models/paginated_task_execution_list_spec.rb +52 -0
  113. data/spec/models/paginated_task_list_spec.rb +52 -0
  114. data/spec/models/paginated_workflow_execution_summary_list_spec.rb +52 -0
  115. data/spec/models/paginated_workflow_summary_list_spec.rb +52 -0
  116. data/spec/models/paginated_workflow_task_instance_list_spec.rb +52 -0
  117. data/spec/models/paginated_workflow_transition_list_spec.rb +52 -0
  118. data/spec/models/patched_alert_method_spec.rb +136 -0
  119. data/spec/models/patched_email_notification_profile_spec.rb +118 -0
  120. data/spec/models/patched_pager_duty_profile_spec.rb +118 -0
  121. data/spec/models/patched_run_environment_spec.rb +136 -0
  122. data/spec/models/patched_task_execution_spec.rb +466 -0
  123. data/spec/models/patched_task_spec.rb +244 -0
  124. data/spec/models/patched_workflow_execution_spec.rb +172 -0
  125. data/spec/models/patched_workflow_spec.rb +142 -0
  126. data/spec/models/patched_workflow_task_instance_spec.rb +196 -0
  127. data/spec/models/patched_workflow_transition_spec.rb +118 -0
  128. data/spec/models/propagate_tags_enum_spec.rb +28 -0
  129. data/spec/models/rule_type_enum_spec.rb +28 -0
  130. data/spec/models/run_environment_spec.rb +136 -0
  131. data/spec/models/start_transition_condition_enum_spec.rb +28 -0
  132. data/spec/models/stop_reason_enum_spec.rb +28 -0
  133. data/spec/models/task_execution_spec.rb +466 -0
  134. data/spec/models/task_execution_status_spec.rb +28 -0
  135. data/spec/models/task_spec.rb +244 -0
  136. data/spec/models/threshold_property_enum_spec.rb +28 -0
  137. data/spec/models/timeout_behavior_enum_spec.rb +28 -0
  138. data/spec/models/unknown_execution_method_capability_spec.rb +40 -0
  139. data/spec/models/workflow_execution_spec.rb +172 -0
  140. data/spec/models/workflow_execution_status_spec.rb +28 -0
  141. data/spec/models/workflow_execution_summary_spec.rb +130 -0
  142. data/spec/models/workflow_spec.rb +142 -0
  143. data/spec/models/workflow_summary_spec.rb +124 -0
  144. data/spec/models/workflow_task_instance_execution_base_spec.rb +58 -0
  145. data/spec/models/workflow_task_instance_execution_spec.rb +64 -0
  146. data/spec/models/workflow_task_instance_spec.rb +196 -0
  147. data/spec/models/workflow_transition_evaluation_spec.rb +64 -0
  148. data/spec/models/workflow_transition_spec.rb +118 -0
  149. data/spec/spec_helper.rb +111 -0
  150. data/spec/wrapper_io/status_updater_spec.rb +147 -0
  151. metadata +305 -0
@@ -0,0 +1,1954 @@
1
+ =begin
2
+ #CloudReactor API
3
+
4
+ #CloudReactor API Documentation
5
+
6
+ The version of the OpenAPI document: 0.2.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
+ # A Task Execution is an execution / run instance of a Task.
18
+ class TaskExecution
19
+ attr_accessor :url
20
+
21
+ attr_accessor :uuid
22
+
23
+ attr_accessor :dashboard_url
24
+
25
+ attr_accessor :infrastructure_website_url
26
+
27
+ attr_accessor :task
28
+
29
+ attr_accessor :task_version_number
30
+
31
+ attr_accessor :task_version_text
32
+
33
+ attr_accessor :task_version_signature
34
+
35
+ attr_accessor :commit_url
36
+
37
+ attr_accessor :other_instance_metadata
38
+
39
+ attr_accessor :hostname
40
+
41
+ attr_accessor :environment_variables_overrides
42
+
43
+ attr_accessor :execution_method
44
+
45
+ attr_accessor :status
46
+
47
+ # Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.
48
+ attr_accessor :started_by
49
+
50
+ attr_accessor :started_at
51
+
52
+ attr_accessor :finished_at
53
+
54
+ # Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.
55
+ attr_accessor :marked_done_by
56
+
57
+ attr_accessor :marked_done_at
58
+
59
+ attr_accessor :marked_outdated_at
60
+
61
+ # Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.
62
+ attr_accessor :killed_by
63
+
64
+ attr_accessor :kill_started_at
65
+
66
+ attr_accessor :kill_finished_at
67
+
68
+ attr_accessor :kill_error_code
69
+
70
+ attr_accessor :stop_reason
71
+
72
+ attr_accessor :last_heartbeat_at
73
+
74
+ attr_accessor :failed_attempts
75
+
76
+ attr_accessor :timed_out_attempts
77
+
78
+ attr_accessor :exit_code
79
+
80
+ attr_accessor :last_status_message
81
+
82
+ attr_accessor :error_count
83
+
84
+ attr_accessor :skipped_count
85
+
86
+ attr_accessor :expected_count
87
+
88
+ attr_accessor :success_count
89
+
90
+ attr_accessor :other_runtime_metadata
91
+
92
+ attr_accessor :current_cpu_units
93
+
94
+ attr_accessor :mean_cpu_units
95
+
96
+ attr_accessor :max_cpu_units
97
+
98
+ attr_accessor :current_memory_mb
99
+
100
+ attr_accessor :mean_memory_mb
101
+
102
+ attr_accessor :max_memory_mb
103
+
104
+ attr_accessor :wrapper_version
105
+
106
+ attr_accessor :wrapper_log_level
107
+
108
+ attr_accessor :deployment
109
+
110
+ attr_accessor :process_command
111
+
112
+ attr_accessor :is_service
113
+
114
+ attr_accessor :task_max_concurrency
115
+
116
+ attr_accessor :max_conflicting_age_seconds
117
+
118
+ attr_accessor :prevent_offline_execution
119
+
120
+ attr_accessor :process_timeout_seconds
121
+
122
+ attr_accessor :process_termination_grace_period_seconds
123
+
124
+ attr_accessor :process_max_retries
125
+
126
+ attr_accessor :process_retry_delay_seconds
127
+
128
+ attr_accessor :schedule
129
+
130
+ attr_accessor :heartbeat_interval_seconds
131
+
132
+ attr_accessor :workflow_task_instance_execution
133
+
134
+ attr_accessor :api_base_url
135
+
136
+ attr_accessor :api_request_timeout_seconds
137
+
138
+ attr_accessor :api_retry_delay_seconds
139
+
140
+ attr_accessor :api_resume_delay_seconds
141
+
142
+ attr_accessor :api_error_timeout_seconds
143
+
144
+ attr_accessor :api_task_execution_creation_error_timeout_seconds
145
+
146
+ attr_accessor :api_task_execution_creation_conflict_timeout_seconds
147
+
148
+ attr_accessor :api_task_execution_creation_conflict_retry_delay_seconds
149
+
150
+ attr_accessor :api_final_update_timeout_seconds
151
+
152
+ attr_accessor :status_update_interval_seconds
153
+
154
+ attr_accessor :status_update_port
155
+
156
+ attr_accessor :status_update_message_max_bytes
157
+
158
+ attr_accessor :debug_log_tail
159
+
160
+ attr_accessor :error_log_tail
161
+
162
+ attr_accessor :embedded_mode
163
+
164
+ attr_accessor :created_at
165
+
166
+ attr_accessor :updated_at
167
+
168
+ # Attribute mapping from ruby-style variable name to JSON key.
169
+ def self.attribute_map
170
+ {
171
+ :'url' => :'url',
172
+ :'uuid' => :'uuid',
173
+ :'dashboard_url' => :'dashboard_url',
174
+ :'infrastructure_website_url' => :'infrastructure_website_url',
175
+ :'task' => :'task',
176
+ :'task_version_number' => :'task_version_number',
177
+ :'task_version_text' => :'task_version_text',
178
+ :'task_version_signature' => :'task_version_signature',
179
+ :'commit_url' => :'commit_url',
180
+ :'other_instance_metadata' => :'other_instance_metadata',
181
+ :'hostname' => :'hostname',
182
+ :'environment_variables_overrides' => :'environment_variables_overrides',
183
+ :'execution_method' => :'execution_method',
184
+ :'status' => :'status',
185
+ :'started_by' => :'started_by',
186
+ :'started_at' => :'started_at',
187
+ :'finished_at' => :'finished_at',
188
+ :'marked_done_by' => :'marked_done_by',
189
+ :'marked_done_at' => :'marked_done_at',
190
+ :'marked_outdated_at' => :'marked_outdated_at',
191
+ :'killed_by' => :'killed_by',
192
+ :'kill_started_at' => :'kill_started_at',
193
+ :'kill_finished_at' => :'kill_finished_at',
194
+ :'kill_error_code' => :'kill_error_code',
195
+ :'stop_reason' => :'stop_reason',
196
+ :'last_heartbeat_at' => :'last_heartbeat_at',
197
+ :'failed_attempts' => :'failed_attempts',
198
+ :'timed_out_attempts' => :'timed_out_attempts',
199
+ :'exit_code' => :'exit_code',
200
+ :'last_status_message' => :'last_status_message',
201
+ :'error_count' => :'error_count',
202
+ :'skipped_count' => :'skipped_count',
203
+ :'expected_count' => :'expected_count',
204
+ :'success_count' => :'success_count',
205
+ :'other_runtime_metadata' => :'other_runtime_metadata',
206
+ :'current_cpu_units' => :'current_cpu_units',
207
+ :'mean_cpu_units' => :'mean_cpu_units',
208
+ :'max_cpu_units' => :'max_cpu_units',
209
+ :'current_memory_mb' => :'current_memory_mb',
210
+ :'mean_memory_mb' => :'mean_memory_mb',
211
+ :'max_memory_mb' => :'max_memory_mb',
212
+ :'wrapper_version' => :'wrapper_version',
213
+ :'wrapper_log_level' => :'wrapper_log_level',
214
+ :'deployment' => :'deployment',
215
+ :'process_command' => :'process_command',
216
+ :'is_service' => :'is_service',
217
+ :'task_max_concurrency' => :'task_max_concurrency',
218
+ :'max_conflicting_age_seconds' => :'max_conflicting_age_seconds',
219
+ :'prevent_offline_execution' => :'prevent_offline_execution',
220
+ :'process_timeout_seconds' => :'process_timeout_seconds',
221
+ :'process_termination_grace_period_seconds' => :'process_termination_grace_period_seconds',
222
+ :'process_max_retries' => :'process_max_retries',
223
+ :'process_retry_delay_seconds' => :'process_retry_delay_seconds',
224
+ :'schedule' => :'schedule',
225
+ :'heartbeat_interval_seconds' => :'heartbeat_interval_seconds',
226
+ :'workflow_task_instance_execution' => :'workflow_task_instance_execution',
227
+ :'api_base_url' => :'api_base_url',
228
+ :'api_request_timeout_seconds' => :'api_request_timeout_seconds',
229
+ :'api_retry_delay_seconds' => :'api_retry_delay_seconds',
230
+ :'api_resume_delay_seconds' => :'api_resume_delay_seconds',
231
+ :'api_error_timeout_seconds' => :'api_error_timeout_seconds',
232
+ :'api_task_execution_creation_error_timeout_seconds' => :'api_task_execution_creation_error_timeout_seconds',
233
+ :'api_task_execution_creation_conflict_timeout_seconds' => :'api_task_execution_creation_conflict_timeout_seconds',
234
+ :'api_task_execution_creation_conflict_retry_delay_seconds' => :'api_task_execution_creation_conflict_retry_delay_seconds',
235
+ :'api_final_update_timeout_seconds' => :'api_final_update_timeout_seconds',
236
+ :'status_update_interval_seconds' => :'status_update_interval_seconds',
237
+ :'status_update_port' => :'status_update_port',
238
+ :'status_update_message_max_bytes' => :'status_update_message_max_bytes',
239
+ :'debug_log_tail' => :'debug_log_tail',
240
+ :'error_log_tail' => :'error_log_tail',
241
+ :'embedded_mode' => :'embedded_mode',
242
+ :'created_at' => :'created_at',
243
+ :'updated_at' => :'updated_at'
244
+ }
245
+ end
246
+
247
+ # Returns all the JSON keys this model knows about
248
+ def self.acceptable_attributes
249
+ attribute_map.values
250
+ end
251
+
252
+ # Attribute type mapping.
253
+ def self.openapi_types
254
+ {
255
+ :'url' => :'String',
256
+ :'uuid' => :'String',
257
+ :'dashboard_url' => :'String',
258
+ :'infrastructure_website_url' => :'String',
259
+ :'task' => :'NameAndUuid',
260
+ :'task_version_number' => :'Integer',
261
+ :'task_version_text' => :'String',
262
+ :'task_version_signature' => :'String',
263
+ :'commit_url' => :'String',
264
+ :'other_instance_metadata' => :'Hash<String, Object>',
265
+ :'hostname' => :'String',
266
+ :'environment_variables_overrides' => :'Hash<String, Object>',
267
+ :'execution_method' => :'AwsEcsExecutionMethod',
268
+ :'status' => :'TaskExecutionStatus',
269
+ :'started_by' => :'String',
270
+ :'started_at' => :'Time',
271
+ :'finished_at' => :'Time',
272
+ :'marked_done_by' => :'String',
273
+ :'marked_done_at' => :'Time',
274
+ :'marked_outdated_at' => :'Time',
275
+ :'killed_by' => :'String',
276
+ :'kill_started_at' => :'Time',
277
+ :'kill_finished_at' => :'Time',
278
+ :'kill_error_code' => :'Integer',
279
+ :'stop_reason' => :'StopReasonEnum',
280
+ :'last_heartbeat_at' => :'Time',
281
+ :'failed_attempts' => :'Integer',
282
+ :'timed_out_attempts' => :'Integer',
283
+ :'exit_code' => :'Integer',
284
+ :'last_status_message' => :'String',
285
+ :'error_count' => :'Integer',
286
+ :'skipped_count' => :'Integer',
287
+ :'expected_count' => :'Integer',
288
+ :'success_count' => :'Integer',
289
+ :'other_runtime_metadata' => :'Hash<String, Object>',
290
+ :'current_cpu_units' => :'Integer',
291
+ :'mean_cpu_units' => :'Integer',
292
+ :'max_cpu_units' => :'Integer',
293
+ :'current_memory_mb' => :'Integer',
294
+ :'mean_memory_mb' => :'Integer',
295
+ :'max_memory_mb' => :'Integer',
296
+ :'wrapper_version' => :'String',
297
+ :'wrapper_log_level' => :'String',
298
+ :'deployment' => :'String',
299
+ :'process_command' => :'String',
300
+ :'is_service' => :'Boolean',
301
+ :'task_max_concurrency' => :'Integer',
302
+ :'max_conflicting_age_seconds' => :'Integer',
303
+ :'prevent_offline_execution' => :'Boolean',
304
+ :'process_timeout_seconds' => :'Integer',
305
+ :'process_termination_grace_period_seconds' => :'Integer',
306
+ :'process_max_retries' => :'Integer',
307
+ :'process_retry_delay_seconds' => :'Integer',
308
+ :'schedule' => :'String',
309
+ :'heartbeat_interval_seconds' => :'Integer',
310
+ :'workflow_task_instance_execution' => :'WorkflowTaskInstanceExecutionBase',
311
+ :'api_base_url' => :'String',
312
+ :'api_request_timeout_seconds' => :'Integer',
313
+ :'api_retry_delay_seconds' => :'Integer',
314
+ :'api_resume_delay_seconds' => :'Integer',
315
+ :'api_error_timeout_seconds' => :'Integer',
316
+ :'api_task_execution_creation_error_timeout_seconds' => :'Integer',
317
+ :'api_task_execution_creation_conflict_timeout_seconds' => :'Integer',
318
+ :'api_task_execution_creation_conflict_retry_delay_seconds' => :'Integer',
319
+ :'api_final_update_timeout_seconds' => :'Integer',
320
+ :'status_update_interval_seconds' => :'Integer',
321
+ :'status_update_port' => :'Integer',
322
+ :'status_update_message_max_bytes' => :'Integer',
323
+ :'debug_log_tail' => :'String',
324
+ :'error_log_tail' => :'String',
325
+ :'embedded_mode' => :'Boolean',
326
+ :'created_at' => :'Time',
327
+ :'updated_at' => :'Time'
328
+ }
329
+ end
330
+
331
+ # List of attributes with nullable: true
332
+ def self.openapi_nullable
333
+ Set.new([
334
+ :'infrastructure_website_url',
335
+ :'task_version_number',
336
+ :'task_version_text',
337
+ :'task_version_signature',
338
+ :'commit_url',
339
+ :'other_instance_metadata',
340
+ :'hostname',
341
+ :'environment_variables_overrides',
342
+ :'execution_method',
343
+ :'finished_at',
344
+ :'marked_done_at',
345
+ :'marked_outdated_at',
346
+ :'kill_started_at',
347
+ :'kill_finished_at',
348
+ :'kill_error_code',
349
+ :'last_heartbeat_at',
350
+ :'exit_code',
351
+ :'last_status_message',
352
+ :'error_count',
353
+ :'skipped_count',
354
+ :'expected_count',
355
+ :'success_count',
356
+ :'other_runtime_metadata',
357
+ :'current_cpu_units',
358
+ :'mean_cpu_units',
359
+ :'max_cpu_units',
360
+ :'current_memory_mb',
361
+ :'mean_memory_mb',
362
+ :'max_memory_mb',
363
+ :'wrapper_version',
364
+ :'wrapper_log_level',
365
+ :'deployment',
366
+ :'process_command',
367
+ :'is_service',
368
+ :'task_max_concurrency',
369
+ :'max_conflicting_age_seconds',
370
+ :'prevent_offline_execution',
371
+ :'process_timeout_seconds',
372
+ :'process_termination_grace_period_seconds',
373
+ :'process_max_retries',
374
+ :'process_retry_delay_seconds',
375
+ :'schedule',
376
+ :'heartbeat_interval_seconds',
377
+ :'workflow_task_instance_execution',
378
+ :'api_request_timeout_seconds',
379
+ :'api_retry_delay_seconds',
380
+ :'api_resume_delay_seconds',
381
+ :'api_error_timeout_seconds',
382
+ :'api_task_execution_creation_error_timeout_seconds',
383
+ :'api_task_execution_creation_conflict_timeout_seconds',
384
+ :'api_task_execution_creation_conflict_retry_delay_seconds',
385
+ :'api_final_update_timeout_seconds',
386
+ :'status_update_interval_seconds',
387
+ :'status_update_port',
388
+ :'status_update_message_max_bytes',
389
+ :'debug_log_tail',
390
+ :'error_log_tail',
391
+ :'embedded_mode',
392
+ ])
393
+ end
394
+
395
+ # Initializes the object
396
+ # @param [Hash] attributes Model attributes in the form of hash
397
+ def initialize(attributes = {})
398
+ if (!attributes.is_a?(Hash))
399
+ fail ArgumentError, "The input argument (attributes) must be a hash in `CloudReactorAPIClient::TaskExecution` initialize method"
400
+ end
401
+
402
+ # check to see if the attribute exists and convert string to symbol for hash key
403
+ attributes = attributes.each_with_object({}) { |(k, v), h|
404
+ if (!self.class.attribute_map.key?(k.to_sym))
405
+ fail ArgumentError, "`#{k}` is not a valid attribute in `CloudReactorAPIClient::TaskExecution`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
406
+ end
407
+ h[k.to_sym] = v
408
+ }
409
+
410
+ if attributes.key?(:'url')
411
+ self.url = attributes[:'url']
412
+ end
413
+
414
+ if attributes.key?(:'uuid')
415
+ self.uuid = attributes[:'uuid']
416
+ end
417
+
418
+ if attributes.key?(:'dashboard_url')
419
+ self.dashboard_url = attributes[:'dashboard_url']
420
+ end
421
+
422
+ if attributes.key?(:'infrastructure_website_url')
423
+ self.infrastructure_website_url = attributes[:'infrastructure_website_url']
424
+ end
425
+
426
+ if attributes.key?(:'task')
427
+ self.task = attributes[:'task']
428
+ end
429
+
430
+ if attributes.key?(:'task_version_number')
431
+ self.task_version_number = attributes[:'task_version_number']
432
+ end
433
+
434
+ if attributes.key?(:'task_version_text')
435
+ self.task_version_text = attributes[:'task_version_text']
436
+ end
437
+
438
+ if attributes.key?(:'task_version_signature')
439
+ self.task_version_signature = attributes[:'task_version_signature']
440
+ end
441
+
442
+ if attributes.key?(:'commit_url')
443
+ self.commit_url = attributes[:'commit_url']
444
+ end
445
+
446
+ if attributes.key?(:'other_instance_metadata')
447
+ if (value = attributes[:'other_instance_metadata']).is_a?(Hash)
448
+ self.other_instance_metadata = value
449
+ end
450
+ end
451
+
452
+ if attributes.key?(:'hostname')
453
+ self.hostname = attributes[:'hostname']
454
+ end
455
+
456
+ if attributes.key?(:'environment_variables_overrides')
457
+ if (value = attributes[:'environment_variables_overrides']).is_a?(Hash)
458
+ self.environment_variables_overrides = value
459
+ end
460
+ end
461
+
462
+ if attributes.key?(:'execution_method')
463
+ self.execution_method = attributes[:'execution_method']
464
+ end
465
+
466
+ if attributes.key?(:'status')
467
+ self.status = attributes[:'status']
468
+ end
469
+
470
+ if attributes.key?(:'started_by')
471
+ self.started_by = attributes[:'started_by']
472
+ end
473
+
474
+ if attributes.key?(:'started_at')
475
+ self.started_at = attributes[:'started_at']
476
+ end
477
+
478
+ if attributes.key?(:'finished_at')
479
+ self.finished_at = attributes[:'finished_at']
480
+ end
481
+
482
+ if attributes.key?(:'marked_done_by')
483
+ self.marked_done_by = attributes[:'marked_done_by']
484
+ end
485
+
486
+ if attributes.key?(:'marked_done_at')
487
+ self.marked_done_at = attributes[:'marked_done_at']
488
+ end
489
+
490
+ if attributes.key?(:'marked_outdated_at')
491
+ self.marked_outdated_at = attributes[:'marked_outdated_at']
492
+ end
493
+
494
+ if attributes.key?(:'killed_by')
495
+ self.killed_by = attributes[:'killed_by']
496
+ end
497
+
498
+ if attributes.key?(:'kill_started_at')
499
+ self.kill_started_at = attributes[:'kill_started_at']
500
+ end
501
+
502
+ if attributes.key?(:'kill_finished_at')
503
+ self.kill_finished_at = attributes[:'kill_finished_at']
504
+ end
505
+
506
+ if attributes.key?(:'kill_error_code')
507
+ self.kill_error_code = attributes[:'kill_error_code']
508
+ end
509
+
510
+ if attributes.key?(:'stop_reason')
511
+ self.stop_reason = attributes[:'stop_reason']
512
+ end
513
+
514
+ if attributes.key?(:'last_heartbeat_at')
515
+ self.last_heartbeat_at = attributes[:'last_heartbeat_at']
516
+ end
517
+
518
+ if attributes.key?(:'failed_attempts')
519
+ self.failed_attempts = attributes[:'failed_attempts']
520
+ end
521
+
522
+ if attributes.key?(:'timed_out_attempts')
523
+ self.timed_out_attempts = attributes[:'timed_out_attempts']
524
+ end
525
+
526
+ if attributes.key?(:'exit_code')
527
+ self.exit_code = attributes[:'exit_code']
528
+ end
529
+
530
+ if attributes.key?(:'last_status_message')
531
+ self.last_status_message = attributes[:'last_status_message']
532
+ end
533
+
534
+ if attributes.key?(:'error_count')
535
+ self.error_count = attributes[:'error_count']
536
+ end
537
+
538
+ if attributes.key?(:'skipped_count')
539
+ self.skipped_count = attributes[:'skipped_count']
540
+ end
541
+
542
+ if attributes.key?(:'expected_count')
543
+ self.expected_count = attributes[:'expected_count']
544
+ end
545
+
546
+ if attributes.key?(:'success_count')
547
+ self.success_count = attributes[:'success_count']
548
+ end
549
+
550
+ if attributes.key?(:'other_runtime_metadata')
551
+ if (value = attributes[:'other_runtime_metadata']).is_a?(Hash)
552
+ self.other_runtime_metadata = value
553
+ end
554
+ end
555
+
556
+ if attributes.key?(:'current_cpu_units')
557
+ self.current_cpu_units = attributes[:'current_cpu_units']
558
+ end
559
+
560
+ if attributes.key?(:'mean_cpu_units')
561
+ self.mean_cpu_units = attributes[:'mean_cpu_units']
562
+ end
563
+
564
+ if attributes.key?(:'max_cpu_units')
565
+ self.max_cpu_units = attributes[:'max_cpu_units']
566
+ end
567
+
568
+ if attributes.key?(:'current_memory_mb')
569
+ self.current_memory_mb = attributes[:'current_memory_mb']
570
+ end
571
+
572
+ if attributes.key?(:'mean_memory_mb')
573
+ self.mean_memory_mb = attributes[:'mean_memory_mb']
574
+ end
575
+
576
+ if attributes.key?(:'max_memory_mb')
577
+ self.max_memory_mb = attributes[:'max_memory_mb']
578
+ end
579
+
580
+ if attributes.key?(:'wrapper_version')
581
+ self.wrapper_version = attributes[:'wrapper_version']
582
+ end
583
+
584
+ if attributes.key?(:'wrapper_log_level')
585
+ self.wrapper_log_level = attributes[:'wrapper_log_level']
586
+ end
587
+
588
+ if attributes.key?(:'deployment')
589
+ self.deployment = attributes[:'deployment']
590
+ end
591
+
592
+ if attributes.key?(:'process_command')
593
+ self.process_command = attributes[:'process_command']
594
+ end
595
+
596
+ if attributes.key?(:'is_service')
597
+ self.is_service = attributes[:'is_service']
598
+ end
599
+
600
+ if attributes.key?(:'task_max_concurrency')
601
+ self.task_max_concurrency = attributes[:'task_max_concurrency']
602
+ end
603
+
604
+ if attributes.key?(:'max_conflicting_age_seconds')
605
+ self.max_conflicting_age_seconds = attributes[:'max_conflicting_age_seconds']
606
+ end
607
+
608
+ if attributes.key?(:'prevent_offline_execution')
609
+ self.prevent_offline_execution = attributes[:'prevent_offline_execution']
610
+ end
611
+
612
+ if attributes.key?(:'process_timeout_seconds')
613
+ self.process_timeout_seconds = attributes[:'process_timeout_seconds']
614
+ end
615
+
616
+ if attributes.key?(:'process_termination_grace_period_seconds')
617
+ self.process_termination_grace_period_seconds = attributes[:'process_termination_grace_period_seconds']
618
+ end
619
+
620
+ if attributes.key?(:'process_max_retries')
621
+ self.process_max_retries = attributes[:'process_max_retries']
622
+ end
623
+
624
+ if attributes.key?(:'process_retry_delay_seconds')
625
+ self.process_retry_delay_seconds = attributes[:'process_retry_delay_seconds']
626
+ end
627
+
628
+ if attributes.key?(:'schedule')
629
+ self.schedule = attributes[:'schedule']
630
+ end
631
+
632
+ if attributes.key?(:'heartbeat_interval_seconds')
633
+ self.heartbeat_interval_seconds = attributes[:'heartbeat_interval_seconds']
634
+ end
635
+
636
+ if attributes.key?(:'workflow_task_instance_execution')
637
+ self.workflow_task_instance_execution = attributes[:'workflow_task_instance_execution']
638
+ end
639
+
640
+ if attributes.key?(:'api_base_url')
641
+ self.api_base_url = attributes[:'api_base_url']
642
+ end
643
+
644
+ if attributes.key?(:'api_request_timeout_seconds')
645
+ self.api_request_timeout_seconds = attributes[:'api_request_timeout_seconds']
646
+ end
647
+
648
+ if attributes.key?(:'api_retry_delay_seconds')
649
+ self.api_retry_delay_seconds = attributes[:'api_retry_delay_seconds']
650
+ end
651
+
652
+ if attributes.key?(:'api_resume_delay_seconds')
653
+ self.api_resume_delay_seconds = attributes[:'api_resume_delay_seconds']
654
+ end
655
+
656
+ if attributes.key?(:'api_error_timeout_seconds')
657
+ self.api_error_timeout_seconds = attributes[:'api_error_timeout_seconds']
658
+ end
659
+
660
+ if attributes.key?(:'api_task_execution_creation_error_timeout_seconds')
661
+ self.api_task_execution_creation_error_timeout_seconds = attributes[:'api_task_execution_creation_error_timeout_seconds']
662
+ end
663
+
664
+ if attributes.key?(:'api_task_execution_creation_conflict_timeout_seconds')
665
+ self.api_task_execution_creation_conflict_timeout_seconds = attributes[:'api_task_execution_creation_conflict_timeout_seconds']
666
+ end
667
+
668
+ if attributes.key?(:'api_task_execution_creation_conflict_retry_delay_seconds')
669
+ self.api_task_execution_creation_conflict_retry_delay_seconds = attributes[:'api_task_execution_creation_conflict_retry_delay_seconds']
670
+ end
671
+
672
+ if attributes.key?(:'api_final_update_timeout_seconds')
673
+ self.api_final_update_timeout_seconds = attributes[:'api_final_update_timeout_seconds']
674
+ end
675
+
676
+ if attributes.key?(:'status_update_interval_seconds')
677
+ self.status_update_interval_seconds = attributes[:'status_update_interval_seconds']
678
+ end
679
+
680
+ if attributes.key?(:'status_update_port')
681
+ self.status_update_port = attributes[:'status_update_port']
682
+ end
683
+
684
+ if attributes.key?(:'status_update_message_max_bytes')
685
+ self.status_update_message_max_bytes = attributes[:'status_update_message_max_bytes']
686
+ end
687
+
688
+ if attributes.key?(:'debug_log_tail')
689
+ self.debug_log_tail = attributes[:'debug_log_tail']
690
+ end
691
+
692
+ if attributes.key?(:'error_log_tail')
693
+ self.error_log_tail = attributes[:'error_log_tail']
694
+ end
695
+
696
+ if attributes.key?(:'embedded_mode')
697
+ self.embedded_mode = attributes[:'embedded_mode']
698
+ end
699
+
700
+ if attributes.key?(:'created_at')
701
+ self.created_at = attributes[:'created_at']
702
+ end
703
+
704
+ if attributes.key?(:'updated_at')
705
+ self.updated_at = attributes[:'updated_at']
706
+ end
707
+ end
708
+
709
+ # Show invalid properties with the reasons. Usually used together with valid?
710
+ # @return Array for valid properties with the reasons
711
+ def list_invalid_properties
712
+ invalid_properties = Array.new
713
+ if @url.nil?
714
+ invalid_properties.push('invalid value for "url", url cannot be nil.')
715
+ end
716
+
717
+ if @uuid.nil?
718
+ invalid_properties.push('invalid value for "uuid", uuid cannot be nil.')
719
+ end
720
+
721
+ if @dashboard_url.nil?
722
+ invalid_properties.push('invalid value for "dashboard_url", dashboard_url cannot be nil.')
723
+ end
724
+
725
+ if !@task_version_number.nil? && @task_version_number > 9223372036854775807
726
+ invalid_properties.push('invalid value for "task_version_number", must be smaller than or equal to 9223372036854775807.')
727
+ end
728
+
729
+ if !@task_version_number.nil? && @task_version_number < -9223372036854775808
730
+ invalid_properties.push('invalid value for "task_version_number", must be greater than or equal to -9223372036854775808.')
731
+ end
732
+
733
+ if !@task_version_text.nil? && @task_version_text.to_s.length > 200
734
+ invalid_properties.push('invalid value for "task_version_text", the character length must be smaller than or equal to 200.')
735
+ end
736
+
737
+ if !@task_version_signature.nil? && @task_version_signature.to_s.length > 200
738
+ invalid_properties.push('invalid value for "task_version_signature", the character length must be smaller than or equal to 200.')
739
+ end
740
+
741
+ if !@hostname.nil? && @hostname.to_s.length > 1000
742
+ invalid_properties.push('invalid value for "hostname", the character length must be smaller than or equal to 1000.')
743
+ end
744
+
745
+ if @status.nil?
746
+ invalid_properties.push('invalid value for "status", status cannot be nil.')
747
+ end
748
+
749
+ if @started_by.nil?
750
+ invalid_properties.push('invalid value for "started_by", started_by cannot be nil.')
751
+ end
752
+
753
+ if @started_at.nil?
754
+ invalid_properties.push('invalid value for "started_at", started_at cannot be nil.')
755
+ end
756
+
757
+ if @marked_done_by.nil?
758
+ invalid_properties.push('invalid value for "marked_done_by", marked_done_by cannot be nil.')
759
+ end
760
+
761
+ if @killed_by.nil?
762
+ invalid_properties.push('invalid value for "killed_by", killed_by cannot be nil.')
763
+ end
764
+
765
+ if !@kill_error_code.nil? && @kill_error_code > 2147483647
766
+ invalid_properties.push('invalid value for "kill_error_code", must be smaller than or equal to 2147483647.')
767
+ end
768
+
769
+ if !@kill_error_code.nil? && @kill_error_code < -2147483648
770
+ invalid_properties.push('invalid value for "kill_error_code", must be greater than or equal to -2147483648.')
771
+ end
772
+
773
+ if !@failed_attempts.nil? && @failed_attempts > 2147483647
774
+ invalid_properties.push('invalid value for "failed_attempts", must be smaller than or equal to 2147483647.')
775
+ end
776
+
777
+ if !@failed_attempts.nil? && @failed_attempts < 0
778
+ invalid_properties.push('invalid value for "failed_attempts", must be greater than or equal to 0.')
779
+ end
780
+
781
+ if !@timed_out_attempts.nil? && @timed_out_attempts > 2147483647
782
+ invalid_properties.push('invalid value for "timed_out_attempts", must be smaller than or equal to 2147483647.')
783
+ end
784
+
785
+ if !@timed_out_attempts.nil? && @timed_out_attempts < 0
786
+ invalid_properties.push('invalid value for "timed_out_attempts", must be greater than or equal to 0.')
787
+ end
788
+
789
+ if !@exit_code.nil? && @exit_code > 2147483647
790
+ invalid_properties.push('invalid value for "exit_code", must be smaller than or equal to 2147483647.')
791
+ end
792
+
793
+ if !@exit_code.nil? && @exit_code < -2147483648
794
+ invalid_properties.push('invalid value for "exit_code", must be greater than or equal to -2147483648.')
795
+ end
796
+
797
+ if !@last_status_message.nil? && @last_status_message.to_s.length > 5000
798
+ invalid_properties.push('invalid value for "last_status_message", the character length must be smaller than or equal to 5000.')
799
+ end
800
+
801
+ if !@error_count.nil? && @error_count > 9223372036854775807
802
+ invalid_properties.push('invalid value for "error_count", must be smaller than or equal to 9223372036854775807.')
803
+ end
804
+
805
+ if !@error_count.nil? && @error_count < -9223372036854775808
806
+ invalid_properties.push('invalid value for "error_count", must be greater than or equal to -9223372036854775808.')
807
+ end
808
+
809
+ if !@skipped_count.nil? && @skipped_count > 9223372036854775807
810
+ invalid_properties.push('invalid value for "skipped_count", must be smaller than or equal to 9223372036854775807.')
811
+ end
812
+
813
+ if !@skipped_count.nil? && @skipped_count < -9223372036854775808
814
+ invalid_properties.push('invalid value for "skipped_count", must be greater than or equal to -9223372036854775808.')
815
+ end
816
+
817
+ if !@expected_count.nil? && @expected_count > 9223372036854775807
818
+ invalid_properties.push('invalid value for "expected_count", must be smaller than or equal to 9223372036854775807.')
819
+ end
820
+
821
+ if !@expected_count.nil? && @expected_count < -9223372036854775808
822
+ invalid_properties.push('invalid value for "expected_count", must be greater than or equal to -9223372036854775808.')
823
+ end
824
+
825
+ if !@success_count.nil? && @success_count > 9223372036854775807
826
+ invalid_properties.push('invalid value for "success_count", must be smaller than or equal to 9223372036854775807.')
827
+ end
828
+
829
+ if !@success_count.nil? && @success_count < -9223372036854775808
830
+ invalid_properties.push('invalid value for "success_count", must be greater than or equal to -9223372036854775808.')
831
+ end
832
+
833
+ if !@current_cpu_units.nil? && @current_cpu_units > 2147483647
834
+ invalid_properties.push('invalid value for "current_cpu_units", must be smaller than or equal to 2147483647.')
835
+ end
836
+
837
+ if !@current_cpu_units.nil? && @current_cpu_units < 0
838
+ invalid_properties.push('invalid value for "current_cpu_units", must be greater than or equal to 0.')
839
+ end
840
+
841
+ if !@mean_cpu_units.nil? && @mean_cpu_units > 2147483647
842
+ invalid_properties.push('invalid value for "mean_cpu_units", must be smaller than or equal to 2147483647.')
843
+ end
844
+
845
+ if !@mean_cpu_units.nil? && @mean_cpu_units < 0
846
+ invalid_properties.push('invalid value for "mean_cpu_units", must be greater than or equal to 0.')
847
+ end
848
+
849
+ if !@max_cpu_units.nil? && @max_cpu_units > 2147483647
850
+ invalid_properties.push('invalid value for "max_cpu_units", must be smaller than or equal to 2147483647.')
851
+ end
852
+
853
+ if !@max_cpu_units.nil? && @max_cpu_units < -2147483648
854
+ invalid_properties.push('invalid value for "max_cpu_units", must be greater than or equal to -2147483648.')
855
+ end
856
+
857
+ if !@current_memory_mb.nil? && @current_memory_mb > 2147483647
858
+ invalid_properties.push('invalid value for "current_memory_mb", must be smaller than or equal to 2147483647.')
859
+ end
860
+
861
+ if !@current_memory_mb.nil? && @current_memory_mb < 0
862
+ invalid_properties.push('invalid value for "current_memory_mb", must be greater than or equal to 0.')
863
+ end
864
+
865
+ if !@mean_memory_mb.nil? && @mean_memory_mb > 2147483647
866
+ invalid_properties.push('invalid value for "mean_memory_mb", must be smaller than or equal to 2147483647.')
867
+ end
868
+
869
+ if !@mean_memory_mb.nil? && @mean_memory_mb < 0
870
+ invalid_properties.push('invalid value for "mean_memory_mb", must be greater than or equal to 0.')
871
+ end
872
+
873
+ if !@max_memory_mb.nil? && @max_memory_mb > 2147483647
874
+ invalid_properties.push('invalid value for "max_memory_mb", must be smaller than or equal to 2147483647.')
875
+ end
876
+
877
+ if !@max_memory_mb.nil? && @max_memory_mb < -2147483648
878
+ invalid_properties.push('invalid value for "max_memory_mb", must be greater than or equal to -2147483648.')
879
+ end
880
+
881
+ if !@wrapper_version.nil? && @wrapper_version.to_s.length > 200
882
+ invalid_properties.push('invalid value for "wrapper_version", the character length must be smaller than or equal to 200.')
883
+ end
884
+
885
+ if !@wrapper_log_level.nil? && @wrapper_log_level.to_s.length > 20
886
+ invalid_properties.push('invalid value for "wrapper_log_level", the character length must be smaller than or equal to 20.')
887
+ end
888
+
889
+ if !@deployment.nil? && @deployment.to_s.length > 200
890
+ invalid_properties.push('invalid value for "deployment", the character length must be smaller than or equal to 200.')
891
+ end
892
+
893
+ if !@process_command.nil? && @process_command.to_s.length > 5000
894
+ invalid_properties.push('invalid value for "process_command", the character length must be smaller than or equal to 5000.')
895
+ end
896
+
897
+ if !@task_max_concurrency.nil? && @task_max_concurrency > 2147483647
898
+ invalid_properties.push('invalid value for "task_max_concurrency", must be smaller than or equal to 2147483647.')
899
+ end
900
+
901
+ if !@task_max_concurrency.nil? && @task_max_concurrency < -2147483648
902
+ invalid_properties.push('invalid value for "task_max_concurrency", must be greater than or equal to -2147483648.')
903
+ end
904
+
905
+ if !@max_conflicting_age_seconds.nil? && @max_conflicting_age_seconds > 2147483647
906
+ invalid_properties.push('invalid value for "max_conflicting_age_seconds", must be smaller than or equal to 2147483647.')
907
+ end
908
+
909
+ if !@max_conflicting_age_seconds.nil? && @max_conflicting_age_seconds < -2147483648
910
+ invalid_properties.push('invalid value for "max_conflicting_age_seconds", must be greater than or equal to -2147483648.')
911
+ end
912
+
913
+ if !@process_timeout_seconds.nil? && @process_timeout_seconds > 2147483647
914
+ invalid_properties.push('invalid value for "process_timeout_seconds", must be smaller than or equal to 2147483647.')
915
+ end
916
+
917
+ if !@process_timeout_seconds.nil? && @process_timeout_seconds < -2147483648
918
+ invalid_properties.push('invalid value for "process_timeout_seconds", must be greater than or equal to -2147483648.')
919
+ end
920
+
921
+ if !@process_termination_grace_period_seconds.nil? && @process_termination_grace_period_seconds > 2147483647
922
+ invalid_properties.push('invalid value for "process_termination_grace_period_seconds", must be smaller than or equal to 2147483647.')
923
+ end
924
+
925
+ if !@process_termination_grace_period_seconds.nil? && @process_termination_grace_period_seconds < -2147483648
926
+ invalid_properties.push('invalid value for "process_termination_grace_period_seconds", must be greater than or equal to -2147483648.')
927
+ end
928
+
929
+ if !@process_max_retries.nil? && @process_max_retries > 2147483647
930
+ invalid_properties.push('invalid value for "process_max_retries", must be smaller than or equal to 2147483647.')
931
+ end
932
+
933
+ if !@process_max_retries.nil? && @process_max_retries < -2147483648
934
+ invalid_properties.push('invalid value for "process_max_retries", must be greater than or equal to -2147483648.')
935
+ end
936
+
937
+ if !@process_retry_delay_seconds.nil? && @process_retry_delay_seconds > 2147483647
938
+ invalid_properties.push('invalid value for "process_retry_delay_seconds", must be smaller than or equal to 2147483647.')
939
+ end
940
+
941
+ if !@process_retry_delay_seconds.nil? && @process_retry_delay_seconds < 0
942
+ invalid_properties.push('invalid value for "process_retry_delay_seconds", must be greater than or equal to 0.')
943
+ end
944
+
945
+ if !@schedule.nil? && @schedule.to_s.length > 1000
946
+ invalid_properties.push('invalid value for "schedule", the character length must be smaller than or equal to 1000.')
947
+ end
948
+
949
+ if !@heartbeat_interval_seconds.nil? && @heartbeat_interval_seconds > 2147483647
950
+ invalid_properties.push('invalid value for "heartbeat_interval_seconds", must be smaller than or equal to 2147483647.')
951
+ end
952
+
953
+ if !@heartbeat_interval_seconds.nil? && @heartbeat_interval_seconds < -2147483648
954
+ invalid_properties.push('invalid value for "heartbeat_interval_seconds", must be greater than or equal to -2147483648.')
955
+ end
956
+
957
+ if !@api_base_url.nil? && @api_base_url.to_s.length > 200
958
+ invalid_properties.push('invalid value for "api_base_url", the character length must be smaller than or equal to 200.')
959
+ end
960
+
961
+ if !@api_request_timeout_seconds.nil? && @api_request_timeout_seconds > 2147483647
962
+ invalid_properties.push('invalid value for "api_request_timeout_seconds", must be smaller than or equal to 2147483647.')
963
+ end
964
+
965
+ if !@api_request_timeout_seconds.nil? && @api_request_timeout_seconds < -2147483648
966
+ invalid_properties.push('invalid value for "api_request_timeout_seconds", must be greater than or equal to -2147483648.')
967
+ end
968
+
969
+ if !@api_retry_delay_seconds.nil? && @api_retry_delay_seconds > 2147483647
970
+ invalid_properties.push('invalid value for "api_retry_delay_seconds", must be smaller than or equal to 2147483647.')
971
+ end
972
+
973
+ if !@api_retry_delay_seconds.nil? && @api_retry_delay_seconds < 0
974
+ invalid_properties.push('invalid value for "api_retry_delay_seconds", must be greater than or equal to 0.')
975
+ end
976
+
977
+ if !@api_resume_delay_seconds.nil? && @api_resume_delay_seconds > 2147483647
978
+ invalid_properties.push('invalid value for "api_resume_delay_seconds", must be smaller than or equal to 2147483647.')
979
+ end
980
+
981
+ if !@api_resume_delay_seconds.nil? && @api_resume_delay_seconds < 0
982
+ invalid_properties.push('invalid value for "api_resume_delay_seconds", must be greater than or equal to 0.')
983
+ end
984
+
985
+ if !@api_error_timeout_seconds.nil? && @api_error_timeout_seconds > 2147483647
986
+ invalid_properties.push('invalid value for "api_error_timeout_seconds", must be smaller than or equal to 2147483647.')
987
+ end
988
+
989
+ if !@api_error_timeout_seconds.nil? && @api_error_timeout_seconds < -2147483648
990
+ invalid_properties.push('invalid value for "api_error_timeout_seconds", must be greater than or equal to -2147483648.')
991
+ end
992
+
993
+ if !@api_task_execution_creation_error_timeout_seconds.nil? && @api_task_execution_creation_error_timeout_seconds > 2147483647
994
+ invalid_properties.push('invalid value for "api_task_execution_creation_error_timeout_seconds", must be smaller than or equal to 2147483647.')
995
+ end
996
+
997
+ if !@api_task_execution_creation_error_timeout_seconds.nil? && @api_task_execution_creation_error_timeout_seconds < -2147483648
998
+ invalid_properties.push('invalid value for "api_task_execution_creation_error_timeout_seconds", must be greater than or equal to -2147483648.')
999
+ end
1000
+
1001
+ if !@api_task_execution_creation_conflict_timeout_seconds.nil? && @api_task_execution_creation_conflict_timeout_seconds > 2147483647
1002
+ invalid_properties.push('invalid value for "api_task_execution_creation_conflict_timeout_seconds", must be smaller than or equal to 2147483647.')
1003
+ end
1004
+
1005
+ if !@api_task_execution_creation_conflict_timeout_seconds.nil? && @api_task_execution_creation_conflict_timeout_seconds < -2147483648
1006
+ invalid_properties.push('invalid value for "api_task_execution_creation_conflict_timeout_seconds", must be greater than or equal to -2147483648.')
1007
+ end
1008
+
1009
+ if !@api_task_execution_creation_conflict_retry_delay_seconds.nil? && @api_task_execution_creation_conflict_retry_delay_seconds > 2147483647
1010
+ invalid_properties.push('invalid value for "api_task_execution_creation_conflict_retry_delay_seconds", must be smaller than or equal to 2147483647.')
1011
+ end
1012
+
1013
+ if !@api_task_execution_creation_conflict_retry_delay_seconds.nil? && @api_task_execution_creation_conflict_retry_delay_seconds < 0
1014
+ invalid_properties.push('invalid value for "api_task_execution_creation_conflict_retry_delay_seconds", must be greater than or equal to 0.')
1015
+ end
1016
+
1017
+ if !@api_final_update_timeout_seconds.nil? && @api_final_update_timeout_seconds > 2147483647
1018
+ invalid_properties.push('invalid value for "api_final_update_timeout_seconds", must be smaller than or equal to 2147483647.')
1019
+ end
1020
+
1021
+ if !@api_final_update_timeout_seconds.nil? && @api_final_update_timeout_seconds < -2147483648
1022
+ invalid_properties.push('invalid value for "api_final_update_timeout_seconds", must be greater than or equal to -2147483648.')
1023
+ end
1024
+
1025
+ if !@status_update_interval_seconds.nil? && @status_update_interval_seconds > 2147483647
1026
+ invalid_properties.push('invalid value for "status_update_interval_seconds", must be smaller than or equal to 2147483647.')
1027
+ end
1028
+
1029
+ if !@status_update_interval_seconds.nil? && @status_update_interval_seconds < -2147483648
1030
+ invalid_properties.push('invalid value for "status_update_interval_seconds", must be greater than or equal to -2147483648.')
1031
+ end
1032
+
1033
+ if !@status_update_port.nil? && @status_update_port > 2147483647
1034
+ invalid_properties.push('invalid value for "status_update_port", must be smaller than or equal to 2147483647.')
1035
+ end
1036
+
1037
+ if !@status_update_port.nil? && @status_update_port < -2147483648
1038
+ invalid_properties.push('invalid value for "status_update_port", must be greater than or equal to -2147483648.')
1039
+ end
1040
+
1041
+ if !@status_update_message_max_bytes.nil? && @status_update_message_max_bytes > 2147483647
1042
+ invalid_properties.push('invalid value for "status_update_message_max_bytes", must be smaller than or equal to 2147483647.')
1043
+ end
1044
+
1045
+ if !@status_update_message_max_bytes.nil? && @status_update_message_max_bytes < -2147483648
1046
+ invalid_properties.push('invalid value for "status_update_message_max_bytes", must be greater than or equal to -2147483648.')
1047
+ end
1048
+
1049
+ if !@debug_log_tail.nil? && @debug_log_tail.to_s.length > 5000000
1050
+ invalid_properties.push('invalid value for "debug_log_tail", the character length must be smaller than or equal to 5000000.')
1051
+ end
1052
+
1053
+ if !@error_log_tail.nil? && @error_log_tail.to_s.length > 5000000
1054
+ invalid_properties.push('invalid value for "error_log_tail", the character length must be smaller than or equal to 5000000.')
1055
+ end
1056
+
1057
+ if @created_at.nil?
1058
+ invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
1059
+ end
1060
+
1061
+ if @updated_at.nil?
1062
+ invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
1063
+ end
1064
+
1065
+ invalid_properties
1066
+ end
1067
+
1068
+ # Check to see if the all the properties in the model are valid
1069
+ # @return true if the model is valid
1070
+ def valid?
1071
+ return false if @url.nil?
1072
+ return false if @uuid.nil?
1073
+ return false if @dashboard_url.nil?
1074
+ return false if !@task_version_number.nil? && @task_version_number > 9223372036854775807
1075
+ return false if !@task_version_number.nil? && @task_version_number < -9223372036854775808
1076
+ return false if !@task_version_text.nil? && @task_version_text.to_s.length > 200
1077
+ return false if !@task_version_signature.nil? && @task_version_signature.to_s.length > 200
1078
+ return false if !@hostname.nil? && @hostname.to_s.length > 1000
1079
+ return false if @status.nil?
1080
+ return false if @started_by.nil?
1081
+ return false if @started_at.nil?
1082
+ return false if @marked_done_by.nil?
1083
+ return false if @killed_by.nil?
1084
+ return false if !@kill_error_code.nil? && @kill_error_code > 2147483647
1085
+ return false if !@kill_error_code.nil? && @kill_error_code < -2147483648
1086
+ return false if !@failed_attempts.nil? && @failed_attempts > 2147483647
1087
+ return false if !@failed_attempts.nil? && @failed_attempts < 0
1088
+ return false if !@timed_out_attempts.nil? && @timed_out_attempts > 2147483647
1089
+ return false if !@timed_out_attempts.nil? && @timed_out_attempts < 0
1090
+ return false if !@exit_code.nil? && @exit_code > 2147483647
1091
+ return false if !@exit_code.nil? && @exit_code < -2147483648
1092
+ return false if !@last_status_message.nil? && @last_status_message.to_s.length > 5000
1093
+ return false if !@error_count.nil? && @error_count > 9223372036854775807
1094
+ return false if !@error_count.nil? && @error_count < -9223372036854775808
1095
+ return false if !@skipped_count.nil? && @skipped_count > 9223372036854775807
1096
+ return false if !@skipped_count.nil? && @skipped_count < -9223372036854775808
1097
+ return false if !@expected_count.nil? && @expected_count > 9223372036854775807
1098
+ return false if !@expected_count.nil? && @expected_count < -9223372036854775808
1099
+ return false if !@success_count.nil? && @success_count > 9223372036854775807
1100
+ return false if !@success_count.nil? && @success_count < -9223372036854775808
1101
+ return false if !@current_cpu_units.nil? && @current_cpu_units > 2147483647
1102
+ return false if !@current_cpu_units.nil? && @current_cpu_units < 0
1103
+ return false if !@mean_cpu_units.nil? && @mean_cpu_units > 2147483647
1104
+ return false if !@mean_cpu_units.nil? && @mean_cpu_units < 0
1105
+ return false if !@max_cpu_units.nil? && @max_cpu_units > 2147483647
1106
+ return false if !@max_cpu_units.nil? && @max_cpu_units < -2147483648
1107
+ return false if !@current_memory_mb.nil? && @current_memory_mb > 2147483647
1108
+ return false if !@current_memory_mb.nil? && @current_memory_mb < 0
1109
+ return false if !@mean_memory_mb.nil? && @mean_memory_mb > 2147483647
1110
+ return false if !@mean_memory_mb.nil? && @mean_memory_mb < 0
1111
+ return false if !@max_memory_mb.nil? && @max_memory_mb > 2147483647
1112
+ return false if !@max_memory_mb.nil? && @max_memory_mb < -2147483648
1113
+ return false if !@wrapper_version.nil? && @wrapper_version.to_s.length > 200
1114
+ return false if !@wrapper_log_level.nil? && @wrapper_log_level.to_s.length > 20
1115
+ return false if !@deployment.nil? && @deployment.to_s.length > 200
1116
+ return false if !@process_command.nil? && @process_command.to_s.length > 5000
1117
+ return false if !@task_max_concurrency.nil? && @task_max_concurrency > 2147483647
1118
+ return false if !@task_max_concurrency.nil? && @task_max_concurrency < -2147483648
1119
+ return false if !@max_conflicting_age_seconds.nil? && @max_conflicting_age_seconds > 2147483647
1120
+ return false if !@max_conflicting_age_seconds.nil? && @max_conflicting_age_seconds < -2147483648
1121
+ return false if !@process_timeout_seconds.nil? && @process_timeout_seconds > 2147483647
1122
+ return false if !@process_timeout_seconds.nil? && @process_timeout_seconds < -2147483648
1123
+ return false if !@process_termination_grace_period_seconds.nil? && @process_termination_grace_period_seconds > 2147483647
1124
+ return false if !@process_termination_grace_period_seconds.nil? && @process_termination_grace_period_seconds < -2147483648
1125
+ return false if !@process_max_retries.nil? && @process_max_retries > 2147483647
1126
+ return false if !@process_max_retries.nil? && @process_max_retries < -2147483648
1127
+ return false if !@process_retry_delay_seconds.nil? && @process_retry_delay_seconds > 2147483647
1128
+ return false if !@process_retry_delay_seconds.nil? && @process_retry_delay_seconds < 0
1129
+ return false if !@schedule.nil? && @schedule.to_s.length > 1000
1130
+ return false if !@heartbeat_interval_seconds.nil? && @heartbeat_interval_seconds > 2147483647
1131
+ return false if !@heartbeat_interval_seconds.nil? && @heartbeat_interval_seconds < -2147483648
1132
+ return false if !@api_base_url.nil? && @api_base_url.to_s.length > 200
1133
+ return false if !@api_request_timeout_seconds.nil? && @api_request_timeout_seconds > 2147483647
1134
+ return false if !@api_request_timeout_seconds.nil? && @api_request_timeout_seconds < -2147483648
1135
+ return false if !@api_retry_delay_seconds.nil? && @api_retry_delay_seconds > 2147483647
1136
+ return false if !@api_retry_delay_seconds.nil? && @api_retry_delay_seconds < 0
1137
+ return false if !@api_resume_delay_seconds.nil? && @api_resume_delay_seconds > 2147483647
1138
+ return false if !@api_resume_delay_seconds.nil? && @api_resume_delay_seconds < 0
1139
+ return false if !@api_error_timeout_seconds.nil? && @api_error_timeout_seconds > 2147483647
1140
+ return false if !@api_error_timeout_seconds.nil? && @api_error_timeout_seconds < -2147483648
1141
+ return false if !@api_task_execution_creation_error_timeout_seconds.nil? && @api_task_execution_creation_error_timeout_seconds > 2147483647
1142
+ return false if !@api_task_execution_creation_error_timeout_seconds.nil? && @api_task_execution_creation_error_timeout_seconds < -2147483648
1143
+ return false if !@api_task_execution_creation_conflict_timeout_seconds.nil? && @api_task_execution_creation_conflict_timeout_seconds > 2147483647
1144
+ return false if !@api_task_execution_creation_conflict_timeout_seconds.nil? && @api_task_execution_creation_conflict_timeout_seconds < -2147483648
1145
+ return false if !@api_task_execution_creation_conflict_retry_delay_seconds.nil? && @api_task_execution_creation_conflict_retry_delay_seconds > 2147483647
1146
+ return false if !@api_task_execution_creation_conflict_retry_delay_seconds.nil? && @api_task_execution_creation_conflict_retry_delay_seconds < 0
1147
+ return false if !@api_final_update_timeout_seconds.nil? && @api_final_update_timeout_seconds > 2147483647
1148
+ return false if !@api_final_update_timeout_seconds.nil? && @api_final_update_timeout_seconds < -2147483648
1149
+ return false if !@status_update_interval_seconds.nil? && @status_update_interval_seconds > 2147483647
1150
+ return false if !@status_update_interval_seconds.nil? && @status_update_interval_seconds < -2147483648
1151
+ return false if !@status_update_port.nil? && @status_update_port > 2147483647
1152
+ return false if !@status_update_port.nil? && @status_update_port < -2147483648
1153
+ return false if !@status_update_message_max_bytes.nil? && @status_update_message_max_bytes > 2147483647
1154
+ return false if !@status_update_message_max_bytes.nil? && @status_update_message_max_bytes < -2147483648
1155
+ return false if !@debug_log_tail.nil? && @debug_log_tail.to_s.length > 5000000
1156
+ return false if !@error_log_tail.nil? && @error_log_tail.to_s.length > 5000000
1157
+ return false if @created_at.nil?
1158
+ return false if @updated_at.nil?
1159
+ true
1160
+ end
1161
+
1162
+ # Custom attribute writer method with validation
1163
+ # @param [Object] task_version_number Value to be assigned
1164
+ def task_version_number=(task_version_number)
1165
+ if !task_version_number.nil? && task_version_number > 9223372036854775807
1166
+ fail ArgumentError, 'invalid value for "task_version_number", must be smaller than or equal to 9223372036854775807.'
1167
+ end
1168
+
1169
+ if !task_version_number.nil? && task_version_number < -9223372036854775808
1170
+ fail ArgumentError, 'invalid value for "task_version_number", must be greater than or equal to -9223372036854775808.'
1171
+ end
1172
+
1173
+ @task_version_number = task_version_number
1174
+ end
1175
+
1176
+ # Custom attribute writer method with validation
1177
+ # @param [Object] task_version_text Value to be assigned
1178
+ def task_version_text=(task_version_text)
1179
+ if !task_version_text.nil? && task_version_text.to_s.length > 200
1180
+ fail ArgumentError, 'invalid value for "task_version_text", the character length must be smaller than or equal to 200.'
1181
+ end
1182
+
1183
+ @task_version_text = task_version_text
1184
+ end
1185
+
1186
+ # Custom attribute writer method with validation
1187
+ # @param [Object] task_version_signature Value to be assigned
1188
+ def task_version_signature=(task_version_signature)
1189
+ if !task_version_signature.nil? && task_version_signature.to_s.length > 200
1190
+ fail ArgumentError, 'invalid value for "task_version_signature", the character length must be smaller than or equal to 200.'
1191
+ end
1192
+
1193
+ @task_version_signature = task_version_signature
1194
+ end
1195
+
1196
+ # Custom attribute writer method with validation
1197
+ # @param [Object] hostname Value to be assigned
1198
+ def hostname=(hostname)
1199
+ if !hostname.nil? && hostname.to_s.length > 1000
1200
+ fail ArgumentError, 'invalid value for "hostname", the character length must be smaller than or equal to 1000.'
1201
+ end
1202
+
1203
+ @hostname = hostname
1204
+ end
1205
+
1206
+ # Custom attribute writer method with validation
1207
+ # @param [Object] kill_error_code Value to be assigned
1208
+ def kill_error_code=(kill_error_code)
1209
+ if !kill_error_code.nil? && kill_error_code > 2147483647
1210
+ fail ArgumentError, 'invalid value for "kill_error_code", must be smaller than or equal to 2147483647.'
1211
+ end
1212
+
1213
+ if !kill_error_code.nil? && kill_error_code < -2147483648
1214
+ fail ArgumentError, 'invalid value for "kill_error_code", must be greater than or equal to -2147483648.'
1215
+ end
1216
+
1217
+ @kill_error_code = kill_error_code
1218
+ end
1219
+
1220
+ # Custom attribute writer method with validation
1221
+ # @param [Object] failed_attempts Value to be assigned
1222
+ def failed_attempts=(failed_attempts)
1223
+ if !failed_attempts.nil? && failed_attempts > 2147483647
1224
+ fail ArgumentError, 'invalid value for "failed_attempts", must be smaller than or equal to 2147483647.'
1225
+ end
1226
+
1227
+ if !failed_attempts.nil? && failed_attempts < 0
1228
+ fail ArgumentError, 'invalid value for "failed_attempts", must be greater than or equal to 0.'
1229
+ end
1230
+
1231
+ @failed_attempts = failed_attempts
1232
+ end
1233
+
1234
+ # Custom attribute writer method with validation
1235
+ # @param [Object] timed_out_attempts Value to be assigned
1236
+ def timed_out_attempts=(timed_out_attempts)
1237
+ if !timed_out_attempts.nil? && timed_out_attempts > 2147483647
1238
+ fail ArgumentError, 'invalid value for "timed_out_attempts", must be smaller than or equal to 2147483647.'
1239
+ end
1240
+
1241
+ if !timed_out_attempts.nil? && timed_out_attempts < 0
1242
+ fail ArgumentError, 'invalid value for "timed_out_attempts", must be greater than or equal to 0.'
1243
+ end
1244
+
1245
+ @timed_out_attempts = timed_out_attempts
1246
+ end
1247
+
1248
+ # Custom attribute writer method with validation
1249
+ # @param [Object] exit_code Value to be assigned
1250
+ def exit_code=(exit_code)
1251
+ if !exit_code.nil? && exit_code > 2147483647
1252
+ fail ArgumentError, 'invalid value for "exit_code", must be smaller than or equal to 2147483647.'
1253
+ end
1254
+
1255
+ if !exit_code.nil? && exit_code < -2147483648
1256
+ fail ArgumentError, 'invalid value for "exit_code", must be greater than or equal to -2147483648.'
1257
+ end
1258
+
1259
+ @exit_code = exit_code
1260
+ end
1261
+
1262
+ # Custom attribute writer method with validation
1263
+ # @param [Object] last_status_message Value to be assigned
1264
+ def last_status_message=(last_status_message)
1265
+ if !last_status_message.nil? && last_status_message.to_s.length > 5000
1266
+ fail ArgumentError, 'invalid value for "last_status_message", the character length must be smaller than or equal to 5000.'
1267
+ end
1268
+
1269
+ @last_status_message = last_status_message
1270
+ end
1271
+
1272
+ # Custom attribute writer method with validation
1273
+ # @param [Object] error_count Value to be assigned
1274
+ def error_count=(error_count)
1275
+ if !error_count.nil? && error_count > 9223372036854775807
1276
+ fail ArgumentError, 'invalid value for "error_count", must be smaller than or equal to 9223372036854775807.'
1277
+ end
1278
+
1279
+ if !error_count.nil? && error_count < -9223372036854775808
1280
+ fail ArgumentError, 'invalid value for "error_count", must be greater than or equal to -9223372036854775808.'
1281
+ end
1282
+
1283
+ @error_count = error_count
1284
+ end
1285
+
1286
+ # Custom attribute writer method with validation
1287
+ # @param [Object] skipped_count Value to be assigned
1288
+ def skipped_count=(skipped_count)
1289
+ if !skipped_count.nil? && skipped_count > 9223372036854775807
1290
+ fail ArgumentError, 'invalid value for "skipped_count", must be smaller than or equal to 9223372036854775807.'
1291
+ end
1292
+
1293
+ if !skipped_count.nil? && skipped_count < -9223372036854775808
1294
+ fail ArgumentError, 'invalid value for "skipped_count", must be greater than or equal to -9223372036854775808.'
1295
+ end
1296
+
1297
+ @skipped_count = skipped_count
1298
+ end
1299
+
1300
+ # Custom attribute writer method with validation
1301
+ # @param [Object] expected_count Value to be assigned
1302
+ def expected_count=(expected_count)
1303
+ if !expected_count.nil? && expected_count > 9223372036854775807
1304
+ fail ArgumentError, 'invalid value for "expected_count", must be smaller than or equal to 9223372036854775807.'
1305
+ end
1306
+
1307
+ if !expected_count.nil? && expected_count < -9223372036854775808
1308
+ fail ArgumentError, 'invalid value for "expected_count", must be greater than or equal to -9223372036854775808.'
1309
+ end
1310
+
1311
+ @expected_count = expected_count
1312
+ end
1313
+
1314
+ # Custom attribute writer method with validation
1315
+ # @param [Object] success_count Value to be assigned
1316
+ def success_count=(success_count)
1317
+ if !success_count.nil? && success_count > 9223372036854775807
1318
+ fail ArgumentError, 'invalid value for "success_count", must be smaller than or equal to 9223372036854775807.'
1319
+ end
1320
+
1321
+ if !success_count.nil? && success_count < -9223372036854775808
1322
+ fail ArgumentError, 'invalid value for "success_count", must be greater than or equal to -9223372036854775808.'
1323
+ end
1324
+
1325
+ @success_count = success_count
1326
+ end
1327
+
1328
+ # Custom attribute writer method with validation
1329
+ # @param [Object] current_cpu_units Value to be assigned
1330
+ def current_cpu_units=(current_cpu_units)
1331
+ if !current_cpu_units.nil? && current_cpu_units > 2147483647
1332
+ fail ArgumentError, 'invalid value for "current_cpu_units", must be smaller than or equal to 2147483647.'
1333
+ end
1334
+
1335
+ if !current_cpu_units.nil? && current_cpu_units < 0
1336
+ fail ArgumentError, 'invalid value for "current_cpu_units", must be greater than or equal to 0.'
1337
+ end
1338
+
1339
+ @current_cpu_units = current_cpu_units
1340
+ end
1341
+
1342
+ # Custom attribute writer method with validation
1343
+ # @param [Object] mean_cpu_units Value to be assigned
1344
+ def mean_cpu_units=(mean_cpu_units)
1345
+ if !mean_cpu_units.nil? && mean_cpu_units > 2147483647
1346
+ fail ArgumentError, 'invalid value for "mean_cpu_units", must be smaller than or equal to 2147483647.'
1347
+ end
1348
+
1349
+ if !mean_cpu_units.nil? && mean_cpu_units < 0
1350
+ fail ArgumentError, 'invalid value for "mean_cpu_units", must be greater than or equal to 0.'
1351
+ end
1352
+
1353
+ @mean_cpu_units = mean_cpu_units
1354
+ end
1355
+
1356
+ # Custom attribute writer method with validation
1357
+ # @param [Object] max_cpu_units Value to be assigned
1358
+ def max_cpu_units=(max_cpu_units)
1359
+ if !max_cpu_units.nil? && max_cpu_units > 2147483647
1360
+ fail ArgumentError, 'invalid value for "max_cpu_units", must be smaller than or equal to 2147483647.'
1361
+ end
1362
+
1363
+ if !max_cpu_units.nil? && max_cpu_units < -2147483648
1364
+ fail ArgumentError, 'invalid value for "max_cpu_units", must be greater than or equal to -2147483648.'
1365
+ end
1366
+
1367
+ @max_cpu_units = max_cpu_units
1368
+ end
1369
+
1370
+ # Custom attribute writer method with validation
1371
+ # @param [Object] current_memory_mb Value to be assigned
1372
+ def current_memory_mb=(current_memory_mb)
1373
+ if !current_memory_mb.nil? && current_memory_mb > 2147483647
1374
+ fail ArgumentError, 'invalid value for "current_memory_mb", must be smaller than or equal to 2147483647.'
1375
+ end
1376
+
1377
+ if !current_memory_mb.nil? && current_memory_mb < 0
1378
+ fail ArgumentError, 'invalid value for "current_memory_mb", must be greater than or equal to 0.'
1379
+ end
1380
+
1381
+ @current_memory_mb = current_memory_mb
1382
+ end
1383
+
1384
+ # Custom attribute writer method with validation
1385
+ # @param [Object] mean_memory_mb Value to be assigned
1386
+ def mean_memory_mb=(mean_memory_mb)
1387
+ if !mean_memory_mb.nil? && mean_memory_mb > 2147483647
1388
+ fail ArgumentError, 'invalid value for "mean_memory_mb", must be smaller than or equal to 2147483647.'
1389
+ end
1390
+
1391
+ if !mean_memory_mb.nil? && mean_memory_mb < 0
1392
+ fail ArgumentError, 'invalid value for "mean_memory_mb", must be greater than or equal to 0.'
1393
+ end
1394
+
1395
+ @mean_memory_mb = mean_memory_mb
1396
+ end
1397
+
1398
+ # Custom attribute writer method with validation
1399
+ # @param [Object] max_memory_mb Value to be assigned
1400
+ def max_memory_mb=(max_memory_mb)
1401
+ if !max_memory_mb.nil? && max_memory_mb > 2147483647
1402
+ fail ArgumentError, 'invalid value for "max_memory_mb", must be smaller than or equal to 2147483647.'
1403
+ end
1404
+
1405
+ if !max_memory_mb.nil? && max_memory_mb < -2147483648
1406
+ fail ArgumentError, 'invalid value for "max_memory_mb", must be greater than or equal to -2147483648.'
1407
+ end
1408
+
1409
+ @max_memory_mb = max_memory_mb
1410
+ end
1411
+
1412
+ # Custom attribute writer method with validation
1413
+ # @param [Object] wrapper_version Value to be assigned
1414
+ def wrapper_version=(wrapper_version)
1415
+ if !wrapper_version.nil? && wrapper_version.to_s.length > 200
1416
+ fail ArgumentError, 'invalid value for "wrapper_version", the character length must be smaller than or equal to 200.'
1417
+ end
1418
+
1419
+ @wrapper_version = wrapper_version
1420
+ end
1421
+
1422
+ # Custom attribute writer method with validation
1423
+ # @param [Object] wrapper_log_level Value to be assigned
1424
+ def wrapper_log_level=(wrapper_log_level)
1425
+ if !wrapper_log_level.nil? && wrapper_log_level.to_s.length > 20
1426
+ fail ArgumentError, 'invalid value for "wrapper_log_level", the character length must be smaller than or equal to 20.'
1427
+ end
1428
+
1429
+ @wrapper_log_level = wrapper_log_level
1430
+ end
1431
+
1432
+ # Custom attribute writer method with validation
1433
+ # @param [Object] deployment Value to be assigned
1434
+ def deployment=(deployment)
1435
+ if !deployment.nil? && deployment.to_s.length > 200
1436
+ fail ArgumentError, 'invalid value for "deployment", the character length must be smaller than or equal to 200.'
1437
+ end
1438
+
1439
+ @deployment = deployment
1440
+ end
1441
+
1442
+ # Custom attribute writer method with validation
1443
+ # @param [Object] process_command Value to be assigned
1444
+ def process_command=(process_command)
1445
+ if !process_command.nil? && process_command.to_s.length > 5000
1446
+ fail ArgumentError, 'invalid value for "process_command", the character length must be smaller than or equal to 5000.'
1447
+ end
1448
+
1449
+ @process_command = process_command
1450
+ end
1451
+
1452
+ # Custom attribute writer method with validation
1453
+ # @param [Object] task_max_concurrency Value to be assigned
1454
+ def task_max_concurrency=(task_max_concurrency)
1455
+ if !task_max_concurrency.nil? && task_max_concurrency > 2147483647
1456
+ fail ArgumentError, 'invalid value for "task_max_concurrency", must be smaller than or equal to 2147483647.'
1457
+ end
1458
+
1459
+ if !task_max_concurrency.nil? && task_max_concurrency < -2147483648
1460
+ fail ArgumentError, 'invalid value for "task_max_concurrency", must be greater than or equal to -2147483648.'
1461
+ end
1462
+
1463
+ @task_max_concurrency = task_max_concurrency
1464
+ end
1465
+
1466
+ # Custom attribute writer method with validation
1467
+ # @param [Object] max_conflicting_age_seconds Value to be assigned
1468
+ def max_conflicting_age_seconds=(max_conflicting_age_seconds)
1469
+ if !max_conflicting_age_seconds.nil? && max_conflicting_age_seconds > 2147483647
1470
+ fail ArgumentError, 'invalid value for "max_conflicting_age_seconds", must be smaller than or equal to 2147483647.'
1471
+ end
1472
+
1473
+ if !max_conflicting_age_seconds.nil? && max_conflicting_age_seconds < -2147483648
1474
+ fail ArgumentError, 'invalid value for "max_conflicting_age_seconds", must be greater than or equal to -2147483648.'
1475
+ end
1476
+
1477
+ @max_conflicting_age_seconds = max_conflicting_age_seconds
1478
+ end
1479
+
1480
+ # Custom attribute writer method with validation
1481
+ # @param [Object] process_timeout_seconds Value to be assigned
1482
+ def process_timeout_seconds=(process_timeout_seconds)
1483
+ if !process_timeout_seconds.nil? && process_timeout_seconds > 2147483647
1484
+ fail ArgumentError, 'invalid value for "process_timeout_seconds", must be smaller than or equal to 2147483647.'
1485
+ end
1486
+
1487
+ if !process_timeout_seconds.nil? && process_timeout_seconds < -2147483648
1488
+ fail ArgumentError, 'invalid value for "process_timeout_seconds", must be greater than or equal to -2147483648.'
1489
+ end
1490
+
1491
+ @process_timeout_seconds = process_timeout_seconds
1492
+ end
1493
+
1494
+ # Custom attribute writer method with validation
1495
+ # @param [Object] process_termination_grace_period_seconds Value to be assigned
1496
+ def process_termination_grace_period_seconds=(process_termination_grace_period_seconds)
1497
+ if !process_termination_grace_period_seconds.nil? && process_termination_grace_period_seconds > 2147483647
1498
+ fail ArgumentError, 'invalid value for "process_termination_grace_period_seconds", must be smaller than or equal to 2147483647.'
1499
+ end
1500
+
1501
+ if !process_termination_grace_period_seconds.nil? && process_termination_grace_period_seconds < -2147483648
1502
+ fail ArgumentError, 'invalid value for "process_termination_grace_period_seconds", must be greater than or equal to -2147483648.'
1503
+ end
1504
+
1505
+ @process_termination_grace_period_seconds = process_termination_grace_period_seconds
1506
+ end
1507
+
1508
+ # Custom attribute writer method with validation
1509
+ # @param [Object] process_max_retries Value to be assigned
1510
+ def process_max_retries=(process_max_retries)
1511
+ if !process_max_retries.nil? && process_max_retries > 2147483647
1512
+ fail ArgumentError, 'invalid value for "process_max_retries", must be smaller than or equal to 2147483647.'
1513
+ end
1514
+
1515
+ if !process_max_retries.nil? && process_max_retries < -2147483648
1516
+ fail ArgumentError, 'invalid value for "process_max_retries", must be greater than or equal to -2147483648.'
1517
+ end
1518
+
1519
+ @process_max_retries = process_max_retries
1520
+ end
1521
+
1522
+ # Custom attribute writer method with validation
1523
+ # @param [Object] process_retry_delay_seconds Value to be assigned
1524
+ def process_retry_delay_seconds=(process_retry_delay_seconds)
1525
+ if !process_retry_delay_seconds.nil? && process_retry_delay_seconds > 2147483647
1526
+ fail ArgumentError, 'invalid value for "process_retry_delay_seconds", must be smaller than or equal to 2147483647.'
1527
+ end
1528
+
1529
+ if !process_retry_delay_seconds.nil? && process_retry_delay_seconds < 0
1530
+ fail ArgumentError, 'invalid value for "process_retry_delay_seconds", must be greater than or equal to 0.'
1531
+ end
1532
+
1533
+ @process_retry_delay_seconds = process_retry_delay_seconds
1534
+ end
1535
+
1536
+ # Custom attribute writer method with validation
1537
+ # @param [Object] schedule Value to be assigned
1538
+ def schedule=(schedule)
1539
+ if !schedule.nil? && schedule.to_s.length > 1000
1540
+ fail ArgumentError, 'invalid value for "schedule", the character length must be smaller than or equal to 1000.'
1541
+ end
1542
+
1543
+ @schedule = schedule
1544
+ end
1545
+
1546
+ # Custom attribute writer method with validation
1547
+ # @param [Object] heartbeat_interval_seconds Value to be assigned
1548
+ def heartbeat_interval_seconds=(heartbeat_interval_seconds)
1549
+ if !heartbeat_interval_seconds.nil? && heartbeat_interval_seconds > 2147483647
1550
+ fail ArgumentError, 'invalid value for "heartbeat_interval_seconds", must be smaller than or equal to 2147483647.'
1551
+ end
1552
+
1553
+ if !heartbeat_interval_seconds.nil? && heartbeat_interval_seconds < -2147483648
1554
+ fail ArgumentError, 'invalid value for "heartbeat_interval_seconds", must be greater than or equal to -2147483648.'
1555
+ end
1556
+
1557
+ @heartbeat_interval_seconds = heartbeat_interval_seconds
1558
+ end
1559
+
1560
+ # Custom attribute writer method with validation
1561
+ # @param [Object] api_base_url Value to be assigned
1562
+ def api_base_url=(api_base_url)
1563
+ if !api_base_url.nil? && api_base_url.to_s.length > 200
1564
+ fail ArgumentError, 'invalid value for "api_base_url", the character length must be smaller than or equal to 200.'
1565
+ end
1566
+
1567
+ @api_base_url = api_base_url
1568
+ end
1569
+
1570
+ # Custom attribute writer method with validation
1571
+ # @param [Object] api_request_timeout_seconds Value to be assigned
1572
+ def api_request_timeout_seconds=(api_request_timeout_seconds)
1573
+ if !api_request_timeout_seconds.nil? && api_request_timeout_seconds > 2147483647
1574
+ fail ArgumentError, 'invalid value for "api_request_timeout_seconds", must be smaller than or equal to 2147483647.'
1575
+ end
1576
+
1577
+ if !api_request_timeout_seconds.nil? && api_request_timeout_seconds < -2147483648
1578
+ fail ArgumentError, 'invalid value for "api_request_timeout_seconds", must be greater than or equal to -2147483648.'
1579
+ end
1580
+
1581
+ @api_request_timeout_seconds = api_request_timeout_seconds
1582
+ end
1583
+
1584
+ # Custom attribute writer method with validation
1585
+ # @param [Object] api_retry_delay_seconds Value to be assigned
1586
+ def api_retry_delay_seconds=(api_retry_delay_seconds)
1587
+ if !api_retry_delay_seconds.nil? && api_retry_delay_seconds > 2147483647
1588
+ fail ArgumentError, 'invalid value for "api_retry_delay_seconds", must be smaller than or equal to 2147483647.'
1589
+ end
1590
+
1591
+ if !api_retry_delay_seconds.nil? && api_retry_delay_seconds < 0
1592
+ fail ArgumentError, 'invalid value for "api_retry_delay_seconds", must be greater than or equal to 0.'
1593
+ end
1594
+
1595
+ @api_retry_delay_seconds = api_retry_delay_seconds
1596
+ end
1597
+
1598
+ # Custom attribute writer method with validation
1599
+ # @param [Object] api_resume_delay_seconds Value to be assigned
1600
+ def api_resume_delay_seconds=(api_resume_delay_seconds)
1601
+ if !api_resume_delay_seconds.nil? && api_resume_delay_seconds > 2147483647
1602
+ fail ArgumentError, 'invalid value for "api_resume_delay_seconds", must be smaller than or equal to 2147483647.'
1603
+ end
1604
+
1605
+ if !api_resume_delay_seconds.nil? && api_resume_delay_seconds < 0
1606
+ fail ArgumentError, 'invalid value for "api_resume_delay_seconds", must be greater than or equal to 0.'
1607
+ end
1608
+
1609
+ @api_resume_delay_seconds = api_resume_delay_seconds
1610
+ end
1611
+
1612
+ # Custom attribute writer method with validation
1613
+ # @param [Object] api_error_timeout_seconds Value to be assigned
1614
+ def api_error_timeout_seconds=(api_error_timeout_seconds)
1615
+ if !api_error_timeout_seconds.nil? && api_error_timeout_seconds > 2147483647
1616
+ fail ArgumentError, 'invalid value for "api_error_timeout_seconds", must be smaller than or equal to 2147483647.'
1617
+ end
1618
+
1619
+ if !api_error_timeout_seconds.nil? && api_error_timeout_seconds < -2147483648
1620
+ fail ArgumentError, 'invalid value for "api_error_timeout_seconds", must be greater than or equal to -2147483648.'
1621
+ end
1622
+
1623
+ @api_error_timeout_seconds = api_error_timeout_seconds
1624
+ end
1625
+
1626
+ # Custom attribute writer method with validation
1627
+ # @param [Object] api_task_execution_creation_error_timeout_seconds Value to be assigned
1628
+ def api_task_execution_creation_error_timeout_seconds=(api_task_execution_creation_error_timeout_seconds)
1629
+ if !api_task_execution_creation_error_timeout_seconds.nil? && api_task_execution_creation_error_timeout_seconds > 2147483647
1630
+ fail ArgumentError, 'invalid value for "api_task_execution_creation_error_timeout_seconds", must be smaller than or equal to 2147483647.'
1631
+ end
1632
+
1633
+ if !api_task_execution_creation_error_timeout_seconds.nil? && api_task_execution_creation_error_timeout_seconds < -2147483648
1634
+ fail ArgumentError, 'invalid value for "api_task_execution_creation_error_timeout_seconds", must be greater than or equal to -2147483648.'
1635
+ end
1636
+
1637
+ @api_task_execution_creation_error_timeout_seconds = api_task_execution_creation_error_timeout_seconds
1638
+ end
1639
+
1640
+ # Custom attribute writer method with validation
1641
+ # @param [Object] api_task_execution_creation_conflict_timeout_seconds Value to be assigned
1642
+ def api_task_execution_creation_conflict_timeout_seconds=(api_task_execution_creation_conflict_timeout_seconds)
1643
+ if !api_task_execution_creation_conflict_timeout_seconds.nil? && api_task_execution_creation_conflict_timeout_seconds > 2147483647
1644
+ fail ArgumentError, 'invalid value for "api_task_execution_creation_conflict_timeout_seconds", must be smaller than or equal to 2147483647.'
1645
+ end
1646
+
1647
+ if !api_task_execution_creation_conflict_timeout_seconds.nil? && api_task_execution_creation_conflict_timeout_seconds < -2147483648
1648
+ fail ArgumentError, 'invalid value for "api_task_execution_creation_conflict_timeout_seconds", must be greater than or equal to -2147483648.'
1649
+ end
1650
+
1651
+ @api_task_execution_creation_conflict_timeout_seconds = api_task_execution_creation_conflict_timeout_seconds
1652
+ end
1653
+
1654
+ # Custom attribute writer method with validation
1655
+ # @param [Object] api_task_execution_creation_conflict_retry_delay_seconds Value to be assigned
1656
+ def api_task_execution_creation_conflict_retry_delay_seconds=(api_task_execution_creation_conflict_retry_delay_seconds)
1657
+ if !api_task_execution_creation_conflict_retry_delay_seconds.nil? && api_task_execution_creation_conflict_retry_delay_seconds > 2147483647
1658
+ fail ArgumentError, 'invalid value for "api_task_execution_creation_conflict_retry_delay_seconds", must be smaller than or equal to 2147483647.'
1659
+ end
1660
+
1661
+ if !api_task_execution_creation_conflict_retry_delay_seconds.nil? && api_task_execution_creation_conflict_retry_delay_seconds < 0
1662
+ fail ArgumentError, 'invalid value for "api_task_execution_creation_conflict_retry_delay_seconds", must be greater than or equal to 0.'
1663
+ end
1664
+
1665
+ @api_task_execution_creation_conflict_retry_delay_seconds = api_task_execution_creation_conflict_retry_delay_seconds
1666
+ end
1667
+
1668
+ # Custom attribute writer method with validation
1669
+ # @param [Object] api_final_update_timeout_seconds Value to be assigned
1670
+ def api_final_update_timeout_seconds=(api_final_update_timeout_seconds)
1671
+ if !api_final_update_timeout_seconds.nil? && api_final_update_timeout_seconds > 2147483647
1672
+ fail ArgumentError, 'invalid value for "api_final_update_timeout_seconds", must be smaller than or equal to 2147483647.'
1673
+ end
1674
+
1675
+ if !api_final_update_timeout_seconds.nil? && api_final_update_timeout_seconds < -2147483648
1676
+ fail ArgumentError, 'invalid value for "api_final_update_timeout_seconds", must be greater than or equal to -2147483648.'
1677
+ end
1678
+
1679
+ @api_final_update_timeout_seconds = api_final_update_timeout_seconds
1680
+ end
1681
+
1682
+ # Custom attribute writer method with validation
1683
+ # @param [Object] status_update_interval_seconds Value to be assigned
1684
+ def status_update_interval_seconds=(status_update_interval_seconds)
1685
+ if !status_update_interval_seconds.nil? && status_update_interval_seconds > 2147483647
1686
+ fail ArgumentError, 'invalid value for "status_update_interval_seconds", must be smaller than or equal to 2147483647.'
1687
+ end
1688
+
1689
+ if !status_update_interval_seconds.nil? && status_update_interval_seconds < -2147483648
1690
+ fail ArgumentError, 'invalid value for "status_update_interval_seconds", must be greater than or equal to -2147483648.'
1691
+ end
1692
+
1693
+ @status_update_interval_seconds = status_update_interval_seconds
1694
+ end
1695
+
1696
+ # Custom attribute writer method with validation
1697
+ # @param [Object] status_update_port Value to be assigned
1698
+ def status_update_port=(status_update_port)
1699
+ if !status_update_port.nil? && status_update_port > 2147483647
1700
+ fail ArgumentError, 'invalid value for "status_update_port", must be smaller than or equal to 2147483647.'
1701
+ end
1702
+
1703
+ if !status_update_port.nil? && status_update_port < -2147483648
1704
+ fail ArgumentError, 'invalid value for "status_update_port", must be greater than or equal to -2147483648.'
1705
+ end
1706
+
1707
+ @status_update_port = status_update_port
1708
+ end
1709
+
1710
+ # Custom attribute writer method with validation
1711
+ # @param [Object] status_update_message_max_bytes Value to be assigned
1712
+ def status_update_message_max_bytes=(status_update_message_max_bytes)
1713
+ if !status_update_message_max_bytes.nil? && status_update_message_max_bytes > 2147483647
1714
+ fail ArgumentError, 'invalid value for "status_update_message_max_bytes", must be smaller than or equal to 2147483647.'
1715
+ end
1716
+
1717
+ if !status_update_message_max_bytes.nil? && status_update_message_max_bytes < -2147483648
1718
+ fail ArgumentError, 'invalid value for "status_update_message_max_bytes", must be greater than or equal to -2147483648.'
1719
+ end
1720
+
1721
+ @status_update_message_max_bytes = status_update_message_max_bytes
1722
+ end
1723
+
1724
+ # Custom attribute writer method with validation
1725
+ # @param [Object] debug_log_tail Value to be assigned
1726
+ def debug_log_tail=(debug_log_tail)
1727
+ if !debug_log_tail.nil? && debug_log_tail.to_s.length > 5000000
1728
+ fail ArgumentError, 'invalid value for "debug_log_tail", the character length must be smaller than or equal to 5000000.'
1729
+ end
1730
+
1731
+ @debug_log_tail = debug_log_tail
1732
+ end
1733
+
1734
+ # Custom attribute writer method with validation
1735
+ # @param [Object] error_log_tail Value to be assigned
1736
+ def error_log_tail=(error_log_tail)
1737
+ if !error_log_tail.nil? && error_log_tail.to_s.length > 5000000
1738
+ fail ArgumentError, 'invalid value for "error_log_tail", the character length must be smaller than or equal to 5000000.'
1739
+ end
1740
+
1741
+ @error_log_tail = error_log_tail
1742
+ end
1743
+
1744
+ # Checks equality by comparing each attribute.
1745
+ # @param [Object] Object to be compared
1746
+ def ==(o)
1747
+ return true if self.equal?(o)
1748
+ self.class == o.class &&
1749
+ url == o.url &&
1750
+ uuid == o.uuid &&
1751
+ dashboard_url == o.dashboard_url &&
1752
+ infrastructure_website_url == o.infrastructure_website_url &&
1753
+ task == o.task &&
1754
+ task_version_number == o.task_version_number &&
1755
+ task_version_text == o.task_version_text &&
1756
+ task_version_signature == o.task_version_signature &&
1757
+ commit_url == o.commit_url &&
1758
+ other_instance_metadata == o.other_instance_metadata &&
1759
+ hostname == o.hostname &&
1760
+ environment_variables_overrides == o.environment_variables_overrides &&
1761
+ execution_method == o.execution_method &&
1762
+ status == o.status &&
1763
+ started_by == o.started_by &&
1764
+ started_at == o.started_at &&
1765
+ finished_at == o.finished_at &&
1766
+ marked_done_by == o.marked_done_by &&
1767
+ marked_done_at == o.marked_done_at &&
1768
+ marked_outdated_at == o.marked_outdated_at &&
1769
+ killed_by == o.killed_by &&
1770
+ kill_started_at == o.kill_started_at &&
1771
+ kill_finished_at == o.kill_finished_at &&
1772
+ kill_error_code == o.kill_error_code &&
1773
+ stop_reason == o.stop_reason &&
1774
+ last_heartbeat_at == o.last_heartbeat_at &&
1775
+ failed_attempts == o.failed_attempts &&
1776
+ timed_out_attempts == o.timed_out_attempts &&
1777
+ exit_code == o.exit_code &&
1778
+ last_status_message == o.last_status_message &&
1779
+ error_count == o.error_count &&
1780
+ skipped_count == o.skipped_count &&
1781
+ expected_count == o.expected_count &&
1782
+ success_count == o.success_count &&
1783
+ other_runtime_metadata == o.other_runtime_metadata &&
1784
+ current_cpu_units == o.current_cpu_units &&
1785
+ mean_cpu_units == o.mean_cpu_units &&
1786
+ max_cpu_units == o.max_cpu_units &&
1787
+ current_memory_mb == o.current_memory_mb &&
1788
+ mean_memory_mb == o.mean_memory_mb &&
1789
+ max_memory_mb == o.max_memory_mb &&
1790
+ wrapper_version == o.wrapper_version &&
1791
+ wrapper_log_level == o.wrapper_log_level &&
1792
+ deployment == o.deployment &&
1793
+ process_command == o.process_command &&
1794
+ is_service == o.is_service &&
1795
+ task_max_concurrency == o.task_max_concurrency &&
1796
+ max_conflicting_age_seconds == o.max_conflicting_age_seconds &&
1797
+ prevent_offline_execution == o.prevent_offline_execution &&
1798
+ process_timeout_seconds == o.process_timeout_seconds &&
1799
+ process_termination_grace_period_seconds == o.process_termination_grace_period_seconds &&
1800
+ process_max_retries == o.process_max_retries &&
1801
+ process_retry_delay_seconds == o.process_retry_delay_seconds &&
1802
+ schedule == o.schedule &&
1803
+ heartbeat_interval_seconds == o.heartbeat_interval_seconds &&
1804
+ workflow_task_instance_execution == o.workflow_task_instance_execution &&
1805
+ api_base_url == o.api_base_url &&
1806
+ api_request_timeout_seconds == o.api_request_timeout_seconds &&
1807
+ api_retry_delay_seconds == o.api_retry_delay_seconds &&
1808
+ api_resume_delay_seconds == o.api_resume_delay_seconds &&
1809
+ api_error_timeout_seconds == o.api_error_timeout_seconds &&
1810
+ api_task_execution_creation_error_timeout_seconds == o.api_task_execution_creation_error_timeout_seconds &&
1811
+ api_task_execution_creation_conflict_timeout_seconds == o.api_task_execution_creation_conflict_timeout_seconds &&
1812
+ api_task_execution_creation_conflict_retry_delay_seconds == o.api_task_execution_creation_conflict_retry_delay_seconds &&
1813
+ api_final_update_timeout_seconds == o.api_final_update_timeout_seconds &&
1814
+ status_update_interval_seconds == o.status_update_interval_seconds &&
1815
+ status_update_port == o.status_update_port &&
1816
+ status_update_message_max_bytes == o.status_update_message_max_bytes &&
1817
+ debug_log_tail == o.debug_log_tail &&
1818
+ error_log_tail == o.error_log_tail &&
1819
+ embedded_mode == o.embedded_mode &&
1820
+ created_at == o.created_at &&
1821
+ updated_at == o.updated_at
1822
+ end
1823
+
1824
+ # @see the `==` method
1825
+ # @param [Object] Object to be compared
1826
+ def eql?(o)
1827
+ self == o
1828
+ end
1829
+
1830
+ # Calculates hash code according to all attributes.
1831
+ # @return [Integer] Hash code
1832
+ def hash
1833
+ [url, uuid, dashboard_url, infrastructure_website_url, task, task_version_number, task_version_text, task_version_signature, commit_url, other_instance_metadata, hostname, environment_variables_overrides, execution_method, status, started_by, started_at, finished_at, marked_done_by, marked_done_at, marked_outdated_at, killed_by, kill_started_at, kill_finished_at, kill_error_code, stop_reason, last_heartbeat_at, failed_attempts, timed_out_attempts, exit_code, last_status_message, error_count, skipped_count, expected_count, success_count, other_runtime_metadata, current_cpu_units, mean_cpu_units, max_cpu_units, current_memory_mb, mean_memory_mb, max_memory_mb, wrapper_version, wrapper_log_level, deployment, process_command, is_service, task_max_concurrency, max_conflicting_age_seconds, prevent_offline_execution, process_timeout_seconds, process_termination_grace_period_seconds, process_max_retries, process_retry_delay_seconds, schedule, heartbeat_interval_seconds, workflow_task_instance_execution, api_base_url, api_request_timeout_seconds, api_retry_delay_seconds, api_resume_delay_seconds, api_error_timeout_seconds, api_task_execution_creation_error_timeout_seconds, api_task_execution_creation_conflict_timeout_seconds, api_task_execution_creation_conflict_retry_delay_seconds, api_final_update_timeout_seconds, status_update_interval_seconds, status_update_port, status_update_message_max_bytes, debug_log_tail, error_log_tail, embedded_mode, created_at, updated_at].hash
1834
+ end
1835
+
1836
+ # Builds the object from hash
1837
+ # @param [Hash] attributes Model attributes in the form of hash
1838
+ # @return [Object] Returns the model itself
1839
+ def self.build_from_hash(attributes)
1840
+ new.build_from_hash(attributes)
1841
+ end
1842
+
1843
+ # Builds the object from hash
1844
+ # @param [Hash] attributes Model attributes in the form of hash
1845
+ # @return [Object] Returns the model itself
1846
+ def build_from_hash(attributes)
1847
+ return nil unless attributes.is_a?(Hash)
1848
+ self.class.openapi_types.each_pair do |key, type|
1849
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
1850
+ self.send("#{key}=", nil)
1851
+ elsif type =~ /\AArray<(.*)>/i
1852
+ # check to ensure the input is an array given that the attribute
1853
+ # is documented as an array but the input is not
1854
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
1855
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
1856
+ end
1857
+ elsif !attributes[self.class.attribute_map[key]].nil?
1858
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
1859
+ end
1860
+ end
1861
+
1862
+ self
1863
+ end
1864
+
1865
+ # Deserializes the data based on type
1866
+ # @param string type Data type
1867
+ # @param string value Value to be deserialized
1868
+ # @return [Object] Deserialized data
1869
+ def _deserialize(type, value)
1870
+ case type.to_sym
1871
+ when :Time
1872
+ Time.parse(value)
1873
+ when :Date
1874
+ Date.parse(value)
1875
+ when :String
1876
+ value.to_s
1877
+ when :Integer
1878
+ value.to_i
1879
+ when :Float
1880
+ value.to_f
1881
+ when :Boolean
1882
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
1883
+ true
1884
+ else
1885
+ false
1886
+ end
1887
+ when :Object
1888
+ # generic object (usually a Hash), return directly
1889
+ value
1890
+ when /\AArray<(?<inner_type>.+)>\z/
1891
+ inner_type = Regexp.last_match[:inner_type]
1892
+ value.map { |v| _deserialize(inner_type, v) }
1893
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
1894
+ k_type = Regexp.last_match[:k_type]
1895
+ v_type = Regexp.last_match[:v_type]
1896
+ {}.tap do |hash|
1897
+ value.each do |k, v|
1898
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
1899
+ end
1900
+ end
1901
+ else # model
1902
+ # models (e.g. Pet) or oneOf
1903
+ klass = CloudReactorAPIClient.const_get(type)
1904
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
1905
+ end
1906
+ end
1907
+
1908
+ # Returns the string representation of the object
1909
+ # @return [String] String presentation of the object
1910
+ def to_s
1911
+ to_hash.to_s
1912
+ end
1913
+
1914
+ # to_body is an alias to to_hash (backward compatibility)
1915
+ # @return [Hash] Returns the object in the form of hash
1916
+ def to_body
1917
+ to_hash
1918
+ end
1919
+
1920
+ # Returns the object in the form of hash
1921
+ # @return [Hash] Returns the object in the form of hash
1922
+ def to_hash
1923
+ hash = {}
1924
+ self.class.attribute_map.each_pair do |attr, param|
1925
+ value = self.send(attr)
1926
+ if value.nil?
1927
+ is_nullable = self.class.openapi_nullable.include?(attr)
1928
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
1929
+ end
1930
+
1931
+ hash[param] = _to_hash(value)
1932
+ end
1933
+ hash
1934
+ end
1935
+
1936
+ # Outputs non-array value in the form of hash
1937
+ # For object, use to_hash. Otherwise, just return the value
1938
+ # @param [Object] value Any valid value
1939
+ # @return [Hash] Returns the value in the form of hash
1940
+ def _to_hash(value)
1941
+ if value.is_a?(Array)
1942
+ value.compact.map { |v| _to_hash(v) }
1943
+ elsif value.is_a?(Hash)
1944
+ {}.tap do |hash|
1945
+ value.each { |k, v| hash[k] = _to_hash(v) }
1946
+ end
1947
+ elsif value.respond_to? :to_hash
1948
+ value.to_hash
1949
+ else
1950
+ value
1951
+ end
1952
+ end
1953
+ end
1954
+ end