Assignments Interface

public interface Assignments

Resource collection API of Assignments.

Method Summary

Modifier and Type Method and Description
abstract Blank define(String name)

Begins definition for a new Assignment resource.

abstract void deleteById(String id)

Delete a standard assignment over a given scope.

abstract Response<Void> deleteByIdWithResponse(String id, Context context)

Delete a standard assignment over a given scope.

abstract void deleteByResourceGroup(String resourceGroupName, String assignmentId)

Delete a standard assignment over a given scope.

abstract Response<Void> deleteByResourceGroupWithResponse(String resourceGroupName, String assignmentId, Context context)

Delete a standard assignment over a given scope.

abstract Assignment getById(String id)

Get a specific standard assignment for the requested scope by resourceId.

abstract Response<Assignment> getByIdWithResponse(String id, Context context)

Get a specific standard assignment for the requested scope by resourceId.

abstract Assignment getByResourceGroup(String resourceGroupName, String assignmentId)

Get a specific standard assignment for the requested scope by resourceId.

abstract Response<Assignment> getByResourceGroupWithResponse(String resourceGroupName, String assignmentId, Context context)

Get a specific standard assignment for the requested scope by resourceId.

abstract PagedIterable<Assignment> list()

Get a list of all relevant standardAssignments over a subscription level scope.

abstract PagedIterable<Assignment> list(Context context)

Get a list of all relevant standardAssignments over a subscription level scope.

abstract PagedIterable<Assignment> listByResourceGroup(String resourceGroupName)

Get a list of all relevant standardAssignments available for scope.

abstract PagedIterable<Assignment> listByResourceGroup(String resourceGroupName, Context context)

Get a list of all relevant standardAssignments available for scope.

Method Details

define

public abstract Assignment.DefinitionStages.Blank define(String name)

Begins definition for a new Assignment resource.

Parameters:

name - resource name.

Returns:

the first stage of the new Assignment definition.

deleteById

public abstract void deleteById(String id)

Delete a standard assignment over a given scope.

Parameters:

id - the resource ID.

deleteByIdWithResponse

public abstract Response<Void> deleteByIdWithResponse(String id, Context context)

Delete a standard assignment over a given scope.

Parameters:

id - the resource ID.
context - The context to associate with this operation.

Returns:

deleteByResourceGroup

public abstract void deleteByResourceGroup(String resourceGroupName, String assignmentId)

Delete a standard assignment over a given scope.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
assignmentId - The security assignment key - unique key for the standard assignment.

deleteByResourceGroupWithResponse

public abstract Response<Void> deleteByResourceGroupWithResponse(String resourceGroupName, String assignmentId, Context context)

Delete a standard assignment over a given scope.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
assignmentId - The security assignment key - unique key for the standard assignment.
context - The context to associate with this operation.

Returns:

getById

public abstract Assignment getById(String id)

Get a specific standard assignment for the requested scope by resourceId.

Parameters:

id - the resource ID.

Returns:

a specific standard assignment for the requested scope by resourceId along with Response<T>.

getByIdWithResponse

public abstract Response<Assignment> getByIdWithResponse(String id, Context context)

Get a specific standard assignment for the requested scope by resourceId.

Parameters:

id - the resource ID.
context - The context to associate with this operation.

Returns:

a specific standard assignment for the requested scope by resourceId along with Response<T>.

getByResourceGroup

public abstract Assignment getByResourceGroup(String resourceGroupName, String assignmentId)

Get a specific standard assignment for the requested scope by resourceId.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
assignmentId - The security assignment key - unique key for the standard assignment.

Returns:

a specific standard assignment for the requested scope by resourceId.

getByResourceGroupWithResponse

public abstract Response<Assignment> getByResourceGroupWithResponse(String resourceGroupName, String assignmentId, Context context)

Get a specific standard assignment for the requested scope by resourceId.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
assignmentId - The security assignment key - unique key for the standard assignment.
context - The context to associate with this operation.

Returns:

a specific standard assignment for the requested scope by resourceId along with Response<T>.

list

public abstract PagedIterable<Assignment> list()

Get a list of all relevant standardAssignments over a subscription level scope.

Returns:

a list of all relevant standardAssignments over a subscription level scope as paginated response with PagedIterable<T>.

list

public abstract PagedIterable<Assignment> list(Context context)

Get a list of all relevant standardAssignments over a subscription level scope.

Parameters:

context - The context to associate with this operation.

Returns:

a list of all relevant standardAssignments over a subscription level scope as paginated response with PagedIterable<T>.

listByResourceGroup

public abstract PagedIterable<Assignment> listByResourceGroup(String resourceGroupName)

Get a list of all relevant standardAssignments available for scope.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.

Returns:

a list of all relevant standardAssignments available for scope as paginated response with PagedIterable<T>.

listByResourceGroup

public abstract PagedIterable<Assignment> listByResourceGroup(String resourceGroupName, Context context)

Get a list of all relevant standardAssignments available for scope.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
context - The context to associate with this operation.

Returns:

a list of all relevant standardAssignments available for scope as paginated response with PagedIterable<T>.

Applies to