google-cloud-artifact_registry-v1beta2 0.6.0 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +1 -1
- data/README.md +2 -2
- data/lib/google/cloud/artifact_registry/v1beta2/artifact_registry/client.rb +58 -54
- data/lib/google/cloud/artifact_registry/v1beta2/artifact_registry/operations.rb +12 -14
- data/lib/google/cloud/artifact_registry/v1beta2/artifact_registry/rest/client.rb +2252 -0
- data/lib/google/cloud/artifact_registry/v1beta2/artifact_registry/rest/operations.rb +793 -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 +7 -1
- 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 +7 -2
- data/lib/google/devtools/artifactregistry/v1beta2/apt_artifact_pb.rb +0 -2
- data/lib/google/devtools/artifactregistry/v1beta2/file_pb.rb +0 -1
- data/lib/google/devtools/artifactregistry/v1beta2/package_pb.rb +0 -1
- data/lib/google/devtools/artifactregistry/v1beta2/repository_pb.rb +0 -1
- data/lib/google/devtools/artifactregistry/v1beta2/settings_pb.rb +0 -1
- data/lib/google/devtools/artifactregistry/v1beta2/tag_pb.rb +0 -1
- data/lib/google/devtools/artifactregistry/v1beta2/version_pb.rb +0 -1
- data/lib/google/devtools/artifactregistry/v1beta2/yum_artifact_pb.rb +0 -2
- data/proto_docs/google/api/client.rb +318 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/protobuf/empty.rb +0 -2
- data/proto_docs/google/rpc/status.rb +4 -2
- metadata +37 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 591d5599cbba021663b8e7a27dd6d3ebf7af290f6cd951e4773c4d84d3aa16e8
|
4
|
+
data.tar.gz: 2dbebbbf02537cd89fc01b65c0f577eb6eedd1a85a154e0e1d61a3c76ee5d29f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1e6de1bd5d737401140bce64e107f72ae4db7b5976cc1bd48d07d0dbc1fef5068d7a63e20e3dfcfd91b71f18120f4b53a926d60bc2bc17ed768193d1c4c35d57
|
7
|
+
data.tar.gz: 10c4c210de3d333c1c3bd96b7dcedb010e522dd692dd068fe1478e2857afafc0d9572e58519b90fbfb5c7cc09214dd1dd1dccaf2af5ce449eda8dec2d1e485c6
|
data/AUTHENTICATION.md
CHANGED
@@ -114,7 +114,7 @@ credentials are discovered.
|
|
114
114
|
To configure your system for this, simply:
|
115
115
|
|
116
116
|
1. [Download and install the Cloud SDK](https://cloud.google.com/sdk)
|
117
|
-
2. Authenticate using OAuth 2.0 `$ gcloud auth login`
|
117
|
+
2. Authenticate using OAuth 2.0 `$ gcloud auth application-default login`
|
118
118
|
3. Write code as if already authenticated.
|
119
119
|
|
120
120
|
**NOTE:** This is _not_ recommended for running in production. The Cloud SDK
|
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
|
|
@@ -46,7 +46,7 @@ for general usage information.
|
|
46
46
|
## Enabling Logging
|
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
|
-
The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/
|
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
50
|
or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/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.
|
@@ -18,6 +18,7 @@
|
|
18
18
|
|
19
19
|
require "google/cloud/errors"
|
20
20
|
require "google/devtools/artifactregistry/v1beta2/service_pb"
|
21
|
+
require "google/cloud/location"
|
21
22
|
|
22
23
|
module Google
|
23
24
|
module Cloud
|
@@ -236,6 +237,12 @@ module Google
|
|
236
237
|
config.endpoint = @config.endpoint
|
237
238
|
end
|
238
239
|
|
240
|
+
@location_client = Google::Cloud::Location::Locations::Client.new do |config|
|
241
|
+
config.credentials = credentials
|
242
|
+
config.quota_project = @quota_project_id
|
243
|
+
config.endpoint = @config.endpoint
|
244
|
+
end
|
245
|
+
|
239
246
|
@artifact_registry_stub = ::Gapic::ServiceStub.new(
|
240
247
|
::Google::Cloud::ArtifactRegistry::V1beta2::ArtifactRegistry::Stub,
|
241
248
|
credentials: credentials,
|
@@ -252,6 +259,13 @@ module Google
|
|
252
259
|
#
|
253
260
|
attr_reader :operations_client
|
254
261
|
|
262
|
+
##
|
263
|
+
# Get the associated client for mix-in of the Locations.
|
264
|
+
#
|
265
|
+
# @return [Google::Cloud::Location::Locations::Client]
|
266
|
+
#
|
267
|
+
attr_reader :location_client
|
268
|
+
|
255
269
|
# Service calls
|
256
270
|
|
257
271
|
##
|
@@ -300,14 +314,14 @@ module Google
|
|
300
314
|
# # Call the import_apt_artifacts method.
|
301
315
|
# result = client.import_apt_artifacts request
|
302
316
|
#
|
303
|
-
# # The returned object is of type Gapic::Operation. You can use
|
304
|
-
# #
|
305
|
-
# #
|
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.
|
306
320
|
# result.wait_until_done! timeout: 60
|
307
321
|
# if result.response?
|
308
322
|
# p result.response
|
309
323
|
# else
|
310
|
-
# puts "
|
324
|
+
# puts "No response received."
|
311
325
|
# end
|
312
326
|
#
|
313
327
|
def import_apt_artifacts request, options = nil
|
@@ -398,14 +412,14 @@ module Google
|
|
398
412
|
# # Call the import_yum_artifacts method.
|
399
413
|
# result = client.import_yum_artifacts request
|
400
414
|
#
|
401
|
-
# # The returned object is of type Gapic::Operation. You can use
|
402
|
-
# #
|
403
|
-
# #
|
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.
|
404
418
|
# result.wait_until_done! timeout: 60
|
405
419
|
# if result.response?
|
406
420
|
# p result.response
|
407
421
|
# else
|
408
|
-
# puts "
|
422
|
+
# puts "No response received."
|
409
423
|
# end
|
410
424
|
#
|
411
425
|
def import_yum_artifacts request, options = nil
|
@@ -495,13 +509,11 @@ module Google
|
|
495
509
|
# # Call the list_repositories method.
|
496
510
|
# result = client.list_repositories request
|
497
511
|
#
|
498
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
499
|
-
# #
|
500
|
-
#
|
501
|
-
# # methods are also available for managing paging directly.
|
502
|
-
# 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|
|
503
515
|
# # Each element is of type ::Google::Cloud::ArtifactRegistry::V1beta2::Repository.
|
504
|
-
# p
|
516
|
+
# p item
|
505
517
|
# end
|
506
518
|
#
|
507
519
|
def list_repositories request, options = nil
|
@@ -677,14 +689,14 @@ module Google
|
|
677
689
|
# # Call the create_repository method.
|
678
690
|
# result = client.create_repository request
|
679
691
|
#
|
680
|
-
# # The returned object is of type Gapic::Operation. You can use
|
681
|
-
# #
|
682
|
-
# #
|
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.
|
683
695
|
# result.wait_until_done! timeout: 60
|
684
696
|
# if result.response?
|
685
697
|
# p result.response
|
686
698
|
# else
|
687
|
-
# puts "
|
699
|
+
# puts "No response received."
|
688
700
|
# end
|
689
701
|
#
|
690
702
|
def create_repository request, options = nil
|
@@ -861,14 +873,14 @@ module Google
|
|
861
873
|
# # Call the delete_repository method.
|
862
874
|
# result = client.delete_repository request
|
863
875
|
#
|
864
|
-
# # The returned object is of type Gapic::Operation. You can use
|
865
|
-
# #
|
866
|
-
# #
|
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.
|
867
879
|
# result.wait_until_done! timeout: 60
|
868
880
|
# if result.response?
|
869
881
|
# p result.response
|
870
882
|
# else
|
871
|
-
# puts "
|
883
|
+
# puts "No response received."
|
872
884
|
# end
|
873
885
|
#
|
874
886
|
def delete_repository request, options = nil
|
@@ -959,13 +971,11 @@ module Google
|
|
959
971
|
# # Call the list_packages method.
|
960
972
|
# result = client.list_packages request
|
961
973
|
#
|
962
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
963
|
-
# #
|
964
|
-
#
|
965
|
-
# # methods are also available for managing paging directly.
|
966
|
-
# 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|
|
967
977
|
# # Each element is of type ::Google::Cloud::ArtifactRegistry::V1beta2::Package.
|
968
|
-
# p
|
978
|
+
# p item
|
969
979
|
# end
|
970
980
|
#
|
971
981
|
def list_packages request, options = nil
|
@@ -1137,14 +1147,14 @@ module Google
|
|
1137
1147
|
# # Call the delete_package method.
|
1138
1148
|
# result = client.delete_package request
|
1139
1149
|
#
|
1140
|
-
# # The returned object is of type Gapic::Operation. You can use
|
1141
|
-
# #
|
1142
|
-
# #
|
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.
|
1143
1153
|
# result.wait_until_done! timeout: 60
|
1144
1154
|
# if result.response?
|
1145
1155
|
# p result.response
|
1146
1156
|
# else
|
1147
|
-
# puts "
|
1157
|
+
# puts "No response received."
|
1148
1158
|
# end
|
1149
1159
|
#
|
1150
1160
|
def delete_package request, options = nil
|
@@ -1238,13 +1248,11 @@ module Google
|
|
1238
1248
|
# # Call the list_versions method.
|
1239
1249
|
# result = client.list_versions request
|
1240
1250
|
#
|
1241
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
1242
|
-
# #
|
1243
|
-
#
|
1244
|
-
# # methods are also available for managing paging directly.
|
1245
|
-
# 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|
|
1246
1254
|
# # Each element is of type ::Google::Cloud::ArtifactRegistry::V1beta2::Version.
|
1247
|
-
# p
|
1255
|
+
# p item
|
1248
1256
|
# end
|
1249
1257
|
#
|
1250
1258
|
def list_versions request, options = nil
|
@@ -1421,14 +1429,14 @@ module Google
|
|
1421
1429
|
# # Call the delete_version method.
|
1422
1430
|
# result = client.delete_version request
|
1423
1431
|
#
|
1424
|
-
# # The returned object is of type Gapic::Operation. You can use
|
1425
|
-
# #
|
1426
|
-
# #
|
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.
|
1427
1435
|
# result.wait_until_done! timeout: 60
|
1428
1436
|
# if result.response?
|
1429
1437
|
# p result.response
|
1430
1438
|
# else
|
1431
|
-
# puts "
|
1439
|
+
# puts "No response received."
|
1432
1440
|
# end
|
1433
1441
|
#
|
1434
1442
|
def delete_version request, options = nil
|
@@ -1532,13 +1540,11 @@ module Google
|
|
1532
1540
|
# # Call the list_files method.
|
1533
1541
|
# result = client.list_files request
|
1534
1542
|
#
|
1535
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
1536
|
-
# #
|
1537
|
-
#
|
1538
|
-
# # methods are also available for managing paging directly.
|
1539
|
-
# 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|
|
1540
1546
|
# # Each element is of type ::Google::Cloud::ArtifactRegistry::V1beta2::File.
|
1541
|
-
# p
|
1547
|
+
# p item
|
1542
1548
|
# end
|
1543
1549
|
#
|
1544
1550
|
def list_files request, options = nil
|
@@ -1723,13 +1729,11 @@ module Google
|
|
1723
1729
|
# # Call the list_tags method.
|
1724
1730
|
# result = client.list_tags request
|
1725
1731
|
#
|
1726
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
1727
|
-
# #
|
1728
|
-
#
|
1729
|
-
# # methods are also available for managing paging directly.
|
1730
|
-
# 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|
|
1731
1735
|
# # Each element is of type ::Google::Cloud::ArtifactRegistry::V1beta2::Tag.
|
1732
|
-
# p
|
1736
|
+
# p item
|
1733
1737
|
# end
|
1734
1738
|
#
|
1735
1739
|
def list_tags request, options = nil
|
@@ -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
|