UnitOperationArgs class
The set of arguments for UnitOperation. The set of arguments for UnitOperation.
Constructors
-
UnitOperationArgs({Input<
Map< ? annotations, Input<String, String> ?>String?> ? deletionPolicy, Input<Map< ? deprovision, Input<String, dynamic> ?>Map< ? labels, required Input<String, String> ?>String> location, Input<String?> ? project, Input<UnitOperationProvision?> ? provision, required Input<String> unit, required Input<String> unitOperationId, Input<UnitOperationUpgrade?> ? upgrade, Input<bool?> ? waitForCompletion}) -
Creates a new UnitOperationArgs.
annotationsAnnotations is an unstructured key-value map stored with a resource thatdeletionPolicyWhether Terraform will be prevented from destroying the resource. Defaults to DELETE.deprovisionDeprovision is the unit operation that deprovision the underlyinglabelsThe labels on the resource, which can be used for categorization.locationResource ID segment making up resourcename. It identifies the resource within its parent collection as described in https://google.aip.dev/122.projectThe ID of the project in which the resource belongs.provisionProvision is the unit operation that provision the underlying resourcesunitThe Unit a given UnitOperation will act upon.unitOperationIdThe ID value for the new unit operation.upgradeUpgrade is the unit operation that upgrades a provisioned unit, which maywaitForCompletionIf true, wait for the UnitOperation to reach a terminal state (SUCCEEDED, FAILED, CANCELLED)const -
UnitOperationArgs.fromMap(Map<
String, dynamic> map) -
factory
Properties
-
annotations
→ Input<
Map< ?String, String> ?> -
Annotations is an unstructured key-value map stored with a resource that
may be set by external tools to store and retrieve arbitrary metadata.
They are not queryable and should be preserved when modifying objects.
More info: https://kubernetes.io/docs/user-guide/annotations
Note: This field is non-authoritative, and will only manage the annotations present in your configuration.
Please refer to the field
effectiveAnnotationsfor all of the annotations present on the resource.final -
deletionPolicy
→ Input<
String?> ? -
Whether Terraform will be prevented from destroying the resource. Defaults to DELETE.
When a 'terraform destroy' or 'pulumi up' would delete the resource,
the command will fail if this field is set to "PREVENT" in Terraform state.
When set to "ABANDON", the command will remove the resource from Terraform
management without updating or deleting the resource in the API.
When set to "DELETE", deleting the resource is allowed.
final
-
deprovision
→ Input<
Map< ?String, dynamic> ?> -
Deprovision is the unit operation that deprovision the underlying
resources represented by a Unit. Can only execute if the Unit is currently
provisioned.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
labels
→ Input<
Map< ?String, String> ?> -
The labels on the resource, which can be used for categorization.
similar to Kubernetes resource labels.
Note: This field is non-authoritative, and will only manage the labels present in your configuration.
Please refer to the field
effectiveLabelsfor all of the labels present on the resource.final -
location
→ Input<
String> -
Resource ID segment making up resource
name. It identifies the resource within its parent collection as described in https://google.aip.dev/122.final -
project
→ Input<
String?> ? -
The ID of the project in which the resource belongs.
If it is not provided, the provider project is used.
final
-
provision
→ Input<
UnitOperationProvision?> ? -
Provision is the unit operation that provision the underlying resources
represented by a Unit. Can only execute if the Unit is not currently
provisioned.
Structure is documented below.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
unit
→ Input<
String> -
The Unit a given UnitOperation will act upon.
final
-
unitOperationId
→ Input<
String> -
The ID value for the new unit operation.
final
-
upgrade
→ Input<
UnitOperationUpgrade?> ? -
Upgrade is the unit operation that upgrades a provisioned unit, which may
also include the underlying resources represented by a Unit. Can only execute
if the Unit is currently provisioned.
Structure is documented below.
final
-
waitForCompletion
→ Input<
bool?> ? -
If true, wait for the UnitOperation to reach a terminal state (SUCCEEDED, FAILED, CANCELLED)
before completing the apply.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited