google-cloud-talent 0.8.1 → 0.20.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardopts +2 -1
- data/AUTHENTICATION.md +51 -59
- data/LICENSE.md +203 -0
- data/MIGRATING.md +347 -0
- data/README.md +35 -25
- data/lib/{google/cloud/talent/v4beta1/doc/google/protobuf/empty.rb → google-cloud-talent.rb} +5 -15
- data/lib/google/cloud/talent.rb +254 -442
- data/lib/google/cloud/talent/version.rb +6 -2
- metadata +62 -111
- data/LICENSE +0 -201
- data/lib/google/cloud/talent/v4beta1.rb +0 -543
- data/lib/google/cloud/talent/v4beta1/application_pb.rb +0 -62
- data/lib/google/cloud/talent/v4beta1/application_service_client.rb +0 -491
- data/lib/google/cloud/talent/v4beta1/application_service_client_config.json +0 -51
- data/lib/google/cloud/talent/v4beta1/application_service_pb.rb +0 -54
- data/lib/google/cloud/talent/v4beta1/application_service_services_pb.rb +0 -56
- data/lib/google/cloud/talent/v4beta1/batch_pb.rb +0 -18
- data/lib/google/cloud/talent/v4beta1/common_pb.rb +0 -341
- data/lib/google/cloud/talent/v4beta1/company_pb.rb +0 -40
- data/lib/google/cloud/talent/v4beta1/company_service_client.rb +0 -535
- data/lib/google/cloud/talent/v4beta1/company_service_client_config.json +0 -51
- data/lib/google/cloud/talent/v4beta1/company_service_pb.rb +0 -55
- data/lib/google/cloud/talent/v4beta1/company_service_services_pb.rb +0 -56
- data/lib/google/cloud/talent/v4beta1/completion_client.rb +0 -359
- data/lib/google/cloud/talent/v4beta1/completion_client_config.json +0 -31
- data/lib/google/cloud/talent/v4beta1/completion_service_pb.rb +0 -55
- data/lib/google/cloud/talent/v4beta1/completion_service_services_pb.rb +0 -48
- data/lib/google/cloud/talent/v4beta1/credentials.rb +0 -42
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/application.rb +0 -166
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/application_service.rb +0 -107
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/common.rb +0 -1147
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/company.rb +0 -110
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/company_service.rb +0 -122
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/completion_service.rb +0 -141
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/event.rb +0 -238
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/event_service.rb +0 -36
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/filters.rb +0 -847
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/histogram.rb +0 -55
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/job.rb +0 -363
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/job_service.rb +0 -762
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/profile.rb +0 -808
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/profile_service.rb +0 -446
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/tenant.rb +0 -74
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/tenant_service.rb +0 -101
- data/lib/google/cloud/talent/v4beta1/doc/google/longrunning/operations.rb +0 -51
- data/lib/google/cloud/talent/v4beta1/doc/google/protobuf/any.rb +0 -131
- data/lib/google/cloud/talent/v4beta1/doc/google/protobuf/duration.rb +0 -91
- data/lib/google/cloud/talent/v4beta1/doc/google/protobuf/field_mask.rb +0 -222
- data/lib/google/cloud/talent/v4beta1/doc/google/protobuf/timestamp.rb +0 -113
- data/lib/google/cloud/talent/v4beta1/doc/google/protobuf/wrappers.rb +0 -34
- data/lib/google/cloud/talent/v4beta1/doc/google/rpc/status.rb +0 -87
- data/lib/google/cloud/talent/v4beta1/doc/google/type/date.rb +0 -43
- data/lib/google/cloud/talent/v4beta1/doc/google/type/latlng.rb +0 -31
- data/lib/google/cloud/talent/v4beta1/doc/google/type/money.rb +0 -36
- data/lib/google/cloud/talent/v4beta1/doc/google/type/postal_address.rb +0 -126
- data/lib/google/cloud/talent/v4beta1/doc/google/type/timeofday.rb +0 -37
- data/lib/google/cloud/talent/v4beta1/event_pb.rb +0 -69
- data/lib/google/cloud/talent/v4beta1/event_service_client.rb +0 -268
- data/lib/google/cloud/talent/v4beta1/event_service_client_config.json +0 -31
- data/lib/google/cloud/talent/v4beta1/event_service_pb.rb +0 -26
- data/lib/google/cloud/talent/v4beta1/event_service_services_pb.rb +0 -53
- data/lib/google/cloud/talent/v4beta1/filters_pb.rb +0 -187
- data/lib/google/cloud/talent/v4beta1/helpers.rb +0 -162
- data/lib/google/cloud/talent/v4beta1/histogram_pb.rb +0 -27
- data/lib/google/cloud/talent/v4beta1/job_pb.rb +0 -71
- data/lib/google/cloud/talent/v4beta1/job_service_client.rb +0 -1576
- data/lib/google/cloud/talent/v4beta1/job_service_client_config.json +0 -76
- data/lib/google/cloud/talent/v4beta1/job_service_pb.rb +0 -165
- data/lib/google/cloud/talent/v4beta1/job_service_services_pb.rb +0 -92
- data/lib/google/cloud/talent/v4beta1/profile_pb.rb +0 -212
- data/lib/google/cloud/talent/v4beta1/profile_service_client.rb +0 -844
- data/lib/google/cloud/talent/v4beta1/profile_service_client_config.json +0 -56
- data/lib/google/cloud/talent/v4beta1/profile_service_pb.rb +0 -88
- data/lib/google/cloud/talent/v4beta1/profile_service_services_pb.rb +0 -67
- data/lib/google/cloud/talent/v4beta1/tenant_pb.rb +0 -33
- data/lib/google/cloud/talent/v4beta1/tenant_service_client.rb +0 -476
- data/lib/google/cloud/talent/v4beta1/tenant_service_client_config.json +0 -51
- data/lib/google/cloud/talent/v4beta1/tenant_service_pb.rb +0 -54
- data/lib/google/cloud/talent/v4beta1/tenant_service_services_pb.rb +0 -55
@@ -1,37 +0,0 @@
|
|
1
|
-
# Copyright 2019 Google LLC
|
2
|
-
#
|
3
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
-
# you may not use this file except in compliance with the License.
|
5
|
-
# You may obtain a copy of the License at
|
6
|
-
#
|
7
|
-
# https://www.apache.org/licenses/LICENSE-2.0
|
8
|
-
#
|
9
|
-
# Unless required by applicable law or agreed to in writing, software
|
10
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
-
# See the License for the specific language governing permissions and
|
13
|
-
# limitations under the License.
|
14
|
-
|
15
|
-
|
16
|
-
module Google
|
17
|
-
module Type
|
18
|
-
# Represents a time of day. The date and time zone are either not significant
|
19
|
-
# or are specified elsewhere. An API may choose to allow leap seconds. Related
|
20
|
-
# types are {Google::Type::Date} and `google.protobuf.Timestamp`.
|
21
|
-
# @!attribute [rw] hours
|
22
|
-
# @return [Integer]
|
23
|
-
# Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
|
24
|
-
# to allow the value "24:00:00" for scenarios like business closing time.
|
25
|
-
# @!attribute [rw] minutes
|
26
|
-
# @return [Integer]
|
27
|
-
# Minutes of hour of day. Must be from 0 to 59.
|
28
|
-
# @!attribute [rw] seconds
|
29
|
-
# @return [Integer]
|
30
|
-
# Seconds of minutes of the time. Must normally be from 0 to 59. An API may
|
31
|
-
# allow the value 60 if it allows leap-seconds.
|
32
|
-
# @!attribute [rw] nanos
|
33
|
-
# @return [Integer]
|
34
|
-
# Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
|
35
|
-
class TimeOfDay; end
|
36
|
-
end
|
37
|
-
end
|
@@ -1,69 +0,0 @@
|
|
1
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
-
# source: google/cloud/talent/v4beta1/event.proto
|
3
|
-
|
4
|
-
|
5
|
-
require 'google/protobuf'
|
6
|
-
|
7
|
-
require 'google/api/annotations_pb'
|
8
|
-
require 'google/api/field_behavior_pb'
|
9
|
-
require 'google/protobuf/timestamp_pb'
|
10
|
-
Google::Protobuf::DescriptorPool.generated_pool.build do
|
11
|
-
add_message "google.cloud.talent.v4beta1.ClientEvent" do
|
12
|
-
optional :request_id, :string, 1
|
13
|
-
optional :event_id, :string, 2
|
14
|
-
optional :create_time, :message, 4, "google.protobuf.Timestamp"
|
15
|
-
optional :event_notes, :string, 9
|
16
|
-
oneof :event do
|
17
|
-
optional :job_event, :message, 5, "google.cloud.talent.v4beta1.JobEvent"
|
18
|
-
optional :profile_event, :message, 6, "google.cloud.talent.v4beta1.ProfileEvent"
|
19
|
-
end
|
20
|
-
end
|
21
|
-
add_message "google.cloud.talent.v4beta1.JobEvent" do
|
22
|
-
optional :type, :enum, 1, "google.cloud.talent.v4beta1.JobEvent.JobEventType"
|
23
|
-
repeated :jobs, :string, 2
|
24
|
-
optional :profile, :string, 3
|
25
|
-
end
|
26
|
-
add_enum "google.cloud.talent.v4beta1.JobEvent.JobEventType" do
|
27
|
-
value :JOB_EVENT_TYPE_UNSPECIFIED, 0
|
28
|
-
value :IMPRESSION, 1
|
29
|
-
value :VIEW, 2
|
30
|
-
value :VIEW_REDIRECT, 3
|
31
|
-
value :APPLICATION_START, 4
|
32
|
-
value :APPLICATION_FINISH, 5
|
33
|
-
value :APPLICATION_QUICK_SUBMISSION, 6
|
34
|
-
value :APPLICATION_REDIRECT, 7
|
35
|
-
value :APPLICATION_START_FROM_SEARCH, 8
|
36
|
-
value :APPLICATION_REDIRECT_FROM_SEARCH, 9
|
37
|
-
value :APPLICATION_COMPANY_SUBMIT, 10
|
38
|
-
value :BOOKMARK, 11
|
39
|
-
value :NOTIFICATION, 12
|
40
|
-
value :HIRED, 13
|
41
|
-
value :SENT_CV, 14
|
42
|
-
value :INTERVIEW_GRANTED, 15
|
43
|
-
end
|
44
|
-
add_message "google.cloud.talent.v4beta1.ProfileEvent" do
|
45
|
-
optional :type, :enum, 1, "google.cloud.talent.v4beta1.ProfileEvent.ProfileEventType"
|
46
|
-
repeated :profiles, :string, 2
|
47
|
-
repeated :jobs, :string, 6
|
48
|
-
end
|
49
|
-
add_enum "google.cloud.talent.v4beta1.ProfileEvent.ProfileEventType" do
|
50
|
-
value :PROFILE_EVENT_TYPE_UNSPECIFIED, 0
|
51
|
-
value :IMPRESSION, 1
|
52
|
-
value :VIEW, 2
|
53
|
-
value :BOOKMARK, 3
|
54
|
-
end
|
55
|
-
end
|
56
|
-
|
57
|
-
module Google
|
58
|
-
module Cloud
|
59
|
-
module Talent
|
60
|
-
module V4beta1
|
61
|
-
ClientEvent = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4beta1.ClientEvent").msgclass
|
62
|
-
JobEvent = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4beta1.JobEvent").msgclass
|
63
|
-
JobEvent::JobEventType = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4beta1.JobEvent.JobEventType").enummodule
|
64
|
-
ProfileEvent = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4beta1.ProfileEvent").msgclass
|
65
|
-
ProfileEvent::ProfileEventType = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4beta1.ProfileEvent.ProfileEventType").enummodule
|
66
|
-
end
|
67
|
-
end
|
68
|
-
end
|
69
|
-
end
|
@@ -1,268 +0,0 @@
|
|
1
|
-
# Copyright 2019 Google LLC
|
2
|
-
#
|
3
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
-
# you may not use this file except in compliance with the License.
|
5
|
-
# You may obtain a copy of the License at
|
6
|
-
#
|
7
|
-
# https://www.apache.org/licenses/LICENSE-2.0
|
8
|
-
#
|
9
|
-
# Unless required by applicable law or agreed to in writing, software
|
10
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
-
# See the License for the specific language governing permissions and
|
13
|
-
# limitations under the License.
|
14
|
-
#
|
15
|
-
# EDITING INSTRUCTIONS
|
16
|
-
# This file was generated from the file
|
17
|
-
# https://github.com/googleapis/googleapis/blob/master/google/cloud/talent/v4beta1/event_service.proto,
|
18
|
-
# and updates to that file get reflected here through a refresh process.
|
19
|
-
# For the short term, the refresh process will only be runnable by Google
|
20
|
-
# engineers.
|
21
|
-
|
22
|
-
|
23
|
-
require "json"
|
24
|
-
require "pathname"
|
25
|
-
|
26
|
-
require "google/gax"
|
27
|
-
|
28
|
-
require "google/cloud/talent/v4beta1/event_service_pb"
|
29
|
-
require "google/cloud/talent/v4beta1/credentials"
|
30
|
-
require "google/cloud/talent/version"
|
31
|
-
|
32
|
-
module Google
|
33
|
-
module Cloud
|
34
|
-
module Talent
|
35
|
-
module V4beta1
|
36
|
-
# A service handles client event report.
|
37
|
-
#
|
38
|
-
# @!attribute [r] event_service_stub
|
39
|
-
# @return [Google::Cloud::Talent::V4beta1::EventService::Stub]
|
40
|
-
class EventServiceClient
|
41
|
-
# @private
|
42
|
-
attr_reader :event_service_stub
|
43
|
-
|
44
|
-
# The default address of the service.
|
45
|
-
SERVICE_ADDRESS = "jobs.googleapis.com".freeze
|
46
|
-
|
47
|
-
# The default port of the service.
|
48
|
-
DEFAULT_SERVICE_PORT = 443
|
49
|
-
|
50
|
-
# The default set of gRPC interceptors.
|
51
|
-
GRPC_INTERCEPTORS = []
|
52
|
-
|
53
|
-
DEFAULT_TIMEOUT = 30
|
54
|
-
|
55
|
-
# The scopes needed to make gRPC calls to all of the methods defined in
|
56
|
-
# this service.
|
57
|
-
ALL_SCOPES = [
|
58
|
-
"https://www.googleapis.com/auth/cloud-platform",
|
59
|
-
"https://www.googleapis.com/auth/jobs"
|
60
|
-
].freeze
|
61
|
-
|
62
|
-
|
63
|
-
PROJECT_PATH_TEMPLATE = Google::Gax::PathTemplate.new(
|
64
|
-
"projects/{project}"
|
65
|
-
)
|
66
|
-
|
67
|
-
private_constant :PROJECT_PATH_TEMPLATE
|
68
|
-
|
69
|
-
TENANT_PATH_TEMPLATE = Google::Gax::PathTemplate.new(
|
70
|
-
"projects/{project}/tenants/{tenant}"
|
71
|
-
)
|
72
|
-
|
73
|
-
private_constant :TENANT_PATH_TEMPLATE
|
74
|
-
|
75
|
-
# Returns a fully-qualified project resource name string.
|
76
|
-
# @param project [String]
|
77
|
-
# @return [String]
|
78
|
-
def self.project_path project
|
79
|
-
PROJECT_PATH_TEMPLATE.render(
|
80
|
-
:"project" => project
|
81
|
-
)
|
82
|
-
end
|
83
|
-
|
84
|
-
# Returns a fully-qualified tenant resource name string.
|
85
|
-
# @param project [String]
|
86
|
-
# @param tenant [String]
|
87
|
-
# @return [String]
|
88
|
-
def self.tenant_path project, tenant
|
89
|
-
TENANT_PATH_TEMPLATE.render(
|
90
|
-
:"project" => project,
|
91
|
-
:"tenant" => tenant
|
92
|
-
)
|
93
|
-
end
|
94
|
-
|
95
|
-
# @param credentials [Google::Auth::Credentials, String, Hash, GRPC::Core::Channel, GRPC::Core::ChannelCredentials, Proc]
|
96
|
-
# Provides the means for authenticating requests made by the client. This parameter can
|
97
|
-
# be many types.
|
98
|
-
# A `Google::Auth::Credentials` uses a the properties of its represented keyfile for
|
99
|
-
# authenticating requests made by this client.
|
100
|
-
# A `String` will be treated as the path to the keyfile to be used for the construction of
|
101
|
-
# credentials for this client.
|
102
|
-
# A `Hash` will be treated as the contents of a keyfile to be used for the construction of
|
103
|
-
# credentials for this client.
|
104
|
-
# A `GRPC::Core::Channel` will be used to make calls through.
|
105
|
-
# A `GRPC::Core::ChannelCredentials` for the setting up the RPC client. The channel credentials
|
106
|
-
# should already be composed with a `GRPC::Core::CallCredentials` object.
|
107
|
-
# A `Proc` will be used as an updater_proc for the Grpc channel. The proc transforms the
|
108
|
-
# metadata for requests, generally, to give OAuth credentials.
|
109
|
-
# @param scopes [Array<String>]
|
110
|
-
# The OAuth scopes for this service. This parameter is ignored if
|
111
|
-
# an updater_proc is supplied.
|
112
|
-
# @param client_config [Hash]
|
113
|
-
# A Hash for call options for each method. See
|
114
|
-
# Google::Gax#construct_settings for the structure of
|
115
|
-
# this data. Falls back to the default config if not specified
|
116
|
-
# or the specified config is missing data points.
|
117
|
-
# @param timeout [Numeric]
|
118
|
-
# The default timeout, in seconds, for calls made through this client.
|
119
|
-
# @param metadata [Hash]
|
120
|
-
# Default metadata to be sent with each request. This can be overridden on a per call basis.
|
121
|
-
# @param service_address [String]
|
122
|
-
# Override for the service hostname, or `nil` to leave as the default.
|
123
|
-
# @param service_port [Integer]
|
124
|
-
# Override for the service port, or `nil` to leave as the default.
|
125
|
-
# @param exception_transformer [Proc]
|
126
|
-
# An optional proc that intercepts any exceptions raised during an API call to inject
|
127
|
-
# custom error handling.
|
128
|
-
def initialize \
|
129
|
-
credentials: nil,
|
130
|
-
scopes: ALL_SCOPES,
|
131
|
-
client_config: {},
|
132
|
-
timeout: DEFAULT_TIMEOUT,
|
133
|
-
metadata: nil,
|
134
|
-
service_address: nil,
|
135
|
-
service_port: nil,
|
136
|
-
exception_transformer: nil,
|
137
|
-
lib_name: nil,
|
138
|
-
lib_version: ""
|
139
|
-
# These require statements are intentionally placed here to initialize
|
140
|
-
# the gRPC module only when it's required.
|
141
|
-
# See https://github.com/googleapis/toolkit/issues/446
|
142
|
-
require "google/gax/grpc"
|
143
|
-
require "google/cloud/talent/v4beta1/event_service_services_pb"
|
144
|
-
|
145
|
-
credentials ||= Google::Cloud::Talent::V4beta1::Credentials.default
|
146
|
-
|
147
|
-
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
148
|
-
updater_proc = Google::Cloud::Talent::V4beta1::Credentials.new(credentials).updater_proc
|
149
|
-
end
|
150
|
-
if credentials.is_a?(GRPC::Core::Channel)
|
151
|
-
channel = credentials
|
152
|
-
end
|
153
|
-
if credentials.is_a?(GRPC::Core::ChannelCredentials)
|
154
|
-
chan_creds = credentials
|
155
|
-
end
|
156
|
-
if credentials.is_a?(Proc)
|
157
|
-
updater_proc = credentials
|
158
|
-
end
|
159
|
-
if credentials.is_a?(Google::Auth::Credentials)
|
160
|
-
updater_proc = credentials.updater_proc
|
161
|
-
end
|
162
|
-
|
163
|
-
package_version = Google::Cloud::Talent::VERSION
|
164
|
-
|
165
|
-
google_api_client = "gl-ruby/#{RUBY_VERSION}"
|
166
|
-
google_api_client << " #{lib_name}/#{lib_version}" if lib_name
|
167
|
-
google_api_client << " gapic/#{package_version} gax/#{Google::Gax::VERSION}"
|
168
|
-
google_api_client << " grpc/#{GRPC::VERSION}"
|
169
|
-
google_api_client.freeze
|
170
|
-
|
171
|
-
headers = { :"x-goog-api-client" => google_api_client }
|
172
|
-
headers.merge!(metadata) unless metadata.nil?
|
173
|
-
client_config_file = Pathname.new(__dir__).join(
|
174
|
-
"event_service_client_config.json"
|
175
|
-
)
|
176
|
-
defaults = client_config_file.open do |f|
|
177
|
-
Google::Gax.construct_settings(
|
178
|
-
"google.cloud.talent.v4beta1.EventService",
|
179
|
-
JSON.parse(f.read),
|
180
|
-
client_config,
|
181
|
-
Google::Gax::Grpc::STATUS_CODE_NAMES,
|
182
|
-
timeout,
|
183
|
-
errors: Google::Gax::Grpc::API_ERRORS,
|
184
|
-
metadata: headers
|
185
|
-
)
|
186
|
-
end
|
187
|
-
|
188
|
-
# Allow overriding the service path/port in subclasses.
|
189
|
-
service_path = service_address || self.class::SERVICE_ADDRESS
|
190
|
-
port = service_port || self.class::DEFAULT_SERVICE_PORT
|
191
|
-
interceptors = self.class::GRPC_INTERCEPTORS
|
192
|
-
@event_service_stub = Google::Gax::Grpc.create_stub(
|
193
|
-
service_path,
|
194
|
-
port,
|
195
|
-
chan_creds: chan_creds,
|
196
|
-
channel: channel,
|
197
|
-
updater_proc: updater_proc,
|
198
|
-
scopes: scopes,
|
199
|
-
interceptors: interceptors,
|
200
|
-
&Google::Cloud::Talent::V4beta1::EventService::Stub.method(:new)
|
201
|
-
)
|
202
|
-
|
203
|
-
@create_client_event = Google::Gax.create_api_call(
|
204
|
-
@event_service_stub.method(:create_client_event),
|
205
|
-
defaults["create_client_event"],
|
206
|
-
exception_transformer: exception_transformer,
|
207
|
-
params_extractor: proc do |request|
|
208
|
-
{'parent' => request.parent}
|
209
|
-
end
|
210
|
-
)
|
211
|
-
end
|
212
|
-
|
213
|
-
# Service calls
|
214
|
-
|
215
|
-
# Report events issued when end user interacts with customer's application
|
216
|
-
# that uses Cloud Talent Solution. You may inspect the created events in
|
217
|
-
# [self service
|
218
|
-
# tools](https://console.cloud.google.com/talent-solution/overview).
|
219
|
-
# [Learn
|
220
|
-
# more](https://cloud.google.com/talent-solution/docs/management-tools)
|
221
|
-
# about self service tools.
|
222
|
-
#
|
223
|
-
# @param parent [String]
|
224
|
-
# Required. Resource name of the tenant under which the event is created.
|
225
|
-
#
|
226
|
-
# The format is "projects/{project_id}/tenants/{tenant_id}", for example,
|
227
|
-
# "projects/foo/tenant/bar". If tenant id is unspecified, a default tenant
|
228
|
-
# is created, for example, "projects/foo".
|
229
|
-
# @param client_event [Google::Cloud::Talent::V4beta1::ClientEvent | Hash]
|
230
|
-
# Required. Events issued when end user interacts with customer's application
|
231
|
-
# that uses Cloud Talent Solution.
|
232
|
-
# A hash of the same form as `Google::Cloud::Talent::V4beta1::ClientEvent`
|
233
|
-
# can also be provided.
|
234
|
-
# @param options [Google::Gax::CallOptions]
|
235
|
-
# Overrides the default settings for this call, e.g, timeout,
|
236
|
-
# retries, etc.
|
237
|
-
# @yield [result, operation] Access the result along with the RPC operation
|
238
|
-
# @yieldparam result [Google::Cloud::Talent::V4beta1::ClientEvent]
|
239
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
240
|
-
# @return [Google::Cloud::Talent::V4beta1::ClientEvent]
|
241
|
-
# @raise [Google::Gax::GaxError] if the RPC is aborted.
|
242
|
-
# @example
|
243
|
-
# require "google/cloud/talent"
|
244
|
-
#
|
245
|
-
# event_client = Google::Cloud::Talent::Event.new(version: :v4beta1)
|
246
|
-
# formatted_parent = Google::Cloud::Talent::V4beta1::EventServiceClient.tenant_path("[PROJECT]", "[TENANT]")
|
247
|
-
#
|
248
|
-
# # TODO: Initialize `client_event`:
|
249
|
-
# client_event = {}
|
250
|
-
# response = event_client.create_client_event(formatted_parent, client_event)
|
251
|
-
|
252
|
-
def create_client_event \
|
253
|
-
parent,
|
254
|
-
client_event,
|
255
|
-
options: nil,
|
256
|
-
&block
|
257
|
-
req = {
|
258
|
-
parent: parent,
|
259
|
-
client_event: client_event
|
260
|
-
}.delete_if { |_, v| v.nil? }
|
261
|
-
req = Google::Gax::to_proto(req, Google::Cloud::Talent::V4beta1::CreateClientEventRequest)
|
262
|
-
@create_client_event.call(req, options, &block)
|
263
|
-
end
|
264
|
-
end
|
265
|
-
end
|
266
|
-
end
|
267
|
-
end
|
268
|
-
end
|
@@ -1,31 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"interfaces": {
|
3
|
-
"google.cloud.talent.v4beta1.EventService": {
|
4
|
-
"retry_codes": {
|
5
|
-
"idempotent": [
|
6
|
-
"DEADLINE_EXCEEDED",
|
7
|
-
"UNAVAILABLE"
|
8
|
-
],
|
9
|
-
"non_idempotent": []
|
10
|
-
},
|
11
|
-
"retry_params": {
|
12
|
-
"default": {
|
13
|
-
"initial_retry_delay_millis": 100,
|
14
|
-
"retry_delay_multiplier": 1.3,
|
15
|
-
"max_retry_delay_millis": 60000,
|
16
|
-
"initial_rpc_timeout_millis": 20000,
|
17
|
-
"rpc_timeout_multiplier": 1.0,
|
18
|
-
"max_rpc_timeout_millis": 20000,
|
19
|
-
"total_timeout_millis": 600000
|
20
|
-
}
|
21
|
-
},
|
22
|
-
"methods": {
|
23
|
-
"CreateClientEvent": {
|
24
|
-
"timeout_millis": 30000,
|
25
|
-
"retry_codes_name": "non_idempotent",
|
26
|
-
"retry_params_name": "default"
|
27
|
-
}
|
28
|
-
}
|
29
|
-
}
|
30
|
-
}
|
31
|
-
}
|
@@ -1,26 +0,0 @@
|
|
1
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
-
# source: google/cloud/talent/v4beta1/event_service.proto
|
3
|
-
|
4
|
-
|
5
|
-
require 'google/protobuf'
|
6
|
-
|
7
|
-
require 'google/api/annotations_pb'
|
8
|
-
require 'google/api/client_pb'
|
9
|
-
require 'google/api/field_behavior_pb'
|
10
|
-
require 'google/cloud/talent/v4beta1/event_pb'
|
11
|
-
Google::Protobuf::DescriptorPool.generated_pool.build do
|
12
|
-
add_message "google.cloud.talent.v4beta1.CreateClientEventRequest" do
|
13
|
-
optional :parent, :string, 1
|
14
|
-
optional :client_event, :message, 2, "google.cloud.talent.v4beta1.ClientEvent"
|
15
|
-
end
|
16
|
-
end
|
17
|
-
|
18
|
-
module Google
|
19
|
-
module Cloud
|
20
|
-
module Talent
|
21
|
-
module V4beta1
|
22
|
-
CreateClientEventRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4beta1.CreateClientEventRequest").msgclass
|
23
|
-
end
|
24
|
-
end
|
25
|
-
end
|
26
|
-
end
|
@@ -1,53 +0,0 @@
|
|
1
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
-
# Source: google/cloud/talent/v4beta1/event_service.proto for package 'google.cloud.talent.v4beta1'
|
3
|
-
# Original file comments:
|
4
|
-
# Copyright 2019 Google LLC.
|
5
|
-
#
|
6
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
|
-
# you may not use this file except in compliance with the License.
|
8
|
-
# You may obtain a copy of the License at
|
9
|
-
#
|
10
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
11
|
-
#
|
12
|
-
# Unless required by applicable law or agreed to in writing, software
|
13
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
-
# See the License for the specific language governing permissions and
|
16
|
-
# limitations under the License.
|
17
|
-
#
|
18
|
-
#
|
19
|
-
|
20
|
-
|
21
|
-
require 'grpc'
|
22
|
-
require 'google/cloud/talent/v4beta1/event_service_pb'
|
23
|
-
|
24
|
-
module Google
|
25
|
-
module Cloud
|
26
|
-
module Talent
|
27
|
-
module V4beta1
|
28
|
-
module EventService
|
29
|
-
# A service handles client event report.
|
30
|
-
class Service
|
31
|
-
|
32
|
-
include GRPC::GenericService
|
33
|
-
|
34
|
-
self.marshal_class_method = :encode
|
35
|
-
self.unmarshal_class_method = :decode
|
36
|
-
self.service_name = 'google.cloud.talent.v4beta1.EventService'
|
37
|
-
|
38
|
-
# Report events issued when end user interacts with customer's application
|
39
|
-
# that uses Cloud Talent Solution. You may inspect the created events in
|
40
|
-
# [self service
|
41
|
-
# tools](https://console.cloud.google.com/talent-solution/overview).
|
42
|
-
# [Learn
|
43
|
-
# more](https://cloud.google.com/talent-solution/docs/management-tools)
|
44
|
-
# about self service tools.
|
45
|
-
rpc :CreateClientEvent, CreateClientEventRequest, ClientEvent
|
46
|
-
end
|
47
|
-
|
48
|
-
Stub = Service.rpc_stub_class
|
49
|
-
end
|
50
|
-
end
|
51
|
-
end
|
52
|
-
end
|
53
|
-
end
|