incident_io_api 2.14.0 → 2.16.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.
@@ -0,0 +1,193 @@
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 OnCallNotificationPausesListResultV2 < ApiModelBase
18
+ # Pauses ordered by when they start
19
+ attr_accessor :on_call_notification_pauses
20
+
21
+ attr_accessor :pagination_meta
22
+
23
+ # Attribute mapping from ruby-style variable name to JSON key.
24
+ def self.attribute_map
25
+ {
26
+ :'on_call_notification_pauses' => :'on_call_notification_pauses',
27
+ :'pagination_meta' => :'pagination_meta'
28
+ }
29
+ end
30
+
31
+ # Returns attribute mapping this model knows about
32
+ def self.acceptable_attribute_map
33
+ attribute_map
34
+ end
35
+
36
+ # Returns all the JSON keys this model knows about
37
+ def self.acceptable_attributes
38
+ acceptable_attribute_map.values
39
+ end
40
+
41
+ # Attribute type mapping.
42
+ def self.openapi_types
43
+ {
44
+ :'on_call_notification_pauses' => :'Array<OnCallNotificationPauseV2>',
45
+ :'pagination_meta' => :'PaginationMetaResultV2'
46
+ }
47
+ end
48
+
49
+ # List of attributes with nullable: true
50
+ def self.openapi_nullable
51
+ Set.new([
52
+ ])
53
+ end
54
+
55
+ # Initializes the object
56
+ # @param [Hash] attributes Model attributes in the form of hash
57
+ def initialize(attributes = {})
58
+ if (!attributes.is_a?(Hash))
59
+ fail ArgumentError, "The input argument (attributes) must be a hash in `IncidentIo::OnCallNotificationPausesListResultV2` initialize method"
60
+ end
61
+
62
+ # check to see if the attribute exists and convert string to symbol for hash key
63
+ acceptable_attribute_map = self.class.acceptable_attribute_map
64
+ attributes = attributes.each_with_object({}) { |(k, v), h|
65
+ if (!acceptable_attribute_map.key?(k.to_sym))
66
+ fail ArgumentError, "`#{k}` is not a valid attribute in `IncidentIo::OnCallNotificationPausesListResultV2`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
67
+ end
68
+ h[k.to_sym] = v
69
+ }
70
+
71
+ if attributes.key?(:'on_call_notification_pauses')
72
+ if (value = attributes[:'on_call_notification_pauses']).is_a?(Array)
73
+ self.on_call_notification_pauses = value
74
+ end
75
+ else
76
+ self.on_call_notification_pauses = nil
77
+ end
78
+
79
+ if attributes.key?(:'pagination_meta')
80
+ self.pagination_meta = attributes[:'pagination_meta']
81
+ else
82
+ self.pagination_meta = nil
83
+ end
84
+ end
85
+
86
+ # Show invalid properties with the reasons. Usually used together with valid?
87
+ # @return Array for valid properties with the reasons
88
+ def list_invalid_properties
89
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
90
+ invalid_properties = Array.new
91
+ if @on_call_notification_pauses.nil?
92
+ invalid_properties.push('invalid value for "on_call_notification_pauses", on_call_notification_pauses cannot be nil.')
93
+ end
94
+
95
+ if @pagination_meta.nil?
96
+ invalid_properties.push('invalid value for "pagination_meta", pagination_meta cannot be nil.')
97
+ end
98
+
99
+ invalid_properties
100
+ end
101
+
102
+ # Check to see if the all the properties in the model are valid
103
+ # @return true if the model is valid
104
+ def valid?
105
+ warn '[DEPRECATED] the `valid?` method is obsolete'
106
+ return false if @on_call_notification_pauses.nil?
107
+ return false if @pagination_meta.nil?
108
+ true
109
+ end
110
+
111
+ # Custom attribute writer method with validation
112
+ # @param [Object] on_call_notification_pauses Value to be assigned
113
+ def on_call_notification_pauses=(on_call_notification_pauses)
114
+ if on_call_notification_pauses.nil?
115
+ fail ArgumentError, 'on_call_notification_pauses cannot be nil'
116
+ end
117
+
118
+ @on_call_notification_pauses = on_call_notification_pauses
119
+ end
120
+
121
+ # Custom attribute writer method with validation
122
+ # @param [Object] pagination_meta Value to be assigned
123
+ def pagination_meta=(pagination_meta)
124
+ if pagination_meta.nil?
125
+ fail ArgumentError, 'pagination_meta cannot be nil'
126
+ end
127
+
128
+ @pagination_meta = pagination_meta
129
+ end
130
+
131
+ # Checks equality by comparing each attribute.
132
+ # @param [Object] Object to be compared
133
+ def ==(o)
134
+ return true if self.equal?(o)
135
+ self.class == o.class &&
136
+ on_call_notification_pauses == o.on_call_notification_pauses &&
137
+ pagination_meta == o.pagination_meta
138
+ end
139
+
140
+ # @see the `==` method
141
+ # @param [Object] Object to be compared
142
+ def eql?(o)
143
+ self == o
144
+ end
145
+
146
+ # Calculates hash code according to all attributes.
147
+ # @return [Integer] Hash code
148
+ def hash
149
+ [on_call_notification_pauses, pagination_meta].hash
150
+ end
151
+
152
+ # Builds the object from hash
153
+ # @param [Hash] attributes Model attributes in the form of hash
154
+ # @return [Object] Returns the model itself
155
+ def self.build_from_hash(attributes)
156
+ return nil unless attributes.is_a?(Hash)
157
+ attributes = attributes.transform_keys(&:to_sym)
158
+ transformed_hash = {}
159
+ openapi_types.each_pair do |key, type|
160
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
161
+ transformed_hash["#{key}"] = nil
162
+ elsif type =~ /\AArray<(.*)>/i
163
+ # check to ensure the input is an array given that the attribute
164
+ # is documented as an array but the input is not
165
+ if attributes[attribute_map[key]].is_a?(Array)
166
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
167
+ end
168
+ elsif !attributes[attribute_map[key]].nil?
169
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
170
+ end
171
+ end
172
+ new(transformed_hash)
173
+ end
174
+
175
+ # Returns the object in the form of hash
176
+ # @return [Hash] Returns the object in the form of hash
177
+ def to_hash
178
+ hash = {}
179
+ self.class.attribute_map.each_pair do |attr, param|
180
+ value = self.send(attr)
181
+ if value.nil?
182
+ is_nullable = self.class.openapi_nullable.include?(attr)
183
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
184
+ end
185
+
186
+ hash[param] = _to_hash(value)
187
+ end
188
+ hash
189
+ end
190
+
191
+ end
192
+
193
+ end
@@ -0,0 +1,164 @@
1
+ =begin
2
+ #incident.io
3
+
4
+ #Ruby client for the incident.io API.
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.25.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module IncidentIo
17
+ class OnCallNotificationPausesShowResultV2 < ApiModelBase
18
+ attr_accessor :on_call_notification_pause
19
+
20
+ # Attribute mapping from ruby-style variable name to JSON key.
21
+ def self.attribute_map
22
+ {
23
+ :'on_call_notification_pause' => :'on_call_notification_pause'
24
+ }
25
+ end
26
+
27
+ # Returns attribute mapping this model knows about
28
+ def self.acceptable_attribute_map
29
+ attribute_map
30
+ end
31
+
32
+ # Returns all the JSON keys this model knows about
33
+ def self.acceptable_attributes
34
+ acceptable_attribute_map.values
35
+ end
36
+
37
+ # Attribute type mapping.
38
+ def self.openapi_types
39
+ {
40
+ :'on_call_notification_pause' => :'OnCallNotificationPauseV2'
41
+ }
42
+ end
43
+
44
+ # List of attributes with nullable: true
45
+ def self.openapi_nullable
46
+ Set.new([
47
+ ])
48
+ end
49
+
50
+ # Initializes the object
51
+ # @param [Hash] attributes Model attributes in the form of hash
52
+ def initialize(attributes = {})
53
+ if (!attributes.is_a?(Hash))
54
+ fail ArgumentError, "The input argument (attributes) must be a hash in `IncidentIo::OnCallNotificationPausesShowResultV2` initialize method"
55
+ end
56
+
57
+ # check to see if the attribute exists and convert string to symbol for hash key
58
+ acceptable_attribute_map = self.class.acceptable_attribute_map
59
+ attributes = attributes.each_with_object({}) { |(k, v), h|
60
+ if (!acceptable_attribute_map.key?(k.to_sym))
61
+ fail ArgumentError, "`#{k}` is not a valid attribute in `IncidentIo::OnCallNotificationPausesShowResultV2`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
62
+ end
63
+ h[k.to_sym] = v
64
+ }
65
+
66
+ if attributes.key?(:'on_call_notification_pause')
67
+ self.on_call_notification_pause = attributes[:'on_call_notification_pause']
68
+ else
69
+ self.on_call_notification_pause = nil
70
+ end
71
+ end
72
+
73
+ # Show invalid properties with the reasons. Usually used together with valid?
74
+ # @return Array for valid properties with the reasons
75
+ def list_invalid_properties
76
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
77
+ invalid_properties = Array.new
78
+ if @on_call_notification_pause.nil?
79
+ invalid_properties.push('invalid value for "on_call_notification_pause", on_call_notification_pause cannot be nil.')
80
+ end
81
+
82
+ invalid_properties
83
+ end
84
+
85
+ # Check to see if the all the properties in the model are valid
86
+ # @return true if the model is valid
87
+ def valid?
88
+ warn '[DEPRECATED] the `valid?` method is obsolete'
89
+ return false if @on_call_notification_pause.nil?
90
+ true
91
+ end
92
+
93
+ # Custom attribute writer method with validation
94
+ # @param [Object] on_call_notification_pause Value to be assigned
95
+ def on_call_notification_pause=(on_call_notification_pause)
96
+ if on_call_notification_pause.nil?
97
+ fail ArgumentError, 'on_call_notification_pause cannot be nil'
98
+ end
99
+
100
+ @on_call_notification_pause = on_call_notification_pause
101
+ end
102
+
103
+ # Checks equality by comparing each attribute.
104
+ # @param [Object] Object to be compared
105
+ def ==(o)
106
+ return true if self.equal?(o)
107
+ self.class == o.class &&
108
+ on_call_notification_pause == o.on_call_notification_pause
109
+ end
110
+
111
+ # @see the `==` method
112
+ # @param [Object] Object to be compared
113
+ def eql?(o)
114
+ self == o
115
+ end
116
+
117
+ # Calculates hash code according to all attributes.
118
+ # @return [Integer] Hash code
119
+ def hash
120
+ [on_call_notification_pause].hash
121
+ end
122
+
123
+ # Builds the object from hash
124
+ # @param [Hash] attributes Model attributes in the form of hash
125
+ # @return [Object] Returns the model itself
126
+ def self.build_from_hash(attributes)
127
+ return nil unless attributes.is_a?(Hash)
128
+ attributes = attributes.transform_keys(&:to_sym)
129
+ transformed_hash = {}
130
+ openapi_types.each_pair do |key, type|
131
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
132
+ transformed_hash["#{key}"] = nil
133
+ elsif type =~ /\AArray<(.*)>/i
134
+ # check to ensure the input is an array given that the attribute
135
+ # is documented as an array but the input is not
136
+ if attributes[attribute_map[key]].is_a?(Array)
137
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
138
+ end
139
+ elsif !attributes[attribute_map[key]].nil?
140
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
141
+ end
142
+ end
143
+ new(transformed_hash)
144
+ end
145
+
146
+ # Returns the object in the form of hash
147
+ # @return [Hash] Returns the object in the form of hash
148
+ def to_hash
149
+ hash = {}
150
+ self.class.attribute_map.each_pair do |attr, param|
151
+ value = self.send(attr)
152
+ if value.nil?
153
+ is_nullable = self.class.openapi_nullable.include?(attr)
154
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
155
+ end
156
+
157
+ hash[param] = _to_hash(value)
158
+ end
159
+ hash
160
+ end
161
+
162
+ end
163
+
164
+ end
@@ -4,5 +4,5 @@ module IncidentIo
4
4
  # The release workflow sets this before building, so it tracks whatever we
5
5
  # last published. Listed in .openapi-generator-ignore so regeneration can't
6
6
  # reset it.
7
- VERSION = "2.14.0"
7
+ VERSION = "2.16.0"
8
8
  end
data/lib/incident_io.rb CHANGED
@@ -253,6 +253,7 @@ IncidentIo.autoload :AuditLogScheduleOverrideMetadataV2, 'incident_io/models/aud
253
253
  IncidentIo.autoload :AuditLogTargetV2, 'incident_io/models/audit_log_target_v2'
254
254
  IncidentIo.autoload :AuditLogTelemetryDataSourceAccessModeChangedMetadataV2, 'incident_io/models/audit_log_telemetry_data_source_access_mode_changed_metadata_v2'
255
255
  IncidentIo.autoload :AuditLogTelemetryDataSourceAccessPolicyChangedMetadataV2, 'incident_io/models/audit_log_telemetry_data_source_access_policy_changed_metadata_v2'
256
+ IncidentIo.autoload :AuditLogTelemetryDataSourceAccessPolicyChangedMetadataV2V2, 'incident_io/models/audit_log_telemetry_data_source_access_policy_changed_metadata_v2_v2'
256
257
  IncidentIo.autoload :AuditLogTelemetryDataSourceQueriedMetadataV2, 'incident_io/models/audit_log_telemetry_data_source_queried_metadata_v2'
257
258
  IncidentIo.autoload :AuditLogTelemetryDataSourceQueriedMetadataV2V2, 'incident_io/models/audit_log_telemetry_data_source_queried_metadata_v2_v2'
258
259
  IncidentIo.autoload :AuditLogTelemetryDataSourceRequestedMetadataV2, 'incident_io/models/audit_log_telemetry_data_source_requested_metadata_v2'
@@ -474,6 +475,7 @@ IncidentIo.autoload :AuditLogsTeamRoleUpdatedV1, 'incident_io/models/audit_logs_
474
475
  IncidentIo.autoload :AuditLogsTeamSettingsUpdatedV1, 'incident_io/models/audit_logs_team_settings_updated_v1'
475
476
  IncidentIo.autoload :AuditLogsTelemetryDataSourceAccessModeChangedV1, 'incident_io/models/audit_logs_telemetry_data_source_access_mode_changed_v1'
476
477
  IncidentIo.autoload :AuditLogsTelemetryDataSourceAccessPolicyChangedV1, 'incident_io/models/audit_logs_telemetry_data_source_access_policy_changed_v1'
478
+ IncidentIo.autoload :AuditLogsTelemetryDataSourceAccessPolicyChangedV2, 'incident_io/models/audit_logs_telemetry_data_source_access_policy_changed_v2'
477
479
  IncidentIo.autoload :AuditLogsTelemetryDataSourceInstalledV1, 'incident_io/models/audit_logs_telemetry_data_source_installed_v1'
478
480
  IncidentIo.autoload :AuditLogsTelemetryDataSourceQueriedV1, 'incident_io/models/audit_logs_telemetry_data_source_queried_v1'
479
481
  IncidentIo.autoload :AuditLogsTelemetryDataSourceQueriedV2, 'incident_io/models/audit_logs_telemetry_data_source_queried_v2'
@@ -915,6 +917,9 @@ IncidentIo.autoload :ManagementMetaV2, 'incident_io/models/management_meta_v2'
915
917
  IncidentIo.autoload :NewSlackUserGroupPayloadV2, 'incident_io/models/new_slack_user_group_payload_v2'
916
918
  IncidentIo.autoload :OnCallNotificationMethodPhoneDetailsPublicV2, 'incident_io/models/on_call_notification_method_phone_details_public_v2'
917
919
  IncidentIo.autoload :OnCallNotificationMethodPublicV2, 'incident_io/models/on_call_notification_method_public_v2'
920
+ IncidentIo.autoload :OnCallNotificationPauseV2, 'incident_io/models/on_call_notification_pause_v2'
921
+ IncidentIo.autoload :OnCallNotificationPausesListResultV2, 'incident_io/models/on_call_notification_pauses_list_result_v2'
922
+ IncidentIo.autoload :OnCallNotificationPausesShowResultV2, 'incident_io/models/on_call_notification_pauses_show_result_v2'
918
923
  IncidentIo.autoload :OnCallNotificationRuleAppDetailsPublicV2, 'incident_io/models/on_call_notification_rule_app_details_public_v2'
919
924
  IncidentIo.autoload :OnCallNotificationRuleMethodTargetPublicV2, 'incident_io/models/on_call_notification_rule_method_target_public_v2'
920
925
  IncidentIo.autoload :OnCallNotificationRuleMethodTargetSpecificPublicV2, 'incident_io/models/on_call_notification_rule_method_target_specific_public_v2'
@@ -1278,6 +1283,7 @@ IncidentIo.autoload :IncidentUpdatesV2Api, 'incident_io/api/incident_updates_v2_
1278
1283
  IncidentIo.autoload :IncidentsV1Api, 'incident_io/api/incidents_v1_api'
1279
1284
  IncidentIo.autoload :IncidentsV2Api, 'incident_io/api/incidents_v2_api'
1280
1285
  IncidentIo.autoload :MaintenanceWindowsV1Api, 'incident_io/api/maintenance_windows_v1_api'
1286
+ IncidentIo.autoload :OnCallNotificationPausesV2Api, 'incident_io/api/on_call_notification_pauses_v2_api'
1281
1287
  IncidentIo.autoload :PayConfigsV2Api, 'incident_io/api/pay_configs_v2_api'
1282
1288
  IncidentIo.autoload :PayReportsV2Api, 'incident_io/api/pay_reports_v2_api'
1283
1289
  IncidentIo.autoload :PoliciesV2Api, 'incident_io/api/policies_v2_api'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: incident_io_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.14.0
4
+ version: 2.16.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-08 00:00:00.000000000 Z
11
+ date: 2026-10-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -121,6 +121,7 @@ files:
121
121
  - lib/incident_io/api/incidents_v2_api.rb
122
122
  - lib/incident_io/api/ip_allowlists_v1_api.rb
123
123
  - lib/incident_io/api/maintenance_windows_v1_api.rb
124
+ - lib/incident_io/api/on_call_notification_pauses_v2_api.rb
124
125
  - lib/incident_io/api/pay_configs_v2_api.rb
125
126
  - lib/incident_io/api/pay_reports_v2_api.rb
126
127
  - lib/incident_io/api/policies_v2_api.rb
@@ -377,6 +378,7 @@ files:
377
378
  - lib/incident_io/models/audit_log_target_v2.rb
378
379
  - lib/incident_io/models/audit_log_telemetry_data_source_access_mode_changed_metadata_v2.rb
379
380
  - lib/incident_io/models/audit_log_telemetry_data_source_access_policy_changed_metadata_v2.rb
381
+ - lib/incident_io/models/audit_log_telemetry_data_source_access_policy_changed_metadata_v2_v2.rb
380
382
  - lib/incident_io/models/audit_log_telemetry_data_source_queried_metadata_v2.rb
381
383
  - lib/incident_io/models/audit_log_telemetry_data_source_queried_metadata_v2_v2.rb
382
384
  - lib/incident_io/models/audit_log_telemetry_data_source_requested_metadata_v2.rb
@@ -598,6 +600,7 @@ files:
598
600
  - lib/incident_io/models/audit_logs_team_settings_updated_v1.rb
599
601
  - lib/incident_io/models/audit_logs_telemetry_data_source_access_mode_changed_v1.rb
600
602
  - lib/incident_io/models/audit_logs_telemetry_data_source_access_policy_changed_v1.rb
603
+ - lib/incident_io/models/audit_logs_telemetry_data_source_access_policy_changed_v2.rb
601
604
  - lib/incident_io/models/audit_logs_telemetry_data_source_installed_v1.rb
602
605
  - lib/incident_io/models/audit_logs_telemetry_data_source_queried_v1.rb
603
606
  - lib/incident_io/models/audit_logs_telemetry_data_source_queried_v2.rb
@@ -1039,6 +1042,9 @@ files:
1039
1042
  - lib/incident_io/models/new_slack_user_group_payload_v2.rb
1040
1043
  - lib/incident_io/models/on_call_notification_method_phone_details_public_v2.rb
1041
1044
  - lib/incident_io/models/on_call_notification_method_public_v2.rb
1045
+ - lib/incident_io/models/on_call_notification_pause_v2.rb
1046
+ - lib/incident_io/models/on_call_notification_pauses_list_result_v2.rb
1047
+ - lib/incident_io/models/on_call_notification_pauses_show_result_v2.rb
1042
1048
  - lib/incident_io/models/on_call_notification_rule_app_details_public_v2.rb
1043
1049
  - lib/incident_io/models/on_call_notification_rule_method_target_public_v2.rb
1044
1050
  - lib/incident_io/models/on_call_notification_rule_method_target_specific_public_v2.rb