incident_io_api 2.3.0 → 2.4.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.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 36e97f20a50ab2f1c2e1bfe40a82174d659a2d626a79d589297a1a005f47df7a
|
|
4
|
+
data.tar.gz: 2ea6771fcd28b45d7c467a05048992f343de09a62527fda74a9d05b83d736818
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 443c01e06ac5fcecfdab4e397fb9f4eb96c9fc98fd902e62bca9f40ba16175d22860b9ff1669ae42fbccc7815501a6268d1127ae4bda2af4f80ef216289c48f4
|
|
7
|
+
data.tar.gz: a790052ffbf5c99c3083a55ce2fcb8a822dfc3600b3994f236e3b9bd22328139f2802eef99a0f4f4213ec24d06dd4bec929ae8955a4ec2ae06a8fe61a6b05253
|
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#incident.io
|
|
3
|
+
|
|
4
|
+
#Ruby client for the incident.io API.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.25.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module IncidentIo
|
|
17
|
+
class IncidentDebriefV2 < ApiModelBase
|
|
18
|
+
# When the debrief is scheduled to end
|
|
19
|
+
attr_accessor :end_at
|
|
20
|
+
|
|
21
|
+
# Unique ID of the incident debrief
|
|
22
|
+
attr_accessor :id
|
|
23
|
+
|
|
24
|
+
# When the debrief is scheduled to start
|
|
25
|
+
attr_accessor :start_at
|
|
26
|
+
|
|
27
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
28
|
+
def self.attribute_map
|
|
29
|
+
{
|
|
30
|
+
:'end_at' => :'end_at',
|
|
31
|
+
:'id' => :'id',
|
|
32
|
+
:'start_at' => :'start_at'
|
|
33
|
+
}
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
# Returns attribute mapping this model knows about
|
|
37
|
+
def self.acceptable_attribute_map
|
|
38
|
+
attribute_map
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
# Returns all the JSON keys this model knows about
|
|
42
|
+
def self.acceptable_attributes
|
|
43
|
+
acceptable_attribute_map.values
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
# Attribute type mapping.
|
|
47
|
+
def self.openapi_types
|
|
48
|
+
{
|
|
49
|
+
:'end_at' => :'Time',
|
|
50
|
+
:'id' => :'String',
|
|
51
|
+
:'start_at' => :'Time'
|
|
52
|
+
}
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
# List of attributes with nullable: true
|
|
56
|
+
def self.openapi_nullable
|
|
57
|
+
Set.new([
|
|
58
|
+
])
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
# Initializes the object
|
|
62
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
63
|
+
def initialize(attributes = {})
|
|
64
|
+
if (!attributes.is_a?(Hash))
|
|
65
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `IncidentIo::IncidentDebriefV2` initialize method"
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
69
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
70
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
71
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
72
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `IncidentIo::IncidentDebriefV2`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
73
|
+
end
|
|
74
|
+
h[k.to_sym] = v
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
if attributes.key?(:'end_at')
|
|
78
|
+
self.end_at = attributes[:'end_at']
|
|
79
|
+
else
|
|
80
|
+
self.end_at = nil
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
if attributes.key?(:'id')
|
|
84
|
+
self.id = attributes[:'id']
|
|
85
|
+
else
|
|
86
|
+
self.id = nil
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
if attributes.key?(:'start_at')
|
|
90
|
+
self.start_at = attributes[:'start_at']
|
|
91
|
+
else
|
|
92
|
+
self.start_at = nil
|
|
93
|
+
end
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
97
|
+
# @return Array for valid properties with the reasons
|
|
98
|
+
def list_invalid_properties
|
|
99
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
100
|
+
invalid_properties = Array.new
|
|
101
|
+
if @end_at.nil?
|
|
102
|
+
invalid_properties.push('invalid value for "end_at", end_at cannot be nil.')
|
|
103
|
+
end
|
|
104
|
+
|
|
105
|
+
if @id.nil?
|
|
106
|
+
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
if @start_at.nil?
|
|
110
|
+
invalid_properties.push('invalid value for "start_at", start_at cannot be nil.')
|
|
111
|
+
end
|
|
112
|
+
|
|
113
|
+
invalid_properties
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
# Check to see if the all the properties in the model are valid
|
|
117
|
+
# @return true if the model is valid
|
|
118
|
+
def valid?
|
|
119
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
120
|
+
return false if @end_at.nil?
|
|
121
|
+
return false if @id.nil?
|
|
122
|
+
return false if @start_at.nil?
|
|
123
|
+
true
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
# Custom attribute writer method with validation
|
|
127
|
+
# @param [Object] end_at Value to be assigned
|
|
128
|
+
def end_at=(end_at)
|
|
129
|
+
if end_at.nil?
|
|
130
|
+
fail ArgumentError, 'end_at cannot be nil'
|
|
131
|
+
end
|
|
132
|
+
|
|
133
|
+
@end_at = end_at
|
|
134
|
+
end
|
|
135
|
+
|
|
136
|
+
# Custom attribute writer method with validation
|
|
137
|
+
# @param [Object] id Value to be assigned
|
|
138
|
+
def id=(id)
|
|
139
|
+
if id.nil?
|
|
140
|
+
fail ArgumentError, 'id cannot be nil'
|
|
141
|
+
end
|
|
142
|
+
|
|
143
|
+
@id = id
|
|
144
|
+
end
|
|
145
|
+
|
|
146
|
+
# Custom attribute writer method with validation
|
|
147
|
+
# @param [Object] start_at Value to be assigned
|
|
148
|
+
def start_at=(start_at)
|
|
149
|
+
if start_at.nil?
|
|
150
|
+
fail ArgumentError, 'start_at cannot be nil'
|
|
151
|
+
end
|
|
152
|
+
|
|
153
|
+
@start_at = start_at
|
|
154
|
+
end
|
|
155
|
+
|
|
156
|
+
# Checks equality by comparing each attribute.
|
|
157
|
+
# @param [Object] Object to be compared
|
|
158
|
+
def ==(o)
|
|
159
|
+
return true if self.equal?(o)
|
|
160
|
+
self.class == o.class &&
|
|
161
|
+
end_at == o.end_at &&
|
|
162
|
+
id == o.id &&
|
|
163
|
+
start_at == o.start_at
|
|
164
|
+
end
|
|
165
|
+
|
|
166
|
+
# @see the `==` method
|
|
167
|
+
# @param [Object] Object to be compared
|
|
168
|
+
def eql?(o)
|
|
169
|
+
self == o
|
|
170
|
+
end
|
|
171
|
+
|
|
172
|
+
# Calculates hash code according to all attributes.
|
|
173
|
+
# @return [Integer] Hash code
|
|
174
|
+
def hash
|
|
175
|
+
[end_at, id, start_at].hash
|
|
176
|
+
end
|
|
177
|
+
|
|
178
|
+
# Builds the object from hash
|
|
179
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
180
|
+
# @return [Object] Returns the model itself
|
|
181
|
+
def self.build_from_hash(attributes)
|
|
182
|
+
return nil unless attributes.is_a?(Hash)
|
|
183
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
184
|
+
transformed_hash = {}
|
|
185
|
+
openapi_types.each_pair do |key, type|
|
|
186
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
187
|
+
transformed_hash["#{key}"] = nil
|
|
188
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
189
|
+
# check to ensure the input is an array given that the attribute
|
|
190
|
+
# is documented as an array but the input is not
|
|
191
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
192
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
193
|
+
end
|
|
194
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
195
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
196
|
+
end
|
|
197
|
+
end
|
|
198
|
+
new(transformed_hash)
|
|
199
|
+
end
|
|
200
|
+
|
|
201
|
+
# Returns the object in the form of hash
|
|
202
|
+
# @return [Hash] Returns the object in the form of hash
|
|
203
|
+
def to_hash
|
|
204
|
+
hash = {}
|
|
205
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
206
|
+
value = self.send(attr)
|
|
207
|
+
if value.nil?
|
|
208
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
209
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
210
|
+
end
|
|
211
|
+
|
|
212
|
+
hash[param] = _to_hash(value)
|
|
213
|
+
end
|
|
214
|
+
hash
|
|
215
|
+
end
|
|
216
|
+
|
|
217
|
+
end
|
|
218
|
+
|
|
219
|
+
end
|
|
@@ -26,6 +26,9 @@ module IncidentIo
|
|
|
26
26
|
# Custom field entries for this incident
|
|
27
27
|
attr_accessor :custom_field_entries
|
|
28
28
|
|
|
29
|
+
# Debriefs scheduled for this incident, ordered by start time. Excludes cancelled calendar events.
|
|
30
|
+
attr_accessor :debriefs
|
|
31
|
+
|
|
29
32
|
# Incident duration metrics and their measurements for this incident
|
|
30
33
|
attr_accessor :duration_metrics
|
|
31
34
|
|
|
@@ -116,6 +119,7 @@ module IncidentIo
|
|
|
116
119
|
:'created_at' => :'created_at',
|
|
117
120
|
:'creator' => :'creator',
|
|
118
121
|
:'custom_field_entries' => :'custom_field_entries',
|
|
122
|
+
:'debriefs' => :'debriefs',
|
|
119
123
|
:'duration_metrics' => :'duration_metrics',
|
|
120
124
|
:'external_issue_reference' => :'external_issue_reference',
|
|
121
125
|
:'has_debrief' => :'has_debrief',
|
|
@@ -165,6 +169,7 @@ module IncidentIo
|
|
|
165
169
|
:'created_at' => :'Time',
|
|
166
170
|
:'creator' => :'ActorV2',
|
|
167
171
|
:'custom_field_entries' => :'Array<CustomFieldEntryV2>',
|
|
172
|
+
:'debriefs' => :'Array<IncidentDebriefV2>',
|
|
168
173
|
:'duration_metrics' => :'Array<IncidentDurationMetricWithValueV2>',
|
|
169
174
|
:'external_issue_reference' => :'ExternalIssueReferenceV2',
|
|
170
175
|
:'has_debrief' => :'Boolean',
|
|
@@ -243,6 +248,12 @@ module IncidentIo
|
|
|
243
248
|
self.custom_field_entries = nil
|
|
244
249
|
end
|
|
245
250
|
|
|
251
|
+
if attributes.key?(:'debriefs')
|
|
252
|
+
if (value = attributes[:'debriefs']).is_a?(Array)
|
|
253
|
+
self.debriefs = value
|
|
254
|
+
end
|
|
255
|
+
end
|
|
256
|
+
|
|
246
257
|
if attributes.key?(:'duration_metrics')
|
|
247
258
|
if (value = attributes[:'duration_metrics']).is_a?(Array)
|
|
248
259
|
self.duration_metrics = value
|
|
@@ -643,6 +654,7 @@ module IncidentIo
|
|
|
643
654
|
created_at == o.created_at &&
|
|
644
655
|
creator == o.creator &&
|
|
645
656
|
custom_field_entries == o.custom_field_entries &&
|
|
657
|
+
debriefs == o.debriefs &&
|
|
646
658
|
duration_metrics == o.duration_metrics &&
|
|
647
659
|
external_issue_reference == o.external_issue_reference &&
|
|
648
660
|
has_debrief == o.has_debrief &&
|
|
@@ -683,7 +695,7 @@ module IncidentIo
|
|
|
683
695
|
# Calculates hash code according to all attributes.
|
|
684
696
|
# @return [Integer] Hash code
|
|
685
697
|
def hash
|
|
686
|
-
[call_url, created_at, creator, custom_field_entries, duration_metrics, external_issue_reference, has_debrief, id, incident_role_assignments, incident_status, incident_timestamp_values, incident_type, last_activity_at, mode, ms_teams_channel_url, name, permalink, postmortem_document_ids, postmortem_document_url, reference, severity, slack_channel_id, slack_channel_name, slack_channel_url, slack_team_id, summary, team_ids, updated_at, visibility, workload_minutes_late, workload_minutes_sleeping, workload_minutes_total, workload_minutes_working].hash
|
|
698
|
+
[call_url, created_at, creator, custom_field_entries, debriefs, duration_metrics, external_issue_reference, has_debrief, id, incident_role_assignments, incident_status, incident_timestamp_values, incident_type, last_activity_at, mode, ms_teams_channel_url, name, permalink, postmortem_document_ids, postmortem_document_url, reference, severity, slack_channel_id, slack_channel_name, slack_channel_url, slack_team_id, summary, team_ids, updated_at, visibility, workload_minutes_late, workload_minutes_sleeping, workload_minutes_total, workload_minutes_working].hash
|
|
687
699
|
end
|
|
688
700
|
|
|
689
701
|
# Builds the object from hash
|
|
@@ -26,6 +26,9 @@ module IncidentIo
|
|
|
26
26
|
# Custom field entries for this incident
|
|
27
27
|
attr_accessor :custom_field_entries
|
|
28
28
|
|
|
29
|
+
# Debriefs scheduled for this incident, ordered by start time. Excludes cancelled calendar events.
|
|
30
|
+
attr_accessor :debriefs
|
|
31
|
+
|
|
29
32
|
# Incident duration metrics and their measurements for this incident
|
|
30
33
|
attr_accessor :duration_metrics
|
|
31
34
|
|
|
@@ -122,6 +125,7 @@ module IncidentIo
|
|
|
122
125
|
:'created_at' => :'created_at',
|
|
123
126
|
:'creator' => :'creator',
|
|
124
127
|
:'custom_field_entries' => :'custom_field_entries',
|
|
128
|
+
:'debriefs' => :'debriefs',
|
|
125
129
|
:'duration_metrics' => :'duration_metrics',
|
|
126
130
|
:'external_issue_reference' => :'external_issue_reference',
|
|
127
131
|
:'has_debrief' => :'has_debrief',
|
|
@@ -173,6 +177,7 @@ module IncidentIo
|
|
|
173
177
|
:'created_at' => :'Time',
|
|
174
178
|
:'creator' => :'ActorV2',
|
|
175
179
|
:'custom_field_entries' => :'Array<CustomFieldEntryV2>',
|
|
180
|
+
:'debriefs' => :'Array<IncidentDebriefV2>',
|
|
176
181
|
:'duration_metrics' => :'Array<IncidentDurationMetricWithValueV2>',
|
|
177
182
|
:'external_issue_reference' => :'ExternalIssueReferenceV2',
|
|
178
183
|
:'has_debrief' => :'Boolean',
|
|
@@ -253,6 +258,12 @@ module IncidentIo
|
|
|
253
258
|
self.custom_field_entries = nil
|
|
254
259
|
end
|
|
255
260
|
|
|
261
|
+
if attributes.key?(:'debriefs')
|
|
262
|
+
if (value = attributes[:'debriefs']).is_a?(Array)
|
|
263
|
+
self.debriefs = value
|
|
264
|
+
end
|
|
265
|
+
end
|
|
266
|
+
|
|
256
267
|
if attributes.key?(:'duration_metrics')
|
|
257
268
|
if (value = attributes[:'duration_metrics']).is_a?(Array)
|
|
258
269
|
self.duration_metrics = value
|
|
@@ -663,6 +674,7 @@ module IncidentIo
|
|
|
663
674
|
created_at == o.created_at &&
|
|
664
675
|
creator == o.creator &&
|
|
665
676
|
custom_field_entries == o.custom_field_entries &&
|
|
677
|
+
debriefs == o.debriefs &&
|
|
666
678
|
duration_metrics == o.duration_metrics &&
|
|
667
679
|
external_issue_reference == o.external_issue_reference &&
|
|
668
680
|
has_debrief == o.has_debrief &&
|
|
@@ -705,7 +717,7 @@ module IncidentIo
|
|
|
705
717
|
# Calculates hash code according to all attributes.
|
|
706
718
|
# @return [Integer] Hash code
|
|
707
719
|
def hash
|
|
708
|
-
[call_url, created_at, creator, custom_field_entries, duration_metrics, external_issue_reference, has_debrief, id, incident_role_assignments, incident_status, incident_timestamp_values, incident_type, last_activity_at, mode, most_recent_update_message, ms_teams_channel_url, name, permalink, postmortem_document_ids, postmortem_document_url, reference, related_incidents, severity, slack_channel_id, slack_channel_name, slack_channel_url, slack_team_id, summary, team_ids, updated_at, visibility, workload_minutes_late, workload_minutes_sleeping, workload_minutes_total, workload_minutes_working].hash
|
|
720
|
+
[call_url, created_at, creator, custom_field_entries, debriefs, duration_metrics, external_issue_reference, has_debrief, id, incident_role_assignments, incident_status, incident_timestamp_values, incident_type, last_activity_at, mode, most_recent_update_message, ms_teams_channel_url, name, permalink, postmortem_document_ids, postmortem_document_url, reference, related_incidents, severity, slack_channel_id, slack_channel_name, slack_channel_url, slack_team_id, summary, team_ids, updated_at, visibility, workload_minutes_late, workload_minutes_sleeping, workload_minutes_total, workload_minutes_working].hash
|
|
709
721
|
end
|
|
710
722
|
|
|
711
723
|
# Builds the object from hash
|
data/lib/incident_io/version.rb
CHANGED
data/lib/incident_io.rb
CHANGED
|
@@ -772,6 +772,7 @@ IncidentIo.autoload :IncidentAttachmentsCreatePayloadV1, 'incident_io/models/inc
|
|
|
772
772
|
IncidentIo.autoload :IncidentAttachmentsCreatePayloadV1Resource, 'incident_io/models/incident_attachments_create_payload_v1_resource'
|
|
773
773
|
IncidentIo.autoload :IncidentAttachmentsCreateResultV1, 'incident_io/models/incident_attachments_create_result_v1'
|
|
774
774
|
IncidentIo.autoload :IncidentAttachmentsListResultV1, 'incident_io/models/incident_attachments_list_result_v1'
|
|
775
|
+
IncidentIo.autoload :IncidentDebriefV2, 'incident_io/models/incident_debrief_v2'
|
|
775
776
|
IncidentIo.autoload :IncidentDurationMetricV2, 'incident_io/models/incident_duration_metric_v2'
|
|
776
777
|
IncidentIo.autoload :IncidentDurationMetricWithValueV2, 'incident_io/models/incident_duration_metric_with_value_v2'
|
|
777
778
|
IncidentIo.autoload :IncidentEditPayloadV2, 'incident_io/models/incident_edit_payload_v2'
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: incident_io_api
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.
|
|
4
|
+
version: 2.4.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- incident.io
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-10-
|
|
11
|
+
date: 2026-10-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|
|
@@ -888,6 +888,7 @@ files:
|
|
|
888
888
|
- lib/incident_io/models/incident_attachments_create_payload_v1_resource.rb
|
|
889
889
|
- lib/incident_io/models/incident_attachments_create_result_v1.rb
|
|
890
890
|
- lib/incident_io/models/incident_attachments_list_result_v1.rb
|
|
891
|
+
- lib/incident_io/models/incident_debrief_v2.rb
|
|
891
892
|
- lib/incident_io/models/incident_duration_metric_v2.rb
|
|
892
893
|
- lib/incident_io/models/incident_duration_metric_with_value_v2.rb
|
|
893
894
|
- lib/incident_io/models/incident_edit_payload_v2.rb
|