Skip to content

Commit 439df5d

Browse files
ankushbindlish2jlindamoodJames LindamoodVeryEarly
authored
Az.StorageSync | Onboarding ApiVersion 2022-09-01 with ManagedIdentity and FastDRv2 feature (#23060)
* Merge all changes * Set-AzStorageSyncServiceIdentity * Fix ToolFx issue * RemoveServerEndpointCommandPermission * Update RemoveServerEndpointCommand.cs * Update ClientFactory.cs * Update Az.StorageSync.psd1 * Update SetStorageSyncServiceIdentityCommand.cs * Update auth package * missed files * Update test * SyncGroup test recording * CloudEndpoint test * Update StorageSyncClientWrapper.cs * Help files * add converters and PS models for SEPProvisioningStatus * Test Recordings: RegisteredServer & ServerEndpoint * update help * add SupportsShouldProcess to SetCloudEndpointPermissionCommand * payload-flattening-threshold to 1 to match generation * fix help online URLs * fill in help information for new cmdlets * Bug 25892553: [Az] SEP/CEP creation cmdlets should skip RBAC creation if UseIdentity is false for CEP and ActiveAuthType is certificate Bug 25892553: [Az] SEP/CEP creation cmdlets should skip RBAC creation if UseIdentity is false for CEP and ActiveAuthType is certificate * update CloudEndpointCrossTenantError format * add updated SEP recording * updated CEP recordings * set tenant to test tenant when in Playback mode * remove redundant ContainsKey check * add comments to explain TenantId default in test * bugs * bugs * create MockSyncServerRegistrationClient for SDK.Test, and instantiate SyncServerRegistration from StorageSyncResourceManager * Bug 26092466: Re-Migration failed with 'Value cannot be null' * fix .psd1 (referenced incorrect cmdlet names), create help for missing cmdlets (only found in publishing) * Static Analyis * Update SetStorageSyncServiceIdentityCommand.cs * Sync Interop * Update * Bug 28103648: Set-AzStorageSyncServiceIdentity does not create RBACs for cluster node servers * Fix bug for handling cluster node * StorageSyncService Tests * Sync Group Tests * CloudEndpoint test * Bug Fix for registeration server * Registered Server Tests recording * ServerEndpoint recording tests completed * Make Playback tests passing due the testfx constraint of mocking tenant id in playback mode * Generate SDK with autorest powershell https://eng.ms/docs/cloud-ai-platform/azure-core/azure-management-and-platforms/control-plane-bburns/azure-cli-tools-azure-cli-powershell-and-terraform/azure-cli-tools/devguide/azps/coding/generate-sdk-with-autorest-powershell * Revert * autorest powershell * make test passed * Update * Update * Update ServerEndpointTests.cs * Managed Identity Tests recording * Managed Identity Tests * Update ChangeLog.md * Pass Non-Windows CI * Review comments * Review comments * Delete GeneratedSdkIssues.csv * Update ChangeLog.md --------- Co-authored-by: James Lindamood <[email protected]> Co-authored-by: James Lindamood <[email protected]> Co-authored-by: Yabo Hu <[email protected]>
1 parent 0604eb8 commit 439df5d

File tree

377 files changed

+76424
-40238
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

+76424
-40238
lines changed

src/Accounts/Authentication/Factories/ClientFactory.cs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,14 @@ 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-
subscriptionId.SetValue(client, context.Subscription.Id.ToString());
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+
}
7178
}
7279

7380
return client;

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

Lines changed: 960 additions & 722 deletions
Large diffs are not rendered by default.

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

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

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

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

116
namespace Microsoft.Azure.Management.StorageSync
127
{
13-
using Microsoft.Rest;
148
using Microsoft.Rest.Azure;
159
using Models;
16-
using System.Collections;
17-
using System.Collections.Generic;
18-
using System.Threading;
19-
using System.Threading.Tasks;
2010

2111
/// <summary>
2212
/// OperationStatusOperations operations.
@@ -26,6 +16,9 @@ public partial interface IOperationStatusOperations
2616
/// <summary>
2717
/// Get Operation status
2818
/// </summary>
19+
/// <remarks>
20+
/// Get Operation status
21+
/// </remarks>
2922
/// <param name='resourceGroupName'>
3023
/// The name of the resource group. The name is case insensitive.
3124
/// </param>
@@ -44,15 +37,13 @@ public partial interface IOperationStatusOperations
4437
/// <param name='cancellationToken'>
4538
/// The cancellation token.
4639
/// </param>
47-
/// <exception cref="StorageSyncErrorException">
40+
/// <exception cref="Microsoft.Rest.Azure.CloudException">
4841
/// Thrown when the operation returned an invalid status code
4942
/// </exception>
5043
/// <exception cref="Microsoft.Rest.SerializationException">
5144
/// Thrown when unable to deserialize the response
5245
/// </exception>
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));
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+
5748
}
58-
}
49+
}
Lines changed: 15 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,12 @@
1-
// <auto-generated>
21
// Copyright (c) Microsoft Corporation. All rights reserved.
3-
// Licensed under the MIT License. See License.txt in the project root for
4-
// license information.
5-
//
2+
// Licensed under the MIT License. See License.txt in the project root for license information.
63
// Code generated by Microsoft (R) AutoRest Code Generator.
7-
// Changes may cause incorrect behavior and will be lost if the code is
8-
// regenerated.
9-
// </auto-generated>
4+
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
105

116
namespace Microsoft.Azure.Management.StorageSync
127
{
13-
using Microsoft.Rest;
148
using Microsoft.Rest.Azure;
159
using Models;
16-
using System.Collections;
17-
using System.Collections.Generic;
18-
using System.Threading;
19-
using System.Threading.Tasks;
2010

2111
/// <summary>
2212
/// Operations operations.
@@ -26,25 +16,29 @@ public partial interface IOperations
2616
/// <summary>
2717
/// Lists all of the available Storage Sync Rest API operations.
2818
/// </summary>
19+
/// <remarks>
20+
/// Lists all of the available Storage Sync Rest API operations.
21+
/// </remarks>
2922
/// <param name='customHeaders'>
3023
/// The headers that will be added to request.
3124
/// </param>
3225
/// <param name='cancellationToken'>
3326
/// The cancellation token.
3427
/// </param>
35-
/// <exception cref="StorageSyncErrorException">
28+
/// <exception cref="Microsoft.Rest.Azure.CloudException">
3629
/// Thrown when the operation returned an invalid status code
3730
/// </exception>
3831
/// <exception cref="Microsoft.Rest.SerializationException">
3932
/// Thrown when unable to deserialize the response
4033
/// </exception>
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));
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+
4536
/// <summary>
4637
/// Lists all of the available Storage Sync Rest API operations.
4738
/// </summary>
39+
/// <remarks>
40+
/// Lists all of the available Storage Sync Rest API operations.
41+
/// </remarks>
4842
/// <param name='nextPageLink'>
4943
/// The NextLink from the previous successful call to List operation.
5044
/// </param>
@@ -54,15 +48,13 @@ public partial interface IOperations
5448
/// <param name='cancellationToken'>
5549
/// The cancellation token.
5650
/// </param>
57-
/// <exception cref="StorageSyncErrorException">
51+
/// <exception cref="Microsoft.Rest.Azure.CloudException">
5852
/// Thrown when the operation returned an invalid status code
5953
/// </exception>
6054
/// <exception cref="Microsoft.Rest.SerializationException">
6155
/// Thrown when unable to deserialize the response
6256
/// </exception>
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));
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+
6759
}
68-
}
60+
}

0 commit comments

Comments
 (0)