google-cloud-talent-v4beta1 0.1.0 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +6 -6
- data/README.md +5 -1
- data/lib/google/cloud/talent/v4beta1.rb +1 -1
- data/lib/google/cloud/talent/v4beta1/application_service.rb +1 -1
- data/lib/google/cloud/talent/v4beta1/application_service/client.rb +133 -128
- data/lib/google/cloud/talent/v4beta1/application_service/credentials.rb +1 -1
- data/lib/google/cloud/talent/v4beta1/application_service/paths.rb +17 -17
- data/lib/google/cloud/talent/v4beta1/company_service.rb +1 -1
- data/lib/google/cloud/talent/v4beta1/company_service/client.rb +135 -130
- data/lib/google/cloud/talent/v4beta1/company_service/credentials.rb +1 -1
- data/lib/google/cloud/talent/v4beta1/company_service/paths.rb +8 -8
- data/lib/google/cloud/talent/v4beta1/completion.rb +1 -1
- data/lib/google/cloud/talent/v4beta1/completion/client.rb +69 -64
- data/lib/google/cloud/talent/v4beta1/completion/credentials.rb +1 -1
- data/lib/google/cloud/talent/v4beta1/completion/paths.rb +8 -8
- data/lib/google/cloud/talent/v4beta1/event_service.rb +1 -1
- data/lib/google/cloud/talent/v4beta1/event_service/client.rb +62 -57
- data/lib/google/cloud/talent/v4beta1/event_service/credentials.rb +1 -1
- data/lib/google/cloud/talent/v4beta1/event_service/paths.rb +3 -3
- data/lib/google/cloud/talent/v4beta1/job_service.rb +1 -1
- data/lib/google/cloud/talent/v4beta1/job_service/client.rb +329 -324
- data/lib/google/cloud/talent/v4beta1/job_service/credentials.rb +1 -1
- data/lib/google/cloud/talent/v4beta1/job_service/operations.rb +109 -103
- data/lib/google/cloud/talent/v4beta1/job_service/paths.rb +13 -13
- data/lib/google/cloud/talent/v4beta1/profile_service.rb +1 -1
- data/lib/google/cloud/talent/v4beta1/profile_service/client.rb +185 -180
- data/lib/google/cloud/talent/v4beta1/profile_service/credentials.rb +1 -1
- data/lib/google/cloud/talent/v4beta1/profile_service/paths.rb +5 -5
- data/lib/google/cloud/talent/v4beta1/tenant_service.rb +1 -1
- data/lib/google/cloud/talent/v4beta1/tenant_service/client.rb +133 -128
- data/lib/google/cloud/talent/v4beta1/tenant_service/credentials.rb +1 -1
- data/lib/google/cloud/talent/v4beta1/tenant_service/paths.rb +3 -3
- data/lib/google/cloud/talent/v4beta1/version.rb +1 -1
- data/proto_docs/google/api/resource.rb +12 -12
- data/proto_docs/google/cloud/talent/v4beta1/application.rb +18 -18
- data/proto_docs/google/cloud/talent/v4beta1/application_service.rb +27 -27
- data/proto_docs/google/cloud/talent/v4beta1/common.rb +167 -167
- data/proto_docs/google/cloud/talent/v4beta1/company.rb +21 -21
- data/proto_docs/google/cloud/talent/v4beta1/company_service.rb +29 -29
- data/proto_docs/google/cloud/talent/v4beta1/completion_service.rb +28 -28
- data/proto_docs/google/cloud/talent/v4beta1/event.rb +30 -30
- data/proto_docs/google/cloud/talent/v4beta1/event_service.rb +4 -4
- data/proto_docs/google/cloud/talent/v4beta1/filters.rb +198 -198
- data/proto_docs/google/cloud/talent/v4beta1/histogram.rb +14 -14
- data/proto_docs/google/cloud/talent/v4beta1/job.rb +83 -83
- data/proto_docs/google/cloud/talent/v4beta1/job_service.rb +163 -163
- data/proto_docs/google/cloud/talent/v4beta1/profile.rb +202 -202
- data/proto_docs/google/cloud/talent/v4beta1/profile_service.rb +82 -82
- data/proto_docs/google/cloud/talent/v4beta1/tenant.rb +8 -8
- data/proto_docs/google/cloud/talent/v4beta1/tenant_service.rb +27 -27
- data/proto_docs/google/longrunning/operations.rb +30 -30
- data/proto_docs/google/protobuf/any.rb +4 -4
- data/proto_docs/google/protobuf/duration.rb +4 -4
- data/proto_docs/google/protobuf/empty.rb +2 -2
- data/proto_docs/google/protobuf/field_mask.rb +3 -3
- data/proto_docs/google/protobuf/timestamp.rb +4 -4
- data/proto_docs/google/protobuf/wrappers.rb +27 -27
- data/proto_docs/google/rpc/status.rb +6 -6
- data/proto_docs/google/type/date.rb +6 -6
- data/proto_docs/google/type/latlng.rb +4 -4
- data/proto_docs/google/type/money.rb +5 -5
- data/proto_docs/google/type/postal_address.rb +13 -13
- data/proto_docs/google/type/timeofday.rb +7 -7
- metadata +33 -6
- data/lib/google/cloud/common_resources_pb.rb +0 -15
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 979a13df03133b56d7340ac4b8fd7650b9d422decb48c10ccc32f8085663cf56
|
|
4
|
+
data.tar.gz: 6a37f9ba71c0c6208f03db581d4e2151231439e4e4d9879edfbc9c78dc351953
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e131937f670503c65fe654d6fef541f5ba9a46f7afc6a8ca4d820d1d020c6d3b9678b156c5978113edef12d9a823757f0eed32b0cf8d282e0da10dd4501087dc
|
|
7
|
+
data.tar.gz: a5911ab594825b10e1298736a48c91c3caf7d2da66387008e6d17962a56e2502e75b7ec531c14f9584db5c7b2cc35e1dd61f1220341076cf76eb693d784ffd54
|
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::ApplicationService::Client.new
|
|
30
|
+
client = ::Google::Cloud::Talent::V4beta1::ApplicationService::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::ApplicationService::Credentials}):
|
|
67
|
+
{::Google::Cloud::Talent::V4beta1::ApplicationService::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/v4beta1"
|
|
|
77
77
|
|
|
78
78
|
ENV["TALENT_CREDENTIALS"] = "path/to/keyfile.json"
|
|
79
79
|
|
|
80
|
-
client = Google::Cloud::Talent::V4beta1::ApplicationService::Client.new
|
|
80
|
+
client = ::Google::Cloud::Talent::V4beta1::ApplicationService::Client.new
|
|
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/v4beta1"
|
|
90
90
|
|
|
91
|
-
client = Google::Cloud::Talent::V4beta1::ApplicationService::Client.new do |config|
|
|
91
|
+
client = ::Google::Cloud::Talent::V4beta1::ApplicationService::Client.new do |config|
|
|
92
92
|
config.credentials = "path/to/keyfile.json"
|
|
93
93
|
end
|
|
94
94
|
```
|
|
@@ -98,11 +98,11 @@ Or configured globally for all clients:
|
|
|
98
98
|
```ruby
|
|
99
99
|
require "google/cloud/talent/v4beta1"
|
|
100
100
|
|
|
101
|
-
Google::Cloud::Talent::V4beta1::ApplicationService::Client.configure do |config|
|
|
101
|
+
::Google::Cloud::Talent::V4beta1::ApplicationService::Client.configure do |config|
|
|
102
102
|
config.credentials = "path/to/keyfile.json"
|
|
103
103
|
end
|
|
104
104
|
|
|
105
|
-
client = Google::Cloud::Talent::V4beta1::ApplicationService::Client.new
|
|
105
|
+
client = ::Google::Cloud::Talent::V4beta1::ApplicationService::Client.new
|
|
106
106
|
```
|
|
107
107
|
|
|
108
108
|
### Cloud SDK
|
data/README.md
CHANGED
|
@@ -18,6 +18,7 @@ In order to use this library, you first need to go through the following steps:
|
|
|
18
18
|
|
|
19
19
|
1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project)
|
|
20
20
|
1. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project)
|
|
21
|
+
1. [Enable the API.](https://console.cloud.google.com/apis/library/jobs.googleapis.com)
|
|
21
22
|
1. {file:AUTHENTICATION.md Set up authentication.}
|
|
22
23
|
|
|
23
24
|
## Quick Start
|
|
@@ -25,7 +26,7 @@ In order to use this library, you first need to go through the following steps:
|
|
|
25
26
|
```ruby
|
|
26
27
|
require "google/cloud/talent/v4beta1"
|
|
27
28
|
|
|
28
|
-
client = Google::Cloud::Talent::V4beta1::ApplicationService::Client.new
|
|
29
|
+
client = ::Google::Cloud::Talent::V4beta1::ApplicationService::Client.new
|
|
29
30
|
request = my_create_request
|
|
30
31
|
response = client.create_application request
|
|
31
32
|
```
|
|
@@ -33,6 +34,9 @@ response = client.create_application request
|
|
|
33
34
|
View the [Client Library Documentation](https://googleapis.dev/ruby/google-cloud-talent-v4beta1/latest)
|
|
34
35
|
for class and method documentation.
|
|
35
36
|
|
|
37
|
+
See also the [Product Documentation](https://cloud.google.com/solutions/talent-solution)
|
|
38
|
+
for general usage information.
|
|
39
|
+
|
|
36
40
|
## Enabling Logging
|
|
37
41
|
|
|
38
42
|
To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
|
|
@@ -32,7 +32,7 @@ module Google
|
|
|
32
32
|
# To load this package, including all its services, and instantiate a client:
|
|
33
33
|
#
|
|
34
34
|
# require "google/cloud/talent/v4beta1"
|
|
35
|
-
# client = Google::Cloud::Talent::V4beta1::ApplicationService::Client.new
|
|
35
|
+
# client = ::Google::Cloud::Talent::V4beta1::ApplicationService::Client.new
|
|
36
36
|
#
|
|
37
37
|
module V4beta1
|
|
38
38
|
end
|
|
@@ -37,7 +37,7 @@ module Google
|
|
|
37
37
|
# To load this service and instantiate a client:
|
|
38
38
|
#
|
|
39
39
|
# require "google/cloud/talent/v4beta1/application_service"
|
|
40
|
-
# client = Google::Cloud::Talent::V4beta1::ApplicationService::Client.new
|
|
40
|
+
# client = ::Google::Cloud::Talent::V4beta1::ApplicationService::Client.new
|
|
41
41
|
#
|
|
42
42
|
module ApplicationService
|
|
43
43
|
end
|
|
@@ -39,15 +39,15 @@ module Google
|
|
|
39
39
|
##
|
|
40
40
|
# Configure the ApplicationService Client class.
|
|
41
41
|
#
|
|
42
|
-
# See {Google::Cloud::Talent::V4beta1::ApplicationService::Client::Configuration}
|
|
42
|
+
# See {::Google::Cloud::Talent::V4beta1::ApplicationService::Client::Configuration}
|
|
43
43
|
# for a description of the configuration fields.
|
|
44
44
|
#
|
|
45
45
|
# ## Example
|
|
46
46
|
#
|
|
47
47
|
# To modify the configuration for all ApplicationService clients:
|
|
48
48
|
#
|
|
49
|
-
# Google::Cloud::Talent::V4beta1::ApplicationService::Client.configure do |config|
|
|
50
|
-
# config.timeout =
|
|
49
|
+
# ::Google::Cloud::Talent::V4beta1::ApplicationService::Client.configure do |config|
|
|
50
|
+
# config.timeout = 10.0
|
|
51
51
|
# end
|
|
52
52
|
#
|
|
53
53
|
# @yield [config] Configure the Client client.
|
|
@@ -107,7 +107,7 @@ module Google
|
|
|
107
107
|
# but structural changes (adding new fields, etc.) are not allowed. Structural changes
|
|
108
108
|
# should be made on {Client.configure}.
|
|
109
109
|
#
|
|
110
|
-
# See {Google::Cloud::Talent::V4beta1::ApplicationService::Client::Configuration}
|
|
110
|
+
# See {::Google::Cloud::Talent::V4beta1::ApplicationService::Client::Configuration}
|
|
111
111
|
# for a description of the configuration fields.
|
|
112
112
|
#
|
|
113
113
|
# @yield [config] Configure the Client client.
|
|
@@ -128,13 +128,13 @@ module Google
|
|
|
128
128
|
# To create a new ApplicationService client with the default
|
|
129
129
|
# configuration:
|
|
130
130
|
#
|
|
131
|
-
# client = Google::Cloud::Talent::V4beta1::ApplicationService::Client.new
|
|
131
|
+
# client = ::Google::Cloud::Talent::V4beta1::ApplicationService::Client.new
|
|
132
132
|
#
|
|
133
133
|
# To create a new ApplicationService client with a custom
|
|
134
134
|
# configuration:
|
|
135
135
|
#
|
|
136
|
-
# client = Google::Cloud::Talent::V4beta1::ApplicationService::Client.new do |config|
|
|
137
|
-
# config.timeout =
|
|
136
|
+
# client = ::Google::Cloud::Talent::V4beta1::ApplicationService::Client.new do |config|
|
|
137
|
+
# config.timeout = 10.0
|
|
138
138
|
# end
|
|
139
139
|
#
|
|
140
140
|
# @yield [config] Configure the ApplicationService client.
|
|
@@ -159,10 +159,11 @@ module Google
|
|
|
159
159
|
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
|
160
160
|
credentials = Credentials.new credentials, scope: @config.scope
|
|
161
161
|
end
|
|
162
|
-
@quota_project_id =
|
|
162
|
+
@quota_project_id = @config.quota_project
|
|
163
|
+
@quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
|
|
163
164
|
|
|
164
|
-
@application_service_stub = Gapic::ServiceStub.new(
|
|
165
|
-
Google::Cloud::Talent::V4beta1::ApplicationService::Stub,
|
|
165
|
+
@application_service_stub = ::Gapic::ServiceStub.new(
|
|
166
|
+
::Google::Cloud::Talent::V4beta1::ApplicationService::Stub,
|
|
166
167
|
credentials: credentials,
|
|
167
168
|
endpoint: @config.endpoint,
|
|
168
169
|
channel_args: @config.channel_args,
|
|
@@ -177,12 +178,12 @@ module Google
|
|
|
177
178
|
#
|
|
178
179
|
# @overload create_application(request, options = nil)
|
|
179
180
|
# Pass arguments to `create_application` via a request object, either of type
|
|
180
|
-
# {Google::Cloud::Talent::V4beta1::CreateApplicationRequest} or an equivalent Hash.
|
|
181
|
+
# {::Google::Cloud::Talent::V4beta1::CreateApplicationRequest} or an equivalent Hash.
|
|
181
182
|
#
|
|
182
|
-
# @param request [Google::Cloud::Talent::V4beta1::CreateApplicationRequest, Hash]
|
|
183
|
+
# @param request [::Google::Cloud::Talent::V4beta1::CreateApplicationRequest, ::Hash]
|
|
183
184
|
# A request object representing the call parameters. Required. To specify no
|
|
184
185
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
185
|
-
# @param options [Gapic::CallOptions, Hash]
|
|
186
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
186
187
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
187
188
|
#
|
|
188
189
|
# @overload create_application(parent: nil, application: nil)
|
|
@@ -190,36 +191,36 @@ module Google
|
|
|
190
191
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
191
192
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
192
193
|
#
|
|
193
|
-
# @param parent [String]
|
|
194
|
+
# @param parent [::String]
|
|
194
195
|
# Required. Resource name of the profile under which the application is created.
|
|
195
196
|
#
|
|
196
197
|
# The format is
|
|
197
198
|
# "projects/\\{project_id}/tenants/\\{tenant_id}/profiles/\\{profile_id}".
|
|
198
199
|
# For example, "projects/foo/tenants/bar/profiles/baz".
|
|
199
|
-
# @param application [Google::Cloud::Talent::V4beta1::Application, Hash]
|
|
200
|
+
# @param application [::Google::Cloud::Talent::V4beta1::Application, ::Hash]
|
|
200
201
|
# Required. The application to be created.
|
|
201
202
|
#
|
|
202
203
|
# @yield [response, operation] Access the result along with the RPC operation
|
|
203
|
-
# @yieldparam response [Google::Cloud::Talent::V4beta1::Application]
|
|
204
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
|
204
|
+
# @yieldparam response [::Google::Cloud::Talent::V4beta1::Application]
|
|
205
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
|
205
206
|
#
|
|
206
|
-
# @return [Google::Cloud::Talent::V4beta1::Application]
|
|
207
|
+
# @return [::Google::Cloud::Talent::V4beta1::Application]
|
|
207
208
|
#
|
|
208
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
|
209
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
209
210
|
#
|
|
210
211
|
def create_application request, options = nil
|
|
211
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
|
212
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
212
213
|
|
|
213
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::Talent::V4beta1::CreateApplicationRequest
|
|
214
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Talent::V4beta1::CreateApplicationRequest
|
|
214
215
|
|
|
215
216
|
# Converts hash and nil to an options object
|
|
216
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
217
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
217
218
|
|
|
218
219
|
# Customize the options with defaults
|
|
219
220
|
metadata = @config.rpcs.create_application.metadata.to_h
|
|
220
221
|
|
|
221
222
|
# Set x-goog-api-client and x-goog-user-project headers
|
|
222
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
|
223
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
223
224
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
224
225
|
gapic_version: ::Google::Cloud::Talent::V4beta1::VERSION
|
|
225
226
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
@@ -240,8 +241,8 @@ module Google
|
|
|
240
241
|
yield response, operation if block_given?
|
|
241
242
|
return response
|
|
242
243
|
end
|
|
243
|
-
rescue GRPC::BadStatus => e
|
|
244
|
-
raise Google::Cloud::Error.from_error(e)
|
|
244
|
+
rescue ::GRPC::BadStatus => e
|
|
245
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
245
246
|
end
|
|
246
247
|
|
|
247
248
|
##
|
|
@@ -249,12 +250,12 @@ module Google
|
|
|
249
250
|
#
|
|
250
251
|
# @overload get_application(request, options = nil)
|
|
251
252
|
# Pass arguments to `get_application` via a request object, either of type
|
|
252
|
-
# {Google::Cloud::Talent::V4beta1::GetApplicationRequest} or an equivalent Hash.
|
|
253
|
+
# {::Google::Cloud::Talent::V4beta1::GetApplicationRequest} or an equivalent Hash.
|
|
253
254
|
#
|
|
254
|
-
# @param request [Google::Cloud::Talent::V4beta1::GetApplicationRequest, Hash]
|
|
255
|
+
# @param request [::Google::Cloud::Talent::V4beta1::GetApplicationRequest, ::Hash]
|
|
255
256
|
# A request object representing the call parameters. Required. To specify no
|
|
256
257
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
257
|
-
# @param options [Gapic::CallOptions, Hash]
|
|
258
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
258
259
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
259
260
|
#
|
|
260
261
|
# @overload get_application(name: nil)
|
|
@@ -262,7 +263,7 @@ module Google
|
|
|
262
263
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
263
264
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
264
265
|
#
|
|
265
|
-
# @param name [String]
|
|
266
|
+
# @param name [::String]
|
|
266
267
|
# Required. The resource name of the application to be retrieved.
|
|
267
268
|
#
|
|
268
269
|
# The format is
|
|
@@ -270,26 +271,26 @@ module Google
|
|
|
270
271
|
# For example, "projects/foo/tenants/bar/profiles/baz/applications/qux".
|
|
271
272
|
#
|
|
272
273
|
# @yield [response, operation] Access the result along with the RPC operation
|
|
273
|
-
# @yieldparam response [Google::Cloud::Talent::V4beta1::Application]
|
|
274
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
|
274
|
+
# @yieldparam response [::Google::Cloud::Talent::V4beta1::Application]
|
|
275
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
|
275
276
|
#
|
|
276
|
-
# @return [Google::Cloud::Talent::V4beta1::Application]
|
|
277
|
+
# @return [::Google::Cloud::Talent::V4beta1::Application]
|
|
277
278
|
#
|
|
278
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
|
279
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
279
280
|
#
|
|
280
281
|
def get_application request, options = nil
|
|
281
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
|
282
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
282
283
|
|
|
283
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::Talent::V4beta1::GetApplicationRequest
|
|
284
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Talent::V4beta1::GetApplicationRequest
|
|
284
285
|
|
|
285
286
|
# Converts hash and nil to an options object
|
|
286
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
287
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
287
288
|
|
|
288
289
|
# Customize the options with defaults
|
|
289
290
|
metadata = @config.rpcs.get_application.metadata.to_h
|
|
290
291
|
|
|
291
292
|
# Set x-goog-api-client and x-goog-user-project headers
|
|
292
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
|
293
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
293
294
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
294
295
|
gapic_version: ::Google::Cloud::Talent::V4beta1::VERSION
|
|
295
296
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
@@ -310,8 +311,8 @@ module Google
|
|
|
310
311
|
yield response, operation if block_given?
|
|
311
312
|
return response
|
|
312
313
|
end
|
|
313
|
-
rescue GRPC::BadStatus => e
|
|
314
|
-
raise Google::Cloud::Error.from_error(e)
|
|
314
|
+
rescue ::GRPC::BadStatus => e
|
|
315
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
315
316
|
end
|
|
316
317
|
|
|
317
318
|
##
|
|
@@ -319,12 +320,12 @@ module Google
|
|
|
319
320
|
#
|
|
320
321
|
# @overload update_application(request, options = nil)
|
|
321
322
|
# Pass arguments to `update_application` via a request object, either of type
|
|
322
|
-
# {Google::Cloud::Talent::V4beta1::UpdateApplicationRequest} or an equivalent Hash.
|
|
323
|
+
# {::Google::Cloud::Talent::V4beta1::UpdateApplicationRequest} or an equivalent Hash.
|
|
323
324
|
#
|
|
324
|
-
# @param request [Google::Cloud::Talent::V4beta1::UpdateApplicationRequest, Hash]
|
|
325
|
+
# @param request [::Google::Cloud::Talent::V4beta1::UpdateApplicationRequest, ::Hash]
|
|
325
326
|
# A request object representing the call parameters. Required. To specify no
|
|
326
327
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
327
|
-
# @param options [Gapic::CallOptions, Hash]
|
|
328
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
328
329
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
329
330
|
#
|
|
330
331
|
# @overload update_application(application: nil, update_mask: nil)
|
|
@@ -332,38 +333,38 @@ module Google
|
|
|
332
333
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
333
334
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
334
335
|
#
|
|
335
|
-
# @param application [Google::Cloud::Talent::V4beta1::Application, Hash]
|
|
336
|
+
# @param application [::Google::Cloud::Talent::V4beta1::Application, ::Hash]
|
|
336
337
|
# Required. The application resource to replace the current resource in the system.
|
|
337
|
-
# @param update_mask [Google::Protobuf::FieldMask, Hash]
|
|
338
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
|
338
339
|
# Strongly recommended for the best service experience.
|
|
339
340
|
#
|
|
340
|
-
# If {Google::Cloud::Talent::V4beta1::UpdateApplicationRequest#update_mask update_mask} is provided, only the specified fields in
|
|
341
|
-
# {Google::Cloud::Talent::V4beta1::UpdateApplicationRequest#application application} are updated. Otherwise all the fields are updated.
|
|
341
|
+
# If {::Google::Cloud::Talent::V4beta1::UpdateApplicationRequest#update_mask update_mask} is provided, only the specified fields in
|
|
342
|
+
# {::Google::Cloud::Talent::V4beta1::UpdateApplicationRequest#application application} are updated. Otherwise all the fields are updated.
|
|
342
343
|
#
|
|
343
344
|
# A field mask to specify the application fields to be updated. Only
|
|
344
|
-
# top level fields of {Google::Cloud::Talent::V4beta1::Application Application} are supported.
|
|
345
|
+
# top level fields of {::Google::Cloud::Talent::V4beta1::Application Application} are supported.
|
|
345
346
|
#
|
|
346
347
|
# @yield [response, operation] Access the result along with the RPC operation
|
|
347
|
-
# @yieldparam response [Google::Cloud::Talent::V4beta1::Application]
|
|
348
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
|
348
|
+
# @yieldparam response [::Google::Cloud::Talent::V4beta1::Application]
|
|
349
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
|
349
350
|
#
|
|
350
|
-
# @return [Google::Cloud::Talent::V4beta1::Application]
|
|
351
|
+
# @return [::Google::Cloud::Talent::V4beta1::Application]
|
|
351
352
|
#
|
|
352
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
|
353
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
353
354
|
#
|
|
354
355
|
def update_application request, options = nil
|
|
355
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
|
356
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
356
357
|
|
|
357
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::Talent::V4beta1::UpdateApplicationRequest
|
|
358
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Talent::V4beta1::UpdateApplicationRequest
|
|
358
359
|
|
|
359
360
|
# Converts hash and nil to an options object
|
|
360
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
361
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
361
362
|
|
|
362
363
|
# Customize the options with defaults
|
|
363
364
|
metadata = @config.rpcs.update_application.metadata.to_h
|
|
364
365
|
|
|
365
366
|
# Set x-goog-api-client and x-goog-user-project headers
|
|
366
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
|
367
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
367
368
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
368
369
|
gapic_version: ::Google::Cloud::Talent::V4beta1::VERSION
|
|
369
370
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
@@ -384,8 +385,8 @@ module Google
|
|
|
384
385
|
yield response, operation if block_given?
|
|
385
386
|
return response
|
|
386
387
|
end
|
|
387
|
-
rescue GRPC::BadStatus => e
|
|
388
|
-
raise Google::Cloud::Error.from_error(e)
|
|
388
|
+
rescue ::GRPC::BadStatus => e
|
|
389
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
389
390
|
end
|
|
390
391
|
|
|
391
392
|
##
|
|
@@ -393,12 +394,12 @@ module Google
|
|
|
393
394
|
#
|
|
394
395
|
# @overload delete_application(request, options = nil)
|
|
395
396
|
# Pass arguments to `delete_application` via a request object, either of type
|
|
396
|
-
# {Google::Cloud::Talent::V4beta1::DeleteApplicationRequest} or an equivalent Hash.
|
|
397
|
+
# {::Google::Cloud::Talent::V4beta1::DeleteApplicationRequest} or an equivalent Hash.
|
|
397
398
|
#
|
|
398
|
-
# @param request [Google::Cloud::Talent::V4beta1::DeleteApplicationRequest, Hash]
|
|
399
|
+
# @param request [::Google::Cloud::Talent::V4beta1::DeleteApplicationRequest, ::Hash]
|
|
399
400
|
# A request object representing the call parameters. Required. To specify no
|
|
400
401
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
401
|
-
# @param options [Gapic::CallOptions, Hash]
|
|
402
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
402
403
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
403
404
|
#
|
|
404
405
|
# @overload delete_application(name: nil)
|
|
@@ -406,7 +407,7 @@ module Google
|
|
|
406
407
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
407
408
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
408
409
|
#
|
|
409
|
-
# @param name [String]
|
|
410
|
+
# @param name [::String]
|
|
410
411
|
# Required. The resource name of the application to be deleted.
|
|
411
412
|
#
|
|
412
413
|
# The format is
|
|
@@ -414,26 +415,26 @@ module Google
|
|
|
414
415
|
# For example, "projects/foo/tenants/bar/profiles/baz/applications/qux".
|
|
415
416
|
#
|
|
416
417
|
# @yield [response, operation] Access the result along with the RPC operation
|
|
417
|
-
# @yieldparam response [Google::Protobuf::Empty]
|
|
418
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
|
418
|
+
# @yieldparam response [::Google::Protobuf::Empty]
|
|
419
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
|
419
420
|
#
|
|
420
|
-
# @return [Google::Protobuf::Empty]
|
|
421
|
+
# @return [::Google::Protobuf::Empty]
|
|
421
422
|
#
|
|
422
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
|
423
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
423
424
|
#
|
|
424
425
|
def delete_application request, options = nil
|
|
425
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
|
426
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
426
427
|
|
|
427
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::Talent::V4beta1::DeleteApplicationRequest
|
|
428
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Talent::V4beta1::DeleteApplicationRequest
|
|
428
429
|
|
|
429
430
|
# Converts hash and nil to an options object
|
|
430
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
431
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
431
432
|
|
|
432
433
|
# Customize the options with defaults
|
|
433
434
|
metadata = @config.rpcs.delete_application.metadata.to_h
|
|
434
435
|
|
|
435
436
|
# Set x-goog-api-client and x-goog-user-project headers
|
|
436
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
|
437
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
437
438
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
438
439
|
gapic_version: ::Google::Cloud::Talent::V4beta1::VERSION
|
|
439
440
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
@@ -454,8 +455,8 @@ module Google
|
|
|
454
455
|
yield response, operation if block_given?
|
|
455
456
|
return response
|
|
456
457
|
end
|
|
457
|
-
rescue GRPC::BadStatus => e
|
|
458
|
-
raise Google::Cloud::Error.from_error(e)
|
|
458
|
+
rescue ::GRPC::BadStatus => e
|
|
459
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
459
460
|
end
|
|
460
461
|
|
|
461
462
|
##
|
|
@@ -463,12 +464,12 @@ module Google
|
|
|
463
464
|
#
|
|
464
465
|
# @overload list_applications(request, options = nil)
|
|
465
466
|
# Pass arguments to `list_applications` via a request object, either of type
|
|
466
|
-
# {Google::Cloud::Talent::V4beta1::ListApplicationsRequest} or an equivalent Hash.
|
|
467
|
+
# {::Google::Cloud::Talent::V4beta1::ListApplicationsRequest} or an equivalent Hash.
|
|
467
468
|
#
|
|
468
|
-
# @param request [Google::Cloud::Talent::V4beta1::ListApplicationsRequest, Hash]
|
|
469
|
+
# @param request [::Google::Cloud::Talent::V4beta1::ListApplicationsRequest, ::Hash]
|
|
469
470
|
# A request object representing the call parameters. Required. To specify no
|
|
470
471
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
471
|
-
# @param options [Gapic::CallOptions, Hash]
|
|
472
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
472
473
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
473
474
|
#
|
|
474
475
|
# @overload list_applications(parent: nil, page_token: nil, page_size: nil)
|
|
@@ -476,39 +477,39 @@ module Google
|
|
|
476
477
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
477
478
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
478
479
|
#
|
|
479
|
-
# @param parent [String]
|
|
480
|
+
# @param parent [::String]
|
|
480
481
|
# Required. Resource name of the profile under which the application is created.
|
|
481
482
|
#
|
|
482
483
|
# The format is
|
|
483
484
|
# "projects/\\{project_id}/tenants/\\{tenant_id}/profiles/\\{profile_id}", for
|
|
484
485
|
# example, "projects/foo/tenants/bar/profiles/baz".
|
|
485
|
-
# @param page_token [String]
|
|
486
|
+
# @param page_token [::String]
|
|
486
487
|
# The starting indicator from which to return results.
|
|
487
|
-
# @param page_size [Integer]
|
|
488
|
+
# @param page_size [::Integer]
|
|
488
489
|
# The maximum number of applications to be returned, at most 100.
|
|
489
490
|
# Default is 100 if a non-positive number is provided.
|
|
490
491
|
#
|
|
491
492
|
# @yield [response, operation] Access the result along with the RPC operation
|
|
492
|
-
# @yieldparam response [Gapic::PagedEnumerable
|
|
493
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
|
493
|
+
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Talent::V4beta1::Application>]
|
|
494
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
|
494
495
|
#
|
|
495
|
-
# @return [Gapic::PagedEnumerable
|
|
496
|
+
# @return [::Gapic::PagedEnumerable<::Google::Cloud::Talent::V4beta1::Application>]
|
|
496
497
|
#
|
|
497
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
|
498
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
498
499
|
#
|
|
499
500
|
def list_applications request, options = nil
|
|
500
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
|
501
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
501
502
|
|
|
502
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::Talent::V4beta1::ListApplicationsRequest
|
|
503
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Talent::V4beta1::ListApplicationsRequest
|
|
503
504
|
|
|
504
505
|
# Converts hash and nil to an options object
|
|
505
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
506
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
506
507
|
|
|
507
508
|
# Customize the options with defaults
|
|
508
509
|
metadata = @config.rpcs.list_applications.metadata.to_h
|
|
509
510
|
|
|
510
511
|
# Set x-goog-api-client and x-goog-user-project headers
|
|
511
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
|
512
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
512
513
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
513
514
|
gapic_version: ::Google::Cloud::Talent::V4beta1::VERSION
|
|
514
515
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
@@ -526,12 +527,12 @@ module Google
|
|
|
526
527
|
retry_policy: @config.retry_policy
|
|
527
528
|
|
|
528
529
|
@application_service_stub.call_rpc :list_applications, request, options: options do |response, operation|
|
|
529
|
-
response = Gapic::PagedEnumerable.new @application_service_stub, :list_applications, request, response, operation, options
|
|
530
|
+
response = ::Gapic::PagedEnumerable.new @application_service_stub, :list_applications, request, response, operation, options
|
|
530
531
|
yield response, operation if block_given?
|
|
531
532
|
return response
|
|
532
533
|
end
|
|
533
|
-
rescue GRPC::BadStatus => e
|
|
534
|
-
raise Google::Cloud::Error.from_error(e)
|
|
534
|
+
rescue ::GRPC::BadStatus => e
|
|
535
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
535
536
|
end
|
|
536
537
|
|
|
537
538
|
##
|
|
@@ -541,7 +542,7 @@ module Google
|
|
|
541
542
|
# providing control over timeouts, retry behavior, logging, transport
|
|
542
543
|
# parameters, and other low-level controls. Certain parameters can also be
|
|
543
544
|
# applied individually to specific RPCs. See
|
|
544
|
-
# {Google::Cloud::Talent::V4beta1::ApplicationService::Client::Configuration::Rpcs}
|
|
545
|
+
# {::Google::Cloud::Talent::V4beta1::ApplicationService::Client::Configuration::Rpcs}
|
|
545
546
|
# for a list of RPCs that can be configured independently.
|
|
546
547
|
#
|
|
547
548
|
# Configuration can be applied globally to all clients, or to a single client
|
|
@@ -552,22 +553,22 @@ module Google
|
|
|
552
553
|
# To modify the global config, setting the timeout for create_application
|
|
553
554
|
# to 20 seconds, and all remaining timeouts to 10 seconds:
|
|
554
555
|
#
|
|
555
|
-
# Google::Cloud::Talent::V4beta1::ApplicationService::Client.configure do |config|
|
|
556
|
-
# config.timeout =
|
|
557
|
-
# config.rpcs.create_application.timeout =
|
|
556
|
+
# ::Google::Cloud::Talent::V4beta1::ApplicationService::Client.configure do |config|
|
|
557
|
+
# config.timeout = 10.0
|
|
558
|
+
# config.rpcs.create_application.timeout = 20.0
|
|
558
559
|
# end
|
|
559
560
|
#
|
|
560
561
|
# To apply the above configuration only to a new client:
|
|
561
562
|
#
|
|
562
|
-
# client = Google::Cloud::Talent::V4beta1::ApplicationService::Client.new do |config|
|
|
563
|
-
# config.timeout =
|
|
564
|
-
# config.rpcs.create_application.timeout =
|
|
563
|
+
# client = ::Google::Cloud::Talent::V4beta1::ApplicationService::Client.new do |config|
|
|
564
|
+
# config.timeout = 10.0
|
|
565
|
+
# config.rpcs.create_application.timeout = 20.0
|
|
565
566
|
# end
|
|
566
567
|
#
|
|
567
568
|
# @!attribute [rw] endpoint
|
|
568
569
|
# The hostname or hostname:port of the service endpoint.
|
|
569
570
|
# Defaults to `"jobs.googleapis.com"`.
|
|
570
|
-
# @return [String]
|
|
571
|
+
# @return [::String]
|
|
571
572
|
# @!attribute [rw] credentials
|
|
572
573
|
# Credentials to send with calls. You may provide any of the following types:
|
|
573
574
|
# * (`String`) The path to a service account key file in JSON format
|
|
@@ -579,29 +580,29 @@ module Google
|
|
|
579
580
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
|
580
581
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
|
581
582
|
# * (`nil`) indicating no credentials
|
|
582
|
-
# @return [Object]
|
|
583
|
+
# @return [::Object]
|
|
583
584
|
# @!attribute [rw] scope
|
|
584
585
|
# The OAuth scopes
|
|
585
|
-
# @return [Array
|
|
586
|
+
# @return [::Array<::String>]
|
|
586
587
|
# @!attribute [rw] lib_name
|
|
587
588
|
# The library name as recorded in instrumentation and logging
|
|
588
|
-
# @return [String]
|
|
589
|
+
# @return [::String]
|
|
589
590
|
# @!attribute [rw] lib_version
|
|
590
591
|
# The library version as recorded in instrumentation and logging
|
|
591
|
-
# @return [String]
|
|
592
|
+
# @return [::String]
|
|
592
593
|
# @!attribute [rw] channel_args
|
|
593
594
|
# Extra parameters passed to the gRPC channel. Note: this is ignored if a
|
|
594
595
|
# `GRPC::Core::Channel` object is provided as the credential.
|
|
595
|
-
# @return [Hash]
|
|
596
|
+
# @return [::Hash]
|
|
596
597
|
# @!attribute [rw] interceptors
|
|
597
598
|
# An array of interceptors that are run before calls are executed.
|
|
598
|
-
# @return [Array
|
|
599
|
+
# @return [::Array<::GRPC::ClientInterceptor>]
|
|
599
600
|
# @!attribute [rw] timeout
|
|
600
|
-
# The call timeout in
|
|
601
|
-
# @return [Numeric]
|
|
601
|
+
# The call timeout in seconds.
|
|
602
|
+
# @return [::Numeric]
|
|
602
603
|
# @!attribute [rw] metadata
|
|
603
604
|
# Additional gRPC headers to be sent with the call.
|
|
604
|
-
# @return [Hash{Symbol
|
|
605
|
+
# @return [::Hash{::Symbol=>::String}]
|
|
605
606
|
# @!attribute [rw] retry_policy
|
|
606
607
|
# The retry policy. The value is a hash with the following keys:
|
|
607
608
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
@@ -609,25 +610,29 @@ module Google
|
|
|
609
610
|
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
610
611
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
611
612
|
# trigger a retry.
|
|
612
|
-
# @return [Hash]
|
|
613
|
+
# @return [::Hash]
|
|
614
|
+
# @!attribute [rw] quota_project
|
|
615
|
+
# A separate project against which to charge quota.
|
|
616
|
+
# @return [::String]
|
|
613
617
|
#
|
|
614
618
|
class Configuration
|
|
615
|
-
extend Gapic::Config
|
|
619
|
+
extend ::Gapic::Config
|
|
616
620
|
|
|
617
|
-
config_attr :endpoint,
|
|
618
|
-
config_attr :credentials,
|
|
621
|
+
config_attr :endpoint, "jobs.googleapis.com", ::String
|
|
622
|
+
config_attr :credentials, nil do |value|
|
|
619
623
|
allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
|
620
624
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
|
621
625
|
allowed.any? { |klass| klass === value }
|
|
622
626
|
end
|
|
623
|
-
config_attr :scope,
|
|
624
|
-
config_attr :lib_name,
|
|
625
|
-
config_attr :lib_version,
|
|
626
|
-
config_attr(:channel_args,
|
|
627
|
-
config_attr :interceptors,
|
|
628
|
-
config_attr :timeout,
|
|
629
|
-
config_attr :metadata,
|
|
630
|
-
config_attr :retry_policy,
|
|
627
|
+
config_attr :scope, nil, ::String, ::Array, nil
|
|
628
|
+
config_attr :lib_name, nil, ::String, nil
|
|
629
|
+
config_attr :lib_version, nil, ::String, nil
|
|
630
|
+
config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
|
|
631
|
+
config_attr :interceptors, nil, ::Array, nil
|
|
632
|
+
config_attr :timeout, nil, ::Numeric, nil
|
|
633
|
+
config_attr :metadata, nil, ::Hash, nil
|
|
634
|
+
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
|
635
|
+
config_attr :quota_project, nil, ::String, nil
|
|
631
636
|
|
|
632
637
|
# @private
|
|
633
638
|
def initialize parent_config = nil
|
|
@@ -643,7 +648,7 @@ module Google
|
|
|
643
648
|
def rpcs
|
|
644
649
|
@rpcs ||= begin
|
|
645
650
|
parent_rpcs = nil
|
|
646
|
-
parent_rpcs = @parent_config.rpcs if @parent_config&.respond_to?
|
|
651
|
+
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config&.respond_to?(:rpcs)
|
|
647
652
|
Rpcs.new parent_rpcs
|
|
648
653
|
end
|
|
649
654
|
end
|
|
@@ -668,42 +673,42 @@ module Google
|
|
|
668
673
|
class Rpcs
|
|
669
674
|
##
|
|
670
675
|
# RPC-specific configuration for `create_application`
|
|
671
|
-
# @return [Gapic::Config::Method]
|
|
676
|
+
# @return [::Gapic::Config::Method]
|
|
672
677
|
#
|
|
673
678
|
attr_reader :create_application
|
|
674
679
|
##
|
|
675
680
|
# RPC-specific configuration for `get_application`
|
|
676
|
-
# @return [Gapic::Config::Method]
|
|
681
|
+
# @return [::Gapic::Config::Method]
|
|
677
682
|
#
|
|
678
683
|
attr_reader :get_application
|
|
679
684
|
##
|
|
680
685
|
# RPC-specific configuration for `update_application`
|
|
681
|
-
# @return [Gapic::Config::Method]
|
|
686
|
+
# @return [::Gapic::Config::Method]
|
|
682
687
|
#
|
|
683
688
|
attr_reader :update_application
|
|
684
689
|
##
|
|
685
690
|
# RPC-specific configuration for `delete_application`
|
|
686
|
-
# @return [Gapic::Config::Method]
|
|
691
|
+
# @return [::Gapic::Config::Method]
|
|
687
692
|
#
|
|
688
693
|
attr_reader :delete_application
|
|
689
694
|
##
|
|
690
695
|
# RPC-specific configuration for `list_applications`
|
|
691
|
-
# @return [Gapic::Config::Method]
|
|
696
|
+
# @return [::Gapic::Config::Method]
|
|
692
697
|
#
|
|
693
698
|
attr_reader :list_applications
|
|
694
699
|
|
|
695
700
|
# @private
|
|
696
701
|
def initialize parent_rpcs = nil
|
|
697
702
|
create_application_config = parent_rpcs&.create_application if parent_rpcs&.respond_to? :create_application
|
|
698
|
-
@create_application = Gapic::Config::Method.new create_application_config
|
|
703
|
+
@create_application = ::Gapic::Config::Method.new create_application_config
|
|
699
704
|
get_application_config = parent_rpcs&.get_application if parent_rpcs&.respond_to? :get_application
|
|
700
|
-
@get_application = Gapic::Config::Method.new get_application_config
|
|
705
|
+
@get_application = ::Gapic::Config::Method.new get_application_config
|
|
701
706
|
update_application_config = parent_rpcs&.update_application if parent_rpcs&.respond_to? :update_application
|
|
702
|
-
@update_application = Gapic::Config::Method.new update_application_config
|
|
707
|
+
@update_application = ::Gapic::Config::Method.new update_application_config
|
|
703
708
|
delete_application_config = parent_rpcs&.delete_application if parent_rpcs&.respond_to? :delete_application
|
|
704
|
-
@delete_application = Gapic::Config::Method.new delete_application_config
|
|
709
|
+
@delete_application = ::Gapic::Config::Method.new delete_application_config
|
|
705
710
|
list_applications_config = parent_rpcs&.list_applications if parent_rpcs&.respond_to? :list_applications
|
|
706
|
-
@list_applications = Gapic::Config::Method.new list_applications_config
|
|
711
|
+
@list_applications = ::Gapic::Config::Method.new list_applications_config
|
|
707
712
|
|
|
708
713
|
yield self if block_given?
|
|
709
714
|
end
|