google-apis-dataproc_v1 0.17.0 → 0.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module DataprocV1
18
18
  # Version of the google-apis-dataproc_v1 gem
19
- GEM_VERSION = "0.17.0"
19
+ GEM_VERSION = "0.21.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.4.0"
22
+ GENERATOR_VERSION = "0.4.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20211105"
25
+ REVISION = "20220201"
26
26
  end
27
27
  end
28
28
  end
@@ -52,6 +52,12 @@ module Google
52
52
  include Google::Apis::Core::JsonObjectSupport
53
53
  end
54
54
 
55
+ class Batch
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
55
61
  class BatchOperationMetadata
56
62
  class Representation < Google::Apis::Core::JsonRepresentation; end
57
63
 
@@ -124,6 +130,12 @@ module Google
124
130
  include Google::Apis::Core::JsonObjectSupport
125
131
  end
126
132
 
133
+ class DataprocMetricConfig
134
+ class Representation < Google::Apis::Core::JsonRepresentation; end
135
+
136
+ include Google::Apis::Core::JsonObjectSupport
137
+ end
138
+
127
139
  class DiagnoseClusterRequest
128
140
  class Representation < Google::Apis::Core::JsonRepresentation; end
129
141
 
@@ -160,6 +172,18 @@ module Google
160
172
  include Google::Apis::Core::JsonObjectSupport
161
173
  end
162
174
 
175
+ class EnvironmentConfig
176
+ class Representation < Google::Apis::Core::JsonRepresentation; end
177
+
178
+ include Google::Apis::Core::JsonObjectSupport
179
+ end
180
+
181
+ class ExecutionConfig
182
+ class Representation < Google::Apis::Core::JsonRepresentation; end
183
+
184
+ include Google::Apis::Core::JsonObjectSupport
185
+ end
186
+
163
187
  class Expr
164
188
  class Representation < Google::Apis::Core::JsonRepresentation; end
165
189
 
@@ -292,6 +316,12 @@ module Google
292
316
  include Google::Apis::Core::JsonObjectSupport
293
317
  end
294
318
 
319
+ class ListBatchesResponse
320
+ class Representation < Google::Apis::Core::JsonRepresentation; end
321
+
322
+ include Google::Apis::Core::JsonObjectSupport
323
+ end
324
+
295
325
  class ListClustersResponse
296
326
  class Representation < Google::Apis::Core::JsonRepresentation; end
297
327
 
@@ -340,6 +370,12 @@ module Google
340
370
  include Google::Apis::Core::JsonObjectSupport
341
371
  end
342
372
 
373
+ class Metric
374
+ class Representation < Google::Apis::Core::JsonRepresentation; end
375
+
376
+ include Google::Apis::Core::JsonObjectSupport
377
+ end
378
+
343
379
  class NamespacedGkeDeploymentTarget
344
380
  class Representation < Google::Apis::Core::JsonRepresentation; end
345
381
 
@@ -376,6 +412,12 @@ module Google
376
412
  include Google::Apis::Core::JsonObjectSupport
377
413
  end
378
414
 
415
+ class PeripheralsConfig
416
+ class Representation < Google::Apis::Core::JsonRepresentation; end
417
+
418
+ include Google::Apis::Core::JsonObjectSupport
419
+ end
420
+
379
421
  class PigJob
380
422
  class Representation < Google::Apis::Core::JsonRepresentation; end
381
423
 
@@ -394,6 +436,12 @@ module Google
394
436
  include Google::Apis::Core::JsonObjectSupport
395
437
  end
396
438
 
439
+ class PySparkBatch
440
+ class Representation < Google::Apis::Core::JsonRepresentation; end
441
+
442
+ include Google::Apis::Core::JsonObjectSupport
443
+ end
444
+
397
445
  class PySparkJob
398
446
  class Representation < Google::Apis::Core::JsonRepresentation; end
399
447
 
@@ -424,6 +472,18 @@ module Google
424
472
  include Google::Apis::Core::JsonObjectSupport
425
473
  end
426
474
 
475
+ class RuntimeConfig
476
+ class Representation < Google::Apis::Core::JsonRepresentation; end
477
+
478
+ include Google::Apis::Core::JsonObjectSupport
479
+ end
480
+
481
+ class RuntimeInfo
482
+ class Representation < Google::Apis::Core::JsonRepresentation; end
483
+
484
+ include Google::Apis::Core::JsonObjectSupport
485
+ end
486
+
427
487
  class SecurityConfig
428
488
  class Representation < Google::Apis::Core::JsonRepresentation; end
429
489
 
@@ -454,18 +514,42 @@ module Google
454
514
  include Google::Apis::Core::JsonObjectSupport
455
515
  end
456
516
 
517
+ class SparkBatch
518
+ class Representation < Google::Apis::Core::JsonRepresentation; end
519
+
520
+ include Google::Apis::Core::JsonObjectSupport
521
+ end
522
+
523
+ class SparkHistoryServerConfig
524
+ class Representation < Google::Apis::Core::JsonRepresentation; end
525
+
526
+ include Google::Apis::Core::JsonObjectSupport
527
+ end
528
+
457
529
  class SparkJob
458
530
  class Representation < Google::Apis::Core::JsonRepresentation; end
459
531
 
460
532
  include Google::Apis::Core::JsonObjectSupport
461
533
  end
462
534
 
535
+ class SparkRBatch
536
+ class Representation < Google::Apis::Core::JsonRepresentation; end
537
+
538
+ include Google::Apis::Core::JsonObjectSupport
539
+ end
540
+
463
541
  class SparkRJob
464
542
  class Representation < Google::Apis::Core::JsonRepresentation; end
465
543
 
466
544
  include Google::Apis::Core::JsonObjectSupport
467
545
  end
468
546
 
547
+ class SparkSqlBatch
548
+ class Representation < Google::Apis::Core::JsonRepresentation; end
549
+
550
+ include Google::Apis::Core::JsonObjectSupport
551
+ end
552
+
469
553
  class SparkSqlJob
470
554
  class Representation < Google::Apis::Core::JsonRepresentation; end
471
555
 
@@ -484,6 +568,12 @@ module Google
484
568
  include Google::Apis::Core::JsonObjectSupport
485
569
  end
486
570
 
571
+ class StateHistory
572
+ class Representation < Google::Apis::Core::JsonRepresentation; end
573
+
574
+ include Google::Apis::Core::JsonObjectSupport
575
+ end
576
+
487
577
  class Status
488
578
  class Representation < Google::Apis::Core::JsonRepresentation; end
489
579
 
@@ -614,6 +704,37 @@ module Google
614
704
  end
615
705
  end
616
706
 
707
+ class Batch
708
+ # @private
709
+ class Representation < Google::Apis::Core::JsonRepresentation
710
+ property :create_time, as: 'createTime'
711
+ property :creator, as: 'creator'
712
+ property :environment_config, as: 'environmentConfig', class: Google::Apis::DataprocV1::EnvironmentConfig, decorator: Google::Apis::DataprocV1::EnvironmentConfig::Representation
713
+
714
+ hash :labels, as: 'labels'
715
+ property :name, as: 'name'
716
+ property :operation, as: 'operation'
717
+ property :pyspark_batch, as: 'pysparkBatch', class: Google::Apis::DataprocV1::PySparkBatch, decorator: Google::Apis::DataprocV1::PySparkBatch::Representation
718
+
719
+ property :runtime_config, as: 'runtimeConfig', class: Google::Apis::DataprocV1::RuntimeConfig, decorator: Google::Apis::DataprocV1::RuntimeConfig::Representation
720
+
721
+ property :runtime_info, as: 'runtimeInfo', class: Google::Apis::DataprocV1::RuntimeInfo, decorator: Google::Apis::DataprocV1::RuntimeInfo::Representation
722
+
723
+ property :spark_batch, as: 'sparkBatch', class: Google::Apis::DataprocV1::SparkBatch, decorator: Google::Apis::DataprocV1::SparkBatch::Representation
724
+
725
+ property :spark_r_batch, as: 'sparkRBatch', class: Google::Apis::DataprocV1::SparkRBatch, decorator: Google::Apis::DataprocV1::SparkRBatch::Representation
726
+
727
+ property :spark_sql_batch, as: 'sparkSqlBatch', class: Google::Apis::DataprocV1::SparkSqlBatch, decorator: Google::Apis::DataprocV1::SparkSqlBatch::Representation
728
+
729
+ property :state, as: 'state'
730
+ collection :state_history, as: 'stateHistory', class: Google::Apis::DataprocV1::StateHistory, decorator: Google::Apis::DataprocV1::StateHistory::Representation
731
+
732
+ property :state_message, as: 'stateMessage'
733
+ property :state_time, as: 'stateTime'
734
+ property :uuid, as: 'uuid'
735
+ end
736
+ end
737
+
617
738
  class BatchOperationMetadata
618
739
  # @private
619
740
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -668,6 +789,8 @@ module Google
668
789
  property :autoscaling_config, as: 'autoscalingConfig', class: Google::Apis::DataprocV1::AutoscalingConfig, decorator: Google::Apis::DataprocV1::AutoscalingConfig::Representation
669
790
 
670
791
  property :config_bucket, as: 'configBucket'
792
+ property :dataproc_metric_config, as: 'dataprocMetricConfig', class: Google::Apis::DataprocV1::DataprocMetricConfig, decorator: Google::Apis::DataprocV1::DataprocMetricConfig::Representation
793
+
671
794
  property :encryption_config, as: 'encryptionConfig', class: Google::Apis::DataprocV1::EncryptionConfig, decorator: Google::Apis::DataprocV1::EncryptionConfig::Representation
672
795
 
673
796
  property :endpoint_config, as: 'endpointConfig', class: Google::Apis::DataprocV1::EndpointConfig, decorator: Google::Apis::DataprocV1::EndpointConfig::Representation
@@ -764,6 +887,14 @@ module Google
764
887
  end
765
888
  end
766
889
 
890
+ class DataprocMetricConfig
891
+ # @private
892
+ class Representation < Google::Apis::Core::JsonRepresentation
893
+ collection :metrics, as: 'metrics', class: Google::Apis::DataprocV1::Metric, decorator: Google::Apis::DataprocV1::Metric::Representation
894
+
895
+ end
896
+ end
897
+
767
898
  class DiagnoseClusterRequest
768
899
  # @private
769
900
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -782,6 +913,7 @@ module Google
782
913
  class Representation < Google::Apis::Core::JsonRepresentation
783
914
  property :boot_disk_size_gb, as: 'bootDiskSizeGb'
784
915
  property :boot_disk_type, as: 'bootDiskType'
916
+ property :local_ssd_interface, as: 'localSsdInterface'
785
917
  property :num_local_ssds, as: 'numLocalSsds'
786
918
  end
787
919
  end
@@ -807,6 +939,27 @@ module Google
807
939
  end
808
940
  end
809
941
 
942
+ class EnvironmentConfig
943
+ # @private
944
+ class Representation < Google::Apis::Core::JsonRepresentation
945
+ property :execution_config, as: 'executionConfig', class: Google::Apis::DataprocV1::ExecutionConfig, decorator: Google::Apis::DataprocV1::ExecutionConfig::Representation
946
+
947
+ property :peripherals_config, as: 'peripheralsConfig', class: Google::Apis::DataprocV1::PeripheralsConfig, decorator: Google::Apis::DataprocV1::PeripheralsConfig::Representation
948
+
949
+ end
950
+ end
951
+
952
+ class ExecutionConfig
953
+ # @private
954
+ class Representation < Google::Apis::Core::JsonRepresentation
955
+ property :kms_key, as: 'kmsKey'
956
+ collection :network_tags, as: 'networkTags'
957
+ property :network_uri, as: 'networkUri'
958
+ property :service_account, as: 'serviceAccount'
959
+ property :subnetwork_uri, as: 'subnetworkUri'
960
+ end
961
+ end
962
+
810
963
  class Expr
811
964
  # @private
812
965
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1080,6 +1233,15 @@ module Google
1080
1233
  end
1081
1234
  end
1082
1235
 
1236
+ class ListBatchesResponse
1237
+ # @private
1238
+ class Representation < Google::Apis::Core::JsonRepresentation
1239
+ collection :batches, as: 'batches', class: Google::Apis::DataprocV1::Batch, decorator: Google::Apis::DataprocV1::Batch::Representation
1240
+
1241
+ property :next_page_token, as: 'nextPageToken'
1242
+ end
1243
+ end
1244
+
1083
1245
  class ListClustersResponse
1084
1246
  # @private
1085
1247
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1148,6 +1310,14 @@ module Google
1148
1310
  end
1149
1311
  end
1150
1312
 
1313
+ class Metric
1314
+ # @private
1315
+ class Representation < Google::Apis::Core::JsonRepresentation
1316
+ collection :metric_overrides, as: 'metricOverrides'
1317
+ property :metric_source, as: 'metricSource'
1318
+ end
1319
+ end
1320
+
1151
1321
  class NamespacedGkeDeploymentTarget
1152
1322
  # @private
1153
1323
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1220,6 +1390,15 @@ module Google
1220
1390
  end
1221
1391
  end
1222
1392
 
1393
+ class PeripheralsConfig
1394
+ # @private
1395
+ class Representation < Google::Apis::Core::JsonRepresentation
1396
+ property :metastore_service, as: 'metastoreService'
1397
+ property :spark_history_server_config, as: 'sparkHistoryServerConfig', class: Google::Apis::DataprocV1::SparkHistoryServerConfig, decorator: Google::Apis::DataprocV1::SparkHistoryServerConfig::Representation
1398
+
1399
+ end
1400
+ end
1401
+
1223
1402
  class PigJob
1224
1403
  # @private
1225
1404
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1260,6 +1439,18 @@ module Google
1260
1439
  end
1261
1440
  end
1262
1441
 
1442
+ class PySparkBatch
1443
+ # @private
1444
+ class Representation < Google::Apis::Core::JsonRepresentation
1445
+ collection :archive_uris, as: 'archiveUris'
1446
+ collection :args, as: 'args'
1447
+ collection :file_uris, as: 'fileUris'
1448
+ collection :jar_file_uris, as: 'jarFileUris'
1449
+ property :main_python_file_uri, as: 'mainPythonFileUri'
1450
+ collection :python_file_uris, as: 'pythonFileUris'
1451
+ end
1452
+ end
1453
+
1263
1454
  class PySparkJob
1264
1455
  # @private
1265
1456
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1306,6 +1497,24 @@ module Google
1306
1497
  end
1307
1498
  end
1308
1499
 
1500
+ class RuntimeConfig
1501
+ # @private
1502
+ class Representation < Google::Apis::Core::JsonRepresentation
1503
+ property :container_image, as: 'containerImage'
1504
+ hash :properties, as: 'properties'
1505
+ property :version, as: 'version'
1506
+ end
1507
+ end
1508
+
1509
+ class RuntimeInfo
1510
+ # @private
1511
+ class Representation < Google::Apis::Core::JsonRepresentation
1512
+ property :diagnostic_output_uri, as: 'diagnosticOutputUri'
1513
+ hash :endpoints, as: 'endpoints'
1514
+ property :output_uri, as: 'outputUri'
1515
+ end
1516
+ end
1517
+
1309
1518
  class SecurityConfig
1310
1519
  # @private
1311
1520
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1356,6 +1565,25 @@ module Google
1356
1565
  end
1357
1566
  end
1358
1567
 
1568
+ class SparkBatch
1569
+ # @private
1570
+ class Representation < Google::Apis::Core::JsonRepresentation
1571
+ collection :archive_uris, as: 'archiveUris'
1572
+ collection :args, as: 'args'
1573
+ collection :file_uris, as: 'fileUris'
1574
+ collection :jar_file_uris, as: 'jarFileUris'
1575
+ property :main_class, as: 'mainClass'
1576
+ property :main_jar_file_uri, as: 'mainJarFileUri'
1577
+ end
1578
+ end
1579
+
1580
+ class SparkHistoryServerConfig
1581
+ # @private
1582
+ class Representation < Google::Apis::Core::JsonRepresentation
1583
+ property :dataproc_cluster, as: 'dataprocCluster'
1584
+ end
1585
+ end
1586
+
1359
1587
  class SparkJob
1360
1588
  # @private
1361
1589
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1371,6 +1599,16 @@ module Google
1371
1599
  end
1372
1600
  end
1373
1601
 
1602
+ class SparkRBatch
1603
+ # @private
1604
+ class Representation < Google::Apis::Core::JsonRepresentation
1605
+ collection :archive_uris, as: 'archiveUris'
1606
+ collection :args, as: 'args'
1607
+ collection :file_uris, as: 'fileUris'
1608
+ property :main_r_file_uri, as: 'mainRFileUri'
1609
+ end
1610
+ end
1611
+
1374
1612
  class SparkRJob
1375
1613
  # @private
1376
1614
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1384,6 +1622,15 @@ module Google
1384
1622
  end
1385
1623
  end
1386
1624
 
1625
+ class SparkSqlBatch
1626
+ # @private
1627
+ class Representation < Google::Apis::Core::JsonRepresentation
1628
+ collection :jar_file_uris, as: 'jarFileUris'
1629
+ property :query_file_uri, as: 'queryFileUri'
1630
+ hash :query_variables, as: 'queryVariables'
1631
+ end
1632
+ end
1633
+
1387
1634
  class SparkSqlJob
1388
1635
  # @private
1389
1636
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1417,6 +1664,15 @@ module Google
1417
1664
  end
1418
1665
  end
1419
1666
 
1667
+ class StateHistory
1668
+ # @private
1669
+ class Representation < Google::Apis::Core::JsonRepresentation
1670
+ property :state, as: 'state'
1671
+ property :state_message, as: 'stateMessage'
1672
+ property :state_start_time, as: 'stateStartTime'
1673
+ end
1674
+ end
1675
+
1420
1676
  class Status
1421
1677
  # @private
1422
1678
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -352,11 +352,160 @@ module Google
352
352
  execute_or_queue_command(command, &block)
353
353
  end
354
354
 
355
+ # Creates a batch workload that executes asynchronously.
356
+ # @param [String] parent
357
+ # Required. The parent resource where this batch will be created.
358
+ # @param [Google::Apis::DataprocV1::Batch] batch_object
359
+ # @param [String] batch_id
360
+ # Optional. The ID to use for the batch, which will become the final component
361
+ # of the batch's resource name.This value must be 4-63 characters. Valid
362
+ # characters are /[a-z][0-9]-/.
363
+ # @param [String] request_id
364
+ # Optional. A unique ID used to identify the request. If the service receives
365
+ # two CreateBatchRequest (https://cloud.google.com/dataproc/docs/reference/rpc/
366
+ # google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateBatchRequest)s with
367
+ # the same request_id, the second request is ignored and the Operation that
368
+ # corresponds to the first Batch created and stored in the backend is returned.
369
+ # Recommendation: Set this value to a UUID (https://en.wikipedia.org/wiki/
370
+ # Universally_unique_identifier).The value must contain only letters (a-z, A-Z),
371
+ # numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40
372
+ # characters.
373
+ # @param [String] fields
374
+ # Selector specifying which fields to include in a partial response.
375
+ # @param [String] quota_user
376
+ # Available to use for quota purposes for server-side applications. Can be any
377
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
378
+ # @param [Google::Apis::RequestOptions] options
379
+ # Request-specific options
380
+ #
381
+ # @yield [result, err] Result & error if block supplied
382
+ # @yieldparam result [Google::Apis::DataprocV1::Operation] parsed result object
383
+ # @yieldparam err [StandardError] error object if request failed
384
+ #
385
+ # @return [Google::Apis::DataprocV1::Operation]
386
+ #
387
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
388
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
389
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
390
+ def create_project_location_batch(parent, batch_object = nil, batch_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
391
+ command = make_simple_command(:post, 'v1/{+parent}/batches', options)
392
+ command.request_representation = Google::Apis::DataprocV1::Batch::Representation
393
+ command.request_object = batch_object
394
+ command.response_representation = Google::Apis::DataprocV1::Operation::Representation
395
+ command.response_class = Google::Apis::DataprocV1::Operation
396
+ command.params['parent'] = parent unless parent.nil?
397
+ command.query['batchId'] = batch_id unless batch_id.nil?
398
+ command.query['requestId'] = request_id unless request_id.nil?
399
+ command.query['fields'] = fields unless fields.nil?
400
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
401
+ execute_or_queue_command(command, &block)
402
+ end
403
+
404
+ # Deletes the batch workload resource. If the batch is not in terminal state,
405
+ # the delete fails and the response returns FAILED_PRECONDITION.
406
+ # @param [String] name
407
+ # Required. The name of the batch resource to delete.
408
+ # @param [String] fields
409
+ # Selector specifying which fields to include in a partial response.
410
+ # @param [String] quota_user
411
+ # Available to use for quota purposes for server-side applications. Can be any
412
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
413
+ # @param [Google::Apis::RequestOptions] options
414
+ # Request-specific options
415
+ #
416
+ # @yield [result, err] Result & error if block supplied
417
+ # @yieldparam result [Google::Apis::DataprocV1::Empty] parsed result object
418
+ # @yieldparam err [StandardError] error object if request failed
419
+ #
420
+ # @return [Google::Apis::DataprocV1::Empty]
421
+ #
422
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
423
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
424
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
425
+ def delete_project_location_batch(name, fields: nil, quota_user: nil, options: nil, &block)
426
+ command = make_simple_command(:delete, 'v1/{+name}', options)
427
+ command.response_representation = Google::Apis::DataprocV1::Empty::Representation
428
+ command.response_class = Google::Apis::DataprocV1::Empty
429
+ command.params['name'] = name unless name.nil?
430
+ command.query['fields'] = fields unless fields.nil?
431
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
432
+ execute_or_queue_command(command, &block)
433
+ end
434
+
435
+ # Gets the batch workload resource representation.
436
+ # @param [String] name
437
+ # Required. The name of the batch to retrieve.
438
+ # @param [String] fields
439
+ # Selector specifying which fields to include in a partial response.
440
+ # @param [String] quota_user
441
+ # Available to use for quota purposes for server-side applications. Can be any
442
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
443
+ # @param [Google::Apis::RequestOptions] options
444
+ # Request-specific options
445
+ #
446
+ # @yield [result, err] Result & error if block supplied
447
+ # @yieldparam result [Google::Apis::DataprocV1::Batch] parsed result object
448
+ # @yieldparam err [StandardError] error object if request failed
449
+ #
450
+ # @return [Google::Apis::DataprocV1::Batch]
451
+ #
452
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
453
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
454
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
455
+ def get_project_location_batch(name, fields: nil, quota_user: nil, options: nil, &block)
456
+ command = make_simple_command(:get, 'v1/{+name}', options)
457
+ command.response_representation = Google::Apis::DataprocV1::Batch::Representation
458
+ command.response_class = Google::Apis::DataprocV1::Batch
459
+ command.params['name'] = name unless name.nil?
460
+ command.query['fields'] = fields unless fields.nil?
461
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
462
+ execute_or_queue_command(command, &block)
463
+ end
464
+
465
+ # Lists batch workloads.
466
+ # @param [String] parent
467
+ # Required. The parent, which owns this collection of batches.
468
+ # @param [Fixnum] page_size
469
+ # Optional. The maximum number of batches to return in each response. The
470
+ # service may return fewer than this value. The default page size is 20; the
471
+ # maximum page size is 1000.
472
+ # @param [String] page_token
473
+ # Optional. A page token received from a previous ListBatches call. Provide this
474
+ # token to retrieve the subsequent page.
475
+ # @param [String] fields
476
+ # Selector specifying which fields to include in a partial response.
477
+ # @param [String] quota_user
478
+ # Available to use for quota purposes for server-side applications. Can be any
479
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
480
+ # @param [Google::Apis::RequestOptions] options
481
+ # Request-specific options
482
+ #
483
+ # @yield [result, err] Result & error if block supplied
484
+ # @yieldparam result [Google::Apis::DataprocV1::ListBatchesResponse] parsed result object
485
+ # @yieldparam err [StandardError] error object if request failed
486
+ #
487
+ # @return [Google::Apis::DataprocV1::ListBatchesResponse]
488
+ #
489
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
490
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
491
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
492
+ def list_project_location_batches(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
493
+ command = make_simple_command(:get, 'v1/{+parent}/batches', options)
494
+ command.response_representation = Google::Apis::DataprocV1::ListBatchesResponse::Representation
495
+ command.response_class = Google::Apis::DataprocV1::ListBatchesResponse
496
+ command.params['parent'] = parent unless parent.nil?
497
+ command.query['pageSize'] = page_size unless page_size.nil?
498
+ command.query['pageToken'] = page_token unless page_token.nil?
499
+ command.query['fields'] = fields unless fields.nil?
500
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
501
+ execute_or_queue_command(command, &block)
502
+ end
503
+
355
504
  # Creates new workflow template.
356
505
  # @param [String] parent
357
506
  # Required. The resource name of the region or location, as described in https://
358
507
  # cloud.google.com/apis/design/resource_names. For projects.regions.
359
- # workflowTemplates,create, the resource name of the region has the following
508
+ # workflowTemplates.create, the resource name of the region has the following
360
509
  # format: projects/`project_id`/regions/`region` For projects.locations.
361
510
  # workflowTemplates.create, the resource name of the location has the following
362
511
  # format: projects/`project_id`/locations/`location`
@@ -2317,7 +2466,7 @@ module Google
2317
2466
  # @param [String] parent
2318
2467
  # Required. The resource name of the region or location, as described in https://
2319
2468
  # cloud.google.com/apis/design/resource_names. For projects.regions.
2320
- # workflowTemplates,create, the resource name of the region has the following
2469
+ # workflowTemplates.create, the resource name of the region has the following
2321
2470
  # format: projects/`project_id`/regions/`region` For projects.locations.
2322
2471
  # workflowTemplates.create, the resource name of the location has the following
2323
2472
  # format: projects/`project_id`/locations/`location`
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-dataproc_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.17.0
4
+ version: 0.21.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-11-15 00:00:00.000000000 Z
11
+ date: 2022-02-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-dataproc_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-dataproc_v1/v0.17.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-dataproc_v1/v0.21.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-dataproc_v1
63
63
  post_install_message:
64
64
  rdoc_options: []
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.2.17
78
+ rubygems_version: 3.3.5
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Cloud Dataproc API V1