google-cloud-talent 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +2 -0
  3. data/AUTHENTICATION.md +199 -0
  4. data/lib/google/cloud/talent.rb +20 -19
  5. data/lib/google/cloud/talent/v4beta1.rb +22 -21
  6. data/lib/google/cloud/talent/v4beta1/application_pb.rb +62 -0
  7. data/lib/google/cloud/talent/v4beta1/application_service_client.rb +492 -0
  8. data/lib/google/cloud/talent/v4beta1/application_service_client_config.json +51 -0
  9. data/lib/google/cloud/talent/v4beta1/application_service_pb.rb +52 -0
  10. data/lib/google/cloud/talent/v4beta1/application_service_services_pb.rb +56 -0
  11. data/lib/google/cloud/talent/v4beta1/common_pb.rb +47 -1
  12. data/lib/google/cloud/talent/v4beta1/company_pb.rb +1 -1
  13. data/lib/google/cloud/talent/v4beta1/company_service_client.rb +83 -55
  14. data/lib/google/cloud/talent/v4beta1/completion_client.rb +62 -42
  15. data/lib/google/cloud/talent/v4beta1/completion_service_pb.rb +2 -2
  16. data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/application.rb +189 -0
  17. data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/application_service.rb +121 -0
  18. data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/common.rb +189 -94
  19. data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/company.rb +12 -10
  20. data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/company_service.rb +29 -20
  21. data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/completion_service.rb +26 -30
  22. data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/event.rb +16 -55
  23. data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/event_service.rb +9 -1
  24. data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/filters.rb +74 -164
  25. data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/histogram.rb +2 -5
  26. data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/job.rb +58 -86
  27. data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/job_service.rb +109 -137
  28. data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/profile.rb +76 -375
  29. data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/profile_service.rb +21 -38
  30. data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/tenant.rb +1 -3
  31. data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/tenant_service.rb +3 -7
  32. data/lib/google/cloud/talent/v4beta1/doc/google/protobuf/field_mask.rb +18 -26
  33. data/lib/google/cloud/talent/v4beta1/doc/google/protobuf/timestamp.rb +15 -13
  34. data/lib/google/cloud/talent/v4beta1/doc/google/type/date.rb +14 -10
  35. data/lib/google/cloud/talent/v4beta1/doc/google/type/latlng.rb +0 -34
  36. data/lib/google/cloud/talent/v4beta1/doc/google/type/timeofday.rb +2 -3
  37. data/lib/google/cloud/talent/v4beta1/event_pb.rb +2 -9
  38. data/lib/google/cloud/talent/v4beta1/event_service_client.rb +26 -13
  39. data/lib/google/cloud/talent/v4beta1/event_service_services_pb.rb +1 -1
  40. data/lib/google/cloud/talent/v4beta1/filters_pb.rb +8 -20
  41. data/lib/google/cloud/talent/v4beta1/helpers.rb +44 -10
  42. data/lib/google/cloud/talent/v4beta1/histogram_pb.rb +1 -1
  43. data/lib/google/cloud/talent/v4beta1/job_pb.rb +3 -2
  44. data/lib/google/cloud/talent/v4beta1/job_service_client.rb +229 -204
  45. data/lib/google/cloud/talent/v4beta1/job_service_pb.rb +0 -1
  46. data/lib/google/cloud/talent/v4beta1/job_service_services_pb.rb +8 -12
  47. data/lib/google/cloud/talent/v4beta1/profile_pb.rb +6 -64
  48. data/lib/google/cloud/talent/v4beta1/profile_service_client.rb +72 -68
  49. data/lib/google/cloud/talent/v4beta1/profile_service_pb.rb +1 -1
  50. data/lib/google/cloud/talent/v4beta1/profile_service_services_pb.rb +3 -3
  51. data/lib/google/cloud/talent/v4beta1/resume_service_client.rb +2 -2
  52. data/lib/google/cloud/talent/v4beta1/tenant_pb.rb +1 -1
  53. data/lib/google/cloud/talent/v4beta1/tenant_service_client.rb +34 -23
  54. metadata +11 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6488d0c8f6d1634ac67bb571277696b7209034b8f525ae1445df0805052a91ef
4
- data.tar.gz: 85370efceb8b540446b13b8872b10ab6211152426ea8c0970752e945d124a2c1
3
+ metadata.gz: '0816cd6dad955973fa9ec62204ed25ec11a391546dcb6483234ded40a7182d6d'
4
+ data.tar.gz: ba036e23b7ea2b7dc376c229defe16336c6a45c5ed3a13ee5fd9d106c4d566e7
5
5
  SHA512:
6
- metadata.gz: 473195f16f6f2c537544a87712e63a9c87e6861844f54bd018f915f6a6eef3519670a5a106fd91507118866b51fb20999ff59726d9384b7c495fcb1b7ff1be1e
7
- data.tar.gz: 6b91512ee14a42ca528e9d1868c34e9c8c516da5ee64695d946e39ae5c73823fd4ef58ba14677f250ee86c342c22a5deef233ec4717dd8c8140a064f4de97264
6
+ metadata.gz: 53613733ed8eabd7f7a7d22c9e02d9d988fa6370dff60277b9ba82d2463836a47fa6d15a51de79fa9ad9323a879e91b14dbd3a62c77af075a279b30e76837a7b
7
+ data.tar.gz: b37c34d3ab95b331a7c8a441f4c5f739ae83c09ccf7d9e11530016e60edf64203e699bfe78189b9b7fcaf9c7e101e03b793be4a24c8661868906d2944d27a397
data/.yardopts CHANGED
@@ -7,3 +7,5 @@
7
7
  ./lib/**/*.rb
8
8
  -
9
9
  README.md
10
+ AUTHENTICATION.md
11
+ LICENSE
data/AUTHENTICATION.md ADDED
@@ -0,0 +1,199 @@
1
+ # Authentication
2
+
3
+ In general, the google-cloud-talent library uses [Service
4
+ Account](https://cloud.google.com/iam/docs/creating-managing-service-accounts)
5
+ credentials to connect to Google Cloud services. When running within [Google
6
+ Cloud Platform environments](#google-cloud-platform-environments)
7
+ the credentials will be discovered automatically. When running on other
8
+ environments, the Service Account credentials can be specified by providing the
9
+ path to the [JSON
10
+ keyfile](https://cloud.google.com/iam/docs/managing-service-account-keys) for
11
+ the account (or the JSON itself) in [environment
12
+ variables](#environment-variables). Additionally, Cloud SDK credentials can also
13
+ be discovered automatically, but this is only recommended during development.
14
+
15
+ ## Quickstart
16
+
17
+ 1. [Create a service account and credentials](#creating-a-service-account).
18
+ 2. Set the [environment variable](#environment-variables).
19
+
20
+ ```sh
21
+ export TALENT_CREDENTIALS=/path/to/json`
22
+ ```
23
+
24
+ 3. Initialize the client.
25
+
26
+ ```ruby
27
+ require "google/cloud/talent"
28
+
29
+ client = Google::Cloud::Talent.new
30
+ ```
31
+
32
+ ## Project and Credential Lookup
33
+
34
+ The google-cloud-talent library aims to make authentication
35
+ as simple as possible, and provides several mechanisms to configure your system
36
+ without providing **Project ID** and **Service Account Credentials** directly in
37
+ code.
38
+
39
+ **Project ID** is discovered in the following order:
40
+
41
+ 1. Specify project ID in method arguments
42
+ 2. Specify project ID in configuration
43
+ 3. Discover project ID in environment variables
44
+ 4. Discover GCE project ID
45
+ 5. Discover project ID in credentials JSON
46
+
47
+ **Credentials** are discovered in the following order:
48
+
49
+ 1. Specify credentials in method arguments
50
+ 2. Specify credentials in configuration
51
+ 3. Discover credentials path in environment variables
52
+ 4. Discover credentials JSON in environment variables
53
+ 5. Discover credentials file in the Cloud SDK's path
54
+ 6. Discover GCE credentials
55
+
56
+ ### Google Cloud Platform environments
57
+
58
+ While running on Google Cloud Platform environments such as Google Compute
59
+ Engine, Google App Engine and Google Kubernetes Engine, no extra work is needed.
60
+ The **Project ID** and **Credentials** and are discovered automatically. Code
61
+ should be written as if already authenticated. Just be sure when you [set up the
62
+ GCE instance][gce-how-to], you add the correct scopes for the APIs you want to
63
+ access. For example:
64
+
65
+ * **All APIs**
66
+ * `https://www.googleapis.com/auth/cloud-platform`
67
+ * `https://www.googleapis.com/auth/cloud-platform.read-only`
68
+ * **BigQuery**
69
+ * `https://www.googleapis.com/auth/bigquery`
70
+ * `https://www.googleapis.com/auth/bigquery.insertdata`
71
+ * **Compute Engine**
72
+ * `https://www.googleapis.com/auth/compute`
73
+ * **Datastore**
74
+ * `https://www.googleapis.com/auth/datastore`
75
+ * `https://www.googleapis.com/auth/userinfo.email`
76
+ * **DNS**
77
+ * `https://www.googleapis.com/auth/ndev.clouddns.readwrite`
78
+ * **Pub/Sub**
79
+ * `https://www.googleapis.com/auth/pubsub`
80
+ * **Storage**
81
+ * `https://www.googleapis.com/auth/devstorage.full_control`
82
+ * `https://www.googleapis.com/auth/devstorage.read_only`
83
+ * `https://www.googleapis.com/auth/devstorage.read_write`
84
+
85
+ ### Environment Variables
86
+
87
+ The **Project ID** and **Credentials JSON** can be placed in environment
88
+ variables instead of declaring them directly in code. Each service has its own
89
+ environment variable, allowing for different service accounts to be used for
90
+ different services. (See the READMEs for the individual service gems for
91
+ details.) The path to the **Credentials JSON** file can be stored in the
92
+ environment variable, or the **Credentials JSON** itself can be stored for
93
+ environments such as Docker containers where writing files is difficult or not
94
+ encouraged.
95
+
96
+ The environment variables that google-cloud-talent checks for project ID are:
97
+
98
+ 1. `TALENT_PROJECT`
99
+ 2. `GOOGLE_CLOUD_PROJECT`
100
+
101
+ The environment variables that google-cloud-talent checks for credentials are configured on {Google::Cloud::Talent::V4beta1::Credentials}:
102
+
103
+ 1. `TALENT_CREDENTIALS` - Path to JSON file, or JSON contents
104
+ 2. `TALENT_KEYFILE` - Path to JSON file, or JSON contents
105
+ 3. `GOOGLE_CLOUD_CREDENTIALS` - Path to JSON file, or JSON contents
106
+ 4. `GOOGLE_CLOUD_KEYFILE` - Path to JSON file, or JSON contents
107
+ 5. `GOOGLE_APPLICATION_CREDENTIALS` - Path to JSON file
108
+
109
+ ```ruby
110
+ require "google/cloud/talent"
111
+
112
+ ENV["TALENT_PROJECT"] = "my-project-id"
113
+ ENV["TALENT_CREDENTIALS"] = "path/to/keyfile.json"
114
+
115
+ client = Google::Cloud::Talent.new
116
+ ```
117
+
118
+ ### Configuration
119
+
120
+ The **Project ID** and **Credentials JSON** can be configured instead of placing them in environment variables or providing them as arguments.
121
+
122
+ ```ruby
123
+ require "google/cloud/talent"
124
+
125
+ Google::Cloud::Talent.configure do |config|
126
+ config.project_id = "my-project-id"
127
+ config.credentials = "path/to/keyfile.json"
128
+ end
129
+
130
+ client = Google::Cloud::Talent.new
131
+ ```
132
+
133
+ ### Cloud SDK
134
+
135
+ This option allows for an easy way to authenticate during development. If
136
+ credentials are not provided in code or in environment variables, then Cloud SDK
137
+ credentials are discovered.
138
+
139
+ To configure your system for this, simply:
140
+
141
+ 1. [Download and install the Cloud SDK](https://cloud.google.com/sdk)
142
+ 2. Authenticate using OAuth 2.0 `$ gcloud auth login`
143
+ 3. Write code as if already authenticated.
144
+
145
+ **NOTE:** This is _not_ recommended for running in production. The Cloud SDK
146
+ *should* only be used during development.
147
+
148
+ [gce-how-to]: https://cloud.google.com/compute/docs/authentication#using
149
+ [dev-console]: https://console.cloud.google.com/project
150
+
151
+ [enable-apis]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/enable-apis.png
152
+
153
+ [create-new-service-account]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/create-new-service-account.png
154
+ [create-new-service-account-existing-keys]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/create-new-service-account-existing-keys.png
155
+ [reuse-service-account]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/reuse-service-account.png
156
+
157
+ ## Creating a Service Account
158
+
159
+ Google Cloud requires a **Project ID** and **Service Account Credentials** to
160
+ connect to the APIs. You will use the **Project ID** and **JSON key file** to
161
+ connect to most services with google-cloud-talent.
162
+
163
+ If you are not running this client within [Google Cloud Platform
164
+ environments](#google-cloud-platform-environments), you need a Google
165
+ Developers service account.
166
+
167
+ 1. Visit the [Google Developers Console][dev-console].
168
+ 1. Create a new project or click on an existing project.
169
+ 1. Activate the slide-out navigation tray and select **API Manager**. From
170
+ here, you will enable the APIs that your application requires.
171
+
172
+ ![Enable the APIs that your application requires][enable-apis]
173
+
174
+ *Note: You may need to enable billing in order to use these services.*
175
+
176
+ 1. Select **Credentials** from the side navigation.
177
+
178
+ You should see a screen like one of the following.
179
+
180
+ ![Create a new service account][create-new-service-account]
181
+
182
+ ![Create a new service account With Existing Keys][create-new-service-account-existing-keys]
183
+
184
+ Find the "Add credentials" drop down and select "Service account" to be
185
+ guided through downloading a new JSON key file.
186
+
187
+ If you want to re-use an existing service account, you can easily generate a
188
+ new key file. Just select the account you wish to re-use, and click "Generate
189
+ new JSON key":
190
+
191
+ ![Re-use an existing service account][reuse-service-account]
192
+
193
+ The key file you download will be used by this library to authenticate API
194
+ requests and should be stored in a secure location.
195
+
196
+ ## Troubleshooting
197
+
198
+ If you're having trouble authenticating you can ask for help by following the
199
+ {file:TROUBLESHOOTING.md Troubleshooting Guide}.
@@ -87,9 +87,10 @@ module Google
87
87
  .select { |dir| File.exist?(dir + ".rb") }
88
88
  .map { |dir| File.basename(dir) }
89
89
 
90
- module CompanyService
90
+ module ApplicationService
91
91
  ##
92
- # A service that handles company management, including CRUD and enumeration.
92
+ # A service that handles application management, including CRUD and
93
+ # enumeration.
93
94
  #
94
95
  # @param version [Symbol, String]
95
96
  # The major version of the service to be used. By default :v4beta1
@@ -135,13 +136,13 @@ module Google
135
136
  .constants
136
137
  .select {|sym| sym.to_s.downcase == version.to_s.downcase}
137
138
  .first
138
- Google::Cloud::Talent.const_get(version_module)::CompanyService.new(*args, **kwargs)
139
+ Google::Cloud::Talent.const_get(version_module)::ApplicationService.new(*args, **kwargs)
139
140
  end
140
141
  end
141
142
 
142
- module Completion
143
+ module CompanyService
143
144
  ##
144
- # A service handles auto completion.
145
+ # A service that handles company management, including CRUD and enumeration.
145
146
  #
146
147
  # @param version [Symbol, String]
147
148
  # The major version of the service to be used. By default :v4beta1
@@ -187,13 +188,13 @@ module Google
187
188
  .constants
188
189
  .select {|sym| sym.to_s.downcase == version.to_s.downcase}
189
190
  .first
190
- Google::Cloud::Talent.const_get(version_module)::Completion.new(*args, **kwargs)
191
+ Google::Cloud::Talent.const_get(version_module)::CompanyService.new(*args, **kwargs)
191
192
  end
192
193
  end
193
194
 
194
- module Event
195
+ module Completion
195
196
  ##
196
- # A service handles client event report.
197
+ # A service handles auto completion.
197
198
  #
198
199
  # @param version [Symbol, String]
199
200
  # The major version of the service to be used. By default :v4beta1
@@ -239,13 +240,13 @@ module Google
239
240
  .constants
240
241
  .select {|sym| sym.to_s.downcase == version.to_s.downcase}
241
242
  .first
242
- Google::Cloud::Talent.const_get(version_module)::Event.new(*args, **kwargs)
243
+ Google::Cloud::Talent.const_get(version_module)::Completion.new(*args, **kwargs)
243
244
  end
244
245
  end
245
246
 
246
- module JobService
247
+ module Event
247
248
  ##
248
- # A service handles job management, including job CRUD, enumeration and search.
249
+ # A service handles client event report.
249
250
  #
250
251
  # @param version [Symbol, String]
251
252
  # The major version of the service to be used. By default :v4beta1
@@ -291,14 +292,13 @@ module Google
291
292
  .constants
292
293
  .select {|sym| sym.to_s.downcase == version.to_s.downcase}
293
294
  .first
294
- Google::Cloud::Talent.const_get(version_module)::JobService.new(*args, **kwargs)
295
+ Google::Cloud::Talent.const_get(version_module)::Event.new(*args, **kwargs)
295
296
  end
296
297
  end
297
298
 
298
- module ProfileService
299
+ module JobService
299
300
  ##
300
- # A service that handles profile management, including profile CRUD,
301
- # enumeration and search.
301
+ # A service handles job management, including job CRUD, enumeration and search.
302
302
  #
303
303
  # @param version [Symbol, String]
304
304
  # The major version of the service to be used. By default :v4beta1
@@ -344,13 +344,14 @@ module Google
344
344
  .constants
345
345
  .select {|sym| sym.to_s.downcase == version.to_s.downcase}
346
346
  .first
347
- Google::Cloud::Talent.const_get(version_module)::ProfileService.new(*args, **kwargs)
347
+ Google::Cloud::Talent.const_get(version_module)::JobService.new(*args, **kwargs)
348
348
  end
349
349
  end
350
350
 
351
- module Resume
351
+ module ProfileService
352
352
  ##
353
- # A service that handles resume parsing.
353
+ # A service that handles profile management, including profile CRUD,
354
+ # enumeration and search.
354
355
  #
355
356
  # @param version [Symbol, String]
356
357
  # The major version of the service to be used. By default :v4beta1
@@ -396,7 +397,7 @@ module Google
396
397
  .constants
397
398
  .select {|sym| sym.to_s.downcase == version.to_s.downcase}
398
399
  .first
399
- Google::Cloud::Talent.const_get(version_module)::Resume.new(*args, **kwargs)
400
+ Google::Cloud::Talent.const_get(version_module)::ProfileService.new(*args, **kwargs)
400
401
  end
401
402
  end
402
403
 
@@ -13,13 +13,13 @@
13
13
  # limitations under the License.
14
14
 
15
15
 
16
+ require "google/cloud/talent/v4beta1/application_service_client"
17
+ require "google/cloud/talent/v4beta1/helpers"
16
18
  require "google/cloud/talent/v4beta1/company_service_client"
17
19
  require "google/cloud/talent/v4beta1/completion_client"
18
20
  require "google/cloud/talent/v4beta1/event_service_client"
19
21
  require "google/cloud/talent/v4beta1/job_service_client"
20
22
  require "google/cloud/talent/v4beta1/profile_service_client"
21
- require "google/cloud/talent/v4beta1/resume_service_client"
22
- require "google/cloud/talent/v4beta1/helpers"
23
23
  require "google/cloud/talent/v4beta1/tenant_service_client"
24
24
 
25
25
  module Google
@@ -86,9 +86,10 @@ module Google
86
86
  module V4beta1
87
87
  # rubocop:enable LineLength
88
88
 
89
- module CompanyService
89
+ module ApplicationService
90
90
  ##
91
- # A service that handles company management, including CRUD and enumeration.
91
+ # A service that handles application management, including CRUD and
92
+ # enumeration.
92
93
  #
93
94
  # @param credentials [Google::Auth::Credentials, String, Hash, GRPC::Core::Channel, GRPC::Core::ChannelCredentials, Proc]
94
95
  # Provides the means for authenticating requests made by the client. This parameter can
@@ -138,13 +139,13 @@ module Google
138
139
  lib_name: lib_name,
139
140
  lib_version: lib_version
140
141
  }.select { |_, v| v != nil }
141
- Google::Cloud::Talent::V4beta1::CompanyServiceClient.new(**kwargs)
142
+ Google::Cloud::Talent::V4beta1::ApplicationServiceClient.new(**kwargs)
142
143
  end
143
144
  end
144
145
 
145
- module Completion
146
+ module CompanyService
146
147
  ##
147
- # A service handles auto completion.
148
+ # A service that handles company management, including CRUD and enumeration.
148
149
  #
149
150
  # @param credentials [Google::Auth::Credentials, String, Hash, GRPC::Core::Channel, GRPC::Core::ChannelCredentials, Proc]
150
151
  # Provides the means for authenticating requests made by the client. This parameter can
@@ -194,13 +195,13 @@ module Google
194
195
  lib_name: lib_name,
195
196
  lib_version: lib_version
196
197
  }.select { |_, v| v != nil }
197
- Google::Cloud::Talent::V4beta1::CompletionClient.new(**kwargs)
198
+ Google::Cloud::Talent::V4beta1::CompanyServiceClient.new(**kwargs)
198
199
  end
199
200
  end
200
201
 
201
- module Event
202
+ module Completion
202
203
  ##
203
- # A service handles client event report.
204
+ # A service handles auto completion.
204
205
  #
205
206
  # @param credentials [Google::Auth::Credentials, String, Hash, GRPC::Core::Channel, GRPC::Core::ChannelCredentials, Proc]
206
207
  # Provides the means for authenticating requests made by the client. This parameter can
@@ -250,13 +251,13 @@ module Google
250
251
  lib_name: lib_name,
251
252
  lib_version: lib_version
252
253
  }.select { |_, v| v != nil }
253
- Google::Cloud::Talent::V4beta1::EventServiceClient.new(**kwargs)
254
+ Google::Cloud::Talent::V4beta1::CompletionClient.new(**kwargs)
254
255
  end
255
256
  end
256
257
 
257
- module JobService
258
+ module Event
258
259
  ##
259
- # A service handles job management, including job CRUD, enumeration and search.
260
+ # A service handles client event report.
260
261
  #
261
262
  # @param credentials [Google::Auth::Credentials, String, Hash, GRPC::Core::Channel, GRPC::Core::ChannelCredentials, Proc]
262
263
  # Provides the means for authenticating requests made by the client. This parameter can
@@ -306,14 +307,13 @@ module Google
306
307
  lib_name: lib_name,
307
308
  lib_version: lib_version
308
309
  }.select { |_, v| v != nil }
309
- Google::Cloud::Talent::V4beta1::JobServiceClient.new(**kwargs)
310
+ Google::Cloud::Talent::V4beta1::EventServiceClient.new(**kwargs)
310
311
  end
311
312
  end
312
313
 
313
- module ProfileService
314
+ module JobService
314
315
  ##
315
- # A service that handles profile management, including profile CRUD,
316
- # enumeration and search.
316
+ # A service handles job management, including job CRUD, enumeration and search.
317
317
  #
318
318
  # @param credentials [Google::Auth::Credentials, String, Hash, GRPC::Core::Channel, GRPC::Core::ChannelCredentials, Proc]
319
319
  # Provides the means for authenticating requests made by the client. This parameter can
@@ -363,13 +363,14 @@ module Google
363
363
  lib_name: lib_name,
364
364
  lib_version: lib_version
365
365
  }.select { |_, v| v != nil }
366
- Google::Cloud::Talent::V4beta1::ProfileServiceClient.new(**kwargs)
366
+ Google::Cloud::Talent::V4beta1::JobServiceClient.new(**kwargs)
367
367
  end
368
368
  end
369
369
 
370
- module Resume
370
+ module ProfileService
371
371
  ##
372
- # A service that handles resume parsing.
372
+ # A service that handles profile management, including profile CRUD,
373
+ # enumeration and search.
373
374
  #
374
375
  # @param credentials [Google::Auth::Credentials, String, Hash, GRPC::Core::Channel, GRPC::Core::ChannelCredentials, Proc]
375
376
  # Provides the means for authenticating requests made by the client. This parameter can
@@ -419,7 +420,7 @@ module Google
419
420
  lib_name: lib_name,
420
421
  lib_version: lib_version
421
422
  }.select { |_, v| v != nil }
422
- Google::Cloud::Talent::V4beta1::ResumeServiceClient.new(**kwargs)
423
+ Google::Cloud::Talent::V4beta1::ProfileServiceClient.new(**kwargs)
423
424
  end
424
425
  end
425
426
 
@@ -0,0 +1,62 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/cloud/talent/v4beta1/application.proto
3
+
4
+
5
+ require 'google/protobuf'
6
+
7
+ require 'google/cloud/talent/v4beta1/common_pb'
8
+ require 'google/cloud/talent/v4beta1/job_pb'
9
+ require 'google/protobuf/timestamp_pb'
10
+ require 'google/protobuf/wrappers_pb'
11
+ require 'google/type/date_pb'
12
+ require 'google/api/annotations_pb'
13
+ Google::Protobuf::DescriptorPool.generated_pool.build do
14
+ add_message "google.cloud.talent.v4beta1.Application" do
15
+ optional :name, :string, 1
16
+ optional :external_id, :string, 31
17
+ optional :profile, :string, 2
18
+ optional :job, :string, 4
19
+ optional :company, :string, 5
20
+ optional :application_date, :message, 7, "google.type.Date"
21
+ optional :stage, :enum, 11, "google.cloud.talent.v4beta1.Application.ApplicationStage"
22
+ optional :state, :enum, 13, "google.cloud.talent.v4beta1.Application.ApplicationState"
23
+ repeated :interviews, :message, 16, "google.cloud.talent.v4beta1.Interview"
24
+ optional :referral, :message, 18, "google.protobuf.BoolValue"
25
+ optional :create_time, :message, 19, "google.protobuf.Timestamp"
26
+ optional :update_time, :message, 20, "google.protobuf.Timestamp"
27
+ optional :outcome_notes, :string, 21
28
+ optional :outcome, :enum, 22, "google.cloud.talent.v4beta1.Outcome"
29
+ optional :is_match, :message, 28, "google.protobuf.BoolValue"
30
+ optional :job_title_snippet, :string, 29
31
+ end
32
+ add_enum "google.cloud.talent.v4beta1.Application.ApplicationState" do
33
+ value :APPLICATION_STATE_UNSPECIFIED, 0
34
+ value :IN_PROGRESS, 1
35
+ value :CANDIDATE_WITHDREW, 2
36
+ value :EMPLOYER_WITHDREW, 3
37
+ value :COMPLETED, 4
38
+ value :CLOSED, 5
39
+ end
40
+ add_enum "google.cloud.talent.v4beta1.Application.ApplicationStage" do
41
+ value :APPLICATION_STAGE_UNSPECIFIED, 0
42
+ value :NEW, 1
43
+ value :SCREEN, 2
44
+ value :HIRING_MANAGER_REVIEW, 3
45
+ value :INTERVIEW, 4
46
+ value :OFFER_EXTENDED, 5
47
+ value :OFFER_ACCEPTED, 6
48
+ value :STARTED, 7
49
+ end
50
+ end
51
+
52
+ module Google
53
+ module Cloud
54
+ module Talent
55
+ module V4beta1
56
+ Application = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4beta1.Application").msgclass
57
+ Application::ApplicationState = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4beta1.Application.ApplicationState").enummodule
58
+ Application::ApplicationStage = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4beta1.Application.ApplicationStage").enummodule
59
+ end
60
+ end
61
+ end
62
+ end