Class KqlScriptAsyncClient
- java.lang.Object
-
- com.azure.analytics.synapse.artifacts.KqlScriptAsyncClient
-
public final class KqlScriptAsyncClient extends Object
Initializes a new instance of the asynchronous ArtifactsClient type.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Mono<KqlScriptResource>
createOrUpdate(String kqlScriptName, KqlScriptResource kqlScript)
Creates or updates a KQL Script.Mono<com.azure.core.http.rest.Response<KqlScriptResource>>
createOrUpdateWithResponse(String kqlScriptName, KqlScriptResource kqlScript)
Creates or updates a KQL Script.Mono<Void>
deleteByName(String kqlScriptName)
Delete KQL script by name.Mono<com.azure.core.http.rest.Response<Void>>
deleteByNameWithResponse(String kqlScriptName)
Delete KQL script by name.Mono<KqlScriptResource>
getByName(String kqlScriptName)
Get KQL script by name.Mono<com.azure.core.http.rest.Response<KqlScriptResource>>
getByNameWithResponse(String kqlScriptName)
Get KQL script by name.Mono<Void>
rename(String kqlScriptName, ArtifactRenameRequest renameRequest)
Rename KQL script.Mono<com.azure.core.http.rest.Response<Void>>
renameWithResponse(String kqlScriptName, ArtifactRenameRequest renameRequest)
Rename KQL script.
-
-
-
Method Detail
-
createOrUpdateWithResponse
public Mono<com.azure.core.http.rest.Response<KqlScriptResource>> createOrUpdateWithResponse(String kqlScriptName, KqlScriptResource kqlScript)
Creates or updates a KQL Script.- Parameters:
kqlScriptName
- KQL script name.kqlScript
- KQL script.- Returns:
- the response body along with
Response
on successful completion ofMono
. - 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.
-
createOrUpdate
public Mono<KqlScriptResource> createOrUpdate(String kqlScriptName, KqlScriptResource kqlScript)
Creates or updates a KQL Script.- Parameters:
kqlScriptName
- KQL script name.kqlScript
- KQL script.- Returns:
- the response body on successful completion of
Mono
. - 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.
-
getByNameWithResponse
public Mono<com.azure.core.http.rest.Response<KqlScriptResource>> getByNameWithResponse(String kqlScriptName)
Get KQL script by name.- Parameters:
kqlScriptName
- KQL script name.- Returns:
- kQL script by name along with
Response
on successful completion ofMono
. - 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.
-
getByName
public Mono<KqlScriptResource> getByName(String kqlScriptName)
Get KQL script by name.- Parameters:
kqlScriptName
- KQL script name.- Returns:
- kQL script by name on successful completion of
Mono
. - 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.
-
deleteByNameWithResponse
public Mono<com.azure.core.http.rest.Response<Void>> deleteByNameWithResponse(String kqlScriptName)
Delete KQL script by name.- Parameters:
kqlScriptName
- KQL script name.- Returns:
- the
Response
on successful completion ofMono
. - 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.
-
deleteByName
public Mono<Void> deleteByName(String kqlScriptName)
Delete KQL script by name.- Parameters:
kqlScriptName
- KQL script name.- Returns:
- A
Mono
that completes when a successful response is received. - 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.
-
renameWithResponse
public Mono<com.azure.core.http.rest.Response<Void>> renameWithResponse(String kqlScriptName, ArtifactRenameRequest renameRequest)
Rename KQL script.- Parameters:
kqlScriptName
- KQL script name.renameRequest
- Rename request.- Returns:
- the
Response
on successful completion ofMono
. - 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.
-
rename
public Mono<Void> rename(String kqlScriptName, ArtifactRenameRequest renameRequest)
Rename KQL script.- Parameters:
kqlScriptName
- KQL script name.renameRequest
- Rename request.- Returns:
- A
Mono
that completes when a successful response is received. - 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.
-
-