googleapis/google/cloud/run/v2/task_template.proto
Google APIs a9fb0d2fa8 feat: Adds support for Startup CPU Boost (GA)
feat: Adds support for Session affinity in Service (GA)
feat: New 'port' field for HttpGetAction probe type
feat: New fields/enum values
docs: General documentation fixes.

Startup CPU Boost
 * The new field is found in https://cloud.google.com/run/docs/reference/rest/v2/Container#resourcerequirements.
 * For more information, see https://cloud.google.com/run/docs/configuring/cpu#startup-boost

Session Affinity
 * The new field is found in https://cloud.google.com/run/docs/reference/rest/v2/projects.locations.services#revisiontemplate.
 * For more informaton, see https://cloud.google.com/run/docs/configuring/session-affinity

HttpGetAction probe port
 * The new field is found in https://cloud.google.com/run/docs/reference/rest/v2/Container#httpgetaction

Fields/enum values
* New output-only field satisfiesPzs in Service, Revision, Execution, and Job, currently unused. The field is reserved for future use. It is surfaced to maintain v1<->v2 portability.
* New ExecutionReason.CANCELLING enum value. This is used in output-only field.

Documentation fixes
* Clarified permissions required for Upsert behavior (UpdateServiceRequest.allowMissing)
* Clarified behavior for LaunchStage in all resource types.
* Misc documentation improvements; removed most external references.

PiperOrigin-RevId: 528248744
2023-04-30 00:56:15 -07:00

70 lines
2.6 KiB
Protocol Buffer

// Copyright 2023 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
syntax = "proto3";
package google.cloud.run.v2;
import "google/api/resource.proto";
import "google/cloud/run/v2/k8s.min.proto";
import "google/cloud/run/v2/vendor_settings.proto";
import "google/protobuf/duration.proto";
option go_package = "cloud.google.com/go/run/apiv2/runpb;runpb";
option java_multiple_files = true;
option java_outer_classname = "TaskTemplateProto";
option java_package = "com.google.cloud.run.v2";
// TaskTemplate describes the data a task should have when created
// from a template.
message TaskTemplate {
// Holds the single container that defines the unit of execution for this
// task.
repeated Container containers = 1;
// A list of Volumes to make available to containers.
repeated Volume volumes = 2;
oneof retries {
// Number of retries allowed per Task, before marking this Task failed.
// Defaults to 3.
int32 max_retries = 3;
}
// Max allowed time duration the Task may be active before the system will
// actively try to mark it failed and kill associated containers. This applies
// per attempt of a task, meaning each retry can run for the full timeout.
// Defaults to 600 seconds.
google.protobuf.Duration timeout = 4;
// Email address of the IAM service account associated with the Task of a
// Job. The service account represents the identity of the
// running task, and determines what permissions the task has. If
// not provided, the task will use the project's default service account.
string service_account = 5;
// The execution environment being used to host this Task.
ExecutionEnvironment execution_environment = 6;
// A reference to a customer managed encryption key (CMEK) to use to encrypt
// this container image. For more information, go to
// https://cloud.google.com/run/docs/securing/using-cmek
string encryption_key = 7 [(google.api.resource_reference) = {
type: "cloudkms.googleapis.com/CryptoKey"
}];
// VPC Access configuration to use for this Task. For more information,
// visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
VpcAccess vpc_access = 8;
}