/// <summary> /// The delete authorization operation deletes the specified /// authorization from the specified ExpressRouteCircuit. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.Network.IExpressRouteCircuitAuthorizationOperations. /// </param> /// <param name='resourceGroupName'> /// Required. The name of the resource group. /// </param> /// <param name='circuitName'> /// Required. The name of the express route circuit. /// </param> /// <param name='authorizationName'> /// Required. The name of the authorization. /// </param> /// <returns> /// If the resource provide needs to return an error to any operation, /// it should return the appropriate HTTP error code and a message /// body as can be seen below.The message should be localized per the /// Accept-Language header specified in the original request such /// thatit could be directly be exposed to users /// </returns> public static Task<UpdateOperationResponse> BeginDeletingAsync(this IExpressRouteCircuitAuthorizationOperations operations, string resourceGroupName, string circuitName, string authorizationName) { return operations.BeginDeletingAsync(resourceGroupName, circuitName, authorizationName, CancellationToken.None); }
/// <summary> /// Deletes the pecified Network Security Group from your /// subscription.If the Network Security group is still associated /// with some VM/Role/Subnet, the deletion will fail. In order to /// successfully delete the Network Security, it needs to be not used. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.WindowsAzure.Management.Network.INetworkSecurityGroupOperations. /// </param> /// <param name='networkSecurityGroupName'> /// Required. The name of the Network Security Group to delete. /// </param> /// <returns> /// The response body contains the status of the specified asynchronous /// operation, indicating whether it has succeeded, is inprogress, or /// has failed. Note that this status is distinct from the HTTP status /// code returned for the Get Operation Status operation itself. If /// the asynchronous operation succeeded, the response body includes /// the HTTP status code for the successful request. If the /// asynchronous operation failed, the response body includes the HTTP /// status code for the failed request, and also includes error /// information regarding the failure. /// </returns> public static Task<OperationStatusResponse> BeginDeletingAsync(this INetworkSecurityGroupOperations operations, string networkSecurityGroupName) { return operations.BeginDeletingAsync(networkSecurityGroupName, CancellationToken.None); }
/// <summary> /// Removes a DNS zone from a resource group. /// </summary> /// <param name='operations'> /// Reference to the Microsoft.Azure.Management.Dns.IZoneOperations. /// </param> /// <param name='resourceGroupName'> /// Required. The name of the resource group. /// </param> /// <param name='zoneName'> /// Required. The name of the zone without a terminating dot. /// </param> /// <param name='ifMatch'> /// Optional. Defines the If-Match condition. The delete operation will /// be performed only if the ETag of the zone on the server matches /// this value. /// </param> /// <param name='ifNoneMatch'> /// Optional. Defines the If-None-Match condition. The delete operation /// will be performed only if the ETag of the zone on the server does /// not match this value. /// </param> /// <returns> /// The response to a Zone Delete operation. /// </returns> public static Task<ZoneDeleteResponse> BeginDeletingAsync(this IZoneOperations operations, string resourceGroupName, string zoneName, string ifMatch, string ifNoneMatch) { return operations.BeginDeletingAsync(resourceGroupName, zoneName, ifMatch, ifNoneMatch, CancellationToken.None); }
/// <summary> /// Preview Only. The Delete Reserved IP operation removes a reserved /// IP from your the subscription. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.WindowsAzure.Management.Network.IReservedIPOperations. /// </param> /// <param name='ipName'> /// The name of the reserved IP. /// </param> /// <returns> /// A standard storage response including an HTTP status code and /// request ID. /// </returns> public static Task<OperationResponse> BeginDeletingAsync(this IReservedIPOperations operations, string ipName) { return operations.BeginDeletingAsync(ipName, CancellationToken.None); }
/// <summary> /// Deletes a job collection. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.WindowsAzure.Management.Scheduler.IJobCollectionOperations. /// </param> /// <param name='cloudServiceName'> /// The name of the cloud service. /// </param> /// <param name='jobCollectionName'> /// The name of the job collection to delete. /// </param> /// <returns> /// A standard service response including an HTTP status code and /// request ID. /// </returns> public static OperationResponse BeginDeleting(this IJobCollectionOperations operations, string cloudServiceName, string jobCollectionName) { try { return operations.BeginDeletingAsync(cloudServiceName, jobCollectionName).Result; } catch (AggregateException ex) { if (ex.InnerExceptions.Count > 1) { throw; } else { throw ex.InnerException; } } }
/// <summary> /// Deletes a Policy /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.SiteRecovery.IPolicyOperations. /// </param> /// <param name='name'> /// Required. Policy name. /// </param> /// <param name='customRequestHeaders'> /// Optional. Request header parameters. /// </param> /// <returns> /// A standard service response for long running operations. /// </returns> public static Task<LongRunningOperationResponse> BeginDeletingAsync(this IPolicyOperations operations, string name, CustomRequestHeaders customRequestHeaders) { return operations.BeginDeletingAsync(name, customRequestHeaders, CancellationToken.None); }
/// <summary> /// The Delete Store Item operation deletes Windows Azure Store entries /// that re provisioned for a subscription. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.WindowsAzure.Management.Store.IAddOnOperations. /// </param> /// <param name='cloudServiceName'> /// The name of the cloud service to which this store item will be /// assigned. /// </param> /// <param name='resourceProviderNamespace'> /// The namespace in which this store item resides. /// </param> /// <param name='resourceProviderType'> /// The type of store item to be deleted. /// </param> /// <param name='resourceProviderName'> /// The name of this resource provider. /// </param> /// <returns> /// The response body contains the status of the specified asynchronous /// operation, indicating whether it has succeeded, is inprogress, or /// has failed. Note that this status is distinct from the HTTP status /// code returned for the Get Operation Status operation itself. If /// the asynchronous operation succeeded, the response body includes /// the HTTP status code for the successful request. If the /// asynchronous operation failed, the response body includes the HTTP /// status code for the failed request, and also includes error /// information regarding the failure. /// </returns> public static Task<AddOnOperationStatusResponse> BeginDeletingAsync(this IAddOnOperations operations, string cloudServiceName, string resourceProviderNamespace, string resourceProviderType, string resourceProviderName) { return operations.BeginDeletingAsync(cloudServiceName, resourceProviderNamespace, resourceProviderType, resourceProviderName, CancellationToken.None); }
/// <summary> /// Deletes a Fabric /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.SiteRecovery.IFabricOperations. /// </param> /// <param name='fabricName'> /// Required. Fabric Name. /// </param> /// <param name='input'> /// Required. Fabric deletion input. /// </param> /// <param name='customRequestHeaders'> /// Optional. Request header parameters. /// </param> /// <returns> /// A standard service response for long running operations. /// </returns> public static Task<LongRunningOperationResponse> BeginDeletingAsync(this IFabricOperations operations, string fabricName, FabricDeletionInput input, CustomRequestHeaders customRequestHeaders) { return operations.BeginDeletingAsync(fabricName, input, customRequestHeaders, CancellationToken.None); }
/// <summary> /// The Begin Deleting Virtual Machine Image operation deletes the /// specified virtual machine image. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.WindowsAzure.Management.Compute.IVirtualMachineVMImageOperations. /// </param> /// <param name='vmImageName'> /// Required. The name of the virtual machine image to delete. /// </param> /// <param name='deleteFromStorage'> /// Required. Specifies that the source blob for the image should also /// be deleted from storage. /// </param> /// <returns> /// A standard service response including an HTTP status code and /// request ID. /// </returns> public static Task<OperationResponse> BeginDeletingAsync(this IVirtualMachineVMImageOperations operations, string vmImageName, bool deleteFromStorage) { return operations.BeginDeletingAsync(vmImageName, deleteFromStorage, CancellationToken.None); }
/// <summary> /// The Delete Role operation deletes the specified virtual machine. /// (see /// http://msdn.microsoft.com/en-us/library/windowsazure/jj157184.aspx /// for more information) /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.WindowsAzure.Management.Compute.IVirtualMachineOperations. /// </param> /// <param name='serviceName'> /// The name of your service. /// </param> /// <param name='deploymentName'> /// The name of your deployment. /// </param> /// <param name='virtualMachineName'> /// The name of the virtual machine to delete. /// </param> /// <param name='deleteFromStorage'> /// Optional. Specifies that the source blob(s) for the virtual machine /// should also be deleted from storage. /// </param> /// <returns> /// A standard service response including an HTTP status code and /// request ID. /// </returns> public static Task<OperationResponse> BeginDeletingAsync(this IVirtualMachineOperations operations, string serviceName, string deploymentName, string virtualMachineName, bool deleteFromStorage) { return operations.BeginDeletingAsync(serviceName, deploymentName, virtualMachineName, deleteFromStorage, CancellationToken.None); }
/// <summary> /// The delete loadbalancer operation deletes the specified /// loadbalancer. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.Network.ILoadBalancerOperations. /// </param> /// <param name='resourceGroupName'> /// Required. The name of the resource group. /// </param> /// <param name='loadBalancerName'> /// Required. The name of the loadBalancer. /// </param> /// <returns> /// If the resource provide needs to return an error to any operation, /// it should return the appropriate HTTP error code and a message /// body as can be seen below.The message should be localized per the /// Accept-Language header specified in the original request such /// thatit could be directly be exposed to users /// </returns> public static Task<UpdateOperationResponse> BeginDeletingAsync(this ILoadBalancerOperations operations, string resourceGroupName, string loadBalancerName) { return operations.BeginDeletingAsync(resourceGroupName, loadBalancerName, CancellationToken.None); }
/// <summary> /// The Delete Role operation deletes the specified virtual machine. /// (see /// http://msdn.microsoft.com/en-us/library/windowsazure/jj157184.aspx /// for more information) /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.WindowsAzure.Management.Compute.IVirtualMachineOperations. /// </param> /// <param name='serviceName'> /// The name of your service. /// </param> /// <param name='deploymentName'> /// The name of your deployment. /// </param> /// <param name='virtualMachineName'> /// The name of the virtual machine to delete. /// </param> /// <param name='deleteFromStorage'> /// Optional. Specifies that the source blob(s) for the virtual machine /// should also be deleted from storage. /// </param> /// <returns> /// A standard service response including an HTTP status code and /// request ID. /// </returns> public static OperationResponse BeginDeleting(this IVirtualMachineOperations operations, string serviceName, string deploymentName, string virtualMachineName, bool deleteFromStorage) { try { return operations.BeginDeletingAsync(serviceName, deploymentName, virtualMachineName, deleteFromStorage).Result; } catch (AggregateException ex) { if (ex.InnerExceptions.Count > 1) { throw; } else { throw ex.InnerException; } } }
/// <summary> /// Deletes a vault /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.WindowsAzure.Management.RecoveryServices.IVaultOperations. /// </param> /// <param name='cloudServiceName'> /// Required. The name of the cloud service containing the job /// collection. /// </param> /// <param name='vaultName'> /// Required. The name of the vault to delete. /// </param> /// <returns> /// The response body contains the status of the specified asynchronous /// operation, indicating whether it has succeeded, is inprogress, or /// has failed. Note that this status is distinct from the HTTP status /// code returned for the Get Operation Status operation itself. If /// the asynchronous operation succeeded, the response body includes /// the HTTP status code for the successful request. If the /// asynchronous operation failed, the response body includes the HTTP /// status code for the failed request, and also includes error /// information regarding the failure. /// </returns> public static Task<RecoveryServicesOperationStatusResponse> BeginDeletingAsync(this IVaultOperations operations, string cloudServiceName, string vaultName) { return operations.BeginDeletingAsync(cloudServiceName, vaultName, CancellationToken.None); }
/// <summary> /// Delete a cloud service. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.WindowsAzure.Management.Scheduler.ICloudServiceOperations. /// </param> /// <param name='cloudServiceName'> /// Required. The cloud service name. /// </param> /// <returns> /// A standard service response including an HTTP status code and /// request ID. /// </returns> public static Task<AzureOperationResponse> BeginDeletingAsync(this ICloudServiceOperations operations, string cloudServiceName) { return operations.BeginDeletingAsync(cloudServiceName, CancellationToken.None); }
/// <summary> /// The Begin Deleting Service Certificate operation deletes a service /// certificate from the certificate store of a hosted service. This /// operation is an asynchronous operation. To determine whether the /// management service has finished processing the request, call Get /// Operation Status. (see /// http://msdn.microsoft.com/en-us/library/windowsazure/ee460803.aspx /// for more information) /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.WindowsAzure.Management.Compute.IServiceCertificateOperations. /// </param> /// <param name='parameters'> /// Required. Parameters supplied to the Begin Deleting Service /// Certificate operation. /// </param> /// <returns> /// A standard service response including an HTTP status code and /// request ID. /// </returns> public static Task<AzureOperationResponse> BeginDeletingAsync(this IServiceCertificateOperations operations, ServiceCertificateDeleteParameters parameters) { return operations.BeginDeletingAsync(parameters, CancellationToken.None); }
/// <summary> /// The Delete Virtual network Gateway operation deletes a network /// gateway for the specified virtual network in Windows Azure. (see /// http://msdn.microsoft.com/en-us/library/windowsazure/jj154129.aspx /// for more information) /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.WindowsAzure.Management.VirtualNetworks.IGatewayOperations. /// </param> /// <param name='virtualNetworkName'> /// The name of the virtual network. /// </param> /// <returns> /// A standard storage response including an HTTP status code and /// request ID. /// </returns> public static GatewayOperationResponse BeginDeleting(this IGatewayOperations operations, string virtualNetworkName) { try { return operations.BeginDeletingAsync(virtualNetworkName).Result; } catch (AggregateException ex) { if (ex.InnerExceptions.Count > 1) { throw; } else { throw ex.InnerException; } } }
/// <summary> /// The Delete NetworkSecurityGroup operation deletes the specifed /// network security group /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.Network.INetworkSecurityGroupOperations. /// </param> /// <param name='resourceGroupName'> /// Required. The name of the resource group. /// </param> /// <param name='networkSecurityGroupName'> /// Required. The name of the network security group. /// </param> /// <returns> /// If the resource provide needs to return an error to any operation, /// it should return the appropriate HTTP error code and a message /// body as can be seen below.The message should be localized per the /// Accept-Language header specified in the original request such /// thatit could be directly be exposed to users /// </returns> public static Task<UpdateOperationResponse> BeginDeletingAsync(this INetworkSecurityGroupOperations operations, string resourceGroupName, string networkSecurityGroupName) { return operations.BeginDeletingAsync(resourceGroupName, networkSecurityGroupName, CancellationToken.None); }
/// <summary> /// Begins deleting the specified HDInsight cluster. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.HDInsight.IClusterOperations. /// </param> /// <param name='resourceGroupName'> /// Required. The name of the resource group. /// </param> /// <param name='clusterName'> /// Required. The name of the cluster. /// </param> /// <returns> /// The cluster long running operation response. /// </returns> public static Task<HDInsightOperationResponse> BeginDeletingAsync(this IClusterOperations operations, string resourceGroupName, string clusterName) { return operations.BeginDeletingAsync(resourceGroupName, clusterName, CancellationToken.None); }
/// <summary> /// The Delete Store Item operation deletes Windows Azure Store entries /// that re provisioned for a subscription. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.WindowsAzure.Management.Store.IAddOnOperations. /// </param> /// <param name='cloudServiceName'> /// The name of the cloud service to which this store item will be /// assigned. /// </param> /// <param name='resourceProviderNamespace'> /// The namespace in which this store item resides. /// </param> /// <param name='resourceProviderType'> /// The type of store item to be deleted. /// </param> /// <param name='resourceProviderName'> /// The name of this resource provider. /// </param> /// <returns> /// The response body contains the status of the specified asynchronous /// operation, indicating whether it has succeeded, is inprogress, or /// has failed. Note that this status is distinct from the HTTP status /// code returned for the Get Operation Status operation itself. If /// the asynchronous operation succeeded, the response body includes /// the HTTP status code for the successful request. If the /// asynchronous operation failed, the response body includes the HTTP /// status code for the failed request, and also includes error /// information regarding the failure. /// </returns> public static AddOnOperationStatusResponse BeginDeleting(this IAddOnOperations operations, string cloudServiceName, string resourceProviderNamespace, string resourceProviderType, string resourceProviderName) { try { return operations.BeginDeletingAsync(cloudServiceName, resourceProviderNamespace, resourceProviderType, resourceProviderName).Result; } catch (AggregateException ex) { if (ex.InnerExceptions.Count > 1) { throw; } else { throw ex.InnerException; } } }
/// <summary> /// The Delete RouteTable operation deletes the specifed Route Table /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.Network.IRouteTableOperations. /// </param> /// <param name='resourceGroupName'> /// Required. The name of the resource group. /// </param> /// <param name='routeTableName'> /// Required. The name of the route table. /// </param> /// <returns> /// If the resource provide needs to return an error to any operation, /// it should return the appropriate HTTP error code and a message /// body as can be seen below.The message should be localized per the /// Accept-Language header specified in the original request such /// thatit could be directly be exposed to users /// </returns> public static Task<UpdateOperationResponse> BeginDeletingAsync(this IRouteTableOperations operations, string resourceGroupName, string routeTableName) { return operations.BeginDeletingAsync(resourceGroupName, routeTableName, CancellationToken.None); }
/// <summary> /// Preview Only. The Delete Reserved IP operation removes a reserved /// IP from your the subscription. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.WindowsAzure.Management.Network.IReservedIPOperations. /// </param> /// <param name='ipName'> /// The name of the reserved IP. /// </param> /// <returns> /// A standard storage response including an HTTP status code and /// request ID. /// </returns> public static OperationResponse BeginDeleting(this IReservedIPOperations operations, string ipName) { try { return operations.BeginDeletingAsync(ipName).Result; } catch (AggregateException ex) { if (ex.InnerExceptions.Count > 1) { throw; } else { throw ex.InnerException; } } }
/// <summary> /// The Begin Deleteing Volume operation deletes the specified volume. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.WindowsAzure.Management.StorSimple.IVirtualDiskOperations. /// </param> /// <param name='deviceId'> /// Required. device id /// </param> /// <param name='diskId'> /// Required. Instance id of the virtual disk to be deleted. /// </param> /// <param name='customRequestHeaders'> /// Required. The Custom Request Headers which client must use. /// </param> /// <returns> /// This is the Task Response for all Async Calls /// </returns> public static Task<GuidTaskResponse> BeginDeletingAsync(this IVirtualDiskOperations operations, string deviceId, string diskId, CustomRequestHeaders customRequestHeaders) { return operations.BeginDeletingAsync(deviceId, diskId, customRequestHeaders, CancellationToken.None); }
/// <summary> /// Delete an internal load balancer from the deployment. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.WindowsAzure.Management.Compute.ILoadBalancerOperations. /// </param> /// <param name='serviceName'> /// Required. The name of the service. /// </param> /// <param name='deploymentName'> /// Required. The name of the deployment. /// </param> /// <param name='loadBalancerName'> /// Required. The name of the load balancer. /// </param> /// <returns> /// The response body contains the status of the specified asynchronous /// operation, indicating whether it has succeeded, is inprogress, or /// has failed. Note that this status is distinct from the HTTP status /// code returned for the Get Operation Status operation itself. If /// the asynchronous operation succeeded, the response body includes /// the HTTP status code for the successful request. If the /// asynchronous operation failed, the response body includes the HTTP /// status code for the failed request and error information regarding /// the failure. /// </returns> public static Task<OperationStatusResponse> BeginDeletingAsync(this ILoadBalancerOperations operations, string serviceName, string deploymentName, string loadBalancerName) { return operations.BeginDeletingAsync(serviceName, deploymentName, loadBalancerName, CancellationToken.None); }
/// <summary> /// Deletes a provider /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.SiteRecovery.IRecoveryServicesProviderOperations. /// </param> /// <param name='fabricName'> /// Required. Name of provider's fabric /// </param> /// <param name='providerName'> /// Required. Provider Name. /// </param> /// <param name='customRequestHeaders'> /// Optional. Request header parameters. /// </param> /// <returns> /// A standard service response for long running operations. /// </returns> public static Task<LongRunningOperationResponse> BeginDeletingAsync(this IRecoveryServicesProviderOperations operations, string fabricName, string providerName, CustomRequestHeaders customRequestHeaders) { return operations.BeginDeletingAsync(fabricName, providerName, customRequestHeaders, CancellationToken.None); }
/// <summary> /// Deletes a job collection. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.WindowsAzure.Management.Scheduler.IJobCollectionOperations. /// </param> /// <param name='cloudServiceName'> /// The name of the cloud service. /// </param> /// <param name='jobCollectionName'> /// The name of the job collection to delete. /// </param> /// <returns> /// A standard service response including an HTTP status code and /// request ID. /// </returns> public static Task<OperationResponse> BeginDeletingAsync(this IJobCollectionOperations operations, string cloudServiceName, string jobCollectionName) { return operations.BeginDeletingAsync(cloudServiceName, jobCollectionName, CancellationToken.None); }
/// <summary> /// Deletes a vCenter /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.SiteRecovery.IVCenterOperations. /// </param> /// <param name='fabricName'> /// Required. Fabric Name. /// </param> /// <param name='vCenterName'> /// Required. vCenter Name. /// </param> /// <param name='customRequestHeaders'> /// Optional. Request header parameters. /// </param> /// <returns> /// A standard service response for long running operations. /// </returns> public static Task<LongRunningOperationResponse> BeginDeletingAsync(this IVCenterOperations operations, string fabricName, string vCenterName, CustomRequestHeaders customRequestHeaders) { return operations.BeginDeletingAsync(fabricName, vCenterName, customRequestHeaders, CancellationToken.None); }
/// <summary> /// The Begin Deleting Virtual Network Gateway operation deletes a /// network gateway for the specified virtual network in Azure. (see /// http://msdn.microsoft.com/en-us/library/windowsazure/jj154129.aspx /// for more information) /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.WindowsAzure.Management.Network.IGatewayOperations. /// </param> /// <param name='networkName'> /// Required. The name of the virtual network. /// </param> /// <returns> /// A standard service response including an HTTP status code and /// request ID. /// </returns> public static Task<GatewayOperationResponse> BeginDeletingAsync(this IGatewayOperations operations, string networkName) { return operations.BeginDeletingAsync(networkName, CancellationToken.None); }
/// <summary> /// Begin deleting deployment.To determine whether the operation has /// finished processing the request, call /// GetLongRunningOperationStatus. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.Internal.Resources.IDeploymentOperations. /// </param> /// <param name='resourceGroupName'> /// Required. The name of the resource group. The name is case /// insensitive. /// </param> /// <param name='deploymentName'> /// Required. The name of the deployment to be deleted. /// </param> /// <returns> /// A standard service response for long running operations. /// </returns> public static Task<LongRunningOperationResponse> BeginDeletingAsync(this IDeploymentOperations operations, string resourceGroupName, string deploymentName) { return operations.BeginDeletingAsync(resourceGroupName, deploymentName, CancellationToken.None); }
/// <summary> /// The Delete LocalNetworkGateway operation deletes the specifed local /// network Gateway through Network resource provider. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.Network.ILocalNetworkGatewayOperations. /// </param> /// <param name='resourceGroupName'> /// Required. The name of the resource group. /// </param> /// <param name='localNetworkGatewayName'> /// Required. The name of the local network gateway. /// </param> /// <returns> /// If the resource provide needs to return an error to any operation, /// it should return the appropriate HTTP error code and a message /// body as can be seen below.The message should be localized per the /// Accept-Language header specified in the original request such /// thatit could be directly be exposed to users /// </returns> public static Task<UpdateOperationResponse> BeginDeletingAsync(this ILocalNetworkGatewayOperations operations, string resourceGroupName, string localNetworkGatewayName) { return operations.BeginDeletingAsync(resourceGroupName, localNetworkGatewayName, CancellationToken.None); }
/// <summary> /// The delete publicIpAddress operation deletes the specified /// publicIpAddress. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.Network.IPublicIpAddressOperations. /// </param> /// <param name='resourceGroupName'> /// Required. The name of the resource group. /// </param> /// <param name='publicIpAddressName'> /// Required. The name of the subnet. /// </param> /// <returns> /// If the resource provide needs to return an error to any operation, /// it should return the appropriate HTTP error code and a message /// body as can be seen below.The message should be localized per the /// Accept-Language header specified in the original request such /// thatit could be directly be exposed to users /// </returns> public static Task<UpdateOperationResponse> BeginDeletingAsync(this IPublicIpAddressOperations operations, string resourceGroupName, string publicIpAddressName) { return operations.BeginDeletingAsync(resourceGroupName, publicIpAddressName, CancellationToken.None); }