google-cloud-private_catalog-v1beta1 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,492 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2021 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 PrivateCatalog
23
+ module V1beta1
24
+ # Request message for {::Google::Cloud::PrivateCatalog::V1beta1::PrivateCatalog::Client#search_catalogs PrivateCatalog.SearchCatalogs}.
25
+ # @!attribute [rw] resource
26
+ # @return [::String]
27
+ # Required. The name of the resource context. It can be in following formats:
28
+ #
29
+ # * `projects/{project}`
30
+ # * `folders/{folder}`
31
+ # * `organizations/{organization}`
32
+ # @!attribute [rw] query
33
+ # @return [::String]
34
+ # The query to filter the catalogs. The supported queries are:
35
+ #
36
+ # * Get a single catalog: `name=catalogs/{catalog}`
37
+ # @!attribute [rw] page_size
38
+ # @return [::Integer]
39
+ # The maximum number of entries that are requested.
40
+ # @!attribute [rw] page_token
41
+ # @return [::String]
42
+ # A pagination token returned from a previous call to SearchCatalogs that
43
+ # indicates where this listing should continue from.
44
+ class SearchCatalogsRequest
45
+ include ::Google::Protobuf::MessageExts
46
+ extend ::Google::Protobuf::MessageExts::ClassMethods
47
+ end
48
+
49
+ # Response message for {::Google::Cloud::PrivateCatalog::V1beta1::PrivateCatalog::Client#search_catalogs PrivateCatalog.SearchCatalogs}.
50
+ # @!attribute [rw] catalogs
51
+ # @return [::Array<::Google::Cloud::PrivateCatalog::V1beta1::Catalog>]
52
+ # The `Catalog`s computed from the resource context.
53
+ # @!attribute [rw] next_page_token
54
+ # @return [::String]
55
+ # A pagination token returned from a previous call to SearchCatalogs that
56
+ # indicates from where listing should continue.
57
+ class SearchCatalogsResponse
58
+ include ::Google::Protobuf::MessageExts
59
+ extend ::Google::Protobuf::MessageExts::ClassMethods
60
+ end
61
+
62
+ # Request message for {::Google::Cloud::PrivateCatalog::V1beta1::PrivateCatalog::Client#search_products PrivateCatalog.SearchProducts}.
63
+ # @!attribute [rw] resource
64
+ # @return [::String]
65
+ # Required. The name of the resource context. See {::Google::Cloud::PrivateCatalog::V1beta1::SearchCatalogsRequest#resource SearchCatalogsRequest.resource}
66
+ # for details.
67
+ # @!attribute [rw] query
68
+ # @return [::String]
69
+ # The query to filter the products.
70
+ #
71
+ # The supported queries are:
72
+ # * List products of all catalogs: empty
73
+ # * List products under a catalog: `parent=catalogs/{catalog}`
74
+ # * Get a product by name:
75
+ # `name=catalogs/{catalog}/products/{product}`
76
+ # @!attribute [rw] page_size
77
+ # @return [::Integer]
78
+ # The maximum number of entries that are requested.
79
+ # @!attribute [rw] page_token
80
+ # @return [::String]
81
+ # A pagination token returned from a previous call to SearchProducts that
82
+ # indicates where this listing should continue from.
83
+ class SearchProductsRequest
84
+ include ::Google::Protobuf::MessageExts
85
+ extend ::Google::Protobuf::MessageExts::ClassMethods
86
+ end
87
+
88
+ # Response message for {::Google::Cloud::PrivateCatalog::V1beta1::PrivateCatalog::Client#search_products PrivateCatalog.SearchProducts}.
89
+ # @!attribute [rw] products
90
+ # @return [::Array<::Google::Cloud::PrivateCatalog::V1beta1::Product>]
91
+ # The `Product` resources computed from the resource context.
92
+ # @!attribute [rw] next_page_token
93
+ # @return [::String]
94
+ # A pagination token returned from a previous call to SearchProducts that
95
+ # indicates from where listing should continue.
96
+ class SearchProductsResponse
97
+ include ::Google::Protobuf::MessageExts
98
+ extend ::Google::Protobuf::MessageExts::ClassMethods
99
+ end
100
+
101
+ # Request message for {::Google::Cloud::PrivateCatalog::V1beta1::PrivateCatalog::Client#search_versions PrivateCatalog.SearchVersions}.
102
+ # @!attribute [rw] resource
103
+ # @return [::String]
104
+ # Required. The name of the resource context. See {::Google::Cloud::PrivateCatalog::V1beta1::SearchCatalogsRequest#resource SearchCatalogsRequest.resource}
105
+ # for details.
106
+ # @!attribute [rw] query
107
+ # @return [::String]
108
+ # Required. The query to filter the versions.
109
+ #
110
+ # The supported queries are:
111
+ # * List versions under a product:
112
+ # `parent=catalogs/{catalog}/products/{product}`
113
+ # * Get a version by name:
114
+ # `name=catalogs/{catalog}/products/{product}/versions/{version}`
115
+ # @!attribute [rw] page_size
116
+ # @return [::Integer]
117
+ # The maximum number of entries that are requested.
118
+ # @!attribute [rw] page_token
119
+ # @return [::String]
120
+ # A pagination token returned from a previous call to SearchVersions
121
+ # that indicates where this listing should continue from.
122
+ class SearchVersionsRequest
123
+ include ::Google::Protobuf::MessageExts
124
+ extend ::Google::Protobuf::MessageExts::ClassMethods
125
+ end
126
+
127
+ # Response message for {::Google::Cloud::PrivateCatalog::V1beta1::PrivateCatalog::Client#search_versions PrivateCatalog.SearchVersions}.
128
+ # @!attribute [rw] versions
129
+ # @return [::Array<::Google::Cloud::PrivateCatalog::V1beta1::Version>]
130
+ # The `Version` resources computed from the resource context.
131
+ # @!attribute [rw] next_page_token
132
+ # @return [::String]
133
+ # A pagination token returned from a previous call to SearchVersions that
134
+ # indicates from where the listing should continue.
135
+ class SearchVersionsResponse
136
+ include ::Google::Protobuf::MessageExts
137
+ extend ::Google::Protobuf::MessageExts::ClassMethods
138
+ end
139
+
140
+ # The readonly representation of a catalog computed with a given resource
141
+ # context.
142
+ # @!attribute [r] name
143
+ # @return [::String]
144
+ # Output only. The resource name of the target catalog, in the format of
145
+ # `catalogs/{catalog}'.
146
+ # @!attribute [r] display_name
147
+ # @return [::String]
148
+ # Output only. The descriptive name of the catalog as it appears in UIs.
149
+ # @!attribute [r] description
150
+ # @return [::String]
151
+ # Output only. The description of the catalog.
152
+ # @!attribute [r] create_time
153
+ # @return [::Google::Protobuf::Timestamp]
154
+ # Output only. The time when the catalog was created.
155
+ # @!attribute [r] update_time
156
+ # @return [::Google::Protobuf::Timestamp]
157
+ # Output only. The time when the catalog was last updated.
158
+ class Catalog
159
+ include ::Google::Protobuf::MessageExts
160
+ extend ::Google::Protobuf::MessageExts::ClassMethods
161
+ end
162
+
163
+ # The readonly representation of a product computed with a given resource
164
+ # context.
165
+ # @!attribute [r] name
166
+ # @return [::String]
167
+ # Output only. The resource name of the target product, in the format of
168
+ # `products/[a-z][-a-z0-9]*[a-z0-9]'.
169
+ #
170
+ # A unique identifier for the product under a catalog.
171
+ # @!attribute [r] asset_type
172
+ # @return [::String]
173
+ # Output only. The type of the product asset. It can be one of the following values:
174
+ #
175
+ # * `google.deploymentmanager.Template`
176
+ # * `google.cloudprivatecatalog.ListingOnly`
177
+ # * `google.cloudprivatecatalog.Terraform`
178
+ # @!attribute [r] display_metadata
179
+ # @return [::Google::Protobuf::Struct]
180
+ # Required. Output only. The display metadata to describe the product. The JSON schema of the
181
+ # metadata differs by {::Google::Cloud::PrivateCatalog::V1beta1::Product#asset_type Product.asset_type}.
182
+ # When the type is `google.deploymentmanager.Template`, the schema is as
183
+ # follows:
184
+ #
185
+ # ```
186
+ # "$schema": http://json-schema.org/draft-04/schema#
187
+ # type: object
188
+ # properties:
189
+ # name:
190
+ # type: string
191
+ # minLength: 1
192
+ # maxLength: 64
193
+ # description:
194
+ # type: string
195
+ # minLength: 1
196
+ # maxLength: 2048
197
+ # tagline:
198
+ # type: string
199
+ # minLength: 1
200
+ # maxLength: 100
201
+ # support_info:
202
+ # type: string
203
+ # minLength: 1
204
+ # maxLength: 2048
205
+ # creator:
206
+ # type: string
207
+ # minLength: 1
208
+ # maxLength: 100
209
+ # documentations:
210
+ # type: array
211
+ # items:
212
+ # type: object
213
+ # properties:
214
+ # url:
215
+ # type: string
216
+ # pattern:
217
+ # "^(https?)://[-a-zA-Z0-9+&@#/%?=~_|!:,.;]*[-a-zA-Z0-9+&@#/%=~_|]"
218
+ # title:
219
+ # type: string
220
+ # minLength: 1
221
+ # maxLength: 64
222
+ # description:
223
+ # type: string
224
+ # minLength: 1
225
+ # maxLength: 2048
226
+ # required:
227
+ # - name
228
+ # - description
229
+ # additionalProperties: false
230
+ #
231
+ # ```
232
+ #
233
+ # When the asset type is `google.cloudprivatecatalog.ListingOnly`, the schema
234
+ # is as follows:
235
+ #
236
+ # ```
237
+ # "$schema": http://json-schema.org/draft-04/schema#
238
+ # type: object
239
+ # properties:
240
+ # name:
241
+ # type: string
242
+ # minLength: 1
243
+ # maxLength: 64
244
+ # description:
245
+ # type: string
246
+ # minLength: 1
247
+ # maxLength: 2048
248
+ # tagline:
249
+ # type: string
250
+ # minLength: 1
251
+ # maxLength: 100
252
+ # support_info:
253
+ # type: string
254
+ # minLength: 1
255
+ # maxLength: 2048
256
+ # creator:
257
+ # type: string
258
+ # minLength: 1
259
+ # maxLength: 100
260
+ # documentations:
261
+ # type: array
262
+ # items:
263
+ # type: object
264
+ # properties:
265
+ # url:
266
+ # type: string
267
+ # pattern:
268
+ # "^(https?)://[-a-zA-Z0-9+&@#/%?=~_|!:,.;]*[-a-zA-Z0-9+&@#/%=~_|]"
269
+ # title:
270
+ # type: string
271
+ # minLength: 1
272
+ # maxLength: 64
273
+ # description:
274
+ # type: string
275
+ # minLength: 1
276
+ # maxLength: 2048
277
+ # signup_url:
278
+ # type: string
279
+ # pattern:
280
+ # "^(https?)://[-a-zA-Z0-9+&@#/%?=~_|!:,.;]*[-a-zA-Z0-9+&@#/%=~_|]"
281
+ # required:
282
+ # - name
283
+ # - description
284
+ # - signup_url
285
+ # additionalProperties: false
286
+ #
287
+ # ```
288
+ #
289
+ # When the asset type is `google.cloudprivatecatalog.Terraform`, the schema
290
+ # is as follows:
291
+ #
292
+ # ```
293
+ # "$schema": http://json-schema.org/draft-04/schema#
294
+ # type: object
295
+ # properties:
296
+ # name:
297
+ # type: string
298
+ # minLength: 1
299
+ # maxLength: 64
300
+ # description:
301
+ # type: string
302
+ # minLength: 1
303
+ # maxLength: 2048
304
+ # tagline:
305
+ # type: string
306
+ # minLength: 1
307
+ # maxLength: 100
308
+ # support_info:
309
+ # type: string
310
+ # minLength: 1
311
+ # maxLength: 2048
312
+ # creator:
313
+ # type: string
314
+ # minLength: 1
315
+ # maxLength: 100
316
+ # documentations:
317
+ # type: array
318
+ # items:
319
+ # type: object
320
+ # properties:
321
+ # url:
322
+ # type: string
323
+ # pattern:
324
+ # "^(https?)://[-a-zA-Z0-9+&@#/%?=~_|!:,.;]*[-a-zA-Z0-9+&@#/%=~_|]"
325
+ # title:
326
+ # type: string
327
+ # minLength: 1
328
+ # maxLength: 64
329
+ # description:
330
+ # type: string
331
+ # minLength: 1
332
+ # maxLength: 2048
333
+ # required:
334
+ # - name
335
+ # - description
336
+ # additionalProperties: true
337
+ # @!attribute [r] icon_uri
338
+ # @return [::String]
339
+ # Output only. The icon URI of the product.
340
+ # @!attribute [r] asset_references
341
+ # @return [::Array<::Google::Cloud::PrivateCatalog::V1beta1::AssetReference>]
342
+ # Output only. A collection of assets referred by a product.
343
+ # This field is set for Terraform Products only.
344
+ # @!attribute [r] create_time
345
+ # @return [::Google::Protobuf::Timestamp]
346
+ # Output only. The time when the product was created.
347
+ # @!attribute [r] update_time
348
+ # @return [::Google::Protobuf::Timestamp]
349
+ # Output only. The time when the product was last updated.
350
+ class Product
351
+ include ::Google::Protobuf::MessageExts
352
+ extend ::Google::Protobuf::MessageExts::ClassMethods
353
+ end
354
+
355
+ # Defines the reference of an asset belonging to a product.
356
+ # @!attribute [r] id
357
+ # @return [::String]
358
+ # Output only. A unique identifier among asset references in a product.
359
+ # @!attribute [r] description
360
+ # @return [::String]
361
+ # Output only. The human-readable description of the referenced asset. Maximum 256
362
+ # characters in length.
363
+ # @!attribute [r] inputs
364
+ # @return [::Google::Cloud::PrivateCatalog::V1beta1::Inputs]
365
+ # Output only. The definition of input parameters to hydrate the asset template.
366
+ # @!attribute [r] validation_status
367
+ # @return [::Google::Cloud::PrivateCatalog::V1beta1::AssetReference::AssetValidationState]
368
+ # Output only. The current state of the asset reference.
369
+ # @!attribute [r] validation_operation
370
+ # @return [::Google::Longrunning::Operation]
371
+ # Output only. The validation process metadata.
372
+ # @!attribute [r] asset
373
+ # @return [::String]
374
+ # Output only. The asset resource name if an asset is hosted by Private Catalog.
375
+ # @!attribute [r] gcs_path
376
+ # @return [::String]
377
+ # Output only. The cloud storage object path.
378
+ # @!attribute [r] git_source
379
+ # @return [::Google::Cloud::PrivateCatalog::V1beta1::GitSource]
380
+ # Output only. The git source.
381
+ # @!attribute [r] gcs_source
382
+ # @return [::Google::Cloud::PrivateCatalog::V1beta1::GcsSource]
383
+ # Output only. The cloud storage source.
384
+ # @!attribute [r] create_time
385
+ # @return [::Google::Protobuf::Timestamp]
386
+ # Output only. The creation timestamp of the asset reference.
387
+ # @!attribute [r] update_time
388
+ # @return [::Google::Protobuf::Timestamp]
389
+ # Output only. The last update timestamp of the asset reference.
390
+ # @!attribute [rw] version
391
+ # @return [::String]
392
+ # The version of the source used for this asset reference.
393
+ class AssetReference
394
+ include ::Google::Protobuf::MessageExts
395
+ extend ::Google::Protobuf::MessageExts::ClassMethods
396
+
397
+ # Possible validation steates of an asset reference.
398
+ module AssetValidationState
399
+ # Unknown state.
400
+ ASSET_VALIDATION_STATE_UNSPECIFIED = 0
401
+
402
+ # The validation is still in process.
403
+ PENDING = 1
404
+
405
+ # The validation is done and the asset reference is valid.
406
+ VALID = 2
407
+
408
+ # The validation is done and the asset reference is invalid.
409
+ INVALID = 3
410
+ end
411
+ end
412
+
413
+ # Defines definition of input parameters of asset templates.
414
+ # @!attribute [r] parameters
415
+ # @return [::Google::Protobuf::Struct]
416
+ # Output only. The JSON schema defining the inputs and their formats.
417
+ class Inputs
418
+ include ::Google::Protobuf::MessageExts
419
+ extend ::Google::Protobuf::MessageExts::ClassMethods
420
+ end
421
+
422
+ # Defines how to access Cloud Storage source.
423
+ # @!attribute [r] gcs_path
424
+ # @return [::String]
425
+ # Output only. the cloud storage object path.
426
+ # @!attribute [r] generation
427
+ # @return [::Integer]
428
+ # Output only. Generation of the object, which is set when the content of an object starts
429
+ # being written.
430
+ # @!attribute [r] update_time
431
+ # @return [::Google::Protobuf::Timestamp]
432
+ # Output only. The time when the object metadata was last changed.
433
+ class GcsSource
434
+ include ::Google::Protobuf::MessageExts
435
+ extend ::Google::Protobuf::MessageExts::ClassMethods
436
+ end
437
+
438
+ # Defines how to access a Git Source.
439
+ # @!attribute [rw] repo
440
+ # @return [::String]
441
+ # Location of the Git repo to build.
442
+ # @!attribute [rw] dir
443
+ # @return [::String]
444
+ # Directory, relative to the source root, in which to run the build.
445
+ #
446
+ # This must be a relative path. If a step's `dir` is specified and is an
447
+ # absolute path, this value is ignored for that step's execution.
448
+ # @!attribute [rw] commit
449
+ # @return [::String]
450
+ # The revision commit to use.
451
+ # @!attribute [rw] branch
452
+ # @return [::String]
453
+ # The revision branch to use.
454
+ # @!attribute [rw] tag
455
+ # @return [::String]
456
+ # The revision tag to use.
457
+ class GitSource
458
+ include ::Google::Protobuf::MessageExts
459
+ extend ::Google::Protobuf::MessageExts::ClassMethods
460
+ end
461
+
462
+ # The consumer representation of a version which is a child resource under a
463
+ # `Product` with asset data.
464
+ # @!attribute [r] name
465
+ # @return [::String]
466
+ # Output only. The resource name of the version, in the format
467
+ # `catalogs/{catalog}/products/{product}/versions/[a-z][-a-z0-9]*[a-z0-9]'.
468
+ #
469
+ # A unique identifier for the version under a product.
470
+ # @!attribute [r] description
471
+ # @return [::String]
472
+ # Output only. The user-supplied description of the version. Maximum of 256
473
+ # characters.
474
+ # @!attribute [r] asset
475
+ # @return [::Google::Protobuf::Struct]
476
+ # Output only. The asset which has been validated and is ready to be
477
+ # provisioned. See
478
+ # [google.cloud.privatecatalogproducer.v1beta.Version.asset][] for details.
479
+ # @!attribute [r] create_time
480
+ # @return [::Google::Protobuf::Timestamp]
481
+ # Output only. The time when the version was created.
482
+ # @!attribute [r] update_time
483
+ # @return [::Google::Protobuf::Timestamp]
484
+ # Output only. The time when the version was last updated.
485
+ class Version
486
+ include ::Google::Protobuf::MessageExts
487
+ extend ::Google::Protobuf::MessageExts::ClassMethods
488
+ end
489
+ end
490
+ end
491
+ end
492
+ end