ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.406.0

This commit is contained in:
speakeasybot
2024-10-03 00:28:29 +00:00
parent fa542f04e1
commit 2e4350c8c4
247 changed files with 21314 additions and 5695 deletions

View File

@@ -6,28 +6,25 @@ package dev.plexapi.sdk.models.operations;
import com.fasterxml.jackson.core.type.TypeReference;
import dev.plexapi.sdk.utils.LazySingletonValue;
import dev.plexapi.sdk.utils.Options;
import dev.plexapi.sdk.utils.RetryConfig;
import dev.plexapi.sdk.utils.Utils;
import java.lang.Integer;
import java.util.Optional;
public class GetLibraryDetailsRequestBuilder {
private Integer sectionKey;
private Optional<? extends IncludeDetails> includeDetails = Utils.readDefaultOrConstValue(
"includeDetails",
"0",
new TypeReference<Optional<? extends IncludeDetails>>() {});
private Integer sectionKey;
private Optional<RetryConfig> retryConfig = Optional.empty();
private final SDKMethodInterfaces.MethodCallGetLibraryDetails sdk;
public GetLibraryDetailsRequestBuilder(SDKMethodInterfaces.MethodCallGetLibraryDetails sdk) {
this.sdk = sdk;
}
public GetLibraryDetailsRequestBuilder sectionKey(int sectionKey) {
Utils.checkNotNull(sectionKey, "sectionKey");
this.sectionKey = sectionKey;
return this;
}
public GetLibraryDetailsRequestBuilder includeDetails(IncludeDetails includeDetails) {
Utils.checkNotNull(includeDetails, "includeDetails");
@@ -41,13 +38,34 @@ public class GetLibraryDetailsRequestBuilder {
return this;
}
public GetLibraryDetailsRequestBuilder sectionKey(int sectionKey) {
Utils.checkNotNull(sectionKey, "sectionKey");
this.sectionKey = sectionKey;
return this;
}
public GetLibraryDetailsRequestBuilder retryConfig(RetryConfig retryConfig) {
Utils.checkNotNull(retryConfig, "retryConfig");
this.retryConfig = Optional.of(retryConfig);
return this;
}
public GetLibraryDetailsRequestBuilder retryConfig(Optional<RetryConfig> retryConfig) {
Utils.checkNotNull(retryConfig, "retryConfig");
this.retryConfig = retryConfig;
return this;
}
public GetLibraryDetailsResponse call() throws Exception {
if (includeDetails == null) {
includeDetails = _SINGLETON_VALUE_IncludeDetails.value();
}
} Optional<Options> options = Optional.of(Options.builder()
.retryConfig(retryConfig)
.build());
return sdk.getLibraryDetails(
includeDetails,
sectionKey,
includeDetails);
options);
}
private static final LazySingletonValue<Optional<? extends IncludeDetails>> _SINGLETON_VALUE_IncludeDetails =