google-iam-v1 0.7.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: d799171801edd7f55d3d011b9e9bff3279a189440bdc6f3b24ee23d9450794cc
4
- data.tar.gz: d3d3b713ba48d5f2e3e4ee0222708c7fe0d2d0869f8ac3c5525b945737565453
3
+ metadata.gz: 32b3f93653e922487467be86fa8848f47cfeff59a31176cdceea9f0c678564f9
4
+ data.tar.gz: fb2c3dcb8728b5722eb04ad7755cbabcd732192a8467e05905c28bf0de1f6a7a
5
5
  SHA512:
6
- metadata.gz: d787689c074aab774402a33a747e13d59e20fab3426af757095b6920645ed1087bcbded5e41486be16ae5eff0216c63ad8fbd8b68838d84cac76690a104dd137
7
- data.tar.gz: 165619980636ca0e33c48abdffd6e17831c6a86e2b916e6a62fc8f75ea8103af790d781ab737cf84e9a700bb371c3cadd4564d9e3ffb373d042ece79d8f3315e
6
+ metadata.gz: c441f88cd1e08d6df5f6079d720804c04a7447fef8c2f67b2576411f5b3762308c7e8644031388db95f687e869a46a5aba403fc957d2afe79512cd33f1c49a74
7
+ data.tar.gz: 984d12daf83c609790768b72ab1f1c6e7a975d2bbd5c6843c8a020659417a491f5b98d0eea346b65d168972b5ed580345dd70d19d7660dbbd64873d4dd3e2094
data/README.md CHANGED
@@ -5,11 +5,11 @@ policy calls. You generally do not need to invoke this gem directly.
5
5
 
6
6
  ## Supported Ruby Versions
7
7
 
8
- This library is supported on Ruby 2.5+.
8
+ This library is supported on Ruby 2.7+.
9
9
 
10
10
  Google provides official support for Ruby versions that are actively supported
11
11
  by Ruby Core—that is, Ruby versions that are either in normal maintenance or
12
- in security maintenance, and not end of life. Currently, this means Ruby 2.5
13
- and later. Older versions of Ruby _may_ still work, but are unsupported and not
14
- recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details
15
- about the Ruby support schedule.
12
+ in security maintenance, and not end of life. Older versions of Ruby _may_
13
+ still work, but are unsupported and not recommended. See
14
+ https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby
15
+ support schedule.
@@ -54,6 +54,9 @@ module Google
54
54
  # attached.
55
55
  #
56
56
  class Client
57
+ # @private
58
+ API_VERSION = ""
59
+
57
60
  # @private
58
61
  DEFAULT_ENDPOINT_TEMPLATE = "iam-meta-api.$UNIVERSE_DOMAIN$"
59
62
 
@@ -252,10 +255,11 @@ module Google
252
255
  # Customize the options with defaults
253
256
  metadata = @config.rpcs.set_iam_policy.metadata.to_h
254
257
 
255
- # Set x-goog-api-client and x-goog-user-project headers
258
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
256
259
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
257
260
  lib_name: @config.lib_name, lib_version: @config.lib_version,
258
261
  gapic_version: ::Google::Iam::V1::VERSION
262
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
259
263
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
260
264
 
261
265
  header_params = {}
@@ -343,10 +347,11 @@ module Google
343
347
  # Customize the options with defaults
344
348
  metadata = @config.rpcs.get_iam_policy.metadata.to_h
345
349
 
346
- # Set x-goog-api-client and x-goog-user-project headers
350
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
347
351
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
348
352
  lib_name: @config.lib_name, lib_version: @config.lib_version,
349
353
  gapic_version: ::Google::Iam::V1::VERSION
354
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
350
355
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
351
356
 
352
357
  header_params = {}
@@ -440,10 +445,11 @@ module Google
440
445
  # Customize the options with defaults
441
446
  metadata = @config.rpcs.test_iam_permissions.metadata.to_h
442
447
 
443
- # Set x-goog-api-client and x-goog-user-project headers
448
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
444
449
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
445
450
  lib_name: @config.lib_name, lib_version: @config.lib_version,
446
451
  gapic_version: ::Google::Iam::V1::VERSION
452
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
447
453
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
448
454
 
449
455
  header_params = {}
@@ -56,6 +56,9 @@ module Google
56
56
  # attached.
57
57
  #
58
58
  class Client
59
+ # @private
60
+ API_VERSION = ""
61
+
59
62
  # @private
60
63
  DEFAULT_ENDPOINT_TEMPLATE = "iam-meta-api.$UNIVERSE_DOMAIN$"
61
64
 
@@ -244,12 +247,13 @@ module Google
244
247
  # Customize the options with defaults
245
248
  call_metadata = @config.rpcs.set_iam_policy.metadata.to_h
246
249
 
247
- # Set x-goog-api-client and x-goog-user-project headers
250
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
248
251
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
249
252
  lib_name: @config.lib_name, lib_version: @config.lib_version,
250
253
  gapic_version: ::Google::Iam::V1::VERSION,
251
254
  transports_version_send: [:rest]
252
255
 
256
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
253
257
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
254
258
 
255
259
  options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout,
@@ -330,12 +334,13 @@ module Google
330
334
  # Customize the options with defaults
331
335
  call_metadata = @config.rpcs.get_iam_policy.metadata.to_h
332
336
 
333
- # Set x-goog-api-client and x-goog-user-project headers
337
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
334
338
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
335
339
  lib_name: @config.lib_name, lib_version: @config.lib_version,
336
340
  gapic_version: ::Google::Iam::V1::VERSION,
337
341
  transports_version_send: [:rest]
338
342
 
343
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
339
344
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
340
345
 
341
346
  options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout,
@@ -422,12 +427,13 @@ module Google
422
427
  # Customize the options with defaults
423
428
  call_metadata = @config.rpcs.test_iam_permissions.metadata.to_h
424
429
 
425
- # Set x-goog-api-client and x-goog-user-project headers
430
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
426
431
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
427
432
  lib_name: @config.lib_name, lib_version: @config.lib_version,
428
433
  gapic_version: ::Google::Iam::V1::VERSION,
429
434
  transports_version_send: [:rest]
430
435
 
436
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
431
437
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
432
438
 
433
439
  options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout,
@@ -13,7 +13,7 @@ require 'google/iam/v1/policy_pb'
13
13
  require 'google/protobuf/field_mask_pb'
14
14
 
15
15
 
16
- descriptor_data = "\n\x1egoogle/iam/v1/iam_policy.proto\x12\rgoogle.iam.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1bgoogle/iam/v1/options.proto\x1a\x1agoogle/iam/v1/policy.proto\x1a google/protobuf/field_mask.proto\"\x91\x01\n\x13SetIamPolicyRequest\x12\x1c\n\x08resource\x18\x01 \x01(\tB\n\xe2\x41\x01\x02\xfa\x41\x03\n\x01*\x12+\n\x06policy\x18\x02 \x01(\x0b\x32\x15.google.iam.v1.PolicyB\x04\xe2\x41\x01\x02\x12/\n\x0bupdate_mask\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"e\n\x13GetIamPolicyRequest\x12\x1c\n\x08resource\x18\x01 \x01(\tB\n\xe2\x41\x01\x02\xfa\x41\x03\n\x01*\x12\x30\n\x07options\x18\x02 \x01(\x0b\x32\x1f.google.iam.v1.GetPolicyOptions\"T\n\x19TestIamPermissionsRequest\x12\x1c\n\x08resource\x18\x01 \x01(\tB\n\xe2\x41\x01\x02\xfa\x41\x03\n\x01*\x12\x19\n\x0bpermissions\x18\x02 \x03(\tB\x04\xe2\x41\x01\x02\"1\n\x1aTestIamPermissionsResponse\x12\x13\n\x0bpermissions\x18\x01 \x03(\t2\xb4\x03\n\tIAMPolicy\x12t\n\x0cSetIamPolicy\x12\".google.iam.v1.SetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\")\x82\xd3\xe4\x93\x02#\"\x1e/v1/{resource=**}:setIamPolicy:\x01*\x12t\n\x0cGetIamPolicy\x12\".google.iam.v1.GetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\")\x82\xd3\xe4\x93\x02#\"\x1e/v1/{resource=**}:getIamPolicy:\x01*\x12\x9a\x01\n\x12TestIamPermissions\x12(.google.iam.v1.TestIamPermissionsRequest\x1a).google.iam.v1.TestIamPermissionsResponse\"/\x82\xd3\xe4\x93\x02)\"$/v1/{resource=**}:testIamPermissions:\x01*\x1a\x1e\xca\x41\x1biam-meta-api.googleapis.comB\x7f\n\x11\x63om.google.iam.v1B\x0eIamPolicyProtoP\x01Z)cloud.google.com/go/iam/apiv1/iampb;iampb\xf8\x01\x01\xaa\x02\x13Google.Cloud.Iam.V1\xca\x02\x13Google\\Cloud\\Iam\\V1b\x06proto3"
16
+ descriptor_data = "\n\x1egoogle/iam/v1/iam_policy.proto\x12\rgoogle.iam.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1bgoogle/iam/v1/options.proto\x1a\x1agoogle/iam/v1/policy.proto\x1a google/protobuf/field_mask.proto\"\x8f\x01\n\x13SetIamPolicyRequest\x12\x1b\n\x08resource\x18\x01 \x01(\tB\t\xe0\x41\x02\xfa\x41\x03\n\x01*\x12*\n\x06policy\x18\x02 \x01(\x0b\x32\x15.google.iam.v1.PolicyB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"d\n\x13GetIamPolicyRequest\x12\x1b\n\x08resource\x18\x01 \x01(\tB\t\xe0\x41\x02\xfa\x41\x03\n\x01*\x12\x30\n\x07options\x18\x02 \x01(\x0b\x32\x1f.google.iam.v1.GetPolicyOptions\"R\n\x19TestIamPermissionsRequest\x12\x1b\n\x08resource\x18\x01 \x01(\tB\t\xe0\x41\x02\xfa\x41\x03\n\x01*\x12\x18\n\x0bpermissions\x18\x02 \x03(\tB\x03\xe0\x41\x02\"1\n\x1aTestIamPermissionsResponse\x12\x13\n\x0bpermissions\x18\x01 \x03(\t2\xb4\x03\n\tIAMPolicy\x12t\n\x0cSetIamPolicy\x12\".google.iam.v1.SetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\")\x82\xd3\xe4\x93\x02#\"\x1e/v1/{resource=**}:setIamPolicy:\x01*\x12t\n\x0cGetIamPolicy\x12\".google.iam.v1.GetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\")\x82\xd3\xe4\x93\x02#\"\x1e/v1/{resource=**}:getIamPolicy:\x01*\x12\x9a\x01\n\x12TestIamPermissions\x12(.google.iam.v1.TestIamPermissionsRequest\x1a).google.iam.v1.TestIamPermissionsResponse\"/\x82\xd3\xe4\x93\x02)\"$/v1/{resource=**}:testIamPermissions:\x01*\x1a\x1e\xca\x41\x1biam-meta-api.googleapis.comB\x7f\n\x11\x63om.google.iam.v1B\x0eIamPolicyProtoP\x01Z)cloud.google.com/go/iam/apiv1/iampb;iampb\xf8\x01\x01\xaa\x02\x13Google.Cloud.Iam.V1\xca\x02\x13Google\\Cloud\\Iam\\V1b\x06proto3"
17
17
 
18
18
  pool = Google::Protobuf::DescriptorPool.generated_pool
19
19
 
@@ -20,7 +20,7 @@
20
20
  module Google
21
21
  module Iam
22
22
  module V1
23
- VERSION = "0.7.2"
23
+ VERSION = "1.0.0"
24
24
  end
25
25
  end
26
26
  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-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.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-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -58,118 +58,6 @@ dependencies:
58
58
  - - "~>"
59
59
  - !ruby/object:Gem::Version
60
60
  version: '1.1'
61
- - !ruby/object:Gem::Dependency
62
- name: google-style
63
- requirement: !ruby/object:Gem::Requirement
64
- requirements:
65
- - - "~>"
66
- - !ruby/object:Gem::Version
67
- version: 1.26.3
68
- type: :development
69
- prerelease: false
70
- version_requirements: !ruby/object:Gem::Requirement
71
- requirements:
72
- - - "~>"
73
- - !ruby/object:Gem::Version
74
- version: 1.26.3
75
- - !ruby/object:Gem::Dependency
76
- name: minitest
77
- requirement: !ruby/object:Gem::Requirement
78
- requirements:
79
- - - "~>"
80
- - !ruby/object:Gem::Version
81
- version: '5.16'
82
- type: :development
83
- prerelease: false
84
- version_requirements: !ruby/object:Gem::Requirement
85
- requirements:
86
- - - "~>"
87
- - !ruby/object:Gem::Version
88
- version: '5.16'
89
- - !ruby/object:Gem::Dependency
90
- name: minitest-focus
91
- requirement: !ruby/object:Gem::Requirement
92
- requirements:
93
- - - "~>"
94
- - !ruby/object:Gem::Version
95
- version: '1.1'
96
- type: :development
97
- prerelease: false
98
- version_requirements: !ruby/object:Gem::Requirement
99
- requirements:
100
- - - "~>"
101
- - !ruby/object:Gem::Version
102
- version: '1.1'
103
- - !ruby/object:Gem::Dependency
104
- name: minitest-rg
105
- requirement: !ruby/object:Gem::Requirement
106
- requirements:
107
- - - "~>"
108
- - !ruby/object:Gem::Version
109
- version: '5.2'
110
- type: :development
111
- prerelease: false
112
- version_requirements: !ruby/object:Gem::Requirement
113
- requirements:
114
- - - "~>"
115
- - !ruby/object:Gem::Version
116
- version: '5.2'
117
- - !ruby/object:Gem::Dependency
118
- name: rake
119
- requirement: !ruby/object:Gem::Requirement
120
- requirements:
121
- - - ">="
122
- - !ruby/object:Gem::Version
123
- version: '13.0'
124
- type: :development
125
- prerelease: false
126
- version_requirements: !ruby/object:Gem::Requirement
127
- requirements:
128
- - - ">="
129
- - !ruby/object:Gem::Version
130
- version: '13.0'
131
- - !ruby/object:Gem::Dependency
132
- name: redcarpet
133
- requirement: !ruby/object:Gem::Requirement
134
- requirements:
135
- - - "~>"
136
- - !ruby/object:Gem::Version
137
- version: '3.0'
138
- type: :development
139
- prerelease: false
140
- version_requirements: !ruby/object:Gem::Requirement
141
- requirements:
142
- - - "~>"
143
- - !ruby/object:Gem::Version
144
- version: '3.0'
145
- - !ruby/object:Gem::Dependency
146
- name: simplecov
147
- requirement: !ruby/object:Gem::Requirement
148
- requirements:
149
- - - "~>"
150
- - !ruby/object:Gem::Version
151
- version: '0.18'
152
- type: :development
153
- prerelease: false
154
- version_requirements: !ruby/object:Gem::Requirement
155
- requirements:
156
- - - "~>"
157
- - !ruby/object:Gem::Version
158
- version: '0.18'
159
- - !ruby/object:Gem::Dependency
160
- name: yard
161
- requirement: !ruby/object:Gem::Requirement
162
- requirements:
163
- - - "~>"
164
- - !ruby/object:Gem::Version
165
- version: '0.9'
166
- type: :development
167
- prerelease: false
168
- version_requirements: !ruby/object:Gem::Requirement
169
- requirements:
170
- - - "~>"
171
- - !ruby/object:Gem::Version
172
- version: '0.9'
173
61
  description: An add-on interface used by some Google API clients to provide IAM Policy
174
62
  calls. Note that google-iam-v1 is a version-specific client library. For most uses,
175
63
  we recommend installing the main client library google-iam instead. See the readme
@@ -220,14 +108,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
220
108
  requirements:
221
109
  - - ">="
222
110
  - !ruby/object:Gem::Version
223
- version: '2.6'
111
+ version: '2.7'
224
112
  required_rubygems_version: !ruby/object:Gem::Requirement
225
113
  requirements:
226
114
  - - ">="
227
115
  - !ruby/object:Gem::Version
228
116
  version: '0'
229
117
  requirements: []
230
- rubygems_version: 3.5.3
118
+ rubygems_version: 3.5.6
231
119
  signing_key:
232
120
  specification_version: 4
233
121
  summary: Manages access control for Google Cloud Platform resources.