All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.azure.resourcemanager.eventhubs.models.EventHubs Maven / Gradle / Ivy

Go to download

This package contains Microsoft Azure EventHubs Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt

There is a newer version: 2.45.0
Show newest version
// 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.eventhubs.EventHubsManager;
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 reactor.core.publisher.Mono;

/**
 * Entry point to manage event hubs.
 */
@Fluent
public interface EventHubs extends
    SupportsCreating,
    SupportsDeletingById,
    SupportsGettingById,
    HasManager {
    /**
     * @return entry point to manage authorization rules of event hubs.
     */
    EventHubAuthorizationRules authorizationRules();

    /**
     * @return entry point to manage consumer group of event hubs.
     */

    EventHubConsumerGroups consumerGroups();
    /**
     * Lists the event hubs in a namespace under a resource group.
     *
     * @param resourceGroupName resource group name
     * @param namespaceName namespace name
     * @return list of event hubs
     */
    PagedIterable listByNamespace(String resourceGroupName, String namespaceName);

    /**
     * Lists the event hubs in a namespace under a resource group.
     *
     * @param resourceGroupName resource group name
     * @param namespaceName namespace name
     * @return observable that emits the event hubs
     */
    PagedFlux listByNamespaceAsync(String resourceGroupName, String namespaceName);

    /**
     * Gets an event hub in a namespace under a resource group.
     *
     * @param resourceGroupName resource group name
     * @param namespaceName namespace name
     * @param name event hub name
     * @return observable that emits the event hubs
     */
    Mono getByNameAsync(String resourceGroupName, String namespaceName, String name);

    /**
     * Gets an event hub in a namespace under a resource group.
     *
     * @param resourceGroupName resource group name
     * @param namespaceName namespace name
     * @param name event hub name
     * @return the event hubs
     */
    EventHub getByName(String resourceGroupName, String namespaceName, String name);

    /**
     * Deletes an event hub in a namespace under a resource group.
     *
     * @param resourceGroupName resource group name
     * @param namespaceName namespace name
     * @param name event hub name
     * @return the completable representing the task
     */
    Mono deleteByNameAsync(String resourceGroupName, String namespaceName, String name);

    /**
     * Deletes an event hub in a namespace under a resource group.
     *
     * @param resourceGroupName resource group name
     * @param namespaceName namespace name
     * @param name event hub name
     */
    void deleteByName(String resourceGroupName, String namespaceName, String name);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy