ServicePrincipal.UpdateStages.WithRoleAssignment Interface
public interface WithRoleAssignment
A service principal update allowing role assignments to be added.
Method Summary
Modifier and Type | Method and Description |
---|---|
Service |
withNewRole(BuiltInRole role, String scope)
Assigns a new role to the service principal. |
Service |
withNewRoleInResourceGroup(BuiltInRole role, ResourceGroup resourceGroup)
Assigns a new role to the service principal. |
Service |
withNewRoleInSubscription(BuiltInRole role, String subscriptionId)
Assigns a new role to the service principal. |
Service |
withoutRole(RoleAssignment roleAssignment)
Removes a role from the service principal. |
Method Details
withNewRole
public Update withNewRole(BuiltInRole role, String scope)
Assigns a new role to the service principal.
Parameters:
Returns:
withNewRoleInResourceGroup
public Update withNewRoleInResourceGroup(BuiltInRole role, ResourceGroup resourceGroup)
Assigns a new role to the service principal.
Parameters:
Returns:
withNewRoleInSubscription
public Update withNewRoleInSubscription(BuiltInRole role, String subscriptionId)
Assigns a new role to the service principal.
Parameters:
Returns:
withoutRole
public Update withoutRole(RoleAssignment roleAssignment)
Removes a role from the service principal.
Parameters:
Returns:
Applies to
Azure SDK for Java