コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the TransferAllDetails class.
 /// </summary>
 /// <param name="dataAccountType">Type of the account of data. Possible
 /// values include: 'StorageAccount', 'ManagedDisk'</param>
 /// <param name="transferAllBlobs">To indicate if all Azure blobs have
 /// to be transferred</param>
 /// <param name="transferAllFiles">To indicate if all Azure Files have
 /// to be transferred</param>
 public TransferAllDetails(DataAccountType dataAccountType, bool?transferAllBlobs = default(bool?), bool?transferAllFiles = default(bool?))
 {
     DataAccountType  = dataAccountType;
     TransferAllBlobs = transferAllBlobs;
     TransferAllFiles = transferAllFiles;
     CustomInit();
 }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the TransferFilterDetails class.
 /// </summary>
 /// <param name="dataAccountType">Type of the account of data. Possible
 /// values include: 'StorageAccount', 'ManagedDisk'</param>
 /// <param name="blobFilterDetails">Filter details to transfer
 /// blobs.</param>
 /// <param name="azureFileFilterDetails">Filter details to transfer
 /// Azure files.</param>
 /// <param name="filterFileDetails">Details of the filter files to be
 /// used for data transfer.</param>
 public TransferFilterDetails(DataAccountType dataAccountType, BlobFilterDetails blobFilterDetails = default(BlobFilterDetails), AzureFileFilterDetails azureFileFilterDetails = default(AzureFileFilterDetails), IList <FilterFileDetails> filterFileDetails = default(IList <FilterFileDetails>))
 {
     DataAccountType        = dataAccountType;
     BlobFilterDetails      = blobFilterDetails;
     AzureFileFilterDetails = azureFileFilterDetails;
     FilterFileDetails      = filterFileDetails;
     CustomInit();
 }
コード例 #3
0
        internal static string ToSerializedValue(this DataAccountType value)
        {
            switch (value)
            {
            case DataAccountType.StorageAccount:
                return("StorageAccount");

            case DataAccountType.ManagedDisk:
                return("ManagedDisk");
            }
            return(null);
        }
コード例 #4
0
 /// <summary>
 /// Converts the <see cref="sourceValue" /> parameter to the <see cref="destinationType" /> parameter using <see cref="formatProvider"
 /// /> and <see cref="ignoreCase" />
 /// </summary>
 /// <param name="sourceValue">the <see cref="System.Object"/> to convert from</param>
 /// <param name="destinationType">the <see cref="System.Type" /> to convert to</param>
 /// <param name="formatProvider">not used by this TypeConverter.</param>
 /// <param name="ignoreCase">when set to <c>true</c>, will ignore the case when converting.</param>
 /// <returns>
 /// an instance of <see cref="DataAccountType" />, or <c>null</c> if there is no suitable conversion.
 /// </returns>
 public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => DataAccountType.CreateFrom(sourceValue);