google-cloud-artifact_registry-v1 1.0.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (32) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/artifact_registry/v1/artifact_registry/client.rb +1750 -288
  3. data/lib/google/cloud/artifact_registry/v1/artifact_registry/operations.rb +3 -10
  4. data/lib/google/cloud/artifact_registry/v1/artifact_registry/paths.rb +42 -0
  5. data/lib/google/cloud/artifact_registry/v1/artifact_registry/rest/client.rb +1643 -272
  6. data/lib/google/cloud/artifact_registry/v1/artifact_registry/rest/operations.rb +3 -10
  7. data/lib/google/cloud/artifact_registry/v1/artifact_registry/rest/service_stub.rb +804 -31
  8. data/lib/google/cloud/artifact_registry/v1/version.rb +1 -1
  9. data/lib/google/devtools/artifactregistry/v1/attachment_pb.rb +52 -0
  10. data/lib/google/devtools/artifactregistry/v1/file_pb.rb +5 -1
  11. data/lib/google/devtools/artifactregistry/v1/generic_pb.rb +47 -0
  12. data/lib/google/devtools/artifactregistry/v1/package_pb.rb +4 -1
  13. data/lib/google/devtools/artifactregistry/v1/repository_pb.rb +11 -1
  14. data/lib/google/devtools/artifactregistry/v1/rule_pb.rb +57 -0
  15. data/lib/google/devtools/artifactregistry/v1/service_pb.rb +3 -1
  16. data/lib/google/devtools/artifactregistry/v1/service_services_pb.rb +31 -0
  17. data/lib/google/devtools/artifactregistry/v1/settings_pb.rb +1 -1
  18. data/lib/google/devtools/artifactregistry/v1/version_pb.rb +4 -1
  19. data/proto_docs/google/api/client.rb +51 -10
  20. data/proto_docs/google/api/resource.rb +7 -2
  21. data/proto_docs/google/devtools/artifactregistry/v1/artifact.rb +4 -4
  22. data/proto_docs/google/devtools/artifactregistry/v1/attachment.rb +152 -0
  23. data/proto_docs/google/devtools/artifactregistry/v1/file.rb +80 -7
  24. data/proto_docs/google/devtools/artifactregistry/v1/generic.rb +48 -0
  25. data/proto_docs/google/devtools/artifactregistry/v1/package.rb +76 -0
  26. data/proto_docs/google/devtools/artifactregistry/v1/repository.rb +188 -1
  27. data/proto_docs/google/devtools/artifactregistry/v1/rule.rb +149 -0
  28. data/proto_docs/google/devtools/artifactregistry/v1/settings.rb +10 -0
  29. data/proto_docs/google/devtools/artifactregistry/v1/tag.rb +23 -5
  30. data/proto_docs/google/devtools/artifactregistry/v1/version.rb +74 -1
  31. data/proto_docs/google/longrunning/operations.rb +19 -14
  32. metadata +9 -3
@@ -897,6 +897,44 @@ module Google
897
897
  result
898
898
  end
899
899
 
900
+ ##
901
+ # Baseline implementation for the update_version REST call
902
+ #
903
+ # @param request_pb [::Google::Cloud::ArtifactRegistry::V1::UpdateVersionRequest]
904
+ # A request object representing the call parameters. Required.
905
+ # @param options [::Gapic::CallOptions]
906
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
907
+ #
908
+ # @yield [result, operation] Access the result along with the TransportOperation object
909
+ # @yieldparam result [::Google::Cloud::ArtifactRegistry::V1::Version]
910
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
911
+ #
912
+ # @return [::Google::Cloud::ArtifactRegistry::V1::Version]
913
+ # A result object deserialized from the server's reply
914
+ def update_version request_pb, options = nil
915
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
916
+
917
+ verb, uri, query_string_params, body = ServiceStub.transcode_update_version_request request_pb
918
+ query_string_params = if query_string_params.any?
919
+ query_string_params.to_h { |p| p.split "=", 2 }
920
+ else
921
+ {}
922
+ end
923
+
924
+ response = @client_stub.make_http_request(
925
+ verb,
926
+ uri: uri,
927
+ body: body || "",
928
+ params: query_string_params,
929
+ options: options
930
+ )
931
+ operation = ::Gapic::Rest::TransportOperation.new response
932
+ result = ::Google::Cloud::ArtifactRegistry::V1::Version.decode_json response.body, ignore_unknown_fields: true
933
+
934
+ yield result, operation if block_given?
935
+ result
936
+ end
937
+
900
938
  ##
901
939
  # Baseline implementation for the list_files REST call
902
940
  #
@@ -973,6 +1011,82 @@ module Google
973
1011
  result
974
1012
  end
975
1013
 
1014
+ ##
1015
+ # Baseline implementation for the delete_file REST call
1016
+ #
1017
+ # @param request_pb [::Google::Cloud::ArtifactRegistry::V1::DeleteFileRequest]
1018
+ # A request object representing the call parameters. Required.
1019
+ # @param options [::Gapic::CallOptions]
1020
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1021
+ #
1022
+ # @yield [result, operation] Access the result along with the TransportOperation object
1023
+ # @yieldparam result [::Google::Longrunning::Operation]
1024
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1025
+ #
1026
+ # @return [::Google::Longrunning::Operation]
1027
+ # A result object deserialized from the server's reply
1028
+ def delete_file request_pb, options = nil
1029
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1030
+
1031
+ verb, uri, query_string_params, body = ServiceStub.transcode_delete_file_request request_pb
1032
+ query_string_params = if query_string_params.any?
1033
+ query_string_params.to_h { |p| p.split "=", 2 }
1034
+ else
1035
+ {}
1036
+ end
1037
+
1038
+ response = @client_stub.make_http_request(
1039
+ verb,
1040
+ uri: uri,
1041
+ body: body || "",
1042
+ params: query_string_params,
1043
+ options: options
1044
+ )
1045
+ operation = ::Gapic::Rest::TransportOperation.new response
1046
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
1047
+
1048
+ yield result, operation if block_given?
1049
+ result
1050
+ end
1051
+
1052
+ ##
1053
+ # Baseline implementation for the update_file REST call
1054
+ #
1055
+ # @param request_pb [::Google::Cloud::ArtifactRegistry::V1::UpdateFileRequest]
1056
+ # A request object representing the call parameters. Required.
1057
+ # @param options [::Gapic::CallOptions]
1058
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1059
+ #
1060
+ # @yield [result, operation] Access the result along with the TransportOperation object
1061
+ # @yieldparam result [::Google::Cloud::ArtifactRegistry::V1::File]
1062
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1063
+ #
1064
+ # @return [::Google::Cloud::ArtifactRegistry::V1::File]
1065
+ # A result object deserialized from the server's reply
1066
+ def update_file request_pb, options = nil
1067
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1068
+
1069
+ verb, uri, query_string_params, body = ServiceStub.transcode_update_file_request request_pb
1070
+ query_string_params = if query_string_params.any?
1071
+ query_string_params.to_h { |p| p.split "=", 2 }
1072
+ else
1073
+ {}
1074
+ end
1075
+
1076
+ response = @client_stub.make_http_request(
1077
+ verb,
1078
+ uri: uri,
1079
+ body: body || "",
1080
+ params: query_string_params,
1081
+ options: options
1082
+ )
1083
+ operation = ::Gapic::Rest::TransportOperation.new response
1084
+ result = ::Google::Cloud::ArtifactRegistry::V1::File.decode_json response.body, ignore_unknown_fields: true
1085
+
1086
+ yield result, operation if block_given?
1087
+ result
1088
+ end
1089
+
976
1090
  ##
977
1091
  # Baseline implementation for the list_tags REST call
978
1092
  #
@@ -1163,6 +1277,196 @@ module Google
1163
1277
  result
1164
1278
  end
1165
1279
 
1280
+ ##
1281
+ # Baseline implementation for the create_rule REST call
1282
+ #
1283
+ # @param request_pb [::Google::Cloud::ArtifactRegistry::V1::CreateRuleRequest]
1284
+ # A request object representing the call parameters. Required.
1285
+ # @param options [::Gapic::CallOptions]
1286
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1287
+ #
1288
+ # @yield [result, operation] Access the result along with the TransportOperation object
1289
+ # @yieldparam result [::Google::Cloud::ArtifactRegistry::V1::Rule]
1290
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1291
+ #
1292
+ # @return [::Google::Cloud::ArtifactRegistry::V1::Rule]
1293
+ # A result object deserialized from the server's reply
1294
+ def create_rule request_pb, options = nil
1295
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1296
+
1297
+ verb, uri, query_string_params, body = ServiceStub.transcode_create_rule_request request_pb
1298
+ query_string_params = if query_string_params.any?
1299
+ query_string_params.to_h { |p| p.split "=", 2 }
1300
+ else
1301
+ {}
1302
+ end
1303
+
1304
+ response = @client_stub.make_http_request(
1305
+ verb,
1306
+ uri: uri,
1307
+ body: body || "",
1308
+ params: query_string_params,
1309
+ options: options
1310
+ )
1311
+ operation = ::Gapic::Rest::TransportOperation.new response
1312
+ result = ::Google::Cloud::ArtifactRegistry::V1::Rule.decode_json response.body, ignore_unknown_fields: true
1313
+
1314
+ yield result, operation if block_given?
1315
+ result
1316
+ end
1317
+
1318
+ ##
1319
+ # Baseline implementation for the list_rules REST call
1320
+ #
1321
+ # @param request_pb [::Google::Cloud::ArtifactRegistry::V1::ListRulesRequest]
1322
+ # A request object representing the call parameters. Required.
1323
+ # @param options [::Gapic::CallOptions]
1324
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1325
+ #
1326
+ # @yield [result, operation] Access the result along with the TransportOperation object
1327
+ # @yieldparam result [::Google::Cloud::ArtifactRegistry::V1::ListRulesResponse]
1328
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1329
+ #
1330
+ # @return [::Google::Cloud::ArtifactRegistry::V1::ListRulesResponse]
1331
+ # A result object deserialized from the server's reply
1332
+ def list_rules request_pb, options = nil
1333
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1334
+
1335
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_rules_request request_pb
1336
+ query_string_params = if query_string_params.any?
1337
+ query_string_params.to_h { |p| p.split "=", 2 }
1338
+ else
1339
+ {}
1340
+ end
1341
+
1342
+ response = @client_stub.make_http_request(
1343
+ verb,
1344
+ uri: uri,
1345
+ body: body || "",
1346
+ params: query_string_params,
1347
+ options: options
1348
+ )
1349
+ operation = ::Gapic::Rest::TransportOperation.new response
1350
+ result = ::Google::Cloud::ArtifactRegistry::V1::ListRulesResponse.decode_json response.body, ignore_unknown_fields: true
1351
+
1352
+ yield result, operation if block_given?
1353
+ result
1354
+ end
1355
+
1356
+ ##
1357
+ # Baseline implementation for the get_rule REST call
1358
+ #
1359
+ # @param request_pb [::Google::Cloud::ArtifactRegistry::V1::GetRuleRequest]
1360
+ # A request object representing the call parameters. Required.
1361
+ # @param options [::Gapic::CallOptions]
1362
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1363
+ #
1364
+ # @yield [result, operation] Access the result along with the TransportOperation object
1365
+ # @yieldparam result [::Google::Cloud::ArtifactRegistry::V1::Rule]
1366
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1367
+ #
1368
+ # @return [::Google::Cloud::ArtifactRegistry::V1::Rule]
1369
+ # A result object deserialized from the server's reply
1370
+ def get_rule request_pb, options = nil
1371
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1372
+
1373
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_rule_request request_pb
1374
+ query_string_params = if query_string_params.any?
1375
+ query_string_params.to_h { |p| p.split "=", 2 }
1376
+ else
1377
+ {}
1378
+ end
1379
+
1380
+ response = @client_stub.make_http_request(
1381
+ verb,
1382
+ uri: uri,
1383
+ body: body || "",
1384
+ params: query_string_params,
1385
+ options: options
1386
+ )
1387
+ operation = ::Gapic::Rest::TransportOperation.new response
1388
+ result = ::Google::Cloud::ArtifactRegistry::V1::Rule.decode_json response.body, ignore_unknown_fields: true
1389
+
1390
+ yield result, operation if block_given?
1391
+ result
1392
+ end
1393
+
1394
+ ##
1395
+ # Baseline implementation for the update_rule REST call
1396
+ #
1397
+ # @param request_pb [::Google::Cloud::ArtifactRegistry::V1::UpdateRuleRequest]
1398
+ # A request object representing the call parameters. Required.
1399
+ # @param options [::Gapic::CallOptions]
1400
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1401
+ #
1402
+ # @yield [result, operation] Access the result along with the TransportOperation object
1403
+ # @yieldparam result [::Google::Cloud::ArtifactRegistry::V1::Rule]
1404
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1405
+ #
1406
+ # @return [::Google::Cloud::ArtifactRegistry::V1::Rule]
1407
+ # A result object deserialized from the server's reply
1408
+ def update_rule request_pb, options = nil
1409
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1410
+
1411
+ verb, uri, query_string_params, body = ServiceStub.transcode_update_rule_request request_pb
1412
+ query_string_params = if query_string_params.any?
1413
+ query_string_params.to_h { |p| p.split "=", 2 }
1414
+ else
1415
+ {}
1416
+ end
1417
+
1418
+ response = @client_stub.make_http_request(
1419
+ verb,
1420
+ uri: uri,
1421
+ body: body || "",
1422
+ params: query_string_params,
1423
+ options: options
1424
+ )
1425
+ operation = ::Gapic::Rest::TransportOperation.new response
1426
+ result = ::Google::Cloud::ArtifactRegistry::V1::Rule.decode_json response.body, ignore_unknown_fields: true
1427
+
1428
+ yield result, operation if block_given?
1429
+ result
1430
+ end
1431
+
1432
+ ##
1433
+ # Baseline implementation for the delete_rule REST call
1434
+ #
1435
+ # @param request_pb [::Google::Cloud::ArtifactRegistry::V1::DeleteRuleRequest]
1436
+ # A request object representing the call parameters. Required.
1437
+ # @param options [::Gapic::CallOptions]
1438
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1439
+ #
1440
+ # @yield [result, operation] Access the result along with the TransportOperation object
1441
+ # @yieldparam result [::Google::Protobuf::Empty]
1442
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1443
+ #
1444
+ # @return [::Google::Protobuf::Empty]
1445
+ # A result object deserialized from the server's reply
1446
+ def delete_rule request_pb, options = nil
1447
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1448
+
1449
+ verb, uri, query_string_params, body = ServiceStub.transcode_delete_rule_request request_pb
1450
+ query_string_params = if query_string_params.any?
1451
+ query_string_params.to_h { |p| p.split "=", 2 }
1452
+ else
1453
+ {}
1454
+ end
1455
+
1456
+ response = @client_stub.make_http_request(
1457
+ verb,
1458
+ uri: uri,
1459
+ body: body || "",
1460
+ params: query_string_params,
1461
+ options: options
1462
+ )
1463
+ operation = ::Gapic::Rest::TransportOperation.new response
1464
+ result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
1465
+
1466
+ yield result, operation if block_given?
1467
+ result
1468
+ end
1469
+
1166
1470
  ##
1167
1471
  # Baseline implementation for the set_iam_policy REST call
1168
1472
  #
@@ -1253,10 +1557,200 @@ module Google
1253
1557
  #
1254
1558
  # @return [::Google::Iam::V1::TestIamPermissionsResponse]
1255
1559
  # A result object deserialized from the server's reply
1256
- def test_iam_permissions request_pb, options = nil
1560
+ def test_iam_permissions request_pb, options = nil
1561
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1562
+
1563
+ verb, uri, query_string_params, body = ServiceStub.transcode_test_iam_permissions_request request_pb
1564
+ query_string_params = if query_string_params.any?
1565
+ query_string_params.to_h { |p| p.split "=", 2 }
1566
+ else
1567
+ {}
1568
+ end
1569
+
1570
+ response = @client_stub.make_http_request(
1571
+ verb,
1572
+ uri: uri,
1573
+ body: body || "",
1574
+ params: query_string_params,
1575
+ options: options
1576
+ )
1577
+ operation = ::Gapic::Rest::TransportOperation.new response
1578
+ result = ::Google::Iam::V1::TestIamPermissionsResponse.decode_json response.body, ignore_unknown_fields: true
1579
+
1580
+ yield result, operation if block_given?
1581
+ result
1582
+ end
1583
+
1584
+ ##
1585
+ # Baseline implementation for the get_project_settings REST call
1586
+ #
1587
+ # @param request_pb [::Google::Cloud::ArtifactRegistry::V1::GetProjectSettingsRequest]
1588
+ # A request object representing the call parameters. Required.
1589
+ # @param options [::Gapic::CallOptions]
1590
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1591
+ #
1592
+ # @yield [result, operation] Access the result along with the TransportOperation object
1593
+ # @yieldparam result [::Google::Cloud::ArtifactRegistry::V1::ProjectSettings]
1594
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1595
+ #
1596
+ # @return [::Google::Cloud::ArtifactRegistry::V1::ProjectSettings]
1597
+ # A result object deserialized from the server's reply
1598
+ def get_project_settings request_pb, options = nil
1599
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1600
+
1601
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_project_settings_request request_pb
1602
+ query_string_params = if query_string_params.any?
1603
+ query_string_params.to_h { |p| p.split "=", 2 }
1604
+ else
1605
+ {}
1606
+ end
1607
+
1608
+ response = @client_stub.make_http_request(
1609
+ verb,
1610
+ uri: uri,
1611
+ body: body || "",
1612
+ params: query_string_params,
1613
+ options: options
1614
+ )
1615
+ operation = ::Gapic::Rest::TransportOperation.new response
1616
+ result = ::Google::Cloud::ArtifactRegistry::V1::ProjectSettings.decode_json response.body, ignore_unknown_fields: true
1617
+
1618
+ yield result, operation if block_given?
1619
+ result
1620
+ end
1621
+
1622
+ ##
1623
+ # Baseline implementation for the update_project_settings REST call
1624
+ #
1625
+ # @param request_pb [::Google::Cloud::ArtifactRegistry::V1::UpdateProjectSettingsRequest]
1626
+ # A request object representing the call parameters. Required.
1627
+ # @param options [::Gapic::CallOptions]
1628
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1629
+ #
1630
+ # @yield [result, operation] Access the result along with the TransportOperation object
1631
+ # @yieldparam result [::Google::Cloud::ArtifactRegistry::V1::ProjectSettings]
1632
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1633
+ #
1634
+ # @return [::Google::Cloud::ArtifactRegistry::V1::ProjectSettings]
1635
+ # A result object deserialized from the server's reply
1636
+ def update_project_settings request_pb, options = nil
1637
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1638
+
1639
+ verb, uri, query_string_params, body = ServiceStub.transcode_update_project_settings_request request_pb
1640
+ query_string_params = if query_string_params.any?
1641
+ query_string_params.to_h { |p| p.split "=", 2 }
1642
+ else
1643
+ {}
1644
+ end
1645
+
1646
+ response = @client_stub.make_http_request(
1647
+ verb,
1648
+ uri: uri,
1649
+ body: body || "",
1650
+ params: query_string_params,
1651
+ options: options
1652
+ )
1653
+ operation = ::Gapic::Rest::TransportOperation.new response
1654
+ result = ::Google::Cloud::ArtifactRegistry::V1::ProjectSettings.decode_json response.body, ignore_unknown_fields: true
1655
+
1656
+ yield result, operation if block_given?
1657
+ result
1658
+ end
1659
+
1660
+ ##
1661
+ # Baseline implementation for the get_vpcsc_config REST call
1662
+ #
1663
+ # @param request_pb [::Google::Cloud::ArtifactRegistry::V1::GetVPCSCConfigRequest]
1664
+ # A request object representing the call parameters. Required.
1665
+ # @param options [::Gapic::CallOptions]
1666
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1667
+ #
1668
+ # @yield [result, operation] Access the result along with the TransportOperation object
1669
+ # @yieldparam result [::Google::Cloud::ArtifactRegistry::V1::VPCSCConfig]
1670
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1671
+ #
1672
+ # @return [::Google::Cloud::ArtifactRegistry::V1::VPCSCConfig]
1673
+ # A result object deserialized from the server's reply
1674
+ def get_vpcsc_config request_pb, options = nil
1675
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1676
+
1677
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_vpcsc_config_request request_pb
1678
+ query_string_params = if query_string_params.any?
1679
+ query_string_params.to_h { |p| p.split "=", 2 }
1680
+ else
1681
+ {}
1682
+ end
1683
+
1684
+ response = @client_stub.make_http_request(
1685
+ verb,
1686
+ uri: uri,
1687
+ body: body || "",
1688
+ params: query_string_params,
1689
+ options: options
1690
+ )
1691
+ operation = ::Gapic::Rest::TransportOperation.new response
1692
+ result = ::Google::Cloud::ArtifactRegistry::V1::VPCSCConfig.decode_json response.body, ignore_unknown_fields: true
1693
+
1694
+ yield result, operation if block_given?
1695
+ result
1696
+ end
1697
+
1698
+ ##
1699
+ # Baseline implementation for the update_vpcsc_config REST call
1700
+ #
1701
+ # @param request_pb [::Google::Cloud::ArtifactRegistry::V1::UpdateVPCSCConfigRequest]
1702
+ # A request object representing the call parameters. Required.
1703
+ # @param options [::Gapic::CallOptions]
1704
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1705
+ #
1706
+ # @yield [result, operation] Access the result along with the TransportOperation object
1707
+ # @yieldparam result [::Google::Cloud::ArtifactRegistry::V1::VPCSCConfig]
1708
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1709
+ #
1710
+ # @return [::Google::Cloud::ArtifactRegistry::V1::VPCSCConfig]
1711
+ # A result object deserialized from the server's reply
1712
+ def update_vpcsc_config request_pb, options = nil
1713
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1714
+
1715
+ verb, uri, query_string_params, body = ServiceStub.transcode_update_vpcsc_config_request request_pb
1716
+ query_string_params = if query_string_params.any?
1717
+ query_string_params.to_h { |p| p.split "=", 2 }
1718
+ else
1719
+ {}
1720
+ end
1721
+
1722
+ response = @client_stub.make_http_request(
1723
+ verb,
1724
+ uri: uri,
1725
+ body: body || "",
1726
+ params: query_string_params,
1727
+ options: options
1728
+ )
1729
+ operation = ::Gapic::Rest::TransportOperation.new response
1730
+ result = ::Google::Cloud::ArtifactRegistry::V1::VPCSCConfig.decode_json response.body, ignore_unknown_fields: true
1731
+
1732
+ yield result, operation if block_given?
1733
+ result
1734
+ end
1735
+
1736
+ ##
1737
+ # Baseline implementation for the update_package REST call
1738
+ #
1739
+ # @param request_pb [::Google::Cloud::ArtifactRegistry::V1::UpdatePackageRequest]
1740
+ # A request object representing the call parameters. Required.
1741
+ # @param options [::Gapic::CallOptions]
1742
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1743
+ #
1744
+ # @yield [result, operation] Access the result along with the TransportOperation object
1745
+ # @yieldparam result [::Google::Cloud::ArtifactRegistry::V1::Package]
1746
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1747
+ #
1748
+ # @return [::Google::Cloud::ArtifactRegistry::V1::Package]
1749
+ # A result object deserialized from the server's reply
1750
+ def update_package request_pb, options = nil
1257
1751
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
1258
1752
 
1259
- verb, uri, query_string_params, body = ServiceStub.transcode_test_iam_permissions_request request_pb
1753
+ verb, uri, query_string_params, body = ServiceStub.transcode_update_package_request request_pb
1260
1754
  query_string_params = if query_string_params.any?
1261
1755
  query_string_params.to_h { |p| p.split "=", 2 }
1262
1756
  else
@@ -1271,30 +1765,30 @@ module Google
1271
1765
  options: options
1272
1766
  )
1273
1767
  operation = ::Gapic::Rest::TransportOperation.new response
1274
- result = ::Google::Iam::V1::TestIamPermissionsResponse.decode_json response.body, ignore_unknown_fields: true
1768
+ result = ::Google::Cloud::ArtifactRegistry::V1::Package.decode_json response.body, ignore_unknown_fields: true
1275
1769
 
1276
1770
  yield result, operation if block_given?
1277
1771
  result
1278
1772
  end
1279
1773
 
1280
1774
  ##
1281
- # Baseline implementation for the get_project_settings REST call
1775
+ # Baseline implementation for the list_attachments REST call
1282
1776
  #
1283
- # @param request_pb [::Google::Cloud::ArtifactRegistry::V1::GetProjectSettingsRequest]
1777
+ # @param request_pb [::Google::Cloud::ArtifactRegistry::V1::ListAttachmentsRequest]
1284
1778
  # A request object representing the call parameters. Required.
1285
1779
  # @param options [::Gapic::CallOptions]
1286
1780
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1287
1781
  #
1288
1782
  # @yield [result, operation] Access the result along with the TransportOperation object
1289
- # @yieldparam result [::Google::Cloud::ArtifactRegistry::V1::ProjectSettings]
1783
+ # @yieldparam result [::Google::Cloud::ArtifactRegistry::V1::ListAttachmentsResponse]
1290
1784
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
1291
1785
  #
1292
- # @return [::Google::Cloud::ArtifactRegistry::V1::ProjectSettings]
1786
+ # @return [::Google::Cloud::ArtifactRegistry::V1::ListAttachmentsResponse]
1293
1787
  # A result object deserialized from the server's reply
1294
- def get_project_settings request_pb, options = nil
1788
+ def list_attachments request_pb, options = nil
1295
1789
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
1296
1790
 
1297
- verb, uri, query_string_params, body = ServiceStub.transcode_get_project_settings_request request_pb
1791
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_attachments_request request_pb
1298
1792
  query_string_params = if query_string_params.any?
1299
1793
  query_string_params.to_h { |p| p.split "=", 2 }
1300
1794
  else
@@ -1309,30 +1803,30 @@ module Google
1309
1803
  options: options
1310
1804
  )
1311
1805
  operation = ::Gapic::Rest::TransportOperation.new response
1312
- result = ::Google::Cloud::ArtifactRegistry::V1::ProjectSettings.decode_json response.body, ignore_unknown_fields: true
1806
+ result = ::Google::Cloud::ArtifactRegistry::V1::ListAttachmentsResponse.decode_json response.body, ignore_unknown_fields: true
1313
1807
 
1314
1808
  yield result, operation if block_given?
1315
1809
  result
1316
1810
  end
1317
1811
 
1318
1812
  ##
1319
- # Baseline implementation for the update_project_settings REST call
1813
+ # Baseline implementation for the get_attachment REST call
1320
1814
  #
1321
- # @param request_pb [::Google::Cloud::ArtifactRegistry::V1::UpdateProjectSettingsRequest]
1815
+ # @param request_pb [::Google::Cloud::ArtifactRegistry::V1::GetAttachmentRequest]
1322
1816
  # A request object representing the call parameters. Required.
1323
1817
  # @param options [::Gapic::CallOptions]
1324
1818
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1325
1819
  #
1326
1820
  # @yield [result, operation] Access the result along with the TransportOperation object
1327
- # @yieldparam result [::Google::Cloud::ArtifactRegistry::V1::ProjectSettings]
1821
+ # @yieldparam result [::Google::Cloud::ArtifactRegistry::V1::Attachment]
1328
1822
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
1329
1823
  #
1330
- # @return [::Google::Cloud::ArtifactRegistry::V1::ProjectSettings]
1824
+ # @return [::Google::Cloud::ArtifactRegistry::V1::Attachment]
1331
1825
  # A result object deserialized from the server's reply
1332
- def update_project_settings request_pb, options = nil
1826
+ def get_attachment request_pb, options = nil
1333
1827
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
1334
1828
 
1335
- verb, uri, query_string_params, body = ServiceStub.transcode_update_project_settings_request request_pb
1829
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_attachment_request request_pb
1336
1830
  query_string_params = if query_string_params.any?
1337
1831
  query_string_params.to_h { |p| p.split "=", 2 }
1338
1832
  else
@@ -1347,30 +1841,30 @@ module Google
1347
1841
  options: options
1348
1842
  )
1349
1843
  operation = ::Gapic::Rest::TransportOperation.new response
1350
- result = ::Google::Cloud::ArtifactRegistry::V1::ProjectSettings.decode_json response.body, ignore_unknown_fields: true
1844
+ result = ::Google::Cloud::ArtifactRegistry::V1::Attachment.decode_json response.body, ignore_unknown_fields: true
1351
1845
 
1352
1846
  yield result, operation if block_given?
1353
1847
  result
1354
1848
  end
1355
1849
 
1356
1850
  ##
1357
- # Baseline implementation for the get_vpcsc_config REST call
1851
+ # Baseline implementation for the create_attachment REST call
1358
1852
  #
1359
- # @param request_pb [::Google::Cloud::ArtifactRegistry::V1::GetVPCSCConfigRequest]
1853
+ # @param request_pb [::Google::Cloud::ArtifactRegistry::V1::CreateAttachmentRequest]
1360
1854
  # A request object representing the call parameters. Required.
1361
1855
  # @param options [::Gapic::CallOptions]
1362
1856
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1363
1857
  #
1364
1858
  # @yield [result, operation] Access the result along with the TransportOperation object
1365
- # @yieldparam result [::Google::Cloud::ArtifactRegistry::V1::VPCSCConfig]
1859
+ # @yieldparam result [::Google::Longrunning::Operation]
1366
1860
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
1367
1861
  #
1368
- # @return [::Google::Cloud::ArtifactRegistry::V1::VPCSCConfig]
1862
+ # @return [::Google::Longrunning::Operation]
1369
1863
  # A result object deserialized from the server's reply
1370
- def get_vpcsc_config request_pb, options = nil
1864
+ def create_attachment request_pb, options = nil
1371
1865
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
1372
1866
 
1373
- verb, uri, query_string_params, body = ServiceStub.transcode_get_vpcsc_config_request request_pb
1867
+ verb, uri, query_string_params, body = ServiceStub.transcode_create_attachment_request request_pb
1374
1868
  query_string_params = if query_string_params.any?
1375
1869
  query_string_params.to_h { |p| p.split "=", 2 }
1376
1870
  else
@@ -1385,30 +1879,30 @@ module Google
1385
1879
  options: options
1386
1880
  )
1387
1881
  operation = ::Gapic::Rest::TransportOperation.new response
1388
- result = ::Google::Cloud::ArtifactRegistry::V1::VPCSCConfig.decode_json response.body, ignore_unknown_fields: true
1882
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
1389
1883
 
1390
1884
  yield result, operation if block_given?
1391
1885
  result
1392
1886
  end
1393
1887
 
1394
1888
  ##
1395
- # Baseline implementation for the update_vpcsc_config REST call
1889
+ # Baseline implementation for the delete_attachment REST call
1396
1890
  #
1397
- # @param request_pb [::Google::Cloud::ArtifactRegistry::V1::UpdateVPCSCConfigRequest]
1891
+ # @param request_pb [::Google::Cloud::ArtifactRegistry::V1::DeleteAttachmentRequest]
1398
1892
  # A request object representing the call parameters. Required.
1399
1893
  # @param options [::Gapic::CallOptions]
1400
1894
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1401
1895
  #
1402
1896
  # @yield [result, operation] Access the result along with the TransportOperation object
1403
- # @yieldparam result [::Google::Cloud::ArtifactRegistry::V1::VPCSCConfig]
1897
+ # @yieldparam result [::Google::Longrunning::Operation]
1404
1898
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
1405
1899
  #
1406
- # @return [::Google::Cloud::ArtifactRegistry::V1::VPCSCConfig]
1900
+ # @return [::Google::Longrunning::Operation]
1407
1901
  # A result object deserialized from the server's reply
1408
- def update_vpcsc_config request_pb, options = nil
1902
+ def delete_attachment request_pb, options = nil
1409
1903
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
1410
1904
 
1411
- verb, uri, query_string_params, body = ServiceStub.transcode_update_vpcsc_config_request request_pb
1905
+ verb, uri, query_string_params, body = ServiceStub.transcode_delete_attachment_request request_pb
1412
1906
  query_string_params = if query_string_params.any?
1413
1907
  query_string_params.to_h { |p| p.split "=", 2 }
1414
1908
  else
@@ -1423,7 +1917,7 @@ module Google
1423
1917
  options: options
1424
1918
  )
1425
1919
  operation = ::Gapic::Rest::TransportOperation.new response
1426
- result = ::Google::Cloud::ArtifactRegistry::V1::VPCSCConfig.decode_json response.body, ignore_unknown_fields: true
1920
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
1427
1921
 
1428
1922
  yield result, operation if block_given?
1429
1923
  result
@@ -1896,6 +2390,28 @@ module Google
1896
2390
  transcoder.transcode request_pb
1897
2391
  end
1898
2392
 
2393
+ ##
2394
+ # @private
2395
+ #
2396
+ # GRPC transcoding helper method for the update_version REST call
2397
+ #
2398
+ # @param request_pb [::Google::Cloud::ArtifactRegistry::V1::UpdateVersionRequest]
2399
+ # A request object representing the call parameters. Required.
2400
+ # @return [Array(String, [String, nil], Hash{String => String})]
2401
+ # Uri, Body, Query string parameters
2402
+ def self.transcode_update_version_request request_pb
2403
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2404
+ .with_bindings(
2405
+ uri_method: :patch,
2406
+ uri_template: "/v1/{version.name}",
2407
+ body: "version",
2408
+ matches: [
2409
+ ["version.name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/packages/[^/]+/versions/[^/]+/?$}, false]
2410
+ ]
2411
+ )
2412
+ transcoder.transcode request_pb
2413
+ end
2414
+
1899
2415
  ##
1900
2416
  # @private
1901
2417
  #
@@ -1938,6 +2454,49 @@ module Google
1938
2454
  transcoder.transcode request_pb
1939
2455
  end
1940
2456
 
2457
+ ##
2458
+ # @private
2459
+ #
2460
+ # GRPC transcoding helper method for the delete_file REST call
2461
+ #
2462
+ # @param request_pb [::Google::Cloud::ArtifactRegistry::V1::DeleteFileRequest]
2463
+ # A request object representing the call parameters. Required.
2464
+ # @return [Array(String, [String, nil], Hash{String => String})]
2465
+ # Uri, Body, Query string parameters
2466
+ def self.transcode_delete_file_request request_pb
2467
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2468
+ .with_bindings(
2469
+ uri_method: :delete,
2470
+ uri_template: "/v1/{name}",
2471
+ matches: [
2472
+ ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/files/[^/]+/?$}, false]
2473
+ ]
2474
+ )
2475
+ transcoder.transcode request_pb
2476
+ end
2477
+
2478
+ ##
2479
+ # @private
2480
+ #
2481
+ # GRPC transcoding helper method for the update_file REST call
2482
+ #
2483
+ # @param request_pb [::Google::Cloud::ArtifactRegistry::V1::UpdateFileRequest]
2484
+ # A request object representing the call parameters. Required.
2485
+ # @return [Array(String, [String, nil], Hash{String => String})]
2486
+ # Uri, Body, Query string parameters
2487
+ def self.transcode_update_file_request request_pb
2488
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2489
+ .with_bindings(
2490
+ uri_method: :patch,
2491
+ uri_template: "/v1/{file.name}",
2492
+ body: "file",
2493
+ matches: [
2494
+ ["file.name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/files/[^/]+/?$}, false]
2495
+ ]
2496
+ )
2497
+ transcoder.transcode request_pb
2498
+ end
2499
+
1941
2500
  ##
1942
2501
  # @private
1943
2502
  #
@@ -2045,6 +2604,113 @@ module Google
2045
2604
  transcoder.transcode request_pb
2046
2605
  end
2047
2606
 
2607
+ ##
2608
+ # @private
2609
+ #
2610
+ # GRPC transcoding helper method for the create_rule REST call
2611
+ #
2612
+ # @param request_pb [::Google::Cloud::ArtifactRegistry::V1::CreateRuleRequest]
2613
+ # A request object representing the call parameters. Required.
2614
+ # @return [Array(String, [String, nil], Hash{String => String})]
2615
+ # Uri, Body, Query string parameters
2616
+ def self.transcode_create_rule_request request_pb
2617
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2618
+ .with_bindings(
2619
+ uri_method: :post,
2620
+ uri_template: "/v1/{parent}/rules",
2621
+ body: "rule",
2622
+ matches: [
2623
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false]
2624
+ ]
2625
+ )
2626
+ transcoder.transcode request_pb
2627
+ end
2628
+
2629
+ ##
2630
+ # @private
2631
+ #
2632
+ # GRPC transcoding helper method for the list_rules REST call
2633
+ #
2634
+ # @param request_pb [::Google::Cloud::ArtifactRegistry::V1::ListRulesRequest]
2635
+ # A request object representing the call parameters. Required.
2636
+ # @return [Array(String, [String, nil], Hash{String => String})]
2637
+ # Uri, Body, Query string parameters
2638
+ def self.transcode_list_rules_request request_pb
2639
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2640
+ .with_bindings(
2641
+ uri_method: :get,
2642
+ uri_template: "/v1/{parent}/rules",
2643
+ matches: [
2644
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false]
2645
+ ]
2646
+ )
2647
+ transcoder.transcode request_pb
2648
+ end
2649
+
2650
+ ##
2651
+ # @private
2652
+ #
2653
+ # GRPC transcoding helper method for the get_rule REST call
2654
+ #
2655
+ # @param request_pb [::Google::Cloud::ArtifactRegistry::V1::GetRuleRequest]
2656
+ # A request object representing the call parameters. Required.
2657
+ # @return [Array(String, [String, nil], Hash{String => String})]
2658
+ # Uri, Body, Query string parameters
2659
+ def self.transcode_get_rule_request request_pb
2660
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2661
+ .with_bindings(
2662
+ uri_method: :get,
2663
+ uri_template: "/v1/{name}",
2664
+ matches: [
2665
+ ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/rules/[^/]+/?$}, false]
2666
+ ]
2667
+ )
2668
+ transcoder.transcode request_pb
2669
+ end
2670
+
2671
+ ##
2672
+ # @private
2673
+ #
2674
+ # GRPC transcoding helper method for the update_rule REST call
2675
+ #
2676
+ # @param request_pb [::Google::Cloud::ArtifactRegistry::V1::UpdateRuleRequest]
2677
+ # A request object representing the call parameters. Required.
2678
+ # @return [Array(String, [String, nil], Hash{String => String})]
2679
+ # Uri, Body, Query string parameters
2680
+ def self.transcode_update_rule_request request_pb
2681
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2682
+ .with_bindings(
2683
+ uri_method: :patch,
2684
+ uri_template: "/v1/{rule.name}",
2685
+ body: "rule",
2686
+ matches: [
2687
+ ["rule.name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/rules/[^/]+/?$}, false]
2688
+ ]
2689
+ )
2690
+ transcoder.transcode request_pb
2691
+ end
2692
+
2693
+ ##
2694
+ # @private
2695
+ #
2696
+ # GRPC transcoding helper method for the delete_rule REST call
2697
+ #
2698
+ # @param request_pb [::Google::Cloud::ArtifactRegistry::V1::DeleteRuleRequest]
2699
+ # A request object representing the call parameters. Required.
2700
+ # @return [Array(String, [String, nil], Hash{String => String})]
2701
+ # Uri, Body, Query string parameters
2702
+ def self.transcode_delete_rule_request request_pb
2703
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2704
+ .with_bindings(
2705
+ uri_method: :delete,
2706
+ uri_template: "/v1/{name}",
2707
+ matches: [
2708
+ ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/rules/[^/]+/?$}, false]
2709
+ ]
2710
+ )
2711
+ transcoder.transcode request_pb
2712
+ end
2713
+
2048
2714
  ##
2049
2715
  # @private
2050
2716
  #
@@ -2195,6 +2861,113 @@ module Google
2195
2861
  )
2196
2862
  transcoder.transcode request_pb
2197
2863
  end
2864
+
2865
+ ##
2866
+ # @private
2867
+ #
2868
+ # GRPC transcoding helper method for the update_package REST call
2869
+ #
2870
+ # @param request_pb [::Google::Cloud::ArtifactRegistry::V1::UpdatePackageRequest]
2871
+ # A request object representing the call parameters. Required.
2872
+ # @return [Array(String, [String, nil], Hash{String => String})]
2873
+ # Uri, Body, Query string parameters
2874
+ def self.transcode_update_package_request request_pb
2875
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2876
+ .with_bindings(
2877
+ uri_method: :patch,
2878
+ uri_template: "/v1/{package.name}",
2879
+ body: "package",
2880
+ matches: [
2881
+ ["package.name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/packages/[^/]+/?$}, false]
2882
+ ]
2883
+ )
2884
+ transcoder.transcode request_pb
2885
+ end
2886
+
2887
+ ##
2888
+ # @private
2889
+ #
2890
+ # GRPC transcoding helper method for the list_attachments REST call
2891
+ #
2892
+ # @param request_pb [::Google::Cloud::ArtifactRegistry::V1::ListAttachmentsRequest]
2893
+ # A request object representing the call parameters. Required.
2894
+ # @return [Array(String, [String, nil], Hash{String => String})]
2895
+ # Uri, Body, Query string parameters
2896
+ def self.transcode_list_attachments_request request_pb
2897
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2898
+ .with_bindings(
2899
+ uri_method: :get,
2900
+ uri_template: "/v1/{parent}/attachments",
2901
+ matches: [
2902
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false]
2903
+ ]
2904
+ )
2905
+ transcoder.transcode request_pb
2906
+ end
2907
+
2908
+ ##
2909
+ # @private
2910
+ #
2911
+ # GRPC transcoding helper method for the get_attachment REST call
2912
+ #
2913
+ # @param request_pb [::Google::Cloud::ArtifactRegistry::V1::GetAttachmentRequest]
2914
+ # A request object representing the call parameters. Required.
2915
+ # @return [Array(String, [String, nil], Hash{String => String})]
2916
+ # Uri, Body, Query string parameters
2917
+ def self.transcode_get_attachment_request request_pb
2918
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2919
+ .with_bindings(
2920
+ uri_method: :get,
2921
+ uri_template: "/v1/{name}",
2922
+ matches: [
2923
+ ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/attachments/[^/]+/?$}, false]
2924
+ ]
2925
+ )
2926
+ transcoder.transcode request_pb
2927
+ end
2928
+
2929
+ ##
2930
+ # @private
2931
+ #
2932
+ # GRPC transcoding helper method for the create_attachment REST call
2933
+ #
2934
+ # @param request_pb [::Google::Cloud::ArtifactRegistry::V1::CreateAttachmentRequest]
2935
+ # A request object representing the call parameters. Required.
2936
+ # @return [Array(String, [String, nil], Hash{String => String})]
2937
+ # Uri, Body, Query string parameters
2938
+ def self.transcode_create_attachment_request request_pb
2939
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2940
+ .with_bindings(
2941
+ uri_method: :post,
2942
+ uri_template: "/v1/{parent}/attachments",
2943
+ body: "attachment",
2944
+ matches: [
2945
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false]
2946
+ ]
2947
+ )
2948
+ transcoder.transcode request_pb
2949
+ end
2950
+
2951
+ ##
2952
+ # @private
2953
+ #
2954
+ # GRPC transcoding helper method for the delete_attachment REST call
2955
+ #
2956
+ # @param request_pb [::Google::Cloud::ArtifactRegistry::V1::DeleteAttachmentRequest]
2957
+ # A request object representing the call parameters. Required.
2958
+ # @return [Array(String, [String, nil], Hash{String => String})]
2959
+ # Uri, Body, Query string parameters
2960
+ def self.transcode_delete_attachment_request request_pb
2961
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2962
+ .with_bindings(
2963
+ uri_method: :delete,
2964
+ uri_template: "/v1/{name}",
2965
+ matches: [
2966
+ ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/attachments/[^/]+/?$}, false]
2967
+ ]
2968
+ )
2969
+ transcoder.transcode request_pb
2970
+ end
2198
2971
  end
2199
2972
  end
2200
2973
  end