google-cloud-api_gateway-v1 0.3.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/google/cloud/api_gateway/v1/api_gateway_service/client.rb +16 -5
- data/lib/google/cloud/api_gateway/v1/api_gateway_service/operations.rb +15 -4
- data/lib/google/cloud/api_gateway/v1/api_gateway_service/rest/client.rb +321 -4
- data/lib/google/cloud/api_gateway/v1/api_gateway_service/rest/operations.rb +84 -7
- data/lib/google/cloud/api_gateway/v1/api_gateway_service/rest/service_stub.rb +15 -15
- data/lib/google/cloud/api_gateway/v1/version.rb +1 -1
- data/lib/google/cloud/apigateway/v1/apigateway_pb.rb +26 -170
- data/lib/google/cloud/apigateway/v1/apigateway_service_pb.rb +25 -2
- data/proto_docs/google/api/client.rb +67 -4
- data/proto_docs/google/api/field_behavior.rb +14 -0
- data/proto_docs/google/protobuf/any.rb +7 -4
- data/proto_docs/google/protobuf/timestamp.rb +1 -3
- metadata +5 -5
@@ -136,6 +136,26 @@ module Google
|
|
136
136
|
# @return [::Gapic::Operation]
|
137
137
|
#
|
138
138
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
139
|
+
#
|
140
|
+
# @example Basic example
|
141
|
+
# require "google/longrunning"
|
142
|
+
#
|
143
|
+
# # Create a client object. The client can be reused for multiple calls.
|
144
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
145
|
+
#
|
146
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
147
|
+
# request = Google::Longrunning::ListOperationsRequest.new
|
148
|
+
#
|
149
|
+
# # Call the list_operations method.
|
150
|
+
# result = client.list_operations request
|
151
|
+
#
|
152
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
153
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
154
|
+
# result.each do |item|
|
155
|
+
# # Each element is of type ::Google::Longrunning::Operation.
|
156
|
+
# p item
|
157
|
+
# end
|
158
|
+
#
|
139
159
|
def list_operations request, options = nil
|
140
160
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
141
161
|
|
@@ -201,6 +221,29 @@ module Google
|
|
201
221
|
# @return [::Gapic::Operation]
|
202
222
|
#
|
203
223
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
224
|
+
#
|
225
|
+
# @example Basic example
|
226
|
+
# require "google/longrunning"
|
227
|
+
#
|
228
|
+
# # Create a client object. The client can be reused for multiple calls.
|
229
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
230
|
+
#
|
231
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
232
|
+
# request = Google::Longrunning::GetOperationRequest.new
|
233
|
+
#
|
234
|
+
# # Call the get_operation method.
|
235
|
+
# result = client.get_operation request
|
236
|
+
#
|
237
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
238
|
+
# # check the status of an operation, cancel it, or wait for results.
|
239
|
+
# # Here is how to wait for a response.
|
240
|
+
# result.wait_until_done! timeout: 60
|
241
|
+
# if result.response?
|
242
|
+
# p result.response
|
243
|
+
# else
|
244
|
+
# puts "No response received."
|
245
|
+
# end
|
246
|
+
#
|
204
247
|
def get_operation request, options = nil
|
205
248
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
206
249
|
|
@@ -267,6 +310,22 @@ module Google
|
|
267
310
|
# @return [::Google::Protobuf::Empty]
|
268
311
|
#
|
269
312
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
313
|
+
#
|
314
|
+
# @example Basic example
|
315
|
+
# require "google/longrunning"
|
316
|
+
#
|
317
|
+
# # Create a client object. The client can be reused for multiple calls.
|
318
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
319
|
+
#
|
320
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
321
|
+
# request = Google::Longrunning::DeleteOperationRequest.new
|
322
|
+
#
|
323
|
+
# # Call the delete_operation method.
|
324
|
+
# result = client.delete_operation request
|
325
|
+
#
|
326
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
327
|
+
# p result
|
328
|
+
#
|
270
329
|
def delete_operation request, options = nil
|
271
330
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
272
331
|
|
@@ -338,6 +397,22 @@ module Google
|
|
338
397
|
# @return [::Google::Protobuf::Empty]
|
339
398
|
#
|
340
399
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
400
|
+
#
|
401
|
+
# @example Basic example
|
402
|
+
# require "google/longrunning"
|
403
|
+
#
|
404
|
+
# # Create a client object. The client can be reused for multiple calls.
|
405
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
406
|
+
#
|
407
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
408
|
+
# request = Google::Longrunning::CancelOperationRequest.new
|
409
|
+
#
|
410
|
+
# # Call the cancel_operation method.
|
411
|
+
# result = client.cancel_operation request
|
412
|
+
#
|
413
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
414
|
+
# p result
|
415
|
+
#
|
341
416
|
def cancel_operation request, options = nil
|
342
417
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
343
418
|
|
@@ -411,9 +486,9 @@ module Google
|
|
411
486
|
# * (`String`) The path to a service account key file in JSON format
|
412
487
|
# * (`Hash`) A service account key as a Hash
|
413
488
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
414
|
-
# (see the [googleauth docs](https://
|
489
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
415
490
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
416
|
-
# (see the [signet docs](https://
|
491
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
417
492
|
# * (`nil`) indicating no credentials
|
418
493
|
# @return [::Object]
|
419
494
|
# @!attribute [rw] scope
|
@@ -446,7 +521,9 @@ module Google
|
|
446
521
|
class Configuration
|
447
522
|
extend ::Gapic::Config
|
448
523
|
|
449
|
-
|
524
|
+
DEFAULT_ENDPOINT = "apigateway.googleapis.com"
|
525
|
+
|
526
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
450
527
|
config_attr :credentials, nil do |value|
|
451
528
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
452
529
|
allowed.any? { |klass| klass === value }
|
@@ -567,7 +644,7 @@ module Google
|
|
567
644
|
|
568
645
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_list_operations_request request_pb
|
569
646
|
query_string_params = if query_string_params.any?
|
570
|
-
query_string_params.to_h { |p| p.split
|
647
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
571
648
|
else
|
572
649
|
{}
|
573
650
|
end
|
@@ -605,7 +682,7 @@ module Google
|
|
605
682
|
|
606
683
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_get_operation_request request_pb
|
607
684
|
query_string_params = if query_string_params.any?
|
608
|
-
query_string_params.to_h { |p| p.split
|
685
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
609
686
|
else
|
610
687
|
{}
|
611
688
|
end
|
@@ -643,7 +720,7 @@ module Google
|
|
643
720
|
|
644
721
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_delete_operation_request request_pb
|
645
722
|
query_string_params = if query_string_params.any?
|
646
|
-
query_string_params.to_h { |p| p.split
|
723
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
647
724
|
else
|
648
725
|
{}
|
649
726
|
end
|
@@ -681,7 +758,7 @@ module Google
|
|
681
758
|
|
682
759
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_cancel_operation_request request_pb
|
683
760
|
query_string_params = if query_string_params.any?
|
684
|
-
query_string_params.to_h { |p| p.split
|
761
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
685
762
|
else
|
686
763
|
{}
|
687
764
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
594
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
595
595
|
else
|
596
596
|
{}
|
597
597
|
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
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
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
|
-
|
12
|
-
|
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
|