google-cloud-artifact_registry-v1beta2 0.3.3 → 0.3.4

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: 5139d0c2c49f2cb2fda99608b74c332fe8cc6d4d63486fbecb70833808f7d55e
4
- data.tar.gz: 13d42fcd68f7db9b67928dece8030baa44386a2a75357ac3e20ed46b0c269054
3
+ metadata.gz: ca8be383e339507219502c6ba47a331ce25fb6d38bb25999833245e0945a36be
4
+ data.tar.gz: af12154f14d791662b27c3fc7586322a14ce61386da86343773c11c888987600
5
5
  SHA512:
6
- metadata.gz: 0ed41d18bca925932c660004680ce3158963e0d5f9687af04c34ed3a63f5a31b1581c0c2cc80ed1336fa189209d4b552c7d523bef978360f801d89e4b2182370
7
- data.tar.gz: 3ae74e01c4e35f78763f58de03e96a3f9e85ec5692f1d0df238f53baa7a48f8360319d55a4625144a9095f775ffb5d6598f8523cfda847e479888e73fe7565d5
6
+ metadata.gz: c8e8d6d95085eddb7915ff481d91ffbc8085b0f1a2ba58119de7e020a4ca2a4f6d63a7417adb4f322a0a4a8b74b1bf241b561e26376f5956618cd4e70e2172a5
7
+ data.tar.gz: 6cfd17c4d55a0ec5788abf690f7c317b1fe6d965ea81e11867c3743e626da67365c4773166b63b0b5e8ac99924f9e83fee997e09613fe94f9405f3588841e933
@@ -53,13 +53,12 @@ module Google
53
53
  # See {::Google::Cloud::ArtifactRegistry::V1beta2::ArtifactRegistry::Client::Configuration}
54
54
  # for a description of the configuration fields.
55
55
  #
56
- # ## Example
56
+ # @example
57
57
  #
58
- # To modify the configuration for all ArtifactRegistry clients:
59
- #
60
- # ::Google::Cloud::ArtifactRegistry::V1beta2::ArtifactRegistry::Client.configure do |config|
61
- # config.timeout = 10.0
62
- # end
58
+ # # Modify the configuration for all ArtifactRegistry clients
59
+ # ::Google::Cloud::ArtifactRegistry::V1beta2::ArtifactRegistry::Client.configure do |config|
60
+ # config.timeout = 10.0
61
+ # end
63
62
  #
64
63
  # @yield [config] Configure the Client client.
65
64
  # @yieldparam config [Client::Configuration]
@@ -191,19 +190,15 @@ module Google
191
190
  ##
192
191
  # Create a new ArtifactRegistry client object.
193
192
  #
194
- # ## Examples
195
- #
196
- # To create a new ArtifactRegistry client with the default
197
- # configuration:
193
+ # @example
198
194
  #
199
- # client = ::Google::Cloud::ArtifactRegistry::V1beta2::ArtifactRegistry::Client.new
195
+ # # Create a client using the default configuration
196
+ # client = ::Google::Cloud::ArtifactRegistry::V1beta2::ArtifactRegistry::Client.new
200
197
  #
201
- # To create a new ArtifactRegistry client with a custom
202
- # configuration:
203
- #
204
- # client = ::Google::Cloud::ArtifactRegistry::V1beta2::ArtifactRegistry::Client.new do |config|
205
- # config.timeout = 10.0
206
- # end
198
+ # # Create a client using a custom configuration
199
+ # client = ::Google::Cloud::ArtifactRegistry::V1beta2::ArtifactRegistry::Client.new do |config|
200
+ # config.timeout = 10.0
201
+ # end
207
202
  #
208
203
  # @yield [config] Configure the ArtifactRegistry client.
209
204
  # @yieldparam config [Client::Configuration]
@@ -223,10 +218,9 @@ module Google
223
218
 
224
219
  # Create credentials
225
220
  credentials = @config.credentials
226
- # Use self-signed JWT if the scope and endpoint are unchanged from default,
221
+ # Use self-signed JWT if the endpoint is unchanged from default,
227
222
  # but only if the default endpoint does not have a region prefix.
228
- enable_self_signed_jwt = @config.scope == Client.configure.scope &&
229
- @config.endpoint == Client.configure.endpoint &&
223
+ enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
230
224
  !@config.endpoint.split(".").first.include?("-")
231
225
  credentials ||= Credentials.default scope: @config.scope,
232
226
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -319,7 +313,9 @@ module Google
319
313
  options.apply_defaults timeout: @config.rpcs.list_repositories.timeout,
320
314
  metadata: metadata,
321
315
  retry_policy: @config.rpcs.list_repositories.retry_policy
322
- options.apply_defaults metadata: @config.metadata,
316
+
317
+ options.apply_defaults timeout: @config.timeout,
318
+ metadata: @config.metadata,
323
319
  retry_policy: @config.retry_policy
324
320
 
325
321
  @artifact_registry_stub.call_rpc :list_repositories, request, options: options do |response, operation|
@@ -386,7 +382,9 @@ module Google
386
382
  options.apply_defaults timeout: @config.rpcs.get_repository.timeout,
387
383
  metadata: metadata,
388
384
  retry_policy: @config.rpcs.get_repository.retry_policy
389
- options.apply_defaults metadata: @config.metadata,
385
+
386
+ options.apply_defaults timeout: @config.timeout,
387
+ metadata: @config.metadata,
390
388
  retry_policy: @config.retry_policy
391
389
 
392
390
  @artifact_registry_stub.call_rpc :get_repository, request, options: options do |response, operation|
@@ -457,7 +455,9 @@ module Google
457
455
  options.apply_defaults timeout: @config.rpcs.create_repository.timeout,
458
456
  metadata: metadata,
459
457
  retry_policy: @config.rpcs.create_repository.retry_policy
460
- options.apply_defaults metadata: @config.metadata,
458
+
459
+ options.apply_defaults timeout: @config.timeout,
460
+ metadata: @config.metadata,
461
461
  retry_policy: @config.retry_policy
462
462
 
463
463
  @artifact_registry_stub.call_rpc :create_repository, request, options: options do |response, operation|
@@ -528,7 +528,9 @@ module Google
528
528
  options.apply_defaults timeout: @config.rpcs.update_repository.timeout,
529
529
  metadata: metadata,
530
530
  retry_policy: @config.rpcs.update_repository.retry_policy
531
- options.apply_defaults metadata: @config.metadata,
531
+
532
+ options.apply_defaults timeout: @config.timeout,
533
+ metadata: @config.metadata,
532
534
  retry_policy: @config.retry_policy
533
535
 
534
536
  @artifact_registry_stub.call_rpc :update_repository, request, options: options do |response, operation|
@@ -596,7 +598,9 @@ module Google
596
598
  options.apply_defaults timeout: @config.rpcs.delete_repository.timeout,
597
599
  metadata: metadata,
598
600
  retry_policy: @config.rpcs.delete_repository.retry_policy
599
- options.apply_defaults metadata: @config.metadata,
601
+
602
+ options.apply_defaults timeout: @config.timeout,
603
+ metadata: @config.metadata,
600
604
  retry_policy: @config.retry_policy
601
605
 
602
606
  @artifact_registry_stub.call_rpc :delete_repository, request, options: options do |response, operation|
@@ -668,7 +672,9 @@ module Google
668
672
  options.apply_defaults timeout: @config.rpcs.list_packages.timeout,
669
673
  metadata: metadata,
670
674
  retry_policy: @config.rpcs.list_packages.retry_policy
671
- options.apply_defaults metadata: @config.metadata,
675
+
676
+ options.apply_defaults timeout: @config.timeout,
677
+ metadata: @config.metadata,
672
678
  retry_policy: @config.retry_policy
673
679
 
674
680
  @artifact_registry_stub.call_rpc :list_packages, request, options: options do |response, operation|
@@ -735,7 +741,9 @@ module Google
735
741
  options.apply_defaults timeout: @config.rpcs.get_package.timeout,
736
742
  metadata: metadata,
737
743
  retry_policy: @config.rpcs.get_package.retry_policy
738
- options.apply_defaults metadata: @config.metadata,
744
+
745
+ options.apply_defaults timeout: @config.timeout,
746
+ metadata: @config.metadata,
739
747
  retry_policy: @config.retry_policy
740
748
 
741
749
  @artifact_registry_stub.call_rpc :get_package, request, options: options do |response, operation|
@@ -802,7 +810,9 @@ module Google
802
810
  options.apply_defaults timeout: @config.rpcs.delete_package.timeout,
803
811
  metadata: metadata,
804
812
  retry_policy: @config.rpcs.delete_package.retry_policy
805
- options.apply_defaults metadata: @config.metadata,
813
+
814
+ options.apply_defaults timeout: @config.timeout,
815
+ metadata: @config.metadata,
806
816
  retry_policy: @config.retry_policy
807
817
 
808
818
  @artifact_registry_stub.call_rpc :delete_package, request, options: options do |response, operation|
@@ -876,7 +886,9 @@ module Google
876
886
  options.apply_defaults timeout: @config.rpcs.list_versions.timeout,
877
887
  metadata: metadata,
878
888
  retry_policy: @config.rpcs.list_versions.retry_policy
879
- options.apply_defaults metadata: @config.metadata,
889
+
890
+ options.apply_defaults timeout: @config.timeout,
891
+ metadata: @config.metadata,
880
892
  retry_policy: @config.retry_policy
881
893
 
882
894
  @artifact_registry_stub.call_rpc :list_versions, request, options: options do |response, operation|
@@ -945,7 +957,9 @@ module Google
945
957
  options.apply_defaults timeout: @config.rpcs.get_version.timeout,
946
958
  metadata: metadata,
947
959
  retry_policy: @config.rpcs.get_version.retry_policy
948
- options.apply_defaults metadata: @config.metadata,
960
+
961
+ options.apply_defaults timeout: @config.timeout,
962
+ metadata: @config.metadata,
949
963
  retry_policy: @config.retry_policy
950
964
 
951
965
  @artifact_registry_stub.call_rpc :get_version, request, options: options do |response, operation|
@@ -1015,7 +1029,9 @@ module Google
1015
1029
  options.apply_defaults timeout: @config.rpcs.delete_version.timeout,
1016
1030
  metadata: metadata,
1017
1031
  retry_policy: @config.rpcs.delete_version.retry_policy
1018
- options.apply_defaults metadata: @config.metadata,
1032
+
1033
+ options.apply_defaults timeout: @config.timeout,
1034
+ metadata: @config.metadata,
1019
1035
  retry_policy: @config.retry_policy
1020
1036
 
1021
1037
  @artifact_registry_stub.call_rpc :delete_version, request, options: options do |response, operation|
@@ -1099,7 +1115,9 @@ module Google
1099
1115
  options.apply_defaults timeout: @config.rpcs.list_files.timeout,
1100
1116
  metadata: metadata,
1101
1117
  retry_policy: @config.rpcs.list_files.retry_policy
1102
- options.apply_defaults metadata: @config.metadata,
1118
+
1119
+ options.apply_defaults timeout: @config.timeout,
1120
+ metadata: @config.metadata,
1103
1121
  retry_policy: @config.retry_policy
1104
1122
 
1105
1123
  @artifact_registry_stub.call_rpc :list_files, request, options: options do |response, operation|
@@ -1166,7 +1184,9 @@ module Google
1166
1184
  options.apply_defaults timeout: @config.rpcs.get_file.timeout,
1167
1185
  metadata: metadata,
1168
1186
  retry_policy: @config.rpcs.get_file.retry_policy
1169
- options.apply_defaults metadata: @config.metadata,
1187
+
1188
+ options.apply_defaults timeout: @config.timeout,
1189
+ metadata: @config.metadata,
1170
1190
  retry_policy: @config.retry_policy
1171
1191
 
1172
1192
  @artifact_registry_stub.call_rpc :get_file, request, options: options do |response, operation|
@@ -1247,7 +1267,9 @@ module Google
1247
1267
  options.apply_defaults timeout: @config.rpcs.list_tags.timeout,
1248
1268
  metadata: metadata,
1249
1269
  retry_policy: @config.rpcs.list_tags.retry_policy
1250
- options.apply_defaults metadata: @config.metadata,
1270
+
1271
+ options.apply_defaults timeout: @config.timeout,
1272
+ metadata: @config.metadata,
1251
1273
  retry_policy: @config.retry_policy
1252
1274
 
1253
1275
  @artifact_registry_stub.call_rpc :list_tags, request, options: options do |response, operation|
@@ -1314,7 +1336,9 @@ module Google
1314
1336
  options.apply_defaults timeout: @config.rpcs.get_tag.timeout,
1315
1337
  metadata: metadata,
1316
1338
  retry_policy: @config.rpcs.get_tag.retry_policy
1317
- options.apply_defaults metadata: @config.metadata,
1339
+
1340
+ options.apply_defaults timeout: @config.timeout,
1341
+ metadata: @config.metadata,
1318
1342
  retry_policy: @config.retry_policy
1319
1343
 
1320
1344
  @artifact_registry_stub.call_rpc :get_tag, request, options: options do |response, operation|
@@ -1384,7 +1408,9 @@ module Google
1384
1408
  options.apply_defaults timeout: @config.rpcs.create_tag.timeout,
1385
1409
  metadata: metadata,
1386
1410
  retry_policy: @config.rpcs.create_tag.retry_policy
1387
- options.apply_defaults metadata: @config.metadata,
1411
+
1412
+ options.apply_defaults timeout: @config.timeout,
1413
+ metadata: @config.metadata,
1388
1414
  retry_policy: @config.retry_policy
1389
1415
 
1390
1416
  @artifact_registry_stub.call_rpc :create_tag, request, options: options do |response, operation|
@@ -1454,7 +1480,9 @@ module Google
1454
1480
  options.apply_defaults timeout: @config.rpcs.update_tag.timeout,
1455
1481
  metadata: metadata,
1456
1482
  retry_policy: @config.rpcs.update_tag.retry_policy
1457
- options.apply_defaults metadata: @config.metadata,
1483
+
1484
+ options.apply_defaults timeout: @config.timeout,
1485
+ metadata: @config.metadata,
1458
1486
  retry_policy: @config.retry_policy
1459
1487
 
1460
1488
  @artifact_registry_stub.call_rpc :update_tag, request, options: options do |response, operation|
@@ -1520,7 +1548,9 @@ module Google
1520
1548
  options.apply_defaults timeout: @config.rpcs.delete_tag.timeout,
1521
1549
  metadata: metadata,
1522
1550
  retry_policy: @config.rpcs.delete_tag.retry_policy
1523
- options.apply_defaults metadata: @config.metadata,
1551
+
1552
+ options.apply_defaults timeout: @config.timeout,
1553
+ metadata: @config.metadata,
1524
1554
  retry_policy: @config.retry_policy
1525
1555
 
1526
1556
  @artifact_registry_stub.call_rpc :delete_tag, request, options: options do |response, operation|
@@ -1592,7 +1622,9 @@ module Google
1592
1622
  options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout,
1593
1623
  metadata: metadata,
1594
1624
  retry_policy: @config.rpcs.set_iam_policy.retry_policy
1595
- options.apply_defaults metadata: @config.metadata,
1625
+
1626
+ options.apply_defaults timeout: @config.timeout,
1627
+ metadata: @config.metadata,
1596
1628
  retry_policy: @config.retry_policy
1597
1629
 
1598
1630
  @artifact_registry_stub.call_rpc :set_iam_policy, request, options: options do |response, operation|
@@ -1662,7 +1694,9 @@ module Google
1662
1694
  options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout,
1663
1695
  metadata: metadata,
1664
1696
  retry_policy: @config.rpcs.get_iam_policy.retry_policy
1665
- options.apply_defaults metadata: @config.metadata,
1697
+
1698
+ options.apply_defaults timeout: @config.timeout,
1699
+ metadata: @config.metadata,
1666
1700
  retry_policy: @config.retry_policy
1667
1701
 
1668
1702
  @artifact_registry_stub.call_rpc :get_iam_policy, request, options: options do |response, operation|
@@ -1734,7 +1768,9 @@ module Google
1734
1768
  options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout,
1735
1769
  metadata: metadata,
1736
1770
  retry_policy: @config.rpcs.test_iam_permissions.retry_policy
1737
- options.apply_defaults metadata: @config.metadata,
1771
+
1772
+ options.apply_defaults timeout: @config.timeout,
1773
+ metadata: @config.metadata,
1738
1774
  retry_policy: @config.retry_policy
1739
1775
 
1740
1776
  @artifact_registry_stub.call_rpc :test_iam_permissions, request, options: options do |response, operation|
@@ -1758,22 +1794,21 @@ module Google
1758
1794
  # Configuration can be applied globally to all clients, or to a single client
1759
1795
  # on construction.
1760
1796
  #
1761
- # # Examples
1762
- #
1763
- # To modify the global config, setting the timeout for list_repositories
1764
- # to 20 seconds, and all remaining timeouts to 10 seconds:
1765
- #
1766
- # ::Google::Cloud::ArtifactRegistry::V1beta2::ArtifactRegistry::Client.configure do |config|
1767
- # config.timeout = 10.0
1768
- # config.rpcs.list_repositories.timeout = 20.0
1769
- # end
1770
- #
1771
- # To apply the above configuration only to a new client:
1772
- #
1773
- # client = ::Google::Cloud::ArtifactRegistry::V1beta2::ArtifactRegistry::Client.new do |config|
1774
- # config.timeout = 10.0
1775
- # config.rpcs.list_repositories.timeout = 20.0
1776
- # end
1797
+ # @example
1798
+ #
1799
+ # # Modify the global config, setting the timeout for
1800
+ # # list_repositories to 20 seconds,
1801
+ # # and all remaining timeouts to 10 seconds.
1802
+ # ::Google::Cloud::ArtifactRegistry::V1beta2::ArtifactRegistry::Client.configure do |config|
1803
+ # config.timeout = 10.0
1804
+ # config.rpcs.list_repositories.timeout = 20.0
1805
+ # end
1806
+ #
1807
+ # # Apply the above configuration only to a new client.
1808
+ # client = ::Google::Cloud::ArtifactRegistry::V1beta2::ArtifactRegistry::Client.new do |config|
1809
+ # config.timeout = 10.0
1810
+ # config.rpcs.list_repositories.timeout = 20.0
1811
+ # end
1777
1812
  #
1778
1813
  # @!attribute [rw] endpoint
1779
1814
  # The hostname or hostname:port of the service endpoint.
@@ -169,7 +169,9 @@ module Google
169
169
  options.apply_defaults timeout: @config.rpcs.list_operations.timeout,
170
170
  metadata: metadata,
171
171
  retry_policy: @config.rpcs.list_operations.retry_policy
172
- options.apply_defaults metadata: @config.metadata,
172
+
173
+ options.apply_defaults timeout: @config.timeout,
174
+ metadata: @config.metadata,
173
175
  retry_policy: @config.retry_policy
174
176
 
175
177
  @operations_stub.call_rpc :list_operations, request, options: options do |response, operation|
@@ -239,7 +241,9 @@ module Google
239
241
  options.apply_defaults timeout: @config.rpcs.get_operation.timeout,
240
242
  metadata: metadata,
241
243
  retry_policy: @config.rpcs.get_operation.retry_policy
242
- options.apply_defaults metadata: @config.metadata,
244
+
245
+ options.apply_defaults timeout: @config.timeout,
246
+ metadata: @config.metadata,
243
247
  retry_policy: @config.retry_policy
244
248
 
245
249
  @operations_stub.call_rpc :get_operation, request, options: options do |response, operation|
@@ -309,7 +313,9 @@ module Google
309
313
  options.apply_defaults timeout: @config.rpcs.delete_operation.timeout,
310
314
  metadata: metadata,
311
315
  retry_policy: @config.rpcs.delete_operation.retry_policy
312
- options.apply_defaults metadata: @config.metadata,
316
+
317
+ options.apply_defaults timeout: @config.timeout,
318
+ metadata: @config.metadata,
313
319
  retry_policy: @config.retry_policy
314
320
 
315
321
  @operations_stub.call_rpc :delete_operation, request, options: options do |response, operation|
@@ -384,7 +390,9 @@ module Google
384
390
  options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout,
385
391
  metadata: metadata,
386
392
  retry_policy: @config.rpcs.cancel_operation.retry_policy
387
- options.apply_defaults metadata: @config.metadata,
393
+
394
+ options.apply_defaults timeout: @config.timeout,
395
+ metadata: @config.metadata,
388
396
  retry_policy: @config.retry_policy
389
397
 
390
398
  @operations_stub.call_rpc :cancel_operation, request, options: options do |response, operation|
@@ -456,7 +464,9 @@ module Google
456
464
  options.apply_defaults timeout: @config.rpcs.wait_operation.timeout,
457
465
  metadata: metadata,
458
466
  retry_policy: @config.rpcs.wait_operation.retry_policy
459
- options.apply_defaults metadata: @config.metadata,
467
+
468
+ options.apply_defaults timeout: @config.timeout,
469
+ metadata: @config.metadata,
460
470
  retry_policy: @config.retry_policy
461
471
 
462
472
  @operations_stub.call_rpc :wait_operation, request, options: options do |response, operation|
@@ -481,22 +491,21 @@ module Google
481
491
  # Configuration can be applied globally to all clients, or to a single client
482
492
  # on construction.
483
493
  #
484
- # # Examples
485
- #
486
- # To modify the global config, setting the timeout for list_operations
487
- # to 20 seconds, and all remaining timeouts to 10 seconds:
488
- #
489
- # ::Google::Longrunning::Operations::Client.configure do |config|
490
- # config.timeout = 10.0
491
- # config.rpcs.list_operations.timeout = 20.0
492
- # end
493
- #
494
- # To apply the above configuration only to a new client:
495
- #
496
- # client = ::Google::Longrunning::Operations::Client.new do |config|
497
- # config.timeout = 10.0
498
- # config.rpcs.list_operations.timeout = 20.0
499
- # end
494
+ # @example
495
+ #
496
+ # # Modify the global config, setting the timeout for
497
+ # # list_operations to 20 seconds,
498
+ # # and all remaining timeouts to 10 seconds.
499
+ # ::Google::Longrunning::Operations::Client.configure do |config|
500
+ # config.timeout = 10.0
501
+ # config.rpcs.list_operations.timeout = 20.0
502
+ # end
503
+ #
504
+ # # Apply the above configuration only to a new client.
505
+ # client = ::Google::Longrunning::Operations::Client.new do |config|
506
+ # config.timeout = 10.0
507
+ # config.rpcs.list_operations.timeout = 20.0
508
+ # end
500
509
  #
501
510
  # @!attribute [rw] endpoint
502
511
  # The hostname or hostname:port of the service endpoint.
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module ArtifactRegistry
23
23
  module V1beta2
24
- VERSION = "0.3.3"
24
+ VERSION = "0.3.4"
25
25
  end
26
26
  end
27
27
  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.3.3
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-07-12 00:00:00.000000000 Z
11
+ date: 2021-08-11 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.5'
19
+ version: '0.7'
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.5'
29
+ version: '0.7'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a