SubscriptionOperationsClient Interface

public interface SubscriptionOperationsClient

An instance of this class provides access to all the operations defined in SubscriptionOperationsClient.

Method Summary

Modifier and Type Method and Description
abstract CanceledSubscriptionIdInner cancel(String subscriptionId)

The operation to cancel a subscription.

abstract Response<CanceledSubscriptionIdInner> cancelWithResponse(String subscriptionId, Context context)

The operation to cancel a subscription.

abstract EnabledSubscriptionIdInner enable(String subscriptionId)

The operation to enable a subscription.

abstract Response<EnabledSubscriptionIdInner> enableWithResponse(String subscriptionId, Context context)

The operation to enable a subscription.

abstract RenamedSubscriptionIdInner rename(String subscriptionId, SubscriptionName body)

The operation to rename a subscription.

abstract Response<RenamedSubscriptionIdInner> renameWithResponse(String subscriptionId, SubscriptionName body, Context context)

The operation to rename a subscription.

Method Details

cancel

public abstract CanceledSubscriptionIdInner cancel(String subscriptionId)

The operation to cancel a subscription.

Parameters:

subscriptionId - Subscription Id.

Returns:

the ID of the canceled subscription.

cancelWithResponse

public abstract Response cancelWithResponse(String subscriptionId, 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<T>.

enable

public abstract EnabledSubscriptionIdInner enable(String subscriptionId)

The operation to enable a subscription.

Parameters:

subscriptionId - Subscription Id.

Returns:

the ID of the subscriptions that is being enabled.

enableWithResponse

public abstract Response enableWithResponse(String subscriptionId, 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<T>.

rename

public abstract 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.

renameWithResponse

public abstract Response renameWithResponse(String subscriptionId, SubscriptionName body, 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<T>.

Applies to