incident_io_api 2.27.0 → 2.29.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/incidents_v2_api.rb +2 -2
- data/lib/incident_io/models/audit_log_telemetry_data_source_caller_identity_sharing_changed_metadata_v2.rb +165 -0
- data/lib/incident_io/models/audit_logs_telemetry_data_source_caller_identity_sharing_changed_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: a74cd0e95f6cef1e4dcb2a3ff4fb55c5c1fb59a01bf57f05040a5f5fced152cf
|
|
4
|
+
data.tar.gz: d865d70d83caa8b325be9cb802855f911f4472842a30a01b3c2b4444811f5c87
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5a422f7cadebf0cda16605e479f14b39f9c971c58dd1996f3d3df74afdaa1d7ef8c1485cacd31bcdc5f5a4e0babd49f6fa07764083ddfa04accd632e363e6ac9
|
|
7
|
+
data.tar.gz: 2eeaf35048f66e2485218d12aa5e1a55024c7d0d583e9871f75e30571ca841a91351f2f77734eb720d27859406e6cb5cb1222b2c5b7b7256e91bcc4c3703e0f7
|
|
@@ -162,7 +162,7 @@ module IncidentIo
|
|
|
162
162
|
end
|
|
163
163
|
|
|
164
164
|
# Edit Incidents V2
|
|
165
|
-
# Edit an existing incident. This endpoint allows you to edit the properties of an existing incident: e.g. set the severity or update custom fields. When using this endpoint, only fields that are provided will be edited (omitted fields will be ignored). The API key must have the scope corresponding to each property it changes: - `incidents.update_name` for the name - `incidents.update_summary` for the summary - `incidents.update_severity` for the severity - `incidents.update_status` for the status - `incidents.update_custom_fields` for custom fields - `incidents.update_timestamps` for timestamps - `incidents.update_role_assignments` for role assignments - `incident_calls.create` to set the call URL - `incident_calls.destroy` when replacing an existing call URL
|
|
165
|
+
# Edit an existing incident. This endpoint allows you to edit the properties of an existing incident: e.g. set the severity or update custom fields. When using this endpoint, only fields that are provided will be edited (omitted fields will be ignored). The API key must have `incidents.view`, and the scope corresponding to each property it changes: - `incidents.update_name` for the name or the Slack channel name override - `incidents.update_summary` for the summary - `incidents.update_severity` for the severity - `incidents.update_status` for the status - `incidents.update_custom_fields` for custom fields - `incidents.update_timestamps` for timestamps - `incidents.update_role_assignments` for role assignments - `incident_calls.create` to set the call URL - `incident_calls.destroy` when replacing an existing call URL
|
|
166
166
|
# @param id [String] The unique identifier of the incident that you want to edit
|
|
167
167
|
# @param incidents_edit_payload_v2 [IncidentsEditPayloadV2]
|
|
168
168
|
# @param [Hash] opts the optional parameters
|
|
@@ -173,7 +173,7 @@ module IncidentIo
|
|
|
173
173
|
end
|
|
174
174
|
|
|
175
175
|
# Edit Incidents V2
|
|
176
|
-
# Edit an existing incident. This endpoint allows you to edit the properties of an existing incident: e.g. set the severity or update custom fields. When using this endpoint, only fields that are provided will be edited (omitted fields will be ignored). The API key must have the scope corresponding to each property it changes: - `incidents.update_name` for the name - `incidents.update_summary` for the summary - `incidents.update_severity` for the severity - `incidents.update_status` for the status - `incidents.update_custom_fields` for custom fields - `incidents.update_timestamps` for timestamps - `incidents.update_role_assignments` for role assignments - `incident_calls.create` to set the call URL - `incident_calls.destroy` when replacing an existing call URL
|
|
176
|
+
# Edit an existing incident. This endpoint allows you to edit the properties of an existing incident: e.g. set the severity or update custom fields. When using this endpoint, only fields that are provided will be edited (omitted fields will be ignored). The API key must have `incidents.view`, and the scope corresponding to each property it changes: - `incidents.update_name` for the name or the Slack channel name override - `incidents.update_summary` for the summary - `incidents.update_severity` for the severity - `incidents.update_status` for the status - `incidents.update_custom_fields` for custom fields - `incidents.update_timestamps` for timestamps - `incidents.update_role_assignments` for role assignments - `incident_calls.create` to set the call URL - `incident_calls.destroy` when replacing an existing call URL
|
|
177
177
|
# @param id [String] The unique identifier of the incident that you want to edit
|
|
178
178
|
# @param incidents_edit_payload_v2 [IncidentsEditPayloadV2]
|
|
179
179
|
# @param [Hash] opts the optional parameters
|
|
@@ -0,0 +1,165 @@
|
|
|
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 AuditLogTelemetryDataSourceCallerIdentitySharingChangedMetadataV2 < ApiModelBase
|
|
18
|
+
# Whether tool calls to the connector carry the caller's identity after the change (true, false)
|
|
19
|
+
attr_accessor :enabled
|
|
20
|
+
|
|
21
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
22
|
+
def self.attribute_map
|
|
23
|
+
{
|
|
24
|
+
:'enabled' => :'enabled'
|
|
25
|
+
}
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
# Returns attribute mapping this model knows about
|
|
29
|
+
def self.acceptable_attribute_map
|
|
30
|
+
attribute_map
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
# Returns all the JSON keys this model knows about
|
|
34
|
+
def self.acceptable_attributes
|
|
35
|
+
acceptable_attribute_map.values
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
# Attribute type mapping.
|
|
39
|
+
def self.openapi_types
|
|
40
|
+
{
|
|
41
|
+
:'enabled' => :'String'
|
|
42
|
+
}
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
# List of attributes with nullable: true
|
|
46
|
+
def self.openapi_nullable
|
|
47
|
+
Set.new([
|
|
48
|
+
])
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
# Initializes the object
|
|
52
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
53
|
+
def initialize(attributes = {})
|
|
54
|
+
if (!attributes.is_a?(Hash))
|
|
55
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `IncidentIo::AuditLogTelemetryDataSourceCallerIdentitySharingChangedMetadataV2` initialize method"
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
59
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
60
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
61
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
62
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `IncidentIo::AuditLogTelemetryDataSourceCallerIdentitySharingChangedMetadataV2`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
63
|
+
end
|
|
64
|
+
h[k.to_sym] = v
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
if attributes.key?(:'enabled')
|
|
68
|
+
self.enabled = attributes[:'enabled']
|
|
69
|
+
else
|
|
70
|
+
self.enabled = nil
|
|
71
|
+
end
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
75
|
+
# @return Array for valid properties with the reasons
|
|
76
|
+
def list_invalid_properties
|
|
77
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
78
|
+
invalid_properties = Array.new
|
|
79
|
+
if @enabled.nil?
|
|
80
|
+
invalid_properties.push('invalid value for "enabled", enabled cannot be nil.')
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
invalid_properties
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
# Check to see if the all the properties in the model are valid
|
|
87
|
+
# @return true if the model is valid
|
|
88
|
+
def valid?
|
|
89
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
90
|
+
return false if @enabled.nil?
|
|
91
|
+
true
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
# Custom attribute writer method with validation
|
|
95
|
+
# @param [Object] enabled Value to be assigned
|
|
96
|
+
def enabled=(enabled)
|
|
97
|
+
if enabled.nil?
|
|
98
|
+
fail ArgumentError, 'enabled cannot be nil'
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
@enabled = enabled
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
# Checks equality by comparing each attribute.
|
|
105
|
+
# @param [Object] Object to be compared
|
|
106
|
+
def ==(o)
|
|
107
|
+
return true if self.equal?(o)
|
|
108
|
+
self.class == o.class &&
|
|
109
|
+
enabled == o.enabled
|
|
110
|
+
end
|
|
111
|
+
|
|
112
|
+
# @see the `==` method
|
|
113
|
+
# @param [Object] Object to be compared
|
|
114
|
+
def eql?(o)
|
|
115
|
+
self == o
|
|
116
|
+
end
|
|
117
|
+
|
|
118
|
+
# Calculates hash code according to all attributes.
|
|
119
|
+
# @return [Integer] Hash code
|
|
120
|
+
def hash
|
|
121
|
+
[enabled].hash
|
|
122
|
+
end
|
|
123
|
+
|
|
124
|
+
# Builds the object from hash
|
|
125
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
126
|
+
# @return [Object] Returns the model itself
|
|
127
|
+
def self.build_from_hash(attributes)
|
|
128
|
+
return nil unless attributes.is_a?(Hash)
|
|
129
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
130
|
+
transformed_hash = {}
|
|
131
|
+
openapi_types.each_pair do |key, type|
|
|
132
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
133
|
+
transformed_hash["#{key}"] = nil
|
|
134
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
135
|
+
# check to ensure the input is an array given that the attribute
|
|
136
|
+
# is documented as an array but the input is not
|
|
137
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
138
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
139
|
+
end
|
|
140
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
141
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
142
|
+
end
|
|
143
|
+
end
|
|
144
|
+
new(transformed_hash)
|
|
145
|
+
end
|
|
146
|
+
|
|
147
|
+
# Returns the object in the form of hash
|
|
148
|
+
# @return [Hash] Returns the object in the form of hash
|
|
149
|
+
def to_hash
|
|
150
|
+
hash = {}
|
|
151
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
152
|
+
value = self.send(attr)
|
|
153
|
+
if value.nil?
|
|
154
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
155
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
156
|
+
end
|
|
157
|
+
|
|
158
|
+
hash[param] = _to_hash(value)
|
|
159
|
+
end
|
|
160
|
+
hash
|
|
161
|
+
end
|
|
162
|
+
|
|
163
|
+
end
|
|
164
|
+
|
|
165
|
+
end
|
data/lib/incident_io/models/audit_logs_telemetry_data_source_caller_identity_sharing_changed_v1.rb
ADDED
|
@@ -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 AuditLogsTelemetryDataSourceCallerIdentitySharingChangedV1 < 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' => :'AuditLogTelemetryDataSourceCallerIdentitySharingChangedMetadataV2',
|
|
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::AuditLogsTelemetryDataSourceCallerIdentitySharingChangedV1` 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::AuditLogsTelemetryDataSourceCallerIdentitySharingChangedV1`. 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
|
@@ -256,6 +256,7 @@ IncidentIo.autoload :AuditLogTargetV2, 'incident_io/models/audit_log_target_v2'
|
|
|
256
256
|
IncidentIo.autoload :AuditLogTelemetryDataSourceAccessModeChangedMetadataV2, 'incident_io/models/audit_log_telemetry_data_source_access_mode_changed_metadata_v2'
|
|
257
257
|
IncidentIo.autoload :AuditLogTelemetryDataSourceAccessPolicyChangedMetadataV2, 'incident_io/models/audit_log_telemetry_data_source_access_policy_changed_metadata_v2'
|
|
258
258
|
IncidentIo.autoload :AuditLogTelemetryDataSourceAccessPolicyChangedMetadataV2V2, 'incident_io/models/audit_log_telemetry_data_source_access_policy_changed_metadata_v2_v2'
|
|
259
|
+
IncidentIo.autoload :AuditLogTelemetryDataSourceCallerIdentitySharingChangedMetadataV2, 'incident_io/models/audit_log_telemetry_data_source_caller_identity_sharing_changed_metadata_v2'
|
|
259
260
|
IncidentIo.autoload :AuditLogTelemetryDataSourcePassthroughChangedMetadataV2, 'incident_io/models/audit_log_telemetry_data_source_passthrough_changed_metadata_v2'
|
|
260
261
|
IncidentIo.autoload :AuditLogTelemetryDataSourceQueriedMetadataV2, 'incident_io/models/audit_log_telemetry_data_source_queried_metadata_v2'
|
|
261
262
|
IncidentIo.autoload :AuditLogTelemetryDataSourceQueriedMetadataV2V2, 'incident_io/models/audit_log_telemetry_data_source_queried_metadata_v2_v2'
|
|
@@ -481,6 +482,7 @@ IncidentIo.autoload :AuditLogsTeamSettingsUpdatedV1, 'incident_io/models/audit_l
|
|
|
481
482
|
IncidentIo.autoload :AuditLogsTelemetryDataSourceAccessModeChangedV1, 'incident_io/models/audit_logs_telemetry_data_source_access_mode_changed_v1'
|
|
482
483
|
IncidentIo.autoload :AuditLogsTelemetryDataSourceAccessPolicyChangedV1, 'incident_io/models/audit_logs_telemetry_data_source_access_policy_changed_v1'
|
|
483
484
|
IncidentIo.autoload :AuditLogsTelemetryDataSourceAccessPolicyChangedV2, 'incident_io/models/audit_logs_telemetry_data_source_access_policy_changed_v2'
|
|
485
|
+
IncidentIo.autoload :AuditLogsTelemetryDataSourceCallerIdentitySharingChangedV1, 'incident_io/models/audit_logs_telemetry_data_source_caller_identity_sharing_changed_v1'
|
|
484
486
|
IncidentIo.autoload :AuditLogsTelemetryDataSourceInstalledV1, 'incident_io/models/audit_logs_telemetry_data_source_installed_v1'
|
|
485
487
|
IncidentIo.autoload :AuditLogsTelemetryDataSourcePassthroughChangedV1, 'incident_io/models/audit_logs_telemetry_data_source_passthrough_changed_v1'
|
|
486
488
|
IncidentIo.autoload :AuditLogsTelemetryDataSourceQueriedV1, 'incident_io/models/audit_logs_telemetry_data_source_queried_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.29.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-26 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|
|
@@ -383,6 +383,7 @@ files:
|
|
|
383
383
|
- lib/incident_io/models/audit_log_telemetry_data_source_access_mode_changed_metadata_v2.rb
|
|
384
384
|
- lib/incident_io/models/audit_log_telemetry_data_source_access_policy_changed_metadata_v2.rb
|
|
385
385
|
- lib/incident_io/models/audit_log_telemetry_data_source_access_policy_changed_metadata_v2_v2.rb
|
|
386
|
+
- lib/incident_io/models/audit_log_telemetry_data_source_caller_identity_sharing_changed_metadata_v2.rb
|
|
386
387
|
- lib/incident_io/models/audit_log_telemetry_data_source_passthrough_changed_metadata_v2.rb
|
|
387
388
|
- lib/incident_io/models/audit_log_telemetry_data_source_queried_metadata_v2.rb
|
|
388
389
|
- lib/incident_io/models/audit_log_telemetry_data_source_queried_metadata_v2_v2.rb
|
|
@@ -608,6 +609,7 @@ files:
|
|
|
608
609
|
- lib/incident_io/models/audit_logs_telemetry_data_source_access_mode_changed_v1.rb
|
|
609
610
|
- lib/incident_io/models/audit_logs_telemetry_data_source_access_policy_changed_v1.rb
|
|
610
611
|
- lib/incident_io/models/audit_logs_telemetry_data_source_access_policy_changed_v2.rb
|
|
612
|
+
- lib/incident_io/models/audit_logs_telemetry_data_source_caller_identity_sharing_changed_v1.rb
|
|
611
613
|
- lib/incident_io/models/audit_logs_telemetry_data_source_installed_v1.rb
|
|
612
614
|
- lib/incident_io/models/audit_logs_telemetry_data_source_passthrough_changed_v1.rb
|
|
613
615
|
- lib/incident_io/models/audit_logs_telemetry_data_source_queried_v1.rb
|