UnitState class
Input properties used for looking up and filtering Unit resources.
Constructors
-
UnitState({Input<
Map< ? annotations, Input<String, String> ?>List< ? conditions, Input<UnitCondition> ?>String?> ? createTime, Input<String?> ? deletionPolicy, Input<List< ? dependencies, Input<UnitDependency> ?>List< ? dependents, Input<UnitDependent> ?>Map< ? effectiveAnnotations, Input<String, String> ?>Map< ? effectiveLabels, Input<String, String> ?>List< ? inputVariables, Input<UnitInputVariable> ?>Map< ? labels, Input<String, String> ?>String?> ? location, Input<UnitMaintenance?> ? maintenance, Input<String?> ? managementMode, Input<String?> ? name, Input<List< ? ongoingOperations, Input<String> ?>List< ? outputVariables, Input<UnitOutputVariable> ?>List< ? pendingOperations, Input<String> ?>String?> ? project, Input<Map< ? pulumiLabels, Input<String, String> ?>String?> ? release, Input<List< ? scheduledOperations, Input<String> ?>String?> ? state, Input<String?> ? systemCleanupAt, Input<String?> ? systemManagedState, Input<String?> ? tenant, Input<String?> ? uid, Input<String?> ? unitId, Input<String?> ? unitKind, Input<String?> ? updateTime}) -
Creates a new UnitState.
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.dependenciesSet of dependencies for this unit. Maximum 10.dependentsList of Units that depend on this unit. Unit can only be deprovisioned ifeffectiveAnnotationsAll 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.inputVariablesIndicates the current input variables deployed by the unitlabelsThe 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.maintenanceCaptures requested directives for performing future maintenance on themanagementModeIndicates whether the Unit life cycle is controllednameIdentifier. The resource name (full URI of the resource) following the standard namingongoingOperationsList of concurrent UnitOperations that are operating on this Unit.outputVariablesSet of key/value pairs corresponding to output variables from execution ofpendingOperationsList of pending (wait to be executed) UnitOperations for this unit.projectThe ID of the project in which the resource belongs.pulumiLabelsThe combination of labels configured directly on the resourcereleaseThe current Release object for this Unit.scheduledOperationsList of scheduled UnitOperations for this unit.stateCurrent lifecycle state of the resource (e.g. if it's beingsystemCleanupAtIf set, indicates the time when the system will start removing the unit.systemManagedStateIndicates the system managed state of the unit.tenantReference to the Saas Tenant resource this unit belongs to. This foruidThe unique identifier of the resource. UID is unique in the timeunitIdThe ID value for the new unit.unitKindReference to the UnitKind this Unit belongs to. Immutable once set.updateTimeThe timestamp when the resource was last updated. Anyconst -
UnitState.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< ?UnitCondition> ?> -
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
-
dependencies
→ Input<
List< ?UnitDependency> ?> -
Set of dependencies for this unit. Maximum 10.
Structure is documented below.
final
-
dependents
→ Input<
List< ?UnitDependent> ?> -
List of Units that depend on this unit. Unit can only be deprovisioned if
this list is empty. Maximum 1000.
Structure is documented below.
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
- hashCode → int
-
The hash code for this object.
no setterinherited
-
inputVariables
→ Input<
List< ?UnitInputVariable> ?> -
Indicates the current input variables deployed by the unit
Structure is documented below.
final
-
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 -
maintenance
→ Input<
UnitMaintenance?> ? -
Captures requested directives for performing future maintenance on the
unit. This includes a request for the unit to skip maintenance for a period
of time and remain pinned to its current release as well as controls for
postponing maintenance scheduled in future.
Structure is documented below.
final
-
managementMode
→ Input<
String?> ? -
Indicates whether the Unit life cycle is controlled
by the user or by the system.
Immutable once created.
Possible values:
MANAGEMENT_MODE_USER
MANAGEMENT_MODE_SYSTEM
final
-
name
→ Input<
String?> ? -
Identifier. The resource name (full URI of the resource) following the standard naming
scheme:
"projects/{project}/locations/{location}/units/{unit}"
final
-
ongoingOperations
→ Input<
List< ?String> ?> -
List of concurrent UnitOperations that are operating on this Unit.
final
-
outputVariables
→ Input<
List< ?UnitOutputVariable> ?> -
Set of key/value pairs corresponding to output variables from execution of
actuation templates. The variables are declared in actuation configs (e.g
in helm chart or terraform) and the values are fetched and returned by the
actuation engine upon completion of execution.
Structure is documented below.
final
-
pendingOperations
→ Input<
List< ?String> ?> -
List of pending (wait to be executed) UnitOperations for this unit.
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
-
pulumiLabels
→ Input<
Map< ?String, String> ?> -
The combination of labels configured directly on the resource
and default labels configured on the provider.
final
-
release
→ Input<
String?> ? -
The current Release object for this Unit.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
scheduledOperations
→ Input<
List< ?String> ?> -
List of scheduled UnitOperations for this unit.
final
-
state
→ Input<
String?> ? -
Current lifecycle state of the resource (e.g. if it's being
created or ready to use).
Possible values:
UNIT_STATE_NOT_PROVISIONED
UNIT_STATE_PROVISIONING
UNIT_STATE_UPDATING
UNIT_STATE_DEPROVISIONING
UNIT_STATE_READY
UNIT_STATE_ERROR
final
-
systemCleanupAt
→ Input<
String?> ? -
If set, indicates the time when the system will start removing the unit.
final
-
systemManagedState
→ Input<
String?> ? -
Indicates the system managed state of the unit.
Possible values:
SYSTEM_MANAGED_STATE_ACTIVE
SYSTEM_MANAGED_STATE_INACTIVE
SYSTEM_MANAGED_STATE_DECOMMISSIONED
final
-
tenant
→ Input<
String?> ? -
Reference to the Saas Tenant resource this unit belongs to. This for
example informs the maintenance policies to use for scheduling future
updates on a unit. (optional and immutable once created)
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
-
unitId
→ Input<
String?> ? -
The ID value for the new unit.
final
-
unitKind
→ Input<
String?> ? -
Reference to the UnitKind this Unit belongs to. Immutable once set.
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
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