-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate RecoveryServices SDK from autorest.csharp to autorest.powersh…
…ell (#23101) * Migrate RecoveryServices SDK from autorest.csharp to autorest.powershell * Suppress breaking change errors due to only letter case change
- Loading branch information
1 parent
8b823a0
commit 3fdfb7e
Showing
1,480 changed files
with
77,533 additions
and
80,475 deletions.
There are no files selected for viewing
144 changes: 74 additions & 70 deletions
144
...eryServices.Backup.CrossRegionRestore.Management.Sdk/Generated/AadPropertiesOperations.cs
Large diffs are not rendered by default.
Oops, something went wrong.
89 changes: 39 additions & 50 deletions
89
...s.Backup.CrossRegionRestore.Management.Sdk/Generated/AadPropertiesOperationsExtensions.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 |
---|---|---|
@@ -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; | ||
} | ||
|
||
} | ||
} | ||
} |
Oops, something went wrong.