Interface RoleAssignments
public interface RoleAssignments
Resource collection API of RoleAssignments.
-
Method Summary
Modifier and TypeMethodDescriptionBegins definition for a new RoleAssignmentResourceFormat resource.void
Deletes the role assignment in the hub.void
deleteById
(String id) Deletes the role assignment in the hub.com.azure.core.http.rest.Response<Void>
deleteByIdWithResponse
(String id, com.azure.core.util.Context context) Deletes the role assignment in the hub.com.azure.core.http.rest.Response<Void>
deleteWithResponse
(String resourceGroupName, String hubName, String assignmentName, com.azure.core.util.Context context) Deletes the role assignment in the hub.Gets the role assignment in the hub.Gets the role assignment in the hub.com.azure.core.http.rest.Response<RoleAssignmentResourceFormat>
getByIdWithResponse
(String id, com.azure.core.util.Context context) Gets the role assignment in the hub.com.azure.core.http.rest.Response<RoleAssignmentResourceFormat>
getWithResponse
(String resourceGroupName, String hubName, String assignmentName, com.azure.core.util.Context context) Gets the role assignment in the hub.com.azure.core.http.rest.PagedIterable<RoleAssignmentResourceFormat>
Gets all the role assignments for the specified hub.com.azure.core.http.rest.PagedIterable<RoleAssignmentResourceFormat>
Gets all the role assignments for the specified hub.
-
Method Details
-
listByHub
com.azure.core.http.rest.PagedIterable<RoleAssignmentResourceFormat> listByHub(String resourceGroupName, String hubName) Gets all the role assignments for the specified hub.- Parameters:
resourceGroupName
- The name of the resource group.hubName
- The name of the hub.- Returns:
- all the role assignments for the specified hub as paginated response with
PagedIterable
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
listByHub
com.azure.core.http.rest.PagedIterable<RoleAssignmentResourceFormat> listByHub(String resourceGroupName, String hubName, com.azure.core.util.Context context) Gets all the role assignments for the specified hub.- Parameters:
resourceGroupName
- The name of the resource group.hubName
- The name of the hub.context
- The context to associate with this operation.- Returns:
- all the role assignments for the specified hub as paginated response with
PagedIterable
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getWithResponse
com.azure.core.http.rest.Response<RoleAssignmentResourceFormat> getWithResponse(String resourceGroupName, String hubName, String assignmentName, com.azure.core.util.Context context) Gets the role assignment in the hub.- Parameters:
resourceGroupName
- The name of the resource group.hubName
- The name of the hub.assignmentName
- The name of the role assignment.context
- The context to associate with this operation.- Returns:
- the role assignment in the hub along with
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
get
Gets the role assignment in the hub.- Parameters:
resourceGroupName
- The name of the resource group.hubName
- The name of the hub.assignmentName
- The name of the role assignment.- Returns:
- the role assignment in the hub.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
deleteWithResponse
com.azure.core.http.rest.Response<Void> deleteWithResponse(String resourceGroupName, String hubName, String assignmentName, com.azure.core.util.Context context) Deletes the role assignment in the hub.- Parameters:
resourceGroupName
- The name of the resource group.hubName
- The name of the hub.assignmentName
- The name of the role assignment.context
- The context to associate with this operation.- Returns:
- the
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
delete
Deletes the role assignment in the hub.- Parameters:
resourceGroupName
- The name of the resource group.hubName
- The name of the hub.assignmentName
- The name of the role assignment.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getById
Gets the role assignment in the hub.- Parameters:
id
- the resource ID.- Returns:
- the role assignment in the hub along with
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getByIdWithResponse
com.azure.core.http.rest.Response<RoleAssignmentResourceFormat> getByIdWithResponse(String id, com.azure.core.util.Context context) Gets the role assignment in the hub.- Parameters:
id
- the resource ID.context
- The context to associate with this operation.- Returns:
- the role assignment in the hub along with
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
deleteById
Deletes the role assignment in the hub.- Parameters:
id
- the resource ID.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
deleteByIdWithResponse
com.azure.core.http.rest.Response<Void> deleteByIdWithResponse(String id, com.azure.core.util.Context context) Deletes the role assignment in the hub.- Parameters:
id
- the resource ID.context
- The context to associate with this operation.- Returns:
- the
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
define
Begins definition for a new RoleAssignmentResourceFormat resource.- Parameters:
name
- resource name.- Returns:
- the first stage of the new RoleAssignmentResourceFormat definition.
-