incident_io_sdk 0.1.2 → 0.1.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8c1c566a2f77bb11b3ac7dde8aa6d309fe2fb0d8dac2be808cc152337f19d416
4
- data.tar.gz: dd298e847b919a62d73d6957ec819c486dfe4d9df51e114cd577457bd59b10e8
3
+ metadata.gz: a1b76b6544736f2cde08e9de14c42e5a89871e0ad7b46b36b2354a3a33e95d55
4
+ data.tar.gz: 729031a3cd6a3b20f39eba5b6a579d7b58f378d035fc7b9c2f86ef505617649a
5
5
  SHA512:
6
- metadata.gz: 17073d38370555e9790805aed6270b9fda7345406d51753e9be38b4489de9d6fac54016d7edcf7898977e5999ddc259dcbc71438fe959e1706c40313cc14fcd7
7
- data.tar.gz: cf9de664e22b5dbcff09ce22cb6f1a18112821fa8a43055cc8fbfac433e11b8e846fec050eefeccb26975caae03260c1085e004e0bbdd45eef6bea59f6059e8d
6
+ metadata.gz: 9a49cc0e93ba7d7e9361b3eb20462a10b9721efaee25054a6da265e87126e0168229a0d2baf076e914f296340a376ef1e4531f6c42c874ef889da04009934d7f
7
+ data.tar.gz: 3f37d587920f2fad60dfdecbe8e98c52c68adcd745e6f66597ad59f8234f8db27f6ead9563aaed64f6d738de6f59f36e2c7a14631acdb930662fd68f044655d5
data/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2021 Mustafa Bayar
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1
+ MIT License
2
+
3
+ Copyright (c) 2021 Mustafa Bayar
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
21
  SOFTWARE.
data/README.md CHANGED
@@ -36,12 +36,14 @@ bundle install
36
36
 
37
37
  ### Initialization
38
38
 
39
- First, you'll need to configure the SDK with your API key:
39
+ First, you'll need to configure the SDK with your access token:
40
40
 
41
41
  ```ruby
42
42
  require 'incident_io_sdk'
43
43
 
44
- client = IncidentIoSdk::Client.new(api_key: 'your-api-key')
44
+ config = IncidentIoSdk::Configuration.new
45
+ config.access_token = api_key
46
+ client = IncidentIoSdk::ApiClient.new(config)
45
47
  ```
46
48
 
47
49
  ### Making Requests
@@ -49,19 +51,14 @@ client = IncidentIoSdk::Client.new(api_key: 'your-api-key')
49
51
  Once the client is initialized, you can use it to interact with the API:
50
52
 
51
53
  ```ruby
52
- # Example: Fetching an incident
53
- incident = client.incidents.get(incident_id: '12345')
54
+ # Example: Fetching schedule entries
54
55
 
55
- puts incident.details
56
+ api = IncidentIoSdk::SchedulesV2Api.new(client)
57
+ response = api.schedules_v2_list_schedule_entries(SCHEDULE_ID, opts)
56
58
  ```
57
59
 
58
60
  ### Available Endpoints
59
61
 
60
- You can use the SDK to interact with the following endpoints (examples):
61
-
62
- - **Get Incidents**: `client.incidents.get`
63
- - **Create an Incident**: `client.incidents.create`
64
-
65
62
  For full usage examples, refer to the [documentation](https://docs.incident.io).
66
63
 
67
64
  ## Development
@@ -4,7 +4,7 @@
4
4
 
5
5
  Gem::Specification.new do |s|
6
6
  s.name = "incident_io_sdk"
7
- s.version = "0.1.2"
7
+ s.version = "0.1.3"
8
8
  s.platform = Gem::Platform::RUBY
9
9
  s.authors = ["Mustafa Bayar"]
10
10
  s.email = ["mbcoders@gmail.com"]
@@ -24,8 +24,8 @@ module IncidentIoSdk
24
24
  # @param schedules_create_payload_v2 [SchedulesCreatePayloadV2]
25
25
  # @param [Hash] opts the optional parameters
26
26
  # @return [SchedulesCreateResultV2]
27
- def schedules_v2_create(schedules_create_payload_v2, opts = {})
28
- data, _status_code, _headers = schedules_v2_create_with_http_info(schedules_create_payload_v2, opts)
27
+ def create(schedules_create_payload_v2, opts = {})
28
+ data, _status_code, _headers = create_with_http_info(schedules_create_payload_v2, opts)
29
29
  data
30
30
  end
31
31
 
@@ -34,13 +34,13 @@ module IncidentIoSdk
34
34
  # @param schedules_create_payload_v2 [SchedulesCreatePayloadV2]
35
35
  # @param [Hash] opts the optional parameters
36
36
  # @return [Array<(SchedulesCreateResultV2, Integer, Hash)>] SchedulesCreateResultV2 data, response status code and response headers
37
- def schedules_v2_create_with_http_info(schedules_create_payload_v2, opts = {})
37
+ def create_with_http_info(schedules_create_payload_v2, opts = {})
38
38
  if @api_client.config.debugging
39
- @api_client.config.logger.debug 'Calling API: SchedulesV2Api.schedules_v2_create ...'
39
+ @api_client.config.logger.debug 'Calling API: SchedulesV2Api.create ...'
40
40
  end
41
41
  # verify the required parameter 'schedules_create_payload_v2' is set
42
42
  if @api_client.config.client_side_validation && schedules_create_payload_v2.nil?
43
- fail ArgumentError, "Missing the required parameter 'schedules_create_payload_v2' when calling SchedulesV2Api.schedules_v2_create"
43
+ fail ArgumentError, "Missing the required parameter 'schedules_create_payload_v2' when calling SchedulesV2Api.create"
44
44
  end
45
45
  # resource path
46
46
  local_var_path = '/v2/schedules'
@@ -71,7 +71,7 @@ module IncidentIoSdk
71
71
  auth_names = opts[:debug_auth_names] || []
72
72
 
73
73
  new_options = opts.merge(
74
- :operation => :"SchedulesV2Api.schedules_v2_create",
74
+ :operation => :"SchedulesV2Api.create",
75
75
  :header_params => header_params,
76
76
  :query_params => query_params,
77
77
  :form_params => form_params,
@@ -82,7 +82,7 @@ module IncidentIoSdk
82
82
 
83
83
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
84
84
  if @api_client.config.debugging
85
- @api_client.config.logger.debug "API called: SchedulesV2Api#schedules_v2_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
85
+ @api_client.config.logger.debug "API called: SchedulesV2Api#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
86
86
  end
87
87
  return data, status_code, headers
88
88
  end
@@ -92,8 +92,8 @@ module IncidentIoSdk
92
92
  # @param schedules_create_override_payload_v2 [SchedulesCreateOverridePayloadV2]
93
93
  # @param [Hash] opts the optional parameters
94
94
  # @return [SchedulesCreateOverrideResultV2]
95
- def schedules_v2_create_override(schedules_create_override_payload_v2, opts = {})
96
- data, _status_code, _headers = schedules_v2_create_override_with_http_info(schedules_create_override_payload_v2, opts)
95
+ def create_override(schedules_create_override_payload_v2, opts = {})
96
+ data, _status_code, _headers = create_override_with_http_info(schedules_create_override_payload_v2, opts)
97
97
  data
98
98
  end
99
99
 
@@ -102,13 +102,13 @@ module IncidentIoSdk
102
102
  # @param schedules_create_override_payload_v2 [SchedulesCreateOverridePayloadV2]
103
103
  # @param [Hash] opts the optional parameters
104
104
  # @return [Array<(SchedulesCreateOverrideResultV2, Integer, Hash)>] SchedulesCreateOverrideResultV2 data, response status code and response headers
105
- def schedules_v2_create_override_with_http_info(schedules_create_override_payload_v2, opts = {})
105
+ def create_override_with_http_info(schedules_create_override_payload_v2, opts = {})
106
106
  if @api_client.config.debugging
107
- @api_client.config.logger.debug 'Calling API: SchedulesV2Api.schedules_v2_create_override ...'
107
+ @api_client.config.logger.debug 'Calling API: SchedulesV2Api.create_override ...'
108
108
  end
109
109
  # verify the required parameter 'schedules_create_override_payload_v2' is set
110
110
  if @api_client.config.client_side_validation && schedules_create_override_payload_v2.nil?
111
- fail ArgumentError, "Missing the required parameter 'schedules_create_override_payload_v2' when calling SchedulesV2Api.schedules_v2_create_override"
111
+ fail ArgumentError, "Missing the required parameter 'schedules_create_override_payload_v2' when calling SchedulesV2Api.create_override"
112
112
  end
113
113
  # resource path
114
114
  local_var_path = '/v2/schedule_overrides'
@@ -139,7 +139,7 @@ module IncidentIoSdk
139
139
  auth_names = opts[:debug_auth_names] || []
140
140
 
141
141
  new_options = opts.merge(
142
- :operation => :"SchedulesV2Api.schedules_v2_create_override",
142
+ :operation => :"SchedulesV2Api.create_override",
143
143
  :header_params => header_params,
144
144
  :query_params => query_params,
145
145
  :form_params => form_params,
@@ -150,7 +150,7 @@ module IncidentIoSdk
150
150
 
151
151
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
152
152
  if @api_client.config.debugging
153
- @api_client.config.logger.debug "API called: SchedulesV2Api#schedules_v2_create_override\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
153
+ @api_client.config.logger.debug "API called: SchedulesV2Api#create_override\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
154
154
  end
155
155
  return data, status_code, headers
156
156
  end
@@ -160,8 +160,8 @@ module IncidentIoSdk
160
160
  # @param id [String] Unique internal ID of the schedule
161
161
  # @param [Hash] opts the optional parameters
162
162
  # @return [nil]
163
- def schedules_v2_destroy(id, opts = {})
164
- schedules_v2_destroy_with_http_info(id, opts)
163
+ def destroy(id, opts = {})
164
+ destroy_with_http_info(id, opts)
165
165
  nil
166
166
  end
167
167
 
@@ -170,13 +170,13 @@ module IncidentIoSdk
170
170
  # @param id [String] Unique internal ID of the schedule
171
171
  # @param [Hash] opts the optional parameters
172
172
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
173
- def schedules_v2_destroy_with_http_info(id, opts = {})
173
+ def destroy_with_http_info(id, opts = {})
174
174
  if @api_client.config.debugging
175
- @api_client.config.logger.debug 'Calling API: SchedulesV2Api.schedules_v2_destroy ...'
175
+ @api_client.config.logger.debug 'Calling API: SchedulesV2Api.destroy ...'
176
176
  end
177
177
  # verify the required parameter 'id' is set
178
178
  if @api_client.config.client_side_validation && id.nil?
179
- fail ArgumentError, "Missing the required parameter 'id' when calling SchedulesV2Api.schedules_v2_destroy"
179
+ fail ArgumentError, "Missing the required parameter 'id' when calling SchedulesV2Api.destroy"
180
180
  end
181
181
  # resource path
182
182
  local_var_path = '/v2/schedules/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
@@ -200,7 +200,7 @@ module IncidentIoSdk
200
200
  auth_names = opts[:debug_auth_names] || []
201
201
 
202
202
  new_options = opts.merge(
203
- :operation => :"SchedulesV2Api.schedules_v2_destroy",
203
+ :operation => :"SchedulesV2Api.destroy",
204
204
  :header_params => header_params,
205
205
  :query_params => query_params,
206
206
  :form_params => form_params,
@@ -211,7 +211,7 @@ module IncidentIoSdk
211
211
 
212
212
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
213
213
  if @api_client.config.debugging
214
- @api_client.config.logger.debug "API called: SchedulesV2Api#schedules_v2_destroy\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
214
+ @api_client.config.logger.debug "API called: SchedulesV2Api#destroy\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
215
215
  end
216
216
  return data, status_code, headers
217
217
  end
@@ -222,8 +222,8 @@ module IncidentIoSdk
222
222
  # @option opts [Integer] :page_size number of records to return (default to 25)
223
223
  # @option opts [String] :after A schedule&#39;s ID. This endpoint will return a list of schedules after this ID in relation to the API response order.
224
224
  # @return [SchedulesListResultV2]
225
- def schedules_v2_list(opts = {})
226
- data, _status_code, _headers = schedules_v2_list_with_http_info(opts)
225
+ def list(opts = {})
226
+ data, _status_code, _headers = list_with_http_info(opts)
227
227
  data
228
228
  end
229
229
 
@@ -233,9 +233,9 @@ module IncidentIoSdk
233
233
  # @option opts [Integer] :page_size number of records to return (default to 25)
234
234
  # @option opts [String] :after A schedule&#39;s ID. This endpoint will return a list of schedules after this ID in relation to the API response order.
235
235
  # @return [Array<(SchedulesListResultV2, Integer, Hash)>] SchedulesListResultV2 data, response status code and response headers
236
- def schedules_v2_list_with_http_info(opts = {})
236
+ def list_with_http_info(opts = {})
237
237
  if @api_client.config.debugging
238
- @api_client.config.logger.debug 'Calling API: SchedulesV2Api.schedules_v2_list ...'
238
+ @api_client.config.logger.debug 'Calling API: SchedulesV2Api.list ...'
239
239
  end
240
240
  # resource path
241
241
  local_var_path = '/v2/schedules'
@@ -263,7 +263,7 @@ module IncidentIoSdk
263
263
  auth_names = opts[:debug_auth_names] || []
264
264
 
265
265
  new_options = opts.merge(
266
- :operation => :"SchedulesV2Api.schedules_v2_list",
266
+ :operation => :"SchedulesV2Api.list",
267
267
  :header_params => header_params,
268
268
  :query_params => query_params,
269
269
  :form_params => form_params,
@@ -274,7 +274,7 @@ module IncidentIoSdk
274
274
 
275
275
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
276
276
  if @api_client.config.debugging
277
- @api_client.config.logger.debug "API called: SchedulesV2Api#schedules_v2_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
277
+ @api_client.config.logger.debug "API called: SchedulesV2Api#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
278
278
  end
279
279
  return data, status_code, headers
280
280
  end
@@ -286,8 +286,8 @@ module IncidentIoSdk
286
286
  # @option opts [Time] :entry_window_start The start of the window to get entries for.
287
287
  # @option opts [Time] :entry_window_end The end of the window to get entries for.
288
288
  # @return [SchedulesListScheduleEntriesResultV2]
289
- def schedules_v2_list_schedule_entries(schedule_id, opts = {})
290
- data, _status_code, _headers = schedules_v2_list_schedule_entries_with_http_info(schedule_id, opts)
289
+ def list_schedule_entries(schedule_id, opts = {})
290
+ data, _status_code, _headers = list_schedule_entries_with_http_info(schedule_id, opts)
291
291
  data
292
292
  end
293
293
 
@@ -298,13 +298,13 @@ module IncidentIoSdk
298
298
  # @option opts [Time] :entry_window_start The start of the window to get entries for.
299
299
  # @option opts [Time] :entry_window_end The end of the window to get entries for.
300
300
  # @return [Array<(SchedulesListScheduleEntriesResultV2, Integer, Hash)>] SchedulesListScheduleEntriesResultV2 data, response status code and response headers
301
- def schedules_v2_list_schedule_entries_with_http_info(schedule_id, opts = {})
301
+ def list_schedule_entries_with_http_info(schedule_id, opts = {})
302
302
  if @api_client.config.debugging
303
- @api_client.config.logger.debug 'Calling API: SchedulesV2Api.schedules_v2_list_schedule_entries ...'
303
+ @api_client.config.logger.debug 'Calling API: SchedulesV2Api.list_schedule_entries ...'
304
304
  end
305
305
  # verify the required parameter 'schedule_id' is set
306
306
  if @api_client.config.client_side_validation && schedule_id.nil?
307
- fail ArgumentError, "Missing the required parameter 'schedule_id' when calling SchedulesV2Api.schedules_v2_list_schedule_entries"
307
+ fail ArgumentError, "Missing the required parameter 'schedule_id' when calling SchedulesV2Api.list_schedule_entries"
308
308
  end
309
309
  # resource path
310
310
  local_var_path = '/v2/schedule_entries'
@@ -333,7 +333,7 @@ module IncidentIoSdk
333
333
  auth_names = opts[:debug_auth_names] || []
334
334
 
335
335
  new_options = opts.merge(
336
- :operation => :"SchedulesV2Api.schedules_v2_list_schedule_entries",
336
+ :operation => :"SchedulesV2Api.list_schedule_entries",
337
337
  :header_params => header_params,
338
338
  :query_params => query_params,
339
339
  :form_params => form_params,
@@ -344,7 +344,7 @@ module IncidentIoSdk
344
344
 
345
345
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
346
346
  if @api_client.config.debugging
347
- @api_client.config.logger.debug "API called: SchedulesV2Api#schedules_v2_list_schedule_entries\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
347
+ @api_client.config.logger.debug "API called: SchedulesV2Api#list_schedule_entries\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
348
348
  end
349
349
  return data, status_code, headers
350
350
  end
@@ -354,8 +354,8 @@ module IncidentIoSdk
354
354
  # @param id [String] Unique internal ID of the schedule
355
355
  # @param [Hash] opts the optional parameters
356
356
  # @return [SchedulesShowResultV2]
357
- def schedules_v2_show(id, opts = {})
358
- data, _status_code, _headers = schedules_v2_show_with_http_info(id, opts)
357
+ def show(id, opts = {})
358
+ data, _status_code, _headers = show_with_http_info(id, opts)
359
359
  data
360
360
  end
361
361
 
@@ -364,13 +364,13 @@ module IncidentIoSdk
364
364
  # @param id [String] Unique internal ID of the schedule
365
365
  # @param [Hash] opts the optional parameters
366
366
  # @return [Array<(SchedulesShowResultV2, Integer, Hash)>] SchedulesShowResultV2 data, response status code and response headers
367
- def schedules_v2_show_with_http_info(id, opts = {})
367
+ def show_with_http_info(id, opts = {})
368
368
  if @api_client.config.debugging
369
- @api_client.config.logger.debug 'Calling API: SchedulesV2Api.schedules_v2_show ...'
369
+ @api_client.config.logger.debug 'Calling API: SchedulesV2Api.show ...'
370
370
  end
371
371
  # verify the required parameter 'id' is set
372
372
  if @api_client.config.client_side_validation && id.nil?
373
- fail ArgumentError, "Missing the required parameter 'id' when calling SchedulesV2Api.schedules_v2_show"
373
+ fail ArgumentError, "Missing the required parameter 'id' when calling SchedulesV2Api.show"
374
374
  end
375
375
  # resource path
376
376
  local_var_path = '/v2/schedules/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
@@ -396,7 +396,7 @@ module IncidentIoSdk
396
396
  auth_names = opts[:debug_auth_names] || []
397
397
 
398
398
  new_options = opts.merge(
399
- :operation => :"SchedulesV2Api.schedules_v2_show",
399
+ :operation => :"SchedulesV2Api.show",
400
400
  :header_params => header_params,
401
401
  :query_params => query_params,
402
402
  :form_params => form_params,
@@ -407,7 +407,7 @@ module IncidentIoSdk
407
407
 
408
408
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
409
409
  if @api_client.config.debugging
410
- @api_client.config.logger.debug "API called: SchedulesV2Api#schedules_v2_show\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
410
+ @api_client.config.logger.debug "API called: SchedulesV2Api#show\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
411
411
  end
412
412
  return data, status_code, headers
413
413
  end
@@ -418,8 +418,8 @@ module IncidentIoSdk
418
418
  # @param schedules_update_payload_v2 [SchedulesUpdatePayloadV2]
419
419
  # @param [Hash] opts the optional parameters
420
420
  # @return [SchedulesUpdateResultV2]
421
- def schedules_v2_update(id, schedules_update_payload_v2, opts = {})
422
- data, _status_code, _headers = schedules_v2_update_with_http_info(id, schedules_update_payload_v2, opts)
421
+ def update(id, schedules_update_payload_v2, opts = {})
422
+ data, _status_code, _headers = update_with_http_info(id, schedules_update_payload_v2, opts)
423
423
  data
424
424
  end
425
425
 
@@ -429,17 +429,17 @@ module IncidentIoSdk
429
429
  # @param schedules_update_payload_v2 [SchedulesUpdatePayloadV2]
430
430
  # @param [Hash] opts the optional parameters
431
431
  # @return [Array<(SchedulesUpdateResultV2, Integer, Hash)>] SchedulesUpdateResultV2 data, response status code and response headers
432
- def schedules_v2_update_with_http_info(id, schedules_update_payload_v2, opts = {})
432
+ def update_with_http_info(id, schedules_update_payload_v2, opts = {})
433
433
  if @api_client.config.debugging
434
- @api_client.config.logger.debug 'Calling API: SchedulesV2Api.schedules_v2_update ...'
434
+ @api_client.config.logger.debug 'Calling API: SchedulesV2Api.update ...'
435
435
  end
436
436
  # verify the required parameter 'id' is set
437
437
  if @api_client.config.client_side_validation && id.nil?
438
- fail ArgumentError, "Missing the required parameter 'id' when calling SchedulesV2Api.schedules_v2_update"
438
+ fail ArgumentError, "Missing the required parameter 'id' when calling SchedulesV2Api.update"
439
439
  end
440
440
  # verify the required parameter 'schedules_update_payload_v2' is set
441
441
  if @api_client.config.client_side_validation && schedules_update_payload_v2.nil?
442
- fail ArgumentError, "Missing the required parameter 'schedules_update_payload_v2' when calling SchedulesV2Api.schedules_v2_update"
442
+ fail ArgumentError, "Missing the required parameter 'schedules_update_payload_v2' when calling SchedulesV2Api.update"
443
443
  end
444
444
  # resource path
445
445
  local_var_path = '/v2/schedules/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
@@ -470,7 +470,7 @@ module IncidentIoSdk
470
470
  auth_names = opts[:debug_auth_names] || []
471
471
 
472
472
  new_options = opts.merge(
473
- :operation => :"SchedulesV2Api.schedules_v2_update",
473
+ :operation => :"SchedulesV2Api.update",
474
474
  :header_params => header_params,
475
475
  :query_params => query_params,
476
476
  :form_params => form_params,
@@ -481,7 +481,7 @@ module IncidentIoSdk
481
481
 
482
482
  data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
483
483
  if @api_client.config.debugging
484
- @api_client.config.logger.debug "API called: SchedulesV2Api#schedules_v2_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
484
+ @api_client.config.logger.debug "API called: SchedulesV2Api#update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
485
485
  end
486
486
  return data, status_code, headers
487
487
  end
@@ -32,56 +32,56 @@ describe 'SchedulesV2Api' do
32
32
  end
33
33
  end
34
34
 
35
- # unit tests for schedules_v2_create
35
+ # unit tests for create
36
36
  # Create Schedules V2
37
37
  # Create a new schedule.
38
38
  # @param schedules_create_payload_v2
39
39
  # @param [Hash] opts the optional parameters
40
40
  # @return [SchedulesCreateResultV2]
41
- describe 'schedules_v2_create test' do
41
+ describe 'create test' do
42
42
  it 'should work' do
43
43
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
44
44
  end
45
45
  end
46
46
 
47
- # unit tests for schedules_v2_create_override
47
+ # unit tests for create_override
48
48
  # CreateOverride Schedules V2
49
49
  # Create a new schedule override.
50
50
  # @param schedules_create_override_payload_v2
51
51
  # @param [Hash] opts the optional parameters
52
52
  # @return [SchedulesCreateOverrideResultV2]
53
- describe 'schedules_v2_create_override test' do
53
+ describe 'create_override test' do
54
54
  it 'should work' do
55
55
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
56
56
  end
57
57
  end
58
58
 
59
- # unit tests for schedules_v2_destroy
59
+ # unit tests for destroy
60
60
  # Destroy Schedules V2
61
61
  # Archives a single schedule.
62
62
  # @param id Unique internal ID of the schedule
63
63
  # @param [Hash] opts the optional parameters
64
64
  # @return [nil]
65
- describe 'schedules_v2_destroy test' do
65
+ describe 'destroy test' do
66
66
  it 'should work' do
67
67
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
68
68
  end
69
69
  end
70
70
 
71
- # unit tests for schedules_v2_list
71
+ # unit tests for list
72
72
  # List Schedules V2
73
73
  # List configured schedules.
74
74
  # @param [Hash] opts the optional parameters
75
75
  # @option opts [Integer] :page_size number of records to return
76
76
  # @option opts [String] :after A schedule&#39;s ID. This endpoint will return a list of schedules after this ID in relation to the API response order.
77
77
  # @return [SchedulesListResultV2]
78
- describe 'schedules_v2_list test' do
78
+ describe 'list test' do
79
79
  it 'should work' do
80
80
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
81
81
  end
82
82
  end
83
83
 
84
- # unit tests for schedules_v2_list_schedule_entries
84
+ # unit tests for list_schedule_entries
85
85
  # ListScheduleEntries Schedules V2
86
86
  # Get a list of schedule entries. The endpoint will return all entries that overlap with the given window, if one is provided.
87
87
  # @param schedule_id The ID of the schedule to get entries for.
@@ -89,32 +89,32 @@ describe 'SchedulesV2Api' do
89
89
  # @option opts [Time] :entry_window_start The start of the window to get entries for.
90
90
  # @option opts [Time] :entry_window_end The end of the window to get entries for.
91
91
  # @return [SchedulesListScheduleEntriesResultV2]
92
- describe 'schedules_v2_list_schedule_entries test' do
92
+ describe 'list_schedule_entries test' do
93
93
  it 'should work' do
94
94
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
95
95
  end
96
96
  end
97
97
 
98
- # unit tests for schedules_v2_show
98
+ # unit tests for show
99
99
  # Show Schedules V2
100
100
  # Get a single schedule.
101
101
  # @param id Unique internal ID of the schedule
102
102
  # @param [Hash] opts the optional parameters
103
103
  # @return [SchedulesShowResultV2]
104
- describe 'schedules_v2_show test' do
104
+ describe 'show test' do
105
105
  it 'should work' do
106
106
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
107
107
  end
108
108
  end
109
109
 
110
- # unit tests for schedules_v2_update
110
+ # unit tests for update
111
111
  # Update Schedules V2
112
112
  # Update a schedule.
113
113
  # @param id The schedule ID to update.
114
114
  # @param schedules_update_payload_v2
115
115
  # @param [Hash] opts the optional parameters
116
116
  # @return [SchedulesUpdateResultV2]
117
- describe 'schedules_v2_update test' do
117
+ describe 'update test' do
118
118
  it 'should work' do
119
119
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
120
120
  end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: incident_io_sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mustafa Bayar
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2025-04-23 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: typhoeus
@@ -1091,7 +1090,6 @@ metadata:
1091
1090
  changelog_uri: https://github.com/mustafabayar/incident-io-sdk/releases
1092
1091
  bug_tracker_uri: https://github.com/mustafabayar/incident-io-sdk/issues
1093
1092
  documentation_uri: https://docs.incident.io
1094
- post_install_message:
1095
1093
  rdoc_options: []
1096
1094
  require_paths:
1097
1095
  - lib
@@ -1106,8 +1104,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1106
1104
  - !ruby/object:Gem::Version
1107
1105
  version: '0'
1108
1106
  requirements: []
1109
- rubygems_version: 3.5.22
1110
- signing_key:
1107
+ rubygems_version: 3.6.7
1111
1108
  specification_version: 4
1112
1109
  summary: Ruby SDK for the incident.io API
1113
1110
  test_files: