google-iam-credentials-v1 0.8.2 → 1.0.0

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: 12ce631419c8e8ab78c778eac3f259449c29606282fea802bb28bf5628056755
4
- data.tar.gz: 7d80f356276d847d7df39b4b0fa99b38f0a3375bea65292518f56e5e054654df
3
+ metadata.gz: 420f8e2dc110b5bcb27f7199f550d9088b68a09fcd026e848c93207346a6393b
4
+ data.tar.gz: 3bcb05947709c445f8332cef5f3968535a7bc17e9514475cece05914b429fb5c
5
5
  SHA512:
6
- metadata.gz: 4d5723053d211910cef849380ad147eed564f53a6b377ab7c0a01c2c71ab7505d6644c1c151731c321f0ff888e621cee8968883bd9071851e1cccb39edfae935
7
- data.tar.gz: cb46b1a333cc534575d1ff318ae9544280bb03cd3b4387082a84cc71160afe4f0bf4fecc64054376289dc1192ad41afc59857676497920fb38e12ac57acca618
6
+ metadata.gz: 549c53a2393c5b1cb537f712b23d3b618076e3c8b4259afbbca513ca217e0b837c2eba39eda434e23ee4aa79b5dd0901876f9dbaab15decf5507ae5bbcdd0b2f
7
+ data.tar.gz: 3b128a090e8dcb3265a3653cfebe9de6fd85c6b4e3860a7705532b62c2e7b6d01c7f5586e6a87b05c44b7b58938a9ce4568733197759aaf96c0aded7fbf00b81
data/README.md CHANGED
@@ -76,7 +76,7 @@ To browse ready to use code samples check [Google Cloud Samples](https://cloud.g
76
76
 
77
77
  ## Supported Ruby Versions
78
78
 
79
- This library is supported on Ruby 2.6+.
79
+ This library is supported on Ruby 2.7+.
80
80
 
81
81
  Google provides official support for Ruby versions that are actively supported
82
82
  by Ruby Core—that is, Ruby versions that are either in normal maintenance or
@@ -10,7 +10,7 @@ require 'google/protobuf/duration_pb'
10
10
  require 'google/protobuf/timestamp_pb'
11
11
 
12
12
 
13
- descriptor_data = "\n&google/iam/credentials/v1/common.proto\x12\x19google.iam.credentials.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xab\x01\n\x1aGenerateAccessTokenRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe2\x41\x01\x02\xfa\x41#\n!iam.googleapis.com/ServiceAccount\x12\x11\n\tdelegates\x18\x02 \x03(\t\x12\x13\n\x05scope\x18\x04 \x03(\tB\x04\xe2\x41\x01\x02\x12+\n\x08lifetime\x18\x07 \x01(\x0b\x32\x19.google.protobuf.Duration\"d\n\x1bGenerateAccessTokenResponse\x12\x14\n\x0c\x61\x63\x63\x65ss_token\x18\x01 \x01(\t\x12/\n\x0b\x65xpire_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"u\n\x0fSignBlobRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe2\x41\x01\x02\xfa\x41#\n!iam.googleapis.com/ServiceAccount\x12\x11\n\tdelegates\x18\x03 \x03(\t\x12\x15\n\x07payload\x18\x05 \x01(\x0c\x42\x04\xe2\x41\x01\x02\"7\n\x10SignBlobResponse\x12\x0e\n\x06key_id\x18\x01 \x01(\t\x12\x13\n\x0bsigned_blob\x18\x04 \x01(\x0c\"t\n\x0eSignJwtRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe2\x41\x01\x02\xfa\x41#\n!iam.googleapis.com/ServiceAccount\x12\x11\n\tdelegates\x18\x03 \x03(\t\x12\x15\n\x07payload\x18\x05 \x01(\tB\x04\xe2\x41\x01\x02\"5\n\x0fSignJwtResponse\x12\x0e\n\x06key_id\x18\x01 \x01(\t\x12\x12\n\nsigned_jwt\x18\x02 \x01(\t\"\x94\x01\n\x16GenerateIdTokenRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe2\x41\x01\x02\xfa\x41#\n!iam.googleapis.com/ServiceAccount\x12\x11\n\tdelegates\x18\x02 \x03(\t\x12\x16\n\x08\x61udience\x18\x03 \x01(\tB\x04\xe2\x41\x01\x02\x12\x15\n\rinclude_email\x18\x04 \x01(\x08\"(\n\x17GenerateIdTokenResponse\x12\r\n\x05token\x18\x01 \x01(\tB\xac\x02\n#com.google.cloud.iam.credentials.v1B\x19IAMCredentialsCommonProtoP\x01ZEcloud.google.com/go/iam/credentials/apiv1/credentialspb;credentialspb\xf8\x01\x01\xaa\x02\x1fGoogle.Cloud.Iam.Credentials.V1\xca\x02\x1fGoogle\\Cloud\\Iam\\Credentials\\V1\xea\x41Y\n!iam.googleapis.com/ServiceAccount\x12\x34projects/{project}/serviceAccounts/{service_account}b\x06proto3"
13
+ descriptor_data = "\n&google/iam/credentials/v1/common.proto\x12\x19google.iam.credentials.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xa9\x01\n\x1aGenerateAccessTokenRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!iam.googleapis.com/ServiceAccount\x12\x11\n\tdelegates\x18\x02 \x03(\t\x12\x12\n\x05scope\x18\x04 \x03(\tB\x03\xe0\x41\x02\x12+\n\x08lifetime\x18\x07 \x01(\x0b\x32\x19.google.protobuf.Duration\"d\n\x1bGenerateAccessTokenResponse\x12\x14\n\x0c\x61\x63\x63\x65ss_token\x18\x01 \x01(\t\x12/\n\x0b\x65xpire_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"s\n\x0fSignBlobRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!iam.googleapis.com/ServiceAccount\x12\x11\n\tdelegates\x18\x03 \x03(\t\x12\x14\n\x07payload\x18\x05 \x01(\x0c\x42\x03\xe0\x41\x02\"7\n\x10SignBlobResponse\x12\x0e\n\x06key_id\x18\x01 \x01(\t\x12\x13\n\x0bsigned_blob\x18\x04 \x01(\x0c\"r\n\x0eSignJwtRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!iam.googleapis.com/ServiceAccount\x12\x11\n\tdelegates\x18\x03 \x03(\t\x12\x14\n\x07payload\x18\x05 \x01(\tB\x03\xe0\x41\x02\"5\n\x0fSignJwtResponse\x12\x0e\n\x06key_id\x18\x01 \x01(\t\x12\x12\n\nsigned_jwt\x18\x02 \x01(\t\"\x92\x01\n\x16GenerateIdTokenRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!iam.googleapis.com/ServiceAccount\x12\x11\n\tdelegates\x18\x02 \x03(\t\x12\x15\n\x08\x61udience\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x15\n\rinclude_email\x18\x04 \x01(\x08\"(\n\x17GenerateIdTokenResponse\x12\r\n\x05token\x18\x01 \x01(\tB\xac\x02\n#com.google.cloud.iam.credentials.v1B\x19IAMCredentialsCommonProtoP\x01ZEcloud.google.com/go/iam/credentials/apiv1/credentialspb;credentialspb\xf8\x01\x01\xaa\x02\x1fGoogle.Cloud.Iam.Credentials.V1\xca\x02\x1fGoogle\\Cloud\\Iam\\Credentials\\V1\xea\x41Y\n!iam.googleapis.com/ServiceAccount\x12\x34projects/{project}/serviceAccounts/{service_account}b\x06proto3"
14
14
 
15
15
  pool = Google::Protobuf::DescriptorPool.generated_pool
16
16
 
@@ -38,6 +38,9 @@ module Google
38
38
  # more.
39
39
  #
40
40
  class Client
41
+ # @private
42
+ API_VERSION = ""
43
+
41
44
  # @private
42
45
  DEFAULT_ENDPOINT_TEMPLATE = "iamcredentials.$UNIVERSE_DOMAIN$"
43
46
 
@@ -267,10 +270,11 @@ module Google
267
270
  # Customize the options with defaults
268
271
  metadata = @config.rpcs.generate_access_token.metadata.to_h
269
272
 
270
- # Set x-goog-api-client and x-goog-user-project headers
273
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
271
274
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
272
275
  lib_name: @config.lib_name, lib_version: @config.lib_version,
273
276
  gapic_version: ::Google::Iam::Credentials::V1::VERSION
277
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
274
278
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
275
279
 
276
280
  header_params = {}
@@ -372,10 +376,11 @@ module Google
372
376
  # Customize the options with defaults
373
377
  metadata = @config.rpcs.generate_id_token.metadata.to_h
374
378
 
375
- # Set x-goog-api-client and x-goog-user-project headers
379
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
376
380
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
377
381
  lib_name: @config.lib_name, lib_version: @config.lib_version,
378
382
  gapic_version: ::Google::Iam::Credentials::V1::VERSION
383
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
379
384
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
380
385
 
381
386
  header_params = {}
@@ -473,10 +478,11 @@ module Google
473
478
  # Customize the options with defaults
474
479
  metadata = @config.rpcs.sign_blob.metadata.to_h
475
480
 
476
- # Set x-goog-api-client and x-goog-user-project headers
481
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
477
482
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
478
483
  lib_name: @config.lib_name, lib_version: @config.lib_version,
479
484
  gapic_version: ::Google::Iam::Credentials::V1::VERSION
485
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
480
486
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
481
487
 
482
488
  header_params = {}
@@ -574,10 +580,11 @@ module Google
574
580
  # Customize the options with defaults
575
581
  metadata = @config.rpcs.sign_jwt.metadata.to_h
576
582
 
577
- # Set x-goog-api-client and x-goog-user-project headers
583
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
578
584
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
579
585
  lib_name: @config.lib_name, lib_version: @config.lib_version,
580
586
  gapic_version: ::Google::Iam::Credentials::V1::VERSION
587
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
581
588
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
582
589
 
583
590
  header_params = {}
@@ -40,6 +40,9 @@ module Google
40
40
  # more.
41
41
  #
42
42
  class Client
43
+ # @private
44
+ API_VERSION = ""
45
+
43
46
  # @private
44
47
  DEFAULT_ENDPOINT_TEMPLATE = "iamcredentials.$UNIVERSE_DOMAIN$"
45
48
 
@@ -259,12 +262,13 @@ module Google
259
262
  # Customize the options with defaults
260
263
  call_metadata = @config.rpcs.generate_access_token.metadata.to_h
261
264
 
262
- # Set x-goog-api-client and x-goog-user-project headers
265
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
263
266
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
264
267
  lib_name: @config.lib_name, lib_version: @config.lib_version,
265
268
  gapic_version: ::Google::Iam::Credentials::V1::VERSION,
266
269
  transports_version_send: [:rest]
267
270
 
271
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
268
272
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
269
273
 
270
274
  options.apply_defaults timeout: @config.rpcs.generate_access_token.timeout,
@@ -357,12 +361,13 @@ module Google
357
361
  # Customize the options with defaults
358
362
  call_metadata = @config.rpcs.generate_id_token.metadata.to_h
359
363
 
360
- # Set x-goog-api-client and x-goog-user-project headers
364
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
361
365
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
362
366
  lib_name: @config.lib_name, lib_version: @config.lib_version,
363
367
  gapic_version: ::Google::Iam::Credentials::V1::VERSION,
364
368
  transports_version_send: [:rest]
365
369
 
370
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
366
371
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
367
372
 
368
373
  options.apply_defaults timeout: @config.rpcs.generate_id_token.timeout,
@@ -451,12 +456,13 @@ module Google
451
456
  # Customize the options with defaults
452
457
  call_metadata = @config.rpcs.sign_blob.metadata.to_h
453
458
 
454
- # Set x-goog-api-client and x-goog-user-project headers
459
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
455
460
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
456
461
  lib_name: @config.lib_name, lib_version: @config.lib_version,
457
462
  gapic_version: ::Google::Iam::Credentials::V1::VERSION,
458
463
  transports_version_send: [:rest]
459
464
 
465
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
460
466
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
461
467
 
462
468
  options.apply_defaults timeout: @config.rpcs.sign_blob.timeout,
@@ -545,12 +551,13 @@ module Google
545
551
  # Customize the options with defaults
546
552
  call_metadata = @config.rpcs.sign_jwt.metadata.to_h
547
553
 
548
- # Set x-goog-api-client and x-goog-user-project headers
554
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
549
555
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
550
556
  lib_name: @config.lib_name, lib_version: @config.lib_version,
551
557
  gapic_version: ::Google::Iam::Credentials::V1::VERSION,
552
558
  transports_version_send: [:rest]
553
559
 
560
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
554
561
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
555
562
 
556
563
  options.apply_defaults timeout: @config.rpcs.sign_jwt.timeout,
@@ -21,7 +21,7 @@ module Google
21
21
  module Iam
22
22
  module Credentials
23
23
  module V1
24
- VERSION = "0.8.2"
24
+ VERSION = "1.0.0"
25
25
  end
26
26
  end
27
27
  end
@@ -118,6 +118,10 @@ module Google
118
118
  # @return [::String]
119
119
  # Optional link to proto reference documentation. Example:
120
120
  # https://cloud.google.com/pubsub/lite/docs/reference/rpc
121
+ # @!attribute [rw] rest_reference_documentation_uri
122
+ # @return [::String]
123
+ # Optional link to REST reference documentation. Example:
124
+ # https://cloud.google.com/pubsub/lite/docs/reference/rest
121
125
  class Publishing
122
126
  include ::Google::Protobuf::MessageExts
123
127
  extend ::Google::Protobuf::MessageExts::ClassMethods
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.8.2
4
+ version: 1.0.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: 2024-02-01 00:00:00.000000000 Z
11
+ date: 2024-07-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -44,118 +44,6 @@ dependencies:
44
44
  - - "~>"
45
45
  - !ruby/object:Gem::Version
46
46
  version: '1.0'
47
- - !ruby/object:Gem::Dependency
48
- name: google-style
49
- requirement: !ruby/object:Gem::Requirement
50
- requirements:
51
- - - "~>"
52
- - !ruby/object:Gem::Version
53
- version: 1.26.3
54
- type: :development
55
- prerelease: false
56
- version_requirements: !ruby/object:Gem::Requirement
57
- requirements:
58
- - - "~>"
59
- - !ruby/object:Gem::Version
60
- version: 1.26.3
61
- - !ruby/object:Gem::Dependency
62
- name: minitest
63
- requirement: !ruby/object:Gem::Requirement
64
- requirements:
65
- - - "~>"
66
- - !ruby/object:Gem::Version
67
- version: '5.16'
68
- type: :development
69
- prerelease: false
70
- version_requirements: !ruby/object:Gem::Requirement
71
- requirements:
72
- - - "~>"
73
- - !ruby/object:Gem::Version
74
- version: '5.16'
75
- - !ruby/object:Gem::Dependency
76
- name: minitest-focus
77
- requirement: !ruby/object:Gem::Requirement
78
- requirements:
79
- - - "~>"
80
- - !ruby/object:Gem::Version
81
- version: '1.1'
82
- type: :development
83
- prerelease: false
84
- version_requirements: !ruby/object:Gem::Requirement
85
- requirements:
86
- - - "~>"
87
- - !ruby/object:Gem::Version
88
- version: '1.1'
89
- - !ruby/object:Gem::Dependency
90
- name: minitest-rg
91
- requirement: !ruby/object:Gem::Requirement
92
- requirements:
93
- - - "~>"
94
- - !ruby/object:Gem::Version
95
- version: '5.2'
96
- type: :development
97
- prerelease: false
98
- version_requirements: !ruby/object:Gem::Requirement
99
- requirements:
100
- - - "~>"
101
- - !ruby/object:Gem::Version
102
- version: '5.2'
103
- - !ruby/object:Gem::Dependency
104
- name: rake
105
- requirement: !ruby/object:Gem::Requirement
106
- requirements:
107
- - - ">="
108
- - !ruby/object:Gem::Version
109
- version: '13.0'
110
- type: :development
111
- prerelease: false
112
- version_requirements: !ruby/object:Gem::Requirement
113
- requirements:
114
- - - ">="
115
- - !ruby/object:Gem::Version
116
- version: '13.0'
117
- - !ruby/object:Gem::Dependency
118
- name: redcarpet
119
- requirement: !ruby/object:Gem::Requirement
120
- requirements:
121
- - - "~>"
122
- - !ruby/object:Gem::Version
123
- version: '3.0'
124
- type: :development
125
- prerelease: false
126
- version_requirements: !ruby/object:Gem::Requirement
127
- requirements:
128
- - - "~>"
129
- - !ruby/object:Gem::Version
130
- version: '3.0'
131
- - !ruby/object:Gem::Dependency
132
- name: simplecov
133
- requirement: !ruby/object:Gem::Requirement
134
- requirements:
135
- - - "~>"
136
- - !ruby/object:Gem::Version
137
- version: '0.18'
138
- type: :development
139
- prerelease: false
140
- version_requirements: !ruby/object:Gem::Requirement
141
- requirements:
142
- - - "~>"
143
- - !ruby/object:Gem::Version
144
- version: '0.18'
145
- - !ruby/object:Gem::Dependency
146
- name: yard
147
- requirement: !ruby/object:Gem::Requirement
148
- requirements:
149
- - - "~>"
150
- - !ruby/object:Gem::Version
151
- version: '0.9'
152
- type: :development
153
- prerelease: false
154
- version_requirements: !ruby/object:Gem::Requirement
155
- requirements:
156
- - - "~>"
157
- - !ruby/object:Gem::Version
158
- version: '0.9'
159
47
  description: The Service Account Credentials API creates short-lived credentials for
160
48
  Identity and Access Management (IAM) service accounts. You can also use this API
161
49
  to sign JSON Web Tokens (JWTs), as well as blobs of binary data that contain other
@@ -205,14 +93,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
205
93
  requirements:
206
94
  - - ">="
207
95
  - !ruby/object:Gem::Version
208
- version: '2.6'
96
+ version: '2.7'
209
97
  required_rubygems_version: !ruby/object:Gem::Requirement
210
98
  requirements:
211
99
  - - ">="
212
100
  - !ruby/object:Gem::Version
213
101
  version: '0'
214
102
  requirements: []
215
- rubygems_version: 3.5.3
103
+ rubygems_version: 3.5.6
216
104
  signing_key:
217
105
  specification_version: 4
218
106
  summary: Creates short-lived, limited-privilege credentials for IAM service accounts.