google-cloud-artifact_registry-v1 0.9.1 → 0.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: feb730eb4af973c3c6596bed1e21f7f70128b614b2adaa8501cf28dfd88cbe26
4
- data.tar.gz: d49d0ef43352bb608de981753aa887cc482c22348ee87f769accbe4e52c68ac4
3
+ metadata.gz: 3ada82e995d1c8d943e4e5a74b14308a56cc16485f8dfb800ef3b2b5fdafd6bd
4
+ data.tar.gz: 2b922ae6b381d2ba289fdcc890f5cc428240d4453a628d0895ea98ba060e6e30
5
5
  SHA512:
6
- metadata.gz: 4b99d907f47338225c5758bff34009fc23986de83df289f677d539b6d27476eb863352a73ea0bf800d9bff948b0f26f7939ce3e74bb6be1b2d42db8aec0bad87
7
- data.tar.gz: 74e088970b27fb7091d80880fa4ea8855a1b9bd3486391ecb6632ecf88b9491171a6a0f3fa4a7d3d240c62b897b0f358a8dfa4ef4b8bdd8ba044debf0e32a1b2
6
+ metadata.gz: 792301df7eced5ce8ad7805889114f7851146ca1959655834aa6e381a8891acaa072aeae5d4c00c81afa163b60202756080c8fb719951423f553e0d42c5ac605
7
+ data.tar.gz: 7822a2e5c77fa5ffd9e382bc7a075ecbbeaf96b0bd60f4b3cfc1695593fcd8e51a4f7aea09044952c427ef7d08ad444196823481f2a2bac7b67c7baf8747dc7f
@@ -165,7 +165,8 @@ module Google
165
165
  credentials: credentials,
166
166
  endpoint: @config.endpoint,
167
167
  channel_args: @config.channel_args,
168
- interceptors: @config.interceptors
168
+ interceptors: @config.interceptors,
169
+ channel_pool_config: @config.channel_pool
169
170
  )
170
171
  end
171
172
 
@@ -3506,6 +3507,14 @@ module Google
3506
3507
  end
3507
3508
  end
3508
3509
 
3510
+ ##
3511
+ # Configuration for the channel pool
3512
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
3513
+ #
3514
+ def channel_pool
3515
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
3516
+ end
3517
+
3509
3518
  ##
3510
3519
  # Configuration RPC class for the ArtifactRegistry API.
3511
3520
  #
@@ -93,7 +93,8 @@ module Google
93
93
  credentials: credentials,
94
94
  endpoint: @config.endpoint,
95
95
  channel_args: @config.channel_args,
96
- interceptors: @config.interceptors
96
+ interceptors: @config.interceptors,
97
+ channel_pool_config: @config.channel_pool
97
98
  )
98
99
 
99
100
  # Used by an LRO wrapper for some methods of this service
@@ -701,6 +702,14 @@ module Google
701
702
  end
702
703
  end
703
704
 
705
+ ##
706
+ # Configuration for the channel pool
707
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
708
+ #
709
+ def channel_pool
710
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
711
+ end
712
+
704
713
  ##
705
714
  # Configuration RPC class for the Operations API.
706
715
  #
@@ -211,6 +211,26 @@ module Google
211
211
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::ArtifactRegistry::V1::DockerImage>]
212
212
  #
213
213
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
214
+ #
215
+ # @example Basic example
216
+ # require "google/cloud/artifact_registry/v1"
217
+ #
218
+ # # Create a client object. The client can be reused for multiple calls.
219
+ # client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Rest::Client.new
220
+ #
221
+ # # Create a request. To set request fields, pass in keyword arguments.
222
+ # request = Google::Cloud::ArtifactRegistry::V1::ListDockerImagesRequest.new
223
+ #
224
+ # # Call the list_docker_images method.
225
+ # result = client.list_docker_images request
226
+ #
227
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
228
+ # # over elements, and API calls will be issued to fetch pages as needed.
229
+ # result.each do |item|
230
+ # # Each element is of type ::Google::Cloud::ArtifactRegistry::V1::DockerImage.
231
+ # p item
232
+ # end
233
+ #
214
234
  def list_docker_images request, options = nil
215
235
  raise ::ArgumentError, "request must be provided" if request.nil?
216
236
 
@@ -274,6 +294,22 @@ module Google
274
294
  # @return [::Google::Cloud::ArtifactRegistry::V1::DockerImage]
275
295
  #
276
296
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
297
+ #
298
+ # @example Basic example
299
+ # require "google/cloud/artifact_registry/v1"
300
+ #
301
+ # # Create a client object. The client can be reused for multiple calls.
302
+ # client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Rest::Client.new
303
+ #
304
+ # # Create a request. To set request fields, pass in keyword arguments.
305
+ # request = Google::Cloud::ArtifactRegistry::V1::GetDockerImageRequest.new
306
+ #
307
+ # # Call the get_docker_image method.
308
+ # result = client.get_docker_image request
309
+ #
310
+ # # The returned object is of type Google::Cloud::ArtifactRegistry::V1::DockerImage.
311
+ # p result
312
+ #
277
313
  def get_docker_image request, options = nil
278
314
  raise ::ArgumentError, "request must be provided" if request.nil?
279
315
 
@@ -341,6 +377,26 @@ module Google
341
377
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::ArtifactRegistry::V1::MavenArtifact>]
342
378
  #
343
379
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
380
+ #
381
+ # @example Basic example
382
+ # require "google/cloud/artifact_registry/v1"
383
+ #
384
+ # # Create a client object. The client can be reused for multiple calls.
385
+ # client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Rest::Client.new
386
+ #
387
+ # # Create a request. To set request fields, pass in keyword arguments.
388
+ # request = Google::Cloud::ArtifactRegistry::V1::ListMavenArtifactsRequest.new
389
+ #
390
+ # # Call the list_maven_artifacts method.
391
+ # result = client.list_maven_artifacts request
392
+ #
393
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
394
+ # # over elements, and API calls will be issued to fetch pages as needed.
395
+ # result.each do |item|
396
+ # # Each element is of type ::Google::Cloud::ArtifactRegistry::V1::MavenArtifact.
397
+ # p item
398
+ # end
399
+ #
344
400
  def list_maven_artifacts request, options = nil
345
401
  raise ::ArgumentError, "request must be provided" if request.nil?
346
402
 
@@ -404,6 +460,22 @@ module Google
404
460
  # @return [::Google::Cloud::ArtifactRegistry::V1::MavenArtifact]
405
461
  #
406
462
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
463
+ #
464
+ # @example Basic example
465
+ # require "google/cloud/artifact_registry/v1"
466
+ #
467
+ # # Create a client object. The client can be reused for multiple calls.
468
+ # client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Rest::Client.new
469
+ #
470
+ # # Create a request. To set request fields, pass in keyword arguments.
471
+ # request = Google::Cloud::ArtifactRegistry::V1::GetMavenArtifactRequest.new
472
+ #
473
+ # # Call the get_maven_artifact method.
474
+ # result = client.get_maven_artifact request
475
+ #
476
+ # # The returned object is of type Google::Cloud::ArtifactRegistry::V1::MavenArtifact.
477
+ # p result
478
+ #
407
479
  def get_maven_artifact request, options = nil
408
480
  raise ::ArgumentError, "request must be provided" if request.nil?
409
481
 
@@ -471,6 +543,26 @@ module Google
471
543
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::ArtifactRegistry::V1::NpmPackage>]
472
544
  #
473
545
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
546
+ #
547
+ # @example Basic example
548
+ # require "google/cloud/artifact_registry/v1"
549
+ #
550
+ # # Create a client object. The client can be reused for multiple calls.
551
+ # client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Rest::Client.new
552
+ #
553
+ # # Create a request. To set request fields, pass in keyword arguments.
554
+ # request = Google::Cloud::ArtifactRegistry::V1::ListNpmPackagesRequest.new
555
+ #
556
+ # # Call the list_npm_packages method.
557
+ # result = client.list_npm_packages request
558
+ #
559
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
560
+ # # over elements, and API calls will be issued to fetch pages as needed.
561
+ # result.each do |item|
562
+ # # Each element is of type ::Google::Cloud::ArtifactRegistry::V1::NpmPackage.
563
+ # p item
564
+ # end
565
+ #
474
566
  def list_npm_packages request, options = nil
475
567
  raise ::ArgumentError, "request must be provided" if request.nil?
476
568
 
@@ -534,6 +626,22 @@ module Google
534
626
  # @return [::Google::Cloud::ArtifactRegistry::V1::NpmPackage]
535
627
  #
536
628
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
629
+ #
630
+ # @example Basic example
631
+ # require "google/cloud/artifact_registry/v1"
632
+ #
633
+ # # Create a client object. The client can be reused for multiple calls.
634
+ # client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Rest::Client.new
635
+ #
636
+ # # Create a request. To set request fields, pass in keyword arguments.
637
+ # request = Google::Cloud::ArtifactRegistry::V1::GetNpmPackageRequest.new
638
+ #
639
+ # # Call the get_npm_package method.
640
+ # result = client.get_npm_package request
641
+ #
642
+ # # The returned object is of type Google::Cloud::ArtifactRegistry::V1::NpmPackage.
643
+ # p result
644
+ #
537
645
  def get_npm_package request, options = nil
538
646
  raise ::ArgumentError, "request must be provided" if request.nil?
539
647
 
@@ -601,6 +709,26 @@ module Google
601
709
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::ArtifactRegistry::V1::PythonPackage>]
602
710
  #
603
711
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
712
+ #
713
+ # @example Basic example
714
+ # require "google/cloud/artifact_registry/v1"
715
+ #
716
+ # # Create a client object. The client can be reused for multiple calls.
717
+ # client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Rest::Client.new
718
+ #
719
+ # # Create a request. To set request fields, pass in keyword arguments.
720
+ # request = Google::Cloud::ArtifactRegistry::V1::ListPythonPackagesRequest.new
721
+ #
722
+ # # Call the list_python_packages method.
723
+ # result = client.list_python_packages request
724
+ #
725
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
726
+ # # over elements, and API calls will be issued to fetch pages as needed.
727
+ # result.each do |item|
728
+ # # Each element is of type ::Google::Cloud::ArtifactRegistry::V1::PythonPackage.
729
+ # p item
730
+ # end
731
+ #
604
732
  def list_python_packages request, options = nil
605
733
  raise ::ArgumentError, "request must be provided" if request.nil?
606
734
 
@@ -664,6 +792,22 @@ module Google
664
792
  # @return [::Google::Cloud::ArtifactRegistry::V1::PythonPackage]
665
793
  #
666
794
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
795
+ #
796
+ # @example Basic example
797
+ # require "google/cloud/artifact_registry/v1"
798
+ #
799
+ # # Create a client object. The client can be reused for multiple calls.
800
+ # client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Rest::Client.new
801
+ #
802
+ # # Create a request. To set request fields, pass in keyword arguments.
803
+ # request = Google::Cloud::ArtifactRegistry::V1::GetPythonPackageRequest.new
804
+ #
805
+ # # Call the get_python_package method.
806
+ # result = client.get_python_package request
807
+ #
808
+ # # The returned object is of type Google::Cloud::ArtifactRegistry::V1::PythonPackage.
809
+ # p result
810
+ #
667
811
  def get_python_package request, options = nil
668
812
  raise ::ArgumentError, "request must be provided" if request.nil?
669
813
 
@@ -731,6 +875,29 @@ module Google
731
875
  # @return [::Gapic::Operation]
732
876
  #
733
877
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
878
+ #
879
+ # @example Basic example
880
+ # require "google/cloud/artifact_registry/v1"
881
+ #
882
+ # # Create a client object. The client can be reused for multiple calls.
883
+ # client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Rest::Client.new
884
+ #
885
+ # # Create a request. To set request fields, pass in keyword arguments.
886
+ # request = Google::Cloud::ArtifactRegistry::V1::ImportAptArtifactsRequest.new
887
+ #
888
+ # # Call the import_apt_artifacts method.
889
+ # result = client.import_apt_artifacts request
890
+ #
891
+ # # The returned object is of type Gapic::Operation. You can use it to
892
+ # # check the status of an operation, cancel it, or wait for results.
893
+ # # Here is how to wait for a response.
894
+ # result.wait_until_done! timeout: 60
895
+ # if result.response?
896
+ # p result.response
897
+ # else
898
+ # puts "No response received."
899
+ # end
900
+ #
734
901
  def import_apt_artifacts request, options = nil
735
902
  raise ::ArgumentError, "request must be provided" if request.nil?
736
903
 
@@ -799,6 +966,29 @@ module Google
799
966
  # @return [::Gapic::Operation]
800
967
  #
801
968
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
969
+ #
970
+ # @example Basic example
971
+ # require "google/cloud/artifact_registry/v1"
972
+ #
973
+ # # Create a client object. The client can be reused for multiple calls.
974
+ # client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Rest::Client.new
975
+ #
976
+ # # Create a request. To set request fields, pass in keyword arguments.
977
+ # request = Google::Cloud::ArtifactRegistry::V1::ImportYumArtifactsRequest.new
978
+ #
979
+ # # Call the import_yum_artifacts method.
980
+ # result = client.import_yum_artifacts request
981
+ #
982
+ # # The returned object is of type Gapic::Operation. You can use it to
983
+ # # check the status of an operation, cancel it, or wait for results.
984
+ # # Here is how to wait for a response.
985
+ # result.wait_until_done! timeout: 60
986
+ # if result.response?
987
+ # p result.response
988
+ # else
989
+ # puts "No response received."
990
+ # end
991
+ #
802
992
  def import_yum_artifacts request, options = nil
803
993
  raise ::ArgumentError, "request must be provided" if request.nil?
804
994
 
@@ -866,6 +1056,26 @@ module Google
866
1056
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::ArtifactRegistry::V1::Repository>]
867
1057
  #
868
1058
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1059
+ #
1060
+ # @example Basic example
1061
+ # require "google/cloud/artifact_registry/v1"
1062
+ #
1063
+ # # Create a client object. The client can be reused for multiple calls.
1064
+ # client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Rest::Client.new
1065
+ #
1066
+ # # Create a request. To set request fields, pass in keyword arguments.
1067
+ # request = Google::Cloud::ArtifactRegistry::V1::ListRepositoriesRequest.new
1068
+ #
1069
+ # # Call the list_repositories method.
1070
+ # result = client.list_repositories request
1071
+ #
1072
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1073
+ # # over elements, and API calls will be issued to fetch pages as needed.
1074
+ # result.each do |item|
1075
+ # # Each element is of type ::Google::Cloud::ArtifactRegistry::V1::Repository.
1076
+ # p item
1077
+ # end
1078
+ #
869
1079
  def list_repositories request, options = nil
870
1080
  raise ::ArgumentError, "request must be provided" if request.nil?
871
1081
 
@@ -929,6 +1139,22 @@ module Google
929
1139
  # @return [::Google::Cloud::ArtifactRegistry::V1::Repository]
930
1140
  #
931
1141
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1142
+ #
1143
+ # @example Basic example
1144
+ # require "google/cloud/artifact_registry/v1"
1145
+ #
1146
+ # # Create a client object. The client can be reused for multiple calls.
1147
+ # client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Rest::Client.new
1148
+ #
1149
+ # # Create a request. To set request fields, pass in keyword arguments.
1150
+ # request = Google::Cloud::ArtifactRegistry::V1::GetRepositoryRequest.new
1151
+ #
1152
+ # # Call the get_repository method.
1153
+ # result = client.get_repository request
1154
+ #
1155
+ # # The returned object is of type Google::Cloud::ArtifactRegistry::V1::Repository.
1156
+ # p result
1157
+ #
932
1158
  def get_repository request, options = nil
933
1159
  raise ::ArgumentError, "request must be provided" if request.nil?
934
1160
 
@@ -996,6 +1222,29 @@ module Google
996
1222
  # @return [::Gapic::Operation]
997
1223
  #
998
1224
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1225
+ #
1226
+ # @example Basic example
1227
+ # require "google/cloud/artifact_registry/v1"
1228
+ #
1229
+ # # Create a client object. The client can be reused for multiple calls.
1230
+ # client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Rest::Client.new
1231
+ #
1232
+ # # Create a request. To set request fields, pass in keyword arguments.
1233
+ # request = Google::Cloud::ArtifactRegistry::V1::CreateRepositoryRequest.new
1234
+ #
1235
+ # # Call the create_repository method.
1236
+ # result = client.create_repository request
1237
+ #
1238
+ # # The returned object is of type Gapic::Operation. You can use it to
1239
+ # # check the status of an operation, cancel it, or wait for results.
1240
+ # # Here is how to wait for a response.
1241
+ # result.wait_until_done! timeout: 60
1242
+ # if result.response?
1243
+ # p result.response
1244
+ # else
1245
+ # puts "No response received."
1246
+ # end
1247
+ #
999
1248
  def create_repository request, options = nil
1000
1249
  raise ::ArgumentError, "request must be provided" if request.nil?
1001
1250
 
@@ -1063,6 +1312,22 @@ module Google
1063
1312
  # @return [::Google::Cloud::ArtifactRegistry::V1::Repository]
1064
1313
  #
1065
1314
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1315
+ #
1316
+ # @example Basic example
1317
+ # require "google/cloud/artifact_registry/v1"
1318
+ #
1319
+ # # Create a client object. The client can be reused for multiple calls.
1320
+ # client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Rest::Client.new
1321
+ #
1322
+ # # Create a request. To set request fields, pass in keyword arguments.
1323
+ # request = Google::Cloud::ArtifactRegistry::V1::UpdateRepositoryRequest.new
1324
+ #
1325
+ # # Call the update_repository method.
1326
+ # result = client.update_repository request
1327
+ #
1328
+ # # The returned object is of type Google::Cloud::ArtifactRegistry::V1::Repository.
1329
+ # p result
1330
+ #
1066
1331
  def update_repository request, options = nil
1067
1332
  raise ::ArgumentError, "request must be provided" if request.nil?
1068
1333
 
@@ -1127,6 +1392,29 @@ module Google
1127
1392
  # @return [::Gapic::Operation]
1128
1393
  #
1129
1394
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1395
+ #
1396
+ # @example Basic example
1397
+ # require "google/cloud/artifact_registry/v1"
1398
+ #
1399
+ # # Create a client object. The client can be reused for multiple calls.
1400
+ # client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Rest::Client.new
1401
+ #
1402
+ # # Create a request. To set request fields, pass in keyword arguments.
1403
+ # request = Google::Cloud::ArtifactRegistry::V1::DeleteRepositoryRequest.new
1404
+ #
1405
+ # # Call the delete_repository method.
1406
+ # result = client.delete_repository request
1407
+ #
1408
+ # # The returned object is of type Gapic::Operation. You can use it to
1409
+ # # check the status of an operation, cancel it, or wait for results.
1410
+ # # Here is how to wait for a response.
1411
+ # result.wait_until_done! timeout: 60
1412
+ # if result.response?
1413
+ # p result.response
1414
+ # else
1415
+ # puts "No response received."
1416
+ # end
1417
+ #
1130
1418
  def delete_repository request, options = nil
1131
1419
  raise ::ArgumentError, "request must be provided" if request.nil?
1132
1420
 
@@ -1194,6 +1482,26 @@ module Google
1194
1482
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::ArtifactRegistry::V1::Package>]
1195
1483
  #
1196
1484
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1485
+ #
1486
+ # @example Basic example
1487
+ # require "google/cloud/artifact_registry/v1"
1488
+ #
1489
+ # # Create a client object. The client can be reused for multiple calls.
1490
+ # client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Rest::Client.new
1491
+ #
1492
+ # # Create a request. To set request fields, pass in keyword arguments.
1493
+ # request = Google::Cloud::ArtifactRegistry::V1::ListPackagesRequest.new
1494
+ #
1495
+ # # Call the list_packages method.
1496
+ # result = client.list_packages request
1497
+ #
1498
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1499
+ # # over elements, and API calls will be issued to fetch pages as needed.
1500
+ # result.each do |item|
1501
+ # # Each element is of type ::Google::Cloud::ArtifactRegistry::V1::Package.
1502
+ # p item
1503
+ # end
1504
+ #
1197
1505
  def list_packages request, options = nil
1198
1506
  raise ::ArgumentError, "request must be provided" if request.nil?
1199
1507
 
@@ -1257,6 +1565,22 @@ module Google
1257
1565
  # @return [::Google::Cloud::ArtifactRegistry::V1::Package]
1258
1566
  #
1259
1567
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1568
+ #
1569
+ # @example Basic example
1570
+ # require "google/cloud/artifact_registry/v1"
1571
+ #
1572
+ # # Create a client object. The client can be reused for multiple calls.
1573
+ # client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Rest::Client.new
1574
+ #
1575
+ # # Create a request. To set request fields, pass in keyword arguments.
1576
+ # request = Google::Cloud::ArtifactRegistry::V1::GetPackageRequest.new
1577
+ #
1578
+ # # Call the get_package method.
1579
+ # result = client.get_package request
1580
+ #
1581
+ # # The returned object is of type Google::Cloud::ArtifactRegistry::V1::Package.
1582
+ # p result
1583
+ #
1260
1584
  def get_package request, options = nil
1261
1585
  raise ::ArgumentError, "request must be provided" if request.nil?
1262
1586
 
@@ -1320,6 +1644,29 @@ module Google
1320
1644
  # @return [::Gapic::Operation]
1321
1645
  #
1322
1646
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1647
+ #
1648
+ # @example Basic example
1649
+ # require "google/cloud/artifact_registry/v1"
1650
+ #
1651
+ # # Create a client object. The client can be reused for multiple calls.
1652
+ # client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Rest::Client.new
1653
+ #
1654
+ # # Create a request. To set request fields, pass in keyword arguments.
1655
+ # request = Google::Cloud::ArtifactRegistry::V1::DeletePackageRequest.new
1656
+ #
1657
+ # # Call the delete_package method.
1658
+ # result = client.delete_package request
1659
+ #
1660
+ # # The returned object is of type Gapic::Operation. You can use it to
1661
+ # # check the status of an operation, cancel it, or wait for results.
1662
+ # # Here is how to wait for a response.
1663
+ # result.wait_until_done! timeout: 60
1664
+ # if result.response?
1665
+ # p result.response
1666
+ # else
1667
+ # puts "No response received."
1668
+ # end
1669
+ #
1323
1670
  def delete_package request, options = nil
1324
1671
  raise ::ArgumentError, "request must be provided" if request.nil?
1325
1672
 
@@ -1391,6 +1738,26 @@ module Google
1391
1738
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::ArtifactRegistry::V1::Version>]
1392
1739
  #
1393
1740
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1741
+ #
1742
+ # @example Basic example
1743
+ # require "google/cloud/artifact_registry/v1"
1744
+ #
1745
+ # # Create a client object. The client can be reused for multiple calls.
1746
+ # client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Rest::Client.new
1747
+ #
1748
+ # # Create a request. To set request fields, pass in keyword arguments.
1749
+ # request = Google::Cloud::ArtifactRegistry::V1::ListVersionsRequest.new
1750
+ #
1751
+ # # Call the list_versions method.
1752
+ # result = client.list_versions request
1753
+ #
1754
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1755
+ # # over elements, and API calls will be issued to fetch pages as needed.
1756
+ # result.each do |item|
1757
+ # # Each element is of type ::Google::Cloud::ArtifactRegistry::V1::Version.
1758
+ # p item
1759
+ # end
1760
+ #
1394
1761
  def list_versions request, options = nil
1395
1762
  raise ::ArgumentError, "request must be provided" if request.nil?
1396
1763
 
@@ -1456,6 +1823,22 @@ module Google
1456
1823
  # @return [::Google::Cloud::ArtifactRegistry::V1::Version]
1457
1824
  #
1458
1825
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1826
+ #
1827
+ # @example Basic example
1828
+ # require "google/cloud/artifact_registry/v1"
1829
+ #
1830
+ # # Create a client object. The client can be reused for multiple calls.
1831
+ # client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Rest::Client.new
1832
+ #
1833
+ # # Create a request. To set request fields, pass in keyword arguments.
1834
+ # request = Google::Cloud::ArtifactRegistry::V1::GetVersionRequest.new
1835
+ #
1836
+ # # Call the get_version method.
1837
+ # result = client.get_version request
1838
+ #
1839
+ # # The returned object is of type Google::Cloud::ArtifactRegistry::V1::Version.
1840
+ # p result
1841
+ #
1459
1842
  def get_version request, options = nil
1460
1843
  raise ::ArgumentError, "request must be provided" if request.nil?
1461
1844
 
@@ -1522,6 +1905,29 @@ module Google
1522
1905
  # @return [::Gapic::Operation]
1523
1906
  #
1524
1907
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1908
+ #
1909
+ # @example Basic example
1910
+ # require "google/cloud/artifact_registry/v1"
1911
+ #
1912
+ # # Create a client object. The client can be reused for multiple calls.
1913
+ # client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Rest::Client.new
1914
+ #
1915
+ # # Create a request. To set request fields, pass in keyword arguments.
1916
+ # request = Google::Cloud::ArtifactRegistry::V1::DeleteVersionRequest.new
1917
+ #
1918
+ # # Call the delete_version method.
1919
+ # result = client.delete_version request
1920
+ #
1921
+ # # The returned object is of type Gapic::Operation. You can use it to
1922
+ # # check the status of an operation, cancel it, or wait for results.
1923
+ # # Here is how to wait for a response.
1924
+ # result.wait_until_done! timeout: 60
1925
+ # if result.response?
1926
+ # p result.response
1927
+ # else
1928
+ # puts "No response received."
1929
+ # end
1930
+ #
1525
1931
  def delete_version request, options = nil
1526
1932
  raise ::ArgumentError, "request must be provided" if request.nil?
1527
1933
 
@@ -1605,6 +2011,26 @@ module Google
1605
2011
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::ArtifactRegistry::V1::File>]
1606
2012
  #
1607
2013
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2014
+ #
2015
+ # @example Basic example
2016
+ # require "google/cloud/artifact_registry/v1"
2017
+ #
2018
+ # # Create a client object. The client can be reused for multiple calls.
2019
+ # client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Rest::Client.new
2020
+ #
2021
+ # # Create a request. To set request fields, pass in keyword arguments.
2022
+ # request = Google::Cloud::ArtifactRegistry::V1::ListFilesRequest.new
2023
+ #
2024
+ # # Call the list_files method.
2025
+ # result = client.list_files request
2026
+ #
2027
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
2028
+ # # over elements, and API calls will be issued to fetch pages as needed.
2029
+ # result.each do |item|
2030
+ # # Each element is of type ::Google::Cloud::ArtifactRegistry::V1::File.
2031
+ # p item
2032
+ # end
2033
+ #
1608
2034
  def list_files request, options = nil
1609
2035
  raise ::ArgumentError, "request must be provided" if request.nil?
1610
2036
 
@@ -1668,6 +2094,22 @@ module Google
1668
2094
  # @return [::Google::Cloud::ArtifactRegistry::V1::File]
1669
2095
  #
1670
2096
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2097
+ #
2098
+ # @example Basic example
2099
+ # require "google/cloud/artifact_registry/v1"
2100
+ #
2101
+ # # Create a client object. The client can be reused for multiple calls.
2102
+ # client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Rest::Client.new
2103
+ #
2104
+ # # Create a request. To set request fields, pass in keyword arguments.
2105
+ # request = Google::Cloud::ArtifactRegistry::V1::GetFileRequest.new
2106
+ #
2107
+ # # Call the get_file method.
2108
+ # result = client.get_file request
2109
+ #
2110
+ # # The returned object is of type Google::Cloud::ArtifactRegistry::V1::File.
2111
+ # p result
2112
+ #
1671
2113
  def get_file request, options = nil
1672
2114
  raise ::ArgumentError, "request must be provided" if request.nil?
1673
2115
 
@@ -1744,6 +2186,26 @@ module Google
1744
2186
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::ArtifactRegistry::V1::Tag>]
1745
2187
  #
1746
2188
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2189
+ #
2190
+ # @example Basic example
2191
+ # require "google/cloud/artifact_registry/v1"
2192
+ #
2193
+ # # Create a client object. The client can be reused for multiple calls.
2194
+ # client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Rest::Client.new
2195
+ #
2196
+ # # Create a request. To set request fields, pass in keyword arguments.
2197
+ # request = Google::Cloud::ArtifactRegistry::V1::ListTagsRequest.new
2198
+ #
2199
+ # # Call the list_tags method.
2200
+ # result = client.list_tags request
2201
+ #
2202
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
2203
+ # # over elements, and API calls will be issued to fetch pages as needed.
2204
+ # result.each do |item|
2205
+ # # Each element is of type ::Google::Cloud::ArtifactRegistry::V1::Tag.
2206
+ # p item
2207
+ # end
2208
+ #
1747
2209
  def list_tags request, options = nil
1748
2210
  raise ::ArgumentError, "request must be provided" if request.nil?
1749
2211
 
@@ -1807,6 +2269,22 @@ module Google
1807
2269
  # @return [::Google::Cloud::ArtifactRegistry::V1::Tag]
1808
2270
  #
1809
2271
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2272
+ #
2273
+ # @example Basic example
2274
+ # require "google/cloud/artifact_registry/v1"
2275
+ #
2276
+ # # Create a client object. The client can be reused for multiple calls.
2277
+ # client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Rest::Client.new
2278
+ #
2279
+ # # Create a request. To set request fields, pass in keyword arguments.
2280
+ # request = Google::Cloud::ArtifactRegistry::V1::GetTagRequest.new
2281
+ #
2282
+ # # Call the get_tag method.
2283
+ # result = client.get_tag request
2284
+ #
2285
+ # # The returned object is of type Google::Cloud::ArtifactRegistry::V1::Tag.
2286
+ # p result
2287
+ #
1810
2288
  def get_tag request, options = nil
1811
2289
  raise ::ArgumentError, "request must be provided" if request.nil?
1812
2290
 
@@ -1873,6 +2351,22 @@ module Google
1873
2351
  # @return [::Google::Cloud::ArtifactRegistry::V1::Tag]
1874
2352
  #
1875
2353
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2354
+ #
2355
+ # @example Basic example
2356
+ # require "google/cloud/artifact_registry/v1"
2357
+ #
2358
+ # # Create a client object. The client can be reused for multiple calls.
2359
+ # client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Rest::Client.new
2360
+ #
2361
+ # # Create a request. To set request fields, pass in keyword arguments.
2362
+ # request = Google::Cloud::ArtifactRegistry::V1::CreateTagRequest.new
2363
+ #
2364
+ # # Call the create_tag method.
2365
+ # result = client.create_tag request
2366
+ #
2367
+ # # The returned object is of type Google::Cloud::ArtifactRegistry::V1::Tag.
2368
+ # p result
2369
+ #
1876
2370
  def create_tag request, options = nil
1877
2371
  raise ::ArgumentError, "request must be provided" if request.nil?
1878
2372
 
@@ -1939,6 +2433,22 @@ module Google
1939
2433
  # @return [::Google::Cloud::ArtifactRegistry::V1::Tag]
1940
2434
  #
1941
2435
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2436
+ #
2437
+ # @example Basic example
2438
+ # require "google/cloud/artifact_registry/v1"
2439
+ #
2440
+ # # Create a client object. The client can be reused for multiple calls.
2441
+ # client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Rest::Client.new
2442
+ #
2443
+ # # Create a request. To set request fields, pass in keyword arguments.
2444
+ # request = Google::Cloud::ArtifactRegistry::V1::UpdateTagRequest.new
2445
+ #
2446
+ # # Call the update_tag method.
2447
+ # result = client.update_tag request
2448
+ #
2449
+ # # The returned object is of type Google::Cloud::ArtifactRegistry::V1::Tag.
2450
+ # p result
2451
+ #
1942
2452
  def update_tag request, options = nil
1943
2453
  raise ::ArgumentError, "request must be provided" if request.nil?
1944
2454
 
@@ -2001,6 +2511,22 @@ module Google
2001
2511
  # @return [::Google::Protobuf::Empty]
2002
2512
  #
2003
2513
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2514
+ #
2515
+ # @example Basic example
2516
+ # require "google/cloud/artifact_registry/v1"
2517
+ #
2518
+ # # Create a client object. The client can be reused for multiple calls.
2519
+ # client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Rest::Client.new
2520
+ #
2521
+ # # Create a request. To set request fields, pass in keyword arguments.
2522
+ # request = Google::Cloud::ArtifactRegistry::V1::DeleteTagRequest.new
2523
+ #
2524
+ # # Call the delete_tag method.
2525
+ # result = client.delete_tag request
2526
+ #
2527
+ # # The returned object is of type Google::Protobuf::Empty.
2528
+ # p result
2529
+ #
2004
2530
  def delete_tag request, options = nil
2005
2531
  raise ::ArgumentError, "request must be provided" if request.nil?
2006
2532
 
@@ -2075,6 +2601,22 @@ module Google
2075
2601
  # @return [::Google::Iam::V1::Policy]
2076
2602
  #
2077
2603
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2604
+ #
2605
+ # @example Basic example
2606
+ # require "google/cloud/artifact_registry/v1"
2607
+ #
2608
+ # # Create a client object. The client can be reused for multiple calls.
2609
+ # client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Rest::Client.new
2610
+ #
2611
+ # # Create a request. To set request fields, pass in keyword arguments.
2612
+ # request = Google::Iam::V1::SetIamPolicyRequest.new
2613
+ #
2614
+ # # Call the set_iam_policy method.
2615
+ # result = client.set_iam_policy request
2616
+ #
2617
+ # # The returned object is of type Google::Iam::V1::Policy.
2618
+ # p result
2619
+ #
2078
2620
  def set_iam_policy request, options = nil
2079
2621
  raise ::ArgumentError, "request must be provided" if request.nil?
2080
2622
 
@@ -2141,6 +2683,22 @@ module Google
2141
2683
  # @return [::Google::Iam::V1::Policy]
2142
2684
  #
2143
2685
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2686
+ #
2687
+ # @example Basic example
2688
+ # require "google/cloud/artifact_registry/v1"
2689
+ #
2690
+ # # Create a client object. The client can be reused for multiple calls.
2691
+ # client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Rest::Client.new
2692
+ #
2693
+ # # Create a request. To set request fields, pass in keyword arguments.
2694
+ # request = Google::Iam::V1::GetIamPolicyRequest.new
2695
+ #
2696
+ # # Call the get_iam_policy method.
2697
+ # result = client.get_iam_policy request
2698
+ #
2699
+ # # The returned object is of type Google::Iam::V1::Policy.
2700
+ # p result
2701
+ #
2144
2702
  def get_iam_policy request, options = nil
2145
2703
  raise ::ArgumentError, "request must be provided" if request.nil?
2146
2704
 
@@ -2209,6 +2767,22 @@ module Google
2209
2767
  # @return [::Google::Iam::V1::TestIamPermissionsResponse]
2210
2768
  #
2211
2769
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2770
+ #
2771
+ # @example Basic example
2772
+ # require "google/cloud/artifact_registry/v1"
2773
+ #
2774
+ # # Create a client object. The client can be reused for multiple calls.
2775
+ # client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Rest::Client.new
2776
+ #
2777
+ # # Create a request. To set request fields, pass in keyword arguments.
2778
+ # request = Google::Iam::V1::TestIamPermissionsRequest.new
2779
+ #
2780
+ # # Call the test_iam_permissions method.
2781
+ # result = client.test_iam_permissions request
2782
+ #
2783
+ # # The returned object is of type Google::Iam::V1::TestIamPermissionsResponse.
2784
+ # p result
2785
+ #
2212
2786
  def test_iam_permissions request, options = nil
2213
2787
  raise ::ArgumentError, "request must be provided" if request.nil?
2214
2788
 
@@ -2271,6 +2845,22 @@ module Google
2271
2845
  # @return [::Google::Cloud::ArtifactRegistry::V1::ProjectSettings]
2272
2846
  #
2273
2847
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2848
+ #
2849
+ # @example Basic example
2850
+ # require "google/cloud/artifact_registry/v1"
2851
+ #
2852
+ # # Create a client object. The client can be reused for multiple calls.
2853
+ # client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Rest::Client.new
2854
+ #
2855
+ # # Create a request. To set request fields, pass in keyword arguments.
2856
+ # request = Google::Cloud::ArtifactRegistry::V1::GetProjectSettingsRequest.new
2857
+ #
2858
+ # # Call the get_project_settings method.
2859
+ # result = client.get_project_settings request
2860
+ #
2861
+ # # The returned object is of type Google::Cloud::ArtifactRegistry::V1::ProjectSettings.
2862
+ # p result
2863
+ #
2274
2864
  def get_project_settings request, options = nil
2275
2865
  raise ::ArgumentError, "request must be provided" if request.nil?
2276
2866
 
@@ -2335,6 +2925,22 @@ module Google
2335
2925
  # @return [::Google::Cloud::ArtifactRegistry::V1::ProjectSettings]
2336
2926
  #
2337
2927
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2928
+ #
2929
+ # @example Basic example
2930
+ # require "google/cloud/artifact_registry/v1"
2931
+ #
2932
+ # # Create a client object. The client can be reused for multiple calls.
2933
+ # client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Rest::Client.new
2934
+ #
2935
+ # # Create a request. To set request fields, pass in keyword arguments.
2936
+ # request = Google::Cloud::ArtifactRegistry::V1::UpdateProjectSettingsRequest.new
2937
+ #
2938
+ # # Call the update_project_settings method.
2939
+ # result = client.update_project_settings request
2940
+ #
2941
+ # # The returned object is of type Google::Cloud::ArtifactRegistry::V1::ProjectSettings.
2942
+ # p result
2943
+ #
2338
2944
  def update_project_settings request, options = nil
2339
2945
  raise ::ArgumentError, "request must be provided" if request.nil?
2340
2946
 
@@ -2397,6 +3003,22 @@ module Google
2397
3003
  # @return [::Google::Cloud::ArtifactRegistry::V1::VPCSCConfig]
2398
3004
  #
2399
3005
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
3006
+ #
3007
+ # @example Basic example
3008
+ # require "google/cloud/artifact_registry/v1"
3009
+ #
3010
+ # # Create a client object. The client can be reused for multiple calls.
3011
+ # client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Rest::Client.new
3012
+ #
3013
+ # # Create a request. To set request fields, pass in keyword arguments.
3014
+ # request = Google::Cloud::ArtifactRegistry::V1::GetVPCSCConfigRequest.new
3015
+ #
3016
+ # # Call the get_vpcsc_config method.
3017
+ # result = client.get_vpcsc_config request
3018
+ #
3019
+ # # The returned object is of type Google::Cloud::ArtifactRegistry::V1::VPCSCConfig.
3020
+ # p result
3021
+ #
2400
3022
  def get_vpcsc_config request, options = nil
2401
3023
  raise ::ArgumentError, "request must be provided" if request.nil?
2402
3024
 
@@ -2461,6 +3083,22 @@ module Google
2461
3083
  # @return [::Google::Cloud::ArtifactRegistry::V1::VPCSCConfig]
2462
3084
  #
2463
3085
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
3086
+ #
3087
+ # @example Basic example
3088
+ # require "google/cloud/artifact_registry/v1"
3089
+ #
3090
+ # # Create a client object. The client can be reused for multiple calls.
3091
+ # client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Rest::Client.new
3092
+ #
3093
+ # # Create a request. To set request fields, pass in keyword arguments.
3094
+ # request = Google::Cloud::ArtifactRegistry::V1::UpdateVPCSCConfigRequest.new
3095
+ #
3096
+ # # Call the update_vpcsc_config method.
3097
+ # result = client.update_vpcsc_config request
3098
+ #
3099
+ # # The returned object is of type Google::Cloud::ArtifactRegistry::V1::VPCSCConfig.
3100
+ # p result
3101
+ #
2464
3102
  def update_vpcsc_config request, options = nil
2465
3103
  raise ::ArgumentError, "request must be provided" if request.nil?
2466
3104
 
@@ -136,6 +136,26 @@ module Google
136
136
  # @return [::Gapic::Operation]
137
137
  #
138
138
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
139
+ #
140
+ # @example Basic example
141
+ # require "google/longrunning"
142
+ #
143
+ # # Create a client object. The client can be reused for multiple calls.
144
+ # client = Google::Longrunning::Operations::Rest::Client.new
145
+ #
146
+ # # Create a request. To set request fields, pass in keyword arguments.
147
+ # request = Google::Longrunning::ListOperationsRequest.new
148
+ #
149
+ # # Call the list_operations method.
150
+ # result = client.list_operations request
151
+ #
152
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
153
+ # # over elements, and API calls will be issued to fetch pages as needed.
154
+ # result.each do |item|
155
+ # # Each element is of type ::Google::Longrunning::Operation.
156
+ # p item
157
+ # end
158
+ #
139
159
  def list_operations request, options = nil
140
160
  raise ::ArgumentError, "request must be provided" if request.nil?
141
161
 
@@ -201,6 +221,29 @@ module Google
201
221
  # @return [::Gapic::Operation]
202
222
  #
203
223
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
224
+ #
225
+ # @example Basic example
226
+ # require "google/longrunning"
227
+ #
228
+ # # Create a client object. The client can be reused for multiple calls.
229
+ # client = Google::Longrunning::Operations::Rest::Client.new
230
+ #
231
+ # # Create a request. To set request fields, pass in keyword arguments.
232
+ # request = Google::Longrunning::GetOperationRequest.new
233
+ #
234
+ # # Call the get_operation method.
235
+ # result = client.get_operation request
236
+ #
237
+ # # The returned object is of type Gapic::Operation. You can use it to
238
+ # # check the status of an operation, cancel it, or wait for results.
239
+ # # Here is how to wait for a response.
240
+ # result.wait_until_done! timeout: 60
241
+ # if result.response?
242
+ # p result.response
243
+ # else
244
+ # puts "No response received."
245
+ # end
246
+ #
204
247
  def get_operation request, options = nil
205
248
  raise ::ArgumentError, "request must be provided" if request.nil?
206
249
 
@@ -267,6 +310,22 @@ module Google
267
310
  # @return [::Google::Protobuf::Empty]
268
311
  #
269
312
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
313
+ #
314
+ # @example Basic example
315
+ # require "google/longrunning"
316
+ #
317
+ # # Create a client object. The client can be reused for multiple calls.
318
+ # client = Google::Longrunning::Operations::Rest::Client.new
319
+ #
320
+ # # Create a request. To set request fields, pass in keyword arguments.
321
+ # request = Google::Longrunning::DeleteOperationRequest.new
322
+ #
323
+ # # Call the delete_operation method.
324
+ # result = client.delete_operation request
325
+ #
326
+ # # The returned object is of type Google::Protobuf::Empty.
327
+ # p result
328
+ #
270
329
  def delete_operation request, options = nil
271
330
  raise ::ArgumentError, "request must be provided" if request.nil?
272
331
 
@@ -338,6 +397,22 @@ module Google
338
397
  # @return [::Google::Protobuf::Empty]
339
398
  #
340
399
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
400
+ #
401
+ # @example Basic example
402
+ # require "google/longrunning"
403
+ #
404
+ # # Create a client object. The client can be reused for multiple calls.
405
+ # client = Google::Longrunning::Operations::Rest::Client.new
406
+ #
407
+ # # Create a request. To set request fields, pass in keyword arguments.
408
+ # request = Google::Longrunning::CancelOperationRequest.new
409
+ #
410
+ # # Call the cancel_operation method.
411
+ # result = client.cancel_operation request
412
+ #
413
+ # # The returned object is of type Google::Protobuf::Empty.
414
+ # p result
415
+ #
341
416
  def cancel_operation request, options = nil
342
417
  raise ::ArgumentError, "request must be provided" if request.nil?
343
418
 
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module ArtifactRegistry
23
23
  module V1
24
- VERSION = "0.9.1"
24
+ VERSION = "0.10.0"
25
25
  end
26
26
  end
27
27
  end
@@ -66,6 +66,20 @@ module Google
66
66
  # a non-empty value will be returned. The user will not be aware of what
67
67
  # non-empty value to expect.
68
68
  NON_EMPTY_DEFAULT = 7
69
+
70
+ # Denotes that the field in a resource (a message annotated with
71
+ # google.api.resource) is used in the resource name to uniquely identify the
72
+ # resource. For AIP-compliant APIs, this should only be applied to the
73
+ # `name` field on the resource.
74
+ #
75
+ # This behavior should not be applied to references to other resources within
76
+ # the message.
77
+ #
78
+ # The identifier field of resources often have different field behavior
79
+ # depending on the request it is embedded in (e.g. for Create methods name
80
+ # is optional and unused, while for Update methods it is required). Instead
81
+ # of method-specific annotations, only `IDENTIFIER` is required.
82
+ IDENTIFIER = 8
69
83
  end
70
84
  end
71
85
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-artifact_registry-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.1
4
+ version: 0.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-08-04 00:00:00.000000000 Z
11
+ date: 2023-09-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.19.1
19
+ version: 0.20.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 0.19.1
29
+ version: 0.20.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -277,7 +277,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
277
277
  - !ruby/object:Gem::Version
278
278
  version: '0'
279
279
  requirements: []
280
- rubygems_version: 3.4.2
280
+ rubygems_version: 3.4.19
281
281
  signing_key:
282
282
  specification_version: 4
283
283
  summary: Store and manage build artifacts in a scalable and integrated service built