Interface ConnectionsClient
public interface ConnectionsClient
An instance of this class provides access to all the operations defined in ConnectionsClient.
-
Method Summary
Modifier and TypeMethodDescriptioncreateOrUpdate
(String resourceGroupName, String automationAccountName, String connectionName, ConnectionCreateOrUpdateParameters parameters) Create or update a connection.com.azure.core.http.rest.Response<ConnectionInner>
createOrUpdateWithResponse
(String resourceGroupName, String automationAccountName, String connectionName, ConnectionCreateOrUpdateParameters parameters, com.azure.core.util.Context context) Create or update a connection.void
Delete the connection.com.azure.core.http.rest.Response<Void>
deleteWithResponse
(String resourceGroupName, String automationAccountName, String connectionName, com.azure.core.util.Context context) Delete the connection.Retrieve the connection identified by connection name.com.azure.core.http.rest.Response<ConnectionInner>
getWithResponse
(String resourceGroupName, String automationAccountName, String connectionName, com.azure.core.util.Context context) Retrieve the connection identified by connection name.com.azure.core.http.rest.PagedIterable<ConnectionInner>
listByAutomationAccount
(String resourceGroupName, String automationAccountName) Retrieve a list of connections.com.azure.core.http.rest.PagedIterable<ConnectionInner>
listByAutomationAccount
(String resourceGroupName, String automationAccountName, com.azure.core.util.Context context) Retrieve a list of connections.update
(String resourceGroupName, String automationAccountName, String connectionName, ConnectionUpdateParameters parameters) Update a connection.com.azure.core.http.rest.Response<ConnectionInner>
updateWithResponse
(String resourceGroupName, String automationAccountName, String connectionName, ConnectionUpdateParameters parameters, com.azure.core.util.Context context) Update a connection.
-
Method Details
-
delete
Delete the connection.- Parameters:
resourceGroupName
- Name of an Azure Resource group.automationAccountName
- The name of the automation account.connectionName
- The name of connection.- 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 automationAccountName, String connectionName, com.azure.core.util.Context context) Delete the connection.- Parameters:
resourceGroupName
- Name of an Azure Resource group.automationAccountName
- The name of the automation account.connectionName
- The name of connection.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.
-
get
Retrieve the connection identified by connection name.- Parameters:
resourceGroupName
- Name of an Azure Resource group.automationAccountName
- The name of the automation account.connectionName
- The name of connection.- Returns:
- definition of the connection.
- 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<ConnectionInner> getWithResponse(String resourceGroupName, String automationAccountName, String connectionName, com.azure.core.util.Context context) Retrieve the connection identified by connection name.- Parameters:
resourceGroupName
- Name of an Azure Resource group.automationAccountName
- The name of the automation account.connectionName
- The name of connection.context
- The context to associate with this operation.- Returns:
- definition of the connection 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
ConnectionInner createOrUpdate(String resourceGroupName, String automationAccountName, String connectionName, ConnectionCreateOrUpdateParameters parameters) Create or update a connection.- Parameters:
resourceGroupName
- Name of an Azure Resource group.automationAccountName
- The name of the automation account.connectionName
- The parameters supplied to the create or update connection operation.parameters
- The parameters supplied to the create or update connection operation.- Returns:
- definition of the connection.
- 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<ConnectionInner> createOrUpdateWithResponse(String resourceGroupName, String automationAccountName, String connectionName, ConnectionCreateOrUpdateParameters parameters, com.azure.core.util.Context context) Create or update a connection.- Parameters:
resourceGroupName
- Name of an Azure Resource group.automationAccountName
- The name of the automation account.connectionName
- The parameters supplied to the create or update connection operation.parameters
- The parameters supplied to the create or update connection operation.context
- The context to associate with this operation.- Returns:
- definition of the connection 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.
-
update
ConnectionInner update(String resourceGroupName, String automationAccountName, String connectionName, ConnectionUpdateParameters parameters) Update a connection.- Parameters:
resourceGroupName
- Name of an Azure Resource group.automationAccountName
- The name of the automation account.connectionName
- The parameters supplied to the update a connection operation.parameters
- The parameters supplied to the update a connection operation.- Returns:
- definition of the connection.
- 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.
-
updateWithResponse
com.azure.core.http.rest.Response<ConnectionInner> updateWithResponse(String resourceGroupName, String automationAccountName, String connectionName, ConnectionUpdateParameters parameters, com.azure.core.util.Context context) Update a connection.- Parameters:
resourceGroupName
- Name of an Azure Resource group.automationAccountName
- The name of the automation account.connectionName
- The parameters supplied to the update a connection operation.parameters
- The parameters supplied to the update a connection operation.context
- The context to associate with this operation.- Returns:
- definition of the connection 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.
-
listByAutomationAccount
com.azure.core.http.rest.PagedIterable<ConnectionInner> listByAutomationAccount(String resourceGroupName, String automationAccountName) Retrieve a list of connections.- Parameters:
resourceGroupName
- Name of an Azure Resource group.automationAccountName
- The name of the automation account.- Returns:
- the response model for the list connection operation 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.
-
listByAutomationAccount
com.azure.core.http.rest.PagedIterable<ConnectionInner> listByAutomationAccount(String resourceGroupName, String automationAccountName, com.azure.core.util.Context context) Retrieve a list of connections.- Parameters:
resourceGroupName
- Name of an Azure Resource group.automationAccountName
- The name of the automation account.context
- The context to associate with this operation.- Returns:
- the response model for the list connection operation 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.
-