google-apis-apigateway_v1 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,28 @@
1
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ module Google
16
+ module Apis
17
+ module ApigatewayV1
18
+ # Version of the google-apis-apigateway_v1 gem
19
+ GEM_VERSION = "0.1.0"
20
+
21
+ # Version of the code generator used to generate this client
22
+ GENERATOR_VERSION = "0.1.1"
23
+
24
+ # Revision of the discovery document this client was generated from
25
+ REVISION = "20201211"
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,442 @@
1
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'date'
16
+ require 'google/apis/core/base_service'
17
+ require 'google/apis/core/json_representation'
18
+ require 'google/apis/core/hashable'
19
+ require 'google/apis/errors'
20
+
21
+ module Google
22
+ module Apis
23
+ module ApigatewayV1
24
+
25
+ class ApigatewayApi
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
31
+ class ApigatewayApiConfig
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
37
+ class ApigatewayApiConfigFile
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
43
+ class ApigatewayApiConfigGrpcServiceDefinition
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
49
+ class ApigatewayApiConfigOpenApiDocument
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
55
+ class ApigatewayAuditConfig
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
61
+ class ApigatewayAuditLogConfig
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
67
+ class ApigatewayBinding
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
73
+ class ApigatewayCancelOperationRequest
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
77
+ end
78
+
79
+ class ApigatewayExpr
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
85
+ class ApigatewayGateway
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
91
+ class ApigatewayListApiConfigsResponse
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
97
+ class ApigatewayListApisResponse
98
+ class Representation < Google::Apis::Core::JsonRepresentation; end
99
+
100
+ include Google::Apis::Core::JsonObjectSupport
101
+ end
102
+
103
+ class ApigatewayListGatewaysResponse
104
+ class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
107
+ end
108
+
109
+ class ApigatewayListLocationsResponse
110
+ class Representation < Google::Apis::Core::JsonRepresentation; end
111
+
112
+ include Google::Apis::Core::JsonObjectSupport
113
+ end
114
+
115
+ class ApigatewayListOperationsResponse
116
+ class Representation < Google::Apis::Core::JsonRepresentation; end
117
+
118
+ include Google::Apis::Core::JsonObjectSupport
119
+ end
120
+
121
+ class ApigatewayLocation
122
+ class Representation < Google::Apis::Core::JsonRepresentation; end
123
+
124
+ include Google::Apis::Core::JsonObjectSupport
125
+ end
126
+
127
+ class ApigatewayOperation
128
+ class Representation < Google::Apis::Core::JsonRepresentation; end
129
+
130
+ include Google::Apis::Core::JsonObjectSupport
131
+ end
132
+
133
+ class ApigatewayOperationMetadata
134
+ class Representation < Google::Apis::Core::JsonRepresentation; end
135
+
136
+ include Google::Apis::Core::JsonObjectSupport
137
+ end
138
+
139
+ class ApigatewayOperationMetadataDiagnostic
140
+ class Representation < Google::Apis::Core::JsonRepresentation; end
141
+
142
+ include Google::Apis::Core::JsonObjectSupport
143
+ end
144
+
145
+ class ApigatewayPolicy
146
+ class Representation < Google::Apis::Core::JsonRepresentation; end
147
+
148
+ include Google::Apis::Core::JsonObjectSupport
149
+ end
150
+
151
+ class ApigatewaySetIamPolicyRequest
152
+ class Representation < Google::Apis::Core::JsonRepresentation; end
153
+
154
+ include Google::Apis::Core::JsonObjectSupport
155
+ end
156
+
157
+ class ApigatewayStatus
158
+ class Representation < Google::Apis::Core::JsonRepresentation; end
159
+
160
+ include Google::Apis::Core::JsonObjectSupport
161
+ end
162
+
163
+ class ApigatewayTestIamPermissionsRequest
164
+ class Representation < Google::Apis::Core::JsonRepresentation; end
165
+
166
+ include Google::Apis::Core::JsonObjectSupport
167
+ end
168
+
169
+ class ApigatewayTestIamPermissionsResponse
170
+ class Representation < Google::Apis::Core::JsonRepresentation; end
171
+
172
+ include Google::Apis::Core::JsonObjectSupport
173
+ end
174
+
175
+ class Empty
176
+ class Representation < Google::Apis::Core::JsonRepresentation; end
177
+
178
+ include Google::Apis::Core::JsonObjectSupport
179
+ end
180
+
181
+ class ApigatewayApi
182
+ # @private
183
+ class Representation < Google::Apis::Core::JsonRepresentation
184
+ property :create_time, as: 'createTime'
185
+ property :display_name, as: 'displayName'
186
+ hash :labels, as: 'labels'
187
+ property :managed_service, as: 'managedService'
188
+ property :name, as: 'name'
189
+ property :state, as: 'state'
190
+ property :update_time, as: 'updateTime'
191
+ end
192
+ end
193
+
194
+ class ApigatewayApiConfig
195
+ # @private
196
+ class Representation < Google::Apis::Core::JsonRepresentation
197
+ property :create_time, as: 'createTime'
198
+ property :display_name, as: 'displayName'
199
+ property :gateway_service_account, as: 'gatewayServiceAccount'
200
+ collection :grpc_services, as: 'grpcServices', class: Google::Apis::ApigatewayV1::ApigatewayApiConfigGrpcServiceDefinition, decorator: Google::Apis::ApigatewayV1::ApigatewayApiConfigGrpcServiceDefinition::Representation
201
+
202
+ hash :labels, as: 'labels'
203
+ collection :managed_service_configs, as: 'managedServiceConfigs', class: Google::Apis::ApigatewayV1::ApigatewayApiConfigFile, decorator: Google::Apis::ApigatewayV1::ApigatewayApiConfigFile::Representation
204
+
205
+ property :name, as: 'name'
206
+ collection :openapi_documents, as: 'openapiDocuments', class: Google::Apis::ApigatewayV1::ApigatewayApiConfigOpenApiDocument, decorator: Google::Apis::ApigatewayV1::ApigatewayApiConfigOpenApiDocument::Representation
207
+
208
+ property :service_config_id, as: 'serviceConfigId'
209
+ property :state, as: 'state'
210
+ property :update_time, as: 'updateTime'
211
+ end
212
+ end
213
+
214
+ class ApigatewayApiConfigFile
215
+ # @private
216
+ class Representation < Google::Apis::Core::JsonRepresentation
217
+ property :contents, :base64 => true, as: 'contents'
218
+ property :path, as: 'path'
219
+ end
220
+ end
221
+
222
+ class ApigatewayApiConfigGrpcServiceDefinition
223
+ # @private
224
+ class Representation < Google::Apis::Core::JsonRepresentation
225
+ property :file_descriptor_set, as: 'fileDescriptorSet', class: Google::Apis::ApigatewayV1::ApigatewayApiConfigFile, decorator: Google::Apis::ApigatewayV1::ApigatewayApiConfigFile::Representation
226
+
227
+ collection :source, as: 'source', class: Google::Apis::ApigatewayV1::ApigatewayApiConfigFile, decorator: Google::Apis::ApigatewayV1::ApigatewayApiConfigFile::Representation
228
+
229
+ end
230
+ end
231
+
232
+ class ApigatewayApiConfigOpenApiDocument
233
+ # @private
234
+ class Representation < Google::Apis::Core::JsonRepresentation
235
+ property :document, as: 'document', class: Google::Apis::ApigatewayV1::ApigatewayApiConfigFile, decorator: Google::Apis::ApigatewayV1::ApigatewayApiConfigFile::Representation
236
+
237
+ end
238
+ end
239
+
240
+ class ApigatewayAuditConfig
241
+ # @private
242
+ class Representation < Google::Apis::Core::JsonRepresentation
243
+ collection :audit_log_configs, as: 'auditLogConfigs', class: Google::Apis::ApigatewayV1::ApigatewayAuditLogConfig, decorator: Google::Apis::ApigatewayV1::ApigatewayAuditLogConfig::Representation
244
+
245
+ property :service, as: 'service'
246
+ end
247
+ end
248
+
249
+ class ApigatewayAuditLogConfig
250
+ # @private
251
+ class Representation < Google::Apis::Core::JsonRepresentation
252
+ collection :exempted_members, as: 'exemptedMembers'
253
+ property :log_type, as: 'logType'
254
+ end
255
+ end
256
+
257
+ class ApigatewayBinding
258
+ # @private
259
+ class Representation < Google::Apis::Core::JsonRepresentation
260
+ property :condition, as: 'condition', class: Google::Apis::ApigatewayV1::ApigatewayExpr, decorator: Google::Apis::ApigatewayV1::ApigatewayExpr::Representation
261
+
262
+ collection :members, as: 'members'
263
+ property :role, as: 'role'
264
+ end
265
+ end
266
+
267
+ class ApigatewayCancelOperationRequest
268
+ # @private
269
+ class Representation < Google::Apis::Core::JsonRepresentation
270
+ end
271
+ end
272
+
273
+ class ApigatewayExpr
274
+ # @private
275
+ class Representation < Google::Apis::Core::JsonRepresentation
276
+ property :description, as: 'description'
277
+ property :expression, as: 'expression'
278
+ property :location, as: 'location'
279
+ property :title, as: 'title'
280
+ end
281
+ end
282
+
283
+ class ApigatewayGateway
284
+ # @private
285
+ class Representation < Google::Apis::Core::JsonRepresentation
286
+ property :api_config, as: 'apiConfig'
287
+ property :create_time, as: 'createTime'
288
+ property :default_hostname, as: 'defaultHostname'
289
+ property :display_name, as: 'displayName'
290
+ hash :labels, as: 'labels'
291
+ property :name, as: 'name'
292
+ property :state, as: 'state'
293
+ property :update_time, as: 'updateTime'
294
+ end
295
+ end
296
+
297
+ class ApigatewayListApiConfigsResponse
298
+ # @private
299
+ class Representation < Google::Apis::Core::JsonRepresentation
300
+ collection :api_configs, as: 'apiConfigs', class: Google::Apis::ApigatewayV1::ApigatewayApiConfig, decorator: Google::Apis::ApigatewayV1::ApigatewayApiConfig::Representation
301
+
302
+ property :next_page_token, as: 'nextPageToken'
303
+ collection :unreachable_locations, as: 'unreachableLocations'
304
+ end
305
+ end
306
+
307
+ class ApigatewayListApisResponse
308
+ # @private
309
+ class Representation < Google::Apis::Core::JsonRepresentation
310
+ collection :apis, as: 'apis', class: Google::Apis::ApigatewayV1::ApigatewayApi, decorator: Google::Apis::ApigatewayV1::ApigatewayApi::Representation
311
+
312
+ property :next_page_token, as: 'nextPageToken'
313
+ collection :unreachable_locations, as: 'unreachableLocations'
314
+ end
315
+ end
316
+
317
+ class ApigatewayListGatewaysResponse
318
+ # @private
319
+ class Representation < Google::Apis::Core::JsonRepresentation
320
+ collection :gateways, as: 'gateways', class: Google::Apis::ApigatewayV1::ApigatewayGateway, decorator: Google::Apis::ApigatewayV1::ApigatewayGateway::Representation
321
+
322
+ property :next_page_token, as: 'nextPageToken'
323
+ collection :unreachable_locations, as: 'unreachableLocations'
324
+ end
325
+ end
326
+
327
+ class ApigatewayListLocationsResponse
328
+ # @private
329
+ class Representation < Google::Apis::Core::JsonRepresentation
330
+ collection :locations, as: 'locations', class: Google::Apis::ApigatewayV1::ApigatewayLocation, decorator: Google::Apis::ApigatewayV1::ApigatewayLocation::Representation
331
+
332
+ property :next_page_token, as: 'nextPageToken'
333
+ end
334
+ end
335
+
336
+ class ApigatewayListOperationsResponse
337
+ # @private
338
+ class Representation < Google::Apis::Core::JsonRepresentation
339
+ property :next_page_token, as: 'nextPageToken'
340
+ collection :operations, as: 'operations', class: Google::Apis::ApigatewayV1::ApigatewayOperation, decorator: Google::Apis::ApigatewayV1::ApigatewayOperation::Representation
341
+
342
+ end
343
+ end
344
+
345
+ class ApigatewayLocation
346
+ # @private
347
+ class Representation < Google::Apis::Core::JsonRepresentation
348
+ property :display_name, as: 'displayName'
349
+ hash :labels, as: 'labels'
350
+ property :location_id, as: 'locationId'
351
+ hash :metadata, as: 'metadata'
352
+ property :name, as: 'name'
353
+ end
354
+ end
355
+
356
+ class ApigatewayOperation
357
+ # @private
358
+ class Representation < Google::Apis::Core::JsonRepresentation
359
+ property :done, as: 'done'
360
+ property :error, as: 'error', class: Google::Apis::ApigatewayV1::ApigatewayStatus, decorator: Google::Apis::ApigatewayV1::ApigatewayStatus::Representation
361
+
362
+ hash :metadata, as: 'metadata'
363
+ property :name, as: 'name'
364
+ hash :response, as: 'response'
365
+ end
366
+ end
367
+
368
+ class ApigatewayOperationMetadata
369
+ # @private
370
+ class Representation < Google::Apis::Core::JsonRepresentation
371
+ property :api_version, as: 'apiVersion'
372
+ property :create_time, as: 'createTime'
373
+ collection :diagnostics, as: 'diagnostics', class: Google::Apis::ApigatewayV1::ApigatewayOperationMetadataDiagnostic, decorator: Google::Apis::ApigatewayV1::ApigatewayOperationMetadataDiagnostic::Representation
374
+
375
+ property :end_time, as: 'endTime'
376
+ property :requested_cancellation, as: 'requestedCancellation'
377
+ property :status_message, as: 'statusMessage'
378
+ property :target, as: 'target'
379
+ property :verb, as: 'verb'
380
+ end
381
+ end
382
+
383
+ class ApigatewayOperationMetadataDiagnostic
384
+ # @private
385
+ class Representation < Google::Apis::Core::JsonRepresentation
386
+ property :location, as: 'location'
387
+ property :message, as: 'message'
388
+ end
389
+ end
390
+
391
+ class ApigatewayPolicy
392
+ # @private
393
+ class Representation < Google::Apis::Core::JsonRepresentation
394
+ collection :audit_configs, as: 'auditConfigs', class: Google::Apis::ApigatewayV1::ApigatewayAuditConfig, decorator: Google::Apis::ApigatewayV1::ApigatewayAuditConfig::Representation
395
+
396
+ collection :bindings, as: 'bindings', class: Google::Apis::ApigatewayV1::ApigatewayBinding, decorator: Google::Apis::ApigatewayV1::ApigatewayBinding::Representation
397
+
398
+ property :etag, :base64 => true, as: 'etag'
399
+ property :version, as: 'version'
400
+ end
401
+ end
402
+
403
+ class ApigatewaySetIamPolicyRequest
404
+ # @private
405
+ class Representation < Google::Apis::Core::JsonRepresentation
406
+ property :policy, as: 'policy', class: Google::Apis::ApigatewayV1::ApigatewayPolicy, decorator: Google::Apis::ApigatewayV1::ApigatewayPolicy::Representation
407
+
408
+ property :update_mask, as: 'updateMask'
409
+ end
410
+ end
411
+
412
+ class ApigatewayStatus
413
+ # @private
414
+ class Representation < Google::Apis::Core::JsonRepresentation
415
+ property :code, as: 'code'
416
+ collection :details, as: 'details'
417
+ property :message, as: 'message'
418
+ end
419
+ end
420
+
421
+ class ApigatewayTestIamPermissionsRequest
422
+ # @private
423
+ class Representation < Google::Apis::Core::JsonRepresentation
424
+ collection :permissions, as: 'permissions'
425
+ end
426
+ end
427
+
428
+ class ApigatewayTestIamPermissionsResponse
429
+ # @private
430
+ class Representation < Google::Apis::Core::JsonRepresentation
431
+ collection :permissions, as: 'permissions'
432
+ end
433
+ end
434
+
435
+ class Empty
436
+ # @private
437
+ class Representation < Google::Apis::Core::JsonRepresentation
438
+ end
439
+ end
440
+ end
441
+ end
442
+ end