google-cloud-dataplex-v1 2.9.0 → 2.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/google/cloud/dataplex/v1/analyze_pb.rb +2 -25
- data/lib/google/cloud/dataplex/v1/approval_workflow_pb.rb +33 -0
- data/lib/google/cloud/dataplex/v1/bindings_override.rb +24 -24
- data/lib/google/cloud/dataplex/v1/business_glossary_pb.rb +3 -26
- data/lib/google/cloud/dataplex/v1/business_glossary_service/client.rb +2 -0
- data/lib/google/cloud/dataplex/v1/business_glossary_service/credentials.rb +4 -1
- data/lib/google/cloud/dataplex/v1/business_glossary_service/operations.rb +2 -0
- data/lib/google/cloud/dataplex/v1/business_glossary_service/rest/client.rb +2 -0
- data/lib/google/cloud/dataplex/v1/business_glossary_service/rest/operations.rb +2 -0
- data/lib/google/cloud/dataplex/v1/catalog_pb.rb +20 -27
- data/lib/google/cloud/dataplex/v1/catalog_service/client.rb +1074 -73
- data/lib/google/cloud/dataplex/v1/catalog_service/credentials.rb +4 -1
- data/lib/google/cloud/dataplex/v1/catalog_service/operations.rb +2 -0
- data/lib/google/cloud/dataplex/v1/catalog_service/paths.rb +19 -0
- data/lib/google/cloud/dataplex/v1/catalog_service/rest/client.rb +1020 -82
- data/lib/google/cloud/dataplex/v1/catalog_service/rest/operations.rb +2 -0
- data/lib/google/cloud/dataplex/v1/catalog_service/rest/service_stub.rb +554 -0
- data/lib/google/cloud/dataplex/v1/catalog_services_pb.rb +18 -15
- data/lib/google/cloud/dataplex/v1/cmek_pb.rb +3 -26
- data/lib/google/cloud/dataplex/v1/cmek_service/client.rb +2 -0
- data/lib/google/cloud/dataplex/v1/cmek_service/credentials.rb +2 -1
- data/lib/google/cloud/dataplex/v1/cmek_service/operations.rb +2 -0
- data/lib/google/cloud/dataplex/v1/cmek_service/rest/client.rb +2 -0
- data/lib/google/cloud/dataplex/v1/cmek_service/rest/operations.rb +2 -0
- data/lib/google/cloud/dataplex/v1/content_pb.rb +3 -38
- data/lib/google/cloud/dataplex/v1/content_services_pb.rb +0 -49
- data/lib/google/cloud/dataplex/v1/data_discovery_pb.rb +4 -24
- data/lib/google/cloud/dataplex/v1/data_documentation_pb.rb +10 -24
- data/lib/google/cloud/dataplex/v1/data_product_service/client.rb +1644 -0
- data/lib/google/cloud/dataplex/v1/{content_service → data_product_service}/credentials.rb +7 -4
- data/lib/google/cloud/dataplex/v1/data_product_service/operations.rb +843 -0
- data/lib/google/cloud/dataplex/v1/data_product_service/paths.rb +231 -0
- data/lib/google/cloud/dataplex/v1/data_product_service/rest/client.rb +1533 -0
- data/lib/google/cloud/dataplex/v1/data_product_service/rest/operations.rb +956 -0
- data/lib/google/cloud/dataplex/v1/{content_service → data_product_service}/rest/service_stub.rb +284 -160
- data/lib/google/cloud/dataplex/v1/{content_service → data_product_service}/rest.rb +11 -10
- data/lib/google/cloud/dataplex/v1/{content_service.rb → data_product_service.rb} +15 -14
- data/lib/google/cloud/dataplex/v1/data_products_pb.rb +52 -0
- data/lib/google/cloud/dataplex/v1/data_products_services_pb.rb +69 -0
- data/lib/google/cloud/dataplex/v1/data_profile_pb.rb +4 -26
- data/lib/google/cloud/dataplex/v1/data_quality_pb.rb +13 -26
- data/lib/google/cloud/dataplex/v1/data_quality_rule_template_pb.rb +25 -0
- data/lib/google/cloud/dataplex/v1/data_scan_service/client.rb +99 -1
- data/lib/google/cloud/dataplex/v1/data_scan_service/credentials.rb +4 -1
- data/lib/google/cloud/dataplex/v1/data_scan_service/operations.rb +2 -0
- data/lib/google/cloud/dataplex/v1/data_scan_service/paths.rb +21 -0
- data/lib/google/cloud/dataplex/v1/data_scan_service/rest/client.rb +92 -1
- data/lib/google/cloud/dataplex/v1/data_scan_service/rest/operations.rb +2 -0
- data/lib/google/cloud/dataplex/v1/data_scan_service/rest/service_stub.rb +62 -0
- data/lib/google/cloud/dataplex/v1/data_taxonomy_pb.rb +3 -27
- data/lib/google/cloud/dataplex/v1/data_taxonomy_service/client.rb +2 -0
- data/lib/google/cloud/dataplex/v1/data_taxonomy_service/credentials.rb +2 -1
- data/lib/google/cloud/dataplex/v1/data_taxonomy_service/operations.rb +2 -0
- data/lib/google/cloud/dataplex/v1/data_taxonomy_service/rest/client.rb +2 -0
- data/lib/google/cloud/dataplex/v1/data_taxonomy_service/rest/operations.rb +2 -0
- data/lib/google/cloud/dataplex/v1/dataplex_service/client.rb +2 -664
- data/lib/google/cloud/dataplex/v1/dataplex_service/credentials.rb +4 -1
- data/lib/google/cloud/dataplex/v1/dataplex_service/operations.rb +2 -0
- data/lib/google/cloud/dataplex/v1/dataplex_service/paths.rb +0 -21
- data/lib/google/cloud/dataplex/v1/dataplex_service/rest/client.rb +2 -622
- data/lib/google/cloud/dataplex/v1/dataplex_service/rest/operations.rb +2 -0
- data/lib/google/cloud/dataplex/v1/dataplex_service/rest/service_stub.rb +0 -368
- data/lib/google/cloud/dataplex/v1/datascans_common_pb.rb +3 -24
- data/lib/google/cloud/dataplex/v1/datascans_pb.rb +9 -31
- data/lib/google/cloud/dataplex/v1/datascans_services_pb.rb +2 -0
- data/lib/google/cloud/dataplex/v1/logs_pb.rb +3 -27
- data/lib/google/cloud/dataplex/v1/metadata_pb.rb +3 -25
- data/lib/google/cloud/dataplex/v1/metadata_service/client.rb +2 -0
- data/lib/google/cloud/dataplex/v1/metadata_service/credentials.rb +2 -1
- data/lib/google/cloud/dataplex/v1/metadata_service/rest/client.rb +2 -0
- data/lib/google/cloud/dataplex/v1/processing_pb.rb +5 -24
- data/lib/google/cloud/dataplex/v1/resources_pb.rb +2 -25
- data/lib/google/cloud/dataplex/v1/rest.rb +1 -1
- data/lib/google/cloud/dataplex/v1/security_pb.rb +2 -23
- data/lib/google/cloud/dataplex/v1/service_pb.rb +3 -38
- data/lib/google/cloud/dataplex/v1/service_services_pb.rb +0 -13
- data/lib/google/cloud/dataplex/v1/tasks_pb.rb +2 -25
- data/lib/google/cloud/dataplex/v1/version.rb +1 -1
- data/lib/google/cloud/dataplex/v1.rb +1 -0
- data/proto_docs/google/api/client.rb +149 -29
- data/proto_docs/google/cloud/dataplex/v1/approval_workflow.rb +263 -0
- data/proto_docs/google/cloud/dataplex/v1/catalog.rb +427 -3
- data/proto_docs/google/cloud/dataplex/v1/data_discovery.rb +13 -0
- data/proto_docs/google/cloud/dataplex/v1/data_documentation.rb +118 -2
- data/proto_docs/google/cloud/dataplex/v1/data_products.rb +567 -0
- data/proto_docs/google/cloud/dataplex/v1/data_profile.rb +21 -0
- data/proto_docs/google/cloud/dataplex/v1/data_quality.rb +240 -10
- data/proto_docs/google/cloud/dataplex/v1/data_quality_rule_template.rb +88 -0
- data/proto_docs/google/cloud/dataplex/v1/datascans.rb +82 -5
- data/proto_docs/google/cloud/dataplex/v1/datascans_common.rb +7 -3
- data/proto_docs/google/cloud/dataplex/v1/logs.rb +7 -0
- data/proto_docs/google/cloud/dataplex/v1/processing.rb +27 -3
- data/proto_docs/google/cloud/dataplex/v1/service.rb +0 -148
- metadata +20 -12
- data/lib/google/cloud/dataplex/v1/content_service/client.rb +0 -1261
- data/lib/google/cloud/dataplex/v1/content_service/paths.rb +0 -73
- data/lib/google/cloud/dataplex/v1/content_service/rest/client.rb +0 -1171
- data/proto_docs/google/cloud/dataplex/v1/content.rb +0 -142
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright
|
|
3
|
+
# Copyright 2026 Google LLC
|
|
4
4
|
#
|
|
5
5
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
6
|
# you may not use this file except in compliance with the License.
|
|
@@ -23,24 +23,25 @@ require "gapic/config/method"
|
|
|
23
23
|
require "google/cloud/dataplex/v1/version"
|
|
24
24
|
require "google/cloud/dataplex/v1/bindings_override"
|
|
25
25
|
|
|
26
|
-
require "google/cloud/dataplex/v1/
|
|
27
|
-
require "google/cloud/dataplex/v1/
|
|
28
|
-
require "google/cloud/dataplex/v1/
|
|
26
|
+
require "google/cloud/dataplex/v1/data_product_service/credentials"
|
|
27
|
+
require "google/cloud/dataplex/v1/data_product_service/paths"
|
|
28
|
+
require "google/cloud/dataplex/v1/data_product_service/rest/operations"
|
|
29
|
+
require "google/cloud/dataplex/v1/data_product_service/rest/client"
|
|
29
30
|
|
|
30
31
|
module Google
|
|
31
32
|
module Cloud
|
|
32
33
|
module Dataplex
|
|
33
34
|
module V1
|
|
34
35
|
##
|
|
35
|
-
#
|
|
36
|
-
#
|
|
36
|
+
# `DataProductService` provides APIs for managing data products and
|
|
37
|
+
# the underlying data assets.
|
|
37
38
|
#
|
|
38
39
|
# To load this service and instantiate a REST client:
|
|
39
40
|
#
|
|
40
|
-
# require "google/cloud/dataplex/v1/
|
|
41
|
-
# client = ::Google::Cloud::Dataplex::V1::
|
|
41
|
+
# require "google/cloud/dataplex/v1/data_product_service/rest"
|
|
42
|
+
# client = ::Google::Cloud::Dataplex::V1::DataProductService::Rest::Client.new
|
|
42
43
|
#
|
|
43
|
-
module
|
|
44
|
+
module DataProductService
|
|
44
45
|
# Client for the REST transport
|
|
45
46
|
module Rest
|
|
46
47
|
end
|
|
@@ -51,4 +52,4 @@ module Google
|
|
|
51
52
|
end
|
|
52
53
|
|
|
53
54
|
helper_path = ::File.join __dir__, "rest", "helpers.rb"
|
|
54
|
-
require "google/cloud/dataplex/v1/
|
|
55
|
+
require "google/cloud/dataplex/v1/data_product_service/rest/helpers" if ::File.file? helper_path
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright
|
|
3
|
+
# Copyright 2026 Google LLC
|
|
4
4
|
#
|
|
5
5
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
6
|
# you may not use this file except in compliance with the License.
|
|
@@ -22,35 +22,36 @@ require "gapic/config/method"
|
|
|
22
22
|
|
|
23
23
|
require "google/cloud/dataplex/v1/version"
|
|
24
24
|
|
|
25
|
-
require "google/cloud/dataplex/v1/
|
|
26
|
-
require "google/cloud/dataplex/v1/
|
|
27
|
-
require "google/cloud/dataplex/v1/
|
|
28
|
-
require "google/cloud/dataplex/v1/
|
|
25
|
+
require "google/cloud/dataplex/v1/data_product_service/credentials"
|
|
26
|
+
require "google/cloud/dataplex/v1/data_product_service/paths"
|
|
27
|
+
require "google/cloud/dataplex/v1/data_product_service/operations"
|
|
28
|
+
require "google/cloud/dataplex/v1/data_product_service/client"
|
|
29
|
+
require "google/cloud/dataplex/v1/data_product_service/rest"
|
|
29
30
|
|
|
30
31
|
module Google
|
|
31
32
|
module Cloud
|
|
32
33
|
module Dataplex
|
|
33
34
|
module V1
|
|
34
35
|
##
|
|
35
|
-
#
|
|
36
|
-
#
|
|
36
|
+
# `DataProductService` provides APIs for managing data products and
|
|
37
|
+
# the underlying data assets.
|
|
37
38
|
#
|
|
38
39
|
# @example Load this service and instantiate a gRPC client
|
|
39
40
|
#
|
|
40
|
-
# require "google/cloud/dataplex/v1/
|
|
41
|
-
# client = ::Google::Cloud::Dataplex::V1::
|
|
41
|
+
# require "google/cloud/dataplex/v1/data_product_service"
|
|
42
|
+
# client = ::Google::Cloud::Dataplex::V1::DataProductService::Client.new
|
|
42
43
|
#
|
|
43
44
|
# @example Load this service and instantiate a REST client
|
|
44
45
|
#
|
|
45
|
-
# require "google/cloud/dataplex/v1/
|
|
46
|
-
# client = ::Google::Cloud::Dataplex::V1::
|
|
46
|
+
# require "google/cloud/dataplex/v1/data_product_service/rest"
|
|
47
|
+
# client = ::Google::Cloud::Dataplex::V1::DataProductService::Rest::Client.new
|
|
47
48
|
#
|
|
48
|
-
module
|
|
49
|
+
module DataProductService
|
|
49
50
|
end
|
|
50
51
|
end
|
|
51
52
|
end
|
|
52
53
|
end
|
|
53
54
|
end
|
|
54
55
|
|
|
55
|
-
helper_path = ::File.join __dir__, "
|
|
56
|
-
require "google/cloud/dataplex/v1/
|
|
56
|
+
helper_path = ::File.join __dir__, "data_product_service", "helpers.rb"
|
|
57
|
+
require "google/cloud/dataplex/v1/data_product_service/helpers" if ::File.file? helper_path
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: google/cloud/dataplex/v1/data_products.proto
|
|
4
|
+
|
|
5
|
+
require 'google/protobuf'
|
|
6
|
+
|
|
7
|
+
require 'google/api/annotations_pb'
|
|
8
|
+
require 'google/api/client_pb'
|
|
9
|
+
require 'google/api/field_behavior_pb'
|
|
10
|
+
require 'google/api/field_info_pb'
|
|
11
|
+
require 'google/api/resource_pb'
|
|
12
|
+
require 'google/cloud/dataplex/v1/approval_workflow_pb'
|
|
13
|
+
require 'google/cloud/dataplex/v1/service_pb'
|
|
14
|
+
require 'google/longrunning/operations_pb'
|
|
15
|
+
require 'google/protobuf/empty_pb'
|
|
16
|
+
require 'google/protobuf/field_mask_pb'
|
|
17
|
+
require 'google/protobuf/timestamp_pb'
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
descriptor_data = "\n,google/cloud/dataplex/v1/data_products.proto\x12\x18google.cloud.dataplex.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1bgoogle/api/field_info.proto\x1a\x19google/api/resource.proto\x1a\x30google/cloud/dataplex/v1/approval_workflow.proto\x1a&google/cloud/dataplex/v1/service.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xb5\t\n\x0b\x44\x61taProduct\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x18\n\x03uid\x18\x02 \x01(\tB\x0b\xe0\x41\x03\xe2\x8c\xcf\xd7\x08\x02\x08\x01\x12\x19\n\x0c\x64isplay_name\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x34\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x11\n\x04\x65tag\x18\x06 \x01(\tB\x03\xe0\x41\x01\x12\x46\n\x06labels\x18\x07 \x03(\x0b\x32\x31.google.cloud.dataplex.v1.DataProduct.LabelsEntryB\x03\xe0\x41\x01\x12\x18\n\x0b\x64\x65scription\x18\x08 \x01(\tB\x03\xe0\x41\x01\x12\x11\n\x04icon\x18\n \x01(\x0c\x42\x03\xe0\x41\x01\x12\x19\n\x0cowner_emails\x18\x0b \x03(\tB\x03\xe0\x41\x02\x12\x18\n\x0b\x61sset_count\x18\r \x01(\x05\x42\x03\xe0\x41\x03\x12S\n\raccess_groups\x18\x0e \x03(\x0b\x32\x37.google.cloud.dataplex.v1.DataProduct.AccessGroupsEntryB\x03\xe0\x41\x01\x12\x64\n\x16\x61\x63\x63\x65ss_approval_config\x18\x0f \x01(\x0b\x32:.google.cloud.dataplex.v1.DataProduct.AccessApprovalConfigB\x03\xe0\x41\x01H\x00\x88\x01\x01\x1ag\n\tPrincipal\x12\x1b\n\x0cgoogle_group\x18\x01 \x01(\tB\x03\xe0\x41\x01H\x00\x12!\n\x0fservice_account\x18\x02 \x01(\tB\x03\xe0\x41\x01H\x01\x88\x01\x01\x42\x06\n\x04typeB\x12\n\x10_service_account\x1a\x9c\x01\n\x0b\x41\x63\x63\x65ssGroup\x12\x0f\n\x02id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x18\n\x0b\x64\x65scription\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12G\n\tprincipal\x18\x04 \x01(\x0b\x32/.google.cloud.dataplex.v1.DataProduct.PrincipalB\x03\xe0\x41\x02\x1a\x34\n\x14\x41\x63\x63\x65ssApprovalConfig\x12\x1c\n\x0f\x61pprover_emails\x18\x02 \x03(\tB\x03\xe0\x41\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x66\n\x11\x41\x63\x63\x65ssGroupsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12@\n\x05value\x18\x02 \x01(\x0b\x32\x31.google.cloud.dataplex.v1.DataProduct.AccessGroup:\x02\x38\x01:\x89\x01\xea\x41\x85\x01\n#dataplex.googleapis.com/DataProduct\x12\x43projects/{project}/locations/{location}/dataProducts/{data_product}*\x0c\x64\x61taProducts2\x0b\x64\x61taProductB\x19\n\x17_access_approval_config\"\xe3\x05\n\tDataAsset\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x18\n\x03uid\x18\x02 \x01(\tB\x0b\xe0\x41\x03\xe2\x8c\xcf\xd7\x08\x02\x08\x01\x12\x34\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x11\n\x04\x65tag\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12\x44\n\x06labels\x18\x06 \x03(\x0b\x32/.google.cloud.dataplex.v1.DataAsset.LabelsEntryB\x03\xe0\x41\x01\x12\x18\n\x08resource\x18\x07 \x01(\tB\x06\xe0\x41\x05\xe0\x41\x02\x12^\n\x14\x61\x63\x63\x65ss_group_configs\x18\t \x03(\x0b\x32;.google.cloud.dataplex.v1.DataAsset.AccessGroupConfigsEntryB\x03\xe0\x41\x01\x1a+\n\x11\x41\x63\x63\x65ssGroupConfig\x12\x16\n\tiam_roles\x18\x01 \x03(\tB\x03\xe0\x41\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1ap\n\x17\x41\x63\x63\x65ssGroupConfigsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x44\n\x05value\x18\x02 \x01(\x0b\x32\x35.google.cloud.dataplex.v1.DataAsset.AccessGroupConfig:\x02\x38\x01:\x9b\x01\xea\x41\x97\x01\n!dataplex.googleapis.com/DataAsset\x12[projects/{project}/locations/{location}/dataProducts/{data_product}/dataAssets/{data_asset}*\ndataAssets2\tdataAsset\"\xd1\x01\n\x18\x43reateDataProductRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x1c\n\x0f\x64\x61ta_product_id\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12@\n\x0c\x64\x61ta_product\x18\x03 \x01(\x0b\x32%.google.cloud.dataplex.v1.DataProductB\x03\xe0\x41\x02\x12\x1a\n\rvalidate_only\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\"\x84\x01\n\x18\x44\x65leteDataProductRequest\x12\x39\n\x04name\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#dataplex.googleapis.com/DataProduct\x12\x11\n\x04\x65tag\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x1a\n\rvalidate_only\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\"R\n\x15GetDataProductRequest\x12\x39\n\x04name\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#dataplex.googleapis.com/DataProduct\"\xb1\x01\n\x17ListDataProductsRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x13\n\x06\x66ilter\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tpage_size\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\x8b\x01\n\x18ListDataProductsResponse\x12<\n\rdata_products\x18\x01 \x03(\x0b\x32%.google.cloud.dataplex.v1.DataProduct\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x18\n\x0bunreachable\x18\x03 \x03(\tB\x03\xe0\x41\x06\"\xae\x01\n\x18UpdateDataProductRequest\x12@\n\x0c\x64\x61ta_product\x18\x01 \x01(\x0b\x32%.google.cloud.dataplex.v1.DataProductB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12\x1a\n\rvalidate_only\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\"\xc0\x01\n\x1fRequestDataProductAccessRequest\x12;\n\x06parent\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#dataplex.googleapis.com/DataProduct\x12\x44\n\x0e\x63hange_request\x18\x02 \x01(\x0b\x32\'.google.cloud.dataplex.v1.ChangeRequestB\x03\xe0\x41\x02\x12\x1a\n\rvalidate_only\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\"k\n RequestDataProductAccessResponse\x12G\n\x13\x63hange_request_name\x18\x01 \x01(\tB*\xfa\x41\'\n%dataplex.googleapis.com/ChangeRequest\"\xcb\x01\n\x16\x43reateDataAssetRequest\x12;\n\x06parent\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#dataplex.googleapis.com/DataProduct\x12\x1a\n\rdata_asset_id\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12<\n\ndata_asset\x18\x03 \x01(\x0b\x32#.google.cloud.dataplex.v1.DataAssetB\x03\xe0\x41\x02\x12\x1a\n\rvalidate_only\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\"\xa8\x01\n\x16UpdateDataAssetRequest\x12<\n\ndata_asset\x18\x01 \x01(\x0b\x32#.google.cloud.dataplex.v1.DataAssetB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12\x1a\n\rvalidate_only\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\"\x80\x01\n\x16\x44\x65leteDataAssetRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataplex.googleapis.com/DataAsset\x12\x11\n\x04\x65tag\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x1a\n\rvalidate_only\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\"N\n\x13GetDataAssetRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataplex.googleapis.com/DataAsset\"\xb1\x01\n\x15ListDataAssetsRequest\x12;\n\x06parent\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#dataplex.googleapis.com/DataProduct\x12\x13\n\x06\x66ilter\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tpage_size\x18\x04 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x05 \x01(\tB\x03\xe0\x41\x01\"k\n\x16ListDataAssetsResponse\x12\x38\n\x0b\x64\x61ta_assets\x18\x01 \x03(\x0b\x32#.google.cloud.dataplex.v1.DataAsset\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t2\x88\x15\n\x12\x44\x61taProductService\x12\xf8\x01\n\x11\x43reateDataProduct\x12\x32.google.cloud.dataplex.v1.CreateDataProductRequest\x1a\x1d.google.longrunning.Operation\"\x8f\x01\xca\x41 \n\x0b\x44\x61taProduct\x12\x11OperationMetadata\xda\x41#parent,data_product,data_product_id\x82\xd3\xe4\x93\x02@\"0/v1/{parent=projects/*/locations/*}/dataProducts:\x0c\x64\x61ta_product\x12\xd4\x01\n\x11\x44\x65leteDataProduct\x12\x32.google.cloud.dataplex.v1.DeleteDataProductRequest\x1a\x1d.google.longrunning.Operation\"l\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02\x32*0/v1/{name=projects/*/locations/*/dataProducts/*}\x12\xa9\x01\n\x0eGetDataProduct\x12/.google.cloud.dataplex.v1.GetDataProductRequest\x1a%.google.cloud.dataplex.v1.DataProduct\"?\xda\x41\x04name\x82\xd3\xe4\x93\x02\x32\x12\x30/v1/{name=projects/*/locations/*/dataProducts/*}\x12\xbc\x01\n\x10ListDataProducts\x12\x31.google.cloud.dataplex.v1.ListDataProductsRequest\x1a\x32.google.cloud.dataplex.v1.ListDataProductsResponse\"A\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x32\x12\x30/v1/{parent=projects/*/locations/*}/dataProducts\x12\xfa\x01\n\x11UpdateDataProduct\x12\x32.google.cloud.dataplex.v1.UpdateDataProductRequest\x1a\x1d.google.longrunning.Operation\"\x91\x01\xca\x41 \n\x0b\x44\x61taProduct\x12\x11OperationMetadata\xda\x41\x18\x64\x61ta_product,update_mask\x82\xd3\xe4\x93\x02M2=/v1/{data_product.name=projects/*/locations/*/dataProducts/*}:\x0c\x64\x61ta_product\x12\xf6\x01\n\x18RequestDataProductAccess\x12\x39.google.cloud.dataplex.v1.RequestDataProductAccessRequest\x1a:.google.cloud.dataplex.v1.RequestDataProductAccessResponse\"c\xda\x41\x15parent,change_request\x82\xd3\xe4\x93\x02\x45\"@/v1/{parent=projects/*/locations/*/dataProducts/*}:requestAccess:\x01*\x12\xf9\x01\n\x0f\x43reateDataAsset\x12\x30.google.cloud.dataplex.v1.CreateDataAssetRequest\x1a\x1d.google.longrunning.Operation\"\x94\x01\xca\x41\x1e\n\tDataAsset\x12\x11OperationMetadata\xda\x41\x1fparent,data_asset,data_asset_id\x82\xd3\xe4\x93\x02K\"=/v1/{parent=projects/*/locations/*/dataProducts/*}/dataAssets:\ndata_asset\x12\xfb\x01\n\x0fUpdateDataAsset\x12\x30.google.cloud.dataplex.v1.UpdateDataAssetRequest\x1a\x1d.google.longrunning.Operation\"\x96\x01\xca\x41\x1e\n\tDataAsset\x12\x11OperationMetadata\xda\x41\x16\x64\x61ta_asset,update_mask\x82\xd3\xe4\x93\x02V2H/v1/{data_asset.name=projects/*/locations/*/dataProducts/*/dataAssets/*}:\ndata_asset\x12\xdd\x01\n\x0f\x44\x65leteDataAsset\x12\x30.google.cloud.dataplex.v1.DeleteDataAssetRequest\x1a\x1d.google.longrunning.Operation\"y\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02?*=/v1/{name=projects/*/locations/*/dataProducts/*/dataAssets/*}\x12\xb0\x01\n\x0cGetDataAsset\x12-.google.cloud.dataplex.v1.GetDataAssetRequest\x1a#.google.cloud.dataplex.v1.DataAsset\"L\xda\x41\x04name\x82\xd3\xe4\x93\x02?\x12=/v1/{name=projects/*/locations/*/dataProducts/*/dataAssets/*}\x12\xc3\x01\n\x0eListDataAssets\x12/.google.cloud.dataplex.v1.ListDataAssetsRequest\x1a\x30.google.cloud.dataplex.v1.ListDataAssetsResponse\"N\xda\x41\x06parent\x82\xd3\xe4\x93\x02?\x12=/v1/{parent=projects/*/locations/*/dataProducts/*}/dataAssets\x1a\xeb\x01\xca\x41\x17\x64\x61taplex.googleapis.com\xd2\x41\xcd\x01https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/cloud-platform.read-only,https://www.googleapis.com/auth/dataplex.read-write,https://www.googleapis.com/auth/dataplex.readonlyBm\n\x1c\x63om.google.cloud.dataplex.v1B\x11\x44\x61taProductsProtoP\x01Z8cloud.google.com/go/dataplex/apiv1/dataplexpb;dataplexpbb\x06proto3"
|
|
21
|
+
|
|
22
|
+
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
23
|
+
pool.add_serialized_file(descriptor_data)
|
|
24
|
+
|
|
25
|
+
module Google
|
|
26
|
+
module Cloud
|
|
27
|
+
module Dataplex
|
|
28
|
+
module V1
|
|
29
|
+
DataProduct = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.DataProduct").msgclass
|
|
30
|
+
DataProduct::Principal = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.DataProduct.Principal").msgclass
|
|
31
|
+
DataProduct::AccessGroup = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.DataProduct.AccessGroup").msgclass
|
|
32
|
+
DataProduct::AccessApprovalConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.DataProduct.AccessApprovalConfig").msgclass
|
|
33
|
+
DataAsset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.DataAsset").msgclass
|
|
34
|
+
DataAsset::AccessGroupConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.DataAsset.AccessGroupConfig").msgclass
|
|
35
|
+
CreateDataProductRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.CreateDataProductRequest").msgclass
|
|
36
|
+
DeleteDataProductRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.DeleteDataProductRequest").msgclass
|
|
37
|
+
GetDataProductRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.GetDataProductRequest").msgclass
|
|
38
|
+
ListDataProductsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.ListDataProductsRequest").msgclass
|
|
39
|
+
ListDataProductsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.ListDataProductsResponse").msgclass
|
|
40
|
+
UpdateDataProductRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.UpdateDataProductRequest").msgclass
|
|
41
|
+
RequestDataProductAccessRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.RequestDataProductAccessRequest").msgclass
|
|
42
|
+
RequestDataProductAccessResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.RequestDataProductAccessResponse").msgclass
|
|
43
|
+
CreateDataAssetRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.CreateDataAssetRequest").msgclass
|
|
44
|
+
UpdateDataAssetRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.UpdateDataAssetRequest").msgclass
|
|
45
|
+
DeleteDataAssetRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.DeleteDataAssetRequest").msgclass
|
|
46
|
+
GetDataAssetRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.GetDataAssetRequest").msgclass
|
|
47
|
+
ListDataAssetsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.ListDataAssetsRequest").msgclass
|
|
48
|
+
ListDataAssetsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.ListDataAssetsResponse").msgclass
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
end
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
2
|
+
# Source: google/cloud/dataplex/v1/data_products.proto for package 'google.cloud.dataplex.v1'
|
|
3
|
+
# Original file comments:
|
|
4
|
+
# Copyright 2026 Google LLC
|
|
5
|
+
#
|
|
6
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
+
# you may not use this file except in compliance with the License.
|
|
8
|
+
# You may obtain a copy of the License at
|
|
9
|
+
#
|
|
10
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
#
|
|
12
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
+
# See the License for the specific language governing permissions and
|
|
16
|
+
# limitations under the License.
|
|
17
|
+
#
|
|
18
|
+
|
|
19
|
+
require 'grpc'
|
|
20
|
+
require 'google/cloud/dataplex/v1/data_products_pb'
|
|
21
|
+
|
|
22
|
+
module Google
|
|
23
|
+
module Cloud
|
|
24
|
+
module Dataplex
|
|
25
|
+
module V1
|
|
26
|
+
module DataProductService
|
|
27
|
+
# `DataProductService` provides APIs for managing data products and
|
|
28
|
+
# the underlying data assets.
|
|
29
|
+
class Service
|
|
30
|
+
|
|
31
|
+
include ::GRPC::GenericService
|
|
32
|
+
|
|
33
|
+
self.marshal_class_method = :encode
|
|
34
|
+
self.unmarshal_class_method = :decode
|
|
35
|
+
self.service_name = 'google.cloud.dataplex.v1.DataProductService'
|
|
36
|
+
|
|
37
|
+
# Creates a data product.
|
|
38
|
+
rpc :CreateDataProduct, ::Google::Cloud::Dataplex::V1::CreateDataProductRequest, ::Google::Longrunning::Operation
|
|
39
|
+
# Deletes a data product. The deletion will fail if the data product is not
|
|
40
|
+
# empty (i.e. contains at least one data asset).
|
|
41
|
+
rpc :DeleteDataProduct, ::Google::Cloud::Dataplex::V1::DeleteDataProductRequest, ::Google::Longrunning::Operation
|
|
42
|
+
# Gets a data product.
|
|
43
|
+
rpc :GetDataProduct, ::Google::Cloud::Dataplex::V1::GetDataProductRequest, ::Google::Cloud::Dataplex::V1::DataProduct
|
|
44
|
+
# Lists data products for a given project.
|
|
45
|
+
rpc :ListDataProducts, ::Google::Cloud::Dataplex::V1::ListDataProductsRequest, ::Google::Cloud::Dataplex::V1::ListDataProductsResponse
|
|
46
|
+
# Updates a data product.
|
|
47
|
+
rpc :UpdateDataProduct, ::Google::Cloud::Dataplex::V1::UpdateDataProductRequest, ::Google::Longrunning::Operation
|
|
48
|
+
# Requests access to a data product. This will trigger an access approval
|
|
49
|
+
# workflow, and the requester will need to wait for the approval to be
|
|
50
|
+
# granted before they will be able to access the data product assets.
|
|
51
|
+
rpc :RequestDataProductAccess, ::Google::Cloud::Dataplex::V1::RequestDataProductAccessRequest, ::Google::Cloud::Dataplex::V1::RequestDataProductAccessResponse
|
|
52
|
+
# Creates a data asset.
|
|
53
|
+
rpc :CreateDataAsset, ::Google::Cloud::Dataplex::V1::CreateDataAssetRequest, ::Google::Longrunning::Operation
|
|
54
|
+
# Updates a data asset.
|
|
55
|
+
rpc :UpdateDataAsset, ::Google::Cloud::Dataplex::V1::UpdateDataAssetRequest, ::Google::Longrunning::Operation
|
|
56
|
+
# Deletes a data asset.
|
|
57
|
+
rpc :DeleteDataAsset, ::Google::Cloud::Dataplex::V1::DeleteDataAssetRequest, ::Google::Longrunning::Operation
|
|
58
|
+
# Gets a data asset.
|
|
59
|
+
rpc :GetDataAsset, ::Google::Cloud::Dataplex::V1::GetDataAssetRequest, ::Google::Cloud::Dataplex::V1::DataAsset
|
|
60
|
+
# Lists data assets for a given data product.
|
|
61
|
+
rpc :ListDataAssets, ::Google::Cloud::Dataplex::V1::ListDataAssetsRequest, ::Google::Cloud::Dataplex::V1::ListDataAssetsResponse
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
Stub = Service.rpc_stub_class
|
|
65
|
+
end
|
|
66
|
+
end
|
|
67
|
+
end
|
|
68
|
+
end
|
|
69
|
+
end
|
|
@@ -9,33 +9,10 @@ require 'google/cloud/dataplex/v1/datascans_common_pb'
|
|
|
9
9
|
require 'google/cloud/dataplex/v1/processing_pb'
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
descriptor_data = "\n+google/cloud/dataplex/v1/data_profile.proto\x12\x18google.cloud.dataplex.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a/google/cloud/dataplex/v1/datascans_common.proto\x1a)google/cloud/dataplex/v1/processing.proto\"\xd1\
|
|
12
|
+
descriptor_data = "\n+google/cloud/dataplex/v1/data_profile.proto\x12\x18google.cloud.dataplex.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a/google/cloud/dataplex/v1/datascans_common.proto\x1a)google/cloud/dataplex/v1/processing.proto\"\xd1\x05\n\x0f\x44\x61taProfileSpec\x12\x1d\n\x10sampling_percent\x18\x02 \x01(\x02\x42\x03\xe0\x41\x01\x12\x17\n\nrow_filter\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12Y\n\x11post_scan_actions\x18\x04 \x01(\x0b\x32\x39.google.cloud.dataplex.v1.DataProfileSpec.PostScanActionsB\x03\xe0\x41\x01\x12U\n\x0einclude_fields\x18\x05 \x01(\x0b\x32\x38.google.cloud.dataplex.v1.DataProfileSpec.SelectedFieldsB\x03\xe0\x41\x01\x12U\n\x0e\x65xclude_fields\x18\x06 \x01(\x0b\x32\x38.google.cloud.dataplex.v1.DataProfileSpec.SelectedFieldsB\x03\xe0\x41\x01\x12\'\n\x1a\x63\x61talog_publishing_enabled\x18\x08 \x01(\x08\x42\x03\xe0\x41\x01\x12\x41\n\x04mode\x18\t \x01(\x0e\x32..google.cloud.dataplex.v1.DataProfileSpec.ModeB\x03\xe0\x41\x01\x1a\xa7\x01\n\x0fPostScanActions\x12\x66\n\x0f\x62igquery_export\x18\x01 \x01(\x0b\x32H.google.cloud.dataplex.v1.DataProfileSpec.PostScanActions.BigQueryExportB\x03\xe0\x41\x01\x1a,\n\x0e\x42igQueryExport\x12\x1a\n\rresults_table\x18\x01 \x01(\tB\x03\xe0\x41\x01\x1a*\n\x0eSelectedFields\x12\x18\n\x0b\x66ield_names\x18\x01 \x03(\tB\x03\xe0\x41\x01\";\n\x04Mode\x12\x14\n\x10MODE_UNSPECIFIED\x10\x00\x12\x0c\n\x08STANDARD\x10\x01\x12\x0f\n\x0bLIGHTWEIGHT\x10\x02\"\xd0\x0f\n\x11\x44\x61taProfileResult\x12\x16\n\trow_count\x18\x03 \x01(\x03\x42\x03\xe0\x41\x03\x12I\n\x07profile\x18\x04 \x01(\x0b\x32\x33.google.cloud.dataplex.v1.DataProfileResult.ProfileB\x03\xe0\x41\x03\x12@\n\x0cscanned_data\x18\x05 \x01(\x0b\x32%.google.cloud.dataplex.v1.ScannedDataB\x03\xe0\x41\x03\x12h\n\x18post_scan_actions_result\x18\x06 \x01(\x0b\x32\x41.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResultB\x03\xe0\x41\x03\x12\x61\n\x19\x63\x61talog_publishing_status\x18\x07 \x01(\x0b\x32\x39.google.cloud.dataplex.v1.DataScanCatalogPublishingStatusB\x03\xe0\x41\x03\x1a\xc8\t\n\x07Profile\x12N\n\x06\x66ields\x18\x02 \x03(\x0b\x32\x39.google.cloud.dataplex.v1.DataProfileResult.Profile.FieldB\x03\xe0\x41\x03\x1a\xec\x08\n\x05\x46ield\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x11\n\x04type\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x11\n\x04mode\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12[\n\x07profile\x18\x04 \x01(\x0b\x32\x45.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfoB\x03\xe0\x41\x03\x1a\xcc\x07\n\x0bProfileInfo\x12\x17\n\nnull_ratio\x18\x02 \x01(\x01\x42\x03\xe0\x41\x03\x12\x1b\n\x0e\x64istinct_ratio\x18\x03 \x01(\x01\x42\x03\xe0\x41\x03\x12j\n\x0ctop_n_values\x18\x04 \x03(\x0b\x32O.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValueB\x03\xe0\x41\x03\x12o\n\x0estring_profile\x18\x65 \x01(\x0b\x32U.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.StringFieldInfoH\x00\x12q\n\x0finteger_profile\x18\x66 \x01(\x0b\x32V.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.IntegerFieldInfoH\x00\x12o\n\x0e\x64ouble_profile\x18g \x01(\x0b\x32U.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.DoubleFieldInfoH\x00\x1a`\n\x0fStringFieldInfo\x12\x17\n\nmin_length\x18\x01 \x01(\x03\x42\x03\xe0\x41\x03\x12\x17\n\nmax_length\x18\x02 \x01(\x03\x42\x03\xe0\x41\x03\x12\x1b\n\x0e\x61verage_length\x18\x03 \x01(\x01\x42\x03\xe0\x41\x03\x1a\x85\x01\n\x10IntegerFieldInfo\x12\x14\n\x07\x61verage\x18\x01 \x01(\x01\x42\x03\xe0\x41\x03\x12\x1f\n\x12standard_deviation\x18\x03 \x01(\x01\x42\x03\xe0\x41\x03\x12\x10\n\x03min\x18\x04 \x01(\x03\x42\x03\xe0\x41\x03\x12\x16\n\tquartiles\x18\x06 \x03(\x03\x42\x03\xe0\x41\x03\x12\x10\n\x03max\x18\x05 \x01(\x03\x42\x03\xe0\x41\x03\x1a\x84\x01\n\x0f\x44oubleFieldInfo\x12\x14\n\x07\x61verage\x18\x01 \x01(\x01\x42\x03\xe0\x41\x03\x12\x1f\n\x12standard_deviation\x18\x03 \x01(\x01\x42\x03\xe0\x41\x03\x12\x10\n\x03min\x18\x04 \x01(\x01\x42\x03\xe0\x41\x03\x12\x16\n\tquartiles\x18\x06 \x03(\x01\x42\x03\xe0\x41\x03\x12\x10\n\x03max\x18\x05 \x01(\x01\x42\x03\xe0\x41\x03\x1aG\n\tTopNValue\x12\x12\n\x05value\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x12\n\x05\x63ount\x18\x02 \x01(\x03\x42\x03\xe0\x41\x03\x12\x12\n\x05ratio\x18\x03 \x01(\x01\x42\x03\xe0\x41\x03\x42\x0c\n\nfield_info\x1a\xfd\x02\n\x15PostScanActionsResult\x12{\n\x16\x62igquery_export_result\x18\x01 \x01(\x0b\x32V.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult.BigQueryExportResultB\x03\xe0\x41\x03\x1a\xe6\x01\n\x14\x42igQueryExportResult\x12p\n\x05state\x18\x01 \x01(\x0e\x32\\.google.cloud.dataplex.v1.DataProfileResult.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\x42l\n\x1c\x63om.google.cloud.dataplex.v1B\x10\x44\x61taProfileProtoP\x01Z8cloud.google.com/go/dataplex/apiv1/dataplexpb;dataplexpbb\x06proto3"
|
|
13
13
|
|
|
14
|
-
pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
15
|
-
|
|
16
|
-
begin
|
|
17
|
-
pool.add_serialized_file(descriptor_data)
|
|
18
|
-
rescue TypeError
|
|
19
|
-
# Compatibility code: will be removed in the next major version.
|
|
20
|
-
require 'google/protobuf/descriptor_pb'
|
|
21
|
-
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
|
22
|
-
parsed.clear_dependency
|
|
23
|
-
serialized = parsed.class.encode(parsed)
|
|
24
|
-
file = pool.add_serialized_file(serialized)
|
|
25
|
-
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
|
26
|
-
imports = [
|
|
27
|
-
["google.cloud.dataplex.v1.ScannedData", "google/cloud/dataplex/v1/processing.proto"],
|
|
28
|
-
["google.cloud.dataplex.v1.DataScanCatalogPublishingStatus", "google/cloud/dataplex/v1/datascans_common.proto"],
|
|
29
|
-
]
|
|
30
|
-
imports.each do |type_name, expected_filename|
|
|
31
|
-
import_file = pool.lookup(type_name).file_descriptor
|
|
32
|
-
if import_file.name != expected_filename
|
|
33
|
-
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
|
34
|
-
end
|
|
35
|
-
end
|
|
36
|
-
warn "Each proto file must use a consistent fully-qualified name."
|
|
37
|
-
warn "This will become an error in the next major version."
|
|
38
|
-
end
|
|
14
|
+
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
15
|
+
pool.add_serialized_file(descriptor_data)
|
|
39
16
|
|
|
40
17
|
module Google
|
|
41
18
|
module Cloud
|
|
@@ -45,6 +22,7 @@ module Google
|
|
|
45
22
|
DataProfileSpec::PostScanActions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.DataProfileSpec.PostScanActions").msgclass
|
|
46
23
|
DataProfileSpec::PostScanActions::BigQueryExport = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.DataProfileSpec.PostScanActions.BigQueryExport").msgclass
|
|
47
24
|
DataProfileSpec::SelectedFields = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.DataProfileSpec.SelectedFields").msgclass
|
|
25
|
+
DataProfileSpec::Mode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.DataProfileSpec.Mode").enummodule
|
|
48
26
|
DataProfileResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.DataProfileResult").msgclass
|
|
49
27
|
DataProfileResult::Profile = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.DataProfileResult.Profile").msgclass
|
|
50
28
|
DataProfileResult::Profile::Field = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.DataProfileResult.Profile.Field").msgclass
|
|
@@ -6,37 +6,15 @@ require 'google/protobuf'
|
|
|
6
6
|
|
|
7
7
|
require 'google/api/field_behavior_pb'
|
|
8
8
|
require 'google/api/resource_pb'
|
|
9
|
+
require 'google/cloud/dataplex/v1/data_quality_rule_template_pb'
|
|
9
10
|
require 'google/cloud/dataplex/v1/datascans_common_pb'
|
|
10
11
|
require 'google/cloud/dataplex/v1/processing_pb'
|
|
11
12
|
|
|
12
13
|
|
|
13
|
-
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/datascans_common.proto\x1a)google/cloud/dataplex/v1/processing.proto\"\xe9\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\x12\'\n\x1a\x63\x61talog_publishing_enabled\x18\x08 \x01(\x08\x42\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\"\x85\n\n\x11\x44\x61taQualityResult\x12\x13\n\x06passed\x18\x05 \x01(\x08\x42\x03\xe0\x41\x03\x12\x17\n\x05score\x18\t \x01(\x02\x42\x03\xe0\x41\x03H\x00\x88\x01\x01\x12M\n\ndimensions\x18\x02 \x03(\x0b\x32\x34.google.cloud.dataplex.v1.DataQualityDimensionResultB\x03\xe0\x41\x03\x12G\n\x07\x63olumns\x18\n \x03(\x0b\x32\x31.google.cloud.dataplex.v1.DataQualityColumnResultB\x03\xe0\x41\x03\x12\x43\n\x05rules\x18\x03 \x03(\x0b\x32/.google.cloud.dataplex.v1.DataQualityRuleResultB\x03\xe0\x41\x03\x12\x16\n\trow_count\x18\x04 \x01(\x03\x42\x03\xe0\x41\x03\x12@\n\x0cscanned_data\x18\x07 \x01(\x0b\x32%.google.cloud.dataplex.v1.ScannedDataB\x03\xe0\x41\x03\x12h\n\x18post_scan_actions_result\x18\x08 \x01(\x0b\x32\x41.google.cloud.dataplex.v1.DataQualityResult.PostScanActionsResultB\x03\xe0\x41\x03\x12\x61\n\x19\x63\x61talog_publishing_status\x18\x0b \x01(\x0b\x32\x39.google.cloud.dataplex.v1.DataScanCatalogPublishingStatusB\x03\xe0\x41\x03\x12|\n\"anomaly_detection_generated_assets\x18\x0c \x01(\x0b\x32K.google.cloud.dataplex.v1.DataQualityResult.AnomalyDetectionGeneratedAssetsB\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\x1a\xb5\x01\n\x1f\x41nomalyDetectionGeneratedAssets\x12\x19\n\x0cresult_table\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12$\n\x17\x64\x61ta_intermediate_table\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12)\n\x1c\x66reshness_intermediate_table\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12&\n\x19volume_intermediate_table\x18\x04 \x01(\tB\x03\xe0\x41\x03\x42\x08\n\x06_score\"\x98\x02\n\x15\x44\x61taQualityRuleResult\x12<\n\x04rule\x18\x01 \x01(\x0b\x32).google.cloud.dataplex.v1.DataQualityRuleB\x03\xe0\x41\x03\x12\x13\n\x06passed\x18\x07 \x01(\x08\x42\x03\xe0\x41\x03\x12\x1c\n\x0f\x65valuated_count\x18\t \x01(\x03\x42\x03\xe0\x41\x03\x12\x19\n\x0cpassed_count\x18\x08 \x01(\x03\x42\x03\xe0\x41\x03\x12\x17\n\nnull_count\x18\x05 \x01(\x03\x42\x03\xe0\x41\x03\x12\x17\n\npass_ratio\x18\x06 \x01(\x01\x42\x03\xe0\x41\x03\x12\x1f\n\x12\x66\x61iling_rows_query\x18\n \x01(\tB\x03\xe0\x41\x03\x12 \n\x13\x61ssertion_row_count\x18\x0b \x01(\x03\x42\x03\xe0\x41\x03\"\x9c\x01\n\x1a\x44\x61taQualityDimensionResult\x12\x46\n\tdimension\x18\x01 \x01(\x0b\x32..google.cloud.dataplex.v1.DataQualityDimensionB\x03\xe0\x41\x03\x12\x13\n\x06passed\x18\x03 \x01(\x08\x42\x03\xe0\x41\x03\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\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\"\x8d\x0e\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\x12\x17\n\tsuspended\x18\xfa\x03 \x01(\x08\x42\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\"\xb5\x01\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\x12\x13\n\x06passed\x18\x03 \x01(\x08\x42\x03\xe0\x41\x03\x12M\n\ndimensions\x18\x04 \x03(\x0b\x32\x34.google.cloud.dataplex.v1.DataQualityDimensionResultB\x03\xe0\x41\x03\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"
|
|
14
|
+
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\x39google/cloud/dataplex/v1/data_quality_rule_template.proto\x1a/google/cloud/dataplex/v1/datascans_common.proto\x1a)google/cloud/dataplex/v1/processing.proto\"\xa7\t\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\x12\'\n\x1a\x63\x61talog_publishing_enabled\x18\x08 \x01(\x08\x42\x03\xe0\x41\x01\x12\'\n\x1a\x65nable_catalog_based_rules\x18\n \x01(\x08\x42\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x0b \x01(\tB\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\"\x85\n\n\x11\x44\x61taQualityResult\x12\x13\n\x06passed\x18\x05 \x01(\x08\x42\x03\xe0\x41\x03\x12\x17\n\x05score\x18\t \x01(\x02\x42\x03\xe0\x41\x03H\x00\x88\x01\x01\x12M\n\ndimensions\x18\x02 \x03(\x0b\x32\x34.google.cloud.dataplex.v1.DataQualityDimensionResultB\x03\xe0\x41\x03\x12G\n\x07\x63olumns\x18\n \x03(\x0b\x32\x31.google.cloud.dataplex.v1.DataQualityColumnResultB\x03\xe0\x41\x03\x12\x43\n\x05rules\x18\x03 \x03(\x0b\x32/.google.cloud.dataplex.v1.DataQualityRuleResultB\x03\xe0\x41\x03\x12\x16\n\trow_count\x18\x04 \x01(\x03\x42\x03\xe0\x41\x03\x12@\n\x0cscanned_data\x18\x07 \x01(\x0b\x32%.google.cloud.dataplex.v1.ScannedDataB\x03\xe0\x41\x03\x12h\n\x18post_scan_actions_result\x18\x08 \x01(\x0b\x32\x41.google.cloud.dataplex.v1.DataQualityResult.PostScanActionsResultB\x03\xe0\x41\x03\x12\x61\n\x19\x63\x61talog_publishing_status\x18\x0b \x01(\x0b\x32\x39.google.cloud.dataplex.v1.DataScanCatalogPublishingStatusB\x03\xe0\x41\x03\x12|\n\"anomaly_detection_generated_assets\x18\x0c \x01(\x0b\x32K.google.cloud.dataplex.v1.DataQualityResult.AnomalyDetectionGeneratedAssetsB\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\x1a\xb5\x01\n\x1f\x41nomalyDetectionGeneratedAssets\x12\x19\n\x0cresult_table\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12$\n\x17\x64\x61ta_intermediate_table\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12)\n\x1c\x66reshness_intermediate_table\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12&\n\x19volume_intermediate_table\x18\x04 \x01(\tB\x03\xe0\x41\x03\x42\x08\n\x06_score\"\xb3\x04\n\x15\x44\x61taQualityRuleResult\x12<\n\x04rule\x18\x01 \x01(\x0b\x32).google.cloud.dataplex.v1.DataQualityRuleB\x03\xe0\x41\x03\x12\x13\n\x06passed\x18\x07 \x01(\x08\x42\x03\xe0\x41\x03\x12\x1c\n\x0f\x65valuated_count\x18\t \x01(\x03\x42\x03\xe0\x41\x03\x12\x19\n\x0cpassed_count\x18\x08 \x01(\x03\x42\x03\xe0\x41\x03\x12\x17\n\nnull_count\x18\x05 \x01(\x03\x42\x03\xe0\x41\x03\x12\x17\n\npass_ratio\x18\x06 \x01(\x01\x42\x03\xe0\x41\x03\x12\x1f\n\x12\x66\x61iling_rows_query\x18\n \x01(\tB\x03\xe0\x41\x03\x12 \n\x13\x61ssertion_row_count\x18\x0b \x01(\x03\x42\x03\xe0\x41\x03\x12k\n\x19\x64\x65\x62ug_queries_result_sets\x18\r \x03(\x0b\x32\x43.google.cloud.dataplex.v1.DataQualityRuleResult.DebugQueryResultSetB\x03\xe0\x41\x03\x1a=\n\x10\x44\x65\x62ugQueryResult\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0c\n\x04type\x18\x02 \x01(\t\x12\r\n\x05value\x18\x03 \x01(\t\x1am\n\x13\x44\x65\x62ugQueryResultSet\x12V\n\x07results\x18\x01 \x03(\x0b\x32@.google.cloud.dataplex.v1.DataQualityRuleResult.DebugQueryResultB\x03\xe0\x41\x03\"\x9c\x01\n\x1a\x44\x61taQualityDimensionResult\x12\x46\n\tdimension\x18\x01 \x01(\x0b\x32..google.cloud.dataplex.v1.DataQualityDimensionB\x03\xe0\x41\x03\x12\x13\n\x06passed\x18\x03 \x01(\x08\x42\x03\xe0\x41\x03\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\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\"\xad\x19\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\x12Y\n\x12template_reference\x18\x05 \x01(\x0b\x32;.google.cloud.dataplex.v1.DataQualityRule.TemplateReferenceH\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\x01\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\x12\x17\n\tsuspended\x18\xfa\x03 \x01(\x08\x42\x03\xe0\x41\x01\x12S\n\nattributes\x18\xfb\x03 \x03(\x0b\x32\x39.google.cloud.dataplex.v1.DataQualityRule.AttributesEntryB\x03\xe0\x41\x01\x12O\n\x0brule_source\x18\xfc\x03 \x01(\x0b\x32\x34.google.cloud.dataplex.v1.DataQualityRule.RuleSourceB\x03\xe0\x41\x03\x12Q\n\rdebug_queries\x18\xfe\x03 \x03(\x0b\x32\x34.google.cloud.dataplex.v1.DataQualityRule.DebugQueryB\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\x1a\xb1\x03\n\x11TemplateReference\x12\x33\n\x04name\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1d\x64\x61taplex.googleapis.com/Entry\x12\\\n\x06values\x18\x05 \x03(\x0b\x32G.google.cloud.dataplex.v1.DataQualityRule.TemplateReference.ValuesEntryB\x03\xe0\x41\x01\x12\x19\n\x0cresolved_sql\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12M\n\rrule_template\x18\x04 \x01(\x0b\x32\x31.google.cloud.dataplex.v1.DataQualityRuleTemplateB\x03\xe0\x41\x03\x1a$\n\x0eParameterValue\x12\x12\n\x05value\x18\x01 \x01(\tB\x03\xe0\x41\x02\x1ay\n\x0bValuesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12Y\n\x05value\x18\x02 \x01(\x0b\x32J.google.cloud.dataplex.v1.DataQualityRule.TemplateReference.ParameterValue:\x02\x38\x01\x1a\x9e\x04\n\nRuleSource\x12\x65\n\x12rule_path_elements\x18\x01 \x03(\x0b\x32\x44.google.cloud.dataplex.v1.DataQualityRule.RuleSource.RulePathElementB\x03\xe0\x41\x03\x1a\xa8\x03\n\x0fRulePathElement\x12m\n\x0c\x65ntry_source\x18\x01 \x01(\x0b\x32P.google.cloud.dataplex.v1.DataQualityRule.RuleSource.RulePathElement.EntrySourceB\x03\xe0\x41\x03H\x00\x12v\n\x11\x65ntry_link_source\x18\x02 \x01(\x0b\x32T.google.cloud.dataplex.v1.DataQualityRule.RuleSource.RulePathElement.EntryLinkSourceB\x03\xe0\x41\x03H\x00\x1aU\n\x0b\x45ntrySource\x12\x17\n\nentry_type\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x12\n\x05\x65ntry\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x19\n\x0c\x64isplay_name\x18\x03 \x01(\tB\x03\xe0\x41\x03\x1aH\n\x0f\x45ntryLinkSource\x12\x1c\n\x0f\x65ntry_link_type\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x17\n\nentry_link\x18\x02 \x01(\tB\x03\xe0\x41\x03\x42\r\n\x0bsource_type\x1a\x42\n\nDebugQuery\x12\x18\n\x0b\x64\x65scription\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x1a\n\rsql_statement\x18\x02 \x01(\tB\x03\xe0\x41\x02\x1a\x31\n\x0f\x41ttributesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x0b\n\trule_type\"\xb5\x01\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\x12\x13\n\x06passed\x18\x03 \x01(\x08\x42\x03\xe0\x41\x03\x12M\n\ndimensions\x18\x04 \x03(\x0b\x32\x34.google.cloud.dataplex.v1.DataQualityDimensionResultB\x03\xe0\x41\x03\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"
|
|
14
15
|
|
|
15
|
-
pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
16
|
-
|
|
17
|
-
begin
|
|
18
|
-
pool.add_serialized_file(descriptor_data)
|
|
19
|
-
rescue TypeError
|
|
20
|
-
# Compatibility code: will be removed in the next major version.
|
|
21
|
-
require 'google/protobuf/descriptor_pb'
|
|
22
|
-
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
|
23
|
-
parsed.clear_dependency
|
|
24
|
-
serialized = parsed.class.encode(parsed)
|
|
25
|
-
file = pool.add_serialized_file(serialized)
|
|
26
|
-
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
|
27
|
-
imports = [
|
|
28
|
-
["google.cloud.dataplex.v1.ScannedData", "google/cloud/dataplex/v1/processing.proto"],
|
|
29
|
-
["google.cloud.dataplex.v1.DataScanCatalogPublishingStatus", "google/cloud/dataplex/v1/datascans_common.proto"],
|
|
30
|
-
]
|
|
31
|
-
imports.each do |type_name, expected_filename|
|
|
32
|
-
import_file = pool.lookup(type_name).file_descriptor
|
|
33
|
-
if import_file.name != expected_filename
|
|
34
|
-
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
|
35
|
-
end
|
|
36
|
-
end
|
|
37
|
-
warn "Each proto file must use a consistent fully-qualified name."
|
|
38
|
-
warn "This will become an error in the next major version."
|
|
39
|
-
end
|
|
16
|
+
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
17
|
+
pool.add_serialized_file(descriptor_data)
|
|
40
18
|
|
|
41
19
|
module Google
|
|
42
20
|
module Cloud
|
|
@@ -56,6 +34,8 @@ module Google
|
|
|
56
34
|
DataQualityResult::PostScanActionsResult::BigQueryExportResult::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.DataQualityResult.PostScanActionsResult.BigQueryExportResult.State").enummodule
|
|
57
35
|
DataQualityResult::AnomalyDetectionGeneratedAssets = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.DataQualityResult.AnomalyDetectionGeneratedAssets").msgclass
|
|
58
36
|
DataQualityRuleResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.DataQualityRuleResult").msgclass
|
|
37
|
+
DataQualityRuleResult::DebugQueryResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.DataQualityRuleResult.DebugQueryResult").msgclass
|
|
38
|
+
DataQualityRuleResult::DebugQueryResultSet = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.DataQualityRuleResult.DebugQueryResultSet").msgclass
|
|
59
39
|
DataQualityDimensionResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.DataQualityDimensionResult").msgclass
|
|
60
40
|
DataQualityDimension = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.DataQualityDimension").msgclass
|
|
61
41
|
DataQualityRule = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.DataQualityRule").msgclass
|
|
@@ -69,6 +49,13 @@ module Google
|
|
|
69
49
|
DataQualityRule::RowConditionExpectation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation").msgclass
|
|
70
50
|
DataQualityRule::TableConditionExpectation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation").msgclass
|
|
71
51
|
DataQualityRule::SqlAssertion = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.DataQualityRule.SqlAssertion").msgclass
|
|
52
|
+
DataQualityRule::TemplateReference = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.DataQualityRule.TemplateReference").msgclass
|
|
53
|
+
DataQualityRule::TemplateReference::ParameterValue = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.DataQualityRule.TemplateReference.ParameterValue").msgclass
|
|
54
|
+
DataQualityRule::RuleSource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.DataQualityRule.RuleSource").msgclass
|
|
55
|
+
DataQualityRule::RuleSource::RulePathElement = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.DataQualityRule.RuleSource.RulePathElement").msgclass
|
|
56
|
+
DataQualityRule::RuleSource::RulePathElement::EntrySource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.DataQualityRule.RuleSource.RulePathElement.EntrySource").msgclass
|
|
57
|
+
DataQualityRule::RuleSource::RulePathElement::EntryLinkSource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.DataQualityRule.RuleSource.RulePathElement.EntryLinkSource").msgclass
|
|
58
|
+
DataQualityRule::DebugQuery = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.DataQualityRule.DebugQuery").msgclass
|
|
72
59
|
DataQualityColumnResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.DataQualityColumnResult").msgclass
|
|
73
60
|
end
|
|
74
61
|
end
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: google/cloud/dataplex/v1/data_quality_rule_template.proto
|
|
4
|
+
|
|
5
|
+
require 'google/protobuf'
|
|
6
|
+
|
|
7
|
+
require 'google/api/field_behavior_pb'
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
descriptor_data = "\n9google/cloud/dataplex/v1/data_quality_rule_template.proto\x12\x18google.cloud.dataplex.v1\x1a\x1fgoogle/api/field_behavior.proto\"\x83\x04\n\x17\x44\x61taQualityRuleTemplate\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x16\n\tdimension\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12R\n\x0esql_collection\x18\x03 \x03(\x0b\x32\x35.google.cloud.dataplex.v1.DataQualityRuleTemplate.SqlB\x03\xe0\x41\x03\x12\x65\n\x10input_parameters\x18\x04 \x03(\x0b\x32\x46.google.cloud.dataplex.v1.DataQualityRuleTemplate.InputParametersEntryB\x03\xe0\x41\x03\x12\x19\n\x0c\x63\x61pabilities\x18\x05 \x03(\tB\x03\xe0\x41\x03\x1a\x19\n\x03Sql\x12\x12\n\x05query\x18\x01 \x01(\tB\x03\xe0\x41\x03\x1aL\n\x14ParameterDescription\x12\x18\n\x0b\x64\x65scription\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x1a\n\rdefault_value\x18\x02 \x01(\tB\x03\xe0\x41\x03\x1a~\n\x14InputParametersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12U\n\x05value\x18\x02 \x01(\x0b\x32\x46.google.cloud.dataplex.v1.DataQualityRuleTemplate.ParameterDescription:\x02\x38\x01\x42x\n\x1c\x63om.google.cloud.dataplex.v1B\x1c\x44\x61taQualityRuleTemplateProtoP\x01Z8cloud.google.com/go/dataplex/apiv1/dataplexpb;dataplexpbb\x06proto3"
|
|
11
|
+
|
|
12
|
+
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
13
|
+
pool.add_serialized_file(descriptor_data)
|
|
14
|
+
|
|
15
|
+
module Google
|
|
16
|
+
module Cloud
|
|
17
|
+
module Dataplex
|
|
18
|
+
module V1
|
|
19
|
+
DataQualityRuleTemplate = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.DataQualityRuleTemplate").msgclass
|
|
20
|
+
DataQualityRuleTemplate::Sql = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.DataQualityRuleTemplate.Sql").msgclass
|
|
21
|
+
DataQualityRuleTemplate::ParameterDescription = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.DataQualityRuleTemplate.ParameterDescription").msgclass
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
@@ -257,7 +257,8 @@ module Google
|
|
|
257
257
|
# @param data_scan [::Google::Cloud::Dataplex::V1::DataScan, ::Hash]
|
|
258
258
|
# Required. DataScan resource.
|
|
259
259
|
# @param data_scan_id [::String]
|
|
260
|
-
#
|
|
260
|
+
# Optional. DataScan identifier. If not provided, a unique ID will be
|
|
261
|
+
# generated with the prefix "data-scan-".
|
|
261
262
|
#
|
|
262
263
|
# * Must contain only lowercase letters, numbers and hyphens.
|
|
263
264
|
# * Must start with a letter.
|
|
@@ -1043,6 +1044,94 @@ module Google
|
|
|
1043
1044
|
raise ::Google::Cloud::Error.from_error(e)
|
|
1044
1045
|
end
|
|
1045
1046
|
|
|
1047
|
+
##
|
|
1048
|
+
# Cancels a running/pending DataScan job.
|
|
1049
|
+
#
|
|
1050
|
+
# @overload cancel_data_scan_job(request, options = nil)
|
|
1051
|
+
# Pass arguments to `cancel_data_scan_job` via a request object, either of type
|
|
1052
|
+
# {::Google::Cloud::Dataplex::V1::CancelDataScanJobRequest} or an equivalent Hash.
|
|
1053
|
+
#
|
|
1054
|
+
# @param request [::Google::Cloud::Dataplex::V1::CancelDataScanJobRequest, ::Hash]
|
|
1055
|
+
# A request object representing the call parameters. Required. To specify no
|
|
1056
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
1057
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
1058
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
1059
|
+
#
|
|
1060
|
+
# @overload cancel_data_scan_job(name: nil)
|
|
1061
|
+
# Pass arguments to `cancel_data_scan_job` via keyword arguments. Note that at
|
|
1062
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
1063
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
1064
|
+
#
|
|
1065
|
+
# @param name [::String]
|
|
1066
|
+
# Required. The resource name of the DataScanJob:
|
|
1067
|
+
# `projects/{project_id_or_number}/locations/{location_id}/dataScans/{data_scan_id}/jobs/{data_scan_job_id}`
|
|
1068
|
+
# where `project_id_or_number` refers to a *project_id* or *project_number*
|
|
1069
|
+
# and `location_id` refers to a Google Cloud region.
|
|
1070
|
+
#
|
|
1071
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
|
1072
|
+
# @yieldparam response [::Google::Cloud::Dataplex::V1::CancelDataScanJobResponse]
|
|
1073
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
|
1074
|
+
#
|
|
1075
|
+
# @return [::Google::Cloud::Dataplex::V1::CancelDataScanJobResponse]
|
|
1076
|
+
#
|
|
1077
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
1078
|
+
#
|
|
1079
|
+
# @example Basic example
|
|
1080
|
+
# require "google/cloud/dataplex/v1"
|
|
1081
|
+
#
|
|
1082
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
1083
|
+
# client = Google::Cloud::Dataplex::V1::DataScanService::Client.new
|
|
1084
|
+
#
|
|
1085
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1086
|
+
# request = Google::Cloud::Dataplex::V1::CancelDataScanJobRequest.new
|
|
1087
|
+
#
|
|
1088
|
+
# # Call the cancel_data_scan_job method.
|
|
1089
|
+
# result = client.cancel_data_scan_job request
|
|
1090
|
+
#
|
|
1091
|
+
# # The returned object is of type Google::Cloud::Dataplex::V1::CancelDataScanJobResponse.
|
|
1092
|
+
# p result
|
|
1093
|
+
#
|
|
1094
|
+
def cancel_data_scan_job request, options = nil
|
|
1095
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
1096
|
+
|
|
1097
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataplex::V1::CancelDataScanJobRequest
|
|
1098
|
+
|
|
1099
|
+
# Converts hash and nil to an options object
|
|
1100
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
1101
|
+
|
|
1102
|
+
# Customize the options with defaults
|
|
1103
|
+
metadata = @config.rpcs.cancel_data_scan_job.metadata.to_h
|
|
1104
|
+
|
|
1105
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
1106
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
1107
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
1108
|
+
gapic_version: ::Google::Cloud::Dataplex::V1::VERSION
|
|
1109
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
1110
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
1111
|
+
|
|
1112
|
+
header_params = {}
|
|
1113
|
+
if request.name
|
|
1114
|
+
header_params["name"] = request.name
|
|
1115
|
+
end
|
|
1116
|
+
|
|
1117
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
1118
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
1119
|
+
|
|
1120
|
+
options.apply_defaults timeout: @config.rpcs.cancel_data_scan_job.timeout,
|
|
1121
|
+
metadata: metadata,
|
|
1122
|
+
retry_policy: @config.rpcs.cancel_data_scan_job.retry_policy
|
|
1123
|
+
|
|
1124
|
+
options.apply_defaults timeout: @config.timeout,
|
|
1125
|
+
metadata: @config.metadata,
|
|
1126
|
+
retry_policy: @config.retry_policy
|
|
1127
|
+
|
|
1128
|
+
@data_scan_service_stub.call_rpc :cancel_data_scan_job, request, options: options do |response, operation|
|
|
1129
|
+
yield response, operation if block_given?
|
|
1130
|
+
end
|
|
1131
|
+
rescue ::GRPC::BadStatus => e
|
|
1132
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
1133
|
+
end
|
|
1134
|
+
|
|
1046
1135
|
##
|
|
1047
1136
|
# Generates recommended data quality rules based on the results of a data
|
|
1048
1137
|
# profiling scan.
|
|
@@ -1232,6 +1321,7 @@ module Google
|
|
|
1232
1321
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
1233
1322
|
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
1234
1323
|
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
1324
|
+
# * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
|
|
1235
1325
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
1236
1326
|
# trigger a retry.
|
|
1237
1327
|
# @return [::Hash]
|
|
@@ -1315,6 +1405,7 @@ module Google
|
|
|
1315
1405
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
1316
1406
|
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
1317
1407
|
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
1408
|
+
# * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
|
|
1318
1409
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
1319
1410
|
# trigger a retry.
|
|
1320
1411
|
#
|
|
@@ -1360,6 +1451,11 @@ module Google
|
|
|
1360
1451
|
#
|
|
1361
1452
|
attr_reader :list_data_scan_jobs
|
|
1362
1453
|
##
|
|
1454
|
+
# RPC-specific configuration for `cancel_data_scan_job`
|
|
1455
|
+
# @return [::Gapic::Config::Method]
|
|
1456
|
+
#
|
|
1457
|
+
attr_reader :cancel_data_scan_job
|
|
1458
|
+
##
|
|
1363
1459
|
# RPC-specific configuration for `generate_data_quality_rules`
|
|
1364
1460
|
# @return [::Gapic::Config::Method]
|
|
1365
1461
|
#
|
|
@@ -1383,6 +1479,8 @@ module Google
|
|
|
1383
1479
|
@get_data_scan_job = ::Gapic::Config::Method.new get_data_scan_job_config
|
|
1384
1480
|
list_data_scan_jobs_config = parent_rpcs.list_data_scan_jobs if parent_rpcs.respond_to? :list_data_scan_jobs
|
|
1385
1481
|
@list_data_scan_jobs = ::Gapic::Config::Method.new list_data_scan_jobs_config
|
|
1482
|
+
cancel_data_scan_job_config = parent_rpcs.cancel_data_scan_job if parent_rpcs.respond_to? :cancel_data_scan_job
|
|
1483
|
+
@cancel_data_scan_job = ::Gapic::Config::Method.new cancel_data_scan_job_config
|
|
1386
1484
|
generate_data_quality_rules_config = parent_rpcs.generate_data_quality_rules if parent_rpcs.respond_to? :generate_data_quality_rules
|
|
1387
1485
|
@generate_data_quality_rules = ::Gapic::Config::Method.new generate_data_quality_rules_config
|
|
1388
1486
|
|
|
@@ -26,7 +26,10 @@ module Google
|
|
|
26
26
|
# Credentials for the DataScanService API.
|
|
27
27
|
class Credentials < ::Google::Auth::Credentials
|
|
28
28
|
self.scope = [
|
|
29
|
-
"https://www.googleapis.com/auth/cloud-platform"
|
|
29
|
+
"https://www.googleapis.com/auth/cloud-platform",
|
|
30
|
+
"https://www.googleapis.com/auth/cloud-platform.read-only",
|
|
31
|
+
"https://www.googleapis.com/auth/dataplex.read-write",
|
|
32
|
+
"https://www.googleapis.com/auth/dataplex.readonly"
|
|
30
33
|
]
|
|
31
34
|
self.env_vars = [
|
|
32
35
|
"GOOGLE_CLOUD_CREDENTIALS",
|