google-apis-apigeeregistry_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 ApigeeregistryV1
18
+ # Version of the google-apis-apigeeregistry_v1 gem
19
+ GEM_VERSION = "0.1.0"
20
+
21
+ # Version of the code generator used to generate this client
22
+ GENERATOR_VERSION = "0.4.1"
23
+
24
+ # Revision of the discovery document this client was generated from
25
+ REVISION = "20220416"
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,555 @@
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 ApigeeregistryV1
24
+
25
+ class Api
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
31
+ class ApiDeployment
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
37
+ class ApiSpec
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
43
+ class ApiVersion
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
49
+ class Artifact
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
55
+ class Binding
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
61
+ class CancelOperationRequest
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
67
+ class Config
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
73
+ class Empty
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
77
+ end
78
+
79
+ class Expr
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
85
+ class HttpBody
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
91
+ class Instance
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
97
+ class ListApiDeploymentRevisionsResponse
98
+ class Representation < Google::Apis::Core::JsonRepresentation; end
99
+
100
+ include Google::Apis::Core::JsonObjectSupport
101
+ end
102
+
103
+ class ListApiDeploymentsResponse
104
+ class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
107
+ end
108
+
109
+ class ListApiSpecRevisionsResponse
110
+ class Representation < Google::Apis::Core::JsonRepresentation; end
111
+
112
+ include Google::Apis::Core::JsonObjectSupport
113
+ end
114
+
115
+ class ListApiSpecsResponse
116
+ class Representation < Google::Apis::Core::JsonRepresentation; end
117
+
118
+ include Google::Apis::Core::JsonObjectSupport
119
+ end
120
+
121
+ class ListApiVersionsResponse
122
+ class Representation < Google::Apis::Core::JsonRepresentation; end
123
+
124
+ include Google::Apis::Core::JsonObjectSupport
125
+ end
126
+
127
+ class ListApisResponse
128
+ class Representation < Google::Apis::Core::JsonRepresentation; end
129
+
130
+ include Google::Apis::Core::JsonObjectSupport
131
+ end
132
+
133
+ class ListArtifactsResponse
134
+ class Representation < Google::Apis::Core::JsonRepresentation; end
135
+
136
+ include Google::Apis::Core::JsonObjectSupport
137
+ end
138
+
139
+ class ListLocationsResponse
140
+ class Representation < Google::Apis::Core::JsonRepresentation; end
141
+
142
+ include Google::Apis::Core::JsonObjectSupport
143
+ end
144
+
145
+ class ListOperationsResponse
146
+ class Representation < Google::Apis::Core::JsonRepresentation; end
147
+
148
+ include Google::Apis::Core::JsonObjectSupport
149
+ end
150
+
151
+ class Location
152
+ class Representation < Google::Apis::Core::JsonRepresentation; end
153
+
154
+ include Google::Apis::Core::JsonObjectSupport
155
+ end
156
+
157
+ class Operation
158
+ class Representation < Google::Apis::Core::JsonRepresentation; end
159
+
160
+ include Google::Apis::Core::JsonObjectSupport
161
+ end
162
+
163
+ class OperationMetadata
164
+ class Representation < Google::Apis::Core::JsonRepresentation; end
165
+
166
+ include Google::Apis::Core::JsonObjectSupport
167
+ end
168
+
169
+ class Policy
170
+ class Representation < Google::Apis::Core::JsonRepresentation; end
171
+
172
+ include Google::Apis::Core::JsonObjectSupport
173
+ end
174
+
175
+ class RollbackApiDeploymentRequest
176
+ class Representation < Google::Apis::Core::JsonRepresentation; end
177
+
178
+ include Google::Apis::Core::JsonObjectSupport
179
+ end
180
+
181
+ class RollbackApiSpecRequest
182
+ class Representation < Google::Apis::Core::JsonRepresentation; end
183
+
184
+ include Google::Apis::Core::JsonObjectSupport
185
+ end
186
+
187
+ class SetIamPolicyRequest
188
+ class Representation < Google::Apis::Core::JsonRepresentation; end
189
+
190
+ include Google::Apis::Core::JsonObjectSupport
191
+ end
192
+
193
+ class Status
194
+ class Representation < Google::Apis::Core::JsonRepresentation; end
195
+
196
+ include Google::Apis::Core::JsonObjectSupport
197
+ end
198
+
199
+ class TagApiDeploymentRevisionRequest
200
+ class Representation < Google::Apis::Core::JsonRepresentation; end
201
+
202
+ include Google::Apis::Core::JsonObjectSupport
203
+ end
204
+
205
+ class TagApiSpecRevisionRequest
206
+ class Representation < Google::Apis::Core::JsonRepresentation; end
207
+
208
+ include Google::Apis::Core::JsonObjectSupport
209
+ end
210
+
211
+ class TestIamPermissionsRequest
212
+ class Representation < Google::Apis::Core::JsonRepresentation; end
213
+
214
+ include Google::Apis::Core::JsonObjectSupport
215
+ end
216
+
217
+ class TestIamPermissionsResponse
218
+ class Representation < Google::Apis::Core::JsonRepresentation; end
219
+
220
+ include Google::Apis::Core::JsonObjectSupport
221
+ end
222
+
223
+ class Api
224
+ # @private
225
+ class Representation < Google::Apis::Core::JsonRepresentation
226
+ hash :annotations, as: 'annotations'
227
+ property :availability, as: 'availability'
228
+ property :create_time, as: 'createTime'
229
+ property :description, as: 'description'
230
+ property :display_name, as: 'displayName'
231
+ hash :labels, as: 'labels'
232
+ property :name, as: 'name'
233
+ property :recommended_deployment, as: 'recommendedDeployment'
234
+ property :recommended_version, as: 'recommendedVersion'
235
+ property :update_time, as: 'updateTime'
236
+ end
237
+ end
238
+
239
+ class ApiDeployment
240
+ # @private
241
+ class Representation < Google::Apis::Core::JsonRepresentation
242
+ property :access_guidance, as: 'accessGuidance'
243
+ hash :annotations, as: 'annotations'
244
+ property :api_spec_revision, as: 'apiSpecRevision'
245
+ property :create_time, as: 'createTime'
246
+ property :description, as: 'description'
247
+ property :display_name, as: 'displayName'
248
+ property :endpoint_uri, as: 'endpointUri'
249
+ property :external_channel_uri, as: 'externalChannelUri'
250
+ property :intended_audience, as: 'intendedAudience'
251
+ hash :labels, as: 'labels'
252
+ property :name, as: 'name'
253
+ property :revision_create_time, as: 'revisionCreateTime'
254
+ property :revision_id, as: 'revisionId'
255
+ property :revision_update_time, as: 'revisionUpdateTime'
256
+ end
257
+ end
258
+
259
+ class ApiSpec
260
+ # @private
261
+ class Representation < Google::Apis::Core::JsonRepresentation
262
+ hash :annotations, as: 'annotations'
263
+ property :contents, :base64 => true, as: 'contents'
264
+ property :create_time, as: 'createTime'
265
+ property :description, as: 'description'
266
+ property :filename, as: 'filename'
267
+ property :hash_prop, as: 'hash'
268
+ hash :labels, as: 'labels'
269
+ property :mime_type, as: 'mimeType'
270
+ property :name, as: 'name'
271
+ property :revision_create_time, as: 'revisionCreateTime'
272
+ property :revision_id, as: 'revisionId'
273
+ property :revision_update_time, as: 'revisionUpdateTime'
274
+ property :size_bytes, as: 'sizeBytes'
275
+ property :source_uri, as: 'sourceUri'
276
+ end
277
+ end
278
+
279
+ class ApiVersion
280
+ # @private
281
+ class Representation < Google::Apis::Core::JsonRepresentation
282
+ hash :annotations, as: 'annotations'
283
+ property :create_time, as: 'createTime'
284
+ property :description, as: 'description'
285
+ property :display_name, as: 'displayName'
286
+ hash :labels, as: 'labels'
287
+ property :name, as: 'name'
288
+ property :state, as: 'state'
289
+ property :update_time, as: 'updateTime'
290
+ end
291
+ end
292
+
293
+ class Artifact
294
+ # @private
295
+ class Representation < Google::Apis::Core::JsonRepresentation
296
+ property :contents, :base64 => true, as: 'contents'
297
+ property :create_time, as: 'createTime'
298
+ property :hash_prop, as: 'hash'
299
+ property :mime_type, as: 'mimeType'
300
+ property :name, as: 'name'
301
+ property :size_bytes, as: 'sizeBytes'
302
+ property :update_time, as: 'updateTime'
303
+ end
304
+ end
305
+
306
+ class Binding
307
+ # @private
308
+ class Representation < Google::Apis::Core::JsonRepresentation
309
+ property :condition, as: 'condition', class: Google::Apis::ApigeeregistryV1::Expr, decorator: Google::Apis::ApigeeregistryV1::Expr::Representation
310
+
311
+ collection :members, as: 'members'
312
+ property :role, as: 'role'
313
+ end
314
+ end
315
+
316
+ class CancelOperationRequest
317
+ # @private
318
+ class Representation < Google::Apis::Core::JsonRepresentation
319
+ end
320
+ end
321
+
322
+ class Config
323
+ # @private
324
+ class Representation < Google::Apis::Core::JsonRepresentation
325
+ property :cmek_key_name, as: 'cmekKeyName'
326
+ property :location, as: 'location'
327
+ end
328
+ end
329
+
330
+ class Empty
331
+ # @private
332
+ class Representation < Google::Apis::Core::JsonRepresentation
333
+ end
334
+ end
335
+
336
+ class Expr
337
+ # @private
338
+ class Representation < Google::Apis::Core::JsonRepresentation
339
+ property :description, as: 'description'
340
+ property :expression, as: 'expression'
341
+ property :location, as: 'location'
342
+ property :title, as: 'title'
343
+ end
344
+ end
345
+
346
+ class HttpBody
347
+ # @private
348
+ class Representation < Google::Apis::Core::JsonRepresentation
349
+ property :content_type, as: 'contentType'
350
+ property :data, :base64 => true, as: 'data'
351
+ collection :extensions, as: 'extensions'
352
+ end
353
+ end
354
+
355
+ class Instance
356
+ # @private
357
+ class Representation < Google::Apis::Core::JsonRepresentation
358
+ property :config, as: 'config', class: Google::Apis::ApigeeregistryV1::Config, decorator: Google::Apis::ApigeeregistryV1::Config::Representation
359
+
360
+ property :create_time, as: 'createTime'
361
+ property :name, as: 'name'
362
+ property :state, as: 'state'
363
+ property :state_message, as: 'stateMessage'
364
+ property :update_time, as: 'updateTime'
365
+ end
366
+ end
367
+
368
+ class ListApiDeploymentRevisionsResponse
369
+ # @private
370
+ class Representation < Google::Apis::Core::JsonRepresentation
371
+ collection :api_deployments, as: 'apiDeployments', class: Google::Apis::ApigeeregistryV1::ApiDeployment, decorator: Google::Apis::ApigeeregistryV1::ApiDeployment::Representation
372
+
373
+ property :next_page_token, as: 'nextPageToken'
374
+ end
375
+ end
376
+
377
+ class ListApiDeploymentsResponse
378
+ # @private
379
+ class Representation < Google::Apis::Core::JsonRepresentation
380
+ collection :api_deployments, as: 'apiDeployments', class: Google::Apis::ApigeeregistryV1::ApiDeployment, decorator: Google::Apis::ApigeeregistryV1::ApiDeployment::Representation
381
+
382
+ property :next_page_token, as: 'nextPageToken'
383
+ end
384
+ end
385
+
386
+ class ListApiSpecRevisionsResponse
387
+ # @private
388
+ class Representation < Google::Apis::Core::JsonRepresentation
389
+ collection :api_specs, as: 'apiSpecs', class: Google::Apis::ApigeeregistryV1::ApiSpec, decorator: Google::Apis::ApigeeregistryV1::ApiSpec::Representation
390
+
391
+ property :next_page_token, as: 'nextPageToken'
392
+ end
393
+ end
394
+
395
+ class ListApiSpecsResponse
396
+ # @private
397
+ class Representation < Google::Apis::Core::JsonRepresentation
398
+ collection :api_specs, as: 'apiSpecs', class: Google::Apis::ApigeeregistryV1::ApiSpec, decorator: Google::Apis::ApigeeregistryV1::ApiSpec::Representation
399
+
400
+ property :next_page_token, as: 'nextPageToken'
401
+ end
402
+ end
403
+
404
+ class ListApiVersionsResponse
405
+ # @private
406
+ class Representation < Google::Apis::Core::JsonRepresentation
407
+ collection :api_versions, as: 'apiVersions', class: Google::Apis::ApigeeregistryV1::ApiVersion, decorator: Google::Apis::ApigeeregistryV1::ApiVersion::Representation
408
+
409
+ property :next_page_token, as: 'nextPageToken'
410
+ end
411
+ end
412
+
413
+ class ListApisResponse
414
+ # @private
415
+ class Representation < Google::Apis::Core::JsonRepresentation
416
+ collection :apis, as: 'apis', class: Google::Apis::ApigeeregistryV1::Api, decorator: Google::Apis::ApigeeregistryV1::Api::Representation
417
+
418
+ property :next_page_token, as: 'nextPageToken'
419
+ end
420
+ end
421
+
422
+ class ListArtifactsResponse
423
+ # @private
424
+ class Representation < Google::Apis::Core::JsonRepresentation
425
+ collection :artifacts, as: 'artifacts', class: Google::Apis::ApigeeregistryV1::Artifact, decorator: Google::Apis::ApigeeregistryV1::Artifact::Representation
426
+
427
+ property :next_page_token, as: 'nextPageToken'
428
+ end
429
+ end
430
+
431
+ class ListLocationsResponse
432
+ # @private
433
+ class Representation < Google::Apis::Core::JsonRepresentation
434
+ collection :locations, as: 'locations', class: Google::Apis::ApigeeregistryV1::Location, decorator: Google::Apis::ApigeeregistryV1::Location::Representation
435
+
436
+ property :next_page_token, as: 'nextPageToken'
437
+ end
438
+ end
439
+
440
+ class ListOperationsResponse
441
+ # @private
442
+ class Representation < Google::Apis::Core::JsonRepresentation
443
+ property :next_page_token, as: 'nextPageToken'
444
+ collection :operations, as: 'operations', class: Google::Apis::ApigeeregistryV1::Operation, decorator: Google::Apis::ApigeeregistryV1::Operation::Representation
445
+
446
+ end
447
+ end
448
+
449
+ class Location
450
+ # @private
451
+ class Representation < Google::Apis::Core::JsonRepresentation
452
+ property :display_name, as: 'displayName'
453
+ hash :labels, as: 'labels'
454
+ property :location_id, as: 'locationId'
455
+ hash :metadata, as: 'metadata'
456
+ property :name, as: 'name'
457
+ end
458
+ end
459
+
460
+ class Operation
461
+ # @private
462
+ class Representation < Google::Apis::Core::JsonRepresentation
463
+ property :done, as: 'done'
464
+ property :error, as: 'error', class: Google::Apis::ApigeeregistryV1::Status, decorator: Google::Apis::ApigeeregistryV1::Status::Representation
465
+
466
+ hash :metadata, as: 'metadata'
467
+ property :name, as: 'name'
468
+ hash :response, as: 'response'
469
+ end
470
+ end
471
+
472
+ class OperationMetadata
473
+ # @private
474
+ class Representation < Google::Apis::Core::JsonRepresentation
475
+ property :api_version, as: 'apiVersion'
476
+ property :cancellation_requested, as: 'cancellationRequested'
477
+ property :create_time, as: 'createTime'
478
+ property :end_time, as: 'endTime'
479
+ property :status_message, as: 'statusMessage'
480
+ property :target, as: 'target'
481
+ property :verb, as: 'verb'
482
+ end
483
+ end
484
+
485
+ class Policy
486
+ # @private
487
+ class Representation < Google::Apis::Core::JsonRepresentation
488
+ collection :bindings, as: 'bindings', class: Google::Apis::ApigeeregistryV1::Binding, decorator: Google::Apis::ApigeeregistryV1::Binding::Representation
489
+
490
+ property :etag, :base64 => true, as: 'etag'
491
+ property :version, as: 'version'
492
+ end
493
+ end
494
+
495
+ class RollbackApiDeploymentRequest
496
+ # @private
497
+ class Representation < Google::Apis::Core::JsonRepresentation
498
+ property :revision_id, as: 'revisionId'
499
+ end
500
+ end
501
+
502
+ class RollbackApiSpecRequest
503
+ # @private
504
+ class Representation < Google::Apis::Core::JsonRepresentation
505
+ property :revision_id, as: 'revisionId'
506
+ end
507
+ end
508
+
509
+ class SetIamPolicyRequest
510
+ # @private
511
+ class Representation < Google::Apis::Core::JsonRepresentation
512
+ property :policy, as: 'policy', class: Google::Apis::ApigeeregistryV1::Policy, decorator: Google::Apis::ApigeeregistryV1::Policy::Representation
513
+
514
+ end
515
+ end
516
+
517
+ class Status
518
+ # @private
519
+ class Representation < Google::Apis::Core::JsonRepresentation
520
+ property :code, as: 'code'
521
+ collection :details, as: 'details'
522
+ property :message, as: 'message'
523
+ end
524
+ end
525
+
526
+ class TagApiDeploymentRevisionRequest
527
+ # @private
528
+ class Representation < Google::Apis::Core::JsonRepresentation
529
+ property :tag, as: 'tag'
530
+ end
531
+ end
532
+
533
+ class TagApiSpecRevisionRequest
534
+ # @private
535
+ class Representation < Google::Apis::Core::JsonRepresentation
536
+ property :tag, as: 'tag'
537
+ end
538
+ end
539
+
540
+ class TestIamPermissionsRequest
541
+ # @private
542
+ class Representation < Google::Apis::Core::JsonRepresentation
543
+ collection :permissions, as: 'permissions'
544
+ end
545
+ end
546
+
547
+ class TestIamPermissionsResponse
548
+ # @private
549
+ class Representation < Google::Apis::Core::JsonRepresentation
550
+ collection :permissions, as: 'permissions'
551
+ end
552
+ end
553
+ end
554
+ end
555
+ end