|
1 | | -// Copyright 2021 Google LLC |
| 1 | +// Copyright 2022 Google LLC |
2 | 2 | // |
3 | 3 | // Licensed under the Apache License, Version 2.0 (the "License"); |
4 | 4 | // you may not use this file except in compliance with the License. |
@@ -17,12 +17,12 @@ syntax = "proto3"; |
17 | 17 | package google.cloud.lifesciences.v2beta; |
18 | 18 |
|
19 | 19 | import "google/api/annotations.proto"; |
| 20 | +import "google/api/client.proto"; |
20 | 21 | import "google/api/field_behavior.proto"; |
21 | 22 | import "google/longrunning/operations.proto"; |
22 | 23 | import "google/protobuf/duration.proto"; |
23 | 24 | import "google/protobuf/timestamp.proto"; |
24 | 25 | import "google/rpc/code.proto"; |
25 | | -import "google/api/client.proto"; |
26 | 26 |
|
27 | 27 | option csharp_namespace = "Google.Cloud.LifeSciences.V2Beta"; |
28 | 28 | option go_package = "google.golang.org/genproto/googleapis/cloud/lifesciences/v2beta;lifesciences"; |
@@ -112,6 +112,15 @@ message Pipeline { |
112 | 112 | // (though they can overwrite it with a different value). |
113 | 113 | map<string, string> environment = 3; |
114 | 114 |
|
| 115 | + // The encrypted environment to pass into every action. Each action can also |
| 116 | + // specify its own encrypted environment. |
| 117 | + // |
| 118 | + // The secret must decrypt to a JSON-encoded dictionary where key-value pairs |
| 119 | + // serve as environment variable names and their values. The decoded |
| 120 | + // environment variables can overwrite the values specified by the |
| 121 | + // `environment` field. |
| 122 | + Secret encrypted_environment = 5; |
| 123 | + |
115 | 124 | // The maximum amount of time to give the pipeline to complete. This includes |
116 | 125 | // the time spent waiting for a worker to be allocated. If the pipeline fails |
117 | 126 | // to complete before the timeout, it will be cancelled and the error code |
@@ -172,6 +181,17 @@ message Action { |
172 | 181 | // authors to determine whether an individual action has succeeded or failed. |
173 | 182 | map<string, string> environment = 5; |
174 | 183 |
|
| 184 | + // The encrypted environment to pass into the container. This environment is |
| 185 | + // merged with values specified in the |
| 186 | + // [google.cloud.lifesciences.v2beta.Pipeline][google.cloud.lifesciences.v2beta.Pipeline] message, overwriting any |
| 187 | + // duplicate values. |
| 188 | + // |
| 189 | + // The secret must decrypt to a JSON-encoded dictionary where key-value pairs |
| 190 | + // serve as environment variable names and their values. The decoded |
| 191 | + // environment variables can overwrite the values specified by the |
| 192 | + // `environment` field. |
| 193 | + Secret encrypted_environment = 21; |
| 194 | + |
175 | 195 | // An optional identifier for a PID namespace to run the action inside. |
176 | 196 | // Multiple actions should use the same string to share a namespace. If |
177 | 197 | // unspecified, a separate isolated namespace is used. |
@@ -408,6 +428,10 @@ message VirtualMachine { |
408 | 428 | // |
409 | 429 | // Specify either the `volumes[]` field or the `disks[]` field, but not both. |
410 | 430 | repeated Volume volumes = 14; |
| 431 | + |
| 432 | + // If specified, the VM will only be allocated inside the matching |
| 433 | + // reservation. It will fail if the VM parameters don't match the reservation. |
| 434 | + string reservation = 15; |
411 | 435 | } |
412 | 436 |
|
413 | 437 | // Carries information about a Google Cloud service account. |
|