com.azure.resourcemanager.eventhubs.fluent.NamespacesClient 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.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.eventhubs.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.management.polling.PollResult;
import com.azure.core.util.Context;
import com.azure.core.util.polling.PollerFlux;
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.eventhubs.fluent.models.AccessKeysInner;
import com.azure.resourcemanager.eventhubs.fluent.models.AuthorizationRuleInner;
import com.azure.resourcemanager.eventhubs.fluent.models.CheckNameAvailabilityResultInner;
import com.azure.resourcemanager.eventhubs.fluent.models.EHNamespaceInner;
import com.azure.resourcemanager.eventhubs.fluent.models.NetworkRuleSetInner;
import com.azure.resourcemanager.eventhubs.fluent.models.NetworkRuleSetListResultInner;
import com.azure.resourcemanager.eventhubs.models.CheckNameAvailabilityParameter;
import com.azure.resourcemanager.eventhubs.models.RegenerateAccessKeyParameters;
import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsDelete;
import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsGet;
import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsListing;
import java.nio.ByteBuffer;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
/** An instance of this class provides access to all the operations defined in NamespacesClient. */
public interface NamespacesClient
extends InnerSupportsGet, InnerSupportsListing, InnerSupportsDelete {
/**
* Lists all the available Namespaces within a subscription, irrespective of the resource groups.
*
* @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 response of the List Namespace operation.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedFlux listAsync();
/**
* Lists all the available Namespaces within a subscription, irrespective of the resource groups.
*
* @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 response of the List Namespace operation.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list();
/**
* Lists all the available Namespaces within a subscription, irrespective of the resource groups.
*
* @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 response of the List Namespace operation.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(Context context);
/**
* Lists the available Namespaces within a resource group.
*
* @param resourceGroupName Name of the resource group within the azure subscription.
* @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 response of the List Namespace operation.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedFlux listByResourceGroupAsync(String resourceGroupName);
/**
* Lists the available Namespaces within a resource group.
*
* @param resourceGroupName Name of the resource group within the azure subscription.
* @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 response of the List Namespace operation.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(String resourceGroupName);
/**
* Lists the available Namespaces within a resource group.
*
* @param resourceGroupName Name of the resource group within the azure subscription.
* @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 response of the List Namespace operation.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(String resourceGroupName, Context context);
/**
* Creates or updates a namespace. Once created, this namespace's resource manifest is immutable. This operation is
* idempotent.
*
* @param resourceGroupName Name of the resource group within the azure subscription.
* @param namespaceName The Namespace name.
* @param parameters Parameters for creating a namespace 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 single Namespace item in List or Get Operation.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono>> createOrUpdateWithResponseAsync(
String resourceGroupName, String namespaceName, EHNamespaceInner parameters);
/**
* Creates or updates a namespace. Once created, this namespace's resource manifest is immutable. This operation is
* idempotent.
*
* @param resourceGroupName Name of the resource group within the azure subscription.
* @param namespaceName The Namespace name.
* @param parameters Parameters for creating a namespace 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 single Namespace item in List or Get Operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
PollerFlux, EHNamespaceInner> beginCreateOrUpdateAsync(
String resourceGroupName, String namespaceName, EHNamespaceInner parameters);
/**
* Creates or updates a namespace. Once created, this namespace's resource manifest is immutable. This operation is
* idempotent.
*
* @param resourceGroupName Name of the resource group within the azure subscription.
* @param namespaceName The Namespace name.
* @param parameters Parameters for creating a namespace 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 single Namespace item in List or Get Operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, EHNamespaceInner> beginCreateOrUpdate(
String resourceGroupName, String namespaceName, EHNamespaceInner parameters);
/**
* Creates or updates a namespace. Once created, this namespace's resource manifest is immutable. This operation is
* idempotent.
*
* @param resourceGroupName Name of the resource group within the azure subscription.
* @param namespaceName The Namespace name.
* @param parameters Parameters for creating a namespace 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 single Namespace item in List or Get Operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, EHNamespaceInner> beginCreateOrUpdate(
String resourceGroupName, String namespaceName, EHNamespaceInner parameters, Context context);
/**
* Creates or updates a namespace. Once created, this namespace's resource manifest is immutable. This operation is
* idempotent.
*
* @param resourceGroupName Name of the resource group within the azure subscription.
* @param namespaceName The Namespace name.
* @param parameters Parameters for creating a namespace 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 single Namespace item in List or Get Operation.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono createOrUpdateAsync(
String resourceGroupName, String namespaceName, EHNamespaceInner parameters);
/**
* Creates or updates a namespace. Once created, this namespace's resource manifest is immutable. This operation is
* idempotent.
*
* @param resourceGroupName Name of the resource group within the azure subscription.
* @param namespaceName The Namespace name.
* @param parameters Parameters for creating a namespace 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 single Namespace item in List or Get Operation.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
EHNamespaceInner createOrUpdate(String resourceGroupName, String namespaceName, EHNamespaceInner parameters);
/**
* Creates or updates a namespace. Once created, this namespace's resource manifest is immutable. This operation is
* idempotent.
*
* @param resourceGroupName Name of the resource group within the azure subscription.
* @param namespaceName The Namespace name.
* @param parameters Parameters for creating a namespace 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 single Namespace item in List or Get Operation.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
EHNamespaceInner createOrUpdate(
String resourceGroupName, String namespaceName, EHNamespaceInner parameters, Context context);
/**
* Deletes an existing namespace. This operation also removes all associated resources under the namespace.
*
* @param resourceGroupName Name of the resource group within the azure subscription.
* @param namespaceName The Namespace name.
* @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 completion.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono>> deleteWithResponseAsync(String resourceGroupName, String namespaceName);
/**
* Deletes an existing namespace. This operation also removes all associated resources under the namespace.
*
* @param resourceGroupName Name of the resource group within the azure subscription.
* @param namespaceName The Namespace name.
* @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 completion.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String namespaceName);
/**
* Deletes an existing namespace. This operation also removes all associated resources under the namespace.
*
* @param resourceGroupName Name of the resource group within the azure subscription.
* @param namespaceName The Namespace name.
* @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 completion.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(String resourceGroupName, String namespaceName);
/**
* Deletes an existing namespace. This operation also removes all associated resources under the namespace.
*
* @param resourceGroupName Name of the resource group within the azure subscription.
* @param namespaceName The Namespace name.
* @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 completion.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(String resourceGroupName, String namespaceName, Context context);
/**
* Deletes an existing namespace. This operation also removes all associated resources under the namespace.
*
* @param resourceGroupName Name of the resource group within the azure subscription.
* @param namespaceName The Namespace name.
* @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 completion.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono deleteAsync(String resourceGroupName, String namespaceName);
/**
* Deletes an existing namespace. This operation also removes all associated resources under the namespace.
*
* @param resourceGroupName Name of the resource group within the azure subscription.
* @param namespaceName The Namespace name.
* @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 namespaceName);
/**
* Deletes an existing namespace. This operation also removes all associated resources under the namespace.
*
* @param resourceGroupName Name of the resource group within the azure subscription.
* @param namespaceName The Namespace name.
* @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.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
void delete(String resourceGroupName, String namespaceName, Context context);
/**
* Gets the description of the specified namespace.
*
* @param resourceGroupName Name of the resource group within the azure subscription.
* @param namespaceName The Namespace name.
* @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 description of the specified namespace.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono> getByResourceGroupWithResponseAsync(
String resourceGroupName, String namespaceName);
/**
* Gets the description of the specified namespace.
*
* @param resourceGroupName Name of the resource group within the azure subscription.
* @param namespaceName The Namespace name.
* @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 description of the specified namespace.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono getByResourceGroupAsync(String resourceGroupName, String namespaceName);
/**
* Gets the description of the specified namespace.
*
* @param resourceGroupName Name of the resource group within the azure subscription.
* @param namespaceName The Namespace name.
* @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 description of the specified namespace.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
EHNamespaceInner getByResourceGroup(String resourceGroupName, String namespaceName);
/**
* Gets the description of the specified namespace.
*
* @param resourceGroupName Name of the resource group within the azure subscription.
* @param namespaceName The Namespace name.
* @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 description of the specified namespace.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getByResourceGroupWithResponse(
String resourceGroupName, String namespaceName, Context context);
/**
* Creates or updates a namespace. Once created, this namespace's resource manifest is immutable. This operation is
* idempotent.
*
* @param resourceGroupName Name of the resource group within the azure subscription.
* @param namespaceName The Namespace name.
* @param parameters Parameters for updating a namespace 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 single Namespace item in List or Get Operation.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono> updateWithResponseAsync(
String resourceGroupName, String namespaceName, EHNamespaceInner parameters);
/**
* Creates or updates a namespace. Once created, this namespace's resource manifest is immutable. This operation is
* idempotent.
*
* @param resourceGroupName Name of the resource group within the azure subscription.
* @param namespaceName The Namespace name.
* @param parameters Parameters for updating a namespace 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 single Namespace item in List or Get Operation.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono updateAsync(String resourceGroupName, String namespaceName, EHNamespaceInner parameters);
/**
* Creates or updates a namespace. Once created, this namespace's resource manifest is immutable. This operation is
* idempotent.
*
* @param resourceGroupName Name of the resource group within the azure subscription.
* @param namespaceName The Namespace name.
* @param parameters Parameters for updating a namespace 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 single Namespace item in List or Get Operation.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
EHNamespaceInner update(String resourceGroupName, String namespaceName, EHNamespaceInner parameters);
/**
* Creates or updates a namespace. Once created, this namespace's resource manifest is immutable. This operation is
* idempotent.
*
* @param resourceGroupName Name of the resource group within the azure subscription.
* @param namespaceName The Namespace name.
* @param parameters Parameters for updating a namespace 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 single Namespace item in List or Get Operation.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response updateWithResponse(
String resourceGroupName, String namespaceName, EHNamespaceInner parameters, Context context);
/**
* Create or update NetworkRuleSet for a Namespace.
*
* @param resourceGroupName Name of the resource group within the azure subscription.
* @param namespaceName The Namespace name.
* @param parameters The Namespace IpFilterRule.
* @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 description of topic resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono> createOrUpdateNetworkRuleSetWithResponseAsync(
String resourceGroupName, String namespaceName, NetworkRuleSetInner parameters);
/**
* Create or update NetworkRuleSet for a Namespace.
*
* @param resourceGroupName Name of the resource group within the azure subscription.
* @param namespaceName The Namespace name.
* @param parameters The Namespace IpFilterRule.
* @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 description of topic resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono createOrUpdateNetworkRuleSetAsync(
String resourceGroupName, String namespaceName, NetworkRuleSetInner parameters);
/**
* Create or update NetworkRuleSet for a Namespace.
*
* @param resourceGroupName Name of the resource group within the azure subscription.
* @param namespaceName The Namespace name.
* @param parameters The Namespace IpFilterRule.
* @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 description of topic resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
NetworkRuleSetInner createOrUpdateNetworkRuleSet(
String resourceGroupName, String namespaceName, NetworkRuleSetInner parameters);
/**
* Create or update NetworkRuleSet for a Namespace.
*
* @param resourceGroupName Name of the resource group within the azure subscription.
* @param namespaceName The Namespace name.
* @param parameters The Namespace IpFilterRule.
* @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 description of topic resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response createOrUpdateNetworkRuleSetWithResponse(
String resourceGroupName, String namespaceName, NetworkRuleSetInner parameters, Context context);
/**
* Gets NetworkRuleSet for a Namespace.
*
* @param resourceGroupName Name of the resource group within the azure subscription.
* @param namespaceName The Namespace name.
* @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 networkRuleSet for a Namespace.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono> getNetworkRuleSetWithResponseAsync(
String resourceGroupName, String namespaceName);
/**
* Gets NetworkRuleSet for a Namespace.
*
* @param resourceGroupName Name of the resource group within the azure subscription.
* @param namespaceName The Namespace name.
* @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 networkRuleSet for a Namespace.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono getNetworkRuleSetAsync(String resourceGroupName, String namespaceName);
/**
* Gets NetworkRuleSet for a Namespace.
*
* @param resourceGroupName Name of the resource group within the azure subscription.
* @param namespaceName The Namespace name.
* @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 networkRuleSet for a Namespace.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
NetworkRuleSetInner getNetworkRuleSet(String resourceGroupName, String namespaceName);
/**
* Gets NetworkRuleSet for a Namespace.
*
* @param resourceGroupName Name of the resource group within the azure subscription.
* @param namespaceName The Namespace name.
* @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 networkRuleSet for a Namespace.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getNetworkRuleSetWithResponse(
String resourceGroupName, String namespaceName, Context context);
/**
* Gets NetworkRuleSet for a Namespace.
*
* @param resourceGroupName Name of the resource group within the azure subscription.
* @param namespaceName The Namespace name.
* @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 networkRuleSet for a Namespace.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono> listNetworkRuleSetWithResponseAsync(
String resourceGroupName, String namespaceName);
/**
* Gets NetworkRuleSet for a Namespace.
*
* @param resourceGroupName Name of the resource group within the azure subscription.
* @param namespaceName The Namespace name.
* @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 networkRuleSet for a Namespace.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono listNetworkRuleSetAsync(String resourceGroupName, String namespaceName);
/**
* Gets NetworkRuleSet for a Namespace.
*
* @param resourceGroupName Name of the resource group within the azure subscription.
* @param namespaceName The Namespace name.
* @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 networkRuleSet for a Namespace.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
NetworkRuleSetListResultInner listNetworkRuleSet(String resourceGroupName, String namespaceName);
/**
* Gets NetworkRuleSet for a Namespace.
*
* @param resourceGroupName Name of the resource group within the azure subscription.
* @param namespaceName The Namespace name.
* @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 networkRuleSet for a Namespace.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response listNetworkRuleSetWithResponse(
String resourceGroupName, String namespaceName, Context context);
/**
* Gets a list of authorization rules for a Namespace.
*
* @param resourceGroupName Name of the resource group within the azure subscription.
* @param namespaceName The Namespace name.
* @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 list of authorization rules for a Namespace.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedFlux listAuthorizationRulesAsync(String resourceGroupName, String namespaceName);
/**
* Gets a list of authorization rules for a Namespace.
*
* @param resourceGroupName Name of the resource group within the azure subscription.
* @param namespaceName The Namespace name.
* @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 list of authorization rules for a Namespace.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listAuthorizationRules(String resourceGroupName, String namespaceName);
/**
* Gets a list of authorization rules for a Namespace.
*
* @param resourceGroupName Name of the resource group within the azure subscription.
* @param namespaceName The Namespace name.
* @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 a list of authorization rules for a Namespace.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listAuthorizationRules(
String resourceGroupName, String namespaceName, Context context);
/**
* Creates or updates an AuthorizationRule for a Namespace.
*
* @param resourceGroupName Name of the resource group within the azure subscription.
* @param namespaceName The Namespace name.
* @param authorizationRuleName The authorization rule name.
* @param parameters The shared access AuthorizationRule.
* @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 single item in a List or Get AuthorizationRule operation.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono> createOrUpdateAuthorizationRuleWithResponseAsync(
String resourceGroupName,
String namespaceName,
String authorizationRuleName,
AuthorizationRuleInner parameters);
/**
* Creates or updates an AuthorizationRule for a Namespace.
*
* @param resourceGroupName Name of the resource group within the azure subscription.
* @param namespaceName The Namespace name.
* @param authorizationRuleName The authorization rule name.
* @param parameters The shared access AuthorizationRule.
* @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 single item in a List or Get AuthorizationRule operation.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono createOrUpdateAuthorizationRuleAsync(
String resourceGroupName,
String namespaceName,
String authorizationRuleName,
AuthorizationRuleInner parameters);
/**
* Creates or updates an AuthorizationRule for a Namespace.
*
* @param resourceGroupName Name of the resource group within the azure subscription.
* @param namespaceName The Namespace name.
* @param authorizationRuleName The authorization rule name.
* @param parameters The shared access AuthorizationRule.
* @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 single item in a List or Get AuthorizationRule operation.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
AuthorizationRuleInner createOrUpdateAuthorizationRule(
String resourceGroupName,
String namespaceName,
String authorizationRuleName,
AuthorizationRuleInner parameters);
/**
* Creates or updates an AuthorizationRule for a Namespace.
*
* @param resourceGroupName Name of the resource group within the azure subscription.
* @param namespaceName The Namespace name.
* @param authorizationRuleName The authorization rule name.
* @param parameters The shared access AuthorizationRule.
* @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 single item in a List or Get AuthorizationRule operation.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response createOrUpdateAuthorizationRuleWithResponse(
String resourceGroupName,
String namespaceName,
String authorizationRuleName,
AuthorizationRuleInner parameters,
Context context);
/**
* Deletes an AuthorizationRule for a Namespace.
*
* @param resourceGroupName Name of the resource group within the azure subscription.
* @param namespaceName The Namespace name.
* @param authorizationRuleName The authorization rule name.
* @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 completion.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono> deleteAuthorizationRuleWithResponseAsync(
String resourceGroupName, String namespaceName, String authorizationRuleName);
/**
* Deletes an AuthorizationRule for a Namespace.
*
* @param resourceGroupName Name of the resource group within the azure subscription.
* @param namespaceName The Namespace name.
* @param authorizationRuleName The authorization rule name.
* @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 completion.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono deleteAuthorizationRuleAsync(
String resourceGroupName, String namespaceName, String authorizationRuleName);
/**
* Deletes an AuthorizationRule for a Namespace.
*
* @param resourceGroupName Name of the resource group within the azure subscription.
* @param namespaceName The Namespace name.
* @param authorizationRuleName The authorization rule name.
* @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 deleteAuthorizationRule(String resourceGroupName, String namespaceName, String authorizationRuleName);
/**
* Deletes an AuthorizationRule for a Namespace.
*
* @param resourceGroupName Name of the resource group within the azure subscription.
* @param namespaceName The Namespace name.
* @param authorizationRuleName The authorization rule name.
* @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 response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response deleteAuthorizationRuleWithResponse(
String resourceGroupName, String namespaceName, String authorizationRuleName, Context context);
/**
* Gets an AuthorizationRule for a Namespace by rule name.
*
* @param resourceGroupName Name of the resource group within the azure subscription.
* @param namespaceName The Namespace name.
* @param authorizationRuleName The authorization rule name.
* @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 an AuthorizationRule for a Namespace by rule name.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono> getAuthorizationRuleWithResponseAsync(
String resourceGroupName, String namespaceName, String authorizationRuleName);
/**
* Gets an AuthorizationRule for a Namespace by rule name.
*
* @param resourceGroupName Name of the resource group within the azure subscription.
* @param namespaceName The Namespace name.
* @param authorizationRuleName The authorization rule name.
* @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 an AuthorizationRule for a Namespace by rule name.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono getAuthorizationRuleAsync(
String resourceGroupName, String namespaceName, String authorizationRuleName);
/**
* Gets an AuthorizationRule for a Namespace by rule name.
*
* @param resourceGroupName Name of the resource group within the azure subscription.
* @param namespaceName The Namespace name.
* @param authorizationRuleName The authorization rule name.
* @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 an AuthorizationRule for a Namespace by rule name.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
AuthorizationRuleInner getAuthorizationRule(
String resourceGroupName, String namespaceName, String authorizationRuleName);
/**
* Gets an AuthorizationRule for a Namespace by rule name.
*
* @param resourceGroupName Name of the resource group within the azure subscription.
* @param namespaceName The Namespace name.
* @param authorizationRuleName The authorization rule name.
* @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 an AuthorizationRule for a Namespace by rule name.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getAuthorizationRuleWithResponse(
String resourceGroupName, String namespaceName, String authorizationRuleName, Context context);
/**
* Gets the primary and secondary connection strings for the Namespace.
*
* @param resourceGroupName Name of the resource group within the azure subscription.
* @param namespaceName The Namespace name.
* @param authorizationRuleName The authorization rule name.
* @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 primary and secondary connection strings for the Namespace.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono> listKeysWithResponseAsync(
String resourceGroupName, String namespaceName, String authorizationRuleName);
/**
* Gets the primary and secondary connection strings for the Namespace.
*
* @param resourceGroupName Name of the resource group within the azure subscription.
* @param namespaceName The Namespace name.
* @param authorizationRuleName The authorization rule name.
* @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 primary and secondary connection strings for the Namespace.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono listKeysAsync(String resourceGroupName, String namespaceName, String authorizationRuleName);
/**
* Gets the primary and secondary connection strings for the Namespace.
*
* @param resourceGroupName Name of the resource group within the azure subscription.
* @param namespaceName The Namespace name.
* @param authorizationRuleName The authorization rule name.
* @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 primary and secondary connection strings for the Namespace.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
AccessKeysInner listKeys(String resourceGroupName, String namespaceName, String authorizationRuleName);
/**
* Gets the primary and secondary connection strings for the Namespace.
*
* @param resourceGroupName Name of the resource group within the azure subscription.
* @param namespaceName The Namespace name.
* @param authorizationRuleName The authorization rule name.
* @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 primary and secondary connection strings for the Namespace.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response listKeysWithResponse(
String resourceGroupName, String namespaceName, String authorizationRuleName, Context context);
/**
* Regenerates the primary or secondary connection strings for the specified Namespace.
*
* @param resourceGroupName Name of the resource group within the azure subscription.
* @param namespaceName The Namespace name.
* @param authorizationRuleName The authorization rule name.
* @param parameters Parameters required to regenerate the connection string.
* @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 namespace/EventHub Connection String.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono> regenerateKeysWithResponseAsync(
String resourceGroupName,
String namespaceName,
String authorizationRuleName,
RegenerateAccessKeyParameters parameters);
/**
* Regenerates the primary or secondary connection strings for the specified Namespace.
*
* @param resourceGroupName Name of the resource group within the azure subscription.
* @param namespaceName The Namespace name.
* @param authorizationRuleName The authorization rule name.
* @param parameters Parameters required to regenerate the connection string.
* @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 namespace/EventHub Connection String.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono regenerateKeysAsync(
String resourceGroupName,
String namespaceName,
String authorizationRuleName,
RegenerateAccessKeyParameters parameters);
/**
* Regenerates the primary or secondary connection strings for the specified Namespace.
*
* @param resourceGroupName Name of the resource group within the azure subscription.
* @param namespaceName The Namespace name.
* @param authorizationRuleName The authorization rule name.
* @param parameters Parameters required to regenerate the connection string.
* @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 namespace/EventHub Connection String.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
AccessKeysInner regenerateKeys(
String resourceGroupName,
String namespaceName,
String authorizationRuleName,
RegenerateAccessKeyParameters parameters);
/**
* Regenerates the primary or secondary connection strings for the specified Namespace.
*
* @param resourceGroupName Name of the resource group within the azure subscription.
* @param namespaceName The Namespace name.
* @param authorizationRuleName The authorization rule name.
* @param parameters Parameters required to regenerate the connection string.
* @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 namespace/EventHub Connection String.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response regenerateKeysWithResponse(
String resourceGroupName,
String namespaceName,
String authorizationRuleName,
RegenerateAccessKeyParameters parameters,
Context context);
/**
* Check the give Namespace name availability.
*
* @param parameters Parameters to check availability of the given Namespace name.
* @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 Result of the CheckNameAvailability operation.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono> checkNameAvailabilityWithResponseAsync(
CheckNameAvailabilityParameter parameters);
/**
* Check the give Namespace name availability.
*
* @param parameters Parameters to check availability of the given Namespace name.
* @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 Result of the CheckNameAvailability operation.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono checkNameAvailabilityAsync(CheckNameAvailabilityParameter parameters);
/**
* Check the give Namespace name availability.
*
* @param parameters Parameters to check availability of the given Namespace name.
* @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 Result of the CheckNameAvailability operation.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
CheckNameAvailabilityResultInner checkNameAvailability(CheckNameAvailabilityParameter parameters);
/**
* Check the give Namespace name availability.
*
* @param parameters Parameters to check availability of the given Namespace name.
* @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 Result of the CheckNameAvailability operation.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response checkNameAvailabilityWithResponse(
CheckNameAvailabilityParameter parameters, Context context);
}