google-cloud-dataproc-v1 0.24.1 → 0.26.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/google/cloud/dataproc/v1/autoscaling_policies_pb.rb +1 -1
  4. data/lib/google/cloud/dataproc/v1/autoscaling_policy_service/client.rb +13 -5
  5. data/lib/google/cloud/dataproc/v1/autoscaling_policy_service/rest/client.rb +13 -5
  6. data/lib/google/cloud/dataproc/v1/batch_controller/client.rb +11 -4
  7. data/lib/google/cloud/dataproc/v1/batch_controller/operations.rb +13 -5
  8. data/lib/google/cloud/dataproc/v1/batch_controller/rest/client.rb +11 -4
  9. data/lib/google/cloud/dataproc/v1/batch_controller/rest/operations.rb +11 -4
  10. data/lib/google/cloud/dataproc/v1/batches_pb.rb +1 -1
  11. data/lib/google/cloud/dataproc/v1/cluster_controller/client.rb +19 -8
  12. data/lib/google/cloud/dataproc/v1/cluster_controller/operations.rb +13 -5
  13. data/lib/google/cloud/dataproc/v1/cluster_controller/rest/client.rb +19 -8
  14. data/lib/google/cloud/dataproc/v1/cluster_controller/rest/operations.rb +11 -4
  15. data/lib/google/cloud/dataproc/v1/clusters_pb.rb +1 -1
  16. data/lib/google/cloud/dataproc/v1/job_controller/client.rb +17 -7
  17. data/lib/google/cloud/dataproc/v1/job_controller/operations.rb +13 -5
  18. data/lib/google/cloud/dataproc/v1/job_controller/rest/client.rb +17 -7
  19. data/lib/google/cloud/dataproc/v1/job_controller/rest/operations.rb +11 -4
  20. data/lib/google/cloud/dataproc/v1/jobs_pb.rb +1 -1
  21. data/lib/google/cloud/dataproc/v1/node_group_controller/client.rb +9 -3
  22. data/lib/google/cloud/dataproc/v1/node_group_controller/operations.rb +13 -5
  23. data/lib/google/cloud/dataproc/v1/node_group_controller/rest/client.rb +9 -3
  24. data/lib/google/cloud/dataproc/v1/node_group_controller/rest/operations.rb +11 -4
  25. data/lib/google/cloud/dataproc/v1/node_groups_pb.rb +1 -1
  26. data/lib/google/cloud/dataproc/v1/operations_pb.rb +1 -1
  27. data/lib/google/cloud/dataproc/v1/session_controller/client.rb +13 -5
  28. data/lib/google/cloud/dataproc/v1/session_controller/operations.rb +13 -5
  29. data/lib/google/cloud/dataproc/v1/session_controller/rest/client.rb +13 -5
  30. data/lib/google/cloud/dataproc/v1/session_controller/rest/operations.rb +11 -4
  31. data/lib/google/cloud/dataproc/v1/session_template_controller/client.rb +13 -5
  32. data/lib/google/cloud/dataproc/v1/session_template_controller/rest/client.rb +13 -5
  33. data/lib/google/cloud/dataproc/v1/session_templates_pb.rb +1 -1
  34. data/lib/google/cloud/dataproc/v1/sessions_pb.rb +1 -1
  35. data/lib/google/cloud/dataproc/v1/shared_pb.rb +3 -1
  36. data/lib/google/cloud/dataproc/v1/version.rb +1 -1
  37. data/lib/google/cloud/dataproc/v1/workflow_template_service/client.rb +17 -7
  38. data/lib/google/cloud/dataproc/v1/workflow_template_service/operations.rb +13 -5
  39. data/lib/google/cloud/dataproc/v1/workflow_template_service/rest/client.rb +17 -7
  40. data/lib/google/cloud/dataproc/v1/workflow_template_service/rest/operations.rb +11 -4
  41. data/lib/google/cloud/dataproc/v1/workflow_templates_pb.rb +1 -1
  42. data/proto_docs/google/api/client.rb +4 -0
  43. data/proto_docs/google/cloud/dataproc/v1/shared.rb +32 -0
  44. metadata +4 -116
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 27136ab878f015d7f675bfd353f41592c99561723593c453b1d5238584bda50d
4
- data.tar.gz: 02bf2a09757c68968dd1c71dd9500aad67809c5b6f466ccf6419731584a6614c
3
+ metadata.gz: 5c0874b57d05e07f492399abe0e1903bda007936f885ce2e6ca1724a12741740
4
+ data.tar.gz: 7528695ead864d2e72d7213d5d2b26b1204c0ef5cd3c5e5d704a6583e117397f
5
5
  SHA512:
6
- metadata.gz: bf410ca5674f28ebedf4712f636531b6656d794888f1b9f3b36ca45b9fea441c68be6155e8be4dc16806373eaa3ad76bdfdf4de8af03f2119c5d8e46e727ced3
7
- data.tar.gz: cdecaf996d7b1e8bec8818eb1dc812e3e31910e729ad20a31cfcbe36085c271ac289d2f5f396485469b18890e2ae5aba8f85709477f8dfdd61a3068bedcbfc84
6
+ metadata.gz: e2c104d073431bf93a8202cb02a6388a5c1abac8b6305bb4b41868cddc691ea81495b5a6ef1f08072cae530b416e6613b89e5cded181ca95a126b7fce4cb53fa
7
+ data.tar.gz: b7e89b62b92bcb555ed37fc074fcf48b3cb91d9265a544b45958bc57d99bc7d71881ffb09cf30b85c6af8a694ea014cd7aa5a660ea4e5340eccfcfe6908fa79b
data/README.md CHANGED
@@ -76,7 +76,7 @@ To browse ready to use code samples check [Google Cloud Samples](https://cloud.g
76
76
 
77
77
  ## Supported Ruby Versions
78
78
 
79
- This library is supported on Ruby 2.6+.
79
+ This library is supported on Ruby 2.7+.
80
80
 
81
81
  Google provides official support for Ruby versions that are actively supported
82
82
  by Ruby Core—that is, Ruby versions that are either in normal maintenance or
@@ -12,7 +12,7 @@ require 'google/protobuf/duration_pb'
12
12
  require 'google/protobuf/empty_pb'
13
13
 
14
14
 
15
- descriptor_data = "\n3google/cloud/dataproc/v1/autoscaling_policies.proto\x12\x18google.cloud.dataproc.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1bgoogle/protobuf/empty.proto\"\xaa\x05\n\x11\x41utoscalingPolicy\x12\n\n\x02id\x18\x01 \x01(\t\x12\x12\n\x04name\x18\x02 \x01(\tB\x04\xe2\x41\x01\x03\x12T\n\x0f\x62\x61sic_algorithm\x18\x03 \x01(\x0b\x32\x33.google.cloud.dataproc.v1.BasicAutoscalingAlgorithmB\x04\xe2\x41\x01\x02H\x00\x12[\n\rworker_config\x18\x04 \x01(\x0b\x32>.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfigB\x04\xe2\x41\x01\x02\x12\x65\n\x17secondary_worker_config\x18\x05 \x01(\x0b\x32>.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfigB\x04\xe2\x41\x01\x01\x12M\n\x06labels\x18\x06 \x03(\x0b\x32\x37.google.cloud.dataproc.v1.AutoscalingPolicy.LabelsEntryB\x04\xe2\x41\x01\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:\xcf\x01\xea\x41\xcb\x01\n)dataproc.googleapis.com/AutoscalingPolicy\x12Pprojects/{project}/locations/{location}/autoscalingPolicies/{autoscaling_policy}\x12Lprojects/{project}/regions/{region}/autoscalingPolicies/{autoscaling_policy}B\x0b\n\talgorithm\"\xb2\x01\n\x19\x42\x61sicAutoscalingAlgorithm\x12Q\n\x0byarn_config\x18\x01 \x01(\x0b\x32\x34.google.cloud.dataproc.v1.BasicYarnAutoscalingConfigB\x04\xe2\x41\x01\x02H\x00\x12\x38\n\x0f\x63ooldown_period\x18\x02 \x01(\x0b\x32\x19.google.protobuf.DurationB\x04\xe2\x41\x01\x01\x42\x08\n\x06\x63onfig\"\xfe\x01\n\x1a\x42\x61sicYarnAutoscalingConfig\x12\x46\n\x1dgraceful_decommission_timeout\x18\x05 \x01(\x0b\x32\x19.google.protobuf.DurationB\x04\xe2\x41\x01\x02\x12\x1d\n\x0fscale_up_factor\x18\x01 \x01(\x01\x42\x04\xe2\x41\x01\x02\x12\x1f\n\x11scale_down_factor\x18\x02 \x01(\x01\x42\x04\xe2\x41\x01\x02\x12*\n\x1cscale_up_min_worker_fraction\x18\x03 \x01(\x01\x42\x04\xe2\x41\x01\x01\x12,\n\x1escale_down_min_worker_fraction\x18\x04 \x01(\x01\x42\x04\xe2\x41\x01\x01\"v\n$InstanceGroupAutoscalingPolicyConfig\x12\x1b\n\rmin_instances\x18\x01 \x01(\x05\x42\x04\xe2\x41\x01\x01\x12\x1b\n\rmax_instances\x18\x02 \x01(\x05\x42\x04\xe2\x41\x01\x02\x12\x14\n\x06weight\x18\x03 \x01(\x05\x42\x04\xe2\x41\x01\x01\"\xa7\x01\n\x1e\x43reateAutoscalingPolicyRequest\x12\x42\n\x06parent\x18\x01 \x01(\tB2\xe2\x41\x01\x02\xfa\x41+\x12)dataproc.googleapis.com/AutoscalingPolicy\x12\x41\n\x06policy\x18\x02 \x01(\x0b\x32+.google.cloud.dataproc.v1.AutoscalingPolicyB\x04\xe2\x41\x01\x02\"_\n\x1bGetAutoscalingPolicyRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe2\x41\x01\x02\xfa\x41+\n)dataproc.googleapis.com/AutoscalingPolicy\"c\n\x1eUpdateAutoscalingPolicyRequest\x12\x41\n\x06policy\x18\x01 \x01(\x0b\x32+.google.cloud.dataproc.v1.AutoscalingPolicyB\x04\xe2\x41\x01\x02\"b\n\x1e\x44\x65leteAutoscalingPolicyRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe2\x41\x01\x02\xfa\x41+\n)dataproc.googleapis.com/AutoscalingPolicy\"\x97\x01\n\x1eListAutoscalingPoliciesRequest\x12\x42\n\x06parent\x18\x01 \x01(\tB2\xe2\x41\x01\x02\xfa\x41+\x12)dataproc.googleapis.com/AutoscalingPolicy\x12\x17\n\tpage_size\x18\x02 \x01(\x05\x42\x04\xe2\x41\x01\x01\x12\x18\n\npage_token\x18\x03 \x01(\tB\x04\xe2\x41\x01\x01\"\x85\x01\n\x1fListAutoscalingPoliciesResponse\x12\x43\n\x08policies\x18\x01 \x03(\x0b\x32+.google.cloud.dataproc.v1.AutoscalingPolicyB\x04\xe2\x41\x01\x03\x12\x1d\n\x0fnext_page_token\x18\x02 \x01(\tB\x04\xe2\x41\x01\x03\x32\xae\x0b\n\x18\x41utoscalingPolicyService\x12\x9c\x02\n\x17\x43reateAutoscalingPolicy\x12\x38.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest\x1a+.google.cloud.dataproc.v1.AutoscalingPolicy\"\x99\x01\xda\x41\rparent,policy\x82\xd3\xe4\x93\x02\x82\x01\"7/v1/{parent=projects/*/locations/*}/autoscalingPolicies:\x06policyZ?\"5/v1/{parent=projects/*/regions/*}/autoscalingPolicies:\x06policy\x12\xa3\x02\n\x17UpdateAutoscalingPolicy\x12\x38.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest\x1a+.google.cloud.dataproc.v1.AutoscalingPolicy\"\xa0\x01\xda\x41\x06policy\x82\xd3\xe4\x93\x02\x90\x01\x1a>/v1/{policy.name=projects/*/locations/*/autoscalingPolicies/*}:\x06policyZF\x1a</v1/{policy.name=projects/*/regions/*/autoscalingPolicies/*}:\x06policy\x12\xfb\x01\n\x14GetAutoscalingPolicy\x12\x35.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest\x1a+.google.cloud.dataproc.v1.AutoscalingPolicy\"\x7f\xda\x41\x04name\x82\xd3\xe4\x93\x02r\x12\x37/v1/{name=projects/*/locations/*/autoscalingPolicies/*}Z7\x12\x35/v1/{name=projects/*/regions/*/autoscalingPolicies/*}\x12\x92\x02\n\x17ListAutoscalingPolicies\x12\x38.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest\x1a\x39.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse\"\x81\x01\xda\x41\x06parent\x82\xd3\xe4\x93\x02r\x12\x37/v1/{parent=projects/*/locations/*}/autoscalingPoliciesZ7\x12\x35/v1/{parent=projects/*/regions/*}/autoscalingPolicies\x12\xec\x01\n\x17\x44\x65leteAutoscalingPolicy\x12\x38.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest\x1a\x16.google.protobuf.Empty\"\x7f\xda\x41\x04name\x82\xd3\xe4\x93\x02r*7/v1/{name=projects/*/locations/*/autoscalingPolicies/*}Z7*5/v1/{name=projects/*/regions/*/autoscalingPolicies/*}\x1aK\xca\x41\x17\x64\x61taproc.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xbf\x01\n\x1c\x63om.google.cloud.dataproc.v1B\x18\x41utoscalingPoliciesProtoP\x01Z;cloud.google.com/go/dataproc/v2/apiv1/dataprocpb;dataprocpb\xea\x41\x45\n\x1e\x64\x61taproc.googleapis.com/Region\x12#projects/{project}/regions/{region}b\x06proto3"
15
+ descriptor_data = "\n3google/cloud/dataproc/v1/autoscaling_policies.proto\x12\x18google.cloud.dataproc.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1bgoogle/protobuf/empty.proto\"\xa5\x05\n\x11\x41utoscalingPolicy\x12\n\n\x02id\x18\x01 \x01(\t\x12\x11\n\x04name\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12S\n\x0f\x62\x61sic_algorithm\x18\x03 \x01(\x0b\x32\x33.google.cloud.dataproc.v1.BasicAutoscalingAlgorithmB\x03\xe0\x41\x02H\x00\x12Z\n\rworker_config\x18\x04 \x01(\x0b\x32>.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfigB\x03\xe0\x41\x02\x12\x64\n\x17secondary_worker_config\x18\x05 \x01(\x0b\x32>.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfigB\x03\xe0\x41\x01\x12L\n\x06labels\x18\x06 \x03(\x0b\x32\x37.google.cloud.dataproc.v1.AutoscalingPolicy.LabelsEntryB\x03\xe0\x41\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:\xcf\x01\xea\x41\xcb\x01\n)dataproc.googleapis.com/AutoscalingPolicy\x12Pprojects/{project}/locations/{location}/autoscalingPolicies/{autoscaling_policy}\x12Lprojects/{project}/regions/{region}/autoscalingPolicies/{autoscaling_policy}B\x0b\n\talgorithm\"\xb0\x01\n\x19\x42\x61sicAutoscalingAlgorithm\x12P\n\x0byarn_config\x18\x01 \x01(\x0b\x32\x34.google.cloud.dataproc.v1.BasicYarnAutoscalingConfigB\x03\xe0\x41\x02H\x00\x12\x37\n\x0f\x63ooldown_period\x18\x02 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x01\x42\x08\n\x06\x63onfig\"\xf9\x01\n\x1a\x42\x61sicYarnAutoscalingConfig\x12\x45\n\x1dgraceful_decommission_timeout\x18\x05 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x02\x12\x1c\n\x0fscale_up_factor\x18\x01 \x01(\x01\x42\x03\xe0\x41\x02\x12\x1e\n\x11scale_down_factor\x18\x02 \x01(\x01\x42\x03\xe0\x41\x02\x12)\n\x1cscale_up_min_worker_fraction\x18\x03 \x01(\x01\x42\x03\xe0\x41\x01\x12+\n\x1escale_down_min_worker_fraction\x18\x04 \x01(\x01\x42\x03\xe0\x41\x01\"s\n$InstanceGroupAutoscalingPolicyConfig\x12\x1a\n\rmin_instances\x18\x01 \x01(\x05\x42\x03\xe0\x41\x01\x12\x1a\n\rmax_instances\x18\x02 \x01(\x05\x42\x03\xe0\x41\x02\x12\x13\n\x06weight\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01\"\xa5\x01\n\x1e\x43reateAutoscalingPolicyRequest\x12\x41\n\x06parent\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\x12)dataproc.googleapis.com/AutoscalingPolicy\x12@\n\x06policy\x18\x02 \x01(\x0b\x32+.google.cloud.dataproc.v1.AutoscalingPolicyB\x03\xe0\x41\x02\"^\n\x1bGetAutoscalingPolicyRequest\x12?\n\x04name\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)dataproc.googleapis.com/AutoscalingPolicy\"b\n\x1eUpdateAutoscalingPolicyRequest\x12@\n\x06policy\x18\x01 \x01(\x0b\x32+.google.cloud.dataproc.v1.AutoscalingPolicyB\x03\xe0\x41\x02\"a\n\x1e\x44\x65leteAutoscalingPolicyRequest\x12?\n\x04name\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)dataproc.googleapis.com/AutoscalingPolicy\"\x94\x01\n\x1eListAutoscalingPoliciesRequest\x12\x41\n\x06parent\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\x12)dataproc.googleapis.com/AutoscalingPolicy\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\x83\x01\n\x1fListAutoscalingPoliciesResponse\x12\x42\n\x08policies\x18\x01 \x03(\x0b\x32+.google.cloud.dataproc.v1.AutoscalingPolicyB\x03\xe0\x41\x03\x12\x1c\n\x0fnext_page_token\x18\x02 \x01(\tB\x03\xe0\x41\x03\x32\xae\x0b\n\x18\x41utoscalingPolicyService\x12\x9c\x02\n\x17\x43reateAutoscalingPolicy\x12\x38.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest\x1a+.google.cloud.dataproc.v1.AutoscalingPolicy\"\x99\x01\xda\x41\rparent,policy\x82\xd3\xe4\x93\x02\x82\x01\"7/v1/{parent=projects/*/locations/*}/autoscalingPolicies:\x06policyZ?\"5/v1/{parent=projects/*/regions/*}/autoscalingPolicies:\x06policy\x12\xa3\x02\n\x17UpdateAutoscalingPolicy\x12\x38.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest\x1a+.google.cloud.dataproc.v1.AutoscalingPolicy\"\xa0\x01\xda\x41\x06policy\x82\xd3\xe4\x93\x02\x90\x01\x1a>/v1/{policy.name=projects/*/locations/*/autoscalingPolicies/*}:\x06policyZF\x1a</v1/{policy.name=projects/*/regions/*/autoscalingPolicies/*}:\x06policy\x12\xfb\x01\n\x14GetAutoscalingPolicy\x12\x35.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest\x1a+.google.cloud.dataproc.v1.AutoscalingPolicy\"\x7f\xda\x41\x04name\x82\xd3\xe4\x93\x02r\x12\x37/v1/{name=projects/*/locations/*/autoscalingPolicies/*}Z7\x12\x35/v1/{name=projects/*/regions/*/autoscalingPolicies/*}\x12\x92\x02\n\x17ListAutoscalingPolicies\x12\x38.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest\x1a\x39.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse\"\x81\x01\xda\x41\x06parent\x82\xd3\xe4\x93\x02r\x12\x37/v1/{parent=projects/*/locations/*}/autoscalingPoliciesZ7\x12\x35/v1/{parent=projects/*/regions/*}/autoscalingPolicies\x12\xec\x01\n\x17\x44\x65leteAutoscalingPolicy\x12\x38.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest\x1a\x16.google.protobuf.Empty\"\x7f\xda\x41\x04name\x82\xd3\xe4\x93\x02r*7/v1/{name=projects/*/locations/*/autoscalingPolicies/*}Z7*5/v1/{name=projects/*/regions/*/autoscalingPolicies/*}\x1aK\xca\x41\x17\x64\x61taproc.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xbf\x01\n\x1c\x63om.google.cloud.dataproc.v1B\x18\x41utoscalingPoliciesProtoP\x01Z;cloud.google.com/go/dataproc/v2/apiv1/dataprocpb;dataprocpb\xea\x41\x45\n\x1e\x64\x61taproc.googleapis.com/Region\x12#projects/{project}/regions/{region}b\x06proto3"
16
16
 
17
17
  pool = Google::Protobuf::DescriptorPool.generated_pool
18
18
 
@@ -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
 
@@ -261,10 +264,11 @@ module Google
261
264
  # Customize the options with defaults
262
265
  metadata = @config.rpcs.create_autoscaling_policy.metadata.to_h
263
266
 
264
- # Set x-goog-api-client and x-goog-user-project headers
267
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
265
268
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
266
269
  lib_name: @config.lib_name, lib_version: @config.lib_version,
267
270
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION
271
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
268
272
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
269
273
 
270
274
  header_params = {}
@@ -349,10 +353,11 @@ module Google
349
353
  # Customize the options with defaults
350
354
  metadata = @config.rpcs.update_autoscaling_policy.metadata.to_h
351
355
 
352
- # Set x-goog-api-client and x-goog-user-project headers
356
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
353
357
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
354
358
  lib_name: @config.lib_name, lib_version: @config.lib_version,
355
359
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION
360
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
356
361
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
357
362
 
358
363
  header_params = {}
@@ -443,10 +448,11 @@ module Google
443
448
  # Customize the options with defaults
444
449
  metadata = @config.rpcs.get_autoscaling_policy.metadata.to_h
445
450
 
446
- # Set x-goog-api-client and x-goog-user-project headers
451
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
447
452
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
448
453
  lib_name: @config.lib_name, lib_version: @config.lib_version,
449
454
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION
455
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
450
456
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
451
457
 
452
458
  header_params = {}
@@ -547,10 +553,11 @@ module Google
547
553
  # Customize the options with defaults
548
554
  metadata = @config.rpcs.list_autoscaling_policies.metadata.to_h
549
555
 
550
- # Set x-goog-api-client and x-goog-user-project headers
556
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
551
557
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
552
558
  lib_name: @config.lib_name, lib_version: @config.lib_version,
553
559
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION
560
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
554
561
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
555
562
 
556
563
  header_params = {}
@@ -643,10 +650,11 @@ module Google
643
650
  # Customize the options with defaults
644
651
  metadata = @config.rpcs.delete_autoscaling_policy.metadata.to_h
645
652
 
646
- # Set x-goog-api-client and x-goog-user-project headers
653
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
647
654
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
648
655
  lib_name: @config.lib_name, lib_version: @config.lib_version,
649
656
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION
657
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
650
658
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
651
659
 
652
660
  header_params = {}
@@ -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
 
@@ -254,12 +257,13 @@ module Google
254
257
  # Customize the options with defaults
255
258
  call_metadata = @config.rpcs.create_autoscaling_policy.metadata.to_h
256
259
 
257
- # Set x-goog-api-client and x-goog-user-project headers
260
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
258
261
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
259
262
  lib_name: @config.lib_name, lib_version: @config.lib_version,
260
263
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION,
261
264
  transports_version_send: [:rest]
262
265
 
266
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
263
267
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
264
268
 
265
269
  options.apply_defaults timeout: @config.rpcs.create_autoscaling_policy.timeout,
@@ -335,12 +339,13 @@ module Google
335
339
  # Customize the options with defaults
336
340
  call_metadata = @config.rpcs.update_autoscaling_policy.metadata.to_h
337
341
 
338
- # Set x-goog-api-client and x-goog-user-project headers
342
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
339
343
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
340
344
  lib_name: @config.lib_name, lib_version: @config.lib_version,
341
345
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION,
342
346
  transports_version_send: [:rest]
343
347
 
348
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
344
349
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
345
350
 
346
351
  options.apply_defaults timeout: @config.rpcs.update_autoscaling_policy.timeout,
@@ -422,12 +427,13 @@ module Google
422
427
  # Customize the options with defaults
423
428
  call_metadata = @config.rpcs.get_autoscaling_policy.metadata.to_h
424
429
 
425
- # Set x-goog-api-client and x-goog-user-project headers
430
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
426
431
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
427
432
  lib_name: @config.lib_name, lib_version: @config.lib_version,
428
433
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION,
429
434
  transports_version_send: [:rest]
430
435
 
436
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
431
437
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
432
438
 
433
439
  options.apply_defaults timeout: @config.rpcs.get_autoscaling_policy.timeout,
@@ -519,12 +525,13 @@ module Google
519
525
  # Customize the options with defaults
520
526
  call_metadata = @config.rpcs.list_autoscaling_policies.metadata.to_h
521
527
 
522
- # Set x-goog-api-client and x-goog-user-project headers
528
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
523
529
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
524
530
  lib_name: @config.lib_name, lib_version: @config.lib_version,
525
531
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION,
526
532
  transports_version_send: [:rest]
527
533
 
534
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
528
535
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
529
536
 
530
537
  options.apply_defaults timeout: @config.rpcs.list_autoscaling_policies.timeout,
@@ -608,12 +615,13 @@ module Google
608
615
  # Customize the options with defaults
609
616
  call_metadata = @config.rpcs.delete_autoscaling_policy.metadata.to_h
610
617
 
611
- # Set x-goog-api-client and x-goog-user-project headers
618
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
612
619
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
613
620
  lib_name: @config.lib_name, lib_version: @config.lib_version,
614
621
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION,
615
622
  transports_version_send: [:rest]
616
623
 
624
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
617
625
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
618
626
 
619
627
  options.apply_defaults timeout: @config.rpcs.delete_autoscaling_policy.timeout,
@@ -31,6 +31,9 @@ module Google
31
31
  # The BatchController provides methods to manage batch workloads.
32
32
  #
33
33
  class Client
34
+ # @private
35
+ API_VERSION = ""
36
+
34
37
  # @private
35
38
  DEFAULT_ENDPOINT_TEMPLATE = "dataproc.$UNIVERSE_DOMAIN$"
36
39
 
@@ -271,10 +274,11 @@ module Google
271
274
  # Customize the options with defaults
272
275
  metadata = @config.rpcs.create_batch.metadata.to_h
273
276
 
274
- # Set x-goog-api-client and x-goog-user-project headers
277
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
275
278
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
276
279
  lib_name: @config.lib_name, lib_version: @config.lib_version,
277
280
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION
281
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
278
282
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
279
283
 
280
284
  header_params = {}
@@ -359,10 +363,11 @@ module Google
359
363
  # Customize the options with defaults
360
364
  metadata = @config.rpcs.get_batch.metadata.to_h
361
365
 
362
- # Set x-goog-api-client and x-goog-user-project headers
366
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
363
367
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
364
368
  lib_name: @config.lib_name, lib_version: @config.lib_version,
365
369
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION
370
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
366
371
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
367
372
 
368
373
  header_params = {}
@@ -475,10 +480,11 @@ module Google
475
480
  # Customize the options with defaults
476
481
  metadata = @config.rpcs.list_batches.metadata.to_h
477
482
 
478
- # 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
479
484
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
480
485
  lib_name: @config.lib_name, lib_version: @config.lib_version,
481
486
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION
487
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
482
488
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
483
489
 
484
490
  header_params = {}
@@ -564,10 +570,11 @@ module Google
564
570
  # Customize the options with defaults
565
571
  metadata = @config.rpcs.delete_batch.metadata.to_h
566
572
 
567
- # Set x-goog-api-client and x-goog-user-project headers
573
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
568
574
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
569
575
  lib_name: @config.lib_name, lib_version: @config.lib_version,
570
576
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION
577
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
571
578
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
572
579
 
573
580
  header_params = {}
@@ -26,6 +26,9 @@ module Google
26
26
  module BatchController
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,
@@ -33,6 +33,9 @@ module Google
33
33
  # The BatchController provides methods to manage batch workloads.
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
 
@@ -264,12 +267,13 @@ module Google
264
267
  # Customize the options with defaults
265
268
  call_metadata = @config.rpcs.create_batch.metadata.to_h
266
269
 
267
- # Set x-goog-api-client and x-goog-user-project headers
270
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
268
271
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
269
272
  lib_name: @config.lib_name, lib_version: @config.lib_version,
270
273
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION,
271
274
  transports_version_send: [:rest]
272
275
 
276
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
273
277
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
274
278
 
275
279
  options.apply_defaults timeout: @config.rpcs.create_batch.timeout,
@@ -345,12 +349,13 @@ module Google
345
349
  # Customize the options with defaults
346
350
  call_metadata = @config.rpcs.get_batch.metadata.to_h
347
351
 
348
- # Set x-goog-api-client and x-goog-user-project headers
352
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
349
353
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
350
354
  lib_name: @config.lib_name, lib_version: @config.lib_version,
351
355
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION,
352
356
  transports_version_send: [:rest]
353
357
 
358
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
354
359
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
355
360
 
356
361
  options.apply_defaults timeout: @config.rpcs.get_batch.timeout,
@@ -454,12 +459,13 @@ module Google
454
459
  # Customize the options with defaults
455
460
  call_metadata = @config.rpcs.list_batches.metadata.to_h
456
461
 
457
- # Set x-goog-api-client and x-goog-user-project headers
462
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
458
463
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
459
464
  lib_name: @config.lib_name, lib_version: @config.lib_version,
460
465
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION,
461
466
  transports_version_send: [:rest]
462
467
 
468
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
463
469
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
464
470
 
465
471
  options.apply_defaults timeout: @config.rpcs.list_batches.timeout,
@@ -536,12 +542,13 @@ module Google
536
542
  # Customize the options with defaults
537
543
  call_metadata = @config.rpcs.delete_batch.metadata.to_h
538
544
 
539
- # Set x-goog-api-client and x-goog-user-project headers
545
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
540
546
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
541
547
  lib_name: @config.lib_name, lib_version: @config.lib_version,
542
548
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION,
543
549
  transports_version_send: [:rest]
544
550
 
551
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
545
552
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
546
553
 
547
554
  options.apply_defaults timeout: @config.rpcs.delete_batch.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,
@@ -14,7 +14,7 @@ require 'google/protobuf/empty_pb'
14
14
  require 'google/protobuf/timestamp_pb'
15
15
 
16
16
 
17
- descriptor_data = "\n&google/cloud/dataproc/v1/batches.proto\x12\x18google.cloud.dataproc.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a%google/cloud/dataproc/v1/shared.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xb4\x01\n\x12\x43reateBatchRequest\x12\x36\n\x06parent\x18\x01 \x01(\tB&\xe2\x41\x01\x02\xfa\x41\x1f\x12\x1d\x64\x61taproc.googleapis.com/Batch\x12\x34\n\x05\x62\x61tch\x18\x02 \x01(\x0b\x32\x1f.google.cloud.dataproc.v1.BatchB\x04\xe2\x41\x01\x02\x12\x16\n\x08\x62\x61tch_id\x18\x03 \x01(\tB\x04\xe2\x41\x01\x01\x12\x18\n\nrequest_id\x18\x04 \x01(\tB\x04\xe2\x41\x01\x01\"G\n\x0fGetBatchRequest\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe2\x41\x01\x02\xfa\x41\x1f\n\x1d\x64\x61taproc.googleapis.com/Batch\"\xad\x01\n\x12ListBatchesRequest\x12\x36\n\x06parent\x18\x01 \x01(\tB&\xe2\x41\x01\x02\xfa\x41\x1f\x12\x1d\x64\x61taproc.googleapis.com/Batch\x12\x17\n\tpage_size\x18\x02 \x01(\x05\x42\x04\xe2\x41\x01\x01\x12\x18\n\npage_token\x18\x03 \x01(\tB\x04\xe2\x41\x01\x01\x12\x14\n\x06\x66ilter\x18\x04 \x01(\tB\x04\xe2\x41\x01\x01\x12\x16\n\x08order_by\x18\x05 \x01(\tB\x04\xe2\x41\x01\x01\"`\n\x13ListBatchesResponse\x12\x30\n\x07\x62\x61tches\x18\x01 \x03(\x0b\x32\x1f.google.cloud.dataproc.v1.Batch\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"J\n\x12\x44\x65leteBatchRequest\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe2\x41\x01\x02\xfa\x41\x1f\n\x1d\x64\x61taproc.googleapis.com/Batch\"\xdc\n\n\x05\x42\x61tch\x12\x12\n\x04name\x18\x01 \x01(\tB\x04\xe2\x41\x01\x03\x12\x12\n\x04uuid\x18\x02 \x01(\tB\x04\xe2\x41\x01\x03\x12\x35\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x04\xe2\x41\x01\x03\x12\x45\n\rpyspark_batch\x18\x04 \x01(\x0b\x32&.google.cloud.dataproc.v1.PySparkBatchB\x04\xe2\x41\x01\x01H\x00\x12\x41\n\x0bspark_batch\x18\x05 \x01(\x0b\x32$.google.cloud.dataproc.v1.SparkBatchB\x04\xe2\x41\x01\x01H\x00\x12\x44\n\rspark_r_batch\x18\x06 \x01(\x0b\x32%.google.cloud.dataproc.v1.SparkRBatchB\x04\xe2\x41\x01\x01H\x00\x12H\n\x0fspark_sql_batch\x18\x07 \x01(\x0b\x32\'.google.cloud.dataproc.v1.SparkSqlBatchB\x04\xe2\x41\x01\x01H\x00\x12\x41\n\x0cruntime_info\x18\x08 \x01(\x0b\x32%.google.cloud.dataproc.v1.RuntimeInfoB\x04\xe2\x41\x01\x03\x12:\n\x05state\x18\t \x01(\x0e\x32%.google.cloud.dataproc.v1.Batch.StateB\x04\xe2\x41\x01\x03\x12\x1b\n\rstate_message\x18\n \x01(\tB\x04\xe2\x41\x01\x03\x12\x34\n\nstate_time\x18\x0b \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x04\xe2\x41\x01\x03\x12\x15\n\x07\x63reator\x18\x0c \x01(\tB\x04\xe2\x41\x01\x03\x12\x41\n\x06labels\x18\r \x03(\x0b\x32+.google.cloud.dataproc.v1.Batch.LabelsEntryB\x04\xe2\x41\x01\x01\x12\x45\n\x0eruntime_config\x18\x0e \x01(\x0b\x32\'.google.cloud.dataproc.v1.RuntimeConfigB\x04\xe2\x41\x01\x01\x12M\n\x12\x65nvironment_config\x18\x0f \x01(\x0b\x32+.google.cloud.dataproc.v1.EnvironmentConfigB\x04\xe2\x41\x01\x01\x12\x17\n\toperation\x18\x10 \x01(\tB\x04\xe2\x41\x01\x03\x12I\n\rstate_history\x18\x11 \x03(\x0b\x32,.google.cloud.dataproc.v1.Batch.StateHistoryB\x04\xe2\x41\x01\x03\x1a\xa3\x01\n\x0cStateHistory\x12:\n\x05state\x18\x01 \x01(\x0e\x32%.google.cloud.dataproc.v1.Batch.StateB\x04\xe2\x41\x01\x03\x12\x1b\n\rstate_message\x18\x02 \x01(\tB\x04\xe2\x41\x01\x03\x12:\n\x10state_start_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x04\xe2\x41\x01\x03\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"r\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07PENDING\x10\x01\x12\x0b\n\x07RUNNING\x10\x02\x12\x0e\n\nCANCELLING\x10\x03\x12\r\n\tCANCELLED\x10\x04\x12\r\n\tSUCCEEDED\x10\x05\x12\n\n\x06\x46\x41ILED\x10\x06:[\xea\x41X\n\x1d\x64\x61taproc.googleapis.com/Batch\x12\x37projects/{project}/locations/{location}/batches/{batch}B\x0e\n\x0c\x62\x61tch_config\"\xb8\x01\n\x0cPySparkBatch\x12\"\n\x14main_python_file_uri\x18\x01 \x01(\tB\x04\xe2\x41\x01\x02\x12\x12\n\x04\x61rgs\x18\x02 \x03(\tB\x04\xe2\x41\x01\x01\x12\x1e\n\x10python_file_uris\x18\x03 \x03(\tB\x04\xe2\x41\x01\x01\x12\x1b\n\rjar_file_uris\x18\x04 \x03(\tB\x04\xe2\x41\x01\x01\x12\x17\n\tfile_uris\x18\x05 \x03(\tB\x04\xe2\x41\x01\x01\x12\x1a\n\x0c\x61rchive_uris\x18\x06 \x03(\tB\x04\xe2\x41\x01\x01\"\xbb\x01\n\nSparkBatch\x12!\n\x11main_jar_file_uri\x18\x01 \x01(\tB\x04\xe2\x41\x01\x01H\x00\x12\x1a\n\nmain_class\x18\x02 \x01(\tB\x04\xe2\x41\x01\x01H\x00\x12\x12\n\x04\x61rgs\x18\x03 \x03(\tB\x04\xe2\x41\x01\x01\x12\x1b\n\rjar_file_uris\x18\x04 \x03(\tB\x04\xe2\x41\x01\x01\x12\x17\n\tfile_uris\x18\x05 \x03(\tB\x04\xe2\x41\x01\x01\x12\x1a\n\x0c\x61rchive_uris\x18\x06 \x03(\tB\x04\xe2\x41\x01\x01\x42\x08\n\x06\x64river\"u\n\x0bSparkRBatch\x12\x1d\n\x0fmain_r_file_uri\x18\x01 \x01(\tB\x04\xe2\x41\x01\x02\x12\x12\n\x04\x61rgs\x18\x02 \x03(\tB\x04\xe2\x41\x01\x01\x12\x17\n\tfile_uris\x18\x03 \x03(\tB\x04\xe2\x41\x01\x01\x12\x1a\n\x0c\x61rchive_uris\x18\x04 \x03(\tB\x04\xe2\x41\x01\x01\"\xdd\x01\n\rSparkSqlBatch\x12\x1c\n\x0equery_file_uri\x18\x01 \x01(\tB\x04\xe2\x41\x01\x02\x12Z\n\x0fquery_variables\x18\x02 \x03(\x0b\x32;.google.cloud.dataproc.v1.SparkSqlBatch.QueryVariablesEntryB\x04\xe2\x41\x01\x01\x12\x1b\n\rjar_file_uris\x18\x03 \x03(\tB\x04\xe2\x41\x01\x01\x1a\x35\n\x13QueryVariablesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x32\x9d\x06\n\x0f\x42\x61tchController\x12\xea\x01\n\x0b\x43reateBatch\x12,.google.cloud.dataproc.v1.CreateBatchRequest\x1a\x1d.google.longrunning.Operation\"\x8d\x01\xca\x41\x38\n\x05\x42\x61tch\x12/google.cloud.dataproc.v1.BatchOperationMetadata\xda\x41\x15parent,batch,batch_id\x82\xd3\xe4\x93\x02\x34\"+/v1/{parent=projects/*/locations/*}/batches:\x05\x62\x61tch\x12\x92\x01\n\x08GetBatch\x12).google.cloud.dataproc.v1.GetBatchRequest\x1a\x1f.google.cloud.dataproc.v1.Batch\":\xda\x41\x04name\x82\xd3\xe4\x93\x02-\x12+/v1/{name=projects/*/locations/*/batches/*}\x12\xa8\x01\n\x0bListBatches\x12,.google.cloud.dataproc.v1.ListBatchesRequest\x1a-.google.cloud.dataproc.v1.ListBatchesResponse\"<\xda\x41\x06parent\x82\xd3\xe4\x93\x02-\x12+/v1/{parent=projects/*/locations/*}/batches\x12\x8f\x01\n\x0b\x44\x65leteBatch\x12,.google.cloud.dataproc.v1.DeleteBatchRequest\x1a\x16.google.protobuf.Empty\":\xda\x41\x04name\x82\xd3\xe4\x93\x02-*+/v1/{name=projects/*/locations/*/batches/*}\x1aK\xca\x41\x17\x64\x61taproc.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformBk\n\x1c\x63om.google.cloud.dataproc.v1B\x0c\x42\x61tchesProtoP\x01Z;cloud.google.com/go/dataproc/v2/apiv1/dataprocpb;dataprocpbb\x06proto3"
17
+ descriptor_data = "\n&google/cloud/dataproc/v1/batches.proto\x12\x18google.cloud.dataproc.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a%google/cloud/dataproc/v1/shared.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xb0\x01\n\x12\x43reateBatchRequest\x12\x35\n\x06parent\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\x12\x1d\x64\x61taproc.googleapis.com/Batch\x12\x33\n\x05\x62\x61tch\x18\x02 \x01(\x0b\x32\x1f.google.cloud.dataproc.v1.BatchB\x03\xe0\x41\x02\x12\x15\n\x08\x62\x61tch_id\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x17\n\nrequest_id\x18\x04 \x01(\tB\x03\xe0\x41\x01\"F\n\x0fGetBatchRequest\x12\x33\n\x04name\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1d\x64\x61taproc.googleapis.com/Batch\"\xa8\x01\n\x12ListBatchesRequest\x12\x35\n\x06parent\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\x12\x1d\x64\x61taproc.googleapis.com/Batch\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\"`\n\x13ListBatchesResponse\x12\x30\n\x07\x62\x61tches\x18\x01 \x03(\x0b\x32\x1f.google.cloud.dataproc.v1.Batch\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"I\n\x12\x44\x65leteBatchRequest\x12\x33\n\x04name\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1d\x64\x61taproc.googleapis.com/Batch\"\xc8\n\n\x05\x42\x61tch\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x11\n\x04uuid\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x44\n\rpyspark_batch\x18\x04 \x01(\x0b\x32&.google.cloud.dataproc.v1.PySparkBatchB\x03\xe0\x41\x01H\x00\x12@\n\x0bspark_batch\x18\x05 \x01(\x0b\x32$.google.cloud.dataproc.v1.SparkBatchB\x03\xe0\x41\x01H\x00\x12\x43\n\rspark_r_batch\x18\x06 \x01(\x0b\x32%.google.cloud.dataproc.v1.SparkRBatchB\x03\xe0\x41\x01H\x00\x12G\n\x0fspark_sql_batch\x18\x07 \x01(\x0b\x32\'.google.cloud.dataproc.v1.SparkSqlBatchB\x03\xe0\x41\x01H\x00\x12@\n\x0cruntime_info\x18\x08 \x01(\x0b\x32%.google.cloud.dataproc.v1.RuntimeInfoB\x03\xe0\x41\x03\x12\x39\n\x05state\x18\t \x01(\x0e\x32%.google.cloud.dataproc.v1.Batch.StateB\x03\xe0\x41\x03\x12\x1a\n\rstate_message\x18\n \x01(\tB\x03\xe0\x41\x03\x12\x33\n\nstate_time\x18\x0b \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x14\n\x07\x63reator\x18\x0c \x01(\tB\x03\xe0\x41\x03\x12@\n\x06labels\x18\r \x03(\x0b\x32+.google.cloud.dataproc.v1.Batch.LabelsEntryB\x03\xe0\x41\x01\x12\x44\n\x0eruntime_config\x18\x0e \x01(\x0b\x32\'.google.cloud.dataproc.v1.RuntimeConfigB\x03\xe0\x41\x01\x12L\n\x12\x65nvironment_config\x18\x0f \x01(\x0b\x32+.google.cloud.dataproc.v1.EnvironmentConfigB\x03\xe0\x41\x01\x12\x16\n\toperation\x18\x10 \x01(\tB\x03\xe0\x41\x03\x12H\n\rstate_history\x18\x11 \x03(\x0b\x32,.google.cloud.dataproc.v1.Batch.StateHistoryB\x03\xe0\x41\x03\x1a\xa0\x01\n\x0cStateHistory\x12\x39\n\x05state\x18\x01 \x01(\x0e\x32%.google.cloud.dataproc.v1.Batch.StateB\x03\xe0\x41\x03\x12\x1a\n\rstate_message\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x39\n\x10state_start_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"r\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07PENDING\x10\x01\x12\x0b\n\x07RUNNING\x10\x02\x12\x0e\n\nCANCELLING\x10\x03\x12\r\n\tCANCELLED\x10\x04\x12\r\n\tSUCCEEDED\x10\x05\x12\n\n\x06\x46\x41ILED\x10\x06:[\xea\x41X\n\x1d\x64\x61taproc.googleapis.com/Batch\x12\x37projects/{project}/locations/{location}/batches/{batch}B\x0e\n\x0c\x62\x61tch_config\"\xb2\x01\n\x0cPySparkBatch\x12!\n\x14main_python_file_uri\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x11\n\x04\x61rgs\x18\x02 \x03(\tB\x03\xe0\x41\x01\x12\x1d\n\x10python_file_uris\x18\x03 \x03(\tB\x03\xe0\x41\x01\x12\x1a\n\rjar_file_uris\x18\x04 \x03(\tB\x03\xe0\x41\x01\x12\x16\n\tfile_uris\x18\x05 \x03(\tB\x03\xe0\x41\x01\x12\x19\n\x0c\x61rchive_uris\x18\x06 \x03(\tB\x03\xe0\x41\x01\"\xb5\x01\n\nSparkBatch\x12 \n\x11main_jar_file_uri\x18\x01 \x01(\tB\x03\xe0\x41\x01H\x00\x12\x19\n\nmain_class\x18\x02 \x01(\tB\x03\xe0\x41\x01H\x00\x12\x11\n\x04\x61rgs\x18\x03 \x03(\tB\x03\xe0\x41\x01\x12\x1a\n\rjar_file_uris\x18\x04 \x03(\tB\x03\xe0\x41\x01\x12\x16\n\tfile_uris\x18\x05 \x03(\tB\x03\xe0\x41\x01\x12\x19\n\x0c\x61rchive_uris\x18\x06 \x03(\tB\x03\xe0\x41\x01\x42\x08\n\x06\x64river\"q\n\x0bSparkRBatch\x12\x1c\n\x0fmain_r_file_uri\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x11\n\x04\x61rgs\x18\x02 \x03(\tB\x03\xe0\x41\x01\x12\x16\n\tfile_uris\x18\x03 \x03(\tB\x03\xe0\x41\x01\x12\x19\n\x0c\x61rchive_uris\x18\x04 \x03(\tB\x03\xe0\x41\x01\"\xda\x01\n\rSparkSqlBatch\x12\x1b\n\x0equery_file_uri\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12Y\n\x0fquery_variables\x18\x02 \x03(\x0b\x32;.google.cloud.dataproc.v1.SparkSqlBatch.QueryVariablesEntryB\x03\xe0\x41\x01\x12\x1a\n\rjar_file_uris\x18\x03 \x03(\tB\x03\xe0\x41\x01\x1a\x35\n\x13QueryVariablesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x32\x9d\x06\n\x0f\x42\x61tchController\x12\xea\x01\n\x0b\x43reateBatch\x12,.google.cloud.dataproc.v1.CreateBatchRequest\x1a\x1d.google.longrunning.Operation\"\x8d\x01\xca\x41\x38\n\x05\x42\x61tch\x12/google.cloud.dataproc.v1.BatchOperationMetadata\xda\x41\x15parent,batch,batch_id\x82\xd3\xe4\x93\x02\x34\"+/v1/{parent=projects/*/locations/*}/batches:\x05\x62\x61tch\x12\x92\x01\n\x08GetBatch\x12).google.cloud.dataproc.v1.GetBatchRequest\x1a\x1f.google.cloud.dataproc.v1.Batch\":\xda\x41\x04name\x82\xd3\xe4\x93\x02-\x12+/v1/{name=projects/*/locations/*/batches/*}\x12\xa8\x01\n\x0bListBatches\x12,.google.cloud.dataproc.v1.ListBatchesRequest\x1a-.google.cloud.dataproc.v1.ListBatchesResponse\"<\xda\x41\x06parent\x82\xd3\xe4\x93\x02-\x12+/v1/{parent=projects/*/locations/*}/batches\x12\x8f\x01\n\x0b\x44\x65leteBatch\x12,.google.cloud.dataproc.v1.DeleteBatchRequest\x1a\x16.google.protobuf.Empty\":\xda\x41\x04name\x82\xd3\xe4\x93\x02-*+/v1/{name=projects/*/locations/*/batches/*}\x1aK\xca\x41\x17\x64\x61taproc.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformBk\n\x1c\x63om.google.cloud.dataproc.v1B\x0c\x42\x61tchesProtoP\x01Z;cloud.google.com/go/dataproc/v2/apiv1/dataprocpb;dataprocpbb\x06proto3"
18
18
 
19
19
  pool = Google::Protobuf::DescriptorPool.generated_pool
20
20