/// <summary> /// Lists the long term retention backups for a given managed instance. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group that contains the resource. You can obtain /// this value from the Azure Resource Manager API or the portal. /// </param> /// <param name='locationName'> /// The location of the database. /// </param> /// <param name='managedInstanceName'> /// The name of the managed instance. /// </param> /// <param name='onlyLatestPerDatabase'> /// Whether or not to only get the latest backup for each database. /// </param> /// <param name='databaseState'> /// Whether to query against just live databases, just deleted databases, or /// all databases. Possible values include: 'All', 'Live', 'Deleted' /// </param> public static IPage <ManagedInstanceLongTermRetentionBackup> ListByResourceGroupInstance(this ILongTermRetentionManagedInstanceBackupsOperations operations, string resourceGroupName, string locationName, string managedInstanceName, bool?onlyLatestPerDatabase = default(bool?), string databaseState = default(string)) { return(operations.ListByResourceGroupInstanceAsync(resourceGroupName, locationName, managedInstanceName, onlyLatestPerDatabase, databaseState).GetAwaiter().GetResult()); }