Interface SqlManagedInstancesClient
public interface SqlManagedInstancesClient
An instance of this class provides access to all the operations defined in SqlManagedInstancesClient.
-
Method Summary
Modifier and TypeMethodDescriptioncom.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<SqlManagedInstanceInner>,
SqlManagedInstanceInner> beginCreate
(String resourceGroupName, String sqlManagedInstanceName, SqlManagedInstanceInner sqlManagedInstance) Creates or replaces a SQL Managed Instance resource.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<SqlManagedInstanceInner>,
SqlManagedInstanceInner> beginCreate
(String resourceGroupName, String sqlManagedInstanceName, SqlManagedInstanceInner sqlManagedInstance, com.azure.core.util.Context context) Creates or replaces a SQL Managed Instance resource.beginDelete
(String resourceGroupName, String sqlManagedInstanceName) Deletes a SQL Managed Instance resource.beginDelete
(String resourceGroupName, String sqlManagedInstanceName, com.azure.core.util.Context context) Deletes a SQL Managed Instance resource.create
(String resourceGroupName, String sqlManagedInstanceName, SqlManagedInstanceInner sqlManagedInstance) Creates or replaces a SQL Managed Instance resource.create
(String resourceGroupName, String sqlManagedInstanceName, SqlManagedInstanceInner sqlManagedInstance, com.azure.core.util.Context context) Creates or replaces a SQL Managed Instance resource.void
Deletes a SQL Managed Instance resource.void
delete
(String resourceGroupName, String sqlManagedInstanceName, com.azure.core.util.Context context) Deletes a SQL Managed Instance resource.getByResourceGroup
(String resourceGroupName, String sqlManagedInstanceName) Retrieves a SQL Managed Instance resource.com.azure.core.http.rest.Response<SqlManagedInstanceInner>
getByResourceGroupWithResponse
(String resourceGroupName, String sqlManagedInstanceName, com.azure.core.util.Context context) Retrieves a SQL Managed Instance resource.com.azure.core.http.rest.PagedIterable<SqlManagedInstanceInner>
list()
List sqlManagedInstance resources in the subscription.com.azure.core.http.rest.PagedIterable<SqlManagedInstanceInner>
list
(com.azure.core.util.Context context) List sqlManagedInstance resources in the subscription.com.azure.core.http.rest.PagedIterable<SqlManagedInstanceInner>
listByResourceGroup
(String resourceGroupName) List sqlManagedInstance resources in the resource groupcom.azure.core.http.rest.PagedIterable<SqlManagedInstanceInner>
listByResourceGroup
(String resourceGroupName, com.azure.core.util.Context context) List sqlManagedInstance resources in the resource groupupdate
(String resourceGroupName, String sqlManagedInstanceName, SqlManagedInstanceUpdate parameters) Updates a SQL Managed Instance resource.com.azure.core.http.rest.Response<SqlManagedInstanceInner>
updateWithResponse
(String resourceGroupName, String sqlManagedInstanceName, SqlManagedInstanceUpdate parameters, com.azure.core.util.Context context) Updates a SQL Managed Instance resource.
-
Method Details
-
list
com.azure.core.http.rest.PagedIterable<SqlManagedInstanceInner> list()List sqlManagedInstance resources in the subscription.- Returns:
- a list of SqlManagedInstance 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
com.azure.core.http.rest.PagedIterable<SqlManagedInstanceInner> list(com.azure.core.util.Context context) List sqlManagedInstance resources in the subscription.- Parameters:
context
- The context to associate with this operation.- Returns:
- a list of SqlManagedInstance 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<SqlManagedInstanceInner> listByResourceGroup(String resourceGroupName) List sqlManagedInstance resources in the resource groupGets all sqlManagedInstances in a resource group.
- Parameters:
resourceGroupName
- The name of the Azure resource group.- Returns:
- all sqlManagedInstances 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<SqlManagedInstanceInner> listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context) List sqlManagedInstance resources in the resource groupGets all sqlManagedInstances in a resource group.
- Parameters:
resourceGroupName
- The name of the Azure resource group.context
- The context to associate with this operation.- Returns:
- all sqlManagedInstances 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.
-
getByResourceGroupWithResponse
com.azure.core.http.rest.Response<SqlManagedInstanceInner> getByResourceGroupWithResponse(String resourceGroupName, String sqlManagedInstanceName, com.azure.core.util.Context context) Retrieves a SQL Managed Instance resource.- Parameters:
resourceGroupName
- The name of the Azure resource group.sqlManagedInstanceName
- Name of SQL Managed Instance.context
- The context to associate with this operation.- Returns:
- a SqlManagedInstance 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
Retrieves a SQL Managed Instance resource.- Parameters:
resourceGroupName
- The name of the Azure resource group.sqlManagedInstanceName
- Name of SQL Managed Instance.- Returns:
- a SqlManagedInstance.
- 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.
-
beginCreate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<SqlManagedInstanceInner>,SqlManagedInstanceInner> beginCreate(String resourceGroupName, String sqlManagedInstanceName, SqlManagedInstanceInner sqlManagedInstance) Creates or replaces a SQL Managed Instance resource.- Parameters:
resourceGroupName
- The name of the Azure resource group.sqlManagedInstanceName
- The name of SQL Managed Instances.sqlManagedInstance
- The SQL Managed Instance to be created or updated.- Returns:
- the
SyncPoller
for polling of a SqlManagedInstance. - 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.
-
beginCreate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<SqlManagedInstanceInner>,SqlManagedInstanceInner> beginCreate(String resourceGroupName, String sqlManagedInstanceName, SqlManagedInstanceInner sqlManagedInstance, com.azure.core.util.Context context) Creates or replaces a SQL Managed Instance resource.- Parameters:
resourceGroupName
- The name of the Azure resource group.sqlManagedInstanceName
- The name of SQL Managed Instances.sqlManagedInstance
- The SQL Managed Instance to be created or updated.context
- The context to associate with this operation.- Returns:
- the
SyncPoller
for polling of a SqlManagedInstance. - 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.
-
create
SqlManagedInstanceInner create(String resourceGroupName, String sqlManagedInstanceName, SqlManagedInstanceInner sqlManagedInstance) Creates or replaces a SQL Managed Instance resource.- Parameters:
resourceGroupName
- The name of the Azure resource group.sqlManagedInstanceName
- The name of SQL Managed Instances.sqlManagedInstance
- The SQL Managed Instance to be created or updated.- Returns:
- a SqlManagedInstance.
- 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.
-
create
SqlManagedInstanceInner create(String resourceGroupName, String sqlManagedInstanceName, SqlManagedInstanceInner sqlManagedInstance, com.azure.core.util.Context context) Creates or replaces a SQL Managed Instance resource.- Parameters:
resourceGroupName
- The name of the Azure resource group.sqlManagedInstanceName
- The name of SQL Managed Instances.sqlManagedInstance
- The SQL Managed Instance to be created or updated.context
- The context to associate with this operation.- Returns:
- a SqlManagedInstance.
- 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.
-
beginDelete
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(String resourceGroupName, String sqlManagedInstanceName) Deletes a SQL Managed Instance resource.- Parameters:
resourceGroupName
- The name of the Azure resource group.sqlManagedInstanceName
- The name of Sql Managed Instances.- Returns:
- the
SyncPoller
for polling of long-running 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.
-
beginDelete
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(String resourceGroupName, String sqlManagedInstanceName, com.azure.core.util.Context context) Deletes a SQL Managed Instance resource.- Parameters:
resourceGroupName
- The name of the Azure resource group.sqlManagedInstanceName
- The name of Sql Managed Instances.context
- The context to associate with this operation.- Returns:
- the
SyncPoller
for polling of long-running 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.
-
delete
Deletes a SQL Managed Instance resource.- Parameters:
resourceGroupName
- The name of the Azure resource group.sqlManagedInstanceName
- The name of Sql Managed Instances.- 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 sqlManagedInstanceName, com.azure.core.util.Context context) Deletes a SQL Managed Instance resource.- Parameters:
resourceGroupName
- The name of the Azure resource group.sqlManagedInstanceName
- The name of Sql Managed Instances.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.
-
updateWithResponse
com.azure.core.http.rest.Response<SqlManagedInstanceInner> updateWithResponse(String resourceGroupName, String sqlManagedInstanceName, SqlManagedInstanceUpdate parameters, com.azure.core.util.Context context) Updates a SQL Managed Instance resource.- Parameters:
resourceGroupName
- The name of the Azure resource group.sqlManagedInstanceName
- Name of sqlManagedInstance.parameters
- The SQL Managed Instance.context
- The context to associate with this operation.- Returns:
- a SqlManagedInstance 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
SqlManagedInstanceInner update(String resourceGroupName, String sqlManagedInstanceName, SqlManagedInstanceUpdate parameters) Updates a SQL Managed Instance resource.- Parameters:
resourceGroupName
- The name of the Azure resource group.sqlManagedInstanceName
- Name of sqlManagedInstance.parameters
- The SQL Managed Instance.- Returns:
- a SqlManagedInstance.
- 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.
-