google-cloud-talent 1.2.0 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2893bccebe6d11a65d32904b48bbf31a953b7c22c052245af283392680d0710f
4
- data.tar.gz: 131ac43e57d423a31e8ad4f6f481edce9d10079afded7c84e2dfd51438cff3a4
3
+ metadata.gz: f59cdac73e922aa11481b744591221f67e137dc7a02348cc00438d0aa8764334
4
+ data.tar.gz: a8945e6141bc78957013f2f4325043d78d55d0e8d572225221caad80b47d872f
5
5
  SHA512:
6
- metadata.gz: 4ad614091fe81f7c65f7fa0e90c292869c6451a2be10c4257225e1c3ae95dfab5dc4c0b3bc1c8ee7bed008d94bb1451473987b1bdda8a999545b3e81d1456d45
7
- data.tar.gz: 6be8aae36e1005bf5332c82597c653a991ba81bd145b46e55e9489ce1829290593e557529e75acb0355023a10183936bd3e413dea802dc07ff8721344972b796
6
+ metadata.gz: bfd8cc029c1d7fb23c96df1fedd40a14c43680d41965807254f28583c0c99fde9f4b68901a2680e6cbe57757c357bddec61727edea00de4854f27864aa1e3ad7
7
+ data.tar.gz: 825bcc06784369b69cf88949ccd901e37336c18a56da85e73e8964bbb983f7197bf791b545a007b3195eb09911c0062ddc68e0b5abf5ac721cdaf44131e8f9aa
data/AUTHENTICATION.md CHANGED
@@ -114,7 +114,7 @@ credentials are discovered.
114
114
  To configure your system for this, simply:
115
115
 
116
116
  1. [Download and install the Cloud SDK](https://cloud.google.com/sdk)
117
- 2. Authenticate using OAuth 2.0 `$ gcloud auth login`
117
+ 2. Authenticate using OAuth 2.0 `$ gcloud auth application-default login`
118
118
  3. Write code as if already authenticated.
119
119
 
120
120
  **NOTE:** This is _not_ recommended for running in production. The Cloud SDK
data/README.md CHANGED
@@ -43,32 +43,6 @@ and includes substantial interface changes. Existing code written for earlier
43
43
  versions of this library will likely require updates to use this version.
44
44
  See the {file:MIGRATING.md MIGRATING.md} document for more information.
45
45
 
46
- ## Enabling Logging
47
-
48
- To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
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,
50
- or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
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)
52
- and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
53
-
54
- Configuring a Ruby stdlib logger:
55
-
56
- ```ruby
57
- require "logger"
58
-
59
- module MyLogger
60
- LOGGER = Logger.new $stderr, level: Logger::WARN
61
- def logger
62
- LOGGER
63
- end
64
- end
65
-
66
- # Define a gRPC module-level logger method before grpc/logconfig.rb loads.
67
- module GRPC
68
- extend MyLogger
69
- end
70
- ```
71
-
72
46
  ## Supported Ruby Versions
73
47
 
74
48
  This library is supported on Ruby 2.6+.
@@ -20,7 +20,7 @@
20
20
  module Google
21
21
  module Cloud
22
22
  module Talent
23
- VERSION = "1.2.0"
23
+ VERSION = "1.3.0"
24
24
  end
25
25
  end
26
26
  end
@@ -49,11 +49,13 @@ module Google
49
49
  #
50
50
  # By default, this returns an instance of
51
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
52
+ # for a gRPC client for version V4 of the API.
53
+ # However, you can specify a different API version by passing it in the
54
54
  # `version` parameter. If the CompanyService service is
55
55
  # supported by that API version, and the corresponding gem is available, the
56
56
  # appropriate versioned client will be returned.
57
+ # You can also specify a different transport by passing `:rest` or `:grpc` in
58
+ # the `transport` parameter.
57
59
  #
58
60
  # ## About CompanyService
59
61
  #
@@ -61,17 +63,19 @@ module Google
61
63
  #
62
64
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
63
65
  # Defaults to `:v4`.
64
- # @return [CompanyService::Client] A client object for the specified version.
66
+ # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
67
+ # @return [::Object] A client object for the specified version.
65
68
  #
66
- def self.company_service version: :v4, &block
69
+ def self.company_service version: :v4, transport: :grpc, &block
67
70
  require "google/cloud/talent/#{version.to_s.downcase}"
68
71
 
69
72
  package_name = Google::Cloud::Talent
70
73
  .constants
71
74
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
72
75
  .first
73
- package_module = Google::Cloud::Talent.const_get package_name
74
- package_module.const_get(:CompanyService).const_get(:Client).new(&block)
76
+ service_module = Google::Cloud::Talent.const_get(package_name).const_get(:CompanyService)
77
+ service_module = service_module.const_get(:Rest) if transport == :rest
78
+ service_module.const_get(:Client).new(&block)
75
79
  end
76
80
 
77
81
  ##
@@ -79,11 +83,13 @@ module Google
79
83
  #
80
84
  # By default, this returns an instance of
81
85
  # [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
86
+ # for a gRPC client for version V4 of the API.
87
+ # However, you can specify a different API version by passing it in the
84
88
  # `version` parameter. If the Completion service is
85
89
  # supported by that API version, and the corresponding gem is available, the
86
90
  # appropriate versioned client will be returned.
91
+ # You can also specify a different transport by passing `:rest` or `:grpc` in
92
+ # the `transport` parameter.
87
93
  #
88
94
  # ## About Completion
89
95
  #
@@ -91,17 +97,19 @@ module Google
91
97
  #
92
98
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
93
99
  # Defaults to `:v4`.
94
- # @return [Completion::Client] A client object for the specified version.
100
+ # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
101
+ # @return [::Object] A client object for the specified version.
95
102
  #
96
- def self.completion version: :v4, &block
103
+ def self.completion version: :v4, transport: :grpc, &block
97
104
  require "google/cloud/talent/#{version.to_s.downcase}"
98
105
 
99
106
  package_name = Google::Cloud::Talent
100
107
  .constants
101
108
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
102
109
  .first
103
- package_module = Google::Cloud::Talent.const_get package_name
104
- package_module.const_get(:Completion).const_get(:Client).new(&block)
110
+ service_module = Google::Cloud::Talent.const_get(package_name).const_get(:Completion)
111
+ service_module = service_module.const_get(:Rest) if transport == :rest
112
+ service_module.const_get(:Client).new(&block)
105
113
  end
106
114
 
107
115
  ##
@@ -109,11 +117,13 @@ module Google
109
117
  #
110
118
  # By default, this returns an instance of
111
119
  # [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
120
+ # for a gRPC client for version V4 of the API.
121
+ # However, you can specify a different API version by passing it in the
114
122
  # `version` parameter. If the EventService service is
115
123
  # supported by that API version, and the corresponding gem is available, the
116
124
  # appropriate versioned client will be returned.
125
+ # You can also specify a different transport by passing `:rest` or `:grpc` in
126
+ # the `transport` parameter.
117
127
  #
118
128
  # ## About EventService
119
129
  #
@@ -121,17 +131,19 @@ module Google
121
131
  #
122
132
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
123
133
  # Defaults to `:v4`.
124
- # @return [EventService::Client] A client object for the specified version.
134
+ # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
135
+ # @return [::Object] A client object for the specified version.
125
136
  #
126
- def self.event_service version: :v4, &block
137
+ def self.event_service version: :v4, transport: :grpc, &block
127
138
  require "google/cloud/talent/#{version.to_s.downcase}"
128
139
 
129
140
  package_name = Google::Cloud::Talent
130
141
  .constants
131
142
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
132
143
  .first
133
- package_module = Google::Cloud::Talent.const_get package_name
134
- package_module.const_get(:EventService).const_get(:Client).new(&block)
144
+ service_module = Google::Cloud::Talent.const_get(package_name).const_get(:EventService)
145
+ service_module = service_module.const_get(:Rest) if transport == :rest
146
+ service_module.const_get(:Client).new(&block)
135
147
  end
136
148
 
137
149
  ##
@@ -139,11 +151,13 @@ module Google
139
151
  #
140
152
  # By default, this returns an instance of
141
153
  # [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
154
+ # for a gRPC client for version V4 of the API.
155
+ # However, you can specify a different API version by passing it in the
144
156
  # `version` parameter. If the JobService service is
145
157
  # supported by that API version, and the corresponding gem is available, the
146
158
  # appropriate versioned client will be returned.
159
+ # You can also specify a different transport by passing `:rest` or `:grpc` in
160
+ # the `transport` parameter.
147
161
  #
148
162
  # ## About JobService
149
163
  #
@@ -151,17 +165,19 @@ module Google
151
165
  #
152
166
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
153
167
  # Defaults to `:v4`.
154
- # @return [JobService::Client] A client object for the specified version.
168
+ # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
169
+ # @return [::Object] A client object for the specified version.
155
170
  #
156
- def self.job_service version: :v4, &block
171
+ def self.job_service version: :v4, transport: :grpc, &block
157
172
  require "google/cloud/talent/#{version.to_s.downcase}"
158
173
 
159
174
  package_name = Google::Cloud::Talent
160
175
  .constants
161
176
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
162
177
  .first
163
- package_module = Google::Cloud::Talent.const_get package_name
164
- package_module.const_get(:JobService).const_get(:Client).new(&block)
178
+ service_module = Google::Cloud::Talent.const_get(package_name).const_get(:JobService)
179
+ service_module = service_module.const_get(:Rest) if transport == :rest
180
+ service_module.const_get(:Client).new(&block)
165
181
  end
166
182
 
167
183
  ##
@@ -169,11 +185,13 @@ module Google
169
185
  #
170
186
  # By default, this returns an instance of
171
187
  # [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
188
+ # for a gRPC client for version V4 of the API.
189
+ # However, you can specify a different API version by passing it in the
174
190
  # `version` parameter. If the TenantService service is
175
191
  # supported by that API version, and the corresponding gem is available, the
176
192
  # appropriate versioned client will be returned.
193
+ # You can also specify a different transport by passing `:rest` or `:grpc` in
194
+ # the `transport` parameter.
177
195
  #
178
196
  # ## About TenantService
179
197
  #
@@ -181,17 +199,19 @@ module Google
181
199
  #
182
200
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
183
201
  # Defaults to `:v4`.
184
- # @return [TenantService::Client] A client object for the specified version.
202
+ # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
203
+ # @return [::Object] A client object for the specified version.
185
204
  #
186
- def self.tenant_service version: :v4, &block
205
+ def self.tenant_service version: :v4, transport: :grpc, &block
187
206
  require "google/cloud/talent/#{version.to_s.downcase}"
188
207
 
189
208
  package_name = Google::Cloud::Talent
190
209
  .constants
191
210
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
192
211
  .first
193
- package_module = Google::Cloud::Talent.const_get package_name
194
- package_module.const_get(:TenantService).const_get(:Client).new(&block)
212
+ service_module = Google::Cloud::Talent.const_get(package_name).const_get(:TenantService)
213
+ service_module = service_module.const_get(:Rest) if transport == :rest
214
+ service_module.const_get(:Client).new(&block)
195
215
  end
196
216
 
197
217
  ##
@@ -211,7 +231,7 @@ module Google
211
231
  # * `timeout` (*type:* `Numeric`) -
212
232
  # Default timeout in seconds.
213
233
  # * `metadata` (*type:* `Hash{Symbol=>String}`) -
214
- # Additional gRPC headers to be sent with the call.
234
+ # Additional headers to be sent with the call.
215
235
  # * `retry_policy` (*type:* `Hash`) -
216
236
  # The retry policy. The value is a hash with the following keys:
217
237
  # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
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: 1.2.0
4
+ version: 1.3.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: 2022-07-08 00:00:00.000000000 Z
11
+ date: 2023-03-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-cloud-core
@@ -30,7 +30,7 @@ dependencies:
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: '0.2'
33
+ version: '0.9'
34
34
  - - "<"
35
35
  - !ruby/object:Gem::Version
36
36
  version: 2.a
@@ -40,7 +40,7 @@ dependencies:
40
40
  requirements:
41
41
  - - ">="
42
42
  - !ruby/object:Gem::Version
43
- version: '0.2'
43
+ version: '0.9'
44
44
  - - "<"
45
45
  - !ruby/object:Gem::Version
46
46
  version: 2.a
@@ -50,7 +50,7 @@ dependencies:
50
50
  requirements:
51
51
  - - ">="
52
52
  - !ruby/object:Gem::Version
53
- version: '0.2'
53
+ version: '0.7'
54
54
  - - "<"
55
55
  - !ruby/object:Gem::Version
56
56
  version: 2.a
@@ -60,7 +60,7 @@ dependencies:
60
60
  requirements:
61
61
  - - ">="
62
62
  - !ruby/object:Gem::Version
63
- version: '0.2'
63
+ version: '0.7'
64
64
  - - "<"
65
65
  - !ruby/object:Gem::Version
66
66
  version: 2.a
@@ -213,7 +213,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
213
213
  - !ruby/object:Gem::Version
214
214
  version: '0'
215
215
  requirements: []
216
- rubygems_version: 3.3.14
216
+ rubygems_version: 3.4.2
217
217
  signing_key:
218
218
  specification_version: 4
219
219
  summary: API Client library for the Cloud Talent Solution API