losant_rest 1.19.6 → 1.19.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/test.yml +30 -0
- data/README.md +2 -2
- data/docs/_schemas.md +7742 -2728
- data/docs/devices.md +0 -1
- data/docs/experienceUsers.md +1 -0
- data/docs/instanceOrgs.md +1 -0
- data/lib/platform_rest/client.rb +2 -2
- data/lib/platform_rest/devices.rb +0 -1
- data/lib/platform_rest/experience_users.rb +3 -0
- data/lib/platform_rest/instance_orgs.rb +3 -0
- data/lib/platform_rest/version.rb +1 -1
- data/schemas/advancedExperienceUserQuery.json +1068 -0
- data/schemas/advancedInstanceOrgQuery.json +1171 -0
- data/schemas/applicationDashboardPost.json +7 -0
- data/schemas/credential.json +52 -1
- data/schemas/credentialLinkedResources.json +345 -24
- data/schemas/credentialPatch.json +62 -0
- data/schemas/credentialPost.json +74 -1
- data/schemas/credentials.json +52 -1
- data/schemas/dashboard.json +7 -0
- data/schemas/dashboardPatch.json +7 -0
- data/schemas/dashboardPost.json +7 -0
- data/schemas/dashboards.json +7 -0
- data/schemas/devicesExportPost.json +8 -0
- data/schemas/devicesRemoveDataPost.json +10 -0
- data/schemas/experienceLinkedResources.json +356 -24
- data/schemas/experienceVersion.json +64 -0
- data/schemas/experienceVersionPatch.json +64 -0
- data/schemas/experienceVersionPost.json +64 -0
- data/schemas/experienceVersions.json +64 -0
- data/schemas/experienceView.json +11 -0
- data/schemas/experienceViewPatch.json +11 -0
- data/schemas/experienceViewPost.json +11 -0
- data/schemas/experienceViews.json +11 -0
- data/schemas/flow.json +115 -8
- data/schemas/flowPatch.json +115 -8
- data/schemas/flowPost.json +115 -8
- data/schemas/flowVersion.json +230 -16
- data/schemas/flowVersionPost.json +115 -8
- data/schemas/flowVersions.json +230 -16
- data/schemas/flows.json +115 -8
- data/schemas/flowsImportPost.json +230 -16
- data/schemas/flowsImportResult.json +345 -24
- data/schemas/instanceCustomNode.json +2 -1
- data/schemas/instanceCustomNodePatch.json +3 -9
- data/schemas/instanceCustomNodePost.json +3 -9
- data/schemas/instanceCustomNodes.json +2 -1
- data/schemas/notebook.json +8 -0
- data/schemas/notebookPatch.json +8 -0
- data/schemas/notebookPost.json +8 -0
- data/schemas/notebooks.json +8 -0
- data/schemas/resourceJob.json +2 -1
- data/schemas/resourceJobExecutionLogs.json +2 -1
- data/schemas/resourceJobPost.json +2 -1
- data/schemas/resourceJobs.json +2 -1
- metadata +5 -3
- data/.travis.yml +0 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8f589eec0c52728041597179d62ee3dd0b2ef0ef76165002f6a011020cd5273b
|
4
|
+
data.tar.gz: 01715d94bc5442870a2d0b51c2bb072db1fddd4463737d142e10f0691ce3aa6c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8a3be246e3cf8d75e64e00ab28df871acb94ff6c61a87707cdd452f2b49b62deac1e91183913f5878621bb720d540db08b813abf3a66341cb16d7161ac330c84
|
7
|
+
data.tar.gz: c9b6c668d89e5eb1386f699140d18cf66b39847c40f92b2abadca756a36c73651b3e93943618f230a4fc77e362f5756541f2a77f4f9852fcb2ebee295621ff80
|
@@ -0,0 +1,30 @@
|
|
1
|
+
name: Run Tests
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
branches:
|
6
|
+
- master
|
7
|
+
pull_request:
|
8
|
+
types: ['opened', 'reopened', 'synchronize']
|
9
|
+
|
10
|
+
jobs:
|
11
|
+
test:
|
12
|
+
strategy:
|
13
|
+
matrix:
|
14
|
+
ruby: [ '2.5', '2.4', '2.3', '2.1' ]
|
15
|
+
runs-on: ubuntu-latest
|
16
|
+
permissions:
|
17
|
+
actions: write
|
18
|
+
contents: read
|
19
|
+
pull-requests: write
|
20
|
+
steps:
|
21
|
+
- name: Checkout
|
22
|
+
uses: actions/checkout@v4
|
23
|
+
- name: Set up Ruby ${{ matrix.ruby }}
|
24
|
+
uses: ruby/setup-ruby@v1
|
25
|
+
with:
|
26
|
+
ruby-version: ${{ matrix.ruby }}
|
27
|
+
- name: Install dependencies
|
28
|
+
run: bundle install
|
29
|
+
- name: Run tests
|
30
|
+
run: bundle exec rake
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Losant Ruby REST API Client
|
2
2
|
|
3
|
-
|
3
|
+
![Build Status](https://github.com/Losant/losant-rest-js/actions/workflows/test.yml/badge.svg?branch=master) [![Gem Version](https://badge.fury.io/rb/losant_rest.svg)](https://badge.fury.io/rb/losant_rest)
|
4
4
|
|
5
5
|
The [Losant](https://www.losant.com) REST API client provides a simple way to use the comprehensive Losant API. You can authenticate either as a Losant device or with your user account, and have access to all the functionality of the Losant platform.
|
6
6
|
|
@@ -23,7 +23,7 @@ gem install losant_rest
|
|
23
23
|
Below is a high-level example of using the Losant Ruby REST API client to authenticate against the Losant Platform and report state for a device.
|
24
24
|
|
25
25
|
```ruby
|
26
|
-
require "
|
26
|
+
require "platform_rest"
|
27
27
|
|
28
28
|
response = PlatformRest.auth.authenticate_device(credentials: {
|
29
29
|
deviceId: "my-device-id",
|