google-cloud-talent 0.9.0 → 0.10.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '08d410697a04c74aa2abb667aa95502deacdf21eb310e5592ebe67b0a607b93c'
4
- data.tar.gz: 26630b08efbba14e0275bdea7aa27963b88dd3a08ba1492f3b20c977ee6bb408
3
+ metadata.gz: 350af740f989ff904e986a6e9dc126832796eacf69cf9bbf16e5a471d35a4df3
4
+ data.tar.gz: 483518eb09cd1994b4cfdc41e466d43017ea35b7948071fddf30197e334f71f0
5
5
  SHA512:
6
- metadata.gz: 5ec1c90e97685547e0b58992508bff60b8896f8170cfb2f1d43c17163cb06fdc21371bed9c5b83575c04871ad8524644d8b355689928f7c3c8c5d5613f01fab5
7
- data.tar.gz: 9c8e6bdb13c9042c756c5be2e74f900eac284e2d1f5e04a23bfffba00674ed192a8dc42dba91a8f102ca711998c8511c40260cf7007332f5b2f897ac3653f08e
6
+ metadata.gz: b5cfbd3581082afe43aead73247783420b711c1ad0c4767b7d1f96e412331f59474fdf0e292998797c51639c24af3b37c62f2387b139ca82e7b4e1cc5e397473
7
+ data.tar.gz: 86e393ddfaccd576e7051f610196eec4311f5a8aa23069f82a58dd83fe893512e72d83c2c7f592fc0fa1f296f70f43c19d84c83d35371d4f26dbae6febd2f790
@@ -87,10 +87,9 @@ module Google
87
87
  .select { |dir| File.exist?(dir + ".rb") }
88
88
  .map { |dir| File.basename(dir) }
89
89
 
90
- module ApplicationService
90
+ module TenantService
91
91
  ##
92
- # A service that handles application management, including CRUD and
93
- # enumeration.
92
+ # A service that handles tenant management, including CRUD and enumeration.
94
93
  #
95
94
  # @param version [Symbol, String]
96
95
  # The major version of the service to be used. By default :v4beta1
@@ -140,13 +139,14 @@ module Google
140
139
  .constants
141
140
  .select {|sym| sym.to_s.downcase == version.to_s.downcase}
142
141
  .first
143
- Google::Cloud::Talent.const_get(version_module)::ApplicationService.new(*args, **kwargs)
142
+ Google::Cloud::Talent.const_get(version_module)::TenantService.new(*args, **kwargs)
144
143
  end
145
144
  end
146
145
 
147
- module CompanyService
146
+ module ProfileService
148
147
  ##
149
- # A service that handles company management, including CRUD and enumeration.
148
+ # A service that handles profile management, including profile CRUD,
149
+ # enumeration and search.
150
150
  #
151
151
  # @param version [Symbol, String]
152
152
  # The major version of the service to be used. By default :v4beta1
@@ -196,13 +196,13 @@ module Google
196
196
  .constants
197
197
  .select {|sym| sym.to_s.downcase == version.to_s.downcase}
198
198
  .first
199
- Google::Cloud::Talent.const_get(version_module)::CompanyService.new(*args, **kwargs)
199
+ Google::Cloud::Talent.const_get(version_module)::ProfileService.new(*args, **kwargs)
200
200
  end
201
201
  end
202
202
 
203
- module Completion
203
+ module Event
204
204
  ##
205
- # A service handles auto completion.
205
+ # A service handles client event report.
206
206
  #
207
207
  # @param version [Symbol, String]
208
208
  # The major version of the service to be used. By default :v4beta1
@@ -252,13 +252,14 @@ module Google
252
252
  .constants
253
253
  .select {|sym| sym.to_s.downcase == version.to_s.downcase}
254
254
  .first
255
- Google::Cloud::Talent.const_get(version_module)::Completion.new(*args, **kwargs)
255
+ Google::Cloud::Talent.const_get(version_module)::Event.new(*args, **kwargs)
256
256
  end
257
257
  end
258
258
 
259
- module Event
259
+ module ApplicationService
260
260
  ##
261
- # A service handles client event report.
261
+ # A service that handles application management, including CRUD and
262
+ # enumeration.
262
263
  #
263
264
  # @param version [Symbol, String]
264
265
  # The major version of the service to be used. By default :v4beta1
@@ -308,13 +309,13 @@ module Google
308
309
  .constants
309
310
  .select {|sym| sym.to_s.downcase == version.to_s.downcase}
310
311
  .first
311
- Google::Cloud::Talent.const_get(version_module)::Event.new(*args, **kwargs)
312
+ Google::Cloud::Talent.const_get(version_module)::ApplicationService.new(*args, **kwargs)
312
313
  end
313
314
  end
314
315
 
315
- module JobService
316
+ module CompanyService
316
317
  ##
317
- # A service handles job management, including job CRUD, enumeration and search.
318
+ # A service that handles company management, including CRUD and enumeration.
318
319
  #
319
320
  # @param version [Symbol, String]
320
321
  # The major version of the service to be used. By default :v4beta1
@@ -364,14 +365,13 @@ module Google
364
365
  .constants
365
366
  .select {|sym| sym.to_s.downcase == version.to_s.downcase}
366
367
  .first
367
- Google::Cloud::Talent.const_get(version_module)::JobService.new(*args, **kwargs)
368
+ Google::Cloud::Talent.const_get(version_module)::CompanyService.new(*args, **kwargs)
368
369
  end
369
370
  end
370
371
 
371
- module ProfileService
372
+ module JobService
372
373
  ##
373
- # A service that handles profile management, including profile CRUD,
374
- # enumeration and search.
374
+ # A service handles job management, including job CRUD, enumeration and search.
375
375
  #
376
376
  # @param version [Symbol, String]
377
377
  # The major version of the service to be used. By default :v4beta1
@@ -421,13 +421,13 @@ module Google
421
421
  .constants
422
422
  .select {|sym| sym.to_s.downcase == version.to_s.downcase}
423
423
  .first
424
- Google::Cloud::Talent.const_get(version_module)::ProfileService.new(*args, **kwargs)
424
+ Google::Cloud::Talent.const_get(version_module)::JobService.new(*args, **kwargs)
425
425
  end
426
426
  end
427
427
 
428
- module TenantService
428
+ module Completion
429
429
  ##
430
- # A service that handles tenant management, including CRUD and enumeration.
430
+ # A service handles auto completion.
431
431
  #
432
432
  # @param version [Symbol, String]
433
433
  # The major version of the service to be used. By default :v4beta1
@@ -477,7 +477,7 @@ module Google
477
477
  .constants
478
478
  .select {|sym| sym.to_s.downcase == version.to_s.downcase}
479
479
  .first
480
- Google::Cloud::Talent.const_get(version_module)::TenantService.new(*args, **kwargs)
480
+ Google::Cloud::Talent.const_get(version_module)::Completion.new(*args, **kwargs)
481
481
  end
482
482
  end
483
483
  end
@@ -13,14 +13,14 @@
13
13
  # limitations under the License.
14
14
 
15
15
 
16
+ require "google/cloud/talent/v4beta1/tenant_service_client"
17
+ require "google/cloud/talent/v4beta1/profile_service_client"
18
+ require "google/cloud/talent/v4beta1/event_service_client"
16
19
  require "google/cloud/talent/v4beta1/application_service_client"
17
20
  require "google/cloud/talent/v4beta1/helpers"
18
21
  require "google/cloud/talent/v4beta1/company_service_client"
19
- require "google/cloud/talent/v4beta1/completion_client"
20
- require "google/cloud/talent/v4beta1/event_service_client"
21
22
  require "google/cloud/talent/v4beta1/job_service_client"
22
- require "google/cloud/talent/v4beta1/profile_service_client"
23
- require "google/cloud/talent/v4beta1/tenant_service_client"
23
+ require "google/cloud/talent/v4beta1/completion_client"
24
24
  require "google/cloud/talent/v4beta1/common_pb"
25
25
  require "google/cloud/talent/v4beta1/job_service_pb"
26
26
 
@@ -88,10 +88,9 @@ module Google
88
88
  module V4beta1
89
89
  # rubocop:enable LineLength
90
90
 
91
- module ApplicationService
91
+ module TenantService
92
92
  ##
93
- # A service that handles application management, including CRUD and
94
- # enumeration.
93
+ # A service that handles tenant management, including CRUD and enumeration.
95
94
  #
96
95
  # @param credentials [Google::Auth::Credentials, String, Hash, GRPC::Core::Channel, GRPC::Core::ChannelCredentials, Proc]
97
96
  # Provides the means for authenticating requests made by the client. This parameter can
@@ -149,13 +148,14 @@ module Google
149
148
  service_port: service_port,
150
149
  lib_version: lib_version
151
150
  }.select { |_, v| v != nil }
152
- Google::Cloud::Talent::V4beta1::ApplicationServiceClient.new(**kwargs)
151
+ Google::Cloud::Talent::V4beta1::TenantServiceClient.new(**kwargs)
153
152
  end
154
153
  end
155
154
 
156
- module CompanyService
155
+ module ProfileService
157
156
  ##
158
- # A service that handles company management, including CRUD and enumeration.
157
+ # A service that handles profile management, including profile CRUD,
158
+ # enumeration and search.
159
159
  #
160
160
  # @param credentials [Google::Auth::Credentials, String, Hash, GRPC::Core::Channel, GRPC::Core::ChannelCredentials, Proc]
161
161
  # Provides the means for authenticating requests made by the client. This parameter can
@@ -213,13 +213,13 @@ module Google
213
213
  service_port: service_port,
214
214
  lib_version: lib_version
215
215
  }.select { |_, v| v != nil }
216
- Google::Cloud::Talent::V4beta1::CompanyServiceClient.new(**kwargs)
216
+ Google::Cloud::Talent::V4beta1::ProfileServiceClient.new(**kwargs)
217
217
  end
218
218
  end
219
219
 
220
- module Completion
220
+ module Event
221
221
  ##
222
- # A service handles auto completion.
222
+ # A service handles client event report.
223
223
  #
224
224
  # @param credentials [Google::Auth::Credentials, String, Hash, GRPC::Core::Channel, GRPC::Core::ChannelCredentials, Proc]
225
225
  # Provides the means for authenticating requests made by the client. This parameter can
@@ -277,13 +277,14 @@ module Google
277
277
  service_port: service_port,
278
278
  lib_version: lib_version
279
279
  }.select { |_, v| v != nil }
280
- Google::Cloud::Talent::V4beta1::CompletionClient.new(**kwargs)
280
+ Google::Cloud::Talent::V4beta1::EventServiceClient.new(**kwargs)
281
281
  end
282
282
  end
283
283
 
284
- module Event
284
+ module ApplicationService
285
285
  ##
286
- # A service handles client event report.
286
+ # A service that handles application management, including CRUD and
287
+ # enumeration.
287
288
  #
288
289
  # @param credentials [Google::Auth::Credentials, String, Hash, GRPC::Core::Channel, GRPC::Core::ChannelCredentials, Proc]
289
290
  # Provides the means for authenticating requests made by the client. This parameter can
@@ -341,13 +342,13 @@ module Google
341
342
  service_port: service_port,
342
343
  lib_version: lib_version
343
344
  }.select { |_, v| v != nil }
344
- Google::Cloud::Talent::V4beta1::EventServiceClient.new(**kwargs)
345
+ Google::Cloud::Talent::V4beta1::ApplicationServiceClient.new(**kwargs)
345
346
  end
346
347
  end
347
348
 
348
- module JobService
349
+ module CompanyService
349
350
  ##
350
- # A service handles job management, including job CRUD, enumeration and search.
351
+ # A service that handles company management, including CRUD and enumeration.
351
352
  #
352
353
  # @param credentials [Google::Auth::Credentials, String, Hash, GRPC::Core::Channel, GRPC::Core::ChannelCredentials, Proc]
353
354
  # Provides the means for authenticating requests made by the client. This parameter can
@@ -405,14 +406,13 @@ module Google
405
406
  service_port: service_port,
406
407
  lib_version: lib_version
407
408
  }.select { |_, v| v != nil }
408
- Google::Cloud::Talent::V4beta1::JobServiceClient.new(**kwargs)
409
+ Google::Cloud::Talent::V4beta1::CompanyServiceClient.new(**kwargs)
409
410
  end
410
411
  end
411
412
 
412
- module ProfileService
413
+ module JobService
413
414
  ##
414
- # A service that handles profile management, including profile CRUD,
415
- # enumeration and search.
415
+ # A service handles job management, including job CRUD, enumeration and search.
416
416
  #
417
417
  # @param credentials [Google::Auth::Credentials, String, Hash, GRPC::Core::Channel, GRPC::Core::ChannelCredentials, Proc]
418
418
  # Provides the means for authenticating requests made by the client. This parameter can
@@ -470,13 +470,13 @@ module Google
470
470
  service_port: service_port,
471
471
  lib_version: lib_version
472
472
  }.select { |_, v| v != nil }
473
- Google::Cloud::Talent::V4beta1::ProfileServiceClient.new(**kwargs)
473
+ Google::Cloud::Talent::V4beta1::JobServiceClient.new(**kwargs)
474
474
  end
475
475
  end
476
476
 
477
- module TenantService
477
+ module Completion
478
478
  ##
479
- # A service that handles tenant management, including CRUD and enumeration.
479
+ # A service handles auto completion.
480
480
  #
481
481
  # @param credentials [Google::Auth::Credentials, String, Hash, GRPC::Core::Channel, GRPC::Core::ChannelCredentials, Proc]
482
482
  # Provides the means for authenticating requests made by the client. This parameter can
@@ -534,7 +534,7 @@ module Google
534
534
  service_port: service_port,
535
535
  lib_version: lib_version
536
536
  }.select { |_, v| v != nil }
537
- Google::Cloud::Talent::V4beta1::TenantServiceClient.new(**kwargs)
537
+ Google::Cloud::Talent::V4beta1::CompletionClient.new(**kwargs)
538
538
  end
539
539
  end
540
540
  end
@@ -76,6 +76,18 @@ module Google
76
76
 
77
77
  private_constant :APPLICATION_PATH_TEMPLATE
78
78
 
79
+ COMPANY_PATH_TEMPLATE = Google::Gax::PathTemplate.new(
80
+ "projects/{project}/tenants/{tenant}/companies/{company}"
81
+ )
82
+
83
+ private_constant :COMPANY_PATH_TEMPLATE
84
+
85
+ COMPANY_WITHOUT_TENANT_PATH_TEMPLATE = Google::Gax::PathTemplate.new(
86
+ "projects/{project}/companies/{company}"
87
+ )
88
+
89
+ private_constant :COMPANY_WITHOUT_TENANT_PATH_TEMPLATE
90
+
79
91
  PROFILE_PATH_TEMPLATE = Google::Gax::PathTemplate.new(
80
92
  "projects/{project}/tenants/{tenant}/profiles/{profile}"
81
93
  )
@@ -97,6 +109,34 @@ module Google
97
109
  )
98
110
  end
99
111
 
112
+ # Returns a fully-qualified company resource name string.
113
+ # @deprecated Multi-pattern resource names will have unified creation and parsing helper functions.
114
+ # This helper function will be deleted in the next major version.
115
+ # @param project [String]
116
+ # @param tenant [String]
117
+ # @param company [String]
118
+ # @return [String]
119
+ def self.company_path project, tenant, company
120
+ COMPANY_PATH_TEMPLATE.render(
121
+ :"project" => project,
122
+ :"tenant" => tenant,
123
+ :"company" => company
124
+ )
125
+ end
126
+
127
+ # Returns a fully-qualified company_without_tenant resource name string.
128
+ # @deprecated Multi-pattern resource names will have unified creation and parsing helper functions.
129
+ # This helper function will be deleted in the next major version.
130
+ # @param project [String]
131
+ # @param company [String]
132
+ # @return [String]
133
+ def self.company_without_tenant_path project, company
134
+ COMPANY_WITHOUT_TENANT_PATH_TEMPLATE.render(
135
+ :"project" => project,
136
+ :"company" => company
137
+ )
138
+ end
139
+
100
140
  # Returns a fully-qualified profile resource name string.
101
141
  # @param project [String]
102
142
  # @param tenant [String]
@@ -222,6 +262,14 @@ module Google
222
262
  &Google::Cloud::Talent::V4beta1::ApplicationService::Stub.method(:new)
223
263
  )
224
264
 
265
+ @delete_application = Google::Gax.create_api_call(
266
+ @application_service_stub.method(:delete_application),
267
+ defaults["delete_application"],
268
+ exception_transformer: exception_transformer,
269
+ params_extractor: proc do |request|
270
+ {'name' => request.name}
271
+ end
272
+ )
225
273
  @create_application = Google::Gax.create_api_call(
226
274
  @application_service_stub.method(:create_application),
227
275
  defaults["create_application"],
@@ -246,14 +294,6 @@ module Google
246
294
  {'application.name' => request.application.name}
247
295
  end
248
296
  )
249
- @delete_application = Google::Gax.create_api_call(
250
- @application_service_stub.method(:delete_application),
251
- defaults["delete_application"],
252
- exception_transformer: exception_transformer,
253
- params_extractor: proc do |request|
254
- {'name' => request.name}
255
- end
256
- )
257
297
  @list_applications = Google::Gax.create_api_call(
258
298
  @application_service_stub.method(:list_applications),
259
299
  defaults["list_applications"],
@@ -266,6 +306,40 @@ module Google
266
306
 
267
307
  # Service calls
268
308
 
309
+ # Deletes specified application.
310
+ #
311
+ # @param name [String]
312
+ # Required. The resource name of the application to be deleted.
313
+ #
314
+ # The format is
315
+ # "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}/applications/{application_id}".
316
+ # For example, "projects/foo/tenants/bar/profiles/baz/applications/qux".
317
+ # @param options [Google::Gax::CallOptions]
318
+ # Overrides the default settings for this call, e.g, timeout,
319
+ # retries, etc.
320
+ # @yield [result, operation] Access the result along with the RPC operation
321
+ # @yieldparam result []
322
+ # @yieldparam operation [GRPC::ActiveCall::Operation]
323
+ # @raise [Google::Gax::GaxError] if the RPC is aborted.
324
+ # @example
325
+ # require "google/cloud/talent"
326
+ #
327
+ # application_client = Google::Cloud::Talent::ApplicationService.new(version: :v4beta1)
328
+ # formatted_name = Google::Cloud::Talent::V4beta1::ApplicationServiceClient.application_path("[PROJECT]", "[TENANT]", "[PROFILE]", "[APPLICATION]")
329
+ # application_client.delete_application(formatted_name)
330
+
331
+ def delete_application \
332
+ name,
333
+ options: nil,
334
+ &block
335
+ req = {
336
+ name: name
337
+ }.delete_if { |_, v| v.nil? }
338
+ req = Google::Gax::to_proto(req, Google::Cloud::Talent::V4beta1::DeleteApplicationRequest)
339
+ @delete_application.call(req, options, &block)
340
+ nil
341
+ end
342
+
269
343
  # Creates a new application entity.
270
344
  #
271
345
  # @param parent [String]
@@ -389,40 +463,6 @@ module Google
389
463
  @update_application.call(req, options, &block)
390
464
  end
391
465
 
392
- # Deletes specified application.
393
- #
394
- # @param name [String]
395
- # Required. The resource name of the application to be deleted.
396
- #
397
- # The format is
398
- # "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}/applications/{application_id}".
399
- # For example, "projects/foo/tenants/bar/profiles/baz/applications/qux".
400
- # @param options [Google::Gax::CallOptions]
401
- # Overrides the default settings for this call, e.g, timeout,
402
- # retries, etc.
403
- # @yield [result, operation] Access the result along with the RPC operation
404
- # @yieldparam result []
405
- # @yieldparam operation [GRPC::ActiveCall::Operation]
406
- # @raise [Google::Gax::GaxError] if the RPC is aborted.
407
- # @example
408
- # require "google/cloud/talent"
409
- #
410
- # application_client = Google::Cloud::Talent::ApplicationService.new(version: :v4beta1)
411
- # formatted_name = Google::Cloud::Talent::V4beta1::ApplicationServiceClient.application_path("[PROJECT]", "[TENANT]", "[PROFILE]", "[APPLICATION]")
412
- # application_client.delete_application(formatted_name)
413
-
414
- def delete_application \
415
- name,
416
- options: nil,
417
- &block
418
- req = {
419
- name: name
420
- }.delete_if { |_, v| v.nil? }
421
- req = Google::Gax::to_proto(req, Google::Cloud::Talent::V4beta1::DeleteApplicationRequest)
422
- @delete_application.call(req, options, &block)
423
- nil
424
- end
425
-
426
466
  # Lists all applications associated with the profile.
427
467
  #
428
468
  # @param parent [String]
@@ -20,28 +20,28 @@
20
20
  }
21
21
  },
22
22
  "methods": {
23
+ "DeleteApplication": {
24
+ "timeout_millis": 60000,
25
+ "retry_codes_name": "idempotent",
26
+ "retry_params_name": "default"
27
+ },
23
28
  "CreateApplication": {
24
- "timeout_millis": 30000,
29
+ "timeout_millis": 60000,
25
30
  "retry_codes_name": "non_idempotent",
26
31
  "retry_params_name": "default"
27
32
  },
28
33
  "GetApplication": {
29
- "timeout_millis": 30000,
34
+ "timeout_millis": 60000,
30
35
  "retry_codes_name": "idempotent",
31
36
  "retry_params_name": "default"
32
37
  },
33
38
  "UpdateApplication": {
34
- "timeout_millis": 30000,
39
+ "timeout_millis": 60000,
35
40
  "retry_codes_name": "non_idempotent",
36
41
  "retry_params_name": "default"
37
42
  },
38
- "DeleteApplication": {
39
- "timeout_millis": 30000,
40
- "retry_codes_name": "idempotent",
41
- "retry_params_name": "default"
42
- },
43
43
  "ListApplications": {
44
- "timeout_millis": 30000,
44
+ "timeout_millis": 60000,
45
45
  "retry_codes_name": "idempotent",
46
46
  "retry_params_name": "default"
47
47
  }