public final class SqlScriptAsyncClient extends Object
Modifier and Type | Method and Description |
---|---|
Mono<SqlScriptResource> |
createOrUpdateSqlScript(String sqlScriptName,
SqlScriptResource sqlScript)
Creates or updates a Sql Script.
|
Mono<SqlScriptResource> |
createOrUpdateSqlScript(String sqlScriptName,
SqlScriptResource sqlScript,
String ifMatch)
Creates or updates a Sql Script.
|
Mono<com.azure.core.http.rest.Response<SqlScriptResource>> |
createOrUpdateSqlScriptWithResponse(String sqlScriptName,
SqlScriptResource sqlScript,
String ifMatch)
Creates or updates a Sql Script.
|
Mono<Void> |
deleteSqlScript(String sqlScriptName)
Deletes a Sql Script.
|
Mono<com.azure.core.http.rest.Response<Void>> |
deleteSqlScriptWithResponse(String sqlScriptName)
Deletes a Sql Script.
|
Mono<SqlScriptResource> |
getSqlScript(String sqlScriptName)
Gets a sql script.
|
Mono<SqlScriptResource> |
getSqlScript(String sqlScriptName,
String ifNoneMatch)
Gets a sql script.
|
com.azure.core.http.rest.PagedFlux<SqlScriptResource> |
getSqlScriptsByWorkspace()
Lists sql scripts.
|
Mono<com.azure.core.http.rest.PagedResponse<SqlScriptResource>> |
getSqlScriptsByWorkspaceNextSinglePage(String nextLink)
Get the next page of items.
|
Mono<com.azure.core.http.rest.PagedResponse<SqlScriptResource>> |
getSqlScriptsByWorkspaceSinglePage()
Lists sql scripts.
|
Mono<com.azure.core.http.rest.Response<SqlScriptResource>> |
getSqlScriptWithResponse(String sqlScriptName,
String ifNoneMatch)
Gets a sql script.
|
Mono<Void> |
renameSqlScript(String sqlScriptName,
ArtifactRenameRequest request)
Renames a sqlScript.
|
Mono<com.azure.core.http.rest.Response<Void>> |
renameSqlScriptWithResponse(String sqlScriptName,
ArtifactRenameRequest request)
Renames a sqlScript.
|
public Mono<com.azure.core.http.rest.PagedResponse<SqlScriptResource>> getSqlScriptsByWorkspaceSinglePage()
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.PagedFlux<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 Mono<com.azure.core.http.rest.Response<SqlScriptResource>> createOrUpdateSqlScriptWithResponse(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 Mono<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 Mono<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 Mono<com.azure.core.http.rest.Response<SqlScriptResource>> getSqlScriptWithResponse(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 Mono<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 Mono<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 Mono<com.azure.core.http.rest.Response<Void>> deleteSqlScriptWithResponse(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 Mono<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 Mono<com.azure.core.http.rest.Response<Void>> renameSqlScriptWithResponse(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 Mono<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 Mono<com.azure.core.http.rest.PagedResponse<SqlScriptResource>> getSqlScriptsByWorkspaceNextSinglePage(String nextLink)
nextLink
- The nextLink parameter.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.