google-cloud-talent-v4beta1 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +6 -6
- data/README.md +1 -1
- data/lib/google/cloud/talent/v4beta1.rb +1 -1
- data/lib/google/cloud/talent/v4beta1/application_service.rb +1 -1
- data/lib/google/cloud/talent/v4beta1/application_service/client.rb +124 -124
- data/lib/google/cloud/talent/v4beta1/application_service/credentials.rb +1 -1
- data/lib/google/cloud/talent/v4beta1/application_service/paths.rb +17 -17
- data/lib/google/cloud/talent/v4beta1/company_service.rb +1 -1
- data/lib/google/cloud/talent/v4beta1/company_service/client.rb +126 -126
- data/lib/google/cloud/talent/v4beta1/company_service/credentials.rb +1 -1
- data/lib/google/cloud/talent/v4beta1/company_service/paths.rb +8 -8
- data/lib/google/cloud/talent/v4beta1/completion.rb +1 -1
- data/lib/google/cloud/talent/v4beta1/completion/client.rb +60 -60
- data/lib/google/cloud/talent/v4beta1/completion/credentials.rb +1 -1
- data/lib/google/cloud/talent/v4beta1/completion/paths.rb +8 -8
- data/lib/google/cloud/talent/v4beta1/event_service.rb +1 -1
- data/lib/google/cloud/talent/v4beta1/event_service/client.rb +53 -53
- data/lib/google/cloud/talent/v4beta1/event_service/credentials.rb +1 -1
- data/lib/google/cloud/talent/v4beta1/event_service/paths.rb +3 -3
- data/lib/google/cloud/talent/v4beta1/job_service.rb +1 -1
- data/lib/google/cloud/talent/v4beta1/job_service/client.rb +320 -320
- data/lib/google/cloud/talent/v4beta1/job_service/credentials.rb +1 -1
- data/lib/google/cloud/talent/v4beta1/job_service/operations.rb +100 -100
- data/lib/google/cloud/talent/v4beta1/job_service/paths.rb +13 -13
- data/lib/google/cloud/talent/v4beta1/profile_service.rb +1 -1
- data/lib/google/cloud/talent/v4beta1/profile_service/client.rb +176 -176
- data/lib/google/cloud/talent/v4beta1/profile_service/credentials.rb +1 -1
- data/lib/google/cloud/talent/v4beta1/profile_service/paths.rb +5 -5
- data/lib/google/cloud/talent/v4beta1/tenant_service.rb +1 -1
- data/lib/google/cloud/talent/v4beta1/tenant_service/client.rb +124 -124
- data/lib/google/cloud/talent/v4beta1/tenant_service/credentials.rb +1 -1
- data/lib/google/cloud/talent/v4beta1/tenant_service/paths.rb +3 -3
- data/lib/google/cloud/talent/v4beta1/version.rb +1 -1
- data/proto_docs/google/api/resource.rb +12 -12
- data/proto_docs/google/cloud/talent/v4beta1/application.rb +18 -18
- data/proto_docs/google/cloud/talent/v4beta1/application_service.rb +27 -27
- data/proto_docs/google/cloud/talent/v4beta1/common.rb +167 -167
- data/proto_docs/google/cloud/talent/v4beta1/company.rb +21 -21
- data/proto_docs/google/cloud/talent/v4beta1/company_service.rb +29 -29
- data/proto_docs/google/cloud/talent/v4beta1/completion_service.rb +28 -28
- data/proto_docs/google/cloud/talent/v4beta1/event.rb +30 -30
- data/proto_docs/google/cloud/talent/v4beta1/event_service.rb +4 -4
- data/proto_docs/google/cloud/talent/v4beta1/filters.rb +197 -197
- data/proto_docs/google/cloud/talent/v4beta1/histogram.rb +14 -14
- data/proto_docs/google/cloud/talent/v4beta1/job.rb +83 -83
- data/proto_docs/google/cloud/talent/v4beta1/job_service.rb +163 -163
- data/proto_docs/google/cloud/talent/v4beta1/profile.rb +202 -202
- data/proto_docs/google/cloud/talent/v4beta1/profile_service.rb +82 -82
- data/proto_docs/google/cloud/talent/v4beta1/tenant.rb +8 -8
- data/proto_docs/google/cloud/talent/v4beta1/tenant_service.rb +27 -27
- data/proto_docs/google/longrunning/operations.rb +30 -30
- data/proto_docs/google/protobuf/any.rb +4 -4
- data/proto_docs/google/protobuf/duration.rb +4 -4
- data/proto_docs/google/protobuf/empty.rb +2 -2
- data/proto_docs/google/protobuf/field_mask.rb +3 -3
- data/proto_docs/google/protobuf/timestamp.rb +4 -4
- data/proto_docs/google/protobuf/wrappers.rb +27 -27
- data/proto_docs/google/rpc/status.rb +6 -6
- data/proto_docs/google/type/date.rb +6 -6
- data/proto_docs/google/type/latlng.rb +4 -4
- data/proto_docs/google/type/money.rb +5 -5
- data/proto_docs/google/type/postal_address.rb +13 -13
- data/proto_docs/google/type/timeofday.rb +7 -7
- metadata +2 -2
@@ -24,7 +24,7 @@ module Google
|
|
24
24
|
module V4beta1
|
25
25
|
module ProfileService
|
26
26
|
# Credentials for the ProfileService API.
|
27
|
-
class Credentials < Google::Auth::Credentials
|
27
|
+
class Credentials < ::Google::Auth::Credentials
|
28
28
|
self.scope = [
|
29
29
|
"https://www.googleapis.com/auth/cloud-platform",
|
30
30
|
"https://www.googleapis.com/auth/jobs"
|
@@ -35,10 +35,10 @@ module Google
|
|
35
35
|
# @param tenant [String]
|
36
36
|
# @param profile [String]
|
37
37
|
#
|
38
|
-
# @return [String]
|
38
|
+
# @return [::String]
|
39
39
|
def profile_path project:, tenant:, profile:
|
40
|
-
raise ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
41
|
-
raise ArgumentError, "tenant cannot contain /" if tenant.to_s.include? "/"
|
40
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
41
|
+
raise ::ArgumentError, "tenant cannot contain /" if tenant.to_s.include? "/"
|
42
42
|
|
43
43
|
"projects/#{project}/tenants/#{tenant}/profiles/#{profile}"
|
44
44
|
end
|
@@ -53,9 +53,9 @@ module Google
|
|
53
53
|
# @param project [String]
|
54
54
|
# @param tenant [String]
|
55
55
|
#
|
56
|
-
# @return [String]
|
56
|
+
# @return [::String]
|
57
57
|
def tenant_path project:, tenant:
|
58
|
-
raise ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
58
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
59
59
|
|
60
60
|
"projects/#{project}/tenants/#{tenant}"
|
61
61
|
end
|
@@ -36,7 +36,7 @@ module Google
|
|
36
36
|
# To load this service and instantiate a client:
|
37
37
|
#
|
38
38
|
# require "google/cloud/talent/v4beta1/tenant_service"
|
39
|
-
# client = Google::Cloud::Talent::V4beta1::TenantService::Client.new
|
39
|
+
# client = ::Google::Cloud::Talent::V4beta1::TenantService::Client.new
|
40
40
|
#
|
41
41
|
module TenantService
|
42
42
|
end
|
@@ -38,15 +38,15 @@ module Google
|
|
38
38
|
##
|
39
39
|
# Configure the TenantService Client class.
|
40
40
|
#
|
41
|
-
# See {Google::Cloud::Talent::V4beta1::TenantService::Client::Configuration}
|
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
46
|
# To modify the configuration for all TenantService clients:
|
47
47
|
#
|
48
|
-
# Google::Cloud::Talent::V4beta1::TenantService::Client.configure do |config|
|
49
|
-
# config.timeout =
|
48
|
+
# ::Google::Cloud::Talent::V4beta1::TenantService::Client.configure do |config|
|
49
|
+
# config.timeout = 10.0
|
50
50
|
# end
|
51
51
|
#
|
52
52
|
# @yield [config] Configure the Client client.
|
@@ -106,7 +106,7 @@ module Google
|
|
106
106
|
# but structural changes (adding new fields, etc.) are not allowed. Structural changes
|
107
107
|
# should be made on {Client.configure}.
|
108
108
|
#
|
109
|
-
# See {Google::Cloud::Talent::V4beta1::TenantService::Client::Configuration}
|
109
|
+
# See {::Google::Cloud::Talent::V4beta1::TenantService::Client::Configuration}
|
110
110
|
# for a description of the configuration fields.
|
111
111
|
#
|
112
112
|
# @yield [config] Configure the Client client.
|
@@ -127,13 +127,13 @@ module Google
|
|
127
127
|
# To create a new TenantService client with the default
|
128
128
|
# configuration:
|
129
129
|
#
|
130
|
-
# client = Google::Cloud::Talent::V4beta1::TenantService::Client.new
|
130
|
+
# client = ::Google::Cloud::Talent::V4beta1::TenantService::Client.new
|
131
131
|
#
|
132
132
|
# To create a new TenantService client with a custom
|
133
133
|
# configuration:
|
134
134
|
#
|
135
|
-
# client = Google::Cloud::Talent::V4beta1::TenantService::Client.new do |config|
|
136
|
-
# config.timeout =
|
135
|
+
# client = ::Google::Cloud::Talent::V4beta1::TenantService::Client.new do |config|
|
136
|
+
# config.timeout = 10.0
|
137
137
|
# end
|
138
138
|
#
|
139
139
|
# @yield [config] Configure the TenantService client.
|
@@ -160,8 +160,8 @@ module Google
|
|
160
160
|
end
|
161
161
|
@quota_project_id = credentials.respond_to?(:quota_project_id) ? credentials.quota_project_id : nil
|
162
162
|
|
163
|
-
@tenant_service_stub = Gapic::ServiceStub.new(
|
164
|
-
Google::Cloud::Talent::V4beta1::TenantService::Stub,
|
163
|
+
@tenant_service_stub = ::Gapic::ServiceStub.new(
|
164
|
+
::Google::Cloud::Talent::V4beta1::TenantService::Stub,
|
165
165
|
credentials: credentials,
|
166
166
|
endpoint: @config.endpoint,
|
167
167
|
channel_args: @config.channel_args,
|
@@ -176,12 +176,12 @@ module Google
|
|
176
176
|
#
|
177
177
|
# @overload create_tenant(request, options = nil)
|
178
178
|
# Pass arguments to `create_tenant` via a request object, either of type
|
179
|
-
# {Google::Cloud::Talent::V4beta1::CreateTenantRequest} or an equivalent Hash.
|
179
|
+
# {::Google::Cloud::Talent::V4beta1::CreateTenantRequest} or an equivalent Hash.
|
180
180
|
#
|
181
|
-
# @param request [Google::Cloud::Talent::V4beta1::CreateTenantRequest, Hash]
|
181
|
+
# @param request [::Google::Cloud::Talent::V4beta1::CreateTenantRequest, ::Hash]
|
182
182
|
# A request object representing the call parameters. Required. To specify no
|
183
183
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
184
|
-
# @param options [Gapic::CallOptions, Hash]
|
184
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
185
185
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
186
186
|
#
|
187
187
|
# @overload create_tenant(parent: nil, tenant: nil)
|
@@ -189,35 +189,35 @@ module Google
|
|
189
189
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
190
190
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
191
191
|
#
|
192
|
-
# @param parent [String]
|
192
|
+
# @param parent [::String]
|
193
193
|
# Required. Resource name of the project under which the tenant is created.
|
194
194
|
#
|
195
195
|
# The format is "projects/\\{project_id}", for example,
|
196
196
|
# "projects/foo".
|
197
|
-
# @param tenant [Google::Cloud::Talent::V4beta1::Tenant, Hash]
|
197
|
+
# @param tenant [::Google::Cloud::Talent::V4beta1::Tenant, ::Hash]
|
198
198
|
# Required. The tenant to be created.
|
199
199
|
#
|
200
200
|
# @yield [response, operation] Access the result along with the RPC operation
|
201
|
-
# @yieldparam response [Google::Cloud::Talent::V4beta1::Tenant]
|
202
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
201
|
+
# @yieldparam response [::Google::Cloud::Talent::V4beta1::Tenant]
|
202
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
203
203
|
#
|
204
|
-
# @return [Google::Cloud::Talent::V4beta1::Tenant]
|
204
|
+
# @return [::Google::Cloud::Talent::V4beta1::Tenant]
|
205
205
|
#
|
206
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
206
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
207
207
|
#
|
208
208
|
def create_tenant request, options = nil
|
209
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
209
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
210
210
|
|
211
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::Talent::V4beta1::CreateTenantRequest
|
211
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Talent::V4beta1::CreateTenantRequest
|
212
212
|
|
213
213
|
# Converts hash and nil to an options object
|
214
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
214
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
215
215
|
|
216
216
|
# Customize the options with defaults
|
217
217
|
metadata = @config.rpcs.create_tenant.metadata.to_h
|
218
218
|
|
219
219
|
# Set x-goog-api-client and x-goog-user-project headers
|
220
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
220
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
221
221
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
222
222
|
gapic_version: ::Google::Cloud::Talent::V4beta1::VERSION
|
223
223
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -238,8 +238,8 @@ module Google
|
|
238
238
|
yield response, operation if block_given?
|
239
239
|
return response
|
240
240
|
end
|
241
|
-
rescue GRPC::BadStatus => e
|
242
|
-
raise Google::Cloud::Error.from_error(e)
|
241
|
+
rescue ::GRPC::BadStatus => e
|
242
|
+
raise ::Google::Cloud::Error.from_error(e)
|
243
243
|
end
|
244
244
|
|
245
245
|
##
|
@@ -247,12 +247,12 @@ module Google
|
|
247
247
|
#
|
248
248
|
# @overload get_tenant(request, options = nil)
|
249
249
|
# Pass arguments to `get_tenant` via a request object, either of type
|
250
|
-
# {Google::Cloud::Talent::V4beta1::GetTenantRequest} or an equivalent Hash.
|
250
|
+
# {::Google::Cloud::Talent::V4beta1::GetTenantRequest} or an equivalent Hash.
|
251
251
|
#
|
252
|
-
# @param request [Google::Cloud::Talent::V4beta1::GetTenantRequest, Hash]
|
252
|
+
# @param request [::Google::Cloud::Talent::V4beta1::GetTenantRequest, ::Hash]
|
253
253
|
# A request object representing the call parameters. Required. To specify no
|
254
254
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
255
|
-
# @param options [Gapic::CallOptions, Hash]
|
255
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
256
256
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
257
257
|
#
|
258
258
|
# @overload get_tenant(name: nil)
|
@@ -260,33 +260,33 @@ module Google
|
|
260
260
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
261
261
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
262
262
|
#
|
263
|
-
# @param name [String]
|
263
|
+
# @param name [::String]
|
264
264
|
# Required. The resource name of the tenant to be retrieved.
|
265
265
|
#
|
266
266
|
# The format is "projects/\\{project_id}/tenants/\\{tenant_id}", for example,
|
267
267
|
# "projects/foo/tenants/bar".
|
268
268
|
#
|
269
269
|
# @yield [response, operation] Access the result along with the RPC operation
|
270
|
-
# @yieldparam response [Google::Cloud::Talent::V4beta1::Tenant]
|
271
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
270
|
+
# @yieldparam response [::Google::Cloud::Talent::V4beta1::Tenant]
|
271
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
272
272
|
#
|
273
|
-
# @return [Google::Cloud::Talent::V4beta1::Tenant]
|
273
|
+
# @return [::Google::Cloud::Talent::V4beta1::Tenant]
|
274
274
|
#
|
275
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
275
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
276
276
|
#
|
277
277
|
def get_tenant request, options = nil
|
278
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
278
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
279
279
|
|
280
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::Talent::V4beta1::GetTenantRequest
|
280
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Talent::V4beta1::GetTenantRequest
|
281
281
|
|
282
282
|
# Converts hash and nil to an options object
|
283
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
283
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
284
284
|
|
285
285
|
# Customize the options with defaults
|
286
286
|
metadata = @config.rpcs.get_tenant.metadata.to_h
|
287
287
|
|
288
288
|
# Set x-goog-api-client and x-goog-user-project headers
|
289
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
289
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
290
290
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
291
291
|
gapic_version: ::Google::Cloud::Talent::V4beta1::VERSION
|
292
292
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -307,8 +307,8 @@ module Google
|
|
307
307
|
yield response, operation if block_given?
|
308
308
|
return response
|
309
309
|
end
|
310
|
-
rescue GRPC::BadStatus => e
|
311
|
-
raise Google::Cloud::Error.from_error(e)
|
310
|
+
rescue ::GRPC::BadStatus => e
|
311
|
+
raise ::Google::Cloud::Error.from_error(e)
|
312
312
|
end
|
313
313
|
|
314
314
|
##
|
@@ -316,12 +316,12 @@ module Google
|
|
316
316
|
#
|
317
317
|
# @overload update_tenant(request, options = nil)
|
318
318
|
# Pass arguments to `update_tenant` via a request object, either of type
|
319
|
-
# {Google::Cloud::Talent::V4beta1::UpdateTenantRequest} or an equivalent Hash.
|
319
|
+
# {::Google::Cloud::Talent::V4beta1::UpdateTenantRequest} or an equivalent Hash.
|
320
320
|
#
|
321
|
-
# @param request [Google::Cloud::Talent::V4beta1::UpdateTenantRequest, Hash]
|
321
|
+
# @param request [::Google::Cloud::Talent::V4beta1::UpdateTenantRequest, ::Hash]
|
322
322
|
# A request object representing the call parameters. Required. To specify no
|
323
323
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
324
|
-
# @param options [Gapic::CallOptions, Hash]
|
324
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
325
325
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
326
326
|
#
|
327
327
|
# @overload update_tenant(tenant: nil, update_mask: nil)
|
@@ -329,38 +329,38 @@ module Google
|
|
329
329
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
330
330
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
331
331
|
#
|
332
|
-
# @param tenant [Google::Cloud::Talent::V4beta1::Tenant, Hash]
|
332
|
+
# @param tenant [::Google::Cloud::Talent::V4beta1::Tenant, ::Hash]
|
333
333
|
# Required. The tenant resource to replace the current resource in the system.
|
334
|
-
# @param update_mask [Google::Protobuf::FieldMask, Hash]
|
334
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
335
335
|
# Strongly recommended for the best service experience.
|
336
336
|
#
|
337
|
-
# If {Google::Cloud::Talent::V4beta1::UpdateTenantRequest#update_mask update_mask} is provided, only the specified fields in
|
338
|
-
# {Google::Cloud::Talent::V4beta1::UpdateTenantRequest#tenant tenant} are updated. Otherwise all the fields are updated.
|
337
|
+
# If {::Google::Cloud::Talent::V4beta1::UpdateTenantRequest#update_mask update_mask} is provided, only the specified fields in
|
338
|
+
# {::Google::Cloud::Talent::V4beta1::UpdateTenantRequest#tenant tenant} are updated. Otherwise all the fields are updated.
|
339
339
|
#
|
340
340
|
# A field mask to specify the tenant fields to be updated. Only
|
341
|
-
# top level fields of {Google::Cloud::Talent::V4beta1::Tenant Tenant} are supported.
|
341
|
+
# top level fields of {::Google::Cloud::Talent::V4beta1::Tenant Tenant} are supported.
|
342
342
|
#
|
343
343
|
# @yield [response, operation] Access the result along with the RPC operation
|
344
|
-
# @yieldparam response [Google::Cloud::Talent::V4beta1::Tenant]
|
345
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
344
|
+
# @yieldparam response [::Google::Cloud::Talent::V4beta1::Tenant]
|
345
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
346
346
|
#
|
347
|
-
# @return [Google::Cloud::Talent::V4beta1::Tenant]
|
347
|
+
# @return [::Google::Cloud::Talent::V4beta1::Tenant]
|
348
348
|
#
|
349
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
349
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
350
350
|
#
|
351
351
|
def update_tenant request, options = nil
|
352
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
352
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
353
353
|
|
354
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::Talent::V4beta1::UpdateTenantRequest
|
354
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Talent::V4beta1::UpdateTenantRequest
|
355
355
|
|
356
356
|
# Converts hash and nil to an options object
|
357
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
357
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
358
358
|
|
359
359
|
# Customize the options with defaults
|
360
360
|
metadata = @config.rpcs.update_tenant.metadata.to_h
|
361
361
|
|
362
362
|
# Set x-goog-api-client and x-goog-user-project headers
|
363
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
363
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
364
364
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
365
365
|
gapic_version: ::Google::Cloud::Talent::V4beta1::VERSION
|
366
366
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -381,8 +381,8 @@ module Google
|
|
381
381
|
yield response, operation if block_given?
|
382
382
|
return response
|
383
383
|
end
|
384
|
-
rescue GRPC::BadStatus => e
|
385
|
-
raise Google::Cloud::Error.from_error(e)
|
384
|
+
rescue ::GRPC::BadStatus => e
|
385
|
+
raise ::Google::Cloud::Error.from_error(e)
|
386
386
|
end
|
387
387
|
|
388
388
|
##
|
@@ -390,12 +390,12 @@ module Google
|
|
390
390
|
#
|
391
391
|
# @overload delete_tenant(request, options = nil)
|
392
392
|
# Pass arguments to `delete_tenant` via a request object, either of type
|
393
|
-
# {Google::Cloud::Talent::V4beta1::DeleteTenantRequest} or an equivalent Hash.
|
393
|
+
# {::Google::Cloud::Talent::V4beta1::DeleteTenantRequest} or an equivalent Hash.
|
394
394
|
#
|
395
|
-
# @param request [Google::Cloud::Talent::V4beta1::DeleteTenantRequest, Hash]
|
395
|
+
# @param request [::Google::Cloud::Talent::V4beta1::DeleteTenantRequest, ::Hash]
|
396
396
|
# A request object representing the call parameters. Required. To specify no
|
397
397
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
398
|
-
# @param options [Gapic::CallOptions, Hash]
|
398
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
399
399
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
400
400
|
#
|
401
401
|
# @overload delete_tenant(name: nil)
|
@@ -403,33 +403,33 @@ module Google
|
|
403
403
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
404
404
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
405
405
|
#
|
406
|
-
# @param name [String]
|
406
|
+
# @param name [::String]
|
407
407
|
# Required. The resource name of the tenant to be deleted.
|
408
408
|
#
|
409
409
|
# The format is "projects/\\{project_id}/tenants/\\{tenant_id}", for example,
|
410
410
|
# "projects/foo/tenants/bar".
|
411
411
|
#
|
412
412
|
# @yield [response, operation] Access the result along with the RPC operation
|
413
|
-
# @yieldparam response [Google::Protobuf::Empty]
|
414
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
413
|
+
# @yieldparam response [::Google::Protobuf::Empty]
|
414
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
415
415
|
#
|
416
|
-
# @return [Google::Protobuf::Empty]
|
416
|
+
# @return [::Google::Protobuf::Empty]
|
417
417
|
#
|
418
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
418
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
419
419
|
#
|
420
420
|
def delete_tenant request, options = nil
|
421
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
421
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
422
422
|
|
423
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::Talent::V4beta1::DeleteTenantRequest
|
423
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Talent::V4beta1::DeleteTenantRequest
|
424
424
|
|
425
425
|
# Converts hash and nil to an options object
|
426
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
426
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
427
427
|
|
428
428
|
# Customize the options with defaults
|
429
429
|
metadata = @config.rpcs.delete_tenant.metadata.to_h
|
430
430
|
|
431
431
|
# Set x-goog-api-client and x-goog-user-project headers
|
432
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
432
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
433
433
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
434
434
|
gapic_version: ::Google::Cloud::Talent::V4beta1::VERSION
|
435
435
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -450,8 +450,8 @@ module Google
|
|
450
450
|
yield response, operation if block_given?
|
451
451
|
return response
|
452
452
|
end
|
453
|
-
rescue GRPC::BadStatus => e
|
454
|
-
raise Google::Cloud::Error.from_error(e)
|
453
|
+
rescue ::GRPC::BadStatus => e
|
454
|
+
raise ::Google::Cloud::Error.from_error(e)
|
455
455
|
end
|
456
456
|
|
457
457
|
##
|
@@ -459,12 +459,12 @@ module Google
|
|
459
459
|
#
|
460
460
|
# @overload list_tenants(request, options = nil)
|
461
461
|
# Pass arguments to `list_tenants` via a request object, either of type
|
462
|
-
# {Google::Cloud::Talent::V4beta1::ListTenantsRequest} or an equivalent Hash.
|
462
|
+
# {::Google::Cloud::Talent::V4beta1::ListTenantsRequest} or an equivalent Hash.
|
463
463
|
#
|
464
|
-
# @param request [Google::Cloud::Talent::V4beta1::ListTenantsRequest, Hash]
|
464
|
+
# @param request [::Google::Cloud::Talent::V4beta1::ListTenantsRequest, ::Hash]
|
465
465
|
# A request object representing the call parameters. Required. To specify no
|
466
466
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
467
|
-
# @param options [Gapic::CallOptions, Hash]
|
467
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
468
468
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
469
469
|
#
|
470
470
|
# @overload list_tenants(parent: nil, page_token: nil, page_size: nil)
|
@@ -472,38 +472,38 @@ module Google
|
|
472
472
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
473
473
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
474
474
|
#
|
475
|
-
# @param parent [String]
|
475
|
+
# @param parent [::String]
|
476
476
|
# Required. Resource name of the project under which the tenant is created.
|
477
477
|
#
|
478
478
|
# The format is "projects/\\{project_id}", for example,
|
479
479
|
# "projects/foo".
|
480
|
-
# @param page_token [String]
|
480
|
+
# @param page_token [::String]
|
481
481
|
# The starting indicator from which to return results.
|
482
|
-
# @param page_size [Integer]
|
482
|
+
# @param page_size [::Integer]
|
483
483
|
# The maximum number of tenants to be returned, at most 100.
|
484
484
|
# Default is 100 if a non-positive number is provided.
|
485
485
|
#
|
486
486
|
# @yield [response, operation] Access the result along with the RPC operation
|
487
|
-
# @yieldparam response [Gapic::PagedEnumerable
|
488
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
487
|
+
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Talent::V4beta1::Tenant>]
|
488
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
489
489
|
#
|
490
|
-
# @return [Gapic::PagedEnumerable
|
490
|
+
# @return [::Gapic::PagedEnumerable<::Google::Cloud::Talent::V4beta1::Tenant>]
|
491
491
|
#
|
492
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
492
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
493
493
|
#
|
494
494
|
def list_tenants request, options = nil
|
495
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
495
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
496
496
|
|
497
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::Talent::V4beta1::ListTenantsRequest
|
497
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Talent::V4beta1::ListTenantsRequest
|
498
498
|
|
499
499
|
# Converts hash and nil to an options object
|
500
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
500
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
501
501
|
|
502
502
|
# Customize the options with defaults
|
503
503
|
metadata = @config.rpcs.list_tenants.metadata.to_h
|
504
504
|
|
505
505
|
# Set x-goog-api-client and x-goog-user-project headers
|
506
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
506
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
507
507
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
508
508
|
gapic_version: ::Google::Cloud::Talent::V4beta1::VERSION
|
509
509
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -521,12 +521,12 @@ module Google
|
|
521
521
|
retry_policy: @config.retry_policy
|
522
522
|
|
523
523
|
@tenant_service_stub.call_rpc :list_tenants, request, options: options do |response, operation|
|
524
|
-
response = Gapic::PagedEnumerable.new @tenant_service_stub, :list_tenants, request, response, operation, options
|
524
|
+
response = ::Gapic::PagedEnumerable.new @tenant_service_stub, :list_tenants, request, response, operation, options
|
525
525
|
yield response, operation if block_given?
|
526
526
|
return response
|
527
527
|
end
|
528
|
-
rescue GRPC::BadStatus => e
|
529
|
-
raise Google::Cloud::Error.from_error(e)
|
528
|
+
rescue ::GRPC::BadStatus => e
|
529
|
+
raise ::Google::Cloud::Error.from_error(e)
|
530
530
|
end
|
531
531
|
|
532
532
|
##
|
@@ -536,7 +536,7 @@ module Google
|
|
536
536
|
# providing control over timeouts, retry behavior, logging, transport
|
537
537
|
# parameters, and other low-level controls. Certain parameters can also be
|
538
538
|
# applied individually to specific RPCs. See
|
539
|
-
# {Google::Cloud::Talent::V4beta1::TenantService::Client::Configuration::Rpcs}
|
539
|
+
# {::Google::Cloud::Talent::V4beta1::TenantService::Client::Configuration::Rpcs}
|
540
540
|
# for a list of RPCs that can be configured independently.
|
541
541
|
#
|
542
542
|
# Configuration can be applied globally to all clients, or to a single client
|
@@ -547,22 +547,22 @@ module Google
|
|
547
547
|
# To modify the global config, setting the timeout for create_tenant
|
548
548
|
# to 20 seconds, and all remaining timeouts to 10 seconds:
|
549
549
|
#
|
550
|
-
# Google::Cloud::Talent::V4beta1::TenantService::Client.configure do |config|
|
551
|
-
# config.timeout =
|
552
|
-
# config.rpcs.create_tenant.timeout =
|
550
|
+
# ::Google::Cloud::Talent::V4beta1::TenantService::Client.configure do |config|
|
551
|
+
# config.timeout = 10.0
|
552
|
+
# config.rpcs.create_tenant.timeout = 20.0
|
553
553
|
# end
|
554
554
|
#
|
555
555
|
# To apply the above configuration only to a new client:
|
556
556
|
#
|
557
|
-
# client = Google::Cloud::Talent::V4beta1::TenantService::Client.new do |config|
|
558
|
-
# config.timeout =
|
559
|
-
# config.rpcs.create_tenant.timeout =
|
557
|
+
# client = ::Google::Cloud::Talent::V4beta1::TenantService::Client.new do |config|
|
558
|
+
# config.timeout = 10.0
|
559
|
+
# config.rpcs.create_tenant.timeout = 20.0
|
560
560
|
# end
|
561
561
|
#
|
562
562
|
# @!attribute [rw] endpoint
|
563
563
|
# The hostname or hostname:port of the service endpoint.
|
564
564
|
# Defaults to `"jobs.googleapis.com"`.
|
565
|
-
# @return [String]
|
565
|
+
# @return [::String]
|
566
566
|
# @!attribute [rw] credentials
|
567
567
|
# Credentials to send with calls. You may provide any of the following types:
|
568
568
|
# * (`String`) The path to a service account key file in JSON format
|
@@ -574,29 +574,29 @@ module Google
|
|
574
574
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
575
575
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
576
576
|
# * (`nil`) indicating no credentials
|
577
|
-
# @return [Object]
|
577
|
+
# @return [::Object]
|
578
578
|
# @!attribute [rw] scope
|
579
579
|
# The OAuth scopes
|
580
|
-
# @return [Array
|
580
|
+
# @return [::Array<::String>]
|
581
581
|
# @!attribute [rw] lib_name
|
582
582
|
# The library name as recorded in instrumentation and logging
|
583
|
-
# @return [String]
|
583
|
+
# @return [::String]
|
584
584
|
# @!attribute [rw] lib_version
|
585
585
|
# The library version as recorded in instrumentation and logging
|
586
|
-
# @return [String]
|
586
|
+
# @return [::String]
|
587
587
|
# @!attribute [rw] channel_args
|
588
588
|
# Extra parameters passed to the gRPC channel. Note: this is ignored if a
|
589
589
|
# `GRPC::Core::Channel` object is provided as the credential.
|
590
|
-
# @return [Hash]
|
590
|
+
# @return [::Hash]
|
591
591
|
# @!attribute [rw] interceptors
|
592
592
|
# An array of interceptors that are run before calls are executed.
|
593
|
-
# @return [Array
|
593
|
+
# @return [::Array<::GRPC::ClientInterceptor>]
|
594
594
|
# @!attribute [rw] timeout
|
595
|
-
# The call timeout in
|
596
|
-
# @return [Numeric]
|
595
|
+
# The call timeout in seconds.
|
596
|
+
# @return [::Numeric]
|
597
597
|
# @!attribute [rw] metadata
|
598
598
|
# Additional gRPC headers to be sent with the call.
|
599
|
-
# @return [Hash{Symbol
|
599
|
+
# @return [::Hash{::Symbol=>::String}]
|
600
600
|
# @!attribute [rw] retry_policy
|
601
601
|
# The retry policy. The value is a hash with the following keys:
|
602
602
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
@@ -604,10 +604,10 @@ module Google
|
|
604
604
|
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
605
605
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
606
606
|
# trigger a retry.
|
607
|
-
# @return [Hash]
|
607
|
+
# @return [::Hash]
|
608
608
|
#
|
609
609
|
class Configuration
|
610
|
-
extend Gapic::Config
|
610
|
+
extend ::Gapic::Config
|
611
611
|
|
612
612
|
config_attr :endpoint, "jobs.googleapis.com", String
|
613
613
|
config_attr :credentials, nil do |value|
|
@@ -615,14 +615,14 @@ module Google
|
|
615
615
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
616
616
|
allowed.any? { |klass| klass === value }
|
617
617
|
end
|
618
|
-
config_attr :scope, nil, String, Array, nil
|
619
|
-
config_attr :lib_name, nil, String, nil
|
620
|
-
config_attr :lib_version, nil, String, nil
|
621
|
-
config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, Hash, nil)
|
622
|
-
config_attr :interceptors, nil, Array, nil
|
623
|
-
config_attr :timeout, nil, Numeric, nil
|
624
|
-
config_attr :metadata, nil, Hash, nil
|
625
|
-
config_attr :retry_policy, nil, Hash, Proc, nil
|
618
|
+
config_attr :scope, nil, ::String, ::Array, nil
|
619
|
+
config_attr :lib_name, nil, ::String, nil
|
620
|
+
config_attr :lib_version, nil, ::String, nil
|
621
|
+
config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
|
622
|
+
config_attr :interceptors, nil, ::Array, nil
|
623
|
+
config_attr :timeout, nil, ::Numeric, nil
|
624
|
+
config_attr :metadata, nil, ::Hash, nil
|
625
|
+
config_attr :retry_policy, nil, ::Hash, Proc, nil
|
626
626
|
|
627
627
|
# @private
|
628
628
|
def initialize parent_config = nil
|
@@ -663,42 +663,42 @@ module Google
|
|
663
663
|
class Rpcs
|
664
664
|
##
|
665
665
|
# RPC-specific configuration for `create_tenant`
|
666
|
-
# @return [Gapic::Config::Method]
|
666
|
+
# @return [::Gapic::Config::Method]
|
667
667
|
#
|
668
668
|
attr_reader :create_tenant
|
669
669
|
##
|
670
670
|
# RPC-specific configuration for `get_tenant`
|
671
|
-
# @return [Gapic::Config::Method]
|
671
|
+
# @return [::Gapic::Config::Method]
|
672
672
|
#
|
673
673
|
attr_reader :get_tenant
|
674
674
|
##
|
675
675
|
# RPC-specific configuration for `update_tenant`
|
676
|
-
# @return [Gapic::Config::Method]
|
676
|
+
# @return [::Gapic::Config::Method]
|
677
677
|
#
|
678
678
|
attr_reader :update_tenant
|
679
679
|
##
|
680
680
|
# RPC-specific configuration for `delete_tenant`
|
681
|
-
# @return [Gapic::Config::Method]
|
681
|
+
# @return [::Gapic::Config::Method]
|
682
682
|
#
|
683
683
|
attr_reader :delete_tenant
|
684
684
|
##
|
685
685
|
# RPC-specific configuration for `list_tenants`
|
686
|
-
# @return [Gapic::Config::Method]
|
686
|
+
# @return [::Gapic::Config::Method]
|
687
687
|
#
|
688
688
|
attr_reader :list_tenants
|
689
689
|
|
690
690
|
# @private
|
691
691
|
def initialize parent_rpcs = nil
|
692
692
|
create_tenant_config = parent_rpcs&.create_tenant if parent_rpcs&.respond_to? :create_tenant
|
693
|
-
@create_tenant = Gapic::Config::Method.new create_tenant_config
|
693
|
+
@create_tenant = ::Gapic::Config::Method.new create_tenant_config
|
694
694
|
get_tenant_config = parent_rpcs&.get_tenant if parent_rpcs&.respond_to? :get_tenant
|
695
|
-
@get_tenant = Gapic::Config::Method.new get_tenant_config
|
695
|
+
@get_tenant = ::Gapic::Config::Method.new get_tenant_config
|
696
696
|
update_tenant_config = parent_rpcs&.update_tenant if parent_rpcs&.respond_to? :update_tenant
|
697
|
-
@update_tenant = Gapic::Config::Method.new update_tenant_config
|
697
|
+
@update_tenant = ::Gapic::Config::Method.new update_tenant_config
|
698
698
|
delete_tenant_config = parent_rpcs&.delete_tenant if parent_rpcs&.respond_to? :delete_tenant
|
699
|
-
@delete_tenant = Gapic::Config::Method.new delete_tenant_config
|
699
|
+
@delete_tenant = ::Gapic::Config::Method.new delete_tenant_config
|
700
700
|
list_tenants_config = parent_rpcs&.list_tenants if parent_rpcs&.respond_to? :list_tenants
|
701
|
-
@list_tenants = Gapic::Config::Method.new list_tenants_config
|
701
|
+
@list_tenants = ::Gapic::Config::Method.new list_tenants_config
|
702
702
|
|
703
703
|
yield self if block_given?
|
704
704
|
end
|