Beispiel #1
0
        internal static string ToSerializedValue(this KubeEnvironmentProvisioningState value)
        {
            switch (value)
            {
            case KubeEnvironmentProvisioningState.Succeeded:
                return("Succeeded");

            case KubeEnvironmentProvisioningState.Failed:
                return("Failed");

            case KubeEnvironmentProvisioningState.Canceled:
                return("Canceled");

            case KubeEnvironmentProvisioningState.Waiting:
                return("Waiting");

            case KubeEnvironmentProvisioningState.InitializationInProgress:
                return("InitializationInProgress");

            case KubeEnvironmentProvisioningState.InfrastructureSetupInProgress:
                return("InfrastructureSetupInProgress");

            case KubeEnvironmentProvisioningState.InfrastructureSetupComplete:
                return("InfrastructureSetupComplete");

            case KubeEnvironmentProvisioningState.ScheduledForDelete:
                return("ScheduledForDelete");

            case KubeEnvironmentProvisioningState.UpgradeRequested:
                return("UpgradeRequested");

            case KubeEnvironmentProvisioningState.UpgradeFailed:
                return("UpgradeFailed");
            }
            return(null);
        }
 public static string ToSerialString(this KubeEnvironmentProvisioningState value) => value switch
 {