Class MockDeployment
- All Implemented Interfaces:
Deployment,com.pulumi.deployment.internal.DeploymentInternal,com.pulumi.deployment.internal.ReadOrRegisterResource,com.pulumi.deployment.internal.RegisterResourceOutputs
Deployment that does mostly nothing.-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal com.pulumi.deployment.internal.DeploymentImpl.DeploymentState -
Constructor Summary
ConstructorsConstructorDescriptionMockDeployment(com.pulumi.deployment.internal.DeploymentImpl.DeploymentState state) -
Method Summary
Modifier and TypeMethodDescription<T> Output<T><T> Output<T><T> Output<T>Dynamically calls the functiontoken, which is offered by a provider plugin.voidSame asDeployment.call(String, TypeShape, CallArgs, Resource, CallOptions), however the return value is ignored.voidSame asDeployment.call(String, TypeShape, CallArgs, Resource, CallOptions), however the return value is ignored.voidcall(String token, CallArgs args, Resource self, CallOptions options) Same asDeployment.call(String, TypeShape, CallArgs, Resource, CallOptions), however the return value is ignored.com.pulumi.deployment.internal.DeploymentImpl.Configcom.pulumi.deployment.internal.Runnercom.pulumi.resources.internal.StackgetStack()<T> Output<T>invoke(String token, TypeShape<T> targetType, InvokeArgs args) <T> Output<T>invoke(String token, TypeShape<T> targetType, InvokeArgs args, InvokeOptions options) <T> Output<T>invoke(String token, TypeShape<T> targetType, InvokeArgs args, InvokeOptions options, CompletableFuture<String> packageRef) Dynamically invokes the functiontoken, which is offered by a provider plugin.<T> Output<T>invoke(String token, TypeShape<T> targetType, InvokeArgs args, InvokeOutputOptions options) Same as @seeDeployment.invoke(String, TypeShape, InvokeArgs, InvokeOptions, CompletableFuture)but takesInvokeOutputOptionsas options, which allows settingInvokeOutputOptions.dependsOnto specify additional resource dependencies besides the ones that are automatically detected from theInvokeArgs.<T> Output<T>invoke(String token, TypeShape<T> targetType, InvokeArgs args, InvokeOutputOptions options, CompletableFuture<String> packageRef) Same as @seeDeployment.invoke(String, TypeShape, InvokeArgs, InvokeOptions, CompletableFuture)but takesInvokeOutputOptionsas options, which allows settingInvokeOutputOptions.dependsOnto specify additional resource dependencies besides the ones that are automatically detected from theInvokeArgs.<T> CompletableFuture<T>invokeAsync(String token, TypeShape<T> targetType, InvokeArgs args) <T> CompletableFuture<T>invokeAsync(String token, TypeShape<T> targetType, InvokeArgs args, InvokeOptions options) <T> CompletableFuture<T>invokeAsync(String token, TypeShape<T> targetType, InvokeArgs args, InvokeOptions options, CompletableFuture<String> packageRef) Dynamically invokes the functiontoken, which is offered by a provider plugin.invokeAsync(String token, InvokeArgs args) Same as @seeDeployment.invokeAsync(String, TypeShape, InvokeArgs, InvokeOptions, CompletableFuture), however the return value is ignored.invokeAsync(String token, InvokeArgs args, InvokeOptions options) Same as @seeDeployment.invokeAsync(String, TypeShape, InvokeArgs, InvokeOptions, CompletableFuture), however the return value is ignored.booleanisConfigSecret(String fullKey) booleanisDryRun()Whether the application is currently being previewed or actually applied.voidreadOrRegisterResource(Resource resource, boolean remote, Function<String, Resource> newDependency, ResourceArgs args, ResourceOptions opts, Resource.LazyFields lazy, CompletableFuture<String> packageRef) registerPackage(String baseProviderName, String baseProviderVersion, String baseProviderDownloadUrl, String packageName, String packageVersion, String base64Parameter) Registers a parameterization of a given provider, returning a package reference that can be used to instantiate resources and call functions against it.voidvoidrequirePulumiVersion(String range) Checks if the engine we are connected to is compatible with the passed in version range.voidsetStack(com.pulumi.resources.internal.Stack stack) Methods inherited from class com.pulumi.deployment.internal.DeploymentInstanceHolder
getInstance, getInstanceNoThrow, getInstanceOptional, internalUnsafeDestroyInstance, setInstanceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.pulumi.deployment.Deployment
registerPackage
-
Field Details
-
state
public final com.pulumi.deployment.internal.DeploymentImpl.DeploymentState state
-
-
Constructor Details
-
MockDeployment
public MockDeployment(com.pulumi.deployment.internal.DeploymentImpl.DeploymentState state)
-
-
Method Details
-
getStackName
- Specified by:
getStackNamein interfaceDeployment- Returns:
- the current stack name
-
getProjectName
- Specified by:
getProjectNamein interfaceDeployment- Returns:
- the current project name
-
getOrganizationName
- Specified by:
getOrganizationNamein interfaceDeployment- Returns:
- the current organization name
-
getRootDirectory
- Specified by:
getRootDirectoryin interfaceDeployment- Returns:
- the root directory of the current project, where
Pulumi.yamllives
-
isDryRun
public boolean isDryRun()Description copied from interface:DeploymentWhether the application is currently being previewed or actually applied.- Specified by:
isDryRunin interfaceDeployment- Returns:
- true if application is being applied
-
requirePulumiVersion
Description copied from interface:DeploymentChecks if the engine we are connected to is compatible with the passed in version range. If the version is not compatible with the specified range, an exception is raised.The supported syntax for the range is that of github.com/blang/semver#ParseRange. For example
">=3.0.0", or"!3.1.2". Ranges can be AND-ed together by concatenating with spaces">=3.5.0 !3.7.7", meaning greater-or-equal to 3.5.0 and not exactly 3.7.7. Ranges can be OR-ed with the||operator:"<3.4.0 || >3.8.0", meaning less-than 3.4.0 or greater-than 3.8.0.- Specified by:
requirePulumiVersionin interfaceDeployment- Parameters:
range- the version range to check against
-
invoke
public <T> Output<T> invoke(String token, TypeShape<T> targetType, InvokeArgs args, @Nullable InvokeOptions options, CompletableFuture<String> packageRef) Description copied from interface:DeploymentDynamically invokes the functiontoken, which is offered by a provider plugin.The result of
invokewill be an @seeOutput<T> resolved to the result value of the provider plugin.The
argsinputs can be a bag of computed values (including,Ts, @seeCompletableFutures, @seeOutputs, etc.)- Specified by:
invokein interfaceDeployment
-
invoke
public <T> Output<T> invoke(String token, TypeShape<T> targetType, InvokeArgs args, @Nullable InvokeOutputOptions options, CompletableFuture<String> packageRef) Description copied from interface:DeploymentSame as @seeDeployment.invoke(String, TypeShape, InvokeArgs, InvokeOptions, CompletableFuture)but takesInvokeOutputOptionsas options, which allows settingInvokeOutputOptions.dependsOnto specify additional resource dependencies besides the ones that are automatically detected from theInvokeArgs.- Specified by:
invokein interfaceDeployment
-
invoke
public <T> Output<T> invoke(String token, TypeShape<T> targetType, InvokeArgs args, @Nullable InvokeOptions options) Description copied from interface:Deployment- Specified by:
invokein interfaceDeployment
-
invoke
public <T> Output<T> invoke(String token, TypeShape<T> targetType, InvokeArgs args, @Nullable InvokeOutputOptions options) Description copied from interface:DeploymentSame as @seeDeployment.invoke(String, TypeShape, InvokeArgs, InvokeOptions, CompletableFuture)but takesInvokeOutputOptionsas options, which allows settingInvokeOutputOptions.dependsOnto specify additional resource dependencies besides the ones that are automatically detected from theInvokeArgs.- Specified by:
invokein interfaceDeployment
-
invoke
Description copied from interface:Deployment- Specified by:
invokein interfaceDeployment
-
invokeAsync
public <T> CompletableFuture<T> invokeAsync(String token, TypeShape<T> targetType, InvokeArgs args, InvokeOptions options, CompletableFuture<String> packageRef) Description copied from interface:DeploymentDynamically invokes the functiontoken, which is offered by a provider plugin.The result of
invokeAsyncwill be a @seeCompletableFutureresolved to the result value of the provider plugin.The
argsinputs can be a bag of computed values (including,Ts, @seeCompletableFutures, @seeOutputs, etc.).- Specified by:
invokeAsyncin interfaceDeployment
-
invokeAsync
public <T> CompletableFuture<T> invokeAsync(String token, TypeShape<T> targetType, InvokeArgs args, InvokeOptions options) Description copied from interface:DeploymentSame as @seeDeployment.invokeAsync(String, TypeShape, InvokeArgs, InvokeOptions, CompletableFuture)- Specified by:
invokeAsyncin interfaceDeployment
-
invokeAsync
Description copied from interface:DeploymentSame as @seeDeployment.invokeAsync(String, TypeShape, InvokeArgs, InvokeOptions, CompletableFuture)- Specified by:
invokeAsyncin interfaceDeployment
-
invokeAsync
Description copied from interface:DeploymentSame as @seeDeployment.invokeAsync(String, TypeShape, InvokeArgs, InvokeOptions, CompletableFuture), however the return value is ignored.- Specified by:
invokeAsyncin interfaceDeployment
-
invokeAsync
Description copied from interface:DeploymentSame as @seeDeployment.invokeAsync(String, TypeShape, InvokeArgs, InvokeOptions, CompletableFuture), however the return value is ignored.- Specified by:
invokeAsyncin interfaceDeployment
-
call
public <T> Output<T> call(String token, TypeShape<T> targetType, CallArgs args, @Nullable Resource self, @Nullable CallOptions options) Description copied from interface:DeploymentDynamically calls the functiontoken, which is offered by a provider plugin.The result of
callwill be an @seeOutput<T> resolved to the result value of the provider plugin.The
argsinputs can be a bag of computed values (including,Ts, @seeCompletableFutures, @seeOutputs, etc.).- Specified by:
callin interfaceDeployment
-
call
public <T> Output<T> call(String token, TypeShape<T> targetType, CallArgs args, @Nullable Resource self) Description copied from interface:Deployment- Specified by:
callin interfaceDeployment
-
call
Description copied from interface:Deployment- Specified by:
callin interfaceDeployment
-
call
public void call(String token, CallArgs args, @Nullable Resource self, @Nullable CallOptions options) Description copied from interface:DeploymentSame asDeployment.call(String, TypeShape, CallArgs, Resource, CallOptions), however the return value is ignored.- Specified by:
callin interfaceDeployment
-
call
Description copied from interface:DeploymentSame asDeployment.call(String, TypeShape, CallArgs, Resource, CallOptions), however the return value is ignored.- Specified by:
callin interfaceDeployment
-
call
Description copied from interface:DeploymentSame asDeployment.call(String, TypeShape, CallArgs, Resource, CallOptions), however the return value is ignored.- Specified by:
callin interfaceDeployment
-
getConfig
public com.pulumi.deployment.internal.DeploymentImpl.Config getConfig()- Specified by:
getConfigin interfacecom.pulumi.deployment.internal.DeploymentInternal
-
getConfig
- Specified by:
getConfigin interfacecom.pulumi.deployment.internal.DeploymentInternal
-
isConfigSecret
- Specified by:
isConfigSecretin interfacecom.pulumi.deployment.internal.DeploymentInternal
-
getStack
public com.pulumi.resources.internal.Stack getStack()- Specified by:
getStackin interfacecom.pulumi.deployment.internal.DeploymentInternal
-
setStack
public void setStack(com.pulumi.resources.internal.Stack stack) - Specified by:
setStackin interfacecom.pulumi.deployment.internal.DeploymentInternal
-
getRunner
public com.pulumi.deployment.internal.Runner getRunner()- Specified by:
getRunnerin interfacecom.pulumi.deployment.internal.DeploymentInternal
-
readOrRegisterResource
public void readOrRegisterResource(Resource resource, boolean remote, Function<String, Resource> newDependency, ResourceArgs args, ResourceOptions opts, Resource.LazyFields lazy, CompletableFuture<String> packageRef) - Specified by:
readOrRegisterResourcein interfacecom.pulumi.deployment.internal.ReadOrRegisterResource
-
registerResourceOutputs
- Specified by:
registerResourceOutputsin interfacecom.pulumi.deployment.internal.RegisterResourceOutputs
-
registerPackage
public CompletableFuture<String> registerPackage(String baseProviderName, String baseProviderVersion, String baseProviderDownloadUrl, String packageName, String packageVersion, String base64Parameter) Description copied from interface:DeploymentRegisters a parameterization of a given provider, returning a package reference that can be used to instantiate resources and call functions against it.- Specified by:
registerPackagein interfaceDeployment- Parameters:
baseProviderName- The name of the base provider being parameterizedbaseProviderVersion- The version of the base provider being parameterizedbaseProviderDownloadUrl- The download URL of the base provider being parameterizedpackageName- The name of the package being registeredpackageVersion- The version of the package being registeredbase64Parameter- The base64-encoded parameterization of the base provider- Returns:
- A future that resolves to the package reference
-