google-cloud-life_sciences-v2beta 0.3.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -3
- data/lib/google/cloud/life_sciences/v2beta/bindings_override.rb +102 -0
- data/lib/google/cloud/life_sciences/v2beta/rest.rb +38 -0
- data/lib/google/cloud/life_sciences/v2beta/version.rb +1 -1
- data/lib/google/cloud/life_sciences/v2beta/workflows_service/client.rb +10 -10
- data/lib/google/cloud/life_sciences/v2beta/workflows_service/operations.rb +14 -16
- data/lib/google/cloud/life_sciences/v2beta/workflows_service/rest/client.rb +411 -0
- data/lib/google/cloud/life_sciences/v2beta/workflows_service/rest/operations.rb +793 -0
- data/lib/google/cloud/life_sciences/v2beta/workflows_service/rest/service_stub.rb +108 -0
- data/lib/google/cloud/life_sciences/v2beta/workflows_service/rest.rb +54 -0
- data/lib/google/cloud/life_sciences/v2beta/workflows_service.rb +7 -1
- data/lib/google/cloud/life_sciences/v2beta.rb +7 -2
- data/lib/google/cloud/lifesciences/v2beta/workflows_pb.rb +26 -172
- data/lib/google/cloud/lifesciences/v2beta/workflows_services_pb.rb +4 -4
- data/proto_docs/google/api/client.rb +67 -4
- data/proto_docs/google/cloud/lifesciences/v2beta/workflows.rb +34 -22
- data/proto_docs/google/protobuf/any.rb +7 -4
- data/proto_docs/google/protobuf/timestamp.rb +1 -3
- data/proto_docs/google/rpc/code.rb +6 -6
- data/proto_docs/google/rpc/status.rb +4 -2
- metadata +17 -10
@@ -0,0 +1,108 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2023 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
require "google/cloud/lifesciences/v2beta/workflows_pb"
|
20
|
+
|
21
|
+
module Google
|
22
|
+
module Cloud
|
23
|
+
module LifeSciences
|
24
|
+
module V2beta
|
25
|
+
module WorkflowsService
|
26
|
+
module Rest
|
27
|
+
##
|
28
|
+
# REST service stub for the WorkflowsService service.
|
29
|
+
# Service stub contains baseline method implementations
|
30
|
+
# including transcoding, making the REST call, and deserialing the response.
|
31
|
+
#
|
32
|
+
class ServiceStub
|
33
|
+
def initialize endpoint:, credentials:
|
34
|
+
# These require statements are intentionally placed here to initialize
|
35
|
+
# the REST modules only when it's required.
|
36
|
+
require "gapic/rest"
|
37
|
+
|
38
|
+
@client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, credentials: credentials,
|
39
|
+
numeric_enums: true,
|
40
|
+
raise_faraday_errors: false
|
41
|
+
end
|
42
|
+
|
43
|
+
##
|
44
|
+
# Baseline implementation for the run_pipeline REST call
|
45
|
+
#
|
46
|
+
# @param request_pb [::Google::Cloud::LifeSciences::V2beta::RunPipelineRequest]
|
47
|
+
# A request object representing the call parameters. Required.
|
48
|
+
# @param options [::Gapic::CallOptions]
|
49
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
50
|
+
#
|
51
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
52
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
53
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
54
|
+
#
|
55
|
+
# @return [::Google::Longrunning::Operation]
|
56
|
+
# A result object deserialized from the server's reply
|
57
|
+
def run_pipeline request_pb, options = nil
|
58
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
59
|
+
|
60
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_run_pipeline_request request_pb
|
61
|
+
query_string_params = if query_string_params.any?
|
62
|
+
query_string_params.to_h { |p| p.split("=", 2) }
|
63
|
+
else
|
64
|
+
{}
|
65
|
+
end
|
66
|
+
|
67
|
+
response = @client_stub.make_http_request(
|
68
|
+
verb,
|
69
|
+
uri: uri,
|
70
|
+
body: body || "",
|
71
|
+
params: query_string_params,
|
72
|
+
options: options
|
73
|
+
)
|
74
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
75
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
76
|
+
|
77
|
+
yield result, operation if block_given?
|
78
|
+
result
|
79
|
+
end
|
80
|
+
|
81
|
+
##
|
82
|
+
# @private
|
83
|
+
#
|
84
|
+
# GRPC transcoding helper method for the run_pipeline REST call
|
85
|
+
#
|
86
|
+
# @param request_pb [::Google::Cloud::LifeSciences::V2beta::RunPipelineRequest]
|
87
|
+
# A request object representing the call parameters. Required.
|
88
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
89
|
+
# Uri, Body, Query string parameters
|
90
|
+
def self.transcode_run_pipeline_request request_pb
|
91
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
92
|
+
.with_bindings(
|
93
|
+
uri_method: :post,
|
94
|
+
uri_template: "/v2beta/{parent}/pipelines:run",
|
95
|
+
body: "*",
|
96
|
+
matches: [
|
97
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
98
|
+
]
|
99
|
+
)
|
100
|
+
transcoder.transcode request_pb
|
101
|
+
end
|
102
|
+
end
|
103
|
+
end
|
104
|
+
end
|
105
|
+
end
|
106
|
+
end
|
107
|
+
end
|
108
|
+
end
|
@@ -0,0 +1,54 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2023 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
require "gapic/rest"
|
20
|
+
require "gapic/config"
|
21
|
+
require "gapic/config/method"
|
22
|
+
|
23
|
+
require "google/cloud/life_sciences/v2beta/version"
|
24
|
+
require "google/cloud/life_sciences/v2beta/bindings_override"
|
25
|
+
|
26
|
+
require "google/cloud/life_sciences/v2beta/workflows_service/credentials"
|
27
|
+
require "google/cloud/life_sciences/v2beta/workflows_service/rest/operations"
|
28
|
+
require "google/cloud/life_sciences/v2beta/workflows_service/rest/client"
|
29
|
+
|
30
|
+
module Google
|
31
|
+
module Cloud
|
32
|
+
module LifeSciences
|
33
|
+
module V2beta
|
34
|
+
##
|
35
|
+
# A service for running workflows, such as pipelines consisting of Docker
|
36
|
+
# containers.
|
37
|
+
#
|
38
|
+
# To load this service and instantiate a REST client:
|
39
|
+
#
|
40
|
+
# require "google/cloud/life_sciences/v2beta/workflows_service/rest"
|
41
|
+
# client = ::Google::Cloud::LifeSciences::V2beta::WorkflowsService::Rest::Client.new
|
42
|
+
#
|
43
|
+
module WorkflowsService
|
44
|
+
# Client for the REST transport
|
45
|
+
module Rest
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
helper_path = ::File.join __dir__, "rest", "helpers.rb"
|
54
|
+
require "google/cloud/life_sciences/v2beta/workflows_service/rest/helpers" if ::File.file? helper_path
|
@@ -25,6 +25,7 @@ require "google/cloud/life_sciences/v2beta/version"
|
|
25
25
|
require "google/cloud/life_sciences/v2beta/workflows_service/credentials"
|
26
26
|
require "google/cloud/life_sciences/v2beta/workflows_service/operations"
|
27
27
|
require "google/cloud/life_sciences/v2beta/workflows_service/client"
|
28
|
+
require "google/cloud/life_sciences/v2beta/workflows_service/rest"
|
28
29
|
|
29
30
|
module Google
|
30
31
|
module Cloud
|
@@ -34,11 +35,16 @@ module Google
|
|
34
35
|
# A service for running workflows, such as pipelines consisting of Docker
|
35
36
|
# containers.
|
36
37
|
#
|
37
|
-
#
|
38
|
+
# @example Load this service and instantiate a gRPC client
|
38
39
|
#
|
39
40
|
# require "google/cloud/life_sciences/v2beta/workflows_service"
|
40
41
|
# client = ::Google::Cloud::LifeSciences::V2beta::WorkflowsService::Client.new
|
41
42
|
#
|
43
|
+
# @example Load this service and instantiate a REST client
|
44
|
+
#
|
45
|
+
# require "google/cloud/life_sciences/v2beta/workflows_service/rest"
|
46
|
+
# client = ::Google::Cloud::LifeSciences::V2beta::WorkflowsService::Rest::Client.new
|
47
|
+
#
|
42
48
|
module WorkflowsService
|
43
49
|
end
|
44
50
|
end
|
@@ -23,13 +23,18 @@ module Google
|
|
23
23
|
module Cloud
|
24
24
|
module LifeSciences
|
25
25
|
##
|
26
|
-
#
|
26
|
+
# API client module.
|
27
27
|
#
|
28
|
-
# @example
|
28
|
+
# @example Load this package, including all its services, and instantiate a gRPC client
|
29
29
|
#
|
30
30
|
# require "google/cloud/life_sciences/v2beta"
|
31
31
|
# client = ::Google::Cloud::LifeSciences::V2beta::WorkflowsService::Client.new
|
32
32
|
#
|
33
|
+
# @example Load this package, including all its services, and instantiate a REST client
|
34
|
+
#
|
35
|
+
# require "google/cloud/life_sciences/v2beta"
|
36
|
+
# client = ::Google::Cloud::LifeSciences::V2beta::WorkflowsService::Rest::Client.new
|
37
|
+
#
|
33
38
|
module V2beta
|
34
39
|
end
|
35
40
|
end
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: google/cloud/lifesciences/v2beta/workflows.proto
|
3
4
|
|
@@ -11,180 +12,33 @@ require 'google/protobuf/duration_pb'
|
|
11
12
|
require 'google/protobuf/timestamp_pb'
|
12
13
|
require 'google/rpc/code_pb'
|
13
14
|
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
optional :encrypted_environment, :message, 21, "google.cloud.lifesciences.v2beta.Secret"
|
38
|
-
optional :pid_namespace, :string, 6
|
39
|
-
map :port_mappings, :int32, :int32, 8
|
40
|
-
repeated :mounts, :message, 9, "google.cloud.lifesciences.v2beta.Mount"
|
41
|
-
map :labels, :string, :string, 10
|
42
|
-
optional :credentials, :message, 11, "google.cloud.lifesciences.v2beta.Secret"
|
43
|
-
optional :timeout, :message, 12, "google.protobuf.Duration"
|
44
|
-
optional :ignore_exit_status, :bool, 13
|
45
|
-
optional :run_in_background, :bool, 14
|
46
|
-
optional :always_run, :bool, 15
|
47
|
-
optional :enable_fuse, :bool, 16
|
48
|
-
optional :publish_exposed_ports, :bool, 17
|
49
|
-
optional :disable_image_prefetch, :bool, 18
|
50
|
-
optional :disable_standard_error_capture, :bool, 19
|
51
|
-
optional :block_external_network, :bool, 20
|
52
|
-
end
|
53
|
-
add_message "google.cloud.lifesciences.v2beta.Secret" do
|
54
|
-
optional :key_name, :string, 1
|
55
|
-
optional :cipher_text, :string, 2
|
56
|
-
end
|
57
|
-
add_message "google.cloud.lifesciences.v2beta.Mount" do
|
58
|
-
optional :disk, :string, 1
|
59
|
-
optional :path, :string, 2
|
60
|
-
optional :read_only, :bool, 3
|
61
|
-
end
|
62
|
-
add_message "google.cloud.lifesciences.v2beta.Resources" do
|
63
|
-
repeated :regions, :string, 2
|
64
|
-
repeated :zones, :string, 3
|
65
|
-
optional :virtual_machine, :message, 4, "google.cloud.lifesciences.v2beta.VirtualMachine"
|
66
|
-
end
|
67
|
-
add_message "google.cloud.lifesciences.v2beta.VirtualMachine" do
|
68
|
-
optional :machine_type, :string, 1
|
69
|
-
optional :preemptible, :bool, 2
|
70
|
-
map :labels, :string, :string, 3
|
71
|
-
repeated :disks, :message, 4, "google.cloud.lifesciences.v2beta.Disk"
|
72
|
-
optional :network, :message, 5, "google.cloud.lifesciences.v2beta.Network"
|
73
|
-
repeated :accelerators, :message, 6, "google.cloud.lifesciences.v2beta.Accelerator"
|
74
|
-
optional :service_account, :message, 7, "google.cloud.lifesciences.v2beta.ServiceAccount"
|
75
|
-
optional :boot_disk_size_gb, :int32, 8
|
76
|
-
optional :cpu_platform, :string, 9
|
77
|
-
optional :boot_image, :string, 10
|
78
|
-
optional :nvidia_driver_version, :string, 11
|
79
|
-
optional :enable_stackdriver_monitoring, :bool, 12
|
80
|
-
repeated :docker_cache_images, :string, 13
|
81
|
-
repeated :volumes, :message, 14, "google.cloud.lifesciences.v2beta.Volume"
|
82
|
-
optional :reservation, :string, 15
|
83
|
-
end
|
84
|
-
add_message "google.cloud.lifesciences.v2beta.ServiceAccount" do
|
85
|
-
optional :email, :string, 1
|
86
|
-
repeated :scopes, :string, 2
|
87
|
-
end
|
88
|
-
add_message "google.cloud.lifesciences.v2beta.Accelerator" do
|
89
|
-
optional :type, :string, 1
|
90
|
-
optional :count, :int64, 2
|
91
|
-
end
|
92
|
-
add_message "google.cloud.lifesciences.v2beta.Network" do
|
93
|
-
optional :network, :string, 1
|
94
|
-
optional :use_private_address, :bool, 2
|
95
|
-
optional :subnetwork, :string, 3
|
96
|
-
end
|
97
|
-
add_message "google.cloud.lifesciences.v2beta.Disk" do
|
98
|
-
optional :name, :string, 1
|
99
|
-
optional :size_gb, :int32, 2
|
100
|
-
optional :type, :string, 3
|
101
|
-
optional :source_image, :string, 4
|
102
|
-
end
|
103
|
-
add_message "google.cloud.lifesciences.v2beta.Volume" do
|
104
|
-
optional :volume, :string, 1
|
105
|
-
oneof :storage do
|
106
|
-
optional :persistent_disk, :message, 2, "google.cloud.lifesciences.v2beta.PersistentDisk"
|
107
|
-
optional :existing_disk, :message, 3, "google.cloud.lifesciences.v2beta.ExistingDisk"
|
108
|
-
optional :nfs_mount, :message, 4, "google.cloud.lifesciences.v2beta.NFSMount"
|
109
|
-
end
|
110
|
-
end
|
111
|
-
add_message "google.cloud.lifesciences.v2beta.PersistentDisk" do
|
112
|
-
optional :size_gb, :int32, 1
|
113
|
-
optional :type, :string, 2
|
114
|
-
optional :source_image, :string, 3
|
115
|
-
end
|
116
|
-
add_message "google.cloud.lifesciences.v2beta.ExistingDisk" do
|
117
|
-
optional :disk, :string, 1
|
118
|
-
end
|
119
|
-
add_message "google.cloud.lifesciences.v2beta.NFSMount" do
|
120
|
-
optional :target, :string, 1
|
121
|
-
end
|
122
|
-
add_message "google.cloud.lifesciences.v2beta.Metadata" do
|
123
|
-
optional :pipeline, :message, 1, "google.cloud.lifesciences.v2beta.Pipeline"
|
124
|
-
map :labels, :string, :string, 2
|
125
|
-
repeated :events, :message, 3, "google.cloud.lifesciences.v2beta.Event"
|
126
|
-
optional :create_time, :message, 4, "google.protobuf.Timestamp"
|
127
|
-
optional :start_time, :message, 5, "google.protobuf.Timestamp"
|
128
|
-
optional :end_time, :message, 6, "google.protobuf.Timestamp"
|
129
|
-
optional :pub_sub_topic, :string, 7
|
130
|
-
end
|
131
|
-
add_message "google.cloud.lifesciences.v2beta.Event" do
|
132
|
-
optional :timestamp, :message, 1, "google.protobuf.Timestamp"
|
133
|
-
optional :description, :string, 2
|
134
|
-
oneof :details do
|
135
|
-
optional :delayed, :message, 17, "google.cloud.lifesciences.v2beta.DelayedEvent"
|
136
|
-
optional :worker_assigned, :message, 18, "google.cloud.lifesciences.v2beta.WorkerAssignedEvent"
|
137
|
-
optional :worker_released, :message, 19, "google.cloud.lifesciences.v2beta.WorkerReleasedEvent"
|
138
|
-
optional :pull_started, :message, 20, "google.cloud.lifesciences.v2beta.PullStartedEvent"
|
139
|
-
optional :pull_stopped, :message, 21, "google.cloud.lifesciences.v2beta.PullStoppedEvent"
|
140
|
-
optional :container_started, :message, 22, "google.cloud.lifesciences.v2beta.ContainerStartedEvent"
|
141
|
-
optional :container_stopped, :message, 23, "google.cloud.lifesciences.v2beta.ContainerStoppedEvent"
|
142
|
-
optional :container_killed, :message, 24, "google.cloud.lifesciences.v2beta.ContainerKilledEvent"
|
143
|
-
optional :unexpected_exit_status, :message, 25, "google.cloud.lifesciences.v2beta.UnexpectedExitStatusEvent"
|
144
|
-
optional :failed, :message, 26, "google.cloud.lifesciences.v2beta.FailedEvent"
|
145
|
-
end
|
146
|
-
end
|
147
|
-
add_message "google.cloud.lifesciences.v2beta.DelayedEvent" do
|
148
|
-
optional :cause, :string, 1
|
149
|
-
repeated :metrics, :string, 2
|
150
|
-
end
|
151
|
-
add_message "google.cloud.lifesciences.v2beta.WorkerAssignedEvent" do
|
152
|
-
optional :zone, :string, 1
|
153
|
-
optional :instance, :string, 2
|
154
|
-
optional :machine_type, :string, 3
|
155
|
-
end
|
156
|
-
add_message "google.cloud.lifesciences.v2beta.WorkerReleasedEvent" do
|
157
|
-
optional :zone, :string, 1
|
158
|
-
optional :instance, :string, 2
|
159
|
-
end
|
160
|
-
add_message "google.cloud.lifesciences.v2beta.PullStartedEvent" do
|
161
|
-
optional :image_uri, :string, 1
|
162
|
-
end
|
163
|
-
add_message "google.cloud.lifesciences.v2beta.PullStoppedEvent" do
|
164
|
-
optional :image_uri, :string, 1
|
165
|
-
end
|
166
|
-
add_message "google.cloud.lifesciences.v2beta.ContainerStartedEvent" do
|
167
|
-
optional :action_id, :int32, 1
|
168
|
-
map :port_mappings, :int32, :int32, 2
|
169
|
-
optional :ip_address, :string, 3
|
170
|
-
end
|
171
|
-
add_message "google.cloud.lifesciences.v2beta.ContainerStoppedEvent" do
|
172
|
-
optional :action_id, :int32, 1
|
173
|
-
optional :exit_status, :int32, 2
|
174
|
-
optional :stderr, :string, 3
|
175
|
-
end
|
176
|
-
add_message "google.cloud.lifesciences.v2beta.UnexpectedExitStatusEvent" do
|
177
|
-
optional :action_id, :int32, 1
|
178
|
-
optional :exit_status, :int32, 2
|
179
|
-
end
|
180
|
-
add_message "google.cloud.lifesciences.v2beta.ContainerKilledEvent" do
|
181
|
-
optional :action_id, :int32, 1
|
182
|
-
end
|
183
|
-
add_message "google.cloud.lifesciences.v2beta.FailedEvent" do
|
184
|
-
optional :code, :enum, 1, "google.rpc.Code"
|
185
|
-
optional :cause, :string, 2
|
15
|
+
|
16
|
+
descriptor_data = "\n0google/cloud/lifesciences/v2beta/workflows.proto\x12 google.cloud.lifesciences.v2beta\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a#google/longrunning/operations.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x15google/rpc/code.proto\"\xff\x01\n\x12RunPipelineRequest\x12\x0e\n\x06parent\x18\x04 \x01(\t\x12\x41\n\x08pipeline\x18\x01 \x01(\x0b\x32*.google.cloud.lifesciences.v2beta.PipelineB\x03\xe0\x41\x02\x12P\n\x06labels\x18\x02 \x03(\x0b\x32@.google.cloud.lifesciences.v2beta.RunPipelineRequest.LabelsEntry\x12\x15\n\rpub_sub_topic\x18\x03 \x01(\t\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x15\n\x13RunPipelineResponse\"\x80\x03\n\x08Pipeline\x12\x39\n\x07\x61\x63tions\x18\x01 \x03(\x0b\x32(.google.cloud.lifesciences.v2beta.Action\x12>\n\tresources\x18\x02 \x01(\x0b\x32+.google.cloud.lifesciences.v2beta.Resources\x12P\n\x0b\x65nvironment\x18\x03 \x03(\x0b\x32;.google.cloud.lifesciences.v2beta.Pipeline.EnvironmentEntry\x12G\n\x15\x65ncrypted_environment\x18\x05 \x01(\x0b\x32(.google.cloud.lifesciences.v2beta.Secret\x12*\n\x07timeout\x18\x04 \x01(\x0b\x32\x19.google.protobuf.Duration\x1a\x32\n\x10\x45nvironmentEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xca\x07\n\x06\x41\x63tion\x12\x16\n\x0e\x63ontainer_name\x18\x01 \x01(\t\x12\x16\n\timage_uri\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x10\n\x08\x63ommands\x18\x03 \x03(\t\x12\x12\n\nentrypoint\x18\x04 \x01(\t\x12N\n\x0b\x65nvironment\x18\x05 \x03(\x0b\x32\x39.google.cloud.lifesciences.v2beta.Action.EnvironmentEntry\x12G\n\x15\x65ncrypted_environment\x18\x15 \x01(\x0b\x32(.google.cloud.lifesciences.v2beta.Secret\x12\x15\n\rpid_namespace\x18\x06 \x01(\t\x12Q\n\rport_mappings\x18\x08 \x03(\x0b\x32:.google.cloud.lifesciences.v2beta.Action.PortMappingsEntry\x12\x37\n\x06mounts\x18\t \x03(\x0b\x32\'.google.cloud.lifesciences.v2beta.Mount\x12\x44\n\x06labels\x18\n \x03(\x0b\x32\x34.google.cloud.lifesciences.v2beta.Action.LabelsEntry\x12=\n\x0b\x63redentials\x18\x0b \x01(\x0b\x32(.google.cloud.lifesciences.v2beta.Secret\x12*\n\x07timeout\x18\x0c \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x1a\n\x12ignore_exit_status\x18\r \x01(\x08\x12\x19\n\x11run_in_background\x18\x0e \x01(\x08\x12\x12\n\nalways_run\x18\x0f \x01(\x08\x12\x13\n\x0b\x65nable_fuse\x18\x10 \x01(\x08\x12\x1d\n\x15publish_exposed_ports\x18\x11 \x01(\x08\x12\x1e\n\x16\x64isable_image_prefetch\x18\x12 \x01(\x08\x12&\n\x1e\x64isable_standard_error_capture\x18\x13 \x01(\x08\x12\x1e\n\x16\x62lock_external_network\x18\x14 \x01(\x08\x1a\x32\n\x10\x45nvironmentEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x33\n\x11PortMappingsEntry\x12\x0b\n\x03key\x18\x01 \x01(\x05\x12\r\n\x05value\x18\x02 \x01(\x05:\x02\x38\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"/\n\x06Secret\x12\x10\n\x08key_name\x18\x01 \x01(\t\x12\x13\n\x0b\x63ipher_text\x18\x02 \x01(\t\"6\n\x05Mount\x12\x0c\n\x04\x64isk\x18\x01 \x01(\t\x12\x0c\n\x04path\x18\x02 \x01(\t\x12\x11\n\tread_only\x18\x03 \x01(\x08\"v\n\tResources\x12\x0f\n\x07regions\x18\x02 \x03(\t\x12\r\n\x05zones\x18\x03 \x03(\t\x12I\n\x0fvirtual_machine\x18\x04 \x01(\x0b\x32\x30.google.cloud.lifesciences.v2beta.VirtualMachine\"\xbc\x05\n\x0eVirtualMachine\x12\x19\n\x0cmachine_type\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x0bpreemptible\x18\x02 \x01(\x08\x12L\n\x06labels\x18\x03 \x03(\x0b\x32<.google.cloud.lifesciences.v2beta.VirtualMachine.LabelsEntry\x12\x35\n\x05\x64isks\x18\x04 \x03(\x0b\x32&.google.cloud.lifesciences.v2beta.Disk\x12:\n\x07network\x18\x05 \x01(\x0b\x32).google.cloud.lifesciences.v2beta.Network\x12\x43\n\x0c\x61\x63\x63\x65lerators\x18\x06 \x03(\x0b\x32-.google.cloud.lifesciences.v2beta.Accelerator\x12I\n\x0fservice_account\x18\x07 \x01(\x0b\x32\x30.google.cloud.lifesciences.v2beta.ServiceAccount\x12\x19\n\x11\x62oot_disk_size_gb\x18\x08 \x01(\x05\x12\x14\n\x0c\x63pu_platform\x18\t \x01(\t\x12\x12\n\nboot_image\x18\n \x01(\t\x12!\n\x15nvidia_driver_version\x18\x0b \x01(\tB\x02\x18\x01\x12%\n\x1d\x65nable_stackdriver_monitoring\x18\x0c \x01(\x08\x12\x1b\n\x13\x64ocker_cache_images\x18\r \x03(\t\x12\x39\n\x07volumes\x18\x0e \x03(\x0b\x32(.google.cloud.lifesciences.v2beta.Volume\x12\x13\n\x0breservation\x18\x0f \x01(\t\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"/\n\x0eServiceAccount\x12\r\n\x05\x65mail\x18\x01 \x01(\t\x12\x0e\n\x06scopes\x18\x02 \x03(\t\"*\n\x0b\x41\x63\x63\x65lerator\x12\x0c\n\x04type\x18\x01 \x01(\t\x12\r\n\x05\x63ount\x18\x02 \x01(\x03\"K\n\x07Network\x12\x0f\n\x07network\x18\x01 \x01(\t\x12\x1b\n\x13use_private_address\x18\x02 \x01(\x08\x12\x12\n\nsubnetwork\x18\x03 \x01(\t\"I\n\x04\x44isk\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0f\n\x07size_gb\x18\x02 \x01(\x05\x12\x0c\n\x04type\x18\x03 \x01(\t\x12\x14\n\x0csource_image\x18\x04 \x01(\t\"\xfa\x01\n\x06Volume\x12\x0e\n\x06volume\x18\x01 \x01(\t\x12K\n\x0fpersistent_disk\x18\x02 \x01(\x0b\x32\x30.google.cloud.lifesciences.v2beta.PersistentDiskH\x00\x12G\n\rexisting_disk\x18\x03 \x01(\x0b\x32..google.cloud.lifesciences.v2beta.ExistingDiskH\x00\x12?\n\tnfs_mount\x18\x04 \x01(\x0b\x32*.google.cloud.lifesciences.v2beta.NFSMountH\x00\x42\t\n\x07storage\"E\n\x0ePersistentDisk\x12\x0f\n\x07size_gb\x18\x01 \x01(\x05\x12\x0c\n\x04type\x18\x02 \x01(\t\x12\x14\n\x0csource_image\x18\x03 \x01(\t\"\x1c\n\x0c\x45xistingDisk\x12\x0c\n\x04\x64isk\x18\x01 \x01(\t\"\x1a\n\x08NFSMount\x12\x0e\n\x06target\x18\x01 \x01(\t\"\x9e\x03\n\x08Metadata\x12<\n\x08pipeline\x18\x01 \x01(\x0b\x32*.google.cloud.lifesciences.v2beta.Pipeline\x12\x46\n\x06labels\x18\x02 \x03(\x0b\x32\x36.google.cloud.lifesciences.v2beta.Metadata.LabelsEntry\x12\x37\n\x06\x65vents\x18\x03 \x03(\x0b\x32\'.google.cloud.lifesciences.v2beta.Event\x12/\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nstart_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x15\n\rpub_sub_topic\x18\x07 \x01(\t\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xf5\x06\n\x05\x45vent\x12-\n\ttimestamp\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x41\n\x07\x64\x65layed\x18\x11 \x01(\x0b\x32..google.cloud.lifesciences.v2beta.DelayedEventH\x00\x12P\n\x0fworker_assigned\x18\x12 \x01(\x0b\x32\x35.google.cloud.lifesciences.v2beta.WorkerAssignedEventH\x00\x12P\n\x0fworker_released\x18\x13 \x01(\x0b\x32\x35.google.cloud.lifesciences.v2beta.WorkerReleasedEventH\x00\x12J\n\x0cpull_started\x18\x14 \x01(\x0b\x32\x32.google.cloud.lifesciences.v2beta.PullStartedEventH\x00\x12J\n\x0cpull_stopped\x18\x15 \x01(\x0b\x32\x32.google.cloud.lifesciences.v2beta.PullStoppedEventH\x00\x12T\n\x11\x63ontainer_started\x18\x16 \x01(\x0b\x32\x37.google.cloud.lifesciences.v2beta.ContainerStartedEventH\x00\x12T\n\x11\x63ontainer_stopped\x18\x17 \x01(\x0b\x32\x37.google.cloud.lifesciences.v2beta.ContainerStoppedEventH\x00\x12R\n\x10\x63ontainer_killed\x18\x18 \x01(\x0b\x32\x36.google.cloud.lifesciences.v2beta.ContainerKilledEventH\x00\x12]\n\x16unexpected_exit_status\x18\x19 \x01(\x0b\x32;.google.cloud.lifesciences.v2beta.UnexpectedExitStatusEventH\x00\x12?\n\x06\x66\x61iled\x18\x1a \x01(\x0b\x32-.google.cloud.lifesciences.v2beta.FailedEventH\x00\x42\t\n\x07\x64\x65tails\".\n\x0c\x44\x65layedEvent\x12\r\n\x05\x63\x61use\x18\x01 \x01(\t\x12\x0f\n\x07metrics\x18\x02 \x03(\t\"K\n\x13WorkerAssignedEvent\x12\x0c\n\x04zone\x18\x01 \x01(\t\x12\x10\n\x08instance\x18\x02 \x01(\t\x12\x14\n\x0cmachine_type\x18\x03 \x01(\t\"5\n\x13WorkerReleasedEvent\x12\x0c\n\x04zone\x18\x01 \x01(\t\x12\x10\n\x08instance\x18\x02 \x01(\t\"%\n\x10PullStartedEvent\x12\x11\n\timage_uri\x18\x01 \x01(\t\"%\n\x10PullStoppedEvent\x12\x11\n\timage_uri\x18\x01 \x01(\t\"\xd5\x01\n\x15\x43ontainerStartedEvent\x12\x11\n\taction_id\x18\x01 \x01(\x05\x12`\n\rport_mappings\x18\x02 \x03(\x0b\x32I.google.cloud.lifesciences.v2beta.ContainerStartedEvent.PortMappingsEntry\x12\x12\n\nip_address\x18\x03 \x01(\t\x1a\x33\n\x11PortMappingsEntry\x12\x0b\n\x03key\x18\x01 \x01(\x05\x12\r\n\x05value\x18\x02 \x01(\x05:\x02\x38\x01\"O\n\x15\x43ontainerStoppedEvent\x12\x11\n\taction_id\x18\x01 \x01(\x05\x12\x13\n\x0b\x65xit_status\x18\x02 \x01(\x05\x12\x0e\n\x06stderr\x18\x03 \x01(\t\"C\n\x19UnexpectedExitStatusEvent\x12\x11\n\taction_id\x18\x01 \x01(\x05\x12\x13\n\x0b\x65xit_status\x18\x02 \x01(\x05\")\n\x14\x43ontainerKilledEvent\x12\x11\n\taction_id\x18\x01 \x01(\x05\"<\n\x0b\x46\x61iledEvent\x12\x1e\n\x04\x63ode\x18\x01 \x01(\x0e\x32\x10.google.rpc.Code\x12\r\n\x05\x63\x61use\x18\x02 \x01(\t2\xb2\x02\n\x16WorkflowsServiceV2Beta\x12\xc6\x01\n\x0bRunPipeline\x12\x34.google.cloud.lifesciences.v2beta.RunPipelineRequest\x1a\x1d.google.longrunning.Operation\"b\x82\xd3\xe4\x93\x02:\"5/v2beta/{parent=projects/*/locations/*}/pipelines:run:\x01*\xca\x41\x1f\n\x13RunPipelineResponse\x12\x08Metadata\x1aO\xca\x41\x1blifesciences.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xf5\x01\n$com.google.cloud.lifesciences.v2betaB\x0eWorkflowsProtoP\x01ZHcloud.google.com/go/lifesciences/apiv2beta/lifesciencespb;lifesciencespb\xa2\x02\x04\x43LSW\xaa\x02 Google.Cloud.LifeSciences.V2Beta\xca\x02 Google\\Cloud\\LifeSciences\\V2beta\xea\x02#Google::Cloud::LifeSciences::V2betab\x06proto3"
|
17
|
+
|
18
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
19
|
+
|
20
|
+
begin
|
21
|
+
pool.add_serialized_file(descriptor_data)
|
22
|
+
rescue TypeError => e
|
23
|
+
# Compatibility code: will be removed in the next major version.
|
24
|
+
require 'google/protobuf/descriptor_pb'
|
25
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
26
|
+
parsed.clear_dependency
|
27
|
+
serialized = parsed.class.encode(parsed)
|
28
|
+
file = pool.add_serialized_file(serialized)
|
29
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
30
|
+
imports = [
|
31
|
+
["google.protobuf.Duration", "google/protobuf/duration.proto"],
|
32
|
+
["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
33
|
+
]
|
34
|
+
imports.each do |type_name, expected_filename|
|
35
|
+
import_file = pool.lookup(type_name).file_descriptor
|
36
|
+
if import_file.name != expected_filename
|
37
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
186
38
|
end
|
187
39
|
end
|
40
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
41
|
+
warn "This will become an error in the next major version."
|
188
42
|
end
|
189
43
|
|
190
44
|
module Google
|
@@ -36,11 +36,11 @@ module Google
|
|
36
36
|
|
37
37
|
# Runs a pipeline. The returned Operation's [metadata]
|
38
38
|
# [google.longrunning.Operation.metadata] field will contain a
|
39
|
-
# [google.cloud.lifesciences.v2beta.Metadata][google.cloud.lifesciences.v2beta.Metadata]
|
40
|
-
# of the pipeline execution. The
|
39
|
+
# [google.cloud.lifesciences.v2beta.Metadata][google.cloud.lifesciences.v2beta.Metadata]
|
40
|
+
# object describing the status of the pipeline execution. The
|
41
41
|
# [response][google.longrunning.Operation.response] field will contain a
|
42
|
-
# [google.cloud.lifesciences.v2beta.RunPipelineResponse][google.cloud.lifesciences.v2beta.RunPipelineResponse]
|
43
|
-
# pipeline completes successfully.
|
42
|
+
# [google.cloud.lifesciences.v2beta.RunPipelineResponse][google.cloud.lifesciences.v2beta.RunPipelineResponse]
|
43
|
+
# object if the pipeline completes successfully.
|
44
44
|
#
|
45
45
|
# **Note:** Before you can use this method, the *Life Sciences Service Agent*
|
46
46
|
# must have access to your project. This is done automatically when the
|
@@ -35,7 +35,9 @@ module Google
|
|
35
35
|
# Details about how and where to publish client libraries.
|
36
36
|
# @!attribute [rw] version
|
37
37
|
# @return [::String]
|
38
|
-
# Version of the API to apply these settings to.
|
38
|
+
# Version of the API to apply these settings to. This is the full protobuf
|
39
|
+
# package for the API, ending in the version element.
|
40
|
+
# Examples: "google.cloud.speech.v1" and "google.spanner.admin.database.v1".
|
39
41
|
# @!attribute [rw] launch_stage
|
40
42
|
# @return [::Google::Api::LaunchStage]
|
41
43
|
# Launch stage of this version of the API.
|
@@ -81,7 +83,7 @@ module Google
|
|
81
83
|
# long-running operation pattern.
|
82
84
|
# @!attribute [rw] new_issue_uri
|
83
85
|
# @return [::String]
|
84
|
-
# Link to a
|
86
|
+
# Link to a *public* URI where users can report issues. Example:
|
85
87
|
# https://issuetracker.google.com/issues/new?component=190865&template=1161103
|
86
88
|
# @!attribute [rw] documentation_uri
|
87
89
|
# @return [::String]
|
@@ -111,6 +113,10 @@ module Google
|
|
111
113
|
# Client library settings. If the same version string appears multiple
|
112
114
|
# times in this list, then the last one wins. Settings from earlier
|
113
115
|
# settings with the same version string are discarded.
|
116
|
+
# @!attribute [rw] proto_reference_documentation_uri
|
117
|
+
# @return [::String]
|
118
|
+
# Optional link to proto reference documentation. Example:
|
119
|
+
# https://cloud.google.com/pubsub/lite/docs/reference/rpc
|
114
120
|
class Publishing
|
115
121
|
include ::Google::Protobuf::MessageExts
|
116
122
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -203,9 +209,57 @@ module Google
|
|
203
209
|
# @!attribute [rw] common
|
204
210
|
# @return [::Google::Api::CommonLanguageSettings]
|
205
211
|
# Some settings.
|
212
|
+
# @!attribute [rw] renamed_services
|
213
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
214
|
+
# Map from original service names to renamed versions.
|
215
|
+
# This is used when the default generated types
|
216
|
+
# would cause a naming conflict. (Neither name is
|
217
|
+
# fully-qualified.)
|
218
|
+
# Example: Subscriber to SubscriberServiceApi.
|
219
|
+
# @!attribute [rw] renamed_resources
|
220
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
221
|
+
# Map from full resource types to the effective short name
|
222
|
+
# for the resource. This is used when otherwise resource
|
223
|
+
# named from different services would cause naming collisions.
|
224
|
+
# Example entry:
|
225
|
+
# "datalabeling.googleapis.com/Dataset": "DataLabelingDataset"
|
226
|
+
# @!attribute [rw] ignored_resources
|
227
|
+
# @return [::Array<::String>]
|
228
|
+
# List of full resource types to ignore during generation.
|
229
|
+
# This is typically used for API-specific Location resources,
|
230
|
+
# which should be handled by the generator as if they were actually
|
231
|
+
# the common Location resources.
|
232
|
+
# Example entry: "documentai.googleapis.com/Location"
|
233
|
+
# @!attribute [rw] forced_namespace_aliases
|
234
|
+
# @return [::Array<::String>]
|
235
|
+
# Namespaces which must be aliased in snippets due to
|
236
|
+
# a known (but non-generator-predictable) naming collision
|
237
|
+
# @!attribute [rw] handwritten_signatures
|
238
|
+
# @return [::Array<::String>]
|
239
|
+
# Method signatures (in the form "service.method(signature)")
|
240
|
+
# which are provided separately, so shouldn't be generated.
|
241
|
+
# Snippets *calling* these methods are still generated, however.
|
206
242
|
class DotnetSettings
|
207
243
|
include ::Google::Protobuf::MessageExts
|
208
244
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
245
|
+
|
246
|
+
# @!attribute [rw] key
|
247
|
+
# @return [::String]
|
248
|
+
# @!attribute [rw] value
|
249
|
+
# @return [::String]
|
250
|
+
class RenamedServicesEntry
|
251
|
+
include ::Google::Protobuf::MessageExts
|
252
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
253
|
+
end
|
254
|
+
|
255
|
+
# @!attribute [rw] key
|
256
|
+
# @return [::String]
|
257
|
+
# @!attribute [rw] value
|
258
|
+
# @return [::String]
|
259
|
+
class RenamedResourcesEntry
|
260
|
+
include ::Google::Protobuf::MessageExts
|
261
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
262
|
+
end
|
209
263
|
end
|
210
264
|
|
211
265
|
# Settings for Ruby client libraries.
|
@@ -240,8 +294,8 @@ module Google
|
|
240
294
|
# Example of a YAML configuration::
|
241
295
|
#
|
242
296
|
# publishing:
|
243
|
-
#
|
244
|
-
# - selector:
|
297
|
+
# method_settings:
|
298
|
+
# - selector: google.cloud.speech.v2.Speech.BatchRecognize
|
245
299
|
# long_running:
|
246
300
|
# initial_poll_delay:
|
247
301
|
# seconds: 60 # 1 minute
|
@@ -299,6 +353,15 @@ module Google
|
|
299
353
|
|
300
354
|
# Street View Org.
|
301
355
|
STREET_VIEW = 4
|
356
|
+
|
357
|
+
# Shopping Org.
|
358
|
+
SHOPPING = 5
|
359
|
+
|
360
|
+
# Geo Org.
|
361
|
+
GEO = 6
|
362
|
+
|
363
|
+
# Generative AI - https://developers.generativeai.google
|
364
|
+
GENERATIVE_AI = 7
|
302
365
|
end
|
303
366
|
|
304
367
|
# To where should client libraries be published?
|