google-cloud-dataplex-v1 0.20.0 → 0.21.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (29) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/dataplex/v1/catalog_pb.rb +1 -1
  3. data/lib/google/cloud/dataplex/v1/catalog_service/client.rb +54 -27
  4. data/lib/google/cloud/dataplex/v1/catalog_service/operations.rb +13 -5
  5. data/lib/google/cloud/dataplex/v1/catalog_service/rest/client.rb +54 -27
  6. data/lib/google/cloud/dataplex/v1/catalog_service/rest/operations.rb +11 -4
  7. data/lib/google/cloud/dataplex/v1/content_service/client.rb +19 -8
  8. data/lib/google/cloud/dataplex/v1/content_service/rest/client.rb +19 -8
  9. data/lib/google/cloud/dataplex/v1/data_quality_pb.rb +2 -1
  10. data/lib/google/cloud/dataplex/v1/data_scan_service/client.rb +21 -9
  11. data/lib/google/cloud/dataplex/v1/data_scan_service/operations.rb +13 -5
  12. data/lib/google/cloud/dataplex/v1/data_scan_service/rest/client.rb +21 -9
  13. data/lib/google/cloud/dataplex/v1/data_scan_service/rest/operations.rb +11 -4
  14. data/lib/google/cloud/dataplex/v1/data_taxonomy_service/client.rb +33 -15
  15. data/lib/google/cloud/dataplex/v1/data_taxonomy_service/operations.rb +13 -5
  16. data/lib/google/cloud/dataplex/v1/data_taxonomy_service/rest/client.rb +33 -15
  17. data/lib/google/cloud/dataplex/v1/data_taxonomy_service/rest/operations.rb +11 -4
  18. data/lib/google/cloud/dataplex/v1/dataplex_service/client.rb +69 -33
  19. data/lib/google/cloud/dataplex/v1/dataplex_service/operations.rb +13 -5
  20. data/lib/google/cloud/dataplex/v1/dataplex_service/rest/client.rb +69 -33
  21. data/lib/google/cloud/dataplex/v1/dataplex_service/rest/operations.rb +11 -4
  22. data/lib/google/cloud/dataplex/v1/logs_pb.rb +1 -1
  23. data/lib/google/cloud/dataplex/v1/metadata_service/client.rb +21 -9
  24. data/lib/google/cloud/dataplex/v1/metadata_service/rest/client.rb +21 -9
  25. data/lib/google/cloud/dataplex/v1/version.rb +1 -1
  26. data/proto_docs/google/cloud/dataplex/v1/catalog.rb +13 -36
  27. data/proto_docs/google/cloud/dataplex/v1/data_quality.rb +29 -0
  28. data/proto_docs/google/cloud/dataplex/v1/logs.rb +8 -0
  29. metadata +2 -2
@@ -34,6 +34,9 @@ module Google
34
34
  # ContentService manages Notebook and SQL Scripts for Dataplex.
35
35
  #
36
36
  class Client
37
+ # @private
38
+ API_VERSION = ""
39
+
37
40
  # @private
38
41
  DEFAULT_ENDPOINT_TEMPLATE = "dataplex.$UNIVERSE_DOMAIN$"
39
42
 
@@ -273,12 +276,13 @@ module Google
273
276
  # Customize the options with defaults
274
277
  call_metadata = @config.rpcs.create_content.metadata.to_h
275
278
 
276
- # Set x-goog-api-client and x-goog-user-project headers
279
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
277
280
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
278
281
  lib_name: @config.lib_name, lib_version: @config.lib_version,
279
282
  gapic_version: ::Google::Cloud::Dataplex::V1::VERSION,
280
283
  transports_version_send: [:rest]
281
284
 
285
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
282
286
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
283
287
 
284
288
  options.apply_defaults timeout: @config.rpcs.create_content.timeout,
@@ -357,12 +361,13 @@ module Google
357
361
  # Customize the options with defaults
358
362
  call_metadata = @config.rpcs.update_content.metadata.to_h
359
363
 
360
- # Set x-goog-api-client and x-goog-user-project headers
364
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
361
365
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
362
366
  lib_name: @config.lib_name, lib_version: @config.lib_version,
363
367
  gapic_version: ::Google::Cloud::Dataplex::V1::VERSION,
364
368
  transports_version_send: [:rest]
365
369
 
370
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
366
371
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
367
372
 
368
373
  options.apply_defaults timeout: @config.rpcs.update_content.timeout,
@@ -436,12 +441,13 @@ module Google
436
441
  # Customize the options with defaults
437
442
  call_metadata = @config.rpcs.delete_content.metadata.to_h
438
443
 
439
- # Set x-goog-api-client and x-goog-user-project headers
444
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
440
445
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
441
446
  lib_name: @config.lib_name, lib_version: @config.lib_version,
442
447
  gapic_version: ::Google::Cloud::Dataplex::V1::VERSION,
443
448
  transports_version_send: [:rest]
444
449
 
450
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
445
451
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
446
452
 
447
453
  options.apply_defaults timeout: @config.rpcs.delete_content.timeout,
@@ -517,12 +523,13 @@ module Google
517
523
  # Customize the options with defaults
518
524
  call_metadata = @config.rpcs.get_content.metadata.to_h
519
525
 
520
- # Set x-goog-api-client and x-goog-user-project headers
526
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
521
527
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
522
528
  lib_name: @config.lib_name, lib_version: @config.lib_version,
523
529
  gapic_version: ::Google::Cloud::Dataplex::V1::VERSION,
524
530
  transports_version_send: [:rest]
525
531
 
532
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
526
533
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
527
534
 
528
535
  options.apply_defaults timeout: @config.rpcs.get_content.timeout,
@@ -604,12 +611,13 @@ module Google
604
611
  # Customize the options with defaults
605
612
  call_metadata = @config.rpcs.get_iam_policy.metadata.to_h
606
613
 
607
- # Set x-goog-api-client and x-goog-user-project headers
614
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
608
615
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
609
616
  lib_name: @config.lib_name, lib_version: @config.lib_version,
610
617
  gapic_version: ::Google::Cloud::Dataplex::V1::VERSION,
611
618
  transports_version_send: [:rest]
612
619
 
620
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
613
621
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
614
622
 
615
623
  options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout,
@@ -698,12 +706,13 @@ module Google
698
706
  # Customize the options with defaults
699
707
  call_metadata = @config.rpcs.set_iam_policy.metadata.to_h
700
708
 
701
- # Set x-goog-api-client and x-goog-user-project headers
709
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
702
710
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
703
711
  lib_name: @config.lib_name, lib_version: @config.lib_version,
704
712
  gapic_version: ::Google::Cloud::Dataplex::V1::VERSION,
705
713
  transports_version_send: [:rest]
706
714
 
715
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
707
716
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
708
717
 
709
718
  options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout,
@@ -791,12 +800,13 @@ module Google
791
800
  # Customize the options with defaults
792
801
  call_metadata = @config.rpcs.test_iam_permissions.metadata.to_h
793
802
 
794
- # Set x-goog-api-client and x-goog-user-project headers
803
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
795
804
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
796
805
  lib_name: @config.lib_name, lib_version: @config.lib_version,
797
806
  gapic_version: ::Google::Cloud::Dataplex::V1::VERSION,
798
807
  transports_version_send: [:rest]
799
808
 
809
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
800
810
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
801
811
 
802
812
  options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout,
@@ -893,12 +903,13 @@ module Google
893
903
  # Customize the options with defaults
894
904
  call_metadata = @config.rpcs.list_content.metadata.to_h
895
905
 
896
- # Set x-goog-api-client and x-goog-user-project headers
906
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
897
907
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
898
908
  lib_name: @config.lib_name, lib_version: @config.lib_version,
899
909
  gapic_version: ::Google::Cloud::Dataplex::V1::VERSION,
900
910
  transports_version_send: [:rest]
901
911
 
912
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
902
913
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
903
914
 
904
915
  options.apply_defaults timeout: @config.rpcs.list_content.timeout,
@@ -9,7 +9,7 @@ require 'google/api/resource_pb'
9
9
  require 'google/cloud/dataplex/v1/processing_pb'
10
10
 
11
11
 
12
- descriptor_data = "\n+google/cloud/dataplex/v1/data_quality.proto\x12\x18google.cloud.dataplex.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a)google/cloud/dataplex/v1/processing.proto\"\xc0\x08\n\x0f\x44\x61taQualitySpec\x12=\n\x05rules\x18\x01 \x03(\x0b\x32).google.cloud.dataplex.v1.DataQualityRuleB\x03\xe0\x41\x02\x12\x1d\n\x10sampling_percent\x18\x04 \x01(\x02\x42\x03\xe0\x41\x01\x12\x17\n\nrow_filter\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12Y\n\x11post_scan_actions\x18\x06 \x01(\x0b\x32\x39.google.cloud.dataplex.v1.DataQualitySpec.PostScanActionsB\x03\xe0\x41\x01\x1a\xda\x06\n\x0fPostScanActions\x12\x66\n\x0f\x62igquery_export\x18\x01 \x01(\x0b\x32H.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.BigQueryExportB\x03\xe0\x41\x01\x12n\n\x13notification_report\x18\x02 \x01(\x0b\x32L.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.NotificationReportB\x03\xe0\x41\x01\x1a,\n\x0e\x42igQueryExport\x12\x1a\n\rresults_table\x18\x01 \x01(\tB\x03\xe0\x41\x01\x1a!\n\nRecipients\x12\x13\n\x06\x65mails\x18\x01 \x03(\tB\x03\xe0\x41\x01\x1a\x35\n\x15ScoreThresholdTrigger\x12\x1c\n\x0fscore_threshold\x18\x02 \x01(\x02\x42\x03\xe0\x41\x01\x1a\x13\n\x11JobFailureTrigger\x1a\x0f\n\rJobEndTrigger\x1a\xc0\x03\n\x12NotificationReport\x12]\n\nrecipients\x18\x01 \x01(\x0b\x32\x44.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.RecipientsB\x03\xe0\x41\x02\x12u\n\x17score_threshold_trigger\x18\x02 \x01(\x0b\x32O.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.ScoreThresholdTriggerB\x03\xe0\x41\x01\x12m\n\x13job_failure_trigger\x18\x04 \x01(\x0b\x32K.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobFailureTriggerB\x03\xe0\x41\x01\x12\x65\n\x0fjob_end_trigger\x18\x05 \x01(\x0b\x32G.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobEndTriggerB\x03\xe0\x41\x01\"\xd3\x06\n\x11\x44\x61taQualityResult\x12\x0e\n\x06passed\x18\x05 \x01(\x08\x12\x17\n\x05score\x18\t \x01(\x02\x42\x03\xe0\x41\x03H\x00\x88\x01\x01\x12H\n\ndimensions\x18\x02 \x03(\x0b\x32\x34.google.cloud.dataplex.v1.DataQualityDimensionResult\x12G\n\x07\x63olumns\x18\n \x03(\x0b\x32\x31.google.cloud.dataplex.v1.DataQualityColumnResultB\x03\xe0\x41\x03\x12>\n\x05rules\x18\x03 \x03(\x0b\x32/.google.cloud.dataplex.v1.DataQualityRuleResult\x12\x11\n\trow_count\x18\x04 \x01(\x03\x12;\n\x0cscanned_data\x18\x07 \x01(\x0b\x32%.google.cloud.dataplex.v1.ScannedData\x12h\n\x18post_scan_actions_result\x18\x08 \x01(\x0b\x32\x41.google.cloud.dataplex.v1.DataQualityResult.PostScanActionsResultB\x03\xe0\x41\x03\x1a\xfd\x02\n\x15PostScanActionsResult\x12{\n\x16\x62igquery_export_result\x18\x01 \x01(\x0b\x32V.google.cloud.dataplex.v1.DataQualityResult.PostScanActionsResult.BigQueryExportResultB\x03\xe0\x41\x03\x1a\xe6\x01\n\x14\x42igQueryExportResult\x12p\n\x05state\x18\x01 \x01(\x0e\x32\\.google.cloud.dataplex.v1.DataQualityResult.PostScanActionsResult.BigQueryExportResult.StateB\x03\xe0\x41\x03\x12\x14\n\x07message\x18\x02 \x01(\tB\x03\xe0\x41\x03\"F\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\r\n\tSUCCEEDED\x10\x01\x12\n\n\x06\x46\x41ILED\x10\x02\x12\x0b\n\x07SKIPPED\x10\x03\x42\x08\n\x06_score\"\xd3\x01\n\x15\x44\x61taQualityRuleResult\x12\x37\n\x04rule\x18\x01 \x01(\x0b\x32).google.cloud.dataplex.v1.DataQualityRule\x12\x0e\n\x06passed\x18\x07 \x01(\x08\x12\x17\n\x0f\x65valuated_count\x18\t \x01(\x03\x12\x14\n\x0cpassed_count\x18\x08 \x01(\x03\x12\x12\n\nnull_count\x18\x05 \x01(\x03\x12\x12\n\npass_ratio\x18\x06 \x01(\x01\x12\x1a\n\x12\x66\x61iling_rows_query\x18\n \x01(\t\"\x97\x01\n\x1a\x44\x61taQualityDimensionResult\x12\x46\n\tdimension\x18\x01 \x01(\x0b\x32..google.cloud.dataplex.v1.DataQualityDimensionB\x03\xe0\x41\x03\x12\x0e\n\x06passed\x18\x03 \x01(\x08\x12\x17\n\x05score\x18\x04 \x01(\x02\x42\x03\xe0\x41\x03H\x00\x88\x01\x01\x42\x08\n\x06_score\"$\n\x14\x44\x61taQualityDimension\x12\x0c\n\x04name\x18\x01 \x01(\t\"\xf6\x0c\n\x0f\x44\x61taQualityRule\x12W\n\x11range_expectation\x18\x01 \x01(\x0b\x32:.google.cloud.dataplex.v1.DataQualityRule.RangeExpectationH\x00\x12\\\n\x14non_null_expectation\x18\x02 \x01(\x0b\x32<.google.cloud.dataplex.v1.DataQualityRule.NonNullExpectationH\x00\x12S\n\x0fset_expectation\x18\x03 \x01(\x0b\x32\x38.google.cloud.dataplex.v1.DataQualityRule.SetExpectationH\x00\x12W\n\x11regex_expectation\x18\x04 \x01(\x0b\x32:.google.cloud.dataplex.v1.DataQualityRule.RegexExpectationH\x00\x12\x61\n\x16uniqueness_expectation\x18\x64 \x01(\x0b\x32?.google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectationH\x00\x12j\n\x1bstatistic_range_expectation\x18\x65 \x01(\x0b\x32\x43.google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectationH\x00\x12g\n\x19row_condition_expectation\x18\xc8\x01 \x01(\x0b\x32\x41.google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectationH\x00\x12k\n\x1btable_condition_expectation\x18\xc9\x01 \x01(\x0b\x32\x43.google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectationH\x00\x12\x14\n\x06\x63olumn\x18\xf4\x03 \x01(\tB\x03\xe0\x41\x01\x12\x19\n\x0bignore_null\x18\xf5\x03 \x01(\x08\x42\x03\xe0\x41\x01\x12\x17\n\tdimension\x18\xf6\x03 \x01(\tB\x03\xe0\x41\x02\x12\x17\n\tthreshold\x18\xf7\x03 \x01(\x01\x42\x03\xe0\x41\x01\x12\x12\n\x04name\x18\xf8\x03 \x01(\tB\x03\xe0\x41\x01\x12\x19\n\x0b\x64\x65scription\x18\xf9\x03 \x01(\tB\x03\xe0\x41\x01\x1a\x84\x01\n\x10RangeExpectation\x12\x16\n\tmin_value\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tmax_value\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x1f\n\x12strict_min_enabled\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\x12\x1f\n\x12strict_max_enabled\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\x1a\x14\n\x12NonNullExpectation\x1a%\n\x0eSetExpectation\x12\x13\n\x06values\x18\x01 \x03(\tB\x03\xe0\x41\x01\x1a&\n\x10RegexExpectation\x12\x12\n\x05regex\x18\x01 \x01(\tB\x03\xe0\x41\x01\x1a\x17\n\x15UniquenessExpectation\x1a\xc2\x02\n\x19StatisticRangeExpectation\x12k\n\tstatistic\x18\x01 \x01(\x0e\x32S.google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation.ColumnStatisticB\x03\xe0\x41\x01\x12\x16\n\tmin_value\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tmax_value\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x1f\n\x12strict_min_enabled\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\x12\x1f\n\x12strict_max_enabled\x18\x05 \x01(\x08\x42\x03\xe0\x41\x01\"F\n\x0f\x43olumnStatistic\x12\x17\n\x13STATISTIC_UNDEFINED\x10\x00\x12\x08\n\x04MEAN\x10\x01\x12\x07\n\x03MIN\x10\x02\x12\x07\n\x03MAX\x10\x03\x1a\x36\n\x17RowConditionExpectation\x12\x1b\n\x0esql_expression\x18\x01 \x01(\tB\x03\xe0\x41\x01\x1a\x38\n\x19TableConditionExpectation\x12\x1b\n\x0esql_expression\x18\x01 \x01(\tB\x03\xe0\x41\x01\x42\x0b\n\trule_type\"Q\n\x17\x44\x61taQualityColumnResult\x12\x13\n\x06\x63olumn\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x17\n\x05score\x18\x02 \x01(\x02\x42\x03\xe0\x41\x03H\x00\x88\x01\x01\x42\x08\n\x06_scoreB\xc4\x01\n\x1c\x63om.google.cloud.dataplex.v1B\x10\x44\x61taQualityProtoP\x01Z8cloud.google.com/go/dataplex/apiv1/dataplexpb;dataplexpb\xea\x41U\n\x1d\x62igquery.googleapis.com/Table\x12\x34projects/{project}/datasets/{dataset}/tables/{table}b\x06proto3"
12
+ descriptor_data = "\n+google/cloud/dataplex/v1/data_quality.proto\x12\x18google.cloud.dataplex.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a)google/cloud/dataplex/v1/processing.proto\"\xc0\x08\n\x0f\x44\x61taQualitySpec\x12=\n\x05rules\x18\x01 \x03(\x0b\x32).google.cloud.dataplex.v1.DataQualityRuleB\x03\xe0\x41\x02\x12\x1d\n\x10sampling_percent\x18\x04 \x01(\x02\x42\x03\xe0\x41\x01\x12\x17\n\nrow_filter\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12Y\n\x11post_scan_actions\x18\x06 \x01(\x0b\x32\x39.google.cloud.dataplex.v1.DataQualitySpec.PostScanActionsB\x03\xe0\x41\x01\x1a\xda\x06\n\x0fPostScanActions\x12\x66\n\x0f\x62igquery_export\x18\x01 \x01(\x0b\x32H.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.BigQueryExportB\x03\xe0\x41\x01\x12n\n\x13notification_report\x18\x02 \x01(\x0b\x32L.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.NotificationReportB\x03\xe0\x41\x01\x1a,\n\x0e\x42igQueryExport\x12\x1a\n\rresults_table\x18\x01 \x01(\tB\x03\xe0\x41\x01\x1a!\n\nRecipients\x12\x13\n\x06\x65mails\x18\x01 \x03(\tB\x03\xe0\x41\x01\x1a\x35\n\x15ScoreThresholdTrigger\x12\x1c\n\x0fscore_threshold\x18\x02 \x01(\x02\x42\x03\xe0\x41\x01\x1a\x13\n\x11JobFailureTrigger\x1a\x0f\n\rJobEndTrigger\x1a\xc0\x03\n\x12NotificationReport\x12]\n\nrecipients\x18\x01 \x01(\x0b\x32\x44.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.RecipientsB\x03\xe0\x41\x02\x12u\n\x17score_threshold_trigger\x18\x02 \x01(\x0b\x32O.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.ScoreThresholdTriggerB\x03\xe0\x41\x01\x12m\n\x13job_failure_trigger\x18\x04 \x01(\x0b\x32K.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobFailureTriggerB\x03\xe0\x41\x01\x12\x65\n\x0fjob_end_trigger\x18\x05 \x01(\x0b\x32G.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobEndTriggerB\x03\xe0\x41\x01\"\xd3\x06\n\x11\x44\x61taQualityResult\x12\x0e\n\x06passed\x18\x05 \x01(\x08\x12\x17\n\x05score\x18\t \x01(\x02\x42\x03\xe0\x41\x03H\x00\x88\x01\x01\x12H\n\ndimensions\x18\x02 \x03(\x0b\x32\x34.google.cloud.dataplex.v1.DataQualityDimensionResult\x12G\n\x07\x63olumns\x18\n \x03(\x0b\x32\x31.google.cloud.dataplex.v1.DataQualityColumnResultB\x03\xe0\x41\x03\x12>\n\x05rules\x18\x03 \x03(\x0b\x32/.google.cloud.dataplex.v1.DataQualityRuleResult\x12\x11\n\trow_count\x18\x04 \x01(\x03\x12;\n\x0cscanned_data\x18\x07 \x01(\x0b\x32%.google.cloud.dataplex.v1.ScannedData\x12h\n\x18post_scan_actions_result\x18\x08 \x01(\x0b\x32\x41.google.cloud.dataplex.v1.DataQualityResult.PostScanActionsResultB\x03\xe0\x41\x03\x1a\xfd\x02\n\x15PostScanActionsResult\x12{\n\x16\x62igquery_export_result\x18\x01 \x01(\x0b\x32V.google.cloud.dataplex.v1.DataQualityResult.PostScanActionsResult.BigQueryExportResultB\x03\xe0\x41\x03\x1a\xe6\x01\n\x14\x42igQueryExportResult\x12p\n\x05state\x18\x01 \x01(\x0e\x32\\.google.cloud.dataplex.v1.DataQualityResult.PostScanActionsResult.BigQueryExportResult.StateB\x03\xe0\x41\x03\x12\x14\n\x07message\x18\x02 \x01(\tB\x03\xe0\x41\x03\"F\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\r\n\tSUCCEEDED\x10\x01\x12\n\n\x06\x46\x41ILED\x10\x02\x12\x0b\n\x07SKIPPED\x10\x03\x42\x08\n\x06_score\"\xf5\x01\n\x15\x44\x61taQualityRuleResult\x12\x37\n\x04rule\x18\x01 \x01(\x0b\x32).google.cloud.dataplex.v1.DataQualityRule\x12\x0e\n\x06passed\x18\x07 \x01(\x08\x12\x17\n\x0f\x65valuated_count\x18\t \x01(\x03\x12\x14\n\x0cpassed_count\x18\x08 \x01(\x03\x12\x12\n\nnull_count\x18\x05 \x01(\x03\x12\x12\n\npass_ratio\x18\x06 \x01(\x01\x12\x1a\n\x12\x66\x61iling_rows_query\x18\n \x01(\t\x12 \n\x13\x61ssertion_row_count\x18\x0b \x01(\x03\x42\x03\xe0\x41\x03\"\x97\x01\n\x1a\x44\x61taQualityDimensionResult\x12\x46\n\tdimension\x18\x01 \x01(\x0b\x32..google.cloud.dataplex.v1.DataQualityDimensionB\x03\xe0\x41\x03\x12\x0e\n\x06passed\x18\x03 \x01(\x08\x12\x17\n\x05score\x18\x04 \x01(\x02\x42\x03\xe0\x41\x03H\x00\x88\x01\x01\x42\x08\n\x06_score\"$\n\x14\x44\x61taQualityDimension\x12\x0c\n\x04name\x18\x01 \x01(\t\"\xf4\r\n\x0f\x44\x61taQualityRule\x12W\n\x11range_expectation\x18\x01 \x01(\x0b\x32:.google.cloud.dataplex.v1.DataQualityRule.RangeExpectationH\x00\x12\\\n\x14non_null_expectation\x18\x02 \x01(\x0b\x32<.google.cloud.dataplex.v1.DataQualityRule.NonNullExpectationH\x00\x12S\n\x0fset_expectation\x18\x03 \x01(\x0b\x32\x38.google.cloud.dataplex.v1.DataQualityRule.SetExpectationH\x00\x12W\n\x11regex_expectation\x18\x04 \x01(\x0b\x32:.google.cloud.dataplex.v1.DataQualityRule.RegexExpectationH\x00\x12\x61\n\x16uniqueness_expectation\x18\x64 \x01(\x0b\x32?.google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectationH\x00\x12j\n\x1bstatistic_range_expectation\x18\x65 \x01(\x0b\x32\x43.google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectationH\x00\x12g\n\x19row_condition_expectation\x18\xc8\x01 \x01(\x0b\x32\x41.google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectationH\x00\x12k\n\x1btable_condition_expectation\x18\xc9\x01 \x01(\x0b\x32\x43.google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectationH\x00\x12P\n\rsql_assertion\x18\xca\x01 \x01(\x0b\x32\x36.google.cloud.dataplex.v1.DataQualityRule.SqlAssertionH\x00\x12\x14\n\x06\x63olumn\x18\xf4\x03 \x01(\tB\x03\xe0\x41\x01\x12\x19\n\x0bignore_null\x18\xf5\x03 \x01(\x08\x42\x03\xe0\x41\x01\x12\x17\n\tdimension\x18\xf6\x03 \x01(\tB\x03\xe0\x41\x02\x12\x17\n\tthreshold\x18\xf7\x03 \x01(\x01\x42\x03\xe0\x41\x01\x12\x12\n\x04name\x18\xf8\x03 \x01(\tB\x03\xe0\x41\x01\x12\x19\n\x0b\x64\x65scription\x18\xf9\x03 \x01(\tB\x03\xe0\x41\x01\x1a\x84\x01\n\x10RangeExpectation\x12\x16\n\tmin_value\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tmax_value\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x1f\n\x12strict_min_enabled\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\x12\x1f\n\x12strict_max_enabled\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\x1a\x14\n\x12NonNullExpectation\x1a%\n\x0eSetExpectation\x12\x13\n\x06values\x18\x01 \x03(\tB\x03\xe0\x41\x01\x1a&\n\x10RegexExpectation\x12\x12\n\x05regex\x18\x01 \x01(\tB\x03\xe0\x41\x01\x1a\x17\n\x15UniquenessExpectation\x1a\xc2\x02\n\x19StatisticRangeExpectation\x12k\n\tstatistic\x18\x01 \x01(\x0e\x32S.google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation.ColumnStatisticB\x03\xe0\x41\x01\x12\x16\n\tmin_value\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tmax_value\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x1f\n\x12strict_min_enabled\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\x12\x1f\n\x12strict_max_enabled\x18\x05 \x01(\x08\x42\x03\xe0\x41\x01\"F\n\x0f\x43olumnStatistic\x12\x17\n\x13STATISTIC_UNDEFINED\x10\x00\x12\x08\n\x04MEAN\x10\x01\x12\x07\n\x03MIN\x10\x02\x12\x07\n\x03MAX\x10\x03\x1a\x36\n\x17RowConditionExpectation\x12\x1b\n\x0esql_expression\x18\x01 \x01(\tB\x03\xe0\x41\x01\x1a\x38\n\x19TableConditionExpectation\x12\x1b\n\x0esql_expression\x18\x01 \x01(\tB\x03\xe0\x41\x01\x1a*\n\x0cSqlAssertion\x12\x1a\n\rsql_statement\x18\x01 \x01(\tB\x03\xe0\x41\x01\x42\x0b\n\trule_type\"Q\n\x17\x44\x61taQualityColumnResult\x12\x13\n\x06\x63olumn\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x17\n\x05score\x18\x02 \x01(\x02\x42\x03\xe0\x41\x03H\x00\x88\x01\x01\x42\x08\n\x06_scoreB\xc4\x01\n\x1c\x63om.google.cloud.dataplex.v1B\x10\x44\x61taQualityProtoP\x01Z8cloud.google.com/go/dataplex/apiv1/dataplexpb;dataplexpb\xea\x41U\n\x1d\x62igquery.googleapis.com/Table\x12\x34projects/{project}/datasets/{dataset}/tables/{table}b\x06proto3"
13
13
 
14
14
  pool = Google::Protobuf::DescriptorPool.generated_pool
15
15
 
@@ -65,6 +65,7 @@ module Google
65
65
  DataQualityRule::StatisticRangeExpectation::ColumnStatistic = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation.ColumnStatistic").enummodule
66
66
  DataQualityRule::RowConditionExpectation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation").msgclass
67
67
  DataQualityRule::TableConditionExpectation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation").msgclass
68
+ DataQualityRule::SqlAssertion = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.DataQualityRule.SqlAssertion").msgclass
68
69
  DataQualityColumnResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.DataQualityColumnResult").msgclass
69
70
  end
70
71
  end
@@ -34,6 +34,9 @@ module Google
34
34
  # Data Profile, Data Quality) for the data source.
35
35
  #
36
36
  class Client
37
+ # @private
38
+ API_VERSION = ""
39
+
37
40
  # @private
38
41
  DEFAULT_ENDPOINT_TEMPLATE = "dataplex.$UNIVERSE_DOMAIN$"
39
42
 
@@ -284,10 +287,11 @@ module Google
284
287
  # Customize the options with defaults
285
288
  metadata = @config.rpcs.create_data_scan.metadata.to_h
286
289
 
287
- # Set x-goog-api-client and x-goog-user-project headers
290
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
288
291
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
289
292
  lib_name: @config.lib_name, lib_version: @config.lib_version,
290
293
  gapic_version: ::Google::Cloud::Dataplex::V1::VERSION
294
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
291
295
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
292
296
 
293
297
  header_params = {}
@@ -384,10 +388,11 @@ module Google
384
388
  # Customize the options with defaults
385
389
  metadata = @config.rpcs.update_data_scan.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::Dataplex::V1::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 = {}
@@ -480,10 +485,11 @@ module Google
480
485
  # Customize the options with defaults
481
486
  metadata = @config.rpcs.delete_data_scan.metadata.to_h
482
487
 
483
- # Set x-goog-api-client and x-goog-user-project headers
488
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
484
489
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
485
490
  lib_name: @config.lib_name, lib_version: @config.lib_version,
486
491
  gapic_version: ::Google::Cloud::Dataplex::V1::VERSION
492
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
487
493
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
488
494
 
489
495
  header_params = {}
@@ -571,10 +577,11 @@ module Google
571
577
  # Customize the options with defaults
572
578
  metadata = @config.rpcs.get_data_scan.metadata.to_h
573
579
 
574
- # Set x-goog-api-client and x-goog-user-project headers
580
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
575
581
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
576
582
  lib_name: @config.lib_name, lib_version: @config.lib_version,
577
583
  gapic_version: ::Google::Cloud::Dataplex::V1::VERSION
584
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
578
585
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
579
586
 
580
587
  header_params = {}
@@ -677,10 +684,11 @@ module Google
677
684
  # Customize the options with defaults
678
685
  metadata = @config.rpcs.list_data_scans.metadata.to_h
679
686
 
680
- # Set x-goog-api-client and x-goog-user-project headers
687
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
681
688
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
682
689
  lib_name: @config.lib_name, lib_version: @config.lib_version,
683
690
  gapic_version: ::Google::Cloud::Dataplex::V1::VERSION
691
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
684
692
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
685
693
 
686
694
  header_params = {}
@@ -768,10 +776,11 @@ module Google
768
776
  # Customize the options with defaults
769
777
  metadata = @config.rpcs.run_data_scan.metadata.to_h
770
778
 
771
- # Set x-goog-api-client and x-goog-user-project headers
779
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
772
780
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
773
781
  lib_name: @config.lib_name, lib_version: @config.lib_version,
774
782
  gapic_version: ::Google::Cloud::Dataplex::V1::VERSION
783
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
775
784
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
776
785
 
777
786
  header_params = {}
@@ -858,10 +867,11 @@ module Google
858
867
  # Customize the options with defaults
859
868
  metadata = @config.rpcs.get_data_scan_job.metadata.to_h
860
869
 
861
- # Set x-goog-api-client and x-goog-user-project headers
870
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
862
871
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
863
872
  lib_name: @config.lib_name, lib_version: @config.lib_version,
864
873
  gapic_version: ::Google::Cloud::Dataplex::V1::VERSION
874
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
865
875
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
866
876
 
867
877
  header_params = {}
@@ -978,10 +988,11 @@ module Google
978
988
  # Customize the options with defaults
979
989
  metadata = @config.rpcs.list_data_scan_jobs.metadata.to_h
980
990
 
981
- # Set x-goog-api-client and x-goog-user-project headers
991
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
982
992
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
983
993
  lib_name: @config.lib_name, lib_version: @config.lib_version,
984
994
  gapic_version: ::Google::Cloud::Dataplex::V1::VERSION
995
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
985
996
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
986
997
 
987
998
  header_params = {}
@@ -1067,10 +1078,11 @@ module Google
1067
1078
  # Customize the options with defaults
1068
1079
  metadata = @config.rpcs.generate_data_quality_rules.metadata.to_h
1069
1080
 
1070
- # Set x-goog-api-client and x-goog-user-project headers
1081
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1071
1082
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1072
1083
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1073
1084
  gapic_version: ::Google::Cloud::Dataplex::V1::VERSION
1085
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1074
1086
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1075
1087
 
1076
1088
  header_params = {}
@@ -26,6 +26,9 @@ module Google
26
26
  module DataScanService
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 = "dataplex.$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::Dataplex::V1::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::Dataplex::V1::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::Dataplex::V1::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::Dataplex::V1::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::Dataplex::V1::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,
@@ -36,6 +36,9 @@ module Google
36
36
  # Data Profile, Data Quality) for the data source.
37
37
  #
38
38
  class Client
39
+ # @private
40
+ API_VERSION = ""
41
+
39
42
  # @private
40
43
  DEFAULT_ENDPOINT_TEMPLATE = "dataplex.$UNIVERSE_DOMAIN$"
41
44
 
@@ -278,12 +281,13 @@ module Google
278
281
  # Customize the options with defaults
279
282
  call_metadata = @config.rpcs.create_data_scan.metadata.to_h
280
283
 
281
- # Set x-goog-api-client and x-goog-user-project headers
284
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
282
285
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
283
286
  lib_name: @config.lib_name, lib_version: @config.lib_version,
284
287
  gapic_version: ::Google::Cloud::Dataplex::V1::VERSION,
285
288
  transports_version_send: [:rest]
286
289
 
290
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
287
291
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
288
292
 
289
293
  options.apply_defaults timeout: @config.rpcs.create_data_scan.timeout,
@@ -371,12 +375,13 @@ module Google
371
375
  # Customize the options with defaults
372
376
  call_metadata = @config.rpcs.update_data_scan.metadata.to_h
373
377
 
374
- # Set x-goog-api-client and x-goog-user-project headers
378
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
375
379
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
376
380
  lib_name: @config.lib_name, lib_version: @config.lib_version,
377
381
  gapic_version: ::Google::Cloud::Dataplex::V1::VERSION,
378
382
  transports_version_send: [:rest]
379
383
 
384
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
380
385
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
381
386
 
382
387
  options.apply_defaults timeout: @config.rpcs.update_data_scan.timeout,
@@ -460,12 +465,13 @@ module Google
460
465
  # Customize the options with defaults
461
466
  call_metadata = @config.rpcs.delete_data_scan.metadata.to_h
462
467
 
463
- # Set x-goog-api-client and x-goog-user-project headers
468
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
464
469
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
465
470
  lib_name: @config.lib_name, lib_version: @config.lib_version,
466
471
  gapic_version: ::Google::Cloud::Dataplex::V1::VERSION,
467
472
  transports_version_send: [:rest]
468
473
 
474
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
469
475
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
470
476
 
471
477
  options.apply_defaults timeout: @config.rpcs.delete_data_scan.timeout,
@@ -544,12 +550,13 @@ module Google
544
550
  # Customize the options with defaults
545
551
  call_metadata = @config.rpcs.get_data_scan.metadata.to_h
546
552
 
547
- # Set x-goog-api-client and x-goog-user-project headers
553
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
548
554
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
549
555
  lib_name: @config.lib_name, lib_version: @config.lib_version,
550
556
  gapic_version: ::Google::Cloud::Dataplex::V1::VERSION,
551
557
  transports_version_send: [:rest]
552
558
 
559
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
553
560
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
554
561
 
555
562
  options.apply_defaults timeout: @config.rpcs.get_data_scan.timeout,
@@ -643,12 +650,13 @@ module Google
643
650
  # Customize the options with defaults
644
651
  call_metadata = @config.rpcs.list_data_scans.metadata.to_h
645
652
 
646
- # Set x-goog-api-client and x-goog-user-project headers
653
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
647
654
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
648
655
  lib_name: @config.lib_name, lib_version: @config.lib_version,
649
656
  gapic_version: ::Google::Cloud::Dataplex::V1::VERSION,
650
657
  transports_version_send: [:rest]
651
658
 
659
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
652
660
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
653
661
 
654
662
  options.apply_defaults timeout: @config.rpcs.list_data_scans.timeout,
@@ -726,12 +734,13 @@ module Google
726
734
  # Customize the options with defaults
727
735
  call_metadata = @config.rpcs.run_data_scan.metadata.to_h
728
736
 
729
- # Set x-goog-api-client and x-goog-user-project headers
737
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
730
738
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
731
739
  lib_name: @config.lib_name, lib_version: @config.lib_version,
732
740
  gapic_version: ::Google::Cloud::Dataplex::V1::VERSION,
733
741
  transports_version_send: [:rest]
734
742
 
743
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
735
744
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
736
745
 
737
746
  options.apply_defaults timeout: @config.rpcs.run_data_scan.timeout,
@@ -809,12 +818,13 @@ module Google
809
818
  # Customize the options with defaults
810
819
  call_metadata = @config.rpcs.get_data_scan_job.metadata.to_h
811
820
 
812
- # Set x-goog-api-client and x-goog-user-project headers
821
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
813
822
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
814
823
  lib_name: @config.lib_name, lib_version: @config.lib_version,
815
824
  gapic_version: ::Google::Cloud::Dataplex::V1::VERSION,
816
825
  transports_version_send: [:rest]
817
826
 
827
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
818
828
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
819
829
 
820
830
  options.apply_defaults timeout: @config.rpcs.get_data_scan_job.timeout,
@@ -922,12 +932,13 @@ module Google
922
932
  # Customize the options with defaults
923
933
  call_metadata = @config.rpcs.list_data_scan_jobs.metadata.to_h
924
934
 
925
- # Set x-goog-api-client and x-goog-user-project headers
935
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
926
936
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
927
937
  lib_name: @config.lib_name, lib_version: @config.lib_version,
928
938
  gapic_version: ::Google::Cloud::Dataplex::V1::VERSION,
929
939
  transports_version_send: [:rest]
930
940
 
941
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
931
942
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
932
943
 
933
944
  options.apply_defaults timeout: @config.rpcs.list_data_scan_jobs.timeout,
@@ -1004,12 +1015,13 @@ module Google
1004
1015
  # Customize the options with defaults
1005
1016
  call_metadata = @config.rpcs.generate_data_quality_rules.metadata.to_h
1006
1017
 
1007
- # Set x-goog-api-client and x-goog-user-project headers
1018
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1008
1019
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1009
1020
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1010
1021
  gapic_version: ::Google::Cloud::Dataplex::V1::VERSION,
1011
1022
  transports_version_send: [:rest]
1012
1023
 
1024
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1013
1025
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1014
1026
 
1015
1027
  options.apply_defaults timeout: @config.rpcs.generate_data_quality_rules.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 = "dataplex.$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::Dataplex::V1::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::Dataplex::V1::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::Dataplex::V1::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::Dataplex::V1::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,