losant_rest 1.21.1 → 1.21.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 +4 -4
- data/docs/_schemas.md +125 -8
- data/docs/experienceGroup.md +1 -1
- data/lib/platform_rest/client.rb +2 -2
- data/lib/platform_rest/experience_group.rb +1 -1
- data/lib/platform_rest/version.rb +1 -1
- data/schemas/credential.json +28 -1
- data/schemas/credentialPatch.json +23 -0
- data/schemas/credentialPost.json +46 -6
- data/schemas/credentials.json +28 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6e21b99fdaa5ac6a516bdb75b446b7b050c33cab62b2a25a359ecb815b654b99
|
4
|
+
data.tar.gz: 20cadf942f21e053268959b6e5b0e6cf28fb1670cbf90cc1bda465a0a1a0cd9f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eb15aebd8d7983c091e8149648ebd4a7e65257c175b0932747776fc9622002924676bf22772050851827c399d26713a9cd8a9b1ab2e355bff137b9857a4e0edd
|
7
|
+
data.tar.gz: eac5f7750254d76509fa79801135311a8181e34e27b7a08bc82cd7e62effaf6710352905fd06285693d279f17d556ec94c0429ea17380fe8ab2a6acb4e115ab8
|
data/docs/_schemas.md
CHANGED
@@ -26473,7 +26473,8 @@ Schema for a single Credential
|
|
26473
26473
|
"whatsapp",
|
26474
26474
|
"sql",
|
26475
26475
|
"mongodb",
|
26476
|
-
"mailgun"
|
26476
|
+
"mailgun",
|
26477
|
+
"snowflake"
|
26477
26478
|
]
|
26478
26479
|
},
|
26479
26480
|
"awsConfig": {
|
@@ -26673,6 +26674,32 @@ Schema for a single Credential
|
|
26673
26674
|
"type": "object",
|
26674
26675
|
"properties": {},
|
26675
26676
|
"additionalProperties": false
|
26677
|
+
},
|
26678
|
+
"snowflakeConfig": {
|
26679
|
+
"type": "object",
|
26680
|
+
"properties": {
|
26681
|
+
"host": {
|
26682
|
+
"type": "string",
|
26683
|
+
"minLength": 1,
|
26684
|
+
"maxLength": 128
|
26685
|
+
},
|
26686
|
+
"username": {
|
26687
|
+
"type": "string",
|
26688
|
+
"minLength": 1,
|
26689
|
+
"maxLength": 128
|
26690
|
+
},
|
26691
|
+
"publicKey": {
|
26692
|
+
"type": "string",
|
26693
|
+
"minLength": 1,
|
26694
|
+
"maxLength": 8192
|
26695
|
+
}
|
26696
|
+
},
|
26697
|
+
"required": [
|
26698
|
+
"host",
|
26699
|
+
"username",
|
26700
|
+
"publicKey"
|
26701
|
+
],
|
26702
|
+
"additionalProperties": false
|
26676
26703
|
}
|
26677
26704
|
},
|
26678
26705
|
"additionalProperties": false,
|
@@ -36458,6 +36485,29 @@ Schema for a Credential update request
|
|
36458
36485
|
}
|
36459
36486
|
},
|
36460
36487
|
"additionalProperties": false
|
36488
|
+
},
|
36489
|
+
"snowflakeConfig": {
|
36490
|
+
"type": "object",
|
36491
|
+
"properties": {
|
36492
|
+
"host": {
|
36493
|
+
"type": "string",
|
36494
|
+
"minLength": 1,
|
36495
|
+
"maxLength": 128
|
36496
|
+
},
|
36497
|
+
"username": {
|
36498
|
+
"type": "string",
|
36499
|
+
"minLength": 1,
|
36500
|
+
"maxLength": 128
|
36501
|
+
},
|
36502
|
+
"privateKey": {
|
36503
|
+
"type": "string",
|
36504
|
+
"maxLength": 8196
|
36505
|
+
},
|
36506
|
+
"generatePrivateKey": {
|
36507
|
+
"type": "boolean"
|
36508
|
+
}
|
36509
|
+
},
|
36510
|
+
"additionalProperties": false
|
36461
36511
|
}
|
36462
36512
|
},
|
36463
36513
|
"additionalProperties": false
|
@@ -36514,7 +36564,8 @@ Schema for a Credential creation request
|
|
36514
36564
|
"whatsapp",
|
36515
36565
|
"sql",
|
36516
36566
|
"mongodb",
|
36517
|
-
"mailgun"
|
36567
|
+
"mailgun",
|
36568
|
+
"snowflake"
|
36518
36569
|
]
|
36519
36570
|
},
|
36520
36571
|
"awsConfig": {
|
@@ -36779,12 +36830,12 @@ Schema for a Credential creation request
|
|
36779
36830
|
"type": "string",
|
36780
36831
|
"minLength": 1,
|
36781
36832
|
"maxLength": 2048
|
36782
|
-
}
|
36783
|
-
"required": [
|
36784
|
-
"connectionUri"
|
36785
|
-
]
|
36833
|
+
}
|
36786
36834
|
},
|
36787
|
-
"additionalProperties": false
|
36835
|
+
"additionalProperties": false,
|
36836
|
+
"required": [
|
36837
|
+
"connectionUri"
|
36838
|
+
]
|
36788
36839
|
},
|
36789
36840
|
"mailgunConfig": {
|
36790
36841
|
"type": "object",
|
@@ -36799,6 +36850,45 @@ Schema for a Credential creation request
|
|
36799
36850
|
"required": [
|
36800
36851
|
"apiKey"
|
36801
36852
|
]
|
36853
|
+
},
|
36854
|
+
"snowflakeConfig": {
|
36855
|
+
"type": "object",
|
36856
|
+
"properties": {
|
36857
|
+
"host": {
|
36858
|
+
"type": "string",
|
36859
|
+
"minLength": 1,
|
36860
|
+
"maxLength": 128
|
36861
|
+
},
|
36862
|
+
"username": {
|
36863
|
+
"type": "string",
|
36864
|
+
"minLength": 1,
|
36865
|
+
"maxLength": 128
|
36866
|
+
},
|
36867
|
+
"privateKey": {
|
36868
|
+
"type": "string",
|
36869
|
+
"maxLength": 8196
|
36870
|
+
},
|
36871
|
+
"generatePrivateKey": {
|
36872
|
+
"type": "boolean"
|
36873
|
+
}
|
36874
|
+
},
|
36875
|
+
"additionalProperties": false,
|
36876
|
+
"anyOf": [
|
36877
|
+
{
|
36878
|
+
"required": [
|
36879
|
+
"host",
|
36880
|
+
"username",
|
36881
|
+
"privateKey"
|
36882
|
+
]
|
36883
|
+
},
|
36884
|
+
{
|
36885
|
+
"required": [
|
36886
|
+
"host",
|
36887
|
+
"username",
|
36888
|
+
"generatePrivateKey"
|
36889
|
+
]
|
36890
|
+
}
|
36891
|
+
]
|
36802
36892
|
}
|
36803
36893
|
},
|
36804
36894
|
"additionalProperties": false,
|
@@ -36908,7 +36998,8 @@ Schema for a collection of Credentials
|
|
36908
36998
|
"whatsapp",
|
36909
36999
|
"sql",
|
36910
37000
|
"mongodb",
|
36911
|
-
"mailgun"
|
37001
|
+
"mailgun",
|
37002
|
+
"snowflake"
|
36912
37003
|
]
|
36913
37004
|
},
|
36914
37005
|
"awsConfig": {
|
@@ -37108,6 +37199,32 @@ Schema for a collection of Credentials
|
|
37108
37199
|
"type": "object",
|
37109
37200
|
"properties": {},
|
37110
37201
|
"additionalProperties": false
|
37202
|
+
},
|
37203
|
+
"snowflakeConfig": {
|
37204
|
+
"type": "object",
|
37205
|
+
"properties": {
|
37206
|
+
"host": {
|
37207
|
+
"type": "string",
|
37208
|
+
"minLength": 1,
|
37209
|
+
"maxLength": 128
|
37210
|
+
},
|
37211
|
+
"username": {
|
37212
|
+
"type": "string",
|
37213
|
+
"minLength": 1,
|
37214
|
+
"maxLength": 128
|
37215
|
+
},
|
37216
|
+
"publicKey": {
|
37217
|
+
"type": "string",
|
37218
|
+
"minLength": 1,
|
37219
|
+
"maxLength": 8192
|
37220
|
+
}
|
37221
|
+
},
|
37222
|
+
"required": [
|
37223
|
+
"host",
|
37224
|
+
"username",
|
37225
|
+
"publicKey"
|
37226
|
+
],
|
37227
|
+
"additionalProperties": false
|
37111
37228
|
}
|
37112
37229
|
},
|
37113
37230
|
"additionalProperties": false,
|
data/docs/experienceGroup.md
CHANGED
@@ -76,7 +76,7 @@ all.Application, all.Application.read, all.Organization, all.Organization.read,
|
|
76
76
|
| applicationId | string | Y | ID associated with the application | | 575ec8687ae143cd83dc4a97 |
|
77
77
|
| experienceGroupId | string | Y | ID associated with the experience group | | 575ed78e7ae143cd83dc4aab |
|
78
78
|
| includeDirectDeviceCount | string | N | Whether or not to return count of devices associated directly with this group | false | true |
|
79
|
-
| includeTotalDeviceCount | string | N | Whether or not to return count of devices associated with this group or any of its
|
79
|
+
| includeTotalDeviceCount | string | N | Whether or not to return count of devices associated with this group or any of its descendants | false | true |
|
80
80
|
| losantdomain | string | N | Domain scope of request (rarely needed) | | example.com |
|
81
81
|
|
82
82
|
#### Successful Responses
|
data/lib/platform_rest/client.rb
CHANGED
@@ -27,7 +27,7 @@ module PlatformRest
|
|
27
27
|
#
|
28
28
|
# User API for accessing platform data
|
29
29
|
#
|
30
|
-
# Built For Version 1.27.
|
30
|
+
# Built For Version 1.27.3
|
31
31
|
class Client
|
32
32
|
attr_accessor :auth_token, :url
|
33
33
|
|
@@ -406,7 +406,7 @@ module PlatformRest
|
|
406
406
|
|
407
407
|
headers["Accept"] = "application/json"
|
408
408
|
headers["Content-Type"] = "application/json"
|
409
|
-
headers["Accept-Version"] = "^1.27.
|
409
|
+
headers["Accept-Version"] = "^1.27.3"
|
410
410
|
headers["Authorization"] = "Bearer #{self.auth_token}" if self.auth_token
|
411
411
|
path = self.url + options.fetch(:path, "")
|
412
412
|
|
@@ -89,7 +89,7 @@ module PlatformRest
|
|
89
89
|
# * {string} applicationId - ID associated with the application
|
90
90
|
# * {string} experienceGroupId - ID associated with the experience group
|
91
91
|
# * {string} includeDirectDeviceCount - Whether or not to return count of devices associated directly with this group
|
92
|
-
# * {string} includeTotalDeviceCount - Whether or not to return count of devices associated with this group or any of its
|
92
|
+
# * {string} includeTotalDeviceCount - Whether or not to return count of devices associated with this group or any of its descendants
|
93
93
|
# * {string} losantdomain - Domain scope of request (rarely needed)
|
94
94
|
# * {boolean} _actions - Return resource actions in response
|
95
95
|
# * {boolean} _links - Return resource link in response
|
data/schemas/credential.json
CHANGED
@@ -68,7 +68,8 @@
|
|
68
68
|
"whatsapp",
|
69
69
|
"sql",
|
70
70
|
"mongodb",
|
71
|
-
"mailgun"
|
71
|
+
"mailgun",
|
72
|
+
"snowflake"
|
72
73
|
]
|
73
74
|
},
|
74
75
|
"awsConfig": {
|
@@ -268,6 +269,32 @@
|
|
268
269
|
"type": "object",
|
269
270
|
"properties": {},
|
270
271
|
"additionalProperties": false
|
272
|
+
},
|
273
|
+
"snowflakeConfig": {
|
274
|
+
"type": "object",
|
275
|
+
"properties": {
|
276
|
+
"host": {
|
277
|
+
"type": "string",
|
278
|
+
"minLength": 1,
|
279
|
+
"maxLength": 128
|
280
|
+
},
|
281
|
+
"username": {
|
282
|
+
"type": "string",
|
283
|
+
"minLength": 1,
|
284
|
+
"maxLength": 128
|
285
|
+
},
|
286
|
+
"publicKey": {
|
287
|
+
"type": "string",
|
288
|
+
"minLength": 1,
|
289
|
+
"maxLength": 8192
|
290
|
+
}
|
291
|
+
},
|
292
|
+
"required": [
|
293
|
+
"host",
|
294
|
+
"username",
|
295
|
+
"publicKey"
|
296
|
+
],
|
297
|
+
"additionalProperties": false
|
271
298
|
}
|
272
299
|
},
|
273
300
|
"additionalProperties": false,
|
@@ -249,6 +249,29 @@
|
|
249
249
|
}
|
250
250
|
},
|
251
251
|
"additionalProperties": false
|
252
|
+
},
|
253
|
+
"snowflakeConfig": {
|
254
|
+
"type": "object",
|
255
|
+
"properties": {
|
256
|
+
"host": {
|
257
|
+
"type": "string",
|
258
|
+
"minLength": 1,
|
259
|
+
"maxLength": 128
|
260
|
+
},
|
261
|
+
"username": {
|
262
|
+
"type": "string",
|
263
|
+
"minLength": 1,
|
264
|
+
"maxLength": 128
|
265
|
+
},
|
266
|
+
"privateKey": {
|
267
|
+
"type": "string",
|
268
|
+
"maxLength": 8196
|
269
|
+
},
|
270
|
+
"generatePrivateKey": {
|
271
|
+
"type": "boolean"
|
272
|
+
}
|
273
|
+
},
|
274
|
+
"additionalProperties": false
|
252
275
|
}
|
253
276
|
},
|
254
277
|
"additionalProperties": false
|
data/schemas/credentialPost.json
CHANGED
@@ -28,7 +28,8 @@
|
|
28
28
|
"whatsapp",
|
29
29
|
"sql",
|
30
30
|
"mongodb",
|
31
|
-
"mailgun"
|
31
|
+
"mailgun",
|
32
|
+
"snowflake"
|
32
33
|
]
|
33
34
|
},
|
34
35
|
"awsConfig": {
|
@@ -293,12 +294,12 @@
|
|
293
294
|
"type": "string",
|
294
295
|
"minLength": 1,
|
295
296
|
"maxLength": 2048
|
296
|
-
}
|
297
|
-
"required": [
|
298
|
-
"connectionUri"
|
299
|
-
]
|
297
|
+
}
|
300
298
|
},
|
301
|
-
"additionalProperties": false
|
299
|
+
"additionalProperties": false,
|
300
|
+
"required": [
|
301
|
+
"connectionUri"
|
302
|
+
]
|
302
303
|
},
|
303
304
|
"mailgunConfig": {
|
304
305
|
"type": "object",
|
@@ -313,6 +314,45 @@
|
|
313
314
|
"required": [
|
314
315
|
"apiKey"
|
315
316
|
]
|
317
|
+
},
|
318
|
+
"snowflakeConfig": {
|
319
|
+
"type": "object",
|
320
|
+
"properties": {
|
321
|
+
"host": {
|
322
|
+
"type": "string",
|
323
|
+
"minLength": 1,
|
324
|
+
"maxLength": 128
|
325
|
+
},
|
326
|
+
"username": {
|
327
|
+
"type": "string",
|
328
|
+
"minLength": 1,
|
329
|
+
"maxLength": 128
|
330
|
+
},
|
331
|
+
"privateKey": {
|
332
|
+
"type": "string",
|
333
|
+
"maxLength": 8196
|
334
|
+
},
|
335
|
+
"generatePrivateKey": {
|
336
|
+
"type": "boolean"
|
337
|
+
}
|
338
|
+
},
|
339
|
+
"additionalProperties": false,
|
340
|
+
"anyOf": [
|
341
|
+
{
|
342
|
+
"required": [
|
343
|
+
"host",
|
344
|
+
"username",
|
345
|
+
"privateKey"
|
346
|
+
]
|
347
|
+
},
|
348
|
+
{
|
349
|
+
"required": [
|
350
|
+
"host",
|
351
|
+
"username",
|
352
|
+
"generatePrivateKey"
|
353
|
+
]
|
354
|
+
}
|
355
|
+
]
|
316
356
|
}
|
317
357
|
},
|
318
358
|
"additionalProperties": false,
|
data/schemas/credentials.json
CHANGED
@@ -75,7 +75,8 @@
|
|
75
75
|
"whatsapp",
|
76
76
|
"sql",
|
77
77
|
"mongodb",
|
78
|
-
"mailgun"
|
78
|
+
"mailgun",
|
79
|
+
"snowflake"
|
79
80
|
]
|
80
81
|
},
|
81
82
|
"awsConfig": {
|
@@ -275,6 +276,32 @@
|
|
275
276
|
"type": "object",
|
276
277
|
"properties": {},
|
277
278
|
"additionalProperties": false
|
279
|
+
},
|
280
|
+
"snowflakeConfig": {
|
281
|
+
"type": "object",
|
282
|
+
"properties": {
|
283
|
+
"host": {
|
284
|
+
"type": "string",
|
285
|
+
"minLength": 1,
|
286
|
+
"maxLength": 128
|
287
|
+
},
|
288
|
+
"username": {
|
289
|
+
"type": "string",
|
290
|
+
"minLength": 1,
|
291
|
+
"maxLength": 128
|
292
|
+
},
|
293
|
+
"publicKey": {
|
294
|
+
"type": "string",
|
295
|
+
"minLength": 1,
|
296
|
+
"maxLength": 8192
|
297
|
+
}
|
298
|
+
},
|
299
|
+
"required": [
|
300
|
+
"host",
|
301
|
+
"username",
|
302
|
+
"publicKey"
|
303
|
+
],
|
304
|
+
"additionalProperties": false
|
278
305
|
}
|
279
306
|
},
|
280
307
|
"additionalProperties": false,
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: losant_rest
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.21.
|
4
|
+
version: 1.21.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Kuehl
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-03-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|