public interface Roles
Resource collection API of Roles.
  • Method Summary

    Modifier and Type
    Method
    Description
    com.azure.core.http.rest.PagedIterable<RoleResourceFormat>
    listByHub(String resourceGroupName, String hubName)
    Gets all the roles for the hub.
    com.azure.core.http.rest.PagedIterable<RoleResourceFormat>
    listByHub(String resourceGroupName, String hubName, com.azure.core.util.Context context)
    Gets all the roles for the hub.
  • Method Details

    • listByHub

      com.azure.core.http.rest.PagedIterable<RoleResourceFormat> listByHub(String resourceGroupName, String hubName)
      Gets all the roles for the hub.
      Parameters:
      resourceGroupName - The name of the resource group.
      hubName - The name of the hub.
      Returns:
      all the roles for the 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<RoleResourceFormat> listByHub(String resourceGroupName, String hubName, com.azure.core.util.Context context)
      Gets all the roles for the 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 roles for the 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.