Class SqlScriptAsyncClient

java.lang.Object
com.azure.analytics.synapse.artifacts.SqlScriptAsyncClient

public final class SqlScriptAsyncClient extends Object
Initializes a new instance of the asynchronous ArtifactsClient type.
  • Method Details

    • getSqlScriptsByWorkspace

      public com.azure.core.http.rest.PagedFlux<SqlScriptResource> getSqlScriptsByWorkspace()
      Lists sql scripts.
      Returns:
      a list of sql scripts resources as paginated response with PagedFlux.
      Throws:
      CloudErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • createOrUpdateSqlScriptWithResponse

      public Mono<com.azure.core.http.rest.Response<SqlScriptResource>> createOrUpdateSqlScriptWithResponse(String sqlScriptName, SqlScriptResource sqlScript, String ifMatch)
      Creates or updates a Sql Script.
      Parameters:
      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.
      Returns:
      sql Script resource type along with Response on successful completion of Mono.
      Throws:
      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.
    • createOrUpdateSqlScript

      public Mono<SqlScriptResource> createOrUpdateSqlScript(String sqlScriptName, SqlScriptResource sqlScript, String ifMatch)
      Creates or updates a Sql Script.
      Parameters:
      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.
      Returns:
      sql Script resource type on successful completion of Mono.
      Throws:
      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.
    • createOrUpdateSqlScript

      public Mono<SqlScriptResource> createOrUpdateSqlScript(String sqlScriptName, SqlScriptResource sqlScript)
      Creates or updates a Sql Script.
      Parameters:
      sqlScriptName - The sql script name.
      sqlScript - Sql Script resource definition.
      Returns:
      sql Script resource type on successful completion of Mono.
      Throws:
      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.
    • getSqlScriptWithResponse

      public Mono<com.azure.core.http.rest.Response<SqlScriptResource>> getSqlScriptWithResponse(String sqlScriptName, String ifNoneMatch)
      Gets a sql script.
      Parameters:
      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.
      Returns:
      a sql script along with Response on successful completion of Mono.
      Throws:
      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.
    • getSqlScript

      public Mono<SqlScriptResource> getSqlScript(String sqlScriptName, String ifNoneMatch)
      Gets a sql script.
      Parameters:
      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.
      Returns:
      a sql script on successful completion of Mono.
      Throws:
      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.
    • getSqlScript

      public Mono<SqlScriptResource> getSqlScript(String sqlScriptName)
      Gets a sql script.
      Parameters:
      sqlScriptName - The sql script name.
      Returns:
      a sql script on successful completion of Mono.
      Throws:
      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.
    • deleteSqlScriptWithResponse

      public Mono<com.azure.core.http.rest.Response<Void>> deleteSqlScriptWithResponse(String sqlScriptName)
      Deletes a Sql Script.
      Parameters:
      sqlScriptName - The sql script name.
      Returns:
      the Response on successful completion of Mono.
      Throws:
      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.
    • deleteSqlScript

      public Mono<Void> deleteSqlScript(String sqlScriptName)
      Deletes a Sql Script.
      Parameters:
      sqlScriptName - The sql script name.
      Returns:
      A Mono that completes when a successful response is received.
      Throws:
      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.
    • renameSqlScriptWithResponse

      public Mono<com.azure.core.http.rest.Response<Void>> renameSqlScriptWithResponse(String sqlScriptName, ArtifactRenameRequest request)
      Renames a sqlScript.
      Parameters:
      sqlScriptName - The sql script name.
      request - proposed new name.
      Returns:
      the Response on successful completion of Mono.
      Throws:
      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.
    • renameSqlScript

      public Mono<Void> renameSqlScript(String sqlScriptName, ArtifactRenameRequest request)
      Renames a sqlScript.
      Parameters:
      sqlScriptName - The sql script name.
      request - proposed new name.
      Returns:
      A Mono that completes when a successful response is received.
      Throws:
      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.