From f9d491543ef065aa7113b7ce6fe95f24df82ddeb Mon Sep 17 00:00:00 2001 From: GitHub Action Bot Date: Tue, 23 Jan 2024 17:11:02 +0000 Subject: [PATCH] Automated commit 'PLTDP-933 Updating search docs (#1535) * PLTDP-933 Updating to latest search changes' by github action: 7629324837 --- .../schemas/search/documents/examples/role.yaml | 12 ++++++++++++ .../schemas/search/model/role/RoleDocument.yaml | 16 ++++++++++++++++ 2 files changed, 28 insertions(+) diff --git a/idn/v3/schemas/search/documents/examples/role.yaml b/idn/v3/schemas/search/documents/examples/role.yaml index 77da989..448d667 100644 --- a/idn/v3/schemas/search/documents/examples/role.yaml +++ b/idn/v3/schemas/search/documents/examples/role.yaml @@ -18,6 +18,18 @@ value: - id: '2c91809c6faade77016fb4f0b63407ae' name: 'Admin Access' accessProfileCount: 1 + segments: + - id: '0f11f2a4-7c94-4bf3-a2bd-742580fe3bde' + name: 'segment-xyz' + description: 'This segment represents xyz' + segmentCount: 1 + entitlements: + - id: '2c91809c6faade77016fb4f0b63407ae' + name: 'Admin Access' + description: 'Access to everything' + privileged: true + hasPermissions: true + entitlementCount: 1 tags: - 'TAG_1' - 'TAG_2' diff --git a/idn/v3/schemas/search/model/role/RoleDocument.yaml b/idn/v3/schemas/search/model/role/RoleDocument.yaml index 24e89e5..365fd28 100644 --- a/idn/v3/schemas/search/model/role/RoleDocument.yaml +++ b/idn/v3/schemas/search/model/role/RoleDocument.yaml @@ -12,3 +12,19 @@ allOf: type: integer tags: $ref: '../base/Tags.yaml' + segments: + type: array + items: + $ref: '../base/Reference.yaml' + segmentCount: + type: integer + format: int32 + example: 1 + entitlements: + type: array + items: + $ref: '../access/AccessProfileRole.yaml' + entitlementCount: + type: integer + format: int32 + example: 3 \ No newline at end of file