Skip to content

Commit

Permalink
.NET SDK Resource Provider:'StorageSync' (Azure#5596)
Browse files Browse the repository at this point in the history
REST Spec PR 'Azure/azure-rest-api-specs#5210'
REST Spec PR Author 'anpint'
REST Spec PR Last commit
  • Loading branch information
adxsdknet authored and dsgouda committed Mar 27, 2019
1 parent c93855f commit cbb5910
Show file tree
Hide file tree
Showing 12 changed files with 385 additions and 369 deletions.
2 changes: 1 addition & 1 deletion src/SDKs/StorageSync/AzSdk.RP.props
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<!--This file and it's contents are updated at build time moving or editing might result in build failure. Take due deligence while editing this file-->
<PropertyGroup>
<AzureApiTag>StorageSync_2018-10-01;</AzureApiTag>
<AzureApiTag>StorageSync_2019-02-01;</AzureApiTag>
<PackageTags>$(PackageTags);$(CommonTags);$(AzureApiTag);</PackageTags>
</PropertyGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@ public CloudEndpoint()
/// Microsoft.Storage/storageAccounts.</param>
/// <param name="storageAccountResourceId">Storage Account Resource
/// Id</param>
/// <param name="storageAccountShareName">Storage Account Share
/// name</param>
/// <param name="azureFileShareName">Azure file share name</param>
/// <param name="storageAccountTenantId">Storage Account Tenant
/// Id</param>
/// <param name="partnershipId">Partnership Id</param>
Expand All @@ -52,11 +51,11 @@ public CloudEndpoint()
/// <param name="lastWorkflowId">CloudEndpoint lastWorkflowId</param>
/// <param name="lastOperationName">Resource Last Operation
/// Name</param>
public CloudEndpoint(string id = default(string), string name = default(string), string type = default(string), string storageAccountResourceId = default(string), string storageAccountShareName = 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))
public CloudEndpoint(string id = default(string), string name = default(string), string type = default(string), 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))
: base(id, name, type)
{
StorageAccountResourceId = storageAccountResourceId;
StorageAccountShareName = storageAccountShareName;
AzureFileShareName = azureFileShareName;
StorageAccountTenantId = storageAccountTenantId;
PartnershipId = partnershipId;
FriendlyName = friendlyName;
Expand All @@ -79,10 +78,10 @@ public CloudEndpoint()
public string StorageAccountResourceId { get; set; }

/// <summary>
/// Gets or sets storage Account Share name
/// Gets or sets azure file share name
/// </summary>
[JsonProperty(PropertyName = "properties.storageAccountShareName")]
public string StorageAccountShareName { get; set; }
[JsonProperty(PropertyName = "properties.azureFileShareName")]
public string AzureFileShareName { get; set; }

/// <summary>
/// Gets or sets storage Account Tenant Id
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,14 @@ public CloudEndpointCreateParameters()
/// Microsoft.Storage/storageAccounts.</param>
/// <param name="storageAccountResourceId">Storage Account Resource
/// Id</param>
/// <param name="storageAccountShareName">Storage Account Share
/// name</param>
/// <param name="azureFileShareName">Azure file share name</param>
/// <param name="storageAccountTenantId">Storage Account Tenant
/// Id</param>
public CloudEndpointCreateParameters(string id = default(string), string name = default(string), string type = default(string), string storageAccountResourceId = default(string), string storageAccountShareName = default(string), string storageAccountTenantId = default(string))
public CloudEndpointCreateParameters(string id = default(string), string name = default(string), string type = default(string), string storageAccountResourceId = default(string), string azureFileShareName = default(string), string storageAccountTenantId = default(string))
: base(id, name, type)
{
StorageAccountResourceId = storageAccountResourceId;
StorageAccountShareName = storageAccountShareName;
AzureFileShareName = azureFileShareName;
StorageAccountTenantId = storageAccountTenantId;
CustomInit();
}
Expand All @@ -67,10 +66,10 @@ public CloudEndpointCreateParameters()
public string StorageAccountResourceId { get; set; }

/// <summary>
/// Gets or sets storage Account Share name
/// Gets or sets azure file share name
/// </summary>
[JsonProperty(PropertyName = "properties.storageAccountShareName")]
public string StorageAccountShareName { get; set; }
[JsonProperty(PropertyName = "properties.azureFileShareName")]
public string AzureFileShareName { get; set; }

/// <summary>
/// Gets or sets storage Account Tenant Id
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
// <auto-generated>
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
// </auto-generated>

namespace Microsoft.Azure.Management.StorageSync.Models
{
using Newtonsoft.Json;
using System.Linq;

/// <summary>
/// Files not syncing error object
/// </summary>
public partial class FilesNotSyncingError
{
/// <summary>
/// Initializes a new instance of the FilesNotSyncingError class.
/// </summary>
public FilesNotSyncingError()
{
CustomInit();
}

/// <summary>
/// Initializes a new instance of the FilesNotSyncingError class.
/// </summary>
/// <param name="errorCode">Error code (HResult)</param>
/// <param name="persistentCount">Count of persistent files not syncing
/// with the specified error code</param>
/// <param name="transientCount">Count of transient files not syncing
/// with the specified error code</param>
public FilesNotSyncingError(int? errorCode = default(int?), long? persistentCount = default(long?), long? transientCount = default(long?))
{
ErrorCode = errorCode;
PersistentCount = persistentCount;
TransientCount = transientCount;
CustomInit();
}

/// <summary>
/// An initialization method that performs custom operations like setting defaults
/// </summary>
partial void CustomInit();

/// <summary>
/// Gets error code (HResult)
/// </summary>
[JsonProperty(PropertyName = "errorCode")]
public int? ErrorCode { get; private set; }

/// <summary>
/// Gets count of persistent files not syncing with the specified error
/// code
/// </summary>
[JsonProperty(PropertyName = "persistentCount")]
public long? PersistentCount { get; private set; }

/// <summary>
/// Gets count of transient files not syncing with the specified error
/// code
/// </summary>
[JsonProperty(PropertyName = "transientCount")]
public long? TransientCount { get; private set; }

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public ServerEndpoint()
/// <param name="lastWorkflowId">ServerEndpoint lastWorkflowId</param>
/// <param name="lastOperationName">Resource Last Operation
/// Name</param>
/// <param name="syncStatus">Server Endpoint properties.</param>
/// <param name="syncStatus">Server Endpoint sync status</param>
/// <param name="offlineDataTransfer">Offline data transfer. Possible
/// values include: 'on', 'off'</param>
/// <param name="offlineDataTransferStorageAccountResourceId">Offline
Expand All @@ -61,7 +61,7 @@ public ServerEndpoint()
/// data transfer storage account tenant ID</param>
/// <param name="offlineDataTransferShareName">Offline data transfer
/// share name</param>
public ServerEndpoint(string id = default(string), string name = default(string), string type = default(string), string serverLocalPath = default(string), string cloudTiering = default(string), int? volumeFreeSpacePercent = default(int?), int? tierFilesOlderThanDays = default(int?), string friendlyName = default(string), string serverResourceId = default(string), string provisioningState = default(string), string lastWorkflowId = default(string), string lastOperationName = default(string), ServerEndpointHealth syncStatus = default(ServerEndpointHealth), string offlineDataTransfer = default(string), string offlineDataTransferStorageAccountResourceId = default(string), string offlineDataTransferStorageAccountTenantId = default(string), string offlineDataTransferShareName = default(string))
public ServerEndpoint(string id = default(string), string name = default(string), string type = default(string), string serverLocalPath = default(string), string cloudTiering = default(string), int? volumeFreeSpacePercent = default(int?), int? tierFilesOlderThanDays = default(int?), string friendlyName = default(string), string serverResourceId = default(string), string provisioningState = default(string), string lastWorkflowId = default(string), string lastOperationName = default(string), ServerEndpointSyncStatus syncStatus = default(ServerEndpointSyncStatus), string offlineDataTransfer = default(string), string offlineDataTransferStorageAccountResourceId = default(string), string offlineDataTransferStorageAccountTenantId = default(string), string offlineDataTransferShareName = default(string))
: base(id, name, type)
{
ServerLocalPath = serverLocalPath;
Expand Down Expand Up @@ -124,28 +124,28 @@ public ServerEndpoint()
public string ServerResourceId { get; set; }

/// <summary>
/// Gets or sets serverEndpoint Provisioning State
/// Gets serverEndpoint Provisioning State
/// </summary>
[JsonProperty(PropertyName = "properties.provisioningState")]
public string ProvisioningState { get; set; }
public string ProvisioningState { get; private set; }

/// <summary>
/// Gets or sets serverEndpoint lastWorkflowId
/// Gets serverEndpoint lastWorkflowId
/// </summary>
[JsonProperty(PropertyName = "properties.lastWorkflowId")]
public string LastWorkflowId { get; set; }
public string LastWorkflowId { get; private set; }

/// <summary>
/// Gets or sets resource Last Operation Name
/// Gets resource Last Operation Name
/// </summary>
[JsonProperty(PropertyName = "properties.lastOperationName")]
public string LastOperationName { get; set; }
public string LastOperationName { get; private set; }

/// <summary>
/// Gets or sets server Endpoint properties.
/// Gets server Endpoint sync status
/// </summary>
[JsonProperty(PropertyName = "properties.syncStatus")]
public ServerEndpointHealth SyncStatus { get; set; }
public ServerEndpointSyncStatus SyncStatus { get; private set; }

/// <summary>
/// Gets or sets offline data transfer. Possible values include: 'on',
Expand Down Expand Up @@ -196,10 +196,6 @@ public virtual void Validate()
{
throw new ValidationException(ValidationRules.InclusiveMinimum, "TierFilesOlderThanDays", 0);
}
if (SyncStatus != null)
{
SyncStatus.Validate();
}
}
}
}

This file was deleted.

Loading

0 comments on commit cbb5910

Please sign in to comment.