google-cloud-dataproc-v1 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHENTICATION.md +6 -6
  3. data/README.md +1 -1
  4. data/lib/google/cloud/dataproc/v1.rb +1 -1
  5. data/lib/google/cloud/dataproc/v1/autoscaling_policy_service.rb +1 -1
  6. data/lib/google/cloud/dataproc/v1/autoscaling_policy_service/client.rb +120 -120
  7. data/lib/google/cloud/dataproc/v1/autoscaling_policy_service/credentials.rb +1 -1
  8. data/lib/google/cloud/dataproc/v1/autoscaling_policy_service/paths.rb +10 -10
  9. data/lib/google/cloud/dataproc/v1/cluster_controller.rb +1 -1
  10. data/lib/google/cloud/dataproc/v1/cluster_controller/client.rb +170 -170
  11. data/lib/google/cloud/dataproc/v1/cluster_controller/credentials.rb +1 -1
  12. data/lib/google/cloud/dataproc/v1/cluster_controller/operations.rb +100 -100
  13. data/lib/google/cloud/dataproc/v1/job_controller.rb +1 -1
  14. data/lib/google/cloud/dataproc/v1/job_controller/client.rb +177 -177
  15. data/lib/google/cloud/dataproc/v1/job_controller/credentials.rb +1 -1
  16. data/lib/google/cloud/dataproc/v1/job_controller/operations.rb +100 -100
  17. data/lib/google/cloud/dataproc/v1/version.rb +1 -1
  18. data/lib/google/cloud/dataproc/v1/workflow_template_service.rb +1 -1
  19. data/lib/google/cloud/dataproc/v1/workflow_template_service/client.rb +170 -170
  20. data/lib/google/cloud/dataproc/v1/workflow_template_service/credentials.rb +1 -1
  21. data/lib/google/cloud/dataproc/v1/workflow_template_service/operations.rb +100 -100
  22. data/lib/google/cloud/dataproc/v1/workflow_template_service/paths.rb +10 -10
  23. data/proto_docs/google/api/resource.rb +12 -12
  24. data/proto_docs/google/cloud/dataproc/v1/autoscaling_policies.rb +45 -45
  25. data/proto_docs/google/cloud/dataproc/v1/clusters.rb +186 -186
  26. data/proto_docs/google/cloud/dataproc/v1/jobs.rb +223 -223
  27. data/proto_docs/google/cloud/dataproc/v1/operations.rb +20 -20
  28. data/proto_docs/google/cloud/dataproc/v1/workflow_templates.rb +143 -143
  29. data/proto_docs/google/longrunning/operations.rb +30 -30
  30. data/proto_docs/google/protobuf/any.rb +4 -4
  31. data/proto_docs/google/protobuf/duration.rb +4 -4
  32. data/proto_docs/google/protobuf/empty.rb +2 -2
  33. data/proto_docs/google/protobuf/field_mask.rb +3 -3
  34. data/proto_docs/google/protobuf/timestamp.rb +4 -4
  35. data/proto_docs/google/rpc/status.rb +6 -6
  36. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5a2de0afc53ebc1ee5583a96920dec4de0ce0a011333a63d514529952637546b
4
- data.tar.gz: 58400c54e9cb8c5d158e001126404bce8b88098e8ba16f68bb09b92dc53057f8
3
+ metadata.gz: 59d087bded22ed2ca963a03f5e00fba7e0d7e37a8f47f0bc96f6dee85fa49cd6
4
+ data.tar.gz: 7bdebfe1edeaa0b21b790a4efdc528ab928e9281125d2b9032fc3f0d38967416
5
5
  SHA512:
6
- metadata.gz: 7296ac19b8827dec6b3db466363da8f19ca036e5f777e904672a0bf7fb6277c0ebd946fbbab36c9910b4acf5f685acd9b66ac54bc921f9e4045ec1c92c9eee4d
7
- data.tar.gz: 664f6d617f119723f07351c9c64de6f21ff041a42531e04a2f84bc10de4594e5a76ab147e8d7f4a2d9ed518915cc6440c315af340e47074d516ad6ad47254bfd
6
+ metadata.gz: 0fb6daa713848cafc4c45bf6ef8ee400464be4a61be9d6cb904294eb5e9fae7310292983a034a7c570f5632910e4b21cf836656cbf84430495d998f091611ced
7
+ data.tar.gz: 9d32bc98b5466a57c89932c72195faaf1742f5811340a1581ca186f298361e488835d3d39b6e41928ec146778505da6c0a5ec937dcfd8ec04a98ad732b55df6f
data/AUTHENTICATION.md CHANGED
@@ -27,7 +27,7 @@ export DATAPROC_CREDENTIALS=path/to/keyfile.json
27
27
  ```ruby
28
28
  require "google/cloud/dataproc/v1"
29
29
 
30
- client = Google::Cloud::Dataproc::V1::AutoscalingPolicyService::Client.new
30
+ client = ::Google::Cloud::Dataproc::V1::AutoscalingPolicyService::Client.new
31
31
  ```
32
32
 
33
33
  ## Credential Lookup
@@ -64,7 +64,7 @@ containers where writing files is difficult or not encouraged.
64
64
 
65
65
  The environment variables that google-cloud-dataproc-v1
66
66
  checks for credentials are configured on the service Credentials class (such as
67
- {Google::Cloud::Dataproc::V1::AutoscalingPolicyService::Credentials}):
67
+ {::Google::Cloud::Dataproc::V1::AutoscalingPolicyService::Credentials}):
68
68
 
69
69
  1. `DATAPROC_CREDENTIALS` - Path to JSON file, or JSON contents
70
70
  2. `DATAPROC_KEYFILE` - Path to JSON file, or JSON contents
@@ -77,7 +77,7 @@ require "google/cloud/dataproc/v1"
77
77
 
78
78
  ENV["DATAPROC_CREDENTIALS"] = "path/to/keyfile.json"
79
79
 
80
- client = Google::Cloud::Dataproc::V1::AutoscalingPolicyService::Client.new
80
+ client = ::Google::Cloud::Dataproc::V1::AutoscalingPolicyService::Client.new
81
81
  ```
82
82
 
83
83
  ### Configuration
@@ -88,7 +88,7 @@ environment variables. Either on an individual client initialization:
88
88
  ```ruby
89
89
  require "google/cloud/dataproc/v1"
90
90
 
91
- client = Google::Cloud::Dataproc::V1::AutoscalingPolicyService::Client.new do |config|
91
+ client = ::Google::Cloud::Dataproc::V1::AutoscalingPolicyService::Client.new do |config|
92
92
  config.credentials = "path/to/keyfile.json"
93
93
  end
94
94
  ```
@@ -98,11 +98,11 @@ Or configured globally for all clients:
98
98
  ```ruby
99
99
  require "google/cloud/dataproc/v1"
100
100
 
101
- Google::Cloud::Dataproc::V1::AutoscalingPolicyService::Client.configure do |config|
101
+ ::Google::Cloud::Dataproc::V1::AutoscalingPolicyService::Client.configure do |config|
102
102
  config.credentials = "path/to/keyfile.json"
103
103
  end
104
104
 
105
- client = Google::Cloud::Dataproc::V1::AutoscalingPolicyService::Client.new
105
+ client = ::Google::Cloud::Dataproc::V1::AutoscalingPolicyService::Client.new
106
106
  ```
107
107
 
108
108
  ### Cloud SDK
data/README.md CHANGED
@@ -25,7 +25,7 @@ In order to use this library, you first need to go through the following steps:
25
25
  ```ruby
26
26
  require "google/cloud/dataproc/v1"
27
27
 
28
- client = Google::Cloud::Dataproc::V1::AutoscalingPolicyService::Client.new
28
+ client = ::Google::Cloud::Dataproc::V1::AutoscalingPolicyService::Client.new
29
29
  request = my_create_request
30
30
  response = client.create_autoscaling_policy request
31
31
  ```
@@ -29,7 +29,7 @@ module Google
29
29
  # To load this package, including all its services, and instantiate a client:
30
30
  #
31
31
  # require "google/cloud/dataproc/v1"
32
- # client = Google::Cloud::Dataproc::V1::AutoscalingPolicyService::Client.new
32
+ # client = ::Google::Cloud::Dataproc::V1::AutoscalingPolicyService::Client.new
33
33
  #
34
34
  module V1
35
35
  end
@@ -37,7 +37,7 @@ module Google
37
37
  # To load this service and instantiate a client:
38
38
  #
39
39
  # require "google/cloud/dataproc/v1/autoscaling_policy_service"
40
- # client = Google::Cloud::Dataproc::V1::AutoscalingPolicyService::Client.new
40
+ # client = ::Google::Cloud::Dataproc::V1::AutoscalingPolicyService::Client.new
41
41
  #
42
42
  module AutoscalingPolicyService
43
43
  end
@@ -39,15 +39,15 @@ module Google
39
39
  ##
40
40
  # Configure the AutoscalingPolicyService Client class.
41
41
  #
42
- # See {Google::Cloud::Dataproc::V1::AutoscalingPolicyService::Client::Configuration}
42
+ # See {::Google::Cloud::Dataproc::V1::AutoscalingPolicyService::Client::Configuration}
43
43
  # for a description of the configuration fields.
44
44
  #
45
45
  # ## Example
46
46
  #
47
47
  # To modify the configuration for all AutoscalingPolicyService clients:
48
48
  #
49
- # Google::Cloud::Dataproc::V1::AutoscalingPolicyService::Client.configure do |config|
50
- # config.timeout = 10_000
49
+ # ::Google::Cloud::Dataproc::V1::AutoscalingPolicyService::Client.configure do |config|
50
+ # config.timeout = 10.0
51
51
  # end
52
52
  #
53
53
  # @yield [config] Configure the Client client.
@@ -107,7 +107,7 @@ module Google
107
107
  # but structural changes (adding new fields, etc.) are not allowed. Structural changes
108
108
  # should be made on {Client.configure}.
109
109
  #
110
- # See {Google::Cloud::Dataproc::V1::AutoscalingPolicyService::Client::Configuration}
110
+ # See {::Google::Cloud::Dataproc::V1::AutoscalingPolicyService::Client::Configuration}
111
111
  # for a description of the configuration fields.
112
112
  #
113
113
  # @yield [config] Configure the Client client.
@@ -128,13 +128,13 @@ module Google
128
128
  # To create a new AutoscalingPolicyService client with the default
129
129
  # configuration:
130
130
  #
131
- # client = Google::Cloud::Dataproc::V1::AutoscalingPolicyService::Client.new
131
+ # client = ::Google::Cloud::Dataproc::V1::AutoscalingPolicyService::Client.new
132
132
  #
133
133
  # To create a new AutoscalingPolicyService client with a custom
134
134
  # configuration:
135
135
  #
136
- # client = Google::Cloud::Dataproc::V1::AutoscalingPolicyService::Client.new do |config|
137
- # config.timeout = 10_000
136
+ # client = ::Google::Cloud::Dataproc::V1::AutoscalingPolicyService::Client.new do |config|
137
+ # config.timeout = 10.0
138
138
  # end
139
139
  #
140
140
  # @yield [config] Configure the AutoscalingPolicyService client.
@@ -161,8 +161,8 @@ module Google
161
161
  end
162
162
  @quota_project_id = credentials.respond_to?(:quota_project_id) ? credentials.quota_project_id : nil
163
163
 
164
- @autoscaling_policy_service_stub = Gapic::ServiceStub.new(
165
- Google::Cloud::Dataproc::V1::AutoscalingPolicyService::Stub,
164
+ @autoscaling_policy_service_stub = ::Gapic::ServiceStub.new(
165
+ ::Google::Cloud::Dataproc::V1::AutoscalingPolicyService::Stub,
166
166
  credentials: credentials,
167
167
  endpoint: @config.endpoint,
168
168
  channel_args: @config.channel_args,
@@ -177,12 +177,12 @@ module Google
177
177
  #
178
178
  # @overload create_autoscaling_policy(request, options = nil)
179
179
  # Pass arguments to `create_autoscaling_policy` via a request object, either of type
180
- # {Google::Cloud::Dataproc::V1::CreateAutoscalingPolicyRequest} or an equivalent Hash.
180
+ # {::Google::Cloud::Dataproc::V1::CreateAutoscalingPolicyRequest} or an equivalent Hash.
181
181
  #
182
- # @param request [Google::Cloud::Dataproc::V1::CreateAutoscalingPolicyRequest, Hash]
182
+ # @param request [::Google::Cloud::Dataproc::V1::CreateAutoscalingPolicyRequest, ::Hash]
183
183
  # A request object representing the call parameters. Required. To specify no
184
184
  # parameters, or to keep all the default parameter values, pass an empty Hash.
185
- # @param options [Gapic::CallOptions, Hash]
185
+ # @param options [::Gapic::CallOptions, ::Hash]
186
186
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
187
187
  #
188
188
  # @overload create_autoscaling_policy(parent: nil, policy: nil)
@@ -190,7 +190,7 @@ module Google
190
190
  # least one keyword argument is required. To specify no parameters, or to keep all
191
191
  # the default parameter values, pass an empty Hash as a request object (see above).
192
192
  #
193
- # @param parent [String]
193
+ # @param parent [::String]
194
194
  # Required. The "resource name" of the region or location, as described
195
195
  # in https://cloud.google.com/apis/design/resource_names.
196
196
  #
@@ -201,30 +201,30 @@ module Google
201
201
  # * For `projects.locations.autoscalingPolicies.create`, the resource name
202
202
  # of the location has the following format:
203
203
  # `projects/{project_id}/locations/{location}`
204
- # @param policy [Google::Cloud::Dataproc::V1::AutoscalingPolicy, Hash]
204
+ # @param policy [::Google::Cloud::Dataproc::V1::AutoscalingPolicy, ::Hash]
205
205
  # Required. The autoscaling policy to create.
206
206
  #
207
207
  # @yield [response, operation] Access the result along with the RPC operation
208
- # @yieldparam response [Google::Cloud::Dataproc::V1::AutoscalingPolicy]
209
- # @yieldparam operation [GRPC::ActiveCall::Operation]
208
+ # @yieldparam response [::Google::Cloud::Dataproc::V1::AutoscalingPolicy]
209
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
210
210
  #
211
- # @return [Google::Cloud::Dataproc::V1::AutoscalingPolicy]
211
+ # @return [::Google::Cloud::Dataproc::V1::AutoscalingPolicy]
212
212
  #
213
- # @raise [Google::Cloud::Error] if the RPC is aborted.
213
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
214
214
  #
215
215
  def create_autoscaling_policy request, options = nil
216
- raise ArgumentError, "request must be provided" if request.nil?
216
+ raise ::ArgumentError, "request must be provided" if request.nil?
217
217
 
218
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Dataproc::V1::CreateAutoscalingPolicyRequest
218
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataproc::V1::CreateAutoscalingPolicyRequest
219
219
 
220
220
  # Converts hash and nil to an options object
221
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
221
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
222
222
 
223
223
  # Customize the options with defaults
224
224
  metadata = @config.rpcs.create_autoscaling_policy.metadata.to_h
225
225
 
226
226
  # Set x-goog-api-client and x-goog-user-project headers
227
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
227
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
228
228
  lib_name: @config.lib_name, lib_version: @config.lib_version,
229
229
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION
230
230
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -245,8 +245,8 @@ module Google
245
245
  yield response, operation if block_given?
246
246
  return response
247
247
  end
248
- rescue GRPC::BadStatus => e
249
- raise Google::Cloud::Error.from_error(e)
248
+ rescue ::GRPC::BadStatus => e
249
+ raise ::Google::Cloud::Error.from_error(e)
250
250
  end
251
251
 
252
252
  ##
@@ -257,12 +257,12 @@ module Google
257
257
  #
258
258
  # @overload update_autoscaling_policy(request, options = nil)
259
259
  # Pass arguments to `update_autoscaling_policy` via a request object, either of type
260
- # {Google::Cloud::Dataproc::V1::UpdateAutoscalingPolicyRequest} or an equivalent Hash.
260
+ # {::Google::Cloud::Dataproc::V1::UpdateAutoscalingPolicyRequest} or an equivalent Hash.
261
261
  #
262
- # @param request [Google::Cloud::Dataproc::V1::UpdateAutoscalingPolicyRequest, Hash]
262
+ # @param request [::Google::Cloud::Dataproc::V1::UpdateAutoscalingPolicyRequest, ::Hash]
263
263
  # A request object representing the call parameters. Required. To specify no
264
264
  # parameters, or to keep all the default parameter values, pass an empty Hash.
265
- # @param options [Gapic::CallOptions, Hash]
265
+ # @param options [::Gapic::CallOptions, ::Hash]
266
266
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
267
267
  #
268
268
  # @overload update_autoscaling_policy(policy: nil)
@@ -270,30 +270,30 @@ module Google
270
270
  # least one keyword argument is required. To specify no parameters, or to keep all
271
271
  # the default parameter values, pass an empty Hash as a request object (see above).
272
272
  #
273
- # @param policy [Google::Cloud::Dataproc::V1::AutoscalingPolicy, Hash]
273
+ # @param policy [::Google::Cloud::Dataproc::V1::AutoscalingPolicy, ::Hash]
274
274
  # Required. The updated autoscaling policy.
275
275
  #
276
276
  # @yield [response, operation] Access the result along with the RPC operation
277
- # @yieldparam response [Google::Cloud::Dataproc::V1::AutoscalingPolicy]
278
- # @yieldparam operation [GRPC::ActiveCall::Operation]
277
+ # @yieldparam response [::Google::Cloud::Dataproc::V1::AutoscalingPolicy]
278
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
279
279
  #
280
- # @return [Google::Cloud::Dataproc::V1::AutoscalingPolicy]
280
+ # @return [::Google::Cloud::Dataproc::V1::AutoscalingPolicy]
281
281
  #
282
- # @raise [Google::Cloud::Error] if the RPC is aborted.
282
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
283
283
  #
284
284
  def update_autoscaling_policy request, options = nil
285
- raise ArgumentError, "request must be provided" if request.nil?
285
+ raise ::ArgumentError, "request must be provided" if request.nil?
286
286
 
287
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Dataproc::V1::UpdateAutoscalingPolicyRequest
287
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataproc::V1::UpdateAutoscalingPolicyRequest
288
288
 
289
289
  # Converts hash and nil to an options object
290
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
290
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
291
291
 
292
292
  # Customize the options with defaults
293
293
  metadata = @config.rpcs.update_autoscaling_policy.metadata.to_h
294
294
 
295
295
  # Set x-goog-api-client and x-goog-user-project headers
296
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
296
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
297
297
  lib_name: @config.lib_name, lib_version: @config.lib_version,
298
298
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION
299
299
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -314,8 +314,8 @@ module Google
314
314
  yield response, operation if block_given?
315
315
  return response
316
316
  end
317
- rescue GRPC::BadStatus => e
318
- raise Google::Cloud::Error.from_error(e)
317
+ rescue ::GRPC::BadStatus => e
318
+ raise ::Google::Cloud::Error.from_error(e)
319
319
  end
320
320
 
321
321
  ##
@@ -323,12 +323,12 @@ module Google
323
323
  #
324
324
  # @overload get_autoscaling_policy(request, options = nil)
325
325
  # Pass arguments to `get_autoscaling_policy` via a request object, either of type
326
- # {Google::Cloud::Dataproc::V1::GetAutoscalingPolicyRequest} or an equivalent Hash.
326
+ # {::Google::Cloud::Dataproc::V1::GetAutoscalingPolicyRequest} or an equivalent Hash.
327
327
  #
328
- # @param request [Google::Cloud::Dataproc::V1::GetAutoscalingPolicyRequest, Hash]
328
+ # @param request [::Google::Cloud::Dataproc::V1::GetAutoscalingPolicyRequest, ::Hash]
329
329
  # A request object representing the call parameters. Required. To specify no
330
330
  # parameters, or to keep all the default parameter values, pass an empty Hash.
331
- # @param options [Gapic::CallOptions, Hash]
331
+ # @param options [::Gapic::CallOptions, ::Hash]
332
332
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
333
333
  #
334
334
  # @overload get_autoscaling_policy(name: nil)
@@ -336,7 +336,7 @@ module Google
336
336
  # least one keyword argument is required. To specify no parameters, or to keep all
337
337
  # the default parameter values, pass an empty Hash as a request object (see above).
338
338
  #
339
- # @param name [String]
339
+ # @param name [::String]
340
340
  # Required. The "resource name" of the autoscaling policy, as described
341
341
  # in https://cloud.google.com/apis/design/resource_names.
342
342
  #
@@ -349,26 +349,26 @@ module Google
349
349
  # `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}`
350
350
  #
351
351
  # @yield [response, operation] Access the result along with the RPC operation
352
- # @yieldparam response [Google::Cloud::Dataproc::V1::AutoscalingPolicy]
353
- # @yieldparam operation [GRPC::ActiveCall::Operation]
352
+ # @yieldparam response [::Google::Cloud::Dataproc::V1::AutoscalingPolicy]
353
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
354
354
  #
355
- # @return [Google::Cloud::Dataproc::V1::AutoscalingPolicy]
355
+ # @return [::Google::Cloud::Dataproc::V1::AutoscalingPolicy]
356
356
  #
357
- # @raise [Google::Cloud::Error] if the RPC is aborted.
357
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
358
358
  #
359
359
  def get_autoscaling_policy request, options = nil
360
- raise ArgumentError, "request must be provided" if request.nil?
360
+ raise ::ArgumentError, "request must be provided" if request.nil?
361
361
 
362
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Dataproc::V1::GetAutoscalingPolicyRequest
362
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataproc::V1::GetAutoscalingPolicyRequest
363
363
 
364
364
  # Converts hash and nil to an options object
365
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
365
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
366
366
 
367
367
  # Customize the options with defaults
368
368
  metadata = @config.rpcs.get_autoscaling_policy.metadata.to_h
369
369
 
370
370
  # Set x-goog-api-client and x-goog-user-project headers
371
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
371
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
372
372
  lib_name: @config.lib_name, lib_version: @config.lib_version,
373
373
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION
374
374
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -389,8 +389,8 @@ module Google
389
389
  yield response, operation if block_given?
390
390
  return response
391
391
  end
392
- rescue GRPC::BadStatus => e
393
- raise Google::Cloud::Error.from_error(e)
392
+ rescue ::GRPC::BadStatus => e
393
+ raise ::Google::Cloud::Error.from_error(e)
394
394
  end
395
395
 
396
396
  ##
@@ -398,12 +398,12 @@ module Google
398
398
  #
399
399
  # @overload list_autoscaling_policies(request, options = nil)
400
400
  # Pass arguments to `list_autoscaling_policies` via a request object, either of type
401
- # {Google::Cloud::Dataproc::V1::ListAutoscalingPoliciesRequest} or an equivalent Hash.
401
+ # {::Google::Cloud::Dataproc::V1::ListAutoscalingPoliciesRequest} or an equivalent Hash.
402
402
  #
403
- # @param request [Google::Cloud::Dataproc::V1::ListAutoscalingPoliciesRequest, Hash]
403
+ # @param request [::Google::Cloud::Dataproc::V1::ListAutoscalingPoliciesRequest, ::Hash]
404
404
  # A request object representing the call parameters. Required. To specify no
405
405
  # parameters, or to keep all the default parameter values, pass an empty Hash.
406
- # @param options [Gapic::CallOptions, Hash]
406
+ # @param options [::Gapic::CallOptions, ::Hash]
407
407
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
408
408
  #
409
409
  # @overload list_autoscaling_policies(parent: nil, page_size: nil, page_token: nil)
@@ -411,7 +411,7 @@ module Google
411
411
  # least one keyword argument is required. To specify no parameters, or to keep all
412
412
  # the default parameter values, pass an empty Hash as a request object (see above).
413
413
  #
414
- # @param parent [String]
414
+ # @param parent [::String]
415
415
  # Required. The "resource name" of the region or location, as described
416
416
  # in https://cloud.google.com/apis/design/resource_names.
417
417
  #
@@ -422,34 +422,34 @@ module Google
422
422
  # * For `projects.locations.autoscalingPolicies.list`, the resource name
423
423
  # of the location has the following format:
424
424
  # `projects/{project_id}/locations/{location}`
425
- # @param page_size [Integer]
425
+ # @param page_size [::Integer]
426
426
  # Optional. The maximum number of results to return in each response.
427
427
  # Must be less than or equal to 1000. Defaults to 100.
428
- # @param page_token [String]
428
+ # @param page_token [::String]
429
429
  # Optional. The page token, returned by a previous call, to request the
430
430
  # next page of results.
431
431
  #
432
432
  # @yield [response, operation] Access the result along with the RPC operation
433
- # @yieldparam response [Gapic::PagedEnumerable<Google::Cloud::Dataproc::V1::AutoscalingPolicy>]
434
- # @yieldparam operation [GRPC::ActiveCall::Operation]
433
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataproc::V1::AutoscalingPolicy>]
434
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
435
435
  #
436
- # @return [Gapic::PagedEnumerable<Google::Cloud::Dataproc::V1::AutoscalingPolicy>]
436
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataproc::V1::AutoscalingPolicy>]
437
437
  #
438
- # @raise [Google::Cloud::Error] if the RPC is aborted.
438
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
439
439
  #
440
440
  def list_autoscaling_policies request, options = nil
441
- raise ArgumentError, "request must be provided" if request.nil?
441
+ raise ::ArgumentError, "request must be provided" if request.nil?
442
442
 
443
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Dataproc::V1::ListAutoscalingPoliciesRequest
443
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataproc::V1::ListAutoscalingPoliciesRequest
444
444
 
445
445
  # Converts hash and nil to an options object
446
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
446
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
447
447
 
448
448
  # Customize the options with defaults
449
449
  metadata = @config.rpcs.list_autoscaling_policies.metadata.to_h
450
450
 
451
451
  # Set x-goog-api-client and x-goog-user-project headers
452
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
452
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
453
453
  lib_name: @config.lib_name, lib_version: @config.lib_version,
454
454
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION
455
455
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -467,12 +467,12 @@ module Google
467
467
  retry_policy: @config.retry_policy
468
468
 
469
469
  @autoscaling_policy_service_stub.call_rpc :list_autoscaling_policies, request, options: options do |response, operation|
470
- response = Gapic::PagedEnumerable.new @autoscaling_policy_service_stub, :list_autoscaling_policies, request, response, operation, options
470
+ response = ::Gapic::PagedEnumerable.new @autoscaling_policy_service_stub, :list_autoscaling_policies, request, response, operation, options
471
471
  yield response, operation if block_given?
472
472
  return response
473
473
  end
474
- rescue GRPC::BadStatus => e
475
- raise Google::Cloud::Error.from_error(e)
474
+ rescue ::GRPC::BadStatus => e
475
+ raise ::Google::Cloud::Error.from_error(e)
476
476
  end
477
477
 
478
478
  ##
@@ -481,12 +481,12 @@ module Google
481
481
  #
482
482
  # @overload delete_autoscaling_policy(request, options = nil)
483
483
  # Pass arguments to `delete_autoscaling_policy` via a request object, either of type
484
- # {Google::Cloud::Dataproc::V1::DeleteAutoscalingPolicyRequest} or an equivalent Hash.
484
+ # {::Google::Cloud::Dataproc::V1::DeleteAutoscalingPolicyRequest} or an equivalent Hash.
485
485
  #
486
- # @param request [Google::Cloud::Dataproc::V1::DeleteAutoscalingPolicyRequest, Hash]
486
+ # @param request [::Google::Cloud::Dataproc::V1::DeleteAutoscalingPolicyRequest, ::Hash]
487
487
  # A request object representing the call parameters. Required. To specify no
488
488
  # parameters, or to keep all the default parameter values, pass an empty Hash.
489
- # @param options [Gapic::CallOptions, Hash]
489
+ # @param options [::Gapic::CallOptions, ::Hash]
490
490
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
491
491
  #
492
492
  # @overload delete_autoscaling_policy(name: nil)
@@ -494,7 +494,7 @@ module Google
494
494
  # least one keyword argument is required. To specify no parameters, or to keep all
495
495
  # the default parameter values, pass an empty Hash as a request object (see above).
496
496
  #
497
- # @param name [String]
497
+ # @param name [::String]
498
498
  # Required. The "resource name" of the autoscaling policy, as described
499
499
  # in https://cloud.google.com/apis/design/resource_names.
500
500
  #
@@ -507,26 +507,26 @@ module Google
507
507
  # `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}`
508
508
  #
509
509
  # @yield [response, operation] Access the result along with the RPC operation
510
- # @yieldparam response [Google::Protobuf::Empty]
511
- # @yieldparam operation [GRPC::ActiveCall::Operation]
510
+ # @yieldparam response [::Google::Protobuf::Empty]
511
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
512
512
  #
513
- # @return [Google::Protobuf::Empty]
513
+ # @return [::Google::Protobuf::Empty]
514
514
  #
515
- # @raise [Google::Cloud::Error] if the RPC is aborted.
515
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
516
516
  #
517
517
  def delete_autoscaling_policy request, options = nil
518
- raise ArgumentError, "request must be provided" if request.nil?
518
+ raise ::ArgumentError, "request must be provided" if request.nil?
519
519
 
520
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Dataproc::V1::DeleteAutoscalingPolicyRequest
520
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataproc::V1::DeleteAutoscalingPolicyRequest
521
521
 
522
522
  # Converts hash and nil to an options object
523
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
523
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
524
524
 
525
525
  # Customize the options with defaults
526
526
  metadata = @config.rpcs.delete_autoscaling_policy.metadata.to_h
527
527
 
528
528
  # Set x-goog-api-client and x-goog-user-project headers
529
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
529
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
530
530
  lib_name: @config.lib_name, lib_version: @config.lib_version,
531
531
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION
532
532
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -547,8 +547,8 @@ module Google
547
547
  yield response, operation if block_given?
548
548
  return response
549
549
  end
550
- rescue GRPC::BadStatus => e
551
- raise Google::Cloud::Error.from_error(e)
550
+ rescue ::GRPC::BadStatus => e
551
+ raise ::Google::Cloud::Error.from_error(e)
552
552
  end
553
553
 
554
554
  ##
@@ -558,7 +558,7 @@ module Google
558
558
  # providing control over timeouts, retry behavior, logging, transport
559
559
  # parameters, and other low-level controls. Certain parameters can also be
560
560
  # applied individually to specific RPCs. See
561
- # {Google::Cloud::Dataproc::V1::AutoscalingPolicyService::Client::Configuration::Rpcs}
561
+ # {::Google::Cloud::Dataproc::V1::AutoscalingPolicyService::Client::Configuration::Rpcs}
562
562
  # for a list of RPCs that can be configured independently.
563
563
  #
564
564
  # Configuration can be applied globally to all clients, or to a single client
@@ -569,22 +569,22 @@ module Google
569
569
  # To modify the global config, setting the timeout for create_autoscaling_policy
570
570
  # to 20 seconds, and all remaining timeouts to 10 seconds:
571
571
  #
572
- # Google::Cloud::Dataproc::V1::AutoscalingPolicyService::Client.configure do |config|
573
- # config.timeout = 10_000
574
- # config.rpcs.create_autoscaling_policy.timeout = 20_000
572
+ # ::Google::Cloud::Dataproc::V1::AutoscalingPolicyService::Client.configure do |config|
573
+ # config.timeout = 10.0
574
+ # config.rpcs.create_autoscaling_policy.timeout = 20.0
575
575
  # end
576
576
  #
577
577
  # To apply the above configuration only to a new client:
578
578
  #
579
- # client = Google::Cloud::Dataproc::V1::AutoscalingPolicyService::Client.new do |config|
580
- # config.timeout = 10_000
581
- # config.rpcs.create_autoscaling_policy.timeout = 20_000
579
+ # client = ::Google::Cloud::Dataproc::V1::AutoscalingPolicyService::Client.new do |config|
580
+ # config.timeout = 10.0
581
+ # config.rpcs.create_autoscaling_policy.timeout = 20.0
582
582
  # end
583
583
  #
584
584
  # @!attribute [rw] endpoint
585
585
  # The hostname or hostname:port of the service endpoint.
586
586
  # Defaults to `"dataproc.googleapis.com"`.
587
- # @return [String]
587
+ # @return [::String]
588
588
  # @!attribute [rw] credentials
589
589
  # Credentials to send with calls. You may provide any of the following types:
590
590
  # * (`String`) The path to a service account key file in JSON format
@@ -596,29 +596,29 @@ module Google
596
596
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
597
597
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
598
598
  # * (`nil`) indicating no credentials
599
- # @return [Object]
599
+ # @return [::Object]
600
600
  # @!attribute [rw] scope
601
601
  # The OAuth scopes
602
- # @return [Array<String>]
602
+ # @return [::Array<::String>]
603
603
  # @!attribute [rw] lib_name
604
604
  # The library name as recorded in instrumentation and logging
605
- # @return [String]
605
+ # @return [::String]
606
606
  # @!attribute [rw] lib_version
607
607
  # The library version as recorded in instrumentation and logging
608
- # @return [String]
608
+ # @return [::String]
609
609
  # @!attribute [rw] channel_args
610
610
  # Extra parameters passed to the gRPC channel. Note: this is ignored if a
611
611
  # `GRPC::Core::Channel` object is provided as the credential.
612
- # @return [Hash]
612
+ # @return [::Hash]
613
613
  # @!attribute [rw] interceptors
614
614
  # An array of interceptors that are run before calls are executed.
615
- # @return [Array<GRPC::ClientInterceptor>]
615
+ # @return [::Array<::GRPC::ClientInterceptor>]
616
616
  # @!attribute [rw] timeout
617
- # The call timeout in milliseconds.
618
- # @return [Numeric]
617
+ # The call timeout in seconds.
618
+ # @return [::Numeric]
619
619
  # @!attribute [rw] metadata
620
620
  # Additional gRPC headers to be sent with the call.
621
- # @return [Hash{Symbol=>String}]
621
+ # @return [::Hash{::Symbol=>::String}]
622
622
  # @!attribute [rw] retry_policy
623
623
  # The retry policy. The value is a hash with the following keys:
624
624
  # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
@@ -626,10 +626,10 @@ module Google
626
626
  # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
627
627
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
628
628
  # trigger a retry.
629
- # @return [Hash]
629
+ # @return [::Hash]
630
630
  #
631
631
  class Configuration
632
- extend Gapic::Config
632
+ extend ::Gapic::Config
633
633
 
634
634
  config_attr :endpoint, "dataproc.googleapis.com", String
635
635
  config_attr :credentials, nil do |value|
@@ -637,14 +637,14 @@ module Google
637
637
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
638
638
  allowed.any? { |klass| klass === value }
639
639
  end
640
- config_attr :scope, nil, String, Array, nil
641
- config_attr :lib_name, nil, String, nil
642
- config_attr :lib_version, nil, String, nil
643
- config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, Hash, nil)
644
- config_attr :interceptors, nil, Array, nil
645
- config_attr :timeout, nil, Numeric, nil
646
- config_attr :metadata, nil, Hash, nil
647
- config_attr :retry_policy, nil, Hash, Proc, nil
640
+ config_attr :scope, nil, ::String, ::Array, nil
641
+ config_attr :lib_name, nil, ::String, nil
642
+ config_attr :lib_version, nil, ::String, nil
643
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
644
+ config_attr :interceptors, nil, ::Array, nil
645
+ config_attr :timeout, nil, ::Numeric, nil
646
+ config_attr :metadata, nil, ::Hash, nil
647
+ config_attr :retry_policy, nil, ::Hash, Proc, nil
648
648
 
649
649
  # @private
650
650
  def initialize parent_config = nil
@@ -685,42 +685,42 @@ module Google
685
685
  class Rpcs
686
686
  ##
687
687
  # RPC-specific configuration for `create_autoscaling_policy`
688
- # @return [Gapic::Config::Method]
688
+ # @return [::Gapic::Config::Method]
689
689
  #
690
690
  attr_reader :create_autoscaling_policy
691
691
  ##
692
692
  # RPC-specific configuration for `update_autoscaling_policy`
693
- # @return [Gapic::Config::Method]
693
+ # @return [::Gapic::Config::Method]
694
694
  #
695
695
  attr_reader :update_autoscaling_policy
696
696
  ##
697
697
  # RPC-specific configuration for `get_autoscaling_policy`
698
- # @return [Gapic::Config::Method]
698
+ # @return [::Gapic::Config::Method]
699
699
  #
700
700
  attr_reader :get_autoscaling_policy
701
701
  ##
702
702
  # RPC-specific configuration for `list_autoscaling_policies`
703
- # @return [Gapic::Config::Method]
703
+ # @return [::Gapic::Config::Method]
704
704
  #
705
705
  attr_reader :list_autoscaling_policies
706
706
  ##
707
707
  # RPC-specific configuration for `delete_autoscaling_policy`
708
- # @return [Gapic::Config::Method]
708
+ # @return [::Gapic::Config::Method]
709
709
  #
710
710
  attr_reader :delete_autoscaling_policy
711
711
 
712
712
  # @private
713
713
  def initialize parent_rpcs = nil
714
714
  create_autoscaling_policy_config = parent_rpcs&.create_autoscaling_policy if parent_rpcs&.respond_to? :create_autoscaling_policy
715
- @create_autoscaling_policy = Gapic::Config::Method.new create_autoscaling_policy_config
715
+ @create_autoscaling_policy = ::Gapic::Config::Method.new create_autoscaling_policy_config
716
716
  update_autoscaling_policy_config = parent_rpcs&.update_autoscaling_policy if parent_rpcs&.respond_to? :update_autoscaling_policy
717
- @update_autoscaling_policy = Gapic::Config::Method.new update_autoscaling_policy_config
717
+ @update_autoscaling_policy = ::Gapic::Config::Method.new update_autoscaling_policy_config
718
718
  get_autoscaling_policy_config = parent_rpcs&.get_autoscaling_policy if parent_rpcs&.respond_to? :get_autoscaling_policy
719
- @get_autoscaling_policy = Gapic::Config::Method.new get_autoscaling_policy_config
719
+ @get_autoscaling_policy = ::Gapic::Config::Method.new get_autoscaling_policy_config
720
720
  list_autoscaling_policies_config = parent_rpcs&.list_autoscaling_policies if parent_rpcs&.respond_to? :list_autoscaling_policies
721
- @list_autoscaling_policies = Gapic::Config::Method.new list_autoscaling_policies_config
721
+ @list_autoscaling_policies = ::Gapic::Config::Method.new list_autoscaling_policies_config
722
722
  delete_autoscaling_policy_config = parent_rpcs&.delete_autoscaling_policy if parent_rpcs&.respond_to? :delete_autoscaling_policy
723
- @delete_autoscaling_policy = Gapic::Config::Method.new delete_autoscaling_policy_config
723
+ @delete_autoscaling_policy = ::Gapic::Config::Method.new delete_autoscaling_policy_config
724
724
 
725
725
  yield self if block_given?
726
726
  end