google-cloud-dataplex-v1 0.7.0 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/google/cloud/dataplex/v1/analyze_pb.rb +26 -81
- data/lib/google/cloud/dataplex/v1/content_pb.rb +26 -33
- data/lib/google/cloud/dataplex/v1/content_service/client.rb +6 -4
- data/lib/google/cloud/dataplex/v1/content_service/rest/client.rb +6 -4
- data/lib/google/cloud/dataplex/v1/content_service/rest/service_stub.rb +8 -8
- data/lib/google/cloud/dataplex/v1/data_profile_pb.rb +26 -50
- data/lib/google/cloud/dataplex/v1/data_quality_pb.rb +25 -74
- data/lib/google/cloud/dataplex/v1/data_scan_service/client.rb +16 -8
- data/lib/google/cloud/dataplex/v1/data_scan_service/operations.rb +5 -3
- data/lib/google/cloud/dataplex/v1/data_scan_service/rest/client.rb +16 -8
- data/lib/google/cloud/dataplex/v1/data_scan_service/rest/operations.rb +9 -7
- data/lib/google/cloud/dataplex/v1/data_scan_service/rest/service_stub.rb +8 -8
- data/lib/google/cloud/dataplex/v1/dataplex_service/client.rb +99 -4
- data/lib/google/cloud/dataplex/v1/dataplex_service/operations.rb +5 -3
- data/lib/google/cloud/dataplex/v1/dataplex_service/rest/client.rb +76 -4
- data/lib/google/cloud/dataplex/v1/dataplex_service/rest/operations.rb +9 -7
- data/lib/google/cloud/dataplex/v1/dataplex_service/rest/service_stub.rb +92 -32
- data/lib/google/cloud/dataplex/v1/datascans_pb.rb +31 -121
- data/lib/google/cloud/dataplex/v1/logs_pb.rb +26 -151
- data/lib/google/cloud/dataplex/v1/metadata_pb.rb +27 -191
- data/lib/google/cloud/dataplex/v1/metadata_service/client.rb +6 -4
- data/lib/google/cloud/dataplex/v1/metadata_service/rest/client.rb +6 -4
- data/lib/google/cloud/dataplex/v1/metadata_service/rest/service_stub.rb +9 -9
- data/lib/google/cloud/dataplex/v1/processing_pb.rb +24 -27
- data/lib/google/cloud/dataplex/v1/resources_pb.rb +27 -238
- data/lib/google/cloud/dataplex/v1/rest.rb +1 -1
- data/lib/google/cloud/dataplex/v1/service_pb.rb +31 -196
- data/lib/google/cloud/dataplex/v1/service_services_pb.rb +2 -0
- data/lib/google/cloud/dataplex/v1/tasks_pb.rb +26 -113
- data/lib/google/cloud/dataplex/v1/version.rb +1 -1
- data/lib/google/cloud/dataplex/v1.rb +1 -1
- data/proto_docs/google/api/client.rb +67 -4
- data/proto_docs/google/cloud/dataplex/v1/analyze.rb +4 -0
- data/proto_docs/google/cloud/dataplex/v1/data_profile.rb +64 -87
- data/proto_docs/google/cloud/dataplex/v1/data_quality.rb +54 -32
- data/proto_docs/google/cloud/dataplex/v1/datascans.rb +10 -2
- data/proto_docs/google/cloud/dataplex/v1/metadata.rb +31 -2
- data/proto_docs/google/cloud/dataplex/v1/processing.rb +23 -13
- data/proto_docs/google/cloud/dataplex/v1/resources.rb +24 -6
- data/proto_docs/google/cloud/dataplex/v1/service.rb +17 -0
- data/proto_docs/google/cloud/dataplex/v1/tasks.rb +2 -3
- data/proto_docs/google/protobuf/any.rb +7 -4
- data/proto_docs/google/protobuf/timestamp.rb +1 -3
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fbd205858704f5f2b7237e06d894dcd5cbf0de6313bcf330cb57e7bff3334dd7
|
4
|
+
data.tar.gz: 2d0e168ff792f9d45092dac60a438e944b6a851ff8dbaf492100784dfc81d592
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e7a0dc4709dd32d79ef48f8779ce1404f0a5c1876cec30193fd44dc7d561e38adfb9d6cf8dff247f7587c07cd34452e8da44abe944d832e42c81cac11b24f1f3
|
7
|
+
data.tar.gz: a7105ea930ac4c7cfe8a72bb8cf88e83800955ee464f05922d9458df5e4f0284b6591b8ef04f7d5e6d9319178ed4857febd470c88da6b3c86759698c6955cffa
|
data/README.md
CHANGED
@@ -47,7 +47,7 @@ for general usage information.
|
|
47
47
|
|
48
48
|
To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
|
49
49
|
The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
|
50
|
-
or a [`Google::Cloud::Logging::Logger`](https://
|
50
|
+
or a [`Google::Cloud::Logging::Logger`](https://cloud.google.com/ruby/docs/reference/google-cloud-logging/latest)
|
51
51
|
that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
|
52
52
|
and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
|
53
53
|
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: google/cloud/dataplex/v1/analyze.proto
|
3
4
|
|
@@ -9,89 +10,33 @@ require 'google/cloud/dataplex/v1/resources_pb'
|
|
9
10
|
require 'google/protobuf/duration_pb'
|
10
11
|
require 'google/protobuf/timestamp_pb'
|
11
12
|
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
end
|
36
|
-
add_message "google.cloud.dataplex.v1.Environment.InfrastructureSpec.ComputeResources" do
|
37
|
-
optional :disk_size_gb, :int32, 1
|
38
|
-
optional :node_count, :int32, 2
|
39
|
-
optional :max_node_count, :int32, 3
|
40
|
-
end
|
41
|
-
add_message "google.cloud.dataplex.v1.Environment.InfrastructureSpec.OsImageRuntime" do
|
42
|
-
optional :image_version, :string, 1
|
43
|
-
repeated :java_libraries, :string, 2
|
44
|
-
repeated :python_packages, :string, 3
|
45
|
-
map :properties, :string, :string, 4
|
46
|
-
end
|
47
|
-
add_message "google.cloud.dataplex.v1.Environment.SessionSpec" do
|
48
|
-
optional :max_idle_duration, :message, 1, "google.protobuf.Duration"
|
49
|
-
optional :enable_fast_startup, :bool, 2
|
50
|
-
end
|
51
|
-
add_message "google.cloud.dataplex.v1.Environment.SessionStatus" do
|
52
|
-
optional :active, :bool, 1
|
53
|
-
end
|
54
|
-
add_message "google.cloud.dataplex.v1.Environment.Endpoints" do
|
55
|
-
optional :notebooks, :string, 1
|
56
|
-
optional :sql, :string, 2
|
57
|
-
end
|
58
|
-
add_message "google.cloud.dataplex.v1.Content" do
|
59
|
-
optional :name, :string, 1
|
60
|
-
optional :uid, :string, 2
|
61
|
-
optional :path, :string, 3
|
62
|
-
optional :create_time, :message, 4, "google.protobuf.Timestamp"
|
63
|
-
optional :update_time, :message, 5, "google.protobuf.Timestamp"
|
64
|
-
map :labels, :string, :string, 6
|
65
|
-
optional :description, :string, 7
|
66
|
-
oneof :data do
|
67
|
-
optional :data_text, :string, 9
|
68
|
-
end
|
69
|
-
oneof :content do
|
70
|
-
optional :sql_script, :message, 100, "google.cloud.dataplex.v1.Content.SqlScript"
|
71
|
-
optional :notebook, :message, 101, "google.cloud.dataplex.v1.Content.Notebook"
|
72
|
-
end
|
73
|
-
end
|
74
|
-
add_message "google.cloud.dataplex.v1.Content.SqlScript" do
|
75
|
-
optional :engine, :enum, 1, "google.cloud.dataplex.v1.Content.SqlScript.QueryEngine"
|
76
|
-
end
|
77
|
-
add_enum "google.cloud.dataplex.v1.Content.SqlScript.QueryEngine" do
|
78
|
-
value :QUERY_ENGINE_UNSPECIFIED, 0
|
79
|
-
value :SPARK, 2
|
80
|
-
end
|
81
|
-
add_message "google.cloud.dataplex.v1.Content.Notebook" do
|
82
|
-
optional :kernel_type, :enum, 1, "google.cloud.dataplex.v1.Content.Notebook.KernelType"
|
83
|
-
end
|
84
|
-
add_enum "google.cloud.dataplex.v1.Content.Notebook.KernelType" do
|
85
|
-
value :KERNEL_TYPE_UNSPECIFIED, 0
|
86
|
-
value :PYTHON3, 1
|
87
|
-
end
|
88
|
-
add_message "google.cloud.dataplex.v1.Session" do
|
89
|
-
optional :name, :string, 1
|
90
|
-
optional :user_id, :string, 2
|
91
|
-
optional :create_time, :message, 3, "google.protobuf.Timestamp"
|
92
|
-
optional :state, :enum, 4, "google.cloud.dataplex.v1.State"
|
13
|
+
|
14
|
+
descriptor_data = "\n&google/cloud/dataplex/v1/analyze.proto\x12\x18google.cloud.dataplex.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a(google/cloud/dataplex/v1/resources.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x99\r\n\x0b\x45nvironment\x12\x39\n\x04name\x18\x01 \x01(\tB+\xe0\x41\x03\xfa\x41%\n#dataplex.googleapis.com/Environment\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x10\n\x03uid\x18\x03 \x01(\tB\x03\xe0\x41\x03\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\x46\n\x06labels\x18\x06 \x03(\x0b\x32\x31.google.cloud.dataplex.v1.Environment.LabelsEntryB\x03\xe0\x41\x01\x12\x18\n\x0b\x64\x65scription\x18\x07 \x01(\tB\x03\xe0\x41\x01\x12\x33\n\x05state\x18\x08 \x01(\x0e\x32\x1f.google.cloud.dataplex.v1.StateB\x03\xe0\x41\x03\x12Z\n\x13infrastructure_spec\x18\x64 \x01(\x0b\x32\x38.google.cloud.dataplex.v1.Environment.InfrastructureSpecB\x03\xe0\x41\x02\x12L\n\x0csession_spec\x18\x65 \x01(\x0b\x32\x31.google.cloud.dataplex.v1.Environment.SessionSpecB\x03\xe0\x41\x01\x12P\n\x0esession_status\x18\x66 \x01(\x0b\x32\x33.google.cloud.dataplex.v1.Environment.SessionStatusB\x03\xe0\x41\x03\x12H\n\tendpoints\x18\xc8\x01 \x01(\x0b\x32/.google.cloud.dataplex.v1.Environment.EndpointsB\x03\xe0\x41\x03\x1a\xe5\x04\n\x12InfrastructureSpec\x12\x61\n\x07\x63ompute\x18\x32 \x01(\x0b\x32I.google.cloud.dataplex.v1.Environment.InfrastructureSpec.ComputeResourcesB\x03\xe0\x41\x01H\x00\x12`\n\x08os_image\x18\x64 \x01(\x0b\x32G.google.cloud.dataplex.v1.Environment.InfrastructureSpec.OsImageRuntimeB\x03\xe0\x41\x02H\x01\x1a\x63\n\x10\x43omputeResources\x12\x19\n\x0c\x64isk_size_gb\x18\x01 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\nnode_count\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x1b\n\x0emax_node_count\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01\x1a\x8c\x02\n\x0eOsImageRuntime\x12\x1a\n\rimage_version\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x1b\n\x0ejava_libraries\x18\x02 \x03(\tB\x03\xe0\x41\x01\x12\x1c\n\x0fpython_packages\x18\x03 \x03(\tB\x03\xe0\x41\x01\x12p\n\nproperties\x18\x04 \x03(\x0b\x32W.google.cloud.dataplex.v1.Environment.InfrastructureSpec.OsImageRuntime.PropertiesEntryB\x03\xe0\x41\x01\x1a\x31\n\x0fPropertiesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x0b\n\tresourcesB\t\n\x07runtime\x1aj\n\x0bSessionSpec\x12\x39\n\x11max_idle_duration\x18\x01 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x01\x12 \n\x13\x65nable_fast_startup\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\x1a$\n\rSessionStatus\x12\x13\n\x06\x61\x63tive\x18\x01 \x01(\x08\x42\x03\xe0\x41\x03\x1a\x35\n\tEndpoints\x12\x16\n\tnotebooks\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x10\n\x03sql\x18\x02 \x01(\tB\x03\xe0\x41\x03\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:y\xea\x41v\n#dataplex.googleapis.com/Environment\x12Oprojects/{project}/locations/{location}/lakes/{lake}/environments/{environment}\"\xa6\x07\n\x07\x43ontent\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x03\xfa\x41!\n\x1f\x64\x61taplex.googleapis.com/Content\x12\x10\n\x03uid\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x11\n\x04path\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\x42\n\x06labels\x18\x06 \x03(\x0b\x32-.google.cloud.dataplex.v1.Content.LabelsEntryB\x03\xe0\x41\x01\x12\x18\n\x0b\x64\x65scription\x18\x07 \x01(\tB\x03\xe0\x41\x01\x12\x18\n\tdata_text\x18\t \x01(\tB\x03\xe0\x41\x02H\x00\x12\x41\n\nsql_script\x18\x64 \x01(\x0b\x32+.google.cloud.dataplex.v1.Content.SqlScriptH\x01\x12>\n\x08notebook\x18\x65 \x01(\x0b\x32*.google.cloud.dataplex.v1.Content.NotebookH\x01\x1a\x91\x01\n\tSqlScript\x12L\n\x06\x65ngine\x18\x01 \x01(\x0e\x32\x37.google.cloud.dataplex.v1.Content.SqlScript.QueryEngineB\x03\xe0\x41\x02\"6\n\x0bQueryEngine\x12\x1c\n\x18QUERY_ENGINE_UNSPECIFIED\x10\x00\x12\t\n\x05SPARK\x10\x02\x1a\x93\x01\n\x08Notebook\x12O\n\x0bkernel_type\x18\x01 \x01(\x0e\x32\x35.google.cloud.dataplex.v1.Content.Notebook.KernelTypeB\x03\xe0\x41\x02\"6\n\nKernelType\x12\x1b\n\x17KERNEL_TYPE_UNSPECIFIED\x10\x00\x12\x0b\n\x07PYTHON3\x10\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:l\xea\x41i\n\x1f\x64\x61taplex.googleapis.com/Content\x12\x46projects/{project}/locations/{location}/lakes/{lake}/content/{content}B\x06\n\x04\x64\x61taB\t\n\x07\x63ontent\"\xcd\x02\n\x07Session\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x03\xfa\x41!\n\x1f\x64\x61taplex.googleapis.com/Session\x12\x14\n\x07user_id\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x33\n\x05state\x18\x04 \x01(\x0e\x32\x1f.google.cloud.dataplex.v1.StateB\x03\xe0\x41\x03:\x89\x01\xea\x41\x85\x01\n\x1f\x64\x61taplex.googleapis.com/Session\x12\x62projects/{project}/locations/{location}/lakes/{lake}/environments/{environment}/sessions/{session}Bh\n\x1c\x63om.google.cloud.dataplex.v1B\x0c\x41nalyzeProtoP\x01Z8cloud.google.com/go/dataplex/apiv1/dataplexpb;dataplexpbb\x06proto3"
|
15
|
+
|
16
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
17
|
+
|
18
|
+
begin
|
19
|
+
pool.add_serialized_file(descriptor_data)
|
20
|
+
rescue TypeError => e
|
21
|
+
# Compatibility code: will be removed in the next major version.
|
22
|
+
require 'google/protobuf/descriptor_pb'
|
23
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
24
|
+
parsed.clear_dependency
|
25
|
+
serialized = parsed.class.encode(parsed)
|
26
|
+
file = pool.add_serialized_file(serialized)
|
27
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
28
|
+
imports = [
|
29
|
+
["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
30
|
+
["google.protobuf.Duration", "google/protobuf/duration.proto"],
|
31
|
+
]
|
32
|
+
imports.each do |type_name, expected_filename|
|
33
|
+
import_file = pool.lookup(type_name).file_descriptor
|
34
|
+
if import_file.name != expected_filename
|
35
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
93
36
|
end
|
94
37
|
end
|
38
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
39
|
+
warn "This will become an error in the next major version."
|
95
40
|
end
|
96
41
|
|
97
42
|
module Google
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: google/cloud/dataplex/v1/content.proto
|
3
4
|
|
@@ -13,41 +14,33 @@ require 'google/iam/v1/policy_pb'
|
|
13
14
|
require 'google/protobuf/empty_pb'
|
14
15
|
require 'google/protobuf/field_mask_pb'
|
15
16
|
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
optional :next_page_token, :string, 2
|
40
|
-
end
|
41
|
-
add_message "google.cloud.dataplex.v1.GetContentRequest" do
|
42
|
-
optional :name, :string, 1
|
43
|
-
optional :view, :enum, 2, "google.cloud.dataplex.v1.GetContentRequest.ContentView"
|
44
|
-
end
|
45
|
-
add_enum "google.cloud.dataplex.v1.GetContentRequest.ContentView" do
|
46
|
-
value :CONTENT_VIEW_UNSPECIFIED, 0
|
47
|
-
value :BASIC, 1
|
48
|
-
value :FULL, 2
|
17
|
+
|
18
|
+
descriptor_data = "\n&google/cloud/dataplex/v1/content.proto\x12\x18google.cloud.dataplex.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a&google/cloud/dataplex/v1/analyze.proto\x1a\x1egoogle/iam/v1/iam_policy.proto\x1a\x1agoogle/iam/v1/policy.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\"\xa1\x01\n\x14\x43reateContentRequest\x12\x34\n\x06parent\x18\x01 \x01(\tB$\xe0\x41\x02\xfa\x41\x1e\n\x1c\x64\x61taplex.googleapis.com/Lake\x12\x37\n\x07\x63ontent\x18\x02 \x01(\x0b\x32!.google.cloud.dataplex.v1.ContentB\x03\xe0\x41\x02\x12\x1a\n\rvalidate_only\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\"\xa1\x01\n\x14UpdateContentRequest\x12\x34\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\x12\x37\n\x07\x63ontent\x18\x02 \x01(\x0b\x32!.google.cloud.dataplex.v1.ContentB\x03\xe0\x41\x02\x12\x1a\n\rvalidate_only\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\"M\n\x14\x44\x65leteContentRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x64\x61taplex.googleapis.com/Content\"\x90\x01\n\x12ListContentRequest\x12\x34\n\x06parent\x18\x01 \x01(\tB$\xe0\x41\x02\xfa\x41\x1e\n\x1c\x64\x61taplex.googleapis.com/Lake\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\"b\n\x13ListContentResponse\x12\x32\n\x07\x63ontent\x18\x01 \x03(\x0b\x32!.google.cloud.dataplex.v1.Content\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xd8\x01\n\x11GetContentRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x64\x61taplex.googleapis.com/Content\x12J\n\x04view\x18\x02 \x01(\x0e\x32\x37.google.cloud.dataplex.v1.GetContentRequest.ContentViewB\x03\xe0\x41\x01\"@\n\x0b\x43ontentView\x12\x1c\n\x18\x43ONTENT_VIEW_UNSPECIFIED\x10\x00\x12\t\n\x05\x42\x41SIC\x10\x01\x12\x08\n\x04\x46ULL\x10\x02\x32\xad\x10\n\x0e\x43ontentService\x12\x80\x02\n\rCreateContent\x12..google.cloud.dataplex.v1.CreateContentRequest\x1a!.google.cloud.dataplex.v1.Content\"\x9b\x01\x82\xd3\xe4\x93\x02\x83\x01\"8/v1/{parent=projects/*/locations/*/lakes/*}/contentitems:\x07\x63ontentZ>\"3/v1/{parent=projects/*/locations/*/lakes/*}/content:\x07\x63ontent\xda\x41\x0eparent,content\x12\x97\x02\n\rUpdateContent\x12..google.cloud.dataplex.v1.UpdateContentRequest\x1a!.google.cloud.dataplex.v1.Content\"\xb2\x01\x82\xd3\xe4\x93\x02\x95\x01\x32\x41/v1/{content.name=projects/*/locations/*/lakes/*/contentitems/**}:\x07\x63ontentZG2</v1/{content.name=projects/*/locations/*/lakes/*/content/**}:\x07\x63ontent\xda\x41\x13\x63ontent,update_mask\x12\xda\x01\n\rDeleteContent\x12..google.cloud.dataplex.v1.DeleteContentRequest\x1a\x16.google.protobuf.Empty\"\x80\x01\x82\xd3\xe4\x93\x02s*9/v1/{name=projects/*/locations/*/lakes/*/contentitems/**}Z6*4/v1/{name=projects/*/locations/*/lakes/*/content/**}\xda\x41\x04name\x12\xdf\x01\n\nGetContent\x12+.google.cloud.dataplex.v1.GetContentRequest\x1a!.google.cloud.dataplex.v1.Content\"\x80\x01\x82\xd3\xe4\x93\x02s\x12\x39/v1/{name=projects/*/locations/*/lakes/*/contentitems/**}Z6\x12\x34/v1/{name=projects/*/locations/*/lakes/*/content/**}\xda\x41\x04name\x12\xf3\x01\n\x0cGetIamPolicy\x12\".google.iam.v1.GetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"\xa7\x01\x82\xd3\xe4\x93\x02\x95\x01\x12J/v1/{resource=projects/*/locations/*/lakes/*/contentitems/**}:getIamPolicyZG\x12\x45/v1/{resource=projects/*/locations/*/lakes/*/content/**}:getIamPolicy\xda\x41\x08resource\x12\xee\x01\n\x0cSetIamPolicy\x12\".google.iam.v1.SetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"\xa2\x01\x82\xd3\xe4\x93\x02\x9b\x01\"J/v1/{resource=projects/*/locations/*/lakes/*/contentitems/**}:setIamPolicy:\x01*ZJ\"E/v1/{resource=projects/*/locations/*/lakes/*/content/**}:setIamPolicy:\x01*\x12\x9a\x02\n\x12TestIamPermissions\x12(.google.iam.v1.TestIamPermissionsRequest\x1a).google.iam.v1.TestIamPermissionsResponse\"\xae\x01\x82\xd3\xe4\x93\x02\xa7\x01\"P/v1/{resource=projects/*/locations/*/lakes/*/contentitems/**}:testIamPermissions:\x01*ZP\"K/v1/{resource=projects/*/locations/*/lakes/*/content/**}:testIamPermissions:\x01*\x12\xed\x01\n\x0bListContent\x12,.google.cloud.dataplex.v1.ListContentRequest\x1a-.google.cloud.dataplex.v1.ListContentResponse\"\x80\x01\x82\xd3\xe4\x93\x02q\x12\x38/v1/{parent=projects/*/locations/*/lakes/*}/contentitemsZ5\x12\x33/v1/{parent=projects/*/locations/*/lakes/*}/content\xda\x41\x06parent\x1aK\xca\x41\x17\x64\x61taplex.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformBh\n\x1c\x63om.google.cloud.dataplex.v1B\x0c\x43ontentProtoP\x01Z8cloud.google.com/go/dataplex/apiv1/dataplexpb;dataplexpbb\x06proto3"
|
19
|
+
|
20
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
21
|
+
|
22
|
+
begin
|
23
|
+
pool.add_serialized_file(descriptor_data)
|
24
|
+
rescue TypeError => e
|
25
|
+
# Compatibility code: will be removed in the next major version.
|
26
|
+
require 'google/protobuf/descriptor_pb'
|
27
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
28
|
+
parsed.clear_dependency
|
29
|
+
serialized = parsed.class.encode(parsed)
|
30
|
+
file = pool.add_serialized_file(serialized)
|
31
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
32
|
+
imports = [
|
33
|
+
["google.cloud.dataplex.v1.Content", "google/cloud/dataplex/v1/analyze.proto"],
|
34
|
+
["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
|
35
|
+
]
|
36
|
+
imports.each do |type_name, expected_filename|
|
37
|
+
import_file = pool.lookup(type_name).file_descriptor
|
38
|
+
if import_file.name != expected_filename
|
39
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
49
40
|
end
|
50
41
|
end
|
42
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
43
|
+
warn "This will become an error in the next major version."
|
51
44
|
end
|
52
45
|
|
53
46
|
module Google
|
@@ -153,7 +153,7 @@ module Google
|
|
153
153
|
credentials = @config.credentials
|
154
154
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
155
155
|
# but only if the default endpoint does not have a region prefix.
|
156
|
-
enable_self_signed_jwt = @config.endpoint ==
|
156
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
157
157
|
!@config.endpoint.split(".").first.include?("-")
|
158
158
|
credentials ||= Credentials.default scope: @config.scope,
|
159
159
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -999,9 +999,9 @@ module Google
|
|
999
999
|
# * (`String`) The path to a service account key file in JSON format
|
1000
1000
|
# * (`Hash`) A service account key as a Hash
|
1001
1001
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
1002
|
-
# (see the [googleauth docs](https://
|
1002
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
1003
1003
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
1004
|
-
# (see the [signet docs](https://
|
1004
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
1005
1005
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
1006
1006
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
1007
1007
|
# * (`nil`) indicating no credentials
|
@@ -1043,7 +1043,9 @@ module Google
|
|
1043
1043
|
class Configuration
|
1044
1044
|
extend ::Gapic::Config
|
1045
1045
|
|
1046
|
-
|
1046
|
+
DEFAULT_ENDPOINT = "dataplex.googleapis.com"
|
1047
|
+
|
1048
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
1047
1049
|
config_attr :credentials, nil do |value|
|
1048
1050
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
1049
1051
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
@@ -149,7 +149,7 @@ module Google
|
|
149
149
|
credentials = @config.credentials
|
150
150
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
151
151
|
# but only if the default endpoint does not have a region prefix.
|
152
|
-
enable_self_signed_jwt = @config.endpoint ==
|
152
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
153
153
|
!@config.endpoint.split(".").first.include?("-")
|
154
154
|
credentials ||= Credentials.default scope: @config.scope,
|
155
155
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -804,9 +804,9 @@ module Google
|
|
804
804
|
# * (`String`) The path to a service account key file in JSON format
|
805
805
|
# * (`Hash`) A service account key as a Hash
|
806
806
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
807
|
-
# (see the [googleauth docs](https://
|
807
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
808
808
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
809
|
-
# (see the [signet docs](https://
|
809
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
810
810
|
# * (`nil`) indicating no credentials
|
811
811
|
# @return [::Object]
|
812
812
|
# @!attribute [rw] scope
|
@@ -839,7 +839,9 @@ module Google
|
|
839
839
|
class Configuration
|
840
840
|
extend ::Gapic::Config
|
841
841
|
|
842
|
-
|
842
|
+
DEFAULT_ENDPOINT = "dataplex.googleapis.com"
|
843
|
+
|
844
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
843
845
|
config_attr :credentials, nil do |value|
|
844
846
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
845
847
|
allowed.any? { |klass| klass === value }
|
@@ -59,7 +59,7 @@ module Google
|
|
59
59
|
|
60
60
|
verb, uri, query_string_params, body = ServiceStub.transcode_create_content_request request_pb
|
61
61
|
query_string_params = if query_string_params.any?
|
62
|
-
query_string_params.to_h { |p| p.split
|
62
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
63
63
|
else
|
64
64
|
{}
|
65
65
|
end
|
@@ -97,7 +97,7 @@ module Google
|
|
97
97
|
|
98
98
|
verb, uri, query_string_params, body = ServiceStub.transcode_update_content_request request_pb
|
99
99
|
query_string_params = if query_string_params.any?
|
100
|
-
query_string_params.to_h { |p| p.split
|
100
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
101
101
|
else
|
102
102
|
{}
|
103
103
|
end
|
@@ -135,7 +135,7 @@ module Google
|
|
135
135
|
|
136
136
|
verb, uri, query_string_params, body = ServiceStub.transcode_delete_content_request request_pb
|
137
137
|
query_string_params = if query_string_params.any?
|
138
|
-
query_string_params.to_h { |p| p.split
|
138
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
139
139
|
else
|
140
140
|
{}
|
141
141
|
end
|
@@ -173,7 +173,7 @@ module Google
|
|
173
173
|
|
174
174
|
verb, uri, query_string_params, body = ServiceStub.transcode_get_content_request request_pb
|
175
175
|
query_string_params = if query_string_params.any?
|
176
|
-
query_string_params.to_h { |p| p.split
|
176
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
177
177
|
else
|
178
178
|
{}
|
179
179
|
end
|
@@ -211,7 +211,7 @@ module Google
|
|
211
211
|
|
212
212
|
verb, uri, query_string_params, body = ServiceStub.transcode_get_iam_policy_request request_pb
|
213
213
|
query_string_params = if query_string_params.any?
|
214
|
-
query_string_params.to_h { |p| p.split
|
214
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
215
215
|
else
|
216
216
|
{}
|
217
217
|
end
|
@@ -249,7 +249,7 @@ module Google
|
|
249
249
|
|
250
250
|
verb, uri, query_string_params, body = ServiceStub.transcode_set_iam_policy_request request_pb
|
251
251
|
query_string_params = if query_string_params.any?
|
252
|
-
query_string_params.to_h { |p| p.split
|
252
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
253
253
|
else
|
254
254
|
{}
|
255
255
|
end
|
@@ -287,7 +287,7 @@ module Google
|
|
287
287
|
|
288
288
|
verb, uri, query_string_params, body = ServiceStub.transcode_test_iam_permissions_request request_pb
|
289
289
|
query_string_params = if query_string_params.any?
|
290
|
-
query_string_params.to_h { |p| p.split
|
290
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
291
291
|
else
|
292
292
|
{}
|
293
293
|
end
|
@@ -325,7 +325,7 @@ module Google
|
|
325
325
|
|
326
326
|
verb, uri, query_string_params, body = ServiceStub.transcode_list_content_request request_pb
|
327
327
|
query_string_params = if query_string_params.any?
|
328
|
-
query_string_params.to_h { |p| p.split
|
328
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
329
329
|
else
|
330
330
|
{}
|
331
331
|
end
|
@@ -1,62 +1,38 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: google/cloud/dataplex/v1/data_profile.proto
|
3
4
|
|
4
5
|
require 'google/protobuf'
|
5
6
|
|
7
|
+
require 'google/api/field_behavior_pb'
|
6
8
|
require 'google/cloud/dataplex/v1/processing_pb'
|
7
9
|
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
oneof :field_info do
|
31
|
-
optional :string_profile, :message, 101, "google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.StringFieldInfo"
|
32
|
-
optional :integer_profile, :message, 102, "google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.IntegerFieldInfo"
|
33
|
-
optional :double_profile, :message, 103, "google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.DoubleFieldInfo"
|
34
|
-
end
|
35
|
-
end
|
36
|
-
add_message "google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.StringFieldInfo" do
|
37
|
-
optional :min_length, :int64, 1
|
38
|
-
optional :max_length, :int64, 2
|
39
|
-
optional :average_length, :double, 3
|
40
|
-
end
|
41
|
-
add_message "google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.IntegerFieldInfo" do
|
42
|
-
optional :average, :double, 1
|
43
|
-
optional :standard_deviation, :double, 3
|
44
|
-
optional :min, :int64, 4
|
45
|
-
repeated :quartiles, :int64, 6
|
46
|
-
optional :max, :int64, 5
|
47
|
-
end
|
48
|
-
add_message "google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.DoubleFieldInfo" do
|
49
|
-
optional :average, :double, 1
|
50
|
-
optional :standard_deviation, :double, 3
|
51
|
-
optional :min, :double, 4
|
52
|
-
repeated :quartiles, :double, 6
|
53
|
-
optional :max, :double, 5
|
54
|
-
end
|
55
|
-
add_message "google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue" do
|
56
|
-
optional :value, :string, 1
|
57
|
-
optional :count, :int64, 2
|
10
|
+
|
11
|
+
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/processing.proto\"\x11\n\x0f\x44\x61taProfileSpec\"\xeb\t\n\x11\x44\x61taProfileResult\x12\x11\n\trow_count\x18\x03 \x01(\x03\x12\x44\n\x07profile\x18\x04 \x01(\x0b\x32\x33.google.cloud.dataplex.v1.DataProfileResult.Profile\x12;\n\x0cscanned_data\x18\x05 \x01(\x0b\x32%.google.cloud.dataplex.v1.ScannedData\x1a\xbf\x08\n\x07Profile\x12I\n\x06\x66ields\x18\x02 \x03(\x0b\x32\x39.google.cloud.dataplex.v1.DataProfileResult.Profile.Field\x1a\xe8\x07\n\x05\x46ield\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0c\n\x04type\x18\x02 \x01(\t\x12\x0c\n\x04mode\x18\x03 \x01(\t\x12V\n\x07profile\x18\x04 \x01(\x0b\x32\x45.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo\x1a\xdc\x06\n\x0bProfileInfo\x12\x12\n\nnull_ratio\x18\x02 \x01(\x01\x12\x16\n\x0e\x64istinct_ratio\x18\x03 \x01(\x01\x12\x65\n\x0ctop_n_values\x18\x04 \x03(\x0b\x32O.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue\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\x1aQ\n\x0fStringFieldInfo\x12\x12\n\nmin_length\x18\x01 \x01(\x03\x12\x12\n\nmax_length\x18\x02 \x01(\x03\x12\x16\n\x0e\x61verage_length\x18\x03 \x01(\x01\x1al\n\x10IntegerFieldInfo\x12\x0f\n\x07\x61verage\x18\x01 \x01(\x01\x12\x1a\n\x12standard_deviation\x18\x03 \x01(\x01\x12\x0b\n\x03min\x18\x04 \x01(\x03\x12\x11\n\tquartiles\x18\x06 \x03(\x03\x12\x0b\n\x03max\x18\x05 \x01(\x03\x1ak\n\x0f\x44oubleFieldInfo\x12\x0f\n\x07\x61verage\x18\x01 \x01(\x01\x12\x1a\n\x12standard_deviation\x18\x03 \x01(\x01\x12\x0b\n\x03min\x18\x04 \x01(\x01\x12\x11\n\tquartiles\x18\x06 \x03(\x01\x12\x0b\n\x03max\x18\x05 \x01(\x01\x1a)\n\tTopNValue\x12\r\n\x05value\x18\x01 \x01(\t\x12\r\n\x05\x63ount\x18\x02 \x01(\x03\x42\x0c\n\nfield_infoBl\n\x1c\x63om.google.cloud.dataplex.v1B\x10\x44\x61taProfileProtoP\x01Z8cloud.google.com/go/dataplex/apiv1/dataplexpb;dataplexpbb\x06proto3"
|
12
|
+
|
13
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
14
|
+
|
15
|
+
begin
|
16
|
+
pool.add_serialized_file(descriptor_data)
|
17
|
+
rescue TypeError => e
|
18
|
+
# Compatibility code: will be removed in the next major version.
|
19
|
+
require 'google/protobuf/descriptor_pb'
|
20
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
21
|
+
parsed.clear_dependency
|
22
|
+
serialized = parsed.class.encode(parsed)
|
23
|
+
file = pool.add_serialized_file(serialized)
|
24
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
25
|
+
imports = [
|
26
|
+
["google.cloud.dataplex.v1.ScannedData", "google/cloud/dataplex/v1/processing.proto"],
|
27
|
+
]
|
28
|
+
imports.each do |type_name, expected_filename|
|
29
|
+
import_file = pool.lookup(type_name).file_descriptor
|
30
|
+
if import_file.name != expected_filename
|
31
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
58
32
|
end
|
59
33
|
end
|
34
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
35
|
+
warn "This will become an error in the next major version."
|
60
36
|
end
|
61
37
|
|
62
38
|
module Google
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: google/cloud/dataplex/v1/data_quality.proto
|
3
4
|
|
@@ -6,82 +7,32 @@ require 'google/protobuf'
|
|
6
7
|
require 'google/api/field_behavior_pb'
|
7
8
|
require 'google/cloud/dataplex/v1/processing_pb'
|
8
9
|
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
optional :passed, :bool, 3
|
32
|
-
end
|
33
|
-
add_message "google.cloud.dataplex.v1.DataQualityRule" do
|
34
|
-
optional :column, :string, 500
|
35
|
-
optional :ignore_null, :bool, 501
|
36
|
-
optional :dimension, :string, 502
|
37
|
-
optional :threshold, :double, 503
|
38
|
-
oneof :rule_type do
|
39
|
-
optional :range_expectation, :message, 1, "google.cloud.dataplex.v1.DataQualityRule.RangeExpectation"
|
40
|
-
optional :non_null_expectation, :message, 2, "google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation"
|
41
|
-
optional :set_expectation, :message, 3, "google.cloud.dataplex.v1.DataQualityRule.SetExpectation"
|
42
|
-
optional :regex_expectation, :message, 4, "google.cloud.dataplex.v1.DataQualityRule.RegexExpectation"
|
43
|
-
optional :uniqueness_expectation, :message, 100, "google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation"
|
44
|
-
optional :statistic_range_expectation, :message, 101, "google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation"
|
45
|
-
optional :row_condition_expectation, :message, 200, "google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation"
|
46
|
-
optional :table_condition_expectation, :message, 201, "google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation"
|
47
|
-
end
|
48
|
-
end
|
49
|
-
add_message "google.cloud.dataplex.v1.DataQualityRule.RangeExpectation" do
|
50
|
-
optional :min_value, :string, 1
|
51
|
-
optional :max_value, :string, 2
|
52
|
-
optional :strict_min_enabled, :bool, 3
|
53
|
-
optional :strict_max_enabled, :bool, 4
|
54
|
-
end
|
55
|
-
add_message "google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation" do
|
56
|
-
end
|
57
|
-
add_message "google.cloud.dataplex.v1.DataQualityRule.SetExpectation" do
|
58
|
-
repeated :values, :string, 1
|
59
|
-
end
|
60
|
-
add_message "google.cloud.dataplex.v1.DataQualityRule.RegexExpectation" do
|
61
|
-
optional :regex, :string, 1
|
62
|
-
end
|
63
|
-
add_message "google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation" do
|
64
|
-
end
|
65
|
-
add_message "google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation" do
|
66
|
-
optional :statistic, :enum, 1, "google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation.ColumnStatistic"
|
67
|
-
optional :min_value, :string, 2
|
68
|
-
optional :max_value, :string, 3
|
69
|
-
optional :strict_min_enabled, :bool, 4
|
70
|
-
optional :strict_max_enabled, :bool, 5
|
71
|
-
end
|
72
|
-
add_enum "google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation.ColumnStatistic" do
|
73
|
-
value :STATISTIC_UNDEFINED, 0
|
74
|
-
value :MEAN, 1
|
75
|
-
value :MIN, 2
|
76
|
-
value :MAX, 3
|
77
|
-
end
|
78
|
-
add_message "google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation" do
|
79
|
-
optional :sql_expression, :string, 1
|
80
|
-
end
|
81
|
-
add_message "google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation" do
|
82
|
-
optional :sql_expression, :string, 1
|
10
|
+
|
11
|
+
descriptor_data = "\n+google/cloud/dataplex/v1/data_quality.proto\x12\x18google.cloud.dataplex.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a)google/cloud/dataplex/v1/processing.proto\"K\n\x0f\x44\x61taQualitySpec\x12\x38\n\x05rules\x18\x01 \x03(\x0b\x32).google.cloud.dataplex.v1.DataQualityRule\"\xfd\x01\n\x11\x44\x61taQualityResult\x12\x0e\n\x06passed\x18\x05 \x01(\x08\x12H\n\ndimensions\x18\x02 \x03(\x0b\x32\x34.google.cloud.dataplex.v1.DataQualityDimensionResult\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\"\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\",\n\x1a\x44\x61taQualityDimensionResult\x12\x0e\n\x06passed\x18\x03 \x01(\x08\"\x9a\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\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\x0e\n\x06values\x18\x01 \x03(\t\x1a!\n\x10RegexExpectation\x12\r\n\x05regex\x18\x01 \x01(\t\x1a\x17\n\x15UniquenessExpectation\x1a\xa9\x02\n\x19StatisticRangeExpectation\x12\x66\n\tstatistic\x18\x01 \x01(\x0e\x32S.google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation.ColumnStatistic\x12\x11\n\tmin_value\x18\x02 \x01(\t\x12\x11\n\tmax_value\x18\x03 \x01(\t\x12\x1a\n\x12strict_min_enabled\x18\x04 \x01(\x08\x12\x1a\n\x12strict_max_enabled\x18\x05 \x01(\x08\"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\x31\n\x17RowConditionExpectation\x12\x16\n\x0esql_expression\x18\x01 \x01(\t\x1a\x33\n\x19TableConditionExpectation\x12\x16\n\x0esql_expression\x18\x01 \x01(\tB\x0b\n\trule_typeBl\n\x1c\x63om.google.cloud.dataplex.v1B\x10\x44\x61taQualityProtoP\x01Z8cloud.google.com/go/dataplex/apiv1/dataplexpb;dataplexpbb\x06proto3"
|
12
|
+
|
13
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
14
|
+
|
15
|
+
begin
|
16
|
+
pool.add_serialized_file(descriptor_data)
|
17
|
+
rescue TypeError => e
|
18
|
+
# Compatibility code: will be removed in the next major version.
|
19
|
+
require 'google/protobuf/descriptor_pb'
|
20
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
21
|
+
parsed.clear_dependency
|
22
|
+
serialized = parsed.class.encode(parsed)
|
23
|
+
file = pool.add_serialized_file(serialized)
|
24
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
25
|
+
imports = [
|
26
|
+
["google.cloud.dataplex.v1.ScannedData", "google/cloud/dataplex/v1/processing.proto"],
|
27
|
+
]
|
28
|
+
imports.each do |type_name, expected_filename|
|
29
|
+
import_file = pool.lookup(type_name).file_descriptor
|
30
|
+
if import_file.name != expected_filename
|
31
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
83
32
|
end
|
84
33
|
end
|
34
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
35
|
+
warn "This will become an error in the next major version."
|
85
36
|
end
|
86
37
|
|
87
38
|
module Google
|