incident_io_api 2.32.0 → 2.34.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 +2 -2
- data/lib/incident_io/models/audit_log_code_repository_accessed_metadata_v2.rb +232 -0
- data/lib/incident_io/models/audit_logs_code_repository_accessed_v1.rb +326 -0
- data/lib/incident_io/version.rb +1 -1
- data/lib/incident_io.rb +2 -0
- metadata +4 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9dd7ecb3b35269475cee94bd36d4e29115b35de1c84241b1f2a9bd5148f62be7
|
|
4
|
+
data.tar.gz: e8f88e4f40553ee8165828caac3c99d8389f9e47bee801c5dd15d99f701c1bce
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 111916e073829c1afc366fbc07e726c1f88ee46c5163657354ceb606bc2592be3f7f5651438851bffe0de5b01500063eb7781b535eddab7b4149d864cf4b2ff3
|
|
7
|
+
data.tar.gz: 779c9106fe2f0b1e5cf539cad1c28462fcd994f817775f03221e51b99d16c83088e3be3dc055f060d7b5d169be183771e3bb808ec031992ba32d3c57425e5f4d
|
|
@@ -519,7 +519,7 @@ module IncidentIo
|
|
|
519
519
|
end
|
|
520
520
|
|
|
521
521
|
# ReassignEscalation Escalations V2
|
|
522
|
-
# 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, priority, 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. 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.
|
|
522
|
+
# 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, priority, 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.
|
|
523
523
|
# @param escalation_id [String] The ID of the escalation to reassign
|
|
524
524
|
# @param escalations_reassign_escalation_payload_v2 [EscalationsReassignEscalationPayloadV2]
|
|
525
525
|
# @param [Hash] opts the optional parameters
|
|
@@ -530,7 +530,7 @@ module IncidentIo
|
|
|
530
530
|
end
|
|
531
531
|
|
|
532
532
|
# ReassignEscalation Escalations V2
|
|
533
|
-
# 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, priority, 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. 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.
|
|
533
|
+
# 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, priority, 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.
|
|
534
534
|
# @param escalation_id [String] The ID of the escalation to reassign
|
|
535
535
|
# @param escalations_reassign_escalation_payload_v2 [EscalationsReassignEscalationPayloadV2]
|
|
536
536
|
# @param [Hash] opts the optional parameters
|
|
@@ -0,0 +1,232 @@
|
|
|
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 AuditLogCodeRepositoryAccessedMetadataV2 < ApiModelBase
|
|
18
|
+
# ID of the alert the run was for, when known
|
|
19
|
+
attr_accessor :alert_id
|
|
20
|
+
|
|
21
|
+
# ID of the incident the run was for, when known
|
|
22
|
+
attr_accessor :incident_id
|
|
23
|
+
|
|
24
|
+
# ID of the investigation, when an investigation read the repository
|
|
25
|
+
attr_accessor :investigation_id
|
|
26
|
+
|
|
27
|
+
# The commit the run checked out
|
|
28
|
+
attr_accessor :revision_sha
|
|
29
|
+
|
|
30
|
+
# The kind of agent run that read the repository (investigation, chat, code_agent)
|
|
31
|
+
attr_accessor :run_type
|
|
32
|
+
|
|
33
|
+
# ID of the user who asked, when a chat read the repository
|
|
34
|
+
attr_accessor :user_id
|
|
35
|
+
|
|
36
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
37
|
+
def self.attribute_map
|
|
38
|
+
{
|
|
39
|
+
:'alert_id' => :'alert_id',
|
|
40
|
+
:'incident_id' => :'incident_id',
|
|
41
|
+
:'investigation_id' => :'investigation_id',
|
|
42
|
+
:'revision_sha' => :'revision_sha',
|
|
43
|
+
:'run_type' => :'run_type',
|
|
44
|
+
:'user_id' => :'user_id'
|
|
45
|
+
}
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
# Returns attribute mapping this model knows about
|
|
49
|
+
def self.acceptable_attribute_map
|
|
50
|
+
attribute_map
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
# Returns all the JSON keys this model knows about
|
|
54
|
+
def self.acceptable_attributes
|
|
55
|
+
acceptable_attribute_map.values
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
# Attribute type mapping.
|
|
59
|
+
def self.openapi_types
|
|
60
|
+
{
|
|
61
|
+
:'alert_id' => :'String',
|
|
62
|
+
:'incident_id' => :'String',
|
|
63
|
+
:'investigation_id' => :'String',
|
|
64
|
+
:'revision_sha' => :'String',
|
|
65
|
+
:'run_type' => :'String',
|
|
66
|
+
:'user_id' => :'String'
|
|
67
|
+
}
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
# List of attributes with nullable: true
|
|
71
|
+
def self.openapi_nullable
|
|
72
|
+
Set.new([
|
|
73
|
+
])
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
# Initializes the object
|
|
77
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
78
|
+
def initialize(attributes = {})
|
|
79
|
+
if (!attributes.is_a?(Hash))
|
|
80
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `IncidentIo::AuditLogCodeRepositoryAccessedMetadataV2` initialize method"
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
84
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
85
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
86
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
87
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `IncidentIo::AuditLogCodeRepositoryAccessedMetadataV2`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
88
|
+
end
|
|
89
|
+
h[k.to_sym] = v
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
if attributes.key?(:'alert_id')
|
|
93
|
+
self.alert_id = attributes[:'alert_id']
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
if attributes.key?(:'incident_id')
|
|
97
|
+
self.incident_id = attributes[:'incident_id']
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
if attributes.key?(:'investigation_id')
|
|
101
|
+
self.investigation_id = attributes[:'investigation_id']
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
if attributes.key?(:'revision_sha')
|
|
105
|
+
self.revision_sha = attributes[:'revision_sha']
|
|
106
|
+
else
|
|
107
|
+
self.revision_sha = nil
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
if attributes.key?(:'run_type')
|
|
111
|
+
self.run_type = attributes[:'run_type']
|
|
112
|
+
else
|
|
113
|
+
self.run_type = nil
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
if attributes.key?(:'user_id')
|
|
117
|
+
self.user_id = attributes[:'user_id']
|
|
118
|
+
end
|
|
119
|
+
end
|
|
120
|
+
|
|
121
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
122
|
+
# @return Array for valid properties with the reasons
|
|
123
|
+
def list_invalid_properties
|
|
124
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
125
|
+
invalid_properties = Array.new
|
|
126
|
+
if @revision_sha.nil?
|
|
127
|
+
invalid_properties.push('invalid value for "revision_sha", revision_sha cannot be nil.')
|
|
128
|
+
end
|
|
129
|
+
|
|
130
|
+
if @run_type.nil?
|
|
131
|
+
invalid_properties.push('invalid value for "run_type", run_type cannot be nil.')
|
|
132
|
+
end
|
|
133
|
+
|
|
134
|
+
invalid_properties
|
|
135
|
+
end
|
|
136
|
+
|
|
137
|
+
# Check to see if the all the properties in the model are valid
|
|
138
|
+
# @return true if the model is valid
|
|
139
|
+
def valid?
|
|
140
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
141
|
+
return false if @revision_sha.nil?
|
|
142
|
+
return false if @run_type.nil?
|
|
143
|
+
true
|
|
144
|
+
end
|
|
145
|
+
|
|
146
|
+
# Custom attribute writer method with validation
|
|
147
|
+
# @param [Object] revision_sha Value to be assigned
|
|
148
|
+
def revision_sha=(revision_sha)
|
|
149
|
+
if revision_sha.nil?
|
|
150
|
+
fail ArgumentError, 'revision_sha cannot be nil'
|
|
151
|
+
end
|
|
152
|
+
|
|
153
|
+
@revision_sha = revision_sha
|
|
154
|
+
end
|
|
155
|
+
|
|
156
|
+
# Custom attribute writer method with validation
|
|
157
|
+
# @param [Object] run_type Value to be assigned
|
|
158
|
+
def run_type=(run_type)
|
|
159
|
+
if run_type.nil?
|
|
160
|
+
fail ArgumentError, 'run_type cannot be nil'
|
|
161
|
+
end
|
|
162
|
+
|
|
163
|
+
@run_type = run_type
|
|
164
|
+
end
|
|
165
|
+
|
|
166
|
+
# Checks equality by comparing each attribute.
|
|
167
|
+
# @param [Object] Object to be compared
|
|
168
|
+
def ==(o)
|
|
169
|
+
return true if self.equal?(o)
|
|
170
|
+
self.class == o.class &&
|
|
171
|
+
alert_id == o.alert_id &&
|
|
172
|
+
incident_id == o.incident_id &&
|
|
173
|
+
investigation_id == o.investigation_id &&
|
|
174
|
+
revision_sha == o.revision_sha &&
|
|
175
|
+
run_type == o.run_type &&
|
|
176
|
+
user_id == o.user_id
|
|
177
|
+
end
|
|
178
|
+
|
|
179
|
+
# @see the `==` method
|
|
180
|
+
# @param [Object] Object to be compared
|
|
181
|
+
def eql?(o)
|
|
182
|
+
self == o
|
|
183
|
+
end
|
|
184
|
+
|
|
185
|
+
# Calculates hash code according to all attributes.
|
|
186
|
+
# @return [Integer] Hash code
|
|
187
|
+
def hash
|
|
188
|
+
[alert_id, incident_id, investigation_id, revision_sha, run_type, user_id].hash
|
|
189
|
+
end
|
|
190
|
+
|
|
191
|
+
# Builds the object from hash
|
|
192
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
193
|
+
# @return [Object] Returns the model itself
|
|
194
|
+
def self.build_from_hash(attributes)
|
|
195
|
+
return nil unless attributes.is_a?(Hash)
|
|
196
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
197
|
+
transformed_hash = {}
|
|
198
|
+
openapi_types.each_pair do |key, type|
|
|
199
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
200
|
+
transformed_hash["#{key}"] = nil
|
|
201
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
202
|
+
# check to ensure the input is an array given that the attribute
|
|
203
|
+
# is documented as an array but the input is not
|
|
204
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
205
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
206
|
+
end
|
|
207
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
208
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
209
|
+
end
|
|
210
|
+
end
|
|
211
|
+
new(transformed_hash)
|
|
212
|
+
end
|
|
213
|
+
|
|
214
|
+
# Returns the object in the form of hash
|
|
215
|
+
# @return [Hash] Returns the object in the form of hash
|
|
216
|
+
def to_hash
|
|
217
|
+
hash = {}
|
|
218
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
219
|
+
value = self.send(attr)
|
|
220
|
+
if value.nil?
|
|
221
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
222
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
223
|
+
end
|
|
224
|
+
|
|
225
|
+
hash[param] = _to_hash(value)
|
|
226
|
+
end
|
|
227
|
+
hash
|
|
228
|
+
end
|
|
229
|
+
|
|
230
|
+
end
|
|
231
|
+
|
|
232
|
+
end
|
|
@@ -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 AuditLogsCodeRepositoryAccessedV1 < 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' => :'AuditLogCodeRepositoryAccessedMetadataV2',
|
|
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::AuditLogsCodeRepositoryAccessedV1` 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::AuditLogsCodeRepositoryAccessedV1`. 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
|
data/lib/incident_io/version.rb
CHANGED
data/lib/incident_io.rb
CHANGED
|
@@ -226,6 +226,7 @@ IncidentIo.autoload :AuditLogAnnouncementPostTemplateOwningTeamsMetadataV2, 'inc
|
|
|
226
226
|
IncidentIo.autoload :AuditLogAnnouncementRuleMetadataV2, 'incident_io/models/audit_log_announcement_rule_metadata_v2'
|
|
227
227
|
IncidentIo.autoload :AuditLogCatalogAttributeUpdatedMetadataV2, 'incident_io/models/audit_log_catalog_attribute_updated_metadata_v2'
|
|
228
228
|
IncidentIo.autoload :AuditLogCatalogAttributeUpdatedMetadataV2V2, 'incident_io/models/audit_log_catalog_attribute_updated_metadata_v2_v2'
|
|
229
|
+
IncidentIo.autoload :AuditLogCodeRepositoryAccessedMetadataV2, 'incident_io/models/audit_log_code_repository_accessed_metadata_v2'
|
|
229
230
|
IncidentIo.autoload :AuditLogEmailOtpLoginSettingUpdatedMetadataV2, 'incident_io/models/audit_log_email_otp_login_setting_updated_metadata_v2'
|
|
230
231
|
IncidentIo.autoload :AuditLogEntryContextV2, 'incident_io/models/audit_log_entry_context_v2'
|
|
231
232
|
IncidentIo.autoload :AuditLogExtensionConnectorCalledMetadataV2, 'incident_io/models/audit_log_extension_connector_called_metadata_v2'
|
|
@@ -342,6 +343,7 @@ IncidentIo.autoload :AuditLogsCatalogTypeDeletedV1, 'incident_io/models/audit_lo
|
|
|
342
343
|
IncidentIo.autoload :AuditLogsCatalogTypeDeletedV2, 'incident_io/models/audit_logs_catalog_type_deleted_v2'
|
|
343
344
|
IncidentIo.autoload :AuditLogsCatalogTypeUpdatedV1, 'incident_io/models/audit_logs_catalog_type_updated_v1'
|
|
344
345
|
IncidentIo.autoload :AuditLogsCatalogTypeUpdatedV2, 'incident_io/models/audit_logs_catalog_type_updated_v2'
|
|
346
|
+
IncidentIo.autoload :AuditLogsCodeRepositoryAccessedV1, 'incident_io/models/audit_logs_code_repository_accessed_v1'
|
|
345
347
|
IncidentIo.autoload :AuditLogsConnectorConfigCreatedV1, 'incident_io/models/audit_logs_connector_config_created_v1'
|
|
346
348
|
IncidentIo.autoload :AuditLogsConnectorConfigCreatedV2, 'incident_io/models/audit_logs_connector_config_created_v2'
|
|
347
349
|
IncidentIo.autoload :AuditLogsConnectorConfigTokenGeneratedV1, 'incident_io/models/audit_logs_connector_config_token_generated_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: 2.
|
|
4
|
+
version: 2.34.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-28 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|
|
@@ -354,6 +354,7 @@ files:
|
|
|
354
354
|
- lib/incident_io/models/audit_log_announcement_rule_metadata_v2.rb
|
|
355
355
|
- lib/incident_io/models/audit_log_catalog_attribute_updated_metadata_v2.rb
|
|
356
356
|
- lib/incident_io/models/audit_log_catalog_attribute_updated_metadata_v2_v2.rb
|
|
357
|
+
- lib/incident_io/models/audit_log_code_repository_accessed_metadata_v2.rb
|
|
357
358
|
- lib/incident_io/models/audit_log_email_otp_login_setting_updated_metadata_v2.rb
|
|
358
359
|
- lib/incident_io/models/audit_log_entry_context_v2.rb
|
|
359
360
|
- lib/incident_io/models/audit_log_extension_connector_called_metadata_v2.rb
|
|
@@ -470,6 +471,7 @@ files:
|
|
|
470
471
|
- lib/incident_io/models/audit_logs_catalog_type_deleted_v2.rb
|
|
471
472
|
- lib/incident_io/models/audit_logs_catalog_type_updated_v1.rb
|
|
472
473
|
- lib/incident_io/models/audit_logs_catalog_type_updated_v2.rb
|
|
474
|
+
- lib/incident_io/models/audit_logs_code_repository_accessed_v1.rb
|
|
473
475
|
- lib/incident_io/models/audit_logs_connector_config_created_v1.rb
|
|
474
476
|
- lib/incident_io/models/audit_logs_connector_config_created_v2.rb
|
|
475
477
|
- lib/incident_io/models/audit_logs_connector_config_token_generated_v1.rb
|