com.azure.resourcemanager.apimanagement.fluent.NotificationRecipientUsersClient Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-resourcemanager-apimanagement Show documentation
Show all versions of azure-resourcemanager-apimanagement Show documentation
This package contains Microsoft Azure SDK for ApiManagement Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. ApiManagement Client. Package tag package-2022-08.
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.apimanagement.fluent;
import com.azure.core.annotation.ReturnType;
import com.azure.core.annotation.ServiceMethod;
import com.azure.core.http.rest.Response;
import com.azure.core.util.Context;
import com.azure.resourcemanager.apimanagement.fluent.models.RecipientUserCollectionInner;
import com.azure.resourcemanager.apimanagement.fluent.models.RecipientUserContractInner;
import com.azure.resourcemanager.apimanagement.models.NotificationName;
/**
* An instance of this class provides access to all the operations defined in NotificationRecipientUsersClient.
*/
public interface NotificationRecipientUsersClient {
/**
* Gets the list of the Notification Recipient User subscribed to the notification.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serviceName The name of the API Management service.
* @param notificationName Notification Name Identifier.
* @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 list of the Notification Recipient User subscribed to the notification along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response listByNotificationWithResponse(String resourceGroupName, String serviceName,
NotificationName notificationName, Context context);
/**
* Gets the list of the Notification Recipient User subscribed to the notification.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serviceName The name of the API Management service.
* @param notificationName Notification Name Identifier.
* @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 list of the Notification Recipient User subscribed to the notification.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
RecipientUserCollectionInner listByNotification(String resourceGroupName, String serviceName,
NotificationName notificationName);
/**
* Determine if the Notification Recipient User is subscribed to the notification.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serviceName The name of the API Management service.
* @param notificationName Notification Name Identifier.
* @param userId User identifier. Must be unique in the current API Management service instance.
* @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 whether resource exists along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response checkEntityExistsWithResponse(String resourceGroupName, String serviceName,
NotificationName notificationName, String userId, Context context);
/**
* Determine if the Notification Recipient User is subscribed to the notification.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serviceName The name of the API Management service.
* @param notificationName Notification Name Identifier.
* @param userId User identifier. Must be unique in the current API Management service instance.
* @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 whether resource exists.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
boolean checkEntityExists(String resourceGroupName, String serviceName, NotificationName notificationName,
String userId);
/**
* Adds the API Management User to the list of Recipients for the Notification.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serviceName The name of the API Management service.
* @param notificationName Notification Name Identifier.
* @param userId User identifier. Must be unique in the current API Management service instance.
* @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 recipient User details along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response createOrUpdateWithResponse(String resourceGroupName, String serviceName,
NotificationName notificationName, String userId, Context context);
/**
* Adds the API Management User to the list of Recipients for the Notification.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serviceName The name of the API Management service.
* @param notificationName Notification Name Identifier.
* @param userId User identifier. Must be unique in the current API Management service instance.
* @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 recipient User details.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
RecipientUserContractInner createOrUpdate(String resourceGroupName, String serviceName,
NotificationName notificationName, String userId);
/**
* Removes the API Management user from the list of Notification.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serviceName The name of the API Management service.
* @param notificationName Notification Name Identifier.
* @param userId User identifier. Must be unique in the current API Management service instance.
* @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 resourceGroupName, String serviceName, NotificationName notificationName,
String userId, Context context);
/**
* Removes the API Management user from the list of Notification.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serviceName The name of the API Management service.
* @param notificationName Notification Name Identifier.
* @param userId User identifier. Must be unique in the current API Management service instance.
* @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 resourceGroupName, String serviceName, NotificationName notificationName, String userId);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy