incident_io_api 2.47.0 → 2.49.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/models/audit_log_target_v2.rb +1 -1
- data/lib/incident_io/models/audit_logs_escalation_urgency_created_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_escalation_urgency_deleted_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_escalation_urgency_updated_v1.rb +300 -0
- data/lib/incident_io/models/pay_config_v2.rb +3 -3
- data/lib/incident_io/models/pay_configs_create_payload_v2.rb +2 -2
- data/lib/incident_io/models/pay_configs_update_payload_v2.rb +2 -2
- data/lib/incident_io/version.rb +1 -1
- data/lib/incident_io.rb +3 -0
- metadata +5 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0cdd3ce38882717646ac23ee5e9e8a5837dedb4404a0e46efb44d765d3796d22
|
|
4
|
+
data.tar.gz: 87f66a66e42dc7766afb50e9ff0b832a6c3194c5adaa9dc3f36c9ee2db47ae70
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 75b4e6dd08a17c69df803ded007b4a980c3b22865be0855bc329100a98bfd69517f46204d95c5041e0270d5be1d4c7b7193e74baa3a54d1e3bfae37b7d6e3115
|
|
7
|
+
data.tar.gz: 3d5ca0467c9bc5b5e6e8af9ebd19d33f32fbd50b45d8537350d196e392733d581e6e208183850afe05d5fe4cb2ff125bc853a7b104fd7f3cb2f752cd3df003db
|
|
@@ -21,7 +21,7 @@ module IncidentIo
|
|
|
21
21
|
# The name of the target
|
|
22
22
|
attr_accessor :name
|
|
23
23
|
|
|
24
|
-
# The type of target Known values: `api_key`, `alert`, `alert_chat_message_template`, `alert_route`, `alert_schema`, `alert_source`, `alert_priority`, `announcement_rule`, `announcement_post_template`, `catalog_type`, `catalog_entry`, `catalog_attribute`, `connector_config`, `custom_field`, `debrief_invite_rule`, `escalation`, `escalation_path`, `escalation_path_template`, `extension_connector`, `extension_connector_tool`, `extension_plugin`, `glossary_entry`, `investigation_trigger`, `investigation_config`, `code_repository`, `reliability_review_settings`, `reliability_review_rule`, `follow_up_category`, `follow_up_priority`, `holiday_user_feed`, `hris_time_off_policy`, `incident`, `incident_call_transcription_session`, `incident_call_setting`, `incident_duration_metric`, `incident_template`, `incident_summary_config`, `incident_update_config`, `maintenance_window`, `incident_role`, `incident_status`, `incident_timestamp`, `incident_timestamp_set_by_rule`, `incident_type`, `integration`, `internal_status_page`, `ip_allowlist`, `nudge`, `on_call_notification_method`, `on_call_notification_pause`, `organisation`, `organisation_settings`, `schedule_override`, `schedule_sync_rule`, `schedule_sync_target`, `policy`, `policy_report_schedule`, `post_incident_task`, `postmortem_template`, `postmortem_template_section`, `private_incident_membership`, `rbac_role`, `scim_group`, `schedule`, `team_role`, `secret`, `severity`, `status_page`, `status_page_sub_page`, `status_page_template`, `team_settings`, `telemetry_data_source`, `twilio_connection`, `user`, `user_api_key`, `workflow`, `activity_log`, `timeline_item`, `on_call_upsell_request`
|
|
24
|
+
# The type of target Known values: `api_key`, `alert`, `alert_chat_message_template`, `alert_route`, `alert_schema`, `alert_source`, `alert_priority`, `escalation_urgency`, `announcement_rule`, `announcement_post_template`, `catalog_type`, `catalog_entry`, `catalog_attribute`, `connector_config`, `custom_field`, `debrief_invite_rule`, `escalation`, `escalation_path`, `escalation_path_template`, `extension_connector`, `extension_connector_tool`, `extension_plugin`, `glossary_entry`, `investigation_trigger`, `investigation_config`, `code_repository`, `reliability_review_settings`, `reliability_review_rule`, `follow_up_category`, `follow_up_priority`, `holiday_user_feed`, `hris_time_off_policy`, `incident`, `incident_call_transcription_session`, `incident_call_setting`, `incident_duration_metric`, `incident_template`, `incident_summary_config`, `incident_update_config`, `maintenance_window`, `incident_role`, `incident_status`, `incident_timestamp`, `incident_timestamp_set_by_rule`, `incident_type`, `integration`, `internal_status_page`, `ip_allowlist`, `nudge`, `on_call_notification_method`, `on_call_notification_pause`, `organisation`, `organisation_settings`, `schedule_override`, `schedule_sync_rule`, `schedule_sync_target`, `policy`, `policy_report_schedule`, `post_incident_task`, `postmortem_template`, `postmortem_template_section`, `private_incident_membership`, `rbac_role`, `scim_group`, `schedule`, `team_role`, `secret`, `severity`, `status_page`, `status_page_sub_page`, `status_page_template`, `team_settings`, `telemetry_data_source`, `twilio_connection`, `user`, `user_api_key`, `workflow`, `activity_log`, `timeline_item`, `on_call_upsell_request`
|
|
25
25
|
attr_accessor :type
|
|
26
26
|
|
|
27
27
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
@@ -0,0 +1,300 @@
|
|
|
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 AuditLogsEscalationUrgencyCreatedV1 < ApiModelBase
|
|
18
|
+
# The type of log entry that this is
|
|
19
|
+
attr_accessor :action
|
|
20
|
+
|
|
21
|
+
attr_accessor :actor
|
|
22
|
+
|
|
23
|
+
attr_accessor :context
|
|
24
|
+
|
|
25
|
+
# When the entry occurred
|
|
26
|
+
attr_accessor :occurred_at
|
|
27
|
+
|
|
28
|
+
# The custom field that was created
|
|
29
|
+
attr_accessor :targets
|
|
30
|
+
|
|
31
|
+
# Which version the event is
|
|
32
|
+
attr_accessor :version
|
|
33
|
+
|
|
34
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
35
|
+
def self.attribute_map
|
|
36
|
+
{
|
|
37
|
+
:'action' => :'action',
|
|
38
|
+
:'actor' => :'actor',
|
|
39
|
+
:'context' => :'context',
|
|
40
|
+
:'occurred_at' => :'occurred_at',
|
|
41
|
+
:'targets' => :'targets',
|
|
42
|
+
:'version' => :'version'
|
|
43
|
+
}
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
# Returns attribute mapping this model knows about
|
|
47
|
+
def self.acceptable_attribute_map
|
|
48
|
+
attribute_map
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
# Returns all the JSON keys this model knows about
|
|
52
|
+
def self.acceptable_attributes
|
|
53
|
+
acceptable_attribute_map.values
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
# Attribute type mapping.
|
|
57
|
+
def self.openapi_types
|
|
58
|
+
{
|
|
59
|
+
:'action' => :'String',
|
|
60
|
+
:'actor' => :'AuditLogActorV2',
|
|
61
|
+
:'context' => :'AuditLogEntryContextV2',
|
|
62
|
+
:'occurred_at' => :'Time',
|
|
63
|
+
:'targets' => :'Array<AuditLogTargetV2>',
|
|
64
|
+
:'version' => :'Integer'
|
|
65
|
+
}
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
# List of attributes with nullable: true
|
|
69
|
+
def self.openapi_nullable
|
|
70
|
+
Set.new([
|
|
71
|
+
])
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
# Initializes the object
|
|
75
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
76
|
+
def initialize(attributes = {})
|
|
77
|
+
if (!attributes.is_a?(Hash))
|
|
78
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `IncidentIo::AuditLogsEscalationUrgencyCreatedV1` initialize method"
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
82
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
83
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
84
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
85
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `IncidentIo::AuditLogsEscalationUrgencyCreatedV1`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
86
|
+
end
|
|
87
|
+
h[k.to_sym] = v
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
if attributes.key?(:'action')
|
|
91
|
+
self.action = attributes[:'action']
|
|
92
|
+
else
|
|
93
|
+
self.action = nil
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
if attributes.key?(:'actor')
|
|
97
|
+
self.actor = attributes[:'actor']
|
|
98
|
+
else
|
|
99
|
+
self.actor = nil
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
if attributes.key?(:'context')
|
|
103
|
+
self.context = attributes[:'context']
|
|
104
|
+
else
|
|
105
|
+
self.context = nil
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
if attributes.key?(:'occurred_at')
|
|
109
|
+
self.occurred_at = attributes[:'occurred_at']
|
|
110
|
+
else
|
|
111
|
+
self.occurred_at = nil
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
if attributes.key?(:'targets')
|
|
115
|
+
if (value = attributes[:'targets']).is_a?(Array)
|
|
116
|
+
self.targets = value
|
|
117
|
+
end
|
|
118
|
+
else
|
|
119
|
+
self.targets = nil
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
if attributes.key?(:'version')
|
|
123
|
+
self.version = attributes[:'version']
|
|
124
|
+
else
|
|
125
|
+
self.version = nil
|
|
126
|
+
end
|
|
127
|
+
end
|
|
128
|
+
|
|
129
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
130
|
+
# @return Array for valid properties with the reasons
|
|
131
|
+
def list_invalid_properties
|
|
132
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
133
|
+
invalid_properties = Array.new
|
|
134
|
+
if @action.nil?
|
|
135
|
+
invalid_properties.push('invalid value for "action", action cannot be nil.')
|
|
136
|
+
end
|
|
137
|
+
|
|
138
|
+
if @actor.nil?
|
|
139
|
+
invalid_properties.push('invalid value for "actor", actor cannot be nil.')
|
|
140
|
+
end
|
|
141
|
+
|
|
142
|
+
if @context.nil?
|
|
143
|
+
invalid_properties.push('invalid value for "context", context cannot be nil.')
|
|
144
|
+
end
|
|
145
|
+
|
|
146
|
+
if @occurred_at.nil?
|
|
147
|
+
invalid_properties.push('invalid value for "occurred_at", occurred_at cannot be nil.')
|
|
148
|
+
end
|
|
149
|
+
|
|
150
|
+
if @targets.nil?
|
|
151
|
+
invalid_properties.push('invalid value for "targets", targets cannot be nil.')
|
|
152
|
+
end
|
|
153
|
+
|
|
154
|
+
if @version.nil?
|
|
155
|
+
invalid_properties.push('invalid value for "version", version cannot be nil.')
|
|
156
|
+
end
|
|
157
|
+
|
|
158
|
+
invalid_properties
|
|
159
|
+
end
|
|
160
|
+
|
|
161
|
+
# Check to see if the all the properties in the model are valid
|
|
162
|
+
# @return true if the model is valid
|
|
163
|
+
def valid?
|
|
164
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
165
|
+
return false if @action.nil?
|
|
166
|
+
return false if @actor.nil?
|
|
167
|
+
return false if @context.nil?
|
|
168
|
+
return false if @occurred_at.nil?
|
|
169
|
+
return false if @targets.nil?
|
|
170
|
+
return false if @version.nil?
|
|
171
|
+
true
|
|
172
|
+
end
|
|
173
|
+
|
|
174
|
+
# Custom attribute writer method with validation
|
|
175
|
+
# @param [Object] action Value to be assigned
|
|
176
|
+
def action=(action)
|
|
177
|
+
if action.nil?
|
|
178
|
+
fail ArgumentError, 'action cannot be nil'
|
|
179
|
+
end
|
|
180
|
+
|
|
181
|
+
@action = action
|
|
182
|
+
end
|
|
183
|
+
|
|
184
|
+
# Custom attribute writer method with validation
|
|
185
|
+
# @param [Object] actor Value to be assigned
|
|
186
|
+
def actor=(actor)
|
|
187
|
+
if actor.nil?
|
|
188
|
+
fail ArgumentError, 'actor cannot be nil'
|
|
189
|
+
end
|
|
190
|
+
|
|
191
|
+
@actor = actor
|
|
192
|
+
end
|
|
193
|
+
|
|
194
|
+
# Custom attribute writer method with validation
|
|
195
|
+
# @param [Object] context Value to be assigned
|
|
196
|
+
def context=(context)
|
|
197
|
+
if context.nil?
|
|
198
|
+
fail ArgumentError, 'context cannot be nil'
|
|
199
|
+
end
|
|
200
|
+
|
|
201
|
+
@context = context
|
|
202
|
+
end
|
|
203
|
+
|
|
204
|
+
# Custom attribute writer method with validation
|
|
205
|
+
# @param [Object] occurred_at Value to be assigned
|
|
206
|
+
def occurred_at=(occurred_at)
|
|
207
|
+
if occurred_at.nil?
|
|
208
|
+
fail ArgumentError, 'occurred_at cannot be nil'
|
|
209
|
+
end
|
|
210
|
+
|
|
211
|
+
@occurred_at = occurred_at
|
|
212
|
+
end
|
|
213
|
+
|
|
214
|
+
# Custom attribute writer method with validation
|
|
215
|
+
# @param [Object] targets Value to be assigned
|
|
216
|
+
def targets=(targets)
|
|
217
|
+
if targets.nil?
|
|
218
|
+
fail ArgumentError, 'targets cannot be nil'
|
|
219
|
+
end
|
|
220
|
+
|
|
221
|
+
@targets = targets
|
|
222
|
+
end
|
|
223
|
+
|
|
224
|
+
# Custom attribute writer method with validation
|
|
225
|
+
# @param [Object] version Value to be assigned
|
|
226
|
+
def version=(version)
|
|
227
|
+
if version.nil?
|
|
228
|
+
fail ArgumentError, 'version cannot be nil'
|
|
229
|
+
end
|
|
230
|
+
|
|
231
|
+
@version = version
|
|
232
|
+
end
|
|
233
|
+
|
|
234
|
+
# Checks equality by comparing each attribute.
|
|
235
|
+
# @param [Object] Object to be compared
|
|
236
|
+
def ==(o)
|
|
237
|
+
return true if self.equal?(o)
|
|
238
|
+
self.class == o.class &&
|
|
239
|
+
action == o.action &&
|
|
240
|
+
actor == o.actor &&
|
|
241
|
+
context == o.context &&
|
|
242
|
+
occurred_at == o.occurred_at &&
|
|
243
|
+
targets == o.targets &&
|
|
244
|
+
version == o.version
|
|
245
|
+
end
|
|
246
|
+
|
|
247
|
+
# @see the `==` method
|
|
248
|
+
# @param [Object] Object to be compared
|
|
249
|
+
def eql?(o)
|
|
250
|
+
self == o
|
|
251
|
+
end
|
|
252
|
+
|
|
253
|
+
# Calculates hash code according to all attributes.
|
|
254
|
+
# @return [Integer] Hash code
|
|
255
|
+
def hash
|
|
256
|
+
[action, actor, context, occurred_at, targets, version].hash
|
|
257
|
+
end
|
|
258
|
+
|
|
259
|
+
# Builds the object from hash
|
|
260
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
261
|
+
# @return [Object] Returns the model itself
|
|
262
|
+
def self.build_from_hash(attributes)
|
|
263
|
+
return nil unless attributes.is_a?(Hash)
|
|
264
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
265
|
+
transformed_hash = {}
|
|
266
|
+
openapi_types.each_pair do |key, type|
|
|
267
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
268
|
+
transformed_hash["#{key}"] = nil
|
|
269
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
270
|
+
# check to ensure the input is an array given that the attribute
|
|
271
|
+
# is documented as an array but the input is not
|
|
272
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
273
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
274
|
+
end
|
|
275
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
276
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
277
|
+
end
|
|
278
|
+
end
|
|
279
|
+
new(transformed_hash)
|
|
280
|
+
end
|
|
281
|
+
|
|
282
|
+
# Returns the object in the form of hash
|
|
283
|
+
# @return [Hash] Returns the object in the form of hash
|
|
284
|
+
def to_hash
|
|
285
|
+
hash = {}
|
|
286
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
287
|
+
value = self.send(attr)
|
|
288
|
+
if value.nil?
|
|
289
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
290
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
291
|
+
end
|
|
292
|
+
|
|
293
|
+
hash[param] = _to_hash(value)
|
|
294
|
+
end
|
|
295
|
+
hash
|
|
296
|
+
end
|
|
297
|
+
|
|
298
|
+
end
|
|
299
|
+
|
|
300
|
+
end
|
|
@@ -0,0 +1,300 @@
|
|
|
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 AuditLogsEscalationUrgencyDeletedV1 < ApiModelBase
|
|
18
|
+
# The type of log entry that this is
|
|
19
|
+
attr_accessor :action
|
|
20
|
+
|
|
21
|
+
attr_accessor :actor
|
|
22
|
+
|
|
23
|
+
attr_accessor :context
|
|
24
|
+
|
|
25
|
+
# When the entry occurred
|
|
26
|
+
attr_accessor :occurred_at
|
|
27
|
+
|
|
28
|
+
# The custom field that was created
|
|
29
|
+
attr_accessor :targets
|
|
30
|
+
|
|
31
|
+
# Which version the event is
|
|
32
|
+
attr_accessor :version
|
|
33
|
+
|
|
34
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
35
|
+
def self.attribute_map
|
|
36
|
+
{
|
|
37
|
+
:'action' => :'action',
|
|
38
|
+
:'actor' => :'actor',
|
|
39
|
+
:'context' => :'context',
|
|
40
|
+
:'occurred_at' => :'occurred_at',
|
|
41
|
+
:'targets' => :'targets',
|
|
42
|
+
:'version' => :'version'
|
|
43
|
+
}
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
# Returns attribute mapping this model knows about
|
|
47
|
+
def self.acceptable_attribute_map
|
|
48
|
+
attribute_map
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
# Returns all the JSON keys this model knows about
|
|
52
|
+
def self.acceptable_attributes
|
|
53
|
+
acceptable_attribute_map.values
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
# Attribute type mapping.
|
|
57
|
+
def self.openapi_types
|
|
58
|
+
{
|
|
59
|
+
:'action' => :'String',
|
|
60
|
+
:'actor' => :'AuditLogActorV2',
|
|
61
|
+
:'context' => :'AuditLogEntryContextV2',
|
|
62
|
+
:'occurred_at' => :'Time',
|
|
63
|
+
:'targets' => :'Array<AuditLogTargetV2>',
|
|
64
|
+
:'version' => :'Integer'
|
|
65
|
+
}
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
# List of attributes with nullable: true
|
|
69
|
+
def self.openapi_nullable
|
|
70
|
+
Set.new([
|
|
71
|
+
])
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
# Initializes the object
|
|
75
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
76
|
+
def initialize(attributes = {})
|
|
77
|
+
if (!attributes.is_a?(Hash))
|
|
78
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `IncidentIo::AuditLogsEscalationUrgencyDeletedV1` initialize method"
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
82
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
83
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
84
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
85
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `IncidentIo::AuditLogsEscalationUrgencyDeletedV1`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
86
|
+
end
|
|
87
|
+
h[k.to_sym] = v
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
if attributes.key?(:'action')
|
|
91
|
+
self.action = attributes[:'action']
|
|
92
|
+
else
|
|
93
|
+
self.action = nil
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
if attributes.key?(:'actor')
|
|
97
|
+
self.actor = attributes[:'actor']
|
|
98
|
+
else
|
|
99
|
+
self.actor = nil
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
if attributes.key?(:'context')
|
|
103
|
+
self.context = attributes[:'context']
|
|
104
|
+
else
|
|
105
|
+
self.context = nil
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
if attributes.key?(:'occurred_at')
|
|
109
|
+
self.occurred_at = attributes[:'occurred_at']
|
|
110
|
+
else
|
|
111
|
+
self.occurred_at = nil
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
if attributes.key?(:'targets')
|
|
115
|
+
if (value = attributes[:'targets']).is_a?(Array)
|
|
116
|
+
self.targets = value
|
|
117
|
+
end
|
|
118
|
+
else
|
|
119
|
+
self.targets = nil
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
if attributes.key?(:'version')
|
|
123
|
+
self.version = attributes[:'version']
|
|
124
|
+
else
|
|
125
|
+
self.version = nil
|
|
126
|
+
end
|
|
127
|
+
end
|
|
128
|
+
|
|
129
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
130
|
+
# @return Array for valid properties with the reasons
|
|
131
|
+
def list_invalid_properties
|
|
132
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
133
|
+
invalid_properties = Array.new
|
|
134
|
+
if @action.nil?
|
|
135
|
+
invalid_properties.push('invalid value for "action", action cannot be nil.')
|
|
136
|
+
end
|
|
137
|
+
|
|
138
|
+
if @actor.nil?
|
|
139
|
+
invalid_properties.push('invalid value for "actor", actor cannot be nil.')
|
|
140
|
+
end
|
|
141
|
+
|
|
142
|
+
if @context.nil?
|
|
143
|
+
invalid_properties.push('invalid value for "context", context cannot be nil.')
|
|
144
|
+
end
|
|
145
|
+
|
|
146
|
+
if @occurred_at.nil?
|
|
147
|
+
invalid_properties.push('invalid value for "occurred_at", occurred_at cannot be nil.')
|
|
148
|
+
end
|
|
149
|
+
|
|
150
|
+
if @targets.nil?
|
|
151
|
+
invalid_properties.push('invalid value for "targets", targets cannot be nil.')
|
|
152
|
+
end
|
|
153
|
+
|
|
154
|
+
if @version.nil?
|
|
155
|
+
invalid_properties.push('invalid value for "version", version cannot be nil.')
|
|
156
|
+
end
|
|
157
|
+
|
|
158
|
+
invalid_properties
|
|
159
|
+
end
|
|
160
|
+
|
|
161
|
+
# Check to see if the all the properties in the model are valid
|
|
162
|
+
# @return true if the model is valid
|
|
163
|
+
def valid?
|
|
164
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
165
|
+
return false if @action.nil?
|
|
166
|
+
return false if @actor.nil?
|
|
167
|
+
return false if @context.nil?
|
|
168
|
+
return false if @occurred_at.nil?
|
|
169
|
+
return false if @targets.nil?
|
|
170
|
+
return false if @version.nil?
|
|
171
|
+
true
|
|
172
|
+
end
|
|
173
|
+
|
|
174
|
+
# Custom attribute writer method with validation
|
|
175
|
+
# @param [Object] action Value to be assigned
|
|
176
|
+
def action=(action)
|
|
177
|
+
if action.nil?
|
|
178
|
+
fail ArgumentError, 'action cannot be nil'
|
|
179
|
+
end
|
|
180
|
+
|
|
181
|
+
@action = action
|
|
182
|
+
end
|
|
183
|
+
|
|
184
|
+
# Custom attribute writer method with validation
|
|
185
|
+
# @param [Object] actor Value to be assigned
|
|
186
|
+
def actor=(actor)
|
|
187
|
+
if actor.nil?
|
|
188
|
+
fail ArgumentError, 'actor cannot be nil'
|
|
189
|
+
end
|
|
190
|
+
|
|
191
|
+
@actor = actor
|
|
192
|
+
end
|
|
193
|
+
|
|
194
|
+
# Custom attribute writer method with validation
|
|
195
|
+
# @param [Object] context Value to be assigned
|
|
196
|
+
def context=(context)
|
|
197
|
+
if context.nil?
|
|
198
|
+
fail ArgumentError, 'context cannot be nil'
|
|
199
|
+
end
|
|
200
|
+
|
|
201
|
+
@context = context
|
|
202
|
+
end
|
|
203
|
+
|
|
204
|
+
# Custom attribute writer method with validation
|
|
205
|
+
# @param [Object] occurred_at Value to be assigned
|
|
206
|
+
def occurred_at=(occurred_at)
|
|
207
|
+
if occurred_at.nil?
|
|
208
|
+
fail ArgumentError, 'occurred_at cannot be nil'
|
|
209
|
+
end
|
|
210
|
+
|
|
211
|
+
@occurred_at = occurred_at
|
|
212
|
+
end
|
|
213
|
+
|
|
214
|
+
# Custom attribute writer method with validation
|
|
215
|
+
# @param [Object] targets Value to be assigned
|
|
216
|
+
def targets=(targets)
|
|
217
|
+
if targets.nil?
|
|
218
|
+
fail ArgumentError, 'targets cannot be nil'
|
|
219
|
+
end
|
|
220
|
+
|
|
221
|
+
@targets = targets
|
|
222
|
+
end
|
|
223
|
+
|
|
224
|
+
# Custom attribute writer method with validation
|
|
225
|
+
# @param [Object] version Value to be assigned
|
|
226
|
+
def version=(version)
|
|
227
|
+
if version.nil?
|
|
228
|
+
fail ArgumentError, 'version cannot be nil'
|
|
229
|
+
end
|
|
230
|
+
|
|
231
|
+
@version = version
|
|
232
|
+
end
|
|
233
|
+
|
|
234
|
+
# Checks equality by comparing each attribute.
|
|
235
|
+
# @param [Object] Object to be compared
|
|
236
|
+
def ==(o)
|
|
237
|
+
return true if self.equal?(o)
|
|
238
|
+
self.class == o.class &&
|
|
239
|
+
action == o.action &&
|
|
240
|
+
actor == o.actor &&
|
|
241
|
+
context == o.context &&
|
|
242
|
+
occurred_at == o.occurred_at &&
|
|
243
|
+
targets == o.targets &&
|
|
244
|
+
version == o.version
|
|
245
|
+
end
|
|
246
|
+
|
|
247
|
+
# @see the `==` method
|
|
248
|
+
# @param [Object] Object to be compared
|
|
249
|
+
def eql?(o)
|
|
250
|
+
self == o
|
|
251
|
+
end
|
|
252
|
+
|
|
253
|
+
# Calculates hash code according to all attributes.
|
|
254
|
+
# @return [Integer] Hash code
|
|
255
|
+
def hash
|
|
256
|
+
[action, actor, context, occurred_at, targets, version].hash
|
|
257
|
+
end
|
|
258
|
+
|
|
259
|
+
# Builds the object from hash
|
|
260
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
261
|
+
# @return [Object] Returns the model itself
|
|
262
|
+
def self.build_from_hash(attributes)
|
|
263
|
+
return nil unless attributes.is_a?(Hash)
|
|
264
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
265
|
+
transformed_hash = {}
|
|
266
|
+
openapi_types.each_pair do |key, type|
|
|
267
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
268
|
+
transformed_hash["#{key}"] = nil
|
|
269
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
270
|
+
# check to ensure the input is an array given that the attribute
|
|
271
|
+
# is documented as an array but the input is not
|
|
272
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
273
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
274
|
+
end
|
|
275
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
276
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
277
|
+
end
|
|
278
|
+
end
|
|
279
|
+
new(transformed_hash)
|
|
280
|
+
end
|
|
281
|
+
|
|
282
|
+
# Returns the object in the form of hash
|
|
283
|
+
# @return [Hash] Returns the object in the form of hash
|
|
284
|
+
def to_hash
|
|
285
|
+
hash = {}
|
|
286
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
287
|
+
value = self.send(attr)
|
|
288
|
+
if value.nil?
|
|
289
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
290
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
291
|
+
end
|
|
292
|
+
|
|
293
|
+
hash[param] = _to_hash(value)
|
|
294
|
+
end
|
|
295
|
+
hash
|
|
296
|
+
end
|
|
297
|
+
|
|
298
|
+
end
|
|
299
|
+
|
|
300
|
+
end
|
|
@@ -0,0 +1,300 @@
|
|
|
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 AuditLogsEscalationUrgencyUpdatedV1 < ApiModelBase
|
|
18
|
+
# The type of log entry that this is
|
|
19
|
+
attr_accessor :action
|
|
20
|
+
|
|
21
|
+
attr_accessor :actor
|
|
22
|
+
|
|
23
|
+
attr_accessor :context
|
|
24
|
+
|
|
25
|
+
# When the entry occurred
|
|
26
|
+
attr_accessor :occurred_at
|
|
27
|
+
|
|
28
|
+
# The custom field that was created
|
|
29
|
+
attr_accessor :targets
|
|
30
|
+
|
|
31
|
+
# Which version the event is
|
|
32
|
+
attr_accessor :version
|
|
33
|
+
|
|
34
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
35
|
+
def self.attribute_map
|
|
36
|
+
{
|
|
37
|
+
:'action' => :'action',
|
|
38
|
+
:'actor' => :'actor',
|
|
39
|
+
:'context' => :'context',
|
|
40
|
+
:'occurred_at' => :'occurred_at',
|
|
41
|
+
:'targets' => :'targets',
|
|
42
|
+
:'version' => :'version'
|
|
43
|
+
}
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
# Returns attribute mapping this model knows about
|
|
47
|
+
def self.acceptable_attribute_map
|
|
48
|
+
attribute_map
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
# Returns all the JSON keys this model knows about
|
|
52
|
+
def self.acceptable_attributes
|
|
53
|
+
acceptable_attribute_map.values
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
# Attribute type mapping.
|
|
57
|
+
def self.openapi_types
|
|
58
|
+
{
|
|
59
|
+
:'action' => :'String',
|
|
60
|
+
:'actor' => :'AuditLogActorV2',
|
|
61
|
+
:'context' => :'AuditLogEntryContextV2',
|
|
62
|
+
:'occurred_at' => :'Time',
|
|
63
|
+
:'targets' => :'Array<AuditLogTargetV2>',
|
|
64
|
+
:'version' => :'Integer'
|
|
65
|
+
}
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
# List of attributes with nullable: true
|
|
69
|
+
def self.openapi_nullable
|
|
70
|
+
Set.new([
|
|
71
|
+
])
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
# Initializes the object
|
|
75
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
76
|
+
def initialize(attributes = {})
|
|
77
|
+
if (!attributes.is_a?(Hash))
|
|
78
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `IncidentIo::AuditLogsEscalationUrgencyUpdatedV1` initialize method"
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
82
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
83
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
84
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
85
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `IncidentIo::AuditLogsEscalationUrgencyUpdatedV1`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
86
|
+
end
|
|
87
|
+
h[k.to_sym] = v
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
if attributes.key?(:'action')
|
|
91
|
+
self.action = attributes[:'action']
|
|
92
|
+
else
|
|
93
|
+
self.action = nil
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
if attributes.key?(:'actor')
|
|
97
|
+
self.actor = attributes[:'actor']
|
|
98
|
+
else
|
|
99
|
+
self.actor = nil
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
if attributes.key?(:'context')
|
|
103
|
+
self.context = attributes[:'context']
|
|
104
|
+
else
|
|
105
|
+
self.context = nil
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
if attributes.key?(:'occurred_at')
|
|
109
|
+
self.occurred_at = attributes[:'occurred_at']
|
|
110
|
+
else
|
|
111
|
+
self.occurred_at = nil
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
if attributes.key?(:'targets')
|
|
115
|
+
if (value = attributes[:'targets']).is_a?(Array)
|
|
116
|
+
self.targets = value
|
|
117
|
+
end
|
|
118
|
+
else
|
|
119
|
+
self.targets = nil
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
if attributes.key?(:'version')
|
|
123
|
+
self.version = attributes[:'version']
|
|
124
|
+
else
|
|
125
|
+
self.version = nil
|
|
126
|
+
end
|
|
127
|
+
end
|
|
128
|
+
|
|
129
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
130
|
+
# @return Array for valid properties with the reasons
|
|
131
|
+
def list_invalid_properties
|
|
132
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
133
|
+
invalid_properties = Array.new
|
|
134
|
+
if @action.nil?
|
|
135
|
+
invalid_properties.push('invalid value for "action", action cannot be nil.')
|
|
136
|
+
end
|
|
137
|
+
|
|
138
|
+
if @actor.nil?
|
|
139
|
+
invalid_properties.push('invalid value for "actor", actor cannot be nil.')
|
|
140
|
+
end
|
|
141
|
+
|
|
142
|
+
if @context.nil?
|
|
143
|
+
invalid_properties.push('invalid value for "context", context cannot be nil.')
|
|
144
|
+
end
|
|
145
|
+
|
|
146
|
+
if @occurred_at.nil?
|
|
147
|
+
invalid_properties.push('invalid value for "occurred_at", occurred_at cannot be nil.')
|
|
148
|
+
end
|
|
149
|
+
|
|
150
|
+
if @targets.nil?
|
|
151
|
+
invalid_properties.push('invalid value for "targets", targets cannot be nil.')
|
|
152
|
+
end
|
|
153
|
+
|
|
154
|
+
if @version.nil?
|
|
155
|
+
invalid_properties.push('invalid value for "version", version cannot be nil.')
|
|
156
|
+
end
|
|
157
|
+
|
|
158
|
+
invalid_properties
|
|
159
|
+
end
|
|
160
|
+
|
|
161
|
+
# Check to see if the all the properties in the model are valid
|
|
162
|
+
# @return true if the model is valid
|
|
163
|
+
def valid?
|
|
164
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
165
|
+
return false if @action.nil?
|
|
166
|
+
return false if @actor.nil?
|
|
167
|
+
return false if @context.nil?
|
|
168
|
+
return false if @occurred_at.nil?
|
|
169
|
+
return false if @targets.nil?
|
|
170
|
+
return false if @version.nil?
|
|
171
|
+
true
|
|
172
|
+
end
|
|
173
|
+
|
|
174
|
+
# Custom attribute writer method with validation
|
|
175
|
+
# @param [Object] action Value to be assigned
|
|
176
|
+
def action=(action)
|
|
177
|
+
if action.nil?
|
|
178
|
+
fail ArgumentError, 'action cannot be nil'
|
|
179
|
+
end
|
|
180
|
+
|
|
181
|
+
@action = action
|
|
182
|
+
end
|
|
183
|
+
|
|
184
|
+
# Custom attribute writer method with validation
|
|
185
|
+
# @param [Object] actor Value to be assigned
|
|
186
|
+
def actor=(actor)
|
|
187
|
+
if actor.nil?
|
|
188
|
+
fail ArgumentError, 'actor cannot be nil'
|
|
189
|
+
end
|
|
190
|
+
|
|
191
|
+
@actor = actor
|
|
192
|
+
end
|
|
193
|
+
|
|
194
|
+
# Custom attribute writer method with validation
|
|
195
|
+
# @param [Object] context Value to be assigned
|
|
196
|
+
def context=(context)
|
|
197
|
+
if context.nil?
|
|
198
|
+
fail ArgumentError, 'context cannot be nil'
|
|
199
|
+
end
|
|
200
|
+
|
|
201
|
+
@context = context
|
|
202
|
+
end
|
|
203
|
+
|
|
204
|
+
# Custom attribute writer method with validation
|
|
205
|
+
# @param [Object] occurred_at Value to be assigned
|
|
206
|
+
def occurred_at=(occurred_at)
|
|
207
|
+
if occurred_at.nil?
|
|
208
|
+
fail ArgumentError, 'occurred_at cannot be nil'
|
|
209
|
+
end
|
|
210
|
+
|
|
211
|
+
@occurred_at = occurred_at
|
|
212
|
+
end
|
|
213
|
+
|
|
214
|
+
# Custom attribute writer method with validation
|
|
215
|
+
# @param [Object] targets Value to be assigned
|
|
216
|
+
def targets=(targets)
|
|
217
|
+
if targets.nil?
|
|
218
|
+
fail ArgumentError, 'targets cannot be nil'
|
|
219
|
+
end
|
|
220
|
+
|
|
221
|
+
@targets = targets
|
|
222
|
+
end
|
|
223
|
+
|
|
224
|
+
# Custom attribute writer method with validation
|
|
225
|
+
# @param [Object] version Value to be assigned
|
|
226
|
+
def version=(version)
|
|
227
|
+
if version.nil?
|
|
228
|
+
fail ArgumentError, 'version cannot be nil'
|
|
229
|
+
end
|
|
230
|
+
|
|
231
|
+
@version = version
|
|
232
|
+
end
|
|
233
|
+
|
|
234
|
+
# Checks equality by comparing each attribute.
|
|
235
|
+
# @param [Object] Object to be compared
|
|
236
|
+
def ==(o)
|
|
237
|
+
return true if self.equal?(o)
|
|
238
|
+
self.class == o.class &&
|
|
239
|
+
action == o.action &&
|
|
240
|
+
actor == o.actor &&
|
|
241
|
+
context == o.context &&
|
|
242
|
+
occurred_at == o.occurred_at &&
|
|
243
|
+
targets == o.targets &&
|
|
244
|
+
version == o.version
|
|
245
|
+
end
|
|
246
|
+
|
|
247
|
+
# @see the `==` method
|
|
248
|
+
# @param [Object] Object to be compared
|
|
249
|
+
def eql?(o)
|
|
250
|
+
self == o
|
|
251
|
+
end
|
|
252
|
+
|
|
253
|
+
# Calculates hash code according to all attributes.
|
|
254
|
+
# @return [Integer] Hash code
|
|
255
|
+
def hash
|
|
256
|
+
[action, actor, context, occurred_at, targets, version].hash
|
|
257
|
+
end
|
|
258
|
+
|
|
259
|
+
# Builds the object from hash
|
|
260
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
261
|
+
# @return [Object] Returns the model itself
|
|
262
|
+
def self.build_from_hash(attributes)
|
|
263
|
+
return nil unless attributes.is_a?(Hash)
|
|
264
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
265
|
+
transformed_hash = {}
|
|
266
|
+
openapi_types.each_pair do |key, type|
|
|
267
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
268
|
+
transformed_hash["#{key}"] = nil
|
|
269
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
270
|
+
# check to ensure the input is an array given that the attribute
|
|
271
|
+
# is documented as an array but the input is not
|
|
272
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
273
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
274
|
+
end
|
|
275
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
276
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
277
|
+
end
|
|
278
|
+
end
|
|
279
|
+
new(transformed_hash)
|
|
280
|
+
end
|
|
281
|
+
|
|
282
|
+
# Returns the object in the form of hash
|
|
283
|
+
# @return [Hash] Returns the object in the form of hash
|
|
284
|
+
def to_hash
|
|
285
|
+
hash = {}
|
|
286
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
287
|
+
value = self.send(attr)
|
|
288
|
+
if value.nil?
|
|
289
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
290
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
291
|
+
end
|
|
292
|
+
|
|
293
|
+
hash[param] = _to_hash(value)
|
|
294
|
+
end
|
|
295
|
+
hash
|
|
296
|
+
end
|
|
297
|
+
|
|
298
|
+
end
|
|
299
|
+
|
|
300
|
+
end
|
|
@@ -16,7 +16,7 @@ require 'time'
|
|
|
16
16
|
module IncidentIo
|
|
17
17
|
# A pay config sets what someone is paid for being on call: a base rate, plus rules that override it at particular times. An on-call pay report prices each person's shifts against one. Rules are evaluated in the order they are returned, and the first one that covers a shift wins. Any time no rule covers is paid at the base rate.
|
|
18
18
|
class PayConfigV2 < ApiModelBase
|
|
19
|
-
# Rate paid for any time no rule covers, in the lowest denomination of the currency
|
|
19
|
+
# Rate paid for one unit of rate_time_unit, for any time no rule covers, in the lowest denomination of the currency
|
|
20
20
|
attr_accessor :base_rate_cents
|
|
21
21
|
|
|
22
22
|
attr_accessor :created_at
|
|
@@ -36,7 +36,7 @@ module IncidentIo
|
|
|
36
36
|
# When a published report first priced against this config. Once set, editing the config needs the schedule_pay_configs.update_published scope.
|
|
37
37
|
attr_accessor :published_at
|
|
38
38
|
|
|
39
|
-
# The unit of time every rate on this config is quoted per. Pay is pro-rated by the second
|
|
39
|
+
# The unit of time every rate on this config is quoted per: hour, day, or week. A day is 24 hours of shift time and a week is 7 days. Pay is pro-rated by the second. Known values: `hour`, `day`, `week`
|
|
40
40
|
attr_accessor :rate_time_unit
|
|
41
41
|
|
|
42
42
|
# IANA timezone this config's rules are interpreted in
|
|
@@ -44,7 +44,7 @@ module IncidentIo
|
|
|
44
44
|
|
|
45
45
|
attr_accessor :updated_at
|
|
46
46
|
|
|
47
|
-
# Rules that apply every week, by day of week and time of day, in evaluation order
|
|
47
|
+
# Rules that apply every week, by day of week and time of day, in evaluation order. Must be empty when rate_time_unit is week.
|
|
48
48
|
attr_accessor :weekly_rules
|
|
49
49
|
|
|
50
50
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
@@ -15,7 +15,7 @@ require 'time'
|
|
|
15
15
|
|
|
16
16
|
module IncidentIo
|
|
17
17
|
class PayConfigsCreatePayloadV2 < ApiModelBase
|
|
18
|
-
# Rate paid for any time no rule covers, in the lowest denomination of the currency
|
|
18
|
+
# Rate paid for one unit of rate_time_unit, for any time no rule covers, in the lowest denomination of the currency
|
|
19
19
|
attr_accessor :base_rate_cents
|
|
20
20
|
|
|
21
21
|
# Currency this config pays in, in ISO 4217 format
|
|
@@ -27,7 +27,7 @@ module IncidentIo
|
|
|
27
27
|
# Rules that apply over a single window of time
|
|
28
28
|
attr_accessor :one_off_rules
|
|
29
29
|
|
|
30
|
-
# The unit of time every rate on this config is quoted per Known values: `hour`, `day`
|
|
30
|
+
# The unit of time every rate on this config is quoted per: hour, day, or week. A day is 24 hours of shift time and a week is 7 days. Pay is pro-rated by the second. Known values: `hour`, `day`, `week`
|
|
31
31
|
attr_accessor :rate_time_unit
|
|
32
32
|
|
|
33
33
|
# IANA timezone this config's rules are interpreted in
|
|
@@ -15,7 +15,7 @@ require 'time'
|
|
|
15
15
|
|
|
16
16
|
module IncidentIo
|
|
17
17
|
class PayConfigsUpdatePayloadV2 < ApiModelBase
|
|
18
|
-
# Rate paid for any time no rule covers, in the lowest denomination of the currency
|
|
18
|
+
# Rate paid for one unit of rate_time_unit, for any time no rule covers, in the lowest denomination of the currency
|
|
19
19
|
attr_accessor :base_rate_cents
|
|
20
20
|
|
|
21
21
|
# Currency this config pays in, in ISO 4217 format
|
|
@@ -24,7 +24,7 @@ module IncidentIo
|
|
|
24
24
|
# Human readable name for this pay config
|
|
25
25
|
attr_accessor :name
|
|
26
26
|
|
|
27
|
-
# The unit of time every rate on this config is quoted per. Pay is pro-rated by the second
|
|
27
|
+
# The unit of time every rate on this config is quoted per: hour, day, or week. A day is 24 hours of shift time and a week is 7 days. Pay is pro-rated by the second. Known values: `hour`, `day`, `week`
|
|
28
28
|
attr_accessor :rate_time_unit
|
|
29
29
|
|
|
30
30
|
# IANA timezone this config's rules are interpreted in
|
data/lib/incident_io/version.rb
CHANGED
data/lib/incident_io.rb
CHANGED
|
@@ -388,6 +388,9 @@ IncidentIo.autoload :AuditLogsEscalationPathUpdatedV1, 'incident_io/models/audit
|
|
|
388
388
|
IncidentIo.autoload :AuditLogsEscalationPathUpdatedV2, 'incident_io/models/audit_logs_escalation_path_updated_v2'
|
|
389
389
|
IncidentIo.autoload :AuditLogsEscalationScrubbedV1, 'incident_io/models/audit_logs_escalation_scrubbed_v1'
|
|
390
390
|
IncidentIo.autoload :AuditLogsEscalationScrubbedV2, 'incident_io/models/audit_logs_escalation_scrubbed_v2'
|
|
391
|
+
IncidentIo.autoload :AuditLogsEscalationUrgencyCreatedV1, 'incident_io/models/audit_logs_escalation_urgency_created_v1'
|
|
392
|
+
IncidentIo.autoload :AuditLogsEscalationUrgencyDeletedV1, 'incident_io/models/audit_logs_escalation_urgency_deleted_v1'
|
|
393
|
+
IncidentIo.autoload :AuditLogsEscalationUrgencyUpdatedV1, 'incident_io/models/audit_logs_escalation_urgency_updated_v1'
|
|
391
394
|
IncidentIo.autoload :AuditLogsExtensionConnectorCalledV1, 'incident_io/models/audit_logs_extension_connector_called_v1'
|
|
392
395
|
IncidentIo.autoload :AuditLogsExtensionConnectorCalledV2, 'incident_io/models/audit_logs_extension_connector_called_v2'
|
|
393
396
|
IncidentIo.autoload :AuditLogsExtensionConnectorCalledV3, 'incident_io/models/audit_logs_extension_connector_called_v3'
|
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.49.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-11-
|
|
11
|
+
date: 2026-11-11 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|
|
@@ -516,6 +516,9 @@ files:
|
|
|
516
516
|
- lib/incident_io/models/audit_logs_escalation_path_updated_v2.rb
|
|
517
517
|
- lib/incident_io/models/audit_logs_escalation_scrubbed_v1.rb
|
|
518
518
|
- lib/incident_io/models/audit_logs_escalation_scrubbed_v2.rb
|
|
519
|
+
- lib/incident_io/models/audit_logs_escalation_urgency_created_v1.rb
|
|
520
|
+
- lib/incident_io/models/audit_logs_escalation_urgency_deleted_v1.rb
|
|
521
|
+
- lib/incident_io/models/audit_logs_escalation_urgency_updated_v1.rb
|
|
519
522
|
- lib/incident_io/models/audit_logs_extension_connector_called_v1.rb
|
|
520
523
|
- lib/incident_io/models/audit_logs_extension_connector_called_v2.rb
|
|
521
524
|
- lib/incident_io/models/audit_logs_extension_connector_called_v3.rb
|