Interface SqlManagedInstances
public interface SqlManagedInstances
Resource collection API of SqlManagedInstances.
-
Method Summary
Modifier and TypeMethodDescriptionBegins definition for a new SqlManagedInstance resource.void
delete
(String resourceGroupName, String sqlManagedInstanceName, com.azure.core.util.Context context) Deletes a SQL Managed Instance resource.void
deleteById
(String id) Deletes a SQL Managed Instance resource.void
deleteByIdWithResponse
(String id, com.azure.core.util.Context context) Deletes a SQL Managed Instance resource.void
deleteByResourceGroup
(String resourceGroupName, String sqlManagedInstanceName) Deletes a SQL Managed Instance resource.Retrieves a SQL Managed Instance resource.com.azure.core.http.rest.Response<SqlManagedInstance>
getByIdWithResponse
(String id, com.azure.core.util.Context context) Retrieves a SQL Managed Instance resource.getByResourceGroup
(String resourceGroupName, String sqlManagedInstanceName) Retrieves a SQL Managed Instance resource.com.azure.core.http.rest.Response<SqlManagedInstance>
getByResourceGroupWithResponse
(String resourceGroupName, String sqlManagedInstanceName, com.azure.core.util.Context context) Retrieves a SQL Managed Instance resource.com.azure.core.http.rest.PagedIterable<SqlManagedInstance>
list()
List sqlManagedInstance resources in the subscription.com.azure.core.http.rest.PagedIterable<SqlManagedInstance>
list
(com.azure.core.util.Context context) List sqlManagedInstance resources in the subscription.com.azure.core.http.rest.PagedIterable<SqlManagedInstance>
listByResourceGroup
(String resourceGroupName) List sqlManagedInstance resources in the resource groupcom.azure.core.http.rest.PagedIterable<SqlManagedInstance>
listByResourceGroup
(String resourceGroupName, com.azure.core.util.Context context) List sqlManagedInstance resources in the resource group
-
Method Details
-
list
com.azure.core.http.rest.PagedIterable<SqlManagedInstance> 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<SqlManagedInstance> 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<SqlManagedInstance> 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<SqlManagedInstance> 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<SqlManagedInstance> 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.
-
deleteByResourceGroup
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.
-
getById
Retrieves a SQL Managed Instance resource.- Parameters:
id
- the resource ID.- 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.
-
getByIdWithResponse
com.azure.core.http.rest.Response<SqlManagedInstance> getByIdWithResponse(String id, com.azure.core.util.Context context) Retrieves a SQL Managed Instance resource.- Parameters:
id
- the resource ID.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.
-
deleteById
Deletes a SQL Managed Instance resource.- 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 SQL Managed Instance resource.- 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 SqlManagedInstance resource.- Parameters:
name
- resource name.- Returns:
- the first stage of the new SqlManagedInstance definition.
-