Skip to content

Commit

Permalink
feat: add Pipeline.secret_environment, Action.secret_environment, Vir…
Browse files Browse the repository at this point in the history
…tualMachine.reservation

PiperOrigin-RevId: 488460572
  • Loading branch information
Google APIs authored and Copybara-Service committed Nov 14, 2022
1 parent f10c285 commit c2f6dac
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 6 deletions.
35 changes: 31 additions & 4 deletions google/cloud/lifesciences/v2beta/BUILD.bazel
Expand Up @@ -39,6 +39,7 @@ proto_library_with_info(
deps = [
":lifesciences_proto",
"//google/cloud:common_resources_proto",
"//google/cloud/location:location_proto",
],
)

Expand Down Expand Up @@ -68,14 +69,19 @@ java_grpc_library(
java_gapic_library(
name = "lifesciences_java_gapic",
srcs = [":lifesciences_proto_with_info"],
gapic_yaml = None,
grpc_service_config = "lifesciences_grpc_service_config.json",
rest_numeric_enums = False,
service_yaml = "lifesciences_v2beta.yaml",
test_deps = [
":lifesciences_java_grpc",
"//google/cloud/location:location_java_grpc",
],
transport = "grpc+rest",
deps = [
":lifesciences_java_proto",
"//google/api:api_java_proto",
"//google/cloud/location:location_java_proto",
],
)

Expand Down Expand Up @@ -135,6 +141,7 @@ go_gapic_library(
transport = "grpc+rest",
deps = [
":lifesciences_go_proto",
"//google/cloud/location:location_go_proto",
"//google/longrunning:longrunning_go_proto",
"@com_google_cloud_go//longrunning:go_default_library",
"@com_google_cloud_go//longrunning/autogen:go_default_library",
Expand Down Expand Up @@ -176,7 +183,10 @@ py_gapic_library(
grpc_service_config = "lifesciences_grpc_service_config.json",
opt_args = ["warehouse-package-name=google-cloud-life-sciences"],
rest_numeric_enums = False,
service_yaml = "lifesciences_v2beta.yaml",
transport = "grpc+rest",
deps = [
],
)

py_test(
Expand Down Expand Up @@ -298,17 +308,18 @@ ruby_cloud_gapic_library(
name = "lifesciences_ruby_gapic",
srcs = [":lifesciences_proto_with_info"],
extra_protoc_parameters = [
"ruby-cloud-gem-name=google-cloud-life_sciences-v2beta",
"ruby-cloud-env-prefix=LIFE_SCIENCES",
"ruby-cloud-product-url=https://cloud.google.com/life-sciences/",
"ruby-cloud-api-id=lifesciences.googleapis.com",
"ruby-cloud-api-shortname=lifesciences",
"ruby-cloud-env-prefix=LIFE_SCIENCES",
"ruby-cloud-gem-name=google-cloud-life_sciences-v2beta",
"ruby-cloud-product-url=https://cloud.google.com/life-sciences/",
"ruby-cloud-service-override=WorkflowsServiceV2Beta=WorkflowsService",
],
grpc_service_config = "lifesciences_grpc_service_config.json",
rest_numeric_enums = False,
ruby_cloud_description = "Cloud Life Sciences is a suite of services and tools for managing, processing, and transforming life sciences data. It also enables advanced insights and operational workflows using highly scalable and compliant infrastructure.",
ruby_cloud_title = "Cloud Life Sciences V2beta",
service_yaml = "lifesciences_v2beta.yaml",
deps = [
":lifesciences_ruby_grpc",
":lifesciences_ruby_proto",
Expand Down Expand Up @@ -373,4 +384,20 @@ csharp_gapic_assembly_pkg(
##############################################################################
# C++
##############################################################################
# Put your C++ rules here
load(
"@com_google_googleapis_imports//:imports.bzl",
"cc_grpc_library",
"cc_proto_library",
)

cc_proto_library(
name = "lifesciences_cc_proto",
deps = [":lifesciences_proto"],
)

cc_grpc_library(
name = "lifesciences_cc_grpc",
srcs = [":lifesciences_proto"],
grpc_only = True,
deps = [":lifesciences_cc_proto"],
)
2 changes: 2 additions & 0 deletions google/cloud/lifesciences/v2beta/lifesciences_v2beta.yaml
Expand Up @@ -5,6 +5,8 @@ title: Cloud Life Sciences API

apis:
- name: google.cloud.lifesciences.v2beta.WorkflowsServiceV2Beta
- name: google.cloud.location.Locations
- name: google.longrunning.Operations

types:
- name: google.cloud.lifesciences.v2beta.ContainerKilledEvent
Expand Down
28 changes: 26 additions & 2 deletions google/cloud/lifesciences/v2beta/workflows.proto
@@ -1,4 +1,4 @@
// Copyright 2021 Google LLC
// Copyright 2022 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand All @@ -17,12 +17,12 @@ syntax = "proto3";
package google.cloud.lifesciences.v2beta;

import "google/api/annotations.proto";
import "google/api/client.proto";
import "google/api/field_behavior.proto";
import "google/longrunning/operations.proto";
import "google/protobuf/duration.proto";
import "google/protobuf/timestamp.proto";
import "google/rpc/code.proto";
import "google/api/client.proto";

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

// The encrypted environment to pass into every action. Each action can also
// specify its own encrypted environment.
//
// The secret must decrypt to a JSON-encoded dictionary where key-value pairs
// serve as environment variable names and their values. The decoded
// environment variables can overwrite the values specified by the
// `environment` field.
Secret encrypted_environment = 5;

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

// The encrypted environment to pass into the container. This environment is
// merged with values specified in the
// [google.cloud.lifesciences.v2beta.Pipeline][google.cloud.lifesciences.v2beta.Pipeline] message, overwriting any
// duplicate values.
//
// The secret must decrypt to a JSON-encoded dictionary where key-value pairs
// serve as environment variable names and their values. The decoded
// environment variables can overwrite the values specified by the
// `environment` field.
Secret encrypted_environment = 21;

// An optional identifier for a PID namespace to run the action inside.
// Multiple actions should use the same string to share a namespace. If
// unspecified, a separate isolated namespace is used.
Expand Down Expand Up @@ -408,6 +428,10 @@ message VirtualMachine {
//
// Specify either the `volumes[]` field or the `disks[]` field, but not both.
repeated Volume volumes = 14;

// If specified, the VM will only be allocated inside the matching
// reservation. It will fail if the VM parameters don't match the reservation.
string reservation = 15;
}

// Carries information about a Google Cloud service account.
Expand Down

0 comments on commit c2f6dac

Please sign in to comment.