Skip to content

Commit

Permalink
Exposing membershipTypes in accessReviewInstanceDecisionItem
Browse files Browse the repository at this point in the history
  • Loading branch information
shubhamguptacal committed Dec 1, 2021
1 parent e564ab4 commit 8f3eba7
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1842,6 +1842,13 @@
"$ref": "#/definitions/AccessReviewDecisionInsight"
},
"description": "This is the collection of insights for this decision item."
},
"principalResourceMembership": {
"readOnly": true,
"x-ms-client-flatten": true,
"$ref": "#/definitions/AccessReviewDecisionPrincipalResourceMembership",
"description": "Details of the membership type.",
"x-nullable": true
}
},
"description": "Approval Step."
Expand Down Expand Up @@ -1984,6 +1991,27 @@
},
"description": "Record All Decisions payload."
},
"AccessReviewDecisionPrincipalResourceMembership": {
"type": "object",
"properties": {
"membershipTypes": {
"type": "array",
"description": "Every decision item in an access review represents a principal's membership to a resource. This property represents details of the membership. Examples of this detail might be whether the principal has direct access or indirect access",
"items": {
"type": "string",
"enum": [
"direct",
"indirect"
],
"x-ms-enum": {
"name": "AccessReviewDecisionPrincipalResourceMembershipType",
"modelAsString": true
}
}
}
},
"description": "Target of the decision."
},
"AccessReviewDecisionIdentity": {
"type": "object",
"discriminator": "type",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,12 @@
"type": "azureRole",
"id": "a6c7aecb-cbfd-4763-87ef-e91b4bd509d9",
"displayName": "Owner"
},
"principalResourceMembership": {
"membershipTypes": [
"direct",
"indirect"
]
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@
"type": "azureRole",
"id": "a6c7aecb-cbfd-4763-87ef-e91b4bd509d9",
"displayName": "Owner"
},
"principalResourceMembership": {
"membershipTypes": [
"direct",
"indirect"
]
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@
"type": "azureRole",
"id": "a6c7aecb-cbfd-4763-87ef-e91b4bd509d9",
"displayName": "Owner"
},
"principalResourceMembership": {
"membershipTypes": [
"direct",
"indirect"
]
}
}
}
Expand Down

0 comments on commit 8f3eba7

Please sign in to comment.