diff --git a/google/cloud/lifesciences/v2beta/BUILD.bazel b/google/cloud/lifesciences/v2beta/BUILD.bazel index bc89affe55f27..567bf9abb7dd3 100644 --- a/google/cloud/lifesciences/v2beta/BUILD.bazel +++ b/google/cloud/lifesciences/v2beta/BUILD.bazel @@ -39,6 +39,7 @@ proto_library_with_info( deps = [ ":lifesciences_proto", "//google/cloud:common_resources_proto", + "//google/cloud/location:location_proto", ], ) @@ -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", ], ) @@ -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", @@ -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( @@ -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", @@ -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"], +) diff --git a/google/cloud/lifesciences/v2beta/lifesciences_v2beta.yaml b/google/cloud/lifesciences/v2beta/lifesciences_v2beta.yaml index c3b14c1a70639..5f0c0f9841f85 100644 --- a/google/cloud/lifesciences/v2beta/lifesciences_v2beta.yaml +++ b/google/cloud/lifesciences/v2beta/lifesciences_v2beta.yaml @@ -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 diff --git a/google/cloud/lifesciences/v2beta/workflows.proto b/google/cloud/lifesciences/v2beta/workflows.proto index b69928ffa8f41..2e9c576c63f55 100644 --- a/google/cloud/lifesciences/v2beta/workflows.proto +++ b/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. @@ -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"; @@ -112,6 +112,15 @@ message Pipeline { // (though they can overwrite it with a different value). map 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 @@ -172,6 +181,17 @@ message Action { // authors to determine whether an individual action has succeeded or failed. map 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. @@ -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.