public final class KqlScriptClient extends Object
Modifier and Type | Method and Description |
---|---|
KqlScriptResource |
createOrUpdate(String kqlScriptName,
KqlScriptResource kqlScript)
Creates or updates a KQL Script.
|
com.azure.core.http.rest.Response<KqlScriptResource> |
createOrUpdateWithResponse(String kqlScriptName,
KqlScriptResource kqlScript,
com.azure.core.util.Context context)
Creates or updates a KQL Script.
|
void |
deleteByName(String kqlScriptName)
Delete KQL script by name.
|
com.azure.core.http.rest.Response<Void> |
deleteByNameWithResponse(String kqlScriptName,
com.azure.core.util.Context context)
Delete KQL script by name.
|
KqlScriptResource |
getByName(String kqlScriptName)
Get KQL script by name.
|
com.azure.core.http.rest.Response<KqlScriptResource> |
getByNameWithResponse(String kqlScriptName,
com.azure.core.util.Context context)
Get KQL script by name.
|
void |
rename(String kqlScriptName,
ArtifactRenameRequest renameRequest)
Rename KQL script.
|
com.azure.core.http.rest.Response<Void> |
renameWithResponse(String kqlScriptName,
ArtifactRenameRequest renameRequest,
com.azure.core.util.Context context)
Rename KQL script.
|
public KqlScriptResource createOrUpdate(String kqlScriptName, KqlScriptResource kqlScript)
kqlScriptName
- KQL script name.kqlScript
- KQL script.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.public com.azure.core.http.rest.Response<KqlScriptResource> createOrUpdateWithResponse(String kqlScriptName, KqlScriptResource kqlScript, com.azure.core.util.Context context)
kqlScriptName
- KQL script name.kqlScript
- KQL script.context
- The context to associate with this operation.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.public KqlScriptResource getByName(String kqlScriptName)
kqlScriptName
- KQL script name.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.public com.azure.core.http.rest.Response<KqlScriptResource> getByNameWithResponse(String kqlScriptName, com.azure.core.util.Context context)
kqlScriptName
- KQL script name.context
- The context to associate with this operation.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.public void deleteByName(String kqlScriptName)
kqlScriptName
- KQL script name.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.public com.azure.core.http.rest.Response<Void> deleteByNameWithResponse(String kqlScriptName, com.azure.core.util.Context context)
kqlScriptName
- KQL script name.context
- The context to associate with this operation.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.public void rename(String kqlScriptName, ArtifactRenameRequest renameRequest)
kqlScriptName
- KQL script name.renameRequest
- Rename request.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.public com.azure.core.http.rest.Response<Void> renameWithResponse(String kqlScriptName, ArtifactRenameRequest renameRequest, com.azure.core.util.Context context)
kqlScriptName
- KQL script name.renameRequest
- Rename request.context
- The context to associate with this operation.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.Visit the Azure for Java Developers site for more Java documentation, including quick starts, tutorials, and code samples.