diff --git a/src/StorageSync/StorageSync.Management.Sdk/Generated/CloudEndpointsOperations.cs b/src/StorageSync/StorageSync.Management.Sdk/Generated/CloudEndpointsOperations.cs
index 75c034442e73..9cc43a00a67e 100644
--- a/src/StorageSync/StorageSync.Management.Sdk/Generated/CloudEndpointsOperations.cs
+++ b/src/StorageSync/StorageSync.Management.Sdk/Generated/CloudEndpointsOperations.cs
@@ -39,7 +39,7 @@ internal CloudEndpointsOperations (StorageSyncManagementClient client)
public StorageSyncManagementClient Client { get; private set; }
///
- /// Create a new CloudEndpoint.
+ /// Get a CloudEndpoint List.
///
///
/// The name of the resource group. The name is case insensitive.
@@ -50,25 +50,231 @@ internal CloudEndpointsOperations (StorageSyncManagementClient client)
///
/// Name of Sync Group resource.
///
- ///
- /// Name of Cloud Endpoint object.
- ///
- ///
- /// Body of Cloud Endpoint resource.
- ///
///
/// Headers that will be added to request.
///
///
/// The cancellation token.
///
- public async System.Threading.Tasks.Task> CreateWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, CloudEndpointCreateParameters parameters, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// A response object containing the response body and response headers.
+ ///
+ public async System.Threading.Tasks.Task,CloudEndpointsListBySyncGroupHeaders>> ListBySyncGroupWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string syncGroupName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
- // Send Request
- Microsoft.Rest.Azure.AzureOperationResponse _response = await BeginCreateWithHttpMessagesAsync(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters, customHeaders, cancellationToken).ConfigureAwait(false);
- return await this.Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false);
- }
+
+
+
+ if (this.Client.ApiVersion == null)
+ {
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.ApiVersion");
+ }
+
+
+ if (resourceGroupName == null)
+ {
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "resourceGroupName");
+ }
+ if (resourceGroupName != null)
+ {
+ if (resourceGroupName.Length > 90)
+ {
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MaxLength, "resourceGroupName", 90);
+ }
+ if (resourceGroupName.Length < 1)
+ {
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "resourceGroupName", 1);
+ }
+ }
+ if (storageSyncServiceName == null)
+ {
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "storageSyncServiceName");
+ }
+
+ if (syncGroupName == null)
+ {
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "syncGroupName");
+ }
+
+ // Tracing
+ bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
+ string _invocationId = null;
+ if (_shouldTrace)
+ {
+ _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString();
+ System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary();
+ tracingParameters.Add("resourceGroupName", resourceGroupName);
+ tracingParameters.Add("storageSyncServiceName", storageSyncServiceName);
+ tracingParameters.Add("syncGroupName", syncGroupName);
+
+
+ tracingParameters.Add("cancellationToken", cancellationToken);
+ Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "ListBySyncGroup", tracingParameters);
+ }
+ // Construct URL
+
+ var _baseUrl = this.Client.BaseUri.AbsoluteUri;
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/cloudEndpoints").ToString();
+ _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Microsoft.Rest.Serialization.SafeJsonConvert.SerializeObject(this.Client.SubscriptionId, this.Client.SerializationSettings).Trim('"')));
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ _url = _url.Replace("{storageSyncServiceName}", System.Uri.EscapeDataString(storageSyncServiceName));
+ _url = _url.Replace("{syncGroupName}", System.Uri.EscapeDataString(syncGroupName));
+
+ System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List();
+ if (this.Client.ApiVersion != null)
+ {
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(this.Client.ApiVersion)));
+ }
+ if (_queryParameters.Count > 0)
+ {
+ _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);
+ }
+ // Create HTTP transport objects
+ var _httpRequest = new System.Net.Http.HttpRequestMessage();
+ System.Net.Http.HttpResponseMessage _httpResponse = null;
+ _httpRequest.Method = new System.Net.Http.HttpMethod("GET");
+ _httpRequest.RequestUri = new System.Uri(_url);
+ // Set Headers
+ if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value)
+ {
+ _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString());
+ }
+ if (this.Client.AcceptLanguage != null)
+ {
+ if (_httpRequest.Headers.Contains("accept-language"))
+ {
+ _httpRequest.Headers.Remove("accept-language");
+ }
+ _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage);
+ }
+
+ if (customHeaders != null)
+ {
+ foreach(var _header in customHeaders)
+ {
+ if (_httpRequest.Headers.Contains(_header.Key))
+ {
+ _httpRequest.Headers.Remove(_header.Key);
+ }
+ _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value);
+ }
+ }
+ // Serialize Request
+ string _requestContent = null;
+ // Set Credentials
+ if (this.Client.Credentials != null)
+ {
+ cancellationToken.ThrowIfCancellationRequested();
+ await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ }
+ // Send Request
+ if (_shouldTrace)
+ {
+ Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
+ }
+ cancellationToken.ThrowIfCancellationRequested();
+ _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ if (_shouldTrace)
+ {
+ Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
+ }
+
+ System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode;
+ cancellationToken.ThrowIfCancellationRequested();
+ string _responseContent = null;
+
+ if ((int)_statusCode != 200)
+ {
+ var ex = new StorageSyncErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
+ try
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ StorageSyncError _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings);
+ if (_errorBody != null)
+ {
+ ex.Body = _errorBody;
+ }
+ }
+ catch (Newtonsoft.Json.JsonException)
+ {
+ // Ignore the exception
+ }
+ ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent);
+ ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent);
+ if (_shouldTrace)
+ {
+ Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex);
+ }
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw ex;
+ }
+ // Create Result
+ var _result = new Microsoft.Rest.Azure.AzureOperationResponse,CloudEndpointsListBySyncGroupHeaders>();
+ _result.Request = _httpRequest;
+ _result.Response = _httpResponse;
+
+ if (_httpResponse.Headers.Contains("x-ms-request-id"))
+ {
+ _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
+ }
+ // Deserialize Response
+ if ((int)_statusCode == 200)
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ try
+ {
+ _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, this.Client.DeserializationSettings);
+ }
+ catch (Newtonsoft.Json.JsonException ex)
+ {
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex);
+ }
+ }
+ try
+ {
+ _result.Headers = _httpResponse.GetHeadersAsJson().ToObject(Newtonsoft.Json.JsonSerializer.Create(this.Client.DeserializationSettings));
+ }
+ catch (Newtonsoft.Json.JsonException ex)
+ {
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw new Microsoft.Rest.SerializationException("Unable to deserialize the headers.", _httpResponse.GetHeadersAsJson().ToString(), ex);
+ }
+ if (_shouldTrace)
+ {
+ Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result);
+ }
+ return _result;
+
+
+
+
+
+ }
///
/// Get a given CloudEndpoint.
///
@@ -111,6 +317,11 @@ internal CloudEndpointsOperations (StorageSyncManagementClient client)
+ if (this.Client.ApiVersion == null)
+ {
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.ApiVersion");
+ }
+
if (resourceGroupName == null)
{
@@ -127,11 +338,6 @@ internal CloudEndpointsOperations (StorageSyncManagementClient client)
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "resourceGroupName", 1);
}
}
- if (this.Client.ApiVersion == null)
- {
- throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.ApiVersion");
- }
-
if (storageSyncServiceName == null)
{
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "storageSyncServiceName");
@@ -316,6 +522,37 @@ internal CloudEndpointsOperations (StorageSyncManagementClient client)
}
+ ///
+ /// Create a new CloudEndpoint.
+ ///
+ ///
+ /// The name of the resource group. The name is case insensitive.
+ ///
+ ///
+ /// Name of Storage Sync Service resource.
+ ///
+ ///
+ /// Name of Sync Group resource.
+ ///
+ ///
+ /// Name of Cloud Endpoint object.
+ ///
+ ///
+ /// Body of Cloud Endpoint resource.
+ ///
+ ///
+ /// Headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public async System.Threading.Tasks.Task> CreateWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, CloudEndpointCreateParameters parameters, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
+ {
+ // Send Request
+ Microsoft.Rest.Azure.AzureOperationResponse _response = await BeginCreateWithHttpMessagesAsync(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters, customHeaders, cancellationToken).ConfigureAwait(false);
+ return await this.Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false);
+ }
+
///
/// Delete a given CloudEndpoint.
///
@@ -345,7 +582,7 @@ internal CloudEndpointsOperations (StorageSyncManagementClient client)
}
///
- /// Get a CloudEndpoint List.
+ /// Get the AFS file share metadata signing certificate public keys.
///
///
/// The name of the resource group. The name is case insensitive.
@@ -356,6 +593,9 @@ internal CloudEndpointsOperations (StorageSyncManagementClient client)
///
/// Name of Sync Group resource.
///
+ ///
+ /// Name of Cloud Endpoint object.
+ ///
///
/// Headers that will be added to request.
///
@@ -377,12 +617,17 @@ internal CloudEndpointsOperations (StorageSyncManagementClient client)
///
/// A response object containing the response body and response headers.
///
- public async System.Threading.Tasks.Task,CloudEndpointsListBySyncGroupHeaders>> ListBySyncGroupWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string syncGroupName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
+ public async System.Threading.Tasks.Task> AfsShareMetadataCertificatePublicKeysWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
+ if (this.Client.ApiVersion == null)
+ {
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.ApiVersion");
+ }
+
if (resourceGroupName == null)
{
@@ -399,11 +644,6 @@ internal CloudEndpointsOperations (StorageSyncManagementClient client)
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "resourceGroupName", 1);
}
}
- if (this.Client.ApiVersion == null)
- {
- throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.ApiVersion");
- }
-
if (storageSyncServiceName == null)
{
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "storageSyncServiceName");
@@ -414,6 +654,11 @@ internal CloudEndpointsOperations (StorageSyncManagementClient client)
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "syncGroupName");
}
+ if (cloudEndpointName == null)
+ {
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "cloudEndpointName");
+ }
+
// Tracing
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -424,19 +669,21 @@ internal CloudEndpointsOperations (StorageSyncManagementClient client)
tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("storageSyncServiceName", storageSyncServiceName);
tracingParameters.Add("syncGroupName", syncGroupName);
+ tracingParameters.Add("cloudEndpointName", cloudEndpointName);
tracingParameters.Add("cancellationToken", cancellationToken);
- Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "ListBySyncGroup", tracingParameters);
+ Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "AfsShareMetadataCertificatePublicKeys", tracingParameters);
}
// Construct URL
var _baseUrl = this.Client.BaseUri.AbsoluteUri;
- var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/cloudEndpoints").ToString();
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/cloudEndpoints/{cloudEndpointName}/afsShareMetadataCertificatePublicKeys").ToString();
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Microsoft.Rest.Serialization.SafeJsonConvert.SerializeObject(this.Client.SubscriptionId, this.Client.SerializationSettings).Trim('"')));
_url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
_url = _url.Replace("{storageSyncServiceName}", System.Uri.EscapeDataString(storageSyncServiceName));
_url = _url.Replace("{syncGroupName}", System.Uri.EscapeDataString(syncGroupName));
+ _url = _url.Replace("{cloudEndpointName}", System.Uri.EscapeDataString(cloudEndpointName));
System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List();
if (this.Client.ApiVersion != null)
@@ -531,7 +778,7 @@ internal CloudEndpointsOperations (StorageSyncManagementClient client)
throw ex;
}
// Create Result
- var _result = new Microsoft.Rest.Azure.AzureOperationResponse,CloudEndpointsListBySyncGroupHeaders>();
+ var _result = new Microsoft.Rest.Azure.AzureOperationResponse();
_result.Request = _httpRequest;
_result.Response = _httpResponse;
@@ -545,7 +792,7 @@ internal CloudEndpointsOperations (StorageSyncManagementClient client)
_responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
try
{
- _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, this.Client.DeserializationSettings);
+ _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings);
}
catch (Newtonsoft.Json.JsonException ex)
{
@@ -559,7 +806,7 @@ internal CloudEndpointsOperations (StorageSyncManagementClient client)
}
try
{
- _result.Headers = _httpResponse.GetHeadersAsJson().ToObject(Newtonsoft.Json.JsonSerializer.Create(this.Client.DeserializationSettings));
+ _result.Headers = _httpResponse.GetHeadersAsJson().ToObject(Newtonsoft.Json.JsonSerializer.Create(this.Client.DeserializationSettings));
}
catch (Newtonsoft.Json.JsonException ex)
{
@@ -582,7 +829,7 @@ internal CloudEndpointsOperations (StorageSyncManagementClient client)
}
///
- /// Pre Backup a given CloudEndpoint.
+ /// Post Backup a given CloudEndpoint.
///
///
/// The name of the resource group. The name is case insensitive.
@@ -605,15 +852,46 @@ internal CloudEndpointsOperations (StorageSyncManagementClient client)
///
/// The cancellation token.
///
- public async System.Threading.Tasks.Task> PreBackupWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, string azureFileShare = default(string), System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
+ public async System.Threading.Tasks.Task> PostBackupWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, string azureFileShare = default(string), System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
// Send Request
- Microsoft.Rest.Azure.AzureOperationHeaderResponse _response = await BeginPreBackupWithHttpMessagesAsync(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, azureFileShare, customHeaders, cancellationToken).ConfigureAwait(false);
+ Microsoft.Rest.Azure.AzureOperationResponse _response = await BeginPostBackupWithHttpMessagesAsync(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, azureFileShare, customHeaders, cancellationToken).ConfigureAwait(false);
return await this.Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false);
}
///
- /// Post Backup a given CloudEndpoint.
+ /// Post Restore a given CloudEndpoint.
+ ///
+ ///
+ /// The name of the resource group. The name is case insensitive.
+ ///
+ ///
+ /// Name of Storage Sync Service resource.
+ ///
+ ///
+ /// Name of Sync Group resource.
+ ///
+ ///
+ /// Name of Cloud Endpoint object.
+ ///
+ ///
+ /// Body of Cloud Endpoint object.
+ ///
+ ///
+ /// Headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public async System.Threading.Tasks.Task> PostRestoreWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, PostRestoreRequest parameters, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
+ {
+ // Send Request
+ Microsoft.Rest.Azure.AzureOperationHeaderResponse _response = await BeginPostRestoreWithHttpMessagesAsync(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters, customHeaders, cancellationToken).ConfigureAwait(false);
+ return await this.Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false);
+ }
+
+ ///
+ /// Pre Backup a given CloudEndpoint.
///
///
/// The name of the resource group. The name is case insensitive.
@@ -636,10 +914,10 @@ internal CloudEndpointsOperations (StorageSyncManagementClient client)
///
/// The cancellation token.
///
- public async System.Threading.Tasks.Task> PostBackupWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, string azureFileShare = default(string), System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
+ public async System.Threading.Tasks.Task> PreBackupWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, string azureFileShare = default(string), System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
// Send Request
- Microsoft.Rest.Azure.AzureOperationResponse _response = await BeginPostBackupWithHttpMessagesAsync(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, azureFileShare, customHeaders, cancellationToken).ConfigureAwait(false);
+ Microsoft.Rest.Azure.AzureOperationHeaderResponse _response = await BeginPreBackupWithHttpMessagesAsync(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, azureFileShare, customHeaders, cancellationToken).ConfigureAwait(false);
return await this.Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false);
}
@@ -713,6 +991,11 @@ internal CloudEndpointsOperations (StorageSyncManagementClient client)
+ if (this.Client.ApiVersion == null)
+ {
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.ApiVersion");
+ }
+
if (resourceGroupName == null)
{
@@ -729,11 +1012,6 @@ internal CloudEndpointsOperations (StorageSyncManagementClient client)
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "resourceGroupName", 1);
}
}
- if (this.Client.ApiVersion == null)
- {
- throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.ApiVersion");
- }
-
if (storageSyncServiceName == null)
{
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "storageSyncServiceName");
@@ -900,37 +1178,6 @@ internal CloudEndpointsOperations (StorageSyncManagementClient client)
}
- ///
- /// Post Restore a given CloudEndpoint.
- ///
- ///
- /// The name of the resource group. The name is case insensitive.
- ///
- ///
- /// Name of Storage Sync Service resource.
- ///
- ///
- /// Name of Sync Group resource.
- ///
- ///
- /// Name of Cloud Endpoint object.
- ///
- ///
- /// Body of Cloud Endpoint object.
- ///
- ///
- /// Headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- public async System.Threading.Tasks.Task> PostRestoreWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, PostRestoreRequest parameters, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
- {
- // Send Request
- Microsoft.Rest.Azure.AzureOperationHeaderResponse _response = await BeginPostRestoreWithHttpMessagesAsync(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters, customHeaders, cancellationToken).ConfigureAwait(false);
- return await this.Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false);
- }
-
///
/// Triggers detection of changes performed on Azure File share connected to
/// the specified Azure File Sync Cloud Endpoint.
@@ -964,7 +1211,7 @@ internal CloudEndpointsOperations (StorageSyncManagementClient client)
}
///
- /// Get the AFS file share metadata signing certificate public keys.
+ /// Create a new CloudEndpoint.
///
///
/// The name of the resource group. The name is case insensitive.
@@ -978,6 +1225,9 @@ internal CloudEndpointsOperations (StorageSyncManagementClient client)
///
/// Name of Cloud Endpoint object.
///
+ ///
+ /// Body of Cloud Endpoint resource.
+ ///
///
/// Headers that will be added to request.
///
@@ -999,12 +1249,22 @@ internal CloudEndpointsOperations (StorageSyncManagementClient client)
///
/// A response object containing the response body and response headers.
///
- public async System.Threading.Tasks.Task> AfsShareMetadataCertificatePublicKeysWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
+ public async System.Threading.Tasks.Task> BeginCreateWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, CloudEndpointCreateParameters parameters, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
+ if (parameters == null)
+ {
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "parameters");
+ }
+
+ if (this.Client.ApiVersion == null)
+ {
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.ApiVersion");
+ }
+
if (resourceGroupName == null)
{
@@ -1021,11 +1281,6 @@ internal CloudEndpointsOperations (StorageSyncManagementClient client)
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "resourceGroupName", 1);
}
}
- if (this.Client.ApiVersion == null)
- {
- throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.ApiVersion");
- }
-
if (storageSyncServiceName == null)
{
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "storageSyncServiceName");
@@ -1053,14 +1308,15 @@ internal CloudEndpointsOperations (StorageSyncManagementClient client)
tracingParameters.Add("syncGroupName", syncGroupName);
tracingParameters.Add("cloudEndpointName", cloudEndpointName);
+ tracingParameters.Add("parameters", parameters);
tracingParameters.Add("cancellationToken", cancellationToken);
- Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "AfsShareMetadataCertificatePublicKeys", tracingParameters);
+ Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "BeginCreate", tracingParameters);
}
// Construct URL
var _baseUrl = this.Client.BaseUri.AbsoluteUri;
- var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/cloudEndpoints/{cloudEndpointName}/afsShareMetadataCertificatePublicKeys").ToString();
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/cloudEndpoints/{cloudEndpointName}").ToString();
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Microsoft.Rest.Serialization.SafeJsonConvert.SerializeObject(this.Client.SubscriptionId, this.Client.SerializationSettings).Trim('"')));
_url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
_url = _url.Replace("{storageSyncServiceName}", System.Uri.EscapeDataString(storageSyncServiceName));
@@ -1079,7 +1335,7 @@ internal CloudEndpointsOperations (StorageSyncManagementClient client)
// Create HTTP transport objects
var _httpRequest = new System.Net.Http.HttpRequestMessage();
System.Net.Http.HttpResponseMessage _httpResponse = null;
- _httpRequest.Method = new System.Net.Http.HttpMethod("GET");
+ _httpRequest.Method = new System.Net.Http.HttpMethod("PUT");
_httpRequest.RequestUri = new System.Uri(_url);
// Set Headers
if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value)
@@ -1108,6 +1364,12 @@ internal CloudEndpointsOperations (StorageSyncManagementClient client)
}
// Serialize Request
string _requestContent = null;
+ if(parameters != null)
+ {
+ _requestContent = Microsoft.Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, this.Client.SerializationSettings);
+ _httpRequest.Content = new System.Net.Http.StringContent(_requestContent, System.Text.Encoding.UTF8);
+ _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8");
+ }
// Set Credentials
if (this.Client.Credentials != null)
{
@@ -1130,7 +1392,7 @@ internal CloudEndpointsOperations (StorageSyncManagementClient client)
cancellationToken.ThrowIfCancellationRequested();
string _responseContent = null;
- if ((int)_statusCode != 200)
+ if ((int)_statusCode != 200 && (int)_statusCode != 202)
{
var ex = new StorageSyncErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
try
@@ -1160,7 +1422,7 @@ internal CloudEndpointsOperations (StorageSyncManagementClient client)
throw ex;
}
// Create Result
- var _result = new Microsoft.Rest.Azure.AzureOperationResponse();
+ var _result = new Microsoft.Rest.Azure.AzureOperationResponse();
_result.Request = _httpRequest;
_result.Response = _httpResponse;
@@ -1174,7 +1436,7 @@ internal CloudEndpointsOperations (StorageSyncManagementClient client)
_responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
try
{
- _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings);
+ _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings);
}
catch (Newtonsoft.Json.JsonException ex)
{
@@ -1188,7 +1450,7 @@ internal CloudEndpointsOperations (StorageSyncManagementClient client)
}
try
{
- _result.Headers = _httpResponse.GetHeadersAsJson().ToObject(Newtonsoft.Json.JsonSerializer.Create(this.Client.DeserializationSettings));
+ _result.Headers = _httpResponse.GetHeadersAsJson().ToObject(Newtonsoft.Json.JsonSerializer.Create(this.Client.DeserializationSettings));
}
catch (Newtonsoft.Json.JsonException ex)
{
@@ -1211,7 +1473,7 @@ internal CloudEndpointsOperations (StorageSyncManagementClient client)
}
///
- /// Create a new CloudEndpoint.
+ /// Delete a given CloudEndpoint.
///
///
/// The name of the resource group. The name is case insensitive.
@@ -1225,9 +1487,6 @@ internal CloudEndpointsOperations (StorageSyncManagementClient client)
///
/// Name of Cloud Endpoint object.
///
- ///
- /// Body of Cloud Endpoint resource.
- ///
///
/// Headers that will be added to request.
///
@@ -1237,9 +1496,6 @@ internal CloudEndpointsOperations (StorageSyncManagementClient client)
///
/// Thrown when the operation returned an invalid status code
///
- ///
- /// Thrown when unable to deserialize the response
- ///
///
/// Thrown when a required parameter is null
///
@@ -1249,15 +1505,15 @@ internal CloudEndpointsOperations (StorageSyncManagementClient client)
///
/// A response object containing the response body and response headers.
///
- public async System.Threading.Tasks.Task> BeginCreateWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, CloudEndpointCreateParameters parameters, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
+ public async System.Threading.Tasks.Task> BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
- if (parameters == null)
+ if (this.Client.ApiVersion == null)
{
- throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "parameters");
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.ApiVersion");
}
@@ -1276,11 +1532,6 @@ internal CloudEndpointsOperations (StorageSyncManagementClient client)
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "resourceGroupName", 1);
}
}
- if (this.Client.ApiVersion == null)
- {
- throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.ApiVersion");
- }
-
if (storageSyncServiceName == null)
{
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "storageSyncServiceName");
@@ -1308,10 +1559,9 @@ internal CloudEndpointsOperations (StorageSyncManagementClient client)
tracingParameters.Add("syncGroupName", syncGroupName);
tracingParameters.Add("cloudEndpointName", cloudEndpointName);
- tracingParameters.Add("parameters", parameters);
tracingParameters.Add("cancellationToken", cancellationToken);
- Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "BeginCreate", tracingParameters);
+ Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "BeginDelete", tracingParameters);
}
// Construct URL
@@ -1335,7 +1585,7 @@ internal CloudEndpointsOperations (StorageSyncManagementClient client)
// Create HTTP transport objects
var _httpRequest = new System.Net.Http.HttpRequestMessage();
System.Net.Http.HttpResponseMessage _httpResponse = null;
- _httpRequest.Method = new System.Net.Http.HttpMethod("PUT");
+ _httpRequest.Method = new System.Net.Http.HttpMethod("DELETE");
_httpRequest.RequestUri = new System.Uri(_url);
// Set Headers
if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value)
@@ -1364,12 +1614,6 @@ internal CloudEndpointsOperations (StorageSyncManagementClient client)
}
// Serialize Request
string _requestContent = null;
- if(parameters != null)
- {
- _requestContent = Microsoft.Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, this.Client.SerializationSettings);
- _httpRequest.Content = new System.Net.Http.StringContent(_requestContent, System.Text.Encoding.UTF8);
- _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8");
- }
// Set Credentials
if (this.Client.Credentials != null)
{
@@ -1392,7 +1636,7 @@ internal CloudEndpointsOperations (StorageSyncManagementClient client)
cancellationToken.ThrowIfCancellationRequested();
string _responseContent = null;
- if ((int)_statusCode != 200 && (int)_statusCode != 202)
+ if ((int)_statusCode != 200 && (int)_statusCode != 202 && (int)_statusCode != 204)
{
var ex = new StorageSyncErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
try
@@ -1422,7 +1666,7 @@ internal CloudEndpointsOperations (StorageSyncManagementClient client)
throw ex;
}
// Create Result
- var _result = new Microsoft.Rest.Azure.AzureOperationResponse();
+ var _result = new Microsoft.Rest.Azure.AzureOperationHeaderResponse();
_result.Request = _httpRequest;
_result.Response = _httpResponse;
@@ -1430,27 +1674,9 @@ internal CloudEndpointsOperations (StorageSyncManagementClient client)
{
_result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
}
- // Deserialize Response
- if ((int)_statusCode == 200)
- {
- _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
- try
- {
- _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings);
- }
- catch (Newtonsoft.Json.JsonException ex)
- {
- _httpRequest.Dispose();
- if (_httpResponse != null)
- {
- _httpResponse.Dispose();
- }
- throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex);
- }
- }
try
{
- _result.Headers = _httpResponse.GetHeadersAsJson().ToObject(Newtonsoft.Json.JsonSerializer.Create(this.Client.DeserializationSettings));
+ _result.Headers = _httpResponse.GetHeadersAsJson().ToObject(Newtonsoft.Json.JsonSerializer.Create(this.Client.DeserializationSettings));
}
catch (Newtonsoft.Json.JsonException ex)
{
@@ -1473,7 +1699,7 @@ internal CloudEndpointsOperations (StorageSyncManagementClient client)
}
///
- /// Delete a given CloudEndpoint.
+ /// Post Backup a given CloudEndpoint.
///
///
/// The name of the resource group. The name is case insensitive.
@@ -1487,6 +1713,9 @@ internal CloudEndpointsOperations (StorageSyncManagementClient client)
///
/// Name of Cloud Endpoint object.
///
+ ///
+ /// Azure File Share.
+ ///
///
/// Headers that will be added to request.
///
@@ -1496,6 +1725,9 @@ internal CloudEndpointsOperations (StorageSyncManagementClient client)
///
/// Thrown when the operation returned an invalid status code
///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
///
/// Thrown when a required parameter is null
///
@@ -1505,12 +1737,17 @@ internal CloudEndpointsOperations (StorageSyncManagementClient client)
///
/// A response object containing the response body and response headers.
///
- public async System.Threading.Tasks.Task> BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
+ public async System.Threading.Tasks.Task> BeginPostBackupWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, string azureFileShare = default(string), System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
+ if (this.Client.ApiVersion == null)
+ {
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.ApiVersion");
+ }
+
if (resourceGroupName == null)
{
@@ -1527,11 +1764,6 @@ internal CloudEndpointsOperations (StorageSyncManagementClient client)
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "resourceGroupName", 1);
}
}
- if (this.Client.ApiVersion == null)
- {
- throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.ApiVersion");
- }
-
if (storageSyncServiceName == null)
{
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "storageSyncServiceName");
@@ -1547,6 +1779,11 @@ internal CloudEndpointsOperations (StorageSyncManagementClient client)
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "cloudEndpointName");
}
+ BackupRequest parameters = new BackupRequest();
+ if(azureFileShare != null)
+ {
+ parameters.AzureFileShare = azureFileShare;
+ }
// Tracing
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -1559,14 +1796,15 @@ internal CloudEndpointsOperations (StorageSyncManagementClient client)
tracingParameters.Add("syncGroupName", syncGroupName);
tracingParameters.Add("cloudEndpointName", cloudEndpointName);
+ tracingParameters.Add("parameters", parameters);
tracingParameters.Add("cancellationToken", cancellationToken);
- Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "BeginDelete", tracingParameters);
+ Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "BeginPostBackup", tracingParameters);
}
// Construct URL
var _baseUrl = this.Client.BaseUri.AbsoluteUri;
- var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/cloudEndpoints/{cloudEndpointName}").ToString();
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/cloudEndpoints/{cloudEndpointName}/postbackup").ToString();
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Microsoft.Rest.Serialization.SafeJsonConvert.SerializeObject(this.Client.SubscriptionId, this.Client.SerializationSettings).Trim('"')));
_url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
_url = _url.Replace("{storageSyncServiceName}", System.Uri.EscapeDataString(storageSyncServiceName));
@@ -1585,7 +1823,7 @@ internal CloudEndpointsOperations (StorageSyncManagementClient client)
// Create HTTP transport objects
var _httpRequest = new System.Net.Http.HttpRequestMessage();
System.Net.Http.HttpResponseMessage _httpResponse = null;
- _httpRequest.Method = new System.Net.Http.HttpMethod("DELETE");
+ _httpRequest.Method = new System.Net.Http.HttpMethod("POST");
_httpRequest.RequestUri = new System.Uri(_url);
// Set Headers
if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value)
@@ -1614,6 +1852,12 @@ internal CloudEndpointsOperations (StorageSyncManagementClient client)
}
// Serialize Request
string _requestContent = null;
+ if(parameters != null)
+ {
+ _requestContent = Microsoft.Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, this.Client.SerializationSettings);
+ _httpRequest.Content = new System.Net.Http.StringContent(_requestContent, System.Text.Encoding.UTF8);
+ _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8");
+ }
// Set Credentials
if (this.Client.Credentials != null)
{
@@ -1636,7 +1880,7 @@ internal CloudEndpointsOperations (StorageSyncManagementClient client)
cancellationToken.ThrowIfCancellationRequested();
string _responseContent = null;
- if ((int)_statusCode != 200 && (int)_statusCode != 202 && (int)_statusCode != 204)
+ if ((int)_statusCode != 200 && (int)_statusCode != 202)
{
var ex = new StorageSyncErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
try
@@ -1666,7 +1910,7 @@ internal CloudEndpointsOperations (StorageSyncManagementClient client)
throw ex;
}
// Create Result
- var _result = new Microsoft.Rest.Azure.AzureOperationHeaderResponse();
+ var _result = new Microsoft.Rest.Azure.AzureOperationResponse();
_result.Request = _httpRequest;
_result.Response = _httpResponse;
@@ -1674,9 +1918,27 @@ internal CloudEndpointsOperations (StorageSyncManagementClient client)
{
_result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
}
+ // Deserialize Response
+ if ((int)_statusCode == 200)
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ try
+ {
+ _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings);
+ }
+ catch (Newtonsoft.Json.JsonException ex)
+ {
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex);
+ }
+ }
try
{
- _result.Headers = _httpResponse.GetHeadersAsJson().ToObject(Newtonsoft.Json.JsonSerializer.Create(this.Client.DeserializationSettings));
+ _result.Headers = _httpResponse.GetHeadersAsJson().ToObject(Newtonsoft.Json.JsonSerializer.Create(this.Client.DeserializationSettings));
}
catch (Newtonsoft.Json.JsonException ex)
{
@@ -1699,7 +1961,7 @@ internal CloudEndpointsOperations (StorageSyncManagementClient client)
}
///
- /// Pre Backup a given CloudEndpoint.
+ /// Post Restore a given CloudEndpoint.
///
///
/// The name of the resource group. The name is case insensitive.
@@ -1713,8 +1975,8 @@ internal CloudEndpointsOperations (StorageSyncManagementClient client)
///
/// Name of Cloud Endpoint object.
///
- ///
- /// Azure File Share.
+ ///
+ /// Body of Cloud Endpoint object.
///
///
/// Headers that will be added to request.
@@ -1734,12 +1996,22 @@ internal CloudEndpointsOperations (StorageSyncManagementClient client)
///
/// A response object containing the response body and response headers.
///
- public async System.Threading.Tasks.Task> BeginPreBackupWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, string azureFileShare = default(string), System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
+ public async System.Threading.Tasks.Task> BeginPostRestoreWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, PostRestoreRequest parameters, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
+ if (parameters == null)
+ {
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "parameters");
+ }
+
+ if (this.Client.ApiVersion == null)
+ {
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.ApiVersion");
+ }
+
if (resourceGroupName == null)
{
@@ -1756,11 +2028,6 @@ internal CloudEndpointsOperations (StorageSyncManagementClient client)
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "resourceGroupName", 1);
}
}
- if (this.Client.ApiVersion == null)
- {
- throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.ApiVersion");
- }
-
if (storageSyncServiceName == null)
{
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "storageSyncServiceName");
@@ -1776,11 +2043,6 @@ internal CloudEndpointsOperations (StorageSyncManagementClient client)
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "cloudEndpointName");
}
- BackupRequest parameters = new BackupRequest();
- if(azureFileShare != null)
- {
- parameters.AzureFileShare = azureFileShare;
- }
// Tracing
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -1796,12 +2058,12 @@ internal CloudEndpointsOperations (StorageSyncManagementClient client)
tracingParameters.Add("parameters", parameters);
tracingParameters.Add("cancellationToken", cancellationToken);
- Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "BeginPreBackup", tracingParameters);
+ Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "BeginPostRestore", tracingParameters);
}
// Construct URL
var _baseUrl = this.Client.BaseUri.AbsoluteUri;
- var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/cloudEndpoints/{cloudEndpointName}/prebackup").ToString();
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/cloudEndpoints/{cloudEndpointName}/postrestore").ToString();
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Microsoft.Rest.Serialization.SafeJsonConvert.SerializeObject(this.Client.SubscriptionId, this.Client.SerializationSettings).Trim('"')));
_url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
_url = _url.Replace("{storageSyncServiceName}", System.Uri.EscapeDataString(storageSyncServiceName));
@@ -1907,7 +2169,7 @@ internal CloudEndpointsOperations (StorageSyncManagementClient client)
throw ex;
}
// Create Result
- var _result = new Microsoft.Rest.Azure.AzureOperationHeaderResponse();
+ var _result = new Microsoft.Rest.Azure.AzureOperationHeaderResponse();
_result.Request = _httpRequest;
_result.Response = _httpResponse;
@@ -1917,7 +2179,7 @@ internal CloudEndpointsOperations (StorageSyncManagementClient client)
}
try
{
- _result.Headers = _httpResponse.GetHeadersAsJson().ToObject(Newtonsoft.Json.JsonSerializer.Create(this.Client.DeserializationSettings));
+ _result.Headers = _httpResponse.GetHeadersAsJson().ToObject(Newtonsoft.Json.JsonSerializer.Create(this.Client.DeserializationSettings));
}
catch (Newtonsoft.Json.JsonException ex)
{
@@ -1940,7 +2202,7 @@ internal CloudEndpointsOperations (StorageSyncManagementClient client)
}
///
- /// Post Backup a given CloudEndpoint.
+ /// Pre Backup a given CloudEndpoint.
///
///
/// The name of the resource group. The name is case insensitive.
@@ -1966,9 +2228,6 @@ internal CloudEndpointsOperations (StorageSyncManagementClient client)
///
/// Thrown when the operation returned an invalid status code
///
- ///
- /// Thrown when unable to deserialize the response
- ///
///
/// Thrown when a required parameter is null
///
@@ -1978,12 +2237,17 @@ internal CloudEndpointsOperations (StorageSyncManagementClient client)
///
/// A response object containing the response body and response headers.
///
- public async System.Threading.Tasks.Task> BeginPostBackupWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, string azureFileShare = default(string), System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
+ public async System.Threading.Tasks.Task> BeginPreBackupWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, string azureFileShare = default(string), System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
+ if (this.Client.ApiVersion == null)
+ {
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.ApiVersion");
+ }
+
if (resourceGroupName == null)
{
@@ -2000,11 +2264,6 @@ internal CloudEndpointsOperations (StorageSyncManagementClient client)
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "resourceGroupName", 1);
}
}
- if (this.Client.ApiVersion == null)
- {
- throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.ApiVersion");
- }
-
if (storageSyncServiceName == null)
{
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "storageSyncServiceName");
@@ -2040,12 +2299,12 @@ internal CloudEndpointsOperations (StorageSyncManagementClient client)
tracingParameters.Add("parameters", parameters);
tracingParameters.Add("cancellationToken", cancellationToken);
- Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "BeginPostBackup", tracingParameters);
+ Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "BeginPreBackup", tracingParameters);
}
// Construct URL
var _baseUrl = this.Client.BaseUri.AbsoluteUri;
- var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/cloudEndpoints/{cloudEndpointName}/postbackup").ToString();
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/cloudEndpoints/{cloudEndpointName}/prebackup").ToString();
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Microsoft.Rest.Serialization.SafeJsonConvert.SerializeObject(this.Client.SubscriptionId, this.Client.SerializationSettings).Trim('"')));
_url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
_url = _url.Replace("{storageSyncServiceName}", System.Uri.EscapeDataString(storageSyncServiceName));
@@ -2151,7 +2410,7 @@ internal CloudEndpointsOperations (StorageSyncManagementClient client)
throw ex;
}
// Create Result
- var _result = new Microsoft.Rest.Azure.AzureOperationResponse();
+ var _result = new Microsoft.Rest.Azure.AzureOperationHeaderResponse();
_result.Request = _httpRequest;
_result.Response = _httpResponse;
@@ -2159,27 +2418,9 @@ internal CloudEndpointsOperations (StorageSyncManagementClient client)
{
_result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
}
- // Deserialize Response
- if ((int)_statusCode == 200)
- {
- _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
- try
- {
- _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings);
- }
- catch (Newtonsoft.Json.JsonException ex)
- {
- _httpRequest.Dispose();
- if (_httpResponse != null)
- {
- _httpResponse.Dispose();
- }
- throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex);
- }
- }
try
{
- _result.Headers = _httpResponse.GetHeadersAsJson().ToObject(Newtonsoft.Json.JsonSerializer.Create(this.Client.DeserializationSettings));
+ _result.Headers = _httpResponse.GetHeadersAsJson().ToObject(Newtonsoft.Json.JsonSerializer.Create(this.Client.DeserializationSettings));
}
catch (Newtonsoft.Json.JsonException ex)
{
@@ -2248,6 +2489,11 @@ internal CloudEndpointsOperations (StorageSyncManagementClient client)
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "parameters");
}
+ if (this.Client.ApiVersion == null)
+ {
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.ApiVersion");
+ }
+
if (resourceGroupName == null)
{
@@ -2264,11 +2510,6 @@ internal CloudEndpointsOperations (StorageSyncManagementClient client)
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "resourceGroupName", 1);
}
}
- if (this.Client.ApiVersion == null)
- {
- throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.ApiVersion");
- }
-
if (storageSyncServiceName == null)
{
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "storageSyncServiceName");
@@ -2443,7 +2684,8 @@ internal CloudEndpointsOperations (StorageSyncManagementClient client)
}
///
- /// Post Restore a given CloudEndpoint.
+ /// Triggers detection of changes performed on Azure File share connected to
+ /// the specified Azure File Sync Cloud Endpoint.
///
///
/// The name of the resource group. The name is case insensitive.
@@ -2458,7 +2700,7 @@ internal CloudEndpointsOperations (StorageSyncManagementClient client)
/// Name of Cloud Endpoint object.
///
///
- /// Body of Cloud Endpoint object.
+ /// Trigger Change Detection Action parameters.
///
///
/// Headers that will be added to request.
@@ -2478,7 +2720,7 @@ internal CloudEndpointsOperations (StorageSyncManagementClient client)
///
/// A response object containing the response body and response headers.
///
- public async System.Threading.Tasks.Task> BeginPostRestoreWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, PostRestoreRequest parameters, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
+ public async System.Threading.Tasks.Task> BeginTriggerChangeDetectionWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, TriggerChangeDetectionParameters parameters, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
@@ -2489,6 +2731,11 @@ internal CloudEndpointsOperations (StorageSyncManagementClient client)
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "parameters");
}
+ if (this.Client.ApiVersion == null)
+ {
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.ApiVersion");
+ }
+
if (resourceGroupName == null)
{
@@ -2505,11 +2752,6 @@ internal CloudEndpointsOperations (StorageSyncManagementClient client)
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "resourceGroupName", 1);
}
}
- if (this.Client.ApiVersion == null)
- {
- throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.ApiVersion");
- }
-
if (storageSyncServiceName == null)
{
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "storageSyncServiceName");
@@ -2540,12 +2782,12 @@ internal CloudEndpointsOperations (StorageSyncManagementClient client)
tracingParameters.Add("parameters", parameters);
tracingParameters.Add("cancellationToken", cancellationToken);
- Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "BeginPostRestore", tracingParameters);
+ Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "BeginTriggerChangeDetection", tracingParameters);
}
// Construct URL
var _baseUrl = this.Client.BaseUri.AbsoluteUri;
- var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/cloudEndpoints/{cloudEndpointName}/postrestore").ToString();
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/cloudEndpoints/{cloudEndpointName}/triggerChangeDetection").ToString();
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Microsoft.Rest.Serialization.SafeJsonConvert.SerializeObject(this.Client.SubscriptionId, this.Client.SerializationSettings).Trim('"')));
_url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
_url = _url.Replace("{storageSyncServiceName}", System.Uri.EscapeDataString(storageSyncServiceName));
@@ -2651,7 +2893,7 @@ internal CloudEndpointsOperations (StorageSyncManagementClient client)
throw ex;
}
// Create Result
- var _result = new Microsoft.Rest.Azure.AzureOperationHeaderResponse();
+ var _result = new Microsoft.Rest.Azure.AzureOperationHeaderResponse();
_result.Request = _httpRequest;
_result.Response = _httpResponse;
@@ -2661,7 +2903,7 @@ internal CloudEndpointsOperations (StorageSyncManagementClient client)
}
try
{
- _result.Headers = _httpResponse.GetHeadersAsJson().ToObject(Newtonsoft.Json.JsonSerializer.Create(this.Client.DeserializationSettings));
+ _result.Headers = _httpResponse.GetHeadersAsJson().ToObject(Newtonsoft.Json.JsonSerializer.Create(this.Client.DeserializationSettings));
}
catch (Newtonsoft.Json.JsonException ex)
{
@@ -2684,23 +2926,10 @@ internal CloudEndpointsOperations (StorageSyncManagementClient client)
}
///
- /// Triggers detection of changes performed on Azure File share connected to
- /// the specified Azure File Sync Cloud Endpoint.
+ /// Get a CloudEndpoint List.
///
- ///
- /// The name of the resource group. The name is case insensitive.
- ///
- ///
- /// Name of Storage Sync Service resource.
- ///
- ///
- /// Name of Sync Group resource.
- ///
- ///
- /// Name of Cloud Endpoint object.
- ///
- ///
- /// Trigger Change Detection Action parameters.
+ ///
+ /// The NextLink from the previous successful call to List operation.
///
///
/// Headers that will be added to request.
@@ -2711,6 +2940,9 @@ internal CloudEndpointsOperations (StorageSyncManagementClient client)
///
/// Thrown when the operation returned an invalid status code
///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
///
/// Thrown when a required parameter is null
///
@@ -2720,53 +2952,13 @@ internal CloudEndpointsOperations (StorageSyncManagementClient client)
///
/// A response object containing the response body and response headers.
///
- public async System.Threading.Tasks.Task> BeginTriggerChangeDetectionWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, TriggerChangeDetectionParameters parameters, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
+ public async System.Threading.Tasks.Task,CloudEndpointsListBySyncGroupHeaders>> ListBySyncGroupNextWithHttpMessagesAsync(string nextPageLink, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
-
-
-
- if (parameters == null)
- {
- throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "parameters");
- }
-
-
- if (resourceGroupName == null)
- {
- throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "resourceGroupName");
- }
- if (resourceGroupName != null)
- {
- if (resourceGroupName.Length > 90)
- {
- throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MaxLength, "resourceGroupName", 90);
- }
- if (resourceGroupName.Length < 1)
- {
- throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "resourceGroupName", 1);
- }
- }
- if (this.Client.ApiVersion == null)
- {
- throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.ApiVersion");
- }
-
- if (storageSyncServiceName == null)
- {
- throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "storageSyncServiceName");
- }
-
- if (syncGroupName == null)
- {
- throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "syncGroupName");
- }
-
- if (cloudEndpointName == null)
+ if (nextPageLink == null)
{
- throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "cloudEndpointName");
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "nextPageLink");
}
-
// Tracing
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -2774,31 +2966,17 @@ internal CloudEndpointsOperations (StorageSyncManagementClient client)
{
_invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString();
System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary();
- tracingParameters.Add("resourceGroupName", resourceGroupName);
- tracingParameters.Add("storageSyncServiceName", storageSyncServiceName);
- tracingParameters.Add("syncGroupName", syncGroupName);
- tracingParameters.Add("cloudEndpointName", cloudEndpointName);
-
- tracingParameters.Add("parameters", parameters);
+ tracingParameters.Add("nextPageLink", nextPageLink);
+
tracingParameters.Add("cancellationToken", cancellationToken);
- Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "BeginTriggerChangeDetection", tracingParameters);
+ Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "ListBySyncGroupNext", tracingParameters);
}
// Construct URL
-
- var _baseUrl = this.Client.BaseUri.AbsoluteUri;
- var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/cloudEndpoints/{cloudEndpointName}/triggerChangeDetection").ToString();
- _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Microsoft.Rest.Serialization.SafeJsonConvert.SerializeObject(this.Client.SubscriptionId, this.Client.SerializationSettings).Trim('"')));
- _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
- _url = _url.Replace("{storageSyncServiceName}", System.Uri.EscapeDataString(storageSyncServiceName));
- _url = _url.Replace("{syncGroupName}", System.Uri.EscapeDataString(syncGroupName));
- _url = _url.Replace("{cloudEndpointName}", System.Uri.EscapeDataString(cloudEndpointName));
+ string _url = "{nextLink}";
+ _url = _url.Replace("{nextLink}", nextPageLink);
System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List();
- if (this.Client.ApiVersion != null)
- {
- _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(this.Client.ApiVersion)));
- }
if (_queryParameters.Count > 0)
{
_url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);
@@ -2806,7 +2984,7 @@ internal CloudEndpointsOperations (StorageSyncManagementClient client)
// Create HTTP transport objects
var _httpRequest = new System.Net.Http.HttpRequestMessage();
System.Net.Http.HttpResponseMessage _httpResponse = null;
- _httpRequest.Method = new System.Net.Http.HttpMethod("POST");
+ _httpRequest.Method = new System.Net.Http.HttpMethod("GET");
_httpRequest.RequestUri = new System.Uri(_url);
// Set Headers
if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value)
@@ -2835,12 +3013,6 @@ internal CloudEndpointsOperations (StorageSyncManagementClient client)
}
// Serialize Request
string _requestContent = null;
- if(parameters != null)
- {
- _requestContent = Microsoft.Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, this.Client.SerializationSettings);
- _httpRequest.Content = new System.Net.Http.StringContent(_requestContent, System.Text.Encoding.UTF8);
- _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8");
- }
// Set Credentials
if (this.Client.Credentials != null)
{
@@ -2863,7 +3035,7 @@ internal CloudEndpointsOperations (StorageSyncManagementClient client)
cancellationToken.ThrowIfCancellationRequested();
string _responseContent = null;
- if ((int)_statusCode != 200 && (int)_statusCode != 202)
+ if ((int)_statusCode != 200)
{
var ex = new StorageSyncErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
try
@@ -2893,7 +3065,7 @@ internal CloudEndpointsOperations (StorageSyncManagementClient client)
throw ex;
}
// Create Result
- var _result = new Microsoft.Rest.Azure.AzureOperationHeaderResponse();
+ var _result = new Microsoft.Rest.Azure.AzureOperationResponse,CloudEndpointsListBySyncGroupHeaders>();
_result.Request = _httpRequest;
_result.Response = _httpResponse;
@@ -2901,9 +3073,27 @@ internal CloudEndpointsOperations (StorageSyncManagementClient client)
{
_result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
}
+ // Deserialize Response
+ if ((int)_statusCode == 200)
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ try
+ {
+ _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, this.Client.DeserializationSettings);
+ }
+ catch (Newtonsoft.Json.JsonException ex)
+ {
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex);
+ }
+ }
try
{
- _result.Headers = _httpResponse.GetHeadersAsJson().ToObject(Newtonsoft.Json.JsonSerializer.Create(this.Client.DeserializationSettings));
+ _result.Headers = _httpResponse.GetHeadersAsJson().ToObject(Newtonsoft.Json.JsonSerializer.Create(this.Client.DeserializationSettings));
}
catch (Newtonsoft.Json.JsonException ex)
{
diff --git a/src/StorageSync/StorageSync.Management.Sdk/Generated/CloudEndpointsOperationsExtensions.cs b/src/StorageSync/StorageSync.Management.Sdk/Generated/CloudEndpointsOperationsExtensions.cs
index 60980d6b9cd4..f85e97ab88e1 100644
--- a/src/StorageSync/StorageSync.Management.Sdk/Generated/CloudEndpointsOperationsExtensions.cs
+++ b/src/StorageSync/StorageSync.Management.Sdk/Generated/CloudEndpointsOperationsExtensions.cs
@@ -13,7 +13,7 @@ namespace Microsoft.Azure.Management.StorageSync
public static partial class CloudEndpointsOperationsExtensions
{
///
- /// Create a new CloudEndpoint.
+ /// Get a CloudEndpoint List.
///
///
/// The operations group for this extension method.
@@ -27,16 +27,13 @@ public static partial class CloudEndpointsOperationsExtensions
///
/// Name of Sync Group resource.
///
- ///
- /// Name of Cloud Endpoint object.
- ///
- public static CloudEndpoint Create(this ICloudEndpointsOperations operations, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, CloudEndpointCreateParameters parameters)
+ public static Microsoft.Rest.Azure.IPage ListBySyncGroup(this ICloudEndpointsOperations operations, string resourceGroupName, string storageSyncServiceName, string syncGroupName)
{
- return ((ICloudEndpointsOperations)operations).CreateAsync(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters).GetAwaiter().GetResult();
+ return ((ICloudEndpointsOperations)operations).ListBySyncGroupAsync(resourceGroupName, storageSyncServiceName, syncGroupName).GetAwaiter().GetResult();
}
///
- /// Create a new CloudEndpoint.
+ /// Get a CloudEndpoint List.
///
///
/// The operations group for this extension method.
@@ -50,15 +47,12 @@ public static CloudEndpoint Create(this ICloudEndpointsOperations operations, st
///
/// Name of Sync Group resource.
///
- ///
- /// Name of Cloud Endpoint object.
- ///
///
/// The cancellation token.
///
- public static async System.Threading.Tasks.Task CreateAsync(this ICloudEndpointsOperations operations, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, CloudEndpointCreateParameters parameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
+ public static async System.Threading.Tasks.Task> ListBySyncGroupAsync(this ICloudEndpointsOperations operations, string resourceGroupName, string storageSyncServiceName, string syncGroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
- using (var _result = await operations.CreateWithHttpMessagesAsync(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters, null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.ListBySyncGroupWithHttpMessagesAsync(resourceGroupName, storageSyncServiceName, syncGroupName, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
@@ -115,7 +109,7 @@ public static CloudEndpoint Get(this ICloudEndpointsOperations operations, strin
}
}
///
- /// Delete a given CloudEndpoint.
+ /// Create a new CloudEndpoint.
///
///
/// The operations group for this extension method.
@@ -132,13 +126,13 @@ public static CloudEndpoint Get(this ICloudEndpointsOperations operations, strin
///
/// Name of Cloud Endpoint object.
///
- public static CloudEndpointsDeleteHeaders Delete(this ICloudEndpointsOperations operations, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName)
+ public static CloudEndpoint Create(this ICloudEndpointsOperations operations, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, CloudEndpointCreateParameters parameters)
{
- return ((ICloudEndpointsOperations)operations).DeleteAsync(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName).GetAwaiter().GetResult();
+ return ((ICloudEndpointsOperations)operations).CreateAsync(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters).GetAwaiter().GetResult();
}
///
- /// Delete a given CloudEndpoint.
+ /// Create a new CloudEndpoint.
///
///
/// The operations group for this extension method.
@@ -158,15 +152,15 @@ public static CloudEndpointsDeleteHeaders Delete(this ICloudEndpointsOperations
///
/// The cancellation token.
///
- public static async System.Threading.Tasks.Task DeleteAsync(this ICloudEndpointsOperations operations, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
+ public static async System.Threading.Tasks.Task CreateAsync(this ICloudEndpointsOperations operations, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, CloudEndpointCreateParameters parameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
- using (var _result = await operations.DeleteWithHttpMessagesAsync(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.CreateWithHttpMessagesAsync(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters, null, cancellationToken).ConfigureAwait(false))
{
- return _result.Headers;
+ return _result.Body;
}
}
///
- /// Get a CloudEndpoint List.
+ /// Delete a given CloudEndpoint.
///
///
/// The operations group for this extension method.
@@ -180,13 +174,16 @@ public static CloudEndpointsDeleteHeaders Delete(this ICloudEndpointsOperations
///
/// Name of Sync Group resource.
///
- public static System.Collections.Generic.IEnumerable ListBySyncGroup(this ICloudEndpointsOperations operations, string resourceGroupName, string storageSyncServiceName, string syncGroupName)
+ ///
+ /// Name of Cloud Endpoint object.
+ ///
+ public static CloudEndpointsDeleteHeaders Delete(this ICloudEndpointsOperations operations, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName)
{
- return ((ICloudEndpointsOperations)operations).ListBySyncGroupAsync(resourceGroupName, storageSyncServiceName, syncGroupName).GetAwaiter().GetResult();
+ return ((ICloudEndpointsOperations)operations).DeleteAsync(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName).GetAwaiter().GetResult();
}
///
- /// Get a CloudEndpoint List.
+ /// Delete a given CloudEndpoint.
///
///
/// The operations group for this extension method.
@@ -200,18 +197,21 @@ public static System.Collections.Generic.IEnumerable ListBySyncGr
///
/// Name of Sync Group resource.
///
+ ///
+ /// Name of Cloud Endpoint object.
+ ///
///
/// The cancellation token.
///
- public static async System.Threading.Tasks.Task> ListBySyncGroupAsync(this ICloudEndpointsOperations operations, string resourceGroupName, string storageSyncServiceName, string syncGroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
+ public static async System.Threading.Tasks.Task DeleteAsync(this ICloudEndpointsOperations operations, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
- using (var _result = await operations.ListBySyncGroupWithHttpMessagesAsync(resourceGroupName, storageSyncServiceName, syncGroupName, null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.DeleteWithHttpMessagesAsync(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, null, cancellationToken).ConfigureAwait(false))
{
- return _result.Body;
+ return _result.Headers;
}
}
///
- /// Pre Backup a given CloudEndpoint.
+ /// Get the AFS file share metadata signing certificate public keys.
///
///
/// The operations group for this extension method.
@@ -228,13 +228,13 @@ public static System.Collections.Generic.IEnumerable ListBySyncGr
///
/// Name of Cloud Endpoint object.
///
- public static CloudEndpointsPreBackupHeaders PreBackup(this ICloudEndpointsOperations operations, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, string azureFileShare = default(string))
+ public static CloudEndpointAfsShareMetadataCertificatePublicKeys AfsShareMetadataCertificatePublicKeys(this ICloudEndpointsOperations operations, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName)
{
- return ((ICloudEndpointsOperations)operations).PreBackupAsync(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, azureFileShare).GetAwaiter().GetResult();
+ return ((ICloudEndpointsOperations)operations).AfsShareMetadataCertificatePublicKeysAsync(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName).GetAwaiter().GetResult();
}
///
- /// Pre Backup a given CloudEndpoint.
+ /// Get the AFS file share metadata signing certificate public keys.
///
///
/// The operations group for this extension method.
@@ -254,11 +254,11 @@ public static System.Collections.Generic.IEnumerable ListBySyncGr
///
/// The cancellation token.
///
- public static async System.Threading.Tasks.Task PreBackupAsync(this ICloudEndpointsOperations operations, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, string azureFileShare = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
+ public static async System.Threading.Tasks.Task AfsShareMetadataCertificatePublicKeysAsync(this ICloudEndpointsOperations operations, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
- using (var _result = await operations.PreBackupWithHttpMessagesAsync(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, azureFileShare, null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.AfsShareMetadataCertificatePublicKeysWithHttpMessagesAsync(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, null, cancellationToken).ConfigureAwait(false))
{
- return _result.Headers;
+ return _result.Body;
}
}
///
@@ -313,7 +313,7 @@ public static System.Collections.Generic.IEnumerable ListBySyncGr
}
}
///
- /// Pre Restore a given CloudEndpoint.
+ /// Post Restore a given CloudEndpoint.
///
///
/// The operations group for this extension method.
@@ -330,13 +330,13 @@ public static System.Collections.Generic.IEnumerable ListBySyncGr
///
/// Name of Cloud Endpoint object.
///
- public static CloudEndpointsPreRestoreHeaders PreRestore(this ICloudEndpointsOperations operations, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, PreRestoreRequest parameters)
+ public static CloudEndpointsPostRestoreHeaders PostRestore(this ICloudEndpointsOperations operations, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, PostRestoreRequest parameters)
{
- return ((ICloudEndpointsOperations)operations).PreRestoreAsync(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters).GetAwaiter().GetResult();
+ return ((ICloudEndpointsOperations)operations).PostRestoreAsync(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters).GetAwaiter().GetResult();
}
///
- /// Pre Restore a given CloudEndpoint.
+ /// Post Restore a given CloudEndpoint.
///
///
/// The operations group for this extension method.
@@ -356,15 +356,15 @@ public static CloudEndpointsPreRestoreHeaders PreRestore(this ICloudEndpointsOpe
///
/// The cancellation token.
///
- public static async System.Threading.Tasks.Task PreRestoreAsync(this ICloudEndpointsOperations operations, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, PreRestoreRequest parameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
+ public static async System.Threading.Tasks.Task PostRestoreAsync(this ICloudEndpointsOperations operations, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, PostRestoreRequest parameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
- using (var _result = await operations.PreRestoreWithHttpMessagesAsync(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters, null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.PostRestoreWithHttpMessagesAsync(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters, null, cancellationToken).ConfigureAwait(false))
{
return _result.Headers;
}
}
///
- /// Restore Heartbeat a given CloudEndpoint.
+ /// Pre Backup a given CloudEndpoint.
///
///
/// The operations group for this extension method.
@@ -381,13 +381,13 @@ public static CloudEndpointsPreRestoreHeaders PreRestore(this ICloudEndpointsOpe
///
/// Name of Cloud Endpoint object.
///
- public static CloudEndpointsRestoreheartbeatHeaders Restoreheartbeat(this ICloudEndpointsOperations operations, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName)
+ public static CloudEndpointsPreBackupHeaders PreBackup(this ICloudEndpointsOperations operations, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, string azureFileShare = default(string))
{
- return ((ICloudEndpointsOperations)operations).RestoreheartbeatAsync(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName).GetAwaiter().GetResult();
+ return ((ICloudEndpointsOperations)operations).PreBackupAsync(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, azureFileShare).GetAwaiter().GetResult();
}
///
- /// Restore Heartbeat a given CloudEndpoint.
+ /// Pre Backup a given CloudEndpoint.
///
///
/// The operations group for this extension method.
@@ -407,15 +407,15 @@ public static CloudEndpointsRestoreheartbeatHeaders Restoreheartbeat(this ICloud
///
/// The cancellation token.
///
- public static async System.Threading.Tasks.Task RestoreheartbeatAsync(this ICloudEndpointsOperations operations, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
+ public static async System.Threading.Tasks.Task PreBackupAsync(this ICloudEndpointsOperations operations, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, string azureFileShare = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
- using (var _result = await operations.RestoreheartbeatWithHttpMessagesAsync(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.PreBackupWithHttpMessagesAsync(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, azureFileShare, null, cancellationToken).ConfigureAwait(false))
{
return _result.Headers;
}
}
///
- /// Post Restore a given CloudEndpoint.
+ /// Pre Restore a given CloudEndpoint.
///
///
/// The operations group for this extension method.
@@ -432,13 +432,13 @@ public static CloudEndpointsRestoreheartbeatHeaders Restoreheartbeat(this ICloud
///
/// Name of Cloud Endpoint object.
///
- public static CloudEndpointsPostRestoreHeaders PostRestore(this ICloudEndpointsOperations operations, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, PostRestoreRequest parameters)
+ public static CloudEndpointsPreRestoreHeaders PreRestore(this ICloudEndpointsOperations operations, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, PreRestoreRequest parameters)
{
- return ((ICloudEndpointsOperations)operations).PostRestoreAsync(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters).GetAwaiter().GetResult();
+ return ((ICloudEndpointsOperations)operations).PreRestoreAsync(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters).GetAwaiter().GetResult();
}
///
- /// Post Restore a given CloudEndpoint.
+ /// Pre Restore a given CloudEndpoint.
///
///
/// The operations group for this extension method.
@@ -458,16 +458,15 @@ public static CloudEndpointsPostRestoreHeaders PostRestore(this ICloudEndpointsO
///
/// The cancellation token.
///
- public static async System.Threading.Tasks.Task PostRestoreAsync(this ICloudEndpointsOperations operations, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, PostRestoreRequest parameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
+ public static async System.Threading.Tasks.Task PreRestoreAsync(this ICloudEndpointsOperations operations, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, PreRestoreRequest parameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
- using (var _result = await operations.PostRestoreWithHttpMessagesAsync(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters, null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.PreRestoreWithHttpMessagesAsync(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters, null, cancellationToken).ConfigureAwait(false))
{
return _result.Headers;
}
}
///
- /// Triggers detection of changes performed on Azure File share connected to
- /// the specified Azure File Sync Cloud Endpoint.
+ /// Restore Heartbeat a given CloudEndpoint.
///
///
/// The operations group for this extension method.
@@ -484,14 +483,13 @@ public static CloudEndpointsPostRestoreHeaders PostRestore(this ICloudEndpointsO
///
/// Name of Cloud Endpoint object.
///
- public static CloudEndpointsTriggerChangeDetectionHeaders TriggerChangeDetection(this ICloudEndpointsOperations operations, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, TriggerChangeDetectionParameters parameters)
+ public static CloudEndpointsRestoreheartbeatHeaders Restoreheartbeat(this ICloudEndpointsOperations operations, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName)
{
- return ((ICloudEndpointsOperations)operations).TriggerChangeDetectionAsync(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters).GetAwaiter().GetResult();
+ return ((ICloudEndpointsOperations)operations).RestoreheartbeatAsync(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName).GetAwaiter().GetResult();
}
///
- /// Triggers detection of changes performed on Azure File share connected to
- /// the specified Azure File Sync Cloud Endpoint.
+ /// Restore Heartbeat a given CloudEndpoint.
///
///
/// The operations group for this extension method.
@@ -511,15 +509,16 @@ public static CloudEndpointsTriggerChangeDetectionHeaders TriggerChangeDetection
///
/// The cancellation token.
///
- public static async System.Threading.Tasks.Task TriggerChangeDetectionAsync(this ICloudEndpointsOperations operations, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, TriggerChangeDetectionParameters parameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
+ public static async System.Threading.Tasks.Task RestoreheartbeatAsync(this ICloudEndpointsOperations operations, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
- using (var _result = await operations.TriggerChangeDetectionWithHttpMessagesAsync(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters, null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.RestoreheartbeatWithHttpMessagesAsync(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, null, cancellationToken).ConfigureAwait(false))
{
return _result.Headers;
}
}
///
- /// Get the AFS file share metadata signing certificate public keys.
+ /// Triggers detection of changes performed on Azure File share connected to
+ /// the specified Azure File Sync Cloud Endpoint.
///
///
/// The operations group for this extension method.
@@ -536,13 +535,14 @@ public static CloudEndpointsTriggerChangeDetectionHeaders TriggerChangeDetection
///
/// Name of Cloud Endpoint object.
///
- public static CloudEndpointAfsShareMetadataCertificatePublicKeys AfsShareMetadataCertificatePublicKeys(this ICloudEndpointsOperations operations, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName)
+ public static CloudEndpointsTriggerChangeDetectionHeaders TriggerChangeDetection(this ICloudEndpointsOperations operations, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, TriggerChangeDetectionParameters parameters)
{
- return ((ICloudEndpointsOperations)operations).AfsShareMetadataCertificatePublicKeysAsync(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName).GetAwaiter().GetResult();
+ return ((ICloudEndpointsOperations)operations).TriggerChangeDetectionAsync(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters).GetAwaiter().GetResult();
}
///
- /// Get the AFS file share metadata signing certificate public keys.
+ /// Triggers detection of changes performed on Azure File share connected to
+ /// the specified Azure File Sync Cloud Endpoint.
///
///
/// The operations group for this extension method.
@@ -562,11 +562,11 @@ public static CloudEndpointAfsShareMetadataCertificatePublicKeys AfsShareMetadat
///
/// The cancellation token.
///
- public static async System.Threading.Tasks.Task AfsShareMetadataCertificatePublicKeysAsync(this ICloudEndpointsOperations operations, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
+ public static async System.Threading.Tasks.Task TriggerChangeDetectionAsync(this ICloudEndpointsOperations operations, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, TriggerChangeDetectionParameters parameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
- using (var _result = await operations.AfsShareMetadataCertificatePublicKeysWithHttpMessagesAsync(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.TriggerChangeDetectionWithHttpMessagesAsync(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters, null, cancellationToken).ConfigureAwait(false))
{
- return _result.Body;
+ return _result.Headers;
}
}
///
@@ -672,7 +672,7 @@ public static CloudEndpointsDeleteHeaders BeginDelete(this ICloudEndpointsOperat
}
}
///
- /// Pre Backup a given CloudEndpoint.
+ /// Post Backup a given CloudEndpoint.
///
///
/// The operations group for this extension method.
@@ -689,13 +689,13 @@ public static CloudEndpointsDeleteHeaders BeginDelete(this ICloudEndpointsOperat
///
/// Name of Cloud Endpoint object.
///
- public static CloudEndpointsPreBackupHeaders BeginPreBackup(this ICloudEndpointsOperations operations, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, string azureFileShare = default(string))
+ public static PostBackupResponse BeginPostBackup(this ICloudEndpointsOperations operations, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, string azureFileShare = default(string))
{
- return ((ICloudEndpointsOperations)operations).BeginPreBackupAsync(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, azureFileShare).GetAwaiter().GetResult();
+ return ((ICloudEndpointsOperations)operations).BeginPostBackupAsync(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, azureFileShare).GetAwaiter().GetResult();
}
///
- /// Pre Backup a given CloudEndpoint.
+ /// Post Backup a given CloudEndpoint.
///
///
/// The operations group for this extension method.
@@ -715,15 +715,15 @@ public static CloudEndpointsDeleteHeaders BeginDelete(this ICloudEndpointsOperat
///
/// The cancellation token.
///
- public static async System.Threading.Tasks.Task BeginPreBackupAsync(this ICloudEndpointsOperations operations, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, string azureFileShare = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
+ public static async System.Threading.Tasks.Task BeginPostBackupAsync(this ICloudEndpointsOperations operations, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, string azureFileShare = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
- using (var _result = await operations.BeginPreBackupWithHttpMessagesAsync(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, azureFileShare, null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.BeginPostBackupWithHttpMessagesAsync(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, azureFileShare, null, cancellationToken).ConfigureAwait(false))
{
- return _result.Headers;
+ return _result.Body;
}
}
///
- /// Post Backup a given CloudEndpoint.
+ /// Post Restore a given CloudEndpoint.
///
///
/// The operations group for this extension method.
@@ -740,13 +740,13 @@ public static CloudEndpointsDeleteHeaders BeginDelete(this ICloudEndpointsOperat
///
/// Name of Cloud Endpoint object.
///
- public static PostBackupResponse BeginPostBackup(this ICloudEndpointsOperations operations, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, string azureFileShare = default(string))
+ public static CloudEndpointsPostRestoreHeaders BeginPostRestore(this ICloudEndpointsOperations operations, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, PostRestoreRequest parameters)
{
- return ((ICloudEndpointsOperations)operations).BeginPostBackupAsync(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, azureFileShare).GetAwaiter().GetResult();
+ return ((ICloudEndpointsOperations)operations).BeginPostRestoreAsync(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters).GetAwaiter().GetResult();
}
///
- /// Post Backup a given CloudEndpoint.
+ /// Post Restore a given CloudEndpoint.
///
///
/// The operations group for this extension method.
@@ -766,15 +766,15 @@ public static CloudEndpointsDeleteHeaders BeginDelete(this ICloudEndpointsOperat
///
/// The cancellation token.
///
- public static async System.Threading.Tasks.Task BeginPostBackupAsync(this ICloudEndpointsOperations operations, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, string azureFileShare = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
+ public static async System.Threading.Tasks.Task BeginPostRestoreAsync(this ICloudEndpointsOperations operations, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, PostRestoreRequest parameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
- using (var _result = await operations.BeginPostBackupWithHttpMessagesAsync(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, azureFileShare, null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.BeginPostRestoreWithHttpMessagesAsync(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters, null, cancellationToken).ConfigureAwait(false))
{
- return _result.Body;
+ return _result.Headers;
}
}
///
- /// Pre Restore a given CloudEndpoint.
+ /// Pre Backup a given CloudEndpoint.
///
///
/// The operations group for this extension method.
@@ -791,13 +791,13 @@ public static CloudEndpointsDeleteHeaders BeginDelete(this ICloudEndpointsOperat
///
/// Name of Cloud Endpoint object.
///
- public static CloudEndpointsPreRestoreHeaders BeginPreRestore(this ICloudEndpointsOperations operations, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, PreRestoreRequest parameters)
+ public static CloudEndpointsPreBackupHeaders BeginPreBackup(this ICloudEndpointsOperations operations, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, string azureFileShare = default(string))
{
- return ((ICloudEndpointsOperations)operations).BeginPreRestoreAsync(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters).GetAwaiter().GetResult();
+ return ((ICloudEndpointsOperations)operations).BeginPreBackupAsync(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, azureFileShare).GetAwaiter().GetResult();
}
///
- /// Pre Restore a given CloudEndpoint.
+ /// Pre Backup a given CloudEndpoint.
///
///
/// The operations group for this extension method.
@@ -817,15 +817,15 @@ public static CloudEndpointsPreRestoreHeaders BeginPreRestore(this ICloudEndpoin
///
/// The cancellation token.
///
- public static async System.Threading.Tasks.Task BeginPreRestoreAsync(this ICloudEndpointsOperations operations, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, PreRestoreRequest parameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
+ public static async System.Threading.Tasks.Task BeginPreBackupAsync(this ICloudEndpointsOperations operations, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, string azureFileShare = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
- using (var _result = await operations.BeginPreRestoreWithHttpMessagesAsync(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters, null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.BeginPreBackupWithHttpMessagesAsync(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, azureFileShare, null, cancellationToken).ConfigureAwait(false))
{
return _result.Headers;
}
}
///
- /// Post Restore a given CloudEndpoint.
+ /// Pre Restore a given CloudEndpoint.
///
///
/// The operations group for this extension method.
@@ -842,13 +842,13 @@ public static CloudEndpointsPreRestoreHeaders BeginPreRestore(this ICloudEndpoin
///
/// Name of Cloud Endpoint object.
///
- public static CloudEndpointsPostRestoreHeaders BeginPostRestore(this ICloudEndpointsOperations operations, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, PostRestoreRequest parameters)
+ public static CloudEndpointsPreRestoreHeaders BeginPreRestore(this ICloudEndpointsOperations operations, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, PreRestoreRequest parameters)
{
- return ((ICloudEndpointsOperations)operations).BeginPostRestoreAsync(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters).GetAwaiter().GetResult();
+ return ((ICloudEndpointsOperations)operations).BeginPreRestoreAsync(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters).GetAwaiter().GetResult();
}
///
- /// Post Restore a given CloudEndpoint.
+ /// Pre Restore a given CloudEndpoint.
///
///
/// The operations group for this extension method.
@@ -868,9 +868,9 @@ public static CloudEndpointsPostRestoreHeaders BeginPostRestore(this ICloudEndpo
///
/// The cancellation token.
///
- public static async System.Threading.Tasks.Task BeginPostRestoreAsync(this ICloudEndpointsOperations operations, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, PostRestoreRequest parameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
+ public static async System.Threading.Tasks.Task BeginPreRestoreAsync(this ICloudEndpointsOperations operations, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, PreRestoreRequest parameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
- using (var _result = await operations.BeginPostRestoreWithHttpMessagesAsync(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters, null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.BeginPreRestoreWithHttpMessagesAsync(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters, null, cancellationToken).ConfigureAwait(false))
{
return _result.Headers;
}
@@ -928,5 +928,38 @@ public static CloudEndpointsTriggerChangeDetectionHeaders BeginTriggerChangeDete
return _result.Headers;
}
}
+ ///
+ /// Get a CloudEndpoint List.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The NextLink from the previous successful call to List operation.
+ ///
+ public static Microsoft.Rest.Azure.IPage ListBySyncGroupNext(this ICloudEndpointsOperations operations, string nextPageLink)
+ {
+ return ((ICloudEndpointsOperations)operations).ListBySyncGroupNextAsync(nextPageLink).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Get a CloudEndpoint List.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The NextLink from the previous successful call to List operation.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async System.Threading.Tasks.Task> ListBySyncGroupNextAsync(this ICloudEndpointsOperations operations, string nextPageLink, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
+ {
+ using (var _result = await operations.ListBySyncGroupNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
}
}
diff --git a/src/StorageSync/StorageSync.Management.Sdk/Generated/ICloudEndpointsOperations.cs b/src/StorageSync/StorageSync.Management.Sdk/Generated/ICloudEndpointsOperations.cs
index e2cf6ee79237..ccce44567182 100644
--- a/src/StorageSync/StorageSync.Management.Sdk/Generated/ICloudEndpointsOperations.cs
+++ b/src/StorageSync/StorageSync.Management.Sdk/Generated/ICloudEndpointsOperations.cs
@@ -14,10 +14,10 @@ namespace Microsoft.Azure.Management.StorageSync
public partial interface ICloudEndpointsOperations
{
///
- /// Create a new CloudEndpoint.
+ /// Get a CloudEndpoint List.
///
///
- /// Create a new CloudEndpoint.
+ /// Get a CloudEndpoint List.
///
///
/// The name of the resource group. The name is case insensitive.
@@ -28,12 +28,6 @@ public partial interface ICloudEndpointsOperations
///
/// Name of Sync Group resource.
///
- ///
- /// Name of Cloud Endpoint object.
- ///
- ///
- /// Body of Cloud Endpoint resource.
- ///
///
/// The headers that will be added to request.
///
@@ -46,7 +40,7 @@ public partial interface ICloudEndpointsOperations
///
/// Thrown when unable to deserialize the response
///
- System.Threading.Tasks.Task> CreateWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, CloudEndpointCreateParameters parameters, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+ System.Threading.Tasks.Task,CloudEndpointsListBySyncGroupHeaders>> ListBySyncGroupWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string syncGroupName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
///
/// Get a given CloudEndpoint.
@@ -81,10 +75,10 @@ public partial interface ICloudEndpointsOperations
System.Threading.Tasks.Task> GetWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
///
- /// Delete a given CloudEndpoint.
+ /// Create a new CloudEndpoint.
///
///
- /// Delete a given CloudEndpoint.
+ /// Create a new CloudEndpoint.
///
///
/// The name of the resource group. The name is case insensitive.
@@ -98,6 +92,9 @@ public partial interface ICloudEndpointsOperations
///
/// Name of Cloud Endpoint object.
///
+ ///
+ /// Body of Cloud Endpoint resource.
+ ///
///
/// The headers that will be added to request.
///
@@ -107,13 +104,16 @@ public partial interface ICloudEndpointsOperations
///
/// Thrown when the operation returned an invalid status code
///
- System.Threading.Tasks.Task> DeleteWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ System.Threading.Tasks.Task> CreateWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, CloudEndpointCreateParameters parameters, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
///
- /// Get a CloudEndpoint List.
+ /// Delete a given CloudEndpoint.
///
///
- /// Get a CloudEndpoint List.
+ /// Delete a given CloudEndpoint.
///
///
/// The name of the resource group. The name is case insensitive.
@@ -124,6 +124,9 @@ public partial interface ICloudEndpointsOperations
///
/// Name of Sync Group resource.
///
+ ///
+ /// Name of Cloud Endpoint object.
+ ///
///
/// The headers that will be added to request.
///
@@ -133,16 +136,13 @@ public partial interface ICloudEndpointsOperations
///
/// Thrown when the operation returned an invalid status code
///
- ///
- /// Thrown when unable to deserialize the response
- ///
- System.Threading.Tasks.Task,CloudEndpointsListBySyncGroupHeaders>> ListBySyncGroupWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string syncGroupName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+ System.Threading.Tasks.Task> DeleteWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
///
- /// Pre Backup a given CloudEndpoint.
+ /// Get the AFS file share metadata signing certificate public keys.
///
///
- /// Pre Backup a given CloudEndpoint.
+ /// Get the AFS file share metadata signing certificate public keys.
///
///
/// The name of the resource group. The name is case insensitive.
@@ -156,9 +156,6 @@ public partial interface ICloudEndpointsOperations
///
/// Name of Cloud Endpoint object.
///
- ///
- /// Azure File Share.
- ///
///
/// The headers that will be added to request.
///
@@ -168,7 +165,10 @@ public partial interface ICloudEndpointsOperations
///
/// Thrown when the operation returned an invalid status code
///
- System.Threading.Tasks.Task> PreBackupWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, string azureFileShare = default(string), System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ System.Threading.Tasks.Task> AfsShareMetadataCertificatePublicKeysWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
///
/// Post Backup a given CloudEndpoint.
@@ -206,10 +206,10 @@ public partial interface ICloudEndpointsOperations
System.Threading.Tasks.Task> PostBackupWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, string azureFileShare = default(string), System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
///
- /// Pre Restore a given CloudEndpoint.
+ /// Post Restore a given CloudEndpoint.
///
///
- /// Pre Restore a given CloudEndpoint.
+ /// Post Restore a given CloudEndpoint.
///
///
/// The name of the resource group. The name is case insensitive.
@@ -235,13 +235,13 @@ public partial interface ICloudEndpointsOperations
///
/// Thrown when the operation returned an invalid status code
///
- System.Threading.Tasks.Task> PreRestoreWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, PreRestoreRequest parameters, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+ System.Threading.Tasks.Task> PostRestoreWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, PostRestoreRequest parameters, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
///
- /// Restore Heartbeat a given CloudEndpoint.
+ /// Pre Backup a given CloudEndpoint.
///
///
- /// Restore Heartbeat a given CloudEndpoint.
+ /// Pre Backup a given CloudEndpoint.
///
///
/// The name of the resource group. The name is case insensitive.
@@ -255,6 +255,9 @@ public partial interface ICloudEndpointsOperations
///
/// Name of Cloud Endpoint object.
///
+ ///
+ /// Azure File Share.
+ ///
///
/// The headers that will be added to request.
///
@@ -264,13 +267,13 @@ public partial interface ICloudEndpointsOperations
///
/// Thrown when the operation returned an invalid status code
///
- System.Threading.Tasks.Task> RestoreheartbeatWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+ System.Threading.Tasks.Task> PreBackupWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, string azureFileShare = default(string), System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
///
- /// Post Restore a given CloudEndpoint.
+ /// Pre Restore a given CloudEndpoint.
///
///
- /// Post Restore a given CloudEndpoint.
+ /// Pre Restore a given CloudEndpoint.
///
///
/// The name of the resource group. The name is case insensitive.
@@ -296,15 +299,13 @@ public partial interface ICloudEndpointsOperations
///
/// Thrown when the operation returned an invalid status code
///
- System.Threading.Tasks.Task> PostRestoreWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, PostRestoreRequest parameters, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+ System.Threading.Tasks.Task> PreRestoreWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, PreRestoreRequest parameters, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
///
- /// Triggers detection of changes performed on Azure File share connected to
- /// the specified Azure File Sync Cloud Endpoint.
+ /// Restore Heartbeat a given CloudEndpoint.
///
///
- /// Triggers detection of changes performed on Azure File share connected to
- /// the specified Azure File Sync Cloud Endpoint.
+ /// Restore Heartbeat a given CloudEndpoint.
///
///
/// The name of the resource group. The name is case insensitive.
@@ -318,9 +319,6 @@ public partial interface ICloudEndpointsOperations
///
/// Name of Cloud Endpoint object.
///
- ///
- /// Trigger Change Detection Action parameters.
- ///
///
/// The headers that will be added to request.
///
@@ -330,13 +328,15 @@ public partial interface ICloudEndpointsOperations
///
/// Thrown when the operation returned an invalid status code
///
- System.Threading.Tasks.Task> TriggerChangeDetectionWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, TriggerChangeDetectionParameters parameters, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+ System.Threading.Tasks.Task> RestoreheartbeatWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
///
- /// Get the AFS file share metadata signing certificate public keys.
+ /// Triggers detection of changes performed on Azure File share connected to
+ /// the specified Azure File Sync Cloud Endpoint.
///
///
- /// Get the AFS file share metadata signing certificate public keys.
+ /// Triggers detection of changes performed on Azure File share connected to
+ /// the specified Azure File Sync Cloud Endpoint.
///
///
/// The name of the resource group. The name is case insensitive.
@@ -350,6 +350,9 @@ public partial interface ICloudEndpointsOperations
///
/// Name of Cloud Endpoint object.
///
+ ///
+ /// Trigger Change Detection Action parameters.
+ ///
///
/// The headers that will be added to request.
///
@@ -359,10 +362,7 @@ public partial interface ICloudEndpointsOperations
///
/// Thrown when the operation returned an invalid status code
///
- ///
- /// Thrown when unable to deserialize the response
- ///
- System.Threading.Tasks.Task> AfsShareMetadataCertificatePublicKeysWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+ System.Threading.Tasks.Task> TriggerChangeDetectionWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, TriggerChangeDetectionParameters parameters, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
///
/// Create a new CloudEndpoint.
@@ -429,10 +429,10 @@ public partial interface ICloudEndpointsOperations
System.Threading.Tasks.Task> BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
///
- /// Pre Backup a given CloudEndpoint.
+ /// Post Backup a given CloudEndpoint.
///
///
- /// Pre Backup a given CloudEndpoint.
+ /// Post Backup a given CloudEndpoint.
///
///
/// The name of the resource group. The name is case insensitive.
@@ -458,13 +458,16 @@ public partial interface ICloudEndpointsOperations
///
/// Thrown when the operation returned an invalid status code
///
- System.Threading.Tasks.Task> BeginPreBackupWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, string azureFileShare = default(string), System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ System.Threading.Tasks.Task> BeginPostBackupWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, string azureFileShare = default(string), System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
///
- /// Post Backup a given CloudEndpoint.
+ /// Post Restore a given CloudEndpoint.
///
///
- /// Post Backup a given CloudEndpoint.
+ /// Post Restore a given CloudEndpoint.
///
///
/// The name of the resource group. The name is case insensitive.
@@ -478,8 +481,8 @@ public partial interface ICloudEndpointsOperations
///
/// Name of Cloud Endpoint object.
///
- ///
- /// Azure File Share.
+ ///
+ /// Body of Cloud Endpoint object.
///
///
/// The headers that will be added to request.
@@ -490,16 +493,13 @@ public partial interface ICloudEndpointsOperations
///
/// Thrown when the operation returned an invalid status code
///
- ///
- /// Thrown when unable to deserialize the response
- ///
- System.Threading.Tasks.Task> BeginPostBackupWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, string azureFileShare = default(string), System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+ System.Threading.Tasks.Task> BeginPostRestoreWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, PostRestoreRequest parameters, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
///
- /// Pre Restore a given CloudEndpoint.
+ /// Pre Backup a given CloudEndpoint.
///
///
- /// Pre Restore a given CloudEndpoint.
+ /// Pre Backup a given CloudEndpoint.
///
///
/// The name of the resource group. The name is case insensitive.
@@ -513,8 +513,8 @@ public partial interface ICloudEndpointsOperations
///
/// Name of Cloud Endpoint object.
///
- ///
- /// Body of Cloud Endpoint object.
+ ///
+ /// Azure File Share.
///
///
/// The headers that will be added to request.
@@ -525,13 +525,13 @@ public partial interface ICloudEndpointsOperations
///
/// Thrown when the operation returned an invalid status code
///
- System.Threading.Tasks.Task> BeginPreRestoreWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, PreRestoreRequest parameters, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+ System.Threading.Tasks.Task> BeginPreBackupWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, string azureFileShare = default(string), System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
///
- /// Post Restore a given CloudEndpoint.
+ /// Pre Restore a given CloudEndpoint.
///
///
- /// Post Restore a given CloudEndpoint.
+ /// Pre Restore a given CloudEndpoint.
///
///
/// The name of the resource group. The name is case insensitive.
@@ -557,7 +557,7 @@ public partial interface ICloudEndpointsOperations
///
/// Thrown when the operation returned an invalid status code
///
- System.Threading.Tasks.Task> BeginPostRestoreWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, PostRestoreRequest parameters, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+ System.Threading.Tasks.Task> BeginPreRestoreWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, PreRestoreRequest parameters, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
///
/// Triggers detection of changes performed on Azure File share connected to
@@ -593,5 +593,28 @@ public partial interface ICloudEndpointsOperations
///
System.Threading.Tasks.Task> BeginTriggerChangeDetectionWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, TriggerChangeDetectionParameters parameters, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+ ///
+ /// Get a CloudEndpoint List.
+ ///
+ ///
+ /// Get a CloudEndpoint List.
+ ///
+ ///
+ /// The NextLink from the previous successful call to List operation.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ System.Threading.Tasks.Task,CloudEndpointsListBySyncGroupHeaders>> ListBySyncGroupNextWithHttpMessagesAsync(string nextPageLink, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+
}
}
\ No newline at end of file
diff --git a/src/StorageSync/StorageSync.Management.Sdk/Generated/IOperations.cs b/src/StorageSync/StorageSync.Management.Sdk/Generated/IOperations.cs
index 954825db6057..88f9051bfb3b 100644
--- a/src/StorageSync/StorageSync.Management.Sdk/Generated/IOperations.cs
+++ b/src/StorageSync/StorageSync.Management.Sdk/Generated/IOperations.cs
@@ -14,10 +14,10 @@ namespace Microsoft.Azure.Management.StorageSync
public partial interface IOperations
{
///
- /// Lists all of the available Storage Sync Rest API operations.
+ /// List the operations for the provider
///
///
- /// Lists all of the available Storage Sync Rest API operations.
+ /// List the operations for the provider
///
///
/// The headers that will be added to request.
@@ -34,10 +34,10 @@ public partial interface IOperations
System.Threading.Tasks.Task,OperationsListHeaders>> ListWithHttpMessagesAsync(System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
///
- /// Lists all of the available Storage Sync Rest API operations.
+ /// List the operations for the provider
///
///
- /// Lists all of the available Storage Sync Rest API operations.
+ /// List the operations for the provider
///
///
/// The NextLink from the previous successful call to List operation.
diff --git a/src/StorageSync/StorageSync.Management.Sdk/Generated/IPrivateEndpointConnectionsOperations.cs b/src/StorageSync/StorageSync.Management.Sdk/Generated/IPrivateEndpointConnectionsOperations.cs
index c85866a06d2f..68b6517d969d 100644
--- a/src/StorageSync/StorageSync.Management.Sdk/Generated/IPrivateEndpointConnectionsOperations.cs
+++ b/src/StorageSync/StorageSync.Management.Sdk/Generated/IPrivateEndpointConnectionsOperations.cs
@@ -13,6 +13,32 @@ namespace Microsoft.Azure.Management.StorageSync
///
public partial interface IPrivateEndpointConnectionsOperations
{
+ ///
+ /// Get a PrivateEndpointConnection List.
+ ///
+ ///
+ /// Get a PrivateEndpointConnection List.
+ ///
+ ///
+ /// The name of the resource group. The name is case insensitive.
+ ///
+ ///
+ /// Name of Storage Sync Service resource.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ System.Threading.Tasks.Task,PrivateEndpointConnectionsListByStorageSyncServiceHeaders>> ListByStorageSyncServiceWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+
///
/// Gets the specified private endpoint connection associated with the storage
/// sync service.
@@ -25,8 +51,7 @@ public partial interface IPrivateEndpointConnectionsOperations
/// The name of the resource group. The name is case insensitive.
///
///
- /// The name of the storage sync service name within the specified resource
- /// group.
+ /// Name of Storage Sync Service resource.
///
///
/// The name of the private endpoint connection associated with the Azure
@@ -58,8 +83,7 @@ public partial interface IPrivateEndpointConnectionsOperations
/// The name of the resource group. The name is case insensitive.
///
///
- /// The name of the storage sync service name within the specified resource
- /// group.
+ /// Name of Storage Sync Service resource.
///
///
/// The name of the private endpoint connection associated with the Azure
@@ -94,8 +118,7 @@ public partial interface IPrivateEndpointConnectionsOperations
/// The name of the resource group. The name is case insensitive.
///
///
- /// The name of the storage sync service name within the specified resource
- /// group.
+ /// Name of Storage Sync Service resource.
///
///
/// The name of the private endpoint connection associated with the Azure
@@ -112,32 +135,6 @@ public partial interface IPrivateEndpointConnectionsOperations
///
System.Threading.Tasks.Task> DeleteWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string privateEndpointConnectionName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
- ///
- /// Get a PrivateEndpointConnection List.
- ///
- ///
- /// Get a PrivateEndpointConnection List.
- ///
- ///
- /// The name of the resource group. The name is case insensitive.
- ///
- ///
- /// Name of Storage Sync Service resource.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- System.Threading.Tasks.Task,PrivateEndpointConnectionsListByStorageSyncServiceHeaders>> ListByStorageSyncServiceWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
-
///
/// Update the state of specified private endpoint connection associated with
/// the storage sync service.
@@ -150,8 +147,7 @@ public partial interface IPrivateEndpointConnectionsOperations
/// The name of the resource group. The name is case insensitive.
///
///
- /// The name of the storage sync service name within the specified resource
- /// group.
+ /// Name of Storage Sync Service resource.
///
///
/// The name of the private endpoint connection associated with the Azure
@@ -186,8 +182,7 @@ public partial interface IPrivateEndpointConnectionsOperations
/// The name of the resource group. The name is case insensitive.
///
///
- /// The name of the storage sync service name within the specified resource
- /// group.
+ /// Name of Storage Sync Service resource.
///
///
/// The name of the private endpoint connection associated with the Azure
@@ -204,5 +199,28 @@ public partial interface IPrivateEndpointConnectionsOperations
///
System.Threading.Tasks.Task> BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string privateEndpointConnectionName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+ ///
+ /// Get a PrivateEndpointConnection List.
+ ///
+ ///
+ /// Get a PrivateEndpointConnection List.
+ ///
+ ///
+ /// The NextLink from the previous successful call to List operation.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ System.Threading.Tasks.Task,PrivateEndpointConnectionsListByStorageSyncServiceHeaders>> ListByStorageSyncServiceNextWithHttpMessagesAsync(string nextPageLink, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+
}
}
\ No newline at end of file
diff --git a/src/StorageSync/StorageSync.Management.Sdk/Generated/IPrivateLinkResourcesOperations.cs b/src/StorageSync/StorageSync.Management.Sdk/Generated/IPrivateLinkResourcesOperations.cs
index 0eaeab22b70b..b9709b48f3a6 100644
--- a/src/StorageSync/StorageSync.Management.Sdk/Generated/IPrivateLinkResourcesOperations.cs
+++ b/src/StorageSync/StorageSync.Management.Sdk/Generated/IPrivateLinkResourcesOperations.cs
@@ -25,8 +25,7 @@ public partial interface IPrivateLinkResourcesOperations
/// The name of the resource group. The name is case insensitive.
///
///
- /// The name of the storage sync service name within the specified resource
- /// group.
+ /// Name of Storage Sync Service resource.
///
///
/// The headers that will be added to request.
diff --git a/src/StorageSync/StorageSync.Management.Sdk/Generated/IRegisteredServersOperations.cs b/src/StorageSync/StorageSync.Management.Sdk/Generated/IRegisteredServersOperations.cs
index d03f5894b445..a21e6bd5333e 100644
--- a/src/StorageSync/StorageSync.Management.Sdk/Generated/IRegisteredServersOperations.cs
+++ b/src/StorageSync/StorageSync.Management.Sdk/Generated/IRegisteredServersOperations.cs
@@ -37,7 +37,7 @@ public partial interface IRegisteredServersOperations
///
/// Thrown when unable to deserialize the response
///
- System.Threading.Tasks.Task,RegisteredServersListByStorageSyncServiceHeaders>> ListByStorageSyncServiceWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+ System.Threading.Tasks.Task,RegisteredServersListByStorageSyncServiceHeaders>> ListByStorageSyncServiceWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
///
/// Get a given registered server.
@@ -171,7 +171,7 @@ public partial interface IRegisteredServersOperations
/// Name of Storage Sync Service resource.
///
///
- /// Server Id
+ /// GUID identifying the on-premises server.
///
///
/// Certificate Data
@@ -290,7 +290,7 @@ public partial interface IRegisteredServersOperations
/// Name of Storage Sync Service resource.
///
///
- /// Server Id
+ /// GUID identifying the on-premises server.
///
///
/// Certificate Data
@@ -306,5 +306,28 @@ public partial interface IRegisteredServersOperations
///
System.Threading.Tasks.Task> BeginTriggerRolloverWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string serverId, string serverCertificate = default(string), System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+ ///
+ /// Get a given registered server list.
+ ///
+ ///
+ /// Get a given registered server list.
+ ///
+ ///
+ /// The NextLink from the previous successful call to List operation.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ System.Threading.Tasks.Task,RegisteredServersListByStorageSyncServiceHeaders>> ListByStorageSyncServiceNextWithHttpMessagesAsync(string nextPageLink, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+
}
}
\ No newline at end of file
diff --git a/src/StorageSync/StorageSync.Management.Sdk/Generated/IServerEndpointsOperations.cs b/src/StorageSync/StorageSync.Management.Sdk/Generated/IServerEndpointsOperations.cs
index 7c8fda2a0014..48146a7cc0b3 100644
--- a/src/StorageSync/StorageSync.Management.Sdk/Generated/IServerEndpointsOperations.cs
+++ b/src/StorageSync/StorageSync.Management.Sdk/Generated/IServerEndpointsOperations.cs
@@ -14,10 +14,10 @@ namespace Microsoft.Azure.Management.StorageSync
public partial interface IServerEndpointsOperations
{
///
- /// Create a new ServerEndpoint.
+ /// Get a ServerEndpoint list.
///
///
- /// Create a new ServerEndpoint.
+ /// Get a ServerEndpoint list.
///
///
/// The name of the resource group. The name is case insensitive.
@@ -28,12 +28,6 @@ public partial interface IServerEndpointsOperations
///
/// Name of Sync Group resource.
///
- ///
- /// Name of Server Endpoint object.
- ///
- ///
- /// Body of Server Endpoint object.
- ///
///
/// The headers that will be added to request.
///
@@ -46,13 +40,13 @@ public partial interface IServerEndpointsOperations
///
/// Thrown when unable to deserialize the response
///
- System.Threading.Tasks.Task> CreateWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string syncGroupName, string serverEndpointName, ServerEndpointCreateParameters parameters, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+ System.Threading.Tasks.Task,ServerEndpointsListBySyncGroupHeaders>> ListBySyncGroupWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string syncGroupName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
///
- /// Patch a given ServerEndpoint.
+ /// Get a ServerEndpoint.
///
///
- /// Patch a given ServerEndpoint.
+ /// Get a ServerEndpoint.
///
///
/// The name of the resource group. The name is case insensitive.
@@ -66,9 +60,6 @@ public partial interface IServerEndpointsOperations
///
/// Name of Server Endpoint object.
///
- ///
- /// Any of the properties applicable in PUT request.
- ///
///
/// The headers that will be added to request.
///
@@ -81,13 +72,13 @@ public partial interface IServerEndpointsOperations
///
/// Thrown when unable to deserialize the response
///
- System.Threading.Tasks.Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string syncGroupName, string serverEndpointName, ServerEndpointUpdateParameters parameters = default(ServerEndpointUpdateParameters), System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+ System.Threading.Tasks.Task> GetWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string syncGroupName, string serverEndpointName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
///
- /// Get a ServerEndpoint.
+ /// Create a new ServerEndpoint.
///
///
- /// Get a ServerEndpoint.
+ /// Create a new ServerEndpoint.
///
///
/// The name of the resource group. The name is case insensitive.
@@ -101,6 +92,9 @@ public partial interface IServerEndpointsOperations
///
/// Name of Server Endpoint object.
///
+ ///
+ /// Body of Server Endpoint object.
+ ///
///
/// The headers that will be added to request.
///
@@ -113,13 +107,13 @@ public partial interface IServerEndpointsOperations
///
/// Thrown when unable to deserialize the response
///
- System.Threading.Tasks.Task> GetWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string syncGroupName, string serverEndpointName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+ System.Threading.Tasks.Task> CreateWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string syncGroupName, string serverEndpointName, ServerEndpointCreateParameters parameters, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
///
- /// Delete a given ServerEndpoint.
+ /// Patch a given ServerEndpoint.
///
///
- /// Delete a given ServerEndpoint.
+ /// Patch a given ServerEndpoint.
///
///
/// The name of the resource group. The name is case insensitive.
@@ -133,6 +127,9 @@ public partial interface IServerEndpointsOperations
///
/// Name of Server Endpoint object.
///
+ ///
+ /// Any of the properties applicable in PUT request.
+ ///
///
/// The headers that will be added to request.
///
@@ -142,13 +139,16 @@ public partial interface IServerEndpointsOperations
///
/// Thrown when the operation returned an invalid status code
///
- System.Threading.Tasks.Task> DeleteWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string syncGroupName, string serverEndpointName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ System.Threading.Tasks.Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string syncGroupName, string serverEndpointName, ServerEndpointUpdateParameters parameters = default(ServerEndpointUpdateParameters), System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
///
- /// Get a ServerEndpoint list.
+ /// Delete a given ServerEndpoint.
///
///
- /// Get a ServerEndpoint list.
+ /// Delete a given ServerEndpoint.
///
///
/// The name of the resource group. The name is case insensitive.
@@ -159,6 +159,9 @@ public partial interface IServerEndpointsOperations
///
/// Name of Sync Group resource.
///
+ ///
+ /// Name of Server Endpoint object.
+ ///
///
/// The headers that will be added to request.
///
@@ -168,10 +171,7 @@ public partial interface IServerEndpointsOperations
///
/// Thrown when the operation returned an invalid status code
///
- ///
- /// Thrown when unable to deserialize the response
- ///
- System.Threading.Tasks.Task,ServerEndpointsListBySyncGroupHeaders>> ListBySyncGroupWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string syncGroupName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+ System.Threading.Tasks.Task> DeleteWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string syncGroupName, string serverEndpointName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
///
/// Recall a server endpoint.
@@ -336,5 +336,28 @@ public partial interface IServerEndpointsOperations
///
System.Threading.Tasks.Task> BeginRecallActionWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string syncGroupName, string serverEndpointName, RecallActionParameters parameters, System.Collections.Generic.Dictionary