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() {