google-cloud-talent 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +2 -0
  3. data/AUTHENTICATION.md +199 -0
  4. data/lib/google/cloud/talent.rb +20 -19
  5. data/lib/google/cloud/talent/v4beta1.rb +22 -21
  6. data/lib/google/cloud/talent/v4beta1/application_pb.rb +62 -0
  7. data/lib/google/cloud/talent/v4beta1/application_service_client.rb +492 -0
  8. data/lib/google/cloud/talent/v4beta1/application_service_client_config.json +51 -0
  9. data/lib/google/cloud/talent/v4beta1/application_service_pb.rb +52 -0
  10. data/lib/google/cloud/talent/v4beta1/application_service_services_pb.rb +56 -0
  11. data/lib/google/cloud/talent/v4beta1/common_pb.rb +47 -1
  12. data/lib/google/cloud/talent/v4beta1/company_pb.rb +1 -1
  13. data/lib/google/cloud/talent/v4beta1/company_service_client.rb +83 -55
  14. data/lib/google/cloud/talent/v4beta1/completion_client.rb +62 -42
  15. data/lib/google/cloud/talent/v4beta1/completion_service_pb.rb +2 -2
  16. data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/application.rb +189 -0
  17. data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/application_service.rb +121 -0
  18. data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/common.rb +189 -94
  19. data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/company.rb +12 -10
  20. data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/company_service.rb +29 -20
  21. data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/completion_service.rb +26 -30
  22. data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/event.rb +16 -55
  23. data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/event_service.rb +9 -1
  24. data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/filters.rb +74 -164
  25. data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/histogram.rb +2 -5
  26. data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/job.rb +58 -86
  27. data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/job_service.rb +109 -137
  28. data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/profile.rb +76 -375
  29. data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/profile_service.rb +21 -38
  30. data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/tenant.rb +1 -3
  31. data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/tenant_service.rb +3 -7
  32. data/lib/google/cloud/talent/v4beta1/doc/google/protobuf/field_mask.rb +18 -26
  33. data/lib/google/cloud/talent/v4beta1/doc/google/protobuf/timestamp.rb +15 -13
  34. data/lib/google/cloud/talent/v4beta1/doc/google/type/date.rb +14 -10
  35. data/lib/google/cloud/talent/v4beta1/doc/google/type/latlng.rb +0 -34
  36. data/lib/google/cloud/talent/v4beta1/doc/google/type/timeofday.rb +2 -3
  37. data/lib/google/cloud/talent/v4beta1/event_pb.rb +2 -9
  38. data/lib/google/cloud/talent/v4beta1/event_service_client.rb +26 -13
  39. data/lib/google/cloud/talent/v4beta1/event_service_services_pb.rb +1 -1
  40. data/lib/google/cloud/talent/v4beta1/filters_pb.rb +8 -20
  41. data/lib/google/cloud/talent/v4beta1/helpers.rb +44 -10
  42. data/lib/google/cloud/talent/v4beta1/histogram_pb.rb +1 -1
  43. data/lib/google/cloud/talent/v4beta1/job_pb.rb +3 -2
  44. data/lib/google/cloud/talent/v4beta1/job_service_client.rb +229 -204
  45. data/lib/google/cloud/talent/v4beta1/job_service_pb.rb +0 -1
  46. data/lib/google/cloud/talent/v4beta1/job_service_services_pb.rb +8 -12
  47. data/lib/google/cloud/talent/v4beta1/profile_pb.rb +6 -64
  48. data/lib/google/cloud/talent/v4beta1/profile_service_client.rb +72 -68
  49. data/lib/google/cloud/talent/v4beta1/profile_service_pb.rb +1 -1
  50. data/lib/google/cloud/talent/v4beta1/profile_service_services_pb.rb +3 -3
  51. data/lib/google/cloud/talent/v4beta1/resume_service_client.rb +2 -2
  52. data/lib/google/cloud/talent/v4beta1/tenant_pb.rb +1 -1
  53. data/lib/google/cloud/talent/v4beta1/tenant_service_client.rb +34 -23
  54. metadata +11 -4
@@ -0,0 +1,51 @@
1
+ {
2
+ "interfaces": {
3
+ "google.cloud.talent.v4beta1.ApplicationService": {
4
+ "retry_codes": {
5
+ "idempotent": [
6
+ "DEADLINE_EXCEEDED",
7
+ "UNAVAILABLE"
8
+ ],
9
+ "non_idempotent": []
10
+ },
11
+ "retry_params": {
12
+ "default": {
13
+ "initial_retry_delay_millis": 100,
14
+ "retry_delay_multiplier": 1.3,
15
+ "max_retry_delay_millis": 60000,
16
+ "initial_rpc_timeout_millis": 20000,
17
+ "rpc_timeout_multiplier": 1.0,
18
+ "max_rpc_timeout_millis": 20000,
19
+ "total_timeout_millis": 600000
20
+ }
21
+ },
22
+ "methods": {
23
+ "CreateApplication": {
24
+ "timeout_millis": 30000,
25
+ "retry_codes_name": "non_idempotent",
26
+ "retry_params_name": "default"
27
+ },
28
+ "GetApplication": {
29
+ "timeout_millis": 30000,
30
+ "retry_codes_name": "idempotent",
31
+ "retry_params_name": "default"
32
+ },
33
+ "UpdateApplication": {
34
+ "timeout_millis": 30000,
35
+ "retry_codes_name": "non_idempotent",
36
+ "retry_params_name": "default"
37
+ },
38
+ "DeleteApplication": {
39
+ "timeout_millis": 30000,
40
+ "retry_codes_name": "idempotent",
41
+ "retry_params_name": "default"
42
+ },
43
+ "ListApplications": {
44
+ "timeout_millis": 30000,
45
+ "retry_codes_name": "idempotent",
46
+ "retry_params_name": "default"
47
+ }
48
+ }
49
+ }
50
+ }
51
+ }
@@ -0,0 +1,52 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/cloud/talent/v4beta1/application_service.proto
3
+
4
+
5
+ require 'google/protobuf'
6
+
7
+ require 'google/api/annotations_pb'
8
+ require 'google/cloud/talent/v4beta1/application_pb'
9
+ require 'google/cloud/talent/v4beta1/common_pb'
10
+ require 'google/protobuf/empty_pb'
11
+ require 'google/protobuf/field_mask_pb'
12
+ Google::Protobuf::DescriptorPool.generated_pool.build do
13
+ add_message "google.cloud.talent.v4beta1.CreateApplicationRequest" do
14
+ optional :parent, :string, 1
15
+ optional :application, :message, 2, "google.cloud.talent.v4beta1.Application"
16
+ end
17
+ add_message "google.cloud.talent.v4beta1.GetApplicationRequest" do
18
+ optional :name, :string, 1
19
+ end
20
+ add_message "google.cloud.talent.v4beta1.UpdateApplicationRequest" do
21
+ optional :application, :message, 1, "google.cloud.talent.v4beta1.Application"
22
+ optional :update_mask, :message, 2, "google.protobuf.FieldMask"
23
+ end
24
+ add_message "google.cloud.talent.v4beta1.DeleteApplicationRequest" do
25
+ optional :name, :string, 1
26
+ end
27
+ add_message "google.cloud.talent.v4beta1.ListApplicationsRequest" do
28
+ optional :parent, :string, 1
29
+ optional :page_token, :string, 2
30
+ optional :page_size, :int32, 3
31
+ end
32
+ add_message "google.cloud.talent.v4beta1.ListApplicationsResponse" do
33
+ repeated :applications, :message, 1, "google.cloud.talent.v4beta1.Application"
34
+ optional :next_page_token, :string, 2
35
+ optional :metadata, :message, 3, "google.cloud.talent.v4beta1.ResponseMetadata"
36
+ end
37
+ end
38
+
39
+ module Google
40
+ module Cloud
41
+ module Talent
42
+ module V4beta1
43
+ CreateApplicationRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4beta1.CreateApplicationRequest").msgclass
44
+ GetApplicationRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4beta1.GetApplicationRequest").msgclass
45
+ UpdateApplicationRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4beta1.UpdateApplicationRequest").msgclass
46
+ DeleteApplicationRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4beta1.DeleteApplicationRequest").msgclass
47
+ ListApplicationsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4beta1.ListApplicationsRequest").msgclass
48
+ ListApplicationsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4beta1.ListApplicationsResponse").msgclass
49
+ end
50
+ end
51
+ end
52
+ end
@@ -0,0 +1,56 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: google/cloud/talent/v4beta1/application_service.proto for package 'google.cloud.talent.v4beta1'
3
+ # Original file comments:
4
+ # Copyright 2019 Google LLC.
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing, software
13
+ # distributed under the License is distributed on an "AS IS" BASIS,
14
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ # See the License for the specific language governing permissions and
16
+ # limitations under the License.
17
+ #
18
+ #
19
+
20
+
21
+ require 'grpc'
22
+ require 'google/cloud/talent/v4beta1/application_service_pb'
23
+
24
+ module Google
25
+ module Cloud
26
+ module Talent
27
+ module V4beta1
28
+ module ApplicationService
29
+ # A service that handles application management, including CRUD and
30
+ # enumeration.
31
+ class Service
32
+
33
+ include GRPC::GenericService
34
+
35
+ self.marshal_class_method = :encode
36
+ self.unmarshal_class_method = :decode
37
+ self.service_name = 'google.cloud.talent.v4beta1.ApplicationService'
38
+
39
+ # Creates a new application entity.
40
+ rpc :CreateApplication, CreateApplicationRequest, Application
41
+ # Retrieves specified application.
42
+ rpc :GetApplication, GetApplicationRequest, Application
43
+ # Updates specified application.
44
+ rpc :UpdateApplication, UpdateApplicationRequest, Application
45
+ # Deletes specified application.
46
+ rpc :DeleteApplication, DeleteApplicationRequest, Google::Protobuf::Empty
47
+ # Lists all applications associated with the profile.
48
+ rpc :ListApplications, ListApplicationsRequest, ListApplicationsResponse
49
+ end
50
+
51
+ Stub = Service.rpc_stub_class
52
+ end
53
+ end
54
+ end
55
+ end
56
+ end
@@ -7,9 +7,11 @@ require 'google/protobuf'
7
7
  require 'google/api/annotations_pb'
8
8
  require 'google/protobuf/timestamp_pb'
9
9
  require 'google/protobuf/wrappers_pb'
10
+ require 'google/type/date_pb'
10
11
  require 'google/type/latlng_pb'
11
12
  require 'google/type/money_pb'
12
13
  require 'google/type/postal_address_pb'
14
+ require 'google/type/timeofday_pb'
13
15
  Google::Protobuf::DescriptorPool.generated_pool.build do
14
16
  add_message "google.cloud.talent.v4beta1.TimestampRange" do
15
17
  optional :start_time, :message, 1, "google.protobuf.Timestamp"
@@ -107,6 +109,30 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
107
109
  value :ONE_TIME, 6
108
110
  value :OTHER_COMPENSATION_UNIT, 7
109
111
  end
112
+ add_message "google.cloud.talent.v4beta1.Certification" do
113
+ optional :display_name, :string, 1
114
+ optional :acquire_date, :message, 2, "google.type.Date"
115
+ optional :expire_date, :message, 3, "google.type.Date"
116
+ optional :authority, :string, 4
117
+ optional :description, :string, 5
118
+ end
119
+ add_message "google.cloud.talent.v4beta1.Skill" do
120
+ optional :display_name, :string, 1
121
+ optional :last_used_date, :message, 2, "google.type.Date"
122
+ optional :level, :enum, 3, "google.cloud.talent.v4beta1.SkillProficiencyLevel"
123
+ optional :context, :string, 4
124
+ optional :skill_name_snippet, :string, 5
125
+ end
126
+ add_message "google.cloud.talent.v4beta1.Interview" do
127
+ optional :rating, :message, 6, "google.cloud.talent.v4beta1.Rating"
128
+ optional :outcome, :enum, 7, "google.cloud.talent.v4beta1.Outcome"
129
+ end
130
+ add_message "google.cloud.talent.v4beta1.Rating" do
131
+ optional :overall, :double, 1
132
+ optional :min, :double, 2
133
+ optional :max, :double, 3
134
+ optional :interval, :double, 4
135
+ end
110
136
  add_enum "google.cloud.talent.v4beta1.CompanySize" do
111
137
  value :COMPANY_SIZE_UNSPECIFIED, 0
112
138
  value :MINI, 1
@@ -225,7 +251,21 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
225
251
  value :TRANSIT, 2
226
252
  value :WALKING, 3
227
253
  value :CYCLING, 4
228
- value :TRANSIT_ACCESSIBLE, 5
254
+ end
255
+ add_enum "google.cloud.talent.v4beta1.SkillProficiencyLevel" do
256
+ value :SKILL_PROFICIENCY_LEVEL_UNSPECIFIED, 0
257
+ value :FUNDAMENTAL_AWARENESS, 1
258
+ value :NOVICE, 2
259
+ value :INTERMEDIATE, 3
260
+ value :ADVANCED, 4
261
+ value :EXPERT, 5
262
+ end
263
+ add_enum "google.cloud.talent.v4beta1.Outcome" do
264
+ value :OUTCOME_UNSPECIFIED, 0
265
+ value :POSITIVE, 1
266
+ value :NEUTRAL, 2
267
+ value :NEGATIVE, 3
268
+ value :OUTCOME_NOT_AVAILABLE, 4
229
269
  end
230
270
  end
231
271
 
@@ -247,6 +287,10 @@ module Google
247
287
  CompensationInfo::CompensationRange = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4beta1.CompensationInfo.CompensationRange").msgclass
248
288
  CompensationInfo::CompensationType = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4beta1.CompensationInfo.CompensationType").enummodule
249
289
  CompensationInfo::CompensationUnit = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit").enummodule
290
+ Certification = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4beta1.Certification").msgclass
291
+ Skill = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4beta1.Skill").msgclass
292
+ Interview = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4beta1.Interview").msgclass
293
+ Rating = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4beta1.Rating").msgclass
250
294
  CompanySize = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4beta1.CompanySize").enummodule
251
295
  JobBenefit = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4beta1.JobBenefit").enummodule
252
296
  DegreeType = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4beta1.DegreeType").enummodule
@@ -258,6 +302,8 @@ module Google
258
302
  ContactInfoUsage = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4beta1.ContactInfoUsage").enummodule
259
303
  HtmlSanitization = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4beta1.HtmlSanitization").enummodule
260
304
  CommuteMethod = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4beta1.CommuteMethod").enummodule
305
+ SkillProficiencyLevel = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4beta1.SkillProficiencyLevel").enummodule
306
+ Outcome = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4beta1.Outcome").enummodule
261
307
  end
262
308
  end
263
309
  end
@@ -4,8 +4,8 @@
4
4
 
5
5
  require 'google/protobuf'
6
6
 
7
- require 'google/api/annotations_pb'
8
7
  require 'google/cloud/talent/v4beta1/common_pb'
8
+ require 'google/api/annotations_pb'
9
9
  Google::Protobuf::DescriptorPool.generated_pool.build do
10
10
  add_message "google.cloud.talent.v4beta1.Company" do
11
11
  optional :name, :string, 1
@@ -68,35 +68,39 @@ module Google
68
68
  ].freeze
69
69
 
70
70
 
71
- PROJECT_PATH_TEMPLATE = Google::Gax::PathTemplate.new(
72
- "projects/{project}"
71
+ COMPANY_PATH_TEMPLATE = Google::Gax::PathTemplate.new(
72
+ "projects/{project}/tenants/{tenant}/companies/{company}"
73
73
  )
74
74
 
75
- private_constant :PROJECT_PATH_TEMPLATE
75
+ private_constant :COMPANY_PATH_TEMPLATE
76
76
 
77
- COMPANY_PATH_TEMPLATE = Google::Gax::PathTemplate.new(
78
- "projects/{project}/companies/{company}"
77
+ TENANT_PATH_TEMPLATE = Google::Gax::PathTemplate.new(
78
+ "projects/{project}/tenants/{tenant}"
79
79
  )
80
80
 
81
- private_constant :COMPANY_PATH_TEMPLATE
81
+ private_constant :TENANT_PATH_TEMPLATE
82
82
 
83
- # Returns a fully-qualified project resource name string.
83
+ # Returns a fully-qualified company resource name string.
84
84
  # @param project [String]
85
+ # @param tenant [String]
86
+ # @param company [String]
85
87
  # @return [String]
86
- def self.project_path project
87
- PROJECT_PATH_TEMPLATE.render(
88
- :"project" => project
88
+ def self.company_path project, tenant, company
89
+ COMPANY_PATH_TEMPLATE.render(
90
+ :"project" => project,
91
+ :"tenant" => tenant,
92
+ :"company" => company
89
93
  )
90
94
  end
91
95
 
92
- # Returns a fully-qualified company resource name string.
96
+ # Returns a fully-qualified tenant resource name string.
93
97
  # @param project [String]
94
- # @param company [String]
98
+ # @param tenant [String]
95
99
  # @return [String]
96
- def self.company_path project, company
97
- COMPANY_PATH_TEMPLATE.render(
100
+ def self.tenant_path project, tenant
101
+ TENANT_PATH_TEMPLATE.render(
98
102
  :"project" => project,
99
- :"company" => company
103
+ :"tenant" => tenant
100
104
  )
101
105
  end
102
106
 
@@ -206,27 +210,42 @@ module Google
206
210
  @create_company = Google::Gax.create_api_call(
207
211
  @company_service_stub.method(:create_company),
208
212
  defaults["create_company"],
209
- exception_transformer: exception_transformer
213
+ exception_transformer: exception_transformer,
214
+ params_extractor: proc do |request|
215
+ {'parent' => request.parent}
216
+ end
210
217
  )
211
218
  @get_company = Google::Gax.create_api_call(
212
219
  @company_service_stub.method(:get_company),
213
220
  defaults["get_company"],
214
- exception_transformer: exception_transformer
221
+ exception_transformer: exception_transformer,
222
+ params_extractor: proc do |request|
223
+ {'name' => request.name}
224
+ end
215
225
  )
216
226
  @update_company = Google::Gax.create_api_call(
217
227
  @company_service_stub.method(:update_company),
218
228
  defaults["update_company"],
219
- exception_transformer: exception_transformer
229
+ exception_transformer: exception_transformer,
230
+ params_extractor: proc do |request|
231
+ {'company.name' => request.company.name}
232
+ end
220
233
  )
221
234
  @delete_company = Google::Gax.create_api_call(
222
235
  @company_service_stub.method(:delete_company),
223
236
  defaults["delete_company"],
224
- exception_transformer: exception_transformer
237
+ exception_transformer: exception_transformer,
238
+ params_extractor: proc do |request|
239
+ {'name' => request.name}
240
+ end
225
241
  )
226
242
  @list_companies = Google::Gax.create_api_call(
227
243
  @company_service_stub.method(:list_companies),
228
244
  defaults["list_companies"],
229
- exception_transformer: exception_transformer
245
+ exception_transformer: exception_transformer,
246
+ params_extractor: proc do |request|
247
+ {'parent' => request.parent}
248
+ end
230
249
  )
231
250
  end
232
251
 
@@ -237,10 +256,13 @@ module Google
237
256
  # @param parent [String]
238
257
  # Required.
239
258
  #
240
- # Resource name of the project under which the company is created.
259
+ # Resource name of the tenant under which the company is created.
241
260
  #
242
- # The format is "projects/{project_id}", for example,
243
- # "projects/api-test-project".
261
+ # The format is "projects/{project_id}/tenants/{tenant_id}", for example,
262
+ # "projects/api-test-project/tenant/foo".
263
+ #
264
+ # Tenant id is optional and a default tenant is created if unspecified, for
265
+ # example, "projects/api-test-project".
244
266
  # @param company [Google::Cloud::Talent::V4beta1::Company | Hash]
245
267
  # Required.
246
268
  #
@@ -258,12 +280,12 @@ module Google
258
280
  # @example
259
281
  # require "google/cloud/talent"
260
282
  #
261
- # company_service_client = Google::Cloud::Talent::CompanyService.new(version: :v4beta1)
262
- # formatted_parent = Google::Cloud::Talent::V4beta1::CompanyServiceClient.project_path("[PROJECT]")
283
+ # company_client = Google::Cloud::Talent::CompanyService.new(version: :v4beta1)
284
+ # formatted_parent = Google::Cloud::Talent::V4beta1::CompanyServiceClient.tenant_path("[PROJECT]", "[TENANT]")
263
285
  #
264
286
  # # TODO: Initialize `company`:
265
287
  # company = {}
266
- # response = company_service_client.create_company(formatted_parent, company)
288
+ # response = company_client.create_company(formatted_parent, company)
267
289
 
268
290
  def create_company \
269
291
  parent,
@@ -285,8 +307,12 @@ module Google
285
307
  #
286
308
  # The resource name of the company to be retrieved.
287
309
  #
288
- # The format is "projects/{project_id}/companies/{company_id}", for example,
289
- # "projects/api-test-project/companies/foo".
310
+ # The format is
311
+ # "projects/{project_id}/tenants/{tenant_id}/companies/{company_id}", for
312
+ # example, "projects/api-test-project/tenants/foo/companies/bar".
313
+ #
314
+ # Tenant id is optional and the default tenant is used if unspecified, for
315
+ # example, "projects/api-test-project/companies/bar".
290
316
  # @param options [Google::Gax::CallOptions]
291
317
  # Overrides the default settings for this call, e.g, timeout,
292
318
  # retries, etc.
@@ -298,9 +324,9 @@ module Google
298
324
  # @example
299
325
  # require "google/cloud/talent"
300
326
  #
301
- # company_service_client = Google::Cloud::Talent::CompanyService.new(version: :v4beta1)
302
- # formatted_name = Google::Cloud::Talent::V4beta1::CompanyServiceClient.company_path("[PROJECT]", "[COMPANY]")
303
- # response = company_service_client.get_company(formatted_name)
327
+ # company_client = Google::Cloud::Talent::CompanyService.new(version: :v4beta1)
328
+ # formatted_name = Google::Cloud::Talent::V4beta1::CompanyServiceClient.company_path("[PROJECT]", "[TENANT]", "[COMPANY]")
329
+ # response = company_client.get_company(formatted_name)
304
330
 
305
331
  def get_company \
306
332
  name,
@@ -325,15 +351,11 @@ module Google
325
351
  # Optional but strongly recommended for the best service
326
352
  # experience.
327
353
  #
328
- # If
329
- # {Google::Cloud::Talent::V4beta1::UpdateCompanyRequest#update_mask update_mask}
330
- # is provided, only the specified fields in
331
- # {Google::Cloud::Talent::V4beta1::UpdateCompanyRequest#company company} are
332
- # updated. Otherwise all the fields are updated.
354
+ # If {Google::Cloud::Talent::V4beta1::UpdateCompanyRequest#update_mask update_mask} is provided, only the specified fields in
355
+ # {Google::Cloud::Talent::V4beta1::UpdateCompanyRequest#company company} are updated. Otherwise all the fields are updated.
333
356
  #
334
357
  # A field mask to specify the company fields to be updated. Only
335
- # top level fields of {Google::Cloud::Talent::V4beta1::Company Company} are
336
- # supported.
358
+ # top level fields of {Google::Cloud::Talent::V4beta1::Company Company} are supported.
337
359
  # A hash of the same form as `Google::Protobuf::FieldMask`
338
360
  # can also be provided.
339
361
  # @param options [Google::Gax::CallOptions]
@@ -347,11 +369,11 @@ module Google
347
369
  # @example
348
370
  # require "google/cloud/talent"
349
371
  #
350
- # company_service_client = Google::Cloud::Talent::CompanyService.new(version: :v4beta1)
372
+ # company_client = Google::Cloud::Talent::CompanyService.new(version: :v4beta1)
351
373
  #
352
374
  # # TODO: Initialize `company`:
353
375
  # company = {}
354
- # response = company_service_client.update_company(company)
376
+ # response = company_client.update_company(company)
355
377
 
356
378
  def update_company \
357
379
  company,
@@ -374,8 +396,12 @@ module Google
374
396
  #
375
397
  # The resource name of the company to be deleted.
376
398
  #
377
- # The format is "projects/{project_id}/companies/{company_id}", for example,
378
- # "projects/api-test-project/companies/foo".
399
+ # The format is
400
+ # "projects/{project_id}/tenants/{tenant_id}/companies/{company_id}", for
401
+ # example, "projects/api-test-project/tenants/foo/companies/bar".
402
+ #
403
+ # Tenant id is optional and the default tenant is used if unspecified, for
404
+ # example, "projects/api-test-project/companies/bar".
379
405
  # @param options [Google::Gax::CallOptions]
380
406
  # Overrides the default settings for this call, e.g, timeout,
381
407
  # retries, etc.
@@ -386,9 +412,9 @@ module Google
386
412
  # @example
387
413
  # require "google/cloud/talent"
388
414
  #
389
- # company_service_client = Google::Cloud::Talent::CompanyService.new(version: :v4beta1)
390
- # formatted_name = Google::Cloud::Talent::V4beta1::CompanyServiceClient.company_path("[PROJECT]", "[COMPANY]")
391
- # company_service_client.delete_company(formatted_name)
415
+ # company_client = Google::Cloud::Talent::CompanyService.new(version: :v4beta1)
416
+ # formatted_name = Google::Cloud::Talent::V4beta1::CompanyServiceClient.company_path("[PROJECT]", "[TENANT]", "[COMPANY]")
417
+ # company_client.delete_company(formatted_name)
392
418
 
393
419
  def delete_company \
394
420
  name,
@@ -407,10 +433,13 @@ module Google
407
433
  # @param parent [String]
408
434
  # Required.
409
435
  #
410
- # Resource name of the project under which the company is created.
436
+ # Resource name of the tenant under which the company is created.
437
+ #
438
+ # The format is "projects/{project_id}/tenants/{tenant_id}", for example,
439
+ # "projects/api-test-project/tenant/foo".
411
440
  #
412
- # The format is "projects/{project_id}", for example,
413
- # "projects/api-test-project".
441
+ # Tenant id is optional and the default tenant is used if unspecified, for
442
+ # example, "projects/api-test-project".
414
443
  # @param page_size [Integer]
415
444
  # The maximum number of resources contained in the underlying API
416
445
  # response. If page streaming is performed per-resource, this
@@ -424,9 +453,8 @@ module Google
424
453
  #
425
454
  # Defaults to false.
426
455
  #
427
- # If true, at most
428
- # {Google::Cloud::Talent::V4beta1::ListCompaniesRequest#page_size page_size} of
429
- # companies are fetched, among which only those with open jobs are returned.
456
+ # If true, at most {Google::Cloud::Talent::V4beta1::ListCompaniesRequest#page_size page_size} of companies are fetched, among which
457
+ # only those with open jobs are returned.
430
458
  # @param options [Google::Gax::CallOptions]
431
459
  # Overrides the default settings for this call, e.g, timeout,
432
460
  # retries, etc.
@@ -442,16 +470,16 @@ module Google
442
470
  # @example
443
471
  # require "google/cloud/talent"
444
472
  #
445
- # company_service_client = Google::Cloud::Talent::CompanyService.new(version: :v4beta1)
446
- # formatted_parent = Google::Cloud::Talent::V4beta1::CompanyServiceClient.project_path("[PROJECT]")
473
+ # company_client = Google::Cloud::Talent::CompanyService.new(version: :v4beta1)
474
+ # formatted_parent = Google::Cloud::Talent::V4beta1::CompanyServiceClient.tenant_path("[PROJECT]", "[TENANT]")
447
475
  #
448
476
  # # Iterate over all results.
449
- # company_service_client.list_companies(formatted_parent).each do |element|
477
+ # company_client.list_companies(formatted_parent).each do |element|
450
478
  # # Process element.
451
479
  # end
452
480
  #
453
481
  # # Or iterate over results one page at a time.
454
- # company_service_client.list_companies(formatted_parent).each_page do |page|
482
+ # company_client.list_companies(formatted_parent).each_page do |page|
455
483
  # # Process each page at a time.
456
484
  # page.each do |element|
457
485
  # # Process element.