Class KqlScriptClient


  • public final class KqlScriptClient
    extends Object
    Initializes a new instance of the synchronous ArtifactsClient type.
    • Method Detail

      • createOrUpdateWithResponse

        public com.azure.core.http.rest.Response<KqlScriptResource> createOrUpdateWithResponse​(String kqlScriptName,
                                                                                               KqlScriptResource kqlScript,
                                                                                               com.azure.core.util.Context context)
        Creates or updates a KQL Script.
        Parameters:
        kqlScriptName - KQL script name.
        kqlScript - KQL script.
        context - The context to associate with this operation.
        Returns:
        the response body along with Response.
        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 com.azure.core.http.rest.Response<KqlScriptResource> getByNameWithResponse​(String kqlScriptName,
                                                                                          com.azure.core.util.Context context)
        Get KQL script by name.
        Parameters:
        kqlScriptName - KQL script name.
        context - The context to associate with this operation.
        Returns:
        kQL script by name along with Response.
        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 void deleteByName​(String kqlScriptName)
        Delete KQL script by name.
        Parameters:
        kqlScriptName - KQL script name.
        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 com.azure.core.http.rest.Response<Void> deleteByNameWithResponse​(String kqlScriptName,
                                                                                com.azure.core.util.Context context)
        Delete KQL script by name.
        Parameters:
        kqlScriptName - KQL script name.
        context - The context to associate with this operation.
        Returns:
        the Response.
        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 com.azure.core.http.rest.Response<Void> renameWithResponse​(String kqlScriptName,
                                                                          ArtifactRenameRequest renameRequest,
                                                                          com.azure.core.util.Context context)
        Rename KQL script.
        Parameters:
        kqlScriptName - KQL script name.
        renameRequest - Rename request.
        context - The context to associate with this operation.
        Returns:
        the Response.
        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.