WorkloadState class
Input properties used for looking up and filtering Workload resources.
Constructors
-
WorkloadState({Input<
String?> ? applicationId, Input<WorkloadAttributes?> ? attributes, Input<String?> ? createTime, Input<String?> ? deletionPolicy, Input<String?> ? description, Input<String?> ? discoveredWorkload, Input<String?> ? displayName, Input<String?> ? location, Input<String?> ? name, Input<String?> ? project, Input<String?> ? state, Input<String?> ? uid, Input<String?> ? updateTime, Input<String?> ? workloadId, Input<List< ? workloadProperties, Input<WorkloadWorkloadProperty> ?>List< ? workloadReferences})WorkloadWorkloadReference> ?> -
Creates a new WorkloadState.
applicationIdPart ofparent. Full resource name of a parent Application. Example: projects/{HOST_PROJECT_ID}/locations/{LOCATION}/applications/{APPLICATION_ID}attributesConsumer provided attributes.createTimeOutput only. Create time.deletionPolicyWhether Terraform will be prevented from destroying the resource. Defaults to DELETE.descriptionUser-defined description of a Workload.discoveredWorkloadImmutable. The resource name of the original discovered workload.displayNameUser-defined name for the Workload.locationPart ofparent. Full resource name of a parent Application. Example: projects/{HOST_PROJECT_ID}/locations/{LOCATION}/applications/{APPLICATION_ID}nameIdentifier. The resource name of the Workload. Format:"projects/{host-project-id}/locations/{location}/applications/{application-id}/workloads/{workload-id}"projectThe ID of the project in which the resource belongs.stateOutput only. Workload state. Possible values: STATE_UNSPECIFIED CREATING ACTIVE DELETING DETACHEDuidOutput only. A universally unique identifier (UUID) for theWorkloadin the UUID4 format.updateTimeOutput only. Update time.workloadIdThe Workload identifier.workloadPropertiesProperties of an underlying compute resource represented by the Workload.workloadReferencesReference of an underlying compute resource represented by the Workload.const -
WorkloadState.fromMap(Map<
String, dynamic> map) -
factory
Properties
-
applicationId
→ Input<
String?> ? -
Part of
parent. Full resource name of a parent Application. Example: projects/{HOST_PROJECT_ID}/locations/{LOCATION}/applications/{APPLICATION_ID}final -
attributes
→ Input<
WorkloadAttributes?> ? -
Consumer provided attributes.
Structure is documented below.
final
-
createTime
→ Input<
String?> ? -
Output only. Create time.
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
-
description
→ Input<
String?> ? -
User-defined description of a Workload.
final
-
discoveredWorkload
→ Input<
String?> ? -
Immutable. The resource name of the original discovered workload.
final
-
displayName
→ Input<
String?> ? -
User-defined name for the Workload.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
location
→ Input<
String?> ? -
Part of
parent. Full resource name of a parent Application. Example: projects/{HOST_PROJECT_ID}/locations/{LOCATION}/applications/{APPLICATION_ID}final -
name
→ Input<
String?> ? -
Identifier. The resource name of the Workload. Format:"projects/{host-project-id}/locations/{location}/applications/{application-id}/workloads/{workload-id}"
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
-
state
→ Input<
String?> ? -
Output only. Workload state. Possible values: STATE_UNSPECIFIED CREATING ACTIVE DELETING DETACHED
final
-
uid
→ Input<
String?> ? -
Output only. A universally unique identifier (UUID) for the
Workloadin the UUID4 format.final -
updateTime
→ Input<
String?> ? -
Output only. Update time.
final
-
workloadId
→ Input<
String?> ? -
The Workload identifier.
final
-
workloadProperties
→ Input<
List< ?WorkloadWorkloadProperty> ?> -
Properties of an underlying compute resource represented by the Workload.
Structure is documented below.
final
-
workloadReferences
→ Input<
List< ?WorkloadWorkloadReference> ?> -
Reference of an underlying compute resource represented by the Workload.
Structure is documented below.
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