alula-ruby 0.64.0 → 0.65.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: 94fdf18500f7fac5a2e3a770748187e8cdd1620fd7bfc91b19a12ab1e5c0c035
4
- data.tar.gz: ff49725fb08a79c772fa690a04089f18acb18e107dfe414f47eebac84337afec
3
+ metadata.gz: 41d2f72bfe122495a410d31dd66b303ab12bef75e5c89f2d8dfe24c8ff76a38c
4
+ data.tar.gz: 8a8017aaf94172921f63e0cc89bb4250482b68a9b3bcf554f33d70553415f27c
5
5
  SHA512:
6
- metadata.gz: 7a6833adf51ceac69329420eb427d2ee566815c5721108126f20f033439a17d233649c5be0b10e493df430a2ef4ed29ace26b60349bacbea054a180719c047f3
7
- data.tar.gz: cb12c6057d5b8f3489d0e0e09fbd840d0c9c70de3aaf1353efc73d398fb5885892267daad298bfd81ff3cd27a2e324f2735a4b741a8643c57059836deece72cd
6
+ metadata.gz: 10df93d105f554483c9a4b17ce15de967a3d623e48cd6c3d50af85d59da3df1691dd8190bef6f8aa37aeb3f7fdb0f90e9c2c46094840c962a5674f43b501dc5c
7
+ data.tar.gz: 50a3a7f1910b085d6d8b6e46598e2008b088cca19d94dd3032eafaf75f6f6935315960e654198fdfd321f36521c4ca3e3bbe1d892968dbbb3f91a9f0d713c856
@@ -2,7 +2,7 @@ name: Ruby Gem
2
2
 
3
3
  on:
4
4
  push:
5
- branches: [ master ]
5
+ branches: [ main ]
6
6
 
7
7
  jobs:
8
8
  build:
data/VERSION.md CHANGED
@@ -96,3 +96,4 @@
96
96
  | v0.62.0 | 2022-08-19 | Remove Admin User resource map |
97
97
  | v0.63.0 | 2022-08-25 | Gateway Error |
98
98
  | v0.64.0 | 2022-09-28 | Add procedures for unlocking and locking |
99
+ | v0.65.0 | 2022-09-28 | OAuth Client model |
@@ -0,0 +1,63 @@
1
+ module Alula
2
+ class OAuthClient < Alula::RestResource
3
+ extend Alula::ResourceAttributes
4
+ extend Alula::ApiOperations::Request
5
+ extend Alula::ApiOperations::List
6
+ extend Alula::ApiOperations::Save
7
+
8
+ resource_path 'oauth/clients'
9
+ type 'oauth-clients'
10
+
11
+ # Resource Fields
12
+ # Not all params are used at the moment. See Alula::ResourceAttributes for details
13
+ # on how params are parsed,
14
+ field :id,
15
+ type: :string,
16
+ sortable: false,
17
+ filterable: false,
18
+ creatable_by: [:system],
19
+ patchable_by: [:system]
20
+
21
+ field :client_secret,
22
+ type: :string,
23
+ sortable: false,
24
+ filterable: false,
25
+ creatable_by: [:system],
26
+ patchable_by: [:system]
27
+
28
+ field :redirect_uri,
29
+ type: :array,
30
+ sortable: false,
31
+ filterable: false,
32
+ creatable_by: [:system],
33
+ patchable_by: [:system]
34
+
35
+ field :client_name,
36
+ type: :string,
37
+ sortable: true,
38
+ filterable: true,
39
+ creatable_by: [:system],
40
+ patchable_by: [:system]
41
+
42
+ field :client_author,
43
+ type: :string,
44
+ sortable: true,
45
+ filterable: true,
46
+ creatable_by: [:system],
47
+ patchable_by: [:system]
48
+
49
+ field :scope,
50
+ type: :date,
51
+ sortable: false,
52
+ filterable: false,
53
+ creatable_by: [:system],
54
+ patchable_by: [:system]
55
+
56
+ field :user_id,
57
+ type: :date,
58
+ sortable: false,
59
+ filterable: true,
60
+ creatable_by: [:system],
61
+ patchable_by: [:system]
62
+ end
63
+ end
data/lib/alula/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Alula
4
- VERSION = '0.64.0'
4
+ VERSION = '0.65.0'
5
5
  end
data/lib/alula.rb CHANGED
@@ -56,6 +56,7 @@ require_relative 'alula/resources/receiver_connection'
56
56
  require_relative 'alula/resources/receiver_group'
57
57
  require_relative 'alula/resources/revision'
58
58
  require_relative 'alula/resources/station'
59
+ require_relative 'alula/resources/oauth_client'
59
60
 
60
61
  require_relative 'alula/resources/feature_plan'
61
62
  require_relative 'alula/resources/feature_planvideo'
@@ -123,6 +124,7 @@ module Alula
123
124
  Alula::FeaturePlanVideo,
124
125
  Alula::FeaturePrice,
125
126
  Alula::FeatureBySubject,
127
+ Alula::OAuthClient,
126
128
  ].each_with_object({}) do |klass, resource_map|
127
129
  resource_map[klass.get_type] = klass
128
130
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alula-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.64.0
4
+ version: 0.65.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Titus Johnson
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-09-29 00:00:00.000000000 Z
11
+ date: 2022-11-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty
@@ -256,6 +256,7 @@ files:
256
256
  - lib/alula/resources/feature_plan.rb
257
257
  - lib/alula/resources/feature_planvideo.rb
258
258
  - lib/alula/resources/feature_price.rb
259
+ - lib/alula/resources/oauth_client.rb
259
260
  - lib/alula/resources/receiver_connection.rb
260
261
  - lib/alula/resources/receiver_group.rb
261
262
  - lib/alula/resources/revision.rb