Class SqlPoolsClient
- java.lang.Object
-
- com.azure.analytics.synapse.artifacts.SqlPoolsClient
-
public final class SqlPoolsClient extends Object
Initializes a new instance of the synchronous ArtifactsClient type.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SqlPool
get(String sqlPoolName)
Get Sql Pool.com.azure.core.http.rest.Response<SqlPool>
getWithResponse(String sqlPoolName, com.azure.core.util.Context context)
Get Sql Pool.SqlPoolInfoListResult
list()
List Sql Pools.com.azure.core.http.rest.Response<SqlPoolInfoListResult>
listWithResponse(com.azure.core.util.Context context)
List Sql Pools.
-
-
-
Method Detail
-
list
public SqlPoolInfoListResult list()
List Sql Pools.- Returns:
- sQL pool collection.
- Throws:
ErrorContractException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
listWithResponse
public com.azure.core.http.rest.Response<SqlPoolInfoListResult> listWithResponse(com.azure.core.util.Context context)
List Sql Pools.- Parameters:
context
- The context to associate with this operation.- Returns:
- sQL pool collection along with
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.ErrorContractException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
get
public SqlPool get(String sqlPoolName)
Get Sql Pool.- Parameters:
sqlPoolName
- The Sql Pool name.- Returns:
- sql Pool.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.ErrorContractException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getWithResponse
public com.azure.core.http.rest.Response<SqlPool> getWithResponse(String sqlPoolName, com.azure.core.util.Context context)
Get Sql Pool.- Parameters:
sqlPoolName
- The Sql Pool name.context
- The context to associate with this operation.- Returns:
- sql Pool along with
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.ErrorContractException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
-