google-cloud-private_catalog-v1beta1 0.1.0 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3d806d66f1545c42ba24c8509fc7eef7b789bd6ab875780bb780c48e5aa6ca90
4
- data.tar.gz: d61466c229835cd57dacac0926926f61f08574cfe4e62024a1821517e60d892b
3
+ metadata.gz: 39b160a553f78fb451ae7c12be09071c04f6f2ab07578fe7045ffb9c192831ff
4
+ data.tar.gz: 4ff369aa8d52dc9ea7357ef174177b9d79a87f48495b55a76f67b8d23f6edac5
5
5
  SHA512:
6
- metadata.gz: 3fb5383ebfd597530013135a2f73471169f90ece8f4316e2df66ed84b29ca923ee209441a0e45e6907f01aa78d9fb5bad7c699a18f5e9f2d02da9e844c9bada2
7
- data.tar.gz: 6a3fc202c3b94a38487bd8abcd61fdba6bb0611c0e07358256b00538eac39e4a6847be706f0c0490c7fe326dfdc5aa9cab3fa67086f387240bcc0125b4bd01fa
6
+ metadata.gz: 2e01c64256591ab6cb135bffc01cd0e2a1713f693f20ed87b794f4037c7b22da2b3822e48f2c6f1d2cafcc0f24b0969b9c61f103f4c38331da0f90e97df32e1f
7
+ data.tar.gz: 42e1c1570a885d5e2f6bbde565186869c914b7c89cf93c0bdc7fc47151a99f81e37591cfad606cf9441f966c46efda818be18af07db45457135f256be785c90b
data/.yardopts CHANGED
@@ -1,5 +1,5 @@
1
1
  --no-private
2
- --title=Private Catalog V1beta1 API
2
+ --title="Private Catalog V1beta1 API"
3
3
  --exclude _pb\.rb$
4
4
  --markup markdown
5
5
  --markup-provider redcarpet
data/AUTHENTICATION.md CHANGED
@@ -66,11 +66,11 @@ The environment variables that google-cloud-private_catalog-v1beta1
66
66
  checks for credentials are configured on the service Credentials class (such as
67
67
  {::Google::Cloud::PrivateCatalog::V1beta1::PrivateCatalog::Credentials}):
68
68
 
69
- 1. `PRIVATE_CATALOG_CREDENTIALS` - Path to JSON file, or JSON contents
70
- 2. `PRIVATE_CATALOG_KEYFILE` - Path to JSON file, or JSON contents
71
- 3. `GOOGLE_CLOUD_CREDENTIALS` - Path to JSON file, or JSON contents
72
- 4. `GOOGLE_CLOUD_KEYFILE` - Path to JSON file, or JSON contents
73
- 5. `GOOGLE_APPLICATION_CREDENTIALS` - Path to JSON file
69
+ * `PRIVATE_CATALOG_CREDENTIALS` - Path to JSON file, or JSON contents
70
+ * `PRIVATE_CATALOG_KEYFILE` - Path to JSON file, or JSON contents
71
+ * `GOOGLE_CLOUD_CREDENTIALS` - Path to JSON file, or JSON contents
72
+ * `GOOGLE_CLOUD_KEYFILE` - Path to JSON file, or JSON contents
73
+ * `GOOGLE_APPLICATION_CREDENTIALS` - Path to JSON file
74
74
 
75
75
  ```ruby
76
76
  require "google/cloud/private_catalog/v1beta1"
@@ -82,8 +82,8 @@ client = ::Google::Cloud::PrivateCatalog::V1beta1::PrivateCatalog::Client.new
82
82
 
83
83
  ### Configuration
84
84
 
85
- The **Credentials JSON** can be configured instead of placing them in
86
- environment variables. Either on an individual client initialization:
85
+ The path to the **Credentials JSON** file can be configured instead of storing
86
+ it in an environment variable. Either on an individual client initialization:
87
87
 
88
88
  ```ruby
89
89
  require "google/cloud/private_catalog/v1beta1"
@@ -93,7 +93,7 @@ client = ::Google::Cloud::PrivateCatalog::V1beta1::PrivateCatalog::Client.new do
93
93
  end
94
94
  ```
95
95
 
96
- Or configured globally for all clients:
96
+ Or globally for all clients:
97
97
 
98
98
  ```ruby
99
99
  require "google/cloud/private_catalog/v1beta1"
@@ -120,15 +120,6 @@ To configure your system for this, simply:
120
120
  **NOTE:** This is _not_ recommended for running in production. The Cloud SDK
121
121
  *should* only be used during development.
122
122
 
123
- [gce-how-to]: https://cloud.google.com/compute/docs/authentication#using
124
- [dev-console]: https://console.cloud.google.com/project
125
-
126
- [enable-apis]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/enable-apis.png
127
-
128
- [create-new-service-account]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/create-new-service-account.png
129
- [create-new-service-account-existing-keys]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/create-new-service-account-existing-keys.png
130
- [reuse-service-account]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/reuse-service-account.png
131
-
132
123
  ## Creating a Service Account
133
124
 
134
125
  Google Cloud requires **Service Account Credentials** to
@@ -139,31 +130,22 @@ If you are not running this client within
139
130
  [Google Cloud Platform environments](#google-cloud-platform-environments), you
140
131
  need a Google Developers service account.
141
132
 
142
- 1. Visit the [Google Developers Console][dev-console].
133
+ 1. Visit the [Google Cloud Console](https://console.cloud.google.com/project).
143
134
  2. Create a new project or click on an existing project.
144
- 3. Activate the slide-out navigation tray and select **API Manager**. From
135
+ 3. Activate the menu in the upper left and select **APIs & Services**. From
145
136
  here, you will enable the APIs that your application requires.
146
137
 
147
- ![Enable the APIs that your application requires][enable-apis]
148
-
149
138
  *Note: You may need to enable billing in order to use these services.*
150
139
 
151
140
  4. Select **Credentials** from the side navigation.
152
141
 
153
- You should see a screen like one of the following.
154
-
155
- ![Create a new service account][create-new-service-account]
156
-
157
- ![Create a new service account With Existing Keys][create-new-service-account-existing-keys]
158
-
159
- Find the "Add credentials" drop down and select "Service account" to be
160
- guided through downloading a new JSON key file.
142
+ Find the "Create credentials" drop down near the top of the page, and select
143
+ "Service account" to be guided through downloading a new JSON key file.
161
144
 
162
145
  If you want to re-use an existing service account, you can easily generate a
163
- new key file. Just select the account you wish to re-use, and click "Generate
164
- new JSON key":
165
-
166
- ![Re-use an existing service account][reuse-service-account]
146
+ new key file. Just select the account you wish to re-use, click the pencil
147
+ tool on the right side to edit the service account, select the **Keys** tab,
148
+ and then select **Add Key**.
167
149
 
168
150
  The key file you download will be used by this library to authenticate API
169
151
  requests and should be stored in a secure location.
data/README.md CHANGED
@@ -33,7 +33,7 @@ In order to use this library, you first need to go through the following steps:
33
33
  require "google/cloud/private_catalog/v1beta1"
34
34
 
35
35
  client = ::Google::Cloud::PrivateCatalog::V1beta1::PrivateCatalog::Client.new
36
- request = my_create_request
36
+ request = ::Google::Cloud::PrivateCatalog::V1beta1::SearchCatalogsRequest.new # (request fields as keyword arguments...)
37
37
  response = client.search_catalogs request
38
38
  ```
39
39
 
@@ -59,13 +59,12 @@ module Google
59
59
  # See {::Google::Cloud::PrivateCatalog::V1beta1::PrivateCatalog::Client::Configuration}
60
60
  # for a description of the configuration fields.
61
61
  #
62
- # ## Example
62
+ # @example
63
63
  #
64
- # To modify the configuration for all PrivateCatalog clients:
65
- #
66
- # ::Google::Cloud::PrivateCatalog::V1beta1::PrivateCatalog::Client.configure do |config|
67
- # config.timeout = 10.0
68
- # end
64
+ # # Modify the configuration for all PrivateCatalog clients
65
+ # ::Google::Cloud::PrivateCatalog::V1beta1::PrivateCatalog::Client.configure do |config|
66
+ # config.timeout = 10.0
67
+ # end
69
68
  #
70
69
  # @yield [config] Configure the Client client.
71
70
  # @yieldparam config [Client::Configuration]
@@ -112,19 +111,15 @@ module Google
112
111
  ##
113
112
  # Create a new PrivateCatalog client object.
114
113
  #
115
- # ## Examples
116
- #
117
- # To create a new PrivateCatalog client with the default
118
- # configuration:
114
+ # @example
119
115
  #
120
- # client = ::Google::Cloud::PrivateCatalog::V1beta1::PrivateCatalog::Client.new
116
+ # # Create a client using the default configuration
117
+ # client = ::Google::Cloud::PrivateCatalog::V1beta1::PrivateCatalog::Client.new
121
118
  #
122
- # To create a new PrivateCatalog client with a custom
123
- # configuration:
124
- #
125
- # client = ::Google::Cloud::PrivateCatalog::V1beta1::PrivateCatalog::Client.new do |config|
126
- # config.timeout = 10.0
127
- # end
119
+ # # Create a client using a custom configuration
120
+ # client = ::Google::Cloud::PrivateCatalog::V1beta1::PrivateCatalog::Client.new do |config|
121
+ # config.timeout = 10.0
122
+ # end
128
123
  #
129
124
  # @yield [config] Configure the PrivateCatalog client.
130
125
  # @yieldparam config [Client::Configuration]
@@ -144,14 +139,13 @@ module Google
144
139
 
145
140
  # Create credentials
146
141
  credentials = @config.credentials
147
- # Use self-signed JWT if the scope and endpoint are unchanged from default,
142
+ # Use self-signed JWT if the endpoint is unchanged from default,
148
143
  # but only if the default endpoint does not have a region prefix.
149
- enable_self_signed_jwt = @config.scope == Client.configure.scope &&
150
- @config.endpoint == Client.configure.endpoint &&
144
+ enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
151
145
  !@config.endpoint.split(".").first.include?("-")
152
146
  credentials ||= Credentials.default scope: @config.scope,
153
147
  enable_self_signed_jwt: enable_self_signed_jwt
154
- if credentials.is_a?(String) || credentials.is_a?(Hash)
148
+ if credentials.is_a?(::String) || credentials.is_a?(::Hash)
155
149
  credentials = Credentials.new credentials, scope: @config.scope
156
150
  end
157
151
  @quota_project_id = @config.quota_project
@@ -211,6 +205,27 @@ module Google
211
205
  #
212
206
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
213
207
  #
208
+ # @example Basic example
209
+ # require "google/cloud/private_catalog/v1beta1"
210
+ #
211
+ # # Create a client object. The client can be reused for multiple calls.
212
+ # client = Google::Cloud::PrivateCatalog::V1beta1::PrivateCatalog::Client.new
213
+ #
214
+ # # Create a request. To set request fields, pass in keyword arguments.
215
+ # request = Google::Cloud::PrivateCatalog::V1beta1::SearchCatalogsRequest.new
216
+ #
217
+ # # Call the search_catalogs method.
218
+ # result = client.search_catalogs request
219
+ #
220
+ # # The returned object is of type Gapic::PagedEnumerable. You can
221
+ # # iterate over all elements by calling #each, and the enumerable
222
+ # # will lazily make API calls to fetch subsequent pages. Other
223
+ # # methods are also available for managing paging directly.
224
+ # result.each do |response|
225
+ # # Each element is of type ::Google::Cloud::PrivateCatalog::V1beta1::Catalog.
226
+ # p response
227
+ # end
228
+ #
214
229
  def search_catalogs request, options = nil
215
230
  raise ::ArgumentError, "request must be provided" if request.nil?
216
231
 
@@ -228,16 +243,20 @@ module Google
228
243
  gapic_version: ::Google::Cloud::PrivateCatalog::V1beta1::VERSION
229
244
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
230
245
 
231
- header_params = {
232
- "resource" => request.resource
233
- }
246
+ header_params = {}
247
+ if request.resource
248
+ header_params["resource"] = request.resource
249
+ end
250
+
234
251
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
235
252
  metadata[:"x-goog-request-params"] ||= request_params_header
236
253
 
237
254
  options.apply_defaults timeout: @config.rpcs.search_catalogs.timeout,
238
255
  metadata: metadata,
239
256
  retry_policy: @config.rpcs.search_catalogs.retry_policy
240
- options.apply_defaults metadata: @config.metadata,
257
+
258
+ options.apply_defaults timeout: @config.timeout,
259
+ metadata: @config.metadata,
241
260
  retry_policy: @config.retry_policy
242
261
 
243
262
  @private_catalog_stub.call_rpc :search_catalogs, request, options: options do |response, operation|
@@ -293,6 +312,27 @@ module Google
293
312
  #
294
313
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
295
314
  #
315
+ # @example Basic example
316
+ # require "google/cloud/private_catalog/v1beta1"
317
+ #
318
+ # # Create a client object. The client can be reused for multiple calls.
319
+ # client = Google::Cloud::PrivateCatalog::V1beta1::PrivateCatalog::Client.new
320
+ #
321
+ # # Create a request. To set request fields, pass in keyword arguments.
322
+ # request = Google::Cloud::PrivateCatalog::V1beta1::SearchProductsRequest.new
323
+ #
324
+ # # Call the search_products method.
325
+ # result = client.search_products request
326
+ #
327
+ # # The returned object is of type Gapic::PagedEnumerable. You can
328
+ # # iterate over all elements by calling #each, and the enumerable
329
+ # # will lazily make API calls to fetch subsequent pages. Other
330
+ # # methods are also available for managing paging directly.
331
+ # result.each do |response|
332
+ # # Each element is of type ::Google::Cloud::PrivateCatalog::V1beta1::Product.
333
+ # p response
334
+ # end
335
+ #
296
336
  def search_products request, options = nil
297
337
  raise ::ArgumentError, "request must be provided" if request.nil?
298
338
 
@@ -310,16 +350,20 @@ module Google
310
350
  gapic_version: ::Google::Cloud::PrivateCatalog::V1beta1::VERSION
311
351
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
312
352
 
313
- header_params = {
314
- "resource" => request.resource
315
- }
353
+ header_params = {}
354
+ if request.resource
355
+ header_params["resource"] = request.resource
356
+ end
357
+
316
358
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
317
359
  metadata[:"x-goog-request-params"] ||= request_params_header
318
360
 
319
361
  options.apply_defaults timeout: @config.rpcs.search_products.timeout,
320
362
  metadata: metadata,
321
363
  retry_policy: @config.rpcs.search_products.retry_policy
322
- options.apply_defaults metadata: @config.metadata,
364
+
365
+ options.apply_defaults timeout: @config.timeout,
366
+ metadata: @config.metadata,
323
367
  retry_policy: @config.retry_policy
324
368
 
325
369
  @private_catalog_stub.call_rpc :search_products, request, options: options do |response, operation|
@@ -375,6 +419,27 @@ module Google
375
419
  #
376
420
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
377
421
  #
422
+ # @example Basic example
423
+ # require "google/cloud/private_catalog/v1beta1"
424
+ #
425
+ # # Create a client object. The client can be reused for multiple calls.
426
+ # client = Google::Cloud::PrivateCatalog::V1beta1::PrivateCatalog::Client.new
427
+ #
428
+ # # Create a request. To set request fields, pass in keyword arguments.
429
+ # request = Google::Cloud::PrivateCatalog::V1beta1::SearchVersionsRequest.new
430
+ #
431
+ # # Call the search_versions method.
432
+ # result = client.search_versions request
433
+ #
434
+ # # The returned object is of type Gapic::PagedEnumerable. You can
435
+ # # iterate over all elements by calling #each, and the enumerable
436
+ # # will lazily make API calls to fetch subsequent pages. Other
437
+ # # methods are also available for managing paging directly.
438
+ # result.each do |response|
439
+ # # Each element is of type ::Google::Cloud::PrivateCatalog::V1beta1::Version.
440
+ # p response
441
+ # end
442
+ #
378
443
  def search_versions request, options = nil
379
444
  raise ::ArgumentError, "request must be provided" if request.nil?
380
445
 
@@ -392,16 +457,20 @@ module Google
392
457
  gapic_version: ::Google::Cloud::PrivateCatalog::V1beta1::VERSION
393
458
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
394
459
 
395
- header_params = {
396
- "resource" => request.resource
397
- }
460
+ header_params = {}
461
+ if request.resource
462
+ header_params["resource"] = request.resource
463
+ end
464
+
398
465
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
399
466
  metadata[:"x-goog-request-params"] ||= request_params_header
400
467
 
401
468
  options.apply_defaults timeout: @config.rpcs.search_versions.timeout,
402
469
  metadata: metadata,
403
470
  retry_policy: @config.rpcs.search_versions.retry_policy
404
- options.apply_defaults metadata: @config.metadata,
471
+
472
+ options.apply_defaults timeout: @config.timeout,
473
+ metadata: @config.metadata,
405
474
  retry_policy: @config.retry_policy
406
475
 
407
476
  @private_catalog_stub.call_rpc :search_versions, request, options: options do |response, operation|
@@ -426,22 +495,21 @@ module Google
426
495
  # Configuration can be applied globally to all clients, or to a single client
427
496
  # on construction.
428
497
  #
429
- # # Examples
430
- #
431
- # To modify the global config, setting the timeout for search_catalogs
432
- # to 20 seconds, and all remaining timeouts to 10 seconds:
433
- #
434
- # ::Google::Cloud::PrivateCatalog::V1beta1::PrivateCatalog::Client.configure do |config|
435
- # config.timeout = 10.0
436
- # config.rpcs.search_catalogs.timeout = 20.0
437
- # end
438
- #
439
- # To apply the above configuration only to a new client:
440
- #
441
- # client = ::Google::Cloud::PrivateCatalog::V1beta1::PrivateCatalog::Client.new do |config|
442
- # config.timeout = 10.0
443
- # config.rpcs.search_catalogs.timeout = 20.0
444
- # end
498
+ # @example
499
+ #
500
+ # # Modify the global config, setting the timeout for
501
+ # # search_catalogs to 20 seconds,
502
+ # # and all remaining timeouts to 10 seconds.
503
+ # ::Google::Cloud::PrivateCatalog::V1beta1::PrivateCatalog::Client.configure do |config|
504
+ # config.timeout = 10.0
505
+ # config.rpcs.search_catalogs.timeout = 20.0
506
+ # end
507
+ #
508
+ # # Apply the above configuration only to a new client.
509
+ # client = ::Google::Cloud::PrivateCatalog::V1beta1::PrivateCatalog::Client.new do |config|
510
+ # config.timeout = 10.0
511
+ # config.rpcs.search_catalogs.timeout = 20.0
512
+ # end
445
513
  #
446
514
  # @!attribute [rw] endpoint
447
515
  # The hostname or hostname:port of the service endpoint.
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module PrivateCatalog
23
23
  module V1beta1
24
- VERSION = "0.1.0"
24
+ VERSION = "0.1.4"
25
25
  end
26
26
  end
27
27
  end
@@ -1,8 +1,6 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/privatecatalog/v1beta1/private_catalog.proto
3
3
 
4
- require 'google/protobuf'
5
-
6
4
  require 'google/api/annotations_pb'
7
5
  require 'google/api/client_pb'
8
6
  require 'google/api/field_behavior_pb'
@@ -13,6 +11,8 @@ require 'google/protobuf/empty_pb'
13
11
  require 'google/protobuf/field_mask_pb'
14
12
  require 'google/protobuf/struct_pb'
15
13
  require 'google/protobuf/timestamp_pb'
14
+ require 'google/protobuf'
15
+
16
16
  Google::Protobuf::DescriptorPool.generated_pool.build do
17
17
  add_file("google/cloud/privatecatalog/v1beta1/private_catalog.proto", :syntax => :proto3) do
18
18
  add_message "google.cloud.privatecatalog.v1beta1.SearchCatalogsRequest" do
@@ -47,7 +47,7 @@ module Google
47
47
  # [google.cloud.privatecatalogproducer.v1beta.Version][].
48
48
  class Service
49
49
 
50
- include GRPC::GenericService
50
+ include ::GRPC::GenericService
51
51
 
52
52
  self.marshal_class_method = :encode
53
53
  self.unmarshal_class_method = :decode
@@ -60,6 +60,12 @@ module Google
60
60
  # in any arbitrary order, rather than the order the user originally
61
61
  # provided. Additionally, the list's order may or may not be stable.
62
62
  UNORDERED_LIST = 6
63
+
64
+ # Denotes that this field returns a non-empty default value if not set.
65
+ # This indicates that if the user provides the empty value in a request,
66
+ # a non-empty value will be returned. The user will not be aware of what
67
+ # non-empty value to expect.
68
+ NON_EMPTY_DEFAULT = 7
63
69
  end
64
70
  end
65
71
  end
@@ -33,11 +33,7 @@ module Google
33
33
  # // For Kubernetes resources, the format is {api group}/{kind}.
34
34
  # option (google.api.resource) = {
35
35
  # type: "pubsub.googleapis.com/Topic"
36
- # name_descriptor: {
37
- # pattern: "projects/{project}/topics/{topic}"
38
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
39
- # parent_name_extractor: "projects/{project}"
40
- # }
36
+ # pattern: "projects/{project}/topics/{topic}"
41
37
  # };
42
38
  # }
43
39
  #
@@ -45,10 +41,7 @@ module Google
45
41
  #
46
42
  # resources:
47
43
  # - type: "pubsub.googleapis.com/Topic"
48
- # name_descriptor:
49
- # - pattern: "projects/{project}/topics/{topic}"
50
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
51
- # parent_name_extractor: "projects/{project}"
44
+ # pattern: "projects/{project}/topics/{topic}"
52
45
  #
53
46
  # Sometimes, resources have multiple patterns, typically because they can
54
47
  # live under multiple parents.
@@ -58,26 +51,10 @@ module Google
58
51
  # message LogEntry {
59
52
  # option (google.api.resource) = {
60
53
  # type: "logging.googleapis.com/LogEntry"
61
- # name_descriptor: {
62
- # pattern: "projects/{project}/logs/{log}"
63
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
64
- # parent_name_extractor: "projects/{project}"
65
- # }
66
- # name_descriptor: {
67
- # pattern: "folders/{folder}/logs/{log}"
68
- # parent_type: "cloudresourcemanager.googleapis.com/Folder"
69
- # parent_name_extractor: "folders/{folder}"
70
- # }
71
- # name_descriptor: {
72
- # pattern: "organizations/{organization}/logs/{log}"
73
- # parent_type: "cloudresourcemanager.googleapis.com/Organization"
74
- # parent_name_extractor: "organizations/{organization}"
75
- # }
76
- # name_descriptor: {
77
- # pattern: "billingAccounts/{billing_account}/logs/{log}"
78
- # parent_type: "billing.googleapis.com/BillingAccount"
79
- # parent_name_extractor: "billingAccounts/{billing_account}"
80
- # }
54
+ # pattern: "projects/{project}/logs/{log}"
55
+ # pattern: "folders/{folder}/logs/{log}"
56
+ # pattern: "organizations/{organization}/logs/{log}"
57
+ # pattern: "billingAccounts/{billing_account}/logs/{log}"
81
58
  # };
82
59
  # }
83
60
  #
@@ -85,48 +62,10 @@ module Google
85
62
  #
86
63
  # resources:
87
64
  # - type: 'logging.googleapis.com/LogEntry'
88
- # name_descriptor:
89
- # - pattern: "projects/{project}/logs/{log}"
90
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
91
- # parent_name_extractor: "projects/{project}"
92
- # - pattern: "folders/{folder}/logs/{log}"
93
- # parent_type: "cloudresourcemanager.googleapis.com/Folder"
94
- # parent_name_extractor: "folders/{folder}"
95
- # - pattern: "organizations/{organization}/logs/{log}"
96
- # parent_type: "cloudresourcemanager.googleapis.com/Organization"
97
- # parent_name_extractor: "organizations/{organization}"
98
- # - pattern: "billingAccounts/{billing_account}/logs/{log}"
99
- # parent_type: "billing.googleapis.com/BillingAccount"
100
- # parent_name_extractor: "billingAccounts/{billing_account}"
101
- #
102
- # For flexible resources, the resource name doesn't contain parent names, but
103
- # the resource itself has parents for policy evaluation.
104
- #
105
- # Example:
106
- #
107
- # message Shelf {
108
- # option (google.api.resource) = {
109
- # type: "library.googleapis.com/Shelf"
110
- # name_descriptor: {
111
- # pattern: "shelves/{shelf}"
112
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
113
- # }
114
- # name_descriptor: {
115
- # pattern: "shelves/{shelf}"
116
- # parent_type: "cloudresourcemanager.googleapis.com/Folder"
117
- # }
118
- # };
119
- # }
120
- #
121
- # The ResourceDescriptor Yaml config will look like:
122
- #
123
- # resources:
124
- # - type: 'library.googleapis.com/Shelf'
125
- # name_descriptor:
126
- # - pattern: "shelves/{shelf}"
127
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
128
- # - pattern: "shelves/{shelf}"
129
- # parent_type: "cloudresourcemanager.googleapis.com/Folder"
65
+ # pattern: "projects/{project}/logs/{log}"
66
+ # pattern: "folders/{folder}/logs/{log}"
67
+ # pattern: "organizations/{organization}/logs/{log}"
68
+ # pattern: "billingAccounts/{billing_account}/logs/{log}"
130
69
  # @!attribute [rw] type
131
70
  # @return [::String]
132
71
  # The resource type. It must be in the format of
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-private_catalog-v1beta1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-06-21 00:00:00.000000000 Z
11
+ date: 2022-01-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.5'
19
+ version: '0.7'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '0.5'
29
+ version: '0.7'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -210,7 +210,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
210
210
  - !ruby/object:Gem::Version
211
211
  version: '0'
212
212
  requirements: []
213
- rubygems_version: 3.2.17
213
+ rubygems_version: 3.3.4
214
214
  signing_key:
215
215
  specification_version: 4
216
216
  summary: API Client library for the Private Catalog V1beta1 API