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

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,57 @@ public static CloudEndpoint Create(this ICloudEndpointsOperations operations, st
}
}
/// <summary>
/// Patch a given CloudEndpoint.
/// </summary>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// The name of the resource group. The name is case insensitive.
/// </param>
/// <param name='storageSyncServiceName'>
/// Name of Storage Sync Service resource.
/// </param>
/// <param name='syncGroupName'>
/// Name of Sync Group resource.
/// </param>
/// <param name='cloudEndpointName'>
/// Name of Cloud Endpoint object.
/// </param>
public static CloudEndpoint Update(this ICloudEndpointsOperations operations, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, int? changeEnumerationIntervalDays = default(int?))
{
return ((ICloudEndpointsOperations)operations).UpdateAsync(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, changeEnumerationIntervalDays).GetAwaiter().GetResult();
}

/// <summary>
/// Patch a given CloudEndpoint.
/// </summary>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// The name of the resource group. The name is case insensitive.
/// </param>
/// <param name='storageSyncServiceName'>
/// Name of Storage Sync Service resource.
/// </param>
/// <param name='syncGroupName'>
/// Name of Sync Group resource.
/// </param>
/// <param name='cloudEndpointName'>
/// Name of Cloud Endpoint object.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async System.Threading.Tasks.Task<CloudEndpoint> UpdateAsync(this ICloudEndpointsOperations operations, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, int? changeEnumerationIntervalDays = default(int?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, changeEnumerationIntervalDays, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}
/// <summary>
/// Delete a given CloudEndpoint.
/// </summary>
/// <param name='operations'>
Expand Down Expand Up @@ -621,6 +672,57 @@ public static CloudEndpoint BeginCreate(this ICloudEndpointsOperations operation
}
}
/// <summary>
/// Patch a given CloudEndpoint.
/// </summary>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// The name of the resource group. The name is case insensitive.
/// </param>
/// <param name='storageSyncServiceName'>
/// Name of Storage Sync Service resource.
/// </param>
/// <param name='syncGroupName'>
/// Name of Sync Group resource.
/// </param>
/// <param name='cloudEndpointName'>
/// Name of Cloud Endpoint object.
/// </param>
public static CloudEndpoint BeginUpdate(this ICloudEndpointsOperations operations, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, int? changeEnumerationIntervalDays = default(int?))
{
return ((ICloudEndpointsOperations)operations).BeginUpdateAsync(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, changeEnumerationIntervalDays).GetAwaiter().GetResult();
}

/// <summary>
/// Patch a given CloudEndpoint.
/// </summary>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// The name of the resource group. The name is case insensitive.
/// </param>
/// <param name='storageSyncServiceName'>
/// Name of Storage Sync Service resource.
/// </param>
/// <param name='syncGroupName'>
/// Name of Sync Group resource.
/// </param>
/// <param name='cloudEndpointName'>
/// Name of Cloud Endpoint object.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async System.Threading.Tasks.Task<CloudEndpoint> BeginUpdateAsync(this ICloudEndpointsOperations operations, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, int? changeEnumerationIntervalDays = default(int?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
using (var _result = await operations.BeginUpdateWithHttpMessagesAsync(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, changeEnumerationIntervalDays, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}
/// <summary>
/// Delete a given CloudEndpoint.
/// </summary>
/// <param name='operations'>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,41 @@ public partial interface ICloudEndpointsOperations
/// </exception>
System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<CloudEndpoint,CloudEndpointsCreateHeaders>> CreateWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, CloudEndpointCreateParameters parameters, System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));

/// <summary>
/// Patch a given CloudEndpoint.
/// </summary>
/// <remarks>
/// Patch a given CloudEndpoint.
/// </remarks>
/// <param name='resourceGroupName'>
/// The name of the resource group. The name is case insensitive.
/// </param>
/// <param name='storageSyncServiceName'>
/// Name of Storage Sync Service resource.
/// </param>
/// <param name='syncGroupName'>
/// Name of Sync Group resource.
/// </param>
/// <param name='cloudEndpointName'>
/// Name of Cloud Endpoint object.
/// </param>
/// <param name='changeEnumerationIntervalDays'>
/// The interval for enumerating changes on the cloud endpoint.
/// </param>
/// <param name='customHeaders'>
/// The headers that will be added to request.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
/// <exception cref="Microsoft.Rest.Azure.CloudException">
/// Thrown when the operation returned an invalid status code
/// </exception>
/// <exception cref="Microsoft.Rest.SerializationException">
/// Thrown when unable to deserialize the response
/// </exception>
System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<CloudEndpoint,CloudEndpointsUpdateHeaders>> UpdateWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, int? changeEnumerationIntervalDays = default(int?), System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));

/// <summary>
/// Delete a given CloudEndpoint.
/// </summary>
Expand Down Expand Up @@ -399,6 +434,41 @@ public partial interface ICloudEndpointsOperations
/// </exception>
System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<CloudEndpoint,CloudEndpointsCreateHeaders>> BeginCreateWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, CloudEndpointCreateParameters parameters, System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));

/// <summary>
/// Patch a given CloudEndpoint.
/// </summary>
/// <remarks>
/// Patch a given CloudEndpoint.
/// </remarks>
/// <param name='resourceGroupName'>
/// The name of the resource group. The name is case insensitive.
/// </param>
/// <param name='storageSyncServiceName'>
/// Name of Storage Sync Service resource.
/// </param>
/// <param name='syncGroupName'>
/// Name of Sync Group resource.
/// </param>
/// <param name='cloudEndpointName'>
/// Name of Cloud Endpoint object.
/// </param>
/// <param name='changeEnumerationIntervalDays'>
/// The interval for enumerating changes on the cloud endpoint.
/// </param>
/// <param name='customHeaders'>
/// The headers that will be added to request.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
/// <exception cref="Microsoft.Rest.Azure.CloudException">
/// Thrown when the operation returned an invalid status code
/// </exception>
/// <exception cref="Microsoft.Rest.SerializationException">
/// Thrown when unable to deserialize the response
/// </exception>
System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<CloudEndpoint,CloudEndpointsUpdateHeaders>> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, int? changeEnumerationIntervalDays = default(int?), System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));

/// <summary>
/// Delete a given CloudEndpoint.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,10 @@ public CloudEndpoint()

/// <param name="changeEnumerationStatus">Cloud endpoint change enumeration status
/// </param>
public CloudEndpoint(string id = default(string), string name = default(string), string type = default(string), SystemData systemData = default(SystemData), string storageAccountResourceId = default(string), string azureFileShareName = default(string), string storageAccountTenantId = default(string), string partnershipId = default(string), string friendlyName = default(string), string backupEnabled = default(string), string provisioningState = default(string), string lastWorkflowId = default(string), string lastOperationName = default(string), CloudEndpointChangeEnumerationStatus changeEnumerationStatus = default(CloudEndpointChangeEnumerationStatus))

/// <param name="changeEnumerationIntervalDays">The interval for enumerating changes on the cloud endpoint.
/// </param>
public CloudEndpoint(string id = default(string), string name = default(string), string type = default(string), SystemData systemData = default(SystemData), string storageAccountResourceId = default(string), string azureFileShareName = default(string), string storageAccountTenantId = default(string), string partnershipId = default(string), string friendlyName = default(string), string backupEnabled = default(string), string provisioningState = default(string), string lastWorkflowId = default(string), string lastOperationName = default(string), CloudEndpointChangeEnumerationStatus changeEnumerationStatus = default(CloudEndpointChangeEnumerationStatus), int? changeEnumerationIntervalDays = default(int?))

: base(id, name, type, systemData)
{
Expand All @@ -83,6 +86,7 @@ public CloudEndpoint()
this.LastWorkflowId = lastWorkflowId;
this.LastOperationName = lastOperationName;
this.ChangeEnumerationStatus = changeEnumerationStatus;
this.ChangeEnumerationIntervalDays = changeEnumerationIntervalDays;
CustomInit();
}

Expand Down Expand Up @@ -151,6 +155,12 @@ public CloudEndpoint()
/// </summary>
[Newtonsoft.Json.JsonProperty(PropertyName = "properties.changeEnumerationStatus")]
public CloudEndpointChangeEnumerationStatus ChangeEnumerationStatus {get; private set; }

/// <summary>
/// Gets or sets the interval for enumerating changes on the cloud endpoint.
/// </summary>
[Newtonsoft.Json.JsonProperty(PropertyName = "properties.changeEnumerationIntervalDays")]
public int? ChangeEnumerationIntervalDays {get; set; }
/// <summary>
/// Validate the object.
/// </summary>
Expand All @@ -172,6 +182,17 @@ public virtual void Validate()
{
this.ChangeEnumerationStatus.Validate();
}
if (this.ChangeEnumerationIntervalDays != null)
{
if (this.ChangeEnumerationIntervalDays > 20)
{
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.InclusiveMaximum, "ChangeEnumerationIntervalDays", 20);
}
if (this.ChangeEnumerationIntervalDays < 1)
{
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.InclusiveMinimum, "ChangeEnumerationIntervalDays", 1);
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,18 @@ public CloudEndpointCreateParameters()

/// <param name="friendlyName">Friendly Name
/// </param>
public CloudEndpointCreateParameters(string id = default(string), string name = default(string), string type = default(string), SystemData systemData = default(SystemData), string storageAccountResourceId = default(string), string azureFileShareName = default(string), string storageAccountTenantId = default(string), string friendlyName = default(string))

/// <param name="changeEnumerationIntervalDays">The interval for enumerating changes on the cloud endpoint.
/// </param>
public CloudEndpointCreateParameters(string id = default(string), string name = default(string), string type = default(string), SystemData systemData = default(SystemData), string storageAccountResourceId = default(string), string azureFileShareName = default(string), string storageAccountTenantId = default(string), string friendlyName = default(string), int? changeEnumerationIntervalDays = default(int?))

: base(id, name, type, systemData)
{
this.StorageAccountResourceId = storageAccountResourceId;
this.AzureFileShareName = azureFileShareName;
this.StorageAccountTenantId = storageAccountTenantId;
this.FriendlyName = friendlyName;
this.ChangeEnumerationIntervalDays = changeEnumerationIntervalDays;
CustomInit();
}

Expand Down Expand Up @@ -91,5 +95,35 @@ public CloudEndpointCreateParameters()
/// </summary>
[Newtonsoft.Json.JsonProperty(PropertyName = "properties.friendlyName")]
public string FriendlyName {get; set; }

/// <summary>
/// Gets or sets the interval for enumerating changes on the cloud endpoint.
/// </summary>
[Newtonsoft.Json.JsonProperty(PropertyName = "properties.changeEnumerationIntervalDays")]
public int? ChangeEnumerationIntervalDays {get; set; }
/// <summary>
/// Validate the object.
/// </summary>
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown if validation fails
/// </exception>
public virtual void Validate()
{




if (this.ChangeEnumerationIntervalDays != null)
{
if (this.ChangeEnumerationIntervalDays > 20)
{
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.InclusiveMaximum, "ChangeEnumerationIntervalDays", 20);
}
if (this.ChangeEnumerationIntervalDays < 1)
{
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.InclusiveMinimum, "ChangeEnumerationIntervalDays", 1);
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,17 @@ public CloudEndpointCreateParametersProperties()

/// <param name="friendlyName">Friendly Name
/// </param>
public CloudEndpointCreateParametersProperties(string storageAccountResourceId = default(string), string azureFileShareName = default(string), string storageAccountTenantId = default(string), string friendlyName = default(string))

/// <param name="changeEnumerationIntervalDays">The interval for enumerating changes on the cloud endpoint.
/// </param>
public CloudEndpointCreateParametersProperties(string storageAccountResourceId = default(string), string azureFileShareName = default(string), string storageAccountTenantId = default(string), string friendlyName = default(string), int? changeEnumerationIntervalDays = default(int?))

{
this.StorageAccountResourceId = storageAccountResourceId;
this.AzureFileShareName = azureFileShareName;
this.StorageAccountTenantId = storageAccountTenantId;
this.FriendlyName = friendlyName;
this.ChangeEnumerationIntervalDays = changeEnumerationIntervalDays;
CustomInit();
}

Expand Down Expand Up @@ -74,5 +78,35 @@ public CloudEndpointCreateParametersProperties()
/// </summary>
[Newtonsoft.Json.JsonProperty(PropertyName = "friendlyName")]
public string FriendlyName {get; set; }

/// <summary>
/// Gets or sets the interval for enumerating changes on the cloud endpoint.
/// </summary>
[Newtonsoft.Json.JsonProperty(PropertyName = "changeEnumerationIntervalDays")]
public int? ChangeEnumerationIntervalDays {get; set; }
/// <summary>
/// Validate the object.
/// </summary>
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown if validation fails
/// </exception>
public virtual void Validate()
{




if (this.ChangeEnumerationIntervalDays != null)
{
if (this.ChangeEnumerationIntervalDays > 20)
{
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.InclusiveMaximum, "ChangeEnumerationIntervalDays", 20);
}
if (this.ChangeEnumerationIntervalDays < 1)
{
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.InclusiveMinimum, "ChangeEnumerationIntervalDays", 1);
}
}
}
}
}
Loading
Loading