From e97fd23bce46f09920e717f0b0aab4220d226c46 Mon Sep 17 00:00:00 2001 From: jellyfin-bot Date: Mon, 23 Dec 2024 04:03:50 +0000 Subject: [PATCH] Update OpenAPI to unstable --- .../org/jellyfin/sdk/api/info/ApiConstants.kt | 2 +- .../jellyfin/sdk/api/operations/LiveTvApi.kt | 2 +- jellyfin-model/api/jellyfin-model.api | 62 ++++++++++++------- .../jellyfin/sdk/model/api/LibraryOptions.kt | 4 +- .../sdk/model/api/LibraryOptionsResultDto.kt | 5 ++ .../sdk/model/api/ServerConfiguration.kt | 5 -- .../jellyfin/sdk/model/api/TaskTriggerInfo.kt | 3 +- .../sdk/model/api/TaskTriggerInfoType.kt | 53 ++++++++++++++++ openapi.json | 4 +- 9 files changed, 105 insertions(+), 35 deletions(-) create mode 100644 jellyfin-model/src/commonMain/kotlin-generated/org/jellyfin/sdk/model/api/TaskTriggerInfoType.kt diff --git a/jellyfin-api/src/commonMain/kotlin-generated/org/jellyfin/sdk/api/info/ApiConstants.kt b/jellyfin-api/src/commonMain/kotlin-generated/org/jellyfin/sdk/api/info/ApiConstants.kt index 965b44f29..f070e38d2 100644 --- a/jellyfin-api/src/commonMain/kotlin-generated/org/jellyfin/sdk/api/info/ApiConstants.kt +++ b/jellyfin-api/src/commonMain/kotlin-generated/org/jellyfin/sdk/api/info/ApiConstants.kt @@ -8,5 +8,5 @@ package org.jellyfin.sdk.api.info import kotlin.String public object ApiConstants { - public const val apiVersion: String = "10.10.3" + public const val apiVersion: String = "10.11.0" } diff --git a/jellyfin-api/src/commonMain/kotlin-generated/org/jellyfin/sdk/api/operations/LiveTvApi.kt b/jellyfin-api/src/commonMain/kotlin-generated/org/jellyfin/sdk/api/operations/LiveTvApi.kt index eedf97331..05a47033d 100644 --- a/jellyfin-api/src/commonMain/kotlin-generated/org/jellyfin/sdk/api/operations/LiveTvApi.kt +++ b/jellyfin-api/src/commonMain/kotlin-generated/org/jellyfin/sdk/api/operations/LiveTvApi.kt @@ -285,7 +285,7 @@ public class LiveTvApi( } /** - * Get guid info. + * Get guide info. */ public suspend fun getGuideInfo(): Response { val pathParameters = emptyMap() diff --git a/jellyfin-model/api/jellyfin-model.api b/jellyfin-model/api/jellyfin-model.api index 029db5af8..be07fcb24 100644 --- a/jellyfin-model/api/jellyfin-model.api +++ b/jellyfin-model/api/jellyfin-model.api @@ -4248,7 +4248,7 @@ public final class org/jellyfin/sdk/model/api/LibraryOptions { public final fun getExtractTrickplayImagesDuringLibraryScan ()Z public final fun getLocalMetadataReaderOrder ()Ljava/util/List; public final fun getLyricFetcherOrder ()Ljava/util/List; - public final fun getMediaSegmentProvideOrder ()Ljava/util/List; + public final fun getMediaSegmentProviderOrder ()Ljava/util/List; public final fun getMetadataCountryCode ()Ljava/lang/String; public final fun getMetadataSavers ()Ljava/util/List; public final fun getPathInfos ()Ljava/util/List; @@ -4287,16 +4287,18 @@ public final class org/jellyfin/sdk/model/api/LibraryOptions$Companion { public final class org/jellyfin/sdk/model/api/LibraryOptionsResultDto { public static final field Companion Lorg/jellyfin/sdk/model/api/LibraryOptionsResultDto$Companion; - public fun (Ljava/util/List;Ljava/util/List;Ljava/util/List;Ljava/util/List;Ljava/util/List;)V + public fun (Ljava/util/List;Ljava/util/List;Ljava/util/List;Ljava/util/List;Ljava/util/List;Ljava/util/List;)V public final fun component1 ()Ljava/util/List; public final fun component2 ()Ljava/util/List; public final fun component3 ()Ljava/util/List; public final fun component4 ()Ljava/util/List; public final fun component5 ()Ljava/util/List; - public final fun copy (Ljava/util/List;Ljava/util/List;Ljava/util/List;Ljava/util/List;Ljava/util/List;)Lorg/jellyfin/sdk/model/api/LibraryOptionsResultDto; - public static synthetic fun copy$default (Lorg/jellyfin/sdk/model/api/LibraryOptionsResultDto;Ljava/util/List;Ljava/util/List;Ljava/util/List;Ljava/util/List;Ljava/util/List;ILjava/lang/Object;)Lorg/jellyfin/sdk/model/api/LibraryOptionsResultDto; + public final fun component6 ()Ljava/util/List; + public final fun copy (Ljava/util/List;Ljava/util/List;Ljava/util/List;Ljava/util/List;Ljava/util/List;Ljava/util/List;)Lorg/jellyfin/sdk/model/api/LibraryOptionsResultDto; + public static synthetic fun copy$default (Lorg/jellyfin/sdk/model/api/LibraryOptionsResultDto;Ljava/util/List;Ljava/util/List;Ljava/util/List;Ljava/util/List;Ljava/util/List;Ljava/util/List;ILjava/lang/Object;)Lorg/jellyfin/sdk/model/api/LibraryOptionsResultDto; public fun equals (Ljava/lang/Object;)Z public final fun getLyricFetchers ()Ljava/util/List; + public final fun getMediaSegmentProviders ()Ljava/util/List; public final fun getMetadataReaders ()Ljava/util/List; public final fun getMetadataSavers ()Ljava/util/List; public final fun getSubtitleFetchers ()Ljava/util/List; @@ -9025,8 +9027,8 @@ public final class org/jellyfin/sdk/model/api/SeriesTimerInfoDtoQueryResult$Comp public final class org/jellyfin/sdk/model/api/ServerConfiguration { public static final field Companion Lorg/jellyfin/sdk/model/api/ServerConfiguration$Companion; - public fun (IZLjava/lang/String;Ljava/lang/String;Ljava/lang/String;ZZZZZZLjava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/util/List;Ljava/util/List;Ljava/util/List;IIIIIIIILorg/jellyfin/sdk/model/api/ImageSavingConvention;Ljava/util/List;ZLjava/lang/String;Ljava/lang/String;ZLjava/util/List;IZZZLjava/util/List;Ljava/util/List;ZILjava/util/List;ZJLjava/util/List;Ljava/lang/Integer;IIZZILorg/jellyfin/sdk/model/api/ImageResolution;ILjava/util/List;Lorg/jellyfin/sdk/model/api/TrickplayOptions;)V - public synthetic fun (IZLjava/lang/String;Ljava/lang/String;Ljava/lang/String;ZZZZZZLjava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/util/List;Ljava/util/List;Ljava/util/List;IIIIIIIILorg/jellyfin/sdk/model/api/ImageSavingConvention;Ljava/util/List;ZLjava/lang/String;Ljava/lang/String;ZLjava/util/List;IZZZLjava/util/List;Ljava/util/List;ZILjava/util/List;ZJLjava/util/List;Ljava/lang/Integer;IIZZILorg/jellyfin/sdk/model/api/ImageResolution;ILjava/util/List;Lorg/jellyfin/sdk/model/api/TrickplayOptions;IILkotlin/jvm/internal/DefaultConstructorMarker;)V + public fun (IZLjava/lang/String;Ljava/lang/String;Ljava/lang/String;ZZZZZZLjava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/util/List;Ljava/util/List;Ljava/util/List;IIIIIIIILorg/jellyfin/sdk/model/api/ImageSavingConvention;Ljava/util/List;ZLjava/lang/String;Ljava/lang/String;ZLjava/util/List;IZZZLjava/util/List;Ljava/util/List;ZILjava/util/List;ZJLjava/util/List;Ljava/lang/Integer;IIZILorg/jellyfin/sdk/model/api/ImageResolution;ILjava/util/List;Lorg/jellyfin/sdk/model/api/TrickplayOptions;)V + public synthetic fun (IZLjava/lang/String;Ljava/lang/String;Ljava/lang/String;ZZZZZZLjava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/util/List;Ljava/util/List;Ljava/util/List;IIIIIIIILorg/jellyfin/sdk/model/api/ImageSavingConvention;Ljava/util/List;ZLjava/lang/String;Ljava/lang/String;ZLjava/util/List;IZZZLjava/util/List;Ljava/util/List;ZILjava/util/List;ZJLjava/util/List;Ljava/lang/Integer;IIZILorg/jellyfin/sdk/model/api/ImageResolution;ILjava/util/List;Lorg/jellyfin/sdk/model/api/TrickplayOptions;IILkotlin/jvm/internal/DefaultConstructorMarker;)V public final fun component1 ()I public final fun component10 ()Z public final fun component11 ()Z @@ -9070,19 +9072,18 @@ public final class org/jellyfin/sdk/model/api/ServerConfiguration { public final fun component46 ()I public final fun component47 ()I public final fun component48 ()Z - public final fun component49 ()Z + public final fun component49 ()I public final fun component5 ()Ljava/lang/String; - public final fun component50 ()I - public final fun component51 ()Lorg/jellyfin/sdk/model/api/ImageResolution; - public final fun component52 ()I - public final fun component53 ()Ljava/util/List; - public final fun component54 ()Lorg/jellyfin/sdk/model/api/TrickplayOptions; + public final fun component50 ()Lorg/jellyfin/sdk/model/api/ImageResolution; + public final fun component51 ()I + public final fun component52 ()Ljava/util/List; + public final fun component53 ()Lorg/jellyfin/sdk/model/api/TrickplayOptions; public final fun component6 ()Z public final fun component7 ()Z public final fun component8 ()Z public final fun component9 ()Z - public final fun copy (IZLjava/lang/String;Ljava/lang/String;Ljava/lang/String;ZZZZZZLjava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/util/List;Ljava/util/List;Ljava/util/List;IIIIIIIILorg/jellyfin/sdk/model/api/ImageSavingConvention;Ljava/util/List;ZLjava/lang/String;Ljava/lang/String;ZLjava/util/List;IZZZLjava/util/List;Ljava/util/List;ZILjava/util/List;ZJLjava/util/List;Ljava/lang/Integer;IIZZILorg/jellyfin/sdk/model/api/ImageResolution;ILjava/util/List;Lorg/jellyfin/sdk/model/api/TrickplayOptions;)Lorg/jellyfin/sdk/model/api/ServerConfiguration; - public static synthetic fun copy$default (Lorg/jellyfin/sdk/model/api/ServerConfiguration;IZLjava/lang/String;Ljava/lang/String;Ljava/lang/String;ZZZZZZLjava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/util/List;Ljava/util/List;Ljava/util/List;IIIIIIIILorg/jellyfin/sdk/model/api/ImageSavingConvention;Ljava/util/List;ZLjava/lang/String;Ljava/lang/String;ZLjava/util/List;IZZZLjava/util/List;Ljava/util/List;ZILjava/util/List;ZJLjava/util/List;Ljava/lang/Integer;IIZZILorg/jellyfin/sdk/model/api/ImageResolution;ILjava/util/List;Lorg/jellyfin/sdk/model/api/TrickplayOptions;IILjava/lang/Object;)Lorg/jellyfin/sdk/model/api/ServerConfiguration; + public final fun copy (IZLjava/lang/String;Ljava/lang/String;Ljava/lang/String;ZZZZZZLjava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/util/List;Ljava/util/List;Ljava/util/List;IIIIIIIILorg/jellyfin/sdk/model/api/ImageSavingConvention;Ljava/util/List;ZLjava/lang/String;Ljava/lang/String;ZLjava/util/List;IZZZLjava/util/List;Ljava/util/List;ZILjava/util/List;ZJLjava/util/List;Ljava/lang/Integer;IIZILorg/jellyfin/sdk/model/api/ImageResolution;ILjava/util/List;Lorg/jellyfin/sdk/model/api/TrickplayOptions;)Lorg/jellyfin/sdk/model/api/ServerConfiguration; + public static synthetic fun copy$default (Lorg/jellyfin/sdk/model/api/ServerConfiguration;IZLjava/lang/String;Ljava/lang/String;Ljava/lang/String;ZZZZZZLjava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/util/List;Ljava/util/List;Ljava/util/List;IIIIIIIILorg/jellyfin/sdk/model/api/ImageSavingConvention;Ljava/util/List;ZLjava/lang/String;Ljava/lang/String;ZLjava/util/List;IZZZLjava/util/List;Ljava/util/List;ZILjava/util/List;ZJLjava/util/List;Ljava/lang/Integer;IIZILorg/jellyfin/sdk/model/api/ImageResolution;ILjava/util/List;Lorg/jellyfin/sdk/model/api/TrickplayOptions;IILjava/lang/Object;)Lorg/jellyfin/sdk/model/api/ServerConfiguration; public fun equals (Ljava/lang/Object;)Z public final fun getActivityLogRetentionDays ()Ljava/lang/Integer; public final fun getAllowClientLogUpload ()Z @@ -9126,7 +9127,6 @@ public final class org/jellyfin/sdk/model/api/ServerConfiguration { public final fun getPreviousVersionStr ()Ljava/lang/String; public final fun getQuickConnectAvailable ()Z public final fun getRemoteClientBitrateLimit ()I - public final fun getRemoveOldPlugins ()Z public final fun getSaveMetadataHidden ()Z public final fun getServerName ()Ljava/lang/String; public final fun getSkipDeserializationForBasicTypes ()Z @@ -10266,22 +10266,21 @@ public final class org/jellyfin/sdk/model/api/TaskState$Companion { public final class org/jellyfin/sdk/model/api/TaskTriggerInfo { public static final field Companion Lorg/jellyfin/sdk/model/api/TaskTriggerInfo$Companion; - public fun ()V - public fun (Ljava/lang/String;Ljava/lang/Long;Ljava/lang/Long;Lorg/jellyfin/sdk/model/api/DayOfWeek;Ljava/lang/Long;)V - public synthetic fun (Ljava/lang/String;Ljava/lang/Long;Ljava/lang/Long;Lorg/jellyfin/sdk/model/api/DayOfWeek;Ljava/lang/Long;ILkotlin/jvm/internal/DefaultConstructorMarker;)V - public final fun component1 ()Ljava/lang/String; + public fun (Lorg/jellyfin/sdk/model/api/TaskTriggerInfoType;Ljava/lang/Long;Ljava/lang/Long;Lorg/jellyfin/sdk/model/api/DayOfWeek;Ljava/lang/Long;)V + public synthetic fun (Lorg/jellyfin/sdk/model/api/TaskTriggerInfoType;Ljava/lang/Long;Ljava/lang/Long;Lorg/jellyfin/sdk/model/api/DayOfWeek;Ljava/lang/Long;ILkotlin/jvm/internal/DefaultConstructorMarker;)V + public final fun component1 ()Lorg/jellyfin/sdk/model/api/TaskTriggerInfoType; public final fun component2 ()Ljava/lang/Long; public final fun component3 ()Ljava/lang/Long; public final fun component4 ()Lorg/jellyfin/sdk/model/api/DayOfWeek; public final fun component5 ()Ljava/lang/Long; - public final fun copy (Ljava/lang/String;Ljava/lang/Long;Ljava/lang/Long;Lorg/jellyfin/sdk/model/api/DayOfWeek;Ljava/lang/Long;)Lorg/jellyfin/sdk/model/api/TaskTriggerInfo; - public static synthetic fun copy$default (Lorg/jellyfin/sdk/model/api/TaskTriggerInfo;Ljava/lang/String;Ljava/lang/Long;Ljava/lang/Long;Lorg/jellyfin/sdk/model/api/DayOfWeek;Ljava/lang/Long;ILjava/lang/Object;)Lorg/jellyfin/sdk/model/api/TaskTriggerInfo; + public final fun copy (Lorg/jellyfin/sdk/model/api/TaskTriggerInfoType;Ljava/lang/Long;Ljava/lang/Long;Lorg/jellyfin/sdk/model/api/DayOfWeek;Ljava/lang/Long;)Lorg/jellyfin/sdk/model/api/TaskTriggerInfo; + public static synthetic fun copy$default (Lorg/jellyfin/sdk/model/api/TaskTriggerInfo;Lorg/jellyfin/sdk/model/api/TaskTriggerInfoType;Ljava/lang/Long;Ljava/lang/Long;Lorg/jellyfin/sdk/model/api/DayOfWeek;Ljava/lang/Long;ILjava/lang/Object;)Lorg/jellyfin/sdk/model/api/TaskTriggerInfo; public fun equals (Ljava/lang/Object;)Z public final fun getDayOfWeek ()Lorg/jellyfin/sdk/model/api/DayOfWeek; public final fun getIntervalTicks ()Ljava/lang/Long; public final fun getMaxRuntimeTicks ()Ljava/lang/Long; public final fun getTimeOfDayTicks ()Ljava/lang/Long; - public final fun getType ()Ljava/lang/String; + public final fun getType ()Lorg/jellyfin/sdk/model/api/TaskTriggerInfoType; public fun hashCode ()I public fun toString ()Ljava/lang/String; } @@ -10301,6 +10300,25 @@ public final class org/jellyfin/sdk/model/api/TaskTriggerInfo$Companion { public final fun serializer ()Lkotlinx/serialization/KSerializer; } +public final class org/jellyfin/sdk/model/api/TaskTriggerInfoType : java/lang/Enum { + public static final field Companion Lorg/jellyfin/sdk/model/api/TaskTriggerInfoType$Companion; + public static final field DAILY_TRIGGER Lorg/jellyfin/sdk/model/api/TaskTriggerInfoType; + public static final field INTERVAL_TRIGGER Lorg/jellyfin/sdk/model/api/TaskTriggerInfoType; + public static final field STARTUP_TRIGGER Lorg/jellyfin/sdk/model/api/TaskTriggerInfoType; + public static final field WEEKLY_TRIGGER Lorg/jellyfin/sdk/model/api/TaskTriggerInfoType; + public static fun getEntries ()Lkotlin/enums/EnumEntries; + public final fun getSerialName ()Ljava/lang/String; + public fun toString ()Ljava/lang/String; + public static fun valueOf (Ljava/lang/String;)Lorg/jellyfin/sdk/model/api/TaskTriggerInfoType; + public static fun values ()[Lorg/jellyfin/sdk/model/api/TaskTriggerInfoType; +} + +public final class org/jellyfin/sdk/model/api/TaskTriggerInfoType$Companion { + public final fun fromName (Ljava/lang/String;)Lorg/jellyfin/sdk/model/api/TaskTriggerInfoType; + public final fun fromNameOrNull (Ljava/lang/String;)Lorg/jellyfin/sdk/model/api/TaskTriggerInfoType; + public final fun serializer ()Lkotlinx/serialization/KSerializer; +} + public final class org/jellyfin/sdk/model/api/ThemeMediaResult { public static final field Companion Lorg/jellyfin/sdk/model/api/ThemeMediaResult$Companion; public fun (Ljava/util/List;IILjava/util/UUID;)V diff --git a/jellyfin-model/src/commonMain/kotlin-generated/org/jellyfin/sdk/model/api/LibraryOptions.kt b/jellyfin-model/src/commonMain/kotlin-generated/org/jellyfin/sdk/model/api/LibraryOptions.kt index 5bb45f725..d89daf24b 100644 --- a/jellyfin-model/src/commonMain/kotlin-generated/org/jellyfin/sdk/model/api/LibraryOptions.kt +++ b/jellyfin-model/src/commonMain/kotlin-generated/org/jellyfin/sdk/model/api/LibraryOptions.kt @@ -72,8 +72,8 @@ public data class LibraryOptions( public val subtitleFetcherOrder: List, @SerialName("DisabledMediaSegmentProviders") public val disabledMediaSegmentProviders: List, - @SerialName("MediaSegmentProvideOrder") - public val mediaSegmentProvideOrder: List, + @SerialName("MediaSegmentProviderOrder") + public val mediaSegmentProviderOrder: List, @SerialName("SkipSubtitlesIfEmbeddedSubtitlesPresent") public val skipSubtitlesIfEmbeddedSubtitlesPresent: Boolean, @SerialName("SkipSubtitlesIfAudioTrackMatches") diff --git a/jellyfin-model/src/commonMain/kotlin-generated/org/jellyfin/sdk/model/api/LibraryOptionsResultDto.kt b/jellyfin-model/src/commonMain/kotlin-generated/org/jellyfin/sdk/model/api/LibraryOptionsResultDto.kt index 07fadfaf9..9cf260ef3 100644 --- a/jellyfin-model/src/commonMain/kotlin-generated/org/jellyfin/sdk/model/api/LibraryOptionsResultDto.kt +++ b/jellyfin-model/src/commonMain/kotlin-generated/org/jellyfin/sdk/model/api/LibraryOptionsResultDto.kt @@ -34,6 +34,11 @@ public data class LibraryOptionsResultDto( */ @SerialName("LyricFetchers") public val lyricFetchers: List, + /** + * The list of MediaSegment Providers. + */ + @SerialName("MediaSegmentProviders") + public val mediaSegmentProviders: List, /** * The type options. */ diff --git a/jellyfin-model/src/commonMain/kotlin-generated/org/jellyfin/sdk/model/api/ServerConfiguration.kt b/jellyfin-model/src/commonMain/kotlin-generated/org/jellyfin/sdk/model/api/ServerConfiguration.kt index 131acd700..12741f787 100644 --- a/jellyfin-model/src/commonMain/kotlin-generated/org/jellyfin/sdk/model/api/ServerConfiguration.kt +++ b/jellyfin-model/src/commonMain/kotlin-generated/org/jellyfin/sdk/model/api/ServerConfiguration.kt @@ -211,11 +211,6 @@ public data class ServerConfiguration( */ @SerialName("LibraryMetadataRefreshConcurrency") public val libraryMetadataRefreshConcurrency: Int, - /** - * A value indicating whether older plugins should automatically be deleted from the plugin folder. - */ - @SerialName("RemoveOldPlugins") - public val removeOldPlugins: Boolean, /** * A value indicating whether clients should be allowed to upload logs. */ diff --git a/jellyfin-model/src/commonMain/kotlin-generated/org/jellyfin/sdk/model/api/TaskTriggerInfo.kt b/jellyfin-model/src/commonMain/kotlin-generated/org/jellyfin/sdk/model/api/TaskTriggerInfo.kt index 0a22fc980..f55882d97 100644 --- a/jellyfin-model/src/commonMain/kotlin-generated/org/jellyfin/sdk/model/api/TaskTriggerInfo.kt +++ b/jellyfin-model/src/commonMain/kotlin-generated/org/jellyfin/sdk/model/api/TaskTriggerInfo.kt @@ -6,7 +6,6 @@ package org.jellyfin.sdk.model.api import kotlin.Long -import kotlin.String import kotlinx.serialization.SerialName import kotlinx.serialization.Serializable @@ -19,7 +18,7 @@ public data class TaskTriggerInfo( * The type. */ @SerialName("Type") - public val type: String? = null, + public val type: TaskTriggerInfoType, /** * The time of day. */ diff --git a/jellyfin-model/src/commonMain/kotlin-generated/org/jellyfin/sdk/model/api/TaskTriggerInfoType.kt b/jellyfin-model/src/commonMain/kotlin-generated/org/jellyfin/sdk/model/api/TaskTriggerInfoType.kt new file mode 100644 index 000000000..d0ceea6f3 --- /dev/null +++ b/jellyfin-model/src/commonMain/kotlin-generated/org/jellyfin/sdk/model/api/TaskTriggerInfoType.kt @@ -0,0 +1,53 @@ +// !! WARNING +// !! DO NOT EDIT THIS FILE +// +// This file is generated by the openapi-generator module and is not meant for manual changes. +// Please read the README.md file in the openapi-generator module for additional information. +package org.jellyfin.sdk.model.api + +import kotlin.String +import kotlin.requireNotNull +import kotlinx.serialization.SerialName +import kotlinx.serialization.Serializable + +/** + * Enum TaskTriggerInfoType. + */ +@Serializable +public enum class TaskTriggerInfoType( + public val serialName: String, +) { + @SerialName("DailyTrigger") + DAILY_TRIGGER("DailyTrigger"), + @SerialName("WeeklyTrigger") + WEEKLY_TRIGGER("WeeklyTrigger"), + @SerialName("IntervalTrigger") + INTERVAL_TRIGGER("IntervalTrigger"), + @SerialName("StartupTrigger") + STARTUP_TRIGGER("StartupTrigger"), + ; + + /** + * Get the serial name of the enum member. + */ + override fun toString(): String = serialName + + public companion object { + /** + * Find the enum member by the serial name or return null. + */ + public fun fromNameOrNull(serialName: String): TaskTriggerInfoType? = when (serialName) { + "DailyTrigger" -> DAILY_TRIGGER + "WeeklyTrigger" -> WEEKLY_TRIGGER + "IntervalTrigger" -> INTERVAL_TRIGGER + "StartupTrigger" -> STARTUP_TRIGGER + else -> null + } + + /** + * Find the enum member by the serial name or throw. + */ + public fun fromName(serialName: String): TaskTriggerInfoType = + requireNotNull(fromNameOrNull(serialName)) { """Unknown value $serialName""" } + } +} diff --git a/openapi.json b/openapi.json index 1d76b546f..22797fe29 100644 --- a/openapi.json +++ b/openapi.json @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:4a6f2c7b6fd6d085c371a7dd69bdbf749c295fbe9279e313488f22cbe642e3c4 -size 1733185 +oid sha256:f0659e2697f205d178e4218c7fe11eb1467e69ffa87aac8539e83e92cbeef898 +size 1733728