Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
2c8b132
Merge all changes
ankushbindlish2 Oct 24, 2023
1a512a0
Set-AzStorageSyncServiceIdentity
ankushbindlish2 Oct 24, 2023
8cda184
Merge branch 'Azure:main' into xsyncmi-2022-09-01-consumption-02
ankushbindlish2 Oct 24, 2023
52313d9
Fix ToolFx issue
ankushbindlish2 Oct 25, 2023
2405fcc
Merge branch 'xsyncmi-2022-09-01-consumption-02' of https://github.co…
ankushbindlish2 Oct 25, 2023
6d0f68d
RemoveServerEndpointCommandPermission
ankushbindlish2 Oct 25, 2023
b577931
Update RemoveServerEndpointCommand.cs
ankushbindlish2 Oct 25, 2023
976c742
Update ClientFactory.cs
ankushbindlish2 Oct 25, 2023
253d0a4
Update Az.StorageSync.psd1
ankushbindlish2 Oct 25, 2023
c9c58d8
Update SetStorageSyncServiceIdentityCommand.cs
ankushbindlish2 Oct 27, 2023
e3f72cb
Update auth package
ankushbindlish2 Oct 30, 2023
d0e597d
missed files
ankushbindlish2 Oct 30, 2023
c11edda
Update test
ankushbindlish2 Oct 30, 2023
6f5f5ce
SyncGroup test recording
ankushbindlish2 Oct 30, 2023
8cbbea3
CloudEndpoint test
ankushbindlish2 Oct 30, 2023
ac4f056
Update StorageSyncClientWrapper.cs
ankushbindlish2 Oct 30, 2023
967620c
Help files
ankushbindlish2 Oct 31, 2023
9aea26b
add converters and PS models for SEPProvisioningStatus
jlindamood Oct 31, 2023
9c083a1
Test Recordings: RegisteredServer & ServerEndpoint
Nov 2, 2023
ec4bc3c
update help
jlindamood Nov 6, 2023
c161b31
add SupportsShouldProcess to SetCloudEndpointPermissionCommand
jlindamood Nov 6, 2023
6b17ba9
payload-flattening-threshold to 1 to match generation
jlindamood Nov 6, 2023
d86a1b6
fix help online URLs
jlindamood Nov 6, 2023
00f3722
fill in help information for new cmdlets
jlindamood Nov 7, 2023
1477f13
Bug 25892553: [Az] SEP/CEP creation cmdlets should skip RBAC creation…
ankushbindlish2 Nov 21, 2023
24461f5
update CloudEndpointCrossTenantError format
jlindamood Nov 17, 2023
29f1d33
add updated SEP recording
Nov 21, 2023
0a90912
updated CEP recordings
Nov 21, 2023
4a969f7
set tenant to test tenant when in Playback mode
Nov 21, 2023
5d0026d
remove redundant ContainsKey check
Nov 21, 2023
c68d360
add comments to explain TenantId default in test
Nov 21, 2023
0f53822
bugs
ankushbindlish2 Nov 21, 2023
f643671
bugs
ankushbindlish2 Nov 21, 2023
be5e177
create MockSyncServerRegistrationClient for SDK.Test, and instantiate…
jlindamood Nov 22, 2023
e1b6c7e
Bug 26092466: Re-Migration failed with 'Value cannot be null'
ankushbindlish2 Dec 7, 2023
9fe96d8
Merge branch 'main' into xsyncmi-2022-09-james-additions
jlindamood Dec 8, 2023
f586e7c
fix .psd1 (referenced incorrect cmdlet names), create help for missin…
Dec 13, 2023
80abd6d
Merge remote-tracking branch 'ankush/xsyncmi-2022-09-01-consumption-0…
jlindamood Dec 13, 2023
4e78914
update from autorest csharp v3 to autorest powershell v4
jlindamood Dec 18, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
9 changes: 8 additions & 1 deletion src/Accounts/Authentication/Factories/ClientFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,14 @@ public virtual TClient CreateArmClient<TClient>(IAzureContext context, string en
var subscriptionId = typeof(TClient).GetProperty("SubscriptionId");
if (subscriptionId != null && context.Subscription != null)
{
subscriptionId.SetValue(client, context.Subscription.Id.ToString());
if (subscriptionId.PropertyType == typeof(Guid))
{
subscriptionId.SetValue(client, Guid.Parse(context.Subscription.Id));
}
else
{
subscriptionId.SetValue(client, context.Subscription.Id);
}
}

return client;
Expand Down
1,689 changes: 963 additions & 726 deletions src/StorageSync/StorageSync.Sdk/Generated/CloudEndpointsOperations.cs

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

243 changes: 142 additions & 101 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,28 +1,19 @@
// <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.StorageSync
{
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Models;
using Newtonsoft.Json;
using System.Collections;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;

/// <summary>
/// Microsoft Storage Sync Service API
/// Microsoft Storage Sync Service API. This belongs to Microsoft.StorageSync
/// Resource Provider
/// </summary>
public partial interface IStorageSyncManagementClient : System.IDisposable
public partial interface IMicrosoft Storage Sync : System.IDisposable
{
/// <summary>
/// The base URI of the service.
Expand All @@ -32,100 +23,108 @@ public partial interface IStorageSyncManagementClient : System.IDisposable
/// <summary>
/// Gets or sets json serialization settings.
/// </summary>
JsonSerializerSettings SerializationSettings { get; }
Newtonsoft.Json.JsonSerializerSettings SerializationSettings { get; }

/// <summary>
/// Gets or sets json deserialization settings.
/// </summary>
JsonSerializerSettings DeserializationSettings { get; }
Newtonsoft.Json.JsonSerializerSettings DeserializationSettings { get; }

/// <summary>
/// Credentials needed for the client to connect to Azure.
/// </summary>
ServiceClientCredentials Credentials { get; }
Microsoft.Rest.ServiceClientCredentials Credentials { get;}


/// <summary>
/// The API version to use for this operation.
/// </summary>
string ApiVersion { get; }
string ApiVersion { get;}


/// <summary>
/// The ID of the target subscription.
/// The ID of the target subscription. The value must be an UUID.
/// </summary>
string SubscriptionId { get; set; }
System.Guid SubscriptionId { get; set;}


/// <summary>
/// The preferred language for the response.
/// </summary>
string AcceptLanguage { get; set; }
string AcceptLanguage { get; set;}


/// <summary>
/// The retry timeout in seconds for Long Running Operations. Default
/// value is 30.
/// /// value is 30.
/// </summary>
int? LongRunningOperationRetryTimeout { get; set; }
int? LongRunningOperationRetryTimeout { get; set;}


/// <summary>
/// Whether a unique x-ms-client-request-id should be generated. When
/// set to true a unique x-ms-client-request-id value is generated and
/// included in each request. Default is true.
/// /// set to true a unique x-ms-client-request-id value is generated and
/// /// included in each request. Default is true.
/// </summary>
bool? GenerateClientRequestId { get; set; }
bool? GenerateClientRequestId { get; set;}


/// <summary>
/// Gets the IOperations.
/// Gets the IOperations
/// </summary>
IOperations Operations { get; }

/// <summary>
/// Gets the IStorageSyncServicesOperations.
/// Gets the IStorageSyncServicesOperations
/// </summary>
IStorageSyncServicesOperations StorageSyncServices { get; }

/// <summary>
/// Gets the IPrivateLinkResourcesOperations.
/// Gets the IPrivateLinkResourcesOperations
/// </summary>
IPrivateLinkResourcesOperations PrivateLinkResources { get; }

/// <summary>
/// Gets the IPrivateEndpointConnectionsOperations.
/// Gets the IPrivateEndpointConnectionsOperations
/// </summary>
IPrivateEndpointConnectionsOperations PrivateEndpointConnections { get; }

/// <summary>
/// Gets the ISyncGroupsOperations.
/// Gets the ISyncGroupsOperations
/// </summary>
ISyncGroupsOperations SyncGroups { get; }

/// <summary>
/// Gets the ICloudEndpointsOperations.
/// Gets the ICloudEndpointsOperations
/// </summary>
ICloudEndpointsOperations CloudEndpoints { get; }

/// <summary>
/// Gets the IServerEndpointsOperations.
/// Gets the IServerEndpointsOperations
/// </summary>
IServerEndpointsOperations ServerEndpoints { get; }

/// <summary>
/// Gets the IRegisteredServersOperations.
/// Gets the IRegisteredServersOperations
/// </summary>
IRegisteredServersOperations RegisteredServers { get; }

/// <summary>
/// Gets the IWorkflowsOperations.
/// Gets the IWorkflowsOperations
/// </summary>
IWorkflowsOperations Workflows { get; }

/// <summary>
/// Gets the IOperationStatusOperations.
/// Gets the IOperationStatusOperations
/// </summary>
IOperationStatusOperations OperationStatus { get; }

/// <summary>
/// Get Operation status
/// </summary>
/// <remarks>
/// Get Operation status
/// </remarks>
/// <param name='locationName'>
/// The desired region to obtain information from.
/// </param>
Expand All @@ -138,7 +137,13 @@ public partial interface IStorageSyncManagementClient : System.IDisposable
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
Task<AzureOperationResponse<LocationOperationStatus,LocationOperationStatusHeaders>> LocationOperationStatusMethodWithHttpMessagesAsync(string locationName, string operationId, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <exception cref="Microsoft.Rest.Azure.CloudException">
/// 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<LocationOperationStatus,LocationOperationStatusHeaders>> LocationOperationStatusWithHttpMessagesAsync(string locationName, string operationId, System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));

}
}
}
Original file line number Diff line number Diff line change
@@ -1,22 +1,12 @@
// <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.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 @@ -26,6 +16,9 @@ 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 @@ -44,15 +37,13 @@ public partial interface IOperationStatusOperations
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
/// <exception cref="StorageSyncErrorException">
/// <exception cref="Microsoft.Rest.Azure.CloudException">
/// Thrown when the operation returned an invalid status code
/// </exception>
/// <exception cref="Microsoft.Rest.SerializationException">
/// Thrown when unable to deserialize the response
/// </exception>
/// <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));
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));

}
}
}
38 changes: 15 additions & 23 deletions src/StorageSync/StorageSync.Sdk/Generated/IOperations.cs
Original file line number Diff line number Diff line change
@@ -1,22 +1,12 @@
// <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.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 @@ -26,25 +16,29 @@ 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="StorageSyncErrorException">
/// <exception cref="Microsoft.Rest.Azure.CloudException">
/// Thrown when the operation returned an invalid status code
/// </exception>
/// <exception cref="Microsoft.Rest.SerializationException">
/// Thrown when unable to deserialize the response
/// </exception>
/// <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));
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));

/// <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 @@ -54,15 +48,13 @@ public partial interface IOperations
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
/// <exception cref="StorageSyncErrorException">
/// <exception cref="Microsoft.Rest.Azure.CloudException">
/// Thrown when the operation returned an invalid status code
/// </exception>
/// <exception cref="Microsoft.Rest.SerializationException">
/// Thrown when unable to deserialize the response
/// </exception>
/// <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));
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));

}
}
}
Loading