/// <summary>
 /// Updates a Azure SQL Database Geo Backup Policy.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.Sql.IDatabaseBackupOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The name of the Resource Group to which the server
 /// belongs.
 /// </param>
 /// <param name='serverName'>
 /// Required. The name of the Azure SQL Database Server to retrieve geo
 /// backup policies for.
 /// </param>
 /// <param name='databaseName'>
 /// Required. The name of the Azure SQL Database to retrieve geo backup
 /// policies for.
 /// </param>
 /// <param name='geoBackupPolicyName'>
 /// Required. The name of the Azure SQL Database Geo Backup Policy to
 /// retrieve geo backup policies for.
 /// </param>
 /// <param name='parameters'>
 /// Required. The required parameters for creating or updating a SQL
 /// Database Geo Backup Policy.
 /// </param>
 /// <returns>
 /// Response for Azure Sql Database Geo Backup Policy operations.
 /// </returns>
 public static GeoBackupPolicyCreateOrUpdateResponse CreateOrUpdateGeoBackupPolicy(this IDatabaseBackupOperations operations, string resourceGroupName, string serverName, string databaseName, string geoBackupPolicyName, GeoBackupPolicyCreateOrUpdateParameters parameters)
 {
     return Task.Factory.StartNew((object s) => 
     {
         return ((IDatabaseBackupOperations)s).CreateOrUpdateGeoBackupPolicyAsync(resourceGroupName, serverName, databaseName, geoBackupPolicyName, parameters);
     }
     , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult();
 }
 /// <summary>
 /// Updates a Azure SQL Database Geo Backup Policy.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.Sql.IDatabaseBackupOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The name of the Resource Group to which the server
 /// belongs.
 /// </param>
 /// <param name='serverName'>
 /// Required. The name of the Azure SQL Database Server to retrieve geo
 /// backup policies for.
 /// </param>
 /// <param name='databaseName'>
 /// Required. The name of the Azure SQL Database to retrieve geo backup
 /// policies for.
 /// </param>
 /// <param name='geoBackupPolicyName'>
 /// Required. The name of the Azure SQL Database Geo Backup Policy to
 /// retrieve geo backup policies for.
 /// </param>
 /// <param name='parameters'>
 /// Required. The required parameters for creating or updating a SQL
 /// Database Geo Backup Policy.
 /// </param>
 /// <returns>
 /// Response for Azure Sql Database Geo Backup Policy operations.
 /// </returns>
 public static Task<GeoBackupPolicyCreateOrUpdateResponse> CreateOrUpdateGeoBackupPolicyAsync(this IDatabaseBackupOperations operations, string resourceGroupName, string serverName, string databaseName, string geoBackupPolicyName, GeoBackupPolicyCreateOrUpdateParameters parameters)
 {
     return operations.CreateOrUpdateGeoBackupPolicyAsync(resourceGroupName, serverName, databaseName, geoBackupPolicyName, parameters, CancellationToken.None);
 }
 /// <summary>
 /// Creates or updates a geo backup policy
 /// </summary>
 public Management.Sql.Models.GeoBackupPolicy SetDatabaseGeoBackupPolicy(
     string resourceGroupName,
     string serverName,
     string databaseName,
     string policyName,
     string clientRequestId,
     GeoBackupPolicyCreateOrUpdateParameters parameters)
 {
     return GetCurrentSqlClient(clientRequestId).DatabaseBackup.CreateOrUpdateGeoBackupPolicy(
         resourceGroupName,
         serverName,
         databaseName,
         policyName,
         parameters).GeoBackupPolicy;
 }