google-cloud-talent-v4beta1 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 (65) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHENTICATION.md +6 -6
  3. data/README.md +1 -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 +124 -124
  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 +126 -126
  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 +60 -60
  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 +53 -53
  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 +320 -320
  23. data/lib/google/cloud/talent/v4beta1/job_service/credentials.rb +1 -1
  24. data/lib/google/cloud/talent/v4beta1/job_service/operations.rb +100 -100
  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 +176 -176
  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 +124 -124
  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 +197 -197
  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 +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fa1af9370285348d7af3f525c74912186830e8c10c6a5079e08c1f9012ed78e4
4
- data.tar.gz: 301873eb7180c41e40966ced7d75843276628bddf9c7e7eca55aecd4bbec5ad4
3
+ metadata.gz: e7e2ee2abdad67e30fe162e36f0c8a8b16e19308d4b9df2a9a4178f7f35024f7
4
+ data.tar.gz: b0bc8fffcb7cae1f93414211490ebe225b7bb49c343ed88f90050ef353be3cba
5
5
  SHA512:
6
- metadata.gz: 4d070d7f20d2105de6597e2061d40efc24141405a1b9f8c2b020a112016deb6dbee4e56cbb3f6ce7c85c619c64459e8020f3878374546ce076eec425a1f69c6e
7
- data.tar.gz: c553ebef111f32f4f9b86ad673293e51eddde8f683bf21cd79e6ef524a31d24c346b93b86f01f982069f50fd975b5c1e4e0452212e8c97987af1b045e544b07a
6
+ metadata.gz: 6a9632876246ed749aea2c1482c538ad66323e5467cfa543e81000777c60599b07a14acf0f0bead0126f155ad952562d8f68bd847ee20b957b0d6c7a90ce7f62
7
+ data.tar.gz: 8a156244df156dfa4bbebd4575a1fbf533b7a3328cc465866c79b5a69cb4e805dac94ff518dbb8c3e6e8da7b026c47b2afaed591a777943fea713efef33e86fa
@@ -27,7 +27,7 @@ export TALENT_CREDENTIALS=path/to/keyfile.json
27
27
  ```ruby
28
28
  require "google/cloud/talent/v4beta1"
29
29
 
30
- client = Google::Cloud::Talent::V4beta1::ApplicationService::Client.new
30
+ client = ::Google::Cloud::Talent::V4beta1::ApplicationService::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-talent-v4beta1
66
66
  checks for credentials are configured on the service Credentials class (such as
67
- {Google::Cloud::Talent::V4beta1::ApplicationService::Credentials}):
67
+ {::Google::Cloud::Talent::V4beta1::ApplicationService::Credentials}):
68
68
 
69
69
  1. `TALENT_CREDENTIALS` - Path to JSON file, or JSON contents
70
70
  2. `TALENT_KEYFILE` - Path to JSON file, or JSON contents
@@ -77,7 +77,7 @@ require "google/cloud/talent/v4beta1"
77
77
 
78
78
  ENV["TALENT_CREDENTIALS"] = "path/to/keyfile.json"
79
79
 
80
- client = Google::Cloud::Talent::V4beta1::ApplicationService::Client.new
80
+ client = ::Google::Cloud::Talent::V4beta1::ApplicationService::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/talent/v4beta1"
90
90
 
91
- client = Google::Cloud::Talent::V4beta1::ApplicationService::Client.new do |config|
91
+ client = ::Google::Cloud::Talent::V4beta1::ApplicationService::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/talent/v4beta1"
100
100
 
101
- Google::Cloud::Talent::V4beta1::ApplicationService::Client.configure do |config|
101
+ ::Google::Cloud::Talent::V4beta1::ApplicationService::Client.configure do |config|
102
102
  config.credentials = "path/to/keyfile.json"
103
103
  end
104
104
 
105
- client = Google::Cloud::Talent::V4beta1::ApplicationService::Client.new
105
+ client = ::Google::Cloud::Talent::V4beta1::ApplicationService::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/talent/v4beta1"
27
27
 
28
- client = Google::Cloud::Talent::V4beta1::ApplicationService::Client.new
28
+ client = ::Google::Cloud::Talent::V4beta1::ApplicationService::Client.new
29
29
  request = my_create_request
30
30
  response = client.create_application request
31
31
  ```
@@ -32,7 +32,7 @@ module Google
32
32
  # To load this package, including all its services, and instantiate a client:
33
33
  #
34
34
  # require "google/cloud/talent/v4beta1"
35
- # client = Google::Cloud::Talent::V4beta1::ApplicationService::Client.new
35
+ # client = ::Google::Cloud::Talent::V4beta1::ApplicationService::Client.new
36
36
  #
37
37
  module V4beta1
38
38
  end
@@ -37,7 +37,7 @@ module Google
37
37
  # To load this service and instantiate a client:
38
38
  #
39
39
  # require "google/cloud/talent/v4beta1/application_service"
40
- # client = Google::Cloud::Talent::V4beta1::ApplicationService::Client.new
40
+ # client = ::Google::Cloud::Talent::V4beta1::ApplicationService::Client.new
41
41
  #
42
42
  module ApplicationService
43
43
  end
@@ -39,15 +39,15 @@ module Google
39
39
  ##
40
40
  # Configure the ApplicationService Client class.
41
41
  #
42
- # See {Google::Cloud::Talent::V4beta1::ApplicationService::Client::Configuration}
42
+ # See {::Google::Cloud::Talent::V4beta1::ApplicationService::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 ApplicationService clients:
48
48
  #
49
- # Google::Cloud::Talent::V4beta1::ApplicationService::Client.configure do |config|
50
- # config.timeout = 10_000
49
+ # ::Google::Cloud::Talent::V4beta1::ApplicationService::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::Talent::V4beta1::ApplicationService::Client::Configuration}
110
+ # See {::Google::Cloud::Talent::V4beta1::ApplicationService::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 ApplicationService client with the default
129
129
  # configuration:
130
130
  #
131
- # client = Google::Cloud::Talent::V4beta1::ApplicationService::Client.new
131
+ # client = ::Google::Cloud::Talent::V4beta1::ApplicationService::Client.new
132
132
  #
133
133
  # To create a new ApplicationService client with a custom
134
134
  # configuration:
135
135
  #
136
- # client = Google::Cloud::Talent::V4beta1::ApplicationService::Client.new do |config|
137
- # config.timeout = 10_000
136
+ # client = ::Google::Cloud::Talent::V4beta1::ApplicationService::Client.new do |config|
137
+ # config.timeout = 10.0
138
138
  # end
139
139
  #
140
140
  # @yield [config] Configure the ApplicationService 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
- @application_service_stub = Gapic::ServiceStub.new(
165
- Google::Cloud::Talent::V4beta1::ApplicationService::Stub,
164
+ @application_service_stub = ::Gapic::ServiceStub.new(
165
+ ::Google::Cloud::Talent::V4beta1::ApplicationService::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_application(request, options = nil)
179
179
  # Pass arguments to `create_application` via a request object, either of type
180
- # {Google::Cloud::Talent::V4beta1::CreateApplicationRequest} or an equivalent Hash.
180
+ # {::Google::Cloud::Talent::V4beta1::CreateApplicationRequest} or an equivalent Hash.
181
181
  #
182
- # @param request [Google::Cloud::Talent::V4beta1::CreateApplicationRequest, Hash]
182
+ # @param request [::Google::Cloud::Talent::V4beta1::CreateApplicationRequest, ::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_application(parent: nil, application: nil)
@@ -190,36 +190,36 @@ 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. Resource name of the profile under which the application is created.
195
195
  #
196
196
  # The format is
197
197
  # "projects/\\{project_id}/tenants/\\{tenant_id}/profiles/\\{profile_id}".
198
198
  # For example, "projects/foo/tenants/bar/profiles/baz".
199
- # @param application [Google::Cloud::Talent::V4beta1::Application, Hash]
199
+ # @param application [::Google::Cloud::Talent::V4beta1::Application, ::Hash]
200
200
  # Required. The application to be created.
201
201
  #
202
202
  # @yield [response, operation] Access the result along with the RPC operation
203
- # @yieldparam response [Google::Cloud::Talent::V4beta1::Application]
204
- # @yieldparam operation [GRPC::ActiveCall::Operation]
203
+ # @yieldparam response [::Google::Cloud::Talent::V4beta1::Application]
204
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
205
205
  #
206
- # @return [Google::Cloud::Talent::V4beta1::Application]
206
+ # @return [::Google::Cloud::Talent::V4beta1::Application]
207
207
  #
208
- # @raise [Google::Cloud::Error] if the RPC is aborted.
208
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
209
209
  #
210
210
  def create_application request, options = nil
211
- raise ArgumentError, "request must be provided" if request.nil?
211
+ raise ::ArgumentError, "request must be provided" if request.nil?
212
212
 
213
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Talent::V4beta1::CreateApplicationRequest
213
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Talent::V4beta1::CreateApplicationRequest
214
214
 
215
215
  # Converts hash and nil to an options object
216
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
216
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
217
217
 
218
218
  # Customize the options with defaults
219
219
  metadata = @config.rpcs.create_application.metadata.to_h
220
220
 
221
221
  # Set x-goog-api-client and x-goog-user-project headers
222
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
222
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
223
223
  lib_name: @config.lib_name, lib_version: @config.lib_version,
224
224
  gapic_version: ::Google::Cloud::Talent::V4beta1::VERSION
225
225
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -240,8 +240,8 @@ module Google
240
240
  yield response, operation if block_given?
241
241
  return response
242
242
  end
243
- rescue GRPC::BadStatus => e
244
- raise Google::Cloud::Error.from_error(e)
243
+ rescue ::GRPC::BadStatus => e
244
+ raise ::Google::Cloud::Error.from_error(e)
245
245
  end
246
246
 
247
247
  ##
@@ -249,12 +249,12 @@ module Google
249
249
  #
250
250
  # @overload get_application(request, options = nil)
251
251
  # Pass arguments to `get_application` via a request object, either of type
252
- # {Google::Cloud::Talent::V4beta1::GetApplicationRequest} or an equivalent Hash.
252
+ # {::Google::Cloud::Talent::V4beta1::GetApplicationRequest} or an equivalent Hash.
253
253
  #
254
- # @param request [Google::Cloud::Talent::V4beta1::GetApplicationRequest, Hash]
254
+ # @param request [::Google::Cloud::Talent::V4beta1::GetApplicationRequest, ::Hash]
255
255
  # A request object representing the call parameters. Required. To specify no
256
256
  # parameters, or to keep all the default parameter values, pass an empty Hash.
257
- # @param options [Gapic::CallOptions, Hash]
257
+ # @param options [::Gapic::CallOptions, ::Hash]
258
258
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
259
259
  #
260
260
  # @overload get_application(name: nil)
@@ -262,7 +262,7 @@ module Google
262
262
  # least one keyword argument is required. To specify no parameters, or to keep all
263
263
  # the default parameter values, pass an empty Hash as a request object (see above).
264
264
  #
265
- # @param name [String]
265
+ # @param name [::String]
266
266
  # Required. The resource name of the application to be retrieved.
267
267
  #
268
268
  # The format is
@@ -270,26 +270,26 @@ module Google
270
270
  # For example, "projects/foo/tenants/bar/profiles/baz/applications/qux".
271
271
  #
272
272
  # @yield [response, operation] Access the result along with the RPC operation
273
- # @yieldparam response [Google::Cloud::Talent::V4beta1::Application]
274
- # @yieldparam operation [GRPC::ActiveCall::Operation]
273
+ # @yieldparam response [::Google::Cloud::Talent::V4beta1::Application]
274
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
275
275
  #
276
- # @return [Google::Cloud::Talent::V4beta1::Application]
276
+ # @return [::Google::Cloud::Talent::V4beta1::Application]
277
277
  #
278
- # @raise [Google::Cloud::Error] if the RPC is aborted.
278
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
279
279
  #
280
280
  def get_application request, options = nil
281
- raise ArgumentError, "request must be provided" if request.nil?
281
+ raise ::ArgumentError, "request must be provided" if request.nil?
282
282
 
283
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Talent::V4beta1::GetApplicationRequest
283
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Talent::V4beta1::GetApplicationRequest
284
284
 
285
285
  # Converts hash and nil to an options object
286
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
286
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
287
287
 
288
288
  # Customize the options with defaults
289
289
  metadata = @config.rpcs.get_application.metadata.to_h
290
290
 
291
291
  # Set x-goog-api-client and x-goog-user-project headers
292
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
292
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
293
293
  lib_name: @config.lib_name, lib_version: @config.lib_version,
294
294
  gapic_version: ::Google::Cloud::Talent::V4beta1::VERSION
295
295
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -310,8 +310,8 @@ module Google
310
310
  yield response, operation if block_given?
311
311
  return response
312
312
  end
313
- rescue GRPC::BadStatus => e
314
- raise Google::Cloud::Error.from_error(e)
313
+ rescue ::GRPC::BadStatus => e
314
+ raise ::Google::Cloud::Error.from_error(e)
315
315
  end
316
316
 
317
317
  ##
@@ -319,12 +319,12 @@ module Google
319
319
  #
320
320
  # @overload update_application(request, options = nil)
321
321
  # Pass arguments to `update_application` via a request object, either of type
322
- # {Google::Cloud::Talent::V4beta1::UpdateApplicationRequest} or an equivalent Hash.
322
+ # {::Google::Cloud::Talent::V4beta1::UpdateApplicationRequest} or an equivalent Hash.
323
323
  #
324
- # @param request [Google::Cloud::Talent::V4beta1::UpdateApplicationRequest, Hash]
324
+ # @param request [::Google::Cloud::Talent::V4beta1::UpdateApplicationRequest, ::Hash]
325
325
  # A request object representing the call parameters. Required. To specify no
326
326
  # parameters, or to keep all the default parameter values, pass an empty Hash.
327
- # @param options [Gapic::CallOptions, Hash]
327
+ # @param options [::Gapic::CallOptions, ::Hash]
328
328
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
329
329
  #
330
330
  # @overload update_application(application: nil, update_mask: nil)
@@ -332,38 +332,38 @@ module Google
332
332
  # least one keyword argument is required. To specify no parameters, or to keep all
333
333
  # the default parameter values, pass an empty Hash as a request object (see above).
334
334
  #
335
- # @param application [Google::Cloud::Talent::V4beta1::Application, Hash]
335
+ # @param application [::Google::Cloud::Talent::V4beta1::Application, ::Hash]
336
336
  # Required. The application resource to replace the current resource in the system.
337
- # @param update_mask [Google::Protobuf::FieldMask, Hash]
337
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
338
338
  # Strongly recommended for the best service experience.
339
339
  #
340
- # If {Google::Cloud::Talent::V4beta1::UpdateApplicationRequest#update_mask update_mask} is provided, only the specified fields in
341
- # {Google::Cloud::Talent::V4beta1::UpdateApplicationRequest#application application} are updated. Otherwise all the fields are updated.
340
+ # If {::Google::Cloud::Talent::V4beta1::UpdateApplicationRequest#update_mask update_mask} is provided, only the specified fields in
341
+ # {::Google::Cloud::Talent::V4beta1::UpdateApplicationRequest#application application} are updated. Otherwise all the fields are updated.
342
342
  #
343
343
  # A field mask to specify the application fields to be updated. Only
344
- # top level fields of {Google::Cloud::Talent::V4beta1::Application Application} are supported.
344
+ # top level fields of {::Google::Cloud::Talent::V4beta1::Application Application} are supported.
345
345
  #
346
346
  # @yield [response, operation] Access the result along with the RPC operation
347
- # @yieldparam response [Google::Cloud::Talent::V4beta1::Application]
348
- # @yieldparam operation [GRPC::ActiveCall::Operation]
347
+ # @yieldparam response [::Google::Cloud::Talent::V4beta1::Application]
348
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
349
349
  #
350
- # @return [Google::Cloud::Talent::V4beta1::Application]
350
+ # @return [::Google::Cloud::Talent::V4beta1::Application]
351
351
  #
352
- # @raise [Google::Cloud::Error] if the RPC is aborted.
352
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
353
353
  #
354
354
  def update_application request, options = nil
355
- raise ArgumentError, "request must be provided" if request.nil?
355
+ raise ::ArgumentError, "request must be provided" if request.nil?
356
356
 
357
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Talent::V4beta1::UpdateApplicationRequest
357
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Talent::V4beta1::UpdateApplicationRequest
358
358
 
359
359
  # Converts hash and nil to an options object
360
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
360
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
361
361
 
362
362
  # Customize the options with defaults
363
363
  metadata = @config.rpcs.update_application.metadata.to_h
364
364
 
365
365
  # Set x-goog-api-client and x-goog-user-project headers
366
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
366
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
367
367
  lib_name: @config.lib_name, lib_version: @config.lib_version,
368
368
  gapic_version: ::Google::Cloud::Talent::V4beta1::VERSION
369
369
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -384,8 +384,8 @@ module Google
384
384
  yield response, operation if block_given?
385
385
  return response
386
386
  end
387
- rescue GRPC::BadStatus => e
388
- raise Google::Cloud::Error.from_error(e)
387
+ rescue ::GRPC::BadStatus => e
388
+ raise ::Google::Cloud::Error.from_error(e)
389
389
  end
390
390
 
391
391
  ##
@@ -393,12 +393,12 @@ module Google
393
393
  #
394
394
  # @overload delete_application(request, options = nil)
395
395
  # Pass arguments to `delete_application` via a request object, either of type
396
- # {Google::Cloud::Talent::V4beta1::DeleteApplicationRequest} or an equivalent Hash.
396
+ # {::Google::Cloud::Talent::V4beta1::DeleteApplicationRequest} or an equivalent Hash.
397
397
  #
398
- # @param request [Google::Cloud::Talent::V4beta1::DeleteApplicationRequest, Hash]
398
+ # @param request [::Google::Cloud::Talent::V4beta1::DeleteApplicationRequest, ::Hash]
399
399
  # A request object representing the call parameters. Required. To specify no
400
400
  # parameters, or to keep all the default parameter values, pass an empty Hash.
401
- # @param options [Gapic::CallOptions, Hash]
401
+ # @param options [::Gapic::CallOptions, ::Hash]
402
402
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
403
403
  #
404
404
  # @overload delete_application(name: nil)
@@ -406,7 +406,7 @@ module Google
406
406
  # least one keyword argument is required. To specify no parameters, or to keep all
407
407
  # the default parameter values, pass an empty Hash as a request object (see above).
408
408
  #
409
- # @param name [String]
409
+ # @param name [::String]
410
410
  # Required. The resource name of the application to be deleted.
411
411
  #
412
412
  # The format is
@@ -414,26 +414,26 @@ module Google
414
414
  # For example, "projects/foo/tenants/bar/profiles/baz/applications/qux".
415
415
  #
416
416
  # @yield [response, operation] Access the result along with the RPC operation
417
- # @yieldparam response [Google::Protobuf::Empty]
418
- # @yieldparam operation [GRPC::ActiveCall::Operation]
417
+ # @yieldparam response [::Google::Protobuf::Empty]
418
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
419
419
  #
420
- # @return [Google::Protobuf::Empty]
420
+ # @return [::Google::Protobuf::Empty]
421
421
  #
422
- # @raise [Google::Cloud::Error] if the RPC is aborted.
422
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
423
423
  #
424
424
  def delete_application request, options = nil
425
- raise ArgumentError, "request must be provided" if request.nil?
425
+ raise ::ArgumentError, "request must be provided" if request.nil?
426
426
 
427
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Talent::V4beta1::DeleteApplicationRequest
427
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Talent::V4beta1::DeleteApplicationRequest
428
428
 
429
429
  # Converts hash and nil to an options object
430
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
430
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
431
431
 
432
432
  # Customize the options with defaults
433
433
  metadata = @config.rpcs.delete_application.metadata.to_h
434
434
 
435
435
  # Set x-goog-api-client and x-goog-user-project headers
436
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
436
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
437
437
  lib_name: @config.lib_name, lib_version: @config.lib_version,
438
438
  gapic_version: ::Google::Cloud::Talent::V4beta1::VERSION
439
439
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -454,8 +454,8 @@ module Google
454
454
  yield response, operation if block_given?
455
455
  return response
456
456
  end
457
- rescue GRPC::BadStatus => e
458
- raise Google::Cloud::Error.from_error(e)
457
+ rescue ::GRPC::BadStatus => e
458
+ raise ::Google::Cloud::Error.from_error(e)
459
459
  end
460
460
 
461
461
  ##
@@ -463,12 +463,12 @@ module Google
463
463
  #
464
464
  # @overload list_applications(request, options = nil)
465
465
  # Pass arguments to `list_applications` via a request object, either of type
466
- # {Google::Cloud::Talent::V4beta1::ListApplicationsRequest} or an equivalent Hash.
466
+ # {::Google::Cloud::Talent::V4beta1::ListApplicationsRequest} or an equivalent Hash.
467
467
  #
468
- # @param request [Google::Cloud::Talent::V4beta1::ListApplicationsRequest, Hash]
468
+ # @param request [::Google::Cloud::Talent::V4beta1::ListApplicationsRequest, ::Hash]
469
469
  # A request object representing the call parameters. Required. To specify no
470
470
  # parameters, or to keep all the default parameter values, pass an empty Hash.
471
- # @param options [Gapic::CallOptions, Hash]
471
+ # @param options [::Gapic::CallOptions, ::Hash]
472
472
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
473
473
  #
474
474
  # @overload list_applications(parent: nil, page_token: nil, page_size: nil)
@@ -476,39 +476,39 @@ module Google
476
476
  # least one keyword argument is required. To specify no parameters, or to keep all
477
477
  # the default parameter values, pass an empty Hash as a request object (see above).
478
478
  #
479
- # @param parent [String]
479
+ # @param parent [::String]
480
480
  # Required. Resource name of the profile under which the application is created.
481
481
  #
482
482
  # The format is
483
483
  # "projects/\\{project_id}/tenants/\\{tenant_id}/profiles/\\{profile_id}", for
484
484
  # example, "projects/foo/tenants/bar/profiles/baz".
485
- # @param page_token [String]
485
+ # @param page_token [::String]
486
486
  # The starting indicator from which to return results.
487
- # @param page_size [Integer]
487
+ # @param page_size [::Integer]
488
488
  # The maximum number of applications to be returned, at most 100.
489
489
  # Default is 100 if a non-positive number is provided.
490
490
  #
491
491
  # @yield [response, operation] Access the result along with the RPC operation
492
- # @yieldparam response [Gapic::PagedEnumerable<Google::Cloud::Talent::V4beta1::Application>]
493
- # @yieldparam operation [GRPC::ActiveCall::Operation]
492
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Talent::V4beta1::Application>]
493
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
494
494
  #
495
- # @return [Gapic::PagedEnumerable<Google::Cloud::Talent::V4beta1::Application>]
495
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::Talent::V4beta1::Application>]
496
496
  #
497
- # @raise [Google::Cloud::Error] if the RPC is aborted.
497
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
498
498
  #
499
499
  def list_applications request, options = nil
500
- raise ArgumentError, "request must be provided" if request.nil?
500
+ raise ::ArgumentError, "request must be provided" if request.nil?
501
501
 
502
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Talent::V4beta1::ListApplicationsRequest
502
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Talent::V4beta1::ListApplicationsRequest
503
503
 
504
504
  # Converts hash and nil to an options object
505
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
505
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
506
506
 
507
507
  # Customize the options with defaults
508
508
  metadata = @config.rpcs.list_applications.metadata.to_h
509
509
 
510
510
  # Set x-goog-api-client and x-goog-user-project headers
511
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
511
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
512
512
  lib_name: @config.lib_name, lib_version: @config.lib_version,
513
513
  gapic_version: ::Google::Cloud::Talent::V4beta1::VERSION
514
514
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -526,12 +526,12 @@ module Google
526
526
  retry_policy: @config.retry_policy
527
527
 
528
528
  @application_service_stub.call_rpc :list_applications, request, options: options do |response, operation|
529
- response = Gapic::PagedEnumerable.new @application_service_stub, :list_applications, request, response, operation, options
529
+ response = ::Gapic::PagedEnumerable.new @application_service_stub, :list_applications, request, response, operation, options
530
530
  yield response, operation if block_given?
531
531
  return response
532
532
  end
533
- rescue GRPC::BadStatus => e
534
- raise Google::Cloud::Error.from_error(e)
533
+ rescue ::GRPC::BadStatus => e
534
+ raise ::Google::Cloud::Error.from_error(e)
535
535
  end
536
536
 
537
537
  ##
@@ -541,7 +541,7 @@ module Google
541
541
  # providing control over timeouts, retry behavior, logging, transport
542
542
  # parameters, and other low-level controls. Certain parameters can also be
543
543
  # applied individually to specific RPCs. See
544
- # {Google::Cloud::Talent::V4beta1::ApplicationService::Client::Configuration::Rpcs}
544
+ # {::Google::Cloud::Talent::V4beta1::ApplicationService::Client::Configuration::Rpcs}
545
545
  # for a list of RPCs that can be configured independently.
546
546
  #
547
547
  # Configuration can be applied globally to all clients, or to a single client
@@ -552,22 +552,22 @@ module Google
552
552
  # To modify the global config, setting the timeout for create_application
553
553
  # to 20 seconds, and all remaining timeouts to 10 seconds:
554
554
  #
555
- # Google::Cloud::Talent::V4beta1::ApplicationService::Client.configure do |config|
556
- # config.timeout = 10_000
557
- # config.rpcs.create_application.timeout = 20_000
555
+ # ::Google::Cloud::Talent::V4beta1::ApplicationService::Client.configure do |config|
556
+ # config.timeout = 10.0
557
+ # config.rpcs.create_application.timeout = 20.0
558
558
  # end
559
559
  #
560
560
  # To apply the above configuration only to a new client:
561
561
  #
562
- # client = Google::Cloud::Talent::V4beta1::ApplicationService::Client.new do |config|
563
- # config.timeout = 10_000
564
- # config.rpcs.create_application.timeout = 20_000
562
+ # client = ::Google::Cloud::Talent::V4beta1::ApplicationService::Client.new do |config|
563
+ # config.timeout = 10.0
564
+ # config.rpcs.create_application.timeout = 20.0
565
565
  # end
566
566
  #
567
567
  # @!attribute [rw] endpoint
568
568
  # The hostname or hostname:port of the service endpoint.
569
569
  # Defaults to `"jobs.googleapis.com"`.
570
- # @return [String]
570
+ # @return [::String]
571
571
  # @!attribute [rw] credentials
572
572
  # Credentials to send with calls. You may provide any of the following types:
573
573
  # * (`String`) The path to a service account key file in JSON format
@@ -579,29 +579,29 @@ module Google
579
579
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
580
580
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
581
581
  # * (`nil`) indicating no credentials
582
- # @return [Object]
582
+ # @return [::Object]
583
583
  # @!attribute [rw] scope
584
584
  # The OAuth scopes
585
- # @return [Array<String>]
585
+ # @return [::Array<::String>]
586
586
  # @!attribute [rw] lib_name
587
587
  # The library name as recorded in instrumentation and logging
588
- # @return [String]
588
+ # @return [::String]
589
589
  # @!attribute [rw] lib_version
590
590
  # The library version as recorded in instrumentation and logging
591
- # @return [String]
591
+ # @return [::String]
592
592
  # @!attribute [rw] channel_args
593
593
  # Extra parameters passed to the gRPC channel. Note: this is ignored if a
594
594
  # `GRPC::Core::Channel` object is provided as the credential.
595
- # @return [Hash]
595
+ # @return [::Hash]
596
596
  # @!attribute [rw] interceptors
597
597
  # An array of interceptors that are run before calls are executed.
598
- # @return [Array<GRPC::ClientInterceptor>]
598
+ # @return [::Array<::GRPC::ClientInterceptor>]
599
599
  # @!attribute [rw] timeout
600
- # The call timeout in milliseconds.
601
- # @return [Numeric]
600
+ # The call timeout in seconds.
601
+ # @return [::Numeric]
602
602
  # @!attribute [rw] metadata
603
603
  # Additional gRPC headers to be sent with the call.
604
- # @return [Hash{Symbol=>String}]
604
+ # @return [::Hash{::Symbol=>::String}]
605
605
  # @!attribute [rw] retry_policy
606
606
  # The retry policy. The value is a hash with the following keys:
607
607
  # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
@@ -609,10 +609,10 @@ module Google
609
609
  # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
610
610
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
611
611
  # trigger a retry.
612
- # @return [Hash]
612
+ # @return [::Hash]
613
613
  #
614
614
  class Configuration
615
- extend Gapic::Config
615
+ extend ::Gapic::Config
616
616
 
617
617
  config_attr :endpoint, "jobs.googleapis.com", String
618
618
  config_attr :credentials, nil do |value|
@@ -620,14 +620,14 @@ module Google
620
620
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
621
621
  allowed.any? { |klass| klass === value }
622
622
  end
623
- config_attr :scope, nil, String, Array, nil
624
- config_attr :lib_name, nil, String, nil
625
- config_attr :lib_version, nil, String, nil
626
- config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, Hash, nil)
627
- config_attr :interceptors, nil, Array, nil
628
- config_attr :timeout, nil, Numeric, nil
629
- config_attr :metadata, nil, Hash, nil
630
- config_attr :retry_policy, nil, Hash, Proc, nil
623
+ config_attr :scope, nil, ::String, ::Array, nil
624
+ config_attr :lib_name, nil, ::String, nil
625
+ config_attr :lib_version, nil, ::String, nil
626
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
627
+ config_attr :interceptors, nil, ::Array, nil
628
+ config_attr :timeout, nil, ::Numeric, nil
629
+ config_attr :metadata, nil, ::Hash, nil
630
+ config_attr :retry_policy, nil, ::Hash, Proc, nil
631
631
 
632
632
  # @private
633
633
  def initialize parent_config = nil
@@ -668,42 +668,42 @@ module Google
668
668
  class Rpcs
669
669
  ##
670
670
  # RPC-specific configuration for `create_application`
671
- # @return [Gapic::Config::Method]
671
+ # @return [::Gapic::Config::Method]
672
672
  #
673
673
  attr_reader :create_application
674
674
  ##
675
675
  # RPC-specific configuration for `get_application`
676
- # @return [Gapic::Config::Method]
676
+ # @return [::Gapic::Config::Method]
677
677
  #
678
678
  attr_reader :get_application
679
679
  ##
680
680
  # RPC-specific configuration for `update_application`
681
- # @return [Gapic::Config::Method]
681
+ # @return [::Gapic::Config::Method]
682
682
  #
683
683
  attr_reader :update_application
684
684
  ##
685
685
  # RPC-specific configuration for `delete_application`
686
- # @return [Gapic::Config::Method]
686
+ # @return [::Gapic::Config::Method]
687
687
  #
688
688
  attr_reader :delete_application
689
689
  ##
690
690
  # RPC-specific configuration for `list_applications`
691
- # @return [Gapic::Config::Method]
691
+ # @return [::Gapic::Config::Method]
692
692
  #
693
693
  attr_reader :list_applications
694
694
 
695
695
  # @private
696
696
  def initialize parent_rpcs = nil
697
697
  create_application_config = parent_rpcs&.create_application if parent_rpcs&.respond_to? :create_application
698
- @create_application = Gapic::Config::Method.new create_application_config
698
+ @create_application = ::Gapic::Config::Method.new create_application_config
699
699
  get_application_config = parent_rpcs&.get_application if parent_rpcs&.respond_to? :get_application
700
- @get_application = Gapic::Config::Method.new get_application_config
700
+ @get_application = ::Gapic::Config::Method.new get_application_config
701
701
  update_application_config = parent_rpcs&.update_application if parent_rpcs&.respond_to? :update_application
702
- @update_application = Gapic::Config::Method.new update_application_config
702
+ @update_application = ::Gapic::Config::Method.new update_application_config
703
703
  delete_application_config = parent_rpcs&.delete_application if parent_rpcs&.respond_to? :delete_application
704
- @delete_application = Gapic::Config::Method.new delete_application_config
704
+ @delete_application = ::Gapic::Config::Method.new delete_application_config
705
705
  list_applications_config = parent_rpcs&.list_applications if parent_rpcs&.respond_to? :list_applications
706
- @list_applications = Gapic::Config::Method.new list_applications_config
706
+ @list_applications = ::Gapic::Config::Method.new list_applications_config
707
707
 
708
708
  yield self if block_given?
709
709
  end