Example #1
0
 /// <summary>
 /// Deletes a subscription from the specified topic.
 /// <see href="https://msdn.microsoft.com/en-us/library/azure/mt639381.aspx" />
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Name of the Resource group within the Azure subscription.
 /// </param>
 /// <param name='namespaceName'>
 /// The namespace name
 /// </param>
 /// <param name='topicName'>
 /// The topic name.
 /// </param>
 /// <param name='subscriptionName'>
 /// The subscription name.
 /// </param>
 public static void Delete(this ISubscriptionsOperations operations, string resourceGroupName, string namespaceName, string topicName, string subscriptionName)
 {
     operations.DeleteAsync(resourceGroupName, namespaceName, topicName, subscriptionName).GetAwaiter().GetResult();
 }
Example #2
0
 /// <summary>
 /// Deletes specific subscription of the Api Management service
 /// instance.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.ApiManagement.ISubscriptionsOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The name of the resource group.
 /// </param>
 /// <param name='serviceName'>
 /// Required. The name of the Api Management service.
 /// </param>
 /// <param name='sid'>
 /// Required. Identifier of the subscription.
 /// </param>
 /// <param name='etag'>
 /// Required. ETag.
 /// </param>
 /// <returns>
 /// A standard service response including an HTTP status code and
 /// request ID.
 /// </returns>
 public static Task <AzureOperationResponse> DeleteAsync(this ISubscriptionsOperations operations, string resourceGroupName, string serviceName, string sid, string etag)
 {
     return(operations.DeleteAsync(resourceGroupName, serviceName, sid, etag, CancellationToken.None));
 }
Example #3
0
 /// <summary>
 /// Delete the specified subscription.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='subscription'>
 /// Subscription parameter.
 /// </param>
 public static void Delete(this ISubscriptionsOperations operations, string subscription)
 {
     operations.DeleteAsync(subscription).GetAwaiter().GetResult();
 }