google-cloud-talent-v4beta1 0.8.0 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -138,7 +138,7 @@ module Google
138
138
  credentials = @config.credentials
139
139
  # Use self-signed JWT if the endpoint is unchanged from default,
140
140
  # but only if the default endpoint does not have a region prefix.
141
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
141
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
142
142
  !@config.endpoint.split(".").first.include?("-")
143
143
  credentials ||= Credentials.default scope: @config.scope,
144
144
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -186,6 +186,22 @@ module Google
186
186
  # @return [::Google::Cloud::Talent::V4beta1::Tenant]
187
187
  #
188
188
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
189
+ #
190
+ # @example Basic example
191
+ # require "google/cloud/talent/v4beta1"
192
+ #
193
+ # # Create a client object. The client can be reused for multiple calls.
194
+ # client = Google::Cloud::Talent::V4beta1::TenantService::Rest::Client.new
195
+ #
196
+ # # Create a request. To set request fields, pass in keyword arguments.
197
+ # request = Google::Cloud::Talent::V4beta1::CreateTenantRequest.new
198
+ #
199
+ # # Call the create_tenant method.
200
+ # result = client.create_tenant request
201
+ #
202
+ # # The returned object is of type Google::Cloud::Talent::V4beta1::Tenant.
203
+ # p result
204
+ #
189
205
  def create_tenant request, options = nil
190
206
  raise ::ArgumentError, "request must be provided" if request.nil?
191
207
 
@@ -251,6 +267,22 @@ module Google
251
267
  # @return [::Google::Cloud::Talent::V4beta1::Tenant]
252
268
  #
253
269
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
270
+ #
271
+ # @example Basic example
272
+ # require "google/cloud/talent/v4beta1"
273
+ #
274
+ # # Create a client object. The client can be reused for multiple calls.
275
+ # client = Google::Cloud::Talent::V4beta1::TenantService::Rest::Client.new
276
+ #
277
+ # # Create a request. To set request fields, pass in keyword arguments.
278
+ # request = Google::Cloud::Talent::V4beta1::GetTenantRequest.new
279
+ #
280
+ # # Call the get_tenant method.
281
+ # result = client.get_tenant request
282
+ #
283
+ # # The returned object is of type Google::Cloud::Talent::V4beta1::Tenant.
284
+ # p result
285
+ #
254
286
  def get_tenant request, options = nil
255
287
  raise ::ArgumentError, "request must be provided" if request.nil?
256
288
 
@@ -326,6 +358,22 @@ module Google
326
358
  # @return [::Google::Cloud::Talent::V4beta1::Tenant]
327
359
  #
328
360
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
361
+ #
362
+ # @example Basic example
363
+ # require "google/cloud/talent/v4beta1"
364
+ #
365
+ # # Create a client object. The client can be reused for multiple calls.
366
+ # client = Google::Cloud::Talent::V4beta1::TenantService::Rest::Client.new
367
+ #
368
+ # # Create a request. To set request fields, pass in keyword arguments.
369
+ # request = Google::Cloud::Talent::V4beta1::UpdateTenantRequest.new
370
+ #
371
+ # # Call the update_tenant method.
372
+ # result = client.update_tenant request
373
+ #
374
+ # # The returned object is of type Google::Cloud::Talent::V4beta1::Tenant.
375
+ # p result
376
+ #
329
377
  def update_tenant request, options = nil
330
378
  raise ::ArgumentError, "request must be provided" if request.nil?
331
379
 
@@ -391,6 +439,22 @@ module Google
391
439
  # @return [::Google::Protobuf::Empty]
392
440
  #
393
441
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
442
+ #
443
+ # @example Basic example
444
+ # require "google/cloud/talent/v4beta1"
445
+ #
446
+ # # Create a client object. The client can be reused for multiple calls.
447
+ # client = Google::Cloud::Talent::V4beta1::TenantService::Rest::Client.new
448
+ #
449
+ # # Create a request. To set request fields, pass in keyword arguments.
450
+ # request = Google::Cloud::Talent::V4beta1::DeleteTenantRequest.new
451
+ #
452
+ # # Call the delete_tenant method.
453
+ # result = client.delete_tenant request
454
+ #
455
+ # # The returned object is of type Google::Protobuf::Empty.
456
+ # p result
457
+ #
394
458
  def delete_tenant request, options = nil
395
459
  raise ::ArgumentError, "request must be provided" if request.nil?
396
460
 
@@ -461,6 +525,26 @@ module Google
461
525
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Talent::V4beta1::Tenant>]
462
526
  #
463
527
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
528
+ #
529
+ # @example Basic example
530
+ # require "google/cloud/talent/v4beta1"
531
+ #
532
+ # # Create a client object. The client can be reused for multiple calls.
533
+ # client = Google::Cloud::Talent::V4beta1::TenantService::Rest::Client.new
534
+ #
535
+ # # Create a request. To set request fields, pass in keyword arguments.
536
+ # request = Google::Cloud::Talent::V4beta1::ListTenantsRequest.new
537
+ #
538
+ # # Call the list_tenants method.
539
+ # result = client.list_tenants request
540
+ #
541
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
542
+ # # over elements, and API calls will be issued to fetch pages as needed.
543
+ # result.each do |item|
544
+ # # Each element is of type ::Google::Cloud::Talent::V4beta1::Tenant.
545
+ # p item
546
+ # end
547
+ #
464
548
  def list_tenants request, options = nil
465
549
  raise ::ArgumentError, "request must be provided" if request.nil?
466
550
 
@@ -570,7 +654,9 @@ module Google
570
654
  class Configuration
571
655
  extend ::Gapic::Config
572
656
 
573
- config_attr :endpoint, "jobs.googleapis.com", ::String
657
+ DEFAULT_ENDPOINT = "jobs.googleapis.com"
658
+
659
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
574
660
  config_attr :credentials, nil do |value|
575
661
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
576
662
  allowed.any? { |klass| klass === value }
@@ -59,7 +59,7 @@ module Google
59
59
 
60
60
  verb, uri, query_string_params, body = ServiceStub.transcode_create_tenant_request request_pb
61
61
  query_string_params = if query_string_params.any?
62
- query_string_params.to_h { |p| p.split("=", 2) }
62
+ query_string_params.to_h { |p| p.split "=", 2 }
63
63
  else
64
64
  {}
65
65
  end
@@ -97,7 +97,7 @@ module Google
97
97
 
98
98
  verb, uri, query_string_params, body = ServiceStub.transcode_get_tenant_request request_pb
99
99
  query_string_params = if query_string_params.any?
100
- query_string_params.to_h { |p| p.split("=", 2) }
100
+ query_string_params.to_h { |p| p.split "=", 2 }
101
101
  else
102
102
  {}
103
103
  end
@@ -135,7 +135,7 @@ module Google
135
135
 
136
136
  verb, uri, query_string_params, body = ServiceStub.transcode_update_tenant_request request_pb
137
137
  query_string_params = if query_string_params.any?
138
- query_string_params.to_h { |p| p.split("=", 2) }
138
+ query_string_params.to_h { |p| p.split "=", 2 }
139
139
  else
140
140
  {}
141
141
  end
@@ -173,7 +173,7 @@ module Google
173
173
 
174
174
  verb, uri, query_string_params, body = ServiceStub.transcode_delete_tenant_request request_pb
175
175
  query_string_params = if query_string_params.any?
176
- query_string_params.to_h { |p| p.split("=", 2) }
176
+ query_string_params.to_h { |p| p.split "=", 2 }
177
177
  else
178
178
  {}
179
179
  end
@@ -211,7 +211,7 @@ module Google
211
211
 
212
212
  verb, uri, query_string_params, body = ServiceStub.transcode_list_tenants_request request_pb
213
213
  query_string_params = if query_string_params.any?
214
- query_string_params.to_h { |p| p.split("=", 2) }
214
+ query_string_params.to_h { |p| p.split "=", 2 }
215
215
  else
216
216
  {}
217
217
  end
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Talent
23
23
  module V4beta1
24
- VERSION = "0.8.0"
24
+ VERSION = "0.9.0"
25
25
  end
26
26
  end
27
27
  end
@@ -66,6 +66,20 @@ module Google
66
66
  # a non-empty value will be returned. The user will not be aware of what
67
67
  # non-empty value to expect.
68
68
  NON_EMPTY_DEFAULT = 7
69
+
70
+ # Denotes that the field in a resource (a message annotated with
71
+ # google.api.resource) is used in the resource name to uniquely identify the
72
+ # resource. For AIP-compliant APIs, this should only be applied to the
73
+ # `name` field on the resource.
74
+ #
75
+ # This behavior should not be applied to references to other resources within
76
+ # the message.
77
+ #
78
+ # The identifier field of resources often have different field behavior
79
+ # depending on the request it is embedded in (e.g. for Create methods name
80
+ # is optional and unused, while for Update methods it is required). Instead
81
+ # of method-specific annotations, only `IDENTIFIER` is required.
82
+ IDENTIFIER = 8
69
83
  end
70
84
  end
71
85
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-talent-v4beta1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-05-31 00:00:00.000000000 Z
11
+ date: 2023-09-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.19.0
19
+ version: 0.20.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 0.19.0
29
+ version: 0.20.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -279,7 +279,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
279
279
  - !ruby/object:Gem::Version
280
280
  version: '0'
281
281
  requirements: []
282
- rubygems_version: 3.4.2
282
+ rubygems_version: 3.4.19
283
283
  signing_key:
284
284
  specification_version: 4
285
285
  summary: Cloud Talent Solution provides the capability to create, read, update, and