incident_io_api 2.13.0 → 2.15.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/on_call_notification_pauses_v2_api.rb +162 -0
- data/lib/incident_io/models/on_call_notification_pause_v2.rb +328 -0
- data/lib/incident_io/models/on_call_notification_pauses_list_result_v2.rb +193 -0
- data/lib/incident_io/models/on_call_notification_pauses_show_result_v2.rb +164 -0
- data/lib/incident_io/models/step_progress_slim_v2.rb +1 -1
- data/lib/incident_io/models/step_progress_v2.rb +1 -1
- data/lib/incident_io/version.rb +1 -1
- data/lib/incident_io.rb +4 -0
- metadata +6 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: '02800a3c0e04458b5f8ff3326cc5a6e40219102ad754177660350c1ebc9525c0'
|
|
4
|
+
data.tar.gz: 159983515ef8a0b6bc26691cace26bb2bb73cb9df868d2090a2dffa2aa52b99a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a8ef4ac0e14af85480c26e9feef06b14f4f9a7021b078e68cc3471d76e7bdbb81d31cda46fc64fdc0f93b5d24e34e059c4eb9c2d8582931ccb6d89d0ccc5603e
|
|
7
|
+
data.tar.gz: 74e333ec34c1c1eee7e04cbd2cdfa4f2658e6ecf1d42a619ef71f5bd033e4d924e0dadaa71b242e19eeb6876de8139f8cbac10a012f2c1bb91783c5e815be899
|
|
@@ -0,0 +1,162 @@
|
|
|
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 'cgi'
|
|
14
|
+
|
|
15
|
+
module IncidentIo
|
|
16
|
+
class OnCallNotificationPausesV2Api
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# List On-call Notification Pauses V2
|
|
23
|
+
# List on-call notification pauses across the organisation. By default this returns pauses that are active now or scheduled for the future. Cancelled pauses are never returned, and pauses that were resumed early have ends_at set to when they were resumed.
|
|
24
|
+
# @param [Hash] opts the optional parameters
|
|
25
|
+
# @option opts [Time] :from Only return pauses that end after this time. Defaults to now, so by default only active and upcoming pauses are returned.
|
|
26
|
+
# @option opts [Time] :to Only return pauses that start before this time
|
|
27
|
+
# @option opts [Integer] :page_size Integer number of records to return (default to 25)
|
|
28
|
+
# @option opts [String] :after A pause's ID. This endpoint will return a list of pauses after this ID in relation to the API response order.
|
|
29
|
+
# @return [OnCallNotificationPausesListResultV2]
|
|
30
|
+
def on_call_notification_pauses_v2_list(opts = {})
|
|
31
|
+
data, _status_code, _headers = on_call_notification_pauses_v2_list_with_http_info(opts)
|
|
32
|
+
data
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# List On-call Notification Pauses V2
|
|
36
|
+
# List on-call notification pauses across the organisation. By default this returns pauses that are active now or scheduled for the future. Cancelled pauses are never returned, and pauses that were resumed early have ends_at set to when they were resumed.
|
|
37
|
+
# @param [Hash] opts the optional parameters
|
|
38
|
+
# @option opts [Time] :from Only return pauses that end after this time. Defaults to now, so by default only active and upcoming pauses are returned.
|
|
39
|
+
# @option opts [Time] :to Only return pauses that start before this time
|
|
40
|
+
# @option opts [Integer] :page_size Integer number of records to return (default to 25)
|
|
41
|
+
# @option opts [String] :after A pause's ID. This endpoint will return a list of pauses after this ID in relation to the API response order.
|
|
42
|
+
# @return [Array<(OnCallNotificationPausesListResultV2, Integer, Hash)>] OnCallNotificationPausesListResultV2 data, response status code and response headers
|
|
43
|
+
def on_call_notification_pauses_v2_list_with_http_info(opts = {})
|
|
44
|
+
if @api_client.config.debugging
|
|
45
|
+
@api_client.config.logger.debug 'Calling API: OnCallNotificationPausesV2Api.on_call_notification_pauses_v2_list ...'
|
|
46
|
+
end
|
|
47
|
+
if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 250
|
|
48
|
+
fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling OnCallNotificationPausesV2Api.on_call_notification_pauses_v2_list, must be smaller than or equal to 250.'
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] < 1
|
|
52
|
+
fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling OnCallNotificationPausesV2Api.on_call_notification_pauses_v2_list, must be greater than or equal to 1.'
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
# resource path
|
|
56
|
+
local_var_path = '/v2/on_call_notification_pauses'
|
|
57
|
+
|
|
58
|
+
# query parameters
|
|
59
|
+
query_params = opts[:query_params] || {}
|
|
60
|
+
query_params[:'from'] = opts[:'from'] if !opts[:'from'].nil?
|
|
61
|
+
query_params[:'to'] = opts[:'to'] if !opts[:'to'].nil?
|
|
62
|
+
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
|
63
|
+
query_params[:'after'] = opts[:'after'] if !opts[:'after'].nil?
|
|
64
|
+
|
|
65
|
+
# header parameters
|
|
66
|
+
header_params = opts[:header_params] || {}
|
|
67
|
+
# HTTP header 'Accept' (if needed)
|
|
68
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
69
|
+
|
|
70
|
+
# form parameters
|
|
71
|
+
form_params = opts[:form_params] || {}
|
|
72
|
+
|
|
73
|
+
# http body (model)
|
|
74
|
+
post_body = opts[:debug_body]
|
|
75
|
+
|
|
76
|
+
# return_type
|
|
77
|
+
return_type = opts[:debug_return_type] || 'OnCallNotificationPausesListResultV2'
|
|
78
|
+
|
|
79
|
+
# auth_names
|
|
80
|
+
auth_names = opts[:debug_auth_names] || ['BearerAuth']
|
|
81
|
+
|
|
82
|
+
new_options = opts.merge(
|
|
83
|
+
:operation => :"OnCallNotificationPausesV2Api.on_call_notification_pauses_v2_list",
|
|
84
|
+
:header_params => header_params,
|
|
85
|
+
:query_params => query_params,
|
|
86
|
+
:form_params => form_params,
|
|
87
|
+
:body => post_body,
|
|
88
|
+
:auth_names => auth_names,
|
|
89
|
+
:return_type => return_type
|
|
90
|
+
)
|
|
91
|
+
|
|
92
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
93
|
+
if @api_client.config.debugging
|
|
94
|
+
@api_client.config.logger.debug "API called: OnCallNotificationPausesV2Api#on_call_notification_pauses_v2_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
95
|
+
end
|
|
96
|
+
return data, status_code, headers
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
# Show On-call Notification Pauses V2
|
|
100
|
+
# Show a single on-call notification pause. Cancelled pauses are not found.
|
|
101
|
+
# @param id [String] The pause's ID
|
|
102
|
+
# @param [Hash] opts the optional parameters
|
|
103
|
+
# @return [OnCallNotificationPausesShowResultV2]
|
|
104
|
+
def on_call_notification_pauses_v2_show(id, opts = {})
|
|
105
|
+
data, _status_code, _headers = on_call_notification_pauses_v2_show_with_http_info(id, opts)
|
|
106
|
+
data
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
# Show On-call Notification Pauses V2
|
|
110
|
+
# Show a single on-call notification pause. Cancelled pauses are not found.
|
|
111
|
+
# @param id [String] The pause's ID
|
|
112
|
+
# @param [Hash] opts the optional parameters
|
|
113
|
+
# @return [Array<(OnCallNotificationPausesShowResultV2, Integer, Hash)>] OnCallNotificationPausesShowResultV2 data, response status code and response headers
|
|
114
|
+
def on_call_notification_pauses_v2_show_with_http_info(id, opts = {})
|
|
115
|
+
if @api_client.config.debugging
|
|
116
|
+
@api_client.config.logger.debug 'Calling API: OnCallNotificationPausesV2Api.on_call_notification_pauses_v2_show ...'
|
|
117
|
+
end
|
|
118
|
+
# verify the required parameter 'id' is set
|
|
119
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
120
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling OnCallNotificationPausesV2Api.on_call_notification_pauses_v2_show"
|
|
121
|
+
end
|
|
122
|
+
# resource path
|
|
123
|
+
local_var_path = '/v2/on_call_notification_pauses/{id}'.sub('{id}', CGI.escape(id.to_s))
|
|
124
|
+
|
|
125
|
+
# query parameters
|
|
126
|
+
query_params = opts[:query_params] || {}
|
|
127
|
+
|
|
128
|
+
# header parameters
|
|
129
|
+
header_params = opts[:header_params] || {}
|
|
130
|
+
# HTTP header 'Accept' (if needed)
|
|
131
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
132
|
+
|
|
133
|
+
# form parameters
|
|
134
|
+
form_params = opts[:form_params] || {}
|
|
135
|
+
|
|
136
|
+
# http body (model)
|
|
137
|
+
post_body = opts[:debug_body]
|
|
138
|
+
|
|
139
|
+
# return_type
|
|
140
|
+
return_type = opts[:debug_return_type] || 'OnCallNotificationPausesShowResultV2'
|
|
141
|
+
|
|
142
|
+
# auth_names
|
|
143
|
+
auth_names = opts[:debug_auth_names] || ['BearerAuth']
|
|
144
|
+
|
|
145
|
+
new_options = opts.merge(
|
|
146
|
+
:operation => :"OnCallNotificationPausesV2Api.on_call_notification_pauses_v2_show",
|
|
147
|
+
:header_params => header_params,
|
|
148
|
+
:query_params => query_params,
|
|
149
|
+
:form_params => form_params,
|
|
150
|
+
:body => post_body,
|
|
151
|
+
:auth_names => auth_names,
|
|
152
|
+
:return_type => return_type
|
|
153
|
+
)
|
|
154
|
+
|
|
155
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
156
|
+
if @api_client.config.debugging
|
|
157
|
+
@api_client.config.logger.debug "API called: OnCallNotificationPausesV2Api#on_call_notification_pauses_v2_show\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
158
|
+
end
|
|
159
|
+
return data, status_code, headers
|
|
160
|
+
end
|
|
161
|
+
end
|
|
162
|
+
end
|
|
@@ -0,0 +1,328 @@
|
|
|
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
|
+
# A window in which a user's on-call notifications are paused: while it's active, escalations skip the user instead of paging them.
|
|
18
|
+
class OnCallNotificationPauseV2 < ApiModelBase
|
|
19
|
+
attr_accessor :created_at
|
|
20
|
+
|
|
21
|
+
# When notifications resume
|
|
22
|
+
attr_accessor :ends_at
|
|
23
|
+
|
|
24
|
+
# Unique identifier for this notification pause
|
|
25
|
+
attr_accessor :id
|
|
26
|
+
|
|
27
|
+
# Free text reason for why notifications are paused, shown to teammates
|
|
28
|
+
attr_accessor :reason
|
|
29
|
+
|
|
30
|
+
# When notifications stop being sent to the user
|
|
31
|
+
attr_accessor :starts_at
|
|
32
|
+
|
|
33
|
+
attr_accessor :updated_at
|
|
34
|
+
|
|
35
|
+
# The user whose on-call notifications are paused in this time window
|
|
36
|
+
attr_accessor :user_id
|
|
37
|
+
|
|
38
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
39
|
+
def self.attribute_map
|
|
40
|
+
{
|
|
41
|
+
:'created_at' => :'created_at',
|
|
42
|
+
:'ends_at' => :'ends_at',
|
|
43
|
+
:'id' => :'id',
|
|
44
|
+
:'reason' => :'reason',
|
|
45
|
+
:'starts_at' => :'starts_at',
|
|
46
|
+
:'updated_at' => :'updated_at',
|
|
47
|
+
:'user_id' => :'user_id'
|
|
48
|
+
}
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
# Returns attribute mapping this model knows about
|
|
52
|
+
def self.acceptable_attribute_map
|
|
53
|
+
attribute_map
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
# Returns all the JSON keys this model knows about
|
|
57
|
+
def self.acceptable_attributes
|
|
58
|
+
acceptable_attribute_map.values
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
# Attribute type mapping.
|
|
62
|
+
def self.openapi_types
|
|
63
|
+
{
|
|
64
|
+
:'created_at' => :'Time',
|
|
65
|
+
:'ends_at' => :'Time',
|
|
66
|
+
:'id' => :'String',
|
|
67
|
+
:'reason' => :'String',
|
|
68
|
+
:'starts_at' => :'Time',
|
|
69
|
+
:'updated_at' => :'Time',
|
|
70
|
+
:'user_id' => :'String'
|
|
71
|
+
}
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
# List of attributes with nullable: true
|
|
75
|
+
def self.openapi_nullable
|
|
76
|
+
Set.new([
|
|
77
|
+
])
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
# Initializes the object
|
|
81
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
82
|
+
def initialize(attributes = {})
|
|
83
|
+
if (!attributes.is_a?(Hash))
|
|
84
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `IncidentIo::OnCallNotificationPauseV2` initialize method"
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
88
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
89
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
90
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
91
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `IncidentIo::OnCallNotificationPauseV2`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
92
|
+
end
|
|
93
|
+
h[k.to_sym] = v
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
if attributes.key?(:'created_at')
|
|
97
|
+
self.created_at = attributes[:'created_at']
|
|
98
|
+
else
|
|
99
|
+
self.created_at = nil
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
if attributes.key?(:'ends_at')
|
|
103
|
+
self.ends_at = attributes[:'ends_at']
|
|
104
|
+
else
|
|
105
|
+
self.ends_at = nil
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
if attributes.key?(:'id')
|
|
109
|
+
self.id = attributes[:'id']
|
|
110
|
+
else
|
|
111
|
+
self.id = nil
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
if attributes.key?(:'reason')
|
|
115
|
+
self.reason = attributes[:'reason']
|
|
116
|
+
end
|
|
117
|
+
|
|
118
|
+
if attributes.key?(:'starts_at')
|
|
119
|
+
self.starts_at = attributes[:'starts_at']
|
|
120
|
+
else
|
|
121
|
+
self.starts_at = nil
|
|
122
|
+
end
|
|
123
|
+
|
|
124
|
+
if attributes.key?(:'updated_at')
|
|
125
|
+
self.updated_at = attributes[:'updated_at']
|
|
126
|
+
else
|
|
127
|
+
self.updated_at = nil
|
|
128
|
+
end
|
|
129
|
+
|
|
130
|
+
if attributes.key?(:'user_id')
|
|
131
|
+
self.user_id = attributes[:'user_id']
|
|
132
|
+
else
|
|
133
|
+
self.user_id = nil
|
|
134
|
+
end
|
|
135
|
+
end
|
|
136
|
+
|
|
137
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
138
|
+
# @return Array for valid properties with the reasons
|
|
139
|
+
def list_invalid_properties
|
|
140
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
141
|
+
invalid_properties = Array.new
|
|
142
|
+
if @created_at.nil?
|
|
143
|
+
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
|
144
|
+
end
|
|
145
|
+
|
|
146
|
+
if @ends_at.nil?
|
|
147
|
+
invalid_properties.push('invalid value for "ends_at", ends_at cannot be nil.')
|
|
148
|
+
end
|
|
149
|
+
|
|
150
|
+
if @id.nil?
|
|
151
|
+
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
|
152
|
+
end
|
|
153
|
+
|
|
154
|
+
if !@reason.nil? && @reason.to_s.length > 500
|
|
155
|
+
invalid_properties.push('invalid value for "reason", the character length must be smaller than or equal to 500.')
|
|
156
|
+
end
|
|
157
|
+
|
|
158
|
+
if @starts_at.nil?
|
|
159
|
+
invalid_properties.push('invalid value for "starts_at", starts_at cannot be nil.')
|
|
160
|
+
end
|
|
161
|
+
|
|
162
|
+
if @updated_at.nil?
|
|
163
|
+
invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
|
|
164
|
+
end
|
|
165
|
+
|
|
166
|
+
if @user_id.nil?
|
|
167
|
+
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
|
168
|
+
end
|
|
169
|
+
|
|
170
|
+
invalid_properties
|
|
171
|
+
end
|
|
172
|
+
|
|
173
|
+
# Check to see if the all the properties in the model are valid
|
|
174
|
+
# @return true if the model is valid
|
|
175
|
+
def valid?
|
|
176
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
177
|
+
return false if @created_at.nil?
|
|
178
|
+
return false if @ends_at.nil?
|
|
179
|
+
return false if @id.nil?
|
|
180
|
+
return false if !@reason.nil? && @reason.to_s.length > 500
|
|
181
|
+
return false if @starts_at.nil?
|
|
182
|
+
return false if @updated_at.nil?
|
|
183
|
+
return false if @user_id.nil?
|
|
184
|
+
true
|
|
185
|
+
end
|
|
186
|
+
|
|
187
|
+
# Custom attribute writer method with validation
|
|
188
|
+
# @param [Object] created_at Value to be assigned
|
|
189
|
+
def created_at=(created_at)
|
|
190
|
+
if created_at.nil?
|
|
191
|
+
fail ArgumentError, 'created_at cannot be nil'
|
|
192
|
+
end
|
|
193
|
+
|
|
194
|
+
@created_at = created_at
|
|
195
|
+
end
|
|
196
|
+
|
|
197
|
+
# Custom attribute writer method with validation
|
|
198
|
+
# @param [Object] ends_at Value to be assigned
|
|
199
|
+
def ends_at=(ends_at)
|
|
200
|
+
if ends_at.nil?
|
|
201
|
+
fail ArgumentError, 'ends_at cannot be nil'
|
|
202
|
+
end
|
|
203
|
+
|
|
204
|
+
@ends_at = ends_at
|
|
205
|
+
end
|
|
206
|
+
|
|
207
|
+
# Custom attribute writer method with validation
|
|
208
|
+
# @param [Object] id Value to be assigned
|
|
209
|
+
def id=(id)
|
|
210
|
+
if id.nil?
|
|
211
|
+
fail ArgumentError, 'id cannot be nil'
|
|
212
|
+
end
|
|
213
|
+
|
|
214
|
+
@id = id
|
|
215
|
+
end
|
|
216
|
+
|
|
217
|
+
# Custom attribute writer method with validation
|
|
218
|
+
# @param [Object] reason Value to be assigned
|
|
219
|
+
def reason=(reason)
|
|
220
|
+
if reason.nil?
|
|
221
|
+
fail ArgumentError, 'reason cannot be nil'
|
|
222
|
+
end
|
|
223
|
+
|
|
224
|
+
if reason.to_s.length > 500
|
|
225
|
+
fail ArgumentError, 'invalid value for "reason", the character length must be smaller than or equal to 500.'
|
|
226
|
+
end
|
|
227
|
+
|
|
228
|
+
@reason = reason
|
|
229
|
+
end
|
|
230
|
+
|
|
231
|
+
# Custom attribute writer method with validation
|
|
232
|
+
# @param [Object] starts_at Value to be assigned
|
|
233
|
+
def starts_at=(starts_at)
|
|
234
|
+
if starts_at.nil?
|
|
235
|
+
fail ArgumentError, 'starts_at cannot be nil'
|
|
236
|
+
end
|
|
237
|
+
|
|
238
|
+
@starts_at = starts_at
|
|
239
|
+
end
|
|
240
|
+
|
|
241
|
+
# Custom attribute writer method with validation
|
|
242
|
+
# @param [Object] updated_at Value to be assigned
|
|
243
|
+
def updated_at=(updated_at)
|
|
244
|
+
if updated_at.nil?
|
|
245
|
+
fail ArgumentError, 'updated_at cannot be nil'
|
|
246
|
+
end
|
|
247
|
+
|
|
248
|
+
@updated_at = updated_at
|
|
249
|
+
end
|
|
250
|
+
|
|
251
|
+
# Custom attribute writer method with validation
|
|
252
|
+
# @param [Object] user_id Value to be assigned
|
|
253
|
+
def user_id=(user_id)
|
|
254
|
+
if user_id.nil?
|
|
255
|
+
fail ArgumentError, 'user_id cannot be nil'
|
|
256
|
+
end
|
|
257
|
+
|
|
258
|
+
@user_id = user_id
|
|
259
|
+
end
|
|
260
|
+
|
|
261
|
+
# Checks equality by comparing each attribute.
|
|
262
|
+
# @param [Object] Object to be compared
|
|
263
|
+
def ==(o)
|
|
264
|
+
return true if self.equal?(o)
|
|
265
|
+
self.class == o.class &&
|
|
266
|
+
created_at == o.created_at &&
|
|
267
|
+
ends_at == o.ends_at &&
|
|
268
|
+
id == o.id &&
|
|
269
|
+
reason == o.reason &&
|
|
270
|
+
starts_at == o.starts_at &&
|
|
271
|
+
updated_at == o.updated_at &&
|
|
272
|
+
user_id == o.user_id
|
|
273
|
+
end
|
|
274
|
+
|
|
275
|
+
# @see the `==` method
|
|
276
|
+
# @param [Object] Object to be compared
|
|
277
|
+
def eql?(o)
|
|
278
|
+
self == o
|
|
279
|
+
end
|
|
280
|
+
|
|
281
|
+
# Calculates hash code according to all attributes.
|
|
282
|
+
# @return [Integer] Hash code
|
|
283
|
+
def hash
|
|
284
|
+
[created_at, ends_at, id, reason, starts_at, updated_at, user_id].hash
|
|
285
|
+
end
|
|
286
|
+
|
|
287
|
+
# Builds the object from hash
|
|
288
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
289
|
+
# @return [Object] Returns the model itself
|
|
290
|
+
def self.build_from_hash(attributes)
|
|
291
|
+
return nil unless attributes.is_a?(Hash)
|
|
292
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
293
|
+
transformed_hash = {}
|
|
294
|
+
openapi_types.each_pair do |key, type|
|
|
295
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
296
|
+
transformed_hash["#{key}"] = nil
|
|
297
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
298
|
+
# check to ensure the input is an array given that the attribute
|
|
299
|
+
# is documented as an array but the input is not
|
|
300
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
301
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
302
|
+
end
|
|
303
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
304
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
305
|
+
end
|
|
306
|
+
end
|
|
307
|
+
new(transformed_hash)
|
|
308
|
+
end
|
|
309
|
+
|
|
310
|
+
# Returns the object in the form of hash
|
|
311
|
+
# @return [Hash] Returns the object in the form of hash
|
|
312
|
+
def to_hash
|
|
313
|
+
hash = {}
|
|
314
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
315
|
+
value = self.send(attr)
|
|
316
|
+
if value.nil?
|
|
317
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
318
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
319
|
+
end
|
|
320
|
+
|
|
321
|
+
hash[param] = _to_hash(value)
|
|
322
|
+
end
|
|
323
|
+
hash
|
|
324
|
+
end
|
|
325
|
+
|
|
326
|
+
end
|
|
327
|
+
|
|
328
|
+
end
|
|
@@ -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
|
|
@@ -27,7 +27,7 @@ module IncidentIo
|
|
|
27
27
|
# If this step ran for a specific incident (e.g. in a loop), the incident reference
|
|
28
28
|
attr_accessor :incident_reference
|
|
29
29
|
|
|
30
|
-
# Status of the step Known values: `complete`, `pending`, `error`
|
|
30
|
+
# Status of the step Known values: `complete`, `pending`, `error`, `suspended`
|
|
31
31
|
attr_accessor :status
|
|
32
32
|
|
|
33
33
|
# Name of the step
|
|
@@ -27,7 +27,7 @@ module IncidentIo
|
|
|
27
27
|
# If this step ran for a specific incident (e.g. in a loop), the incident reference
|
|
28
28
|
attr_accessor :incident_reference
|
|
29
29
|
|
|
30
|
-
# Status of the step Known values: `complete`, `pending`, `error`
|
|
30
|
+
# Status of the step Known values: `complete`, `pending`, `error`, `suspended`
|
|
31
31
|
attr_accessor :status
|
|
32
32
|
|
|
33
33
|
# Name of the step
|
data/lib/incident_io/version.rb
CHANGED
data/lib/incident_io.rb
CHANGED
|
@@ -915,6 +915,9 @@ IncidentIo.autoload :ManagementMetaV2, 'incident_io/models/management_meta_v2'
|
|
|
915
915
|
IncidentIo.autoload :NewSlackUserGroupPayloadV2, 'incident_io/models/new_slack_user_group_payload_v2'
|
|
916
916
|
IncidentIo.autoload :OnCallNotificationMethodPhoneDetailsPublicV2, 'incident_io/models/on_call_notification_method_phone_details_public_v2'
|
|
917
917
|
IncidentIo.autoload :OnCallNotificationMethodPublicV2, 'incident_io/models/on_call_notification_method_public_v2'
|
|
918
|
+
IncidentIo.autoload :OnCallNotificationPauseV2, 'incident_io/models/on_call_notification_pause_v2'
|
|
919
|
+
IncidentIo.autoload :OnCallNotificationPausesListResultV2, 'incident_io/models/on_call_notification_pauses_list_result_v2'
|
|
920
|
+
IncidentIo.autoload :OnCallNotificationPausesShowResultV2, 'incident_io/models/on_call_notification_pauses_show_result_v2'
|
|
918
921
|
IncidentIo.autoload :OnCallNotificationRuleAppDetailsPublicV2, 'incident_io/models/on_call_notification_rule_app_details_public_v2'
|
|
919
922
|
IncidentIo.autoload :OnCallNotificationRuleMethodTargetPublicV2, 'incident_io/models/on_call_notification_rule_method_target_public_v2'
|
|
920
923
|
IncidentIo.autoload :OnCallNotificationRuleMethodTargetSpecificPublicV2, 'incident_io/models/on_call_notification_rule_method_target_specific_public_v2'
|
|
@@ -1278,6 +1281,7 @@ IncidentIo.autoload :IncidentUpdatesV2Api, 'incident_io/api/incident_updates_v2_
|
|
|
1278
1281
|
IncidentIo.autoload :IncidentsV1Api, 'incident_io/api/incidents_v1_api'
|
|
1279
1282
|
IncidentIo.autoload :IncidentsV2Api, 'incident_io/api/incidents_v2_api'
|
|
1280
1283
|
IncidentIo.autoload :MaintenanceWindowsV1Api, 'incident_io/api/maintenance_windows_v1_api'
|
|
1284
|
+
IncidentIo.autoload :OnCallNotificationPausesV2Api, 'incident_io/api/on_call_notification_pauses_v2_api'
|
|
1281
1285
|
IncidentIo.autoload :PayConfigsV2Api, 'incident_io/api/pay_configs_v2_api'
|
|
1282
1286
|
IncidentIo.autoload :PayReportsV2Api, 'incident_io/api/pay_reports_v2_api'
|
|
1283
1287
|
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.
|
|
4
|
+
version: 2.15.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-09 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
|
|
@@ -1039,6 +1040,9 @@ files:
|
|
|
1039
1040
|
- lib/incident_io/models/new_slack_user_group_payload_v2.rb
|
|
1040
1041
|
- lib/incident_io/models/on_call_notification_method_phone_details_public_v2.rb
|
|
1041
1042
|
- lib/incident_io/models/on_call_notification_method_public_v2.rb
|
|
1043
|
+
- lib/incident_io/models/on_call_notification_pause_v2.rb
|
|
1044
|
+
- lib/incident_io/models/on_call_notification_pauses_list_result_v2.rb
|
|
1045
|
+
- lib/incident_io/models/on_call_notification_pauses_show_result_v2.rb
|
|
1042
1046
|
- lib/incident_io/models/on_call_notification_rule_app_details_public_v2.rb
|
|
1043
1047
|
- lib/incident_io/models/on_call_notification_rule_method_target_public_v2.rb
|
|
1044
1048
|
- lib/incident_io/models/on_call_notification_rule_method_target_specific_public_v2.rb
|