Interface ScheduledQueryRulesClient
- All Superinterfaces:
InnerSupportsDelete<Void>,InnerSupportsGet<ScheduledQueryRuleResourceInner>,InnerSupportsListing<ScheduledQueryRuleResourceInner>
public interface ScheduledQueryRulesClient
extends InnerSupportsGet<ScheduledQueryRuleResourceInner>, InnerSupportsListing<ScheduledQueryRuleResourceInner>, InnerSupportsDelete<Void>
An instance of this class provides access to all the operations defined in ScheduledQueryRulesClient.
-
Method Summary
Modifier and TypeMethodDescriptioncreateOrUpdate(String resourceGroupName, String ruleName, ScheduledQueryRuleResourceInner parameters) Creates or updates a scheduled query rule.createOrUpdateAsync(String resourceGroupName, String ruleName, ScheduledQueryRuleResourceInner parameters) Creates or updates a scheduled query rule.com.azure.core.http.rest.Response<ScheduledQueryRuleResourceInner> createOrUpdateWithResponse(String resourceGroupName, String ruleName, ScheduledQueryRuleResourceInner parameters, com.azure.core.util.Context context) Creates or updates a scheduled query rule.Mono<com.azure.core.http.rest.Response<ScheduledQueryRuleResourceInner>> createOrUpdateWithResponseAsync(String resourceGroupName, String ruleName, ScheduledQueryRuleResourceInner parameters) Creates or updates a scheduled query rule.voidDeletes a scheduled query rule.deleteAsync(String resourceGroupName, String ruleName) Deletes a scheduled query rule.com.azure.core.http.rest.Response<Void> deleteWithResponse(String resourceGroupName, String ruleName, com.azure.core.util.Context context) Deletes a scheduled query rule.deleteWithResponseAsync(String resourceGroupName, String ruleName) Deletes a scheduled query rule.getByResourceGroup(String resourceGroupName, String ruleName) Retrieve an scheduled query rule definition.getByResourceGroupAsync(String resourceGroupName, String ruleName) Retrieve an scheduled query rule definition.com.azure.core.http.rest.Response<ScheduledQueryRuleResourceInner> getByResourceGroupWithResponse(String resourceGroupName, String ruleName, com.azure.core.util.Context context) Retrieve an scheduled query rule definition.Mono<com.azure.core.http.rest.Response<ScheduledQueryRuleResourceInner>> getByResourceGroupWithResponseAsync(String resourceGroupName, String ruleName) Retrieve an scheduled query rule definition.com.azure.core.http.rest.PagedIterable<ScheduledQueryRuleResourceInner> list()Retrieve a scheduled query rule definitions in a subscription.com.azure.core.http.rest.PagedIterable<ScheduledQueryRuleResourceInner> list(com.azure.core.util.Context context) Retrieve a scheduled query rule definitions in a subscription.com.azure.core.http.rest.PagedFlux<ScheduledQueryRuleResourceInner> Retrieve a scheduled query rule definitions in a subscription.com.azure.core.http.rest.PagedIterable<ScheduledQueryRuleResourceInner> listByResourceGroup(String resourceGroupName) Retrieve scheduled query rule definitions in a resource group.com.azure.core.http.rest.PagedIterable<ScheduledQueryRuleResourceInner> listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context) Retrieve scheduled query rule definitions in a resource group.com.azure.core.http.rest.PagedFlux<ScheduledQueryRuleResourceInner> listByResourceGroupAsync(String resourceGroupName) Retrieve scheduled query rule definitions in a resource group.update(String resourceGroupName, String ruleName, ScheduledQueryRuleResourcePatch parameters) Update a scheduled query rule.updateAsync(String resourceGroupName, String ruleName, ScheduledQueryRuleResourcePatch parameters) Update a scheduled query rule.com.azure.core.http.rest.Response<ScheduledQueryRuleResourceInner> updateWithResponse(String resourceGroupName, String ruleName, ScheduledQueryRuleResourcePatch parameters, com.azure.core.util.Context context) Update a scheduled query rule.Mono<com.azure.core.http.rest.Response<ScheduledQueryRuleResourceInner>> updateWithResponseAsync(String resourceGroupName, String ruleName, ScheduledQueryRuleResourcePatch parameters) Update a scheduled query rule.
-
Method Details
-
listAsync
com.azure.core.http.rest.PagedFlux<ScheduledQueryRuleResourceInner> listAsync()Retrieve a scheduled query rule definitions in a subscription.- Specified by:
listAsyncin interfaceInnerSupportsListing<ScheduledQueryRuleResourceInner>- Returns:
- represents a collection of scheduled query rule resources as paginated response with
PagedFlux. - Throws:
com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
list
com.azure.core.http.rest.PagedIterable<ScheduledQueryRuleResourceInner> list()Retrieve a scheduled query rule definitions in a subscription.- Specified by:
listin interfaceInnerSupportsListing<ScheduledQueryRuleResourceInner>- Returns:
- represents a collection of scheduled query rule resources as paginated response with
PagedIterable. - Throws:
com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
list
com.azure.core.http.rest.PagedIterable<ScheduledQueryRuleResourceInner> list(com.azure.core.util.Context context) Retrieve a scheduled query rule definitions in a subscription.- Parameters:
context- The context to associate with this operation.- Returns:
- represents a collection of scheduled query rule resources as paginated response with
PagedIterable. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
listByResourceGroupAsync
com.azure.core.http.rest.PagedFlux<ScheduledQueryRuleResourceInner> listByResourceGroupAsync(String resourceGroupName) Retrieve scheduled query rule definitions in a resource group.- Specified by:
listByResourceGroupAsyncin interfaceInnerSupportsListing<ScheduledQueryRuleResourceInner>- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.- Returns:
- represents a collection of scheduled query rule resources as paginated response with
PagedFlux. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
listByResourceGroup
com.azure.core.http.rest.PagedIterable<ScheduledQueryRuleResourceInner> listByResourceGroup(String resourceGroupName) Retrieve scheduled query rule definitions in a resource group.- Specified by:
listByResourceGroupin interfaceInnerSupportsListing<ScheduledQueryRuleResourceInner>- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.- Returns:
- represents a collection of scheduled query rule resources as paginated response with
PagedIterable. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
listByResourceGroup
com.azure.core.http.rest.PagedIterable<ScheduledQueryRuleResourceInner> listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context) Retrieve scheduled query rule definitions in a resource group.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.context- The context to associate with this operation.- Returns:
- represents a collection of scheduled query rule resources as paginated response with
PagedIterable. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
getByResourceGroupWithResponseAsync
Mono<com.azure.core.http.rest.Response<ScheduledQueryRuleResourceInner>> getByResourceGroupWithResponseAsync(String resourceGroupName, String ruleName) Retrieve an scheduled query rule definition.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.ruleName- The name of the rule.- Returns:
- the scheduled query rule resource along with
Responseon successful completion ofMono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
getByResourceGroupAsync
Mono<ScheduledQueryRuleResourceInner> getByResourceGroupAsync(String resourceGroupName, String ruleName) Retrieve an scheduled query rule definition.- Specified by:
getByResourceGroupAsyncin interfaceInnerSupportsGet<ScheduledQueryRuleResourceInner>- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.ruleName- The name of the rule.- Returns:
- the scheduled query rule resource on successful completion of
Mono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
getByResourceGroupWithResponse
com.azure.core.http.rest.Response<ScheduledQueryRuleResourceInner> getByResourceGroupWithResponse(String resourceGroupName, String ruleName, com.azure.core.util.Context context) Retrieve an scheduled query rule definition.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.ruleName- The name of the rule.context- The context to associate with this operation.- Returns:
- the scheduled query rule resource along with
Response. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
getByResourceGroup
Retrieve an scheduled query rule definition.- Specified by:
getByResourceGroupin interfaceInnerSupportsGet<ScheduledQueryRuleResourceInner>- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.ruleName- The name of the rule.- Returns:
- the scheduled query rule resource.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
createOrUpdateWithResponseAsync
Mono<com.azure.core.http.rest.Response<ScheduledQueryRuleResourceInner>> createOrUpdateWithResponseAsync(String resourceGroupName, String ruleName, ScheduledQueryRuleResourceInner parameters) Creates or updates a scheduled query rule.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.ruleName- The name of the rule.parameters- The parameters of the rule to create or update.- Returns:
- the scheduled query rule resource along with
Responseon successful completion ofMono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
createOrUpdateAsync
Mono<ScheduledQueryRuleResourceInner> createOrUpdateAsync(String resourceGroupName, String ruleName, ScheduledQueryRuleResourceInner parameters) Creates or updates a scheduled query rule.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.ruleName- The name of the rule.parameters- The parameters of the rule to create or update.- Returns:
- the scheduled query rule resource on successful completion of
Mono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
createOrUpdateWithResponse
com.azure.core.http.rest.Response<ScheduledQueryRuleResourceInner> createOrUpdateWithResponse(String resourceGroupName, String ruleName, ScheduledQueryRuleResourceInner parameters, com.azure.core.util.Context context) Creates or updates a scheduled query rule.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.ruleName- The name of the rule.parameters- The parameters of the rule to create or update.context- The context to associate with this operation.- Returns:
- the scheduled query rule resource along with
Response. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
createOrUpdate
ScheduledQueryRuleResourceInner createOrUpdate(String resourceGroupName, String ruleName, ScheduledQueryRuleResourceInner parameters) Creates or updates a scheduled query rule.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.ruleName- The name of the rule.parameters- The parameters of the rule to create or update.- Returns:
- the scheduled query rule resource.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
updateWithResponseAsync
Mono<com.azure.core.http.rest.Response<ScheduledQueryRuleResourceInner>> updateWithResponseAsync(String resourceGroupName, String ruleName, ScheduledQueryRuleResourcePatch parameters) Update a scheduled query rule.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.ruleName- The name of the rule.parameters- The parameters of the rule to update.- Returns:
- the scheduled query rule resource along with
Responseon successful completion ofMono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
updateAsync
Mono<ScheduledQueryRuleResourceInner> updateAsync(String resourceGroupName, String ruleName, ScheduledQueryRuleResourcePatch parameters) Update a scheduled query rule.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.ruleName- The name of the rule.parameters- The parameters of the rule to update.- Returns:
- the scheduled query rule resource on successful completion of
Mono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
updateWithResponse
com.azure.core.http.rest.Response<ScheduledQueryRuleResourceInner> updateWithResponse(String resourceGroupName, String ruleName, ScheduledQueryRuleResourcePatch parameters, com.azure.core.util.Context context) Update a scheduled query rule.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.ruleName- The name of the rule.parameters- The parameters of the rule to update.context- The context to associate with this operation.- Returns:
- the scheduled query rule resource along with
Response. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
update
ScheduledQueryRuleResourceInner update(String resourceGroupName, String ruleName, ScheduledQueryRuleResourcePatch parameters) Update a scheduled query rule.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.ruleName- The name of the rule.parameters- The parameters of the rule to update.- Returns:
- the scheduled query rule resource.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
deleteWithResponseAsync
Mono<com.azure.core.http.rest.Response<Void>> deleteWithResponseAsync(String resourceGroupName, String ruleName) Deletes a scheduled query rule.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.ruleName- The name of the rule.- Returns:
- the
Responseon successful completion ofMono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
deleteAsync
Deletes a scheduled query rule.- Specified by:
deleteAsyncin interfaceInnerSupportsDelete<Void>- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.ruleName- The name of the rule.- Returns:
- A
Monothat completes when a successful response is received. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
deleteWithResponse
com.azure.core.http.rest.Response<Void> deleteWithResponse(String resourceGroupName, String ruleName, com.azure.core.util.Context context) Deletes a scheduled query rule.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.ruleName- The name of the rule.context- The context to associate with this operation.- Returns:
- the
Response. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
delete
Deletes a scheduled query rule.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.ruleName- The name of the rule.- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-