Resource: Target
A Target resource in the Google 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, "etag": string, "executionConfigs": [ { object ( |
|
| Fields | ||
|---|---|---|
name |
Optional. Name of the |
|
targetId |
Output only. Resource id of the |
|
uid |
Output only. Unique identifier of the |
|
description |
Optional. Description of the |
|
annotations |
Optional. User annotations. These attributes can only be set and used by the user, and not by Google Cloud Deploy. See https://google.aip.dev/128#annotations for more details such as format and size limitations. An object containing a list of |
|
labels |
Optional. Labels are attributes that can be set and used by both the user and by Google Cloud Deploy. Labels must meet the following constraints: Each resource is limited to 64 labels. Keys must conform to the regexp: [a-zA-Z][a-zA-Z0-9_-]{0,62} Values must conform to the regexp: [a-zA-Z0-9_-]{0,63} Both keys and values are additionally constrained to be <= 128 bytes in size. An object containing a list of |
|
requireApproval |
Optional. Whether or not the |
|
createTime |
Output only. Time at which the A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
|
updateTime |
Output only. Most recent time at which the A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
|
etag |
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[] |
Configurations for all execution that relates to this |
|
Union field deployment_target. Destination to which the Skaffold configuration is applied during a rollout. deployment_target can be only one of the following: |
||
gkeCluster |
Information specifying a GKE Cluster. |
|
cluster |
Information specifying a GKE Cluster. |
|
gke |
Information specifying a GKE Cluster. |
|
GKECluster
Information specifying a GKE Cluster.
| JSON representation | |
|---|---|
{ "project": string, "cluster": string, "location": string } |
|
| Fields | |
|---|---|
project |
Project in which the cluster is located. |
cluster |
Name of the cluster. |
location |
Location of the cluster. |
GkeCluster
Information specifying a GKE Cluster.
| JSON representation | |
|---|---|
{ "cluster": string } |
|
| Fields | |
|---|---|
cluster |
Information specifying a GKE Cluster. Format is `projects/{projectId}/locations/{locationId}/clusters/{cluster_id}. |
ExecutionConfig
Configuration of the environment to use when calling Skaffold.
| JSON representation | |
|---|---|
{ "usages": [ enum ( |
|
| Fields | ||
|---|---|---|
usages[] |
Required. Usages when this configuration should be applied. |
|
Union field execution_environment. Details of the environment. execution_environment can be only one of the following: |
||
defaultPool |
Optional. Use default Cloud Build pool. |
|
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. |
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 shared Target. |
|
Gets details of a single shared Target. |
|
Lists Targets in a given project and location. |
|
Updates the parameters of a shared single Target. |