google-cloud-artifact_registry-v1 0.9.1 → 0.11.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 +4 -4
- data/lib/google/cloud/artifact_registry/v1/artifact_registry/client.rb +125 -6
- data/lib/google/cloud/artifact_registry/v1/artifact_registry/operations.rb +10 -1
- data/lib/google/cloud/artifact_registry/v1/artifact_registry/paths.rb +42 -0
- data/lib/google/cloud/artifact_registry/v1/artifact_registry/rest/client.rb +746 -5
- data/lib/google/cloud/artifact_registry/v1/artifact_registry/rest/operations.rb +75 -0
- data/lib/google/cloud/artifact_registry/v1/artifact_registry/rest/service_stub.rb +60 -0
- data/lib/google/cloud/artifact_registry/v1/version.rb +1 -1
- data/lib/google/devtools/artifactregistry/v1/repository_pb.rb +29 -1
- data/lib/google/devtools/artifactregistry/v1/service_pb.rb +1 -1
- data/lib/google/devtools/artifactregistry/v1/service_services_pb.rb +3 -0
- data/lib/google/devtools/artifactregistry/v1/version_pb.rb +2 -1
- data/proto_docs/google/api/field_behavior.rb +14 -0
- data/proto_docs/google/devtools/artifactregistry/v1/package.rb +1 -1
- data/proto_docs/google/devtools/artifactregistry/v1/repository.rb +411 -10
- data/proto_docs/google/devtools/artifactregistry/v1/tag.rb +3 -1
- data/proto_docs/google/devtools/artifactregistry/v1/version.rb +16 -0
- metadata +5 -5
@@ -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
|
|
@@ -854,7 +1044,8 @@ module Google
|
|
854
1044
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
855
1045
|
#
|
856
1046
|
# @param parent [::String]
|
857
|
-
# Required. The name of the parent resource whose repositories will be
|
1047
|
+
# Required. The name of the parent resource whose repositories will be
|
1048
|
+
# listed.
|
858
1049
|
# @param page_size [::Integer]
|
859
1050
|
# The maximum number of repositories to return. Maximum page size is 1,000.
|
860
1051
|
# @param page_token [::String]
|
@@ -866,6 +1057,26 @@ module Google
|
|
866
1057
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::ArtifactRegistry::V1::Repository>]
|
867
1058
|
#
|
868
1059
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1060
|
+
#
|
1061
|
+
# @example Basic example
|
1062
|
+
# require "google/cloud/artifact_registry/v1"
|
1063
|
+
#
|
1064
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1065
|
+
# client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Rest::Client.new
|
1066
|
+
#
|
1067
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1068
|
+
# request = Google::Cloud::ArtifactRegistry::V1::ListRepositoriesRequest.new
|
1069
|
+
#
|
1070
|
+
# # Call the list_repositories method.
|
1071
|
+
# result = client.list_repositories request
|
1072
|
+
#
|
1073
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
1074
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
1075
|
+
# result.each do |item|
|
1076
|
+
# # Each element is of type ::Google::Cloud::ArtifactRegistry::V1::Repository.
|
1077
|
+
# p item
|
1078
|
+
# end
|
1079
|
+
#
|
869
1080
|
def list_repositories request, options = nil
|
870
1081
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
871
1082
|
|
@@ -929,6 +1140,22 @@ module Google
|
|
929
1140
|
# @return [::Google::Cloud::ArtifactRegistry::V1::Repository]
|
930
1141
|
#
|
931
1142
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1143
|
+
#
|
1144
|
+
# @example Basic example
|
1145
|
+
# require "google/cloud/artifact_registry/v1"
|
1146
|
+
#
|
1147
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1148
|
+
# client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Rest::Client.new
|
1149
|
+
#
|
1150
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1151
|
+
# request = Google::Cloud::ArtifactRegistry::V1::GetRepositoryRequest.new
|
1152
|
+
#
|
1153
|
+
# # Call the get_repository method.
|
1154
|
+
# result = client.get_repository request
|
1155
|
+
#
|
1156
|
+
# # The returned object is of type Google::Cloud::ArtifactRegistry::V1::Repository.
|
1157
|
+
# p result
|
1158
|
+
#
|
932
1159
|
def get_repository request, options = nil
|
933
1160
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
934
1161
|
|
@@ -984,11 +1211,12 @@ module Google
|
|
984
1211
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
985
1212
|
#
|
986
1213
|
# @param parent [::String]
|
987
|
-
# Required. The name of the parent resource where the repository will be
|
1214
|
+
# Required. The name of the parent resource where the repository will be
|
1215
|
+
# created.
|
988
1216
|
# @param repository_id [::String]
|
989
|
-
# The repository id to use for this repository.
|
1217
|
+
# Required. The repository id to use for this repository.
|
990
1218
|
# @param repository [::Google::Cloud::ArtifactRegistry::V1::Repository, ::Hash]
|
991
|
-
# The repository to be created.
|
1219
|
+
# Required. The repository to be created.
|
992
1220
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
993
1221
|
# @yieldparam result [::Gapic::Operation]
|
994
1222
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -996,6 +1224,29 @@ module Google
|
|
996
1224
|
# @return [::Gapic::Operation]
|
997
1225
|
#
|
998
1226
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1227
|
+
#
|
1228
|
+
# @example Basic example
|
1229
|
+
# require "google/cloud/artifact_registry/v1"
|
1230
|
+
#
|
1231
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1232
|
+
# client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Rest::Client.new
|
1233
|
+
#
|
1234
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1235
|
+
# request = Google::Cloud::ArtifactRegistry::V1::CreateRepositoryRequest.new
|
1236
|
+
#
|
1237
|
+
# # Call the create_repository method.
|
1238
|
+
# result = client.create_repository request
|
1239
|
+
#
|
1240
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1241
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1242
|
+
# # Here is how to wait for a response.
|
1243
|
+
# result.wait_until_done! timeout: 60
|
1244
|
+
# if result.response?
|
1245
|
+
# p result.response
|
1246
|
+
# else
|
1247
|
+
# puts "No response received."
|
1248
|
+
# end
|
1249
|
+
#
|
999
1250
|
def create_repository request, options = nil
|
1000
1251
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1001
1252
|
|
@@ -1063,6 +1314,22 @@ module Google
|
|
1063
1314
|
# @return [::Google::Cloud::ArtifactRegistry::V1::Repository]
|
1064
1315
|
#
|
1065
1316
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1317
|
+
#
|
1318
|
+
# @example Basic example
|
1319
|
+
# require "google/cloud/artifact_registry/v1"
|
1320
|
+
#
|
1321
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1322
|
+
# client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Rest::Client.new
|
1323
|
+
#
|
1324
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1325
|
+
# request = Google::Cloud::ArtifactRegistry::V1::UpdateRepositoryRequest.new
|
1326
|
+
#
|
1327
|
+
# # Call the update_repository method.
|
1328
|
+
# result = client.update_repository request
|
1329
|
+
#
|
1330
|
+
# # The returned object is of type Google::Cloud::ArtifactRegistry::V1::Repository.
|
1331
|
+
# p result
|
1332
|
+
#
|
1066
1333
|
def update_repository request, options = nil
|
1067
1334
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1068
1335
|
|
@@ -1127,6 +1394,29 @@ module Google
|
|
1127
1394
|
# @return [::Gapic::Operation]
|
1128
1395
|
#
|
1129
1396
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1397
|
+
#
|
1398
|
+
# @example Basic example
|
1399
|
+
# require "google/cloud/artifact_registry/v1"
|
1400
|
+
#
|
1401
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1402
|
+
# client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Rest::Client.new
|
1403
|
+
#
|
1404
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1405
|
+
# request = Google::Cloud::ArtifactRegistry::V1::DeleteRepositoryRequest.new
|
1406
|
+
#
|
1407
|
+
# # Call the delete_repository method.
|
1408
|
+
# result = client.delete_repository request
|
1409
|
+
#
|
1410
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1411
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1412
|
+
# # Here is how to wait for a response.
|
1413
|
+
# result.wait_until_done! timeout: 60
|
1414
|
+
# if result.response?
|
1415
|
+
# p result.response
|
1416
|
+
# else
|
1417
|
+
# puts "No response received."
|
1418
|
+
# end
|
1419
|
+
#
|
1130
1420
|
def delete_repository request, options = nil
|
1131
1421
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1132
1422
|
|
@@ -1194,6 +1484,26 @@ module Google
|
|
1194
1484
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::ArtifactRegistry::V1::Package>]
|
1195
1485
|
#
|
1196
1486
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1487
|
+
#
|
1488
|
+
# @example Basic example
|
1489
|
+
# require "google/cloud/artifact_registry/v1"
|
1490
|
+
#
|
1491
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1492
|
+
# client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Rest::Client.new
|
1493
|
+
#
|
1494
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1495
|
+
# request = Google::Cloud::ArtifactRegistry::V1::ListPackagesRequest.new
|
1496
|
+
#
|
1497
|
+
# # Call the list_packages method.
|
1498
|
+
# result = client.list_packages request
|
1499
|
+
#
|
1500
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
1501
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
1502
|
+
# result.each do |item|
|
1503
|
+
# # Each element is of type ::Google::Cloud::ArtifactRegistry::V1::Package.
|
1504
|
+
# p item
|
1505
|
+
# end
|
1506
|
+
#
|
1197
1507
|
def list_packages request, options = nil
|
1198
1508
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1199
1509
|
|
@@ -1257,6 +1567,22 @@ module Google
|
|
1257
1567
|
# @return [::Google::Cloud::ArtifactRegistry::V1::Package]
|
1258
1568
|
#
|
1259
1569
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1570
|
+
#
|
1571
|
+
# @example Basic example
|
1572
|
+
# require "google/cloud/artifact_registry/v1"
|
1573
|
+
#
|
1574
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1575
|
+
# client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Rest::Client.new
|
1576
|
+
#
|
1577
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1578
|
+
# request = Google::Cloud::ArtifactRegistry::V1::GetPackageRequest.new
|
1579
|
+
#
|
1580
|
+
# # Call the get_package method.
|
1581
|
+
# result = client.get_package request
|
1582
|
+
#
|
1583
|
+
# # The returned object is of type Google::Cloud::ArtifactRegistry::V1::Package.
|
1584
|
+
# p result
|
1585
|
+
#
|
1260
1586
|
def get_package request, options = nil
|
1261
1587
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1262
1588
|
|
@@ -1320,6 +1646,29 @@ module Google
|
|
1320
1646
|
# @return [::Gapic::Operation]
|
1321
1647
|
#
|
1322
1648
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1649
|
+
#
|
1650
|
+
# @example Basic example
|
1651
|
+
# require "google/cloud/artifact_registry/v1"
|
1652
|
+
#
|
1653
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1654
|
+
# client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Rest::Client.new
|
1655
|
+
#
|
1656
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1657
|
+
# request = Google::Cloud::ArtifactRegistry::V1::DeletePackageRequest.new
|
1658
|
+
#
|
1659
|
+
# # Call the delete_package method.
|
1660
|
+
# result = client.delete_package request
|
1661
|
+
#
|
1662
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1663
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1664
|
+
# # Here is how to wait for a response.
|
1665
|
+
# result.wait_until_done! timeout: 60
|
1666
|
+
# if result.response?
|
1667
|
+
# p result.response
|
1668
|
+
# else
|
1669
|
+
# puts "No response received."
|
1670
|
+
# end
|
1671
|
+
#
|
1323
1672
|
def delete_package request, options = nil
|
1324
1673
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1325
1674
|
|
@@ -1391,6 +1740,26 @@ module Google
|
|
1391
1740
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::ArtifactRegistry::V1::Version>]
|
1392
1741
|
#
|
1393
1742
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1743
|
+
#
|
1744
|
+
# @example Basic example
|
1745
|
+
# require "google/cloud/artifact_registry/v1"
|
1746
|
+
#
|
1747
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1748
|
+
# client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Rest::Client.new
|
1749
|
+
#
|
1750
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1751
|
+
# request = Google::Cloud::ArtifactRegistry::V1::ListVersionsRequest.new
|
1752
|
+
#
|
1753
|
+
# # Call the list_versions method.
|
1754
|
+
# result = client.list_versions request
|
1755
|
+
#
|
1756
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
1757
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
1758
|
+
# result.each do |item|
|
1759
|
+
# # Each element is of type ::Google::Cloud::ArtifactRegistry::V1::Version.
|
1760
|
+
# p item
|
1761
|
+
# end
|
1762
|
+
#
|
1394
1763
|
def list_versions request, options = nil
|
1395
1764
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1396
1765
|
|
@@ -1456,6 +1825,22 @@ module Google
|
|
1456
1825
|
# @return [::Google::Cloud::ArtifactRegistry::V1::Version]
|
1457
1826
|
#
|
1458
1827
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1828
|
+
#
|
1829
|
+
# @example Basic example
|
1830
|
+
# require "google/cloud/artifact_registry/v1"
|
1831
|
+
#
|
1832
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1833
|
+
# client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Rest::Client.new
|
1834
|
+
#
|
1835
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1836
|
+
# request = Google::Cloud::ArtifactRegistry::V1::GetVersionRequest.new
|
1837
|
+
#
|
1838
|
+
# # Call the get_version method.
|
1839
|
+
# result = client.get_version request
|
1840
|
+
#
|
1841
|
+
# # The returned object is of type Google::Cloud::ArtifactRegistry::V1::Version.
|
1842
|
+
# p result
|
1843
|
+
#
|
1459
1844
|
def get_version request, options = nil
|
1460
1845
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1461
1846
|
|
@@ -1522,6 +1907,29 @@ module Google
|
|
1522
1907
|
# @return [::Gapic::Operation]
|
1523
1908
|
#
|
1524
1909
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1910
|
+
#
|
1911
|
+
# @example Basic example
|
1912
|
+
# require "google/cloud/artifact_registry/v1"
|
1913
|
+
#
|
1914
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1915
|
+
# client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Rest::Client.new
|
1916
|
+
#
|
1917
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1918
|
+
# request = Google::Cloud::ArtifactRegistry::V1::DeleteVersionRequest.new
|
1919
|
+
#
|
1920
|
+
# # Call the delete_version method.
|
1921
|
+
# result = client.delete_version request
|
1922
|
+
#
|
1923
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1924
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1925
|
+
# # Here is how to wait for a response.
|
1926
|
+
# result.wait_until_done! timeout: 60
|
1927
|
+
# if result.response?
|
1928
|
+
# p result.response
|
1929
|
+
# else
|
1930
|
+
# puts "No response received."
|
1931
|
+
# end
|
1932
|
+
#
|
1525
1933
|
def delete_version request, options = nil
|
1526
1934
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1527
1935
|
|
@@ -1558,6 +1966,98 @@ module Google
|
|
1558
1966
|
raise ::Google::Cloud::Error.from_error(e)
|
1559
1967
|
end
|
1560
1968
|
|
1969
|
+
##
|
1970
|
+
# Deletes multiple versions across a repository. The returned operation will
|
1971
|
+
# complete once the versions have been deleted.
|
1972
|
+
#
|
1973
|
+
# @overload batch_delete_versions(request, options = nil)
|
1974
|
+
# Pass arguments to `batch_delete_versions` via a request object, either of type
|
1975
|
+
# {::Google::Cloud::ArtifactRegistry::V1::BatchDeleteVersionsRequest} or an equivalent Hash.
|
1976
|
+
#
|
1977
|
+
# @param request [::Google::Cloud::ArtifactRegistry::V1::BatchDeleteVersionsRequest, ::Hash]
|
1978
|
+
# A request object representing the call parameters. Required. To specify no
|
1979
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1980
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1981
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1982
|
+
#
|
1983
|
+
# @overload batch_delete_versions(parent: nil, names: nil, validate_only: nil)
|
1984
|
+
# Pass arguments to `batch_delete_versions` via keyword arguments. Note that at
|
1985
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1986
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1987
|
+
#
|
1988
|
+
# @param parent [::String]
|
1989
|
+
# The name of the repository holding all requested versions.
|
1990
|
+
# @param names [::Array<::String>]
|
1991
|
+
# Required. The names of the versions to delete.
|
1992
|
+
# A maximum of 10000 versions can be deleted in a batch.
|
1993
|
+
# @param validate_only [::Boolean]
|
1994
|
+
# If true, the request is performed without deleting data, following AIP-163.
|
1995
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1996
|
+
# @yieldparam result [::Gapic::Operation]
|
1997
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1998
|
+
#
|
1999
|
+
# @return [::Gapic::Operation]
|
2000
|
+
#
|
2001
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2002
|
+
#
|
2003
|
+
# @example Basic example
|
2004
|
+
# require "google/cloud/artifact_registry/v1"
|
2005
|
+
#
|
2006
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2007
|
+
# client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Rest::Client.new
|
2008
|
+
#
|
2009
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2010
|
+
# request = Google::Cloud::ArtifactRegistry::V1::BatchDeleteVersionsRequest.new
|
2011
|
+
#
|
2012
|
+
# # Call the batch_delete_versions method.
|
2013
|
+
# result = client.batch_delete_versions request
|
2014
|
+
#
|
2015
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
2016
|
+
# # check the status of an operation, cancel it, or wait for results.
|
2017
|
+
# # Here is how to wait for a response.
|
2018
|
+
# result.wait_until_done! timeout: 60
|
2019
|
+
# if result.response?
|
2020
|
+
# p result.response
|
2021
|
+
# else
|
2022
|
+
# puts "No response received."
|
2023
|
+
# end
|
2024
|
+
#
|
2025
|
+
def batch_delete_versions request, options = nil
|
2026
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
2027
|
+
|
2028
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ArtifactRegistry::V1::BatchDeleteVersionsRequest
|
2029
|
+
|
2030
|
+
# Converts hash and nil to an options object
|
2031
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2032
|
+
|
2033
|
+
# Customize the options with defaults
|
2034
|
+
call_metadata = @config.rpcs.batch_delete_versions.metadata.to_h
|
2035
|
+
|
2036
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
2037
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2038
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2039
|
+
gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION,
|
2040
|
+
transports_version_send: [:rest]
|
2041
|
+
|
2042
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2043
|
+
|
2044
|
+
options.apply_defaults timeout: @config.rpcs.batch_delete_versions.timeout,
|
2045
|
+
metadata: call_metadata,
|
2046
|
+
retry_policy: @config.rpcs.batch_delete_versions.retry_policy
|
2047
|
+
|
2048
|
+
options.apply_defaults timeout: @config.timeout,
|
2049
|
+
metadata: @config.metadata,
|
2050
|
+
retry_policy: @config.retry_policy
|
2051
|
+
|
2052
|
+
@artifact_registry_stub.batch_delete_versions request, options do |result, operation|
|
2053
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
2054
|
+
yield result, operation if block_given?
|
2055
|
+
return result
|
2056
|
+
end
|
2057
|
+
rescue ::Gapic::Rest::Error => e
|
2058
|
+
raise ::Google::Cloud::Error.from_error(e)
|
2059
|
+
end
|
2060
|
+
|
1561
2061
|
##
|
1562
2062
|
# Lists files.
|
1563
2063
|
#
|
@@ -1605,6 +2105,26 @@ module Google
|
|
1605
2105
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::ArtifactRegistry::V1::File>]
|
1606
2106
|
#
|
1607
2107
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2108
|
+
#
|
2109
|
+
# @example Basic example
|
2110
|
+
# require "google/cloud/artifact_registry/v1"
|
2111
|
+
#
|
2112
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2113
|
+
# client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Rest::Client.new
|
2114
|
+
#
|
2115
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2116
|
+
# request = Google::Cloud::ArtifactRegistry::V1::ListFilesRequest.new
|
2117
|
+
#
|
2118
|
+
# # Call the list_files method.
|
2119
|
+
# result = client.list_files request
|
2120
|
+
#
|
2121
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
2122
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
2123
|
+
# result.each do |item|
|
2124
|
+
# # Each element is of type ::Google::Cloud::ArtifactRegistry::V1::File.
|
2125
|
+
# p item
|
2126
|
+
# end
|
2127
|
+
#
|
1608
2128
|
def list_files request, options = nil
|
1609
2129
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1610
2130
|
|
@@ -1668,6 +2188,22 @@ module Google
|
|
1668
2188
|
# @return [::Google::Cloud::ArtifactRegistry::V1::File]
|
1669
2189
|
#
|
1670
2190
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2191
|
+
#
|
2192
|
+
# @example Basic example
|
2193
|
+
# require "google/cloud/artifact_registry/v1"
|
2194
|
+
#
|
2195
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2196
|
+
# client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Rest::Client.new
|
2197
|
+
#
|
2198
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2199
|
+
# request = Google::Cloud::ArtifactRegistry::V1::GetFileRequest.new
|
2200
|
+
#
|
2201
|
+
# # Call the get_file method.
|
2202
|
+
# result = client.get_file request
|
2203
|
+
#
|
2204
|
+
# # The returned object is of type Google::Cloud::ArtifactRegistry::V1::File.
|
2205
|
+
# p result
|
2206
|
+
#
|
1671
2207
|
def get_file request, options = nil
|
1672
2208
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1673
2209
|
|
@@ -1722,7 +2258,9 @@ module Google
|
|
1722
2258
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1723
2259
|
#
|
1724
2260
|
# @param parent [::String]
|
1725
|
-
# The name of the parent
|
2261
|
+
# The name of the parent package whose tags will be listed.
|
2262
|
+
# For example:
|
2263
|
+
# `projects/p1/locations/us-central1/repositories/repo1/packages/pkg1`.
|
1726
2264
|
# @param filter [::String]
|
1727
2265
|
# An expression for filtering the results of the request. Filter rules are
|
1728
2266
|
# case insensitive. The fields eligible for filtering are:
|
@@ -1744,6 +2282,26 @@ module Google
|
|
1744
2282
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::ArtifactRegistry::V1::Tag>]
|
1745
2283
|
#
|
1746
2284
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2285
|
+
#
|
2286
|
+
# @example Basic example
|
2287
|
+
# require "google/cloud/artifact_registry/v1"
|
2288
|
+
#
|
2289
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2290
|
+
# client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Rest::Client.new
|
2291
|
+
#
|
2292
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2293
|
+
# request = Google::Cloud::ArtifactRegistry::V1::ListTagsRequest.new
|
2294
|
+
#
|
2295
|
+
# # Call the list_tags method.
|
2296
|
+
# result = client.list_tags request
|
2297
|
+
#
|
2298
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
2299
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
2300
|
+
# result.each do |item|
|
2301
|
+
# # Each element is of type ::Google::Cloud::ArtifactRegistry::V1::Tag.
|
2302
|
+
# p item
|
2303
|
+
# end
|
2304
|
+
#
|
1747
2305
|
def list_tags request, options = nil
|
1748
2306
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1749
2307
|
|
@@ -1807,6 +2365,22 @@ module Google
|
|
1807
2365
|
# @return [::Google::Cloud::ArtifactRegistry::V1::Tag]
|
1808
2366
|
#
|
1809
2367
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2368
|
+
#
|
2369
|
+
# @example Basic example
|
2370
|
+
# require "google/cloud/artifact_registry/v1"
|
2371
|
+
#
|
2372
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2373
|
+
# client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Rest::Client.new
|
2374
|
+
#
|
2375
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2376
|
+
# request = Google::Cloud::ArtifactRegistry::V1::GetTagRequest.new
|
2377
|
+
#
|
2378
|
+
# # Call the get_tag method.
|
2379
|
+
# result = client.get_tag request
|
2380
|
+
#
|
2381
|
+
# # The returned object is of type Google::Cloud::ArtifactRegistry::V1::Tag.
|
2382
|
+
# p result
|
2383
|
+
#
|
1810
2384
|
def get_tag request, options = nil
|
1811
2385
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1812
2386
|
|
@@ -1873,6 +2447,22 @@ module Google
|
|
1873
2447
|
# @return [::Google::Cloud::ArtifactRegistry::V1::Tag]
|
1874
2448
|
#
|
1875
2449
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2450
|
+
#
|
2451
|
+
# @example Basic example
|
2452
|
+
# require "google/cloud/artifact_registry/v1"
|
2453
|
+
#
|
2454
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2455
|
+
# client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Rest::Client.new
|
2456
|
+
#
|
2457
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2458
|
+
# request = Google::Cloud::ArtifactRegistry::V1::CreateTagRequest.new
|
2459
|
+
#
|
2460
|
+
# # Call the create_tag method.
|
2461
|
+
# result = client.create_tag request
|
2462
|
+
#
|
2463
|
+
# # The returned object is of type Google::Cloud::ArtifactRegistry::V1::Tag.
|
2464
|
+
# p result
|
2465
|
+
#
|
1876
2466
|
def create_tag request, options = nil
|
1877
2467
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1878
2468
|
|
@@ -1939,6 +2529,22 @@ module Google
|
|
1939
2529
|
# @return [::Google::Cloud::ArtifactRegistry::V1::Tag]
|
1940
2530
|
#
|
1941
2531
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2532
|
+
#
|
2533
|
+
# @example Basic example
|
2534
|
+
# require "google/cloud/artifact_registry/v1"
|
2535
|
+
#
|
2536
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2537
|
+
# client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Rest::Client.new
|
2538
|
+
#
|
2539
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2540
|
+
# request = Google::Cloud::ArtifactRegistry::V1::UpdateTagRequest.new
|
2541
|
+
#
|
2542
|
+
# # Call the update_tag method.
|
2543
|
+
# result = client.update_tag request
|
2544
|
+
#
|
2545
|
+
# # The returned object is of type Google::Cloud::ArtifactRegistry::V1::Tag.
|
2546
|
+
# p result
|
2547
|
+
#
|
1942
2548
|
def update_tag request, options = nil
|
1943
2549
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1944
2550
|
|
@@ -2001,6 +2607,22 @@ module Google
|
|
2001
2607
|
# @return [::Google::Protobuf::Empty]
|
2002
2608
|
#
|
2003
2609
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2610
|
+
#
|
2611
|
+
# @example Basic example
|
2612
|
+
# require "google/cloud/artifact_registry/v1"
|
2613
|
+
#
|
2614
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2615
|
+
# client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Rest::Client.new
|
2616
|
+
#
|
2617
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2618
|
+
# request = Google::Cloud::ArtifactRegistry::V1::DeleteTagRequest.new
|
2619
|
+
#
|
2620
|
+
# # Call the delete_tag method.
|
2621
|
+
# result = client.delete_tag request
|
2622
|
+
#
|
2623
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
2624
|
+
# p result
|
2625
|
+
#
|
2004
2626
|
def delete_tag request, options = nil
|
2005
2627
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2006
2628
|
|
@@ -2075,6 +2697,22 @@ module Google
|
|
2075
2697
|
# @return [::Google::Iam::V1::Policy]
|
2076
2698
|
#
|
2077
2699
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2700
|
+
#
|
2701
|
+
# @example Basic example
|
2702
|
+
# require "google/cloud/artifact_registry/v1"
|
2703
|
+
#
|
2704
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2705
|
+
# client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Rest::Client.new
|
2706
|
+
#
|
2707
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2708
|
+
# request = Google::Iam::V1::SetIamPolicyRequest.new
|
2709
|
+
#
|
2710
|
+
# # Call the set_iam_policy method.
|
2711
|
+
# result = client.set_iam_policy request
|
2712
|
+
#
|
2713
|
+
# # The returned object is of type Google::Iam::V1::Policy.
|
2714
|
+
# p result
|
2715
|
+
#
|
2078
2716
|
def set_iam_policy request, options = nil
|
2079
2717
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2080
2718
|
|
@@ -2141,6 +2779,22 @@ module Google
|
|
2141
2779
|
# @return [::Google::Iam::V1::Policy]
|
2142
2780
|
#
|
2143
2781
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2782
|
+
#
|
2783
|
+
# @example Basic example
|
2784
|
+
# require "google/cloud/artifact_registry/v1"
|
2785
|
+
#
|
2786
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2787
|
+
# client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Rest::Client.new
|
2788
|
+
#
|
2789
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2790
|
+
# request = Google::Iam::V1::GetIamPolicyRequest.new
|
2791
|
+
#
|
2792
|
+
# # Call the get_iam_policy method.
|
2793
|
+
# result = client.get_iam_policy request
|
2794
|
+
#
|
2795
|
+
# # The returned object is of type Google::Iam::V1::Policy.
|
2796
|
+
# p result
|
2797
|
+
#
|
2144
2798
|
def get_iam_policy request, options = nil
|
2145
2799
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2146
2800
|
|
@@ -2209,6 +2863,22 @@ module Google
|
|
2209
2863
|
# @return [::Google::Iam::V1::TestIamPermissionsResponse]
|
2210
2864
|
#
|
2211
2865
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2866
|
+
#
|
2867
|
+
# @example Basic example
|
2868
|
+
# require "google/cloud/artifact_registry/v1"
|
2869
|
+
#
|
2870
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2871
|
+
# client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Rest::Client.new
|
2872
|
+
#
|
2873
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2874
|
+
# request = Google::Iam::V1::TestIamPermissionsRequest.new
|
2875
|
+
#
|
2876
|
+
# # Call the test_iam_permissions method.
|
2877
|
+
# result = client.test_iam_permissions request
|
2878
|
+
#
|
2879
|
+
# # The returned object is of type Google::Iam::V1::TestIamPermissionsResponse.
|
2880
|
+
# p result
|
2881
|
+
#
|
2212
2882
|
def test_iam_permissions request, options = nil
|
2213
2883
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2214
2884
|
|
@@ -2271,6 +2941,22 @@ module Google
|
|
2271
2941
|
# @return [::Google::Cloud::ArtifactRegistry::V1::ProjectSettings]
|
2272
2942
|
#
|
2273
2943
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2944
|
+
#
|
2945
|
+
# @example Basic example
|
2946
|
+
# require "google/cloud/artifact_registry/v1"
|
2947
|
+
#
|
2948
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2949
|
+
# client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Rest::Client.new
|
2950
|
+
#
|
2951
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2952
|
+
# request = Google::Cloud::ArtifactRegistry::V1::GetProjectSettingsRequest.new
|
2953
|
+
#
|
2954
|
+
# # Call the get_project_settings method.
|
2955
|
+
# result = client.get_project_settings request
|
2956
|
+
#
|
2957
|
+
# # The returned object is of type Google::Cloud::ArtifactRegistry::V1::ProjectSettings.
|
2958
|
+
# p result
|
2959
|
+
#
|
2274
2960
|
def get_project_settings request, options = nil
|
2275
2961
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2276
2962
|
|
@@ -2335,6 +3021,22 @@ module Google
|
|
2335
3021
|
# @return [::Google::Cloud::ArtifactRegistry::V1::ProjectSettings]
|
2336
3022
|
#
|
2337
3023
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
3024
|
+
#
|
3025
|
+
# @example Basic example
|
3026
|
+
# require "google/cloud/artifact_registry/v1"
|
3027
|
+
#
|
3028
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3029
|
+
# client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Rest::Client.new
|
3030
|
+
#
|
3031
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3032
|
+
# request = Google::Cloud::ArtifactRegistry::V1::UpdateProjectSettingsRequest.new
|
3033
|
+
#
|
3034
|
+
# # Call the update_project_settings method.
|
3035
|
+
# result = client.update_project_settings request
|
3036
|
+
#
|
3037
|
+
# # The returned object is of type Google::Cloud::ArtifactRegistry::V1::ProjectSettings.
|
3038
|
+
# p result
|
3039
|
+
#
|
2338
3040
|
def update_project_settings request, options = nil
|
2339
3041
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2340
3042
|
|
@@ -2397,6 +3099,22 @@ module Google
|
|
2397
3099
|
# @return [::Google::Cloud::ArtifactRegistry::V1::VPCSCConfig]
|
2398
3100
|
#
|
2399
3101
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
3102
|
+
#
|
3103
|
+
# @example Basic example
|
3104
|
+
# require "google/cloud/artifact_registry/v1"
|
3105
|
+
#
|
3106
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3107
|
+
# client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Rest::Client.new
|
3108
|
+
#
|
3109
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3110
|
+
# request = Google::Cloud::ArtifactRegistry::V1::GetVPCSCConfigRequest.new
|
3111
|
+
#
|
3112
|
+
# # Call the get_vpcsc_config method.
|
3113
|
+
# result = client.get_vpcsc_config request
|
3114
|
+
#
|
3115
|
+
# # The returned object is of type Google::Cloud::ArtifactRegistry::V1::VPCSCConfig.
|
3116
|
+
# p result
|
3117
|
+
#
|
2400
3118
|
def get_vpcsc_config request, options = nil
|
2401
3119
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2402
3120
|
|
@@ -2461,6 +3179,22 @@ module Google
|
|
2461
3179
|
# @return [::Google::Cloud::ArtifactRegistry::V1::VPCSCConfig]
|
2462
3180
|
#
|
2463
3181
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
3182
|
+
#
|
3183
|
+
# @example Basic example
|
3184
|
+
# require "google/cloud/artifact_registry/v1"
|
3185
|
+
#
|
3186
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3187
|
+
# client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Rest::Client.new
|
3188
|
+
#
|
3189
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3190
|
+
# request = Google::Cloud::ArtifactRegistry::V1::UpdateVPCSCConfigRequest.new
|
3191
|
+
#
|
3192
|
+
# # Call the update_vpcsc_config method.
|
3193
|
+
# result = client.update_vpcsc_config request
|
3194
|
+
#
|
3195
|
+
# # The returned object is of type Google::Cloud::ArtifactRegistry::V1::VPCSCConfig.
|
3196
|
+
# p result
|
3197
|
+
#
|
2464
3198
|
def update_vpcsc_config request, options = nil
|
2465
3199
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2466
3200
|
|
@@ -2734,6 +3468,11 @@ module Google
|
|
2734
3468
|
#
|
2735
3469
|
attr_reader :delete_version
|
2736
3470
|
##
|
3471
|
+
# RPC-specific configuration for `batch_delete_versions`
|
3472
|
+
# @return [::Gapic::Config::Method]
|
3473
|
+
#
|
3474
|
+
attr_reader :batch_delete_versions
|
3475
|
+
##
|
2737
3476
|
# RPC-specific configuration for `list_files`
|
2738
3477
|
# @return [::Gapic::Config::Method]
|
2739
3478
|
#
|
@@ -2848,6 +3587,8 @@ module Google
|
|
2848
3587
|
@get_version = ::Gapic::Config::Method.new get_version_config
|
2849
3588
|
delete_version_config = parent_rpcs.delete_version if parent_rpcs.respond_to? :delete_version
|
2850
3589
|
@delete_version = ::Gapic::Config::Method.new delete_version_config
|
3590
|
+
batch_delete_versions_config = parent_rpcs.batch_delete_versions if parent_rpcs.respond_to? :batch_delete_versions
|
3591
|
+
@batch_delete_versions = ::Gapic::Config::Method.new batch_delete_versions_config
|
2851
3592
|
list_files_config = parent_rpcs.list_files if parent_rpcs.respond_to? :list_files
|
2852
3593
|
@list_files = ::Gapic::Config::Method.new list_files_config
|
2853
3594
|
get_file_config = parent_rpcs.get_file if parent_rpcs.respond_to? :get_file
|