google-cloud-notebooks-v1beta1 0.10.0 → 0.11.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '08ff3c9f537bca9e764dfa8c54708a358fd0ea5a13d2ab03088d1744a0467e29'
4
- data.tar.gz: 6a48ae5375839df0e23e5871eba954f53583893261a09a81f7e2526794494718
3
+ metadata.gz: 6bf529303c57eb352e6710dc81b4fb76706edba08c8ca9b6946bc377cc1ec7c6
4
+ data.tar.gz: 8863ebe8e62451f6f0b6f3145d70102136fc87878e849fa9c28366de15178fbd
5
5
  SHA512:
6
- metadata.gz: ce30128fdae7c080e3289ef7aa43e5d6f141e5d7979f3676ad11ddf6a1674c168d637e30382374be93024f74e48084ee48114c081747dc70b53b813bfbff5a90
7
- data.tar.gz: 43651429ab4585a0636f17e67cf7fcc5c933cc38df196fea9f927ae8f38d82fd20dfa9b6fb66460fe3a8ed5d864b5c0c79c3dc0828d6cf39a77a253579599017
6
+ metadata.gz: 9e697ed8df2e8ef3e35a279156ce9b21e28c459acc8874d17630d6b613d135ddd9bafbd369095549a1fc21c329b8e8290bfd33a1d756ca68cde3a3cc85e79723
7
+ data.tar.gz: b06e572756f8f7815b3427aa7ef31c1ce78e1aa0756e13f34772145cd70b5b2a8d5d35de6dbdebdd2ca3b8c0effb354fbd905099273e83f526945ef5e1272e81
data/README.md CHANGED
@@ -43,33 +43,43 @@ for class and method documentation.
43
43
  See also the [Product Documentation](https://cloud.google.com/ai-platform-notebooks)
44
44
  for general usage information.
45
45
 
46
- ## Enabling Logging
47
-
48
- To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
49
- The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
50
- or a [`Google::Cloud::Logging::Logger`](https://cloud.google.com/ruby/docs/reference/google-cloud-logging/latest)
51
- that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
52
- and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
53
-
54
- Configuring a Ruby stdlib logger:
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/notebooks/v1beta1"
57
76
  require "logger"
58
77
 
59
- module MyLogger
60
- LOGGER = Logger.new $stderr, level: Logger::WARN
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::Notebooks::V1beta1::NotebookService::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).
@@ -32,6 +32,9 @@ module Google
32
32
  # API v1beta1 service for Cloud AI Platform Notebooks.
33
33
  #
34
34
  class Client
35
+ # @private
36
+ API_VERSION = ""
37
+
35
38
  # @private
36
39
  DEFAULT_ENDPOINT_TEMPLATE = "notebooks.$UNIVERSE_DOMAIN$"
37
40
 
@@ -206,14 +209,26 @@ module Google
206
209
  universe_domain: @config.universe_domain,
207
210
  channel_args: @config.channel_args,
208
211
  interceptors: @config.interceptors,
209
- channel_pool_config: @config.channel_pool
212
+ channel_pool_config: @config.channel_pool,
213
+ logger: @config.logger
210
214
  )
211
215
 
216
+ @notebook_service_stub.stub_logger&.info do |entry|
217
+ entry.set_system_name
218
+ entry.set_service
219
+ entry.message = "Created client for #{entry.service}"
220
+ entry.set_credentials_fields credentials
221
+ entry.set "customEndpoint", @config.endpoint if @config.endpoint
222
+ entry.set "defaultTimeout", @config.timeout if @config.timeout
223
+ entry.set "quotaProject", @quota_project_id if @quota_project_id
224
+ end
225
+
212
226
  @location_client = Google::Cloud::Location::Locations::Client.new do |config|
213
227
  config.credentials = credentials
214
228
  config.quota_project = @quota_project_id
215
229
  config.endpoint = @notebook_service_stub.endpoint
216
230
  config.universe_domain = @notebook_service_stub.universe_domain
231
+ config.logger = @notebook_service_stub.logger if config.respond_to? :logger=
217
232
  end
218
233
 
219
234
  @iam_policy_client = Google::Iam::V1::IAMPolicy::Client.new do |config|
@@ -221,6 +236,7 @@ module Google
221
236
  config.quota_project = @quota_project_id
222
237
  config.endpoint = @notebook_service_stub.endpoint
223
238
  config.universe_domain = @notebook_service_stub.universe_domain
239
+ config.logger = @notebook_service_stub.logger if config.respond_to? :logger=
224
240
  end
225
241
  end
226
242
 
@@ -245,6 +261,15 @@ module Google
245
261
  #
246
262
  attr_reader :iam_policy_client
247
263
 
264
+ ##
265
+ # The logger used for request/response debug logging.
266
+ #
267
+ # @return [Logger]
268
+ #
269
+ def logger
270
+ @notebook_service_stub.logger
271
+ end
272
+
248
273
  # Service calls
249
274
 
250
275
  ##
@@ -312,10 +337,11 @@ module Google
312
337
  # Customize the options with defaults
313
338
  metadata = @config.rpcs.list_instances.metadata.to_h
314
339
 
315
- # Set x-goog-api-client and x-goog-user-project headers
340
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
316
341
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
317
342
  lib_name: @config.lib_name, lib_version: @config.lib_version,
318
343
  gapic_version: ::Google::Cloud::Notebooks::V1beta1::VERSION
344
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
319
345
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
320
346
 
321
347
  header_params = {}
@@ -337,7 +363,7 @@ module Google
337
363
  @notebook_service_stub.call_rpc :list_instances, request, options: options do |response, operation|
338
364
  response = ::Gapic::PagedEnumerable.new @notebook_service_stub, :list_instances, request, response, operation, options
339
365
  yield response, operation if block_given?
340
- return response
366
+ throw :response, response
341
367
  end
342
368
  rescue ::GRPC::BadStatus => e
343
369
  raise ::Google::Cloud::Error.from_error(e)
@@ -399,10 +425,11 @@ module Google
399
425
  # Customize the options with defaults
400
426
  metadata = @config.rpcs.get_instance.metadata.to_h
401
427
 
402
- # Set x-goog-api-client and x-goog-user-project headers
428
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
403
429
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
404
430
  lib_name: @config.lib_name, lib_version: @config.lib_version,
405
431
  gapic_version: ::Google::Cloud::Notebooks::V1beta1::VERSION
432
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
406
433
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
407
434
 
408
435
  header_params = {}
@@ -423,7 +450,6 @@ module Google
423
450
 
424
451
  @notebook_service_stub.call_rpc :get_instance, request, options: options do |response, operation|
425
452
  yield response, operation if block_given?
426
- return response
427
453
  end
428
454
  rescue ::GRPC::BadStatus => e
429
455
  raise ::Google::Cloud::Error.from_error(e)
@@ -496,10 +522,11 @@ module Google
496
522
  # Customize the options with defaults
497
523
  metadata = @config.rpcs.create_instance.metadata.to_h
498
524
 
499
- # Set x-goog-api-client and x-goog-user-project headers
525
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
500
526
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
501
527
  lib_name: @config.lib_name, lib_version: @config.lib_version,
502
528
  gapic_version: ::Google::Cloud::Notebooks::V1beta1::VERSION
529
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
503
530
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
504
531
 
505
532
  header_params = {}
@@ -521,7 +548,7 @@ module Google
521
548
  @notebook_service_stub.call_rpc :create_instance, request, options: options do |response, operation|
522
549
  response = ::Gapic::Operation.new response, @operations_client, options: options
523
550
  yield response, operation if block_given?
524
- return response
551
+ throw :response, response
525
552
  end
526
553
  rescue ::GRPC::BadStatus => e
527
554
  raise ::Google::Cloud::Error.from_error(e)
@@ -598,10 +625,11 @@ module Google
598
625
  # Customize the options with defaults
599
626
  metadata = @config.rpcs.register_instance.metadata.to_h
600
627
 
601
- # Set x-goog-api-client and x-goog-user-project headers
628
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
602
629
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
603
630
  lib_name: @config.lib_name, lib_version: @config.lib_version,
604
631
  gapic_version: ::Google::Cloud::Notebooks::V1beta1::VERSION
632
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
605
633
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
606
634
 
607
635
  header_params = {}
@@ -623,7 +651,7 @@ module Google
623
651
  @notebook_service_stub.call_rpc :register_instance, request, options: options do |response, operation|
624
652
  response = ::Gapic::Operation.new response, @operations_client, options: options
625
653
  yield response, operation if block_given?
626
- return response
654
+ throw :response, response
627
655
  end
628
656
  rescue ::GRPC::BadStatus => e
629
657
  raise ::Google::Cloud::Error.from_error(e)
@@ -699,10 +727,11 @@ module Google
699
727
  # Customize the options with defaults
700
728
  metadata = @config.rpcs.set_instance_accelerator.metadata.to_h
701
729
 
702
- # Set x-goog-api-client and x-goog-user-project headers
730
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
703
731
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
704
732
  lib_name: @config.lib_name, lib_version: @config.lib_version,
705
733
  gapic_version: ::Google::Cloud::Notebooks::V1beta1::VERSION
734
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
706
735
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
707
736
 
708
737
  header_params = {}
@@ -724,7 +753,7 @@ module Google
724
753
  @notebook_service_stub.call_rpc :set_instance_accelerator, request, options: options do |response, operation|
725
754
  response = ::Gapic::Operation.new response, @operations_client, options: options
726
755
  yield response, operation if block_given?
727
- return response
756
+ throw :response, response
728
757
  end
729
758
  rescue ::GRPC::BadStatus => e
730
759
  raise ::Google::Cloud::Error.from_error(e)
@@ -796,10 +825,11 @@ module Google
796
825
  # Customize the options with defaults
797
826
  metadata = @config.rpcs.set_instance_machine_type.metadata.to_h
798
827
 
799
- # Set x-goog-api-client and x-goog-user-project headers
828
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
800
829
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
801
830
  lib_name: @config.lib_name, lib_version: @config.lib_version,
802
831
  gapic_version: ::Google::Cloud::Notebooks::V1beta1::VERSION
832
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
803
833
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
804
834
 
805
835
  header_params = {}
@@ -821,7 +851,7 @@ module Google
821
851
  @notebook_service_stub.call_rpc :set_instance_machine_type, request, options: options do |response, operation|
822
852
  response = ::Gapic::Operation.new response, @operations_client, options: options
823
853
  yield response, operation if block_given?
824
- return response
854
+ throw :response, response
825
855
  end
826
856
  rescue ::GRPC::BadStatus => e
827
857
  raise ::Google::Cloud::Error.from_error(e)
@@ -893,10 +923,11 @@ module Google
893
923
  # Customize the options with defaults
894
924
  metadata = @config.rpcs.set_instance_labels.metadata.to_h
895
925
 
896
- # Set x-goog-api-client and x-goog-user-project headers
926
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
897
927
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
898
928
  lib_name: @config.lib_name, lib_version: @config.lib_version,
899
929
  gapic_version: ::Google::Cloud::Notebooks::V1beta1::VERSION
930
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
900
931
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
901
932
 
902
933
  header_params = {}
@@ -918,7 +949,7 @@ module Google
918
949
  @notebook_service_stub.call_rpc :set_instance_labels, request, options: options do |response, operation|
919
950
  response = ::Gapic::Operation.new response, @operations_client, options: options
920
951
  yield response, operation if block_given?
921
- return response
952
+ throw :response, response
922
953
  end
923
954
  rescue ::GRPC::BadStatus => e
924
955
  raise ::Google::Cloud::Error.from_error(e)
@@ -987,10 +1018,11 @@ module Google
987
1018
  # Customize the options with defaults
988
1019
  metadata = @config.rpcs.delete_instance.metadata.to_h
989
1020
 
990
- # Set x-goog-api-client and x-goog-user-project headers
1021
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
991
1022
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
992
1023
  lib_name: @config.lib_name, lib_version: @config.lib_version,
993
1024
  gapic_version: ::Google::Cloud::Notebooks::V1beta1::VERSION
1025
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
994
1026
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
995
1027
 
996
1028
  header_params = {}
@@ -1012,7 +1044,7 @@ module Google
1012
1044
  @notebook_service_stub.call_rpc :delete_instance, request, options: options do |response, operation|
1013
1045
  response = ::Gapic::Operation.new response, @operations_client, options: options
1014
1046
  yield response, operation if block_given?
1015
- return response
1047
+ throw :response, response
1016
1048
  end
1017
1049
  rescue ::GRPC::BadStatus => e
1018
1050
  raise ::Google::Cloud::Error.from_error(e)
@@ -1081,10 +1113,11 @@ module Google
1081
1113
  # Customize the options with defaults
1082
1114
  metadata = @config.rpcs.start_instance.metadata.to_h
1083
1115
 
1084
- # Set x-goog-api-client and x-goog-user-project headers
1116
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1085
1117
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1086
1118
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1087
1119
  gapic_version: ::Google::Cloud::Notebooks::V1beta1::VERSION
1120
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1088
1121
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1089
1122
 
1090
1123
  header_params = {}
@@ -1106,7 +1139,7 @@ module Google
1106
1139
  @notebook_service_stub.call_rpc :start_instance, request, options: options do |response, operation|
1107
1140
  response = ::Gapic::Operation.new response, @operations_client, options: options
1108
1141
  yield response, operation if block_given?
1109
- return response
1142
+ throw :response, response
1110
1143
  end
1111
1144
  rescue ::GRPC::BadStatus => e
1112
1145
  raise ::Google::Cloud::Error.from_error(e)
@@ -1175,10 +1208,11 @@ module Google
1175
1208
  # Customize the options with defaults
1176
1209
  metadata = @config.rpcs.stop_instance.metadata.to_h
1177
1210
 
1178
- # Set x-goog-api-client and x-goog-user-project headers
1211
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1179
1212
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1180
1213
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1181
1214
  gapic_version: ::Google::Cloud::Notebooks::V1beta1::VERSION
1215
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1182
1216
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1183
1217
 
1184
1218
  header_params = {}
@@ -1200,7 +1234,7 @@ module Google
1200
1234
  @notebook_service_stub.call_rpc :stop_instance, request, options: options do |response, operation|
1201
1235
  response = ::Gapic::Operation.new response, @operations_client, options: options
1202
1236
  yield response, operation if block_given?
1203
- return response
1237
+ throw :response, response
1204
1238
  end
1205
1239
  rescue ::GRPC::BadStatus => e
1206
1240
  raise ::Google::Cloud::Error.from_error(e)
@@ -1269,10 +1303,11 @@ module Google
1269
1303
  # Customize the options with defaults
1270
1304
  metadata = @config.rpcs.reset_instance.metadata.to_h
1271
1305
 
1272
- # Set x-goog-api-client and x-goog-user-project headers
1306
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1273
1307
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1274
1308
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1275
1309
  gapic_version: ::Google::Cloud::Notebooks::V1beta1::VERSION
1310
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1276
1311
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1277
1312
 
1278
1313
  header_params = {}
@@ -1294,7 +1329,7 @@ module Google
1294
1329
  @notebook_service_stub.call_rpc :reset_instance, request, options: options do |response, operation|
1295
1330
  response = ::Gapic::Operation.new response, @operations_client, options: options
1296
1331
  yield response, operation if block_given?
1297
- return response
1332
+ throw :response, response
1298
1333
  end
1299
1334
  rescue ::GRPC::BadStatus => e
1300
1335
  raise ::Google::Cloud::Error.from_error(e)
@@ -1372,10 +1407,11 @@ module Google
1372
1407
  # Customize the options with defaults
1373
1408
  metadata = @config.rpcs.report_instance_info.metadata.to_h
1374
1409
 
1375
- # Set x-goog-api-client and x-goog-user-project headers
1410
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1376
1411
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1377
1412
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1378
1413
  gapic_version: ::Google::Cloud::Notebooks::V1beta1::VERSION
1414
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1379
1415
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1380
1416
 
1381
1417
  header_params = {}
@@ -1397,7 +1433,7 @@ module Google
1397
1433
  @notebook_service_stub.call_rpc :report_instance_info, request, options: options do |response, operation|
1398
1434
  response = ::Gapic::Operation.new response, @operations_client, options: options
1399
1435
  yield response, operation if block_given?
1400
- return response
1436
+ throw :response, response
1401
1437
  end
1402
1438
  rescue ::GRPC::BadStatus => e
1403
1439
  raise ::Google::Cloud::Error.from_error(e)
@@ -1462,10 +1498,11 @@ module Google
1462
1498
  # Customize the options with defaults
1463
1499
  metadata = @config.rpcs.is_instance_upgradeable.metadata.to_h
1464
1500
 
1465
- # Set x-goog-api-client and x-goog-user-project headers
1501
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1466
1502
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1467
1503
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1468
1504
  gapic_version: ::Google::Cloud::Notebooks::V1beta1::VERSION
1505
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1469
1506
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1470
1507
 
1471
1508
  header_params = {}
@@ -1486,7 +1523,6 @@ module Google
1486
1523
 
1487
1524
  @notebook_service_stub.call_rpc :is_instance_upgradeable, request, options: options do |response, operation|
1488
1525
  yield response, operation if block_given?
1489
- return response
1490
1526
  end
1491
1527
  rescue ::GRPC::BadStatus => e
1492
1528
  raise ::Google::Cloud::Error.from_error(e)
@@ -1558,10 +1594,11 @@ module Google
1558
1594
  # Customize the options with defaults
1559
1595
  metadata = @config.rpcs.upgrade_instance.metadata.to_h
1560
1596
 
1561
- # Set x-goog-api-client and x-goog-user-project headers
1597
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1562
1598
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1563
1599
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1564
1600
  gapic_version: ::Google::Cloud::Notebooks::V1beta1::VERSION
1601
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1565
1602
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1566
1603
 
1567
1604
  header_params = {}
@@ -1583,7 +1620,7 @@ module Google
1583
1620
  @notebook_service_stub.call_rpc :upgrade_instance, request, options: options do |response, operation|
1584
1621
  response = ::Gapic::Operation.new response, @operations_client, options: options
1585
1622
  yield response, operation if block_given?
1586
- return response
1623
+ throw :response, response
1587
1624
  end
1588
1625
  rescue ::GRPC::BadStatus => e
1589
1626
  raise ::Google::Cloud::Error.from_error(e)
@@ -1659,10 +1696,11 @@ module Google
1659
1696
  # Customize the options with defaults
1660
1697
  metadata = @config.rpcs.upgrade_instance_internal.metadata.to_h
1661
1698
 
1662
- # Set x-goog-api-client and x-goog-user-project headers
1699
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1663
1700
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1664
1701
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1665
1702
  gapic_version: ::Google::Cloud::Notebooks::V1beta1::VERSION
1703
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1666
1704
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1667
1705
 
1668
1706
  header_params = {}
@@ -1684,7 +1722,7 @@ module Google
1684
1722
  @notebook_service_stub.call_rpc :upgrade_instance_internal, request, options: options do |response, operation|
1685
1723
  response = ::Gapic::Operation.new response, @operations_client, options: options
1686
1724
  yield response, operation if block_given?
1687
- return response
1725
+ throw :response, response
1688
1726
  end
1689
1727
  rescue ::GRPC::BadStatus => e
1690
1728
  raise ::Google::Cloud::Error.from_error(e)
@@ -1754,10 +1792,11 @@ module Google
1754
1792
  # Customize the options with defaults
1755
1793
  metadata = @config.rpcs.list_environments.metadata.to_h
1756
1794
 
1757
- # Set x-goog-api-client and x-goog-user-project headers
1795
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1758
1796
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1759
1797
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1760
1798
  gapic_version: ::Google::Cloud::Notebooks::V1beta1::VERSION
1799
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1761
1800
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1762
1801
 
1763
1802
  header_params = {}
@@ -1779,7 +1818,7 @@ module Google
1779
1818
  @notebook_service_stub.call_rpc :list_environments, request, options: options do |response, operation|
1780
1819
  response = ::Gapic::PagedEnumerable.new @notebook_service_stub, :list_environments, request, response, operation, options
1781
1820
  yield response, operation if block_given?
1782
- return response
1821
+ throw :response, response
1783
1822
  end
1784
1823
  rescue ::GRPC::BadStatus => e
1785
1824
  raise ::Google::Cloud::Error.from_error(e)
@@ -1841,10 +1880,11 @@ module Google
1841
1880
  # Customize the options with defaults
1842
1881
  metadata = @config.rpcs.get_environment.metadata.to_h
1843
1882
 
1844
- # Set x-goog-api-client and x-goog-user-project headers
1883
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1845
1884
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1846
1885
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1847
1886
  gapic_version: ::Google::Cloud::Notebooks::V1beta1::VERSION
1887
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1848
1888
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1849
1889
 
1850
1890
  header_params = {}
@@ -1865,7 +1905,6 @@ module Google
1865
1905
 
1866
1906
  @notebook_service_stub.call_rpc :get_environment, request, options: options do |response, operation|
1867
1907
  yield response, operation if block_given?
1868
- return response
1869
1908
  end
1870
1909
  rescue ::GRPC::BadStatus => e
1871
1910
  raise ::Google::Cloud::Error.from_error(e)
@@ -1940,10 +1979,11 @@ module Google
1940
1979
  # Customize the options with defaults
1941
1980
  metadata = @config.rpcs.create_environment.metadata.to_h
1942
1981
 
1943
- # Set x-goog-api-client and x-goog-user-project headers
1982
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1944
1983
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1945
1984
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1946
1985
  gapic_version: ::Google::Cloud::Notebooks::V1beta1::VERSION
1986
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1947
1987
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1948
1988
 
1949
1989
  header_params = {}
@@ -1965,7 +2005,7 @@ module Google
1965
2005
  @notebook_service_stub.call_rpc :create_environment, request, options: options do |response, operation|
1966
2006
  response = ::Gapic::Operation.new response, @operations_client, options: options
1967
2007
  yield response, operation if block_given?
1968
- return response
2008
+ throw :response, response
1969
2009
  end
1970
2010
  rescue ::GRPC::BadStatus => e
1971
2011
  raise ::Google::Cloud::Error.from_error(e)
@@ -2034,10 +2074,11 @@ module Google
2034
2074
  # Customize the options with defaults
2035
2075
  metadata = @config.rpcs.delete_environment.metadata.to_h
2036
2076
 
2037
- # Set x-goog-api-client and x-goog-user-project headers
2077
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2038
2078
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2039
2079
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2040
2080
  gapic_version: ::Google::Cloud::Notebooks::V1beta1::VERSION
2081
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2041
2082
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2042
2083
 
2043
2084
  header_params = {}
@@ -2059,7 +2100,7 @@ module Google
2059
2100
  @notebook_service_stub.call_rpc :delete_environment, request, options: options do |response, operation|
2060
2101
  response = ::Gapic::Operation.new response, @operations_client, options: options
2061
2102
  yield response, operation if block_given?
2062
- return response
2103
+ throw :response, response
2063
2104
  end
2064
2105
  rescue ::GRPC::BadStatus => e
2065
2106
  raise ::Google::Cloud::Error.from_error(e)
@@ -2148,6 +2189,11 @@ module Google
2148
2189
  # default endpoint URL. The default value of nil uses the environment
2149
2190
  # universe (usually the default "googleapis.com" universe).
2150
2191
  # @return [::String,nil]
2192
+ # @!attribute [rw] logger
2193
+ # A custom logger to use for request/response debug logging, or the value
2194
+ # `:default` (the default) to construct a default logger, or `nil` to
2195
+ # explicitly disable logging.
2196
+ # @return [::Logger,:default,nil]
2151
2197
  #
2152
2198
  class Configuration
2153
2199
  extend ::Gapic::Config
@@ -2172,6 +2218,7 @@ module Google
2172
2218
  config_attr :retry_policy, nil, ::Hash, ::Proc, nil
2173
2219
  config_attr :quota_project, nil, ::String, nil
2174
2220
  config_attr :universe_domain, nil, ::String, nil
2221
+ config_attr :logger, :default, ::Logger, nil, :default
2175
2222
 
2176
2223
  # @private
2177
2224
  def initialize parent_config = nil
@@ -26,6 +26,9 @@ module Google
26
26
  module NotebookService
27
27
  # Service that implements Longrunning Operations API.
28
28
  class Operations
29
+ # @private
30
+ API_VERSION = ""
31
+
29
32
  # @private
30
33
  DEFAULT_ENDPOINT_TEMPLATE = "notebooks.$UNIVERSE_DOMAIN$"
31
34
 
@@ -121,14 +124,6 @@ module Google
121
124
  # Lists operations that match the specified filter in the request. If the
122
125
  # server doesn't support this method, it returns `UNIMPLEMENTED`.
123
126
  #
124
- # NOTE: the `name` binding allows API services to override the binding
125
- # to use different resource name schemes, such as `users/*/operations`. To
126
- # override the binding, API services can add a binding such as
127
- # `"/v1/{name=users/*}/operations"` to their service configuration.
128
- # For backwards compatibility, the default name includes the operations
129
- # collection id, however overriding users must ensure the name binding
130
- # is the parent resource, without the operations collection id.
131
- #
132
127
  # @overload list_operations(request, options = nil)
133
128
  # Pass arguments to `list_operations` via a request object, either of type
134
129
  # {::Google::Longrunning::ListOperationsRequest} or an equivalent Hash.
@@ -191,10 +186,11 @@ module Google
191
186
  # Customize the options with defaults
192
187
  metadata = @config.rpcs.list_operations.metadata.to_h
193
188
 
194
- # Set x-goog-api-client and x-goog-user-project headers
189
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
195
190
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
196
191
  lib_name: @config.lib_name, lib_version: @config.lib_version,
197
192
  gapic_version: ::Google::Cloud::Notebooks::V1beta1::VERSION
193
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
198
194
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
199
195
 
200
196
  header_params = {}
@@ -217,7 +213,7 @@ module Google
217
213
  wrap_lro_operation = ->(op_response) { ::Gapic::Operation.new op_response, @operations_client }
218
214
  response = ::Gapic::PagedEnumerable.new @operations_stub, :list_operations, request, response, operation, options, format_resource: wrap_lro_operation
219
215
  yield response, operation if block_given?
220
- return response
216
+ throw :response, response
221
217
  end
222
218
  rescue ::GRPC::BadStatus => e
223
219
  raise ::Google::Cloud::Error.from_error(e)
@@ -287,10 +283,11 @@ module Google
287
283
  # Customize the options with defaults
288
284
  metadata = @config.rpcs.get_operation.metadata.to_h
289
285
 
290
- # Set x-goog-api-client and x-goog-user-project headers
286
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
291
287
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
292
288
  lib_name: @config.lib_name, lib_version: @config.lib_version,
293
289
  gapic_version: ::Google::Cloud::Notebooks::V1beta1::VERSION
290
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
294
291
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
295
292
 
296
293
  header_params = {}
@@ -312,7 +309,7 @@ module Google
312
309
  @operations_stub.call_rpc :get_operation, request, options: options do |response, operation|
313
310
  response = ::Gapic::Operation.new response, @operations_client, options: options
314
311
  yield response, operation if block_given?
315
- return response
312
+ throw :response, response
316
313
  end
317
314
  rescue ::GRPC::BadStatus => e
318
315
  raise ::Google::Cloud::Error.from_error(e)
@@ -376,10 +373,11 @@ module Google
376
373
  # Customize the options with defaults
377
374
  metadata = @config.rpcs.delete_operation.metadata.to_h
378
375
 
379
- # Set x-goog-api-client and x-goog-user-project headers
376
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
380
377
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
381
378
  lib_name: @config.lib_name, lib_version: @config.lib_version,
382
379
  gapic_version: ::Google::Cloud::Notebooks::V1beta1::VERSION
380
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
383
381
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
384
382
 
385
383
  header_params = {}
@@ -400,7 +398,6 @@ module Google
400
398
 
401
399
  @operations_stub.call_rpc :delete_operation, request, options: options do |response, operation|
402
400
  yield response, operation if block_given?
403
- return response
404
401
  end
405
402
  rescue ::GRPC::BadStatus => e
406
403
  raise ::Google::Cloud::Error.from_error(e)
@@ -415,8 +412,9 @@ module Google
415
412
  # other methods to check whether the cancellation succeeded or whether the
416
413
  # operation completed despite cancellation. On successful cancellation,
417
414
  # the operation is not deleted; instead, it becomes an operation with
418
- # an {::Google::Longrunning::Operation#error Operation.error} value with a {::Google::Rpc::Status#code google.rpc.Status.code} of 1,
419
- # corresponding to `Code.CANCELLED`.
415
+ # an {::Google::Longrunning::Operation#error Operation.error} value with a
416
+ # {::Google::Rpc::Status#code google.rpc.Status.code} of `1`, corresponding to
417
+ # `Code.CANCELLED`.
420
418
  #
421
419
  # @overload cancel_operation(request, options = nil)
422
420
  # Pass arguments to `cancel_operation` via a request object, either of type
@@ -470,10 +468,11 @@ module Google
470
468
  # Customize the options with defaults
471
469
  metadata = @config.rpcs.cancel_operation.metadata.to_h
472
470
 
473
- # Set x-goog-api-client and x-goog-user-project headers
471
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
474
472
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
475
473
  lib_name: @config.lib_name, lib_version: @config.lib_version,
476
474
  gapic_version: ::Google::Cloud::Notebooks::V1beta1::VERSION
475
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
477
476
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
478
477
 
479
478
  header_params = {}
@@ -494,7 +493,6 @@ module Google
494
493
 
495
494
  @operations_stub.call_rpc :cancel_operation, request, options: options do |response, operation|
496
495
  yield response, operation if block_given?
497
- return response
498
496
  end
499
497
  rescue ::GRPC::BadStatus => e
500
498
  raise ::Google::Cloud::Error.from_error(e)
@@ -574,10 +572,11 @@ module Google
574
572
  # Customize the options with defaults
575
573
  metadata = @config.rpcs.wait_operation.metadata.to_h
576
574
 
577
- # Set x-goog-api-client and x-goog-user-project headers
575
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
578
576
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
579
577
  lib_name: @config.lib_name, lib_version: @config.lib_version,
580
578
  gapic_version: ::Google::Cloud::Notebooks::V1beta1::VERSION
579
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
581
580
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
582
581
 
583
582
  options.apply_defaults timeout: @config.rpcs.wait_operation.timeout,
@@ -591,7 +590,7 @@ module Google
591
590
  @operations_stub.call_rpc :wait_operation, request, options: options do |response, operation|
592
591
  response = ::Gapic::Operation.new response, @operations_client, options: options
593
592
  yield response, operation if block_given?
594
- return response
593
+ throw :response, response
595
594
  end
596
595
  rescue ::GRPC::BadStatus => e
597
596
  raise ::Google::Cloud::Error.from_error(e)
@@ -680,6 +679,11 @@ module Google
680
679
  # default endpoint URL. The default value of nil uses the environment
681
680
  # universe (usually the default "googleapis.com" universe).
682
681
  # @return [::String,nil]
682
+ # @!attribute [rw] logger
683
+ # A custom logger to use for request/response debug logging, or the value
684
+ # `:default` (the default) to construct a default logger, or `nil` to
685
+ # explicitly disable logging.
686
+ # @return [::Logger,:default,nil]
683
687
  #
684
688
  class Configuration
685
689
  extend ::Gapic::Config
@@ -704,6 +708,7 @@ module Google
704
708
  config_attr :retry_policy, nil, ::Hash, ::Proc, nil
705
709
  config_attr :quota_project, nil, ::String, nil
706
710
  config_attr :universe_domain, nil, ::String, nil
711
+ config_attr :logger, :default, ::Logger, nil, :default
707
712
 
708
713
  # @private
709
714
  def initialize parent_config = nil
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Notebooks
23
23
  module V1beta1
24
- VERSION = "0.10.0"
24
+ VERSION = "0.11.0"
25
25
  end
26
26
  end
27
27
  end
@@ -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
- # publishing:
298
- # method_settings:
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
- # seconds: 360 # 6 minutes
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
- # publishing:
317
- # method_settings:
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'. It is the same
128
- # concept of the `plural` field in k8s CRD spec
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 in case of success. If the original
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 Operations.GetOperation.
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 Operations.ListOperations.
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 Operations.ListOperations.
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 Operations.CancelOperation.
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 Operations.DeleteOperation.
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 Operations.WaitOperation.
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
- # rpc LongRunningRecognize(LongRunningRecognizeRequest)
134
- # returns (google.longrunning.Operation) {
135
- # option (google.longrunning.operation_info) = {
136
- # response_type: "LongRunningRecognizeResponse"
137
- # metadata_type: "LongRunningRecognizeMetadata"
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-notebooks-v1beta1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.11.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-02-26 00:00:00.000000000 Z
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.21.1
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.21.1
29
+ version: 0.24.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -146,7 +146,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
146
146
  - !ruby/object:Gem::Version
147
147
  version: '0'
148
148
  requirements: []
149
- rubygems_version: 3.5.6
149
+ rubygems_version: 3.5.23
150
150
  signing_key:
151
151
  specification_version: 4
152
152
  summary: Notebooks API is used to manage notebook resources in Google Cloud.