google-cloud-dataproc-v1 1.0.2 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +31 -21
  3. data/lib/google/cloud/dataproc/v1/autoscaling_policy_service/client.rb +36 -6
  4. data/lib/google/cloud/dataproc/v1/autoscaling_policy_service/rest/client.rb +36 -6
  5. data/lib/google/cloud/dataproc/v1/autoscaling_policy_service/rest/service_stub.rb +54 -32
  6. data/lib/google/cloud/dataproc/v1/batch_controller/client.rb +37 -5
  7. data/lib/google/cloud/dataproc/v1/batch_controller/operations.rb +19 -15
  8. data/lib/google/cloud/dataproc/v1/batch_controller/rest/client.rb +37 -5
  9. data/lib/google/cloud/dataproc/v1/batch_controller/rest/operations.rb +50 -38
  10. data/lib/google/cloud/dataproc/v1/batch_controller/rest/service_stub.rb +46 -26
  11. data/lib/google/cloud/dataproc/v1/batches_pb.rb +1 -1
  12. data/lib/google/cloud/dataproc/v1/cluster_controller/client.rb +53 -17
  13. data/lib/google/cloud/dataproc/v1/cluster_controller/operations.rb +19 -15
  14. data/lib/google/cloud/dataproc/v1/cluster_controller/paths.rb +21 -0
  15. data/lib/google/cloud/dataproc/v1/cluster_controller/rest/client.rb +53 -17
  16. data/lib/google/cloud/dataproc/v1/cluster_controller/rest/operations.rb +50 -38
  17. data/lib/google/cloud/dataproc/v1/cluster_controller/rest/service_stub.rb +78 -50
  18. data/lib/google/cloud/dataproc/v1/clusters_pb.rb +3 -1
  19. data/lib/google/cloud/dataproc/v1/job_controller/client.rb +37 -8
  20. data/lib/google/cloud/dataproc/v1/job_controller/operations.rb +19 -15
  21. data/lib/google/cloud/dataproc/v1/job_controller/rest/client.rb +37 -8
  22. data/lib/google/cloud/dataproc/v1/job_controller/rest/operations.rb +50 -38
  23. data/lib/google/cloud/dataproc/v1/job_controller/rest/service_stub.rb +70 -44
  24. data/lib/google/cloud/dataproc/v1/jobs_pb.rb +2 -1
  25. data/lib/google/cloud/dataproc/v1/node_group_controller/client.rb +37 -4
  26. data/lib/google/cloud/dataproc/v1/node_group_controller/operations.rb +19 -15
  27. data/lib/google/cloud/dataproc/v1/node_group_controller/rest/client.rb +37 -4
  28. data/lib/google/cloud/dataproc/v1/node_group_controller/rest/operations.rb +50 -38
  29. data/lib/google/cloud/dataproc/v1/node_group_controller/rest/service_stub.rb +38 -20
  30. data/lib/google/cloud/dataproc/v1/session_controller/client.rb +43 -9
  31. data/lib/google/cloud/dataproc/v1/session_controller/operations.rb +19 -15
  32. data/lib/google/cloud/dataproc/v1/session_controller/rest/client.rb +43 -9
  33. data/lib/google/cloud/dataproc/v1/session_controller/rest/operations.rb +50 -38
  34. data/lib/google/cloud/dataproc/v1/session_controller/rest/service_stub.rb +54 -32
  35. data/lib/google/cloud/dataproc/v1/session_template_controller/client.rb +36 -6
  36. data/lib/google/cloud/dataproc/v1/session_template_controller/rest/client.rb +36 -6
  37. data/lib/google/cloud/dataproc/v1/session_template_controller/rest/service_stub.rb +54 -32
  38. data/lib/google/cloud/dataproc/v1/session_templates_pb.rb +1 -1
  39. data/lib/google/cloud/dataproc/v1/sessions_pb.rb +2 -1
  40. data/lib/google/cloud/dataproc/v1/shared_pb.rb +1 -1
  41. data/lib/google/cloud/dataproc/v1/version.rb +1 -1
  42. data/lib/google/cloud/dataproc/v1/workflow_template_service/client.rb +38 -8
  43. data/lib/google/cloud/dataproc/v1/workflow_template_service/operations.rb +19 -15
  44. data/lib/google/cloud/dataproc/v1/workflow_template_service/paths.rb +21 -0
  45. data/lib/google/cloud/dataproc/v1/workflow_template_service/rest/client.rb +38 -8
  46. data/lib/google/cloud/dataproc/v1/workflow_template_service/rest/operations.rb +50 -38
  47. data/lib/google/cloud/dataproc/v1/workflow_template_service/rest/service_stub.rb +70 -44
  48. data/lib/google/cloud/dataproc/v1/workflow_templates_pb.rb +2 -1
  49. data/proto_docs/google/api/client.rb +47 -0
  50. data/proto_docs/google/cloud/dataproc/v1/batches.rb +17 -0
  51. data/proto_docs/google/cloud/dataproc/v1/clusters.rb +129 -23
  52. data/proto_docs/google/cloud/dataproc/v1/jobs.rb +130 -23
  53. data/proto_docs/google/cloud/dataproc/v1/session_templates.rb +7 -0
  54. data/proto_docs/google/cloud/dataproc/v1/sessions.rb +17 -3
  55. data/proto_docs/google/cloud/dataproc/v1/shared.rb +9 -4
  56. data/proto_docs/google/cloud/dataproc/v1/workflow_templates.rb +79 -0
  57. data/proto_docs/google/longrunning/operations.rb +23 -14
  58. metadata +6 -9
@@ -151,15 +151,27 @@ module Google
151
151
  endpoint: @config.endpoint,
152
152
  endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
153
153
  universe_domain: @config.universe_domain,
154
- credentials: credentials
154
+ credentials: credentials,
155
+ logger: @config.logger
155
156
  )
156
157
 
158
+ @session_template_controller_stub.logger(stub: true)&.info do |entry|
159
+ entry.set_system_name
160
+ entry.set_service
161
+ entry.message = "Created client for #{entry.service}"
162
+ entry.set_credentials_fields credentials
163
+ entry.set "customEndpoint", @config.endpoint if @config.endpoint
164
+ entry.set "defaultTimeout", @config.timeout if @config.timeout
165
+ entry.set "quotaProject", @quota_project_id if @quota_project_id
166
+ end
167
+
157
168
  @iam_policy_client = Google::Iam::V1::IAMPolicy::Rest::Client.new do |config|
158
169
  config.credentials = credentials
159
170
  config.quota_project = @quota_project_id
160
171
  config.endpoint = @session_template_controller_stub.endpoint
161
172
  config.universe_domain = @session_template_controller_stub.universe_domain
162
173
  config.bindings_override = @config.bindings_override
174
+ config.logger = @session_template_controller_stub.logger if config.respond_to? :logger=
163
175
  end
164
176
  end
165
177
 
@@ -170,6 +182,15 @@ module Google
170
182
  #
171
183
  attr_reader :iam_policy_client
172
184
 
185
+ ##
186
+ # The logger used for request/response debug logging.
187
+ #
188
+ # @return [Logger]
189
+ #
190
+ def logger
191
+ @session_template_controller_stub.logger
192
+ end
193
+
173
194
  # Service calls
174
195
 
175
196
  ##
@@ -247,7 +268,6 @@ module Google
247
268
 
248
269
  @session_template_controller_stub.create_session_template request, options do |result, operation|
249
270
  yield result, operation if block_given?
250
- return result
251
271
  end
252
272
  rescue ::Gapic::Rest::Error => e
253
273
  raise ::Google::Cloud::Error.from_error(e)
@@ -326,7 +346,6 @@ module Google
326
346
 
327
347
  @session_template_controller_stub.update_session_template request, options do |result, operation|
328
348
  yield result, operation if block_given?
329
- return result
330
349
  end
331
350
  rescue ::Gapic::Rest::Error => e
332
351
  raise ::Google::Cloud::Error.from_error(e)
@@ -405,7 +424,6 @@ module Google
405
424
 
406
425
  @session_template_controller_stub.get_session_template request, options do |result, operation|
407
426
  yield result, operation if block_given?
408
- return result
409
427
  end
410
428
  rescue ::Gapic::Rest::Error => e
411
429
  raise ::Google::Cloud::Error.from_error(e)
@@ -500,7 +518,7 @@ module Google
500
518
  @session_template_controller_stub.list_session_templates request, options do |result, operation|
501
519
  result = ::Gapic::Rest::PagedEnumerable.new @session_template_controller_stub, :list_session_templates, "session_templates", request, result, options
502
520
  yield result, operation if block_given?
503
- return result
521
+ throw :response, result
504
522
  end
505
523
  rescue ::Gapic::Rest::Error => e
506
524
  raise ::Google::Cloud::Error.from_error(e)
@@ -579,7 +597,6 @@ module Google
579
597
 
580
598
  @session_template_controller_stub.delete_session_template request, options do |result, operation|
581
599
  yield result, operation if block_given?
582
- return result
583
600
  end
584
601
  rescue ::Gapic::Rest::Error => e
585
602
  raise ::Google::Cloud::Error.from_error(e)
@@ -627,6 +644,13 @@ module Google
627
644
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
628
645
  # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
629
646
  # * (`nil`) indicating no credentials
647
+ #
648
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
649
+ # external source for authentication to Google Cloud, you must validate it before
650
+ # providing it to a Google API client library. Providing an unvalidated credential
651
+ # configuration to Google APIs can compromise the security of your systems and data.
652
+ # For more information, refer to [Validate credential configurations from external
653
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
630
654
  # @return [::Object]
631
655
  # @!attribute [rw] scope
632
656
  # The OAuth scopes
@@ -659,6 +683,11 @@ module Google
659
683
  # default endpoint URL. The default value of nil uses the environment
660
684
  # universe (usually the default "googleapis.com" universe).
661
685
  # @return [::String,nil]
686
+ # @!attribute [rw] logger
687
+ # A custom logger to use for request/response debug logging, or the value
688
+ # `:default` (the default) to construct a default logger, or `nil` to
689
+ # explicitly disable logging.
690
+ # @return [::Logger,:default,nil]
662
691
  #
663
692
  class Configuration
664
693
  extend ::Gapic::Config
@@ -687,6 +716,7 @@ module Google
687
716
  # by the host service.
688
717
  # @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
689
718
  config_attr :bindings_override, {}, ::Hash, nil
719
+ config_attr :logger, :default, ::Logger, nil, :default
690
720
 
691
721
  # @private
692
722
  def initialize parent_config = nil
@@ -30,7 +30,8 @@ module Google
30
30
  # including transcoding, making the REST call, and deserialing the response.
31
31
  #
32
32
  class ServiceStub
33
- def initialize endpoint:, endpoint_template:, universe_domain:, credentials:
33
+ # @private
34
+ def initialize endpoint:, endpoint_template:, universe_domain:, credentials:, logger:
34
35
  # These require statements are intentionally placed here to initialize
35
36
  # the REST modules only when it's required.
36
37
  require "gapic/rest"
@@ -40,7 +41,9 @@ module Google
40
41
  universe_domain: universe_domain,
41
42
  credentials: credentials,
42
43
  numeric_enums: true,
43
- raise_faraday_errors: false
44
+ service_name: self.class,
45
+ raise_faraday_errors: false,
46
+ logger: logger
44
47
  end
45
48
 
46
49
  ##
@@ -61,6 +64,15 @@ module Google
61
64
  @client_stub.endpoint
62
65
  end
63
66
 
67
+ ##
68
+ # The logger used for request/response debug logging.
69
+ #
70
+ # @return [Logger]
71
+ #
72
+ def logger stub: false
73
+ stub ? @client_stub.stub_logger : @client_stub.logger
74
+ end
75
+
64
76
  ##
65
77
  # Baseline implementation for the create_session_template REST call
66
78
  #
@@ -87,16 +99,18 @@ module Google
87
99
 
88
100
  response = @client_stub.make_http_request(
89
101
  verb,
90
- uri: uri,
91
- body: body || "",
92
- params: query_string_params,
102
+ uri: uri,
103
+ body: body || "",
104
+ params: query_string_params,
105
+ method_name: "create_session_template",
93
106
  options: options
94
107
  )
95
108
  operation = ::Gapic::Rest::TransportOperation.new response
96
109
  result = ::Google::Cloud::Dataproc::V1::SessionTemplate.decode_json response.body, ignore_unknown_fields: true
97
-
98
- yield result, operation if block_given?
99
- result
110
+ catch :response do
111
+ yield result, operation if block_given?
112
+ result
113
+ end
100
114
  end
101
115
 
102
116
  ##
@@ -125,16 +139,18 @@ module Google
125
139
 
126
140
  response = @client_stub.make_http_request(
127
141
  verb,
128
- uri: uri,
129
- body: body || "",
130
- params: query_string_params,
142
+ uri: uri,
143
+ body: body || "",
144
+ params: query_string_params,
145
+ method_name: "update_session_template",
131
146
  options: options
132
147
  )
133
148
  operation = ::Gapic::Rest::TransportOperation.new response
134
149
  result = ::Google::Cloud::Dataproc::V1::SessionTemplate.decode_json response.body, ignore_unknown_fields: true
135
-
136
- yield result, operation if block_given?
137
- result
150
+ catch :response do
151
+ yield result, operation if block_given?
152
+ result
153
+ end
138
154
  end
139
155
 
140
156
  ##
@@ -163,16 +179,18 @@ module Google
163
179
 
164
180
  response = @client_stub.make_http_request(
165
181
  verb,
166
- uri: uri,
167
- body: body || "",
168
- params: query_string_params,
182
+ uri: uri,
183
+ body: body || "",
184
+ params: query_string_params,
185
+ method_name: "get_session_template",
169
186
  options: options
170
187
  )
171
188
  operation = ::Gapic::Rest::TransportOperation.new response
172
189
  result = ::Google::Cloud::Dataproc::V1::SessionTemplate.decode_json response.body, ignore_unknown_fields: true
173
-
174
- yield result, operation if block_given?
175
- result
190
+ catch :response do
191
+ yield result, operation if block_given?
192
+ result
193
+ end
176
194
  end
177
195
 
178
196
  ##
@@ -201,16 +219,18 @@ module Google
201
219
 
202
220
  response = @client_stub.make_http_request(
203
221
  verb,
204
- uri: uri,
205
- body: body || "",
206
- params: query_string_params,
222
+ uri: uri,
223
+ body: body || "",
224
+ params: query_string_params,
225
+ method_name: "list_session_templates",
207
226
  options: options
208
227
  )
209
228
  operation = ::Gapic::Rest::TransportOperation.new response
210
229
  result = ::Google::Cloud::Dataproc::V1::ListSessionTemplatesResponse.decode_json response.body, ignore_unknown_fields: true
211
-
212
- yield result, operation if block_given?
213
- result
230
+ catch :response do
231
+ yield result, operation if block_given?
232
+ result
233
+ end
214
234
  end
215
235
 
216
236
  ##
@@ -239,16 +259,18 @@ module Google
239
259
 
240
260
  response = @client_stub.make_http_request(
241
261
  verb,
242
- uri: uri,
243
- body: body || "",
244
- params: query_string_params,
262
+ uri: uri,
263
+ body: body || "",
264
+ params: query_string_params,
265
+ method_name: "delete_session_template",
245
266
  options: options
246
267
  )
247
268
  operation = ::Gapic::Rest::TransportOperation.new response
248
269
  result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
249
-
250
- yield result, operation if block_given?
251
- result
270
+ catch :response do
271
+ yield result, operation if block_given?
272
+ result
273
+ end
252
274
  end
253
275
 
254
276
  ##
@@ -14,7 +14,7 @@ require 'google/protobuf/empty_pb'
14
14
  require 'google/protobuf/timestamp_pb'
15
15
 
16
16
 
17
- descriptor_data = "\n0google/cloud/dataproc/v1/session_templates.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/sessions.proto\x1a%google/cloud/dataproc/v1/shared.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xa9\x01\n\x1c\x43reateSessionTemplateRequest\x12?\n\x06parent\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\x12\'dataproc.googleapis.com/SessionTemplate\x12H\n\x10session_template\x18\x03 \x01(\x0b\x32).google.cloud.dataproc.v1.SessionTemplateB\x03\xe0\x41\x02\"h\n\x1cUpdateSessionTemplateRequest\x12H\n\x10session_template\x18\x01 \x01(\x0b\x32).google.cloud.dataproc.v1.SessionTemplateB\x03\xe0\x41\x02\"Z\n\x19GetSessionTemplateRequest\x12=\n\x04name\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\n\'dataproc.googleapis.com/SessionTemplate\"\xa4\x01\n\x1bListSessionTemplatesRequest\x12?\n\x06parent\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\x12\'dataproc.googleapis.com/SessionTemplate\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\"\x82\x01\n\x1cListSessionTemplatesResponse\x12I\n\x11session_templates\x18\x01 \x03(\x0b\x32).google.cloud.dataproc.v1.SessionTemplateB\x03\xe0\x41\x03\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"]\n\x1c\x44\x65leteSessionTemplateRequest\x12=\n\x04name\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\n\'dataproc.googleapis.com/SessionTemplate\"\xb0\x05\n\x0fSessionTemplate\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x18\n\x0b\x64\x65scription\x18\t \x01(\tB\x03\xe0\x41\x01\x12\x34\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12G\n\x0fjupyter_session\x18\x03 \x01(\x0b\x32\'.google.cloud.dataproc.v1.JupyterConfigB\x03\xe0\x41\x01H\x00\x12\x14\n\x07\x63reator\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12J\n\x06labels\x18\x06 \x03(\x0b\x32\x35.google.cloud.dataproc.v1.SessionTemplate.LabelsEntryB\x03\xe0\x41\x01\x12\x44\n\x0eruntime_config\x18\x07 \x01(\x0b\x32\'.google.cloud.dataproc.v1.RuntimeConfigB\x03\xe0\x41\x01\x12L\n\x12\x65nvironment_config\x18\x08 \x01(\x0b\x32+.google.cloud.dataproc.v1.EnvironmentConfigB\x03\xe0\x41\x01\x12\x34\n\x0bupdate_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x11\n\x04uuid\x18\x0c \x01(\tB\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:q\xea\x41n\n\'dataproc.googleapis.com/SessionTemplate\x12\x43projects/{project}/locations/{location}/sessionTemplates/{template}B\x10\n\x0esession_config2\xfa\x08\n\x19SessionTemplateController\x12\xe4\x01\n\x15\x43reateSessionTemplate\x12\x36.google.cloud.dataproc.v1.CreateSessionTemplateRequest\x1a).google.cloud.dataproc.v1.SessionTemplate\"h\xda\x41\x17parent,session_template\x82\xd3\xe4\x93\x02H\"4/v1/{parent=projects/*/locations/*}/sessionTemplates:\x10session_template\x12\xee\x01\n\x15UpdateSessionTemplate\x12\x36.google.cloud.dataproc.v1.UpdateSessionTemplateRequest\x1a).google.cloud.dataproc.v1.SessionTemplate\"r\xda\x41\x10session_template\x82\xd3\xe4\x93\x02Y2E/v1/{session_template.name=projects/*/locations/*/sessionTemplates/*}:\x10session_template\x12\xb9\x01\n\x12GetSessionTemplate\x12\x33.google.cloud.dataproc.v1.GetSessionTemplateRequest\x1a).google.cloud.dataproc.v1.SessionTemplate\"C\xda\x41\x04name\x82\xd3\xe4\x93\x02\x36\x12\x34/v1/{name=projects/*/locations/*/sessionTemplates/*}\x12\xcc\x01\n\x14ListSessionTemplates\x12\x35.google.cloud.dataproc.v1.ListSessionTemplatesRequest\x1a\x36.google.cloud.dataproc.v1.ListSessionTemplatesResponse\"E\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x36\x12\x34/v1/{parent=projects/*/locations/*}/sessionTemplates\x12\xac\x01\n\x15\x44\x65leteSessionTemplate\x12\x36.google.cloud.dataproc.v1.DeleteSessionTemplateRequest\x1a\x16.google.protobuf.Empty\"C\xda\x41\x04name\x82\xd3\xe4\x93\x02\x36*4/v1/{name=projects/*/locations/*/sessionTemplates/*}\x1aK\xca\x41\x17\x64\x61taproc.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformBt\n\x1c\x63om.google.cloud.dataproc.v1B\x15SessionTemplatesProtoP\x01Z;cloud.google.com/go/dataproc/v2/apiv1/dataprocpb;dataprocpbb\x06proto3"
17
+ descriptor_data = "\n0google/cloud/dataproc/v1/session_templates.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/sessions.proto\x1a%google/cloud/dataproc/v1/shared.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xa9\x01\n\x1c\x43reateSessionTemplateRequest\x12?\n\x06parent\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\x12\'dataproc.googleapis.com/SessionTemplate\x12H\n\x10session_template\x18\x03 \x01(\x0b\x32).google.cloud.dataproc.v1.SessionTemplateB\x03\xe0\x41\x02\"h\n\x1cUpdateSessionTemplateRequest\x12H\n\x10session_template\x18\x01 \x01(\x0b\x32).google.cloud.dataproc.v1.SessionTemplateB\x03\xe0\x41\x02\"Z\n\x19GetSessionTemplateRequest\x12=\n\x04name\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\n\'dataproc.googleapis.com/SessionTemplate\"\xa4\x01\n\x1bListSessionTemplatesRequest\x12?\n\x06parent\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\x12\'dataproc.googleapis.com/SessionTemplate\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\"\x82\x01\n\x1cListSessionTemplatesResponse\x12I\n\x11session_templates\x18\x01 \x03(\x0b\x32).google.cloud.dataproc.v1.SessionTemplateB\x03\xe0\x41\x03\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"]\n\x1c\x44\x65leteSessionTemplateRequest\x12=\n\x04name\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\n\'dataproc.googleapis.com/SessionTemplate\"\x84\x06\n\x0fSessionTemplate\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x18\n\x0b\x64\x65scription\x18\t \x01(\tB\x03\xe0\x41\x01\x12\x34\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12G\n\x0fjupyter_session\x18\x03 \x01(\x0b\x32\'.google.cloud.dataproc.v1.JupyterConfigB\x03\xe0\x41\x01H\x00\x12R\n\x15spark_connect_session\x18\x0b \x01(\x0b\x32,.google.cloud.dataproc.v1.SparkConnectConfigB\x03\xe0\x41\x01H\x00\x12\x14\n\x07\x63reator\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12J\n\x06labels\x18\x06 \x03(\x0b\x32\x35.google.cloud.dataproc.v1.SessionTemplate.LabelsEntryB\x03\xe0\x41\x01\x12\x44\n\x0eruntime_config\x18\x07 \x01(\x0b\x32\'.google.cloud.dataproc.v1.RuntimeConfigB\x03\xe0\x41\x01\x12L\n\x12\x65nvironment_config\x18\x08 \x01(\x0b\x32+.google.cloud.dataproc.v1.EnvironmentConfigB\x03\xe0\x41\x01\x12\x34\n\x0bupdate_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x11\n\x04uuid\x18\x0c \x01(\tB\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:q\xea\x41n\n\'dataproc.googleapis.com/SessionTemplate\x12\x43projects/{project}/locations/{location}/sessionTemplates/{template}B\x10\n\x0esession_config2\xfa\x08\n\x19SessionTemplateController\x12\xe4\x01\n\x15\x43reateSessionTemplate\x12\x36.google.cloud.dataproc.v1.CreateSessionTemplateRequest\x1a).google.cloud.dataproc.v1.SessionTemplate\"h\xda\x41\x17parent,session_template\x82\xd3\xe4\x93\x02H\"4/v1/{parent=projects/*/locations/*}/sessionTemplates:\x10session_template\x12\xee\x01\n\x15UpdateSessionTemplate\x12\x36.google.cloud.dataproc.v1.UpdateSessionTemplateRequest\x1a).google.cloud.dataproc.v1.SessionTemplate\"r\xda\x41\x10session_template\x82\xd3\xe4\x93\x02Y2E/v1/{session_template.name=projects/*/locations/*/sessionTemplates/*}:\x10session_template\x12\xb9\x01\n\x12GetSessionTemplate\x12\x33.google.cloud.dataproc.v1.GetSessionTemplateRequest\x1a).google.cloud.dataproc.v1.SessionTemplate\"C\xda\x41\x04name\x82\xd3\xe4\x93\x02\x36\x12\x34/v1/{name=projects/*/locations/*/sessionTemplates/*}\x12\xcc\x01\n\x14ListSessionTemplates\x12\x35.google.cloud.dataproc.v1.ListSessionTemplatesRequest\x1a\x36.google.cloud.dataproc.v1.ListSessionTemplatesResponse\"E\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x36\x12\x34/v1/{parent=projects/*/locations/*}/sessionTemplates\x12\xac\x01\n\x15\x44\x65leteSessionTemplate\x12\x36.google.cloud.dataproc.v1.DeleteSessionTemplateRequest\x1a\x16.google.protobuf.Empty\"C\xda\x41\x04name\x82\xd3\xe4\x93\x02\x36*4/v1/{name=projects/*/locations/*/sessionTemplates/*}\x1aK\xca\x41\x17\x64\x61taproc.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformBt\n\x1c\x63om.google.cloud.dataproc.v1B\x15SessionTemplatesProtoP\x01Z;cloud.google.com/go/dataproc/v2/apiv1/dataprocpb;dataprocpbb\x06proto3"
18
18
 
19
19
  pool = Google::Protobuf::DescriptorPool.generated_pool
20
20
 
@@ -13,7 +13,7 @@ require 'google/longrunning/operations_pb'
13
13
  require 'google/protobuf/timestamp_pb'
14
14
 
15
15
 
16
- descriptor_data = "\n\'google/cloud/dataproc/v1/sessions.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\x1fgoogle/protobuf/timestamp.proto\"\xba\x01\n\x14\x43reateSessionRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\x12\x1f\x64\x61taproc.googleapis.com/Session\x12\x37\n\x07session\x18\x02 \x01(\x0b\x32!.google.cloud.dataproc.v1.SessionB\x03\xe0\x41\x02\x12\x17\n\nsession_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x17\n\nrequest_id\x18\x04 \x01(\tB\x03\xe0\x41\x01\"J\n\x11GetSessionRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x64\x61taproc.googleapis.com/Session\"\x94\x01\n\x13ListSessionsRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\x12\x1f\x64\x61taproc.googleapis.com/Session\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\"i\n\x14ListSessionsResponse\x12\x38\n\x08sessions\x18\x01 \x03(\x0b\x32!.google.cloud.dataproc.v1.SessionB\x03\xe0\x41\x03\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"i\n\x17TerminateSessionRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x64\x61taproc.googleapis.com/Session\x12\x17\n\nrequest_id\x18\x02 \x01(\tB\x03\xe0\x41\x01\"f\n\x14\x44\x65leteSessionRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x64\x61taproc.googleapis.com/Session\x12\x17\n\nrequest_id\x18\x02 \x01(\tB\x03\xe0\x41\x01\"\xd3\t\n\x07Session\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\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\x12G\n\x0fjupyter_session\x18\x04 \x01(\x0b\x32\'.google.cloud.dataproc.v1.JupyterConfigB\x03\xe0\x41\x01H\x00\x12@\n\x0cruntime_info\x18\x06 \x01(\x0b\x32%.google.cloud.dataproc.v1.RuntimeInfoB\x03\xe0\x41\x03\x12;\n\x05state\x18\x07 \x01(\x0e\x32\'.google.cloud.dataproc.v1.Session.StateB\x03\xe0\x41\x03\x12\x1a\n\rstate_message\x18\x08 \x01(\tB\x03\xe0\x41\x03\x12\x33\n\nstate_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x14\n\x07\x63reator\x18\n \x01(\tB\x03\xe0\x41\x03\x12\x42\n\x06labels\x18\x0b \x03(\x0b\x32-.google.cloud.dataproc.v1.Session.LabelsEntryB\x03\xe0\x41\x01\x12\x44\n\x0eruntime_config\x18\x0c \x01(\x0b\x32\'.google.cloud.dataproc.v1.RuntimeConfigB\x03\xe0\x41\x01\x12L\n\x12\x65nvironment_config\x18\r \x01(\x0b\x32+.google.cloud.dataproc.v1.EnvironmentConfigB\x03\xe0\x41\x01\x12\x11\n\x04user\x18\x0e \x01(\tB\x03\xe0\x41\x01\x12Q\n\rstate_history\x18\x0f \x03(\x0b\x32\x35.google.cloud.dataproc.v1.Session.SessionStateHistoryB\x03\xe0\x41\x03\x12I\n\x10session_template\x18\x10 \x01(\tB/\xe0\x41\x01\xfa\x41)\n\'dataproc.googleapis.com/SessionTemplate\x1a\xa9\x01\n\x13SessionStateHistory\x12;\n\x05state\x18\x01 \x01(\x0e\x32\'.google.cloud.dataproc.v1.Session.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\"e\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\n\n\x06\x41\x43TIVE\x10\x02\x12\x0f\n\x0bTERMINATING\x10\x03\x12\x0e\n\nTERMINATED\x10\x04\x12\n\n\x06\x46\x41ILED\x10\x05:`\xea\x41]\n\x1f\x64\x61taproc.googleapis.com/Session\x12:projects/{project}/locations/{location}/sessions/{session}B\x10\n\x0esession_config\"\xa8\x01\n\rJupyterConfig\x12\x43\n\x06kernel\x18\x01 \x01(\x0e\x32..google.cloud.dataproc.v1.JupyterConfig.KernelB\x03\xe0\x41\x01\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x01\"7\n\x06Kernel\x12\x16\n\x12KERNEL_UNSPECIFIED\x10\x00\x12\n\n\x06PYTHON\x10\x01\x12\t\n\x05SCALA\x10\x02\x32\xf5\x08\n\x11SessionController\x12\xf9\x01\n\rCreateSession\x12..google.cloud.dataproc.v1.CreateSessionRequest\x1a\x1d.google.longrunning.Operation\"\x98\x01\xca\x41<\n\x07Session\x12\x31google.cloud.dataproc.v1.SessionOperationMetadata\xda\x41\x19parent,session,session_id\x82\xd3\xe4\x93\x02\x37\",/v1/{parent=projects/*/locations/*}/sessions:\x07session\x12\x99\x01\n\nGetSession\x12+.google.cloud.dataproc.v1.GetSessionRequest\x1a!.google.cloud.dataproc.v1.Session\";\xda\x41\x04name\x82\xd3\xe4\x93\x02.\x12,/v1/{name=projects/*/locations/*/sessions/*}\x12\xac\x01\n\x0cListSessions\x12-.google.cloud.dataproc.v1.ListSessionsRequest\x1a..google.cloud.dataproc.v1.ListSessionsResponse\"=\xda\x41\x06parent\x82\xd3\xe4\x93\x02.\x12,/v1/{parent=projects/*/locations/*}/sessions\x12\xee\x01\n\x10TerminateSession\x12\x31.google.cloud.dataproc.v1.TerminateSessionRequest\x1a\x1d.google.longrunning.Operation\"\x87\x01\xca\x41<\n\x07Session\x12\x31google.cloud.dataproc.v1.SessionOperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02;\"6/v1/{name=projects/*/locations/*/sessions/*}:terminate:\x01*\x12\xda\x01\n\rDeleteSession\x12..google.cloud.dataproc.v1.DeleteSessionRequest\x1a\x1d.google.longrunning.Operation\"z\xca\x41<\n\x07Session\x12\x31google.cloud.dataproc.v1.SessionOperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02.*,/v1/{name=projects/*/locations/*/sessions/*}\x1aK\xca\x41\x17\x64\x61taproc.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformBl\n\x1c\x63om.google.cloud.dataproc.v1B\rSessionsProtoP\x01Z;cloud.google.com/go/dataproc/v2/apiv1/dataprocpb;dataprocpbb\x06proto3"
16
+ descriptor_data = "\n\'google/cloud/dataproc/v1/sessions.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\x1fgoogle/protobuf/timestamp.proto\"\xba\x01\n\x14\x43reateSessionRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\x12\x1f\x64\x61taproc.googleapis.com/Session\x12\x37\n\x07session\x18\x02 \x01(\x0b\x32!.google.cloud.dataproc.v1.SessionB\x03\xe0\x41\x02\x12\x17\n\nsession_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x17\n\nrequest_id\x18\x04 \x01(\tB\x03\xe0\x41\x01\"J\n\x11GetSessionRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x64\x61taproc.googleapis.com/Session\"\x94\x01\n\x13ListSessionsRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\x12\x1f\x64\x61taproc.googleapis.com/Session\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\"i\n\x14ListSessionsResponse\x12\x38\n\x08sessions\x18\x01 \x03(\x0b\x32!.google.cloud.dataproc.v1.SessionB\x03\xe0\x41\x03\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"i\n\x17TerminateSessionRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x64\x61taproc.googleapis.com/Session\x12\x17\n\nrequest_id\x18\x02 \x01(\tB\x03\xe0\x41\x01\"f\n\x14\x44\x65leteSessionRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x64\x61taproc.googleapis.com/Session\x12\x17\n\nrequest_id\x18\x02 \x01(\tB\x03\xe0\x41\x01\"\xa7\n\n\x07Session\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\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\x12G\n\x0fjupyter_session\x18\x04 \x01(\x0b\x32\'.google.cloud.dataproc.v1.JupyterConfigB\x03\xe0\x41\x01H\x00\x12R\n\x15spark_connect_session\x18\x11 \x01(\x0b\x32,.google.cloud.dataproc.v1.SparkConnectConfigB\x03\xe0\x41\x01H\x00\x12@\n\x0cruntime_info\x18\x06 \x01(\x0b\x32%.google.cloud.dataproc.v1.RuntimeInfoB\x03\xe0\x41\x03\x12;\n\x05state\x18\x07 \x01(\x0e\x32\'.google.cloud.dataproc.v1.Session.StateB\x03\xe0\x41\x03\x12\x1a\n\rstate_message\x18\x08 \x01(\tB\x03\xe0\x41\x03\x12\x33\n\nstate_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x14\n\x07\x63reator\x18\n \x01(\tB\x03\xe0\x41\x03\x12\x42\n\x06labels\x18\x0b \x03(\x0b\x32-.google.cloud.dataproc.v1.Session.LabelsEntryB\x03\xe0\x41\x01\x12\x44\n\x0eruntime_config\x18\x0c \x01(\x0b\x32\'.google.cloud.dataproc.v1.RuntimeConfigB\x03\xe0\x41\x01\x12L\n\x12\x65nvironment_config\x18\r \x01(\x0b\x32+.google.cloud.dataproc.v1.EnvironmentConfigB\x03\xe0\x41\x01\x12\x11\n\x04user\x18\x0e \x01(\tB\x03\xe0\x41\x01\x12Q\n\rstate_history\x18\x0f \x03(\x0b\x32\x35.google.cloud.dataproc.v1.Session.SessionStateHistoryB\x03\xe0\x41\x03\x12I\n\x10session_template\x18\x10 \x01(\tB/\xe0\x41\x01\xfa\x41)\n\'dataproc.googleapis.com/SessionTemplate\x1a\xa9\x01\n\x13SessionStateHistory\x12;\n\x05state\x18\x01 \x01(\x0e\x32\'.google.cloud.dataproc.v1.Session.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\"e\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\n\n\x06\x41\x43TIVE\x10\x02\x12\x0f\n\x0bTERMINATING\x10\x03\x12\x0e\n\nTERMINATED\x10\x04\x12\n\n\x06\x46\x41ILED\x10\x05:`\xea\x41]\n\x1f\x64\x61taproc.googleapis.com/Session\x12:projects/{project}/locations/{location}/sessions/{session}B\x10\n\x0esession_config\"\xa8\x01\n\rJupyterConfig\x12\x43\n\x06kernel\x18\x01 \x01(\x0e\x32..google.cloud.dataproc.v1.JupyterConfig.KernelB\x03\xe0\x41\x01\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x01\"7\n\x06Kernel\x12\x16\n\x12KERNEL_UNSPECIFIED\x10\x00\x12\n\n\x06PYTHON\x10\x01\x12\t\n\x05SCALA\x10\x02\"\x14\n\x12SparkConnectConfig2\xf5\x08\n\x11SessionController\x12\xf9\x01\n\rCreateSession\x12..google.cloud.dataproc.v1.CreateSessionRequest\x1a\x1d.google.longrunning.Operation\"\x98\x01\xca\x41<\n\x07Session\x12\x31google.cloud.dataproc.v1.SessionOperationMetadata\xda\x41\x19parent,session,session_id\x82\xd3\xe4\x93\x02\x37\",/v1/{parent=projects/*/locations/*}/sessions:\x07session\x12\x99\x01\n\nGetSession\x12+.google.cloud.dataproc.v1.GetSessionRequest\x1a!.google.cloud.dataproc.v1.Session\";\xda\x41\x04name\x82\xd3\xe4\x93\x02.\x12,/v1/{name=projects/*/locations/*/sessions/*}\x12\xac\x01\n\x0cListSessions\x12-.google.cloud.dataproc.v1.ListSessionsRequest\x1a..google.cloud.dataproc.v1.ListSessionsResponse\"=\xda\x41\x06parent\x82\xd3\xe4\x93\x02.\x12,/v1/{parent=projects/*/locations/*}/sessions\x12\xee\x01\n\x10TerminateSession\x12\x31.google.cloud.dataproc.v1.TerminateSessionRequest\x1a\x1d.google.longrunning.Operation\"\x87\x01\xca\x41<\n\x07Session\x12\x31google.cloud.dataproc.v1.SessionOperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02;\"6/v1/{name=projects/*/locations/*/sessions/*}:terminate:\x01*\x12\xda\x01\n\rDeleteSession\x12..google.cloud.dataproc.v1.DeleteSessionRequest\x1a\x1d.google.longrunning.Operation\"z\xca\x41<\n\x07Session\x12\x31google.cloud.dataproc.v1.SessionOperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02.*,/v1/{name=projects/*/locations/*/sessions/*}\x1aK\xca\x41\x17\x64\x61taproc.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformBl\n\x1c\x63om.google.cloud.dataproc.v1B\rSessionsProtoP\x01Z;cloud.google.com/go/dataproc/v2/apiv1/dataprocpb;dataprocpbb\x06proto3"
17
17
 
18
18
  pool = Google::Protobuf::DescriptorPool.generated_pool
19
19
 
@@ -56,6 +56,7 @@ module Google
56
56
  Session::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.Session.State").enummodule
57
57
  JupyterConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.JupyterConfig").msgclass
58
58
  JupyterConfig::Kernel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.JupyterConfig.Kernel").enummodule
59
+ SparkConnectConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.SparkConnectConfig").msgclass
59
60
  end
60
61
  end
61
62
  end
@@ -10,7 +10,7 @@ require 'google/protobuf/duration_pb'
10
10
  require 'google/protobuf/timestamp_pb'
11
11
 
12
12
 
13
- descriptor_data = "\n%google/cloud/dataproc/v1/shared.proto\x12\x18google.cloud.dataproc.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xf5\x02\n\rRuntimeConfig\x12\x14\n\x07version\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x1c\n\x0f\x63ontainer_image\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12P\n\nproperties\x18\x03 \x03(\x0b\x32\x37.google.cloud.dataproc.v1.RuntimeConfig.PropertiesEntryB\x03\xe0\x41\x01\x12J\n\x11repository_config\x18\x05 \x01(\x0b\x32*.google.cloud.dataproc.v1.RepositoryConfigB\x03\xe0\x41\x01\x12J\n\x11\x61utotuning_config\x18\x06 \x01(\x0b\x32*.google.cloud.dataproc.v1.AutotuningConfigB\x03\xe0\x41\x01\x12\x13\n\x06\x63ohort\x18\x07 \x01(\tB\x03\xe0\x41\x01\x1a\x31\n\x0fPropertiesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xab\x01\n\x11\x45nvironmentConfig\x12H\n\x10\x65xecution_config\x18\x01 \x01(\x0b\x32).google.cloud.dataproc.v1.ExecutionConfigB\x03\xe0\x41\x01\x12L\n\x12peripherals_config\x18\x02 \x01(\x0b\x32+.google.cloud.dataproc.v1.PeripheralsConfigB\x03\xe0\x41\x01\"\xa2\x02\n\x0f\x45xecutionConfig\x12\x1c\n\x0fservice_account\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x1a\n\x0bnetwork_uri\x18\x04 \x01(\tB\x03\xe0\x41\x01H\x00\x12\x1d\n\x0esubnetwork_uri\x18\x05 \x01(\tB\x03\xe0\x41\x01H\x00\x12\x19\n\x0cnetwork_tags\x18\x06 \x03(\tB\x03\xe0\x41\x01\x12\x14\n\x07kms_key\x18\x07 \x01(\tB\x03\xe0\x41\x01\x12\x30\n\x08idle_ttl\x18\x08 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x01\x12+\n\x03ttl\x18\t \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x01\x12\x1b\n\x0estaging_bucket\x18\n \x01(\tB\x03\xe0\x41\x01\x42\t\n\x07network\"9\n\x18SparkHistoryServerConfig\x12\x1d\n\x10\x64\x61taproc_cluster\x18\x01 \x01(\tB\x03\xe0\x41\x01\"\xb6\x01\n\x11PeripheralsConfig\x12\x43\n\x11metastore_service\x18\x01 \x01(\tB(\xe0\x41\x01\xfa\x41\"\n metastore.googleapis.com/Service\x12\\\n\x1bspark_history_server_config\x18\x02 \x01(\x0b\x32\x32.google.cloud.dataproc.v1.SparkHistoryServerConfigB\x03\xe0\x41\x01\"\xd7\x02\n\x0bRuntimeInfo\x12L\n\tendpoints\x18\x01 \x03(\x0b\x32\x34.google.cloud.dataproc.v1.RuntimeInfo.EndpointsEntryB\x03\xe0\x41\x03\x12\x17\n\noutput_uri\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\"\n\x15\x64iagnostic_output_uri\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x46\n\x11\x61pproximate_usage\x18\x06 \x01(\x0b\x32&.google.cloud.dataproc.v1.UsageMetricsB\x03\xe0\x41\x03\x12\x43\n\rcurrent_usage\x18\x07 \x01(\x0b\x32\'.google.cloud.dataproc.v1.UsageSnapshotB\x03\xe0\x41\x03\x1a\x30\n\x0e\x45ndpointsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x9e\x01\n\x0cUsageMetrics\x12\x1e\n\x11milli_dcu_seconds\x18\x01 \x01(\x03\x42\x03\xe0\x41\x01\x12\'\n\x1ashuffle_storage_gb_seconds\x18\x02 \x01(\x03\x42\x03\xe0\x41\x01\x12&\n\x19milli_accelerator_seconds\x18\x03 \x01(\x03\x42\x03\xe0\x41\x01\x12\x1d\n\x10\x61\x63\x63\x65lerator_type\x18\x04 \x01(\tB\x03\xe0\x41\x01\"\x88\x02\n\rUsageSnapshot\x12\x16\n\tmilli_dcu\x18\x01 \x01(\x03\x42\x03\xe0\x41\x01\x12\x1f\n\x12shuffle_storage_gb\x18\x02 \x01(\x03\x42\x03\xe0\x41\x01\x12\x1e\n\x11milli_dcu_premium\x18\x04 \x01(\x03\x42\x03\xe0\x41\x01\x12\'\n\x1ashuffle_storage_gb_premium\x18\x05 \x01(\x03\x42\x03\xe0\x41\x01\x12\x1e\n\x11milli_accelerator\x18\x06 \x01(\x03\x42\x03\xe0\x41\x01\x12\x1d\n\x10\x61\x63\x63\x65lerator_type\x18\x07 \x01(\tB\x03\xe0\x41\x01\x12\x36\n\rsnapshot_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x01\"\xa4\x01\n\x10GkeClusterConfig\x12\x44\n\x12gke_cluster_target\x18\x02 \x01(\tB(\xe0\x41\x01\xfa\x41\"\n container.googleapis.com/Cluster\x12J\n\x10node_pool_target\x18\x03 \x03(\x0b\x32+.google.cloud.dataproc.v1.GkeNodePoolTargetB\x03\xe0\x41\x01\"\xf2\x01\n\x17KubernetesClusterConfig\x12!\n\x14kubernetes_namespace\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12M\n\x12gke_cluster_config\x18\x02 \x01(\x0b\x32*.google.cloud.dataproc.v1.GkeClusterConfigB\x03\xe0\x41\x02H\x00\x12[\n\x1akubernetes_software_config\x18\x03 \x01(\x0b\x32\x32.google.cloud.dataproc.v1.KubernetesSoftwareConfigB\x03\xe0\x41\x01\x42\x08\n\x06\x63onfig\"\xc3\x02\n\x18KubernetesSoftwareConfig\x12\x63\n\x11\x63omponent_version\x18\x01 \x03(\x0b\x32H.google.cloud.dataproc.v1.KubernetesSoftwareConfig.ComponentVersionEntry\x12V\n\nproperties\x18\x02 \x03(\x0b\x32\x42.google.cloud.dataproc.v1.KubernetesSoftwareConfig.PropertiesEntry\x1a\x37\n\x15\x43omponentVersionEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x31\n\x0fPropertiesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x9e\x02\n\x11GkeNodePoolTarget\x12\x16\n\tnode_pool\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x44\n\x05roles\x18\x02 \x03(\x0e\x32\x30.google.cloud.dataproc.v1.GkeNodePoolTarget.RoleB\x03\xe0\x41\x02\x12J\n\x10node_pool_config\x18\x03 \x01(\x0b\x32+.google.cloud.dataproc.v1.GkeNodePoolConfigB\x03\xe0\x41\x04\"_\n\x04Role\x12\x14\n\x10ROLE_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x44\x45\x46\x41ULT\x10\x01\x12\x0e\n\nCONTROLLER\x10\x02\x12\x10\n\x0cSPARK_DRIVER\x10\x03\x12\x12\n\x0eSPARK_EXECUTOR\x10\x04\"\xbc\x05\n\x11GkeNodePoolConfig\x12N\n\x06\x63onfig\x18\x02 \x01(\x0b\x32\x39.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfigB\x03\xe0\x41\x01\x12\x16\n\tlocations\x18\r \x03(\tB\x03\xe0\x41\x01\x12\x62\n\x0b\x61utoscaling\x18\x04 \x01(\x0b\x32H.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfigB\x03\xe0\x41\x01\x1a\x99\x02\n\rGkeNodeConfig\x12\x19\n\x0cmachine_type\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x1c\n\x0flocal_ssd_count\x18\x07 \x01(\x05\x42\x03\xe0\x41\x01\x12\x18\n\x0bpreemptible\x18\n \x01(\x08\x42\x03\xe0\x41\x01\x12\x63\n\x0c\x61\x63\x63\x65lerators\x18\x0b \x03(\x0b\x32H.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfigB\x03\xe0\x41\x01\x12\x1d\n\x10min_cpu_platform\x18\r \x01(\tB\x03\xe0\x41\x01\x12\x1e\n\x11\x62oot_disk_kms_key\x18\x17 \x01(\tB\x03\xe0\x41\x01\x12\x11\n\x04spot\x18 \x01(\x08\x42\x03\xe0\x41\x01\x1ao\n\x1cGkeNodePoolAcceleratorConfig\x12\x19\n\x11\x61\x63\x63\x65lerator_count\x18\x01 \x01(\x03\x12\x18\n\x10\x61\x63\x63\x65lerator_type\x18\x02 \x01(\t\x12\x1a\n\x12gpu_partition_size\x18\x03 \x01(\t\x1aN\n\x1cGkeNodePoolAutoscalingConfig\x12\x16\n\x0emin_node_count\x18\x02 \x01(\x05\x12\x16\n\x0emax_node_count\x18\x03 \x01(\x05\"\xb7\x01\n\x10\x41utotuningConfig\x12K\n\tscenarios\x18\x02 \x03(\x0e\x32\x33.google.cloud.dataproc.v1.AutotuningConfig.ScenarioB\x03\xe0\x41\x01\"V\n\x08Scenario\x12\x18\n\x14SCENARIO_UNSPECIFIED\x10\x00\x12\x0b\n\x07SCALING\x10\x02\x12\x17\n\x13\x42ROADCAST_HASH_JOIN\x10\x03\x12\n\n\x06MEMORY\x10\x04\"g\n\x10RepositoryConfig\x12S\n\x16pypi_repository_config\x18\x01 \x01(\x0b\x32..google.cloud.dataproc.v1.PyPiRepositoryConfigB\x03\xe0\x41\x01\"4\n\x14PyPiRepositoryConfig\x12\x1c\n\x0fpypi_repository\x18\x01 \x01(\tB\x03\xe0\x41\x01*\xd4\x01\n\tComponent\x12\x19\n\x15\x43OMPONENT_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x41NACONDA\x10\x05\x12\n\n\x06\x44OCKER\x10\r\x12\t\n\x05\x44RUID\x10\t\x12\t\n\x05\x46LINK\x10\x0e\x12\t\n\x05HBASE\x10\x0b\x12\x10\n\x0cHIVE_WEBHCAT\x10\x03\x12\x08\n\x04HUDI\x10\x12\x12\x0b\n\x07JUPYTER\x10\x01\x12\n\n\x06PRESTO\x10\x06\x12\t\n\x05TRINO\x10\x11\x12\n\n\x06RANGER\x10\x0c\x12\x08\n\x04SOLR\x10\n\x12\x0c\n\x08ZEPPELIN\x10\x04\x12\r\n\tZOOKEEPER\x10\x08*J\n\rFailureAction\x12\x1e\n\x1a\x46\x41ILURE_ACTION_UNSPECIFIED\x10\x00\x12\r\n\tNO_ACTION\x10\x01\x12\n\n\x06\x44\x45LETE\x10\x02\x42\xac\x02\n\x1c\x63om.google.cloud.dataproc.v1B\x0bSharedProtoP\x01Z;cloud.google.com/go/dataproc/v2/apiv1/dataprocpb;dataprocpb\xea\x41^\n container.googleapis.com/Cluster\x12:projects/{project}/locations/{location}/clusters/{cluster}\xea\x41^\n metastore.googleapis.com/Service\x12:projects/{project}/locations/{location}/services/{service}b\x06proto3"
13
+ descriptor_data = "\n%google/cloud/dataproc/v1/shared.proto\x12\x18google.cloud.dataproc.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xf5\x02\n\rRuntimeConfig\x12\x14\n\x07version\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x1c\n\x0f\x63ontainer_image\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12P\n\nproperties\x18\x03 \x03(\x0b\x32\x37.google.cloud.dataproc.v1.RuntimeConfig.PropertiesEntryB\x03\xe0\x41\x01\x12J\n\x11repository_config\x18\x05 \x01(\x0b\x32*.google.cloud.dataproc.v1.RepositoryConfigB\x03\xe0\x41\x01\x12J\n\x11\x61utotuning_config\x18\x06 \x01(\x0b\x32*.google.cloud.dataproc.v1.AutotuningConfigB\x03\xe0\x41\x01\x12\x13\n\x06\x63ohort\x18\x07 \x01(\tB\x03\xe0\x41\x01\x1a\x31\n\x0fPropertiesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xab\x01\n\x11\x45nvironmentConfig\x12H\n\x10\x65xecution_config\x18\x01 \x01(\x0b\x32).google.cloud.dataproc.v1.ExecutionConfigB\x03\xe0\x41\x01\x12L\n\x12peripherals_config\x18\x02 \x01(\x0b\x32+.google.cloud.dataproc.v1.PeripheralsConfigB\x03\xe0\x41\x01\"\xa2\x02\n\x0f\x45xecutionConfig\x12\x1c\n\x0fservice_account\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x1a\n\x0bnetwork_uri\x18\x04 \x01(\tB\x03\xe0\x41\x01H\x00\x12\x1d\n\x0esubnetwork_uri\x18\x05 \x01(\tB\x03\xe0\x41\x01H\x00\x12\x19\n\x0cnetwork_tags\x18\x06 \x03(\tB\x03\xe0\x41\x01\x12\x14\n\x07kms_key\x18\x07 \x01(\tB\x03\xe0\x41\x01\x12\x30\n\x08idle_ttl\x18\x08 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x01\x12+\n\x03ttl\x18\t \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x01\x12\x1b\n\x0estaging_bucket\x18\n \x01(\tB\x03\xe0\x41\x01\x42\t\n\x07network\"9\n\x18SparkHistoryServerConfig\x12\x1d\n\x10\x64\x61taproc_cluster\x18\x01 \x01(\tB\x03\xe0\x41\x01\"\xb6\x01\n\x11PeripheralsConfig\x12\x43\n\x11metastore_service\x18\x01 \x01(\tB(\xe0\x41\x01\xfa\x41\"\n metastore.googleapis.com/Service\x12\\\n\x1bspark_history_server_config\x18\x02 \x01(\x0b\x32\x32.google.cloud.dataproc.v1.SparkHistoryServerConfigB\x03\xe0\x41\x01\"\xd7\x02\n\x0bRuntimeInfo\x12L\n\tendpoints\x18\x01 \x03(\x0b\x32\x34.google.cloud.dataproc.v1.RuntimeInfo.EndpointsEntryB\x03\xe0\x41\x03\x12\x17\n\noutput_uri\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\"\n\x15\x64iagnostic_output_uri\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x46\n\x11\x61pproximate_usage\x18\x06 \x01(\x0b\x32&.google.cloud.dataproc.v1.UsageMetricsB\x03\xe0\x41\x03\x12\x43\n\rcurrent_usage\x18\x07 \x01(\x0b\x32\'.google.cloud.dataproc.v1.UsageSnapshotB\x03\xe0\x41\x03\x1a\x30\n\x0e\x45ndpointsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x9e\x01\n\x0cUsageMetrics\x12\x1e\n\x11milli_dcu_seconds\x18\x01 \x01(\x03\x42\x03\xe0\x41\x01\x12\'\n\x1ashuffle_storage_gb_seconds\x18\x02 \x01(\x03\x42\x03\xe0\x41\x01\x12&\n\x19milli_accelerator_seconds\x18\x03 \x01(\x03\x42\x03\xe0\x41\x01\x12\x1d\n\x10\x61\x63\x63\x65lerator_type\x18\x04 \x01(\tB\x03\xe0\x41\x01\"\x88\x02\n\rUsageSnapshot\x12\x16\n\tmilli_dcu\x18\x01 \x01(\x03\x42\x03\xe0\x41\x01\x12\x1f\n\x12shuffle_storage_gb\x18\x02 \x01(\x03\x42\x03\xe0\x41\x01\x12\x1e\n\x11milli_dcu_premium\x18\x04 \x01(\x03\x42\x03\xe0\x41\x01\x12\'\n\x1ashuffle_storage_gb_premium\x18\x05 \x01(\x03\x42\x03\xe0\x41\x01\x12\x1e\n\x11milli_accelerator\x18\x06 \x01(\x03\x42\x03\xe0\x41\x01\x12\x1d\n\x10\x61\x63\x63\x65lerator_type\x18\x07 \x01(\tB\x03\xe0\x41\x01\x12\x36\n\rsnapshot_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x01\"\xa4\x01\n\x10GkeClusterConfig\x12\x44\n\x12gke_cluster_target\x18\x02 \x01(\tB(\xe0\x41\x01\xfa\x41\"\n container.googleapis.com/Cluster\x12J\n\x10node_pool_target\x18\x03 \x03(\x0b\x32+.google.cloud.dataproc.v1.GkeNodePoolTargetB\x03\xe0\x41\x01\"\xf2\x01\n\x17KubernetesClusterConfig\x12!\n\x14kubernetes_namespace\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12M\n\x12gke_cluster_config\x18\x02 \x01(\x0b\x32*.google.cloud.dataproc.v1.GkeClusterConfigB\x03\xe0\x41\x02H\x00\x12[\n\x1akubernetes_software_config\x18\x03 \x01(\x0b\x32\x32.google.cloud.dataproc.v1.KubernetesSoftwareConfigB\x03\xe0\x41\x01\x42\x08\n\x06\x63onfig\"\xc3\x02\n\x18KubernetesSoftwareConfig\x12\x63\n\x11\x63omponent_version\x18\x01 \x03(\x0b\x32H.google.cloud.dataproc.v1.KubernetesSoftwareConfig.ComponentVersionEntry\x12V\n\nproperties\x18\x02 \x03(\x0b\x32\x42.google.cloud.dataproc.v1.KubernetesSoftwareConfig.PropertiesEntry\x1a\x37\n\x15\x43omponentVersionEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x31\n\x0fPropertiesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x9e\x02\n\x11GkeNodePoolTarget\x12\x16\n\tnode_pool\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x44\n\x05roles\x18\x02 \x03(\x0e\x32\x30.google.cloud.dataproc.v1.GkeNodePoolTarget.RoleB\x03\xe0\x41\x02\x12J\n\x10node_pool_config\x18\x03 \x01(\x0b\x32+.google.cloud.dataproc.v1.GkeNodePoolConfigB\x03\xe0\x41\x04\"_\n\x04Role\x12\x14\n\x10ROLE_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x44\x45\x46\x41ULT\x10\x01\x12\x0e\n\nCONTROLLER\x10\x02\x12\x10\n\x0cSPARK_DRIVER\x10\x03\x12\x12\n\x0eSPARK_EXECUTOR\x10\x04\"\xbc\x05\n\x11GkeNodePoolConfig\x12N\n\x06\x63onfig\x18\x02 \x01(\x0b\x32\x39.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfigB\x03\xe0\x41\x01\x12\x16\n\tlocations\x18\r \x03(\tB\x03\xe0\x41\x01\x12\x62\n\x0b\x61utoscaling\x18\x04 \x01(\x0b\x32H.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfigB\x03\xe0\x41\x01\x1a\x99\x02\n\rGkeNodeConfig\x12\x19\n\x0cmachine_type\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x1c\n\x0flocal_ssd_count\x18\x07 \x01(\x05\x42\x03\xe0\x41\x01\x12\x18\n\x0bpreemptible\x18\n \x01(\x08\x42\x03\xe0\x41\x01\x12\x63\n\x0c\x61\x63\x63\x65lerators\x18\x0b \x03(\x0b\x32H.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfigB\x03\xe0\x41\x01\x12\x1d\n\x10min_cpu_platform\x18\r \x01(\tB\x03\xe0\x41\x01\x12\x1e\n\x11\x62oot_disk_kms_key\x18\x17 \x01(\tB\x03\xe0\x41\x01\x12\x11\n\x04spot\x18 \x01(\x08\x42\x03\xe0\x41\x01\x1ao\n\x1cGkeNodePoolAcceleratorConfig\x12\x19\n\x11\x61\x63\x63\x65lerator_count\x18\x01 \x01(\x03\x12\x18\n\x10\x61\x63\x63\x65lerator_type\x18\x02 \x01(\t\x12\x1a\n\x12gpu_partition_size\x18\x03 \x01(\t\x1aN\n\x1cGkeNodePoolAutoscalingConfig\x12\x16\n\x0emin_node_count\x18\x02 \x01(\x05\x12\x16\n\x0emax_node_count\x18\x03 \x01(\x05\"\xb7\x01\n\x10\x41utotuningConfig\x12K\n\tscenarios\x18\x02 \x03(\x0e\x32\x33.google.cloud.dataproc.v1.AutotuningConfig.ScenarioB\x03\xe0\x41\x01\"V\n\x08Scenario\x12\x18\n\x14SCENARIO_UNSPECIFIED\x10\x00\x12\x0b\n\x07SCALING\x10\x02\x12\x17\n\x13\x42ROADCAST_HASH_JOIN\x10\x03\x12\n\n\x06MEMORY\x10\x04\"g\n\x10RepositoryConfig\x12S\n\x16pypi_repository_config\x18\x01 \x01(\x0b\x32..google.cloud.dataproc.v1.PyPiRepositoryConfigB\x03\xe0\x41\x01\"4\n\x14PyPiRepositoryConfig\x12\x1c\n\x0fpypi_repository\x18\x01 \x01(\tB\x03\xe0\x41\x01*\xd4\x01\n\tComponent\x12\x19\n\x15\x43OMPONENT_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x41NACONDA\x10\x05\x12\n\n\x06\x44OCKER\x10\r\x12\t\n\x05\x44RUID\x10\t\x12\t\n\x05\x46LINK\x10\x0e\x12\t\n\x05HBASE\x10\x0b\x12\x10\n\x0cHIVE_WEBHCAT\x10\x03\x12\x08\n\x04HUDI\x10\x12\x12\x0b\n\x07JUPYTER\x10\x01\x12\n\n\x06PRESTO\x10\x06\x12\t\n\x05TRINO\x10\x11\x12\n\n\x06RANGER\x10\x0c\x12\x08\n\x04SOLR\x10\n\x12\x0c\n\x08ZEPPELIN\x10\x04\x12\r\n\tZOOKEEPER\x10\x08*J\n\rFailureAction\x12\x1e\n\x1a\x46\x41ILURE_ACTION_UNSPECIFIED\x10\x00\x12\r\n\tNO_ACTION\x10\x01\x12\n\n\x06\x44\x45LETE\x10\x02\x42\xa7\x03\n\x1c\x63om.google.cloud.dataproc.v1B\x0bSharedProtoP\x01Z;cloud.google.com/go/dataproc/v2/apiv1/dataprocpb;dataprocpb\xea\x41^\n container.googleapis.com/Cluster\x12:projects/{project}/locations/{location}/clusters/{cluster}\xea\x41^\n metastore.googleapis.com/Service\x12:projects/{project}/locations/{location}/services/{service}\xea\x41x\n!cloudkms.googleapis.com/CryptoKey\x12Sprojects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}b\x06proto3"
14
14
 
15
15
  pool = Google::Protobuf::DescriptorPool.generated_pool
16
16
 
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Dataproc
23
23
  module V1
24
- VERSION = "1.0.2"
24
+ VERSION = "1.2.0"
25
25
  end
26
26
  end
27
27
  end
@@ -201,14 +201,26 @@ module Google
201
201
  universe_domain: @config.universe_domain,
202
202
  channel_args: @config.channel_args,
203
203
  interceptors: @config.interceptors,
204
- channel_pool_config: @config.channel_pool
204
+ channel_pool_config: @config.channel_pool,
205
+ logger: @config.logger
205
206
  )
206
207
 
208
+ @workflow_template_service_stub.stub_logger&.info do |entry|
209
+ entry.set_system_name
210
+ entry.set_service
211
+ entry.message = "Created client for #{entry.service}"
212
+ entry.set_credentials_fields credentials
213
+ entry.set "customEndpoint", @config.endpoint if @config.endpoint
214
+ entry.set "defaultTimeout", @config.timeout if @config.timeout
215
+ entry.set "quotaProject", @quota_project_id if @quota_project_id
216
+ end
217
+
207
218
  @iam_policy_client = Google::Iam::V1::IAMPolicy::Client.new do |config|
208
219
  config.credentials = credentials
209
220
  config.quota_project = @quota_project_id
210
221
  config.endpoint = @workflow_template_service_stub.endpoint
211
222
  config.universe_domain = @workflow_template_service_stub.universe_domain
223
+ config.logger = @workflow_template_service_stub.logger if config.respond_to? :logger=
212
224
  end
213
225
  end
214
226
 
@@ -226,6 +238,15 @@ module Google
226
238
  #
227
239
  attr_reader :iam_policy_client
228
240
 
241
+ ##
242
+ # The logger used for request/response debug logging.
243
+ #
244
+ # @return [Logger]
245
+ #
246
+ def logger
247
+ @workflow_template_service_stub.logger
248
+ end
249
+
229
250
  # Service calls
230
251
 
231
252
  ##
@@ -319,7 +340,6 @@ module Google
319
340
 
320
341
  @workflow_template_service_stub.call_rpc :create_workflow_template, request, options: options do |response, operation|
321
342
  yield response, operation if block_given?
322
- return response
323
343
  end
324
344
  rescue ::GRPC::BadStatus => e
325
345
  raise ::Google::Cloud::Error.from_error(e)
@@ -422,7 +442,6 @@ module Google
422
442
 
423
443
  @workflow_template_service_stub.call_rpc :get_workflow_template, request, options: options do |response, operation|
424
444
  yield response, operation if block_given?
425
- return response
426
445
  end
427
446
  rescue ::GRPC::BadStatus => e
428
447
  raise ::Google::Cloud::Error.from_error(e)
@@ -564,7 +583,7 @@ module Google
564
583
  @workflow_template_service_stub.call_rpc :instantiate_workflow_template, request, options: options do |response, operation|
565
584
  response = ::Gapic::Operation.new response, @operations_client, options: options
566
585
  yield response, operation if block_given?
567
- return response
586
+ throw :response, response
568
587
  end
569
588
  rescue ::GRPC::BadStatus => e
570
589
  raise ::Google::Cloud::Error.from_error(e)
@@ -703,7 +722,7 @@ module Google
703
722
  @workflow_template_service_stub.call_rpc :instantiate_inline_workflow_template, request, options: options do |response, operation|
704
723
  response = ::Gapic::Operation.new response, @operations_client, options: options
705
724
  yield response, operation if block_given?
706
- return response
725
+ throw :response, response
707
726
  end
708
727
  rescue ::GRPC::BadStatus => e
709
728
  raise ::Google::Cloud::Error.from_error(e)
@@ -792,7 +811,6 @@ module Google
792
811
 
793
812
  @workflow_template_service_stub.call_rpc :update_workflow_template, request, options: options do |response, operation|
794
813
  yield response, operation if block_given?
795
- return response
796
814
  end
797
815
  rescue ::GRPC::BadStatus => e
798
816
  raise ::Google::Cloud::Error.from_error(e)
@@ -897,7 +915,7 @@ module Google
897
915
  @workflow_template_service_stub.call_rpc :list_workflow_templates, request, options: options do |response, operation|
898
916
  response = ::Gapic::PagedEnumerable.new @workflow_template_service_stub, :list_workflow_templates, request, response, operation, options
899
917
  yield response, operation if block_given?
900
- return response
918
+ throw :response, response
901
919
  end
902
920
  rescue ::GRPC::BadStatus => e
903
921
  raise ::Google::Cloud::Error.from_error(e)
@@ -996,7 +1014,6 @@ module Google
996
1014
 
997
1015
  @workflow_template_service_stub.call_rpc :delete_workflow_template, request, options: options do |response, operation|
998
1016
  yield response, operation if block_given?
999
- return response
1000
1017
  end
1001
1018
  rescue ::GRPC::BadStatus => e
1002
1019
  raise ::Google::Cloud::Error.from_error(e)
@@ -1046,6 +1063,13 @@ module Google
1046
1063
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
1047
1064
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
1048
1065
  # * (`nil`) indicating no credentials
1066
+ #
1067
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
1068
+ # external source for authentication to Google Cloud, you must validate it before
1069
+ # providing it to a Google API client library. Providing an unvalidated credential
1070
+ # configuration to Google APIs can compromise the security of your systems and data.
1071
+ # For more information, refer to [Validate credential configurations from external
1072
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
1049
1073
  # @return [::Object]
1050
1074
  # @!attribute [rw] scope
1051
1075
  # The OAuth scopes
@@ -1085,6 +1109,11 @@ module Google
1085
1109
  # default endpoint URL. The default value of nil uses the environment
1086
1110
  # universe (usually the default "googleapis.com" universe).
1087
1111
  # @return [::String,nil]
1112
+ # @!attribute [rw] logger
1113
+ # A custom logger to use for request/response debug logging, or the value
1114
+ # `:default` (the default) to construct a default logger, or `nil` to
1115
+ # explicitly disable logging.
1116
+ # @return [::Logger,:default,nil]
1088
1117
  #
1089
1118
  class Configuration
1090
1119
  extend ::Gapic::Config
@@ -1109,6 +1138,7 @@ module Google
1109
1138
  config_attr :retry_policy, nil, ::Hash, ::Proc, nil
1110
1139
  config_attr :quota_project, nil, ::String, nil
1111
1140
  config_attr :universe_domain, nil, ::String, nil
1141
+ config_attr :logger, :default, ::Logger, nil, :default
1112
1142
 
1113
1143
  # @private
1114
1144
  def initialize parent_config = nil
@@ -124,14 +124,6 @@ module Google
124
124
  # Lists operations that match the specified filter in the request. If the
125
125
  # server doesn't support this method, it returns `UNIMPLEMENTED`.
126
126
  #
127
- # NOTE: the `name` binding allows API services to override the binding
128
- # to use different resource name schemes, such as `users/*/operations`. To
129
- # override the binding, API services can add a binding such as
130
- # `"/v1/{name=users/*}/operations"` to their service configuration.
131
- # For backwards compatibility, the default name includes the operations
132
- # collection id, however overriding users must ensure the name binding
133
- # is the parent resource, without the operations collection id.
134
- #
135
127
  # @overload list_operations(request, options = nil)
136
128
  # Pass arguments to `list_operations` via a request object, either of type
137
129
  # {::Google::Longrunning::ListOperationsRequest} or an equivalent Hash.
@@ -221,7 +213,7 @@ module Google
221
213
  wrap_lro_operation = ->(op_response) { ::Gapic::Operation.new op_response, @operations_client }
222
214
  response = ::Gapic::PagedEnumerable.new @operations_stub, :list_operations, request, response, operation, options, format_resource: wrap_lro_operation
223
215
  yield response, operation if block_given?
224
- return response
216
+ throw :response, response
225
217
  end
226
218
  rescue ::GRPC::BadStatus => e
227
219
  raise ::Google::Cloud::Error.from_error(e)
@@ -317,7 +309,7 @@ module Google
317
309
  @operations_stub.call_rpc :get_operation, request, options: options do |response, operation|
318
310
  response = ::Gapic::Operation.new response, @operations_client, options: options
319
311
  yield response, operation if block_given?
320
- return response
312
+ throw :response, response
321
313
  end
322
314
  rescue ::GRPC::BadStatus => e
323
315
  raise ::Google::Cloud::Error.from_error(e)
@@ -406,7 +398,6 @@ module Google
406
398
 
407
399
  @operations_stub.call_rpc :delete_operation, request, options: options do |response, operation|
408
400
  yield response, operation if block_given?
409
- return response
410
401
  end
411
402
  rescue ::GRPC::BadStatus => e
412
403
  raise ::Google::Cloud::Error.from_error(e)
@@ -421,8 +412,9 @@ module Google
421
412
  # other methods to check whether the cancellation succeeded or whether the
422
413
  # operation completed despite cancellation. On successful cancellation,
423
414
  # the operation is not deleted; instead, it becomes an operation with
424
- # an {::Google::Longrunning::Operation#error Operation.error} value with a {::Google::Rpc::Status#code google.rpc.Status.code} of 1,
425
- # corresponding to `Code.CANCELLED`.
415
+ # an {::Google::Longrunning::Operation#error Operation.error} value with a
416
+ # {::Google::Rpc::Status#code google.rpc.Status.code} of `1`, corresponding to
417
+ # `Code.CANCELLED`.
426
418
  #
427
419
  # @overload cancel_operation(request, options = nil)
428
420
  # Pass arguments to `cancel_operation` via a request object, either of type
@@ -501,7 +493,6 @@ module Google
501
493
 
502
494
  @operations_stub.call_rpc :cancel_operation, request, options: options do |response, operation|
503
495
  yield response, operation if block_given?
504
- return response
505
496
  end
506
497
  rescue ::GRPC::BadStatus => e
507
498
  raise ::Google::Cloud::Error.from_error(e)
@@ -599,7 +590,7 @@ module Google
599
590
  @operations_stub.call_rpc :wait_operation, request, options: options do |response, operation|
600
591
  response = ::Gapic::Operation.new response, @operations_client, options: options
601
592
  yield response, operation if block_given?
602
- return response
593
+ throw :response, response
603
594
  end
604
595
  rescue ::GRPC::BadStatus => e
605
596
  raise ::Google::Cloud::Error.from_error(e)
@@ -649,6 +640,13 @@ module Google
649
640
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
650
641
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
651
642
  # * (`nil`) indicating no credentials
643
+ #
644
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
645
+ # external source for authentication to Google Cloud, you must validate it before
646
+ # providing it to a Google API client library. Providing an unvalidated credential
647
+ # configuration to Google APIs can compromise the security of your systems and data.
648
+ # For more information, refer to [Validate credential configurations from external
649
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
652
650
  # @return [::Object]
653
651
  # @!attribute [rw] scope
654
652
  # The OAuth scopes
@@ -688,6 +686,11 @@ module Google
688
686
  # default endpoint URL. The default value of nil uses the environment
689
687
  # universe (usually the default "googleapis.com" universe).
690
688
  # @return [::String,nil]
689
+ # @!attribute [rw] logger
690
+ # A custom logger to use for request/response debug logging, or the value
691
+ # `:default` (the default) to construct a default logger, or `nil` to
692
+ # explicitly disable logging.
693
+ # @return [::Logger,:default,nil]
691
694
  #
692
695
  class Configuration
693
696
  extend ::Gapic::Config
@@ -712,6 +715,7 @@ module Google
712
715
  config_attr :retry_policy, nil, ::Hash, ::Proc, nil
713
716
  config_attr :quota_project, nil, ::String, nil
714
717
  config_attr :universe_domain, nil, ::String, nil
718
+ config_attr :logger, :default, ::Logger, nil, :default
715
719
 
716
720
  # @private
717
721
  def initialize parent_config = nil