public final class SqlScriptClient extends Object
Modifier and Type | Method and Description |
---|---|
SqlScriptResource |
createOrUpdateSqlScript(String sqlScriptName,
SqlScriptResource sqlScript)
Creates or updates a Sql Script.
|
SqlScriptResource |
createOrUpdateSqlScript(String sqlScriptName,
SqlScriptResource sqlScript,
String ifMatch)
Creates or updates a Sql Script.
|
com.azure.core.http.rest.Response<SqlScriptResource> |
createOrUpdateSqlScriptWithResponse(String sqlScriptName,
SqlScriptResource sqlScript,
String ifMatch,
com.azure.core.util.Context context)
Creates or updates a Sql Script.
|
void |
deleteSqlScript(String sqlScriptName)
Deletes a Sql Script.
|
com.azure.core.http.rest.Response<Void> |
deleteSqlScriptWithResponse(String sqlScriptName,
com.azure.core.util.Context context)
Deletes a Sql Script.
|
SqlScriptResource |
getSqlScript(String sqlScriptName)
Gets a sql script.
|
SqlScriptResource |
getSqlScript(String sqlScriptName,
String ifNoneMatch)
Gets a sql script.
|
com.azure.core.http.rest.PagedIterable<SqlScriptResource> |
getSqlScriptsByWorkspace()
Lists sql scripts.
|
com.azure.core.http.rest.PagedIterable<SqlScriptResource> |
getSqlScriptsByWorkspace(com.azure.core.util.Context context)
Lists sql scripts.
|
com.azure.core.http.rest.Response<SqlScriptResource> |
getSqlScriptWithResponse(String sqlScriptName,
String ifNoneMatch,
com.azure.core.util.Context context)
Gets a sql script.
|
void |
renameSqlScript(String sqlScriptName,
ArtifactRenameRequest request)
Renames a sqlScript.
|
com.azure.core.http.rest.Response<Void> |
renameSqlScriptWithResponse(String sqlScriptName,
ArtifactRenameRequest request,
com.azure.core.util.Context context)
Renames a sqlScript.
|
public com.azure.core.http.rest.PagedIterable<SqlScriptResource> getSqlScriptsByWorkspace()
CloudErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.public com.azure.core.http.rest.PagedIterable<SqlScriptResource> getSqlScriptsByWorkspace(com.azure.core.util.Context context)
context
- The context to associate with this operation.IllegalArgumentException
- thrown if parameters fail the validation.CloudErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.public SqlScriptResource createOrUpdateSqlScript(String sqlScriptName, SqlScriptResource sqlScript, String ifMatch)
sqlScriptName
- The sql script name.sqlScript
- Sql Script resource definition.ifMatch
- ETag of the SQL script entity. Should only be specified for update, for which it should match
existing entity or can be * for unconditional update.IllegalArgumentException
- thrown if parameters fail the validation.CloudErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.public SqlScriptResource createOrUpdateSqlScript(String sqlScriptName, SqlScriptResource sqlScript)
sqlScriptName
- The sql script name.sqlScript
- Sql Script resource definition.IllegalArgumentException
- thrown if parameters fail the validation.CloudErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.public com.azure.core.http.rest.Response<SqlScriptResource> createOrUpdateSqlScriptWithResponse(String sqlScriptName, SqlScriptResource sqlScript, String ifMatch, com.azure.core.util.Context context)
sqlScriptName
- The sql script name.sqlScript
- Sql Script resource definition.ifMatch
- ETag of the SQL script entity. Should only be specified for update, for which it should match
existing entity or can be * for unconditional update.context
- The context to associate with this operation.IllegalArgumentException
- thrown if parameters fail the validation.CloudErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.public SqlScriptResource getSqlScript(String sqlScriptName, String ifNoneMatch)
sqlScriptName
- The sql script name.ifNoneMatch
- ETag of the sql compute entity. Should only be specified for get. If the ETag matches the
existing entity tag, or if * was provided, then no content will be returned.IllegalArgumentException
- thrown if parameters fail the validation.CloudErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.public SqlScriptResource getSqlScript(String sqlScriptName)
sqlScriptName
- The sql script name.IllegalArgumentException
- thrown if parameters fail the validation.CloudErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.public com.azure.core.http.rest.Response<SqlScriptResource> getSqlScriptWithResponse(String sqlScriptName, String ifNoneMatch, com.azure.core.util.Context context)
sqlScriptName
- The sql script name.ifNoneMatch
- ETag of the sql compute entity. Should only be specified for get. If the ETag matches the
existing entity tag, or if * was provided, then no content will be returned.context
- The context to associate with this operation.IllegalArgumentException
- thrown if parameters fail the validation.CloudErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.public void deleteSqlScript(String sqlScriptName)
sqlScriptName
- The sql script name.IllegalArgumentException
- thrown if parameters fail the validation.CloudErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.public com.azure.core.http.rest.Response<Void> deleteSqlScriptWithResponse(String sqlScriptName, com.azure.core.util.Context context)
sqlScriptName
- The sql script name.context
- The context to associate with this operation.IllegalArgumentException
- thrown if parameters fail the validation.CloudErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.public void renameSqlScript(String sqlScriptName, ArtifactRenameRequest request)
sqlScriptName
- The sql script name.request
- proposed new name.IllegalArgumentException
- thrown if parameters fail the validation.CloudErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.public com.azure.core.http.rest.Response<Void> renameSqlScriptWithResponse(String sqlScriptName, ArtifactRenameRequest request, com.azure.core.util.Context context)
sqlScriptName
- The sql script name.request
- proposed new name.context
- The context to associate with this operation.IllegalArgumentException
- thrown if parameters fail the validation.CloudErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.Copyright © 2021 Microsoft Corporation. All rights reserved.