google-cloud-dataproc-v1 0.25.0 → 0.26.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/dataproc/v1/autoscaling_policy_service/client.rb +13 -5
  3. data/lib/google/cloud/dataproc/v1/autoscaling_policy_service/rest/client.rb +13 -5
  4. data/lib/google/cloud/dataproc/v1/batch_controller/client.rb +11 -4
  5. data/lib/google/cloud/dataproc/v1/batch_controller/operations.rb +13 -5
  6. data/lib/google/cloud/dataproc/v1/batch_controller/rest/client.rb +11 -4
  7. data/lib/google/cloud/dataproc/v1/batch_controller/rest/operations.rb +11 -4
  8. data/lib/google/cloud/dataproc/v1/cluster_controller/client.rb +19 -8
  9. data/lib/google/cloud/dataproc/v1/cluster_controller/operations.rb +13 -5
  10. data/lib/google/cloud/dataproc/v1/cluster_controller/rest/client.rb +19 -8
  11. data/lib/google/cloud/dataproc/v1/cluster_controller/rest/operations.rb +11 -4
  12. data/lib/google/cloud/dataproc/v1/job_controller/client.rb +17 -7
  13. data/lib/google/cloud/dataproc/v1/job_controller/operations.rb +13 -5
  14. data/lib/google/cloud/dataproc/v1/job_controller/rest/client.rb +17 -7
  15. data/lib/google/cloud/dataproc/v1/job_controller/rest/operations.rb +11 -4
  16. data/lib/google/cloud/dataproc/v1/node_group_controller/client.rb +9 -3
  17. data/lib/google/cloud/dataproc/v1/node_group_controller/operations.rb +13 -5
  18. data/lib/google/cloud/dataproc/v1/node_group_controller/rest/client.rb +9 -3
  19. data/lib/google/cloud/dataproc/v1/node_group_controller/rest/operations.rb +11 -4
  20. data/lib/google/cloud/dataproc/v1/session_controller/client.rb +13 -5
  21. data/lib/google/cloud/dataproc/v1/session_controller/operations.rb +13 -5
  22. data/lib/google/cloud/dataproc/v1/session_controller/rest/client.rb +13 -5
  23. data/lib/google/cloud/dataproc/v1/session_controller/rest/operations.rb +11 -4
  24. data/lib/google/cloud/dataproc/v1/session_template_controller/client.rb +13 -5
  25. data/lib/google/cloud/dataproc/v1/session_template_controller/rest/client.rb +13 -5
  26. data/lib/google/cloud/dataproc/v1/shared_pb.rb +3 -1
  27. data/lib/google/cloud/dataproc/v1/version.rb +1 -1
  28. data/lib/google/cloud/dataproc/v1/workflow_template_service/client.rb +17 -7
  29. data/lib/google/cloud/dataproc/v1/workflow_template_service/operations.rb +13 -5
  30. data/lib/google/cloud/dataproc/v1/workflow_template_service/rest/client.rb +17 -7
  31. data/lib/google/cloud/dataproc/v1/workflow_template_service/rest/operations.rb +11 -4
  32. data/proto_docs/google/api/client.rb +4 -0
  33. data/proto_docs/google/cloud/dataproc/v1/shared.rb +32 -0
  34. metadata +2 -2
@@ -33,6 +33,9 @@ module Google
33
33
  # The SessionTemplateController provides methods to manage session templates.
34
34
  #
35
35
  class Client
36
+ # @private
37
+ API_VERSION = ""
38
+
36
39
  # @private
37
40
  DEFAULT_ENDPOINT_TEMPLATE = "dataproc.$UNIVERSE_DOMAIN$"
38
41
 
@@ -225,12 +228,13 @@ module Google
225
228
  # Customize the options with defaults
226
229
  call_metadata = @config.rpcs.create_session_template.metadata.to_h
227
230
 
228
- # Set x-goog-api-client and x-goog-user-project headers
231
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
229
232
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
230
233
  lib_name: @config.lib_name, lib_version: @config.lib_version,
231
234
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION,
232
235
  transports_version_send: [:rest]
233
236
 
237
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
234
238
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
235
239
 
236
240
  options.apply_defaults timeout: @config.rpcs.create_session_template.timeout,
@@ -303,12 +307,13 @@ module Google
303
307
  # Customize the options with defaults
304
308
  call_metadata = @config.rpcs.update_session_template.metadata.to_h
305
309
 
306
- # Set x-goog-api-client and x-goog-user-project headers
310
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
307
311
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
308
312
  lib_name: @config.lib_name, lib_version: @config.lib_version,
309
313
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION,
310
314
  transports_version_send: [:rest]
311
315
 
316
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
312
317
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
313
318
 
314
319
  options.apply_defaults timeout: @config.rpcs.update_session_template.timeout,
@@ -381,12 +386,13 @@ module Google
381
386
  # Customize the options with defaults
382
387
  call_metadata = @config.rpcs.get_session_template.metadata.to_h
383
388
 
384
- # Set x-goog-api-client and x-goog-user-project headers
389
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
385
390
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
386
391
  lib_name: @config.lib_name, lib_version: @config.lib_version,
387
392
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION,
388
393
  transports_version_send: [:rest]
389
394
 
395
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
390
396
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
391
397
 
392
398
  options.apply_defaults timeout: @config.rpcs.get_session_template.timeout,
@@ -474,12 +480,13 @@ module Google
474
480
  # Customize the options with defaults
475
481
  call_metadata = @config.rpcs.list_session_templates.metadata.to_h
476
482
 
477
- # Set x-goog-api-client and x-goog-user-project headers
483
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
478
484
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
479
485
  lib_name: @config.lib_name, lib_version: @config.lib_version,
480
486
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION,
481
487
  transports_version_send: [:rest]
482
488
 
489
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
483
490
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
484
491
 
485
492
  options.apply_defaults timeout: @config.rpcs.list_session_templates.timeout,
@@ -553,12 +560,13 @@ module Google
553
560
  # Customize the options with defaults
554
561
  call_metadata = @config.rpcs.delete_session_template.metadata.to_h
555
562
 
556
- # Set x-goog-api-client and x-goog-user-project headers
563
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
557
564
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
558
565
  lib_name: @config.lib_name, lib_version: @config.lib_version,
559
566
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION,
560
567
  transports_version_send: [:rest]
561
568
 
569
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
562
570
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
563
571
 
564
572
  options.apply_defaults timeout: @config.rpcs.delete_session_template.timeout,
@@ -10,7 +10,7 @@ require 'google/protobuf/duration_pb'
10
10
  require 'google/protobuf/timestamp_pb'
11
11
 
12
12
 
13
- descriptor_data = "\n%google/cloud/dataproc/v1/shared.proto\x12\x18google.cloud.dataproc.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x94\x02\n\rRuntimeConfig\x12\x14\n\x07version\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x1c\n\x0f\x63ontainer_image\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12P\n\nproperties\x18\x03 \x03(\x0b\x32\x37.google.cloud.dataproc.v1.RuntimeConfig.PropertiesEntryB\x03\xe0\x41\x01\x12J\n\x11repository_config\x18\x05 \x01(\x0b\x32*.google.cloud.dataproc.v1.RepositoryConfigB\x03\xe0\x41\x01\x1a\x31\n\x0fPropertiesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xab\x01\n\x11\x45nvironmentConfig\x12H\n\x10\x65xecution_config\x18\x01 \x01(\x0b\x32).google.cloud.dataproc.v1.ExecutionConfigB\x03\xe0\x41\x01\x12L\n\x12peripherals_config\x18\x02 \x01(\x0b\x32+.google.cloud.dataproc.v1.PeripheralsConfigB\x03\xe0\x41\x01\"\xa2\x02\n\x0f\x45xecutionConfig\x12\x1c\n\x0fservice_account\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x1a\n\x0bnetwork_uri\x18\x04 \x01(\tB\x03\xe0\x41\x01H\x00\x12\x1d\n\x0esubnetwork_uri\x18\x05 \x01(\tB\x03\xe0\x41\x01H\x00\x12\x19\n\x0cnetwork_tags\x18\x06 \x03(\tB\x03\xe0\x41\x01\x12\x14\n\x07kms_key\x18\x07 \x01(\tB\x03\xe0\x41\x01\x12\x30\n\x08idle_ttl\x18\x08 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x01\x12+\n\x03ttl\x18\t \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x01\x12\x1b\n\x0estaging_bucket\x18\n \x01(\tB\x03\xe0\x41\x01\x42\t\n\x07network\"9\n\x18SparkHistoryServerConfig\x12\x1d\n\x10\x64\x61taproc_cluster\x18\x01 \x01(\tB\x03\xe0\x41\x01\"\xb6\x01\n\x11PeripheralsConfig\x12\x43\n\x11metastore_service\x18\x01 \x01(\tB(\xe0\x41\x01\xfa\x41\"\n metastore.googleapis.com/Service\x12\\\n\x1bspark_history_server_config\x18\x02 \x01(\x0b\x32\x32.google.cloud.dataproc.v1.SparkHistoryServerConfigB\x03\xe0\x41\x01\"\xd7\x02\n\x0bRuntimeInfo\x12L\n\tendpoints\x18\x01 \x03(\x0b\x32\x34.google.cloud.dataproc.v1.RuntimeInfo.EndpointsEntryB\x03\xe0\x41\x03\x12\x17\n\noutput_uri\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\"\n\x15\x64iagnostic_output_uri\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x46\n\x11\x61pproximate_usage\x18\x06 \x01(\x0b\x32&.google.cloud.dataproc.v1.UsageMetricsB\x03\xe0\x41\x03\x12\x43\n\rcurrent_usage\x18\x07 \x01(\x0b\x32\'.google.cloud.dataproc.v1.UsageSnapshotB\x03\xe0\x41\x03\x1a\x30\n\x0e\x45ndpointsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x9e\x01\n\x0cUsageMetrics\x12\x1e\n\x11milli_dcu_seconds\x18\x01 \x01(\x03\x42\x03\xe0\x41\x01\x12\'\n\x1ashuffle_storage_gb_seconds\x18\x02 \x01(\x03\x42\x03\xe0\x41\x01\x12&\n\x19milli_accelerator_seconds\x18\x03 \x01(\x03\x42\x03\xe0\x41\x01\x12\x1d\n\x10\x61\x63\x63\x65lerator_type\x18\x04 \x01(\tB\x03\xe0\x41\x01\"\x88\x02\n\rUsageSnapshot\x12\x16\n\tmilli_dcu\x18\x01 \x01(\x03\x42\x03\xe0\x41\x01\x12\x1f\n\x12shuffle_storage_gb\x18\x02 \x01(\x03\x42\x03\xe0\x41\x01\x12\x1e\n\x11milli_dcu_premium\x18\x04 \x01(\x03\x42\x03\xe0\x41\x01\x12\'\n\x1ashuffle_storage_gb_premium\x18\x05 \x01(\x03\x42\x03\xe0\x41\x01\x12\x1e\n\x11milli_accelerator\x18\x06 \x01(\x03\x42\x03\xe0\x41\x01\x12\x1d\n\x10\x61\x63\x63\x65lerator_type\x18\x07 \x01(\tB\x03\xe0\x41\x01\x12\x36\n\rsnapshot_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x01\"\xa4\x01\n\x10GkeClusterConfig\x12\x44\n\x12gke_cluster_target\x18\x02 \x01(\tB(\xe0\x41\x01\xfa\x41\"\n container.googleapis.com/Cluster\x12J\n\x10node_pool_target\x18\x03 \x03(\x0b\x32+.google.cloud.dataproc.v1.GkeNodePoolTargetB\x03\xe0\x41\x01\"\xf2\x01\n\x17KubernetesClusterConfig\x12!\n\x14kubernetes_namespace\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12M\n\x12gke_cluster_config\x18\x02 \x01(\x0b\x32*.google.cloud.dataproc.v1.GkeClusterConfigB\x03\xe0\x41\x02H\x00\x12[\n\x1akubernetes_software_config\x18\x03 \x01(\x0b\x32\x32.google.cloud.dataproc.v1.KubernetesSoftwareConfigB\x03\xe0\x41\x01\x42\x08\n\x06\x63onfig\"\xc3\x02\n\x18KubernetesSoftwareConfig\x12\x63\n\x11\x63omponent_version\x18\x01 \x03(\x0b\x32H.google.cloud.dataproc.v1.KubernetesSoftwareConfig.ComponentVersionEntry\x12V\n\nproperties\x18\x02 \x03(\x0b\x32\x42.google.cloud.dataproc.v1.KubernetesSoftwareConfig.PropertiesEntry\x1a\x37\n\x15\x43omponentVersionEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x31\n\x0fPropertiesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x9e\x02\n\x11GkeNodePoolTarget\x12\x16\n\tnode_pool\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x44\n\x05roles\x18\x02 \x03(\x0e\x32\x30.google.cloud.dataproc.v1.GkeNodePoolTarget.RoleB\x03\xe0\x41\x02\x12J\n\x10node_pool_config\x18\x03 \x01(\x0b\x32+.google.cloud.dataproc.v1.GkeNodePoolConfigB\x03\xe0\x41\x04\"_\n\x04Role\x12\x14\n\x10ROLE_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x44\x45\x46\x41ULT\x10\x01\x12\x0e\n\nCONTROLLER\x10\x02\x12\x10\n\x0cSPARK_DRIVER\x10\x03\x12\x12\n\x0eSPARK_EXECUTOR\x10\x04\"\xbc\x05\n\x11GkeNodePoolConfig\x12N\n\x06\x63onfig\x18\x02 \x01(\x0b\x32\x39.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfigB\x03\xe0\x41\x01\x12\x16\n\tlocations\x18\r \x03(\tB\x03\xe0\x41\x01\x12\x62\n\x0b\x61utoscaling\x18\x04 \x01(\x0b\x32H.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfigB\x03\xe0\x41\x01\x1a\x99\x02\n\rGkeNodeConfig\x12\x19\n\x0cmachine_type\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x1c\n\x0flocal_ssd_count\x18\x07 \x01(\x05\x42\x03\xe0\x41\x01\x12\x18\n\x0bpreemptible\x18\n \x01(\x08\x42\x03\xe0\x41\x01\x12\x63\n\x0c\x61\x63\x63\x65lerators\x18\x0b \x03(\x0b\x32H.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfigB\x03\xe0\x41\x01\x12\x1d\n\x10min_cpu_platform\x18\r \x01(\tB\x03\xe0\x41\x01\x12\x1e\n\x11\x62oot_disk_kms_key\x18\x17 \x01(\tB\x03\xe0\x41\x01\x12\x11\n\x04spot\x18 \x01(\x08\x42\x03\xe0\x41\x01\x1ao\n\x1cGkeNodePoolAcceleratorConfig\x12\x19\n\x11\x61\x63\x63\x65lerator_count\x18\x01 \x01(\x03\x12\x18\n\x10\x61\x63\x63\x65lerator_type\x18\x02 \x01(\t\x12\x1a\n\x12gpu_partition_size\x18\x03 \x01(\t\x1aN\n\x1cGkeNodePoolAutoscalingConfig\x12\x16\n\x0emin_node_count\x18\x02 \x01(\x05\x12\x16\n\x0emax_node_count\x18\x03 \x01(\x05\"g\n\x10RepositoryConfig\x12S\n\x16pypi_repository_config\x18\x01 \x01(\x0b\x32..google.cloud.dataproc.v1.PyPiRepositoryConfigB\x03\xe0\x41\x01\"4\n\x14PyPiRepositoryConfig\x12\x1c\n\x0fpypi_repository\x18\x01 \x01(\tB\x03\xe0\x41\x01*\xd4\x01\n\tComponent\x12\x19\n\x15\x43OMPONENT_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x41NACONDA\x10\x05\x12\n\n\x06\x44OCKER\x10\r\x12\t\n\x05\x44RUID\x10\t\x12\t\n\x05\x46LINK\x10\x0e\x12\t\n\x05HBASE\x10\x0b\x12\x10\n\x0cHIVE_WEBHCAT\x10\x03\x12\x08\n\x04HUDI\x10\x12\x12\x0b\n\x07JUPYTER\x10\x01\x12\n\n\x06PRESTO\x10\x06\x12\t\n\x05TRINO\x10\x11\x12\n\n\x06RANGER\x10\x0c\x12\x08\n\x04SOLR\x10\n\x12\x0c\n\x08ZEPPELIN\x10\x04\x12\r\n\tZOOKEEPER\x10\x08*J\n\rFailureAction\x12\x1e\n\x1a\x46\x41ILURE_ACTION_UNSPECIFIED\x10\x00\x12\r\n\tNO_ACTION\x10\x01\x12\n\n\x06\x44\x45LETE\x10\x02\x42\xac\x02\n\x1c\x63om.google.cloud.dataproc.v1B\x0bSharedProtoP\x01Z;cloud.google.com/go/dataproc/v2/apiv1/dataprocpb;dataprocpb\xea\x41^\n container.googleapis.com/Cluster\x12:projects/{project}/locations/{location}/clusters/{cluster}\xea\x41^\n metastore.googleapis.com/Service\x12:projects/{project}/locations/{location}/services/{service}b\x06proto3"
13
+ descriptor_data = "\n%google/cloud/dataproc/v1/shared.proto\x12\x18google.cloud.dataproc.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xf5\x02\n\rRuntimeConfig\x12\x14\n\x07version\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x1c\n\x0f\x63ontainer_image\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12P\n\nproperties\x18\x03 \x03(\x0b\x32\x37.google.cloud.dataproc.v1.RuntimeConfig.PropertiesEntryB\x03\xe0\x41\x01\x12J\n\x11repository_config\x18\x05 \x01(\x0b\x32*.google.cloud.dataproc.v1.RepositoryConfigB\x03\xe0\x41\x01\x12J\n\x11\x61utotuning_config\x18\x06 \x01(\x0b\x32*.google.cloud.dataproc.v1.AutotuningConfigB\x03\xe0\x41\x01\x12\x13\n\x06\x63ohort\x18\x07 \x01(\tB\x03\xe0\x41\x01\x1a\x31\n\x0fPropertiesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xab\x01\n\x11\x45nvironmentConfig\x12H\n\x10\x65xecution_config\x18\x01 \x01(\x0b\x32).google.cloud.dataproc.v1.ExecutionConfigB\x03\xe0\x41\x01\x12L\n\x12peripherals_config\x18\x02 \x01(\x0b\x32+.google.cloud.dataproc.v1.PeripheralsConfigB\x03\xe0\x41\x01\"\xa2\x02\n\x0f\x45xecutionConfig\x12\x1c\n\x0fservice_account\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x1a\n\x0bnetwork_uri\x18\x04 \x01(\tB\x03\xe0\x41\x01H\x00\x12\x1d\n\x0esubnetwork_uri\x18\x05 \x01(\tB\x03\xe0\x41\x01H\x00\x12\x19\n\x0cnetwork_tags\x18\x06 \x03(\tB\x03\xe0\x41\x01\x12\x14\n\x07kms_key\x18\x07 \x01(\tB\x03\xe0\x41\x01\x12\x30\n\x08idle_ttl\x18\x08 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x01\x12+\n\x03ttl\x18\t \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x01\x12\x1b\n\x0estaging_bucket\x18\n \x01(\tB\x03\xe0\x41\x01\x42\t\n\x07network\"9\n\x18SparkHistoryServerConfig\x12\x1d\n\x10\x64\x61taproc_cluster\x18\x01 \x01(\tB\x03\xe0\x41\x01\"\xb6\x01\n\x11PeripheralsConfig\x12\x43\n\x11metastore_service\x18\x01 \x01(\tB(\xe0\x41\x01\xfa\x41\"\n metastore.googleapis.com/Service\x12\\\n\x1bspark_history_server_config\x18\x02 \x01(\x0b\x32\x32.google.cloud.dataproc.v1.SparkHistoryServerConfigB\x03\xe0\x41\x01\"\xd7\x02\n\x0bRuntimeInfo\x12L\n\tendpoints\x18\x01 \x03(\x0b\x32\x34.google.cloud.dataproc.v1.RuntimeInfo.EndpointsEntryB\x03\xe0\x41\x03\x12\x17\n\noutput_uri\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\"\n\x15\x64iagnostic_output_uri\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x46\n\x11\x61pproximate_usage\x18\x06 \x01(\x0b\x32&.google.cloud.dataproc.v1.UsageMetricsB\x03\xe0\x41\x03\x12\x43\n\rcurrent_usage\x18\x07 \x01(\x0b\x32\'.google.cloud.dataproc.v1.UsageSnapshotB\x03\xe0\x41\x03\x1a\x30\n\x0e\x45ndpointsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x9e\x01\n\x0cUsageMetrics\x12\x1e\n\x11milli_dcu_seconds\x18\x01 \x01(\x03\x42\x03\xe0\x41\x01\x12\'\n\x1ashuffle_storage_gb_seconds\x18\x02 \x01(\x03\x42\x03\xe0\x41\x01\x12&\n\x19milli_accelerator_seconds\x18\x03 \x01(\x03\x42\x03\xe0\x41\x01\x12\x1d\n\x10\x61\x63\x63\x65lerator_type\x18\x04 \x01(\tB\x03\xe0\x41\x01\"\x88\x02\n\rUsageSnapshot\x12\x16\n\tmilli_dcu\x18\x01 \x01(\x03\x42\x03\xe0\x41\x01\x12\x1f\n\x12shuffle_storage_gb\x18\x02 \x01(\x03\x42\x03\xe0\x41\x01\x12\x1e\n\x11milli_dcu_premium\x18\x04 \x01(\x03\x42\x03\xe0\x41\x01\x12\'\n\x1ashuffle_storage_gb_premium\x18\x05 \x01(\x03\x42\x03\xe0\x41\x01\x12\x1e\n\x11milli_accelerator\x18\x06 \x01(\x03\x42\x03\xe0\x41\x01\x12\x1d\n\x10\x61\x63\x63\x65lerator_type\x18\x07 \x01(\tB\x03\xe0\x41\x01\x12\x36\n\rsnapshot_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x01\"\xa4\x01\n\x10GkeClusterConfig\x12\x44\n\x12gke_cluster_target\x18\x02 \x01(\tB(\xe0\x41\x01\xfa\x41\"\n container.googleapis.com/Cluster\x12J\n\x10node_pool_target\x18\x03 \x03(\x0b\x32+.google.cloud.dataproc.v1.GkeNodePoolTargetB\x03\xe0\x41\x01\"\xf2\x01\n\x17KubernetesClusterConfig\x12!\n\x14kubernetes_namespace\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12M\n\x12gke_cluster_config\x18\x02 \x01(\x0b\x32*.google.cloud.dataproc.v1.GkeClusterConfigB\x03\xe0\x41\x02H\x00\x12[\n\x1akubernetes_software_config\x18\x03 \x01(\x0b\x32\x32.google.cloud.dataproc.v1.KubernetesSoftwareConfigB\x03\xe0\x41\x01\x42\x08\n\x06\x63onfig\"\xc3\x02\n\x18KubernetesSoftwareConfig\x12\x63\n\x11\x63omponent_version\x18\x01 \x03(\x0b\x32H.google.cloud.dataproc.v1.KubernetesSoftwareConfig.ComponentVersionEntry\x12V\n\nproperties\x18\x02 \x03(\x0b\x32\x42.google.cloud.dataproc.v1.KubernetesSoftwareConfig.PropertiesEntry\x1a\x37\n\x15\x43omponentVersionEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x31\n\x0fPropertiesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x9e\x02\n\x11GkeNodePoolTarget\x12\x16\n\tnode_pool\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x44\n\x05roles\x18\x02 \x03(\x0e\x32\x30.google.cloud.dataproc.v1.GkeNodePoolTarget.RoleB\x03\xe0\x41\x02\x12J\n\x10node_pool_config\x18\x03 \x01(\x0b\x32+.google.cloud.dataproc.v1.GkeNodePoolConfigB\x03\xe0\x41\x04\"_\n\x04Role\x12\x14\n\x10ROLE_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x44\x45\x46\x41ULT\x10\x01\x12\x0e\n\nCONTROLLER\x10\x02\x12\x10\n\x0cSPARK_DRIVER\x10\x03\x12\x12\n\x0eSPARK_EXECUTOR\x10\x04\"\xbc\x05\n\x11GkeNodePoolConfig\x12N\n\x06\x63onfig\x18\x02 \x01(\x0b\x32\x39.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfigB\x03\xe0\x41\x01\x12\x16\n\tlocations\x18\r \x03(\tB\x03\xe0\x41\x01\x12\x62\n\x0b\x61utoscaling\x18\x04 \x01(\x0b\x32H.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfigB\x03\xe0\x41\x01\x1a\x99\x02\n\rGkeNodeConfig\x12\x19\n\x0cmachine_type\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x1c\n\x0flocal_ssd_count\x18\x07 \x01(\x05\x42\x03\xe0\x41\x01\x12\x18\n\x0bpreemptible\x18\n \x01(\x08\x42\x03\xe0\x41\x01\x12\x63\n\x0c\x61\x63\x63\x65lerators\x18\x0b \x03(\x0b\x32H.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfigB\x03\xe0\x41\x01\x12\x1d\n\x10min_cpu_platform\x18\r \x01(\tB\x03\xe0\x41\x01\x12\x1e\n\x11\x62oot_disk_kms_key\x18\x17 \x01(\tB\x03\xe0\x41\x01\x12\x11\n\x04spot\x18 \x01(\x08\x42\x03\xe0\x41\x01\x1ao\n\x1cGkeNodePoolAcceleratorConfig\x12\x19\n\x11\x61\x63\x63\x65lerator_count\x18\x01 \x01(\x03\x12\x18\n\x10\x61\x63\x63\x65lerator_type\x18\x02 \x01(\t\x12\x1a\n\x12gpu_partition_size\x18\x03 \x01(\t\x1aN\n\x1cGkeNodePoolAutoscalingConfig\x12\x16\n\x0emin_node_count\x18\x02 \x01(\x05\x12\x16\n\x0emax_node_count\x18\x03 \x01(\x05\"\xb7\x01\n\x10\x41utotuningConfig\x12K\n\tscenarios\x18\x02 \x03(\x0e\x32\x33.google.cloud.dataproc.v1.AutotuningConfig.ScenarioB\x03\xe0\x41\x01\"V\n\x08Scenario\x12\x18\n\x14SCENARIO_UNSPECIFIED\x10\x00\x12\x0b\n\x07SCALING\x10\x02\x12\x17\n\x13\x42ROADCAST_HASH_JOIN\x10\x03\x12\n\n\x06MEMORY\x10\x04\"g\n\x10RepositoryConfig\x12S\n\x16pypi_repository_config\x18\x01 \x01(\x0b\x32..google.cloud.dataproc.v1.PyPiRepositoryConfigB\x03\xe0\x41\x01\"4\n\x14PyPiRepositoryConfig\x12\x1c\n\x0fpypi_repository\x18\x01 \x01(\tB\x03\xe0\x41\x01*\xd4\x01\n\tComponent\x12\x19\n\x15\x43OMPONENT_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x41NACONDA\x10\x05\x12\n\n\x06\x44OCKER\x10\r\x12\t\n\x05\x44RUID\x10\t\x12\t\n\x05\x46LINK\x10\x0e\x12\t\n\x05HBASE\x10\x0b\x12\x10\n\x0cHIVE_WEBHCAT\x10\x03\x12\x08\n\x04HUDI\x10\x12\x12\x0b\n\x07JUPYTER\x10\x01\x12\n\n\x06PRESTO\x10\x06\x12\t\n\x05TRINO\x10\x11\x12\n\n\x06RANGER\x10\x0c\x12\x08\n\x04SOLR\x10\n\x12\x0c\n\x08ZEPPELIN\x10\x04\x12\r\n\tZOOKEEPER\x10\x08*J\n\rFailureAction\x12\x1e\n\x1a\x46\x41ILURE_ACTION_UNSPECIFIED\x10\x00\x12\r\n\tNO_ACTION\x10\x01\x12\n\n\x06\x44\x45LETE\x10\x02\x42\xac\x02\n\x1c\x63om.google.cloud.dataproc.v1B\x0bSharedProtoP\x01Z;cloud.google.com/go/dataproc/v2/apiv1/dataprocpb;dataprocpb\xea\x41^\n container.googleapis.com/Cluster\x12:projects/{project}/locations/{location}/clusters/{cluster}\xea\x41^\n metastore.googleapis.com/Service\x12:projects/{project}/locations/{location}/services/{service}b\x06proto3"
14
14
 
15
15
  pool = Google::Protobuf::DescriptorPool.generated_pool
16
16
 
@@ -59,6 +59,8 @@ module Google
59
59
  GkeNodePoolConfig::GkeNodeConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig").msgclass
60
60
  GkeNodePoolConfig::GkeNodePoolAcceleratorConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig").msgclass
61
61
  GkeNodePoolConfig::GkeNodePoolAutoscalingConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig").msgclass
62
+ AutotuningConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.AutotuningConfig").msgclass
63
+ AutotuningConfig::Scenario = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.AutotuningConfig.Scenario").enummodule
62
64
  RepositoryConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.RepositoryConfig").msgclass
63
65
  PyPiRepositoryConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.PyPiRepositoryConfig").msgclass
64
66
  Component = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.Component").enummodule
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Dataproc
23
23
  module V1
24
- VERSION = "0.25.0"
24
+ VERSION = "0.26.0"
25
25
  end
26
26
  end
27
27
  end
@@ -32,6 +32,9 @@ module Google
32
32
  # Dataproc API.
33
33
  #
34
34
  class Client
35
+ # @private
36
+ API_VERSION = ""
37
+
35
38
  # @private
36
39
  DEFAULT_ENDPOINT_TEMPLATE = "dataproc.$UNIVERSE_DOMAIN$"
37
40
 
@@ -291,10 +294,11 @@ module Google
291
294
  # Customize the options with defaults
292
295
  metadata = @config.rpcs.create_workflow_template.metadata.to_h
293
296
 
294
- # Set x-goog-api-client and x-goog-user-project headers
297
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
295
298
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
296
299
  lib_name: @config.lib_name, lib_version: @config.lib_version,
297
300
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION
301
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
298
302
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
299
303
 
300
304
  header_params = {}
@@ -393,10 +397,11 @@ module Google
393
397
  # Customize the options with defaults
394
398
  metadata = @config.rpcs.get_workflow_template.metadata.to_h
395
399
 
396
- # Set x-goog-api-client and x-goog-user-project headers
400
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
397
401
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
398
402
  lib_name: @config.lib_name, lib_version: @config.lib_version,
399
403
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION
404
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
400
405
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
401
406
 
402
407
  header_params = {}
@@ -533,10 +538,11 @@ module Google
533
538
  # Customize the options with defaults
534
539
  metadata = @config.rpcs.instantiate_workflow_template.metadata.to_h
535
540
 
536
- # Set x-goog-api-client and x-goog-user-project headers
541
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
537
542
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
538
543
  lib_name: @config.lib_name, lib_version: @config.lib_version,
539
544
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION
545
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
540
546
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
541
547
 
542
548
  header_params = {}
@@ -671,10 +677,11 @@ module Google
671
677
  # Customize the options with defaults
672
678
  metadata = @config.rpcs.instantiate_inline_workflow_template.metadata.to_h
673
679
 
674
- # Set x-goog-api-client and x-goog-user-project headers
680
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
675
681
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
676
682
  lib_name: @config.lib_name, lib_version: @config.lib_version,
677
683
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION
684
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
678
685
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
679
686
 
680
687
  header_params = {}
@@ -760,10 +767,11 @@ module Google
760
767
  # Customize the options with defaults
761
768
  metadata = @config.rpcs.update_workflow_template.metadata.to_h
762
769
 
763
- # Set x-goog-api-client and x-goog-user-project headers
770
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
764
771
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
765
772
  lib_name: @config.lib_name, lib_version: @config.lib_version,
766
773
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION
774
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
767
775
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
768
776
 
769
777
  header_params = {}
@@ -863,10 +871,11 @@ module Google
863
871
  # Customize the options with defaults
864
872
  metadata = @config.rpcs.list_workflow_templates.metadata.to_h
865
873
 
866
- # Set x-goog-api-client and x-goog-user-project headers
874
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
867
875
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
868
876
  lib_name: @config.lib_name, lib_version: @config.lib_version,
869
877
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION
878
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
870
879
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
871
880
 
872
881
  header_params = {}
@@ -962,10 +971,11 @@ module Google
962
971
  # Customize the options with defaults
963
972
  metadata = @config.rpcs.delete_workflow_template.metadata.to_h
964
973
 
965
- # Set x-goog-api-client and x-goog-user-project headers
974
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
966
975
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
967
976
  lib_name: @config.lib_name, lib_version: @config.lib_version,
968
977
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION
978
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
969
979
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
970
980
 
971
981
  header_params = {}
@@ -26,6 +26,9 @@ module Google
26
26
  module WorkflowTemplateService
27
27
  # Service that implements Longrunning Operations API.
28
28
  class Operations
29
+ # @private
30
+ API_VERSION = ""
31
+
29
32
  # @private
30
33
  DEFAULT_ENDPOINT_TEMPLATE = "dataproc.$UNIVERSE_DOMAIN$"
31
34
 
@@ -191,10 +194,11 @@ module Google
191
194
  # Customize the options with defaults
192
195
  metadata = @config.rpcs.list_operations.metadata.to_h
193
196
 
194
- # Set x-goog-api-client and x-goog-user-project headers
197
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
195
198
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
196
199
  lib_name: @config.lib_name, lib_version: @config.lib_version,
197
200
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION
201
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
198
202
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
199
203
 
200
204
  header_params = {}
@@ -287,10 +291,11 @@ module Google
287
291
  # Customize the options with defaults
288
292
  metadata = @config.rpcs.get_operation.metadata.to_h
289
293
 
290
- # Set x-goog-api-client and x-goog-user-project headers
294
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
291
295
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
292
296
  lib_name: @config.lib_name, lib_version: @config.lib_version,
293
297
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION
298
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
294
299
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
295
300
 
296
301
  header_params = {}
@@ -376,10 +381,11 @@ module Google
376
381
  # Customize the options with defaults
377
382
  metadata = @config.rpcs.delete_operation.metadata.to_h
378
383
 
379
- # Set x-goog-api-client and x-goog-user-project headers
384
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
380
385
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
381
386
  lib_name: @config.lib_name, lib_version: @config.lib_version,
382
387
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION
388
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
383
389
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
384
390
 
385
391
  header_params = {}
@@ -470,10 +476,11 @@ module Google
470
476
  # Customize the options with defaults
471
477
  metadata = @config.rpcs.cancel_operation.metadata.to_h
472
478
 
473
- # Set x-goog-api-client and x-goog-user-project headers
479
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
474
480
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
475
481
  lib_name: @config.lib_name, lib_version: @config.lib_version,
476
482
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION
483
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
477
484
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
478
485
 
479
486
  header_params = {}
@@ -574,10 +581,11 @@ module Google
574
581
  # Customize the options with defaults
575
582
  metadata = @config.rpcs.wait_operation.metadata.to_h
576
583
 
577
- # Set x-goog-api-client and x-goog-user-project headers
584
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
578
585
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
579
586
  lib_name: @config.lib_name, lib_version: @config.lib_version,
580
587
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION
588
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
581
589
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
582
590
 
583
591
  options.apply_defaults timeout: @config.rpcs.wait_operation.timeout,
@@ -34,6 +34,9 @@ module Google
34
34
  # Dataproc API.
35
35
  #
36
36
  class Client
37
+ # @private
38
+ API_VERSION = ""
39
+
37
40
  # @private
38
41
  DEFAULT_ENDPOINT_TEMPLATE = "dataproc.$UNIVERSE_DOMAIN$"
39
42
 
@@ -284,12 +287,13 @@ module Google
284
287
  # Customize the options with defaults
285
288
  call_metadata = @config.rpcs.create_workflow_template.metadata.to_h
286
289
 
287
- # Set x-goog-api-client and x-goog-user-project headers
290
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
288
291
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
289
292
  lib_name: @config.lib_name, lib_version: @config.lib_version,
290
293
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION,
291
294
  transports_version_send: [:rest]
292
295
 
296
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
293
297
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
294
298
 
295
299
  options.apply_defaults timeout: @config.rpcs.create_workflow_template.timeout,
@@ -379,12 +383,13 @@ module Google
379
383
  # Customize the options with defaults
380
384
  call_metadata = @config.rpcs.get_workflow_template.metadata.to_h
381
385
 
382
- # Set x-goog-api-client and x-goog-user-project headers
386
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
383
387
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
384
388
  lib_name: @config.lib_name, lib_version: @config.lib_version,
385
389
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION,
386
390
  transports_version_send: [:rest]
387
391
 
392
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
388
393
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
389
394
 
390
395
  options.apply_defaults timeout: @config.rpcs.get_workflow_template.timeout,
@@ -512,12 +517,13 @@ module Google
512
517
  # Customize the options with defaults
513
518
  call_metadata = @config.rpcs.instantiate_workflow_template.metadata.to_h
514
519
 
515
- # Set x-goog-api-client and x-goog-user-project headers
520
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
516
521
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
517
522
  lib_name: @config.lib_name, lib_version: @config.lib_version,
518
523
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION,
519
524
  transports_version_send: [:rest]
520
525
 
526
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
521
527
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
522
528
 
523
529
  options.apply_defaults timeout: @config.rpcs.instantiate_workflow_template.timeout,
@@ -643,12 +649,13 @@ module Google
643
649
  # Customize the options with defaults
644
650
  call_metadata = @config.rpcs.instantiate_inline_workflow_template.metadata.to_h
645
651
 
646
- # Set x-goog-api-client and x-goog-user-project headers
652
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
647
653
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
648
654
  lib_name: @config.lib_name, lib_version: @config.lib_version,
649
655
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION,
650
656
  transports_version_send: [:rest]
651
657
 
658
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
652
659
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
653
660
 
654
661
  options.apply_defaults timeout: @config.rpcs.instantiate_inline_workflow_template.timeout,
@@ -725,12 +732,13 @@ module Google
725
732
  # Customize the options with defaults
726
733
  call_metadata = @config.rpcs.update_workflow_template.metadata.to_h
727
734
 
728
- # Set x-goog-api-client and x-goog-user-project headers
735
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
729
736
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
730
737
  lib_name: @config.lib_name, lib_version: @config.lib_version,
731
738
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION,
732
739
  transports_version_send: [:rest]
733
740
 
741
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
734
742
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
735
743
 
736
744
  options.apply_defaults timeout: @config.rpcs.update_workflow_template.timeout,
@@ -821,12 +829,13 @@ module Google
821
829
  # Customize the options with defaults
822
830
  call_metadata = @config.rpcs.list_workflow_templates.metadata.to_h
823
831
 
824
- # Set x-goog-api-client and x-goog-user-project headers
832
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
825
833
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
826
834
  lib_name: @config.lib_name, lib_version: @config.lib_version,
827
835
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION,
828
836
  transports_version_send: [:rest]
829
837
 
838
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
830
839
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
831
840
 
832
841
  options.apply_defaults timeout: @config.rpcs.list_workflow_templates.timeout,
@@ -913,12 +922,13 @@ module Google
913
922
  # Customize the options with defaults
914
923
  call_metadata = @config.rpcs.delete_workflow_template.metadata.to_h
915
924
 
916
- # Set x-goog-api-client and x-goog-user-project headers
925
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
917
926
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
918
927
  lib_name: @config.lib_name, lib_version: @config.lib_version,
919
928
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION,
920
929
  transports_version_send: [:rest]
921
930
 
931
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
922
932
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
923
933
 
924
934
  options.apply_defaults timeout: @config.rpcs.delete_workflow_template.timeout,
@@ -26,6 +26,9 @@ module Google
26
26
  module Rest
27
27
  # Service that implements Longrunning Operations API.
28
28
  class Operations
29
+ # @private
30
+ API_VERSION = ""
31
+
29
32
  # @private
30
33
  DEFAULT_ENDPOINT_TEMPLATE = "dataproc.$UNIVERSE_DOMAIN$"
31
34
 
@@ -181,12 +184,13 @@ module Google
181
184
  # Customize the options with defaults
182
185
  call_metadata = @config.rpcs.list_operations.metadata.to_h
183
186
 
184
- # Set x-goog-api-client and x-goog-user-project headers
187
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
185
188
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
186
189
  lib_name: @config.lib_name, lib_version: @config.lib_version,
187
190
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION,
188
191
  transports_version_send: [:rest]
189
192
 
193
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
190
194
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
191
195
 
192
196
  options.apply_defaults timeout: @config.rpcs.list_operations.timeout,
@@ -269,12 +273,13 @@ module Google
269
273
  # Customize the options with defaults
270
274
  call_metadata = @config.rpcs.get_operation.metadata.to_h
271
275
 
272
- # Set x-goog-api-client and x-goog-user-project headers
276
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
273
277
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
274
278
  lib_name: @config.lib_name, lib_version: @config.lib_version,
275
279
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION,
276
280
  transports_version_send: [:rest]
277
281
 
282
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
278
283
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
279
284
 
280
285
  options.apply_defaults timeout: @config.rpcs.get_operation.timeout,
@@ -351,12 +356,13 @@ module Google
351
356
  # Customize the options with defaults
352
357
  call_metadata = @config.rpcs.delete_operation.metadata.to_h
353
358
 
354
- # Set x-goog-api-client and x-goog-user-project headers
359
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
355
360
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
356
361
  lib_name: @config.lib_name, lib_version: @config.lib_version,
357
362
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION,
358
363
  transports_version_send: [:rest]
359
364
 
365
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
360
366
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
361
367
 
362
368
  options.apply_defaults timeout: @config.rpcs.delete_operation.timeout,
@@ -438,12 +444,13 @@ module Google
438
444
  # Customize the options with defaults
439
445
  call_metadata = @config.rpcs.cancel_operation.metadata.to_h
440
446
 
441
- # Set x-goog-api-client and x-goog-user-project headers
447
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
442
448
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
443
449
  lib_name: @config.lib_name, lib_version: @config.lib_version,
444
450
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION,
445
451
  transports_version_send: [:rest]
446
452
 
453
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
447
454
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
448
455
 
449
456
  options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout,
@@ -118,6 +118,10 @@ module Google
118
118
  # @return [::String]
119
119
  # Optional link to proto reference documentation. Example:
120
120
  # https://cloud.google.com/pubsub/lite/docs/reference/rpc
121
+ # @!attribute [rw] rest_reference_documentation_uri
122
+ # @return [::String]
123
+ # Optional link to REST reference documentation. Example:
124
+ # https://cloud.google.com/pubsub/lite/docs/reference/rest
121
125
  class Publishing
122
126
  include ::Google::Protobuf::MessageExts
123
127
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -36,6 +36,13 @@ module Google
36
36
  # @!attribute [rw] repository_config
37
37
  # @return [::Google::Cloud::Dataproc::V1::RepositoryConfig]
38
38
  # Optional. Dependency repository configuration.
39
+ # @!attribute [rw] autotuning_config
40
+ # @return [::Google::Cloud::Dataproc::V1::AutotuningConfig]
41
+ # Optional. Autotuning configuration of the workload.
42
+ # @!attribute [rw] cohort
43
+ # @return [::String]
44
+ # Optional. Cohort identifier. Identifies families of the workloads having
45
+ # the same shape, e.g. daily ETL jobs.
39
46
  class RuntimeConfig
40
47
  include ::Google::Protobuf::MessageExts
41
48
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -508,6 +515,31 @@ module Google
508
515
  end
509
516
  end
510
517
 
518
+ # Autotuning configuration of the workload.
519
+ # @!attribute [rw] scenarios
520
+ # @return [::Array<::Google::Cloud::Dataproc::V1::AutotuningConfig::Scenario>]
521
+ # Optional. Scenarios for which tunings are applied.
522
+ class AutotuningConfig
523
+ include ::Google::Protobuf::MessageExts
524
+ extend ::Google::Protobuf::MessageExts::ClassMethods
525
+
526
+ # Scenario represents a specific goal that autotuning will attempt to achieve
527
+ # by modifying workloads.
528
+ module Scenario
529
+ # Default value.
530
+ SCENARIO_UNSPECIFIED = 0
531
+
532
+ # Scaling recommendations such as initialExecutors.
533
+ SCALING = 2
534
+
535
+ # Adding hints for potential relation broadcasts.
536
+ BROADCAST_HASH_JOIN = 3
537
+
538
+ # Memory management for workloads.
539
+ MEMORY = 4
540
+ end
541
+ end
542
+
511
543
  # Configuration for dependency repositories
512
544
  # @!attribute [rw] pypi_repository_config
513
545
  # @return [::Google::Cloud::Dataproc::V1::PyPiRepositoryConfig]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-dataproc-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.25.0
4
+ version: 0.26.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: 2024-02-26 00:00:00.000000000 Z
11
+ date: 2024-06-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common