Interface Connectors
public interface Connectors
Resource collection API of Connectors.
-
Method Summary
Modifier and TypeMethodDescriptionBegins definition for a new ConnectorResourceFormat resource.void
Deletes a connector in the hub.void
delete
(String resourceGroupName, String hubName, String connectorName, com.azure.core.util.Context context) Deletes a connector in the hub.void
deleteById
(String id) Deletes a connector in the hub.void
deleteByIdWithResponse
(String id, com.azure.core.util.Context context) Deletes a connector in the hub.Gets a connector in the hub.Gets a connector in the hub.com.azure.core.http.rest.Response<ConnectorResourceFormat>
getByIdWithResponse
(String id, com.azure.core.util.Context context) Gets a connector in the hub.com.azure.core.http.rest.Response<ConnectorResourceFormat>
getWithResponse
(String resourceGroupName, String hubName, String connectorName, com.azure.core.util.Context context) Gets a connector in the hub.com.azure.core.http.rest.PagedIterable<ConnectorResourceFormat>
Gets all the connectors in the specified hub.com.azure.core.http.rest.PagedIterable<ConnectorResourceFormat>
Gets all the connectors in the specified hub.
-
Method Details
-
getWithResponse
com.azure.core.http.rest.Response<ConnectorResourceFormat> getWithResponse(String resourceGroupName, String hubName, String connectorName, com.azure.core.util.Context context) Gets a connector in the hub.- Parameters:
resourceGroupName
- The name of the resource group.hubName
- The name of the hub.connectorName
- The name of the connector.context
- The context to associate with this operation.- Returns:
- a connector 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 connector in the hub.- Parameters:
resourceGroupName
- The name of the resource group.hubName
- The name of the hub.connectorName
- The name of the connector.- Returns:
- a connector 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.
-
delete
Deletes a connector in the hub.- Parameters:
resourceGroupName
- The name of the resource group.hubName
- The name of the hub.connectorName
- The name of the connector.- 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 connectorName, com.azure.core.util.Context context) Deletes a connector in the hub.- Parameters:
resourceGroupName
- The name of the resource group.hubName
- The name of the hub.connectorName
- The name of the connector.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.
-
listByHub
com.azure.core.http.rest.PagedIterable<ConnectorResourceFormat> listByHub(String resourceGroupName, String hubName) Gets all the connectors in the specified hub.- Parameters:
resourceGroupName
- The name of the resource group.hubName
- The name of the hub.- Returns:
- all the connectors 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<ConnectorResourceFormat> listByHub(String resourceGroupName, String hubName, com.azure.core.util.Context context) Gets all the connectors in 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:
- all the connectors 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.
-
getById
Gets a connector in the hub.- Parameters:
id
- the resource ID.- Returns:
- a connector 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.
-
getByIdWithResponse
com.azure.core.http.rest.Response<ConnectorResourceFormat> getByIdWithResponse(String id, com.azure.core.util.Context context) Gets a connector in the hub.- Parameters:
id
- the resource ID.context
- The context to associate with this operation.- Returns:
- a connector 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.
-
deleteById
Deletes a connector in the 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 a connector in the 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 ConnectorResourceFormat resource.- Parameters:
name
- resource name.- Returns:
- the first stage of the new ConnectorResourceFormat definition.
-