google-cloud-secure_source_manager-v1 0.a → 0.2.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.
Files changed (35) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +12 -0
  3. data/AUTHENTICATION.md +122 -0
  4. data/README.md +144 -8
  5. data/lib/google/cloud/secure_source_manager/v1/bindings_override.rb +135 -0
  6. data/lib/google/cloud/secure_source_manager/v1/rest.rb +38 -0
  7. data/lib/google/cloud/secure_source_manager/v1/secure_source_manager/client.rb +1564 -0
  8. data/lib/google/cloud/secure_source_manager/v1/secure_source_manager/credentials.rb +47 -0
  9. data/lib/google/cloud/secure_source_manager/v1/secure_source_manager/operations.rb +801 -0
  10. data/lib/google/cloud/secure_source_manager/v1/secure_source_manager/paths.rb +109 -0
  11. data/lib/google/cloud/secure_source_manager/v1/secure_source_manager/rest/client.rb +1469 -0
  12. data/lib/google/cloud/secure_source_manager/v1/secure_source_manager/rest/operations.rb +895 -0
  13. data/lib/google/cloud/secure_source_manager/v1/secure_source_manager/rest/service_stub.rb +713 -0
  14. data/lib/google/cloud/secure_source_manager/v1/secure_source_manager/rest.rb +73 -0
  15. data/lib/google/cloud/secure_source_manager/v1/secure_source_manager.rb +75 -0
  16. data/lib/google/cloud/secure_source_manager/v1/version.rb +7 -2
  17. data/lib/google/cloud/secure_source_manager/v1.rb +45 -0
  18. data/lib/google/cloud/securesourcemanager/v1/secure_source_manager_pb.rb +70 -0
  19. data/lib/google/cloud/securesourcemanager/v1/secure_source_manager_services_pb.rb +93 -0
  20. data/lib/google-cloud-secure_source_manager-v1.rb +21 -0
  21. data/proto_docs/README.md +4 -0
  22. data/proto_docs/google/api/client.rb +395 -0
  23. data/proto_docs/google/api/field_behavior.rb +85 -0
  24. data/proto_docs/google/api/launch_stage.rb +71 -0
  25. data/proto_docs/google/api/resource.rb +222 -0
  26. data/proto_docs/google/cloud/securesourcemanager/v1/secure_source_manager.rb +530 -0
  27. data/proto_docs/google/longrunning/operations.rb +164 -0
  28. data/proto_docs/google/protobuf/any.rb +144 -0
  29. data/proto_docs/google/protobuf/duration.rb +98 -0
  30. data/proto_docs/google/protobuf/empty.rb +34 -0
  31. data/proto_docs/google/protobuf/field_mask.rb +229 -0
  32. data/proto_docs/google/protobuf/timestamp.rb +127 -0
  33. data/proto_docs/google/rpc/status.rb +48 -0
  34. data/proto_docs/google/type/expr.rb +75 -0
  35. metadata +227 -10
@@ -0,0 +1,1469 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2024 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/cloud/errors"
20
+ require "google/cloud/securesourcemanager/v1/secure_source_manager_pb"
21
+ require "google/cloud/secure_source_manager/v1/secure_source_manager/rest/service_stub"
22
+ require "google/cloud/location/rest"
23
+ require "google/iam/v1/rest"
24
+
25
+ module Google
26
+ module Cloud
27
+ module SecureSourceManager
28
+ module V1
29
+ module SecureSourceManager
30
+ module Rest
31
+ ##
32
+ # REST client for the SecureSourceManager service.
33
+ #
34
+ # Secure Source Manager API
35
+ #
36
+ # Access Secure Source Manager instances, resources, and repositories.
37
+ #
38
+ # This API is split across two servers: the Control Plane and the Data Plane.
39
+ #
40
+ # Data Plane endpoints are hosted directly by your Secure Source Manager
41
+ # instance, so you must connect to your instance's API hostname to access
42
+ # them. The API hostname looks like the following:
43
+ #
44
+ # https://[instance-id]-[project-number]-api.[location].sourcemanager.dev
45
+ #
46
+ # For example,
47
+ #
48
+ # https://my-instance-702770452863-api.us-central1.sourcemanager.dev
49
+ #
50
+ # Data Plane endpoints are denoted with **Host: Data Plane**.
51
+ #
52
+ # All other endpoints are found in the normal Cloud API location, namely,
53
+ # `securcesourcemanager.googleapis.com`.
54
+ #
55
+ class Client
56
+ # @private
57
+ DEFAULT_ENDPOINT_TEMPLATE = "securesourcemanager.$UNIVERSE_DOMAIN$"
58
+
59
+ include Paths
60
+
61
+ # @private
62
+ attr_reader :secure_source_manager_stub
63
+
64
+ ##
65
+ # Configure the SecureSourceManager Client class.
66
+ #
67
+ # See {::Google::Cloud::SecureSourceManager::V1::SecureSourceManager::Rest::Client::Configuration}
68
+ # for a description of the configuration fields.
69
+ #
70
+ # @example
71
+ #
72
+ # # Modify the configuration for all SecureSourceManager clients
73
+ # ::Google::Cloud::SecureSourceManager::V1::SecureSourceManager::Rest::Client.configure do |config|
74
+ # config.timeout = 10.0
75
+ # end
76
+ #
77
+ # @yield [config] Configure the Client client.
78
+ # @yieldparam config [Client::Configuration]
79
+ #
80
+ # @return [Client::Configuration]
81
+ #
82
+ def self.configure
83
+ @configure ||= begin
84
+ namespace = ["Google", "Cloud", "SecureSourceManager", "V1"]
85
+ parent_config = while namespace.any?
86
+ parent_name = namespace.join "::"
87
+ parent_const = const_get parent_name
88
+ break parent_const.configure if parent_const.respond_to? :configure
89
+ namespace.pop
90
+ end
91
+ default_config = Client::Configuration.new parent_config
92
+
93
+ default_config.rpcs.list_instances.timeout = 60.0
94
+ default_config.rpcs.list_instances.retry_policy = {
95
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
96
+ }
97
+
98
+ default_config.rpcs.get_instance.timeout = 60.0
99
+ default_config.rpcs.get_instance.retry_policy = {
100
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
101
+ }
102
+
103
+ default_config.rpcs.list_repositories.timeout = 60.0
104
+ default_config.rpcs.list_repositories.retry_policy = {
105
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
106
+ }
107
+
108
+ default_config.rpcs.get_repository.timeout = 60.0
109
+ default_config.rpcs.get_repository.retry_policy = {
110
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
111
+ }
112
+
113
+ default_config.rpcs.get_iam_policy_repo.timeout = 60.0
114
+ default_config.rpcs.get_iam_policy_repo.retry_policy = {
115
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
116
+ }
117
+
118
+ default_config
119
+ end
120
+ yield @configure if block_given?
121
+ @configure
122
+ end
123
+
124
+ ##
125
+ # Configure the SecureSourceManager Client instance.
126
+ #
127
+ # The configuration is set to the derived mode, meaning that values can be changed,
128
+ # but structural changes (adding new fields, etc.) are not allowed. Structural changes
129
+ # should be made on {Client.configure}.
130
+ #
131
+ # See {::Google::Cloud::SecureSourceManager::V1::SecureSourceManager::Rest::Client::Configuration}
132
+ # for a description of the configuration fields.
133
+ #
134
+ # @yield [config] Configure the Client client.
135
+ # @yieldparam config [Client::Configuration]
136
+ #
137
+ # @return [Client::Configuration]
138
+ #
139
+ def configure
140
+ yield @config if block_given?
141
+ @config
142
+ end
143
+
144
+ ##
145
+ # The effective universe domain
146
+ #
147
+ # @return [String]
148
+ #
149
+ def universe_domain
150
+ @secure_source_manager_stub.universe_domain
151
+ end
152
+
153
+ ##
154
+ # Create a new SecureSourceManager REST client object.
155
+ #
156
+ # @example
157
+ #
158
+ # # Create a client using the default configuration
159
+ # client = ::Google::Cloud::SecureSourceManager::V1::SecureSourceManager::Rest::Client.new
160
+ #
161
+ # # Create a client using a custom configuration
162
+ # client = ::Google::Cloud::SecureSourceManager::V1::SecureSourceManager::Rest::Client.new do |config|
163
+ # config.timeout = 10.0
164
+ # end
165
+ #
166
+ # @yield [config] Configure the SecureSourceManager client.
167
+ # @yieldparam config [Client::Configuration]
168
+ #
169
+ def initialize
170
+ # Create the configuration object
171
+ @config = Configuration.new Client.configure
172
+
173
+ # Yield the configuration if needed
174
+ yield @config if block_given?
175
+
176
+ # Create credentials
177
+ credentials = @config.credentials
178
+ # Use self-signed JWT if the endpoint is unchanged from default,
179
+ # but only if the default endpoint does not have a region prefix.
180
+ enable_self_signed_jwt = @config.endpoint.nil? ||
181
+ (@config.endpoint == Configuration::DEFAULT_ENDPOINT &&
182
+ !@config.endpoint.split(".").first.include?("-"))
183
+ credentials ||= Credentials.default scope: @config.scope,
184
+ enable_self_signed_jwt: enable_self_signed_jwt
185
+ if credentials.is_a?(::String) || credentials.is_a?(::Hash)
186
+ credentials = Credentials.new credentials, scope: @config.scope
187
+ end
188
+
189
+ @quota_project_id = @config.quota_project
190
+ @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
191
+
192
+ @operations_client = ::Google::Cloud::SecureSourceManager::V1::SecureSourceManager::Rest::Operations.new do |config|
193
+ config.credentials = credentials
194
+ config.quota_project = @quota_project_id
195
+ config.endpoint = @config.endpoint
196
+ config.universe_domain = @config.universe_domain
197
+ end
198
+
199
+ @location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
200
+ config.credentials = credentials
201
+ config.quota_project = @quota_project_id
202
+ config.endpoint = @config.endpoint
203
+ config.universe_domain = @config.universe_domain
204
+ config.bindings_override = @config.bindings_override
205
+ end
206
+
207
+ @iam_policy_client = Google::Iam::V1::IAMPolicy::Rest::Client.new do |config|
208
+ config.credentials = credentials
209
+ config.quota_project = @quota_project_id
210
+ config.endpoint = @config.endpoint
211
+ config.universe_domain = @config.universe_domain
212
+ config.bindings_override = @config.bindings_override
213
+ end
214
+
215
+ @secure_source_manager_stub = ::Google::Cloud::SecureSourceManager::V1::SecureSourceManager::Rest::ServiceStub.new(
216
+ endpoint: @config.endpoint,
217
+ endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
218
+ universe_domain: @config.universe_domain,
219
+ credentials: credentials
220
+ )
221
+ end
222
+
223
+ ##
224
+ # Get the associated client for long-running operations.
225
+ #
226
+ # @return [::Google::Cloud::SecureSourceManager::V1::SecureSourceManager::Rest::Operations]
227
+ #
228
+ attr_reader :operations_client
229
+
230
+ ##
231
+ # Get the associated client for mix-in of the Locations.
232
+ #
233
+ # @return [Google::Cloud::Location::Locations::Rest::Client]
234
+ #
235
+ attr_reader :location_client
236
+
237
+ ##
238
+ # Get the associated client for mix-in of the IAMPolicy.
239
+ #
240
+ # @return [Google::Iam::V1::IAMPolicy::Rest::Client]
241
+ #
242
+ attr_reader :iam_policy_client
243
+
244
+ # Service calls
245
+
246
+ ##
247
+ # Lists Instances in a given project and location.
248
+ #
249
+ # @overload list_instances(request, options = nil)
250
+ # Pass arguments to `list_instances` via a request object, either of type
251
+ # {::Google::Cloud::SecureSourceManager::V1::ListInstancesRequest} or an equivalent Hash.
252
+ #
253
+ # @param request [::Google::Cloud::SecureSourceManager::V1::ListInstancesRequest, ::Hash]
254
+ # A request object representing the call parameters. Required. To specify no
255
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
256
+ # @param options [::Gapic::CallOptions, ::Hash]
257
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
258
+ #
259
+ # @overload list_instances(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil)
260
+ # Pass arguments to `list_instances` via keyword arguments. Note that at
261
+ # least one keyword argument is required. To specify no parameters, or to keep all
262
+ # the default parameter values, pass an empty Hash as a request object (see above).
263
+ #
264
+ # @param parent [::String]
265
+ # Required. Parent value for ListInstancesRequest.
266
+ # @param page_size [::Integer]
267
+ # Requested page size. Server may return fewer items than requested.
268
+ # If unspecified, server will pick an appropriate default.
269
+ # @param page_token [::String]
270
+ # A token identifying a page of results the server should return.
271
+ # @param filter [::String]
272
+ # Filter for filtering results.
273
+ # @param order_by [::String]
274
+ # Hint for how to order the results.
275
+ # @yield [result, operation] Access the result along with the TransportOperation object
276
+ # @yieldparam result [::Google::Cloud::SecureSourceManager::V1::ListInstancesResponse]
277
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
278
+ #
279
+ # @return [::Google::Cloud::SecureSourceManager::V1::ListInstancesResponse]
280
+ #
281
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
282
+ #
283
+ # @example Basic example
284
+ # require "google/cloud/secure_source_manager/v1"
285
+ #
286
+ # # Create a client object. The client can be reused for multiple calls.
287
+ # client = Google::Cloud::SecureSourceManager::V1::SecureSourceManager::Rest::Client.new
288
+ #
289
+ # # Create a request. To set request fields, pass in keyword arguments.
290
+ # request = Google::Cloud::SecureSourceManager::V1::ListInstancesRequest.new
291
+ #
292
+ # # Call the list_instances method.
293
+ # result = client.list_instances request
294
+ #
295
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
296
+ # # over elements, and API calls will be issued to fetch pages as needed.
297
+ # result.each do |item|
298
+ # # Each element is of type ::Google::Cloud::SecureSourceManager::V1::Instance.
299
+ # p item
300
+ # end
301
+ #
302
+ def list_instances request, options = nil
303
+ raise ::ArgumentError, "request must be provided" if request.nil?
304
+
305
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SecureSourceManager::V1::ListInstancesRequest
306
+
307
+ # Converts hash and nil to an options object
308
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
309
+
310
+ # Customize the options with defaults
311
+ call_metadata = @config.rpcs.list_instances.metadata.to_h
312
+
313
+ # Set x-goog-api-client and x-goog-user-project headers
314
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
315
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
316
+ gapic_version: ::Google::Cloud::SecureSourceManager::V1::VERSION,
317
+ transports_version_send: [:rest]
318
+
319
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
320
+
321
+ options.apply_defaults timeout: @config.rpcs.list_instances.timeout,
322
+ metadata: call_metadata,
323
+ retry_policy: @config.rpcs.list_instances.retry_policy
324
+
325
+ options.apply_defaults timeout: @config.timeout,
326
+ metadata: @config.metadata,
327
+ retry_policy: @config.retry_policy
328
+
329
+ @secure_source_manager_stub.list_instances request, options do |result, operation|
330
+ yield result, operation if block_given?
331
+ return result
332
+ end
333
+ rescue ::Gapic::Rest::Error => e
334
+ raise ::Google::Cloud::Error.from_error(e)
335
+ end
336
+
337
+ ##
338
+ # Gets details of a single instance.
339
+ #
340
+ # @overload get_instance(request, options = nil)
341
+ # Pass arguments to `get_instance` via a request object, either of type
342
+ # {::Google::Cloud::SecureSourceManager::V1::GetInstanceRequest} or an equivalent Hash.
343
+ #
344
+ # @param request [::Google::Cloud::SecureSourceManager::V1::GetInstanceRequest, ::Hash]
345
+ # A request object representing the call parameters. Required. To specify no
346
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
347
+ # @param options [::Gapic::CallOptions, ::Hash]
348
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
349
+ #
350
+ # @overload get_instance(name: nil)
351
+ # Pass arguments to `get_instance` via keyword arguments. Note that at
352
+ # least one keyword argument is required. To specify no parameters, or to keep all
353
+ # the default parameter values, pass an empty Hash as a request object (see above).
354
+ #
355
+ # @param name [::String]
356
+ # Required. Name of the resource.
357
+ # @yield [result, operation] Access the result along with the TransportOperation object
358
+ # @yieldparam result [::Google::Cloud::SecureSourceManager::V1::Instance]
359
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
360
+ #
361
+ # @return [::Google::Cloud::SecureSourceManager::V1::Instance]
362
+ #
363
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
364
+ #
365
+ # @example Basic example
366
+ # require "google/cloud/secure_source_manager/v1"
367
+ #
368
+ # # Create a client object. The client can be reused for multiple calls.
369
+ # client = Google::Cloud::SecureSourceManager::V1::SecureSourceManager::Rest::Client.new
370
+ #
371
+ # # Create a request. To set request fields, pass in keyword arguments.
372
+ # request = Google::Cloud::SecureSourceManager::V1::GetInstanceRequest.new
373
+ #
374
+ # # Call the get_instance method.
375
+ # result = client.get_instance request
376
+ #
377
+ # # The returned object is of type Google::Cloud::SecureSourceManager::V1::Instance.
378
+ # p result
379
+ #
380
+ def get_instance request, options = nil
381
+ raise ::ArgumentError, "request must be provided" if request.nil?
382
+
383
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SecureSourceManager::V1::GetInstanceRequest
384
+
385
+ # Converts hash and nil to an options object
386
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
387
+
388
+ # Customize the options with defaults
389
+ call_metadata = @config.rpcs.get_instance.metadata.to_h
390
+
391
+ # Set x-goog-api-client and x-goog-user-project headers
392
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
393
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
394
+ gapic_version: ::Google::Cloud::SecureSourceManager::V1::VERSION,
395
+ transports_version_send: [:rest]
396
+
397
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
398
+
399
+ options.apply_defaults timeout: @config.rpcs.get_instance.timeout,
400
+ metadata: call_metadata,
401
+ retry_policy: @config.rpcs.get_instance.retry_policy
402
+
403
+ options.apply_defaults timeout: @config.timeout,
404
+ metadata: @config.metadata,
405
+ retry_policy: @config.retry_policy
406
+
407
+ @secure_source_manager_stub.get_instance request, options do |result, operation|
408
+ yield result, operation if block_given?
409
+ return result
410
+ end
411
+ rescue ::Gapic::Rest::Error => e
412
+ raise ::Google::Cloud::Error.from_error(e)
413
+ end
414
+
415
+ ##
416
+ # Creates a new instance in a given project and location.
417
+ #
418
+ # @overload create_instance(request, options = nil)
419
+ # Pass arguments to `create_instance` via a request object, either of type
420
+ # {::Google::Cloud::SecureSourceManager::V1::CreateInstanceRequest} or an equivalent Hash.
421
+ #
422
+ # @param request [::Google::Cloud::SecureSourceManager::V1::CreateInstanceRequest, ::Hash]
423
+ # A request object representing the call parameters. Required. To specify no
424
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
425
+ # @param options [::Gapic::CallOptions, ::Hash]
426
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
427
+ #
428
+ # @overload create_instance(parent: nil, instance_id: nil, instance: nil, request_id: nil)
429
+ # Pass arguments to `create_instance` via keyword arguments. Note that at
430
+ # least one keyword argument is required. To specify no parameters, or to keep all
431
+ # the default parameter values, pass an empty Hash as a request object (see above).
432
+ #
433
+ # @param parent [::String]
434
+ # Required. Value for parent.
435
+ # @param instance_id [::String]
436
+ # Required. ID of the instance to be created.
437
+ # @param instance [::Google::Cloud::SecureSourceManager::V1::Instance, ::Hash]
438
+ # Required. The resource being created.
439
+ # @param request_id [::String]
440
+ # Optional. An optional request ID to identify requests. Specify a unique
441
+ # request ID so that if you must retry your request, the server will know to
442
+ # ignore the request if it has already been completed. The server will
443
+ # guarantee that for at least 60 minutes since the first request.
444
+ #
445
+ # For example, consider a situation where you make an initial request and
446
+ # the request times out. If you make the request again with the same request
447
+ # ID, the server can check if original operation with the same request ID
448
+ # was received, and if so, will ignore the second request. This prevents
449
+ # clients from accidentally creating duplicate commitments.
450
+ #
451
+ # The request ID must be a valid UUID with the exception that zero UUID is
452
+ # not supported (00000000-0000-0000-0000-000000000000).
453
+ # @yield [result, operation] Access the result along with the TransportOperation object
454
+ # @yieldparam result [::Gapic::Operation]
455
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
456
+ #
457
+ # @return [::Gapic::Operation]
458
+ #
459
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
460
+ #
461
+ # @example Basic example
462
+ # require "google/cloud/secure_source_manager/v1"
463
+ #
464
+ # # Create a client object. The client can be reused for multiple calls.
465
+ # client = Google::Cloud::SecureSourceManager::V1::SecureSourceManager::Rest::Client.new
466
+ #
467
+ # # Create a request. To set request fields, pass in keyword arguments.
468
+ # request = Google::Cloud::SecureSourceManager::V1::CreateInstanceRequest.new
469
+ #
470
+ # # Call the create_instance method.
471
+ # result = client.create_instance request
472
+ #
473
+ # # The returned object is of type Gapic::Operation. You can use it to
474
+ # # check the status of an operation, cancel it, or wait for results.
475
+ # # Here is how to wait for a response.
476
+ # result.wait_until_done! timeout: 60
477
+ # if result.response?
478
+ # p result.response
479
+ # else
480
+ # puts "No response received."
481
+ # end
482
+ #
483
+ def create_instance request, options = nil
484
+ raise ::ArgumentError, "request must be provided" if request.nil?
485
+
486
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SecureSourceManager::V1::CreateInstanceRequest
487
+
488
+ # Converts hash and nil to an options object
489
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
490
+
491
+ # Customize the options with defaults
492
+ call_metadata = @config.rpcs.create_instance.metadata.to_h
493
+
494
+ # Set x-goog-api-client and x-goog-user-project headers
495
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
496
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
497
+ gapic_version: ::Google::Cloud::SecureSourceManager::V1::VERSION,
498
+ transports_version_send: [:rest]
499
+
500
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
501
+
502
+ options.apply_defaults timeout: @config.rpcs.create_instance.timeout,
503
+ metadata: call_metadata,
504
+ retry_policy: @config.rpcs.create_instance.retry_policy
505
+
506
+ options.apply_defaults timeout: @config.timeout,
507
+ metadata: @config.metadata,
508
+ retry_policy: @config.retry_policy
509
+
510
+ @secure_source_manager_stub.create_instance request, options do |result, operation|
511
+ result = ::Gapic::Operation.new result, @operations_client, options: options
512
+ yield result, operation if block_given?
513
+ return result
514
+ end
515
+ rescue ::Gapic::Rest::Error => e
516
+ raise ::Google::Cloud::Error.from_error(e)
517
+ end
518
+
519
+ ##
520
+ # Deletes a single instance.
521
+ #
522
+ # @overload delete_instance(request, options = nil)
523
+ # Pass arguments to `delete_instance` via a request object, either of type
524
+ # {::Google::Cloud::SecureSourceManager::V1::DeleteInstanceRequest} or an equivalent Hash.
525
+ #
526
+ # @param request [::Google::Cloud::SecureSourceManager::V1::DeleteInstanceRequest, ::Hash]
527
+ # A request object representing the call parameters. Required. To specify no
528
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
529
+ # @param options [::Gapic::CallOptions, ::Hash]
530
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
531
+ #
532
+ # @overload delete_instance(name: nil, request_id: nil)
533
+ # Pass arguments to `delete_instance` via keyword arguments. Note that at
534
+ # least one keyword argument is required. To specify no parameters, or to keep all
535
+ # the default parameter values, pass an empty Hash as a request object (see above).
536
+ #
537
+ # @param name [::String]
538
+ # Required. Name of the resource.
539
+ # @param request_id [::String]
540
+ # Optional. An optional request ID to identify requests. Specify a unique
541
+ # request ID so that if you must retry your request, the server will know to
542
+ # ignore the request if it has already been completed. The server will
543
+ # guarantee that for at least 60 minutes after the first request.
544
+ #
545
+ # For example, consider a situation where you make an initial request and
546
+ # the request times out. If you make the request again with the same request
547
+ # ID, the server can check if original operation with the same request ID
548
+ # was received, and if so, will ignore the second request. This prevents
549
+ # clients from accidentally creating duplicate commitments.
550
+ #
551
+ # The request ID must be a valid UUID with the exception that zero UUID is
552
+ # not supported (00000000-0000-0000-0000-000000000000).
553
+ # @yield [result, operation] Access the result along with the TransportOperation object
554
+ # @yieldparam result [::Gapic::Operation]
555
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
556
+ #
557
+ # @return [::Gapic::Operation]
558
+ #
559
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
560
+ #
561
+ # @example Basic example
562
+ # require "google/cloud/secure_source_manager/v1"
563
+ #
564
+ # # Create a client object. The client can be reused for multiple calls.
565
+ # client = Google::Cloud::SecureSourceManager::V1::SecureSourceManager::Rest::Client.new
566
+ #
567
+ # # Create a request. To set request fields, pass in keyword arguments.
568
+ # request = Google::Cloud::SecureSourceManager::V1::DeleteInstanceRequest.new
569
+ #
570
+ # # Call the delete_instance method.
571
+ # result = client.delete_instance request
572
+ #
573
+ # # The returned object is of type Gapic::Operation. You can use it to
574
+ # # check the status of an operation, cancel it, or wait for results.
575
+ # # Here is how to wait for a response.
576
+ # result.wait_until_done! timeout: 60
577
+ # if result.response?
578
+ # p result.response
579
+ # else
580
+ # puts "No response received."
581
+ # end
582
+ #
583
+ def delete_instance request, options = nil
584
+ raise ::ArgumentError, "request must be provided" if request.nil?
585
+
586
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SecureSourceManager::V1::DeleteInstanceRequest
587
+
588
+ # Converts hash and nil to an options object
589
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
590
+
591
+ # Customize the options with defaults
592
+ call_metadata = @config.rpcs.delete_instance.metadata.to_h
593
+
594
+ # Set x-goog-api-client and x-goog-user-project headers
595
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
596
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
597
+ gapic_version: ::Google::Cloud::SecureSourceManager::V1::VERSION,
598
+ transports_version_send: [:rest]
599
+
600
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
601
+
602
+ options.apply_defaults timeout: @config.rpcs.delete_instance.timeout,
603
+ metadata: call_metadata,
604
+ retry_policy: @config.rpcs.delete_instance.retry_policy
605
+
606
+ options.apply_defaults timeout: @config.timeout,
607
+ metadata: @config.metadata,
608
+ retry_policy: @config.retry_policy
609
+
610
+ @secure_source_manager_stub.delete_instance request, options do |result, operation|
611
+ result = ::Gapic::Operation.new result, @operations_client, options: options
612
+ yield result, operation if block_given?
613
+ return result
614
+ end
615
+ rescue ::Gapic::Rest::Error => e
616
+ raise ::Google::Cloud::Error.from_error(e)
617
+ end
618
+
619
+ ##
620
+ # Lists Repositories in a given project and location.
621
+ #
622
+ # **Host: Data Plane**
623
+ #
624
+ # @overload list_repositories(request, options = nil)
625
+ # Pass arguments to `list_repositories` via a request object, either of type
626
+ # {::Google::Cloud::SecureSourceManager::V1::ListRepositoriesRequest} or an equivalent Hash.
627
+ #
628
+ # @param request [::Google::Cloud::SecureSourceManager::V1::ListRepositoriesRequest, ::Hash]
629
+ # A request object representing the call parameters. Required. To specify no
630
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
631
+ # @param options [::Gapic::CallOptions, ::Hash]
632
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
633
+ #
634
+ # @overload list_repositories(parent: nil, page_size: nil, page_token: nil, filter: nil)
635
+ # Pass arguments to `list_repositories` via keyword arguments. Note that at
636
+ # least one keyword argument is required. To specify no parameters, or to keep all
637
+ # the default parameter values, pass an empty Hash as a request object (see above).
638
+ #
639
+ # @param parent [::String]
640
+ # Required. Parent value for ListRepositoriesRequest.
641
+ # @param page_size [::Integer]
642
+ # Optional. Requested page size. Server may return fewer items than
643
+ # requested. If unspecified, server will pick an appropriate default.
644
+ # @param page_token [::String]
645
+ # A token identifying a page of results the server should return.
646
+ # @param filter [::String]
647
+ # Optional. Filter results.
648
+ # @yield [result, operation] Access the result along with the TransportOperation object
649
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::SecureSourceManager::V1::Repository>]
650
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
651
+ #
652
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::SecureSourceManager::V1::Repository>]
653
+ #
654
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
655
+ #
656
+ # @example Basic example
657
+ # require "google/cloud/secure_source_manager/v1"
658
+ #
659
+ # # Create a client object. The client can be reused for multiple calls.
660
+ # client = Google::Cloud::SecureSourceManager::V1::SecureSourceManager::Rest::Client.new
661
+ #
662
+ # # Create a request. To set request fields, pass in keyword arguments.
663
+ # request = Google::Cloud::SecureSourceManager::V1::ListRepositoriesRequest.new
664
+ #
665
+ # # Call the list_repositories method.
666
+ # result = client.list_repositories request
667
+ #
668
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
669
+ # # over elements, and API calls will be issued to fetch pages as needed.
670
+ # result.each do |item|
671
+ # # Each element is of type ::Google::Cloud::SecureSourceManager::V1::Repository.
672
+ # p item
673
+ # end
674
+ #
675
+ def list_repositories request, options = nil
676
+ raise ::ArgumentError, "request must be provided" if request.nil?
677
+
678
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SecureSourceManager::V1::ListRepositoriesRequest
679
+
680
+ # Converts hash and nil to an options object
681
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
682
+
683
+ # Customize the options with defaults
684
+ call_metadata = @config.rpcs.list_repositories.metadata.to_h
685
+
686
+ # Set x-goog-api-client and x-goog-user-project headers
687
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
688
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
689
+ gapic_version: ::Google::Cloud::SecureSourceManager::V1::VERSION,
690
+ transports_version_send: [:rest]
691
+
692
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
693
+
694
+ options.apply_defaults timeout: @config.rpcs.list_repositories.timeout,
695
+ metadata: call_metadata,
696
+ retry_policy: @config.rpcs.list_repositories.retry_policy
697
+
698
+ options.apply_defaults timeout: @config.timeout,
699
+ metadata: @config.metadata,
700
+ retry_policy: @config.retry_policy
701
+
702
+ @secure_source_manager_stub.list_repositories request, options do |result, operation|
703
+ result = ::Gapic::Rest::PagedEnumerable.new @secure_source_manager_stub, :list_repositories, "repositories", request, result, options
704
+ yield result, operation if block_given?
705
+ return result
706
+ end
707
+ rescue ::Gapic::Rest::Error => e
708
+ raise ::Google::Cloud::Error.from_error(e)
709
+ end
710
+
711
+ ##
712
+ # Gets metadata of a repository.
713
+ #
714
+ # **Host: Data Plane**
715
+ #
716
+ # @overload get_repository(request, options = nil)
717
+ # Pass arguments to `get_repository` via a request object, either of type
718
+ # {::Google::Cloud::SecureSourceManager::V1::GetRepositoryRequest} or an equivalent Hash.
719
+ #
720
+ # @param request [::Google::Cloud::SecureSourceManager::V1::GetRepositoryRequest, ::Hash]
721
+ # A request object representing the call parameters. Required. To specify no
722
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
723
+ # @param options [::Gapic::CallOptions, ::Hash]
724
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
725
+ #
726
+ # @overload get_repository(name: nil)
727
+ # Pass arguments to `get_repository` via keyword arguments. Note that at
728
+ # least one keyword argument is required. To specify no parameters, or to keep all
729
+ # the default parameter values, pass an empty Hash as a request object (see above).
730
+ #
731
+ # @param name [::String]
732
+ # Required. Name of the repository to retrieve.
733
+ # The format is
734
+ # `projects/{project_number}/locations/{location_id}/repositories/{repository_id}`.
735
+ # @yield [result, operation] Access the result along with the TransportOperation object
736
+ # @yieldparam result [::Google::Cloud::SecureSourceManager::V1::Repository]
737
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
738
+ #
739
+ # @return [::Google::Cloud::SecureSourceManager::V1::Repository]
740
+ #
741
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
742
+ #
743
+ # @example Basic example
744
+ # require "google/cloud/secure_source_manager/v1"
745
+ #
746
+ # # Create a client object. The client can be reused for multiple calls.
747
+ # client = Google::Cloud::SecureSourceManager::V1::SecureSourceManager::Rest::Client.new
748
+ #
749
+ # # Create a request. To set request fields, pass in keyword arguments.
750
+ # request = Google::Cloud::SecureSourceManager::V1::GetRepositoryRequest.new
751
+ #
752
+ # # Call the get_repository method.
753
+ # result = client.get_repository request
754
+ #
755
+ # # The returned object is of type Google::Cloud::SecureSourceManager::V1::Repository.
756
+ # p result
757
+ #
758
+ def get_repository request, options = nil
759
+ raise ::ArgumentError, "request must be provided" if request.nil?
760
+
761
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SecureSourceManager::V1::GetRepositoryRequest
762
+
763
+ # Converts hash and nil to an options object
764
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
765
+
766
+ # Customize the options with defaults
767
+ call_metadata = @config.rpcs.get_repository.metadata.to_h
768
+
769
+ # Set x-goog-api-client and x-goog-user-project headers
770
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
771
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
772
+ gapic_version: ::Google::Cloud::SecureSourceManager::V1::VERSION,
773
+ transports_version_send: [:rest]
774
+
775
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
776
+
777
+ options.apply_defaults timeout: @config.rpcs.get_repository.timeout,
778
+ metadata: call_metadata,
779
+ retry_policy: @config.rpcs.get_repository.retry_policy
780
+
781
+ options.apply_defaults timeout: @config.timeout,
782
+ metadata: @config.metadata,
783
+ retry_policy: @config.retry_policy
784
+
785
+ @secure_source_manager_stub.get_repository request, options do |result, operation|
786
+ yield result, operation if block_given?
787
+ return result
788
+ end
789
+ rescue ::Gapic::Rest::Error => e
790
+ raise ::Google::Cloud::Error.from_error(e)
791
+ end
792
+
793
+ ##
794
+ # Creates a new repository in a given project and location.
795
+ #
796
+ # **Host: Data Plane**
797
+ #
798
+ # @overload create_repository(request, options = nil)
799
+ # Pass arguments to `create_repository` via a request object, either of type
800
+ # {::Google::Cloud::SecureSourceManager::V1::CreateRepositoryRequest} or an equivalent Hash.
801
+ #
802
+ # @param request [::Google::Cloud::SecureSourceManager::V1::CreateRepositoryRequest, ::Hash]
803
+ # A request object representing the call parameters. Required. To specify no
804
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
805
+ # @param options [::Gapic::CallOptions, ::Hash]
806
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
807
+ #
808
+ # @overload create_repository(parent: nil, repository: nil, repository_id: nil)
809
+ # Pass arguments to `create_repository` via keyword arguments. Note that at
810
+ # least one keyword argument is required. To specify no parameters, or to keep all
811
+ # the default parameter values, pass an empty Hash as a request object (see above).
812
+ #
813
+ # @param parent [::String]
814
+ # Required. The project in which to create the repository. Values are of the
815
+ # form `projects/{project_number}/locations/{location_id}`
816
+ # @param repository [::Google::Cloud::SecureSourceManager::V1::Repository, ::Hash]
817
+ # Required. The resource being created.
818
+ # @param repository_id [::String]
819
+ # Required. The ID to use for the repository, which will become the final
820
+ # component of the repository's resource name. This value should be 4-63
821
+ # characters, and valid characters are /[a-z][0-9]-/.
822
+ # @yield [result, operation] Access the result along with the TransportOperation object
823
+ # @yieldparam result [::Gapic::Operation]
824
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
825
+ #
826
+ # @return [::Gapic::Operation]
827
+ #
828
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
829
+ #
830
+ # @example Basic example
831
+ # require "google/cloud/secure_source_manager/v1"
832
+ #
833
+ # # Create a client object. The client can be reused for multiple calls.
834
+ # client = Google::Cloud::SecureSourceManager::V1::SecureSourceManager::Rest::Client.new
835
+ #
836
+ # # Create a request. To set request fields, pass in keyword arguments.
837
+ # request = Google::Cloud::SecureSourceManager::V1::CreateRepositoryRequest.new
838
+ #
839
+ # # Call the create_repository method.
840
+ # result = client.create_repository request
841
+ #
842
+ # # The returned object is of type Gapic::Operation. You can use it to
843
+ # # check the status of an operation, cancel it, or wait for results.
844
+ # # Here is how to wait for a response.
845
+ # result.wait_until_done! timeout: 60
846
+ # if result.response?
847
+ # p result.response
848
+ # else
849
+ # puts "No response received."
850
+ # end
851
+ #
852
+ def create_repository request, options = nil
853
+ raise ::ArgumentError, "request must be provided" if request.nil?
854
+
855
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SecureSourceManager::V1::CreateRepositoryRequest
856
+
857
+ # Converts hash and nil to an options object
858
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
859
+
860
+ # Customize the options with defaults
861
+ call_metadata = @config.rpcs.create_repository.metadata.to_h
862
+
863
+ # Set x-goog-api-client and x-goog-user-project headers
864
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
865
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
866
+ gapic_version: ::Google::Cloud::SecureSourceManager::V1::VERSION,
867
+ transports_version_send: [:rest]
868
+
869
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
870
+
871
+ options.apply_defaults timeout: @config.rpcs.create_repository.timeout,
872
+ metadata: call_metadata,
873
+ retry_policy: @config.rpcs.create_repository.retry_policy
874
+
875
+ options.apply_defaults timeout: @config.timeout,
876
+ metadata: @config.metadata,
877
+ retry_policy: @config.retry_policy
878
+
879
+ @secure_source_manager_stub.create_repository request, options do |result, operation|
880
+ result = ::Gapic::Operation.new result, @operations_client, options: options
881
+ yield result, operation if block_given?
882
+ return result
883
+ end
884
+ rescue ::Gapic::Rest::Error => e
885
+ raise ::Google::Cloud::Error.from_error(e)
886
+ end
887
+
888
+ ##
889
+ # Deletes a Repository.
890
+ #
891
+ # **Host: Data Plane**
892
+ #
893
+ # @overload delete_repository(request, options = nil)
894
+ # Pass arguments to `delete_repository` via a request object, either of type
895
+ # {::Google::Cloud::SecureSourceManager::V1::DeleteRepositoryRequest} or an equivalent Hash.
896
+ #
897
+ # @param request [::Google::Cloud::SecureSourceManager::V1::DeleteRepositoryRequest, ::Hash]
898
+ # A request object representing the call parameters. Required. To specify no
899
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
900
+ # @param options [::Gapic::CallOptions, ::Hash]
901
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
902
+ #
903
+ # @overload delete_repository(name: nil, allow_missing: nil)
904
+ # Pass arguments to `delete_repository` via keyword arguments. Note that at
905
+ # least one keyword argument is required. To specify no parameters, or to keep all
906
+ # the default parameter values, pass an empty Hash as a request object (see above).
907
+ #
908
+ # @param name [::String]
909
+ # Required. Name of the repository to delete.
910
+ # The format is
911
+ # projects/\\{project_number}/locations/\\{location_id}/repositories/\\{repository_id}.
912
+ # @param allow_missing [::Boolean]
913
+ # Optional. If set to true, and the repository is not found, the request will
914
+ # succeed but no action will be taken on the server.
915
+ # @yield [result, operation] Access the result along with the TransportOperation object
916
+ # @yieldparam result [::Gapic::Operation]
917
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
918
+ #
919
+ # @return [::Gapic::Operation]
920
+ #
921
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
922
+ #
923
+ # @example Basic example
924
+ # require "google/cloud/secure_source_manager/v1"
925
+ #
926
+ # # Create a client object. The client can be reused for multiple calls.
927
+ # client = Google::Cloud::SecureSourceManager::V1::SecureSourceManager::Rest::Client.new
928
+ #
929
+ # # Create a request. To set request fields, pass in keyword arguments.
930
+ # request = Google::Cloud::SecureSourceManager::V1::DeleteRepositoryRequest.new
931
+ #
932
+ # # Call the delete_repository method.
933
+ # result = client.delete_repository request
934
+ #
935
+ # # The returned object is of type Gapic::Operation. You can use it to
936
+ # # check the status of an operation, cancel it, or wait for results.
937
+ # # Here is how to wait for a response.
938
+ # result.wait_until_done! timeout: 60
939
+ # if result.response?
940
+ # p result.response
941
+ # else
942
+ # puts "No response received."
943
+ # end
944
+ #
945
+ def delete_repository request, options = nil
946
+ raise ::ArgumentError, "request must be provided" if request.nil?
947
+
948
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SecureSourceManager::V1::DeleteRepositoryRequest
949
+
950
+ # Converts hash and nil to an options object
951
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
952
+
953
+ # Customize the options with defaults
954
+ call_metadata = @config.rpcs.delete_repository.metadata.to_h
955
+
956
+ # Set x-goog-api-client and x-goog-user-project headers
957
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
958
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
959
+ gapic_version: ::Google::Cloud::SecureSourceManager::V1::VERSION,
960
+ transports_version_send: [:rest]
961
+
962
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
963
+
964
+ options.apply_defaults timeout: @config.rpcs.delete_repository.timeout,
965
+ metadata: call_metadata,
966
+ retry_policy: @config.rpcs.delete_repository.retry_policy
967
+
968
+ options.apply_defaults timeout: @config.timeout,
969
+ metadata: @config.metadata,
970
+ retry_policy: @config.retry_policy
971
+
972
+ @secure_source_manager_stub.delete_repository request, options do |result, operation|
973
+ result = ::Gapic::Operation.new result, @operations_client, options: options
974
+ yield result, operation if block_given?
975
+ return result
976
+ end
977
+ rescue ::Gapic::Rest::Error => e
978
+ raise ::Google::Cloud::Error.from_error(e)
979
+ end
980
+
981
+ ##
982
+ # Get IAM policy for a repository.
983
+ #
984
+ # @overload get_iam_policy_repo(request, options = nil)
985
+ # Pass arguments to `get_iam_policy_repo` via a request object, either of type
986
+ # {::Google::Iam::V1::GetIamPolicyRequest} or an equivalent Hash.
987
+ #
988
+ # @param request [::Google::Iam::V1::GetIamPolicyRequest, ::Hash]
989
+ # A request object representing the call parameters. Required. To specify no
990
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
991
+ # @param options [::Gapic::CallOptions, ::Hash]
992
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
993
+ #
994
+ # @overload get_iam_policy_repo(resource: nil, options: nil)
995
+ # Pass arguments to `get_iam_policy_repo` via keyword arguments. Note that at
996
+ # least one keyword argument is required. To specify no parameters, or to keep all
997
+ # the default parameter values, pass an empty Hash as a request object (see above).
998
+ #
999
+ # @param resource [::String]
1000
+ # REQUIRED: The resource for which the policy is being requested.
1001
+ # See the operation documentation for the appropriate value for this field.
1002
+ # @param options [::Google::Iam::V1::GetPolicyOptions, ::Hash]
1003
+ # OPTIONAL: A `GetPolicyOptions` object for specifying options to
1004
+ # `GetIamPolicy`.
1005
+ # @yield [result, operation] Access the result along with the TransportOperation object
1006
+ # @yieldparam result [::Google::Iam::V1::Policy]
1007
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1008
+ #
1009
+ # @return [::Google::Iam::V1::Policy]
1010
+ #
1011
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
1012
+ #
1013
+ # @example Basic example
1014
+ # require "google/cloud/secure_source_manager/v1"
1015
+ #
1016
+ # # Create a client object. The client can be reused for multiple calls.
1017
+ # client = Google::Cloud::SecureSourceManager::V1::SecureSourceManager::Rest::Client.new
1018
+ #
1019
+ # # Create a request. To set request fields, pass in keyword arguments.
1020
+ # request = Google::Iam::V1::GetIamPolicyRequest.new
1021
+ #
1022
+ # # Call the get_iam_policy_repo method.
1023
+ # result = client.get_iam_policy_repo request
1024
+ #
1025
+ # # The returned object is of type Google::Iam::V1::Policy.
1026
+ # p result
1027
+ #
1028
+ def get_iam_policy_repo request, options = nil
1029
+ raise ::ArgumentError, "request must be provided" if request.nil?
1030
+
1031
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::GetIamPolicyRequest
1032
+
1033
+ # Converts hash and nil to an options object
1034
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1035
+
1036
+ # Customize the options with defaults
1037
+ call_metadata = @config.rpcs.get_iam_policy_repo.metadata.to_h
1038
+
1039
+ # Set x-goog-api-client and x-goog-user-project headers
1040
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1041
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1042
+ gapic_version: ::Google::Cloud::SecureSourceManager::V1::VERSION,
1043
+ transports_version_send: [:rest]
1044
+
1045
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1046
+
1047
+ options.apply_defaults timeout: @config.rpcs.get_iam_policy_repo.timeout,
1048
+ metadata: call_metadata,
1049
+ retry_policy: @config.rpcs.get_iam_policy_repo.retry_policy
1050
+
1051
+ options.apply_defaults timeout: @config.timeout,
1052
+ metadata: @config.metadata,
1053
+ retry_policy: @config.retry_policy
1054
+
1055
+ @secure_source_manager_stub.get_iam_policy_repo request, options do |result, operation|
1056
+ yield result, operation if block_given?
1057
+ return result
1058
+ end
1059
+ rescue ::Gapic::Rest::Error => e
1060
+ raise ::Google::Cloud::Error.from_error(e)
1061
+ end
1062
+
1063
+ ##
1064
+ # Set IAM policy on a repository.
1065
+ #
1066
+ # @overload set_iam_policy_repo(request, options = nil)
1067
+ # Pass arguments to `set_iam_policy_repo` via a request object, either of type
1068
+ # {::Google::Iam::V1::SetIamPolicyRequest} or an equivalent Hash.
1069
+ #
1070
+ # @param request [::Google::Iam::V1::SetIamPolicyRequest, ::Hash]
1071
+ # A request object representing the call parameters. Required. To specify no
1072
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1073
+ # @param options [::Gapic::CallOptions, ::Hash]
1074
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1075
+ #
1076
+ # @overload set_iam_policy_repo(resource: nil, policy: nil, update_mask: nil)
1077
+ # Pass arguments to `set_iam_policy_repo` via keyword arguments. Note that at
1078
+ # least one keyword argument is required. To specify no parameters, or to keep all
1079
+ # the default parameter values, pass an empty Hash as a request object (see above).
1080
+ #
1081
+ # @param resource [::String]
1082
+ # REQUIRED: The resource for which the policy is being specified.
1083
+ # See the operation documentation for the appropriate value for this field.
1084
+ # @param policy [::Google::Iam::V1::Policy, ::Hash]
1085
+ # REQUIRED: The complete policy to be applied to the `resource`. The size of
1086
+ # the policy is limited to a few 10s of KB. An empty policy is a
1087
+ # valid policy but certain Cloud Platform services (such as Projects)
1088
+ # might reject them.
1089
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
1090
+ # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
1091
+ # the fields in the mask will be modified. If no mask is provided, the
1092
+ # following default mask is used:
1093
+ #
1094
+ # `paths: "bindings, etag"`
1095
+ # @yield [result, operation] Access the result along with the TransportOperation object
1096
+ # @yieldparam result [::Google::Iam::V1::Policy]
1097
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1098
+ #
1099
+ # @return [::Google::Iam::V1::Policy]
1100
+ #
1101
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
1102
+ #
1103
+ # @example Basic example
1104
+ # require "google/cloud/secure_source_manager/v1"
1105
+ #
1106
+ # # Create a client object. The client can be reused for multiple calls.
1107
+ # client = Google::Cloud::SecureSourceManager::V1::SecureSourceManager::Rest::Client.new
1108
+ #
1109
+ # # Create a request. To set request fields, pass in keyword arguments.
1110
+ # request = Google::Iam::V1::SetIamPolicyRequest.new
1111
+ #
1112
+ # # Call the set_iam_policy_repo method.
1113
+ # result = client.set_iam_policy_repo request
1114
+ #
1115
+ # # The returned object is of type Google::Iam::V1::Policy.
1116
+ # p result
1117
+ #
1118
+ def set_iam_policy_repo request, options = nil
1119
+ raise ::ArgumentError, "request must be provided" if request.nil?
1120
+
1121
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::SetIamPolicyRequest
1122
+
1123
+ # Converts hash and nil to an options object
1124
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1125
+
1126
+ # Customize the options with defaults
1127
+ call_metadata = @config.rpcs.set_iam_policy_repo.metadata.to_h
1128
+
1129
+ # Set x-goog-api-client and x-goog-user-project headers
1130
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1131
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1132
+ gapic_version: ::Google::Cloud::SecureSourceManager::V1::VERSION,
1133
+ transports_version_send: [:rest]
1134
+
1135
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1136
+
1137
+ options.apply_defaults timeout: @config.rpcs.set_iam_policy_repo.timeout,
1138
+ metadata: call_metadata,
1139
+ retry_policy: @config.rpcs.set_iam_policy_repo.retry_policy
1140
+
1141
+ options.apply_defaults timeout: @config.timeout,
1142
+ metadata: @config.metadata,
1143
+ retry_policy: @config.retry_policy
1144
+
1145
+ @secure_source_manager_stub.set_iam_policy_repo request, options do |result, operation|
1146
+ yield result, operation if block_given?
1147
+ return result
1148
+ end
1149
+ rescue ::Gapic::Rest::Error => e
1150
+ raise ::Google::Cloud::Error.from_error(e)
1151
+ end
1152
+
1153
+ ##
1154
+ # Test IAM permissions on a repository.
1155
+ # IAM permission checks are not required on this method.
1156
+ #
1157
+ # @overload test_iam_permissions_repo(request, options = nil)
1158
+ # Pass arguments to `test_iam_permissions_repo` via a request object, either of type
1159
+ # {::Google::Iam::V1::TestIamPermissionsRequest} or an equivalent Hash.
1160
+ #
1161
+ # @param request [::Google::Iam::V1::TestIamPermissionsRequest, ::Hash]
1162
+ # A request object representing the call parameters. Required. To specify no
1163
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1164
+ # @param options [::Gapic::CallOptions, ::Hash]
1165
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1166
+ #
1167
+ # @overload test_iam_permissions_repo(resource: nil, permissions: nil)
1168
+ # Pass arguments to `test_iam_permissions_repo` via keyword arguments. Note that at
1169
+ # least one keyword argument is required. To specify no parameters, or to keep all
1170
+ # the default parameter values, pass an empty Hash as a request object (see above).
1171
+ #
1172
+ # @param resource [::String]
1173
+ # REQUIRED: The resource for which the policy detail is being requested.
1174
+ # See the operation documentation for the appropriate value for this field.
1175
+ # @param permissions [::Array<::String>]
1176
+ # The set of permissions to check for the `resource`. Permissions with
1177
+ # wildcards (such as '*' or 'storage.*') are not allowed. For more
1178
+ # information see
1179
+ # [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
1180
+ # @yield [result, operation] Access the result along with the TransportOperation object
1181
+ # @yieldparam result [::Google::Iam::V1::TestIamPermissionsResponse]
1182
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1183
+ #
1184
+ # @return [::Google::Iam::V1::TestIamPermissionsResponse]
1185
+ #
1186
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
1187
+ #
1188
+ # @example Basic example
1189
+ # require "google/cloud/secure_source_manager/v1"
1190
+ #
1191
+ # # Create a client object. The client can be reused for multiple calls.
1192
+ # client = Google::Cloud::SecureSourceManager::V1::SecureSourceManager::Rest::Client.new
1193
+ #
1194
+ # # Create a request. To set request fields, pass in keyword arguments.
1195
+ # request = Google::Iam::V1::TestIamPermissionsRequest.new
1196
+ #
1197
+ # # Call the test_iam_permissions_repo method.
1198
+ # result = client.test_iam_permissions_repo request
1199
+ #
1200
+ # # The returned object is of type Google::Iam::V1::TestIamPermissionsResponse.
1201
+ # p result
1202
+ #
1203
+ def test_iam_permissions_repo request, options = nil
1204
+ raise ::ArgumentError, "request must be provided" if request.nil?
1205
+
1206
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::TestIamPermissionsRequest
1207
+
1208
+ # Converts hash and nil to an options object
1209
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1210
+
1211
+ # Customize the options with defaults
1212
+ call_metadata = @config.rpcs.test_iam_permissions_repo.metadata.to_h
1213
+
1214
+ # Set x-goog-api-client and x-goog-user-project headers
1215
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1216
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1217
+ gapic_version: ::Google::Cloud::SecureSourceManager::V1::VERSION,
1218
+ transports_version_send: [:rest]
1219
+
1220
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1221
+
1222
+ options.apply_defaults timeout: @config.rpcs.test_iam_permissions_repo.timeout,
1223
+ metadata: call_metadata,
1224
+ retry_policy: @config.rpcs.test_iam_permissions_repo.retry_policy
1225
+
1226
+ options.apply_defaults timeout: @config.timeout,
1227
+ metadata: @config.metadata,
1228
+ retry_policy: @config.retry_policy
1229
+
1230
+ @secure_source_manager_stub.test_iam_permissions_repo request, options do |result, operation|
1231
+ yield result, operation if block_given?
1232
+ return result
1233
+ end
1234
+ rescue ::Gapic::Rest::Error => e
1235
+ raise ::Google::Cloud::Error.from_error(e)
1236
+ end
1237
+
1238
+ ##
1239
+ # Configuration class for the SecureSourceManager REST API.
1240
+ #
1241
+ # This class represents the configuration for SecureSourceManager REST,
1242
+ # providing control over timeouts, retry behavior, logging, transport
1243
+ # parameters, and other low-level controls. Certain parameters can also be
1244
+ # applied individually to specific RPCs. See
1245
+ # {::Google::Cloud::SecureSourceManager::V1::SecureSourceManager::Rest::Client::Configuration::Rpcs}
1246
+ # for a list of RPCs that can be configured independently.
1247
+ #
1248
+ # Configuration can be applied globally to all clients, or to a single client
1249
+ # on construction.
1250
+ #
1251
+ # @example
1252
+ #
1253
+ # # Modify the global config, setting the timeout for
1254
+ # # list_instances to 20 seconds,
1255
+ # # and all remaining timeouts to 10 seconds.
1256
+ # ::Google::Cloud::SecureSourceManager::V1::SecureSourceManager::Rest::Client.configure do |config|
1257
+ # config.timeout = 10.0
1258
+ # config.rpcs.list_instances.timeout = 20.0
1259
+ # end
1260
+ #
1261
+ # # Apply the above configuration only to a new client.
1262
+ # client = ::Google::Cloud::SecureSourceManager::V1::SecureSourceManager::Rest::Client.new do |config|
1263
+ # config.timeout = 10.0
1264
+ # config.rpcs.list_instances.timeout = 20.0
1265
+ # end
1266
+ #
1267
+ # @!attribute [rw] endpoint
1268
+ # A custom service endpoint, as a hostname or hostname:port. The default is
1269
+ # nil, indicating to use the default endpoint in the current universe domain.
1270
+ # @return [::String,nil]
1271
+ # @!attribute [rw] credentials
1272
+ # Credentials to send with calls. You may provide any of the following types:
1273
+ # * (`String`) The path to a service account key file in JSON format
1274
+ # * (`Hash`) A service account key as a Hash
1275
+ # * (`Google::Auth::Credentials`) A googleauth credentials object
1276
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
1277
+ # * (`Signet::OAuth2::Client`) A signet oauth2 client object
1278
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
1279
+ # * (`nil`) indicating no credentials
1280
+ # @return [::Object]
1281
+ # @!attribute [rw] scope
1282
+ # The OAuth scopes
1283
+ # @return [::Array<::String>]
1284
+ # @!attribute [rw] lib_name
1285
+ # The library name as recorded in instrumentation and logging
1286
+ # @return [::String]
1287
+ # @!attribute [rw] lib_version
1288
+ # The library version as recorded in instrumentation and logging
1289
+ # @return [::String]
1290
+ # @!attribute [rw] timeout
1291
+ # The call timeout in seconds.
1292
+ # @return [::Numeric]
1293
+ # @!attribute [rw] metadata
1294
+ # Additional headers to be sent with the call.
1295
+ # @return [::Hash{::Symbol=>::String}]
1296
+ # @!attribute [rw] retry_policy
1297
+ # The retry policy. The value is a hash with the following keys:
1298
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
1299
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
1300
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
1301
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
1302
+ # trigger a retry.
1303
+ # @return [::Hash]
1304
+ # @!attribute [rw] quota_project
1305
+ # A separate project against which to charge quota.
1306
+ # @return [::String]
1307
+ # @!attribute [rw] universe_domain
1308
+ # The universe domain within which to make requests. This determines the
1309
+ # default endpoint URL. The default value of nil uses the environment
1310
+ # universe (usually the default "googleapis.com" universe).
1311
+ # @return [::String,nil]
1312
+ #
1313
+ class Configuration
1314
+ extend ::Gapic::Config
1315
+
1316
+ # @private
1317
+ # The endpoint specific to the default "googleapis.com" universe. Deprecated.
1318
+ DEFAULT_ENDPOINT = "securesourcemanager.googleapis.com"
1319
+
1320
+ config_attr :endpoint, nil, ::String, nil
1321
+ config_attr :credentials, nil do |value|
1322
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
1323
+ allowed.any? { |klass| klass === value }
1324
+ end
1325
+ config_attr :scope, nil, ::String, ::Array, nil
1326
+ config_attr :lib_name, nil, ::String, nil
1327
+ config_attr :lib_version, nil, ::String, nil
1328
+ config_attr :timeout, nil, ::Numeric, nil
1329
+ config_attr :metadata, nil, ::Hash, nil
1330
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
1331
+ config_attr :quota_project, nil, ::String, nil
1332
+ config_attr :universe_domain, nil, ::String, nil
1333
+
1334
+ # @private
1335
+ # Overrides for http bindings for the RPCs of this service
1336
+ # are only used when this service is used as mixin, and only
1337
+ # by the host service.
1338
+ # @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
1339
+ config_attr :bindings_override, {}, ::Hash, nil
1340
+
1341
+ # @private
1342
+ def initialize parent_config = nil
1343
+ @parent_config = parent_config unless parent_config.nil?
1344
+
1345
+ yield self if block_given?
1346
+ end
1347
+
1348
+ ##
1349
+ # Configurations for individual RPCs
1350
+ # @return [Rpcs]
1351
+ #
1352
+ def rpcs
1353
+ @rpcs ||= begin
1354
+ parent_rpcs = nil
1355
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
1356
+ Rpcs.new parent_rpcs
1357
+ end
1358
+ end
1359
+
1360
+ ##
1361
+ # Configuration RPC class for the SecureSourceManager API.
1362
+ #
1363
+ # Includes fields providing the configuration for each RPC in this service.
1364
+ # Each configuration object is of type `Gapic::Config::Method` and includes
1365
+ # the following configuration fields:
1366
+ #
1367
+ # * `timeout` (*type:* `Numeric`) - The call timeout in seconds
1368
+ # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers
1369
+ # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
1370
+ # include the following keys:
1371
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
1372
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
1373
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
1374
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
1375
+ # trigger a retry.
1376
+ #
1377
+ class Rpcs
1378
+ ##
1379
+ # RPC-specific configuration for `list_instances`
1380
+ # @return [::Gapic::Config::Method]
1381
+ #
1382
+ attr_reader :list_instances
1383
+ ##
1384
+ # RPC-specific configuration for `get_instance`
1385
+ # @return [::Gapic::Config::Method]
1386
+ #
1387
+ attr_reader :get_instance
1388
+ ##
1389
+ # RPC-specific configuration for `create_instance`
1390
+ # @return [::Gapic::Config::Method]
1391
+ #
1392
+ attr_reader :create_instance
1393
+ ##
1394
+ # RPC-specific configuration for `delete_instance`
1395
+ # @return [::Gapic::Config::Method]
1396
+ #
1397
+ attr_reader :delete_instance
1398
+ ##
1399
+ # RPC-specific configuration for `list_repositories`
1400
+ # @return [::Gapic::Config::Method]
1401
+ #
1402
+ attr_reader :list_repositories
1403
+ ##
1404
+ # RPC-specific configuration for `get_repository`
1405
+ # @return [::Gapic::Config::Method]
1406
+ #
1407
+ attr_reader :get_repository
1408
+ ##
1409
+ # RPC-specific configuration for `create_repository`
1410
+ # @return [::Gapic::Config::Method]
1411
+ #
1412
+ attr_reader :create_repository
1413
+ ##
1414
+ # RPC-specific configuration for `delete_repository`
1415
+ # @return [::Gapic::Config::Method]
1416
+ #
1417
+ attr_reader :delete_repository
1418
+ ##
1419
+ # RPC-specific configuration for `get_iam_policy_repo`
1420
+ # @return [::Gapic::Config::Method]
1421
+ #
1422
+ attr_reader :get_iam_policy_repo
1423
+ ##
1424
+ # RPC-specific configuration for `set_iam_policy_repo`
1425
+ # @return [::Gapic::Config::Method]
1426
+ #
1427
+ attr_reader :set_iam_policy_repo
1428
+ ##
1429
+ # RPC-specific configuration for `test_iam_permissions_repo`
1430
+ # @return [::Gapic::Config::Method]
1431
+ #
1432
+ attr_reader :test_iam_permissions_repo
1433
+
1434
+ # @private
1435
+ def initialize parent_rpcs = nil
1436
+ list_instances_config = parent_rpcs.list_instances if parent_rpcs.respond_to? :list_instances
1437
+ @list_instances = ::Gapic::Config::Method.new list_instances_config
1438
+ get_instance_config = parent_rpcs.get_instance if parent_rpcs.respond_to? :get_instance
1439
+ @get_instance = ::Gapic::Config::Method.new get_instance_config
1440
+ create_instance_config = parent_rpcs.create_instance if parent_rpcs.respond_to? :create_instance
1441
+ @create_instance = ::Gapic::Config::Method.new create_instance_config
1442
+ delete_instance_config = parent_rpcs.delete_instance if parent_rpcs.respond_to? :delete_instance
1443
+ @delete_instance = ::Gapic::Config::Method.new delete_instance_config
1444
+ list_repositories_config = parent_rpcs.list_repositories if parent_rpcs.respond_to? :list_repositories
1445
+ @list_repositories = ::Gapic::Config::Method.new list_repositories_config
1446
+ get_repository_config = parent_rpcs.get_repository if parent_rpcs.respond_to? :get_repository
1447
+ @get_repository = ::Gapic::Config::Method.new get_repository_config
1448
+ create_repository_config = parent_rpcs.create_repository if parent_rpcs.respond_to? :create_repository
1449
+ @create_repository = ::Gapic::Config::Method.new create_repository_config
1450
+ delete_repository_config = parent_rpcs.delete_repository if parent_rpcs.respond_to? :delete_repository
1451
+ @delete_repository = ::Gapic::Config::Method.new delete_repository_config
1452
+ get_iam_policy_repo_config = parent_rpcs.get_iam_policy_repo if parent_rpcs.respond_to? :get_iam_policy_repo
1453
+ @get_iam_policy_repo = ::Gapic::Config::Method.new get_iam_policy_repo_config
1454
+ set_iam_policy_repo_config = parent_rpcs.set_iam_policy_repo if parent_rpcs.respond_to? :set_iam_policy_repo
1455
+ @set_iam_policy_repo = ::Gapic::Config::Method.new set_iam_policy_repo_config
1456
+ test_iam_permissions_repo_config = parent_rpcs.test_iam_permissions_repo if parent_rpcs.respond_to? :test_iam_permissions_repo
1457
+ @test_iam_permissions_repo = ::Gapic::Config::Method.new test_iam_permissions_repo_config
1458
+
1459
+ yield self if block_given?
1460
+ end
1461
+ end
1462
+ end
1463
+ end
1464
+ end
1465
+ end
1466
+ end
1467
+ end
1468
+ end
1469
+ end