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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 88aae5c337094a0abcaac0f2bfc4ab9cee07c3ea70a7b8d1ca614a86a9953b4c
4
- data.tar.gz: 956b7b787731ddaec22f2d8f76eb2ed6ad1340c804e6540f595e53369b55e876
3
+ metadata.gz: 0f9e62eb9cea9a7f1299a70fb9bc34d00d585227864c1b32eebb63afe657cbde
4
+ data.tar.gz: d04b726138c23d22a84edb51c608f9ba2f462d01c3603bb35c05d681ca2be4ba
5
5
  SHA512:
6
- metadata.gz: afdca9836d8e9f7331af066dd9009b7f48c8ad2c1fbba8ad521f4114cf678f941a1f3381ceb8a5afbaf5c809a9d7f36bb0ee0042794071cd1105b236670c19fd
7
- data.tar.gz: 3f7fb44f65ab13fb0f41bca69ab41160240460a2765df6bfaed6d0e891b3fbe00c52498e67e224b477bdd6c3c0f0201d8391ecb5a442068182fde4920c4e0683
6
+ metadata.gz: 0df41a3bd30beed06afc30973604ed08fc6782b63718fd22c004f0bfbc6825b491d8377a5b8a3e4409ac560d8048da5c6640439800bae58888da36f4be0726db
7
+ data.tar.gz: cec2b2faa35ec51e0761d1902457adc3cadb7f527ebb254c5297d21f42a611edc85df90451ab9a11315e0b5ed719505443c327a3c94523d0e3bfa7dcd45b67bd
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.31.1
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.1
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-04 00:00:00.000000000 Z
11
+ date: 2024-06-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aserto-authorizer