Interface EventHubsClient


public interface EventHubsClient
An instance of this class provides access to all the operations defined in EventHubsClient.
  • Method Details

    • listByNamespaceAsync

      com.azure.core.http.rest.PagedFlux<EventhubInner> listByNamespaceAsync(String resourceGroupName, String namespaceName, Integer skip, Integer top)
      Gets all the Event Hubs in a Namespace.
      Parameters:
      resourceGroupName - Name of the resource group within the azure subscription.
      namespaceName - The Namespace name.
      skip - Skip is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skip parameter that specifies a starting point to use for subsequent calls.
      top - May be used to limit the number of results to the most recent N usageDetails.
      Returns:
      all the Event Hubs in a Namespace.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • listByNamespaceAsync

      com.azure.core.http.rest.PagedFlux<EventhubInner> listByNamespaceAsync(String resourceGroupName, String namespaceName)
      Gets all the Event Hubs in a Namespace.
      Parameters:
      resourceGroupName - Name of the resource group within the azure subscription.
      namespaceName - The Namespace name.
      Returns:
      all the Event Hubs in a Namespace.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • listByNamespace

      com.azure.core.http.rest.PagedIterable<EventhubInner> listByNamespace(String resourceGroupName, String namespaceName)
      Gets all the Event Hubs in a Namespace.
      Parameters:
      resourceGroupName - Name of the resource group within the azure subscription.
      namespaceName - The Namespace name.
      Returns:
      all the Event Hubs in a Namespace.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • listByNamespace

      com.azure.core.http.rest.PagedIterable<EventhubInner> listByNamespace(String resourceGroupName, String namespaceName, Integer skip, Integer top, com.azure.core.util.Context context)
      Gets all the Event Hubs in a Namespace.
      Parameters:
      resourceGroupName - Name of the resource group within the azure subscription.
      namespaceName - The Namespace name.
      skip - Skip is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skip parameter that specifies a starting point to use for subsequent calls.
      top - May be used to limit the number of results to the most recent N usageDetails.
      context - The context to associate with this operation.
      Returns:
      all the Event Hubs in a Namespace.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • createOrUpdateWithResponseAsync

      Mono<com.azure.core.http.rest.Response<EventhubInner>> createOrUpdateWithResponseAsync(String resourceGroupName, String namespaceName, String eventHubName, EventhubInner parameters)
      Creates or updates a new Event Hub as a nested resource within a Namespace.
      Parameters:
      resourceGroupName - Name of the resource group within the azure subscription.
      namespaceName - The Namespace name.
      eventHubName - The Event Hub name.
      parameters - Parameters supplied to create an Event Hub resource.
      Returns:
      single item in List or Get Event Hub operation.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • createOrUpdateAsync

      Mono<EventhubInner> createOrUpdateAsync(String resourceGroupName, String namespaceName, String eventHubName, EventhubInner parameters)
      Creates or updates a new Event Hub as a nested resource within a Namespace.
      Parameters:
      resourceGroupName - Name of the resource group within the azure subscription.
      namespaceName - The Namespace name.
      eventHubName - The Event Hub name.
      parameters - Parameters supplied to create an Event Hub resource.
      Returns:
      single item in List or Get Event Hub operation.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • createOrUpdate

      EventhubInner createOrUpdate(String resourceGroupName, String namespaceName, String eventHubName, EventhubInner parameters)
      Creates or updates a new Event Hub as a nested resource within a Namespace.
      Parameters:
      resourceGroupName - Name of the resource group within the azure subscription.
      namespaceName - The Namespace name.
      eventHubName - The Event Hub name.
      parameters - Parameters supplied to create an Event Hub resource.
      Returns:
      single item in List or Get Event Hub operation.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • createOrUpdateWithResponse

      com.azure.core.http.rest.Response<EventhubInner> createOrUpdateWithResponse(String resourceGroupName, String namespaceName, String eventHubName, EventhubInner parameters, com.azure.core.util.Context context)
      Creates or updates a new Event Hub as a nested resource within a Namespace.
      Parameters:
      resourceGroupName - Name of the resource group within the azure subscription.
      namespaceName - The Namespace name.
      eventHubName - The Event Hub name.
      parameters - Parameters supplied to create an Event Hub resource.
      context - The context to associate with this operation.
      Returns:
      single item in List or Get Event Hub operation.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • deleteWithResponseAsync

      Mono<com.azure.core.http.rest.Response<Void>> deleteWithResponseAsync(String resourceGroupName, String namespaceName, String eventHubName)
      Deletes an Event Hub from the specified Namespace and resource group.
      Parameters:
      resourceGroupName - Name of the resource group within the azure subscription.
      namespaceName - The Namespace name.
      eventHubName - The Event Hub name.
      Returns:
      the completion.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • deleteAsync

      Mono<Void> deleteAsync(String resourceGroupName, String namespaceName, String eventHubName)
      Deletes an Event Hub from the specified Namespace and resource group.
      Parameters:
      resourceGroupName - Name of the resource group within the azure subscription.
      namespaceName - The Namespace name.
      eventHubName - The Event Hub name.
      Returns:
      the completion.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • delete

      void delete(String resourceGroupName, String namespaceName, String eventHubName)
      Deletes an Event Hub from the specified Namespace and resource group.
      Parameters:
      resourceGroupName - Name of the resource group within the azure subscription.
      namespaceName - The Namespace name.
      eventHubName - The Event Hub name.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • deleteWithResponse

      com.azure.core.http.rest.Response<Void> deleteWithResponse(String resourceGroupName, String namespaceName, String eventHubName, com.azure.core.util.Context context)
      Deletes an Event Hub from the specified Namespace and resource group.
      Parameters:
      resourceGroupName - Name of the resource group within the azure subscription.
      namespaceName - The Namespace name.
      eventHubName - The Event Hub name.
      context - The context to associate with this operation.
      Returns:
      the response.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • getWithResponseAsync

      Mono<com.azure.core.http.rest.Response<EventhubInner>> getWithResponseAsync(String resourceGroupName, String namespaceName, String eventHubName)
      Gets an Event Hubs description for the specified Event Hub.
      Parameters:
      resourceGroupName - Name of the resource group within the azure subscription.
      namespaceName - The Namespace name.
      eventHubName - The Event Hub name.
      Returns:
      an Event Hubs description for the specified Event Hub.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • getAsync

      Mono<EventhubInner> getAsync(String resourceGroupName, String namespaceName, String eventHubName)
      Gets an Event Hubs description for the specified Event Hub.
      Parameters:
      resourceGroupName - Name of the resource group within the azure subscription.
      namespaceName - The Namespace name.
      eventHubName - The Event Hub name.
      Returns:
      an Event Hubs description for the specified Event Hub.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • get

      EventhubInner get(String resourceGroupName, String namespaceName, String eventHubName)
      Gets an Event Hubs description for the specified Event Hub.
      Parameters:
      resourceGroupName - Name of the resource group within the azure subscription.
      namespaceName - The Namespace name.
      eventHubName - The Event Hub name.
      Returns:
      an Event Hubs description for the specified Event Hub.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • getWithResponse

      com.azure.core.http.rest.Response<EventhubInner> getWithResponse(String resourceGroupName, String namespaceName, String eventHubName, com.azure.core.util.Context context)
      Gets an Event Hubs description for the specified Event Hub.
      Parameters:
      resourceGroupName - Name of the resource group within the azure subscription.
      namespaceName - The Namespace name.
      eventHubName - The Event Hub name.
      context - The context to associate with this operation.
      Returns:
      an Event Hubs description for the specified Event Hub.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • listAuthorizationRulesAsync

      com.azure.core.http.rest.PagedFlux<AuthorizationRuleInner> listAuthorizationRulesAsync(String resourceGroupName, String namespaceName, String eventHubName)
      Gets the authorization rules for an Event Hub.
      Parameters:
      resourceGroupName - Name of the resource group within the azure subscription.
      namespaceName - The Namespace name.
      eventHubName - The Event Hub name.
      Returns:
      the authorization rules for an Event Hub.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • listAuthorizationRules

      com.azure.core.http.rest.PagedIterable<AuthorizationRuleInner> listAuthorizationRules(String resourceGroupName, String namespaceName, String eventHubName)
      Gets the authorization rules for an Event Hub.
      Parameters:
      resourceGroupName - Name of the resource group within the azure subscription.
      namespaceName - The Namespace name.
      eventHubName - The Event Hub name.
      Returns:
      the authorization rules for an Event Hub.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • listAuthorizationRules

      com.azure.core.http.rest.PagedIterable<AuthorizationRuleInner> listAuthorizationRules(String resourceGroupName, String namespaceName, String eventHubName, com.azure.core.util.Context context)
      Gets the authorization rules for an Event Hub.
      Parameters:
      resourceGroupName - Name of the resource group within the azure subscription.
      namespaceName - The Namespace name.
      eventHubName - The Event Hub name.
      context - The context to associate with this operation.
      Returns:
      the authorization rules for an Event Hub.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • createOrUpdateAuthorizationRuleWithResponseAsync

      Mono<com.azure.core.http.rest.Response<AuthorizationRuleInner>> createOrUpdateAuthorizationRuleWithResponseAsync(String resourceGroupName, String namespaceName, String eventHubName, String authorizationRuleName, AuthorizationRuleInner parameters)
      Creates or updates an AuthorizationRule for the specified Event Hub. Creation/update of the AuthorizationRule will take a few seconds to take effect.
      Parameters:
      resourceGroupName - Name of the resource group within the azure subscription.
      namespaceName - The Namespace name.
      eventHubName - The Event Hub name.
      authorizationRuleName - The authorization rule name.
      parameters - The shared access AuthorizationRule.
      Returns:
      single item in a List or Get AuthorizationRule operation.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • createOrUpdateAuthorizationRuleAsync

      Mono<AuthorizationRuleInner> createOrUpdateAuthorizationRuleAsync(String resourceGroupName, String namespaceName, String eventHubName, String authorizationRuleName, AuthorizationRuleInner parameters)
      Creates or updates an AuthorizationRule for the specified Event Hub. Creation/update of the AuthorizationRule will take a few seconds to take effect.
      Parameters:
      resourceGroupName - Name of the resource group within the azure subscription.
      namespaceName - The Namespace name.
      eventHubName - The Event Hub name.
      authorizationRuleName - The authorization rule name.
      parameters - The shared access AuthorizationRule.
      Returns:
      single item in a List or Get AuthorizationRule operation.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • createOrUpdateAuthorizationRule

      AuthorizationRuleInner createOrUpdateAuthorizationRule(String resourceGroupName, String namespaceName, String eventHubName, String authorizationRuleName, AuthorizationRuleInner parameters)
      Creates or updates an AuthorizationRule for the specified Event Hub. Creation/update of the AuthorizationRule will take a few seconds to take effect.
      Parameters:
      resourceGroupName - Name of the resource group within the azure subscription.
      namespaceName - The Namespace name.
      eventHubName - The Event Hub name.
      authorizationRuleName - The authorization rule name.
      parameters - The shared access AuthorizationRule.
      Returns:
      single item in a List or Get AuthorizationRule operation.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • createOrUpdateAuthorizationRuleWithResponse

      com.azure.core.http.rest.Response<AuthorizationRuleInner> createOrUpdateAuthorizationRuleWithResponse(String resourceGroupName, String namespaceName, String eventHubName, String authorizationRuleName, AuthorizationRuleInner parameters, com.azure.core.util.Context context)
      Creates or updates an AuthorizationRule for the specified Event Hub. Creation/update of the AuthorizationRule will take a few seconds to take effect.
      Parameters:
      resourceGroupName - Name of the resource group within the azure subscription.
      namespaceName - The Namespace name.
      eventHubName - The Event Hub name.
      authorizationRuleName - The authorization rule name.
      parameters - The shared access AuthorizationRule.
      context - The context to associate with this operation.
      Returns:
      single item in a List or Get AuthorizationRule operation.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • getAuthorizationRuleWithResponseAsync

      Mono<com.azure.core.http.rest.Response<AuthorizationRuleInner>> getAuthorizationRuleWithResponseAsync(String resourceGroupName, String namespaceName, String eventHubName, String authorizationRuleName)
      Gets an AuthorizationRule for an Event Hub by rule name.
      Parameters:
      resourceGroupName - Name of the resource group within the azure subscription.
      namespaceName - The Namespace name.
      eventHubName - The Event Hub name.
      authorizationRuleName - The authorization rule name.
      Returns:
      an AuthorizationRule for an Event Hub by rule name.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • getAuthorizationRuleAsync

      Mono<AuthorizationRuleInner> getAuthorizationRuleAsync(String resourceGroupName, String namespaceName, String eventHubName, String authorizationRuleName)
      Gets an AuthorizationRule for an Event Hub by rule name.
      Parameters:
      resourceGroupName - Name of the resource group within the azure subscription.
      namespaceName - The Namespace name.
      eventHubName - The Event Hub name.
      authorizationRuleName - The authorization rule name.
      Returns:
      an AuthorizationRule for an Event Hub by rule name.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • getAuthorizationRule

      AuthorizationRuleInner getAuthorizationRule(String resourceGroupName, String namespaceName, String eventHubName, String authorizationRuleName)
      Gets an AuthorizationRule for an Event Hub by rule name.
      Parameters:
      resourceGroupName - Name of the resource group within the azure subscription.
      namespaceName - The Namespace name.
      eventHubName - The Event Hub name.
      authorizationRuleName - The authorization rule name.
      Returns:
      an AuthorizationRule for an Event Hub by rule name.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • getAuthorizationRuleWithResponse

      com.azure.core.http.rest.Response<AuthorizationRuleInner> getAuthorizationRuleWithResponse(String resourceGroupName, String namespaceName, String eventHubName, String authorizationRuleName, com.azure.core.util.Context context)
      Gets an AuthorizationRule for an Event Hub by rule name.
      Parameters:
      resourceGroupName - Name of the resource group within the azure subscription.
      namespaceName - The Namespace name.
      eventHubName - The Event Hub name.
      authorizationRuleName - The authorization rule name.
      context - The context to associate with this operation.
      Returns:
      an AuthorizationRule for an Event Hub by rule name.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • deleteAuthorizationRuleWithResponseAsync

      Mono<com.azure.core.http.rest.Response<Void>> deleteAuthorizationRuleWithResponseAsync(String resourceGroupName, String namespaceName, String eventHubName, String authorizationRuleName)
      Deletes an Event Hub AuthorizationRule.
      Parameters:
      resourceGroupName - Name of the resource group within the azure subscription.
      namespaceName - The Namespace name.
      eventHubName - The Event Hub name.
      authorizationRuleName - The authorization rule name.
      Returns:
      the completion.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • deleteAuthorizationRuleAsync

      Mono<Void> deleteAuthorizationRuleAsync(String resourceGroupName, String namespaceName, String eventHubName, String authorizationRuleName)
      Deletes an Event Hub AuthorizationRule.
      Parameters:
      resourceGroupName - Name of the resource group within the azure subscription.
      namespaceName - The Namespace name.
      eventHubName - The Event Hub name.
      authorizationRuleName - The authorization rule name.
      Returns:
      the completion.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • deleteAuthorizationRule

      void deleteAuthorizationRule(String resourceGroupName, String namespaceName, String eventHubName, String authorizationRuleName)
      Deletes an Event Hub AuthorizationRule.
      Parameters:
      resourceGroupName - Name of the resource group within the azure subscription.
      namespaceName - The Namespace name.
      eventHubName - The Event Hub name.
      authorizationRuleName - The authorization rule name.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • deleteAuthorizationRuleWithResponse

      com.azure.core.http.rest.Response<Void> deleteAuthorizationRuleWithResponse(String resourceGroupName, String namespaceName, String eventHubName, String authorizationRuleName, com.azure.core.util.Context context)
      Deletes an Event Hub AuthorizationRule.
      Parameters:
      resourceGroupName - Name of the resource group within the azure subscription.
      namespaceName - The Namespace name.
      eventHubName - The Event Hub name.
      authorizationRuleName - The authorization rule name.
      context - The context to associate with this operation.
      Returns:
      the response.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • listKeysWithResponseAsync

      Mono<com.azure.core.http.rest.Response<AccessKeysInner>> listKeysWithResponseAsync(String resourceGroupName, String namespaceName, String eventHubName, String authorizationRuleName)
      Gets the ACS and SAS connection strings for the Event Hub.
      Parameters:
      resourceGroupName - Name of the resource group within the azure subscription.
      namespaceName - The Namespace name.
      eventHubName - The Event Hub name.
      authorizationRuleName - The authorization rule name.
      Returns:
      the ACS and SAS connection strings for the Event Hub.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • listKeysAsync

      Mono<AccessKeysInner> listKeysAsync(String resourceGroupName, String namespaceName, String eventHubName, String authorizationRuleName)
      Gets the ACS and SAS connection strings for the Event Hub.
      Parameters:
      resourceGroupName - Name of the resource group within the azure subscription.
      namespaceName - The Namespace name.
      eventHubName - The Event Hub name.
      authorizationRuleName - The authorization rule name.
      Returns:
      the ACS and SAS connection strings for the Event Hub.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • listKeys

      AccessKeysInner listKeys(String resourceGroupName, String namespaceName, String eventHubName, String authorizationRuleName)
      Gets the ACS and SAS connection strings for the Event Hub.
      Parameters:
      resourceGroupName - Name of the resource group within the azure subscription.
      namespaceName - The Namespace name.
      eventHubName - The Event Hub name.
      authorizationRuleName - The authorization rule name.
      Returns:
      the ACS and SAS connection strings for the Event Hub.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • listKeysWithResponse

      com.azure.core.http.rest.Response<AccessKeysInner> listKeysWithResponse(String resourceGroupName, String namespaceName, String eventHubName, String authorizationRuleName, com.azure.core.util.Context context)
      Gets the ACS and SAS connection strings for the Event Hub.
      Parameters:
      resourceGroupName - Name of the resource group within the azure subscription.
      namespaceName - The Namespace name.
      eventHubName - The Event Hub name.
      authorizationRuleName - The authorization rule name.
      context - The context to associate with this operation.
      Returns:
      the ACS and SAS connection strings for the Event Hub.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • regenerateKeysWithResponseAsync

      Mono<com.azure.core.http.rest.Response<AccessKeysInner>> regenerateKeysWithResponseAsync(String resourceGroupName, String namespaceName, String eventHubName, String authorizationRuleName, RegenerateAccessKeyParameters parameters)
      Regenerates the ACS and SAS connection strings for the Event Hub.
      Parameters:
      resourceGroupName - Name of the resource group within the azure subscription.
      namespaceName - The Namespace name.
      eventHubName - The Event Hub name.
      authorizationRuleName - The authorization rule name.
      parameters - Parameters supplied to regenerate the AuthorizationRule Keys (PrimaryKey/SecondaryKey).
      Returns:
      namespace/EventHub Connection String.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • regenerateKeysAsync

      Mono<AccessKeysInner> regenerateKeysAsync(String resourceGroupName, String namespaceName, String eventHubName, String authorizationRuleName, RegenerateAccessKeyParameters parameters)
      Regenerates the ACS and SAS connection strings for the Event Hub.
      Parameters:
      resourceGroupName - Name of the resource group within the azure subscription.
      namespaceName - The Namespace name.
      eventHubName - The Event Hub name.
      authorizationRuleName - The authorization rule name.
      parameters - Parameters supplied to regenerate the AuthorizationRule Keys (PrimaryKey/SecondaryKey).
      Returns:
      namespace/EventHub Connection String.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • regenerateKeys

      AccessKeysInner regenerateKeys(String resourceGroupName, String namespaceName, String eventHubName, String authorizationRuleName, RegenerateAccessKeyParameters parameters)
      Regenerates the ACS and SAS connection strings for the Event Hub.
      Parameters:
      resourceGroupName - Name of the resource group within the azure subscription.
      namespaceName - The Namespace name.
      eventHubName - The Event Hub name.
      authorizationRuleName - The authorization rule name.
      parameters - Parameters supplied to regenerate the AuthorizationRule Keys (PrimaryKey/SecondaryKey).
      Returns:
      namespace/EventHub Connection String.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • regenerateKeysWithResponse

      com.azure.core.http.rest.Response<AccessKeysInner> regenerateKeysWithResponse(String resourceGroupName, String namespaceName, String eventHubName, String authorizationRuleName, RegenerateAccessKeyParameters parameters, com.azure.core.util.Context context)
      Regenerates the ACS and SAS connection strings for the Event Hub.
      Parameters:
      resourceGroupName - Name of the resource group within the azure subscription.
      namespaceName - The Namespace name.
      eventHubName - The Event Hub name.
      authorizationRuleName - The authorization rule name.
      parameters - Parameters supplied to regenerate the AuthorizationRule Keys (PrimaryKey/SecondaryKey).
      context - The context to associate with this operation.
      Returns:
      namespace/EventHub Connection String.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.