Interface ServicePrincipal.UpdateStages.WithRoleAssignment
-
- All Known Subinterfaces:
ServicePrincipal.Update
- Enclosing interface:
- ServicePrincipal.UpdateStages
public static interface ServicePrincipal.UpdateStages.WithRoleAssignmentA service principal update allowing role assignments to be added.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ServicePrincipal.UpdatewithNewRole(BuiltInRole role, String scope)Assigns a new role to the service principal.ServicePrincipal.UpdatewithNewRoleInResourceGroup(BuiltInRole role, ResourceGroup resourceGroup)Assigns a new role to the service principal.ServicePrincipal.UpdatewithNewRoleInSubscription(BuiltInRole role, String subscriptionId)Assigns a new role to the service principal.ServicePrincipal.UpdatewithoutRole(RoleAssignment roleAssignment)Removes a role from the service principal.
-
-
-
Method Detail
-
withNewRole
ServicePrincipal.Update withNewRole(BuiltInRole role, String scope)
Assigns a new role to the service principal.- Parameters:
role- the role to assign to the service principalscope- the scope the service principal can access- Returns:
- the next stage of the service principal update
-
withNewRoleInSubscription
ServicePrincipal.Update withNewRoleInSubscription(BuiltInRole role, String subscriptionId)
Assigns a new role to the service principal.- Parameters:
role- the role to assign to the service principalsubscriptionId- the subscription the service principal can access- Returns:
- the next stage of the service principal update
-
withNewRoleInResourceGroup
ServicePrincipal.Update withNewRoleInResourceGroup(BuiltInRole role, ResourceGroup resourceGroup)
Assigns a new role to the service principal.- Parameters:
role- the role to assign to the service principalresourceGroup- the resource group the service principal can access- Returns:
- the next stage of the service principal update
-
withoutRole
ServicePrincipal.Update withoutRole(RoleAssignment roleAssignment)
Removes a role from the service principal.- Parameters:
roleAssignment- the role assignment to remove- Returns:
- the next stage of the service principal update
-
-