google-cloud-talent 0.10.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardopts +2 -1
- data/AUTHENTICATION.md +51 -59
- data/LICENSE.md +201 -0
- data/MIGRATING.md +347 -0
- data/README.md +97 -27
- data/lib/{google/cloud/talent/v4beta1/doc/google/protobuf/empty.rb → google-cloud-talent.rb} +4 -14
- data/lib/google/cloud/talent.rb +203 -453
- data/lib/google/cloud/talent/version.rb +6 -2
- metadata +76 -111
- data/LICENSE +0 -201
- data/lib/google/cloud/talent/v4beta1.rb +0 -543
- data/lib/google/cloud/talent/v4beta1/application_pb.rb +0 -63
- data/lib/google/cloud/talent/v4beta1/application_service_client.rb +0 -527
- data/lib/google/cloud/talent/v4beta1/application_service_client_config.json +0 -51
- data/lib/google/cloud/talent/v4beta1/application_service_pb.rb +0 -55
- data/lib/google/cloud/talent/v4beta1/application_service_services_pb.rb +0 -55
- data/lib/google/cloud/talent/v4beta1/batch_pb.rb +0 -18
- data/lib/google/cloud/talent/v4beta1/common_pb.rb +0 -341
- data/lib/google/cloud/talent/v4beta1/company_pb.rb +0 -41
- data/lib/google/cloud/talent/v4beta1/company_service_client.rb +0 -536
- data/lib/google/cloud/talent/v4beta1/company_service_client_config.json +0 -51
- data/lib/google/cloud/talent/v4beta1/company_service_pb.rb +0 -56
- data/lib/google/cloud/talent/v4beta1/company_service_services_pb.rb +0 -55
- data/lib/google/cloud/talent/v4beta1/completion_client.rb +0 -344
- data/lib/google/cloud/talent/v4beta1/completion_client_config.json +0 -31
- data/lib/google/cloud/talent/v4beta1/completion_service_pb.rb +0 -56
- data/lib/google/cloud/talent/v4beta1/completion_service_services_pb.rb +0 -47
- data/lib/google/cloud/talent/v4beta1/credentials.rb +0 -42
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/application.rb +0 -162
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/application_service.rb +0 -100
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/common.rb +0 -1057
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/company.rb +0 -107
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/company_service.rb +0 -116
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/completion_service.rb +0 -130
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/event.rb +0 -224
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/event_service.rb +0 -36
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/filters.rb +0 -763
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/histogram.rb +0 -50
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/job.rb +0 -331
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/job_service.rb +0 -694
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/profile.rb +0 -750
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/profile_service.rb +0 -361
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/tenant.rb +0 -70
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/tenant_service.rb +0 -96
- data/lib/google/cloud/talent/v4beta1/doc/google/longrunning/operations.rb +0 -51
- data/lib/google/cloud/talent/v4beta1/doc/google/protobuf/any.rb +0 -131
- data/lib/google/cloud/talent/v4beta1/doc/google/protobuf/duration.rb +0 -91
- data/lib/google/cloud/talent/v4beta1/doc/google/protobuf/field_mask.rb +0 -222
- data/lib/google/cloud/talent/v4beta1/doc/google/protobuf/timestamp.rb +0 -113
- data/lib/google/cloud/talent/v4beta1/doc/google/protobuf/wrappers.rb +0 -34
- data/lib/google/cloud/talent/v4beta1/doc/google/rpc/status.rb +0 -39
- data/lib/google/cloud/talent/v4beta1/doc/google/type/date.rb +0 -43
- data/lib/google/cloud/talent/v4beta1/doc/google/type/latlng.rb +0 -31
- data/lib/google/cloud/talent/v4beta1/doc/google/type/money.rb +0 -36
- data/lib/google/cloud/talent/v4beta1/doc/google/type/postal_address.rb +0 -128
- data/lib/google/cloud/talent/v4beta1/doc/google/type/timeofday.rb +0 -37
- data/lib/google/cloud/talent/v4beta1/event_pb.rb +0 -69
- data/lib/google/cloud/talent/v4beta1/event_service_client.rb +0 -271
- data/lib/google/cloud/talent/v4beta1/event_service_client_config.json +0 -31
- data/lib/google/cloud/talent/v4beta1/event_service_pb.rb +0 -27
- data/lib/google/cloud/talent/v4beta1/event_service_services_pb.rb +0 -52
- data/lib/google/cloud/talent/v4beta1/filters_pb.rb +0 -187
- data/lib/google/cloud/talent/v4beta1/helpers.rb +0 -179
- data/lib/google/cloud/talent/v4beta1/histogram_pb.rb +0 -27
- data/lib/google/cloud/talent/v4beta1/job_pb.rb +0 -72
- data/lib/google/cloud/talent/v4beta1/job_service_client.rb +0 -1521
- data/lib/google/cloud/talent/v4beta1/job_service_client_config.json +0 -76
- data/lib/google/cloud/talent/v4beta1/job_service_pb.rb +0 -166
- data/lib/google/cloud/talent/v4beta1/job_service_services_pb.rb +0 -87
- data/lib/google/cloud/talent/v4beta1/profile_pb.rb +0 -213
- data/lib/google/cloud/talent/v4beta1/profile_service_client.rb +0 -765
- data/lib/google/cloud/talent/v4beta1/profile_service_client_config.json +0 -56
- data/lib/google/cloud/talent/v4beta1/profile_service_pb.rb +0 -91
- data/lib/google/cloud/talent/v4beta1/profile_service_services_pb.rb +0 -64
- data/lib/google/cloud/talent/v4beta1/tenant_pb.rb +0 -34
- data/lib/google/cloud/talent/v4beta1/tenant_service_client.rb +0 -474
- data/lib/google/cloud/talent/v4beta1/tenant_service_client_config.json +0 -51
- data/lib/google/cloud/talent/v4beta1/tenant_service_pb.rb +0 -55
- data/lib/google/cloud/talent/v4beta1/tenant_service_services_pb.rb +0 -54
data/README.md
CHANGED
@@ -1,42 +1,54 @@
|
|
1
|
-
# Ruby Client for Cloud Talent Solution API
|
1
|
+
# Ruby Client for the Cloud Talent Solution API
|
2
2
|
|
3
|
-
|
4
|
-
Cloud Talent Solution provides the capability to create, read, update, and
|
5
|
-
delete job postings, as well as search jobs based on keywords and filters.
|
6
|
-
- [Client Library Documentation][]
|
7
|
-
- [Product Documentation][]
|
3
|
+
API Client library for the Cloud Talent Solution API
|
8
4
|
|
9
|
-
|
10
|
-
In order to use this library, you first need to go through the following
|
11
|
-
steps:
|
5
|
+
Transform your job search and candidate matching capabilities with Cloud Talent Solution, designed to support enterprise talent acquisition technology and evolve with your growing needs. This AI solution includes features such as Job Search and Profile Search (Beta) to provide candidates and employers with an enhanced talent acquisition experience.
|
12
6
|
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
7
|
+
Actual client classes for the various versions of this API are defined in
|
8
|
+
_versioned_ client gems, with names of the form `google-cloud-talent-v*`.
|
9
|
+
The gem `google-cloud-talent` is the main client library that brings the
|
10
|
+
verisoned gems in as dependencies, and provides high-level methods for
|
11
|
+
constructing clients. More information on versioned clients can be found below
|
12
|
+
in the section titled *Which client should I use?*.
|
13
|
+
|
14
|
+
View the [Client Library Documentation](https://googleapis.dev/ruby/google-cloud-talent/latest)
|
15
|
+
for this library, google-cloud-talent, to see the convenience methods for
|
16
|
+
constructing client objects. Reference documentation for the client objects
|
17
|
+
themselves can be found in the client library documentation for the versioned
|
18
|
+
client gems:
|
19
|
+
[google-cloud-talent-v4](https://googleapis.dev/ruby/google-cloud-talent-v4/latest),
|
20
|
+
[google-cloud-talent-v4beta1](https://googleapis.dev/ruby/google-cloud-talent-v4beta1/latest).
|
21
|
+
|
22
|
+
See also the [Product Documentation](https://cloud.google.com/solutions/talent-solution)
|
23
|
+
for more usage information.
|
24
|
+
|
25
|
+
## Quick Start
|
17
26
|
|
18
|
-
### Installation
|
19
27
|
```
|
20
28
|
$ gem install google-cloud-talent
|
21
29
|
```
|
22
30
|
|
23
|
-
|
24
|
-
- Read the [Client Library Documentation][] for Cloud Talent Solution API
|
25
|
-
to see other available methods on the client.
|
26
|
-
- Read the [Cloud Talent Solution API Product documentation][Product Documentation]
|
27
|
-
to learn more about the product and see How-to Guides.
|
28
|
-
- View this [repository's main README](https://github.com/googleapis/google-cloud-ruby/blob/master/README.md)
|
29
|
-
to see the full list of Cloud APIs that we cover.
|
31
|
+
In order to use this library, you first need to go through the following steps:
|
30
32
|
|
31
|
-
[
|
32
|
-
[
|
33
|
+
1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project)
|
34
|
+
1. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project)
|
35
|
+
1. [Enable the API.](https://console.cloud.google.com/apis/library/jobs.googleapis.com)
|
36
|
+
1. {file:AUTHENTICATION.md Set up authentication.}
|
37
|
+
|
38
|
+
## Migrating from pre-0.20 versions
|
39
|
+
|
40
|
+
The 0.20 release of the google-cloud-talent client is a significant upgrade
|
41
|
+
based on a [next-gen code generator](https://github.com/googleapis/gapic-generator-ruby),
|
42
|
+
and includes substantial interface changes. Existing code written for earlier
|
43
|
+
versions of this library will likely require updates to use this version.
|
44
|
+
See the {file:MIGRATING.md MIGRATING.md} document for more information.
|
33
45
|
|
34
46
|
## Enabling Logging
|
35
47
|
|
36
48
|
To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
|
37
|
-
The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/stdlib
|
49
|
+
The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/stdlib/libdoc/logger/rdoc/Logger.html) as shown below,
|
38
50
|
or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
|
39
|
-
that will write logs to [
|
51
|
+
that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
|
40
52
|
and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
|
41
53
|
|
42
54
|
Configuring a Ruby stdlib logger:
|
@@ -59,11 +71,69 @@ end
|
|
59
71
|
|
60
72
|
## Supported Ruby Versions
|
61
73
|
|
62
|
-
This library is supported on Ruby 2.
|
74
|
+
This library is supported on Ruby 2.5+.
|
63
75
|
|
64
76
|
Google provides official support for Ruby versions that are actively supported
|
65
77
|
by Ruby Core—that is, Ruby versions that are either in normal maintenance or
|
66
|
-
in security maintenance, and not end of life. Currently, this means Ruby 2.
|
78
|
+
in security maintenance, and not end of life. Currently, this means Ruby 2.5
|
67
79
|
and later. Older versions of Ruby _may_ still work, but are unsupported and not
|
68
80
|
recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details
|
69
81
|
about the Ruby support schedule.
|
82
|
+
|
83
|
+
## Which client should I use?
|
84
|
+
|
85
|
+
Most modern Ruby client libraries for Google APIs come in two flavors: the main
|
86
|
+
client library with a name such as `google-cloud-talent`,
|
87
|
+
and lower-level _versioned_ client libraries with names such as
|
88
|
+
`google-cloud-talent-v4`.
|
89
|
+
_In most cases, you should install the main client._
|
90
|
+
|
91
|
+
### What's the difference between the main client and a versioned client?
|
92
|
+
|
93
|
+
A _versioned client_ provides a basic set of data types and client classes for
|
94
|
+
a _single version_ of a specific service. (That is, for a service with multiple
|
95
|
+
versions, there might be a separate versioned client for each service version.)
|
96
|
+
Most versioned clients are written and maintained by a code generator.
|
97
|
+
|
98
|
+
The _main client_ is designed to provide you with the _recommended_ client
|
99
|
+
interfaces for the service. There will be only one main client for any given
|
100
|
+
service, even a service with multiple versions. The main client includes
|
101
|
+
factory methods for constructing the client objects we recommend for most
|
102
|
+
users. In some cases, those will be classes provided by an underlying versioned
|
103
|
+
client; in other cases, they will be handwritten higher-level client objects
|
104
|
+
with additional capabilities, convenience methods, or best practices built in.
|
105
|
+
Generally, the main client will default to a recommended service version,
|
106
|
+
although in some cases you can override this if you need to talk to a specific
|
107
|
+
service version.
|
108
|
+
|
109
|
+
### Why would I want to use the main client?
|
110
|
+
|
111
|
+
We recommend that most users install the main client gem for a service. You can
|
112
|
+
identify this gem as the one _without_ a version in its name, e.g.
|
113
|
+
`google-cloud-talent`.
|
114
|
+
The main client is recommended because it will embody the best practices for
|
115
|
+
accessing the service, and may also provide more convenient interfaces or
|
116
|
+
tighter integration into frameworks and third-party libraries. In addition, the
|
117
|
+
documentation and samples published by Google will generally demonstrate use of
|
118
|
+
the main client.
|
119
|
+
|
120
|
+
### Why would I want to use a versioned client?
|
121
|
+
|
122
|
+
You can use a versioned client if you are content with a possibly lower-level
|
123
|
+
class interface, you explicitly want to avoid features provided by the main
|
124
|
+
client, or you want to access a specific service version not be covered by the
|
125
|
+
main client. You can identify versioned client gems because the service version
|
126
|
+
is part of the name, e.g. `google-cloud-talent-v4`.
|
127
|
+
|
128
|
+
### What about the google-apis-<name> clients?
|
129
|
+
|
130
|
+
Client library gems with names that begin with `google-apis-` are based on an
|
131
|
+
older code generation technology. They talk to a REST/JSON backend (whereas
|
132
|
+
most modern clients talk to a [gRPC](https://grpc.io/) backend) and they may
|
133
|
+
not offer the same performance, features, and ease of use provided by more
|
134
|
+
modern clients.
|
135
|
+
|
136
|
+
The `google-apis-` clients have wide coverage across Google services, so you
|
137
|
+
might need to use one if there is no modern client available for the service.
|
138
|
+
However, if a modern client is available, we generally recommend it over the
|
139
|
+
older `google-apis-` clients.
|
data/lib/{google/cloud/talent/v4beta1/doc/google/protobuf/empty.rb → google-cloud-talent.rb}
RENAMED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
# Copyright 2020 Google LLC
|
2
4
|
#
|
3
5
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -12,18 +14,6 @@
|
|
12
14
|
# See the License for the specific language governing permissions and
|
13
15
|
# limitations under the License.
|
14
16
|
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
15
18
|
|
16
|
-
|
17
|
-
module Protobuf
|
18
|
-
# A generic empty message that you can re-use to avoid defining duplicated
|
19
|
-
# empty messages in your APIs. A typical example is to use it as the request
|
20
|
-
# or the response type of an API method. For instance:
|
21
|
-
#
|
22
|
-
# service Foo {
|
23
|
-
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
24
|
-
# }
|
25
|
-
#
|
26
|
-
# The JSON representation for `Empty` is empty JSON object `{}`.
|
27
|
-
class Empty; end
|
28
|
-
end
|
29
|
-
end
|
19
|
+
require "google/cloud/talent" unless defined? Google::Cloud::Talent::VERSION
|
data/lib/google/cloud/talent.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
# Copyright 2020 Google LLC
|
2
4
|
#
|
3
5
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -12,474 +14,222 @@
|
|
12
14
|
# See the License for the specific language governing permissions and
|
13
15
|
# limitations under the License.
|
14
16
|
|
15
|
-
|
16
|
-
|
17
|
-
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
# Require this file early so that the version constant gets defined before
|
20
|
+
# requiring "google/cloud". This is because google-cloud-core will load the
|
21
|
+
# entrypoint (gem name) file, which in turn re-requires this file (hence
|
22
|
+
# causing a require cycle) unless the version constant is already defined.
|
23
|
+
require "google/cloud/talent/version"
|
24
|
+
|
25
|
+
require "googleauth"
|
26
|
+
gem "google-cloud-core"
|
27
|
+
require "google/cloud" unless defined? ::Google::Cloud.new
|
28
|
+
require "google/cloud/config"
|
29
|
+
|
30
|
+
# Set the default configuration
|
31
|
+
::Google::Cloud.configure.add_config! :talent do |config|
|
32
|
+
config.add_field! :endpoint, "jobs.googleapis.com", match: ::String
|
33
|
+
config.add_field! :credentials, nil, match: [::String, ::Hash, ::Google::Auth::Credentials]
|
34
|
+
config.add_field! :scope, nil, match: [::Array, ::String]
|
35
|
+
config.add_field! :lib_name, nil, match: ::String
|
36
|
+
config.add_field! :lib_version, nil, match: ::String
|
37
|
+
config.add_field! :interceptors, nil, match: ::Array
|
38
|
+
config.add_field! :timeout, nil, match: ::Numeric
|
39
|
+
config.add_field! :metadata, nil, match: ::Hash
|
40
|
+
config.add_field! :retry_policy, nil, match: [::Hash, ::Proc]
|
41
|
+
config.add_field! :quota_project, nil, match: ::String
|
42
|
+
end
|
18
43
|
|
19
44
|
module Google
|
20
45
|
module Cloud
|
21
|
-
# rubocop:disable LineLength
|
22
|
-
|
23
|
-
##
|
24
|
-
# # Ruby Client for Cloud Talent Solution API
|
25
|
-
#
|
26
|
-
# [Cloud Talent Solution API][Product Documentation]:
|
27
|
-
# Cloud Talent Solution provides the capability to create, read, update, and
|
28
|
-
# delete job postings, as well as search jobs based on keywords and filters.
|
29
|
-
# - [Product Documentation][]
|
30
|
-
#
|
31
|
-
# ## Quick Start
|
32
|
-
# In order to use this library, you first need to go through the following
|
33
|
-
# steps:
|
34
|
-
#
|
35
|
-
# 1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project)
|
36
|
-
# 2. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project)
|
37
|
-
# 3. [Enable the Cloud Talent Solution API.](https://console.cloud.google.com/apis/library/talent.googleapis.com)
|
38
|
-
# 4. [Setup Authentication.](https://googleapis.dev/ruby/google-cloud-talent/latest/file.AUTHENTICATION.html)
|
39
|
-
#
|
40
|
-
# ### Installation
|
41
|
-
# ```
|
42
|
-
# $ gem install google-cloud-talent
|
43
|
-
# ```
|
44
|
-
#
|
45
|
-
# ### Next Steps
|
46
|
-
# - Read the [Cloud Talent Solution API Product documentation][Product Documentation]
|
47
|
-
# to learn more about the product and see How-to Guides.
|
48
|
-
# - View this [repository's main README](https://github.com/googleapis/google-cloud-ruby/blob/master/README.md)
|
49
|
-
# to see the full list of Cloud APIs that we cover.
|
50
|
-
#
|
51
|
-
# [Product Documentation]: https://cloud.google.com/talent
|
52
|
-
#
|
53
|
-
# ## Enabling Logging
|
54
|
-
#
|
55
|
-
# To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
|
56
|
-
# The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/stdlib-2.5.0/libdoc/logger/rdoc/Logger.html) as shown below,
|
57
|
-
# or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
|
58
|
-
# that will write logs to [Stackdriver Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
|
59
|
-
# and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
|
60
|
-
#
|
61
|
-
# Configuring a Ruby stdlib logger:
|
62
|
-
#
|
63
|
-
# ```ruby
|
64
|
-
# require "logger"
|
65
|
-
#
|
66
|
-
# module MyLogger
|
67
|
-
# LOGGER = Logger.new $stderr, level: Logger::WARN
|
68
|
-
# def logger
|
69
|
-
# LOGGER
|
70
|
-
# end
|
71
|
-
# end
|
72
|
-
#
|
73
|
-
# # Define a gRPC module-level logger method before grpc/logconfig.rb loads.
|
74
|
-
# module GRPC
|
75
|
-
# extend MyLogger
|
76
|
-
# end
|
77
|
-
# ```
|
78
|
-
#
|
79
46
|
module Talent
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
# A `GRPC::Core::ChannelCredentials` for the setting up the RPC client. The channel credentials
|
109
|
-
# should already be composed with a `GRPC::Core::CallCredentials` object.
|
110
|
-
# A `Proc` will be used as an updater_proc for the Grpc channel. The proc transforms the
|
111
|
-
# metadata for requests, generally, to give OAuth credentials.
|
112
|
-
# @param scopes [Array<String>]
|
113
|
-
# The OAuth scopes for this service. This parameter is ignored if
|
114
|
-
# an updater_proc is supplied.
|
115
|
-
# @param client_config [Hash]
|
116
|
-
# A Hash for call options for each method. See
|
117
|
-
# Google::Gax#construct_settings for the structure of
|
118
|
-
# this data. Falls back to the default config if not specified
|
119
|
-
# or the specified config is missing data points.
|
120
|
-
# @param timeout [Numeric]
|
121
|
-
# The default timeout, in seconds, for calls made through this client.
|
122
|
-
# @param metadata [Hash]
|
123
|
-
# Default metadata to be sent with each request. This can be overridden on a per call basis.
|
124
|
-
# @param service_address [String]
|
125
|
-
# Override for the service hostname, or `nil` to leave as the default.
|
126
|
-
# @param service_port [Integer]
|
127
|
-
# Override for the service port, or `nil` to leave as the default.
|
128
|
-
# @param exception_transformer [Proc]
|
129
|
-
# An optional proc that intercepts any exceptions raised during an API call to inject
|
130
|
-
# custom error handling.
|
131
|
-
def self.new(*args, version: :v4beta1, **kwargs)
|
132
|
-
unless AVAILABLE_VERSIONS.include?(version.to_s.downcase)
|
133
|
-
raise "The version: #{version} is not available. The available versions " \
|
134
|
-
"are: [#{AVAILABLE_VERSIONS.join(", ")}]"
|
135
|
-
end
|
136
|
-
|
137
|
-
require "#{FILE_DIR}/#{version.to_s.downcase}"
|
138
|
-
version_module = Google::Cloud::Talent
|
139
|
-
.constants
|
140
|
-
.select {|sym| sym.to_s.downcase == version.to_s.downcase}
|
141
|
-
.first
|
142
|
-
Google::Cloud::Talent.const_get(version_module)::TenantService.new(*args, **kwargs)
|
143
|
-
end
|
47
|
+
##
|
48
|
+
# Create a new client object for CompanyService.
|
49
|
+
#
|
50
|
+
# By default, this returns an instance of
|
51
|
+
# [Google::Cloud::Talent::V4::CompanyService::Client](https://googleapis.dev/ruby/google-cloud-talent-v4/latest/Google/Cloud/Talent/V4/CompanyService/Client.html)
|
52
|
+
# for version V4 of the API.
|
53
|
+
# However, you can specify specify a different API version by passing it in the
|
54
|
+
# `version` parameter. If the CompanyService service is
|
55
|
+
# supported by that API version, and the corresponding gem is available, the
|
56
|
+
# appropriate versioned client will be returned.
|
57
|
+
#
|
58
|
+
# ## About CompanyService
|
59
|
+
#
|
60
|
+
# A service that handles company management, including CRUD and enumeration.
|
61
|
+
#
|
62
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
63
|
+
# Defaults to `:v4`.
|
64
|
+
# @return [CompanyService::Client] A client object for the specified version.
|
65
|
+
#
|
66
|
+
def self.company_service version: :v4, &block
|
67
|
+
require "google/cloud/talent/#{version.to_s.downcase}"
|
68
|
+
|
69
|
+
package_name = Google::Cloud::Talent
|
70
|
+
.constants
|
71
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
72
|
+
.first
|
73
|
+
package_module = Google::Cloud::Talent.const_get package_name
|
74
|
+
package_module.const_get(:CompanyService).const_get(:Client).new(&block)
|
144
75
|
end
|
145
76
|
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
# Google::Gax#construct_settings for the structure of
|
175
|
-
# this data. Falls back to the default config if not specified
|
176
|
-
# or the specified config is missing data points.
|
177
|
-
# @param timeout [Numeric]
|
178
|
-
# The default timeout, in seconds, for calls made through this client.
|
179
|
-
# @param metadata [Hash]
|
180
|
-
# Default metadata to be sent with each request. This can be overridden on a per call basis.
|
181
|
-
# @param service_address [String]
|
182
|
-
# Override for the service hostname, or `nil` to leave as the default.
|
183
|
-
# @param service_port [Integer]
|
184
|
-
# Override for the service port, or `nil` to leave as the default.
|
185
|
-
# @param exception_transformer [Proc]
|
186
|
-
# An optional proc that intercepts any exceptions raised during an API call to inject
|
187
|
-
# custom error handling.
|
188
|
-
def self.new(*args, version: :v4beta1, **kwargs)
|
189
|
-
unless AVAILABLE_VERSIONS.include?(version.to_s.downcase)
|
190
|
-
raise "The version: #{version} is not available. The available versions " \
|
191
|
-
"are: [#{AVAILABLE_VERSIONS.join(", ")}]"
|
192
|
-
end
|
193
|
-
|
194
|
-
require "#{FILE_DIR}/#{version.to_s.downcase}"
|
195
|
-
version_module = Google::Cloud::Talent
|
196
|
-
.constants
|
197
|
-
.select {|sym| sym.to_s.downcase == version.to_s.downcase}
|
198
|
-
.first
|
199
|
-
Google::Cloud::Talent.const_get(version_module)::ProfileService.new(*args, **kwargs)
|
200
|
-
end
|
77
|
+
##
|
78
|
+
# Create a new client object for Completion.
|
79
|
+
#
|
80
|
+
# By default, this returns an instance of
|
81
|
+
# [Google::Cloud::Talent::V4::Completion::Client](https://googleapis.dev/ruby/google-cloud-talent-v4/latest/Google/Cloud/Talent/V4/Completion/Client.html)
|
82
|
+
# for version V4 of the API.
|
83
|
+
# However, you can specify specify a different API version by passing it in the
|
84
|
+
# `version` parameter. If the Completion service is
|
85
|
+
# supported by that API version, and the corresponding gem is available, the
|
86
|
+
# appropriate versioned client will be returned.
|
87
|
+
#
|
88
|
+
# ## About Completion
|
89
|
+
#
|
90
|
+
# A service handles auto completion.
|
91
|
+
#
|
92
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
93
|
+
# Defaults to `:v4`.
|
94
|
+
# @return [Completion::Client] A client object for the specified version.
|
95
|
+
#
|
96
|
+
def self.completion version: :v4, &block
|
97
|
+
require "google/cloud/talent/#{version.to_s.downcase}"
|
98
|
+
|
99
|
+
package_name = Google::Cloud::Talent
|
100
|
+
.constants
|
101
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
102
|
+
.first
|
103
|
+
package_module = Google::Cloud::Talent.const_get package_name
|
104
|
+
package_module.const_get(:Completion).const_get(:Client).new(&block)
|
201
105
|
end
|
202
106
|
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
# this data. Falls back to the default config if not specified
|
232
|
-
# or the specified config is missing data points.
|
233
|
-
# @param timeout [Numeric]
|
234
|
-
# The default timeout, in seconds, for calls made through this client.
|
235
|
-
# @param metadata [Hash]
|
236
|
-
# Default metadata to be sent with each request. This can be overridden on a per call basis.
|
237
|
-
# @param service_address [String]
|
238
|
-
# Override for the service hostname, or `nil` to leave as the default.
|
239
|
-
# @param service_port [Integer]
|
240
|
-
# Override for the service port, or `nil` to leave as the default.
|
241
|
-
# @param exception_transformer [Proc]
|
242
|
-
# An optional proc that intercepts any exceptions raised during an API call to inject
|
243
|
-
# custom error handling.
|
244
|
-
def self.new(*args, version: :v4beta1, **kwargs)
|
245
|
-
unless AVAILABLE_VERSIONS.include?(version.to_s.downcase)
|
246
|
-
raise "The version: #{version} is not available. The available versions " \
|
247
|
-
"are: [#{AVAILABLE_VERSIONS.join(", ")}]"
|
248
|
-
end
|
249
|
-
|
250
|
-
require "#{FILE_DIR}/#{version.to_s.downcase}"
|
251
|
-
version_module = Google::Cloud::Talent
|
252
|
-
.constants
|
253
|
-
.select {|sym| sym.to_s.downcase == version.to_s.downcase}
|
254
|
-
.first
|
255
|
-
Google::Cloud::Talent.const_get(version_module)::Event.new(*args, **kwargs)
|
256
|
-
end
|
257
|
-
end
|
258
|
-
|
259
|
-
module ApplicationService
|
260
|
-
##
|
261
|
-
# A service that handles application management, including CRUD and
|
262
|
-
# enumeration.
|
263
|
-
#
|
264
|
-
# @param version [Symbol, String]
|
265
|
-
# The major version of the service to be used. By default :v4beta1
|
266
|
-
# is used.
|
267
|
-
# @overload new(version:, credentials:, scopes:, client_config:, timeout:)
|
268
|
-
# @param credentials [Google::Auth::Credentials, String, Hash, GRPC::Core::Channel, GRPC::Core::ChannelCredentials, Proc]
|
269
|
-
# Provides the means for authenticating requests made by the client. This parameter can
|
270
|
-
# be many types.
|
271
|
-
# A `Google::Auth::Credentials` uses a the properties of its represented keyfile for
|
272
|
-
# authenticating requests made by this client.
|
273
|
-
# A `String` will be treated as the path to the keyfile to be used for the construction of
|
274
|
-
# credentials for this client.
|
275
|
-
# A `Hash` will be treated as the contents of a keyfile to be used for the construction of
|
276
|
-
# credentials for this client.
|
277
|
-
# A `GRPC::Core::Channel` will be used to make calls through.
|
278
|
-
# A `GRPC::Core::ChannelCredentials` for the setting up the RPC client. The channel credentials
|
279
|
-
# should already be composed with a `GRPC::Core::CallCredentials` object.
|
280
|
-
# A `Proc` will be used as an updater_proc for the Grpc channel. The proc transforms the
|
281
|
-
# metadata for requests, generally, to give OAuth credentials.
|
282
|
-
# @param scopes [Array<String>]
|
283
|
-
# The OAuth scopes for this service. This parameter is ignored if
|
284
|
-
# an updater_proc is supplied.
|
285
|
-
# @param client_config [Hash]
|
286
|
-
# A Hash for call options for each method. See
|
287
|
-
# Google::Gax#construct_settings for the structure of
|
288
|
-
# this data. Falls back to the default config if not specified
|
289
|
-
# or the specified config is missing data points.
|
290
|
-
# @param timeout [Numeric]
|
291
|
-
# The default timeout, in seconds, for calls made through this client.
|
292
|
-
# @param metadata [Hash]
|
293
|
-
# Default metadata to be sent with each request. This can be overridden on a per call basis.
|
294
|
-
# @param service_address [String]
|
295
|
-
# Override for the service hostname, or `nil` to leave as the default.
|
296
|
-
# @param service_port [Integer]
|
297
|
-
# Override for the service port, or `nil` to leave as the default.
|
298
|
-
# @param exception_transformer [Proc]
|
299
|
-
# An optional proc that intercepts any exceptions raised during an API call to inject
|
300
|
-
# custom error handling.
|
301
|
-
def self.new(*args, version: :v4beta1, **kwargs)
|
302
|
-
unless AVAILABLE_VERSIONS.include?(version.to_s.downcase)
|
303
|
-
raise "The version: #{version} is not available. The available versions " \
|
304
|
-
"are: [#{AVAILABLE_VERSIONS.join(", ")}]"
|
305
|
-
end
|
306
|
-
|
307
|
-
require "#{FILE_DIR}/#{version.to_s.downcase}"
|
308
|
-
version_module = Google::Cloud::Talent
|
309
|
-
.constants
|
310
|
-
.select {|sym| sym.to_s.downcase == version.to_s.downcase}
|
311
|
-
.first
|
312
|
-
Google::Cloud::Talent.const_get(version_module)::ApplicationService.new(*args, **kwargs)
|
313
|
-
end
|
107
|
+
##
|
108
|
+
# Create a new client object for EventService.
|
109
|
+
#
|
110
|
+
# By default, this returns an instance of
|
111
|
+
# [Google::Cloud::Talent::V4::EventService::Client](https://googleapis.dev/ruby/google-cloud-talent-v4/latest/Google/Cloud/Talent/V4/EventService/Client.html)
|
112
|
+
# for version V4 of the API.
|
113
|
+
# However, you can specify specify a different API version by passing it in the
|
114
|
+
# `version` parameter. If the EventService service is
|
115
|
+
# supported by that API version, and the corresponding gem is available, the
|
116
|
+
# appropriate versioned client will be returned.
|
117
|
+
#
|
118
|
+
# ## About EventService
|
119
|
+
#
|
120
|
+
# A service handles client event report.
|
121
|
+
#
|
122
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
123
|
+
# Defaults to `:v4`.
|
124
|
+
# @return [EventService::Client] A client object for the specified version.
|
125
|
+
#
|
126
|
+
def self.event_service version: :v4, &block
|
127
|
+
require "google/cloud/talent/#{version.to_s.downcase}"
|
128
|
+
|
129
|
+
package_name = Google::Cloud::Talent
|
130
|
+
.constants
|
131
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
132
|
+
.first
|
133
|
+
package_module = Google::Cloud::Talent.const_get package_name
|
134
|
+
package_module.const_get(:EventService).const_get(:Client).new(&block)
|
314
135
|
end
|
315
136
|
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
# this data. Falls back to the default config if not specified
|
345
|
-
# or the specified config is missing data points.
|
346
|
-
# @param timeout [Numeric]
|
347
|
-
# The default timeout, in seconds, for calls made through this client.
|
348
|
-
# @param metadata [Hash]
|
349
|
-
# Default metadata to be sent with each request. This can be overridden on a per call basis.
|
350
|
-
# @param service_address [String]
|
351
|
-
# Override for the service hostname, or `nil` to leave as the default.
|
352
|
-
# @param service_port [Integer]
|
353
|
-
# Override for the service port, or `nil` to leave as the default.
|
354
|
-
# @param exception_transformer [Proc]
|
355
|
-
# An optional proc that intercepts any exceptions raised during an API call to inject
|
356
|
-
# custom error handling.
|
357
|
-
def self.new(*args, version: :v4beta1, **kwargs)
|
358
|
-
unless AVAILABLE_VERSIONS.include?(version.to_s.downcase)
|
359
|
-
raise "The version: #{version} is not available. The available versions " \
|
360
|
-
"are: [#{AVAILABLE_VERSIONS.join(", ")}]"
|
361
|
-
end
|
362
|
-
|
363
|
-
require "#{FILE_DIR}/#{version.to_s.downcase}"
|
364
|
-
version_module = Google::Cloud::Talent
|
365
|
-
.constants
|
366
|
-
.select {|sym| sym.to_s.downcase == version.to_s.downcase}
|
367
|
-
.first
|
368
|
-
Google::Cloud::Talent.const_get(version_module)::CompanyService.new(*args, **kwargs)
|
369
|
-
end
|
137
|
+
##
|
138
|
+
# Create a new client object for JobService.
|
139
|
+
#
|
140
|
+
# By default, this returns an instance of
|
141
|
+
# [Google::Cloud::Talent::V4::JobService::Client](https://googleapis.dev/ruby/google-cloud-talent-v4/latest/Google/Cloud/Talent/V4/JobService/Client.html)
|
142
|
+
# for version V4 of the API.
|
143
|
+
# However, you can specify specify a different API version by passing it in the
|
144
|
+
# `version` parameter. If the JobService service is
|
145
|
+
# supported by that API version, and the corresponding gem is available, the
|
146
|
+
# appropriate versioned client will be returned.
|
147
|
+
#
|
148
|
+
# ## About JobService
|
149
|
+
#
|
150
|
+
# A service handles job management, including job CRUD, enumeration and search.
|
151
|
+
#
|
152
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
153
|
+
# Defaults to `:v4`.
|
154
|
+
# @return [JobService::Client] A client object for the specified version.
|
155
|
+
#
|
156
|
+
def self.job_service version: :v4, &block
|
157
|
+
require "google/cloud/talent/#{version.to_s.downcase}"
|
158
|
+
|
159
|
+
package_name = Google::Cloud::Talent
|
160
|
+
.constants
|
161
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
162
|
+
.first
|
163
|
+
package_module = Google::Cloud::Talent.const_get package_name
|
164
|
+
package_module.const_get(:JobService).const_get(:Client).new(&block)
|
370
165
|
end
|
371
166
|
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
|
397
|
-
|
398
|
-
|
399
|
-
|
400
|
-
# this data. Falls back to the default config if not specified
|
401
|
-
# or the specified config is missing data points.
|
402
|
-
# @param timeout [Numeric]
|
403
|
-
# The default timeout, in seconds, for calls made through this client.
|
404
|
-
# @param metadata [Hash]
|
405
|
-
# Default metadata to be sent with each request. This can be overridden on a per call basis.
|
406
|
-
# @param service_address [String]
|
407
|
-
# Override for the service hostname, or `nil` to leave as the default.
|
408
|
-
# @param service_port [Integer]
|
409
|
-
# Override for the service port, or `nil` to leave as the default.
|
410
|
-
# @param exception_transformer [Proc]
|
411
|
-
# An optional proc that intercepts any exceptions raised during an API call to inject
|
412
|
-
# custom error handling.
|
413
|
-
def self.new(*args, version: :v4beta1, **kwargs)
|
414
|
-
unless AVAILABLE_VERSIONS.include?(version.to_s.downcase)
|
415
|
-
raise "The version: #{version} is not available. The available versions " \
|
416
|
-
"are: [#{AVAILABLE_VERSIONS.join(", ")}]"
|
417
|
-
end
|
418
|
-
|
419
|
-
require "#{FILE_DIR}/#{version.to_s.downcase}"
|
420
|
-
version_module = Google::Cloud::Talent
|
421
|
-
.constants
|
422
|
-
.select {|sym| sym.to_s.downcase == version.to_s.downcase}
|
423
|
-
.first
|
424
|
-
Google::Cloud::Talent.const_get(version_module)::JobService.new(*args, **kwargs)
|
425
|
-
end
|
167
|
+
##
|
168
|
+
# Create a new client object for TenantService.
|
169
|
+
#
|
170
|
+
# By default, this returns an instance of
|
171
|
+
# [Google::Cloud::Talent::V4::TenantService::Client](https://googleapis.dev/ruby/google-cloud-talent-v4/latest/Google/Cloud/Talent/V4/TenantService/Client.html)
|
172
|
+
# for version V4 of the API.
|
173
|
+
# However, you can specify specify a different API version by passing it in the
|
174
|
+
# `version` parameter. If the TenantService service is
|
175
|
+
# supported by that API version, and the corresponding gem is available, the
|
176
|
+
# appropriate versioned client will be returned.
|
177
|
+
#
|
178
|
+
# ## About TenantService
|
179
|
+
#
|
180
|
+
# A service that handles tenant management, including CRUD and enumeration.
|
181
|
+
#
|
182
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
183
|
+
# Defaults to `:v4`.
|
184
|
+
# @return [TenantService::Client] A client object for the specified version.
|
185
|
+
#
|
186
|
+
def self.tenant_service version: :v4, &block
|
187
|
+
require "google/cloud/talent/#{version.to_s.downcase}"
|
188
|
+
|
189
|
+
package_name = Google::Cloud::Talent
|
190
|
+
.constants
|
191
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
192
|
+
.first
|
193
|
+
package_module = Google::Cloud::Talent.const_get package_name
|
194
|
+
package_module.const_get(:TenantService).const_get(:Client).new(&block)
|
426
195
|
end
|
427
196
|
|
428
|
-
|
429
|
-
|
430
|
-
|
431
|
-
|
432
|
-
|
433
|
-
|
434
|
-
|
435
|
-
|
436
|
-
|
437
|
-
|
438
|
-
|
439
|
-
|
440
|
-
|
441
|
-
|
442
|
-
|
443
|
-
|
444
|
-
|
445
|
-
|
446
|
-
|
447
|
-
|
448
|
-
|
449
|
-
|
450
|
-
|
451
|
-
|
452
|
-
|
453
|
-
|
454
|
-
|
455
|
-
|
456
|
-
|
457
|
-
|
458
|
-
|
459
|
-
|
460
|
-
# @param metadata [Hash]
|
461
|
-
# Default metadata to be sent with each request. This can be overridden on a per call basis.
|
462
|
-
# @param service_address [String]
|
463
|
-
# Override for the service hostname, or `nil` to leave as the default.
|
464
|
-
# @param service_port [Integer]
|
465
|
-
# Override for the service port, or `nil` to leave as the default.
|
466
|
-
# @param exception_transformer [Proc]
|
467
|
-
# An optional proc that intercepts any exceptions raised during an API call to inject
|
468
|
-
# custom error handling.
|
469
|
-
def self.new(*args, version: :v4beta1, **kwargs)
|
470
|
-
unless AVAILABLE_VERSIONS.include?(version.to_s.downcase)
|
471
|
-
raise "The version: #{version} is not available. The available versions " \
|
472
|
-
"are: [#{AVAILABLE_VERSIONS.join(", ")}]"
|
473
|
-
end
|
474
|
-
|
475
|
-
require "#{FILE_DIR}/#{version.to_s.downcase}"
|
476
|
-
version_module = Google::Cloud::Talent
|
477
|
-
.constants
|
478
|
-
.select {|sym| sym.to_s.downcase == version.to_s.downcase}
|
479
|
-
.first
|
480
|
-
Google::Cloud::Talent.const_get(version_module)::Completion.new(*args, **kwargs)
|
481
|
-
end
|
197
|
+
##
|
198
|
+
# Configure the google-cloud-talent library.
|
199
|
+
#
|
200
|
+
# The following configuration parameters are supported:
|
201
|
+
#
|
202
|
+
# * `credentials` (*type:* `String, Hash, Google::Auth::Credentials`) -
|
203
|
+
# The path to the keyfile as a String, the contents of the keyfile as a
|
204
|
+
# Hash, or a Google::Auth::Credentials object.
|
205
|
+
# * `lib_name` (*type:* `String`) -
|
206
|
+
# The library name as recorded in instrumentation and logging.
|
207
|
+
# * `lib_version` (*type:* `String`) -
|
208
|
+
# The library version as recorded in instrumentation and logging.
|
209
|
+
# * `interceptors` (*type:* `Array<GRPC::ClientInterceptor>`) -
|
210
|
+
# An array of interceptors that are run before calls are executed.
|
211
|
+
# * `timeout` (*type:* `Numeric`) -
|
212
|
+
# Default timeout in seconds.
|
213
|
+
# * `metadata` (*type:* `Hash{Symbol=>String}`) -
|
214
|
+
# Additional gRPC headers to be sent with the call.
|
215
|
+
# * `retry_policy` (*type:* `Hash`) -
|
216
|
+
# The retry policy. The value is a hash with the following keys:
|
217
|
+
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
218
|
+
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
219
|
+
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
220
|
+
# * `:retry_codes` (*type:* `Array<String>`) -
|
221
|
+
# The error codes that should trigger a retry.
|
222
|
+
#
|
223
|
+
# @return [::Google::Cloud::Config] The default configuration used by this library
|
224
|
+
#
|
225
|
+
def self.configure
|
226
|
+
yield ::Google::Cloud.configure.talent if block_given?
|
227
|
+
|
228
|
+
::Google::Cloud.configure.talent
|
482
229
|
end
|
483
230
|
end
|
484
231
|
end
|
485
232
|
end
|
233
|
+
|
234
|
+
helper_path = ::File.join __dir__, "talent", "helpers.rb"
|
235
|
+
require "google/cloud/talent/helpers" if ::File.file? helper_path
|