google-cloud-talent-v4 0.4.1 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +8 -8
- data/README.md +1 -1
- data/lib/google/cloud/talent/v4/company_service/client.rb +4 -13
- data/lib/google/cloud/talent/v4/company_service_services_pb.rb +1 -1
- data/lib/google/cloud/talent/v4/completion/client.rb +2 -5
- data/lib/google/cloud/talent/v4/completion_service_services_pb.rb +1 -1
- data/lib/google/cloud/talent/v4/event_service/client.rb +1 -1
- data/lib/google/cloud/talent/v4/event_service_services_pb.rb +1 -1
- data/lib/google/cloud/talent/v4/job_service/client.rb +4 -13
- data/lib/google/cloud/talent/v4/job_service/operations.rb +4 -4
- data/lib/google/cloud/talent/v4/job_service_services_pb.rb +1 -1
- data/lib/google/cloud/talent/v4/tenant_service/client.rb +4 -13
- data/lib/google/cloud/talent/v4/tenant_service_services_pb.rb +1 -1
- data/lib/google/cloud/talent/v4/version.rb +1 -1
- data/proto_docs/google/api/field_behavior.rb +7 -1
- data/proto_docs/google/type/money.rb +1 -1
- data/proto_docs/google/type/timeofday.rb +2 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a6bd0a9027f17423bd8d8f98dc6fcd887c066d3e3760d457009a9cf82c34bc0e
|
4
|
+
data.tar.gz: 1cbab753039fb59587484b39997029c618fa454fbf6fdbd850a6098ea8735959
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: db2cb47d24427e73287507fc512f7de67cea2dbe54c31acc8c9926f9b32ba53722ab31e3b400f52356029bd61470b2caebdbf276413f313f1fe4675c0ea76e11
|
7
|
+
data.tar.gz: 1f9c9d811488d009e91d2b82e7d5f0caa8a10fdcb30ef4182107ee8ceb9cf42dee1b7eebbd40d4f4a131acd9757baae2bbe5d45078b701e54c90d5bc77baeda3
|
data/AUTHENTICATION.md
CHANGED
@@ -66,11 +66,11 @@ The environment variables that google-cloud-talent-v4
|
|
66
66
|
checks for credentials are configured on the service Credentials class (such as
|
67
67
|
{::Google::Cloud::Talent::V4::CompanyService::Credentials}):
|
68
68
|
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
69
|
+
* `TALENT_CREDENTIALS` - Path to JSON file, or JSON contents
|
70
|
+
* `TALENT_KEYFILE` - Path to JSON file, or JSON contents
|
71
|
+
* `GOOGLE_CLOUD_CREDENTIALS` - Path to JSON file, or JSON contents
|
72
|
+
* `GOOGLE_CLOUD_KEYFILE` - Path to JSON file, or JSON contents
|
73
|
+
* `GOOGLE_APPLICATION_CREDENTIALS` - Path to JSON file
|
74
74
|
|
75
75
|
```ruby
|
76
76
|
require "google/cloud/talent/v4"
|
@@ -82,8 +82,8 @@ client = ::Google::Cloud::Talent::V4::CompanyService::Client.new
|
|
82
82
|
|
83
83
|
### Configuration
|
84
84
|
|
85
|
-
The **Credentials JSON** can be configured instead of
|
86
|
-
environment
|
85
|
+
The path to the **Credentials JSON** file can be configured instead of storing
|
86
|
+
it in an environment variable. Either on an individual client initialization:
|
87
87
|
|
88
88
|
```ruby
|
89
89
|
require "google/cloud/talent/v4"
|
@@ -93,7 +93,7 @@ client = ::Google::Cloud::Talent::V4::CompanyService::Client.new do |config|
|
|
93
93
|
end
|
94
94
|
```
|
95
95
|
|
96
|
-
Or
|
96
|
+
Or globally for all clients:
|
97
97
|
|
98
98
|
```ruby
|
99
99
|
require "google/cloud/talent/v4"
|
data/README.md
CHANGED
@@ -33,7 +33,7 @@ In order to use this library, you first need to go through the following steps:
|
|
33
33
|
require "google/cloud/talent/v4"
|
34
34
|
|
35
35
|
client = ::Google::Cloud::Talent::V4::CompanyService::Client.new
|
36
|
-
request =
|
36
|
+
request = ::Google::Cloud::Talent::V4::CreateCompanyRequest.new # (request fields as keyword arguments...)
|
37
37
|
response = client.create_company request
|
38
38
|
```
|
39
39
|
|
@@ -69,28 +69,19 @@ module Google
|
|
69
69
|
|
70
70
|
default_config.rpcs.get_company.timeout = 30.0
|
71
71
|
default_config.rpcs.get_company.retry_policy = {
|
72
|
-
initial_delay: 0.1,
|
73
|
-
max_delay: 60.0,
|
74
|
-
multiplier: 1.3,
|
75
|
-
retry_codes: [4, 14]
|
72
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
|
76
73
|
}
|
77
74
|
|
78
75
|
default_config.rpcs.update_company.timeout = 30.0
|
79
76
|
|
80
77
|
default_config.rpcs.delete_company.timeout = 30.0
|
81
78
|
default_config.rpcs.delete_company.retry_policy = {
|
82
|
-
initial_delay: 0.1,
|
83
|
-
max_delay: 60.0,
|
84
|
-
multiplier: 1.3,
|
85
|
-
retry_codes: [4, 14]
|
79
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
|
86
80
|
}
|
87
81
|
|
88
82
|
default_config.rpcs.list_companies.timeout = 30.0
|
89
83
|
default_config.rpcs.list_companies.retry_policy = {
|
90
|
-
initial_delay: 0.1,
|
91
|
-
max_delay: 60.0,
|
92
|
-
multiplier: 1.3,
|
93
|
-
retry_codes: [4, 14]
|
84
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
|
94
85
|
}
|
95
86
|
|
96
87
|
default_config
|
@@ -161,7 +152,7 @@ module Google
|
|
161
152
|
!@config.endpoint.split(".").first.include?("-")
|
162
153
|
credentials ||= Credentials.default scope: @config.scope,
|
163
154
|
enable_self_signed_jwt: enable_self_signed_jwt
|
164
|
-
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
155
|
+
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
165
156
|
credentials = Credentials.new credentials, scope: @config.scope
|
166
157
|
end
|
167
158
|
@quota_project_id = @config.quota_project
|
@@ -27,7 +27,7 @@ module Google
|
|
27
27
|
# A service that handles company management, including CRUD and enumeration.
|
28
28
|
class Service
|
29
29
|
|
30
|
-
include
|
30
|
+
include GRPC::GenericService
|
31
31
|
|
32
32
|
self.marshal_class_method = :encode
|
33
33
|
self.unmarshal_class_method = :decode
|
@@ -67,10 +67,7 @@ module Google
|
|
67
67
|
|
68
68
|
default_config.rpcs.complete_query.timeout = 30.0
|
69
69
|
default_config.rpcs.complete_query.retry_policy = {
|
70
|
-
initial_delay: 0.1,
|
71
|
-
max_delay: 60.0,
|
72
|
-
multiplier: 1.3,
|
73
|
-
retry_codes: [4, 14]
|
70
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
|
74
71
|
}
|
75
72
|
|
76
73
|
default_config
|
@@ -141,7 +138,7 @@ module Google
|
|
141
138
|
!@config.endpoint.split(".").first.include?("-")
|
142
139
|
credentials ||= Credentials.default scope: @config.scope,
|
143
140
|
enable_self_signed_jwt: enable_self_signed_jwt
|
144
|
-
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
141
|
+
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
145
142
|
credentials = Credentials.new credentials, scope: @config.scope
|
146
143
|
end
|
147
144
|
@quota_project_id = @config.quota_project
|
@@ -135,7 +135,7 @@ module Google
|
|
135
135
|
!@config.endpoint.split(".").first.include?("-")
|
136
136
|
credentials ||= Credentials.default scope: @config.scope,
|
137
137
|
enable_self_signed_jwt: enable_self_signed_jwt
|
138
|
-
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
138
|
+
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
139
139
|
credentials = Credentials.new credentials, scope: @config.scope
|
140
140
|
end
|
141
141
|
@quota_project_id = @config.quota_project
|
@@ -71,10 +71,7 @@ module Google
|
|
71
71
|
|
72
72
|
default_config.rpcs.get_job.timeout = 30.0
|
73
73
|
default_config.rpcs.get_job.retry_policy = {
|
74
|
-
initial_delay: 0.1,
|
75
|
-
max_delay: 60.0,
|
76
|
-
multiplier: 1.3,
|
77
|
-
retry_codes: [4, 14]
|
74
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
|
78
75
|
}
|
79
76
|
|
80
77
|
default_config.rpcs.update_job.timeout = 30.0
|
@@ -83,20 +80,14 @@ module Google
|
|
83
80
|
|
84
81
|
default_config.rpcs.delete_job.timeout = 30.0
|
85
82
|
default_config.rpcs.delete_job.retry_policy = {
|
86
|
-
initial_delay: 0.1,
|
87
|
-
max_delay: 60.0,
|
88
|
-
multiplier: 1.3,
|
89
|
-
retry_codes: [4, 14]
|
83
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
|
90
84
|
}
|
91
85
|
|
92
86
|
default_config.rpcs.batch_delete_jobs.timeout = 30.0
|
93
87
|
|
94
88
|
default_config.rpcs.list_jobs.timeout = 30.0
|
95
89
|
default_config.rpcs.list_jobs.retry_policy = {
|
96
|
-
initial_delay: 0.1,
|
97
|
-
max_delay: 60.0,
|
98
|
-
multiplier: 1.3,
|
99
|
-
retry_codes: [4, 14]
|
90
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
|
100
91
|
}
|
101
92
|
|
102
93
|
default_config.rpcs.search_jobs.timeout = 30.0
|
@@ -171,7 +162,7 @@ module Google
|
|
171
162
|
!@config.endpoint.split(".").first.include?("-")
|
172
163
|
credentials ||= Credentials.default scope: @config.scope,
|
173
164
|
enable_self_signed_jwt: enable_self_signed_jwt
|
174
|
-
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
165
|
+
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
175
166
|
credentials = Credentials.new credentials, scope: @config.scope
|
176
167
|
end
|
177
168
|
@quota_project_id = @config.quota_project
|
@@ -82,7 +82,7 @@ module Google
|
|
82
82
|
# Create credentials
|
83
83
|
credentials = @config.credentials
|
84
84
|
credentials ||= Credentials.default scope: @config.scope
|
85
|
-
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
85
|
+
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
86
86
|
credentials = Credentials.new credentials, scope: @config.scope
|
87
87
|
end
|
88
88
|
@quota_project_id = @config.quota_project
|
@@ -396,9 +396,9 @@ module Google
|
|
396
396
|
end
|
397
397
|
|
398
398
|
##
|
399
|
-
# Waits
|
400
|
-
#
|
401
|
-
#
|
399
|
+
# Waits until the specified long-running operation is done or reaches at most
|
400
|
+
# a specified timeout, returning the latest state. If the operation is
|
401
|
+
# already done, the latest state is immediately returned. If the timeout
|
402
402
|
# specified is greater than the default HTTP/RPC timeout, the HTTP/RPC
|
403
403
|
# timeout is used. If the server does not support this method, it returns
|
404
404
|
# `google.rpc.Code.UNIMPLEMENTED`.
|
@@ -27,7 +27,7 @@ module Google
|
|
27
27
|
# A service handles job management, including job CRUD, enumeration and search.
|
28
28
|
class Service
|
29
29
|
|
30
|
-
include
|
30
|
+
include GRPC::GenericService
|
31
31
|
|
32
32
|
self.marshal_class_method = :encode
|
33
33
|
self.unmarshal_class_method = :decode
|
@@ -69,28 +69,19 @@ module Google
|
|
69
69
|
|
70
70
|
default_config.rpcs.get_tenant.timeout = 30.0
|
71
71
|
default_config.rpcs.get_tenant.retry_policy = {
|
72
|
-
initial_delay: 0.1,
|
73
|
-
max_delay: 60.0,
|
74
|
-
multiplier: 1.3,
|
75
|
-
retry_codes: [4, 14]
|
72
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
|
76
73
|
}
|
77
74
|
|
78
75
|
default_config.rpcs.update_tenant.timeout = 30.0
|
79
76
|
|
80
77
|
default_config.rpcs.delete_tenant.timeout = 30.0
|
81
78
|
default_config.rpcs.delete_tenant.retry_policy = {
|
82
|
-
initial_delay: 0.1,
|
83
|
-
max_delay: 60.0,
|
84
|
-
multiplier: 1.3,
|
85
|
-
retry_codes: [4, 14]
|
79
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
|
86
80
|
}
|
87
81
|
|
88
82
|
default_config.rpcs.list_tenants.timeout = 30.0
|
89
83
|
default_config.rpcs.list_tenants.retry_policy = {
|
90
|
-
initial_delay: 0.1,
|
91
|
-
max_delay: 60.0,
|
92
|
-
multiplier: 1.3,
|
93
|
-
retry_codes: [4, 14]
|
84
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
|
94
85
|
}
|
95
86
|
|
96
87
|
default_config
|
@@ -161,7 +152,7 @@ module Google
|
|
161
152
|
!@config.endpoint.split(".").first.include?("-")
|
162
153
|
credentials ||= Credentials.default scope: @config.scope,
|
163
154
|
enable_self_signed_jwt: enable_self_signed_jwt
|
164
|
-
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
155
|
+
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
165
156
|
credentials = Credentials.new credentials, scope: @config.scope
|
166
157
|
end
|
167
158
|
@quota_project_id = @config.quota_project
|
@@ -27,7 +27,7 @@ module Google
|
|
27
27
|
# A service that handles tenant management, including CRUD and enumeration.
|
28
28
|
class Service
|
29
29
|
|
30
|
-
include
|
30
|
+
include GRPC::GenericService
|
31
31
|
|
32
32
|
self.marshal_class_method = :encode
|
33
33
|
self.unmarshal_class_method = :decode
|
@@ -57,9 +57,15 @@ module Google
|
|
57
57
|
|
58
58
|
# Denotes that a (repeated) field is an unordered list.
|
59
59
|
# This indicates that the service may provide the elements of the list
|
60
|
-
# in any arbitrary
|
60
|
+
# in any arbitrary order, rather than the order the user originally
|
61
61
|
# provided. Additionally, the list's order may or may not be stable.
|
62
62
|
UNORDERED_LIST = 6
|
63
|
+
|
64
|
+
# Denotes that this field returns a non-empty default value if not set.
|
65
|
+
# This indicates that if the user provides the empty value in a request,
|
66
|
+
# a non-empty value will be returned. The user will not be aware of what
|
67
|
+
# non-empty value to expect.
|
68
|
+
NON_EMPTY_DEFAULT = 7
|
63
69
|
end
|
64
70
|
end
|
65
71
|
end
|
@@ -22,7 +22,7 @@ module Google
|
|
22
22
|
# Represents an amount of money with its currency type.
|
23
23
|
# @!attribute [rw] currency_code
|
24
24
|
# @return [::String]
|
25
|
-
# The
|
25
|
+
# The three-letter currency code defined in ISO 4217.
|
26
26
|
# @!attribute [rw] units
|
27
27
|
# @return [::Integer]
|
28
28
|
# The whole units of the amount.
|
@@ -21,7 +21,8 @@ module Google
|
|
21
21
|
module Type
|
22
22
|
# Represents a time of day. The date and time zone are either not significant
|
23
23
|
# or are specified elsewhere. An API may choose to allow leap seconds. Related
|
24
|
-
# types are [google.type.Date][google.type.Date] and
|
24
|
+
# types are [google.type.Date][google.type.Date] and
|
25
|
+
# `google.protobuf.Timestamp`.
|
25
26
|
# @!attribute [rw] hours
|
26
27
|
# @return [::Integer]
|
27
28
|
# Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-talent-v4
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-07-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|