google-apis-genomics_v1 0.3.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module GenomicsV1
18
18
  # Version of the google-apis-genomics_v1 gem
19
- GEM_VERSION = "0.3.0"
19
+ GEM_VERSION = "0.4.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.2.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210322"
25
+ REVISION = "20210512"
26
26
  end
27
27
  end
28
28
  end
@@ -22,13 +22,13 @@ module Google
22
22
  module Apis
23
23
  module GenomicsV1
24
24
 
25
- class CancelOperationRequest
25
+ class Accelerator
26
26
  class Representation < Google::Apis::Core::JsonRepresentation; end
27
27
 
28
28
  include Google::Apis::Core::JsonObjectSupport
29
29
  end
30
30
 
31
- class ComputeEngine
31
+ class Action
32
32
  class Representation < Google::Apis::Core::JsonRepresentation; end
33
33
 
34
34
  include Google::Apis::Core::JsonObjectSupport
@@ -58,7 +58,7 @@ module Google
58
58
  include Google::Apis::Core::JsonObjectSupport
59
59
  end
60
60
 
61
- class Empty
61
+ class Disk
62
62
  class Representation < Google::Apis::Core::JsonRepresentation; end
63
63
 
64
64
  include Google::Apis::Core::JsonObjectSupport
@@ -70,31 +70,49 @@ module Google
70
70
  include Google::Apis::Core::JsonObjectSupport
71
71
  end
72
72
 
73
+ class ExistingDisk
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
77
+ end
78
+
73
79
  class FailedEvent
74
80
  class Representation < Google::Apis::Core::JsonRepresentation; end
75
81
 
76
82
  include Google::Apis::Core::JsonObjectSupport
77
83
  end
78
84
 
79
- class ListOperationsResponse
85
+ class Metadata
80
86
  class Representation < Google::Apis::Core::JsonRepresentation; end
81
87
 
82
88
  include Google::Apis::Core::JsonObjectSupport
83
89
  end
84
90
 
85
- class Operation
91
+ class Mount
86
92
  class Representation < Google::Apis::Core::JsonRepresentation; end
87
93
 
88
94
  include Google::Apis::Core::JsonObjectSupport
89
95
  end
90
96
 
91
- class OperationEvent
97
+ class NfsMount
92
98
  class Representation < Google::Apis::Core::JsonRepresentation; end
93
99
 
94
100
  include Google::Apis::Core::JsonObjectSupport
95
101
  end
96
102
 
97
- class OperationMetadata
103
+ class Network
104
+ class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
107
+ end
108
+
109
+ class PersistentDisk
110
+ class Representation < Google::Apis::Core::JsonRepresentation; end
111
+
112
+ include Google::Apis::Core::JsonObjectSupport
113
+ end
114
+
115
+ class Pipeline
98
116
  class Representation < Google::Apis::Core::JsonRepresentation; end
99
117
 
100
118
  include Google::Apis::Core::JsonObjectSupport
@@ -112,19 +130,25 @@ module Google
112
130
  include Google::Apis::Core::JsonObjectSupport
113
131
  end
114
132
 
133
+ class Resources
134
+ class Representation < Google::Apis::Core::JsonRepresentation; end
135
+
136
+ include Google::Apis::Core::JsonObjectSupport
137
+ end
138
+
115
139
  class RunPipelineResponse
116
140
  class Representation < Google::Apis::Core::JsonRepresentation; end
117
141
 
118
142
  include Google::Apis::Core::JsonObjectSupport
119
143
  end
120
144
 
121
- class RuntimeMetadata
145
+ class Secret
122
146
  class Representation < Google::Apis::Core::JsonRepresentation; end
123
147
 
124
148
  include Google::Apis::Core::JsonObjectSupport
125
149
  end
126
150
 
127
- class Status
151
+ class ServiceAccount
128
152
  class Representation < Google::Apis::Core::JsonRepresentation; end
129
153
 
130
154
  include Google::Apis::Core::JsonObjectSupport
@@ -136,6 +160,18 @@ module Google
136
160
  include Google::Apis::Core::JsonObjectSupport
137
161
  end
138
162
 
163
+ class VirtualMachine
164
+ class Representation < Google::Apis::Core::JsonRepresentation; end
165
+
166
+ include Google::Apis::Core::JsonObjectSupport
167
+ end
168
+
169
+ class Volume
170
+ class Representation < Google::Apis::Core::JsonRepresentation; end
171
+
172
+ include Google::Apis::Core::JsonObjectSupport
173
+ end
174
+
139
175
  class WorkerAssignedEvent
140
176
  class Representation < Google::Apis::Core::JsonRepresentation; end
141
177
 
@@ -148,19 +184,33 @@ module Google
148
184
  include Google::Apis::Core::JsonObjectSupport
149
185
  end
150
186
 
151
- class CancelOperationRequest
187
+ class Accelerator
152
188
  # @private
153
189
  class Representation < Google::Apis::Core::JsonRepresentation
190
+ property :count, :numeric_string => true, as: 'count'
191
+ property :type, as: 'type'
154
192
  end
155
193
  end
156
194
 
157
- class ComputeEngine
195
+ class Action
158
196
  # @private
159
197
  class Representation < Google::Apis::Core::JsonRepresentation
160
- collection :disk_names, as: 'diskNames'
161
- property :instance_name, as: 'instanceName'
162
- property :machine_type, as: 'machineType'
163
- property :zone, as: 'zone'
198
+ collection :commands, as: 'commands'
199
+ property :credentials, as: 'credentials', class: Google::Apis::GenomicsV1::Secret, decorator: Google::Apis::GenomicsV1::Secret::Representation
200
+
201
+ property :encrypted_environment, as: 'encryptedEnvironment', class: Google::Apis::GenomicsV1::Secret, decorator: Google::Apis::GenomicsV1::Secret::Representation
202
+
203
+ property :entrypoint, as: 'entrypoint'
204
+ hash :environment, as: 'environment'
205
+ collection :flags, as: 'flags'
206
+ property :image_uri, as: 'imageUri'
207
+ hash :labels, as: 'labels'
208
+ collection :mounts, as: 'mounts', class: Google::Apis::GenomicsV1::Mount, decorator: Google::Apis::GenomicsV1::Mount::Representation
209
+
210
+ property :name, as: 'name'
211
+ property :pid_namespace, as: 'pidNamespace'
212
+ hash :port_mappings, as: 'portMappings'
213
+ property :timeout, as: 'timeout'
164
214
  end
165
215
  end
166
216
 
@@ -197,9 +247,13 @@ module Google
197
247
  end
198
248
  end
199
249
 
200
- class Empty
250
+ class Disk
201
251
  # @private
202
252
  class Representation < Google::Apis::Core::JsonRepresentation
253
+ property :name, as: 'name'
254
+ property :size_gb, as: 'sizeGb'
255
+ property :source_image, as: 'sourceImage'
256
+ property :type, as: 'type'
203
257
  end
204
258
  end
205
259
 
@@ -212,6 +266,13 @@ module Google
212
266
  end
213
267
  end
214
268
 
269
+ class ExistingDisk
270
+ # @private
271
+ class Representation < Google::Apis::Core::JsonRepresentation
272
+ property :disk, as: 'disk'
273
+ end
274
+ end
275
+
215
276
  class FailedEvent
216
277
  # @private
217
278
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -220,49 +281,65 @@ module Google
220
281
  end
221
282
  end
222
283
 
223
- class ListOperationsResponse
284
+ class Metadata
224
285
  # @private
225
286
  class Representation < Google::Apis::Core::JsonRepresentation
226
- property :next_page_token, as: 'nextPageToken'
227
- collection :operations, as: 'operations', class: Google::Apis::GenomicsV1::Operation, decorator: Google::Apis::GenomicsV1::Operation::Representation
287
+ property :create_time, as: 'createTime'
288
+ property :end_time, as: 'endTime'
289
+ collection :events, as: 'events', class: Google::Apis::GenomicsV1::Event, decorator: Google::Apis::GenomicsV1::Event::Representation
290
+
291
+ hash :labels, as: 'labels'
292
+ property :pipeline, as: 'pipeline', class: Google::Apis::GenomicsV1::Pipeline, decorator: Google::Apis::GenomicsV1::Pipeline::Representation
228
293
 
294
+ property :start_time, as: 'startTime'
229
295
  end
230
296
  end
231
297
 
232
- class Operation
298
+ class Mount
233
299
  # @private
234
300
  class Representation < Google::Apis::Core::JsonRepresentation
235
- property :done, as: 'done'
236
- property :error, as: 'error', class: Google::Apis::GenomicsV1::Status, decorator: Google::Apis::GenomicsV1::Status::Representation
301
+ property :disk, as: 'disk'
302
+ property :path, as: 'path'
303
+ property :read_only, as: 'readOnly'
304
+ end
305
+ end
237
306
 
238
- hash :metadata, as: 'metadata'
307
+ class NfsMount
308
+ # @private
309
+ class Representation < Google::Apis::Core::JsonRepresentation
310
+ property :target, as: 'target'
311
+ end
312
+ end
313
+
314
+ class Network
315
+ # @private
316
+ class Representation < Google::Apis::Core::JsonRepresentation
239
317
  property :name, as: 'name'
240
- hash :response, as: 'response'
318
+ property :subnetwork, as: 'subnetwork'
319
+ property :use_private_address, as: 'usePrivateAddress'
241
320
  end
242
321
  end
243
322
 
244
- class OperationEvent
323
+ class PersistentDisk
245
324
  # @private
246
325
  class Representation < Google::Apis::Core::JsonRepresentation
247
- property :description, as: 'description'
248
- property :end_time, as: 'endTime'
249
- property :start_time, as: 'startTime'
326
+ property :size_gb, as: 'sizeGb'
327
+ property :source_image, as: 'sourceImage'
328
+ property :type, as: 'type'
250
329
  end
251
330
  end
252
331
 
253
- class OperationMetadata
332
+ class Pipeline
254
333
  # @private
255
334
  class Representation < Google::Apis::Core::JsonRepresentation
256
- property :client_id, as: 'clientId'
257
- property :create_time, as: 'createTime'
258
- property :end_time, as: 'endTime'
259
- collection :events, as: 'events', class: Google::Apis::GenomicsV1::OperationEvent, decorator: Google::Apis::GenomicsV1::OperationEvent::Representation
335
+ collection :actions, as: 'actions', class: Google::Apis::GenomicsV1::Action, decorator: Google::Apis::GenomicsV1::Action::Representation
260
336
 
261
- hash :labels, as: 'labels'
262
- property :project_id, as: 'projectId'
263
- hash :request, as: 'request'
264
- hash :runtime_metadata, as: 'runtimeMetadata'
265
- property :start_time, as: 'startTime'
337
+ property :encrypted_environment, as: 'encryptedEnvironment', class: Google::Apis::GenomicsV1::Secret, decorator: Google::Apis::GenomicsV1::Secret::Representation
338
+
339
+ hash :environment, as: 'environment'
340
+ property :resources, as: 'resources', class: Google::Apis::GenomicsV1::Resources, decorator: Google::Apis::GenomicsV1::Resources::Representation
341
+
342
+ property :timeout, as: 'timeout'
266
343
  end
267
344
  end
268
345
 
@@ -280,26 +357,36 @@ module Google
280
357
  end
281
358
  end
282
359
 
283
- class RunPipelineResponse
360
+ class Resources
284
361
  # @private
285
362
  class Representation < Google::Apis::Core::JsonRepresentation
363
+ property :project_id, as: 'projectId'
364
+ collection :regions, as: 'regions'
365
+ property :virtual_machine, as: 'virtualMachine', class: Google::Apis::GenomicsV1::VirtualMachine, decorator: Google::Apis::GenomicsV1::VirtualMachine::Representation
366
+
367
+ collection :zones, as: 'zones'
286
368
  end
287
369
  end
288
370
 
289
- class RuntimeMetadata
371
+ class RunPipelineResponse
290
372
  # @private
291
373
  class Representation < Google::Apis::Core::JsonRepresentation
292
- property :compute_engine, as: 'computeEngine', class: Google::Apis::GenomicsV1::ComputeEngine, decorator: Google::Apis::GenomicsV1::ComputeEngine::Representation
374
+ end
375
+ end
293
376
 
377
+ class Secret
378
+ # @private
379
+ class Representation < Google::Apis::Core::JsonRepresentation
380
+ property :cipher_text, as: 'cipherText'
381
+ property :key_name, as: 'keyName'
294
382
  end
295
383
  end
296
384
 
297
- class Status
385
+ class ServiceAccount
298
386
  # @private
299
387
  class Representation < Google::Apis::Core::JsonRepresentation
300
- property :code, as: 'code'
301
- collection :details, as: 'details'
302
- property :message, as: 'message'
388
+ property :email, as: 'email'
389
+ collection :scopes, as: 'scopes'
303
390
  end
304
391
  end
305
392
 
@@ -311,6 +398,44 @@ module Google
311
398
  end
312
399
  end
313
400
 
401
+ class VirtualMachine
402
+ # @private
403
+ class Representation < Google::Apis::Core::JsonRepresentation
404
+ collection :accelerators, as: 'accelerators', class: Google::Apis::GenomicsV1::Accelerator, decorator: Google::Apis::GenomicsV1::Accelerator::Representation
405
+
406
+ property :boot_disk_size_gb, as: 'bootDiskSizeGb'
407
+ property :boot_image, as: 'bootImage'
408
+ property :cpu_platform, as: 'cpuPlatform'
409
+ collection :disks, as: 'disks', class: Google::Apis::GenomicsV1::Disk, decorator: Google::Apis::GenomicsV1::Disk::Representation
410
+
411
+ collection :docker_cache_images, as: 'dockerCacheImages'
412
+ property :enable_stackdriver_monitoring, as: 'enableStackdriverMonitoring'
413
+ hash :labels, as: 'labels'
414
+ property :machine_type, as: 'machineType'
415
+ property :network, as: 'network', class: Google::Apis::GenomicsV1::Network, decorator: Google::Apis::GenomicsV1::Network::Representation
416
+
417
+ property :nvidia_driver_version, as: 'nvidiaDriverVersion'
418
+ property :preemptible, as: 'preemptible'
419
+ property :service_account, as: 'serviceAccount', class: Google::Apis::GenomicsV1::ServiceAccount, decorator: Google::Apis::GenomicsV1::ServiceAccount::Representation
420
+
421
+ collection :volumes, as: 'volumes', class: Google::Apis::GenomicsV1::Volume, decorator: Google::Apis::GenomicsV1::Volume::Representation
422
+
423
+ end
424
+ end
425
+
426
+ class Volume
427
+ # @private
428
+ class Representation < Google::Apis::Core::JsonRepresentation
429
+ property :existing_disk, as: 'existingDisk', class: Google::Apis::GenomicsV1::ExistingDisk, decorator: Google::Apis::GenomicsV1::ExistingDisk::Representation
430
+
431
+ property :nfs_mount, as: 'nfsMount', class: Google::Apis::GenomicsV1::NfsMount, decorator: Google::Apis::GenomicsV1::NfsMount::Representation
432
+
433
+ property :persistent_disk, as: 'persistentDisk', class: Google::Apis::GenomicsV1::PersistentDisk, decorator: Google::Apis::GenomicsV1::PersistentDisk::Representation
434
+
435
+ property :volume, as: 'volume'
436
+ end
437
+ end
438
+
314
439
  class WorkerAssignedEvent
315
440
  # @private
316
441
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -48,134 +48,6 @@ module Google
48
48
  client_version: Google::Apis::GenomicsV1::GEM_VERSION)
49
49
  @batch_path = 'batch'
50
50
  end
51
-
52
- # Starts asynchronous cancellation on a long-running operation. The server makes
53
- # a best effort to cancel the operation, but success is not guaranteed. Clients
54
- # may use Operations.GetOperation or Operations.ListOperations to check whether
55
- # the cancellation succeeded or the operation completed despite cancellation.
56
- # Authorization requires the following [Google IAM](https://cloud.google.com/iam)
57
- # permission: * `genomics.operations.cancel`
58
- # @param [String] name
59
- # The name of the operation resource to be cancelled.
60
- # @param [Google::Apis::GenomicsV1::CancelOperationRequest] cancel_operation_request_object
61
- # @param [String] fields
62
- # Selector specifying which fields to include in a partial response.
63
- # @param [String] quota_user
64
- # Available to use for quota purposes for server-side applications. Can be any
65
- # arbitrary string assigned to a user, but should not exceed 40 characters.
66
- # @param [Google::Apis::RequestOptions] options
67
- # Request-specific options
68
- #
69
- # @yield [result, err] Result & error if block supplied
70
- # @yieldparam result [Google::Apis::GenomicsV1::Empty] parsed result object
71
- # @yieldparam err [StandardError] error object if request failed
72
- #
73
- # @return [Google::Apis::GenomicsV1::Empty]
74
- #
75
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
76
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
77
- # @raise [Google::Apis::AuthorizationError] Authorization is required
78
- def cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
79
- command = make_simple_command(:post, 'v1/{+name}:cancel', options)
80
- command.request_representation = Google::Apis::GenomicsV1::CancelOperationRequest::Representation
81
- command.request_object = cancel_operation_request_object
82
- command.response_representation = Google::Apis::GenomicsV1::Empty::Representation
83
- command.response_class = Google::Apis::GenomicsV1::Empty
84
- command.params['name'] = name unless name.nil?
85
- command.query['fields'] = fields unless fields.nil?
86
- command.query['quotaUser'] = quota_user unless quota_user.nil?
87
- execute_or_queue_command(command, &block)
88
- end
89
-
90
- # Gets the latest state of a long-running operation. Clients can use this method
91
- # to poll the operation result at intervals as recommended by the API service.
92
- # Authorization requires the following [Google IAM](https://cloud.google.com/iam)
93
- # permission: * `genomics.operations.get`
94
- # @param [String] name
95
- # The name of the operation resource.
96
- # @param [String] fields
97
- # Selector specifying which fields to include in a partial response.
98
- # @param [String] quota_user
99
- # Available to use for quota purposes for server-side applications. Can be any
100
- # arbitrary string assigned to a user, but should not exceed 40 characters.
101
- # @param [Google::Apis::RequestOptions] options
102
- # Request-specific options
103
- #
104
- # @yield [result, err] Result & error if block supplied
105
- # @yieldparam result [Google::Apis::GenomicsV1::Operation] parsed result object
106
- # @yieldparam err [StandardError] error object if request failed
107
- #
108
- # @return [Google::Apis::GenomicsV1::Operation]
109
- #
110
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
111
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
112
- # @raise [Google::Apis::AuthorizationError] Authorization is required
113
- def get_operation(name, fields: nil, quota_user: nil, options: nil, &block)
114
- command = make_simple_command(:get, 'v1/{+name}', options)
115
- command.response_representation = Google::Apis::GenomicsV1::Operation::Representation
116
- command.response_class = Google::Apis::GenomicsV1::Operation
117
- command.params['name'] = name unless name.nil?
118
- command.query['fields'] = fields unless fields.nil?
119
- command.query['quotaUser'] = quota_user unless quota_user.nil?
120
- execute_or_queue_command(command, &block)
121
- end
122
-
123
- # Lists operations that match the specified filter in the request. Authorization
124
- # requires the following [Google IAM](https://cloud.google.com/iam) permission: *
125
- # `genomics.operations.list`
126
- # @param [String] name
127
- # The name of the operation's parent resource.
128
- # @param [String] filter
129
- # A string for filtering Operations. In v2alpha1, the following filter fields
130
- # are supported: * createTime: The time this job was created * events: The set
131
- # of event (names) that have occurred while running the pipeline. The : operator
132
- # can be used to determine if a particular event has occurred. * error: If the
133
- # pipeline is running, this value is NULL. Once the pipeline finishes, the value
134
- # is the standard Google error code. * labels.key or labels."key with space"
135
- # where key is a label key. * done: If the pipeline is running, this value is
136
- # false. Once the pipeline finishes, the value is true. In v1 and v1alpha2, the
137
- # following filter fields are supported: * projectId: Required. Corresponds to
138
- # OperationMetadata.projectId. * createTime: The time this job was created, in
139
- # seconds from the [epoch](http://en.wikipedia.org/wiki/Unix_time). Can use `>=`
140
- # and/or `<=` operators. * status: Can be `RUNNING`, `SUCCESS`, `FAILURE`, or `
141
- # CANCELED`. Only one status may be specified. * labels.key where key is a label
142
- # key. Examples: * `projectId = my-project AND createTime >= 1432140000` * `
143
- # projectId = my-project AND createTime >= 1432140000 AND createTime <=
144
- # 1432150000 AND status = RUNNING` * `projectId = my-project AND labels.color = *
145
- # ` * `projectId = my-project AND labels.color = red`
146
- # @param [Fixnum] page_size
147
- # The maximum number of results to return. The maximum value is 256.
148
- # @param [String] page_token
149
- # The standard list page token.
150
- # @param [String] fields
151
- # Selector specifying which fields to include in a partial response.
152
- # @param [String] quota_user
153
- # Available to use for quota purposes for server-side applications. Can be any
154
- # arbitrary string assigned to a user, but should not exceed 40 characters.
155
- # @param [Google::Apis::RequestOptions] options
156
- # Request-specific options
157
- #
158
- # @yield [result, err] Result & error if block supplied
159
- # @yieldparam result [Google::Apis::GenomicsV1::ListOperationsResponse] parsed result object
160
- # @yieldparam err [StandardError] error object if request failed
161
- #
162
- # @return [Google::Apis::GenomicsV1::ListOperationsResponse]
163
- #
164
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
165
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
166
- # @raise [Google::Apis::AuthorizationError] Authorization is required
167
- def list_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
168
- command = make_simple_command(:get, 'v1/{+name}', options)
169
- command.response_representation = Google::Apis::GenomicsV1::ListOperationsResponse::Representation
170
- command.response_class = Google::Apis::GenomicsV1::ListOperationsResponse
171
- command.params['name'] = name unless name.nil?
172
- command.query['filter'] = filter unless filter.nil?
173
- command.query['pageSize'] = page_size unless page_size.nil?
174
- command.query['pageToken'] = page_token unless page_token.nil?
175
- command.query['fields'] = fields unless fields.nil?
176
- command.query['quotaUser'] = quota_user unless quota_user.nil?
177
- execute_or_queue_command(command, &block)
178
- end
179
51
 
180
52
  protected
181
53