incident_io_api 5.0.0 → 5.2.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/escalations_v2_api.rb +4 -4
- data/lib/incident_io/models/api_key_role_v1.rb +1 -1
- data/lib/incident_io/models/audit_log_reliability_review_repository_updated_metadata_v2.rb +71 -1
- data/lib/incident_io/models/audit_logs_reliability_review_repository_updated_v3.rb +326 -0
- data/lib/incident_io/models/escalation_priority_v2.rb +2 -2
- data/lib/incident_io/version.rb +1 -1
- data/lib/incident_io.rb +1 -0
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 889508dcdc5708cfe3f358c02ad7c113c40f08f6e99da025a924eab44099e42c
|
|
4
|
+
data.tar.gz: 6f1a67ad1aa054f5364e1c694d9b697502c762f2db9c55fb26a558f88bfad022
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 687f2784956a0c3ab1e286b4f69cfe79d721235eaabb785534a5d16f41503b7605153c0d874e38d7d8b86fd5d6ab8688e9ec59bfd1f1252cdd3f26082d96f263
|
|
7
|
+
data.tar.gz: dd1aafb3cd1143b596a206496bb88785a688a81d64592e2f96462b1cfb38852a4ae56a486dd3331d048333564e0ee3f807164f89f86af3e1f896b7d9fc019870
|
|
@@ -157,7 +157,7 @@ module IncidentIo
|
|
|
157
157
|
end
|
|
158
158
|
|
|
159
159
|
# Create Escalations V2
|
|
160
|
-
# Create an escalation. An escalation pages people, either according to an escalation path, or directly to specific users. You must provide either an escalation_path_id OR user_ids, but not both. When escalating via an escalation path, the escalation will follow the configured path with its levels and timeouts
|
|
160
|
+
# Create an escalation. An escalation pages people, either according to an escalation path, or directly to specific users. You must provide either an escalation_path_id OR user_ids, but not both. Each escalation pages at your default escalation urgency, and its priority field returns that urgency's name. When escalating via an escalation path, the escalation will follow the configured path with its levels and timeouts. When escalating directly to users, they're notified at that urgency's default interruption level (high or low), based on their notification rules. This endpoint is rate-limited to 60 requests per minute, since it is intended for interactive use cases (for example someone clicking a \"escalate to team\" button in your internal developer platform). To escalate based on automated alerts, we recommend sending events to an alert source instead. If your API key's permissions are scoped to teams, you can only escalate via an escalation path that one of those teams owns. Escalating directly to user_ids needs the permission at the account level, because an escalation aimed at a person has no owning team.
|
|
161
161
|
# @param escalations_create_payload_v2 [EscalationsCreatePayloadV2]
|
|
162
162
|
# @param [Hash] opts the optional parameters
|
|
163
163
|
# @return [EscalationsCreateResultV2]
|
|
@@ -167,7 +167,7 @@ module IncidentIo
|
|
|
167
167
|
end
|
|
168
168
|
|
|
169
169
|
# Create Escalations V2
|
|
170
|
-
# Create an escalation. An escalation pages people, either according to an escalation path, or directly to specific users. You must provide either an escalation_path_id OR user_ids, but not both. When escalating via an escalation path, the escalation will follow the configured path with its levels and timeouts
|
|
170
|
+
# Create an escalation. An escalation pages people, either according to an escalation path, or directly to specific users. You must provide either an escalation_path_id OR user_ids, but not both. Each escalation pages at your default escalation urgency, and its priority field returns that urgency's name. When escalating via an escalation path, the escalation will follow the configured path with its levels and timeouts. When escalating directly to users, they're notified at that urgency's default interruption level (high or low), based on their notification rules. This endpoint is rate-limited to 60 requests per minute, since it is intended for interactive use cases (for example someone clicking a \"escalate to team\" button in your internal developer platform). To escalate based on automated alerts, we recommend sending events to an alert source instead. If your API key's permissions are scoped to teams, you can only escalate via an escalation path that one of those teams owns. Escalating directly to user_ids needs the permission at the account level, because an escalation aimed at a person has no owning team.
|
|
171
171
|
# @param escalations_create_payload_v2 [EscalationsCreatePayloadV2]
|
|
172
172
|
# @param [Hash] opts the optional parameters
|
|
173
173
|
# @return [Array<(EscalationsCreateResultV2, Integer, Hash)>] EscalationsCreateResultV2 data, response status code and response headers
|
|
@@ -317,7 +317,7 @@ module IncidentIo
|
|
|
317
317
|
end
|
|
318
318
|
|
|
319
319
|
# ReassignEscalation Escalations V2
|
|
320
|
-
# Reassign an escalation to a different escalation path or set of users. Use this when a page reached the wrong people. Reassigning creates a new escalation aimed at the targets you give, linked back to the original, and carries over the original's title, description,
|
|
320
|
+
# Reassign an escalation to a different escalation path or set of users. Use this when a page reached the wrong people. Reassigning creates a new escalation aimed at the targets you give, linked back to the original, and carries over the original's title, description, escalation urgency, incident and alert so the page stays attached to the same alert and acknowledgements keep grouping under it. You must provide either an escalation_path_id OR user_ids, but not both. Both name incident.io escalation paths and users, so an escalation cannot be reassigned to an external escalator such as PagerDuty or Opsgenie. By default the original escalation is resolved, so the first targets stop being paged. Pass resolve_original=false to leave it running alongside the new one. Resolving the original additionally needs the \"escalations.respond\" permission, since it stops a page someone else may be responding to. An escalation can only be reassigned once: calling this again for the same escalation is rejected. Retrying a request whose response you never saw is safe in the sense that matters — a reassignment that already happened is never repeated, so nobody is paged twice — but the retry is rejected rather than returning the escalation the first call created, so keep the ID from the original response. To use this API, you will need an API key with the \"Create and manage escalations\" permission. The reassignment is attributed to the key; to attribute it to one of your users instead, set the X-Incident-User header, which needs the \"api_keys.act_on_behalf_of_users\" scope and no team permissions on the key. If your API key's permissions are scoped to teams, the escalation you're reassigning must be owned by one of those teams, and you can only reassign via an escalation path one of them owns. Reassigning directly to user_ids needs the permission at the account level, because an escalation aimed at a person has no owning team.
|
|
321
321
|
# @param escalation_id [String] The ID of the escalation to reassign
|
|
322
322
|
# @param escalations_reassign_escalation_payload_v2 [EscalationsReassignEscalationPayloadV2]
|
|
323
323
|
# @param [Hash] opts the optional parameters
|
|
@@ -328,7 +328,7 @@ module IncidentIo
|
|
|
328
328
|
end
|
|
329
329
|
|
|
330
330
|
# ReassignEscalation Escalations V2
|
|
331
|
-
# Reassign an escalation to a different escalation path or set of users. Use this when a page reached the wrong people. Reassigning creates a new escalation aimed at the targets you give, linked back to the original, and carries over the original's title, description,
|
|
331
|
+
# Reassign an escalation to a different escalation path or set of users. Use this when a page reached the wrong people. Reassigning creates a new escalation aimed at the targets you give, linked back to the original, and carries over the original's title, description, escalation urgency, incident and alert so the page stays attached to the same alert and acknowledgements keep grouping under it. You must provide either an escalation_path_id OR user_ids, but not both. Both name incident.io escalation paths and users, so an escalation cannot be reassigned to an external escalator such as PagerDuty or Opsgenie. By default the original escalation is resolved, so the first targets stop being paged. Pass resolve_original=false to leave it running alongside the new one. Resolving the original additionally needs the \"escalations.respond\" permission, since it stops a page someone else may be responding to. An escalation can only be reassigned once: calling this again for the same escalation is rejected. Retrying a request whose response you never saw is safe in the sense that matters — a reassignment that already happened is never repeated, so nobody is paged twice — but the retry is rejected rather than returning the escalation the first call created, so keep the ID from the original response. To use this API, you will need an API key with the \"Create and manage escalations\" permission. The reassignment is attributed to the key; to attribute it to one of your users instead, set the X-Incident-User header, which needs the \"api_keys.act_on_behalf_of_users\" scope and no team permissions on the key. If your API key's permissions are scoped to teams, the escalation you're reassigning must be owned by one of those teams, and you can only reassign via an escalation path one of them owns. Reassigning directly to user_ids needs the permission at the account level, because an escalation aimed at a person has no owning team.
|
|
332
332
|
# @param escalation_id [String] The ID of the escalation to reassign
|
|
333
333
|
# @param escalations_reassign_escalation_payload_v2 [EscalationsReassignEscalationPayloadV2]
|
|
334
334
|
# @param [Hash] opts the optional parameters
|
|
@@ -18,7 +18,7 @@ module IncidentIo
|
|
|
18
18
|
# Human readable description of the role
|
|
19
19
|
attr_accessor :description
|
|
20
20
|
|
|
21
|
-
# API key role name Known values: `viewer`, `incident_creator`, `incident_editor`, `manage_settings`, `glossary_entries_manage`, `global_access`, `catalog_viewer`, `catalog_editor`, `incident_memberships_editor`, `schedules_editor`, `schedules_reader`, `schedule_overrides_editor`, `workflows_editor`, `workflows_viewer`, `private_workflows_editor`, `private_escalation_workflows_editor`, `on_call_editor`, `on_call_viewer`, `escalation_creator`, `post_incident_flow_opt_out`, `security_settings_editor`, `investigation_download`, `team_memberships_manage`, `status_page_publisher`, `status_page_viewer`, `postmortems_manage`, `api_keys_manage`, `notification_methods_manage`, `notification_methods_unredacted_viewer`, `incident_workload_viewer`, `incident_workload_private_viewer`, `act_on_behalf_of_users`, `secrets_manage`, `secrets_use`, `call_transcripts_viewer`, `heartbeats_ping`, `telemetry_query_restricted`, `telemetry_data_source_update`, `policies_viewer`, `policy_findings_manage`, `pay_reports_viewer`, `pay_reports_editor`, `pay_configs_viewer`, `pay_configs_editor`, `investigations_editor`, `telemetry_viewer`, `documents_viewer`, `user_sessions_revoke`, `users_viewer`, `access_control_manage`
|
|
21
|
+
# API key role name Known values: `viewer`, `incident_creator`, `incident_editor`, `manage_settings`, `glossary_entries_manage`, `global_access`, `catalog_viewer`, `catalog_editor`, `incident_memberships_editor`, `schedules_editor`, `schedules_reader`, `schedule_overrides_editor`, `workflows_editor`, `workflows_viewer`, `private_workflows_editor`, `private_escalation_workflows_editor`, `on_call_editor`, `on_call_viewer`, `escalation_creator`, `post_incident_flow_opt_out`, `security_settings_editor`, `investigation_download`, `team_memberships_manage`, `status_page_publisher`, `status_page_viewer`, `postmortems_manage`, `api_keys_manage`, `notification_methods_manage`, `notification_methods_unredacted_viewer`, `incident_workload_viewer`, `incident_workload_private_viewer`, `act_on_behalf_of_users`, `secrets_manage`, `secrets_use`, `call_transcripts_viewer`, `heartbeats_ping`, `telemetry_query_restricted`, `telemetry_data_source_update`, `policies_viewer`, `policy_findings_manage`, `private_policies_editor`, `pay_reports_viewer`, `pay_reports_editor`, `pay_configs_viewer`, `pay_configs_editor`, `investigations_editor`, `telemetry_viewer`, `documents_viewer`, `user_sessions_revoke`, `users_viewer`, `access_control_manage`
|
|
22
22
|
attr_accessor :name
|
|
23
23
|
|
|
24
24
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
@@ -15,12 +15,40 @@ require 'time'
|
|
|
15
15
|
|
|
16
16
|
module IncidentIo
|
|
17
17
|
class AuditLogReliabilityReviewRepositoryUpdatedMetadataV2 < ApiModelBase
|
|
18
|
+
# Which pushes to the repository's pull requests are reviewed after the change (organisation_default, every_push, once_per_pull_request)
|
|
19
|
+
attr_accessor :after_automatic_reviews
|
|
20
|
+
|
|
21
|
+
# Whether the repository's draft pull requests are reviewed after the change (organisation_default, review, skip)
|
|
22
|
+
attr_accessor :after_draft_reviews
|
|
23
|
+
|
|
24
|
+
# Whether a review of the repository's pull request that finds no issues posts a comment after the change (organisation_default, post, skip)
|
|
25
|
+
attr_accessor :after_no_issue_reviews
|
|
26
|
+
|
|
27
|
+
# Which pushes to the repository's pull requests were reviewed before the change (organisation_default, every_push, once_per_pull_request)
|
|
28
|
+
attr_accessor :before_automatic_reviews
|
|
29
|
+
|
|
30
|
+
# Whether the repository's draft pull requests were reviewed before the change (organisation_default, review, skip)
|
|
31
|
+
attr_accessor :before_draft_reviews
|
|
32
|
+
|
|
33
|
+
# Whether a review of the repository's pull request that found no issues posted a comment before the change (organisation_default, post, skip)
|
|
34
|
+
attr_accessor :before_no_issue_reviews
|
|
35
|
+
|
|
36
|
+
# Which of the repository's review settings the update changed, comma separated (automatic_reviews, draft_reviews, no_issue_reviews). Absent when reviews were turned on or off
|
|
37
|
+
attr_accessor :changed
|
|
38
|
+
|
|
18
39
|
# Whether pull requests to the repository are reviewed after the change (enabled, disabled)
|
|
19
40
|
attr_accessor :reviews
|
|
20
41
|
|
|
21
42
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
22
43
|
def self.attribute_map
|
|
23
44
|
{
|
|
45
|
+
:'after_automatic_reviews' => :'after_automatic_reviews',
|
|
46
|
+
:'after_draft_reviews' => :'after_draft_reviews',
|
|
47
|
+
:'after_no_issue_reviews' => :'after_no_issue_reviews',
|
|
48
|
+
:'before_automatic_reviews' => :'before_automatic_reviews',
|
|
49
|
+
:'before_draft_reviews' => :'before_draft_reviews',
|
|
50
|
+
:'before_no_issue_reviews' => :'before_no_issue_reviews',
|
|
51
|
+
:'changed' => :'changed',
|
|
24
52
|
:'reviews' => :'reviews'
|
|
25
53
|
}
|
|
26
54
|
end
|
|
@@ -38,6 +66,13 @@ module IncidentIo
|
|
|
38
66
|
# Attribute type mapping.
|
|
39
67
|
def self.openapi_types
|
|
40
68
|
{
|
|
69
|
+
:'after_automatic_reviews' => :'String',
|
|
70
|
+
:'after_draft_reviews' => :'String',
|
|
71
|
+
:'after_no_issue_reviews' => :'String',
|
|
72
|
+
:'before_automatic_reviews' => :'String',
|
|
73
|
+
:'before_draft_reviews' => :'String',
|
|
74
|
+
:'before_no_issue_reviews' => :'String',
|
|
75
|
+
:'changed' => :'String',
|
|
41
76
|
:'reviews' => :'String'
|
|
42
77
|
}
|
|
43
78
|
end
|
|
@@ -64,6 +99,34 @@ module IncidentIo
|
|
|
64
99
|
h[k.to_sym] = v
|
|
65
100
|
}
|
|
66
101
|
|
|
102
|
+
if attributes.key?(:'after_automatic_reviews')
|
|
103
|
+
self.after_automatic_reviews = attributes[:'after_automatic_reviews']
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
if attributes.key?(:'after_draft_reviews')
|
|
107
|
+
self.after_draft_reviews = attributes[:'after_draft_reviews']
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
if attributes.key?(:'after_no_issue_reviews')
|
|
111
|
+
self.after_no_issue_reviews = attributes[:'after_no_issue_reviews']
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
if attributes.key?(:'before_automatic_reviews')
|
|
115
|
+
self.before_automatic_reviews = attributes[:'before_automatic_reviews']
|
|
116
|
+
end
|
|
117
|
+
|
|
118
|
+
if attributes.key?(:'before_draft_reviews')
|
|
119
|
+
self.before_draft_reviews = attributes[:'before_draft_reviews']
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
if attributes.key?(:'before_no_issue_reviews')
|
|
123
|
+
self.before_no_issue_reviews = attributes[:'before_no_issue_reviews']
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
if attributes.key?(:'changed')
|
|
127
|
+
self.changed = attributes[:'changed']
|
|
128
|
+
end
|
|
129
|
+
|
|
67
130
|
if attributes.key?(:'reviews')
|
|
68
131
|
self.reviews = attributes[:'reviews']
|
|
69
132
|
else
|
|
@@ -106,6 +169,13 @@ module IncidentIo
|
|
|
106
169
|
def ==(o)
|
|
107
170
|
return true if self.equal?(o)
|
|
108
171
|
self.class == o.class &&
|
|
172
|
+
after_automatic_reviews == o.after_automatic_reviews &&
|
|
173
|
+
after_draft_reviews == o.after_draft_reviews &&
|
|
174
|
+
after_no_issue_reviews == o.after_no_issue_reviews &&
|
|
175
|
+
before_automatic_reviews == o.before_automatic_reviews &&
|
|
176
|
+
before_draft_reviews == o.before_draft_reviews &&
|
|
177
|
+
before_no_issue_reviews == o.before_no_issue_reviews &&
|
|
178
|
+
changed == o.changed &&
|
|
109
179
|
reviews == o.reviews
|
|
110
180
|
end
|
|
111
181
|
|
|
@@ -118,7 +188,7 @@ module IncidentIo
|
|
|
118
188
|
# Calculates hash code according to all attributes.
|
|
119
189
|
# @return [Integer] Hash code
|
|
120
190
|
def hash
|
|
121
|
-
[reviews].hash
|
|
191
|
+
[after_automatic_reviews, after_draft_reviews, after_no_issue_reviews, before_automatic_reviews, before_draft_reviews, before_no_issue_reviews, changed, reviews].hash
|
|
122
192
|
end
|
|
123
193
|
|
|
124
194
|
# Builds the object from hash
|
|
@@ -0,0 +1,326 @@
|
|
|
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 AuditLogsReliabilityReviewRepositoryUpdatedV3 < 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
|
+
attr_accessor :metadata
|
|
26
|
+
|
|
27
|
+
# When the entry occurred
|
|
28
|
+
attr_accessor :occurred_at
|
|
29
|
+
|
|
30
|
+
# The custom field that was created
|
|
31
|
+
attr_accessor :targets
|
|
32
|
+
|
|
33
|
+
# Which version the event is
|
|
34
|
+
attr_accessor :version
|
|
35
|
+
|
|
36
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
37
|
+
def self.attribute_map
|
|
38
|
+
{
|
|
39
|
+
:'action' => :'action',
|
|
40
|
+
:'actor' => :'actor',
|
|
41
|
+
:'context' => :'context',
|
|
42
|
+
:'metadata' => :'metadata',
|
|
43
|
+
:'occurred_at' => :'occurred_at',
|
|
44
|
+
:'targets' => :'targets',
|
|
45
|
+
:'version' => :'version'
|
|
46
|
+
}
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
# Returns attribute mapping this model knows about
|
|
50
|
+
def self.acceptable_attribute_map
|
|
51
|
+
attribute_map
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
# Returns all the JSON keys this model knows about
|
|
55
|
+
def self.acceptable_attributes
|
|
56
|
+
acceptable_attribute_map.values
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
# Attribute type mapping.
|
|
60
|
+
def self.openapi_types
|
|
61
|
+
{
|
|
62
|
+
:'action' => :'String',
|
|
63
|
+
:'actor' => :'AuditLogActorV2',
|
|
64
|
+
:'context' => :'AuditLogEntryContextV2',
|
|
65
|
+
:'metadata' => :'AuditLogReliabilityReviewRepositoryUpdatedMetadataV2',
|
|
66
|
+
:'occurred_at' => :'Time',
|
|
67
|
+
:'targets' => :'Array<AuditLogTargetV2>',
|
|
68
|
+
:'version' => :'Integer'
|
|
69
|
+
}
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
# List of attributes with nullable: true
|
|
73
|
+
def self.openapi_nullable
|
|
74
|
+
Set.new([
|
|
75
|
+
])
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
# Initializes the object
|
|
79
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
80
|
+
def initialize(attributes = {})
|
|
81
|
+
if (!attributes.is_a?(Hash))
|
|
82
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `IncidentIo::AuditLogsReliabilityReviewRepositoryUpdatedV3` initialize method"
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
86
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
87
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
88
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
89
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `IncidentIo::AuditLogsReliabilityReviewRepositoryUpdatedV3`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
90
|
+
end
|
|
91
|
+
h[k.to_sym] = v
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
if attributes.key?(:'action')
|
|
95
|
+
self.action = attributes[:'action']
|
|
96
|
+
else
|
|
97
|
+
self.action = nil
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
if attributes.key?(:'actor')
|
|
101
|
+
self.actor = attributes[:'actor']
|
|
102
|
+
else
|
|
103
|
+
self.actor = nil
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
if attributes.key?(:'context')
|
|
107
|
+
self.context = attributes[:'context']
|
|
108
|
+
else
|
|
109
|
+
self.context = nil
|
|
110
|
+
end
|
|
111
|
+
|
|
112
|
+
if attributes.key?(:'metadata')
|
|
113
|
+
self.metadata = attributes[:'metadata']
|
|
114
|
+
else
|
|
115
|
+
self.metadata = nil
|
|
116
|
+
end
|
|
117
|
+
|
|
118
|
+
if attributes.key?(:'occurred_at')
|
|
119
|
+
self.occurred_at = attributes[:'occurred_at']
|
|
120
|
+
else
|
|
121
|
+
self.occurred_at = nil
|
|
122
|
+
end
|
|
123
|
+
|
|
124
|
+
if attributes.key?(:'targets')
|
|
125
|
+
if (value = attributes[:'targets']).is_a?(Array)
|
|
126
|
+
self.targets = value
|
|
127
|
+
end
|
|
128
|
+
else
|
|
129
|
+
self.targets = nil
|
|
130
|
+
end
|
|
131
|
+
|
|
132
|
+
if attributes.key?(:'version')
|
|
133
|
+
self.version = attributes[:'version']
|
|
134
|
+
else
|
|
135
|
+
self.version = nil
|
|
136
|
+
end
|
|
137
|
+
end
|
|
138
|
+
|
|
139
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
140
|
+
# @return Array for valid properties with the reasons
|
|
141
|
+
def list_invalid_properties
|
|
142
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
143
|
+
invalid_properties = Array.new
|
|
144
|
+
if @action.nil?
|
|
145
|
+
invalid_properties.push('invalid value for "action", action cannot be nil.')
|
|
146
|
+
end
|
|
147
|
+
|
|
148
|
+
if @actor.nil?
|
|
149
|
+
invalid_properties.push('invalid value for "actor", actor cannot be nil.')
|
|
150
|
+
end
|
|
151
|
+
|
|
152
|
+
if @context.nil?
|
|
153
|
+
invalid_properties.push('invalid value for "context", context cannot be nil.')
|
|
154
|
+
end
|
|
155
|
+
|
|
156
|
+
if @metadata.nil?
|
|
157
|
+
invalid_properties.push('invalid value for "metadata", metadata cannot be nil.')
|
|
158
|
+
end
|
|
159
|
+
|
|
160
|
+
if @occurred_at.nil?
|
|
161
|
+
invalid_properties.push('invalid value for "occurred_at", occurred_at cannot be nil.')
|
|
162
|
+
end
|
|
163
|
+
|
|
164
|
+
if @targets.nil?
|
|
165
|
+
invalid_properties.push('invalid value for "targets", targets cannot be nil.')
|
|
166
|
+
end
|
|
167
|
+
|
|
168
|
+
if @version.nil?
|
|
169
|
+
invalid_properties.push('invalid value for "version", version cannot be nil.')
|
|
170
|
+
end
|
|
171
|
+
|
|
172
|
+
invalid_properties
|
|
173
|
+
end
|
|
174
|
+
|
|
175
|
+
# Check to see if the all the properties in the model are valid
|
|
176
|
+
# @return true if the model is valid
|
|
177
|
+
def valid?
|
|
178
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
179
|
+
return false if @action.nil?
|
|
180
|
+
return false if @actor.nil?
|
|
181
|
+
return false if @context.nil?
|
|
182
|
+
return false if @metadata.nil?
|
|
183
|
+
return false if @occurred_at.nil?
|
|
184
|
+
return false if @targets.nil?
|
|
185
|
+
return false if @version.nil?
|
|
186
|
+
true
|
|
187
|
+
end
|
|
188
|
+
|
|
189
|
+
# Custom attribute writer method with validation
|
|
190
|
+
# @param [Object] action Value to be assigned
|
|
191
|
+
def action=(action)
|
|
192
|
+
if action.nil?
|
|
193
|
+
fail ArgumentError, 'action cannot be nil'
|
|
194
|
+
end
|
|
195
|
+
|
|
196
|
+
@action = action
|
|
197
|
+
end
|
|
198
|
+
|
|
199
|
+
# Custom attribute writer method with validation
|
|
200
|
+
# @param [Object] actor Value to be assigned
|
|
201
|
+
def actor=(actor)
|
|
202
|
+
if actor.nil?
|
|
203
|
+
fail ArgumentError, 'actor cannot be nil'
|
|
204
|
+
end
|
|
205
|
+
|
|
206
|
+
@actor = actor
|
|
207
|
+
end
|
|
208
|
+
|
|
209
|
+
# Custom attribute writer method with validation
|
|
210
|
+
# @param [Object] context Value to be assigned
|
|
211
|
+
def context=(context)
|
|
212
|
+
if context.nil?
|
|
213
|
+
fail ArgumentError, 'context cannot be nil'
|
|
214
|
+
end
|
|
215
|
+
|
|
216
|
+
@context = context
|
|
217
|
+
end
|
|
218
|
+
|
|
219
|
+
# Custom attribute writer method with validation
|
|
220
|
+
# @param [Object] metadata Value to be assigned
|
|
221
|
+
def metadata=(metadata)
|
|
222
|
+
if metadata.nil?
|
|
223
|
+
fail ArgumentError, 'metadata cannot be nil'
|
|
224
|
+
end
|
|
225
|
+
|
|
226
|
+
@metadata = metadata
|
|
227
|
+
end
|
|
228
|
+
|
|
229
|
+
# Custom attribute writer method with validation
|
|
230
|
+
# @param [Object] occurred_at Value to be assigned
|
|
231
|
+
def occurred_at=(occurred_at)
|
|
232
|
+
if occurred_at.nil?
|
|
233
|
+
fail ArgumentError, 'occurred_at cannot be nil'
|
|
234
|
+
end
|
|
235
|
+
|
|
236
|
+
@occurred_at = occurred_at
|
|
237
|
+
end
|
|
238
|
+
|
|
239
|
+
# Custom attribute writer method with validation
|
|
240
|
+
# @param [Object] targets Value to be assigned
|
|
241
|
+
def targets=(targets)
|
|
242
|
+
if targets.nil?
|
|
243
|
+
fail ArgumentError, 'targets cannot be nil'
|
|
244
|
+
end
|
|
245
|
+
|
|
246
|
+
@targets = targets
|
|
247
|
+
end
|
|
248
|
+
|
|
249
|
+
# Custom attribute writer method with validation
|
|
250
|
+
# @param [Object] version Value to be assigned
|
|
251
|
+
def version=(version)
|
|
252
|
+
if version.nil?
|
|
253
|
+
fail ArgumentError, 'version cannot be nil'
|
|
254
|
+
end
|
|
255
|
+
|
|
256
|
+
@version = version
|
|
257
|
+
end
|
|
258
|
+
|
|
259
|
+
# Checks equality by comparing each attribute.
|
|
260
|
+
# @param [Object] Object to be compared
|
|
261
|
+
def ==(o)
|
|
262
|
+
return true if self.equal?(o)
|
|
263
|
+
self.class == o.class &&
|
|
264
|
+
action == o.action &&
|
|
265
|
+
actor == o.actor &&
|
|
266
|
+
context == o.context &&
|
|
267
|
+
metadata == o.metadata &&
|
|
268
|
+
occurred_at == o.occurred_at &&
|
|
269
|
+
targets == o.targets &&
|
|
270
|
+
version == o.version
|
|
271
|
+
end
|
|
272
|
+
|
|
273
|
+
# @see the `==` method
|
|
274
|
+
# @param [Object] Object to be compared
|
|
275
|
+
def eql?(o)
|
|
276
|
+
self == o
|
|
277
|
+
end
|
|
278
|
+
|
|
279
|
+
# Calculates hash code according to all attributes.
|
|
280
|
+
# @return [Integer] Hash code
|
|
281
|
+
def hash
|
|
282
|
+
[action, actor, context, metadata, occurred_at, targets, version].hash
|
|
283
|
+
end
|
|
284
|
+
|
|
285
|
+
# Builds the object from hash
|
|
286
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
287
|
+
# @return [Object] Returns the model itself
|
|
288
|
+
def self.build_from_hash(attributes)
|
|
289
|
+
return nil unless attributes.is_a?(Hash)
|
|
290
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
291
|
+
transformed_hash = {}
|
|
292
|
+
openapi_types.each_pair do |key, type|
|
|
293
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
294
|
+
transformed_hash["#{key}"] = nil
|
|
295
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
296
|
+
# check to ensure the input is an array given that the attribute
|
|
297
|
+
# is documented as an array but the input is not
|
|
298
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
299
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
300
|
+
end
|
|
301
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
302
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
303
|
+
end
|
|
304
|
+
end
|
|
305
|
+
new(transformed_hash)
|
|
306
|
+
end
|
|
307
|
+
|
|
308
|
+
# Returns the object in the form of hash
|
|
309
|
+
# @return [Hash] Returns the object in the form of hash
|
|
310
|
+
def to_hash
|
|
311
|
+
hash = {}
|
|
312
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
313
|
+
value = self.send(attr)
|
|
314
|
+
if value.nil?
|
|
315
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
316
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
317
|
+
end
|
|
318
|
+
|
|
319
|
+
hash[param] = _to_hash(value)
|
|
320
|
+
end
|
|
321
|
+
hash
|
|
322
|
+
end
|
|
323
|
+
|
|
324
|
+
end
|
|
325
|
+
|
|
326
|
+
end
|
|
@@ -14,9 +14,9 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module IncidentIo
|
|
17
|
-
# The
|
|
17
|
+
# The escalation urgency this escalation pages with. This used to be the alert priority.
|
|
18
18
|
class EscalationPriorityV2 < ApiModelBase
|
|
19
|
-
# The
|
|
19
|
+
# The name of the escalation urgency this escalation pages with
|
|
20
20
|
attr_accessor :name
|
|
21
21
|
|
|
22
22
|
# Attribute mapping from ruby-style variable name to JSON key.
|
data/lib/incident_io/version.rb
CHANGED
data/lib/incident_io.rb
CHANGED
|
@@ -653,6 +653,7 @@ IncidentIo.autoload :AuditLogsRbacRoleUpdatedV1, 'incident_io/models/audit_logs_
|
|
|
653
653
|
IncidentIo.autoload :AuditLogsRbacRoleUpdatedV2, 'incident_io/models/audit_logs_rbac_role_updated_v2'
|
|
654
654
|
IncidentIo.autoload :AuditLogsReliabilityReviewRepositoryUpdatedV1, 'incident_io/models/audit_logs_reliability_review_repository_updated_v1'
|
|
655
655
|
IncidentIo.autoload :AuditLogsReliabilityReviewRepositoryUpdatedV2, 'incident_io/models/audit_logs_reliability_review_repository_updated_v2'
|
|
656
|
+
IncidentIo.autoload :AuditLogsReliabilityReviewRepositoryUpdatedV3, 'incident_io/models/audit_logs_reliability_review_repository_updated_v3'
|
|
656
657
|
IncidentIo.autoload :AuditLogsReliabilityReviewRuleCreatedV1, 'incident_io/models/audit_logs_reliability_review_rule_created_v1'
|
|
657
658
|
IncidentIo.autoload :AuditLogsReliabilityReviewRuleDeletedV1, 'incident_io/models/audit_logs_reliability_review_rule_deleted_v1'
|
|
658
659
|
IncidentIo.autoload :AuditLogsReliabilityReviewRuleUpdatedV1, 'incident_io/models/audit_logs_reliability_review_rule_updated_v1'
|
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: 5.
|
|
4
|
+
version: 5.2.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
|
+
date: 2026-12-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|
|
@@ -785,6 +785,7 @@ files:
|
|
|
785
785
|
- lib/incident_io/models/audit_logs_rbac_role_updated_v2.rb
|
|
786
786
|
- lib/incident_io/models/audit_logs_reliability_review_repository_updated_v1.rb
|
|
787
787
|
- lib/incident_io/models/audit_logs_reliability_review_repository_updated_v2.rb
|
|
788
|
+
- lib/incident_io/models/audit_logs_reliability_review_repository_updated_v3.rb
|
|
788
789
|
- lib/incident_io/models/audit_logs_reliability_review_rule_created_v1.rb
|
|
789
790
|
- lib/incident_io/models/audit_logs_reliability_review_rule_deleted_v1.rb
|
|
790
791
|
- lib/incident_io/models/audit_logs_reliability_review_rule_updated_v1.rb
|