google-cloud-dataproc-v1 0.16.0 → 0.17.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 (36) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/google/cloud/dataproc/v1/autoscaling_policy_service/rest/client.rb +711 -0
  4. data/lib/google/cloud/dataproc/v1/autoscaling_policy_service/rest/service_stub.rb +382 -0
  5. data/lib/google/cloud/dataproc/v1/autoscaling_policy_service/rest.rb +54 -0
  6. data/lib/google/cloud/dataproc/v1/autoscaling_policy_service.rb +6 -0
  7. data/lib/google/cloud/dataproc/v1/batch_controller/rest/client.rb +640 -0
  8. data/lib/google/cloud/dataproc/v1/batch_controller/rest/operations.rb +820 -0
  9. data/lib/google/cloud/dataproc/v1/batch_controller/rest/service_stub.rb +285 -0
  10. data/lib/google/cloud/dataproc/v1/batch_controller/rest.rb +54 -0
  11. data/lib/google/cloud/dataproc/v1/batch_controller.rb +6 -0
  12. data/lib/google/cloud/dataproc/v1/bindings_override.rb +257 -0
  13. data/lib/google/cloud/dataproc/v1/cluster_controller/rest/client.rb +1117 -0
  14. data/lib/google/cloud/dataproc/v1/cluster_controller/rest/operations.rb +820 -0
  15. data/lib/google/cloud/dataproc/v1/cluster_controller/rest/service_stub.rb +539 -0
  16. data/lib/google/cloud/dataproc/v1/cluster_controller/rest.rb +55 -0
  17. data/lib/google/cloud/dataproc/v1/cluster_controller.rb +6 -0
  18. data/lib/google/cloud/dataproc/v1/job_controller/rest/client.rb +929 -0
  19. data/lib/google/cloud/dataproc/v1/job_controller/rest/operations.rb +820 -0
  20. data/lib/google/cloud/dataproc/v1/job_controller/rest/service_stub.rb +476 -0
  21. data/lib/google/cloud/dataproc/v1/job_controller/rest.rb +53 -0
  22. data/lib/google/cloud/dataproc/v1/job_controller.rb +6 -0
  23. data/lib/google/cloud/dataproc/v1/node_group_controller/rest/client.rb +581 -0
  24. data/lib/google/cloud/dataproc/v1/node_group_controller/rest/operations.rb +820 -0
  25. data/lib/google/cloud/dataproc/v1/node_group_controller/rest/service_stub.rb +227 -0
  26. data/lib/google/cloud/dataproc/v1/node_group_controller/rest.rb +55 -0
  27. data/lib/google/cloud/dataproc/v1/node_group_controller.rb +6 -0
  28. data/lib/google/cloud/dataproc/v1/rest.rb +43 -0
  29. data/lib/google/cloud/dataproc/v1/version.rb +1 -1
  30. data/lib/google/cloud/dataproc/v1/workflow_template_service/rest/client.rb +983 -0
  31. data/lib/google/cloud/dataproc/v1/workflow_template_service/rest/operations.rb +820 -0
  32. data/lib/google/cloud/dataproc/v1/workflow_template_service/rest/service_stub.rb +518 -0
  33. data/lib/google/cloud/dataproc/v1/workflow_template_service/rest.rb +55 -0
  34. data/lib/google/cloud/dataproc/v1/workflow_template_service.rb +6 -0
  35. data/lib/google/cloud/dataproc/v1.rb +5 -0
  36. metadata +30 -5
@@ -0,0 +1,285 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2023 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "google/cloud/dataproc/v1/batches_pb"
20
+
21
+ module Google
22
+ module Cloud
23
+ module Dataproc
24
+ module V1
25
+ module BatchController
26
+ module Rest
27
+ ##
28
+ # REST service stub for the BatchController service.
29
+ # Service stub contains baseline method implementations
30
+ # including transcoding, making the REST call, and deserialing the response.
31
+ #
32
+ class ServiceStub
33
+ def initialize endpoint:, credentials:
34
+ # These require statements are intentionally placed here to initialize
35
+ # the REST modules only when it's required.
36
+ require "gapic/rest"
37
+
38
+ @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, credentials: credentials,
39
+ numeric_enums: true,
40
+ raise_faraday_errors: false
41
+ end
42
+
43
+ ##
44
+ # Baseline implementation for the create_batch REST call
45
+ #
46
+ # @param request_pb [::Google::Cloud::Dataproc::V1::CreateBatchRequest]
47
+ # A request object representing the call parameters. Required.
48
+ # @param options [::Gapic::CallOptions]
49
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
50
+ #
51
+ # @yield [result, operation] Access the result along with the TransportOperation object
52
+ # @yieldparam result [::Google::Longrunning::Operation]
53
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
54
+ #
55
+ # @return [::Google::Longrunning::Operation]
56
+ # A result object deserialized from the server's reply
57
+ def create_batch request_pb, options = nil
58
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
59
+
60
+ verb, uri, query_string_params, body = ServiceStub.transcode_create_batch_request request_pb
61
+ query_string_params = if query_string_params.any?
62
+ query_string_params.to_h { |p| p.split("=", 2) }
63
+ else
64
+ {}
65
+ end
66
+
67
+ response = @client_stub.make_http_request(
68
+ verb,
69
+ uri: uri,
70
+ body: body || "",
71
+ params: query_string_params,
72
+ options: options
73
+ )
74
+ operation = ::Gapic::Rest::TransportOperation.new response
75
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
76
+
77
+ yield result, operation if block_given?
78
+ result
79
+ end
80
+
81
+ ##
82
+ # Baseline implementation for the get_batch REST call
83
+ #
84
+ # @param request_pb [::Google::Cloud::Dataproc::V1::GetBatchRequest]
85
+ # A request object representing the call parameters. Required.
86
+ # @param options [::Gapic::CallOptions]
87
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
88
+ #
89
+ # @yield [result, operation] Access the result along with the TransportOperation object
90
+ # @yieldparam result [::Google::Cloud::Dataproc::V1::Batch]
91
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
92
+ #
93
+ # @return [::Google::Cloud::Dataproc::V1::Batch]
94
+ # A result object deserialized from the server's reply
95
+ def get_batch request_pb, options = nil
96
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
97
+
98
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_batch_request request_pb
99
+ query_string_params = if query_string_params.any?
100
+ query_string_params.to_h { |p| p.split("=", 2) }
101
+ else
102
+ {}
103
+ end
104
+
105
+ response = @client_stub.make_http_request(
106
+ verb,
107
+ uri: uri,
108
+ body: body || "",
109
+ params: query_string_params,
110
+ options: options
111
+ )
112
+ operation = ::Gapic::Rest::TransportOperation.new response
113
+ result = ::Google::Cloud::Dataproc::V1::Batch.decode_json response.body, ignore_unknown_fields: true
114
+
115
+ yield result, operation if block_given?
116
+ result
117
+ end
118
+
119
+ ##
120
+ # Baseline implementation for the list_batches REST call
121
+ #
122
+ # @param request_pb [::Google::Cloud::Dataproc::V1::ListBatchesRequest]
123
+ # A request object representing the call parameters. Required.
124
+ # @param options [::Gapic::CallOptions]
125
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
126
+ #
127
+ # @yield [result, operation] Access the result along with the TransportOperation object
128
+ # @yieldparam result [::Google::Cloud::Dataproc::V1::ListBatchesResponse]
129
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
130
+ #
131
+ # @return [::Google::Cloud::Dataproc::V1::ListBatchesResponse]
132
+ # A result object deserialized from the server's reply
133
+ def list_batches request_pb, options = nil
134
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
135
+
136
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_batches_request request_pb
137
+ query_string_params = if query_string_params.any?
138
+ query_string_params.to_h { |p| p.split("=", 2) }
139
+ else
140
+ {}
141
+ end
142
+
143
+ response = @client_stub.make_http_request(
144
+ verb,
145
+ uri: uri,
146
+ body: body || "",
147
+ params: query_string_params,
148
+ options: options
149
+ )
150
+ operation = ::Gapic::Rest::TransportOperation.new response
151
+ result = ::Google::Cloud::Dataproc::V1::ListBatchesResponse.decode_json response.body, ignore_unknown_fields: true
152
+
153
+ yield result, operation if block_given?
154
+ result
155
+ end
156
+
157
+ ##
158
+ # Baseline implementation for the delete_batch REST call
159
+ #
160
+ # @param request_pb [::Google::Cloud::Dataproc::V1::DeleteBatchRequest]
161
+ # A request object representing the call parameters. Required.
162
+ # @param options [::Gapic::CallOptions]
163
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
164
+ #
165
+ # @yield [result, operation] Access the result along with the TransportOperation object
166
+ # @yieldparam result [::Google::Protobuf::Empty]
167
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
168
+ #
169
+ # @return [::Google::Protobuf::Empty]
170
+ # A result object deserialized from the server's reply
171
+ def delete_batch request_pb, options = nil
172
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
173
+
174
+ verb, uri, query_string_params, body = ServiceStub.transcode_delete_batch_request request_pb
175
+ query_string_params = if query_string_params.any?
176
+ query_string_params.to_h { |p| p.split("=", 2) }
177
+ else
178
+ {}
179
+ end
180
+
181
+ response = @client_stub.make_http_request(
182
+ verb,
183
+ uri: uri,
184
+ body: body || "",
185
+ params: query_string_params,
186
+ options: options
187
+ )
188
+ operation = ::Gapic::Rest::TransportOperation.new response
189
+ result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
190
+
191
+ yield result, operation if block_given?
192
+ result
193
+ end
194
+
195
+ ##
196
+ # @private
197
+ #
198
+ # GRPC transcoding helper method for the create_batch REST call
199
+ #
200
+ # @param request_pb [::Google::Cloud::Dataproc::V1::CreateBatchRequest]
201
+ # A request object representing the call parameters. Required.
202
+ # @return [Array(String, [String, nil], Hash{String => String})]
203
+ # Uri, Body, Query string parameters
204
+ def self.transcode_create_batch_request request_pb
205
+ transcoder = Gapic::Rest::GrpcTranscoder.new
206
+ .with_bindings(
207
+ uri_method: :post,
208
+ uri_template: "/v1/{parent}/batches",
209
+ body: "batch",
210
+ matches: [
211
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
212
+ ]
213
+ )
214
+ transcoder.transcode request_pb
215
+ end
216
+
217
+ ##
218
+ # @private
219
+ #
220
+ # GRPC transcoding helper method for the get_batch REST call
221
+ #
222
+ # @param request_pb [::Google::Cloud::Dataproc::V1::GetBatchRequest]
223
+ # A request object representing the call parameters. Required.
224
+ # @return [Array(String, [String, nil], Hash{String => String})]
225
+ # Uri, Body, Query string parameters
226
+ def self.transcode_get_batch_request request_pb
227
+ transcoder = Gapic::Rest::GrpcTranscoder.new
228
+ .with_bindings(
229
+ uri_method: :get,
230
+ uri_template: "/v1/{name}",
231
+ matches: [
232
+ ["name", %r{^projects/[^/]+/locations/[^/]+/batches/[^/]+/?$}, false]
233
+ ]
234
+ )
235
+ transcoder.transcode request_pb
236
+ end
237
+
238
+ ##
239
+ # @private
240
+ #
241
+ # GRPC transcoding helper method for the list_batches REST call
242
+ #
243
+ # @param request_pb [::Google::Cloud::Dataproc::V1::ListBatchesRequest]
244
+ # A request object representing the call parameters. Required.
245
+ # @return [Array(String, [String, nil], Hash{String => String})]
246
+ # Uri, Body, Query string parameters
247
+ def self.transcode_list_batches_request request_pb
248
+ transcoder = Gapic::Rest::GrpcTranscoder.new
249
+ .with_bindings(
250
+ uri_method: :get,
251
+ uri_template: "/v1/{parent}/batches",
252
+ matches: [
253
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
254
+ ]
255
+ )
256
+ transcoder.transcode request_pb
257
+ end
258
+
259
+ ##
260
+ # @private
261
+ #
262
+ # GRPC transcoding helper method for the delete_batch REST call
263
+ #
264
+ # @param request_pb [::Google::Cloud::Dataproc::V1::DeleteBatchRequest]
265
+ # A request object representing the call parameters. Required.
266
+ # @return [Array(String, [String, nil], Hash{String => String})]
267
+ # Uri, Body, Query string parameters
268
+ def self.transcode_delete_batch_request request_pb
269
+ transcoder = Gapic::Rest::GrpcTranscoder.new
270
+ .with_bindings(
271
+ uri_method: :delete,
272
+ uri_template: "/v1/{name}",
273
+ matches: [
274
+ ["name", %r{^projects/[^/]+/locations/[^/]+/batches/[^/]+/?$}, false]
275
+ ]
276
+ )
277
+ transcoder.transcode request_pb
278
+ end
279
+ end
280
+ end
281
+ end
282
+ end
283
+ end
284
+ end
285
+ end
@@ -0,0 +1,54 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2023 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "gapic/rest"
20
+ require "gapic/config"
21
+ require "gapic/config/method"
22
+
23
+ require "google/cloud/dataproc/v1/version"
24
+ require "google/cloud/dataproc/v1/bindings_override"
25
+
26
+ require "google/cloud/dataproc/v1/batch_controller/credentials"
27
+ require "google/cloud/dataproc/v1/batch_controller/paths"
28
+ require "google/cloud/dataproc/v1/batch_controller/rest/operations"
29
+ require "google/cloud/dataproc/v1/batch_controller/rest/client"
30
+
31
+ module Google
32
+ module Cloud
33
+ module Dataproc
34
+ module V1
35
+ ##
36
+ # The BatchController provides methods to manage batch workloads.
37
+ #
38
+ # To load this service and instantiate a REST client:
39
+ #
40
+ # require "google/cloud/dataproc/v1/batch_controller/rest"
41
+ # client = ::Google::Cloud::Dataproc::V1::BatchController::Rest::Client.new
42
+ #
43
+ module BatchController
44
+ # Client for the REST transport
45
+ module Rest
46
+ end
47
+ end
48
+ end
49
+ end
50
+ end
51
+ end
52
+
53
+ helper_path = ::File.join __dir__, "rest", "helpers.rb"
54
+ require "google/cloud/dataproc/v1/batch_controller/rest/helpers" if ::File.file? helper_path
@@ -26,6 +26,7 @@ require "google/cloud/dataproc/v1/batch_controller/credentials"
26
26
  require "google/cloud/dataproc/v1/batch_controller/paths"
27
27
  require "google/cloud/dataproc/v1/batch_controller/operations"
28
28
  require "google/cloud/dataproc/v1/batch_controller/client"
29
+ require "google/cloud/dataproc/v1/batch_controller/rest"
29
30
 
30
31
  module Google
31
32
  module Cloud
@@ -39,6 +40,11 @@ module Google
39
40
  # require "google/cloud/dataproc/v1/batch_controller"
40
41
  # client = ::Google::Cloud::Dataproc::V1::BatchController::Client.new
41
42
  #
43
+ # @example Load this service and instantiate a REST client
44
+ #
45
+ # require "google/cloud/dataproc/v1/batch_controller/rest"
46
+ # client = ::Google::Cloud::Dataproc::V1::BatchController::Rest::Client.new
47
+ #
42
48
  module BatchController
43
49
  end
44
50
  end
@@ -0,0 +1,257 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2023 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "gapic/config"
20
+
21
+ module Google
22
+ module Cloud
23
+ module Dataproc
24
+ ##
25
+ # @example Loading just the REST part of this package, including all its services, and instantiating a REST client
26
+ #
27
+ # require "google/cloud/dataproc/v1/rest"
28
+ # client = ::Google::Cloud::Dataproc::V1::AutoscalingPolicyService::Rest::Client.new
29
+ #
30
+ module V1
31
+ ##
32
+ # @private
33
+ # Initialize the mixin bindings configuration
34
+ #
35
+ def self.configure
36
+ @configure ||= begin
37
+ namespace = ["Google", "Cloud", "Dataproc"]
38
+ parent_config = while namespace.any?
39
+ parent_name = namespace.join "::"
40
+ parent_const = const_get parent_name
41
+ break parent_const.configure if parent_const.respond_to? :configure
42
+ namespace.pop
43
+ end
44
+
45
+ default_config = Configuration.new parent_config
46
+ default_config.bindings_override["google.iam.v1.IAMPolicy.GetIamPolicy"] = [
47
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
48
+ uri_method: :post,
49
+ uri_template: "/v1/{resource}:getIamPolicy",
50
+ matches: [
51
+ ["resource", %r{^projects/[^/]+/regions/[^/]+/clusters/[^/]+/?$}, false]
52
+ ],
53
+ body: "*"
54
+ ),
55
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
56
+ uri_method: :post,
57
+ uri_template: "/v1/{resource}:getIamPolicy",
58
+ matches: [
59
+ ["resource", %r{^projects/[^/]+/regions/[^/]+/jobs/[^/]+/?$}, false]
60
+ ],
61
+ body: "*"
62
+ ),
63
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
64
+ uri_method: :post,
65
+ uri_template: "/v1/{resource}:getIamPolicy",
66
+ matches: [
67
+ ["resource", %r{^projects/[^/]+/regions/[^/]+/operations/[^/]+/?$}, false]
68
+ ],
69
+ body: "*"
70
+ ),
71
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
72
+ uri_method: :post,
73
+ uri_template: "/v1/{resource}:getIamPolicy",
74
+ matches: [
75
+ ["resource", %r{^projects/[^/]+/regions/[^/]+/workflowTemplates/[^/]+/?$}, false]
76
+ ],
77
+ body: "*"
78
+ ),
79
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
80
+ uri_method: :post,
81
+ uri_template: "/v1/{resource}:getIamPolicy",
82
+ matches: [
83
+ ["resource", %r{^projects/[^/]+/locations/[^/]+/workflowTemplates/[^/]+/?$}, false]
84
+ ],
85
+ body: "*"
86
+ ),
87
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
88
+ uri_method: :post,
89
+ uri_template: "/v1/{resource}:getIamPolicy",
90
+ matches: [
91
+ ["resource", %r{^projects/[^/]+/regions/[^/]+/autoscalingPolicies/[^/]+/?$}, false]
92
+ ],
93
+ body: "*"
94
+ ),
95
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
96
+ uri_method: :post,
97
+ uri_template: "/v1/{resource}:getIamPolicy",
98
+ matches: [
99
+ ["resource", %r{^projects/[^/]+/locations/[^/]+/autoscalingPolicies/[^/]+/?$}, false]
100
+ ],
101
+ body: "*"
102
+ )
103
+ ]
104
+ default_config.bindings_override["google.iam.v1.IAMPolicy.SetIamPolicy"] = [
105
+
106
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
107
+ uri_method: :post,
108
+ uri_template: "/v1/{resource}:setIamPolicy",
109
+ matches: [
110
+ ["resource", %r{^projects/[^/]+/regions/[^/]+/clusters/[^/]+/?$}, false]
111
+ ],
112
+ body: "*"
113
+ ),
114
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
115
+ uri_method: :post,
116
+ uri_template: "/v1/{resource}:setIamPolicy",
117
+ matches: [
118
+ ["resource", %r{^projects/[^/]+/regions/[^/]+/jobs/[^/]+/?$}, false]
119
+ ],
120
+ body: "*"
121
+ ),
122
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
123
+ uri_method: :post,
124
+ uri_template: "/v1/{resource}:setIamPolicy",
125
+ matches: [
126
+ ["resource", %r{^projects/[^/]+/regions/[^/]+/operations/[^/]+/?$}, false]
127
+ ],
128
+ body: "*"
129
+ ),
130
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
131
+ uri_method: :post,
132
+ uri_template: "/v1/{resource}:setIamPolicy",
133
+ matches: [
134
+ ["resource", %r{^projects/[^/]+/regions/[^/]+/workflowTemplates/[^/]+/?$}, false]
135
+ ],
136
+ body: "*"
137
+ ),
138
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
139
+ uri_method: :post,
140
+ uri_template: "/v1/{resource}:setIamPolicy",
141
+ matches: [
142
+ ["resource", %r{^projects/[^/]+/locations/[^/]+/workflowTemplates/[^/]+/?$}, false]
143
+ ],
144
+ body: "*"
145
+ ),
146
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
147
+ uri_method: :post,
148
+ uri_template: "/v1/{resource}:setIamPolicy",
149
+ matches: [
150
+ ["resource", %r{^projects/[^/]+/regions/[^/]+/autoscalingPolicies/[^/]+/?$}, false]
151
+ ],
152
+ body: "*"
153
+ ),
154
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
155
+ uri_method: :post,
156
+ uri_template: "/v1/{resource}:setIamPolicy",
157
+ matches: [
158
+ ["resource", %r{^projects/[^/]+/locations/[^/]+/autoscalingPolicies/[^/]+/?$}, false]
159
+ ],
160
+ body: "*"
161
+ )
162
+ ]
163
+ default_config.bindings_override["google.iam.v1.IAMPolicy.TestIamPermissions"] = [
164
+
165
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
166
+ uri_method: :post,
167
+ uri_template: "/v1/{resource}:testIamPermissions",
168
+ matches: [
169
+ ["resource", %r{^projects/[^/]+/regions/[^/]+/clusters/[^/]+/?$}, false]
170
+ ],
171
+ body: "*"
172
+ ),
173
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
174
+ uri_method: :post,
175
+ uri_template: "/v1/{resource}:testIamPermissions",
176
+ matches: [
177
+ ["resource", %r{^projects/[^/]+/regions/[^/]+/jobs/[^/]+/?$}, false]
178
+ ],
179
+ body: "*"
180
+ ),
181
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
182
+ uri_method: :post,
183
+ uri_template: "/v1/{resource}:testIamPermissions",
184
+ matches: [
185
+ ["resource", %r{^projects/[^/]+/regions/[^/]+/operations/[^/]+/?$}, false]
186
+ ],
187
+ body: "*"
188
+ ),
189
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
190
+ uri_method: :post,
191
+ uri_template: "/v1/{resource}:testIamPermissions",
192
+ matches: [
193
+ ["resource", %r{^projects/[^/]+/regions/[^/]+/workflowTemplates/[^/]+/?$}, false]
194
+ ],
195
+ body: "*"
196
+ ),
197
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
198
+ uri_method: :post,
199
+ uri_template: "/v1/{resource}:testIamPermissions",
200
+ matches: [
201
+ ["resource", %r{^projects/[^/]+/locations/[^/]+/workflowTemplates/[^/]+/?$}, false]
202
+ ],
203
+ body: "*"
204
+ ),
205
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
206
+ uri_method: :post,
207
+ uri_template: "/v1/{resource}:testIamPermissions",
208
+ matches: [
209
+ ["resource", %r{^projects/[^/]+/regions/[^/]+/autoscalingPolicies/[^/]+/?$}, false]
210
+ ],
211
+ body: "*"
212
+ ),
213
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
214
+ uri_method: :post,
215
+ uri_template: "/v1/{resource}:testIamPermissions",
216
+ matches: [
217
+ ["resource", %r{^projects/[^/]+/locations/[^/]+/autoscalingPolicies/[^/]+/?$}, false]
218
+ ],
219
+ body: "*"
220
+ )
221
+ ]
222
+ default_config
223
+ end
224
+ yield @configure if block_given?
225
+ @configure
226
+ end
227
+
228
+ ##
229
+ # @private
230
+ # Configuration class for the google.cloud.dataproc.v1 package.
231
+ #
232
+ # This class contains common configuration for all services
233
+ # of the google.cloud.dataproc.v1 package.
234
+ #
235
+ # This configuration is for internal use of the client library classes,
236
+ # and it is not intended that the end-users will read or change it.
237
+ #
238
+ class Configuration
239
+ extend ::Gapic::Config
240
+
241
+ # @private
242
+ # Overrides for http bindings for the RPC of the mixins for this package.
243
+ # Services in this package should use these when creating clients for the mixin services.
244
+ # @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
245
+ config_attr :bindings_override, {}, ::Hash, nil
246
+
247
+ # @private
248
+ def initialize parent_config = nil
249
+ @parent_config = parent_config unless parent_config.nil?
250
+
251
+ yield self if block_given?
252
+ end
253
+ end
254
+ end
255
+ end
256
+ end
257
+ end