From f35353d3c10cf9838932c9810a3ece09fc3a767d Mon Sep 17 00:00:00 2001 From: Julien Poissonnier Date: Fri, 22 Nov 2024 17:20:40 +0100 Subject: [PATCH 01/12] Allow specifiying dependencies for output invokes --- .../com/pulumi/core/internal/Internal.java | 6 + .../com/pulumi/deployment/Deployment.java | 3 + .../deployment/InvokeOutputOptions.java | 99 ++++++++++ .../deployment/internal/DeploymentImpl.java | 103 +++++++++- .../internal/DeploymentInstanceInternal.java | 12 ++ .../pulumi/test/internal/MockDeployment.java | 12 ++ .../DeploymentInvokeDependsOnTest.java | 177 ++++++++++++++++++ 7 files changed, 409 insertions(+), 3 deletions(-) create mode 100644 sdk/java/pulumi/src/main/java/com/pulumi/deployment/InvokeOutputOptions.java create mode 100644 sdk/java/pulumi/src/test/java/com/pulumi/deployment/DeploymentInvokeDependsOnTest.java diff --git a/sdk/java/pulumi/src/main/java/com/pulumi/core/internal/Internal.java b/sdk/java/pulumi/src/main/java/com/pulumi/core/internal/Internal.java index 4da729d1202..2b7cc029e39 100644 --- a/sdk/java/pulumi/src/main/java/com/pulumi/core/internal/Internal.java +++ b/sdk/java/pulumi/src/main/java/com/pulumi/core/internal/Internal.java @@ -8,6 +8,8 @@ import com.pulumi.deployment.DeploymentInstance; import com.pulumi.deployment.InvokeOptions; import com.pulumi.deployment.InvokeOptions.InvokeOptionsInternal; +import com.pulumi.deployment.InvokeOutputOptions; +import com.pulumi.deployment.InvokeOutputOptions.InvokeOutputOptionsInternal; import com.pulumi.deployment.internal.DeploymentInstanceInternal; import com.pulumi.resources.ComponentResource; import com.pulumi.resources.ComponentResource.ComponentResourceInternal; @@ -41,6 +43,10 @@ public static CallOptionsInternal from(CallOptions o) { public static InvokeOptionsInternal from(InvokeOptions o) { return InvokeOptionsInternal.from(o); } + + public static InvokeOutputOptionsInternal from(InvokeOutputOptions o) { + return InvokeOutputOptionsInternal.from(o); + } public static InputArgsInternal from(InputArgs a) { return InputArgsInternal.from(a); diff --git a/sdk/java/pulumi/src/main/java/com/pulumi/deployment/Deployment.java b/sdk/java/pulumi/src/main/java/com/pulumi/deployment/Deployment.java index 60cfb21cebc..75020bd1e69 100644 --- a/sdk/java/pulumi/src/main/java/com/pulumi/deployment/Deployment.java +++ b/sdk/java/pulumi/src/main/java/com/pulumi/deployment/Deployment.java @@ -69,6 +69,9 @@ static DeploymentInstance getInstance() { */ Output invoke(String token, TypeShape targetType, InvokeArgs args, @Nullable InvokeOptions options, CompletableFuture packageRef); + Output invoke(String token, TypeShape targetType, InvokeArgs args, @Nullable InvokeOutputOptions options); + Output invoke(String token, TypeShape targetType, InvokeArgs args, @Nullable InvokeOutputOptions options, CompletableFuture packageRef); + /** * Same as @see {@link #invokeAsync(String, TypeShape, InvokeArgs, InvokeOptions, CompletableFuture)}, however the return value is ignored. */ diff --git a/sdk/java/pulumi/src/main/java/com/pulumi/deployment/InvokeOutputOptions.java b/sdk/java/pulumi/src/main/java/com/pulumi/deployment/InvokeOutputOptions.java new file mode 100644 index 00000000000..68fc125197a --- /dev/null +++ b/sdk/java/pulumi/src/main/java/com/pulumi/deployment/InvokeOutputOptions.java @@ -0,0 +1,99 @@ +package com.pulumi.deployment; + +import com.pulumi.core.TypeShape; +import com.pulumi.core.internal.Internal; +import com.pulumi.core.internal.annotations.InternalUse; +import com.pulumi.resources.InvokeArgs; +import com.pulumi.resources.ProviderResource; +import com.pulumi.resources.Resource; + +import javax.annotation.Nullable; +import javax.annotation.ParametersAreNonnullByDefault; +import java.util.Optional; +import java.util.List; + +import static java.util.Objects.requireNonNull; + +/** + * Options to help control the behavior of @see + * {@link Deployment#invoke(String, TypeShape, InvokeArgs, InvokeOutputOptions)}. + */ +@ParametersAreNonnullByDefault +public final class InvokeOutputOptions { + + public static InvokeOptions Empty = new InvokeOptions(); + + @Nullable + private final Resource parent; + @Nullable + private final ProviderResource provider; + @Nullable + private final String version; + @Nullable + private final List dependsOn; + + public InvokeOutputOptions() { + this(null, null, null, null); + } + + public InvokeOutputOptions(@Nullable Resource parent, @Nullable ProviderResource provider, @Nullable String version, + @Nullable List dependsOn) { + this.parent = parent; + this.provider = provider; + this.version = version; + this.dependsOn = dependsOn; + } + + /** + * An optional parent to use for default options for this invoke (e.g. the + * default provider to use). + */ + public Optional getParent() { + return Optional.ofNullable(parent); + } + + /* + * An optional provider to use for this invocation. If no provider is supplied, + * the default provider for the invoked function's package will be used. + */ + public Optional getProvider() { + return Optional.ofNullable(this.provider); + } + + /** + * An optional version, corresponding to the version of the provider plugin that + * should be used when performing this invoke. + */ + public Optional getVersion() { + return Optional.ofNullable(version); + } + + /** + * Optional resources that this invoke depends on. The invoke will wait for these + * resources to be resolved before executing. + */ + public List getDependsOn() { + return this.dependsOn == null ? List.of() : this.dependsOn; + } + + @InternalUse + @ParametersAreNonnullByDefault + public static final class InvokeOutputOptionsInternal { + + private final InvokeOutputOptions options; + + private InvokeOutputOptionsInternal(InvokeOutputOptions options) { + this.options = requireNonNull(options); + } + + public static InvokeOutputOptionsInternal from(InvokeOutputOptions options) { + return new InvokeOutputOptionsInternal(options); + } + + public Optional getNestedProvider(String token) { + return this.options.getProvider().or( + () -> this.options.getParent() + .flatMap(p -> Internal.from(p).getProvider(token))); + } + } +} diff --git a/sdk/java/pulumi/src/main/java/com/pulumi/deployment/internal/DeploymentImpl.java b/sdk/java/pulumi/src/main/java/com/pulumi/deployment/internal/DeploymentImpl.java index 5addd1aed3c..04641764902 100644 --- a/sdk/java/pulumi/src/main/java/com/pulumi/deployment/internal/DeploymentImpl.java +++ b/sdk/java/pulumi/src/main/java/com/pulumi/deployment/internal/DeploymentImpl.java @@ -29,6 +29,7 @@ import com.pulumi.deployment.CallOptions; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import com.pulumi.exceptions.LogException; import com.pulumi.exceptions.ResourceException; import com.pulumi.exceptions.RunException; @@ -129,12 +130,12 @@ public DeploymentImpl( this.serialization = new PropertiesSerializer(this.log); this.deserializer = new Deserializer(this.log); this.converter = new Converter(this.log, this.deserializer); + this.rootResource = new RootResource(state.engine); + this.prepare = new Prepare(this.log, this.featureSupport, this.rootResource, this.serialization); this.invoke = new Invoke( - this.log, state.monitor, this.featureSupport, this.serialization, this.converter, + this.log, state.monitor, this.featureSupport, this.serialization, this.converter, this.prepare, DeploymentState.DisableResourceReferences ); - this.rootResource = new RootResource(state.engine); - this.prepare = new Prepare(this.log, this.featureSupport, this.rootResource, this.serialization); this.call = new Call(this.log, state.monitor, this.prepare, this.serialization, this.converter); this.readResource = new ReadResource( this.log, this.prepare, state.monitor, @@ -419,6 +420,16 @@ public Output invoke(String token, TypeShape targetType, InvokeArgs ar public Output invoke(String token, TypeShape targetType, InvokeArgs args, InvokeOptions options, CompletableFuture packageRef) { return this.invoke.invoke(token, targetType, args, options, packageRef); } + + @Override + public Output invoke(String token, TypeShape targetType, InvokeArgs args, InvokeOutputOptions options) { + return this.invoke.invoke(token, targetType, args, options); + } + + @Override + public Output invoke(String token, TypeShape targetType, InvokeArgs args, InvokeOutputOptions options, CompletableFuture packageRef) { + return this.invoke.invoke(token, targetType, args, options, packageRef); + } @Override public CompletableFuture invokeAsync(String token, InvokeArgs args, InvokeOptions options) { @@ -454,6 +465,7 @@ private final static class Invoke { private final PropertiesSerializer serialization; private final Converter converter; private final boolean disableResourceReferences; + private final Prepare prepare; private Invoke( Log log, @@ -461,6 +473,7 @@ private Invoke( FeatureSupport featureSupport, PropertiesSerializer serialization, Converter converter, + Prepare prepare, boolean disableResourceReferences ) { this.log = Objects.requireNonNull(log); @@ -468,6 +481,7 @@ private Invoke( this.featureSupport = Objects.requireNonNull(featureSupport); this.serialization = Objects.requireNonNull(serialization); this.converter = Objects.requireNonNull(converter); + this.prepare = Objects.requireNonNull(prepare); this.disableResourceReferences = disableResourceReferences; } @@ -479,6 +493,10 @@ public Output invoke(String token, TypeShape targetType, InvokeArgs ar return invoke(token, targetType, args, options, null); } + public Output invoke(String token, TypeShape targetType, InvokeArgs args, InvokeOutputOptions options) { + return invoke(token, targetType, args, options, null); + } + public Output invoke(String token, TypeShape targetType, InvokeArgs args, InvokeOptions options, CompletableFuture packageRef) { Objects.requireNonNull(token); Objects.requireNonNull(targetType); @@ -505,6 +523,32 @@ public Output invoke(String token, TypeShape targetType, InvokeArgs ar })); } + public Output invoke(String token, TypeShape targetType, InvokeArgs args, InvokeOutputOptions options, CompletableFuture packageRef) { + Objects.requireNonNull(token); + Objects.requireNonNull(targetType); + Objects.requireNonNull(args); + Objects.requireNonNull(options); + + log.debug(String.format("Invoking function: token='%s' asynchronously", token)); + + final CompletableFuture packageRefFuture = packageRef == null + ? CompletableFuture.completedFuture(null) + : packageRef; + + // Wait for all values to be available, and then perform the RPC. + return new OutputInternal<>(this.featureSupport.monitorSupportsResourceReferences() + .thenCompose(keepResources -> this.serializeInvokeArgs(token, args, keepResources)) + .thenCompose(serializedArgs -> { + if (!serializedArgs.containsUnknowns) { + return packageRefFuture + .thenCompose(packageRefString -> this.invokeRawAsync(token, serializedArgs, options, packageRefString)) + .thenApply(result -> parseInvokeResponse(token, targetType, result)); + } else { + return CompletableFuture.completedFuture(OutputData.unknown()); + } + })); + } + private OutputData parseInvokeResponse( String token, TypeShape targetType, SerializationResult result) { return this.converter.convertValue( @@ -635,6 +679,59 @@ private CompletableFuture invokeRawAsync( }); } + + private CompletableFuture invokeRawAsync( + String token, InvokeArgs args, InvokeOutputOptions options, String packageRef) { + Objects.requireNonNull(token); + Objects.requireNonNull(args); + Objects.requireNonNull(options); + log.debug(String.format("Invoking function: token='%s' asynchronously", token)); + // Wait for all values to be available, and then perform the RPC. + return this.featureSupport.monitorSupportsResourceReferences() + .thenCompose(keepResources -> this.serializeInvokeArgs(token, args, keepResources)) + .thenCompose(serializedArgs -> this.invokeRawAsync(token, serializedArgs, options, packageRef)); + } + + private CompletableFuture invokeRawAsync( + String token, SerializationResult invokeArgs, InvokeOutputOptions options, String packageRef) { + CompletableFuture> providerFuture = CompletableFutures.flipOptional( + () -> { + var provider = Internal.from(options).getNestedProvider(token); + return provider.map(p -> Internal.from(p).getRegistrationId()); + } + ); + + // Wait for all the resource dependencies to be available before we call the invoke + this.prepare.getAllTransitivelyReferencedResourceUrnsAsync(ImmutableSet.copyOf(options.getDependsOn())).join(); + + return providerFuture.thenCompose(provider -> { + var version = options.getVersion(); + log.debugOrExcessive( + String.format("Invoke RPC prepared: token='%s'", token), + String.format(", obj='%s'", invokeArgs) + ); + return this.monitor.invokeAsync(pulumirpc.Resource.ResourceInvokeRequest.newBuilder() + .setTok(token) + .setProvider(provider.orElse("")) + .setVersion(version.orElse("")) + .setArgs(invokeArgs.serialized) + .setAcceptResources(!this.disableResourceReferences) + .setPackageRef(packageRef == null ? "" : packageRef) + .build() + ).thenApply(response -> { + // Handle failures. + if (response.getFailuresCount() > 0) { + var reasons = response.getFailuresList().stream() + .map(reason -> String.format("%s (%s)", reason.getReason(), reason.getProperty())) + .collect(Collectors.joining("; ")); + throw new InvokeException(String.format("Invoke of '%s' failed: %s", token, reasons)); + } + return new SerializationResult(response.getReturn(), + invokeArgs.propertyToDependentResources); + }); + }); + } + private CompletableFuture serializeInvokeArgs( String token, InvokeArgs args, boolean keepResources) { return Internal.from(args).toMapAsync(this.log).thenCompose(argsDict -> diff --git a/sdk/java/pulumi/src/main/java/com/pulumi/deployment/internal/DeploymentInstanceInternal.java b/sdk/java/pulumi/src/main/java/com/pulumi/deployment/internal/DeploymentInstanceInternal.java index 9d683dcdee6..ac1c168ba06 100644 --- a/sdk/java/pulumi/src/main/java/com/pulumi/deployment/internal/DeploymentInstanceInternal.java +++ b/sdk/java/pulumi/src/main/java/com/pulumi/deployment/internal/DeploymentInstanceInternal.java @@ -6,6 +6,7 @@ import com.pulumi.deployment.CallOptions; import com.pulumi.deployment.DeploymentInstance; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import com.pulumi.resources.CallArgs; import com.pulumi.resources.InvokeArgs; import com.pulumi.resources.Resource; @@ -64,11 +65,22 @@ public Output invoke(String token, TypeShape targetType, InvokeArgs ar return deployment.invoke(token, targetType, args, options, packageRef); } + @Override + public Output invoke(String token, TypeShape targetType, InvokeArgs args, @Nullable InvokeOutputOptions options, CompletableFuture packageRef) { + return deployment.invoke(token, targetType, args, options, packageRef); + } + @Override public Output invoke(String token, TypeShape targetType, InvokeArgs args, @Nullable InvokeOptions options) { return deployment.invoke(token, targetType, args, options); } + + @Override + public Output invoke(String token, TypeShape targetType, InvokeArgs args, @Nullable InvokeOutputOptions options) { + return deployment.invoke(token, targetType, args, options); + } + @Override public Output invoke(String token, TypeShape targetType, InvokeArgs args) { return deployment.invoke(token, targetType, args); diff --git a/sdk/java/pulumi/src/main/java/com/pulumi/test/internal/MockDeployment.java b/sdk/java/pulumi/src/main/java/com/pulumi/test/internal/MockDeployment.java index e063f769317..b16c9d93cf1 100644 --- a/sdk/java/pulumi/src/main/java/com/pulumi/test/internal/MockDeployment.java +++ b/sdk/java/pulumi/src/main/java/com/pulumi/test/internal/MockDeployment.java @@ -6,6 +6,7 @@ import com.pulumi.deployment.CallOptions; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import com.pulumi.deployment.internal.DeploymentImpl; import com.pulumi.deployment.internal.DeploymentInstanceHolder; import com.pulumi.deployment.internal.DeploymentInternal; @@ -59,11 +60,22 @@ public Output invoke(String token, TypeShape targetType, InvokeArgs ar return null; } + + @Override + public Output invoke(String token, TypeShape targetType, InvokeArgs args, @Nullable InvokeOutputOptions options, CompletableFuture packageRef) { + return null; + } + @Override public Output invoke(String token, TypeShape targetType, InvokeArgs args, @Nullable InvokeOptions options) { return null; } + @Override + public Output invoke(String token, TypeShape targetType, InvokeArgs args, @Nullable InvokeOutputOptions options) { + return null; + } + @Override public Output invoke(String token, TypeShape targetType, InvokeArgs args) { return null; diff --git a/sdk/java/pulumi/src/test/java/com/pulumi/deployment/DeploymentInvokeDependsOnTest.java b/sdk/java/pulumi/src/test/java/com/pulumi/deployment/DeploymentInvokeDependsOnTest.java new file mode 100644 index 00000000000..92aa5a854ac --- /dev/null +++ b/sdk/java/pulumi/src/test/java/com/pulumi/deployment/DeploymentInvokeDependsOnTest.java @@ -0,0 +1,177 @@ +package com.pulumi.deployment; + +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.pulumi.core.Output; +import com.pulumi.core.TypeShape; +import com.pulumi.core.annotations.CustomType; +import com.pulumi.core.annotations.CustomType.Setter; +import com.pulumi.core.annotations.Import; +import com.pulumi.core.annotations.ResourceType; +import com.pulumi.core.internal.Internal; +import com.pulumi.deployment.internal.Runner; +import com.pulumi.resources.Resource; +import com.pulumi.resources.InvokeArgs; +import com.pulumi.resources.CustomResource; +import com.pulumi.resources.CustomResourceOptions; +import com.pulumi.resources.ResourceArgs; +import com.pulumi.test.Mocks; +import com.pulumi.test.TestOptions; +import com.pulumi.test.internal.PulumiTestInternal; +import org.junit.jupiter.api.AfterEach; +import org.junit.jupiter.api.Test; + +import javax.annotation.Nullable; +import java.util.Map; +import java.util.Objects; +import java.util.ArrayList; +import java.util.concurrent.CompletableFuture; +import java.util.Optional; +import java.lang.Thread; + +import static org.assertj.core.api.Assertions.assertThat; + +public class DeploymentInvokeDependsOnTest { + + @AfterEach + void cleanup() { + PulumiTestInternal.cleanup(); + } + + @Test + void testCustomInvokesDependsOntestCustomInvokesDependsOn() { + var marker = new ResolveMarker(); + + var test = PulumiTestInternal.builder() + .options(TestOptions.builder().preview(true).build()) + .mocks(new Mocks() { + @Override + public CompletableFuture newResourceAsync(ResourceArgs args) { + Objects.requireNonNull(args.type); + CompletableFuture result = CompletableFuture.supplyAsync(() -> { + try { + // Delay the resource creation to ensure we await it in the invoke + Thread.sleep(3000); + marker.resolved = true; + } catch (InterruptedException e) { + Thread.currentThread().interrupt(); + throw new RuntimeException(e); + } + return ResourceResult.of(Optional.of(args.id + "_id"), ImmutableMap.of("prop", "some value")); + }); + return result; + } + + @Override + public CompletableFuture> callAsync(CallArgs args) { + return CompletableFuture.completedFuture( + ImmutableMap.of( + "result", + ImmutableList.of(ImmutableMap.of("root", + ImmutableMap.of("test1", ImmutableList.of("1", "2", "3")))))); + } + }) + .build(); + + var result = test.runTest(ctx -> { + var res = new MyCustomResource("r1", null, CustomResourceOptions.builder().build()); + assertThat(marker.resolved).isFalse(); + var deps = new ArrayList(); + deps.add(res); + + var opts = new InvokeOutputOptions(null, null, null, deps); + var out = CustomInvokes.doStuff(CustomArgs.Empty, opts).applyValue(r -> { + assertThat(r).hasSize(1); + assertThat(r).contains(ImmutableMap.of("root", ImmutableMap.of("test1", ImmutableList.of("1", "2", "3")))); + return (Void) null; + }); + + // Check that the resource was resolved when we called the invoke + assertThat(marker.resolved).isTrue(); + + Internal.of(out).getDataAsync().join(); + }); + + assertThat(result.exceptions()).hasSize(0); + assertThat(result.exitCode()).isEqualTo(Runner.ProcessExitedSuccessfully); + } + + public static final class MyArgs extends ResourceArgs { + // Empty + } + + public static final class ResolveMarker { + public boolean resolved; + + public ResolveMarker() { + this.resolved = false; + } + } + + @ResourceType(type = "test:DeploymentResourceDependencyGatheringTests:resource") + private static class MyCustomResource extends CustomResource { + public MyCustomResource(String name, @Nullable MyArgs args, @Nullable CustomResourceOptions options) { + super("test:DeploymentResourceDependencyGatheringTests:resource", name, args == null ? new MyArgs() : args, + options); + } + } + + static class CustomInvokes { + static Output>> doStuff( + @SuppressWarnings("SameParameterValue") CustomArgs args, + @Nullable InvokeOutputOptions options) { + return Deployment.getInstance().invoke( + "tests:custom:stuff", + TypeShape.of(CustomResult.class), + args, + options).applyValue(r -> { + return r.result; + }); + } + } + + static class CustomArgs extends InvokeArgs { + public static final CustomArgs Empty = new CustomArgs(null, null); + + @Import(name = "text") + @Nullable + public final String text; + + @Import(name = "defaultNamespace") + @Nullable + public final String defaultNamespace; + + CustomArgs(@Nullable String text, @Nullable String defaultNamespace) { + this.text = text; + this.defaultNamespace = defaultNamespace; + } + } + + @CustomType + static class CustomResult { + private @Nullable ImmutableList> result; + + @CustomType.Builder + static final class Builder { + private final CustomResult $; + + Builder() { + this.$ = new CustomResult(); + } + + Builder(CustomResult defaults) { + this.$ = defaults; + } + + @Setter("result") + Builder result(@Nullable ImmutableList> result) { + this.$.result = result; + return this; + } + + CustomResult build() { + return this.$; + } + } + } +} From 26319624ee1b6d66f7aa73544a99da0ea23ffe5c Mon Sep 17 00:00:00 2001 From: Julien Poissonnier Date: Fri, 22 Nov 2024 17:24:38 +0100 Subject: [PATCH 02/12] changelog --- CHANGELOG_PENDING.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG_PENDING.md b/CHANGELOG_PENDING.md index 61c5caa8cd4..9610d16d6ab 100644 --- a/CHANGELOG_PENDING.md +++ b/CHANGELOG_PENDING.md @@ -1,5 +1,7 @@ ### Improvements +- Allow specifiying dependencies for output invokes + - Update to Pulumi 3.139.0 - Implement `GenerateProgram` and `GenerateProject` RPC endpoints for Java From 73077824124b607b3f92acd2f27c7a0035e76881 Mon Sep 17 00:00:00 2001 From: Julien Poissonnier Date: Fri, 22 Nov 2024 17:24:56 +0100 Subject: [PATCH 03/12] gitignore --- .gitignore | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.gitignore b/.gitignore index 6f7176ac882..9482e82c15a 100644 --- a/.gitignore +++ b/.gitignore @@ -21,6 +21,11 @@ Pulumi.*.yaml # VSCode creates this binary when running tests in the debugger **/debug.test +# LSP +**/.classpath +**/.project +**/.settings + # Go tests run "in tree" and this folder will linger if they fail (the integration test framework cleans # it up when they pass.) **/command-output/ From 5b255af81088537dd8d27f7b47fb4ef17e0a6309 Mon Sep 17 00:00:00 2001 From: Julien Poissonnier Date: Mon, 25 Nov 2024 11:47:24 +0100 Subject: [PATCH 04/12] Codegen overrides for InvokeOutputOptions --- pkg/codegen/java/gen.go | 18 +++++++++++++++++- pkg/codegen/java/names/known.go | 2 ++ pkg/codegen/java/templates.go | 31 ++++++++++++++++++++++--------- 3 files changed, 41 insertions(+), 10 deletions(-) diff --git a/pkg/codegen/java/gen.go b/pkg/codegen/java/gen.go index a3a81555a8f..0ae39208869 100644 --- a/pkg/codegen/java/gen.go +++ b/pkg/codegen/java/gen.go @@ -1392,7 +1392,7 @@ func (mod *modContext) genFunctions(ctx *classFileContext, addClass addClassMeth plainMethodName, invokeOptions) fprintf(w, " }\n") - // Output version: add full invoke + // 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) @@ -1412,6 +1412,22 @@ func (mod *modContext) genFunctions(ctx *classFileContext, addClass addClassMeth fprintf(w, ");\n") fprintf(w, " }\n") + // Output version: add full invoke with InvokeOutputOptions + invokeOutputOptions := ctx.ref(names.InvokeOutputOptions) + printCommentFunction(ctx, fun, indent) + 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.invokeOutputOptionsWithVersion(options)", + ctx.ref(names.Deployment), fun.Token, ctx.ref(names.TypeShape), returnType, mod.utilitiesRef(ctx)) + + if pkg.Parameterization != nil { + fprintf(w, ", %s.getPackageRef()", mod.utilitiesRef(ctx)) + } + + fprintf(w, ");\n") + fprintf(w, " }\n") + // CompletableFuture version: add full invoke // notice how the implementation now uses `invokeAsync` instead of `invoke` printCommentFunction(ctx, fun, indent) diff --git a/pkg/codegen/java/names/known.go b/pkg/codegen/java/names/known.go index f69f8eb2f05..3d3c4b5de9f 100644 --- a/pkg/codegen/java/names/known.go +++ b/pkg/codegen/java/names/known.go @@ -72,6 +72,8 @@ var Deployment = PulumiDeployment.Dot("Deployment") var InvokeOptions = PulumiDeployment.Dot("InvokeOptions") +var InvokeOutputOptions = PulumiDeployment.Dot("InvokeOutputOptions") + var CompletableFuture = JavaUtil.Dot("concurrent").Dot("CompletableFuture") var TypeShape = PulumiCore.Dot("TypeShape") diff --git a/pkg/codegen/java/templates.go b/pkg/codegen/java/templates.go index 243a020966e..22afd4fcf6f 100644 --- a/pkg/codegen/java/templates.go +++ b/pkg/codegen/java/templates.go @@ -34,6 +34,7 @@ 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; {{ .AdditionalImports }} public class {{ .ClassName }} { @@ -77,16 +78,28 @@ public class {{ .ClassName }} { return Optional.empty(); } ` + /* TODO: InvokeOptions probably should be done via a mutator on the InvokeOptions */ ` - 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 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 invokeOutputOptionsWithVersion(@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() { From e9732218aee7447cab65715679a83e51e09d0d28 Mon Sep 17 00:00:00 2001 From: Julien Poissonnier Date: Mon, 25 Nov 2024 11:48:44 +0100 Subject: [PATCH 05/12] update codegen tests --- .../com/pulumi/akamai/AkamaiFunctions.java | 439 ++++++++++++++++++ .../java/com/pulumi/akamai/Utilities.java | 31 +- .../akamai/edgedns/EdgednsFunctions.java | 21 + .../properties/PropertiesFunctions.java | 41 ++ .../TrafficmanagementFunctions.java | 11 + .../com/pulumi/example/ExampleFunctions.java | 4 + .../java/com/pulumi/example/Utilities.java | 31 +- .../com/pulumi/azurenative/Utilities.java | 31 +- .../java/com/pulumi/example/Utilities.java | 31 +- .../java/com/pulumi/example/Utilities.java | 31 +- .../java/com/pulumi/foobar/Utilities.java | 31 +- .../main/java/com/pulumi/plant/Utilities.java | 31 +- .../java/com/pulumi/mypkg/MypkgFunctions.java | 4 + .../main/java/com/pulumi/mypkg/Utilities.java | 31 +- .../main/java/com/pulumi/repro/Utilities.java | 31 +- .../main/java/com/pulumi/jumbo/Utilities.java | 31 +- .../java/com/pulumi/kubernetes/Utilities.java | 31 +- .../com/pulumi/legacy_names/Utilities.java | 31 +- .../main/java/com/pulumi/aws/Utilities.java | 31 +- .../aws/ec2_getAmi/Ec2_getAmiFunctions.java | 4 + .../java/com/pulumi/awsnative/Utilities.java | 31 +- .../main/java/com/pulumi/awsx/Utilities.java | 31 +- .../java/com/pulumi/azuread/Utilities.java | 31 +- .../com/pulumi/azurenative/Utilities.java | 31 +- .../AlertsmanagementFunctions.java | 9 + .../azurenative/logic/LogicFunctions.java | 9 + .../pulumi/azurenative/web/WebFunctions.java | 9 + .../java/com/pulumi/kubernetes/Utilities.java | 31 +- .../java/com/pulumi/foobar/Utilities.java | 31 +- .../main/java/com/pulumi/foo/Utilities.java | 31 +- .../com/pulumi/example/ExampleFunctions.java | 4 + .../java/com/pulumi/example/Utilities.java | 31 +- .../myedgeorder/MyedgeorderFunctions.java | 17 + .../com/pulumi/myedgeorder/Utilities.java | 31 +- .../java/com/pulumi/mypkg/MypkgFunctions.java | 20 + .../main/java/com/pulumi/mypkg/Utilities.java | 31 +- .../java/com/pulumi/mypkg/MypkgFunctions.java | 74 +++ .../main/java/com/pulumi/mypkg/Utilities.java | 31 +- .../java/com/pulumi/pkg/PkgFunctions.java | 8 + .../main/java/com/pulumi/pkg/Utilities.java | 31 +- .../java/com/pulumi/foobar/Utilities.java | 31 +- .../main/java/com/pulumi/world/Utilities.java | 31 +- .../main/java/com/pulumi/world/Utilities.java | 31 +- .../com/pulumi/nestedTypes/Utilities.java | 31 +- .../main/java/com/pulumi/myPkg/Utilities.java | 31 +- .../main/java/com/pulumi/aws/Utilities.java | 31 +- .../com/pulumi/aws/x_iam/X_iamFunctions.java | 4 + .../java/com/pulumi/example/Utilities.java | 31 +- .../java/com/pulumi/example/Utilities.java | 31 +- .../java/com/pulumi/example/Utilities.java | 31 +- .../java/com/pulumi/example/Utilities.java | 31 +- .../main/java/com/pulumi/mypkg/Utilities.java | 31 +- .../main/java/com/pulumi/plant/Utilities.java | 31 +- .../java/com/pulumi/example/Utilities.java | 31 +- .../com/pulumi/example/ExampleFunctions.java | 4 + .../java/com/pulumi/example/Utilities.java | 31 +- .../com/pulumi/example/ExampleFunctions.java | 4 + .../java/com/pulumi/example/Utilities.java | 31 +- .../com/pulumi/example/ExampleFunctions.java | 4 + .../java/com/pulumi/example/Utilities.java | 31 +- .../java/com/pulumi/example/Utilities.java | 31 +- .../java/com/pulumi/example/Utilities.java | 31 +- .../com/pulumi/example/ExampleFunctions.java | 4 + .../java/com/pulumi/example/Utilities.java | 31 +- .../java/com/pulumi/example/Utilities.java | 31 +- .../java/com/pulumi/example/Utilities.java | 31 +- .../java/com/pulumi/urnid/UrnidFunctions.java | 8 + .../main/java/com/pulumi/urnid/Utilities.java | 31 +- .../com/pulumi/credentials/Utilities.java | 31 +- 69 files changed, 1758 insertions(+), 432 deletions(-) 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 9847abddbd8..d73bc41ee57 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 @@ -420,6 +420,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import com.pulumi.resources.InvokeArgs; import java.util.concurrent.CompletableFuture; @@ -433,6 +434,9 @@ public static CompletableFuture public static Output getAppSecAdvancedSettingsEvasivePathMatch(GetAppSecAdvancedSettingsEvasivePathMatchArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getAppSecAdvancedSettingsEvasivePathMatch:getAppSecAdvancedSettingsEvasivePathMatch", TypeShape.of(GetAppSecAdvancedSettingsEvasivePathMatchResult.class), args, Utilities.withVersion(options)); } + public static Output getAppSecAdvancedSettingsEvasivePathMatch(GetAppSecAdvancedSettingsEvasivePathMatchArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getAppSecAdvancedSettingsEvasivePathMatch:getAppSecAdvancedSettingsEvasivePathMatch", TypeShape.of(GetAppSecAdvancedSettingsEvasivePathMatchResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getAppSecAdvancedSettingsEvasivePathMatchPlain(GetAppSecAdvancedSettingsEvasivePathMatchPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getAppSecAdvancedSettingsEvasivePathMatch:getAppSecAdvancedSettingsEvasivePathMatch", TypeShape.of(GetAppSecAdvancedSettingsEvasivePathMatchResult.class), args, Utilities.withVersion(options)); } @@ -445,6 +449,9 @@ public static CompletableFuture getAppSe public static Output getAppSecAdvancedSettingsLogging(GetAppSecAdvancedSettingsLoggingArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getAppSecAdvancedSettingsLogging:getAppSecAdvancedSettingsLogging", TypeShape.of(GetAppSecAdvancedSettingsLoggingResult.class), args, Utilities.withVersion(options)); } + public static Output getAppSecAdvancedSettingsLogging(GetAppSecAdvancedSettingsLoggingArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getAppSecAdvancedSettingsLogging:getAppSecAdvancedSettingsLogging", TypeShape.of(GetAppSecAdvancedSettingsLoggingResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getAppSecAdvancedSettingsLoggingPlain(GetAppSecAdvancedSettingsLoggingPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getAppSecAdvancedSettingsLogging:getAppSecAdvancedSettingsLogging", TypeShape.of(GetAppSecAdvancedSettingsLoggingResult.class), args, Utilities.withVersion(options)); } @@ -457,6 +464,9 @@ public static CompletableFuture get public static Output getAppSecAdvancedSettingsPragmaHeader(GetAppSecAdvancedSettingsPragmaHeaderArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getAppSecAdvancedSettingsPragmaHeader:getAppSecAdvancedSettingsPragmaHeader", TypeShape.of(GetAppSecAdvancedSettingsPragmaHeaderResult.class), args, Utilities.withVersion(options)); } + public static Output getAppSecAdvancedSettingsPragmaHeader(GetAppSecAdvancedSettingsPragmaHeaderArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getAppSecAdvancedSettingsPragmaHeader:getAppSecAdvancedSettingsPragmaHeader", TypeShape.of(GetAppSecAdvancedSettingsPragmaHeaderResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getAppSecAdvancedSettingsPragmaHeaderPlain(GetAppSecAdvancedSettingsPragmaHeaderPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getAppSecAdvancedSettingsPragmaHeader:getAppSecAdvancedSettingsPragmaHeader", TypeShape.of(GetAppSecAdvancedSettingsPragmaHeaderResult.class), args, Utilities.withVersion(options)); } @@ -469,6 +479,9 @@ public static CompletableFuture getAppS public static Output getAppSecAdvancedSettingsPrefetch(GetAppSecAdvancedSettingsPrefetchArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getAppSecAdvancedSettingsPrefetch:getAppSecAdvancedSettingsPrefetch", TypeShape.of(GetAppSecAdvancedSettingsPrefetchResult.class), args, Utilities.withVersion(options)); } + public static Output getAppSecAdvancedSettingsPrefetch(GetAppSecAdvancedSettingsPrefetchArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getAppSecAdvancedSettingsPrefetch:getAppSecAdvancedSettingsPrefetch", TypeShape.of(GetAppSecAdvancedSettingsPrefetchResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getAppSecAdvancedSettingsPrefetchPlain(GetAppSecAdvancedSettingsPrefetchPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getAppSecAdvancedSettingsPrefetch:getAppSecAdvancedSettingsPrefetch", TypeShape.of(GetAppSecAdvancedSettingsPrefetchResult.class), args, Utilities.withVersion(options)); } @@ -481,6 +494,9 @@ public static CompletableFuture getAppSecApiEndpoin public static Output getAppSecApiEndpoints(GetAppSecApiEndpointsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getAppSecApiEndpoints:getAppSecApiEndpoints", TypeShape.of(GetAppSecApiEndpointsResult.class), args, Utilities.withVersion(options)); } + public static Output getAppSecApiEndpoints(GetAppSecApiEndpointsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getAppSecApiEndpoints:getAppSecApiEndpoints", TypeShape.of(GetAppSecApiEndpointsResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getAppSecApiEndpointsPlain(GetAppSecApiEndpointsPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getAppSecApiEndpoints:getAppSecApiEndpoints", TypeShape.of(GetAppSecApiEndpointsResult.class), args, Utilities.withVersion(options)); } @@ -493,6 +509,9 @@ public static CompletableFuture getAppSecA public static Output getAppSecApiRequestConstraints(GetAppSecApiRequestConstraintsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getAppSecApiRequestConstraints:getAppSecApiRequestConstraints", TypeShape.of(GetAppSecApiRequestConstraintsResult.class), args, Utilities.withVersion(options)); } + public static Output getAppSecApiRequestConstraints(GetAppSecApiRequestConstraintsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getAppSecApiRequestConstraints:getAppSecApiRequestConstraints", TypeShape.of(GetAppSecApiRequestConstraintsResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getAppSecApiRequestConstraintsPlain(GetAppSecApiRequestConstraintsPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getAppSecApiRequestConstraints:getAppSecApiRequestConstraints", TypeShape.of(GetAppSecApiRequestConstraintsResult.class), args, Utilities.withVersion(options)); } @@ -505,6 +524,9 @@ public static CompletableFuture getAppSecAttackGrou public static Output getAppSecAttackGroups(GetAppSecAttackGroupsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getAppSecAttackGroups:getAppSecAttackGroups", TypeShape.of(GetAppSecAttackGroupsResult.class), args, Utilities.withVersion(options)); } + public static Output getAppSecAttackGroups(GetAppSecAttackGroupsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getAppSecAttackGroups:getAppSecAttackGroups", TypeShape.of(GetAppSecAttackGroupsResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getAppSecAttackGroupsPlain(GetAppSecAttackGroupsPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getAppSecAttackGroups:getAppSecAttackGroups", TypeShape.of(GetAppSecAttackGroupsResult.class), args, Utilities.withVersion(options)); } @@ -517,6 +539,9 @@ public static CompletableFuture getAppSecBypa public static Output getAppSecBypassNetworkLists(GetAppSecBypassNetworkListsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getAppSecBypassNetworkLists:getAppSecBypassNetworkLists", TypeShape.of(GetAppSecBypassNetworkListsResult.class), args, Utilities.withVersion(options)); } + public static Output getAppSecBypassNetworkLists(GetAppSecBypassNetworkListsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getAppSecBypassNetworkLists:getAppSecBypassNetworkLists", TypeShape.of(GetAppSecBypassNetworkListsResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getAppSecBypassNetworkListsPlain(GetAppSecBypassNetworkListsPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getAppSecBypassNetworkLists:getAppSecBypassNetworkLists", TypeShape.of(GetAppSecBypassNetworkListsResult.class), args, Utilities.withVersion(options)); } @@ -535,6 +560,9 @@ public static CompletableFuture getAppSecConfigura public static Output getAppSecConfiguration(GetAppSecConfigurationArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getAppSecConfiguration:getAppSecConfiguration", TypeShape.of(GetAppSecConfigurationResult.class), args, Utilities.withVersion(options)); } + public static Output getAppSecConfiguration(GetAppSecConfigurationArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getAppSecConfiguration:getAppSecConfiguration", TypeShape.of(GetAppSecConfigurationResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getAppSecConfigurationPlain(GetAppSecConfigurationPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getAppSecConfiguration:getAppSecConfiguration", TypeShape.of(GetAppSecConfigurationResult.class), args, Utilities.withVersion(options)); } @@ -547,6 +575,9 @@ public static CompletableFuture getAppSecCo public static Output getAppSecConfigurationVersion(GetAppSecConfigurationVersionArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getAppSecConfigurationVersion:getAppSecConfigurationVersion", TypeShape.of(GetAppSecConfigurationVersionResult.class), args, Utilities.withVersion(options)); } + public static Output getAppSecConfigurationVersion(GetAppSecConfigurationVersionArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getAppSecConfigurationVersion:getAppSecConfigurationVersion", TypeShape.of(GetAppSecConfigurationVersionResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getAppSecConfigurationVersionPlain(GetAppSecConfigurationVersionPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getAppSecConfigurationVersion:getAppSecConfigurationVersion", TypeShape.of(GetAppSecConfigurationVersionResult.class), args, Utilities.withVersion(options)); } @@ -565,6 +596,9 @@ public static CompletableFuture getAppSecContrac public static Output getAppSecContractsGroups(GetAppSecContractsGroupsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getAppSecContractsGroups:getAppSecContractsGroups", TypeShape.of(GetAppSecContractsGroupsResult.class), args, Utilities.withVersion(options)); } + public static Output getAppSecContractsGroups(GetAppSecContractsGroupsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getAppSecContractsGroups:getAppSecContractsGroups", TypeShape.of(GetAppSecContractsGroupsResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getAppSecContractsGroupsPlain(GetAppSecContractsGroupsPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getAppSecContractsGroups:getAppSecContractsGroups", TypeShape.of(GetAppSecContractsGroupsResult.class), args, Utilities.withVersion(options)); } @@ -577,6 +611,9 @@ public static CompletableFuture getAppSecCustomDenyPl public static Output getAppSecCustomDeny(GetAppSecCustomDenyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getAppSecCustomDeny:getAppSecCustomDeny", TypeShape.of(GetAppSecCustomDenyResult.class), args, Utilities.withVersion(options)); } + public static Output getAppSecCustomDeny(GetAppSecCustomDenyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getAppSecCustomDeny:getAppSecCustomDeny", TypeShape.of(GetAppSecCustomDenyResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getAppSecCustomDenyPlain(GetAppSecCustomDenyPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getAppSecCustomDeny:getAppSecCustomDeny", TypeShape.of(GetAppSecCustomDenyResult.class), args, Utilities.withVersion(options)); } @@ -589,6 +626,9 @@ public static CompletableFuture getAppSecCusto public static Output getAppSecCustomRuleActions(GetAppSecCustomRuleActionsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getAppSecCustomRuleActions:getAppSecCustomRuleActions", TypeShape.of(GetAppSecCustomRuleActionsResult.class), args, Utilities.withVersion(options)); } + public static Output getAppSecCustomRuleActions(GetAppSecCustomRuleActionsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getAppSecCustomRuleActions:getAppSecCustomRuleActions", TypeShape.of(GetAppSecCustomRuleActionsResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getAppSecCustomRuleActionsPlain(GetAppSecCustomRuleActionsPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getAppSecCustomRuleActions:getAppSecCustomRuleActions", TypeShape.of(GetAppSecCustomRuleActionsResult.class), args, Utilities.withVersion(options)); } @@ -601,6 +641,9 @@ public static CompletableFuture getAppSecCustomRules public static Output getAppSecCustomRules(GetAppSecCustomRulesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getAppSecCustomRules:getAppSecCustomRules", TypeShape.of(GetAppSecCustomRulesResult.class), args, Utilities.withVersion(options)); } + public static Output getAppSecCustomRules(GetAppSecCustomRulesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getAppSecCustomRules:getAppSecCustomRules", TypeShape.of(GetAppSecCustomRulesResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getAppSecCustomRulesPlain(GetAppSecCustomRulesPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getAppSecCustomRules:getAppSecCustomRules", TypeShape.of(GetAppSecCustomRulesResult.class), args, Utilities.withVersion(options)); } @@ -613,6 +656,9 @@ public static CompletableFuture getAppSecEvalPlain(GetAppSe public static Output getAppSecEval(GetAppSecEvalArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getAppSecEval:getAppSecEval", TypeShape.of(GetAppSecEvalResult.class), args, Utilities.withVersion(options)); } + public static Output getAppSecEval(GetAppSecEvalArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getAppSecEval:getAppSecEval", TypeShape.of(GetAppSecEvalResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getAppSecEvalPlain(GetAppSecEvalPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getAppSecEval:getAppSecEval", TypeShape.of(GetAppSecEvalResult.class), args, Utilities.withVersion(options)); } @@ -625,6 +671,9 @@ public static CompletableFuture getAppSecEvalGroupsPl public static Output getAppSecEvalGroups(GetAppSecEvalGroupsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getAppSecEvalGroups:getAppSecEvalGroups", TypeShape.of(GetAppSecEvalGroupsResult.class), args, Utilities.withVersion(options)); } + public static Output getAppSecEvalGroups(GetAppSecEvalGroupsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getAppSecEvalGroups:getAppSecEvalGroups", TypeShape.of(GetAppSecEvalGroupsResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getAppSecEvalGroupsPlain(GetAppSecEvalGroupsPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getAppSecEvalGroups:getAppSecEvalGroups", TypeShape.of(GetAppSecEvalGroupsResult.class), args, Utilities.withVersion(options)); } @@ -637,6 +686,9 @@ public static CompletableFuture getAppSecEvalPena public static Output getAppSecEvalPenaltyBox(GetAppSecEvalPenaltyBoxArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getAppSecEvalPenaltyBox:getAppSecEvalPenaltyBox", TypeShape.of(GetAppSecEvalPenaltyBoxResult.class), args, Utilities.withVersion(options)); } + public static Output getAppSecEvalPenaltyBox(GetAppSecEvalPenaltyBoxArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getAppSecEvalPenaltyBox:getAppSecEvalPenaltyBox", TypeShape.of(GetAppSecEvalPenaltyBoxResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getAppSecEvalPenaltyBoxPlain(GetAppSecEvalPenaltyBoxPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getAppSecEvalPenaltyBox:getAppSecEvalPenaltyBox", TypeShape.of(GetAppSecEvalPenaltyBoxResult.class), args, Utilities.withVersion(options)); } @@ -649,6 +701,9 @@ public static CompletableFuture getAppSecEvalRulesPlai public static Output getAppSecEvalRules(GetAppSecEvalRulesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getAppSecEvalRules:getAppSecEvalRules", TypeShape.of(GetAppSecEvalRulesResult.class), args, Utilities.withVersion(options)); } + public static Output getAppSecEvalRules(GetAppSecEvalRulesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getAppSecEvalRules:getAppSecEvalRules", TypeShape.of(GetAppSecEvalRulesResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getAppSecEvalRulesPlain(GetAppSecEvalRulesPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getAppSecEvalRules:getAppSecEvalRules", TypeShape.of(GetAppSecEvalRulesResult.class), args, Utilities.withVersion(options)); } @@ -661,6 +716,9 @@ public static CompletableFuture getAppSecExp public static Output getAppSecExportConfiguration(GetAppSecExportConfigurationArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getAppSecExportConfiguration:getAppSecExportConfiguration", TypeShape.of(GetAppSecExportConfigurationResult.class), args, Utilities.withVersion(options)); } + public static Output getAppSecExportConfiguration(GetAppSecExportConfigurationArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getAppSecExportConfiguration:getAppSecExportConfiguration", TypeShape.of(GetAppSecExportConfigurationResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getAppSecExportConfigurationPlain(GetAppSecExportConfigurationPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getAppSecExportConfiguration:getAppSecExportConfiguration", TypeShape.of(GetAppSecExportConfigurationResult.class), args, Utilities.withVersion(options)); } @@ -673,6 +731,9 @@ public static CompletableFuture getAppSecFailo public static Output getAppSecFailoverHostnames(GetAppSecFailoverHostnamesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getAppSecFailoverHostnames:getAppSecFailoverHostnames", TypeShape.of(GetAppSecFailoverHostnamesResult.class), args, Utilities.withVersion(options)); } + public static Output getAppSecFailoverHostnames(GetAppSecFailoverHostnamesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getAppSecFailoverHostnames:getAppSecFailoverHostnames", TypeShape.of(GetAppSecFailoverHostnamesResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getAppSecFailoverHostnamesPlain(GetAppSecFailoverHostnamesPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getAppSecFailoverHostnames:getAppSecFailoverHostnames", TypeShape.of(GetAppSecFailoverHostnamesResult.class), args, Utilities.withVersion(options)); } @@ -691,6 +752,9 @@ public static CompletableFuture getAppSecHostna public static Output getAppSecHostnameCoverage(InvokeArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getAppSecHostnameCoverage:getAppSecHostnameCoverage", TypeShape.of(GetAppSecHostnameCoverageResult.class), args, Utilities.withVersion(options)); } + public static Output getAppSecHostnameCoverage(InvokeArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getAppSecHostnameCoverage:getAppSecHostnameCoverage", TypeShape.of(GetAppSecHostnameCoverageResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getAppSecHostnameCoveragePlain(InvokeArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getAppSecHostnameCoverage:getAppSecHostnameCoverage", TypeShape.of(GetAppSecHostnameCoverageResult.class), args, Utilities.withVersion(options)); } @@ -703,6 +767,9 @@ public static CompletableFuture get public static Output getAppSecHostnameCoverageMatchTargets(GetAppSecHostnameCoverageMatchTargetsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getAppSecHostnameCoverageMatchTargets:getAppSecHostnameCoverageMatchTargets", TypeShape.of(GetAppSecHostnameCoverageMatchTargetsResult.class), args, Utilities.withVersion(options)); } + public static Output getAppSecHostnameCoverageMatchTargets(GetAppSecHostnameCoverageMatchTargetsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getAppSecHostnameCoverageMatchTargets:getAppSecHostnameCoverageMatchTargets", TypeShape.of(GetAppSecHostnameCoverageMatchTargetsResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getAppSecHostnameCoverageMatchTargetsPlain(GetAppSecHostnameCoverageMatchTargetsPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getAppSecHostnameCoverageMatchTargets:getAppSecHostnameCoverageMatchTargets", TypeShape.of(GetAppSecHostnameCoverageMatchTargetsResult.class), args, Utilities.withVersion(options)); } @@ -715,6 +782,9 @@ public static CompletableFuture getA public static Output getAppSecHostnameCoverageOverlapping(GetAppSecHostnameCoverageOverlappingArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getAppSecHostnameCoverageOverlapping:getAppSecHostnameCoverageOverlapping", TypeShape.of(GetAppSecHostnameCoverageOverlappingResult.class), args, Utilities.withVersion(options)); } + public static Output getAppSecHostnameCoverageOverlapping(GetAppSecHostnameCoverageOverlappingArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getAppSecHostnameCoverageOverlapping:getAppSecHostnameCoverageOverlapping", TypeShape.of(GetAppSecHostnameCoverageOverlappingResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getAppSecHostnameCoverageOverlappingPlain(GetAppSecHostnameCoverageOverlappingPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getAppSecHostnameCoverageOverlapping:getAppSecHostnameCoverageOverlapping", TypeShape.of(GetAppSecHostnameCoverageOverlappingResult.class), args, Utilities.withVersion(options)); } @@ -727,6 +797,9 @@ public static CompletableFuture getAppSecIPGeoPlain(GetApp public static Output getAppSecIPGeo(GetAppSecIPGeoArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getAppSecIPGeo:getAppSecIPGeo", TypeShape.of(GetAppSecIPGeoResult.class), args, Utilities.withVersion(options)); } + public static Output getAppSecIPGeo(GetAppSecIPGeoArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getAppSecIPGeo:getAppSecIPGeo", TypeShape.of(GetAppSecIPGeoResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getAppSecIPGeoPlain(GetAppSecIPGeoPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getAppSecIPGeo:getAppSecIPGeo", TypeShape.of(GetAppSecIPGeoResult.class), args, Utilities.withVersion(options)); } @@ -739,6 +812,9 @@ public static CompletableFuture getAppSecMal public static Output getAppSecMalwareContentTypes(GetAppSecMalwareContentTypesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getAppSecMalwareContentTypes:getAppSecMalwareContentTypes", TypeShape.of(GetAppSecMalwareContentTypesResult.class), args, Utilities.withVersion(options)); } + public static Output getAppSecMalwareContentTypes(GetAppSecMalwareContentTypesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getAppSecMalwareContentTypes:getAppSecMalwareContentTypes", TypeShape.of(GetAppSecMalwareContentTypesResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getAppSecMalwareContentTypesPlain(GetAppSecMalwareContentTypesPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getAppSecMalwareContentTypes:getAppSecMalwareContentTypes", TypeShape.of(GetAppSecMalwareContentTypesResult.class), args, Utilities.withVersion(options)); } @@ -751,6 +827,9 @@ public static CompletableFuture getAppSecMalware public static Output getAppSecMalwarePolicies(GetAppSecMalwarePoliciesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getAppSecMalwarePolicies:getAppSecMalwarePolicies", TypeShape.of(GetAppSecMalwarePoliciesResult.class), args, Utilities.withVersion(options)); } + public static Output getAppSecMalwarePolicies(GetAppSecMalwarePoliciesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getAppSecMalwarePolicies:getAppSecMalwarePolicies", TypeShape.of(GetAppSecMalwarePoliciesResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getAppSecMalwarePoliciesPlain(GetAppSecMalwarePoliciesPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getAppSecMalwarePolicies:getAppSecMalwarePolicies", TypeShape.of(GetAppSecMalwarePoliciesResult.class), args, Utilities.withVersion(options)); } @@ -763,6 +842,9 @@ public static CompletableFuture getAppSecMa public static Output getAppSecMalwarePolicyActions(GetAppSecMalwarePolicyActionsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getAppSecMalwarePolicyActions:getAppSecMalwarePolicyActions", TypeShape.of(GetAppSecMalwarePolicyActionsResult.class), args, Utilities.withVersion(options)); } + public static Output getAppSecMalwarePolicyActions(GetAppSecMalwarePolicyActionsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getAppSecMalwarePolicyActions:getAppSecMalwarePolicyActions", TypeShape.of(GetAppSecMalwarePolicyActionsResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getAppSecMalwarePolicyActionsPlain(GetAppSecMalwarePolicyActionsPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getAppSecMalwarePolicyActions:getAppSecMalwarePolicyActions", TypeShape.of(GetAppSecMalwarePolicyActionsResult.class), args, Utilities.withVersion(options)); } @@ -775,6 +857,9 @@ public static CompletableFuture getAppSecMatchTarge public static Output getAppSecMatchTargets(GetAppSecMatchTargetsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getAppSecMatchTargets:getAppSecMatchTargets", TypeShape.of(GetAppSecMatchTargetsResult.class), args, Utilities.withVersion(options)); } + public static Output getAppSecMatchTargets(GetAppSecMatchTargetsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getAppSecMatchTargets:getAppSecMatchTargets", TypeShape.of(GetAppSecMatchTargetsResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getAppSecMatchTargetsPlain(GetAppSecMatchTargetsPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getAppSecMatchTargets:getAppSecMatchTargets", TypeShape.of(GetAppSecMatchTargetsResult.class), args, Utilities.withVersion(options)); } @@ -787,6 +872,9 @@ public static CompletableFuture getAppSecPenaltyBoxPl public static Output getAppSecPenaltyBox(GetAppSecPenaltyBoxArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getAppSecPenaltyBox:getAppSecPenaltyBox", TypeShape.of(GetAppSecPenaltyBoxResult.class), args, Utilities.withVersion(options)); } + public static Output getAppSecPenaltyBox(GetAppSecPenaltyBoxArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getAppSecPenaltyBox:getAppSecPenaltyBox", TypeShape.of(GetAppSecPenaltyBoxResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getAppSecPenaltyBoxPlain(GetAppSecPenaltyBoxPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getAppSecPenaltyBox:getAppSecPenaltyBox", TypeShape.of(GetAppSecPenaltyBoxResult.class), args, Utilities.withVersion(options)); } @@ -799,6 +887,9 @@ public static CompletableFuture getAppSecRatePolici public static Output getAppSecRatePolicies(GetAppSecRatePoliciesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getAppSecRatePolicies:getAppSecRatePolicies", TypeShape.of(GetAppSecRatePoliciesResult.class), args, Utilities.withVersion(options)); } + public static Output getAppSecRatePolicies(GetAppSecRatePoliciesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getAppSecRatePolicies:getAppSecRatePolicies", TypeShape.of(GetAppSecRatePoliciesResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getAppSecRatePoliciesPlain(GetAppSecRatePoliciesPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getAppSecRatePolicies:getAppSecRatePolicies", TypeShape.of(GetAppSecRatePoliciesResult.class), args, Utilities.withVersion(options)); } @@ -811,6 +902,9 @@ public static CompletableFuture getAppSecRateP public static Output getAppSecRatePolicyActions(GetAppSecRatePolicyActionsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getAppSecRatePolicyActions:getAppSecRatePolicyActions", TypeShape.of(GetAppSecRatePolicyActionsResult.class), args, Utilities.withVersion(options)); } + public static Output getAppSecRatePolicyActions(GetAppSecRatePolicyActionsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getAppSecRatePolicyActions:getAppSecRatePolicyActions", TypeShape.of(GetAppSecRatePolicyActionsResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getAppSecRatePolicyActionsPlain(GetAppSecRatePolicyActionsPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getAppSecRatePolicyActions:getAppSecRatePolicyActions", TypeShape.of(GetAppSecRatePolicyActionsResult.class), args, Utilities.withVersion(options)); } @@ -823,6 +917,9 @@ public static CompletableFuture getAppS public static Output getAppSecReputationProfileActions(GetAppSecReputationProfileActionsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getAppSecReputationProfileActions:getAppSecReputationProfileActions", TypeShape.of(GetAppSecReputationProfileActionsResult.class), args, Utilities.withVersion(options)); } + public static Output getAppSecReputationProfileActions(GetAppSecReputationProfileActionsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getAppSecReputationProfileActions:getAppSecReputationProfileActions", TypeShape.of(GetAppSecReputationProfileActionsResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getAppSecReputationProfileActionsPlain(GetAppSecReputationProfileActionsPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getAppSecReputationProfileActions:getAppSecReputationProfileActions", TypeShape.of(GetAppSecReputationProfileActionsResult.class), args, Utilities.withVersion(options)); } @@ -835,6 +932,9 @@ public static CompletableFuture getApp public static Output getAppSecReputationProfileAnalysis(GetAppSecReputationProfileAnalysisArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getAppSecReputationProfileAnalysis:getAppSecReputationProfileAnalysis", TypeShape.of(GetAppSecReputationProfileAnalysisResult.class), args, Utilities.withVersion(options)); } + public static Output getAppSecReputationProfileAnalysis(GetAppSecReputationProfileAnalysisArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getAppSecReputationProfileAnalysis:getAppSecReputationProfileAnalysis", TypeShape.of(GetAppSecReputationProfileAnalysisResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getAppSecReputationProfileAnalysisPlain(GetAppSecReputationProfileAnalysisPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getAppSecReputationProfileAnalysis:getAppSecReputationProfileAnalysis", TypeShape.of(GetAppSecReputationProfileAnalysisResult.class), args, Utilities.withVersion(options)); } @@ -847,6 +947,9 @@ public static CompletableFuture getAppSecRepu public static Output getAppSecReputationProfiles(GetAppSecReputationProfilesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getAppSecReputationProfiles:getAppSecReputationProfiles", TypeShape.of(GetAppSecReputationProfilesResult.class), args, Utilities.withVersion(options)); } + public static Output getAppSecReputationProfiles(GetAppSecReputationProfilesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getAppSecReputationProfiles:getAppSecReputationProfiles", TypeShape.of(GetAppSecReputationProfilesResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getAppSecReputationProfilesPlain(GetAppSecReputationProfilesPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getAppSecReputationProfiles:getAppSecReputationProfiles", TypeShape.of(GetAppSecReputationProfilesResult.class), args, Utilities.withVersion(options)); } @@ -859,6 +962,9 @@ public static CompletableFuture getAppSecRule public static Output getAppSecRuleUpgradeDetails(GetAppSecRuleUpgradeDetailsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getAppSecRuleUpgradeDetails:getAppSecRuleUpgradeDetails", TypeShape.of(GetAppSecRuleUpgradeDetailsResult.class), args, Utilities.withVersion(options)); } + public static Output getAppSecRuleUpgradeDetails(GetAppSecRuleUpgradeDetailsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getAppSecRuleUpgradeDetails:getAppSecRuleUpgradeDetails", TypeShape.of(GetAppSecRuleUpgradeDetailsResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getAppSecRuleUpgradeDetailsPlain(GetAppSecRuleUpgradeDetailsPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getAppSecRuleUpgradeDetails:getAppSecRuleUpgradeDetails", TypeShape.of(GetAppSecRuleUpgradeDetailsResult.class), args, Utilities.withVersion(options)); } @@ -871,6 +977,9 @@ public static CompletableFuture getAppSecRulesPlain(GetApp public static Output getAppSecRules(GetAppSecRulesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getAppSecRules:getAppSecRules", TypeShape.of(GetAppSecRulesResult.class), args, Utilities.withVersion(options)); } + public static Output getAppSecRules(GetAppSecRulesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getAppSecRules:getAppSecRules", TypeShape.of(GetAppSecRulesResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getAppSecRulesPlain(GetAppSecRulesPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getAppSecRules:getAppSecRules", TypeShape.of(GetAppSecRulesResult.class), args, Utilities.withVersion(options)); } @@ -883,6 +992,9 @@ public static CompletableFuture getAppSecSecurity public static Output getAppSecSecurityPolicy(GetAppSecSecurityPolicyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getAppSecSecurityPolicy:getAppSecSecurityPolicy", TypeShape.of(GetAppSecSecurityPolicyResult.class), args, Utilities.withVersion(options)); } + public static Output getAppSecSecurityPolicy(GetAppSecSecurityPolicyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getAppSecSecurityPolicy:getAppSecSecurityPolicy", TypeShape.of(GetAppSecSecurityPolicyResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getAppSecSecurityPolicyPlain(GetAppSecSecurityPolicyPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getAppSecSecurityPolicy:getAppSecSecurityPolicy", TypeShape.of(GetAppSecSecurityPolicyResult.class), args, Utilities.withVersion(options)); } @@ -895,6 +1007,9 @@ public static CompletableFuture getApp public static Output getAppSecSecurityPolicyProtections(GetAppSecSecurityPolicyProtectionsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getAppSecSecurityPolicyProtections:getAppSecSecurityPolicyProtections", TypeShape.of(GetAppSecSecurityPolicyProtectionsResult.class), args, Utilities.withVersion(options)); } + public static Output getAppSecSecurityPolicyProtections(GetAppSecSecurityPolicyProtectionsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getAppSecSecurityPolicyProtections:getAppSecSecurityPolicyProtections", TypeShape.of(GetAppSecSecurityPolicyProtectionsResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getAppSecSecurityPolicyProtectionsPlain(GetAppSecSecurityPolicyProtectionsPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getAppSecSecurityPolicyProtections:getAppSecSecurityPolicyProtections", TypeShape.of(GetAppSecSecurityPolicyProtectionsResult.class), args, Utilities.withVersion(options)); } @@ -913,6 +1028,9 @@ public static CompletableFuture getAppSecSel public static Output getAppSecSelectableHostnames(GetAppSecSelectableHostnamesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getAppSecSelectableHostnames:getAppSecSelectableHostnames", TypeShape.of(GetAppSecSelectableHostnamesResult.class), args, Utilities.withVersion(options)); } + public static Output getAppSecSelectableHostnames(GetAppSecSelectableHostnamesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getAppSecSelectableHostnames:getAppSecSelectableHostnames", TypeShape.of(GetAppSecSelectableHostnamesResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getAppSecSelectableHostnamesPlain(GetAppSecSelectableHostnamesPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getAppSecSelectableHostnames:getAppSecSelectableHostnames", TypeShape.of(GetAppSecSelectableHostnamesResult.class), args, Utilities.withVersion(options)); } @@ -925,6 +1043,9 @@ public static CompletableFuture getAppSecSelec public static Output getAppSecSelectedHostnames(GetAppSecSelectedHostnamesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getAppSecSelectedHostnames:getAppSecSelectedHostnames", TypeShape.of(GetAppSecSelectedHostnamesResult.class), args, Utilities.withVersion(options)); } + public static Output getAppSecSelectedHostnames(GetAppSecSelectedHostnamesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getAppSecSelectedHostnames:getAppSecSelectedHostnames", TypeShape.of(GetAppSecSelectedHostnamesResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getAppSecSelectedHostnamesPlain(GetAppSecSelectedHostnamesPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getAppSecSelectedHostnames:getAppSecSelectedHostnames", TypeShape.of(GetAppSecSelectedHostnamesResult.class), args, Utilities.withVersion(options)); } @@ -943,6 +1064,9 @@ public static CompletableFuture getAppSecSiemDef public static Output getAppSecSiemDefinitions(GetAppSecSiemDefinitionsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getAppSecSiemDefinitions:getAppSecSiemDefinitions", TypeShape.of(GetAppSecSiemDefinitionsResult.class), args, Utilities.withVersion(options)); } + public static Output getAppSecSiemDefinitions(GetAppSecSiemDefinitionsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getAppSecSiemDefinitions:getAppSecSiemDefinitions", TypeShape.of(GetAppSecSiemDefinitionsResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getAppSecSiemDefinitionsPlain(GetAppSecSiemDefinitionsPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getAppSecSiemDefinitions:getAppSecSiemDefinitions", TypeShape.of(GetAppSecSiemDefinitionsResult.class), args, Utilities.withVersion(options)); } @@ -955,6 +1079,9 @@ public static CompletableFuture getAppSecSiemSettin public static Output getAppSecSiemSettings(GetAppSecSiemSettingsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getAppSecSiemSettings:getAppSecSiemSettings", TypeShape.of(GetAppSecSiemSettingsResult.class), args, Utilities.withVersion(options)); } + public static Output getAppSecSiemSettings(GetAppSecSiemSettingsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getAppSecSiemSettings:getAppSecSiemSettings", TypeShape.of(GetAppSecSiemSettingsResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getAppSecSiemSettingsPlain(GetAppSecSiemSettingsPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getAppSecSiemSettings:getAppSecSiemSettings", TypeShape.of(GetAppSecSiemSettingsResult.class), args, Utilities.withVersion(options)); } @@ -967,6 +1094,9 @@ public static CompletableFuture getAppSecSlowPostPlain( public static Output getAppSecSlowPost(GetAppSecSlowPostArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getAppSecSlowPost:getAppSecSlowPost", TypeShape.of(GetAppSecSlowPostResult.class), args, Utilities.withVersion(options)); } + public static Output getAppSecSlowPost(GetAppSecSlowPostArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getAppSecSlowPost:getAppSecSlowPost", TypeShape.of(GetAppSecSlowPostResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getAppSecSlowPostPlain(GetAppSecSlowPostPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getAppSecSlowPost:getAppSecSlowPost", TypeShape.of(GetAppSecSlowPostResult.class), args, Utilities.withVersion(options)); } @@ -979,6 +1109,9 @@ public static CompletableFuture getAppSecThreatIntel public static Output getAppSecThreatIntel(GetAppSecThreatIntelArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getAppSecThreatIntel:getAppSecThreatIntel", TypeShape.of(GetAppSecThreatIntelResult.class), args, Utilities.withVersion(options)); } + public static Output getAppSecThreatIntel(GetAppSecThreatIntelArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getAppSecThreatIntel:getAppSecThreatIntel", TypeShape.of(GetAppSecThreatIntelResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getAppSecThreatIntelPlain(GetAppSecThreatIntelPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getAppSecThreatIntel:getAppSecThreatIntel", TypeShape.of(GetAppSecThreatIntelResult.class), args, Utilities.withVersion(options)); } @@ -991,6 +1124,9 @@ public static CompletableFuture getAppSecT public static Output getAppSecTuningRecommendations(GetAppSecTuningRecommendationsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getAppSecTuningRecommendations:getAppSecTuningRecommendations", TypeShape.of(GetAppSecTuningRecommendationsResult.class), args, Utilities.withVersion(options)); } + public static Output getAppSecTuningRecommendations(GetAppSecTuningRecommendationsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getAppSecTuningRecommendations:getAppSecTuningRecommendations", TypeShape.of(GetAppSecTuningRecommendationsResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getAppSecTuningRecommendationsPlain(GetAppSecTuningRecommendationsPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getAppSecTuningRecommendations:getAppSecTuningRecommendations", TypeShape.of(GetAppSecTuningRecommendationsResult.class), args, Utilities.withVersion(options)); } @@ -1003,6 +1139,9 @@ public static CompletableFuture getAppSecVersionNot public static Output getAppSecVersionNotes(GetAppSecVersionNotesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getAppSecVersionNotes:getAppSecVersionNotes", TypeShape.of(GetAppSecVersionNotesResult.class), args, Utilities.withVersion(options)); } + public static Output getAppSecVersionNotes(GetAppSecVersionNotesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getAppSecVersionNotes:getAppSecVersionNotes", TypeShape.of(GetAppSecVersionNotesResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getAppSecVersionNotesPlain(GetAppSecVersionNotesPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getAppSecVersionNotes:getAppSecVersionNotes", TypeShape.of(GetAppSecVersionNotesResult.class), args, Utilities.withVersion(options)); } @@ -1015,6 +1154,9 @@ public static CompletableFuture getAppSecWafModePlain(Ge public static Output getAppSecWafMode(GetAppSecWafModeArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getAppSecWafMode:getAppSecWafMode", TypeShape.of(GetAppSecWafModeResult.class), args, Utilities.withVersion(options)); } + public static Output getAppSecWafMode(GetAppSecWafModeArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getAppSecWafMode:getAppSecWafMode", TypeShape.of(GetAppSecWafModeResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getAppSecWafModePlain(GetAppSecWafModePlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getAppSecWafMode:getAppSecWafMode", TypeShape.of(GetAppSecWafModeResult.class), args, Utilities.withVersion(options)); } @@ -1027,6 +1169,9 @@ public static CompletableFuture getAppSecWa public static Output getAppSecWapSelectedHostnames(GetAppSecWapSelectedHostnamesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getAppSecWapSelectedHostnames:getAppSecWapSelectedHostnames", TypeShape.of(GetAppSecWapSelectedHostnamesResult.class), args, Utilities.withVersion(options)); } + public static Output getAppSecWapSelectedHostnames(GetAppSecWapSelectedHostnamesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getAppSecWapSelectedHostnames:getAppSecWapSelectedHostnames", TypeShape.of(GetAppSecWapSelectedHostnamesResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getAppSecWapSelectedHostnamesPlain(GetAppSecWapSelectedHostnamesPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getAppSecWapSelectedHostnames:getAppSecWapSelectedHostnames", TypeShape.of(GetAppSecWapSelectedHostnamesResult.class), args, Utilities.withVersion(options)); } @@ -1039,6 +1184,9 @@ public static CompletableFuture getAppsecAdvancedSettingsAttackPayloadLogging(GetAppsecAdvancedSettingsAttackPayloadLoggingArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getAppsecAdvancedSettingsAttackPayloadLogging:getAppsecAdvancedSettingsAttackPayloadLogging", TypeShape.of(GetAppsecAdvancedSettingsAttackPayloadLoggingResult.class), args, Utilities.withVersion(options)); } + public static Output getAppsecAdvancedSettingsAttackPayloadLogging(GetAppsecAdvancedSettingsAttackPayloadLoggingArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getAppsecAdvancedSettingsAttackPayloadLogging:getAppsecAdvancedSettingsAttackPayloadLogging", TypeShape.of(GetAppsecAdvancedSettingsAttackPayloadLoggingResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getAppsecAdvancedSettingsAttackPayloadLoggingPlain(GetAppsecAdvancedSettingsAttackPayloadLoggingPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getAppsecAdvancedSettingsAttackPayloadLogging:getAppsecAdvancedSettingsAttackPayloadLogging", TypeShape.of(GetAppsecAdvancedSettingsAttackPayloadLoggingResult.class), args, Utilities.withVersion(options)); } @@ -1051,6 +1199,9 @@ public static CompletableFuture getA public static Output getAppsecAdvancedSettingsPiiLearning(GetAppsecAdvancedSettingsPiiLearningArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getAppsecAdvancedSettingsPiiLearning:getAppsecAdvancedSettingsPiiLearning", TypeShape.of(GetAppsecAdvancedSettingsPiiLearningResult.class), args, Utilities.withVersion(options)); } + public static Output getAppsecAdvancedSettingsPiiLearning(GetAppsecAdvancedSettingsPiiLearningArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getAppsecAdvancedSettingsPiiLearning:getAppsecAdvancedSettingsPiiLearning", TypeShape.of(GetAppsecAdvancedSettingsPiiLearningResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getAppsecAdvancedSettingsPiiLearningPlain(GetAppsecAdvancedSettingsPiiLearningPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getAppsecAdvancedSettingsPiiLearning:getAppsecAdvancedSettingsPiiLearning", TypeShape.of(GetAppsecAdvancedSettingsPiiLearningResult.class), args, Utilities.withVersion(options)); } @@ -1063,6 +1214,9 @@ public static CompletableFuture getA public static Output getAppsecAdvancedSettingsRequestBody(GetAppsecAdvancedSettingsRequestBodyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getAppsecAdvancedSettingsRequestBody:getAppsecAdvancedSettingsRequestBody", TypeShape.of(GetAppsecAdvancedSettingsRequestBodyResult.class), args, Utilities.withVersion(options)); } + public static Output getAppsecAdvancedSettingsRequestBody(GetAppsecAdvancedSettingsRequestBodyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getAppsecAdvancedSettingsRequestBody:getAppsecAdvancedSettingsRequestBody", TypeShape.of(GetAppsecAdvancedSettingsRequestBodyResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getAppsecAdvancedSettingsRequestBodyPlain(GetAppsecAdvancedSettingsRequestBodyPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getAppsecAdvancedSettingsRequestBody:getAppsecAdvancedSettingsRequestBody", TypeShape.of(GetAppsecAdvancedSettingsRequestBodyResult.class), args, Utilities.withVersion(options)); } @@ -1075,6 +1229,9 @@ public static CompletableFuture getAuthoritiesSetPlain( public static Output getAuthoritiesSet(GetAuthoritiesSetArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getAuthoritiesSet:getAuthoritiesSet", TypeShape.of(GetAuthoritiesSetResult.class), args, Utilities.withVersion(options)); } + public static Output getAuthoritiesSet(GetAuthoritiesSetArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getAuthoritiesSet:getAuthoritiesSet", TypeShape.of(GetAuthoritiesSetResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getAuthoritiesSetPlain(GetAuthoritiesSetPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getAuthoritiesSet:getAuthoritiesSet", TypeShape.of(GetAuthoritiesSetResult.class), args, Utilities.withVersion(options)); } @@ -1093,6 +1250,9 @@ public static CompletableFuture getBotmanAkama public static Output getBotmanAkamaiBotCategory(GetBotmanAkamaiBotCategoryArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getBotmanAkamaiBotCategory:getBotmanAkamaiBotCategory", TypeShape.of(GetBotmanAkamaiBotCategoryResult.class), args, Utilities.withVersion(options)); } + public static Output getBotmanAkamaiBotCategory(GetBotmanAkamaiBotCategoryArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getBotmanAkamaiBotCategory:getBotmanAkamaiBotCategory", TypeShape.of(GetBotmanAkamaiBotCategoryResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getBotmanAkamaiBotCategoryPlain(GetBotmanAkamaiBotCategoryPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getBotmanAkamaiBotCategory:getBotmanAkamaiBotCategory", TypeShape.of(GetBotmanAkamaiBotCategoryResult.class), args, Utilities.withVersion(options)); } @@ -1105,6 +1265,9 @@ public static CompletableFuture getBotma public static Output getBotmanAkamaiBotCategoryAction(GetBotmanAkamaiBotCategoryActionArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getBotmanAkamaiBotCategoryAction:getBotmanAkamaiBotCategoryAction", TypeShape.of(GetBotmanAkamaiBotCategoryActionResult.class), args, Utilities.withVersion(options)); } + public static Output getBotmanAkamaiBotCategoryAction(GetBotmanAkamaiBotCategoryActionArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getBotmanAkamaiBotCategoryAction:getBotmanAkamaiBotCategoryAction", TypeShape.of(GetBotmanAkamaiBotCategoryActionResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getBotmanAkamaiBotCategoryActionPlain(GetBotmanAkamaiBotCategoryActionPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getBotmanAkamaiBotCategoryAction:getBotmanAkamaiBotCategoryAction", TypeShape.of(GetBotmanAkamaiBotCategoryActionResult.class), args, Utilities.withVersion(options)); } @@ -1123,6 +1286,9 @@ public static CompletableFuture getBotmanAkamai public static Output getBotmanAkamaiDefinedBot(GetBotmanAkamaiDefinedBotArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getBotmanAkamaiDefinedBot:getBotmanAkamaiDefinedBot", TypeShape.of(GetBotmanAkamaiDefinedBotResult.class), args, Utilities.withVersion(options)); } + public static Output getBotmanAkamaiDefinedBot(GetBotmanAkamaiDefinedBotArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getBotmanAkamaiDefinedBot:getBotmanAkamaiDefinedBot", TypeShape.of(GetBotmanAkamaiDefinedBotResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getBotmanAkamaiDefinedBotPlain(GetBotmanAkamaiDefinedBotPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getBotmanAkamaiDefinedBot:getBotmanAkamaiDefinedBot", TypeShape.of(GetBotmanAkamaiDefinedBotResult.class), args, Utilities.withVersion(options)); } @@ -1135,6 +1301,9 @@ public static CompletableFuture getBotmanBotA public static Output getBotmanBotAnalyticsCookie(GetBotmanBotAnalyticsCookieArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getBotmanBotAnalyticsCookie:getBotmanBotAnalyticsCookie", TypeShape.of(GetBotmanBotAnalyticsCookieResult.class), args, Utilities.withVersion(options)); } + public static Output getBotmanBotAnalyticsCookie(GetBotmanBotAnalyticsCookieArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getBotmanBotAnalyticsCookie:getBotmanBotAnalyticsCookie", TypeShape.of(GetBotmanBotAnalyticsCookieResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getBotmanBotAnalyticsCookiePlain(GetBotmanBotAnalyticsCookiePlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getBotmanBotAnalyticsCookie:getBotmanBotAnalyticsCookie", TypeShape.of(GetBotmanBotAnalyticsCookieResult.class), args, Utilities.withVersion(options)); } @@ -1153,6 +1322,9 @@ public static CompletableFuture getBotm public static Output getBotmanBotAnalyticsCookieValues(InvokeArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getBotmanBotAnalyticsCookieValues:getBotmanBotAnalyticsCookieValues", TypeShape.of(GetBotmanBotAnalyticsCookieValuesResult.class), args, Utilities.withVersion(options)); } + public static Output getBotmanBotAnalyticsCookieValues(InvokeArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getBotmanBotAnalyticsCookieValues:getBotmanBotAnalyticsCookieValues", TypeShape.of(GetBotmanBotAnalyticsCookieValuesResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getBotmanBotAnalyticsCookieValuesPlain(InvokeArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getBotmanBotAnalyticsCookieValues:getBotmanBotAnalyticsCookieValues", TypeShape.of(GetBotmanBotAnalyticsCookieValuesResult.class), args, Utilities.withVersion(options)); } @@ -1165,6 +1337,9 @@ public static CompletableFuture getBotmanBo public static Output getBotmanBotCategoryException(GetBotmanBotCategoryExceptionArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getBotmanBotCategoryException:getBotmanBotCategoryException", TypeShape.of(GetBotmanBotCategoryExceptionResult.class), args, Utilities.withVersion(options)); } + public static Output getBotmanBotCategoryException(GetBotmanBotCategoryExceptionArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getBotmanBotCategoryException:getBotmanBotCategoryException", TypeShape.of(GetBotmanBotCategoryExceptionResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getBotmanBotCategoryExceptionPlain(GetBotmanBotCategoryExceptionPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getBotmanBotCategoryException:getBotmanBotCategoryException", TypeShape.of(GetBotmanBotCategoryExceptionResult.class), args, Utilities.withVersion(options)); } @@ -1183,6 +1358,9 @@ public static CompletableFuture getBotmanBotDetecti public static Output getBotmanBotDetection(GetBotmanBotDetectionArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getBotmanBotDetection:getBotmanBotDetection", TypeShape.of(GetBotmanBotDetectionResult.class), args, Utilities.withVersion(options)); } + public static Output getBotmanBotDetection(GetBotmanBotDetectionArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getBotmanBotDetection:getBotmanBotDetection", TypeShape.of(GetBotmanBotDetectionResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getBotmanBotDetectionPlain(GetBotmanBotDetectionPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getBotmanBotDetection:getBotmanBotDetection", TypeShape.of(GetBotmanBotDetectionResult.class), args, Utilities.withVersion(options)); } @@ -1195,6 +1373,9 @@ public static CompletableFuture getBotmanBotD public static Output getBotmanBotDetectionAction(GetBotmanBotDetectionActionArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getBotmanBotDetectionAction:getBotmanBotDetectionAction", TypeShape.of(GetBotmanBotDetectionActionResult.class), args, Utilities.withVersion(options)); } + public static Output getBotmanBotDetectionAction(GetBotmanBotDetectionActionArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getBotmanBotDetectionAction:getBotmanBotDetectionAction", TypeShape.of(GetBotmanBotDetectionActionResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getBotmanBotDetectionActionPlain(GetBotmanBotDetectionActionPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getBotmanBotDetectionAction:getBotmanBotDetectionAction", TypeShape.of(GetBotmanBotDetectionActionResult.class), args, Utilities.withVersion(options)); } @@ -1213,6 +1394,9 @@ public static CompletableFuture getBot public static Output getBotmanBotEndpointCoverageReport(GetBotmanBotEndpointCoverageReportArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getBotmanBotEndpointCoverageReport:getBotmanBotEndpointCoverageReport", TypeShape.of(GetBotmanBotEndpointCoverageReportResult.class), args, Utilities.withVersion(options)); } + public static Output getBotmanBotEndpointCoverageReport(GetBotmanBotEndpointCoverageReportArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getBotmanBotEndpointCoverageReport:getBotmanBotEndpointCoverageReport", TypeShape.of(GetBotmanBotEndpointCoverageReportResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getBotmanBotEndpointCoverageReportPlain(GetBotmanBotEndpointCoverageReportPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getBotmanBotEndpointCoverageReport:getBotmanBotEndpointCoverageReport", TypeShape.of(GetBotmanBotEndpointCoverageReportResult.class), args, Utilities.withVersion(options)); } @@ -1225,6 +1409,9 @@ public static CompletableFuture getBotmanB public static Output getBotmanBotManagementSettings(GetBotmanBotManagementSettingsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getBotmanBotManagementSettings:getBotmanBotManagementSettings", TypeShape.of(GetBotmanBotManagementSettingsResult.class), args, Utilities.withVersion(options)); } + public static Output getBotmanBotManagementSettings(GetBotmanBotManagementSettingsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getBotmanBotManagementSettings:getBotmanBotManagementSettings", TypeShape.of(GetBotmanBotManagementSettingsResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getBotmanBotManagementSettingsPlain(GetBotmanBotManagementSettingsPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getBotmanBotManagementSettings:getBotmanBotManagementSettings", TypeShape.of(GetBotmanBotManagementSettingsResult.class), args, Utilities.withVersion(options)); } @@ -1237,6 +1424,9 @@ public static CompletableFuture getBotmanChallen public static Output getBotmanChallengeAction(GetBotmanChallengeActionArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getBotmanChallengeAction:getBotmanChallengeAction", TypeShape.of(GetBotmanChallengeActionResult.class), args, Utilities.withVersion(options)); } + public static Output getBotmanChallengeAction(GetBotmanChallengeActionArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getBotmanChallengeAction:getBotmanChallengeAction", TypeShape.of(GetBotmanChallengeActionResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getBotmanChallengeActionPlain(GetBotmanChallengeActionPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getBotmanChallengeAction:getBotmanChallengeAction", TypeShape.of(GetBotmanChallengeActionResult.class), args, Utilities.withVersion(options)); } @@ -1249,6 +1439,9 @@ public static CompletableFuture getBotma public static Output getBotmanChallengeInjectionRules(GetBotmanChallengeInjectionRulesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getBotmanChallengeInjectionRules:getBotmanChallengeInjectionRules", TypeShape.of(GetBotmanChallengeInjectionRulesResult.class), args, Utilities.withVersion(options)); } + public static Output getBotmanChallengeInjectionRules(GetBotmanChallengeInjectionRulesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getBotmanChallengeInjectionRules:getBotmanChallengeInjectionRules", TypeShape.of(GetBotmanChallengeInjectionRulesResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getBotmanChallengeInjectionRulesPlain(GetBotmanChallengeInjectionRulesPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getBotmanChallengeInjectionRules:getBotmanChallengeInjectionRules", TypeShape.of(GetBotmanChallengeInjectionRulesResult.class), args, Utilities.withVersion(options)); } @@ -1261,6 +1454,9 @@ public static CompletableFuture getBo public static Output getBotmanChallengeInterceptionRules(GetBotmanChallengeInterceptionRulesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getBotmanChallengeInterceptionRules:getBotmanChallengeInterceptionRules", TypeShape.of(GetBotmanChallengeInterceptionRulesResult.class), args, Utilities.withVersion(options)); } + public static Output getBotmanChallengeInterceptionRules(GetBotmanChallengeInterceptionRulesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getBotmanChallengeInterceptionRules:getBotmanChallengeInterceptionRules", TypeShape.of(GetBotmanChallengeInterceptionRulesResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getBotmanChallengeInterceptionRulesPlain(GetBotmanChallengeInterceptionRulesPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getBotmanChallengeInterceptionRules:getBotmanChallengeInterceptionRules", TypeShape.of(GetBotmanChallengeInterceptionRulesResult.class), args, Utilities.withVersion(options)); } @@ -1273,6 +1469,9 @@ public static CompletableFuture getBotmanClie public static Output getBotmanClientSideSecurity(GetBotmanClientSideSecurityArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getBotmanClientSideSecurity:getBotmanClientSideSecurity", TypeShape.of(GetBotmanClientSideSecurityResult.class), args, Utilities.withVersion(options)); } + public static Output getBotmanClientSideSecurity(GetBotmanClientSideSecurityArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getBotmanClientSideSecurity:getBotmanClientSideSecurity", TypeShape.of(GetBotmanClientSideSecurityResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getBotmanClientSideSecurityPlain(GetBotmanClientSideSecurityPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getBotmanClientSideSecurity:getBotmanClientSideSecurity", TypeShape.of(GetBotmanClientSideSecurityResult.class), args, Utilities.withVersion(options)); } @@ -1285,6 +1484,9 @@ public static CompletableFuture getBotmanCondi public static Output getBotmanConditionalAction(GetBotmanConditionalActionArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getBotmanConditionalAction:getBotmanConditionalAction", TypeShape.of(GetBotmanConditionalActionResult.class), args, Utilities.withVersion(options)); } + public static Output getBotmanConditionalAction(GetBotmanConditionalActionArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getBotmanConditionalAction:getBotmanConditionalAction", TypeShape.of(GetBotmanConditionalActionResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getBotmanConditionalActionPlain(GetBotmanConditionalActionPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getBotmanConditionalAction:getBotmanConditionalAction", TypeShape.of(GetBotmanConditionalActionResult.class), args, Utilities.withVersion(options)); } @@ -1297,6 +1499,9 @@ public static CompletableFuture getBotmanCusto public static Output getBotmanCustomBotCategory(GetBotmanCustomBotCategoryArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getBotmanCustomBotCategory:getBotmanCustomBotCategory", TypeShape.of(GetBotmanCustomBotCategoryResult.class), args, Utilities.withVersion(options)); } + public static Output getBotmanCustomBotCategory(GetBotmanCustomBotCategoryArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getBotmanCustomBotCategory:getBotmanCustomBotCategory", TypeShape.of(GetBotmanCustomBotCategoryResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getBotmanCustomBotCategoryPlain(GetBotmanCustomBotCategoryPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getBotmanCustomBotCategory:getBotmanCustomBotCategory", TypeShape.of(GetBotmanCustomBotCategoryResult.class), args, Utilities.withVersion(options)); } @@ -1309,6 +1514,9 @@ public static CompletableFuture getBotma public static Output getBotmanCustomBotCategoryAction(GetBotmanCustomBotCategoryActionArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getBotmanCustomBotCategoryAction:getBotmanCustomBotCategoryAction", TypeShape.of(GetBotmanCustomBotCategoryActionResult.class), args, Utilities.withVersion(options)); } + public static Output getBotmanCustomBotCategoryAction(GetBotmanCustomBotCategoryActionArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getBotmanCustomBotCategoryAction:getBotmanCustomBotCategoryAction", TypeShape.of(GetBotmanCustomBotCategoryActionResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getBotmanCustomBotCategoryActionPlain(GetBotmanCustomBotCategoryActionPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getBotmanCustomBotCategoryAction:getBotmanCustomBotCategoryAction", TypeShape.of(GetBotmanCustomBotCategoryActionResult.class), args, Utilities.withVersion(options)); } @@ -1321,6 +1529,9 @@ public static CompletableFuture getBot public static Output getBotmanCustomBotCategorySequence(GetBotmanCustomBotCategorySequenceArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getBotmanCustomBotCategorySequence:getBotmanCustomBotCategorySequence", TypeShape.of(GetBotmanCustomBotCategorySequenceResult.class), args, Utilities.withVersion(options)); } + public static Output getBotmanCustomBotCategorySequence(GetBotmanCustomBotCategorySequenceArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getBotmanCustomBotCategorySequence:getBotmanCustomBotCategorySequence", TypeShape.of(GetBotmanCustomBotCategorySequenceResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getBotmanCustomBotCategorySequencePlain(GetBotmanCustomBotCategorySequencePlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getBotmanCustomBotCategorySequence:getBotmanCustomBotCategorySequence", TypeShape.of(GetBotmanCustomBotCategorySequenceResult.class), args, Utilities.withVersion(options)); } @@ -1333,6 +1544,9 @@ public static CompletableFuture getBotmanCustomClie public static Output getBotmanCustomClient(GetBotmanCustomClientArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getBotmanCustomClient:getBotmanCustomClient", TypeShape.of(GetBotmanCustomClientResult.class), args, Utilities.withVersion(options)); } + public static Output getBotmanCustomClient(GetBotmanCustomClientArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getBotmanCustomClient:getBotmanCustomClient", TypeShape.of(GetBotmanCustomClientResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getBotmanCustomClientPlain(GetBotmanCustomClientPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getBotmanCustomClient:getBotmanCustomClient", TypeShape.of(GetBotmanCustomClientResult.class), args, Utilities.withVersion(options)); } @@ -1345,6 +1559,9 @@ public static CompletableFuture getBotmanCu public static Output getBotmanCustomClientSequence(GetBotmanCustomClientSequenceArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getBotmanCustomClientSequence:getBotmanCustomClientSequence", TypeShape.of(GetBotmanCustomClientSequenceResult.class), args, Utilities.withVersion(options)); } + public static Output getBotmanCustomClientSequence(GetBotmanCustomClientSequenceArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getBotmanCustomClientSequence:getBotmanCustomClientSequence", TypeShape.of(GetBotmanCustomClientSequenceResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getBotmanCustomClientSequencePlain(GetBotmanCustomClientSequencePlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getBotmanCustomClientSequence:getBotmanCustomClientSequence", TypeShape.of(GetBotmanCustomClientSequenceResult.class), args, Utilities.withVersion(options)); } @@ -1357,6 +1574,9 @@ public static CompletableFuture getBotmanCustom public static Output getBotmanCustomDefinedBot(GetBotmanCustomDefinedBotArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getBotmanCustomDefinedBot:getBotmanCustomDefinedBot", TypeShape.of(GetBotmanCustomDefinedBotResult.class), args, Utilities.withVersion(options)); } + public static Output getBotmanCustomDefinedBot(GetBotmanCustomDefinedBotArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getBotmanCustomDefinedBot:getBotmanCustomDefinedBot", TypeShape.of(GetBotmanCustomDefinedBotResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getBotmanCustomDefinedBotPlain(GetBotmanCustomDefinedBotPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getBotmanCustomDefinedBot:getBotmanCustomDefinedBot", TypeShape.of(GetBotmanCustomDefinedBotResult.class), args, Utilities.withVersion(options)); } @@ -1369,6 +1589,9 @@ public static CompletableFuture getBotmanCustom public static Output getBotmanCustomDenyAction(GetBotmanCustomDenyActionArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getBotmanCustomDenyAction:getBotmanCustomDenyAction", TypeShape.of(GetBotmanCustomDenyActionResult.class), args, Utilities.withVersion(options)); } + public static Output getBotmanCustomDenyAction(GetBotmanCustomDenyActionArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getBotmanCustomDenyAction:getBotmanCustomDenyAction", TypeShape.of(GetBotmanCustomDenyActionResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getBotmanCustomDenyActionPlain(GetBotmanCustomDenyActionPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getBotmanCustomDenyAction:getBotmanCustomDenyAction", TypeShape.of(GetBotmanCustomDenyActionResult.class), args, Utilities.withVersion(options)); } @@ -1381,6 +1604,9 @@ public static CompletableFuture getBotmanJav public static Output getBotmanJavascriptInjection(GetBotmanJavascriptInjectionArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getBotmanJavascriptInjection:getBotmanJavascriptInjection", TypeShape.of(GetBotmanJavascriptInjectionResult.class), args, Utilities.withVersion(options)); } + public static Output getBotmanJavascriptInjection(GetBotmanJavascriptInjectionArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getBotmanJavascriptInjection:getBotmanJavascriptInjection", TypeShape.of(GetBotmanJavascriptInjectionResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getBotmanJavascriptInjectionPlain(GetBotmanJavascriptInjectionPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getBotmanJavascriptInjection:getBotmanJavascriptInjection", TypeShape.of(GetBotmanJavascriptInjectionResult.class), args, Utilities.withVersion(options)); } @@ -1393,6 +1619,9 @@ public static CompletableFuture ge public static Output getBotmanRecategorizedAkamaiDefinedBot(GetBotmanRecategorizedAkamaiDefinedBotArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getBotmanRecategorizedAkamaiDefinedBot:getBotmanRecategorizedAkamaiDefinedBot", TypeShape.of(GetBotmanRecategorizedAkamaiDefinedBotResult.class), args, Utilities.withVersion(options)); } + public static Output getBotmanRecategorizedAkamaiDefinedBot(GetBotmanRecategorizedAkamaiDefinedBotArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getBotmanRecategorizedAkamaiDefinedBot:getBotmanRecategorizedAkamaiDefinedBot", TypeShape.of(GetBotmanRecategorizedAkamaiDefinedBotResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getBotmanRecategorizedAkamaiDefinedBotPlain(GetBotmanRecategorizedAkamaiDefinedBotPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getBotmanRecategorizedAkamaiDefinedBot:getBotmanRecategorizedAkamaiDefinedBot", TypeShape.of(GetBotmanRecategorizedAkamaiDefinedBotResult.class), args, Utilities.withVersion(options)); } @@ -1405,6 +1634,9 @@ public static CompletableFuture getBotmanResponse public static Output getBotmanResponseAction(GetBotmanResponseActionArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getBotmanResponseAction:getBotmanResponseAction", TypeShape.of(GetBotmanResponseActionResult.class), args, Utilities.withVersion(options)); } + public static Output getBotmanResponseAction(GetBotmanResponseActionArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getBotmanResponseAction:getBotmanResponseAction", TypeShape.of(GetBotmanResponseActionResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getBotmanResponseActionPlain(GetBotmanResponseActionPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getBotmanResponseAction:getBotmanResponseAction", TypeShape.of(GetBotmanResponseActionResult.class), args, Utilities.withVersion(options)); } @@ -1417,6 +1649,9 @@ public static CompletableFuture getBotmanSe public static Output getBotmanServeAlternateAction(GetBotmanServeAlternateActionArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getBotmanServeAlternateAction:getBotmanServeAlternateAction", TypeShape.of(GetBotmanServeAlternateActionResult.class), args, Utilities.withVersion(options)); } + public static Output getBotmanServeAlternateAction(GetBotmanServeAlternateActionArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getBotmanServeAlternateAction:getBotmanServeAlternateAction", TypeShape.of(GetBotmanServeAlternateActionResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getBotmanServeAlternateActionPlain(GetBotmanServeAlternateActionPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getBotmanServeAlternateAction:getBotmanServeAlternateAction", TypeShape.of(GetBotmanServeAlternateActionResult.class), args, Utilities.withVersion(options)); } @@ -1429,6 +1664,9 @@ public static CompletableFuture getBotmanT public static Output getBotmanTransactionalEndpoint(GetBotmanTransactionalEndpointArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getBotmanTransactionalEndpoint:getBotmanTransactionalEndpoint", TypeShape.of(GetBotmanTransactionalEndpointResult.class), args, Utilities.withVersion(options)); } + public static Output getBotmanTransactionalEndpoint(GetBotmanTransactionalEndpointArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getBotmanTransactionalEndpoint:getBotmanTransactionalEndpoint", TypeShape.of(GetBotmanTransactionalEndpointResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getBotmanTransactionalEndpointPlain(GetBotmanTransactionalEndpointPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getBotmanTransactionalEndpoint:getBotmanTransactionalEndpoint", TypeShape.of(GetBotmanTransactionalEndpointResult.class), args, Utilities.withVersion(options)); } @@ -1441,6 +1679,9 @@ public static CompletableFuture public static Output getBotmanTransactionalEndpointProtection(GetBotmanTransactionalEndpointProtectionArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getBotmanTransactionalEndpointProtection:getBotmanTransactionalEndpointProtection", TypeShape.of(GetBotmanTransactionalEndpointProtectionResult.class), args, Utilities.withVersion(options)); } + public static Output getBotmanTransactionalEndpointProtection(GetBotmanTransactionalEndpointProtectionArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getBotmanTransactionalEndpointProtection:getBotmanTransactionalEndpointProtection", TypeShape.of(GetBotmanTransactionalEndpointProtectionResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getBotmanTransactionalEndpointProtectionPlain(GetBotmanTransactionalEndpointProtectionPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getBotmanTransactionalEndpointProtection:getBotmanTransactionalEndpointProtection", TypeShape.of(GetBotmanTransactionalEndpointProtectionResult.class), args, Utilities.withVersion(options)); } @@ -1453,6 +1694,9 @@ public static CompletableFuture getCPSEnrollmentPlain(Ge public static Output getCPSEnrollment(GetCPSEnrollmentArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getCPSEnrollment:getCPSEnrollment", TypeShape.of(GetCPSEnrollmentResult.class), args, Utilities.withVersion(options)); } + public static Output getCPSEnrollment(GetCPSEnrollmentArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getCPSEnrollment:getCPSEnrollment", TypeShape.of(GetCPSEnrollmentResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getCPSEnrollmentPlain(GetCPSEnrollmentPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getCPSEnrollment:getCPSEnrollment", TypeShape.of(GetCPSEnrollmentResult.class), args, Utilities.withVersion(options)); } @@ -1465,6 +1709,9 @@ public static CompletableFuture getCPSEnrollmentsPlain( public static Output getCPSEnrollments(GetCPSEnrollmentsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getCPSEnrollments:getCPSEnrollments", TypeShape.of(GetCPSEnrollmentsResult.class), args, Utilities.withVersion(options)); } + public static Output getCPSEnrollments(GetCPSEnrollmentsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getCPSEnrollments:getCPSEnrollments", TypeShape.of(GetCPSEnrollmentsResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getCPSEnrollmentsPlain(GetCPSEnrollmentsPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getCPSEnrollments:getCPSEnrollments", TypeShape.of(GetCPSEnrollmentsResult.class), args, Utilities.withVersion(options)); } @@ -1483,6 +1730,9 @@ public static CompletableFuture getClientlistListsPlai public static Output getClientlistLists(GetClientlistListsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getClientlistLists:getClientlistLists", TypeShape.of(GetClientlistListsResult.class), args, Utilities.withVersion(options)); } + public static Output getClientlistLists(GetClientlistListsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getClientlistLists:getClientlistLists", TypeShape.of(GetClientlistListsResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getClientlistListsPlain(GetClientlistListsPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getClientlistLists:getClientlistLists", TypeShape.of(GetClientlistListsResult.class), args, Utilities.withVersion(options)); } @@ -1501,6 +1751,9 @@ public static CompletableFuture ge public static Output getCloudletsApiPrioritizationMatchRule(GetCloudletsApiPrioritizationMatchRuleArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getCloudletsApiPrioritizationMatchRule:getCloudletsApiPrioritizationMatchRule", TypeShape.of(GetCloudletsApiPrioritizationMatchRuleResult.class), args, Utilities.withVersion(options)); } + public static Output getCloudletsApiPrioritizationMatchRule(GetCloudletsApiPrioritizationMatchRuleArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getCloudletsApiPrioritizationMatchRule:getCloudletsApiPrioritizationMatchRule", TypeShape.of(GetCloudletsApiPrioritizationMatchRuleResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getCloudletsApiPrioritizationMatchRulePlain(GetCloudletsApiPrioritizationMatchRulePlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getCloudletsApiPrioritizationMatchRule:getCloudletsApiPrioritizationMatchRule", TypeShape.of(GetCloudletsApiPrioritizationMatchRuleResult.class), args, Utilities.withVersion(options)); } @@ -1513,6 +1766,9 @@ public static CompletableFuture getCl public static Output getCloudletsApplicationLoadBalancer(GetCloudletsApplicationLoadBalancerArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getCloudletsApplicationLoadBalancer:getCloudletsApplicationLoadBalancer", TypeShape.of(GetCloudletsApplicationLoadBalancerResult.class), args, Utilities.withVersion(options)); } + public static Output getCloudletsApplicationLoadBalancer(GetCloudletsApplicationLoadBalancerArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getCloudletsApplicationLoadBalancer:getCloudletsApplicationLoadBalancer", TypeShape.of(GetCloudletsApplicationLoadBalancerResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getCloudletsApplicationLoadBalancerPlain(GetCloudletsApplicationLoadBalancerPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getCloudletsApplicationLoadBalancer:getCloudletsApplicationLoadBalancer", TypeShape.of(GetCloudletsApplicationLoadBalancerResult.class), args, Utilities.withVersion(options)); } @@ -1531,6 +1787,9 @@ public static CompletableFuture getCloudletsApplicationLoadBalancerMatchRule(GetCloudletsApplicationLoadBalancerMatchRuleArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getCloudletsApplicationLoadBalancerMatchRule:getCloudletsApplicationLoadBalancerMatchRule", TypeShape.of(GetCloudletsApplicationLoadBalancerMatchRuleResult.class), args, Utilities.withVersion(options)); } + public static Output getCloudletsApplicationLoadBalancerMatchRule(GetCloudletsApplicationLoadBalancerMatchRuleArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getCloudletsApplicationLoadBalancerMatchRule:getCloudletsApplicationLoadBalancerMatchRule", TypeShape.of(GetCloudletsApplicationLoadBalancerMatchRuleResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getCloudletsApplicationLoadBalancerMatchRulePlain(GetCloudletsApplicationLoadBalancerMatchRulePlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getCloudletsApplicationLoadBalancerMatchRule:getCloudletsApplicationLoadBalancerMatchRule", TypeShape.of(GetCloudletsApplicationLoadBalancerMatchRuleResult.class), args, Utilities.withVersion(options)); } @@ -1549,6 +1808,9 @@ public static CompletableFuture public static Output getCloudletsAudienceSegmentationMatchRule(GetCloudletsAudienceSegmentationMatchRuleArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getCloudletsAudienceSegmentationMatchRule:getCloudletsAudienceSegmentationMatchRule", TypeShape.of(GetCloudletsAudienceSegmentationMatchRuleResult.class), args, Utilities.withVersion(options)); } + public static Output getCloudletsAudienceSegmentationMatchRule(GetCloudletsAudienceSegmentationMatchRuleArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getCloudletsAudienceSegmentationMatchRule:getCloudletsAudienceSegmentationMatchRule", TypeShape.of(GetCloudletsAudienceSegmentationMatchRuleResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getCloudletsAudienceSegmentationMatchRulePlain(GetCloudletsAudienceSegmentationMatchRulePlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getCloudletsAudienceSegmentationMatchRule:getCloudletsAudienceSegmentationMatchRule", TypeShape.of(GetCloudletsAudienceSegmentationMatchRuleResult.class), args, Utilities.withVersion(options)); } @@ -1567,6 +1829,9 @@ public static CompletableFuture getCl public static Output getCloudletsEdgeRedirectorMatchRule(GetCloudletsEdgeRedirectorMatchRuleArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getCloudletsEdgeRedirectorMatchRule:getCloudletsEdgeRedirectorMatchRule", TypeShape.of(GetCloudletsEdgeRedirectorMatchRuleResult.class), args, Utilities.withVersion(options)); } + public static Output getCloudletsEdgeRedirectorMatchRule(GetCloudletsEdgeRedirectorMatchRuleArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getCloudletsEdgeRedirectorMatchRule:getCloudletsEdgeRedirectorMatchRule", TypeShape.of(GetCloudletsEdgeRedirectorMatchRuleResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getCloudletsEdgeRedirectorMatchRulePlain(GetCloudletsEdgeRedirectorMatchRulePlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getCloudletsEdgeRedirectorMatchRule:getCloudletsEdgeRedirectorMatchRule", TypeShape.of(GetCloudletsEdgeRedirectorMatchRuleResult.class), args, Utilities.withVersion(options)); } @@ -1585,6 +1850,9 @@ public static CompletableFuture getCl public static Output getCloudletsForwardRewriteMatchRule(GetCloudletsForwardRewriteMatchRuleArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getCloudletsForwardRewriteMatchRule:getCloudletsForwardRewriteMatchRule", TypeShape.of(GetCloudletsForwardRewriteMatchRuleResult.class), args, Utilities.withVersion(options)); } + public static Output getCloudletsForwardRewriteMatchRule(GetCloudletsForwardRewriteMatchRuleArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getCloudletsForwardRewriteMatchRule:getCloudletsForwardRewriteMatchRule", TypeShape.of(GetCloudletsForwardRewriteMatchRuleResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getCloudletsForwardRewriteMatchRulePlain(GetCloudletsForwardRewriteMatchRulePlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getCloudletsForwardRewriteMatchRule:getCloudletsForwardRewriteMatchRule", TypeShape.of(GetCloudletsForwardRewriteMatchRuleResult.class), args, Utilities.withVersion(options)); } @@ -1603,6 +1871,9 @@ public static CompletableFuture getClo public static Output getCloudletsPhasedReleaseMatchRule(GetCloudletsPhasedReleaseMatchRuleArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getCloudletsPhasedReleaseMatchRule:getCloudletsPhasedReleaseMatchRule", TypeShape.of(GetCloudletsPhasedReleaseMatchRuleResult.class), args, Utilities.withVersion(options)); } + public static Output getCloudletsPhasedReleaseMatchRule(GetCloudletsPhasedReleaseMatchRuleArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getCloudletsPhasedReleaseMatchRule:getCloudletsPhasedReleaseMatchRule", TypeShape.of(GetCloudletsPhasedReleaseMatchRuleResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getCloudletsPhasedReleaseMatchRulePlain(GetCloudletsPhasedReleaseMatchRulePlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getCloudletsPhasedReleaseMatchRule:getCloudletsPhasedReleaseMatchRule", TypeShape.of(GetCloudletsPhasedReleaseMatchRuleResult.class), args, Utilities.withVersion(options)); } @@ -1615,6 +1886,9 @@ public static CompletableFuture getCloudletsPolicyPlai public static Output getCloudletsPolicy(GetCloudletsPolicyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getCloudletsPolicy:getCloudletsPolicy", TypeShape.of(GetCloudletsPolicyResult.class), args, Utilities.withVersion(options)); } + public static Output getCloudletsPolicy(GetCloudletsPolicyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getCloudletsPolicy:getCloudletsPolicy", TypeShape.of(GetCloudletsPolicyResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getCloudletsPolicyPlain(GetCloudletsPolicyPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getCloudletsPolicy:getCloudletsPolicy", TypeShape.of(GetCloudletsPolicyResult.class), args, Utilities.withVersion(options)); } @@ -1633,6 +1907,9 @@ public static CompletableFuture getCl public static Output getCloudletsRequestControlMatchRule(GetCloudletsRequestControlMatchRuleArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getCloudletsRequestControlMatchRule:getCloudletsRequestControlMatchRule", TypeShape.of(GetCloudletsRequestControlMatchRuleResult.class), args, Utilities.withVersion(options)); } + public static Output getCloudletsRequestControlMatchRule(GetCloudletsRequestControlMatchRuleArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getCloudletsRequestControlMatchRule:getCloudletsRequestControlMatchRule", TypeShape.of(GetCloudletsRequestControlMatchRuleResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getCloudletsRequestControlMatchRulePlain(GetCloudletsRequestControlMatchRulePlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getCloudletsRequestControlMatchRule:getCloudletsRequestControlMatchRule", TypeShape.of(GetCloudletsRequestControlMatchRuleResult.class), args, Utilities.withVersion(options)); } @@ -1651,6 +1928,9 @@ public static CompletableFuture getCloudletsVisitorPrioritizationMatchRule(GetCloudletsVisitorPrioritizationMatchRuleArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getCloudletsVisitorPrioritizationMatchRule:getCloudletsVisitorPrioritizationMatchRule", TypeShape.of(GetCloudletsVisitorPrioritizationMatchRuleResult.class), args, Utilities.withVersion(options)); } + public static Output getCloudletsVisitorPrioritizationMatchRule(GetCloudletsVisitorPrioritizationMatchRuleArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getCloudletsVisitorPrioritizationMatchRule:getCloudletsVisitorPrioritizationMatchRule", TypeShape.of(GetCloudletsVisitorPrioritizationMatchRuleResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getCloudletsVisitorPrioritizationMatchRulePlain(GetCloudletsVisitorPrioritizationMatchRulePlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getCloudletsVisitorPrioritizationMatchRule:getCloudletsVisitorPrioritizationMatchRule", TypeShape.of(GetCloudletsVisitorPrioritizationMatchRuleResult.class), args, Utilities.withVersion(options)); } @@ -1669,6 +1949,9 @@ public static CompletableFuture getCloudwrapper public static Output getCloudwrapperCapacities(GetCloudwrapperCapacitiesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getCloudwrapperCapacities:getCloudwrapperCapacities", TypeShape.of(GetCloudwrapperCapacitiesResult.class), args, Utilities.withVersion(options)); } + public static Output getCloudwrapperCapacities(GetCloudwrapperCapacitiesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getCloudwrapperCapacities:getCloudwrapperCapacities", TypeShape.of(GetCloudwrapperCapacitiesResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getCloudwrapperCapacitiesPlain(GetCloudwrapperCapacitiesPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getCloudwrapperCapacities:getCloudwrapperCapacities", TypeShape.of(GetCloudwrapperCapacitiesResult.class), args, Utilities.withVersion(options)); } @@ -1681,6 +1964,9 @@ public static CompletableFuture getCloudwrap public static Output getCloudwrapperConfiguration(GetCloudwrapperConfigurationArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getCloudwrapperConfiguration:getCloudwrapperConfiguration", TypeShape.of(GetCloudwrapperConfigurationResult.class), args, Utilities.withVersion(options)); } + public static Output getCloudwrapperConfiguration(GetCloudwrapperConfigurationArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getCloudwrapperConfiguration:getCloudwrapperConfiguration", TypeShape.of(GetCloudwrapperConfigurationResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getCloudwrapperConfigurationPlain(GetCloudwrapperConfigurationPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getCloudwrapperConfiguration:getCloudwrapperConfiguration", TypeShape.of(GetCloudwrapperConfigurationResult.class), args, Utilities.withVersion(options)); } @@ -1699,6 +1985,9 @@ public static CompletableFuture getCloudwra public static Output getCloudwrapperConfigurations(GetCloudwrapperConfigurationsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getCloudwrapperConfigurations:getCloudwrapperConfigurations", TypeShape.of(GetCloudwrapperConfigurationsResult.class), args, Utilities.withVersion(options)); } + public static Output getCloudwrapperConfigurations(GetCloudwrapperConfigurationsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getCloudwrapperConfigurations:getCloudwrapperConfigurations", TypeShape.of(GetCloudwrapperConfigurationsResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getCloudwrapperConfigurationsPlain(GetCloudwrapperConfigurationsPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getCloudwrapperConfigurations:getCloudwrapperConfigurations", TypeShape.of(GetCloudwrapperConfigurationsResult.class), args, Utilities.withVersion(options)); } @@ -1711,6 +2000,9 @@ public static CompletableFuture getCloudwrapperLo public static Output getCloudwrapperLocation(GetCloudwrapperLocationArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getCloudwrapperLocation:getCloudwrapperLocation", TypeShape.of(GetCloudwrapperLocationResult.class), args, Utilities.withVersion(options)); } + public static Output getCloudwrapperLocation(GetCloudwrapperLocationArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getCloudwrapperLocation:getCloudwrapperLocation", TypeShape.of(GetCloudwrapperLocationResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getCloudwrapperLocationPlain(GetCloudwrapperLocationPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getCloudwrapperLocation:getCloudwrapperLocation", TypeShape.of(GetCloudwrapperLocationResult.class), args, Utilities.withVersion(options)); } @@ -1729,6 +2021,9 @@ public static CompletableFuture getCloudwrapperL public static Output getCloudwrapperLocations(GetCloudwrapperLocationsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getCloudwrapperLocations:getCloudwrapperLocations", TypeShape.of(GetCloudwrapperLocationsResult.class), args, Utilities.withVersion(options)); } + public static Output getCloudwrapperLocations(GetCloudwrapperLocationsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getCloudwrapperLocations:getCloudwrapperLocations", TypeShape.of(GetCloudwrapperLocationsResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getCloudwrapperLocationsPlain(GetCloudwrapperLocationsPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getCloudwrapperLocations:getCloudwrapperLocations", TypeShape.of(GetCloudwrapperLocationsResult.class), args, Utilities.withVersion(options)); } @@ -1747,6 +2042,9 @@ public static CompletableFuture getCloudwrapper public static Output getCloudwrapperProperties(GetCloudwrapperPropertiesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getCloudwrapperProperties:getCloudwrapperProperties", TypeShape.of(GetCloudwrapperPropertiesResult.class), args, Utilities.withVersion(options)); } + public static Output getCloudwrapperProperties(GetCloudwrapperPropertiesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getCloudwrapperProperties:getCloudwrapperProperties", TypeShape.of(GetCloudwrapperPropertiesResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getCloudwrapperPropertiesPlain(GetCloudwrapperPropertiesPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getCloudwrapperProperties:getCloudwrapperProperties", TypeShape.of(GetCloudwrapperPropertiesResult.class), args, Utilities.withVersion(options)); } @@ -1765,6 +2063,9 @@ public static CompletableFuture getContractPlain(GetContractP public static Output getContract(GetContractArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getContract:getContract", TypeShape.of(GetContractResult.class), args, Utilities.withVersion(options)); } + public static Output getContract(GetContractArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getContract:getContract", TypeShape.of(GetContractResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getContractPlain(GetContractPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getContract:getContract", TypeShape.of(GetContractResult.class), args, Utilities.withVersion(options)); } @@ -1783,6 +2084,9 @@ public static CompletableFuture getContractsPlain(InvokeArgs public static Output getContracts(InvokeArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getContracts:getContracts", TypeShape.of(GetContractsResult.class), args, Utilities.withVersion(options)); } + public static Output getContracts(InvokeArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getContracts:getContracts", TypeShape.of(GetContractsResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getContractsPlain(InvokeArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getContracts:getContracts", TypeShape.of(GetContractsResult.class), args, Utilities.withVersion(options)); } @@ -1795,6 +2099,9 @@ public static CompletableFuture getCpCodePlain(GetCpCodePlainAr public static Output getCpCode(GetCpCodeArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getCpCode:getCpCode", TypeShape.of(GetCpCodeResult.class), args, Utilities.withVersion(options)); } + public static Output getCpCode(GetCpCodeArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getCpCode:getCpCode", TypeShape.of(GetCpCodeResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getCpCodePlain(GetCpCodePlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getCpCode:getCpCode", TypeShape.of(GetCpCodeResult.class), args, Utilities.withVersion(options)); } @@ -1807,6 +2114,9 @@ public static CompletableFuture getCpsCsrPlain(GetCpsCsrPlainAr public static Output getCpsCsr(GetCpsCsrArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getCpsCsr:getCpsCsr", TypeShape.of(GetCpsCsrResult.class), args, Utilities.withVersion(options)); } + public static Output getCpsCsr(GetCpsCsrArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getCpsCsr:getCpsCsr", TypeShape.of(GetCpsCsrResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getCpsCsrPlain(GetCpsCsrPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getCpsCsr:getCpsCsr", TypeShape.of(GetCpsCsrResult.class), args, Utilities.withVersion(options)); } @@ -1819,6 +2129,9 @@ public static CompletableFuture getCpsDeploymentsPlain( public static Output getCpsDeployments(GetCpsDeploymentsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getCpsDeployments:getCpsDeployments", TypeShape.of(GetCpsDeploymentsResult.class), args, Utilities.withVersion(options)); } + public static Output getCpsDeployments(GetCpsDeploymentsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getCpsDeployments:getCpsDeployments", TypeShape.of(GetCpsDeploymentsResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getCpsDeploymentsPlain(GetCpsDeploymentsPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getCpsDeployments:getCpsDeployments", TypeShape.of(GetCpsDeploymentsResult.class), args, Utilities.withVersion(options)); } @@ -1837,6 +2150,9 @@ public static CompletableFuture getCpsWarningsPlain(Invoke public static Output getCpsWarnings(InvokeArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getCpsWarnings:getCpsWarnings", TypeShape.of(GetCpsWarningsResult.class), args, Utilities.withVersion(options)); } + public static Output getCpsWarnings(InvokeArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getCpsWarnings:getCpsWarnings", TypeShape.of(GetCpsWarningsResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getCpsWarningsPlain(InvokeArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getCpsWarnings:getCpsWarnings", TypeShape.of(GetCpsWarningsResult.class), args, Utilities.withVersion(options)); } @@ -1849,6 +2165,9 @@ public static CompletableFuture getDatastr public static Output getDatastreamActivationHistory(GetDatastreamActivationHistoryArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getDatastreamActivationHistory:getDatastreamActivationHistory", TypeShape.of(GetDatastreamActivationHistoryResult.class), args, Utilities.withVersion(options)); } + public static Output getDatastreamActivationHistory(GetDatastreamActivationHistoryArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getDatastreamActivationHistory:getDatastreamActivationHistory", TypeShape.of(GetDatastreamActivationHistoryResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getDatastreamActivationHistoryPlain(GetDatastreamActivationHistoryPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getDatastreamActivationHistory:getDatastreamActivationHistory", TypeShape.of(GetDatastreamActivationHistoryResult.class), args, Utilities.withVersion(options)); } @@ -1867,6 +2186,9 @@ public static CompletableFuture getDatastreamD public static Output getDatastreamDatasetFields(GetDatastreamDatasetFieldsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getDatastreamDatasetFields:getDatastreamDatasetFields", TypeShape.of(GetDatastreamDatasetFieldsResult.class), args, Utilities.withVersion(options)); } + public static Output getDatastreamDatasetFields(GetDatastreamDatasetFieldsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getDatastreamDatasetFields:getDatastreamDatasetFields", TypeShape.of(GetDatastreamDatasetFieldsResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getDatastreamDatasetFieldsPlain(GetDatastreamDatasetFieldsPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getDatastreamDatasetFields:getDatastreamDatasetFields", TypeShape.of(GetDatastreamDatasetFieldsResult.class), args, Utilities.withVersion(options)); } @@ -1885,6 +2207,9 @@ public static CompletableFuture getDatastreamsPlain(GetDat public static Output getDatastreams(GetDatastreamsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getDatastreams:getDatastreams", TypeShape.of(GetDatastreamsResult.class), args, Utilities.withVersion(options)); } + public static Output getDatastreams(GetDatastreamsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getDatastreams:getDatastreams", TypeShape.of(GetDatastreamsResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getDatastreamsPlain(GetDatastreamsPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getDatastreams:getDatastreams", TypeShape.of(GetDatastreamsResult.class), args, Utilities.withVersion(options)); } @@ -1897,6 +2222,9 @@ public static CompletableFuture getDnsRecordSetPlain(GetD public static Output getDnsRecordSet(GetDnsRecordSetArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getDnsRecordSet:getDnsRecordSet", TypeShape.of(GetDnsRecordSetResult.class), args, Utilities.withVersion(options)); } + public static Output getDnsRecordSet(GetDnsRecordSetArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getDnsRecordSet:getDnsRecordSet", TypeShape.of(GetDnsRecordSetResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getDnsRecordSetPlain(GetDnsRecordSetPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getDnsRecordSet:getDnsRecordSet", TypeShape.of(GetDnsRecordSetResult.class), args, Utilities.withVersion(options)); } @@ -1909,6 +2237,9 @@ public static CompletableFuture getEdgeWorkerPlain(GetEdgeW public static Output getEdgeWorker(GetEdgeWorkerArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getEdgeWorker:getEdgeWorker", TypeShape.of(GetEdgeWorkerResult.class), args, Utilities.withVersion(options)); } + public static Output getEdgeWorker(GetEdgeWorkerArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getEdgeWorker:getEdgeWorker", TypeShape.of(GetEdgeWorkerResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getEdgeWorkerPlain(GetEdgeWorkerPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getEdgeWorker:getEdgeWorker", TypeShape.of(GetEdgeWorkerResult.class), args, Utilities.withVersion(options)); } @@ -1921,6 +2252,9 @@ public static CompletableFuture getEdgeWorkerActi public static Output getEdgeWorkerActivation(GetEdgeWorkerActivationArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getEdgeWorkerActivation:getEdgeWorkerActivation", TypeShape.of(GetEdgeWorkerActivationResult.class), args, Utilities.withVersion(options)); } + public static Output getEdgeWorkerActivation(GetEdgeWorkerActivationArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getEdgeWorkerActivation:getEdgeWorkerActivation", TypeShape.of(GetEdgeWorkerActivationResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getEdgeWorkerActivationPlain(GetEdgeWorkerActivationPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getEdgeWorkerActivation:getEdgeWorkerActivation", TypeShape.of(GetEdgeWorkerActivationResult.class), args, Utilities.withVersion(options)); } @@ -1933,6 +2267,9 @@ public static CompletableFuture getEdgeWorker public static Output getEdgeWorkersPropertyRules(GetEdgeWorkersPropertyRulesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getEdgeWorkersPropertyRules:getEdgeWorkersPropertyRules", TypeShape.of(GetEdgeWorkersPropertyRulesResult.class), args, Utilities.withVersion(options)); } + public static Output getEdgeWorkersPropertyRules(GetEdgeWorkersPropertyRulesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getEdgeWorkersPropertyRules:getEdgeWorkersPropertyRules", TypeShape.of(GetEdgeWorkersPropertyRulesResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getEdgeWorkersPropertyRulesPlain(GetEdgeWorkersPropertyRulesPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getEdgeWorkersPropertyRules:getEdgeWorkersPropertyRules", TypeShape.of(GetEdgeWorkersPropertyRulesResult.class), args, Utilities.withVersion(options)); } @@ -1945,6 +2282,9 @@ public static CompletableFuture getEdgeWorkers public static Output getEdgeWorkersResourceTier(GetEdgeWorkersResourceTierArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getEdgeWorkersResourceTier:getEdgeWorkersResourceTier", TypeShape.of(GetEdgeWorkersResourceTierResult.class), args, Utilities.withVersion(options)); } + public static Output getEdgeWorkersResourceTier(GetEdgeWorkersResourceTierArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getEdgeWorkersResourceTier:getEdgeWorkersResourceTier", TypeShape.of(GetEdgeWorkersResourceTierResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getEdgeWorkersResourceTierPlain(GetEdgeWorkersResourceTierPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getEdgeWorkersResourceTier:getEdgeWorkersResourceTier", TypeShape.of(GetEdgeWorkersResourceTierResult.class), args, Utilities.withVersion(options)); } @@ -1957,6 +2297,9 @@ public static CompletableFuture getEdgekvGroupItemsPl public static Output getEdgekvGroupItems(GetEdgekvGroupItemsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getEdgekvGroupItems:getEdgekvGroupItems", TypeShape.of(GetEdgekvGroupItemsResult.class), args, Utilities.withVersion(options)); } + public static Output getEdgekvGroupItems(GetEdgekvGroupItemsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getEdgekvGroupItems:getEdgekvGroupItems", TypeShape.of(GetEdgekvGroupItemsResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getEdgekvGroupItemsPlain(GetEdgekvGroupItemsPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getEdgekvGroupItems:getEdgekvGroupItems", TypeShape.of(GetEdgekvGroupItemsResult.class), args, Utilities.withVersion(options)); } @@ -1969,6 +2312,9 @@ public static CompletableFuture getEdgekvGroupsPlain(GetE public static Output getEdgekvGroups(GetEdgekvGroupsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getEdgekvGroups:getEdgekvGroups", TypeShape.of(GetEdgekvGroupsResult.class), args, Utilities.withVersion(options)); } + public static Output getEdgekvGroups(GetEdgekvGroupsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getEdgekvGroups:getEdgekvGroups", TypeShape.of(GetEdgekvGroupsResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getEdgekvGroupsPlain(GetEdgekvGroupsPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getEdgekvGroups:getEdgekvGroups", TypeShape.of(GetEdgekvGroupsResult.class), args, Utilities.withVersion(options)); } @@ -1981,6 +2327,9 @@ public static CompletableFuture getGroupPlain(GetGroupPlainArgs public static Output getGroup(GetGroupArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getGroup:getGroup", TypeShape.of(GetGroupResult.class), args, Utilities.withVersion(options)); } + public static Output getGroup(GetGroupArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getGroup:getGroup", TypeShape.of(GetGroupResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getGroupPlain(GetGroupPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getGroup:getGroup", TypeShape.of(GetGroupResult.class), args, Utilities.withVersion(options)); } @@ -1999,6 +2348,9 @@ public static CompletableFuture getGroupsPlain(InvokeArgs args) public static Output getGroups(InvokeArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getGroups:getGroups", TypeShape.of(GetGroupsResult.class), args, Utilities.withVersion(options)); } + public static Output getGroups(InvokeArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getGroups:getGroups", TypeShape.of(GetGroupsResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getGroupsPlain(InvokeArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getGroups:getGroups", TypeShape.of(GetGroupsResult.class), args, Utilities.withVersion(options)); } @@ -2011,6 +2363,9 @@ public static CompletableFuture getGtmDatacenterPlain(Ge public static Output getGtmDatacenter(GetGtmDatacenterArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getGtmDatacenter:getGtmDatacenter", TypeShape.of(GetGtmDatacenterResult.class), args, Utilities.withVersion(options)); } + public static Output getGtmDatacenter(GetGtmDatacenterArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getGtmDatacenter:getGtmDatacenter", TypeShape.of(GetGtmDatacenterResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getGtmDatacenterPlain(GetGtmDatacenterPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getGtmDatacenter:getGtmDatacenter", TypeShape.of(GetGtmDatacenterResult.class), args, Utilities.withVersion(options)); } @@ -2023,6 +2378,9 @@ public static CompletableFuture getGtmDatacentersPlain( public static Output getGtmDatacenters(GetGtmDatacentersArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getGtmDatacenters:getGtmDatacenters", TypeShape.of(GetGtmDatacentersResult.class), args, Utilities.withVersion(options)); } + public static Output getGtmDatacenters(GetGtmDatacentersArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getGtmDatacenters:getGtmDatacenters", TypeShape.of(GetGtmDatacentersResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getGtmDatacentersPlain(GetGtmDatacentersPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getGtmDatacenters:getGtmDatacenters", TypeShape.of(GetGtmDatacentersResult.class), args, Utilities.withVersion(options)); } @@ -2035,6 +2393,9 @@ public static CompletableFuture getGtmDefaultData public static Output getGtmDefaultDatacenter(GetGtmDefaultDatacenterArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getGtmDefaultDatacenter:getGtmDefaultDatacenter", TypeShape.of(GetGtmDefaultDatacenterResult.class), args, Utilities.withVersion(options)); } + public static Output getGtmDefaultDatacenter(GetGtmDefaultDatacenterArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getGtmDefaultDatacenter:getGtmDefaultDatacenter", TypeShape.of(GetGtmDefaultDatacenterResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getGtmDefaultDatacenterPlain(GetGtmDefaultDatacenterPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getGtmDefaultDatacenter:getGtmDefaultDatacenter", TypeShape.of(GetGtmDefaultDatacenterResult.class), args, Utilities.withVersion(options)); } @@ -2053,6 +2414,9 @@ public static CompletableFuture getIamContactTypesPlai public static Output getIamContactTypes(InvokeArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getIamContactTypes:getIamContactTypes", TypeShape.of(GetIamContactTypesResult.class), args, Utilities.withVersion(options)); } + public static Output getIamContactTypes(InvokeArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getIamContactTypes:getIamContactTypes", TypeShape.of(GetIamContactTypesResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getIamContactTypesPlain(InvokeArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getIamContactTypes:getIamContactTypes", TypeShape.of(GetIamContactTypesResult.class), args, Utilities.withVersion(options)); } @@ -2071,6 +2435,9 @@ public static CompletableFuture getIamCountriesPlain(Invo public static Output getIamCountries(InvokeArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getIamCountries:getIamCountries", TypeShape.of(GetIamCountriesResult.class), args, Utilities.withVersion(options)); } + public static Output getIamCountries(InvokeArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getIamCountries:getIamCountries", TypeShape.of(GetIamCountriesResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getIamCountriesPlain(InvokeArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getIamCountries:getIamCountries", TypeShape.of(GetIamCountriesResult.class), args, Utilities.withVersion(options)); } @@ -2089,6 +2456,9 @@ public static CompletableFuture getIamGrantableRoles public static Output getIamGrantableRoles(InvokeArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getIamGrantableRoles:getIamGrantableRoles", TypeShape.of(GetIamGrantableRolesResult.class), args, Utilities.withVersion(options)); } + public static Output getIamGrantableRoles(InvokeArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getIamGrantableRoles:getIamGrantableRoles", TypeShape.of(GetIamGrantableRolesResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getIamGrantableRolesPlain(InvokeArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getIamGrantableRoles:getIamGrantableRoles", TypeShape.of(GetIamGrantableRolesResult.class), args, Utilities.withVersion(options)); } @@ -2107,6 +2477,9 @@ public static CompletableFuture getIamRolesPlain(InvokeArgs a public static Output getIamRoles(InvokeArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getIamRoles:getIamRoles", TypeShape.of(GetIamRolesResult.class), args, Utilities.withVersion(options)); } + public static Output getIamRoles(InvokeArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getIamRoles:getIamRoles", TypeShape.of(GetIamRolesResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getIamRolesPlain(InvokeArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getIamRoles:getIamRoles", TypeShape.of(GetIamRolesResult.class), args, Utilities.withVersion(options)); } @@ -2119,6 +2492,9 @@ public static CompletableFuture getIamStatesPlain(GetIamStat public static Output getIamStates(GetIamStatesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getIamStates:getIamStates", TypeShape.of(GetIamStatesResult.class), args, Utilities.withVersion(options)); } + public static Output getIamStates(GetIamStatesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getIamStates:getIamStates", TypeShape.of(GetIamStatesResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getIamStatesPlain(GetIamStatesPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getIamStates:getIamStates", TypeShape.of(GetIamStatesResult.class), args, Utilities.withVersion(options)); } @@ -2137,6 +2513,9 @@ public static CompletableFuture getIamSupportedLangs public static Output getIamSupportedLangs(InvokeArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getIamSupportedLangs:getIamSupportedLangs", TypeShape.of(GetIamSupportedLangsResult.class), args, Utilities.withVersion(options)); } + public static Output getIamSupportedLangs(InvokeArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getIamSupportedLangs:getIamSupportedLangs", TypeShape.of(GetIamSupportedLangsResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getIamSupportedLangsPlain(InvokeArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getIamSupportedLangs:getIamSupportedLangs", TypeShape.of(GetIamSupportedLangsResult.class), args, Utilities.withVersion(options)); } @@ -2155,6 +2534,9 @@ public static CompletableFuture getIamTimeoutPolici public static Output getIamTimeoutPolicies(InvokeArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getIamTimeoutPolicies:getIamTimeoutPolicies", TypeShape.of(GetIamTimeoutPoliciesResult.class), args, Utilities.withVersion(options)); } + public static Output getIamTimeoutPolicies(InvokeArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getIamTimeoutPolicies:getIamTimeoutPolicies", TypeShape.of(GetIamTimeoutPoliciesResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getIamTimeoutPoliciesPlain(InvokeArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getIamTimeoutPolicies:getIamTimeoutPolicies", TypeShape.of(GetIamTimeoutPoliciesResult.class), args, Utilities.withVersion(options)); } @@ -2173,6 +2555,9 @@ public static CompletableFuture getIamTimezonesPlain(Invo public static Output getIamTimezones(InvokeArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getIamTimezones:getIamTimezones", TypeShape.of(GetIamTimezonesResult.class), args, Utilities.withVersion(options)); } + public static Output getIamTimezones(InvokeArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getIamTimezones:getIamTimezones", TypeShape.of(GetIamTimezonesResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getIamTimezonesPlain(InvokeArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getIamTimezones:getIamTimezones", TypeShape.of(GetIamTimezonesResult.class), args, Utilities.withVersion(options)); } @@ -2185,6 +2570,9 @@ public static CompletableFuture getImagingPolicyIma public static Output getImagingPolicyImage(GetImagingPolicyImageArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getImagingPolicyImage:getImagingPolicyImage", TypeShape.of(GetImagingPolicyImageResult.class), args, Utilities.withVersion(options)); } + public static Output getImagingPolicyImage(GetImagingPolicyImageArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getImagingPolicyImage:getImagingPolicyImage", TypeShape.of(GetImagingPolicyImageResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getImagingPolicyImagePlain(GetImagingPolicyImagePlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getImagingPolicyImage:getImagingPolicyImage", TypeShape.of(GetImagingPolicyImageResult.class), args, Utilities.withVersion(options)); } @@ -2197,6 +2585,9 @@ public static CompletableFuture getImagingPolicyVid public static Output getImagingPolicyVideo(GetImagingPolicyVideoArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getImagingPolicyVideo:getImagingPolicyVideo", TypeShape.of(GetImagingPolicyVideoResult.class), args, Utilities.withVersion(options)); } + public static Output getImagingPolicyVideo(GetImagingPolicyVideoArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getImagingPolicyVideo:getImagingPolicyVideo", TypeShape.of(GetImagingPolicyVideoResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getImagingPolicyVideoPlain(GetImagingPolicyVideoPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getImagingPolicyVideo:getImagingPolicyVideo", TypeShape.of(GetImagingPolicyVideoResult.class), args, Utilities.withVersion(options)); } @@ -2215,6 +2606,9 @@ public static CompletableFuture getNetworkListsPlain(GetN public static Output getNetworkLists(GetNetworkListsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getNetworkLists:getNetworkLists", TypeShape.of(GetNetworkListsResult.class), args, Utilities.withVersion(options)); } + public static Output getNetworkLists(GetNetworkListsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getNetworkLists:getNetworkLists", TypeShape.of(GetNetworkListsResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getNetworkListsPlain(GetNetworkListsPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getNetworkLists:getNetworkLists", TypeShape.of(GetNetworkListsResult.class), args, Utilities.withVersion(options)); } @@ -2227,6 +2621,9 @@ public static CompletableFuture getPropertiesPlain(GetPrope public static Output getProperties(GetPropertiesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getProperties:getProperties", TypeShape.of(GetPropertiesResult.class), args, Utilities.withVersion(options)); } + public static Output getProperties(GetPropertiesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getProperties:getProperties", TypeShape.of(GetPropertiesResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getPropertiesPlain(GetPropertiesPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getProperties:getProperties", TypeShape.of(GetPropertiesResult.class), args, Utilities.withVersion(options)); } @@ -2239,6 +2636,9 @@ public static CompletableFuture getPropertiesSearchPl public static Output getPropertiesSearch(GetPropertiesSearchArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getPropertiesSearch:getPropertiesSearch", TypeShape.of(GetPropertiesSearchResult.class), args, Utilities.withVersion(options)); } + public static Output getPropertiesSearch(GetPropertiesSearchArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getPropertiesSearch:getPropertiesSearch", TypeShape.of(GetPropertiesSearchResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getPropertiesSearchPlain(GetPropertiesSearchPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getPropertiesSearch:getPropertiesSearch", TypeShape.of(GetPropertiesSearchResult.class), args, Utilities.withVersion(options)); } @@ -2251,6 +2651,9 @@ public static CompletableFuture getPropertyPlain(GetPropertyP public static Output getProperty(GetPropertyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getProperty:getProperty", TypeShape.of(GetPropertyResult.class), args, Utilities.withVersion(options)); } + public static Output getProperty(GetPropertyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getProperty:getProperty", TypeShape.of(GetPropertyResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getPropertyPlain(GetPropertyPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getProperty:getProperty", TypeShape.of(GetPropertyResult.class), args, Utilities.withVersion(options)); } @@ -2263,6 +2666,9 @@ public static CompletableFuture getPropertyActivati public static Output getPropertyActivation(GetPropertyActivationArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getPropertyActivation:getPropertyActivation", TypeShape.of(GetPropertyActivationResult.class), args, Utilities.withVersion(options)); } + public static Output getPropertyActivation(GetPropertyActivationArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getPropertyActivation:getPropertyActivation", TypeShape.of(GetPropertyActivationResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getPropertyActivationPlain(GetPropertyActivationPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getPropertyActivation:getPropertyActivation", TypeShape.of(GetPropertyActivationResult.class), args, Utilities.withVersion(options)); } @@ -2275,6 +2681,9 @@ public static CompletableFuture getPropertyHostnames public static Output getPropertyHostnames(GetPropertyHostnamesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getPropertyHostnames:getPropertyHostnames", TypeShape.of(GetPropertyHostnamesResult.class), args, Utilities.withVersion(options)); } + public static Output getPropertyHostnames(GetPropertyHostnamesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getPropertyHostnames:getPropertyHostnames", TypeShape.of(GetPropertyHostnamesResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getPropertyHostnamesPlain(GetPropertyHostnamesPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getPropertyHostnames:getPropertyHostnames", TypeShape.of(GetPropertyHostnamesResult.class), args, Utilities.withVersion(options)); } @@ -2287,6 +2696,9 @@ public static CompletableFuture getPropertyIncludePlai public static Output getPropertyInclude(GetPropertyIncludeArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getPropertyInclude:getPropertyInclude", TypeShape.of(GetPropertyIncludeResult.class), args, Utilities.withVersion(options)); } + public static Output getPropertyInclude(GetPropertyIncludeArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getPropertyInclude:getPropertyInclude", TypeShape.of(GetPropertyIncludeResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getPropertyIncludePlain(GetPropertyIncludePlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getPropertyInclude:getPropertyInclude", TypeShape.of(GetPropertyIncludeResult.class), args, Utilities.withVersion(options)); } @@ -2299,6 +2711,9 @@ public static CompletableFuture getPropertyI public static Output getPropertyIncludeActivation(GetPropertyIncludeActivationArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getPropertyIncludeActivation:getPropertyIncludeActivation", TypeShape.of(GetPropertyIncludeActivationResult.class), args, Utilities.withVersion(options)); } + public static Output getPropertyIncludeActivation(GetPropertyIncludeActivationArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getPropertyIncludeActivation:getPropertyIncludeActivation", TypeShape.of(GetPropertyIncludeActivationResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getPropertyIncludeActivationPlain(GetPropertyIncludeActivationPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getPropertyIncludeActivation:getPropertyIncludeActivation", TypeShape.of(GetPropertyIncludeActivationResult.class), args, Utilities.withVersion(options)); } @@ -2311,6 +2726,9 @@ public static CompletableFuture getPropertyIncl public static Output getPropertyIncludeParents(GetPropertyIncludeParentsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getPropertyIncludeParents:getPropertyIncludeParents", TypeShape.of(GetPropertyIncludeParentsResult.class), args, Utilities.withVersion(options)); } + public static Output getPropertyIncludeParents(GetPropertyIncludeParentsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getPropertyIncludeParents:getPropertyIncludeParents", TypeShape.of(GetPropertyIncludeParentsResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getPropertyIncludeParentsPlain(GetPropertyIncludeParentsPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getPropertyIncludeParents:getPropertyIncludeParents", TypeShape.of(GetPropertyIncludeParentsResult.class), args, Utilities.withVersion(options)); } @@ -2323,6 +2741,9 @@ public static CompletableFuture getPropertyInclud public static Output getPropertyIncludeRules(GetPropertyIncludeRulesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getPropertyIncludeRules:getPropertyIncludeRules", TypeShape.of(GetPropertyIncludeRulesResult.class), args, Utilities.withVersion(options)); } + public static Output getPropertyIncludeRules(GetPropertyIncludeRulesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getPropertyIncludeRules:getPropertyIncludeRules", TypeShape.of(GetPropertyIncludeRulesResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getPropertyIncludeRulesPlain(GetPropertyIncludeRulesPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getPropertyIncludeRules:getPropertyIncludeRules", TypeShape.of(GetPropertyIncludeRulesResult.class), args, Utilities.withVersion(options)); } @@ -2335,6 +2756,9 @@ public static CompletableFuture getPropertyIncludesPl public static Output getPropertyIncludes(GetPropertyIncludesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getPropertyIncludes:getPropertyIncludes", TypeShape.of(GetPropertyIncludesResult.class), args, Utilities.withVersion(options)); } + public static Output getPropertyIncludes(GetPropertyIncludesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getPropertyIncludes:getPropertyIncludes", TypeShape.of(GetPropertyIncludesResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getPropertyIncludesPlain(GetPropertyIncludesPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getPropertyIncludes:getPropertyIncludes", TypeShape.of(GetPropertyIncludesResult.class), args, Utilities.withVersion(options)); } @@ -2347,6 +2771,9 @@ public static CompletableFuture getPropertyProductsPl public static Output getPropertyProducts(GetPropertyProductsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getPropertyProducts:getPropertyProducts", TypeShape.of(GetPropertyProductsResult.class), args, Utilities.withVersion(options)); } + public static Output getPropertyProducts(GetPropertyProductsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getPropertyProducts:getPropertyProducts", TypeShape.of(GetPropertyProductsResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getPropertyProductsPlain(GetPropertyProductsPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getPropertyProducts:getPropertyProducts", TypeShape.of(GetPropertyProductsResult.class), args, Utilities.withVersion(options)); } @@ -2365,6 +2792,9 @@ public static CompletableFuture getPropertyRuleFor public static Output getPropertyRuleFormats(InvokeArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getPropertyRuleFormats:getPropertyRuleFormats", TypeShape.of(GetPropertyRuleFormatsResult.class), args, Utilities.withVersion(options)); } + public static Output getPropertyRuleFormats(InvokeArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getPropertyRuleFormats:getPropertyRuleFormats", TypeShape.of(GetPropertyRuleFormatsResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getPropertyRuleFormatsPlain(InvokeArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getPropertyRuleFormats:getPropertyRuleFormats", TypeShape.of(GetPropertyRuleFormatsResult.class), args, Utilities.withVersion(options)); } @@ -2377,6 +2807,9 @@ public static CompletableFuture getPropertyRulesPlain(Ge public static Output getPropertyRules(GetPropertyRulesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getPropertyRules:getPropertyRules", TypeShape.of(GetPropertyRulesResult.class), args, Utilities.withVersion(options)); } + public static Output getPropertyRules(GetPropertyRulesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getPropertyRules:getPropertyRules", TypeShape.of(GetPropertyRulesResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getPropertyRulesPlain(GetPropertyRulesPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getPropertyRules:getPropertyRules", TypeShape.of(GetPropertyRulesResult.class), args, Utilities.withVersion(options)); } @@ -2395,6 +2828,9 @@ public static CompletableFuture getPropertyRulesB public static Output getPropertyRulesBuilder(GetPropertyRulesBuilderArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getPropertyRulesBuilder:getPropertyRulesBuilder", TypeShape.of(GetPropertyRulesBuilderResult.class), args, Utilities.withVersion(options)); } + public static Output getPropertyRulesBuilder(GetPropertyRulesBuilderArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getPropertyRulesBuilder:getPropertyRulesBuilder", TypeShape.of(GetPropertyRulesBuilderResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getPropertyRulesBuilderPlain(GetPropertyRulesBuilderPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getPropertyRulesBuilder:getPropertyRulesBuilder", TypeShape.of(GetPropertyRulesBuilderResult.class), args, Utilities.withVersion(options)); } @@ -2413,6 +2849,9 @@ public static CompletableFuture getPropertyRules public static Output getPropertyRulesTemplate(GetPropertyRulesTemplateArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("akamai:index/getPropertyRulesTemplate:getPropertyRulesTemplate", TypeShape.of(GetPropertyRulesTemplateResult.class), args, Utilities.withVersion(options)); } + public static Output getPropertyRulesTemplate(GetPropertyRulesTemplateArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("akamai:index/getPropertyRulesTemplate:getPropertyRulesTemplate", TypeShape.of(GetPropertyRulesTemplateResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getPropertyRulesTemplatePlain(GetPropertyRulesTemplatePlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("akamai:index/getPropertyRulesTemplate:getPropertyRulesTemplate", TypeShape.of(GetPropertyRulesTemplateResult.class), args, Utilities.withVersion(options)); } diff --git a/pkg/codegen/testing/test/testdata/akamai/java/src/main/java/com/pulumi/akamai/Utilities.java b/pkg/codegen/testing/test/testdata/akamai/java/src/main/java/com/pulumi/akamai/Utilities.java index 9b85e8cf23d..fd992a124a0 100644 --- a/pkg/codegen/testing/test/testdata/akamai/java/src/main/java/com/pulumi/akamai/Utilities.java +++ b/pkg/codegen/testing/test/testdata/akamai/java/src/main/java/com/pulumi/akamai/Utilities.java @@ -14,6 +14,7 @@ import javax.annotation.Nullable; import com.pulumi.core.internal.Environment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; public class Utilities { @@ -57,16 +58,28 @@ public static Optional getEnvDouble(java.lang.String... names) 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 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 invokeOutputOptionsWithVersion(@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() { 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 929f894507b..acc22cbf4c6 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 @@ -14,6 +14,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class EdgednsFunctions { @@ -54,6 +55,16 @@ 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.invokeOutputOptionsWithVersion(options)); + } + /** + * + * @deprecated + * akamai.edgedns/getauthoritiesset.getAuthoritiesSet has been deprecated in favor of akamai.index/getauthoritiesset.getAuthoritiesSet + * + */ + @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)); } @@ -94,6 +105,16 @@ 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.invokeOutputOptionsWithVersion(options)); + } + /** + * + * @deprecated + * akamai.edgedns/getdnsrecordset.getDnsRecordSet has been deprecated in favor of akamai.index/getdnsrecordset.getDnsRecordSet + * + */ + @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)); } 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 e7990baee38..2931f71470f 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 @@ -20,6 +20,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class PropertiesFunctions { @@ -60,6 +61,16 @@ 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.invokeOutputOptionsWithVersion(options)); + } + /** + * + * @deprecated + * akamai.properties/getactivation.getActivation has been deprecated in favor of akamai.index/getpropertyactivation.getPropertyActivation + * + */ + @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)); } @@ -100,6 +111,16 @@ 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.invokeOutputOptionsWithVersion(options)); + } + /** + * + * @deprecated + * akamai.properties/getcpcode.getCpCode has been deprecated in favor of akamai.index/getcpcode.getCpCode + * + */ + @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)); } @@ -140,6 +161,16 @@ 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.invokeOutputOptionsWithVersion(options)); + } + /** + * + * @deprecated + * akamai.properties/getproperty.getProperty has been deprecated in favor of akamai.index/getproperty.getProperty + * + */ + @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)); } @@ -180,6 +211,16 @@ 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.invokeOutputOptionsWithVersion(options)); + } + /** + * + * @deprecated + * akamai.properties/getpropertyrules.getPropertyRules has been deprecated in favor of akamai.index/getpropertyrules.getPropertyRules + * + */ + @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)); } 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 da00cd9f48d..df8dacae897 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 @@ -11,6 +11,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class TrafficmanagementFunctions { @@ -51,6 +52,16 @@ 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.invokeOutputOptionsWithVersion(options)); + } + /** + * + * @deprecated + * akamai.trafficmanagement/getgtmdefaultdatacenter.getGtmDefaultDatacenter has been deprecated in favor of akamai.index/getgtmdefaultdatacenter.getGtmDefaultDatacenter + * + */ + @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)); } 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 410e943906e..d3966bb5c97 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 @@ -7,6 +7,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import com.pulumi.example.Utilities; import com.pulumi.example.inputs.GetAssetsArgs; import com.pulumi.example.inputs.GetAssetsPlainArgs; @@ -23,6 +24,9 @@ public static CompletableFuture getAssetsPlain(GetAssetsPlainAr public static Output getAssets(GetAssetsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("example::GetAssets", TypeShape.of(GetAssetsResult.class), args, Utilities.withVersion(options)); } + public static Output getAssets(GetAssetsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("example::GetAssets", TypeShape.of(GetAssetsResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getAssetsPlain(GetAssetsPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("example::GetAssets", TypeShape.of(GetAssetsResult.class), args, Utilities.withVersion(options)); } diff --git a/pkg/codegen/testing/test/testdata/assets-and-archives/java/src/main/java/com/pulumi/example/Utilities.java b/pkg/codegen/testing/test/testdata/assets-and-archives/java/src/main/java/com/pulumi/example/Utilities.java index 346b4a1792d..6a20eabae50 100644 --- a/pkg/codegen/testing/test/testdata/assets-and-archives/java/src/main/java/com/pulumi/example/Utilities.java +++ b/pkg/codegen/testing/test/testdata/assets-and-archives/java/src/main/java/com/pulumi/example/Utilities.java @@ -14,6 +14,7 @@ import javax.annotation.Nullable; import com.pulumi.core.internal.Environment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; public class Utilities { @@ -57,16 +58,28 @@ public static Optional getEnvDouble(java.lang.String... names) 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 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 invokeOutputOptionsWithVersion(@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() { diff --git a/pkg/codegen/testing/test/testdata/azure-native-nested-types/java/src/main/java/com/pulumi/azurenative/Utilities.java b/pkg/codegen/testing/test/testdata/azure-native-nested-types/java/src/main/java/com/pulumi/azurenative/Utilities.java index 5b7d35d0efa..a2bd09911e3 100644 --- a/pkg/codegen/testing/test/testdata/azure-native-nested-types/java/src/main/java/com/pulumi/azurenative/Utilities.java +++ b/pkg/codegen/testing/test/testdata/azure-native-nested-types/java/src/main/java/com/pulumi/azurenative/Utilities.java @@ -14,6 +14,7 @@ import javax.annotation.Nullable; import com.pulumi.core.internal.Environment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; public class Utilities { @@ -57,16 +58,28 @@ public static Optional getEnvDouble(java.lang.String... names) 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 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 invokeOutputOptionsWithVersion(@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() { diff --git a/pkg/codegen/testing/test/testdata/config-variables/java/src/main/java/com/pulumi/example/Utilities.java b/pkg/codegen/testing/test/testdata/config-variables/java/src/main/java/com/pulumi/example/Utilities.java index 346b4a1792d..6a20eabae50 100644 --- a/pkg/codegen/testing/test/testdata/config-variables/java/src/main/java/com/pulumi/example/Utilities.java +++ b/pkg/codegen/testing/test/testdata/config-variables/java/src/main/java/com/pulumi/example/Utilities.java @@ -14,6 +14,7 @@ import javax.annotation.Nullable; import com.pulumi.core.internal.Environment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; public class Utilities { @@ -57,16 +58,28 @@ public static Optional getEnvDouble(java.lang.String... names) 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 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 invokeOutputOptionsWithVersion(@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() { diff --git a/pkg/codegen/testing/test/testdata/cyclic-types/java/src/main/java/com/pulumi/example/Utilities.java b/pkg/codegen/testing/test/testdata/cyclic-types/java/src/main/java/com/pulumi/example/Utilities.java index 346b4a1792d..6a20eabae50 100644 --- a/pkg/codegen/testing/test/testdata/cyclic-types/java/src/main/java/com/pulumi/example/Utilities.java +++ b/pkg/codegen/testing/test/testdata/cyclic-types/java/src/main/java/com/pulumi/example/Utilities.java @@ -14,6 +14,7 @@ import javax.annotation.Nullable; import com.pulumi.core.internal.Environment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; public class Utilities { @@ -57,16 +58,28 @@ public static Optional getEnvDouble(java.lang.String... names) 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 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 invokeOutputOptionsWithVersion(@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() { diff --git a/pkg/codegen/testing/test/testdata/dash-named-schema/java/src/main/java/com/pulumi/foobar/Utilities.java b/pkg/codegen/testing/test/testdata/dash-named-schema/java/src/main/java/com/pulumi/foobar/Utilities.java index bb5c5261816..ecaf3a450c5 100644 --- a/pkg/codegen/testing/test/testdata/dash-named-schema/java/src/main/java/com/pulumi/foobar/Utilities.java +++ b/pkg/codegen/testing/test/testdata/dash-named-schema/java/src/main/java/com/pulumi/foobar/Utilities.java @@ -14,6 +14,7 @@ import javax.annotation.Nullable; import com.pulumi.core.internal.Environment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; public class Utilities { @@ -57,16 +58,28 @@ public static Optional getEnvDouble(java.lang.String... names) 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 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 invokeOutputOptionsWithVersion(@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() { diff --git a/pkg/codegen/testing/test/testdata/dashed-import-schema/java/src/main/java/com/pulumi/plant/Utilities.java b/pkg/codegen/testing/test/testdata/dashed-import-schema/java/src/main/java/com/pulumi/plant/Utilities.java index 7805fa1ffd0..34092fcb41c 100644 --- a/pkg/codegen/testing/test/testdata/dashed-import-schema/java/src/main/java/com/pulumi/plant/Utilities.java +++ b/pkg/codegen/testing/test/testdata/dashed-import-schema/java/src/main/java/com/pulumi/plant/Utilities.java @@ -14,6 +14,7 @@ import javax.annotation.Nullable; import com.pulumi.core.internal.Environment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; public class Utilities { @@ -57,16 +58,28 @@ public static Optional getEnvDouble(java.lang.String... names) 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 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 invokeOutputOptionsWithVersion(@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() { 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 b1b20600bc5..632b4e88966 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 @@ -7,6 +7,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import com.pulumi.mypkg.Utilities; import com.pulumi.mypkg.inputs.FuncWithSecretsArgs; import com.pulumi.mypkg.inputs.FuncWithSecretsPlainArgs; @@ -23,6 +24,9 @@ public static CompletableFuture funcWithSecretsPlain(Func public static Output funcWithSecrets(FuncWithSecretsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("mypkg::funcWithSecrets", TypeShape.of(FuncWithSecretsResult.class), args, Utilities.withVersion(options)); } + public static Output funcWithSecrets(FuncWithSecretsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("mypkg::funcWithSecrets", TypeShape.of(FuncWithSecretsResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture funcWithSecretsPlain(FuncWithSecretsPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("mypkg::funcWithSecrets", TypeShape.of(FuncWithSecretsResult.class), args, Utilities.withVersion(options)); } diff --git a/pkg/codegen/testing/test/testdata/functions-secrets/java/src/main/java/com/pulumi/mypkg/Utilities.java b/pkg/codegen/testing/test/testdata/functions-secrets/java/src/main/java/com/pulumi/mypkg/Utilities.java index 57ec4c09bf6..6ac96370bf8 100644 --- a/pkg/codegen/testing/test/testdata/functions-secrets/java/src/main/java/com/pulumi/mypkg/Utilities.java +++ b/pkg/codegen/testing/test/testdata/functions-secrets/java/src/main/java/com/pulumi/mypkg/Utilities.java @@ -14,6 +14,7 @@ import javax.annotation.Nullable; import com.pulumi.core.internal.Environment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; public class Utilities { @@ -57,16 +58,28 @@ public static Optional getEnvDouble(java.lang.String... names) 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 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 invokeOutputOptionsWithVersion(@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() { diff --git a/pkg/codegen/testing/test/testdata/hyphenated-symbols/java/src/main/java/com/pulumi/repro/Utilities.java b/pkg/codegen/testing/test/testdata/hyphenated-symbols/java/src/main/java/com/pulumi/repro/Utilities.java index ca2d385db07..63d644ad3a1 100644 --- a/pkg/codegen/testing/test/testdata/hyphenated-symbols/java/src/main/java/com/pulumi/repro/Utilities.java +++ b/pkg/codegen/testing/test/testdata/hyphenated-symbols/java/src/main/java/com/pulumi/repro/Utilities.java @@ -14,6 +14,7 @@ import javax.annotation.Nullable; import com.pulumi.core.internal.Environment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; public class Utilities { @@ -57,16 +58,28 @@ public static Optional getEnvDouble(java.lang.String... names) 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 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 invokeOutputOptionsWithVersion(@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() { diff --git a/pkg/codegen/testing/test/testdata/jumbo-resources/java/src/main/java/com/pulumi/jumbo/Utilities.java b/pkg/codegen/testing/test/testdata/jumbo-resources/java/src/main/java/com/pulumi/jumbo/Utilities.java index ffa409ad392..3620a88af87 100644 --- a/pkg/codegen/testing/test/testdata/jumbo-resources/java/src/main/java/com/pulumi/jumbo/Utilities.java +++ b/pkg/codegen/testing/test/testdata/jumbo-resources/java/src/main/java/com/pulumi/jumbo/Utilities.java @@ -14,6 +14,7 @@ import javax.annotation.Nullable; import com.pulumi.core.internal.Environment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; public class Utilities { @@ -57,16 +58,28 @@ public static Optional getEnvDouble(java.lang.String... names) 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 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 invokeOutputOptionsWithVersion(@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() { diff --git a/pkg/codegen/testing/test/testdata/kubernetes20/java/src/main/java/com/pulumi/kubernetes/Utilities.java b/pkg/codegen/testing/test/testdata/kubernetes20/java/src/main/java/com/pulumi/kubernetes/Utilities.java index ff95b0d9cb4..8b6cfcbd856 100644 --- a/pkg/codegen/testing/test/testdata/kubernetes20/java/src/main/java/com/pulumi/kubernetes/Utilities.java +++ b/pkg/codegen/testing/test/testdata/kubernetes20/java/src/main/java/com/pulumi/kubernetes/Utilities.java @@ -14,6 +14,7 @@ import javax.annotation.Nullable; import com.pulumi.core.internal.Environment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; public class Utilities { @@ -57,16 +58,28 @@ public static Optional getEnvDouble(java.lang.String... names) 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 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 invokeOutputOptionsWithVersion(@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() { diff --git a/pkg/codegen/testing/test/testdata/legacy-names/java/src/main/java/com/pulumi/legacy_names/Utilities.java b/pkg/codegen/testing/test/testdata/legacy-names/java/src/main/java/com/pulumi/legacy_names/Utilities.java index 42d0cb30232..c1f2b36f3c3 100644 --- a/pkg/codegen/testing/test/testdata/legacy-names/java/src/main/java/com/pulumi/legacy_names/Utilities.java +++ b/pkg/codegen/testing/test/testdata/legacy-names/java/src/main/java/com/pulumi/legacy_names/Utilities.java @@ -14,6 +14,7 @@ import javax.annotation.Nullable; import com.pulumi.core.internal.Environment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; public class Utilities { @@ -57,16 +58,28 @@ public static Optional getEnvDouble(java.lang.String... names) 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 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 invokeOutputOptionsWithVersion(@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() { diff --git a/pkg/codegen/testing/test/testdata/mini-awsclassic/java/src/main/java/com/pulumi/aws/Utilities.java b/pkg/codegen/testing/test/testdata/mini-awsclassic/java/src/main/java/com/pulumi/aws/Utilities.java index 3fe2019e6b5..06b746b9e29 100644 --- a/pkg/codegen/testing/test/testdata/mini-awsclassic/java/src/main/java/com/pulumi/aws/Utilities.java +++ b/pkg/codegen/testing/test/testdata/mini-awsclassic/java/src/main/java/com/pulumi/aws/Utilities.java @@ -14,6 +14,7 @@ import javax.annotation.Nullable; import com.pulumi.core.internal.Environment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; public class Utilities { @@ -57,16 +58,28 @@ public static Optional getEnvDouble(java.lang.String... names) 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 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 invokeOutputOptionsWithVersion(@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() { 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 9fdcebe978c..07a02a0cec1 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 @@ -11,6 +11,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class Ec2_getAmiFunctions { @@ -23,6 +24,9 @@ public static CompletableFuture getAmiPlain(GetAmiPlainArgs args) public static Output getAmi(GetAmiArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("aws:ec2/getAmi:getAmi", TypeShape.of(GetAmiResult.class), args, Utilities.withVersion(options)); } + public static Output getAmi(GetAmiArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("aws:ec2/getAmi:getAmi", TypeShape.of(GetAmiResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture getAmiPlain(GetAmiPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("aws:ec2/getAmi:getAmi", TypeShape.of(GetAmiResult.class), args, Utilities.withVersion(options)); } diff --git a/pkg/codegen/testing/test/testdata/mini-awsnative/java/src/main/java/com/pulumi/awsnative/Utilities.java b/pkg/codegen/testing/test/testdata/mini-awsnative/java/src/main/java/com/pulumi/awsnative/Utilities.java index afebae6fd7d..81bf2dff18c 100644 --- a/pkg/codegen/testing/test/testdata/mini-awsnative/java/src/main/java/com/pulumi/awsnative/Utilities.java +++ b/pkg/codegen/testing/test/testdata/mini-awsnative/java/src/main/java/com/pulumi/awsnative/Utilities.java @@ -14,6 +14,7 @@ import javax.annotation.Nullable; import com.pulumi.core.internal.Environment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; public class Utilities { @@ -57,16 +58,28 @@ public static Optional getEnvDouble(java.lang.String... names) 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 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 invokeOutputOptionsWithVersion(@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() { diff --git a/pkg/codegen/testing/test/testdata/mini-awsx/java/src/main/java/com/pulumi/awsx/Utilities.java b/pkg/codegen/testing/test/testdata/mini-awsx/java/src/main/java/com/pulumi/awsx/Utilities.java index ff75f2f3e47..ff00b957b9a 100644 --- a/pkg/codegen/testing/test/testdata/mini-awsx/java/src/main/java/com/pulumi/awsx/Utilities.java +++ b/pkg/codegen/testing/test/testdata/mini-awsx/java/src/main/java/com/pulumi/awsx/Utilities.java @@ -14,6 +14,7 @@ import javax.annotation.Nullable; import com.pulumi.core.internal.Environment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; public class Utilities { @@ -57,16 +58,28 @@ public static Optional getEnvDouble(java.lang.String... names) 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 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 invokeOutputOptionsWithVersion(@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() { diff --git a/pkg/codegen/testing/test/testdata/mini-azuread/java/src/main/java/com/pulumi/azuread/Utilities.java b/pkg/codegen/testing/test/testdata/mini-azuread/java/src/main/java/com/pulumi/azuread/Utilities.java index 21e3f8a7771..a2c088e5027 100644 --- a/pkg/codegen/testing/test/testdata/mini-azuread/java/src/main/java/com/pulumi/azuread/Utilities.java +++ b/pkg/codegen/testing/test/testdata/mini-azuread/java/src/main/java/com/pulumi/azuread/Utilities.java @@ -14,6 +14,7 @@ import javax.annotation.Nullable; import com.pulumi.core.internal.Environment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; public class Utilities { @@ -57,16 +58,28 @@ public static Optional getEnvDouble(java.lang.String... names) 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 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 invokeOutputOptionsWithVersion(@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() { diff --git a/pkg/codegen/testing/test/testdata/mini-azurenative/java/src/main/java/com/pulumi/azurenative/Utilities.java b/pkg/codegen/testing/test/testdata/mini-azurenative/java/src/main/java/com/pulumi/azurenative/Utilities.java index 5b7d35d0efa..a2bd09911e3 100644 --- a/pkg/codegen/testing/test/testdata/mini-azurenative/java/src/main/java/com/pulumi/azurenative/Utilities.java +++ b/pkg/codegen/testing/test/testdata/mini-azurenative/java/src/main/java/com/pulumi/azurenative/Utilities.java @@ -14,6 +14,7 @@ import javax.annotation.Nullable; import com.pulumi.core.internal.Environment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; public class Utilities { @@ -57,16 +58,28 @@ public static Optional getEnvDouble(java.lang.String... names) 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 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 invokeOutputOptionsWithVersion(@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() { 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 30d37880af4..faed18db0f4 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 @@ -11,6 +11,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class AlertsmanagementFunctions { @@ -38,6 +39,14 @@ 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)); } + /** + * Action rule object containing target scope, conditions and suppression logic + * API Version: 2019-05-05-preview. + * + */ + public static Output getActionRuleByName(GetActionRuleByNameArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("azure-native:alertsmanagement:getActionRuleByName", TypeShape.of(GetActionRuleByNameResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } /** * Action rule object containing target scope, conditions and suppression logic * API Version: 2019-05-05-preview. 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 9f8a5d3dde8..d5770ab813e 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 @@ -11,6 +11,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class LogicFunctions { @@ -38,6 +39,14 @@ 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)); } + /** + * Collection of key vault keys. + * API Version: 2019-05-01. + * + */ + public static Output listIntegrationAccountKeyVaultKeys(ListIntegrationAccountKeyVaultKeysArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("azure-native:logic:listIntegrationAccountKeyVaultKeys", TypeShape.of(ListIntegrationAccountKeyVaultKeysResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } /** * Collection of key vault keys. * API Version: 2019-05-01. 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 09f23e49aa3..3b8f21c71b7 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 @@ -11,6 +11,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class WebFunctions { @@ -38,6 +39,14 @@ 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)); } + /** + * A web app, a mobile app backend, or an API app. + * API Version: 2020-12-01. + * + */ + public static Output getWebAppSlot(GetWebAppSlotArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("azure-native:web:getWebAppSlot", TypeShape.of(GetWebAppSlotResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } /** * A web app, a mobile app backend, or an API app. * API Version: 2020-12-01. diff --git a/pkg/codegen/testing/test/testdata/mini-kubernetes/java/src/main/java/com/pulumi/kubernetes/Utilities.java b/pkg/codegen/testing/test/testdata/mini-kubernetes/java/src/main/java/com/pulumi/kubernetes/Utilities.java index ff95b0d9cb4..8b6cfcbd856 100644 --- a/pkg/codegen/testing/test/testdata/mini-kubernetes/java/src/main/java/com/pulumi/kubernetes/Utilities.java +++ b/pkg/codegen/testing/test/testdata/mini-kubernetes/java/src/main/java/com/pulumi/kubernetes/Utilities.java @@ -14,6 +14,7 @@ import javax.annotation.Nullable; import com.pulumi.core.internal.Environment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; public class Utilities { @@ -57,16 +58,28 @@ public static Optional getEnvDouble(java.lang.String... names) 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 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 invokeOutputOptionsWithVersion(@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() { diff --git a/pkg/codegen/testing/test/testdata/nested-module-thirdparty/java/src/main/java/com/pulumi/foobar/Utilities.java b/pkg/codegen/testing/test/testdata/nested-module-thirdparty/java/src/main/java/com/pulumi/foobar/Utilities.java index bb5c5261816..ecaf3a450c5 100644 --- a/pkg/codegen/testing/test/testdata/nested-module-thirdparty/java/src/main/java/com/pulumi/foobar/Utilities.java +++ b/pkg/codegen/testing/test/testdata/nested-module-thirdparty/java/src/main/java/com/pulumi/foobar/Utilities.java @@ -14,6 +14,7 @@ import javax.annotation.Nullable; import com.pulumi.core.internal.Environment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; public class Utilities { @@ -57,16 +58,28 @@ public static Optional getEnvDouble(java.lang.String... names) 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 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 invokeOutputOptionsWithVersion(@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() { diff --git a/pkg/codegen/testing/test/testdata/nested-module/java/src/main/java/com/pulumi/foo/Utilities.java b/pkg/codegen/testing/test/testdata/nested-module/java/src/main/java/com/pulumi/foo/Utilities.java index 99362f71792..8e71e5946fd 100644 --- a/pkg/codegen/testing/test/testdata/nested-module/java/src/main/java/com/pulumi/foo/Utilities.java +++ b/pkg/codegen/testing/test/testdata/nested-module/java/src/main/java/com/pulumi/foo/Utilities.java @@ -14,6 +14,7 @@ import javax.annotation.Nullable; import com.pulumi.core.internal.Environment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; public class Utilities { @@ -57,16 +58,28 @@ public static Optional getEnvDouble(java.lang.String... names) 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 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 invokeOutputOptionsWithVersion(@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() { 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 6d038641128..da1c6d21879 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 @@ -7,6 +7,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import com.pulumi.example.Utilities; import com.pulumi.example.inputs.ArgFunctionArgs; import com.pulumi.example.inputs.ArgFunctionPlainArgs; @@ -29,6 +30,9 @@ public static CompletableFuture argFunctionPlain(ArgFunctionP public static Output argFunction(ArgFunctionArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("example::argFunction", TypeShape.of(ArgFunctionResult.class), args, Utilities.withVersion(options)); } + public static Output argFunction(ArgFunctionArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("example::argFunction", TypeShape.of(ArgFunctionResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture argFunctionPlain(ArgFunctionPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("example::argFunction", TypeShape.of(ArgFunctionResult.class), args, Utilities.withVersion(options)); } diff --git a/pkg/codegen/testing/test/testdata/other-owned/java/src/main/java/com/pulumi/example/Utilities.java b/pkg/codegen/testing/test/testdata/other-owned/java/src/main/java/com/pulumi/example/Utilities.java index 346b4a1792d..6a20eabae50 100644 --- a/pkg/codegen/testing/test/testdata/other-owned/java/src/main/java/com/pulumi/example/Utilities.java +++ b/pkg/codegen/testing/test/testdata/other-owned/java/src/main/java/com/pulumi/example/Utilities.java @@ -14,6 +14,7 @@ import javax.annotation.Nullable; import com.pulumi.core.internal.Environment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; public class Utilities { @@ -57,16 +58,28 @@ public static Optional getEnvDouble(java.lang.String... names) 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 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 invokeOutputOptionsWithVersion(@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() { 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 c69ae2d66e6..ed7a6005229 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 @@ -7,6 +7,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import com.pulumi.myedgeorder.Utilities; import com.pulumi.myedgeorder.inputs.ListConfigurationsArgs; import com.pulumi.myedgeorder.inputs.ListConfigurationsPlainArgs; @@ -41,6 +42,14 @@ 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)); } + /** + * The list of configurations. + * API Version: 2020-12-01-preview. + * + */ + public static Output listConfigurations(ListConfigurationsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("myedgeorder::listConfigurations", TypeShape.of(ListConfigurationsResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } /** * The list of configurations. * API Version: 2020-12-01-preview. @@ -73,6 +82,14 @@ 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)); } + /** + * The list of product families. + * API Version: 2020-12-01-preview. + * + */ + public static Output listProductFamilies(ListProductFamiliesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("myedgeorder::listProductFamilies", TypeShape.of(ListProductFamiliesResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } /** * The list of product families. * API Version: 2020-12-01-preview. diff --git a/pkg/codegen/testing/test/testdata/output-funcs-edgeorder/java/src/main/java/com/pulumi/myedgeorder/Utilities.java b/pkg/codegen/testing/test/testdata/output-funcs-edgeorder/java/src/main/java/com/pulumi/myedgeorder/Utilities.java index 68484ffb824..c88f6dc3121 100644 --- a/pkg/codegen/testing/test/testdata/output-funcs-edgeorder/java/src/main/java/com/pulumi/myedgeorder/Utilities.java +++ b/pkg/codegen/testing/test/testdata/output-funcs-edgeorder/java/src/main/java/com/pulumi/myedgeorder/Utilities.java @@ -14,6 +14,7 @@ import javax.annotation.Nullable; import com.pulumi.core.internal.Environment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; public class Utilities { @@ -57,16 +58,28 @@ public static Optional getEnvDouble(java.lang.String... names) 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 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 invokeOutputOptionsWithVersion(@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() { 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 5d1c794501f..8546ad87570 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 @@ -7,6 +7,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import com.pulumi.mypkg.Utilities; import com.pulumi.mypkg.inputs.GetAmiIdsArgs; import com.pulumi.mypkg.inputs.GetAmiIdsPlainArgs; @@ -58,6 +59,17 @@ 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.invokeOutputOptionsWithVersion(options)); + } + /** + * Taken from pulumi-AWS to regress an issue + * + * @deprecated + * aws.getAmiIds has been deprecated in favor of aws.ec2.getAmiIds + * + */ + @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)); } @@ -85,6 +97,14 @@ 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)); } + /** + * The response from the ListKeys operation. + * API Version: 2021-02-01. + * + */ + public static Output listStorageAccountKeys(ListStorageAccountKeysArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("mypkg::listStorageAccountKeys", TypeShape.of(ListStorageAccountKeysResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } /** * The response from the ListKeys operation. * API Version: 2021-02-01. diff --git a/pkg/codegen/testing/test/testdata/output-funcs-tfbridge20/java/src/main/java/com/pulumi/mypkg/Utilities.java b/pkg/codegen/testing/test/testdata/output-funcs-tfbridge20/java/src/main/java/com/pulumi/mypkg/Utilities.java index 57ec4c09bf6..6ac96370bf8 100644 --- a/pkg/codegen/testing/test/testdata/output-funcs-tfbridge20/java/src/main/java/com/pulumi/mypkg/Utilities.java +++ b/pkg/codegen/testing/test/testdata/output-funcs-tfbridge20/java/src/main/java/com/pulumi/mypkg/Utilities.java @@ -14,6 +14,7 @@ import javax.annotation.Nullable; import com.pulumi.core.internal.Environment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; public class Utilities { @@ -57,16 +58,28 @@ public static Optional getEnvDouble(java.lang.String... names) 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 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 invokeOutputOptionsWithVersion(@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() { 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 a1054b620dd..423cb247aea 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 @@ -7,6 +7,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import com.pulumi.mypkg.Utilities; import com.pulumi.mypkg.inputs.FuncWithAllOptionalInputsArgs; import com.pulumi.mypkg.inputs.FuncWithAllOptionalInputsPlainArgs; @@ -74,6 +75,13 @@ 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)); } + /** + * 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.invokeOutputOptionsWithVersion(options)); + } /** * Check codegen of functions with all optional inputs. * @@ -116,6 +124,13 @@ 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)); } + /** + * 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.invokeOutputOptionsWithVersion(options)); + } /** * Codegen demo with const inputs * @@ -144,6 +159,13 @@ 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)); } + /** + * 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.invokeOutputOptionsWithVersion(options)); + } /** * Check codegen of functions with default values. * @@ -186,6 +208,13 @@ 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)); } + /** + * 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.invokeOutputOptionsWithVersion(options)); + } /** * Check codegen of functions with a Dict<str,str> parameter. * @@ -214,6 +243,13 @@ 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)); } + /** + * n/a + * + */ + public static Output funcWithEmptyOutputs(FuncWithEmptyOutputsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("mypkg::funcWithEmptyOutputs", TypeShape.of(Void.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } /** * n/a * @@ -256,6 +292,13 @@ 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)); } + /** + * 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.invokeOutputOptionsWithVersion(options)); + } /** * Check codegen of functions with a List parameter. * @@ -287,6 +330,14 @@ 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)); } + /** + * Response for all the Bastion Shareable Link endpoints. + * API Version: 2020-11-01. + * + */ + public static Output getBastionShareableLink(GetBastionShareableLinkArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("mypkg::getBastionShareableLink", TypeShape.of(GetBastionShareableLinkResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } /** * Response for all the Bastion Shareable Link endpoints. * API Version: 2020-11-01. @@ -330,6 +381,13 @@ 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)); } + /** + * 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.invokeOutputOptionsWithVersion(options)); + } /** * Failing example taken from azure-native. Original doc: Use this function to access the current configuration of the native Azure provider. * @@ -361,6 +419,14 @@ 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)); } + /** + * Another failing example. A list of SSIS object metadata. + * API Version: 2018-06-01. + * + */ + public static Output getIntegrationRuntimeObjectMetadatum(GetIntegrationRuntimeObjectMetadatumArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("mypkg::getIntegrationRuntimeObjectMetadatum", TypeShape.of(GetIntegrationRuntimeObjectMetadatumResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } /** * Another failing example. A list of SSIS object metadata. * API Version: 2018-06-01. @@ -393,6 +459,14 @@ 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)); } + /** + * The response from the ListKeys operation. + * API Version: 2021-02-01. + * + */ + public static Output listStorageAccountKeys(ListStorageAccountKeysArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("mypkg::listStorageAccountKeys", TypeShape.of(ListStorageAccountKeysResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } /** * The response from the ListKeys operation. * API Version: 2021-02-01. diff --git a/pkg/codegen/testing/test/testdata/output-funcs/java/src/main/java/com/pulumi/mypkg/Utilities.java b/pkg/codegen/testing/test/testdata/output-funcs/java/src/main/java/com/pulumi/mypkg/Utilities.java index 57ec4c09bf6..6ac96370bf8 100644 --- a/pkg/codegen/testing/test/testdata/output-funcs/java/src/main/java/com/pulumi/mypkg/Utilities.java +++ b/pkg/codegen/testing/test/testdata/output-funcs/java/src/main/java/com/pulumi/mypkg/Utilities.java @@ -14,6 +14,7 @@ import javax.annotation.Nullable; import com.pulumi.core.internal.Environment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; public class Utilities { @@ -57,16 +58,28 @@ public static Optional getEnvDouble(java.lang.String... names) 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 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 invokeOutputOptionsWithVersion(@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() { 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 e0ce7fed4af..66fb9328cb3 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 @@ -7,6 +7,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import com.pulumi.pkg.Utilities; import com.pulumi.pkg.inputs.DoEchoArgs; import com.pulumi.pkg.inputs.DoEchoPlainArgs; @@ -49,6 +50,13 @@ 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()); } + /** + * 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.invokeOutputOptionsWithVersion(options), Utilities.getPackageRef()); + } /** * A test invoke that echoes its input. * diff --git a/pkg/codegen/testing/test/testdata/parameterized/java/src/main/java/com/pulumi/pkg/Utilities.java b/pkg/codegen/testing/test/testdata/parameterized/java/src/main/java/com/pulumi/pkg/Utilities.java index e89aed75a66..abff1a4658b 100644 --- a/pkg/codegen/testing/test/testdata/parameterized/java/src/main/java/com/pulumi/pkg/Utilities.java +++ b/pkg/codegen/testing/test/testdata/parameterized/java/src/main/java/com/pulumi/pkg/Utilities.java @@ -14,6 +14,7 @@ import javax.annotation.Nullable; import com.pulumi.core.internal.Environment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; import com.pulumi.deployment.Deployment; @@ -61,16 +62,28 @@ public static Optional getEnvDouble(java.lang.String... names) 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 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 invokeOutputOptionsWithVersion(@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() { diff --git a/pkg/codegen/testing/test/testdata/plain-and-default/java/src/main/java/com/pulumi/foobar/Utilities.java b/pkg/codegen/testing/test/testdata/plain-and-default/java/src/main/java/com/pulumi/foobar/Utilities.java index 13f0caecd77..e8a0ea7f2cc 100644 --- a/pkg/codegen/testing/test/testdata/plain-and-default/java/src/main/java/com/pulumi/foobar/Utilities.java +++ b/pkg/codegen/testing/test/testdata/plain-and-default/java/src/main/java/com/pulumi/foobar/Utilities.java @@ -14,6 +14,7 @@ import javax.annotation.Nullable; import com.pulumi.core.internal.Environment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; public class Utilities { @@ -57,16 +58,28 @@ public static Optional getEnvDouble(java.lang.String... names) 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 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 invokeOutputOptionsWithVersion(@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() { diff --git a/pkg/codegen/testing/test/testdata/regress-go-10527/java/src/main/java/com/pulumi/world/Utilities.java b/pkg/codegen/testing/test/testdata/regress-go-10527/java/src/main/java/com/pulumi/world/Utilities.java index 3bbb34bac84..d46fb599d17 100644 --- a/pkg/codegen/testing/test/testdata/regress-go-10527/java/src/main/java/com/pulumi/world/Utilities.java +++ b/pkg/codegen/testing/test/testdata/regress-go-10527/java/src/main/java/com/pulumi/world/Utilities.java @@ -14,6 +14,7 @@ import javax.annotation.Nullable; import com.pulumi.core.internal.Environment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; public class Utilities { @@ -57,16 +58,28 @@ public static Optional getEnvDouble(java.lang.String... names) 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 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 invokeOutputOptionsWithVersion(@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() { diff --git a/pkg/codegen/testing/test/testdata/regress-go-12971/java/src/main/java/com/pulumi/world/Utilities.java b/pkg/codegen/testing/test/testdata/regress-go-12971/java/src/main/java/com/pulumi/world/Utilities.java index 3bbb34bac84..d46fb599d17 100644 --- a/pkg/codegen/testing/test/testdata/regress-go-12971/java/src/main/java/com/pulumi/world/Utilities.java +++ b/pkg/codegen/testing/test/testdata/regress-go-12971/java/src/main/java/com/pulumi/world/Utilities.java @@ -14,6 +14,7 @@ import javax.annotation.Nullable; import com.pulumi.core.internal.Environment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; public class Utilities { @@ -57,16 +58,28 @@ public static Optional getEnvDouble(java.lang.String... names) 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 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 invokeOutputOptionsWithVersion(@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() { diff --git a/pkg/codegen/testing/test/testdata/regress-go-15478/java/src/main/java/com/pulumi/nestedTypes/Utilities.java b/pkg/codegen/testing/test/testdata/regress-go-15478/java/src/main/java/com/pulumi/nestedTypes/Utilities.java index 16a75d91843..641de720bbf 100644 --- a/pkg/codegen/testing/test/testdata/regress-go-15478/java/src/main/java/com/pulumi/nestedTypes/Utilities.java +++ b/pkg/codegen/testing/test/testdata/regress-go-15478/java/src/main/java/com/pulumi/nestedTypes/Utilities.java @@ -14,6 +14,7 @@ import javax.annotation.Nullable; import com.pulumi.core.internal.Environment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; public class Utilities { @@ -57,16 +58,28 @@ public static Optional getEnvDouble(java.lang.String... names) 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 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 invokeOutputOptionsWithVersion(@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() { diff --git a/pkg/codegen/testing/test/testdata/regress-py-12980/java/src/main/java/com/pulumi/myPkg/Utilities.java b/pkg/codegen/testing/test/testdata/regress-py-12980/java/src/main/java/com/pulumi/myPkg/Utilities.java index f385af242b3..4082131f24c 100644 --- a/pkg/codegen/testing/test/testdata/regress-py-12980/java/src/main/java/com/pulumi/myPkg/Utilities.java +++ b/pkg/codegen/testing/test/testdata/regress-py-12980/java/src/main/java/com/pulumi/myPkg/Utilities.java @@ -14,6 +14,7 @@ import javax.annotation.Nullable; import com.pulumi.core.internal.Environment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; public class Utilities { @@ -57,16 +58,28 @@ public static Optional getEnvDouble(java.lang.String... names) 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 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 invokeOutputOptionsWithVersion(@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() { diff --git a/pkg/codegen/testing/test/testdata/regress-py-tfbridge-611/java/src/main/java/com/pulumi/aws/Utilities.java b/pkg/codegen/testing/test/testdata/regress-py-tfbridge-611/java/src/main/java/com/pulumi/aws/Utilities.java index 3fe2019e6b5..06b746b9e29 100644 --- a/pkg/codegen/testing/test/testdata/regress-py-tfbridge-611/java/src/main/java/com/pulumi/aws/Utilities.java +++ b/pkg/codegen/testing/test/testdata/regress-py-tfbridge-611/java/src/main/java/com/pulumi/aws/Utilities.java @@ -14,6 +14,7 @@ import javax.annotation.Nullable; import com.pulumi.core.internal.Environment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; public class Utilities { @@ -57,16 +58,28 @@ public static Optional getEnvDouble(java.lang.String... names) 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 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 invokeOutputOptionsWithVersion(@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() { 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 871b2c0d5de..91f36458d86 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 @@ -11,6 +11,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class X_iamFunctions { @@ -29,6 +30,9 @@ public static CompletableFuture getPolicyDocumentPlain( 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)); } + public static Output getPolicyDocument(GetPolicyDocumentArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("aws:x/iam/getPolicyDocument:getPolicyDocument", TypeShape.of(GetPolicyDocumentResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } 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)); } diff --git a/pkg/codegen/testing/test/testdata/replace-on-change/java/src/main/java/com/pulumi/example/Utilities.java b/pkg/codegen/testing/test/testdata/replace-on-change/java/src/main/java/com/pulumi/example/Utilities.java index 346b4a1792d..6a20eabae50 100644 --- a/pkg/codegen/testing/test/testdata/replace-on-change/java/src/main/java/com/pulumi/example/Utilities.java +++ b/pkg/codegen/testing/test/testdata/replace-on-change/java/src/main/java/com/pulumi/example/Utilities.java @@ -14,6 +14,7 @@ import javax.annotation.Nullable; import com.pulumi.core.internal.Environment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; public class Utilities { @@ -57,16 +58,28 @@ public static Optional getEnvDouble(java.lang.String... names) 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 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 invokeOutputOptionsWithVersion(@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() { diff --git a/pkg/codegen/testing/test/testdata/resource-args-python-case-insensitive/java/src/main/java/com/pulumi/example/Utilities.java b/pkg/codegen/testing/test/testdata/resource-args-python-case-insensitive/java/src/main/java/com/pulumi/example/Utilities.java index 346b4a1792d..6a20eabae50 100644 --- a/pkg/codegen/testing/test/testdata/resource-args-python-case-insensitive/java/src/main/java/com/pulumi/example/Utilities.java +++ b/pkg/codegen/testing/test/testdata/resource-args-python-case-insensitive/java/src/main/java/com/pulumi/example/Utilities.java @@ -14,6 +14,7 @@ import javax.annotation.Nullable; import com.pulumi.core.internal.Environment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; public class Utilities { @@ -57,16 +58,28 @@ public static Optional getEnvDouble(java.lang.String... names) 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 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 invokeOutputOptionsWithVersion(@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() { diff --git a/pkg/codegen/testing/test/testdata/resource-args-python/java/src/main/java/com/pulumi/example/Utilities.java b/pkg/codegen/testing/test/testdata/resource-args-python/java/src/main/java/com/pulumi/example/Utilities.java index 346b4a1792d..6a20eabae50 100644 --- a/pkg/codegen/testing/test/testdata/resource-args-python/java/src/main/java/com/pulumi/example/Utilities.java +++ b/pkg/codegen/testing/test/testdata/resource-args-python/java/src/main/java/com/pulumi/example/Utilities.java @@ -14,6 +14,7 @@ import javax.annotation.Nullable; import com.pulumi.core.internal.Environment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; public class Utilities { @@ -57,16 +58,28 @@ public static Optional getEnvDouble(java.lang.String... names) 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 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 invokeOutputOptionsWithVersion(@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() { diff --git a/pkg/codegen/testing/test/testdata/resource-property-overlap/java/src/main/java/com/pulumi/example/Utilities.java b/pkg/codegen/testing/test/testdata/resource-property-overlap/java/src/main/java/com/pulumi/example/Utilities.java index 346b4a1792d..6a20eabae50 100644 --- a/pkg/codegen/testing/test/testdata/resource-property-overlap/java/src/main/java/com/pulumi/example/Utilities.java +++ b/pkg/codegen/testing/test/testdata/resource-property-overlap/java/src/main/java/com/pulumi/example/Utilities.java @@ -14,6 +14,7 @@ import javax.annotation.Nullable; import com.pulumi.core.internal.Environment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; public class Utilities { @@ -57,16 +58,28 @@ public static Optional getEnvDouble(java.lang.String... names) 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 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 invokeOutputOptionsWithVersion(@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() { diff --git a/pkg/codegen/testing/test/testdata/secrets/java/src/main/java/com/pulumi/mypkg/Utilities.java b/pkg/codegen/testing/test/testdata/secrets/java/src/main/java/com/pulumi/mypkg/Utilities.java index 57ec4c09bf6..6ac96370bf8 100644 --- a/pkg/codegen/testing/test/testdata/secrets/java/src/main/java/com/pulumi/mypkg/Utilities.java +++ b/pkg/codegen/testing/test/testdata/secrets/java/src/main/java/com/pulumi/mypkg/Utilities.java @@ -14,6 +14,7 @@ import javax.annotation.Nullable; import com.pulumi.core.internal.Environment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; public class Utilities { @@ -57,16 +58,28 @@ public static Optional getEnvDouble(java.lang.String... names) 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 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 invokeOutputOptionsWithVersion(@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() { diff --git a/pkg/codegen/testing/test/testdata/simple-enum-schema/java/src/main/java/com/pulumi/plant/Utilities.java b/pkg/codegen/testing/test/testdata/simple-enum-schema/java/src/main/java/com/pulumi/plant/Utilities.java index 7805fa1ffd0..34092fcb41c 100644 --- a/pkg/codegen/testing/test/testdata/simple-enum-schema/java/src/main/java/com/pulumi/plant/Utilities.java +++ b/pkg/codegen/testing/test/testdata/simple-enum-schema/java/src/main/java/com/pulumi/plant/Utilities.java @@ -14,6 +14,7 @@ import javax.annotation.Nullable; import com.pulumi.core.internal.Environment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; public class Utilities { @@ -57,16 +58,28 @@ public static Optional getEnvDouble(java.lang.String... names) 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 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 invokeOutputOptionsWithVersion(@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() { diff --git a/pkg/codegen/testing/test/testdata/simple-plain-schema-with-root-package/java/src/main/java/com/pulumi/example/Utilities.java b/pkg/codegen/testing/test/testdata/simple-plain-schema-with-root-package/java/src/main/java/com/pulumi/example/Utilities.java index 346b4a1792d..6a20eabae50 100644 --- a/pkg/codegen/testing/test/testdata/simple-plain-schema-with-root-package/java/src/main/java/com/pulumi/example/Utilities.java +++ b/pkg/codegen/testing/test/testdata/simple-plain-schema-with-root-package/java/src/main/java/com/pulumi/example/Utilities.java @@ -14,6 +14,7 @@ import javax.annotation.Nullable; import com.pulumi.core.internal.Environment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; public class Utilities { @@ -57,16 +58,28 @@ public static Optional getEnvDouble(java.lang.String... names) 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 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 invokeOutputOptionsWithVersion(@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() { 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 1db49d28476..10dac90b2fb 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 @@ -7,6 +7,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import com.pulumi.example.Utilities; import com.pulumi.example.inputs.DoFooArgs; import com.pulumi.example.inputs.DoFooPlainArgs; @@ -23,6 +24,9 @@ public static CompletableFuture doFooPlain(DoFooPlainArgs args) { public static Output doFoo(DoFooArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("example::doFoo", TypeShape.of(Void.class), args, Utilities.withVersion(options)); } + public static Output doFoo(DoFooArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("example::doFoo", TypeShape.of(Void.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture doFooPlain(DoFooPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("example::doFoo", TypeShape.of(Void.class), args, Utilities.withVersion(options)); } diff --git a/pkg/codegen/testing/test/testdata/simple-plain-schema/java/src/main/java/com/pulumi/example/Utilities.java b/pkg/codegen/testing/test/testdata/simple-plain-schema/java/src/main/java/com/pulumi/example/Utilities.java index 346b4a1792d..6a20eabae50 100644 --- a/pkg/codegen/testing/test/testdata/simple-plain-schema/java/src/main/java/com/pulumi/example/Utilities.java +++ b/pkg/codegen/testing/test/testdata/simple-plain-schema/java/src/main/java/com/pulumi/example/Utilities.java @@ -14,6 +14,7 @@ import javax.annotation.Nullable; import com.pulumi.core.internal.Environment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; public class Utilities { @@ -57,16 +58,28 @@ public static Optional getEnvDouble(java.lang.String... names) 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 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 invokeOutputOptionsWithVersion(@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() { 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 6d038641128..da1c6d21879 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 @@ -7,6 +7,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import com.pulumi.example.Utilities; import com.pulumi.example.inputs.ArgFunctionArgs; import com.pulumi.example.inputs.ArgFunctionPlainArgs; @@ -29,6 +30,9 @@ public static CompletableFuture argFunctionPlain(ArgFunctionP public static Output argFunction(ArgFunctionArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("example::argFunction", TypeShape.of(ArgFunctionResult.class), args, Utilities.withVersion(options)); } + public static Output argFunction(ArgFunctionArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("example::argFunction", TypeShape.of(ArgFunctionResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture argFunctionPlain(ArgFunctionPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("example::argFunction", TypeShape.of(ArgFunctionResult.class), args, Utilities.withVersion(options)); } diff --git a/pkg/codegen/testing/test/testdata/simple-resource-schema-custom-pypackage-name/java/src/main/java/com/pulumi/example/Utilities.java b/pkg/codegen/testing/test/testdata/simple-resource-schema-custom-pypackage-name/java/src/main/java/com/pulumi/example/Utilities.java index 346b4a1792d..6a20eabae50 100644 --- a/pkg/codegen/testing/test/testdata/simple-resource-schema-custom-pypackage-name/java/src/main/java/com/pulumi/example/Utilities.java +++ b/pkg/codegen/testing/test/testdata/simple-resource-schema-custom-pypackage-name/java/src/main/java/com/pulumi/example/Utilities.java @@ -14,6 +14,7 @@ import javax.annotation.Nullable; import com.pulumi.core.internal.Environment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; public class Utilities { @@ -57,16 +58,28 @@ public static Optional getEnvDouble(java.lang.String... names) 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 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 invokeOutputOptionsWithVersion(@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() { 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 6d038641128..da1c6d21879 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 @@ -7,6 +7,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import com.pulumi.example.Utilities; import com.pulumi.example.inputs.ArgFunctionArgs; import com.pulumi.example.inputs.ArgFunctionPlainArgs; @@ -29,6 +30,9 @@ public static CompletableFuture argFunctionPlain(ArgFunctionP public static Output argFunction(ArgFunctionArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("example::argFunction", TypeShape.of(ArgFunctionResult.class), args, Utilities.withVersion(options)); } + public static Output argFunction(ArgFunctionArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("example::argFunction", TypeShape.of(ArgFunctionResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture argFunctionPlain(ArgFunctionPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("example::argFunction", TypeShape.of(ArgFunctionResult.class), args, Utilities.withVersion(options)); } diff --git a/pkg/codegen/testing/test/testdata/simple-resource-schema/java/src/main/java/com/pulumi/example/Utilities.java b/pkg/codegen/testing/test/testdata/simple-resource-schema/java/src/main/java/com/pulumi/example/Utilities.java index 346b4a1792d..6a20eabae50 100644 --- a/pkg/codegen/testing/test/testdata/simple-resource-schema/java/src/main/java/com/pulumi/example/Utilities.java +++ b/pkg/codegen/testing/test/testdata/simple-resource-schema/java/src/main/java/com/pulumi/example/Utilities.java @@ -14,6 +14,7 @@ import javax.annotation.Nullable; import com.pulumi.core.internal.Environment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; public class Utilities { @@ -57,16 +58,28 @@ public static Optional getEnvDouble(java.lang.String... names) 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 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 invokeOutputOptionsWithVersion(@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() { diff --git a/pkg/codegen/testing/test/testdata/simple-resource-with-aliases/java/src/main/java/com/pulumi/example/Utilities.java b/pkg/codegen/testing/test/testdata/simple-resource-with-aliases/java/src/main/java/com/pulumi/example/Utilities.java index 346b4a1792d..6a20eabae50 100644 --- a/pkg/codegen/testing/test/testdata/simple-resource-with-aliases/java/src/main/java/com/pulumi/example/Utilities.java +++ b/pkg/codegen/testing/test/testdata/simple-resource-with-aliases/java/src/main/java/com/pulumi/example/Utilities.java @@ -14,6 +14,7 @@ import javax.annotation.Nullable; import com.pulumi.core.internal.Environment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; public class Utilities { @@ -57,16 +58,28 @@ public static Optional getEnvDouble(java.lang.String... names) 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 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 invokeOutputOptionsWithVersion(@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() { diff --git a/pkg/codegen/testing/test/testdata/simple-schema-pyproject/java/src/main/java/com/pulumi/example/Utilities.java b/pkg/codegen/testing/test/testdata/simple-schema-pyproject/java/src/main/java/com/pulumi/example/Utilities.java index 346b4a1792d..6a20eabae50 100644 --- a/pkg/codegen/testing/test/testdata/simple-schema-pyproject/java/src/main/java/com/pulumi/example/Utilities.java +++ b/pkg/codegen/testing/test/testdata/simple-schema-pyproject/java/src/main/java/com/pulumi/example/Utilities.java @@ -14,6 +14,7 @@ import javax.annotation.Nullable; import com.pulumi.core.internal.Environment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; public class Utilities { @@ -57,16 +58,28 @@ public static Optional getEnvDouble(java.lang.String... names) 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 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 invokeOutputOptionsWithVersion(@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() { 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 6d038641128..da1c6d21879 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 @@ -7,6 +7,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import com.pulumi.example.Utilities; import com.pulumi.example.inputs.ArgFunctionArgs; import com.pulumi.example.inputs.ArgFunctionPlainArgs; @@ -29,6 +30,9 @@ public static CompletableFuture argFunctionPlain(ArgFunctionP public static Output argFunction(ArgFunctionArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("example::argFunction", TypeShape.of(ArgFunctionResult.class), args, Utilities.withVersion(options)); } + public static Output argFunction(ArgFunctionArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("example::argFunction", TypeShape.of(ArgFunctionResult.class), args, Utilities.invokeOutputOptionsWithVersion(options)); + } public static CompletableFuture argFunctionPlain(ArgFunctionPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("example::argFunction", TypeShape.of(ArgFunctionResult.class), args, Utilities.withVersion(options)); } diff --git a/pkg/codegen/testing/test/testdata/simple-yaml-schema/java/src/main/java/com/pulumi/example/Utilities.java b/pkg/codegen/testing/test/testdata/simple-yaml-schema/java/src/main/java/com/pulumi/example/Utilities.java index 346b4a1792d..6a20eabae50 100644 --- a/pkg/codegen/testing/test/testdata/simple-yaml-schema/java/src/main/java/com/pulumi/example/Utilities.java +++ b/pkg/codegen/testing/test/testdata/simple-yaml-schema/java/src/main/java/com/pulumi/example/Utilities.java @@ -14,6 +14,7 @@ import javax.annotation.Nullable; import com.pulumi.core.internal.Environment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; public class Utilities { @@ -57,16 +58,28 @@ public static Optional getEnvDouble(java.lang.String... names) 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 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 invokeOutputOptionsWithVersion(@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() { diff --git a/pkg/codegen/testing/test/testdata/unions-inline/java/src/main/java/com/pulumi/example/Utilities.java b/pkg/codegen/testing/test/testdata/unions-inline/java/src/main/java/com/pulumi/example/Utilities.java index 346b4a1792d..6a20eabae50 100644 --- a/pkg/codegen/testing/test/testdata/unions-inline/java/src/main/java/com/pulumi/example/Utilities.java +++ b/pkg/codegen/testing/test/testdata/unions-inline/java/src/main/java/com/pulumi/example/Utilities.java @@ -14,6 +14,7 @@ import javax.annotation.Nullable; import com.pulumi.core.internal.Environment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; public class Utilities { @@ -57,16 +58,28 @@ public static Optional getEnvDouble(java.lang.String... names) 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 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 invokeOutputOptionsWithVersion(@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() { diff --git a/pkg/codegen/testing/test/testdata/unions-inside-arrays/java/src/main/java/com/pulumi/example/Utilities.java b/pkg/codegen/testing/test/testdata/unions-inside-arrays/java/src/main/java/com/pulumi/example/Utilities.java index 346b4a1792d..6a20eabae50 100644 --- a/pkg/codegen/testing/test/testdata/unions-inside-arrays/java/src/main/java/com/pulumi/example/Utilities.java +++ b/pkg/codegen/testing/test/testdata/unions-inside-arrays/java/src/main/java/com/pulumi/example/Utilities.java @@ -14,6 +14,7 @@ import javax.annotation.Nullable; import com.pulumi.core.internal.Environment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; public class Utilities { @@ -57,16 +58,28 @@ public static Optional getEnvDouble(java.lang.String... names) 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 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 invokeOutputOptionsWithVersion(@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() { 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 86f65c28be4..38a615957fa 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 @@ -7,6 +7,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import com.pulumi.urnid.Utilities; import com.pulumi.urnid.inputs.TestArgs; import com.pulumi.urnid.inputs.TestPlainArgs; @@ -35,6 +36,13 @@ 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)); } + /** + * 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.invokeOutputOptionsWithVersion(options)); + } /** * It's fine for invokes to use urn and id * diff --git a/pkg/codegen/testing/test/testdata/urn-id-properties/java/src/main/java/com/pulumi/urnid/Utilities.java b/pkg/codegen/testing/test/testdata/urn-id-properties/java/src/main/java/com/pulumi/urnid/Utilities.java index 3333b20dac6..a1754657965 100644 --- a/pkg/codegen/testing/test/testdata/urn-id-properties/java/src/main/java/com/pulumi/urnid/Utilities.java +++ b/pkg/codegen/testing/test/testdata/urn-id-properties/java/src/main/java/com/pulumi/urnid/Utilities.java @@ -14,6 +14,7 @@ import javax.annotation.Nullable; import com.pulumi.core.internal.Environment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; public class Utilities { @@ -57,16 +58,28 @@ public static Optional getEnvDouble(java.lang.String... names) 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 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 invokeOutputOptionsWithVersion(@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() { diff --git a/pkg/codegen/testing/test/testdata/using-shared-types-in-config/java/src/main/java/com/pulumi/credentials/Utilities.java b/pkg/codegen/testing/test/testdata/using-shared-types-in-config/java/src/main/java/com/pulumi/credentials/Utilities.java index dd1836a5cc3..c906d34cb38 100644 --- a/pkg/codegen/testing/test/testdata/using-shared-types-in-config/java/src/main/java/com/pulumi/credentials/Utilities.java +++ b/pkg/codegen/testing/test/testdata/using-shared-types-in-config/java/src/main/java/com/pulumi/credentials/Utilities.java @@ -14,6 +14,7 @@ import javax.annotation.Nullable; import com.pulumi.core.internal.Environment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; public class Utilities { @@ -57,16 +58,28 @@ public static Optional getEnvDouble(java.lang.String... names) 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 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 invokeOutputOptionsWithVersion(@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() { From 59658ac9bc44ddfe8503905409c35aeff629c57d Mon Sep 17 00:00:00 2001 From: Julien Poissonnier Date: Mon, 25 Nov 2024 12:00:15 +0100 Subject: [PATCH 06/12] add javadoc --- .../main/java/com/pulumi/deployment/Deployment.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/sdk/java/pulumi/src/main/java/com/pulumi/deployment/Deployment.java b/sdk/java/pulumi/src/main/java/com/pulumi/deployment/Deployment.java index 75020bd1e69..901fb20d246 100644 --- a/sdk/java/pulumi/src/main/java/com/pulumi/deployment/Deployment.java +++ b/sdk/java/pulumi/src/main/java/com/pulumi/deployment/Deployment.java @@ -69,7 +69,18 @@ static DeploymentInstance getInstance() { */ Output invoke(String token, TypeShape targetType, InvokeArgs args, @Nullable InvokeOptions options, CompletableFuture packageRef); + /** + * Same as @see {@link #invoke(String, TypeShape, InvokeArgs, InvokeOptions, CompletableFuture)} but takes + * {@link InvokeOutputOptions} as options, which allows setting {@link InvokeOutputOptions#dependsOn} to specify + * additional resource dependencies besides the ones that are automatically detected from the {@link InvokeArgs}. + */ Output invoke(String token, TypeShape targetType, InvokeArgs args, @Nullable InvokeOutputOptions options); + + /** + * Same as @see {@link #invoke(String, TypeShape, InvokeArgs, InvokeOptions, CompletableFuture)} but takes + * {@link InvokeOutputOptions} as options, which allows setting {@link InvokeOutputOptions#dependsOn} to specify + * additional resource dependencies besides the ones that are automatically detected from the {@link InvokeArgs}. + */ Output invoke(String token, TypeShape targetType, InvokeArgs args, @Nullable InvokeOutputOptions options, CompletableFuture packageRef); /** From f562b524d965d7777857325d67618c9a139ca803 Mon Sep 17 00:00:00 2001 From: Julien Poissonnier Date: Mon, 25 Nov 2024 12:23:41 +0100 Subject: [PATCH 07/12] make InvokeOptions non final and use it as base for InvokeOutputOptions --- .../com/pulumi/deployment/InvokeOptions.java | 2 +- .../deployment/InvokeOutputOptions.java | 42 +++---------------- 2 files changed, 6 insertions(+), 38 deletions(-) diff --git a/sdk/java/pulumi/src/main/java/com/pulumi/deployment/InvokeOptions.java b/sdk/java/pulumi/src/main/java/com/pulumi/deployment/InvokeOptions.java index 87a23782793..c8f954fcf05 100644 --- a/sdk/java/pulumi/src/main/java/com/pulumi/deployment/InvokeOptions.java +++ b/sdk/java/pulumi/src/main/java/com/pulumi/deployment/InvokeOptions.java @@ -17,7 +17,7 @@ * Options to help control the behavior of @see {@link Deployment#invokeAsync(String, TypeShape, InvokeArgs, InvokeOptions)}. */ @ParametersAreNonnullByDefault -public final class InvokeOptions { +public class InvokeOptions { public static InvokeOptions Empty = new InvokeOptions(); diff --git a/sdk/java/pulumi/src/main/java/com/pulumi/deployment/InvokeOutputOptions.java b/sdk/java/pulumi/src/main/java/com/pulumi/deployment/InvokeOutputOptions.java index 68fc125197a..3d7fef1cc72 100644 --- a/sdk/java/pulumi/src/main/java/com/pulumi/deployment/InvokeOutputOptions.java +++ b/sdk/java/pulumi/src/main/java/com/pulumi/deployment/InvokeOutputOptions.java @@ -19,17 +19,10 @@ * {@link Deployment#invoke(String, TypeShape, InvokeArgs, InvokeOutputOptions)}. */ @ParametersAreNonnullByDefault -public final class InvokeOutputOptions { +public class InvokeOutputOptions extends InvokeOptions { - public static InvokeOptions Empty = new InvokeOptions(); + public static InvokeOutputOptions Empty = new InvokeOutputOptions(); - @Nullable - private final Resource parent; - @Nullable - private final ProviderResource provider; - @Nullable - private final String version; - @Nullable private final List dependsOn; public InvokeOutputOptions() { @@ -38,38 +31,13 @@ public InvokeOutputOptions() { public InvokeOutputOptions(@Nullable Resource parent, @Nullable ProviderResource provider, @Nullable String version, @Nullable List dependsOn) { - this.parent = parent; - this.provider = provider; - this.version = version; + super(parent, provider, version); this.dependsOn = dependsOn; } /** - * An optional parent to use for default options for this invoke (e.g. the - * default provider to use). - */ - public Optional getParent() { - return Optional.ofNullable(parent); - } - - /* - * An optional provider to use for this invocation. If no provider is supplied, - * the default provider for the invoked function's package will be used. - */ - public Optional getProvider() { - return Optional.ofNullable(this.provider); - } - - /** - * An optional version, corresponding to the version of the provider plugin that - * should be used when performing this invoke. - */ - public Optional getVersion() { - return Optional.ofNullable(version); - } - - /** - * Optional resources that this invoke depends on. The invoke will wait for these + * Optional resources that this invoke depends on. The invoke will wait for + * these * resources to be resolved before executing. */ public List getDependsOn() { From fb3b1c6814229922dc4a81681dd2698a6268fe41 Mon Sep 17 00:00:00 2001 From: Julien Poissonnier Date: Mon, 25 Nov 2024 12:33:00 +0100 Subject: [PATCH 08/12] update comments --- .../java/com/pulumi/deployment/internal/DeploymentImpl.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sdk/java/pulumi/src/main/java/com/pulumi/deployment/internal/DeploymentImpl.java b/sdk/java/pulumi/src/main/java/com/pulumi/deployment/internal/DeploymentImpl.java index 04641764902..0aae57357c1 100644 --- a/sdk/java/pulumi/src/main/java/com/pulumi/deployment/internal/DeploymentImpl.java +++ b/sdk/java/pulumi/src/main/java/com/pulumi/deployment/internal/DeploymentImpl.java @@ -535,7 +535,7 @@ public Output invoke(String token, TypeShape targetType, InvokeArgs ar ? CompletableFuture.completedFuture(null) : packageRef; - // Wait for all values to be available, and then perform the RPC. + // Wait for all values from args to be available, and then perform the RPC. return new OutputInternal<>(this.featureSupport.monitorSupportsResourceReferences() .thenCompose(keepResources -> this.serializeInvokeArgs(token, args, keepResources)) .thenCompose(serializedArgs -> { @@ -701,7 +701,7 @@ private CompletableFuture invokeRawAsync( } ); - // Wait for all the resource dependencies to be available before we call the invoke + // Wait for all the resource dependencies from dependsOn to be available before we call the invoke this.prepare.getAllTransitivelyReferencedResourceUrnsAsync(ImmutableSet.copyOf(options.getDependsOn())).join(); return providerFuture.thenCompose(provider -> { @@ -844,7 +844,7 @@ private CompletableFuture callRawAsync( log.debug(String.format("Calling function: token='%s' asynchronously", token)); - // Wait for all values to be available, and then perform the RPC. + // Wait for all values from args to be available, and then perform the RPC. var serializedFuture = Internal.from(args).toMapAsync(this.log) .thenApply(argsDict -> self == null ? argsDict From 34e300fd0eb38493c5da510a1207a7fa820604e3 Mon Sep 17 00:00:00 2001 From: Julien Poissonnier Date: Mon, 25 Nov 2024 12:36:03 +0100 Subject: [PATCH 09/12] update conf test snaps --- .../main/java/com/pulumi/alpha/Utilities.java | 31 +++++++++++++------ .../java/com/pulumi/simple/Utilities.java | 31 +++++++++++++------ 2 files changed, 44 insertions(+), 18 deletions(-) diff --git a/pkg/cmd/pulumi-language-java/testdata/sdks/alpha-3.0.0-alpha.1.internal/src/main/java/com/pulumi/alpha/Utilities.java b/pkg/cmd/pulumi-language-java/testdata/sdks/alpha-3.0.0-alpha.1.internal/src/main/java/com/pulumi/alpha/Utilities.java index 9558db97a2a..93ef10c1dd6 100644 --- a/pkg/cmd/pulumi-language-java/testdata/sdks/alpha-3.0.0-alpha.1.internal/src/main/java/com/pulumi/alpha/Utilities.java +++ b/pkg/cmd/pulumi-language-java/testdata/sdks/alpha-3.0.0-alpha.1.internal/src/main/java/com/pulumi/alpha/Utilities.java @@ -14,6 +14,7 @@ import javax.annotation.Nullable; import com.pulumi.core.internal.Environment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; public class Utilities { @@ -57,16 +58,28 @@ public static Optional getEnvDouble(java.lang.String... names) 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 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 invokeOutputOptionsWithVersion(@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() { diff --git a/pkg/cmd/pulumi-language-java/testdata/sdks/simple-2.0.0/src/main/java/com/pulumi/simple/Utilities.java b/pkg/cmd/pulumi-language-java/testdata/sdks/simple-2.0.0/src/main/java/com/pulumi/simple/Utilities.java index 35c7d05ff51..39b0571ed7f 100644 --- a/pkg/cmd/pulumi-language-java/testdata/sdks/simple-2.0.0/src/main/java/com/pulumi/simple/Utilities.java +++ b/pkg/cmd/pulumi-language-java/testdata/sdks/simple-2.0.0/src/main/java/com/pulumi/simple/Utilities.java @@ -14,6 +14,7 @@ import javax.annotation.Nullable; import com.pulumi.core.internal.Environment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; public class Utilities { @@ -57,16 +58,28 @@ public static Optional getEnvDouble(java.lang.String... names) 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 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 invokeOutputOptionsWithVersion(@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() { From 4e4ddb28c45d7d8f3cd3ec8c6159e699bc46d644 Mon Sep 17 00:00:00 2001 From: Julien Poissonnier Date: Tue, 26 Nov 2024 13:24:01 +0100 Subject: [PATCH 10/12] fix test name & format --- .../deployment/DeploymentInvokeDependsOnTest.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/sdk/java/pulumi/src/test/java/com/pulumi/deployment/DeploymentInvokeDependsOnTest.java b/sdk/java/pulumi/src/test/java/com/pulumi/deployment/DeploymentInvokeDependsOnTest.java index 92aa5a854ac..d5e3b9286d6 100644 --- a/sdk/java/pulumi/src/test/java/com/pulumi/deployment/DeploymentInvokeDependsOnTest.java +++ b/sdk/java/pulumi/src/test/java/com/pulumi/deployment/DeploymentInvokeDependsOnTest.java @@ -39,9 +39,9 @@ void cleanup() { } @Test - void testCustomInvokesDependsOntestCustomInvokesDependsOn() { + void testInvokesDependsOn() { var marker = new ResolveMarker(); - + var test = PulumiTestInternal.builder() .options(TestOptions.builder().preview(true).build()) .mocks(new Mocks() { @@ -57,7 +57,7 @@ public CompletableFuture newResourceAsync(ResourceArgs args) { Thread.currentThread().interrupt(); throw new RuntimeException(e); } - return ResourceResult.of(Optional.of(args.id + "_id"), ImmutableMap.of("prop", "some value")); + return ResourceResult.of(Optional.of(args.id + "_id"), ImmutableMap.of("prop", "some value")); }); return result; } @@ -85,10 +85,10 @@ public CompletableFuture> callAsync(CallArgs args) { assertThat(r).contains(ImmutableMap.of("root", ImmutableMap.of("test1", ImmutableList.of("1", "2", "3")))); return (Void) null; }); - + // Check that the resource was resolved when we called the invoke assertThat(marker.resolved).isTrue(); - + Internal.of(out).getDataAsync().join(); }); @@ -99,10 +99,10 @@ public CompletableFuture> callAsync(CallArgs args) { public static final class MyArgs extends ResourceArgs { // Empty } - + public static final class ResolveMarker { public boolean resolved; - + public ResolveMarker() { this.resolved = false; } From ec37d0fd4c539e097d4142507ce10b027687cdd7 Mon Sep 17 00:00:00 2001 From: Julien Poissonnier Date: Wed, 27 Nov 2024 16:34:12 +0100 Subject: [PATCH 11/12] Track dependencies --- .../com/pulumi/core/internal/OutputData.java | 9 ++++ .../deployment/internal/DeploymentImpl.java | 14 ++++--- .../DeploymentInvokeDependsOnTest.java | 42 +++++++------------ 3 files changed, 31 insertions(+), 34 deletions(-) diff --git a/sdk/java/pulumi/src/main/java/com/pulumi/core/internal/OutputData.java b/sdk/java/pulumi/src/main/java/com/pulumi/core/internal/OutputData.java index 79c327d09bb..f9af874e89d 100644 --- a/sdk/java/pulumi/src/main/java/com/pulumi/core/internal/OutputData.java +++ b/sdk/java/pulumi/src/main/java/com/pulumi/core/internal/OutputData.java @@ -20,6 +20,7 @@ import javax.annotation.Nullable; import javax.annotation.ParametersAreNonnullByDefault; import java.util.Collection; +import java.util.List; import java.util.Objects; import java.util.Optional; import java.util.concurrent.CompletableFuture; @@ -156,6 +157,14 @@ public OutputData withDependency(Resource resource) { return ofNullable(newDependencies, this.value, this.known, this.secret); } + public OutputData withDependencies(List resources) { + var newDependencies = Sets.union( + this.resources, + ImmutableSet.copyOf(resources) + ).immutableCopy(); + return ofNullable(newDependencies, this.value, this.known, this.secret); + } + public OutputData apply(Function function) { if (known) { return ofNullable(resources, function.apply(value), true, secret); diff --git a/sdk/java/pulumi/src/main/java/com/pulumi/deployment/internal/DeploymentImpl.java b/sdk/java/pulumi/src/main/java/com/pulumi/deployment/internal/DeploymentImpl.java index 0aae57357c1..765c124ed78 100644 --- a/sdk/java/pulumi/src/main/java/com/pulumi/deployment/internal/DeploymentImpl.java +++ b/sdk/java/pulumi/src/main/java/com/pulumi/deployment/internal/DeploymentImpl.java @@ -535,14 +535,19 @@ public Output invoke(String token, TypeShape targetType, InvokeArgs ar ? CompletableFuture.completedFuture(null) : packageRef; + // Find all the resource dependencies from dependsOn, we need to wait for this task to complete + // before calling the invoke. + var depsFuture = this.prepare.getAllTransitivelyReferencedResourceUrnsAsync(ImmutableSet.copyOf(options.getDependsOn())); + // Wait for all values from args to be available, and then perform the RPC. return new OutputInternal<>(this.featureSupport.monitorSupportsResourceReferences() .thenCompose(keepResources -> this.serializeInvokeArgs(token, args, keepResources)) .thenCompose(serializedArgs -> { if (!serializedArgs.containsUnknowns) { - return packageRefFuture - .thenCompose(packageRefString -> this.invokeRawAsync(token, serializedArgs, options, packageRefString)) - .thenApply(result -> parseInvokeResponse(token, targetType, result)); + return CompletableFuture.allOf(depsFuture, packageRefFuture) + .thenCompose(v -> this.invokeRawAsync(token, serializedArgs, options, packageRefFuture.join())) + .thenApply(result -> parseInvokeResponse(token, targetType, result)) + .thenApply(output -> output.withDependencies(options.getDependsOn())); } else { return CompletableFuture.completedFuture(OutputData.unknown()); } @@ -701,9 +706,6 @@ private CompletableFuture invokeRawAsync( } ); - // Wait for all the resource dependencies from dependsOn to be available before we call the invoke - this.prepare.getAllTransitivelyReferencedResourceUrnsAsync(ImmutableSet.copyOf(options.getDependsOn())).join(); - return providerFuture.thenCompose(provider -> { var version = options.getVersion(); log.debugOrExcessive( diff --git a/sdk/java/pulumi/src/test/java/com/pulumi/deployment/DeploymentInvokeDependsOnTest.java b/sdk/java/pulumi/src/test/java/com/pulumi/deployment/DeploymentInvokeDependsOnTest.java index d5e3b9286d6..673cbc781ef 100644 --- a/sdk/java/pulumi/src/test/java/com/pulumi/deployment/DeploymentInvokeDependsOnTest.java +++ b/sdk/java/pulumi/src/test/java/com/pulumi/deployment/DeploymentInvokeDependsOnTest.java @@ -57,18 +57,18 @@ public CompletableFuture newResourceAsync(ResourceArgs args) { Thread.currentThread().interrupt(); throw new RuntimeException(e); } - return ResourceResult.of(Optional.of(args.id + "_id"), ImmutableMap.of("prop", "some value")); + return ResourceResult.of(Optional.of(args.id + "_id"), + ImmutableMap.of("prop", "some value")); }); return result; } @Override public CompletableFuture> callAsync(CallArgs args) { + assertThat(marker.resolved).isTrue(); // The resource should have been resolved return CompletableFuture.completedFuture( - ImmutableMap.of( - "result", - ImmutableList.of(ImmutableMap.of("root", - ImmutableMap.of("test1", ImmutableList.of("1", "2", "3")))))); + ImmutableMap.of("result", ImmutableList.of(ImmutableMap.of("root", + ImmutableMap.of("test1", ImmutableList.of("1", "2", "3")))))); } }) .build(); @@ -80,16 +80,12 @@ public CompletableFuture> callAsync(CallArgs args) { deps.add(res); var opts = new InvokeOutputOptions(null, null, null, deps); - var out = CustomInvokes.doStuff(CustomArgs.Empty, opts).applyValue(r -> { + CustomInvokes.doStuff(CustomArgs.Empty, opts).applyValue(r -> { assertThat(r).hasSize(1); - assertThat(r).contains(ImmutableMap.of("root", ImmutableMap.of("test1", ImmutableList.of("1", "2", "3")))); - return (Void) null; + assertThat(r) + .contains(ImmutableMap.of("root", ImmutableMap.of("test1", ImmutableList.of("1", "2", "3")))); + return r; }); - - // Check that the resource was resolved when we called the invoke - assertThat(marker.resolved).isTrue(); - - Internal.of(out).getDataAsync().join(); }); assertThat(result.exceptions()).hasSize(0); @@ -97,7 +93,6 @@ public CompletableFuture> callAsync(CallArgs args) { } public static final class MyArgs extends ResourceArgs { - // Empty } public static final class ResolveMarker { @@ -118,32 +113,23 @@ public MyCustomResource(String name, @Nullable MyArgs args, @Nullable CustomReso static class CustomInvokes { static Output>> doStuff( - @SuppressWarnings("SameParameterValue") CustomArgs args, - @Nullable InvokeOutputOptions options) { - return Deployment.getInstance().invoke( - "tests:custom:stuff", - TypeShape.of(CustomResult.class), - args, - options).applyValue(r -> { + @SuppressWarnings("SameParameterValue") CustomArgs args, @Nullable InvokeOutputOptions options) { + return Deployment.getInstance() + .invoke("tests:custom:stuff", TypeShape.of(CustomResult.class), args, options).applyValue(r -> { return r.result; }); } } static class CustomArgs extends InvokeArgs { - public static final CustomArgs Empty = new CustomArgs(null, null); + public static final CustomArgs Empty = new CustomArgs(null); @Import(name = "text") @Nullable public final String text; - @Import(name = "defaultNamespace") - @Nullable - public final String defaultNamespace; - - CustomArgs(@Nullable String text, @Nullable String defaultNamespace) { + CustomArgs(@Nullable String text) { this.text = text; - this.defaultNamespace = defaultNamespace; } } From 93aba7aafb61d15addc8ee7b607f60fb63e6e1c9 Mon Sep 17 00:00:00 2001 From: Julien Poissonnier Date: Wed, 27 Nov 2024 16:54:29 +0100 Subject: [PATCH 12/12] rempve unused methods --- .../deployment/internal/DeploymentImpl.java | 50 ------------------- 1 file changed, 50 deletions(-) diff --git a/sdk/java/pulumi/src/main/java/com/pulumi/deployment/internal/DeploymentImpl.java b/sdk/java/pulumi/src/main/java/com/pulumi/deployment/internal/DeploymentImpl.java index 765c124ed78..d21b396510d 100644 --- a/sdk/java/pulumi/src/main/java/com/pulumi/deployment/internal/DeploymentImpl.java +++ b/sdk/java/pulumi/src/main/java/com/pulumi/deployment/internal/DeploymentImpl.java @@ -683,56 +683,6 @@ private CompletableFuture invokeRawAsync( }); }); } - - - private CompletableFuture invokeRawAsync( - String token, InvokeArgs args, InvokeOutputOptions options, String packageRef) { - Objects.requireNonNull(token); - Objects.requireNonNull(args); - Objects.requireNonNull(options); - log.debug(String.format("Invoking function: token='%s' asynchronously", token)); - // Wait for all values to be available, and then perform the RPC. - return this.featureSupport.monitorSupportsResourceReferences() - .thenCompose(keepResources -> this.serializeInvokeArgs(token, args, keepResources)) - .thenCompose(serializedArgs -> this.invokeRawAsync(token, serializedArgs, options, packageRef)); - } - - private CompletableFuture invokeRawAsync( - String token, SerializationResult invokeArgs, InvokeOutputOptions options, String packageRef) { - CompletableFuture> providerFuture = CompletableFutures.flipOptional( - () -> { - var provider = Internal.from(options).getNestedProvider(token); - return provider.map(p -> Internal.from(p).getRegistrationId()); - } - ); - - return providerFuture.thenCompose(provider -> { - var version = options.getVersion(); - log.debugOrExcessive( - String.format("Invoke RPC prepared: token='%s'", token), - String.format(", obj='%s'", invokeArgs) - ); - return this.monitor.invokeAsync(pulumirpc.Resource.ResourceInvokeRequest.newBuilder() - .setTok(token) - .setProvider(provider.orElse("")) - .setVersion(version.orElse("")) - .setArgs(invokeArgs.serialized) - .setAcceptResources(!this.disableResourceReferences) - .setPackageRef(packageRef == null ? "" : packageRef) - .build() - ).thenApply(response -> { - // Handle failures. - if (response.getFailuresCount() > 0) { - var reasons = response.getFailuresList().stream() - .map(reason -> String.format("%s (%s)", reason.getReason(), reason.getProperty())) - .collect(Collectors.joining("; ")); - throw new InvokeException(String.format("Invoke of '%s' failed: %s", token, reasons)); - } - return new SerializationResult(response.getReturn(), - invokeArgs.propertyToDependentResources); - }); - }); - } private CompletableFuture serializeInvokeArgs( String token, InvokeArgs args, boolean keepResources) {