GovernanceAssignmentsClient Interface

public interface GovernanceAssignmentsClient

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

Method Summary

Modifier and Type Method and Description
abstract GovernanceAssignmentInner createOrUpdate(String scope, String assessmentName, String assignmentKey, GovernanceAssignmentInner governanceAssignment)

Creates or updates a governance assignment on the given subscription.

abstract Response<GovernanceAssignmentInner> createOrUpdateWithResponse(String scope, String assessmentName, String assignmentKey, GovernanceAssignmentInner governanceAssignment, Context context)

Creates or updates a governance assignment on the given subscription.

abstract void delete(String scope, String assessmentName, String assignmentKey)

Delete a GovernanceAssignment over a given scope.

abstract Response<Void> deleteWithResponse(String scope, String assessmentName, String assignmentKey, Context context)

Delete a GovernanceAssignment over a given scope.

abstract GovernanceAssignmentInner get(String scope, String assessmentName, String assignmentKey)

Get a specific governanceAssignment for the requested scope by AssignmentKey.

abstract Response<GovernanceAssignmentInner> getWithResponse(String scope, String assessmentName, String assignmentKey, Context context)

Get a specific governanceAssignment for the requested scope by AssignmentKey.

abstract PagedIterable<GovernanceAssignmentInner> list(String scope, String assessmentName)

Get governance assignments on all of your resources inside a scope.

abstract PagedIterable<GovernanceAssignmentInner> list(String scope, String assessmentName, Context context)

Get governance assignments on all of your resources inside a scope.

Method Details

createOrUpdate

public abstract GovernanceAssignmentInner createOrUpdate(String scope, String assessmentName, String assignmentKey, GovernanceAssignmentInner governanceAssignment)

Creates or updates a governance assignment on the given subscription.

Parameters:

scope - The scope of the governance assignment.
assessmentName - The assessment key of the governance assignment.
assignmentKey - The governance assignment key.
governanceAssignment - Governance assignment over a subscription scope.

Returns:

governance assignment over a given scope.

createOrUpdateWithResponse

public abstract Response<GovernanceAssignmentInner> createOrUpdateWithResponse(String scope, String assessmentName, String assignmentKey, GovernanceAssignmentInner governanceAssignment, Context context)

Creates or updates a governance assignment on the given subscription.

Parameters:

scope - The scope of the governance assignment.
assessmentName - The assessment key of the governance assignment.
assignmentKey - The governance assignment key.
governanceAssignment - Governance assignment over a subscription scope.
context - The context to associate with this operation.

Returns:

governance assignment over a given scope along with Response<T>.

delete

public abstract void delete(String scope, String assessmentName, String assignmentKey)

Delete a GovernanceAssignment over a given scope.

Parameters:

scope - The scope of the governance assignment.
assessmentName - The assessment key of the governance assignment.
assignmentKey - The governance assignment key.

deleteWithResponse

public abstract Response<Void> deleteWithResponse(String scope, String assessmentName, String assignmentKey, Context context)

Delete a GovernanceAssignment over a given scope.

Parameters:

scope - The scope of the governance assignment.
assessmentName - The assessment key of the governance assignment.
assignmentKey - The governance assignment key.
context - The context to associate with this operation.

Returns:

get

public abstract GovernanceAssignmentInner get(String scope, String assessmentName, String assignmentKey)

Get a specific governanceAssignment for the requested scope by AssignmentKey.

Parameters:

scope - The scope of the governance assignment.
assessmentName - The assessment key of the governance assignment.
assignmentKey - The governance assignment key.

Returns:

a specific governanceAssignment for the requested scope by AssignmentKey.

getWithResponse

public abstract Response<GovernanceAssignmentInner> getWithResponse(String scope, String assessmentName, String assignmentKey, Context context)

Get a specific governanceAssignment for the requested scope by AssignmentKey.

Parameters:

scope - The scope of the governance assignment.
assessmentName - The assessment key of the governance assignment.
assignmentKey - The governance assignment key.
context - The context to associate with this operation.

Returns:

a specific governanceAssignment for the requested scope by AssignmentKey along with Response<T>.

list

public abstract PagedIterable<GovernanceAssignmentInner> list(String scope, String assessmentName)

Get governance assignments on all of your resources inside a scope.

Parameters:

scope - The scope of the governance assignment.
assessmentName - The assessment key of the governance assignment.

Returns:

governance assignments on all of your resources inside a scope as paginated response with PagedIterable<T>.

list

public abstract PagedIterable<GovernanceAssignmentInner> list(String scope, String assessmentName, Context context)

Get governance assignments on all of your resources inside a scope.

Parameters:

scope - The scope of the governance assignment.
assessmentName - The assessment key of the governance assignment.
context - The context to associate with this operation.

Returns:

governance assignments on all of your resources inside a scope as paginated response with PagedIterable<T>.

Applies to