google-cloud-secure_source_manager-v1 1.0.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -638,7 +638,7 @@ module Google
638
638
  # @param options [::Gapic::CallOptions, ::Hash]
639
639
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
640
640
  #
641
- # @overload list_repositories(parent: nil, page_size: nil, page_token: nil, filter: nil)
641
+ # @overload list_repositories(parent: nil, page_size: nil, page_token: nil, filter: nil, instance: nil)
642
642
  # Pass arguments to `list_repositories` via keyword arguments. Note that at
643
643
  # least one keyword argument is required. To specify no parameters, or to keep all
644
644
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -652,6 +652,14 @@ module Google
652
652
  # A token identifying a page of results the server should return.
653
653
  # @param filter [::String]
654
654
  # Optional. Filter results.
655
+ # @param instance [::String]
656
+ # Optional. The name of the instance in which the repository is hosted,
657
+ # formatted as
658
+ # `projects/{project_number}/locations/{location_id}/instances/{instance_id}`.
659
+ # When listing repositories via
660
+ # securesourcemanager.googleapis.com (Control Plane API), this field is
661
+ # required. When listing repositories via *.sourcemanager.dev (Data Plane
662
+ # API), this field is ignored.
655
663
  # @yield [result, operation] Access the result along with the TransportOperation object
656
664
  # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::SecureSourceManager::V1::Repository>]
657
665
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -1249,6 +1257,444 @@ module Google
1249
1257
  raise ::Google::Cloud::Error.from_error(e)
1250
1258
  end
1251
1259
 
1260
+ ##
1261
+ # CreateBranchRule creates a branch rule in a given repository.
1262
+ #
1263
+ # @overload create_branch_rule(request, options = nil)
1264
+ # Pass arguments to `create_branch_rule` via a request object, either of type
1265
+ # {::Google::Cloud::SecureSourceManager::V1::CreateBranchRuleRequest} or an equivalent Hash.
1266
+ #
1267
+ # @param request [::Google::Cloud::SecureSourceManager::V1::CreateBranchRuleRequest, ::Hash]
1268
+ # A request object representing the call parameters. Required. To specify no
1269
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1270
+ # @param options [::Gapic::CallOptions, ::Hash]
1271
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1272
+ #
1273
+ # @overload create_branch_rule(parent: nil, branch_rule: nil, branch_rule_id: nil)
1274
+ # Pass arguments to `create_branch_rule` via keyword arguments. Note that at
1275
+ # least one keyword argument is required. To specify no parameters, or to keep all
1276
+ # the default parameter values, pass an empty Hash as a request object (see above).
1277
+ #
1278
+ # @param parent [::String]
1279
+ # @param branch_rule [::Google::Cloud::SecureSourceManager::V1::BranchRule, ::Hash]
1280
+ # @param branch_rule_id [::String]
1281
+ # @yield [result, operation] Access the result along with the TransportOperation object
1282
+ # @yieldparam result [::Gapic::Operation]
1283
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1284
+ #
1285
+ # @return [::Gapic::Operation]
1286
+ #
1287
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
1288
+ #
1289
+ # @example Basic example
1290
+ # require "google/cloud/secure_source_manager/v1"
1291
+ #
1292
+ # # Create a client object. The client can be reused for multiple calls.
1293
+ # client = Google::Cloud::SecureSourceManager::V1::SecureSourceManager::Rest::Client.new
1294
+ #
1295
+ # # Create a request. To set request fields, pass in keyword arguments.
1296
+ # request = Google::Cloud::SecureSourceManager::V1::CreateBranchRuleRequest.new
1297
+ #
1298
+ # # Call the create_branch_rule method.
1299
+ # result = client.create_branch_rule request
1300
+ #
1301
+ # # The returned object is of type Gapic::Operation. You can use it to
1302
+ # # check the status of an operation, cancel it, or wait for results.
1303
+ # # Here is how to wait for a response.
1304
+ # result.wait_until_done! timeout: 60
1305
+ # if result.response?
1306
+ # p result.response
1307
+ # else
1308
+ # puts "No response received."
1309
+ # end
1310
+ #
1311
+ def create_branch_rule request, options = nil
1312
+ raise ::ArgumentError, "request must be provided" if request.nil?
1313
+
1314
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SecureSourceManager::V1::CreateBranchRuleRequest
1315
+
1316
+ # Converts hash and nil to an options object
1317
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1318
+
1319
+ # Customize the options with defaults
1320
+ call_metadata = @config.rpcs.create_branch_rule.metadata.to_h
1321
+
1322
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1323
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1324
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1325
+ gapic_version: ::Google::Cloud::SecureSourceManager::V1::VERSION,
1326
+ transports_version_send: [:rest]
1327
+
1328
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1329
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1330
+
1331
+ options.apply_defaults timeout: @config.rpcs.create_branch_rule.timeout,
1332
+ metadata: call_metadata,
1333
+ retry_policy: @config.rpcs.create_branch_rule.retry_policy
1334
+
1335
+ options.apply_defaults timeout: @config.timeout,
1336
+ metadata: @config.metadata,
1337
+ retry_policy: @config.retry_policy
1338
+
1339
+ @secure_source_manager_stub.create_branch_rule request, options do |result, operation|
1340
+ result = ::Gapic::Operation.new result, @operations_client, options: options
1341
+ yield result, operation if block_given?
1342
+ return result
1343
+ end
1344
+ rescue ::Gapic::Rest::Error => e
1345
+ raise ::Google::Cloud::Error.from_error(e)
1346
+ end
1347
+
1348
+ ##
1349
+ # ListBranchRules lists branch rules in a given repository.
1350
+ #
1351
+ # @overload list_branch_rules(request, options = nil)
1352
+ # Pass arguments to `list_branch_rules` via a request object, either of type
1353
+ # {::Google::Cloud::SecureSourceManager::V1::ListBranchRulesRequest} or an equivalent Hash.
1354
+ #
1355
+ # @param request [::Google::Cloud::SecureSourceManager::V1::ListBranchRulesRequest, ::Hash]
1356
+ # A request object representing the call parameters. Required. To specify no
1357
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1358
+ # @param options [::Gapic::CallOptions, ::Hash]
1359
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1360
+ #
1361
+ # @overload list_branch_rules(parent: nil, page_size: nil, page_token: nil)
1362
+ # Pass arguments to `list_branch_rules` via keyword arguments. Note that at
1363
+ # least one keyword argument is required. To specify no parameters, or to keep all
1364
+ # the default parameter values, pass an empty Hash as a request object (see above).
1365
+ #
1366
+ # @param parent [::String]
1367
+ # @param page_size [::Integer]
1368
+ # @param page_token [::String]
1369
+ # @yield [result, operation] Access the result along with the TransportOperation object
1370
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::SecureSourceManager::V1::BranchRule>]
1371
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1372
+ #
1373
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::SecureSourceManager::V1::BranchRule>]
1374
+ #
1375
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
1376
+ #
1377
+ # @example Basic example
1378
+ # require "google/cloud/secure_source_manager/v1"
1379
+ #
1380
+ # # Create a client object. The client can be reused for multiple calls.
1381
+ # client = Google::Cloud::SecureSourceManager::V1::SecureSourceManager::Rest::Client.new
1382
+ #
1383
+ # # Create a request. To set request fields, pass in keyword arguments.
1384
+ # request = Google::Cloud::SecureSourceManager::V1::ListBranchRulesRequest.new
1385
+ #
1386
+ # # Call the list_branch_rules method.
1387
+ # result = client.list_branch_rules request
1388
+ #
1389
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1390
+ # # over elements, and API calls will be issued to fetch pages as needed.
1391
+ # result.each do |item|
1392
+ # # Each element is of type ::Google::Cloud::SecureSourceManager::V1::BranchRule.
1393
+ # p item
1394
+ # end
1395
+ #
1396
+ def list_branch_rules request, options = nil
1397
+ raise ::ArgumentError, "request must be provided" if request.nil?
1398
+
1399
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SecureSourceManager::V1::ListBranchRulesRequest
1400
+
1401
+ # Converts hash and nil to an options object
1402
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1403
+
1404
+ # Customize the options with defaults
1405
+ call_metadata = @config.rpcs.list_branch_rules.metadata.to_h
1406
+
1407
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1408
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1409
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1410
+ gapic_version: ::Google::Cloud::SecureSourceManager::V1::VERSION,
1411
+ transports_version_send: [:rest]
1412
+
1413
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1414
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1415
+
1416
+ options.apply_defaults timeout: @config.rpcs.list_branch_rules.timeout,
1417
+ metadata: call_metadata,
1418
+ retry_policy: @config.rpcs.list_branch_rules.retry_policy
1419
+
1420
+ options.apply_defaults timeout: @config.timeout,
1421
+ metadata: @config.metadata,
1422
+ retry_policy: @config.retry_policy
1423
+
1424
+ @secure_source_manager_stub.list_branch_rules request, options do |result, operation|
1425
+ result = ::Gapic::Rest::PagedEnumerable.new @secure_source_manager_stub, :list_branch_rules, "branch_rules", request, result, options
1426
+ yield result, operation if block_given?
1427
+ return result
1428
+ end
1429
+ rescue ::Gapic::Rest::Error => e
1430
+ raise ::Google::Cloud::Error.from_error(e)
1431
+ end
1432
+
1433
+ ##
1434
+ # GetBranchRule gets a branch rule.
1435
+ #
1436
+ # @overload get_branch_rule(request, options = nil)
1437
+ # Pass arguments to `get_branch_rule` via a request object, either of type
1438
+ # {::Google::Cloud::SecureSourceManager::V1::GetBranchRuleRequest} or an equivalent Hash.
1439
+ #
1440
+ # @param request [::Google::Cloud::SecureSourceManager::V1::GetBranchRuleRequest, ::Hash]
1441
+ # A request object representing the call parameters. Required. To specify no
1442
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1443
+ # @param options [::Gapic::CallOptions, ::Hash]
1444
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1445
+ #
1446
+ # @overload get_branch_rule(name: nil)
1447
+ # Pass arguments to `get_branch_rule` via keyword arguments. Note that at
1448
+ # least one keyword argument is required. To specify no parameters, or to keep all
1449
+ # the default parameter values, pass an empty Hash as a request object (see above).
1450
+ #
1451
+ # @param name [::String]
1452
+ # Required. Name of the repository to retrieve.
1453
+ # The format is
1454
+ # `projects/{project}/locations/{location}/repositories/{repository}/branchRules/{branch_rule}`.
1455
+ # @yield [result, operation] Access the result along with the TransportOperation object
1456
+ # @yieldparam result [::Google::Cloud::SecureSourceManager::V1::BranchRule]
1457
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1458
+ #
1459
+ # @return [::Google::Cloud::SecureSourceManager::V1::BranchRule]
1460
+ #
1461
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
1462
+ #
1463
+ # @example Basic example
1464
+ # require "google/cloud/secure_source_manager/v1"
1465
+ #
1466
+ # # Create a client object. The client can be reused for multiple calls.
1467
+ # client = Google::Cloud::SecureSourceManager::V1::SecureSourceManager::Rest::Client.new
1468
+ #
1469
+ # # Create a request. To set request fields, pass in keyword arguments.
1470
+ # request = Google::Cloud::SecureSourceManager::V1::GetBranchRuleRequest.new
1471
+ #
1472
+ # # Call the get_branch_rule method.
1473
+ # result = client.get_branch_rule request
1474
+ #
1475
+ # # The returned object is of type Google::Cloud::SecureSourceManager::V1::BranchRule.
1476
+ # p result
1477
+ #
1478
+ def get_branch_rule request, options = nil
1479
+ raise ::ArgumentError, "request must be provided" if request.nil?
1480
+
1481
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SecureSourceManager::V1::GetBranchRuleRequest
1482
+
1483
+ # Converts hash and nil to an options object
1484
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1485
+
1486
+ # Customize the options with defaults
1487
+ call_metadata = @config.rpcs.get_branch_rule.metadata.to_h
1488
+
1489
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1490
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1491
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1492
+ gapic_version: ::Google::Cloud::SecureSourceManager::V1::VERSION,
1493
+ transports_version_send: [:rest]
1494
+
1495
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1496
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1497
+
1498
+ options.apply_defaults timeout: @config.rpcs.get_branch_rule.timeout,
1499
+ metadata: call_metadata,
1500
+ retry_policy: @config.rpcs.get_branch_rule.retry_policy
1501
+
1502
+ options.apply_defaults timeout: @config.timeout,
1503
+ metadata: @config.metadata,
1504
+ retry_policy: @config.retry_policy
1505
+
1506
+ @secure_source_manager_stub.get_branch_rule request, options do |result, operation|
1507
+ yield result, operation if block_given?
1508
+ return result
1509
+ end
1510
+ rescue ::Gapic::Rest::Error => e
1511
+ raise ::Google::Cloud::Error.from_error(e)
1512
+ end
1513
+
1514
+ ##
1515
+ # UpdateBranchRule updates a branch rule.
1516
+ #
1517
+ # @overload update_branch_rule(request, options = nil)
1518
+ # Pass arguments to `update_branch_rule` via a request object, either of type
1519
+ # {::Google::Cloud::SecureSourceManager::V1::UpdateBranchRuleRequest} or an equivalent Hash.
1520
+ #
1521
+ # @param request [::Google::Cloud::SecureSourceManager::V1::UpdateBranchRuleRequest, ::Hash]
1522
+ # A request object representing the call parameters. Required. To specify no
1523
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1524
+ # @param options [::Gapic::CallOptions, ::Hash]
1525
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1526
+ #
1527
+ # @overload update_branch_rule(branch_rule: nil, validate_only: nil, update_mask: nil)
1528
+ # Pass arguments to `update_branch_rule` via keyword arguments. Note that at
1529
+ # least one keyword argument is required. To specify no parameters, or to keep all
1530
+ # the default parameter values, pass an empty Hash as a request object (see above).
1531
+ #
1532
+ # @param branch_rule [::Google::Cloud::SecureSourceManager::V1::BranchRule, ::Hash]
1533
+ # @param validate_only [::Boolean]
1534
+ # Optional. If set, validate the request and preview the review, but do not
1535
+ # actually post it. (https://google.aip.dev/163, for declarative friendly)
1536
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
1537
+ # Required. Field mask is used to specify the fields to be overwritten in the
1538
+ # branchRule resource by the update.
1539
+ # The fields specified in the update_mask are relative to the resource, not
1540
+ # the full request. A field will be overwritten if it is in the mask.
1541
+ # The special value "*" means full replacement.
1542
+ # @yield [result, operation] Access the result along with the TransportOperation object
1543
+ # @yieldparam result [::Gapic::Operation]
1544
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1545
+ #
1546
+ # @return [::Gapic::Operation]
1547
+ #
1548
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
1549
+ #
1550
+ # @example Basic example
1551
+ # require "google/cloud/secure_source_manager/v1"
1552
+ #
1553
+ # # Create a client object. The client can be reused for multiple calls.
1554
+ # client = Google::Cloud::SecureSourceManager::V1::SecureSourceManager::Rest::Client.new
1555
+ #
1556
+ # # Create a request. To set request fields, pass in keyword arguments.
1557
+ # request = Google::Cloud::SecureSourceManager::V1::UpdateBranchRuleRequest.new
1558
+ #
1559
+ # # Call the update_branch_rule method.
1560
+ # result = client.update_branch_rule request
1561
+ #
1562
+ # # The returned object is of type Gapic::Operation. You can use it to
1563
+ # # check the status of an operation, cancel it, or wait for results.
1564
+ # # Here is how to wait for a response.
1565
+ # result.wait_until_done! timeout: 60
1566
+ # if result.response?
1567
+ # p result.response
1568
+ # else
1569
+ # puts "No response received."
1570
+ # end
1571
+ #
1572
+ def update_branch_rule request, options = nil
1573
+ raise ::ArgumentError, "request must be provided" if request.nil?
1574
+
1575
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SecureSourceManager::V1::UpdateBranchRuleRequest
1576
+
1577
+ # Converts hash and nil to an options object
1578
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1579
+
1580
+ # Customize the options with defaults
1581
+ call_metadata = @config.rpcs.update_branch_rule.metadata.to_h
1582
+
1583
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1584
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1585
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1586
+ gapic_version: ::Google::Cloud::SecureSourceManager::V1::VERSION,
1587
+ transports_version_send: [:rest]
1588
+
1589
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1590
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1591
+
1592
+ options.apply_defaults timeout: @config.rpcs.update_branch_rule.timeout,
1593
+ metadata: call_metadata,
1594
+ retry_policy: @config.rpcs.update_branch_rule.retry_policy
1595
+
1596
+ options.apply_defaults timeout: @config.timeout,
1597
+ metadata: @config.metadata,
1598
+ retry_policy: @config.retry_policy
1599
+
1600
+ @secure_source_manager_stub.update_branch_rule request, options do |result, operation|
1601
+ result = ::Gapic::Operation.new result, @operations_client, options: options
1602
+ yield result, operation if block_given?
1603
+ return result
1604
+ end
1605
+ rescue ::Gapic::Rest::Error => e
1606
+ raise ::Google::Cloud::Error.from_error(e)
1607
+ end
1608
+
1609
+ ##
1610
+ # DeleteBranchRule deletes a branch rule.
1611
+ #
1612
+ # @overload delete_branch_rule(request, options = nil)
1613
+ # Pass arguments to `delete_branch_rule` via a request object, either of type
1614
+ # {::Google::Cloud::SecureSourceManager::V1::DeleteBranchRuleRequest} or an equivalent Hash.
1615
+ #
1616
+ # @param request [::Google::Cloud::SecureSourceManager::V1::DeleteBranchRuleRequest, ::Hash]
1617
+ # A request object representing the call parameters. Required. To specify no
1618
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1619
+ # @param options [::Gapic::CallOptions, ::Hash]
1620
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1621
+ #
1622
+ # @overload delete_branch_rule(name: nil, allow_missing: nil)
1623
+ # Pass arguments to `delete_branch_rule` via keyword arguments. Note that at
1624
+ # least one keyword argument is required. To specify no parameters, or to keep all
1625
+ # the default parameter values, pass an empty Hash as a request object (see above).
1626
+ #
1627
+ # @param name [::String]
1628
+ # @param allow_missing [::Boolean]
1629
+ # Optional. If set to true, and the branch rule is not found, the request
1630
+ # will succeed but no action will be taken on the server.
1631
+ # @yield [result, operation] Access the result along with the TransportOperation object
1632
+ # @yieldparam result [::Gapic::Operation]
1633
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1634
+ #
1635
+ # @return [::Gapic::Operation]
1636
+ #
1637
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
1638
+ #
1639
+ # @example Basic example
1640
+ # require "google/cloud/secure_source_manager/v1"
1641
+ #
1642
+ # # Create a client object. The client can be reused for multiple calls.
1643
+ # client = Google::Cloud::SecureSourceManager::V1::SecureSourceManager::Rest::Client.new
1644
+ #
1645
+ # # Create a request. To set request fields, pass in keyword arguments.
1646
+ # request = Google::Cloud::SecureSourceManager::V1::DeleteBranchRuleRequest.new
1647
+ #
1648
+ # # Call the delete_branch_rule method.
1649
+ # result = client.delete_branch_rule request
1650
+ #
1651
+ # # The returned object is of type Gapic::Operation. You can use it to
1652
+ # # check the status of an operation, cancel it, or wait for results.
1653
+ # # Here is how to wait for a response.
1654
+ # result.wait_until_done! timeout: 60
1655
+ # if result.response?
1656
+ # p result.response
1657
+ # else
1658
+ # puts "No response received."
1659
+ # end
1660
+ #
1661
+ def delete_branch_rule request, options = nil
1662
+ raise ::ArgumentError, "request must be provided" if request.nil?
1663
+
1664
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SecureSourceManager::V1::DeleteBranchRuleRequest
1665
+
1666
+ # Converts hash and nil to an options object
1667
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1668
+
1669
+ # Customize the options with defaults
1670
+ call_metadata = @config.rpcs.delete_branch_rule.metadata.to_h
1671
+
1672
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1673
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1674
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1675
+ gapic_version: ::Google::Cloud::SecureSourceManager::V1::VERSION,
1676
+ transports_version_send: [:rest]
1677
+
1678
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1679
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1680
+
1681
+ options.apply_defaults timeout: @config.rpcs.delete_branch_rule.timeout,
1682
+ metadata: call_metadata,
1683
+ retry_policy: @config.rpcs.delete_branch_rule.retry_policy
1684
+
1685
+ options.apply_defaults timeout: @config.timeout,
1686
+ metadata: @config.metadata,
1687
+ retry_policy: @config.retry_policy
1688
+
1689
+ @secure_source_manager_stub.delete_branch_rule request, options do |result, operation|
1690
+ result = ::Gapic::Operation.new result, @operations_client, options: options
1691
+ yield result, operation if block_given?
1692
+ return result
1693
+ end
1694
+ rescue ::Gapic::Rest::Error => e
1695
+ raise ::Google::Cloud::Error.from_error(e)
1696
+ end
1697
+
1252
1698
  ##
1253
1699
  # Configuration class for the SecureSourceManager REST API.
1254
1700
  #
@@ -1444,6 +1890,31 @@ module Google
1444
1890
  # @return [::Gapic::Config::Method]
1445
1891
  #
1446
1892
  attr_reader :test_iam_permissions_repo
1893
+ ##
1894
+ # RPC-specific configuration for `create_branch_rule`
1895
+ # @return [::Gapic::Config::Method]
1896
+ #
1897
+ attr_reader :create_branch_rule
1898
+ ##
1899
+ # RPC-specific configuration for `list_branch_rules`
1900
+ # @return [::Gapic::Config::Method]
1901
+ #
1902
+ attr_reader :list_branch_rules
1903
+ ##
1904
+ # RPC-specific configuration for `get_branch_rule`
1905
+ # @return [::Gapic::Config::Method]
1906
+ #
1907
+ attr_reader :get_branch_rule
1908
+ ##
1909
+ # RPC-specific configuration for `update_branch_rule`
1910
+ # @return [::Gapic::Config::Method]
1911
+ #
1912
+ attr_reader :update_branch_rule
1913
+ ##
1914
+ # RPC-specific configuration for `delete_branch_rule`
1915
+ # @return [::Gapic::Config::Method]
1916
+ #
1917
+ attr_reader :delete_branch_rule
1447
1918
 
1448
1919
  # @private
1449
1920
  def initialize parent_rpcs = nil
@@ -1469,6 +1940,16 @@ module Google
1469
1940
  @set_iam_policy_repo = ::Gapic::Config::Method.new set_iam_policy_repo_config
1470
1941
  test_iam_permissions_repo_config = parent_rpcs.test_iam_permissions_repo if parent_rpcs.respond_to? :test_iam_permissions_repo
1471
1942
  @test_iam_permissions_repo = ::Gapic::Config::Method.new test_iam_permissions_repo_config
1943
+ create_branch_rule_config = parent_rpcs.create_branch_rule if parent_rpcs.respond_to? :create_branch_rule
1944
+ @create_branch_rule = ::Gapic::Config::Method.new create_branch_rule_config
1945
+ list_branch_rules_config = parent_rpcs.list_branch_rules if parent_rpcs.respond_to? :list_branch_rules
1946
+ @list_branch_rules = ::Gapic::Config::Method.new list_branch_rules_config
1947
+ get_branch_rule_config = parent_rpcs.get_branch_rule if parent_rpcs.respond_to? :get_branch_rule
1948
+ @get_branch_rule = ::Gapic::Config::Method.new get_branch_rule_config
1949
+ update_branch_rule_config = parent_rpcs.update_branch_rule if parent_rpcs.respond_to? :update_branch_rule
1950
+ @update_branch_rule = ::Gapic::Config::Method.new update_branch_rule_config
1951
+ delete_branch_rule_config = parent_rpcs.delete_branch_rule if parent_rpcs.respond_to? :delete_branch_rule
1952
+ @delete_branch_rule = ::Gapic::Config::Method.new delete_branch_rule_config
1472
1953
 
1473
1954
  yield self if block_given?
1474
1955
  end