Interface Hubs
public interface Hubs
Resource collection API of Hubs.
-
Method Summary
Modifier and TypeMethodDescriptionBegins definition for a new Hub resource.void
Deletes the specified hub.void
deleteById
(String id) Deletes the specified hub.void
deleteByIdWithResponse
(String id, com.azure.core.util.Context context) Deletes the specified hub.void
deleteByResourceGroup
(String resourceGroupName, String hubName) Deletes the specified hub.Gets information about the specified hub.com.azure.core.http.rest.Response<Hub>
getByIdWithResponse
(String id, com.azure.core.util.Context context) Gets information about the specified hub.getByResourceGroup
(String resourceGroupName, String hubName) Gets information about the specified hub.com.azure.core.http.rest.Response<Hub>
getByResourceGroupWithResponse
(String resourceGroupName, String hubName, com.azure.core.util.Context context) Gets information about the specified hub.com.azure.core.http.rest.PagedIterable<Hub>
list()
Gets all hubs in the specified subscription.com.azure.core.http.rest.PagedIterable<Hub>
list
(com.azure.core.util.Context context) Gets all hubs in the specified subscription.com.azure.core.http.rest.PagedIterable<Hub>
listByResourceGroup
(String resourceGroupName) Gets all the hubs in a resource group.com.azure.core.http.rest.PagedIterable<Hub>
listByResourceGroup
(String resourceGroupName, com.azure.core.util.Context context) Gets all the hubs in a resource group.
-
Method Details
-
deleteByResourceGroup
Deletes the specified hub.- Parameters:
resourceGroupName
- The name of the resource group.hubName
- The name of 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.
-
delete
Deletes 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.- 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.
-
getByResourceGroupWithResponse
com.azure.core.http.rest.Response<Hub> getByResourceGroupWithResponse(String resourceGroupName, String hubName, com.azure.core.util.Context context) Gets information about 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:
- information about the specified 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.
-
getByResourceGroup
Gets information about the specified hub.- Parameters:
resourceGroupName
- The name of the resource group.hubName
- The name of the hub.- Returns:
- information about the specified 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.
-
listByResourceGroup
Gets all the hubs in a resource group.- Parameters:
resourceGroupName
- The name of the resource group.- Returns:
- all the hubs in a resource group 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.
-
listByResourceGroup
com.azure.core.http.rest.PagedIterable<Hub> listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context) Gets all the hubs in a resource group.- Parameters:
resourceGroupName
- The name of the resource group.context
- The context to associate with this operation.- Returns:
- all the hubs in a resource group 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.
-
list
com.azure.core.http.rest.PagedIterable<Hub> list()Gets all hubs in the specified subscription.- Returns:
- all hubs in the specified subscription as paginated response with
PagedIterable
. - Throws:
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.
-
list
Gets all hubs in the specified subscription.- Parameters:
context
- The context to associate with this operation.- Returns:
- all hubs in the specified subscription 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.
-
getById
Gets information about the specified hub.- Parameters:
id
- the resource ID.- Returns:
- information about the specified 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<Hub> getByIdWithResponse(String id, com.azure.core.util.Context context) Gets information about the specified hub.- Parameters:
id
- the resource ID.context
- The context to associate with this operation.- Returns:
- information about the specified 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 specified 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
Deletes the specified hub.- Parameters:
id
- the resource ID.context
- The context to associate with this operation.- 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 Hub resource.- Parameters:
name
- resource name.- Returns:
- the first stage of the new Hub definition.
-