- Resource: Target
- Methods
Resource: Target
A Target
resource in the Cloud Deploy API.
A Target
defines a location to which a Skaffold configuration can be deployed.
JSON representation |
---|
{ "name" : string , "targetId" : string , "uid" : string , "description" : string , "annotations" : { string : string , ... } , "labels" : { string : string , ... } , "requireApproval" : boolean , "createTime" : string , "updateTime" : string , "associatedEntities" : { string : { object ( |
name
string
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])?
targetId
string
Output only. Resource id of the Target
.
uid
string
Output only. Unique identifier of the Target
.
description
string
Optional. Description of the Target
. Max length is 255 characters.
annotations
map (key: string, value: string)
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.
An object containing a list of "key": value
pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }
.
labels
map (key: string, value: string)
Optional. Labels are attributes that can be set and used by both the user and by Cloud Deploy. Labels must meet the following constraints:
- Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes.
- All characters must use UTF-8 encoding, and international characters are allowed.
- Keys must start with a lowercase letter or international character.
- Each resource is limited to a maximum of 64 labels.
Both keys and values are additionally constrained to be <= 128 bytes.
An object containing a list of "key": value
pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }
.
requireApproval
boolean
Optional. Whether or not the Target
requires approval.
createTime
string (
Timestamp
format)
Output only. Time at which the Target
was created.
Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: "2014-10-02T15:01:23Z"
, "2014-10-02T15:01:23.045123456Z"
or "2014-10-02T15:01:23+05:30"
.
updateTime
string (
Timestamp
format)
Output only. Most recent time at which the Target
was updated.
Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: "2014-10-02T15:01:23Z"
, "2014-10-02T15:01:23.045123456Z"
or "2014-10-02T15:01:23+05:30"
.
associatedEntities
map (key: string, value: object (
AssociatedEntities
))
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])?$
.
An object containing a list of "key": value
pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }
.
etag
string
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.
executionConfigs[]
object (
ExecutionConfig
)
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 DEPLOY
ExecutionEnvironmentUsage
values. When no configurations are specified, execution will use the default specified in DefaultPool
.
deployParameters
map (key: string, value: string)
Optional. The deploy parameters to use for this target.
An object containing a list of "key": value
pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }
.
deployment_target
. Destination to which the Skaffold configuration is applied during a rollout. deployment_target
can be only one of the following:gke
object (
GkeCluster
)
Optional. Information specifying a GKE Cluster.
anthosCluster
object (
AnthosCluster
)
Optional. Information specifying an Anthos Cluster.
run
object (
CloudRunLocation
)
Optional. Information specifying a Cloud Run deployment target.
multiTarget
object (
MultiTarget
)
Optional. Information specifying a multiTarget.
customTarget
object (
CustomTarget
)
Optional. Information specifying a Custom Target.
GkeCluster
Information specifying a GKE Cluster.
JSON representation |
---|
{ "cluster" : string , "internalIp" : boolean , "proxyUrl" : string , "dnsEndpoint" : boolean } |
Fields | |
---|---|
cluster
|
Optional. Information specifying a GKE Cluster. Format is |
internalIp
|
Optional. If true, Only specify this option when |
proxyUrl
|
Optional. If set, used to configure a proxy to the Kubernetes server. |
dnsEndpoint
|
Optional. If set, the cluster will be accessed using the DNS endpoint. Note that both |
AnthosCluster
Information specifying an Anthos Cluster.
JSON representation |
---|
{ "membership" : string } |
Fields | |
---|---|
membership
|
Optional. Membership of the GKE Hub-registered cluster to which to apply the Skaffold configuration. Format is |
CloudRunLocation
Information specifying where to deploy a Cloud Run Service.
JSON representation |
---|
{ "location" : string } |
Fields | |
---|---|
location
|
Required. The location for the Cloud Run Service. Format must be |
MultiTarget
Information specifying a multiTarget.
JSON representation |
---|
{ "targetIds" : [ string ] } |
Fields | |
---|---|
targetIds[]
|
Required. The targetIds of this multiTarget. |
CustomTarget
Information specifying a Custom Target.
JSON representation |
---|
{ "customTargetType" : string } |
Fields | |
---|---|
customTargetType
|
Required. The name of the CustomTargetType. Format must be |
AssociatedEntities
Information about entities associated with a Target
.
JSON representation |
---|
{ "gkeClusters" : [ { object ( |
Fields | |
---|---|
gkeClusters[]
|
Optional. Information specifying GKE clusters as associated entities. |
anthosClusters[]
|
Optional. Information specifying Anthos clusters as associated entities. |
ExecutionConfig
Configuration of the environment to use when calling Skaffold.
JSON representation |
---|
{ "usages" : [ enum ( |
usages[]
enum (
ExecutionEnvironmentUsage
)
Required. Usages when this configuration should be applied.
workerPool
string
Optional. The resource name of the WorkerPool
, with the format projects/{project}/locations/{location}/workerPools/{workerPool}
. If this optional field is unspecified, the default Cloud Build pool will be used.
serviceAccount
string
Optional. Google service account to use for execution. If unspecified, the project execution service account (
artifactStorage
string
Optional. Cloud Storage location in which to store execution outputs. This can either be a bucket ("gs://my-bucket") or a path within a bucket ("gs://my-bucket/my-dir"). If unspecified, a default bucket located in the same region will be used.
executionTimeout
string (
Duration
format)
Optional. Execution timeout for a Cloud Build Execution. This must be between 10m and 24h in seconds format. If unspecified, a default timeout of 1h is used.
A duration in seconds with up to nine fractional digits, ending with ' s
'. Example: "3.5s"
.
verbose
boolean
Optional. If true, additional logging will be enabled when running builds in this execution environment.
execution_environment
. Details of the environment. execution_environment
can be only one of the following:defaultPool
object (
DefaultPool
)
Optional. Use default Cloud Build pool.
privatePool
object (
PrivatePool
)
Optional. Use private Cloud Build pool.
ExecutionEnvironmentUsage
Possible usages of this configuration.
Enums | |
---|---|
EXECUTION_ENVIRONMENT_USAGE_UNSPECIFIED
|
Default value. This value is unused. |
RENDER
|
Use for rendering. |
DEPLOY
|
Use for deploying and deployment hooks. |
VERIFY
|
Use for deployment verification. |
PREDEPLOY
|
Use for predeploy job execution. |
POSTDEPLOY
|
Use for postdeploy job execution. |
DefaultPool
Execution using the default Cloud Build pool.
JSON representation |
---|
{ "serviceAccount" : string , "artifactStorage" : string } |
Fields | |
---|---|
serviceAccount
|
Optional. Google service account to use for execution. If unspecified, the project execution service account ( |
artifactStorage
|
Optional. Cloud Storage location where execution outputs should be stored. This can either be a bucket ("gs://my-bucket") or a path within a bucket ("gs://my-bucket/my-dir"). If unspecified, a default bucket located in the same region will be used. |
PrivatePool
Execution using a private Cloud Build pool.
JSON representation |
---|
{ "workerPool" : string , "serviceAccount" : string , "artifactStorage" : string } |
Fields | |
---|---|
workerPool
|
Required. Resource name of the Cloud Build worker pool to use. The format is |
serviceAccount
|
Optional. Google service account to use for execution. If unspecified, the project execution service account ( |
artifactStorage
|
Optional. Cloud Storage location where execution outputs should be stored. This can either be a bucket ("gs://my-bucket") or a path within a bucket ("gs://my-bucket/my-dir"). If unspecified, a default bucket located in the same region will be used. |
Methods |
|
---|---|
|
Creates a new Target in a given project and location. |
|
Deletes a single Target. |
|
Gets details of a single Target. |
|
Gets the access control policy for a resource. |
|
Lists Targets in a given project and location. |
|
Updates the parameters of a single Target. |
|
Sets the access control policy on the specified resource. |
|
Returns permissions that a caller has on the specified resource. |