# Class Workload (0.5.0)

0.5.0 (latest) 0.4.0 0.3.0 0.2.0 0.1.10

    Workload(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Workload is an App Hub data model that contains a discovered
workload, which represents a binary deployment (such as managed
instance groups (MIGs) and GKE deployments) that performs the
smallest logical subset of business functionality.

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `name` | `str` Identifier. The resource name of the Workload. Format: `"projects/{host-project-id}/locations/{location}/applications/{application-id}/workloads/{workload-id}"` |
| `display_name` | `str` Optional. User-defined name for the Workload. Can have a maximum length of 63 characters. |
| `description` | `str` Optional. User-defined description of a Workload. Can have a maximum length of 2048 characters. |
| `workload_reference` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-apphub/latest/google.cloud.apphub_v1.types.WorkloadReference` Output only. Reference of an underlying compute resource represented by the Workload. These are immutable. |
| `workload_properties` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-apphub/latest/google.cloud.apphub_v1.types.WorkloadProperties` Output only. Properties of an underlying compute resource represented by the Workload. These are immutable. |
| `discovered_workload` | `str` Required. Immutable. The resource name of the original discovered workload. |
| `attributes` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-apphub/latest/google.cloud.apphub_v1.types.Attributes` Optional. Consumer provided attributes. |
| `create_time` | `google.protobuf.timestamp_pb2.Timestamp` Output only. Create time. |
| `update_time` | `google.protobuf.timestamp_pb2.Timestamp` Output only. Update time. |
| `uid` | `str` Output only. A universally unique identifier (UUID) for the `Workload` in the UUID4 format. |
| `state` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-apphub/latest/google.cloud.apphub_v1.types.Workload.State` Output only. Workload state. |

## Classes

### State

    State(value)

Workload state.