google-cloud-artifact_registry-v1beta2 0.9.1 → 0.10.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 96f359af3398707fb67ee0b0d3325bfc5ebd3328eced29251662c51c91641622
4
- data.tar.gz: b9fa996ea3ca8c42d23b3e01550eead22220d45dadc0f5ef2ad8fea951daf50c
3
+ metadata.gz: abd0152691969ea33295476ded5bf4a04c996d939a21157036f1d10cb268f489
4
+ data.tar.gz: 04300b0c607c0295c05c41c94682b698331c729fdb26e4760decd23631e2d08f
5
5
  SHA512:
6
- metadata.gz: 6dc9c4c0737442d1da6debd7fdabb8272de028ab41c94e929a9dede4479c7c69f01d2692023586094b61294cba772d7cf2262f3baaed75597718b9720bb25ffe
7
- data.tar.gz: 6eae3b7d13bf9fe820081f220bb1d4e92067329232f5f159147f0ca2fc6dba39da5d94963524d04cf87c4d8fce1e3e279aef7b7e41f738661edee00a4c492b8a
6
+ metadata.gz: ac840d032e355beb17457b50b7d65321f38e9ec43936e9d1a7dafab19df8bfccf25d8e7e96032ab209e633dfb72bd76bb68599155a03bf69d9182f217495a27d
7
+ data.tar.gz: c1a9212d151e4ccfe5afceea866579344d87b734a07827ba2dbfa18ea373013e74db4611422973dd097b4aa0d738b0d48bb2598ae94a214c2a4ffaf5c16725e5
@@ -248,7 +248,8 @@ module Google
248
248
  credentials: credentials,
249
249
  endpoint: @config.endpoint,
250
250
  channel_args: @config.channel_args,
251
- interceptors: @config.interceptors
251
+ interceptors: @config.interceptors,
252
+ channel_pool_config: @config.channel_pool
252
253
  )
253
254
  end
254
255
 
@@ -2694,6 +2695,14 @@ module Google
2694
2695
  end
2695
2696
  end
2696
2697
 
2698
+ ##
2699
+ # Configuration for the channel pool
2700
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
2701
+ #
2702
+ def channel_pool
2703
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
2704
+ end
2705
+
2697
2706
  ##
2698
2707
  # Configuration RPC class for the ArtifactRegistry API.
2699
2708
  #
@@ -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
  #
@@ -292,6 +292,29 @@ module Google
292
292
  # @return [::Gapic::Operation]
293
293
  #
294
294
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
295
+ #
296
+ # @example Basic example
297
+ # require "google/cloud/artifact_registry/v1beta2"
298
+ #
299
+ # # Create a client object. The client can be reused for multiple calls.
300
+ # client = Google::Cloud::ArtifactRegistry::V1beta2::ArtifactRegistry::Rest::Client.new
301
+ #
302
+ # # Create a request. To set request fields, pass in keyword arguments.
303
+ # request = Google::Cloud::ArtifactRegistry::V1beta2::ImportAptArtifactsRequest.new
304
+ #
305
+ # # Call the import_apt_artifacts method.
306
+ # result = client.import_apt_artifacts request
307
+ #
308
+ # # The returned object is of type Gapic::Operation. You can use it to
309
+ # # check the status of an operation, cancel it, or wait for results.
310
+ # # Here is how to wait for a response.
311
+ # result.wait_until_done! timeout: 60
312
+ # if result.response?
313
+ # p result.response
314
+ # else
315
+ # puts "No response received."
316
+ # end
317
+ #
295
318
  def import_apt_artifacts request, options = nil
296
319
  raise ::ArgumentError, "request must be provided" if request.nil?
297
320
 
@@ -360,6 +383,29 @@ module Google
360
383
  # @return [::Gapic::Operation]
361
384
  #
362
385
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
386
+ #
387
+ # @example Basic example
388
+ # require "google/cloud/artifact_registry/v1beta2"
389
+ #
390
+ # # Create a client object. The client can be reused for multiple calls.
391
+ # client = Google::Cloud::ArtifactRegistry::V1beta2::ArtifactRegistry::Rest::Client.new
392
+ #
393
+ # # Create a request. To set request fields, pass in keyword arguments.
394
+ # request = Google::Cloud::ArtifactRegistry::V1beta2::ImportYumArtifactsRequest.new
395
+ #
396
+ # # Call the import_yum_artifacts method.
397
+ # result = client.import_yum_artifacts request
398
+ #
399
+ # # The returned object is of type Gapic::Operation. You can use it to
400
+ # # check the status of an operation, cancel it, or wait for results.
401
+ # # Here is how to wait for a response.
402
+ # result.wait_until_done! timeout: 60
403
+ # if result.response?
404
+ # p result.response
405
+ # else
406
+ # puts "No response received."
407
+ # end
408
+ #
363
409
  def import_yum_artifacts request, options = nil
364
410
  raise ::ArgumentError, "request must be provided" if request.nil?
365
411
 
@@ -427,6 +473,26 @@ module Google
427
473
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::ArtifactRegistry::V1beta2::Repository>]
428
474
  #
429
475
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
476
+ #
477
+ # @example Basic example
478
+ # require "google/cloud/artifact_registry/v1beta2"
479
+ #
480
+ # # Create a client object. The client can be reused for multiple calls.
481
+ # client = Google::Cloud::ArtifactRegistry::V1beta2::ArtifactRegistry::Rest::Client.new
482
+ #
483
+ # # Create a request. To set request fields, pass in keyword arguments.
484
+ # request = Google::Cloud::ArtifactRegistry::V1beta2::ListRepositoriesRequest.new
485
+ #
486
+ # # Call the list_repositories method.
487
+ # result = client.list_repositories request
488
+ #
489
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
490
+ # # over elements, and API calls will be issued to fetch pages as needed.
491
+ # result.each do |item|
492
+ # # Each element is of type ::Google::Cloud::ArtifactRegistry::V1beta2::Repository.
493
+ # p item
494
+ # end
495
+ #
430
496
  def list_repositories request, options = nil
431
497
  raise ::ArgumentError, "request must be provided" if request.nil?
432
498
 
@@ -490,6 +556,22 @@ module Google
490
556
  # @return [::Google::Cloud::ArtifactRegistry::V1beta2::Repository]
491
557
  #
492
558
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
559
+ #
560
+ # @example Basic example
561
+ # require "google/cloud/artifact_registry/v1beta2"
562
+ #
563
+ # # Create a client object. The client can be reused for multiple calls.
564
+ # client = Google::Cloud::ArtifactRegistry::V1beta2::ArtifactRegistry::Rest::Client.new
565
+ #
566
+ # # Create a request. To set request fields, pass in keyword arguments.
567
+ # request = Google::Cloud::ArtifactRegistry::V1beta2::GetRepositoryRequest.new
568
+ #
569
+ # # Call the get_repository method.
570
+ # result = client.get_repository request
571
+ #
572
+ # # The returned object is of type Google::Cloud::ArtifactRegistry::V1beta2::Repository.
573
+ # p result
574
+ #
493
575
  def get_repository request, options = nil
494
576
  raise ::ArgumentError, "request must be provided" if request.nil?
495
577
 
@@ -557,6 +639,29 @@ module Google
557
639
  # @return [::Gapic::Operation]
558
640
  #
559
641
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
642
+ #
643
+ # @example Basic example
644
+ # require "google/cloud/artifact_registry/v1beta2"
645
+ #
646
+ # # Create a client object. The client can be reused for multiple calls.
647
+ # client = Google::Cloud::ArtifactRegistry::V1beta2::ArtifactRegistry::Rest::Client.new
648
+ #
649
+ # # Create a request. To set request fields, pass in keyword arguments.
650
+ # request = Google::Cloud::ArtifactRegistry::V1beta2::CreateRepositoryRequest.new
651
+ #
652
+ # # Call the create_repository method.
653
+ # result = client.create_repository request
654
+ #
655
+ # # The returned object is of type Gapic::Operation. You can use it to
656
+ # # check the status of an operation, cancel it, or wait for results.
657
+ # # Here is how to wait for a response.
658
+ # result.wait_until_done! timeout: 60
659
+ # if result.response?
660
+ # p result.response
661
+ # else
662
+ # puts "No response received."
663
+ # end
664
+ #
560
665
  def create_repository request, options = nil
561
666
  raise ::ArgumentError, "request must be provided" if request.nil?
562
667
 
@@ -624,6 +729,22 @@ module Google
624
729
  # @return [::Google::Cloud::ArtifactRegistry::V1beta2::Repository]
625
730
  #
626
731
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
732
+ #
733
+ # @example Basic example
734
+ # require "google/cloud/artifact_registry/v1beta2"
735
+ #
736
+ # # Create a client object. The client can be reused for multiple calls.
737
+ # client = Google::Cloud::ArtifactRegistry::V1beta2::ArtifactRegistry::Rest::Client.new
738
+ #
739
+ # # Create a request. To set request fields, pass in keyword arguments.
740
+ # request = Google::Cloud::ArtifactRegistry::V1beta2::UpdateRepositoryRequest.new
741
+ #
742
+ # # Call the update_repository method.
743
+ # result = client.update_repository request
744
+ #
745
+ # # The returned object is of type Google::Cloud::ArtifactRegistry::V1beta2::Repository.
746
+ # p result
747
+ #
627
748
  def update_repository request, options = nil
628
749
  raise ::ArgumentError, "request must be provided" if request.nil?
629
750
 
@@ -688,6 +809,29 @@ module Google
688
809
  # @return [::Gapic::Operation]
689
810
  #
690
811
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
812
+ #
813
+ # @example Basic example
814
+ # require "google/cloud/artifact_registry/v1beta2"
815
+ #
816
+ # # Create a client object. The client can be reused for multiple calls.
817
+ # client = Google::Cloud::ArtifactRegistry::V1beta2::ArtifactRegistry::Rest::Client.new
818
+ #
819
+ # # Create a request. To set request fields, pass in keyword arguments.
820
+ # request = Google::Cloud::ArtifactRegistry::V1beta2::DeleteRepositoryRequest.new
821
+ #
822
+ # # Call the delete_repository method.
823
+ # result = client.delete_repository request
824
+ #
825
+ # # The returned object is of type Gapic::Operation. You can use it to
826
+ # # check the status of an operation, cancel it, or wait for results.
827
+ # # Here is how to wait for a response.
828
+ # result.wait_until_done! timeout: 60
829
+ # if result.response?
830
+ # p result.response
831
+ # else
832
+ # puts "No response received."
833
+ # end
834
+ #
691
835
  def delete_repository request, options = nil
692
836
  raise ::ArgumentError, "request must be provided" if request.nil?
693
837
 
@@ -756,6 +900,26 @@ module Google
756
900
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::ArtifactRegistry::V1beta2::Package>]
757
901
  #
758
902
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
903
+ #
904
+ # @example Basic example
905
+ # require "google/cloud/artifact_registry/v1beta2"
906
+ #
907
+ # # Create a client object. The client can be reused for multiple calls.
908
+ # client = Google::Cloud::ArtifactRegistry::V1beta2::ArtifactRegistry::Rest::Client.new
909
+ #
910
+ # # Create a request. To set request fields, pass in keyword arguments.
911
+ # request = Google::Cloud::ArtifactRegistry::V1beta2::ListPackagesRequest.new
912
+ #
913
+ # # Call the list_packages method.
914
+ # result = client.list_packages request
915
+ #
916
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
917
+ # # over elements, and API calls will be issued to fetch pages as needed.
918
+ # result.each do |item|
919
+ # # Each element is of type ::Google::Cloud::ArtifactRegistry::V1beta2::Package.
920
+ # p item
921
+ # end
922
+ #
759
923
  def list_packages request, options = nil
760
924
  raise ::ArgumentError, "request must be provided" if request.nil?
761
925
 
@@ -819,6 +983,22 @@ module Google
819
983
  # @return [::Google::Cloud::ArtifactRegistry::V1beta2::Package]
820
984
  #
821
985
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
986
+ #
987
+ # @example Basic example
988
+ # require "google/cloud/artifact_registry/v1beta2"
989
+ #
990
+ # # Create a client object. The client can be reused for multiple calls.
991
+ # client = Google::Cloud::ArtifactRegistry::V1beta2::ArtifactRegistry::Rest::Client.new
992
+ #
993
+ # # Create a request. To set request fields, pass in keyword arguments.
994
+ # request = Google::Cloud::ArtifactRegistry::V1beta2::GetPackageRequest.new
995
+ #
996
+ # # Call the get_package method.
997
+ # result = client.get_package request
998
+ #
999
+ # # The returned object is of type Google::Cloud::ArtifactRegistry::V1beta2::Package.
1000
+ # p result
1001
+ #
822
1002
  def get_package request, options = nil
823
1003
  raise ::ArgumentError, "request must be provided" if request.nil?
824
1004
 
@@ -882,6 +1062,29 @@ module Google
882
1062
  # @return [::Gapic::Operation]
883
1063
  #
884
1064
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1065
+ #
1066
+ # @example Basic example
1067
+ # require "google/cloud/artifact_registry/v1beta2"
1068
+ #
1069
+ # # Create a client object. The client can be reused for multiple calls.
1070
+ # client = Google::Cloud::ArtifactRegistry::V1beta2::ArtifactRegistry::Rest::Client.new
1071
+ #
1072
+ # # Create a request. To set request fields, pass in keyword arguments.
1073
+ # request = Google::Cloud::ArtifactRegistry::V1beta2::DeletePackageRequest.new
1074
+ #
1075
+ # # Call the delete_package method.
1076
+ # result = client.delete_package request
1077
+ #
1078
+ # # The returned object is of type Gapic::Operation. You can use it to
1079
+ # # check the status of an operation, cancel it, or wait for results.
1080
+ # # Here is how to wait for a response.
1081
+ # result.wait_until_done! timeout: 60
1082
+ # if result.response?
1083
+ # p result.response
1084
+ # else
1085
+ # puts "No response received."
1086
+ # end
1087
+ #
885
1088
  def delete_package request, options = nil
886
1089
  raise ::ArgumentError, "request must be provided" if request.nil?
887
1090
 
@@ -953,6 +1156,26 @@ module Google
953
1156
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::ArtifactRegistry::V1beta2::Version>]
954
1157
  #
955
1158
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1159
+ #
1160
+ # @example Basic example
1161
+ # require "google/cloud/artifact_registry/v1beta2"
1162
+ #
1163
+ # # Create a client object. The client can be reused for multiple calls.
1164
+ # client = Google::Cloud::ArtifactRegistry::V1beta2::ArtifactRegistry::Rest::Client.new
1165
+ #
1166
+ # # Create a request. To set request fields, pass in keyword arguments.
1167
+ # request = Google::Cloud::ArtifactRegistry::V1beta2::ListVersionsRequest.new
1168
+ #
1169
+ # # Call the list_versions method.
1170
+ # result = client.list_versions request
1171
+ #
1172
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1173
+ # # over elements, and API calls will be issued to fetch pages as needed.
1174
+ # result.each do |item|
1175
+ # # Each element is of type ::Google::Cloud::ArtifactRegistry::V1beta2::Version.
1176
+ # p item
1177
+ # end
1178
+ #
956
1179
  def list_versions request, options = nil
957
1180
  raise ::ArgumentError, "request must be provided" if request.nil?
958
1181
 
@@ -1018,6 +1241,22 @@ module Google
1018
1241
  # @return [::Google::Cloud::ArtifactRegistry::V1beta2::Version]
1019
1242
  #
1020
1243
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1244
+ #
1245
+ # @example Basic example
1246
+ # require "google/cloud/artifact_registry/v1beta2"
1247
+ #
1248
+ # # Create a client object. The client can be reused for multiple calls.
1249
+ # client = Google::Cloud::ArtifactRegistry::V1beta2::ArtifactRegistry::Rest::Client.new
1250
+ #
1251
+ # # Create a request. To set request fields, pass in keyword arguments.
1252
+ # request = Google::Cloud::ArtifactRegistry::V1beta2::GetVersionRequest.new
1253
+ #
1254
+ # # Call the get_version method.
1255
+ # result = client.get_version request
1256
+ #
1257
+ # # The returned object is of type Google::Cloud::ArtifactRegistry::V1beta2::Version.
1258
+ # p result
1259
+ #
1021
1260
  def get_version request, options = nil
1022
1261
  raise ::ArgumentError, "request must be provided" if request.nil?
1023
1262
 
@@ -1084,6 +1323,29 @@ module Google
1084
1323
  # @return [::Gapic::Operation]
1085
1324
  #
1086
1325
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1326
+ #
1327
+ # @example Basic example
1328
+ # require "google/cloud/artifact_registry/v1beta2"
1329
+ #
1330
+ # # Create a client object. The client can be reused for multiple calls.
1331
+ # client = Google::Cloud::ArtifactRegistry::V1beta2::ArtifactRegistry::Rest::Client.new
1332
+ #
1333
+ # # Create a request. To set request fields, pass in keyword arguments.
1334
+ # request = Google::Cloud::ArtifactRegistry::V1beta2::DeleteVersionRequest.new
1335
+ #
1336
+ # # Call the delete_version method.
1337
+ # result = client.delete_version request
1338
+ #
1339
+ # # The returned object is of type Gapic::Operation. You can use it to
1340
+ # # check the status of an operation, cancel it, or wait for results.
1341
+ # # Here is how to wait for a response.
1342
+ # result.wait_until_done! timeout: 60
1343
+ # if result.response?
1344
+ # p result.response
1345
+ # else
1346
+ # puts "No response received."
1347
+ # end
1348
+ #
1087
1349
  def delete_version request, options = nil
1088
1350
  raise ::ArgumentError, "request must be provided" if request.nil?
1089
1351
 
@@ -1165,6 +1427,26 @@ module Google
1165
1427
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::ArtifactRegistry::V1beta2::File>]
1166
1428
  #
1167
1429
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1430
+ #
1431
+ # @example Basic example
1432
+ # require "google/cloud/artifact_registry/v1beta2"
1433
+ #
1434
+ # # Create a client object. The client can be reused for multiple calls.
1435
+ # client = Google::Cloud::ArtifactRegistry::V1beta2::ArtifactRegistry::Rest::Client.new
1436
+ #
1437
+ # # Create a request. To set request fields, pass in keyword arguments.
1438
+ # request = Google::Cloud::ArtifactRegistry::V1beta2::ListFilesRequest.new
1439
+ #
1440
+ # # Call the list_files method.
1441
+ # result = client.list_files request
1442
+ #
1443
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1444
+ # # over elements, and API calls will be issued to fetch pages as needed.
1445
+ # result.each do |item|
1446
+ # # Each element is of type ::Google::Cloud::ArtifactRegistry::V1beta2::File.
1447
+ # p item
1448
+ # end
1449
+ #
1168
1450
  def list_files request, options = nil
1169
1451
  raise ::ArgumentError, "request must be provided" if request.nil?
1170
1452
 
@@ -1228,6 +1510,22 @@ module Google
1228
1510
  # @return [::Google::Cloud::ArtifactRegistry::V1beta2::File]
1229
1511
  #
1230
1512
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1513
+ #
1514
+ # @example Basic example
1515
+ # require "google/cloud/artifact_registry/v1beta2"
1516
+ #
1517
+ # # Create a client object. The client can be reused for multiple calls.
1518
+ # client = Google::Cloud::ArtifactRegistry::V1beta2::ArtifactRegistry::Rest::Client.new
1519
+ #
1520
+ # # Create a request. To set request fields, pass in keyword arguments.
1521
+ # request = Google::Cloud::ArtifactRegistry::V1beta2::GetFileRequest.new
1522
+ #
1523
+ # # Call the get_file method.
1524
+ # result = client.get_file request
1525
+ #
1526
+ # # The returned object is of type Google::Cloud::ArtifactRegistry::V1beta2::File.
1527
+ # p result
1528
+ #
1231
1529
  def get_file request, options = nil
1232
1530
  raise ::ArgumentError, "request must be provided" if request.nil?
1233
1531
 
@@ -1304,6 +1602,26 @@ module Google
1304
1602
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::ArtifactRegistry::V1beta2::Tag>]
1305
1603
  #
1306
1604
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1605
+ #
1606
+ # @example Basic example
1607
+ # require "google/cloud/artifact_registry/v1beta2"
1608
+ #
1609
+ # # Create a client object. The client can be reused for multiple calls.
1610
+ # client = Google::Cloud::ArtifactRegistry::V1beta2::ArtifactRegistry::Rest::Client.new
1611
+ #
1612
+ # # Create a request. To set request fields, pass in keyword arguments.
1613
+ # request = Google::Cloud::ArtifactRegistry::V1beta2::ListTagsRequest.new
1614
+ #
1615
+ # # Call the list_tags method.
1616
+ # result = client.list_tags request
1617
+ #
1618
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1619
+ # # over elements, and API calls will be issued to fetch pages as needed.
1620
+ # result.each do |item|
1621
+ # # Each element is of type ::Google::Cloud::ArtifactRegistry::V1beta2::Tag.
1622
+ # p item
1623
+ # end
1624
+ #
1307
1625
  def list_tags request, options = nil
1308
1626
  raise ::ArgumentError, "request must be provided" if request.nil?
1309
1627
 
@@ -1367,6 +1685,22 @@ module Google
1367
1685
  # @return [::Google::Cloud::ArtifactRegistry::V1beta2::Tag]
1368
1686
  #
1369
1687
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1688
+ #
1689
+ # @example Basic example
1690
+ # require "google/cloud/artifact_registry/v1beta2"
1691
+ #
1692
+ # # Create a client object. The client can be reused for multiple calls.
1693
+ # client = Google::Cloud::ArtifactRegistry::V1beta2::ArtifactRegistry::Rest::Client.new
1694
+ #
1695
+ # # Create a request. To set request fields, pass in keyword arguments.
1696
+ # request = Google::Cloud::ArtifactRegistry::V1beta2::GetTagRequest.new
1697
+ #
1698
+ # # Call the get_tag method.
1699
+ # result = client.get_tag request
1700
+ #
1701
+ # # The returned object is of type Google::Cloud::ArtifactRegistry::V1beta2::Tag.
1702
+ # p result
1703
+ #
1370
1704
  def get_tag request, options = nil
1371
1705
  raise ::ArgumentError, "request must be provided" if request.nil?
1372
1706
 
@@ -1433,6 +1767,22 @@ module Google
1433
1767
  # @return [::Google::Cloud::ArtifactRegistry::V1beta2::Tag]
1434
1768
  #
1435
1769
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1770
+ #
1771
+ # @example Basic example
1772
+ # require "google/cloud/artifact_registry/v1beta2"
1773
+ #
1774
+ # # Create a client object. The client can be reused for multiple calls.
1775
+ # client = Google::Cloud::ArtifactRegistry::V1beta2::ArtifactRegistry::Rest::Client.new
1776
+ #
1777
+ # # Create a request. To set request fields, pass in keyword arguments.
1778
+ # request = Google::Cloud::ArtifactRegistry::V1beta2::CreateTagRequest.new
1779
+ #
1780
+ # # Call the create_tag method.
1781
+ # result = client.create_tag request
1782
+ #
1783
+ # # The returned object is of type Google::Cloud::ArtifactRegistry::V1beta2::Tag.
1784
+ # p result
1785
+ #
1436
1786
  def create_tag request, options = nil
1437
1787
  raise ::ArgumentError, "request must be provided" if request.nil?
1438
1788
 
@@ -1499,6 +1849,22 @@ module Google
1499
1849
  # @return [::Google::Cloud::ArtifactRegistry::V1beta2::Tag]
1500
1850
  #
1501
1851
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1852
+ #
1853
+ # @example Basic example
1854
+ # require "google/cloud/artifact_registry/v1beta2"
1855
+ #
1856
+ # # Create a client object. The client can be reused for multiple calls.
1857
+ # client = Google::Cloud::ArtifactRegistry::V1beta2::ArtifactRegistry::Rest::Client.new
1858
+ #
1859
+ # # Create a request. To set request fields, pass in keyword arguments.
1860
+ # request = Google::Cloud::ArtifactRegistry::V1beta2::UpdateTagRequest.new
1861
+ #
1862
+ # # Call the update_tag method.
1863
+ # result = client.update_tag request
1864
+ #
1865
+ # # The returned object is of type Google::Cloud::ArtifactRegistry::V1beta2::Tag.
1866
+ # p result
1867
+ #
1502
1868
  def update_tag request, options = nil
1503
1869
  raise ::ArgumentError, "request must be provided" if request.nil?
1504
1870
 
@@ -1561,6 +1927,22 @@ module Google
1561
1927
  # @return [::Google::Protobuf::Empty]
1562
1928
  #
1563
1929
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1930
+ #
1931
+ # @example Basic example
1932
+ # require "google/cloud/artifact_registry/v1beta2"
1933
+ #
1934
+ # # Create a client object. The client can be reused for multiple calls.
1935
+ # client = Google::Cloud::ArtifactRegistry::V1beta2::ArtifactRegistry::Rest::Client.new
1936
+ #
1937
+ # # Create a request. To set request fields, pass in keyword arguments.
1938
+ # request = Google::Cloud::ArtifactRegistry::V1beta2::DeleteTagRequest.new
1939
+ #
1940
+ # # Call the delete_tag method.
1941
+ # result = client.delete_tag request
1942
+ #
1943
+ # # The returned object is of type Google::Protobuf::Empty.
1944
+ # p result
1945
+ #
1564
1946
  def delete_tag request, options = nil
1565
1947
  raise ::ArgumentError, "request must be provided" if request.nil?
1566
1948
 
@@ -1635,6 +2017,22 @@ module Google
1635
2017
  # @return [::Google::Iam::V1::Policy]
1636
2018
  #
1637
2019
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2020
+ #
2021
+ # @example Basic example
2022
+ # require "google/cloud/artifact_registry/v1beta2"
2023
+ #
2024
+ # # Create a client object. The client can be reused for multiple calls.
2025
+ # client = Google::Cloud::ArtifactRegistry::V1beta2::ArtifactRegistry::Rest::Client.new
2026
+ #
2027
+ # # Create a request. To set request fields, pass in keyword arguments.
2028
+ # request = Google::Iam::V1::SetIamPolicyRequest.new
2029
+ #
2030
+ # # Call the set_iam_policy method.
2031
+ # result = client.set_iam_policy request
2032
+ #
2033
+ # # The returned object is of type Google::Iam::V1::Policy.
2034
+ # p result
2035
+ #
1638
2036
  def set_iam_policy request, options = nil
1639
2037
  raise ::ArgumentError, "request must be provided" if request.nil?
1640
2038
 
@@ -1701,6 +2099,22 @@ module Google
1701
2099
  # @return [::Google::Iam::V1::Policy]
1702
2100
  #
1703
2101
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2102
+ #
2103
+ # @example Basic example
2104
+ # require "google/cloud/artifact_registry/v1beta2"
2105
+ #
2106
+ # # Create a client object. The client can be reused for multiple calls.
2107
+ # client = Google::Cloud::ArtifactRegistry::V1beta2::ArtifactRegistry::Rest::Client.new
2108
+ #
2109
+ # # Create a request. To set request fields, pass in keyword arguments.
2110
+ # request = Google::Iam::V1::GetIamPolicyRequest.new
2111
+ #
2112
+ # # Call the get_iam_policy method.
2113
+ # result = client.get_iam_policy request
2114
+ #
2115
+ # # The returned object is of type Google::Iam::V1::Policy.
2116
+ # p result
2117
+ #
1704
2118
  def get_iam_policy request, options = nil
1705
2119
  raise ::ArgumentError, "request must be provided" if request.nil?
1706
2120
 
@@ -1769,6 +2183,22 @@ module Google
1769
2183
  # @return [::Google::Iam::V1::TestIamPermissionsResponse]
1770
2184
  #
1771
2185
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2186
+ #
2187
+ # @example Basic example
2188
+ # require "google/cloud/artifact_registry/v1beta2"
2189
+ #
2190
+ # # Create a client object. The client can be reused for multiple calls.
2191
+ # client = Google::Cloud::ArtifactRegistry::V1beta2::ArtifactRegistry::Rest::Client.new
2192
+ #
2193
+ # # Create a request. To set request fields, pass in keyword arguments.
2194
+ # request = Google::Iam::V1::TestIamPermissionsRequest.new
2195
+ #
2196
+ # # Call the test_iam_permissions method.
2197
+ # result = client.test_iam_permissions request
2198
+ #
2199
+ # # The returned object is of type Google::Iam::V1::TestIamPermissionsResponse.
2200
+ # p result
2201
+ #
1772
2202
  def test_iam_permissions request, options = nil
1773
2203
  raise ::ArgumentError, "request must be provided" if request.nil?
1774
2204
 
@@ -1831,6 +2261,22 @@ module Google
1831
2261
  # @return [::Google::Cloud::ArtifactRegistry::V1beta2::ProjectSettings]
1832
2262
  #
1833
2263
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2264
+ #
2265
+ # @example Basic example
2266
+ # require "google/cloud/artifact_registry/v1beta2"
2267
+ #
2268
+ # # Create a client object. The client can be reused for multiple calls.
2269
+ # client = Google::Cloud::ArtifactRegistry::V1beta2::ArtifactRegistry::Rest::Client.new
2270
+ #
2271
+ # # Create a request. To set request fields, pass in keyword arguments.
2272
+ # request = Google::Cloud::ArtifactRegistry::V1beta2::GetProjectSettingsRequest.new
2273
+ #
2274
+ # # Call the get_project_settings method.
2275
+ # result = client.get_project_settings request
2276
+ #
2277
+ # # The returned object is of type Google::Cloud::ArtifactRegistry::V1beta2::ProjectSettings.
2278
+ # p result
2279
+ #
1834
2280
  def get_project_settings request, options = nil
1835
2281
  raise ::ArgumentError, "request must be provided" if request.nil?
1836
2282
 
@@ -1895,6 +2341,22 @@ module Google
1895
2341
  # @return [::Google::Cloud::ArtifactRegistry::V1beta2::ProjectSettings]
1896
2342
  #
1897
2343
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2344
+ #
2345
+ # @example Basic example
2346
+ # require "google/cloud/artifact_registry/v1beta2"
2347
+ #
2348
+ # # Create a client object. The client can be reused for multiple calls.
2349
+ # client = Google::Cloud::ArtifactRegistry::V1beta2::ArtifactRegistry::Rest::Client.new
2350
+ #
2351
+ # # Create a request. To set request fields, pass in keyword arguments.
2352
+ # request = Google::Cloud::ArtifactRegistry::V1beta2::UpdateProjectSettingsRequest.new
2353
+ #
2354
+ # # Call the update_project_settings method.
2355
+ # result = client.update_project_settings request
2356
+ #
2357
+ # # The returned object is of type Google::Cloud::ArtifactRegistry::V1beta2::ProjectSettings.
2358
+ # p result
2359
+ #
1898
2360
  def update_project_settings request, options = nil
1899
2361
  raise ::ArgumentError, "request must be provided" if request.nil?
1900
2362
 
@@ -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 V1beta2
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-v1beta2
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
@@ -273,7 +273,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
273
273
  - !ruby/object:Gem::Version
274
274
  version: '0'
275
275
  requirements: []
276
- rubygems_version: 3.4.2
276
+ rubygems_version: 3.4.19
277
277
  signing_key:
278
278
  specification_version: 4
279
279
  summary: Store and manage build artifacts in a scalable and integrated service built