google-apis-dataproc_v1 0.15.0 → 0.19.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +19 -0
- data/OVERVIEW.md +3 -3
- data/lib/google/apis/dataproc_v1/classes.rb +690 -39
- data/lib/google/apis/dataproc_v1/gem_version.rb +3 -3
- data/lib/google/apis/dataproc_v1/representations.rb +246 -0
- data/lib/google/apis/dataproc_v1/service.rb +151 -2
- metadata +6 -6
@@ -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.
|
19
|
+
GEM_VERSION = "0.19.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.4.
|
22
|
+
GENERATOR_VERSION = "0.4.1"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20220111"
|
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
|
|
@@ -160,6 +166,18 @@ module Google
|
|
160
166
|
include Google::Apis::Core::JsonObjectSupport
|
161
167
|
end
|
162
168
|
|
169
|
+
class EnvironmentConfig
|
170
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
171
|
+
|
172
|
+
include Google::Apis::Core::JsonObjectSupport
|
173
|
+
end
|
174
|
+
|
175
|
+
class ExecutionConfig
|
176
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
177
|
+
|
178
|
+
include Google::Apis::Core::JsonObjectSupport
|
179
|
+
end
|
180
|
+
|
163
181
|
class Expr
|
164
182
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
165
183
|
|
@@ -292,6 +310,12 @@ module Google
|
|
292
310
|
include Google::Apis::Core::JsonObjectSupport
|
293
311
|
end
|
294
312
|
|
313
|
+
class ListBatchesResponse
|
314
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
315
|
+
|
316
|
+
include Google::Apis::Core::JsonObjectSupport
|
317
|
+
end
|
318
|
+
|
295
319
|
class ListClustersResponse
|
296
320
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
297
321
|
|
@@ -376,6 +400,12 @@ module Google
|
|
376
400
|
include Google::Apis::Core::JsonObjectSupport
|
377
401
|
end
|
378
402
|
|
403
|
+
class PeripheralsConfig
|
404
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
405
|
+
|
406
|
+
include Google::Apis::Core::JsonObjectSupport
|
407
|
+
end
|
408
|
+
|
379
409
|
class PigJob
|
380
410
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
381
411
|
|
@@ -394,6 +424,12 @@ module Google
|
|
394
424
|
include Google::Apis::Core::JsonObjectSupport
|
395
425
|
end
|
396
426
|
|
427
|
+
class PySparkBatch
|
428
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
429
|
+
|
430
|
+
include Google::Apis::Core::JsonObjectSupport
|
431
|
+
end
|
432
|
+
|
397
433
|
class PySparkJob
|
398
434
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
399
435
|
|
@@ -424,6 +460,18 @@ module Google
|
|
424
460
|
include Google::Apis::Core::JsonObjectSupport
|
425
461
|
end
|
426
462
|
|
463
|
+
class RuntimeConfig
|
464
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
465
|
+
|
466
|
+
include Google::Apis::Core::JsonObjectSupport
|
467
|
+
end
|
468
|
+
|
469
|
+
class RuntimeInfo
|
470
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
471
|
+
|
472
|
+
include Google::Apis::Core::JsonObjectSupport
|
473
|
+
end
|
474
|
+
|
427
475
|
class SecurityConfig
|
428
476
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
429
477
|
|
@@ -454,30 +502,66 @@ module Google
|
|
454
502
|
include Google::Apis::Core::JsonObjectSupport
|
455
503
|
end
|
456
504
|
|
505
|
+
class SparkBatch
|
506
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
507
|
+
|
508
|
+
include Google::Apis::Core::JsonObjectSupport
|
509
|
+
end
|
510
|
+
|
511
|
+
class SparkHistoryServerConfig
|
512
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
513
|
+
|
514
|
+
include Google::Apis::Core::JsonObjectSupport
|
515
|
+
end
|
516
|
+
|
457
517
|
class SparkJob
|
458
518
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
459
519
|
|
460
520
|
include Google::Apis::Core::JsonObjectSupport
|
461
521
|
end
|
462
522
|
|
523
|
+
class SparkRBatch
|
524
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
525
|
+
|
526
|
+
include Google::Apis::Core::JsonObjectSupport
|
527
|
+
end
|
528
|
+
|
463
529
|
class SparkRJob
|
464
530
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
465
531
|
|
466
532
|
include Google::Apis::Core::JsonObjectSupport
|
467
533
|
end
|
468
534
|
|
535
|
+
class SparkSqlBatch
|
536
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
537
|
+
|
538
|
+
include Google::Apis::Core::JsonObjectSupport
|
539
|
+
end
|
540
|
+
|
469
541
|
class SparkSqlJob
|
470
542
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
471
543
|
|
472
544
|
include Google::Apis::Core::JsonObjectSupport
|
473
545
|
end
|
474
546
|
|
547
|
+
class SparkStandaloneAutoscalingConfig
|
548
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
549
|
+
|
550
|
+
include Google::Apis::Core::JsonObjectSupport
|
551
|
+
end
|
552
|
+
|
475
553
|
class StartClusterRequest
|
476
554
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
477
555
|
|
478
556
|
include Google::Apis::Core::JsonObjectSupport
|
479
557
|
end
|
480
558
|
|
559
|
+
class StateHistory
|
560
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
561
|
+
|
562
|
+
include Google::Apis::Core::JsonObjectSupport
|
563
|
+
end
|
564
|
+
|
481
565
|
class Status
|
482
566
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
483
567
|
|
@@ -577,6 +661,7 @@ module Google
|
|
577
661
|
property :basic_algorithm, as: 'basicAlgorithm', class: Google::Apis::DataprocV1::BasicAutoscalingAlgorithm, decorator: Google::Apis::DataprocV1::BasicAutoscalingAlgorithm::Representation
|
578
662
|
|
579
663
|
property :id, as: 'id'
|
664
|
+
hash :labels, as: 'labels'
|
580
665
|
property :name, as: 'name'
|
581
666
|
property :secondary_worker_config, as: 'secondaryWorkerConfig', class: Google::Apis::DataprocV1::InstanceGroupAutoscalingPolicyConfig, decorator: Google::Apis::DataprocV1::InstanceGroupAutoscalingPolicyConfig::Representation
|
582
667
|
|
@@ -589,6 +674,8 @@ module Google
|
|
589
674
|
# @private
|
590
675
|
class Representation < Google::Apis::Core::JsonRepresentation
|
591
676
|
property :cooldown_period, as: 'cooldownPeriod'
|
677
|
+
property :spark_standalone_config, as: 'sparkStandaloneConfig', class: Google::Apis::DataprocV1::SparkStandaloneAutoscalingConfig, decorator: Google::Apis::DataprocV1::SparkStandaloneAutoscalingConfig::Representation
|
678
|
+
|
592
679
|
property :yarn_config, as: 'yarnConfig', class: Google::Apis::DataprocV1::BasicYarnAutoscalingConfig, decorator: Google::Apis::DataprocV1::BasicYarnAutoscalingConfig::Representation
|
593
680
|
|
594
681
|
end
|
@@ -605,6 +692,37 @@ module Google
|
|
605
692
|
end
|
606
693
|
end
|
607
694
|
|
695
|
+
class Batch
|
696
|
+
# @private
|
697
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
698
|
+
property :create_time, as: 'createTime'
|
699
|
+
property :creator, as: 'creator'
|
700
|
+
property :environment_config, as: 'environmentConfig', class: Google::Apis::DataprocV1::EnvironmentConfig, decorator: Google::Apis::DataprocV1::EnvironmentConfig::Representation
|
701
|
+
|
702
|
+
hash :labels, as: 'labels'
|
703
|
+
property :name, as: 'name'
|
704
|
+
property :operation, as: 'operation'
|
705
|
+
property :pyspark_batch, as: 'pysparkBatch', class: Google::Apis::DataprocV1::PySparkBatch, decorator: Google::Apis::DataprocV1::PySparkBatch::Representation
|
706
|
+
|
707
|
+
property :runtime_config, as: 'runtimeConfig', class: Google::Apis::DataprocV1::RuntimeConfig, decorator: Google::Apis::DataprocV1::RuntimeConfig::Representation
|
708
|
+
|
709
|
+
property :runtime_info, as: 'runtimeInfo', class: Google::Apis::DataprocV1::RuntimeInfo, decorator: Google::Apis::DataprocV1::RuntimeInfo::Representation
|
710
|
+
|
711
|
+
property :spark_batch, as: 'sparkBatch', class: Google::Apis::DataprocV1::SparkBatch, decorator: Google::Apis::DataprocV1::SparkBatch::Representation
|
712
|
+
|
713
|
+
property :spark_r_batch, as: 'sparkRBatch', class: Google::Apis::DataprocV1::SparkRBatch, decorator: Google::Apis::DataprocV1::SparkRBatch::Representation
|
714
|
+
|
715
|
+
property :spark_sql_batch, as: 'sparkSqlBatch', class: Google::Apis::DataprocV1::SparkSqlBatch, decorator: Google::Apis::DataprocV1::SparkSqlBatch::Representation
|
716
|
+
|
717
|
+
property :state, as: 'state'
|
718
|
+
collection :state_history, as: 'stateHistory', class: Google::Apis::DataprocV1::StateHistory, decorator: Google::Apis::DataprocV1::StateHistory::Representation
|
719
|
+
|
720
|
+
property :state_message, as: 'stateMessage'
|
721
|
+
property :state_time, as: 'stateTime'
|
722
|
+
property :uuid, as: 'uuid'
|
723
|
+
end
|
724
|
+
end
|
725
|
+
|
608
726
|
class BatchOperationMetadata
|
609
727
|
# @private
|
610
728
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -773,6 +891,7 @@ module Google
|
|
773
891
|
class Representation < Google::Apis::Core::JsonRepresentation
|
774
892
|
property :boot_disk_size_gb, as: 'bootDiskSizeGb'
|
775
893
|
property :boot_disk_type, as: 'bootDiskType'
|
894
|
+
property :local_ssd_interface, as: 'localSsdInterface'
|
776
895
|
property :num_local_ssds, as: 'numLocalSsds'
|
777
896
|
end
|
778
897
|
end
|
@@ -798,6 +917,27 @@ module Google
|
|
798
917
|
end
|
799
918
|
end
|
800
919
|
|
920
|
+
class EnvironmentConfig
|
921
|
+
# @private
|
922
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
923
|
+
property :execution_config, as: 'executionConfig', class: Google::Apis::DataprocV1::ExecutionConfig, decorator: Google::Apis::DataprocV1::ExecutionConfig::Representation
|
924
|
+
|
925
|
+
property :peripherals_config, as: 'peripheralsConfig', class: Google::Apis::DataprocV1::PeripheralsConfig, decorator: Google::Apis::DataprocV1::PeripheralsConfig::Representation
|
926
|
+
|
927
|
+
end
|
928
|
+
end
|
929
|
+
|
930
|
+
class ExecutionConfig
|
931
|
+
# @private
|
932
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
933
|
+
property :kms_key, as: 'kmsKey'
|
934
|
+
collection :network_tags, as: 'networkTags'
|
935
|
+
property :network_uri, as: 'networkUri'
|
936
|
+
property :service_account, as: 'serviceAccount'
|
937
|
+
property :subnetwork_uri, as: 'subnetworkUri'
|
938
|
+
end
|
939
|
+
end
|
940
|
+
|
801
941
|
class Expr
|
802
942
|
# @private
|
803
943
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1071,6 +1211,15 @@ module Google
|
|
1071
1211
|
end
|
1072
1212
|
end
|
1073
1213
|
|
1214
|
+
class ListBatchesResponse
|
1215
|
+
# @private
|
1216
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1217
|
+
collection :batches, as: 'batches', class: Google::Apis::DataprocV1::Batch, decorator: Google::Apis::DataprocV1::Batch::Representation
|
1218
|
+
|
1219
|
+
property :next_page_token, as: 'nextPageToken'
|
1220
|
+
end
|
1221
|
+
end
|
1222
|
+
|
1074
1223
|
class ListClustersResponse
|
1075
1224
|
# @private
|
1076
1225
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1211,6 +1360,15 @@ module Google
|
|
1211
1360
|
end
|
1212
1361
|
end
|
1213
1362
|
|
1363
|
+
class PeripheralsConfig
|
1364
|
+
# @private
|
1365
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1366
|
+
property :metastore_service, as: 'metastoreService'
|
1367
|
+
property :spark_history_server_config, as: 'sparkHistoryServerConfig', class: Google::Apis::DataprocV1::SparkHistoryServerConfig, decorator: Google::Apis::DataprocV1::SparkHistoryServerConfig::Representation
|
1368
|
+
|
1369
|
+
end
|
1370
|
+
end
|
1371
|
+
|
1214
1372
|
class PigJob
|
1215
1373
|
# @private
|
1216
1374
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1251,6 +1409,18 @@ module Google
|
|
1251
1409
|
end
|
1252
1410
|
end
|
1253
1411
|
|
1412
|
+
class PySparkBatch
|
1413
|
+
# @private
|
1414
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1415
|
+
collection :archive_uris, as: 'archiveUris'
|
1416
|
+
collection :args, as: 'args'
|
1417
|
+
collection :file_uris, as: 'fileUris'
|
1418
|
+
collection :jar_file_uris, as: 'jarFileUris'
|
1419
|
+
property :main_python_file_uri, as: 'mainPythonFileUri'
|
1420
|
+
collection :python_file_uris, as: 'pythonFileUris'
|
1421
|
+
end
|
1422
|
+
end
|
1423
|
+
|
1254
1424
|
class PySparkJob
|
1255
1425
|
# @private
|
1256
1426
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1297,6 +1467,24 @@ module Google
|
|
1297
1467
|
end
|
1298
1468
|
end
|
1299
1469
|
|
1470
|
+
class RuntimeConfig
|
1471
|
+
# @private
|
1472
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1473
|
+
property :container_image, as: 'containerImage'
|
1474
|
+
hash :properties, as: 'properties'
|
1475
|
+
property :version, as: 'version'
|
1476
|
+
end
|
1477
|
+
end
|
1478
|
+
|
1479
|
+
class RuntimeInfo
|
1480
|
+
# @private
|
1481
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1482
|
+
property :diagnostic_output_uri, as: 'diagnosticOutputUri'
|
1483
|
+
hash :endpoints, as: 'endpoints'
|
1484
|
+
property :output_uri, as: 'outputUri'
|
1485
|
+
end
|
1486
|
+
end
|
1487
|
+
|
1300
1488
|
class SecurityConfig
|
1301
1489
|
# @private
|
1302
1490
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1347,6 +1535,25 @@ module Google
|
|
1347
1535
|
end
|
1348
1536
|
end
|
1349
1537
|
|
1538
|
+
class SparkBatch
|
1539
|
+
# @private
|
1540
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1541
|
+
collection :archive_uris, as: 'archiveUris'
|
1542
|
+
collection :args, as: 'args'
|
1543
|
+
collection :file_uris, as: 'fileUris'
|
1544
|
+
collection :jar_file_uris, as: 'jarFileUris'
|
1545
|
+
property :main_class, as: 'mainClass'
|
1546
|
+
property :main_jar_file_uri, as: 'mainJarFileUri'
|
1547
|
+
end
|
1548
|
+
end
|
1549
|
+
|
1550
|
+
class SparkHistoryServerConfig
|
1551
|
+
# @private
|
1552
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1553
|
+
property :dataproc_cluster, as: 'dataprocCluster'
|
1554
|
+
end
|
1555
|
+
end
|
1556
|
+
|
1350
1557
|
class SparkJob
|
1351
1558
|
# @private
|
1352
1559
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1362,6 +1569,16 @@ module Google
|
|
1362
1569
|
end
|
1363
1570
|
end
|
1364
1571
|
|
1572
|
+
class SparkRBatch
|
1573
|
+
# @private
|
1574
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1575
|
+
collection :archive_uris, as: 'archiveUris'
|
1576
|
+
collection :args, as: 'args'
|
1577
|
+
collection :file_uris, as: 'fileUris'
|
1578
|
+
property :main_r_file_uri, as: 'mainRFileUri'
|
1579
|
+
end
|
1580
|
+
end
|
1581
|
+
|
1365
1582
|
class SparkRJob
|
1366
1583
|
# @private
|
1367
1584
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1375,6 +1592,15 @@ module Google
|
|
1375
1592
|
end
|
1376
1593
|
end
|
1377
1594
|
|
1595
|
+
class SparkSqlBatch
|
1596
|
+
# @private
|
1597
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1598
|
+
collection :jar_file_uris, as: 'jarFileUris'
|
1599
|
+
property :query_file_uri, as: 'queryFileUri'
|
1600
|
+
hash :query_variables, as: 'queryVariables'
|
1601
|
+
end
|
1602
|
+
end
|
1603
|
+
|
1378
1604
|
class SparkSqlJob
|
1379
1605
|
# @private
|
1380
1606
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1389,6 +1615,17 @@ module Google
|
|
1389
1615
|
end
|
1390
1616
|
end
|
1391
1617
|
|
1618
|
+
class SparkStandaloneAutoscalingConfig
|
1619
|
+
# @private
|
1620
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1621
|
+
property :graceful_decommission_timeout, as: 'gracefulDecommissionTimeout'
|
1622
|
+
property :scale_down_factor, as: 'scaleDownFactor'
|
1623
|
+
property :scale_down_min_worker_fraction, as: 'scaleDownMinWorkerFraction'
|
1624
|
+
property :scale_up_factor, as: 'scaleUpFactor'
|
1625
|
+
property :scale_up_min_worker_fraction, as: 'scaleUpMinWorkerFraction'
|
1626
|
+
end
|
1627
|
+
end
|
1628
|
+
|
1392
1629
|
class StartClusterRequest
|
1393
1630
|
# @private
|
1394
1631
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1397,6 +1634,15 @@ module Google
|
|
1397
1634
|
end
|
1398
1635
|
end
|
1399
1636
|
|
1637
|
+
class StateHistory
|
1638
|
+
# @private
|
1639
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1640
|
+
property :state, as: 'state'
|
1641
|
+
property :state_message, as: 'stateMessage'
|
1642
|
+
property :state_start_time, as: 'stateStartTime'
|
1643
|
+
end
|
1644
|
+
end
|
1645
|
+
|
1400
1646
|
class Status
|
1401
1647
|
# @private
|
1402
1648
|
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
|
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
|
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.
|
4
|
+
version: 0.19.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:
|
11
|
+
date: 2022-01-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -57,9 +57,9 @@ licenses:
|
|
57
57
|
- Apache-2.0
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
|
-
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-dataproc_v1/v0.
|
62
|
-
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/
|
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.19.0
|
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: []
|
65
65
|
require_paths:
|
@@ -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.
|
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
|