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.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +8 -8
- data/README.md +1 -1
- data/lib/google/cloud/talent/v4beta1/application_pb.rb +2 -2
- data/lib/google/cloud/talent/v4beta1/application_service/client.rb +73 -69
- data/lib/google/cloud/talent/v4beta1/application_service_pb.rb +2 -2
- data/lib/google/cloud/talent/v4beta1/application_service_services_pb.rb +1 -1
- data/lib/google/cloud/talent/v4beta1/batch_pb.rb +1 -1
- data/lib/google/cloud/talent/v4beta1/common_pb.rb +2 -2
- data/lib/google/cloud/talent/v4beta1/company_pb.rb +2 -2
- data/lib/google/cloud/talent/v4beta1/company_service/client.rb +73 -69
- data/lib/google/cloud/talent/v4beta1/company_service_pb.rb +2 -2
- data/lib/google/cloud/talent/v4beta1/company_service_services_pb.rb +1 -1
- data/lib/google/cloud/talent/v4beta1/completion/client.rb +39 -45
- data/lib/google/cloud/talent/v4beta1/completion_service_pb.rb +2 -2
- data/lib/google/cloud/talent/v4beta1/completion_service_services_pb.rb +1 -1
- data/lib/google/cloud/talent/v4beta1/event_pb.rb +2 -2
- data/lib/google/cloud/talent/v4beta1/event_service/client.rb +38 -41
- data/lib/google/cloud/talent/v4beta1/event_service_pb.rb +2 -2
- data/lib/google/cloud/talent/v4beta1/event_service_services_pb.rb +1 -1
- data/lib/google/cloud/talent/v4beta1/filters_pb.rb +2 -2
- data/lib/google/cloud/talent/v4beta1/histogram_pb.rb +1 -1
- data/lib/google/cloud/talent/v4beta1/job_pb.rb +2 -2
- data/lib/google/cloud/talent/v4beta1/job_service/client.rb +115 -91
- data/lib/google/cloud/talent/v4beta1/job_service/operations.rb +54 -37
- data/lib/google/cloud/talent/v4beta1/job_service_pb.rb +2 -2
- data/lib/google/cloud/talent/v4beta1/job_service_services_pb.rb +1 -1
- data/lib/google/cloud/talent/v4beta1/profile_pb.rb +2 -2
- data/lib/google/cloud/talent/v4beta1/profile_service/client.rb +82 -74
- data/lib/google/cloud/talent/v4beta1/profile_service_pb.rb +2 -2
- data/lib/google/cloud/talent/v4beta1/profile_service_services_pb.rb +1 -1
- data/lib/google/cloud/talent/v4beta1/tenant_pb.rb +2 -2
- data/lib/google/cloud/talent/v4beta1/tenant_service/client.rb +73 -69
- data/lib/google/cloud/talent/v4beta1/tenant_service_pb.rb +2 -2
- data/lib/google/cloud/talent/v4beta1/tenant_service_services_pb.rb +1 -1
- data/lib/google/cloud/talent/v4beta1/version.rb +1 -1
- data/proto_docs/google/api/field_behavior.rb +7 -1
- data/proto_docs/google/cloud/talent/v4beta1/job.rb +1 -1
- data/proto_docs/google/cloud/talent/v4beta1/job_service.rb +1 -1
- data/proto_docs/google/cloud/talent/v4beta1/profile_service.rb +1 -1
- data/proto_docs/google/type/date.rb +14 -11
- data/proto_docs/google/type/money.rb +1 -1
- data/proto_docs/google/type/timeofday.rb +2 -1
- metadata +13 -7
|
@@ -42,13 +42,12 @@ module Google
|
|
|
42
42
|
# See {::Google::Cloud::Talent::V4beta1::ProfileService::Client::Configuration}
|
|
43
43
|
# for a description of the configuration fields.
|
|
44
44
|
#
|
|
45
|
-
#
|
|
45
|
+
# @example
|
|
46
46
|
#
|
|
47
|
-
#
|
|
48
|
-
#
|
|
49
|
-
#
|
|
50
|
-
#
|
|
51
|
-
# end
|
|
47
|
+
# # Modify the configuration for all ProfileService clients
|
|
48
|
+
# ::Google::Cloud::Talent::V4beta1::ProfileService::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]
|
|
@@ -68,30 +67,21 @@ module Google
|
|
|
68
67
|
|
|
69
68
|
default_config.rpcs.list_profiles.timeout = 30.0
|
|
70
69
|
default_config.rpcs.list_profiles.retry_policy = {
|
|
71
|
-
initial_delay: 0.1,
|
|
72
|
-
max_delay: 60.0,
|
|
73
|
-
multiplier: 1.3,
|
|
74
|
-
retry_codes: [4, 14]
|
|
70
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
|
|
75
71
|
}
|
|
76
72
|
|
|
77
73
|
default_config.rpcs.create_profile.timeout = 30.0
|
|
78
74
|
|
|
79
75
|
default_config.rpcs.get_profile.timeout = 30.0
|
|
80
76
|
default_config.rpcs.get_profile.retry_policy = {
|
|
81
|
-
initial_delay: 0.1,
|
|
82
|
-
max_delay: 60.0,
|
|
83
|
-
multiplier: 1.3,
|
|
84
|
-
retry_codes: [4, 14]
|
|
77
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
|
|
85
78
|
}
|
|
86
79
|
|
|
87
80
|
default_config.rpcs.update_profile.timeout = 30.0
|
|
88
81
|
|
|
89
82
|
default_config.rpcs.delete_profile.timeout = 30.0
|
|
90
83
|
default_config.rpcs.delete_profile.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.rpcs.search_profiles.timeout = 30.0
|
|
@@ -125,19 +115,15 @@ module Google
|
|
|
125
115
|
##
|
|
126
116
|
# Create a new ProfileService client object.
|
|
127
117
|
#
|
|
128
|
-
#
|
|
129
|
-
#
|
|
130
|
-
# To create a new ProfileService client with the default
|
|
131
|
-
# configuration:
|
|
118
|
+
# @example
|
|
132
119
|
#
|
|
133
|
-
#
|
|
120
|
+
# # Create a client using the default configuration
|
|
121
|
+
# client = ::Google::Cloud::Talent::V4beta1::ProfileService::Client.new
|
|
134
122
|
#
|
|
135
|
-
#
|
|
136
|
-
#
|
|
137
|
-
#
|
|
138
|
-
#
|
|
139
|
-
# config.timeout = 10.0
|
|
140
|
-
# end
|
|
123
|
+
# # Create a client using a custom configuration
|
|
124
|
+
# client = ::Google::Cloud::Talent::V4beta1::ProfileService::Client.new do |config|
|
|
125
|
+
# config.timeout = 10.0
|
|
126
|
+
# end
|
|
141
127
|
#
|
|
142
128
|
# @yield [config] Configure the ProfileService client.
|
|
143
129
|
# @yieldparam config [Client::Configuration]
|
|
@@ -157,14 +143,13 @@ module Google
|
|
|
157
143
|
|
|
158
144
|
# Create credentials
|
|
159
145
|
credentials = @config.credentials
|
|
160
|
-
# Use self-signed JWT if the
|
|
146
|
+
# Use self-signed JWT if the endpoint is unchanged from default,
|
|
161
147
|
# but only if the default endpoint does not have a region prefix.
|
|
162
|
-
enable_self_signed_jwt = @config.
|
|
163
|
-
@config.endpoint == Client.configure.endpoint &&
|
|
148
|
+
enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
|
|
164
149
|
!@config.endpoint.split(".").first.include?("-")
|
|
165
150
|
credentials ||= Credentials.default scope: @config.scope,
|
|
166
151
|
enable_self_signed_jwt: enable_self_signed_jwt
|
|
167
|
-
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
|
152
|
+
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
|
168
153
|
credentials = Credentials.new credentials, scope: @config.scope
|
|
169
154
|
end
|
|
170
155
|
@quota_project_id = @config.quota_project
|
|
@@ -264,16 +249,20 @@ module Google
|
|
|
264
249
|
gapic_version: ::Google::Cloud::Talent::V4beta1::VERSION
|
|
265
250
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
266
251
|
|
|
267
|
-
header_params = {
|
|
268
|
-
|
|
269
|
-
|
|
252
|
+
header_params = {}
|
|
253
|
+
if request.parent
|
|
254
|
+
header_params["parent"] = request.parent
|
|
255
|
+
end
|
|
256
|
+
|
|
270
257
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
271
258
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
272
259
|
|
|
273
260
|
options.apply_defaults timeout: @config.rpcs.list_profiles.timeout,
|
|
274
261
|
metadata: metadata,
|
|
275
262
|
retry_policy: @config.rpcs.list_profiles.retry_policy
|
|
276
|
-
|
|
263
|
+
|
|
264
|
+
options.apply_defaults timeout: @config.timeout,
|
|
265
|
+
metadata: @config.metadata,
|
|
277
266
|
retry_policy: @config.retry_policy
|
|
278
267
|
|
|
279
268
|
@profile_service_stub.call_rpc :list_profiles, request, options: options do |response, operation|
|
|
@@ -336,16 +325,20 @@ module Google
|
|
|
336
325
|
gapic_version: ::Google::Cloud::Talent::V4beta1::VERSION
|
|
337
326
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
338
327
|
|
|
339
|
-
header_params = {
|
|
340
|
-
|
|
341
|
-
|
|
328
|
+
header_params = {}
|
|
329
|
+
if request.parent
|
|
330
|
+
header_params["parent"] = request.parent
|
|
331
|
+
end
|
|
332
|
+
|
|
342
333
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
343
334
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
344
335
|
|
|
345
336
|
options.apply_defaults timeout: @config.rpcs.create_profile.timeout,
|
|
346
337
|
metadata: metadata,
|
|
347
338
|
retry_policy: @config.rpcs.create_profile.retry_policy
|
|
348
|
-
|
|
339
|
+
|
|
340
|
+
options.apply_defaults timeout: @config.timeout,
|
|
341
|
+
metadata: @config.metadata,
|
|
349
342
|
retry_policy: @config.retry_policy
|
|
350
343
|
|
|
351
344
|
@profile_service_stub.call_rpc :create_profile, request, options: options do |response, operation|
|
|
@@ -406,16 +399,20 @@ module Google
|
|
|
406
399
|
gapic_version: ::Google::Cloud::Talent::V4beta1::VERSION
|
|
407
400
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
408
401
|
|
|
409
|
-
header_params = {
|
|
410
|
-
|
|
411
|
-
|
|
402
|
+
header_params = {}
|
|
403
|
+
if request.name
|
|
404
|
+
header_params["name"] = request.name
|
|
405
|
+
end
|
|
406
|
+
|
|
412
407
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
413
408
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
414
409
|
|
|
415
410
|
options.apply_defaults timeout: @config.rpcs.get_profile.timeout,
|
|
416
411
|
metadata: metadata,
|
|
417
412
|
retry_policy: @config.rpcs.get_profile.retry_policy
|
|
418
|
-
|
|
413
|
+
|
|
414
|
+
options.apply_defaults timeout: @config.timeout,
|
|
415
|
+
metadata: @config.metadata,
|
|
419
416
|
retry_policy: @config.retry_policy
|
|
420
417
|
|
|
421
418
|
@profile_service_stub.call_rpc :get_profile, request, options: options do |response, operation|
|
|
@@ -476,16 +473,20 @@ module Google
|
|
|
476
473
|
gapic_version: ::Google::Cloud::Talent::V4beta1::VERSION
|
|
477
474
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
478
475
|
|
|
479
|
-
header_params = {
|
|
480
|
-
|
|
481
|
-
|
|
476
|
+
header_params = {}
|
|
477
|
+
if request.profile&.name
|
|
478
|
+
header_params["profile.name"] = request.profile.name
|
|
479
|
+
end
|
|
480
|
+
|
|
482
481
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
483
482
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
484
483
|
|
|
485
484
|
options.apply_defaults timeout: @config.rpcs.update_profile.timeout,
|
|
486
485
|
metadata: metadata,
|
|
487
486
|
retry_policy: @config.rpcs.update_profile.retry_policy
|
|
488
|
-
|
|
487
|
+
|
|
488
|
+
options.apply_defaults timeout: @config.timeout,
|
|
489
|
+
metadata: @config.metadata,
|
|
489
490
|
retry_policy: @config.retry_policy
|
|
490
491
|
|
|
491
492
|
@profile_service_stub.call_rpc :update_profile, request, options: options do |response, operation|
|
|
@@ -548,16 +549,20 @@ module Google
|
|
|
548
549
|
gapic_version: ::Google::Cloud::Talent::V4beta1::VERSION
|
|
549
550
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
550
551
|
|
|
551
|
-
header_params = {
|
|
552
|
-
|
|
553
|
-
|
|
552
|
+
header_params = {}
|
|
553
|
+
if request.name
|
|
554
|
+
header_params["name"] = request.name
|
|
555
|
+
end
|
|
556
|
+
|
|
554
557
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
555
558
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
556
559
|
|
|
557
560
|
options.apply_defaults timeout: @config.rpcs.delete_profile.timeout,
|
|
558
561
|
metadata: metadata,
|
|
559
562
|
retry_policy: @config.rpcs.delete_profile.retry_policy
|
|
560
|
-
|
|
563
|
+
|
|
564
|
+
options.apply_defaults timeout: @config.timeout,
|
|
565
|
+
metadata: @config.metadata,
|
|
561
566
|
retry_policy: @config.retry_policy
|
|
562
567
|
|
|
563
568
|
@profile_service_stub.call_rpc :delete_profile, request, options: options do |response, operation|
|
|
@@ -663,7 +668,7 @@ module Google
|
|
|
663
668
|
#
|
|
664
669
|
# Data types:
|
|
665
670
|
#
|
|
666
|
-
# * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]
|
|
671
|
+
# * Histogram facet: facet names with format `[a-zA-Z][a-zA-Z0-9_]+`.
|
|
667
672
|
# * String: string like "any string with backslash escape for quote(\")."
|
|
668
673
|
# * Number: whole number and floating point number like 10, -1 and -0.01.
|
|
669
674
|
# * List: list of elements with comma(,) separator surrounded by square
|
|
@@ -789,16 +794,20 @@ module Google
|
|
|
789
794
|
gapic_version: ::Google::Cloud::Talent::V4beta1::VERSION
|
|
790
795
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
791
796
|
|
|
792
|
-
header_params = {
|
|
793
|
-
|
|
794
|
-
|
|
797
|
+
header_params = {}
|
|
798
|
+
if request.parent
|
|
799
|
+
header_params["parent"] = request.parent
|
|
800
|
+
end
|
|
801
|
+
|
|
795
802
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
796
803
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
797
804
|
|
|
798
805
|
options.apply_defaults timeout: @config.rpcs.search_profiles.timeout,
|
|
799
806
|
metadata: metadata,
|
|
800
807
|
retry_policy: @config.rpcs.search_profiles.retry_policy
|
|
801
|
-
|
|
808
|
+
|
|
809
|
+
options.apply_defaults timeout: @config.timeout,
|
|
810
|
+
metadata: @config.metadata,
|
|
802
811
|
retry_policy: @config.retry_policy
|
|
803
812
|
|
|
804
813
|
@profile_service_stub.call_rpc :search_profiles, request, options: options do |response, operation|
|
|
@@ -822,22 +831,21 @@ module Google
|
|
|
822
831
|
# Configuration can be applied globally to all clients, or to a single client
|
|
823
832
|
# on construction.
|
|
824
833
|
#
|
|
825
|
-
#
|
|
826
|
-
#
|
|
827
|
-
#
|
|
828
|
-
# to 20 seconds,
|
|
829
|
-
#
|
|
830
|
-
#
|
|
831
|
-
#
|
|
832
|
-
#
|
|
833
|
-
#
|
|
834
|
-
#
|
|
835
|
-
#
|
|
836
|
-
#
|
|
837
|
-
#
|
|
838
|
-
#
|
|
839
|
-
#
|
|
840
|
-
# end
|
|
834
|
+
# @example
|
|
835
|
+
#
|
|
836
|
+
# # Modify the global config, setting the timeout for
|
|
837
|
+
# # list_profiles to 20 seconds,
|
|
838
|
+
# # and all remaining timeouts to 10 seconds.
|
|
839
|
+
# ::Google::Cloud::Talent::V4beta1::ProfileService::Client.configure do |config|
|
|
840
|
+
# config.timeout = 10.0
|
|
841
|
+
# config.rpcs.list_profiles.timeout = 20.0
|
|
842
|
+
# end
|
|
843
|
+
#
|
|
844
|
+
# # Apply the above configuration only to a new client.
|
|
845
|
+
# client = ::Google::Cloud::Talent::V4beta1::ProfileService::Client.new do |config|
|
|
846
|
+
# config.timeout = 10.0
|
|
847
|
+
# config.rpcs.list_profiles.timeout = 20.0
|
|
848
|
+
# end
|
|
841
849
|
#
|
|
842
850
|
# @!attribute [rw] endpoint
|
|
843
851
|
# 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/profile_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'
|
|
@@ -16,6 +14,8 @@ require 'google/protobuf/any_pb'
|
|
|
16
14
|
require 'google/protobuf/empty_pb'
|
|
17
15
|
require 'google/protobuf/field_mask_pb'
|
|
18
16
|
require 'google/rpc/status_pb'
|
|
17
|
+
require 'google/protobuf'
|
|
18
|
+
|
|
19
19
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
20
20
|
add_file("google/cloud/talent/v4beta1/profile_service.proto", :syntax => :proto3) do
|
|
21
21
|
add_message "google.cloud.talent.v4beta1.ListProfilesRequest" do
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
2
2
|
# source: google/cloud/talent/v4beta1/tenant.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/protobuf/timestamp_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/tenant.proto", :syntax => :proto3) do
|
|
12
12
|
add_message "google.cloud.talent.v4beta1.Tenant" do
|
|
@@ -41,13 +41,12 @@ module Google
|
|
|
41
41
|
# See {::Google::Cloud::Talent::V4beta1::TenantService::Client::Configuration}
|
|
42
42
|
# for a description of the configuration fields.
|
|
43
43
|
#
|
|
44
|
-
#
|
|
44
|
+
# @example
|
|
45
45
|
#
|
|
46
|
-
#
|
|
47
|
-
#
|
|
48
|
-
#
|
|
49
|
-
#
|
|
50
|
-
# end
|
|
46
|
+
# # Modify the configuration for all TenantService clients
|
|
47
|
+
# ::Google::Cloud::Talent::V4beta1::TenantService::Client.configure do |config|
|
|
48
|
+
# config.timeout = 10.0
|
|
49
|
+
# end
|
|
51
50
|
#
|
|
52
51
|
# @yield [config] Configure the Client client.
|
|
53
52
|
# @yieldparam config [Client::Configuration]
|
|
@@ -69,28 +68,19 @@ module Google
|
|
|
69
68
|
|
|
70
69
|
default_config.rpcs.get_tenant.timeout = 30.0
|
|
71
70
|
default_config.rpcs.get_tenant.retry_policy = {
|
|
72
|
-
initial_delay: 0.1,
|
|
73
|
-
max_delay: 60.0,
|
|
74
|
-
multiplier: 1.3,
|
|
75
|
-
retry_codes: [4, 14]
|
|
71
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
|
|
76
72
|
}
|
|
77
73
|
|
|
78
74
|
default_config.rpcs.update_tenant.timeout = 30.0
|
|
79
75
|
|
|
80
76
|
default_config.rpcs.delete_tenant.timeout = 30.0
|
|
81
77
|
default_config.rpcs.delete_tenant.retry_policy = {
|
|
82
|
-
initial_delay: 0.1,
|
|
83
|
-
max_delay: 60.0,
|
|
84
|
-
multiplier: 1.3,
|
|
85
|
-
retry_codes: [4, 14]
|
|
78
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
|
|
86
79
|
}
|
|
87
80
|
|
|
88
81
|
default_config.rpcs.list_tenants.timeout = 30.0
|
|
89
82
|
default_config.rpcs.list_tenants.retry_policy = {
|
|
90
|
-
initial_delay: 0.1,
|
|
91
|
-
max_delay: 60.0,
|
|
92
|
-
multiplier: 1.3,
|
|
93
|
-
retry_codes: [4, 14]
|
|
83
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
|
|
94
84
|
}
|
|
95
85
|
|
|
96
86
|
default_config
|
|
@@ -122,19 +112,15 @@ module Google
|
|
|
122
112
|
##
|
|
123
113
|
# Create a new TenantService client object.
|
|
124
114
|
#
|
|
125
|
-
#
|
|
126
|
-
#
|
|
127
|
-
# To create a new TenantService client with the default
|
|
128
|
-
# configuration:
|
|
129
|
-
#
|
|
130
|
-
# client = ::Google::Cloud::Talent::V4beta1::TenantService::Client.new
|
|
115
|
+
# @example
|
|
131
116
|
#
|
|
132
|
-
#
|
|
133
|
-
#
|
|
117
|
+
# # Create a client using the default configuration
|
|
118
|
+
# client = ::Google::Cloud::Talent::V4beta1::TenantService::Client.new
|
|
134
119
|
#
|
|
135
|
-
#
|
|
136
|
-
#
|
|
137
|
-
#
|
|
120
|
+
# # Create a client using a custom configuration
|
|
121
|
+
# client = ::Google::Cloud::Talent::V4beta1::TenantService::Client.new do |config|
|
|
122
|
+
# config.timeout = 10.0
|
|
123
|
+
# end
|
|
138
124
|
#
|
|
139
125
|
# @yield [config] Configure the TenantService client.
|
|
140
126
|
# @yieldparam config [Client::Configuration]
|
|
@@ -154,14 +140,13 @@ module Google
|
|
|
154
140
|
|
|
155
141
|
# Create credentials
|
|
156
142
|
credentials = @config.credentials
|
|
157
|
-
# Use self-signed JWT if the
|
|
143
|
+
# Use self-signed JWT if the endpoint is unchanged from default,
|
|
158
144
|
# but only if the default endpoint does not have a region prefix.
|
|
159
|
-
enable_self_signed_jwt = @config.
|
|
160
|
-
@config.endpoint == Client.configure.endpoint &&
|
|
145
|
+
enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
|
|
161
146
|
!@config.endpoint.split(".").first.include?("-")
|
|
162
147
|
credentials ||= Credentials.default scope: @config.scope,
|
|
163
148
|
enable_self_signed_jwt: enable_self_signed_jwt
|
|
164
|
-
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
|
149
|
+
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
|
165
150
|
credentials = Credentials.new credentials, scope: @config.scope
|
|
166
151
|
end
|
|
167
152
|
@quota_project_id = @config.quota_project
|
|
@@ -229,16 +214,20 @@ module Google
|
|
|
229
214
|
gapic_version: ::Google::Cloud::Talent::V4beta1::VERSION
|
|
230
215
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
231
216
|
|
|
232
|
-
header_params = {
|
|
233
|
-
|
|
234
|
-
|
|
217
|
+
header_params = {}
|
|
218
|
+
if request.parent
|
|
219
|
+
header_params["parent"] = request.parent
|
|
220
|
+
end
|
|
221
|
+
|
|
235
222
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
236
223
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
237
224
|
|
|
238
225
|
options.apply_defaults timeout: @config.rpcs.create_tenant.timeout,
|
|
239
226
|
metadata: metadata,
|
|
240
227
|
retry_policy: @config.rpcs.create_tenant.retry_policy
|
|
241
|
-
|
|
228
|
+
|
|
229
|
+
options.apply_defaults timeout: @config.timeout,
|
|
230
|
+
metadata: @config.metadata,
|
|
242
231
|
retry_policy: @config.retry_policy
|
|
243
232
|
|
|
244
233
|
@tenant_service_stub.call_rpc :create_tenant, request, options: options do |response, operation|
|
|
@@ -298,16 +287,20 @@ module Google
|
|
|
298
287
|
gapic_version: ::Google::Cloud::Talent::V4beta1::VERSION
|
|
299
288
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
300
289
|
|
|
301
|
-
header_params = {
|
|
302
|
-
|
|
303
|
-
|
|
290
|
+
header_params = {}
|
|
291
|
+
if request.name
|
|
292
|
+
header_params["name"] = request.name
|
|
293
|
+
end
|
|
294
|
+
|
|
304
295
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
305
296
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
306
297
|
|
|
307
298
|
options.apply_defaults timeout: @config.rpcs.get_tenant.timeout,
|
|
308
299
|
metadata: metadata,
|
|
309
300
|
retry_policy: @config.rpcs.get_tenant.retry_policy
|
|
310
|
-
|
|
301
|
+
|
|
302
|
+
options.apply_defaults timeout: @config.timeout,
|
|
303
|
+
metadata: @config.metadata,
|
|
311
304
|
retry_policy: @config.retry_policy
|
|
312
305
|
|
|
313
306
|
@tenant_service_stub.call_rpc :get_tenant, request, options: options do |response, operation|
|
|
@@ -372,16 +365,20 @@ module Google
|
|
|
372
365
|
gapic_version: ::Google::Cloud::Talent::V4beta1::VERSION
|
|
373
366
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
374
367
|
|
|
375
|
-
header_params = {
|
|
376
|
-
|
|
377
|
-
|
|
368
|
+
header_params = {}
|
|
369
|
+
if request.tenant&.name
|
|
370
|
+
header_params["tenant.name"] = request.tenant.name
|
|
371
|
+
end
|
|
372
|
+
|
|
378
373
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
379
374
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
380
375
|
|
|
381
376
|
options.apply_defaults timeout: @config.rpcs.update_tenant.timeout,
|
|
382
377
|
metadata: metadata,
|
|
383
378
|
retry_policy: @config.rpcs.update_tenant.retry_policy
|
|
384
|
-
|
|
379
|
+
|
|
380
|
+
options.apply_defaults timeout: @config.timeout,
|
|
381
|
+
metadata: @config.metadata,
|
|
385
382
|
retry_policy: @config.retry_policy
|
|
386
383
|
|
|
387
384
|
@tenant_service_stub.call_rpc :update_tenant, request, options: options do |response, operation|
|
|
@@ -441,16 +438,20 @@ module Google
|
|
|
441
438
|
gapic_version: ::Google::Cloud::Talent::V4beta1::VERSION
|
|
442
439
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
443
440
|
|
|
444
|
-
header_params = {
|
|
445
|
-
|
|
446
|
-
|
|
441
|
+
header_params = {}
|
|
442
|
+
if request.name
|
|
443
|
+
header_params["name"] = request.name
|
|
444
|
+
end
|
|
445
|
+
|
|
447
446
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
448
447
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
449
448
|
|
|
450
449
|
options.apply_defaults timeout: @config.rpcs.delete_tenant.timeout,
|
|
451
450
|
metadata: metadata,
|
|
452
451
|
retry_policy: @config.rpcs.delete_tenant.retry_policy
|
|
453
|
-
|
|
452
|
+
|
|
453
|
+
options.apply_defaults timeout: @config.timeout,
|
|
454
|
+
metadata: @config.metadata,
|
|
454
455
|
retry_policy: @config.retry_policy
|
|
455
456
|
|
|
456
457
|
@tenant_service_stub.call_rpc :delete_tenant, request, options: options do |response, operation|
|
|
@@ -515,16 +516,20 @@ module Google
|
|
|
515
516
|
gapic_version: ::Google::Cloud::Talent::V4beta1::VERSION
|
|
516
517
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
517
518
|
|
|
518
|
-
header_params = {
|
|
519
|
-
|
|
520
|
-
|
|
519
|
+
header_params = {}
|
|
520
|
+
if request.parent
|
|
521
|
+
header_params["parent"] = request.parent
|
|
522
|
+
end
|
|
523
|
+
|
|
521
524
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
522
525
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
523
526
|
|
|
524
527
|
options.apply_defaults timeout: @config.rpcs.list_tenants.timeout,
|
|
525
528
|
metadata: metadata,
|
|
526
529
|
retry_policy: @config.rpcs.list_tenants.retry_policy
|
|
527
|
-
|
|
530
|
+
|
|
531
|
+
options.apply_defaults timeout: @config.timeout,
|
|
532
|
+
metadata: @config.metadata,
|
|
528
533
|
retry_policy: @config.retry_policy
|
|
529
534
|
|
|
530
535
|
@tenant_service_stub.call_rpc :list_tenants, request, options: options do |response, operation|
|
|
@@ -549,22 +554,21 @@ module Google
|
|
|
549
554
|
# Configuration can be applied globally to all clients, or to a single client
|
|
550
555
|
# on construction.
|
|
551
556
|
#
|
|
552
|
-
#
|
|
553
|
-
#
|
|
554
|
-
#
|
|
555
|
-
# to 20 seconds,
|
|
556
|
-
#
|
|
557
|
-
#
|
|
558
|
-
#
|
|
559
|
-
#
|
|
560
|
-
#
|
|
561
|
-
#
|
|
562
|
-
#
|
|
563
|
-
#
|
|
564
|
-
#
|
|
565
|
-
#
|
|
566
|
-
#
|
|
567
|
-
# end
|
|
557
|
+
# @example
|
|
558
|
+
#
|
|
559
|
+
# # Modify the global config, setting the timeout for
|
|
560
|
+
# # create_tenant to 20 seconds,
|
|
561
|
+
# # and all remaining timeouts to 10 seconds.
|
|
562
|
+
# ::Google::Cloud::Talent::V4beta1::TenantService::Client.configure do |config|
|
|
563
|
+
# config.timeout = 10.0
|
|
564
|
+
# config.rpcs.create_tenant.timeout = 20.0
|
|
565
|
+
# end
|
|
566
|
+
#
|
|
567
|
+
# # Apply the above configuration only to a new client.
|
|
568
|
+
# client = ::Google::Cloud::Talent::V4beta1::TenantService::Client.new do |config|
|
|
569
|
+
# config.timeout = 10.0
|
|
570
|
+
# config.rpcs.create_tenant.timeout = 20.0
|
|
571
|
+
# end
|
|
568
572
|
#
|
|
569
573
|
# @!attribute [rw] endpoint
|
|
570
574
|
# 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/tenant_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/common_pb'
|
|
|
11
9
|
require 'google/cloud/talent/v4beta1/tenant_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/tenant_service.proto", :syntax => :proto3) do
|
|
16
16
|
add_message "google.cloud.talent.v4beta1.CreateTenantRequest" do
|
|
@@ -27,7 +27,7 @@ module Google
|
|
|
27
27
|
# A service that handles tenant management, including CRUD and enumeration.
|
|
28
28
|
class Service
|
|
29
29
|
|
|
30
|
-
include GRPC::GenericService
|
|
30
|
+
include ::GRPC::GenericService
|
|
31
31
|
|
|
32
32
|
self.marshal_class_method = :encode
|
|
33
33
|
self.unmarshal_class_method = :decode
|
|
@@ -57,9 +57,15 @@ module Google
|
|
|
57
57
|
|
|
58
58
|
# Denotes that a (repeated) field is an unordered list.
|
|
59
59
|
# This indicates that the service may provide the elements of the list
|
|
60
|
-
# in any arbitrary
|
|
60
|
+
# in any arbitrary order, rather than the order the user originally
|
|
61
61
|
# provided. Additionally, the list's order may or may not be stable.
|
|
62
62
|
UNORDERED_LIST = 6
|
|
63
|
+
|
|
64
|
+
# Denotes that this field returns a non-empty default value if not set.
|
|
65
|
+
# This indicates that if the user provides the empty value in a request,
|
|
66
|
+
# a non-empty value will be returned. The user will not be aware of what
|
|
67
|
+
# non-empty value to expect.
|
|
68
|
+
NON_EMPTY_DEFAULT = 7
|
|
63
69
|
end
|
|
64
70
|
end
|
|
65
71
|
end
|