google-cloud-talent-v4beta1 0.4.4 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardopts +1 -1
- data/AUTHENTICATION.md +13 -31
- data/README.md +9 -4
- data/lib/google/cloud/talent/v4beta1/batch_pb.rb +0 -1
- data/lib/google/cloud/talent/v4beta1/common_pb.rb +3 -65
- data/lib/google/cloud/talent/v4beta1/company_pb.rb +2 -2
- data/lib/google/cloud/talent/v4beta1/company_service/client.rb +81 -0
- data/lib/google/cloud/talent/v4beta1/company_service_pb.rb +2 -1
- data/lib/google/cloud/talent/v4beta1/completion/client.rb +15 -0
- data/lib/google/cloud/talent/v4beta1/completion_service_pb.rb +3 -2
- data/lib/google/cloud/talent/v4beta1/event_pb.rb +2 -16
- data/lib/google/cloud/talent/v4beta1/event_service/client.rb +15 -0
- data/lib/google/cloud/talent/v4beta1/event_service_pb.rb +2 -1
- data/lib/google/cloud/talent/v4beta1/filters_pb.rb +3 -102
- data/lib/google/cloud/talent/v4beta1/histogram_pb.rb +0 -1
- data/lib/google/cloud/talent/v4beta1/job_pb.rb +2 -3
- data/lib/google/cloud/talent/v4beta1/job_service/client.rb +219 -23
- data/lib/google/cloud/talent/v4beta1/job_service/operations.rb +95 -0
- data/lib/google/cloud/talent/v4beta1/job_service_pb.rb +10 -2
- data/lib/google/cloud/talent/v4beta1/tenant_pb.rb +2 -3
- data/lib/google/cloud/talent/v4beta1/tenant_service/client.rb +81 -0
- data/lib/google/cloud/talent/v4beta1/tenant_service_pb.rb +2 -1
- data/lib/google/cloud/talent/v4beta1/version.rb +1 -1
- data/lib/google/cloud/talent/v4beta1.rb +3 -3
- data/proto_docs/google/api/resource.rb +10 -71
- data/proto_docs/google/cloud/talent/v4beta1/common.rb +10 -227
- data/proto_docs/google/cloud/talent/v4beta1/event.rb +1 -60
- data/proto_docs/google/cloud/talent/v4beta1/filters.rb +40 -482
- data/proto_docs/google/cloud/talent/v4beta1/histogram.rb +1 -1
- data/proto_docs/google/cloud/talent/v4beta1/job.rb +1 -1
- data/proto_docs/google/cloud/talent/v4beta1/job_service.rb +64 -16
- data/proto_docs/google/cloud/talent/v4beta1/tenant.rb +1 -1
- data/proto_docs/google/protobuf/any.rb +3 -3
- data/proto_docs/google/type/timeofday.rb +1 -1
- metadata +3 -22
- data/lib/google/cloud/talent/v4beta1/application_pb.rb +0 -64
- data/lib/google/cloud/talent/v4beta1/application_service/client.rb +0 -732
- data/lib/google/cloud/talent/v4beta1/application_service/credentials.rb +0 -52
- data/lib/google/cloud/talent/v4beta1/application_service/paths.rb +0 -155
- data/lib/google/cloud/talent/v4beta1/application_service.rb +0 -50
- data/lib/google/cloud/talent/v4beta1/application_service_pb.rb +0 -56
- data/lib/google/cloud/talent/v4beta1/application_service_services_pb.rb +0 -54
- data/lib/google/cloud/talent/v4beta1/profile_pb.rb +0 -214
- data/lib/google/cloud/talent/v4beta1/profile_service/client.rb +0 -1011
- data/lib/google/cloud/talent/v4beta1/profile_service/credentials.rb +0 -52
- data/lib/google/cloud/talent/v4beta1/profile_service/paths.rb +0 -69
- data/lib/google/cloud/talent/v4beta1/profile_service.rb +0 -50
- data/lib/google/cloud/talent/v4beta1/profile_service_pb.rb +0 -92
- data/lib/google/cloud/talent/v4beta1/profile_service_services_pb.rb +0 -63
- data/proto_docs/google/cloud/talent/v4beta1/application.rb +0 -169
- data/proto_docs/google/cloud/talent/v4beta1/application_service.rb +0 -122
- data/proto_docs/google/cloud/talent/v4beta1/profile.rb +0 -811
- data/proto_docs/google/cloud/talent/v4beta1/profile_service.rb +0 -392
- data/proto_docs/google/type/date.rb +0 -53
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7fd8b60946c412f3db6f1f1caaa8d0977f309af66c995711e805cf81dfa9e2b6
|
4
|
+
data.tar.gz: e4e97c622771e0d07d23ced2262c400e82630d6ef57f88f6476924fa577076c2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f9deb9418e8c3d5cd28752e65e4bd93495962d338df09b0dbc49cd6a83782129b5c604006923ac4eee681cd496224ba92d6df5eeae7b0c98dfaf3e614d5e660d
|
7
|
+
data.tar.gz: b3123b615224d3239c00fdd0772deba3b66e8a1e6b380c90d989fb6cb767d73979aea6116d9979523ffb06cdb87e0211a61fe623c64c10e2fb3a61c42b4288fe
|
data/.yardopts
CHANGED
data/AUTHENTICATION.md
CHANGED
@@ -27,7 +27,7 @@ export TALENT_CREDENTIALS=path/to/keyfile.json
|
|
27
27
|
```ruby
|
28
28
|
require "google/cloud/talent/v4beta1"
|
29
29
|
|
30
|
-
client = ::Google::Cloud::Talent::V4beta1::
|
30
|
+
client = ::Google::Cloud::Talent::V4beta1::CompanyService::Client.new
|
31
31
|
```
|
32
32
|
|
33
33
|
## Credential Lookup
|
@@ -64,7 +64,7 @@ containers where writing files is difficult or not encouraged.
|
|
64
64
|
|
65
65
|
The environment variables that google-cloud-talent-v4beta1
|
66
66
|
checks for credentials are configured on the service Credentials class (such as
|
67
|
-
{::Google::Cloud::Talent::V4beta1::
|
67
|
+
{::Google::Cloud::Talent::V4beta1::CompanyService::Credentials}):
|
68
68
|
|
69
69
|
* `TALENT_CREDENTIALS` - Path to JSON file, or JSON contents
|
70
70
|
* `TALENT_KEYFILE` - Path to JSON file, or JSON contents
|
@@ -77,7 +77,7 @@ require "google/cloud/talent/v4beta1"
|
|
77
77
|
|
78
78
|
ENV["TALENT_CREDENTIALS"] = "path/to/keyfile.json"
|
79
79
|
|
80
|
-
client = ::Google::Cloud::Talent::V4beta1::
|
80
|
+
client = ::Google::Cloud::Talent::V4beta1::CompanyService::Client.new
|
81
81
|
```
|
82
82
|
|
83
83
|
### Configuration
|
@@ -88,7 +88,7 @@ it in an environment variable. Either on an individual client initialization:
|
|
88
88
|
```ruby
|
89
89
|
require "google/cloud/talent/v4beta1"
|
90
90
|
|
91
|
-
client = ::Google::Cloud::Talent::V4beta1::
|
91
|
+
client = ::Google::Cloud::Talent::V4beta1::CompanyService::Client.new do |config|
|
92
92
|
config.credentials = "path/to/keyfile.json"
|
93
93
|
end
|
94
94
|
```
|
@@ -98,11 +98,11 @@ Or globally for all clients:
|
|
98
98
|
```ruby
|
99
99
|
require "google/cloud/talent/v4beta1"
|
100
100
|
|
101
|
-
::Google::Cloud::Talent::V4beta1::
|
101
|
+
::Google::Cloud::Talent::V4beta1::CompanyService::Client.configure do |config|
|
102
102
|
config.credentials = "path/to/keyfile.json"
|
103
103
|
end
|
104
104
|
|
105
|
-
client = ::Google::Cloud::Talent::V4beta1::
|
105
|
+
client = ::Google::Cloud::Talent::V4beta1::CompanyService::Client.new
|
106
106
|
```
|
107
107
|
|
108
108
|
### Cloud SDK
|
@@ -120,15 +120,6 @@ To configure your system for this, simply:
|
|
120
120
|
**NOTE:** This is _not_ recommended for running in production. The Cloud SDK
|
121
121
|
*should* only be used during development.
|
122
122
|
|
123
|
-
[gce-how-to]: https://cloud.google.com/compute/docs/authentication#using
|
124
|
-
[dev-console]: https://console.cloud.google.com/project
|
125
|
-
|
126
|
-
[enable-apis]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/enable-apis.png
|
127
|
-
|
128
|
-
[create-new-service-account]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/create-new-service-account.png
|
129
|
-
[create-new-service-account-existing-keys]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/create-new-service-account-existing-keys.png
|
130
|
-
[reuse-service-account]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/reuse-service-account.png
|
131
|
-
|
132
123
|
## Creating a Service Account
|
133
124
|
|
134
125
|
Google Cloud requires **Service Account Credentials** to
|
@@ -139,31 +130,22 @@ If you are not running this client within
|
|
139
130
|
[Google Cloud Platform environments](#google-cloud-platform-environments), you
|
140
131
|
need a Google Developers service account.
|
141
132
|
|
142
|
-
1. Visit the [Google
|
133
|
+
1. Visit the [Google Cloud Console](https://console.cloud.google.com/project).
|
143
134
|
2. Create a new project or click on an existing project.
|
144
|
-
3. Activate the
|
135
|
+
3. Activate the menu in the upper left and select **APIs & Services**. From
|
145
136
|
here, you will enable the APIs that your application requires.
|
146
137
|
|
147
|
-
![Enable the APIs that your application requires][enable-apis]
|
148
|
-
|
149
138
|
*Note: You may need to enable billing in order to use these services.*
|
150
139
|
|
151
140
|
4. Select **Credentials** from the side navigation.
|
152
141
|
|
153
|
-
|
154
|
-
|
155
|
-
![Create a new service account][create-new-service-account]
|
156
|
-
|
157
|
-
![Create a new service account With Existing Keys][create-new-service-account-existing-keys]
|
158
|
-
|
159
|
-
Find the "Add credentials" drop down and select "Service account" to be
|
160
|
-
guided through downloading a new JSON key file.
|
142
|
+
Find the "Create credentials" drop down near the top of the page, and select
|
143
|
+
"Service account" to be guided through downloading a new JSON key file.
|
161
144
|
|
162
145
|
If you want to re-use an existing service account, you can easily generate a
|
163
|
-
new key file. Just select the account you wish to re-use,
|
164
|
-
|
165
|
-
|
166
|
-
![Re-use an existing service account][reuse-service-account]
|
146
|
+
new key file. Just select the account you wish to re-use, click the pencil
|
147
|
+
tool on the right side to edit the service account, select the **Keys** tab,
|
148
|
+
and then select **Add Key**.
|
167
149
|
|
168
150
|
The key file you download will be used by this library to authenticate API
|
169
151
|
requests and should be stored in a secure location.
|
data/README.md
CHANGED
@@ -32,12 +32,12 @@ In order to use this library, you first need to go through the following steps:
|
|
32
32
|
```ruby
|
33
33
|
require "google/cloud/talent/v4beta1"
|
34
34
|
|
35
|
-
client = ::Google::Cloud::Talent::V4beta1::
|
36
|
-
request = ::Google::Cloud::Talent::V4beta1::
|
37
|
-
response = client.
|
35
|
+
client = ::Google::Cloud::Talent::V4beta1::CompanyService::Client.new
|
36
|
+
request = ::Google::Cloud::Talent::V4beta1::CreateCompanyRequest.new # (request fields as keyword arguments...)
|
37
|
+
response = client.create_company request
|
38
38
|
```
|
39
39
|
|
40
|
-
View the [Client Library Documentation](https://
|
40
|
+
View the [Client Library Documentation](https://cloud.google.com/ruby/docs/reference/google-cloud-talent-v4beta1/latest)
|
41
41
|
for class and method documentation.
|
42
42
|
|
43
43
|
See also the [Product Documentation](https://cloud.google.com/solutions/talent-solution)
|
@@ -69,6 +69,11 @@ module GRPC
|
|
69
69
|
end
|
70
70
|
```
|
71
71
|
|
72
|
+
|
73
|
+
## Google Cloud Samples
|
74
|
+
|
75
|
+
To browse ready to use code samples check [Google Cloud Samples](https://cloud.google.com/docs/samples).
|
76
|
+
|
72
77
|
## Supported Ruby Versions
|
73
78
|
|
74
79
|
This library is supported on Ruby 2.5+.
|
@@ -1,16 +1,14 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/talent/v4beta1/common.proto
|
3
3
|
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
4
6
|
require 'google/api/field_behavior_pb'
|
5
7
|
require 'google/protobuf/timestamp_pb'
|
6
8
|
require 'google/protobuf/wrappers_pb'
|
7
|
-
require 'google/type/date_pb'
|
8
9
|
require 'google/type/latlng_pb'
|
9
10
|
require 'google/type/money_pb'
|
10
11
|
require 'google/type/postal_address_pb'
|
11
|
-
require 'google/type/timeofday_pb'
|
12
|
-
require 'google/api/annotations_pb'
|
13
|
-
require 'google/protobuf'
|
14
12
|
|
15
13
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
16
14
|
add_file("google/cloud/talent/v4beta1/common.proto", :syntax => :proto3) do
|
@@ -64,6 +62,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
64
62
|
repeated :string_values, :string, 1
|
65
63
|
repeated :long_values, :int64, 2
|
66
64
|
optional :filterable, :bool, 3
|
65
|
+
optional :keyword_searchable, :bool, 4
|
67
66
|
end
|
68
67
|
add_message "google.cloud.talent.v4beta1.SpellingCorrection" do
|
69
68
|
optional :corrected, :bool, 1
|
@@ -110,30 +109,6 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
110
109
|
value :ONE_TIME, 6
|
111
110
|
value :OTHER_COMPENSATION_UNIT, 7
|
112
111
|
end
|
113
|
-
add_message "google.cloud.talent.v4beta1.Certification" do
|
114
|
-
optional :display_name, :string, 1
|
115
|
-
optional :acquire_date, :message, 2, "google.type.Date"
|
116
|
-
optional :expire_date, :message, 3, "google.type.Date"
|
117
|
-
optional :authority, :string, 4
|
118
|
-
optional :description, :string, 5
|
119
|
-
end
|
120
|
-
add_message "google.cloud.talent.v4beta1.Skill" do
|
121
|
-
optional :display_name, :string, 1
|
122
|
-
optional :last_used_date, :message, 2, "google.type.Date"
|
123
|
-
optional :level, :enum, 3, "google.cloud.talent.v4beta1.SkillProficiencyLevel"
|
124
|
-
optional :context, :string, 4
|
125
|
-
optional :skill_name_snippet, :string, 5
|
126
|
-
end
|
127
|
-
add_message "google.cloud.talent.v4beta1.Interview" do
|
128
|
-
optional :rating, :message, 6, "google.cloud.talent.v4beta1.Rating"
|
129
|
-
optional :outcome, :enum, 7, "google.cloud.talent.v4beta1.Outcome"
|
130
|
-
end
|
131
|
-
add_message "google.cloud.talent.v4beta1.Rating" do
|
132
|
-
optional :overall, :double, 1
|
133
|
-
optional :min, :double, 2
|
134
|
-
optional :max, :double, 3
|
135
|
-
optional :interval, :double, 4
|
136
|
-
end
|
137
112
|
add_message "google.cloud.talent.v4beta1.BatchOperationMetadata" do
|
138
113
|
optional :state, :enum, 1, "google.cloud.talent.v4beta1.BatchOperationMetadata.State"
|
139
114
|
optional :state_description, :string, 2
|
@@ -254,12 +229,6 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
254
229
|
value :SHARED_WITH_GOOGLE, 2
|
255
230
|
value :SHARED_WITH_PUBLIC, 3
|
256
231
|
end
|
257
|
-
add_enum "google.cloud.talent.v4beta1.ContactInfoUsage" do
|
258
|
-
value :CONTACT_INFO_USAGE_UNSPECIFIED, 0
|
259
|
-
value :PERSONAL, 1
|
260
|
-
value :WORK, 2
|
261
|
-
value :SCHOOL, 3
|
262
|
-
end
|
263
232
|
add_enum "google.cloud.talent.v4beta1.HtmlSanitization" do
|
264
233
|
value :HTML_SANITIZATION_UNSPECIFIED, 0
|
265
234
|
value :HTML_SANITIZATION_DISABLED, 1
|
@@ -272,29 +241,6 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
272
241
|
value :WALKING, 3
|
273
242
|
value :CYCLING, 4
|
274
243
|
end
|
275
|
-
add_enum "google.cloud.talent.v4beta1.SkillProficiencyLevel" do
|
276
|
-
value :SKILL_PROFICIENCY_LEVEL_UNSPECIFIED, 0
|
277
|
-
value :UNSKILLED, 6
|
278
|
-
value :FUNDAMENTAL_AWARENESS, 1
|
279
|
-
value :NOVICE, 2
|
280
|
-
value :INTERMEDIATE, 3
|
281
|
-
value :ADVANCED, 4
|
282
|
-
value :EXPERT, 5
|
283
|
-
end
|
284
|
-
add_enum "google.cloud.talent.v4beta1.Outcome" do
|
285
|
-
value :OUTCOME_UNSPECIFIED, 0
|
286
|
-
value :POSITIVE, 1
|
287
|
-
value :NEUTRAL, 2
|
288
|
-
value :NEGATIVE, 3
|
289
|
-
value :OUTCOME_NOT_AVAILABLE, 4
|
290
|
-
end
|
291
|
-
add_enum "google.cloud.talent.v4beta1.AvailabilitySignalType" do
|
292
|
-
value :AVAILABILITY_SIGNAL_TYPE_UNSPECIFIED, 0
|
293
|
-
value :JOB_APPLICATION, 1
|
294
|
-
value :RESUME_UPDATE, 2
|
295
|
-
value :CANDIDATE_UPDATE, 3
|
296
|
-
value :CLIENT_SUBMISSION, 4
|
297
|
-
end
|
298
244
|
end
|
299
245
|
end
|
300
246
|
|
@@ -316,10 +262,6 @@ module Google
|
|
316
262
|
CompensationInfo::CompensationRange = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4beta1.CompensationInfo.CompensationRange").msgclass
|
317
263
|
CompensationInfo::CompensationType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4beta1.CompensationInfo.CompensationType").enummodule
|
318
264
|
CompensationInfo::CompensationUnit = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit").enummodule
|
319
|
-
Certification = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4beta1.Certification").msgclass
|
320
|
-
Skill = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4beta1.Skill").msgclass
|
321
|
-
Interview = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4beta1.Interview").msgclass
|
322
|
-
Rating = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4beta1.Rating").msgclass
|
323
265
|
BatchOperationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4beta1.BatchOperationMetadata").msgclass
|
324
266
|
BatchOperationMetadata::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4beta1.BatchOperationMetadata.State").enummodule
|
325
267
|
CompanySize = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4beta1.CompanySize").enummodule
|
@@ -330,12 +272,8 @@ module Google
|
|
330
272
|
JobCategory = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4beta1.JobCategory").enummodule
|
331
273
|
PostingRegion = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4beta1.PostingRegion").enummodule
|
332
274
|
Visibility = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4beta1.Visibility").enummodule
|
333
|
-
ContactInfoUsage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4beta1.ContactInfoUsage").enummodule
|
334
275
|
HtmlSanitization = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4beta1.HtmlSanitization").enummodule
|
335
276
|
CommuteMethod = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4beta1.CommuteMethod").enummodule
|
336
|
-
SkillProficiencyLevel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4beta1.SkillProficiencyLevel").enummodule
|
337
|
-
Outcome = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4beta1.Outcome").enummodule
|
338
|
-
AvailabilitySignalType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4beta1.AvailabilitySignalType").enummodule
|
339
277
|
end
|
340
278
|
end
|
341
279
|
end
|
@@ -1,11 +1,11 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/talent/v4beta1/company.proto
|
3
3
|
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
4
6
|
require 'google/api/field_behavior_pb'
|
5
7
|
require 'google/api/resource_pb'
|
6
8
|
require 'google/cloud/talent/v4beta1/common_pb'
|
7
|
-
require 'google/api/annotations_pb'
|
8
|
-
require 'google/protobuf'
|
9
9
|
|
10
10
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
11
11
|
add_file("google/cloud/talent/v4beta1/company.proto", :syntax => :proto3) do
|
@@ -198,6 +198,21 @@ module Google
|
|
198
198
|
#
|
199
199
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
200
200
|
#
|
201
|
+
# @example Basic example
|
202
|
+
# require "google/cloud/talent/v4beta1"
|
203
|
+
#
|
204
|
+
# # Create a client object. The client can be reused for multiple calls.
|
205
|
+
# client = Google::Cloud::Talent::V4beta1::CompanyService::Client.new
|
206
|
+
#
|
207
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
208
|
+
# request = Google::Cloud::Talent::V4beta1::CreateCompanyRequest.new
|
209
|
+
#
|
210
|
+
# # Call the create_company method.
|
211
|
+
# result = client.create_company request
|
212
|
+
#
|
213
|
+
# # The returned object is of type Google::Cloud::Talent::V4beta1::Company.
|
214
|
+
# p result
|
215
|
+
#
|
201
216
|
def create_company request, options = nil
|
202
217
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
203
218
|
|
@@ -275,6 +290,21 @@ module Google
|
|
275
290
|
#
|
276
291
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
277
292
|
#
|
293
|
+
# @example Basic example
|
294
|
+
# require "google/cloud/talent/v4beta1"
|
295
|
+
#
|
296
|
+
# # Create a client object. The client can be reused for multiple calls.
|
297
|
+
# client = Google::Cloud::Talent::V4beta1::CompanyService::Client.new
|
298
|
+
#
|
299
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
300
|
+
# request = Google::Cloud::Talent::V4beta1::GetCompanyRequest.new
|
301
|
+
#
|
302
|
+
# # Call the get_company method.
|
303
|
+
# result = client.get_company request
|
304
|
+
#
|
305
|
+
# # The returned object is of type Google::Cloud::Talent::V4beta1::Company.
|
306
|
+
# p result
|
307
|
+
#
|
278
308
|
def get_company request, options = nil
|
279
309
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
280
310
|
|
@@ -353,6 +383,21 @@ module Google
|
|
353
383
|
#
|
354
384
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
355
385
|
#
|
386
|
+
# @example Basic example
|
387
|
+
# require "google/cloud/talent/v4beta1"
|
388
|
+
#
|
389
|
+
# # Create a client object. The client can be reused for multiple calls.
|
390
|
+
# client = Google::Cloud::Talent::V4beta1::CompanyService::Client.new
|
391
|
+
#
|
392
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
393
|
+
# request = Google::Cloud::Talent::V4beta1::UpdateCompanyRequest.new
|
394
|
+
#
|
395
|
+
# # Call the update_company method.
|
396
|
+
# result = client.update_company request
|
397
|
+
#
|
398
|
+
# # The returned object is of type Google::Cloud::Talent::V4beta1::Company.
|
399
|
+
# p result
|
400
|
+
#
|
356
401
|
def update_company request, options = nil
|
357
402
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
358
403
|
|
@@ -431,6 +476,21 @@ module Google
|
|
431
476
|
#
|
432
477
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
433
478
|
#
|
479
|
+
# @example Basic example
|
480
|
+
# require "google/cloud/talent/v4beta1"
|
481
|
+
#
|
482
|
+
# # Create a client object. The client can be reused for multiple calls.
|
483
|
+
# client = Google::Cloud::Talent::V4beta1::CompanyService::Client.new
|
484
|
+
#
|
485
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
486
|
+
# request = Google::Cloud::Talent::V4beta1::DeleteCompanyRequest.new
|
487
|
+
#
|
488
|
+
# # Call the delete_company method.
|
489
|
+
# result = client.delete_company request
|
490
|
+
#
|
491
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
492
|
+
# p result
|
493
|
+
#
|
434
494
|
def delete_company request, options = nil
|
435
495
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
436
496
|
|
@@ -519,6 +579,27 @@ module Google
|
|
519
579
|
#
|
520
580
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
521
581
|
#
|
582
|
+
# @example Basic example
|
583
|
+
# require "google/cloud/talent/v4beta1"
|
584
|
+
#
|
585
|
+
# # Create a client object. The client can be reused for multiple calls.
|
586
|
+
# client = Google::Cloud::Talent::V4beta1::CompanyService::Client.new
|
587
|
+
#
|
588
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
589
|
+
# request = Google::Cloud::Talent::V4beta1::ListCompaniesRequest.new
|
590
|
+
#
|
591
|
+
# # Call the list_companies method.
|
592
|
+
# result = client.list_companies request
|
593
|
+
#
|
594
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
595
|
+
# # iterate over all elements by calling #each, and the enumerable
|
596
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
597
|
+
# # methods are also available for managing paging directly.
|
598
|
+
# result.each do |response|
|
599
|
+
# # Each element is of type ::Google::Cloud::Talent::V4beta1::Company.
|
600
|
+
# p response
|
601
|
+
# end
|
602
|
+
#
|
522
603
|
def list_companies request, options = nil
|
523
604
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
524
605
|
|
@@ -1,6 +1,8 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/talent/v4beta1/company_service.proto
|
3
3
|
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
4
6
|
require 'google/api/annotations_pb'
|
5
7
|
require 'google/api/client_pb'
|
6
8
|
require 'google/api/field_behavior_pb'
|
@@ -9,7 +11,6 @@ require 'google/cloud/talent/v4beta1/common_pb'
|
|
9
11
|
require 'google/cloud/talent/v4beta1/company_pb'
|
10
12
|
require 'google/protobuf/empty_pb'
|
11
13
|
require 'google/protobuf/field_mask_pb'
|
12
|
-
require 'google/protobuf'
|
13
14
|
|
14
15
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
15
16
|
add_file("google/cloud/talent/v4beta1/company_service.proto", :syntax => :proto3) do
|
@@ -213,6 +213,21 @@ module Google
|
|
213
213
|
#
|
214
214
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
215
215
|
#
|
216
|
+
# @example Basic example
|
217
|
+
# require "google/cloud/talent/v4beta1"
|
218
|
+
#
|
219
|
+
# # Create a client object. The client can be reused for multiple calls.
|
220
|
+
# client = Google::Cloud::Talent::V4beta1::Completion::Client.new
|
221
|
+
#
|
222
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
223
|
+
# request = Google::Cloud::Talent::V4beta1::CompleteQueryRequest.new
|
224
|
+
#
|
225
|
+
# # Call the complete_query method.
|
226
|
+
# result = client.complete_query request
|
227
|
+
#
|
228
|
+
# # The returned object is of type Google::Cloud::Talent::V4beta1::CompleteQueryResponse.
|
229
|
+
# p result
|
230
|
+
#
|
216
231
|
def complete_query request, options = nil
|
217
232
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
218
233
|
|
@@ -1,12 +1,13 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/talent/v4beta1/completion_service.proto
|
3
3
|
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
4
6
|
require 'google/api/annotations_pb'
|
7
|
+
require 'google/api/client_pb'
|
5
8
|
require 'google/api/field_behavior_pb'
|
6
9
|
require 'google/api/resource_pb'
|
7
10
|
require 'google/cloud/talent/v4beta1/common_pb'
|
8
|
-
require 'google/api/client_pb'
|
9
|
-
require 'google/protobuf'
|
10
11
|
|
11
12
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
12
13
|
add_file("google/cloud/talent/v4beta1/completion_service.proto", :syntax => :proto3) do
|
@@ -1,10 +1,10 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/talent/v4beta1/event.proto
|
3
3
|
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
4
6
|
require 'google/api/field_behavior_pb'
|
5
7
|
require 'google/protobuf/timestamp_pb'
|
6
|
-
require 'google/api/annotations_pb'
|
7
|
-
require 'google/protobuf'
|
8
8
|
|
9
9
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
10
10
|
add_file("google/cloud/talent/v4beta1/event.proto", :syntax => :proto3) do
|
@@ -15,7 +15,6 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
15
15
|
optional :event_notes, :string, 9
|
16
16
|
oneof :event do
|
17
17
|
optional :job_event, :message, 5, "google.cloud.talent.v4beta1.JobEvent"
|
18
|
-
optional :profile_event, :message, 6, "google.cloud.talent.v4beta1.ProfileEvent"
|
19
18
|
end
|
20
19
|
end
|
21
20
|
add_message "google.cloud.talent.v4beta1.JobEvent" do
|
@@ -41,17 +40,6 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
41
40
|
value :SENT_CV, 14
|
42
41
|
value :INTERVIEW_GRANTED, 15
|
43
42
|
end
|
44
|
-
add_message "google.cloud.talent.v4beta1.ProfileEvent" do
|
45
|
-
optional :type, :enum, 1, "google.cloud.talent.v4beta1.ProfileEvent.ProfileEventType"
|
46
|
-
repeated :profiles, :string, 2
|
47
|
-
repeated :jobs, :string, 6
|
48
|
-
end
|
49
|
-
add_enum "google.cloud.talent.v4beta1.ProfileEvent.ProfileEventType" do
|
50
|
-
value :PROFILE_EVENT_TYPE_UNSPECIFIED, 0
|
51
|
-
value :IMPRESSION, 1
|
52
|
-
value :VIEW, 2
|
53
|
-
value :BOOKMARK, 3
|
54
|
-
end
|
55
43
|
end
|
56
44
|
end
|
57
45
|
|
@@ -62,8 +50,6 @@ module Google
|
|
62
50
|
ClientEvent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4beta1.ClientEvent").msgclass
|
63
51
|
JobEvent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4beta1.JobEvent").msgclass
|
64
52
|
JobEvent::JobEventType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4beta1.JobEvent.JobEventType").enummodule
|
65
|
-
ProfileEvent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4beta1.ProfileEvent").msgclass
|
66
|
-
ProfileEvent::ProfileEventType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4beta1.ProfileEvent.ProfileEventType").enummodule
|
67
53
|
end
|
68
54
|
end
|
69
55
|
end
|
@@ -188,6 +188,21 @@ module Google
|
|
188
188
|
#
|
189
189
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
190
190
|
#
|
191
|
+
# @example Basic example
|
192
|
+
# require "google/cloud/talent/v4beta1"
|
193
|
+
#
|
194
|
+
# # Create a client object. The client can be reused for multiple calls.
|
195
|
+
# client = Google::Cloud::Talent::V4beta1::EventService::Client.new
|
196
|
+
#
|
197
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
198
|
+
# request = Google::Cloud::Talent::V4beta1::CreateClientEventRequest.new
|
199
|
+
#
|
200
|
+
# # Call the create_client_event method.
|
201
|
+
# result = client.create_client_event request
|
202
|
+
#
|
203
|
+
# # The returned object is of type Google::Cloud::Talent::V4beta1::ClientEvent.
|
204
|
+
# p result
|
205
|
+
#
|
191
206
|
def create_client_event request, options = nil
|
192
207
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
193
208
|
|
@@ -1,12 +1,13 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/talent/v4beta1/event_service.proto
|
3
3
|
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
4
6
|
require 'google/api/annotations_pb'
|
5
7
|
require 'google/api/client_pb'
|
6
8
|
require 'google/api/field_behavior_pb'
|
7
9
|
require 'google/api/resource_pb'
|
8
10
|
require 'google/cloud/talent/v4beta1/event_pb'
|
9
|
-
require 'google/protobuf'
|
10
11
|
|
11
12
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
12
13
|
add_file("google/cloud/talent/v4beta1/event_service.proto", :syntax => :proto3) do
|