Skip to content

Commit cafa199

Browse files
feat: add Pipeline.secret_environment, Action.secret_environment, VirtualMachine.reservation (#3634)
- [ ] Regenerate this pull request now. chore: disallow "transport=rest" for services where numeric enums are not confirmed to be supported (except in PHP and Java) PiperOrigin-RevId: 493113566 Source-Link: https://togithub.com/googleapis/googleapis/commit/758f0d1217d9c7fe398aa5efb1057ce4b6409e55 Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/78bd8f05e1276363eb14eae70e91fe4bc20703ab Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWxpZmVzY2llbmNlcy8uT3dsQm90LnlhbWwiLCJoIjoiNzhiZDhmMDVlMTI3NjM2M2ViMTRlYWU3MGU5MWZlNGJjMjA3MDNhYiJ9 BEGIN_NESTED_COMMIT feat: add Pipeline.secret_environment, Action.secret_environment, VirtualMachine.reservation PiperOrigin-RevId: 488460572 Source-Link: https://togithub.com/googleapis/googleapis/commit/c2f6dac411677a57ddce5c8a232c764e6640d968 Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/2b4b17aeaa09c61bf86c702502bdf2d1644afb79 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWxpZmVzY2llbmNlcy8uT3dsQm90LnlhbWwiLCJoIjoiMmI0YjE3YWVhYTA5YzYxYmY4NmM3MDI1MDJiZGYyZDE2NDRhZmI3OSJ9 END_NESTED_COMMIT
1 parent db012f5 commit cafa199

6 files changed

Lines changed: 967 additions & 20 deletions

File tree

packages/google-cloud-lifesciences/protos/google/cloud/lifesciences/v2beta/workflows.proto

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2021 Google LLC
1+
// Copyright 2022 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -17,12 +17,12 @@ syntax = "proto3";
1717
package google.cloud.lifesciences.v2beta;
1818

1919
import "google/api/annotations.proto";
20+
import "google/api/client.proto";
2021
import "google/api/field_behavior.proto";
2122
import "google/longrunning/operations.proto";
2223
import "google/protobuf/duration.proto";
2324
import "google/protobuf/timestamp.proto";
2425
import "google/rpc/code.proto";
25-
import "google/api/client.proto";
2626

2727
option csharp_namespace = "Google.Cloud.LifeSciences.V2Beta";
2828
option go_package = "google.golang.org/genproto/googleapis/cloud/lifesciences/v2beta;lifesciences";
@@ -112,6 +112,15 @@ message Pipeline {
112112
// (though they can overwrite it with a different value).
113113
map<string, string> environment = 3;
114114

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+
115124
// The maximum amount of time to give the pipeline to complete. This includes
116125
// the time spent waiting for a worker to be allocated. If the pipeline fails
117126
// to complete before the timeout, it will be cancelled and the error code
@@ -172,6 +181,17 @@ message Action {
172181
// authors to determine whether an individual action has succeeded or failed.
173182
map<string, string> environment = 5;
174183

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+
175195
// An optional identifier for a PID namespace to run the action inside.
176196
// Multiple actions should use the same string to share a namespace. If
177197
// unspecified, a separate isolated namespace is used.
@@ -408,6 +428,10 @@ message VirtualMachine {
408428
//
409429
// Specify either the `volumes[]` field or the `disks[]` field, but not both.
410430
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;
411435
}
412436

413437
// Carries information about a Google Cloud service account.

packages/google-cloud-lifesciences/protos/protos.d.ts

Lines changed: 18 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)