com.azure.resourcemanager.monitor.fluent.DiagnosticSettingsOperationsClient Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-resourcemanager-monitor Show documentation
Show all versions of azure-resourcemanager-monitor Show documentation
This package contains Microsoft Azure Monitor SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt
The newest version!
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.monitor.fluent;
import com.azure.core.annotation.ReturnType;
import com.azure.core.annotation.ServiceMethod;
import com.azure.core.http.rest.PagedFlux;
import com.azure.core.http.rest.PagedIterable;
import com.azure.core.http.rest.Response;
import com.azure.core.util.Context;
import com.azure.resourcemanager.monitor.fluent.models.DiagnosticSettingsResourceInner;
import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsDelete;
import reactor.core.publisher.Mono;
/**
* An instance of this class provides access to all the operations defined in DiagnosticSettingsOperationsClient.
*/
public interface DiagnosticSettingsOperationsClient extends InnerSupportsDelete {
/**
* Gets the active diagnostic settings for the specified resource.
*
* @param resourceUri The identifier of the resource.
* @param name The name of the diagnostic setting.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the active diagnostic settings for the specified resource along with {@link Response} on successful
* completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono> getWithResponseAsync(String resourceUri, String name);
/**
* Gets the active diagnostic settings for the specified resource.
*
* @param resourceUri The identifier of the resource.
* @param name The name of the diagnostic setting.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the active diagnostic settings for the specified resource on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono getAsync(String resourceUri, String name);
/**
* Gets the active diagnostic settings for the specified resource.
*
* @param resourceUri The identifier of the resource.
* @param name The name of the diagnostic setting.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the active diagnostic settings for the specified resource along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getWithResponse(String resourceUri, String name, Context context);
/**
* Gets the active diagnostic settings for the specified resource.
*
* @param resourceUri The identifier of the resource.
* @param name The name of the diagnostic setting.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the active diagnostic settings for the specified resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
DiagnosticSettingsResourceInner get(String resourceUri, String name);
/**
* Creates or updates diagnostic settings for the specified resource.
*
* @param resourceUri The identifier of the resource.
* @param name The name of the diagnostic setting.
* @param parameters Parameters supplied to the operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the diagnostic setting resource along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono> createOrUpdateWithResponseAsync(String resourceUri, String name,
DiagnosticSettingsResourceInner parameters);
/**
* Creates or updates diagnostic settings for the specified resource.
*
* @param resourceUri The identifier of the resource.
* @param name The name of the diagnostic setting.
* @param parameters Parameters supplied to the operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the diagnostic setting resource on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono createOrUpdateAsync(String resourceUri, String name,
DiagnosticSettingsResourceInner parameters);
/**
* Creates or updates diagnostic settings for the specified resource.
*
* @param resourceUri The identifier of the resource.
* @param name The name of the diagnostic setting.
* @param parameters Parameters supplied to the operation.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the diagnostic setting resource along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response createOrUpdateWithResponse(String resourceUri, String name,
DiagnosticSettingsResourceInner parameters, Context context);
/**
* Creates or updates diagnostic settings for the specified resource.
*
* @param resourceUri The identifier of the resource.
* @param name The name of the diagnostic setting.
* @param parameters Parameters supplied to the operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the diagnostic setting resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
DiagnosticSettingsResourceInner createOrUpdate(String resourceUri, String name,
DiagnosticSettingsResourceInner parameters);
/**
* Deletes existing diagnostic settings for the specified resource.
*
* @param resourceUri The identifier of the resource.
* @param name The name of the diagnostic setting.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono> deleteWithResponseAsync(String resourceUri, String name);
/**
* Deletes existing diagnostic settings for the specified resource.
*
* @param resourceUri The identifier of the resource.
* @param name The name of the diagnostic setting.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return A {@link Mono} that completes when a successful response is received.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono deleteAsync(String resourceUri, String name);
/**
* Deletes existing diagnostic settings for the specified resource.
*
* @param resourceUri The identifier of the resource.
* @param name The name of the diagnostic setting.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response deleteWithResponse(String resourceUri, String name, Context context);
/**
* Deletes existing diagnostic settings for the specified resource.
*
* @param resourceUri The identifier of the resource.
* @param name The name of the diagnostic setting.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
void delete(String resourceUri, String name);
/**
* Gets the active diagnostic settings list for the specified resource.
*
* @param resourceUri The identifier of the resource.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the active diagnostic settings list for the specified resource as paginated response with
* {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedFlux listAsync(String resourceUri);
/**
* Gets the active diagnostic settings list for the specified resource.
*
* @param resourceUri The identifier of the resource.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the active diagnostic settings list for the specified resource as paginated response with
* {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceUri);
/**
* Gets the active diagnostic settings list for the specified resource.
*
* @param resourceUri The identifier of the resource.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the active diagnostic settings list for the specified resource as paginated response with
* {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceUri, Context context);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy