google-iam-credentials-v1 0.3.3 → 0.3.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8ee976989804c904afd4dc4b04e797030364c226b0f97441520a8238420dc659
4
- data.tar.gz: 270bbf5f53ea3d65656f58d1a8fd48236cc679790e6d3fa547771bb53d6a609e
3
+ metadata.gz: 32ebcaa119129846f5efcf7ccc67a4afb30cd9c31bb40bbe22fe5554802a974f
4
+ data.tar.gz: 82c01a857dcee4191007c0e6001dbf222bd09122243710cdbc77580b8535ab1a
5
5
  SHA512:
6
- metadata.gz: 4a59240159962b9ea832acc07445af28d28c6038b645d9e83d373872c32a28e8177f8fd25a98f8434efdc0dad405162391dda8543b65edd7995a8ec5ea1c959a
7
- data.tar.gz: 8d50a77306272cd1291276fb183f01e0cdd57204d95a4f7e5599bdfaee0a4b6998f752080aee110b0d24ca80f0dcd1f60ea6e1ea37256bb8b04356a47707c859
6
+ metadata.gz: 41abed950fcf8faa82e3e5fd85209529934ff261b7c3883dc7634e4fc31a1c76f14fc3026c789408053b1acee1a1c88802a6aeee83b66a964e2d4b6d27f5cb82
7
+ data.tar.gz: 675651dea7cd62a4cc7098821fe44fad9cb76200d3b8e37b8297c3373c24c91038cef9df4dc4263888e517f067f1c02b0ae1c1fc9f0040c27e97f5d49e5fc1d9
@@ -1,12 +1,12 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/iam/credentials/v1/common.proto
3
3
 
4
- require 'google/protobuf'
5
-
6
4
  require 'google/api/field_behavior_pb'
7
5
  require 'google/api/resource_pb'
8
6
  require 'google/protobuf/duration_pb'
9
7
  require 'google/protobuf/timestamp_pb'
8
+ require 'google/protobuf'
9
+
10
10
  Google::Protobuf::DescriptorPool.generated_pool.build do
11
11
  add_file("google/iam/credentials/v1/common.proto", :syntax => :proto3) do
12
12
  add_message "google.iam.credentials.v1.GenerateAccessTokenRequest" do
@@ -225,6 +225,21 @@ module Google
225
225
  #
226
226
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
227
227
  #
228
+ # @example Basic example
229
+ # require "google/iam/credentials/v1"
230
+ #
231
+ # # Create a client object. The client can be reused for multiple calls.
232
+ # client = Google::Iam::Credentials::V1::IAMCredentials::Client.new
233
+ #
234
+ # # Create a request. To set request fields, pass in keyword arguments.
235
+ # request = Google::Iam::Credentials::V1::GenerateAccessTokenRequest.new
236
+ #
237
+ # # Call the generate_access_token method.
238
+ # result = client.generate_access_token request
239
+ #
240
+ # # The returned object is of type Google::Iam::Credentials::V1::GenerateAccessTokenResponse.
241
+ # p result
242
+ #
228
243
  def generate_access_token request, options = nil
229
244
  raise ::ArgumentError, "request must be provided" if request.nil?
230
245
 
@@ -242,9 +257,11 @@ module Google
242
257
  gapic_version: ::Google::Iam::Credentials::V1::VERSION
243
258
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
244
259
 
245
- header_params = {
246
- "name" => request.name
247
- }
260
+ header_params = {}
261
+ if request.name
262
+ header_params["name"] = request.name
263
+ end
264
+
248
265
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
249
266
  metadata[:"x-goog-request-params"] ||= request_params_header
250
267
 
@@ -313,6 +330,21 @@ module Google
313
330
  #
314
331
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
315
332
  #
333
+ # @example Basic example
334
+ # require "google/iam/credentials/v1"
335
+ #
336
+ # # Create a client object. The client can be reused for multiple calls.
337
+ # client = Google::Iam::Credentials::V1::IAMCredentials::Client.new
338
+ #
339
+ # # Create a request. To set request fields, pass in keyword arguments.
340
+ # request = Google::Iam::Credentials::V1::GenerateIdTokenRequest.new
341
+ #
342
+ # # Call the generate_id_token method.
343
+ # result = client.generate_id_token request
344
+ #
345
+ # # The returned object is of type Google::Iam::Credentials::V1::GenerateIdTokenResponse.
346
+ # p result
347
+ #
316
348
  def generate_id_token request, options = nil
317
349
  raise ::ArgumentError, "request must be provided" if request.nil?
318
350
 
@@ -330,9 +362,11 @@ module Google
330
362
  gapic_version: ::Google::Iam::Credentials::V1::VERSION
331
363
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
332
364
 
333
- header_params = {
334
- "name" => request.name
335
- }
365
+ header_params = {}
366
+ if request.name
367
+ header_params["name"] = request.name
368
+ end
369
+
336
370
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
337
371
  metadata[:"x-goog-request-params"] ||= request_params_header
338
372
 
@@ -397,6 +431,21 @@ module Google
397
431
  #
398
432
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
399
433
  #
434
+ # @example Basic example
435
+ # require "google/iam/credentials/v1"
436
+ #
437
+ # # Create a client object. The client can be reused for multiple calls.
438
+ # client = Google::Iam::Credentials::V1::IAMCredentials::Client.new
439
+ #
440
+ # # Create a request. To set request fields, pass in keyword arguments.
441
+ # request = Google::Iam::Credentials::V1::SignBlobRequest.new
442
+ #
443
+ # # Call the sign_blob method.
444
+ # result = client.sign_blob request
445
+ #
446
+ # # The returned object is of type Google::Iam::Credentials::V1::SignBlobResponse.
447
+ # p result
448
+ #
400
449
  def sign_blob request, options = nil
401
450
  raise ::ArgumentError, "request must be provided" if request.nil?
402
451
 
@@ -414,9 +463,11 @@ module Google
414
463
  gapic_version: ::Google::Iam::Credentials::V1::VERSION
415
464
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
416
465
 
417
- header_params = {
418
- "name" => request.name
419
- }
466
+ header_params = {}
467
+ if request.name
468
+ header_params["name"] = request.name
469
+ end
470
+
420
471
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
421
472
  metadata[:"x-goog-request-params"] ||= request_params_header
422
473
 
@@ -481,6 +532,21 @@ module Google
481
532
  #
482
533
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
483
534
  #
535
+ # @example Basic example
536
+ # require "google/iam/credentials/v1"
537
+ #
538
+ # # Create a client object. The client can be reused for multiple calls.
539
+ # client = Google::Iam::Credentials::V1::IAMCredentials::Client.new
540
+ #
541
+ # # Create a request. To set request fields, pass in keyword arguments.
542
+ # request = Google::Iam::Credentials::V1::SignJwtRequest.new
543
+ #
544
+ # # Call the sign_jwt method.
545
+ # result = client.sign_jwt request
546
+ #
547
+ # # The returned object is of type Google::Iam::Credentials::V1::SignJwtResponse.
548
+ # p result
549
+ #
484
550
  def sign_jwt request, options = nil
485
551
  raise ::ArgumentError, "request must be provided" if request.nil?
486
552
 
@@ -498,9 +564,11 @@ module Google
498
564
  gapic_version: ::Google::Iam::Credentials::V1::VERSION
499
565
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
500
566
 
501
- header_params = {
502
- "name" => request.name
503
- }
567
+ header_params = {}
568
+ if request.name
569
+ header_params["name"] = request.name
570
+ end
571
+
504
572
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
505
573
  metadata[:"x-goog-request-params"] ||= request_params_header
506
574
 
@@ -1,11 +1,11 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/iam/credentials/v1/iamcredentials.proto
3
3
 
4
- require 'google/protobuf'
5
-
6
4
  require 'google/api/annotations_pb'
7
5
  require 'google/api/client_pb'
8
6
  require 'google/iam/credentials/v1/common_pb'
7
+ require 'google/protobuf'
8
+
9
9
  Google::Protobuf::DescriptorPool.generated_pool.build do
10
10
  add_file("google/iam/credentials/v1/iamcredentials.proto", :syntax => :proto3) do
11
11
  end
@@ -35,7 +35,7 @@ module Google
35
35
  # more.
36
36
  class Service
37
37
 
38
- include GRPC::GenericService
38
+ include ::GRPC::GenericService
39
39
 
40
40
  self.marshal_class_method = :encode
41
41
  self.unmarshal_class_method = :decode
@@ -21,7 +21,7 @@ module Google
21
21
  module Iam
22
22
  module Credentials
23
23
  module V1
24
- VERSION = "0.3.3"
24
+ VERSION = "0.3.4"
25
25
  end
26
26
  end
27
27
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-iam-credentials-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.4
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-08-11 00:00:00.000000000 Z
11
+ date: 2021-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common