shipeasy-sdk 4.2.0 → 4.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. checksums.yaml +4 -4
  2. data/lib/shipeasy/sdk/version.rb +1 -1
  3. data/lib/shipeasy_admin/api/flags_api.rb +9 -9
  4. data/lib/shipeasy_admin/api/killswitch_api.rb +1 -1
  5. data/lib/shipeasy_admin/api/ops_api.rb +127 -1
  6. data/lib/shipeasy_admin/api_client.rb +1 -1
  7. data/lib/shipeasy_admin/api_error.rb +1 -1
  8. data/lib/shipeasy_admin/api_model_base.rb +1 -1
  9. data/lib/shipeasy_admin/configuration.rb +1 -1
  10. data/lib/shipeasy_admin/models/add_to_gate_whitelist_request.rb +1 -1
  11. data/lib/shipeasy_admin/models/connector_data.rb +157 -0
  12. data/lib/shipeasy_admin/models/create_public_bug_request.rb +1 -1
  13. data/lib/shipeasy_admin/models/create_public_feature_request_request.rb +1 -1
  14. data/lib/shipeasy_admin/models/create_public_ticket_response.rb +1 -1
  15. data/lib/shipeasy_admin/models/env.rb +1 -1
  16. data/lib/shipeasy_admin/models/error.rb +1 -1
  17. data/lib/shipeasy_admin/models/error_code.rb +1 -1
  18. data/lib/shipeasy_admin/models/gate_whitelist.rb +1 -1
  19. data/lib/shipeasy_admin/models/gate_whitelist_attr.rb +1 -1
  20. data/lib/shipeasy_admin/models/github_connector_data.rb +170 -0
  21. data/lib/shipeasy_admin/models/github_connector_data_issue.rb +257 -0
  22. data/lib/shipeasy_admin/models/github_pr_link.rb +319 -0
  23. data/lib/shipeasy_admin/models/killswitch_value.rb +1 -1
  24. data/lib/shipeasy_admin/models/list_ops_items_response_inner.rb +593 -0
  25. data/lib/shipeasy_admin/models/measure_plan_resource.rb +228 -0
  26. data/lib/shipeasy_admin/models/measure_plan_step.rb +211 -0
  27. data/lib/shipeasy_admin/models/notification_target.rb +1 -1
  28. data/lib/shipeasy_admin/models/notification_target_slack_channel.rb +1 -1
  29. data/lib/shipeasy_admin/models/ops_alert_context.rb +350 -0
  30. data/lib/shipeasy_admin/models/ops_alert_metric_summary.rb +222 -0
  31. data/lib/shipeasy_admin/models/ops_alert_rule_summary.rb +298 -0
  32. data/lib/shipeasy_admin/models/ops_browser_context.rb +172 -0
  33. data/lib/shipeasy_admin/models/ops_error_context.rb +429 -0
  34. data/lib/shipeasy_admin/models/ops_investigation_state.rb +48 -0
  35. data/lib/shipeasy_admin/models/ops_item_context.rb +184 -0
  36. data/lib/shipeasy_admin/models/ops_item_context_error_chart.rb +222 -0
  37. data/lib/shipeasy_admin/models/ops_item_context_error_chart_series_inner.rb +193 -0
  38. data/lib/shipeasy_admin/models/ops_item_owner.rb +163 -0
  39. data/lib/shipeasy_admin/models/ops_item_owner_agent.rb +255 -0
  40. data/lib/shipeasy_admin/models/ops_item_owner_user.rb +206 -0
  41. data/lib/shipeasy_admin/models/ops_item_priority.rb +1 -1
  42. data/lib/shipeasy_admin/models/ops_item_status.rb +1 -1
  43. data/lib/shipeasy_admin/models/ops_measure_plan_context.rb +220 -0
  44. data/lib/shipeasy_admin/models/ops_run.rb +309 -0
  45. data/lib/shipeasy_admin/models/ops_run_action.rb +42 -0
  46. data/lib/shipeasy_admin/models/ops_run_action_or_null.rb +146 -0
  47. data/lib/shipeasy_admin/models/remove_from_gate_whitelist_request.rb +1 -1
  48. data/lib/shipeasy_admin/models/set_gate_whitelist_request.rb +1 -1
  49. data/lib/shipeasy_admin/models/slack_connector_data.rb +148 -0
  50. data/lib/shipeasy_admin/models/slack_connector_data_message.rb +203 -0
  51. data/lib/shipeasy_admin/models/toggle_killswitch_request.rb +1 -1
  52. data/lib/shipeasy_admin/models/toggle_killswitch_response.rb +1 -1
  53. data/lib/shipeasy_admin/version.rb +1 -1
  54. data/lib/shipeasy_admin.rb +26 -1
  55. metadata +31 -6
@@ -0,0 +1,593 @@
1
+ =begin
2
+ #Shipeasy Admin API (server-SDK surface)
3
+
4
+ #The slice of the Shipeasy admin API that the published server SDKs expose as their optional `AdminClient`. Authenticate with an admin SDK key (`Authorization: Bearer sdk_admin_…`) and scope every request to a project via the `X-Project-Id` header. Four capabilities, nothing else: - **List the ops queue** — read the project's tickets, filtered by type, status, priority, owner, reporter (`reporter`) and close time (`closedSince`). - **File a public ticket** — a bug or a feature request onto the project's ops queue. - **Toggle a kill switch** — flip the switch itself, or one of its named sub-switches, on one environment. - **Manage a flag's whitelist** — read, replace, add to, or remove from the allowlist that admits specific identities ahead of every targeting rule. Everything else in the admin API is reachable through the Shipeasy CLI and MCP server, which speak the complete contract (`openapi.yaml`).
5
+
6
+ The version of the OpenAPI document: 2.0.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.23.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module Shipeasy::Admin::Generated
17
+ # One queue item — any type — plus its resolved `owner` and run state.
18
+ class ListOpsItemsResponseInner < ApiModelBase
19
+ # Stable opaque item id.
20
+ attr_accessor :id
21
+
22
+ # Per-project item number (the `#7` handle), or `null` if unnumbered.
23
+ attr_accessor :number
24
+
25
+ # Queue item type. `bug` and `feature_request` are user-fileable; `error`, `alert`, and `measure_plan` tickets are auto-filed by the platform (a tracked production error, a metric-threshold alert, and an assistant-proposed measurement plan respectively).
26
+ attr_accessor :type
27
+
28
+ # One-line item title.
29
+ attr_accessor :title
30
+
31
+ attr_accessor :status
32
+
33
+ # Triage priority, or `null` if not yet set.
34
+ attr_accessor :priority
35
+
36
+ # Source reference for auto-filed tickets (e.g. an error fingerprint).
37
+ attr_accessor :source_ref
38
+
39
+ # Where automation has taken this item in the investigation lifecycle (see `OpsInvestigationState`). Optional — absent/`null` on rows filed before the field existed; derive from `status`/`type` in that case.
40
+ attr_accessor :investigation_state
41
+
42
+ # How the item was filed: `team` (a human admin/teammate — bug/feature) or `system` (auto-filed — error/alert/measure_plan).
43
+ attr_accessor :source
44
+
45
+ # Reporter email (bug/feature), or `null`.
46
+ attr_accessor :reporter_email
47
+
48
+ # Reproduction steps — populated for `bug`, empty string otherwise.
49
+ attr_accessor :steps_to_reproduce
50
+
51
+ # What actually happened — `bug` only, empty string otherwise.
52
+ attr_accessor :actual_result
53
+
54
+ # What was expected — `bug` only, empty string otherwise.
55
+ attr_accessor :expected_result
56
+
57
+ # Feature description — populated for `feature_request`, empty string otherwise.
58
+ attr_accessor :description
59
+
60
+ # Feature use case — `feature_request` only, empty string otherwise.
61
+ attr_accessor :use_case
62
+
63
+ # The RAW stored capture context on the row — NOT hydrated: list rows carry only what was captured at file time (e.g. `context.browser` for bug/feature, the trigger subset for auto-filed tickets). The live `error`/`alert` readings and `errorChart` are added only by the single-item read (`GET /api/admin/ops/{handle}`). `null` when nothing was captured.
64
+ attr_accessor :context
65
+
66
+ # Per-connector linkage recorded for this item, keyed by connector provider. `null` if no connector has touched the item.
67
+ attr_accessor :connector_data
68
+
69
+ # Per-item completion-notification target, or `null` (falls back to the project default).
70
+ attr_accessor :notify
71
+
72
+ # The PERSON owner — a `users.id` (resolved into `owner.user`), or `null` when unassigned.
73
+ attr_accessor :assignee_id
74
+
75
+ # The AGENT owner when it is a connected trigger connector — a `connectors` row id (resolved into `owner.agent`), or `null`. Mutually exclusive with `assigneeAgent`.
76
+ attr_accessor :assignee_connector_id
77
+
78
+ # The AGENT owner when it is a built-in hosted Shipeasy agent — currently only `jarvis` — or `null`. Mutually exclusive with `assigneeConnectorId`.
79
+ attr_accessor :assignee_agent
80
+
81
+ attr_accessor :owner
82
+
83
+ # The currently OPEN run on this item (someone acked it and is actively working — the cockpit's live working indicator), or `null` when nothing is in flight.
84
+ attr_accessor :run
85
+
86
+ # The most recently COMPLETED run (the run result — final action, PR, duration), excluding superseded runs; `null` when no run has completed yet.
87
+ attr_accessor :last_run
88
+
89
+ # ISO-8601 creation timestamp.
90
+ attr_accessor :created_at
91
+
92
+ # ISO-8601 last-update timestamp.
93
+ attr_accessor :updated_at
94
+
95
+ # ISO-8601 timestamp the item was closed (`resolved` or `wont_fix`), or `null` while it is open.
96
+ attr_accessor :closed_at
97
+
98
+ class EnumAttributeValidator
99
+ attr_reader :datatype
100
+ attr_reader :allowable_values
101
+
102
+ def initialize(datatype, allowable_values)
103
+ @allowable_values = allowable_values.map do |value|
104
+ case datatype.to_s
105
+ when /Integer/i
106
+ value.to_i
107
+ when /Float/i
108
+ value.to_f
109
+ else
110
+ value
111
+ end
112
+ end
113
+ end
114
+
115
+ def valid?(value)
116
+ !value || allowable_values.include?(value)
117
+ end
118
+ end
119
+
120
+ # Attribute mapping from ruby-style variable name to JSON key.
121
+ def self.attribute_map
122
+ {
123
+ :'id' => :'id',
124
+ :'number' => :'number',
125
+ :'type' => :'type',
126
+ :'title' => :'title',
127
+ :'status' => :'status',
128
+ :'priority' => :'priority',
129
+ :'source_ref' => :'sourceRef',
130
+ :'investigation_state' => :'investigationState',
131
+ :'source' => :'source',
132
+ :'reporter_email' => :'reporterEmail',
133
+ :'steps_to_reproduce' => :'stepsToReproduce',
134
+ :'actual_result' => :'actualResult',
135
+ :'expected_result' => :'expectedResult',
136
+ :'description' => :'description',
137
+ :'use_case' => :'useCase',
138
+ :'context' => :'context',
139
+ :'connector_data' => :'connectorData',
140
+ :'notify' => :'notify',
141
+ :'assignee_id' => :'assigneeId',
142
+ :'assignee_connector_id' => :'assigneeConnectorId',
143
+ :'assignee_agent' => :'assigneeAgent',
144
+ :'owner' => :'owner',
145
+ :'run' => :'run',
146
+ :'last_run' => :'lastRun',
147
+ :'created_at' => :'createdAt',
148
+ :'updated_at' => :'updatedAt',
149
+ :'closed_at' => :'closedAt'
150
+ }
151
+ end
152
+
153
+ # Returns attribute mapping this model knows about
154
+ def self.acceptable_attribute_map
155
+ attribute_map
156
+ end
157
+
158
+ # Returns all the JSON keys this model knows about
159
+ def self.acceptable_attributes
160
+ acceptable_attribute_map.values
161
+ end
162
+
163
+ # Attribute type mapping.
164
+ def self.openapi_types
165
+ {
166
+ :'id' => :'String',
167
+ :'number' => :'Float',
168
+ :'type' => :'String',
169
+ :'title' => :'String',
170
+ :'status' => :'OpsItemStatus',
171
+ :'priority' => :'OpsItemPriority',
172
+ :'source_ref' => :'String',
173
+ :'investigation_state' => :'OpsInvestigationState',
174
+ :'source' => :'String',
175
+ :'reporter_email' => :'String',
176
+ :'steps_to_reproduce' => :'String',
177
+ :'actual_result' => :'String',
178
+ :'expected_result' => :'String',
179
+ :'description' => :'String',
180
+ :'use_case' => :'String',
181
+ :'context' => :'OpsItemContext',
182
+ :'connector_data' => :'ConnectorData',
183
+ :'notify' => :'NotificationTarget',
184
+ :'assignee_id' => :'String',
185
+ :'assignee_connector_id' => :'String',
186
+ :'assignee_agent' => :'String',
187
+ :'owner' => :'OpsItemOwner',
188
+ :'run' => :'OpsRun',
189
+ :'last_run' => :'OpsRun',
190
+ :'created_at' => :'String',
191
+ :'updated_at' => :'String',
192
+ :'closed_at' => :'String'
193
+ }
194
+ end
195
+
196
+ # List of attributes with nullable: true
197
+ def self.openapi_nullable
198
+ Set.new([
199
+ :'number',
200
+ :'priority',
201
+ :'source_ref',
202
+ :'investigation_state',
203
+ :'reporter_email',
204
+ :'context',
205
+ :'connector_data',
206
+ :'notify',
207
+ :'assignee_id',
208
+ :'assignee_connector_id',
209
+ :'assignee_agent',
210
+ :'run',
211
+ :'last_run',
212
+ :'closed_at'
213
+ ])
214
+ end
215
+
216
+ # Initializes the object
217
+ # @param [Hash] attributes Model attributes in the form of hash
218
+ def initialize(attributes = {})
219
+ if (!attributes.is_a?(Hash))
220
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Shipeasy::Admin::Generated::ListOpsItemsResponseInner` initialize method"
221
+ end
222
+
223
+ # check to see if the attribute exists and convert string to symbol for hash key
224
+ acceptable_attribute_map = self.class.acceptable_attribute_map
225
+ attributes = attributes.each_with_object({}) { |(k, v), h|
226
+ if (!acceptable_attribute_map.key?(k.to_sym))
227
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Shipeasy::Admin::Generated::ListOpsItemsResponseInner`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
228
+ end
229
+ h[k.to_sym] = v
230
+ }
231
+
232
+ if attributes.key?(:'id')
233
+ self.id = attributes[:'id']
234
+ else
235
+ self.id = nil
236
+ end
237
+
238
+ if attributes.key?(:'number')
239
+ self.number = attributes[:'number']
240
+ else
241
+ self.number = nil
242
+ end
243
+
244
+ if attributes.key?(:'type')
245
+ self.type = attributes[:'type']
246
+ else
247
+ self.type = nil
248
+ end
249
+
250
+ if attributes.key?(:'title')
251
+ self.title = attributes[:'title']
252
+ else
253
+ self.title = nil
254
+ end
255
+
256
+ if attributes.key?(:'status')
257
+ self.status = attributes[:'status']
258
+ else
259
+ self.status = nil
260
+ end
261
+
262
+ if attributes.key?(:'priority')
263
+ self.priority = attributes[:'priority']
264
+ else
265
+ self.priority = nil
266
+ end
267
+
268
+ if attributes.key?(:'source_ref')
269
+ self.source_ref = attributes[:'source_ref']
270
+ end
271
+
272
+ if attributes.key?(:'investigation_state')
273
+ self.investigation_state = attributes[:'investigation_state']
274
+ end
275
+
276
+ if attributes.key?(:'source')
277
+ self.source = attributes[:'source']
278
+ else
279
+ self.source = nil
280
+ end
281
+
282
+ if attributes.key?(:'reporter_email')
283
+ self.reporter_email = attributes[:'reporter_email']
284
+ end
285
+
286
+ if attributes.key?(:'steps_to_reproduce')
287
+ self.steps_to_reproduce = attributes[:'steps_to_reproduce']
288
+ end
289
+
290
+ if attributes.key?(:'actual_result')
291
+ self.actual_result = attributes[:'actual_result']
292
+ end
293
+
294
+ if attributes.key?(:'expected_result')
295
+ self.expected_result = attributes[:'expected_result']
296
+ end
297
+
298
+ if attributes.key?(:'description')
299
+ self.description = attributes[:'description']
300
+ end
301
+
302
+ if attributes.key?(:'use_case')
303
+ self.use_case = attributes[:'use_case']
304
+ end
305
+
306
+ if attributes.key?(:'context')
307
+ self.context = attributes[:'context']
308
+ end
309
+
310
+ if attributes.key?(:'connector_data')
311
+ self.connector_data = attributes[:'connector_data']
312
+ end
313
+
314
+ if attributes.key?(:'notify')
315
+ self.notify = attributes[:'notify']
316
+ end
317
+
318
+ if attributes.key?(:'assignee_id')
319
+ self.assignee_id = attributes[:'assignee_id']
320
+ end
321
+
322
+ if attributes.key?(:'assignee_connector_id')
323
+ self.assignee_connector_id = attributes[:'assignee_connector_id']
324
+ end
325
+
326
+ if attributes.key?(:'assignee_agent')
327
+ self.assignee_agent = attributes[:'assignee_agent']
328
+ end
329
+
330
+ if attributes.key?(:'owner')
331
+ self.owner = attributes[:'owner']
332
+ else
333
+ self.owner = nil
334
+ end
335
+
336
+ if attributes.key?(:'run')
337
+ self.run = attributes[:'run']
338
+ else
339
+ self.run = nil
340
+ end
341
+
342
+ if attributes.key?(:'last_run')
343
+ self.last_run = attributes[:'last_run']
344
+ else
345
+ self.last_run = nil
346
+ end
347
+
348
+ if attributes.key?(:'created_at')
349
+ self.created_at = attributes[:'created_at']
350
+ else
351
+ self.created_at = nil
352
+ end
353
+
354
+ if attributes.key?(:'updated_at')
355
+ self.updated_at = attributes[:'updated_at']
356
+ else
357
+ self.updated_at = nil
358
+ end
359
+
360
+ if attributes.key?(:'closed_at')
361
+ self.closed_at = attributes[:'closed_at']
362
+ else
363
+ self.closed_at = nil
364
+ end
365
+ end
366
+
367
+ # Show invalid properties with the reasons. Usually used together with valid?
368
+ # @return Array for valid properties with the reasons
369
+ def list_invalid_properties
370
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
371
+ invalid_properties = Array.new
372
+ if @id.nil?
373
+ invalid_properties.push('invalid value for "id", id cannot be nil.')
374
+ end
375
+
376
+ if @type.nil?
377
+ invalid_properties.push('invalid value for "type", type cannot be nil.')
378
+ end
379
+
380
+ if @title.nil?
381
+ invalid_properties.push('invalid value for "title", title cannot be nil.')
382
+ end
383
+
384
+ if @status.nil?
385
+ invalid_properties.push('invalid value for "status", status cannot be nil.')
386
+ end
387
+
388
+ if @source.nil?
389
+ invalid_properties.push('invalid value for "source", source cannot be nil.')
390
+ end
391
+
392
+ if @owner.nil?
393
+ invalid_properties.push('invalid value for "owner", owner cannot be nil.')
394
+ end
395
+
396
+ if @created_at.nil?
397
+ invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
398
+ end
399
+
400
+ if @updated_at.nil?
401
+ invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
402
+ end
403
+
404
+ invalid_properties
405
+ end
406
+
407
+ # Check to see if the all the properties in the model are valid
408
+ # @return true if the model is valid
409
+ def valid?
410
+ warn '[DEPRECATED] the `valid?` method is obsolete'
411
+ return false if @id.nil?
412
+ return false if @type.nil?
413
+ type_validator = EnumAttributeValidator.new('String', ["bug", "feature_request", "error", "alert", "measure_plan"])
414
+ return false unless type_validator.valid?(@type)
415
+ return false if @title.nil?
416
+ return false if @status.nil?
417
+ return false if @source.nil?
418
+ source_validator = EnumAttributeValidator.new('String', ["team", "system"])
419
+ return false unless source_validator.valid?(@source)
420
+ return false if @owner.nil?
421
+ return false if @created_at.nil?
422
+ return false if @updated_at.nil?
423
+ true
424
+ end
425
+
426
+ # Custom attribute writer method with validation
427
+ # @param [Object] id Value to be assigned
428
+ def id=(id)
429
+ if id.nil?
430
+ fail ArgumentError, 'id cannot be nil'
431
+ end
432
+
433
+ @id = id
434
+ end
435
+
436
+ # Custom attribute writer method checking allowed values (enum).
437
+ # @param [Object] type Object to be assigned
438
+ def type=(type)
439
+ validator = EnumAttributeValidator.new('String', ["bug", "feature_request", "error", "alert", "measure_plan"])
440
+ unless validator.valid?(type)
441
+ fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}."
442
+ end
443
+ @type = type
444
+ end
445
+
446
+ # Custom attribute writer method with validation
447
+ # @param [Object] title Value to be assigned
448
+ def title=(title)
449
+ if title.nil?
450
+ fail ArgumentError, 'title cannot be nil'
451
+ end
452
+
453
+ @title = title
454
+ end
455
+
456
+ # Custom attribute writer method with validation
457
+ # @param [Object] status Value to be assigned
458
+ def status=(status)
459
+ if status.nil?
460
+ fail ArgumentError, 'status cannot be nil'
461
+ end
462
+
463
+ @status = status
464
+ end
465
+
466
+ # Custom attribute writer method checking allowed values (enum).
467
+ # @param [Object] source Object to be assigned
468
+ def source=(source)
469
+ validator = EnumAttributeValidator.new('String', ["team", "system"])
470
+ unless validator.valid?(source)
471
+ fail ArgumentError, "invalid value for \"source\", must be one of #{validator.allowable_values}."
472
+ end
473
+ @source = source
474
+ end
475
+
476
+ # Custom attribute writer method with validation
477
+ # @param [Object] owner Value to be assigned
478
+ def owner=(owner)
479
+ if owner.nil?
480
+ fail ArgumentError, 'owner cannot be nil'
481
+ end
482
+
483
+ @owner = owner
484
+ end
485
+
486
+ # Custom attribute writer method with validation
487
+ # @param [Object] created_at Value to be assigned
488
+ def created_at=(created_at)
489
+ if created_at.nil?
490
+ fail ArgumentError, 'created_at cannot be nil'
491
+ end
492
+
493
+ @created_at = created_at
494
+ end
495
+
496
+ # Custom attribute writer method with validation
497
+ # @param [Object] updated_at Value to be assigned
498
+ def updated_at=(updated_at)
499
+ if updated_at.nil?
500
+ fail ArgumentError, 'updated_at cannot be nil'
501
+ end
502
+
503
+ @updated_at = updated_at
504
+ end
505
+
506
+ # Checks equality by comparing each attribute.
507
+ # @param [Object] Object to be compared
508
+ def ==(o)
509
+ return true if self.equal?(o)
510
+ self.class == o.class &&
511
+ id == o.id &&
512
+ number == o.number &&
513
+ type == o.type &&
514
+ title == o.title &&
515
+ status == o.status &&
516
+ priority == o.priority &&
517
+ source_ref == o.source_ref &&
518
+ investigation_state == o.investigation_state &&
519
+ source == o.source &&
520
+ reporter_email == o.reporter_email &&
521
+ steps_to_reproduce == o.steps_to_reproduce &&
522
+ actual_result == o.actual_result &&
523
+ expected_result == o.expected_result &&
524
+ description == o.description &&
525
+ use_case == o.use_case &&
526
+ context == o.context &&
527
+ connector_data == o.connector_data &&
528
+ notify == o.notify &&
529
+ assignee_id == o.assignee_id &&
530
+ assignee_connector_id == o.assignee_connector_id &&
531
+ assignee_agent == o.assignee_agent &&
532
+ owner == o.owner &&
533
+ run == o.run &&
534
+ last_run == o.last_run &&
535
+ created_at == o.created_at &&
536
+ updated_at == o.updated_at &&
537
+ closed_at == o.closed_at
538
+ end
539
+
540
+ # @see the `==` method
541
+ # @param [Object] Object to be compared
542
+ def eql?(o)
543
+ self == o
544
+ end
545
+
546
+ # Calculates hash code according to all attributes.
547
+ # @return [Integer] Hash code
548
+ def hash
549
+ [id, number, type, title, status, priority, source_ref, investigation_state, source, reporter_email, steps_to_reproduce, actual_result, expected_result, description, use_case, context, connector_data, notify, assignee_id, assignee_connector_id, assignee_agent, owner, run, last_run, created_at, updated_at, closed_at].hash
550
+ end
551
+
552
+ # Builds the object from hash
553
+ # @param [Hash] attributes Model attributes in the form of hash
554
+ # @return [Object] Returns the model itself
555
+ def self.build_from_hash(attributes)
556
+ return nil unless attributes.is_a?(Hash)
557
+ attributes = attributes.transform_keys(&:to_sym)
558
+ transformed_hash = {}
559
+ openapi_types.each_pair do |key, type|
560
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
561
+ transformed_hash["#{key}"] = nil
562
+ elsif type =~ /\AArray<(.*)>/i
563
+ # check to ensure the input is an array given that the attribute
564
+ # is documented as an array but the input is not
565
+ if attributes[attribute_map[key]].is_a?(Array)
566
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
567
+ end
568
+ elsif !attributes[attribute_map[key]].nil?
569
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
570
+ end
571
+ end
572
+ new(transformed_hash)
573
+ end
574
+
575
+ # Returns the object in the form of hash
576
+ # @return [Hash] Returns the object in the form of hash
577
+ def to_hash
578
+ hash = {}
579
+ self.class.attribute_map.each_pair do |attr, param|
580
+ value = self.send(attr)
581
+ if value.nil?
582
+ is_nullable = self.class.openapi_nullable.include?(attr)
583
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
584
+ end
585
+
586
+ hash[param] = _to_hash(value)
587
+ end
588
+ hash
589
+ end
590
+
591
+ end
592
+
593
+ end