Interface WebPubSubHubs
public interface WebPubSubHubs
Resource collection API of WebPubSubHubs.
-
Method Summary
Modifier and TypeMethodDescriptionBegins definition for a new WebPubSubHub resource.void
Delete a hub setting.void
delete
(String hubName, String resourceGroupName, String resourceName, com.azure.core.util.Context context) Delete a hub setting.void
deleteById
(String id) Delete a hub setting.void
deleteByIdWithResponse
(String id, com.azure.core.util.Context context) Delete a hub setting.Get a hub setting.Get a hub setting.com.azure.core.http.rest.Response<WebPubSubHub>
getByIdWithResponse
(String id, com.azure.core.util.Context context) Get a hub setting.com.azure.core.http.rest.Response<WebPubSubHub>
getWithResponse
(String hubName, String resourceGroupName, String resourceName, com.azure.core.util.Context context) Get a hub setting.com.azure.core.http.rest.PagedIterable<WebPubSubHub>
List hub settings.com.azure.core.http.rest.PagedIterable<WebPubSubHub>
List hub settings.
-
Method Details
-
list
com.azure.core.http.rest.PagedIterable<WebPubSubHub> list(String resourceGroupName, String resourceName) List hub settings.- Parameters:
resourceGroupName
- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.resourceName
- The name of the resource.- Returns:
- hub setting list 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<WebPubSubHub> list(String resourceGroupName, String resourceName, com.azure.core.util.Context context) List hub settings.- Parameters:
resourceGroupName
- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.resourceName
- The name of the resource.context
- The context to associate with this operation.- Returns:
- hub setting list 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<WebPubSubHub> getWithResponse(String hubName, String resourceGroupName, String resourceName, com.azure.core.util.Context context) Get a hub setting.- Parameters:
hubName
- The hub name.resourceGroupName
- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.resourceName
- The name of the resource.context
- The context to associate with this operation.- Returns:
- a hub setting 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
Get a hub setting.- Parameters:
hubName
- The hub name.resourceGroupName
- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.resourceName
- The name of the resource.- Returns:
- a hub setting.
- 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
Delete a hub setting.- Parameters:
hubName
- The hub name.resourceGroupName
- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.resourceName
- The name of the resource.- 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 hubName, String resourceGroupName, String resourceName, com.azure.core.util.Context context) Delete a hub setting.- Parameters:
hubName
- The hub name.resourceGroupName
- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.resourceName
- The name of the resource.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.
-
getById
Get a hub setting.- Parameters:
id
- the resource ID.- Returns:
- a hub setting 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<WebPubSubHub> getByIdWithResponse(String id, com.azure.core.util.Context context) Get a hub setting.- Parameters:
id
- the resource ID.context
- The context to associate with this operation.- Returns:
- a hub setting 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
Delete a hub setting.- 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
Delete a hub setting.- 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 WebPubSubHub resource.- Parameters:
name
- resource name.- Returns:
- the first stage of the new WebPubSubHub definition.
-