Interface SubscriptionOperationsClient


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

    • cancelWithResponse

      com.azure.core.http.rest.Response<CanceledSubscriptionIdInner> cancelWithResponse(String subscriptionId, com.azure.core.util.Context context)
      The operation to cancel a subscription.
      Parameters:
      subscriptionId - Subscription Id.
      context - The context to associate with this operation.
      Returns:
      the ID of the canceled subscription 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.
    • cancel

      CanceledSubscriptionIdInner cancel(String subscriptionId)
      The operation to cancel a subscription.
      Parameters:
      subscriptionId - Subscription Id.
      Returns:
      the ID of the canceled subscription.
      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.
    • renameWithResponse

      com.azure.core.http.rest.Response<RenamedSubscriptionIdInner> renameWithResponse(String subscriptionId, SubscriptionName body, com.azure.core.util.Context context)
      The operation to rename a subscription.
      Parameters:
      subscriptionId - Subscription Id.
      body - Subscription Name.
      context - The context to associate with this operation.
      Returns:
      the ID of the subscriptions that is being renamed 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.
    • rename

      RenamedSubscriptionIdInner rename(String subscriptionId, SubscriptionName body)
      The operation to rename a subscription.
      Parameters:
      subscriptionId - Subscription Id.
      body - Subscription Name.
      Returns:
      the ID of the subscriptions that is being renamed.
      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.
    • enableWithResponse

      com.azure.core.http.rest.Response<EnabledSubscriptionIdInner> enableWithResponse(String subscriptionId, com.azure.core.util.Context context)
      The operation to enable a subscription.
      Parameters:
      subscriptionId - Subscription Id.
      context - The context to associate with this operation.
      Returns:
      the ID of the subscriptions that is being enabled 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.
    • enable

      EnabledSubscriptionIdInner enable(String subscriptionId)
      The operation to enable a subscription.
      Parameters:
      subscriptionId - Subscription Id.
      Returns:
      the ID of the subscriptions that is being enabled.
      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.