Interface Views
public interface Views
Resource collection API of Views.
-
Method Summary
Modifier and TypeMethodDescriptionBegins definition for a new ViewResourceFormat resource.void
Deletes a view in the specified hub.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.Gets a view in the hub.com.azure.core.http.rest.Response<ViewResourceFormat>
getWithResponse
(String resourceGroupName, String hubName, String viewName, String userId, com.azure.core.util.Context context) Gets a view in the hub.com.azure.core.http.rest.PagedIterable<ViewResourceFormat>
Gets all available views for given user in the specified hub.com.azure.core.http.rest.PagedIterable<ViewResourceFormat>
listByHub
(String resourceGroupName, String hubName, String userId, com.azure.core.util.Context context) Gets all available views for given user in the specified hub.
-
Method Details
-
listByHub
com.azure.core.http.rest.PagedIterable<ViewResourceFormat> 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<ViewResourceFormat> 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.
-
getWithResponse
com.azure.core.http.rest.Response<ViewResourceFormat> 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
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
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.
-
define
Begins definition for a new ViewResourceFormat resource.- Parameters:
name
- resource name.- Returns:
- the first stage of the new ViewResourceFormat definition.
-