google-cloud-talent 0.20.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +5 -5
- data/README.md +1 -0
- data/lib/google/cloud/talent.rb +20 -82
- data/lib/google/cloud/talent/version.rb +1 -1
- metadata +19 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 11626d5b4b4558cb9fdf4eabf8dd40f759d33dc51d163317f41e7593bde945ee
|
4
|
+
data.tar.gz: 6c11af96ffe94b0f090093d865cf2d932758434e660dc14742aba1ef3570dd58
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b56a7f53839809645995b01b8eee6cded74c71233613ba1d98f4928d6e85080685f532565a36ef1e61bb2473d1ab9a286d377328427ef2b6e4c2f37400ca53a4
|
7
|
+
data.tar.gz: 2aec45afe160f1e19098257c4deea8f99dcf7d0f288f52231f5a226bc6a5ec8cf76a5133a2b82bc12a4e3dc12bdec7c862f20fe15028c23a9d9a05239ec7eae8
|
data/AUTHENTICATION.md
CHANGED
@@ -27,7 +27,7 @@ export TALENT_CREDENTIALS=path/to/keyfile.json
|
|
27
27
|
```ruby
|
28
28
|
require "google/cloud/talent"
|
29
29
|
|
30
|
-
client = Google::Cloud::Talent.
|
30
|
+
client = Google::Cloud::Talent.company_service
|
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
|
66
66
|
checks for credentials are configured on the service Credentials class (such as
|
67
|
-
`::Google::Cloud::Talent::
|
67
|
+
`::Google::Cloud::Talent::V4::CompanyService::Credentials`):
|
68
68
|
|
69
69
|
1. `TALENT_CREDENTIALS` - Path to JSON file, or JSON contents
|
70
70
|
2. `TALENT_KEYFILE` - Path to JSON file, or JSON contents
|
@@ -77,7 +77,7 @@ require "google/cloud/talent"
|
|
77
77
|
|
78
78
|
ENV["TALENT_CREDENTIALS"] = "path/to/keyfile.json"
|
79
79
|
|
80
|
-
client = Google::Cloud::Talent.
|
80
|
+
client = Google::Cloud::Talent.company_service
|
81
81
|
```
|
82
82
|
|
83
83
|
### Configuration
|
@@ -88,7 +88,7 @@ environment variables. Either on an individual client initialization:
|
|
88
88
|
```ruby
|
89
89
|
require "google/cloud/talent"
|
90
90
|
|
91
|
-
client = Google::Cloud::Talent.
|
91
|
+
client = Google::Cloud::Talent.company_service do |config|
|
92
92
|
config.credentials = "path/to/keyfile.json"
|
93
93
|
end
|
94
94
|
```
|
@@ -102,7 +102,7 @@ Google::Cloud::Talent.configure do |config|
|
|
102
102
|
config.credentials = "path/to/keyfile.json"
|
103
103
|
end
|
104
104
|
|
105
|
-
client = Google::Cloud::Talent.
|
105
|
+
client = Google::Cloud::Talent.company_service
|
106
106
|
```
|
107
107
|
|
108
108
|
### Cloud SDK
|
data/README.md
CHANGED
@@ -15,6 +15,7 @@ for this library, google-cloud-talent, to see the convenience methods for
|
|
15
15
|
constructing client objects. Reference documentation for the client objects
|
16
16
|
themselves can be found in the client library documentation for the versioned
|
17
17
|
client gems:
|
18
|
+
[google-cloud-talent-v4](https://googleapis.dev/ruby/google-cloud-talent-v4/latest),
|
18
19
|
[google-cloud-talent-v4beta1](https://googleapis.dev/ruby/google-cloud-talent-v4beta1/latest).
|
19
20
|
|
20
21
|
See also the [Product Documentation](https://cloud.google.com/solutions/talent-solution)
|
data/lib/google/cloud/talent.rb
CHANGED
@@ -44,43 +44,12 @@ end
|
|
44
44
|
module Google
|
45
45
|
module Cloud
|
46
46
|
module Talent
|
47
|
-
##
|
48
|
-
# Create a new client object for ApplicationService.
|
49
|
-
#
|
50
|
-
# By default, this returns an instance of
|
51
|
-
# [Google::Cloud::Talent::V4beta1::ApplicationService::Client](https://googleapis.dev/ruby/google-cloud-talent-v4beta1/latest/Google/Cloud/Talent/V4beta1/ApplicationService/Client.html)
|
52
|
-
# for version V4beta1 of the API.
|
53
|
-
# However, you can specify specify a different API version by passing it in the
|
54
|
-
# `version` parameter. If the ApplicationService 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 ApplicationService
|
59
|
-
#
|
60
|
-
# A service that handles application management, including CRUD and
|
61
|
-
# enumeration.
|
62
|
-
#
|
63
|
-
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
64
|
-
# Defaults to `:v4beta1`.
|
65
|
-
# @return [ApplicationService::Client] A client object for the specified version.
|
66
|
-
#
|
67
|
-
def self.application_service version: :v4beta1, &block
|
68
|
-
require "google/cloud/talent/#{version.to_s.downcase}"
|
69
|
-
|
70
|
-
package_name = Google::Cloud::Talent
|
71
|
-
.constants
|
72
|
-
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
73
|
-
.first
|
74
|
-
package_module = Google::Cloud::Talent.const_get package_name
|
75
|
-
package_module.const_get(:ApplicationService).const_get(:Client).new(&block)
|
76
|
-
end
|
77
|
-
|
78
47
|
##
|
79
48
|
# Create a new client object for CompanyService.
|
80
49
|
#
|
81
50
|
# By default, this returns an instance of
|
82
|
-
# [Google::Cloud::Talent::
|
83
|
-
# for version
|
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.
|
84
53
|
# However, you can specify specify a different API version by passing it in the
|
85
54
|
# `version` parameter. If the CompanyService service is
|
86
55
|
# supported by that API version, and the corresponding gem is available, the
|
@@ -91,10 +60,10 @@ module Google
|
|
91
60
|
# A service that handles company management, including CRUD and enumeration.
|
92
61
|
#
|
93
62
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
94
|
-
# Defaults to `:
|
63
|
+
# Defaults to `:v4`.
|
95
64
|
# @return [CompanyService::Client] A client object for the specified version.
|
96
65
|
#
|
97
|
-
def self.company_service version: :
|
66
|
+
def self.company_service version: :v4, &block
|
98
67
|
require "google/cloud/talent/#{version.to_s.downcase}"
|
99
68
|
|
100
69
|
package_name = Google::Cloud::Talent
|
@@ -109,8 +78,8 @@ module Google
|
|
109
78
|
# Create a new client object for Completion.
|
110
79
|
#
|
111
80
|
# By default, this returns an instance of
|
112
|
-
# [Google::Cloud::Talent::
|
113
|
-
# for version
|
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.
|
114
83
|
# However, you can specify specify a different API version by passing it in the
|
115
84
|
# `version` parameter. If the Completion service is
|
116
85
|
# supported by that API version, and the corresponding gem is available, the
|
@@ -121,10 +90,10 @@ module Google
|
|
121
90
|
# A service handles auto completion.
|
122
91
|
#
|
123
92
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
124
|
-
# Defaults to `:
|
93
|
+
# Defaults to `:v4`.
|
125
94
|
# @return [Completion::Client] A client object for the specified version.
|
126
95
|
#
|
127
|
-
def self.completion version: :
|
96
|
+
def self.completion version: :v4, &block
|
128
97
|
require "google/cloud/talent/#{version.to_s.downcase}"
|
129
98
|
|
130
99
|
package_name = Google::Cloud::Talent
|
@@ -139,8 +108,8 @@ module Google
|
|
139
108
|
# Create a new client object for EventService.
|
140
109
|
#
|
141
110
|
# By default, this returns an instance of
|
142
|
-
# [Google::Cloud::Talent::
|
143
|
-
# for version
|
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.
|
144
113
|
# However, you can specify specify a different API version by passing it in the
|
145
114
|
# `version` parameter. If the EventService service is
|
146
115
|
# supported by that API version, and the corresponding gem is available, the
|
@@ -151,10 +120,10 @@ module Google
|
|
151
120
|
# A service handles client event report.
|
152
121
|
#
|
153
122
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
154
|
-
# Defaults to `:
|
123
|
+
# Defaults to `:v4`.
|
155
124
|
# @return [EventService::Client] A client object for the specified version.
|
156
125
|
#
|
157
|
-
def self.event_service version: :
|
126
|
+
def self.event_service version: :v4, &block
|
158
127
|
require "google/cloud/talent/#{version.to_s.downcase}"
|
159
128
|
|
160
129
|
package_name = Google::Cloud::Talent
|
@@ -169,8 +138,8 @@ module Google
|
|
169
138
|
# Create a new client object for JobService.
|
170
139
|
#
|
171
140
|
# By default, this returns an instance of
|
172
|
-
# [Google::Cloud::Talent::
|
173
|
-
# for version
|
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.
|
174
143
|
# However, you can specify specify a different API version by passing it in the
|
175
144
|
# `version` parameter. If the JobService service is
|
176
145
|
# supported by that API version, and the corresponding gem is available, the
|
@@ -181,10 +150,10 @@ module Google
|
|
181
150
|
# A service handles job management, including job CRUD, enumeration and search.
|
182
151
|
#
|
183
152
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
184
|
-
# Defaults to `:
|
153
|
+
# Defaults to `:v4`.
|
185
154
|
# @return [JobService::Client] A client object for the specified version.
|
186
155
|
#
|
187
|
-
def self.job_service version: :
|
156
|
+
def self.job_service version: :v4, &block
|
188
157
|
require "google/cloud/talent/#{version.to_s.downcase}"
|
189
158
|
|
190
159
|
package_name = Google::Cloud::Talent
|
@@ -195,43 +164,12 @@ module Google
|
|
195
164
|
package_module.const_get(:JobService).const_get(:Client).new(&block)
|
196
165
|
end
|
197
166
|
|
198
|
-
##
|
199
|
-
# Create a new client object for ProfileService.
|
200
|
-
#
|
201
|
-
# By default, this returns an instance of
|
202
|
-
# [Google::Cloud::Talent::V4beta1::ProfileService::Client](https://googleapis.dev/ruby/google-cloud-talent-v4beta1/latest/Google/Cloud/Talent/V4beta1/ProfileService/Client.html)
|
203
|
-
# for version V4beta1 of the API.
|
204
|
-
# However, you can specify specify a different API version by passing it in the
|
205
|
-
# `version` parameter. If the ProfileService service is
|
206
|
-
# supported by that API version, and the corresponding gem is available, the
|
207
|
-
# appropriate versioned client will be returned.
|
208
|
-
#
|
209
|
-
# ## About ProfileService
|
210
|
-
#
|
211
|
-
# A service that handles profile management, including profile CRUD,
|
212
|
-
# enumeration and search.
|
213
|
-
#
|
214
|
-
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
215
|
-
# Defaults to `:v4beta1`.
|
216
|
-
# @return [ProfileService::Client] A client object for the specified version.
|
217
|
-
#
|
218
|
-
def self.profile_service version: :v4beta1, &block
|
219
|
-
require "google/cloud/talent/#{version.to_s.downcase}"
|
220
|
-
|
221
|
-
package_name = Google::Cloud::Talent
|
222
|
-
.constants
|
223
|
-
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
224
|
-
.first
|
225
|
-
package_module = Google::Cloud::Talent.const_get package_name
|
226
|
-
package_module.const_get(:ProfileService).const_get(:Client).new(&block)
|
227
|
-
end
|
228
|
-
|
229
167
|
##
|
230
168
|
# Create a new client object for TenantService.
|
231
169
|
#
|
232
170
|
# By default, this returns an instance of
|
233
|
-
# [Google::Cloud::Talent::
|
234
|
-
# for version
|
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.
|
235
173
|
# However, you can specify specify a different API version by passing it in the
|
236
174
|
# `version` parameter. If the TenantService service is
|
237
175
|
# supported by that API version, and the corresponding gem is available, the
|
@@ -242,10 +180,10 @@ module Google
|
|
242
180
|
# A service that handles tenant management, including CRUD and enumeration.
|
243
181
|
#
|
244
182
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
245
|
-
# Defaults to `:
|
183
|
+
# Defaults to `:v4`.
|
246
184
|
# @return [TenantService::Client] A client object for the specified version.
|
247
185
|
#
|
248
|
-
def self.tenant_service version: :
|
186
|
+
def self.tenant_service version: :v4, &block
|
249
187
|
require "google/cloud/talent/#{version.to_s.downcase}"
|
250
188
|
|
251
189
|
package_name = Google::Cloud::Talent
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-talent
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-10-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-cloud-core
|
@@ -24,20 +24,34 @@ dependencies:
|
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '1.5'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: google-cloud-talent-v4
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0.2'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0.2'
|
27
41
|
- !ruby/object:Gem::Dependency
|
28
42
|
name: google-cloud-talent-v4beta1
|
29
43
|
requirement: !ruby/object:Gem::Requirement
|
30
44
|
requirements:
|
31
45
|
- - "~>"
|
32
46
|
- !ruby/object:Gem::Version
|
33
|
-
version: '0.
|
47
|
+
version: '0.2'
|
34
48
|
type: :runtime
|
35
49
|
prerelease: false
|
36
50
|
version_requirements: !ruby/object:Gem::Requirement
|
37
51
|
requirements:
|
38
52
|
- - "~>"
|
39
53
|
- !ruby/object:Gem::Version
|
40
|
-
version: '0.
|
54
|
+
version: '0.2'
|
41
55
|
- !ruby/object:Gem::Dependency
|
42
56
|
name: google-style
|
43
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -187,7 +201,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
187
201
|
- !ruby/object:Gem::Version
|
188
202
|
version: '0'
|
189
203
|
requirements: []
|
190
|
-
rubygems_version: 3.
|
204
|
+
rubygems_version: 3.1.4
|
191
205
|
signing_key:
|
192
206
|
specification_version: 4
|
193
207
|
summary: API Client library for the Cloud Talent Solution API
|