google-cloud-talent 0.1.0 → 0.2.0
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/.yardopts +2 -0
- data/AUTHENTICATION.md +199 -0
- data/lib/google/cloud/talent.rb +20 -19
- data/lib/google/cloud/talent/v4beta1.rb +22 -21
- data/lib/google/cloud/talent/v4beta1/application_pb.rb +62 -0
- data/lib/google/cloud/talent/v4beta1/application_service_client.rb +492 -0
- data/lib/google/cloud/talent/v4beta1/application_service_client_config.json +51 -0
- data/lib/google/cloud/talent/v4beta1/application_service_pb.rb +52 -0
- data/lib/google/cloud/talent/v4beta1/application_service_services_pb.rb +56 -0
- data/lib/google/cloud/talent/v4beta1/common_pb.rb +47 -1
- data/lib/google/cloud/talent/v4beta1/company_pb.rb +1 -1
- data/lib/google/cloud/talent/v4beta1/company_service_client.rb +83 -55
- data/lib/google/cloud/talent/v4beta1/completion_client.rb +62 -42
- data/lib/google/cloud/talent/v4beta1/completion_service_pb.rb +2 -2
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/application.rb +189 -0
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/application_service.rb +121 -0
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/common.rb +189 -94
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/company.rb +12 -10
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/company_service.rb +29 -20
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/completion_service.rb +26 -30
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/event.rb +16 -55
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/event_service.rb +9 -1
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/filters.rb +74 -164
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/histogram.rb +2 -5
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/job.rb +58 -86
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/job_service.rb +109 -137
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/profile.rb +76 -375
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/profile_service.rb +21 -38
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/tenant.rb +1 -3
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/tenant_service.rb +3 -7
- data/lib/google/cloud/talent/v4beta1/doc/google/protobuf/field_mask.rb +18 -26
- data/lib/google/cloud/talent/v4beta1/doc/google/protobuf/timestamp.rb +15 -13
- data/lib/google/cloud/talent/v4beta1/doc/google/type/date.rb +14 -10
- data/lib/google/cloud/talent/v4beta1/doc/google/type/latlng.rb +0 -34
- data/lib/google/cloud/talent/v4beta1/doc/google/type/timeofday.rb +2 -3
- data/lib/google/cloud/talent/v4beta1/event_pb.rb +2 -9
- data/lib/google/cloud/talent/v4beta1/event_service_client.rb +26 -13
- data/lib/google/cloud/talent/v4beta1/event_service_services_pb.rb +1 -1
- data/lib/google/cloud/talent/v4beta1/filters_pb.rb +8 -20
- data/lib/google/cloud/talent/v4beta1/helpers.rb +44 -10
- data/lib/google/cloud/talent/v4beta1/histogram_pb.rb +1 -1
- data/lib/google/cloud/talent/v4beta1/job_pb.rb +3 -2
- data/lib/google/cloud/talent/v4beta1/job_service_client.rb +229 -204
- data/lib/google/cloud/talent/v4beta1/job_service_pb.rb +0 -1
- data/lib/google/cloud/talent/v4beta1/job_service_services_pb.rb +8 -12
- data/lib/google/cloud/talent/v4beta1/profile_pb.rb +6 -64
- data/lib/google/cloud/talent/v4beta1/profile_service_client.rb +72 -68
- data/lib/google/cloud/talent/v4beta1/profile_service_pb.rb +1 -1
- data/lib/google/cloud/talent/v4beta1/profile_service_services_pb.rb +3 -3
- data/lib/google/cloud/talent/v4beta1/resume_service_client.rb +2 -2
- data/lib/google/cloud/talent/v4beta1/tenant_pb.rb +1 -1
- data/lib/google/cloud/talent/v4beta1/tenant_service_client.rb +34 -23
- metadata +11 -4
@@ -32,9 +32,8 @@ module Google
|
|
32
32
|
#
|
33
33
|
# The token that specifies the current offset (that is, starting result).
|
34
34
|
#
|
35
|
-
# Please set the value to
|
36
|
-
#
|
37
|
-
# to continue the list.
|
35
|
+
# Please set the value to {Google::Cloud::Talent::V4beta1::ListProfilesResponse#next_page_token ListProfilesResponse#next_page_token} to
|
36
|
+
# continue the list.
|
38
37
|
# @!attribute [rw] page_size
|
39
38
|
# @return [Integer]
|
40
39
|
# Optional.
|
@@ -42,7 +41,7 @@ module Google
|
|
42
41
|
# The maximum number of profiles to be returned, at most 100.
|
43
42
|
#
|
44
43
|
# Default is 100 unless a positive number smaller than 100 is specified.
|
45
|
-
# @!attribute [rw]
|
44
|
+
# @!attribute [rw] read_mask
|
46
45
|
# @return [Google::Protobuf::FieldMask]
|
47
46
|
# Optional.
|
48
47
|
#
|
@@ -128,9 +127,9 @@ module Google
|
|
128
127
|
# * publications
|
129
128
|
# * patents
|
130
129
|
# * certifications
|
131
|
-
# * jobApplications
|
132
130
|
# * recruitingNotes
|
133
131
|
# * customAttributes
|
132
|
+
# * groupId
|
134
133
|
class UpdateProfileRequest; end
|
135
134
|
|
136
135
|
# Delete profile request.
|
@@ -165,8 +164,7 @@ module Google
|
|
165
164
|
# @return [Google::Cloud::Talent::V4beta1::ProfileQuery]
|
166
165
|
# Optional.
|
167
166
|
#
|
168
|
-
# Search query to execute. See
|
169
|
-
# {Google::Cloud::Talent::V4beta1::ProfileQuery ProfileQuery} for more details.
|
167
|
+
# Search query to execute. See {Google::Cloud::Talent::V4beta1::ProfileQuery ProfileQuery} for more details.
|
170
168
|
# @!attribute [rw] page_size
|
171
169
|
# @return [Integer]
|
172
170
|
# Optional.
|
@@ -182,18 +180,16 @@ module Google
|
|
182
180
|
# The pageToken, similar to offset enables users of the API to paginate
|
183
181
|
# through the search results. To retrieve the first page of results, set the
|
184
182
|
# pageToken to empty. The search response includes a
|
185
|
-
# {Google::Cloud::Talent::V4beta1::SearchProfilesResponse#next_page_token nextPageToken}
|
186
|
-
#
|
187
|
-
#
|
188
|
-
#
|
183
|
+
# {Google::Cloud::Talent::V4beta1::SearchProfilesResponse#next_page_token nextPageToken} field that can be
|
184
|
+
# used to populate the pageToken field for the next page of results. Using
|
185
|
+
# pageToken instead of offset increases the performance of the API,
|
186
|
+
# especially compared to larger offset values.
|
189
187
|
# @!attribute [rw] offset
|
190
188
|
# @return [Integer]
|
191
189
|
# Optional.
|
192
190
|
#
|
193
191
|
# An integer that specifies the current offset (that is, starting result) in
|
194
|
-
# search results. This field is only considered if
|
195
|
-
# {Google::Cloud::Talent::V4beta1::SearchProfilesRequest#page_token page_token}
|
196
|
-
# is unset.
|
192
|
+
# search results. This field is only considered if {Google::Cloud::Talent::V4beta1::SearchProfilesRequest#page_token page_token} is unset.
|
197
193
|
#
|
198
194
|
# The maximum allowed value is 5000. Otherwise an error is thrown.
|
199
195
|
#
|
@@ -243,8 +239,7 @@ module Google
|
|
243
239
|
# Optional.
|
244
240
|
#
|
245
241
|
# A list of expressions specifies histogram requests against matching
|
246
|
-
# profiles for
|
247
|
-
# {Google::Cloud::Talent::V4beta1::SearchProfilesRequest SearchProfilesRequest}.
|
242
|
+
# profiles for {Google::Cloud::Talent::V4beta1::SearchProfilesRequest SearchProfilesRequest}.
|
248
243
|
#
|
249
244
|
# The expression syntax looks like a function definition with optional
|
250
245
|
# parameters.
|
@@ -292,34 +287,24 @@ module Google
|
|
292
287
|
# * institution: The school name. For example, "MIT",
|
293
288
|
# "University of California, Berkeley"
|
294
289
|
# * degree: Highest education degree in ISCED code. Each value in degree
|
295
|
-
# covers specific level of education, without any expansion to upper nor
|
290
|
+
# covers a specific level of education, without any expansion to upper nor
|
296
291
|
# lower levels of education degree.
|
297
292
|
# * experience_in_months: experience in months. 0 means 0 month to 1 month
|
298
293
|
# (exclusive).
|
299
294
|
# * application_date: The application date specifies application start dates.
|
300
|
-
# See
|
301
|
-
#
|
302
|
-
#
|
303
|
-
#
|
304
|
-
# outcome reasons of job application.
|
305
|
-
# See
|
306
|
-
# {Google::Cloud::Talent::V4beta1::ApplicationOutcomeReasonFilter ApplicationOutcomeReasonFilter}
|
307
|
-
# for more details.
|
295
|
+
# See {Google::Cloud::Talent::V4beta1::ApplicationDateFilter ApplicationDateFilter} for more details.
|
296
|
+
# * application_outcome_notes: The application outcome reason specifies the
|
297
|
+
# reasons behind the outcome of the job application.
|
298
|
+
# See {Google::Cloud::Talent::V4beta1::ApplicationOutcomeNotesFilter ApplicationOutcomeNotesFilter} for more details.
|
308
299
|
# * application_last_stage: The application last stage specifies the last
|
309
300
|
# stage of job application.
|
310
|
-
# See
|
311
|
-
# {Google::Cloud::Talent::V4beta1::ApplicationLastStageFilter ApplicationLastStageFilter}
|
312
|
-
# for more details.
|
301
|
+
# See {ApplicationLastStageFilter} for more details.
|
313
302
|
# * application_job_title: The application job title specifies the job
|
314
303
|
# applied for in the application.
|
315
|
-
# See
|
316
|
-
# {Google::Cloud::Talent::V4beta1::ApplicationJobFilter ApplicationJobFilter}
|
317
|
-
# for more details.
|
304
|
+
# See {Google::Cloud::Talent::V4beta1::ApplicationJobFilter ApplicationJobFilter} for more details.
|
318
305
|
# * application_status: The application status specifies the status of job
|
319
306
|
# application.
|
320
|
-
# See
|
321
|
-
# {Google::Cloud::Talent::V4beta1::ApplicationStatusFilter ApplicationStatusFilter}
|
322
|
-
# for more details.
|
307
|
+
# See {ApplicationStatusFilter} for more details.
|
323
308
|
# * hirable_status: Hirable status specifies the profile's hirable status.
|
324
309
|
# * string_custom_attribute: String custom attributes. Values can be accessed
|
325
310
|
# via square bracket notation like string_custom_attribute["key1"].
|
@@ -359,14 +344,12 @@ module Google
|
|
359
344
|
# {Google::Cloud::Talent::V4beta1::SearchProfilesRequest#histogram_queries SearchProfilesRequest#histogram_queries}.
|
360
345
|
# @!attribute [rw] summarized_profiles
|
361
346
|
# @return [Array<Google::Cloud::Talent::V4beta1::SummarizedProfile>]
|
362
|
-
# The profile entities that match the specified
|
363
|
-
# {Google::Cloud::Talent::V4beta1::SearchProfilesRequest SearchProfilesRequest}.
|
347
|
+
# The profile entities that match the specified {Google::Cloud::Talent::V4beta1::SearchProfilesRequest SearchProfilesRequest}.
|
364
348
|
class SearchProfilesResponse; end
|
365
349
|
|
366
350
|
# Output only.
|
367
351
|
#
|
368
|
-
# Profile entry with metadata inside
|
369
|
-
# {Google::Cloud::Talent::V4beta1::SearchProfilesResponse SearchProfilesResponse}.
|
352
|
+
# Profile entry with metadata inside {Google::Cloud::Talent::V4beta1::SearchProfilesResponse SearchProfilesResponse}.
|
370
353
|
# @!attribute [rw] profiles
|
371
354
|
# @return [Array<Google::Cloud::Talent::V4beta1::Profile>]
|
372
355
|
# A list of profiles that are linked by {Profile#cluster_id}.
|
@@ -44,9 +44,7 @@ module Google
|
|
44
44
|
# Indicates whether data owned by this tenant may be used to provide product
|
45
45
|
# improvements across other tenants.
|
46
46
|
#
|
47
|
-
# Defaults behavior is
|
48
|
-
# {Google::Cloud::Talent::V4beta1::Tenant::DataUsageType::ISOLATED DataUsageType::ISOLATED}
|
49
|
-
# if it's unset.
|
47
|
+
# Defaults behavior is {Google::Cloud::Talent::V4beta1::Tenant::DataUsageType::ISOLATED DataUsageType::ISOLATED} if it's unset.
|
50
48
|
class Tenant
|
51
49
|
# Enum that represents how user data owned by the tenant is used.
|
52
50
|
module DataUsageType
|
@@ -55,15 +55,11 @@ module Google
|
|
55
55
|
# Optional but strongly recommended for the best service
|
56
56
|
# experience.
|
57
57
|
#
|
58
|
-
# If
|
59
|
-
# {Google::Cloud::Talent::V4beta1::UpdateTenantRequest#
|
60
|
-
# is provided, only the specified fields in
|
61
|
-
# {Google::Cloud::Talent::V4beta1::UpdateTenantRequest#tenant tenant} are
|
62
|
-
# updated. Otherwise all the fields are updated.
|
58
|
+
# If {Google::Cloud::Talent::V4beta1::UpdateTenantRequest#update_mask update_mask} is provided, only the specified fields in
|
59
|
+
# {Google::Cloud::Talent::V4beta1::UpdateTenantRequest#tenant tenant} are updated. Otherwise all the fields are updated.
|
63
60
|
#
|
64
61
|
# A field mask to specify the tenant fields to be updated. Only
|
65
|
-
# top level fields of {Google::Cloud::Talent::V4beta1::Tenant Tenant} are
|
66
|
-
# supported.
|
62
|
+
# top level fields of {Google::Cloud::Talent::V4beta1::Tenant Tenant} are supported.
|
67
63
|
class UpdateTenantRequest; end
|
68
64
|
|
69
65
|
# Request to delete a tenant.
|
@@ -83,57 +83,49 @@ module Google
|
|
83
83
|
# describe the updated values, the API ignores the values of all
|
84
84
|
# fields not covered by the mask.
|
85
85
|
#
|
86
|
-
# If a repeated field is specified for an update operation,
|
87
|
-
#
|
88
|
-
#
|
89
|
-
# string.
|
86
|
+
# If a repeated field is specified for an update operation, new values will
|
87
|
+
# be appended to the existing repeated field in the target resource. Note that
|
88
|
+
# a repeated field is only allowed in the last position of a `paths` string.
|
90
89
|
#
|
91
90
|
# If a sub-message is specified in the last position of the field mask for an
|
92
|
-
# update operation, then the existing sub-message
|
93
|
-
#
|
91
|
+
# update operation, then new value will be merged into the existing sub-message
|
92
|
+
# in the target resource.
|
93
|
+
#
|
94
|
+
# For example, given the target message:
|
94
95
|
#
|
95
96
|
# f {
|
96
97
|
# b {
|
97
|
-
# d
|
98
|
-
# x
|
98
|
+
# d: 1
|
99
|
+
# x: 2
|
99
100
|
# }
|
100
|
-
# c
|
101
|
+
# c: [1]
|
101
102
|
# }
|
102
103
|
#
|
103
104
|
# And an update message:
|
104
105
|
#
|
105
106
|
# f {
|
106
107
|
# b {
|
107
|
-
# d
|
108
|
+
# d: 10
|
108
109
|
# }
|
110
|
+
# c: [2]
|
109
111
|
# }
|
110
112
|
#
|
111
113
|
# then if the field mask is:
|
112
114
|
#
|
113
|
-
# paths: "f.b"
|
115
|
+
# paths: ["f.b", "f.c"]
|
114
116
|
#
|
115
117
|
# then the result will be:
|
116
118
|
#
|
117
119
|
# f {
|
118
120
|
# b {
|
119
|
-
# d
|
121
|
+
# d: 10
|
122
|
+
# x: 2
|
120
123
|
# }
|
121
|
-
# c
|
124
|
+
# c: [1, 2]
|
122
125
|
# }
|
123
126
|
#
|
124
|
-
#
|
125
|
-
#
|
126
|
-
# paths: "f.b.d"
|
127
|
-
#
|
128
|
-
# then the result would be:
|
129
|
-
#
|
130
|
-
# f {
|
131
|
-
# b {
|
132
|
-
# d : 10
|
133
|
-
# x : 2
|
134
|
-
# }
|
135
|
-
# c : 1
|
136
|
-
# }
|
127
|
+
# An implementation may provide options to override this default behavior for
|
128
|
+
# repeated and message fields.
|
137
129
|
#
|
138
130
|
# In order to reset a field's value to the default, the field must
|
139
131
|
# be in the mask and set to the default value in the provided resource.
|
@@ -15,17 +15,19 @@
|
|
15
15
|
|
16
16
|
module Google
|
17
17
|
module Protobuf
|
18
|
-
# A Timestamp represents a point in time independent of any time zone
|
19
|
-
#
|
20
|
-
# nanosecond resolution
|
21
|
-
#
|
22
|
-
# backwards to year one.
|
23
|
-
#
|
24
|
-
#
|
25
|
-
#
|
26
|
-
#
|
27
|
-
#
|
28
|
-
#
|
18
|
+
# A Timestamp represents a point in time independent of any time zone or local
|
19
|
+
# calendar, encoded as a count of seconds and fractions of seconds at
|
20
|
+
# nanosecond resolution. The count is relative to an epoch at UTC midnight on
|
21
|
+
# January 1, 1970, in the proleptic Gregorian calendar which extends the
|
22
|
+
# Gregorian calendar backwards to year one.
|
23
|
+
#
|
24
|
+
# All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap
|
25
|
+
# second table is needed for interpretation, using a [24-hour linear
|
26
|
+
# smear](https://developers.google.com/time/smear).
|
27
|
+
#
|
28
|
+
# The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By
|
29
|
+
# restricting to that range, we ensure that we can convert to and from [RFC
|
30
|
+
# 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings.
|
29
31
|
#
|
30
32
|
# = Examples
|
31
33
|
#
|
@@ -86,12 +88,12 @@ module Google
|
|
86
88
|
# 01:30 UTC on January 15, 2017.
|
87
89
|
#
|
88
90
|
# In JavaScript, one can convert a Date object to this format using the
|
89
|
-
# standard [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString
|
91
|
+
# standard [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString)
|
90
92
|
# method. In Python, a standard `datetime.datetime` object can be converted
|
91
93
|
# to this format using [`strftime`](https://docs.python.org/2/library/time.html#time.strftime)
|
92
94
|
# with the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one
|
93
95
|
# can use the Joda Time's [`ISODateTimeFormat.dateTime()`](
|
94
|
-
# http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime
|
96
|
+
# http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D
|
95
97
|
# ) to obtain a formatter capable of generating timestamps in this format.
|
96
98
|
# @!attribute [rw] seconds
|
97
99
|
# @return [Integer]
|
@@ -15,25 +15,29 @@
|
|
15
15
|
|
16
16
|
module Google
|
17
17
|
module Type
|
18
|
-
# Represents a whole calendar date, e.g.
|
19
|
-
# time zone are either specified elsewhere or are not significant. The date
|
20
|
-
# is relative to the Proleptic Gregorian Calendar.
|
21
|
-
#
|
22
|
-
#
|
23
|
-
#
|
24
|
-
#
|
25
|
-
#
|
18
|
+
# Represents a whole or partial calendar date, e.g. a birthday. The time of day
|
19
|
+
# and time zone are either specified elsewhere or are not significant. The date
|
20
|
+
# is relative to the Proleptic Gregorian Calendar. This can represent:
|
21
|
+
#
|
22
|
+
# * A full date, with non-zero year, month and day values
|
23
|
+
# * A month and day value, with a zero year, e.g. an anniversary
|
24
|
+
# * A year on its own, with zero month and day values
|
25
|
+
# * A year and month value, with a zero day, e.g. a credit card expiration date
|
26
|
+
#
|
27
|
+
# Related types are {Google::Type::TimeOfDay} and `google.protobuf.Timestamp`.
|
26
28
|
# @!attribute [rw] year
|
27
29
|
# @return [Integer]
|
28
30
|
# Year of date. Must be from 1 to 9999, or 0 if specifying a date without
|
29
31
|
# a year.
|
30
32
|
# @!attribute [rw] month
|
31
33
|
# @return [Integer]
|
32
|
-
# Month of year. Must be from 1 to 12
|
34
|
+
# Month of year. Must be from 1 to 12, or 0 if specifying a year without a
|
35
|
+
# month and day.
|
33
36
|
# @!attribute [rw] day
|
34
37
|
# @return [Integer]
|
35
38
|
# Day of month. Must be from 1 to 31 and valid for the year and month, or 0
|
36
|
-
# if specifying a year
|
39
|
+
# if specifying a year by itself or a year and month where the day is not
|
40
|
+
# significant.
|
37
41
|
class Date; end
|
38
42
|
end
|
39
43
|
end
|
@@ -20,40 +20,6 @@ module Google
|
|
20
20
|
# specified otherwise, this must conform to the
|
21
21
|
# <a href="http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84
|
22
22
|
# standard</a>. Values must be within normalized ranges.
|
23
|
-
#
|
24
|
-
# Example of normalization code in Python:
|
25
|
-
#
|
26
|
-
# def NormalizeLongitude(longitude):
|
27
|
-
# """Wraps decimal degrees longitude to [-180.0, 180.0]."""
|
28
|
-
# q, r = divmod(longitude, 360.0)
|
29
|
-
# if r > 180.0 or (r == 180.0 and q <= -1.0):
|
30
|
-
# return r - 360.0
|
31
|
-
# return r
|
32
|
-
#
|
33
|
-
# def NormalizeLatLng(latitude, longitude):
|
34
|
-
# """Wraps decimal degrees latitude and longitude to
|
35
|
-
# [-90.0, 90.0] and [-180.0, 180.0], respectively."""
|
36
|
-
# r = latitude % 360.0
|
37
|
-
# if r <= 90.0:
|
38
|
-
# return r, NormalizeLongitude(longitude)
|
39
|
-
# elif r >= 270.0:
|
40
|
-
# return r - 360, NormalizeLongitude(longitude)
|
41
|
-
# else:
|
42
|
-
# return 180 - r, NormalizeLongitude(longitude + 180.0)
|
43
|
-
#
|
44
|
-
# assert 180.0 == NormalizeLongitude(180.0)
|
45
|
-
# assert -180.0 == NormalizeLongitude(-180.0)
|
46
|
-
# assert -179.0 == NormalizeLongitude(181.0)
|
47
|
-
# assert (0.0, 0.0) == NormalizeLatLng(360.0, 0.0)
|
48
|
-
# assert (0.0, 0.0) == NormalizeLatLng(-360.0, 0.0)
|
49
|
-
# assert (85.0, 180.0) == NormalizeLatLng(95.0, 0.0)
|
50
|
-
# assert (-85.0, -170.0) == NormalizeLatLng(-95.0, 10.0)
|
51
|
-
# assert (90.0, 10.0) == NormalizeLatLng(90.0, 10.0)
|
52
|
-
# assert (-90.0, -10.0) == NormalizeLatLng(-90.0, -10.0)
|
53
|
-
# assert (0.0, -170.0) == NormalizeLatLng(-180.0, 10.0)
|
54
|
-
# assert (0.0, -170.0) == NormalizeLatLng(180.0, 10.0)
|
55
|
-
# assert (-90.0, 10.0) == NormalizeLatLng(270.0, 10.0)
|
56
|
-
# assert (90.0, 10.0) == NormalizeLatLng(-270.0, 10.0)
|
57
23
|
# @!attribute [rw] latitude
|
58
24
|
# @return [Float]
|
59
25
|
# The latitude in degrees. It must be in the range [-90.0, +90.0].
|
@@ -16,9 +16,8 @@
|
|
16
16
|
module Google
|
17
17
|
module Type
|
18
18
|
# Represents a time of day. The date and time zone are either not significant
|
19
|
-
# or are specified elsewhere. An API may
|
20
|
-
# types are {Google::Type::Date} and
|
21
|
-
# `google.protobuf.Timestamp`.
|
19
|
+
# or are specified elsewhere. An API may choose to allow leap seconds. Related
|
20
|
+
# types are {Google::Type::Date} and `google.protobuf.Timestamp`.
|
22
21
|
# @!attribute [rw] hours
|
23
22
|
# @return [Integer]
|
24
23
|
# Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
|
@@ -11,7 +11,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
11
11
|
optional :request_id, :string, 1
|
12
12
|
optional :event_id, :string, 2
|
13
13
|
optional :create_time, :message, 4, "google.protobuf.Timestamp"
|
14
|
-
|
14
|
+
optional :event_notes, :string, 9
|
15
15
|
oneof :event do
|
16
16
|
optional :job_event, :message, 5, "google.cloud.talent.v4beta1.JobEvent"
|
17
17
|
optional :profile_event, :message, 6, "google.cloud.talent.v4beta1.ProfileEvent"
|
@@ -43,20 +43,13 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
43
43
|
add_message "google.cloud.talent.v4beta1.ProfileEvent" do
|
44
44
|
optional :type, :enum, 1, "google.cloud.talent.v4beta1.ProfileEvent.ProfileEventType"
|
45
45
|
repeated :profiles, :string, 2
|
46
|
-
|
46
|
+
repeated :jobs, :string, 6
|
47
47
|
end
|
48
48
|
add_enum "google.cloud.talent.v4beta1.ProfileEvent.ProfileEventType" do
|
49
49
|
value :PROFILE_EVENT_TYPE_UNSPECIFIED, 0
|
50
50
|
value :IMPRESSION, 1
|
51
51
|
value :VIEW, 2
|
52
52
|
value :BOOKMARK, 3
|
53
|
-
value :COMMENT_ADDED, 4
|
54
|
-
value :EMAIL_SENT, 5
|
55
|
-
value :RESUME_VIEWED, 6
|
56
|
-
value :ADD_TO_JOB, 7
|
57
|
-
value :POSITIVE_REACTION_TO_PROFILE, 8
|
58
|
-
value :NEGATIVE_REACTION_TO_PROFILE, 9
|
59
|
-
value :SCREEN, 10
|
60
53
|
end
|
61
54
|
end
|
62
55
|
|
@@ -59,18 +59,20 @@ module Google
|
|
59
59
|
].freeze
|
60
60
|
|
61
61
|
|
62
|
-
|
63
|
-
"projects/{project}"
|
62
|
+
TENANT_PATH_TEMPLATE = Google::Gax::PathTemplate.new(
|
63
|
+
"projects/{project}/tenants/{tenant}"
|
64
64
|
)
|
65
65
|
|
66
|
-
private_constant :
|
66
|
+
private_constant :TENANT_PATH_TEMPLATE
|
67
67
|
|
68
|
-
# Returns a fully-qualified
|
68
|
+
# Returns a fully-qualified tenant resource name string.
|
69
69
|
# @param project [String]
|
70
|
+
# @param tenant [String]
|
70
71
|
# @return [String]
|
71
|
-
def self.
|
72
|
-
|
73
|
-
:"project" => project
|
72
|
+
def self.tenant_path project, tenant
|
73
|
+
TENANT_PATH_TEMPLATE.render(
|
74
|
+
:"project" => project,
|
75
|
+
:"tenant" => tenant
|
74
76
|
)
|
75
77
|
end
|
76
78
|
|
@@ -179,7 +181,10 @@ module Google
|
|
179
181
|
@create_client_event = Google::Gax.create_api_call(
|
180
182
|
@event_service_stub.method(:create_client_event),
|
181
183
|
defaults["create_client_event"],
|
182
|
-
exception_transformer: exception_transformer
|
184
|
+
exception_transformer: exception_transformer,
|
185
|
+
params_extractor: proc do |request|
|
186
|
+
{'parent' => request.parent}
|
187
|
+
end
|
183
188
|
)
|
184
189
|
end
|
185
190
|
|
@@ -190,11 +195,19 @@ module Google
|
|
190
195
|
# [self service
|
191
196
|
# tools](https://console.cloud.google.com/talent-solution/overview).
|
192
197
|
# [Learn
|
193
|
-
# more](https://cloud.google.com/talent-solution/
|
198
|
+
# more](https://cloud.google.com/talent-solution/docs/management-tools)
|
194
199
|
# about self service tools.
|
195
200
|
#
|
196
201
|
# @param parent [String]
|
197
|
-
#
|
202
|
+
# Required.
|
203
|
+
#
|
204
|
+
# Resource name of the tenant under which the event is created.
|
205
|
+
#
|
206
|
+
# The format is "projects/{project_id}/tenants/{tenant_id}", for example,
|
207
|
+
# "projects/api-test-project/tenant/foo".
|
208
|
+
#
|
209
|
+
# Tenant id is optional and a default tenant is created if unspecified, for
|
210
|
+
# example, "projects/api-test-project".
|
198
211
|
# @param client_event [Google::Cloud::Talent::V4beta1::ClientEvent | Hash]
|
199
212
|
# Required.
|
200
213
|
#
|
@@ -213,12 +226,12 @@ module Google
|
|
213
226
|
# @example
|
214
227
|
# require "google/cloud/talent"
|
215
228
|
#
|
216
|
-
#
|
217
|
-
# formatted_parent = Google::Cloud::Talent::V4beta1::EventServiceClient.
|
229
|
+
# event_client = Google::Cloud::Talent::Event.new(version: :v4beta1)
|
230
|
+
# formatted_parent = Google::Cloud::Talent::V4beta1::EventServiceClient.tenant_path("[PROJECT]", "[TENANT]")
|
218
231
|
#
|
219
232
|
# # TODO: Initialize `client_event`:
|
220
233
|
# client_event = {}
|
221
|
-
# response =
|
234
|
+
# response = event_client.create_client_event(formatted_parent, client_event)
|
222
235
|
|
223
236
|
def create_client_event \
|
224
237
|
parent,
|