com.azure.resourcemanager.eventhubs.models.EventHubDisasterRecoveryPairings Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-resourcemanager-eventhubs Show documentation
Show all versions of azure-resourcemanager-eventhubs Show documentation
This package contains Microsoft Azure EventHubs Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.resourcemanager.eventhubs.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.http.rest.PagedFlux;
import com.azure.core.http.rest.PagedIterable;
import com.azure.resourcemanager.resources.fluentcore.arm.collection.SupportsGettingById;
import com.azure.resourcemanager.resources.fluentcore.arm.models.HasManager;
import com.azure.resourcemanager.resources.fluentcore.collection.SupportsCreating;
import com.azure.resourcemanager.resources.fluentcore.collection.SupportsDeletingById;
import com.azure.resourcemanager.eventhubs.EventHubsManager;
import reactor.core.publisher.Mono;
/**
* Entry point to manage disaster recovery pairing of event hub namespaces.
*/
@Fluent
public interface EventHubDisasterRecoveryPairings extends
SupportsCreating,
SupportsDeletingById,
SupportsGettingById,
HasManager {
/**
* @return entry point to manage authorization rules of a disaster recovery pairing.
*/
DisasterRecoveryPairingAuthorizationRules authorizationRules();
/**
* Lists the disaster recovery pairings of a namespace under a resource group.
*
* @param resourceGroupName resource group name
* @param namespaceName namespace name
* @return list of disaster recovery pairings
*/
PagedIterable listByNamespace(String resourceGroupName, String namespaceName);
/**
* Lists the disaster recovery pairings of a namespace under a resource group.
*
* @param resourceGroupName resource group name
* @param namespaceName namespace name
* @return observable that emits disaster recovery pairings
*/
PagedFlux listByNamespaceAsync(String resourceGroupName, String namespaceName);
/**
* Gets a disaster recovery pairings of a namespace under a resource group.
*
* @param resourceGroupName resource group name
* @param namespaceName namespace name
* @param name disaster recovery pairing name
* @return observable that emits disaster recovery pairings
*/
Mono getByNameAsync(String resourceGroupName, String namespaceName, String name);
/**
* Gets a disaster recovery pairings of a namespace under a resource group.
*
* @param resourceGroupName resource group name
* @param namespaceName namespace name
* @param name disaster recovery pairing name
* @return the disaster recovery pairing
*/
EventHubDisasterRecoveryPairing getByName(String resourceGroupName, String namespaceName, String name);
/**
* Deletes a disaster recovery pairings of a namespace under a resource group.
*
* @param resourceGroupName resource group name
* @param namespaceName namespace name
* @param name disaster recovery pairing name
* @return the completable representing the task
*/
Mono deleteByNameAsync(String resourceGroupName, String namespaceName, String name);
/**
* Deletes a disaster recovery pairings of a namespace under a resource group.
*
* @param resourceGroupName resource group name
* @param namespaceName namespace name
* @param name disaster recovery pairing
*/
void deleteByName(String resourceGroupName, String namespaceName, String name);
}