diff --git a/.mise.toml b/.mise.toml index 4197e28c367..112526735c9 100644 --- a/.mise.toml +++ b/.mise.toml @@ -2,3 +2,4 @@ golangci-lint = "2.5.0" gradle = "8.14.1" java = "temurin-11.0.28+6" +maven = "3.9.11" diff --git a/pkg/cmd/pulumi-language-java/language_test.go b/pkg/cmd/pulumi-language-java/language_test.go index 58ea8481518..3b43e3e1a78 100644 --- a/pkg/cmd/pulumi-language-java/language_test.go +++ b/pkg/cmd/pulumi-language-java/language_test.go @@ -128,7 +128,6 @@ func TestLanguage(t *testing.T) { require.NoError(t, err) for _, tt := range tests.Tests { - tt := tt t.Run(tt, func(t *testing.T) { t.Parallel() @@ -187,7 +186,6 @@ var expectedFailures = map[string]string{ "l2-component-property-deps": "compilation error", "l2-parameterized-resource": "compilation error", "l2-explicit-providers": "should have 6 item(s), but has 7", - "l2-invoke-scalar": "exception at runtime", "l3-component-simple": "compilation error", "l1-builtin-cwd": "test failing", "l1-stack-reference": "test failing", @@ -234,7 +232,6 @@ var expectedFailures = map[string]string{ "l2-ref-ref": "test failing", "l2-invoke-dependencies": "test failing", "l2-destroy": "test failing", - "l2-invoke-scalars": "not implemented", } // runTestingHost boots up a new instance of the language conformance test runner, `pulumi-test-language`, as well as a diff --git a/pkg/cmd/pulumi-language-java/testdata/projects/l2-invoke-scalar/Pulumi.yaml b/pkg/cmd/pulumi-language-java/testdata/projects/l2-invoke-scalar/Pulumi.yaml new file mode 100644 index 00000000000..621e69624a8 --- /dev/null +++ b/pkg/cmd/pulumi-language-java/testdata/projects/l2-invoke-scalar/Pulumi.yaml @@ -0,0 +1,2 @@ +name: l2-invoke-scalar +runtime: java diff --git a/pkg/cmd/pulumi-language-java/testdata/projects/l2-invoke-scalar/pom.xml b/pkg/cmd/pulumi-language-java/testdata/projects/l2-invoke-scalar/pom.xml new file mode 100644 index 00000000000..83a3f14f575 --- /dev/null +++ b/pkg/cmd/pulumi-language-java/testdata/projects/l2-invoke-scalar/pom.xml @@ -0,0 +1,99 @@ + + + 4.0.0 + + com.pulumi + l2-invoke-scalar + 1.0-SNAPSHOT + + + UTF-8 + 11 + 11 + 11 + generated_program.App + + + + + + repository-0 + REPOSITORY + + + + + + com.pulumi + pulumi + CORE.VERSION + + + com.pulumi + simple-invoke-with-scalar-return + 17.0.0 + + + + + + + org.apache.maven.plugins + maven-jar-plugin + 3.2.2 + + + + true + ${mainClass} + + + + + + org.apache.maven.plugins + maven-assembly-plugin + 3.4.2 + + + + true + ${mainClass} + + + + jar-with-dependencies + + + + + make-my-jar-with-dependencies + package + + single + + + + + + org.codehaus.mojo + exec-maven-plugin + 3.1.0 + + ${mainClass} + ${mainArgs} + + + + org.apache.maven.plugins + maven-wrapper-plugin + 3.1.1 + + 3.8.5 + + + + + \ No newline at end of file diff --git a/pkg/cmd/pulumi-language-java/testdata/projects/l2-invoke-scalar/src/main/java/generated_program/App.java b/pkg/cmd/pulumi-language-java/testdata/projects/l2-invoke-scalar/src/main/java/generated_program/App.java new file mode 100644 index 00000000000..a7c20dff8ef --- /dev/null +++ b/pkg/cmd/pulumi-language-java/testdata/projects/l2-invoke-scalar/src/main/java/generated_program/App.java @@ -0,0 +1,25 @@ +package generated_program; + +import com.pulumi.Context; +import com.pulumi.Pulumi; +import com.pulumi.core.Output; +import com.pulumi.simpleinvokewithscalarreturn.SimpleinvokewithscalarreturnFunctions; +import com.pulumi.simpleinvokewithscalarreturn.inputs.MyInvokeScalarArgs; +import java.util.List; +import java.util.ArrayList; +import java.util.Map; +import java.io.File; +import java.nio.file.Files; +import java.nio.file.Paths; + +public class App { + public static void main(String[] args) { + Pulumi.run(App::stack); + } + + public static void stack(Context ctx) { + ctx.export("scalar", SimpleinvokewithscalarreturnFunctions.myInvokeScalar(MyInvokeScalarArgs.builder() + .value("goodbye") + .build())); + } +} diff --git a/pkg/cmd/pulumi-language-java/testdata/projects/l2-invoke-scalars/Pulumi.yaml b/pkg/cmd/pulumi-language-java/testdata/projects/l2-invoke-scalars/Pulumi.yaml new file mode 100644 index 00000000000..4d5632d3e5f --- /dev/null +++ b/pkg/cmd/pulumi-language-java/testdata/projects/l2-invoke-scalars/Pulumi.yaml @@ -0,0 +1,2 @@ +name: l2-invoke-scalars +runtime: java diff --git a/pkg/cmd/pulumi-language-java/testdata/projects/l2-invoke-scalars/pom.xml b/pkg/cmd/pulumi-language-java/testdata/projects/l2-invoke-scalars/pom.xml new file mode 100644 index 00000000000..1caf6081702 --- /dev/null +++ b/pkg/cmd/pulumi-language-java/testdata/projects/l2-invoke-scalars/pom.xml @@ -0,0 +1,99 @@ + + + 4.0.0 + + com.pulumi + l2-invoke-scalars + 1.0-SNAPSHOT + + + UTF-8 + 11 + 11 + 11 + generated_program.App + + + + + + repository-0 + REPOSITORY + + + + + + com.pulumi + pulumi + CORE.VERSION + + + com.pulumi + scalar-returns + 21.0.0 + + + + + + + org.apache.maven.plugins + maven-jar-plugin + 3.2.2 + + + + true + ${mainClass} + + + + + + org.apache.maven.plugins + maven-assembly-plugin + 3.4.2 + + + + true + ${mainClass} + + + + jar-with-dependencies + + + + + make-my-jar-with-dependencies + package + + single + + + + + + org.codehaus.mojo + exec-maven-plugin + 3.1.0 + + ${mainClass} + ${mainArgs} + + + + org.apache.maven.plugins + maven-wrapper-plugin + 3.1.1 + + 3.8.5 + + + + + \ No newline at end of file diff --git a/pkg/cmd/pulumi-language-java/testdata/projects/l2-invoke-scalars/src/main/java/generated_program/App.java b/pkg/cmd/pulumi-language-java/testdata/projects/l2-invoke-scalars/src/main/java/generated_program/App.java new file mode 100644 index 00000000000..f482129fbfd --- /dev/null +++ b/pkg/cmd/pulumi-language-java/testdata/projects/l2-invoke-scalars/src/main/java/generated_program/App.java @@ -0,0 +1,36 @@ +package generated_program; + +import com.pulumi.Context; +import com.pulumi.Pulumi; +import com.pulumi.core.Output; +import com.pulumi.scalarreturns.ScalarreturnsFunctions; +import com.pulumi.scalarreturns.inputs.InvokeSecretArgs; +import com.pulumi.scalarreturns.inputs.InvokeArrayArgs; +import com.pulumi.scalarreturns.inputs.InvokeMapArgs; +import java.util.List; +import java.util.ArrayList; +import java.util.Map; +import java.io.File; +import java.nio.file.Files; +import java.nio.file.Paths; + +public class App { + public static void main(String[] args) { + Pulumi.run(App::stack); + } + + public static void stack(Context ctx) { + ctx.export("secret", ScalarreturnsFunctions.invokeSecret(InvokeSecretArgs.builder() + .value("goodbye") + .build())); + ctx.export("array", ScalarreturnsFunctions.invokeArray(InvokeArrayArgs.builder() + .value("the word") + .build())); + ctx.export("map", ScalarreturnsFunctions.invokeMap(InvokeMapArgs.builder() + .value("hello") + .build())); + ctx.export("secretMap", ScalarreturnsFunctions.invokeMap(InvokeMapArgs.builder() + .value("secret") + .build())); + } +} diff --git a/pkg/cmd/pulumi-language-java/testdata/sdks/any-type-function-15.0.0/src/main/java/com/pulumi/anytypefunction/AnytypefunctionFunctions.java b/pkg/cmd/pulumi-language-java/testdata/sdks/any-type-function-15.0.0/src/main/java/com/pulumi/anytypefunction/AnytypefunctionFunctions.java index 21206f83a24..b2df89cfb89 100644 --- a/pkg/cmd/pulumi-language-java/testdata/sdks/any-type-function-15.0.0/src/main/java/com/pulumi/anytypefunction/AnytypefunctionFunctions.java +++ b/pkg/cmd/pulumi-language-java/testdata/sdks/any-type-function-15.0.0/src/main/java/com/pulumi/anytypefunction/AnytypefunctionFunctions.java @@ -28,12 +28,15 @@ public static CompletableFuture dynListToDynPlain(DynListToD return dynListToDynPlain(args, InvokeOptions.Empty); } public static Output dynListToDyn(DynListToDynArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("any-type-function:index:dynListToDyn", TypeShape.of(DynListToDynResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("any-type-function:index:dynListToDyn", TypeShape.of(DynListToDynResult.class), args, Utilities.withVersion(options)); + return result; } public static Output dynListToDyn(DynListToDynArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("any-type-function:index:dynListToDyn", TypeShape.of(DynListToDynResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("any-type-function:index:dynListToDyn", TypeShape.of(DynListToDynResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture dynListToDynPlain(DynListToDynPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("any-type-function:index:dynListToDyn", TypeShape.of(DynListToDynResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("any-type-function:index:dynListToDyn", TypeShape.of(DynListToDynResult.class), args, Utilities.withVersion(options)); + return result; } } diff --git a/pkg/cmd/pulumi-language-java/testdata/sdks/scalar-returns-21.0.0/README.md b/pkg/cmd/pulumi-language-java/testdata/sdks/scalar-returns-21.0.0/README.md new file mode 100644 index 00000000000..8d1c8b69c3f --- /dev/null +++ b/pkg/cmd/pulumi-language-java/testdata/sdks/scalar-returns-21.0.0/README.md @@ -0,0 +1 @@ + diff --git a/pkg/cmd/pulumi-language-java/testdata/sdks/scalar-returns-21.0.0/build.gradle b/pkg/cmd/pulumi-language-java/testdata/sdks/scalar-returns-21.0.0/build.gradle new file mode 100644 index 00000000000..7f983132c63 --- /dev/null +++ b/pkg/cmd/pulumi-language-java/testdata/sdks/scalar-returns-21.0.0/build.gradle @@ -0,0 +1,159 @@ +// *** WARNING: this file was generated by pulumi-java-gen *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +plugins { + id("signing") + id("java-library") + id("maven-publish") + id("io.github.gradle-nexus.publish-plugin") version "2.0.0" +} + +group = "com.pulumi" + +def resolvedVersion = System.getenv("PACKAGE_VERSION") ?: + (project.version == "unspecified" + ? "21.0.0" + : project.version) + +def signingKey = System.getenv("SIGNING_KEY") +def signingPassword = System.getenv("SIGNING_PASSWORD") +def publishRepoURL = System.getenv("PUBLISH_REPO_URL") ?: "https://central.sonatype.com/repository/maven-snapshots/" +def publishStagingURL = System.getenv("PUBLISH_STAGING_URL") ?: "https://ossrh-staging-api.central.sonatype.com/service/local/" +def publishRepoUsername = System.getenv("PUBLISH_REPO_USERNAME") +def publishRepoPassword = System.getenv("PUBLISH_REPO_PASSWORD") + +java { + toolchain { + languageVersion = JavaLanguageVersion.of(11) + } +} + +compileJava { + options.fork = true + options.forkOptions.jvmArgs.addAll(["-Xmx16g"]) + options.encoding = "UTF-8" +} + +repositories { + maven { + url("REPOSITORY") + } + mavenLocal() + maven { // The google mirror is less flaky than mavenCentral() + url("https://maven-central.storage-download.googleapis.com/maven2/") + } + mavenCentral() +} + +dependencies { + implementation("com.google.code.findbugs:jsr305:3.0.2") + implementation("com.google.code.gson:gson:2.8.9") + implementation("com.pulumi:pulumi:CORE.VERSION") +} + +task sourcesJar(type: Jar) { + from sourceSets.main.allJava + archiveClassifier.set('sources') +} + +task javadocJar(type: Jar) { + from javadoc + archiveClassifier.set('javadoc') + zip64 = true +} + +def genPulumiResources = tasks.register('genPulumiResources') { + doLast { + def resourcesDir = sourceSets.main.output.resourcesDir + def subDir = project.name.replace(".", "/") + def outDir = file("$resourcesDir/$subDir") + outDir.mkdirs() + new File(outDir, "version.txt").text = resolvedVersion + def builder = new groovy.json.JsonBuilder() + builder { + resource true + name "scalar-returns" + version resolvedVersion + } + def infoJson = builder.toPrettyString() + new File(outDir, "plugin.json").text = infoJson + } +} + +jar.configure { + dependsOn genPulumiResources +} + +publishing { + publications { + mainPublication(MavenPublication) { + groupId = "com.pulumi" + artifactId = "scalar-returns" + version = resolvedVersion + from components.java + artifact sourcesJar + artifact javadocJar + + pom { + inceptionYear = "" + name = "" + packaging = "jar" + description = " " + + url = "https://example.com" + + scm { + connection = "https://example.com" + developerConnection = "https://example.com" + url = "https://example.com" + } + + licenses { + license { + name = "" + url = "" + } + } + + developers { + developer { + id = "" + name = "" + email = "" + } + } + } + } + } +} + +javadoc { + if (JavaVersion.current().isJava9Compatible()) { + options.addBooleanOption('html5', true) + } + options.jFlags("-Xmx8g", "-Xms512m") +} + +jar { + zip64 = true +} + +if (publishRepoUsername) { + nexusPublishing { + repositories { + sonatype { + nexusUrl.set(uri(publishStagingURL)) + snapshotRepositoryUrl.set(uri(publishRepoURL)) + username = publishRepoUsername + password = publishRepoPassword + } + } + } +} + +if (signingKey) { + signing { + useInMemoryPgpKeys(signingKey, signingPassword) + sign publishing.publications.mainPublication + } +} diff --git a/pkg/cmd/pulumi-language-java/testdata/sdks/scalar-returns-21.0.0/settings.gradle b/pkg/cmd/pulumi-language-java/testdata/sdks/scalar-returns-21.0.0/settings.gradle new file mode 100644 index 00000000000..c70507fedac --- /dev/null +++ b/pkg/cmd/pulumi-language-java/testdata/sdks/scalar-returns-21.0.0/settings.gradle @@ -0,0 +1,14 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +pluginManagement { + repositories { + maven { // The google mirror is less flaky than mavenCentral() + url("https://maven-central.storage-download.googleapis.com/maven2/") + } + gradlePluginPortal() + } +} + +rootProject.name = "com.pulumi.scalar-returns" +include("lib") diff --git a/pkg/cmd/pulumi-language-java/testdata/sdks/scalar-returns-21.0.0/src/main/java/com/pulumi/scalarreturns/Provider.java b/pkg/cmd/pulumi-language-java/testdata/sdks/scalar-returns-21.0.0/src/main/java/com/pulumi/scalarreturns/Provider.java new file mode 100644 index 00000000000..a302a4d1c6e --- /dev/null +++ b/pkg/cmd/pulumi-language-java/testdata/sdks/scalar-returns-21.0.0/src/main/java/com/pulumi/scalarreturns/Provider.java @@ -0,0 +1,54 @@ +// *** WARNING: this file was generated by pulumi-language-java. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.scalarreturns; + +import com.pulumi.core.Output; +import com.pulumi.core.annotations.ResourceType; +import com.pulumi.core.internal.Codegen; +import com.pulumi.scalarreturns.ProviderArgs; +import com.pulumi.scalarreturns.Utilities; +import javax.annotation.Nullable; + +@ResourceType(type="pulumi:providers:scalar-returns") +public class Provider extends com.pulumi.resources.ProviderResource { + /** + * + * @param name The _unique_ name of the resulting resource. + */ + public Provider(java.lang.String name) { + this(name, ProviderArgs.Empty); + } + /** + * + * @param name The _unique_ name of the resulting resource. + * @param args The arguments to use to populate this resource's properties. + */ + public Provider(java.lang.String name, @Nullable ProviderArgs args) { + this(name, args, null); + } + /** + * + * @param name The _unique_ name of the resulting resource. + * @param args The arguments to use to populate this resource's properties. + * @param options A bag of options that control this resource's behavior. + */ + public Provider(java.lang.String name, @Nullable ProviderArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("scalar-returns", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); + } + + private static ProviderArgs makeArgs(@Nullable ProviderArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? ProviderArgs.Empty : args; + } + + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() + .version(Utilities.getVersion()) + .build(); + return com.pulumi.resources.CustomResourceOptions.merge(defaultOptions, options, id); + } + +} diff --git a/pkg/cmd/pulumi-language-java/testdata/sdks/scalar-returns-21.0.0/src/main/java/com/pulumi/scalarreturns/ProviderArgs.java b/pkg/cmd/pulumi-language-java/testdata/sdks/scalar-returns-21.0.0/src/main/java/com/pulumi/scalarreturns/ProviderArgs.java new file mode 100644 index 00000000000..84840438f92 --- /dev/null +++ b/pkg/cmd/pulumi-language-java/testdata/sdks/scalar-returns-21.0.0/src/main/java/com/pulumi/scalarreturns/ProviderArgs.java @@ -0,0 +1,28 @@ +// *** WARNING: this file was generated by pulumi-language-java. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.scalarreturns; + + + + +public final class ProviderArgs extends com.pulumi.resources.ResourceArgs { + + public static final ProviderArgs Empty = new ProviderArgs(); + + public static Builder builder() { + return new Builder(); + } + + public static final class Builder { + private ProviderArgs $; + + public Builder() { + $ = new ProviderArgs(); + } + public ProviderArgs build() { + return $; + } + } + +} diff --git a/pkg/cmd/pulumi-language-java/testdata/sdks/scalar-returns-21.0.0/src/main/java/com/pulumi/scalarreturns/ScalarreturnsFunctions.java b/pkg/cmd/pulumi-language-java/testdata/sdks/scalar-returns-21.0.0/src/main/java/com/pulumi/scalarreturns/ScalarreturnsFunctions.java new file mode 100644 index 00000000000..8cd6ae1cb92 --- /dev/null +++ b/pkg/cmd/pulumi-language-java/testdata/sdks/scalar-returns-21.0.0/src/main/java/com/pulumi/scalarreturns/ScalarreturnsFunctions.java @@ -0,0 +1,80 @@ +// *** WARNING: this file was generated by pulumi-language-java. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.scalarreturns; + +import com.pulumi.core.Output; +import com.pulumi.core.TypeShape; +import com.pulumi.deployment.Deployment; +import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; +import com.pulumi.scalarreturns.Utilities; +import com.pulumi.scalarreturns.inputs.InvokeArrayArgs; +import com.pulumi.scalarreturns.inputs.InvokeArrayPlainArgs; +import com.pulumi.scalarreturns.inputs.InvokeMapArgs; +import com.pulumi.scalarreturns.inputs.InvokeMapPlainArgs; +import com.pulumi.scalarreturns.inputs.InvokeSecretArgs; +import com.pulumi.scalarreturns.inputs.InvokeSecretPlainArgs; +import java.lang.Boolean; +import java.lang.Double; +import java.lang.String; +import java.util.List; +import java.util.Map; +import java.util.concurrent.CompletableFuture; + +public final class ScalarreturnsFunctions { + public static Output> invokeArray(InvokeArrayArgs args) { + return invokeArray(args, InvokeOptions.Empty); + } + public static CompletableFuture> invokeArrayPlain(InvokeArrayPlainArgs args) { + return invokeArrayPlain(args, InvokeOptions.Empty); + } + public static Output> invokeArray(InvokeArrayArgs args, InvokeOptions options) { + var result = Deployment.getInstance().invoke("scalar-returns:index:invokeArray", TypeShape.map(String.class, List.class), args, Utilities.withVersion(options)); + return result.applyValue(m -> (List)m.values().toArray()[0]); + } + public static Output> invokeArray(InvokeArrayArgs args, InvokeOutputOptions options) { + var result = Deployment.getInstance().invoke("scalar-returns:index:invokeArray", TypeShape.map(String.class, List.class), args, Utilities.withVersion(options)); + return result.applyValue(m -> (List)(m.values().toArray()[0])); + } + public static CompletableFuture> invokeArrayPlain(InvokeArrayPlainArgs args, InvokeOptions options) { + var result = Deployment.getInstance().invokeAsync("scalar-returns:index:invokeArray", TypeShape.map(String.class, List.class), args, Utilities.withVersion(options)); + return result.thenApply(m -> (List)(m.values().toArray()[0])); + } + public static Output> invokeMap(InvokeMapArgs args) { + return invokeMap(args, InvokeOptions.Empty); + } + public static CompletableFuture> invokeMapPlain(InvokeMapPlainArgs args) { + return invokeMapPlain(args, InvokeOptions.Empty); + } + public static Output> invokeMap(InvokeMapArgs args, InvokeOptions options) { + var result = Deployment.getInstance().invoke("scalar-returns:index:invokeMap", TypeShape.map(String.class, Map.class), args, Utilities.withVersion(options)); + return result.applyValue(m -> (Map)m.values().toArray()[0]); + } + public static Output> invokeMap(InvokeMapArgs args, InvokeOutputOptions options) { + var result = Deployment.getInstance().invoke("scalar-returns:index:invokeMap", TypeShape.map(String.class, Map.class), args, Utilities.withVersion(options)); + return result.applyValue(m -> (Map)(m.values().toArray()[0])); + } + public static CompletableFuture> invokeMapPlain(InvokeMapPlainArgs args, InvokeOptions options) { + var result = Deployment.getInstance().invokeAsync("scalar-returns:index:invokeMap", TypeShape.map(String.class, Map.class), args, Utilities.withVersion(options)); + return result.thenApply(m -> (Map)(m.values().toArray()[0])); + } + public static Output invokeSecret(InvokeSecretArgs args) { + return invokeSecret(args, InvokeOptions.Empty); + } + public static CompletableFuture invokeSecretPlain(InvokeSecretPlainArgs args) { + return invokeSecretPlain(args, InvokeOptions.Empty); + } + public static Output invokeSecret(InvokeSecretArgs args, InvokeOptions options) { + var result = Deployment.getInstance().invoke("scalar-returns:index:invokeSecret", TypeShape.map(String.class, Double.class), args, Utilities.withVersion(options)); + return result.applyValue(m -> (Double)m.values().toArray()[0]); + } + public static Output invokeSecret(InvokeSecretArgs args, InvokeOutputOptions options) { + var result = Deployment.getInstance().invoke("scalar-returns:index:invokeSecret", TypeShape.map(String.class, Double.class), args, Utilities.withVersion(options)); + return result.applyValue(m -> (Double)(m.values().toArray()[0])); + } + public static CompletableFuture invokeSecretPlain(InvokeSecretPlainArgs args, InvokeOptions options) { + var result = Deployment.getInstance().invokeAsync("scalar-returns:index:invokeSecret", TypeShape.map(String.class, Double.class), args, Utilities.withVersion(options)); + return result.thenApply(m -> (Double)(m.values().toArray()[0])); + } +} diff --git a/pkg/cmd/pulumi-language-java/testdata/sdks/scalar-returns-21.0.0/src/main/java/com/pulumi/scalarreturns/Utilities.java b/pkg/cmd/pulumi-language-java/testdata/sdks/scalar-returns-21.0.0/src/main/java/com/pulumi/scalarreturns/Utilities.java new file mode 100644 index 00000000000..90fedc7b242 --- /dev/null +++ b/pkg/cmd/pulumi-language-java/testdata/sdks/scalar-returns-21.0.0/src/main/java/com/pulumi/scalarreturns/Utilities.java @@ -0,0 +1,102 @@ +// *** WARNING: this file was generated by pulumi-language-java. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.scalarreturns; + + + + + +import java.io.BufferedReader; +import java.io.InputStreamReader; +import java.util.Optional; +import java.util.stream.Collectors; +import javax.annotation.Nullable; +import com.pulumi.core.internal.Environment; +import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; + +public class Utilities { + + public static Optional getEnv(java.lang.String... names) { + for (var n : names) { + var value = Environment.getEnvironmentVariable(n); + if (value.isValue()) { + return Optional.of(value.value()); + } + } + return Optional.empty(); + } + + public static Optional getEnvBoolean(java.lang.String... names) { + for (var n : names) { + var value = Environment.getBooleanEnvironmentVariable(n); + if (value.isValue()) { + return Optional.of(value.value()); + } + } + return Optional.empty(); + } + + public static Optional getEnvInteger(java.lang.String... names) { + for (var n : names) { + var value = Environment.getIntegerEnvironmentVariable(n); + if (value.isValue()) { + return Optional.of(value.value()); + } + } + return Optional.empty(); + } + + public static Optional getEnvDouble(java.lang.String... names) { + for (var n : names) { + var value = Environment.getDoubleEnvironmentVariable(n); + if (value.isValue()) { + return Optional.of(value.value()); + } + } + return Optional.empty(); + } + + public static InvokeOptions withVersion(@Nullable InvokeOptions options) { + if (options != null && options.getVersion().isPresent()) { + return options; + } + return new InvokeOptions( + options == null ? null : options.getParent().orElse(null), + options == null ? null : options.getProvider().orElse(null), + getVersion() + ); + } + + public static InvokeOutputOptions withVersion(@Nullable InvokeOutputOptions options) { + if (options != null && options.getVersion().isPresent()) { + return options; + } + return new InvokeOutputOptions( + options == null ? null : options.getParent().orElse(null), + options == null ? null : options.getProvider().orElse(null), + getVersion(), + options == null ? null : options.getDependsOn() + ); + } + + private static final java.lang.String version; + public static java.lang.String getVersion() { + return version; + } + + static { + var resourceName = "com/pulumi/scalar-returns/version.txt"; + var versionFile = Utilities.class.getClassLoader().getResourceAsStream(resourceName); + if (versionFile == null) { + throw new IllegalStateException( + java.lang.String.format("expected resource '%s' on Classpath, not found", resourceName) + ); + } + version = new BufferedReader(new InputStreamReader(versionFile)) + .lines() + .collect(Collectors.joining("\n")) + .trim(); + } +} diff --git a/pkg/cmd/pulumi-language-java/testdata/sdks/scalar-returns-21.0.0/src/main/java/com/pulumi/scalarreturns/inputs/InvokeArrayArgs.java b/pkg/cmd/pulumi-language-java/testdata/sdks/scalar-returns-21.0.0/src/main/java/com/pulumi/scalarreturns/inputs/InvokeArrayArgs.java new file mode 100644 index 00000000000..03f5189fdb5 --- /dev/null +++ b/pkg/cmd/pulumi-language-java/testdata/sdks/scalar-returns-21.0.0/src/main/java/com/pulumi/scalarreturns/inputs/InvokeArrayArgs.java @@ -0,0 +1,65 @@ +// *** WARNING: this file was generated by pulumi-language-java. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.scalarreturns.inputs; + +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; +import java.lang.String; +import java.util.Objects; + + +public final class InvokeArrayArgs extends com.pulumi.resources.InvokeArgs { + + public static final InvokeArrayArgs Empty = new InvokeArrayArgs(); + + @Import(name="value", required=true) + private Output value; + + public Output value() { + return this.value; + } + + private InvokeArrayArgs() {} + + private InvokeArrayArgs(InvokeArrayArgs $) { + this.value = $.value; + } + + public static Builder builder() { + return new Builder(); + } + public static Builder builder(InvokeArrayArgs defaults) { + return new Builder(defaults); + } + + public static final class Builder { + private InvokeArrayArgs $; + + public Builder() { + $ = new InvokeArrayArgs(); + } + + public Builder(InvokeArrayArgs defaults) { + $ = new InvokeArrayArgs(Objects.requireNonNull(defaults)); + } + + public Builder value(Output value) { + $.value = value; + return this; + } + + public Builder value(String value) { + return value(Output.of(value)); + } + + public InvokeArrayArgs build() { + if ($.value == null) { + throw new MissingRequiredPropertyException("InvokeArrayArgs", "value"); + } + return $; + } + } + +} diff --git a/pkg/cmd/pulumi-language-java/testdata/sdks/scalar-returns-21.0.0/src/main/java/com/pulumi/scalarreturns/inputs/InvokeArrayPlainArgs.java b/pkg/cmd/pulumi-language-java/testdata/sdks/scalar-returns-21.0.0/src/main/java/com/pulumi/scalarreturns/inputs/InvokeArrayPlainArgs.java new file mode 100644 index 00000000000..4c49fd81923 --- /dev/null +++ b/pkg/cmd/pulumi-language-java/testdata/sdks/scalar-returns-21.0.0/src/main/java/com/pulumi/scalarreturns/inputs/InvokeArrayPlainArgs.java @@ -0,0 +1,60 @@ +// *** WARNING: this file was generated by pulumi-language-java. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.scalarreturns.inputs; + +import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; +import java.lang.String; +import java.util.Objects; + + +public final class InvokeArrayPlainArgs extends com.pulumi.resources.InvokeArgs { + + public static final InvokeArrayPlainArgs Empty = new InvokeArrayPlainArgs(); + + @Import(name="value", required=true) + private String value; + + public String value() { + return this.value; + } + + private InvokeArrayPlainArgs() {} + + private InvokeArrayPlainArgs(InvokeArrayPlainArgs $) { + this.value = $.value; + } + + public static Builder builder() { + return new Builder(); + } + public static Builder builder(InvokeArrayPlainArgs defaults) { + return new Builder(defaults); + } + + public static final class Builder { + private InvokeArrayPlainArgs $; + + public Builder() { + $ = new InvokeArrayPlainArgs(); + } + + public Builder(InvokeArrayPlainArgs defaults) { + $ = new InvokeArrayPlainArgs(Objects.requireNonNull(defaults)); + } + + public Builder value(String value) { + $.value = value; + return this; + } + + public InvokeArrayPlainArgs build() { + if ($.value == null) { + throw new MissingRequiredPropertyException("InvokeArrayPlainArgs", "value"); + } + return $; + } + } + +} diff --git a/pkg/cmd/pulumi-language-java/testdata/sdks/scalar-returns-21.0.0/src/main/java/com/pulumi/scalarreturns/inputs/InvokeMapArgs.java b/pkg/cmd/pulumi-language-java/testdata/sdks/scalar-returns-21.0.0/src/main/java/com/pulumi/scalarreturns/inputs/InvokeMapArgs.java new file mode 100644 index 00000000000..8988e6c8733 --- /dev/null +++ b/pkg/cmd/pulumi-language-java/testdata/sdks/scalar-returns-21.0.0/src/main/java/com/pulumi/scalarreturns/inputs/InvokeMapArgs.java @@ -0,0 +1,65 @@ +// *** WARNING: this file was generated by pulumi-language-java. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.scalarreturns.inputs; + +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; +import java.lang.String; +import java.util.Objects; + + +public final class InvokeMapArgs extends com.pulumi.resources.InvokeArgs { + + public static final InvokeMapArgs Empty = new InvokeMapArgs(); + + @Import(name="value", required=true) + private Output value; + + public Output value() { + return this.value; + } + + private InvokeMapArgs() {} + + private InvokeMapArgs(InvokeMapArgs $) { + this.value = $.value; + } + + public static Builder builder() { + return new Builder(); + } + public static Builder builder(InvokeMapArgs defaults) { + return new Builder(defaults); + } + + public static final class Builder { + private InvokeMapArgs $; + + public Builder() { + $ = new InvokeMapArgs(); + } + + public Builder(InvokeMapArgs defaults) { + $ = new InvokeMapArgs(Objects.requireNonNull(defaults)); + } + + public Builder value(Output value) { + $.value = value; + return this; + } + + public Builder value(String value) { + return value(Output.of(value)); + } + + public InvokeMapArgs build() { + if ($.value == null) { + throw new MissingRequiredPropertyException("InvokeMapArgs", "value"); + } + return $; + } + } + +} diff --git a/pkg/cmd/pulumi-language-java/testdata/sdks/scalar-returns-21.0.0/src/main/java/com/pulumi/scalarreturns/inputs/InvokeMapPlainArgs.java b/pkg/cmd/pulumi-language-java/testdata/sdks/scalar-returns-21.0.0/src/main/java/com/pulumi/scalarreturns/inputs/InvokeMapPlainArgs.java new file mode 100644 index 00000000000..2105770ceed --- /dev/null +++ b/pkg/cmd/pulumi-language-java/testdata/sdks/scalar-returns-21.0.0/src/main/java/com/pulumi/scalarreturns/inputs/InvokeMapPlainArgs.java @@ -0,0 +1,60 @@ +// *** WARNING: this file was generated by pulumi-language-java. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.scalarreturns.inputs; + +import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; +import java.lang.String; +import java.util.Objects; + + +public final class InvokeMapPlainArgs extends com.pulumi.resources.InvokeArgs { + + public static final InvokeMapPlainArgs Empty = new InvokeMapPlainArgs(); + + @Import(name="value", required=true) + private String value; + + public String value() { + return this.value; + } + + private InvokeMapPlainArgs() {} + + private InvokeMapPlainArgs(InvokeMapPlainArgs $) { + this.value = $.value; + } + + public static Builder builder() { + return new Builder(); + } + public static Builder builder(InvokeMapPlainArgs defaults) { + return new Builder(defaults); + } + + public static final class Builder { + private InvokeMapPlainArgs $; + + public Builder() { + $ = new InvokeMapPlainArgs(); + } + + public Builder(InvokeMapPlainArgs defaults) { + $ = new InvokeMapPlainArgs(Objects.requireNonNull(defaults)); + } + + public Builder value(String value) { + $.value = value; + return this; + } + + public InvokeMapPlainArgs build() { + if ($.value == null) { + throw new MissingRequiredPropertyException("InvokeMapPlainArgs", "value"); + } + return $; + } + } + +} diff --git a/pkg/cmd/pulumi-language-java/testdata/sdks/scalar-returns-21.0.0/src/main/java/com/pulumi/scalarreturns/inputs/InvokeSecretArgs.java b/pkg/cmd/pulumi-language-java/testdata/sdks/scalar-returns-21.0.0/src/main/java/com/pulumi/scalarreturns/inputs/InvokeSecretArgs.java new file mode 100644 index 00000000000..26cd671a275 --- /dev/null +++ b/pkg/cmd/pulumi-language-java/testdata/sdks/scalar-returns-21.0.0/src/main/java/com/pulumi/scalarreturns/inputs/InvokeSecretArgs.java @@ -0,0 +1,65 @@ +// *** WARNING: this file was generated by pulumi-language-java. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.scalarreturns.inputs; + +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; +import java.lang.String; +import java.util.Objects; + + +public final class InvokeSecretArgs extends com.pulumi.resources.InvokeArgs { + + public static final InvokeSecretArgs Empty = new InvokeSecretArgs(); + + @Import(name="value", required=true) + private Output value; + + public Output value() { + return this.value; + } + + private InvokeSecretArgs() {} + + private InvokeSecretArgs(InvokeSecretArgs $) { + this.value = $.value; + } + + public static Builder builder() { + return new Builder(); + } + public static Builder builder(InvokeSecretArgs defaults) { + return new Builder(defaults); + } + + public static final class Builder { + private InvokeSecretArgs $; + + public Builder() { + $ = new InvokeSecretArgs(); + } + + public Builder(InvokeSecretArgs defaults) { + $ = new InvokeSecretArgs(Objects.requireNonNull(defaults)); + } + + public Builder value(Output value) { + $.value = value; + return this; + } + + public Builder value(String value) { + return value(Output.of(value)); + } + + public InvokeSecretArgs build() { + if ($.value == null) { + throw new MissingRequiredPropertyException("InvokeSecretArgs", "value"); + } + return $; + } + } + +} diff --git a/pkg/cmd/pulumi-language-java/testdata/sdks/scalar-returns-21.0.0/src/main/java/com/pulumi/scalarreturns/inputs/InvokeSecretPlainArgs.java b/pkg/cmd/pulumi-language-java/testdata/sdks/scalar-returns-21.0.0/src/main/java/com/pulumi/scalarreturns/inputs/InvokeSecretPlainArgs.java new file mode 100644 index 00000000000..ff440239ca1 --- /dev/null +++ b/pkg/cmd/pulumi-language-java/testdata/sdks/scalar-returns-21.0.0/src/main/java/com/pulumi/scalarreturns/inputs/InvokeSecretPlainArgs.java @@ -0,0 +1,60 @@ +// *** WARNING: this file was generated by pulumi-language-java. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.scalarreturns.inputs; + +import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; +import java.lang.String; +import java.util.Objects; + + +public final class InvokeSecretPlainArgs extends com.pulumi.resources.InvokeArgs { + + public static final InvokeSecretPlainArgs Empty = new InvokeSecretPlainArgs(); + + @Import(name="value", required=true) + private String value; + + public String value() { + return this.value; + } + + private InvokeSecretPlainArgs() {} + + private InvokeSecretPlainArgs(InvokeSecretPlainArgs $) { + this.value = $.value; + } + + public static Builder builder() { + return new Builder(); + } + public static Builder builder(InvokeSecretPlainArgs defaults) { + return new Builder(defaults); + } + + public static final class Builder { + private InvokeSecretPlainArgs $; + + public Builder() { + $ = new InvokeSecretPlainArgs(); + } + + public Builder(InvokeSecretPlainArgs defaults) { + $ = new InvokeSecretPlainArgs(Objects.requireNonNull(defaults)); + } + + public Builder value(String value) { + $.value = value; + return this; + } + + public InvokeSecretPlainArgs build() { + if ($.value == null) { + throw new MissingRequiredPropertyException("InvokeSecretPlainArgs", "value"); + } + return $; + } + } + +} diff --git a/pkg/cmd/pulumi-language-java/testdata/sdks/simple-invoke-10.0.0/src/main/java/com/pulumi/simpleinvoke/SimpleinvokeFunctions.java b/pkg/cmd/pulumi-language-java/testdata/sdks/simple-invoke-10.0.0/src/main/java/com/pulumi/simpleinvoke/SimpleinvokeFunctions.java index cf541f1c289..ba2c2baef13 100644 --- a/pkg/cmd/pulumi-language-java/testdata/sdks/simple-invoke-10.0.0/src/main/java/com/pulumi/simpleinvoke/SimpleinvokeFunctions.java +++ b/pkg/cmd/pulumi-language-java/testdata/sdks/simple-invoke-10.0.0/src/main/java/com/pulumi/simpleinvoke/SimpleinvokeFunctions.java @@ -28,13 +28,16 @@ public static CompletableFuture myInvokePlain(MyInvokePlainArgs return myInvokePlain(args, InvokeOptions.Empty); } public static Output myInvoke(MyInvokeArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("simple-invoke:index:myInvoke", TypeShape.of(MyInvokeResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("simple-invoke:index:myInvoke", TypeShape.of(MyInvokeResult.class), args, Utilities.withVersion(options)); + return result; } public static Output myInvoke(MyInvokeArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("simple-invoke:index:myInvoke", TypeShape.of(MyInvokeResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("simple-invoke:index:myInvoke", TypeShape.of(MyInvokeResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture myInvokePlain(MyInvokePlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("simple-invoke:index:myInvoke", TypeShape.of(MyInvokeResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("simple-invoke:index:myInvoke", TypeShape.of(MyInvokeResult.class), args, Utilities.withVersion(options)); + return result; } public static Output secretInvoke(SecretInvokeArgs args) { return secretInvoke(args, InvokeOptions.Empty); @@ -43,13 +46,16 @@ public static CompletableFuture secretInvokePlain(SecretInvo return secretInvokePlain(args, InvokeOptions.Empty); } public static Output secretInvoke(SecretInvokeArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("simple-invoke:index:secretInvoke", TypeShape.of(SecretInvokeResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("simple-invoke:index:secretInvoke", TypeShape.of(SecretInvokeResult.class), args, Utilities.withVersion(options)); + return result; } public static Output secretInvoke(SecretInvokeArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("simple-invoke:index:secretInvoke", TypeShape.of(SecretInvokeResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("simple-invoke:index:secretInvoke", TypeShape.of(SecretInvokeResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture secretInvokePlain(SecretInvokePlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("simple-invoke:index:secretInvoke", TypeShape.of(SecretInvokeResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("simple-invoke:index:secretInvoke", TypeShape.of(SecretInvokeResult.class), args, Utilities.withVersion(options)); + return result; } public static Output unit() { return unit(UnitArgs.Empty, InvokeOptions.Empty); @@ -64,12 +70,15 @@ public static CompletableFuture unitPlain(UnitPlainArgs args) { return unitPlain(args, InvokeOptions.Empty); } public static Output unit(UnitArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("simple-invoke:index:unit", TypeShape.of(UnitResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("simple-invoke:index:unit", TypeShape.of(UnitResult.class), args, Utilities.withVersion(options)); + return result; } public static Output unit(UnitArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("simple-invoke:index:unit", TypeShape.of(UnitResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("simple-invoke:index:unit", TypeShape.of(UnitResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture unitPlain(UnitPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("simple-invoke:index:unit", TypeShape.of(UnitResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("simple-invoke:index:unit", TypeShape.of(UnitResult.class), args, Utilities.withVersion(options)); + return result; } } diff --git a/pkg/cmd/pulumi-language-java/testdata/sdks/simple-invoke-with-scalar-return-17.0.0/README.md b/pkg/cmd/pulumi-language-java/testdata/sdks/simple-invoke-with-scalar-return-17.0.0/README.md new file mode 100644 index 00000000000..8d1c8b69c3f --- /dev/null +++ b/pkg/cmd/pulumi-language-java/testdata/sdks/simple-invoke-with-scalar-return-17.0.0/README.md @@ -0,0 +1 @@ + diff --git a/pkg/cmd/pulumi-language-java/testdata/sdks/simple-invoke-with-scalar-return-17.0.0/build.gradle b/pkg/cmd/pulumi-language-java/testdata/sdks/simple-invoke-with-scalar-return-17.0.0/build.gradle new file mode 100644 index 00000000000..b975b107d64 --- /dev/null +++ b/pkg/cmd/pulumi-language-java/testdata/sdks/simple-invoke-with-scalar-return-17.0.0/build.gradle @@ -0,0 +1,159 @@ +// *** WARNING: this file was generated by pulumi-java-gen *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +plugins { + id("signing") + id("java-library") + id("maven-publish") + id("io.github.gradle-nexus.publish-plugin") version "2.0.0" +} + +group = "com.pulumi" + +def resolvedVersion = System.getenv("PACKAGE_VERSION") ?: + (project.version == "unspecified" + ? "17.0.0" + : project.version) + +def signingKey = System.getenv("SIGNING_KEY") +def signingPassword = System.getenv("SIGNING_PASSWORD") +def publishRepoURL = System.getenv("PUBLISH_REPO_URL") ?: "https://central.sonatype.com/repository/maven-snapshots/" +def publishStagingURL = System.getenv("PUBLISH_STAGING_URL") ?: "https://ossrh-staging-api.central.sonatype.com/service/local/" +def publishRepoUsername = System.getenv("PUBLISH_REPO_USERNAME") +def publishRepoPassword = System.getenv("PUBLISH_REPO_PASSWORD") + +java { + toolchain { + languageVersion = JavaLanguageVersion.of(11) + } +} + +compileJava { + options.fork = true + options.forkOptions.jvmArgs.addAll(["-Xmx16g"]) + options.encoding = "UTF-8" +} + +repositories { + maven { + url("REPOSITORY") + } + mavenLocal() + maven { // The google mirror is less flaky than mavenCentral() + url("https://maven-central.storage-download.googleapis.com/maven2/") + } + mavenCentral() +} + +dependencies { + implementation("com.google.code.findbugs:jsr305:3.0.2") + implementation("com.google.code.gson:gson:2.8.9") + implementation("com.pulumi:pulumi:CORE.VERSION") +} + +task sourcesJar(type: Jar) { + from sourceSets.main.allJava + archiveClassifier.set('sources') +} + +task javadocJar(type: Jar) { + from javadoc + archiveClassifier.set('javadoc') + zip64 = true +} + +def genPulumiResources = tasks.register('genPulumiResources') { + doLast { + def resourcesDir = sourceSets.main.output.resourcesDir + def subDir = project.name.replace(".", "/") + def outDir = file("$resourcesDir/$subDir") + outDir.mkdirs() + new File(outDir, "version.txt").text = resolvedVersion + def builder = new groovy.json.JsonBuilder() + builder { + resource true + name "simple-invoke-with-scalar-return" + version resolvedVersion + } + def infoJson = builder.toPrettyString() + new File(outDir, "plugin.json").text = infoJson + } +} + +jar.configure { + dependsOn genPulumiResources +} + +publishing { + publications { + mainPublication(MavenPublication) { + groupId = "com.pulumi" + artifactId = "simple-invoke-with-scalar-return" + version = resolvedVersion + from components.java + artifact sourcesJar + artifact javadocJar + + pom { + inceptionYear = "" + name = "" + packaging = "jar" + description = " " + + url = "https://example.com" + + scm { + connection = "https://example.com" + developerConnection = "https://example.com" + url = "https://example.com" + } + + licenses { + license { + name = "" + url = "" + } + } + + developers { + developer { + id = "" + name = "" + email = "" + } + } + } + } + } +} + +javadoc { + if (JavaVersion.current().isJava9Compatible()) { + options.addBooleanOption('html5', true) + } + options.jFlags("-Xmx8g", "-Xms512m") +} + +jar { + zip64 = true +} + +if (publishRepoUsername) { + nexusPublishing { + repositories { + sonatype { + nexusUrl.set(uri(publishStagingURL)) + snapshotRepositoryUrl.set(uri(publishRepoURL)) + username = publishRepoUsername + password = publishRepoPassword + } + } + } +} + +if (signingKey) { + signing { + useInMemoryPgpKeys(signingKey, signingPassword) + sign publishing.publications.mainPublication + } +} diff --git a/pkg/cmd/pulumi-language-java/testdata/sdks/simple-invoke-with-scalar-return-17.0.0/settings.gradle b/pkg/cmd/pulumi-language-java/testdata/sdks/simple-invoke-with-scalar-return-17.0.0/settings.gradle new file mode 100644 index 00000000000..05491965ca7 --- /dev/null +++ b/pkg/cmd/pulumi-language-java/testdata/sdks/simple-invoke-with-scalar-return-17.0.0/settings.gradle @@ -0,0 +1,14 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +pluginManagement { + repositories { + maven { // The google mirror is less flaky than mavenCentral() + url("https://maven-central.storage-download.googleapis.com/maven2/") + } + gradlePluginPortal() + } +} + +rootProject.name = "com.pulumi.simple-invoke-with-scalar-return" +include("lib") diff --git a/pkg/cmd/pulumi-language-java/testdata/sdks/simple-invoke-with-scalar-return-17.0.0/src/main/java/com/pulumi/simpleinvokewithscalarreturn/Provider.java b/pkg/cmd/pulumi-language-java/testdata/sdks/simple-invoke-with-scalar-return-17.0.0/src/main/java/com/pulumi/simpleinvokewithscalarreturn/Provider.java new file mode 100644 index 00000000000..0f69f0be831 --- /dev/null +++ b/pkg/cmd/pulumi-language-java/testdata/sdks/simple-invoke-with-scalar-return-17.0.0/src/main/java/com/pulumi/simpleinvokewithscalarreturn/Provider.java @@ -0,0 +1,54 @@ +// *** WARNING: this file was generated by pulumi-language-java. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.simpleinvokewithscalarreturn; + +import com.pulumi.core.Output; +import com.pulumi.core.annotations.ResourceType; +import com.pulumi.core.internal.Codegen; +import com.pulumi.simpleinvokewithscalarreturn.ProviderArgs; +import com.pulumi.simpleinvokewithscalarreturn.Utilities; +import javax.annotation.Nullable; + +@ResourceType(type="pulumi:providers:simple-invoke-with-scalar-return") +public class Provider extends com.pulumi.resources.ProviderResource { + /** + * + * @param name The _unique_ name of the resulting resource. + */ + public Provider(java.lang.String name) { + this(name, ProviderArgs.Empty); + } + /** + * + * @param name The _unique_ name of the resulting resource. + * @param args The arguments to use to populate this resource's properties. + */ + public Provider(java.lang.String name, @Nullable ProviderArgs args) { + this(name, args, null); + } + /** + * + * @param name The _unique_ name of the resulting resource. + * @param args The arguments to use to populate this resource's properties. + * @param options A bag of options that control this resource's behavior. + */ + public Provider(java.lang.String name, @Nullable ProviderArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("simple-invoke-with-scalar-return", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); + } + + private static ProviderArgs makeArgs(@Nullable ProviderArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? ProviderArgs.Empty : args; + } + + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() + .version(Utilities.getVersion()) + .build(); + return com.pulumi.resources.CustomResourceOptions.merge(defaultOptions, options, id); + } + +} diff --git a/pkg/cmd/pulumi-language-java/testdata/sdks/simple-invoke-with-scalar-return-17.0.0/src/main/java/com/pulumi/simpleinvokewithscalarreturn/ProviderArgs.java b/pkg/cmd/pulumi-language-java/testdata/sdks/simple-invoke-with-scalar-return-17.0.0/src/main/java/com/pulumi/simpleinvokewithscalarreturn/ProviderArgs.java new file mode 100644 index 00000000000..dd0a134aafa --- /dev/null +++ b/pkg/cmd/pulumi-language-java/testdata/sdks/simple-invoke-with-scalar-return-17.0.0/src/main/java/com/pulumi/simpleinvokewithscalarreturn/ProviderArgs.java @@ -0,0 +1,28 @@ +// *** WARNING: this file was generated by pulumi-language-java. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.simpleinvokewithscalarreturn; + + + + +public final class ProviderArgs extends com.pulumi.resources.ResourceArgs { + + public static final ProviderArgs Empty = new ProviderArgs(); + + public static Builder builder() { + return new Builder(); + } + + public static final class Builder { + private ProviderArgs $; + + public Builder() { + $ = new ProviderArgs(); + } + public ProviderArgs build() { + return $; + } + } + +} diff --git a/pkg/cmd/pulumi-language-java/testdata/sdks/simple-invoke-with-scalar-return-17.0.0/src/main/java/com/pulumi/simpleinvokewithscalarreturn/SimpleinvokewithscalarreturnFunctions.java b/pkg/cmd/pulumi-language-java/testdata/sdks/simple-invoke-with-scalar-return-17.0.0/src/main/java/com/pulumi/simpleinvokewithscalarreturn/SimpleinvokewithscalarreturnFunctions.java new file mode 100644 index 00000000000..98151ac945b --- /dev/null +++ b/pkg/cmd/pulumi-language-java/testdata/sdks/simple-invoke-with-scalar-return-17.0.0/src/main/java/com/pulumi/simpleinvokewithscalarreturn/SimpleinvokewithscalarreturnFunctions.java @@ -0,0 +1,37 @@ +// *** WARNING: this file was generated by pulumi-language-java. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.simpleinvokewithscalarreturn; + +import com.pulumi.core.Output; +import com.pulumi.core.TypeShape; +import com.pulumi.deployment.Deployment; +import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; +import com.pulumi.simpleinvokewithscalarreturn.Utilities; +import com.pulumi.simpleinvokewithscalarreturn.inputs.MyInvokeScalarArgs; +import com.pulumi.simpleinvokewithscalarreturn.inputs.MyInvokeScalarPlainArgs; +import java.lang.Boolean; +import java.lang.String; +import java.util.concurrent.CompletableFuture; + +public final class SimpleinvokewithscalarreturnFunctions { + public static Output myInvokeScalar(MyInvokeScalarArgs args) { + return myInvokeScalar(args, InvokeOptions.Empty); + } + public static CompletableFuture myInvokeScalarPlain(MyInvokeScalarPlainArgs args) { + return myInvokeScalarPlain(args, InvokeOptions.Empty); + } + public static Output myInvokeScalar(MyInvokeScalarArgs args, InvokeOptions options) { + var result = Deployment.getInstance().invoke("simple-invoke-with-scalar-return:index:myInvokeScalar", TypeShape.map(String.class, Boolean.class), args, Utilities.withVersion(options)); + return result.applyValue(m -> (Boolean)(m.values().toArray()[0])); + } + public static Output myInvokeScalar(MyInvokeScalarArgs args, InvokeOutputOptions options) { + var result = Deployment.getInstance().invoke("simple-invoke-with-scalar-return:index:myInvokeScalar", TypeShape.map(String.class, Boolean.class), args, Utilities.withVersion(options)); + return result.applyValue(m -> (Boolean)(m.values().toArray()[0])); + } + public static CompletableFuture myInvokeScalarPlain(MyInvokeScalarPlainArgs args, InvokeOptions options) { + var result = Deployment.getInstance().invokeAsync("simple-invoke-with-scalar-return:index:myInvokeScalar", TypeShape.map(String.class, Boolean.class), args, Utilities.withVersion(options)); + return result.thenApply(m -> (Boolean)(m.values().toArray()[0])); + } +} diff --git a/pkg/cmd/pulumi-language-java/testdata/sdks/simple-invoke-with-scalar-return-17.0.0/src/main/java/com/pulumi/simpleinvokewithscalarreturn/StringResource.java b/pkg/cmd/pulumi-language-java/testdata/sdks/simple-invoke-with-scalar-return-17.0.0/src/main/java/com/pulumi/simpleinvokewithscalarreturn/StringResource.java new file mode 100644 index 00000000000..781c03c5107 --- /dev/null +++ b/pkg/cmd/pulumi-language-java/testdata/sdks/simple-invoke-with-scalar-return-17.0.0/src/main/java/com/pulumi/simpleinvokewithscalarreturn/StringResource.java @@ -0,0 +1,78 @@ +// *** WARNING: this file was generated by pulumi-language-java. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.simpleinvokewithscalarreturn; + +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Export; +import com.pulumi.core.annotations.ResourceType; +import com.pulumi.core.internal.Codegen; +import com.pulumi.simpleinvokewithscalarreturn.StringResourceArgs; +import com.pulumi.simpleinvokewithscalarreturn.Utilities; +import java.lang.String; +import javax.annotation.Nullable; + +@ResourceType(type="simple-invoke-with-scalar-return:index:StringResource") +public class StringResource extends com.pulumi.resources.CustomResource { + @Export(name="text", refs={String.class}, tree="[0]") + private Output text; + + public Output text() { + return this.text; + } + + /** + * + * @param name The _unique_ name of the resulting resource. + */ + public StringResource(java.lang.String name) { + this(name, StringResourceArgs.Empty); + } + /** + * + * @param name The _unique_ name of the resulting resource. + * @param args The arguments to use to populate this resource's properties. + */ + public StringResource(java.lang.String name, StringResourceArgs args) { + this(name, args, null); + } + /** + * + * @param name The _unique_ name of the resulting resource. + * @param args The arguments to use to populate this resource's properties. + * @param options A bag of options that control this resource's behavior. + */ + public StringResource(java.lang.String name, StringResourceArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("simple-invoke-with-scalar-return:index:StringResource", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); + } + + private StringResource(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("simple-invoke-with-scalar-return:index:StringResource", name, null, makeResourceOptions(options, id), false); + } + + private static StringResourceArgs makeArgs(StringResourceArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? StringResourceArgs.Empty : args; + } + + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() + .version(Utilities.getVersion()) + .build(); + return com.pulumi.resources.CustomResourceOptions.merge(defaultOptions, options, id); + } + + /** + * Get an existing Host resource's state with the given name, ID, and optional extra + * properties used to qualify the lookup. + * + * @param name The _unique_ name of the resulting resource. + * @param id The _unique_ provider ID of the resource to lookup. + * @param options Optional settings to control the behavior of the CustomResource. + */ + public static StringResource get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { + return new StringResource(name, id, options); + } +} diff --git a/pkg/cmd/pulumi-language-java/testdata/sdks/simple-invoke-with-scalar-return-17.0.0/src/main/java/com/pulumi/simpleinvokewithscalarreturn/StringResourceArgs.java b/pkg/cmd/pulumi-language-java/testdata/sdks/simple-invoke-with-scalar-return-17.0.0/src/main/java/com/pulumi/simpleinvokewithscalarreturn/StringResourceArgs.java new file mode 100644 index 00000000000..8dc3fe47e69 --- /dev/null +++ b/pkg/cmd/pulumi-language-java/testdata/sdks/simple-invoke-with-scalar-return-17.0.0/src/main/java/com/pulumi/simpleinvokewithscalarreturn/StringResourceArgs.java @@ -0,0 +1,65 @@ +// *** WARNING: this file was generated by pulumi-language-java. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.simpleinvokewithscalarreturn; + +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; +import java.lang.String; +import java.util.Objects; + + +public final class StringResourceArgs extends com.pulumi.resources.ResourceArgs { + + public static final StringResourceArgs Empty = new StringResourceArgs(); + + @Import(name="text", required=true) + private Output text; + + public Output text() { + return this.text; + } + + private StringResourceArgs() {} + + private StringResourceArgs(StringResourceArgs $) { + this.text = $.text; + } + + public static Builder builder() { + return new Builder(); + } + public static Builder builder(StringResourceArgs defaults) { + return new Builder(defaults); + } + + public static final class Builder { + private StringResourceArgs $; + + public Builder() { + $ = new StringResourceArgs(); + } + + public Builder(StringResourceArgs defaults) { + $ = new StringResourceArgs(Objects.requireNonNull(defaults)); + } + + public Builder text(Output text) { + $.text = text; + return this; + } + + public Builder text(String text) { + return text(Output.of(text)); + } + + public StringResourceArgs build() { + if ($.text == null) { + throw new MissingRequiredPropertyException("StringResourceArgs", "text"); + } + return $; + } + } + +} diff --git a/pkg/cmd/pulumi-language-java/testdata/sdks/simple-invoke-with-scalar-return-17.0.0/src/main/java/com/pulumi/simpleinvokewithscalarreturn/Utilities.java b/pkg/cmd/pulumi-language-java/testdata/sdks/simple-invoke-with-scalar-return-17.0.0/src/main/java/com/pulumi/simpleinvokewithscalarreturn/Utilities.java new file mode 100644 index 00000000000..ddd203ab4c6 --- /dev/null +++ b/pkg/cmd/pulumi-language-java/testdata/sdks/simple-invoke-with-scalar-return-17.0.0/src/main/java/com/pulumi/simpleinvokewithscalarreturn/Utilities.java @@ -0,0 +1,102 @@ +// *** WARNING: this file was generated by pulumi-language-java. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.simpleinvokewithscalarreturn; + + + + + +import java.io.BufferedReader; +import java.io.InputStreamReader; +import java.util.Optional; +import java.util.stream.Collectors; +import javax.annotation.Nullable; +import com.pulumi.core.internal.Environment; +import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; + +public class Utilities { + + public static Optional getEnv(java.lang.String... names) { + for (var n : names) { + var value = Environment.getEnvironmentVariable(n); + if (value.isValue()) { + return Optional.of(value.value()); + } + } + return Optional.empty(); + } + + public static Optional getEnvBoolean(java.lang.String... names) { + for (var n : names) { + var value = Environment.getBooleanEnvironmentVariable(n); + if (value.isValue()) { + return Optional.of(value.value()); + } + } + return Optional.empty(); + } + + public static Optional getEnvInteger(java.lang.String... names) { + for (var n : names) { + var value = Environment.getIntegerEnvironmentVariable(n); + if (value.isValue()) { + return Optional.of(value.value()); + } + } + return Optional.empty(); + } + + public static Optional getEnvDouble(java.lang.String... names) { + for (var n : names) { + var value = Environment.getDoubleEnvironmentVariable(n); + if (value.isValue()) { + return Optional.of(value.value()); + } + } + return Optional.empty(); + } + + public static InvokeOptions withVersion(@Nullable InvokeOptions options) { + if (options != null && options.getVersion().isPresent()) { + return options; + } + return new InvokeOptions( + options == null ? null : options.getParent().orElse(null), + options == null ? null : options.getProvider().orElse(null), + getVersion() + ); + } + + public static InvokeOutputOptions withVersion(@Nullable InvokeOutputOptions options) { + if (options != null && options.getVersion().isPresent()) { + return options; + } + return new InvokeOutputOptions( + options == null ? null : options.getParent().orElse(null), + options == null ? null : options.getProvider().orElse(null), + getVersion(), + options == null ? null : options.getDependsOn() + ); + } + + private static final java.lang.String version; + public static java.lang.String getVersion() { + return version; + } + + static { + var resourceName = "com/pulumi/simple-invoke-with-scalar-return/version.txt"; + var versionFile = Utilities.class.getClassLoader().getResourceAsStream(resourceName); + if (versionFile == null) { + throw new IllegalStateException( + java.lang.String.format("expected resource '%s' on Classpath, not found", resourceName) + ); + } + version = new BufferedReader(new InputStreamReader(versionFile)) + .lines() + .collect(Collectors.joining("\n")) + .trim(); + } +} diff --git a/pkg/cmd/pulumi-language-java/testdata/sdks/simple-invoke-with-scalar-return-17.0.0/src/main/java/com/pulumi/simpleinvokewithscalarreturn/inputs/MyInvokeScalarArgs.java b/pkg/cmd/pulumi-language-java/testdata/sdks/simple-invoke-with-scalar-return-17.0.0/src/main/java/com/pulumi/simpleinvokewithscalarreturn/inputs/MyInvokeScalarArgs.java new file mode 100644 index 00000000000..187ec2ee9b3 --- /dev/null +++ b/pkg/cmd/pulumi-language-java/testdata/sdks/simple-invoke-with-scalar-return-17.0.0/src/main/java/com/pulumi/simpleinvokewithscalarreturn/inputs/MyInvokeScalarArgs.java @@ -0,0 +1,65 @@ +// *** WARNING: this file was generated by pulumi-language-java. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.simpleinvokewithscalarreturn.inputs; + +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; +import java.lang.String; +import java.util.Objects; + + +public final class MyInvokeScalarArgs extends com.pulumi.resources.InvokeArgs { + + public static final MyInvokeScalarArgs Empty = new MyInvokeScalarArgs(); + + @Import(name="value", required=true) + private Output value; + + public Output value() { + return this.value; + } + + private MyInvokeScalarArgs() {} + + private MyInvokeScalarArgs(MyInvokeScalarArgs $) { + this.value = $.value; + } + + public static Builder builder() { + return new Builder(); + } + public static Builder builder(MyInvokeScalarArgs defaults) { + return new Builder(defaults); + } + + public static final class Builder { + private MyInvokeScalarArgs $; + + public Builder() { + $ = new MyInvokeScalarArgs(); + } + + public Builder(MyInvokeScalarArgs defaults) { + $ = new MyInvokeScalarArgs(Objects.requireNonNull(defaults)); + } + + public Builder value(Output value) { + $.value = value; + return this; + } + + public Builder value(String value) { + return value(Output.of(value)); + } + + public MyInvokeScalarArgs build() { + if ($.value == null) { + throw new MissingRequiredPropertyException("MyInvokeScalarArgs", "value"); + } + return $; + } + } + +} diff --git a/pkg/cmd/pulumi-language-java/testdata/sdks/simple-invoke-with-scalar-return-17.0.0/src/main/java/com/pulumi/simpleinvokewithscalarreturn/inputs/MyInvokeScalarPlainArgs.java b/pkg/cmd/pulumi-language-java/testdata/sdks/simple-invoke-with-scalar-return-17.0.0/src/main/java/com/pulumi/simpleinvokewithscalarreturn/inputs/MyInvokeScalarPlainArgs.java new file mode 100644 index 00000000000..f295013d62a --- /dev/null +++ b/pkg/cmd/pulumi-language-java/testdata/sdks/simple-invoke-with-scalar-return-17.0.0/src/main/java/com/pulumi/simpleinvokewithscalarreturn/inputs/MyInvokeScalarPlainArgs.java @@ -0,0 +1,60 @@ +// *** WARNING: this file was generated by pulumi-language-java. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.simpleinvokewithscalarreturn.inputs; + +import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; +import java.lang.String; +import java.util.Objects; + + +public final class MyInvokeScalarPlainArgs extends com.pulumi.resources.InvokeArgs { + + public static final MyInvokeScalarPlainArgs Empty = new MyInvokeScalarPlainArgs(); + + @Import(name="value", required=true) + private String value; + + public String value() { + return this.value; + } + + private MyInvokeScalarPlainArgs() {} + + private MyInvokeScalarPlainArgs(MyInvokeScalarPlainArgs $) { + this.value = $.value; + } + + public static Builder builder() { + return new Builder(); + } + public static Builder builder(MyInvokeScalarPlainArgs defaults) { + return new Builder(defaults); + } + + public static final class Builder { + private MyInvokeScalarPlainArgs $; + + public Builder() { + $ = new MyInvokeScalarPlainArgs(); + } + + public Builder(MyInvokeScalarPlainArgs defaults) { + $ = new MyInvokeScalarPlainArgs(Objects.requireNonNull(defaults)); + } + + public Builder value(String value) { + $.value = value; + return this; + } + + public MyInvokeScalarPlainArgs build() { + if ($.value == null) { + throw new MissingRequiredPropertyException("MyInvokeScalarPlainArgs", "value"); + } + return $; + } + } + +} diff --git a/pkg/codegen/java/gen.go b/pkg/codegen/java/gen.go index f2f51274929..e21e26cc154 100644 --- a/pkg/codegen/java/gen.go +++ b/pkg/codegen/java/gen.go @@ -1341,10 +1341,26 @@ func (mod *modContext) genFunctions(ctx *classFileContext, addClass addClassMeth var returnType string if fun.Outputs != nil { returnType = ctx.imports.Ref(resultFQN) + } else if fun.ReturnType != nil { + shape := mod.typeString( + ctx, fun.ReturnType, + outputsQualifier, + true, // is input + false, // requires initializers + false, // outer optional + false, // inputless overload + ) + returnType = shape.ToCode(ctx.imports) } else { returnType = ctx.imports.Ref(names.Void) } + scalarReturn := false + if fun.ReturnType != nil { + _, isObjectType := fun.ReturnType.(*schema.ObjectType) + scalarReturn = !isObjectType + } + // default method name returns Output methodName := tokenToFunctionName(fun.Token) @@ -1393,24 +1409,34 @@ func (mod *modContext) genFunctions(ctx *classFileContext, addClass addClassMeth plainMethodName, invokeOptions) fprintf(w, " }\n") - // Output version: add full invoke with InvokeOptions - printCommentFunction(ctx, fun, indent) - fprintf(w, " public static %s<%s> %s(%s args, %s options) {\n", - ctx.ref(names.Output), returnType, methodName, argsType, invokeOptions) - fprintf(w, - " return %s.getInstance().invoke(\"%s\", %s.of(%s.class), args, %s.withVersion(options)", - ctx.ref(names.Deployment), fun.Token, ctx.ref(names.TypeShape), returnType, mod.utilitiesRef(ctx)) + typeShape := fmt.Sprintf("%s.of(%s.class)", ctx.ref(names.TypeShape), returnType) + if scalarReturn { + typeShape = fmt.Sprintf("%s.map(%s.class, %s.class)", ctx.ref(names.TypeShape), ctx.ref(names.String), returnType) + } pkg, err := mod.pkg.Definition() if err != nil { return err } + // Output version: add full invoke with InvokeOptions + printCommentFunction(ctx, fun, indent) + fprintf(w, " public static %s<%s> %s(%s args, %s options) {\n", + ctx.ref(names.Output), returnType, methodName, argsType, invokeOptions) + fprintf(w, + " var result = %s.getInstance().invoke(\"%s\", %s, args, %s.withVersion(options)", + ctx.ref(names.Deployment), fun.Token, typeShape, mod.utilitiesRef(ctx)) if pkg.Parameterization != nil { fprintf(w, ", %s.getPackageRef()", mod.utilitiesRef(ctx)) } - fprintf(w, ");\n") + + if scalarReturn { + fprintf(w, " return result.applyValue(m -> (%s)(m.values().toArray()[0]));\n", returnType) + } else { + fprintf(w, " return result;\n") + } + fprintf(w, " }\n") // Output version: add full invoke with InvokeOutputOptions @@ -1419,14 +1445,19 @@ func (mod *modContext) genFunctions(ctx *classFileContext, addClass addClassMeth fprintf(w, " public static %s<%s> %s(%s args, %s options) {\n", ctx.ref(names.Output), returnType, methodName, argsType, invokeOutputOptions) fprintf(w, - " return %s.getInstance().invoke(\"%s\", %s.of(%s.class), args, %s.withVersion(options)", - ctx.ref(names.Deployment), fun.Token, ctx.ref(names.TypeShape), returnType, mod.utilitiesRef(ctx)) - + " var result = %s.getInstance().invoke(\"%s\", %s, args, %s.withVersion(options)", + ctx.ref(names.Deployment), fun.Token, typeShape, mod.utilitiesRef(ctx)) if pkg.Parameterization != nil { fprintf(w, ", %s.getPackageRef()", mod.utilitiesRef(ctx)) } - fprintf(w, ");\n") + + if scalarReturn { + fprintf(w, " return result.applyValue(m -> (%s)(m.values().toArray()[0]));\n", returnType) + } else { + fprintf(w, " return result;\n") + } + fprintf(w, " }\n") // CompletableFuture version: add full invoke @@ -1435,14 +1466,19 @@ func (mod *modContext) genFunctions(ctx *classFileContext, addClass addClassMeth fprintf(w, " public static %s<%s> %s(%s args, %s options) {\n", ctx.ref(names.CompletableFuture), returnType, plainMethodName, plainArgsType, invokeOptions) fprintf(w, - " return %s.getInstance().invokeAsync(\"%s\", %s.of(%s.class), args, %s.withVersion(options)", - ctx.ref(names.Deployment), fun.Token, ctx.ref(names.TypeShape), returnType, mod.utilitiesRef(ctx)) - + " var result = %s.getInstance().invokeAsync(\"%s\", %s, args, %s.withVersion(options)", + ctx.ref(names.Deployment), fun.Token, typeShape, mod.utilitiesRef(ctx)) if pkg.Parameterization != nil { fprintf(w, ", %s.getPackageRef()", mod.utilitiesRef(ctx)) } - fprintf(w, ");\n") + + if scalarReturn { + fprintf(w, " return result.thenApply(m -> (%s)(m.values().toArray()[0]));\n", returnType) + } else { + fprintf(w, " return result;\n") + } + fprintf(w, " }\n") // Emit the args and result types, if any. diff --git a/pkg/codegen/testing/test/testdata/akamai/java/src/main/java/com/pulumi/akamai/AkamaiFunctions.java b/pkg/codegen/testing/test/testdata/akamai/java/src/main/java/com/pulumi/akamai/AkamaiFunctions.java index c8a25fa87a8..d65e64f7134 100644 --- a/pkg/codegen/testing/test/testdata/akamai/java/src/main/java/com/pulumi/akamai/AkamaiFunctions.java +++ b/pkg/codegen/testing/test/testdata/akamai/java/src/main/java/com/pulumi/akamai/AkamaiFunctions.java @@ -432,13 +432,16 @@ public static CompletableFuture return getAppSecAdvancedSettingsEvasivePathMatchPlain(args, InvokeOptions.Empty); } public static Output getAppSecAdvancedSettingsEvasivePathMatch(GetAppSecAdvancedSettingsEvasivePathMatchArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getAppSecAdvancedSettingsEvasivePathMatch:getAppSecAdvancedSettingsEvasivePathMatch", TypeShape.of(GetAppSecAdvancedSettingsEvasivePathMatchResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getAppSecAdvancedSettingsEvasivePathMatch:getAppSecAdvancedSettingsEvasivePathMatch", TypeShape.of(GetAppSecAdvancedSettingsEvasivePathMatchResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getAppSecAdvancedSettingsEvasivePathMatch(GetAppSecAdvancedSettingsEvasivePathMatchArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getAppSecAdvancedSettingsEvasivePathMatch:getAppSecAdvancedSettingsEvasivePathMatch", TypeShape.of(GetAppSecAdvancedSettingsEvasivePathMatchResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getAppSecAdvancedSettingsEvasivePathMatch:getAppSecAdvancedSettingsEvasivePathMatch", TypeShape.of(GetAppSecAdvancedSettingsEvasivePathMatchResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getAppSecAdvancedSettingsEvasivePathMatchPlain(GetAppSecAdvancedSettingsEvasivePathMatchPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getAppSecAdvancedSettingsEvasivePathMatch:getAppSecAdvancedSettingsEvasivePathMatch", TypeShape.of(GetAppSecAdvancedSettingsEvasivePathMatchResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getAppSecAdvancedSettingsEvasivePathMatch:getAppSecAdvancedSettingsEvasivePathMatch", TypeShape.of(GetAppSecAdvancedSettingsEvasivePathMatchResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getAppSecAdvancedSettingsLogging(GetAppSecAdvancedSettingsLoggingArgs args) { return getAppSecAdvancedSettingsLogging(args, InvokeOptions.Empty); @@ -447,13 +450,16 @@ public static CompletableFuture getAppSe return getAppSecAdvancedSettingsLoggingPlain(args, InvokeOptions.Empty); } public static Output getAppSecAdvancedSettingsLogging(GetAppSecAdvancedSettingsLoggingArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getAppSecAdvancedSettingsLogging:getAppSecAdvancedSettingsLogging", TypeShape.of(GetAppSecAdvancedSettingsLoggingResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getAppSecAdvancedSettingsLogging:getAppSecAdvancedSettingsLogging", TypeShape.of(GetAppSecAdvancedSettingsLoggingResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getAppSecAdvancedSettingsLogging(GetAppSecAdvancedSettingsLoggingArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getAppSecAdvancedSettingsLogging:getAppSecAdvancedSettingsLogging", TypeShape.of(GetAppSecAdvancedSettingsLoggingResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getAppSecAdvancedSettingsLogging:getAppSecAdvancedSettingsLogging", TypeShape.of(GetAppSecAdvancedSettingsLoggingResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getAppSecAdvancedSettingsLoggingPlain(GetAppSecAdvancedSettingsLoggingPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getAppSecAdvancedSettingsLogging:getAppSecAdvancedSettingsLogging", TypeShape.of(GetAppSecAdvancedSettingsLoggingResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getAppSecAdvancedSettingsLogging:getAppSecAdvancedSettingsLogging", TypeShape.of(GetAppSecAdvancedSettingsLoggingResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getAppSecAdvancedSettingsPragmaHeader(GetAppSecAdvancedSettingsPragmaHeaderArgs args) { return getAppSecAdvancedSettingsPragmaHeader(args, InvokeOptions.Empty); @@ -462,13 +468,16 @@ public static CompletableFuture get return getAppSecAdvancedSettingsPragmaHeaderPlain(args, InvokeOptions.Empty); } public static Output getAppSecAdvancedSettingsPragmaHeader(GetAppSecAdvancedSettingsPragmaHeaderArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getAppSecAdvancedSettingsPragmaHeader:getAppSecAdvancedSettingsPragmaHeader", TypeShape.of(GetAppSecAdvancedSettingsPragmaHeaderResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getAppSecAdvancedSettingsPragmaHeader:getAppSecAdvancedSettingsPragmaHeader", TypeShape.of(GetAppSecAdvancedSettingsPragmaHeaderResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getAppSecAdvancedSettingsPragmaHeader(GetAppSecAdvancedSettingsPragmaHeaderArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getAppSecAdvancedSettingsPragmaHeader:getAppSecAdvancedSettingsPragmaHeader", TypeShape.of(GetAppSecAdvancedSettingsPragmaHeaderResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getAppSecAdvancedSettingsPragmaHeader:getAppSecAdvancedSettingsPragmaHeader", TypeShape.of(GetAppSecAdvancedSettingsPragmaHeaderResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getAppSecAdvancedSettingsPragmaHeaderPlain(GetAppSecAdvancedSettingsPragmaHeaderPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getAppSecAdvancedSettingsPragmaHeader:getAppSecAdvancedSettingsPragmaHeader", TypeShape.of(GetAppSecAdvancedSettingsPragmaHeaderResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getAppSecAdvancedSettingsPragmaHeader:getAppSecAdvancedSettingsPragmaHeader", TypeShape.of(GetAppSecAdvancedSettingsPragmaHeaderResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getAppSecAdvancedSettingsPrefetch(GetAppSecAdvancedSettingsPrefetchArgs args) { return getAppSecAdvancedSettingsPrefetch(args, InvokeOptions.Empty); @@ -477,13 +486,16 @@ public static CompletableFuture getAppS return getAppSecAdvancedSettingsPrefetchPlain(args, InvokeOptions.Empty); } public static Output getAppSecAdvancedSettingsPrefetch(GetAppSecAdvancedSettingsPrefetchArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getAppSecAdvancedSettingsPrefetch:getAppSecAdvancedSettingsPrefetch", TypeShape.of(GetAppSecAdvancedSettingsPrefetchResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getAppSecAdvancedSettingsPrefetch:getAppSecAdvancedSettingsPrefetch", TypeShape.of(GetAppSecAdvancedSettingsPrefetchResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getAppSecAdvancedSettingsPrefetch(GetAppSecAdvancedSettingsPrefetchArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getAppSecAdvancedSettingsPrefetch:getAppSecAdvancedSettingsPrefetch", TypeShape.of(GetAppSecAdvancedSettingsPrefetchResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getAppSecAdvancedSettingsPrefetch:getAppSecAdvancedSettingsPrefetch", TypeShape.of(GetAppSecAdvancedSettingsPrefetchResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getAppSecAdvancedSettingsPrefetchPlain(GetAppSecAdvancedSettingsPrefetchPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getAppSecAdvancedSettingsPrefetch:getAppSecAdvancedSettingsPrefetch", TypeShape.of(GetAppSecAdvancedSettingsPrefetchResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getAppSecAdvancedSettingsPrefetch:getAppSecAdvancedSettingsPrefetch", TypeShape.of(GetAppSecAdvancedSettingsPrefetchResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getAppSecApiEndpoints(GetAppSecApiEndpointsArgs args) { return getAppSecApiEndpoints(args, InvokeOptions.Empty); @@ -492,13 +504,16 @@ public static CompletableFuture getAppSecApiEndpoin return getAppSecApiEndpointsPlain(args, InvokeOptions.Empty); } public static Output getAppSecApiEndpoints(GetAppSecApiEndpointsArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getAppSecApiEndpoints:getAppSecApiEndpoints", TypeShape.of(GetAppSecApiEndpointsResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getAppSecApiEndpoints:getAppSecApiEndpoints", TypeShape.of(GetAppSecApiEndpointsResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getAppSecApiEndpoints(GetAppSecApiEndpointsArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getAppSecApiEndpoints:getAppSecApiEndpoints", TypeShape.of(GetAppSecApiEndpointsResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getAppSecApiEndpoints:getAppSecApiEndpoints", TypeShape.of(GetAppSecApiEndpointsResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getAppSecApiEndpointsPlain(GetAppSecApiEndpointsPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getAppSecApiEndpoints:getAppSecApiEndpoints", TypeShape.of(GetAppSecApiEndpointsResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getAppSecApiEndpoints:getAppSecApiEndpoints", TypeShape.of(GetAppSecApiEndpointsResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getAppSecApiRequestConstraints(GetAppSecApiRequestConstraintsArgs args) { return getAppSecApiRequestConstraints(args, InvokeOptions.Empty); @@ -507,13 +522,16 @@ public static CompletableFuture getAppSecA return getAppSecApiRequestConstraintsPlain(args, InvokeOptions.Empty); } public static Output getAppSecApiRequestConstraints(GetAppSecApiRequestConstraintsArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getAppSecApiRequestConstraints:getAppSecApiRequestConstraints", TypeShape.of(GetAppSecApiRequestConstraintsResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getAppSecApiRequestConstraints:getAppSecApiRequestConstraints", TypeShape.of(GetAppSecApiRequestConstraintsResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getAppSecApiRequestConstraints(GetAppSecApiRequestConstraintsArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getAppSecApiRequestConstraints:getAppSecApiRequestConstraints", TypeShape.of(GetAppSecApiRequestConstraintsResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getAppSecApiRequestConstraints:getAppSecApiRequestConstraints", TypeShape.of(GetAppSecApiRequestConstraintsResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getAppSecApiRequestConstraintsPlain(GetAppSecApiRequestConstraintsPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getAppSecApiRequestConstraints:getAppSecApiRequestConstraints", TypeShape.of(GetAppSecApiRequestConstraintsResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getAppSecApiRequestConstraints:getAppSecApiRequestConstraints", TypeShape.of(GetAppSecApiRequestConstraintsResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getAppSecAttackGroups(GetAppSecAttackGroupsArgs args) { return getAppSecAttackGroups(args, InvokeOptions.Empty); @@ -522,13 +540,16 @@ public static CompletableFuture getAppSecAttackGrou return getAppSecAttackGroupsPlain(args, InvokeOptions.Empty); } public static Output getAppSecAttackGroups(GetAppSecAttackGroupsArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getAppSecAttackGroups:getAppSecAttackGroups", TypeShape.of(GetAppSecAttackGroupsResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getAppSecAttackGroups:getAppSecAttackGroups", TypeShape.of(GetAppSecAttackGroupsResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getAppSecAttackGroups(GetAppSecAttackGroupsArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getAppSecAttackGroups:getAppSecAttackGroups", TypeShape.of(GetAppSecAttackGroupsResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getAppSecAttackGroups:getAppSecAttackGroups", TypeShape.of(GetAppSecAttackGroupsResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getAppSecAttackGroupsPlain(GetAppSecAttackGroupsPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getAppSecAttackGroups:getAppSecAttackGroups", TypeShape.of(GetAppSecAttackGroupsResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getAppSecAttackGroups:getAppSecAttackGroups", TypeShape.of(GetAppSecAttackGroupsResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getAppSecBypassNetworkLists(GetAppSecBypassNetworkListsArgs args) { return getAppSecBypassNetworkLists(args, InvokeOptions.Empty); @@ -537,13 +558,16 @@ public static CompletableFuture getAppSecBypa return getAppSecBypassNetworkListsPlain(args, InvokeOptions.Empty); } public static Output getAppSecBypassNetworkLists(GetAppSecBypassNetworkListsArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getAppSecBypassNetworkLists:getAppSecBypassNetworkLists", TypeShape.of(GetAppSecBypassNetworkListsResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getAppSecBypassNetworkLists:getAppSecBypassNetworkLists", TypeShape.of(GetAppSecBypassNetworkListsResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getAppSecBypassNetworkLists(GetAppSecBypassNetworkListsArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getAppSecBypassNetworkLists:getAppSecBypassNetworkLists", TypeShape.of(GetAppSecBypassNetworkListsResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getAppSecBypassNetworkLists:getAppSecBypassNetworkLists", TypeShape.of(GetAppSecBypassNetworkListsResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getAppSecBypassNetworkListsPlain(GetAppSecBypassNetworkListsPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getAppSecBypassNetworkLists:getAppSecBypassNetworkLists", TypeShape.of(GetAppSecBypassNetworkListsResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getAppSecBypassNetworkLists:getAppSecBypassNetworkLists", TypeShape.of(GetAppSecBypassNetworkListsResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getAppSecConfiguration() { return getAppSecConfiguration(GetAppSecConfigurationArgs.Empty, InvokeOptions.Empty); @@ -558,13 +582,16 @@ public static CompletableFuture getAppSecConfigura return getAppSecConfigurationPlain(args, InvokeOptions.Empty); } public static Output getAppSecConfiguration(GetAppSecConfigurationArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getAppSecConfiguration:getAppSecConfiguration", TypeShape.of(GetAppSecConfigurationResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getAppSecConfiguration:getAppSecConfiguration", TypeShape.of(GetAppSecConfigurationResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getAppSecConfiguration(GetAppSecConfigurationArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getAppSecConfiguration:getAppSecConfiguration", TypeShape.of(GetAppSecConfigurationResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getAppSecConfiguration:getAppSecConfiguration", TypeShape.of(GetAppSecConfigurationResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getAppSecConfigurationPlain(GetAppSecConfigurationPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getAppSecConfiguration:getAppSecConfiguration", TypeShape.of(GetAppSecConfigurationResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getAppSecConfiguration:getAppSecConfiguration", TypeShape.of(GetAppSecConfigurationResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getAppSecConfigurationVersion(GetAppSecConfigurationVersionArgs args) { return getAppSecConfigurationVersion(args, InvokeOptions.Empty); @@ -573,13 +600,16 @@ public static CompletableFuture getAppSecCo return getAppSecConfigurationVersionPlain(args, InvokeOptions.Empty); } public static Output getAppSecConfigurationVersion(GetAppSecConfigurationVersionArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getAppSecConfigurationVersion:getAppSecConfigurationVersion", TypeShape.of(GetAppSecConfigurationVersionResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getAppSecConfigurationVersion:getAppSecConfigurationVersion", TypeShape.of(GetAppSecConfigurationVersionResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getAppSecConfigurationVersion(GetAppSecConfigurationVersionArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getAppSecConfigurationVersion:getAppSecConfigurationVersion", TypeShape.of(GetAppSecConfigurationVersionResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getAppSecConfigurationVersion:getAppSecConfigurationVersion", TypeShape.of(GetAppSecConfigurationVersionResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getAppSecConfigurationVersionPlain(GetAppSecConfigurationVersionPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getAppSecConfigurationVersion:getAppSecConfigurationVersion", TypeShape.of(GetAppSecConfigurationVersionResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getAppSecConfigurationVersion:getAppSecConfigurationVersion", TypeShape.of(GetAppSecConfigurationVersionResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getAppSecContractsGroups() { return getAppSecContractsGroups(GetAppSecContractsGroupsArgs.Empty, InvokeOptions.Empty); @@ -594,13 +624,16 @@ public static CompletableFuture getAppSecContrac return getAppSecContractsGroupsPlain(args, InvokeOptions.Empty); } public static Output getAppSecContractsGroups(GetAppSecContractsGroupsArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getAppSecContractsGroups:getAppSecContractsGroups", TypeShape.of(GetAppSecContractsGroupsResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getAppSecContractsGroups:getAppSecContractsGroups", TypeShape.of(GetAppSecContractsGroupsResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getAppSecContractsGroups(GetAppSecContractsGroupsArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getAppSecContractsGroups:getAppSecContractsGroups", TypeShape.of(GetAppSecContractsGroupsResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getAppSecContractsGroups:getAppSecContractsGroups", TypeShape.of(GetAppSecContractsGroupsResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getAppSecContractsGroupsPlain(GetAppSecContractsGroupsPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getAppSecContractsGroups:getAppSecContractsGroups", TypeShape.of(GetAppSecContractsGroupsResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getAppSecContractsGroups:getAppSecContractsGroups", TypeShape.of(GetAppSecContractsGroupsResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getAppSecCustomDeny(GetAppSecCustomDenyArgs args) { return getAppSecCustomDeny(args, InvokeOptions.Empty); @@ -609,13 +642,16 @@ public static CompletableFuture getAppSecCustomDenyPl return getAppSecCustomDenyPlain(args, InvokeOptions.Empty); } public static Output getAppSecCustomDeny(GetAppSecCustomDenyArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getAppSecCustomDeny:getAppSecCustomDeny", TypeShape.of(GetAppSecCustomDenyResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getAppSecCustomDeny:getAppSecCustomDeny", TypeShape.of(GetAppSecCustomDenyResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getAppSecCustomDeny(GetAppSecCustomDenyArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getAppSecCustomDeny:getAppSecCustomDeny", TypeShape.of(GetAppSecCustomDenyResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getAppSecCustomDeny:getAppSecCustomDeny", TypeShape.of(GetAppSecCustomDenyResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getAppSecCustomDenyPlain(GetAppSecCustomDenyPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getAppSecCustomDeny:getAppSecCustomDeny", TypeShape.of(GetAppSecCustomDenyResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getAppSecCustomDeny:getAppSecCustomDeny", TypeShape.of(GetAppSecCustomDenyResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getAppSecCustomRuleActions(GetAppSecCustomRuleActionsArgs args) { return getAppSecCustomRuleActions(args, InvokeOptions.Empty); @@ -624,13 +660,16 @@ public static CompletableFuture getAppSecCusto return getAppSecCustomRuleActionsPlain(args, InvokeOptions.Empty); } public static Output getAppSecCustomRuleActions(GetAppSecCustomRuleActionsArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getAppSecCustomRuleActions:getAppSecCustomRuleActions", TypeShape.of(GetAppSecCustomRuleActionsResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getAppSecCustomRuleActions:getAppSecCustomRuleActions", TypeShape.of(GetAppSecCustomRuleActionsResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getAppSecCustomRuleActions(GetAppSecCustomRuleActionsArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getAppSecCustomRuleActions:getAppSecCustomRuleActions", TypeShape.of(GetAppSecCustomRuleActionsResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getAppSecCustomRuleActions:getAppSecCustomRuleActions", TypeShape.of(GetAppSecCustomRuleActionsResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getAppSecCustomRuleActionsPlain(GetAppSecCustomRuleActionsPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getAppSecCustomRuleActions:getAppSecCustomRuleActions", TypeShape.of(GetAppSecCustomRuleActionsResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getAppSecCustomRuleActions:getAppSecCustomRuleActions", TypeShape.of(GetAppSecCustomRuleActionsResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getAppSecCustomRules(GetAppSecCustomRulesArgs args) { return getAppSecCustomRules(args, InvokeOptions.Empty); @@ -639,13 +678,16 @@ public static CompletableFuture getAppSecCustomRules return getAppSecCustomRulesPlain(args, InvokeOptions.Empty); } public static Output getAppSecCustomRules(GetAppSecCustomRulesArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getAppSecCustomRules:getAppSecCustomRules", TypeShape.of(GetAppSecCustomRulesResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getAppSecCustomRules:getAppSecCustomRules", TypeShape.of(GetAppSecCustomRulesResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getAppSecCustomRules(GetAppSecCustomRulesArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getAppSecCustomRules:getAppSecCustomRules", TypeShape.of(GetAppSecCustomRulesResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getAppSecCustomRules:getAppSecCustomRules", TypeShape.of(GetAppSecCustomRulesResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getAppSecCustomRulesPlain(GetAppSecCustomRulesPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getAppSecCustomRules:getAppSecCustomRules", TypeShape.of(GetAppSecCustomRulesResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getAppSecCustomRules:getAppSecCustomRules", TypeShape.of(GetAppSecCustomRulesResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getAppSecEval(GetAppSecEvalArgs args) { return getAppSecEval(args, InvokeOptions.Empty); @@ -654,13 +696,16 @@ public static CompletableFuture getAppSecEvalPlain(GetAppSe return getAppSecEvalPlain(args, InvokeOptions.Empty); } public static Output getAppSecEval(GetAppSecEvalArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getAppSecEval:getAppSecEval", TypeShape.of(GetAppSecEvalResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getAppSecEval:getAppSecEval", TypeShape.of(GetAppSecEvalResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getAppSecEval(GetAppSecEvalArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getAppSecEval:getAppSecEval", TypeShape.of(GetAppSecEvalResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getAppSecEval:getAppSecEval", TypeShape.of(GetAppSecEvalResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getAppSecEvalPlain(GetAppSecEvalPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getAppSecEval:getAppSecEval", TypeShape.of(GetAppSecEvalResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getAppSecEval:getAppSecEval", TypeShape.of(GetAppSecEvalResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getAppSecEvalGroups(GetAppSecEvalGroupsArgs args) { return getAppSecEvalGroups(args, InvokeOptions.Empty); @@ -669,13 +714,16 @@ public static CompletableFuture getAppSecEvalGroupsPl return getAppSecEvalGroupsPlain(args, InvokeOptions.Empty); } public static Output getAppSecEvalGroups(GetAppSecEvalGroupsArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getAppSecEvalGroups:getAppSecEvalGroups", TypeShape.of(GetAppSecEvalGroupsResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getAppSecEvalGroups:getAppSecEvalGroups", TypeShape.of(GetAppSecEvalGroupsResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getAppSecEvalGroups(GetAppSecEvalGroupsArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getAppSecEvalGroups:getAppSecEvalGroups", TypeShape.of(GetAppSecEvalGroupsResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getAppSecEvalGroups:getAppSecEvalGroups", TypeShape.of(GetAppSecEvalGroupsResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getAppSecEvalGroupsPlain(GetAppSecEvalGroupsPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getAppSecEvalGroups:getAppSecEvalGroups", TypeShape.of(GetAppSecEvalGroupsResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getAppSecEvalGroups:getAppSecEvalGroups", TypeShape.of(GetAppSecEvalGroupsResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getAppSecEvalPenaltyBox(GetAppSecEvalPenaltyBoxArgs args) { return getAppSecEvalPenaltyBox(args, InvokeOptions.Empty); @@ -684,13 +732,16 @@ public static CompletableFuture getAppSecEvalPena return getAppSecEvalPenaltyBoxPlain(args, InvokeOptions.Empty); } public static Output getAppSecEvalPenaltyBox(GetAppSecEvalPenaltyBoxArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getAppSecEvalPenaltyBox:getAppSecEvalPenaltyBox", TypeShape.of(GetAppSecEvalPenaltyBoxResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getAppSecEvalPenaltyBox:getAppSecEvalPenaltyBox", TypeShape.of(GetAppSecEvalPenaltyBoxResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getAppSecEvalPenaltyBox(GetAppSecEvalPenaltyBoxArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getAppSecEvalPenaltyBox:getAppSecEvalPenaltyBox", TypeShape.of(GetAppSecEvalPenaltyBoxResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getAppSecEvalPenaltyBox:getAppSecEvalPenaltyBox", TypeShape.of(GetAppSecEvalPenaltyBoxResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getAppSecEvalPenaltyBoxPlain(GetAppSecEvalPenaltyBoxPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getAppSecEvalPenaltyBox:getAppSecEvalPenaltyBox", TypeShape.of(GetAppSecEvalPenaltyBoxResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getAppSecEvalPenaltyBox:getAppSecEvalPenaltyBox", TypeShape.of(GetAppSecEvalPenaltyBoxResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getAppSecEvalRules(GetAppSecEvalRulesArgs args) { return getAppSecEvalRules(args, InvokeOptions.Empty); @@ -699,13 +750,16 @@ public static CompletableFuture getAppSecEvalRulesPlai return getAppSecEvalRulesPlain(args, InvokeOptions.Empty); } public static Output getAppSecEvalRules(GetAppSecEvalRulesArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getAppSecEvalRules:getAppSecEvalRules", TypeShape.of(GetAppSecEvalRulesResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getAppSecEvalRules:getAppSecEvalRules", TypeShape.of(GetAppSecEvalRulesResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getAppSecEvalRules(GetAppSecEvalRulesArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getAppSecEvalRules:getAppSecEvalRules", TypeShape.of(GetAppSecEvalRulesResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getAppSecEvalRules:getAppSecEvalRules", TypeShape.of(GetAppSecEvalRulesResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getAppSecEvalRulesPlain(GetAppSecEvalRulesPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getAppSecEvalRules:getAppSecEvalRules", TypeShape.of(GetAppSecEvalRulesResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getAppSecEvalRules:getAppSecEvalRules", TypeShape.of(GetAppSecEvalRulesResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getAppSecExportConfiguration(GetAppSecExportConfigurationArgs args) { return getAppSecExportConfiguration(args, InvokeOptions.Empty); @@ -714,13 +768,16 @@ public static CompletableFuture getAppSecExp return getAppSecExportConfigurationPlain(args, InvokeOptions.Empty); } public static Output getAppSecExportConfiguration(GetAppSecExportConfigurationArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getAppSecExportConfiguration:getAppSecExportConfiguration", TypeShape.of(GetAppSecExportConfigurationResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getAppSecExportConfiguration:getAppSecExportConfiguration", TypeShape.of(GetAppSecExportConfigurationResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getAppSecExportConfiguration(GetAppSecExportConfigurationArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getAppSecExportConfiguration:getAppSecExportConfiguration", TypeShape.of(GetAppSecExportConfigurationResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getAppSecExportConfiguration:getAppSecExportConfiguration", TypeShape.of(GetAppSecExportConfigurationResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getAppSecExportConfigurationPlain(GetAppSecExportConfigurationPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getAppSecExportConfiguration:getAppSecExportConfiguration", TypeShape.of(GetAppSecExportConfigurationResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getAppSecExportConfiguration:getAppSecExportConfiguration", TypeShape.of(GetAppSecExportConfigurationResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getAppSecFailoverHostnames(GetAppSecFailoverHostnamesArgs args) { return getAppSecFailoverHostnames(args, InvokeOptions.Empty); @@ -729,13 +786,16 @@ public static CompletableFuture getAppSecFailo return getAppSecFailoverHostnamesPlain(args, InvokeOptions.Empty); } public static Output getAppSecFailoverHostnames(GetAppSecFailoverHostnamesArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getAppSecFailoverHostnames:getAppSecFailoverHostnames", TypeShape.of(GetAppSecFailoverHostnamesResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getAppSecFailoverHostnames:getAppSecFailoverHostnames", TypeShape.of(GetAppSecFailoverHostnamesResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getAppSecFailoverHostnames(GetAppSecFailoverHostnamesArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getAppSecFailoverHostnames:getAppSecFailoverHostnames", TypeShape.of(GetAppSecFailoverHostnamesResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getAppSecFailoverHostnames:getAppSecFailoverHostnames", TypeShape.of(GetAppSecFailoverHostnamesResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getAppSecFailoverHostnamesPlain(GetAppSecFailoverHostnamesPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getAppSecFailoverHostnames:getAppSecFailoverHostnames", TypeShape.of(GetAppSecFailoverHostnamesResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getAppSecFailoverHostnames:getAppSecFailoverHostnames", TypeShape.of(GetAppSecFailoverHostnamesResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getAppSecHostnameCoverage() { return getAppSecHostnameCoverage(InvokeArgs.Empty, InvokeOptions.Empty); @@ -750,13 +810,16 @@ public static CompletableFuture getAppSecHostna return getAppSecHostnameCoveragePlain(args, InvokeOptions.Empty); } public static Output getAppSecHostnameCoverage(InvokeArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getAppSecHostnameCoverage:getAppSecHostnameCoverage", TypeShape.of(GetAppSecHostnameCoverageResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getAppSecHostnameCoverage:getAppSecHostnameCoverage", TypeShape.of(GetAppSecHostnameCoverageResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getAppSecHostnameCoverage(InvokeArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getAppSecHostnameCoverage:getAppSecHostnameCoverage", TypeShape.of(GetAppSecHostnameCoverageResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getAppSecHostnameCoverage:getAppSecHostnameCoverage", TypeShape.of(GetAppSecHostnameCoverageResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getAppSecHostnameCoveragePlain(InvokeArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getAppSecHostnameCoverage:getAppSecHostnameCoverage", TypeShape.of(GetAppSecHostnameCoverageResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getAppSecHostnameCoverage:getAppSecHostnameCoverage", TypeShape.of(GetAppSecHostnameCoverageResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getAppSecHostnameCoverageMatchTargets(GetAppSecHostnameCoverageMatchTargetsArgs args) { return getAppSecHostnameCoverageMatchTargets(args, InvokeOptions.Empty); @@ -765,13 +828,16 @@ public static CompletableFuture get return getAppSecHostnameCoverageMatchTargetsPlain(args, InvokeOptions.Empty); } public static Output getAppSecHostnameCoverageMatchTargets(GetAppSecHostnameCoverageMatchTargetsArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getAppSecHostnameCoverageMatchTargets:getAppSecHostnameCoverageMatchTargets", TypeShape.of(GetAppSecHostnameCoverageMatchTargetsResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getAppSecHostnameCoverageMatchTargets:getAppSecHostnameCoverageMatchTargets", TypeShape.of(GetAppSecHostnameCoverageMatchTargetsResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getAppSecHostnameCoverageMatchTargets(GetAppSecHostnameCoverageMatchTargetsArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getAppSecHostnameCoverageMatchTargets:getAppSecHostnameCoverageMatchTargets", TypeShape.of(GetAppSecHostnameCoverageMatchTargetsResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getAppSecHostnameCoverageMatchTargets:getAppSecHostnameCoverageMatchTargets", TypeShape.of(GetAppSecHostnameCoverageMatchTargetsResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getAppSecHostnameCoverageMatchTargetsPlain(GetAppSecHostnameCoverageMatchTargetsPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getAppSecHostnameCoverageMatchTargets:getAppSecHostnameCoverageMatchTargets", TypeShape.of(GetAppSecHostnameCoverageMatchTargetsResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getAppSecHostnameCoverageMatchTargets:getAppSecHostnameCoverageMatchTargets", TypeShape.of(GetAppSecHostnameCoverageMatchTargetsResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getAppSecHostnameCoverageOverlapping(GetAppSecHostnameCoverageOverlappingArgs args) { return getAppSecHostnameCoverageOverlapping(args, InvokeOptions.Empty); @@ -780,13 +846,16 @@ public static CompletableFuture getA return getAppSecHostnameCoverageOverlappingPlain(args, InvokeOptions.Empty); } public static Output getAppSecHostnameCoverageOverlapping(GetAppSecHostnameCoverageOverlappingArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getAppSecHostnameCoverageOverlapping:getAppSecHostnameCoverageOverlapping", TypeShape.of(GetAppSecHostnameCoverageOverlappingResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getAppSecHostnameCoverageOverlapping:getAppSecHostnameCoverageOverlapping", TypeShape.of(GetAppSecHostnameCoverageOverlappingResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getAppSecHostnameCoverageOverlapping(GetAppSecHostnameCoverageOverlappingArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getAppSecHostnameCoverageOverlapping:getAppSecHostnameCoverageOverlapping", TypeShape.of(GetAppSecHostnameCoverageOverlappingResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getAppSecHostnameCoverageOverlapping:getAppSecHostnameCoverageOverlapping", TypeShape.of(GetAppSecHostnameCoverageOverlappingResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getAppSecHostnameCoverageOverlappingPlain(GetAppSecHostnameCoverageOverlappingPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getAppSecHostnameCoverageOverlapping:getAppSecHostnameCoverageOverlapping", TypeShape.of(GetAppSecHostnameCoverageOverlappingResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getAppSecHostnameCoverageOverlapping:getAppSecHostnameCoverageOverlapping", TypeShape.of(GetAppSecHostnameCoverageOverlappingResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getAppSecIPGeo(GetAppSecIPGeoArgs args) { return getAppSecIPGeo(args, InvokeOptions.Empty); @@ -795,13 +864,16 @@ public static CompletableFuture getAppSecIPGeoPlain(GetApp return getAppSecIPGeoPlain(args, InvokeOptions.Empty); } public static Output getAppSecIPGeo(GetAppSecIPGeoArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getAppSecIPGeo:getAppSecIPGeo", TypeShape.of(GetAppSecIPGeoResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getAppSecIPGeo:getAppSecIPGeo", TypeShape.of(GetAppSecIPGeoResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getAppSecIPGeo(GetAppSecIPGeoArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getAppSecIPGeo:getAppSecIPGeo", TypeShape.of(GetAppSecIPGeoResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getAppSecIPGeo:getAppSecIPGeo", TypeShape.of(GetAppSecIPGeoResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getAppSecIPGeoPlain(GetAppSecIPGeoPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getAppSecIPGeo:getAppSecIPGeo", TypeShape.of(GetAppSecIPGeoResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getAppSecIPGeo:getAppSecIPGeo", TypeShape.of(GetAppSecIPGeoResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getAppSecMalwareContentTypes(GetAppSecMalwareContentTypesArgs args) { return getAppSecMalwareContentTypes(args, InvokeOptions.Empty); @@ -810,13 +882,16 @@ public static CompletableFuture getAppSecMal return getAppSecMalwareContentTypesPlain(args, InvokeOptions.Empty); } public static Output getAppSecMalwareContentTypes(GetAppSecMalwareContentTypesArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getAppSecMalwareContentTypes:getAppSecMalwareContentTypes", TypeShape.of(GetAppSecMalwareContentTypesResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getAppSecMalwareContentTypes:getAppSecMalwareContentTypes", TypeShape.of(GetAppSecMalwareContentTypesResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getAppSecMalwareContentTypes(GetAppSecMalwareContentTypesArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getAppSecMalwareContentTypes:getAppSecMalwareContentTypes", TypeShape.of(GetAppSecMalwareContentTypesResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getAppSecMalwareContentTypes:getAppSecMalwareContentTypes", TypeShape.of(GetAppSecMalwareContentTypesResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getAppSecMalwareContentTypesPlain(GetAppSecMalwareContentTypesPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getAppSecMalwareContentTypes:getAppSecMalwareContentTypes", TypeShape.of(GetAppSecMalwareContentTypesResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getAppSecMalwareContentTypes:getAppSecMalwareContentTypes", TypeShape.of(GetAppSecMalwareContentTypesResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getAppSecMalwarePolicies(GetAppSecMalwarePoliciesArgs args) { return getAppSecMalwarePolicies(args, InvokeOptions.Empty); @@ -825,13 +900,16 @@ public static CompletableFuture getAppSecMalware return getAppSecMalwarePoliciesPlain(args, InvokeOptions.Empty); } public static Output getAppSecMalwarePolicies(GetAppSecMalwarePoliciesArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getAppSecMalwarePolicies:getAppSecMalwarePolicies", TypeShape.of(GetAppSecMalwarePoliciesResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getAppSecMalwarePolicies:getAppSecMalwarePolicies", TypeShape.of(GetAppSecMalwarePoliciesResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getAppSecMalwarePolicies(GetAppSecMalwarePoliciesArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getAppSecMalwarePolicies:getAppSecMalwarePolicies", TypeShape.of(GetAppSecMalwarePoliciesResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getAppSecMalwarePolicies:getAppSecMalwarePolicies", TypeShape.of(GetAppSecMalwarePoliciesResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getAppSecMalwarePoliciesPlain(GetAppSecMalwarePoliciesPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getAppSecMalwarePolicies:getAppSecMalwarePolicies", TypeShape.of(GetAppSecMalwarePoliciesResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getAppSecMalwarePolicies:getAppSecMalwarePolicies", TypeShape.of(GetAppSecMalwarePoliciesResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getAppSecMalwarePolicyActions(GetAppSecMalwarePolicyActionsArgs args) { return getAppSecMalwarePolicyActions(args, InvokeOptions.Empty); @@ -840,13 +918,16 @@ public static CompletableFuture getAppSecMa return getAppSecMalwarePolicyActionsPlain(args, InvokeOptions.Empty); } public static Output getAppSecMalwarePolicyActions(GetAppSecMalwarePolicyActionsArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getAppSecMalwarePolicyActions:getAppSecMalwarePolicyActions", TypeShape.of(GetAppSecMalwarePolicyActionsResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getAppSecMalwarePolicyActions:getAppSecMalwarePolicyActions", TypeShape.of(GetAppSecMalwarePolicyActionsResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getAppSecMalwarePolicyActions(GetAppSecMalwarePolicyActionsArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getAppSecMalwarePolicyActions:getAppSecMalwarePolicyActions", TypeShape.of(GetAppSecMalwarePolicyActionsResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getAppSecMalwarePolicyActions:getAppSecMalwarePolicyActions", TypeShape.of(GetAppSecMalwarePolicyActionsResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getAppSecMalwarePolicyActionsPlain(GetAppSecMalwarePolicyActionsPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getAppSecMalwarePolicyActions:getAppSecMalwarePolicyActions", TypeShape.of(GetAppSecMalwarePolicyActionsResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getAppSecMalwarePolicyActions:getAppSecMalwarePolicyActions", TypeShape.of(GetAppSecMalwarePolicyActionsResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getAppSecMatchTargets(GetAppSecMatchTargetsArgs args) { return getAppSecMatchTargets(args, InvokeOptions.Empty); @@ -855,13 +936,16 @@ public static CompletableFuture getAppSecMatchTarge return getAppSecMatchTargetsPlain(args, InvokeOptions.Empty); } public static Output getAppSecMatchTargets(GetAppSecMatchTargetsArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getAppSecMatchTargets:getAppSecMatchTargets", TypeShape.of(GetAppSecMatchTargetsResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getAppSecMatchTargets:getAppSecMatchTargets", TypeShape.of(GetAppSecMatchTargetsResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getAppSecMatchTargets(GetAppSecMatchTargetsArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getAppSecMatchTargets:getAppSecMatchTargets", TypeShape.of(GetAppSecMatchTargetsResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getAppSecMatchTargets:getAppSecMatchTargets", TypeShape.of(GetAppSecMatchTargetsResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getAppSecMatchTargetsPlain(GetAppSecMatchTargetsPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getAppSecMatchTargets:getAppSecMatchTargets", TypeShape.of(GetAppSecMatchTargetsResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getAppSecMatchTargets:getAppSecMatchTargets", TypeShape.of(GetAppSecMatchTargetsResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getAppSecPenaltyBox(GetAppSecPenaltyBoxArgs args) { return getAppSecPenaltyBox(args, InvokeOptions.Empty); @@ -870,13 +954,16 @@ public static CompletableFuture getAppSecPenaltyBoxPl return getAppSecPenaltyBoxPlain(args, InvokeOptions.Empty); } public static Output getAppSecPenaltyBox(GetAppSecPenaltyBoxArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getAppSecPenaltyBox:getAppSecPenaltyBox", TypeShape.of(GetAppSecPenaltyBoxResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getAppSecPenaltyBox:getAppSecPenaltyBox", TypeShape.of(GetAppSecPenaltyBoxResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getAppSecPenaltyBox(GetAppSecPenaltyBoxArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getAppSecPenaltyBox:getAppSecPenaltyBox", TypeShape.of(GetAppSecPenaltyBoxResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getAppSecPenaltyBox:getAppSecPenaltyBox", TypeShape.of(GetAppSecPenaltyBoxResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getAppSecPenaltyBoxPlain(GetAppSecPenaltyBoxPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getAppSecPenaltyBox:getAppSecPenaltyBox", TypeShape.of(GetAppSecPenaltyBoxResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getAppSecPenaltyBox:getAppSecPenaltyBox", TypeShape.of(GetAppSecPenaltyBoxResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getAppSecRatePolicies(GetAppSecRatePoliciesArgs args) { return getAppSecRatePolicies(args, InvokeOptions.Empty); @@ -885,13 +972,16 @@ public static CompletableFuture getAppSecRatePolici return getAppSecRatePoliciesPlain(args, InvokeOptions.Empty); } public static Output getAppSecRatePolicies(GetAppSecRatePoliciesArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getAppSecRatePolicies:getAppSecRatePolicies", TypeShape.of(GetAppSecRatePoliciesResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getAppSecRatePolicies:getAppSecRatePolicies", TypeShape.of(GetAppSecRatePoliciesResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getAppSecRatePolicies(GetAppSecRatePoliciesArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getAppSecRatePolicies:getAppSecRatePolicies", TypeShape.of(GetAppSecRatePoliciesResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getAppSecRatePolicies:getAppSecRatePolicies", TypeShape.of(GetAppSecRatePoliciesResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getAppSecRatePoliciesPlain(GetAppSecRatePoliciesPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getAppSecRatePolicies:getAppSecRatePolicies", TypeShape.of(GetAppSecRatePoliciesResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getAppSecRatePolicies:getAppSecRatePolicies", TypeShape.of(GetAppSecRatePoliciesResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getAppSecRatePolicyActions(GetAppSecRatePolicyActionsArgs args) { return getAppSecRatePolicyActions(args, InvokeOptions.Empty); @@ -900,13 +990,16 @@ public static CompletableFuture getAppSecRateP return getAppSecRatePolicyActionsPlain(args, InvokeOptions.Empty); } public static Output getAppSecRatePolicyActions(GetAppSecRatePolicyActionsArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getAppSecRatePolicyActions:getAppSecRatePolicyActions", TypeShape.of(GetAppSecRatePolicyActionsResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getAppSecRatePolicyActions:getAppSecRatePolicyActions", TypeShape.of(GetAppSecRatePolicyActionsResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getAppSecRatePolicyActions(GetAppSecRatePolicyActionsArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getAppSecRatePolicyActions:getAppSecRatePolicyActions", TypeShape.of(GetAppSecRatePolicyActionsResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getAppSecRatePolicyActions:getAppSecRatePolicyActions", TypeShape.of(GetAppSecRatePolicyActionsResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getAppSecRatePolicyActionsPlain(GetAppSecRatePolicyActionsPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getAppSecRatePolicyActions:getAppSecRatePolicyActions", TypeShape.of(GetAppSecRatePolicyActionsResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getAppSecRatePolicyActions:getAppSecRatePolicyActions", TypeShape.of(GetAppSecRatePolicyActionsResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getAppSecReputationProfileActions(GetAppSecReputationProfileActionsArgs args) { return getAppSecReputationProfileActions(args, InvokeOptions.Empty); @@ -915,13 +1008,16 @@ public static CompletableFuture getAppS return getAppSecReputationProfileActionsPlain(args, InvokeOptions.Empty); } public static Output getAppSecReputationProfileActions(GetAppSecReputationProfileActionsArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getAppSecReputationProfileActions:getAppSecReputationProfileActions", TypeShape.of(GetAppSecReputationProfileActionsResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getAppSecReputationProfileActions:getAppSecReputationProfileActions", TypeShape.of(GetAppSecReputationProfileActionsResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getAppSecReputationProfileActions(GetAppSecReputationProfileActionsArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getAppSecReputationProfileActions:getAppSecReputationProfileActions", TypeShape.of(GetAppSecReputationProfileActionsResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getAppSecReputationProfileActions:getAppSecReputationProfileActions", TypeShape.of(GetAppSecReputationProfileActionsResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getAppSecReputationProfileActionsPlain(GetAppSecReputationProfileActionsPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getAppSecReputationProfileActions:getAppSecReputationProfileActions", TypeShape.of(GetAppSecReputationProfileActionsResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getAppSecReputationProfileActions:getAppSecReputationProfileActions", TypeShape.of(GetAppSecReputationProfileActionsResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getAppSecReputationProfileAnalysis(GetAppSecReputationProfileAnalysisArgs args) { return getAppSecReputationProfileAnalysis(args, InvokeOptions.Empty); @@ -930,13 +1026,16 @@ public static CompletableFuture getApp return getAppSecReputationProfileAnalysisPlain(args, InvokeOptions.Empty); } public static Output getAppSecReputationProfileAnalysis(GetAppSecReputationProfileAnalysisArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getAppSecReputationProfileAnalysis:getAppSecReputationProfileAnalysis", TypeShape.of(GetAppSecReputationProfileAnalysisResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getAppSecReputationProfileAnalysis:getAppSecReputationProfileAnalysis", TypeShape.of(GetAppSecReputationProfileAnalysisResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getAppSecReputationProfileAnalysis(GetAppSecReputationProfileAnalysisArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getAppSecReputationProfileAnalysis:getAppSecReputationProfileAnalysis", TypeShape.of(GetAppSecReputationProfileAnalysisResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getAppSecReputationProfileAnalysis:getAppSecReputationProfileAnalysis", TypeShape.of(GetAppSecReputationProfileAnalysisResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getAppSecReputationProfileAnalysisPlain(GetAppSecReputationProfileAnalysisPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getAppSecReputationProfileAnalysis:getAppSecReputationProfileAnalysis", TypeShape.of(GetAppSecReputationProfileAnalysisResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getAppSecReputationProfileAnalysis:getAppSecReputationProfileAnalysis", TypeShape.of(GetAppSecReputationProfileAnalysisResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getAppSecReputationProfiles(GetAppSecReputationProfilesArgs args) { return getAppSecReputationProfiles(args, InvokeOptions.Empty); @@ -945,13 +1044,16 @@ public static CompletableFuture getAppSecRepu return getAppSecReputationProfilesPlain(args, InvokeOptions.Empty); } public static Output getAppSecReputationProfiles(GetAppSecReputationProfilesArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getAppSecReputationProfiles:getAppSecReputationProfiles", TypeShape.of(GetAppSecReputationProfilesResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getAppSecReputationProfiles:getAppSecReputationProfiles", TypeShape.of(GetAppSecReputationProfilesResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getAppSecReputationProfiles(GetAppSecReputationProfilesArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getAppSecReputationProfiles:getAppSecReputationProfiles", TypeShape.of(GetAppSecReputationProfilesResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getAppSecReputationProfiles:getAppSecReputationProfiles", TypeShape.of(GetAppSecReputationProfilesResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getAppSecReputationProfilesPlain(GetAppSecReputationProfilesPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getAppSecReputationProfiles:getAppSecReputationProfiles", TypeShape.of(GetAppSecReputationProfilesResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getAppSecReputationProfiles:getAppSecReputationProfiles", TypeShape.of(GetAppSecReputationProfilesResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getAppSecRuleUpgradeDetails(GetAppSecRuleUpgradeDetailsArgs args) { return getAppSecRuleUpgradeDetails(args, InvokeOptions.Empty); @@ -960,13 +1062,16 @@ public static CompletableFuture getAppSecRule return getAppSecRuleUpgradeDetailsPlain(args, InvokeOptions.Empty); } public static Output getAppSecRuleUpgradeDetails(GetAppSecRuleUpgradeDetailsArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getAppSecRuleUpgradeDetails:getAppSecRuleUpgradeDetails", TypeShape.of(GetAppSecRuleUpgradeDetailsResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getAppSecRuleUpgradeDetails:getAppSecRuleUpgradeDetails", TypeShape.of(GetAppSecRuleUpgradeDetailsResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getAppSecRuleUpgradeDetails(GetAppSecRuleUpgradeDetailsArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getAppSecRuleUpgradeDetails:getAppSecRuleUpgradeDetails", TypeShape.of(GetAppSecRuleUpgradeDetailsResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getAppSecRuleUpgradeDetails:getAppSecRuleUpgradeDetails", TypeShape.of(GetAppSecRuleUpgradeDetailsResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getAppSecRuleUpgradeDetailsPlain(GetAppSecRuleUpgradeDetailsPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getAppSecRuleUpgradeDetails:getAppSecRuleUpgradeDetails", TypeShape.of(GetAppSecRuleUpgradeDetailsResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getAppSecRuleUpgradeDetails:getAppSecRuleUpgradeDetails", TypeShape.of(GetAppSecRuleUpgradeDetailsResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getAppSecRules(GetAppSecRulesArgs args) { return getAppSecRules(args, InvokeOptions.Empty); @@ -975,13 +1080,16 @@ public static CompletableFuture getAppSecRulesPlain(GetApp return getAppSecRulesPlain(args, InvokeOptions.Empty); } public static Output getAppSecRules(GetAppSecRulesArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getAppSecRules:getAppSecRules", TypeShape.of(GetAppSecRulesResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getAppSecRules:getAppSecRules", TypeShape.of(GetAppSecRulesResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getAppSecRules(GetAppSecRulesArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getAppSecRules:getAppSecRules", TypeShape.of(GetAppSecRulesResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getAppSecRules:getAppSecRules", TypeShape.of(GetAppSecRulesResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getAppSecRulesPlain(GetAppSecRulesPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getAppSecRules:getAppSecRules", TypeShape.of(GetAppSecRulesResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getAppSecRules:getAppSecRules", TypeShape.of(GetAppSecRulesResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getAppSecSecurityPolicy(GetAppSecSecurityPolicyArgs args) { return getAppSecSecurityPolicy(args, InvokeOptions.Empty); @@ -990,13 +1098,16 @@ public static CompletableFuture getAppSecSecurity return getAppSecSecurityPolicyPlain(args, InvokeOptions.Empty); } public static Output getAppSecSecurityPolicy(GetAppSecSecurityPolicyArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getAppSecSecurityPolicy:getAppSecSecurityPolicy", TypeShape.of(GetAppSecSecurityPolicyResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getAppSecSecurityPolicy:getAppSecSecurityPolicy", TypeShape.of(GetAppSecSecurityPolicyResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getAppSecSecurityPolicy(GetAppSecSecurityPolicyArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getAppSecSecurityPolicy:getAppSecSecurityPolicy", TypeShape.of(GetAppSecSecurityPolicyResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getAppSecSecurityPolicy:getAppSecSecurityPolicy", TypeShape.of(GetAppSecSecurityPolicyResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getAppSecSecurityPolicyPlain(GetAppSecSecurityPolicyPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getAppSecSecurityPolicy:getAppSecSecurityPolicy", TypeShape.of(GetAppSecSecurityPolicyResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getAppSecSecurityPolicy:getAppSecSecurityPolicy", TypeShape.of(GetAppSecSecurityPolicyResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getAppSecSecurityPolicyProtections(GetAppSecSecurityPolicyProtectionsArgs args) { return getAppSecSecurityPolicyProtections(args, InvokeOptions.Empty); @@ -1005,13 +1116,16 @@ public static CompletableFuture getApp return getAppSecSecurityPolicyProtectionsPlain(args, InvokeOptions.Empty); } public static Output getAppSecSecurityPolicyProtections(GetAppSecSecurityPolicyProtectionsArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getAppSecSecurityPolicyProtections:getAppSecSecurityPolicyProtections", TypeShape.of(GetAppSecSecurityPolicyProtectionsResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getAppSecSecurityPolicyProtections:getAppSecSecurityPolicyProtections", TypeShape.of(GetAppSecSecurityPolicyProtectionsResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getAppSecSecurityPolicyProtections(GetAppSecSecurityPolicyProtectionsArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getAppSecSecurityPolicyProtections:getAppSecSecurityPolicyProtections", TypeShape.of(GetAppSecSecurityPolicyProtectionsResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getAppSecSecurityPolicyProtections:getAppSecSecurityPolicyProtections", TypeShape.of(GetAppSecSecurityPolicyProtectionsResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getAppSecSecurityPolicyProtectionsPlain(GetAppSecSecurityPolicyProtectionsPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getAppSecSecurityPolicyProtections:getAppSecSecurityPolicyProtections", TypeShape.of(GetAppSecSecurityPolicyProtectionsResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getAppSecSecurityPolicyProtections:getAppSecSecurityPolicyProtections", TypeShape.of(GetAppSecSecurityPolicyProtectionsResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getAppSecSelectableHostnames() { return getAppSecSelectableHostnames(GetAppSecSelectableHostnamesArgs.Empty, InvokeOptions.Empty); @@ -1026,13 +1140,16 @@ public static CompletableFuture getAppSecSel return getAppSecSelectableHostnamesPlain(args, InvokeOptions.Empty); } public static Output getAppSecSelectableHostnames(GetAppSecSelectableHostnamesArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getAppSecSelectableHostnames:getAppSecSelectableHostnames", TypeShape.of(GetAppSecSelectableHostnamesResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getAppSecSelectableHostnames:getAppSecSelectableHostnames", TypeShape.of(GetAppSecSelectableHostnamesResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getAppSecSelectableHostnames(GetAppSecSelectableHostnamesArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getAppSecSelectableHostnames:getAppSecSelectableHostnames", TypeShape.of(GetAppSecSelectableHostnamesResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getAppSecSelectableHostnames:getAppSecSelectableHostnames", TypeShape.of(GetAppSecSelectableHostnamesResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getAppSecSelectableHostnamesPlain(GetAppSecSelectableHostnamesPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getAppSecSelectableHostnames:getAppSecSelectableHostnames", TypeShape.of(GetAppSecSelectableHostnamesResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getAppSecSelectableHostnames:getAppSecSelectableHostnames", TypeShape.of(GetAppSecSelectableHostnamesResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getAppSecSelectedHostnames(GetAppSecSelectedHostnamesArgs args) { return getAppSecSelectedHostnames(args, InvokeOptions.Empty); @@ -1041,13 +1158,16 @@ public static CompletableFuture getAppSecSelec return getAppSecSelectedHostnamesPlain(args, InvokeOptions.Empty); } public static Output getAppSecSelectedHostnames(GetAppSecSelectedHostnamesArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getAppSecSelectedHostnames:getAppSecSelectedHostnames", TypeShape.of(GetAppSecSelectedHostnamesResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getAppSecSelectedHostnames:getAppSecSelectedHostnames", TypeShape.of(GetAppSecSelectedHostnamesResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getAppSecSelectedHostnames(GetAppSecSelectedHostnamesArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getAppSecSelectedHostnames:getAppSecSelectedHostnames", TypeShape.of(GetAppSecSelectedHostnamesResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getAppSecSelectedHostnames:getAppSecSelectedHostnames", TypeShape.of(GetAppSecSelectedHostnamesResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getAppSecSelectedHostnamesPlain(GetAppSecSelectedHostnamesPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getAppSecSelectedHostnames:getAppSecSelectedHostnames", TypeShape.of(GetAppSecSelectedHostnamesResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getAppSecSelectedHostnames:getAppSecSelectedHostnames", TypeShape.of(GetAppSecSelectedHostnamesResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getAppSecSiemDefinitions() { return getAppSecSiemDefinitions(GetAppSecSiemDefinitionsArgs.Empty, InvokeOptions.Empty); @@ -1062,13 +1182,16 @@ public static CompletableFuture getAppSecSiemDef return getAppSecSiemDefinitionsPlain(args, InvokeOptions.Empty); } public static Output getAppSecSiemDefinitions(GetAppSecSiemDefinitionsArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getAppSecSiemDefinitions:getAppSecSiemDefinitions", TypeShape.of(GetAppSecSiemDefinitionsResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getAppSecSiemDefinitions:getAppSecSiemDefinitions", TypeShape.of(GetAppSecSiemDefinitionsResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getAppSecSiemDefinitions(GetAppSecSiemDefinitionsArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getAppSecSiemDefinitions:getAppSecSiemDefinitions", TypeShape.of(GetAppSecSiemDefinitionsResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getAppSecSiemDefinitions:getAppSecSiemDefinitions", TypeShape.of(GetAppSecSiemDefinitionsResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getAppSecSiemDefinitionsPlain(GetAppSecSiemDefinitionsPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getAppSecSiemDefinitions:getAppSecSiemDefinitions", TypeShape.of(GetAppSecSiemDefinitionsResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getAppSecSiemDefinitions:getAppSecSiemDefinitions", TypeShape.of(GetAppSecSiemDefinitionsResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getAppSecSiemSettings(GetAppSecSiemSettingsArgs args) { return getAppSecSiemSettings(args, InvokeOptions.Empty); @@ -1077,13 +1200,16 @@ public static CompletableFuture getAppSecSiemSettin return getAppSecSiemSettingsPlain(args, InvokeOptions.Empty); } public static Output getAppSecSiemSettings(GetAppSecSiemSettingsArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getAppSecSiemSettings:getAppSecSiemSettings", TypeShape.of(GetAppSecSiemSettingsResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getAppSecSiemSettings:getAppSecSiemSettings", TypeShape.of(GetAppSecSiemSettingsResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getAppSecSiemSettings(GetAppSecSiemSettingsArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getAppSecSiemSettings:getAppSecSiemSettings", TypeShape.of(GetAppSecSiemSettingsResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getAppSecSiemSettings:getAppSecSiemSettings", TypeShape.of(GetAppSecSiemSettingsResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getAppSecSiemSettingsPlain(GetAppSecSiemSettingsPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getAppSecSiemSettings:getAppSecSiemSettings", TypeShape.of(GetAppSecSiemSettingsResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getAppSecSiemSettings:getAppSecSiemSettings", TypeShape.of(GetAppSecSiemSettingsResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getAppSecSlowPost(GetAppSecSlowPostArgs args) { return getAppSecSlowPost(args, InvokeOptions.Empty); @@ -1092,13 +1218,16 @@ public static CompletableFuture getAppSecSlowPostPlain( return getAppSecSlowPostPlain(args, InvokeOptions.Empty); } public static Output getAppSecSlowPost(GetAppSecSlowPostArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getAppSecSlowPost:getAppSecSlowPost", TypeShape.of(GetAppSecSlowPostResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getAppSecSlowPost:getAppSecSlowPost", TypeShape.of(GetAppSecSlowPostResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getAppSecSlowPost(GetAppSecSlowPostArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getAppSecSlowPost:getAppSecSlowPost", TypeShape.of(GetAppSecSlowPostResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getAppSecSlowPost:getAppSecSlowPost", TypeShape.of(GetAppSecSlowPostResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getAppSecSlowPostPlain(GetAppSecSlowPostPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getAppSecSlowPost:getAppSecSlowPost", TypeShape.of(GetAppSecSlowPostResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getAppSecSlowPost:getAppSecSlowPost", TypeShape.of(GetAppSecSlowPostResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getAppSecThreatIntel(GetAppSecThreatIntelArgs args) { return getAppSecThreatIntel(args, InvokeOptions.Empty); @@ -1107,13 +1236,16 @@ public static CompletableFuture getAppSecThreatIntel return getAppSecThreatIntelPlain(args, InvokeOptions.Empty); } public static Output getAppSecThreatIntel(GetAppSecThreatIntelArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getAppSecThreatIntel:getAppSecThreatIntel", TypeShape.of(GetAppSecThreatIntelResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getAppSecThreatIntel:getAppSecThreatIntel", TypeShape.of(GetAppSecThreatIntelResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getAppSecThreatIntel(GetAppSecThreatIntelArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getAppSecThreatIntel:getAppSecThreatIntel", TypeShape.of(GetAppSecThreatIntelResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getAppSecThreatIntel:getAppSecThreatIntel", TypeShape.of(GetAppSecThreatIntelResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getAppSecThreatIntelPlain(GetAppSecThreatIntelPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getAppSecThreatIntel:getAppSecThreatIntel", TypeShape.of(GetAppSecThreatIntelResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getAppSecThreatIntel:getAppSecThreatIntel", TypeShape.of(GetAppSecThreatIntelResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getAppSecTuningRecommendations(GetAppSecTuningRecommendationsArgs args) { return getAppSecTuningRecommendations(args, InvokeOptions.Empty); @@ -1122,13 +1254,16 @@ public static CompletableFuture getAppSecT return getAppSecTuningRecommendationsPlain(args, InvokeOptions.Empty); } public static Output getAppSecTuningRecommendations(GetAppSecTuningRecommendationsArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getAppSecTuningRecommendations:getAppSecTuningRecommendations", TypeShape.of(GetAppSecTuningRecommendationsResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getAppSecTuningRecommendations:getAppSecTuningRecommendations", TypeShape.of(GetAppSecTuningRecommendationsResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getAppSecTuningRecommendations(GetAppSecTuningRecommendationsArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getAppSecTuningRecommendations:getAppSecTuningRecommendations", TypeShape.of(GetAppSecTuningRecommendationsResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getAppSecTuningRecommendations:getAppSecTuningRecommendations", TypeShape.of(GetAppSecTuningRecommendationsResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getAppSecTuningRecommendationsPlain(GetAppSecTuningRecommendationsPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getAppSecTuningRecommendations:getAppSecTuningRecommendations", TypeShape.of(GetAppSecTuningRecommendationsResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getAppSecTuningRecommendations:getAppSecTuningRecommendations", TypeShape.of(GetAppSecTuningRecommendationsResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getAppSecVersionNotes(GetAppSecVersionNotesArgs args) { return getAppSecVersionNotes(args, InvokeOptions.Empty); @@ -1137,13 +1272,16 @@ public static CompletableFuture getAppSecVersionNot return getAppSecVersionNotesPlain(args, InvokeOptions.Empty); } public static Output getAppSecVersionNotes(GetAppSecVersionNotesArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getAppSecVersionNotes:getAppSecVersionNotes", TypeShape.of(GetAppSecVersionNotesResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getAppSecVersionNotes:getAppSecVersionNotes", TypeShape.of(GetAppSecVersionNotesResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getAppSecVersionNotes(GetAppSecVersionNotesArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getAppSecVersionNotes:getAppSecVersionNotes", TypeShape.of(GetAppSecVersionNotesResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getAppSecVersionNotes:getAppSecVersionNotes", TypeShape.of(GetAppSecVersionNotesResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getAppSecVersionNotesPlain(GetAppSecVersionNotesPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getAppSecVersionNotes:getAppSecVersionNotes", TypeShape.of(GetAppSecVersionNotesResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getAppSecVersionNotes:getAppSecVersionNotes", TypeShape.of(GetAppSecVersionNotesResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getAppSecWafMode(GetAppSecWafModeArgs args) { return getAppSecWafMode(args, InvokeOptions.Empty); @@ -1152,13 +1290,16 @@ public static CompletableFuture getAppSecWafModePlain(Ge return getAppSecWafModePlain(args, InvokeOptions.Empty); } public static Output getAppSecWafMode(GetAppSecWafModeArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getAppSecWafMode:getAppSecWafMode", TypeShape.of(GetAppSecWafModeResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getAppSecWafMode:getAppSecWafMode", TypeShape.of(GetAppSecWafModeResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getAppSecWafMode(GetAppSecWafModeArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getAppSecWafMode:getAppSecWafMode", TypeShape.of(GetAppSecWafModeResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getAppSecWafMode:getAppSecWafMode", TypeShape.of(GetAppSecWafModeResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getAppSecWafModePlain(GetAppSecWafModePlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getAppSecWafMode:getAppSecWafMode", TypeShape.of(GetAppSecWafModeResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getAppSecWafMode:getAppSecWafMode", TypeShape.of(GetAppSecWafModeResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getAppSecWapSelectedHostnames(GetAppSecWapSelectedHostnamesArgs args) { return getAppSecWapSelectedHostnames(args, InvokeOptions.Empty); @@ -1167,13 +1308,16 @@ public static CompletableFuture getAppSecWa return getAppSecWapSelectedHostnamesPlain(args, InvokeOptions.Empty); } public static Output getAppSecWapSelectedHostnames(GetAppSecWapSelectedHostnamesArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getAppSecWapSelectedHostnames:getAppSecWapSelectedHostnames", TypeShape.of(GetAppSecWapSelectedHostnamesResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getAppSecWapSelectedHostnames:getAppSecWapSelectedHostnames", TypeShape.of(GetAppSecWapSelectedHostnamesResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getAppSecWapSelectedHostnames(GetAppSecWapSelectedHostnamesArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getAppSecWapSelectedHostnames:getAppSecWapSelectedHostnames", TypeShape.of(GetAppSecWapSelectedHostnamesResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getAppSecWapSelectedHostnames:getAppSecWapSelectedHostnames", TypeShape.of(GetAppSecWapSelectedHostnamesResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getAppSecWapSelectedHostnamesPlain(GetAppSecWapSelectedHostnamesPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getAppSecWapSelectedHostnames:getAppSecWapSelectedHostnames", TypeShape.of(GetAppSecWapSelectedHostnamesResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getAppSecWapSelectedHostnames:getAppSecWapSelectedHostnames", TypeShape.of(GetAppSecWapSelectedHostnamesResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getAppsecAdvancedSettingsAttackPayloadLogging(GetAppsecAdvancedSettingsAttackPayloadLoggingArgs args) { return getAppsecAdvancedSettingsAttackPayloadLogging(args, InvokeOptions.Empty); @@ -1182,13 +1326,16 @@ public static CompletableFuture getAppsecAdvancedSettingsAttackPayloadLogging(GetAppsecAdvancedSettingsAttackPayloadLoggingArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getAppsecAdvancedSettingsAttackPayloadLogging:getAppsecAdvancedSettingsAttackPayloadLogging", TypeShape.of(GetAppsecAdvancedSettingsAttackPayloadLoggingResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getAppsecAdvancedSettingsAttackPayloadLogging:getAppsecAdvancedSettingsAttackPayloadLogging", TypeShape.of(GetAppsecAdvancedSettingsAttackPayloadLoggingResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getAppsecAdvancedSettingsAttackPayloadLogging(GetAppsecAdvancedSettingsAttackPayloadLoggingArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getAppsecAdvancedSettingsAttackPayloadLogging:getAppsecAdvancedSettingsAttackPayloadLogging", TypeShape.of(GetAppsecAdvancedSettingsAttackPayloadLoggingResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getAppsecAdvancedSettingsAttackPayloadLogging:getAppsecAdvancedSettingsAttackPayloadLogging", TypeShape.of(GetAppsecAdvancedSettingsAttackPayloadLoggingResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getAppsecAdvancedSettingsAttackPayloadLoggingPlain(GetAppsecAdvancedSettingsAttackPayloadLoggingPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getAppsecAdvancedSettingsAttackPayloadLogging:getAppsecAdvancedSettingsAttackPayloadLogging", TypeShape.of(GetAppsecAdvancedSettingsAttackPayloadLoggingResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getAppsecAdvancedSettingsAttackPayloadLogging:getAppsecAdvancedSettingsAttackPayloadLogging", TypeShape.of(GetAppsecAdvancedSettingsAttackPayloadLoggingResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getAppsecAdvancedSettingsPiiLearning(GetAppsecAdvancedSettingsPiiLearningArgs args) { return getAppsecAdvancedSettingsPiiLearning(args, InvokeOptions.Empty); @@ -1197,13 +1344,16 @@ public static CompletableFuture getA return getAppsecAdvancedSettingsPiiLearningPlain(args, InvokeOptions.Empty); } public static Output getAppsecAdvancedSettingsPiiLearning(GetAppsecAdvancedSettingsPiiLearningArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getAppsecAdvancedSettingsPiiLearning:getAppsecAdvancedSettingsPiiLearning", TypeShape.of(GetAppsecAdvancedSettingsPiiLearningResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getAppsecAdvancedSettingsPiiLearning:getAppsecAdvancedSettingsPiiLearning", TypeShape.of(GetAppsecAdvancedSettingsPiiLearningResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getAppsecAdvancedSettingsPiiLearning(GetAppsecAdvancedSettingsPiiLearningArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getAppsecAdvancedSettingsPiiLearning:getAppsecAdvancedSettingsPiiLearning", TypeShape.of(GetAppsecAdvancedSettingsPiiLearningResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getAppsecAdvancedSettingsPiiLearning:getAppsecAdvancedSettingsPiiLearning", TypeShape.of(GetAppsecAdvancedSettingsPiiLearningResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getAppsecAdvancedSettingsPiiLearningPlain(GetAppsecAdvancedSettingsPiiLearningPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getAppsecAdvancedSettingsPiiLearning:getAppsecAdvancedSettingsPiiLearning", TypeShape.of(GetAppsecAdvancedSettingsPiiLearningResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getAppsecAdvancedSettingsPiiLearning:getAppsecAdvancedSettingsPiiLearning", TypeShape.of(GetAppsecAdvancedSettingsPiiLearningResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getAppsecAdvancedSettingsRequestBody(GetAppsecAdvancedSettingsRequestBodyArgs args) { return getAppsecAdvancedSettingsRequestBody(args, InvokeOptions.Empty); @@ -1212,13 +1362,16 @@ public static CompletableFuture getA return getAppsecAdvancedSettingsRequestBodyPlain(args, InvokeOptions.Empty); } public static Output getAppsecAdvancedSettingsRequestBody(GetAppsecAdvancedSettingsRequestBodyArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getAppsecAdvancedSettingsRequestBody:getAppsecAdvancedSettingsRequestBody", TypeShape.of(GetAppsecAdvancedSettingsRequestBodyResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getAppsecAdvancedSettingsRequestBody:getAppsecAdvancedSettingsRequestBody", TypeShape.of(GetAppsecAdvancedSettingsRequestBodyResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getAppsecAdvancedSettingsRequestBody(GetAppsecAdvancedSettingsRequestBodyArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getAppsecAdvancedSettingsRequestBody:getAppsecAdvancedSettingsRequestBody", TypeShape.of(GetAppsecAdvancedSettingsRequestBodyResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getAppsecAdvancedSettingsRequestBody:getAppsecAdvancedSettingsRequestBody", TypeShape.of(GetAppsecAdvancedSettingsRequestBodyResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getAppsecAdvancedSettingsRequestBodyPlain(GetAppsecAdvancedSettingsRequestBodyPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getAppsecAdvancedSettingsRequestBody:getAppsecAdvancedSettingsRequestBody", TypeShape.of(GetAppsecAdvancedSettingsRequestBodyResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getAppsecAdvancedSettingsRequestBody:getAppsecAdvancedSettingsRequestBody", TypeShape.of(GetAppsecAdvancedSettingsRequestBodyResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getAuthoritiesSet(GetAuthoritiesSetArgs args) { return getAuthoritiesSet(args, InvokeOptions.Empty); @@ -1227,13 +1380,16 @@ public static CompletableFuture getAuthoritiesSetPlain( return getAuthoritiesSetPlain(args, InvokeOptions.Empty); } public static Output getAuthoritiesSet(GetAuthoritiesSetArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getAuthoritiesSet:getAuthoritiesSet", TypeShape.of(GetAuthoritiesSetResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getAuthoritiesSet:getAuthoritiesSet", TypeShape.of(GetAuthoritiesSetResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getAuthoritiesSet(GetAuthoritiesSetArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getAuthoritiesSet:getAuthoritiesSet", TypeShape.of(GetAuthoritiesSetResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getAuthoritiesSet:getAuthoritiesSet", TypeShape.of(GetAuthoritiesSetResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getAuthoritiesSetPlain(GetAuthoritiesSetPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getAuthoritiesSet:getAuthoritiesSet", TypeShape.of(GetAuthoritiesSetResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getAuthoritiesSet:getAuthoritiesSet", TypeShape.of(GetAuthoritiesSetResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getBotmanAkamaiBotCategory() { return getBotmanAkamaiBotCategory(GetBotmanAkamaiBotCategoryArgs.Empty, InvokeOptions.Empty); @@ -1248,13 +1404,16 @@ public static CompletableFuture getBotmanAkama return getBotmanAkamaiBotCategoryPlain(args, InvokeOptions.Empty); } public static Output getBotmanAkamaiBotCategory(GetBotmanAkamaiBotCategoryArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getBotmanAkamaiBotCategory:getBotmanAkamaiBotCategory", TypeShape.of(GetBotmanAkamaiBotCategoryResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getBotmanAkamaiBotCategory:getBotmanAkamaiBotCategory", TypeShape.of(GetBotmanAkamaiBotCategoryResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getBotmanAkamaiBotCategory(GetBotmanAkamaiBotCategoryArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getBotmanAkamaiBotCategory:getBotmanAkamaiBotCategory", TypeShape.of(GetBotmanAkamaiBotCategoryResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getBotmanAkamaiBotCategory:getBotmanAkamaiBotCategory", TypeShape.of(GetBotmanAkamaiBotCategoryResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getBotmanAkamaiBotCategoryPlain(GetBotmanAkamaiBotCategoryPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getBotmanAkamaiBotCategory:getBotmanAkamaiBotCategory", TypeShape.of(GetBotmanAkamaiBotCategoryResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getBotmanAkamaiBotCategory:getBotmanAkamaiBotCategory", TypeShape.of(GetBotmanAkamaiBotCategoryResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getBotmanAkamaiBotCategoryAction(GetBotmanAkamaiBotCategoryActionArgs args) { return getBotmanAkamaiBotCategoryAction(args, InvokeOptions.Empty); @@ -1263,13 +1422,16 @@ public static CompletableFuture getBotma return getBotmanAkamaiBotCategoryActionPlain(args, InvokeOptions.Empty); } public static Output getBotmanAkamaiBotCategoryAction(GetBotmanAkamaiBotCategoryActionArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getBotmanAkamaiBotCategoryAction:getBotmanAkamaiBotCategoryAction", TypeShape.of(GetBotmanAkamaiBotCategoryActionResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getBotmanAkamaiBotCategoryAction:getBotmanAkamaiBotCategoryAction", TypeShape.of(GetBotmanAkamaiBotCategoryActionResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getBotmanAkamaiBotCategoryAction(GetBotmanAkamaiBotCategoryActionArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getBotmanAkamaiBotCategoryAction:getBotmanAkamaiBotCategoryAction", TypeShape.of(GetBotmanAkamaiBotCategoryActionResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getBotmanAkamaiBotCategoryAction:getBotmanAkamaiBotCategoryAction", TypeShape.of(GetBotmanAkamaiBotCategoryActionResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getBotmanAkamaiBotCategoryActionPlain(GetBotmanAkamaiBotCategoryActionPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getBotmanAkamaiBotCategoryAction:getBotmanAkamaiBotCategoryAction", TypeShape.of(GetBotmanAkamaiBotCategoryActionResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getBotmanAkamaiBotCategoryAction:getBotmanAkamaiBotCategoryAction", TypeShape.of(GetBotmanAkamaiBotCategoryActionResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getBotmanAkamaiDefinedBot() { return getBotmanAkamaiDefinedBot(GetBotmanAkamaiDefinedBotArgs.Empty, InvokeOptions.Empty); @@ -1284,13 +1446,16 @@ public static CompletableFuture getBotmanAkamai return getBotmanAkamaiDefinedBotPlain(args, InvokeOptions.Empty); } public static Output getBotmanAkamaiDefinedBot(GetBotmanAkamaiDefinedBotArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getBotmanAkamaiDefinedBot:getBotmanAkamaiDefinedBot", TypeShape.of(GetBotmanAkamaiDefinedBotResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getBotmanAkamaiDefinedBot:getBotmanAkamaiDefinedBot", TypeShape.of(GetBotmanAkamaiDefinedBotResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getBotmanAkamaiDefinedBot(GetBotmanAkamaiDefinedBotArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getBotmanAkamaiDefinedBot:getBotmanAkamaiDefinedBot", TypeShape.of(GetBotmanAkamaiDefinedBotResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getBotmanAkamaiDefinedBot:getBotmanAkamaiDefinedBot", TypeShape.of(GetBotmanAkamaiDefinedBotResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getBotmanAkamaiDefinedBotPlain(GetBotmanAkamaiDefinedBotPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getBotmanAkamaiDefinedBot:getBotmanAkamaiDefinedBot", TypeShape.of(GetBotmanAkamaiDefinedBotResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getBotmanAkamaiDefinedBot:getBotmanAkamaiDefinedBot", TypeShape.of(GetBotmanAkamaiDefinedBotResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getBotmanBotAnalyticsCookie(GetBotmanBotAnalyticsCookieArgs args) { return getBotmanBotAnalyticsCookie(args, InvokeOptions.Empty); @@ -1299,13 +1464,16 @@ public static CompletableFuture getBotmanBotA return getBotmanBotAnalyticsCookiePlain(args, InvokeOptions.Empty); } public static Output getBotmanBotAnalyticsCookie(GetBotmanBotAnalyticsCookieArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getBotmanBotAnalyticsCookie:getBotmanBotAnalyticsCookie", TypeShape.of(GetBotmanBotAnalyticsCookieResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getBotmanBotAnalyticsCookie:getBotmanBotAnalyticsCookie", TypeShape.of(GetBotmanBotAnalyticsCookieResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getBotmanBotAnalyticsCookie(GetBotmanBotAnalyticsCookieArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getBotmanBotAnalyticsCookie:getBotmanBotAnalyticsCookie", TypeShape.of(GetBotmanBotAnalyticsCookieResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getBotmanBotAnalyticsCookie:getBotmanBotAnalyticsCookie", TypeShape.of(GetBotmanBotAnalyticsCookieResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getBotmanBotAnalyticsCookiePlain(GetBotmanBotAnalyticsCookiePlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getBotmanBotAnalyticsCookie:getBotmanBotAnalyticsCookie", TypeShape.of(GetBotmanBotAnalyticsCookieResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getBotmanBotAnalyticsCookie:getBotmanBotAnalyticsCookie", TypeShape.of(GetBotmanBotAnalyticsCookieResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getBotmanBotAnalyticsCookieValues() { return getBotmanBotAnalyticsCookieValues(InvokeArgs.Empty, InvokeOptions.Empty); @@ -1320,13 +1488,16 @@ public static CompletableFuture getBotm return getBotmanBotAnalyticsCookieValuesPlain(args, InvokeOptions.Empty); } public static Output getBotmanBotAnalyticsCookieValues(InvokeArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getBotmanBotAnalyticsCookieValues:getBotmanBotAnalyticsCookieValues", TypeShape.of(GetBotmanBotAnalyticsCookieValuesResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getBotmanBotAnalyticsCookieValues:getBotmanBotAnalyticsCookieValues", TypeShape.of(GetBotmanBotAnalyticsCookieValuesResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getBotmanBotAnalyticsCookieValues(InvokeArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getBotmanBotAnalyticsCookieValues:getBotmanBotAnalyticsCookieValues", TypeShape.of(GetBotmanBotAnalyticsCookieValuesResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getBotmanBotAnalyticsCookieValues:getBotmanBotAnalyticsCookieValues", TypeShape.of(GetBotmanBotAnalyticsCookieValuesResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getBotmanBotAnalyticsCookieValuesPlain(InvokeArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getBotmanBotAnalyticsCookieValues:getBotmanBotAnalyticsCookieValues", TypeShape.of(GetBotmanBotAnalyticsCookieValuesResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getBotmanBotAnalyticsCookieValues:getBotmanBotAnalyticsCookieValues", TypeShape.of(GetBotmanBotAnalyticsCookieValuesResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getBotmanBotCategoryException(GetBotmanBotCategoryExceptionArgs args) { return getBotmanBotCategoryException(args, InvokeOptions.Empty); @@ -1335,13 +1506,16 @@ public static CompletableFuture getBotmanBo return getBotmanBotCategoryExceptionPlain(args, InvokeOptions.Empty); } public static Output getBotmanBotCategoryException(GetBotmanBotCategoryExceptionArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getBotmanBotCategoryException:getBotmanBotCategoryException", TypeShape.of(GetBotmanBotCategoryExceptionResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getBotmanBotCategoryException:getBotmanBotCategoryException", TypeShape.of(GetBotmanBotCategoryExceptionResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getBotmanBotCategoryException(GetBotmanBotCategoryExceptionArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getBotmanBotCategoryException:getBotmanBotCategoryException", TypeShape.of(GetBotmanBotCategoryExceptionResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getBotmanBotCategoryException:getBotmanBotCategoryException", TypeShape.of(GetBotmanBotCategoryExceptionResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getBotmanBotCategoryExceptionPlain(GetBotmanBotCategoryExceptionPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getBotmanBotCategoryException:getBotmanBotCategoryException", TypeShape.of(GetBotmanBotCategoryExceptionResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getBotmanBotCategoryException:getBotmanBotCategoryException", TypeShape.of(GetBotmanBotCategoryExceptionResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getBotmanBotDetection() { return getBotmanBotDetection(GetBotmanBotDetectionArgs.Empty, InvokeOptions.Empty); @@ -1356,13 +1530,16 @@ public static CompletableFuture getBotmanBotDetecti return getBotmanBotDetectionPlain(args, InvokeOptions.Empty); } public static Output getBotmanBotDetection(GetBotmanBotDetectionArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getBotmanBotDetection:getBotmanBotDetection", TypeShape.of(GetBotmanBotDetectionResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getBotmanBotDetection:getBotmanBotDetection", TypeShape.of(GetBotmanBotDetectionResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getBotmanBotDetection(GetBotmanBotDetectionArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getBotmanBotDetection:getBotmanBotDetection", TypeShape.of(GetBotmanBotDetectionResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getBotmanBotDetection:getBotmanBotDetection", TypeShape.of(GetBotmanBotDetectionResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getBotmanBotDetectionPlain(GetBotmanBotDetectionPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getBotmanBotDetection:getBotmanBotDetection", TypeShape.of(GetBotmanBotDetectionResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getBotmanBotDetection:getBotmanBotDetection", TypeShape.of(GetBotmanBotDetectionResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getBotmanBotDetectionAction(GetBotmanBotDetectionActionArgs args) { return getBotmanBotDetectionAction(args, InvokeOptions.Empty); @@ -1371,13 +1548,16 @@ public static CompletableFuture getBotmanBotD return getBotmanBotDetectionActionPlain(args, InvokeOptions.Empty); } public static Output getBotmanBotDetectionAction(GetBotmanBotDetectionActionArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getBotmanBotDetectionAction:getBotmanBotDetectionAction", TypeShape.of(GetBotmanBotDetectionActionResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getBotmanBotDetectionAction:getBotmanBotDetectionAction", TypeShape.of(GetBotmanBotDetectionActionResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getBotmanBotDetectionAction(GetBotmanBotDetectionActionArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getBotmanBotDetectionAction:getBotmanBotDetectionAction", TypeShape.of(GetBotmanBotDetectionActionResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getBotmanBotDetectionAction:getBotmanBotDetectionAction", TypeShape.of(GetBotmanBotDetectionActionResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getBotmanBotDetectionActionPlain(GetBotmanBotDetectionActionPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getBotmanBotDetectionAction:getBotmanBotDetectionAction", TypeShape.of(GetBotmanBotDetectionActionResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getBotmanBotDetectionAction:getBotmanBotDetectionAction", TypeShape.of(GetBotmanBotDetectionActionResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getBotmanBotEndpointCoverageReport() { return getBotmanBotEndpointCoverageReport(GetBotmanBotEndpointCoverageReportArgs.Empty, InvokeOptions.Empty); @@ -1392,13 +1572,16 @@ public static CompletableFuture getBot return getBotmanBotEndpointCoverageReportPlain(args, InvokeOptions.Empty); } public static Output getBotmanBotEndpointCoverageReport(GetBotmanBotEndpointCoverageReportArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getBotmanBotEndpointCoverageReport:getBotmanBotEndpointCoverageReport", TypeShape.of(GetBotmanBotEndpointCoverageReportResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getBotmanBotEndpointCoverageReport:getBotmanBotEndpointCoverageReport", TypeShape.of(GetBotmanBotEndpointCoverageReportResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getBotmanBotEndpointCoverageReport(GetBotmanBotEndpointCoverageReportArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getBotmanBotEndpointCoverageReport:getBotmanBotEndpointCoverageReport", TypeShape.of(GetBotmanBotEndpointCoverageReportResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getBotmanBotEndpointCoverageReport:getBotmanBotEndpointCoverageReport", TypeShape.of(GetBotmanBotEndpointCoverageReportResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getBotmanBotEndpointCoverageReportPlain(GetBotmanBotEndpointCoverageReportPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getBotmanBotEndpointCoverageReport:getBotmanBotEndpointCoverageReport", TypeShape.of(GetBotmanBotEndpointCoverageReportResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getBotmanBotEndpointCoverageReport:getBotmanBotEndpointCoverageReport", TypeShape.of(GetBotmanBotEndpointCoverageReportResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getBotmanBotManagementSettings(GetBotmanBotManagementSettingsArgs args) { return getBotmanBotManagementSettings(args, InvokeOptions.Empty); @@ -1407,13 +1590,16 @@ public static CompletableFuture getBotmanB return getBotmanBotManagementSettingsPlain(args, InvokeOptions.Empty); } public static Output getBotmanBotManagementSettings(GetBotmanBotManagementSettingsArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getBotmanBotManagementSettings:getBotmanBotManagementSettings", TypeShape.of(GetBotmanBotManagementSettingsResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getBotmanBotManagementSettings:getBotmanBotManagementSettings", TypeShape.of(GetBotmanBotManagementSettingsResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getBotmanBotManagementSettings(GetBotmanBotManagementSettingsArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getBotmanBotManagementSettings:getBotmanBotManagementSettings", TypeShape.of(GetBotmanBotManagementSettingsResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getBotmanBotManagementSettings:getBotmanBotManagementSettings", TypeShape.of(GetBotmanBotManagementSettingsResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getBotmanBotManagementSettingsPlain(GetBotmanBotManagementSettingsPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getBotmanBotManagementSettings:getBotmanBotManagementSettings", TypeShape.of(GetBotmanBotManagementSettingsResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getBotmanBotManagementSettings:getBotmanBotManagementSettings", TypeShape.of(GetBotmanBotManagementSettingsResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getBotmanChallengeAction(GetBotmanChallengeActionArgs args) { return getBotmanChallengeAction(args, InvokeOptions.Empty); @@ -1422,13 +1608,16 @@ public static CompletableFuture getBotmanChallen return getBotmanChallengeActionPlain(args, InvokeOptions.Empty); } public static Output getBotmanChallengeAction(GetBotmanChallengeActionArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getBotmanChallengeAction:getBotmanChallengeAction", TypeShape.of(GetBotmanChallengeActionResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getBotmanChallengeAction:getBotmanChallengeAction", TypeShape.of(GetBotmanChallengeActionResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getBotmanChallengeAction(GetBotmanChallengeActionArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getBotmanChallengeAction:getBotmanChallengeAction", TypeShape.of(GetBotmanChallengeActionResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getBotmanChallengeAction:getBotmanChallengeAction", TypeShape.of(GetBotmanChallengeActionResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getBotmanChallengeActionPlain(GetBotmanChallengeActionPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getBotmanChallengeAction:getBotmanChallengeAction", TypeShape.of(GetBotmanChallengeActionResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getBotmanChallengeAction:getBotmanChallengeAction", TypeShape.of(GetBotmanChallengeActionResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getBotmanChallengeInjectionRules(GetBotmanChallengeInjectionRulesArgs args) { return getBotmanChallengeInjectionRules(args, InvokeOptions.Empty); @@ -1437,13 +1626,16 @@ public static CompletableFuture getBotma return getBotmanChallengeInjectionRulesPlain(args, InvokeOptions.Empty); } public static Output getBotmanChallengeInjectionRules(GetBotmanChallengeInjectionRulesArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getBotmanChallengeInjectionRules:getBotmanChallengeInjectionRules", TypeShape.of(GetBotmanChallengeInjectionRulesResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getBotmanChallengeInjectionRules:getBotmanChallengeInjectionRules", TypeShape.of(GetBotmanChallengeInjectionRulesResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getBotmanChallengeInjectionRules(GetBotmanChallengeInjectionRulesArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getBotmanChallengeInjectionRules:getBotmanChallengeInjectionRules", TypeShape.of(GetBotmanChallengeInjectionRulesResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getBotmanChallengeInjectionRules:getBotmanChallengeInjectionRules", TypeShape.of(GetBotmanChallengeInjectionRulesResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getBotmanChallengeInjectionRulesPlain(GetBotmanChallengeInjectionRulesPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getBotmanChallengeInjectionRules:getBotmanChallengeInjectionRules", TypeShape.of(GetBotmanChallengeInjectionRulesResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getBotmanChallengeInjectionRules:getBotmanChallengeInjectionRules", TypeShape.of(GetBotmanChallengeInjectionRulesResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getBotmanChallengeInterceptionRules(GetBotmanChallengeInterceptionRulesArgs args) { return getBotmanChallengeInterceptionRules(args, InvokeOptions.Empty); @@ -1452,13 +1644,16 @@ public static CompletableFuture getBo return getBotmanChallengeInterceptionRulesPlain(args, InvokeOptions.Empty); } public static Output getBotmanChallengeInterceptionRules(GetBotmanChallengeInterceptionRulesArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getBotmanChallengeInterceptionRules:getBotmanChallengeInterceptionRules", TypeShape.of(GetBotmanChallengeInterceptionRulesResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getBotmanChallengeInterceptionRules:getBotmanChallengeInterceptionRules", TypeShape.of(GetBotmanChallengeInterceptionRulesResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getBotmanChallengeInterceptionRules(GetBotmanChallengeInterceptionRulesArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getBotmanChallengeInterceptionRules:getBotmanChallengeInterceptionRules", TypeShape.of(GetBotmanChallengeInterceptionRulesResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getBotmanChallengeInterceptionRules:getBotmanChallengeInterceptionRules", TypeShape.of(GetBotmanChallengeInterceptionRulesResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getBotmanChallengeInterceptionRulesPlain(GetBotmanChallengeInterceptionRulesPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getBotmanChallengeInterceptionRules:getBotmanChallengeInterceptionRules", TypeShape.of(GetBotmanChallengeInterceptionRulesResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getBotmanChallengeInterceptionRules:getBotmanChallengeInterceptionRules", TypeShape.of(GetBotmanChallengeInterceptionRulesResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getBotmanClientSideSecurity(GetBotmanClientSideSecurityArgs args) { return getBotmanClientSideSecurity(args, InvokeOptions.Empty); @@ -1467,13 +1662,16 @@ public static CompletableFuture getBotmanClie return getBotmanClientSideSecurityPlain(args, InvokeOptions.Empty); } public static Output getBotmanClientSideSecurity(GetBotmanClientSideSecurityArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getBotmanClientSideSecurity:getBotmanClientSideSecurity", TypeShape.of(GetBotmanClientSideSecurityResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getBotmanClientSideSecurity:getBotmanClientSideSecurity", TypeShape.of(GetBotmanClientSideSecurityResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getBotmanClientSideSecurity(GetBotmanClientSideSecurityArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getBotmanClientSideSecurity:getBotmanClientSideSecurity", TypeShape.of(GetBotmanClientSideSecurityResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getBotmanClientSideSecurity:getBotmanClientSideSecurity", TypeShape.of(GetBotmanClientSideSecurityResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getBotmanClientSideSecurityPlain(GetBotmanClientSideSecurityPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getBotmanClientSideSecurity:getBotmanClientSideSecurity", TypeShape.of(GetBotmanClientSideSecurityResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getBotmanClientSideSecurity:getBotmanClientSideSecurity", TypeShape.of(GetBotmanClientSideSecurityResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getBotmanConditionalAction(GetBotmanConditionalActionArgs args) { return getBotmanConditionalAction(args, InvokeOptions.Empty); @@ -1482,13 +1680,16 @@ public static CompletableFuture getBotmanCondi return getBotmanConditionalActionPlain(args, InvokeOptions.Empty); } public static Output getBotmanConditionalAction(GetBotmanConditionalActionArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getBotmanConditionalAction:getBotmanConditionalAction", TypeShape.of(GetBotmanConditionalActionResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getBotmanConditionalAction:getBotmanConditionalAction", TypeShape.of(GetBotmanConditionalActionResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getBotmanConditionalAction(GetBotmanConditionalActionArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getBotmanConditionalAction:getBotmanConditionalAction", TypeShape.of(GetBotmanConditionalActionResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getBotmanConditionalAction:getBotmanConditionalAction", TypeShape.of(GetBotmanConditionalActionResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getBotmanConditionalActionPlain(GetBotmanConditionalActionPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getBotmanConditionalAction:getBotmanConditionalAction", TypeShape.of(GetBotmanConditionalActionResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getBotmanConditionalAction:getBotmanConditionalAction", TypeShape.of(GetBotmanConditionalActionResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getBotmanCustomBotCategory(GetBotmanCustomBotCategoryArgs args) { return getBotmanCustomBotCategory(args, InvokeOptions.Empty); @@ -1497,13 +1698,16 @@ public static CompletableFuture getBotmanCusto return getBotmanCustomBotCategoryPlain(args, InvokeOptions.Empty); } public static Output getBotmanCustomBotCategory(GetBotmanCustomBotCategoryArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getBotmanCustomBotCategory:getBotmanCustomBotCategory", TypeShape.of(GetBotmanCustomBotCategoryResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getBotmanCustomBotCategory:getBotmanCustomBotCategory", TypeShape.of(GetBotmanCustomBotCategoryResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getBotmanCustomBotCategory(GetBotmanCustomBotCategoryArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getBotmanCustomBotCategory:getBotmanCustomBotCategory", TypeShape.of(GetBotmanCustomBotCategoryResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getBotmanCustomBotCategory:getBotmanCustomBotCategory", TypeShape.of(GetBotmanCustomBotCategoryResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getBotmanCustomBotCategoryPlain(GetBotmanCustomBotCategoryPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getBotmanCustomBotCategory:getBotmanCustomBotCategory", TypeShape.of(GetBotmanCustomBotCategoryResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getBotmanCustomBotCategory:getBotmanCustomBotCategory", TypeShape.of(GetBotmanCustomBotCategoryResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getBotmanCustomBotCategoryAction(GetBotmanCustomBotCategoryActionArgs args) { return getBotmanCustomBotCategoryAction(args, InvokeOptions.Empty); @@ -1512,13 +1716,16 @@ public static CompletableFuture getBotma return getBotmanCustomBotCategoryActionPlain(args, InvokeOptions.Empty); } public static Output getBotmanCustomBotCategoryAction(GetBotmanCustomBotCategoryActionArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getBotmanCustomBotCategoryAction:getBotmanCustomBotCategoryAction", TypeShape.of(GetBotmanCustomBotCategoryActionResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getBotmanCustomBotCategoryAction:getBotmanCustomBotCategoryAction", TypeShape.of(GetBotmanCustomBotCategoryActionResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getBotmanCustomBotCategoryAction(GetBotmanCustomBotCategoryActionArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getBotmanCustomBotCategoryAction:getBotmanCustomBotCategoryAction", TypeShape.of(GetBotmanCustomBotCategoryActionResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getBotmanCustomBotCategoryAction:getBotmanCustomBotCategoryAction", TypeShape.of(GetBotmanCustomBotCategoryActionResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getBotmanCustomBotCategoryActionPlain(GetBotmanCustomBotCategoryActionPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getBotmanCustomBotCategoryAction:getBotmanCustomBotCategoryAction", TypeShape.of(GetBotmanCustomBotCategoryActionResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getBotmanCustomBotCategoryAction:getBotmanCustomBotCategoryAction", TypeShape.of(GetBotmanCustomBotCategoryActionResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getBotmanCustomBotCategorySequence(GetBotmanCustomBotCategorySequenceArgs args) { return getBotmanCustomBotCategorySequence(args, InvokeOptions.Empty); @@ -1527,13 +1734,16 @@ public static CompletableFuture getBot return getBotmanCustomBotCategorySequencePlain(args, InvokeOptions.Empty); } public static Output getBotmanCustomBotCategorySequence(GetBotmanCustomBotCategorySequenceArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getBotmanCustomBotCategorySequence:getBotmanCustomBotCategorySequence", TypeShape.of(GetBotmanCustomBotCategorySequenceResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getBotmanCustomBotCategorySequence:getBotmanCustomBotCategorySequence", TypeShape.of(GetBotmanCustomBotCategorySequenceResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getBotmanCustomBotCategorySequence(GetBotmanCustomBotCategorySequenceArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getBotmanCustomBotCategorySequence:getBotmanCustomBotCategorySequence", TypeShape.of(GetBotmanCustomBotCategorySequenceResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getBotmanCustomBotCategorySequence:getBotmanCustomBotCategorySequence", TypeShape.of(GetBotmanCustomBotCategorySequenceResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getBotmanCustomBotCategorySequencePlain(GetBotmanCustomBotCategorySequencePlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getBotmanCustomBotCategorySequence:getBotmanCustomBotCategorySequence", TypeShape.of(GetBotmanCustomBotCategorySequenceResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getBotmanCustomBotCategorySequence:getBotmanCustomBotCategorySequence", TypeShape.of(GetBotmanCustomBotCategorySequenceResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getBotmanCustomClient(GetBotmanCustomClientArgs args) { return getBotmanCustomClient(args, InvokeOptions.Empty); @@ -1542,13 +1752,16 @@ public static CompletableFuture getBotmanCustomClie return getBotmanCustomClientPlain(args, InvokeOptions.Empty); } public static Output getBotmanCustomClient(GetBotmanCustomClientArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getBotmanCustomClient:getBotmanCustomClient", TypeShape.of(GetBotmanCustomClientResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getBotmanCustomClient:getBotmanCustomClient", TypeShape.of(GetBotmanCustomClientResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getBotmanCustomClient(GetBotmanCustomClientArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getBotmanCustomClient:getBotmanCustomClient", TypeShape.of(GetBotmanCustomClientResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getBotmanCustomClient:getBotmanCustomClient", TypeShape.of(GetBotmanCustomClientResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getBotmanCustomClientPlain(GetBotmanCustomClientPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getBotmanCustomClient:getBotmanCustomClient", TypeShape.of(GetBotmanCustomClientResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getBotmanCustomClient:getBotmanCustomClient", TypeShape.of(GetBotmanCustomClientResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getBotmanCustomClientSequence(GetBotmanCustomClientSequenceArgs args) { return getBotmanCustomClientSequence(args, InvokeOptions.Empty); @@ -1557,13 +1770,16 @@ public static CompletableFuture getBotmanCu return getBotmanCustomClientSequencePlain(args, InvokeOptions.Empty); } public static Output getBotmanCustomClientSequence(GetBotmanCustomClientSequenceArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getBotmanCustomClientSequence:getBotmanCustomClientSequence", TypeShape.of(GetBotmanCustomClientSequenceResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getBotmanCustomClientSequence:getBotmanCustomClientSequence", TypeShape.of(GetBotmanCustomClientSequenceResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getBotmanCustomClientSequence(GetBotmanCustomClientSequenceArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getBotmanCustomClientSequence:getBotmanCustomClientSequence", TypeShape.of(GetBotmanCustomClientSequenceResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getBotmanCustomClientSequence:getBotmanCustomClientSequence", TypeShape.of(GetBotmanCustomClientSequenceResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getBotmanCustomClientSequencePlain(GetBotmanCustomClientSequencePlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getBotmanCustomClientSequence:getBotmanCustomClientSequence", TypeShape.of(GetBotmanCustomClientSequenceResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getBotmanCustomClientSequence:getBotmanCustomClientSequence", TypeShape.of(GetBotmanCustomClientSequenceResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getBotmanCustomDefinedBot(GetBotmanCustomDefinedBotArgs args) { return getBotmanCustomDefinedBot(args, InvokeOptions.Empty); @@ -1572,13 +1788,16 @@ public static CompletableFuture getBotmanCustom return getBotmanCustomDefinedBotPlain(args, InvokeOptions.Empty); } public static Output getBotmanCustomDefinedBot(GetBotmanCustomDefinedBotArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getBotmanCustomDefinedBot:getBotmanCustomDefinedBot", TypeShape.of(GetBotmanCustomDefinedBotResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getBotmanCustomDefinedBot:getBotmanCustomDefinedBot", TypeShape.of(GetBotmanCustomDefinedBotResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getBotmanCustomDefinedBot(GetBotmanCustomDefinedBotArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getBotmanCustomDefinedBot:getBotmanCustomDefinedBot", TypeShape.of(GetBotmanCustomDefinedBotResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getBotmanCustomDefinedBot:getBotmanCustomDefinedBot", TypeShape.of(GetBotmanCustomDefinedBotResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getBotmanCustomDefinedBotPlain(GetBotmanCustomDefinedBotPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getBotmanCustomDefinedBot:getBotmanCustomDefinedBot", TypeShape.of(GetBotmanCustomDefinedBotResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getBotmanCustomDefinedBot:getBotmanCustomDefinedBot", TypeShape.of(GetBotmanCustomDefinedBotResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getBotmanCustomDenyAction(GetBotmanCustomDenyActionArgs args) { return getBotmanCustomDenyAction(args, InvokeOptions.Empty); @@ -1587,13 +1806,16 @@ public static CompletableFuture getBotmanCustom return getBotmanCustomDenyActionPlain(args, InvokeOptions.Empty); } public static Output getBotmanCustomDenyAction(GetBotmanCustomDenyActionArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getBotmanCustomDenyAction:getBotmanCustomDenyAction", TypeShape.of(GetBotmanCustomDenyActionResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getBotmanCustomDenyAction:getBotmanCustomDenyAction", TypeShape.of(GetBotmanCustomDenyActionResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getBotmanCustomDenyAction(GetBotmanCustomDenyActionArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getBotmanCustomDenyAction:getBotmanCustomDenyAction", TypeShape.of(GetBotmanCustomDenyActionResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getBotmanCustomDenyAction:getBotmanCustomDenyAction", TypeShape.of(GetBotmanCustomDenyActionResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getBotmanCustomDenyActionPlain(GetBotmanCustomDenyActionPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getBotmanCustomDenyAction:getBotmanCustomDenyAction", TypeShape.of(GetBotmanCustomDenyActionResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getBotmanCustomDenyAction:getBotmanCustomDenyAction", TypeShape.of(GetBotmanCustomDenyActionResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getBotmanJavascriptInjection(GetBotmanJavascriptInjectionArgs args) { return getBotmanJavascriptInjection(args, InvokeOptions.Empty); @@ -1602,13 +1824,16 @@ public static CompletableFuture getBotmanJav return getBotmanJavascriptInjectionPlain(args, InvokeOptions.Empty); } public static Output getBotmanJavascriptInjection(GetBotmanJavascriptInjectionArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getBotmanJavascriptInjection:getBotmanJavascriptInjection", TypeShape.of(GetBotmanJavascriptInjectionResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getBotmanJavascriptInjection:getBotmanJavascriptInjection", TypeShape.of(GetBotmanJavascriptInjectionResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getBotmanJavascriptInjection(GetBotmanJavascriptInjectionArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getBotmanJavascriptInjection:getBotmanJavascriptInjection", TypeShape.of(GetBotmanJavascriptInjectionResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getBotmanJavascriptInjection:getBotmanJavascriptInjection", TypeShape.of(GetBotmanJavascriptInjectionResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getBotmanJavascriptInjectionPlain(GetBotmanJavascriptInjectionPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getBotmanJavascriptInjection:getBotmanJavascriptInjection", TypeShape.of(GetBotmanJavascriptInjectionResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getBotmanJavascriptInjection:getBotmanJavascriptInjection", TypeShape.of(GetBotmanJavascriptInjectionResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getBotmanRecategorizedAkamaiDefinedBot(GetBotmanRecategorizedAkamaiDefinedBotArgs args) { return getBotmanRecategorizedAkamaiDefinedBot(args, InvokeOptions.Empty); @@ -1617,13 +1842,16 @@ public static CompletableFuture ge return getBotmanRecategorizedAkamaiDefinedBotPlain(args, InvokeOptions.Empty); } public static Output getBotmanRecategorizedAkamaiDefinedBot(GetBotmanRecategorizedAkamaiDefinedBotArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getBotmanRecategorizedAkamaiDefinedBot:getBotmanRecategorizedAkamaiDefinedBot", TypeShape.of(GetBotmanRecategorizedAkamaiDefinedBotResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getBotmanRecategorizedAkamaiDefinedBot:getBotmanRecategorizedAkamaiDefinedBot", TypeShape.of(GetBotmanRecategorizedAkamaiDefinedBotResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getBotmanRecategorizedAkamaiDefinedBot(GetBotmanRecategorizedAkamaiDefinedBotArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getBotmanRecategorizedAkamaiDefinedBot:getBotmanRecategorizedAkamaiDefinedBot", TypeShape.of(GetBotmanRecategorizedAkamaiDefinedBotResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getBotmanRecategorizedAkamaiDefinedBot:getBotmanRecategorizedAkamaiDefinedBot", TypeShape.of(GetBotmanRecategorizedAkamaiDefinedBotResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getBotmanRecategorizedAkamaiDefinedBotPlain(GetBotmanRecategorizedAkamaiDefinedBotPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getBotmanRecategorizedAkamaiDefinedBot:getBotmanRecategorizedAkamaiDefinedBot", TypeShape.of(GetBotmanRecategorizedAkamaiDefinedBotResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getBotmanRecategorizedAkamaiDefinedBot:getBotmanRecategorizedAkamaiDefinedBot", TypeShape.of(GetBotmanRecategorizedAkamaiDefinedBotResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getBotmanResponseAction(GetBotmanResponseActionArgs args) { return getBotmanResponseAction(args, InvokeOptions.Empty); @@ -1632,13 +1860,16 @@ public static CompletableFuture getBotmanResponse return getBotmanResponseActionPlain(args, InvokeOptions.Empty); } public static Output getBotmanResponseAction(GetBotmanResponseActionArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getBotmanResponseAction:getBotmanResponseAction", TypeShape.of(GetBotmanResponseActionResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getBotmanResponseAction:getBotmanResponseAction", TypeShape.of(GetBotmanResponseActionResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getBotmanResponseAction(GetBotmanResponseActionArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getBotmanResponseAction:getBotmanResponseAction", TypeShape.of(GetBotmanResponseActionResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getBotmanResponseAction:getBotmanResponseAction", TypeShape.of(GetBotmanResponseActionResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getBotmanResponseActionPlain(GetBotmanResponseActionPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getBotmanResponseAction:getBotmanResponseAction", TypeShape.of(GetBotmanResponseActionResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getBotmanResponseAction:getBotmanResponseAction", TypeShape.of(GetBotmanResponseActionResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getBotmanServeAlternateAction(GetBotmanServeAlternateActionArgs args) { return getBotmanServeAlternateAction(args, InvokeOptions.Empty); @@ -1647,13 +1878,16 @@ public static CompletableFuture getBotmanSe return getBotmanServeAlternateActionPlain(args, InvokeOptions.Empty); } public static Output getBotmanServeAlternateAction(GetBotmanServeAlternateActionArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getBotmanServeAlternateAction:getBotmanServeAlternateAction", TypeShape.of(GetBotmanServeAlternateActionResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getBotmanServeAlternateAction:getBotmanServeAlternateAction", TypeShape.of(GetBotmanServeAlternateActionResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getBotmanServeAlternateAction(GetBotmanServeAlternateActionArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getBotmanServeAlternateAction:getBotmanServeAlternateAction", TypeShape.of(GetBotmanServeAlternateActionResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getBotmanServeAlternateAction:getBotmanServeAlternateAction", TypeShape.of(GetBotmanServeAlternateActionResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getBotmanServeAlternateActionPlain(GetBotmanServeAlternateActionPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getBotmanServeAlternateAction:getBotmanServeAlternateAction", TypeShape.of(GetBotmanServeAlternateActionResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getBotmanServeAlternateAction:getBotmanServeAlternateAction", TypeShape.of(GetBotmanServeAlternateActionResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getBotmanTransactionalEndpoint(GetBotmanTransactionalEndpointArgs args) { return getBotmanTransactionalEndpoint(args, InvokeOptions.Empty); @@ -1662,13 +1896,16 @@ public static CompletableFuture getBotmanT return getBotmanTransactionalEndpointPlain(args, InvokeOptions.Empty); } public static Output getBotmanTransactionalEndpoint(GetBotmanTransactionalEndpointArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getBotmanTransactionalEndpoint:getBotmanTransactionalEndpoint", TypeShape.of(GetBotmanTransactionalEndpointResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getBotmanTransactionalEndpoint:getBotmanTransactionalEndpoint", TypeShape.of(GetBotmanTransactionalEndpointResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getBotmanTransactionalEndpoint(GetBotmanTransactionalEndpointArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getBotmanTransactionalEndpoint:getBotmanTransactionalEndpoint", TypeShape.of(GetBotmanTransactionalEndpointResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getBotmanTransactionalEndpoint:getBotmanTransactionalEndpoint", TypeShape.of(GetBotmanTransactionalEndpointResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getBotmanTransactionalEndpointPlain(GetBotmanTransactionalEndpointPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getBotmanTransactionalEndpoint:getBotmanTransactionalEndpoint", TypeShape.of(GetBotmanTransactionalEndpointResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getBotmanTransactionalEndpoint:getBotmanTransactionalEndpoint", TypeShape.of(GetBotmanTransactionalEndpointResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getBotmanTransactionalEndpointProtection(GetBotmanTransactionalEndpointProtectionArgs args) { return getBotmanTransactionalEndpointProtection(args, InvokeOptions.Empty); @@ -1677,13 +1914,16 @@ public static CompletableFuture return getBotmanTransactionalEndpointProtectionPlain(args, InvokeOptions.Empty); } public static Output getBotmanTransactionalEndpointProtection(GetBotmanTransactionalEndpointProtectionArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getBotmanTransactionalEndpointProtection:getBotmanTransactionalEndpointProtection", TypeShape.of(GetBotmanTransactionalEndpointProtectionResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getBotmanTransactionalEndpointProtection:getBotmanTransactionalEndpointProtection", TypeShape.of(GetBotmanTransactionalEndpointProtectionResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getBotmanTransactionalEndpointProtection(GetBotmanTransactionalEndpointProtectionArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getBotmanTransactionalEndpointProtection:getBotmanTransactionalEndpointProtection", TypeShape.of(GetBotmanTransactionalEndpointProtectionResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getBotmanTransactionalEndpointProtection:getBotmanTransactionalEndpointProtection", TypeShape.of(GetBotmanTransactionalEndpointProtectionResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getBotmanTransactionalEndpointProtectionPlain(GetBotmanTransactionalEndpointProtectionPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getBotmanTransactionalEndpointProtection:getBotmanTransactionalEndpointProtection", TypeShape.of(GetBotmanTransactionalEndpointProtectionResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getBotmanTransactionalEndpointProtection:getBotmanTransactionalEndpointProtection", TypeShape.of(GetBotmanTransactionalEndpointProtectionResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getCPSEnrollment(GetCPSEnrollmentArgs args) { return getCPSEnrollment(args, InvokeOptions.Empty); @@ -1692,13 +1932,16 @@ public static CompletableFuture getCPSEnrollmentPlain(Ge return getCPSEnrollmentPlain(args, InvokeOptions.Empty); } public static Output getCPSEnrollment(GetCPSEnrollmentArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getCPSEnrollment:getCPSEnrollment", TypeShape.of(GetCPSEnrollmentResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getCPSEnrollment:getCPSEnrollment", TypeShape.of(GetCPSEnrollmentResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getCPSEnrollment(GetCPSEnrollmentArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getCPSEnrollment:getCPSEnrollment", TypeShape.of(GetCPSEnrollmentResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getCPSEnrollment:getCPSEnrollment", TypeShape.of(GetCPSEnrollmentResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getCPSEnrollmentPlain(GetCPSEnrollmentPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getCPSEnrollment:getCPSEnrollment", TypeShape.of(GetCPSEnrollmentResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getCPSEnrollment:getCPSEnrollment", TypeShape.of(GetCPSEnrollmentResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getCPSEnrollments(GetCPSEnrollmentsArgs args) { return getCPSEnrollments(args, InvokeOptions.Empty); @@ -1707,13 +1950,16 @@ public static CompletableFuture getCPSEnrollmentsPlain( return getCPSEnrollmentsPlain(args, InvokeOptions.Empty); } public static Output getCPSEnrollments(GetCPSEnrollmentsArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getCPSEnrollments:getCPSEnrollments", TypeShape.of(GetCPSEnrollmentsResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getCPSEnrollments:getCPSEnrollments", TypeShape.of(GetCPSEnrollmentsResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getCPSEnrollments(GetCPSEnrollmentsArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getCPSEnrollments:getCPSEnrollments", TypeShape.of(GetCPSEnrollmentsResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getCPSEnrollments:getCPSEnrollments", TypeShape.of(GetCPSEnrollmentsResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getCPSEnrollmentsPlain(GetCPSEnrollmentsPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getCPSEnrollments:getCPSEnrollments", TypeShape.of(GetCPSEnrollmentsResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getCPSEnrollments:getCPSEnrollments", TypeShape.of(GetCPSEnrollmentsResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getClientlistLists() { return getClientlistLists(GetClientlistListsArgs.Empty, InvokeOptions.Empty); @@ -1728,13 +1974,16 @@ public static CompletableFuture getClientlistListsPlai return getClientlistListsPlain(args, InvokeOptions.Empty); } public static Output getClientlistLists(GetClientlistListsArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getClientlistLists:getClientlistLists", TypeShape.of(GetClientlistListsResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getClientlistLists:getClientlistLists", TypeShape.of(GetClientlistListsResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getClientlistLists(GetClientlistListsArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getClientlistLists:getClientlistLists", TypeShape.of(GetClientlistListsResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getClientlistLists:getClientlistLists", TypeShape.of(GetClientlistListsResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getClientlistListsPlain(GetClientlistListsPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getClientlistLists:getClientlistLists", TypeShape.of(GetClientlistListsResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getClientlistLists:getClientlistLists", TypeShape.of(GetClientlistListsResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getCloudletsApiPrioritizationMatchRule() { return getCloudletsApiPrioritizationMatchRule(GetCloudletsApiPrioritizationMatchRuleArgs.Empty, InvokeOptions.Empty); @@ -1749,13 +1998,16 @@ public static CompletableFuture ge return getCloudletsApiPrioritizationMatchRulePlain(args, InvokeOptions.Empty); } public static Output getCloudletsApiPrioritizationMatchRule(GetCloudletsApiPrioritizationMatchRuleArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getCloudletsApiPrioritizationMatchRule:getCloudletsApiPrioritizationMatchRule", TypeShape.of(GetCloudletsApiPrioritizationMatchRuleResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getCloudletsApiPrioritizationMatchRule:getCloudletsApiPrioritizationMatchRule", TypeShape.of(GetCloudletsApiPrioritizationMatchRuleResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getCloudletsApiPrioritizationMatchRule(GetCloudletsApiPrioritizationMatchRuleArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getCloudletsApiPrioritizationMatchRule:getCloudletsApiPrioritizationMatchRule", TypeShape.of(GetCloudletsApiPrioritizationMatchRuleResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getCloudletsApiPrioritizationMatchRule:getCloudletsApiPrioritizationMatchRule", TypeShape.of(GetCloudletsApiPrioritizationMatchRuleResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getCloudletsApiPrioritizationMatchRulePlain(GetCloudletsApiPrioritizationMatchRulePlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getCloudletsApiPrioritizationMatchRule:getCloudletsApiPrioritizationMatchRule", TypeShape.of(GetCloudletsApiPrioritizationMatchRuleResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getCloudletsApiPrioritizationMatchRule:getCloudletsApiPrioritizationMatchRule", TypeShape.of(GetCloudletsApiPrioritizationMatchRuleResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getCloudletsApplicationLoadBalancer(GetCloudletsApplicationLoadBalancerArgs args) { return getCloudletsApplicationLoadBalancer(args, InvokeOptions.Empty); @@ -1764,13 +2016,16 @@ public static CompletableFuture getCl return getCloudletsApplicationLoadBalancerPlain(args, InvokeOptions.Empty); } public static Output getCloudletsApplicationLoadBalancer(GetCloudletsApplicationLoadBalancerArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getCloudletsApplicationLoadBalancer:getCloudletsApplicationLoadBalancer", TypeShape.of(GetCloudletsApplicationLoadBalancerResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getCloudletsApplicationLoadBalancer:getCloudletsApplicationLoadBalancer", TypeShape.of(GetCloudletsApplicationLoadBalancerResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getCloudletsApplicationLoadBalancer(GetCloudletsApplicationLoadBalancerArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getCloudletsApplicationLoadBalancer:getCloudletsApplicationLoadBalancer", TypeShape.of(GetCloudletsApplicationLoadBalancerResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getCloudletsApplicationLoadBalancer:getCloudletsApplicationLoadBalancer", TypeShape.of(GetCloudletsApplicationLoadBalancerResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getCloudletsApplicationLoadBalancerPlain(GetCloudletsApplicationLoadBalancerPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getCloudletsApplicationLoadBalancer:getCloudletsApplicationLoadBalancer", TypeShape.of(GetCloudletsApplicationLoadBalancerResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getCloudletsApplicationLoadBalancer:getCloudletsApplicationLoadBalancer", TypeShape.of(GetCloudletsApplicationLoadBalancerResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getCloudletsApplicationLoadBalancerMatchRule() { return getCloudletsApplicationLoadBalancerMatchRule(GetCloudletsApplicationLoadBalancerMatchRuleArgs.Empty, InvokeOptions.Empty); @@ -1785,13 +2040,16 @@ public static CompletableFuture getCloudletsApplicationLoadBalancerMatchRule(GetCloudletsApplicationLoadBalancerMatchRuleArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getCloudletsApplicationLoadBalancerMatchRule:getCloudletsApplicationLoadBalancerMatchRule", TypeShape.of(GetCloudletsApplicationLoadBalancerMatchRuleResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getCloudletsApplicationLoadBalancerMatchRule:getCloudletsApplicationLoadBalancerMatchRule", TypeShape.of(GetCloudletsApplicationLoadBalancerMatchRuleResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getCloudletsApplicationLoadBalancerMatchRule(GetCloudletsApplicationLoadBalancerMatchRuleArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getCloudletsApplicationLoadBalancerMatchRule:getCloudletsApplicationLoadBalancerMatchRule", TypeShape.of(GetCloudletsApplicationLoadBalancerMatchRuleResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getCloudletsApplicationLoadBalancerMatchRule:getCloudletsApplicationLoadBalancerMatchRule", TypeShape.of(GetCloudletsApplicationLoadBalancerMatchRuleResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getCloudletsApplicationLoadBalancerMatchRulePlain(GetCloudletsApplicationLoadBalancerMatchRulePlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getCloudletsApplicationLoadBalancerMatchRule:getCloudletsApplicationLoadBalancerMatchRule", TypeShape.of(GetCloudletsApplicationLoadBalancerMatchRuleResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getCloudletsApplicationLoadBalancerMatchRule:getCloudletsApplicationLoadBalancerMatchRule", TypeShape.of(GetCloudletsApplicationLoadBalancerMatchRuleResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getCloudletsAudienceSegmentationMatchRule() { return getCloudletsAudienceSegmentationMatchRule(GetCloudletsAudienceSegmentationMatchRuleArgs.Empty, InvokeOptions.Empty); @@ -1806,13 +2064,16 @@ public static CompletableFuture return getCloudletsAudienceSegmentationMatchRulePlain(args, InvokeOptions.Empty); } public static Output getCloudletsAudienceSegmentationMatchRule(GetCloudletsAudienceSegmentationMatchRuleArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getCloudletsAudienceSegmentationMatchRule:getCloudletsAudienceSegmentationMatchRule", TypeShape.of(GetCloudletsAudienceSegmentationMatchRuleResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getCloudletsAudienceSegmentationMatchRule:getCloudletsAudienceSegmentationMatchRule", TypeShape.of(GetCloudletsAudienceSegmentationMatchRuleResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getCloudletsAudienceSegmentationMatchRule(GetCloudletsAudienceSegmentationMatchRuleArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getCloudletsAudienceSegmentationMatchRule:getCloudletsAudienceSegmentationMatchRule", TypeShape.of(GetCloudletsAudienceSegmentationMatchRuleResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getCloudletsAudienceSegmentationMatchRule:getCloudletsAudienceSegmentationMatchRule", TypeShape.of(GetCloudletsAudienceSegmentationMatchRuleResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getCloudletsAudienceSegmentationMatchRulePlain(GetCloudletsAudienceSegmentationMatchRulePlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getCloudletsAudienceSegmentationMatchRule:getCloudletsAudienceSegmentationMatchRule", TypeShape.of(GetCloudletsAudienceSegmentationMatchRuleResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getCloudletsAudienceSegmentationMatchRule:getCloudletsAudienceSegmentationMatchRule", TypeShape.of(GetCloudletsAudienceSegmentationMatchRuleResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getCloudletsEdgeRedirectorMatchRule() { return getCloudletsEdgeRedirectorMatchRule(GetCloudletsEdgeRedirectorMatchRuleArgs.Empty, InvokeOptions.Empty); @@ -1827,13 +2088,16 @@ public static CompletableFuture getCl return getCloudletsEdgeRedirectorMatchRulePlain(args, InvokeOptions.Empty); } public static Output getCloudletsEdgeRedirectorMatchRule(GetCloudletsEdgeRedirectorMatchRuleArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getCloudletsEdgeRedirectorMatchRule:getCloudletsEdgeRedirectorMatchRule", TypeShape.of(GetCloudletsEdgeRedirectorMatchRuleResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getCloudletsEdgeRedirectorMatchRule:getCloudletsEdgeRedirectorMatchRule", TypeShape.of(GetCloudletsEdgeRedirectorMatchRuleResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getCloudletsEdgeRedirectorMatchRule(GetCloudletsEdgeRedirectorMatchRuleArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getCloudletsEdgeRedirectorMatchRule:getCloudletsEdgeRedirectorMatchRule", TypeShape.of(GetCloudletsEdgeRedirectorMatchRuleResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getCloudletsEdgeRedirectorMatchRule:getCloudletsEdgeRedirectorMatchRule", TypeShape.of(GetCloudletsEdgeRedirectorMatchRuleResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getCloudletsEdgeRedirectorMatchRulePlain(GetCloudletsEdgeRedirectorMatchRulePlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getCloudletsEdgeRedirectorMatchRule:getCloudletsEdgeRedirectorMatchRule", TypeShape.of(GetCloudletsEdgeRedirectorMatchRuleResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getCloudletsEdgeRedirectorMatchRule:getCloudletsEdgeRedirectorMatchRule", TypeShape.of(GetCloudletsEdgeRedirectorMatchRuleResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getCloudletsForwardRewriteMatchRule() { return getCloudletsForwardRewriteMatchRule(GetCloudletsForwardRewriteMatchRuleArgs.Empty, InvokeOptions.Empty); @@ -1848,13 +2112,16 @@ public static CompletableFuture getCl return getCloudletsForwardRewriteMatchRulePlain(args, InvokeOptions.Empty); } public static Output getCloudletsForwardRewriteMatchRule(GetCloudletsForwardRewriteMatchRuleArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getCloudletsForwardRewriteMatchRule:getCloudletsForwardRewriteMatchRule", TypeShape.of(GetCloudletsForwardRewriteMatchRuleResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getCloudletsForwardRewriteMatchRule:getCloudletsForwardRewriteMatchRule", TypeShape.of(GetCloudletsForwardRewriteMatchRuleResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getCloudletsForwardRewriteMatchRule(GetCloudletsForwardRewriteMatchRuleArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getCloudletsForwardRewriteMatchRule:getCloudletsForwardRewriteMatchRule", TypeShape.of(GetCloudletsForwardRewriteMatchRuleResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getCloudletsForwardRewriteMatchRule:getCloudletsForwardRewriteMatchRule", TypeShape.of(GetCloudletsForwardRewriteMatchRuleResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getCloudletsForwardRewriteMatchRulePlain(GetCloudletsForwardRewriteMatchRulePlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getCloudletsForwardRewriteMatchRule:getCloudletsForwardRewriteMatchRule", TypeShape.of(GetCloudletsForwardRewriteMatchRuleResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getCloudletsForwardRewriteMatchRule:getCloudletsForwardRewriteMatchRule", TypeShape.of(GetCloudletsForwardRewriteMatchRuleResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getCloudletsPhasedReleaseMatchRule() { return getCloudletsPhasedReleaseMatchRule(GetCloudletsPhasedReleaseMatchRuleArgs.Empty, InvokeOptions.Empty); @@ -1869,13 +2136,16 @@ public static CompletableFuture getClo return getCloudletsPhasedReleaseMatchRulePlain(args, InvokeOptions.Empty); } public static Output getCloudletsPhasedReleaseMatchRule(GetCloudletsPhasedReleaseMatchRuleArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getCloudletsPhasedReleaseMatchRule:getCloudletsPhasedReleaseMatchRule", TypeShape.of(GetCloudletsPhasedReleaseMatchRuleResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getCloudletsPhasedReleaseMatchRule:getCloudletsPhasedReleaseMatchRule", TypeShape.of(GetCloudletsPhasedReleaseMatchRuleResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getCloudletsPhasedReleaseMatchRule(GetCloudletsPhasedReleaseMatchRuleArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getCloudletsPhasedReleaseMatchRule:getCloudletsPhasedReleaseMatchRule", TypeShape.of(GetCloudletsPhasedReleaseMatchRuleResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getCloudletsPhasedReleaseMatchRule:getCloudletsPhasedReleaseMatchRule", TypeShape.of(GetCloudletsPhasedReleaseMatchRuleResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getCloudletsPhasedReleaseMatchRulePlain(GetCloudletsPhasedReleaseMatchRulePlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getCloudletsPhasedReleaseMatchRule:getCloudletsPhasedReleaseMatchRule", TypeShape.of(GetCloudletsPhasedReleaseMatchRuleResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getCloudletsPhasedReleaseMatchRule:getCloudletsPhasedReleaseMatchRule", TypeShape.of(GetCloudletsPhasedReleaseMatchRuleResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getCloudletsPolicy(GetCloudletsPolicyArgs args) { return getCloudletsPolicy(args, InvokeOptions.Empty); @@ -1884,13 +2154,16 @@ public static CompletableFuture getCloudletsPolicyPlai return getCloudletsPolicyPlain(args, InvokeOptions.Empty); } public static Output getCloudletsPolicy(GetCloudletsPolicyArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getCloudletsPolicy:getCloudletsPolicy", TypeShape.of(GetCloudletsPolicyResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getCloudletsPolicy:getCloudletsPolicy", TypeShape.of(GetCloudletsPolicyResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getCloudletsPolicy(GetCloudletsPolicyArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getCloudletsPolicy:getCloudletsPolicy", TypeShape.of(GetCloudletsPolicyResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getCloudletsPolicy:getCloudletsPolicy", TypeShape.of(GetCloudletsPolicyResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getCloudletsPolicyPlain(GetCloudletsPolicyPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getCloudletsPolicy:getCloudletsPolicy", TypeShape.of(GetCloudletsPolicyResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getCloudletsPolicy:getCloudletsPolicy", TypeShape.of(GetCloudletsPolicyResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getCloudletsRequestControlMatchRule() { return getCloudletsRequestControlMatchRule(GetCloudletsRequestControlMatchRuleArgs.Empty, InvokeOptions.Empty); @@ -1905,13 +2178,16 @@ public static CompletableFuture getCl return getCloudletsRequestControlMatchRulePlain(args, InvokeOptions.Empty); } public static Output getCloudletsRequestControlMatchRule(GetCloudletsRequestControlMatchRuleArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getCloudletsRequestControlMatchRule:getCloudletsRequestControlMatchRule", TypeShape.of(GetCloudletsRequestControlMatchRuleResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getCloudletsRequestControlMatchRule:getCloudletsRequestControlMatchRule", TypeShape.of(GetCloudletsRequestControlMatchRuleResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getCloudletsRequestControlMatchRule(GetCloudletsRequestControlMatchRuleArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getCloudletsRequestControlMatchRule:getCloudletsRequestControlMatchRule", TypeShape.of(GetCloudletsRequestControlMatchRuleResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getCloudletsRequestControlMatchRule:getCloudletsRequestControlMatchRule", TypeShape.of(GetCloudletsRequestControlMatchRuleResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getCloudletsRequestControlMatchRulePlain(GetCloudletsRequestControlMatchRulePlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getCloudletsRequestControlMatchRule:getCloudletsRequestControlMatchRule", TypeShape.of(GetCloudletsRequestControlMatchRuleResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getCloudletsRequestControlMatchRule:getCloudletsRequestControlMatchRule", TypeShape.of(GetCloudletsRequestControlMatchRuleResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getCloudletsVisitorPrioritizationMatchRule() { return getCloudletsVisitorPrioritizationMatchRule(GetCloudletsVisitorPrioritizationMatchRuleArgs.Empty, InvokeOptions.Empty); @@ -1926,13 +2202,16 @@ public static CompletableFuture getCloudletsVisitorPrioritizationMatchRule(GetCloudletsVisitorPrioritizationMatchRuleArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getCloudletsVisitorPrioritizationMatchRule:getCloudletsVisitorPrioritizationMatchRule", TypeShape.of(GetCloudletsVisitorPrioritizationMatchRuleResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getCloudletsVisitorPrioritizationMatchRule:getCloudletsVisitorPrioritizationMatchRule", TypeShape.of(GetCloudletsVisitorPrioritizationMatchRuleResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getCloudletsVisitorPrioritizationMatchRule(GetCloudletsVisitorPrioritizationMatchRuleArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getCloudletsVisitorPrioritizationMatchRule:getCloudletsVisitorPrioritizationMatchRule", TypeShape.of(GetCloudletsVisitorPrioritizationMatchRuleResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getCloudletsVisitorPrioritizationMatchRule:getCloudletsVisitorPrioritizationMatchRule", TypeShape.of(GetCloudletsVisitorPrioritizationMatchRuleResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getCloudletsVisitorPrioritizationMatchRulePlain(GetCloudletsVisitorPrioritizationMatchRulePlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getCloudletsVisitorPrioritizationMatchRule:getCloudletsVisitorPrioritizationMatchRule", TypeShape.of(GetCloudletsVisitorPrioritizationMatchRuleResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getCloudletsVisitorPrioritizationMatchRule:getCloudletsVisitorPrioritizationMatchRule", TypeShape.of(GetCloudletsVisitorPrioritizationMatchRuleResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getCloudwrapperCapacities() { return getCloudwrapperCapacities(GetCloudwrapperCapacitiesArgs.Empty, InvokeOptions.Empty); @@ -1947,13 +2226,16 @@ public static CompletableFuture getCloudwrapper return getCloudwrapperCapacitiesPlain(args, InvokeOptions.Empty); } public static Output getCloudwrapperCapacities(GetCloudwrapperCapacitiesArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getCloudwrapperCapacities:getCloudwrapperCapacities", TypeShape.of(GetCloudwrapperCapacitiesResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getCloudwrapperCapacities:getCloudwrapperCapacities", TypeShape.of(GetCloudwrapperCapacitiesResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getCloudwrapperCapacities(GetCloudwrapperCapacitiesArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getCloudwrapperCapacities:getCloudwrapperCapacities", TypeShape.of(GetCloudwrapperCapacitiesResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getCloudwrapperCapacities:getCloudwrapperCapacities", TypeShape.of(GetCloudwrapperCapacitiesResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getCloudwrapperCapacitiesPlain(GetCloudwrapperCapacitiesPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getCloudwrapperCapacities:getCloudwrapperCapacities", TypeShape.of(GetCloudwrapperCapacitiesResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getCloudwrapperCapacities:getCloudwrapperCapacities", TypeShape.of(GetCloudwrapperCapacitiesResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getCloudwrapperConfiguration(GetCloudwrapperConfigurationArgs args) { return getCloudwrapperConfiguration(args, InvokeOptions.Empty); @@ -1962,13 +2244,16 @@ public static CompletableFuture getCloudwrap return getCloudwrapperConfigurationPlain(args, InvokeOptions.Empty); } public static Output getCloudwrapperConfiguration(GetCloudwrapperConfigurationArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getCloudwrapperConfiguration:getCloudwrapperConfiguration", TypeShape.of(GetCloudwrapperConfigurationResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getCloudwrapperConfiguration:getCloudwrapperConfiguration", TypeShape.of(GetCloudwrapperConfigurationResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getCloudwrapperConfiguration(GetCloudwrapperConfigurationArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getCloudwrapperConfiguration:getCloudwrapperConfiguration", TypeShape.of(GetCloudwrapperConfigurationResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getCloudwrapperConfiguration:getCloudwrapperConfiguration", TypeShape.of(GetCloudwrapperConfigurationResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getCloudwrapperConfigurationPlain(GetCloudwrapperConfigurationPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getCloudwrapperConfiguration:getCloudwrapperConfiguration", TypeShape.of(GetCloudwrapperConfigurationResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getCloudwrapperConfiguration:getCloudwrapperConfiguration", TypeShape.of(GetCloudwrapperConfigurationResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getCloudwrapperConfigurations() { return getCloudwrapperConfigurations(GetCloudwrapperConfigurationsArgs.Empty, InvokeOptions.Empty); @@ -1983,13 +2268,16 @@ public static CompletableFuture getCloudwra return getCloudwrapperConfigurationsPlain(args, InvokeOptions.Empty); } public static Output getCloudwrapperConfigurations(GetCloudwrapperConfigurationsArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getCloudwrapperConfigurations:getCloudwrapperConfigurations", TypeShape.of(GetCloudwrapperConfigurationsResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getCloudwrapperConfigurations:getCloudwrapperConfigurations", TypeShape.of(GetCloudwrapperConfigurationsResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getCloudwrapperConfigurations(GetCloudwrapperConfigurationsArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getCloudwrapperConfigurations:getCloudwrapperConfigurations", TypeShape.of(GetCloudwrapperConfigurationsResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getCloudwrapperConfigurations:getCloudwrapperConfigurations", TypeShape.of(GetCloudwrapperConfigurationsResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getCloudwrapperConfigurationsPlain(GetCloudwrapperConfigurationsPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getCloudwrapperConfigurations:getCloudwrapperConfigurations", TypeShape.of(GetCloudwrapperConfigurationsResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getCloudwrapperConfigurations:getCloudwrapperConfigurations", TypeShape.of(GetCloudwrapperConfigurationsResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getCloudwrapperLocation(GetCloudwrapperLocationArgs args) { return getCloudwrapperLocation(args, InvokeOptions.Empty); @@ -1998,13 +2286,16 @@ public static CompletableFuture getCloudwrapperLo return getCloudwrapperLocationPlain(args, InvokeOptions.Empty); } public static Output getCloudwrapperLocation(GetCloudwrapperLocationArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getCloudwrapperLocation:getCloudwrapperLocation", TypeShape.of(GetCloudwrapperLocationResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getCloudwrapperLocation:getCloudwrapperLocation", TypeShape.of(GetCloudwrapperLocationResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getCloudwrapperLocation(GetCloudwrapperLocationArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getCloudwrapperLocation:getCloudwrapperLocation", TypeShape.of(GetCloudwrapperLocationResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getCloudwrapperLocation:getCloudwrapperLocation", TypeShape.of(GetCloudwrapperLocationResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getCloudwrapperLocationPlain(GetCloudwrapperLocationPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getCloudwrapperLocation:getCloudwrapperLocation", TypeShape.of(GetCloudwrapperLocationResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getCloudwrapperLocation:getCloudwrapperLocation", TypeShape.of(GetCloudwrapperLocationResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getCloudwrapperLocations() { return getCloudwrapperLocations(GetCloudwrapperLocationsArgs.Empty, InvokeOptions.Empty); @@ -2019,13 +2310,16 @@ public static CompletableFuture getCloudwrapperL return getCloudwrapperLocationsPlain(args, InvokeOptions.Empty); } public static Output getCloudwrapperLocations(GetCloudwrapperLocationsArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getCloudwrapperLocations:getCloudwrapperLocations", TypeShape.of(GetCloudwrapperLocationsResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getCloudwrapperLocations:getCloudwrapperLocations", TypeShape.of(GetCloudwrapperLocationsResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getCloudwrapperLocations(GetCloudwrapperLocationsArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getCloudwrapperLocations:getCloudwrapperLocations", TypeShape.of(GetCloudwrapperLocationsResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getCloudwrapperLocations:getCloudwrapperLocations", TypeShape.of(GetCloudwrapperLocationsResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getCloudwrapperLocationsPlain(GetCloudwrapperLocationsPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getCloudwrapperLocations:getCloudwrapperLocations", TypeShape.of(GetCloudwrapperLocationsResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getCloudwrapperLocations:getCloudwrapperLocations", TypeShape.of(GetCloudwrapperLocationsResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getCloudwrapperProperties() { return getCloudwrapperProperties(GetCloudwrapperPropertiesArgs.Empty, InvokeOptions.Empty); @@ -2040,13 +2334,16 @@ public static CompletableFuture getCloudwrapper return getCloudwrapperPropertiesPlain(args, InvokeOptions.Empty); } public static Output getCloudwrapperProperties(GetCloudwrapperPropertiesArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getCloudwrapperProperties:getCloudwrapperProperties", TypeShape.of(GetCloudwrapperPropertiesResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getCloudwrapperProperties:getCloudwrapperProperties", TypeShape.of(GetCloudwrapperPropertiesResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getCloudwrapperProperties(GetCloudwrapperPropertiesArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getCloudwrapperProperties:getCloudwrapperProperties", TypeShape.of(GetCloudwrapperPropertiesResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getCloudwrapperProperties:getCloudwrapperProperties", TypeShape.of(GetCloudwrapperPropertiesResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getCloudwrapperPropertiesPlain(GetCloudwrapperPropertiesPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getCloudwrapperProperties:getCloudwrapperProperties", TypeShape.of(GetCloudwrapperPropertiesResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getCloudwrapperProperties:getCloudwrapperProperties", TypeShape.of(GetCloudwrapperPropertiesResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getContract() { return getContract(GetContractArgs.Empty, InvokeOptions.Empty); @@ -2061,13 +2358,16 @@ public static CompletableFuture getContractPlain(GetContractP return getContractPlain(args, InvokeOptions.Empty); } public static Output getContract(GetContractArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getContract:getContract", TypeShape.of(GetContractResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getContract:getContract", TypeShape.of(GetContractResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getContract(GetContractArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getContract:getContract", TypeShape.of(GetContractResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getContract:getContract", TypeShape.of(GetContractResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getContractPlain(GetContractPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getContract:getContract", TypeShape.of(GetContractResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getContract:getContract", TypeShape.of(GetContractResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getContracts() { return getContracts(InvokeArgs.Empty, InvokeOptions.Empty); @@ -2082,13 +2382,16 @@ public static CompletableFuture getContractsPlain(InvokeArgs return getContractsPlain(args, InvokeOptions.Empty); } public static Output getContracts(InvokeArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getContracts:getContracts", TypeShape.of(GetContractsResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getContracts:getContracts", TypeShape.of(GetContractsResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getContracts(InvokeArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getContracts:getContracts", TypeShape.of(GetContractsResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getContracts:getContracts", TypeShape.of(GetContractsResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getContractsPlain(InvokeArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getContracts:getContracts", TypeShape.of(GetContractsResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getContracts:getContracts", TypeShape.of(GetContractsResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getCpCode(GetCpCodeArgs args) { return getCpCode(args, InvokeOptions.Empty); @@ -2097,13 +2400,16 @@ public static CompletableFuture getCpCodePlain(GetCpCodePlainAr return getCpCodePlain(args, InvokeOptions.Empty); } public static Output getCpCode(GetCpCodeArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getCpCode:getCpCode", TypeShape.of(GetCpCodeResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getCpCode:getCpCode", TypeShape.of(GetCpCodeResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getCpCode(GetCpCodeArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getCpCode:getCpCode", TypeShape.of(GetCpCodeResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getCpCode:getCpCode", TypeShape.of(GetCpCodeResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getCpCodePlain(GetCpCodePlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getCpCode:getCpCode", TypeShape.of(GetCpCodeResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getCpCode:getCpCode", TypeShape.of(GetCpCodeResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getCpsCsr(GetCpsCsrArgs args) { return getCpsCsr(args, InvokeOptions.Empty); @@ -2112,13 +2418,16 @@ public static CompletableFuture getCpsCsrPlain(GetCpsCsrPlainAr return getCpsCsrPlain(args, InvokeOptions.Empty); } public static Output getCpsCsr(GetCpsCsrArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getCpsCsr:getCpsCsr", TypeShape.of(GetCpsCsrResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getCpsCsr:getCpsCsr", TypeShape.of(GetCpsCsrResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getCpsCsr(GetCpsCsrArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getCpsCsr:getCpsCsr", TypeShape.of(GetCpsCsrResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getCpsCsr:getCpsCsr", TypeShape.of(GetCpsCsrResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getCpsCsrPlain(GetCpsCsrPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getCpsCsr:getCpsCsr", TypeShape.of(GetCpsCsrResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getCpsCsr:getCpsCsr", TypeShape.of(GetCpsCsrResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getCpsDeployments(GetCpsDeploymentsArgs args) { return getCpsDeployments(args, InvokeOptions.Empty); @@ -2127,13 +2436,16 @@ public static CompletableFuture getCpsDeploymentsPlain( return getCpsDeploymentsPlain(args, InvokeOptions.Empty); } public static Output getCpsDeployments(GetCpsDeploymentsArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getCpsDeployments:getCpsDeployments", TypeShape.of(GetCpsDeploymentsResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getCpsDeployments:getCpsDeployments", TypeShape.of(GetCpsDeploymentsResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getCpsDeployments(GetCpsDeploymentsArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getCpsDeployments:getCpsDeployments", TypeShape.of(GetCpsDeploymentsResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getCpsDeployments:getCpsDeployments", TypeShape.of(GetCpsDeploymentsResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getCpsDeploymentsPlain(GetCpsDeploymentsPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getCpsDeployments:getCpsDeployments", TypeShape.of(GetCpsDeploymentsResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getCpsDeployments:getCpsDeployments", TypeShape.of(GetCpsDeploymentsResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getCpsWarnings() { return getCpsWarnings(InvokeArgs.Empty, InvokeOptions.Empty); @@ -2148,13 +2460,16 @@ public static CompletableFuture getCpsWarningsPlain(Invoke return getCpsWarningsPlain(args, InvokeOptions.Empty); } public static Output getCpsWarnings(InvokeArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getCpsWarnings:getCpsWarnings", TypeShape.of(GetCpsWarningsResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getCpsWarnings:getCpsWarnings", TypeShape.of(GetCpsWarningsResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getCpsWarnings(InvokeArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getCpsWarnings:getCpsWarnings", TypeShape.of(GetCpsWarningsResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getCpsWarnings:getCpsWarnings", TypeShape.of(GetCpsWarningsResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getCpsWarningsPlain(InvokeArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getCpsWarnings:getCpsWarnings", TypeShape.of(GetCpsWarningsResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getCpsWarnings:getCpsWarnings", TypeShape.of(GetCpsWarningsResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getDatastreamActivationHistory(GetDatastreamActivationHistoryArgs args) { return getDatastreamActivationHistory(args, InvokeOptions.Empty); @@ -2163,13 +2478,16 @@ public static CompletableFuture getDatastr return getDatastreamActivationHistoryPlain(args, InvokeOptions.Empty); } public static Output getDatastreamActivationHistory(GetDatastreamActivationHistoryArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getDatastreamActivationHistory:getDatastreamActivationHistory", TypeShape.of(GetDatastreamActivationHistoryResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getDatastreamActivationHistory:getDatastreamActivationHistory", TypeShape.of(GetDatastreamActivationHistoryResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getDatastreamActivationHistory(GetDatastreamActivationHistoryArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getDatastreamActivationHistory:getDatastreamActivationHistory", TypeShape.of(GetDatastreamActivationHistoryResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getDatastreamActivationHistory:getDatastreamActivationHistory", TypeShape.of(GetDatastreamActivationHistoryResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getDatastreamActivationHistoryPlain(GetDatastreamActivationHistoryPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getDatastreamActivationHistory:getDatastreamActivationHistory", TypeShape.of(GetDatastreamActivationHistoryResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getDatastreamActivationHistory:getDatastreamActivationHistory", TypeShape.of(GetDatastreamActivationHistoryResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getDatastreamDatasetFields() { return getDatastreamDatasetFields(GetDatastreamDatasetFieldsArgs.Empty, InvokeOptions.Empty); @@ -2184,13 +2502,16 @@ public static CompletableFuture getDatastreamD return getDatastreamDatasetFieldsPlain(args, InvokeOptions.Empty); } public static Output getDatastreamDatasetFields(GetDatastreamDatasetFieldsArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getDatastreamDatasetFields:getDatastreamDatasetFields", TypeShape.of(GetDatastreamDatasetFieldsResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getDatastreamDatasetFields:getDatastreamDatasetFields", TypeShape.of(GetDatastreamDatasetFieldsResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getDatastreamDatasetFields(GetDatastreamDatasetFieldsArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getDatastreamDatasetFields:getDatastreamDatasetFields", TypeShape.of(GetDatastreamDatasetFieldsResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getDatastreamDatasetFields:getDatastreamDatasetFields", TypeShape.of(GetDatastreamDatasetFieldsResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getDatastreamDatasetFieldsPlain(GetDatastreamDatasetFieldsPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getDatastreamDatasetFields:getDatastreamDatasetFields", TypeShape.of(GetDatastreamDatasetFieldsResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getDatastreamDatasetFields:getDatastreamDatasetFields", TypeShape.of(GetDatastreamDatasetFieldsResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getDatastreams() { return getDatastreams(GetDatastreamsArgs.Empty, InvokeOptions.Empty); @@ -2205,13 +2526,16 @@ public static CompletableFuture getDatastreamsPlain(GetDat return getDatastreamsPlain(args, InvokeOptions.Empty); } public static Output getDatastreams(GetDatastreamsArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getDatastreams:getDatastreams", TypeShape.of(GetDatastreamsResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getDatastreams:getDatastreams", TypeShape.of(GetDatastreamsResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getDatastreams(GetDatastreamsArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getDatastreams:getDatastreams", TypeShape.of(GetDatastreamsResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getDatastreams:getDatastreams", TypeShape.of(GetDatastreamsResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getDatastreamsPlain(GetDatastreamsPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getDatastreams:getDatastreams", TypeShape.of(GetDatastreamsResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getDatastreams:getDatastreams", TypeShape.of(GetDatastreamsResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getDnsRecordSet(GetDnsRecordSetArgs args) { return getDnsRecordSet(args, InvokeOptions.Empty); @@ -2220,13 +2544,16 @@ public static CompletableFuture getDnsRecordSetPlain(GetD return getDnsRecordSetPlain(args, InvokeOptions.Empty); } public static Output getDnsRecordSet(GetDnsRecordSetArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getDnsRecordSet:getDnsRecordSet", TypeShape.of(GetDnsRecordSetResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getDnsRecordSet:getDnsRecordSet", TypeShape.of(GetDnsRecordSetResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getDnsRecordSet(GetDnsRecordSetArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getDnsRecordSet:getDnsRecordSet", TypeShape.of(GetDnsRecordSetResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getDnsRecordSet:getDnsRecordSet", TypeShape.of(GetDnsRecordSetResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getDnsRecordSetPlain(GetDnsRecordSetPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getDnsRecordSet:getDnsRecordSet", TypeShape.of(GetDnsRecordSetResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getDnsRecordSet:getDnsRecordSet", TypeShape.of(GetDnsRecordSetResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getEdgeWorker(GetEdgeWorkerArgs args) { return getEdgeWorker(args, InvokeOptions.Empty); @@ -2235,13 +2562,16 @@ public static CompletableFuture getEdgeWorkerPlain(GetEdgeW return getEdgeWorkerPlain(args, InvokeOptions.Empty); } public static Output getEdgeWorker(GetEdgeWorkerArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getEdgeWorker:getEdgeWorker", TypeShape.of(GetEdgeWorkerResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getEdgeWorker:getEdgeWorker", TypeShape.of(GetEdgeWorkerResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getEdgeWorker(GetEdgeWorkerArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getEdgeWorker:getEdgeWorker", TypeShape.of(GetEdgeWorkerResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getEdgeWorker:getEdgeWorker", TypeShape.of(GetEdgeWorkerResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getEdgeWorkerPlain(GetEdgeWorkerPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getEdgeWorker:getEdgeWorker", TypeShape.of(GetEdgeWorkerResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getEdgeWorker:getEdgeWorker", TypeShape.of(GetEdgeWorkerResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getEdgeWorkerActivation(GetEdgeWorkerActivationArgs args) { return getEdgeWorkerActivation(args, InvokeOptions.Empty); @@ -2250,13 +2580,16 @@ public static CompletableFuture getEdgeWorkerActi return getEdgeWorkerActivationPlain(args, InvokeOptions.Empty); } public static Output getEdgeWorkerActivation(GetEdgeWorkerActivationArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getEdgeWorkerActivation:getEdgeWorkerActivation", TypeShape.of(GetEdgeWorkerActivationResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getEdgeWorkerActivation:getEdgeWorkerActivation", TypeShape.of(GetEdgeWorkerActivationResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getEdgeWorkerActivation(GetEdgeWorkerActivationArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getEdgeWorkerActivation:getEdgeWorkerActivation", TypeShape.of(GetEdgeWorkerActivationResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getEdgeWorkerActivation:getEdgeWorkerActivation", TypeShape.of(GetEdgeWorkerActivationResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getEdgeWorkerActivationPlain(GetEdgeWorkerActivationPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getEdgeWorkerActivation:getEdgeWorkerActivation", TypeShape.of(GetEdgeWorkerActivationResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getEdgeWorkerActivation:getEdgeWorkerActivation", TypeShape.of(GetEdgeWorkerActivationResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getEdgeWorkersPropertyRules(GetEdgeWorkersPropertyRulesArgs args) { return getEdgeWorkersPropertyRules(args, InvokeOptions.Empty); @@ -2265,13 +2598,16 @@ public static CompletableFuture getEdgeWorker return getEdgeWorkersPropertyRulesPlain(args, InvokeOptions.Empty); } public static Output getEdgeWorkersPropertyRules(GetEdgeWorkersPropertyRulesArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getEdgeWorkersPropertyRules:getEdgeWorkersPropertyRules", TypeShape.of(GetEdgeWorkersPropertyRulesResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getEdgeWorkersPropertyRules:getEdgeWorkersPropertyRules", TypeShape.of(GetEdgeWorkersPropertyRulesResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getEdgeWorkersPropertyRules(GetEdgeWorkersPropertyRulesArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getEdgeWorkersPropertyRules:getEdgeWorkersPropertyRules", TypeShape.of(GetEdgeWorkersPropertyRulesResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getEdgeWorkersPropertyRules:getEdgeWorkersPropertyRules", TypeShape.of(GetEdgeWorkersPropertyRulesResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getEdgeWorkersPropertyRulesPlain(GetEdgeWorkersPropertyRulesPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getEdgeWorkersPropertyRules:getEdgeWorkersPropertyRules", TypeShape.of(GetEdgeWorkersPropertyRulesResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getEdgeWorkersPropertyRules:getEdgeWorkersPropertyRules", TypeShape.of(GetEdgeWorkersPropertyRulesResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getEdgeWorkersResourceTier(GetEdgeWorkersResourceTierArgs args) { return getEdgeWorkersResourceTier(args, InvokeOptions.Empty); @@ -2280,13 +2616,16 @@ public static CompletableFuture getEdgeWorkers return getEdgeWorkersResourceTierPlain(args, InvokeOptions.Empty); } public static Output getEdgeWorkersResourceTier(GetEdgeWorkersResourceTierArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getEdgeWorkersResourceTier:getEdgeWorkersResourceTier", TypeShape.of(GetEdgeWorkersResourceTierResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getEdgeWorkersResourceTier:getEdgeWorkersResourceTier", TypeShape.of(GetEdgeWorkersResourceTierResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getEdgeWorkersResourceTier(GetEdgeWorkersResourceTierArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getEdgeWorkersResourceTier:getEdgeWorkersResourceTier", TypeShape.of(GetEdgeWorkersResourceTierResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getEdgeWorkersResourceTier:getEdgeWorkersResourceTier", TypeShape.of(GetEdgeWorkersResourceTierResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getEdgeWorkersResourceTierPlain(GetEdgeWorkersResourceTierPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getEdgeWorkersResourceTier:getEdgeWorkersResourceTier", TypeShape.of(GetEdgeWorkersResourceTierResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getEdgeWorkersResourceTier:getEdgeWorkersResourceTier", TypeShape.of(GetEdgeWorkersResourceTierResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getEdgekvGroupItems(GetEdgekvGroupItemsArgs args) { return getEdgekvGroupItems(args, InvokeOptions.Empty); @@ -2295,13 +2634,16 @@ public static CompletableFuture getEdgekvGroupItemsPl return getEdgekvGroupItemsPlain(args, InvokeOptions.Empty); } public static Output getEdgekvGroupItems(GetEdgekvGroupItemsArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getEdgekvGroupItems:getEdgekvGroupItems", TypeShape.of(GetEdgekvGroupItemsResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getEdgekvGroupItems:getEdgekvGroupItems", TypeShape.of(GetEdgekvGroupItemsResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getEdgekvGroupItems(GetEdgekvGroupItemsArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getEdgekvGroupItems:getEdgekvGroupItems", TypeShape.of(GetEdgekvGroupItemsResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getEdgekvGroupItems:getEdgekvGroupItems", TypeShape.of(GetEdgekvGroupItemsResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getEdgekvGroupItemsPlain(GetEdgekvGroupItemsPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getEdgekvGroupItems:getEdgekvGroupItems", TypeShape.of(GetEdgekvGroupItemsResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getEdgekvGroupItems:getEdgekvGroupItems", TypeShape.of(GetEdgekvGroupItemsResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getEdgekvGroups(GetEdgekvGroupsArgs args) { return getEdgekvGroups(args, InvokeOptions.Empty); @@ -2310,13 +2652,16 @@ public static CompletableFuture getEdgekvGroupsPlain(GetE return getEdgekvGroupsPlain(args, InvokeOptions.Empty); } public static Output getEdgekvGroups(GetEdgekvGroupsArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getEdgekvGroups:getEdgekvGroups", TypeShape.of(GetEdgekvGroupsResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getEdgekvGroups:getEdgekvGroups", TypeShape.of(GetEdgekvGroupsResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getEdgekvGroups(GetEdgekvGroupsArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getEdgekvGroups:getEdgekvGroups", TypeShape.of(GetEdgekvGroupsResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getEdgekvGroups:getEdgekvGroups", TypeShape.of(GetEdgekvGroupsResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getEdgekvGroupsPlain(GetEdgekvGroupsPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getEdgekvGroups:getEdgekvGroups", TypeShape.of(GetEdgekvGroupsResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getEdgekvGroups:getEdgekvGroups", TypeShape.of(GetEdgekvGroupsResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getGroup(GetGroupArgs args) { return getGroup(args, InvokeOptions.Empty); @@ -2325,13 +2670,16 @@ public static CompletableFuture getGroupPlain(GetGroupPlainArgs return getGroupPlain(args, InvokeOptions.Empty); } public static Output getGroup(GetGroupArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getGroup:getGroup", TypeShape.of(GetGroupResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getGroup:getGroup", TypeShape.of(GetGroupResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getGroup(GetGroupArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getGroup:getGroup", TypeShape.of(GetGroupResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getGroup:getGroup", TypeShape.of(GetGroupResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getGroupPlain(GetGroupPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getGroup:getGroup", TypeShape.of(GetGroupResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getGroup:getGroup", TypeShape.of(GetGroupResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getGroups() { return getGroups(InvokeArgs.Empty, InvokeOptions.Empty); @@ -2346,13 +2694,16 @@ public static CompletableFuture getGroupsPlain(InvokeArgs args) return getGroupsPlain(args, InvokeOptions.Empty); } public static Output getGroups(InvokeArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getGroups:getGroups", TypeShape.of(GetGroupsResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getGroups:getGroups", TypeShape.of(GetGroupsResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getGroups(InvokeArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getGroups:getGroups", TypeShape.of(GetGroupsResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getGroups:getGroups", TypeShape.of(GetGroupsResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getGroupsPlain(InvokeArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getGroups:getGroups", TypeShape.of(GetGroupsResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getGroups:getGroups", TypeShape.of(GetGroupsResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getGtmDatacenter(GetGtmDatacenterArgs args) { return getGtmDatacenter(args, InvokeOptions.Empty); @@ -2361,13 +2712,16 @@ public static CompletableFuture getGtmDatacenterPlain(Ge return getGtmDatacenterPlain(args, InvokeOptions.Empty); } public static Output getGtmDatacenter(GetGtmDatacenterArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getGtmDatacenter:getGtmDatacenter", TypeShape.of(GetGtmDatacenterResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getGtmDatacenter:getGtmDatacenter", TypeShape.of(GetGtmDatacenterResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getGtmDatacenter(GetGtmDatacenterArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getGtmDatacenter:getGtmDatacenter", TypeShape.of(GetGtmDatacenterResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getGtmDatacenter:getGtmDatacenter", TypeShape.of(GetGtmDatacenterResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getGtmDatacenterPlain(GetGtmDatacenterPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getGtmDatacenter:getGtmDatacenter", TypeShape.of(GetGtmDatacenterResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getGtmDatacenter:getGtmDatacenter", TypeShape.of(GetGtmDatacenterResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getGtmDatacenters(GetGtmDatacentersArgs args) { return getGtmDatacenters(args, InvokeOptions.Empty); @@ -2376,13 +2730,16 @@ public static CompletableFuture getGtmDatacentersPlain( return getGtmDatacentersPlain(args, InvokeOptions.Empty); } public static Output getGtmDatacenters(GetGtmDatacentersArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getGtmDatacenters:getGtmDatacenters", TypeShape.of(GetGtmDatacentersResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getGtmDatacenters:getGtmDatacenters", TypeShape.of(GetGtmDatacentersResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getGtmDatacenters(GetGtmDatacentersArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getGtmDatacenters:getGtmDatacenters", TypeShape.of(GetGtmDatacentersResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getGtmDatacenters:getGtmDatacenters", TypeShape.of(GetGtmDatacentersResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getGtmDatacentersPlain(GetGtmDatacentersPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getGtmDatacenters:getGtmDatacenters", TypeShape.of(GetGtmDatacentersResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getGtmDatacenters:getGtmDatacenters", TypeShape.of(GetGtmDatacentersResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getGtmDefaultDatacenter(GetGtmDefaultDatacenterArgs args) { return getGtmDefaultDatacenter(args, InvokeOptions.Empty); @@ -2391,13 +2748,16 @@ public static CompletableFuture getGtmDefaultData return getGtmDefaultDatacenterPlain(args, InvokeOptions.Empty); } public static Output getGtmDefaultDatacenter(GetGtmDefaultDatacenterArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getGtmDefaultDatacenter:getGtmDefaultDatacenter", TypeShape.of(GetGtmDefaultDatacenterResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getGtmDefaultDatacenter:getGtmDefaultDatacenter", TypeShape.of(GetGtmDefaultDatacenterResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getGtmDefaultDatacenter(GetGtmDefaultDatacenterArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getGtmDefaultDatacenter:getGtmDefaultDatacenter", TypeShape.of(GetGtmDefaultDatacenterResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getGtmDefaultDatacenter:getGtmDefaultDatacenter", TypeShape.of(GetGtmDefaultDatacenterResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getGtmDefaultDatacenterPlain(GetGtmDefaultDatacenterPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getGtmDefaultDatacenter:getGtmDefaultDatacenter", TypeShape.of(GetGtmDefaultDatacenterResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getGtmDefaultDatacenter:getGtmDefaultDatacenter", TypeShape.of(GetGtmDefaultDatacenterResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getIamContactTypes() { return getIamContactTypes(InvokeArgs.Empty, InvokeOptions.Empty); @@ -2412,13 +2772,16 @@ public static CompletableFuture getIamContactTypesPlai return getIamContactTypesPlain(args, InvokeOptions.Empty); } public static Output getIamContactTypes(InvokeArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getIamContactTypes:getIamContactTypes", TypeShape.of(GetIamContactTypesResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getIamContactTypes:getIamContactTypes", TypeShape.of(GetIamContactTypesResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getIamContactTypes(InvokeArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getIamContactTypes:getIamContactTypes", TypeShape.of(GetIamContactTypesResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getIamContactTypes:getIamContactTypes", TypeShape.of(GetIamContactTypesResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getIamContactTypesPlain(InvokeArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getIamContactTypes:getIamContactTypes", TypeShape.of(GetIamContactTypesResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getIamContactTypes:getIamContactTypes", TypeShape.of(GetIamContactTypesResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getIamCountries() { return getIamCountries(InvokeArgs.Empty, InvokeOptions.Empty); @@ -2433,13 +2796,16 @@ public static CompletableFuture getIamCountriesPlain(Invo return getIamCountriesPlain(args, InvokeOptions.Empty); } public static Output getIamCountries(InvokeArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getIamCountries:getIamCountries", TypeShape.of(GetIamCountriesResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getIamCountries:getIamCountries", TypeShape.of(GetIamCountriesResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getIamCountries(InvokeArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getIamCountries:getIamCountries", TypeShape.of(GetIamCountriesResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getIamCountries:getIamCountries", TypeShape.of(GetIamCountriesResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getIamCountriesPlain(InvokeArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getIamCountries:getIamCountries", TypeShape.of(GetIamCountriesResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getIamCountries:getIamCountries", TypeShape.of(GetIamCountriesResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getIamGrantableRoles() { return getIamGrantableRoles(InvokeArgs.Empty, InvokeOptions.Empty); @@ -2454,13 +2820,16 @@ public static CompletableFuture getIamGrantableRoles return getIamGrantableRolesPlain(args, InvokeOptions.Empty); } public static Output getIamGrantableRoles(InvokeArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getIamGrantableRoles:getIamGrantableRoles", TypeShape.of(GetIamGrantableRolesResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getIamGrantableRoles:getIamGrantableRoles", TypeShape.of(GetIamGrantableRolesResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getIamGrantableRoles(InvokeArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getIamGrantableRoles:getIamGrantableRoles", TypeShape.of(GetIamGrantableRolesResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getIamGrantableRoles:getIamGrantableRoles", TypeShape.of(GetIamGrantableRolesResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getIamGrantableRolesPlain(InvokeArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getIamGrantableRoles:getIamGrantableRoles", TypeShape.of(GetIamGrantableRolesResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getIamGrantableRoles:getIamGrantableRoles", TypeShape.of(GetIamGrantableRolesResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getIamRoles() { return getIamRoles(InvokeArgs.Empty, InvokeOptions.Empty); @@ -2475,13 +2844,16 @@ public static CompletableFuture getIamRolesPlain(InvokeArgs a return getIamRolesPlain(args, InvokeOptions.Empty); } public static Output getIamRoles(InvokeArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getIamRoles:getIamRoles", TypeShape.of(GetIamRolesResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getIamRoles:getIamRoles", TypeShape.of(GetIamRolesResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getIamRoles(InvokeArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getIamRoles:getIamRoles", TypeShape.of(GetIamRolesResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getIamRoles:getIamRoles", TypeShape.of(GetIamRolesResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getIamRolesPlain(InvokeArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getIamRoles:getIamRoles", TypeShape.of(GetIamRolesResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getIamRoles:getIamRoles", TypeShape.of(GetIamRolesResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getIamStates(GetIamStatesArgs args) { return getIamStates(args, InvokeOptions.Empty); @@ -2490,13 +2862,16 @@ public static CompletableFuture getIamStatesPlain(GetIamStat return getIamStatesPlain(args, InvokeOptions.Empty); } public static Output getIamStates(GetIamStatesArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getIamStates:getIamStates", TypeShape.of(GetIamStatesResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getIamStates:getIamStates", TypeShape.of(GetIamStatesResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getIamStates(GetIamStatesArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getIamStates:getIamStates", TypeShape.of(GetIamStatesResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getIamStates:getIamStates", TypeShape.of(GetIamStatesResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getIamStatesPlain(GetIamStatesPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getIamStates:getIamStates", TypeShape.of(GetIamStatesResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getIamStates:getIamStates", TypeShape.of(GetIamStatesResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getIamSupportedLangs() { return getIamSupportedLangs(InvokeArgs.Empty, InvokeOptions.Empty); @@ -2511,13 +2886,16 @@ public static CompletableFuture getIamSupportedLangs return getIamSupportedLangsPlain(args, InvokeOptions.Empty); } public static Output getIamSupportedLangs(InvokeArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getIamSupportedLangs:getIamSupportedLangs", TypeShape.of(GetIamSupportedLangsResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getIamSupportedLangs:getIamSupportedLangs", TypeShape.of(GetIamSupportedLangsResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getIamSupportedLangs(InvokeArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getIamSupportedLangs:getIamSupportedLangs", TypeShape.of(GetIamSupportedLangsResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getIamSupportedLangs:getIamSupportedLangs", TypeShape.of(GetIamSupportedLangsResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getIamSupportedLangsPlain(InvokeArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getIamSupportedLangs:getIamSupportedLangs", TypeShape.of(GetIamSupportedLangsResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getIamSupportedLangs:getIamSupportedLangs", TypeShape.of(GetIamSupportedLangsResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getIamTimeoutPolicies() { return getIamTimeoutPolicies(InvokeArgs.Empty, InvokeOptions.Empty); @@ -2532,13 +2910,16 @@ public static CompletableFuture getIamTimeoutPolici return getIamTimeoutPoliciesPlain(args, InvokeOptions.Empty); } public static Output getIamTimeoutPolicies(InvokeArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getIamTimeoutPolicies:getIamTimeoutPolicies", TypeShape.of(GetIamTimeoutPoliciesResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getIamTimeoutPolicies:getIamTimeoutPolicies", TypeShape.of(GetIamTimeoutPoliciesResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getIamTimeoutPolicies(InvokeArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getIamTimeoutPolicies:getIamTimeoutPolicies", TypeShape.of(GetIamTimeoutPoliciesResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getIamTimeoutPolicies:getIamTimeoutPolicies", TypeShape.of(GetIamTimeoutPoliciesResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getIamTimeoutPoliciesPlain(InvokeArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getIamTimeoutPolicies:getIamTimeoutPolicies", TypeShape.of(GetIamTimeoutPoliciesResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getIamTimeoutPolicies:getIamTimeoutPolicies", TypeShape.of(GetIamTimeoutPoliciesResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getIamTimezones() { return getIamTimezones(InvokeArgs.Empty, InvokeOptions.Empty); @@ -2553,13 +2934,16 @@ public static CompletableFuture getIamTimezonesPlain(Invo return getIamTimezonesPlain(args, InvokeOptions.Empty); } public static Output getIamTimezones(InvokeArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getIamTimezones:getIamTimezones", TypeShape.of(GetIamTimezonesResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getIamTimezones:getIamTimezones", TypeShape.of(GetIamTimezonesResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getIamTimezones(InvokeArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getIamTimezones:getIamTimezones", TypeShape.of(GetIamTimezonesResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getIamTimezones:getIamTimezones", TypeShape.of(GetIamTimezonesResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getIamTimezonesPlain(InvokeArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getIamTimezones:getIamTimezones", TypeShape.of(GetIamTimezonesResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getIamTimezones:getIamTimezones", TypeShape.of(GetIamTimezonesResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getImagingPolicyImage(GetImagingPolicyImageArgs args) { return getImagingPolicyImage(args, InvokeOptions.Empty); @@ -2568,13 +2952,16 @@ public static CompletableFuture getImagingPolicyIma return getImagingPolicyImagePlain(args, InvokeOptions.Empty); } public static Output getImagingPolicyImage(GetImagingPolicyImageArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getImagingPolicyImage:getImagingPolicyImage", TypeShape.of(GetImagingPolicyImageResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getImagingPolicyImage:getImagingPolicyImage", TypeShape.of(GetImagingPolicyImageResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getImagingPolicyImage(GetImagingPolicyImageArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getImagingPolicyImage:getImagingPolicyImage", TypeShape.of(GetImagingPolicyImageResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getImagingPolicyImage:getImagingPolicyImage", TypeShape.of(GetImagingPolicyImageResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getImagingPolicyImagePlain(GetImagingPolicyImagePlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getImagingPolicyImage:getImagingPolicyImage", TypeShape.of(GetImagingPolicyImageResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getImagingPolicyImage:getImagingPolicyImage", TypeShape.of(GetImagingPolicyImageResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getImagingPolicyVideo(GetImagingPolicyVideoArgs args) { return getImagingPolicyVideo(args, InvokeOptions.Empty); @@ -2583,13 +2970,16 @@ public static CompletableFuture getImagingPolicyVid return getImagingPolicyVideoPlain(args, InvokeOptions.Empty); } public static Output getImagingPolicyVideo(GetImagingPolicyVideoArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getImagingPolicyVideo:getImagingPolicyVideo", TypeShape.of(GetImagingPolicyVideoResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getImagingPolicyVideo:getImagingPolicyVideo", TypeShape.of(GetImagingPolicyVideoResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getImagingPolicyVideo(GetImagingPolicyVideoArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getImagingPolicyVideo:getImagingPolicyVideo", TypeShape.of(GetImagingPolicyVideoResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getImagingPolicyVideo:getImagingPolicyVideo", TypeShape.of(GetImagingPolicyVideoResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getImagingPolicyVideoPlain(GetImagingPolicyVideoPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getImagingPolicyVideo:getImagingPolicyVideo", TypeShape.of(GetImagingPolicyVideoResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getImagingPolicyVideo:getImagingPolicyVideo", TypeShape.of(GetImagingPolicyVideoResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getNetworkLists() { return getNetworkLists(GetNetworkListsArgs.Empty, InvokeOptions.Empty); @@ -2604,13 +2994,16 @@ public static CompletableFuture getNetworkListsPlain(GetN return getNetworkListsPlain(args, InvokeOptions.Empty); } public static Output getNetworkLists(GetNetworkListsArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getNetworkLists:getNetworkLists", TypeShape.of(GetNetworkListsResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getNetworkLists:getNetworkLists", TypeShape.of(GetNetworkListsResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getNetworkLists(GetNetworkListsArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getNetworkLists:getNetworkLists", TypeShape.of(GetNetworkListsResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getNetworkLists:getNetworkLists", TypeShape.of(GetNetworkListsResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getNetworkListsPlain(GetNetworkListsPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getNetworkLists:getNetworkLists", TypeShape.of(GetNetworkListsResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getNetworkLists:getNetworkLists", TypeShape.of(GetNetworkListsResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getProperties(GetPropertiesArgs args) { return getProperties(args, InvokeOptions.Empty); @@ -2619,13 +3012,16 @@ public static CompletableFuture getPropertiesPlain(GetPrope return getPropertiesPlain(args, InvokeOptions.Empty); } public static Output getProperties(GetPropertiesArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getProperties:getProperties", TypeShape.of(GetPropertiesResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getProperties:getProperties", TypeShape.of(GetPropertiesResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getProperties(GetPropertiesArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getProperties:getProperties", TypeShape.of(GetPropertiesResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getProperties:getProperties", TypeShape.of(GetPropertiesResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getPropertiesPlain(GetPropertiesPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getProperties:getProperties", TypeShape.of(GetPropertiesResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getProperties:getProperties", TypeShape.of(GetPropertiesResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getPropertiesSearch(GetPropertiesSearchArgs args) { return getPropertiesSearch(args, InvokeOptions.Empty); @@ -2634,13 +3030,16 @@ public static CompletableFuture getPropertiesSearchPl return getPropertiesSearchPlain(args, InvokeOptions.Empty); } public static Output getPropertiesSearch(GetPropertiesSearchArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getPropertiesSearch:getPropertiesSearch", TypeShape.of(GetPropertiesSearchResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getPropertiesSearch:getPropertiesSearch", TypeShape.of(GetPropertiesSearchResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getPropertiesSearch(GetPropertiesSearchArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getPropertiesSearch:getPropertiesSearch", TypeShape.of(GetPropertiesSearchResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getPropertiesSearch:getPropertiesSearch", TypeShape.of(GetPropertiesSearchResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getPropertiesSearchPlain(GetPropertiesSearchPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getPropertiesSearch:getPropertiesSearch", TypeShape.of(GetPropertiesSearchResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getPropertiesSearch:getPropertiesSearch", TypeShape.of(GetPropertiesSearchResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getProperty(GetPropertyArgs args) { return getProperty(args, InvokeOptions.Empty); @@ -2649,13 +3048,16 @@ public static CompletableFuture getPropertyPlain(GetPropertyP return getPropertyPlain(args, InvokeOptions.Empty); } public static Output getProperty(GetPropertyArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getProperty:getProperty", TypeShape.of(GetPropertyResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getProperty:getProperty", TypeShape.of(GetPropertyResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getProperty(GetPropertyArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getProperty:getProperty", TypeShape.of(GetPropertyResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getProperty:getProperty", TypeShape.of(GetPropertyResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getPropertyPlain(GetPropertyPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getProperty:getProperty", TypeShape.of(GetPropertyResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getProperty:getProperty", TypeShape.of(GetPropertyResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getPropertyActivation(GetPropertyActivationArgs args) { return getPropertyActivation(args, InvokeOptions.Empty); @@ -2664,13 +3066,16 @@ public static CompletableFuture getPropertyActivati return getPropertyActivationPlain(args, InvokeOptions.Empty); } public static Output getPropertyActivation(GetPropertyActivationArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getPropertyActivation:getPropertyActivation", TypeShape.of(GetPropertyActivationResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getPropertyActivation:getPropertyActivation", TypeShape.of(GetPropertyActivationResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getPropertyActivation(GetPropertyActivationArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getPropertyActivation:getPropertyActivation", TypeShape.of(GetPropertyActivationResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getPropertyActivation:getPropertyActivation", TypeShape.of(GetPropertyActivationResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getPropertyActivationPlain(GetPropertyActivationPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getPropertyActivation:getPropertyActivation", TypeShape.of(GetPropertyActivationResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getPropertyActivation:getPropertyActivation", TypeShape.of(GetPropertyActivationResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getPropertyHostnames(GetPropertyHostnamesArgs args) { return getPropertyHostnames(args, InvokeOptions.Empty); @@ -2679,13 +3084,16 @@ public static CompletableFuture getPropertyHostnames return getPropertyHostnamesPlain(args, InvokeOptions.Empty); } public static Output getPropertyHostnames(GetPropertyHostnamesArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getPropertyHostnames:getPropertyHostnames", TypeShape.of(GetPropertyHostnamesResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getPropertyHostnames:getPropertyHostnames", TypeShape.of(GetPropertyHostnamesResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getPropertyHostnames(GetPropertyHostnamesArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getPropertyHostnames:getPropertyHostnames", TypeShape.of(GetPropertyHostnamesResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getPropertyHostnames:getPropertyHostnames", TypeShape.of(GetPropertyHostnamesResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getPropertyHostnamesPlain(GetPropertyHostnamesPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getPropertyHostnames:getPropertyHostnames", TypeShape.of(GetPropertyHostnamesResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getPropertyHostnames:getPropertyHostnames", TypeShape.of(GetPropertyHostnamesResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getPropertyInclude(GetPropertyIncludeArgs args) { return getPropertyInclude(args, InvokeOptions.Empty); @@ -2694,13 +3102,16 @@ public static CompletableFuture getPropertyIncludePlai return getPropertyIncludePlain(args, InvokeOptions.Empty); } public static Output getPropertyInclude(GetPropertyIncludeArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getPropertyInclude:getPropertyInclude", TypeShape.of(GetPropertyIncludeResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getPropertyInclude:getPropertyInclude", TypeShape.of(GetPropertyIncludeResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getPropertyInclude(GetPropertyIncludeArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getPropertyInclude:getPropertyInclude", TypeShape.of(GetPropertyIncludeResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getPropertyInclude:getPropertyInclude", TypeShape.of(GetPropertyIncludeResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getPropertyIncludePlain(GetPropertyIncludePlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getPropertyInclude:getPropertyInclude", TypeShape.of(GetPropertyIncludeResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getPropertyInclude:getPropertyInclude", TypeShape.of(GetPropertyIncludeResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getPropertyIncludeActivation(GetPropertyIncludeActivationArgs args) { return getPropertyIncludeActivation(args, InvokeOptions.Empty); @@ -2709,13 +3120,16 @@ public static CompletableFuture getPropertyI return getPropertyIncludeActivationPlain(args, InvokeOptions.Empty); } public static Output getPropertyIncludeActivation(GetPropertyIncludeActivationArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getPropertyIncludeActivation:getPropertyIncludeActivation", TypeShape.of(GetPropertyIncludeActivationResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getPropertyIncludeActivation:getPropertyIncludeActivation", TypeShape.of(GetPropertyIncludeActivationResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getPropertyIncludeActivation(GetPropertyIncludeActivationArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getPropertyIncludeActivation:getPropertyIncludeActivation", TypeShape.of(GetPropertyIncludeActivationResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getPropertyIncludeActivation:getPropertyIncludeActivation", TypeShape.of(GetPropertyIncludeActivationResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getPropertyIncludeActivationPlain(GetPropertyIncludeActivationPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getPropertyIncludeActivation:getPropertyIncludeActivation", TypeShape.of(GetPropertyIncludeActivationResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getPropertyIncludeActivation:getPropertyIncludeActivation", TypeShape.of(GetPropertyIncludeActivationResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getPropertyIncludeParents(GetPropertyIncludeParentsArgs args) { return getPropertyIncludeParents(args, InvokeOptions.Empty); @@ -2724,13 +3138,16 @@ public static CompletableFuture getPropertyIncl return getPropertyIncludeParentsPlain(args, InvokeOptions.Empty); } public static Output getPropertyIncludeParents(GetPropertyIncludeParentsArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getPropertyIncludeParents:getPropertyIncludeParents", TypeShape.of(GetPropertyIncludeParentsResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getPropertyIncludeParents:getPropertyIncludeParents", TypeShape.of(GetPropertyIncludeParentsResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getPropertyIncludeParents(GetPropertyIncludeParentsArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getPropertyIncludeParents:getPropertyIncludeParents", TypeShape.of(GetPropertyIncludeParentsResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getPropertyIncludeParents:getPropertyIncludeParents", TypeShape.of(GetPropertyIncludeParentsResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getPropertyIncludeParentsPlain(GetPropertyIncludeParentsPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getPropertyIncludeParents:getPropertyIncludeParents", TypeShape.of(GetPropertyIncludeParentsResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getPropertyIncludeParents:getPropertyIncludeParents", TypeShape.of(GetPropertyIncludeParentsResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getPropertyIncludeRules(GetPropertyIncludeRulesArgs args) { return getPropertyIncludeRules(args, InvokeOptions.Empty); @@ -2739,13 +3156,16 @@ public static CompletableFuture getPropertyInclud return getPropertyIncludeRulesPlain(args, InvokeOptions.Empty); } public static Output getPropertyIncludeRules(GetPropertyIncludeRulesArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getPropertyIncludeRules:getPropertyIncludeRules", TypeShape.of(GetPropertyIncludeRulesResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getPropertyIncludeRules:getPropertyIncludeRules", TypeShape.of(GetPropertyIncludeRulesResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getPropertyIncludeRules(GetPropertyIncludeRulesArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getPropertyIncludeRules:getPropertyIncludeRules", TypeShape.of(GetPropertyIncludeRulesResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getPropertyIncludeRules:getPropertyIncludeRules", TypeShape.of(GetPropertyIncludeRulesResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getPropertyIncludeRulesPlain(GetPropertyIncludeRulesPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getPropertyIncludeRules:getPropertyIncludeRules", TypeShape.of(GetPropertyIncludeRulesResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getPropertyIncludeRules:getPropertyIncludeRules", TypeShape.of(GetPropertyIncludeRulesResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getPropertyIncludes(GetPropertyIncludesArgs args) { return getPropertyIncludes(args, InvokeOptions.Empty); @@ -2754,13 +3174,16 @@ public static CompletableFuture getPropertyIncludesPl return getPropertyIncludesPlain(args, InvokeOptions.Empty); } public static Output getPropertyIncludes(GetPropertyIncludesArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getPropertyIncludes:getPropertyIncludes", TypeShape.of(GetPropertyIncludesResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getPropertyIncludes:getPropertyIncludes", TypeShape.of(GetPropertyIncludesResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getPropertyIncludes(GetPropertyIncludesArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getPropertyIncludes:getPropertyIncludes", TypeShape.of(GetPropertyIncludesResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getPropertyIncludes:getPropertyIncludes", TypeShape.of(GetPropertyIncludesResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getPropertyIncludesPlain(GetPropertyIncludesPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getPropertyIncludes:getPropertyIncludes", TypeShape.of(GetPropertyIncludesResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getPropertyIncludes:getPropertyIncludes", TypeShape.of(GetPropertyIncludesResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getPropertyProducts(GetPropertyProductsArgs args) { return getPropertyProducts(args, InvokeOptions.Empty); @@ -2769,13 +3192,16 @@ public static CompletableFuture getPropertyProductsPl return getPropertyProductsPlain(args, InvokeOptions.Empty); } public static Output getPropertyProducts(GetPropertyProductsArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getPropertyProducts:getPropertyProducts", TypeShape.of(GetPropertyProductsResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getPropertyProducts:getPropertyProducts", TypeShape.of(GetPropertyProductsResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getPropertyProducts(GetPropertyProductsArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getPropertyProducts:getPropertyProducts", TypeShape.of(GetPropertyProductsResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getPropertyProducts:getPropertyProducts", TypeShape.of(GetPropertyProductsResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getPropertyProductsPlain(GetPropertyProductsPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getPropertyProducts:getPropertyProducts", TypeShape.of(GetPropertyProductsResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getPropertyProducts:getPropertyProducts", TypeShape.of(GetPropertyProductsResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getPropertyRuleFormats() { return getPropertyRuleFormats(InvokeArgs.Empty, InvokeOptions.Empty); @@ -2790,13 +3216,16 @@ public static CompletableFuture getPropertyRuleFor return getPropertyRuleFormatsPlain(args, InvokeOptions.Empty); } public static Output getPropertyRuleFormats(InvokeArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getPropertyRuleFormats:getPropertyRuleFormats", TypeShape.of(GetPropertyRuleFormatsResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getPropertyRuleFormats:getPropertyRuleFormats", TypeShape.of(GetPropertyRuleFormatsResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getPropertyRuleFormats(InvokeArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getPropertyRuleFormats:getPropertyRuleFormats", TypeShape.of(GetPropertyRuleFormatsResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getPropertyRuleFormats:getPropertyRuleFormats", TypeShape.of(GetPropertyRuleFormatsResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getPropertyRuleFormatsPlain(InvokeArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getPropertyRuleFormats:getPropertyRuleFormats", TypeShape.of(GetPropertyRuleFormatsResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getPropertyRuleFormats:getPropertyRuleFormats", TypeShape.of(GetPropertyRuleFormatsResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getPropertyRules(GetPropertyRulesArgs args) { return getPropertyRules(args, InvokeOptions.Empty); @@ -2805,13 +3234,16 @@ public static CompletableFuture getPropertyRulesPlain(Ge return getPropertyRulesPlain(args, InvokeOptions.Empty); } public static Output getPropertyRules(GetPropertyRulesArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getPropertyRules:getPropertyRules", TypeShape.of(GetPropertyRulesResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getPropertyRules:getPropertyRules", TypeShape.of(GetPropertyRulesResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getPropertyRules(GetPropertyRulesArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getPropertyRules:getPropertyRules", TypeShape.of(GetPropertyRulesResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getPropertyRules:getPropertyRules", TypeShape.of(GetPropertyRulesResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getPropertyRulesPlain(GetPropertyRulesPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getPropertyRules:getPropertyRules", TypeShape.of(GetPropertyRulesResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getPropertyRules:getPropertyRules", TypeShape.of(GetPropertyRulesResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getPropertyRulesBuilder() { return getPropertyRulesBuilder(GetPropertyRulesBuilderArgs.Empty, InvokeOptions.Empty); @@ -2826,13 +3258,16 @@ public static CompletableFuture getPropertyRulesB return getPropertyRulesBuilderPlain(args, InvokeOptions.Empty); } public static Output getPropertyRulesBuilder(GetPropertyRulesBuilderArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getPropertyRulesBuilder:getPropertyRulesBuilder", TypeShape.of(GetPropertyRulesBuilderResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getPropertyRulesBuilder:getPropertyRulesBuilder", TypeShape.of(GetPropertyRulesBuilderResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getPropertyRulesBuilder(GetPropertyRulesBuilderArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getPropertyRulesBuilder:getPropertyRulesBuilder", TypeShape.of(GetPropertyRulesBuilderResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getPropertyRulesBuilder:getPropertyRulesBuilder", TypeShape.of(GetPropertyRulesBuilderResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getPropertyRulesBuilderPlain(GetPropertyRulesBuilderPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getPropertyRulesBuilder:getPropertyRulesBuilder", TypeShape.of(GetPropertyRulesBuilderResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getPropertyRulesBuilder:getPropertyRulesBuilder", TypeShape.of(GetPropertyRulesBuilderResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getPropertyRulesTemplate() { return getPropertyRulesTemplate(GetPropertyRulesTemplateArgs.Empty, InvokeOptions.Empty); @@ -2847,12 +3282,15 @@ public static CompletableFuture getPropertyRules return getPropertyRulesTemplatePlain(args, InvokeOptions.Empty); } public static Output getPropertyRulesTemplate(GetPropertyRulesTemplateArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:index/getPropertyRulesTemplate:getPropertyRulesTemplate", TypeShape.of(GetPropertyRulesTemplateResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getPropertyRulesTemplate:getPropertyRulesTemplate", TypeShape.of(GetPropertyRulesTemplateResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getPropertyRulesTemplate(GetPropertyRulesTemplateArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:index/getPropertyRulesTemplate:getPropertyRulesTemplate", TypeShape.of(GetPropertyRulesTemplateResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:index/getPropertyRulesTemplate:getPropertyRulesTemplate", TypeShape.of(GetPropertyRulesTemplateResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getPropertyRulesTemplatePlain(GetPropertyRulesTemplatePlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:index/getPropertyRulesTemplate:getPropertyRulesTemplate", TypeShape.of(GetPropertyRulesTemplateResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:index/getPropertyRulesTemplate:getPropertyRulesTemplate", TypeShape.of(GetPropertyRulesTemplateResult.class), args, Utilities.withVersion(options)); + return result; } } diff --git a/pkg/codegen/testing/test/testdata/akamai/java/src/main/java/com/pulumi/akamai/edgedns/EdgednsFunctions.java b/pkg/codegen/testing/test/testdata/akamai/java/src/main/java/com/pulumi/akamai/edgedns/EdgednsFunctions.java index 5ac78da15e0..d0efd3db2b0 100644 --- a/pkg/codegen/testing/test/testdata/akamai/java/src/main/java/com/pulumi/akamai/edgedns/EdgednsFunctions.java +++ b/pkg/codegen/testing/test/testdata/akamai/java/src/main/java/com/pulumi/akamai/edgedns/EdgednsFunctions.java @@ -46,7 +46,8 @@ public static CompletableFuture getAuthoritiesSetPlain( */ @Deprecated /* akamai.edgedns/getauthoritiesset.getAuthoritiesSet has been deprecated in favor of akamai.index/getauthoritiesset.getAuthoritiesSet */ public static Output getAuthoritiesSet(GetAuthoritiesSetArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:edgedns/getAuthoritiesSet:getAuthoritiesSet", TypeShape.of(GetAuthoritiesSetResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:edgedns/getAuthoritiesSet:getAuthoritiesSet", TypeShape.of(GetAuthoritiesSetResult.class), args, Utilities.withVersion(options)); + return result; } /** * @@ -56,7 +57,8 @@ public static Output getAuthoritiesSet(GetAuthoritiesSe */ @Deprecated /* akamai.edgedns/getauthoritiesset.getAuthoritiesSet has been deprecated in favor of akamai.index/getauthoritiesset.getAuthoritiesSet */ public static Output getAuthoritiesSet(GetAuthoritiesSetArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:edgedns/getAuthoritiesSet:getAuthoritiesSet", TypeShape.of(GetAuthoritiesSetResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:edgedns/getAuthoritiesSet:getAuthoritiesSet", TypeShape.of(GetAuthoritiesSetResult.class), args, Utilities.withVersion(options)); + return result; } /** * @@ -66,7 +68,8 @@ public static Output getAuthoritiesSet(GetAuthoritiesSe */ @Deprecated /* akamai.edgedns/getauthoritiesset.getAuthoritiesSet has been deprecated in favor of akamai.index/getauthoritiesset.getAuthoritiesSet */ public static CompletableFuture getAuthoritiesSetPlain(GetAuthoritiesSetPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:edgedns/getAuthoritiesSet:getAuthoritiesSet", TypeShape.of(GetAuthoritiesSetResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:edgedns/getAuthoritiesSet:getAuthoritiesSet", TypeShape.of(GetAuthoritiesSetResult.class), args, Utilities.withVersion(options)); + return result; } /** * @@ -96,7 +99,8 @@ public static CompletableFuture getDnsRecordSetPlain(GetD */ @Deprecated /* akamai.edgedns/getdnsrecordset.getDnsRecordSet has been deprecated in favor of akamai.index/getdnsrecordset.getDnsRecordSet */ public static Output getDnsRecordSet(GetDnsRecordSetArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:edgedns/getDnsRecordSet:getDnsRecordSet", TypeShape.of(GetDnsRecordSetResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:edgedns/getDnsRecordSet:getDnsRecordSet", TypeShape.of(GetDnsRecordSetResult.class), args, Utilities.withVersion(options)); + return result; } /** * @@ -106,7 +110,8 @@ public static Output getDnsRecordSet(GetDnsRecordSetArgs */ @Deprecated /* akamai.edgedns/getdnsrecordset.getDnsRecordSet has been deprecated in favor of akamai.index/getdnsrecordset.getDnsRecordSet */ public static Output getDnsRecordSet(GetDnsRecordSetArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:edgedns/getDnsRecordSet:getDnsRecordSet", TypeShape.of(GetDnsRecordSetResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:edgedns/getDnsRecordSet:getDnsRecordSet", TypeShape.of(GetDnsRecordSetResult.class), args, Utilities.withVersion(options)); + return result; } /** * @@ -116,6 +121,7 @@ public static Output getDnsRecordSet(GetDnsRecordSetArgs */ @Deprecated /* akamai.edgedns/getdnsrecordset.getDnsRecordSet has been deprecated in favor of akamai.index/getdnsrecordset.getDnsRecordSet */ public static CompletableFuture getDnsRecordSetPlain(GetDnsRecordSetPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:edgedns/getDnsRecordSet:getDnsRecordSet", TypeShape.of(GetDnsRecordSetResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:edgedns/getDnsRecordSet:getDnsRecordSet", TypeShape.of(GetDnsRecordSetResult.class), args, Utilities.withVersion(options)); + return result; } } diff --git a/pkg/codegen/testing/test/testdata/akamai/java/src/main/java/com/pulumi/akamai/properties/PropertiesFunctions.java b/pkg/codegen/testing/test/testdata/akamai/java/src/main/java/com/pulumi/akamai/properties/PropertiesFunctions.java index 15b88c25b91..3bb60ba8c47 100644 --- a/pkg/codegen/testing/test/testdata/akamai/java/src/main/java/com/pulumi/akamai/properties/PropertiesFunctions.java +++ b/pkg/codegen/testing/test/testdata/akamai/java/src/main/java/com/pulumi/akamai/properties/PropertiesFunctions.java @@ -52,7 +52,8 @@ public static CompletableFuture getActivationPlain(GetActiv */ @Deprecated /* akamai.properties/getactivation.getActivation has been deprecated in favor of akamai.index/getpropertyactivation.getPropertyActivation */ public static Output getActivation(GetActivationArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:properties/getActivation:getActivation", TypeShape.of(GetActivationResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:properties/getActivation:getActivation", TypeShape.of(GetActivationResult.class), args, Utilities.withVersion(options)); + return result; } /** * @@ -62,7 +63,8 @@ public static Output getActivation(GetActivationArgs args, */ @Deprecated /* akamai.properties/getactivation.getActivation has been deprecated in favor of akamai.index/getpropertyactivation.getPropertyActivation */ public static Output getActivation(GetActivationArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:properties/getActivation:getActivation", TypeShape.of(GetActivationResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:properties/getActivation:getActivation", TypeShape.of(GetActivationResult.class), args, Utilities.withVersion(options)); + return result; } /** * @@ -72,7 +74,8 @@ public static Output getActivation(GetActivationArgs args, */ @Deprecated /* akamai.properties/getactivation.getActivation has been deprecated in favor of akamai.index/getpropertyactivation.getPropertyActivation */ public static CompletableFuture getActivationPlain(GetActivationPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:properties/getActivation:getActivation", TypeShape.of(GetActivationResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:properties/getActivation:getActivation", TypeShape.of(GetActivationResult.class), args, Utilities.withVersion(options)); + return result; } /** * @@ -102,7 +105,8 @@ public static CompletableFuture getCpCodePlain(GetCpCodePlainAr */ @Deprecated /* akamai.properties/getcpcode.getCpCode has been deprecated in favor of akamai.index/getcpcode.getCpCode */ public static Output getCpCode(GetCpCodeArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:properties/getCpCode:getCpCode", TypeShape.of(GetCpCodeResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:properties/getCpCode:getCpCode", TypeShape.of(GetCpCodeResult.class), args, Utilities.withVersion(options)); + return result; } /** * @@ -112,7 +116,8 @@ public static Output getCpCode(GetCpCodeArgs args, InvokeOption */ @Deprecated /* akamai.properties/getcpcode.getCpCode has been deprecated in favor of akamai.index/getcpcode.getCpCode */ public static Output getCpCode(GetCpCodeArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:properties/getCpCode:getCpCode", TypeShape.of(GetCpCodeResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:properties/getCpCode:getCpCode", TypeShape.of(GetCpCodeResult.class), args, Utilities.withVersion(options)); + return result; } /** * @@ -122,7 +127,8 @@ public static Output getCpCode(GetCpCodeArgs args, InvokeOutput */ @Deprecated /* akamai.properties/getcpcode.getCpCode has been deprecated in favor of akamai.index/getcpcode.getCpCode */ public static CompletableFuture getCpCodePlain(GetCpCodePlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:properties/getCpCode:getCpCode", TypeShape.of(GetCpCodeResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:properties/getCpCode:getCpCode", TypeShape.of(GetCpCodeResult.class), args, Utilities.withVersion(options)); + return result; } /** * @@ -152,7 +158,8 @@ public static CompletableFuture getPropertyPlain(GetPropertyP */ @Deprecated /* akamai.properties/getproperty.getProperty has been deprecated in favor of akamai.index/getproperty.getProperty */ public static Output getProperty(GetPropertyArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:properties/getProperty:getProperty", TypeShape.of(GetPropertyResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:properties/getProperty:getProperty", TypeShape.of(GetPropertyResult.class), args, Utilities.withVersion(options)); + return result; } /** * @@ -162,7 +169,8 @@ public static Output getProperty(GetPropertyArgs args, Invoke */ @Deprecated /* akamai.properties/getproperty.getProperty has been deprecated in favor of akamai.index/getproperty.getProperty */ public static Output getProperty(GetPropertyArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:properties/getProperty:getProperty", TypeShape.of(GetPropertyResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:properties/getProperty:getProperty", TypeShape.of(GetPropertyResult.class), args, Utilities.withVersion(options)); + return result; } /** * @@ -172,7 +180,8 @@ public static Output getProperty(GetPropertyArgs args, Invoke */ @Deprecated /* akamai.properties/getproperty.getProperty has been deprecated in favor of akamai.index/getproperty.getProperty */ public static CompletableFuture getPropertyPlain(GetPropertyPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:properties/getProperty:getProperty", TypeShape.of(GetPropertyResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:properties/getProperty:getProperty", TypeShape.of(GetPropertyResult.class), args, Utilities.withVersion(options)); + return result; } /** * @@ -202,7 +211,8 @@ public static CompletableFuture getPropertyRulesPlain(Ge */ @Deprecated /* akamai.properties/getpropertyrules.getPropertyRules has been deprecated in favor of akamai.index/getpropertyrules.getPropertyRules */ public static Output getPropertyRules(GetPropertyRulesArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:properties/getPropertyRules:getPropertyRules", TypeShape.of(GetPropertyRulesResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:properties/getPropertyRules:getPropertyRules", TypeShape.of(GetPropertyRulesResult.class), args, Utilities.withVersion(options)); + return result; } /** * @@ -212,7 +222,8 @@ public static Output getPropertyRules(GetPropertyRulesAr */ @Deprecated /* akamai.properties/getpropertyrules.getPropertyRules has been deprecated in favor of akamai.index/getpropertyrules.getPropertyRules */ public static Output getPropertyRules(GetPropertyRulesArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:properties/getPropertyRules:getPropertyRules", TypeShape.of(GetPropertyRulesResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:properties/getPropertyRules:getPropertyRules", TypeShape.of(GetPropertyRulesResult.class), args, Utilities.withVersion(options)); + return result; } /** * @@ -222,6 +233,7 @@ public static Output getPropertyRules(GetPropertyRulesAr */ @Deprecated /* akamai.properties/getpropertyrules.getPropertyRules has been deprecated in favor of akamai.index/getpropertyrules.getPropertyRules */ public static CompletableFuture getPropertyRulesPlain(GetPropertyRulesPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:properties/getPropertyRules:getPropertyRules", TypeShape.of(GetPropertyRulesResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:properties/getPropertyRules:getPropertyRules", TypeShape.of(GetPropertyRulesResult.class), args, Utilities.withVersion(options)); + return result; } } diff --git a/pkg/codegen/testing/test/testdata/akamai/java/src/main/java/com/pulumi/akamai/trafficmanagement/TrafficmanagementFunctions.java b/pkg/codegen/testing/test/testdata/akamai/java/src/main/java/com/pulumi/akamai/trafficmanagement/TrafficmanagementFunctions.java index 31b70564e36..4ba9347e2b7 100644 --- a/pkg/codegen/testing/test/testdata/akamai/java/src/main/java/com/pulumi/akamai/trafficmanagement/TrafficmanagementFunctions.java +++ b/pkg/codegen/testing/test/testdata/akamai/java/src/main/java/com/pulumi/akamai/trafficmanagement/TrafficmanagementFunctions.java @@ -43,7 +43,8 @@ public static CompletableFuture getGtmDefaultData */ @Deprecated /* akamai.trafficmanagement/getgtmdefaultdatacenter.getGtmDefaultDatacenter has been deprecated in favor of akamai.index/getgtmdefaultdatacenter.getGtmDefaultDatacenter */ public static Output getGtmDefaultDatacenter(GetGtmDefaultDatacenterArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("akamai:trafficmanagement/getGtmDefaultDatacenter:getGtmDefaultDatacenter", TypeShape.of(GetGtmDefaultDatacenterResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:trafficmanagement/getGtmDefaultDatacenter:getGtmDefaultDatacenter", TypeShape.of(GetGtmDefaultDatacenterResult.class), args, Utilities.withVersion(options)); + return result; } /** * @@ -53,7 +54,8 @@ public static Output getGtmDefaultDatacenter(GetG */ @Deprecated /* akamai.trafficmanagement/getgtmdefaultdatacenter.getGtmDefaultDatacenter has been deprecated in favor of akamai.index/getgtmdefaultdatacenter.getGtmDefaultDatacenter */ public static Output getGtmDefaultDatacenter(GetGtmDefaultDatacenterArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("akamai:trafficmanagement/getGtmDefaultDatacenter:getGtmDefaultDatacenter", TypeShape.of(GetGtmDefaultDatacenterResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("akamai:trafficmanagement/getGtmDefaultDatacenter:getGtmDefaultDatacenter", TypeShape.of(GetGtmDefaultDatacenterResult.class), args, Utilities.withVersion(options)); + return result; } /** * @@ -63,6 +65,7 @@ public static Output getGtmDefaultDatacenter(GetG */ @Deprecated /* akamai.trafficmanagement/getgtmdefaultdatacenter.getGtmDefaultDatacenter has been deprecated in favor of akamai.index/getgtmdefaultdatacenter.getGtmDefaultDatacenter */ public static CompletableFuture getGtmDefaultDatacenterPlain(GetGtmDefaultDatacenterPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("akamai:trafficmanagement/getGtmDefaultDatacenter:getGtmDefaultDatacenter", TypeShape.of(GetGtmDefaultDatacenterResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("akamai:trafficmanagement/getGtmDefaultDatacenter:getGtmDefaultDatacenter", TypeShape.of(GetGtmDefaultDatacenterResult.class), args, Utilities.withVersion(options)); + return result; } } diff --git a/pkg/codegen/testing/test/testdata/assets-and-archives/java/src/main/java/com/pulumi/example/ExampleFunctions.java b/pkg/codegen/testing/test/testdata/assets-and-archives/java/src/main/java/com/pulumi/example/ExampleFunctions.java index 13a154f7fcd..1f218db5351 100644 --- a/pkg/codegen/testing/test/testdata/assets-and-archives/java/src/main/java/com/pulumi/example/ExampleFunctions.java +++ b/pkg/codegen/testing/test/testdata/assets-and-archives/java/src/main/java/com/pulumi/example/ExampleFunctions.java @@ -22,12 +22,15 @@ public static CompletableFuture getAssetsPlain(GetAssetsPlainAr return getAssetsPlain(args, InvokeOptions.Empty); } public static Output getAssets(GetAssetsArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("example::GetAssets", TypeShape.of(GetAssetsResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("example::GetAssets", TypeShape.of(GetAssetsResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getAssets(GetAssetsArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("example::GetAssets", TypeShape.of(GetAssetsResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("example::GetAssets", TypeShape.of(GetAssetsResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getAssetsPlain(GetAssetsPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("example::GetAssets", TypeShape.of(GetAssetsResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("example::GetAssets", TypeShape.of(GetAssetsResult.class), args, Utilities.withVersion(options)); + return result; } } diff --git a/pkg/codegen/testing/test/testdata/azure-native-pp/java/azure-native.java b/pkg/codegen/testing/test/testdata/azure-native-pp/java/azure-native.java index cf7c3e3b65d..23016be0060 100644 --- a/pkg/codegen/testing/test/testdata/azure-native-pp/java/azure-native.java +++ b/pkg/codegen/testing/test/testdata/azure-native-pp/java/azure-native.java @@ -35,8 +35,8 @@ public static void stack(Context ctx) { var endpoint = new Endpoint("endpoint", EndpointArgs.builder() .deliveryPolicy(EndpointPropertiesUpdateParametersDeliveryPolicyArgs.builder() - .rules(DeliveryRuleArgs.builder() - .actions( + .rules(Map.ofEntries( + Map.entry("actions", DeliveryRuleCacheExpirationActionArgs.builder() .name("CacheExpiration") .parameters(CacheExpirationActionParametersArgs.builder() @@ -63,8 +63,8 @@ public static void stack(Context ctx) { .odataType("#Microsoft.Azure.Cdn.Models.DeliveryRuleHeaderActionParameters") .value("gzip") .build()) - .build()) - .conditions(DeliveryRuleRemoteAddressConditionArgs.builder() + .build()), + Map.entry("conditions", DeliveryRuleRemoteAddressConditionArgs.builder() .name("RemoteAddress") .parameters(RemoteAddressMatchConditionParametersArgs.builder() .matchValues( @@ -74,10 +74,10 @@ public static void stack(Context ctx) { .odataType("#Microsoft.Azure.Cdn.Models.DeliveryRuleRemoteAddressConditionParameters") .operator("IPMatch") .build()) - .build()) - .name("rule1") - .order(1) - .build()) + .build()), + Map.entry("name", "rule1"), + Map.entry("order", 1) + )) .build()) .endpointName("endpoint1") .isCompressionEnabled(true) diff --git a/pkg/codegen/testing/test/testdata/functions-secrets/java/src/main/java/com/pulumi/mypkg/MypkgFunctions.java b/pkg/codegen/testing/test/testdata/functions-secrets/java/src/main/java/com/pulumi/mypkg/MypkgFunctions.java index 27dffd2dc6d..163ee8f93ac 100644 --- a/pkg/codegen/testing/test/testdata/functions-secrets/java/src/main/java/com/pulumi/mypkg/MypkgFunctions.java +++ b/pkg/codegen/testing/test/testdata/functions-secrets/java/src/main/java/com/pulumi/mypkg/MypkgFunctions.java @@ -22,12 +22,15 @@ public static CompletableFuture funcWithSecretsPlain(Func return funcWithSecretsPlain(args, InvokeOptions.Empty); } public static Output funcWithSecrets(FuncWithSecretsArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("mypkg::funcWithSecrets", TypeShape.of(FuncWithSecretsResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("mypkg::funcWithSecrets", TypeShape.of(FuncWithSecretsResult.class), args, Utilities.withVersion(options)); + return result; } public static Output funcWithSecrets(FuncWithSecretsArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("mypkg::funcWithSecrets", TypeShape.of(FuncWithSecretsResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("mypkg::funcWithSecrets", TypeShape.of(FuncWithSecretsResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture funcWithSecretsPlain(FuncWithSecretsPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("mypkg::funcWithSecrets", TypeShape.of(FuncWithSecretsResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("mypkg::funcWithSecrets", TypeShape.of(FuncWithSecretsResult.class), args, Utilities.withVersion(options)); + return result; } } diff --git a/pkg/codegen/testing/test/testdata/mini-awsclassic/java/src/main/java/com/pulumi/aws/ec2_getAmi/Ec2_getAmiFunctions.java b/pkg/codegen/testing/test/testdata/mini-awsclassic/java/src/main/java/com/pulumi/aws/ec2_getAmi/Ec2_getAmiFunctions.java index d1bd5259ce7..78724d8540a 100644 --- a/pkg/codegen/testing/test/testdata/mini-awsclassic/java/src/main/java/com/pulumi/aws/ec2_getAmi/Ec2_getAmiFunctions.java +++ b/pkg/codegen/testing/test/testdata/mini-awsclassic/java/src/main/java/com/pulumi/aws/ec2_getAmi/Ec2_getAmiFunctions.java @@ -22,12 +22,15 @@ public static CompletableFuture getAmiPlain(GetAmiPlainArgs args) return getAmiPlain(args, InvokeOptions.Empty); } public static Output getAmi(GetAmiArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("aws:ec2/getAmi:getAmi", TypeShape.of(GetAmiResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("aws:ec2/getAmi:getAmi", TypeShape.of(GetAmiResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getAmi(GetAmiArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("aws:ec2/getAmi:getAmi", TypeShape.of(GetAmiResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("aws:ec2/getAmi:getAmi", TypeShape.of(GetAmiResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getAmiPlain(GetAmiPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("aws:ec2/getAmi:getAmi", TypeShape.of(GetAmiResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("aws:ec2/getAmi:getAmi", TypeShape.of(GetAmiResult.class), args, Utilities.withVersion(options)); + return result; } } diff --git a/pkg/codegen/testing/test/testdata/mini-azurenative/java/src/main/java/com/pulumi/azurenative/alertsmanagement/AlertsmanagementFunctions.java b/pkg/codegen/testing/test/testdata/mini-azurenative/java/src/main/java/com/pulumi/azurenative/alertsmanagement/AlertsmanagementFunctions.java index 650efcbad66..a1a8ccd8393 100644 --- a/pkg/codegen/testing/test/testdata/mini-azurenative/java/src/main/java/com/pulumi/azurenative/alertsmanagement/AlertsmanagementFunctions.java +++ b/pkg/codegen/testing/test/testdata/mini-azurenative/java/src/main/java/com/pulumi/azurenative/alertsmanagement/AlertsmanagementFunctions.java @@ -37,7 +37,8 @@ public static CompletableFuture getActionRuleByNamePl * */ public static Output getActionRuleByName(GetActionRuleByNameArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("azure-native:alertsmanagement:getActionRuleByName", TypeShape.of(GetActionRuleByNameResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("azure-native:alertsmanagement:getActionRuleByName", TypeShape.of(GetActionRuleByNameResult.class), args, Utilities.withVersion(options)); + return result; } /** * Action rule object containing target scope, conditions and suppression logic @@ -45,7 +46,8 @@ public static Output getActionRuleByName(GetActionRul * */ public static Output getActionRuleByName(GetActionRuleByNameArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("azure-native:alertsmanagement:getActionRuleByName", TypeShape.of(GetActionRuleByNameResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("azure-native:alertsmanagement:getActionRuleByName", TypeShape.of(GetActionRuleByNameResult.class), args, Utilities.withVersion(options)); + return result; } /** * Action rule object containing target scope, conditions and suppression logic @@ -53,6 +55,7 @@ public static Output getActionRuleByName(GetActionRul * */ public static CompletableFuture getActionRuleByNamePlain(GetActionRuleByNamePlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("azure-native:alertsmanagement:getActionRuleByName", TypeShape.of(GetActionRuleByNameResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("azure-native:alertsmanagement:getActionRuleByName", TypeShape.of(GetActionRuleByNameResult.class), args, Utilities.withVersion(options)); + return result; } } diff --git a/pkg/codegen/testing/test/testdata/mini-azurenative/java/src/main/java/com/pulumi/azurenative/logic/LogicFunctions.java b/pkg/codegen/testing/test/testdata/mini-azurenative/java/src/main/java/com/pulumi/azurenative/logic/LogicFunctions.java index 82d71cf66e9..e519a30b903 100644 --- a/pkg/codegen/testing/test/testdata/mini-azurenative/java/src/main/java/com/pulumi/azurenative/logic/LogicFunctions.java +++ b/pkg/codegen/testing/test/testdata/mini-azurenative/java/src/main/java/com/pulumi/azurenative/logic/LogicFunctions.java @@ -37,7 +37,8 @@ public static CompletableFuture listIn * */ public static Output listIntegrationAccountKeyVaultKeys(ListIntegrationAccountKeyVaultKeysArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("azure-native:logic:listIntegrationAccountKeyVaultKeys", TypeShape.of(ListIntegrationAccountKeyVaultKeysResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("azure-native:logic:listIntegrationAccountKeyVaultKeys", TypeShape.of(ListIntegrationAccountKeyVaultKeysResult.class), args, Utilities.withVersion(options)); + return result; } /** * Collection of key vault keys. @@ -45,7 +46,8 @@ public static Output listIntegrationAc * */ public static Output listIntegrationAccountKeyVaultKeys(ListIntegrationAccountKeyVaultKeysArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("azure-native:logic:listIntegrationAccountKeyVaultKeys", TypeShape.of(ListIntegrationAccountKeyVaultKeysResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("azure-native:logic:listIntegrationAccountKeyVaultKeys", TypeShape.of(ListIntegrationAccountKeyVaultKeysResult.class), args, Utilities.withVersion(options)); + return result; } /** * Collection of key vault keys. @@ -53,6 +55,7 @@ public static Output listIntegrationAc * */ public static CompletableFuture listIntegrationAccountKeyVaultKeysPlain(ListIntegrationAccountKeyVaultKeysPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("azure-native:logic:listIntegrationAccountKeyVaultKeys", TypeShape.of(ListIntegrationAccountKeyVaultKeysResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("azure-native:logic:listIntegrationAccountKeyVaultKeys", TypeShape.of(ListIntegrationAccountKeyVaultKeysResult.class), args, Utilities.withVersion(options)); + return result; } } diff --git a/pkg/codegen/testing/test/testdata/mini-azurenative/java/src/main/java/com/pulumi/azurenative/web/WebFunctions.java b/pkg/codegen/testing/test/testdata/mini-azurenative/java/src/main/java/com/pulumi/azurenative/web/WebFunctions.java index afa86352002..5b84dd662e7 100644 --- a/pkg/codegen/testing/test/testdata/mini-azurenative/java/src/main/java/com/pulumi/azurenative/web/WebFunctions.java +++ b/pkg/codegen/testing/test/testdata/mini-azurenative/java/src/main/java/com/pulumi/azurenative/web/WebFunctions.java @@ -37,7 +37,8 @@ public static CompletableFuture getWebAppSlotPlain(GetWebAp * */ public static Output getWebAppSlot(GetWebAppSlotArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("azure-native:web:getWebAppSlot", TypeShape.of(GetWebAppSlotResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("azure-native:web:getWebAppSlot", TypeShape.of(GetWebAppSlotResult.class), args, Utilities.withVersion(options)); + return result; } /** * A web app, a mobile app backend, or an API app. @@ -45,7 +46,8 @@ public static Output getWebAppSlot(GetWebAppSlotArgs args, * */ public static Output getWebAppSlot(GetWebAppSlotArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("azure-native:web:getWebAppSlot", TypeShape.of(GetWebAppSlotResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("azure-native:web:getWebAppSlot", TypeShape.of(GetWebAppSlotResult.class), args, Utilities.withVersion(options)); + return result; } /** * A web app, a mobile app backend, or an API app. @@ -53,6 +55,7 @@ public static Output getWebAppSlot(GetWebAppSlotArgs args, * */ public static CompletableFuture getWebAppSlotPlain(GetWebAppSlotPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("azure-native:web:getWebAppSlot", TypeShape.of(GetWebAppSlotResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("azure-native:web:getWebAppSlot", TypeShape.of(GetWebAppSlotResult.class), args, Utilities.withVersion(options)); + return result; } } diff --git a/pkg/codegen/testing/test/testdata/other-owned/java/src/main/java/com/pulumi/example/ExampleFunctions.java b/pkg/codegen/testing/test/testdata/other-owned/java/src/main/java/com/pulumi/example/ExampleFunctions.java index 8b6c16774c8..1b6daff808b 100644 --- a/pkg/codegen/testing/test/testdata/other-owned/java/src/main/java/com/pulumi/example/ExampleFunctions.java +++ b/pkg/codegen/testing/test/testdata/other-owned/java/src/main/java/com/pulumi/example/ExampleFunctions.java @@ -28,12 +28,15 @@ public static CompletableFuture argFunctionPlain(ArgFunctionP return argFunctionPlain(args, InvokeOptions.Empty); } public static Output argFunction(ArgFunctionArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("example::argFunction", TypeShape.of(ArgFunctionResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("example::argFunction", TypeShape.of(ArgFunctionResult.class), args, Utilities.withVersion(options)); + return result; } public static Output argFunction(ArgFunctionArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("example::argFunction", TypeShape.of(ArgFunctionResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("example::argFunction", TypeShape.of(ArgFunctionResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture argFunctionPlain(ArgFunctionPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("example::argFunction", TypeShape.of(ArgFunctionResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("example::argFunction", TypeShape.of(ArgFunctionResult.class), args, Utilities.withVersion(options)); + return result; } } diff --git a/pkg/codegen/testing/test/testdata/output-funcs-edgeorder/java/src/main/java/com/pulumi/myedgeorder/MyedgeorderFunctions.java b/pkg/codegen/testing/test/testdata/output-funcs-edgeorder/java/src/main/java/com/pulumi/myedgeorder/MyedgeorderFunctions.java index 6f345430c90..7ce9706d4b2 100644 --- a/pkg/codegen/testing/test/testdata/output-funcs-edgeorder/java/src/main/java/com/pulumi/myedgeorder/MyedgeorderFunctions.java +++ b/pkg/codegen/testing/test/testdata/output-funcs-edgeorder/java/src/main/java/com/pulumi/myedgeorder/MyedgeorderFunctions.java @@ -40,7 +40,8 @@ public static CompletableFuture listConfigurationsPlai * */ public static Output listConfigurations(ListConfigurationsArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("myedgeorder::listConfigurations", TypeShape.of(ListConfigurationsResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("myedgeorder::listConfigurations", TypeShape.of(ListConfigurationsResult.class), args, Utilities.withVersion(options)); + return result; } /** * The list of configurations. @@ -48,7 +49,8 @@ public static Output listConfigurations(ListConfigurat * */ public static Output listConfigurations(ListConfigurationsArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("myedgeorder::listConfigurations", TypeShape.of(ListConfigurationsResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("myedgeorder::listConfigurations", TypeShape.of(ListConfigurationsResult.class), args, Utilities.withVersion(options)); + return result; } /** * The list of configurations. @@ -56,7 +58,8 @@ public static Output listConfigurations(ListConfigurat * */ public static CompletableFuture listConfigurationsPlain(ListConfigurationsPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("myedgeorder::listConfigurations", TypeShape.of(ListConfigurationsResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("myedgeorder::listConfigurations", TypeShape.of(ListConfigurationsResult.class), args, Utilities.withVersion(options)); + return result; } /** * The list of product families. @@ -80,7 +83,8 @@ public static CompletableFuture listProductFamiliesPl * */ public static Output listProductFamilies(ListProductFamiliesArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("myedgeorder::listProductFamilies", TypeShape.of(ListProductFamiliesResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("myedgeorder::listProductFamilies", TypeShape.of(ListProductFamiliesResult.class), args, Utilities.withVersion(options)); + return result; } /** * The list of product families. @@ -88,7 +92,8 @@ public static Output listProductFamilies(ListProductF * */ public static Output listProductFamilies(ListProductFamiliesArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("myedgeorder::listProductFamilies", TypeShape.of(ListProductFamiliesResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("myedgeorder::listProductFamilies", TypeShape.of(ListProductFamiliesResult.class), args, Utilities.withVersion(options)); + return result; } /** * The list of product families. @@ -96,6 +101,7 @@ public static Output listProductFamilies(ListProductF * */ public static CompletableFuture listProductFamiliesPlain(ListProductFamiliesPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("myedgeorder::listProductFamilies", TypeShape.of(ListProductFamiliesResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("myedgeorder::listProductFamilies", TypeShape.of(ListProductFamiliesResult.class), args, Utilities.withVersion(options)); + return result; } } diff --git a/pkg/codegen/testing/test/testdata/output-funcs-tfbridge20/java/src/main/java/com/pulumi/mypkg/MypkgFunctions.java b/pkg/codegen/testing/test/testdata/output-funcs-tfbridge20/java/src/main/java/com/pulumi/mypkg/MypkgFunctions.java index fa02372f62c..ad789873a7e 100644 --- a/pkg/codegen/testing/test/testdata/output-funcs-tfbridge20/java/src/main/java/com/pulumi/mypkg/MypkgFunctions.java +++ b/pkg/codegen/testing/test/testdata/output-funcs-tfbridge20/java/src/main/java/com/pulumi/mypkg/MypkgFunctions.java @@ -49,7 +49,8 @@ public static CompletableFuture getAmiIdsPlain(GetAmiIdsPlainAr */ @Deprecated /* aws.getAmiIds has been deprecated in favor of aws.ec2.getAmiIds */ public static Output getAmiIds(GetAmiIdsArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("mypkg::getAmiIds", TypeShape.of(GetAmiIdsResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("mypkg::getAmiIds", TypeShape.of(GetAmiIdsResult.class), args, Utilities.withVersion(options)); + return result; } /** * Taken from pulumi-AWS to regress an issue @@ -60,7 +61,8 @@ public static Output getAmiIds(GetAmiIdsArgs args, InvokeOption */ @Deprecated /* aws.getAmiIds has been deprecated in favor of aws.ec2.getAmiIds */ public static Output getAmiIds(GetAmiIdsArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("mypkg::getAmiIds", TypeShape.of(GetAmiIdsResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("mypkg::getAmiIds", TypeShape.of(GetAmiIdsResult.class), args, Utilities.withVersion(options)); + return result; } /** * Taken from pulumi-AWS to regress an issue @@ -71,7 +73,8 @@ public static Output getAmiIds(GetAmiIdsArgs args, InvokeOutput */ @Deprecated /* aws.getAmiIds has been deprecated in favor of aws.ec2.getAmiIds */ public static CompletableFuture getAmiIdsPlain(GetAmiIdsPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("mypkg::getAmiIds", TypeShape.of(GetAmiIdsResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("mypkg::getAmiIds", TypeShape.of(GetAmiIdsResult.class), args, Utilities.withVersion(options)); + return result; } /** * The response from the ListKeys operation. @@ -95,7 +98,8 @@ public static CompletableFuture listStorageAccount * */ public static Output listStorageAccountKeys(ListStorageAccountKeysArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("mypkg::listStorageAccountKeys", TypeShape.of(ListStorageAccountKeysResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("mypkg::listStorageAccountKeys", TypeShape.of(ListStorageAccountKeysResult.class), args, Utilities.withVersion(options)); + return result; } /** * The response from the ListKeys operation. @@ -103,7 +107,8 @@ public static Output listStorageAccountKeys(ListSt * */ public static Output listStorageAccountKeys(ListStorageAccountKeysArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("mypkg::listStorageAccountKeys", TypeShape.of(ListStorageAccountKeysResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("mypkg::listStorageAccountKeys", TypeShape.of(ListStorageAccountKeysResult.class), args, Utilities.withVersion(options)); + return result; } /** * The response from the ListKeys operation. @@ -111,6 +116,7 @@ public static Output listStorageAccountKeys(ListSt * */ public static CompletableFuture listStorageAccountKeysPlain(ListStorageAccountKeysPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("mypkg::listStorageAccountKeys", TypeShape.of(ListStorageAccountKeysResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("mypkg::listStorageAccountKeys", TypeShape.of(ListStorageAccountKeysResult.class), args, Utilities.withVersion(options)); + return result; } } diff --git a/pkg/codegen/testing/test/testdata/output-funcs/java/src/main/java/com/pulumi/mypkg/MypkgFunctions.java b/pkg/codegen/testing/test/testdata/output-funcs/java/src/main/java/com/pulumi/mypkg/MypkgFunctions.java index fb9f5d1a846..bc1b97f7491 100644 --- a/pkg/codegen/testing/test/testdata/output-funcs/java/src/main/java/com/pulumi/mypkg/MypkgFunctions.java +++ b/pkg/codegen/testing/test/testdata/output-funcs/java/src/main/java/com/pulumi/mypkg/MypkgFunctions.java @@ -73,21 +73,24 @@ public static CompletableFuture funcWithAllOpti * */ public static Output funcWithAllOptionalInputs(FuncWithAllOptionalInputsArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("mypkg::funcWithAllOptionalInputs", TypeShape.of(FuncWithAllOptionalInputsResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("mypkg::funcWithAllOptionalInputs", TypeShape.of(FuncWithAllOptionalInputsResult.class), args, Utilities.withVersion(options)); + return result; } /** * Check codegen of functions with all optional inputs. * */ public static Output funcWithAllOptionalInputs(FuncWithAllOptionalInputsArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("mypkg::funcWithAllOptionalInputs", TypeShape.of(FuncWithAllOptionalInputsResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("mypkg::funcWithAllOptionalInputs", TypeShape.of(FuncWithAllOptionalInputsResult.class), args, Utilities.withVersion(options)); + return result; } /** * Check codegen of functions with all optional inputs. * */ public static CompletableFuture funcWithAllOptionalInputsPlain(FuncWithAllOptionalInputsPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("mypkg::funcWithAllOptionalInputs", TypeShape.of(FuncWithAllOptionalInputsResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("mypkg::funcWithAllOptionalInputs", TypeShape.of(FuncWithAllOptionalInputsResult.class), args, Utilities.withVersion(options)); + return result; } /** * Codegen demo with const inputs @@ -122,21 +125,24 @@ public static CompletableFuture funcWithConstInputPlain(FuncWithConstInput * */ public static Output funcWithConstInput(FuncWithConstInputArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("mypkg::funcWithConstInput", TypeShape.of(Void.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("mypkg::funcWithConstInput", TypeShape.of(Void.class), args, Utilities.withVersion(options)); + return result; } /** * Codegen demo with const inputs * */ public static Output funcWithConstInput(FuncWithConstInputArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("mypkg::funcWithConstInput", TypeShape.of(Void.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("mypkg::funcWithConstInput", TypeShape.of(Void.class), args, Utilities.withVersion(options)); + return result; } /** * Codegen demo with const inputs * */ public static CompletableFuture funcWithConstInputPlain(FuncWithConstInputPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("mypkg::funcWithConstInput", TypeShape.of(Void.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("mypkg::funcWithConstInput", TypeShape.of(Void.class), args, Utilities.withVersion(options)); + return result; } /** * Check codegen of functions with default values. @@ -157,21 +163,24 @@ public static CompletableFuture funcWithDefaultValue * */ public static Output funcWithDefaultValue(FuncWithDefaultValueArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("mypkg::funcWithDefaultValue", TypeShape.of(FuncWithDefaultValueResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("mypkg::funcWithDefaultValue", TypeShape.of(FuncWithDefaultValueResult.class), args, Utilities.withVersion(options)); + return result; } /** * Check codegen of functions with default values. * */ public static Output funcWithDefaultValue(FuncWithDefaultValueArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("mypkg::funcWithDefaultValue", TypeShape.of(FuncWithDefaultValueResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("mypkg::funcWithDefaultValue", TypeShape.of(FuncWithDefaultValueResult.class), args, Utilities.withVersion(options)); + return result; } /** * Check codegen of functions with default values. * */ public static CompletableFuture funcWithDefaultValuePlain(FuncWithDefaultValuePlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("mypkg::funcWithDefaultValue", TypeShape.of(FuncWithDefaultValueResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("mypkg::funcWithDefaultValue", TypeShape.of(FuncWithDefaultValueResult.class), args, Utilities.withVersion(options)); + return result; } /** * Check codegen of functions with a Dict<str,str> parameter. @@ -206,21 +215,24 @@ public static CompletableFuture funcWithDictParamPlain( * */ public static Output funcWithDictParam(FuncWithDictParamArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("mypkg::funcWithDictParam", TypeShape.of(FuncWithDictParamResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("mypkg::funcWithDictParam", TypeShape.of(FuncWithDictParamResult.class), args, Utilities.withVersion(options)); + return result; } /** * Check codegen of functions with a Dict<str,str> parameter. * */ public static Output funcWithDictParam(FuncWithDictParamArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("mypkg::funcWithDictParam", TypeShape.of(FuncWithDictParamResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("mypkg::funcWithDictParam", TypeShape.of(FuncWithDictParamResult.class), args, Utilities.withVersion(options)); + return result; } /** * Check codegen of functions with a Dict<str,str> parameter. * */ public static CompletableFuture funcWithDictParamPlain(FuncWithDictParamPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("mypkg::funcWithDictParam", TypeShape.of(FuncWithDictParamResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("mypkg::funcWithDictParam", TypeShape.of(FuncWithDictParamResult.class), args, Utilities.withVersion(options)); + return result; } /** * n/a @@ -241,21 +253,24 @@ public static CompletableFuture funcWithEmptyOutputsPlain(FuncWithEmptyOut * */ public static Output funcWithEmptyOutputs(FuncWithEmptyOutputsArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("mypkg::funcWithEmptyOutputs", TypeShape.of(Void.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("mypkg::funcWithEmptyOutputs", TypeShape.of(Void.class), args, Utilities.withVersion(options)); + return result; } /** * n/a * */ public static Output funcWithEmptyOutputs(FuncWithEmptyOutputsArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("mypkg::funcWithEmptyOutputs", TypeShape.of(Void.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("mypkg::funcWithEmptyOutputs", TypeShape.of(Void.class), args, Utilities.withVersion(options)); + return result; } /** * n/a * */ public static CompletableFuture funcWithEmptyOutputsPlain(FuncWithEmptyOutputsPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("mypkg::funcWithEmptyOutputs", TypeShape.of(Void.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("mypkg::funcWithEmptyOutputs", TypeShape.of(Void.class), args, Utilities.withVersion(options)); + return result; } /** * Check codegen of functions with a List parameter. @@ -290,21 +305,24 @@ public static CompletableFuture funcWithListParamPlain( * */ public static Output funcWithListParam(FuncWithListParamArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("mypkg::funcWithListParam", TypeShape.of(FuncWithListParamResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("mypkg::funcWithListParam", TypeShape.of(FuncWithListParamResult.class), args, Utilities.withVersion(options)); + return result; } /** * Check codegen of functions with a List parameter. * */ public static Output funcWithListParam(FuncWithListParamArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("mypkg::funcWithListParam", TypeShape.of(FuncWithListParamResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("mypkg::funcWithListParam", TypeShape.of(FuncWithListParamResult.class), args, Utilities.withVersion(options)); + return result; } /** * Check codegen of functions with a List parameter. * */ public static CompletableFuture funcWithListParamPlain(FuncWithListParamPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("mypkg::funcWithListParam", TypeShape.of(FuncWithListParamResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("mypkg::funcWithListParam", TypeShape.of(FuncWithListParamResult.class), args, Utilities.withVersion(options)); + return result; } /** * Response for all the Bastion Shareable Link endpoints. @@ -328,7 +346,8 @@ public static CompletableFuture getBastionShareab * */ public static Output getBastionShareableLink(GetBastionShareableLinkArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("mypkg::getBastionShareableLink", TypeShape.of(GetBastionShareableLinkResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("mypkg::getBastionShareableLink", TypeShape.of(GetBastionShareableLinkResult.class), args, Utilities.withVersion(options)); + return result; } /** * Response for all the Bastion Shareable Link endpoints. @@ -336,7 +355,8 @@ public static Output getBastionShareableLink(GetB * */ public static Output getBastionShareableLink(GetBastionShareableLinkArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("mypkg::getBastionShareableLink", TypeShape.of(GetBastionShareableLinkResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("mypkg::getBastionShareableLink", TypeShape.of(GetBastionShareableLinkResult.class), args, Utilities.withVersion(options)); + return result; } /** * Response for all the Bastion Shareable Link endpoints. @@ -344,7 +364,8 @@ public static Output getBastionShareableLink(GetB * */ public static CompletableFuture getBastionShareableLinkPlain(GetBastionShareableLinkPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("mypkg::getBastionShareableLink", TypeShape.of(GetBastionShareableLinkResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("mypkg::getBastionShareableLink", TypeShape.of(GetBastionShareableLinkResult.class), args, Utilities.withVersion(options)); + return result; } /** * Failing example taken from azure-native. Original doc: Use this function to access the current configuration of the native Azure provider. @@ -379,21 +400,24 @@ public static CompletableFuture getClientConfigPlain(Invo * */ public static Output getClientConfig(InvokeArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("mypkg::getClientConfig", TypeShape.of(GetClientConfigResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("mypkg::getClientConfig", TypeShape.of(GetClientConfigResult.class), args, Utilities.withVersion(options)); + return result; } /** * Failing example taken from azure-native. Original doc: Use this function to access the current configuration of the native Azure provider. * */ public static Output getClientConfig(InvokeArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("mypkg::getClientConfig", TypeShape.of(GetClientConfigResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("mypkg::getClientConfig", TypeShape.of(GetClientConfigResult.class), args, Utilities.withVersion(options)); + return result; } /** * Failing example taken from azure-native. Original doc: Use this function to access the current configuration of the native Azure provider. * */ public static CompletableFuture getClientConfigPlain(InvokeArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("mypkg::getClientConfig", TypeShape.of(GetClientConfigResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("mypkg::getClientConfig", TypeShape.of(GetClientConfigResult.class), args, Utilities.withVersion(options)); + return result; } /** * Another failing example. A list of SSIS object metadata. @@ -417,7 +441,8 @@ public static CompletableFuture getI * */ public static Output getIntegrationRuntimeObjectMetadatum(GetIntegrationRuntimeObjectMetadatumArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("mypkg::getIntegrationRuntimeObjectMetadatum", TypeShape.of(GetIntegrationRuntimeObjectMetadatumResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("mypkg::getIntegrationRuntimeObjectMetadatum", TypeShape.of(GetIntegrationRuntimeObjectMetadatumResult.class), args, Utilities.withVersion(options)); + return result; } /** * Another failing example. A list of SSIS object metadata. @@ -425,7 +450,8 @@ public static Output getIntegrationR * */ public static Output getIntegrationRuntimeObjectMetadatum(GetIntegrationRuntimeObjectMetadatumArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("mypkg::getIntegrationRuntimeObjectMetadatum", TypeShape.of(GetIntegrationRuntimeObjectMetadatumResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("mypkg::getIntegrationRuntimeObjectMetadatum", TypeShape.of(GetIntegrationRuntimeObjectMetadatumResult.class), args, Utilities.withVersion(options)); + return result; } /** * Another failing example. A list of SSIS object metadata. @@ -433,7 +459,8 @@ public static Output getIntegrationR * */ public static CompletableFuture getIntegrationRuntimeObjectMetadatumPlain(GetIntegrationRuntimeObjectMetadatumPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("mypkg::getIntegrationRuntimeObjectMetadatum", TypeShape.of(GetIntegrationRuntimeObjectMetadatumResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("mypkg::getIntegrationRuntimeObjectMetadatum", TypeShape.of(GetIntegrationRuntimeObjectMetadatumResult.class), args, Utilities.withVersion(options)); + return result; } /** * The response from the ListKeys operation. @@ -457,7 +484,8 @@ public static CompletableFuture listStorageAccount * */ public static Output listStorageAccountKeys(ListStorageAccountKeysArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("mypkg::listStorageAccountKeys", TypeShape.of(ListStorageAccountKeysResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("mypkg::listStorageAccountKeys", TypeShape.of(ListStorageAccountKeysResult.class), args, Utilities.withVersion(options)); + return result; } /** * The response from the ListKeys operation. @@ -465,7 +493,8 @@ public static Output listStorageAccountKeys(ListSt * */ public static Output listStorageAccountKeys(ListStorageAccountKeysArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("mypkg::listStorageAccountKeys", TypeShape.of(ListStorageAccountKeysResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("mypkg::listStorageAccountKeys", TypeShape.of(ListStorageAccountKeysResult.class), args, Utilities.withVersion(options)); + return result; } /** * The response from the ListKeys operation. @@ -473,6 +502,7 @@ public static Output listStorageAccountKeys(ListSt * */ public static CompletableFuture listStorageAccountKeysPlain(ListStorageAccountKeysPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("mypkg::listStorageAccountKeys", TypeShape.of(ListStorageAccountKeysResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("mypkg::listStorageAccountKeys", TypeShape.of(ListStorageAccountKeysResult.class), args, Utilities.withVersion(options)); + return result; } } diff --git a/pkg/codegen/testing/test/testdata/parameterized/java/src/main/java/com/pulumi/pkg/PkgFunctions.java b/pkg/codegen/testing/test/testdata/parameterized/java/src/main/java/com/pulumi/pkg/PkgFunctions.java index 94bc6a9ff2f..4c404d0985a 100644 --- a/pkg/codegen/testing/test/testdata/parameterized/java/src/main/java/com/pulumi/pkg/PkgFunctions.java +++ b/pkg/codegen/testing/test/testdata/parameterized/java/src/main/java/com/pulumi/pkg/PkgFunctions.java @@ -48,20 +48,23 @@ public static CompletableFuture doEchoPlain(DoEchoPlainArgs args) * */ public static Output doEcho(DoEchoArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("pkg:index:doEcho", TypeShape.of(DoEchoResult.class), args, Utilities.withVersion(options), Utilities.getPackageRef()); + var result = Deployment.getInstance().invoke("pkg:index:doEcho", TypeShape.of(DoEchoResult.class), args, Utilities.withVersion(options), Utilities.getPackageRef()); + return result; } /** * A test invoke that echoes its input. * */ public static Output doEcho(DoEchoArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("pkg:index:doEcho", TypeShape.of(DoEchoResult.class), args, Utilities.withVersion(options), Utilities.getPackageRef()); + var result = Deployment.getInstance().invoke("pkg:index:doEcho", TypeShape.of(DoEchoResult.class), args, Utilities.withVersion(options), Utilities.getPackageRef()); + return result; } /** * A test invoke that echoes its input. * */ public static CompletableFuture doEchoPlain(DoEchoPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("pkg:index:doEcho", TypeShape.of(DoEchoResult.class), args, Utilities.withVersion(options), Utilities.getPackageRef()); + var result = Deployment.getInstance().invokeAsync("pkg:index:doEcho", TypeShape.of(DoEchoResult.class), args, Utilities.withVersion(options), Utilities.getPackageRef()); + return result; } } diff --git a/pkg/codegen/testing/test/testdata/regress-py-tfbridge-611/java/src/main/java/com/pulumi/aws/x_iam/X_iamFunctions.java b/pkg/codegen/testing/test/testdata/regress-py-tfbridge-611/java/src/main/java/com/pulumi/aws/x_iam/X_iamFunctions.java index 344373b0f56..2b3882eb2bd 100644 --- a/pkg/codegen/testing/test/testdata/regress-py-tfbridge-611/java/src/main/java/com/pulumi/aws/x_iam/X_iamFunctions.java +++ b/pkg/codegen/testing/test/testdata/regress-py-tfbridge-611/java/src/main/java/com/pulumi/aws/x_iam/X_iamFunctions.java @@ -28,12 +28,15 @@ public static CompletableFuture getPolicyDocumentPlain( return getPolicyDocumentPlain(args, InvokeOptions.Empty); } public static Output getPolicyDocument(GetPolicyDocumentArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("aws:x/iam/getPolicyDocument:getPolicyDocument", TypeShape.of(GetPolicyDocumentResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("aws:x/iam/getPolicyDocument:getPolicyDocument", TypeShape.of(GetPolicyDocumentResult.class), args, Utilities.withVersion(options)); + return result; } public static Output getPolicyDocument(GetPolicyDocumentArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("aws:x/iam/getPolicyDocument:getPolicyDocument", TypeShape.of(GetPolicyDocumentResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("aws:x/iam/getPolicyDocument:getPolicyDocument", TypeShape.of(GetPolicyDocumentResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture getPolicyDocumentPlain(GetPolicyDocumentPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("aws:x/iam/getPolicyDocument:getPolicyDocument", TypeShape.of(GetPolicyDocumentResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("aws:x/iam/getPolicyDocument:getPolicyDocument", TypeShape.of(GetPolicyDocumentResult.class), args, Utilities.withVersion(options)); + return result; } } diff --git a/pkg/codegen/testing/test/testdata/simple-plain-schema/java/src/main/java/com/pulumi/example/ExampleFunctions.java b/pkg/codegen/testing/test/testdata/simple-plain-schema/java/src/main/java/com/pulumi/example/ExampleFunctions.java index 49f9f2e76fe..e63c1824eb1 100644 --- a/pkg/codegen/testing/test/testdata/simple-plain-schema/java/src/main/java/com/pulumi/example/ExampleFunctions.java +++ b/pkg/codegen/testing/test/testdata/simple-plain-schema/java/src/main/java/com/pulumi/example/ExampleFunctions.java @@ -22,12 +22,15 @@ public static CompletableFuture doFooPlain(DoFooPlainArgs args) { return doFooPlain(args, InvokeOptions.Empty); } public static Output doFoo(DoFooArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("example::doFoo", TypeShape.of(Void.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("example::doFoo", TypeShape.of(Void.class), args, Utilities.withVersion(options)); + return result; } public static Output doFoo(DoFooArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("example::doFoo", TypeShape.of(Void.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("example::doFoo", TypeShape.of(Void.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture doFooPlain(DoFooPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("example::doFoo", TypeShape.of(Void.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("example::doFoo", TypeShape.of(Void.class), args, Utilities.withVersion(options)); + return result; } } diff --git a/pkg/codegen/testing/test/testdata/simple-resource-schema-custom-pypackage-name/java/src/main/java/com/pulumi/example/ExampleFunctions.java b/pkg/codegen/testing/test/testdata/simple-resource-schema-custom-pypackage-name/java/src/main/java/com/pulumi/example/ExampleFunctions.java index 8b6c16774c8..1b6daff808b 100644 --- a/pkg/codegen/testing/test/testdata/simple-resource-schema-custom-pypackage-name/java/src/main/java/com/pulumi/example/ExampleFunctions.java +++ b/pkg/codegen/testing/test/testdata/simple-resource-schema-custom-pypackage-name/java/src/main/java/com/pulumi/example/ExampleFunctions.java @@ -28,12 +28,15 @@ public static CompletableFuture argFunctionPlain(ArgFunctionP return argFunctionPlain(args, InvokeOptions.Empty); } public static Output argFunction(ArgFunctionArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("example::argFunction", TypeShape.of(ArgFunctionResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("example::argFunction", TypeShape.of(ArgFunctionResult.class), args, Utilities.withVersion(options)); + return result; } public static Output argFunction(ArgFunctionArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("example::argFunction", TypeShape.of(ArgFunctionResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("example::argFunction", TypeShape.of(ArgFunctionResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture argFunctionPlain(ArgFunctionPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("example::argFunction", TypeShape.of(ArgFunctionResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("example::argFunction", TypeShape.of(ArgFunctionResult.class), args, Utilities.withVersion(options)); + return result; } } diff --git a/pkg/codegen/testing/test/testdata/simple-resource-schema/java/src/main/java/com/pulumi/example/ExampleFunctions.java b/pkg/codegen/testing/test/testdata/simple-resource-schema/java/src/main/java/com/pulumi/example/ExampleFunctions.java index 8b6c16774c8..1b6daff808b 100644 --- a/pkg/codegen/testing/test/testdata/simple-resource-schema/java/src/main/java/com/pulumi/example/ExampleFunctions.java +++ b/pkg/codegen/testing/test/testdata/simple-resource-schema/java/src/main/java/com/pulumi/example/ExampleFunctions.java @@ -28,12 +28,15 @@ public static CompletableFuture argFunctionPlain(ArgFunctionP return argFunctionPlain(args, InvokeOptions.Empty); } public static Output argFunction(ArgFunctionArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("example::argFunction", TypeShape.of(ArgFunctionResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("example::argFunction", TypeShape.of(ArgFunctionResult.class), args, Utilities.withVersion(options)); + return result; } public static Output argFunction(ArgFunctionArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("example::argFunction", TypeShape.of(ArgFunctionResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("example::argFunction", TypeShape.of(ArgFunctionResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture argFunctionPlain(ArgFunctionPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("example::argFunction", TypeShape.of(ArgFunctionResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("example::argFunction", TypeShape.of(ArgFunctionResult.class), args, Utilities.withVersion(options)); + return result; } } diff --git a/pkg/codegen/testing/test/testdata/simple-yaml-schema/java/src/main/java/com/pulumi/example/ExampleFunctions.java b/pkg/codegen/testing/test/testdata/simple-yaml-schema/java/src/main/java/com/pulumi/example/ExampleFunctions.java index 8b6c16774c8..1b6daff808b 100644 --- a/pkg/codegen/testing/test/testdata/simple-yaml-schema/java/src/main/java/com/pulumi/example/ExampleFunctions.java +++ b/pkg/codegen/testing/test/testdata/simple-yaml-schema/java/src/main/java/com/pulumi/example/ExampleFunctions.java @@ -28,12 +28,15 @@ public static CompletableFuture argFunctionPlain(ArgFunctionP return argFunctionPlain(args, InvokeOptions.Empty); } public static Output argFunction(ArgFunctionArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("example::argFunction", TypeShape.of(ArgFunctionResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("example::argFunction", TypeShape.of(ArgFunctionResult.class), args, Utilities.withVersion(options)); + return result; } public static Output argFunction(ArgFunctionArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("example::argFunction", TypeShape.of(ArgFunctionResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("example::argFunction", TypeShape.of(ArgFunctionResult.class), args, Utilities.withVersion(options)); + return result; } public static CompletableFuture argFunctionPlain(ArgFunctionPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("example::argFunction", TypeShape.of(ArgFunctionResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("example::argFunction", TypeShape.of(ArgFunctionResult.class), args, Utilities.withVersion(options)); + return result; } } diff --git a/pkg/codegen/testing/test/testdata/urn-id-properties/java/src/main/java/com/pulumi/urnid/UrnidFunctions.java b/pkg/codegen/testing/test/testdata/urn-id-properties/java/src/main/java/com/pulumi/urnid/UrnidFunctions.java index 3803df1df2a..0066a739da0 100644 --- a/pkg/codegen/testing/test/testdata/urn-id-properties/java/src/main/java/com/pulumi/urnid/UrnidFunctions.java +++ b/pkg/codegen/testing/test/testdata/urn-id-properties/java/src/main/java/com/pulumi/urnid/UrnidFunctions.java @@ -34,20 +34,23 @@ public static CompletableFuture testPlain(TestPlainArgs args) { * */ public static Output test(TestArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("urnid:index:Test", TypeShape.of(TestResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("urnid:index:Test", TypeShape.of(TestResult.class), args, Utilities.withVersion(options)); + return result; } /** * It's fine for invokes to use urn and id * */ public static Output test(TestArgs args, InvokeOutputOptions options) { - return Deployment.getInstance().invoke("urnid:index:Test", TypeShape.of(TestResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invoke("urnid:index:Test", TypeShape.of(TestResult.class), args, Utilities.withVersion(options)); + return result; } /** * It's fine for invokes to use urn and id * */ public static CompletableFuture testPlain(TestPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("urnid:index:Test", TypeShape.of(TestResult.class), args, Utilities.withVersion(options)); + var result = Deployment.getInstance().invokeAsync("urnid:index:Test", TypeShape.of(TestResult.class), args, Utilities.withVersion(options)); + return result; } }