google-cloud-artifact_registry-v1beta2 0.7.0 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/google/cloud/artifact_registry/v1beta2/artifact_registry/client.rb +50 -58
- data/lib/google/cloud/artifact_registry/v1beta2/artifact_registry/operations.rb +17 -17
- data/lib/google/cloud/artifact_registry/v1beta2/artifact_registry/rest/client.rb +2254 -0
- data/lib/google/cloud/artifact_registry/v1beta2/artifact_registry/rest/operations.rb +795 -0
- data/lib/google/cloud/artifact_registry/v1beta2/artifact_registry/rest/service_stub.rb +1532 -0
- data/lib/google/cloud/artifact_registry/v1beta2/artifact_registry/rest.rb +66 -0
- data/lib/google/cloud/artifact_registry/v1beta2/artifact_registry.rb +6 -0
- data/lib/google/cloud/artifact_registry/v1beta2/bindings_override.rb +102 -0
- data/lib/google/cloud/artifact_registry/v1beta2/rest.rb +38 -0
- data/lib/google/cloud/artifact_registry/v1beta2/version.rb +1 -1
- data/lib/google/cloud/artifact_registry/v1beta2.rb +5 -0
- data/lib/google/devtools/artifactregistry/v1beta2/apt_artifact_pb.rb +25 -36
- data/lib/google/devtools/artifactregistry/v1beta2/file_pb.rb +25 -31
- data/lib/google/devtools/artifactregistry/v1beta2/package_pb.rb +25 -22
- data/lib/google/devtools/artifactregistry/v1beta2/repository_pb.rb +26 -55
- data/lib/google/devtools/artifactregistry/v1beta2/service_pb.rb +24 -3
- data/lib/google/devtools/artifactregistry/v1beta2/settings_pb.rb +25 -18
- data/lib/google/devtools/artifactregistry/v1beta2/tag_pb.rb +25 -30
- data/lib/google/devtools/artifactregistry/v1beta2/version_pb.rb +27 -33
- data/lib/google/devtools/artifactregistry/v1beta2/yum_artifact_pb.rb +25 -34
- data/proto_docs/google/api/client.rb +67 -4
- data/proto_docs/google/iam/v1/policy.rb +8 -4
- data/proto_docs/google/protobuf/any.rb +7 -4
- data/proto_docs/google/protobuf/struct.rb +1 -1
- data/proto_docs/google/protobuf/timestamp.rb +1 -3
- metadata +17 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7446fa91df22165f76d8ddf98d3b58934336942704161027ced3f09aa038060e
|
4
|
+
data.tar.gz: a121a31654d955fdceb61163e473c2fdd57bb48451c6f98181504727237dbbab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d83214508294095660c34b7d4a72a3d42b13ceff92a778474eb072b68ee7f9f675cfff934d06555b797359e0977d2308cd7399d5cc821c0de99a0ce049d16fd0
|
7
|
+
data.tar.gz: 50d524564537183f67c151b58a0f016aeae6c23cef19d81bcd3499ea5fe7f57a2bfdd988b3844cab4e60be457fa6b460828e11de4a0af34802fe708bae7bb218
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Ruby Client for the Artifact Registry V1beta2 API
|
2
2
|
|
3
|
-
|
3
|
+
Store and manage build artifacts in a scalable and integrated service built on Google infrastructure.
|
4
4
|
|
5
5
|
Artifact Registry stores and manages build artifacts in a scalable and integrated service built on Google infrastructure.
|
6
6
|
|
@@ -47,7 +47,7 @@ for general usage information.
|
|
47
47
|
|
48
48
|
To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
|
49
49
|
The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
|
50
|
-
or a [`Google::Cloud::Logging::Logger`](https://
|
50
|
+
or a [`Google::Cloud::Logging::Logger`](https://cloud.google.com/ruby/docs/reference/google-cloud-logging/latest)
|
51
51
|
that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
|
52
52
|
and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
|
53
53
|
|
@@ -221,7 +221,7 @@ module Google
|
|
221
221
|
credentials = @config.credentials
|
222
222
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
223
223
|
# but only if the default endpoint does not have a region prefix.
|
224
|
-
enable_self_signed_jwt = @config.endpoint ==
|
224
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
225
225
|
!@config.endpoint.split(".").first.include?("-")
|
226
226
|
credentials ||= Credentials.default scope: @config.scope,
|
227
227
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -314,14 +314,14 @@ module Google
|
|
314
314
|
# # Call the import_apt_artifacts method.
|
315
315
|
# result = client.import_apt_artifacts request
|
316
316
|
#
|
317
|
-
# # The returned object is of type Gapic::Operation. You can use
|
318
|
-
# #
|
319
|
-
# #
|
317
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
318
|
+
# # check the status of an operation, cancel it, or wait for results.
|
319
|
+
# # Here is how to wait for a response.
|
320
320
|
# result.wait_until_done! timeout: 60
|
321
321
|
# if result.response?
|
322
322
|
# p result.response
|
323
323
|
# else
|
324
|
-
# puts "
|
324
|
+
# puts "No response received."
|
325
325
|
# end
|
326
326
|
#
|
327
327
|
def import_apt_artifacts request, options = nil
|
@@ -412,14 +412,14 @@ module Google
|
|
412
412
|
# # Call the import_yum_artifacts method.
|
413
413
|
# result = client.import_yum_artifacts request
|
414
414
|
#
|
415
|
-
# # The returned object is of type Gapic::Operation. You can use
|
416
|
-
# #
|
417
|
-
# #
|
415
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
416
|
+
# # check the status of an operation, cancel it, or wait for results.
|
417
|
+
# # Here is how to wait for a response.
|
418
418
|
# result.wait_until_done! timeout: 60
|
419
419
|
# if result.response?
|
420
420
|
# p result.response
|
421
421
|
# else
|
422
|
-
# puts "
|
422
|
+
# puts "No response received."
|
423
423
|
# end
|
424
424
|
#
|
425
425
|
def import_yum_artifacts request, options = nil
|
@@ -509,13 +509,11 @@ module Google
|
|
509
509
|
# # Call the list_repositories method.
|
510
510
|
# result = client.list_repositories request
|
511
511
|
#
|
512
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
513
|
-
# #
|
514
|
-
#
|
515
|
-
# # methods are also available for managing paging directly.
|
516
|
-
# result.each do |response|
|
512
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
513
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
514
|
+
# result.each do |item|
|
517
515
|
# # Each element is of type ::Google::Cloud::ArtifactRegistry::V1beta2::Repository.
|
518
|
-
# p
|
516
|
+
# p item
|
519
517
|
# end
|
520
518
|
#
|
521
519
|
def list_repositories request, options = nil
|
@@ -691,14 +689,14 @@ module Google
|
|
691
689
|
# # Call the create_repository method.
|
692
690
|
# result = client.create_repository request
|
693
691
|
#
|
694
|
-
# # The returned object is of type Gapic::Operation. You can use
|
695
|
-
# #
|
696
|
-
# #
|
692
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
693
|
+
# # check the status of an operation, cancel it, or wait for results.
|
694
|
+
# # Here is how to wait for a response.
|
697
695
|
# result.wait_until_done! timeout: 60
|
698
696
|
# if result.response?
|
699
697
|
# p result.response
|
700
698
|
# else
|
701
|
-
# puts "
|
699
|
+
# puts "No response received."
|
702
700
|
# end
|
703
701
|
#
|
704
702
|
def create_repository request, options = nil
|
@@ -875,14 +873,14 @@ module Google
|
|
875
873
|
# # Call the delete_repository method.
|
876
874
|
# result = client.delete_repository request
|
877
875
|
#
|
878
|
-
# # The returned object is of type Gapic::Operation. You can use
|
879
|
-
# #
|
880
|
-
# #
|
876
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
877
|
+
# # check the status of an operation, cancel it, or wait for results.
|
878
|
+
# # Here is how to wait for a response.
|
881
879
|
# result.wait_until_done! timeout: 60
|
882
880
|
# if result.response?
|
883
881
|
# p result.response
|
884
882
|
# else
|
885
|
-
# puts "
|
883
|
+
# puts "No response received."
|
886
884
|
# end
|
887
885
|
#
|
888
886
|
def delete_repository request, options = nil
|
@@ -973,13 +971,11 @@ module Google
|
|
973
971
|
# # Call the list_packages method.
|
974
972
|
# result = client.list_packages request
|
975
973
|
#
|
976
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
977
|
-
# #
|
978
|
-
#
|
979
|
-
# # methods are also available for managing paging directly.
|
980
|
-
# result.each do |response|
|
974
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
975
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
976
|
+
# result.each do |item|
|
981
977
|
# # Each element is of type ::Google::Cloud::ArtifactRegistry::V1beta2::Package.
|
982
|
-
# p
|
978
|
+
# p item
|
983
979
|
# end
|
984
980
|
#
|
985
981
|
def list_packages request, options = nil
|
@@ -1151,14 +1147,14 @@ module Google
|
|
1151
1147
|
# # Call the delete_package method.
|
1152
1148
|
# result = client.delete_package request
|
1153
1149
|
#
|
1154
|
-
# # The returned object is of type Gapic::Operation. You can use
|
1155
|
-
# #
|
1156
|
-
# #
|
1150
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1151
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1152
|
+
# # Here is how to wait for a response.
|
1157
1153
|
# result.wait_until_done! timeout: 60
|
1158
1154
|
# if result.response?
|
1159
1155
|
# p result.response
|
1160
1156
|
# else
|
1161
|
-
# puts "
|
1157
|
+
# puts "No response received."
|
1162
1158
|
# end
|
1163
1159
|
#
|
1164
1160
|
def delete_package request, options = nil
|
@@ -1252,13 +1248,11 @@ module Google
|
|
1252
1248
|
# # Call the list_versions method.
|
1253
1249
|
# result = client.list_versions request
|
1254
1250
|
#
|
1255
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
1256
|
-
# #
|
1257
|
-
#
|
1258
|
-
# # methods are also available for managing paging directly.
|
1259
|
-
# result.each do |response|
|
1251
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
1252
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
1253
|
+
# result.each do |item|
|
1260
1254
|
# # Each element is of type ::Google::Cloud::ArtifactRegistry::V1beta2::Version.
|
1261
|
-
# p
|
1255
|
+
# p item
|
1262
1256
|
# end
|
1263
1257
|
#
|
1264
1258
|
def list_versions request, options = nil
|
@@ -1435,14 +1429,14 @@ module Google
|
|
1435
1429
|
# # Call the delete_version method.
|
1436
1430
|
# result = client.delete_version request
|
1437
1431
|
#
|
1438
|
-
# # The returned object is of type Gapic::Operation. You can use
|
1439
|
-
# #
|
1440
|
-
# #
|
1432
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1433
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1434
|
+
# # Here is how to wait for a response.
|
1441
1435
|
# result.wait_until_done! timeout: 60
|
1442
1436
|
# if result.response?
|
1443
1437
|
# p result.response
|
1444
1438
|
# else
|
1445
|
-
# puts "
|
1439
|
+
# puts "No response received."
|
1446
1440
|
# end
|
1447
1441
|
#
|
1448
1442
|
def delete_version request, options = nil
|
@@ -1546,13 +1540,11 @@ module Google
|
|
1546
1540
|
# # Call the list_files method.
|
1547
1541
|
# result = client.list_files request
|
1548
1542
|
#
|
1549
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
1550
|
-
# #
|
1551
|
-
#
|
1552
|
-
# # methods are also available for managing paging directly.
|
1553
|
-
# result.each do |response|
|
1543
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
1544
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
1545
|
+
# result.each do |item|
|
1554
1546
|
# # Each element is of type ::Google::Cloud::ArtifactRegistry::V1beta2::File.
|
1555
|
-
# p
|
1547
|
+
# p item
|
1556
1548
|
# end
|
1557
1549
|
#
|
1558
1550
|
def list_files request, options = nil
|
@@ -1737,13 +1729,11 @@ module Google
|
|
1737
1729
|
# # Call the list_tags method.
|
1738
1730
|
# result = client.list_tags request
|
1739
1731
|
#
|
1740
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
1741
|
-
# #
|
1742
|
-
#
|
1743
|
-
# # methods are also available for managing paging directly.
|
1744
|
-
# result.each do |response|
|
1732
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
1733
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
1734
|
+
# result.each do |item|
|
1745
1735
|
# # Each element is of type ::Google::Cloud::ArtifactRegistry::V1beta2::Tag.
|
1746
|
-
# p
|
1736
|
+
# p item
|
1747
1737
|
# end
|
1748
1738
|
#
|
1749
1739
|
def list_tags request, options = nil
|
@@ -2623,9 +2613,9 @@ module Google
|
|
2623
2613
|
# * (`String`) The path to a service account key file in JSON format
|
2624
2614
|
# * (`Hash`) A service account key as a Hash
|
2625
2615
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
2626
|
-
# (see the [googleauth docs](https://
|
2616
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
2627
2617
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
2628
|
-
# (see the [signet docs](https://
|
2618
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
2629
2619
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
2630
2620
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
2631
2621
|
# * (`nil`) indicating no credentials
|
@@ -2667,7 +2657,9 @@ module Google
|
|
2667
2657
|
class Configuration
|
2668
2658
|
extend ::Gapic::Config
|
2669
2659
|
|
2670
|
-
|
2660
|
+
DEFAULT_ENDPOINT = "artifactregistry.googleapis.com"
|
2661
|
+
|
2662
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
2671
2663
|
config_attr :credentials, nil do |value|
|
2672
2664
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
2673
2665
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
@@ -158,13 +158,11 @@ module Google
|
|
158
158
|
# # Call the list_operations method.
|
159
159
|
# result = client.list_operations request
|
160
160
|
#
|
161
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
162
|
-
# #
|
163
|
-
#
|
164
|
-
# # methods are also available for managing paging directly.
|
165
|
-
# result.each do |response|
|
161
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
162
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
163
|
+
# result.each do |item|
|
166
164
|
# # Each element is of type ::Google::Longrunning::Operation.
|
167
|
-
# p
|
165
|
+
# p item
|
168
166
|
# end
|
169
167
|
#
|
170
168
|
def list_operations request, options = nil
|
@@ -253,14 +251,14 @@ module Google
|
|
253
251
|
# # Call the get_operation method.
|
254
252
|
# result = client.get_operation request
|
255
253
|
#
|
256
|
-
# # The returned object is of type Gapic::Operation. You can use
|
257
|
-
# #
|
258
|
-
# #
|
254
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
255
|
+
# # check the status of an operation, cancel it, or wait for results.
|
256
|
+
# # Here is how to wait for a response.
|
259
257
|
# result.wait_until_done! timeout: 60
|
260
258
|
# if result.response?
|
261
259
|
# p result.response
|
262
260
|
# else
|
263
|
-
# puts "
|
261
|
+
# puts "No response received."
|
264
262
|
# end
|
265
263
|
#
|
266
264
|
def get_operation request, options = nil
|
@@ -540,14 +538,14 @@ module Google
|
|
540
538
|
# # Call the wait_operation method.
|
541
539
|
# result = client.wait_operation request
|
542
540
|
#
|
543
|
-
# # The returned object is of type Gapic::Operation. You can use
|
544
|
-
# #
|
545
|
-
# #
|
541
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
542
|
+
# # check the status of an operation, cancel it, or wait for results.
|
543
|
+
# # Here is how to wait for a response.
|
546
544
|
# result.wait_until_done! timeout: 60
|
547
545
|
# if result.response?
|
548
546
|
# p result.response
|
549
547
|
# else
|
550
|
-
# puts "
|
548
|
+
# puts "No response received."
|
551
549
|
# end
|
552
550
|
#
|
553
551
|
def wait_operation request, options = nil
|
@@ -622,9 +620,9 @@ module Google
|
|
622
620
|
# * (`String`) The path to a service account key file in JSON format
|
623
621
|
# * (`Hash`) A service account key as a Hash
|
624
622
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
625
|
-
# (see the [googleauth docs](https://
|
623
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
626
624
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
627
|
-
# (see the [signet docs](https://
|
625
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
628
626
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
629
627
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
630
628
|
# * (`nil`) indicating no credentials
|
@@ -666,7 +664,9 @@ module Google
|
|
666
664
|
class Configuration
|
667
665
|
extend ::Gapic::Config
|
668
666
|
|
669
|
-
|
667
|
+
DEFAULT_ENDPOINT = "artifactregistry.googleapis.com"
|
668
|
+
|
669
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
670
670
|
config_attr :credentials, nil do |value|
|
671
671
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
672
672
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|