Skip to content

Commit 437f0ae

Browse files
committed
Revert "Az.StorageSync | Onboarding ApiVersion 2022-09-01 with ManagedIdentity and FastDRv2 feature (#23060)"
This reverts commit 439df5d.
1 parent 8a4d604 commit 437f0ae

File tree

377 files changed

+40254
-76440
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

377 files changed

+40254
-76440
lines changed

src/Accounts/Authentication/Factories/ClientFactory.cs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -67,14 +67,7 @@ public virtual TClient CreateArmClient<TClient>(IAzureContext context, string en
6767
var subscriptionId = typeof(TClient).GetProperty("SubscriptionId");
6868
if (subscriptionId != null && context.Subscription != null)
6969
{
70-
if (subscriptionId.PropertyType == typeof(Guid))
71-
{
72-
subscriptionId.SetValue(client, Guid.Parse(context.Subscription.Id));
73-
}
74-
else
75-
{
76-
subscriptionId.SetValue(client, context.Subscription.Id);
77-
}
70+
subscriptionId.SetValue(client, context.Subscription.Id.ToString());
7871
}
7972

8073
return client;

src/StorageSync/StorageSync.Sdk/Generated/CloudEndpointsOperations.cs

Lines changed: 742 additions & 980 deletions
Large diffs are not rendered by default.

src/StorageSync/StorageSync.Sdk/Generated/CloudEndpointsOperationsExtensions.cs

Lines changed: 968 additions & 919 deletions
Large diffs are not rendered by default.

src/StorageSync/StorageSync.Sdk/Generated/ICloudEndpointsOperations.cs

Lines changed: 101 additions & 142 deletions
Large diffs are not rendered by default.

src/StorageSync/StorageSync.Sdk/Generated/IOperationStatusOperations.cs

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,22 @@
1+
// <auto-generated>
12
// Copyright (c) Microsoft Corporation. All rights reserved.
2-
// Licensed under the MIT License. See License.txt in the project root for license information.
3+
// Licensed under the MIT License. See License.txt in the project root for
4+
// license information.
5+
//
36
// Code generated by Microsoft (R) AutoRest Code Generator.
4-
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
7+
// Changes may cause incorrect behavior and will be lost if the code is
8+
// regenerated.
9+
// </auto-generated>
510

611
namespace Microsoft.Azure.Management.StorageSync
712
{
13+
using Microsoft.Rest;
814
using Microsoft.Rest.Azure;
915
using Models;
16+
using System.Collections;
17+
using System.Collections.Generic;
18+
using System.Threading;
19+
using System.Threading.Tasks;
1020

1121
/// <summary>
1222
/// OperationStatusOperations operations.
@@ -16,9 +26,6 @@ public partial interface IOperationStatusOperations
1626
/// <summary>
1727
/// Get Operation status
1828
/// </summary>
19-
/// <remarks>
20-
/// Get Operation status
21-
/// </remarks>
2229
/// <param name='resourceGroupName'>
2330
/// The name of the resource group. The name is case insensitive.
2431
/// </param>
@@ -37,13 +44,15 @@ public partial interface IOperationStatusOperations
3744
/// <param name='cancellationToken'>
3845
/// The cancellation token.
3946
/// </param>
40-
/// <exception cref="Microsoft.Rest.Azure.CloudException">
47+
/// <exception cref="StorageSyncErrorException">
4148
/// Thrown when the operation returned an invalid status code
4249
/// </exception>
4350
/// <exception cref="Microsoft.Rest.SerializationException">
4451
/// Thrown when unable to deserialize the response
4552
/// </exception>
46-
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));
47-
53+
/// <exception cref="Microsoft.Rest.ValidationException">
54+
/// Thrown when a required parameter is null
55+
/// </exception>
56+
Task<AzureOperationResponse<OperationStatus,OperationStatusGetHeaders>> GetWithHttpMessagesAsync(string resourceGroupName, string locationName, string workflowId, string operationId, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
4857
}
49-
}
58+
}
Lines changed: 23 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,22 @@
1+
// <auto-generated>
12
// Copyright (c) Microsoft Corporation. All rights reserved.
2-
// Licensed under the MIT License. See License.txt in the project root for license information.
3+
// Licensed under the MIT License. See License.txt in the project root for
4+
// license information.
5+
//
36
// Code generated by Microsoft (R) AutoRest Code Generator.
4-
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
7+
// Changes may cause incorrect behavior and will be lost if the code is
8+
// regenerated.
9+
// </auto-generated>
510

611
namespace Microsoft.Azure.Management.StorageSync
712
{
13+
using Microsoft.Rest;
814
using Microsoft.Rest.Azure;
915
using Models;
16+
using System.Collections;
17+
using System.Collections.Generic;
18+
using System.Threading;
19+
using System.Threading.Tasks;
1020

1121
/// <summary>
1222
/// Operations operations.
@@ -16,29 +26,25 @@ public partial interface IOperations
1626
/// <summary>
1727
/// Lists all of the available Storage Sync Rest API operations.
1828
/// </summary>
19-
/// <remarks>
20-
/// Lists all of the available Storage Sync Rest API operations.
21-
/// </remarks>
2229
/// <param name='customHeaders'>
2330
/// The headers that will be added to request.
2431
/// </param>
2532
/// <param name='cancellationToken'>
2633
/// The cancellation token.
2734
/// </param>
28-
/// <exception cref="Microsoft.Rest.Azure.CloudException">
35+
/// <exception cref="StorageSyncErrorException">
2936
/// Thrown when the operation returned an invalid status code
3037
/// </exception>
3138
/// <exception cref="Microsoft.Rest.SerializationException">
3239
/// Thrown when unable to deserialize the response
3340
/// </exception>
34-
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));
35-
41+
/// <exception cref="Microsoft.Rest.ValidationException">
42+
/// Thrown when a required parameter is null
43+
/// </exception>
44+
Task<AzureOperationResponse<IPage<OperationEntity>,OperationsListHeaders>> ListWithHttpMessagesAsync(Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
3645
/// <summary>
3746
/// Lists all of the available Storage Sync Rest API operations.
3847
/// </summary>
39-
/// <remarks>
40-
/// Lists all of the available Storage Sync Rest API operations.
41-
/// </remarks>
4248
/// <param name='nextPageLink'>
4349
/// The NextLink from the previous successful call to List operation.
4450
/// </param>
@@ -48,13 +54,15 @@ public partial interface IOperations
4854
/// <param name='cancellationToken'>
4955
/// The cancellation token.
5056
/// </param>
51-
/// <exception cref="Microsoft.Rest.Azure.CloudException">
57+
/// <exception cref="StorageSyncErrorException">
5258
/// Thrown when the operation returned an invalid status code
5359
/// </exception>
5460
/// <exception cref="Microsoft.Rest.SerializationException">
5561
/// Thrown when unable to deserialize the response
5662
/// </exception>
57-
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));
58-
63+
/// <exception cref="Microsoft.Rest.ValidationException">
64+
/// Thrown when a required parameter is null
65+
/// </exception>
66+
Task<AzureOperationResponse<IPage<OperationEntity>,OperationsListHeaders>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
5967
}
60-
}
68+
}

0 commit comments

Comments
 (0)