google-cloud-api_gateway-v1 0.3.0 → 0.4.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: ab8cd75da5e0c6ad4774a3158d08e352a22f791290adb76e07068bd026e8468c
4
- data.tar.gz: 41a4afac8e98633d59d4cd8c9ab70a28127470c71bfe19d1f56b2de4b6f71aa6
3
+ metadata.gz: fcb83e2b772cbc09b4eeadd9c08e95e74a31d0c87fbd45b80a8436457c592d95
4
+ data.tar.gz: 45274ef63a4b8ef2d42ca1065175aa86a7d6a741c5806c0c941d1c3d4519ccf6
5
5
  SHA512:
6
- metadata.gz: 993b2e809780782ff09006099f72b837122156a7cb64c15f8b96340e4c826bff9c5d968844607042b1d903245516093809ea9486f226198f8cb94f84e65c1c08
7
- data.tar.gz: 804a9e65bacc675dec3f919f69159dd7b202a90e111af71a11db87638a201a5e989a486b2c4e7d1692ce242bd915307fe08fd52621b9bdc7be561490dafb1d9b
6
+ metadata.gz: f0a6a66f6dd70a8e4e1076308a6045d4f398def0127358594758ff03d85e09a731de47a71a60382e018b935268867aad5c8c12b4dce4596222dc2cfbed32f916
7
+ data.tar.gz: 4b8645013351e885cbfbb050e0522756100498b0f70c602713beb5f0a224a9f28d9c30661e2180222fa3811348e11419fedd2dd48392c858426ae0b2482c4410
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
 
@@ -168,7 +168,7 @@ module Google
168
168
  credentials = @config.credentials
169
169
  # Use self-signed JWT if the endpoint is unchanged from default,
170
170
  # but only if the default endpoint does not have a region prefix.
171
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
171
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
172
172
  !@config.endpoint.split(".").first.include?("-")
173
173
  credentials ||= Credentials.default scope: @config.scope,
174
174
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -1674,9 +1674,9 @@ module Google
1674
1674
  # * (`String`) The path to a service account key file in JSON format
1675
1675
  # * (`Hash`) A service account key as a Hash
1676
1676
  # * (`Google::Auth::Credentials`) A googleauth credentials object
1677
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
1677
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
1678
1678
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
1679
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
1679
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
1680
1680
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
1681
1681
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
1682
1682
  # * (`nil`) indicating no credentials
@@ -1718,7 +1718,9 @@ module Google
1718
1718
  class Configuration
1719
1719
  extend ::Gapic::Config
1720
1720
 
1721
- config_attr :endpoint, "apigateway.googleapis.com", ::String
1721
+ DEFAULT_ENDPOINT = "apigateway.googleapis.com"
1722
+
1723
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
1722
1724
  config_attr :credentials, nil do |value|
1723
1725
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
1724
1726
  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, "apigateway.googleapis.com", ::String
667
+ DEFAULT_ENDPOINT = "apigateway.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
@@ -164,7 +164,7 @@ module Google
164
164
  credentials = @config.credentials
165
165
  # Use self-signed JWT if the endpoint is unchanged from default,
166
166
  # but only if the default endpoint does not have a region prefix.
167
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
167
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
168
168
  !@config.endpoint.split(".").first.include?("-")
169
169
  credentials ||= Credentials.default scope: @config.scope,
170
170
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -1242,9 +1242,9 @@ module Google
1242
1242
  # * (`String`) The path to a service account key file in JSON format
1243
1243
  # * (`Hash`) A service account key as a Hash
1244
1244
  # * (`Google::Auth::Credentials`) A googleauth credentials object
1245
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
1245
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
1246
1246
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
1247
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
1247
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
1248
1248
  # * (`nil`) indicating no credentials
1249
1249
  # @return [::Object]
1250
1250
  # @!attribute [rw] scope
@@ -1277,7 +1277,9 @@ module Google
1277
1277
  class Configuration
1278
1278
  extend ::Gapic::Config
1279
1279
 
1280
- config_attr :endpoint, "apigateway.googleapis.com", ::String
1280
+ DEFAULT_ENDPOINT = "apigateway.googleapis.com"
1281
+
1282
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
1281
1283
  config_attr :credentials, nil do |value|
1282
1284
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
1283
1285
  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, "apigateway.googleapis.com", ::String
449
+ DEFAULT_ENDPOINT = "apigateway.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_list_gateways_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_gateway_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_gateway_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_gateway_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_gateway_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_apis_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_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_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_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_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_configs_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_config_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_create_api_config_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_update_api_config_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_delete_api_config_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
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module ApiGateway
23
23
  module V1
24
- VERSION = "0.3.0"
24
+ VERSION = "0.4.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/apigateway/v1/apigateway.proto
3
4
 
@@ -8,178 +9,33 @@ require 'google/api/resource_pb'
8
9
  require 'google/protobuf/field_mask_pb'
9
10
  require 'google/protobuf/timestamp_pb'
10
11
 
11
- Google::Protobuf::DescriptorPool.generated_pool.build do
12
- add_file("google/cloud/apigateway/v1/apigateway.proto", :syntax => :proto3) do
13
- add_message "google.cloud.apigateway.v1.Api" do
14
- optional :name, :string, 1
15
- optional :create_time, :message, 2, "google.protobuf.Timestamp"
16
- optional :update_time, :message, 3, "google.protobuf.Timestamp"
17
- map :labels, :string, :string, 4
18
- optional :display_name, :string, 5
19
- optional :managed_service, :string, 7
20
- optional :state, :enum, 12, "google.cloud.apigateway.v1.Api.State"
21
- end
22
- add_enum "google.cloud.apigateway.v1.Api.State" do
23
- value :STATE_UNSPECIFIED, 0
24
- value :CREATING, 1
25
- value :ACTIVE, 2
26
- value :FAILED, 3
27
- value :DELETING, 4
28
- value :UPDATING, 5
29
- end
30
- add_message "google.cloud.apigateway.v1.ApiConfig" do
31
- optional :name, :string, 1
32
- optional :create_time, :message, 2, "google.protobuf.Timestamp"
33
- optional :update_time, :message, 3, "google.protobuf.Timestamp"
34
- map :labels, :string, :string, 4
35
- optional :display_name, :string, 5
36
- optional :gateway_service_account, :string, 14
37
- optional :service_config_id, :string, 12
38
- optional :state, :enum, 8, "google.cloud.apigateway.v1.ApiConfig.State"
39
- repeated :openapi_documents, :message, 9, "google.cloud.apigateway.v1.ApiConfig.OpenApiDocument"
40
- repeated :grpc_services, :message, 10, "google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition"
41
- repeated :managed_service_configs, :message, 11, "google.cloud.apigateway.v1.ApiConfig.File"
42
- end
43
- add_message "google.cloud.apigateway.v1.ApiConfig.File" do
44
- optional :path, :string, 1
45
- optional :contents, :bytes, 2
46
- end
47
- add_message "google.cloud.apigateway.v1.ApiConfig.OpenApiDocument" do
48
- optional :document, :message, 1, "google.cloud.apigateway.v1.ApiConfig.File"
49
- end
50
- add_message "google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition" do
51
- optional :file_descriptor_set, :message, 1, "google.cloud.apigateway.v1.ApiConfig.File"
52
- repeated :source, :message, 2, "google.cloud.apigateway.v1.ApiConfig.File"
53
- end
54
- add_enum "google.cloud.apigateway.v1.ApiConfig.State" do
55
- value :STATE_UNSPECIFIED, 0
56
- value :CREATING, 1
57
- value :ACTIVE, 2
58
- value :FAILED, 3
59
- value :DELETING, 4
60
- value :UPDATING, 5
61
- value :ACTIVATING, 6
62
- end
63
- add_message "google.cloud.apigateway.v1.Gateway" do
64
- optional :name, :string, 1
65
- optional :create_time, :message, 2, "google.protobuf.Timestamp"
66
- optional :update_time, :message, 3, "google.protobuf.Timestamp"
67
- map :labels, :string, :string, 4
68
- optional :display_name, :string, 5
69
- optional :api_config, :string, 6
70
- optional :state, :enum, 7, "google.cloud.apigateway.v1.Gateway.State"
71
- optional :default_hostname, :string, 9
72
- end
73
- add_enum "google.cloud.apigateway.v1.Gateway.State" do
74
- value :STATE_UNSPECIFIED, 0
75
- value :CREATING, 1
76
- value :ACTIVE, 2
77
- value :FAILED, 3
78
- value :DELETING, 4
79
- value :UPDATING, 5
80
- end
81
- add_message "google.cloud.apigateway.v1.ListGatewaysRequest" do
82
- optional :parent, :string, 1
83
- optional :page_size, :int32, 2
84
- optional :page_token, :string, 3
85
- optional :filter, :string, 4
86
- optional :order_by, :string, 5
87
- end
88
- add_message "google.cloud.apigateway.v1.ListGatewaysResponse" do
89
- repeated :gateways, :message, 1, "google.cloud.apigateway.v1.Gateway"
90
- optional :next_page_token, :string, 2
91
- repeated :unreachable_locations, :string, 3
92
- end
93
- add_message "google.cloud.apigateway.v1.GetGatewayRequest" do
94
- optional :name, :string, 1
95
- end
96
- add_message "google.cloud.apigateway.v1.CreateGatewayRequest" do
97
- optional :parent, :string, 1
98
- optional :gateway_id, :string, 2
99
- optional :gateway, :message, 3, "google.cloud.apigateway.v1.Gateway"
100
- end
101
- add_message "google.cloud.apigateway.v1.UpdateGatewayRequest" do
102
- optional :update_mask, :message, 1, "google.protobuf.FieldMask"
103
- optional :gateway, :message, 2, "google.cloud.apigateway.v1.Gateway"
104
- end
105
- add_message "google.cloud.apigateway.v1.DeleteGatewayRequest" do
106
- optional :name, :string, 1
107
- end
108
- add_message "google.cloud.apigateway.v1.ListApisRequest" do
109
- optional :parent, :string, 1
110
- optional :page_size, :int32, 2
111
- optional :page_token, :string, 3
112
- optional :filter, :string, 4
113
- optional :order_by, :string, 5
114
- end
115
- add_message "google.cloud.apigateway.v1.ListApisResponse" do
116
- repeated :apis, :message, 1, "google.cloud.apigateway.v1.Api"
117
- optional :next_page_token, :string, 2
118
- repeated :unreachable_locations, :string, 3
119
- end
120
- add_message "google.cloud.apigateway.v1.GetApiRequest" do
121
- optional :name, :string, 1
122
- end
123
- add_message "google.cloud.apigateway.v1.CreateApiRequest" do
124
- optional :parent, :string, 1
125
- optional :api_id, :string, 2
126
- optional :api, :message, 3, "google.cloud.apigateway.v1.Api"
127
- end
128
- add_message "google.cloud.apigateway.v1.UpdateApiRequest" do
129
- optional :update_mask, :message, 1, "google.protobuf.FieldMask"
130
- optional :api, :message, 2, "google.cloud.apigateway.v1.Api"
131
- end
132
- add_message "google.cloud.apigateway.v1.DeleteApiRequest" do
133
- optional :name, :string, 1
134
- end
135
- add_message "google.cloud.apigateway.v1.ListApiConfigsRequest" do
136
- optional :parent, :string, 1
137
- optional :page_size, :int32, 2
138
- optional :page_token, :string, 3
139
- optional :filter, :string, 4
140
- optional :order_by, :string, 5
141
- end
142
- add_message "google.cloud.apigateway.v1.ListApiConfigsResponse" do
143
- repeated :api_configs, :message, 1, "google.cloud.apigateway.v1.ApiConfig"
144
- optional :next_page_token, :string, 2
145
- repeated :unreachable_locations, :string, 3
146
- end
147
- add_message "google.cloud.apigateway.v1.GetApiConfigRequest" do
148
- optional :name, :string, 1
149
- optional :view, :enum, 3, "google.cloud.apigateway.v1.GetApiConfigRequest.ConfigView"
150
- end
151
- add_enum "google.cloud.apigateway.v1.GetApiConfigRequest.ConfigView" do
152
- value :CONFIG_VIEW_UNSPECIFIED, 0
153
- value :BASIC, 1
154
- value :FULL, 2
155
- end
156
- add_message "google.cloud.apigateway.v1.CreateApiConfigRequest" do
157
- optional :parent, :string, 1
158
- optional :api_config_id, :string, 2
159
- optional :api_config, :message, 3, "google.cloud.apigateway.v1.ApiConfig"
160
- end
161
- add_message "google.cloud.apigateway.v1.UpdateApiConfigRequest" do
162
- optional :update_mask, :message, 1, "google.protobuf.FieldMask"
163
- optional :api_config, :message, 2, "google.cloud.apigateway.v1.ApiConfig"
164
- end
165
- add_message "google.cloud.apigateway.v1.DeleteApiConfigRequest" do
166
- optional :name, :string, 1
167
- end
168
- add_message "google.cloud.apigateway.v1.OperationMetadata" do
169
- optional :create_time, :message, 1, "google.protobuf.Timestamp"
170
- optional :end_time, :message, 2, "google.protobuf.Timestamp"
171
- optional :target, :string, 3
172
- optional :verb, :string, 4
173
- optional :status_message, :string, 5
174
- optional :requested_cancellation, :bool, 6
175
- optional :api_version, :string, 7
176
- repeated :diagnostics, :message, 8, "google.cloud.apigateway.v1.OperationMetadata.Diagnostic"
177
- end
178
- add_message "google.cloud.apigateway.v1.OperationMetadata.Diagnostic" do
179
- optional :location, :string, 1
180
- optional :message, :string, 2
12
+
13
+ descriptor_data = "\n+google/cloud/apigateway/v1/apigateway.proto\x12\x1agoogle.cloud.apigateway.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xd6\x04\n\x03\x41pi\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\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@\n\x06labels\x18\x04 \x03(\x0b\x32+.google.cloud.apigateway.v1.Api.LabelsEntryB\x03\xe0\x41\x01\x12\x19\n\x0c\x64isplay_name\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12S\n\x0fmanaged_service\x18\x07 \x01(\tB:\xe0\x41\x05\xe0\x41\x01\xfa\x41\x31\n/servicemanagement.googleapis.com/ManagedService\x12\x39\n\x05state\x18\x0c \x01(\x0e\x32%.google.cloud.apigateway.v1.Api.StateB\x03\xe0\x41\x03\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"`\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\n\n\x06\x41\x43TIVE\x10\x02\x12\n\n\x06\x46\x41ILED\x10\x03\x12\x0c\n\x08\x44\x45LETING\x10\x04\x12\x0c\n\x08UPDATING\x10\x05:R\xea\x41O\n\x1d\x61pigateway.googleapis.com/Api\x12.projects/{project}/locations/global/apis/{api}\"\xfb\t\n\tApiConfig\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\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\x46\n\x06labels\x18\x04 \x03(\x0b\x32\x31.google.cloud.apigateway.v1.ApiConfig.LabelsEntryB\x03\xe0\x41\x01\x12\x19\n\x0c\x64isplay_name\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12J\n\x17gateway_service_account\x18\x0e \x01(\tB)\xe0\x41\x05\xfa\x41#\n!iam.googleapis.com/ServiceAccount\x12K\n\x11service_config_id\x18\x0c \x01(\tB0\xe0\x41\x03\xfa\x41*\n(servicemanagement.googleapis.com/Service\x12?\n\x05state\x18\x08 \x01(\x0e\x32+.google.cloud.apigateway.v1.ApiConfig.StateB\x03\xe0\x41\x03\x12U\n\x11openapi_documents\x18\t \x03(\x0b\x32\x35.google.cloud.apigateway.v1.ApiConfig.OpenApiDocumentB\x03\xe0\x41\x01\x12W\n\rgrpc_services\x18\n \x03(\x0b\x32;.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinitionB\x03\xe0\x41\x01\x12P\n\x17managed_service_configs\x18\x0b \x03(\x0b\x32*.google.cloud.apigateway.v1.ApiConfig.FileB\x03\xe0\x41\x01\x1a&\n\x04\x46ile\x12\x0c\n\x04path\x18\x01 \x01(\t\x12\x10\n\x08\x63ontents\x18\x02 \x01(\x0c\x1aO\n\x0fOpenApiDocument\x12<\n\x08\x64ocument\x18\x01 \x01(\x0b\x32*.google.cloud.apigateway.v1.ApiConfig.File\x1a\xa6\x01\n\x15GrpcServiceDefinition\x12L\n\x13\x66ile_descriptor_set\x18\x01 \x01(\x0b\x32*.google.cloud.apigateway.v1.ApiConfig.FileB\x03\xe0\x41\x04\x12?\n\x06source\x18\x02 \x03(\x0b\x32*.google.cloud.apigateway.v1.ApiConfig.FileB\x03\xe0\x41\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"p\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\n\n\x06\x41\x43TIVE\x10\x02\x12\n\n\x06\x46\x41ILED\x10\x03\x12\x0c\n\x08\x44\x45LETING\x10\x04\x12\x0c\n\x08UPDATING\x10\x05\x12\x0e\n\nACTIVATING\x10\x06:m\xea\x41j\n#apigateway.googleapis.com/ApiConfig\x12\x43projects/{project}/locations/global/apis/{api}/configs/{api_config}\"\xfd\x04\n\x07Gateway\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\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\x44\n\x06labels\x18\x04 \x03(\x0b\x32/.google.cloud.apigateway.v1.Gateway.LabelsEntryB\x03\xe0\x41\x01\x12\x19\n\x0c\x64isplay_name\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12?\n\napi_config\x18\x06 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#apigateway.googleapis.com/ApiConfig\x12=\n\x05state\x18\x07 \x01(\x0e\x32).google.cloud.apigateway.v1.Gateway.StateB\x03\xe0\x41\x03\x12\x1d\n\x10\x64\x65\x66\x61ult_hostname\x18\t \x01(\tB\x03\xe0\x41\x03\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"`\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\n\n\x06\x41\x43TIVE\x10\x02\x12\n\n\x06\x46\x41ILED\x10\x03\x12\x0c\n\x08\x44\x45LETING\x10\x04\x12\x0c\n\x08UPDATING\x10\x05:b\xea\x41_\n!apigateway.googleapis.com/Gateway\x12:projects/{project}/locations/{location}/gateways/{gateway}\"\x99\x01\n\x13ListGatewaysRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\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\x12\x10\n\x08order_by\x18\x05 \x01(\t\"\x85\x01\n\x14ListGatewaysResponse\x12\x35\n\x08gateways\x18\x01 \x03(\x0b\x32#.google.cloud.apigateway.v1.Gateway\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x1d\n\x15unreachable_locations\x18\x03 \x03(\t\"L\n\x11GetGatewayRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!apigateway.googleapis.com/Gateway\"\xa5\x01\n\x14\x43reateGatewayRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x17\n\ngateway_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x39\n\x07gateway\x18\x03 \x01(\x0b\x32#.google.cloud.apigateway.v1.GatewayB\x03\xe0\x41\x02\"\x82\x01\n\x14UpdateGatewayRequest\x12/\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x39\n\x07gateway\x18\x02 \x01(\x0b\x32#.google.cloud.apigateway.v1.GatewayB\x03\xe0\x41\x02\"O\n\x14\x44\x65leteGatewayRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!apigateway.googleapis.com/Gateway\"\x95\x01\n\x0fListApisRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\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\x12\x10\n\x08order_by\x18\x05 \x01(\t\"y\n\x10ListApisResponse\x12-\n\x04\x61pis\x18\x01 \x03(\x0b\x32\x1f.google.cloud.apigateway.v1.Api\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x1d\n\x15unreachable_locations\x18\x03 \x03(\t\"D\n\rGetApiRequest\x12\x33\n\x04name\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1d\x61pigateway.googleapis.com/Api\"\x95\x01\n\x10\x43reateApiRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x13\n\x06\x61pi_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x31\n\x03\x61pi\x18\x03 \x01(\x0b\x32\x1f.google.cloud.apigateway.v1.ApiB\x03\xe0\x41\x02\"v\n\x10UpdateApiRequest\x12/\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x31\n\x03\x61pi\x18\x02 \x01(\x0b\x32\x1f.google.cloud.apigateway.v1.ApiB\x03\xe0\x41\x02\"G\n\x10\x44\x65leteApiRequest\x12\x33\n\x04name\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1d\x61pigateway.googleapis.com/Api\"\x97\x01\n\x15ListApiConfigsRequest\x12\x35\n\x06parent\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1d\x61pigateway.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\x12\x10\n\x08order_by\x18\x05 \x01(\t\"\x8c\x01\n\x16ListApiConfigsResponse\x12:\n\x0b\x61pi_configs\x18\x01 \x03(\x0b\x32%.google.cloud.apigateway.v1.ApiConfig\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x1d\n\x15unreachable_locations\x18\x03 \x03(\t\"\xda\x01\n\x13GetApiConfigRequest\x12\x39\n\x04name\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#apigateway.googleapis.com/ApiConfig\x12H\n\x04view\x18\x03 \x01(\x0e\x32:.google.cloud.apigateway.v1.GetApiConfigRequest.ConfigView\">\n\nConfigView\x12\x1b\n\x17\x43ONFIG_VIEW_UNSPECIFIED\x10\x00\x12\t\n\x05\x42\x41SIC\x10\x01\x12\x08\n\x04\x46ULL\x10\x02\"\xab\x01\n\x16\x43reateApiConfigRequest\x12\x35\n\x06parent\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1d\x61pigateway.googleapis.com/Api\x12\x1a\n\rapi_config_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12>\n\napi_config\x18\x03 \x01(\x0b\x32%.google.cloud.apigateway.v1.ApiConfigB\x03\xe0\x41\x02\"\x89\x01\n\x16UpdateApiConfigRequest\x12/\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12>\n\napi_config\x18\x02 \x01(\x0b\x32%.google.cloud.apigateway.v1.ApiConfigB\x03\xe0\x41\x02\"S\n\x16\x44\x65leteApiConfigRequest\x12\x39\n\x04name\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#apigateway.googleapis.com/ApiConfig\"\x85\x03\n\x11OperationMetadata\x12\x34\n\x0b\x63reate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x13\n\x06target\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x11\n\x04verb\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12\x1b\n\x0estatus_message\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12#\n\x16requested_cancellation\x18\x06 \x01(\x08\x42\x03\xe0\x41\x03\x12\x18\n\x0b\x61pi_version\x18\x07 \x01(\tB\x03\xe0\x41\x03\x12R\n\x0b\x64iagnostics\x18\x08 \x03(\x0b\x32\x38.google.cloud.apigateway.v1.OperationMetadata.DiagnosticB\x03\xe0\x41\x03\x1a/\n\nDiagnostic\x12\x10\n\x08location\x18\x01 \x01(\t\x12\x0f\n\x07message\x18\x02 \x01(\tB\xb2\x03\n\x1e\x63om.google.cloud.apigateway.v1P\x01Z>cloud.google.com/go/apigateway/apiv1/apigatewaypb;apigatewaypb\xaa\x02\x1aGoogle.Cloud.ApiGateway.V1\xca\x02\x1aGoogle\\Cloud\\ApiGateway\\V1\xea\x02\x1dGoogle::Cloud::ApiGateway::V1\xea\x41Y\n!iam.googleapis.com/ServiceAccount\x12\x34projects/{project}/serviceAccounts/{service_account}\xea\x41\x45\n/servicemanagement.googleapis.com/ManagedService\x12\x12services/{service}\xea\x41O\n(servicemanagement.googleapis.com/Service\x12#services/{service}/configs/{config}b\x06proto3"
14
+
15
+ pool = Google::Protobuf::DescriptorPool.generated_pool
16
+
17
+ begin
18
+ pool.add_serialized_file(descriptor_data)
19
+ rescue TypeError => e
20
+ # Compatibility code: will be removed in the next major version.
21
+ require 'google/protobuf/descriptor_pb'
22
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
23
+ parsed.clear_dependency
24
+ serialized = parsed.class.encode(parsed)
25
+ file = pool.add_serialized_file(serialized)
26
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
27
+ imports = [
28
+ ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
29
+ ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
30
+ ]
31
+ imports.each do |type_name, expected_filename|
32
+ import_file = pool.lookup(type_name).file_descriptor
33
+ if import_file.name != expected_filename
34
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
181
35
  end
182
36
  end
37
+ warn "Each proto file must use a consistent fully-qualified name."
38
+ warn "This will become an error in the next major version."
183
39
  end
184
40
 
185
41
  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/apigateway/v1/apigateway_service.proto
3
4
 
@@ -8,9 +9,31 @@ require 'google/api/client_pb'
8
9
  require 'google/cloud/apigateway/v1/apigateway_pb'
9
10
  require 'google/longrunning/operations_pb'
10
11
 
11
- Google::Protobuf::DescriptorPool.generated_pool.build do
12
- add_file("google/cloud/apigateway/v1/apigateway_service.proto", :syntax => :proto3) do
12
+
13
+ descriptor_data = "\n3google/cloud/apigateway/v1/apigateway_service.proto\x12\x1agoogle.cloud.apigateway.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a+google/cloud/apigateway/v1/apigateway.proto\x1a#google/longrunning/operations.proto2\xe0\x17\n\x11\x41piGatewayService\x12\xb0\x01\n\x0cListGateways\x12/.google.cloud.apigateway.v1.ListGatewaysRequest\x1a\x30.google.cloud.apigateway.v1.ListGatewaysResponse\"=\x82\xd3\xe4\x93\x02.\x12,/v1/{parent=projects/*/locations/*}/gateways\xda\x41\x06parent\x12\x9d\x01\n\nGetGateway\x12-.google.cloud.apigateway.v1.GetGatewayRequest\x1a#.google.cloud.apigateway.v1.Gateway\";\x82\xd3\xe4\x93\x02.\x12,/v1/{name=projects/*/locations/*/gateways/*}\xda\x41\x04name\x12\xda\x01\n\rCreateGateway\x12\x30.google.cloud.apigateway.v1.CreateGatewayRequest\x1a\x1d.google.longrunning.Operation\"x\x82\xd3\xe4\x93\x02\x37\",/v1/{parent=projects/*/locations/*}/gateways:\x07gateway\xda\x41\x19parent,gateway,gateway_id\xca\x41\x1c\n\x07Gateway\x12\x11OperationMetadata\x12\xdc\x01\n\rUpdateGateway\x12\x30.google.cloud.apigateway.v1.UpdateGatewayRequest\x1a\x1d.google.longrunning.Operation\"z\x82\xd3\xe4\x93\x02?24/v1/{gateway.name=projects/*/locations/*/gateways/*}:\x07gateway\xda\x41\x13gateway,update_mask\xca\x41\x1c\n\x07Gateway\x12\x11OperationMetadata\x12\xca\x01\n\rDeleteGateway\x12\x30.google.cloud.apigateway.v1.DeleteGatewayRequest\x1a\x1d.google.longrunning.Operation\"h\x82\xd3\xe4\x93\x02.*,/v1/{name=projects/*/locations/*/gateways/*}\xda\x41\x04name\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\x12\xa0\x01\n\x08ListApis\x12+.google.cloud.apigateway.v1.ListApisRequest\x1a,.google.cloud.apigateway.v1.ListApisResponse\"9\x82\xd3\xe4\x93\x02*\x12(/v1/{parent=projects/*/locations/*}/apis\xda\x41\x06parent\x12\x8d\x01\n\x06GetApi\x12).google.cloud.apigateway.v1.GetApiRequest\x1a\x1f.google.cloud.apigateway.v1.Api\"7\x82\xd3\xe4\x93\x02*\x12(/v1/{name=projects/*/locations/*/apis/*}\xda\x41\x04name\x12\xbe\x01\n\tCreateApi\x12,.google.cloud.apigateway.v1.CreateApiRequest\x1a\x1d.google.longrunning.Operation\"d\x82\xd3\xe4\x93\x02/\"(/v1/{parent=projects/*/locations/*}/apis:\x03\x61pi\xda\x41\x11parent,api,api_id\xca\x41\x18\n\x03\x41pi\x12\x11OperationMetadata\x12\xc0\x01\n\tUpdateApi\x12,.google.cloud.apigateway.v1.UpdateApiRequest\x1a\x1d.google.longrunning.Operation\"f\x82\xd3\xe4\x93\x02\x33\x32,/v1/{api.name=projects/*/locations/*/apis/*}:\x03\x61pi\xda\x41\x0f\x61pi,update_mask\xca\x41\x18\n\x03\x41pi\x12\x11OperationMetadata\x12\xbe\x01\n\tDeleteApi\x12,.google.cloud.apigateway.v1.DeleteApiRequest\x1a\x1d.google.longrunning.Operation\"d\x82\xd3\xe4\x93\x02**(/v1/{name=projects/*/locations/*/apis/*}\xda\x41\x04name\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\x12\xbc\x01\n\x0eListApiConfigs\x12\x31.google.cloud.apigateway.v1.ListApiConfigsRequest\x1a\x32.google.cloud.apigateway.v1.ListApiConfigsResponse\"C\x82\xd3\xe4\x93\x02\x34\x12\x32/v1/{parent=projects/*/locations/*/apis/*}/configs\xda\x41\x06parent\x12\xa9\x01\n\x0cGetApiConfig\x12/.google.cloud.apigateway.v1.GetApiConfigRequest\x1a%.google.cloud.apigateway.v1.ApiConfig\"A\x82\xd3\xe4\x93\x02\x34\x12\x32/v1/{name=projects/*/locations/*/apis/*/configs/*}\xda\x41\x04name\x12\xf0\x01\n\x0f\x43reateApiConfig\x12\x32.google.cloud.apigateway.v1.CreateApiConfigRequest\x1a\x1d.google.longrunning.Operation\"\x89\x01\x82\xd3\xe4\x93\x02@\"2/v1/{parent=projects/*/locations/*/apis/*}/configs:\napi_config\xda\x41\x1fparent,api_config,api_config_id\xca\x41\x1e\n\tApiConfig\x12\x11OperationMetadata\x12\xf2\x01\n\x0fUpdateApiConfig\x12\x32.google.cloud.apigateway.v1.UpdateApiConfigRequest\x1a\x1d.google.longrunning.Operation\"\x8b\x01\x82\xd3\xe4\x93\x02K2=/v1/{api_config.name=projects/*/locations/*/apis/*/configs/*}:\napi_config\xda\x41\x16\x61pi_config,update_mask\xca\x41\x1e\n\tApiConfig\x12\x11OperationMetadata\x12\xd4\x01\n\x0f\x44\x65leteApiConfig\x12\x32.google.cloud.apigateway.v1.DeleteApiConfigRequest\x1a\x1d.google.longrunning.Operation\"n\x82\xd3\xe4\x93\x02\x34*2/v1/{name=projects/*/locations/*/apis/*/configs/*}\xda\x41\x04name\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\x1aM\xca\x41\x19\x61pigateway.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xbc\x01\n\x1e\x63om.google.cloud.apigateway.v1P\x01Z>cloud.google.com/go/apigateway/apiv1/apigatewaypb;apigatewaypb\xaa\x02\x1aGoogle.Cloud.ApiGateway.V1\xca\x02\x1aGoogle\\Cloud\\ApiGateway\\V1\xea\x02\x1dGoogle::Cloud::ApiGateway::V1b\x06proto3"
14
+
15
+ pool = Google::Protobuf::DescriptorPool.generated_pool
16
+
17
+ begin
18
+ pool.add_serialized_file(descriptor_data)
19
+ rescue TypeError => e
20
+ # Compatibility code: will be removed in the next major version.
21
+ require 'google/protobuf/descriptor_pb'
22
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
23
+ parsed.clear_dependency
24
+ serialized = parsed.class.encode(parsed)
25
+ file = pool.add_serialized_file(serialized)
26
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
27
+ imports = [
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}"
33
+ end
13
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."
14
37
  end
15
38
 
16
39
  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-api_gateway-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.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