From 1c04973f798f683eb5824b98d7243bcb1412308a Mon Sep 17 00:00:00 2001 From: Xiaofei Cao <92354331+XiaofeiCao@users.noreply.github.com> Date: Thu, 6 Jan 2022 17:12:16 +0800 Subject: [PATCH] expose condition api (#26316) --- .../authorization/implementation/RoleAssignmentImpl.java | 5 +++++ .../resourcemanager/authorization/models/RoleAssignment.java | 3 +++ 2 files changed, 8 insertions(+) diff --git a/sdk/resourcemanager/azure-resourcemanager-authorization/src/main/java/com/azure/resourcemanager/authorization/implementation/RoleAssignmentImpl.java b/sdk/resourcemanager/azure-resourcemanager-authorization/src/main/java/com/azure/resourcemanager/authorization/implementation/RoleAssignmentImpl.java index ec1184fa977d2..37478ce3a9d43 100644 --- a/sdk/resourcemanager/azure-resourcemanager-authorization/src/main/java/com/azure/resourcemanager/authorization/implementation/RoleAssignmentImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-authorization/src/main/java/com/azure/resourcemanager/authorization/implementation/RoleAssignmentImpl.java @@ -141,6 +141,11 @@ public String principalId() { return innerModel().principalId(); } + @Override + public String condition() { + return innerModel().condition(); + } + @Override public RoleAssignmentImpl forObjectId(String objectId) { this.objectId = objectId; diff --git a/sdk/resourcemanager/azure-resourcemanager-authorization/src/main/java/com/azure/resourcemanager/authorization/models/RoleAssignment.java b/sdk/resourcemanager/azure-resourcemanager-authorization/src/main/java/com/azure/resourcemanager/authorization/models/RoleAssignment.java index 388dfa0df7ce2..163dc10ebf872 100644 --- a/sdk/resourcemanager/azure-resourcemanager-authorization/src/main/java/com/azure/resourcemanager/authorization/models/RoleAssignment.java +++ b/sdk/resourcemanager/azure-resourcemanager-authorization/src/main/java/com/azure/resourcemanager/authorization/models/RoleAssignment.java @@ -28,6 +28,9 @@ public interface RoleAssignment /** @return the principal ID */ String principalId(); + /** @return the condition */ + String condition(); + /************************************************************** * Fluent interfaces to provision an role assignment **************************************************************/