aserto 0.31.0 → 0.31.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/aserto/directory/v3/exporter.rb +1 -2
- data/lib/aserto/directory/v3/writer.rb +6 -4
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 88aae5c337094a0abcaac0f2bfc4ab9cee07c3ea70a7b8d1ca614a86a9953b4c
|
4
|
+
data.tar.gz: 956b7b787731ddaec22f2d8f76eb2ed6ad1340c804e6540f595e53369b55e876
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: afdca9836d8e9f7331af066dd9009b7f48c8ad2c1fbba8ad521f4114cf678f941a1f3381ceb8a5afbaf5c809a9d7f36bb0ee0042794071cd1105b236670c19fd
|
7
|
+
data.tar.gz: 3f7fb44f65ab13fb0f41bca69ab41160240460a2765df6bfaed6d0e891b3fbe00c52498e67e224b477bdd6c3c0f0201d8391ecb5a442068182fde4920c4e0683
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.31.
|
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.
|
26
|
+
data = response.map { |r| r }
|
28
27
|
operation.wait
|
29
28
|
|
30
29
|
data
|
@@ -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
|
-
#
|
74
|
-
#
|
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.31.
|
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-
|
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.
|
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.
|
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.31.
|
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.31.
|
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.
|
132
|
+
rubygems_version: 3.3.27
|
133
133
|
signing_key:
|
134
134
|
specification_version: 4
|
135
135
|
summary: Aserto Middleware
|