google-iam-v3beta 0.4.1 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +4 -4
- data/README.md +5 -5
- data/lib/google/iam/v3beta/access_policies/client.rb +1113 -0
- data/lib/google/iam/v3beta/access_policies/credentials.rb +45 -0
- data/lib/google/iam/v3beta/access_policies/operations.rb +841 -0
- data/lib/google/iam/v3beta/access_policies/paths.rb +140 -0
- data/lib/google/iam/v3beta/access_policies/rest/client.rb +1028 -0
- data/lib/google/iam/v3beta/access_policies/rest/operations.rb +939 -0
- data/lib/google/iam/v3beta/access_policies/rest/service_stub.rb +535 -0
- data/lib/google/iam/v3beta/access_policies/rest.rb +51 -0
- data/lib/google/iam/v3beta/access_policies.rb +54 -0
- data/lib/google/iam/v3beta/access_policies_service_pb.rb +36 -0
- data/lib/google/iam/v3beta/access_policies_service_services_pb.rb +54 -0
- data/lib/google/iam/v3beta/access_policy_resources_pb.rb +29 -0
- data/lib/google/iam/v3beta/policy_binding_resources_pb.rb +1 -1
- data/lib/google/iam/v3beta/policy_bindings/client.rb +21 -11
- data/lib/google/iam/v3beta/policy_bindings/operations.rb +2 -0
- data/lib/google/iam/v3beta/policy_bindings/rest/client.rb +21 -11
- data/lib/google/iam/v3beta/policy_bindings/rest/operations.rb +2 -0
- data/lib/google/iam/v3beta/policy_bindings_service_pb.rb +1 -1
- data/lib/google/iam/v3beta/policy_bindings_service_services_pb.rb +3 -5
- data/lib/google/iam/v3beta/principal_access_boundary_policies/client.rb +2 -0
- data/lib/google/iam/v3beta/principal_access_boundary_policies/operations.rb +2 -0
- data/lib/google/iam/v3beta/principal_access_boundary_policies/rest/client.rb +2 -0
- data/lib/google/iam/v3beta/principal_access_boundary_policies/rest/operations.rb +2 -0
- data/lib/google/iam/v3beta/rest.rb +2 -1
- data/lib/google/iam/v3beta/version.rb +1 -1
- data/lib/google/iam/v3beta.rb +3 -2
- data/lib/google-iam-v3beta.rb +1 -1
- data/proto_docs/google/iam/v3beta/access_policies_service.rb +203 -0
- data/proto_docs/google/iam/v3beta/access_policy_resources.rb +223 -0
- data/proto_docs/google/iam/v3beta/policy_binding_resources.rb +50 -28
- data/proto_docs/google/iam/v3beta/policy_bindings_service.rb +16 -5
- metadata +17 -3
|
@@ -0,0 +1,535 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright 2026 Google LLC
|
|
4
|
+
#
|
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
# you may not use this file except in compliance with the License.
|
|
7
|
+
# You may obtain a copy of the License at
|
|
8
|
+
#
|
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
#
|
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
# See the License for the specific language governing permissions and
|
|
15
|
+
# limitations under the License.
|
|
16
|
+
|
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
|
18
|
+
|
|
19
|
+
require "google/iam/v3beta/access_policies_service_pb"
|
|
20
|
+
|
|
21
|
+
module Google
|
|
22
|
+
module Iam
|
|
23
|
+
module V3beta
|
|
24
|
+
module AccessPolicies
|
|
25
|
+
module Rest
|
|
26
|
+
##
|
|
27
|
+
# REST service stub for the AccessPolicies service.
|
|
28
|
+
# Service stub contains baseline method implementations
|
|
29
|
+
# including transcoding, making the REST call, and deserialing the response.
|
|
30
|
+
#
|
|
31
|
+
class ServiceStub
|
|
32
|
+
# @private
|
|
33
|
+
def initialize endpoint:, endpoint_template:, universe_domain:, credentials:, logger:
|
|
34
|
+
# These require statements are intentionally placed here to initialize
|
|
35
|
+
# the REST modules only when it's required.
|
|
36
|
+
require "gapic/rest"
|
|
37
|
+
|
|
38
|
+
@client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint,
|
|
39
|
+
endpoint_template: endpoint_template,
|
|
40
|
+
universe_domain: universe_domain,
|
|
41
|
+
credentials: credentials,
|
|
42
|
+
numeric_enums: true,
|
|
43
|
+
service_name: self.class,
|
|
44
|
+
raise_faraday_errors: false,
|
|
45
|
+
logger: logger
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
##
|
|
49
|
+
# The effective universe domain
|
|
50
|
+
#
|
|
51
|
+
# @return [String]
|
|
52
|
+
#
|
|
53
|
+
def universe_domain
|
|
54
|
+
@client_stub.universe_domain
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
##
|
|
58
|
+
# The effective endpoint
|
|
59
|
+
#
|
|
60
|
+
# @return [String]
|
|
61
|
+
#
|
|
62
|
+
def endpoint
|
|
63
|
+
@client_stub.endpoint
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
##
|
|
67
|
+
# The logger used for request/response debug logging.
|
|
68
|
+
#
|
|
69
|
+
# @return [Logger]
|
|
70
|
+
#
|
|
71
|
+
def logger stub: false
|
|
72
|
+
stub ? @client_stub.stub_logger : @client_stub.logger
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
##
|
|
76
|
+
# Baseline implementation for the create_access_policy REST call
|
|
77
|
+
#
|
|
78
|
+
# @param request_pb [::Google::Iam::V3beta::CreateAccessPolicyRequest]
|
|
79
|
+
# A request object representing the call parameters. Required.
|
|
80
|
+
# @param options [::Gapic::CallOptions]
|
|
81
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
82
|
+
#
|
|
83
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
84
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
|
85
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
86
|
+
#
|
|
87
|
+
# @return [::Google::Longrunning::Operation]
|
|
88
|
+
# A result object deserialized from the server's reply
|
|
89
|
+
def create_access_policy request_pb, options = nil
|
|
90
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
91
|
+
|
|
92
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_create_access_policy_request request_pb
|
|
93
|
+
query_string_params = if query_string_params.any?
|
|
94
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
95
|
+
else
|
|
96
|
+
{}
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
response = @client_stub.make_http_request(
|
|
100
|
+
verb,
|
|
101
|
+
uri: uri,
|
|
102
|
+
body: body || "",
|
|
103
|
+
params: query_string_params,
|
|
104
|
+
method_name: "create_access_policy",
|
|
105
|
+
options: options
|
|
106
|
+
)
|
|
107
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
108
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
|
109
|
+
catch :response do
|
|
110
|
+
yield result, operation if block_given?
|
|
111
|
+
result
|
|
112
|
+
end
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
##
|
|
116
|
+
# Baseline implementation for the get_access_policy REST call
|
|
117
|
+
#
|
|
118
|
+
# @param request_pb [::Google::Iam::V3beta::GetAccessPolicyRequest]
|
|
119
|
+
# A request object representing the call parameters. Required.
|
|
120
|
+
# @param options [::Gapic::CallOptions]
|
|
121
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
122
|
+
#
|
|
123
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
124
|
+
# @yieldparam result [::Google::Iam::V3beta::AccessPolicy]
|
|
125
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
126
|
+
#
|
|
127
|
+
# @return [::Google::Iam::V3beta::AccessPolicy]
|
|
128
|
+
# A result object deserialized from the server's reply
|
|
129
|
+
def get_access_policy request_pb, options = nil
|
|
130
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
131
|
+
|
|
132
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_access_policy_request request_pb
|
|
133
|
+
query_string_params = if query_string_params.any?
|
|
134
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
135
|
+
else
|
|
136
|
+
{}
|
|
137
|
+
end
|
|
138
|
+
|
|
139
|
+
response = @client_stub.make_http_request(
|
|
140
|
+
verb,
|
|
141
|
+
uri: uri,
|
|
142
|
+
body: body || "",
|
|
143
|
+
params: query_string_params,
|
|
144
|
+
method_name: "get_access_policy",
|
|
145
|
+
options: options
|
|
146
|
+
)
|
|
147
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
148
|
+
result = ::Google::Iam::V3beta::AccessPolicy.decode_json response.body, ignore_unknown_fields: true
|
|
149
|
+
catch :response do
|
|
150
|
+
yield result, operation if block_given?
|
|
151
|
+
result
|
|
152
|
+
end
|
|
153
|
+
end
|
|
154
|
+
|
|
155
|
+
##
|
|
156
|
+
# Baseline implementation for the update_access_policy REST call
|
|
157
|
+
#
|
|
158
|
+
# @param request_pb [::Google::Iam::V3beta::UpdateAccessPolicyRequest]
|
|
159
|
+
# A request object representing the call parameters. Required.
|
|
160
|
+
# @param options [::Gapic::CallOptions]
|
|
161
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
162
|
+
#
|
|
163
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
164
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
|
165
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
166
|
+
#
|
|
167
|
+
# @return [::Google::Longrunning::Operation]
|
|
168
|
+
# A result object deserialized from the server's reply
|
|
169
|
+
def update_access_policy request_pb, options = nil
|
|
170
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
171
|
+
|
|
172
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_update_access_policy_request request_pb
|
|
173
|
+
query_string_params = if query_string_params.any?
|
|
174
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
175
|
+
else
|
|
176
|
+
{}
|
|
177
|
+
end
|
|
178
|
+
|
|
179
|
+
response = @client_stub.make_http_request(
|
|
180
|
+
verb,
|
|
181
|
+
uri: uri,
|
|
182
|
+
body: body || "",
|
|
183
|
+
params: query_string_params,
|
|
184
|
+
method_name: "update_access_policy",
|
|
185
|
+
options: options
|
|
186
|
+
)
|
|
187
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
188
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
|
189
|
+
catch :response do
|
|
190
|
+
yield result, operation if block_given?
|
|
191
|
+
result
|
|
192
|
+
end
|
|
193
|
+
end
|
|
194
|
+
|
|
195
|
+
##
|
|
196
|
+
# Baseline implementation for the delete_access_policy REST call
|
|
197
|
+
#
|
|
198
|
+
# @param request_pb [::Google::Iam::V3beta::DeleteAccessPolicyRequest]
|
|
199
|
+
# A request object representing the call parameters. Required.
|
|
200
|
+
# @param options [::Gapic::CallOptions]
|
|
201
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
202
|
+
#
|
|
203
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
204
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
|
205
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
206
|
+
#
|
|
207
|
+
# @return [::Google::Longrunning::Operation]
|
|
208
|
+
# A result object deserialized from the server's reply
|
|
209
|
+
def delete_access_policy request_pb, options = nil
|
|
210
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
211
|
+
|
|
212
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_delete_access_policy_request request_pb
|
|
213
|
+
query_string_params = if query_string_params.any?
|
|
214
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
215
|
+
else
|
|
216
|
+
{}
|
|
217
|
+
end
|
|
218
|
+
|
|
219
|
+
response = @client_stub.make_http_request(
|
|
220
|
+
verb,
|
|
221
|
+
uri: uri,
|
|
222
|
+
body: body || "",
|
|
223
|
+
params: query_string_params,
|
|
224
|
+
method_name: "delete_access_policy",
|
|
225
|
+
options: options
|
|
226
|
+
)
|
|
227
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
228
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
|
229
|
+
catch :response do
|
|
230
|
+
yield result, operation if block_given?
|
|
231
|
+
result
|
|
232
|
+
end
|
|
233
|
+
end
|
|
234
|
+
|
|
235
|
+
##
|
|
236
|
+
# Baseline implementation for the list_access_policies REST call
|
|
237
|
+
#
|
|
238
|
+
# @param request_pb [::Google::Iam::V3beta::ListAccessPoliciesRequest]
|
|
239
|
+
# A request object representing the call parameters. Required.
|
|
240
|
+
# @param options [::Gapic::CallOptions]
|
|
241
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
242
|
+
#
|
|
243
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
244
|
+
# @yieldparam result [::Google::Iam::V3beta::ListAccessPoliciesResponse]
|
|
245
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
246
|
+
#
|
|
247
|
+
# @return [::Google::Iam::V3beta::ListAccessPoliciesResponse]
|
|
248
|
+
# A result object deserialized from the server's reply
|
|
249
|
+
def list_access_policies request_pb, options = nil
|
|
250
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
251
|
+
|
|
252
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_access_policies_request request_pb
|
|
253
|
+
query_string_params = if query_string_params.any?
|
|
254
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
255
|
+
else
|
|
256
|
+
{}
|
|
257
|
+
end
|
|
258
|
+
|
|
259
|
+
response = @client_stub.make_http_request(
|
|
260
|
+
verb,
|
|
261
|
+
uri: uri,
|
|
262
|
+
body: body || "",
|
|
263
|
+
params: query_string_params,
|
|
264
|
+
method_name: "list_access_policies",
|
|
265
|
+
options: options
|
|
266
|
+
)
|
|
267
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
268
|
+
result = ::Google::Iam::V3beta::ListAccessPoliciesResponse.decode_json response.body, ignore_unknown_fields: true
|
|
269
|
+
catch :response do
|
|
270
|
+
yield result, operation if block_given?
|
|
271
|
+
result
|
|
272
|
+
end
|
|
273
|
+
end
|
|
274
|
+
|
|
275
|
+
##
|
|
276
|
+
# Baseline implementation for the search_access_policy_bindings REST call
|
|
277
|
+
#
|
|
278
|
+
# @param request_pb [::Google::Iam::V3beta::SearchAccessPolicyBindingsRequest]
|
|
279
|
+
# A request object representing the call parameters. Required.
|
|
280
|
+
# @param options [::Gapic::CallOptions]
|
|
281
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
282
|
+
#
|
|
283
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
284
|
+
# @yieldparam result [::Google::Iam::V3beta::SearchAccessPolicyBindingsResponse]
|
|
285
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
286
|
+
#
|
|
287
|
+
# @return [::Google::Iam::V3beta::SearchAccessPolicyBindingsResponse]
|
|
288
|
+
# A result object deserialized from the server's reply
|
|
289
|
+
def search_access_policy_bindings request_pb, options = nil
|
|
290
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
291
|
+
|
|
292
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_search_access_policy_bindings_request request_pb
|
|
293
|
+
query_string_params = if query_string_params.any?
|
|
294
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
295
|
+
else
|
|
296
|
+
{}
|
|
297
|
+
end
|
|
298
|
+
|
|
299
|
+
response = @client_stub.make_http_request(
|
|
300
|
+
verb,
|
|
301
|
+
uri: uri,
|
|
302
|
+
body: body || "",
|
|
303
|
+
params: query_string_params,
|
|
304
|
+
method_name: "search_access_policy_bindings",
|
|
305
|
+
options: options
|
|
306
|
+
)
|
|
307
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
308
|
+
result = ::Google::Iam::V3beta::SearchAccessPolicyBindingsResponse.decode_json response.body, ignore_unknown_fields: true
|
|
309
|
+
catch :response do
|
|
310
|
+
yield result, operation if block_given?
|
|
311
|
+
result
|
|
312
|
+
end
|
|
313
|
+
end
|
|
314
|
+
|
|
315
|
+
##
|
|
316
|
+
# @private
|
|
317
|
+
#
|
|
318
|
+
# GRPC transcoding helper method for the create_access_policy REST call
|
|
319
|
+
#
|
|
320
|
+
# @param request_pb [::Google::Iam::V3beta::CreateAccessPolicyRequest]
|
|
321
|
+
# A request object representing the call parameters. Required.
|
|
322
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
323
|
+
# Uri, Body, Query string parameters
|
|
324
|
+
def self.transcode_create_access_policy_request request_pb
|
|
325
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
326
|
+
.with_bindings(
|
|
327
|
+
uri_method: :post,
|
|
328
|
+
uri_template: "/v3beta/{parent}/accessPolicies",
|
|
329
|
+
body: "access_policy",
|
|
330
|
+
matches: [
|
|
331
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
|
332
|
+
]
|
|
333
|
+
)
|
|
334
|
+
.with_bindings(
|
|
335
|
+
uri_method: :post,
|
|
336
|
+
uri_template: "/v3beta/{parent}/accessPolicies",
|
|
337
|
+
body: "access_policy",
|
|
338
|
+
matches: [
|
|
339
|
+
["parent", %r{^folders/[^/]+/locations/[^/]+/?$}, false]
|
|
340
|
+
]
|
|
341
|
+
)
|
|
342
|
+
.with_bindings(
|
|
343
|
+
uri_method: :post,
|
|
344
|
+
uri_template: "/v3beta/{parent}/accessPolicies",
|
|
345
|
+
body: "access_policy",
|
|
346
|
+
matches: [
|
|
347
|
+
["parent", %r{^organizations/[^/]+/locations/[^/]+/?$}, false]
|
|
348
|
+
]
|
|
349
|
+
)
|
|
350
|
+
transcoder.transcode request_pb
|
|
351
|
+
end
|
|
352
|
+
|
|
353
|
+
##
|
|
354
|
+
# @private
|
|
355
|
+
#
|
|
356
|
+
# GRPC transcoding helper method for the get_access_policy REST call
|
|
357
|
+
#
|
|
358
|
+
# @param request_pb [::Google::Iam::V3beta::GetAccessPolicyRequest]
|
|
359
|
+
# A request object representing the call parameters. Required.
|
|
360
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
361
|
+
# Uri, Body, Query string parameters
|
|
362
|
+
def self.transcode_get_access_policy_request request_pb
|
|
363
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
364
|
+
.with_bindings(
|
|
365
|
+
uri_method: :get,
|
|
366
|
+
uri_template: "/v3beta/{name}",
|
|
367
|
+
matches: [
|
|
368
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/accessPolicies/[^/]+/?$}, false]
|
|
369
|
+
]
|
|
370
|
+
)
|
|
371
|
+
.with_bindings(
|
|
372
|
+
uri_method: :get,
|
|
373
|
+
uri_template: "/v3beta/{name}",
|
|
374
|
+
matches: [
|
|
375
|
+
["name", %r{^folders/[^/]+/locations/[^/]+/accessPolicies/[^/]+/?$}, false]
|
|
376
|
+
]
|
|
377
|
+
)
|
|
378
|
+
.with_bindings(
|
|
379
|
+
uri_method: :get,
|
|
380
|
+
uri_template: "/v3beta/{name}",
|
|
381
|
+
matches: [
|
|
382
|
+
["name", %r{^organizations/[^/]+/locations/[^/]+/accessPolicies/[^/]+/?$}, false]
|
|
383
|
+
]
|
|
384
|
+
)
|
|
385
|
+
transcoder.transcode request_pb
|
|
386
|
+
end
|
|
387
|
+
|
|
388
|
+
##
|
|
389
|
+
# @private
|
|
390
|
+
#
|
|
391
|
+
# GRPC transcoding helper method for the update_access_policy REST call
|
|
392
|
+
#
|
|
393
|
+
# @param request_pb [::Google::Iam::V3beta::UpdateAccessPolicyRequest]
|
|
394
|
+
# A request object representing the call parameters. Required.
|
|
395
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
396
|
+
# Uri, Body, Query string parameters
|
|
397
|
+
def self.transcode_update_access_policy_request request_pb
|
|
398
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
399
|
+
.with_bindings(
|
|
400
|
+
uri_method: :patch,
|
|
401
|
+
uri_template: "/v3beta/{access_policy.name}",
|
|
402
|
+
body: "access_policy",
|
|
403
|
+
matches: [
|
|
404
|
+
["access_policy.name", %r{^projects/[^/]+/locations/[^/]+/accessPolicies/[^/]+/?$}, false]
|
|
405
|
+
]
|
|
406
|
+
)
|
|
407
|
+
.with_bindings(
|
|
408
|
+
uri_method: :patch,
|
|
409
|
+
uri_template: "/v3beta/{access_policy.name}",
|
|
410
|
+
body: "access_policy",
|
|
411
|
+
matches: [
|
|
412
|
+
["access_policy.name", %r{^folders/[^/]+/locations/[^/]+/accessPolicies/[^/]+/?$}, false]
|
|
413
|
+
]
|
|
414
|
+
)
|
|
415
|
+
.with_bindings(
|
|
416
|
+
uri_method: :patch,
|
|
417
|
+
uri_template: "/v3beta/{access_policy.name}",
|
|
418
|
+
body: "access_policy",
|
|
419
|
+
matches: [
|
|
420
|
+
["access_policy.name", %r{^organizations/[^/]+/locations/[^/]+/accessPolicies/[^/]+/?$}, false]
|
|
421
|
+
]
|
|
422
|
+
)
|
|
423
|
+
transcoder.transcode request_pb
|
|
424
|
+
end
|
|
425
|
+
|
|
426
|
+
##
|
|
427
|
+
# @private
|
|
428
|
+
#
|
|
429
|
+
# GRPC transcoding helper method for the delete_access_policy REST call
|
|
430
|
+
#
|
|
431
|
+
# @param request_pb [::Google::Iam::V3beta::DeleteAccessPolicyRequest]
|
|
432
|
+
# A request object representing the call parameters. Required.
|
|
433
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
434
|
+
# Uri, Body, Query string parameters
|
|
435
|
+
def self.transcode_delete_access_policy_request request_pb
|
|
436
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
437
|
+
.with_bindings(
|
|
438
|
+
uri_method: :delete,
|
|
439
|
+
uri_template: "/v3beta/{name}",
|
|
440
|
+
matches: [
|
|
441
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/accessPolicies/[^/]+/?$}, false]
|
|
442
|
+
]
|
|
443
|
+
)
|
|
444
|
+
.with_bindings(
|
|
445
|
+
uri_method: :delete,
|
|
446
|
+
uri_template: "/v3beta/{name}",
|
|
447
|
+
matches: [
|
|
448
|
+
["name", %r{^folders/[^/]+/locations/[^/]+/accessPolicies/[^/]+/?$}, false]
|
|
449
|
+
]
|
|
450
|
+
)
|
|
451
|
+
.with_bindings(
|
|
452
|
+
uri_method: :delete,
|
|
453
|
+
uri_template: "/v3beta/{name}",
|
|
454
|
+
matches: [
|
|
455
|
+
["name", %r{^organizations/[^/]+/locations/[^/]+/accessPolicies/[^/]+/?$}, false]
|
|
456
|
+
]
|
|
457
|
+
)
|
|
458
|
+
transcoder.transcode request_pb
|
|
459
|
+
end
|
|
460
|
+
|
|
461
|
+
##
|
|
462
|
+
# @private
|
|
463
|
+
#
|
|
464
|
+
# GRPC transcoding helper method for the list_access_policies REST call
|
|
465
|
+
#
|
|
466
|
+
# @param request_pb [::Google::Iam::V3beta::ListAccessPoliciesRequest]
|
|
467
|
+
# A request object representing the call parameters. Required.
|
|
468
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
469
|
+
# Uri, Body, Query string parameters
|
|
470
|
+
def self.transcode_list_access_policies_request request_pb
|
|
471
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
472
|
+
.with_bindings(
|
|
473
|
+
uri_method: :get,
|
|
474
|
+
uri_template: "/v3beta/{parent}/accessPolicies",
|
|
475
|
+
matches: [
|
|
476
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
|
477
|
+
]
|
|
478
|
+
)
|
|
479
|
+
.with_bindings(
|
|
480
|
+
uri_method: :get,
|
|
481
|
+
uri_template: "/v3beta/{parent}/accessPolicies",
|
|
482
|
+
matches: [
|
|
483
|
+
["parent", %r{^folders/[^/]+/locations/[^/]+/?$}, false]
|
|
484
|
+
]
|
|
485
|
+
)
|
|
486
|
+
.with_bindings(
|
|
487
|
+
uri_method: :get,
|
|
488
|
+
uri_template: "/v3beta/{parent}/accessPolicies",
|
|
489
|
+
matches: [
|
|
490
|
+
["parent", %r{^organizations/[^/]+/locations/[^/]+/?$}, false]
|
|
491
|
+
]
|
|
492
|
+
)
|
|
493
|
+
transcoder.transcode request_pb
|
|
494
|
+
end
|
|
495
|
+
|
|
496
|
+
##
|
|
497
|
+
# @private
|
|
498
|
+
#
|
|
499
|
+
# GRPC transcoding helper method for the search_access_policy_bindings REST call
|
|
500
|
+
#
|
|
501
|
+
# @param request_pb [::Google::Iam::V3beta::SearchAccessPolicyBindingsRequest]
|
|
502
|
+
# A request object representing the call parameters. Required.
|
|
503
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
504
|
+
# Uri, Body, Query string parameters
|
|
505
|
+
def self.transcode_search_access_policy_bindings_request request_pb
|
|
506
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
507
|
+
.with_bindings(
|
|
508
|
+
uri_method: :get,
|
|
509
|
+
uri_template: "/v3beta/{name}:searchPolicyBindings",
|
|
510
|
+
matches: [
|
|
511
|
+
["name", %r{^organizations/[^/]+/locations/[^/]+/accessPolicies/[^/]+/?$}, false]
|
|
512
|
+
]
|
|
513
|
+
)
|
|
514
|
+
.with_bindings(
|
|
515
|
+
uri_method: :get,
|
|
516
|
+
uri_template: "/v3beta/{name}:searchPolicyBindings",
|
|
517
|
+
matches: [
|
|
518
|
+
["name", %r{^folders/[^/]+/locations/[^/]+/accessPolicies/[^/]+/?$}, false]
|
|
519
|
+
]
|
|
520
|
+
)
|
|
521
|
+
.with_bindings(
|
|
522
|
+
uri_method: :get,
|
|
523
|
+
uri_template: "/v3beta/{name}:searchPolicyBindings",
|
|
524
|
+
matches: [
|
|
525
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/accessPolicies/[^/]+/?$}, false]
|
|
526
|
+
]
|
|
527
|
+
)
|
|
528
|
+
transcoder.transcode request_pb
|
|
529
|
+
end
|
|
530
|
+
end
|
|
531
|
+
end
|
|
532
|
+
end
|
|
533
|
+
end
|
|
534
|
+
end
|
|
535
|
+
end
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright 2026 Google LLC
|
|
4
|
+
#
|
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
# you may not use this file except in compliance with the License.
|
|
7
|
+
# You may obtain a copy of the License at
|
|
8
|
+
#
|
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
#
|
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
# See the License for the specific language governing permissions and
|
|
15
|
+
# limitations under the License.
|
|
16
|
+
|
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
|
18
|
+
|
|
19
|
+
require "gapic/rest"
|
|
20
|
+
require "gapic/config"
|
|
21
|
+
require "gapic/config/method"
|
|
22
|
+
|
|
23
|
+
require "google/iam/v3beta/version"
|
|
24
|
+
|
|
25
|
+
require "google/iam/v3beta/access_policies/credentials"
|
|
26
|
+
require "google/iam/v3beta/access_policies/paths"
|
|
27
|
+
require "google/iam/v3beta/access_policies/rest/operations"
|
|
28
|
+
require "google/iam/v3beta/access_policies/rest/client"
|
|
29
|
+
|
|
30
|
+
module Google
|
|
31
|
+
module Iam
|
|
32
|
+
module V3beta
|
|
33
|
+
##
|
|
34
|
+
# Manages Identity and Access Management (IAM) access policies.
|
|
35
|
+
#
|
|
36
|
+
# To load this service and instantiate a REST client:
|
|
37
|
+
#
|
|
38
|
+
# require "google/iam/v3beta/access_policies/rest"
|
|
39
|
+
# client = ::Google::Iam::V3beta::AccessPolicies::Rest::Client.new
|
|
40
|
+
#
|
|
41
|
+
module AccessPolicies
|
|
42
|
+
# Client for the REST transport
|
|
43
|
+
module Rest
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
helper_path = ::File.join __dir__, "rest", "helpers.rb"
|
|
51
|
+
require "google/iam/v3beta/access_policies/rest/helpers" if ::File.file? helper_path
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright 2026 Google LLC
|
|
4
|
+
#
|
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
# you may not use this file except in compliance with the License.
|
|
7
|
+
# You may obtain a copy of the License at
|
|
8
|
+
#
|
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
#
|
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
# See the License for the specific language governing permissions and
|
|
15
|
+
# limitations under the License.
|
|
16
|
+
|
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
|
18
|
+
|
|
19
|
+
require "gapic/common"
|
|
20
|
+
require "gapic/config"
|
|
21
|
+
require "gapic/config/method"
|
|
22
|
+
|
|
23
|
+
require "google/iam/v3beta/version"
|
|
24
|
+
|
|
25
|
+
require "google/iam/v3beta/access_policies/credentials"
|
|
26
|
+
require "google/iam/v3beta/access_policies/paths"
|
|
27
|
+
require "google/iam/v3beta/access_policies/operations"
|
|
28
|
+
require "google/iam/v3beta/access_policies/client"
|
|
29
|
+
require "google/iam/v3beta/access_policies/rest"
|
|
30
|
+
|
|
31
|
+
module Google
|
|
32
|
+
module Iam
|
|
33
|
+
module V3beta
|
|
34
|
+
##
|
|
35
|
+
# Manages Identity and Access Management (IAM) access policies.
|
|
36
|
+
#
|
|
37
|
+
# @example Load this service and instantiate a gRPC client
|
|
38
|
+
#
|
|
39
|
+
# require "google/iam/v3beta/access_policies"
|
|
40
|
+
# client = ::Google::Iam::V3beta::AccessPolicies::Client.new
|
|
41
|
+
#
|
|
42
|
+
# @example Load this service and instantiate a REST client
|
|
43
|
+
#
|
|
44
|
+
# require "google/iam/v3beta/access_policies/rest"
|
|
45
|
+
# client = ::Google::Iam::V3beta::AccessPolicies::Rest::Client.new
|
|
46
|
+
#
|
|
47
|
+
module AccessPolicies
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
helper_path = ::File.join __dir__, "access_policies", "helpers.rb"
|
|
54
|
+
require "google/iam/v3beta/access_policies/helpers" if ::File.file? helper_path
|