/// <summary> /// Convert an enum of type DataLakeStoreAccountStatus to a string. /// </summary> /// <param name='value'> /// The value to convert to a string. /// </param> /// <returns> /// The enum value as a string. /// </returns> internal static string DataLakeStoreAccountStatusToString(DataLakeStoreAccountStatus value) { if (value == DataLakeStoreAccountStatus.Failed) { return("Failed"); } if (value == DataLakeStoreAccountStatus.Creating) { return("Creating"); } if (value == DataLakeStoreAccountStatus.Running) { return("Running"); } if (value == DataLakeStoreAccountStatus.Succeeded) { return("Succeeded"); } if (value == DataLakeStoreAccountStatus.Patching) { return("Patching"); } if (value == DataLakeStoreAccountStatus.Suspending) { return("Suspending"); } if (value == DataLakeStoreAccountStatus.Resuming) { return("Resuming"); } if (value == DataLakeStoreAccountStatus.Deleting) { return("Deleting"); } if (value == DataLakeStoreAccountStatus.Deleted) { return("Deleted"); } throw new ArgumentOutOfRangeException("value"); }
internal static string ToSerializedValue(this DataLakeStoreAccountStatus value) { switch (value) { case DataLakeStoreAccountStatus.Failed: return("Failed"); case DataLakeStoreAccountStatus.Creating: return("Creating"); case DataLakeStoreAccountStatus.Running: return("Running"); case DataLakeStoreAccountStatus.Succeeded: return("Succeeded"); case DataLakeStoreAccountStatus.Patching: return("Patching"); case DataLakeStoreAccountStatus.Suspending: return("Suspending"); case DataLakeStoreAccountStatus.Resuming: return("Resuming"); case DataLakeStoreAccountStatus.Deleting: return("Deleting"); case DataLakeStoreAccountStatus.Deleted: return("Deleted"); case DataLakeStoreAccountStatus.Undeleting: return("Undeleting"); case DataLakeStoreAccountStatus.Canceled: return("Canceled"); } return(null); }