google-cloud-talent-v4beta1 0.1.0 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (66) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHENTICATION.md +6 -6
  3. data/README.md +5 -1
  4. data/lib/google/cloud/talent/v4beta1.rb +1 -1
  5. data/lib/google/cloud/talent/v4beta1/application_service.rb +1 -1
  6. data/lib/google/cloud/talent/v4beta1/application_service/client.rb +133 -128
  7. data/lib/google/cloud/talent/v4beta1/application_service/credentials.rb +1 -1
  8. data/lib/google/cloud/talent/v4beta1/application_service/paths.rb +17 -17
  9. data/lib/google/cloud/talent/v4beta1/company_service.rb +1 -1
  10. data/lib/google/cloud/talent/v4beta1/company_service/client.rb +135 -130
  11. data/lib/google/cloud/talent/v4beta1/company_service/credentials.rb +1 -1
  12. data/lib/google/cloud/talent/v4beta1/company_service/paths.rb +8 -8
  13. data/lib/google/cloud/talent/v4beta1/completion.rb +1 -1
  14. data/lib/google/cloud/talent/v4beta1/completion/client.rb +69 -64
  15. data/lib/google/cloud/talent/v4beta1/completion/credentials.rb +1 -1
  16. data/lib/google/cloud/talent/v4beta1/completion/paths.rb +8 -8
  17. data/lib/google/cloud/talent/v4beta1/event_service.rb +1 -1
  18. data/lib/google/cloud/talent/v4beta1/event_service/client.rb +62 -57
  19. data/lib/google/cloud/talent/v4beta1/event_service/credentials.rb +1 -1
  20. data/lib/google/cloud/talent/v4beta1/event_service/paths.rb +3 -3
  21. data/lib/google/cloud/talent/v4beta1/job_service.rb +1 -1
  22. data/lib/google/cloud/talent/v4beta1/job_service/client.rb +329 -324
  23. data/lib/google/cloud/talent/v4beta1/job_service/credentials.rb +1 -1
  24. data/lib/google/cloud/talent/v4beta1/job_service/operations.rb +109 -103
  25. data/lib/google/cloud/talent/v4beta1/job_service/paths.rb +13 -13
  26. data/lib/google/cloud/talent/v4beta1/profile_service.rb +1 -1
  27. data/lib/google/cloud/talent/v4beta1/profile_service/client.rb +185 -180
  28. data/lib/google/cloud/talent/v4beta1/profile_service/credentials.rb +1 -1
  29. data/lib/google/cloud/talent/v4beta1/profile_service/paths.rb +5 -5
  30. data/lib/google/cloud/talent/v4beta1/tenant_service.rb +1 -1
  31. data/lib/google/cloud/talent/v4beta1/tenant_service/client.rb +133 -128
  32. data/lib/google/cloud/talent/v4beta1/tenant_service/credentials.rb +1 -1
  33. data/lib/google/cloud/talent/v4beta1/tenant_service/paths.rb +3 -3
  34. data/lib/google/cloud/talent/v4beta1/version.rb +1 -1
  35. data/proto_docs/google/api/resource.rb +12 -12
  36. data/proto_docs/google/cloud/talent/v4beta1/application.rb +18 -18
  37. data/proto_docs/google/cloud/talent/v4beta1/application_service.rb +27 -27
  38. data/proto_docs/google/cloud/talent/v4beta1/common.rb +167 -167
  39. data/proto_docs/google/cloud/talent/v4beta1/company.rb +21 -21
  40. data/proto_docs/google/cloud/talent/v4beta1/company_service.rb +29 -29
  41. data/proto_docs/google/cloud/talent/v4beta1/completion_service.rb +28 -28
  42. data/proto_docs/google/cloud/talent/v4beta1/event.rb +30 -30
  43. data/proto_docs/google/cloud/talent/v4beta1/event_service.rb +4 -4
  44. data/proto_docs/google/cloud/talent/v4beta1/filters.rb +198 -198
  45. data/proto_docs/google/cloud/talent/v4beta1/histogram.rb +14 -14
  46. data/proto_docs/google/cloud/talent/v4beta1/job.rb +83 -83
  47. data/proto_docs/google/cloud/talent/v4beta1/job_service.rb +163 -163
  48. data/proto_docs/google/cloud/talent/v4beta1/profile.rb +202 -202
  49. data/proto_docs/google/cloud/talent/v4beta1/profile_service.rb +82 -82
  50. data/proto_docs/google/cloud/talent/v4beta1/tenant.rb +8 -8
  51. data/proto_docs/google/cloud/talent/v4beta1/tenant_service.rb +27 -27
  52. data/proto_docs/google/longrunning/operations.rb +30 -30
  53. data/proto_docs/google/protobuf/any.rb +4 -4
  54. data/proto_docs/google/protobuf/duration.rb +4 -4
  55. data/proto_docs/google/protobuf/empty.rb +2 -2
  56. data/proto_docs/google/protobuf/field_mask.rb +3 -3
  57. data/proto_docs/google/protobuf/timestamp.rb +4 -4
  58. data/proto_docs/google/protobuf/wrappers.rb +27 -27
  59. data/proto_docs/google/rpc/status.rb +6 -6
  60. data/proto_docs/google/type/date.rb +6 -6
  61. data/proto_docs/google/type/latlng.rb +4 -4
  62. data/proto_docs/google/type/money.rb +5 -5
  63. data/proto_docs/google/type/postal_address.rb +13 -13
  64. data/proto_docs/google/type/timeofday.rb +7 -7
  65. metadata +33 -6
  66. data/lib/google/cloud/common_resources_pb.rb +0 -15
@@ -24,7 +24,7 @@ module Google
24
24
  module V4beta1
25
25
  module ProfileService
26
26
  # Credentials for the ProfileService API.
27
- class Credentials < Google::Auth::Credentials
27
+ class Credentials < ::Google::Auth::Credentials
28
28
  self.scope = [
29
29
  "https://www.googleapis.com/auth/cloud-platform",
30
30
  "https://www.googleapis.com/auth/jobs"
@@ -35,10 +35,10 @@ module Google
35
35
  # @param tenant [String]
36
36
  # @param profile [String]
37
37
  #
38
- # @return [String]
38
+ # @return [::String]
39
39
  def profile_path project:, tenant:, profile:
40
- raise ArgumentError, "project cannot contain /" if project.to_s.include? "/"
41
- raise ArgumentError, "tenant cannot contain /" if tenant.to_s.include? "/"
40
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
41
+ raise ::ArgumentError, "tenant cannot contain /" if tenant.to_s.include? "/"
42
42
 
43
43
  "projects/#{project}/tenants/#{tenant}/profiles/#{profile}"
44
44
  end
@@ -53,9 +53,9 @@ module Google
53
53
  # @param project [String]
54
54
  # @param tenant [String]
55
55
  #
56
- # @return [String]
56
+ # @return [::String]
57
57
  def tenant_path project:, tenant:
58
- raise ArgumentError, "project cannot contain /" if project.to_s.include? "/"
58
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
59
59
 
60
60
  "projects/#{project}/tenants/#{tenant}"
61
61
  end
@@ -36,7 +36,7 @@ module Google
36
36
  # To load this service and instantiate a client:
37
37
  #
38
38
  # require "google/cloud/talent/v4beta1/tenant_service"
39
- # client = Google::Cloud::Talent::V4beta1::TenantService::Client.new
39
+ # client = ::Google::Cloud::Talent::V4beta1::TenantService::Client.new
40
40
  #
41
41
  module TenantService
42
42
  end
@@ -38,15 +38,15 @@ module Google
38
38
  ##
39
39
  # Configure the TenantService Client class.
40
40
  #
41
- # See {Google::Cloud::Talent::V4beta1::TenantService::Client::Configuration}
41
+ # See {::Google::Cloud::Talent::V4beta1::TenantService::Client::Configuration}
42
42
  # for a description of the configuration fields.
43
43
  #
44
44
  # ## Example
45
45
  #
46
46
  # To modify the configuration for all TenantService clients:
47
47
  #
48
- # Google::Cloud::Talent::V4beta1::TenantService::Client.configure do |config|
49
- # config.timeout = 10_000
48
+ # ::Google::Cloud::Talent::V4beta1::TenantService::Client.configure do |config|
49
+ # config.timeout = 10.0
50
50
  # end
51
51
  #
52
52
  # @yield [config] Configure the Client client.
@@ -106,7 +106,7 @@ module Google
106
106
  # but structural changes (adding new fields, etc.) are not allowed. Structural changes
107
107
  # should be made on {Client.configure}.
108
108
  #
109
- # See {Google::Cloud::Talent::V4beta1::TenantService::Client::Configuration}
109
+ # See {::Google::Cloud::Talent::V4beta1::TenantService::Client::Configuration}
110
110
  # for a description of the configuration fields.
111
111
  #
112
112
  # @yield [config] Configure the Client client.
@@ -127,13 +127,13 @@ module Google
127
127
  # To create a new TenantService client with the default
128
128
  # configuration:
129
129
  #
130
- # client = Google::Cloud::Talent::V4beta1::TenantService::Client.new
130
+ # client = ::Google::Cloud::Talent::V4beta1::TenantService::Client.new
131
131
  #
132
132
  # To create a new TenantService client with a custom
133
133
  # configuration:
134
134
  #
135
- # client = Google::Cloud::Talent::V4beta1::TenantService::Client.new do |config|
136
- # config.timeout = 10_000
135
+ # client = ::Google::Cloud::Talent::V4beta1::TenantService::Client.new do |config|
136
+ # config.timeout = 10.0
137
137
  # end
138
138
  #
139
139
  # @yield [config] Configure the TenantService client.
@@ -158,10 +158,11 @@ module Google
158
158
  if credentials.is_a?(String) || credentials.is_a?(Hash)
159
159
  credentials = Credentials.new credentials, scope: @config.scope
160
160
  end
161
- @quota_project_id = credentials.respond_to?(:quota_project_id) ? credentials.quota_project_id : nil
161
+ @quota_project_id = @config.quota_project
162
+ @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
162
163
 
163
- @tenant_service_stub = Gapic::ServiceStub.new(
164
- Google::Cloud::Talent::V4beta1::TenantService::Stub,
164
+ @tenant_service_stub = ::Gapic::ServiceStub.new(
165
+ ::Google::Cloud::Talent::V4beta1::TenantService::Stub,
165
166
  credentials: credentials,
166
167
  endpoint: @config.endpoint,
167
168
  channel_args: @config.channel_args,
@@ -176,12 +177,12 @@ module Google
176
177
  #
177
178
  # @overload create_tenant(request, options = nil)
178
179
  # Pass arguments to `create_tenant` via a request object, either of type
179
- # {Google::Cloud::Talent::V4beta1::CreateTenantRequest} or an equivalent Hash.
180
+ # {::Google::Cloud::Talent::V4beta1::CreateTenantRequest} or an equivalent Hash.
180
181
  #
181
- # @param request [Google::Cloud::Talent::V4beta1::CreateTenantRequest, Hash]
182
+ # @param request [::Google::Cloud::Talent::V4beta1::CreateTenantRequest, ::Hash]
182
183
  # A request object representing the call parameters. Required. To specify no
183
184
  # parameters, or to keep all the default parameter values, pass an empty Hash.
184
- # @param options [Gapic::CallOptions, Hash]
185
+ # @param options [::Gapic::CallOptions, ::Hash]
185
186
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
186
187
  #
187
188
  # @overload create_tenant(parent: nil, tenant: nil)
@@ -189,35 +190,35 @@ module Google
189
190
  # least one keyword argument is required. To specify no parameters, or to keep all
190
191
  # the default parameter values, pass an empty Hash as a request object (see above).
191
192
  #
192
- # @param parent [String]
193
+ # @param parent [::String]
193
194
  # Required. Resource name of the project under which the tenant is created.
194
195
  #
195
196
  # The format is "projects/\\{project_id}", for example,
196
197
  # "projects/foo".
197
- # @param tenant [Google::Cloud::Talent::V4beta1::Tenant, Hash]
198
+ # @param tenant [::Google::Cloud::Talent::V4beta1::Tenant, ::Hash]
198
199
  # Required. The tenant to be created.
199
200
  #
200
201
  # @yield [response, operation] Access the result along with the RPC operation
201
- # @yieldparam response [Google::Cloud::Talent::V4beta1::Tenant]
202
- # @yieldparam operation [GRPC::ActiveCall::Operation]
202
+ # @yieldparam response [::Google::Cloud::Talent::V4beta1::Tenant]
203
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
203
204
  #
204
- # @return [Google::Cloud::Talent::V4beta1::Tenant]
205
+ # @return [::Google::Cloud::Talent::V4beta1::Tenant]
205
206
  #
206
- # @raise [Google::Cloud::Error] if the RPC is aborted.
207
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
207
208
  #
208
209
  def create_tenant request, options = nil
209
- raise ArgumentError, "request must be provided" if request.nil?
210
+ raise ::ArgumentError, "request must be provided" if request.nil?
210
211
 
211
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Talent::V4beta1::CreateTenantRequest
212
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Talent::V4beta1::CreateTenantRequest
212
213
 
213
214
  # Converts hash and nil to an options object
214
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
215
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
215
216
 
216
217
  # Customize the options with defaults
217
218
  metadata = @config.rpcs.create_tenant.metadata.to_h
218
219
 
219
220
  # Set x-goog-api-client and x-goog-user-project headers
220
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
221
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
221
222
  lib_name: @config.lib_name, lib_version: @config.lib_version,
222
223
  gapic_version: ::Google::Cloud::Talent::V4beta1::VERSION
223
224
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -238,8 +239,8 @@ module Google
238
239
  yield response, operation if block_given?
239
240
  return response
240
241
  end
241
- rescue GRPC::BadStatus => e
242
- raise Google::Cloud::Error.from_error(e)
242
+ rescue ::GRPC::BadStatus => e
243
+ raise ::Google::Cloud::Error.from_error(e)
243
244
  end
244
245
 
245
246
  ##
@@ -247,12 +248,12 @@ module Google
247
248
  #
248
249
  # @overload get_tenant(request, options = nil)
249
250
  # Pass arguments to `get_tenant` via a request object, either of type
250
- # {Google::Cloud::Talent::V4beta1::GetTenantRequest} or an equivalent Hash.
251
+ # {::Google::Cloud::Talent::V4beta1::GetTenantRequest} or an equivalent Hash.
251
252
  #
252
- # @param request [Google::Cloud::Talent::V4beta1::GetTenantRequest, Hash]
253
+ # @param request [::Google::Cloud::Talent::V4beta1::GetTenantRequest, ::Hash]
253
254
  # A request object representing the call parameters. Required. To specify no
254
255
  # parameters, or to keep all the default parameter values, pass an empty Hash.
255
- # @param options [Gapic::CallOptions, Hash]
256
+ # @param options [::Gapic::CallOptions, ::Hash]
256
257
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
257
258
  #
258
259
  # @overload get_tenant(name: nil)
@@ -260,33 +261,33 @@ module Google
260
261
  # least one keyword argument is required. To specify no parameters, or to keep all
261
262
  # the default parameter values, pass an empty Hash as a request object (see above).
262
263
  #
263
- # @param name [String]
264
+ # @param name [::String]
264
265
  # Required. The resource name of the tenant to be retrieved.
265
266
  #
266
267
  # The format is "projects/\\{project_id}/tenants/\\{tenant_id}", for example,
267
268
  # "projects/foo/tenants/bar".
268
269
  #
269
270
  # @yield [response, operation] Access the result along with the RPC operation
270
- # @yieldparam response [Google::Cloud::Talent::V4beta1::Tenant]
271
- # @yieldparam operation [GRPC::ActiveCall::Operation]
271
+ # @yieldparam response [::Google::Cloud::Talent::V4beta1::Tenant]
272
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
272
273
  #
273
- # @return [Google::Cloud::Talent::V4beta1::Tenant]
274
+ # @return [::Google::Cloud::Talent::V4beta1::Tenant]
274
275
  #
275
- # @raise [Google::Cloud::Error] if the RPC is aborted.
276
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
276
277
  #
277
278
  def get_tenant request, options = nil
278
- raise ArgumentError, "request must be provided" if request.nil?
279
+ raise ::ArgumentError, "request must be provided" if request.nil?
279
280
 
280
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Talent::V4beta1::GetTenantRequest
281
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Talent::V4beta1::GetTenantRequest
281
282
 
282
283
  # Converts hash and nil to an options object
283
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
284
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
284
285
 
285
286
  # Customize the options with defaults
286
287
  metadata = @config.rpcs.get_tenant.metadata.to_h
287
288
 
288
289
  # Set x-goog-api-client and x-goog-user-project headers
289
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
290
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
290
291
  lib_name: @config.lib_name, lib_version: @config.lib_version,
291
292
  gapic_version: ::Google::Cloud::Talent::V4beta1::VERSION
292
293
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -307,8 +308,8 @@ module Google
307
308
  yield response, operation if block_given?
308
309
  return response
309
310
  end
310
- rescue GRPC::BadStatus => e
311
- raise Google::Cloud::Error.from_error(e)
311
+ rescue ::GRPC::BadStatus => e
312
+ raise ::Google::Cloud::Error.from_error(e)
312
313
  end
313
314
 
314
315
  ##
@@ -316,12 +317,12 @@ module Google
316
317
  #
317
318
  # @overload update_tenant(request, options = nil)
318
319
  # Pass arguments to `update_tenant` via a request object, either of type
319
- # {Google::Cloud::Talent::V4beta1::UpdateTenantRequest} or an equivalent Hash.
320
+ # {::Google::Cloud::Talent::V4beta1::UpdateTenantRequest} or an equivalent Hash.
320
321
  #
321
- # @param request [Google::Cloud::Talent::V4beta1::UpdateTenantRequest, Hash]
322
+ # @param request [::Google::Cloud::Talent::V4beta1::UpdateTenantRequest, ::Hash]
322
323
  # A request object representing the call parameters. Required. To specify no
323
324
  # parameters, or to keep all the default parameter values, pass an empty Hash.
324
- # @param options [Gapic::CallOptions, Hash]
325
+ # @param options [::Gapic::CallOptions, ::Hash]
325
326
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
326
327
  #
327
328
  # @overload update_tenant(tenant: nil, update_mask: nil)
@@ -329,38 +330,38 @@ module Google
329
330
  # least one keyword argument is required. To specify no parameters, or to keep all
330
331
  # the default parameter values, pass an empty Hash as a request object (see above).
331
332
  #
332
- # @param tenant [Google::Cloud::Talent::V4beta1::Tenant, Hash]
333
+ # @param tenant [::Google::Cloud::Talent::V4beta1::Tenant, ::Hash]
333
334
  # Required. The tenant resource to replace the current resource in the system.
334
- # @param update_mask [Google::Protobuf::FieldMask, Hash]
335
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
335
336
  # Strongly recommended for the best service experience.
336
337
  #
337
- # If {Google::Cloud::Talent::V4beta1::UpdateTenantRequest#update_mask update_mask} is provided, only the specified fields in
338
- # {Google::Cloud::Talent::V4beta1::UpdateTenantRequest#tenant tenant} are updated. Otherwise all the fields are updated.
338
+ # If {::Google::Cloud::Talent::V4beta1::UpdateTenantRequest#update_mask update_mask} is provided, only the specified fields in
339
+ # {::Google::Cloud::Talent::V4beta1::UpdateTenantRequest#tenant tenant} are updated. Otherwise all the fields are updated.
339
340
  #
340
341
  # A field mask to specify the tenant fields to be updated. Only
341
- # top level fields of {Google::Cloud::Talent::V4beta1::Tenant Tenant} are supported.
342
+ # top level fields of {::Google::Cloud::Talent::V4beta1::Tenant Tenant} are supported.
342
343
  #
343
344
  # @yield [response, operation] Access the result along with the RPC operation
344
- # @yieldparam response [Google::Cloud::Talent::V4beta1::Tenant]
345
- # @yieldparam operation [GRPC::ActiveCall::Operation]
345
+ # @yieldparam response [::Google::Cloud::Talent::V4beta1::Tenant]
346
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
346
347
  #
347
- # @return [Google::Cloud::Talent::V4beta1::Tenant]
348
+ # @return [::Google::Cloud::Talent::V4beta1::Tenant]
348
349
  #
349
- # @raise [Google::Cloud::Error] if the RPC is aborted.
350
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
350
351
  #
351
352
  def update_tenant request, options = nil
352
- raise ArgumentError, "request must be provided" if request.nil?
353
+ raise ::ArgumentError, "request must be provided" if request.nil?
353
354
 
354
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Talent::V4beta1::UpdateTenantRequest
355
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Talent::V4beta1::UpdateTenantRequest
355
356
 
356
357
  # Converts hash and nil to an options object
357
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
358
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
358
359
 
359
360
  # Customize the options with defaults
360
361
  metadata = @config.rpcs.update_tenant.metadata.to_h
361
362
 
362
363
  # Set x-goog-api-client and x-goog-user-project headers
363
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
364
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
364
365
  lib_name: @config.lib_name, lib_version: @config.lib_version,
365
366
  gapic_version: ::Google::Cloud::Talent::V4beta1::VERSION
366
367
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -381,8 +382,8 @@ module Google
381
382
  yield response, operation if block_given?
382
383
  return response
383
384
  end
384
- rescue GRPC::BadStatus => e
385
- raise Google::Cloud::Error.from_error(e)
385
+ rescue ::GRPC::BadStatus => e
386
+ raise ::Google::Cloud::Error.from_error(e)
386
387
  end
387
388
 
388
389
  ##
@@ -390,12 +391,12 @@ module Google
390
391
  #
391
392
  # @overload delete_tenant(request, options = nil)
392
393
  # Pass arguments to `delete_tenant` via a request object, either of type
393
- # {Google::Cloud::Talent::V4beta1::DeleteTenantRequest} or an equivalent Hash.
394
+ # {::Google::Cloud::Talent::V4beta1::DeleteTenantRequest} or an equivalent Hash.
394
395
  #
395
- # @param request [Google::Cloud::Talent::V4beta1::DeleteTenantRequest, Hash]
396
+ # @param request [::Google::Cloud::Talent::V4beta1::DeleteTenantRequest, ::Hash]
396
397
  # A request object representing the call parameters. Required. To specify no
397
398
  # parameters, or to keep all the default parameter values, pass an empty Hash.
398
- # @param options [Gapic::CallOptions, Hash]
399
+ # @param options [::Gapic::CallOptions, ::Hash]
399
400
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
400
401
  #
401
402
  # @overload delete_tenant(name: nil)
@@ -403,33 +404,33 @@ module Google
403
404
  # least one keyword argument is required. To specify no parameters, or to keep all
404
405
  # the default parameter values, pass an empty Hash as a request object (see above).
405
406
  #
406
- # @param name [String]
407
+ # @param name [::String]
407
408
  # Required. The resource name of the tenant to be deleted.
408
409
  #
409
410
  # The format is "projects/\\{project_id}/tenants/\\{tenant_id}", for example,
410
411
  # "projects/foo/tenants/bar".
411
412
  #
412
413
  # @yield [response, operation] Access the result along with the RPC operation
413
- # @yieldparam response [Google::Protobuf::Empty]
414
- # @yieldparam operation [GRPC::ActiveCall::Operation]
414
+ # @yieldparam response [::Google::Protobuf::Empty]
415
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
415
416
  #
416
- # @return [Google::Protobuf::Empty]
417
+ # @return [::Google::Protobuf::Empty]
417
418
  #
418
- # @raise [Google::Cloud::Error] if the RPC is aborted.
419
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
419
420
  #
420
421
  def delete_tenant request, options = nil
421
- raise ArgumentError, "request must be provided" if request.nil?
422
+ raise ::ArgumentError, "request must be provided" if request.nil?
422
423
 
423
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Talent::V4beta1::DeleteTenantRequest
424
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Talent::V4beta1::DeleteTenantRequest
424
425
 
425
426
  # Converts hash and nil to an options object
426
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
427
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
427
428
 
428
429
  # Customize the options with defaults
429
430
  metadata = @config.rpcs.delete_tenant.metadata.to_h
430
431
 
431
432
  # Set x-goog-api-client and x-goog-user-project headers
432
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
433
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
433
434
  lib_name: @config.lib_name, lib_version: @config.lib_version,
434
435
  gapic_version: ::Google::Cloud::Talent::V4beta1::VERSION
435
436
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -450,8 +451,8 @@ module Google
450
451
  yield response, operation if block_given?
451
452
  return response
452
453
  end
453
- rescue GRPC::BadStatus => e
454
- raise Google::Cloud::Error.from_error(e)
454
+ rescue ::GRPC::BadStatus => e
455
+ raise ::Google::Cloud::Error.from_error(e)
455
456
  end
456
457
 
457
458
  ##
@@ -459,12 +460,12 @@ module Google
459
460
  #
460
461
  # @overload list_tenants(request, options = nil)
461
462
  # Pass arguments to `list_tenants` via a request object, either of type
462
- # {Google::Cloud::Talent::V4beta1::ListTenantsRequest} or an equivalent Hash.
463
+ # {::Google::Cloud::Talent::V4beta1::ListTenantsRequest} or an equivalent Hash.
463
464
  #
464
- # @param request [Google::Cloud::Talent::V4beta1::ListTenantsRequest, Hash]
465
+ # @param request [::Google::Cloud::Talent::V4beta1::ListTenantsRequest, ::Hash]
465
466
  # A request object representing the call parameters. Required. To specify no
466
467
  # parameters, or to keep all the default parameter values, pass an empty Hash.
467
- # @param options [Gapic::CallOptions, Hash]
468
+ # @param options [::Gapic::CallOptions, ::Hash]
468
469
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
469
470
  #
470
471
  # @overload list_tenants(parent: nil, page_token: nil, page_size: nil)
@@ -472,38 +473,38 @@ module Google
472
473
  # least one keyword argument is required. To specify no parameters, or to keep all
473
474
  # the default parameter values, pass an empty Hash as a request object (see above).
474
475
  #
475
- # @param parent [String]
476
+ # @param parent [::String]
476
477
  # Required. Resource name of the project under which the tenant is created.
477
478
  #
478
479
  # The format is "projects/\\{project_id}", for example,
479
480
  # "projects/foo".
480
- # @param page_token [String]
481
+ # @param page_token [::String]
481
482
  # The starting indicator from which to return results.
482
- # @param page_size [Integer]
483
+ # @param page_size [::Integer]
483
484
  # The maximum number of tenants to be returned, at most 100.
484
485
  # Default is 100 if a non-positive number is provided.
485
486
  #
486
487
  # @yield [response, operation] Access the result along with the RPC operation
487
- # @yieldparam response [Gapic::PagedEnumerable<Google::Cloud::Talent::V4beta1::Tenant>]
488
- # @yieldparam operation [GRPC::ActiveCall::Operation]
488
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Talent::V4beta1::Tenant>]
489
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
489
490
  #
490
- # @return [Gapic::PagedEnumerable<Google::Cloud::Talent::V4beta1::Tenant>]
491
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::Talent::V4beta1::Tenant>]
491
492
  #
492
- # @raise [Google::Cloud::Error] if the RPC is aborted.
493
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
493
494
  #
494
495
  def list_tenants request, options = nil
495
- raise ArgumentError, "request must be provided" if request.nil?
496
+ raise ::ArgumentError, "request must be provided" if request.nil?
496
497
 
497
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Talent::V4beta1::ListTenantsRequest
498
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Talent::V4beta1::ListTenantsRequest
498
499
 
499
500
  # Converts hash and nil to an options object
500
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
501
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
501
502
 
502
503
  # Customize the options with defaults
503
504
  metadata = @config.rpcs.list_tenants.metadata.to_h
504
505
 
505
506
  # Set x-goog-api-client and x-goog-user-project headers
506
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
507
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
507
508
  lib_name: @config.lib_name, lib_version: @config.lib_version,
508
509
  gapic_version: ::Google::Cloud::Talent::V4beta1::VERSION
509
510
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -521,12 +522,12 @@ module Google
521
522
  retry_policy: @config.retry_policy
522
523
 
523
524
  @tenant_service_stub.call_rpc :list_tenants, request, options: options do |response, operation|
524
- response = Gapic::PagedEnumerable.new @tenant_service_stub, :list_tenants, request, response, operation, options
525
+ response = ::Gapic::PagedEnumerable.new @tenant_service_stub, :list_tenants, request, response, operation, options
525
526
  yield response, operation if block_given?
526
527
  return response
527
528
  end
528
- rescue GRPC::BadStatus => e
529
- raise Google::Cloud::Error.from_error(e)
529
+ rescue ::GRPC::BadStatus => e
530
+ raise ::Google::Cloud::Error.from_error(e)
530
531
  end
531
532
 
532
533
  ##
@@ -536,7 +537,7 @@ module Google
536
537
  # providing control over timeouts, retry behavior, logging, transport
537
538
  # parameters, and other low-level controls. Certain parameters can also be
538
539
  # applied individually to specific RPCs. See
539
- # {Google::Cloud::Talent::V4beta1::TenantService::Client::Configuration::Rpcs}
540
+ # {::Google::Cloud::Talent::V4beta1::TenantService::Client::Configuration::Rpcs}
540
541
  # for a list of RPCs that can be configured independently.
541
542
  #
542
543
  # Configuration can be applied globally to all clients, or to a single client
@@ -547,22 +548,22 @@ module Google
547
548
  # To modify the global config, setting the timeout for create_tenant
548
549
  # to 20 seconds, and all remaining timeouts to 10 seconds:
549
550
  #
550
- # Google::Cloud::Talent::V4beta1::TenantService::Client.configure do |config|
551
- # config.timeout = 10_000
552
- # config.rpcs.create_tenant.timeout = 20_000
551
+ # ::Google::Cloud::Talent::V4beta1::TenantService::Client.configure do |config|
552
+ # config.timeout = 10.0
553
+ # config.rpcs.create_tenant.timeout = 20.0
553
554
  # end
554
555
  #
555
556
  # To apply the above configuration only to a new client:
556
557
  #
557
- # client = Google::Cloud::Talent::V4beta1::TenantService::Client.new do |config|
558
- # config.timeout = 10_000
559
- # config.rpcs.create_tenant.timeout = 20_000
558
+ # client = ::Google::Cloud::Talent::V4beta1::TenantService::Client.new do |config|
559
+ # config.timeout = 10.0
560
+ # config.rpcs.create_tenant.timeout = 20.0
560
561
  # end
561
562
  #
562
563
  # @!attribute [rw] endpoint
563
564
  # The hostname or hostname:port of the service endpoint.
564
565
  # Defaults to `"jobs.googleapis.com"`.
565
- # @return [String]
566
+ # @return [::String]
566
567
  # @!attribute [rw] credentials
567
568
  # Credentials to send with calls. You may provide any of the following types:
568
569
  # * (`String`) The path to a service account key file in JSON format
@@ -574,29 +575,29 @@ module Google
574
575
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
575
576
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
576
577
  # * (`nil`) indicating no credentials
577
- # @return [Object]
578
+ # @return [::Object]
578
579
  # @!attribute [rw] scope
579
580
  # The OAuth scopes
580
- # @return [Array<String>]
581
+ # @return [::Array<::String>]
581
582
  # @!attribute [rw] lib_name
582
583
  # The library name as recorded in instrumentation and logging
583
- # @return [String]
584
+ # @return [::String]
584
585
  # @!attribute [rw] lib_version
585
586
  # The library version as recorded in instrumentation and logging
586
- # @return [String]
587
+ # @return [::String]
587
588
  # @!attribute [rw] channel_args
588
589
  # Extra parameters passed to the gRPC channel. Note: this is ignored if a
589
590
  # `GRPC::Core::Channel` object is provided as the credential.
590
- # @return [Hash]
591
+ # @return [::Hash]
591
592
  # @!attribute [rw] interceptors
592
593
  # An array of interceptors that are run before calls are executed.
593
- # @return [Array<GRPC::ClientInterceptor>]
594
+ # @return [::Array<::GRPC::ClientInterceptor>]
594
595
  # @!attribute [rw] timeout
595
- # The call timeout in milliseconds.
596
- # @return [Numeric]
596
+ # The call timeout in seconds.
597
+ # @return [::Numeric]
597
598
  # @!attribute [rw] metadata
598
599
  # Additional gRPC headers to be sent with the call.
599
- # @return [Hash{Symbol=>String}]
600
+ # @return [::Hash{::Symbol=>::String}]
600
601
  # @!attribute [rw] retry_policy
601
602
  # The retry policy. The value is a hash with the following keys:
602
603
  # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
@@ -604,25 +605,29 @@ module Google
604
605
  # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
605
606
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
606
607
  # trigger a retry.
607
- # @return [Hash]
608
+ # @return [::Hash]
609
+ # @!attribute [rw] quota_project
610
+ # A separate project against which to charge quota.
611
+ # @return [::String]
608
612
  #
609
613
  class Configuration
610
- extend Gapic::Config
614
+ extend ::Gapic::Config
611
615
 
612
- config_attr :endpoint, "jobs.googleapis.com", String
613
- config_attr :credentials, nil do |value|
616
+ config_attr :endpoint, "jobs.googleapis.com", ::String
617
+ config_attr :credentials, nil do |value|
614
618
  allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
615
619
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
616
620
  allowed.any? { |klass| klass === value }
617
621
  end
618
- config_attr :scope, nil, String, Array, nil
619
- config_attr :lib_name, nil, String, nil
620
- config_attr :lib_version, nil, String, nil
621
- config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, Hash, nil)
622
- config_attr :interceptors, nil, Array, nil
623
- config_attr :timeout, nil, Numeric, nil
624
- config_attr :metadata, nil, Hash, nil
625
- config_attr :retry_policy, nil, Hash, Proc, nil
622
+ config_attr :scope, nil, ::String, ::Array, nil
623
+ config_attr :lib_name, nil, ::String, nil
624
+ config_attr :lib_version, nil, ::String, nil
625
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
626
+ config_attr :interceptors, nil, ::Array, nil
627
+ config_attr :timeout, nil, ::Numeric, nil
628
+ config_attr :metadata, nil, ::Hash, nil
629
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
630
+ config_attr :quota_project, nil, ::String, nil
626
631
 
627
632
  # @private
628
633
  def initialize parent_config = nil
@@ -638,7 +643,7 @@ module Google
638
643
  def rpcs
639
644
  @rpcs ||= begin
640
645
  parent_rpcs = nil
641
- parent_rpcs = @parent_config.rpcs if @parent_config&.respond_to? :rpcs
646
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config&.respond_to?(:rpcs)
642
647
  Rpcs.new parent_rpcs
643
648
  end
644
649
  end
@@ -663,42 +668,42 @@ module Google
663
668
  class Rpcs
664
669
  ##
665
670
  # RPC-specific configuration for `create_tenant`
666
- # @return [Gapic::Config::Method]
671
+ # @return [::Gapic::Config::Method]
667
672
  #
668
673
  attr_reader :create_tenant
669
674
  ##
670
675
  # RPC-specific configuration for `get_tenant`
671
- # @return [Gapic::Config::Method]
676
+ # @return [::Gapic::Config::Method]
672
677
  #
673
678
  attr_reader :get_tenant
674
679
  ##
675
680
  # RPC-specific configuration for `update_tenant`
676
- # @return [Gapic::Config::Method]
681
+ # @return [::Gapic::Config::Method]
677
682
  #
678
683
  attr_reader :update_tenant
679
684
  ##
680
685
  # RPC-specific configuration for `delete_tenant`
681
- # @return [Gapic::Config::Method]
686
+ # @return [::Gapic::Config::Method]
682
687
  #
683
688
  attr_reader :delete_tenant
684
689
  ##
685
690
  # RPC-specific configuration for `list_tenants`
686
- # @return [Gapic::Config::Method]
691
+ # @return [::Gapic::Config::Method]
687
692
  #
688
693
  attr_reader :list_tenants
689
694
 
690
695
  # @private
691
696
  def initialize parent_rpcs = nil
692
697
  create_tenant_config = parent_rpcs&.create_tenant if parent_rpcs&.respond_to? :create_tenant
693
- @create_tenant = Gapic::Config::Method.new create_tenant_config
698
+ @create_tenant = ::Gapic::Config::Method.new create_tenant_config
694
699
  get_tenant_config = parent_rpcs&.get_tenant if parent_rpcs&.respond_to? :get_tenant
695
- @get_tenant = Gapic::Config::Method.new get_tenant_config
700
+ @get_tenant = ::Gapic::Config::Method.new get_tenant_config
696
701
  update_tenant_config = parent_rpcs&.update_tenant if parent_rpcs&.respond_to? :update_tenant
697
- @update_tenant = Gapic::Config::Method.new update_tenant_config
702
+ @update_tenant = ::Gapic::Config::Method.new update_tenant_config
698
703
  delete_tenant_config = parent_rpcs&.delete_tenant if parent_rpcs&.respond_to? :delete_tenant
699
- @delete_tenant = Gapic::Config::Method.new delete_tenant_config
704
+ @delete_tenant = ::Gapic::Config::Method.new delete_tenant_config
700
705
  list_tenants_config = parent_rpcs&.list_tenants if parent_rpcs&.respond_to? :list_tenants
701
- @list_tenants = Gapic::Config::Method.new list_tenants_config
706
+ @list_tenants = ::Gapic::Config::Method.new list_tenants_config
702
707
 
703
708
  yield self if block_given?
704
709
  end