google-iam-v1 0.3.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/iam/v1/iam_policy/client.rb +2 -2
- data/lib/google/iam/v1/iam_policy/rest/client.rb +14 -14
- data/lib/google/iam/v1/iam_policy/rest/service_stub.rb +12 -9
- data/lib/google/iam/v1/iam_policy_pb.rb +27 -17
- data/lib/google/iam/v1/logging/audit_data_pb.rb +25 -4
- data/lib/google/iam/v1/options_pb.rb +24 -4
- data/lib/google/iam/v1/policy_pb.rb +25 -52
- data/lib/google/iam/v1/version.rb +1 -1
- data/proto_docs/google/api/client.rb +67 -4
- data/proto_docs/google/iam/v1/policy.rb +8 -4
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b1d20c9cb30dee20c05255e4de239cf6ac7bcc989c3d788aa1ff81458f6a3b8d
|
4
|
+
data.tar.gz: dbbe18420e20e0990885e7566f6208a498c17b58be30e0d89e4597a30bff26ce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c1a50876f2fd07fe86ab8a317211dbfbfe2d646f29b0d1d9421837be9c808efe551128bda221b1e30b681baf02098c9d34448dfeffc49e338424ebce1ee30190
|
7
|
+
data.tar.gz: eb6c8ba123bf22daa15a8ded7c1bf68b344e6813205f70fa4daaf03104c1704dab85d4c94d5676793cabb7c83b6217d353cec1b348c0074e9dca05c1b0762f96
|
@@ -492,9 +492,9 @@ module Google
|
|
492
492
|
# * (`String`) The path to a service account key file in JSON format
|
493
493
|
# * (`Hash`) A service account key as a Hash
|
494
494
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
495
|
-
# (see the [googleauth docs](https://
|
495
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
496
496
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
497
|
-
# (see the [signet docs](https://
|
497
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
498
498
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
499
499
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
500
500
|
# * (`nil`) indicating no credentials
|
@@ -192,9 +192,9 @@ module Google
|
|
192
192
|
# following default mask is used:
|
193
193
|
#
|
194
194
|
# `paths: "bindings, etag"`
|
195
|
-
# @yield [result,
|
195
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
196
196
|
# @yieldparam result [::Google::Iam::V1::Policy]
|
197
|
-
# @yieldparam
|
197
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
198
198
|
#
|
199
199
|
# @return [::Google::Iam::V1::Policy]
|
200
200
|
#
|
@@ -228,8 +228,8 @@ module Google
|
|
228
228
|
|
229
229
|
bindings_override = @config.bindings_override["google.iam.v1.IAMPolicy.SetIamPolicy"]
|
230
230
|
|
231
|
-
@iam_policy_stub.set_iam_policy request, options, bindings_override: bindings_override do |result,
|
232
|
-
yield result,
|
231
|
+
@iam_policy_stub.set_iam_policy request, options, bindings_override: bindings_override do |result, operation|
|
232
|
+
yield result, operation if block_given?
|
233
233
|
return result
|
234
234
|
end
|
235
235
|
rescue ::Gapic::Rest::Error => e
|
@@ -262,9 +262,9 @@ module Google
|
|
262
262
|
# @param options [::Google::Iam::V1::GetPolicyOptions, ::Hash]
|
263
263
|
# OPTIONAL: A `GetPolicyOptions` object for specifying options to
|
264
264
|
# `GetIamPolicy`.
|
265
|
-
# @yield [result,
|
265
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
266
266
|
# @yieldparam result [::Google::Iam::V1::Policy]
|
267
|
-
# @yieldparam
|
267
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
268
268
|
#
|
269
269
|
# @return [::Google::Iam::V1::Policy]
|
270
270
|
#
|
@@ -298,8 +298,8 @@ module Google
|
|
298
298
|
|
299
299
|
bindings_override = @config.bindings_override["google.iam.v1.IAMPolicy.GetIamPolicy"]
|
300
300
|
|
301
|
-
@iam_policy_stub.get_iam_policy request, options, bindings_override: bindings_override do |result,
|
302
|
-
yield result,
|
301
|
+
@iam_policy_stub.get_iam_policy request, options, bindings_override: bindings_override do |result, operation|
|
302
|
+
yield result, operation if block_given?
|
303
303
|
return result
|
304
304
|
end
|
305
305
|
rescue ::Gapic::Rest::Error => e
|
@@ -338,9 +338,9 @@ module Google
|
|
338
338
|
# wildcards (such as '*' or 'storage.*') are not allowed. For more
|
339
339
|
# information see
|
340
340
|
# [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
|
341
|
-
# @yield [result,
|
341
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
342
342
|
# @yieldparam result [::Google::Iam::V1::TestIamPermissionsResponse]
|
343
|
-
# @yieldparam
|
343
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
344
344
|
#
|
345
345
|
# @return [::Google::Iam::V1::TestIamPermissionsResponse]
|
346
346
|
#
|
@@ -374,8 +374,8 @@ module Google
|
|
374
374
|
|
375
375
|
bindings_override = @config.bindings_override["google.iam.v1.IAMPolicy.TestIamPermissions"]
|
376
376
|
|
377
|
-
@iam_policy_stub.test_iam_permissions request, options, bindings_override: bindings_override do |result,
|
378
|
-
yield result,
|
377
|
+
@iam_policy_stub.test_iam_permissions request, options, bindings_override: bindings_override do |result, operation|
|
378
|
+
yield result, operation if block_given?
|
379
379
|
return result
|
380
380
|
end
|
381
381
|
rescue ::Gapic::Rest::Error => e
|
@@ -420,9 +420,9 @@ module Google
|
|
420
420
|
# * (`String`) The path to a service account key file in JSON format
|
421
421
|
# * (`Hash`) A service account key as a Hash
|
422
422
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
423
|
-
# (see the [googleauth docs](https://
|
423
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
424
424
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
425
|
-
# (see the [signet docs](https://
|
425
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
426
426
|
# * (`nil`) indicating no credentials
|
427
427
|
# @return [::Object]
|
428
428
|
# @!attribute [rw] scope
|
@@ -49,9 +49,9 @@ module Google
|
|
49
49
|
# @param bindings_override [::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>, nil]
|
50
50
|
# Binding overrides for the transcoding. Only used internally.
|
51
51
|
#
|
52
|
-
# @yield [result,
|
52
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
53
53
|
# @yieldparam result [::Google::Iam::V1::Policy]
|
54
|
-
# @yieldparam
|
54
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
55
55
|
#
|
56
56
|
# @return [::Google::Iam::V1::Policy]
|
57
57
|
# A result object deserialized from the server's reply
|
@@ -72,9 +72,10 @@ module Google
|
|
72
72
|
params: query_string_params,
|
73
73
|
options: options
|
74
74
|
)
|
75
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
75
76
|
result = ::Google::Iam::V1::Policy.decode_json response.body, ignore_unknown_fields: true
|
76
77
|
|
77
|
-
yield result,
|
78
|
+
yield result, operation if block_given?
|
78
79
|
result
|
79
80
|
end
|
80
81
|
|
@@ -88,9 +89,9 @@ module Google
|
|
88
89
|
# @param bindings_override [::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>, nil]
|
89
90
|
# Binding overrides for the transcoding. Only used internally.
|
90
91
|
#
|
91
|
-
# @yield [result,
|
92
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
92
93
|
# @yieldparam result [::Google::Iam::V1::Policy]
|
93
|
-
# @yieldparam
|
94
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
94
95
|
#
|
95
96
|
# @return [::Google::Iam::V1::Policy]
|
96
97
|
# A result object deserialized from the server's reply
|
@@ -111,9 +112,10 @@ module Google
|
|
111
112
|
params: query_string_params,
|
112
113
|
options: options
|
113
114
|
)
|
115
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
114
116
|
result = ::Google::Iam::V1::Policy.decode_json response.body, ignore_unknown_fields: true
|
115
117
|
|
116
|
-
yield result,
|
118
|
+
yield result, operation if block_given?
|
117
119
|
result
|
118
120
|
end
|
119
121
|
|
@@ -127,9 +129,9 @@ module Google
|
|
127
129
|
# @param bindings_override [::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>, nil]
|
128
130
|
# Binding overrides for the transcoding. Only used internally.
|
129
131
|
#
|
130
|
-
# @yield [result,
|
132
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
131
133
|
# @yieldparam result [::Google::Iam::V1::TestIamPermissionsResponse]
|
132
|
-
# @yieldparam
|
134
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
133
135
|
#
|
134
136
|
# @return [::Google::Iam::V1::TestIamPermissionsResponse]
|
135
137
|
# A result object deserialized from the server's reply
|
@@ -150,9 +152,10 @@ module Google
|
|
150
152
|
params: query_string_params,
|
151
153
|
options: options
|
152
154
|
)
|
155
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
153
156
|
result = ::Google::Iam::V1::TestIamPermissionsResponse.decode_json response.body, ignore_unknown_fields: true
|
154
157
|
|
155
|
-
yield result,
|
158
|
+
yield result, operation if block_given?
|
156
159
|
result
|
157
160
|
end
|
158
161
|
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: google/iam/v1/iam_policy.proto
|
3
4
|
|
@@ -11,25 +12,34 @@ require 'google/iam/v1/options_pb'
|
|
11
12
|
require 'google/iam/v1/policy_pb'
|
12
13
|
require 'google/protobuf/field_mask_pb'
|
13
14
|
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
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\"\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
|
+
|
18
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
19
|
+
|
20
|
+
begin
|
21
|
+
pool.add_serialized_file(descriptor_data)
|
22
|
+
rescue TypeError => e
|
23
|
+
# Compatibility code: will be removed in the next major version.
|
24
|
+
require 'google/protobuf/descriptor_pb'
|
25
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
26
|
+
parsed.clear_dependency
|
27
|
+
serialized = parsed.class.encode(parsed)
|
28
|
+
file = pool.add_serialized_file(serialized)
|
29
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
30
|
+
imports = [
|
31
|
+
["google.iam.v1.Policy", "google/iam/v1/policy.proto"],
|
32
|
+
["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
|
33
|
+
["google.iam.v1.GetPolicyOptions", "google/iam/v1/options.proto"],
|
34
|
+
]
|
35
|
+
imports.each do |type_name, expected_filename|
|
36
|
+
import_file = pool.lookup(type_name).file_descriptor
|
37
|
+
if import_file.name != expected_filename
|
38
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
31
39
|
end
|
32
40
|
end
|
41
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
42
|
+
warn "This will become an error in the next major version."
|
33
43
|
end
|
34
44
|
|
35
45
|
module Google
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: google/iam/v1/logging/audit_data.proto
|
3
4
|
|
@@ -5,12 +6,32 @@ require 'google/protobuf'
|
|
5
6
|
|
6
7
|
require 'google/iam/v1/policy_pb'
|
7
8
|
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
|
10
|
+
descriptor_data = "\n&google/iam/v1/logging/audit_data.proto\x12\x15google.iam.v1.logging\x1a\x1agoogle/iam/v1/policy.proto\"=\n\tAuditData\x12\x30\n\x0cpolicy_delta\x18\x02 \x01(\x0b\x32\x1a.google.iam.v1.PolicyDeltaB\x86\x01\n\x19\x63om.google.iam.v1.loggingB\x0e\x41uditDataProtoP\x01Z9cloud.google.com/go/iam/apiv1/logging/loggingpb;loggingpb\xaa\x02\x1bGoogle.Cloud.Iam.V1.Loggingb\x06proto3"
|
11
|
+
|
12
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
13
|
+
|
14
|
+
begin
|
15
|
+
pool.add_serialized_file(descriptor_data)
|
16
|
+
rescue TypeError => e
|
17
|
+
# Compatibility code: will be removed in the next major version.
|
18
|
+
require 'google/protobuf/descriptor_pb'
|
19
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
20
|
+
parsed.clear_dependency
|
21
|
+
serialized = parsed.class.encode(parsed)
|
22
|
+
file = pool.add_serialized_file(serialized)
|
23
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
24
|
+
imports = [
|
25
|
+
["google.iam.v1.PolicyDelta", "google/iam/v1/policy.proto"],
|
26
|
+
]
|
27
|
+
imports.each do |type_name, expected_filename|
|
28
|
+
import_file = pool.lookup(type_name).file_descriptor
|
29
|
+
if import_file.name != expected_filename
|
30
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
12
31
|
end
|
13
32
|
end
|
33
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
34
|
+
warn "This will become an error in the next major version."
|
14
35
|
end
|
15
36
|
|
16
37
|
module Google
|
@@ -1,14 +1,34 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: google/iam/v1/options.proto
|
3
4
|
|
4
5
|
require 'google/protobuf'
|
5
6
|
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
7
|
+
|
8
|
+
descriptor_data = "\n\x1bgoogle/iam/v1/options.proto\x12\rgoogle.iam.v1\"4\n\x10GetPolicyOptions\x12 \n\x18requested_policy_version\x18\x01 \x01(\x05\x42}\n\x11\x63om.google.iam.v1B\x0cOptionsProtoP\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"
|
9
|
+
|
10
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
11
|
+
|
12
|
+
begin
|
13
|
+
pool.add_serialized_file(descriptor_data)
|
14
|
+
rescue TypeError => e
|
15
|
+
# Compatibility code: will be removed in the next major version.
|
16
|
+
require 'google/protobuf/descriptor_pb'
|
17
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
18
|
+
parsed.clear_dependency
|
19
|
+
serialized = parsed.class.encode(parsed)
|
20
|
+
file = pool.add_serialized_file(serialized)
|
21
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
22
|
+
imports = [
|
23
|
+
]
|
24
|
+
imports.each do |type_name, expected_filename|
|
25
|
+
import_file = pool.lookup(type_name).file_descriptor
|
26
|
+
if import_file.name != expected_filename
|
27
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
10
28
|
end
|
11
29
|
end
|
30
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
31
|
+
warn "This will become an error in the next major version."
|
12
32
|
end
|
13
33
|
|
14
34
|
module Google
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: google/iam/v1/policy.proto
|
3
4
|
|
@@ -5,60 +6,32 @@ require 'google/protobuf'
|
|
5
6
|
|
6
7
|
require 'google/type/expr_pb'
|
7
8
|
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
value :LOG_TYPE_UNSPECIFIED, 0
|
31
|
-
value :ADMIN_READ, 1
|
32
|
-
value :DATA_WRITE, 2
|
33
|
-
value :DATA_READ, 3
|
34
|
-
end
|
35
|
-
add_message "google.iam.v1.PolicyDelta" do
|
36
|
-
repeated :binding_deltas, :message, 1, "google.iam.v1.BindingDelta"
|
37
|
-
repeated :audit_config_deltas, :message, 2, "google.iam.v1.AuditConfigDelta"
|
38
|
-
end
|
39
|
-
add_message "google.iam.v1.BindingDelta" do
|
40
|
-
optional :action, :enum, 1, "google.iam.v1.BindingDelta.Action"
|
41
|
-
optional :role, :string, 2
|
42
|
-
optional :member, :string, 3
|
43
|
-
optional :condition, :message, 4, "google.type.Expr"
|
44
|
-
end
|
45
|
-
add_enum "google.iam.v1.BindingDelta.Action" do
|
46
|
-
value :ACTION_UNSPECIFIED, 0
|
47
|
-
value :ADD, 1
|
48
|
-
value :REMOVE, 2
|
49
|
-
end
|
50
|
-
add_message "google.iam.v1.AuditConfigDelta" do
|
51
|
-
optional :action, :enum, 1, "google.iam.v1.AuditConfigDelta.Action"
|
52
|
-
optional :service, :string, 2
|
53
|
-
optional :exempted_member, :string, 3
|
54
|
-
optional :log_type, :string, 4
|
55
|
-
end
|
56
|
-
add_enum "google.iam.v1.AuditConfigDelta.Action" do
|
57
|
-
value :ACTION_UNSPECIFIED, 0
|
58
|
-
value :ADD, 1
|
59
|
-
value :REMOVE, 2
|
9
|
+
|
10
|
+
descriptor_data = "\n\x1agoogle/iam/v1/policy.proto\x12\rgoogle.iam.v1\x1a\x16google/type/expr.proto\"\x84\x01\n\x06Policy\x12\x0f\n\x07version\x18\x01 \x01(\x05\x12(\n\x08\x62indings\x18\x04 \x03(\x0b\x32\x16.google.iam.v1.Binding\x12\x31\n\raudit_configs\x18\x06 \x03(\x0b\x32\x1a.google.iam.v1.AuditConfig\x12\x0c\n\x04\x65tag\x18\x03 \x01(\x0c\"N\n\x07\x42inding\x12\x0c\n\x04role\x18\x01 \x01(\t\x12\x0f\n\x07members\x18\x02 \x03(\t\x12$\n\tcondition\x18\x03 \x01(\x0b\x32\x11.google.type.Expr\"X\n\x0b\x41uditConfig\x12\x0f\n\x07service\x18\x01 \x01(\t\x12\x38\n\x11\x61udit_log_configs\x18\x03 \x03(\x0b\x32\x1d.google.iam.v1.AuditLogConfig\"\xb7\x01\n\x0e\x41uditLogConfig\x12\x37\n\x08log_type\x18\x01 \x01(\x0e\x32%.google.iam.v1.AuditLogConfig.LogType\x12\x18\n\x10\x65xempted_members\x18\x02 \x03(\t\"R\n\x07LogType\x12\x18\n\x14LOG_TYPE_UNSPECIFIED\x10\x00\x12\x0e\n\nADMIN_READ\x10\x01\x12\x0e\n\nDATA_WRITE\x10\x02\x12\r\n\tDATA_READ\x10\x03\"\x80\x01\n\x0bPolicyDelta\x12\x33\n\x0e\x62inding_deltas\x18\x01 \x03(\x0b\x32\x1b.google.iam.v1.BindingDelta\x12<\n\x13\x61udit_config_deltas\x18\x02 \x03(\x0b\x32\x1f.google.iam.v1.AuditConfigDelta\"\xbd\x01\n\x0c\x42indingDelta\x12\x32\n\x06\x61\x63tion\x18\x01 \x01(\x0e\x32\".google.iam.v1.BindingDelta.Action\x12\x0c\n\x04role\x18\x02 \x01(\t\x12\x0e\n\x06member\x18\x03 \x01(\t\x12$\n\tcondition\x18\x04 \x01(\x0b\x32\x11.google.type.Expr\"5\n\x06\x41\x63tion\x12\x16\n\x12\x41\x43TION_UNSPECIFIED\x10\x00\x12\x07\n\x03\x41\x44\x44\x10\x01\x12\n\n\x06REMOVE\x10\x02\"\xbd\x01\n\x10\x41uditConfigDelta\x12\x36\n\x06\x61\x63tion\x18\x01 \x01(\x0e\x32&.google.iam.v1.AuditConfigDelta.Action\x12\x0f\n\x07service\x18\x02 \x01(\t\x12\x17\n\x0f\x65xempted_member\x18\x03 \x01(\t\x12\x10\n\x08log_type\x18\x04 \x01(\t\"5\n\x06\x41\x63tion\x12\x16\n\x12\x41\x43TION_UNSPECIFIED\x10\x00\x12\x07\n\x03\x41\x44\x44\x10\x01\x12\n\n\x06REMOVE\x10\x02\x42|\n\x11\x63om.google.iam.v1B\x0bPolicyProtoP\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"
|
11
|
+
|
12
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
13
|
+
|
14
|
+
begin
|
15
|
+
pool.add_serialized_file(descriptor_data)
|
16
|
+
rescue TypeError => e
|
17
|
+
# Compatibility code: will be removed in the next major version.
|
18
|
+
require 'google/protobuf/descriptor_pb'
|
19
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
20
|
+
parsed.clear_dependency
|
21
|
+
serialized = parsed.class.encode(parsed)
|
22
|
+
file = pool.add_serialized_file(serialized)
|
23
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
24
|
+
imports = [
|
25
|
+
["google.type.Expr", "google/type/expr.proto"],
|
26
|
+
]
|
27
|
+
imports.each do |type_name, expected_filename|
|
28
|
+
import_file = pool.lookup(type_name).file_descriptor
|
29
|
+
if import_file.name != expected_filename
|
30
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
60
31
|
end
|
61
32
|
end
|
33
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
34
|
+
warn "This will become an error in the next major version."
|
62
35
|
end
|
63
36
|
|
64
37
|
module Google
|
@@ -35,7 +35,9 @@ module Google
|
|
35
35
|
# Details about how and where to publish client libraries.
|
36
36
|
# @!attribute [rw] version
|
37
37
|
# @return [::String]
|
38
|
-
# Version of the API to apply these settings to.
|
38
|
+
# Version of the API to apply these settings to. This is the full protobuf
|
39
|
+
# package for the API, ending in the version element.
|
40
|
+
# Examples: "google.cloud.speech.v1" and "google.spanner.admin.database.v1".
|
39
41
|
# @!attribute [rw] launch_stage
|
40
42
|
# @return [::Google::Api::LaunchStage]
|
41
43
|
# Launch stage of this version of the API.
|
@@ -81,7 +83,7 @@ module Google
|
|
81
83
|
# long-running operation pattern.
|
82
84
|
# @!attribute [rw] new_issue_uri
|
83
85
|
# @return [::String]
|
84
|
-
# Link to a
|
86
|
+
# Link to a *public* URI where users can report issues. Example:
|
85
87
|
# https://issuetracker.google.com/issues/new?component=190865&template=1161103
|
86
88
|
# @!attribute [rw] documentation_uri
|
87
89
|
# @return [::String]
|
@@ -111,6 +113,10 @@ module Google
|
|
111
113
|
# Client library settings. If the same version string appears multiple
|
112
114
|
# times in this list, then the last one wins. Settings from earlier
|
113
115
|
# settings with the same version string are discarded.
|
116
|
+
# @!attribute [rw] proto_reference_documentation_uri
|
117
|
+
# @return [::String]
|
118
|
+
# Optional link to proto reference documentation. Example:
|
119
|
+
# https://cloud.google.com/pubsub/lite/docs/reference/rpc
|
114
120
|
class Publishing
|
115
121
|
include ::Google::Protobuf::MessageExts
|
116
122
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -203,9 +209,57 @@ module Google
|
|
203
209
|
# @!attribute [rw] common
|
204
210
|
# @return [::Google::Api::CommonLanguageSettings]
|
205
211
|
# Some settings.
|
212
|
+
# @!attribute [rw] renamed_services
|
213
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
214
|
+
# Map from original service names to renamed versions.
|
215
|
+
# This is used when the default generated types
|
216
|
+
# would cause a naming conflict. (Neither name is
|
217
|
+
# fully-qualified.)
|
218
|
+
# Example: Subscriber to SubscriberServiceApi.
|
219
|
+
# @!attribute [rw] renamed_resources
|
220
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
221
|
+
# Map from full resource types to the effective short name
|
222
|
+
# for the resource. This is used when otherwise resource
|
223
|
+
# named from different services would cause naming collisions.
|
224
|
+
# Example entry:
|
225
|
+
# "datalabeling.googleapis.com/Dataset": "DataLabelingDataset"
|
226
|
+
# @!attribute [rw] ignored_resources
|
227
|
+
# @return [::Array<::String>]
|
228
|
+
# List of full resource types to ignore during generation.
|
229
|
+
# This is typically used for API-specific Location resources,
|
230
|
+
# which should be handled by the generator as if they were actually
|
231
|
+
# the common Location resources.
|
232
|
+
# Example entry: "documentai.googleapis.com/Location"
|
233
|
+
# @!attribute [rw] forced_namespace_aliases
|
234
|
+
# @return [::Array<::String>]
|
235
|
+
# Namespaces which must be aliased in snippets due to
|
236
|
+
# a known (but non-generator-predictable) naming collision
|
237
|
+
# @!attribute [rw] handwritten_signatures
|
238
|
+
# @return [::Array<::String>]
|
239
|
+
# Method signatures (in the form "service.method(signature)")
|
240
|
+
# which are provided separately, so shouldn't be generated.
|
241
|
+
# Snippets *calling* these methods are still generated, however.
|
206
242
|
class DotnetSettings
|
207
243
|
include ::Google::Protobuf::MessageExts
|
208
244
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
245
|
+
|
246
|
+
# @!attribute [rw] key
|
247
|
+
# @return [::String]
|
248
|
+
# @!attribute [rw] value
|
249
|
+
# @return [::String]
|
250
|
+
class RenamedServicesEntry
|
251
|
+
include ::Google::Protobuf::MessageExts
|
252
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
253
|
+
end
|
254
|
+
|
255
|
+
# @!attribute [rw] key
|
256
|
+
# @return [::String]
|
257
|
+
# @!attribute [rw] value
|
258
|
+
# @return [::String]
|
259
|
+
class RenamedResourcesEntry
|
260
|
+
include ::Google::Protobuf::MessageExts
|
261
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
262
|
+
end
|
209
263
|
end
|
210
264
|
|
211
265
|
# Settings for Ruby client libraries.
|
@@ -240,8 +294,8 @@ module Google
|
|
240
294
|
# Example of a YAML configuration::
|
241
295
|
#
|
242
296
|
# publishing:
|
243
|
-
#
|
244
|
-
# - selector:
|
297
|
+
# method_settings:
|
298
|
+
# - selector: google.cloud.speech.v2.Speech.BatchRecognize
|
245
299
|
# long_running:
|
246
300
|
# initial_poll_delay:
|
247
301
|
# seconds: 60 # 1 minute
|
@@ -299,6 +353,15 @@ module Google
|
|
299
353
|
|
300
354
|
# Street View Org.
|
301
355
|
STREET_VIEW = 4
|
356
|
+
|
357
|
+
# Shopping Org.
|
358
|
+
SHOPPING = 5
|
359
|
+
|
360
|
+
# Geo Org.
|
361
|
+
GEO = 6
|
362
|
+
|
363
|
+
# Generative AI - https://developers.generativeai.google
|
364
|
+
GENERATIVE_AI = 7
|
302
365
|
end
|
303
366
|
|
304
367
|
# To where should client libraries be published?
|
@@ -35,7 +35,8 @@ module Google
|
|
35
35
|
# only if the expression evaluates to `true`. A condition can add constraints
|
36
36
|
# based on attributes of the request, the resource, or both. To learn which
|
37
37
|
# resources support conditions in their IAM policies, see the
|
38
|
-
# [IAM
|
38
|
+
# [IAM
|
39
|
+
# documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
|
39
40
|
#
|
40
41
|
# **JSON example:**
|
41
42
|
#
|
@@ -58,7 +59,8 @@ module Google
|
|
58
59
|
# "condition": {
|
59
60
|
# "title": "expirable access",
|
60
61
|
# "description": "Does not grant access after Sep 2020",
|
61
|
-
# "expression": "request.time <
|
62
|
+
# "expression": "request.time <
|
63
|
+
# timestamp('2020-10-01T00:00:00.000Z')",
|
62
64
|
# }
|
63
65
|
# }
|
64
66
|
# ],
|
@@ -112,7 +114,8 @@ module Google
|
|
112
114
|
# specify any valid version or leave the field unset.
|
113
115
|
#
|
114
116
|
# To learn which resources support conditions in their IAM policies, see the
|
115
|
-
# [IAM
|
117
|
+
# [IAM
|
118
|
+
# documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
|
116
119
|
# @!attribute [rw] bindings
|
117
120
|
# @return [::Array<::Google::Iam::V1::Binding>]
|
118
121
|
# Associates a list of `members`, or principals, with a `role`. Optionally,
|
@@ -305,7 +308,8 @@ module Google
|
|
305
308
|
# @return [::Array<::String>]
|
306
309
|
# Specifies the identities that do not cause logging for this type of
|
307
310
|
# permission.
|
308
|
-
# Follows the same format of
|
311
|
+
# Follows the same format of
|
312
|
+
# {::Google::Iam::V1::Binding#members Binding.members}.
|
309
313
|
class AuditLogConfig
|
310
314
|
include ::Google::Protobuf::MessageExts
|
311
315
|
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.
|
4
|
+
version: 0.5.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-
|
11
|
+
date: 2023-05-31 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
|
+
version: 0.19.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.
|
29
|
+
version: 0.19.0
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -64,14 +64,14 @@ dependencies:
|
|
64
64
|
requirements:
|
65
65
|
- - "~>"
|
66
66
|
- !ruby/object:Gem::Version
|
67
|
-
version: 1.26.
|
67
|
+
version: 1.26.3
|
68
68
|
type: :development
|
69
69
|
prerelease: false
|
70
70
|
version_requirements: !ruby/object:Gem::Requirement
|
71
71
|
requirements:
|
72
72
|
- - "~>"
|
73
73
|
- !ruby/object:Gem::Version
|
74
|
-
version: 1.26.
|
74
|
+
version: 1.26.3
|
75
75
|
- !ruby/object:Gem::Dependency
|
76
76
|
name: minitest
|
77
77
|
requirement: !ruby/object:Gem::Requirement
|
@@ -230,5 +230,5 @@ requirements: []
|
|
230
230
|
rubygems_version: 3.4.2
|
231
231
|
signing_key:
|
232
232
|
specification_version: 4
|
233
|
-
summary:
|
233
|
+
summary: Manages access control for Google Cloud Platform resources.
|
234
234
|
test_files: []
|