Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ public partial interface IRegisteredServersOperations
/// <param name='serverId'>
/// Server Id
/// </param>
/// <param name='certificateData'>
/// <param name='serverCertificate'>
/// Certificate Data
/// </param>
/// <param name='customHeaders'>
Expand All @@ -159,7 +159,7 @@ public partial interface IRegisteredServersOperations
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
Task<AzureOperationHeaderResponse<RegisteredServersTriggerRolloverHeaders>> TriggerRolloverWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string serverId, string certificateData = default(string), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
Task<AzureOperationHeaderResponse<RegisteredServersTriggerRolloverHeaders>> TriggerRolloverWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string serverId, string serverCertificate = default(string), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Add a new registered server.
/// </summary>
Expand Down Expand Up @@ -228,7 +228,7 @@ public partial interface IRegisteredServersOperations
/// <param name='serverId'>
/// Server Id
/// </param>
/// <param name='certificateData'>
/// <param name='serverCertificate'>
/// Certificate Data
/// </param>
/// <param name='customHeaders'>
Expand All @@ -243,6 +243,6 @@ public partial interface IRegisteredServersOperations
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
Task<AzureOperationHeaderResponse<RegisteredServersTriggerRolloverHeaders>> BeginTriggerRolloverWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string serverId, string certificateData = default(string), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
Task<AzureOperationHeaderResponse<RegisteredServersTriggerRolloverHeaders>> BeginTriggerRolloverWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string serverId, string serverCertificate = default(string), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ public TriggerRolloverRequest()
/// <summary>
/// Initializes a new instance of the TriggerRolloverRequest class.
/// </summary>
/// <param name="certificateData">Certificate Data</param>
public TriggerRolloverRequest(string certificateData = default(string))
/// <param name="serverCertificate">Certificate Data</param>
public TriggerRolloverRequest(string serverCertificate = default(string))
{
CertificateData = certificateData;
ServerCertificate = serverCertificate;
CustomInit();
}

Expand All @@ -44,8 +44,8 @@ public TriggerRolloverRequest()
/// <summary>
/// Gets or sets certificate Data
/// </summary>
[JsonProperty(PropertyName = "certificateData")]
public string CertificateData { get; set; }
[JsonProperty(PropertyName = "serverCertificate")]
public string ServerCertificate { get; set; }
Comment thread
ankushbindlish2 marked this conversation as resolved.

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -590,7 +590,7 @@ internal RegisteredServersOperations(StorageSyncManagementClient client)
/// <param name='serverId'>
/// Server Id
/// </param>
/// <param name='certificateData'>
/// <param name='serverCertificate'>
/// Certificate Data
/// </param>
/// <param name='customHeaders'>
Expand All @@ -599,10 +599,10 @@ internal RegisteredServersOperations(StorageSyncManagementClient client)
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public async Task<AzureOperationHeaderResponse<RegisteredServersTriggerRolloverHeaders>> TriggerRolloverWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string serverId, string certificateData = default(string), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
public async Task<AzureOperationHeaderResponse<RegisteredServersTriggerRolloverHeaders>> TriggerRolloverWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string serverId, string serverCertificate = default(string), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
// Send request
AzureOperationHeaderResponse<RegisteredServersTriggerRolloverHeaders> _response = await BeginTriggerRolloverWithHttpMessagesAsync(resourceGroupName, storageSyncServiceName, serverId, certificateData, customHeaders, cancellationToken).ConfigureAwait(false);
AzureOperationHeaderResponse<RegisteredServersTriggerRolloverHeaders> _response = await BeginTriggerRolloverWithHttpMessagesAsync(resourceGroupName, storageSyncServiceName, serverId, serverCertificate, customHeaders, cancellationToken).ConfigureAwait(false);
return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false);
}

Expand Down Expand Up @@ -1095,7 +1095,7 @@ internal RegisteredServersOperations(StorageSyncManagementClient client)
/// <param name='serverId'>
/// Server Id
/// </param>
/// <param name='certificateData'>
/// <param name='serverCertificate'>
/// Certificate Data
/// </param>
/// <param name='customHeaders'>
Expand All @@ -1116,7 +1116,7 @@ internal RegisteredServersOperations(StorageSyncManagementClient client)
/// <return>
/// A response object containing the response body and response headers.
/// </return>
public async Task<AzureOperationHeaderResponse<RegisteredServersTriggerRolloverHeaders>> BeginTriggerRolloverWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string serverId, string certificateData = default(string), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
public async Task<AzureOperationHeaderResponse<RegisteredServersTriggerRolloverHeaders>> BeginTriggerRolloverWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string serverId, string serverCertificate = default(string), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (Client.SubscriptionId == null)
{
Expand Down Expand Up @@ -1168,9 +1168,9 @@ internal RegisteredServersOperations(StorageSyncManagementClient client)
throw new ValidationException(ValidationRules.CannotBeNull, "serverId");
}
TriggerRolloverRequest parameters = new TriggerRolloverRequest();
if (certificateData != null)
if (serverCertificate != null)
{
parameters.CertificateData = certificateData;
parameters.ServerCertificate = serverCertificate;
}
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -222,12 +222,12 @@ public static RegisteredServersDeleteHeaders Delete(this IRegisteredServersOpera
/// <param name='serverId'>
/// Server Id
/// </param>
/// <param name='certificateData'>
/// <param name='serverCertificate'>
/// Certificate Data
/// </param>
public static RegisteredServersTriggerRolloverHeaders TriggerRollover(this IRegisteredServersOperations operations, string resourceGroupName, string storageSyncServiceName, string serverId, string certificateData = default(string))
public static RegisteredServersTriggerRolloverHeaders TriggerRollover(this IRegisteredServersOperations operations, string resourceGroupName, string storageSyncServiceName, string serverId, string serverCertificate = default(string))
{
return operations.TriggerRolloverAsync(resourceGroupName, storageSyncServiceName, serverId, certificateData).GetAwaiter().GetResult();
return operations.TriggerRolloverAsync(resourceGroupName, storageSyncServiceName, serverId, serverCertificate).GetAwaiter().GetResult();
}

/// <summary>
Expand All @@ -245,15 +245,15 @@ public static RegisteredServersDeleteHeaders Delete(this IRegisteredServersOpera
/// <param name='serverId'>
/// Server Id
/// </param>
/// <param name='certificateData'>
/// <param name='serverCertificate'>
/// Certificate Data
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<RegisteredServersTriggerRolloverHeaders> TriggerRolloverAsync(this IRegisteredServersOperations operations, string resourceGroupName, string storageSyncServiceName, string serverId, string certificateData = default(string), CancellationToken cancellationToken = default(CancellationToken))
public static async Task<RegisteredServersTriggerRolloverHeaders> TriggerRolloverAsync(this IRegisteredServersOperations operations, string resourceGroupName, string storageSyncServiceName, string serverId, string serverCertificate = default(string), CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.TriggerRolloverWithHttpMessagesAsync(resourceGroupName, storageSyncServiceName, serverId, certificateData, null, cancellationToken).ConfigureAwait(false))
using (var _result = await operations.TriggerRolloverWithHttpMessagesAsync(resourceGroupName, storageSyncServiceName, serverId, serverCertificate, null, cancellationToken).ConfigureAwait(false))
{
return _result.Headers;
}
Expand Down Expand Up @@ -372,12 +372,12 @@ public static RegisteredServersDeleteHeaders BeginDelete(this IRegisteredServers
/// <param name='serverId'>
/// Server Id
/// </param>
/// <param name='certificateData'>
/// <param name='serverCertificate'>
/// Certificate Data
/// </param>
public static RegisteredServersTriggerRolloverHeaders BeginTriggerRollover(this IRegisteredServersOperations operations, string resourceGroupName, string storageSyncServiceName, string serverId, string certificateData = default(string))
public static RegisteredServersTriggerRolloverHeaders BeginTriggerRollover(this IRegisteredServersOperations operations, string resourceGroupName, string storageSyncServiceName, string serverId, string serverCertificate = default(string))
{
return operations.BeginTriggerRolloverAsync(resourceGroupName, storageSyncServiceName, serverId, certificateData).GetAwaiter().GetResult();
return operations.BeginTriggerRolloverAsync(resourceGroupName, storageSyncServiceName, serverId, serverCertificate).GetAwaiter().GetResult();
}

/// <summary>
Expand All @@ -395,15 +395,15 @@ public static RegisteredServersDeleteHeaders BeginDelete(this IRegisteredServers
/// <param name='serverId'>
/// Server Id
/// </param>
/// <param name='certificateData'>
/// <param name='serverCertificate'>
/// Certificate Data
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<RegisteredServersTriggerRolloverHeaders> BeginTriggerRolloverAsync(this IRegisteredServersOperations operations, string resourceGroupName, string storageSyncServiceName, string serverId, string certificateData = default(string), CancellationToken cancellationToken = default(CancellationToken))
public static async Task<RegisteredServersTriggerRolloverHeaders> BeginTriggerRolloverAsync(this IRegisteredServersOperations operations, string resourceGroupName, string storageSyncServiceName, string serverId, string serverCertificate = default(string), CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.BeginTriggerRolloverWithHttpMessagesAsync(resourceGroupName, storageSyncServiceName, serverId, certificateData, null, cancellationToken).ConfigureAwait(false))
using (var _result = await operations.BeginTriggerRolloverWithHttpMessagesAsync(resourceGroupName, storageSyncServiceName, serverId, serverCertificate, null, cancellationToken).ConfigureAwait(false))
{
return _result.Headers;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public static IEnumerable<Tuple<string, string, string>> ApiInfo_MicrosoftStorag
public static readonly String AutoRestCmdExecuted = "cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/storagesync/resource-manager/readme.md --csharp --version=latest --reflect-api-versions --csharp-sdks-folder=H:\\csharpsdk\\azure-sdk-for-net\\src\\SDKs";
public static readonly String GithubForkName = "Azure";
public static readonly String GithubBranchName = "master";
public static readonly String GithubCommidId = "98f4435055242d841b6a2818cdec1f0bfc2c0cc2";
public static readonly String GithubCommidId = "ec1de75b7b9cbadaee7f5401241ba84930581551";
public static readonly String CodeGenerationErrors = "";
public static readonly String GithubRepoName = "azure-rest-api-specs";
// END: Code Generation Metadata Section
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ private void Initialize()
ServerEndpoints = new ServerEndpointsOperations(this);
RegisteredServers = new RegisteredServersOperations(this);
Workflows = new WorkflowsOperations(this);
BaseUri = new System.Uri("https://azure.microsoft.com");
BaseUri = new System.Uri("https://management.azure.com");
ApiVersion = "2018-07-01";
AcceptLanguage = "en-US";
LongRunningOperationRetryTimeout = 30;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,14 @@
<PropertyGroup>
<PackageId>Microsoft.Azure.Management.StorageSync</PackageId>
<Description>Provides management capabilities for Azure Storage Sync.</Description>
<Version>2.0.0</Version>
<Version>2.8.0-preview</Version>
<AssemblyName>Microsoft.Azure.Management.StorageSync</AssemblyName>
<PackageTags>Microsoft Azure StorageSync;StorageSync;Azure File Sync;AFS;Microsoft.StorageSync;Storage Sync Service</PackageTags>
<PackageReleaseNotes>
<![CDATA[
This version uses 2018-07-01 StorageSync API specification which introduced the next version for Azure File Storage Sync.
1. Certificate Rollover
2. Proxy Resource
3. Remove Location and Tags from Proxy Resources
4. Cloud Tiering days support.
1. Certificate Rollover bug fix
2. Enable the client without a need of BaseUri initialization.
]]>
</PackageReleaseNotes>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,11 @@ public static SyncGroupCreateParameters GetDefaultSyncGroupParameters()
};
}

internal static string GetSecondaryCertificate()
{
return "MIIDEDCCAfigAwIBAgIQUB7fWz9pbodGHZwk+bVTRjANBgkqhkiG9w0BAQ0FADAwMS4wLAYDVQQDEyVhbmt1c2hiLXZtMDIubnRkZXYuY29ycC5taWNyb3NvZnQuY29tMB4XDTE4MDczMDIyNDc0NVoXDTE5MDczMTIyNDc0NVowMDEuMCwGA1UEAxMlYW5rdXNoYi12bTAyLm50ZGV2LmNvcnAubWljcm9zb2Z0LmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALssKhJeisUWQGU1as0mZm7PO81SQPUnK2uE0wTaXpJYlsEn+J9GrSKGYnwUVsdHsvku8AWzvVTeOM3lg7Nmn9NdPsJP1BnzBXqIXWMOpzHrew4nPqS8KEz3/+Wqm5feQK5bpFS6MHUIgn1dXgf7Sal16yMNmzcDvtVCEIoV3eLsxbRx0MLZVa1Z9tCY3kuCIcTcrMNO4mB6NAvZ2Hh5U9Cxu8e9GaF5yzJ7nOVgiKxua4uo73eejuEEGmWq28OO2qZ2YVW0sQRySOVbuhu3gUpB2EbljnL3pCgRAJhui8oy0VlH4m5aoVK/AjOOYtWduaFoJP7LCtizREfhDMdT/SUCAwEAAaMmMCQwIgYDVR0lAQH/BBgwFgYIKwYBBQUHAwIGCisGAQQBgjcKAwwwDQYJKoZIhvcNAQENBQADggEBALR6fPRt1y4etxX1H65kn3iUOLfTa4kg2Lj+GbqjjkVJXQ9uiVL0qL6Usc1GMepUTqD0yuOfHH9sHJZdEs6N08CLpOjCAXqnelabGJ7vSEba1NxASXRGIdsgj7gpeXgH0G8+KRRRkHwp4+Ro0Gb0mXIwlbVxiMZ3zRUXzJxvITX9/fAfeQBvDhc0NpGKHBgINZFbImIzIsoDQId259n1RMBBgLRsuf17KROXQmPmHXJMfadmVC0CZgcpKr2r6n6aWYi1gUb6kliZi6Ikr4GoePUJz1w36xVhJw6mE1Oj/wZ1kPF/J092L48XqDYVZYD8zdBO+vGR52655Fn/niv3zcM=";
}

public static CloudEndpointCreateParameters GetDefaultCloudEndpointParameters()
{
return new CloudEndpointCreateParameters
Expand Down
Loading