Class KqlScriptAsyncClient


  • public final class KqlScriptAsyncClient
    extends Object
    Initializes a new instance of the asynchronous ArtifactsClient type.
    • 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 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 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 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.
      • 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 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.