aserto 0.30.6 → 0.31.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 786e21dcb6f94db6860b19aff5c7c8086bf02ffc0ca6d6a5914cc9502dc9af2c
4
- data.tar.gz: d134a1bf4da055712fc873b78b1695db5cc89390fede9a5982aaa02388e4e84a
3
+ metadata.gz: 88aae5c337094a0abcaac0f2bfc4ab9cee07c3ea70a7b8d1ca614a86a9953b4c
4
+ data.tar.gz: 956b7b787731ddaec22f2d8f76eb2ed6ad1340c804e6540f595e53369b55e876
5
5
  SHA512:
6
- metadata.gz: 57f197d7d08efb0ffe37041804977de4be0c6a500ae7ef7c784f5d4e35686000ae2039ddde79d946651c01b0fcf2a1bbeae209fcd6255c0f982062b54d127326
7
- data.tar.gz: 0131a6051e4a3e20c20de1514f5fba8ca14bb44ae257d611d5d97dad9663bb4bd36ca26f851df25c2669bbc2182116e48f7d0743c903687dd51915dc8168fde3
6
+ metadata.gz: afdca9836d8e9f7331af066dd9009b7f48c8ad2c1fbba8ad521f4114cf678f941a1f3381ceb8a5afbaf5c809a9d7f36bb0ee0042794071cd1105b236670c19fd
7
+ data.tar.gz: 3f7fb44f65ab13fb0f41bca69ab41160240460a2765df6bfaed6d0e891b3fbe00c52498e67e224b477bdd6c3c0f0201d8391ecb5a442068182fde4920c4e0683
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.30.6
1
+ 0.31.1
@@ -17,14 +17,13 @@ module Aserto
17
17
  # @param [String] data_type one of [:unknown, :objects, :relations, :all]
18
18
  #
19
19
  def export(data_type: :unknown)
20
- data = []
21
20
  operation = exporter.export(
22
21
  Aserto::Directory::Exporter::V3::ExportRequest.new(options: DATA_TYPE[data_type]),
23
22
  return_op: true
24
23
  )
25
24
 
26
25
  response = operation.execute
27
- response.each { |r| data.push(r) }
26
+ data = response.map { |r| r }
28
27
  operation.wait
29
28
 
30
29
  data
@@ -227,8 +227,6 @@ module Aserto
227
227
  #
228
228
  # Returns object graph from anchor to subject or object.
229
229
  #
230
- # @param [String] anchor_type
231
- # @param [String] anchor_id
232
230
  # @param [String] object_type
233
231
  # @param [String] object_id
234
232
  # @param [String] relation
@@ -239,24 +237,24 @@ module Aserto
239
237
  #
240
238
  # @example
241
239
  # directory.get_graph(
242
- # anchor_type: "user",
243
- # anchor_id: "rick@the-citadel.com",
240
+ # object_type: "user",
241
+ # object_id: "rick@the-citadel.com",
244
242
  # subject_id: "rick@the-citadel.com",
245
243
  # subject_type: "user",
246
244
  # relation: "member"
247
245
  # )
248
- def get_graph(anchor_type:, anchor_id:, object_type: "", object_id: "", relation: "", subject_type: "",
249
- subject_id: "", subject_relation: "")
246
+ def get_graph(object_type:, relation:, subject_type:, object_id: "",
247
+ subject_id: "", subject_relation: "", explain: false, trace: false)
250
248
  reader.get_graph(
251
249
  Aserto::Directory::Reader::V3::GetGraphRequest.new(
252
- anchor_type: anchor_type,
253
- anchor_id: anchor_id,
254
250
  object_type: object_type,
255
251
  object_id: object_id,
256
252
  relation: relation,
257
253
  subject_type: subject_type,
258
254
  subject_id: subject_id,
259
- subject_relation: subject_relation
255
+ subject_relation: subject_relation,
256
+ explain: explain,
257
+ trace: trace
260
258
  )
261
259
  )
262
260
  end
@@ -62,6 +62,7 @@ module Aserto
62
62
  # @param [String] relation
63
63
  # @param [String] subject_type
64
64
  # @param [String] subject_id
65
+ # @param [String] subject_relation
65
66
  #
66
67
  # @return [Aserto::Directory::Writer::V3::SetRelationResponse]
67
68
  #
@@ -70,10 +71,10 @@ module Aserto
70
71
  # object_type: "user",
71
72
  # object_id: "rick@the-citadel.com",
72
73
  # relation: "member",
73
- # object_type: "group",
74
- # object_id: "evil_genius"
74
+ # subject_type: "group",
75
+ # subject_id: "evil_genius"
75
76
  # )
76
- def set_relation(object_type:, object_id:, relation:, subject_type:, subject_id:)
77
+ def set_relation(object_type:, object_id:, relation:, subject_type:, subject_id:, subject_relation: "")
77
78
  writer.set_relation(
78
79
  Aserto::Directory::Writer::V3::SetRelationRequest.new(
79
80
  relation: {
@@ -81,7 +82,8 @@ module Aserto
81
82
  object_id: object_id,
82
83
  relation: relation,
83
84
  subject_type: subject_type,
84
- subject_id: subject_id
85
+ subject_id: subject_id,
86
+ subject_relation: subject_relation
85
87
  }
86
88
  )
87
89
  )
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aserto
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.30.6
4
+ version: 0.31.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aserto
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-01-31 00:00:00.000000000 Z
11
+ date: 2024-06-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aserto-authorizer
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.20.1
19
+ version: 0.20.2
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: 0.20.1
26
+ version: 0.20.2
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: aserto-directory
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: 0.30.1
33
+ version: 0.31.3
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: 0.30.1
40
+ version: 0.31.3
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: jwt
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -129,7 +129,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
129
129
  - !ruby/object:Gem::Version
130
130
  version: '0'
131
131
  requirements: []
132
- rubygems_version: 3.3.26
132
+ rubygems_version: 3.3.27
133
133
  signing_key:
134
134
  specification_version: 4
135
135
  summary: Aserto Middleware