UnitOperationState class
Input properties used for looking up and filtering UnitOperation resources.
Constructors
-
UnitOperationState({Input<
Map< ? annotations, Input<String, String> ?>List< ? conditions, Input<UnitOperationCondition> ?>String?> ? createTime, Input<String?> ? deletionPolicy, Input<Map< ? deprovision, Input<String, dynamic> ?>Map< ? effectiveAnnotations, Input<String, String> ?>Map< ? effectiveLabels, Input<String, String> ?>String?> ? engineState, Input<String?> ? errorCategory, Input<String?> ? etag, Input<Map< ? labels, Input<String, String> ?>String?> ? location, Input<String?> ? name, Input<String?> ? project, Input<UnitOperationProvision?> ? provision, Input<Map< ? pulumiLabels, Input<String, String> ?>String?> ? state, Input<String?> ? uid, Input<String?> ? unit, Input<String?> ? unitOperationId, Input<String?> ? updateTime, Input<UnitOperationUpgrade?> ? upgrade, Input<bool?> ? waitForCompletion}) -
Creates a new UnitOperationState.
annotationsAnnotations is an unstructured key-value map stored with a resource thatconditionsA set of conditions which indicate the various conditions this resource cancreateTimeThe timestamp when the resource was created.deletionPolicyWhether Terraform will be prevented from destroying the resource. Defaults to DELETE.deprovisionDeprovision is the unit operation that deprovision the underlyingeffectiveAnnotationsAll of annotations (key/value pairs) present on the resource in GCP, including the annotations configured through Terraform, other clients and services.effectiveLabelsAll of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.engineStateThe engine state for on-goingerrorCategoryPossible values:etagAn opaque value that uniquely identifies a version orlabelsThe 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.nameIdentifier. The resource name (full URI of the resource) following the standard namingprojectThe ID of the project in which the resource belongs.provisionProvision is the unit operation that provision the underlying resourcespulumiLabelsThe combination of labels configured directly on the resourcestateUnitOperationState describes the current state of the unit operation.uidThe unique identifier of the resource. UID is unique in the timeunitThe Unit a given UnitOperation will act upon.unitOperationIdThe ID value for the new unit operation.updateTimeThe timestamp when the resource was last updated. AnyupgradeUpgrade 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 -
UnitOperationState.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 -
conditions
→ Input<
List< ?UnitOperationCondition> ?> -
A set of conditions which indicate the various conditions this resource can
have.
Structure is documented below.
final
-
createTime
→ Input<
String?> ? -
The timestamp when the resource was created.
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
-
effectiveAnnotations
→ Input<
Map< ?String, String> ?> -
All of annotations (key/value pairs) present on the resource in GCP, including the annotations configured through Terraform, other clients and services.
final
-
effectiveLabels
→ Input<
Map< ?String, String> ?> -
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
final
-
engineState
→ Input<
String?> ? -
The engine state for on-going
deployment engine operation(s).
This field is opaque for external usage.
final
-
errorCategory
→ Input<
String?> ? -
Possible values:
NOT_APPLICABLE
FATAL
RETRIABLE
IGNORABLE
STANDARD
final
-
etag
→ Input<
String?> ? -
An opaque value that uniquely identifies a version or
generation of a resource. It can be used to confirm that the client
and server agree on the ordering of a resource being written.
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 -
name
→ Input<
String?> ? -
Identifier. The resource name (full URI of the resource) following the standard naming
scheme:
"projects/{project}/locations/{location}/unitOperations/{unitOperation}"
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
-
pulumiLabels
→ Input<
Map< ?String, String> ?> -
The combination of labels configured directly on the resource
and default labels configured on the provider.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
state
→ Input<
String?> ? -
UnitOperationState describes the current state of the unit operation.
Possible values:
UNIT_OPERATION_STATE_UNKNOWN
UNIT_OPERATION_STATE_PENDING
UNIT_OPERATION_STATE_SCHEDULED
UNIT_OPERATION_STATE_RUNNING
UNIT_OPERATION_STATE_SUCCEEDED
UNIT_OPERATION_STATE_FAILED
UNIT_OPERATION_STATE_CANCELLED
final
-
uid
→ Input<
String?> ? -
The unique identifier of the resource. UID is unique in the time
and space for this resource within the scope of the service. It is
typically generated by the server on successful creation of a resource
and must not be changed. UID is used to uniquely identify resources
with resource name reuses. This should be a UUID4.
final
-
unit
→ Input<
String?> ? -
The Unit a given UnitOperation will act upon.
final
-
unitOperationId
→ Input<
String?> ? -
The ID value for the new unit operation.
final
-
updateTime
→ Input<
String?> ? -
The timestamp when the resource was last updated. Any
change to the resource made by users must refresh this value.
Changes to a resource made by the service should refresh this value.
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