google-cloud-apigee_registry-v1 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. checksums.yaml +7 -0
  2. data/.yardopts +12 -0
  3. data/AUTHENTICATION.md +149 -0
  4. data/LICENSE.md +201 -0
  5. data/README.md +144 -0
  6. data/lib/google/cloud/apigee_registry/v1/provisioning/client.rb +636 -0
  7. data/lib/google/cloud/apigee_registry/v1/provisioning/credentials.rb +47 -0
  8. data/lib/google/cloud/apigee_registry/v1/provisioning/operations.rb +767 -0
  9. data/lib/google/cloud/apigee_registry/v1/provisioning/paths.rb +69 -0
  10. data/lib/google/cloud/apigee_registry/v1/provisioning.rb +51 -0
  11. data/lib/google/cloud/apigee_registry/v1/registry/client.rb +4005 -0
  12. data/lib/google/cloud/apigee_registry/v1/registry/credentials.rb +47 -0
  13. data/lib/google/cloud/apigee_registry/v1/registry/paths.rb +238 -0
  14. data/lib/google/cloud/apigee_registry/v1/registry.rb +49 -0
  15. data/lib/google/cloud/apigee_registry/v1/version.rb +28 -0
  16. data/lib/google/cloud/apigee_registry/v1.rb +41 -0
  17. data/lib/google/cloud/apigeeregistry/v1/provisioning_service_pb.rb +73 -0
  18. data/lib/google/cloud/apigeeregistry/v1/provisioning_service_services_pb.rb +50 -0
  19. data/lib/google/cloud/apigeeregistry/v1/registry_models_pb.rb +90 -0
  20. data/lib/google/cloud/apigeeregistry/v1/registry_service_pb.rb +245 -0
  21. data/lib/google/cloud/apigeeregistry/v1/registry_service_services_pb.rb +128 -0
  22. data/lib/google-cloud-apigee_registry-v1.rb +21 -0
  23. data/proto_docs/README.md +4 -0
  24. data/proto_docs/google/api/field_behavior.rb +71 -0
  25. data/proto_docs/google/api/httpbody.rb +80 -0
  26. data/proto_docs/google/api/resource.rb +222 -0
  27. data/proto_docs/google/cloud/apigeeregistry/v1/provisioning_service.rb +157 -0
  28. data/proto_docs/google/cloud/apigeeregistry/v1/registry_models.rb +407 -0
  29. data/proto_docs/google/cloud/apigeeregistry/v1/registry_service.rb +704 -0
  30. data/proto_docs/google/longrunning/operations.rb +164 -0
  31. data/proto_docs/google/protobuf/any.rb +141 -0
  32. data/proto_docs/google/protobuf/duration.rb +98 -0
  33. data/proto_docs/google/protobuf/empty.rb +36 -0
  34. data/proto_docs/google/protobuf/field_mask.rb +229 -0
  35. data/proto_docs/google/protobuf/timestamp.rb +129 -0
  36. data/proto_docs/google/rpc/status.rb +46 -0
  37. data/proto_docs/google/type/expr.rb +75 -0
  38. metadata +273 -0
@@ -0,0 +1,407 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2022 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
+
20
+ module Google
21
+ module Cloud
22
+ module ApigeeRegistry
23
+ module V1
24
+ # An Api is a top-level description of an API.
25
+ # Apis are produced by producers and are commitments to provide services.
26
+ # @!attribute [rw] name
27
+ # @return [::String]
28
+ # Resource name.
29
+ # @!attribute [rw] display_name
30
+ # @return [::String]
31
+ # Human-meaningful name.
32
+ # @!attribute [rw] description
33
+ # @return [::String]
34
+ # A detailed description.
35
+ # @!attribute [r] create_time
36
+ # @return [::Google::Protobuf::Timestamp]
37
+ # Output only. Creation timestamp.
38
+ # @!attribute [r] update_time
39
+ # @return [::Google::Protobuf::Timestamp]
40
+ # Output only. Last update timestamp.
41
+ # @!attribute [rw] availability
42
+ # @return [::String]
43
+ # A user-definable description of the availability of this service.
44
+ # Format: free-form, but we expect single words that describe availability,
45
+ # e.g. "NONE", "TESTING", "PREVIEW", "GENERAL", "DEPRECATED", "SHUTDOWN".
46
+ # @!attribute [rw] recommended_version
47
+ # @return [::String]
48
+ # The recommended version of the API.
49
+ # Format: apis/\\{api}/versions/\\{version}
50
+ # @!attribute [rw] recommended_deployment
51
+ # @return [::String]
52
+ # The recommended deployment of the API.
53
+ # Format: apis/\\{api}/deployments/\\{deployment}
54
+ # @!attribute [rw] labels
55
+ # @return [::Google::Protobuf::Map{::String => ::String}]
56
+ # Labels attach identifying metadata to resources. Identifying metadata can
57
+ # be used to filter list operations.
58
+ #
59
+ # Label keys and values can be no longer than 64 characters
60
+ # (Unicode codepoints), can only contain lowercase letters, numeric
61
+ # characters, underscores and dashes. International characters are allowed.
62
+ # No more than 64 user labels can be associated with one resource (System
63
+ # labels are excluded).
64
+ #
65
+ # See https://goo.gl/xmQnxf for more information and examples of labels.
66
+ # System reserved label keys are prefixed with
67
+ # "apigeeregistry.googleapis.com/" and cannot be changed.
68
+ # @!attribute [rw] annotations
69
+ # @return [::Google::Protobuf::Map{::String => ::String}]
70
+ # Annotations attach non-identifying metadata to resources.
71
+ #
72
+ # Annotation keys and values are less restricted than those of labels, but
73
+ # should be generally used for small values of broad interest. Larger, topic-
74
+ # specific metadata should be stored in Artifacts.
75
+ class Api
76
+ include ::Google::Protobuf::MessageExts
77
+ extend ::Google::Protobuf::MessageExts::ClassMethods
78
+
79
+ # @!attribute [rw] key
80
+ # @return [::String]
81
+ # @!attribute [rw] value
82
+ # @return [::String]
83
+ class LabelsEntry
84
+ include ::Google::Protobuf::MessageExts
85
+ extend ::Google::Protobuf::MessageExts::ClassMethods
86
+ end
87
+
88
+ # @!attribute [rw] key
89
+ # @return [::String]
90
+ # @!attribute [rw] value
91
+ # @return [::String]
92
+ class AnnotationsEntry
93
+ include ::Google::Protobuf::MessageExts
94
+ extend ::Google::Protobuf::MessageExts::ClassMethods
95
+ end
96
+ end
97
+
98
+ # An ApiVersion describes a particular version of an API.
99
+ # ApiVersions are what consumers actually use.
100
+ # @!attribute [rw] name
101
+ # @return [::String]
102
+ # Resource name.
103
+ # @!attribute [rw] display_name
104
+ # @return [::String]
105
+ # Human-meaningful name.
106
+ # @!attribute [rw] description
107
+ # @return [::String]
108
+ # A detailed description.
109
+ # @!attribute [r] create_time
110
+ # @return [::Google::Protobuf::Timestamp]
111
+ # Output only. Creation timestamp.
112
+ # @!attribute [r] update_time
113
+ # @return [::Google::Protobuf::Timestamp]
114
+ # Output only. Last update timestamp.
115
+ # @!attribute [rw] state
116
+ # @return [::String]
117
+ # A user-definable description of the lifecycle phase of this API version.
118
+ # Format: free-form, but we expect single words that describe API maturity,
119
+ # e.g. "CONCEPT", "DESIGN", "DEVELOPMENT", "STAGING", "PRODUCTION",
120
+ # "DEPRECATED", "RETIRED".
121
+ # @!attribute [rw] labels
122
+ # @return [::Google::Protobuf::Map{::String => ::String}]
123
+ # Labels attach identifying metadata to resources. Identifying metadata can
124
+ # be used to filter list operations.
125
+ #
126
+ # Label keys and values can be no longer than 64 characters
127
+ # (Unicode codepoints), can only contain lowercase letters, numeric
128
+ # characters, underscores and dashes. International characters are allowed.
129
+ # No more than 64 user labels can be associated with one resource (System
130
+ # labels are excluded).
131
+ #
132
+ # See https://goo.gl/xmQnxf for more information and examples of labels.
133
+ # System reserved label keys are prefixed with
134
+ # "apigeeregistry.googleapis.com/" and cannot be changed.
135
+ # @!attribute [rw] annotations
136
+ # @return [::Google::Protobuf::Map{::String => ::String}]
137
+ # Annotations attach non-identifying metadata to resources.
138
+ #
139
+ # Annotation keys and values are less restricted than those of labels, but
140
+ # should be generally used for small values of broad interest. Larger, topic-
141
+ # specific metadata should be stored in Artifacts.
142
+ class ApiVersion
143
+ include ::Google::Protobuf::MessageExts
144
+ extend ::Google::Protobuf::MessageExts::ClassMethods
145
+
146
+ # @!attribute [rw] key
147
+ # @return [::String]
148
+ # @!attribute [rw] value
149
+ # @return [::String]
150
+ class LabelsEntry
151
+ include ::Google::Protobuf::MessageExts
152
+ extend ::Google::Protobuf::MessageExts::ClassMethods
153
+ end
154
+
155
+ # @!attribute [rw] key
156
+ # @return [::String]
157
+ # @!attribute [rw] value
158
+ # @return [::String]
159
+ class AnnotationsEntry
160
+ include ::Google::Protobuf::MessageExts
161
+ extend ::Google::Protobuf::MessageExts::ClassMethods
162
+ end
163
+ end
164
+
165
+ # An ApiSpec describes a version of an API in a structured way.
166
+ # ApiSpecs provide formal descriptions that consumers can use to use a version.
167
+ # ApiSpec resources are intended to be fully-resolved descriptions of an
168
+ # ApiVersion. When specs consist of multiple files, these should be bundled
169
+ # together (e.g. in a zip archive) and stored as a unit. Multiple specs can
170
+ # exist to provide representations in different API description formats.
171
+ # Synchronization of these representations would be provided by tooling and
172
+ # background services.
173
+ # @!attribute [rw] name
174
+ # @return [::String]
175
+ # Resource name.
176
+ # @!attribute [rw] filename
177
+ # @return [::String]
178
+ # A possibly-hierarchical name used to refer to the spec from other specs.
179
+ # @!attribute [rw] description
180
+ # @return [::String]
181
+ # A detailed description.
182
+ # @!attribute [r] revision_id
183
+ # @return [::String]
184
+ # Output only. Immutable. The revision ID of the spec.
185
+ # A new revision is committed whenever the spec contents are changed.
186
+ # The format is an 8-character hexadecimal string.
187
+ # @!attribute [r] create_time
188
+ # @return [::Google::Protobuf::Timestamp]
189
+ # Output only. Creation timestamp; when the spec resource was created.
190
+ # @!attribute [r] revision_create_time
191
+ # @return [::Google::Protobuf::Timestamp]
192
+ # Output only. Revision creation timestamp; when the represented revision was created.
193
+ # @!attribute [r] revision_update_time
194
+ # @return [::Google::Protobuf::Timestamp]
195
+ # Output only. Last update timestamp: when the represented revision was last modified.
196
+ # @!attribute [rw] mime_type
197
+ # @return [::String]
198
+ # A style (format) descriptor for this spec that is specified as a Media Type
199
+ # (https://en.wikipedia.org/wiki/Media_type). Possible values include
200
+ # "application/vnd.apigee.proto", "application/vnd.apigee.openapi", and
201
+ # "application/vnd.apigee.graphql", with possible suffixes representing
202
+ # compression types. These hypothetical names are defined in the vendor tree
203
+ # defined in RFC6838 (https://tools.ietf.org/html/rfc6838) and are not final.
204
+ # Content types can specify compression. Currently only GZip compression is
205
+ # supported (indicated with "+gzip").
206
+ # @!attribute [r] size_bytes
207
+ # @return [::Integer]
208
+ # Output only. The size of the spec file in bytes. If the spec is gzipped, this is the
209
+ # size of the uncompressed spec.
210
+ # @!attribute [r] hash
211
+ # @return [::String]
212
+ # Output only. A SHA-256 hash of the spec's contents. If the spec is gzipped, this is
213
+ # the hash of the uncompressed spec.
214
+ # @!attribute [rw] source_uri
215
+ # @return [::String]
216
+ # The original source URI of the spec (if one exists).
217
+ # This is an external location that can be used for reference purposes
218
+ # but which may not be authoritative since this external resource may
219
+ # change after the spec is retrieved.
220
+ # @!attribute [rw] contents
221
+ # @return [::String]
222
+ # Input only. The contents of the spec.
223
+ # Provided by API callers when specs are created or updated.
224
+ # To access the contents of a spec, use GetApiSpecContents.
225
+ # @!attribute [rw] labels
226
+ # @return [::Google::Protobuf::Map{::String => ::String}]
227
+ # Labels attach identifying metadata to resources. Identifying metadata can
228
+ # be used to filter list operations.
229
+ #
230
+ # Label keys and values can be no longer than 64 characters
231
+ # (Unicode codepoints), can only contain lowercase letters, numeric
232
+ # characters, underscores and dashes. International characters are allowed.
233
+ # No more than 64 user labels can be associated with one resource (System
234
+ # labels are excluded).
235
+ #
236
+ # See https://goo.gl/xmQnxf for more information and examples of labels.
237
+ # System reserved label keys are prefixed with
238
+ # "apigeeregistry.googleapis.com/" and cannot be changed.
239
+ # @!attribute [rw] annotations
240
+ # @return [::Google::Protobuf::Map{::String => ::String}]
241
+ # Annotations attach non-identifying metadata to resources.
242
+ #
243
+ # Annotation keys and values are less restricted than those of labels, but
244
+ # should be generally used for small values of broad interest. Larger, topic-
245
+ # specific metadata should be stored in Artifacts.
246
+ class ApiSpec
247
+ include ::Google::Protobuf::MessageExts
248
+ extend ::Google::Protobuf::MessageExts::ClassMethods
249
+
250
+ # @!attribute [rw] key
251
+ # @return [::String]
252
+ # @!attribute [rw] value
253
+ # @return [::String]
254
+ class LabelsEntry
255
+ include ::Google::Protobuf::MessageExts
256
+ extend ::Google::Protobuf::MessageExts::ClassMethods
257
+ end
258
+
259
+ # @!attribute [rw] key
260
+ # @return [::String]
261
+ # @!attribute [rw] value
262
+ # @return [::String]
263
+ class AnnotationsEntry
264
+ include ::Google::Protobuf::MessageExts
265
+ extend ::Google::Protobuf::MessageExts::ClassMethods
266
+ end
267
+ end
268
+
269
+ # An ApiDeployment describes a service running at particular address that
270
+ # provides a particular version of an API. ApiDeployments have revisions which
271
+ # correspond to different configurations of a single deployment in time.
272
+ # Revision identifiers should be updated whenever the served API spec or
273
+ # endpoint address changes.
274
+ # @!attribute [rw] name
275
+ # @return [::String]
276
+ # Resource name.
277
+ # @!attribute [rw] display_name
278
+ # @return [::String]
279
+ # Human-meaningful name.
280
+ # @!attribute [rw] description
281
+ # @return [::String]
282
+ # A detailed description.
283
+ # @!attribute [r] revision_id
284
+ # @return [::String]
285
+ # Output only. Immutable. The revision ID of the deployment.
286
+ # A new revision is committed whenever the deployment contents are changed.
287
+ # The format is an 8-character hexadecimal string.
288
+ # @!attribute [r] create_time
289
+ # @return [::Google::Protobuf::Timestamp]
290
+ # Output only. Creation timestamp; when the deployment resource was created.
291
+ # @!attribute [r] revision_create_time
292
+ # @return [::Google::Protobuf::Timestamp]
293
+ # Output only. Revision creation timestamp; when the represented revision was created.
294
+ # @!attribute [r] revision_update_time
295
+ # @return [::Google::Protobuf::Timestamp]
296
+ # Output only. Last update timestamp: when the represented revision was last modified.
297
+ # @!attribute [rw] api_spec_revision
298
+ # @return [::String]
299
+ # The full resource name (including revision id) of the spec of the API being
300
+ # served by the deployment. Changes to this value will update the revision.
301
+ # Format: apis/\\{api}/deployments/\\{deployment}
302
+ # @!attribute [rw] endpoint_uri
303
+ # @return [::String]
304
+ # The address where the deployment is serving. Changes to this value will
305
+ # update the revision.
306
+ # @!attribute [rw] external_channel_uri
307
+ # @return [::String]
308
+ # The address of the external channel of the API (e.g. the Developer
309
+ # Portal). Changes to this value will not affect the revision.
310
+ # @!attribute [rw] intended_audience
311
+ # @return [::String]
312
+ # Text briefly identifying the intended audience of the API. Changes to this
313
+ # value will not affect the revision.
314
+ # @!attribute [rw] access_guidance
315
+ # @return [::String]
316
+ # Text briefly describing how to access the endpoint. Changes to this value
317
+ # will not affect the revision.
318
+ # @!attribute [rw] labels
319
+ # @return [::Google::Protobuf::Map{::String => ::String}]
320
+ # Labels attach identifying metadata to resources. Identifying metadata can
321
+ # be used to filter list operations.
322
+ #
323
+ # Label keys and values can be no longer than 64 characters
324
+ # (Unicode codepoints), can only contain lowercase letters, numeric
325
+ # characters, underscores and dashes. International characters are allowed.
326
+ # No more than 64 user labels can be associated with one resource (System
327
+ # labels are excluded).
328
+ #
329
+ # See https://goo.gl/xmQnxf for more information and examples of labels.
330
+ # System reserved label keys are prefixed with
331
+ # "apigeeregistry.googleapis.com/" and cannot be changed.
332
+ # @!attribute [rw] annotations
333
+ # @return [::Google::Protobuf::Map{::String => ::String}]
334
+ # Annotations attach non-identifying metadata to resources.
335
+ #
336
+ # Annotation keys and values are less restricted than those of labels, but
337
+ # should be generally used for small values of broad interest. Larger, topic-
338
+ # specific metadata should be stored in Artifacts.
339
+ class ApiDeployment
340
+ include ::Google::Protobuf::MessageExts
341
+ extend ::Google::Protobuf::MessageExts::ClassMethods
342
+
343
+ # @!attribute [rw] key
344
+ # @return [::String]
345
+ # @!attribute [rw] value
346
+ # @return [::String]
347
+ class LabelsEntry
348
+ include ::Google::Protobuf::MessageExts
349
+ extend ::Google::Protobuf::MessageExts::ClassMethods
350
+ end
351
+
352
+ # @!attribute [rw] key
353
+ # @return [::String]
354
+ # @!attribute [rw] value
355
+ # @return [::String]
356
+ class AnnotationsEntry
357
+ include ::Google::Protobuf::MessageExts
358
+ extend ::Google::Protobuf::MessageExts::ClassMethods
359
+ end
360
+ end
361
+
362
+ # Artifacts of resources. Artifacts are unique (single-value) per resource
363
+ # and are used to store metadata that is too large or numerous to be stored
364
+ # directly on the resource. Since artifacts are stored separately from parent
365
+ # resources, they should generally be used for metadata that is needed
366
+ # infrequently, i.e. not for display in primary views of the resource but
367
+ # perhaps displayed or downloaded upon request. The ListArtifacts method
368
+ # allows artifacts to be quickly enumerated and checked for presence without
369
+ # downloading their (potentially-large) contents.
370
+ # @!attribute [rw] name
371
+ # @return [::String]
372
+ # Resource name.
373
+ # @!attribute [r] create_time
374
+ # @return [::Google::Protobuf::Timestamp]
375
+ # Output only. Creation timestamp.
376
+ # @!attribute [r] update_time
377
+ # @return [::Google::Protobuf::Timestamp]
378
+ # Output only. Last update timestamp.
379
+ # @!attribute [rw] mime_type
380
+ # @return [::String]
381
+ # A content type specifier for the artifact.
382
+ # Content type specifiers are Media Types
383
+ # (https://en.wikipedia.org/wiki/Media_type) with a possible "schema"
384
+ # parameter that specifies a schema for the stored information.
385
+ # Content types can specify compression. Currently only GZip compression is
386
+ # supported (indicated with "+gzip").
387
+ # @!attribute [r] size_bytes
388
+ # @return [::Integer]
389
+ # Output only. The size of the artifact in bytes. If the artifact is gzipped, this is
390
+ # the size of the uncompressed artifact.
391
+ # @!attribute [r] hash
392
+ # @return [::String]
393
+ # Output only. A SHA-256 hash of the artifact's contents. If the artifact is gzipped,
394
+ # this is the hash of the uncompressed artifact.
395
+ # @!attribute [rw] contents
396
+ # @return [::String]
397
+ # Input only. The contents of the artifact.
398
+ # Provided by API callers when artifacts are created or replaced.
399
+ # To access the contents of an artifact, use GetArtifactContents.
400
+ class Artifact
401
+ include ::Google::Protobuf::MessageExts
402
+ extend ::Google::Protobuf::MessageExts::ClassMethods
403
+ end
404
+ end
405
+ end
406
+ end
407
+ end