SqlScriptClient Class

  • java.lang.Object
    • com.azure.analytics.synapse.artifacts.SqlScriptClient

public final class SqlScriptClient

Initializes a new instance of the synchronous ArtifactsClient type.

Method Summary

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.

Response<SqlScriptResource> createOrUpdateSqlScriptWithResponse(String sqlScriptName, SqlScriptResource sqlScript, String ifMatch, Context context)

Creates or updates a Sql Script.

void deleteSqlScript(String sqlScriptName)

Deletes a Sql Script.

Response<Void> deleteSqlScriptWithResponse(String sqlScriptName, Context context)

Deletes a Sql Script.

SqlScriptResource getSqlScript(String sqlScriptName)

Gets a sql script.

SqlScriptResource getSqlScript(String sqlScriptName, String ifNoneMatch)

Gets a sql script.

PagedIterable<SqlScriptResource> getSqlScriptsByWorkspace()

Lists sql scripts.

PagedIterable<SqlScriptResource> getSqlScriptsByWorkspace(Context context)

Lists sql scripts.

Response<SqlScriptResource> getSqlScriptWithResponse(String sqlScriptName, String ifNoneMatch, Context context)

Gets a sql script.

void renameSqlScript(String sqlScriptName, ArtifactRenameRequest request)

Renames a sqlScript.

Response<Void> renameSqlScriptWithResponse(String sqlScriptName, ArtifactRenameRequest request, Context context)

Renames a sqlScript.

Methods inherited from java.lang.Object

Method Details

createOrUpdateSqlScript

public 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.

createOrUpdateSqlScript

public 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.

createOrUpdateSqlScriptWithResponse

public Response<SqlScriptResource> createOrUpdateSqlScriptWithResponse(String sqlScriptName, SqlScriptResource sqlScript, String ifMatch, Context context)

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.
context - The context to associate with this operation.

Returns:

sql Script resource type along with Response<T>.

deleteSqlScript

public void deleteSqlScript(String sqlScriptName)

Deletes a Sql Script.

Parameters:

sqlScriptName - The sql script name.

deleteSqlScriptWithResponse

public Response<Void> deleteSqlScriptWithResponse(String sqlScriptName, Context context)

Deletes a Sql Script.

Parameters:

sqlScriptName - The sql script name.
context - The context to associate with this operation.

Returns:

getSqlScript

public SqlScriptResource getSqlScript(String sqlScriptName)

Gets a sql script.

Parameters:

sqlScriptName - The sql script name.

Returns:

a sql script.

getSqlScript

public 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.

getSqlScriptsByWorkspace

public PagedIterable<SqlScriptResource> getSqlScriptsByWorkspace()

Lists sql scripts.

Returns:

a list of sql scripts resources as paginated response with PagedIterable<T>.

getSqlScriptsByWorkspace

public PagedIterable<SqlScriptResource> getSqlScriptsByWorkspace(Context context)

Lists sql scripts.

Parameters:

context - The context to associate with this operation.

Returns:

a list of sql scripts resources as paginated response with PagedIterable<T>.

getSqlScriptWithResponse

public Response<SqlScriptResource> getSqlScriptWithResponse(String sqlScriptName, String ifNoneMatch, Context context)

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.
context - The context to associate with this operation.

Returns:

a sql script along with Response<T>.

renameSqlScript

public void renameSqlScript(String sqlScriptName, ArtifactRenameRequest request)

Renames a sqlScript.

Parameters:

sqlScriptName - The sql script name.
request - proposed new name.

renameSqlScriptWithResponse

public Response<Void> renameSqlScriptWithResponse(String sqlScriptName, ArtifactRenameRequest request, Context context)

Renames a sqlScript.

Parameters:

sqlScriptName - The sql script name.
request - proposed new name.
context - The context to associate with this operation.

Returns:

Applies to