public MapField<string, string> Annotations { get; }
Optional. User annotations. These attributes can only be set and used by
the user, and not by Cloud Deploy. See
https://google.aip.dev/128#annotations for more details such as format and
size limitations.
public MapField<string, AssociatedEntities> AssociatedEntities { get; }
Optional. Map of entity IDs to their associated entities. Associated
entities allows specifying places other than the deployment target for
specific features. For example, the Gateway API canary can be configured to
deploy the HTTPRoute to a different cluster(s) than the deployment cluster
using associated entities. An entity ID must consist of lower-case letters,
numbers, and hyphens, start with a letter and end with a letter or a
number, and have a max length of 63 characters. In other words, it must
match the following regex: ^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$.
Optional. This checksum is computed by the server based on the value of
other fields, and may be sent on update and delete requests to ensure the
client has an up-to-date value before proceeding.
public RepeatedField<ExecutionConfig> ExecutionConfigs { get; }
Optional. Configurations for all execution that relates to this Target.
Each ExecutionEnvironmentUsage value may only be used in a single
configuration; using the same value multiple times is an error.
When one or more configurations are specified, they must include the
RENDER and DEPLOYExecutionEnvironmentUsage values.
When no configurations are specified, execution will use the default
specified in DefaultPool.
Identifier. Name of the Target. Format is
projects/{project}/locations/{location}/targets/{target}.
The target component must match [a-z]([a-z0-9-]{0,61}[a-z0-9])?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe latest version of the Google.Cloud.Deploy.V1.Target API is 3.4.0, with multiple previous versions available, ranging down to version 1.0.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eTarget\u003c/code\u003e class, part of the Google Cloud Deploy v1 API, defines a location for deploying Skaffold configurations.\u003c/p\u003e\n"],["\u003cp\u003eA \u003ccode\u003eTarget\u003c/code\u003e can be associated with different deployment environments, including Anthos Clusters, GKE Clusters, Cloud Run, or custom targets, and supports features like user annotations and labels for detailed configuration.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eTarget\u003c/code\u003e class includes properties for managing configurations, such as \u003ccode\u003eDeployParameters\u003c/code\u003e, \u003ccode\u003eExecutionConfigs\u003c/code\u003e, and \u003ccode\u003eRequireApproval\u003c/code\u003e, along with output-only properties like \u003ccode\u003eCreateTime\u003c/code\u003e, \u003ccode\u003eUpdateTime\u003c/code\u003e, and \u003ccode\u003eUid\u003c/code\u003e for managing the target's lifecycle.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eTarget\u003c/code\u003e class also provides optional descriptive properties like \u003ccode\u003eDescription\u003c/code\u003e, \u003ccode\u003eEtag\u003c/code\u003e and the \u003ccode\u003eTargetId\u003c/code\u003e, to help better understand the purpose of the configuration.\u003c/p\u003e\n"]]],[],null,["# Google Cloud Deploy v1 API - Class Target (3.6.0)\n\nVersion latestkeyboard_arrow_down\n\n- [3.6.0 (latest)](/dotnet/docs/reference/Google.Cloud.Deploy.V1/latest/Google.Cloud.Deploy.V1.Target)\n- [3.5.0](/dotnet/docs/reference/Google.Cloud.Deploy.V1/3.5.0/Google.Cloud.Deploy.V1.Target)\n- [3.4.0](/dotnet/docs/reference/Google.Cloud.Deploy.V1/3.4.0/Google.Cloud.Deploy.V1.Target)\n- [3.3.0](/dotnet/docs/reference/Google.Cloud.Deploy.V1/3.3.0/Google.Cloud.Deploy.V1.Target)\n- [3.2.0](/dotnet/docs/reference/Google.Cloud.Deploy.V1/3.2.0/Google.Cloud.Deploy.V1.Target)\n- [3.1.0](/dotnet/docs/reference/Google.Cloud.Deploy.V1/3.1.0/Google.Cloud.Deploy.V1.Target)\n- [3.0.0](/dotnet/docs/reference/Google.Cloud.Deploy.V1/3.0.0/Google.Cloud.Deploy.V1.Target)\n- [2.19.0](/dotnet/docs/reference/Google.Cloud.Deploy.V1/2.19.0/Google.Cloud.Deploy.V1.Target)\n- [2.18.0](/dotnet/docs/reference/Google.Cloud.Deploy.V1/2.18.0/Google.Cloud.Deploy.V1.Target)\n- [2.17.0](/dotnet/docs/reference/Google.Cloud.Deploy.V1/2.17.0/Google.Cloud.Deploy.V1.Target)\n- [2.16.0](/dotnet/docs/reference/Google.Cloud.Deploy.V1/2.16.0/Google.Cloud.Deploy.V1.Target)\n- [2.15.0](/dotnet/docs/reference/Google.Cloud.Deploy.V1/2.15.0/Google.Cloud.Deploy.V1.Target)\n- [2.14.0](/dotnet/docs/reference/Google.Cloud.Deploy.V1/2.14.0/Google.Cloud.Deploy.V1.Target)\n- [2.13.0](/dotnet/docs/reference/Google.Cloud.Deploy.V1/2.13.0/Google.Cloud.Deploy.V1.Target)\n- [2.12.0](/dotnet/docs/reference/Google.Cloud.Deploy.V1/2.12.0/Google.Cloud.Deploy.V1.Target)\n- [2.11.0](/dotnet/docs/reference/Google.Cloud.Deploy.V1/2.11.0/Google.Cloud.Deploy.V1.Target)\n- [2.10.0](/dotnet/docs/reference/Google.Cloud.Deploy.V1/2.10.0/Google.Cloud.Deploy.V1.Target)\n- [2.9.0](/dotnet/docs/reference/Google.Cloud.Deploy.V1/2.9.0/Google.Cloud.Deploy.V1.Target)\n- [2.8.0](/dotnet/docs/reference/Google.Cloud.Deploy.V1/2.8.0/Google.Cloud.Deploy.V1.Target)\n- [2.7.0](/dotnet/docs/reference/Google.Cloud.Deploy.V1/2.7.0/Google.Cloud.Deploy.V1.Target)\n- [2.6.0](/dotnet/docs/reference/Google.Cloud.Deploy.V1/2.6.0/Google.Cloud.Deploy.V1.Target)\n- [2.5.0](/dotnet/docs/reference/Google.Cloud.Deploy.V1/2.5.0/Google.Cloud.Deploy.V1.Target)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.Deploy.V1/2.4.0/Google.Cloud.Deploy.V1.Target)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.Deploy.V1/2.3.0/Google.Cloud.Deploy.V1.Target)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.Deploy.V1/2.2.0/Google.Cloud.Deploy.V1.Target)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.Deploy.V1/2.1.0/Google.Cloud.Deploy.V1.Target)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.Deploy.V1/2.0.0/Google.Cloud.Deploy.V1.Target)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.Deploy.V1/1.1.0/Google.Cloud.Deploy.V1.Target)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.Deploy.V1/1.0.0/Google.Cloud.Deploy.V1.Target) \n\n public sealed class Target : IMessage\u003cTarget\u003e, IEquatable\u003cTarget\u003e, IDeepCloneable\u003cTarget\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Cloud Deploy v1 API class Target.\n\nA `Target` resource in the Cloud Deploy API.\n\nA `Target` defines a location to which a Skaffold configuration\ncan be deployed. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e Target \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[Target](/dotnet/docs/reference/Google.Cloud.Deploy.V1/latest/Google.Cloud.Deploy.V1.Target), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[Target](/dotnet/docs/reference/Google.Cloud.Deploy.V1/latest/Google.Cloud.Deploy.V1.Target), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[Target](/dotnet/docs/reference/Google.Cloud.Deploy.V1/latest/Google.Cloud.Deploy.V1.Target), [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.Deploy.V1](/dotnet/docs/reference/Google.Cloud.Deploy.V1/latest/Google.Cloud.Deploy.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.Deploy.V1.dll\n\nConstructors\n------------\n\n### Target()\n\n public Target()\n\n### Target(Target)\n\n public Target(Target other)\n\nProperties\n----------\n\n### Annotations\n\n public MapField\u003cstring, string\u003e Annotations { get; }\n\nOptional. User annotations. These attributes can only be set and used by\nthe user, and not by Cloud Deploy. See\n\u003chttps://google.aip.dev/128#annotations\u003e for more details such as format and\nsize limitations.\n\n### AnthosCluster\n\n public AnthosCluster AnthosCluster { get; set; }\n\nOptional. Information specifying an Anthos Cluster.\n\n### AssociatedEntities\n\n public MapField\u003cstring, AssociatedEntities\u003e AssociatedEntities { get; }\n\nOptional. Map of entity IDs to their associated entities. Associated\nentities allows specifying places other than the deployment target for\nspecific features. For example, the Gateway API canary can be configured to\ndeploy the HTTPRoute to a different cluster(s) than the deployment cluster\nusing associated entities. An entity ID must consist of lower-case letters,\nnumbers, and hyphens, start with a letter and end with a letter or a\nnumber, and have a max length of 63 characters. In other words, it must\nmatch the following regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.\n\n### CreateTime\n\n public Timestamp CreateTime { get; set; }\n\nOutput only. Time at which the `Target` was created.\n\n### CustomTarget\n\n public CustomTarget CustomTarget { get; set; }\n\nOptional. Information specifying a Custom Target.\n\n### DeployParameters\n\n public MapField\u003cstring, string\u003e DeployParameters { get; }\n\nOptional. The deploy parameters to use for this target.\n\n### DeploymentTargetCase\n\n public Target.DeploymentTargetOneofCase DeploymentTargetCase { get; }\n\n### Description\n\n public string Description { get; set; }\n\nOptional. Description of the `Target`. Max length is 255 characters.\n\n### Etag\n\n public string Etag { get; set; }\n\nOptional. This checksum is computed by the server based on the value of\nother fields, and may be sent on update and delete requests to ensure the\nclient has an up-to-date value before proceeding.\n\n### ExecutionConfigs\n\n public RepeatedField\u003cExecutionConfig\u003e ExecutionConfigs { get; }\n\nOptional. Configurations for all execution that relates to this `Target`.\nEach `ExecutionEnvironmentUsage` value may only be used in a single\nconfiguration; using the same value multiple times is an error.\nWhen one or more configurations are specified, they must include the\n`RENDER` and `DEPLOY` `ExecutionEnvironmentUsage` values.\nWhen no configurations are specified, execution will use the default\nspecified in `DefaultPool`.\n\n### Gke\n\n public GkeCluster Gke { get; set; }\n\nOptional. Information specifying a GKE Cluster.\n\n### Labels\n\n public MapField\u003cstring, string\u003e Labels { get; }\n\nOptional. Labels are attributes that can be set and used by both the\nuser and by Cloud Deploy. Labels must meet the following constraints:\n\n- Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes.\n- All characters must use UTF-8 encoding, and international characters are allowed.\n- Keys must start with a lowercase letter or international character.\n- Each resource is limited to a maximum of 64 labels.\n\nBoth keys and values are additionally constrained to be \\\u003c= 128 bytes.\n\n### MultiTarget\n\n public MultiTarget MultiTarget { get; set; }\n\nOptional. Information specifying a multiTarget.\n\n### Name\n\n public string Name { get; set; }\n\nIdentifier. Name of the `Target`. Format is\n`projects/{project}/locations/{location}/targets/{target}`.\nThe `target` component must match `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`\n\n### RequireApproval\n\n public bool RequireApproval { get; set; }\n\nOptional. Whether or not the `Target` requires approval.\n\n### Run\n\n public CloudRunLocation Run { get; set; }\n\nOptional. Information specifying a Cloud Run deployment target.\n\n### TargetId\n\n public string TargetId { get; set; }\n\nOutput only. Resource id of the `Target`.\n\n### TargetName\n\n public TargetName TargetName { get; set; }\n\n[TargetName](/dotnet/docs/reference/Google.Cloud.Deploy.V1/latest/Google.Cloud.Deploy.V1.TargetName)-typed view over the [Name](/dotnet/docs/reference/Google.Cloud.Deploy.V1/latest/Google.Cloud.Deploy.V1.Target#Google_Cloud_Deploy_V1_Target_Name) resource name property.\n\n### Uid\n\n public string Uid { get; set; }\n\nOutput only. Unique identifier of the `Target`.\n\n### UpdateTime\n\n public Timestamp UpdateTime { get; set; }\n\nOutput only. Most recent time at which the `Target` was updated."]]