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,1904 @@
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 PatchedTaskExecution
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::PatchedTaskExecution` 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::PatchedTaskExecution`. 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 !@task_version_number.nil? && @task_version_number > 9223372036854775807
714
+ invalid_properties.push('invalid value for "task_version_number", must be smaller than or equal to 9223372036854775807.')
715
+ end
716
+
717
+ if !@task_version_number.nil? && @task_version_number < -9223372036854775808
718
+ invalid_properties.push('invalid value for "task_version_number", must be greater than or equal to -9223372036854775808.')
719
+ end
720
+
721
+ if !@task_version_text.nil? && @task_version_text.to_s.length > 200
722
+ invalid_properties.push('invalid value for "task_version_text", the character length must be smaller than or equal to 200.')
723
+ end
724
+
725
+ if !@task_version_signature.nil? && @task_version_signature.to_s.length > 200
726
+ invalid_properties.push('invalid value for "task_version_signature", the character length must be smaller than or equal to 200.')
727
+ end
728
+
729
+ if !@hostname.nil? && @hostname.to_s.length > 1000
730
+ invalid_properties.push('invalid value for "hostname", the character length must be smaller than or equal to 1000.')
731
+ end
732
+
733
+ if !@kill_error_code.nil? && @kill_error_code > 2147483647
734
+ invalid_properties.push('invalid value for "kill_error_code", must be smaller than or equal to 2147483647.')
735
+ end
736
+
737
+ if !@kill_error_code.nil? && @kill_error_code < -2147483648
738
+ invalid_properties.push('invalid value for "kill_error_code", must be greater than or equal to -2147483648.')
739
+ end
740
+
741
+ if !@failed_attempts.nil? && @failed_attempts > 2147483647
742
+ invalid_properties.push('invalid value for "failed_attempts", must be smaller than or equal to 2147483647.')
743
+ end
744
+
745
+ if !@failed_attempts.nil? && @failed_attempts < 0
746
+ invalid_properties.push('invalid value for "failed_attempts", must be greater than or equal to 0.')
747
+ end
748
+
749
+ if !@timed_out_attempts.nil? && @timed_out_attempts > 2147483647
750
+ invalid_properties.push('invalid value for "timed_out_attempts", must be smaller than or equal to 2147483647.')
751
+ end
752
+
753
+ if !@timed_out_attempts.nil? && @timed_out_attempts < 0
754
+ invalid_properties.push('invalid value for "timed_out_attempts", must be greater than or equal to 0.')
755
+ end
756
+
757
+ if !@exit_code.nil? && @exit_code > 2147483647
758
+ invalid_properties.push('invalid value for "exit_code", must be smaller than or equal to 2147483647.')
759
+ end
760
+
761
+ if !@exit_code.nil? && @exit_code < -2147483648
762
+ invalid_properties.push('invalid value for "exit_code", must be greater than or equal to -2147483648.')
763
+ end
764
+
765
+ if !@last_status_message.nil? && @last_status_message.to_s.length > 5000
766
+ invalid_properties.push('invalid value for "last_status_message", the character length must be smaller than or equal to 5000.')
767
+ end
768
+
769
+ if !@error_count.nil? && @error_count > 9223372036854775807
770
+ invalid_properties.push('invalid value for "error_count", must be smaller than or equal to 9223372036854775807.')
771
+ end
772
+
773
+ if !@error_count.nil? && @error_count < -9223372036854775808
774
+ invalid_properties.push('invalid value for "error_count", must be greater than or equal to -9223372036854775808.')
775
+ end
776
+
777
+ if !@skipped_count.nil? && @skipped_count > 9223372036854775807
778
+ invalid_properties.push('invalid value for "skipped_count", must be smaller than or equal to 9223372036854775807.')
779
+ end
780
+
781
+ if !@skipped_count.nil? && @skipped_count < -9223372036854775808
782
+ invalid_properties.push('invalid value for "skipped_count", must be greater than or equal to -9223372036854775808.')
783
+ end
784
+
785
+ if !@expected_count.nil? && @expected_count > 9223372036854775807
786
+ invalid_properties.push('invalid value for "expected_count", must be smaller than or equal to 9223372036854775807.')
787
+ end
788
+
789
+ if !@expected_count.nil? && @expected_count < -9223372036854775808
790
+ invalid_properties.push('invalid value for "expected_count", must be greater than or equal to -9223372036854775808.')
791
+ end
792
+
793
+ if !@success_count.nil? && @success_count > 9223372036854775807
794
+ invalid_properties.push('invalid value for "success_count", must be smaller than or equal to 9223372036854775807.')
795
+ end
796
+
797
+ if !@success_count.nil? && @success_count < -9223372036854775808
798
+ invalid_properties.push('invalid value for "success_count", must be greater than or equal to -9223372036854775808.')
799
+ end
800
+
801
+ if !@current_cpu_units.nil? && @current_cpu_units > 2147483647
802
+ invalid_properties.push('invalid value for "current_cpu_units", must be smaller than or equal to 2147483647.')
803
+ end
804
+
805
+ if !@current_cpu_units.nil? && @current_cpu_units < 0
806
+ invalid_properties.push('invalid value for "current_cpu_units", must be greater than or equal to 0.')
807
+ end
808
+
809
+ if !@mean_cpu_units.nil? && @mean_cpu_units > 2147483647
810
+ invalid_properties.push('invalid value for "mean_cpu_units", must be smaller than or equal to 2147483647.')
811
+ end
812
+
813
+ if !@mean_cpu_units.nil? && @mean_cpu_units < 0
814
+ invalid_properties.push('invalid value for "mean_cpu_units", must be greater than or equal to 0.')
815
+ end
816
+
817
+ if !@max_cpu_units.nil? && @max_cpu_units > 2147483647
818
+ invalid_properties.push('invalid value for "max_cpu_units", must be smaller than or equal to 2147483647.')
819
+ end
820
+
821
+ if !@max_cpu_units.nil? && @max_cpu_units < -2147483648
822
+ invalid_properties.push('invalid value for "max_cpu_units", must be greater than or equal to -2147483648.')
823
+ end
824
+
825
+ if !@current_memory_mb.nil? && @current_memory_mb > 2147483647
826
+ invalid_properties.push('invalid value for "current_memory_mb", must be smaller than or equal to 2147483647.')
827
+ end
828
+
829
+ if !@current_memory_mb.nil? && @current_memory_mb < 0
830
+ invalid_properties.push('invalid value for "current_memory_mb", must be greater than or equal to 0.')
831
+ end
832
+
833
+ if !@mean_memory_mb.nil? && @mean_memory_mb > 2147483647
834
+ invalid_properties.push('invalid value for "mean_memory_mb", must be smaller than or equal to 2147483647.')
835
+ end
836
+
837
+ if !@mean_memory_mb.nil? && @mean_memory_mb < 0
838
+ invalid_properties.push('invalid value for "mean_memory_mb", must be greater than or equal to 0.')
839
+ end
840
+
841
+ if !@max_memory_mb.nil? && @max_memory_mb > 2147483647
842
+ invalid_properties.push('invalid value for "max_memory_mb", must be smaller than or equal to 2147483647.')
843
+ end
844
+
845
+ if !@max_memory_mb.nil? && @max_memory_mb < -2147483648
846
+ invalid_properties.push('invalid value for "max_memory_mb", must be greater than or equal to -2147483648.')
847
+ end
848
+
849
+ if !@wrapper_version.nil? && @wrapper_version.to_s.length > 200
850
+ invalid_properties.push('invalid value for "wrapper_version", the character length must be smaller than or equal to 200.')
851
+ end
852
+
853
+ if !@wrapper_log_level.nil? && @wrapper_log_level.to_s.length > 20
854
+ invalid_properties.push('invalid value for "wrapper_log_level", the character length must be smaller than or equal to 20.')
855
+ end
856
+
857
+ if !@deployment.nil? && @deployment.to_s.length > 200
858
+ invalid_properties.push('invalid value for "deployment", the character length must be smaller than or equal to 200.')
859
+ end
860
+
861
+ if !@process_command.nil? && @process_command.to_s.length > 5000
862
+ invalid_properties.push('invalid value for "process_command", the character length must be smaller than or equal to 5000.')
863
+ end
864
+
865
+ if !@task_max_concurrency.nil? && @task_max_concurrency > 2147483647
866
+ invalid_properties.push('invalid value for "task_max_concurrency", must be smaller than or equal to 2147483647.')
867
+ end
868
+
869
+ if !@task_max_concurrency.nil? && @task_max_concurrency < -2147483648
870
+ invalid_properties.push('invalid value for "task_max_concurrency", must be greater than or equal to -2147483648.')
871
+ end
872
+
873
+ if !@max_conflicting_age_seconds.nil? && @max_conflicting_age_seconds > 2147483647
874
+ invalid_properties.push('invalid value for "max_conflicting_age_seconds", must be smaller than or equal to 2147483647.')
875
+ end
876
+
877
+ if !@max_conflicting_age_seconds.nil? && @max_conflicting_age_seconds < -2147483648
878
+ invalid_properties.push('invalid value for "max_conflicting_age_seconds", must be greater than or equal to -2147483648.')
879
+ end
880
+
881
+ if !@process_timeout_seconds.nil? && @process_timeout_seconds > 2147483647
882
+ invalid_properties.push('invalid value for "process_timeout_seconds", must be smaller than or equal to 2147483647.')
883
+ end
884
+
885
+ if !@process_timeout_seconds.nil? && @process_timeout_seconds < -2147483648
886
+ invalid_properties.push('invalid value for "process_timeout_seconds", must be greater than or equal to -2147483648.')
887
+ end
888
+
889
+ if !@process_termination_grace_period_seconds.nil? && @process_termination_grace_period_seconds > 2147483647
890
+ invalid_properties.push('invalid value for "process_termination_grace_period_seconds", must be smaller than or equal to 2147483647.')
891
+ end
892
+
893
+ if !@process_termination_grace_period_seconds.nil? && @process_termination_grace_period_seconds < -2147483648
894
+ invalid_properties.push('invalid value for "process_termination_grace_period_seconds", must be greater than or equal to -2147483648.')
895
+ end
896
+
897
+ if !@process_max_retries.nil? && @process_max_retries > 2147483647
898
+ invalid_properties.push('invalid value for "process_max_retries", must be smaller than or equal to 2147483647.')
899
+ end
900
+
901
+ if !@process_max_retries.nil? && @process_max_retries < -2147483648
902
+ invalid_properties.push('invalid value for "process_max_retries", must be greater than or equal to -2147483648.')
903
+ end
904
+
905
+ if !@process_retry_delay_seconds.nil? && @process_retry_delay_seconds > 2147483647
906
+ invalid_properties.push('invalid value for "process_retry_delay_seconds", must be smaller than or equal to 2147483647.')
907
+ end
908
+
909
+ if !@process_retry_delay_seconds.nil? && @process_retry_delay_seconds < 0
910
+ invalid_properties.push('invalid value for "process_retry_delay_seconds", must be greater than or equal to 0.')
911
+ end
912
+
913
+ if !@schedule.nil? && @schedule.to_s.length > 1000
914
+ invalid_properties.push('invalid value for "schedule", the character length must be smaller than or equal to 1000.')
915
+ end
916
+
917
+ if !@heartbeat_interval_seconds.nil? && @heartbeat_interval_seconds > 2147483647
918
+ invalid_properties.push('invalid value for "heartbeat_interval_seconds", must be smaller than or equal to 2147483647.')
919
+ end
920
+
921
+ if !@heartbeat_interval_seconds.nil? && @heartbeat_interval_seconds < -2147483648
922
+ invalid_properties.push('invalid value for "heartbeat_interval_seconds", must be greater than or equal to -2147483648.')
923
+ end
924
+
925
+ if !@api_base_url.nil? && @api_base_url.to_s.length > 200
926
+ invalid_properties.push('invalid value for "api_base_url", the character length must be smaller than or equal to 200.')
927
+ end
928
+
929
+ if !@api_request_timeout_seconds.nil? && @api_request_timeout_seconds > 2147483647
930
+ invalid_properties.push('invalid value for "api_request_timeout_seconds", must be smaller than or equal to 2147483647.')
931
+ end
932
+
933
+ if !@api_request_timeout_seconds.nil? && @api_request_timeout_seconds < -2147483648
934
+ invalid_properties.push('invalid value for "api_request_timeout_seconds", must be greater than or equal to -2147483648.')
935
+ end
936
+
937
+ if !@api_retry_delay_seconds.nil? && @api_retry_delay_seconds > 2147483647
938
+ invalid_properties.push('invalid value for "api_retry_delay_seconds", must be smaller than or equal to 2147483647.')
939
+ end
940
+
941
+ if !@api_retry_delay_seconds.nil? && @api_retry_delay_seconds < 0
942
+ invalid_properties.push('invalid value for "api_retry_delay_seconds", must be greater than or equal to 0.')
943
+ end
944
+
945
+ if !@api_resume_delay_seconds.nil? && @api_resume_delay_seconds > 2147483647
946
+ invalid_properties.push('invalid value for "api_resume_delay_seconds", must be smaller than or equal to 2147483647.')
947
+ end
948
+
949
+ if !@api_resume_delay_seconds.nil? && @api_resume_delay_seconds < 0
950
+ invalid_properties.push('invalid value for "api_resume_delay_seconds", must be greater than or equal to 0.')
951
+ end
952
+
953
+ if !@api_error_timeout_seconds.nil? && @api_error_timeout_seconds > 2147483647
954
+ invalid_properties.push('invalid value for "api_error_timeout_seconds", must be smaller than or equal to 2147483647.')
955
+ end
956
+
957
+ if !@api_error_timeout_seconds.nil? && @api_error_timeout_seconds < -2147483648
958
+ invalid_properties.push('invalid value for "api_error_timeout_seconds", must be greater than or equal to -2147483648.')
959
+ end
960
+
961
+ if !@api_task_execution_creation_error_timeout_seconds.nil? && @api_task_execution_creation_error_timeout_seconds > 2147483647
962
+ invalid_properties.push('invalid value for "api_task_execution_creation_error_timeout_seconds", must be smaller than or equal to 2147483647.')
963
+ end
964
+
965
+ if !@api_task_execution_creation_error_timeout_seconds.nil? && @api_task_execution_creation_error_timeout_seconds < -2147483648
966
+ invalid_properties.push('invalid value for "api_task_execution_creation_error_timeout_seconds", must be greater than or equal to -2147483648.')
967
+ end
968
+
969
+ if !@api_task_execution_creation_conflict_timeout_seconds.nil? && @api_task_execution_creation_conflict_timeout_seconds > 2147483647
970
+ invalid_properties.push('invalid value for "api_task_execution_creation_conflict_timeout_seconds", must be smaller than or equal to 2147483647.')
971
+ end
972
+
973
+ if !@api_task_execution_creation_conflict_timeout_seconds.nil? && @api_task_execution_creation_conflict_timeout_seconds < -2147483648
974
+ invalid_properties.push('invalid value for "api_task_execution_creation_conflict_timeout_seconds", must be greater than or equal to -2147483648.')
975
+ end
976
+
977
+ if !@api_task_execution_creation_conflict_retry_delay_seconds.nil? && @api_task_execution_creation_conflict_retry_delay_seconds > 2147483647
978
+ invalid_properties.push('invalid value for "api_task_execution_creation_conflict_retry_delay_seconds", must be smaller than or equal to 2147483647.')
979
+ end
980
+
981
+ if !@api_task_execution_creation_conflict_retry_delay_seconds.nil? && @api_task_execution_creation_conflict_retry_delay_seconds < 0
982
+ invalid_properties.push('invalid value for "api_task_execution_creation_conflict_retry_delay_seconds", must be greater than or equal to 0.')
983
+ end
984
+
985
+ if !@api_final_update_timeout_seconds.nil? && @api_final_update_timeout_seconds > 2147483647
986
+ invalid_properties.push('invalid value for "api_final_update_timeout_seconds", must be smaller than or equal to 2147483647.')
987
+ end
988
+
989
+ if !@api_final_update_timeout_seconds.nil? && @api_final_update_timeout_seconds < -2147483648
990
+ invalid_properties.push('invalid value for "api_final_update_timeout_seconds", must be greater than or equal to -2147483648.')
991
+ end
992
+
993
+ if !@status_update_interval_seconds.nil? && @status_update_interval_seconds > 2147483647
994
+ invalid_properties.push('invalid value for "status_update_interval_seconds", must be smaller than or equal to 2147483647.')
995
+ end
996
+
997
+ if !@status_update_interval_seconds.nil? && @status_update_interval_seconds < -2147483648
998
+ invalid_properties.push('invalid value for "status_update_interval_seconds", must be greater than or equal to -2147483648.')
999
+ end
1000
+
1001
+ if !@status_update_port.nil? && @status_update_port > 2147483647
1002
+ invalid_properties.push('invalid value for "status_update_port", must be smaller than or equal to 2147483647.')
1003
+ end
1004
+
1005
+ if !@status_update_port.nil? && @status_update_port < -2147483648
1006
+ invalid_properties.push('invalid value for "status_update_port", must be greater than or equal to -2147483648.')
1007
+ end
1008
+
1009
+ if !@status_update_message_max_bytes.nil? && @status_update_message_max_bytes > 2147483647
1010
+ invalid_properties.push('invalid value for "status_update_message_max_bytes", must be smaller than or equal to 2147483647.')
1011
+ end
1012
+
1013
+ if !@status_update_message_max_bytes.nil? && @status_update_message_max_bytes < -2147483648
1014
+ invalid_properties.push('invalid value for "status_update_message_max_bytes", must be greater than or equal to -2147483648.')
1015
+ end
1016
+
1017
+ if !@debug_log_tail.nil? && @debug_log_tail.to_s.length > 5000000
1018
+ invalid_properties.push('invalid value for "debug_log_tail", the character length must be smaller than or equal to 5000000.')
1019
+ end
1020
+
1021
+ if !@error_log_tail.nil? && @error_log_tail.to_s.length > 5000000
1022
+ invalid_properties.push('invalid value for "error_log_tail", the character length must be smaller than or equal to 5000000.')
1023
+ end
1024
+
1025
+ invalid_properties
1026
+ end
1027
+
1028
+ # Check to see if the all the properties in the model are valid
1029
+ # @return true if the model is valid
1030
+ def valid?
1031
+ return false if !@task_version_number.nil? && @task_version_number > 9223372036854775807
1032
+ return false if !@task_version_number.nil? && @task_version_number < -9223372036854775808
1033
+ return false if !@task_version_text.nil? && @task_version_text.to_s.length > 200
1034
+ return false if !@task_version_signature.nil? && @task_version_signature.to_s.length > 200
1035
+ return false if !@hostname.nil? && @hostname.to_s.length > 1000
1036
+ return false if !@kill_error_code.nil? && @kill_error_code > 2147483647
1037
+ return false if !@kill_error_code.nil? && @kill_error_code < -2147483648
1038
+ return false if !@failed_attempts.nil? && @failed_attempts > 2147483647
1039
+ return false if !@failed_attempts.nil? && @failed_attempts < 0
1040
+ return false if !@timed_out_attempts.nil? && @timed_out_attempts > 2147483647
1041
+ return false if !@timed_out_attempts.nil? && @timed_out_attempts < 0
1042
+ return false if !@exit_code.nil? && @exit_code > 2147483647
1043
+ return false if !@exit_code.nil? && @exit_code < -2147483648
1044
+ return false if !@last_status_message.nil? && @last_status_message.to_s.length > 5000
1045
+ return false if !@error_count.nil? && @error_count > 9223372036854775807
1046
+ return false if !@error_count.nil? && @error_count < -9223372036854775808
1047
+ return false if !@skipped_count.nil? && @skipped_count > 9223372036854775807
1048
+ return false if !@skipped_count.nil? && @skipped_count < -9223372036854775808
1049
+ return false if !@expected_count.nil? && @expected_count > 9223372036854775807
1050
+ return false if !@expected_count.nil? && @expected_count < -9223372036854775808
1051
+ return false if !@success_count.nil? && @success_count > 9223372036854775807
1052
+ return false if !@success_count.nil? && @success_count < -9223372036854775808
1053
+ return false if !@current_cpu_units.nil? && @current_cpu_units > 2147483647
1054
+ return false if !@current_cpu_units.nil? && @current_cpu_units < 0
1055
+ return false if !@mean_cpu_units.nil? && @mean_cpu_units > 2147483647
1056
+ return false if !@mean_cpu_units.nil? && @mean_cpu_units < 0
1057
+ return false if !@max_cpu_units.nil? && @max_cpu_units > 2147483647
1058
+ return false if !@max_cpu_units.nil? && @max_cpu_units < -2147483648
1059
+ return false if !@current_memory_mb.nil? && @current_memory_mb > 2147483647
1060
+ return false if !@current_memory_mb.nil? && @current_memory_mb < 0
1061
+ return false if !@mean_memory_mb.nil? && @mean_memory_mb > 2147483647
1062
+ return false if !@mean_memory_mb.nil? && @mean_memory_mb < 0
1063
+ return false if !@max_memory_mb.nil? && @max_memory_mb > 2147483647
1064
+ return false if !@max_memory_mb.nil? && @max_memory_mb < -2147483648
1065
+ return false if !@wrapper_version.nil? && @wrapper_version.to_s.length > 200
1066
+ return false if !@wrapper_log_level.nil? && @wrapper_log_level.to_s.length > 20
1067
+ return false if !@deployment.nil? && @deployment.to_s.length > 200
1068
+ return false if !@process_command.nil? && @process_command.to_s.length > 5000
1069
+ return false if !@task_max_concurrency.nil? && @task_max_concurrency > 2147483647
1070
+ return false if !@task_max_concurrency.nil? && @task_max_concurrency < -2147483648
1071
+ return false if !@max_conflicting_age_seconds.nil? && @max_conflicting_age_seconds > 2147483647
1072
+ return false if !@max_conflicting_age_seconds.nil? && @max_conflicting_age_seconds < -2147483648
1073
+ return false if !@process_timeout_seconds.nil? && @process_timeout_seconds > 2147483647
1074
+ return false if !@process_timeout_seconds.nil? && @process_timeout_seconds < -2147483648
1075
+ return false if !@process_termination_grace_period_seconds.nil? && @process_termination_grace_period_seconds > 2147483647
1076
+ return false if !@process_termination_grace_period_seconds.nil? && @process_termination_grace_period_seconds < -2147483648
1077
+ return false if !@process_max_retries.nil? && @process_max_retries > 2147483647
1078
+ return false if !@process_max_retries.nil? && @process_max_retries < -2147483648
1079
+ return false if !@process_retry_delay_seconds.nil? && @process_retry_delay_seconds > 2147483647
1080
+ return false if !@process_retry_delay_seconds.nil? && @process_retry_delay_seconds < 0
1081
+ return false if !@schedule.nil? && @schedule.to_s.length > 1000
1082
+ return false if !@heartbeat_interval_seconds.nil? && @heartbeat_interval_seconds > 2147483647
1083
+ return false if !@heartbeat_interval_seconds.nil? && @heartbeat_interval_seconds < -2147483648
1084
+ return false if !@api_base_url.nil? && @api_base_url.to_s.length > 200
1085
+ return false if !@api_request_timeout_seconds.nil? && @api_request_timeout_seconds > 2147483647
1086
+ return false if !@api_request_timeout_seconds.nil? && @api_request_timeout_seconds < -2147483648
1087
+ return false if !@api_retry_delay_seconds.nil? && @api_retry_delay_seconds > 2147483647
1088
+ return false if !@api_retry_delay_seconds.nil? && @api_retry_delay_seconds < 0
1089
+ return false if !@api_resume_delay_seconds.nil? && @api_resume_delay_seconds > 2147483647
1090
+ return false if !@api_resume_delay_seconds.nil? && @api_resume_delay_seconds < 0
1091
+ return false if !@api_error_timeout_seconds.nil? && @api_error_timeout_seconds > 2147483647
1092
+ return false if !@api_error_timeout_seconds.nil? && @api_error_timeout_seconds < -2147483648
1093
+ return false if !@api_task_execution_creation_error_timeout_seconds.nil? && @api_task_execution_creation_error_timeout_seconds > 2147483647
1094
+ return false if !@api_task_execution_creation_error_timeout_seconds.nil? && @api_task_execution_creation_error_timeout_seconds < -2147483648
1095
+ return false if !@api_task_execution_creation_conflict_timeout_seconds.nil? && @api_task_execution_creation_conflict_timeout_seconds > 2147483647
1096
+ return false if !@api_task_execution_creation_conflict_timeout_seconds.nil? && @api_task_execution_creation_conflict_timeout_seconds < -2147483648
1097
+ return false if !@api_task_execution_creation_conflict_retry_delay_seconds.nil? && @api_task_execution_creation_conflict_retry_delay_seconds > 2147483647
1098
+ return false if !@api_task_execution_creation_conflict_retry_delay_seconds.nil? && @api_task_execution_creation_conflict_retry_delay_seconds < 0
1099
+ return false if !@api_final_update_timeout_seconds.nil? && @api_final_update_timeout_seconds > 2147483647
1100
+ return false if !@api_final_update_timeout_seconds.nil? && @api_final_update_timeout_seconds < -2147483648
1101
+ return false if !@status_update_interval_seconds.nil? && @status_update_interval_seconds > 2147483647
1102
+ return false if !@status_update_interval_seconds.nil? && @status_update_interval_seconds < -2147483648
1103
+ return false if !@status_update_port.nil? && @status_update_port > 2147483647
1104
+ return false if !@status_update_port.nil? && @status_update_port < -2147483648
1105
+ return false if !@status_update_message_max_bytes.nil? && @status_update_message_max_bytes > 2147483647
1106
+ return false if !@status_update_message_max_bytes.nil? && @status_update_message_max_bytes < -2147483648
1107
+ return false if !@debug_log_tail.nil? && @debug_log_tail.to_s.length > 5000000
1108
+ return false if !@error_log_tail.nil? && @error_log_tail.to_s.length > 5000000
1109
+ true
1110
+ end
1111
+
1112
+ # Custom attribute writer method with validation
1113
+ # @param [Object] task_version_number Value to be assigned
1114
+ def task_version_number=(task_version_number)
1115
+ if !task_version_number.nil? && task_version_number > 9223372036854775807
1116
+ fail ArgumentError, 'invalid value for "task_version_number", must be smaller than or equal to 9223372036854775807.'
1117
+ end
1118
+
1119
+ if !task_version_number.nil? && task_version_number < -9223372036854775808
1120
+ fail ArgumentError, 'invalid value for "task_version_number", must be greater than or equal to -9223372036854775808.'
1121
+ end
1122
+
1123
+ @task_version_number = task_version_number
1124
+ end
1125
+
1126
+ # Custom attribute writer method with validation
1127
+ # @param [Object] task_version_text Value to be assigned
1128
+ def task_version_text=(task_version_text)
1129
+ if !task_version_text.nil? && task_version_text.to_s.length > 200
1130
+ fail ArgumentError, 'invalid value for "task_version_text", the character length must be smaller than or equal to 200.'
1131
+ end
1132
+
1133
+ @task_version_text = task_version_text
1134
+ end
1135
+
1136
+ # Custom attribute writer method with validation
1137
+ # @param [Object] task_version_signature Value to be assigned
1138
+ def task_version_signature=(task_version_signature)
1139
+ if !task_version_signature.nil? && task_version_signature.to_s.length > 200
1140
+ fail ArgumentError, 'invalid value for "task_version_signature", the character length must be smaller than or equal to 200.'
1141
+ end
1142
+
1143
+ @task_version_signature = task_version_signature
1144
+ end
1145
+
1146
+ # Custom attribute writer method with validation
1147
+ # @param [Object] hostname Value to be assigned
1148
+ def hostname=(hostname)
1149
+ if !hostname.nil? && hostname.to_s.length > 1000
1150
+ fail ArgumentError, 'invalid value for "hostname", the character length must be smaller than or equal to 1000.'
1151
+ end
1152
+
1153
+ @hostname = hostname
1154
+ end
1155
+
1156
+ # Custom attribute writer method with validation
1157
+ # @param [Object] kill_error_code Value to be assigned
1158
+ def kill_error_code=(kill_error_code)
1159
+ if !kill_error_code.nil? && kill_error_code > 2147483647
1160
+ fail ArgumentError, 'invalid value for "kill_error_code", must be smaller than or equal to 2147483647.'
1161
+ end
1162
+
1163
+ if !kill_error_code.nil? && kill_error_code < -2147483648
1164
+ fail ArgumentError, 'invalid value for "kill_error_code", must be greater than or equal to -2147483648.'
1165
+ end
1166
+
1167
+ @kill_error_code = kill_error_code
1168
+ end
1169
+
1170
+ # Custom attribute writer method with validation
1171
+ # @param [Object] failed_attempts Value to be assigned
1172
+ def failed_attempts=(failed_attempts)
1173
+ if !failed_attempts.nil? && failed_attempts > 2147483647
1174
+ fail ArgumentError, 'invalid value for "failed_attempts", must be smaller than or equal to 2147483647.'
1175
+ end
1176
+
1177
+ if !failed_attempts.nil? && failed_attempts < 0
1178
+ fail ArgumentError, 'invalid value for "failed_attempts", must be greater than or equal to 0.'
1179
+ end
1180
+
1181
+ @failed_attempts = failed_attempts
1182
+ end
1183
+
1184
+ # Custom attribute writer method with validation
1185
+ # @param [Object] timed_out_attempts Value to be assigned
1186
+ def timed_out_attempts=(timed_out_attempts)
1187
+ if !timed_out_attempts.nil? && timed_out_attempts > 2147483647
1188
+ fail ArgumentError, 'invalid value for "timed_out_attempts", must be smaller than or equal to 2147483647.'
1189
+ end
1190
+
1191
+ if !timed_out_attempts.nil? && timed_out_attempts < 0
1192
+ fail ArgumentError, 'invalid value for "timed_out_attempts", must be greater than or equal to 0.'
1193
+ end
1194
+
1195
+ @timed_out_attempts = timed_out_attempts
1196
+ end
1197
+
1198
+ # Custom attribute writer method with validation
1199
+ # @param [Object] exit_code Value to be assigned
1200
+ def exit_code=(exit_code)
1201
+ if !exit_code.nil? && exit_code > 2147483647
1202
+ fail ArgumentError, 'invalid value for "exit_code", must be smaller than or equal to 2147483647.'
1203
+ end
1204
+
1205
+ if !exit_code.nil? && exit_code < -2147483648
1206
+ fail ArgumentError, 'invalid value for "exit_code", must be greater than or equal to -2147483648.'
1207
+ end
1208
+
1209
+ @exit_code = exit_code
1210
+ end
1211
+
1212
+ # Custom attribute writer method with validation
1213
+ # @param [Object] last_status_message Value to be assigned
1214
+ def last_status_message=(last_status_message)
1215
+ if !last_status_message.nil? && last_status_message.to_s.length > 5000
1216
+ fail ArgumentError, 'invalid value for "last_status_message", the character length must be smaller than or equal to 5000.'
1217
+ end
1218
+
1219
+ @last_status_message = last_status_message
1220
+ end
1221
+
1222
+ # Custom attribute writer method with validation
1223
+ # @param [Object] error_count Value to be assigned
1224
+ def error_count=(error_count)
1225
+ if !error_count.nil? && error_count > 9223372036854775807
1226
+ fail ArgumentError, 'invalid value for "error_count", must be smaller than or equal to 9223372036854775807.'
1227
+ end
1228
+
1229
+ if !error_count.nil? && error_count < -9223372036854775808
1230
+ fail ArgumentError, 'invalid value for "error_count", must be greater than or equal to -9223372036854775808.'
1231
+ end
1232
+
1233
+ @error_count = error_count
1234
+ end
1235
+
1236
+ # Custom attribute writer method with validation
1237
+ # @param [Object] skipped_count Value to be assigned
1238
+ def skipped_count=(skipped_count)
1239
+ if !skipped_count.nil? && skipped_count > 9223372036854775807
1240
+ fail ArgumentError, 'invalid value for "skipped_count", must be smaller than or equal to 9223372036854775807.'
1241
+ end
1242
+
1243
+ if !skipped_count.nil? && skipped_count < -9223372036854775808
1244
+ fail ArgumentError, 'invalid value for "skipped_count", must be greater than or equal to -9223372036854775808.'
1245
+ end
1246
+
1247
+ @skipped_count = skipped_count
1248
+ end
1249
+
1250
+ # Custom attribute writer method with validation
1251
+ # @param [Object] expected_count Value to be assigned
1252
+ def expected_count=(expected_count)
1253
+ if !expected_count.nil? && expected_count > 9223372036854775807
1254
+ fail ArgumentError, 'invalid value for "expected_count", must be smaller than or equal to 9223372036854775807.'
1255
+ end
1256
+
1257
+ if !expected_count.nil? && expected_count < -9223372036854775808
1258
+ fail ArgumentError, 'invalid value for "expected_count", must be greater than or equal to -9223372036854775808.'
1259
+ end
1260
+
1261
+ @expected_count = expected_count
1262
+ end
1263
+
1264
+ # Custom attribute writer method with validation
1265
+ # @param [Object] success_count Value to be assigned
1266
+ def success_count=(success_count)
1267
+ if !success_count.nil? && success_count > 9223372036854775807
1268
+ fail ArgumentError, 'invalid value for "success_count", must be smaller than or equal to 9223372036854775807.'
1269
+ end
1270
+
1271
+ if !success_count.nil? && success_count < -9223372036854775808
1272
+ fail ArgumentError, 'invalid value for "success_count", must be greater than or equal to -9223372036854775808.'
1273
+ end
1274
+
1275
+ @success_count = success_count
1276
+ end
1277
+
1278
+ # Custom attribute writer method with validation
1279
+ # @param [Object] current_cpu_units Value to be assigned
1280
+ def current_cpu_units=(current_cpu_units)
1281
+ if !current_cpu_units.nil? && current_cpu_units > 2147483647
1282
+ fail ArgumentError, 'invalid value for "current_cpu_units", must be smaller than or equal to 2147483647.'
1283
+ end
1284
+
1285
+ if !current_cpu_units.nil? && current_cpu_units < 0
1286
+ fail ArgumentError, 'invalid value for "current_cpu_units", must be greater than or equal to 0.'
1287
+ end
1288
+
1289
+ @current_cpu_units = current_cpu_units
1290
+ end
1291
+
1292
+ # Custom attribute writer method with validation
1293
+ # @param [Object] mean_cpu_units Value to be assigned
1294
+ def mean_cpu_units=(mean_cpu_units)
1295
+ if !mean_cpu_units.nil? && mean_cpu_units > 2147483647
1296
+ fail ArgumentError, 'invalid value for "mean_cpu_units", must be smaller than or equal to 2147483647.'
1297
+ end
1298
+
1299
+ if !mean_cpu_units.nil? && mean_cpu_units < 0
1300
+ fail ArgumentError, 'invalid value for "mean_cpu_units", must be greater than or equal to 0.'
1301
+ end
1302
+
1303
+ @mean_cpu_units = mean_cpu_units
1304
+ end
1305
+
1306
+ # Custom attribute writer method with validation
1307
+ # @param [Object] max_cpu_units Value to be assigned
1308
+ def max_cpu_units=(max_cpu_units)
1309
+ if !max_cpu_units.nil? && max_cpu_units > 2147483647
1310
+ fail ArgumentError, 'invalid value for "max_cpu_units", must be smaller than or equal to 2147483647.'
1311
+ end
1312
+
1313
+ if !max_cpu_units.nil? && max_cpu_units < -2147483648
1314
+ fail ArgumentError, 'invalid value for "max_cpu_units", must be greater than or equal to -2147483648.'
1315
+ end
1316
+
1317
+ @max_cpu_units = max_cpu_units
1318
+ end
1319
+
1320
+ # Custom attribute writer method with validation
1321
+ # @param [Object] current_memory_mb Value to be assigned
1322
+ def current_memory_mb=(current_memory_mb)
1323
+ if !current_memory_mb.nil? && current_memory_mb > 2147483647
1324
+ fail ArgumentError, 'invalid value for "current_memory_mb", must be smaller than or equal to 2147483647.'
1325
+ end
1326
+
1327
+ if !current_memory_mb.nil? && current_memory_mb < 0
1328
+ fail ArgumentError, 'invalid value for "current_memory_mb", must be greater than or equal to 0.'
1329
+ end
1330
+
1331
+ @current_memory_mb = current_memory_mb
1332
+ end
1333
+
1334
+ # Custom attribute writer method with validation
1335
+ # @param [Object] mean_memory_mb Value to be assigned
1336
+ def mean_memory_mb=(mean_memory_mb)
1337
+ if !mean_memory_mb.nil? && mean_memory_mb > 2147483647
1338
+ fail ArgumentError, 'invalid value for "mean_memory_mb", must be smaller than or equal to 2147483647.'
1339
+ end
1340
+
1341
+ if !mean_memory_mb.nil? && mean_memory_mb < 0
1342
+ fail ArgumentError, 'invalid value for "mean_memory_mb", must be greater than or equal to 0.'
1343
+ end
1344
+
1345
+ @mean_memory_mb = mean_memory_mb
1346
+ end
1347
+
1348
+ # Custom attribute writer method with validation
1349
+ # @param [Object] max_memory_mb Value to be assigned
1350
+ def max_memory_mb=(max_memory_mb)
1351
+ if !max_memory_mb.nil? && max_memory_mb > 2147483647
1352
+ fail ArgumentError, 'invalid value for "max_memory_mb", must be smaller than or equal to 2147483647.'
1353
+ end
1354
+
1355
+ if !max_memory_mb.nil? && max_memory_mb < -2147483648
1356
+ fail ArgumentError, 'invalid value for "max_memory_mb", must be greater than or equal to -2147483648.'
1357
+ end
1358
+
1359
+ @max_memory_mb = max_memory_mb
1360
+ end
1361
+
1362
+ # Custom attribute writer method with validation
1363
+ # @param [Object] wrapper_version Value to be assigned
1364
+ def wrapper_version=(wrapper_version)
1365
+ if !wrapper_version.nil? && wrapper_version.to_s.length > 200
1366
+ fail ArgumentError, 'invalid value for "wrapper_version", the character length must be smaller than or equal to 200.'
1367
+ end
1368
+
1369
+ @wrapper_version = wrapper_version
1370
+ end
1371
+
1372
+ # Custom attribute writer method with validation
1373
+ # @param [Object] wrapper_log_level Value to be assigned
1374
+ def wrapper_log_level=(wrapper_log_level)
1375
+ if !wrapper_log_level.nil? && wrapper_log_level.to_s.length > 20
1376
+ fail ArgumentError, 'invalid value for "wrapper_log_level", the character length must be smaller than or equal to 20.'
1377
+ end
1378
+
1379
+ @wrapper_log_level = wrapper_log_level
1380
+ end
1381
+
1382
+ # Custom attribute writer method with validation
1383
+ # @param [Object] deployment Value to be assigned
1384
+ def deployment=(deployment)
1385
+ if !deployment.nil? && deployment.to_s.length > 200
1386
+ fail ArgumentError, 'invalid value for "deployment", the character length must be smaller than or equal to 200.'
1387
+ end
1388
+
1389
+ @deployment = deployment
1390
+ end
1391
+
1392
+ # Custom attribute writer method with validation
1393
+ # @param [Object] process_command Value to be assigned
1394
+ def process_command=(process_command)
1395
+ if !process_command.nil? && process_command.to_s.length > 5000
1396
+ fail ArgumentError, 'invalid value for "process_command", the character length must be smaller than or equal to 5000.'
1397
+ end
1398
+
1399
+ @process_command = process_command
1400
+ end
1401
+
1402
+ # Custom attribute writer method with validation
1403
+ # @param [Object] task_max_concurrency Value to be assigned
1404
+ def task_max_concurrency=(task_max_concurrency)
1405
+ if !task_max_concurrency.nil? && task_max_concurrency > 2147483647
1406
+ fail ArgumentError, 'invalid value for "task_max_concurrency", must be smaller than or equal to 2147483647.'
1407
+ end
1408
+
1409
+ if !task_max_concurrency.nil? && task_max_concurrency < -2147483648
1410
+ fail ArgumentError, 'invalid value for "task_max_concurrency", must be greater than or equal to -2147483648.'
1411
+ end
1412
+
1413
+ @task_max_concurrency = task_max_concurrency
1414
+ end
1415
+
1416
+ # Custom attribute writer method with validation
1417
+ # @param [Object] max_conflicting_age_seconds Value to be assigned
1418
+ def max_conflicting_age_seconds=(max_conflicting_age_seconds)
1419
+ if !max_conflicting_age_seconds.nil? && max_conflicting_age_seconds > 2147483647
1420
+ fail ArgumentError, 'invalid value for "max_conflicting_age_seconds", must be smaller than or equal to 2147483647.'
1421
+ end
1422
+
1423
+ if !max_conflicting_age_seconds.nil? && max_conflicting_age_seconds < -2147483648
1424
+ fail ArgumentError, 'invalid value for "max_conflicting_age_seconds", must be greater than or equal to -2147483648.'
1425
+ end
1426
+
1427
+ @max_conflicting_age_seconds = max_conflicting_age_seconds
1428
+ end
1429
+
1430
+ # Custom attribute writer method with validation
1431
+ # @param [Object] process_timeout_seconds Value to be assigned
1432
+ def process_timeout_seconds=(process_timeout_seconds)
1433
+ if !process_timeout_seconds.nil? && process_timeout_seconds > 2147483647
1434
+ fail ArgumentError, 'invalid value for "process_timeout_seconds", must be smaller than or equal to 2147483647.'
1435
+ end
1436
+
1437
+ if !process_timeout_seconds.nil? && process_timeout_seconds < -2147483648
1438
+ fail ArgumentError, 'invalid value for "process_timeout_seconds", must be greater than or equal to -2147483648.'
1439
+ end
1440
+
1441
+ @process_timeout_seconds = process_timeout_seconds
1442
+ end
1443
+
1444
+ # Custom attribute writer method with validation
1445
+ # @param [Object] process_termination_grace_period_seconds Value to be assigned
1446
+ def process_termination_grace_period_seconds=(process_termination_grace_period_seconds)
1447
+ if !process_termination_grace_period_seconds.nil? && process_termination_grace_period_seconds > 2147483647
1448
+ fail ArgumentError, 'invalid value for "process_termination_grace_period_seconds", must be smaller than or equal to 2147483647.'
1449
+ end
1450
+
1451
+ if !process_termination_grace_period_seconds.nil? && process_termination_grace_period_seconds < -2147483648
1452
+ fail ArgumentError, 'invalid value for "process_termination_grace_period_seconds", must be greater than or equal to -2147483648.'
1453
+ end
1454
+
1455
+ @process_termination_grace_period_seconds = process_termination_grace_period_seconds
1456
+ end
1457
+
1458
+ # Custom attribute writer method with validation
1459
+ # @param [Object] process_max_retries Value to be assigned
1460
+ def process_max_retries=(process_max_retries)
1461
+ if !process_max_retries.nil? && process_max_retries > 2147483647
1462
+ fail ArgumentError, 'invalid value for "process_max_retries", must be smaller than or equal to 2147483647.'
1463
+ end
1464
+
1465
+ if !process_max_retries.nil? && process_max_retries < -2147483648
1466
+ fail ArgumentError, 'invalid value for "process_max_retries", must be greater than or equal to -2147483648.'
1467
+ end
1468
+
1469
+ @process_max_retries = process_max_retries
1470
+ end
1471
+
1472
+ # Custom attribute writer method with validation
1473
+ # @param [Object] process_retry_delay_seconds Value to be assigned
1474
+ def process_retry_delay_seconds=(process_retry_delay_seconds)
1475
+ if !process_retry_delay_seconds.nil? && process_retry_delay_seconds > 2147483647
1476
+ fail ArgumentError, 'invalid value for "process_retry_delay_seconds", must be smaller than or equal to 2147483647.'
1477
+ end
1478
+
1479
+ if !process_retry_delay_seconds.nil? && process_retry_delay_seconds < 0
1480
+ fail ArgumentError, 'invalid value for "process_retry_delay_seconds", must be greater than or equal to 0.'
1481
+ end
1482
+
1483
+ @process_retry_delay_seconds = process_retry_delay_seconds
1484
+ end
1485
+
1486
+ # Custom attribute writer method with validation
1487
+ # @param [Object] schedule Value to be assigned
1488
+ def schedule=(schedule)
1489
+ if !schedule.nil? && schedule.to_s.length > 1000
1490
+ fail ArgumentError, 'invalid value for "schedule", the character length must be smaller than or equal to 1000.'
1491
+ end
1492
+
1493
+ @schedule = schedule
1494
+ end
1495
+
1496
+ # Custom attribute writer method with validation
1497
+ # @param [Object] heartbeat_interval_seconds Value to be assigned
1498
+ def heartbeat_interval_seconds=(heartbeat_interval_seconds)
1499
+ if !heartbeat_interval_seconds.nil? && heartbeat_interval_seconds > 2147483647
1500
+ fail ArgumentError, 'invalid value for "heartbeat_interval_seconds", must be smaller than or equal to 2147483647.'
1501
+ end
1502
+
1503
+ if !heartbeat_interval_seconds.nil? && heartbeat_interval_seconds < -2147483648
1504
+ fail ArgumentError, 'invalid value for "heartbeat_interval_seconds", must be greater than or equal to -2147483648.'
1505
+ end
1506
+
1507
+ @heartbeat_interval_seconds = heartbeat_interval_seconds
1508
+ end
1509
+
1510
+ # Custom attribute writer method with validation
1511
+ # @param [Object] api_base_url Value to be assigned
1512
+ def api_base_url=(api_base_url)
1513
+ if !api_base_url.nil? && api_base_url.to_s.length > 200
1514
+ fail ArgumentError, 'invalid value for "api_base_url", the character length must be smaller than or equal to 200.'
1515
+ end
1516
+
1517
+ @api_base_url = api_base_url
1518
+ end
1519
+
1520
+ # Custom attribute writer method with validation
1521
+ # @param [Object] api_request_timeout_seconds Value to be assigned
1522
+ def api_request_timeout_seconds=(api_request_timeout_seconds)
1523
+ if !api_request_timeout_seconds.nil? && api_request_timeout_seconds > 2147483647
1524
+ fail ArgumentError, 'invalid value for "api_request_timeout_seconds", must be smaller than or equal to 2147483647.'
1525
+ end
1526
+
1527
+ if !api_request_timeout_seconds.nil? && api_request_timeout_seconds < -2147483648
1528
+ fail ArgumentError, 'invalid value for "api_request_timeout_seconds", must be greater than or equal to -2147483648.'
1529
+ end
1530
+
1531
+ @api_request_timeout_seconds = api_request_timeout_seconds
1532
+ end
1533
+
1534
+ # Custom attribute writer method with validation
1535
+ # @param [Object] api_retry_delay_seconds Value to be assigned
1536
+ def api_retry_delay_seconds=(api_retry_delay_seconds)
1537
+ if !api_retry_delay_seconds.nil? && api_retry_delay_seconds > 2147483647
1538
+ fail ArgumentError, 'invalid value for "api_retry_delay_seconds", must be smaller than or equal to 2147483647.'
1539
+ end
1540
+
1541
+ if !api_retry_delay_seconds.nil? && api_retry_delay_seconds < 0
1542
+ fail ArgumentError, 'invalid value for "api_retry_delay_seconds", must be greater than or equal to 0.'
1543
+ end
1544
+
1545
+ @api_retry_delay_seconds = api_retry_delay_seconds
1546
+ end
1547
+
1548
+ # Custom attribute writer method with validation
1549
+ # @param [Object] api_resume_delay_seconds Value to be assigned
1550
+ def api_resume_delay_seconds=(api_resume_delay_seconds)
1551
+ if !api_resume_delay_seconds.nil? && api_resume_delay_seconds > 2147483647
1552
+ fail ArgumentError, 'invalid value for "api_resume_delay_seconds", must be smaller than or equal to 2147483647.'
1553
+ end
1554
+
1555
+ if !api_resume_delay_seconds.nil? && api_resume_delay_seconds < 0
1556
+ fail ArgumentError, 'invalid value for "api_resume_delay_seconds", must be greater than or equal to 0.'
1557
+ end
1558
+
1559
+ @api_resume_delay_seconds = api_resume_delay_seconds
1560
+ end
1561
+
1562
+ # Custom attribute writer method with validation
1563
+ # @param [Object] api_error_timeout_seconds Value to be assigned
1564
+ def api_error_timeout_seconds=(api_error_timeout_seconds)
1565
+ if !api_error_timeout_seconds.nil? && api_error_timeout_seconds > 2147483647
1566
+ fail ArgumentError, 'invalid value for "api_error_timeout_seconds", must be smaller than or equal to 2147483647.'
1567
+ end
1568
+
1569
+ if !api_error_timeout_seconds.nil? && api_error_timeout_seconds < -2147483648
1570
+ fail ArgumentError, 'invalid value for "api_error_timeout_seconds", must be greater than or equal to -2147483648.'
1571
+ end
1572
+
1573
+ @api_error_timeout_seconds = api_error_timeout_seconds
1574
+ end
1575
+
1576
+ # Custom attribute writer method with validation
1577
+ # @param [Object] api_task_execution_creation_error_timeout_seconds Value to be assigned
1578
+ def api_task_execution_creation_error_timeout_seconds=(api_task_execution_creation_error_timeout_seconds)
1579
+ if !api_task_execution_creation_error_timeout_seconds.nil? && api_task_execution_creation_error_timeout_seconds > 2147483647
1580
+ fail ArgumentError, 'invalid value for "api_task_execution_creation_error_timeout_seconds", must be smaller than or equal to 2147483647.'
1581
+ end
1582
+
1583
+ if !api_task_execution_creation_error_timeout_seconds.nil? && api_task_execution_creation_error_timeout_seconds < -2147483648
1584
+ fail ArgumentError, 'invalid value for "api_task_execution_creation_error_timeout_seconds", must be greater than or equal to -2147483648.'
1585
+ end
1586
+
1587
+ @api_task_execution_creation_error_timeout_seconds = api_task_execution_creation_error_timeout_seconds
1588
+ end
1589
+
1590
+ # Custom attribute writer method with validation
1591
+ # @param [Object] api_task_execution_creation_conflict_timeout_seconds Value to be assigned
1592
+ def api_task_execution_creation_conflict_timeout_seconds=(api_task_execution_creation_conflict_timeout_seconds)
1593
+ if !api_task_execution_creation_conflict_timeout_seconds.nil? && api_task_execution_creation_conflict_timeout_seconds > 2147483647
1594
+ fail ArgumentError, 'invalid value for "api_task_execution_creation_conflict_timeout_seconds", must be smaller than or equal to 2147483647.'
1595
+ end
1596
+
1597
+ if !api_task_execution_creation_conflict_timeout_seconds.nil? && api_task_execution_creation_conflict_timeout_seconds < -2147483648
1598
+ fail ArgumentError, 'invalid value for "api_task_execution_creation_conflict_timeout_seconds", must be greater than or equal to -2147483648.'
1599
+ end
1600
+
1601
+ @api_task_execution_creation_conflict_timeout_seconds = api_task_execution_creation_conflict_timeout_seconds
1602
+ end
1603
+
1604
+ # Custom attribute writer method with validation
1605
+ # @param [Object] api_task_execution_creation_conflict_retry_delay_seconds Value to be assigned
1606
+ def api_task_execution_creation_conflict_retry_delay_seconds=(api_task_execution_creation_conflict_retry_delay_seconds)
1607
+ if !api_task_execution_creation_conflict_retry_delay_seconds.nil? && api_task_execution_creation_conflict_retry_delay_seconds > 2147483647
1608
+ fail ArgumentError, 'invalid value for "api_task_execution_creation_conflict_retry_delay_seconds", must be smaller than or equal to 2147483647.'
1609
+ end
1610
+
1611
+ if !api_task_execution_creation_conflict_retry_delay_seconds.nil? && api_task_execution_creation_conflict_retry_delay_seconds < 0
1612
+ fail ArgumentError, 'invalid value for "api_task_execution_creation_conflict_retry_delay_seconds", must be greater than or equal to 0.'
1613
+ end
1614
+
1615
+ @api_task_execution_creation_conflict_retry_delay_seconds = api_task_execution_creation_conflict_retry_delay_seconds
1616
+ end
1617
+
1618
+ # Custom attribute writer method with validation
1619
+ # @param [Object] api_final_update_timeout_seconds Value to be assigned
1620
+ def api_final_update_timeout_seconds=(api_final_update_timeout_seconds)
1621
+ if !api_final_update_timeout_seconds.nil? && api_final_update_timeout_seconds > 2147483647
1622
+ fail ArgumentError, 'invalid value for "api_final_update_timeout_seconds", must be smaller than or equal to 2147483647.'
1623
+ end
1624
+
1625
+ if !api_final_update_timeout_seconds.nil? && api_final_update_timeout_seconds < -2147483648
1626
+ fail ArgumentError, 'invalid value for "api_final_update_timeout_seconds", must be greater than or equal to -2147483648.'
1627
+ end
1628
+
1629
+ @api_final_update_timeout_seconds = api_final_update_timeout_seconds
1630
+ end
1631
+
1632
+ # Custom attribute writer method with validation
1633
+ # @param [Object] status_update_interval_seconds Value to be assigned
1634
+ def status_update_interval_seconds=(status_update_interval_seconds)
1635
+ if !status_update_interval_seconds.nil? && status_update_interval_seconds > 2147483647
1636
+ fail ArgumentError, 'invalid value for "status_update_interval_seconds", must be smaller than or equal to 2147483647.'
1637
+ end
1638
+
1639
+ if !status_update_interval_seconds.nil? && status_update_interval_seconds < -2147483648
1640
+ fail ArgumentError, 'invalid value for "status_update_interval_seconds", must be greater than or equal to -2147483648.'
1641
+ end
1642
+
1643
+ @status_update_interval_seconds = status_update_interval_seconds
1644
+ end
1645
+
1646
+ # Custom attribute writer method with validation
1647
+ # @param [Object] status_update_port Value to be assigned
1648
+ def status_update_port=(status_update_port)
1649
+ if !status_update_port.nil? && status_update_port > 2147483647
1650
+ fail ArgumentError, 'invalid value for "status_update_port", must be smaller than or equal to 2147483647.'
1651
+ end
1652
+
1653
+ if !status_update_port.nil? && status_update_port < -2147483648
1654
+ fail ArgumentError, 'invalid value for "status_update_port", must be greater than or equal to -2147483648.'
1655
+ end
1656
+
1657
+ @status_update_port = status_update_port
1658
+ end
1659
+
1660
+ # Custom attribute writer method with validation
1661
+ # @param [Object] status_update_message_max_bytes Value to be assigned
1662
+ def status_update_message_max_bytes=(status_update_message_max_bytes)
1663
+ if !status_update_message_max_bytes.nil? && status_update_message_max_bytes > 2147483647
1664
+ fail ArgumentError, 'invalid value for "status_update_message_max_bytes", must be smaller than or equal to 2147483647.'
1665
+ end
1666
+
1667
+ if !status_update_message_max_bytes.nil? && status_update_message_max_bytes < -2147483648
1668
+ fail ArgumentError, 'invalid value for "status_update_message_max_bytes", must be greater than or equal to -2147483648.'
1669
+ end
1670
+
1671
+ @status_update_message_max_bytes = status_update_message_max_bytes
1672
+ end
1673
+
1674
+ # Custom attribute writer method with validation
1675
+ # @param [Object] debug_log_tail Value to be assigned
1676
+ def debug_log_tail=(debug_log_tail)
1677
+ if !debug_log_tail.nil? && debug_log_tail.to_s.length > 5000000
1678
+ fail ArgumentError, 'invalid value for "debug_log_tail", the character length must be smaller than or equal to 5000000.'
1679
+ end
1680
+
1681
+ @debug_log_tail = debug_log_tail
1682
+ end
1683
+
1684
+ # Custom attribute writer method with validation
1685
+ # @param [Object] error_log_tail Value to be assigned
1686
+ def error_log_tail=(error_log_tail)
1687
+ if !error_log_tail.nil? && error_log_tail.to_s.length > 5000000
1688
+ fail ArgumentError, 'invalid value for "error_log_tail", the character length must be smaller than or equal to 5000000.'
1689
+ end
1690
+
1691
+ @error_log_tail = error_log_tail
1692
+ end
1693
+
1694
+ # Checks equality by comparing each attribute.
1695
+ # @param [Object] Object to be compared
1696
+ def ==(o)
1697
+ return true if self.equal?(o)
1698
+ self.class == o.class &&
1699
+ url == o.url &&
1700
+ uuid == o.uuid &&
1701
+ dashboard_url == o.dashboard_url &&
1702
+ infrastructure_website_url == o.infrastructure_website_url &&
1703
+ task == o.task &&
1704
+ task_version_number == o.task_version_number &&
1705
+ task_version_text == o.task_version_text &&
1706
+ task_version_signature == o.task_version_signature &&
1707
+ commit_url == o.commit_url &&
1708
+ other_instance_metadata == o.other_instance_metadata &&
1709
+ hostname == o.hostname &&
1710
+ environment_variables_overrides == o.environment_variables_overrides &&
1711
+ execution_method == o.execution_method &&
1712
+ status == o.status &&
1713
+ started_by == o.started_by &&
1714
+ started_at == o.started_at &&
1715
+ finished_at == o.finished_at &&
1716
+ marked_done_by == o.marked_done_by &&
1717
+ marked_done_at == o.marked_done_at &&
1718
+ marked_outdated_at == o.marked_outdated_at &&
1719
+ killed_by == o.killed_by &&
1720
+ kill_started_at == o.kill_started_at &&
1721
+ kill_finished_at == o.kill_finished_at &&
1722
+ kill_error_code == o.kill_error_code &&
1723
+ stop_reason == o.stop_reason &&
1724
+ last_heartbeat_at == o.last_heartbeat_at &&
1725
+ failed_attempts == o.failed_attempts &&
1726
+ timed_out_attempts == o.timed_out_attempts &&
1727
+ exit_code == o.exit_code &&
1728
+ last_status_message == o.last_status_message &&
1729
+ error_count == o.error_count &&
1730
+ skipped_count == o.skipped_count &&
1731
+ expected_count == o.expected_count &&
1732
+ success_count == o.success_count &&
1733
+ other_runtime_metadata == o.other_runtime_metadata &&
1734
+ current_cpu_units == o.current_cpu_units &&
1735
+ mean_cpu_units == o.mean_cpu_units &&
1736
+ max_cpu_units == o.max_cpu_units &&
1737
+ current_memory_mb == o.current_memory_mb &&
1738
+ mean_memory_mb == o.mean_memory_mb &&
1739
+ max_memory_mb == o.max_memory_mb &&
1740
+ wrapper_version == o.wrapper_version &&
1741
+ wrapper_log_level == o.wrapper_log_level &&
1742
+ deployment == o.deployment &&
1743
+ process_command == o.process_command &&
1744
+ is_service == o.is_service &&
1745
+ task_max_concurrency == o.task_max_concurrency &&
1746
+ max_conflicting_age_seconds == o.max_conflicting_age_seconds &&
1747
+ prevent_offline_execution == o.prevent_offline_execution &&
1748
+ process_timeout_seconds == o.process_timeout_seconds &&
1749
+ process_termination_grace_period_seconds == o.process_termination_grace_period_seconds &&
1750
+ process_max_retries == o.process_max_retries &&
1751
+ process_retry_delay_seconds == o.process_retry_delay_seconds &&
1752
+ schedule == o.schedule &&
1753
+ heartbeat_interval_seconds == o.heartbeat_interval_seconds &&
1754
+ workflow_task_instance_execution == o.workflow_task_instance_execution &&
1755
+ api_base_url == o.api_base_url &&
1756
+ api_request_timeout_seconds == o.api_request_timeout_seconds &&
1757
+ api_retry_delay_seconds == o.api_retry_delay_seconds &&
1758
+ api_resume_delay_seconds == o.api_resume_delay_seconds &&
1759
+ api_error_timeout_seconds == o.api_error_timeout_seconds &&
1760
+ api_task_execution_creation_error_timeout_seconds == o.api_task_execution_creation_error_timeout_seconds &&
1761
+ api_task_execution_creation_conflict_timeout_seconds == o.api_task_execution_creation_conflict_timeout_seconds &&
1762
+ api_task_execution_creation_conflict_retry_delay_seconds == o.api_task_execution_creation_conflict_retry_delay_seconds &&
1763
+ api_final_update_timeout_seconds == o.api_final_update_timeout_seconds &&
1764
+ status_update_interval_seconds == o.status_update_interval_seconds &&
1765
+ status_update_port == o.status_update_port &&
1766
+ status_update_message_max_bytes == o.status_update_message_max_bytes &&
1767
+ debug_log_tail == o.debug_log_tail &&
1768
+ error_log_tail == o.error_log_tail &&
1769
+ embedded_mode == o.embedded_mode &&
1770
+ created_at == o.created_at &&
1771
+ updated_at == o.updated_at
1772
+ end
1773
+
1774
+ # @see the `==` method
1775
+ # @param [Object] Object to be compared
1776
+ def eql?(o)
1777
+ self == o
1778
+ end
1779
+
1780
+ # Calculates hash code according to all attributes.
1781
+ # @return [Integer] Hash code
1782
+ def hash
1783
+ [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
1784
+ end
1785
+
1786
+ # Builds the object from hash
1787
+ # @param [Hash] attributes Model attributes in the form of hash
1788
+ # @return [Object] Returns the model itself
1789
+ def self.build_from_hash(attributes)
1790
+ new.build_from_hash(attributes)
1791
+ end
1792
+
1793
+ # Builds the object from hash
1794
+ # @param [Hash] attributes Model attributes in the form of hash
1795
+ # @return [Object] Returns the model itself
1796
+ def build_from_hash(attributes)
1797
+ return nil unless attributes.is_a?(Hash)
1798
+ self.class.openapi_types.each_pair do |key, type|
1799
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
1800
+ self.send("#{key}=", nil)
1801
+ elsif type =~ /\AArray<(.*)>/i
1802
+ # check to ensure the input is an array given that the attribute
1803
+ # is documented as an array but the input is not
1804
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
1805
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
1806
+ end
1807
+ elsif !attributes[self.class.attribute_map[key]].nil?
1808
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
1809
+ end
1810
+ end
1811
+
1812
+ self
1813
+ end
1814
+
1815
+ # Deserializes the data based on type
1816
+ # @param string type Data type
1817
+ # @param string value Value to be deserialized
1818
+ # @return [Object] Deserialized data
1819
+ def _deserialize(type, value)
1820
+ case type.to_sym
1821
+ when :Time
1822
+ Time.parse(value)
1823
+ when :Date
1824
+ Date.parse(value)
1825
+ when :String
1826
+ value.to_s
1827
+ when :Integer
1828
+ value.to_i
1829
+ when :Float
1830
+ value.to_f
1831
+ when :Boolean
1832
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
1833
+ true
1834
+ else
1835
+ false
1836
+ end
1837
+ when :Object
1838
+ # generic object (usually a Hash), return directly
1839
+ value
1840
+ when /\AArray<(?<inner_type>.+)>\z/
1841
+ inner_type = Regexp.last_match[:inner_type]
1842
+ value.map { |v| _deserialize(inner_type, v) }
1843
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
1844
+ k_type = Regexp.last_match[:k_type]
1845
+ v_type = Regexp.last_match[:v_type]
1846
+ {}.tap do |hash|
1847
+ value.each do |k, v|
1848
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
1849
+ end
1850
+ end
1851
+ else # model
1852
+ # models (e.g. Pet) or oneOf
1853
+ klass = CloudReactorAPIClient.const_get(type)
1854
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
1855
+ end
1856
+ end
1857
+
1858
+ # Returns the string representation of the object
1859
+ # @return [String] String presentation of the object
1860
+ def to_s
1861
+ to_hash.to_s
1862
+ end
1863
+
1864
+ # to_body is an alias to to_hash (backward compatibility)
1865
+ # @return [Hash] Returns the object in the form of hash
1866
+ def to_body
1867
+ to_hash
1868
+ end
1869
+
1870
+ # Returns the object in the form of hash
1871
+ # @return [Hash] Returns the object in the form of hash
1872
+ def to_hash
1873
+ hash = {}
1874
+ self.class.attribute_map.each_pair do |attr, param|
1875
+ value = self.send(attr)
1876
+ if value.nil?
1877
+ is_nullable = self.class.openapi_nullable.include?(attr)
1878
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
1879
+ end
1880
+
1881
+ hash[param] = _to_hash(value)
1882
+ end
1883
+ hash
1884
+ end
1885
+
1886
+ # Outputs non-array value in the form of hash
1887
+ # For object, use to_hash. Otherwise, just return the value
1888
+ # @param [Object] value Any valid value
1889
+ # @return [Hash] Returns the value in the form of hash
1890
+ def _to_hash(value)
1891
+ if value.is_a?(Array)
1892
+ value.compact.map { |v| _to_hash(v) }
1893
+ elsif value.is_a?(Hash)
1894
+ {}.tap do |hash|
1895
+ value.each { |k, v| hash[k] = _to_hash(v) }
1896
+ end
1897
+ elsif value.respond_to? :to_hash
1898
+ value.to_hash
1899
+ else
1900
+ value
1901
+ end
1902
+ end
1903
+ end
1904
+ end