google-cloud-data_catalog-v1 0.23.0 → 1.0.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.
@@ -36,6 +36,9 @@ module Google
36
36
  # classify data along a common axis.
37
37
  #
38
38
  class Client
39
+ # @private
40
+ API_VERSION = ""
41
+
39
42
  # @private
40
43
  DEFAULT_ENDPOINT_TEMPLATE = "datacatalog.$UNIVERSE_DOMAIN$"
41
44
 
@@ -241,10 +244,11 @@ module Google
241
244
  # Customize the options with defaults
242
245
  metadata = @config.rpcs.create_taxonomy.metadata.to_h
243
246
 
244
- # Set x-goog-api-client and x-goog-user-project headers
247
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
245
248
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
246
249
  lib_name: @config.lib_name, lib_version: @config.lib_version,
247
250
  gapic_version: ::Google::Cloud::DataCatalog::V1::VERSION
251
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
248
252
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
249
253
 
250
254
  header_params = {}
@@ -330,10 +334,11 @@ module Google
330
334
  # Customize the options with defaults
331
335
  metadata = @config.rpcs.delete_taxonomy.metadata.to_h
332
336
 
333
- # Set x-goog-api-client and x-goog-user-project headers
337
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
334
338
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
335
339
  lib_name: @config.lib_name, lib_version: @config.lib_version,
336
340
  gapic_version: ::Google::Cloud::DataCatalog::V1::VERSION
341
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
337
342
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
338
343
 
339
344
  header_params = {}
@@ -423,10 +428,11 @@ module Google
423
428
  # Customize the options with defaults
424
429
  metadata = @config.rpcs.update_taxonomy.metadata.to_h
425
430
 
426
- # Set x-goog-api-client and x-goog-user-project headers
431
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
427
432
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
428
433
  lib_name: @config.lib_name, lib_version: @config.lib_version,
429
434
  gapic_version: ::Google::Cloud::DataCatalog::V1::VERSION
435
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
430
436
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
431
437
 
432
438
  header_params = {}
@@ -524,10 +530,11 @@ module Google
524
530
  # Customize the options with defaults
525
531
  metadata = @config.rpcs.list_taxonomies.metadata.to_h
526
532
 
527
- # Set x-goog-api-client and x-goog-user-project headers
533
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
528
534
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
529
535
  lib_name: @config.lib_name, lib_version: @config.lib_version,
530
536
  gapic_version: ::Google::Cloud::DataCatalog::V1::VERSION
537
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
531
538
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
532
539
 
533
540
  header_params = {}
@@ -610,10 +617,11 @@ module Google
610
617
  # Customize the options with defaults
611
618
  metadata = @config.rpcs.get_taxonomy.metadata.to_h
612
619
 
613
- # Set x-goog-api-client and x-goog-user-project headers
620
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
614
621
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
615
622
  lib_name: @config.lib_name, lib_version: @config.lib_version,
616
623
  gapic_version: ::Google::Cloud::DataCatalog::V1::VERSION
624
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
617
625
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
618
626
 
619
627
  header_params = {}
@@ -697,10 +705,11 @@ module Google
697
705
  # Customize the options with defaults
698
706
  metadata = @config.rpcs.create_policy_tag.metadata.to_h
699
707
 
700
- # Set x-goog-api-client and x-goog-user-project headers
708
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
701
709
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
702
710
  lib_name: @config.lib_name, lib_version: @config.lib_version,
703
711
  gapic_version: ::Google::Cloud::DataCatalog::V1::VERSION
712
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
704
713
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
705
714
 
706
715
  header_params = {}
@@ -789,10 +798,11 @@ module Google
789
798
  # Customize the options with defaults
790
799
  metadata = @config.rpcs.delete_policy_tag.metadata.to_h
791
800
 
792
- # Set x-goog-api-client and x-goog-user-project headers
801
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
793
802
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
794
803
  lib_name: @config.lib_name, lib_version: @config.lib_version,
795
804
  gapic_version: ::Google::Cloud::DataCatalog::V1::VERSION
805
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
796
806
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
797
807
 
798
808
  header_params = {}
@@ -883,10 +893,11 @@ module Google
883
893
  # Customize the options with defaults
884
894
  metadata = @config.rpcs.update_policy_tag.metadata.to_h
885
895
 
886
- # Set x-goog-api-client and x-goog-user-project headers
896
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
887
897
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
888
898
  lib_name: @config.lib_name, lib_version: @config.lib_version,
889
899
  gapic_version: ::Google::Cloud::DataCatalog::V1::VERSION
900
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
890
901
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
891
902
 
892
903
  header_params = {}
@@ -981,10 +992,11 @@ module Google
981
992
  # Customize the options with defaults
982
993
  metadata = @config.rpcs.list_policy_tags.metadata.to_h
983
994
 
984
- # Set x-goog-api-client and x-goog-user-project headers
995
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
985
996
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
986
997
  lib_name: @config.lib_name, lib_version: @config.lib_version,
987
998
  gapic_version: ::Google::Cloud::DataCatalog::V1::VERSION
999
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
988
1000
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
989
1001
 
990
1002
  header_params = {}
@@ -1067,10 +1079,11 @@ module Google
1067
1079
  # Customize the options with defaults
1068
1080
  metadata = @config.rpcs.get_policy_tag.metadata.to_h
1069
1081
 
1070
- # Set x-goog-api-client and x-goog-user-project headers
1082
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1071
1083
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1072
1084
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1073
1085
  gapic_version: ::Google::Cloud::DataCatalog::V1::VERSION
1086
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1074
1087
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1075
1088
 
1076
1089
  header_params = {}
@@ -1156,10 +1169,11 @@ module Google
1156
1169
  # Customize the options with defaults
1157
1170
  metadata = @config.rpcs.get_iam_policy.metadata.to_h
1158
1171
 
1159
- # Set x-goog-api-client and x-goog-user-project headers
1172
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1160
1173
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1161
1174
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1162
1175
  gapic_version: ::Google::Cloud::DataCatalog::V1::VERSION
1176
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1163
1177
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1164
1178
 
1165
1179
  header_params = {}
@@ -1253,10 +1267,11 @@ module Google
1253
1267
  # Customize the options with defaults
1254
1268
  metadata = @config.rpcs.set_iam_policy.metadata.to_h
1255
1269
 
1256
- # Set x-goog-api-client and x-goog-user-project headers
1270
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1257
1271
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1258
1272
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1259
1273
  gapic_version: ::Google::Cloud::DataCatalog::V1::VERSION
1274
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1260
1275
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1261
1276
 
1262
1277
  header_params = {}
@@ -1345,10 +1360,11 @@ module Google
1345
1360
  # Customize the options with defaults
1346
1361
  metadata = @config.rpcs.test_iam_permissions.metadata.to_h
1347
1362
 
1348
- # Set x-goog-api-client and x-goog-user-project headers
1363
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1349
1364
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1350
1365
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1351
1366
  gapic_version: ::Google::Cloud::DataCatalog::V1::VERSION
1367
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1352
1368
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1353
1369
 
1354
1370
  header_params = {}
@@ -38,6 +38,9 @@ module Google
38
38
  # classify data along a common axis.
39
39
  #
40
40
  class Client
41
+ # @private
42
+ API_VERSION = ""
43
+
41
44
  # @private
42
45
  DEFAULT_ENDPOINT_TEMPLATE = "datacatalog.$UNIVERSE_DOMAIN$"
43
46
 
@@ -233,12 +236,13 @@ module Google
233
236
  # Customize the options with defaults
234
237
  call_metadata = @config.rpcs.create_taxonomy.metadata.to_h
235
238
 
236
- # Set x-goog-api-client and x-goog-user-project headers
239
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
237
240
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
238
241
  lib_name: @config.lib_name, lib_version: @config.lib_version,
239
242
  gapic_version: ::Google::Cloud::DataCatalog::V1::VERSION,
240
243
  transports_version_send: [:rest]
241
244
 
245
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
242
246
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
243
247
 
244
248
  options.apply_defaults timeout: @config.rpcs.create_taxonomy.timeout,
@@ -315,12 +319,13 @@ module Google
315
319
  # Customize the options with defaults
316
320
  call_metadata = @config.rpcs.delete_taxonomy.metadata.to_h
317
321
 
318
- # Set x-goog-api-client and x-goog-user-project headers
322
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
319
323
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
320
324
  lib_name: @config.lib_name, lib_version: @config.lib_version,
321
325
  gapic_version: ::Google::Cloud::DataCatalog::V1::VERSION,
322
326
  transports_version_send: [:rest]
323
327
 
328
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
324
329
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
325
330
 
326
331
  options.apply_defaults timeout: @config.rpcs.delete_taxonomy.timeout,
@@ -401,12 +406,13 @@ module Google
401
406
  # Customize the options with defaults
402
407
  call_metadata = @config.rpcs.update_taxonomy.metadata.to_h
403
408
 
404
- # Set x-goog-api-client and x-goog-user-project headers
409
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
405
410
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
406
411
  lib_name: @config.lib_name, lib_version: @config.lib_version,
407
412
  gapic_version: ::Google::Cloud::DataCatalog::V1::VERSION,
408
413
  transports_version_send: [:rest]
409
414
 
415
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
410
416
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
411
417
 
412
418
  options.apply_defaults timeout: @config.rpcs.update_taxonomy.timeout,
@@ -495,12 +501,13 @@ module Google
495
501
  # Customize the options with defaults
496
502
  call_metadata = @config.rpcs.list_taxonomies.metadata.to_h
497
503
 
498
- # Set x-goog-api-client and x-goog-user-project headers
504
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
499
505
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
500
506
  lib_name: @config.lib_name, lib_version: @config.lib_version,
501
507
  gapic_version: ::Google::Cloud::DataCatalog::V1::VERSION,
502
508
  transports_version_send: [:rest]
503
509
 
510
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
504
511
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
505
512
 
506
513
  options.apply_defaults timeout: @config.rpcs.list_taxonomies.timeout,
@@ -574,12 +581,13 @@ module Google
574
581
  # Customize the options with defaults
575
582
  call_metadata = @config.rpcs.get_taxonomy.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
  call_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::DataCatalog::V1::VERSION,
581
588
  transports_version_send: [:rest]
582
589
 
590
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
583
591
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
584
592
 
585
593
  options.apply_defaults timeout: @config.rpcs.get_taxonomy.timeout,
@@ -654,12 +662,13 @@ module Google
654
662
  # Customize the options with defaults
655
663
  call_metadata = @config.rpcs.create_policy_tag.metadata.to_h
656
664
 
657
- # Set x-goog-api-client and x-goog-user-project headers
665
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
658
666
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
659
667
  lib_name: @config.lib_name, lib_version: @config.lib_version,
660
668
  gapic_version: ::Google::Cloud::DataCatalog::V1::VERSION,
661
669
  transports_version_send: [:rest]
662
670
 
671
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
663
672
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
664
673
 
665
674
  options.apply_defaults timeout: @config.rpcs.create_policy_tag.timeout,
@@ -739,12 +748,13 @@ module Google
739
748
  # Customize the options with defaults
740
749
  call_metadata = @config.rpcs.delete_policy_tag.metadata.to_h
741
750
 
742
- # Set x-goog-api-client and x-goog-user-project headers
751
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
743
752
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
744
753
  lib_name: @config.lib_name, lib_version: @config.lib_version,
745
754
  gapic_version: ::Google::Cloud::DataCatalog::V1::VERSION,
746
755
  transports_version_send: [:rest]
747
756
 
757
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
748
758
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
749
759
 
750
760
  options.apply_defaults timeout: @config.rpcs.delete_policy_tag.timeout,
@@ -826,12 +836,13 @@ module Google
826
836
  # Customize the options with defaults
827
837
  call_metadata = @config.rpcs.update_policy_tag.metadata.to_h
828
838
 
829
- # Set x-goog-api-client and x-goog-user-project headers
839
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
830
840
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
831
841
  lib_name: @config.lib_name, lib_version: @config.lib_version,
832
842
  gapic_version: ::Google::Cloud::DataCatalog::V1::VERSION,
833
843
  transports_version_send: [:rest]
834
844
 
845
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
835
846
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
836
847
 
837
848
  options.apply_defaults timeout: @config.rpcs.update_policy_tag.timeout,
@@ -917,12 +928,13 @@ module Google
917
928
  # Customize the options with defaults
918
929
  call_metadata = @config.rpcs.list_policy_tags.metadata.to_h
919
930
 
920
- # Set x-goog-api-client and x-goog-user-project headers
931
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
921
932
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
922
933
  lib_name: @config.lib_name, lib_version: @config.lib_version,
923
934
  gapic_version: ::Google::Cloud::DataCatalog::V1::VERSION,
924
935
  transports_version_send: [:rest]
925
936
 
937
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
926
938
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
927
939
 
928
940
  options.apply_defaults timeout: @config.rpcs.list_policy_tags.timeout,
@@ -996,12 +1008,13 @@ module Google
996
1008
  # Customize the options with defaults
997
1009
  call_metadata = @config.rpcs.get_policy_tag.metadata.to_h
998
1010
 
999
- # Set x-goog-api-client and x-goog-user-project headers
1011
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1000
1012
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1001
1013
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1002
1014
  gapic_version: ::Google::Cloud::DataCatalog::V1::VERSION,
1003
1015
  transports_version_send: [:rest]
1004
1016
 
1017
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1005
1018
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1006
1019
 
1007
1020
  options.apply_defaults timeout: @config.rpcs.get_policy_tag.timeout,
@@ -1078,12 +1091,13 @@ module Google
1078
1091
  # Customize the options with defaults
1079
1092
  call_metadata = @config.rpcs.get_iam_policy.metadata.to_h
1080
1093
 
1081
- # Set x-goog-api-client and x-goog-user-project headers
1094
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1082
1095
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1083
1096
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1084
1097
  gapic_version: ::Google::Cloud::DataCatalog::V1::VERSION,
1085
1098
  transports_version_send: [:rest]
1086
1099
 
1100
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1087
1101
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1088
1102
 
1089
1103
  options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout,
@@ -1168,12 +1182,13 @@ module Google
1168
1182
  # Customize the options with defaults
1169
1183
  call_metadata = @config.rpcs.set_iam_policy.metadata.to_h
1170
1184
 
1171
- # Set x-goog-api-client and x-goog-user-project headers
1185
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1172
1186
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1173
1187
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1174
1188
  gapic_version: ::Google::Cloud::DataCatalog::V1::VERSION,
1175
1189
  transports_version_send: [:rest]
1176
1190
 
1191
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1177
1192
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1178
1193
 
1179
1194
  options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout,
@@ -1253,12 +1268,13 @@ module Google
1253
1268
  # Customize the options with defaults
1254
1269
  call_metadata = @config.rpcs.test_iam_permissions.metadata.to_h
1255
1270
 
1256
- # Set x-goog-api-client and x-goog-user-project headers
1271
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1257
1272
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1258
1273
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1259
1274
  gapic_version: ::Google::Cloud::DataCatalog::V1::VERSION,
1260
1275
  transports_version_send: [:rest]
1261
1276
 
1277
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1262
1278
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1263
1279
 
1264
1280
  options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout,
@@ -34,6 +34,9 @@ module Google
34
34
  # Taxonomy is a hierarchical group of policy tags.
35
35
  #
36
36
  class Client
37
+ # @private
38
+ API_VERSION = ""
39
+
37
40
  # @private
38
41
  DEFAULT_ENDPOINT_TEMPLATE = "datacatalog.$UNIVERSE_DOMAIN$"
39
42
 
@@ -249,10 +252,11 @@ module Google
249
252
  # Customize the options with defaults
250
253
  metadata = @config.rpcs.replace_taxonomy.metadata.to_h
251
254
 
252
- # Set x-goog-api-client and x-goog-user-project headers
255
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
253
256
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
254
257
  lib_name: @config.lib_name, lib_version: @config.lib_version,
255
258
  gapic_version: ::Google::Cloud::DataCatalog::V1::VERSION
259
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
256
260
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
257
261
 
258
262
  header_params = {}
@@ -346,10 +350,11 @@ module Google
346
350
  # Customize the options with defaults
347
351
  metadata = @config.rpcs.import_taxonomies.metadata.to_h
348
352
 
349
- # Set x-goog-api-client and x-goog-user-project headers
353
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
350
354
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
351
355
  lib_name: @config.lib_name, lib_version: @config.lib_version,
352
356
  gapic_version: ::Google::Cloud::DataCatalog::V1::VERSION
357
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
353
358
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
354
359
 
355
360
  header_params = {}
@@ -442,10 +447,11 @@ module Google
442
447
  # Customize the options with defaults
443
448
  metadata = @config.rpcs.export_taxonomies.metadata.to_h
444
449
 
445
- # Set x-goog-api-client and x-goog-user-project headers
450
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
446
451
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
447
452
  lib_name: @config.lib_name, lib_version: @config.lib_version,
448
453
  gapic_version: ::Google::Cloud::DataCatalog::V1::VERSION
454
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
449
455
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
450
456
 
451
457
  header_params = {}
@@ -36,6 +36,9 @@ module Google
36
36
  # Taxonomy is a hierarchical group of policy tags.
37
37
  #
38
38
  class Client
39
+ # @private
40
+ API_VERSION = ""
41
+
39
42
  # @private
40
43
  DEFAULT_ENDPOINT_TEMPLATE = "datacatalog.$UNIVERSE_DOMAIN$"
41
44
 
@@ -241,12 +244,13 @@ module Google
241
244
  # Customize the options with defaults
242
245
  call_metadata = @config.rpcs.replace_taxonomy.metadata.to_h
243
246
 
244
- # Set x-goog-api-client and x-goog-user-project headers
247
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
245
248
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
246
249
  lib_name: @config.lib_name, lib_version: @config.lib_version,
247
250
  gapic_version: ::Google::Cloud::DataCatalog::V1::VERSION,
248
251
  transports_version_send: [:rest]
249
252
 
253
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
250
254
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
251
255
 
252
256
  options.apply_defaults timeout: @config.rpcs.replace_taxonomy.timeout,
@@ -331,12 +335,13 @@ module Google
331
335
  # Customize the options with defaults
332
336
  call_metadata = @config.rpcs.import_taxonomies.metadata.to_h
333
337
 
334
- # Set x-goog-api-client and x-goog-user-project headers
338
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
335
339
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
336
340
  lib_name: @config.lib_name, lib_version: @config.lib_version,
337
341
  gapic_version: ::Google::Cloud::DataCatalog::V1::VERSION,
338
342
  transports_version_send: [:rest]
339
343
 
344
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
340
345
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
341
346
 
342
347
  options.apply_defaults timeout: @config.rpcs.import_taxonomies.timeout,
@@ -420,12 +425,13 @@ module Google
420
425
  # Customize the options with defaults
421
426
  call_metadata = @config.rpcs.export_taxonomies.metadata.to_h
422
427
 
423
- # 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
424
429
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
425
430
  lib_name: @config.lib_name, lib_version: @config.lib_version,
426
431
  gapic_version: ::Google::Cloud::DataCatalog::V1::VERSION,
427
432
  transports_version_send: [:rest]
428
433
 
434
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
429
435
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
430
436
 
431
437
  options.apply_defaults timeout: @config.rpcs.export_taxonomies.timeout,
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module DataCatalog
23
23
  module V1
24
- VERSION = "0.23.0"
24
+ VERSION = "1.0.1"
25
25
  end
26
26
  end
27
27
  end
@@ -196,9 +196,26 @@ module Google
196
196
  # @!attribute [rw] common
197
197
  # @return [::Google::Api::CommonLanguageSettings]
198
198
  # Some settings.
199
+ # @!attribute [rw] experimental_features
200
+ # @return [::Google::Api::PythonSettings::ExperimentalFeatures]
201
+ # Experimental features to be included during client library generation.
199
202
  class PythonSettings
200
203
  include ::Google::Protobuf::MessageExts
201
204
  extend ::Google::Protobuf::MessageExts::ClassMethods
205
+
206
+ # Experimental features to be included during client library generation.
207
+ # These fields will be deprecated once the feature graduates and is enabled
208
+ # by default.
209
+ # @!attribute [rw] rest_async_io_enabled
210
+ # @return [::Boolean]
211
+ # Enables generation of asynchronous REST clients if `rest` transport is
212
+ # enabled. By default, asynchronous REST clients will not be generated.
213
+ # This feature will be enabled by default 1 month after launching the
214
+ # feature in preview packages.
215
+ class ExperimentalFeatures
216
+ include ::Google::Protobuf::MessageExts
217
+ extend ::Google::Protobuf::MessageExts::ClassMethods
218
+ end
202
219
  end
203
220
 
204
221
  # Settings for Node client libraries.
@@ -290,6 +307,13 @@ module Google
290
307
  # @return [::String]
291
308
  # The fully qualified name of the method, for which the options below apply.
292
309
  # This is used to find the method to apply the options.
310
+ #
311
+ # Example:
312
+ #
313
+ # publishing:
314
+ # method_settings:
315
+ # - selector: google.storage.control.v2.StorageControl.CreateFolder
316
+ # # method settings for CreateFolder...
293
317
  # @!attribute [rw] long_running
294
318
  # @return [::Google::Api::MethodSettings::LongRunning]
295
319
  # Describes settings to use for long-running operations when generating
@@ -298,17 +322,14 @@ module Google
298
322
  #
299
323
  # Example of a YAML configuration::
300
324
  #
301
- # publishing:
302
- # method_settings:
325
+ # publishing:
326
+ # method_settings:
303
327
  # - selector: google.cloud.speech.v2.Speech.BatchRecognize
304
328
  # long_running:
305
- # initial_poll_delay:
306
- # seconds: 60 # 1 minute
329
+ # initial_poll_delay: 60s # 1 minute
307
330
  # poll_delay_multiplier: 1.5
308
- # max_poll_delay:
309
- # seconds: 360 # 6 minutes
310
- # total_poll_timeout:
311
- # seconds: 54000 # 90 minutes
331
+ # max_poll_delay: 360s # 6 minutes
332
+ # total_poll_timeout: 54000s # 90 minutes
312
333
  # @!attribute [rw] auto_populated_fields
313
334
  # @return [::Array<::String>]
314
335
  # List of top-level fields of the request message, that should be
@@ -317,8 +338,8 @@ module Google
317
338
  #
318
339
  # Example of a YAML configuration:
319
340
  #
320
- # publishing:
321
- # method_settings:
341
+ # publishing:
342
+ # method_settings:
322
343
  # - selector: google.example.v1.ExampleService.CreateExample
323
344
  # auto_populated_fields:
324
345
  # - 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-data_catalog-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.23.0
4
+ version: 1.0.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-03-18 00:00:00.000000000 Z
11
+ date: 2024-08-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common