incident_io_api 2.8.0 → 2.10.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 +4 -4
- data/lib/incident_io/api/incident_forms_v3_api.rb +361 -0
- data/lib/incident_io/models/incident_form_lifecycle_element_config_v3.rb +148 -0
- data/lib/incident_io/models/incident_form_lifecycle_element_payload_v3.rb +287 -0
- data/lib/incident_io/models/incident_form_lifecycle_element_v3.rb +287 -0
- data/lib/incident_io/models/incident_form_v3.rb +297 -0
- data/lib/incident_io/models/incident_forms_create_payload_v3.rb +216 -0
- data/lib/incident_io/models/incident_forms_create_result_v3.rb +164 -0
- data/lib/incident_io/models/incident_forms_list_result_v3.rb +192 -0
- data/lib/incident_io/models/incident_forms_show_result_v3.rb +164 -0
- data/lib/incident_io/models/incident_forms_update_payload_v3.rb +216 -0
- data/lib/incident_io/models/incident_forms_update_result_v3.rb +164 -0
- data/lib/incident_io/models/workflow_slim_v2.rb +28 -1
- data/lib/incident_io/models/workflow_v2.rb +29 -2
- data/lib/incident_io/models/workflows_create_workflow_payload_v2.rb +12 -2
- data/lib/incident_io/models/workflows_update_workflow_payload_v2.rb +12 -2
- data/lib/incident_io/version.rb +1 -1
- data/lib/incident_io.rb +11 -0
- metadata +13 -2
|
@@ -0,0 +1,164 @@
|
|
|
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 IncidentFormsUpdateResultV3 < ApiModelBase
|
|
18
|
+
attr_accessor :incident_form
|
|
19
|
+
|
|
20
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
21
|
+
def self.attribute_map
|
|
22
|
+
{
|
|
23
|
+
:'incident_form' => :'incident_form'
|
|
24
|
+
}
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
# Returns attribute mapping this model knows about
|
|
28
|
+
def self.acceptable_attribute_map
|
|
29
|
+
attribute_map
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
# Returns all the JSON keys this model knows about
|
|
33
|
+
def self.acceptable_attributes
|
|
34
|
+
acceptable_attribute_map.values
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
# Attribute type mapping.
|
|
38
|
+
def self.openapi_types
|
|
39
|
+
{
|
|
40
|
+
:'incident_form' => :'IncidentFormV3'
|
|
41
|
+
}
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
# List of attributes with nullable: true
|
|
45
|
+
def self.openapi_nullable
|
|
46
|
+
Set.new([
|
|
47
|
+
])
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
# Initializes the object
|
|
51
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
52
|
+
def initialize(attributes = {})
|
|
53
|
+
if (!attributes.is_a?(Hash))
|
|
54
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `IncidentIo::IncidentFormsUpdateResultV3` initialize method"
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
58
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
59
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
60
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
61
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `IncidentIo::IncidentFormsUpdateResultV3`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
62
|
+
end
|
|
63
|
+
h[k.to_sym] = v
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
if attributes.key?(:'incident_form')
|
|
67
|
+
self.incident_form = attributes[:'incident_form']
|
|
68
|
+
else
|
|
69
|
+
self.incident_form = nil
|
|
70
|
+
end
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
74
|
+
# @return Array for valid properties with the reasons
|
|
75
|
+
def list_invalid_properties
|
|
76
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
77
|
+
invalid_properties = Array.new
|
|
78
|
+
if @incident_form.nil?
|
|
79
|
+
invalid_properties.push('invalid value for "incident_form", incident_form cannot be nil.')
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
invalid_properties
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
# Check to see if the all the properties in the model are valid
|
|
86
|
+
# @return true if the model is valid
|
|
87
|
+
def valid?
|
|
88
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
89
|
+
return false if @incident_form.nil?
|
|
90
|
+
true
|
|
91
|
+
end
|
|
92
|
+
|
|
93
|
+
# Custom attribute writer method with validation
|
|
94
|
+
# @param [Object] incident_form Value to be assigned
|
|
95
|
+
def incident_form=(incident_form)
|
|
96
|
+
if incident_form.nil?
|
|
97
|
+
fail ArgumentError, 'incident_form cannot be nil'
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
@incident_form = incident_form
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
# Checks equality by comparing each attribute.
|
|
104
|
+
# @param [Object] Object to be compared
|
|
105
|
+
def ==(o)
|
|
106
|
+
return true if self.equal?(o)
|
|
107
|
+
self.class == o.class &&
|
|
108
|
+
incident_form == o.incident_form
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
# @see the `==` method
|
|
112
|
+
# @param [Object] Object to be compared
|
|
113
|
+
def eql?(o)
|
|
114
|
+
self == o
|
|
115
|
+
end
|
|
116
|
+
|
|
117
|
+
# Calculates hash code according to all attributes.
|
|
118
|
+
# @return [Integer] Hash code
|
|
119
|
+
def hash
|
|
120
|
+
[incident_form].hash
|
|
121
|
+
end
|
|
122
|
+
|
|
123
|
+
# Builds the object from hash
|
|
124
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
125
|
+
# @return [Object] Returns the model itself
|
|
126
|
+
def self.build_from_hash(attributes)
|
|
127
|
+
return nil unless attributes.is_a?(Hash)
|
|
128
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
129
|
+
transformed_hash = {}
|
|
130
|
+
openapi_types.each_pair do |key, type|
|
|
131
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
132
|
+
transformed_hash["#{key}"] = nil
|
|
133
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
134
|
+
# check to ensure the input is an array given that the attribute
|
|
135
|
+
# is documented as an array but the input is not
|
|
136
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
137
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
138
|
+
end
|
|
139
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
140
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
141
|
+
end
|
|
142
|
+
end
|
|
143
|
+
new(transformed_hash)
|
|
144
|
+
end
|
|
145
|
+
|
|
146
|
+
# Returns the object in the form of hash
|
|
147
|
+
# @return [Hash] Returns the object in the form of hash
|
|
148
|
+
def to_hash
|
|
149
|
+
hash = {}
|
|
150
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
151
|
+
value = self.send(attr)
|
|
152
|
+
if value.nil?
|
|
153
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
154
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
155
|
+
end
|
|
156
|
+
|
|
157
|
+
hash[param] = _to_hash(value)
|
|
158
|
+
end
|
|
159
|
+
hash
|
|
160
|
+
end
|
|
161
|
+
|
|
162
|
+
end
|
|
163
|
+
|
|
164
|
+
end
|
|
@@ -15,6 +15,9 @@ require 'time'
|
|
|
15
15
|
|
|
16
16
|
module IncidentIo
|
|
17
17
|
class WorkflowSlimV2 < ApiModelBase
|
|
18
|
+
# Whether the workflow is configured to run immediately or ask for confirmation in the incident channel Known values: `run_automatically`, `confirm_before_running`
|
|
19
|
+
attr_accessor :auto_run_mode
|
|
20
|
+
|
|
18
21
|
# Conditions that apply to the workflow trigger
|
|
19
22
|
attr_accessor :condition_groups
|
|
20
23
|
|
|
@@ -76,6 +79,7 @@ module IncidentIo
|
|
|
76
79
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
77
80
|
def self.attribute_map
|
|
78
81
|
{
|
|
82
|
+
:'auto_run_mode' => :'auto_run_mode',
|
|
79
83
|
:'condition_groups' => :'condition_groups',
|
|
80
84
|
:'continue_on_step_error' => :'continue_on_step_error',
|
|
81
85
|
:'delay' => :'delay',
|
|
@@ -112,6 +116,7 @@ module IncidentIo
|
|
|
112
116
|
# Attribute type mapping.
|
|
113
117
|
def self.openapi_types
|
|
114
118
|
{
|
|
119
|
+
:'auto_run_mode' => :'String',
|
|
115
120
|
:'condition_groups' => :'Array<ConditionGroupV2>',
|
|
116
121
|
:'continue_on_step_error' => :'Boolean',
|
|
117
122
|
:'delay' => :'WorkflowDelayV2',
|
|
@@ -157,6 +162,12 @@ module IncidentIo
|
|
|
157
162
|
h[k.to_sym] = v
|
|
158
163
|
}
|
|
159
164
|
|
|
165
|
+
if attributes.key?(:'auto_run_mode')
|
|
166
|
+
self.auto_run_mode = attributes[:'auto_run_mode']
|
|
167
|
+
else
|
|
168
|
+
self.auto_run_mode = nil
|
|
169
|
+
end
|
|
170
|
+
|
|
160
171
|
if attributes.key?(:'condition_groups')
|
|
161
172
|
if (value = attributes[:'condition_groups']).is_a?(Array)
|
|
162
173
|
self.condition_groups = value
|
|
@@ -285,6 +296,10 @@ module IncidentIo
|
|
|
285
296
|
def list_invalid_properties
|
|
286
297
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
287
298
|
invalid_properties = Array.new
|
|
299
|
+
if @auto_run_mode.nil?
|
|
300
|
+
invalid_properties.push('invalid value for "auto_run_mode", auto_run_mode cannot be nil.')
|
|
301
|
+
end
|
|
302
|
+
|
|
288
303
|
if @condition_groups.nil?
|
|
289
304
|
invalid_properties.push('invalid value for "condition_groups", condition_groups cannot be nil.')
|
|
290
305
|
end
|
|
@@ -352,6 +367,7 @@ module IncidentIo
|
|
|
352
367
|
# @return true if the model is valid
|
|
353
368
|
def valid?
|
|
354
369
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
370
|
+
return false if @auto_run_mode.nil?
|
|
355
371
|
return false if @condition_groups.nil?
|
|
356
372
|
return false if @continue_on_step_error.nil?
|
|
357
373
|
return false if @expressions.nil?
|
|
@@ -370,6 +386,16 @@ module IncidentIo
|
|
|
370
386
|
true
|
|
371
387
|
end
|
|
372
388
|
|
|
389
|
+
# Custom attribute writer method with validation
|
|
390
|
+
# @param [Object] auto_run_mode Value to be assigned
|
|
391
|
+
def auto_run_mode=(auto_run_mode)
|
|
392
|
+
if auto_run_mode.nil?
|
|
393
|
+
fail ArgumentError, 'auto_run_mode cannot be nil'
|
|
394
|
+
end
|
|
395
|
+
|
|
396
|
+
@auto_run_mode = auto_run_mode
|
|
397
|
+
end
|
|
398
|
+
|
|
373
399
|
# Custom attribute writer method with validation
|
|
374
400
|
# @param [Object] condition_groups Value to be assigned
|
|
375
401
|
def condition_groups=(condition_groups)
|
|
@@ -525,6 +551,7 @@ module IncidentIo
|
|
|
525
551
|
def ==(o)
|
|
526
552
|
return true if self.equal?(o)
|
|
527
553
|
self.class == o.class &&
|
|
554
|
+
auto_run_mode == o.auto_run_mode &&
|
|
528
555
|
condition_groups == o.condition_groups &&
|
|
529
556
|
continue_on_step_error == o.continue_on_step_error &&
|
|
530
557
|
delay == o.delay &&
|
|
@@ -556,7 +583,7 @@ module IncidentIo
|
|
|
556
583
|
# Calculates hash code according to all attributes.
|
|
557
584
|
# @return [Integer] Hash code
|
|
558
585
|
def hash
|
|
559
|
-
[condition_groups, continue_on_step_error, delay, expressions, folder, id, include_private_escalations, include_private_incidents, name, once_for, owning_team_ids, private_incident_scope, runs_from, runs_on_incident_modes, runs_on_incidents, shortform, state, steps, trigger, version].hash
|
|
586
|
+
[auto_run_mode, condition_groups, continue_on_step_error, delay, expressions, folder, id, include_private_escalations, include_private_incidents, name, once_for, owning_team_ids, private_incident_scope, runs_from, runs_on_incident_modes, runs_on_incidents, shortform, state, steps, trigger, version].hash
|
|
560
587
|
end
|
|
561
588
|
|
|
562
589
|
# Builds the object from hash
|
|
@@ -15,6 +15,9 @@ require 'time'
|
|
|
15
15
|
|
|
16
16
|
module IncidentIo
|
|
17
17
|
class WorkflowV2 < ApiModelBase
|
|
18
|
+
# Whether the workflow is configured to run immediately or ask for confirmation in the incident channel Known values: `run_automatically`, `confirm_before_running`
|
|
19
|
+
attr_accessor :auto_run_mode
|
|
20
|
+
|
|
18
21
|
# Conditions that apply to the workflow trigger
|
|
19
22
|
attr_accessor :condition_groups
|
|
20
23
|
|
|
@@ -29,7 +32,7 @@ module IncidentIo
|
|
|
29
32
|
# Folder to display the workflow in
|
|
30
33
|
attr_accessor :folder
|
|
31
34
|
|
|
32
|
-
# User-configured form fields available in the workflow scope
|
|
35
|
+
# User-configured form fields available in the workflow scope. Allowed on manually-triggered workflows, and on workflows with an `auto_run_mode` of `confirm_before_running`.
|
|
33
36
|
attr_accessor :form_fields
|
|
34
37
|
|
|
35
38
|
# Unique identifier for the workflow
|
|
@@ -79,6 +82,7 @@ module IncidentIo
|
|
|
79
82
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
80
83
|
def self.attribute_map
|
|
81
84
|
{
|
|
85
|
+
:'auto_run_mode' => :'auto_run_mode',
|
|
82
86
|
:'condition_groups' => :'condition_groups',
|
|
83
87
|
:'continue_on_step_error' => :'continue_on_step_error',
|
|
84
88
|
:'delay' => :'delay',
|
|
@@ -116,6 +120,7 @@ module IncidentIo
|
|
|
116
120
|
# Attribute type mapping.
|
|
117
121
|
def self.openapi_types
|
|
118
122
|
{
|
|
123
|
+
:'auto_run_mode' => :'String',
|
|
119
124
|
:'condition_groups' => :'Array<ConditionGroupV2>',
|
|
120
125
|
:'continue_on_step_error' => :'Boolean',
|
|
121
126
|
:'delay' => :'WorkflowDelayV2',
|
|
@@ -162,6 +167,12 @@ module IncidentIo
|
|
|
162
167
|
h[k.to_sym] = v
|
|
163
168
|
}
|
|
164
169
|
|
|
170
|
+
if attributes.key?(:'auto_run_mode')
|
|
171
|
+
self.auto_run_mode = attributes[:'auto_run_mode']
|
|
172
|
+
else
|
|
173
|
+
self.auto_run_mode = nil
|
|
174
|
+
end
|
|
175
|
+
|
|
165
176
|
if attributes.key?(:'condition_groups')
|
|
166
177
|
if (value = attributes[:'condition_groups']).is_a?(Array)
|
|
167
178
|
self.condition_groups = value
|
|
@@ -296,6 +307,10 @@ module IncidentIo
|
|
|
296
307
|
def list_invalid_properties
|
|
297
308
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
298
309
|
invalid_properties = Array.new
|
|
310
|
+
if @auto_run_mode.nil?
|
|
311
|
+
invalid_properties.push('invalid value for "auto_run_mode", auto_run_mode cannot be nil.')
|
|
312
|
+
end
|
|
313
|
+
|
|
299
314
|
if @condition_groups.nil?
|
|
300
315
|
invalid_properties.push('invalid value for "condition_groups", condition_groups cannot be nil.')
|
|
301
316
|
end
|
|
@@ -363,6 +378,7 @@ module IncidentIo
|
|
|
363
378
|
# @return true if the model is valid
|
|
364
379
|
def valid?
|
|
365
380
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
381
|
+
return false if @auto_run_mode.nil?
|
|
366
382
|
return false if @condition_groups.nil?
|
|
367
383
|
return false if @continue_on_step_error.nil?
|
|
368
384
|
return false if @expressions.nil?
|
|
@@ -381,6 +397,16 @@ module IncidentIo
|
|
|
381
397
|
true
|
|
382
398
|
end
|
|
383
399
|
|
|
400
|
+
# Custom attribute writer method with validation
|
|
401
|
+
# @param [Object] auto_run_mode Value to be assigned
|
|
402
|
+
def auto_run_mode=(auto_run_mode)
|
|
403
|
+
if auto_run_mode.nil?
|
|
404
|
+
fail ArgumentError, 'auto_run_mode cannot be nil'
|
|
405
|
+
end
|
|
406
|
+
|
|
407
|
+
@auto_run_mode = auto_run_mode
|
|
408
|
+
end
|
|
409
|
+
|
|
384
410
|
# Custom attribute writer method with validation
|
|
385
411
|
# @param [Object] condition_groups Value to be assigned
|
|
386
412
|
def condition_groups=(condition_groups)
|
|
@@ -536,6 +562,7 @@ module IncidentIo
|
|
|
536
562
|
def ==(o)
|
|
537
563
|
return true if self.equal?(o)
|
|
538
564
|
self.class == o.class &&
|
|
565
|
+
auto_run_mode == o.auto_run_mode &&
|
|
539
566
|
condition_groups == o.condition_groups &&
|
|
540
567
|
continue_on_step_error == o.continue_on_step_error &&
|
|
541
568
|
delay == o.delay &&
|
|
@@ -568,7 +595,7 @@ module IncidentIo
|
|
|
568
595
|
# Calculates hash code according to all attributes.
|
|
569
596
|
# @return [Integer] Hash code
|
|
570
597
|
def hash
|
|
571
|
-
[condition_groups, continue_on_step_error, delay, expressions, folder, form_fields, id, include_private_escalations, include_private_incidents, name, once_for, owning_team_ids, private_incident_scope, runs_from, runs_on_incident_modes, runs_on_incidents, shortform, state, steps, trigger, version].hash
|
|
598
|
+
[auto_run_mode, condition_groups, continue_on_step_error, delay, expressions, folder, form_fields, id, include_private_escalations, include_private_incidents, name, once_for, owning_team_ids, private_incident_scope, runs_from, runs_on_incident_modes, runs_on_incidents, shortform, state, steps, trigger, version].hash
|
|
572
599
|
end
|
|
573
600
|
|
|
574
601
|
# Builds the object from hash
|
|
@@ -18,6 +18,9 @@ module IncidentIo
|
|
|
18
18
|
# Annotations that track metadata about this resource
|
|
19
19
|
attr_accessor :annotations
|
|
20
20
|
|
|
21
|
+
# Whether the workflow runs immediately, or asks for confirmation in the incident channel first. Defaults to `run_automatically` on create. If omitted on update, the workflow keeps its current mode. Known values: `run_automatically`, `confirm_before_running`
|
|
22
|
+
attr_accessor :auto_run_mode
|
|
23
|
+
|
|
21
24
|
# Conditions that apply to the workflow trigger
|
|
22
25
|
attr_accessor :condition_groups
|
|
23
26
|
|
|
@@ -32,7 +35,7 @@ module IncidentIo
|
|
|
32
35
|
# Folder to display the workflow in
|
|
33
36
|
attr_accessor :folder
|
|
34
37
|
|
|
35
|
-
# User-configured form fields available in the workflow scope
|
|
38
|
+
# User-configured form fields available in the workflow scope. Allowed on manually-triggered workflows, and on workflows with an `auto_run_mode` of `confirm_before_running`.
|
|
36
39
|
attr_accessor :form_fields
|
|
37
40
|
|
|
38
41
|
# Whether to include private escalations
|
|
@@ -75,6 +78,7 @@ module IncidentIo
|
|
|
75
78
|
def self.attribute_map
|
|
76
79
|
{
|
|
77
80
|
:'annotations' => :'annotations',
|
|
81
|
+
:'auto_run_mode' => :'auto_run_mode',
|
|
78
82
|
:'condition_groups' => :'condition_groups',
|
|
79
83
|
:'continue_on_step_error' => :'continue_on_step_error',
|
|
80
84
|
:'delay' => :'delay',
|
|
@@ -110,6 +114,7 @@ module IncidentIo
|
|
|
110
114
|
def self.openapi_types
|
|
111
115
|
{
|
|
112
116
|
:'annotations' => :'Hash<String, String>',
|
|
117
|
+
:'auto_run_mode' => :'String',
|
|
113
118
|
:'condition_groups' => :'Array<ConditionGroupPayloadV2>',
|
|
114
119
|
:'continue_on_step_error' => :'Boolean',
|
|
115
120
|
:'delay' => :'WorkflowDelayV2',
|
|
@@ -159,6 +164,10 @@ module IncidentIo
|
|
|
159
164
|
end
|
|
160
165
|
end
|
|
161
166
|
|
|
167
|
+
if attributes.key?(:'auto_run_mode')
|
|
168
|
+
self.auto_run_mode = attributes[:'auto_run_mode']
|
|
169
|
+
end
|
|
170
|
+
|
|
162
171
|
if attributes.key?(:'condition_groups')
|
|
163
172
|
if (value = attributes[:'condition_groups']).is_a?(Array)
|
|
164
173
|
self.condition_groups = value
|
|
@@ -420,6 +429,7 @@ module IncidentIo
|
|
|
420
429
|
return true if self.equal?(o)
|
|
421
430
|
self.class == o.class &&
|
|
422
431
|
annotations == o.annotations &&
|
|
432
|
+
auto_run_mode == o.auto_run_mode &&
|
|
423
433
|
condition_groups == o.condition_groups &&
|
|
424
434
|
continue_on_step_error == o.continue_on_step_error &&
|
|
425
435
|
delay == o.delay &&
|
|
@@ -449,7 +459,7 @@ module IncidentIo
|
|
|
449
459
|
# Calculates hash code according to all attributes.
|
|
450
460
|
# @return [Integer] Hash code
|
|
451
461
|
def hash
|
|
452
|
-
[annotations, condition_groups, continue_on_step_error, delay, expressions, folder, form_fields, include_private_escalations, include_private_incidents, name, once_for, owning_team_ids, private_incident_scope, runs_on_incident_modes, runs_on_incidents, shortform, state, steps, trigger].hash
|
|
462
|
+
[annotations, auto_run_mode, condition_groups, continue_on_step_error, delay, expressions, folder, form_fields, include_private_escalations, include_private_incidents, name, once_for, owning_team_ids, private_incident_scope, runs_on_incident_modes, runs_on_incidents, shortform, state, steps, trigger].hash
|
|
453
463
|
end
|
|
454
464
|
|
|
455
465
|
# Builds the object from hash
|
|
@@ -18,6 +18,9 @@ module IncidentIo
|
|
|
18
18
|
# Annotations that track metadata about this resource
|
|
19
19
|
attr_accessor :annotations
|
|
20
20
|
|
|
21
|
+
# Whether the workflow runs immediately, or asks for confirmation in the incident channel first. Defaults to `run_automatically` on create. If omitted on update, the workflow keeps its current mode. Known values: `run_automatically`, `confirm_before_running`
|
|
22
|
+
attr_accessor :auto_run_mode
|
|
23
|
+
|
|
21
24
|
# Conditions that apply to the workflow trigger
|
|
22
25
|
attr_accessor :condition_groups
|
|
23
26
|
|
|
@@ -32,7 +35,7 @@ module IncidentIo
|
|
|
32
35
|
# Folder to display the workflow in
|
|
33
36
|
attr_accessor :folder
|
|
34
37
|
|
|
35
|
-
# User-configured form fields available in the workflow scope
|
|
38
|
+
# User-configured form fields available in the workflow scope. Allowed on manually-triggered workflows, and on workflows with an `auto_run_mode` of `confirm_before_running`.
|
|
36
39
|
attr_accessor :form_fields
|
|
37
40
|
|
|
38
41
|
# Whether to include private escalations
|
|
@@ -75,6 +78,7 @@ module IncidentIo
|
|
|
75
78
|
def self.attribute_map
|
|
76
79
|
{
|
|
77
80
|
:'annotations' => :'annotations',
|
|
81
|
+
:'auto_run_mode' => :'auto_run_mode',
|
|
78
82
|
:'condition_groups' => :'condition_groups',
|
|
79
83
|
:'continue_on_step_error' => :'continue_on_step_error',
|
|
80
84
|
:'delay' => :'delay',
|
|
@@ -110,6 +114,7 @@ module IncidentIo
|
|
|
110
114
|
def self.openapi_types
|
|
111
115
|
{
|
|
112
116
|
:'annotations' => :'Hash<String, String>',
|
|
117
|
+
:'auto_run_mode' => :'String',
|
|
113
118
|
:'condition_groups' => :'Array<ConditionGroupPayloadV2>',
|
|
114
119
|
:'continue_on_step_error' => :'Boolean',
|
|
115
120
|
:'delay' => :'WorkflowDelayV2',
|
|
@@ -159,6 +164,10 @@ module IncidentIo
|
|
|
159
164
|
end
|
|
160
165
|
end
|
|
161
166
|
|
|
167
|
+
if attributes.key?(:'auto_run_mode')
|
|
168
|
+
self.auto_run_mode = attributes[:'auto_run_mode']
|
|
169
|
+
end
|
|
170
|
+
|
|
162
171
|
if attributes.key?(:'condition_groups')
|
|
163
172
|
if (value = attributes[:'condition_groups']).is_a?(Array)
|
|
164
173
|
self.condition_groups = value
|
|
@@ -403,6 +412,7 @@ module IncidentIo
|
|
|
403
412
|
return true if self.equal?(o)
|
|
404
413
|
self.class == o.class &&
|
|
405
414
|
annotations == o.annotations &&
|
|
415
|
+
auto_run_mode == o.auto_run_mode &&
|
|
406
416
|
condition_groups == o.condition_groups &&
|
|
407
417
|
continue_on_step_error == o.continue_on_step_error &&
|
|
408
418
|
delay == o.delay &&
|
|
@@ -432,7 +442,7 @@ module IncidentIo
|
|
|
432
442
|
# Calculates hash code according to all attributes.
|
|
433
443
|
# @return [Integer] Hash code
|
|
434
444
|
def hash
|
|
435
|
-
[annotations, condition_groups, continue_on_step_error, delay, expressions, folder, form_fields, include_private_escalations, include_private_incidents, name, once_for, owning_team_ids, private_incident_scope, runs_on_incident_modes, runs_on_incidents, shortform, skip_step_upgrades, state, steps].hash
|
|
445
|
+
[annotations, auto_run_mode, condition_groups, continue_on_step_error, delay, expressions, folder, form_fields, include_private_escalations, include_private_incidents, name, once_for, owning_team_ids, private_incident_scope, runs_on_incident_modes, runs_on_incidents, shortform, skip_step_upgrades, state, steps].hash
|
|
436
446
|
end
|
|
437
447
|
|
|
438
448
|
# Builds the object from hash
|
data/lib/incident_io/version.rb
CHANGED
data/lib/incident_io.rb
CHANGED
|
@@ -777,6 +777,16 @@ IncidentIo.autoload :IncidentDebriefV2, 'incident_io/models/incident_debrief_v2'
|
|
|
777
777
|
IncidentIo.autoload :IncidentDurationMetricV2, 'incident_io/models/incident_duration_metric_v2'
|
|
778
778
|
IncidentIo.autoload :IncidentDurationMetricWithValueV2, 'incident_io/models/incident_duration_metric_with_value_v2'
|
|
779
779
|
IncidentIo.autoload :IncidentEditPayloadV2, 'incident_io/models/incident_edit_payload_v2'
|
|
780
|
+
IncidentIo.autoload :IncidentFormLifecycleElementConfigV3, 'incident_io/models/incident_form_lifecycle_element_config_v3'
|
|
781
|
+
IncidentIo.autoload :IncidentFormLifecycleElementPayloadV3, 'incident_io/models/incident_form_lifecycle_element_payload_v3'
|
|
782
|
+
IncidentIo.autoload :IncidentFormLifecycleElementV3, 'incident_io/models/incident_form_lifecycle_element_v3'
|
|
783
|
+
IncidentIo.autoload :IncidentFormV3, 'incident_io/models/incident_form_v3'
|
|
784
|
+
IncidentIo.autoload :IncidentFormsCreatePayloadV3, 'incident_io/models/incident_forms_create_payload_v3'
|
|
785
|
+
IncidentIo.autoload :IncidentFormsCreateResultV3, 'incident_io/models/incident_forms_create_result_v3'
|
|
786
|
+
IncidentIo.autoload :IncidentFormsListResultV3, 'incident_io/models/incident_forms_list_result_v3'
|
|
787
|
+
IncidentIo.autoload :IncidentFormsShowResultV3, 'incident_io/models/incident_forms_show_result_v3'
|
|
788
|
+
IncidentIo.autoload :IncidentFormsUpdatePayloadV3, 'incident_io/models/incident_forms_update_payload_v3'
|
|
789
|
+
IncidentIo.autoload :IncidentFormsUpdateResultV3, 'incident_io/models/incident_forms_update_result_v3'
|
|
780
790
|
IncidentIo.autoload :IncidentMembershipV1, 'incident_io/models/incident_membership_v1'
|
|
781
791
|
IncidentIo.autoload :IncidentMembershipsCreatePayloadV1, 'incident_io/models/incident_memberships_create_payload_v1'
|
|
782
792
|
IncidentIo.autoload :IncidentMembershipsCreateResultV1, 'incident_io/models/incident_memberships_create_result_v1'
|
|
@@ -1239,6 +1249,7 @@ IncidentIo.autoload :HeartbeatV2Api, 'incident_io/api/heartbeat_v2_api'
|
|
|
1239
1249
|
IncidentIo.autoload :IPAllowlistsV1Api, 'incident_io/api/ip_allowlists_v1_api'
|
|
1240
1250
|
IncidentIo.autoload :IncidentActivityLogEntriesV2Api, 'incident_io/api/incident_activity_log_entries_v2_api'
|
|
1241
1251
|
IncidentIo.autoload :IncidentAttachmentsV1Api, 'incident_io/api/incident_attachments_v1_api'
|
|
1252
|
+
IncidentIo.autoload :IncidentFormsV3Api, 'incident_io/api/incident_forms_v3_api'
|
|
1242
1253
|
IncidentIo.autoload :IncidentMembershipsV1Api, 'incident_io/api/incident_memberships_v1_api'
|
|
1243
1254
|
IncidentIo.autoload :IncidentParticipantWorkloadsV2Api, 'incident_io/api/incident_participant_workloads_v2_api'
|
|
1244
1255
|
IncidentIo.autoload :IncidentParticipantsV2Api, 'incident_io/api/incident_participants_v2_api'
|
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.10.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-07 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|
|
@@ -103,6 +103,7 @@ files:
|
|
|
103
103
|
- lib/incident_io/api/heartbeat_v2_api.rb
|
|
104
104
|
- lib/incident_io/api/incident_activity_log_entries_v2_api.rb
|
|
105
105
|
- lib/incident_io/api/incident_attachments_v1_api.rb
|
|
106
|
+
- lib/incident_io/api/incident_forms_v3_api.rb
|
|
106
107
|
- lib/incident_io/api/incident_memberships_v1_api.rb
|
|
107
108
|
- lib/incident_io/api/incident_participant_workloads_v2_api.rb
|
|
108
109
|
- lib/incident_io/api/incident_participants_v2_api.rb
|
|
@@ -894,6 +895,16 @@ files:
|
|
|
894
895
|
- lib/incident_io/models/incident_duration_metric_v2.rb
|
|
895
896
|
- lib/incident_io/models/incident_duration_metric_with_value_v2.rb
|
|
896
897
|
- lib/incident_io/models/incident_edit_payload_v2.rb
|
|
898
|
+
- lib/incident_io/models/incident_form_lifecycle_element_config_v3.rb
|
|
899
|
+
- lib/incident_io/models/incident_form_lifecycle_element_payload_v3.rb
|
|
900
|
+
- lib/incident_io/models/incident_form_lifecycle_element_v3.rb
|
|
901
|
+
- lib/incident_io/models/incident_form_v3.rb
|
|
902
|
+
- lib/incident_io/models/incident_forms_create_payload_v3.rb
|
|
903
|
+
- lib/incident_io/models/incident_forms_create_result_v3.rb
|
|
904
|
+
- lib/incident_io/models/incident_forms_list_result_v3.rb
|
|
905
|
+
- lib/incident_io/models/incident_forms_show_result_v3.rb
|
|
906
|
+
- lib/incident_io/models/incident_forms_update_payload_v3.rb
|
|
907
|
+
- lib/incident_io/models/incident_forms_update_result_v3.rb
|
|
897
908
|
- lib/incident_io/models/incident_membership_v1.rb
|
|
898
909
|
- lib/incident_io/models/incident_memberships_create_payload_v1.rb
|
|
899
910
|
- lib/incident_io/models/incident_memberships_create_result_v1.rb
|