Interface RoleAssignment.DefinitionStages.WithScope
-
- All Known Subinterfaces:
RoleAssignment.Definition
- Enclosing interface:
- RoleAssignment.DefinitionStages
public static interface RoleAssignment.DefinitionStages.WithScopeThe stage of role assignment definition allowing specifying the scope of the assignment.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RoleAssignment.DefinitionStages.WithCreatewithResourceGroupScope(ResourceGroup resourceGroup)Specifies the scope of the role assignment to be a resource group.RoleAssignment.DefinitionStages.WithCreatewithResourceScope(Resource resource)Specifies the scope of the role assignment to be a specific resource.RoleAssignment.DefinitionStages.WithCreatewithScope(String scope)Specifies the scope of the role assignment.RoleAssignment.DefinitionStages.WithCreatewithSubscriptionScope(String subscriptionId)Specifies the scope of the role assignment to be an entire subscription.
-
-
-
Method Detail
-
withScope
RoleAssignment.DefinitionStages.WithCreate withScope(String scope)
Specifies the scope of the role assignment. The scope is usually the ID of a subscription, a resource group, a resource, etc.- Parameters:
scope- the scope of the assignment- Returns:
- the next stage in role assignment definition
-
withResourceGroupScope
RoleAssignment.DefinitionStages.WithCreate withResourceGroupScope(ResourceGroup resourceGroup)
Specifies the scope of the role assignment to be a resource group.- Parameters:
resourceGroup- the resource group the assignee is assigned to access- Returns:
- the next stage in role assignment definition
-
withResourceScope
RoleAssignment.DefinitionStages.WithCreate withResourceScope(Resource resource)
Specifies the scope of the role assignment to be a specific resource.- Parameters:
resource- the resource the assignee is assigned to access- Returns:
- the next stage in role assignment definition
-
withSubscriptionScope
RoleAssignment.DefinitionStages.WithCreate withSubscriptionScope(String subscriptionId)
Specifies the scope of the role assignment to be an entire subscription.- Parameters:
subscriptionId- the subscription the assignee is assigned to access- Returns:
- the next stage in role assignment definition
-
-