lib/aserto/directory/v3/importer.rb in aserto-0.30.1 vs lib/aserto/directory/v3/importer.rb in aserto-0.30.4

- old
+ new

@@ -7,18 +7,24 @@ # # Imports objects and relations # # @param Array[Hash] data to be imported # + # op_code = { + # OPCODE_UNKNOWN = ; + # OPCODE_SET = 1; + # OPCODE_DELETE = 2; + # } # @example # directory.import( # [ - # { object: { id: "import-user", type: "user" } }, - # { object: { id: "import-group", type: "group" } }, + # { op_code: 1, object: { type: "user", id: "import-user" } }, + # { op_code: 1, object: { type: "group", id: "import-group" } }, # { + # op_code: 1, # relation: { - # object_id: "import-user", # object_type: "user", + # object_id: "import-user", # relation: "member", # subject_id: "import-group", # subject_type: "group" # } # }