google-cloud-artifact_registry-v1beta2 0.8.0 → 0.9.1

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: 591d5599cbba021663b8e7a27dd6d3ebf7af290f6cd951e4773c4d84d3aa16e8
4
- data.tar.gz: 2dbebbbf02537cd89fc01b65c0f577eb6eedd1a85a154e0e1d61a3c76ee5d29f
3
+ metadata.gz: 96f359af3398707fb67ee0b0d3325bfc5ebd3328eced29251662c51c91641622
4
+ data.tar.gz: b9fa996ea3ca8c42d23b3e01550eead22220d45dadc0f5ef2ad8fea951daf50c
5
5
  SHA512:
6
- metadata.gz: 1e6de1bd5d737401140bce64e107f72ae4db7b5976cc1bd48d07d0dbc1fef5068d7a63e20e3dfcfd91b71f18120f4b53a926d60bc2bc17ed768193d1c4c35d57
7
- data.tar.gz: 10c4c210de3d333c1c3bd96b7dcedb010e522dd692dd068fe1478e2857afafc0d9572e58519b90fbfb5c7cc09214dd1dd1dccaf2af5ce449eda8dec2d1e485c6
6
+ metadata.gz: 6dc9c4c0737442d1da6debd7fdabb8272de028ab41c94e929a9dede4479c7c69f01d2692023586094b61294cba772d7cf2262f3baaed75597718b9720bb25ffe
7
+ data.tar.gz: 6eae3b7d13bf9fe820081f220bb1d4e92067329232f5f159147f0ca2fc6dba39da5d94963524d04cf87c4d8fce1e3e279aef7b7e41f738661edee00a4c492b8a
data/README.md CHANGED
@@ -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://googleapis.dev/ruby/google-cloud-logging/latest)
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 == Client.configure.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
@@ -2613,9 +2613,9 @@ module Google
2613
2613
  # * (`String`) The path to a service account key file in JSON format
2614
2614
  # * (`Hash`) A service account key as a Hash
2615
2615
  # * (`Google::Auth::Credentials`) A googleauth credentials object
2616
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
2616
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
2617
2617
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
2618
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
2618
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
2619
2619
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
2620
2620
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
2621
2621
  # * (`nil`) indicating no credentials
@@ -2657,7 +2657,9 @@ module Google
2657
2657
  class Configuration
2658
2658
  extend ::Gapic::Config
2659
2659
 
2660
- config_attr :endpoint, "artifactregistry.googleapis.com", ::String
2660
+ DEFAULT_ENDPOINT = "artifactregistry.googleapis.com"
2661
+
2662
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
2661
2663
  config_attr :credentials, nil do |value|
2662
2664
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
2663
2665
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -620,9 +620,9 @@ module Google
620
620
  # * (`String`) The path to a service account key file in JSON format
621
621
  # * (`Hash`) A service account key as a Hash
622
622
  # * (`Google::Auth::Credentials`) A googleauth credentials object
623
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
623
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
624
624
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
625
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
625
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
626
626
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
627
627
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
628
628
  # * (`nil`) indicating no credentials
@@ -664,7 +664,9 @@ module Google
664
664
  class Configuration
665
665
  extend ::Gapic::Config
666
666
 
667
- config_attr :endpoint, "artifactregistry.googleapis.com", ::String
667
+ DEFAULT_ENDPOINT = "artifactregistry.googleapis.com"
668
+
669
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
668
670
  config_attr :credentials, nil do |value|
669
671
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
670
672
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -217,7 +217,7 @@ module Google
217
217
  credentials = @config.credentials
218
218
  # Use self-signed JWT if the endpoint is unchanged from default,
219
219
  # but only if the default endpoint does not have a region prefix.
220
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
220
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
221
221
  !@config.endpoint.split(".").first.include?("-")
222
222
  credentials ||= Credentials.default scope: @config.scope,
223
223
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -1968,9 +1968,9 @@ module Google
1968
1968
  # * (`String`) The path to a service account key file in JSON format
1969
1969
  # * (`Hash`) A service account key as a Hash
1970
1970
  # * (`Google::Auth::Credentials`) A googleauth credentials object
1971
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
1971
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
1972
1972
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
1973
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
1973
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
1974
1974
  # * (`nil`) indicating no credentials
1975
1975
  # @return [::Object]
1976
1976
  # @!attribute [rw] scope
@@ -2003,7 +2003,9 @@ module Google
2003
2003
  class Configuration
2004
2004
  extend ::Gapic::Config
2005
2005
 
2006
- config_attr :endpoint, "artifactregistry.googleapis.com", ::String
2006
+ DEFAULT_ENDPOINT = "artifactregistry.googleapis.com"
2007
+
2008
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
2007
2009
  config_attr :credentials, nil do |value|
2008
2010
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
2009
2011
  allowed.any? { |klass| klass === value }
@@ -411,9 +411,9 @@ module Google
411
411
  # * (`String`) The path to a service account key file in JSON format
412
412
  # * (`Hash`) A service account key as a Hash
413
413
  # * (`Google::Auth::Credentials`) A googleauth credentials object
414
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
414
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
415
415
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
416
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
416
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
417
417
  # * (`nil`) indicating no credentials
418
418
  # @return [::Object]
419
419
  # @!attribute [rw] scope
@@ -446,7 +446,9 @@ module Google
446
446
  class Configuration
447
447
  extend ::Gapic::Config
448
448
 
449
- config_attr :endpoint, "artifactregistry.googleapis.com", ::String
449
+ DEFAULT_ENDPOINT = "artifactregistry.googleapis.com"
450
+
451
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
450
452
  config_attr :credentials, nil do |value|
451
453
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
452
454
  allowed.any? { |klass| klass === value }
@@ -567,7 +569,7 @@ module Google
567
569
 
568
570
  verb, uri, query_string_params, body = OperationsServiceStub.transcode_list_operations_request request_pb
569
571
  query_string_params = if query_string_params.any?
570
- query_string_params.to_h { |p| p.split("=", 2) }
572
+ query_string_params.to_h { |p| p.split "=", 2 }
571
573
  else
572
574
  {}
573
575
  end
@@ -605,7 +607,7 @@ module Google
605
607
 
606
608
  verb, uri, query_string_params, body = OperationsServiceStub.transcode_get_operation_request request_pb
607
609
  query_string_params = if query_string_params.any?
608
- query_string_params.to_h { |p| p.split("=", 2) }
610
+ query_string_params.to_h { |p| p.split "=", 2 }
609
611
  else
610
612
  {}
611
613
  end
@@ -643,7 +645,7 @@ module Google
643
645
 
644
646
  verb, uri, query_string_params, body = OperationsServiceStub.transcode_delete_operation_request request_pb
645
647
  query_string_params = if query_string_params.any?
646
- query_string_params.to_h { |p| p.split("=", 2) }
648
+ query_string_params.to_h { |p| p.split "=", 2 }
647
649
  else
648
650
  {}
649
651
  end
@@ -681,7 +683,7 @@ module Google
681
683
 
682
684
  verb, uri, query_string_params, body = OperationsServiceStub.transcode_cancel_operation_request request_pb
683
685
  query_string_params = if query_string_params.any?
684
- query_string_params.to_h { |p| p.split("=", 2) }
686
+ query_string_params.to_h { |p| p.split "=", 2 }
685
687
  else
686
688
  {}
687
689
  end
@@ -59,7 +59,7 @@ module Google
59
59
 
60
60
  verb, uri, query_string_params, body = ServiceStub.transcode_import_apt_artifacts_request request_pb
61
61
  query_string_params = if query_string_params.any?
62
- query_string_params.to_h { |p| p.split("=", 2) }
62
+ query_string_params.to_h { |p| p.split "=", 2 }
63
63
  else
64
64
  {}
65
65
  end
@@ -97,7 +97,7 @@ module Google
97
97
 
98
98
  verb, uri, query_string_params, body = ServiceStub.transcode_import_yum_artifacts_request request_pb
99
99
  query_string_params = if query_string_params.any?
100
- query_string_params.to_h { |p| p.split("=", 2) }
100
+ query_string_params.to_h { |p| p.split "=", 2 }
101
101
  else
102
102
  {}
103
103
  end
@@ -135,7 +135,7 @@ module Google
135
135
 
136
136
  verb, uri, query_string_params, body = ServiceStub.transcode_list_repositories_request request_pb
137
137
  query_string_params = if query_string_params.any?
138
- query_string_params.to_h { |p| p.split("=", 2) }
138
+ query_string_params.to_h { |p| p.split "=", 2 }
139
139
  else
140
140
  {}
141
141
  end
@@ -173,7 +173,7 @@ module Google
173
173
 
174
174
  verb, uri, query_string_params, body = ServiceStub.transcode_get_repository_request request_pb
175
175
  query_string_params = if query_string_params.any?
176
- query_string_params.to_h { |p| p.split("=", 2) }
176
+ query_string_params.to_h { |p| p.split "=", 2 }
177
177
  else
178
178
  {}
179
179
  end
@@ -211,7 +211,7 @@ module Google
211
211
 
212
212
  verb, uri, query_string_params, body = ServiceStub.transcode_create_repository_request request_pb
213
213
  query_string_params = if query_string_params.any?
214
- query_string_params.to_h { |p| p.split("=", 2) }
214
+ query_string_params.to_h { |p| p.split "=", 2 }
215
215
  else
216
216
  {}
217
217
  end
@@ -249,7 +249,7 @@ module Google
249
249
 
250
250
  verb, uri, query_string_params, body = ServiceStub.transcode_update_repository_request request_pb
251
251
  query_string_params = if query_string_params.any?
252
- query_string_params.to_h { |p| p.split("=", 2) }
252
+ query_string_params.to_h { |p| p.split "=", 2 }
253
253
  else
254
254
  {}
255
255
  end
@@ -287,7 +287,7 @@ module Google
287
287
 
288
288
  verb, uri, query_string_params, body = ServiceStub.transcode_delete_repository_request request_pb
289
289
  query_string_params = if query_string_params.any?
290
- query_string_params.to_h { |p| p.split("=", 2) }
290
+ query_string_params.to_h { |p| p.split "=", 2 }
291
291
  else
292
292
  {}
293
293
  end
@@ -325,7 +325,7 @@ module Google
325
325
 
326
326
  verb, uri, query_string_params, body = ServiceStub.transcode_list_packages_request request_pb
327
327
  query_string_params = if query_string_params.any?
328
- query_string_params.to_h { |p| p.split("=", 2) }
328
+ query_string_params.to_h { |p| p.split "=", 2 }
329
329
  else
330
330
  {}
331
331
  end
@@ -363,7 +363,7 @@ module Google
363
363
 
364
364
  verb, uri, query_string_params, body = ServiceStub.transcode_get_package_request request_pb
365
365
  query_string_params = if query_string_params.any?
366
- query_string_params.to_h { |p| p.split("=", 2) }
366
+ query_string_params.to_h { |p| p.split "=", 2 }
367
367
  else
368
368
  {}
369
369
  end
@@ -401,7 +401,7 @@ module Google
401
401
 
402
402
  verb, uri, query_string_params, body = ServiceStub.transcode_delete_package_request request_pb
403
403
  query_string_params = if query_string_params.any?
404
- query_string_params.to_h { |p| p.split("=", 2) }
404
+ query_string_params.to_h { |p| p.split "=", 2 }
405
405
  else
406
406
  {}
407
407
  end
@@ -439,7 +439,7 @@ module Google
439
439
 
440
440
  verb, uri, query_string_params, body = ServiceStub.transcode_list_versions_request request_pb
441
441
  query_string_params = if query_string_params.any?
442
- query_string_params.to_h { |p| p.split("=", 2) }
442
+ query_string_params.to_h { |p| p.split "=", 2 }
443
443
  else
444
444
  {}
445
445
  end
@@ -477,7 +477,7 @@ module Google
477
477
 
478
478
  verb, uri, query_string_params, body = ServiceStub.transcode_get_version_request request_pb
479
479
  query_string_params = if query_string_params.any?
480
- query_string_params.to_h { |p| p.split("=", 2) }
480
+ query_string_params.to_h { |p| p.split "=", 2 }
481
481
  else
482
482
  {}
483
483
  end
@@ -515,7 +515,7 @@ module Google
515
515
 
516
516
  verb, uri, query_string_params, body = ServiceStub.transcode_delete_version_request request_pb
517
517
  query_string_params = if query_string_params.any?
518
- query_string_params.to_h { |p| p.split("=", 2) }
518
+ query_string_params.to_h { |p| p.split "=", 2 }
519
519
  else
520
520
  {}
521
521
  end
@@ -553,7 +553,7 @@ module Google
553
553
 
554
554
  verb, uri, query_string_params, body = ServiceStub.transcode_list_files_request request_pb
555
555
  query_string_params = if query_string_params.any?
556
- query_string_params.to_h { |p| p.split("=", 2) }
556
+ query_string_params.to_h { |p| p.split "=", 2 }
557
557
  else
558
558
  {}
559
559
  end
@@ -591,7 +591,7 @@ module Google
591
591
 
592
592
  verb, uri, query_string_params, body = ServiceStub.transcode_get_file_request request_pb
593
593
  query_string_params = if query_string_params.any?
594
- query_string_params.to_h { |p| p.split("=", 2) }
594
+ query_string_params.to_h { |p| p.split "=", 2 }
595
595
  else
596
596
  {}
597
597
  end
@@ -629,7 +629,7 @@ module Google
629
629
 
630
630
  verb, uri, query_string_params, body = ServiceStub.transcode_list_tags_request request_pb
631
631
  query_string_params = if query_string_params.any?
632
- query_string_params.to_h { |p| p.split("=", 2) }
632
+ query_string_params.to_h { |p| p.split "=", 2 }
633
633
  else
634
634
  {}
635
635
  end
@@ -667,7 +667,7 @@ module Google
667
667
 
668
668
  verb, uri, query_string_params, body = ServiceStub.transcode_get_tag_request request_pb
669
669
  query_string_params = if query_string_params.any?
670
- query_string_params.to_h { |p| p.split("=", 2) }
670
+ query_string_params.to_h { |p| p.split "=", 2 }
671
671
  else
672
672
  {}
673
673
  end
@@ -705,7 +705,7 @@ module Google
705
705
 
706
706
  verb, uri, query_string_params, body = ServiceStub.transcode_create_tag_request request_pb
707
707
  query_string_params = if query_string_params.any?
708
- query_string_params.to_h { |p| p.split("=", 2) }
708
+ query_string_params.to_h { |p| p.split "=", 2 }
709
709
  else
710
710
  {}
711
711
  end
@@ -743,7 +743,7 @@ module Google
743
743
 
744
744
  verb, uri, query_string_params, body = ServiceStub.transcode_update_tag_request request_pb
745
745
  query_string_params = if query_string_params.any?
746
- query_string_params.to_h { |p| p.split("=", 2) }
746
+ query_string_params.to_h { |p| p.split "=", 2 }
747
747
  else
748
748
  {}
749
749
  end
@@ -781,7 +781,7 @@ module Google
781
781
 
782
782
  verb, uri, query_string_params, body = ServiceStub.transcode_delete_tag_request request_pb
783
783
  query_string_params = if query_string_params.any?
784
- query_string_params.to_h { |p| p.split("=", 2) }
784
+ query_string_params.to_h { |p| p.split "=", 2 }
785
785
  else
786
786
  {}
787
787
  end
@@ -819,7 +819,7 @@ module Google
819
819
 
820
820
  verb, uri, query_string_params, body = ServiceStub.transcode_set_iam_policy_request request_pb
821
821
  query_string_params = if query_string_params.any?
822
- query_string_params.to_h { |p| p.split("=", 2) }
822
+ query_string_params.to_h { |p| p.split "=", 2 }
823
823
  else
824
824
  {}
825
825
  end
@@ -857,7 +857,7 @@ module Google
857
857
 
858
858
  verb, uri, query_string_params, body = ServiceStub.transcode_get_iam_policy_request request_pb
859
859
  query_string_params = if query_string_params.any?
860
- query_string_params.to_h { |p| p.split("=", 2) }
860
+ query_string_params.to_h { |p| p.split "=", 2 }
861
861
  else
862
862
  {}
863
863
  end
@@ -895,7 +895,7 @@ module Google
895
895
 
896
896
  verb, uri, query_string_params, body = ServiceStub.transcode_test_iam_permissions_request request_pb
897
897
  query_string_params = if query_string_params.any?
898
- query_string_params.to_h { |p| p.split("=", 2) }
898
+ query_string_params.to_h { |p| p.split "=", 2 }
899
899
  else
900
900
  {}
901
901
  end
@@ -933,7 +933,7 @@ module Google
933
933
 
934
934
  verb, uri, query_string_params, body = ServiceStub.transcode_get_project_settings_request request_pb
935
935
  query_string_params = if query_string_params.any?
936
- query_string_params.to_h { |p| p.split("=", 2) }
936
+ query_string_params.to_h { |p| p.split "=", 2 }
937
937
  else
938
938
  {}
939
939
  end
@@ -971,7 +971,7 @@ module Google
971
971
 
972
972
  verb, uri, query_string_params, body = ServiceStub.transcode_update_project_settings_request request_pb
973
973
  query_string_params = if query_string_params.any?
974
- query_string_params.to_h { |p| p.split("=", 2) }
974
+ query_string_params.to_h { |p| p.split "=", 2 }
975
975
  else
976
976
  {}
977
977
  end
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module ArtifactRegistry
23
23
  module V1beta2
24
- VERSION = "0.8.0"
24
+ VERSION = "0.9.1"
25
25
  end
26
26
  end
27
27
  end
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/devtools/artifactregistry/v1beta2/apt_artifact.proto
3
4
 
@@ -7,44 +8,32 @@ require 'google/api/field_behavior_pb'
7
8
  require 'google/api/resource_pb'
8
9
  require 'google/rpc/status_pb'
9
10
 
10
- Google::Protobuf::DescriptorPool.generated_pool.build do
11
- add_file("google/devtools/artifactregistry/v1beta2/apt_artifact.proto", :syntax => :proto3) do
12
- add_message "google.devtools.artifactregistry.v1beta2.AptArtifact" do
13
- optional :name, :string, 1
14
- optional :package_name, :string, 2
15
- optional :package_type, :enum, 3, "google.devtools.artifactregistry.v1beta2.AptArtifact.PackageType"
16
- optional :architecture, :string, 4
17
- optional :component, :string, 5
18
- optional :control_file, :bytes, 6
19
- end
20
- add_enum "google.devtools.artifactregistry.v1beta2.AptArtifact.PackageType" do
21
- value :PACKAGE_TYPE_UNSPECIFIED, 0
22
- value :BINARY, 1
23
- value :SOURCE, 2
24
- end
25
- add_message "google.devtools.artifactregistry.v1beta2.ImportAptArtifactsGcsSource" do
26
- repeated :uris, :string, 1
27
- optional :use_wildcards, :bool, 2
28
- end
29
- add_message "google.devtools.artifactregistry.v1beta2.ImportAptArtifactsRequest" do
30
- optional :parent, :string, 1
31
- oneof :source do
32
- optional :gcs_source, :message, 2, "google.devtools.artifactregistry.v1beta2.ImportAptArtifactsGcsSource"
33
- end
34
- end
35
- add_message "google.devtools.artifactregistry.v1beta2.ImportAptArtifactsErrorInfo" do
36
- optional :error, :message, 2, "google.rpc.Status"
37
- oneof :source do
38
- optional :gcs_source, :message, 1, "google.devtools.artifactregistry.v1beta2.ImportAptArtifactsGcsSource"
39
- end
40
- end
41
- add_message "google.devtools.artifactregistry.v1beta2.ImportAptArtifactsResponse" do
42
- repeated :apt_artifacts, :message, 1, "google.devtools.artifactregistry.v1beta2.AptArtifact"
43
- repeated :errors, :message, 2, "google.devtools.artifactregistry.v1beta2.ImportAptArtifactsErrorInfo"
44
- end
45
- add_message "google.devtools.artifactregistry.v1beta2.ImportAptArtifactsMetadata" do
11
+
12
+ descriptor_data = "\n;google/devtools/artifactregistry/v1beta2/apt_artifact.proto\x12(google.devtools.artifactregistry.v1beta2\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x17google/rpc/status.proto\"\xbf\x03\n\x0b\x41ptArtifact\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x19\n\x0cpackage_name\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\\\n\x0cpackage_type\x18\x03 \x01(\x0e\x32\x41.google.devtools.artifactregistry.v1beta2.AptArtifact.PackageTypeB\x03\xe0\x41\x03\x12\x19\n\x0c\x61rchitecture\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12\x16\n\tcomponent\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12\x19\n\x0c\x63ontrol_file\x18\x06 \x01(\x0c\x42\x03\xe0\x41\x03\"C\n\x0bPackageType\x12\x1c\n\x18PACKAGE_TYPE_UNSPECIFIED\x10\x00\x12\n\n\x06\x42INARY\x10\x01\x12\n\n\x06SOURCE\x10\x02:\x90\x01\xea\x41\x8c\x01\n+artifactregistry.googleapis.com/AptArtifact\x12]projects/{project}/locations/{location}/repositories/{repository}/aptArtifacts/{apt_artifact}\"B\n\x1bImportAptArtifactsGcsSource\x12\x0c\n\x04uris\x18\x01 \x03(\t\x12\x15\n\ruse_wildcards\x18\x02 \x01(\x08\"\x92\x01\n\x19ImportAptArtifactsRequest\x12[\n\ngcs_source\x18\x02 \x01(\x0b\x32\x45.google.devtools.artifactregistry.v1beta2.ImportAptArtifactsGcsSourceH\x00\x12\x0e\n\x06parent\x18\x01 \x01(\tB\x08\n\x06source\"\xa7\x01\n\x1bImportAptArtifactsErrorInfo\x12[\n\ngcs_source\x18\x01 \x01(\x0b\x32\x45.google.devtools.artifactregistry.v1beta2.ImportAptArtifactsGcsSourceH\x00\x12!\n\x05\x65rror\x18\x02 \x01(\x0b\x32\x12.google.rpc.StatusB\x08\n\x06source\"\xc1\x01\n\x1aImportAptArtifactsResponse\x12L\n\rapt_artifacts\x18\x01 \x03(\x0b\x32\x35.google.devtools.artifactregistry.v1beta2.AptArtifact\x12U\n\x06\x65rrors\x18\x02 \x03(\x0b\x32\x45.google.devtools.artifactregistry.v1beta2.ImportAptArtifactsErrorInfo\"\x1c\n\x1aImportAptArtifactsMetadataB\x94\x02\n,com.google.devtools.artifactregistry.v1beta2B\x10\x41ptArtifactProtoP\x01ZUcloud.google.com/go/artifactregistry/apiv1beta2/artifactregistrypb;artifactregistrypb\xaa\x02%Google.Cloud.ArtifactRegistry.V1Beta2\xca\x02%Google\\Cloud\\ArtifactRegistry\\V1beta2\xea\x02(Google::Cloud::ArtifactRegistry::V1beta2b\x06proto3"
13
+
14
+ pool = Google::Protobuf::DescriptorPool.generated_pool
15
+
16
+ begin
17
+ pool.add_serialized_file(descriptor_data)
18
+ rescue TypeError => e
19
+ # Compatibility code: will be removed in the next major version.
20
+ require 'google/protobuf/descriptor_pb'
21
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
22
+ parsed.clear_dependency
23
+ serialized = parsed.class.encode(parsed)
24
+ file = pool.add_serialized_file(serialized)
25
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
26
+ imports = [
27
+ ["google.rpc.Status", "google/rpc/status.proto"],
28
+ ]
29
+ imports.each do |type_name, expected_filename|
30
+ import_file = pool.lookup(type_name).file_descriptor
31
+ if import_file.name != expected_filename
32
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
46
33
  end
47
34
  end
35
+ warn "Each proto file must use a consistent fully-qualified name."
36
+ warn "This will become an error in the next major version."
48
37
  end
49
38
 
50
39
  module Google
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/devtools/artifactregistry/v1beta2/file.proto
3
4
 
@@ -6,39 +7,32 @@ require 'google/protobuf'
6
7
  require 'google/api/resource_pb'
7
8
  require 'google/protobuf/timestamp_pb'
8
9
 
9
- Google::Protobuf::DescriptorPool.generated_pool.build do
10
- add_file("google/devtools/artifactregistry/v1beta2/file.proto", :syntax => :proto3) do
11
- add_message "google.devtools.artifactregistry.v1beta2.Hash" do
12
- optional :type, :enum, 1, "google.devtools.artifactregistry.v1beta2.Hash.HashType"
13
- optional :value, :bytes, 2
14
- end
15
- add_enum "google.devtools.artifactregistry.v1beta2.Hash.HashType" do
16
- value :HASH_TYPE_UNSPECIFIED, 0
17
- value :SHA256, 1
18
- value :MD5, 2
19
- end
20
- add_message "google.devtools.artifactregistry.v1beta2.File" do
21
- optional :name, :string, 1
22
- optional :size_bytes, :int64, 3
23
- repeated :hashes, :message, 4, "google.devtools.artifactregistry.v1beta2.Hash"
24
- optional :create_time, :message, 5, "google.protobuf.Timestamp"
25
- optional :update_time, :message, 6, "google.protobuf.Timestamp"
26
- optional :owner, :string, 7
27
- end
28
- add_message "google.devtools.artifactregistry.v1beta2.ListFilesRequest" do
29
- optional :parent, :string, 1
30
- optional :filter, :string, 4
31
- optional :page_size, :int32, 2
32
- optional :page_token, :string, 3
33
- end
34
- add_message "google.devtools.artifactregistry.v1beta2.ListFilesResponse" do
35
- repeated :files, :message, 1, "google.devtools.artifactregistry.v1beta2.File"
36
- optional :next_page_token, :string, 2
37
- end
38
- add_message "google.devtools.artifactregistry.v1beta2.GetFileRequest" do
39
- optional :name, :string, 1
10
+
11
+ descriptor_data = "\n3google/devtools/artifactregistry/v1beta2/file.proto\x12(google.devtools.artifactregistry.v1beta2\x1a\x19google/api/resource.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x98\x01\n\x04Hash\x12\x45\n\x04type\x18\x01 \x01(\x0e\x32\x37.google.devtools.artifactregistry.v1beta2.Hash.HashType\x12\r\n\x05value\x18\x02 \x01(\x0c\":\n\x08HashType\x12\x19\n\x15HASH_TYPE_UNSPECIFIED\x10\x00\x12\n\n\x06SHA256\x10\x01\x12\x07\n\x03MD5\x10\x02\"\xd4\x02\n\x04\x46ile\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x12\n\nsize_bytes\x18\x03 \x01(\x03\x12>\n\x06hashes\x18\x04 \x03(\x0b\x32..google.devtools.artifactregistry.v1beta2.Hash\x12/\n\x0b\x63reate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\r\n\x05owner\x18\x07 \x01(\t:y\xea\x41v\n$artifactregistry.googleapis.com/File\x12Nprojects/{project}/locations/{location}/repositories/{repository}/files/{file}\"Y\n\x10ListFilesRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x04 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"k\n\x11ListFilesResponse\x12=\n\x05\x66iles\x18\x01 \x03(\x0b\x32..google.devtools.artifactregistry.v1beta2.File\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x1e\n\x0eGetFileRequest\x12\x0c\n\x04name\x18\x01 \x01(\tB\x8d\x02\n,com.google.devtools.artifactregistry.v1beta2B\tFileProtoP\x01ZUcloud.google.com/go/artifactregistry/apiv1beta2/artifactregistrypb;artifactregistrypb\xaa\x02%Google.Cloud.ArtifactRegistry.V1Beta2\xca\x02%Google\\Cloud\\ArtifactRegistry\\V1beta2\xea\x02(Google::Cloud::ArtifactRegistry::V1beta2b\x06proto3"
12
+
13
+ pool = Google::Protobuf::DescriptorPool.generated_pool
14
+
15
+ begin
16
+ pool.add_serialized_file(descriptor_data)
17
+ rescue TypeError => e
18
+ # Compatibility code: will be removed in the next major version.
19
+ require 'google/protobuf/descriptor_pb'
20
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
21
+ parsed.clear_dependency
22
+ serialized = parsed.class.encode(parsed)
23
+ file = pool.add_serialized_file(serialized)
24
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
25
+ imports = [
26
+ ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
27
+ ]
28
+ imports.each do |type_name, expected_filename|
29
+ import_file = pool.lookup(type_name).file_descriptor
30
+ if import_file.name != expected_filename
31
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
40
32
  end
41
33
  end
34
+ warn "Each proto file must use a consistent fully-qualified name."
35
+ warn "This will become an error in the next major version."
42
36
  end
43
37
 
44
38
  module Google
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/devtools/artifactregistry/v1beta2/package.proto
3
4
 
@@ -5,30 +6,32 @@ require 'google/protobuf'
5
6
 
6
7
  require 'google/protobuf/timestamp_pb'
7
8
 
8
- Google::Protobuf::DescriptorPool.generated_pool.build do
9
- add_file("google/devtools/artifactregistry/v1beta2/package.proto", :syntax => :proto3) do
10
- add_message "google.devtools.artifactregistry.v1beta2.Package" do
11
- optional :name, :string, 1
12
- optional :display_name, :string, 2
13
- optional :create_time, :message, 5, "google.protobuf.Timestamp"
14
- optional :update_time, :message, 6, "google.protobuf.Timestamp"
15
- end
16
- add_message "google.devtools.artifactregistry.v1beta2.ListPackagesRequest" do
17
- optional :parent, :string, 1
18
- optional :page_size, :int32, 2
19
- optional :page_token, :string, 3
20
- end
21
- add_message "google.devtools.artifactregistry.v1beta2.ListPackagesResponse" do
22
- repeated :packages, :message, 1, "google.devtools.artifactregistry.v1beta2.Package"
23
- optional :next_page_token, :string, 2
24
- end
25
- add_message "google.devtools.artifactregistry.v1beta2.GetPackageRequest" do
26
- optional :name, :string, 1
27
- end
28
- add_message "google.devtools.artifactregistry.v1beta2.DeletePackageRequest" do
29
- optional :name, :string, 1
9
+
10
+ descriptor_data = "\n6google/devtools/artifactregistry/v1beta2/package.proto\x12(google.devtools.artifactregistry.v1beta2\x1a\x1fgoogle/protobuf/timestamp.proto\"\x8f\x01\n\x07Package\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12/\n\x0b\x63reate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"L\n\x13ListPackagesRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"t\n\x14ListPackagesResponse\x12\x43\n\x08packages\x18\x01 \x03(\x0b\x32\x31.google.devtools.artifactregistry.v1beta2.Package\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"!\n\x11GetPackageRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"$\n\x14\x44\x65letePackageRequest\x12\x0c\n\x04name\x18\x01 \x01(\tB\x90\x02\n,com.google.devtools.artifactregistry.v1beta2B\x0cPackageProtoP\x01ZUcloud.google.com/go/artifactregistry/apiv1beta2/artifactregistrypb;artifactregistrypb\xaa\x02%Google.Cloud.ArtifactRegistry.V1Beta2\xca\x02%Google\\Cloud\\ArtifactRegistry\\V1beta2\xea\x02(Google::Cloud::ArtifactRegistry::V1beta2b\x06proto3"
11
+
12
+ pool = Google::Protobuf::DescriptorPool.generated_pool
13
+
14
+ begin
15
+ pool.add_serialized_file(descriptor_data)
16
+ rescue TypeError => e
17
+ # Compatibility code: will be removed in the next major version.
18
+ require 'google/protobuf/descriptor_pb'
19
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
20
+ parsed.clear_dependency
21
+ serialized = parsed.class.encode(parsed)
22
+ file = pool.add_serialized_file(serialized)
23
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
24
+ imports = [
25
+ ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
26
+ ]
27
+ imports.each do |type_name, expected_filename|
28
+ import_file = pool.lookup(type_name).file_descriptor
29
+ if import_file.name != expected_filename
30
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
30
31
  end
31
32
  end
33
+ warn "Each proto file must use a consistent fully-qualified name."
34
+ warn "This will become an error in the next major version."
32
35
  end
33
36
 
34
37
  module Google