Reference documentation and code samples for the App Hub v1 API class Workload.
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.
Identifier. The resource name of the Workload. Format:
"projects/{host-project-id}/locations/{location}/applications/{application-id}/workloads/{workload-id}"
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eWorkload\u003c/code\u003e class in the App Hub v1 API represents a discovered workload, which is a binary deployment performing a subset of business functionality.\u003c/p\u003e\n"],["\u003cp\u003eThis class implements several interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, and inherits from the \u003ccode\u003eobject\u003c/code\u003e class.\u003c/p\u003e\n"],["\u003cp\u003eKey properties of the \u003ccode\u003eWorkload\u003c/code\u003e include \u003ccode\u003eName\u003c/code\u003e (resource identifier), \u003ccode\u003eDisplayName\u003c/code\u003e (user-defined name), \u003ccode\u003eDescription\u003c/code\u003e (user-defined description), and \u003ccode\u003eState\u003c/code\u003e (workload status).\u003c/p\u003e\n"],["\u003cp\u003eIt also contains properties for immutable, underlying compute resource details, like \u003ccode\u003eWorkloadProperties\u003c/code\u003e and \u003ccode\u003eWorkloadReference\u003c/code\u003e, and includes output-only timestamps like \u003ccode\u003eCreateTime\u003c/code\u003e and \u003ccode\u003eUpdateTime\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eDiscoveredWorkload\u003c/code\u003e is a required immutable property that represents the resource name of the original discovered workload.\u003c/p\u003e\n"]]],[],null,["# App Hub v1 API - Class Workload (1.1.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.1.0 (latest)](/dotnet/docs/reference/Google.Cloud.AppHub.V1/latest/Google.Cloud.AppHub.V1.Workload)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.AppHub.V1/1.0.0/Google.Cloud.AppHub.V1.Workload) \n\n public sealed class Workload : IMessage\u003cWorkload\u003e, IEquatable\u003cWorkload\u003e, IDeepCloneable\u003cWorkload\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the App Hub v1 API class Workload.\n\nWorkload is an App Hub data model that contains a discovered workload, which\nrepresents a binary deployment (such as managed instance groups (MIGs) and\nGKE deployments) that performs the smallest logical subset of business\nfunctionality. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e Workload \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[Workload](/dotnet/docs/reference/Google.Cloud.AppHub.V1/latest/Google.Cloud.AppHub.V1.Workload), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[Workload](/dotnet/docs/reference/Google.Cloud.AppHub.V1/latest/Google.Cloud.AppHub.V1.Workload), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[Workload](/dotnet/docs/reference/Google.Cloud.AppHub.V1/latest/Google.Cloud.AppHub.V1.Workload), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.AppHub.V1](/dotnet/docs/reference/Google.Cloud.AppHub.V1/latest/Google.Cloud.AppHub.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.AppHub.V1.dll\n\nConstructors\n------------\n\n### Workload()\n\n public Workload()\n\n### Workload(Workload)\n\n public Workload(Workload other)\n\nProperties\n----------\n\n### Attributes\n\n public Attributes Attributes { get; set; }\n\nOptional. Consumer provided attributes.\n\n### CreateTime\n\n public Timestamp CreateTime { get; set; }\n\nOutput only. Create time.\n\n### Description\n\n public string Description { get; set; }\n\nOptional. User-defined description of a Workload.\nCan have a maximum length of 2048 characters.\n\n### DiscoveredWorkload\n\n public string DiscoveredWorkload { get; set; }\n\nRequired. Immutable. The resource name of the original discovered workload.\n\n### DiscoveredWorkloadAsLocationName\n\n public LocationName DiscoveredWorkloadAsLocationName { get; set; }\n\n[LocationName](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.LocationName.html)-typed view over the [DiscoveredWorkload](/dotnet/docs/reference/Google.Cloud.AppHub.V1/latest/Google.Cloud.AppHub.V1.Workload#Google_Cloud_AppHub_V1_Workload_DiscoveredWorkload) resource name\nproperty.\n\n### DisplayName\n\n public string DisplayName { get; set; }\n\nOptional. User-defined name for the Workload.\nCan have a maximum length of 63 characters.\n\n### Name\n\n public string Name { get; set; }\n\nIdentifier. The resource name of the Workload. Format:\n`\"projects/{host-project-id}/locations/{location}/applications/{application-id}/workloads/{workload-id}\"`\n\n### State\n\n public Workload.Types.State State { get; set; }\n\nOutput only. Workload state.\n\n### Uid\n\n public string Uid { get; set; }\n\nOutput only. A universally unique identifier (UUID) for the `Workload` in\nthe UUID4 format.\n\n### UpdateTime\n\n public Timestamp UpdateTime { get; set; }\n\nOutput only. Update time.\n\n### WorkloadName\n\n public WorkloadName WorkloadName { get; set; }\n\n[WorkloadName](/dotnet/docs/reference/Google.Cloud.AppHub.V1/latest/Google.Cloud.AppHub.V1.WorkloadName)-typed view over the [Name](/dotnet/docs/reference/Google.Cloud.AppHub.V1/latest/Google.Cloud.AppHub.V1.Workload#Google_Cloud_AppHub_V1_Workload_Name) resource name property.\n\n### WorkloadProperties\n\n public WorkloadProperties WorkloadProperties { get; set; }\n\nOutput only. Properties of an underlying compute resource represented by\nthe Workload. These are immutable.\n\n### WorkloadReference\n\n public WorkloadReference WorkloadReference { get; set; }\n\nOutput only. Reference of an underlying compute resource represented by the\nWorkload. These are immutable."]]