Interface ViewsClient


public interface ViewsClient
An instance of this class provides access to all the operations defined in ViewsClient.
  • Method Details

    • listByHub

      com.azure.core.http.rest.PagedIterable<ViewResourceFormatInner> listByHub(String resourceGroupName, String hubName, String userId)
      Gets all available views for given user in the specified hub.
      Parameters:
      resourceGroupName - The name of the resource group.
      hubName - The name of the hub.
      userId - The user ID. Use * to retrieve hub level views.
      Returns:
      all available views for given user in 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<ViewResourceFormatInner> listByHub(String resourceGroupName, String hubName, String userId, com.azure.core.util.Context context)
      Gets all available views for given user in the specified hub.
      Parameters:
      resourceGroupName - The name of the resource group.
      hubName - The name of the hub.
      userId - The user ID. Use * to retrieve hub level views.
      context - The context to associate with this operation.
      Returns:
      all available views for given user in 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.
    • createOrUpdateWithResponse

      com.azure.core.http.rest.Response<ViewResourceFormatInner> createOrUpdateWithResponse(String resourceGroupName, String hubName, String viewName, ViewResourceFormatInner parameters, com.azure.core.util.Context context)
      Creates a view or updates an existing view in the hub.
      Parameters:
      resourceGroupName - The name of the resource group.
      hubName - The name of the hub.
      viewName - The name of the view.
      parameters - Parameters supplied to the CreateOrUpdate View operation.
      context - The context to associate with this operation.
      Returns:
      the view resource format 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.
    • createOrUpdate

      ViewResourceFormatInner createOrUpdate(String resourceGroupName, String hubName, String viewName, ViewResourceFormatInner parameters)
      Creates a view or updates an existing view in the hub.
      Parameters:
      resourceGroupName - The name of the resource group.
      hubName - The name of the hub.
      viewName - The name of the view.
      parameters - Parameters supplied to the CreateOrUpdate View operation.
      Returns:
      the view resource format.
      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<ViewResourceFormatInner> getWithResponse(String resourceGroupName, String hubName, String viewName, String userId, com.azure.core.util.Context context)
      Gets a view in the hub.
      Parameters:
      resourceGroupName - The name of the resource group.
      hubName - The name of the hub.
      viewName - The name of the view.
      userId - The user ID. Use * to retrieve hub level view.
      context - The context to associate with this operation.
      Returns:
      a view 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

      ViewResourceFormatInner get(String resourceGroupName, String hubName, String viewName, String userId)
      Gets a view in the hub.
      Parameters:
      resourceGroupName - The name of the resource group.
      hubName - The name of the hub.
      viewName - The name of the view.
      userId - The user ID. Use * to retrieve hub level view.
      Returns:
      a view 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 viewName, String userId, com.azure.core.util.Context context)
      Deletes a view in the specified hub.
      Parameters:
      resourceGroupName - The name of the resource group.
      hubName - The name of the hub.
      viewName - The name of the view.
      userId - The user ID. Use * to retrieve hub level view.
      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

      void delete(String resourceGroupName, String hubName, String viewName, String userId)
      Deletes a view in the specified hub.
      Parameters:
      resourceGroupName - The name of the resource group.
      hubName - The name of the hub.
      viewName - The name of the view.
      userId - The user ID. Use * to retrieve hub level view.
      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.