google-cloud-private_catalog-v1beta1 0.4.0 → 0.5.0

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: 3e404768eb421d8335168a5a0d700e69f5bd73b8dd17499544d3bf2141c4b08a
4
- data.tar.gz: 6908999d6090f0f34f32c3572571916265b4d0bb109f6700d1ba293de6359e33
3
+ metadata.gz: e37d81493148f401381d5c04e1aff082964872ae60229b4b019681a146bb4d23
4
+ data.tar.gz: d4e0c4c1e55f776f8a9ef2d7bb4ae7dc179b5d8c2fc43b027fb28f4ae638b7c7
5
5
  SHA512:
6
- metadata.gz: 814cb3a1a311c8b7e3bfcf710459f2ca33b8aa6b4201f699b559460f1bec1efe9abc23741dab58f2a19b1ee01609e1a994b6f8b716fba65b74fa697d121fbb5f
7
- data.tar.gz: 1317582853608dbc08a4008c670aba839cb3754bb597e976e2ee703f9355de6afa1682ea214a5d008ee1de5448c4c944b62fe2422170c2c5d2287edeaf07bc3e
6
+ metadata.gz: 3e3cf3f758b8a7524b6ca1595b22824f310434dbb10dbb8fde1bca61daae8724871885c17cdcaae990871776dbc944125f18624bfefd365dd8d813285b027690
7
+ data.tar.gz: 5c5fed3852f6a6eca022545d3724e1134222d2a95e628071d1a904a5f4056c4df17fa91d5950ee1d64fda71c3d065b33ce3c8c3476bca5e2315713f1fce5c89f
@@ -141,7 +141,7 @@ module Google
141
141
  credentials = @config.credentials
142
142
  # Use self-signed JWT if the endpoint is unchanged from default,
143
143
  # but only if the default endpoint does not have a region prefix.
144
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
144
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
145
145
  !@config.endpoint.split(".").first.include?("-")
146
146
  credentials ||= Credentials.default scope: @config.scope,
147
147
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -156,7 +156,8 @@ module Google
156
156
  credentials: credentials,
157
157
  endpoint: @config.endpoint,
158
158
  channel_args: @config.channel_args,
159
- interceptors: @config.interceptors
159
+ interceptors: @config.interceptors,
160
+ channel_pool_config: @config.channel_pool
160
161
  )
161
162
  end
162
163
 
@@ -558,7 +559,9 @@ module Google
558
559
  class Configuration
559
560
  extend ::Gapic::Config
560
561
 
561
- config_attr :endpoint, "cloudprivatecatalog.googleapis.com", ::String
562
+ DEFAULT_ENDPOINT = "cloudprivatecatalog.googleapis.com"
563
+
564
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
562
565
  config_attr :credentials, nil do |value|
563
566
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
564
567
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -593,6 +596,14 @@ module Google
593
596
  end
594
597
  end
595
598
 
599
+ ##
600
+ # Configuration for the channel pool
601
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
602
+ #
603
+ def channel_pool
604
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
605
+ end
606
+
596
607
  ##
597
608
  # Configuration RPC class for the PrivateCatalog API.
598
609
  #
@@ -137,7 +137,7 @@ module Google
137
137
  credentials = @config.credentials
138
138
  # Use self-signed JWT if the endpoint is unchanged from default,
139
139
  # but only if the default endpoint does not have a region prefix.
140
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
140
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
141
141
  !@config.endpoint.split(".").first.include?("-")
142
142
  credentials ||= Credentials.default scope: @config.scope,
143
143
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -194,6 +194,26 @@ module Google
194
194
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::PrivateCatalog::V1beta1::Catalog>]
195
195
  #
196
196
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
197
+ #
198
+ # @example Basic example
199
+ # require "google/cloud/private_catalog/v1beta1"
200
+ #
201
+ # # Create a client object. The client can be reused for multiple calls.
202
+ # client = Google::Cloud::PrivateCatalog::V1beta1::PrivateCatalog::Rest::Client.new
203
+ #
204
+ # # Create a request. To set request fields, pass in keyword arguments.
205
+ # request = Google::Cloud::PrivateCatalog::V1beta1::SearchCatalogsRequest.new
206
+ #
207
+ # # Call the search_catalogs method.
208
+ # result = client.search_catalogs request
209
+ #
210
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
211
+ # # over elements, and API calls will be issued to fetch pages as needed.
212
+ # result.each do |item|
213
+ # # Each element is of type ::Google::Cloud::PrivateCatalog::V1beta1::Catalog.
214
+ # p item
215
+ # end
216
+ #
197
217
  def search_catalogs request, options = nil
198
218
  raise ::ArgumentError, "request must be provided" if request.nil?
199
219
 
@@ -272,6 +292,26 @@ module Google
272
292
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::PrivateCatalog::V1beta1::Product>]
273
293
  #
274
294
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
295
+ #
296
+ # @example Basic example
297
+ # require "google/cloud/private_catalog/v1beta1"
298
+ #
299
+ # # Create a client object. The client can be reused for multiple calls.
300
+ # client = Google::Cloud::PrivateCatalog::V1beta1::PrivateCatalog::Rest::Client.new
301
+ #
302
+ # # Create a request. To set request fields, pass in keyword arguments.
303
+ # request = Google::Cloud::PrivateCatalog::V1beta1::SearchProductsRequest.new
304
+ #
305
+ # # Call the search_products method.
306
+ # result = client.search_products request
307
+ #
308
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
309
+ # # over elements, and API calls will be issued to fetch pages as needed.
310
+ # result.each do |item|
311
+ # # Each element is of type ::Google::Cloud::PrivateCatalog::V1beta1::Product.
312
+ # p item
313
+ # end
314
+ #
275
315
  def search_products request, options = nil
276
316
  raise ::ArgumentError, "request must be provided" if request.nil?
277
317
 
@@ -350,6 +390,26 @@ module Google
350
390
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::PrivateCatalog::V1beta1::Version>]
351
391
  #
352
392
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
393
+ #
394
+ # @example Basic example
395
+ # require "google/cloud/private_catalog/v1beta1"
396
+ #
397
+ # # Create a client object. The client can be reused for multiple calls.
398
+ # client = Google::Cloud::PrivateCatalog::V1beta1::PrivateCatalog::Rest::Client.new
399
+ #
400
+ # # Create a request. To set request fields, pass in keyword arguments.
401
+ # request = Google::Cloud::PrivateCatalog::V1beta1::SearchVersionsRequest.new
402
+ #
403
+ # # Call the search_versions method.
404
+ # result = client.search_versions request
405
+ #
406
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
407
+ # # over elements, and API calls will be issued to fetch pages as needed.
408
+ # result.each do |item|
409
+ # # Each element is of type ::Google::Cloud::PrivateCatalog::V1beta1::Version.
410
+ # p item
411
+ # end
412
+ #
353
413
  def search_versions request, options = nil
354
414
  raise ::ArgumentError, "request must be provided" if request.nil?
355
415
 
@@ -459,7 +519,9 @@ module Google
459
519
  class Configuration
460
520
  extend ::Gapic::Config
461
521
 
462
- config_attr :endpoint, "cloudprivatecatalog.googleapis.com", ::String
522
+ DEFAULT_ENDPOINT = "cloudprivatecatalog.googleapis.com"
523
+
524
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
463
525
  config_attr :credentials, nil do |value|
464
526
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
465
527
  allowed.any? { |klass| klass === value }
@@ -59,7 +59,7 @@ module Google
59
59
 
60
60
  verb, uri, query_string_params, body = ServiceStub.transcode_search_catalogs_request request_pb
61
61
  query_string_params = if query_string_params.any?
62
- query_string_params.to_h { |p| p.split("=", 2) }
62
+ query_string_params.to_h { |p| p.split "=", 2 }
63
63
  else
64
64
  {}
65
65
  end
@@ -97,7 +97,7 @@ module Google
97
97
 
98
98
  verb, uri, query_string_params, body = ServiceStub.transcode_search_products_request request_pb
99
99
  query_string_params = if query_string_params.any?
100
- query_string_params.to_h { |p| p.split("=", 2) }
100
+ query_string_params.to_h { |p| p.split "=", 2 }
101
101
  else
102
102
  {}
103
103
  end
@@ -135,7 +135,7 @@ module Google
135
135
 
136
136
  verb, uri, query_string_params, body = ServiceStub.transcode_search_versions_request request_pb
137
137
  query_string_params = if query_string_params.any?
138
- query_string_params.to_h { |p| p.split("=", 2) }
138
+ query_string_params.to_h { |p| p.split "=", 2 }
139
139
  else
140
140
  {}
141
141
  end
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module PrivateCatalog
23
23
  module V1beta1
24
- VERSION = "0.4.0"
24
+ VERSION = "0.5.0"
25
25
  end
26
26
  end
27
27
  end
@@ -66,6 +66,20 @@ module Google
66
66
  # a non-empty value will be returned. The user will not be aware of what
67
67
  # non-empty value to expect.
68
68
  NON_EMPTY_DEFAULT = 7
69
+
70
+ # Denotes that the field in a resource (a message annotated with
71
+ # google.api.resource) is used in the resource name to uniquely identify the
72
+ # resource. For AIP-compliant APIs, this should only be applied to the
73
+ # `name` field on the resource.
74
+ #
75
+ # This behavior should not be applied to references to other resources within
76
+ # the message.
77
+ #
78
+ # The identifier field of resources often have different field behavior
79
+ # depending on the request it is embedded in (e.g. for Create methods name
80
+ # is optional and unused, while for Update methods it is required). Instead
81
+ # of method-specific annotations, only `IDENTIFIER` is required.
82
+ IDENTIFIER = 8
69
83
  end
70
84
  end
71
85
  end
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.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-06-01 00:00:00.000000000 Z
11
+ date: 2023-09-12 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.19.0
19
+ version: 0.20.0
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.19.0
29
+ version: 0.20.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -215,7 +215,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
215
215
  - !ruby/object:Gem::Version
216
216
  version: '0'
217
217
  requirements: []
218
- rubygems_version: 3.4.2
218
+ rubygems_version: 3.4.19
219
219
  signing_key:
220
220
  specification_version: 4
221
221
  summary: Enable cloud users to discover private catalogs and products in their organizations.