UnitArgs class
The set of arguments for Unit. The set of arguments for Unit.
Constructors
-
UnitArgs({Input<
Map< ? annotations, Input<String, String> ?>String?> ? deletionPolicy, Input<Map< ? labels, required Input<String, String> ?>String> location, Input<UnitMaintenance?> ? maintenance, Input<String?> ? managementMode, Input<String?> ? project, Input<String?> ? tenant, required Input<String> unitId, Input<String?> ? unitKind}) -
Creates a new UnitArgs.
annotationsAnnotations is an unstructured key-value map stored with a resource thatdeletionPolicyWhether Terraform will be prevented from destroying the resource. Defaults to DELETE.labelsThe 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 controlledprojectThe ID of the project in which the resource belongs.tenantReference to the Saas Tenant resource this unit belongs to. This forunitIdThe ID value for the new unit.unitKindReference to the UnitKind this Unit belongs to. Immutable once set.const -
UnitArgs.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
- 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 -
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
-
project
→ Input<
String?> ? -
The ID of the project in which the resource belongs.
If it is not provided, the provider project is used.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
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
-
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
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