google-cloud-api_gateway-v1 0.2.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +1 -1
- data/README.md +2 -2
- data/lib/google/cloud/api_gateway/v1/api_gateway_service/client.rb +54 -58
- data/lib/google/cloud/api_gateway/v1/api_gateway_service/operations.rb +17 -17
- data/lib/google/cloud/api_gateway/v1/api_gateway_service/rest/client.rb +1451 -0
- data/lib/google/cloud/api_gateway/v1/api_gateway_service/rest/operations.rb +795 -0
- data/lib/google/cloud/api_gateway/v1/api_gateway_service/rest/service_stub.rb +939 -0
- data/lib/google/cloud/api_gateway/v1/api_gateway_service/rest.rb +53 -0
- data/lib/google/cloud/api_gateway/v1/api_gateway_service.rb +7 -1
- data/lib/google/cloud/api_gateway/v1/rest.rb +37 -0
- data/lib/google/cloud/api_gateway/v1/version.rb +1 -1
- data/lib/google/cloud/api_gateway/v1.rb +7 -2
- data/lib/google/cloud/apigateway/v1/apigateway_pb.rb +26 -171
- data/lib/google/cloud/apigateway/v1/apigateway_service_pb.rb +25 -2
- data/proto_docs/google/api/client.rb +381 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/protobuf/any.rb +7 -4
- data/proto_docs/google/protobuf/empty.rb +0 -2
- data/proto_docs/google/protobuf/timestamp.rb +1 -3
- data/proto_docs/google/rpc/status.rb +4 -2
- metadata +14 -7
@@ -0,0 +1,53 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2023 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
require "gapic/rest"
|
20
|
+
require "gapic/config"
|
21
|
+
require "gapic/config/method"
|
22
|
+
|
23
|
+
require "google/cloud/api_gateway/v1/version"
|
24
|
+
|
25
|
+
require "google/cloud/api_gateway/v1/api_gateway_service/credentials"
|
26
|
+
require "google/cloud/api_gateway/v1/api_gateway_service/paths"
|
27
|
+
require "google/cloud/api_gateway/v1/api_gateway_service/rest/operations"
|
28
|
+
require "google/cloud/api_gateway/v1/api_gateway_service/rest/client"
|
29
|
+
|
30
|
+
module Google
|
31
|
+
module Cloud
|
32
|
+
module ApiGateway
|
33
|
+
module V1
|
34
|
+
##
|
35
|
+
# The API Gateway Service is the interface for managing API Gateways.
|
36
|
+
#
|
37
|
+
# To load this service and instantiate a REST client:
|
38
|
+
#
|
39
|
+
# require "google/cloud/api_gateway/v1/api_gateway_service/rest"
|
40
|
+
# client = ::Google::Cloud::ApiGateway::V1::ApiGatewayService::Rest::Client.new
|
41
|
+
#
|
42
|
+
module ApiGatewayService
|
43
|
+
# Client for the REST transport
|
44
|
+
module Rest
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
helper_path = ::File.join __dir__, "rest", "helpers.rb"
|
53
|
+
require "google/cloud/api_gateway/v1/api_gateway_service/rest/helpers" if ::File.file? helper_path
|
@@ -26,6 +26,7 @@ require "google/cloud/api_gateway/v1/api_gateway_service/credentials"
|
|
26
26
|
require "google/cloud/api_gateway/v1/api_gateway_service/paths"
|
27
27
|
require "google/cloud/api_gateway/v1/api_gateway_service/operations"
|
28
28
|
require "google/cloud/api_gateway/v1/api_gateway_service/client"
|
29
|
+
require "google/cloud/api_gateway/v1/api_gateway_service/rest"
|
29
30
|
|
30
31
|
module Google
|
31
32
|
module Cloud
|
@@ -34,11 +35,16 @@ module Google
|
|
34
35
|
##
|
35
36
|
# The API Gateway Service is the interface for managing API Gateways.
|
36
37
|
#
|
37
|
-
#
|
38
|
+
# @example Load this service and instantiate a gRPC client
|
38
39
|
#
|
39
40
|
# require "google/cloud/api_gateway/v1/api_gateway_service"
|
40
41
|
# client = ::Google::Cloud::ApiGateway::V1::ApiGatewayService::Client.new
|
41
42
|
#
|
43
|
+
# @example Load this service and instantiate a REST client
|
44
|
+
#
|
45
|
+
# require "google/cloud/api_gateway/v1/api_gateway_service/rest"
|
46
|
+
# client = ::Google::Cloud::ApiGateway::V1::ApiGatewayService::Rest::Client.new
|
47
|
+
#
|
42
48
|
module ApiGatewayService
|
43
49
|
end
|
44
50
|
end
|
@@ -0,0 +1,37 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2023 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
require "google/cloud/api_gateway/v1/api_gateway_service/rest"
|
20
|
+
require "google/cloud/api_gateway/v1/version"
|
21
|
+
|
22
|
+
module Google
|
23
|
+
module Cloud
|
24
|
+
module ApiGateway
|
25
|
+
##
|
26
|
+
# To load just the REST part of this package, including all its services, and instantiate a REST client:
|
27
|
+
#
|
28
|
+
# @example
|
29
|
+
#
|
30
|
+
# require "google/cloud/api_gateway/v1/rest"
|
31
|
+
# client = ::Google::Cloud::ApiGateway::V1::ApiGatewayService::Rest::Client.new
|
32
|
+
#
|
33
|
+
module V1
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
@@ -23,13 +23,18 @@ module Google
|
|
23
23
|
module Cloud
|
24
24
|
module ApiGateway
|
25
25
|
##
|
26
|
-
#
|
26
|
+
# API client module.
|
27
27
|
#
|
28
|
-
# @example
|
28
|
+
# @example Load this package, including all its services, and instantiate a gRPC client
|
29
29
|
#
|
30
30
|
# require "google/cloud/api_gateway/v1"
|
31
31
|
# client = ::Google::Cloud::ApiGateway::V1::ApiGatewayService::Client.new
|
32
32
|
#
|
33
|
+
# @example Load this package, including all its services, and instantiate a REST client
|
34
|
+
#
|
35
|
+
# require "google/cloud/api_gateway/v1"
|
36
|
+
# client = ::Google::Cloud::ApiGateway::V1::ApiGatewayService::Rest::Client.new
|
37
|
+
#
|
33
38
|
module V1
|
34
39
|
end
|
35
40
|
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
|
|
@@ -7,180 +8,34 @@ require 'google/api/field_behavior_pb'
|
|
7
8
|
require 'google/api/resource_pb'
|
8
9
|
require 'google/protobuf/field_mask_pb'
|
9
10
|
require 'google/protobuf/timestamp_pb'
|
10
|
-
require 'google/api/annotations_pb'
|
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
|
-
|
35
|
-
map :labels, :string, :string, 4
|
36
|
-
optional :display_name, :string, 5
|
37
|
-
optional :gateway_service_account, :string, 14
|
38
|
-
optional :service_config_id, :string, 12
|
39
|
-
optional :state, :enum, 8, "google.cloud.apigateway.v1.ApiConfig.State"
|
40
|
-
repeated :openapi_documents, :message, 9, "google.cloud.apigateway.v1.ApiConfig.OpenApiDocument"
|
41
|
-
repeated :grpc_services, :message, 10, "google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition"
|
42
|
-
repeated :managed_service_configs, :message, 11, "google.cloud.apigateway.v1.ApiConfig.File"
|
43
|
-
end
|
44
|
-
add_message "google.cloud.apigateway.v1.ApiConfig.File" do
|
45
|
-
optional :path, :string, 1
|
46
|
-
optional :contents, :bytes, 2
|
47
|
-
end
|
48
|
-
add_message "google.cloud.apigateway.v1.ApiConfig.OpenApiDocument" do
|
49
|
-
optional :document, :message, 1, "google.cloud.apigateway.v1.ApiConfig.File"
|
50
|
-
end
|
51
|
-
add_message "google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition" do
|
52
|
-
optional :file_descriptor_set, :message, 1, "google.cloud.apigateway.v1.ApiConfig.File"
|
53
|
-
repeated :source, :message, 2, "google.cloud.apigateway.v1.ApiConfig.File"
|
54
|
-
end
|
55
|
-
add_enum "google.cloud.apigateway.v1.ApiConfig.State" do
|
56
|
-
value :STATE_UNSPECIFIED, 0
|
57
|
-
value :CREATING, 1
|
58
|
-
value :ACTIVE, 2
|
59
|
-
value :FAILED, 3
|
60
|
-
value :DELETING, 4
|
61
|
-
value :UPDATING, 5
|
62
|
-
value :ACTIVATING, 6
|
63
|
-
end
|
64
|
-
add_message "google.cloud.apigateway.v1.Gateway" do
|
65
|
-
optional :name, :string, 1
|
66
|
-
optional :create_time, :message, 2, "google.protobuf.Timestamp"
|
67
|
-
optional :update_time, :message, 3, "google.protobuf.Timestamp"
|
68
|
-
map :labels, :string, :string, 4
|
69
|
-
optional :display_name, :string, 5
|
70
|
-
optional :api_config, :string, 6
|
71
|
-
optional :state, :enum, 7, "google.cloud.apigateway.v1.Gateway.State"
|
72
|
-
optional :default_hostname, :string, 9
|
73
|
-
end
|
74
|
-
add_enum "google.cloud.apigateway.v1.Gateway.State" do
|
75
|
-
value :STATE_UNSPECIFIED, 0
|
76
|
-
value :CREATING, 1
|
77
|
-
value :ACTIVE, 2
|
78
|
-
value :FAILED, 3
|
79
|
-
value :DELETING, 4
|
80
|
-
value :UPDATING, 5
|
81
|
-
end
|
82
|
-
add_message "google.cloud.apigateway.v1.ListGatewaysRequest" do
|
83
|
-
optional :parent, :string, 1
|
84
|
-
optional :page_size, :int32, 2
|
85
|
-
optional :page_token, :string, 3
|
86
|
-
optional :filter, :string, 4
|
87
|
-
optional :order_by, :string, 5
|
88
|
-
end
|
89
|
-
add_message "google.cloud.apigateway.v1.ListGatewaysResponse" do
|
90
|
-
repeated :gateways, :message, 1, "google.cloud.apigateway.v1.Gateway"
|
91
|
-
optional :next_page_token, :string, 2
|
92
|
-
repeated :unreachable_locations, :string, 3
|
93
|
-
end
|
94
|
-
add_message "google.cloud.apigateway.v1.GetGatewayRequest" do
|
95
|
-
optional :name, :string, 1
|
96
|
-
end
|
97
|
-
add_message "google.cloud.apigateway.v1.CreateGatewayRequest" do
|
98
|
-
optional :parent, :string, 1
|
99
|
-
optional :gateway_id, :string, 2
|
100
|
-
optional :gateway, :message, 3, "google.cloud.apigateway.v1.Gateway"
|
101
|
-
end
|
102
|
-
add_message "google.cloud.apigateway.v1.UpdateGatewayRequest" do
|
103
|
-
optional :update_mask, :message, 1, "google.protobuf.FieldMask"
|
104
|
-
optional :gateway, :message, 2, "google.cloud.apigateway.v1.Gateway"
|
105
|
-
end
|
106
|
-
add_message "google.cloud.apigateway.v1.DeleteGatewayRequest" do
|
107
|
-
optional :name, :string, 1
|
108
|
-
end
|
109
|
-
add_message "google.cloud.apigateway.v1.ListApisRequest" do
|
110
|
-
optional :parent, :string, 1
|
111
|
-
optional :page_size, :int32, 2
|
112
|
-
optional :page_token, :string, 3
|
113
|
-
optional :filter, :string, 4
|
114
|
-
optional :order_by, :string, 5
|
115
|
-
end
|
116
|
-
add_message "google.cloud.apigateway.v1.ListApisResponse" do
|
117
|
-
repeated :apis, :message, 1, "google.cloud.apigateway.v1.Api"
|
118
|
-
optional :next_page_token, :string, 2
|
119
|
-
repeated :unreachable_locations, :string, 3
|
120
|
-
end
|
121
|
-
add_message "google.cloud.apigateway.v1.GetApiRequest" do
|
122
|
-
optional :name, :string, 1
|
123
|
-
end
|
124
|
-
add_message "google.cloud.apigateway.v1.CreateApiRequest" do
|
125
|
-
optional :parent, :string, 1
|
126
|
-
optional :api_id, :string, 2
|
127
|
-
optional :api, :message, 3, "google.cloud.apigateway.v1.Api"
|
128
|
-
end
|
129
|
-
add_message "google.cloud.apigateway.v1.UpdateApiRequest" do
|
130
|
-
optional :update_mask, :message, 1, "google.protobuf.FieldMask"
|
131
|
-
optional :api, :message, 2, "google.cloud.apigateway.v1.Api"
|
132
|
-
end
|
133
|
-
add_message "google.cloud.apigateway.v1.DeleteApiRequest" do
|
134
|
-
optional :name, :string, 1
|
135
|
-
end
|
136
|
-
add_message "google.cloud.apigateway.v1.ListApiConfigsRequest" do
|
137
|
-
optional :parent, :string, 1
|
138
|
-
optional :page_size, :int32, 2
|
139
|
-
optional :page_token, :string, 3
|
140
|
-
optional :filter, :string, 4
|
141
|
-
optional :order_by, :string, 5
|
142
|
-
end
|
143
|
-
add_message "google.cloud.apigateway.v1.ListApiConfigsResponse" do
|
144
|
-
repeated :api_configs, :message, 1, "google.cloud.apigateway.v1.ApiConfig"
|
145
|
-
optional :next_page_token, :string, 2
|
146
|
-
repeated :unreachable_locations, :string, 3
|
147
|
-
end
|
148
|
-
add_message "google.cloud.apigateway.v1.GetApiConfigRequest" do
|
149
|
-
optional :name, :string, 1
|
150
|
-
optional :view, :enum, 3, "google.cloud.apigateway.v1.GetApiConfigRequest.ConfigView"
|
151
|
-
end
|
152
|
-
add_enum "google.cloud.apigateway.v1.GetApiConfigRequest.ConfigView" do
|
153
|
-
value :CONFIG_VIEW_UNSPECIFIED, 0
|
154
|
-
value :BASIC, 1
|
155
|
-
value :FULL, 2
|
156
|
-
end
|
157
|
-
add_message "google.cloud.apigateway.v1.CreateApiConfigRequest" do
|
158
|
-
optional :parent, :string, 1
|
159
|
-
optional :api_config_id, :string, 2
|
160
|
-
optional :api_config, :message, 3, "google.cloud.apigateway.v1.ApiConfig"
|
161
|
-
end
|
162
|
-
add_message "google.cloud.apigateway.v1.UpdateApiConfigRequest" do
|
163
|
-
optional :update_mask, :message, 1, "google.protobuf.FieldMask"
|
164
|
-
optional :api_config, :message, 2, "google.cloud.apigateway.v1.ApiConfig"
|
165
|
-
end
|
166
|
-
add_message "google.cloud.apigateway.v1.DeleteApiConfigRequest" do
|
167
|
-
optional :name, :string, 1
|
168
|
-
end
|
169
|
-
add_message "google.cloud.apigateway.v1.OperationMetadata" do
|
170
|
-
optional :create_time, :message, 1, "google.protobuf.Timestamp"
|
171
|
-
optional :end_time, :message, 2, "google.protobuf.Timestamp"
|
172
|
-
optional :target, :string, 3
|
173
|
-
optional :verb, :string, 4
|
174
|
-
optional :status_message, :string, 5
|
175
|
-
optional :requested_cancellation, :bool, 6
|
176
|
-
optional :api_version, :string, 7
|
177
|
-
repeated :diagnostics, :message, 8, "google.cloud.apigateway.v1.OperationMetadata.Diagnostic"
|
178
|
-
end
|
179
|
-
add_message "google.cloud.apigateway.v1.OperationMetadata.Diagnostic" do
|
180
|
-
optional :location, :string, 1
|
181
|
-
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}"
|
182
35
|
end
|
183
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."
|
184
39
|
end
|
185
40
|
|
186
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
|