google-cloud-talent-v4beta1 0.3.0 → 0.4.3
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/LICENSE.md +188 -190
- data/README.md +3 -3
- data/lib/google/cloud/talent/v4beta1/application_service/client.rb +55 -61
- data/lib/google/cloud/talent/v4beta1/application_service/paths.rb +2 -2
- data/lib/google/cloud/talent/v4beta1/company_service/client.rb +55 -61
- data/lib/google/cloud/talent/v4beta1/company_service/paths.rb +1 -1
- data/lib/google/cloud/talent/v4beta1/completion/client.rb +37 -45
- data/lib/google/cloud/talent/v4beta1/completion/paths.rb +1 -1
- data/lib/google/cloud/talent/v4beta1/event_service/client.rb +36 -41
- data/lib/google/cloud/talent/v4beta1/job_service/client.rb +75 -71
- data/lib/google/cloud/talent/v4beta1/job_service/operations.rb +39 -30
- data/lib/google/cloud/talent/v4beta1/job_service/paths.rb +2 -2
- data/lib/google/cloud/talent/v4beta1/profile_service/client.rb +59 -63
- data/lib/google/cloud/talent/v4beta1/tenant_service/client.rb +55 -61
- data/lib/google/cloud/talent/v4beta1/version.rb +1 -1
- data/proto_docs/google/api/field_behavior.rb +7 -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 +16 -10
|
@@ -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
|
-
#
|
|
45
|
+
# @example
|
|
46
46
|
#
|
|
47
|
-
#
|
|
48
|
-
#
|
|
49
|
-
#
|
|
50
|
-
#
|
|
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]
|
|
@@ -61,7 +60,7 @@ module Google
|
|
|
61
60
|
parent_config = while namespace.any?
|
|
62
61
|
parent_name = namespace.join "::"
|
|
63
62
|
parent_const = const_get parent_name
|
|
64
|
-
break parent_const.configure if parent_const
|
|
63
|
+
break parent_const.configure if parent_const.respond_to? :configure
|
|
65
64
|
namespace.pop
|
|
66
65
|
end
|
|
67
66
|
default_config = Client::Configuration.new parent_config
|
|
@@ -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
|
-
#
|
|
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
|
-
#
|
|
134
|
-
#
|
|
118
|
+
# # Create a client using the default configuration
|
|
119
|
+
# client = ::Google::Cloud::Talent::V4beta1::ApplicationService::Client.new
|
|
135
120
|
#
|
|
136
|
-
#
|
|
137
|
-
#
|
|
138
|
-
#
|
|
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
|
|
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.
|
|
161
|
-
@config.endpoint == Client.configure.endpoint &&
|
|
146
|
+
enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
|
|
162
147
|
!@config.endpoint.split(".").first.include?("-")
|
|
163
|
-
credentials ||= Credentials.default scope:
|
|
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
|
|
@@ -240,7 +225,9 @@ module Google
|
|
|
240
225
|
options.apply_defaults timeout: @config.rpcs.create_application.timeout,
|
|
241
226
|
metadata: metadata,
|
|
242
227
|
retry_policy: @config.rpcs.create_application.retry_policy
|
|
243
|
-
|
|
228
|
+
|
|
229
|
+
options.apply_defaults timeout: @config.timeout,
|
|
230
|
+
metadata: @config.metadata,
|
|
244
231
|
retry_policy: @config.retry_policy
|
|
245
232
|
|
|
246
233
|
@application_service_stub.call_rpc :create_application, request, options: options do |response, operation|
|
|
@@ -310,7 +297,9 @@ module Google
|
|
|
310
297
|
options.apply_defaults timeout: @config.rpcs.get_application.timeout,
|
|
311
298
|
metadata: metadata,
|
|
312
299
|
retry_policy: @config.rpcs.get_application.retry_policy
|
|
313
|
-
|
|
300
|
+
|
|
301
|
+
options.apply_defaults timeout: @config.timeout,
|
|
302
|
+
metadata: @config.metadata,
|
|
314
303
|
retry_policy: @config.retry_policy
|
|
315
304
|
|
|
316
305
|
@application_service_stub.call_rpc :get_application, request, options: options do |response, operation|
|
|
@@ -384,7 +373,9 @@ module Google
|
|
|
384
373
|
options.apply_defaults timeout: @config.rpcs.update_application.timeout,
|
|
385
374
|
metadata: metadata,
|
|
386
375
|
retry_policy: @config.rpcs.update_application.retry_policy
|
|
387
|
-
|
|
376
|
+
|
|
377
|
+
options.apply_defaults timeout: @config.timeout,
|
|
378
|
+
metadata: @config.metadata,
|
|
388
379
|
retry_policy: @config.retry_policy
|
|
389
380
|
|
|
390
381
|
@application_service_stub.call_rpc :update_application, request, options: options do |response, operation|
|
|
@@ -454,7 +445,9 @@ module Google
|
|
|
454
445
|
options.apply_defaults timeout: @config.rpcs.delete_application.timeout,
|
|
455
446
|
metadata: metadata,
|
|
456
447
|
retry_policy: @config.rpcs.delete_application.retry_policy
|
|
457
|
-
|
|
448
|
+
|
|
449
|
+
options.apply_defaults timeout: @config.timeout,
|
|
450
|
+
metadata: @config.metadata,
|
|
458
451
|
retry_policy: @config.retry_policy
|
|
459
452
|
|
|
460
453
|
@application_service_stub.call_rpc :delete_application, request, options: options do |response, operation|
|
|
@@ -529,7 +522,9 @@ module Google
|
|
|
529
522
|
options.apply_defaults timeout: @config.rpcs.list_applications.timeout,
|
|
530
523
|
metadata: metadata,
|
|
531
524
|
retry_policy: @config.rpcs.list_applications.retry_policy
|
|
532
|
-
|
|
525
|
+
|
|
526
|
+
options.apply_defaults timeout: @config.timeout,
|
|
527
|
+
metadata: @config.metadata,
|
|
533
528
|
retry_policy: @config.retry_policy
|
|
534
529
|
|
|
535
530
|
@application_service_stub.call_rpc :list_applications, request, options: options do |response, operation|
|
|
@@ -554,22 +549,21 @@ module Google
|
|
|
554
549
|
# Configuration can be applied globally to all clients, or to a single client
|
|
555
550
|
# on construction.
|
|
556
551
|
#
|
|
557
|
-
#
|
|
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
|
|
552
|
+
# @example
|
|
566
553
|
#
|
|
567
|
-
#
|
|
554
|
+
# # Modify the global config, setting the timeout for
|
|
555
|
+
# # create_application to 20 seconds,
|
|
556
|
+
# # and all remaining timeouts to 10 seconds.
|
|
557
|
+
# ::Google::Cloud::Talent::V4beta1::ApplicationService::Client.configure do |config|
|
|
558
|
+
# config.timeout = 10.0
|
|
559
|
+
# config.rpcs.create_application.timeout = 20.0
|
|
560
|
+
# end
|
|
568
561
|
#
|
|
569
|
-
#
|
|
570
|
-
#
|
|
571
|
-
#
|
|
572
|
-
#
|
|
562
|
+
# # Apply the above configuration only to a new client.
|
|
563
|
+
# client = ::Google::Cloud::Talent::V4beta1::ApplicationService::Client.new do |config|
|
|
564
|
+
# config.timeout = 10.0
|
|
565
|
+
# config.rpcs.create_application.timeout = 20.0
|
|
566
|
+
# end
|
|
573
567
|
#
|
|
574
568
|
# @!attribute [rw] endpoint
|
|
575
569
|
# The hostname or hostname:port of the service endpoint.
|
|
@@ -633,7 +627,7 @@ module Google
|
|
|
633
627
|
config_attr :scope, nil, ::String, ::Array, nil
|
|
634
628
|
config_attr :lib_name, nil, ::String, nil
|
|
635
629
|
config_attr :lib_version, nil, ::String, nil
|
|
636
|
-
config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
|
|
630
|
+
config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
|
|
637
631
|
config_attr :interceptors, nil, ::Array, nil
|
|
638
632
|
config_attr :timeout, nil, ::Numeric, nil
|
|
639
633
|
config_attr :metadata, nil, ::Hash, nil
|
|
@@ -654,7 +648,7 @@ module Google
|
|
|
654
648
|
def rpcs
|
|
655
649
|
@rpcs ||= begin
|
|
656
650
|
parent_rpcs = nil
|
|
657
|
-
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config
|
|
651
|
+
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
|
|
658
652
|
Rpcs.new parent_rpcs
|
|
659
653
|
end
|
|
660
654
|
end
|
|
@@ -705,15 +699,15 @@ module Google
|
|
|
705
699
|
|
|
706
700
|
# @private
|
|
707
701
|
def initialize parent_rpcs = nil
|
|
708
|
-
create_application_config = parent_rpcs
|
|
702
|
+
create_application_config = parent_rpcs.create_application if parent_rpcs.respond_to? :create_application
|
|
709
703
|
@create_application = ::Gapic::Config::Method.new create_application_config
|
|
710
|
-
get_application_config = parent_rpcs
|
|
704
|
+
get_application_config = parent_rpcs.get_application if parent_rpcs.respond_to? :get_application
|
|
711
705
|
@get_application = ::Gapic::Config::Method.new get_application_config
|
|
712
|
-
update_application_config = parent_rpcs
|
|
706
|
+
update_application_config = parent_rpcs.update_application if parent_rpcs.respond_to? :update_application
|
|
713
707
|
@update_application = ::Gapic::Config::Method.new update_application_config
|
|
714
|
-
delete_application_config = parent_rpcs
|
|
708
|
+
delete_application_config = parent_rpcs.delete_application if parent_rpcs.respond_to? :delete_application
|
|
715
709
|
@delete_application = ::Gapic::Config::Method.new delete_application_config
|
|
716
|
-
list_applications_config = parent_rpcs
|
|
710
|
+
list_applications_config = parent_rpcs.list_applications if parent_rpcs.respond_to? :list_applications
|
|
717
711
|
@list_applications = ::Gapic::Config::Method.new list_applications_config
|
|
718
712
|
|
|
719
713
|
yield self if block_given?
|
|
@@ -74,7 +74,7 @@ module Google
|
|
|
74
74
|
|
|
75
75
|
"projects/#{project}/tenants/#{tenant}/companies/#{company}"
|
|
76
76
|
end),
|
|
77
|
-
"company:project"
|
|
77
|
+
"company:project" => (proc do |project:, company:|
|
|
78
78
|
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
79
79
|
|
|
80
80
|
"projects/#{project}/companies/#{company}"
|
|
@@ -115,7 +115,7 @@ module Google
|
|
|
115
115
|
|
|
116
116
|
"projects/#{project}/tenants/#{tenant}/jobs/#{job}"
|
|
117
117
|
end),
|
|
118
|
-
"job:project"
|
|
118
|
+
"job:project" => (proc do |project:, job:|
|
|
119
119
|
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
120
120
|
|
|
121
121
|
"projects/#{project}/jobs/#{job}"
|
|
@@ -41,13 +41,12 @@ module Google
|
|
|
41
41
|
# See {::Google::Cloud::Talent::V4beta1::CompanyService::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 CompanyService clients
|
|
47
|
+
# ::Google::Cloud::Talent::V4beta1::CompanyService::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]
|
|
@@ -60,7 +59,7 @@ module Google
|
|
|
60
59
|
parent_config = while namespace.any?
|
|
61
60
|
parent_name = namespace.join "::"
|
|
62
61
|
parent_const = const_get parent_name
|
|
63
|
-
break parent_const.configure if parent_const
|
|
62
|
+
break parent_const.configure if parent_const.respond_to? :configure
|
|
64
63
|
namespace.pop
|
|
65
64
|
end
|
|
66
65
|
default_config = Client::Configuration.new parent_config
|
|
@@ -69,28 +68,19 @@ module Google
|
|
|
69
68
|
|
|
70
69
|
default_config.rpcs.get_company.timeout = 30.0
|
|
71
70
|
default_config.rpcs.get_company.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_company.timeout = 30.0
|
|
79
75
|
|
|
80
76
|
default_config.rpcs.delete_company.timeout = 30.0
|
|
81
77
|
default_config.rpcs.delete_company.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_companies.timeout = 30.0
|
|
89
82
|
default_config.rpcs.list_companies.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 CompanyService client object.
|
|
124
114
|
#
|
|
125
|
-
#
|
|
126
|
-
#
|
|
127
|
-
# To create a new CompanyService client with the default
|
|
128
|
-
# configuration:
|
|
129
|
-
#
|
|
130
|
-
# client = ::Google::Cloud::Talent::V4beta1::CompanyService::Client.new
|
|
115
|
+
# @example
|
|
131
116
|
#
|
|
132
|
-
#
|
|
133
|
-
#
|
|
117
|
+
# # Create a client using the default configuration
|
|
118
|
+
# client = ::Google::Cloud::Talent::V4beta1::CompanyService::Client.new
|
|
134
119
|
#
|
|
135
|
-
#
|
|
136
|
-
#
|
|
137
|
-
#
|
|
120
|
+
# # Create a client using a custom configuration
|
|
121
|
+
# client = ::Google::Cloud::Talent::V4beta1::CompanyService::Client.new do |config|
|
|
122
|
+
# config.timeout = 10.0
|
|
123
|
+
# end
|
|
138
124
|
#
|
|
139
125
|
# @yield [config] Configure the CompanyService 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
|
-
credentials ||= Credentials.default scope:
|
|
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
|
|
@@ -239,7 +224,9 @@ module Google
|
|
|
239
224
|
options.apply_defaults timeout: @config.rpcs.create_company.timeout,
|
|
240
225
|
metadata: metadata,
|
|
241
226
|
retry_policy: @config.rpcs.create_company.retry_policy
|
|
242
|
-
|
|
227
|
+
|
|
228
|
+
options.apply_defaults timeout: @config.timeout,
|
|
229
|
+
metadata: @config.metadata,
|
|
243
230
|
retry_policy: @config.retry_policy
|
|
244
231
|
|
|
245
232
|
@company_service_stub.call_rpc :create_company, request, options: options do |response, operation|
|
|
@@ -312,7 +299,9 @@ module Google
|
|
|
312
299
|
options.apply_defaults timeout: @config.rpcs.get_company.timeout,
|
|
313
300
|
metadata: metadata,
|
|
314
301
|
retry_policy: @config.rpcs.get_company.retry_policy
|
|
315
|
-
|
|
302
|
+
|
|
303
|
+
options.apply_defaults timeout: @config.timeout,
|
|
304
|
+
metadata: @config.metadata,
|
|
316
305
|
retry_policy: @config.retry_policy
|
|
317
306
|
|
|
318
307
|
@company_service_stub.call_rpc :get_company, request, options: options do |response, operation|
|
|
@@ -386,7 +375,9 @@ module Google
|
|
|
386
375
|
options.apply_defaults timeout: @config.rpcs.update_company.timeout,
|
|
387
376
|
metadata: metadata,
|
|
388
377
|
retry_policy: @config.rpcs.update_company.retry_policy
|
|
389
|
-
|
|
378
|
+
|
|
379
|
+
options.apply_defaults timeout: @config.timeout,
|
|
380
|
+
metadata: @config.metadata,
|
|
390
381
|
retry_policy: @config.retry_policy
|
|
391
382
|
|
|
392
383
|
@company_service_stub.call_rpc :update_company, request, options: options do |response, operation|
|
|
@@ -460,7 +451,9 @@ module Google
|
|
|
460
451
|
options.apply_defaults timeout: @config.rpcs.delete_company.timeout,
|
|
461
452
|
metadata: metadata,
|
|
462
453
|
retry_policy: @config.rpcs.delete_company.retry_policy
|
|
463
|
-
|
|
454
|
+
|
|
455
|
+
options.apply_defaults timeout: @config.timeout,
|
|
456
|
+
metadata: @config.metadata,
|
|
464
457
|
retry_policy: @config.retry_policy
|
|
465
458
|
|
|
466
459
|
@company_service_stub.call_rpc :delete_company, request, options: options do |response, operation|
|
|
@@ -544,7 +537,9 @@ module Google
|
|
|
544
537
|
options.apply_defaults timeout: @config.rpcs.list_companies.timeout,
|
|
545
538
|
metadata: metadata,
|
|
546
539
|
retry_policy: @config.rpcs.list_companies.retry_policy
|
|
547
|
-
|
|
540
|
+
|
|
541
|
+
options.apply_defaults timeout: @config.timeout,
|
|
542
|
+
metadata: @config.metadata,
|
|
548
543
|
retry_policy: @config.retry_policy
|
|
549
544
|
|
|
550
545
|
@company_service_stub.call_rpc :list_companies, request, options: options do |response, operation|
|
|
@@ -569,22 +564,21 @@ module Google
|
|
|
569
564
|
# Configuration can be applied globally to all clients, or to a single client
|
|
570
565
|
# on construction.
|
|
571
566
|
#
|
|
572
|
-
#
|
|
573
|
-
#
|
|
574
|
-
# To modify the global config, setting the timeout for create_company
|
|
575
|
-
# to 20 seconds, and all remaining timeouts to 10 seconds:
|
|
576
|
-
#
|
|
577
|
-
# ::Google::Cloud::Talent::V4beta1::CompanyService::Client.configure do |config|
|
|
578
|
-
# config.timeout = 10.0
|
|
579
|
-
# config.rpcs.create_company.timeout = 20.0
|
|
580
|
-
# end
|
|
567
|
+
# @example
|
|
581
568
|
#
|
|
582
|
-
#
|
|
569
|
+
# # Modify the global config, setting the timeout for
|
|
570
|
+
# # create_company to 20 seconds,
|
|
571
|
+
# # and all remaining timeouts to 10 seconds.
|
|
572
|
+
# ::Google::Cloud::Talent::V4beta1::CompanyService::Client.configure do |config|
|
|
573
|
+
# config.timeout = 10.0
|
|
574
|
+
# config.rpcs.create_company.timeout = 20.0
|
|
575
|
+
# end
|
|
583
576
|
#
|
|
584
|
-
#
|
|
585
|
-
#
|
|
586
|
-
#
|
|
587
|
-
#
|
|
577
|
+
# # Apply the above configuration only to a new client.
|
|
578
|
+
# client = ::Google::Cloud::Talent::V4beta1::CompanyService::Client.new do |config|
|
|
579
|
+
# config.timeout = 10.0
|
|
580
|
+
# config.rpcs.create_company.timeout = 20.0
|
|
581
|
+
# end
|
|
588
582
|
#
|
|
589
583
|
# @!attribute [rw] endpoint
|
|
590
584
|
# The hostname or hostname:port of the service endpoint.
|
|
@@ -648,7 +642,7 @@ module Google
|
|
|
648
642
|
config_attr :scope, nil, ::String, ::Array, nil
|
|
649
643
|
config_attr :lib_name, nil, ::String, nil
|
|
650
644
|
config_attr :lib_version, nil, ::String, nil
|
|
651
|
-
config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
|
|
645
|
+
config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
|
|
652
646
|
config_attr :interceptors, nil, ::Array, nil
|
|
653
647
|
config_attr :timeout, nil, ::Numeric, nil
|
|
654
648
|
config_attr :metadata, nil, ::Hash, nil
|
|
@@ -669,7 +663,7 @@ module Google
|
|
|
669
663
|
def rpcs
|
|
670
664
|
@rpcs ||= begin
|
|
671
665
|
parent_rpcs = nil
|
|
672
|
-
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config
|
|
666
|
+
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
|
|
673
667
|
Rpcs.new parent_rpcs
|
|
674
668
|
end
|
|
675
669
|
end
|
|
@@ -720,15 +714,15 @@ module Google
|
|
|
720
714
|
|
|
721
715
|
# @private
|
|
722
716
|
def initialize parent_rpcs = nil
|
|
723
|
-
create_company_config = parent_rpcs
|
|
717
|
+
create_company_config = parent_rpcs.create_company if parent_rpcs.respond_to? :create_company
|
|
724
718
|
@create_company = ::Gapic::Config::Method.new create_company_config
|
|
725
|
-
get_company_config = parent_rpcs
|
|
719
|
+
get_company_config = parent_rpcs.get_company if parent_rpcs.respond_to? :get_company
|
|
726
720
|
@get_company = ::Gapic::Config::Method.new get_company_config
|
|
727
|
-
update_company_config = parent_rpcs
|
|
721
|
+
update_company_config = parent_rpcs.update_company if parent_rpcs.respond_to? :update_company
|
|
728
722
|
@update_company = ::Gapic::Config::Method.new update_company_config
|
|
729
|
-
delete_company_config = parent_rpcs
|
|
723
|
+
delete_company_config = parent_rpcs.delete_company if parent_rpcs.respond_to? :delete_company
|
|
730
724
|
@delete_company = ::Gapic::Config::Method.new delete_company_config
|
|
731
|
-
list_companies_config = parent_rpcs
|
|
725
|
+
list_companies_config = parent_rpcs.list_companies if parent_rpcs.respond_to? :list_companies
|
|
732
726
|
@list_companies = ::Gapic::Config::Method.new list_companies_config
|
|
733
727
|
|
|
734
728
|
yield self if block_given?
|