/// <summary>
 /// List placement policies in a private cloud cluster
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group. The name is case insensitive.
 /// </param>
 /// <param name='privateCloudName'>
 /// Name of the private cloud
 /// </param>
 /// <param name='clusterName'>
 /// Name of the cluster in the private cloud
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IPage <PlacementPolicy> > ListAsync(this IPlacementPoliciesOperations operations, string resourceGroupName, string privateCloudName, string clusterName, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroupName, privateCloudName, clusterName, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// List placement policies in a private cloud cluster
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='nextPageLink'>
 /// The NextLink from the previous successful call to List operation.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IPage <PlacementPolicy> > ListNextAsync(this IPlacementPoliciesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Get a placement policy by name in a private cloud cluster
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group. The name is case insensitive.
 /// </param>
 /// <param name='privateCloudName'>
 /// Name of the private cloud
 /// </param>
 /// <param name='clusterName'>
 /// Name of the cluster in the private cloud
 /// </param>
 /// <param name='placementPolicyName'>
 /// Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement
 /// policy
 /// </param>
 public static PlacementPolicy Get(this IPlacementPoliciesOperations operations, string resourceGroupName, string privateCloudName, string clusterName, string placementPolicyName)
 {
     return(operations.GetAsync(resourceGroupName, privateCloudName, clusterName, placementPolicyName).GetAwaiter().GetResult());
 }
 /// <summary>
 /// List placement policies in a private cloud cluster
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='nextPageLink'>
 /// The NextLink from the previous successful call to List operation.
 /// </param>
 public static IPage <PlacementPolicy> ListNext(this IPlacementPoliciesOperations operations, string nextPageLink)
 {
     return(operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Delete a placement policy in a private cloud cluster
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group. The name is case insensitive.
 /// </param>
 /// <param name='privateCloudName'>
 /// Name of the private cloud
 /// </param>
 /// <param name='clusterName'>
 /// Name of the cluster in the private cloud
 /// </param>
 /// <param name='placementPolicyName'>
 /// Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement
 /// policy
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task BeginDeleteAsync(this IPlacementPoliciesOperations operations, string resourceGroupName, string privateCloudName, string clusterName, string placementPolicyName, CancellationToken cancellationToken = default(CancellationToken))
 {
     (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, privateCloudName, clusterName, placementPolicyName, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }
 /// <summary>
 /// Delete a placement policy in a private cloud cluster
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group. The name is case insensitive.
 /// </param>
 /// <param name='privateCloudName'>
 /// Name of the private cloud
 /// </param>
 /// <param name='clusterName'>
 /// Name of the cluster in the private cloud
 /// </param>
 /// <param name='placementPolicyName'>
 /// Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement
 /// policy
 /// </param>
 public static void BeginDelete(this IPlacementPoliciesOperations operations, string resourceGroupName, string privateCloudName, string clusterName, string placementPolicyName)
 {
     operations.BeginDeleteAsync(resourceGroupName, privateCloudName, clusterName, placementPolicyName).GetAwaiter().GetResult();
 }
 /// <summary>
 /// Create or update a placement policy in a private cloud cluster
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group. The name is case insensitive.
 /// </param>
 /// <param name='privateCloudName'>
 /// Name of the private cloud
 /// </param>
 /// <param name='clusterName'>
 /// Name of the cluster in the private cloud
 /// </param>
 /// <param name='placementPolicyName'>
 /// Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement
 /// policy
 /// </param>
 /// <param name='placementPolicy'>
 /// A placement policy in the private cloud cluster
 /// </param>
 public static PlacementPolicy BeginCreateOrUpdate(this IPlacementPoliciesOperations operations, string resourceGroupName, string privateCloudName, string clusterName, string placementPolicyName, PlacementPolicy placementPolicy)
 {
     return(operations.BeginCreateOrUpdateAsync(resourceGroupName, privateCloudName, clusterName, placementPolicyName, placementPolicy).GetAwaiter().GetResult());
 }