google-cloud-dataproc-v1 0.17.0 → 0.18.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/google/cloud/dataproc/v1/autoscaling_policies_pb.rb +25 -51
  4. data/lib/google/cloud/dataproc/v1/autoscaling_policy_service/client.rb +6 -4
  5. data/lib/google/cloud/dataproc/v1/autoscaling_policy_service/rest/client.rb +6 -4
  6. data/lib/google/cloud/dataproc/v1/autoscaling_policy_service/rest/service_stub.rb +5 -5
  7. data/lib/google/cloud/dataproc/v1/batch_controller/client.rb +6 -4
  8. data/lib/google/cloud/dataproc/v1/batch_controller/operations.rb +5 -3
  9. data/lib/google/cloud/dataproc/v1/batch_controller/rest/client.rb +6 -4
  10. data/lib/google/cloud/dataproc/v1/batch_controller/rest/operations.rb +9 -7
  11. data/lib/google/cloud/dataproc/v1/batch_controller/rest/service_stub.rb +4 -4
  12. data/lib/google/cloud/dataproc/v1/batches_pb.rb +26 -88
  13. data/lib/google/cloud/dataproc/v1/cluster_controller/client.rb +6 -4
  14. data/lib/google/cloud/dataproc/v1/cluster_controller/operations.rb +5 -3
  15. data/lib/google/cloud/dataproc/v1/cluster_controller/rest/client.rb +6 -4
  16. data/lib/google/cloud/dataproc/v1/cluster_controller/rest/operations.rb +9 -7
  17. data/lib/google/cloud/dataproc/v1/cluster_controller/rest/service_stub.rb +8 -8
  18. data/lib/google/cloud/dataproc/v1/clusters_pb.rb +28 -289
  19. data/lib/google/cloud/dataproc/v1/job_controller/client.rb +6 -4
  20. data/lib/google/cloud/dataproc/v1/job_controller/operations.rb +5 -3
  21. data/lib/google/cloud/dataproc/v1/job_controller/rest/client.rb +6 -4
  22. data/lib/google/cloud/dataproc/v1/job_controller/rest/operations.rb +9 -7
  23. data/lib/google/cloud/dataproc/v1/job_controller/rest/service_stub.rb +7 -7
  24. data/lib/google/cloud/dataproc/v1/jobs_pb.rb +26 -248
  25. data/lib/google/cloud/dataproc/v1/node_group_controller/client.rb +6 -4
  26. data/lib/google/cloud/dataproc/v1/node_group_controller/operations.rb +5 -3
  27. data/lib/google/cloud/dataproc/v1/node_group_controller/rest/client.rb +6 -4
  28. data/lib/google/cloud/dataproc/v1/node_group_controller/rest/operations.rb +9 -7
  29. data/lib/google/cloud/dataproc/v1/node_group_controller/rest/service_stub.rb +3 -3
  30. data/lib/google/cloud/dataproc/v1/node_groups_pb.rb +26 -16
  31. data/lib/google/cloud/dataproc/v1/operations_pb.rb +25 -55
  32. data/lib/google/cloud/dataproc/v1/shared_pb.rb +26 -116
  33. data/lib/google/cloud/dataproc/v1/version.rb +1 -1
  34. data/lib/google/cloud/dataproc/v1/workflow_template_service/client.rb +6 -4
  35. data/lib/google/cloud/dataproc/v1/workflow_template_service/operations.rb +5 -3
  36. data/lib/google/cloud/dataproc/v1/workflow_template_service/rest/client.rb +6 -4
  37. data/lib/google/cloud/dataproc/v1/workflow_template_service/rest/operations.rb +9 -7
  38. data/lib/google/cloud/dataproc/v1/workflow_template_service/rest/service_stub.rb +7 -7
  39. data/lib/google/cloud/dataproc/v1/workflow_templates_pb.rb +28 -142
  40. data/proto_docs/google/api/client.rb +67 -4
  41. data/proto_docs/google/protobuf/any.rb +7 -4
  42. data/proto_docs/google/protobuf/timestamp.rb +1 -3
  43. metadata +4 -4
@@ -151,7 +151,7 @@ module Google
151
151
  credentials = @config.credentials
152
152
  # Use self-signed JWT if the endpoint is unchanged from default,
153
153
  # but only if the default endpoint does not have a region prefix.
154
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
154
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
155
155
  !@config.endpoint.split(".").first.include?("-")
156
156
  credentials ||= Credentials.default scope: @config.scope,
157
157
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -952,9 +952,9 @@ module Google
952
952
  # * (`String`) The path to a service account key file in JSON format
953
953
  # * (`Hash`) A service account key as a Hash
954
954
  # * (`Google::Auth::Credentials`) A googleauth credentials object
955
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
955
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
956
956
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
957
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
957
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
958
958
  # * (`nil`) indicating no credentials
959
959
  # @return [::Object]
960
960
  # @!attribute [rw] scope
@@ -987,7 +987,9 @@ module Google
987
987
  class Configuration
988
988
  extend ::Gapic::Config
989
989
 
990
- config_attr :endpoint, "dataproc.googleapis.com", ::String
990
+ DEFAULT_ENDPOINT = "dataproc.googleapis.com"
991
+
992
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
991
993
  config_attr :credentials, nil do |value|
992
994
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
993
995
  allowed.any? { |klass| klass === value }
@@ -411,9 +411,9 @@ module Google
411
411
  # * (`String`) The path to a service account key file in JSON format
412
412
  # * (`Hash`) A service account key as a Hash
413
413
  # * (`Google::Auth::Credentials`) A googleauth credentials object
414
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
414
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
415
415
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
416
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
416
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
417
417
  # * (`nil`) indicating no credentials
418
418
  # @return [::Object]
419
419
  # @!attribute [rw] scope
@@ -446,7 +446,9 @@ module Google
446
446
  class Configuration
447
447
  extend ::Gapic::Config
448
448
 
449
- config_attr :endpoint, "dataproc.googleapis.com", ::String
449
+ DEFAULT_ENDPOINT = "dataproc.googleapis.com"
450
+
451
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
450
452
  config_attr :credentials, nil do |value|
451
453
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
452
454
  allowed.any? { |klass| klass === value }
@@ -567,7 +569,7 @@ module Google
567
569
 
568
570
  verb, uri, query_string_params, body = OperationsServiceStub.transcode_list_operations_request request_pb
569
571
  query_string_params = if query_string_params.any?
570
- query_string_params.to_h { |p| p.split("=", 2) }
572
+ query_string_params.to_h { |p| p.split "=", 2 }
571
573
  else
572
574
  {}
573
575
  end
@@ -605,7 +607,7 @@ module Google
605
607
 
606
608
  verb, uri, query_string_params, body = OperationsServiceStub.transcode_get_operation_request request_pb
607
609
  query_string_params = if query_string_params.any?
608
- query_string_params.to_h { |p| p.split("=", 2) }
610
+ query_string_params.to_h { |p| p.split "=", 2 }
609
611
  else
610
612
  {}
611
613
  end
@@ -643,7 +645,7 @@ module Google
643
645
 
644
646
  verb, uri, query_string_params, body = OperationsServiceStub.transcode_delete_operation_request request_pb
645
647
  query_string_params = if query_string_params.any?
646
- query_string_params.to_h { |p| p.split("=", 2) }
648
+ query_string_params.to_h { |p| p.split "=", 2 }
647
649
  else
648
650
  {}
649
651
  end
@@ -681,7 +683,7 @@ module Google
681
683
 
682
684
  verb, uri, query_string_params, body = OperationsServiceStub.transcode_cancel_operation_request request_pb
683
685
  query_string_params = if query_string_params.any?
684
- query_string_params.to_h { |p| p.split("=", 2) }
686
+ query_string_params.to_h { |p| p.split "=", 2 }
685
687
  else
686
688
  {}
687
689
  end
@@ -59,7 +59,7 @@ module Google
59
59
 
60
60
  verb, uri, query_string_params, body = ServiceStub.transcode_create_cluster_request request_pb
61
61
  query_string_params = if query_string_params.any?
62
- query_string_params.to_h { |p| p.split("=", 2) }
62
+ query_string_params.to_h { |p| p.split "=", 2 }
63
63
  else
64
64
  {}
65
65
  end
@@ -97,7 +97,7 @@ module Google
97
97
 
98
98
  verb, uri, query_string_params, body = ServiceStub.transcode_update_cluster_request request_pb
99
99
  query_string_params = if query_string_params.any?
100
- query_string_params.to_h { |p| p.split("=", 2) }
100
+ query_string_params.to_h { |p| p.split "=", 2 }
101
101
  else
102
102
  {}
103
103
  end
@@ -135,7 +135,7 @@ module Google
135
135
 
136
136
  verb, uri, query_string_params, body = ServiceStub.transcode_stop_cluster_request request_pb
137
137
  query_string_params = if query_string_params.any?
138
- query_string_params.to_h { |p| p.split("=", 2) }
138
+ query_string_params.to_h { |p| p.split "=", 2 }
139
139
  else
140
140
  {}
141
141
  end
@@ -173,7 +173,7 @@ module Google
173
173
 
174
174
  verb, uri, query_string_params, body = ServiceStub.transcode_start_cluster_request request_pb
175
175
  query_string_params = if query_string_params.any?
176
- query_string_params.to_h { |p| p.split("=", 2) }
176
+ query_string_params.to_h { |p| p.split "=", 2 }
177
177
  else
178
178
  {}
179
179
  end
@@ -211,7 +211,7 @@ module Google
211
211
 
212
212
  verb, uri, query_string_params, body = ServiceStub.transcode_delete_cluster_request request_pb
213
213
  query_string_params = if query_string_params.any?
214
- query_string_params.to_h { |p| p.split("=", 2) }
214
+ query_string_params.to_h { |p| p.split "=", 2 }
215
215
  else
216
216
  {}
217
217
  end
@@ -249,7 +249,7 @@ module Google
249
249
 
250
250
  verb, uri, query_string_params, body = ServiceStub.transcode_get_cluster_request request_pb
251
251
  query_string_params = if query_string_params.any?
252
- query_string_params.to_h { |p| p.split("=", 2) }
252
+ query_string_params.to_h { |p| p.split "=", 2 }
253
253
  else
254
254
  {}
255
255
  end
@@ -287,7 +287,7 @@ module Google
287
287
 
288
288
  verb, uri, query_string_params, body = ServiceStub.transcode_list_clusters_request request_pb
289
289
  query_string_params = if query_string_params.any?
290
- query_string_params.to_h { |p| p.split("=", 2) }
290
+ query_string_params.to_h { |p| p.split "=", 2 }
291
291
  else
292
292
  {}
293
293
  end
@@ -325,7 +325,7 @@ module Google
325
325
 
326
326
  verb, uri, query_string_params, body = ServiceStub.transcode_diagnose_cluster_request request_pb
327
327
  query_string_params = if query_string_params.any?
328
- query_string_params.to_h { |p| p.split("=", 2) }
328
+ query_string_params.to_h { |p| p.split "=", 2 }
329
329
  else
330
330
  {}
331
331
  end
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/cloud/dataproc/v1/clusters.proto
3
4
 
@@ -13,297 +14,35 @@ require 'google/protobuf/duration_pb'
13
14
  require 'google/protobuf/field_mask_pb'
14
15
  require 'google/protobuf/timestamp_pb'
15
16
 
16
- Google::Protobuf::DescriptorPool.generated_pool.build do
17
- add_file("google/cloud/dataproc/v1/clusters.proto", :syntax => :proto3) do
18
- add_message "google.cloud.dataproc.v1.Cluster" do
19
- optional :project_id, :string, 1
20
- optional :cluster_name, :string, 2
21
- optional :config, :message, 3, "google.cloud.dataproc.v1.ClusterConfig"
22
- optional :virtual_cluster_config, :message, 10, "google.cloud.dataproc.v1.VirtualClusterConfig"
23
- map :labels, :string, :string, 8
24
- optional :status, :message, 4, "google.cloud.dataproc.v1.ClusterStatus"
25
- repeated :status_history, :message, 7, "google.cloud.dataproc.v1.ClusterStatus"
26
- optional :cluster_uuid, :string, 6
27
- optional :metrics, :message, 9, "google.cloud.dataproc.v1.ClusterMetrics"
28
- end
29
- add_message "google.cloud.dataproc.v1.ClusterConfig" do
30
- optional :config_bucket, :string, 1
31
- optional :temp_bucket, :string, 2
32
- optional :gce_cluster_config, :message, 8, "google.cloud.dataproc.v1.GceClusterConfig"
33
- optional :master_config, :message, 9, "google.cloud.dataproc.v1.InstanceGroupConfig"
34
- optional :worker_config, :message, 10, "google.cloud.dataproc.v1.InstanceGroupConfig"
35
- optional :secondary_worker_config, :message, 12, "google.cloud.dataproc.v1.InstanceGroupConfig"
36
- optional :software_config, :message, 13, "google.cloud.dataproc.v1.SoftwareConfig"
37
- repeated :initialization_actions, :message, 11, "google.cloud.dataproc.v1.NodeInitializationAction"
38
- optional :encryption_config, :message, 15, "google.cloud.dataproc.v1.EncryptionConfig"
39
- optional :autoscaling_config, :message, 18, "google.cloud.dataproc.v1.AutoscalingConfig"
40
- optional :security_config, :message, 16, "google.cloud.dataproc.v1.SecurityConfig"
41
- optional :lifecycle_config, :message, 17, "google.cloud.dataproc.v1.LifecycleConfig"
42
- optional :endpoint_config, :message, 19, "google.cloud.dataproc.v1.EndpointConfig"
43
- optional :metastore_config, :message, 20, "google.cloud.dataproc.v1.MetastoreConfig"
44
- optional :dataproc_metric_config, :message, 23, "google.cloud.dataproc.v1.DataprocMetricConfig"
45
- repeated :auxiliary_node_groups, :message, 25, "google.cloud.dataproc.v1.AuxiliaryNodeGroup"
46
- end
47
- add_message "google.cloud.dataproc.v1.VirtualClusterConfig" do
48
- optional :staging_bucket, :string, 1
49
- optional :auxiliary_services_config, :message, 7, "google.cloud.dataproc.v1.AuxiliaryServicesConfig"
50
- oneof :infrastructure_config do
51
- optional :kubernetes_cluster_config, :message, 6, "google.cloud.dataproc.v1.KubernetesClusterConfig"
52
- end
53
- end
54
- add_message "google.cloud.dataproc.v1.AuxiliaryServicesConfig" do
55
- optional :metastore_config, :message, 1, "google.cloud.dataproc.v1.MetastoreConfig"
56
- optional :spark_history_server_config, :message, 2, "google.cloud.dataproc.v1.SparkHistoryServerConfig"
57
- end
58
- add_message "google.cloud.dataproc.v1.EndpointConfig" do
59
- map :http_ports, :string, :string, 1
60
- optional :enable_http_port_access, :bool, 2
61
- end
62
- add_message "google.cloud.dataproc.v1.AutoscalingConfig" do
63
- optional :policy_uri, :string, 1
64
- end
65
- add_message "google.cloud.dataproc.v1.EncryptionConfig" do
66
- optional :gce_pd_kms_key_name, :string, 1
67
- end
68
- add_message "google.cloud.dataproc.v1.GceClusterConfig" do
69
- optional :zone_uri, :string, 1
70
- optional :network_uri, :string, 2
71
- optional :subnetwork_uri, :string, 6
72
- proto3_optional :internal_ip_only, :bool, 7
73
- optional :private_ipv6_google_access, :enum, 12, "google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess"
74
- optional :service_account, :string, 8
75
- repeated :service_account_scopes, :string, 3
76
- repeated :tags, :string, 4
77
- map :metadata, :string, :string, 5
78
- optional :reservation_affinity, :message, 11, "google.cloud.dataproc.v1.ReservationAffinity"
79
- optional :node_group_affinity, :message, 13, "google.cloud.dataproc.v1.NodeGroupAffinity"
80
- optional :shielded_instance_config, :message, 14, "google.cloud.dataproc.v1.ShieldedInstanceConfig"
81
- optional :confidential_instance_config, :message, 15, "google.cloud.dataproc.v1.ConfidentialInstanceConfig"
82
- end
83
- add_enum "google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess" do
84
- value :PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED, 0
85
- value :INHERIT_FROM_SUBNETWORK, 1
86
- value :OUTBOUND, 2
87
- value :BIDIRECTIONAL, 3
88
- end
89
- add_message "google.cloud.dataproc.v1.NodeGroupAffinity" do
90
- optional :node_group_uri, :string, 1
91
- end
92
- add_message "google.cloud.dataproc.v1.ShieldedInstanceConfig" do
93
- proto3_optional :enable_secure_boot, :bool, 1
94
- proto3_optional :enable_vtpm, :bool, 2
95
- proto3_optional :enable_integrity_monitoring, :bool, 3
96
- end
97
- add_message "google.cloud.dataproc.v1.ConfidentialInstanceConfig" do
98
- optional :enable_confidential_compute, :bool, 1
99
- end
100
- add_message "google.cloud.dataproc.v1.InstanceGroupConfig" do
101
- optional :num_instances, :int32, 1
102
- repeated :instance_names, :string, 2
103
- optional :image_uri, :string, 3
104
- optional :machine_type_uri, :string, 4
105
- optional :disk_config, :message, 5, "google.cloud.dataproc.v1.DiskConfig"
106
- optional :is_preemptible, :bool, 6
107
- optional :preemptibility, :enum, 10, "google.cloud.dataproc.v1.InstanceGroupConfig.Preemptibility"
108
- optional :managed_group_config, :message, 7, "google.cloud.dataproc.v1.ManagedGroupConfig"
109
- repeated :accelerators, :message, 8, "google.cloud.dataproc.v1.AcceleratorConfig"
110
- optional :min_cpu_platform, :string, 9
111
- end
112
- add_enum "google.cloud.dataproc.v1.InstanceGroupConfig.Preemptibility" do
113
- value :PREEMPTIBILITY_UNSPECIFIED, 0
114
- value :NON_PREEMPTIBLE, 1
115
- value :PREEMPTIBLE, 2
116
- value :SPOT, 3
117
- end
118
- add_message "google.cloud.dataproc.v1.ManagedGroupConfig" do
119
- optional :instance_template_name, :string, 1
120
- optional :instance_group_manager_name, :string, 2
121
- end
122
- add_message "google.cloud.dataproc.v1.AcceleratorConfig" do
123
- optional :accelerator_type_uri, :string, 1
124
- optional :accelerator_count, :int32, 2
125
- end
126
- add_message "google.cloud.dataproc.v1.DiskConfig" do
127
- optional :boot_disk_type, :string, 3
128
- optional :boot_disk_size_gb, :int32, 1
129
- optional :num_local_ssds, :int32, 2
130
- optional :local_ssd_interface, :string, 4
131
- end
132
- add_message "google.cloud.dataproc.v1.AuxiliaryNodeGroup" do
133
- optional :node_group, :message, 1, "google.cloud.dataproc.v1.NodeGroup"
134
- optional :node_group_id, :string, 2
135
- end
136
- add_message "google.cloud.dataproc.v1.NodeGroup" do
137
- optional :name, :string, 1
138
- repeated :roles, :enum, 2, "google.cloud.dataproc.v1.NodeGroup.Role"
139
- optional :node_group_config, :message, 3, "google.cloud.dataproc.v1.InstanceGroupConfig"
140
- map :labels, :string, :string, 4
141
- end
142
- add_enum "google.cloud.dataproc.v1.NodeGroup.Role" do
143
- value :ROLE_UNSPECIFIED, 0
144
- value :DRIVER, 1
145
- end
146
- add_message "google.cloud.dataproc.v1.NodeInitializationAction" do
147
- optional :executable_file, :string, 1
148
- optional :execution_timeout, :message, 2, "google.protobuf.Duration"
149
- end
150
- add_message "google.cloud.dataproc.v1.ClusterStatus" do
151
- optional :state, :enum, 1, "google.cloud.dataproc.v1.ClusterStatus.State"
152
- optional :detail, :string, 2
153
- optional :state_start_time, :message, 3, "google.protobuf.Timestamp"
154
- optional :substate, :enum, 4, "google.cloud.dataproc.v1.ClusterStatus.Substate"
155
- end
156
- add_enum "google.cloud.dataproc.v1.ClusterStatus.State" do
157
- value :UNKNOWN, 0
158
- value :CREATING, 1
159
- value :RUNNING, 2
160
- value :ERROR, 3
161
- value :ERROR_DUE_TO_UPDATE, 9
162
- value :DELETING, 4
163
- value :UPDATING, 5
164
- value :STOPPING, 6
165
- value :STOPPED, 7
166
- value :STARTING, 8
167
- end
168
- add_enum "google.cloud.dataproc.v1.ClusterStatus.Substate" do
169
- value :UNSPECIFIED, 0
170
- value :UNHEALTHY, 1
171
- value :STALE_STATUS, 2
172
- end
173
- add_message "google.cloud.dataproc.v1.SecurityConfig" do
174
- optional :kerberos_config, :message, 1, "google.cloud.dataproc.v1.KerberosConfig"
175
- optional :identity_config, :message, 2, "google.cloud.dataproc.v1.IdentityConfig"
176
- end
177
- add_message "google.cloud.dataproc.v1.KerberosConfig" do
178
- optional :enable_kerberos, :bool, 1
179
- optional :root_principal_password_uri, :string, 2
180
- optional :kms_key_uri, :string, 3
181
- optional :keystore_uri, :string, 4
182
- optional :truststore_uri, :string, 5
183
- optional :keystore_password_uri, :string, 6
184
- optional :key_password_uri, :string, 7
185
- optional :truststore_password_uri, :string, 8
186
- optional :cross_realm_trust_realm, :string, 9
187
- optional :cross_realm_trust_kdc, :string, 10
188
- optional :cross_realm_trust_admin_server, :string, 11
189
- optional :cross_realm_trust_shared_password_uri, :string, 12
190
- optional :kdc_db_key_uri, :string, 13
191
- optional :tgt_lifetime_hours, :int32, 14
192
- optional :realm, :string, 15
193
- end
194
- add_message "google.cloud.dataproc.v1.IdentityConfig" do
195
- map :user_service_account_mapping, :string, :string, 1
196
- end
197
- add_message "google.cloud.dataproc.v1.SoftwareConfig" do
198
- optional :image_version, :string, 1
199
- map :properties, :string, :string, 2
200
- repeated :optional_components, :enum, 3, "google.cloud.dataproc.v1.Component"
201
- end
202
- add_message "google.cloud.dataproc.v1.LifecycleConfig" do
203
- optional :idle_delete_ttl, :message, 1, "google.protobuf.Duration"
204
- optional :idle_start_time, :message, 4, "google.protobuf.Timestamp"
205
- oneof :ttl do
206
- optional :auto_delete_time, :message, 2, "google.protobuf.Timestamp"
207
- optional :auto_delete_ttl, :message, 3, "google.protobuf.Duration"
208
- end
209
- end
210
- add_message "google.cloud.dataproc.v1.MetastoreConfig" do
211
- optional :dataproc_metastore_service, :string, 1
212
- end
213
- add_message "google.cloud.dataproc.v1.ClusterMetrics" do
214
- map :hdfs_metrics, :string, :int64, 1
215
- map :yarn_metrics, :string, :int64, 2
216
- end
217
- add_message "google.cloud.dataproc.v1.DataprocMetricConfig" do
218
- repeated :metrics, :message, 1, "google.cloud.dataproc.v1.DataprocMetricConfig.Metric"
219
- end
220
- add_message "google.cloud.dataproc.v1.DataprocMetricConfig.Metric" do
221
- optional :metric_source, :enum, 1, "google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource"
222
- repeated :metric_overrides, :string, 2
223
- end
224
- add_enum "google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource" do
225
- value :METRIC_SOURCE_UNSPECIFIED, 0
226
- value :MONITORING_AGENT_DEFAULTS, 1
227
- value :HDFS, 2
228
- value :SPARK, 3
229
- value :YARN, 4
230
- value :SPARK_HISTORY_SERVER, 5
231
- value :HIVESERVER2, 6
232
- value :HIVEMETASTORE, 7
233
- end
234
- add_message "google.cloud.dataproc.v1.CreateClusterRequest" do
235
- optional :project_id, :string, 1
236
- optional :region, :string, 3
237
- optional :cluster, :message, 2, "google.cloud.dataproc.v1.Cluster"
238
- optional :request_id, :string, 4
239
- optional :action_on_failed_primary_workers, :enum, 5, "google.cloud.dataproc.v1.FailureAction"
240
- end
241
- add_message "google.cloud.dataproc.v1.UpdateClusterRequest" do
242
- optional :project_id, :string, 1
243
- optional :region, :string, 5
244
- optional :cluster_name, :string, 2
245
- optional :cluster, :message, 3, "google.cloud.dataproc.v1.Cluster"
246
- optional :graceful_decommission_timeout, :message, 6, "google.protobuf.Duration"
247
- optional :update_mask, :message, 4, "google.protobuf.FieldMask"
248
- optional :request_id, :string, 7
249
- end
250
- add_message "google.cloud.dataproc.v1.StopClusterRequest" do
251
- optional :project_id, :string, 1
252
- optional :region, :string, 2
253
- optional :cluster_name, :string, 3
254
- optional :cluster_uuid, :string, 4
255
- optional :request_id, :string, 5
256
- end
257
- add_message "google.cloud.dataproc.v1.StartClusterRequest" do
258
- optional :project_id, :string, 1
259
- optional :region, :string, 2
260
- optional :cluster_name, :string, 3
261
- optional :cluster_uuid, :string, 4
262
- optional :request_id, :string, 5
263
- end
264
- add_message "google.cloud.dataproc.v1.DeleteClusterRequest" do
265
- optional :project_id, :string, 1
266
- optional :region, :string, 3
267
- optional :cluster_name, :string, 2
268
- optional :cluster_uuid, :string, 4
269
- optional :request_id, :string, 5
270
- end
271
- add_message "google.cloud.dataproc.v1.GetClusterRequest" do
272
- optional :project_id, :string, 1
273
- optional :region, :string, 3
274
- optional :cluster_name, :string, 2
275
- end
276
- add_message "google.cloud.dataproc.v1.ListClustersRequest" do
277
- optional :project_id, :string, 1
278
- optional :region, :string, 4
279
- optional :filter, :string, 5
280
- optional :page_size, :int32, 2
281
- optional :page_token, :string, 3
282
- end
283
- add_message "google.cloud.dataproc.v1.ListClustersResponse" do
284
- repeated :clusters, :message, 1, "google.cloud.dataproc.v1.Cluster"
285
- optional :next_page_token, :string, 2
286
- end
287
- add_message "google.cloud.dataproc.v1.DiagnoseClusterRequest" do
288
- optional :project_id, :string, 1
289
- optional :region, :string, 3
290
- optional :cluster_name, :string, 2
291
- end
292
- add_message "google.cloud.dataproc.v1.DiagnoseClusterResults" do
293
- optional :output_uri, :string, 1
294
- end
295
- add_message "google.cloud.dataproc.v1.ReservationAffinity" do
296
- optional :consume_reservation_type, :enum, 1, "google.cloud.dataproc.v1.ReservationAffinity.Type"
297
- optional :key, :string, 2
298
- repeated :values, :string, 3
299
- end
300
- add_enum "google.cloud.dataproc.v1.ReservationAffinity.Type" do
301
- value :TYPE_UNSPECIFIED, 0
302
- value :NO_RESERVATION, 1
303
- value :ANY_RESERVATION, 2
304
- value :SPECIFIC_RESERVATION, 3
17
+
18
+ descriptor_data = "\n\'google/cloud/dataproc/v1/clusters.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\x1egoogle/protobuf/duration.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xa2\x04\n\x07\x43luster\x12\x17\n\nproject_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x19\n\x0c\x63luster_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12<\n\x06\x63onfig\x18\x03 \x01(\x0b\x32\'.google.cloud.dataproc.v1.ClusterConfigB\x03\xe0\x41\x01\x12S\n\x16virtual_cluster_config\x18\n \x01(\x0b\x32..google.cloud.dataproc.v1.VirtualClusterConfigB\x03\xe0\x41\x01\x12\x42\n\x06labels\x18\x08 \x03(\x0b\x32-.google.cloud.dataproc.v1.Cluster.LabelsEntryB\x03\xe0\x41\x01\x12<\n\x06status\x18\x04 \x01(\x0b\x32\'.google.cloud.dataproc.v1.ClusterStatusB\x03\xe0\x41\x03\x12\x44\n\x0estatus_history\x18\x07 \x03(\x0b\x32\'.google.cloud.dataproc.v1.ClusterStatusB\x03\xe0\x41\x03\x12\x19\n\x0c\x63luster_uuid\x18\x06 \x01(\tB\x03\xe0\x41\x03\x12>\n\x07metrics\x18\t \x01(\x0b\x32(.google.cloud.dataproc.v1.ClusterMetricsB\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\"\x83\t\n\rClusterConfig\x12\x1a\n\rconfig_bucket\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x18\n\x0btemp_bucket\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12K\n\x12gce_cluster_config\x18\x08 \x01(\x0b\x32*.google.cloud.dataproc.v1.GceClusterConfigB\x03\xe0\x41\x01\x12I\n\rmaster_config\x18\t \x01(\x0b\x32-.google.cloud.dataproc.v1.InstanceGroupConfigB\x03\xe0\x41\x01\x12I\n\rworker_config\x18\n \x01(\x0b\x32-.google.cloud.dataproc.v1.InstanceGroupConfigB\x03\xe0\x41\x01\x12S\n\x17secondary_worker_config\x18\x0c \x01(\x0b\x32-.google.cloud.dataproc.v1.InstanceGroupConfigB\x03\xe0\x41\x01\x12\x46\n\x0fsoftware_config\x18\r \x01(\x0b\x32(.google.cloud.dataproc.v1.SoftwareConfigB\x03\xe0\x41\x01\x12W\n\x16initialization_actions\x18\x0b \x03(\x0b\x32\x32.google.cloud.dataproc.v1.NodeInitializationActionB\x03\xe0\x41\x01\x12J\n\x11\x65ncryption_config\x18\x0f \x01(\x0b\x32*.google.cloud.dataproc.v1.EncryptionConfigB\x03\xe0\x41\x01\x12L\n\x12\x61utoscaling_config\x18\x12 \x01(\x0b\x32+.google.cloud.dataproc.v1.AutoscalingConfigB\x03\xe0\x41\x01\x12\x46\n\x0fsecurity_config\x18\x10 \x01(\x0b\x32(.google.cloud.dataproc.v1.SecurityConfigB\x03\xe0\x41\x01\x12H\n\x10lifecycle_config\x18\x11 \x01(\x0b\x32).google.cloud.dataproc.v1.LifecycleConfigB\x03\xe0\x41\x01\x12\x46\n\x0f\x65ndpoint_config\x18\x13 \x01(\x0b\x32(.google.cloud.dataproc.v1.EndpointConfigB\x03\xe0\x41\x01\x12H\n\x10metastore_config\x18\x14 \x01(\x0b\x32).google.cloud.dataproc.v1.MetastoreConfigB\x03\xe0\x41\x01\x12S\n\x16\x64\x61taproc_metric_config\x18\x17 \x01(\x0b\x32..google.cloud.dataproc.v1.DataprocMetricConfigB\x03\xe0\x41\x01\x12P\n\x15\x61uxiliary_node_groups\x18\x19 \x03(\x0b\x32,.google.cloud.dataproc.v1.AuxiliaryNodeGroupB\x03\xe0\x41\x01\"\x84\x02\n\x14VirtualClusterConfig\x12\x1b\n\x0estaging_bucket\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12[\n\x19kubernetes_cluster_config\x18\x06 \x01(\x0b\x32\x31.google.cloud.dataproc.v1.KubernetesClusterConfigB\x03\xe0\x41\x02H\x00\x12Y\n\x19\x61uxiliary_services_config\x18\x07 \x01(\x0b\x32\x31.google.cloud.dataproc.v1.AuxiliaryServicesConfigB\x03\xe0\x41\x01\x42\x17\n\x15infrastructure_config\"\xc1\x01\n\x17\x41uxiliaryServicesConfig\x12H\n\x10metastore_config\x18\x01 \x01(\x0b\x32).google.cloud.dataproc.v1.MetastoreConfigB\x03\xe0\x41\x01\x12\\\n\x1bspark_history_server_config\x18\x02 \x01(\x0b\x32\x32.google.cloud.dataproc.v1.SparkHistoryServerConfigB\x03\xe0\x41\x01\"\xba\x01\n\x0e\x45ndpointConfig\x12P\n\nhttp_ports\x18\x01 \x03(\x0b\x32\x37.google.cloud.dataproc.v1.EndpointConfig.HttpPortsEntryB\x03\xe0\x41\x03\x12$\n\x17\x65nable_http_port_access\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\x1a\x30\n\x0eHttpPortsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\",\n\x11\x41utoscalingConfig\x12\x17\n\npolicy_uri\x18\x01 \x01(\tB\x03\xe0\x41\x01\"4\n\x10\x45ncryptionConfig\x12 \n\x13gce_pd_kms_key_name\x18\x01 \x01(\tB\x03\xe0\x41\x01\"\xb5\x07\n\x10GceClusterConfig\x12\x15\n\x08zone_uri\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x18\n\x0bnetwork_uri\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x1b\n\x0esubnetwork_uri\x18\x06 \x01(\tB\x03\xe0\x41\x01\x12\"\n\x10internal_ip_only\x18\x07 \x01(\x08\x42\x03\xe0\x41\x01H\x00\x88\x01\x01\x12k\n\x1aprivate_ipv6_google_access\x18\x0c \x01(\x0e\x32\x42.google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccessB\x03\xe0\x41\x01\x12\x1c\n\x0fservice_account\x18\x08 \x01(\tB\x03\xe0\x41\x01\x12#\n\x16service_account_scopes\x18\x03 \x03(\tB\x03\xe0\x41\x01\x12\x0c\n\x04tags\x18\x04 \x03(\t\x12J\n\x08metadata\x18\x05 \x03(\x0b\x32\x38.google.cloud.dataproc.v1.GceClusterConfig.MetadataEntry\x12P\n\x14reservation_affinity\x18\x0b \x01(\x0b\x32-.google.cloud.dataproc.v1.ReservationAffinityB\x03\xe0\x41\x01\x12M\n\x13node_group_affinity\x18\r \x01(\x0b\x32+.google.cloud.dataproc.v1.NodeGroupAffinityB\x03\xe0\x41\x01\x12W\n\x18shielded_instance_config\x18\x0e \x01(\x0b\x32\x30.google.cloud.dataproc.v1.ShieldedInstanceConfigB\x03\xe0\x41\x01\x12_\n\x1c\x63onfidential_instance_config\x18\x0f \x01(\x0b\x32\x34.google.cloud.dataproc.v1.ConfidentialInstanceConfigB\x03\xe0\x41\x01\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x83\x01\n\x17PrivateIpv6GoogleAccess\x12*\n&PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED\x10\x00\x12\x1b\n\x17INHERIT_FROM_SUBNETWORK\x10\x01\x12\x0c\n\x08OUTBOUND\x10\x02\x12\x11\n\rBIDIRECTIONAL\x10\x03\x42\x13\n\x11_internal_ip_only\"0\n\x11NodeGroupAffinity\x12\x1b\n\x0enode_group_uri\x18\x01 \x01(\tB\x03\xe0\x41\x02\"\xd3\x01\n\x16ShieldedInstanceConfig\x12$\n\x12\x65nable_secure_boot\x18\x01 \x01(\x08\x42\x03\xe0\x41\x01H\x00\x88\x01\x01\x12\x1d\n\x0b\x65nable_vtpm\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01H\x01\x88\x01\x01\x12-\n\x1b\x65nable_integrity_monitoring\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01H\x02\x88\x01\x01\x42\x15\n\x13_enable_secure_bootB\x0e\n\x0c_enable_vtpmB\x1e\n\x1c_enable_integrity_monitoring\"F\n\x1a\x43onfidentialInstanceConfig\x12(\n\x1b\x65nable_confidential_compute\x18\x01 \x01(\x08\x42\x03\xe0\x41\x01\"\xd7\x04\n\x13InstanceGroupConfig\x12\x1a\n\rnum_instances\x18\x01 \x01(\x05\x42\x03\xe0\x41\x01\x12\x1b\n\x0einstance_names\x18\x02 \x03(\tB\x03\xe0\x41\x03\x12\x16\n\timage_uri\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x1d\n\x10machine_type_uri\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12>\n\x0b\x64isk_config\x18\x05 \x01(\x0b\x32$.google.cloud.dataproc.v1.DiskConfigB\x03\xe0\x41\x01\x12\x1b\n\x0eis_preemptible\x18\x06 \x01(\x08\x42\x03\xe0\x41\x03\x12Y\n\x0epreemptibility\x18\n \x01(\x0e\x32<.google.cloud.dataproc.v1.InstanceGroupConfig.PreemptibilityB\x03\xe0\x41\x01\x12O\n\x14managed_group_config\x18\x07 \x01(\x0b\x32,.google.cloud.dataproc.v1.ManagedGroupConfigB\x03\xe0\x41\x03\x12\x46\n\x0c\x61\x63\x63\x65lerators\x18\x08 \x03(\x0b\x32+.google.cloud.dataproc.v1.AcceleratorConfigB\x03\xe0\x41\x01\x12\x1d\n\x10min_cpu_platform\x18\t \x01(\tB\x03\xe0\x41\x01\"`\n\x0ePreemptibility\x12\x1e\n\x1aPREEMPTIBILITY_UNSPECIFIED\x10\x00\x12\x13\n\x0fNON_PREEMPTIBLE\x10\x01\x12\x0f\n\x0bPREEMPTIBLE\x10\x02\x12\x08\n\x04SPOT\x10\x03\"c\n\x12ManagedGroupConfig\x12#\n\x16instance_template_name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12(\n\x1binstance_group_manager_name\x18\x02 \x01(\tB\x03\xe0\x41\x03\"L\n\x11\x41\x63\x63\x65leratorConfig\x12\x1c\n\x14\x61\x63\x63\x65lerator_type_uri\x18\x01 \x01(\t\x12\x19\n\x11\x61\x63\x63\x65lerator_count\x18\x02 \x01(\x05\"\x88\x01\n\nDiskConfig\x12\x1b\n\x0e\x62oot_disk_type\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x1e\n\x11\x62oot_disk_size_gb\x18\x01 \x01(\x05\x42\x03\xe0\x41\x01\x12\x1b\n\x0enum_local_ssds\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12 \n\x13local_ssd_interface\x18\x04 \x01(\tB\x03\xe0\x41\x01\"n\n\x12\x41uxiliaryNodeGroup\x12<\n\nnode_group\x18\x01 \x01(\x0b\x32#.google.cloud.dataproc.v1.NodeGroupB\x03\xe0\x41\x02\x12\x1a\n\rnode_group_id\x18\x02 \x01(\tB\x03\xe0\x41\x01\"\xbd\x03\n\tNodeGroup\x12\x0c\n\x04name\x18\x01 \x01(\t\x12<\n\x05roles\x18\x02 \x03(\x0e\x32(.google.cloud.dataproc.v1.NodeGroup.RoleB\x03\xe0\x41\x02\x12M\n\x11node_group_config\x18\x03 \x01(\x0b\x32-.google.cloud.dataproc.v1.InstanceGroupConfigB\x03\xe0\x41\x01\x12\x44\n\x06labels\x18\x04 \x03(\x0b\x32/.google.cloud.dataproc.v1.NodeGroup.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\"(\n\x04Role\x12\x14\n\x10ROLE_UNSPECIFIED\x10\x00\x12\n\n\x06\x44RIVER\x10\x01:v\xea\x41s\n!dataproc.googleapis.com/NodeGroup\x12Nprojects/{project}/regions/{region}/clusters/{cluster}/nodeGroups/{node_group}\"s\n\x18NodeInitializationAction\x12\x1c\n\x0f\x65xecutable_file\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x39\n\x11\x65xecution_timeout\x18\x02 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x01\"\xc7\x03\n\rClusterStatus\x12\x41\n\x05state\x18\x01 \x01(\x0e\x32-.google.cloud.dataproc.v1.ClusterStatus.StateB\x03\xe0\x41\x03\x12\x16\n\x06\x64\x65tail\x18\x02 \x01(\tB\x06\xe0\x41\x03\xe0\x41\x01\x12\x39\n\x10state_start_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12G\n\x08substate\x18\x04 \x01(\x0e\x32\x30.google.cloud.dataproc.v1.ClusterStatus.SubstateB\x03\xe0\x41\x03\"\x98\x01\n\x05State\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\x0b\n\x07RUNNING\x10\x02\x12\t\n\x05\x45RROR\x10\x03\x12\x17\n\x13\x45RROR_DUE_TO_UPDATE\x10\t\x12\x0c\n\x08\x44\x45LETING\x10\x04\x12\x0c\n\x08UPDATING\x10\x05\x12\x0c\n\x08STOPPING\x10\x06\x12\x0b\n\x07STOPPED\x10\x07\x12\x0c\n\x08STARTING\x10\x08\"<\n\x08Substate\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\r\n\tUNHEALTHY\x10\x01\x12\x10\n\x0cSTALE_STATUS\x10\x02\"\xa0\x01\n\x0eSecurityConfig\x12\x46\n\x0fkerberos_config\x18\x01 \x01(\x0b\x32(.google.cloud.dataproc.v1.KerberosConfigB\x03\xe0\x41\x01\x12\x46\n\x0fidentity_config\x18\x02 \x01(\x0b\x32(.google.cloud.dataproc.v1.IdentityConfigB\x03\xe0\x41\x01\"\x90\x04\n\x0eKerberosConfig\x12\x1c\n\x0f\x65nable_kerberos\x18\x01 \x01(\x08\x42\x03\xe0\x41\x01\x12(\n\x1broot_principal_password_uri\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x18\n\x0bkms_key_uri\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x19\n\x0ckeystore_uri\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x1b\n\x0etruststore_uri\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12\"\n\x15keystore_password_uri\x18\x06 \x01(\tB\x03\xe0\x41\x01\x12\x1d\n\x10key_password_uri\x18\x07 \x01(\tB\x03\xe0\x41\x01\x12$\n\x17truststore_password_uri\x18\x08 \x01(\tB\x03\xe0\x41\x01\x12$\n\x17\x63ross_realm_trust_realm\x18\t \x01(\tB\x03\xe0\x41\x01\x12\"\n\x15\x63ross_realm_trust_kdc\x18\n \x01(\tB\x03\xe0\x41\x01\x12+\n\x1e\x63ross_realm_trust_admin_server\x18\x0b \x01(\tB\x03\xe0\x41\x01\x12\x32\n%cross_realm_trust_shared_password_uri\x18\x0c \x01(\tB\x03\xe0\x41\x01\x12\x1b\n\x0ekdc_db_key_uri\x18\r \x01(\tB\x03\xe0\x41\x01\x12\x1f\n\x12tgt_lifetime_hours\x18\x0e \x01(\x05\x42\x03\xe0\x41\x01\x12\x12\n\x05realm\x18\x0f \x01(\tB\x03\xe0\x41\x01\"\xc6\x01\n\x0eIdentityConfig\x12r\n\x1cuser_service_account_mapping\x18\x01 \x03(\x0b\x32G.google.cloud.dataproc.v1.IdentityConfig.UserServiceAccountMappingEntryB\x03\xe0\x41\x02\x1a@\n\x1eUserServiceAccountMappingEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xf9\x01\n\x0eSoftwareConfig\x12\x1a\n\rimage_version\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12Q\n\nproperties\x18\x02 \x03(\x0b\x32\x38.google.cloud.dataproc.v1.SoftwareConfig.PropertiesEntryB\x03\xe0\x41\x01\x12\x45\n\x13optional_components\x18\x03 \x03(\x0e\x32#.google.cloud.dataproc.v1.ComponentB\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\"\x83\x02\n\x0fLifecycleConfig\x12\x37\n\x0fidle_delete_ttl\x18\x01 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x01\x12;\n\x10\x61uto_delete_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x01H\x00\x12\x39\n\x0f\x61uto_delete_ttl\x18\x03 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x01H\x00\x12\x38\n\x0fidle_start_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x42\x05\n\x03ttl\"_\n\x0fMetastoreConfig\x12L\n\x1a\x64\x61taproc_metastore_service\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n metastore.googleapis.com/Service\"\x9a\x02\n\x0e\x43lusterMetrics\x12O\n\x0chdfs_metrics\x18\x01 \x03(\x0b\x32\x39.google.cloud.dataproc.v1.ClusterMetrics.HdfsMetricsEntry\x12O\n\x0cyarn_metrics\x18\x02 \x03(\x0b\x32\x39.google.cloud.dataproc.v1.ClusterMetrics.YarnMetricsEntry\x1a\x32\n\x10HdfsMetricsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x03:\x02\x38\x01\x1a\x32\n\x10YarnMetricsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x03:\x02\x38\x01\"\x92\x03\n\x14\x44\x61taprocMetricConfig\x12K\n\x07metrics\x18\x01 \x03(\x0b\x32\x35.google.cloud.dataproc.v1.DataprocMetricConfig.MetricB\x03\xe0\x41\x02\x1a\x80\x01\n\x06Metric\x12W\n\rmetric_source\x18\x01 \x01(\x0e\x32;.google.cloud.dataproc.v1.DataprocMetricConfig.MetricSourceB\x03\xe0\x41\x02\x12\x1d\n\x10metric_overrides\x18\x02 \x03(\tB\x03\xe0\x41\x01\"\xa9\x01\n\x0cMetricSource\x12\x1d\n\x19METRIC_SOURCE_UNSPECIFIED\x10\x00\x12\x1d\n\x19MONITORING_AGENT_DEFAULTS\x10\x01\x12\x08\n\x04HDFS\x10\x02\x12\t\n\x05SPARK\x10\x03\x12\x08\n\x04YARN\x10\x04\x12\x18\n\x14SPARK_HISTORY_SERVER\x10\x05\x12\x0f\n\x0bHIVESERVER2\x10\x06\x12\x11\n\rHIVEMETASTORE\x10\x07\"\xee\x01\n\x14\x43reateClusterRequest\x12\x17\n\nproject_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x06region\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x37\n\x07\x63luster\x18\x02 \x01(\x0b\x32!.google.cloud.dataproc.v1.ClusterB\x03\xe0\x41\x02\x12\x17\n\nrequest_id\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12V\n action_on_failed_primary_workers\x18\x05 \x01(\x0e\x32\'.google.cloud.dataproc.v1.FailureActionB\x03\xe0\x41\x01\"\xae\x02\n\x14UpdateClusterRequest\x12\x17\n\nproject_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x06region\x18\x05 \x01(\tB\x03\xe0\x41\x02\x12\x19\n\x0c\x63luster_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x37\n\x07\x63luster\x18\x03 \x01(\x0b\x32!.google.cloud.dataproc.v1.ClusterB\x03\xe0\x41\x02\x12\x45\n\x1dgraceful_decommission_timeout\x18\x06 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x01\x12\x34\n\x0bupdate_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\x12\x17\n\nrequest_id\x18\x07 \x01(\tB\x03\xe0\x41\x01\"\x91\x01\n\x12StopClusterRequest\x12\x17\n\nproject_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x06region\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x19\n\x0c\x63luster_name\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x19\n\x0c\x63luster_uuid\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x17\n\nrequest_id\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\x92\x01\n\x13StartClusterRequest\x12\x17\n\nproject_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x06region\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x19\n\x0c\x63luster_name\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x19\n\x0c\x63luster_uuid\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x17\n\nrequest_id\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\x93\x01\n\x14\x44\x65leteClusterRequest\x12\x17\n\nproject_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x06region\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x19\n\x0c\x63luster_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x19\n\x0c\x63luster_uuid\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x17\n\nrequest_id\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\\\n\x11GetClusterRequest\x12\x17\n\nproject_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x06region\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x19\n\x0c\x63luster_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\"\x89\x01\n\x13ListClustersRequest\x12\x17\n\nproject_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x06region\x18\x04 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x06\x66ilter\x18\x05 \x01(\tB\x03\xe0\x41\x01\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\"n\n\x14ListClustersResponse\x12\x38\n\x08\x63lusters\x18\x01 \x03(\x0b\x32!.google.cloud.dataproc.v1.ClusterB\x03\xe0\x41\x03\x12\x1c\n\x0fnext_page_token\x18\x02 \x01(\tB\x03\xe0\x41\x03\"a\n\x16\x44iagnoseClusterRequest\x12\x17\n\nproject_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x06region\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x19\n\x0c\x63luster_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\"1\n\x16\x44iagnoseClusterResults\x12\x17\n\noutput_uri\x18\x01 \x01(\tB\x03\xe0\x41\x03\"\xf8\x01\n\x13ReservationAffinity\x12Y\n\x18\x63onsume_reservation_type\x18\x01 \x01(\x0e\x32\x32.google.cloud.dataproc.v1.ReservationAffinity.TypeB\x03\xe0\x41\x01\x12\x10\n\x03key\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06values\x18\x03 \x03(\tB\x03\xe0\x41\x01\"_\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x12\n\x0eNO_RESERVATION\x10\x01\x12\x13\n\x0f\x41NY_RESERVATION\x10\x02\x12\x18\n\x14SPECIFIC_RESERVATION\x10\x03\x32\xe4\x10\n\x11\x43lusterController\x12\x80\x02\n\rCreateCluster\x12..google.cloud.dataproc.v1.CreateClusterRequest\x1a\x1d.google.longrunning.Operation\"\x9f\x01\x82\xd3\xe4\x93\x02>\"3/v1/projects/{project_id}/regions/{region}/clusters:\x07\x63luster\xda\x41\x19project_id,region,cluster\xca\x41<\n\x07\x43luster\x12\x31google.cloud.dataproc.v1.ClusterOperationMetadata\x12\xa8\x02\n\rUpdateCluster\x12..google.cloud.dataproc.v1.UpdateClusterRequest\x1a\x1d.google.longrunning.Operation\"\xc7\x01\x82\xd3\xe4\x93\x02M2B/v1/projects/{project_id}/regions/{region}/clusters/{cluster_name}:\x07\x63luster\xda\x41\x32project_id,region,cluster_name,cluster,update_mask\xca\x41<\n\x07\x43luster\x12\x31google.cloud.dataproc.v1.ClusterOperationMetadata\x12\xee\x01\n\x0bStopCluster\x12,.google.cloud.dataproc.v1.StopClusterRequest\x1a\x1d.google.longrunning.Operation\"\x91\x01\x82\xd3\xe4\x93\x02L\"G/v1/projects/{project_id}/regions/{region}/clusters/{cluster_name}:stop:\x01*\xca\x41<\n\x07\x43luster\x12\x31google.cloud.dataproc.v1.ClusterOperationMetadata\x12\xf1\x01\n\x0cStartCluster\x12-.google.cloud.dataproc.v1.StartClusterRequest\x1a\x1d.google.longrunning.Operation\"\x92\x01\x82\xd3\xe4\x93\x02M\"H/v1/projects/{project_id}/regions/{region}/clusters/{cluster_name}:start:\x01*\xca\x41<\n\x07\x43luster\x12\x31google.cloud.dataproc.v1.ClusterOperationMetadata\x12\x99\x02\n\rDeleteCluster\x12..google.cloud.dataproc.v1.DeleteClusterRequest\x1a\x1d.google.longrunning.Operation\"\xb8\x01\x82\xd3\xe4\x93\x02\x44*B/v1/projects/{project_id}/regions/{region}/clusters/{cluster_name}\xda\x41\x1eproject_id,region,cluster_name\xca\x41J\n\x15google.protobuf.Empty\x12\x31google.cloud.dataproc.v1.ClusterOperationMetadata\x12\xc9\x01\n\nGetCluster\x12+.google.cloud.dataproc.v1.GetClusterRequest\x1a!.google.cloud.dataproc.v1.Cluster\"k\x82\xd3\xe4\x93\x02\x44\x12\x42/v1/projects/{project_id}/regions/{region}/clusters/{cluster_name}\xda\x41\x1eproject_id,region,cluster_name\x12\xd9\x01\n\x0cListClusters\x12-.google.cloud.dataproc.v1.ListClustersRequest\x1a..google.cloud.dataproc.v1.ListClustersResponse\"j\x82\xd3\xe4\x93\x02\x35\x12\x33/v1/projects/{project_id}/regions/{region}/clusters\xda\x41\x11project_id,region\xda\x41\x18project_id,region,filter\x12\xaa\x02\n\x0f\x44iagnoseCluster\x12\x30.google.cloud.dataproc.v1.DiagnoseClusterRequest\x1a\x1d.google.longrunning.Operation\"\xc5\x01\x82\xd3\xe4\x93\x02P\"K/v1/projects/{project_id}/regions/{region}/clusters/{cluster_name}:diagnose:\x01*\xda\x41\x1eproject_id,region,cluster_name\xca\x41K\n\x16\x44iagnoseClusterResults\x12\x31google.cloud.dataproc.v1.ClusterOperationMetadata\x1aK\xca\x41\x17\x64\x61taproc.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformBl\n\x1c\x63om.google.cloud.dataproc.v1B\rClustersProtoP\x01Z;cloud.google.com/go/dataproc/v2/apiv1/dataprocpb;dataprocpbb\x06proto3"
19
+
20
+ pool = Google::Protobuf::DescriptorPool.generated_pool
21
+
22
+ begin
23
+ pool.add_serialized_file(descriptor_data)
24
+ rescue TypeError => e
25
+ # Compatibility code: will be removed in the next major version.
26
+ require 'google/protobuf/descriptor_pb'
27
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
28
+ parsed.clear_dependency
29
+ serialized = parsed.class.encode(parsed)
30
+ file = pool.add_serialized_file(serialized)
31
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
32
+ imports = [
33
+ ["google.cloud.dataproc.v1.KubernetesClusterConfig", "google/cloud/dataproc/v1/shared.proto"],
34
+ ["google.protobuf.Duration", "google/protobuf/duration.proto"],
35
+ ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
36
+ ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
37
+ ]
38
+ imports.each do |type_name, expected_filename|
39
+ import_file = pool.lookup(type_name).file_descriptor
40
+ if import_file.name != expected_filename
41
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
305
42
  end
306
43
  end
44
+ warn "Each proto file must use a consistent fully-qualified name."
45
+ warn "This will become an error in the next major version."
307
46
  end
308
47
 
309
48
  module Google
@@ -157,7 +157,7 @@ module Google
157
157
  credentials = @config.credentials
158
158
  # Use self-signed JWT if the endpoint is unchanged from default,
159
159
  # but only if the default endpoint does not have a region prefix.
160
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
160
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
161
161
  !@config.endpoint.split(".").first.include?("-")
162
162
  credentials ||= Credentials.default scope: @config.scope,
163
163
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -984,9 +984,9 @@ module Google
984
984
  # * (`String`) The path to a service account key file in JSON format
985
985
  # * (`Hash`) A service account key as a Hash
986
986
  # * (`Google::Auth::Credentials`) A googleauth credentials object
987
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
987
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
988
988
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
989
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
989
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
990
990
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
991
991
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
992
992
  # * (`nil`) indicating no credentials
@@ -1028,7 +1028,9 @@ module Google
1028
1028
  class Configuration
1029
1029
  extend ::Gapic::Config
1030
1030
 
1031
- config_attr :endpoint, "dataproc.googleapis.com", ::String
1031
+ DEFAULT_ENDPOINT = "dataproc.googleapis.com"
1032
+
1033
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
1032
1034
  config_attr :credentials, nil do |value|
1033
1035
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
1034
1036
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -620,9 +620,9 @@ module Google
620
620
  # * (`String`) The path to a service account key file in JSON format
621
621
  # * (`Hash`) A service account key as a Hash
622
622
  # * (`Google::Auth::Credentials`) A googleauth credentials object
623
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
623
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
624
624
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
625
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
625
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
626
626
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
627
627
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
628
628
  # * (`nil`) indicating no credentials
@@ -664,7 +664,9 @@ module Google
664
664
  class Configuration
665
665
  extend ::Gapic::Config
666
666
 
667
- config_attr :endpoint, "dataproc.googleapis.com", ::String
667
+ DEFAULT_ENDPOINT = "dataproc.googleapis.com"
668
+
669
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
668
670
  config_attr :credentials, nil do |value|
669
671
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
670
672
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -153,7 +153,7 @@ module Google
153
153
  credentials = @config.credentials
154
154
  # Use self-signed JWT if the endpoint is unchanged from default,
155
155
  # but only if the default endpoint does not have a region prefix.
156
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
156
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
157
157
  !@config.endpoint.split(".").first.include?("-")
158
158
  credentials ||= Credentials.default scope: @config.scope,
159
159
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -771,9 +771,9 @@ module Google
771
771
  # * (`String`) The path to a service account key file in JSON format
772
772
  # * (`Hash`) A service account key as a Hash
773
773
  # * (`Google::Auth::Credentials`) A googleauth credentials object
774
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
774
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
775
775
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
776
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
776
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
777
777
  # * (`nil`) indicating no credentials
778
778
  # @return [::Object]
779
779
  # @!attribute [rw] scope
@@ -806,7 +806,9 @@ module Google
806
806
  class Configuration
807
807
  extend ::Gapic::Config
808
808
 
809
- config_attr :endpoint, "dataproc.googleapis.com", ::String
809
+ DEFAULT_ENDPOINT = "dataproc.googleapis.com"
810
+
811
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
810
812
  config_attr :credentials, nil do |value|
811
813
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
812
814
  allowed.any? { |klass| klass === value }