Class KqlScriptAsyncClient
java.lang.Object
com.azure.analytics.synapse.artifacts.KqlScriptAsyncClient
Initializes a new instance of the asynchronous ArtifactsClient type.
-
Method Summary
Modifier and TypeMethodDescriptioncreateOrUpdate
(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.deleteByName
(String kqlScriptName) Delete KQL script by name.deleteByNameWithResponse
(String kqlScriptName) Delete KQL script by name.Get KQL script by name.Mono<com.azure.core.http.rest.Response<KqlScriptResource>>
getByNameWithResponse
(String kqlScriptName) Get KQL script by name.rename
(String kqlScriptName, ArtifactRenameRequest renameRequest) Rename KQL script.renameWithResponse
(String kqlScriptName, ArtifactRenameRequest renameRequest) Rename KQL script.
-
Method Details
-
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
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
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
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
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
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.
-