google-cloud-talent-v4beta1 0.4.0 → 0.4.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHENTICATION.md +8 -8
  3. data/README.md +1 -1
  4. data/lib/google/cloud/talent/v4beta1/application_pb.rb +2 -2
  5. data/lib/google/cloud/talent/v4beta1/application_service/client.rb +73 -69
  6. data/lib/google/cloud/talent/v4beta1/application_service_pb.rb +2 -2
  7. data/lib/google/cloud/talent/v4beta1/application_service_services_pb.rb +1 -1
  8. data/lib/google/cloud/talent/v4beta1/batch_pb.rb +1 -1
  9. data/lib/google/cloud/talent/v4beta1/common_pb.rb +2 -2
  10. data/lib/google/cloud/talent/v4beta1/company_pb.rb +2 -2
  11. data/lib/google/cloud/talent/v4beta1/company_service/client.rb +73 -69
  12. data/lib/google/cloud/talent/v4beta1/company_service_pb.rb +2 -2
  13. data/lib/google/cloud/talent/v4beta1/company_service_services_pb.rb +1 -1
  14. data/lib/google/cloud/talent/v4beta1/completion/client.rb +39 -45
  15. data/lib/google/cloud/talent/v4beta1/completion_service_pb.rb +2 -2
  16. data/lib/google/cloud/talent/v4beta1/completion_service_services_pb.rb +1 -1
  17. data/lib/google/cloud/talent/v4beta1/event_pb.rb +2 -2
  18. data/lib/google/cloud/talent/v4beta1/event_service/client.rb +38 -41
  19. data/lib/google/cloud/talent/v4beta1/event_service_pb.rb +2 -2
  20. data/lib/google/cloud/talent/v4beta1/event_service_services_pb.rb +1 -1
  21. data/lib/google/cloud/talent/v4beta1/filters_pb.rb +2 -2
  22. data/lib/google/cloud/talent/v4beta1/histogram_pb.rb +1 -1
  23. data/lib/google/cloud/talent/v4beta1/job_pb.rb +2 -2
  24. data/lib/google/cloud/talent/v4beta1/job_service/client.rb +115 -91
  25. data/lib/google/cloud/talent/v4beta1/job_service/operations.rb +54 -37
  26. data/lib/google/cloud/talent/v4beta1/job_service_pb.rb +2 -2
  27. data/lib/google/cloud/talent/v4beta1/job_service_services_pb.rb +1 -1
  28. data/lib/google/cloud/talent/v4beta1/profile_pb.rb +2 -2
  29. data/lib/google/cloud/talent/v4beta1/profile_service/client.rb +82 -74
  30. data/lib/google/cloud/talent/v4beta1/profile_service_pb.rb +2 -2
  31. data/lib/google/cloud/talent/v4beta1/profile_service_services_pb.rb +1 -1
  32. data/lib/google/cloud/talent/v4beta1/tenant_pb.rb +2 -2
  33. data/lib/google/cloud/talent/v4beta1/tenant_service/client.rb +73 -69
  34. data/lib/google/cloud/talent/v4beta1/tenant_service_pb.rb +2 -2
  35. data/lib/google/cloud/talent/v4beta1/tenant_service_services_pb.rb +1 -1
  36. data/lib/google/cloud/talent/v4beta1/version.rb +1 -1
  37. data/proto_docs/google/api/field_behavior.rb +7 -1
  38. data/proto_docs/google/cloud/talent/v4beta1/job.rb +1 -1
  39. data/proto_docs/google/cloud/talent/v4beta1/job_service.rb +1 -1
  40. data/proto_docs/google/cloud/talent/v4beta1/profile_service.rb +1 -1
  41. data/proto_docs/google/type/date.rb +14 -11
  42. data/proto_docs/google/type/money.rb +1 -1
  43. data/proto_docs/google/type/timeofday.rb +2 -1
  44. metadata +13 -7
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e30d77daf631886798ac7bda7030adf35c4347eb4e61f759147ca8305c37ea4f
4
- data.tar.gz: 22643609e22265e440c13d9e6aca859ff5e135ca551be7e8b96ce9be5e2a3cc2
3
+ metadata.gz: bf7958215e7f6d3770e3cad3799a2b474f2be4f197f14d46f038af840ae7abb0
4
+ data.tar.gz: 83d4b02988851fa678302d5f8f059ca45e3db457e1da0b019257ceebd3812c6a
5
5
  SHA512:
6
- metadata.gz: 593890454124515386032789333794759314ce82e282254c65f8a81914014b7fd6472692f63ddde223fd55270766f4072e42f2c283336a1de19868392406d4e3
7
- data.tar.gz: 4896a4fc903c656d72be0fe785c617acd7d44ced4b6393e5d109aa50c4da12b4aa424e3caaa833fdc495590727a06a1c4ca852438ec85b9aa50496a404daf8e6
6
+ metadata.gz: e58540f80cb5c5f05bca96cceeeba554d5b34b5e8b28d4e4ddb4f6e4f10e89feadeb13366a1af2a5d85e271523a3fd8598f94551319c728d79130180d7bd9b8d
7
+ data.tar.gz: 93e4a7d52d712cfe2871e31b2a355a755da1ee1a982c96f23452174c38f3bf35079ea3f3fa0e5ba83367553ba82ff92115f87f55475a8f0e3eaa3c64714f7608
data/AUTHENTICATION.md CHANGED
@@ -66,11 +66,11 @@ The environment variables that google-cloud-talent-v4beta1
66
66
  checks for credentials are configured on the service Credentials class (such as
67
67
  {::Google::Cloud::Talent::V4beta1::ApplicationService::Credentials}):
68
68
 
69
- 1. `TALENT_CREDENTIALS` - Path to JSON file, or JSON contents
70
- 2. `TALENT_KEYFILE` - Path to JSON file, or JSON contents
71
- 3. `GOOGLE_CLOUD_CREDENTIALS` - Path to JSON file, or JSON contents
72
- 4. `GOOGLE_CLOUD_KEYFILE` - Path to JSON file, or JSON contents
73
- 5. `GOOGLE_APPLICATION_CREDENTIALS` - Path to JSON file
69
+ * `TALENT_CREDENTIALS` - Path to JSON file, or JSON contents
70
+ * `TALENT_KEYFILE` - Path to JSON file, or JSON contents
71
+ * `GOOGLE_CLOUD_CREDENTIALS` - Path to JSON file, or JSON contents
72
+ * `GOOGLE_CLOUD_KEYFILE` - Path to JSON file, or JSON contents
73
+ * `GOOGLE_APPLICATION_CREDENTIALS` - Path to JSON file
74
74
 
75
75
  ```ruby
76
76
  require "google/cloud/talent/v4beta1"
@@ -82,8 +82,8 @@ client = ::Google::Cloud::Talent::V4beta1::ApplicationService::Client.new
82
82
 
83
83
  ### Configuration
84
84
 
85
- The **Credentials JSON** can be configured instead of placing them in
86
- environment variables. Either on an individual client initialization:
85
+ The path to the **Credentials JSON** file can be configured instead of storing
86
+ it in an environment variable. Either on an individual client initialization:
87
87
 
88
88
  ```ruby
89
89
  require "google/cloud/talent/v4beta1"
@@ -93,7 +93,7 @@ client = ::Google::Cloud::Talent::V4beta1::ApplicationService::Client.new do |co
93
93
  end
94
94
  ```
95
95
 
96
- Or configured globally for all clients:
96
+ Or globally for all clients:
97
97
 
98
98
  ```ruby
99
99
  require "google/cloud/talent/v4beta1"
data/README.md CHANGED
@@ -33,7 +33,7 @@ In order to use this library, you first need to go through the following steps:
33
33
  require "google/cloud/talent/v4beta1"
34
34
 
35
35
  client = ::Google::Cloud::Talent::V4beta1::ApplicationService::Client.new
36
- request = my_create_request
36
+ request = ::Google::Cloud::Talent::V4beta1::CreateApplicationRequest.new # (request fields as keyword arguments...)
37
37
  response = client.create_application request
38
38
  ```
39
39
 
@@ -1,8 +1,6 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/talent/v4beta1/application.proto
3
3
 
4
- require 'google/protobuf'
5
-
6
4
  require 'google/api/annotations_pb'
7
5
  require 'google/api/field_behavior_pb'
8
6
  require 'google/api/resource_pb'
@@ -10,6 +8,8 @@ require 'google/cloud/talent/v4beta1/common_pb'
10
8
  require 'google/protobuf/timestamp_pb'
11
9
  require 'google/protobuf/wrappers_pb'
12
10
  require 'google/type/date_pb'
11
+ require 'google/protobuf'
12
+
13
13
  Google::Protobuf::DescriptorPool.generated_pool.build do
14
14
  add_file("google/cloud/talent/v4beta1/application.proto", :syntax => :proto3) do
15
15
  add_message "google.cloud.talent.v4beta1.Application" do
@@ -42,13 +42,12 @@ module Google
42
42
  # See {::Google::Cloud::Talent::V4beta1::ApplicationService::Client::Configuration}
43
43
  # for a description of the configuration fields.
44
44
  #
45
- # ## Example
45
+ # @example
46
46
  #
47
- # To modify the configuration for all ApplicationService clients:
48
- #
49
- # ::Google::Cloud::Talent::V4beta1::ApplicationService::Client.configure do |config|
50
- # config.timeout = 10.0
51
- # end
47
+ # # Modify the configuration for all ApplicationService clients
48
+ # ::Google::Cloud::Talent::V4beta1::ApplicationService::Client.configure do |config|
49
+ # config.timeout = 10.0
50
+ # end
52
51
  #
53
52
  # @yield [config] Configure the Client client.
54
53
  # @yieldparam config [Client::Configuration]
@@ -70,28 +69,19 @@ module Google
70
69
 
71
70
  default_config.rpcs.get_application.timeout = 30.0
72
71
  default_config.rpcs.get_application.retry_policy = {
73
- initial_delay: 0.1,
74
- max_delay: 60.0,
75
- multiplier: 1.3,
76
- retry_codes: [4, 14]
72
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
77
73
  }
78
74
 
79
75
  default_config.rpcs.update_application.timeout = 30.0
80
76
 
81
77
  default_config.rpcs.delete_application.timeout = 30.0
82
78
  default_config.rpcs.delete_application.retry_policy = {
83
- initial_delay: 0.1,
84
- max_delay: 60.0,
85
- multiplier: 1.3,
86
- retry_codes: [4, 14]
79
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
87
80
  }
88
81
 
89
82
  default_config.rpcs.list_applications.timeout = 30.0
90
83
  default_config.rpcs.list_applications.retry_policy = {
91
- initial_delay: 0.1,
92
- max_delay: 60.0,
93
- multiplier: 1.3,
94
- retry_codes: [4, 14]
84
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
95
85
  }
96
86
 
97
87
  default_config
@@ -123,19 +113,15 @@ module Google
123
113
  ##
124
114
  # Create a new ApplicationService client object.
125
115
  #
126
- # ## Examples
127
- #
128
- # To create a new ApplicationService client with the default
129
- # configuration:
130
- #
131
- # client = ::Google::Cloud::Talent::V4beta1::ApplicationService::Client.new
116
+ # @example
132
117
  #
133
- # To create a new ApplicationService client with a custom
134
- # configuration:
118
+ # # Create a client using the default configuration
119
+ # client = ::Google::Cloud::Talent::V4beta1::ApplicationService::Client.new
135
120
  #
136
- # client = ::Google::Cloud::Talent::V4beta1::ApplicationService::Client.new do |config|
137
- # config.timeout = 10.0
138
- # end
121
+ # # Create a client using a custom configuration
122
+ # client = ::Google::Cloud::Talent::V4beta1::ApplicationService::Client.new do |config|
123
+ # config.timeout = 10.0
124
+ # end
139
125
  #
140
126
  # @yield [config] Configure the ApplicationService client.
141
127
  # @yieldparam config [Client::Configuration]
@@ -155,14 +141,13 @@ module Google
155
141
 
156
142
  # Create credentials
157
143
  credentials = @config.credentials
158
- # Use self-signed JWT if the scope and endpoint are unchanged from default,
144
+ # Use self-signed JWT if the endpoint is unchanged from default,
159
145
  # but only if the default endpoint does not have a region prefix.
160
- enable_self_signed_jwt = @config.scope == Client.configure.scope &&
161
- @config.endpoint == Client.configure.endpoint &&
146
+ enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
162
147
  !@config.endpoint.split(".").first.include?("-")
163
148
  credentials ||= Credentials.default scope: @config.scope,
164
149
  enable_self_signed_jwt: enable_self_signed_jwt
165
- if credentials.is_a?(String) || credentials.is_a?(Hash)
150
+ if credentials.is_a?(::String) || credentials.is_a?(::Hash)
166
151
  credentials = Credentials.new credentials, scope: @config.scope
167
152
  end
168
153
  @quota_project_id = @config.quota_project
@@ -231,16 +216,20 @@ module Google
231
216
  gapic_version: ::Google::Cloud::Talent::V4beta1::VERSION
232
217
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
233
218
 
234
- header_params = {
235
- "parent" => request.parent
236
- }
219
+ header_params = {}
220
+ if request.parent
221
+ header_params["parent"] = request.parent
222
+ end
223
+
237
224
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
238
225
  metadata[:"x-goog-request-params"] ||= request_params_header
239
226
 
240
227
  options.apply_defaults timeout: @config.rpcs.create_application.timeout,
241
228
  metadata: metadata,
242
229
  retry_policy: @config.rpcs.create_application.retry_policy
243
- options.apply_defaults metadata: @config.metadata,
230
+
231
+ options.apply_defaults timeout: @config.timeout,
232
+ metadata: @config.metadata,
244
233
  retry_policy: @config.retry_policy
245
234
 
246
235
  @application_service_stub.call_rpc :create_application, request, options: options do |response, operation|
@@ -301,16 +290,20 @@ module Google
301
290
  gapic_version: ::Google::Cloud::Talent::V4beta1::VERSION
302
291
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
303
292
 
304
- header_params = {
305
- "name" => request.name
306
- }
293
+ header_params = {}
294
+ if request.name
295
+ header_params["name"] = request.name
296
+ end
297
+
307
298
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
308
299
  metadata[:"x-goog-request-params"] ||= request_params_header
309
300
 
310
301
  options.apply_defaults timeout: @config.rpcs.get_application.timeout,
311
302
  metadata: metadata,
312
303
  retry_policy: @config.rpcs.get_application.retry_policy
313
- options.apply_defaults metadata: @config.metadata,
304
+
305
+ options.apply_defaults timeout: @config.timeout,
306
+ metadata: @config.metadata,
314
307
  retry_policy: @config.retry_policy
315
308
 
316
309
  @application_service_stub.call_rpc :get_application, request, options: options do |response, operation|
@@ -375,16 +368,20 @@ module Google
375
368
  gapic_version: ::Google::Cloud::Talent::V4beta1::VERSION
376
369
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
377
370
 
378
- header_params = {
379
- "application.name" => request.application.name
380
- }
371
+ header_params = {}
372
+ if request.application&.name
373
+ header_params["application.name"] = request.application.name
374
+ end
375
+
381
376
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
382
377
  metadata[:"x-goog-request-params"] ||= request_params_header
383
378
 
384
379
  options.apply_defaults timeout: @config.rpcs.update_application.timeout,
385
380
  metadata: metadata,
386
381
  retry_policy: @config.rpcs.update_application.retry_policy
387
- options.apply_defaults metadata: @config.metadata,
382
+
383
+ options.apply_defaults timeout: @config.timeout,
384
+ metadata: @config.metadata,
388
385
  retry_policy: @config.retry_policy
389
386
 
390
387
  @application_service_stub.call_rpc :update_application, request, options: options do |response, operation|
@@ -445,16 +442,20 @@ module Google
445
442
  gapic_version: ::Google::Cloud::Talent::V4beta1::VERSION
446
443
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
447
444
 
448
- header_params = {
449
- "name" => request.name
450
- }
445
+ header_params = {}
446
+ if request.name
447
+ header_params["name"] = request.name
448
+ end
449
+
451
450
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
452
451
  metadata[:"x-goog-request-params"] ||= request_params_header
453
452
 
454
453
  options.apply_defaults timeout: @config.rpcs.delete_application.timeout,
455
454
  metadata: metadata,
456
455
  retry_policy: @config.rpcs.delete_application.retry_policy
457
- options.apply_defaults metadata: @config.metadata,
456
+
457
+ options.apply_defaults timeout: @config.timeout,
458
+ metadata: @config.metadata,
458
459
  retry_policy: @config.retry_policy
459
460
 
460
461
  @application_service_stub.call_rpc :delete_application, request, options: options do |response, operation|
@@ -520,16 +521,20 @@ module Google
520
521
  gapic_version: ::Google::Cloud::Talent::V4beta1::VERSION
521
522
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
522
523
 
523
- header_params = {
524
- "parent" => request.parent
525
- }
524
+ header_params = {}
525
+ if request.parent
526
+ header_params["parent"] = request.parent
527
+ end
528
+
526
529
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
527
530
  metadata[:"x-goog-request-params"] ||= request_params_header
528
531
 
529
532
  options.apply_defaults timeout: @config.rpcs.list_applications.timeout,
530
533
  metadata: metadata,
531
534
  retry_policy: @config.rpcs.list_applications.retry_policy
532
- options.apply_defaults metadata: @config.metadata,
535
+
536
+ options.apply_defaults timeout: @config.timeout,
537
+ metadata: @config.metadata,
533
538
  retry_policy: @config.retry_policy
534
539
 
535
540
  @application_service_stub.call_rpc :list_applications, request, options: options do |response, operation|
@@ -554,22 +559,21 @@ module Google
554
559
  # Configuration can be applied globally to all clients, or to a single client
555
560
  # on construction.
556
561
  #
557
- # # Examples
558
- #
559
- # To modify the global config, setting the timeout for create_application
560
- # to 20 seconds, and all remaining timeouts to 10 seconds:
561
- #
562
- # ::Google::Cloud::Talent::V4beta1::ApplicationService::Client.configure do |config|
563
- # config.timeout = 10.0
564
- # config.rpcs.create_application.timeout = 20.0
565
- # end
566
- #
567
- # To apply the above configuration only to a new client:
568
- #
569
- # client = ::Google::Cloud::Talent::V4beta1::ApplicationService::Client.new do |config|
570
- # config.timeout = 10.0
571
- # config.rpcs.create_application.timeout = 20.0
572
- # end
562
+ # @example
563
+ #
564
+ # # Modify the global config, setting the timeout for
565
+ # # create_application to 20 seconds,
566
+ # # and all remaining timeouts to 10 seconds.
567
+ # ::Google::Cloud::Talent::V4beta1::ApplicationService::Client.configure do |config|
568
+ # config.timeout = 10.0
569
+ # config.rpcs.create_application.timeout = 20.0
570
+ # end
571
+ #
572
+ # # Apply the above configuration only to a new client.
573
+ # client = ::Google::Cloud::Talent::V4beta1::ApplicationService::Client.new do |config|
574
+ # config.timeout = 10.0
575
+ # config.rpcs.create_application.timeout = 20.0
576
+ # end
573
577
  #
574
578
  # @!attribute [rw] endpoint
575
579
  # The hostname or hostname:port of the service endpoint.
@@ -1,8 +1,6 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/talent/v4beta1/application_service.proto
3
3
 
4
- require 'google/protobuf'
5
-
6
4
  require 'google/api/annotations_pb'
7
5
  require 'google/api/client_pb'
8
6
  require 'google/api/field_behavior_pb'
@@ -11,6 +9,8 @@ require 'google/cloud/talent/v4beta1/application_pb'
11
9
  require 'google/cloud/talent/v4beta1/common_pb'
12
10
  require 'google/protobuf/empty_pb'
13
11
  require 'google/protobuf/field_mask_pb'
12
+ require 'google/protobuf'
13
+
14
14
  Google::Protobuf::DescriptorPool.generated_pool.build do
15
15
  add_file("google/cloud/talent/v4beta1/application_service.proto", :syntax => :proto3) do
16
16
  add_message "google.cloud.talent.v4beta1.CreateApplicationRequest" do
@@ -28,7 +28,7 @@ module Google
28
28
  # enumeration.
29
29
  class Service
30
30
 
31
- include GRPC::GenericService
31
+ include ::GRPC::GenericService
32
32
 
33
33
  self.marshal_class_method = :encode
34
34
  self.unmarshal_class_method = :decode
@@ -1,9 +1,9 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/talent/v4beta1/batch.proto
3
3
 
4
+ require 'google/api/annotations_pb'
4
5
  require 'google/protobuf'
5
6
 
6
- require 'google/api/annotations_pb'
7
7
  Google::Protobuf::DescriptorPool.generated_pool.build do
8
8
  add_file("google/cloud/talent/v4beta1/batch.proto", :syntax => :proto3) do
9
9
  end
@@ -1,8 +1,6 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/talent/v4beta1/common.proto
3
3
 
4
- require 'google/protobuf'
5
-
6
4
  require 'google/api/field_behavior_pb'
7
5
  require 'google/protobuf/timestamp_pb'
8
6
  require 'google/protobuf/wrappers_pb'
@@ -12,6 +10,8 @@ require 'google/type/money_pb'
12
10
  require 'google/type/postal_address_pb'
13
11
  require 'google/type/timeofday_pb'
14
12
  require 'google/api/annotations_pb'
13
+ require 'google/protobuf'
14
+
15
15
  Google::Protobuf::DescriptorPool.generated_pool.build do
16
16
  add_file("google/cloud/talent/v4beta1/common.proto", :syntax => :proto3) do
17
17
  add_message "google.cloud.talent.v4beta1.TimestampRange" do
@@ -1,12 +1,12 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/talent/v4beta1/company.proto
3
3
 
4
- require 'google/protobuf'
5
-
6
4
  require 'google/api/field_behavior_pb'
7
5
  require 'google/api/resource_pb'
8
6
  require 'google/cloud/talent/v4beta1/common_pb'
9
7
  require 'google/api/annotations_pb'
8
+ require 'google/protobuf'
9
+
10
10
  Google::Protobuf::DescriptorPool.generated_pool.build do
11
11
  add_file("google/cloud/talent/v4beta1/company.proto", :syntax => :proto3) do
12
12
  add_message "google.cloud.talent.v4beta1.Company" do