aserto 0.31.1 → 0.31.2
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/importer.rb +8 -0
- data/lib/aserto/directory/v3/model.rb +6 -0
- 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: 0f9e62eb9cea9a7f1299a70fb9bc34d00d585227864c1b32eebb63afe657cbde
|
4
|
+
data.tar.gz: d04b726138c23d22a84edb51c608f9ba2f462d01c3603bb35c05d681ca2be4ba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0df41a3bd30beed06afc30973604ed08fc6782b63718fd22c004f0bfbc6825b491d8377a5b8a3e4409ac560d8048da5c6640439800bae58888da36f4be0726db
|
7
|
+
data.tar.gz: cec2b2faa35ec51e0761d1902457adc3cadb7f527ebb254c5297d21f42a611edc85df90451ab9a11315e0b5ed719505443c327a3c94523d0e3bfa7dcd45b67bd
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.31.
|
1
|
+
0.31.2
|
@@ -33,6 +33,14 @@ module Aserto
|
|
33
33
|
# )
|
34
34
|
def import(data)
|
35
35
|
data.map! do |value|
|
36
|
+
if value.dig(:object, :properties)
|
37
|
+
require "google/protobuf/well_known_types"
|
38
|
+
|
39
|
+
value[:object][:properties] = Google::Protobuf::Struct.from_hash(
|
40
|
+
value[:object][:properties].transform_keys(&:to_s)
|
41
|
+
)
|
42
|
+
end
|
43
|
+
|
36
44
|
Aserto::Directory::Importer::V3::ImportRequest.new(value)
|
37
45
|
end
|
38
46
|
operation = importer.import(data, return_op: true)
|
@@ -30,6 +30,12 @@ module Aserto
|
|
30
30
|
end
|
31
31
|
|
32
32
|
# rubocop:enable Naming/AccessorMethodName
|
33
|
+
|
34
|
+
# Deletes the manifest and all the data
|
35
|
+
# @return [Aserto::Directory::Model::V3::DeleteManifestResponse]
|
36
|
+
def delete_manifest
|
37
|
+
@model.delete_manifest(Model::V3::DeleteManifestRequest.new)
|
38
|
+
end
|
33
39
|
end
|
34
40
|
end
|
35
41
|
end
|
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.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aserto
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-06-
|
11
|
+
date: 2024-06-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aserto-authorizer
|