pingram 0.1.1 → 0.1.2
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/README.md +17 -5
- data/lib/pingram/api/templates_api.rb +82 -15
- data/lib/pingram/api_client.rb +1 -1
- data/lib/pingram/models/get_templates_list_response_inner.rb +108 -0
- data/lib/pingram/models/get_templates_list_response_inner_any_of.rb +449 -0
- data/lib/pingram/models/get_templates_list_response_inner_any_of1.rb +431 -0
- data/lib/pingram/models/get_templates_list_response_inner_any_of1_instant.rb +216 -0
- data/lib/pingram/models/get_templates_list_response_inner_any_of2.rb +327 -0
- data/lib/pingram/models/get_templates_list_response_inner_any_of3.rb +353 -0
- data/lib/pingram/models/get_templates_list_response_inner_any_of4.rb +371 -0
- data/lib/pingram/models/get_templates_list_response_inner_any_of5.rb +440 -0
- data/lib/pingram/models/{sender_post_body_slack_metadata.rb → get_templates_list_response_inner_any_of5_metadata.rb} +4 -4
- data/lib/pingram/models/{sender_post_body_slack_metadata_entities_inner.rb → get_templates_list_response_inner_any_of5_metadata_entities_inner.rb} +4 -4
- data/lib/pingram/models/{sender_post_body_slack_metadata_entities_inner_external_ref.rb → get_templates_list_response_inner_any_of5_metadata_entities_inner_external_ref.rb} +3 -3
- data/lib/pingram/models/get_templates_response.rb +3 -2
- data/lib/pingram/models/sender_post_body_slack.rb +1 -1
- data/lib/pingram/version.rb +1 -1
- data/lib/pingram.rb +11 -3
- data/pingram.gemspec +5 -6
- metadata +19 -13
|
@@ -0,0 +1,440 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#NotificationAPI
|
|
3
|
+
|
|
4
|
+
#Internal API for notification delivery and management
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.19.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module Pingram
|
|
17
|
+
class GetTemplatesListResponseInnerAnyOf5 < ApiModelBase
|
|
18
|
+
attr_accessor :env_id
|
|
19
|
+
|
|
20
|
+
attr_accessor :notification_id
|
|
21
|
+
|
|
22
|
+
attr_accessor :template_id
|
|
23
|
+
|
|
24
|
+
attr_accessor :channel
|
|
25
|
+
|
|
26
|
+
attr_accessor :default
|
|
27
|
+
|
|
28
|
+
attr_accessor :is_default_for
|
|
29
|
+
|
|
30
|
+
attr_accessor :text
|
|
31
|
+
|
|
32
|
+
attr_accessor :blocks
|
|
33
|
+
|
|
34
|
+
attr_accessor :username
|
|
35
|
+
|
|
36
|
+
attr_accessor :icon
|
|
37
|
+
|
|
38
|
+
attr_accessor :thread_ts
|
|
39
|
+
|
|
40
|
+
attr_accessor :reply_broadcast
|
|
41
|
+
|
|
42
|
+
attr_accessor :parse
|
|
43
|
+
|
|
44
|
+
attr_accessor :link_names
|
|
45
|
+
|
|
46
|
+
attr_accessor :mrkdwn
|
|
47
|
+
|
|
48
|
+
attr_accessor :unfurl_links
|
|
49
|
+
|
|
50
|
+
attr_accessor :unfurl_media
|
|
51
|
+
|
|
52
|
+
attr_accessor :metadata
|
|
53
|
+
|
|
54
|
+
class EnumAttributeValidator
|
|
55
|
+
attr_reader :datatype
|
|
56
|
+
attr_reader :allowable_values
|
|
57
|
+
|
|
58
|
+
def initialize(datatype, allowable_values)
|
|
59
|
+
@allowable_values = allowable_values.map do |value|
|
|
60
|
+
case datatype.to_s
|
|
61
|
+
when /Integer/i
|
|
62
|
+
value.to_i
|
|
63
|
+
when /Float/i
|
|
64
|
+
value.to_f
|
|
65
|
+
else
|
|
66
|
+
value
|
|
67
|
+
end
|
|
68
|
+
end
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
def valid?(value)
|
|
72
|
+
!value || allowable_values.include?(value)
|
|
73
|
+
end
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
77
|
+
def self.attribute_map
|
|
78
|
+
{
|
|
79
|
+
:'env_id' => :'envId',
|
|
80
|
+
:'notification_id' => :'notificationId',
|
|
81
|
+
:'template_id' => :'templateId',
|
|
82
|
+
:'channel' => :'channel',
|
|
83
|
+
:'default' => :'default',
|
|
84
|
+
:'is_default_for' => :'isDefaultFor',
|
|
85
|
+
:'text' => :'text',
|
|
86
|
+
:'blocks' => :'blocks',
|
|
87
|
+
:'username' => :'username',
|
|
88
|
+
:'icon' => :'icon',
|
|
89
|
+
:'thread_ts' => :'thread_ts',
|
|
90
|
+
:'reply_broadcast' => :'reply_broadcast',
|
|
91
|
+
:'parse' => :'parse',
|
|
92
|
+
:'link_names' => :'link_names',
|
|
93
|
+
:'mrkdwn' => :'mrkdwn',
|
|
94
|
+
:'unfurl_links' => :'unfurl_links',
|
|
95
|
+
:'unfurl_media' => :'unfurl_media',
|
|
96
|
+
:'metadata' => :'metadata'
|
|
97
|
+
}
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
# Returns attribute mapping this model knows about
|
|
101
|
+
def self.acceptable_attribute_map
|
|
102
|
+
attribute_map
|
|
103
|
+
end
|
|
104
|
+
|
|
105
|
+
# Returns all the JSON keys this model knows about
|
|
106
|
+
def self.acceptable_attributes
|
|
107
|
+
acceptable_attribute_map.values
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
# Attribute type mapping.
|
|
111
|
+
def self.openapi_types
|
|
112
|
+
{
|
|
113
|
+
:'env_id' => :'String',
|
|
114
|
+
:'notification_id' => :'String',
|
|
115
|
+
:'template_id' => :'String',
|
|
116
|
+
:'channel' => :'ChannelsEnum',
|
|
117
|
+
:'default' => :'Boolean',
|
|
118
|
+
:'is_default_for' => :'Hash<String, Boolean>',
|
|
119
|
+
:'text' => :'String',
|
|
120
|
+
:'blocks' => :'Array<Hash<String, Object>>',
|
|
121
|
+
:'username' => :'String',
|
|
122
|
+
:'icon' => :'String',
|
|
123
|
+
:'thread_ts' => :'String',
|
|
124
|
+
:'reply_broadcast' => :'Boolean',
|
|
125
|
+
:'parse' => :'String',
|
|
126
|
+
:'link_names' => :'Boolean',
|
|
127
|
+
:'mrkdwn' => :'Boolean',
|
|
128
|
+
:'unfurl_links' => :'Boolean',
|
|
129
|
+
:'unfurl_media' => :'Boolean',
|
|
130
|
+
:'metadata' => :'GetTemplatesListResponseInnerAnyOf5Metadata'
|
|
131
|
+
}
|
|
132
|
+
end
|
|
133
|
+
|
|
134
|
+
# List of attributes with nullable: true
|
|
135
|
+
def self.openapi_nullable
|
|
136
|
+
Set.new([
|
|
137
|
+
])
|
|
138
|
+
end
|
|
139
|
+
|
|
140
|
+
# Initializes the object
|
|
141
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
142
|
+
def initialize(attributes = {})
|
|
143
|
+
if (!attributes.is_a?(Hash))
|
|
144
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Pingram::GetTemplatesListResponseInnerAnyOf5` initialize method"
|
|
145
|
+
end
|
|
146
|
+
|
|
147
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
148
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
149
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
150
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
151
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Pingram::GetTemplatesListResponseInnerAnyOf5`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
152
|
+
end
|
|
153
|
+
h[k.to_sym] = v
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
if attributes.key?(:'env_id')
|
|
157
|
+
self.env_id = attributes[:'env_id']
|
|
158
|
+
else
|
|
159
|
+
self.env_id = nil
|
|
160
|
+
end
|
|
161
|
+
|
|
162
|
+
if attributes.key?(:'notification_id')
|
|
163
|
+
self.notification_id = attributes[:'notification_id']
|
|
164
|
+
else
|
|
165
|
+
self.notification_id = nil
|
|
166
|
+
end
|
|
167
|
+
|
|
168
|
+
if attributes.key?(:'template_id')
|
|
169
|
+
self.template_id = attributes[:'template_id']
|
|
170
|
+
else
|
|
171
|
+
self.template_id = nil
|
|
172
|
+
end
|
|
173
|
+
|
|
174
|
+
if attributes.key?(:'channel')
|
|
175
|
+
self.channel = attributes[:'channel']
|
|
176
|
+
else
|
|
177
|
+
self.channel = nil
|
|
178
|
+
end
|
|
179
|
+
|
|
180
|
+
if attributes.key?(:'default')
|
|
181
|
+
self.default = attributes[:'default']
|
|
182
|
+
else
|
|
183
|
+
self.default = nil
|
|
184
|
+
end
|
|
185
|
+
|
|
186
|
+
if attributes.key?(:'is_default_for')
|
|
187
|
+
if (value = attributes[:'is_default_for']).is_a?(Hash)
|
|
188
|
+
self.is_default_for = value
|
|
189
|
+
end
|
|
190
|
+
end
|
|
191
|
+
|
|
192
|
+
if attributes.key?(:'text')
|
|
193
|
+
self.text = attributes[:'text']
|
|
194
|
+
else
|
|
195
|
+
self.text = nil
|
|
196
|
+
end
|
|
197
|
+
|
|
198
|
+
if attributes.key?(:'blocks')
|
|
199
|
+
if (value = attributes[:'blocks']).is_a?(Array)
|
|
200
|
+
self.blocks = value
|
|
201
|
+
end
|
|
202
|
+
end
|
|
203
|
+
|
|
204
|
+
if attributes.key?(:'username')
|
|
205
|
+
self.username = attributes[:'username']
|
|
206
|
+
end
|
|
207
|
+
|
|
208
|
+
if attributes.key?(:'icon')
|
|
209
|
+
self.icon = attributes[:'icon']
|
|
210
|
+
end
|
|
211
|
+
|
|
212
|
+
if attributes.key?(:'thread_ts')
|
|
213
|
+
self.thread_ts = attributes[:'thread_ts']
|
|
214
|
+
end
|
|
215
|
+
|
|
216
|
+
if attributes.key?(:'reply_broadcast')
|
|
217
|
+
self.reply_broadcast = attributes[:'reply_broadcast']
|
|
218
|
+
end
|
|
219
|
+
|
|
220
|
+
if attributes.key?(:'parse')
|
|
221
|
+
self.parse = attributes[:'parse']
|
|
222
|
+
end
|
|
223
|
+
|
|
224
|
+
if attributes.key?(:'link_names')
|
|
225
|
+
self.link_names = attributes[:'link_names']
|
|
226
|
+
end
|
|
227
|
+
|
|
228
|
+
if attributes.key?(:'mrkdwn')
|
|
229
|
+
self.mrkdwn = attributes[:'mrkdwn']
|
|
230
|
+
end
|
|
231
|
+
|
|
232
|
+
if attributes.key?(:'unfurl_links')
|
|
233
|
+
self.unfurl_links = attributes[:'unfurl_links']
|
|
234
|
+
end
|
|
235
|
+
|
|
236
|
+
if attributes.key?(:'unfurl_media')
|
|
237
|
+
self.unfurl_media = attributes[:'unfurl_media']
|
|
238
|
+
end
|
|
239
|
+
|
|
240
|
+
if attributes.key?(:'metadata')
|
|
241
|
+
self.metadata = attributes[:'metadata']
|
|
242
|
+
end
|
|
243
|
+
end
|
|
244
|
+
|
|
245
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
246
|
+
# @return Array for valid properties with the reasons
|
|
247
|
+
def list_invalid_properties
|
|
248
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
249
|
+
invalid_properties = Array.new
|
|
250
|
+
if @env_id.nil?
|
|
251
|
+
invalid_properties.push('invalid value for "env_id", env_id cannot be nil.')
|
|
252
|
+
end
|
|
253
|
+
|
|
254
|
+
if @notification_id.nil?
|
|
255
|
+
invalid_properties.push('invalid value for "notification_id", notification_id cannot be nil.')
|
|
256
|
+
end
|
|
257
|
+
|
|
258
|
+
if @template_id.nil?
|
|
259
|
+
invalid_properties.push('invalid value for "template_id", template_id cannot be nil.')
|
|
260
|
+
end
|
|
261
|
+
|
|
262
|
+
if @channel.nil?
|
|
263
|
+
invalid_properties.push('invalid value for "channel", channel cannot be nil.')
|
|
264
|
+
end
|
|
265
|
+
|
|
266
|
+
if @default.nil?
|
|
267
|
+
invalid_properties.push('invalid value for "default", default cannot be nil.')
|
|
268
|
+
end
|
|
269
|
+
|
|
270
|
+
if @text.nil?
|
|
271
|
+
invalid_properties.push('invalid value for "text", text cannot be nil.')
|
|
272
|
+
end
|
|
273
|
+
|
|
274
|
+
invalid_properties
|
|
275
|
+
end
|
|
276
|
+
|
|
277
|
+
# Check to see if the all the properties in the model are valid
|
|
278
|
+
# @return true if the model is valid
|
|
279
|
+
def valid?
|
|
280
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
281
|
+
return false if @env_id.nil?
|
|
282
|
+
return false if @notification_id.nil?
|
|
283
|
+
return false if @template_id.nil?
|
|
284
|
+
return false if @channel.nil?
|
|
285
|
+
return false if @default.nil?
|
|
286
|
+
return false if @text.nil?
|
|
287
|
+
parse_validator = EnumAttributeValidator.new('String', ["full", "none"])
|
|
288
|
+
return false unless parse_validator.valid?(@parse)
|
|
289
|
+
true
|
|
290
|
+
end
|
|
291
|
+
|
|
292
|
+
# Custom attribute writer method with validation
|
|
293
|
+
# @param [Object] env_id Value to be assigned
|
|
294
|
+
def env_id=(env_id)
|
|
295
|
+
if env_id.nil?
|
|
296
|
+
fail ArgumentError, 'env_id cannot be nil'
|
|
297
|
+
end
|
|
298
|
+
|
|
299
|
+
@env_id = env_id
|
|
300
|
+
end
|
|
301
|
+
|
|
302
|
+
# Custom attribute writer method with validation
|
|
303
|
+
# @param [Object] notification_id Value to be assigned
|
|
304
|
+
def notification_id=(notification_id)
|
|
305
|
+
if notification_id.nil?
|
|
306
|
+
fail ArgumentError, 'notification_id cannot be nil'
|
|
307
|
+
end
|
|
308
|
+
|
|
309
|
+
@notification_id = notification_id
|
|
310
|
+
end
|
|
311
|
+
|
|
312
|
+
# Custom attribute writer method with validation
|
|
313
|
+
# @param [Object] template_id Value to be assigned
|
|
314
|
+
def template_id=(template_id)
|
|
315
|
+
if template_id.nil?
|
|
316
|
+
fail ArgumentError, 'template_id cannot be nil'
|
|
317
|
+
end
|
|
318
|
+
|
|
319
|
+
@template_id = template_id
|
|
320
|
+
end
|
|
321
|
+
|
|
322
|
+
# Custom attribute writer method with validation
|
|
323
|
+
# @param [Object] channel Value to be assigned
|
|
324
|
+
def channel=(channel)
|
|
325
|
+
if channel.nil?
|
|
326
|
+
fail ArgumentError, 'channel cannot be nil'
|
|
327
|
+
end
|
|
328
|
+
|
|
329
|
+
@channel = channel
|
|
330
|
+
end
|
|
331
|
+
|
|
332
|
+
# Custom attribute writer method with validation
|
|
333
|
+
# @param [Object] default Value to be assigned
|
|
334
|
+
def default=(default)
|
|
335
|
+
if default.nil?
|
|
336
|
+
fail ArgumentError, 'default cannot be nil'
|
|
337
|
+
end
|
|
338
|
+
|
|
339
|
+
@default = default
|
|
340
|
+
end
|
|
341
|
+
|
|
342
|
+
# Custom attribute writer method with validation
|
|
343
|
+
# @param [Object] text Value to be assigned
|
|
344
|
+
def text=(text)
|
|
345
|
+
if text.nil?
|
|
346
|
+
fail ArgumentError, 'text cannot be nil'
|
|
347
|
+
end
|
|
348
|
+
|
|
349
|
+
@text = text
|
|
350
|
+
end
|
|
351
|
+
|
|
352
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
353
|
+
# @param [Object] parse Object to be assigned
|
|
354
|
+
def parse=(parse)
|
|
355
|
+
validator = EnumAttributeValidator.new('String', ["full", "none"])
|
|
356
|
+
unless validator.valid?(parse)
|
|
357
|
+
fail ArgumentError, "invalid value for \"parse\", must be one of #{validator.allowable_values}."
|
|
358
|
+
end
|
|
359
|
+
@parse = parse
|
|
360
|
+
end
|
|
361
|
+
|
|
362
|
+
# Checks equality by comparing each attribute.
|
|
363
|
+
# @param [Object] Object to be compared
|
|
364
|
+
def ==(o)
|
|
365
|
+
return true if self.equal?(o)
|
|
366
|
+
self.class == o.class &&
|
|
367
|
+
env_id == o.env_id &&
|
|
368
|
+
notification_id == o.notification_id &&
|
|
369
|
+
template_id == o.template_id &&
|
|
370
|
+
channel == o.channel &&
|
|
371
|
+
default == o.default &&
|
|
372
|
+
is_default_for == o.is_default_for &&
|
|
373
|
+
text == o.text &&
|
|
374
|
+
blocks == o.blocks &&
|
|
375
|
+
username == o.username &&
|
|
376
|
+
icon == o.icon &&
|
|
377
|
+
thread_ts == o.thread_ts &&
|
|
378
|
+
reply_broadcast == o.reply_broadcast &&
|
|
379
|
+
parse == o.parse &&
|
|
380
|
+
link_names == o.link_names &&
|
|
381
|
+
mrkdwn == o.mrkdwn &&
|
|
382
|
+
unfurl_links == o.unfurl_links &&
|
|
383
|
+
unfurl_media == o.unfurl_media &&
|
|
384
|
+
metadata == o.metadata
|
|
385
|
+
end
|
|
386
|
+
|
|
387
|
+
# @see the `==` method
|
|
388
|
+
# @param [Object] Object to be compared
|
|
389
|
+
def eql?(o)
|
|
390
|
+
self == o
|
|
391
|
+
end
|
|
392
|
+
|
|
393
|
+
# Calculates hash code according to all attributes.
|
|
394
|
+
# @return [Integer] Hash code
|
|
395
|
+
def hash
|
|
396
|
+
[env_id, notification_id, template_id, channel, default, is_default_for, text, blocks, username, icon, thread_ts, reply_broadcast, parse, link_names, mrkdwn, unfurl_links, unfurl_media, metadata].hash
|
|
397
|
+
end
|
|
398
|
+
|
|
399
|
+
# Builds the object from hash
|
|
400
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
401
|
+
# @return [Object] Returns the model itself
|
|
402
|
+
def self.build_from_hash(attributes)
|
|
403
|
+
return nil unless attributes.is_a?(Hash)
|
|
404
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
405
|
+
transformed_hash = {}
|
|
406
|
+
openapi_types.each_pair do |key, type|
|
|
407
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
408
|
+
transformed_hash["#{key}"] = nil
|
|
409
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
410
|
+
# check to ensure the input is an array given that the attribute
|
|
411
|
+
# is documented as an array but the input is not
|
|
412
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
413
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
414
|
+
end
|
|
415
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
416
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
417
|
+
end
|
|
418
|
+
end
|
|
419
|
+
new(transformed_hash)
|
|
420
|
+
end
|
|
421
|
+
|
|
422
|
+
# Returns the object in the form of hash
|
|
423
|
+
# @return [Hash] Returns the object in the form of hash
|
|
424
|
+
def to_hash
|
|
425
|
+
hash = {}
|
|
426
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
427
|
+
value = self.send(attr)
|
|
428
|
+
if value.nil?
|
|
429
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
430
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
431
|
+
end
|
|
432
|
+
|
|
433
|
+
hash[param] = _to_hash(value)
|
|
434
|
+
end
|
|
435
|
+
hash
|
|
436
|
+
end
|
|
437
|
+
|
|
438
|
+
end
|
|
439
|
+
|
|
440
|
+
end
|
|
@@ -15,7 +15,7 @@ require 'time'
|
|
|
15
15
|
|
|
16
16
|
module Pingram
|
|
17
17
|
# Slack message metadata with optional work object entities. Combines standard Slack message metadata fields with an array of entity objects.
|
|
18
|
-
class
|
|
18
|
+
class GetTemplatesListResponseInnerAnyOf5Metadata < ApiModelBase
|
|
19
19
|
# An array of work object entities.
|
|
20
20
|
attr_accessor :entities
|
|
21
21
|
|
|
@@ -47,7 +47,7 @@ module Pingram
|
|
|
47
47
|
# Attribute type mapping.
|
|
48
48
|
def self.openapi_types
|
|
49
49
|
{
|
|
50
|
-
:'entities' => :'Array<
|
|
50
|
+
:'entities' => :'Array<GetTemplatesListResponseInnerAnyOf5MetadataEntitiesInner>',
|
|
51
51
|
:'event_type' => :'String',
|
|
52
52
|
:'event_payload' => :'Hash<String, Object>'
|
|
53
53
|
}
|
|
@@ -63,14 +63,14 @@ module Pingram
|
|
|
63
63
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
64
64
|
def initialize(attributes = {})
|
|
65
65
|
if (!attributes.is_a?(Hash))
|
|
66
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `Pingram::
|
|
66
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Pingram::GetTemplatesListResponseInnerAnyOf5Metadata` initialize method"
|
|
67
67
|
end
|
|
68
68
|
|
|
69
69
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
70
70
|
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
71
71
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
72
72
|
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
73
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Pingram::
|
|
73
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Pingram::GetTemplatesListResponseInnerAnyOf5Metadata`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
74
74
|
end
|
|
75
75
|
h[k.to_sym] = v
|
|
76
76
|
}
|
|
@@ -14,7 +14,7 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module Pingram
|
|
17
|
-
class
|
|
17
|
+
class GetTemplatesListResponseInnerAnyOf5MetadataEntitiesInner < ApiModelBase
|
|
18
18
|
# Entity type (e.g., 'slack#/entities/task', 'slack#/entities/file').
|
|
19
19
|
attr_accessor :entity_type
|
|
20
20
|
|
|
@@ -55,7 +55,7 @@ module Pingram
|
|
|
55
55
|
{
|
|
56
56
|
:'entity_type' => :'String',
|
|
57
57
|
:'entity_payload' => :'Hash<String, Object>',
|
|
58
|
-
:'external_ref' => :'
|
|
58
|
+
:'external_ref' => :'GetTemplatesListResponseInnerAnyOf5MetadataEntitiesInnerExternalRef',
|
|
59
59
|
:'url' => :'String',
|
|
60
60
|
:'app_unfurl_url' => :'String'
|
|
61
61
|
}
|
|
@@ -71,14 +71,14 @@ module Pingram
|
|
|
71
71
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
72
72
|
def initialize(attributes = {})
|
|
73
73
|
if (!attributes.is_a?(Hash))
|
|
74
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `Pingram::
|
|
74
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Pingram::GetTemplatesListResponseInnerAnyOf5MetadataEntitiesInner` initialize method"
|
|
75
75
|
end
|
|
76
76
|
|
|
77
77
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
78
78
|
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
79
79
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
80
80
|
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
81
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Pingram::
|
|
81
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Pingram::GetTemplatesListResponseInnerAnyOf5MetadataEntitiesInner`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
82
82
|
end
|
|
83
83
|
h[k.to_sym] = v
|
|
84
84
|
}
|
|
@@ -15,7 +15,7 @@ require 'time'
|
|
|
15
15
|
|
|
16
16
|
module Pingram
|
|
17
17
|
# Reference used to identify an entity within the developer's system.
|
|
18
|
-
class
|
|
18
|
+
class GetTemplatesListResponseInnerAnyOf5MetadataEntitiesInnerExternalRef < ApiModelBase
|
|
19
19
|
attr_accessor :id
|
|
20
20
|
|
|
21
21
|
attr_accessor :type
|
|
@@ -56,14 +56,14 @@ module Pingram
|
|
|
56
56
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
57
57
|
def initialize(attributes = {})
|
|
58
58
|
if (!attributes.is_a?(Hash))
|
|
59
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `Pingram::
|
|
59
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Pingram::GetTemplatesListResponseInnerAnyOf5MetadataEntitiesInnerExternalRef` initialize method"
|
|
60
60
|
end
|
|
61
61
|
|
|
62
62
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
63
63
|
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
64
64
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
65
65
|
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
66
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Pingram::
|
|
66
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Pingram::GetTemplatesListResponseInnerAnyOf5MetadataEntitiesInnerExternalRef`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
67
67
|
end
|
|
68
68
|
h[k.to_sym] = v
|
|
69
69
|
}
|
|
@@ -14,13 +14,14 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module Pingram
|
|
17
|
+
# Single template or list of templates (get handler: one when templateId provided, list when not).
|
|
17
18
|
module GetTemplatesResponse
|
|
18
19
|
class << self
|
|
19
20
|
# List of class defined in anyOf (OpenAPI v3)
|
|
20
21
|
def openapi_any_of
|
|
21
22
|
[
|
|
22
|
-
:'Array<
|
|
23
|
-
:'
|
|
23
|
+
:'Array<GetTemplatesListResponseInner>',
|
|
24
|
+
:'GetTemplatesListResponseInner'
|
|
24
25
|
]
|
|
25
26
|
end
|
|
26
27
|
|
data/lib/pingram/version.rb
CHANGED
data/lib/pingram.rb
CHANGED
|
@@ -77,6 +77,17 @@ require 'pingram/models/get_notifications_response_inner_options_email_weekly'
|
|
|
77
77
|
require 'pingram/models/get_notifications_response_inner_templates_inner'
|
|
78
78
|
require 'pingram/models/get_notifications_response_inner_throttling'
|
|
79
79
|
require 'pingram/models/get_senders_response_inner'
|
|
80
|
+
require 'pingram/models/get_templates_list_response_inner'
|
|
81
|
+
require 'pingram/models/get_templates_list_response_inner_any_of'
|
|
82
|
+
require 'pingram/models/get_templates_list_response_inner_any_of1'
|
|
83
|
+
require 'pingram/models/get_templates_list_response_inner_any_of1_instant'
|
|
84
|
+
require 'pingram/models/get_templates_list_response_inner_any_of2'
|
|
85
|
+
require 'pingram/models/get_templates_list_response_inner_any_of3'
|
|
86
|
+
require 'pingram/models/get_templates_list_response_inner_any_of4'
|
|
87
|
+
require 'pingram/models/get_templates_list_response_inner_any_of5'
|
|
88
|
+
require 'pingram/models/get_templates_list_response_inner_any_of5_metadata'
|
|
89
|
+
require 'pingram/models/get_templates_list_response_inner_any_of5_metadata_entities_inner'
|
|
90
|
+
require 'pingram/models/get_templates_list_response_inner_any_of5_metadata_entities_inner_external_ref'
|
|
80
91
|
require 'pingram/models/get_templates_response'
|
|
81
92
|
require 'pingram/models/get_users_response'
|
|
82
93
|
require 'pingram/models/get_users_response_users_inner'
|
|
@@ -143,9 +154,6 @@ require 'pingram/models/sender_post_body_options_email_attachments_inner_any_of1
|
|
|
143
154
|
require 'pingram/models/sender_post_body_options_fcm'
|
|
144
155
|
require 'pingram/models/sender_post_body_options_fcm_android'
|
|
145
156
|
require 'pingram/models/sender_post_body_slack'
|
|
146
|
-
require 'pingram/models/sender_post_body_slack_metadata'
|
|
147
|
-
require 'pingram/models/sender_post_body_slack_metadata_entities_inner'
|
|
148
|
-
require 'pingram/models/sender_post_body_slack_metadata_entities_inner_external_ref'
|
|
149
157
|
require 'pingram/models/sender_post_body_sms'
|
|
150
158
|
require 'pingram/models/sender_post_body_sms_auto_reply'
|
|
151
159
|
require 'pingram/models/sender_post_body_to'
|
data/pingram.gemspec
CHANGED
|
@@ -19,13 +19,12 @@ Gem::Specification.new do |s|
|
|
|
19
19
|
s.name = "pingram"
|
|
20
20
|
s.version = Pingram::VERSION
|
|
21
21
|
s.platform = Gem::Platform::RUBY
|
|
22
|
-
s.authors = ["
|
|
22
|
+
s.authors = ["OpenAPI-Generator"]
|
|
23
23
|
s.email = [""]
|
|
24
|
-
s.homepage = "https://
|
|
25
|
-
s.summary = "
|
|
26
|
-
s.description = "
|
|
27
|
-
s.license = "
|
|
28
|
-
s.required_ruby_version = '>= 2.7'
|
|
24
|
+
s.homepage = "https://openapi-generator.tech"
|
|
25
|
+
s.summary = "NotificationAPI Ruby Gem"
|
|
26
|
+
s.description = "Internal API for notification delivery and management"
|
|
27
|
+
s.license = "Unlicense"
|
|
29
28
|
s.metadata = {}
|
|
30
29
|
|
|
31
30
|
s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
|