AssignmentsClient Interface

public interface AssignmentsClient

An instance of this class provides access to all the operations defined in AssignmentsClient.

Method Summary

Modifier and Type Method and Description
abstract AssignmentInner createOrUpdate(String resourceGroupName, String assignmentId, AssignmentInner assignment)

Create a security assignment on the given scope.

abstract Response<AssignmentInner> createOrUpdateWithResponse(String resourceGroupName, String assignmentId, AssignmentInner assignment, Context context)

Create a security assignment on the given scope.

abstract void delete(String resourceGroupName, String assignmentId)

Delete a standard assignment over a given scope.

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

Delete a standard assignment over a given scope.

abstract AssignmentInner getByResourceGroup(String resourceGroupName, String assignmentId)

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

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

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

abstract PagedIterable<AssignmentInner> list()

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

abstract PagedIterable<AssignmentInner> list(Context context)

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

abstract PagedIterable<AssignmentInner> listByResourceGroup(String resourceGroupName)

Get a list of all relevant standardAssignments available for scope.

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

Get a list of all relevant standardAssignments available for scope.

Method Details

createOrUpdate

public abstract AssignmentInner createOrUpdate(String resourceGroupName, String assignmentId, AssignmentInner assignment)

Create a security assignment on the given scope. Will create/update the required standard assignment.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
assignmentId - The security assignment key - unique key for the standard assignment.
assignment - Custom standard assignment over a pre-defined scope.

Returns:

security Assignment on a resource group over a given scope.

createOrUpdateWithResponse

public abstract Response<AssignmentInner> createOrUpdateWithResponse(String resourceGroupName, String assignmentId, AssignmentInner assignment, Context context)

Create a security assignment on the given scope. Will create/update the required standard assignment.

Parameters:

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

Returns:

security Assignment on a resource group over a given scope along with Response<T>.

delete

public abstract void delete(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.

deleteWithResponse

public abstract Response<Void> deleteWithResponse(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:

getByResourceGroup

public abstract AssignmentInner 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<AssignmentInner> 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<AssignmentInner> 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<AssignmentInner> 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<AssignmentInner> 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<AssignmentInner> 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