Skip to content

Commit

Permalink
Migrate RecoveryServices SDK from autorest.csharp to autorest.powersh…
Browse files Browse the repository at this point in the history
…ell (#23101)

* Migrate RecoveryServices SDK from autorest.csharp to autorest.powershell

* Suppress breaking change errors due to only letter case change
  • Loading branch information
vidai-msft authored Oct 31, 2023
1 parent 8b823a0 commit 3fdfb7e
Show file tree
Hide file tree
Showing 1,480 changed files with 77,533 additions and 80,475 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,66 +1,55 @@
// <auto-generated>
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
//
// 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>

// Changes may cause incorrect behavior and will be lost if the code is regenerated.
namespace Microsoft.Azure.Management.RecoveryServices.Backup.CrossRegionRestore
{
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Microsoft.Rest.Azure.OData;
using Models;
using System.Threading;
using System.Threading.Tasks;

/// <summary>
/// Extension methods for AadPropertiesOperations.
/// Extension methods for AadPropertiesOperations
/// </summary>
public static partial class AadPropertiesOperationsExtensions
{
/// <summary>
/// Fetches the AAD properties from target region BCM stamp.
/// </summary>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='azureRegion'>
/// Azure region to hit Api
/// </param>
/// <param name='odataQuery'>
/// OData parameters to apply to the operation.
/// </param>
public static AADPropertiesResource Get(this IAadPropertiesOperations operations, string azureRegion, ODataQuery<BMSAADPropertiesQueryObject> odataQuery = default(ODataQuery<BMSAADPropertiesQueryObject>))
{
return operations.GetAsync(azureRegion, odataQuery).GetAwaiter().GetResult();
}
/// <summary>
/// Fetches the AAD properties from target region BCM stamp.
/// </summary>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='odataQuery'>
///
/// </param>
/// <param name='azureRegion'>
/// Azure region to hit Api
/// </param>
public static AADPropertiesResource Get(this IAadPropertiesOperations operations, string azureRegion, Microsoft.Rest.Azure.OData.ODataQuery<BmsaadPropertiesQueryObject> odataQuery = default(Microsoft.Rest.Azure.OData.ODataQuery<BmsaadPropertiesQueryObject>))
{
return ((IAadPropertiesOperations)operations).GetAsync(azureRegion, odataQuery).GetAwaiter().GetResult();
}

/// <summary>
/// Fetches the AAD properties from target region BCM stamp.
/// </summary>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='azureRegion'>
/// Azure region to hit Api
/// </param>
/// <param name='odataQuery'>
/// OData parameters to apply to the operation.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<AADPropertiesResource> GetAsync(this IAadPropertiesOperations operations, string azureRegion, ODataQuery<BMSAADPropertiesQueryObject> odataQuery = default(ODataQuery<BMSAADPropertiesQueryObject>), CancellationToken cancellationToken = default(CancellationToken))
/// <summary>
/// Fetches the AAD properties from target region BCM stamp.
/// </summary>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='odataQuery'>
///
/// </param>
/// <param name='azureRegion'>
/// Azure region to hit Api
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async System.Threading.Tasks.Task<AADPropertiesResource> GetAsync(this IAadPropertiesOperations operations, string azureRegion, Microsoft.Rest.Azure.OData.ODataQuery<BmsaadPropertiesQueryObject> odataQuery = default(Microsoft.Rest.Azure.OData.ODataQuery<BmsaadPropertiesQueryObject>), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
using (var _result = await operations.GetWithHttpMessagesAsync(azureRegion, odataQuery, null, cancellationToken).ConfigureAwait(false))
{
using (var _result = await operations.GetWithHttpMessagesAsync(azureRegion, odataQuery, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
return _result.Body;
}

}
}
}
Loading

0 comments on commit 3fdfb7e

Please sign in to comment.