forked from Azure/azure-sdk-for-net
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generated from db4f6148f63b27fc164553742720b55ba08e3ef9
Fixed readme
- Loading branch information
SDK Automation
committed
Dec 10, 2019
1 parent
17e4d05
commit 8c206e3
Showing
515 changed files
with
157,243 additions
and
0 deletions.
There are no files selected for viewing
715 changes: 715 additions & 0 deletions
715
...Microsoft.Azure.Management.Sql/src/Generated/BackupLongTermRetentionPoliciesOperations.cs
Large diffs are not rendered by default.
Oops, something went wrong.
229 changes: 229 additions & 0 deletions
229
...Azure.Management.Sql/src/Generated/BackupLongTermRetentionPoliciesOperationsExtensions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,229 @@ | ||
// <auto-generated> | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. See License.txt in the project root for | ||
// license information. | ||
// | ||
// Code generated by Microsoft (R) AutoRest Code Generator. | ||
// Changes may cause incorrect behavior and will be lost if the code is | ||
// regenerated. | ||
// </auto-generated> | ||
|
||
namespace Microsoft.Azure.Management.Sql | ||
{ | ||
using Microsoft.Rest; | ||
using Microsoft.Rest.Azure; | ||
using Models; | ||
using System.Threading; | ||
using System.Threading.Tasks; | ||
|
||
/// <summary> | ||
/// Extension methods for BackupLongTermRetentionPoliciesOperations. | ||
/// </summary> | ||
public static partial class BackupLongTermRetentionPoliciesOperationsExtensions | ||
{ | ||
/// <summary> | ||
/// Gets a database's long term retention policy. | ||
/// </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='serverName'> | ||
/// The name of the server. | ||
/// </param> | ||
/// <param name='databaseName'> | ||
/// The name of the database. | ||
/// </param> | ||
public static BackupLongTermRetentionPolicy Get(this IBackupLongTermRetentionPoliciesOperations operations, string resourceGroupName, string serverName, string databaseName) | ||
{ | ||
return operations.GetAsync(resourceGroupName, serverName, databaseName).GetAwaiter().GetResult(); | ||
} | ||
|
||
/// <summary> | ||
/// Gets a database's long term retention policy. | ||
/// </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='serverName'> | ||
/// The name of the server. | ||
/// </param> | ||
/// <param name='databaseName'> | ||
/// The name of the database. | ||
/// </param> | ||
/// <param name='cancellationToken'> | ||
/// The cancellation token. | ||
/// </param> | ||
public static async Task<BackupLongTermRetentionPolicy> GetAsync(this IBackupLongTermRetentionPoliciesOperations operations, string resourceGroupName, string serverName, string databaseName, CancellationToken cancellationToken = default(CancellationToken)) | ||
{ | ||
using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, null, cancellationToken).ConfigureAwait(false)) | ||
{ | ||
return _result.Body; | ||
} | ||
} | ||
|
||
/// <summary> | ||
/// Sets a database's long term retention policy. | ||
/// </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='serverName'> | ||
/// The name of the server. | ||
/// </param> | ||
/// <param name='databaseName'> | ||
/// The name of the database. | ||
/// </param> | ||
/// <param name='parameters'> | ||
/// The long term retention policy info. | ||
/// </param> | ||
public static BackupLongTermRetentionPolicy CreateOrUpdate(this IBackupLongTermRetentionPoliciesOperations operations, string resourceGroupName, string serverName, string databaseName, BackupLongTermRetentionPolicy parameters) | ||
{ | ||
return operations.CreateOrUpdateAsync(resourceGroupName, serverName, databaseName, parameters).GetAwaiter().GetResult(); | ||
} | ||
|
||
/// <summary> | ||
/// Sets a database's long term retention policy. | ||
/// </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='serverName'> | ||
/// The name of the server. | ||
/// </param> | ||
/// <param name='databaseName'> | ||
/// The name of the database. | ||
/// </param> | ||
/// <param name='parameters'> | ||
/// The long term retention policy info. | ||
/// </param> | ||
/// <param name='cancellationToken'> | ||
/// The cancellation token. | ||
/// </param> | ||
public static async Task<BackupLongTermRetentionPolicy> CreateOrUpdateAsync(this IBackupLongTermRetentionPoliciesOperations operations, string resourceGroupName, string serverName, string databaseName, BackupLongTermRetentionPolicy parameters, CancellationToken cancellationToken = default(CancellationToken)) | ||
{ | ||
using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, parameters, null, cancellationToken).ConfigureAwait(false)) | ||
{ | ||
return _result.Body; | ||
} | ||
} | ||
|
||
/// <summary> | ||
/// Gets a database's long term retention policy. | ||
/// </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='serverName'> | ||
/// The name of the server. | ||
/// </param> | ||
/// <param name='databaseName'> | ||
/// The name of the database. | ||
/// </param> | ||
public static BackupLongTermRetentionPolicy ListByDatabase(this IBackupLongTermRetentionPoliciesOperations operations, string resourceGroupName, string serverName, string databaseName) | ||
{ | ||
return operations.ListByDatabaseAsync(resourceGroupName, serverName, databaseName).GetAwaiter().GetResult(); | ||
} | ||
|
||
/// <summary> | ||
/// Gets a database's long term retention policy. | ||
/// </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='serverName'> | ||
/// The name of the server. | ||
/// </param> | ||
/// <param name='databaseName'> | ||
/// The name of the database. | ||
/// </param> | ||
/// <param name='cancellationToken'> | ||
/// The cancellation token. | ||
/// </param> | ||
public static async Task<BackupLongTermRetentionPolicy> ListByDatabaseAsync(this IBackupLongTermRetentionPoliciesOperations operations, string resourceGroupName, string serverName, string databaseName, CancellationToken cancellationToken = default(CancellationToken)) | ||
{ | ||
using (var _result = await operations.ListByDatabaseWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, null, cancellationToken).ConfigureAwait(false)) | ||
{ | ||
return _result.Body; | ||
} | ||
} | ||
|
||
/// <summary> | ||
/// Sets a database's long term retention policy. | ||
/// </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='serverName'> | ||
/// The name of the server. | ||
/// </param> | ||
/// <param name='databaseName'> | ||
/// The name of the database. | ||
/// </param> | ||
/// <param name='parameters'> | ||
/// The long term retention policy info. | ||
/// </param> | ||
public static BackupLongTermRetentionPolicy BeginCreateOrUpdate(this IBackupLongTermRetentionPoliciesOperations operations, string resourceGroupName, string serverName, string databaseName, BackupLongTermRetentionPolicy parameters) | ||
{ | ||
return operations.BeginCreateOrUpdateAsync(resourceGroupName, serverName, databaseName, parameters).GetAwaiter().GetResult(); | ||
} | ||
|
||
/// <summary> | ||
/// Sets a database's long term retention policy. | ||
/// </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='serverName'> | ||
/// The name of the server. | ||
/// </param> | ||
/// <param name='databaseName'> | ||
/// The name of the database. | ||
/// </param> | ||
/// <param name='parameters'> | ||
/// The long term retention policy info. | ||
/// </param> | ||
/// <param name='cancellationToken'> | ||
/// The cancellation token. | ||
/// </param> | ||
public static async Task<BackupLongTermRetentionPolicy> BeginCreateOrUpdateAsync(this IBackupLongTermRetentionPoliciesOperations operations, string resourceGroupName, string serverName, string databaseName, BackupLongTermRetentionPolicy parameters, CancellationToken cancellationToken = default(CancellationToken)) | ||
{ | ||
using (var _result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, parameters, null, cancellationToken).ConfigureAwait(false)) | ||
{ | ||
return _result.Body; | ||
} | ||
} | ||
|
||
} | ||
} |
Oops, something went wrong.