Interface SubscriptionsClient


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

    • listByTopicAsync

      com.azure.core.http.rest.PagedFlux<SBSubscriptionInner> listByTopicAsync(String resourceGroupName, String namespaceName, String topicName, Integer skip, Integer top)
      List all the subscriptions under a specified topic.
      Parameters:
      resourceGroupName - Name of the Resource group within the Azure subscription.
      namespaceName - The namespace name.
      topicName - The topic 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:
      the response to the List Subscriptions operation as paginated response with PagedFlux.
      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.
    • listByTopicAsync

      com.azure.core.http.rest.PagedFlux<SBSubscriptionInner> listByTopicAsync(String resourceGroupName, String namespaceName, String topicName)
      List all the subscriptions under a specified topic.
      Parameters:
      resourceGroupName - Name of the Resource group within the Azure subscription.
      namespaceName - The namespace name.
      topicName - The topic name.
      Returns:
      the response to the List Subscriptions operation as paginated response with PagedFlux.
      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.
    • listByTopic

      com.azure.core.http.rest.PagedIterable<SBSubscriptionInner> listByTopic(String resourceGroupName, String namespaceName, String topicName)
      List all the subscriptions under a specified topic.
      Parameters:
      resourceGroupName - Name of the Resource group within the Azure subscription.
      namespaceName - The namespace name.
      topicName - The topic name.
      Returns:
      the response to the List Subscriptions operation as paginated response with PagedIterable.
      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.
    • listByTopic

      com.azure.core.http.rest.PagedIterable<SBSubscriptionInner> listByTopic(String resourceGroupName, String namespaceName, String topicName, Integer skip, Integer top, com.azure.core.util.Context context)
      List all the subscriptions under a specified topic.
      Parameters:
      resourceGroupName - Name of the Resource group within the Azure subscription.
      namespaceName - The namespace name.
      topicName - The topic 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:
      the response to the List Subscriptions operation as paginated response with PagedIterable.
      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<SBSubscriptionInner>> createOrUpdateWithResponseAsync(String resourceGroupName, String namespaceName, String topicName, String subscriptionName, SBSubscriptionInner parameters)
      Creates a topic subscription.
      Parameters:
      resourceGroupName - Name of the Resource group within the Azure subscription.
      namespaceName - The namespace name.
      topicName - The topic name.
      subscriptionName - The subscription name.
      parameters - Parameters supplied to create a subscription resource.
      Returns:
      description of subscription resource along with Response on successful completion of Mono.
      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<SBSubscriptionInner> createOrUpdateAsync(String resourceGroupName, String namespaceName, String topicName, String subscriptionName, SBSubscriptionInner parameters)
      Creates a topic subscription.
      Parameters:
      resourceGroupName - Name of the Resource group within the Azure subscription.
      namespaceName - The namespace name.
      topicName - The topic name.
      subscriptionName - The subscription name.
      parameters - Parameters supplied to create a subscription resource.
      Returns:
      description of subscription resource on successful completion of Mono.
      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<SBSubscriptionInner> createOrUpdateWithResponse(String resourceGroupName, String namespaceName, String topicName, String subscriptionName, SBSubscriptionInner parameters, com.azure.core.util.Context context)
      Creates a topic subscription.
      Parameters:
      resourceGroupName - Name of the Resource group within the Azure subscription.
      namespaceName - The namespace name.
      topicName - The topic name.
      subscriptionName - The subscription name.
      parameters - Parameters supplied to create a subscription resource.
      context - The context to associate with this operation.
      Returns:
      description of subscription resource along with 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.
    • createOrUpdate

      SBSubscriptionInner createOrUpdate(String resourceGroupName, String namespaceName, String topicName, String subscriptionName, SBSubscriptionInner parameters)
      Creates a topic subscription.
      Parameters:
      resourceGroupName - Name of the Resource group within the Azure subscription.
      namespaceName - The namespace name.
      topicName - The topic name.
      subscriptionName - The subscription name.
      parameters - Parameters supplied to create a subscription resource.
      Returns:
      description of subscription resource.
      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 topicName, String subscriptionName)
      Deletes a subscription from the specified topic.
      Parameters:
      resourceGroupName - Name of the Resource group within the Azure subscription.
      namespaceName - The namespace name.
      topicName - The topic name.
      subscriptionName - The subscription name.
      Returns:
      the Response on successful completion of Mono.
      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 topicName, String subscriptionName)
      Deletes a subscription from the specified topic.
      Parameters:
      resourceGroupName - Name of the Resource group within the Azure subscription.
      namespaceName - The namespace name.
      topicName - The topic name.
      subscriptionName - The subscription name.
      Returns:
      A Mono that completes when a successful response is received.
      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 topicName, String subscriptionName, com.azure.core.util.Context context)
      Deletes a subscription from the specified topic.
      Parameters:
      resourceGroupName - Name of the Resource group within the Azure subscription.
      namespaceName - The namespace name.
      topicName - The topic name.
      subscriptionName - The subscription 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.
    • delete

      void delete(String resourceGroupName, String namespaceName, String topicName, String subscriptionName)
      Deletes a subscription from the specified topic.
      Parameters:
      resourceGroupName - Name of the Resource group within the Azure subscription.
      namespaceName - The namespace name.
      topicName - The topic name.
      subscriptionName - The subscription 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.
    • getWithResponseAsync

      Mono<com.azure.core.http.rest.Response<SBSubscriptionInner>> getWithResponseAsync(String resourceGroupName, String namespaceName, String topicName, String subscriptionName)
      Returns a subscription description for the specified topic.
      Parameters:
      resourceGroupName - Name of the Resource group within the Azure subscription.
      namespaceName - The namespace name.
      topicName - The topic name.
      subscriptionName - The subscription name.
      Returns:
      description of subscription resource along with Response on successful completion of Mono.
      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<SBSubscriptionInner> getAsync(String resourceGroupName, String namespaceName, String topicName, String subscriptionName)
      Returns a subscription description for the specified topic.
      Parameters:
      resourceGroupName - Name of the Resource group within the Azure subscription.
      namespaceName - The namespace name.
      topicName - The topic name.
      subscriptionName - The subscription name.
      Returns:
      description of subscription resource on successful completion of Mono.
      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<SBSubscriptionInner> getWithResponse(String resourceGroupName, String namespaceName, String topicName, String subscriptionName, com.azure.core.util.Context context)
      Returns a subscription description for the specified topic.
      Parameters:
      resourceGroupName - Name of the Resource group within the Azure subscription.
      namespaceName - The namespace name.
      topicName - The topic name.
      subscriptionName - The subscription name.
      context - The context to associate with this operation.
      Returns:
      description of subscription resource along with 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.
    • get

      SBSubscriptionInner get(String resourceGroupName, String namespaceName, String topicName, String subscriptionName)
      Returns a subscription description for the specified topic.
      Parameters:
      resourceGroupName - Name of the Resource group within the Azure subscription.
      namespaceName - The namespace name.
      topicName - The topic name.
      subscriptionName - The subscription name.
      Returns:
      description of subscription resource.
      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.