google-cloud-private_catalog-v1beta1 0.7.0 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +30 -20
- data/lib/google/cloud/private_catalog/v1beta1/private_catalog/client.rb +39 -7
- data/lib/google/cloud/private_catalog/v1beta1/private_catalog/rest/client.rb +39 -7
- data/lib/google/cloud/private_catalog/v1beta1/private_catalog/rest/service_stub.rb +38 -20
- data/lib/google/cloud/private_catalog/v1beta1/version.rb +1 -1
- data/proto_docs/google/api/client.rb +74 -10
- data/proto_docs/google/api/resource.rb +7 -2
- data/proto_docs/google/longrunning/operations.rb +19 -14
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2d8dab5f57a4792ecb1701a022a112fe5f245ad3e979d5fdced738c5376b50eb
|
4
|
+
data.tar.gz: a5ef3f9270fdb7046f75c88adb7f1f1c9fcf785d8c94dc4cd54f52a15a8b5899
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 83e77e1cd3a13fea0bb418c82368201059d26e5daf1b60ae55d8e4786b37b949db5b4fe3af850af3b953b56a05e2c672d38b87e4e3117b6c85ee7c8dc455b40b
|
7
|
+
data.tar.gz: c851d563ca9223db65afd2d74141d512d9d7fa5e8fbd45d2f436e1ded88bac6b9b60563fb68b2c481563504531f8d7f0b583ffd8ec3f7e98b98f92f4183d230c
|
data/README.md
CHANGED
@@ -43,33 +43,43 @@ for class and method documentation.
|
|
43
43
|
See also the [Product Documentation](https://cloud.google.com/private-catalog/)
|
44
44
|
for general usage information.
|
45
45
|
|
46
|
-
##
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
46
|
+
## Debug Logging
|
47
|
+
|
48
|
+
This library comes with opt-in Debug Logging that can help you troubleshoot
|
49
|
+
your application's integration with the API. When logging is activated, key
|
50
|
+
events such as requests and responses, along with data payloads and metadata
|
51
|
+
such as headers and client configuration, are logged to the standard error
|
52
|
+
stream.
|
53
|
+
|
54
|
+
**WARNING:** Client Library Debug Logging includes your data payloads in
|
55
|
+
plaintext, which could include sensitive data such as PII for yourself or your
|
56
|
+
customers, private keys, or other security data that could be compromising if
|
57
|
+
leaked. Always practice good data hygiene with your application logs, and follow
|
58
|
+
the principle of least access. Google also recommends that Client Library Debug
|
59
|
+
Logging be enabled only temporarily during active debugging, and not used
|
60
|
+
permanently in production.
|
61
|
+
|
62
|
+
To enable logging, set the environment variable `GOOGLE_SDK_RUBY_LOGGING_GEMS`
|
63
|
+
to the value `all`. Alternatively, you can set the value to a comma-delimited
|
64
|
+
list of client library gem names. This will select the default logging behavior,
|
65
|
+
which writes logs to the standard error stream. On a local workstation, this may
|
66
|
+
result in logs appearing on the console. When running on a Google Cloud hosting
|
67
|
+
service such as [Google Cloud Run](https://cloud.google.com/run), this generally
|
68
|
+
results in logs appearing alongside your application logs in the
|
69
|
+
[Google Cloud Logging](https://cloud.google.com/logging/) service.
|
70
|
+
|
71
|
+
You can customize logging by modifying the `logger` configuration when
|
72
|
+
constructing a client object. For example:
|
55
73
|
|
56
74
|
```ruby
|
75
|
+
require "google/cloud/private_catalog/v1beta1"
|
57
76
|
require "logger"
|
58
77
|
|
59
|
-
|
60
|
-
|
61
|
-
def logger
|
62
|
-
LOGGER
|
63
|
-
end
|
64
|
-
end
|
65
|
-
|
66
|
-
# Define a gRPC module-level logger method before grpc/logconfig.rb loads.
|
67
|
-
module GRPC
|
68
|
-
extend MyLogger
|
78
|
+
client = ::Google::Cloud::PrivateCatalog::V1beta1::PrivateCatalog::Client.new do |config|
|
79
|
+
config.logger = Logger.new "my-app.log"
|
69
80
|
end
|
70
81
|
```
|
71
82
|
|
72
|
-
|
73
83
|
## Google Cloud Samples
|
74
84
|
|
75
85
|
To browse ready to use code samples check [Google Cloud Samples](https://cloud.google.com/docs/samples).
|
@@ -50,6 +50,9 @@ module Google
|
|
50
50
|
# [google.cloud.privatecatalogproducer.v1beta.Version][].
|
51
51
|
#
|
52
52
|
class Client
|
53
|
+
# @private
|
54
|
+
API_VERSION = ""
|
55
|
+
|
53
56
|
# @private
|
54
57
|
DEFAULT_ENDPOINT_TEMPLATE = "cloudprivatecatalog.$UNIVERSE_DOMAIN$"
|
55
58
|
|
@@ -172,8 +175,28 @@ module Google
|
|
172
175
|
universe_domain: @config.universe_domain,
|
173
176
|
channel_args: @config.channel_args,
|
174
177
|
interceptors: @config.interceptors,
|
175
|
-
channel_pool_config: @config.channel_pool
|
178
|
+
channel_pool_config: @config.channel_pool,
|
179
|
+
logger: @config.logger
|
176
180
|
)
|
181
|
+
|
182
|
+
@private_catalog_stub.stub_logger&.info do |entry|
|
183
|
+
entry.set_system_name
|
184
|
+
entry.set_service
|
185
|
+
entry.message = "Created client for #{entry.service}"
|
186
|
+
entry.set_credentials_fields credentials
|
187
|
+
entry.set "customEndpoint", @config.endpoint if @config.endpoint
|
188
|
+
entry.set "defaultTimeout", @config.timeout if @config.timeout
|
189
|
+
entry.set "quotaProject", @quota_project_id if @quota_project_id
|
190
|
+
end
|
191
|
+
end
|
192
|
+
|
193
|
+
##
|
194
|
+
# The logger used for request/response debug logging.
|
195
|
+
#
|
196
|
+
# @return [Logger]
|
197
|
+
#
|
198
|
+
def logger
|
199
|
+
@private_catalog_stub.logger
|
177
200
|
end
|
178
201
|
|
179
202
|
# Service calls
|
@@ -251,10 +274,11 @@ module Google
|
|
251
274
|
# Customize the options with defaults
|
252
275
|
metadata = @config.rpcs.search_catalogs.metadata.to_h
|
253
276
|
|
254
|
-
# Set x-goog-api-client
|
277
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
255
278
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
256
279
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
257
280
|
gapic_version: ::Google::Cloud::PrivateCatalog::V1beta1::VERSION
|
281
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
258
282
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
259
283
|
|
260
284
|
header_params = {}
|
@@ -276,7 +300,7 @@ module Google
|
|
276
300
|
@private_catalog_stub.call_rpc :search_catalogs, request, options: options do |response, operation|
|
277
301
|
response = ::Gapic::PagedEnumerable.new @private_catalog_stub, :search_catalogs, request, response, operation, options
|
278
302
|
yield response, operation if block_given?
|
279
|
-
|
303
|
+
throw :response, response
|
280
304
|
end
|
281
305
|
rescue ::GRPC::BadStatus => e
|
282
306
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -356,10 +380,11 @@ module Google
|
|
356
380
|
# Customize the options with defaults
|
357
381
|
metadata = @config.rpcs.search_products.metadata.to_h
|
358
382
|
|
359
|
-
# Set x-goog-api-client
|
383
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
360
384
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
361
385
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
362
386
|
gapic_version: ::Google::Cloud::PrivateCatalog::V1beta1::VERSION
|
387
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
363
388
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
364
389
|
|
365
390
|
header_params = {}
|
@@ -381,7 +406,7 @@ module Google
|
|
381
406
|
@private_catalog_stub.call_rpc :search_products, request, options: options do |response, operation|
|
382
407
|
response = ::Gapic::PagedEnumerable.new @private_catalog_stub, :search_products, request, response, operation, options
|
383
408
|
yield response, operation if block_given?
|
384
|
-
|
409
|
+
throw :response, response
|
385
410
|
end
|
386
411
|
rescue ::GRPC::BadStatus => e
|
387
412
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -461,10 +486,11 @@ module Google
|
|
461
486
|
# Customize the options with defaults
|
462
487
|
metadata = @config.rpcs.search_versions.metadata.to_h
|
463
488
|
|
464
|
-
# Set x-goog-api-client
|
489
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
465
490
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
466
491
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
467
492
|
gapic_version: ::Google::Cloud::PrivateCatalog::V1beta1::VERSION
|
493
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
468
494
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
469
495
|
|
470
496
|
header_params = {}
|
@@ -486,7 +512,7 @@ module Google
|
|
486
512
|
@private_catalog_stub.call_rpc :search_versions, request, options: options do |response, operation|
|
487
513
|
response = ::Gapic::PagedEnumerable.new @private_catalog_stub, :search_versions, request, response, operation, options
|
488
514
|
yield response, operation if block_given?
|
489
|
-
|
515
|
+
throw :response, response
|
490
516
|
end
|
491
517
|
rescue ::GRPC::BadStatus => e
|
492
518
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -575,6 +601,11 @@ module Google
|
|
575
601
|
# default endpoint URL. The default value of nil uses the environment
|
576
602
|
# universe (usually the default "googleapis.com" universe).
|
577
603
|
# @return [::String,nil]
|
604
|
+
# @!attribute [rw] logger
|
605
|
+
# A custom logger to use for request/response debug logging, or the value
|
606
|
+
# `:default` (the default) to construct a default logger, or `nil` to
|
607
|
+
# explicitly disable logging.
|
608
|
+
# @return [::Logger,:default,nil]
|
578
609
|
#
|
579
610
|
class Configuration
|
580
611
|
extend ::Gapic::Config
|
@@ -599,6 +630,7 @@ module Google
|
|
599
630
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
600
631
|
config_attr :quota_project, nil, ::String, nil
|
601
632
|
config_attr :universe_domain, nil, ::String, nil
|
633
|
+
config_attr :logger, :default, ::Logger, nil, :default
|
602
634
|
|
603
635
|
# @private
|
604
636
|
def initialize parent_config = nil
|
@@ -52,6 +52,9 @@ module Google
|
|
52
52
|
# [google.cloud.privatecatalogproducer.v1beta.Version][].
|
53
53
|
#
|
54
54
|
class Client
|
55
|
+
# @private
|
56
|
+
API_VERSION = ""
|
57
|
+
|
55
58
|
# @private
|
56
59
|
DEFAULT_ENDPOINT_TEMPLATE = "cloudprivatecatalog.$UNIVERSE_DOMAIN$"
|
57
60
|
|
@@ -165,8 +168,28 @@ module Google
|
|
165
168
|
endpoint: @config.endpoint,
|
166
169
|
endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
|
167
170
|
universe_domain: @config.universe_domain,
|
168
|
-
credentials: credentials
|
171
|
+
credentials: credentials,
|
172
|
+
logger: @config.logger
|
169
173
|
)
|
174
|
+
|
175
|
+
@private_catalog_stub.logger(stub: true)&.info do |entry|
|
176
|
+
entry.set_system_name
|
177
|
+
entry.set_service
|
178
|
+
entry.message = "Created client for #{entry.service}"
|
179
|
+
entry.set_credentials_fields credentials
|
180
|
+
entry.set "customEndpoint", @config.endpoint if @config.endpoint
|
181
|
+
entry.set "defaultTimeout", @config.timeout if @config.timeout
|
182
|
+
entry.set "quotaProject", @quota_project_id if @quota_project_id
|
183
|
+
end
|
184
|
+
end
|
185
|
+
|
186
|
+
##
|
187
|
+
# The logger used for request/response debug logging.
|
188
|
+
#
|
189
|
+
# @return [Logger]
|
190
|
+
#
|
191
|
+
def logger
|
192
|
+
@private_catalog_stub.logger
|
170
193
|
end
|
171
194
|
|
172
195
|
# Service calls
|
@@ -243,12 +266,13 @@ module Google
|
|
243
266
|
# Customize the options with defaults
|
244
267
|
call_metadata = @config.rpcs.search_catalogs.metadata.to_h
|
245
268
|
|
246
|
-
# Set x-goog-api-client
|
269
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
247
270
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
248
271
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
249
272
|
gapic_version: ::Google::Cloud::PrivateCatalog::V1beta1::VERSION,
|
250
273
|
transports_version_send: [:rest]
|
251
274
|
|
275
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
252
276
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
253
277
|
|
254
278
|
options.apply_defaults timeout: @config.rpcs.search_catalogs.timeout,
|
@@ -262,7 +286,7 @@ module Google
|
|
262
286
|
@private_catalog_stub.search_catalogs request, options do |result, operation|
|
263
287
|
result = ::Gapic::Rest::PagedEnumerable.new @private_catalog_stub, :search_catalogs, "catalogs", request, result, options
|
264
288
|
yield result, operation if block_given?
|
265
|
-
|
289
|
+
throw :response, result
|
266
290
|
end
|
267
291
|
rescue ::Gapic::Rest::Error => e
|
268
292
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -341,12 +365,13 @@ module Google
|
|
341
365
|
# Customize the options with defaults
|
342
366
|
call_metadata = @config.rpcs.search_products.metadata.to_h
|
343
367
|
|
344
|
-
# Set x-goog-api-client
|
368
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
345
369
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
346
370
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
347
371
|
gapic_version: ::Google::Cloud::PrivateCatalog::V1beta1::VERSION,
|
348
372
|
transports_version_send: [:rest]
|
349
373
|
|
374
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
350
375
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
351
376
|
|
352
377
|
options.apply_defaults timeout: @config.rpcs.search_products.timeout,
|
@@ -360,7 +385,7 @@ module Google
|
|
360
385
|
@private_catalog_stub.search_products request, options do |result, operation|
|
361
386
|
result = ::Gapic::Rest::PagedEnumerable.new @private_catalog_stub, :search_products, "products", request, result, options
|
362
387
|
yield result, operation if block_given?
|
363
|
-
|
388
|
+
throw :response, result
|
364
389
|
end
|
365
390
|
rescue ::Gapic::Rest::Error => e
|
366
391
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -439,12 +464,13 @@ module Google
|
|
439
464
|
# Customize the options with defaults
|
440
465
|
call_metadata = @config.rpcs.search_versions.metadata.to_h
|
441
466
|
|
442
|
-
# Set x-goog-api-client
|
467
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
443
468
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
444
469
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
445
470
|
gapic_version: ::Google::Cloud::PrivateCatalog::V1beta1::VERSION,
|
446
471
|
transports_version_send: [:rest]
|
447
472
|
|
473
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
448
474
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
449
475
|
|
450
476
|
options.apply_defaults timeout: @config.rpcs.search_versions.timeout,
|
@@ -458,7 +484,7 @@ module Google
|
|
458
484
|
@private_catalog_stub.search_versions request, options do |result, operation|
|
459
485
|
result = ::Gapic::Rest::PagedEnumerable.new @private_catalog_stub, :search_versions, "versions", request, result, options
|
460
486
|
yield result, operation if block_given?
|
461
|
-
|
487
|
+
throw :response, result
|
462
488
|
end
|
463
489
|
rescue ::Gapic::Rest::Error => e
|
464
490
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -538,6 +564,11 @@ module Google
|
|
538
564
|
# default endpoint URL. The default value of nil uses the environment
|
539
565
|
# universe (usually the default "googleapis.com" universe).
|
540
566
|
# @return [::String,nil]
|
567
|
+
# @!attribute [rw] logger
|
568
|
+
# A custom logger to use for request/response debug logging, or the value
|
569
|
+
# `:default` (the default) to construct a default logger, or `nil` to
|
570
|
+
# explicitly disable logging.
|
571
|
+
# @return [::Logger,:default,nil]
|
541
572
|
#
|
542
573
|
class Configuration
|
543
574
|
extend ::Gapic::Config
|
@@ -559,6 +590,7 @@ module Google
|
|
559
590
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
560
591
|
config_attr :quota_project, nil, ::String, nil
|
561
592
|
config_attr :universe_domain, nil, ::String, nil
|
593
|
+
config_attr :logger, :default, ::Logger, nil, :default
|
562
594
|
|
563
595
|
# @private
|
564
596
|
def initialize parent_config = nil
|
@@ -30,7 +30,8 @@ module Google
|
|
30
30
|
# including transcoding, making the REST call, and deserialing the response.
|
31
31
|
#
|
32
32
|
class ServiceStub
|
33
|
-
|
33
|
+
# @private
|
34
|
+
def initialize endpoint:, endpoint_template:, universe_domain:, credentials:, logger:
|
34
35
|
# These require statements are intentionally placed here to initialize
|
35
36
|
# the REST modules only when it's required.
|
36
37
|
require "gapic/rest"
|
@@ -40,7 +41,9 @@ module Google
|
|
40
41
|
universe_domain: universe_domain,
|
41
42
|
credentials: credentials,
|
42
43
|
numeric_enums: true,
|
43
|
-
|
44
|
+
service_name: self.class,
|
45
|
+
raise_faraday_errors: false,
|
46
|
+
logger: logger
|
44
47
|
end
|
45
48
|
|
46
49
|
##
|
@@ -61,6 +64,15 @@ module Google
|
|
61
64
|
@client_stub.endpoint
|
62
65
|
end
|
63
66
|
|
67
|
+
##
|
68
|
+
# The logger used for request/response debug logging.
|
69
|
+
#
|
70
|
+
# @return [Logger]
|
71
|
+
#
|
72
|
+
def logger stub: false
|
73
|
+
stub ? @client_stub.stub_logger : @client_stub.logger
|
74
|
+
end
|
75
|
+
|
64
76
|
##
|
65
77
|
# Baseline implementation for the search_catalogs REST call
|
66
78
|
#
|
@@ -87,16 +99,18 @@ module Google
|
|
87
99
|
|
88
100
|
response = @client_stub.make_http_request(
|
89
101
|
verb,
|
90
|
-
uri:
|
91
|
-
body:
|
92
|
-
params:
|
102
|
+
uri: uri,
|
103
|
+
body: body || "",
|
104
|
+
params: query_string_params,
|
105
|
+
method_name: "search_catalogs",
|
93
106
|
options: options
|
94
107
|
)
|
95
108
|
operation = ::Gapic::Rest::TransportOperation.new response
|
96
109
|
result = ::Google::Cloud::PrivateCatalog::V1beta1::SearchCatalogsResponse.decode_json response.body, ignore_unknown_fields: true
|
97
|
-
|
98
|
-
|
99
|
-
|
110
|
+
catch :response do
|
111
|
+
yield result, operation if block_given?
|
112
|
+
result
|
113
|
+
end
|
100
114
|
end
|
101
115
|
|
102
116
|
##
|
@@ -125,16 +139,18 @@ module Google
|
|
125
139
|
|
126
140
|
response = @client_stub.make_http_request(
|
127
141
|
verb,
|
128
|
-
uri:
|
129
|
-
body:
|
130
|
-
params:
|
142
|
+
uri: uri,
|
143
|
+
body: body || "",
|
144
|
+
params: query_string_params,
|
145
|
+
method_name: "search_products",
|
131
146
|
options: options
|
132
147
|
)
|
133
148
|
operation = ::Gapic::Rest::TransportOperation.new response
|
134
149
|
result = ::Google::Cloud::PrivateCatalog::V1beta1::SearchProductsResponse.decode_json response.body, ignore_unknown_fields: true
|
135
|
-
|
136
|
-
|
137
|
-
|
150
|
+
catch :response do
|
151
|
+
yield result, operation if block_given?
|
152
|
+
result
|
153
|
+
end
|
138
154
|
end
|
139
155
|
|
140
156
|
##
|
@@ -163,16 +179,18 @@ module Google
|
|
163
179
|
|
164
180
|
response = @client_stub.make_http_request(
|
165
181
|
verb,
|
166
|
-
uri:
|
167
|
-
body:
|
168
|
-
params:
|
182
|
+
uri: uri,
|
183
|
+
body: body || "",
|
184
|
+
params: query_string_params,
|
185
|
+
method_name: "search_versions",
|
169
186
|
options: options
|
170
187
|
)
|
171
188
|
operation = ::Gapic::Rest::TransportOperation.new response
|
172
189
|
result = ::Google::Cloud::PrivateCatalog::V1beta1::SearchVersionsResponse.decode_json response.body, ignore_unknown_fields: true
|
173
|
-
|
174
|
-
|
175
|
-
|
190
|
+
catch :response do
|
191
|
+
yield result, operation if block_given?
|
192
|
+
result
|
193
|
+
end
|
176
194
|
end
|
177
195
|
|
178
196
|
##
|
@@ -28,6 +28,9 @@ module Google
|
|
28
28
|
# @!attribute [rw] destinations
|
29
29
|
# @return [::Array<::Google::Api::ClientLibraryDestination>]
|
30
30
|
# The destination where API teams want this client library to be published.
|
31
|
+
# @!attribute [rw] selective_gapic_generation
|
32
|
+
# @return [::Google::Api::SelectiveGapicGeneration]
|
33
|
+
# Configuration for which RPCs should be generated in the GAPIC client.
|
31
34
|
class CommonLanguageSettings
|
32
35
|
include ::Google::Protobuf::MessageExts
|
33
36
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -118,6 +121,10 @@ module Google
|
|
118
121
|
# @return [::String]
|
119
122
|
# Optional link to proto reference documentation. Example:
|
120
123
|
# https://cloud.google.com/pubsub/lite/docs/reference/rpc
|
124
|
+
# @!attribute [rw] rest_reference_documentation_uri
|
125
|
+
# @return [::String]
|
126
|
+
# Optional link to REST reference documentation. Example:
|
127
|
+
# https://cloud.google.com/pubsub/lite/docs/reference/rest
|
121
128
|
class Publishing
|
122
129
|
include ::Google::Protobuf::MessageExts
|
123
130
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -192,9 +199,32 @@ module Google
|
|
192
199
|
# @!attribute [rw] common
|
193
200
|
# @return [::Google::Api::CommonLanguageSettings]
|
194
201
|
# Some settings.
|
202
|
+
# @!attribute [rw] experimental_features
|
203
|
+
# @return [::Google::Api::PythonSettings::ExperimentalFeatures]
|
204
|
+
# Experimental features to be included during client library generation.
|
195
205
|
class PythonSettings
|
196
206
|
include ::Google::Protobuf::MessageExts
|
197
207
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
208
|
+
|
209
|
+
# Experimental features to be included during client library generation.
|
210
|
+
# These fields will be deprecated once the feature graduates and is enabled
|
211
|
+
# by default.
|
212
|
+
# @!attribute [rw] rest_async_io_enabled
|
213
|
+
# @return [::Boolean]
|
214
|
+
# Enables generation of asynchronous REST clients if `rest` transport is
|
215
|
+
# enabled. By default, asynchronous REST clients will not be generated.
|
216
|
+
# This feature will be enabled by default 1 month after launching the
|
217
|
+
# feature in preview packages.
|
218
|
+
# @!attribute [rw] protobuf_pythonic_types_enabled
|
219
|
+
# @return [::Boolean]
|
220
|
+
# Enables generation of protobuf code using new types that are more
|
221
|
+
# Pythonic which are included in `protobuf>=5.29.x`. This feature will be
|
222
|
+
# enabled by default 1 month after launching the feature in preview
|
223
|
+
# packages.
|
224
|
+
class ExperimentalFeatures
|
225
|
+
include ::Google::Protobuf::MessageExts
|
226
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
227
|
+
end
|
198
228
|
end
|
199
229
|
|
200
230
|
# Settings for Node client libraries.
|
@@ -276,9 +306,28 @@ module Google
|
|
276
306
|
# @!attribute [rw] common
|
277
307
|
# @return [::Google::Api::CommonLanguageSettings]
|
278
308
|
# Some settings.
|
309
|
+
# @!attribute [rw] renamed_services
|
310
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
311
|
+
# Map of service names to renamed services. Keys are the package relative
|
312
|
+
# service names and values are the name to be used for the service client
|
313
|
+
# and call options.
|
314
|
+
#
|
315
|
+
# publishing:
|
316
|
+
# go_settings:
|
317
|
+
# renamed_services:
|
318
|
+
# Publisher: TopicAdmin
|
279
319
|
class GoSettings
|
280
320
|
include ::Google::Protobuf::MessageExts
|
281
321
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
322
|
+
|
323
|
+
# @!attribute [rw] key
|
324
|
+
# @return [::String]
|
325
|
+
# @!attribute [rw] value
|
326
|
+
# @return [::String]
|
327
|
+
class RenamedServicesEntry
|
328
|
+
include ::Google::Protobuf::MessageExts
|
329
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
330
|
+
end
|
282
331
|
end
|
283
332
|
|
284
333
|
# Describes the generator configuration for a method.
|
@@ -286,6 +335,13 @@ module Google
|
|
286
335
|
# @return [::String]
|
287
336
|
# The fully qualified name of the method, for which the options below apply.
|
288
337
|
# This is used to find the method to apply the options.
|
338
|
+
#
|
339
|
+
# Example:
|
340
|
+
#
|
341
|
+
# publishing:
|
342
|
+
# method_settings:
|
343
|
+
# - selector: google.storage.control.v2.StorageControl.CreateFolder
|
344
|
+
# # method settings for CreateFolder...
|
289
345
|
# @!attribute [rw] long_running
|
290
346
|
# @return [::Google::Api::MethodSettings::LongRunning]
|
291
347
|
# Describes settings to use for long-running operations when generating
|
@@ -294,17 +350,14 @@ module Google
|
|
294
350
|
#
|
295
351
|
# Example of a YAML configuration::
|
296
352
|
#
|
297
|
-
#
|
298
|
-
#
|
353
|
+
# publishing:
|
354
|
+
# method_settings:
|
299
355
|
# - selector: google.cloud.speech.v2.Speech.BatchRecognize
|
300
356
|
# long_running:
|
301
|
-
# initial_poll_delay:
|
302
|
-
# seconds: 60 # 1 minute
|
357
|
+
# initial_poll_delay: 60s # 1 minute
|
303
358
|
# poll_delay_multiplier: 1.5
|
304
|
-
# max_poll_delay:
|
305
|
-
#
|
306
|
-
# total_poll_timeout:
|
307
|
-
# seconds: 54000 # 90 minutes
|
359
|
+
# max_poll_delay: 360s # 6 minutes
|
360
|
+
# total_poll_timeout: 54000s # 90 minutes
|
308
361
|
# @!attribute [rw] auto_populated_fields
|
309
362
|
# @return [::Array<::String>]
|
310
363
|
# List of top-level fields of the request message, that should be
|
@@ -313,8 +366,8 @@ module Google
|
|
313
366
|
#
|
314
367
|
# Example of a YAML configuration:
|
315
368
|
#
|
316
|
-
#
|
317
|
-
#
|
369
|
+
# publishing:
|
370
|
+
# method_settings:
|
318
371
|
# - selector: google.example.v1.ExampleService.CreateExample
|
319
372
|
# auto_populated_fields:
|
320
373
|
# - request_id
|
@@ -350,6 +403,17 @@ module Google
|
|
350
403
|
end
|
351
404
|
end
|
352
405
|
|
406
|
+
# This message is used to configure the generation of a subset of the RPCs in
|
407
|
+
# a service for client libraries.
|
408
|
+
# @!attribute [rw] methods
|
409
|
+
# @return [::Array<::String>]
|
410
|
+
# An allowlist of the fully qualified names of RPCs that should be included
|
411
|
+
# on public client surfaces.
|
412
|
+
class SelectiveGapicGeneration
|
413
|
+
include ::Google::Protobuf::MessageExts
|
414
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
415
|
+
end
|
416
|
+
|
353
417
|
# The organization for which the client libraries are being published.
|
354
418
|
# Affects the url where generated docs are published, etc.
|
355
419
|
module ClientLibraryOrganization
|
@@ -124,8 +124,13 @@ module Google
|
|
124
124
|
# @return [::String]
|
125
125
|
# The plural name used in the resource name and permission names, such as
|
126
126
|
# 'projects' for the resource name of 'projects/\\{project}' and the permission
|
127
|
-
# name of 'cloudresourcemanager.googleapis.com/projects.get'.
|
128
|
-
#
|
127
|
+
# name of 'cloudresourcemanager.googleapis.com/projects.get'. One exception
|
128
|
+
# to this is for Nested Collections that have stuttering names, as defined
|
129
|
+
# in [AIP-122](https://google.aip.dev/122#nested-collections), where the
|
130
|
+
# collection ID in the resource name pattern does not necessarily directly
|
131
|
+
# match the `plural` value.
|
132
|
+
#
|
133
|
+
# It is the same concept of the `plural` field in k8s CRD spec
|
129
134
|
# https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
|
130
135
|
#
|
131
136
|
# Note: The plural form is required even for singleton resources. See
|
@@ -42,7 +42,7 @@ module Google
|
|
42
42
|
# The error result of the operation in case of failure or cancellation.
|
43
43
|
# @!attribute [rw] response
|
44
44
|
# @return [::Google::Protobuf::Any]
|
45
|
-
# The normal response of the operation
|
45
|
+
# The normal, successful response of the operation. If the original
|
46
46
|
# method returns no data on success, such as `Delete`, the response is
|
47
47
|
# `google.protobuf.Empty`. If the original method is standard
|
48
48
|
# `Get`/`Create`/`Update`, the response should be the resource. For other
|
@@ -55,7 +55,8 @@ module Google
|
|
55
55
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
56
56
|
end
|
57
57
|
|
58
|
-
# The request message for
|
58
|
+
# The request message for
|
59
|
+
# Operations.GetOperation.
|
59
60
|
# @!attribute [rw] name
|
60
61
|
# @return [::String]
|
61
62
|
# The name of the operation resource.
|
@@ -64,7 +65,8 @@ module Google
|
|
64
65
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
65
66
|
end
|
66
67
|
|
67
|
-
# The request message for
|
68
|
+
# The request message for
|
69
|
+
# Operations.ListOperations.
|
68
70
|
# @!attribute [rw] name
|
69
71
|
# @return [::String]
|
70
72
|
# The name of the operation's parent resource.
|
@@ -82,7 +84,8 @@ module Google
|
|
82
84
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
83
85
|
end
|
84
86
|
|
85
|
-
# The response message for
|
87
|
+
# The response message for
|
88
|
+
# Operations.ListOperations.
|
86
89
|
# @!attribute [rw] operations
|
87
90
|
# @return [::Array<::Google::Longrunning::Operation>]
|
88
91
|
# A list of operations that matches the specified filter in the request.
|
@@ -94,7 +97,8 @@ module Google
|
|
94
97
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
95
98
|
end
|
96
99
|
|
97
|
-
# The request message for
|
100
|
+
# The request message for
|
101
|
+
# Operations.CancelOperation.
|
98
102
|
# @!attribute [rw] name
|
99
103
|
# @return [::String]
|
100
104
|
# The name of the operation resource to be cancelled.
|
@@ -103,7 +107,8 @@ module Google
|
|
103
107
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
104
108
|
end
|
105
109
|
|
106
|
-
# The request message for
|
110
|
+
# The request message for
|
111
|
+
# Operations.DeleteOperation.
|
107
112
|
# @!attribute [rw] name
|
108
113
|
# @return [::String]
|
109
114
|
# The name of the operation resource to be deleted.
|
@@ -112,7 +117,8 @@ module Google
|
|
112
117
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
113
118
|
end
|
114
119
|
|
115
|
-
# The request message for
|
120
|
+
# The request message for
|
121
|
+
# Operations.WaitOperation.
|
116
122
|
# @!attribute [rw] name
|
117
123
|
# @return [::String]
|
118
124
|
# The name of the operation resource to wait on.
|
@@ -130,13 +136,12 @@ module Google
|
|
130
136
|
#
|
131
137
|
# Example:
|
132
138
|
#
|
133
|
-
#
|
134
|
-
#
|
135
|
-
#
|
136
|
-
#
|
137
|
-
#
|
138
|
-
# }
|
139
|
-
# }
|
139
|
+
# rpc Export(ExportRequest) returns (google.longrunning.Operation) {
|
140
|
+
# option (google.longrunning.operation_info) = {
|
141
|
+
# response_type: "ExportResponse"
|
142
|
+
# metadata_type: "ExportMetadata"
|
143
|
+
# };
|
144
|
+
# }
|
140
145
|
# @!attribute [rw] response_type
|
141
146
|
# @return [::String]
|
142
147
|
# Required. The message name of the primary return type for this
|
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
|
+
version: 0.8.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: 2024-
|
11
|
+
date: 2024-12-10 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
|
+
version: 0.24.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.
|
29
|
+
version: 0.24.0
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -103,7 +103,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
103
103
|
- !ruby/object:Gem::Version
|
104
104
|
version: '0'
|
105
105
|
requirements: []
|
106
|
-
rubygems_version: 3.5.
|
106
|
+
rubygems_version: 3.5.23
|
107
107
|
signing_key:
|
108
108
|
specification_version: 4
|
109
109
|
summary: Enable cloud users to discover private catalogs and products in their organizations.
|