google-cloud-notebooks-v2 0.4.0 → 0.4.1

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: 23da3b89219db4d426f10cb864b7ad93efe0729abf0be78d8eaf81830209acb8
4
- data.tar.gz: 8bd7d99c90b8d26eee4f1e94d30eeefc62da629e68d2be1731bda8daafddf304
3
+ metadata.gz: 00da3f18ff0a037425f272f477441381e0b5d3d5a7cc4bcf2e54beae31a940e1
4
+ data.tar.gz: ae1da84407c742eb64ed36e63cb1b73be65024e46ba6052fd4919c925b711df6
5
5
  SHA512:
6
- metadata.gz: 7dac2fc1ec53d84bfcdb0744e0f37972338debca96d7b6bc8e749cc89e2a14b1baabe9b5763a3f7c71247b5a18a609006e574cc7f91d6b0a005018e27322b7ef
7
- data.tar.gz: 279ecd16b60c840a258ee504a467a49db5885fd3a47c2dec62c59e825d8d6e34e0672030da9b08a7ac3beadf4b75f50f9355c99a7251f364ee4dde6819c0b436
6
+ metadata.gz: a8cc8e97e3e3465538c29feb3adb270637ee5fbd70f15b4abbf55356aa2dfe330a104b427b71fd903e0b2ea461445746f628e3e84cb992d1cdb10ebec4116b93
7
+ data.tar.gz: 44a610b6d64dd2957d0f17fa060c59d1373288ce31f8b0a818db0326ec47911e2464e54960fa2eacc7c52ceaac45e71bc388fdefc3bfb45d99799c67b56453d7
data/README.md CHANGED
@@ -2,7 +2,6 @@
2
2
 
3
3
  Notebooks API is used to manage notebook resources in Google Cloud.
4
4
 
5
- Notebooks API is used to manage notebook resources in Google Cloud.
6
5
 
7
6
  https://github.com/googleapis/google-cloud-ruby
8
7
 
@@ -32,6 +32,9 @@ module Google
32
32
  # API v2 service for Workbench Notebooks Instances.
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
 
@@ -297,10 +300,11 @@ module Google
297
300
  # Customize the options with defaults
298
301
  metadata = @config.rpcs.list_instances.metadata.to_h
299
302
 
300
- # Set x-goog-api-client and x-goog-user-project headers
303
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
301
304
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
302
305
  lib_name: @config.lib_name, lib_version: @config.lib_version,
303
306
  gapic_version: ::Google::Cloud::Notebooks::V2::VERSION
307
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
304
308
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
305
309
 
306
310
  header_params = {}
@@ -384,10 +388,11 @@ module Google
384
388
  # Customize the options with defaults
385
389
  metadata = @config.rpcs.get_instance.metadata.to_h
386
390
 
387
- # Set x-goog-api-client and x-goog-user-project headers
391
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
388
392
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
389
393
  lib_name: @config.lib_name, lib_version: @config.lib_version,
390
394
  gapic_version: ::Google::Cloud::Notebooks::V2::VERSION
395
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
391
396
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
392
397
 
393
398
  header_params = {}
@@ -483,10 +488,11 @@ module Google
483
488
  # Customize the options with defaults
484
489
  metadata = @config.rpcs.create_instance.metadata.to_h
485
490
 
486
- # Set x-goog-api-client and x-goog-user-project headers
491
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
487
492
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
488
493
  lib_name: @config.lib_name, lib_version: @config.lib_version,
489
494
  gapic_version: ::Google::Cloud::Notebooks::V2::VERSION
495
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
490
496
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
491
497
 
492
498
  header_params = {}
@@ -580,10 +586,11 @@ module Google
580
586
  # Customize the options with defaults
581
587
  metadata = @config.rpcs.update_instance.metadata.to_h
582
588
 
583
- # Set x-goog-api-client and x-goog-user-project headers
589
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
584
590
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
585
591
  lib_name: @config.lib_name, lib_version: @config.lib_version,
586
592
  gapic_version: ::Google::Cloud::Notebooks::V2::VERSION
593
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
587
594
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
588
595
 
589
596
  header_params = {}
@@ -676,10 +683,11 @@ module Google
676
683
  # Customize the options with defaults
677
684
  metadata = @config.rpcs.delete_instance.metadata.to_h
678
685
 
679
- # Set x-goog-api-client and x-goog-user-project headers
686
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
680
687
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
681
688
  lib_name: @config.lib_name, lib_version: @config.lib_version,
682
689
  gapic_version: ::Google::Cloud::Notebooks::V2::VERSION
690
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
683
691
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
684
692
 
685
693
  header_params = {}
@@ -770,10 +778,11 @@ module Google
770
778
  # Customize the options with defaults
771
779
  metadata = @config.rpcs.start_instance.metadata.to_h
772
780
 
773
- # Set x-goog-api-client and x-goog-user-project headers
781
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
774
782
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
775
783
  lib_name: @config.lib_name, lib_version: @config.lib_version,
776
784
  gapic_version: ::Google::Cloud::Notebooks::V2::VERSION
785
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
777
786
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
778
787
 
779
788
  header_params = {}
@@ -864,10 +873,11 @@ module Google
864
873
  # Customize the options with defaults
865
874
  metadata = @config.rpcs.stop_instance.metadata.to_h
866
875
 
867
- # Set x-goog-api-client and x-goog-user-project headers
876
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
868
877
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
869
878
  lib_name: @config.lib_name, lib_version: @config.lib_version,
870
879
  gapic_version: ::Google::Cloud::Notebooks::V2::VERSION
880
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
871
881
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
872
882
 
873
883
  header_params = {}
@@ -958,10 +968,11 @@ module Google
958
968
  # Customize the options with defaults
959
969
  metadata = @config.rpcs.reset_instance.metadata.to_h
960
970
 
961
- # Set x-goog-api-client and x-goog-user-project headers
971
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
962
972
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
963
973
  lib_name: @config.lib_name, lib_version: @config.lib_version,
964
974
  gapic_version: ::Google::Cloud::Notebooks::V2::VERSION
975
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
965
976
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
966
977
 
967
978
  header_params = {}
@@ -1045,10 +1056,11 @@ module Google
1045
1056
  # Customize the options with defaults
1046
1057
  metadata = @config.rpcs.check_instance_upgradability.metadata.to_h
1047
1058
 
1048
- # Set x-goog-api-client and x-goog-user-project headers
1059
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1049
1060
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1050
1061
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1051
1062
  gapic_version: ::Google::Cloud::Notebooks::V2::VERSION
1063
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1052
1064
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1053
1065
 
1054
1066
  header_params = {}
@@ -1138,10 +1150,11 @@ module Google
1138
1150
  # Customize the options with defaults
1139
1151
  metadata = @config.rpcs.upgrade_instance.metadata.to_h
1140
1152
 
1141
- # Set x-goog-api-client and x-goog-user-project headers
1153
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1142
1154
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1143
1155
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1144
1156
  gapic_version: ::Google::Cloud::Notebooks::V2::VERSION
1157
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1145
1158
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1146
1159
 
1147
1160
  header_params = {}
@@ -1235,10 +1248,11 @@ module Google
1235
1248
  # Customize the options with defaults
1236
1249
  metadata = @config.rpcs.rollback_instance.metadata.to_h
1237
1250
 
1238
- # Set x-goog-api-client and x-goog-user-project headers
1251
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1239
1252
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1240
1253
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1241
1254
  gapic_version: ::Google::Cloud::Notebooks::V2::VERSION
1255
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1242
1256
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1243
1257
 
1244
1258
  header_params = {}
@@ -1333,10 +1347,11 @@ module Google
1333
1347
  # Customize the options with defaults
1334
1348
  metadata = @config.rpcs.diagnose_instance.metadata.to_h
1335
1349
 
1336
- # Set x-goog-api-client and x-goog-user-project headers
1350
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1337
1351
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1338
1352
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1339
1353
  gapic_version: ::Google::Cloud::Notebooks::V2::VERSION
1354
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1340
1355
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1341
1356
 
1342
1357
  header_params = {}
@@ -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
 
@@ -191,10 +194,11 @@ module Google
191
194
  # Customize the options with defaults
192
195
  metadata = @config.rpcs.list_operations.metadata.to_h
193
196
 
194
- # Set x-goog-api-client and x-goog-user-project headers
197
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
195
198
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
196
199
  lib_name: @config.lib_name, lib_version: @config.lib_version,
197
200
  gapic_version: ::Google::Cloud::Notebooks::V2::VERSION
201
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
198
202
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
199
203
 
200
204
  header_params = {}
@@ -287,10 +291,11 @@ module Google
287
291
  # Customize the options with defaults
288
292
  metadata = @config.rpcs.get_operation.metadata.to_h
289
293
 
290
- # Set x-goog-api-client and x-goog-user-project headers
294
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
291
295
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
292
296
  lib_name: @config.lib_name, lib_version: @config.lib_version,
293
297
  gapic_version: ::Google::Cloud::Notebooks::V2::VERSION
298
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
294
299
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
295
300
 
296
301
  header_params = {}
@@ -376,10 +381,11 @@ module Google
376
381
  # Customize the options with defaults
377
382
  metadata = @config.rpcs.delete_operation.metadata.to_h
378
383
 
379
- # Set x-goog-api-client and x-goog-user-project headers
384
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
380
385
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
381
386
  lib_name: @config.lib_name, lib_version: @config.lib_version,
382
387
  gapic_version: ::Google::Cloud::Notebooks::V2::VERSION
388
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
383
389
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
384
390
 
385
391
  header_params = {}
@@ -470,10 +476,11 @@ module Google
470
476
  # Customize the options with defaults
471
477
  metadata = @config.rpcs.cancel_operation.metadata.to_h
472
478
 
473
- # Set x-goog-api-client and x-goog-user-project headers
479
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
474
480
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
475
481
  lib_name: @config.lib_name, lib_version: @config.lib_version,
476
482
  gapic_version: ::Google::Cloud::Notebooks::V2::VERSION
483
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
477
484
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
478
485
 
479
486
  header_params = {}
@@ -574,10 +581,11 @@ module Google
574
581
  # Customize the options with defaults
575
582
  metadata = @config.rpcs.wait_operation.metadata.to_h
576
583
 
577
- # Set x-goog-api-client and x-goog-user-project headers
584
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
578
585
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
579
586
  lib_name: @config.lib_name, lib_version: @config.lib_version,
580
587
  gapic_version: ::Google::Cloud::Notebooks::V2::VERSION
588
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
581
589
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
582
590
 
583
591
  options.apply_defaults timeout: @config.rpcs.wait_operation.timeout,
@@ -34,6 +34,9 @@ module Google
34
34
  # API v2 service for Workbench Notebooks Instances.
35
35
  #
36
36
  class Client
37
+ # @private
38
+ API_VERSION = ""
39
+
37
40
  # @private
38
41
  DEFAULT_ENDPOINT_TEMPLATE = "notebooks.$UNIVERSE_DOMAIN$"
39
42
 
@@ -291,12 +294,13 @@ module Google
291
294
  # Customize the options with defaults
292
295
  call_metadata = @config.rpcs.list_instances.metadata.to_h
293
296
 
294
- # Set x-goog-api-client and x-goog-user-project headers
297
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
295
298
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
296
299
  lib_name: @config.lib_name, lib_version: @config.lib_version,
297
300
  gapic_version: ::Google::Cloud::Notebooks::V2::VERSION,
298
301
  transports_version_send: [:rest]
299
302
 
303
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
300
304
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
301
305
 
302
306
  options.apply_defaults timeout: @config.rpcs.list_instances.timeout,
@@ -370,12 +374,13 @@ module Google
370
374
  # Customize the options with defaults
371
375
  call_metadata = @config.rpcs.get_instance.metadata.to_h
372
376
 
373
- # Set x-goog-api-client and x-goog-user-project headers
377
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
374
378
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
375
379
  lib_name: @config.lib_name, lib_version: @config.lib_version,
376
380
  gapic_version: ::Google::Cloud::Notebooks::V2::VERSION,
377
381
  transports_version_send: [:rest]
378
382
 
383
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
379
384
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
380
385
 
381
386
  options.apply_defaults timeout: @config.rpcs.get_instance.timeout,
@@ -462,12 +467,13 @@ module Google
462
467
  # Customize the options with defaults
463
468
  call_metadata = @config.rpcs.create_instance.metadata.to_h
464
469
 
465
- # Set x-goog-api-client and x-goog-user-project headers
470
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
466
471
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
467
472
  lib_name: @config.lib_name, lib_version: @config.lib_version,
468
473
  gapic_version: ::Google::Cloud::Notebooks::V2::VERSION,
469
474
  transports_version_send: [:rest]
470
475
 
476
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
471
477
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
472
478
 
473
479
  options.apply_defaults timeout: @config.rpcs.create_instance.timeout,
@@ -552,12 +558,13 @@ module Google
552
558
  # Customize the options with defaults
553
559
  call_metadata = @config.rpcs.update_instance.metadata.to_h
554
560
 
555
- # Set x-goog-api-client and x-goog-user-project headers
561
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
556
562
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
557
563
  lib_name: @config.lib_name, lib_version: @config.lib_version,
558
564
  gapic_version: ::Google::Cloud::Notebooks::V2::VERSION,
559
565
  transports_version_send: [:rest]
560
566
 
567
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
561
568
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
562
569
 
563
570
  options.apply_defaults timeout: @config.rpcs.update_instance.timeout,
@@ -641,12 +648,13 @@ module Google
641
648
  # Customize the options with defaults
642
649
  call_metadata = @config.rpcs.delete_instance.metadata.to_h
643
650
 
644
- # Set x-goog-api-client and x-goog-user-project headers
651
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
645
652
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
646
653
  lib_name: @config.lib_name, lib_version: @config.lib_version,
647
654
  gapic_version: ::Google::Cloud::Notebooks::V2::VERSION,
648
655
  transports_version_send: [:rest]
649
656
 
657
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
650
658
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
651
659
 
652
660
  options.apply_defaults timeout: @config.rpcs.delete_instance.timeout,
@@ -728,12 +736,13 @@ module Google
728
736
  # Customize the options with defaults
729
737
  call_metadata = @config.rpcs.start_instance.metadata.to_h
730
738
 
731
- # Set x-goog-api-client and x-goog-user-project headers
739
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
732
740
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
733
741
  lib_name: @config.lib_name, lib_version: @config.lib_version,
734
742
  gapic_version: ::Google::Cloud::Notebooks::V2::VERSION,
735
743
  transports_version_send: [:rest]
736
744
 
745
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
737
746
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
738
747
 
739
748
  options.apply_defaults timeout: @config.rpcs.start_instance.timeout,
@@ -815,12 +824,13 @@ module Google
815
824
  # Customize the options with defaults
816
825
  call_metadata = @config.rpcs.stop_instance.metadata.to_h
817
826
 
818
- # Set x-goog-api-client and x-goog-user-project headers
827
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
819
828
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
820
829
  lib_name: @config.lib_name, lib_version: @config.lib_version,
821
830
  gapic_version: ::Google::Cloud::Notebooks::V2::VERSION,
822
831
  transports_version_send: [:rest]
823
832
 
833
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
824
834
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
825
835
 
826
836
  options.apply_defaults timeout: @config.rpcs.stop_instance.timeout,
@@ -902,12 +912,13 @@ module Google
902
912
  # Customize the options with defaults
903
913
  call_metadata = @config.rpcs.reset_instance.metadata.to_h
904
914
 
905
- # Set x-goog-api-client and x-goog-user-project headers
915
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
906
916
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
907
917
  lib_name: @config.lib_name, lib_version: @config.lib_version,
908
918
  gapic_version: ::Google::Cloud::Notebooks::V2::VERSION,
909
919
  transports_version_send: [:rest]
910
920
 
921
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
911
922
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
912
923
 
913
924
  options.apply_defaults timeout: @config.rpcs.reset_instance.timeout,
@@ -982,12 +993,13 @@ module Google
982
993
  # Customize the options with defaults
983
994
  call_metadata = @config.rpcs.check_instance_upgradability.metadata.to_h
984
995
 
985
- # Set x-goog-api-client and x-goog-user-project headers
996
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
986
997
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
987
998
  lib_name: @config.lib_name, lib_version: @config.lib_version,
988
999
  gapic_version: ::Google::Cloud::Notebooks::V2::VERSION,
989
1000
  transports_version_send: [:rest]
990
1001
 
1002
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
991
1003
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
992
1004
 
993
1005
  options.apply_defaults timeout: @config.rpcs.check_instance_upgradability.timeout,
@@ -1068,12 +1080,13 @@ module Google
1068
1080
  # Customize the options with defaults
1069
1081
  call_metadata = @config.rpcs.upgrade_instance.metadata.to_h
1070
1082
 
1071
- # Set x-goog-api-client and x-goog-user-project headers
1083
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1072
1084
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1073
1085
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1074
1086
  gapic_version: ::Google::Cloud::Notebooks::V2::VERSION,
1075
1087
  transports_version_send: [:rest]
1076
1088
 
1089
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1077
1090
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1078
1091
 
1079
1092
  options.apply_defaults timeout: @config.rpcs.upgrade_instance.timeout,
@@ -1158,12 +1171,13 @@ module Google
1158
1171
  # Customize the options with defaults
1159
1172
  call_metadata = @config.rpcs.rollback_instance.metadata.to_h
1160
1173
 
1161
- # Set x-goog-api-client and x-goog-user-project headers
1174
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1162
1175
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1163
1176
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1164
1177
  gapic_version: ::Google::Cloud::Notebooks::V2::VERSION,
1165
1178
  transports_version_send: [:rest]
1166
1179
 
1180
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1167
1181
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1168
1182
 
1169
1183
  options.apply_defaults timeout: @config.rpcs.rollback_instance.timeout,
@@ -1249,12 +1263,13 @@ module Google
1249
1263
  # Customize the options with defaults
1250
1264
  call_metadata = @config.rpcs.diagnose_instance.metadata.to_h
1251
1265
 
1252
- # Set x-goog-api-client and x-goog-user-project headers
1266
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1253
1267
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1254
1268
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1255
1269
  gapic_version: ::Google::Cloud::Notebooks::V2::VERSION,
1256
1270
  transports_version_send: [:rest]
1257
1271
 
1272
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1258
1273
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1259
1274
 
1260
1275
  options.apply_defaults timeout: @config.rpcs.diagnose_instance.timeout,
@@ -26,6 +26,9 @@ module Google
26
26
  module Rest
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
 
@@ -181,12 +184,13 @@ module Google
181
184
  # Customize the options with defaults
182
185
  call_metadata = @config.rpcs.list_operations.metadata.to_h
183
186
 
184
- # Set x-goog-api-client and x-goog-user-project headers
187
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
185
188
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
186
189
  lib_name: @config.lib_name, lib_version: @config.lib_version,
187
190
  gapic_version: ::Google::Cloud::Notebooks::V2::VERSION,
188
191
  transports_version_send: [:rest]
189
192
 
193
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
190
194
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
191
195
 
192
196
  options.apply_defaults timeout: @config.rpcs.list_operations.timeout,
@@ -269,12 +273,13 @@ module Google
269
273
  # Customize the options with defaults
270
274
  call_metadata = @config.rpcs.get_operation.metadata.to_h
271
275
 
272
- # Set x-goog-api-client and x-goog-user-project headers
276
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
273
277
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
274
278
  lib_name: @config.lib_name, lib_version: @config.lib_version,
275
279
  gapic_version: ::Google::Cloud::Notebooks::V2::VERSION,
276
280
  transports_version_send: [:rest]
277
281
 
282
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
278
283
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
279
284
 
280
285
  options.apply_defaults timeout: @config.rpcs.get_operation.timeout,
@@ -351,12 +356,13 @@ module Google
351
356
  # Customize the options with defaults
352
357
  call_metadata = @config.rpcs.delete_operation.metadata.to_h
353
358
 
354
- # Set x-goog-api-client and x-goog-user-project headers
359
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
355
360
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
356
361
  lib_name: @config.lib_name, lib_version: @config.lib_version,
357
362
  gapic_version: ::Google::Cloud::Notebooks::V2::VERSION,
358
363
  transports_version_send: [:rest]
359
364
 
365
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
360
366
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
361
367
 
362
368
  options.apply_defaults timeout: @config.rpcs.delete_operation.timeout,
@@ -438,12 +444,13 @@ module Google
438
444
  # Customize the options with defaults
439
445
  call_metadata = @config.rpcs.cancel_operation.metadata.to_h
440
446
 
441
- # Set x-goog-api-client and x-goog-user-project headers
447
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
442
448
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
443
449
  lib_name: @config.lib_name, lib_version: @config.lib_version,
444
450
  gapic_version: ::Google::Cloud::Notebooks::V2::VERSION,
445
451
  transports_version_send: [:rest]
446
452
 
453
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
447
454
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
448
455
 
449
456
  options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout,
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Notebooks
23
23
  module V2
24
- VERSION = "0.4.0"
24
+ VERSION = "0.4.1"
25
25
  end
26
26
  end
27
27
  end
@@ -118,6 +118,10 @@ module Google
118
118
  # @return [::String]
119
119
  # Optional link to proto reference documentation. Example:
120
120
  # https://cloud.google.com/pubsub/lite/docs/reference/rpc
121
+ # @!attribute [rw] rest_reference_documentation_uri
122
+ # @return [::String]
123
+ # Optional link to REST reference documentation. Example:
124
+ # https://cloud.google.com/pubsub/lite/docs/reference/rest
121
125
  class Publishing
122
126
  include ::Google::Protobuf::MessageExts
123
127
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -286,6 +290,13 @@ module Google
286
290
  # @return [::String]
287
291
  # The fully qualified name of the method, for which the options below apply.
288
292
  # This is used to find the method to apply the options.
293
+ #
294
+ # Example:
295
+ #
296
+ # publishing:
297
+ # method_settings:
298
+ # - selector: google.storage.control.v2.StorageControl.CreateFolder
299
+ # # method settings for CreateFolder...
289
300
  # @!attribute [rw] long_running
290
301
  # @return [::Google::Api::MethodSettings::LongRunning]
291
302
  # Describes settings to use for long-running operations when generating
@@ -294,17 +305,14 @@ module Google
294
305
  #
295
306
  # Example of a YAML configuration::
296
307
  #
297
- # publishing:
298
- # method_settings:
308
+ # publishing:
309
+ # method_settings:
299
310
  # - selector: google.cloud.speech.v2.Speech.BatchRecognize
300
311
  # long_running:
301
- # initial_poll_delay:
302
- # seconds: 60 # 1 minute
312
+ # initial_poll_delay: 60s # 1 minute
303
313
  # poll_delay_multiplier: 1.5
304
- # max_poll_delay:
305
- # seconds: 360 # 6 minutes
306
- # total_poll_timeout:
307
- # seconds: 54000 # 90 minutes
314
+ # max_poll_delay: 360s # 6 minutes
315
+ # total_poll_timeout: 54000s # 90 minutes
308
316
  # @!attribute [rw] auto_populated_fields
309
317
  # @return [::Array<::String>]
310
318
  # List of top-level fields of the request message, that should be
@@ -313,8 +321,8 @@ module Google
313
321
  #
314
322
  # Example of a YAML configuration:
315
323
  #
316
- # publishing:
317
- # method_settings:
324
+ # publishing:
325
+ # method_settings:
318
326
  # - selector: google.example.v1.ExampleService.CreateExample
319
327
  # auto_populated_fields:
320
328
  # - request_id
@@ -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
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-notebooks-v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
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-08-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common