Skip to content

Commit

Permalink
Revert "Az.StorageSync | Onboarding ApiVersion 2022-09-01 with Manage…
Browse files Browse the repository at this point in the history
…dIdentity and FastDRv2 feature (Azure#23060)"

This reverts commit 439df5d.
  • Loading branch information
NoriZC committed Jul 4, 2024
1 parent 8a4d604 commit 437f0ae
Show file tree
Hide file tree
Showing 377 changed files with 40,254 additions and 76,440 deletions.
9 changes: 1 addition & 8 deletions src/Accounts/Authentication/Factories/ClientFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,7 @@ public virtual TClient CreateArmClient<TClient>(IAzureContext context, string en
var subscriptionId = typeof(TClient).GetProperty("SubscriptionId");
if (subscriptionId != null && context.Subscription != null)
{
if (subscriptionId.PropertyType == typeof(Guid))
{
subscriptionId.SetValue(client, Guid.Parse(context.Subscription.Id));
}
else
{
subscriptionId.SetValue(client, context.Subscription.Id);
}
subscriptionId.SetValue(client, context.Subscription.Id.ToString());
}

return client;
Expand Down
1,722 changes: 742 additions & 980 deletions src/StorageSync/StorageSync.Sdk/Generated/CloudEndpointsOperations.cs

Large diffs are not rendered by default.

1,887 changes: 968 additions & 919 deletions src/StorageSync/StorageSync.Sdk/Generated/CloudEndpointsOperationsExtensions.cs

Large diffs are not rendered by default.

243 changes: 101 additions & 142 deletions src/StorageSync/StorageSync.Sdk/Generated/ICloudEndpointsOperations.cs

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,12 +1,22 @@
// <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.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
// </auto-generated>

namespace Microsoft.Azure.Management.StorageSync
{
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Models;
using System.Collections;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;

/// <summary>
/// OperationStatusOperations operations.
Expand All @@ -16,9 +26,6 @@ public partial interface IOperationStatusOperations
/// <summary>
/// Get Operation status
/// </summary>
/// <remarks>
/// Get Operation status
/// </remarks>
/// <param name='resourceGroupName'>
/// The name of the resource group. The name is case insensitive.
/// </param>
Expand All @@ -37,13 +44,15 @@ public partial interface IOperationStatusOperations
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
/// <exception cref="Microsoft.Rest.Azure.CloudException">
/// <exception cref="StorageSyncErrorException">
/// Thrown when the operation returned an invalid status code
/// </exception>
/// <exception cref="Microsoft.Rest.SerializationException">
/// Thrown when unable to deserialize the response
/// </exception>
System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<OperationStatus,OperationStatusGetHeaders>> GetWithHttpMessagesAsync(string resourceGroupName, string locationName, string workflowId, string operationId, System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));

/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
Task<AzureOperationResponse<OperationStatus,OperationStatusGetHeaders>> GetWithHttpMessagesAsync(string resourceGroupName, string locationName, string workflowId, string operationId, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
}
}
}
38 changes: 23 additions & 15 deletions src/StorageSync/StorageSync.Sdk/Generated/IOperations.cs
Original file line number Diff line number Diff line change
@@ -1,12 +1,22 @@
// <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.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
// </auto-generated>

namespace Microsoft.Azure.Management.StorageSync
{
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Models;
using System.Collections;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;

/// <summary>
/// Operations operations.
Expand All @@ -16,29 +26,25 @@ public partial interface IOperations
/// <summary>
/// Lists all of the available Storage Sync Rest API operations.
/// </summary>
/// <remarks>
/// Lists all of the available Storage Sync Rest API operations.
/// </remarks>
/// <param name='customHeaders'>
/// The headers that will be added to request.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
/// <exception cref="Microsoft.Rest.Azure.CloudException">
/// <exception cref="StorageSyncErrorException">
/// Thrown when the operation returned an invalid status code
/// </exception>
/// <exception cref="Microsoft.Rest.SerializationException">
/// Thrown when unable to deserialize the response
/// </exception>
System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Rest.Azure.IPage<OperationEntity>,OperationsListHeaders>> ListWithHttpMessagesAsync(System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));

/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
Task<AzureOperationResponse<IPage<OperationEntity>,OperationsListHeaders>> ListWithHttpMessagesAsync(Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Lists all of the available Storage Sync Rest API operations.
/// </summary>
/// <remarks>
/// Lists all of the available Storage Sync Rest API operations.
/// </remarks>
/// <param name='nextPageLink'>
/// The NextLink from the previous successful call to List operation.
/// </param>
Expand All @@ -48,13 +54,15 @@ public partial interface IOperations
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
/// <exception cref="Microsoft.Rest.Azure.CloudException">
/// <exception cref="StorageSyncErrorException">
/// Thrown when the operation returned an invalid status code
/// </exception>
/// <exception cref="Microsoft.Rest.SerializationException">
/// Thrown when unable to deserialize the response
/// </exception>
System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Rest.Azure.IPage<OperationEntity>,OperationsListHeaders>> ListNextWithHttpMessagesAsync(string nextPageLink, System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));

/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
Task<AzureOperationResponse<IPage<OperationEntity>,OperationsListHeaders>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
}
}
}
Loading

0 comments on commit 437f0ae

Please sign in to comment.