incident_io_api 4.2.0 → 4.3.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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5a39ce175b39db8e12600a0159dac23bb68ff3677109638ea13f63b1844870e1
|
|
4
|
+
data.tar.gz: 34200ffe6efa21e113bbc132baffe00fe227cffcd828d4b954dc123a8cf2fe51
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9884d360bb7a557e3d02a3f90739ca153d3fe6a6b2bc5c783425d50ffcce3467747e06c1ea999fd9f5ae1139b5a0f63b950c1afa4edce016549b6e3599e0ea42
|
|
7
|
+
data.tar.gz: fc2f384d09767951ba677da0ddacce1c5c2b60f8518e5ad5b764856223fb1370bb4f40da2e12b4af146c6399cb94b398a3e4a8a8354bee8798fecb1d3e674c2e
|
|
@@ -19,6 +19,74 @@ module IncidentIo
|
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
|
20
20
|
@api_client = api_client
|
|
21
21
|
end
|
|
22
|
+
# BulkArchiveEntries Catalog V3
|
|
23
|
+
# Archive up to 250 entries of one catalog type in a single request. This has the same effect as deleting each entry individually. This operation is atomic: if the request fails, no entries are archived. Entries that don't exist, are already archived, or belong to a different catalog type are skipped and don't fail the request. If any of the entries set attributes that you don't have permission to clear, the request fails with a 403 that lists those entries, and no entries are archived.
|
|
24
|
+
# @param catalog_bulk_archive_entries_payload_v3 [CatalogBulkArchiveEntriesPayloadV3]
|
|
25
|
+
# @param [Hash] opts the optional parameters
|
|
26
|
+
# @return [nil]
|
|
27
|
+
def catalog_v3_bulk_archive_entries(catalog_bulk_archive_entries_payload_v3, opts = {})
|
|
28
|
+
catalog_v3_bulk_archive_entries_with_http_info(catalog_bulk_archive_entries_payload_v3, opts)
|
|
29
|
+
nil
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
# BulkArchiveEntries Catalog V3
|
|
33
|
+
# Archive up to 250 entries of one catalog type in a single request. This has the same effect as deleting each entry individually. This operation is atomic: if the request fails, no entries are archived. Entries that don't exist, are already archived, or belong to a different catalog type are skipped and don't fail the request. If any of the entries set attributes that you don't have permission to clear, the request fails with a 403 that lists those entries, and no entries are archived.
|
|
34
|
+
# @param catalog_bulk_archive_entries_payload_v3 [CatalogBulkArchiveEntriesPayloadV3]
|
|
35
|
+
# @param [Hash] opts the optional parameters
|
|
36
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
37
|
+
def catalog_v3_bulk_archive_entries_with_http_info(catalog_bulk_archive_entries_payload_v3, opts = {})
|
|
38
|
+
if @api_client.config.debugging
|
|
39
|
+
@api_client.config.logger.debug 'Calling API: CatalogV3Api.catalog_v3_bulk_archive_entries ...'
|
|
40
|
+
end
|
|
41
|
+
# verify the required parameter 'catalog_bulk_archive_entries_payload_v3' is set
|
|
42
|
+
if @api_client.config.client_side_validation && catalog_bulk_archive_entries_payload_v3.nil?
|
|
43
|
+
fail ArgumentError, "Missing the required parameter 'catalog_bulk_archive_entries_payload_v3' when calling CatalogV3Api.catalog_v3_bulk_archive_entries"
|
|
44
|
+
end
|
|
45
|
+
# resource path
|
|
46
|
+
local_var_path = '/v3/catalog_entries/actions/bulk_archive'
|
|
47
|
+
|
|
48
|
+
# query parameters
|
|
49
|
+
query_params = opts[:query_params] || {}
|
|
50
|
+
|
|
51
|
+
# header parameters
|
|
52
|
+
header_params = opts[:header_params] || {}
|
|
53
|
+
# HTTP header 'Accept' (if needed)
|
|
54
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
55
|
+
# HTTP header 'Content-Type'
|
|
56
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
57
|
+
if !content_type.nil?
|
|
58
|
+
header_params['Content-Type'] = content_type
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
# form parameters
|
|
62
|
+
form_params = opts[:form_params] || {}
|
|
63
|
+
|
|
64
|
+
# http body (model)
|
|
65
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(catalog_bulk_archive_entries_payload_v3)
|
|
66
|
+
|
|
67
|
+
# return_type
|
|
68
|
+
return_type = opts[:debug_return_type]
|
|
69
|
+
|
|
70
|
+
# auth_names
|
|
71
|
+
auth_names = opts[:debug_auth_names] || ['BearerAuth']
|
|
72
|
+
|
|
73
|
+
new_options = opts.merge(
|
|
74
|
+
:operation => :"CatalogV3Api.catalog_v3_bulk_archive_entries",
|
|
75
|
+
:header_params => header_params,
|
|
76
|
+
:query_params => query_params,
|
|
77
|
+
:form_params => form_params,
|
|
78
|
+
:body => post_body,
|
|
79
|
+
:auth_names => auth_names,
|
|
80
|
+
:return_type => return_type
|
|
81
|
+
)
|
|
82
|
+
|
|
83
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
84
|
+
if @api_client.config.debugging
|
|
85
|
+
@api_client.config.logger.debug "API called: CatalogV3Api#catalog_v3_bulk_archive_entries\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
86
|
+
end
|
|
87
|
+
return data, status_code, headers
|
|
88
|
+
end
|
|
89
|
+
|
|
22
90
|
# BulkUpdateEntries Catalog V3
|
|
23
91
|
# Update multiple catalog entries in a single operation. You can update up to 250 entries at once. This operation is atomic - either all entries are updated successfully, or none are updated.
|
|
24
92
|
# @param catalog_bulk_update_entries_payload_v3 [CatalogBulkUpdateEntriesPayloadV3]
|
|
@@ -0,0 +1,212 @@
|
|
|
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 CatalogBulkArchiveEntriesPayloadV3 < ApiModelBase
|
|
18
|
+
# The ID of the catalog type that the entries belong to
|
|
19
|
+
attr_accessor :catalog_type_id
|
|
20
|
+
|
|
21
|
+
# The IDs of the entries to archive. Maximum 250 entries per request.
|
|
22
|
+
attr_accessor :entry_ids
|
|
23
|
+
|
|
24
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
25
|
+
def self.attribute_map
|
|
26
|
+
{
|
|
27
|
+
:'catalog_type_id' => :'catalog_type_id',
|
|
28
|
+
:'entry_ids' => :'entry_ids'
|
|
29
|
+
}
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
# Returns attribute mapping this model knows about
|
|
33
|
+
def self.acceptable_attribute_map
|
|
34
|
+
attribute_map
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
# Returns all the JSON keys this model knows about
|
|
38
|
+
def self.acceptable_attributes
|
|
39
|
+
acceptable_attribute_map.values
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
# Attribute type mapping.
|
|
43
|
+
def self.openapi_types
|
|
44
|
+
{
|
|
45
|
+
:'catalog_type_id' => :'String',
|
|
46
|
+
:'entry_ids' => :'Array<String>'
|
|
47
|
+
}
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
# List of attributes with nullable: true
|
|
51
|
+
def self.openapi_nullable
|
|
52
|
+
Set.new([
|
|
53
|
+
])
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
# Initializes the object
|
|
57
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
58
|
+
def initialize(attributes = {})
|
|
59
|
+
if (!attributes.is_a?(Hash))
|
|
60
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `IncidentIo::CatalogBulkArchiveEntriesPayloadV3` initialize method"
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
64
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
65
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
66
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
67
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `IncidentIo::CatalogBulkArchiveEntriesPayloadV3`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
68
|
+
end
|
|
69
|
+
h[k.to_sym] = v
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
if attributes.key?(:'catalog_type_id')
|
|
73
|
+
self.catalog_type_id = attributes[:'catalog_type_id']
|
|
74
|
+
else
|
|
75
|
+
self.catalog_type_id = nil
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
if attributes.key?(:'entry_ids')
|
|
79
|
+
if (value = attributes[:'entry_ids']).is_a?(Array)
|
|
80
|
+
self.entry_ids = value
|
|
81
|
+
end
|
|
82
|
+
else
|
|
83
|
+
self.entry_ids = nil
|
|
84
|
+
end
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
88
|
+
# @return Array for valid properties with the reasons
|
|
89
|
+
def list_invalid_properties
|
|
90
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
91
|
+
invalid_properties = Array.new
|
|
92
|
+
if @catalog_type_id.nil?
|
|
93
|
+
invalid_properties.push('invalid value for "catalog_type_id", catalog_type_id cannot be nil.')
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
if @entry_ids.nil?
|
|
97
|
+
invalid_properties.push('invalid value for "entry_ids", entry_ids cannot be nil.')
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
if @entry_ids.length > 250
|
|
101
|
+
invalid_properties.push('invalid value for "entry_ids", number of items must be less than or equal to 250.')
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
if @entry_ids.length < 1
|
|
105
|
+
invalid_properties.push('invalid value for "entry_ids", number of items must be greater than or equal to 1.')
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
invalid_properties
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
# Check to see if the all the properties in the model are valid
|
|
112
|
+
# @return true if the model is valid
|
|
113
|
+
def valid?
|
|
114
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
115
|
+
return false if @catalog_type_id.nil?
|
|
116
|
+
return false if @entry_ids.nil?
|
|
117
|
+
return false if @entry_ids.length > 250
|
|
118
|
+
return false if @entry_ids.length < 1
|
|
119
|
+
true
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
# Custom attribute writer method with validation
|
|
123
|
+
# @param [Object] catalog_type_id Value to be assigned
|
|
124
|
+
def catalog_type_id=(catalog_type_id)
|
|
125
|
+
if catalog_type_id.nil?
|
|
126
|
+
fail ArgumentError, 'catalog_type_id cannot be nil'
|
|
127
|
+
end
|
|
128
|
+
|
|
129
|
+
@catalog_type_id = catalog_type_id
|
|
130
|
+
end
|
|
131
|
+
|
|
132
|
+
# Custom attribute writer method with validation
|
|
133
|
+
# @param [Object] entry_ids Value to be assigned
|
|
134
|
+
def entry_ids=(entry_ids)
|
|
135
|
+
if entry_ids.nil?
|
|
136
|
+
fail ArgumentError, 'entry_ids cannot be nil'
|
|
137
|
+
end
|
|
138
|
+
|
|
139
|
+
if entry_ids.length > 250
|
|
140
|
+
fail ArgumentError, 'invalid value for "entry_ids", number of items must be less than or equal to 250.'
|
|
141
|
+
end
|
|
142
|
+
|
|
143
|
+
if entry_ids.length < 1
|
|
144
|
+
fail ArgumentError, 'invalid value for "entry_ids", number of items must be greater than or equal to 1.'
|
|
145
|
+
end
|
|
146
|
+
|
|
147
|
+
@entry_ids = entry_ids
|
|
148
|
+
end
|
|
149
|
+
|
|
150
|
+
# Checks equality by comparing each attribute.
|
|
151
|
+
# @param [Object] Object to be compared
|
|
152
|
+
def ==(o)
|
|
153
|
+
return true if self.equal?(o)
|
|
154
|
+
self.class == o.class &&
|
|
155
|
+
catalog_type_id == o.catalog_type_id &&
|
|
156
|
+
entry_ids == o.entry_ids
|
|
157
|
+
end
|
|
158
|
+
|
|
159
|
+
# @see the `==` method
|
|
160
|
+
# @param [Object] Object to be compared
|
|
161
|
+
def eql?(o)
|
|
162
|
+
self == o
|
|
163
|
+
end
|
|
164
|
+
|
|
165
|
+
# Calculates hash code according to all attributes.
|
|
166
|
+
# @return [Integer] Hash code
|
|
167
|
+
def hash
|
|
168
|
+
[catalog_type_id, entry_ids].hash
|
|
169
|
+
end
|
|
170
|
+
|
|
171
|
+
# Builds the object from hash
|
|
172
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
173
|
+
# @return [Object] Returns the model itself
|
|
174
|
+
def self.build_from_hash(attributes)
|
|
175
|
+
return nil unless attributes.is_a?(Hash)
|
|
176
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
177
|
+
transformed_hash = {}
|
|
178
|
+
openapi_types.each_pair do |key, type|
|
|
179
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
180
|
+
transformed_hash["#{key}"] = nil
|
|
181
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
182
|
+
# check to ensure the input is an array given that the attribute
|
|
183
|
+
# is documented as an array but the input is not
|
|
184
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
185
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
186
|
+
end
|
|
187
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
188
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
189
|
+
end
|
|
190
|
+
end
|
|
191
|
+
new(transformed_hash)
|
|
192
|
+
end
|
|
193
|
+
|
|
194
|
+
# Returns the object in the form of hash
|
|
195
|
+
# @return [Hash] Returns the object in the form of hash
|
|
196
|
+
def to_hash
|
|
197
|
+
hash = {}
|
|
198
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
199
|
+
value = self.send(attr)
|
|
200
|
+
if value.nil?
|
|
201
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
202
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
203
|
+
end
|
|
204
|
+
|
|
205
|
+
hash[param] = _to_hash(value)
|
|
206
|
+
end
|
|
207
|
+
hash
|
|
208
|
+
end
|
|
209
|
+
|
|
210
|
+
end
|
|
211
|
+
|
|
212
|
+
end
|
data/lib/incident_io/version.rb
CHANGED
data/lib/incident_io.rb
CHANGED
|
@@ -822,6 +822,7 @@ IncidentIo.autoload :CallSessionV2, 'incident_io/models/call_session_v2'
|
|
|
822
822
|
IncidentIo.autoload :CallSessionsListResultV2, 'incident_io/models/call_sessions_list_result_v2'
|
|
823
823
|
IncidentIo.autoload :CallTranscriptEntriesListResultV2, 'incident_io/models/call_transcript_entries_list_result_v2'
|
|
824
824
|
IncidentIo.autoload :CallTranscriptEntryV2, 'incident_io/models/call_transcript_entry_v2'
|
|
825
|
+
IncidentIo.autoload :CatalogBulkArchiveEntriesPayloadV3, 'incident_io/models/catalog_bulk_archive_entries_payload_v3'
|
|
825
826
|
IncidentIo.autoload :CatalogBulkUpdateEntriesPayloadV3, 'incident_io/models/catalog_bulk_update_entries_payload_v3'
|
|
826
827
|
IncidentIo.autoload :CatalogCreateEntryPayloadV2, 'incident_io/models/catalog_create_entry_payload_v2'
|
|
827
828
|
IncidentIo.autoload :CatalogCreateEntryPayloadV3, 'incident_io/models/catalog_create_entry_payload_v3'
|
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: 4.
|
|
4
|
+
version: 4.3.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-11-
|
|
11
|
+
date: 2026-11-27 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|
|
@@ -954,6 +954,7 @@ files:
|
|
|
954
954
|
- lib/incident_io/models/call_sessions_list_result_v2.rb
|
|
955
955
|
- lib/incident_io/models/call_transcript_entries_list_result_v2.rb
|
|
956
956
|
- lib/incident_io/models/call_transcript_entry_v2.rb
|
|
957
|
+
- lib/incident_io/models/catalog_bulk_archive_entries_payload_v3.rb
|
|
957
958
|
- lib/incident_io/models/catalog_bulk_update_entries_payload_v3.rb
|
|
958
959
|
- lib/incident_io/models/catalog_create_entry_payload_v2.rb
|
|
959
960
|
- lib/incident_io/models/catalog_create_entry_payload_v3.rb
|