google-apis-lifesciences_v2beta 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: d9f4b19f4b763cee7115f6d47e1c16141f7462d319725485083d8ba91ca44991
4
+ data.tar.gz: 6dc5e4839936d2f757ba489a73916dcd78f58277eaa22dbd70324d0dbb5c4111
5
+ SHA512:
6
+ metadata.gz: 7bbcb355e92a70020d9fe8df92ca7608b06d6d60b7cb07ba920de01602dea43cf6edcae054f504d604ec160fc84c49426776f5312281a007fd3fd5c97a76ea30
7
+ data.tar.gz: 484995a90d5c0b42147b7cd9abd2f240f411a01deb5bf1171ce79b1396ddceb5f11e4101d63e0ad25446cb4d1ec5abb6a0d8222b300dee217fae8ed3231374dd
@@ -0,0 +1,13 @@
1
+ --hide-void-return
2
+ --no-private
3
+ --verbose
4
+ --title=google-apis-lifesciences_v2beta
5
+ --markup-provider=redcarpet
6
+ --markup=markdown
7
+ --main OVERVIEW.md
8
+ lib/google/apis/lifesciences_v2beta/*.rb
9
+ lib/google/apis/lifesciences_v2beta.rb
10
+ -
11
+ OVERVIEW.md
12
+ CHANGELOG.md
13
+ LICENSE.md
@@ -0,0 +1,7 @@
1
+ # Release history for google-apis-lifesciences_v2beta
2
+
3
+ ### v0.1.0 (2021-01-07)
4
+
5
+ * Regenerated using generator version 0.1.1
6
+ * Regenerated from discovery document revision 20201213
7
+
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
@@ -0,0 +1,96 @@
1
+ # Simple REST client for version V2beta of the Cloud Life Sciences API
2
+
3
+ This is a simple client library for version V2beta of the Cloud Life Sciences API. It provides:
4
+
5
+ * A client object that connects to the HTTP/JSON REST endpoint for the service.
6
+ * Ruby objects for data structures related to the service.
7
+ * Integration with the googleauth gem for authentication using OAuth, API keys, and service accounts.
8
+ * Control of retry, pagination, and timeouts.
9
+
10
+ Note that although this client library is supported and will continue to be updated to track changes to the service, it is otherwise considered complete and not under active development. Many Google services, especially Google Cloud Platform services, may provide a more modern client that is under more active development and improvement. See the section below titled *Which client should I use?* for more information.
11
+
12
+ ## Getting started
13
+
14
+ ### Before you begin
15
+
16
+ There are a few setup steps you need to complete before you can use this library:
17
+
18
+ 1. If you don't already have a Google account, [sign up](https://www.google.com/accounts).
19
+ 2. If you have never created a Google APIs Console project, read about [Managing Projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects) and create a project in the [Google API Console](https://console.cloud.google.com/).
20
+ 3. Most APIs need to be enabled for your project. [Enable it](https://console.cloud.google.com/apis/library/lifesciences.googleapis.com) in the console.
21
+
22
+ ### Installation
23
+
24
+ Add this line to your application's Gemfile:
25
+
26
+ ```ruby
27
+ gem 'google-apis-lifesciences_v2beta', '~> 0.1'
28
+ ```
29
+
30
+ And then execute:
31
+
32
+ ```
33
+ $ bundle
34
+ ```
35
+
36
+ Or install it yourself as:
37
+
38
+ ```
39
+ $ gem install google-apis-lifesciences_v2beta
40
+ ```
41
+
42
+ ### Creating a client object
43
+
44
+ Once the gem is installed, you can load the client code and instantiate a client.
45
+
46
+ ```ruby
47
+ # Load the client
48
+ require "google/apis/lifesciences_v2beta"
49
+
50
+ # Create a client object
51
+ client = Google::Apis::LifesciencesV2beta::CloudLifeSciencesService.new
52
+
53
+ # Authenticate calls
54
+ client.authentication = # ... use the googleauth gem to create credentials
55
+ ```
56
+
57
+ See the class reference docs for information on the methods you can call from a client.
58
+
59
+ ## Documentation
60
+
61
+ More detailed descriptions of the Google simple REST clients are available in two documents.
62
+
63
+ * The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
64
+ * The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
65
+
66
+ (Note: the above documents are written for the simple REST clients in general, and their examples may not reflect the Lifesciences service in particular.)
67
+
68
+ For reference information on specific calls in the Cloud Life Sciences API, see the {Google::Apis::LifesciencesV2beta::CloudLifeSciencesService class reference docs}.
69
+
70
+ ## Which client should I use?
71
+
72
+ Google provides two types of Ruby API client libraries: **simple REST clients** and **modern clients**.
73
+
74
+ This library, `google-apis-lifesciences_v2beta`, is a simple REST client. You can identify these clients by their gem names, which are always in the form `google-apis-<servicename>_<serviceversion>`. The simple REST clients connect to HTTP/JSON REST endpoints and are automatically generated from service discovery documents. They support most API functionality, but their class interfaces are sometimes awkward.
75
+
76
+ Modern clients are produced by a modern code generator, sometimes combined with hand-crafted functionality. Most modern clients connect to high-performance gRPC endpoints, although a few are backed by REST services. Modern clients are available for many Google services, especially Google Cloud Platform services, but do not yet support all the services covered by the simple clients.
77
+
78
+ Gem names for modern clients are often of the form `google-cloud-<service_name>`. (For example, [google-cloud-pubsub](https://rubygems.org/gems/google-cloud-pubsub).) Note that most modern clients also have corresponding "versioned" gems with names like `google-cloud-<service_name>-<version>`. (For example, [google-cloud-pubsub-v1](https://rubygems.org/gems/google-cloud-pubsub-v1).) The "versioned" gems can be used directly, but often provide lower-level interfaces. In most cases, the main gem is recommended.
79
+
80
+ **For most users, we recommend the modern client, if one is available.** Compared with simple clients, modern clients are generally much easier to use and more Ruby-like, support more advanced features such as streaming and long-running operations, and often provide much better performance. You may consider using a simple client instead, if a modern client is not yet available for the service you want to use, or if you are not able to use gRPC on your infrastructure.
81
+
82
+ The [product documentation](https://cloud.google.com/life-sciences) may provide guidance regarding the preferred client library to use.
83
+
84
+ ## Supported Ruby versions
85
+
86
+ This library is supported on Ruby 2.5+.
87
+
88
+ Google provides official support for Ruby versions that are actively supported by Ruby Core -- that is, Ruby versions that are either in normal maintenance or in security maintenance, and not end of life. Currently, this means Ruby 2.5 and later. Older versions of Ruby _may_ still work, but are unsupported and not recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby support schedule.
89
+
90
+ ## License
91
+
92
+ This library is licensed under Apache 2.0. Full license text is available in the {file:LICENSE.md LICENSE}.
93
+
94
+ ## Support
95
+
96
+ Please [report bugs at the project on Github](https://github.com/google/google-api-ruby-client/issues). Don't hesitate to [ask questions](http://stackoverflow.com/questions/tagged/google-api-ruby-client) about the client or APIs on [StackOverflow](http://stackoverflow.com).
@@ -0,0 +1,15 @@
1
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require "google/apis/lifesciences_v2beta"
@@ -0,0 +1,37 @@
1
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'google/apis/lifesciences_v2beta/service.rb'
16
+ require 'google/apis/lifesciences_v2beta/classes.rb'
17
+ require 'google/apis/lifesciences_v2beta/representations.rb'
18
+ require 'google/apis/lifesciences_v2beta/gem_version.rb'
19
+
20
+ module Google
21
+ module Apis
22
+ # Cloud Life Sciences API
23
+ #
24
+ # Cloud Life Sciences is a suite of services and tools for managing, processing,
25
+ # and transforming life sciences data.
26
+ #
27
+ # @see https://cloud.google.com/life-sciences
28
+ module LifesciencesV2beta
29
+ # Version of the Cloud Life Sciences API this client connects to.
30
+ # This is NOT the gem version.
31
+ VERSION = 'V2beta'
32
+
33
+ # View and manage your data across Google Cloud Platform services
34
+ AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
35
+ end
36
+ end
37
+ end
@@ -0,0 +1,1451 @@
1
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'date'
16
+ require 'google/apis/core/base_service'
17
+ require 'google/apis/core/json_representation'
18
+ require 'google/apis/core/hashable'
19
+ require 'google/apis/errors'
20
+
21
+ module Google
22
+ module Apis
23
+ module LifesciencesV2beta
24
+
25
+ # Carries information about an accelerator that can be attached to a VM.
26
+ class Accelerator
27
+ include Google::Apis::Core::Hashable
28
+
29
+ # How many accelerators of this type to attach.
30
+ # Corresponds to the JSON property `count`
31
+ # @return [Fixnum]
32
+ attr_accessor :count
33
+
34
+ # The accelerator type string (for example, "nvidia-tesla-k80"). Only NVIDIA GPU
35
+ # accelerators are currently supported. If an NVIDIA GPU is attached, the
36
+ # required runtime libraries will be made available to all containers under `/
37
+ # usr/local/nvidia`. The driver version to install must be specified using the
38
+ # NVIDIA driver version parameter on the virtual machine specification. Note
39
+ # that attaching a GPU increases the worker VM startup time by a few minutes.
40
+ # Corresponds to the JSON property `type`
41
+ # @return [String]
42
+ attr_accessor :type
43
+
44
+ def initialize(**args)
45
+ update!(**args)
46
+ end
47
+
48
+ # Update properties of this object
49
+ def update!(**args)
50
+ @count = args[:count] if args.key?(:count)
51
+ @type = args[:type] if args.key?(:type)
52
+ end
53
+ end
54
+
55
+ # Specifies a single action that runs a Docker container.
56
+ class Action
57
+ include Google::Apis::Core::Hashable
58
+
59
+ # By default, after an action fails, no further actions are run. This flag
60
+ # indicates that this action must be run even if the pipeline has already failed.
61
+ # This is useful for actions that copy output files off of the VM or for
62
+ # debugging. Note that no actions will be run if image prefetching fails.
63
+ # Corresponds to the JSON property `alwaysRun`
64
+ # @return [Boolean]
65
+ attr_accessor :always_run
66
+ alias_method :always_run?, :always_run
67
+
68
+ # Prevents the container from accessing the external network.
69
+ # Corresponds to the JSON property `blockExternalNetwork`
70
+ # @return [Boolean]
71
+ attr_accessor :block_external_network
72
+ alias_method :block_external_network?, :block_external_network
73
+
74
+ # If specified, overrides the `CMD` specified in the container. If the container
75
+ # also has an `ENTRYPOINT` the values are used as entrypoint arguments.
76
+ # Otherwise, they are used as a command and arguments to run inside the
77
+ # container.
78
+ # Corresponds to the JSON property `commands`
79
+ # @return [Array<String>]
80
+ attr_accessor :commands
81
+
82
+ # An optional name for the container. The container hostname will be set to this
83
+ # name, making it useful for inter-container communication. The name must
84
+ # contain only upper and lowercase alphanumeric characters and hyphens and
85
+ # cannot start with a hyphen.
86
+ # Corresponds to the JSON property `containerName`
87
+ # @return [String]
88
+ attr_accessor :container_name
89
+
90
+ # Holds encrypted information that is only decrypted and stored in RAM by the
91
+ # worker VM when running the pipeline.
92
+ # Corresponds to the JSON property `credentials`
93
+ # @return [Google::Apis::LifesciencesV2beta::Secret]
94
+ attr_accessor :credentials
95
+
96
+ # All container images are typically downloaded before any actions are executed.
97
+ # This helps prevent typos in URIs or issues like lack of disk space from
98
+ # wasting large amounts of compute resources. If set, this flag prevents the
99
+ # worker from downloading the image until just before the action is executed.
100
+ # Corresponds to the JSON property `disableImagePrefetch`
101
+ # @return [Boolean]
102
+ attr_accessor :disable_image_prefetch
103
+ alias_method :disable_image_prefetch?, :disable_image_prefetch
104
+
105
+ # A small portion of the container's standard error stream is typically captured
106
+ # and returned inside the `ContainerStoppedEvent`. Setting this flag disables
107
+ # this functionality.
108
+ # Corresponds to the JSON property `disableStandardErrorCapture`
109
+ # @return [Boolean]
110
+ attr_accessor :disable_standard_error_capture
111
+ alias_method :disable_standard_error_capture?, :disable_standard_error_capture
112
+
113
+ # Enable access to the FUSE device for this action. Filesystems can then be
114
+ # mounted into disks shared with other actions. The other actions do not need
115
+ # the `enable_fuse` flag to access the mounted filesystem. This has the effect
116
+ # of causing the container to be executed with `CAP_SYS_ADMIN` and exposes `/dev/
117
+ # fuse` to the container, so use it only for containers you trust.
118
+ # Corresponds to the JSON property `enableFuse`
119
+ # @return [Boolean]
120
+ attr_accessor :enable_fuse
121
+ alias_method :enable_fuse?, :enable_fuse
122
+
123
+ # If specified, overrides the `ENTRYPOINT` specified in the container.
124
+ # Corresponds to the JSON property `entrypoint`
125
+ # @return [String]
126
+ attr_accessor :entrypoint
127
+
128
+ # The environment to pass into the container. This environment is merged with
129
+ # values specified in the google.cloud.lifesciences.v2beta.Pipeline message,
130
+ # overwriting any duplicate values. In addition to the values passed here, a few
131
+ # other values are automatically injected into the environment. These cannot be
132
+ # hidden or overwritten. `GOOGLE_PIPELINE_FAILED` will be set to "1" if the
133
+ # pipeline failed because an action has exited with a non-zero status (and did
134
+ # not have the `IGNORE_EXIT_STATUS` flag set). This can be used to determine if
135
+ # additional debug or logging actions should execute. `GOOGLE_LAST_EXIT_STATUS`
136
+ # will be set to the exit status of the last non-background action that executed.
137
+ # This can be used by workflow engine authors to determine whether an
138
+ # individual action has succeeded or failed.
139
+ # Corresponds to the JSON property `environment`
140
+ # @return [Hash<String,String>]
141
+ attr_accessor :environment
142
+
143
+ # Normally, a non-zero exit status causes the pipeline to fail. This flag allows
144
+ # execution of other actions to continue instead.
145
+ # Corresponds to the JSON property `ignoreExitStatus`
146
+ # @return [Boolean]
147
+ attr_accessor :ignore_exit_status
148
+ alias_method :ignore_exit_status?, :ignore_exit_status
149
+
150
+ # Required. The URI to pull the container image from. Note that all images
151
+ # referenced by actions in the pipeline are pulled before the first action runs.
152
+ # If multiple actions reference the same image, it is only pulled once, ensuring
153
+ # that the same image is used for all actions in a single pipeline. The image
154
+ # URI can be either a complete host and image specification (e.g., quay.io/
155
+ # biocontainers/samtools), a library and image name (e.g., google/cloud-sdk) or
156
+ # a bare image name ('bash') to pull from the default library. No schema is
157
+ # required in any of these cases. If the specified image is not public, the
158
+ # service account specified for the Virtual Machine must have access to pull the
159
+ # images from GCR, or appropriate credentials must be specified in the google.
160
+ # cloud.lifesciences.v2beta.Action.credentials field.
161
+ # Corresponds to the JSON property `imageUri`
162
+ # @return [String]
163
+ attr_accessor :image_uri
164
+
165
+ # Labels to associate with the action. This field is provided to assist workflow
166
+ # engine authors in identifying actions (for example, to indicate what sort of
167
+ # action they perform, such as localization or debugging). They are returned in
168
+ # the operation metadata, but are otherwise ignored.
169
+ # Corresponds to the JSON property `labels`
170
+ # @return [Hash<String,String>]
171
+ attr_accessor :labels
172
+
173
+ # A list of mounts to make available to the action. In addition to the values
174
+ # specified here, every action has a special virtual disk mounted under `/google`
175
+ # that contains log files and other operational components. - /google/logs All
176
+ # logs written during the pipeline execution. - /google/logs/output The combined
177
+ # standard output and standard error of all actions run as part of the pipeline
178
+ # execution. - /google/logs/action/*/stdout The complete contents of each
179
+ # individual action's standard output. - /google/logs/action/*/stderr The
180
+ # complete contents of each individual action's standard error output.
181
+ # Corresponds to the JSON property `mounts`
182
+ # @return [Array<Google::Apis::LifesciencesV2beta::Mount>]
183
+ attr_accessor :mounts
184
+
185
+ # An optional identifier for a PID namespace to run the action inside. Multiple
186
+ # actions should use the same string to share a namespace. If unspecified, a
187
+ # separate isolated namespace is used.
188
+ # Corresponds to the JSON property `pidNamespace`
189
+ # @return [String]
190
+ attr_accessor :pid_namespace
191
+
192
+ # A map of containers to host port mappings for this container. If the container
193
+ # already specifies exposed ports, use the `PUBLISH_EXPOSED_PORTS` flag instead.
194
+ # The host port number must be less than 65536. If it is zero, an unused random
195
+ # port is assigned. To determine the resulting port number, consult the `
196
+ # ContainerStartedEvent` in the operation metadata.
197
+ # Corresponds to the JSON property `portMappings`
198
+ # @return [Hash<String,Fixnum>]
199
+ attr_accessor :port_mappings
200
+
201
+ # Exposes all ports specified by `EXPOSE` statements in the container. To
202
+ # discover the host side port numbers, consult the `ACTION_STARTED` event in the
203
+ # operation metadata.
204
+ # Corresponds to the JSON property `publishExposedPorts`
205
+ # @return [Boolean]
206
+ attr_accessor :publish_exposed_ports
207
+ alias_method :publish_exposed_ports?, :publish_exposed_ports
208
+
209
+ # This flag allows an action to continue running in the background while
210
+ # executing subsequent actions. This is useful to provide services to other
211
+ # actions (or to provide debugging support tools like SSH servers).
212
+ # Corresponds to the JSON property `runInBackground`
213
+ # @return [Boolean]
214
+ attr_accessor :run_in_background
215
+ alias_method :run_in_background?, :run_in_background
216
+
217
+ # The maximum amount of time to give the action to complete. If the action fails
218
+ # to complete before the timeout, it will be terminated and the exit status will
219
+ # be non-zero. The pipeline will continue or terminate based on the rules
220
+ # defined by the `ALWAYS_RUN` and `IGNORE_EXIT_STATUS` flags.
221
+ # Corresponds to the JSON property `timeout`
222
+ # @return [String]
223
+ attr_accessor :timeout
224
+
225
+ def initialize(**args)
226
+ update!(**args)
227
+ end
228
+
229
+ # Update properties of this object
230
+ def update!(**args)
231
+ @always_run = args[:always_run] if args.key?(:always_run)
232
+ @block_external_network = args[:block_external_network] if args.key?(:block_external_network)
233
+ @commands = args[:commands] if args.key?(:commands)
234
+ @container_name = args[:container_name] if args.key?(:container_name)
235
+ @credentials = args[:credentials] if args.key?(:credentials)
236
+ @disable_image_prefetch = args[:disable_image_prefetch] if args.key?(:disable_image_prefetch)
237
+ @disable_standard_error_capture = args[:disable_standard_error_capture] if args.key?(:disable_standard_error_capture)
238
+ @enable_fuse = args[:enable_fuse] if args.key?(:enable_fuse)
239
+ @entrypoint = args[:entrypoint] if args.key?(:entrypoint)
240
+ @environment = args[:environment] if args.key?(:environment)
241
+ @ignore_exit_status = args[:ignore_exit_status] if args.key?(:ignore_exit_status)
242
+ @image_uri = args[:image_uri] if args.key?(:image_uri)
243
+ @labels = args[:labels] if args.key?(:labels)
244
+ @mounts = args[:mounts] if args.key?(:mounts)
245
+ @pid_namespace = args[:pid_namespace] if args.key?(:pid_namespace)
246
+ @port_mappings = args[:port_mappings] if args.key?(:port_mappings)
247
+ @publish_exposed_ports = args[:publish_exposed_ports] if args.key?(:publish_exposed_ports)
248
+ @run_in_background = args[:run_in_background] if args.key?(:run_in_background)
249
+ @timeout = args[:timeout] if args.key?(:timeout)
250
+ end
251
+ end
252
+
253
+ # The request message for Operations.CancelOperation.
254
+ class CancelOperationRequest
255
+ include Google::Apis::Core::Hashable
256
+
257
+ def initialize(**args)
258
+ update!(**args)
259
+ end
260
+
261
+ # Update properties of this object
262
+ def update!(**args)
263
+ end
264
+ end
265
+
266
+ # An event generated when a container is forcibly terminated by the worker.
267
+ # Currently, this only occurs when the container outlives the timeout specified
268
+ # by the user.
269
+ class ContainerKilledEvent
270
+ include Google::Apis::Core::Hashable
271
+
272
+ # The numeric ID of the action that started the container.
273
+ # Corresponds to the JSON property `actionId`
274
+ # @return [Fixnum]
275
+ attr_accessor :action_id
276
+
277
+ def initialize(**args)
278
+ update!(**args)
279
+ end
280
+
281
+ # Update properties of this object
282
+ def update!(**args)
283
+ @action_id = args[:action_id] if args.key?(:action_id)
284
+ end
285
+ end
286
+
287
+ # An event generated when a container starts.
288
+ class ContainerStartedEvent
289
+ include Google::Apis::Core::Hashable
290
+
291
+ # The numeric ID of the action that started this container.
292
+ # Corresponds to the JSON property `actionId`
293
+ # @return [Fixnum]
294
+ attr_accessor :action_id
295
+
296
+ # The public IP address that can be used to connect to the container. This field
297
+ # is only populated when at least one port mapping is present. If the instance
298
+ # was created with a private address, this field will be empty even if port
299
+ # mappings exist.
300
+ # Corresponds to the JSON property `ipAddress`
301
+ # @return [String]
302
+ attr_accessor :ip_address
303
+
304
+ # The container-to-host port mappings installed for this container. This set
305
+ # will contain any ports exposed using the `PUBLISH_EXPOSED_PORTS` flag as well
306
+ # as any specified in the `Action` definition.
307
+ # Corresponds to the JSON property `portMappings`
308
+ # @return [Hash<String,Fixnum>]
309
+ attr_accessor :port_mappings
310
+
311
+ def initialize(**args)
312
+ update!(**args)
313
+ end
314
+
315
+ # Update properties of this object
316
+ def update!(**args)
317
+ @action_id = args[:action_id] if args.key?(:action_id)
318
+ @ip_address = args[:ip_address] if args.key?(:ip_address)
319
+ @port_mappings = args[:port_mappings] if args.key?(:port_mappings)
320
+ end
321
+ end
322
+
323
+ # An event generated when a container exits.
324
+ class ContainerStoppedEvent
325
+ include Google::Apis::Core::Hashable
326
+
327
+ # The numeric ID of the action that started this container.
328
+ # Corresponds to the JSON property `actionId`
329
+ # @return [Fixnum]
330
+ attr_accessor :action_id
331
+
332
+ # The exit status of the container.
333
+ # Corresponds to the JSON property `exitStatus`
334
+ # @return [Fixnum]
335
+ attr_accessor :exit_status
336
+
337
+ # The tail end of any content written to standard error by the container. If the
338
+ # content emits large amounts of debugging noise or contains sensitive
339
+ # information, you can prevent the content from being printed by setting the `
340
+ # DISABLE_STANDARD_ERROR_CAPTURE` flag. Note that only a small amount of the end
341
+ # of the stream is captured here. The entire stream is stored in the `/google/
342
+ # logs` directory mounted into each action, and can be copied off the machine as
343
+ # described elsewhere.
344
+ # Corresponds to the JSON property `stderr`
345
+ # @return [String]
346
+ attr_accessor :stderr
347
+
348
+ def initialize(**args)
349
+ update!(**args)
350
+ end
351
+
352
+ # Update properties of this object
353
+ def update!(**args)
354
+ @action_id = args[:action_id] if args.key?(:action_id)
355
+ @exit_status = args[:exit_status] if args.key?(:exit_status)
356
+ @stderr = args[:stderr] if args.key?(:stderr)
357
+ end
358
+ end
359
+
360
+ # An event generated whenever a resource limitation or transient error delays
361
+ # execution of a pipeline that was otherwise ready to run.
362
+ class DelayedEvent
363
+ include Google::Apis::Core::Hashable
364
+
365
+ # A textual description of the cause of the delay. The string can change without
366
+ # notice because it is often generated by another service (such as Compute
367
+ # Engine).
368
+ # Corresponds to the JSON property `cause`
369
+ # @return [String]
370
+ attr_accessor :cause
371
+
372
+ # If the delay was caused by a resource shortage, this field lists the Compute
373
+ # Engine metrics that are preventing this operation from running (for example, `
374
+ # CPUS` or `INSTANCES`). If the particular metric is not known, a single `
375
+ # UNKNOWN` metric will be present.
376
+ # Corresponds to the JSON property `metrics`
377
+ # @return [Array<String>]
378
+ attr_accessor :metrics
379
+
380
+ def initialize(**args)
381
+ update!(**args)
382
+ end
383
+
384
+ # Update properties of this object
385
+ def update!(**args)
386
+ @cause = args[:cause] if args.key?(:cause)
387
+ @metrics = args[:metrics] if args.key?(:metrics)
388
+ end
389
+ end
390
+
391
+ # Carries information about a disk that can be attached to a VM. See https://
392
+ # cloud.google.com/compute/docs/disks/performance for more information about
393
+ # disk type, size, and performance considerations. Specify either `Volume` or `
394
+ # Disk`, but not both.
395
+ class Disk
396
+ include Google::Apis::Core::Hashable
397
+
398
+ # A user-supplied name for the disk. Used when mounting the disk into actions.
399
+ # The name must contain only upper and lowercase alphanumeric characters and
400
+ # hyphens and cannot start with a hyphen.
401
+ # Corresponds to the JSON property `name`
402
+ # @return [String]
403
+ attr_accessor :name
404
+
405
+ # The size, in GB, of the disk to attach. If the size is not specified, a
406
+ # default is chosen to ensure reasonable I/O performance. If the disk type is
407
+ # specified as `local-ssd`, multiple local drives are automatically combined to
408
+ # provide the requested size. Note, however, that each physical SSD is 375GB in
409
+ # size, and no more than 8 drives can be attached to a single instance.
410
+ # Corresponds to the JSON property `sizeGb`
411
+ # @return [Fixnum]
412
+ attr_accessor :size_gb
413
+
414
+ # An optional image to put on the disk before attaching it to the VM.
415
+ # Corresponds to the JSON property `sourceImage`
416
+ # @return [String]
417
+ attr_accessor :source_image
418
+
419
+ # The Compute Engine disk type. If unspecified, `pd-standard` is used.
420
+ # Corresponds to the JSON property `type`
421
+ # @return [String]
422
+ attr_accessor :type
423
+
424
+ def initialize(**args)
425
+ update!(**args)
426
+ end
427
+
428
+ # Update properties of this object
429
+ def update!(**args)
430
+ @name = args[:name] if args.key?(:name)
431
+ @size_gb = args[:size_gb] if args.key?(:size_gb)
432
+ @source_image = args[:source_image] if args.key?(:source_image)
433
+ @type = args[:type] if args.key?(:type)
434
+ end
435
+ end
436
+
437
+ # A generic empty message that you can re-use to avoid defining duplicated empty
438
+ # messages in your APIs. A typical example is to use it as the request or the
439
+ # response type of an API method. For instance: service Foo ` rpc Bar(google.
440
+ # protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
441
+ # `Empty` is empty JSON object ````.
442
+ class Empty
443
+ include Google::Apis::Core::Hashable
444
+
445
+ def initialize(**args)
446
+ update!(**args)
447
+ end
448
+
449
+ # Update properties of this object
450
+ def update!(**args)
451
+ end
452
+ end
453
+
454
+ # Carries information about events that occur during pipeline execution.
455
+ class Event
456
+ include Google::Apis::Core::Hashable
457
+
458
+ # An event generated when a container is forcibly terminated by the worker.
459
+ # Currently, this only occurs when the container outlives the timeout specified
460
+ # by the user.
461
+ # Corresponds to the JSON property `containerKilled`
462
+ # @return [Google::Apis::LifesciencesV2beta::ContainerKilledEvent]
463
+ attr_accessor :container_killed
464
+
465
+ # An event generated when a container starts.
466
+ # Corresponds to the JSON property `containerStarted`
467
+ # @return [Google::Apis::LifesciencesV2beta::ContainerStartedEvent]
468
+ attr_accessor :container_started
469
+
470
+ # An event generated when a container exits.
471
+ # Corresponds to the JSON property `containerStopped`
472
+ # @return [Google::Apis::LifesciencesV2beta::ContainerStoppedEvent]
473
+ attr_accessor :container_stopped
474
+
475
+ # An event generated whenever a resource limitation or transient error delays
476
+ # execution of a pipeline that was otherwise ready to run.
477
+ # Corresponds to the JSON property `delayed`
478
+ # @return [Google::Apis::LifesciencesV2beta::DelayedEvent]
479
+ attr_accessor :delayed
480
+
481
+ # A human-readable description of the event. Note that these strings can change
482
+ # at any time without notice. Any application logic must use the information in
483
+ # the `details` field.
484
+ # Corresponds to the JSON property `description`
485
+ # @return [String]
486
+ attr_accessor :description
487
+
488
+ # An event generated when the execution of a pipeline has failed. Note that
489
+ # other events can continue to occur after this event.
490
+ # Corresponds to the JSON property `failed`
491
+ # @return [Google::Apis::LifesciencesV2beta::FailedEvent]
492
+ attr_accessor :failed
493
+
494
+ # An event generated when the worker starts pulling an image.
495
+ # Corresponds to the JSON property `pullStarted`
496
+ # @return [Google::Apis::LifesciencesV2beta::PullStartedEvent]
497
+ attr_accessor :pull_started
498
+
499
+ # An event generated when the worker stops pulling an image.
500
+ # Corresponds to the JSON property `pullStopped`
501
+ # @return [Google::Apis::LifesciencesV2beta::PullStoppedEvent]
502
+ attr_accessor :pull_stopped
503
+
504
+ # The time at which the event occurred.
505
+ # Corresponds to the JSON property `timestamp`
506
+ # @return [String]
507
+ attr_accessor :timestamp
508
+
509
+ # An event generated when the execution of a container results in a non-zero
510
+ # exit status that was not otherwise ignored. Execution will continue, but only
511
+ # actions that are flagged as `ALWAYS_RUN` will be executed. Other actions will
512
+ # be skipped.
513
+ # Corresponds to the JSON property `unexpectedExitStatus`
514
+ # @return [Google::Apis::LifesciencesV2beta::UnexpectedExitStatusEvent]
515
+ attr_accessor :unexpected_exit_status
516
+
517
+ # An event generated after a worker VM has been assigned to run the pipeline.
518
+ # Corresponds to the JSON property `workerAssigned`
519
+ # @return [Google::Apis::LifesciencesV2beta::WorkerAssignedEvent]
520
+ attr_accessor :worker_assigned
521
+
522
+ # An event generated when the worker VM that was assigned to the pipeline has
523
+ # been released (deleted).
524
+ # Corresponds to the JSON property `workerReleased`
525
+ # @return [Google::Apis::LifesciencesV2beta::WorkerReleasedEvent]
526
+ attr_accessor :worker_released
527
+
528
+ def initialize(**args)
529
+ update!(**args)
530
+ end
531
+
532
+ # Update properties of this object
533
+ def update!(**args)
534
+ @container_killed = args[:container_killed] if args.key?(:container_killed)
535
+ @container_started = args[:container_started] if args.key?(:container_started)
536
+ @container_stopped = args[:container_stopped] if args.key?(:container_stopped)
537
+ @delayed = args[:delayed] if args.key?(:delayed)
538
+ @description = args[:description] if args.key?(:description)
539
+ @failed = args[:failed] if args.key?(:failed)
540
+ @pull_started = args[:pull_started] if args.key?(:pull_started)
541
+ @pull_stopped = args[:pull_stopped] if args.key?(:pull_stopped)
542
+ @timestamp = args[:timestamp] if args.key?(:timestamp)
543
+ @unexpected_exit_status = args[:unexpected_exit_status] if args.key?(:unexpected_exit_status)
544
+ @worker_assigned = args[:worker_assigned] if args.key?(:worker_assigned)
545
+ @worker_released = args[:worker_released] if args.key?(:worker_released)
546
+ end
547
+ end
548
+
549
+ # Configuration for an existing disk to be attached to the VM.
550
+ class ExistingDisk
551
+ include Google::Apis::Core::Hashable
552
+
553
+ # If `disk` contains slashes, the Cloud Life Sciences API assumes that it is a
554
+ # complete URL for the disk. If `disk` does not contain slashes, the Cloud Life
555
+ # Sciences API assumes that the disk is a zonal disk and a URL will be generated
556
+ # of the form `zones//disks/`, where `` is the zone in which the instance is
557
+ # allocated. The disk must be ext4 formatted. If all `Mount` references to this
558
+ # disk have the `read_only` flag set to true, the disk will be attached in `read-
559
+ # only` mode and can be shared with other instances. Otherwise, the disk will be
560
+ # available for writing but cannot be shared.
561
+ # Corresponds to the JSON property `disk`
562
+ # @return [String]
563
+ attr_accessor :disk
564
+
565
+ def initialize(**args)
566
+ update!(**args)
567
+ end
568
+
569
+ # Update properties of this object
570
+ def update!(**args)
571
+ @disk = args[:disk] if args.key?(:disk)
572
+ end
573
+ end
574
+
575
+ # An event generated when the execution of a pipeline has failed. Note that
576
+ # other events can continue to occur after this event.
577
+ class FailedEvent
578
+ include Google::Apis::Core::Hashable
579
+
580
+ # The human-readable description of the cause of the failure.
581
+ # Corresponds to the JSON property `cause`
582
+ # @return [String]
583
+ attr_accessor :cause
584
+
585
+ # The Google standard error code that best describes this failure.
586
+ # Corresponds to the JSON property `code`
587
+ # @return [String]
588
+ attr_accessor :code
589
+
590
+ def initialize(**args)
591
+ update!(**args)
592
+ end
593
+
594
+ # Update properties of this object
595
+ def update!(**args)
596
+ @cause = args[:cause] if args.key?(:cause)
597
+ @code = args[:code] if args.key?(:code)
598
+ end
599
+ end
600
+
601
+ # The response message for Locations.ListLocations.
602
+ class ListLocationsResponse
603
+ include Google::Apis::Core::Hashable
604
+
605
+ # A list of locations that matches the specified filter in the request.
606
+ # Corresponds to the JSON property `locations`
607
+ # @return [Array<Google::Apis::LifesciencesV2beta::Location>]
608
+ attr_accessor :locations
609
+
610
+ # The standard List next-page token.
611
+ # Corresponds to the JSON property `nextPageToken`
612
+ # @return [String]
613
+ attr_accessor :next_page_token
614
+
615
+ def initialize(**args)
616
+ update!(**args)
617
+ end
618
+
619
+ # Update properties of this object
620
+ def update!(**args)
621
+ @locations = args[:locations] if args.key?(:locations)
622
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
623
+ end
624
+ end
625
+
626
+ # The response message for Operations.ListOperations.
627
+ class ListOperationsResponse
628
+ include Google::Apis::Core::Hashable
629
+
630
+ # The standard List next-page token.
631
+ # Corresponds to the JSON property `nextPageToken`
632
+ # @return [String]
633
+ attr_accessor :next_page_token
634
+
635
+ # A list of operations that matches the specified filter in the request.
636
+ # Corresponds to the JSON property `operations`
637
+ # @return [Array<Google::Apis::LifesciencesV2beta::Operation>]
638
+ attr_accessor :operations
639
+
640
+ def initialize(**args)
641
+ update!(**args)
642
+ end
643
+
644
+ # Update properties of this object
645
+ def update!(**args)
646
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
647
+ @operations = args[:operations] if args.key?(:operations)
648
+ end
649
+ end
650
+
651
+ # A resource that represents Google Cloud Platform location.
652
+ class Location
653
+ include Google::Apis::Core::Hashable
654
+
655
+ # The friendly name for this location, typically a nearby city name. For example,
656
+ # "Tokyo".
657
+ # Corresponds to the JSON property `displayName`
658
+ # @return [String]
659
+ attr_accessor :display_name
660
+
661
+ # Cross-service attributes for the location. For example `"cloud.googleapis.com/
662
+ # region": "us-east1"`
663
+ # Corresponds to the JSON property `labels`
664
+ # @return [Hash<String,String>]
665
+ attr_accessor :labels
666
+
667
+ # The canonical id for this location. For example: `"us-east1"`.
668
+ # Corresponds to the JSON property `locationId`
669
+ # @return [String]
670
+ attr_accessor :location_id
671
+
672
+ # Service-specific metadata. For example the available capacity at the given
673
+ # location.
674
+ # Corresponds to the JSON property `metadata`
675
+ # @return [Hash<String,Object>]
676
+ attr_accessor :metadata
677
+
678
+ # Resource name for the location, which may vary between implementations. For
679
+ # example: `"projects/example-project/locations/us-east1"`
680
+ # Corresponds to the JSON property `name`
681
+ # @return [String]
682
+ attr_accessor :name
683
+
684
+ def initialize(**args)
685
+ update!(**args)
686
+ end
687
+
688
+ # Update properties of this object
689
+ def update!(**args)
690
+ @display_name = args[:display_name] if args.key?(:display_name)
691
+ @labels = args[:labels] if args.key?(:labels)
692
+ @location_id = args[:location_id] if args.key?(:location_id)
693
+ @metadata = args[:metadata] if args.key?(:metadata)
694
+ @name = args[:name] if args.key?(:name)
695
+ end
696
+ end
697
+
698
+ # Carries information about the pipeline execution that is returned in the long
699
+ # running operation's metadata field.
700
+ class Metadata
701
+ include Google::Apis::Core::Hashable
702
+
703
+ # The time at which the operation was created by the API.
704
+ # Corresponds to the JSON property `createTime`
705
+ # @return [String]
706
+ attr_accessor :create_time
707
+
708
+ # The time at which execution was completed and resources were cleaned up.
709
+ # Corresponds to the JSON property `endTime`
710
+ # @return [String]
711
+ attr_accessor :end_time
712
+
713
+ # The list of events that have happened so far during the execution of this
714
+ # operation.
715
+ # Corresponds to the JSON property `events`
716
+ # @return [Array<Google::Apis::LifesciencesV2beta::Event>]
717
+ attr_accessor :events
718
+
719
+ # The user-defined labels associated with this operation.
720
+ # Corresponds to the JSON property `labels`
721
+ # @return [Hash<String,String>]
722
+ attr_accessor :labels
723
+
724
+ # Specifies a series of actions to execute, expressed as Docker containers.
725
+ # Corresponds to the JSON property `pipeline`
726
+ # @return [Google::Apis::LifesciencesV2beta::Pipeline]
727
+ attr_accessor :pipeline
728
+
729
+ # The first time at which resources were allocated to execute the pipeline.
730
+ # Corresponds to the JSON property `startTime`
731
+ # @return [String]
732
+ attr_accessor :start_time
733
+
734
+ def initialize(**args)
735
+ update!(**args)
736
+ end
737
+
738
+ # Update properties of this object
739
+ def update!(**args)
740
+ @create_time = args[:create_time] if args.key?(:create_time)
741
+ @end_time = args[:end_time] if args.key?(:end_time)
742
+ @events = args[:events] if args.key?(:events)
743
+ @labels = args[:labels] if args.key?(:labels)
744
+ @pipeline = args[:pipeline] if args.key?(:pipeline)
745
+ @start_time = args[:start_time] if args.key?(:start_time)
746
+ end
747
+ end
748
+
749
+ # Carries information about a particular disk mount inside a container.
750
+ class Mount
751
+ include Google::Apis::Core::Hashable
752
+
753
+ # The name of the disk to mount, as specified in the resources section.
754
+ # Corresponds to the JSON property `disk`
755
+ # @return [String]
756
+ attr_accessor :disk
757
+
758
+ # The path to mount the disk inside the container.
759
+ # Corresponds to the JSON property `path`
760
+ # @return [String]
761
+ attr_accessor :path
762
+
763
+ # If true, the disk is mounted read-only inside the container.
764
+ # Corresponds to the JSON property `readOnly`
765
+ # @return [Boolean]
766
+ attr_accessor :read_only
767
+ alias_method :read_only?, :read_only
768
+
769
+ def initialize(**args)
770
+ update!(**args)
771
+ end
772
+
773
+ # Update properties of this object
774
+ def update!(**args)
775
+ @disk = args[:disk] if args.key?(:disk)
776
+ @path = args[:path] if args.key?(:path)
777
+ @read_only = args[:read_only] if args.key?(:read_only)
778
+ end
779
+ end
780
+
781
+ # Configuration for an `NFSMount` to be attached to the VM.
782
+ class NfsMount
783
+ include Google::Apis::Core::Hashable
784
+
785
+ # A target NFS mount. The target must be specified as `address:/mount".
786
+ # Corresponds to the JSON property `target`
787
+ # @return [String]
788
+ attr_accessor :target
789
+
790
+ def initialize(**args)
791
+ update!(**args)
792
+ end
793
+
794
+ # Update properties of this object
795
+ def update!(**args)
796
+ @target = args[:target] if args.key?(:target)
797
+ end
798
+ end
799
+
800
+ # VM networking options.
801
+ class Network
802
+ include Google::Apis::Core::Hashable
803
+
804
+ # The network name to attach the VM's network interface to. The value will be
805
+ # prefixed with `global/networks/` unless it contains a `/`, in which case it is
806
+ # assumed to be a fully specified network resource URL. If unspecified, the
807
+ # global default network is used.
808
+ # Corresponds to the JSON property `network`
809
+ # @return [String]
810
+ attr_accessor :network
811
+
812
+ # If the specified network is configured for custom subnet creation, the name of
813
+ # the subnetwork to attach the instance to must be specified here. The value is
814
+ # prefixed with `regions/*/subnetworks/` unless it contains a `/`, in which case
815
+ # it is assumed to be a fully specified subnetwork resource URL. If the `*`
816
+ # character appears in the value, it is replaced with the region that the
817
+ # virtual machine has been allocated in.
818
+ # Corresponds to the JSON property `subnetwork`
819
+ # @return [String]
820
+ attr_accessor :subnetwork
821
+
822
+ # If set to true, do not attach a public IP address to the VM. Note that without
823
+ # a public IP address, additional configuration is required to allow the VM to
824
+ # access Google services. See https://cloud.google.com/vpc/docs/configure-
825
+ # private-google-access for more information.
826
+ # Corresponds to the JSON property `usePrivateAddress`
827
+ # @return [Boolean]
828
+ attr_accessor :use_private_address
829
+ alias_method :use_private_address?, :use_private_address
830
+
831
+ def initialize(**args)
832
+ update!(**args)
833
+ end
834
+
835
+ # Update properties of this object
836
+ def update!(**args)
837
+ @network = args[:network] if args.key?(:network)
838
+ @subnetwork = args[:subnetwork] if args.key?(:subnetwork)
839
+ @use_private_address = args[:use_private_address] if args.key?(:use_private_address)
840
+ end
841
+ end
842
+
843
+ # This resource represents a long-running operation that is the result of a
844
+ # network API call.
845
+ class Operation
846
+ include Google::Apis::Core::Hashable
847
+
848
+ # If the value is `false`, it means the operation is still in progress. If `true`
849
+ # , the operation is completed, and either `error` or `response` is available.
850
+ # Corresponds to the JSON property `done`
851
+ # @return [Boolean]
852
+ attr_accessor :done
853
+ alias_method :done?, :done
854
+
855
+ # The `Status` type defines a logical error model that is suitable for different
856
+ # programming environments, including REST APIs and RPC APIs. It is used by [
857
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
858
+ # data: error code, error message, and error details. You can find out more
859
+ # about this error model and how to work with it in the [API Design Guide](https:
860
+ # //cloud.google.com/apis/design/errors).
861
+ # Corresponds to the JSON property `error`
862
+ # @return [Google::Apis::LifesciencesV2beta::Status]
863
+ attr_accessor :error
864
+
865
+ # An Metadata object. This will always be returned with the Operation.
866
+ # Corresponds to the JSON property `metadata`
867
+ # @return [Hash<String,Object>]
868
+ attr_accessor :metadata
869
+
870
+ # The server-assigned name for the operation. This may be passed to the other
871
+ # operation methods to retrieve information about the operation's status.
872
+ # Corresponds to the JSON property `name`
873
+ # @return [String]
874
+ attr_accessor :name
875
+
876
+ # An Empty object.
877
+ # Corresponds to the JSON property `response`
878
+ # @return [Hash<String,Object>]
879
+ attr_accessor :response
880
+
881
+ def initialize(**args)
882
+ update!(**args)
883
+ end
884
+
885
+ # Update properties of this object
886
+ def update!(**args)
887
+ @done = args[:done] if args.key?(:done)
888
+ @error = args[:error] if args.key?(:error)
889
+ @metadata = args[:metadata] if args.key?(:metadata)
890
+ @name = args[:name] if args.key?(:name)
891
+ @response = args[:response] if args.key?(:response)
892
+ end
893
+ end
894
+
895
+ # Configuration for a persistent disk to be attached to the VM. See https://
896
+ # cloud.google.com/compute/docs/disks/performance for more information about
897
+ # disk type, size, and performance considerations.
898
+ class PersistentDisk
899
+ include Google::Apis::Core::Hashable
900
+
901
+ # The size, in GB, of the disk to attach. If the size is not specified, a
902
+ # default is chosen to ensure reasonable I/O performance. If the disk type is
903
+ # specified as `local-ssd`, multiple local drives are automatically combined to
904
+ # provide the requested size. Note, however, that each physical SSD is 375GB in
905
+ # size, and no more than 8 drives can be attached to a single instance.
906
+ # Corresponds to the JSON property `sizeGb`
907
+ # @return [Fixnum]
908
+ attr_accessor :size_gb
909
+
910
+ # An image to put on the disk before attaching it to the VM.
911
+ # Corresponds to the JSON property `sourceImage`
912
+ # @return [String]
913
+ attr_accessor :source_image
914
+
915
+ # The Compute Engine disk type. If unspecified, `pd-standard` is used.
916
+ # Corresponds to the JSON property `type`
917
+ # @return [String]
918
+ attr_accessor :type
919
+
920
+ def initialize(**args)
921
+ update!(**args)
922
+ end
923
+
924
+ # Update properties of this object
925
+ def update!(**args)
926
+ @size_gb = args[:size_gb] if args.key?(:size_gb)
927
+ @source_image = args[:source_image] if args.key?(:source_image)
928
+ @type = args[:type] if args.key?(:type)
929
+ end
930
+ end
931
+
932
+ # Specifies a series of actions to execute, expressed as Docker containers.
933
+ class Pipeline
934
+ include Google::Apis::Core::Hashable
935
+
936
+ # The list of actions to execute, in the order they are specified.
937
+ # Corresponds to the JSON property `actions`
938
+ # @return [Array<Google::Apis::LifesciencesV2beta::Action>]
939
+ attr_accessor :actions
940
+
941
+ # The environment to pass into every action. Each action can also specify
942
+ # additional environment variables but cannot delete an entry from this map (
943
+ # though they can overwrite it with a different value).
944
+ # Corresponds to the JSON property `environment`
945
+ # @return [Hash<String,String>]
946
+ attr_accessor :environment
947
+
948
+ # The system resources for the pipeline run. At least one zone or region must be
949
+ # specified or the pipeline run will fail.
950
+ # Corresponds to the JSON property `resources`
951
+ # @return [Google::Apis::LifesciencesV2beta::Resources]
952
+ attr_accessor :resources
953
+
954
+ # The maximum amount of time to give the pipeline to complete. This includes the
955
+ # time spent waiting for a worker to be allocated. If the pipeline fails to
956
+ # complete before the timeout, it will be cancelled and the error code will be
957
+ # set to DEADLINE_EXCEEDED. If unspecified, it will default to 7 days.
958
+ # Corresponds to the JSON property `timeout`
959
+ # @return [String]
960
+ attr_accessor :timeout
961
+
962
+ def initialize(**args)
963
+ update!(**args)
964
+ end
965
+
966
+ # Update properties of this object
967
+ def update!(**args)
968
+ @actions = args[:actions] if args.key?(:actions)
969
+ @environment = args[:environment] if args.key?(:environment)
970
+ @resources = args[:resources] if args.key?(:resources)
971
+ @timeout = args[:timeout] if args.key?(:timeout)
972
+ end
973
+ end
974
+
975
+ # An event generated when the worker starts pulling an image.
976
+ class PullStartedEvent
977
+ include Google::Apis::Core::Hashable
978
+
979
+ # The URI of the image that was pulled.
980
+ # Corresponds to the JSON property `imageUri`
981
+ # @return [String]
982
+ attr_accessor :image_uri
983
+
984
+ def initialize(**args)
985
+ update!(**args)
986
+ end
987
+
988
+ # Update properties of this object
989
+ def update!(**args)
990
+ @image_uri = args[:image_uri] if args.key?(:image_uri)
991
+ end
992
+ end
993
+
994
+ # An event generated when the worker stops pulling an image.
995
+ class PullStoppedEvent
996
+ include Google::Apis::Core::Hashable
997
+
998
+ # The URI of the image that was pulled.
999
+ # Corresponds to the JSON property `imageUri`
1000
+ # @return [String]
1001
+ attr_accessor :image_uri
1002
+
1003
+ def initialize(**args)
1004
+ update!(**args)
1005
+ end
1006
+
1007
+ # Update properties of this object
1008
+ def update!(**args)
1009
+ @image_uri = args[:image_uri] if args.key?(:image_uri)
1010
+ end
1011
+ end
1012
+
1013
+ # The system resources for the pipeline run. At least one zone or region must be
1014
+ # specified or the pipeline run will fail.
1015
+ class Resources
1016
+ include Google::Apis::Core::Hashable
1017
+
1018
+ # The list of regions allowed for VM allocation. If set, the `zones` field must
1019
+ # not be set.
1020
+ # Corresponds to the JSON property `regions`
1021
+ # @return [Array<String>]
1022
+ attr_accessor :regions
1023
+
1024
+ # Carries information about a Compute Engine VM resource.
1025
+ # Corresponds to the JSON property `virtualMachine`
1026
+ # @return [Google::Apis::LifesciencesV2beta::VirtualMachine]
1027
+ attr_accessor :virtual_machine
1028
+
1029
+ # The list of zones allowed for VM allocation. If set, the `regions` field must
1030
+ # not be set.
1031
+ # Corresponds to the JSON property `zones`
1032
+ # @return [Array<String>]
1033
+ attr_accessor :zones
1034
+
1035
+ def initialize(**args)
1036
+ update!(**args)
1037
+ end
1038
+
1039
+ # Update properties of this object
1040
+ def update!(**args)
1041
+ @regions = args[:regions] if args.key?(:regions)
1042
+ @virtual_machine = args[:virtual_machine] if args.key?(:virtual_machine)
1043
+ @zones = args[:zones] if args.key?(:zones)
1044
+ end
1045
+ end
1046
+
1047
+ # The arguments to the `RunPipeline` method. The requesting user must have the `
1048
+ # iam.serviceAccounts.actAs` permission for the Cloud Life Sciences service
1049
+ # account or the request will fail.
1050
+ class RunPipelineRequest
1051
+ include Google::Apis::Core::Hashable
1052
+
1053
+ # User-defined labels to associate with the returned operation. These labels are
1054
+ # not propagated to any Google Cloud Platform resources used by the operation,
1055
+ # and can be modified at any time. To associate labels with resources created
1056
+ # while executing the operation, see the appropriate resource message (for
1057
+ # example, `VirtualMachine`).
1058
+ # Corresponds to the JSON property `labels`
1059
+ # @return [Hash<String,String>]
1060
+ attr_accessor :labels
1061
+
1062
+ # Specifies a series of actions to execute, expressed as Docker containers.
1063
+ # Corresponds to the JSON property `pipeline`
1064
+ # @return [Google::Apis::LifesciencesV2beta::Pipeline]
1065
+ attr_accessor :pipeline
1066
+
1067
+ def initialize(**args)
1068
+ update!(**args)
1069
+ end
1070
+
1071
+ # Update properties of this object
1072
+ def update!(**args)
1073
+ @labels = args[:labels] if args.key?(:labels)
1074
+ @pipeline = args[:pipeline] if args.key?(:pipeline)
1075
+ end
1076
+ end
1077
+
1078
+ # The response to the RunPipeline method, returned in the operation's result
1079
+ # field on success.
1080
+ class RunPipelineResponse
1081
+ include Google::Apis::Core::Hashable
1082
+
1083
+ def initialize(**args)
1084
+ update!(**args)
1085
+ end
1086
+
1087
+ # Update properties of this object
1088
+ def update!(**args)
1089
+ end
1090
+ end
1091
+
1092
+ # Holds encrypted information that is only decrypted and stored in RAM by the
1093
+ # worker VM when running the pipeline.
1094
+ class Secret
1095
+ include Google::Apis::Core::Hashable
1096
+
1097
+ # The value of the cipherText response from the `encrypt` method. This field is
1098
+ # intentionally unaudited.
1099
+ # Corresponds to the JSON property `cipherText`
1100
+ # @return [String]
1101
+ attr_accessor :cipher_text
1102
+
1103
+ # The name of the Cloud KMS key that will be used to decrypt the secret value.
1104
+ # The VM service account must have the required permissions and authentication
1105
+ # scopes to invoke the `decrypt` method on the specified key.
1106
+ # Corresponds to the JSON property `keyName`
1107
+ # @return [String]
1108
+ attr_accessor :key_name
1109
+
1110
+ def initialize(**args)
1111
+ update!(**args)
1112
+ end
1113
+
1114
+ # Update properties of this object
1115
+ def update!(**args)
1116
+ @cipher_text = args[:cipher_text] if args.key?(:cipher_text)
1117
+ @key_name = args[:key_name] if args.key?(:key_name)
1118
+ end
1119
+ end
1120
+
1121
+ # Carries information about a Google Cloud service account.
1122
+ class ServiceAccount
1123
+ include Google::Apis::Core::Hashable
1124
+
1125
+ # Email address of the service account. If not specified, the default Compute
1126
+ # Engine service account for the project will be used.
1127
+ # Corresponds to the JSON property `email`
1128
+ # @return [String]
1129
+ attr_accessor :email
1130
+
1131
+ # List of scopes to be enabled for this service account on the VM, in addition
1132
+ # to the cloud-platform API scope that will be added by default.
1133
+ # Corresponds to the JSON property `scopes`
1134
+ # @return [Array<String>]
1135
+ attr_accessor :scopes
1136
+
1137
+ def initialize(**args)
1138
+ update!(**args)
1139
+ end
1140
+
1141
+ # Update properties of this object
1142
+ def update!(**args)
1143
+ @email = args[:email] if args.key?(:email)
1144
+ @scopes = args[:scopes] if args.key?(:scopes)
1145
+ end
1146
+ end
1147
+
1148
+ # The `Status` type defines a logical error model that is suitable for different
1149
+ # programming environments, including REST APIs and RPC APIs. It is used by [
1150
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
1151
+ # data: error code, error message, and error details. You can find out more
1152
+ # about this error model and how to work with it in the [API Design Guide](https:
1153
+ # //cloud.google.com/apis/design/errors).
1154
+ class Status
1155
+ include Google::Apis::Core::Hashable
1156
+
1157
+ # The status code, which should be an enum value of google.rpc.Code.
1158
+ # Corresponds to the JSON property `code`
1159
+ # @return [Fixnum]
1160
+ attr_accessor :code
1161
+
1162
+ # A list of messages that carry the error details. There is a common set of
1163
+ # message types for APIs to use.
1164
+ # Corresponds to the JSON property `details`
1165
+ # @return [Array<Hash<String,Object>>]
1166
+ attr_accessor :details
1167
+
1168
+ # A developer-facing error message, which should be in English. Any user-facing
1169
+ # error message should be localized and sent in the google.rpc.Status.details
1170
+ # field, or localized by the client.
1171
+ # Corresponds to the JSON property `message`
1172
+ # @return [String]
1173
+ attr_accessor :message
1174
+
1175
+ def initialize(**args)
1176
+ update!(**args)
1177
+ end
1178
+
1179
+ # Update properties of this object
1180
+ def update!(**args)
1181
+ @code = args[:code] if args.key?(:code)
1182
+ @details = args[:details] if args.key?(:details)
1183
+ @message = args[:message] if args.key?(:message)
1184
+ end
1185
+ end
1186
+
1187
+ # An event generated when the execution of a container results in a non-zero
1188
+ # exit status that was not otherwise ignored. Execution will continue, but only
1189
+ # actions that are flagged as `ALWAYS_RUN` will be executed. Other actions will
1190
+ # be skipped.
1191
+ class UnexpectedExitStatusEvent
1192
+ include Google::Apis::Core::Hashable
1193
+
1194
+ # The numeric ID of the action that started the container.
1195
+ # Corresponds to the JSON property `actionId`
1196
+ # @return [Fixnum]
1197
+ attr_accessor :action_id
1198
+
1199
+ # The exit status of the container.
1200
+ # Corresponds to the JSON property `exitStatus`
1201
+ # @return [Fixnum]
1202
+ attr_accessor :exit_status
1203
+
1204
+ def initialize(**args)
1205
+ update!(**args)
1206
+ end
1207
+
1208
+ # Update properties of this object
1209
+ def update!(**args)
1210
+ @action_id = args[:action_id] if args.key?(:action_id)
1211
+ @exit_status = args[:exit_status] if args.key?(:exit_status)
1212
+ end
1213
+ end
1214
+
1215
+ # Carries information about a Compute Engine VM resource.
1216
+ class VirtualMachine
1217
+ include Google::Apis::Core::Hashable
1218
+
1219
+ # The list of accelerators to attach to the VM.
1220
+ # Corresponds to the JSON property `accelerators`
1221
+ # @return [Array<Google::Apis::LifesciencesV2beta::Accelerator>]
1222
+ attr_accessor :accelerators
1223
+
1224
+ # The size of the boot disk, in GB. The boot disk must be large enough to
1225
+ # accommodate all of the Docker images from each action in the pipeline at the
1226
+ # same time. If not specified, a small but reasonable default value is used.
1227
+ # Corresponds to the JSON property `bootDiskSizeGb`
1228
+ # @return [Fixnum]
1229
+ attr_accessor :boot_disk_size_gb
1230
+
1231
+ # The host operating system image to use. Currently, only Container-Optimized OS
1232
+ # images can be used. The default value is `projects/cos-cloud/global/images/
1233
+ # family/cos-stable`, which selects the latest stable release of Container-
1234
+ # Optimized OS. This option is provided to allow testing against the beta
1235
+ # release of the operating system to ensure that the new version does not
1236
+ # interact negatively with production pipelines. To test a pipeline against the
1237
+ # beta release of Container-Optimized OS, use the value `projects/cos-cloud/
1238
+ # global/images/family/cos-beta`.
1239
+ # Corresponds to the JSON property `bootImage`
1240
+ # @return [String]
1241
+ attr_accessor :boot_image
1242
+
1243
+ # The CPU platform to request. An instance based on a newer platform can be
1244
+ # allocated, but never one with fewer capabilities. The value of this parameter
1245
+ # must be a valid Compute Engine CPU platform name (such as "Intel Skylake").
1246
+ # This parameter is only useful for carefully optimized work loads where the CPU
1247
+ # platform has a significant impact. For more information about the effect of
1248
+ # this parameter, see https://cloud.google.com/compute/docs/instances/specify-
1249
+ # min-cpu-platform.
1250
+ # Corresponds to the JSON property `cpuPlatform`
1251
+ # @return [String]
1252
+ attr_accessor :cpu_platform
1253
+
1254
+ # The list of disks to create and attach to the VM. Specify either the `volumes[]
1255
+ # ` field or the `disks[]` field, but not both.
1256
+ # Corresponds to the JSON property `disks`
1257
+ # @return [Array<Google::Apis::LifesciencesV2beta::Disk>]
1258
+ attr_accessor :disks
1259
+
1260
+ # The Compute Engine Disk Images to use as a Docker cache. The disks will be
1261
+ # mounted into the Docker folder in a way that the images present in the cache
1262
+ # will not need to be pulled. The digests of the cached images must match those
1263
+ # of the tags used or the latest version will still be pulled. The root
1264
+ # directory of the ext4 image must contain `image` and `overlay2` directories
1265
+ # copied from the Docker directory of a VM where the desired Docker images have
1266
+ # already been pulled. Only a single image is supported.
1267
+ # Corresponds to the JSON property `dockerCacheImages`
1268
+ # @return [Array<String>]
1269
+ attr_accessor :docker_cache_images
1270
+
1271
+ # Whether Stackdriver monitoring should be enabled on the VM.
1272
+ # Corresponds to the JSON property `enableStackdriverMonitoring`
1273
+ # @return [Boolean]
1274
+ attr_accessor :enable_stackdriver_monitoring
1275
+ alias_method :enable_stackdriver_monitoring?, :enable_stackdriver_monitoring
1276
+
1277
+ # Optional set of labels to apply to the VM and any attached disk resources.
1278
+ # These labels must adhere to the [name and value restrictions](https://cloud.
1279
+ # google.com/compute/docs/labeling-resources) on VM labels imposed by Compute
1280
+ # Engine. Labels keys with the prefix 'google-' are reserved for use by Google.
1281
+ # Labels applied at creation time to the VM. Applied on a best-effort basis to
1282
+ # attached disk resources shortly after VM creation.
1283
+ # Corresponds to the JSON property `labels`
1284
+ # @return [Hash<String,String>]
1285
+ attr_accessor :labels
1286
+
1287
+ # Required. The machine type of the virtual machine to create. Must be the short
1288
+ # name of a standard machine type (such as "n1-standard-1") or a custom machine
1289
+ # type (such as "custom-1-4096", where "1" indicates the number of vCPUs and "
1290
+ # 4096" indicates the memory in MB). See [Creating an instance with a custom
1291
+ # machine type](https://cloud.google.com/compute/docs/instances/creating-
1292
+ # instance-with-custom-machine-type#create) for more specifications on creating
1293
+ # a custom machine type.
1294
+ # Corresponds to the JSON property `machineType`
1295
+ # @return [String]
1296
+ attr_accessor :machine_type
1297
+
1298
+ # VM networking options.
1299
+ # Corresponds to the JSON property `network`
1300
+ # @return [Google::Apis::LifesciencesV2beta::Network]
1301
+ attr_accessor :network
1302
+
1303
+ # The NVIDIA driver version to use when attaching an NVIDIA GPU accelerator. The
1304
+ # version specified here must be compatible with the GPU libraries contained in
1305
+ # the container being executed, and must be one of the drivers hosted in the `
1306
+ # nvidia-drivers-us-public` bucket on Google Cloud Storage.
1307
+ # Corresponds to the JSON property `nvidiaDriverVersion`
1308
+ # @return [String]
1309
+ attr_accessor :nvidia_driver_version
1310
+
1311
+ # If true, allocate a preemptible VM.
1312
+ # Corresponds to the JSON property `preemptible`
1313
+ # @return [Boolean]
1314
+ attr_accessor :preemptible
1315
+ alias_method :preemptible?, :preemptible
1316
+
1317
+ # Carries information about a Google Cloud service account.
1318
+ # Corresponds to the JSON property `serviceAccount`
1319
+ # @return [Google::Apis::LifesciencesV2beta::ServiceAccount]
1320
+ attr_accessor :service_account
1321
+
1322
+ # The list of disks and other storage to create or attach to the VM. Specify
1323
+ # either the `volumes[]` field or the `disks[]` field, but not both.
1324
+ # Corresponds to the JSON property `volumes`
1325
+ # @return [Array<Google::Apis::LifesciencesV2beta::Volume>]
1326
+ attr_accessor :volumes
1327
+
1328
+ def initialize(**args)
1329
+ update!(**args)
1330
+ end
1331
+
1332
+ # Update properties of this object
1333
+ def update!(**args)
1334
+ @accelerators = args[:accelerators] if args.key?(:accelerators)
1335
+ @boot_disk_size_gb = args[:boot_disk_size_gb] if args.key?(:boot_disk_size_gb)
1336
+ @boot_image = args[:boot_image] if args.key?(:boot_image)
1337
+ @cpu_platform = args[:cpu_platform] if args.key?(:cpu_platform)
1338
+ @disks = args[:disks] if args.key?(:disks)
1339
+ @docker_cache_images = args[:docker_cache_images] if args.key?(:docker_cache_images)
1340
+ @enable_stackdriver_monitoring = args[:enable_stackdriver_monitoring] if args.key?(:enable_stackdriver_monitoring)
1341
+ @labels = args[:labels] if args.key?(:labels)
1342
+ @machine_type = args[:machine_type] if args.key?(:machine_type)
1343
+ @network = args[:network] if args.key?(:network)
1344
+ @nvidia_driver_version = args[:nvidia_driver_version] if args.key?(:nvidia_driver_version)
1345
+ @preemptible = args[:preemptible] if args.key?(:preemptible)
1346
+ @service_account = args[:service_account] if args.key?(:service_account)
1347
+ @volumes = args[:volumes] if args.key?(:volumes)
1348
+ end
1349
+ end
1350
+
1351
+ # Carries information about storage that can be attached to a VM. Specify either
1352
+ # `Volume` or `Disk`, but not both.
1353
+ class Volume
1354
+ include Google::Apis::Core::Hashable
1355
+
1356
+ # Configuration for an existing disk to be attached to the VM.
1357
+ # Corresponds to the JSON property `existingDisk`
1358
+ # @return [Google::Apis::LifesciencesV2beta::ExistingDisk]
1359
+ attr_accessor :existing_disk
1360
+
1361
+ # Configuration for an `NFSMount` to be attached to the VM.
1362
+ # Corresponds to the JSON property `nfsMount`
1363
+ # @return [Google::Apis::LifesciencesV2beta::NfsMount]
1364
+ attr_accessor :nfs_mount
1365
+
1366
+ # Configuration for a persistent disk to be attached to the VM. See https://
1367
+ # cloud.google.com/compute/docs/disks/performance for more information about
1368
+ # disk type, size, and performance considerations.
1369
+ # Corresponds to the JSON property `persistentDisk`
1370
+ # @return [Google::Apis::LifesciencesV2beta::PersistentDisk]
1371
+ attr_accessor :persistent_disk
1372
+
1373
+ # A user-supplied name for the volume. Used when mounting the volume into `
1374
+ # Actions`. The name must contain only upper and lowercase alphanumeric
1375
+ # characters and hyphens and cannot start with a hyphen.
1376
+ # Corresponds to the JSON property `volume`
1377
+ # @return [String]
1378
+ attr_accessor :volume
1379
+
1380
+ def initialize(**args)
1381
+ update!(**args)
1382
+ end
1383
+
1384
+ # Update properties of this object
1385
+ def update!(**args)
1386
+ @existing_disk = args[:existing_disk] if args.key?(:existing_disk)
1387
+ @nfs_mount = args[:nfs_mount] if args.key?(:nfs_mount)
1388
+ @persistent_disk = args[:persistent_disk] if args.key?(:persistent_disk)
1389
+ @volume = args[:volume] if args.key?(:volume)
1390
+ end
1391
+ end
1392
+
1393
+ # An event generated after a worker VM has been assigned to run the pipeline.
1394
+ class WorkerAssignedEvent
1395
+ include Google::Apis::Core::Hashable
1396
+
1397
+ # The worker's instance name.
1398
+ # Corresponds to the JSON property `instance`
1399
+ # @return [String]
1400
+ attr_accessor :instance
1401
+
1402
+ # The machine type that was assigned for the worker.
1403
+ # Corresponds to the JSON property `machineType`
1404
+ # @return [String]
1405
+ attr_accessor :machine_type
1406
+
1407
+ # The zone the worker is running in.
1408
+ # Corresponds to the JSON property `zone`
1409
+ # @return [String]
1410
+ attr_accessor :zone
1411
+
1412
+ def initialize(**args)
1413
+ update!(**args)
1414
+ end
1415
+
1416
+ # Update properties of this object
1417
+ def update!(**args)
1418
+ @instance = args[:instance] if args.key?(:instance)
1419
+ @machine_type = args[:machine_type] if args.key?(:machine_type)
1420
+ @zone = args[:zone] if args.key?(:zone)
1421
+ end
1422
+ end
1423
+
1424
+ # An event generated when the worker VM that was assigned to the pipeline has
1425
+ # been released (deleted).
1426
+ class WorkerReleasedEvent
1427
+ include Google::Apis::Core::Hashable
1428
+
1429
+ # The worker's instance name.
1430
+ # Corresponds to the JSON property `instance`
1431
+ # @return [String]
1432
+ attr_accessor :instance
1433
+
1434
+ # The zone the worker was running in.
1435
+ # Corresponds to the JSON property `zone`
1436
+ # @return [String]
1437
+ attr_accessor :zone
1438
+
1439
+ def initialize(**args)
1440
+ update!(**args)
1441
+ end
1442
+
1443
+ # Update properties of this object
1444
+ def update!(**args)
1445
+ @instance = args[:instance] if args.key?(:instance)
1446
+ @zone = args[:zone] if args.key?(:zone)
1447
+ end
1448
+ end
1449
+ end
1450
+ end
1451
+ end