google-cloud-apigee_registry-v1 0.4.0 → 0.5.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 156728116ba847a4ad59a8c58ef162d81d6474a0a927fddec48673d5210bafe1
4
- data.tar.gz: 0b87f057c3ab6ba497c105aefbf82b44a94ed010a1d1dec03c410a9339453fd4
3
+ metadata.gz: e6f2c4a34c0ee9eba5893c611a6527c57f339d32315d14a7906a023d67c0a7fb
4
+ data.tar.gz: a047a1439e60e34efcd319e0877e879edfc8374135053ae219b2aa98e183b40c
5
5
  SHA512:
6
- metadata.gz: f71c2bef6e33976ebf985d781822c040f21a74d200ef0dafe8a2dc94f75204649cd433ddae2b561262636f960c7ba0fae1c77325cfb563c6cd91e4378edef6cc
7
- data.tar.gz: 478054668a86dbae0a45452a565287a2b82c00ee9db2c68fa5fc56f13761fed911340032f2b6b5ccc874acf51e8ed8b5ca268b3a93bde9c6a9a3ed62f062343e
6
+ metadata.gz: 3596852957e73a12a3a9245eef2782b70658cb061e7c68db26a56778028edf61574c45de7baf88d298b22887954dbd5707d9139a2733f40eaa8fc4c207f6e7e4
7
+ data.tar.gz: 6ae1386aceb73c392e99e4fa6f9c2688ff2672b92c15c143fd6e80875ce4f72f3ccbf811baae4013e19726f9d03f430ae2c5d87398598f9ca13324261e04a582
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
 
@@ -126,7 +126,7 @@ module Google
126
126
  credentials = @config.credentials
127
127
  # Use self-signed JWT if the endpoint is unchanged from default,
128
128
  # but only if the default endpoint does not have a region prefix.
129
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
129
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
130
130
  !@config.endpoint.split(".").first.include?("-")
131
131
  credentials ||= Credentials.default scope: @config.scope,
132
132
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -502,9 +502,9 @@ module Google
502
502
  # * (`String`) The path to a service account key file in JSON format
503
503
  # * (`Hash`) A service account key as a Hash
504
504
  # * (`Google::Auth::Credentials`) A googleauth credentials object
505
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
505
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
506
506
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
507
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
507
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
508
508
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
509
509
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
510
510
  # * (`nil`) indicating no credentials
@@ -546,7 +546,9 @@ module Google
546
546
  class Configuration
547
547
  extend ::Gapic::Config
548
548
 
549
- config_attr :endpoint, "apigeeregistry.googleapis.com", ::String
549
+ DEFAULT_ENDPOINT = "apigeeregistry.googleapis.com"
550
+
551
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
550
552
  config_attr :credentials, nil do |value|
551
553
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
552
554
  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, "apigeeregistry.googleapis.com", ::String
667
+ DEFAULT_ENDPOINT = "apigeeregistry.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
@@ -122,7 +122,7 @@ module Google
122
122
  credentials = @config.credentials
123
123
  # Use self-signed JWT if the endpoint is unchanged from default,
124
124
  # but only if the default endpoint does not have a region prefix.
125
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
125
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
126
126
  !@config.endpoint.split(".").first.include?("-")
127
127
  credentials ||= Credentials.default scope: @config.scope,
128
128
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -412,9 +412,9 @@ module Google
412
412
  # * (`String`) The path to a service account key file in JSON format
413
413
  # * (`Hash`) A service account key as a Hash
414
414
  # * (`Google::Auth::Credentials`) A googleauth credentials object
415
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
415
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
416
416
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
417
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
417
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
418
418
  # * (`nil`) indicating no credentials
419
419
  # @return [::Object]
420
420
  # @!attribute [rw] scope
@@ -447,7 +447,9 @@ module Google
447
447
  class Configuration
448
448
  extend ::Gapic::Config
449
449
 
450
- config_attr :endpoint, "apigeeregistry.googleapis.com", ::String
450
+ DEFAULT_ENDPOINT = "apigeeregistry.googleapis.com"
451
+
452
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
451
453
  config_attr :credentials, nil do |value|
452
454
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
453
455
  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, "apigeeregistry.googleapis.com", ::String
449
+ DEFAULT_ENDPOINT = "apigeeregistry.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_create_instance_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_delete_instance_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_get_instance_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
@@ -294,7 +294,7 @@ module Google
294
294
  credentials = @config.credentials
295
295
  # Use self-signed JWT if the endpoint is unchanged from default,
296
296
  # but only if the default endpoint does not have a region prefix.
297
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
297
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
298
298
  !@config.endpoint.split(".").first.include?("-")
299
299
  credentials ||= Credentials.default scope: @config.scope,
300
300
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -3639,9 +3639,9 @@ module Google
3639
3639
  # * (`String`) The path to a service account key file in JSON format
3640
3640
  # * (`Hash`) A service account key as a Hash
3641
3641
  # * (`Google::Auth::Credentials`) A googleauth credentials object
3642
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
3642
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
3643
3643
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
3644
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
3644
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
3645
3645
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
3646
3646
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
3647
3647
  # * (`nil`) indicating no credentials
@@ -3683,7 +3683,9 @@ module Google
3683
3683
  class Configuration
3684
3684
  extend ::Gapic::Config
3685
3685
 
3686
- config_attr :endpoint, "apigeeregistry.googleapis.com", ::String
3686
+ DEFAULT_ENDPOINT = "apigeeregistry.googleapis.com"
3687
+
3688
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
3687
3689
  config_attr :credentials, nil do |value|
3688
3690
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
3689
3691
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -290,7 +290,7 @@ module Google
290
290
  credentials = @config.credentials
291
291
  # Use self-signed JWT if the endpoint is unchanged from default,
292
292
  # but only if the default endpoint does not have a region prefix.
293
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
293
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
294
294
  !@config.endpoint.split(".").first.include?("-")
295
295
  credentials ||= Credentials.default scope: @config.scope,
296
296
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -2799,9 +2799,9 @@ module Google
2799
2799
  # * (`String`) The path to a service account key file in JSON format
2800
2800
  # * (`Hash`) A service account key as a Hash
2801
2801
  # * (`Google::Auth::Credentials`) A googleauth credentials object
2802
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
2802
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
2803
2803
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
2804
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
2804
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
2805
2805
  # * (`nil`) indicating no credentials
2806
2806
  # @return [::Object]
2807
2807
  # @!attribute [rw] scope
@@ -2834,7 +2834,9 @@ module Google
2834
2834
  class Configuration
2835
2835
  extend ::Gapic::Config
2836
2836
 
2837
- config_attr :endpoint, "apigeeregistry.googleapis.com", ::String
2837
+ DEFAULT_ENDPOINT = "apigeeregistry.googleapis.com"
2838
+
2839
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
2838
2840
  config_attr :credentials, nil do |value|
2839
2841
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
2840
2842
  allowed.any? { |klass| klass === value }
@@ -59,7 +59,7 @@ module Google
59
59
 
60
60
  verb, uri, query_string_params, body = ServiceStub.transcode_list_apis_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_get_api_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_create_api_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_update_api_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_delete_api_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_list_api_versions_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_get_api_version_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_create_api_version_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_update_api_version_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_api_version_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_api_specs_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_api_spec_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_get_api_spec_contents_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_create_api_spec_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_update_api_spec_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_delete_api_spec_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_tag_api_spec_revision_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_list_api_spec_revisions_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_rollback_api_spec_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_api_spec_revision_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_list_api_deployments_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_api_deployment_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_create_api_deployment_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_update_api_deployment_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_delete_api_deployment_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
@@ -1009,7 +1009,7 @@ module Google
1009
1009
 
1010
1010
  verb, uri, query_string_params, body = ServiceStub.transcode_tag_api_deployment_revision_request request_pb
1011
1011
  query_string_params = if query_string_params.any?
1012
- query_string_params.to_h { |p| p.split("=", 2) }
1012
+ query_string_params.to_h { |p| p.split "=", 2 }
1013
1013
  else
1014
1014
  {}
1015
1015
  end
@@ -1047,7 +1047,7 @@ module Google
1047
1047
 
1048
1048
  verb, uri, query_string_params, body = ServiceStub.transcode_list_api_deployment_revisions_request request_pb
1049
1049
  query_string_params = if query_string_params.any?
1050
- query_string_params.to_h { |p| p.split("=", 2) }
1050
+ query_string_params.to_h { |p| p.split "=", 2 }
1051
1051
  else
1052
1052
  {}
1053
1053
  end
@@ -1085,7 +1085,7 @@ module Google
1085
1085
 
1086
1086
  verb, uri, query_string_params, body = ServiceStub.transcode_rollback_api_deployment_request request_pb
1087
1087
  query_string_params = if query_string_params.any?
1088
- query_string_params.to_h { |p| p.split("=", 2) }
1088
+ query_string_params.to_h { |p| p.split "=", 2 }
1089
1089
  else
1090
1090
  {}
1091
1091
  end
@@ -1123,7 +1123,7 @@ module Google
1123
1123
 
1124
1124
  verb, uri, query_string_params, body = ServiceStub.transcode_delete_api_deployment_revision_request request_pb
1125
1125
  query_string_params = if query_string_params.any?
1126
- query_string_params.to_h { |p| p.split("=", 2) }
1126
+ query_string_params.to_h { |p| p.split "=", 2 }
1127
1127
  else
1128
1128
  {}
1129
1129
  end
@@ -1161,7 +1161,7 @@ module Google
1161
1161
 
1162
1162
  verb, uri, query_string_params, body = ServiceStub.transcode_list_artifacts_request request_pb
1163
1163
  query_string_params = if query_string_params.any?
1164
- query_string_params.to_h { |p| p.split("=", 2) }
1164
+ query_string_params.to_h { |p| p.split "=", 2 }
1165
1165
  else
1166
1166
  {}
1167
1167
  end
@@ -1199,7 +1199,7 @@ module Google
1199
1199
 
1200
1200
  verb, uri, query_string_params, body = ServiceStub.transcode_get_artifact_request request_pb
1201
1201
  query_string_params = if query_string_params.any?
1202
- query_string_params.to_h { |p| p.split("=", 2) }
1202
+ query_string_params.to_h { |p| p.split "=", 2 }
1203
1203
  else
1204
1204
  {}
1205
1205
  end
@@ -1237,7 +1237,7 @@ module Google
1237
1237
 
1238
1238
  verb, uri, query_string_params, body = ServiceStub.transcode_get_artifact_contents_request request_pb
1239
1239
  query_string_params = if query_string_params.any?
1240
- query_string_params.to_h { |p| p.split("=", 2) }
1240
+ query_string_params.to_h { |p| p.split "=", 2 }
1241
1241
  else
1242
1242
  {}
1243
1243
  end
@@ -1275,7 +1275,7 @@ module Google
1275
1275
 
1276
1276
  verb, uri, query_string_params, body = ServiceStub.transcode_create_artifact_request request_pb
1277
1277
  query_string_params = if query_string_params.any?
1278
- query_string_params.to_h { |p| p.split("=", 2) }
1278
+ query_string_params.to_h { |p| p.split "=", 2 }
1279
1279
  else
1280
1280
  {}
1281
1281
  end
@@ -1313,7 +1313,7 @@ module Google
1313
1313
 
1314
1314
  verb, uri, query_string_params, body = ServiceStub.transcode_replace_artifact_request request_pb
1315
1315
  query_string_params = if query_string_params.any?
1316
- query_string_params.to_h { |p| p.split("=", 2) }
1316
+ query_string_params.to_h { |p| p.split "=", 2 }
1317
1317
  else
1318
1318
  {}
1319
1319
  end
@@ -1351,7 +1351,7 @@ module Google
1351
1351
 
1352
1352
  verb, uri, query_string_params, body = ServiceStub.transcode_delete_artifact_request request_pb
1353
1353
  query_string_params = if query_string_params.any?
1354
- query_string_params.to_h { |p| p.split("=", 2) }
1354
+ query_string_params.to_h { |p| p.split "=", 2 }
1355
1355
  else
1356
1356
  {}
1357
1357
  end
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module ApigeeRegistry
23
23
  module V1
24
- VERSION = "0.4.0"
24
+ VERSION = "0.5.0"
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/cloud/apigeeregistry/v1/provisioning_service.proto
3
4
 
@@ -10,50 +11,32 @@ require 'google/api/resource_pb'
10
11
  require 'google/longrunning/operations_pb'
11
12
  require 'google/protobuf/timestamp_pb'
12
13
 
13
- Google::Protobuf::DescriptorPool.generated_pool.build do
14
- add_file("google/cloud/apigeeregistry/v1/provisioning_service.proto", :syntax => :proto3) do
15
- add_message "google.cloud.apigeeregistry.v1.CreateInstanceRequest" do
16
- optional :parent, :string, 1
17
- optional :instance_id, :string, 2
18
- optional :instance, :message, 3, "google.cloud.apigeeregistry.v1.Instance"
19
- end
20
- add_message "google.cloud.apigeeregistry.v1.DeleteInstanceRequest" do
21
- optional :name, :string, 1
22
- end
23
- add_message "google.cloud.apigeeregistry.v1.GetInstanceRequest" do
24
- optional :name, :string, 1
25
- end
26
- add_message "google.cloud.apigeeregistry.v1.OperationMetadata" do
27
- optional :create_time, :message, 1, "google.protobuf.Timestamp"
28
- optional :end_time, :message, 2, "google.protobuf.Timestamp"
29
- optional :target, :string, 3
30
- optional :verb, :string, 4
31
- optional :status_message, :string, 5
32
- optional :cancellation_requested, :bool, 6
33
- optional :api_version, :string, 7
34
- end
35
- add_message "google.cloud.apigeeregistry.v1.Instance" do
36
- optional :name, :string, 1
37
- optional :create_time, :message, 2, "google.protobuf.Timestamp"
38
- optional :update_time, :message, 3, "google.protobuf.Timestamp"
39
- optional :state, :enum, 4, "google.cloud.apigeeregistry.v1.Instance.State"
40
- optional :state_message, :string, 5
41
- optional :config, :message, 6, "google.cloud.apigeeregistry.v1.Instance.Config"
42
- end
43
- add_message "google.cloud.apigeeregistry.v1.Instance.Config" do
44
- optional :location, :string, 1
45
- optional :cmek_key_name, :string, 2
46
- end
47
- add_enum "google.cloud.apigeeregistry.v1.Instance.State" do
48
- value :STATE_UNSPECIFIED, 0
49
- value :INACTIVE, 1
50
- value :CREATING, 2
51
- value :ACTIVE, 3
52
- value :UPDATING, 4
53
- value :DELETING, 5
54
- value :FAILED, 6
14
+
15
+ descriptor_data = "\n9google/cloud/apigeeregistry/v1/provisioning_service.proto\x12\x1egoogle.cloud.apigeeregistry.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a#google/longrunning/operations.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xad\x01\n\x15\x43reateInstanceRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x18\n\x0binstance_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12?\n\x08instance\x18\x03 \x01(\x0b\x32(.google.cloud.apigeeregistry.v1.InstanceB\x03\xe0\x41\x02\"U\n\x15\x44\x65leteInstanceRequest\x12<\n\x04name\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&apigeeregistry.googleapis.com/Instance\"R\n\x12GetInstanceRequest\x12<\n\x04name\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&apigeeregistry.googleapis.com/Instance\"\xdd\x01\n\x11OperationMetadata\x12/\n\x0b\x63reate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0e\n\x06target\x18\x03 \x01(\t\x12\x0c\n\x04verb\x18\x04 \x01(\t\x12\x16\n\x0estatus_message\x18\x05 \x01(\t\x12\x1e\n\x16\x63\x61ncellation_requested\x18\x06 \x01(\x08\x12\x13\n\x0b\x61pi_version\x18\x07 \x01(\t\"\xc2\x04\n\x08Instance\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x34\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x42\n\x05state\x18\x04 \x01(\x0e\x32..google.cloud.apigeeregistry.v1.Instance.StateB\x03\xe0\x41\x03\x12\x1a\n\rstate_message\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12\x44\n\x06\x63onfig\x18\x06 \x01(\x0b\x32/.google.cloud.apigeeregistry.v1.Instance.ConfigB\x03\xe0\x41\x02\x1a;\n\x06\x43onfig\x12\x15\n\x08location\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x1a\n\rcmek_key_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\"n\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08INACTIVE\x10\x01\x12\x0c\n\x08\x43REATING\x10\x02\x12\n\n\x06\x41\x43TIVE\x10\x03\x12\x0c\n\x08UPDATING\x10\x04\x12\x0c\n\x08\x44\x45LETING\x10\x05\x12\n\n\x06\x46\x41ILED\x10\x06:i\xea\x41\x66\n&apigeeregistry.googleapis.com/Instance\x12<projects/{project}/locations/{location}/instances/{instance}2\xc9\x05\n\x0cProvisioning\x12\xe5\x01\n\x0e\x43reateInstance\x12\x35.google.cloud.apigeeregistry.v1.CreateInstanceRequest\x1a\x1d.google.longrunning.Operation\"}\x82\xd3\xe4\x93\x02\x39\"-/v1/{parent=projects/*/locations/*}/instances:\x08instance\xda\x41\x1bparent,instance,instance_id\xca\x41\x1d\n\x08Instance\x12\x11OperationMetadata\x12\xd1\x01\n\x0e\x44\x65leteInstance\x12\x35.google.cloud.apigeeregistry.v1.DeleteInstanceRequest\x1a\x1d.google.longrunning.Operation\"i\x82\xd3\xe4\x93\x02/*-/v1/{name=projects/*/locations/*/instances/*}\xda\x41\x04name\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\x12\xa9\x01\n\x0bGetInstance\x12\x32.google.cloud.apigeeregistry.v1.GetInstanceRequest\x1a(.google.cloud.apigeeregistry.v1.Instance\"<\x82\xd3\xe4\x93\x02/\x12-/v1/{name=projects/*/locations/*/instances/*}\xda\x41\x04name\x1aQ\xca\x41\x1d\x61pigeeregistry.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xf2\x01\n\"com.google.cloud.apigeeregistry.v1B\x18ProvisioningServiceProtoP\x01ZJcloud.google.com/go/apigeeregistry/apiv1/apigeeregistrypb;apigeeregistrypb\xaa\x02\x1eGoogle.Cloud.ApigeeRegistry.V1\xca\x02\x1eGoogle\\Cloud\\ApigeeRegistry\\V1\xea\x02!Google::Cloud::ApigeeRegistry::V1b\x06proto3"
16
+
17
+ pool = Google::Protobuf::DescriptorPool.generated_pool
18
+
19
+ begin
20
+ pool.add_serialized_file(descriptor_data)
21
+ rescue TypeError => e
22
+ # Compatibility code: will be removed in the next major version.
23
+ require 'google/protobuf/descriptor_pb'
24
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
25
+ parsed.clear_dependency
26
+ serialized = parsed.class.encode(parsed)
27
+ file = pool.add_serialized_file(serialized)
28
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
29
+ imports = [
30
+ ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
31
+ ]
32
+ imports.each do |type_name, expected_filename|
33
+ import_file = pool.lookup(type_name).file_descriptor
34
+ if import_file.name != expected_filename
35
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
55
36
  end
56
37
  end
38
+ warn "Each proto file must use a consistent fully-qualified name."
39
+ warn "This will become an error in the next major version."
57
40
  end
58
41
 
59
42
  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/cloud/apigeeregistry/v1/registry_models.proto
3
4
 
@@ -7,72 +8,32 @@ require 'google/api/field_behavior_pb'
7
8
  require 'google/api/resource_pb'
8
9
  require 'google/protobuf/timestamp_pb'
9
10
 
10
- Google::Protobuf::DescriptorPool.generated_pool.build do
11
- add_file("google/cloud/apigeeregistry/v1/registry_models.proto", :syntax => :proto3) do
12
- add_message "google.cloud.apigeeregistry.v1.Api" do
13
- optional :name, :string, 1
14
- optional :display_name, :string, 2
15
- optional :description, :string, 3
16
- optional :create_time, :message, 4, "google.protobuf.Timestamp"
17
- optional :update_time, :message, 5, "google.protobuf.Timestamp"
18
- optional :availability, :string, 6
19
- optional :recommended_version, :string, 7
20
- optional :recommended_deployment, :string, 8
21
- map :labels, :string, :string, 9
22
- map :annotations, :string, :string, 10
23
- end
24
- add_message "google.cloud.apigeeregistry.v1.ApiVersion" do
25
- optional :name, :string, 1
26
- optional :display_name, :string, 2
27
- optional :description, :string, 3
28
- optional :create_time, :message, 4, "google.protobuf.Timestamp"
29
- optional :update_time, :message, 5, "google.protobuf.Timestamp"
30
- optional :state, :string, 6
31
- map :labels, :string, :string, 7
32
- map :annotations, :string, :string, 8
33
- end
34
- add_message "google.cloud.apigeeregistry.v1.ApiSpec" do
35
- optional :name, :string, 1
36
- optional :filename, :string, 2
37
- optional :description, :string, 3
38
- optional :revision_id, :string, 4
39
- optional :create_time, :message, 5, "google.protobuf.Timestamp"
40
- optional :revision_create_time, :message, 6, "google.protobuf.Timestamp"
41
- optional :revision_update_time, :message, 7, "google.protobuf.Timestamp"
42
- optional :mime_type, :string, 8
43
- optional :size_bytes, :int32, 9
44
- optional :hash, :string, 10
45
- optional :source_uri, :string, 11
46
- optional :contents, :bytes, 12
47
- map :labels, :string, :string, 14
48
- map :annotations, :string, :string, 15
49
- end
50
- add_message "google.cloud.apigeeregistry.v1.ApiDeployment" do
51
- optional :name, :string, 1
52
- optional :display_name, :string, 2
53
- optional :description, :string, 3
54
- optional :revision_id, :string, 4
55
- optional :create_time, :message, 5, "google.protobuf.Timestamp"
56
- optional :revision_create_time, :message, 6, "google.protobuf.Timestamp"
57
- optional :revision_update_time, :message, 7, "google.protobuf.Timestamp"
58
- optional :api_spec_revision, :string, 8
59
- optional :endpoint_uri, :string, 9
60
- optional :external_channel_uri, :string, 10
61
- optional :intended_audience, :string, 11
62
- optional :access_guidance, :string, 12
63
- map :labels, :string, :string, 14
64
- map :annotations, :string, :string, 15
65
- end
66
- add_message "google.cloud.apigeeregistry.v1.Artifact" do
67
- optional :name, :string, 1
68
- optional :create_time, :message, 2, "google.protobuf.Timestamp"
69
- optional :update_time, :message, 3, "google.protobuf.Timestamp"
70
- optional :mime_type, :string, 4
71
- optional :size_bytes, :int32, 5
72
- optional :hash, :string, 6
73
- optional :contents, :bytes, 7
11
+
12
+ descriptor_data = "\n4google/cloud/apigeeregistry/v1/registry_models.proto\x12\x1egoogle.cloud.apigeeregistry.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xa9\x05\n\x03\x41pi\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x34\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x14\n\x0c\x61vailability\x18\x06 \x01(\t\x12J\n\x13recommended_version\x18\x07 \x01(\tB-\xfa\x41*\n(apigeeregistry.googleapis.com/ApiVersion\x12P\n\x16recommended_deployment\x18\x08 \x01(\tB0\xfa\x41-\n+apigeeregistry.googleapis.com/ApiDeployment\x12?\n\x06labels\x18\t \x03(\x0b\x32/.google.cloud.apigeeregistry.v1.Api.LabelsEntry\x12I\n\x0b\x61nnotations\x18\n \x03(\x0b\x32\x34.google.cloud.apigeeregistry.v1.Api.AnnotationsEntry\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x32\n\x10\x41nnotationsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:Z\xea\x41W\n!apigeeregistry.googleapis.com/Api\x12\x32projects/{project}/locations/{location}/apis/{api}\"\xb3\x04\n\nApiVersion\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x34\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\r\n\x05state\x18\x06 \x01(\t\x12\x46\n\x06labels\x18\x07 \x03(\x0b\x32\x36.google.cloud.apigeeregistry.v1.ApiVersion.LabelsEntry\x12P\n\x0b\x61nnotations\x18\x08 \x03(\x0b\x32;.google.cloud.apigeeregistry.v1.ApiVersion.AnnotationsEntry\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x32\n\x10\x41nnotationsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:t\xea\x41q\n(apigeeregistry.googleapis.com/ApiVersion\x12\x45projects/{project}/locations/{location}/apis/{api}/versions/{version}\"\xf0\x05\n\x07\x41piSpec\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x10\n\x08\x66ilename\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x1b\n\x0brevision_id\x18\x04 \x01(\tB\x06\xe0\x41\x05\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12=\n\x14revision_create_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12=\n\x14revision_update_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x11\n\tmime_type\x18\x08 \x01(\t\x12\x17\n\nsize_bytes\x18\t \x01(\x05\x42\x03\xe0\x41\x03\x12\x11\n\x04hash\x18\n \x01(\tB\x03\xe0\x41\x03\x12\x12\n\nsource_uri\x18\x0b \x01(\t\x12\x15\n\x08\x63ontents\x18\x0c \x01(\x0c\x42\x03\xe0\x41\x04\x12\x43\n\x06labels\x18\x0e \x03(\x0b\x32\x33.google.cloud.apigeeregistry.v1.ApiSpec.LabelsEntry\x12M\n\x0b\x61nnotations\x18\x0f \x03(\x0b\x32\x38.google.cloud.apigeeregistry.v1.ApiSpec.AnnotationsEntry\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x32\n\x10\x41nnotationsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:~\xea\x41{\n%apigeeregistry.googleapis.com/ApiSpec\x12Rprojects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}\"\xca\x06\n\rApiDeployment\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x1b\n\x0brevision_id\x18\x04 \x01(\tB\x06\xe0\x41\x05\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12=\n\x14revision_create_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12=\n\x14revision_update_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x45\n\x11\x61pi_spec_revision\x18\x08 \x01(\tB*\xfa\x41\'\n%apigeeregistry.googleapis.com/ApiSpec\x12\x14\n\x0c\x65ndpoint_uri\x18\t \x01(\t\x12\x1c\n\x14\x65xternal_channel_uri\x18\n \x01(\t\x12\x19\n\x11intended_audience\x18\x0b \x01(\t\x12\x17\n\x0f\x61\x63\x63\x65ss_guidance\x18\x0c \x01(\t\x12I\n\x06labels\x18\x0e \x03(\x0b\x32\x39.google.cloud.apigeeregistry.v1.ApiDeployment.LabelsEntry\x12S\n\x0b\x61nnotations\x18\x0f \x03(\x0b\x32>.google.cloud.apigeeregistry.v1.ApiDeployment.AnnotationsEntry\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x32\n\x10\x41nnotationsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:}\xea\x41z\n+apigeeregistry.googleapis.com/ApiDeployment\x12Kprojects/{project}/locations/{location}/apis/{api}/deployments/{deployment}\"\xb7\x05\n\x08\x41rtifact\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x34\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x11\n\tmime_type\x18\x04 \x01(\t\x12\x17\n\nsize_bytes\x18\x05 \x01(\x05\x42\x03\xe0\x41\x03\x12\x11\n\x04hash\x18\x06 \x01(\tB\x03\xe0\x41\x03\x12\x15\n\x08\x63ontents\x18\x07 \x01(\x0c\x42\x03\xe0\x41\x04:\xda\x03\xea\x41\xd6\x03\n&apigeeregistry.googleapis.com/Artifact\x12<projects/{project}/locations/{location}/artifacts/{artifact}\x12Gprojects/{project}/locations/{location}/apis/{api}/artifacts/{artifact}\x12Zprojects/{project}/locations/{location}/apis/{api}/versions/{version}/artifacts/{artifact}\x12gprojects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}/artifacts/{artifact}\x12`projects/{project}/locations/{location}/apis/{api}/deployments/{deployment}/artifacts/{artifact}B\xed\x01\n\"com.google.cloud.apigeeregistry.v1B\x13RegistryModelsProtoP\x01ZJcloud.google.com/go/apigeeregistry/apiv1/apigeeregistrypb;apigeeregistrypb\xaa\x02\x1eGoogle.Cloud.ApigeeRegistry.V1\xca\x02\x1eGoogle\\Cloud\\ApigeeRegistry\\V1\xea\x02!Google::Cloud::ApigeeRegistry::V1b\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.protobuf.Timestamp", "google/protobuf/timestamp.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}"
74
33
  end
75
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."
76
37
  end
77
38
 
78
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/cloud/apigeeregistry/v1/registry_service.proto
3
4
 
@@ -12,187 +13,33 @@ require 'google/cloud/apigeeregistry/v1/registry_models_pb'
12
13
  require 'google/protobuf/empty_pb'
13
14
  require 'google/protobuf/field_mask_pb'
14
15
 
15
- Google::Protobuf::DescriptorPool.generated_pool.build do
16
- add_file("google/cloud/apigeeregistry/v1/registry_service.proto", :syntax => :proto3) do
17
- add_message "google.cloud.apigeeregistry.v1.ListApisRequest" do
18
- optional :parent, :string, 1
19
- optional :page_size, :int32, 2
20
- optional :page_token, :string, 3
21
- optional :filter, :string, 4
22
- end
23
- add_message "google.cloud.apigeeregistry.v1.ListApisResponse" do
24
- repeated :apis, :message, 1, "google.cloud.apigeeregistry.v1.Api"
25
- optional :next_page_token, :string, 2
26
- end
27
- add_message "google.cloud.apigeeregistry.v1.GetApiRequest" do
28
- optional :name, :string, 1
29
- end
30
- add_message "google.cloud.apigeeregistry.v1.CreateApiRequest" do
31
- optional :parent, :string, 1
32
- optional :api, :message, 2, "google.cloud.apigeeregistry.v1.Api"
33
- optional :api_id, :string, 3
34
- end
35
- add_message "google.cloud.apigeeregistry.v1.UpdateApiRequest" do
36
- optional :api, :message, 1, "google.cloud.apigeeregistry.v1.Api"
37
- optional :update_mask, :message, 2, "google.protobuf.FieldMask"
38
- optional :allow_missing, :bool, 3
39
- end
40
- add_message "google.cloud.apigeeregistry.v1.DeleteApiRequest" do
41
- optional :name, :string, 1
42
- optional :force, :bool, 2
43
- end
44
- add_message "google.cloud.apigeeregistry.v1.ListApiVersionsRequest" do
45
- optional :parent, :string, 1
46
- optional :page_size, :int32, 2
47
- optional :page_token, :string, 3
48
- optional :filter, :string, 4
49
- end
50
- add_message "google.cloud.apigeeregistry.v1.ListApiVersionsResponse" do
51
- repeated :api_versions, :message, 1, "google.cloud.apigeeregistry.v1.ApiVersion"
52
- optional :next_page_token, :string, 2
53
- end
54
- add_message "google.cloud.apigeeregistry.v1.GetApiVersionRequest" do
55
- optional :name, :string, 1
56
- end
57
- add_message "google.cloud.apigeeregistry.v1.CreateApiVersionRequest" do
58
- optional :parent, :string, 1
59
- optional :api_version, :message, 2, "google.cloud.apigeeregistry.v1.ApiVersion"
60
- optional :api_version_id, :string, 3
61
- end
62
- add_message "google.cloud.apigeeregistry.v1.UpdateApiVersionRequest" do
63
- optional :api_version, :message, 1, "google.cloud.apigeeregistry.v1.ApiVersion"
64
- optional :update_mask, :message, 2, "google.protobuf.FieldMask"
65
- optional :allow_missing, :bool, 3
66
- end
67
- add_message "google.cloud.apigeeregistry.v1.DeleteApiVersionRequest" do
68
- optional :name, :string, 1
69
- optional :force, :bool, 2
70
- end
71
- add_message "google.cloud.apigeeregistry.v1.ListApiSpecsRequest" do
72
- optional :parent, :string, 1
73
- optional :page_size, :int32, 2
74
- optional :page_token, :string, 3
75
- optional :filter, :string, 4
76
- end
77
- add_message "google.cloud.apigeeregistry.v1.ListApiSpecsResponse" do
78
- repeated :api_specs, :message, 1, "google.cloud.apigeeregistry.v1.ApiSpec"
79
- optional :next_page_token, :string, 2
80
- end
81
- add_message "google.cloud.apigeeregistry.v1.GetApiSpecRequest" do
82
- optional :name, :string, 1
83
- end
84
- add_message "google.cloud.apigeeregistry.v1.GetApiSpecContentsRequest" do
85
- optional :name, :string, 1
86
- end
87
- add_message "google.cloud.apigeeregistry.v1.CreateApiSpecRequest" do
88
- optional :parent, :string, 1
89
- optional :api_spec, :message, 2, "google.cloud.apigeeregistry.v1.ApiSpec"
90
- optional :api_spec_id, :string, 3
91
- end
92
- add_message "google.cloud.apigeeregistry.v1.UpdateApiSpecRequest" do
93
- optional :api_spec, :message, 1, "google.cloud.apigeeregistry.v1.ApiSpec"
94
- optional :update_mask, :message, 2, "google.protobuf.FieldMask"
95
- optional :allow_missing, :bool, 3
96
- end
97
- add_message "google.cloud.apigeeregistry.v1.DeleteApiSpecRequest" do
98
- optional :name, :string, 1
99
- optional :force, :bool, 2
100
- end
101
- add_message "google.cloud.apigeeregistry.v1.TagApiSpecRevisionRequest" do
102
- optional :name, :string, 1
103
- optional :tag, :string, 2
104
- end
105
- add_message "google.cloud.apigeeregistry.v1.ListApiSpecRevisionsRequest" do
106
- optional :name, :string, 1
107
- optional :page_size, :int32, 2
108
- optional :page_token, :string, 3
109
- end
110
- add_message "google.cloud.apigeeregistry.v1.ListApiSpecRevisionsResponse" do
111
- repeated :api_specs, :message, 1, "google.cloud.apigeeregistry.v1.ApiSpec"
112
- optional :next_page_token, :string, 2
113
- end
114
- add_message "google.cloud.apigeeregistry.v1.RollbackApiSpecRequest" do
115
- optional :name, :string, 1
116
- optional :revision_id, :string, 2
117
- end
118
- add_message "google.cloud.apigeeregistry.v1.DeleteApiSpecRevisionRequest" do
119
- optional :name, :string, 1
120
- end
121
- add_message "google.cloud.apigeeregistry.v1.ListApiDeploymentsRequest" do
122
- optional :parent, :string, 1
123
- optional :page_size, :int32, 2
124
- optional :page_token, :string, 3
125
- optional :filter, :string, 4
126
- end
127
- add_message "google.cloud.apigeeregistry.v1.ListApiDeploymentsResponse" do
128
- repeated :api_deployments, :message, 1, "google.cloud.apigeeregistry.v1.ApiDeployment"
129
- optional :next_page_token, :string, 2
130
- end
131
- add_message "google.cloud.apigeeregistry.v1.GetApiDeploymentRequest" do
132
- optional :name, :string, 1
133
- end
134
- add_message "google.cloud.apigeeregistry.v1.CreateApiDeploymentRequest" do
135
- optional :parent, :string, 1
136
- optional :api_deployment, :message, 2, "google.cloud.apigeeregistry.v1.ApiDeployment"
137
- optional :api_deployment_id, :string, 3
138
- end
139
- add_message "google.cloud.apigeeregistry.v1.UpdateApiDeploymentRequest" do
140
- optional :api_deployment, :message, 1, "google.cloud.apigeeregistry.v1.ApiDeployment"
141
- optional :update_mask, :message, 2, "google.protobuf.FieldMask"
142
- optional :allow_missing, :bool, 3
143
- end
144
- add_message "google.cloud.apigeeregistry.v1.DeleteApiDeploymentRequest" do
145
- optional :name, :string, 1
146
- optional :force, :bool, 2
147
- end
148
- add_message "google.cloud.apigeeregistry.v1.TagApiDeploymentRevisionRequest" do
149
- optional :name, :string, 1
150
- optional :tag, :string, 2
151
- end
152
- add_message "google.cloud.apigeeregistry.v1.ListApiDeploymentRevisionsRequest" do
153
- optional :name, :string, 1
154
- optional :page_size, :int32, 2
155
- optional :page_token, :string, 3
156
- end
157
- add_message "google.cloud.apigeeregistry.v1.ListApiDeploymentRevisionsResponse" do
158
- repeated :api_deployments, :message, 1, "google.cloud.apigeeregistry.v1.ApiDeployment"
159
- optional :next_page_token, :string, 2
160
- end
161
- add_message "google.cloud.apigeeregistry.v1.RollbackApiDeploymentRequest" do
162
- optional :name, :string, 1
163
- optional :revision_id, :string, 2
164
- end
165
- add_message "google.cloud.apigeeregistry.v1.DeleteApiDeploymentRevisionRequest" do
166
- optional :name, :string, 1
167
- end
168
- add_message "google.cloud.apigeeregistry.v1.ListArtifactsRequest" do
169
- optional :parent, :string, 1
170
- optional :page_size, :int32, 2
171
- optional :page_token, :string, 3
172
- optional :filter, :string, 4
173
- end
174
- add_message "google.cloud.apigeeregistry.v1.ListArtifactsResponse" do
175
- repeated :artifacts, :message, 1, "google.cloud.apigeeregistry.v1.Artifact"
176
- optional :next_page_token, :string, 2
177
- end
178
- add_message "google.cloud.apigeeregistry.v1.GetArtifactRequest" do
179
- optional :name, :string, 1
180
- end
181
- add_message "google.cloud.apigeeregistry.v1.GetArtifactContentsRequest" do
182
- optional :name, :string, 1
183
- end
184
- add_message "google.cloud.apigeeregistry.v1.CreateArtifactRequest" do
185
- optional :parent, :string, 1
186
- optional :artifact, :message, 2, "google.cloud.apigeeregistry.v1.Artifact"
187
- optional :artifact_id, :string, 3
188
- end
189
- add_message "google.cloud.apigeeregistry.v1.ReplaceArtifactRequest" do
190
- optional :artifact, :message, 1, "google.cloud.apigeeregistry.v1.Artifact"
191
- end
192
- add_message "google.cloud.apigeeregistry.v1.DeleteArtifactRequest" do
193
- optional :name, :string, 1
16
+
17
+ descriptor_data = "\n5google/cloud/apigeeregistry/v1/registry_service.proto\x12\x1egoogle.cloud.apigeeregistry.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/httpbody.proto\x1a\x19google/api/resource.proto\x1a\x34google/cloud/apigeeregistry/v1/registry_models.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\"\x83\x01\n\x0fListApisRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\x12!apigeeregistry.googleapis.com/Api\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x04 \x01(\t\"^\n\x10ListApisResponse\x12\x31\n\x04\x61pis\x18\x01 \x03(\x0b\x32#.google.cloud.apigeeregistry.v1.Api\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"H\n\rGetApiRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!apigeeregistry.googleapis.com/Api\"\x99\x01\n\x10\x43reateApiRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\x12!apigeeregistry.googleapis.com/Api\x12\x35\n\x03\x61pi\x18\x02 \x01(\x0b\x32#.google.cloud.apigeeregistry.v1.ApiB\x03\xe0\x41\x02\x12\x13\n\x06\x61pi_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\"\x91\x01\n\x10UpdateApiRequest\x12\x35\n\x03\x61pi\x18\x01 \x01(\x0b\x32#.google.cloud.apigeeregistry.v1.ApiB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x15\n\rallow_missing\x18\x03 \x01(\x08\"Z\n\x10\x44\x65leteApiRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!apigeeregistry.googleapis.com/Api\x12\r\n\x05\x66orce\x18\x02 \x01(\x08\"\x91\x01\n\x16ListApiVersionsRequest\x12@\n\x06parent\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\x12(apigeeregistry.googleapis.com/ApiVersion\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x04 \x01(\t\"t\n\x17ListApiVersionsResponse\x12@\n\x0c\x61pi_versions\x18\x01 \x03(\x0b\x32*.google.cloud.apigeeregistry.v1.ApiVersion\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"V\n\x14GetApiVersionRequest\x12>\n\x04name\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\n(apigeeregistry.googleapis.com/ApiVersion\"\xbe\x01\n\x17\x43reateApiVersionRequest\x12@\n\x06parent\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\x12(apigeeregistry.googleapis.com/ApiVersion\x12\x44\n\x0b\x61pi_version\x18\x02 \x01(\x0b\x32*.google.cloud.apigeeregistry.v1.ApiVersionB\x03\xe0\x41\x02\x12\x1b\n\x0e\x61pi_version_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\"\xa7\x01\n\x17UpdateApiVersionRequest\x12\x44\n\x0b\x61pi_version\x18\x01 \x01(\x0b\x32*.google.cloud.apigeeregistry.v1.ApiVersionB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x15\n\rallow_missing\x18\x03 \x01(\x08\"h\n\x17\x44\x65leteApiVersionRequest\x12>\n\x04name\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\n(apigeeregistry.googleapis.com/ApiVersion\x12\r\n\x05\x66orce\x18\x02 \x01(\x08\"\x8b\x01\n\x13ListApiSpecsRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\x12%apigeeregistry.googleapis.com/ApiSpec\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x04 \x01(\t\"k\n\x14ListApiSpecsResponse\x12:\n\tapi_specs\x18\x01 \x03(\x0b\x32\'.google.cloud.apigeeregistry.v1.ApiSpec\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"P\n\x11GetApiSpecRequest\x12;\n\x04name\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%apigeeregistry.googleapis.com/ApiSpec\"X\n\x19GetApiSpecContentsRequest\x12;\n\x04name\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%apigeeregistry.googleapis.com/ApiSpec\"\xaf\x01\n\x14\x43reateApiSpecRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\x12%apigeeregistry.googleapis.com/ApiSpec\x12>\n\x08\x61pi_spec\x18\x02 \x01(\x0b\x32\'.google.cloud.apigeeregistry.v1.ApiSpecB\x03\xe0\x41\x02\x12\x18\n\x0b\x61pi_spec_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\"\x9e\x01\n\x14UpdateApiSpecRequest\x12>\n\x08\x61pi_spec\x18\x01 \x01(\x0b\x32\'.google.cloud.apigeeregistry.v1.ApiSpecB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x15\n\rallow_missing\x18\x03 \x01(\x08\"b\n\x14\x44\x65leteApiSpecRequest\x12;\n\x04name\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%apigeeregistry.googleapis.com/ApiSpec\x12\r\n\x05\x66orce\x18\x02 \x01(\x08\"j\n\x19TagApiSpecRevisionRequest\x12;\n\x04name\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%apigeeregistry.googleapis.com/ApiSpec\x12\x10\n\x03tag\x18\x02 \x01(\tB\x03\xe0\x41\x02\"\x81\x01\n\x1bListApiSpecRevisionsRequest\x12;\n\x04name\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%apigeeregistry.googleapis.com/ApiSpec\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"s\n\x1cListApiSpecRevisionsResponse\x12:\n\tapi_specs\x18\x01 \x03(\x0b\x32\'.google.cloud.apigeeregistry.v1.ApiSpec\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"o\n\x16RollbackApiSpecRequest\x12;\n\x04name\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%apigeeregistry.googleapis.com/ApiSpec\x12\x18\n\x0brevision_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\"[\n\x1c\x44\x65leteApiSpecRevisionRequest\x12;\n\x04name\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%apigeeregistry.googleapis.com/ApiSpec\"\x97\x01\n\x19ListApiDeploymentsRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\x12+apigeeregistry.googleapis.com/ApiDeployment\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x04 \x01(\t\"}\n\x1aListApiDeploymentsResponse\x12\x46\n\x0f\x61pi_deployments\x18\x01 \x03(\x0b\x32-.google.cloud.apigeeregistry.v1.ApiDeployment\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\\\n\x17GetApiDeploymentRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+apigeeregistry.googleapis.com/ApiDeployment\"\xcd\x01\n\x1a\x43reateApiDeploymentRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\x12+apigeeregistry.googleapis.com/ApiDeployment\x12J\n\x0e\x61pi_deployment\x18\x02 \x01(\x0b\x32-.google.cloud.apigeeregistry.v1.ApiDeploymentB\x03\xe0\x41\x02\x12\x1e\n\x11\x61pi_deployment_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\"\xb0\x01\n\x1aUpdateApiDeploymentRequest\x12J\n\x0e\x61pi_deployment\x18\x01 \x01(\x0b\x32-.google.cloud.apigeeregistry.v1.ApiDeploymentB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x15\n\rallow_missing\x18\x03 \x01(\x08\"n\n\x1a\x44\x65leteApiDeploymentRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+apigeeregistry.googleapis.com/ApiDeployment\x12\r\n\x05\x66orce\x18\x02 \x01(\x08\"v\n\x1fTagApiDeploymentRevisionRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+apigeeregistry.googleapis.com/ApiDeployment\x12\x10\n\x03tag\x18\x02 \x01(\tB\x03\xe0\x41\x02\"\x8d\x01\n!ListApiDeploymentRevisionsRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+apigeeregistry.googleapis.com/ApiDeployment\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"\x85\x01\n\"ListApiDeploymentRevisionsResponse\x12\x46\n\x0f\x61pi_deployments\x18\x01 \x03(\x0b\x32-.google.cloud.apigeeregistry.v1.ApiDeployment\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"{\n\x1cRollbackApiDeploymentRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+apigeeregistry.googleapis.com/ApiDeployment\x12\x18\n\x0brevision_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\"g\n\"DeleteApiDeploymentRevisionRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+apigeeregistry.googleapis.com/ApiDeployment\"\x8d\x01\n\x14ListArtifactsRequest\x12>\n\x06parent\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\x12&apigeeregistry.googleapis.com/Artifact\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x04 \x01(\t\"m\n\x15ListArtifactsResponse\x12;\n\tartifacts\x18\x01 \x03(\x0b\x32(.google.cloud.apigeeregistry.v1.Artifact\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"R\n\x12GetArtifactRequest\x12<\n\x04name\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&apigeeregistry.googleapis.com/Artifact\"Z\n\x1aGetArtifactContentsRequest\x12<\n\x04name\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&apigeeregistry.googleapis.com/Artifact\"\xb2\x01\n\x15\x43reateArtifactRequest\x12>\n\x06parent\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\x12&apigeeregistry.googleapis.com/Artifact\x12?\n\x08\x61rtifact\x18\x02 \x01(\x0b\x32(.google.cloud.apigeeregistry.v1.ArtifactB\x03\xe0\x41\x02\x12\x18\n\x0b\x61rtifact_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\"Y\n\x16ReplaceArtifactRequest\x12?\n\x08\x61rtifact\x18\x01 \x01(\x0b\x32(.google.cloud.apigeeregistry.v1.ArtifactB\x03\xe0\x41\x02\"U\n\x15\x44\x65leteArtifactRequest\x12<\n\x04name\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&apigeeregistry.googleapis.com/Artifact2\xc0\x45\n\x08Registry\x12\xa8\x01\n\x08ListApis\x12/.google.cloud.apigeeregistry.v1.ListApisRequest\x1a\x30.google.cloud.apigeeregistry.v1.ListApisResponse\"9\x82\xd3\xe4\x93\x02*\x12(/v1/{parent=projects/*/locations/*}/apis\xda\x41\x06parent\x12\x95\x01\n\x06GetApi\x12-.google.cloud.apigeeregistry.v1.GetApiRequest\x1a#.google.cloud.apigeeregistry.v1.Api\"7\x82\xd3\xe4\x93\x02*\x12(/v1/{name=projects/*/locations/*/apis/*}\xda\x41\x04name\x12\xad\x01\n\tCreateApi\x12\x30.google.cloud.apigeeregistry.v1.CreateApiRequest\x1a#.google.cloud.apigeeregistry.v1.Api\"I\x82\xd3\xe4\x93\x02/\"(/v1/{parent=projects/*/locations/*}/apis:\x03\x61pi\xda\x41\x11parent,api,api_id\x12\xaf\x01\n\tUpdateApi\x12\x30.google.cloud.apigeeregistry.v1.UpdateApiRequest\x1a#.google.cloud.apigeeregistry.v1.Api\"K\x82\xd3\xe4\x93\x02\x33\x32,/v1/{api.name=projects/*/locations/*/apis/*}:\x03\x61pi\xda\x41\x0f\x61pi,update_mask\x12\x8e\x01\n\tDeleteApi\x12\x30.google.cloud.apigeeregistry.v1.DeleteApiRequest\x1a\x16.google.protobuf.Empty\"7\x82\xd3\xe4\x93\x02**(/v1/{name=projects/*/locations/*/apis/*}\xda\x41\x04name\x12\xc8\x01\n\x0fListApiVersions\x12\x36.google.cloud.apigeeregistry.v1.ListApiVersionsRequest\x1a\x37.google.cloud.apigeeregistry.v1.ListApiVersionsResponse\"D\x82\xd3\xe4\x93\x02\x35\x12\x33/v1/{parent=projects/*/locations/*/apis/*}/versions\xda\x41\x06parent\x12\xb5\x01\n\rGetApiVersion\x12\x34.google.cloud.apigeeregistry.v1.GetApiVersionRequest\x1a*.google.cloud.apigeeregistry.v1.ApiVersion\"B\x82\xd3\xe4\x93\x02\x35\x12\x33/v1/{name=projects/*/locations/*/apis/*/versions/*}\xda\x41\x04name\x12\xe5\x01\n\x10\x43reateApiVersion\x12\x37.google.cloud.apigeeregistry.v1.CreateApiVersionRequest\x1a*.google.cloud.apigeeregistry.v1.ApiVersion\"l\x82\xd3\xe4\x93\x02\x42\"3/v1/{parent=projects/*/locations/*/apis/*}/versions:\x0b\x61pi_version\xda\x41!parent,api_version,api_version_id\x12\xe7\x01\n\x10UpdateApiVersion\x12\x37.google.cloud.apigeeregistry.v1.UpdateApiVersionRequest\x1a*.google.cloud.apigeeregistry.v1.ApiVersion\"n\x82\xd3\xe4\x93\x02N2?/v1/{api_version.name=projects/*/locations/*/apis/*/versions/*}:\x0b\x61pi_version\xda\x41\x17\x61pi_version,update_mask\x12\xa7\x01\n\x10\x44\x65leteApiVersion\x12\x37.google.cloud.apigeeregistry.v1.DeleteApiVersionRequest\x1a\x16.google.protobuf.Empty\"B\x82\xd3\xe4\x93\x02\x35*3/v1/{name=projects/*/locations/*/apis/*/versions/*}\xda\x41\x04name\x12\xc7\x01\n\x0cListApiSpecs\x12\x33.google.cloud.apigeeregistry.v1.ListApiSpecsRequest\x1a\x34.google.cloud.apigeeregistry.v1.ListApiSpecsResponse\"L\x82\xd3\xe4\x93\x02=\x12;/v1/{parent=projects/*/locations/*/apis/*/versions/*}/specs\xda\x41\x06parent\x12\xb4\x01\n\nGetApiSpec\x12\x31.google.cloud.apigeeregistry.v1.GetApiSpecRequest\x1a\'.google.cloud.apigeeregistry.v1.ApiSpec\"J\x82\xd3\xe4\x93\x02=\x12;/v1/{name=projects/*/locations/*/apis/*/versions/*/specs/*}\xda\x41\x04name\x12\xbd\x01\n\x12GetApiSpecContents\x12\x39.google.cloud.apigeeregistry.v1.GetApiSpecContentsRequest\x1a\x14.google.api.HttpBody\"V\x82\xd3\xe4\x93\x02I\x12G/v1/{name=projects/*/locations/*/apis/*/versions/*/specs/*}:getContents\xda\x41\x04name\x12\xdb\x01\n\rCreateApiSpec\x12\x34.google.cloud.apigeeregistry.v1.CreateApiSpecRequest\x1a\'.google.cloud.apigeeregistry.v1.ApiSpec\"k\x82\xd3\xe4\x93\x02G\";/v1/{parent=projects/*/locations/*/apis/*/versions/*}/specs:\x08\x61pi_spec\xda\x41\x1bparent,api_spec,api_spec_id\x12\xdd\x01\n\rUpdateApiSpec\x12\x34.google.cloud.apigeeregistry.v1.UpdateApiSpecRequest\x1a\'.google.cloud.apigeeregistry.v1.ApiSpec\"m\x82\xd3\xe4\x93\x02P2D/v1/{api_spec.name=projects/*/locations/*/apis/*/versions/*/specs/*}:\x08\x61pi_spec\xda\x41\x14\x61pi_spec,update_mask\x12\xa9\x01\n\rDeleteApiSpec\x12\x34.google.cloud.apigeeregistry.v1.DeleteApiSpecRequest\x1a\x16.google.protobuf.Empty\"J\x82\xd3\xe4\x93\x02=*;/v1/{name=projects/*/locations/*/apis/*/versions/*/specs/*}\xda\x41\x04name\x12\xcc\x01\n\x12TagApiSpecRevision\x12\x39.google.cloud.apigeeregistry.v1.TagApiSpecRevisionRequest\x1a\'.google.cloud.apigeeregistry.v1.ApiSpec\"R\x82\xd3\xe4\x93\x02L\"G/v1/{name=projects/*/locations/*/apis/*/versions/*/specs/*}:tagRevision:\x01*\x12\xe4\x01\n\x14ListApiSpecRevisions\x12;.google.cloud.apigeeregistry.v1.ListApiSpecRevisionsRequest\x1a<.google.cloud.apigeeregistry.v1.ListApiSpecRevisionsResponse\"Q\x82\xd3\xe4\x93\x02K\x12I/v1/{name=projects/*/locations/*/apis/*/versions/*/specs/*}:listRevisions\x12\xc3\x01\n\x0fRollbackApiSpec\x12\x36.google.cloud.apigeeregistry.v1.RollbackApiSpecRequest\x1a\'.google.cloud.apigeeregistry.v1.ApiSpec\"O\x82\xd3\xe4\x93\x02I\"D/v1/{name=projects/*/locations/*/apis/*/versions/*/specs/*}:rollback:\x01*\x12\xd9\x01\n\x15\x44\x65leteApiSpecRevision\x12<.google.cloud.apigeeregistry.v1.DeleteApiSpecRevisionRequest\x1a\'.google.cloud.apigeeregistry.v1.ApiSpec\"Y\x82\xd3\xe4\x93\x02L*J/v1/{name=projects/*/locations/*/apis/*/versions/*/specs/*}:deleteRevision\xda\x41\x04name\x12\xd4\x01\n\x12ListApiDeployments\x12\x39.google.cloud.apigeeregistry.v1.ListApiDeploymentsRequest\x1a:.google.cloud.apigeeregistry.v1.ListApiDeploymentsResponse\"G\x82\xd3\xe4\x93\x02\x38\x12\x36/v1/{parent=projects/*/locations/*/apis/*}/deployments\xda\x41\x06parent\x12\xc1\x01\n\x10GetApiDeployment\x12\x37.google.cloud.apigeeregistry.v1.GetApiDeploymentRequest\x1a-.google.cloud.apigeeregistry.v1.ApiDeployment\"E\x82\xd3\xe4\x93\x02\x38\x12\x36/v1/{name=projects/*/locations/*/apis/*/deployments/*}\xda\x41\x04name\x12\xfa\x01\n\x13\x43reateApiDeployment\x12:.google.cloud.apigeeregistry.v1.CreateApiDeploymentRequest\x1a-.google.cloud.apigeeregistry.v1.ApiDeployment\"x\x82\xd3\xe4\x93\x02H\"6/v1/{parent=projects/*/locations/*/apis/*}/deployments:\x0e\x61pi_deployment\xda\x41\'parent,api_deployment,api_deployment_id\x12\xfc\x01\n\x13UpdateApiDeployment\x12:.google.cloud.apigeeregistry.v1.UpdateApiDeploymentRequest\x1a-.google.cloud.apigeeregistry.v1.ApiDeployment\"z\x82\xd3\xe4\x93\x02W2E/v1/{api_deployment.name=projects/*/locations/*/apis/*/deployments/*}:\x0e\x61pi_deployment\xda\x41\x1a\x61pi_deployment,update_mask\x12\xb0\x01\n\x13\x44\x65leteApiDeployment\x12:.google.cloud.apigeeregistry.v1.DeleteApiDeploymentRequest\x1a\x16.google.protobuf.Empty\"E\x82\xd3\xe4\x93\x02\x38*6/v1/{name=projects/*/locations/*/apis/*/deployments/*}\xda\x41\x04name\x12\xd9\x01\n\x18TagApiDeploymentRevision\x12?.google.cloud.apigeeregistry.v1.TagApiDeploymentRevisionRequest\x1a-.google.cloud.apigeeregistry.v1.ApiDeployment\"M\x82\xd3\xe4\x93\x02G\"B/v1/{name=projects/*/locations/*/apis/*/deployments/*}:tagRevision:\x01*\x12\xf1\x01\n\x1aListApiDeploymentRevisions\x12\x41.google.cloud.apigeeregistry.v1.ListApiDeploymentRevisionsRequest\x1a\x42.google.cloud.apigeeregistry.v1.ListApiDeploymentRevisionsResponse\"L\x82\xd3\xe4\x93\x02\x46\x12\x44/v1/{name=projects/*/locations/*/apis/*/deployments/*}:listRevisions\x12\xd0\x01\n\x15RollbackApiDeployment\x12<.google.cloud.apigeeregistry.v1.RollbackApiDeploymentRequest\x1a-.google.cloud.apigeeregistry.v1.ApiDeployment\"J\x82\xd3\xe4\x93\x02\x44\"?/v1/{name=projects/*/locations/*/apis/*/deployments/*}:rollback:\x01*\x12\xe6\x01\n\x1b\x44\x65leteApiDeploymentRevision\x12\x42.google.cloud.apigeeregistry.v1.DeleteApiDeploymentRevisionRequest\x1a-.google.cloud.apigeeregistry.v1.ApiDeployment\"T\x82\xd3\xe4\x93\x02G*E/v1/{name=projects/*/locations/*/apis/*/deployments/*}:deleteRevision\xda\x41\x04name\x12\xca\x03\n\rListArtifacts\x12\x34.google.cloud.apigeeregistry.v1.ListArtifactsRequest\x1a\x35.google.cloud.apigeeregistry.v1.ListArtifactsResponse\"\xcb\x02\x82\xd3\xe4\x93\x02\xbb\x02\x12-/v1/{parent=projects/*/locations/*}/artifactsZ6\x12\x34/v1/{parent=projects/*/locations/*/apis/*}/artifactsZA\x12?/v1/{parent=projects/*/locations/*/apis/*/versions/*}/artifactsZI\x12G/v1/{parent=projects/*/locations/*/apis/*/versions/*/specs/*}/artifactsZD\x12\x42/v1/{parent=projects/*/locations/*/apis/*/deployments/*}/artifacts\xda\x41\x06parent\x12\xb7\x03\n\x0bGetArtifact\x12\x32.google.cloud.apigeeregistry.v1.GetArtifactRequest\x1a(.google.cloud.apigeeregistry.v1.Artifact\"\xc9\x02\x82\xd3\xe4\x93\x02\xbb\x02\x12-/v1/{name=projects/*/locations/*/artifacts/*}Z6\x12\x34/v1/{name=projects/*/locations/*/apis/*/artifacts/*}ZA\x12?/v1/{name=projects/*/locations/*/apis/*/versions/*/artifacts/*}ZI\x12G/v1/{name=projects/*/locations/*/apis/*/versions/*/specs/*/artifacts/*}ZD\x12\x42/v1/{name=projects/*/locations/*/apis/*/deployments/*/artifacts/*}\xda\x41\x04name\x12\xef\x03\n\x13GetArtifactContents\x12:.google.cloud.apigeeregistry.v1.GetArtifactContentsRequest\x1a\x14.google.api.HttpBody\"\x85\x03\x82\xd3\xe4\x93\x02\xf7\x02\x12\x39/v1/{name=projects/*/locations/*/artifacts/*}:getContentsZB\x12@/v1/{name=projects/*/locations/*/apis/*/artifacts/*}:getContentsZM\x12K/v1/{name=projects/*/locations/*/apis/*/versions/*/artifacts/*}:getContentsZU\x12S/v1/{name=projects/*/locations/*/apis/*/versions/*/specs/*/artifacts/*}:getContentsZP\x12N/v1/{name=projects/*/locations/*/apis/*/deployments/*/artifacts/*}:getContents\xda\x41\x04name\x12\x86\x04\n\x0e\x43reateArtifact\x12\x35.google.cloud.apigeeregistry.v1.CreateArtifactRequest\x1a(.google.cloud.apigeeregistry.v1.Artifact\"\x92\x03\x82\xd3\xe4\x93\x02\xed\x02\"-/v1/{parent=projects/*/locations/*}/artifacts:\x08\x61rtifactZ@\"4/v1/{parent=projects/*/locations/*/apis/*}/artifacts:\x08\x61rtifactZK\"?/v1/{parent=projects/*/locations/*/apis/*/versions/*}/artifacts:\x08\x61rtifactZS\"G/v1/{parent=projects/*/locations/*/apis/*/versions/*/specs/*}/artifacts:\x08\x61rtifactZN\"B/v1/{parent=projects/*/locations/*/apis/*/deployments/*}/artifacts:\x08\x61rtifact\xda\x41\x1bparent,artifact,artifact_id\x12\xa2\x04\n\x0fReplaceArtifact\x12\x36.google.cloud.apigeeregistry.v1.ReplaceArtifactRequest\x1a(.google.cloud.apigeeregistry.v1.Artifact\"\xac\x03\x82\xd3\xe4\x93\x02\x9a\x03\x1a\x36/v1/{artifact.name=projects/*/locations/*/artifacts/*}:\x08\x61rtifactZI\x1a=/v1/{artifact.name=projects/*/locations/*/apis/*/artifacts/*}:\x08\x61rtifactZT\x1aH/v1/{artifact.name=projects/*/locations/*/apis/*/versions/*/artifacts/*}:\x08\x61rtifactZ\\\x1aP/v1/{artifact.name=projects/*/locations/*/apis/*/versions/*/specs/*/artifacts/*}:\x08\x61rtifactZW\x1aK/v1/{artifact.name=projects/*/locations/*/apis/*/deployments/*/artifacts/*}:\x08\x61rtifact\xda\x41\x08\x61rtifact\x12\xab\x03\n\x0e\x44\x65leteArtifact\x12\x35.google.cloud.apigeeregistry.v1.DeleteArtifactRequest\x1a\x16.google.protobuf.Empty\"\xc9\x02\x82\xd3\xe4\x93\x02\xbb\x02*-/v1/{name=projects/*/locations/*/artifacts/*}Z6*4/v1/{name=projects/*/locations/*/apis/*/artifacts/*}ZA*?/v1/{name=projects/*/locations/*/apis/*/versions/*/artifacts/*}ZI*G/v1/{name=projects/*/locations/*/apis/*/versions/*/specs/*/artifacts/*}ZD*B/v1/{name=projects/*/locations/*/apis/*/deployments/*/artifacts/*}\xda\x41\x04name\x1aQ\xca\x41\x1d\x61pigeeregistry.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xee\x01\n\"com.google.cloud.apigeeregistry.v1B\x14RegistryServiceProtoP\x01ZJcloud.google.com/go/apigeeregistry/apiv1/apigeeregistrypb;apigeeregistrypb\xaa\x02\x1eGoogle.Cloud.ApigeeRegistry.V1\xca\x02\x1eGoogle\\Cloud\\ApigeeRegistry\\V1\xea\x02!Google::Cloud::ApigeeRegistry::V1b\x06proto3"
18
+
19
+ pool = Google::Protobuf::DescriptorPool.generated_pool
20
+
21
+ begin
22
+ pool.add_serialized_file(descriptor_data)
23
+ rescue TypeError => e
24
+ # Compatibility code: will be removed in the next major version.
25
+ require 'google/protobuf/descriptor_pb'
26
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
27
+ parsed.clear_dependency
28
+ serialized = parsed.class.encode(parsed)
29
+ file = pool.add_serialized_file(serialized)
30
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
31
+ imports = [
32
+ ["google.cloud.apigeeregistry.v1.Api", "google/cloud/apigeeregistry/v1/registry_models.proto"],
33
+ ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
34
+ ]
35
+ imports.each do |type_name, expected_filename|
36
+ import_file = pool.lookup(type_name).file_descriptor
37
+ if import_file.name != expected_filename
38
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
194
39
  end
195
40
  end
41
+ warn "Each proto file must use a consistent fully-qualified name."
42
+ warn "This will become an error in the next major version."
196
43
  end
197
44
 
198
45
  module Google
@@ -35,7 +35,9 @@ module Google
35
35
  # Details about how and where to publish client libraries.
36
36
  # @!attribute [rw] version
37
37
  # @return [::String]
38
- # Version of the API to apply these settings to.
38
+ # Version of the API to apply these settings to. This is the full protobuf
39
+ # package for the API, ending in the version element.
40
+ # Examples: "google.cloud.speech.v1" and "google.spanner.admin.database.v1".
39
41
  # @!attribute [rw] launch_stage
40
42
  # @return [::Google::Api::LaunchStage]
41
43
  # Launch stage of this version of the API.
@@ -81,7 +83,7 @@ module Google
81
83
  # long-running operation pattern.
82
84
  # @!attribute [rw] new_issue_uri
83
85
  # @return [::String]
84
- # Link to a place that API users can report issues. Example:
86
+ # Link to a *public* URI where users can report issues. Example:
85
87
  # https://issuetracker.google.com/issues/new?component=190865&template=1161103
86
88
  # @!attribute [rw] documentation_uri
87
89
  # @return [::String]
@@ -111,6 +113,10 @@ module Google
111
113
  # Client library settings. If the same version string appears multiple
112
114
  # times in this list, then the last one wins. Settings from earlier
113
115
  # settings with the same version string are discarded.
116
+ # @!attribute [rw] proto_reference_documentation_uri
117
+ # @return [::String]
118
+ # Optional link to proto reference documentation. Example:
119
+ # https://cloud.google.com/pubsub/lite/docs/reference/rpc
114
120
  class Publishing
115
121
  include ::Google::Protobuf::MessageExts
116
122
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -203,9 +209,57 @@ module Google
203
209
  # @!attribute [rw] common
204
210
  # @return [::Google::Api::CommonLanguageSettings]
205
211
  # Some settings.
212
+ # @!attribute [rw] renamed_services
213
+ # @return [::Google::Protobuf::Map{::String => ::String}]
214
+ # Map from original service names to renamed versions.
215
+ # This is used when the default generated types
216
+ # would cause a naming conflict. (Neither name is
217
+ # fully-qualified.)
218
+ # Example: Subscriber to SubscriberServiceApi.
219
+ # @!attribute [rw] renamed_resources
220
+ # @return [::Google::Protobuf::Map{::String => ::String}]
221
+ # Map from full resource types to the effective short name
222
+ # for the resource. This is used when otherwise resource
223
+ # named from different services would cause naming collisions.
224
+ # Example entry:
225
+ # "datalabeling.googleapis.com/Dataset": "DataLabelingDataset"
226
+ # @!attribute [rw] ignored_resources
227
+ # @return [::Array<::String>]
228
+ # List of full resource types to ignore during generation.
229
+ # This is typically used for API-specific Location resources,
230
+ # which should be handled by the generator as if they were actually
231
+ # the common Location resources.
232
+ # Example entry: "documentai.googleapis.com/Location"
233
+ # @!attribute [rw] forced_namespace_aliases
234
+ # @return [::Array<::String>]
235
+ # Namespaces which must be aliased in snippets due to
236
+ # a known (but non-generator-predictable) naming collision
237
+ # @!attribute [rw] handwritten_signatures
238
+ # @return [::Array<::String>]
239
+ # Method signatures (in the form "service.method(signature)")
240
+ # which are provided separately, so shouldn't be generated.
241
+ # Snippets *calling* these methods are still generated, however.
206
242
  class DotnetSettings
207
243
  include ::Google::Protobuf::MessageExts
208
244
  extend ::Google::Protobuf::MessageExts::ClassMethods
245
+
246
+ # @!attribute [rw] key
247
+ # @return [::String]
248
+ # @!attribute [rw] value
249
+ # @return [::String]
250
+ class RenamedServicesEntry
251
+ include ::Google::Protobuf::MessageExts
252
+ extend ::Google::Protobuf::MessageExts::ClassMethods
253
+ end
254
+
255
+ # @!attribute [rw] key
256
+ # @return [::String]
257
+ # @!attribute [rw] value
258
+ # @return [::String]
259
+ class RenamedResourcesEntry
260
+ include ::Google::Protobuf::MessageExts
261
+ extend ::Google::Protobuf::MessageExts::ClassMethods
262
+ end
209
263
  end
210
264
 
211
265
  # Settings for Ruby client libraries.
@@ -240,8 +294,8 @@ module Google
240
294
  # Example of a YAML configuration::
241
295
  #
242
296
  # publishing:
243
- # method_behavior:
244
- # - selector: CreateAdDomain
297
+ # method_settings:
298
+ # - selector: google.cloud.speech.v2.Speech.BatchRecognize
245
299
  # long_running:
246
300
  # initial_poll_delay:
247
301
  # seconds: 60 # 1 minute
@@ -299,6 +353,15 @@ module Google
299
353
 
300
354
  # Street View Org.
301
355
  STREET_VIEW = 4
356
+
357
+ # Shopping Org.
358
+ SHOPPING = 5
359
+
360
+ # Geo Org.
361
+ GEO = 6
362
+
363
+ # Generative AI - https://developers.generativeai.google
364
+ GENERATIVE_AI = 7
302
365
  end
303
366
 
304
367
  # To where should client libraries be published?
@@ -43,8 +43,12 @@ module Google
43
43
  # if (any.is(Foo.class)) {
44
44
  # foo = any.unpack(Foo.class);
45
45
  # }
46
+ # // or ...
47
+ # if (any.isSameTypeAs(Foo.getDefaultInstance())) {
48
+ # foo = any.unpack(Foo.getDefaultInstance());
49
+ # }
46
50
  #
47
- # Example 3: Pack and unpack a message in Python.
51
+ # Example 3: Pack and unpack a message in Python.
48
52
  #
49
53
  # foo = Foo(...)
50
54
  # any = Any()
@@ -54,7 +58,7 @@ module Google
54
58
  # any.Unpack(foo)
55
59
  # ...
56
60
  #
57
- # Example 4: Pack and unpack a message in Go
61
+ # Example 4: Pack and unpack a message in Go
58
62
  #
59
63
  # foo := &pb.Foo{...}
60
64
  # any, err := anypb.New(foo)
@@ -73,9 +77,8 @@ module Google
73
77
  # in the type URL, for example "foo.bar.com/x/y.z" will yield type
74
78
  # name "y.z".
75
79
  #
76
- #
77
80
  # JSON
78
- #
81
+ # ====
79
82
  # The JSON representation of an `Any` value uses the regular
80
83
  # representation of the deserialized, embedded message, with an
81
84
  # additional field `@type` which contains the type URL. Example:
@@ -69,7 +69,6 @@ module Google
69
69
  # Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000)
70
70
  # .setNanos((int) ((millis % 1000) * 1000000)).build();
71
71
  #
72
- #
73
72
  # Example 5: Compute Timestamp from Java `Instant.now()`.
74
73
  #
75
74
  # Instant now = Instant.now();
@@ -78,7 +77,6 @@ module Google
78
77
  # Timestamp.newBuilder().setSeconds(now.getEpochSecond())
79
78
  # .setNanos(now.getNano()).build();
80
79
  #
81
- #
82
80
  # Example 6: Compute Timestamp from current time in Python.
83
81
  #
84
82
  # timestamp = Timestamp()
@@ -108,7 +106,7 @@ module Google
108
106
  # [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with
109
107
  # the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use
110
108
  # the Joda Time's [`ISODateTimeFormat.dateTime()`](
111
- # http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D
109
+ # http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime()
112
110
  # ) to obtain a formatter capable of generating timestamps in this format.
113
111
  # @!attribute [rw] seconds
114
112
  # @return [::Integer]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-apigee_registry-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-08 00:00:00.000000000 Z
11
+ date: 2023-06-06 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.18.0
19
+ version: 0.19.1
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.18.0
29
+ version: 0.19.1
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a