google-cloud-dataplex-v1 0.18.0 → 0.18.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/dataplex/v1/analyze_pb.rb +2 -2
- data/lib/google/cloud/dataplex/v1/content_pb.rb +2 -2
- data/lib/google/cloud/dataplex/v1/content_service/client.rb +14 -14
- data/lib/google/cloud/dataplex/v1/content_service/rest/client.rb +11 -11
- data/lib/google/cloud/dataplex/v1/content_service/rest/service_stub.rb +9 -0
- data/lib/google/cloud/dataplex/v1/data_profile_pb.rb +2 -2
- data/lib/google/cloud/dataplex/v1/data_quality_pb.rb +2 -2
- data/lib/google/cloud/dataplex/v1/data_scan_service/client.rb +14 -14
- data/lib/google/cloud/dataplex/v1/data_scan_service/rest/client.rb +11 -11
- data/lib/google/cloud/dataplex/v1/data_scan_service/rest/service_stub.rb +9 -0
- data/lib/google/cloud/dataplex/v1/data_taxonomy_pb.rb +2 -2
- data/lib/google/cloud/dataplex/v1/data_taxonomy_service/client.rb +14 -14
- data/lib/google/cloud/dataplex/v1/data_taxonomy_service/rest/client.rb +11 -11
- data/lib/google/cloud/dataplex/v1/data_taxonomy_service/rest/service_stub.rb +9 -0
- data/lib/google/cloud/dataplex/v1/dataplex_service/client.rb +14 -14
- data/lib/google/cloud/dataplex/v1/dataplex_service/rest/client.rb +11 -11
- data/lib/google/cloud/dataplex/v1/dataplex_service/rest/service_stub.rb +9 -0
- data/lib/google/cloud/dataplex/v1/datascans_pb.rb +2 -2
- data/lib/google/cloud/dataplex/v1/logs_pb.rb +3 -2
- data/lib/google/cloud/dataplex/v1/metadata_pb.rb +2 -2
- data/lib/google/cloud/dataplex/v1/metadata_service/client.rb +14 -14
- data/lib/google/cloud/dataplex/v1/metadata_service/rest/client.rb +11 -11
- data/lib/google/cloud/dataplex/v1/metadata_service/rest/service_stub.rb +9 -0
- data/lib/google/cloud/dataplex/v1/processing_pb.rb +2 -2
- data/lib/google/cloud/dataplex/v1/resources_pb.rb +2 -2
- data/lib/google/cloud/dataplex/v1/security_pb.rb +2 -2
- data/lib/google/cloud/dataplex/v1/service_pb.rb +2 -2
- data/lib/google/cloud/dataplex/v1/tasks_pb.rb +2 -2
- data/lib/google/cloud/dataplex/v1/version.rb +1 -1
- data/proto_docs/google/cloud/dataplex/v1/logs.rb +1 -1
- data/proto_docs/google/protobuf/any.rb +2 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cf75f90356cf32736a1067fe97203976e89368da7857ab88e39a05600bac6de6
|
4
|
+
data.tar.gz: 150af1ceb5de25b2a938a61be31251e72600f5b1ee02b41f08010e367d64ac85
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8d2be0bce0e86f18ce647661ad91bc4973f69f8cfb76924c53309131b48525767a5a71a12f59e6e9f5fa223c6cd5da2a3e00637720994ec835eabd43e6c71e33
|
7
|
+
data.tar.gz: 32d72cb3bc29ff754a8feaf80d48fe40a7c1bc9875103b1890dfacc713630205ea165f61bf536707b9b399b81efb7c9daa0ef6bb3fdbdfaa4828d6220acb9f49
|
@@ -11,13 +11,13 @@ require 'google/protobuf/duration_pb'
|
|
11
11
|
require 'google/protobuf/timestamp_pb'
|
12
12
|
|
13
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\"\
|
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\"\xb3\r\n\x0b\x45nvironment\x12:\n\x04name\x18\x01 \x01(\tB,\xe2\x41\x01\x03\xfa\x41%\n#dataplex.googleapis.com/Environment\x12\x1a\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x04\xe2\x41\x01\x01\x12\x11\n\x03uid\x18\x03 \x01(\tB\x04\xe2\x41\x01\x03\x12\x35\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x04\xe2\x41\x01\x03\x12\x35\n\x0bupdate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x04\xe2\x41\x01\x03\x12G\n\x06labels\x18\x06 \x03(\x0b\x32\x31.google.cloud.dataplex.v1.Environment.LabelsEntryB\x04\xe2\x41\x01\x01\x12\x19\n\x0b\x64\x65scription\x18\x07 \x01(\tB\x04\xe2\x41\x01\x01\x12\x34\n\x05state\x18\x08 \x01(\x0e\x32\x1f.google.cloud.dataplex.v1.StateB\x04\xe2\x41\x01\x03\x12[\n\x13infrastructure_spec\x18\x64 \x01(\x0b\x32\x38.google.cloud.dataplex.v1.Environment.InfrastructureSpecB\x04\xe2\x41\x01\x02\x12M\n\x0csession_spec\x18\x65 \x01(\x0b\x32\x31.google.cloud.dataplex.v1.Environment.SessionSpecB\x04\xe2\x41\x01\x01\x12Q\n\x0esession_status\x18\x66 \x01(\x0b\x32\x33.google.cloud.dataplex.v1.Environment.SessionStatusB\x04\xe2\x41\x01\x03\x12I\n\tendpoints\x18\xc8\x01 \x01(\x0b\x32/.google.cloud.dataplex.v1.Environment.EndpointsB\x04\xe2\x41\x01\x03\x1a\xee\x04\n\x12InfrastructureSpec\x12\x62\n\x07\x63ompute\x18\x32 \x01(\x0b\x32I.google.cloud.dataplex.v1.Environment.InfrastructureSpec.ComputeResourcesB\x04\xe2\x41\x01\x01H\x00\x12\x61\n\x08os_image\x18\x64 \x01(\x0b\x32G.google.cloud.dataplex.v1.Environment.InfrastructureSpec.OsImageRuntimeB\x04\xe2\x41\x01\x02H\x01\x1a\x66\n\x10\x43omputeResources\x12\x1a\n\x0c\x64isk_size_gb\x18\x01 \x01(\x05\x42\x04\xe2\x41\x01\x01\x12\x18\n\nnode_count\x18\x02 \x01(\x05\x42\x04\xe2\x41\x01\x01\x12\x1c\n\x0emax_node_count\x18\x03 \x01(\x05\x42\x04\xe2\x41\x01\x01\x1a\x90\x02\n\x0eOsImageRuntime\x12\x1b\n\rimage_version\x18\x01 \x01(\tB\x04\xe2\x41\x01\x02\x12\x1c\n\x0ejava_libraries\x18\x02 \x03(\tB\x04\xe2\x41\x01\x01\x12\x1d\n\x0fpython_packages\x18\x03 \x03(\tB\x04\xe2\x41\x01\x01\x12q\n\nproperties\x18\x04 \x03(\x0b\x32W.google.cloud.dataplex.v1.Environment.InfrastructureSpec.OsImageRuntime.PropertiesEntryB\x04\xe2\x41\x01\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\x1al\n\x0bSessionSpec\x12:\n\x11max_idle_duration\x18\x01 \x01(\x0b\x32\x19.google.protobuf.DurationB\x04\xe2\x41\x01\x01\x12!\n\x13\x65nable_fast_startup\x18\x02 \x01(\x08\x42\x04\xe2\x41\x01\x01\x1a%\n\rSessionStatus\x12\x14\n\x06\x61\x63tive\x18\x01 \x01(\x08\x42\x04\xe2\x41\x01\x03\x1a\x37\n\tEndpoints\x12\x17\n\tnotebooks\x18\x01 \x01(\tB\x04\xe2\x41\x01\x03\x12\x11\n\x03sql\x18\x02 \x01(\tB\x04\xe2\x41\x01\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}\"\xb0\x07\n\x07\x43ontent\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe2\x41\x01\x03\xfa\x41!\n\x1f\x64\x61taplex.googleapis.com/Content\x12\x11\n\x03uid\x18\x02 \x01(\tB\x04\xe2\x41\x01\x03\x12\x12\n\x04path\x18\x03 \x01(\tB\x04\xe2\x41\x01\x02\x12\x35\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x04\xe2\x41\x01\x03\x12\x35\n\x0bupdate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x04\xe2\x41\x01\x03\x12\x43\n\x06labels\x18\x06 \x03(\x0b\x32-.google.cloud.dataplex.v1.Content.LabelsEntryB\x04\xe2\x41\x01\x01\x12\x19\n\x0b\x64\x65scription\x18\x07 \x01(\tB\x04\xe2\x41\x01\x01\x12\x19\n\tdata_text\x18\t \x01(\tB\x04\xe2\x41\x01\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\x92\x01\n\tSqlScript\x12M\n\x06\x65ngine\x18\x01 \x01(\x0e\x32\x37.google.cloud.dataplex.v1.Content.SqlScript.QueryEngineB\x04\xe2\x41\x01\x02\"6\n\x0bQueryEngine\x12\x1c\n\x18QUERY_ENGINE_UNSPECIFIED\x10\x00\x12\t\n\x05SPARK\x10\x02\x1a\x94\x01\n\x08Notebook\x12P\n\x0bkernel_type\x18\x01 \x01(\x0e\x32\x35.google.cloud.dataplex.v1.Content.Notebook.KernelTypeB\x04\xe2\x41\x01\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\"\xd1\x02\n\x07Session\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe2\x41\x01\x03\xfa\x41!\n\x1f\x64\x61taplex.googleapis.com/Session\x12\x15\n\x07user_id\x18\x02 \x01(\tB\x04\xe2\x41\x01\x03\x12\x35\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x04\xe2\x41\x01\x03\x12\x34\n\x05state\x18\x04 \x01(\x0e\x32\x1f.google.cloud.dataplex.v1.StateB\x04\xe2\x41\x01\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
15
|
|
16
16
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
17
17
|
|
18
18
|
begin
|
19
19
|
pool.add_serialized_file(descriptor_data)
|
20
|
-
rescue TypeError
|
20
|
+
rescue TypeError
|
21
21
|
# Compatibility code: will be removed in the next major version.
|
22
22
|
require 'google/protobuf/descriptor_pb'
|
23
23
|
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
@@ -15,13 +15,13 @@ require 'google/protobuf/empty_pb'
|
|
15
15
|
require 'google/protobuf/field_mask_pb'
|
16
16
|
|
17
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\"\
|
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\"\xa4\x01\n\x14\x43reateContentRequest\x12\x35\n\x06parent\x18\x01 \x01(\tB%\xe2\x41\x01\x02\xfa\x41\x1e\n\x1c\x64\x61taplex.googleapis.com/Lake\x12\x38\n\x07\x63ontent\x18\x02 \x01(\x0b\x32!.google.cloud.dataplex.v1.ContentB\x04\xe2\x41\x01\x02\x12\x1b\n\rvalidate_only\x18\x03 \x01(\x08\x42\x04\xe2\x41\x01\x01\"\xa4\x01\n\x14UpdateContentRequest\x12\x35\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x04\xe2\x41\x01\x02\x12\x38\n\x07\x63ontent\x18\x02 \x01(\x0b\x32!.google.cloud.dataplex.v1.ContentB\x04\xe2\x41\x01\x02\x12\x1b\n\rvalidate_only\x18\x03 \x01(\x08\x42\x04\xe2\x41\x01\x01\"N\n\x14\x44\x65leteContentRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe2\x41\x01\x02\xfa\x41!\n\x1f\x64\x61taplex.googleapis.com/Content\"\x94\x01\n\x12ListContentRequest\x12\x35\n\x06parent\x18\x01 \x01(\tB%\xe2\x41\x01\x02\xfa\x41\x1e\n\x1c\x64\x61taplex.googleapis.com/Lake\x12\x17\n\tpage_size\x18\x02 \x01(\x05\x42\x04\xe2\x41\x01\x01\x12\x18\n\npage_token\x18\x03 \x01(\tB\x04\xe2\x41\x01\x01\x12\x14\n\x06\x66ilter\x18\x04 \x01(\tB\x04\xe2\x41\x01\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\"\xda\x01\n\x11GetContentRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe2\x41\x01\x02\xfa\x41!\n\x1f\x64\x61taplex.googleapis.com/Content\x12K\n\x04view\x18\x02 \x01(\x0e\x32\x37.google.cloud.dataplex.v1.GetContentRequest.ContentViewB\x04\xe2\x41\x01\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\xda\x41\x0eparent,content\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\x12\x97\x02\n\rUpdateContent\x12..google.cloud.dataplex.v1.UpdateContentRequest\x1a!.google.cloud.dataplex.v1.Content\"\xb2\x01\xda\x41\x13\x63ontent,update_mask\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\x12\xda\x01\n\rDeleteContent\x12..google.cloud.dataplex.v1.DeleteContentRequest\x1a\x16.google.protobuf.Empty\"\x80\x01\xda\x41\x04name\x82\xd3\xe4\x93\x02s*9/v1/{name=projects/*/locations/*/lakes/*/contentitems/**}Z6*4/v1/{name=projects/*/locations/*/lakes/*/content/**}\x12\xdf\x01\n\nGetContent\x12+.google.cloud.dataplex.v1.GetContentRequest\x1a!.google.cloud.dataplex.v1.Content\"\x80\x01\xda\x41\x04name\x82\xd3\xe4\x93\x02s\x12\x39/v1/{name=projects/*/locations/*/lakes/*/contentitems/**}Z6\x12\x34/v1/{name=projects/*/locations/*/lakes/*/content/**}\x12\xf3\x01\n\x0cGetIamPolicy\x12\".google.iam.v1.GetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"\xa7\x01\xda\x41\x08resource\x82\xd3\xe4\x93\x02\x95\x01\x12J/v1/{resource=projects/*/locations/*/lakes/*/contentitems/**}:getIamPolicyZG\x12\x45/v1/{resource=projects/*/locations/*/lakes/*/content/**}:getIamPolicy\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\xda\x41\x06parent\x82\xd3\xe4\x93\x02q\x12\x38/v1/{parent=projects/*/locations/*/lakes/*}/contentitemsZ5\x12\x33/v1/{parent=projects/*/locations/*/lakes/*}/content\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
19
|
|
20
20
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
21
21
|
|
22
22
|
begin
|
23
23
|
pool.add_serialized_file(descriptor_data)
|
24
|
-
rescue TypeError
|
24
|
+
rescue TypeError
|
25
25
|
# Compatibility code: will be removed in the next major version.
|
26
26
|
require 'google/protobuf/descriptor_pb'
|
27
27
|
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
@@ -176,20 +176,6 @@ module Google
|
|
176
176
|
@quota_project_id = @config.quota_project
|
177
177
|
@quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
|
178
178
|
|
179
|
-
@location_client = Google::Cloud::Location::Locations::Client.new do |config|
|
180
|
-
config.credentials = credentials
|
181
|
-
config.quota_project = @quota_project_id
|
182
|
-
config.endpoint = @config.endpoint
|
183
|
-
config.universe_domain = @config.universe_domain
|
184
|
-
end
|
185
|
-
|
186
|
-
@iam_policy_client = Google::Iam::V1::IAMPolicy::Client.new do |config|
|
187
|
-
config.credentials = credentials
|
188
|
-
config.quota_project = @quota_project_id
|
189
|
-
config.endpoint = @config.endpoint
|
190
|
-
config.universe_domain = @config.universe_domain
|
191
|
-
end
|
192
|
-
|
193
179
|
@content_service_stub = ::Gapic::ServiceStub.new(
|
194
180
|
::Google::Cloud::Dataplex::V1::ContentService::Stub,
|
195
181
|
credentials: credentials,
|
@@ -200,6 +186,20 @@ module Google
|
|
200
186
|
interceptors: @config.interceptors,
|
201
187
|
channel_pool_config: @config.channel_pool
|
202
188
|
)
|
189
|
+
|
190
|
+
@location_client = Google::Cloud::Location::Locations::Client.new do |config|
|
191
|
+
config.credentials = credentials
|
192
|
+
config.quota_project = @quota_project_id
|
193
|
+
config.endpoint = @content_service_stub.endpoint
|
194
|
+
config.universe_domain = @content_service_stub.universe_domain
|
195
|
+
end
|
196
|
+
|
197
|
+
@iam_policy_client = Google::Iam::V1::IAMPolicy::Client.new do |config|
|
198
|
+
config.credentials = credentials
|
199
|
+
config.quota_project = @quota_project_id
|
200
|
+
config.endpoint = @content_service_stub.endpoint
|
201
|
+
config.universe_domain = @content_service_stub.universe_domain
|
202
|
+
end
|
203
203
|
end
|
204
204
|
|
205
205
|
##
|
@@ -173,28 +173,28 @@ module Google
|
|
173
173
|
@quota_project_id = @config.quota_project
|
174
174
|
@quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
|
175
175
|
|
176
|
+
@content_service_stub = ::Google::Cloud::Dataplex::V1::ContentService::Rest::ServiceStub.new(
|
177
|
+
endpoint: @config.endpoint,
|
178
|
+
endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
|
179
|
+
universe_domain: @config.universe_domain,
|
180
|
+
credentials: credentials
|
181
|
+
)
|
182
|
+
|
176
183
|
@location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
|
177
184
|
config.credentials = credentials
|
178
185
|
config.quota_project = @quota_project_id
|
179
|
-
config.endpoint = @
|
180
|
-
config.universe_domain = @
|
186
|
+
config.endpoint = @content_service_stub.endpoint
|
187
|
+
config.universe_domain = @content_service_stub.universe_domain
|
181
188
|
config.bindings_override = @config.bindings_override
|
182
189
|
end
|
183
190
|
|
184
191
|
@iam_policy_client = Google::Iam::V1::IAMPolicy::Rest::Client.new do |config|
|
185
192
|
config.credentials = credentials
|
186
193
|
config.quota_project = @quota_project_id
|
187
|
-
config.endpoint = @
|
188
|
-
config.universe_domain = @
|
194
|
+
config.endpoint = @content_service_stub.endpoint
|
195
|
+
config.universe_domain = @content_service_stub.universe_domain
|
189
196
|
config.bindings_override = @config.bindings_override
|
190
197
|
end
|
191
|
-
|
192
|
-
@content_service_stub = ::Google::Cloud::Dataplex::V1::ContentService::Rest::ServiceStub.new(
|
193
|
-
endpoint: @config.endpoint,
|
194
|
-
endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
|
195
|
-
universe_domain: @config.universe_domain,
|
196
|
-
credentials: credentials
|
197
|
-
)
|
198
198
|
end
|
199
199
|
|
200
200
|
##
|
@@ -52,6 +52,15 @@ module Google
|
|
52
52
|
@client_stub.universe_domain
|
53
53
|
end
|
54
54
|
|
55
|
+
##
|
56
|
+
# The effective endpoint
|
57
|
+
#
|
58
|
+
# @return [String]
|
59
|
+
#
|
60
|
+
def endpoint
|
61
|
+
@client_stub.endpoint
|
62
|
+
end
|
63
|
+
|
55
64
|
##
|
56
65
|
# Baseline implementation for the create_content REST call
|
57
66
|
#
|
@@ -8,13 +8,13 @@ require 'google/api/field_behavior_pb'
|
|
8
8
|
require 'google/cloud/dataplex/v1/processing_pb'
|
9
9
|
|
10
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\"\
|
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\"\xb0\x04\n\x0f\x44\x61taProfileSpec\x12\x1e\n\x10sampling_percent\x18\x02 \x01(\x02\x42\x04\xe2\x41\x01\x01\x12\x18\n\nrow_filter\x18\x03 \x01(\tB\x04\xe2\x41\x01\x01\x12Z\n\x11post_scan_actions\x18\x04 \x01(\x0b\x32\x39.google.cloud.dataplex.v1.DataProfileSpec.PostScanActionsB\x04\xe2\x41\x01\x01\x12V\n\x0einclude_fields\x18\x05 \x01(\x0b\x32\x38.google.cloud.dataplex.v1.DataProfileSpec.SelectedFieldsB\x04\xe2\x41\x01\x01\x12V\n\x0e\x65xclude_fields\x18\x06 \x01(\x0b\x32\x38.google.cloud.dataplex.v1.DataProfileSpec.SelectedFieldsB\x04\xe2\x41\x01\x01\x1a\xa9\x01\n\x0fPostScanActions\x12g\n\x0f\x62igquery_export\x18\x01 \x01(\x0b\x32H.google.cloud.dataplex.v1.DataProfileSpec.PostScanActions.BigQueryExportB\x04\xe2\x41\x01\x01\x1a-\n\x0e\x42igQueryExport\x12\x1b\n\rresults_table\x18\x01 \x01(\tB\x04\xe2\x41\x01\x01\x1a+\n\x0eSelectedFields\x12\x19\n\x0b\x66ield_names\x18\x01 \x03(\tB\x04\xe2\x41\x01\x01\"\xe8\r\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\x12i\n\x18post_scan_actions_result\x18\x06 \x01(\x0b\x32\x41.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResultB\x04\xe2\x41\x01\x03\x1a\xce\x08\n\x07Profile\x12I\n\x06\x66ields\x18\x02 \x03(\x0b\x32\x39.google.cloud.dataplex.v1.DataProfileResult.Profile.Field\x1a\xf7\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\xeb\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\x38\n\tTopNValue\x12\r\n\x05value\x18\x01 \x01(\t\x12\r\n\x05\x63ount\x18\x02 \x01(\x03\x12\r\n\x05ratio\x18\x03 \x01(\x01\x42\x0c\n\nfield_info\x1a\x80\x03\n\x15PostScanActionsResult\x12|\n\x16\x62igquery_export_result\x18\x01 \x01(\x0b\x32V.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult.BigQueryExportResultB\x04\xe2\x41\x01\x03\x1a\xe8\x01\n\x14\x42igQueryExportResult\x12q\n\x05state\x18\x01 \x01(\x0e\x32\\.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult.BigQueryExportResult.StateB\x04\xe2\x41\x01\x03\x12\x15\n\x07message\x18\x02 \x01(\tB\x04\xe2\x41\x01\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"
|
12
12
|
|
13
13
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
14
14
|
|
15
15
|
begin
|
16
16
|
pool.add_serialized_file(descriptor_data)
|
17
|
-
rescue TypeError
|
17
|
+
rescue TypeError
|
18
18
|
# Compatibility code: will be removed in the next major version.
|
19
19
|
require 'google/protobuf/descriptor_pb'
|
20
20
|
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
@@ -9,13 +9,13 @@ require 'google/api/resource_pb'
|
|
9
9
|
require 'google/cloud/dataplex/v1/processing_pb'
|
10
10
|
|
11
11
|
|
12
|
-
descriptor_data = "\n+google/cloud/dataplex/v1/data_quality.proto\x12\x18google.cloud.dataplex.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a)google/cloud/dataplex/v1/processing.proto\"\
|
12
|
+
descriptor_data = "\n+google/cloud/dataplex/v1/data_quality.proto\x12\x18google.cloud.dataplex.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a)google/cloud/dataplex/v1/processing.proto\"\x93\x03\n\x0f\x44\x61taQualitySpec\x12>\n\x05rules\x18\x01 \x03(\x0b\x32).google.cloud.dataplex.v1.DataQualityRuleB\x04\xe2\x41\x01\x02\x12\x1e\n\x10sampling_percent\x18\x04 \x01(\x02\x42\x04\xe2\x41\x01\x01\x12\x18\n\nrow_filter\x18\x05 \x01(\tB\x04\xe2\x41\x01\x01\x12Z\n\x11post_scan_actions\x18\x06 \x01(\x0b\x32\x39.google.cloud.dataplex.v1.DataQualitySpec.PostScanActionsB\x04\xe2\x41\x01\x01\x1a\xa9\x01\n\x0fPostScanActions\x12g\n\x0f\x62igquery_export\x18\x01 \x01(\x0b\x32H.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.BigQueryExportB\x04\xe2\x41\x01\x01\x1a-\n\x0e\x42igQueryExport\x12\x1b\n\rresults_table\x18\x01 \x01(\tB\x04\xe2\x41\x01\x01\"\xd9\x06\n\x11\x44\x61taQualityResult\x12\x0e\n\x06passed\x18\x05 \x01(\x08\x12\x18\n\x05score\x18\t \x01(\x02\x42\x04\xe2\x41\x01\x03H\x00\x88\x01\x01\x12H\n\ndimensions\x18\x02 \x03(\x0b\x32\x34.google.cloud.dataplex.v1.DataQualityDimensionResult\x12H\n\x07\x63olumns\x18\n \x03(\x0b\x32\x31.google.cloud.dataplex.v1.DataQualityColumnResultB\x04\xe2\x41\x01\x03\x12>\n\x05rules\x18\x03 \x03(\x0b\x32/.google.cloud.dataplex.v1.DataQualityRuleResult\x12\x11\n\trow_count\x18\x04 \x01(\x03\x12;\n\x0cscanned_data\x18\x07 \x01(\x0b\x32%.google.cloud.dataplex.v1.ScannedData\x12i\n\x18post_scan_actions_result\x18\x08 \x01(\x0b\x32\x41.google.cloud.dataplex.v1.DataQualityResult.PostScanActionsResultB\x04\xe2\x41\x01\x03\x1a\x80\x03\n\x15PostScanActionsResult\x12|\n\x16\x62igquery_export_result\x18\x01 \x01(\x0b\x32V.google.cloud.dataplex.v1.DataQualityResult.PostScanActionsResult.BigQueryExportResultB\x04\xe2\x41\x01\x03\x1a\xe8\x01\n\x14\x42igQueryExportResult\x12q\n\x05state\x18\x01 \x01(\x0e\x32\\.google.cloud.dataplex.v1.DataQualityResult.PostScanActionsResult.BigQueryExportResult.StateB\x04\xe2\x41\x01\x03\x12\x15\n\x07message\x18\x02 \x01(\tB\x04\xe2\x41\x01\x03\"F\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\r\n\tSUCCEEDED\x10\x01\x12\n\n\x06\x46\x41ILED\x10\x02\x12\x0b\n\x07SKIPPED\x10\x03\x42\x08\n\x06_score\"\xd3\x01\n\x15\x44\x61taQualityRuleResult\x12\x37\n\x04rule\x18\x01 \x01(\x0b\x32).google.cloud.dataplex.v1.DataQualityRule\x12\x0e\n\x06passed\x18\x07 \x01(\x08\x12\x17\n\x0f\x65valuated_count\x18\t \x01(\x03\x12\x14\n\x0cpassed_count\x18\x08 \x01(\x03\x12\x12\n\nnull_count\x18\x05 \x01(\x03\x12\x12\n\npass_ratio\x18\x06 \x01(\x01\x12\x1a\n\x12\x66\x61iling_rows_query\x18\n \x01(\t\"\x99\x01\n\x1a\x44\x61taQualityDimensionResult\x12G\n\tdimension\x18\x01 \x01(\x0b\x32..google.cloud.dataplex.v1.DataQualityDimensionB\x04\xe2\x41\x01\x03\x12\x0e\n\x06passed\x18\x03 \x01(\x08\x12\x18\n\x05score\x18\x04 \x01(\x02\x42\x04\xe2\x41\x01\x03H\x00\x88\x01\x01\x42\x08\n\x06_score\"$\n\x14\x44\x61taQualityDimension\x12\x0c\n\x04name\x18\x01 \x01(\t\"\x89\r\n\x0f\x44\x61taQualityRule\x12W\n\x11range_expectation\x18\x01 \x01(\x0b\x32:.google.cloud.dataplex.v1.DataQualityRule.RangeExpectationH\x00\x12\\\n\x14non_null_expectation\x18\x02 \x01(\x0b\x32<.google.cloud.dataplex.v1.DataQualityRule.NonNullExpectationH\x00\x12S\n\x0fset_expectation\x18\x03 \x01(\x0b\x32\x38.google.cloud.dataplex.v1.DataQualityRule.SetExpectationH\x00\x12W\n\x11regex_expectation\x18\x04 \x01(\x0b\x32:.google.cloud.dataplex.v1.DataQualityRule.RegexExpectationH\x00\x12\x61\n\x16uniqueness_expectation\x18\x64 \x01(\x0b\x32?.google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectationH\x00\x12j\n\x1bstatistic_range_expectation\x18\x65 \x01(\x0b\x32\x43.google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectationH\x00\x12g\n\x19row_condition_expectation\x18\xc8\x01 \x01(\x0b\x32\x41.google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectationH\x00\x12k\n\x1btable_condition_expectation\x18\xc9\x01 \x01(\x0b\x32\x43.google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectationH\x00\x12\x15\n\x06\x63olumn\x18\xf4\x03 \x01(\tB\x04\xe2\x41\x01\x01\x12\x1a\n\x0bignore_null\x18\xf5\x03 \x01(\x08\x42\x04\xe2\x41\x01\x01\x12\x18\n\tdimension\x18\xf6\x03 \x01(\tB\x04\xe2\x41\x01\x02\x12\x18\n\tthreshold\x18\xf7\x03 \x01(\x01\x42\x04\xe2\x41\x01\x01\x12\x13\n\x04name\x18\xf8\x03 \x01(\tB\x04\xe2\x41\x01\x01\x12\x1a\n\x0b\x64\x65scription\x18\xf9\x03 \x01(\tB\x04\xe2\x41\x01\x01\x1a\x88\x01\n\x10RangeExpectation\x12\x17\n\tmin_value\x18\x01 \x01(\tB\x04\xe2\x41\x01\x01\x12\x17\n\tmax_value\x18\x02 \x01(\tB\x04\xe2\x41\x01\x01\x12 \n\x12strict_min_enabled\x18\x03 \x01(\x08\x42\x04\xe2\x41\x01\x01\x12 \n\x12strict_max_enabled\x18\x04 \x01(\x08\x42\x04\xe2\x41\x01\x01\x1a\x14\n\x12NonNullExpectation\x1a&\n\x0eSetExpectation\x12\x14\n\x06values\x18\x01 \x03(\tB\x04\xe2\x41\x01\x01\x1a\'\n\x10RegexExpectation\x12\x13\n\x05regex\x18\x01 \x01(\tB\x04\xe2\x41\x01\x01\x1a\x17\n\x15UniquenessExpectation\x1a\xc7\x02\n\x19StatisticRangeExpectation\x12l\n\tstatistic\x18\x01 \x01(\x0e\x32S.google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation.ColumnStatisticB\x04\xe2\x41\x01\x01\x12\x17\n\tmin_value\x18\x02 \x01(\tB\x04\xe2\x41\x01\x01\x12\x17\n\tmax_value\x18\x03 \x01(\tB\x04\xe2\x41\x01\x01\x12 \n\x12strict_min_enabled\x18\x04 \x01(\x08\x42\x04\xe2\x41\x01\x01\x12 \n\x12strict_max_enabled\x18\x05 \x01(\x08\x42\x04\xe2\x41\x01\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\x37\n\x17RowConditionExpectation\x12\x1c\n\x0esql_expression\x18\x01 \x01(\tB\x04\xe2\x41\x01\x01\x1a\x39\n\x19TableConditionExpectation\x12\x1c\n\x0esql_expression\x18\x01 \x01(\tB\x04\xe2\x41\x01\x01\x42\x0b\n\trule_type\"S\n\x17\x44\x61taQualityColumnResult\x12\x14\n\x06\x63olumn\x18\x01 \x01(\tB\x04\xe2\x41\x01\x03\x12\x18\n\x05score\x18\x02 \x01(\x02\x42\x04\xe2\x41\x01\x03H\x00\x88\x01\x01\x42\x08\n\x06_scoreB\xc4\x01\n\x1c\x63om.google.cloud.dataplex.v1B\x10\x44\x61taQualityProtoP\x01Z8cloud.google.com/go/dataplex/apiv1/dataplexpb;dataplexpb\xea\x41U\n\x1d\x62igquery.googleapis.com/Table\x12\x34projects/{project}/datasets/{dataset}/tables/{table}b\x06proto3"
|
13
13
|
|
14
14
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
15
15
|
|
16
16
|
begin
|
17
17
|
pool.add_serialized_file(descriptor_data)
|
18
|
-
rescue TypeError
|
18
|
+
rescue TypeError
|
19
19
|
# Compatibility code: will be removed in the next major version.
|
20
20
|
require 'google/protobuf/descriptor_pb'
|
21
21
|
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
@@ -157,20 +157,6 @@ module Google
|
|
157
157
|
config.universe_domain = @config.universe_domain
|
158
158
|
end
|
159
159
|
|
160
|
-
@location_client = Google::Cloud::Location::Locations::Client.new do |config|
|
161
|
-
config.credentials = credentials
|
162
|
-
config.quota_project = @quota_project_id
|
163
|
-
config.endpoint = @config.endpoint
|
164
|
-
config.universe_domain = @config.universe_domain
|
165
|
-
end
|
166
|
-
|
167
|
-
@iam_policy_client = Google::Iam::V1::IAMPolicy::Client.new do |config|
|
168
|
-
config.credentials = credentials
|
169
|
-
config.quota_project = @quota_project_id
|
170
|
-
config.endpoint = @config.endpoint
|
171
|
-
config.universe_domain = @config.universe_domain
|
172
|
-
end
|
173
|
-
|
174
160
|
@data_scan_service_stub = ::Gapic::ServiceStub.new(
|
175
161
|
::Google::Cloud::Dataplex::V1::DataScanService::Stub,
|
176
162
|
credentials: credentials,
|
@@ -181,6 +167,20 @@ module Google
|
|
181
167
|
interceptors: @config.interceptors,
|
182
168
|
channel_pool_config: @config.channel_pool
|
183
169
|
)
|
170
|
+
|
171
|
+
@location_client = Google::Cloud::Location::Locations::Client.new do |config|
|
172
|
+
config.credentials = credentials
|
173
|
+
config.quota_project = @quota_project_id
|
174
|
+
config.endpoint = @data_scan_service_stub.endpoint
|
175
|
+
config.universe_domain = @data_scan_service_stub.universe_domain
|
176
|
+
end
|
177
|
+
|
178
|
+
@iam_policy_client = Google::Iam::V1::IAMPolicy::Client.new do |config|
|
179
|
+
config.credentials = credentials
|
180
|
+
config.quota_project = @quota_project_id
|
181
|
+
config.endpoint = @data_scan_service_stub.endpoint
|
182
|
+
config.universe_domain = @data_scan_service_stub.universe_domain
|
183
|
+
end
|
184
184
|
end
|
185
185
|
|
186
186
|
##
|
@@ -154,28 +154,28 @@ module Google
|
|
154
154
|
config.universe_domain = @config.universe_domain
|
155
155
|
end
|
156
156
|
|
157
|
+
@data_scan_service_stub = ::Google::Cloud::Dataplex::V1::DataScanService::Rest::ServiceStub.new(
|
158
|
+
endpoint: @config.endpoint,
|
159
|
+
endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
|
160
|
+
universe_domain: @config.universe_domain,
|
161
|
+
credentials: credentials
|
162
|
+
)
|
163
|
+
|
157
164
|
@location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
|
158
165
|
config.credentials = credentials
|
159
166
|
config.quota_project = @quota_project_id
|
160
|
-
config.endpoint = @
|
161
|
-
config.universe_domain = @
|
167
|
+
config.endpoint = @data_scan_service_stub.endpoint
|
168
|
+
config.universe_domain = @data_scan_service_stub.universe_domain
|
162
169
|
config.bindings_override = @config.bindings_override
|
163
170
|
end
|
164
171
|
|
165
172
|
@iam_policy_client = Google::Iam::V1::IAMPolicy::Rest::Client.new do |config|
|
166
173
|
config.credentials = credentials
|
167
174
|
config.quota_project = @quota_project_id
|
168
|
-
config.endpoint = @
|
169
|
-
config.universe_domain = @
|
175
|
+
config.endpoint = @data_scan_service_stub.endpoint
|
176
|
+
config.universe_domain = @data_scan_service_stub.universe_domain
|
170
177
|
config.bindings_override = @config.bindings_override
|
171
178
|
end
|
172
|
-
|
173
|
-
@data_scan_service_stub = ::Google::Cloud::Dataplex::V1::DataScanService::Rest::ServiceStub.new(
|
174
|
-
endpoint: @config.endpoint,
|
175
|
-
endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
|
176
|
-
universe_domain: @config.universe_domain,
|
177
|
-
credentials: credentials
|
178
|
-
)
|
179
179
|
end
|
180
180
|
|
181
181
|
##
|
@@ -52,6 +52,15 @@ module Google
|
|
52
52
|
@client_stub.universe_domain
|
53
53
|
end
|
54
54
|
|
55
|
+
##
|
56
|
+
# The effective endpoint
|
57
|
+
#
|
58
|
+
# @return [String]
|
59
|
+
#
|
60
|
+
def endpoint
|
61
|
+
@client_stub.endpoint
|
62
|
+
end
|
63
|
+
|
55
64
|
##
|
56
65
|
# Baseline implementation for the create_data_scan REST call
|
57
66
|
#
|
@@ -16,13 +16,13 @@ require 'google/protobuf/field_mask_pb'
|
|
16
16
|
require 'google/protobuf/timestamp_pb'
|
17
17
|
|
18
18
|
|
19
|
-
descriptor_data = "\n,google/cloud/dataplex/v1/data_taxonomy.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/security.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\"\xb1\x04\n\x0c\x44\x61taTaxonomy\x12:\n\x04name\x18\x01 \x01(\tB,\xe0\x41\x03\xfa\x41&\n$dataplex.googleapis.com/DataTaxonomy\x12\x10\n\x03uid\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\x34\n\x0bupdate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x18\n\x0b\x64\x65scription\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12\x19\n\x0c\x64isplay_name\x18\x06 \x01(\tB\x03\xe0\x41\x01\x12G\n\x06labels\x18\x08 \x03(\x0b\x32\x32.google.cloud.dataplex.v1.DataTaxonomy.LabelsEntryB\x03\xe0\x41\x01\x12\x1c\n\x0f\x61ttribute_count\x18\t \x01(\x05\x42\x03\xe0\x41\x03\x12\x0c\n\x04\x65tag\x18\n \x01(\t\x12\x18\n\x0b\x63lass_count\x18\x0b \x01(\x05\x42\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:t\xea\x41q\n$dataplex.googleapis.com/DataTaxonomy\x12Iprojects/{project}/locations/{location}/dataTaxonomies/{data_taxonomy_id}\"\x94\x06\n\rDataAttribute\x12;\n\x04name\x18\x01 \x01(\tB-\xe0\x41\x03\xfa\x41\'\n%dataplex.googleapis.com/DataAttribute\x12\x10\n\x03uid\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\x34\n\x0bupdate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x18\n\x0b\x64\x65scription\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12\x19\n\x0c\x64isplay_name\x18\x06 \x01(\tB\x03\xe0\x41\x01\x12H\n\x06labels\x18\x07 \x03(\x0b\x32\x33.google.cloud.dataplex.v1.DataAttribute.LabelsEntryB\x03\xe0\x41\x01\x12@\n\tparent_id\x18\x08 \x01(\tB-\xe0\x41\x01\xfa\x41\'\n%dataplex.googleapis.com/DataAttribute\x12\x1c\n\x0f\x61ttribute_count\x18\t \x01(\x05\x42\x03\xe0\x41\x03\x12\x0c\n\x04\x65tag\x18\n \x01(\t\x12O\n\x14resource_access_spec\x18\x64 \x01(\x0b\x32,.google.cloud.dataplex.v1.ResourceAccessSpecB\x03\xe0\x41\x01\x12G\n\x10\x64\x61ta_access_spec\x18\x65 \x01(\x0b\x32(.google.cloud.dataplex.v1.DataAccessSpecB\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:\x91\x01\xea\x41\x8d\x01\n%dataplex.googleapis.com/DataAttribute\x12\x64projects/{project}/locations/{location}/dataTaxonomies/{dataTaxonomy}/attributes/{data_attribute_id}\"\xc7\x06\n\x14\x44\x61taAttributeBinding\x12\x42\n\x04name\x18\x01 \x01(\tB4\xe0\x41\x03\xfa\x41.\n,dataplex.googleapis.com/DataAttributeBinding\x12\x10\n\x03uid\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\x34\n\x0bupdate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x18\n\x0b\x64\x65scription\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12\x19\n\x0c\x64isplay_name\x18\x06 \x01(\tB\x03\xe0\x41\x01\x12O\n\x06labels\x18\x07 \x03(\x0b\x32:.google.cloud.dataplex.v1.DataAttributeBinding.LabelsEntryB\x03\xe0\x41\x01\x12\x0c\n\x04\x65tag\x18\x08 \x01(\t\x12\x1a\n\x08resource\x18\x64 \x01(\tB\x06\xe0\x41\x01\xe0\x41\x05H\x00\x12\x41\n\nattributes\x18n \x03(\tB-\xe0\x41\x01\xfa\x41\'\n%dataplex.googleapis.com/DataAttribute\x12G\n\x05paths\x18x \x03(\x0b\x32\x33.google.cloud.dataplex.v1.DataAttributeBinding.PathB\x03\xe0\x41\x01\x1a\\\n\x04Path\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x41\n\nattributes\x18\x02 \x03(\tB-\xe0\x41\x01\xfa\x41\'\n%dataplex.googleapis.com/DataAttribute\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:\x8d\x01\xea\x41\x89\x01\n,dataplex.googleapis.com/DataAttributeBinding\x12Yprojects/{project}/locations/{location}/dataAttributeBindings/{data_attribute_binding_id}B\x14\n\x12resource_reference\"\xd5\x01\n\x19\x43reateDataTaxonomyRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x1d\n\x10\x64\x61ta_taxonomy_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x42\n\rdata_taxonomy\x18\x03 \x01(\x0b\x32&.google.cloud.dataplex.v1.DataTaxonomyB\x03\xe0\x41\x02\x12\x1a\n\rvalidate_only\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\"\xb1\x01\n\x19UpdateDataTaxonomyRequest\x12\x34\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\x12\x42\n\rdata_taxonomy\x18\x02 \x01(\x0b\x32&.google.cloud.dataplex.v1.DataTaxonomyB\x03\xe0\x41\x02\x12\x1a\n\rvalidate_only\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\"T\n\x16GetDataTaxonomyRequest\x12:\n\x04name\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$dataplex.googleapis.com/DataTaxonomy\"\xb3\x01\n\x19ListDataTaxonomiesRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\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\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\x95\x01\n\x1aListDataTaxonomiesResponse\x12?\n\x0f\x64\x61ta_taxonomies\x18\x01 \x03(\x0b\x32&.google.cloud.dataplex.v1.DataTaxonomy\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x1d\n\x15unreachable_locations\x18\x03 \x03(\t\"j\n\x19\x44\x65leteDataTaxonomyRequest\x12:\n\x04name\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$dataplex.googleapis.com/DataTaxonomy\x12\x11\n\x04\x65tag\x18\x02 \x01(\tB\x03\xe0\x41\x01\"\xdc\x01\n\x1a\x43reateDataAttributeRequest\x12<\n\x06parent\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$dataplex.googleapis.com/DataTaxonomy\x12\x1e\n\x11\x64\x61ta_attribute_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x44\n\x0e\x64\x61ta_attribute\x18\x03 \x01(\x0b\x32\'.google.cloud.dataplex.v1.DataAttributeB\x03\xe0\x41\x02\x12\x1a\n\rvalidate_only\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\"\xb4\x01\n\x1aUpdateDataAttributeRequest\x12\x34\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\x12\x44\n\x0e\x64\x61ta_attribute\x18\x02 \x01(\x0b\x32\'.google.cloud.dataplex.v1.DataAttributeB\x03\xe0\x41\x02\x12\x1a\n\rvalidate_only\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\"V\n\x17GetDataAttributeRequest\x12;\n\x04name\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%dataplex.googleapis.com/DataAttribute\"\xb6\x01\n\x19ListDataAttributesRequest\x12<\n\x06parent\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$dataplex.googleapis.com/DataTaxonomy\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\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\x96\x01\n\x1aListDataAttributesResponse\x12@\n\x0f\x64\x61ta_attributes\x18\x01 \x03(\x0b\x32\'.google.cloud.dataplex.v1.DataAttribute\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x1d\n\x15unreachable_locations\x18\x03 \x03(\t\"l\n\x1a\x44\x65leteDataAttributeRequest\x12;\n\x04name\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%dataplex.googleapis.com/DataAttribute\x12\x11\n\x04\x65tag\x18\x02 \x01(\tB\x03\xe0\x41\x01\"\xf7\x01\n!CreateDataAttributeBindingRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12&\n\x19\x64\x61ta_attribute_binding_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12S\n\x16\x64\x61ta_attribute_binding\x18\x03 \x01(\x0b\x32..google.cloud.dataplex.v1.DataAttributeBindingB\x03\xe0\x41\x02\x12\x1a\n\rvalidate_only\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\"\xca\x01\n!UpdateDataAttributeBindingRequest\x12\x34\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\x12S\n\x16\x64\x61ta_attribute_binding\x18\x02 \x01(\x0b\x32..google.cloud.dataplex.v1.DataAttributeBindingB\x03\xe0\x41\x02\x12\x1a\n\rvalidate_only\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\"d\n\x1eGetDataAttributeBindingRequest\x12\x42\n\x04name\x18\x01 \x01(\tB4\xe0\x41\x02\xfa\x41.\n,dataplex.googleapis.com/DataAttributeBinding\"\xba\x01\n ListDataAttributeBindingsRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\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\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\xac\x01\n!ListDataAttributeBindingsResponse\x12O\n\x17\x64\x61ta_attribute_bindings\x18\x01 \x03(\x0b\x32..google.cloud.dataplex.v1.DataAttributeBinding\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x1d\n\x15unreachable_locations\x18\x03 \x03(\t\"z\n!DeleteDataAttributeBindingRequest\x12\x42\n\x04name\x18\x01 \x01(\tB4\xe0\x41\x02\xfa\x41.\n,dataplex.googleapis.com/DataAttributeBinding\x12\x11\n\x04\x65tag\x18\x02 \x01(\tB\x03\xe0\x41\x02\x32\x8b\x1d\n\x13\x44\x61taTaxonomyService\x12\x80\x02\n\x12\x43reateDataTaxonomy\x12\x33.google.cloud.dataplex.v1.CreateDataTaxonomyRequest\x1a\x1d.google.longrunning.Operation\"\x95\x01\x82\xd3\xe4\x93\x02\x43\"2/v1/{parent=projects/*/locations/*}/dataTaxonomies:\rdata_taxonomy\xda\x41%parent,data_taxonomy,data_taxonomy_id\xca\x41!\n\x0c\x44\x61taTaxonomy\x12\x11OperationMetadata\x12\x82\x02\n\x12UpdateDataTaxonomy\x12\x33.google.cloud.dataplex.v1.UpdateDataTaxonomyRequest\x1a\x1d.google.longrunning.Operation\"\x97\x01\x82\xd3\xe4\x93\x02Q2@/v1/{data_taxonomy.name=projects/*/locations/*/dataTaxonomies/*}:\rdata_taxonomy\xda\x41\x19\x64\x61ta_taxonomy,update_mask\xca\x41!\n\x0c\x44\x61taTaxonomy\x12\x11OperationMetadata\x12\xd8\x01\n\x12\x44\x65leteDataTaxonomy\x12\x33.google.cloud.dataplex.v1.DeleteDataTaxonomyRequest\x1a\x1d.google.longrunning.Operation\"n\x82\xd3\xe4\x93\x02\x34*2/v1/{name=projects/*/locations/*/dataTaxonomies/*}\xda\x41\x04name\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\x12\xc4\x01\n\x12ListDataTaxonomies\x12\x33.google.cloud.dataplex.v1.ListDataTaxonomiesRequest\x1a\x34.google.cloud.dataplex.v1.ListDataTaxonomiesResponse\"C\x82\xd3\xe4\x93\x02\x34\x12\x32/v1/{parent=projects/*/locations/*}/dataTaxonomies\xda\x41\x06parent\x12\xae\x01\n\x0fGetDataTaxonomy\x12\x30.google.cloud.dataplex.v1.GetDataTaxonomyRequest\x1a&.google.cloud.dataplex.v1.DataTaxonomy\"A\x82\xd3\xe4\x93\x02\x34\x12\x32/v1/{name=projects/*/locations/*/dataTaxonomies/*}\xda\x41\x04name\x12\xba\x02\n\x1a\x43reateDataAttributeBinding\x12;.google.cloud.dataplex.v1.CreateDataAttributeBindingRequest\x1a\x1d.google.longrunning.Operation\"\xbf\x01\x82\xd3\xe4\x93\x02S\"9/v1/{parent=projects/*/locations/*}/dataAttributeBindings:\x16\x64\x61ta_attribute_binding\xda\x41\x37parent,data_attribute_binding,data_attribute_binding_id\xca\x41)\n\x14\x44\x61taAttributeBinding\x12\x11OperationMetadata\x12\xbc\x02\n\x1aUpdateDataAttributeBinding\x12;.google.cloud.dataplex.v1.UpdateDataAttributeBindingRequest\x1a\x1d.google.longrunning.Operation\"\xc1\x01\x82\xd3\xe4\x93\x02j2P/v1/{data_attribute_binding.name=projects/*/locations/*/dataAttributeBindings/*}:\x16\x64\x61ta_attribute_binding\xda\x41\"data_attribute_binding,update_mask\xca\x41)\n\x14\x44\x61taAttributeBinding\x12\x11OperationMetadata\x12\xef\x01\n\x1a\x44\x65leteDataAttributeBinding\x12;.google.cloud.dataplex.v1.DeleteDataAttributeBindingRequest\x1a\x1d.google.longrunning.Operation\"u\x82\xd3\xe4\x93\x02;*9/v1/{name=projects/*/locations/*/dataAttributeBindings/*}\xda\x41\x04name\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\x12\xe0\x01\n\x19ListDataAttributeBindings\x12:.google.cloud.dataplex.v1.ListDataAttributeBindingsRequest\x1a;.google.cloud.dataplex.v1.ListDataAttributeBindingsResponse\"J\x82\xd3\xe4\x93\x02;\x12\x39/v1/{parent=projects/*/locations/*}/dataAttributeBindings\xda\x41\x06parent\x12\xcd\x01\n\x17GetDataAttributeBinding\x12\x38.google.cloud.dataplex.v1.GetDataAttributeBindingRequest\x1a..google.cloud.dataplex.v1.DataAttributeBinding\"H\x82\xd3\xe4\x93\x02;\x12\x39/v1/{name=projects/*/locations/*/dataAttributeBindings/*}\xda\x41\x04name\x12\x93\x02\n\x13\x43reateDataAttribute\x12\x34.google.cloud.dataplex.v1.CreateDataAttributeRequest\x1a\x1d.google.longrunning.Operation\"\xa6\x01\x82\xd3\xe4\x93\x02Q\"?/v1/{parent=projects/*/locations/*/dataTaxonomies/*}/attributes:\x0e\x64\x61ta_attribute\xda\x41\'parent,data_attribute,data_attribute_id\xca\x41\"\n\rDataAttribute\x12\x11OperationMetadata\x12\x95\x02\n\x13UpdateDataAttribute\x12\x34.google.cloud.dataplex.v1.UpdateDataAttributeRequest\x1a\x1d.google.longrunning.Operation\"\xa8\x01\x82\xd3\xe4\x93\x02`2N/v1/{data_attribute.name=projects/*/locations/*/dataTaxonomies/*/attributes/*}:\x0e\x64\x61ta_attribute\xda\x41\x1a\x64\x61ta_attribute,update_mask\xca\x41\"\n\rDataAttribute\x12\x11OperationMetadata\x12\xe7\x01\n\x13\x44\x65leteDataAttribute\x12\x34.google.cloud.dataplex.v1.DeleteDataAttributeRequest\x1a\x1d.google.longrunning.Operation\"{\x82\xd3\xe4\x93\x02\x41*?/v1/{name=projects/*/locations/*/dataTaxonomies/*/attributes/*}\xda\x41\x04name\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\x12\xd1\x01\n\x12ListDataAttributes\x12\x33.google.cloud.dataplex.v1.ListDataAttributesRequest\x1a\x34.google.cloud.dataplex.v1.ListDataAttributesResponse\"P\x82\xd3\xe4\x93\x02\x41\x12?/v1/{parent=projects/*/locations/*/dataTaxonomies/*}/attributes\xda\x41\x06parent\x12\xbe\x01\n\x10GetDataAttribute\x12\x31.google.cloud.dataplex.v1.GetDataAttributeRequest\x1a\'.google.cloud.dataplex.v1.DataAttribute\"N\x82\xd3\xe4\x93\x02\x41\x12?/v1/{name=projects/*/locations/*/dataTaxonomies/*/attributes/*}\xda\x41\x04name\x1aK\xca\x41\x17\x64\x61taplex.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformBm\n\x1c\x63om.google.cloud.dataplex.v1B\x11\x44\x61taTaxonomyProtoP\x01Z8cloud.google.com/go/dataplex/apiv1/dataplexpb;dataplexpbb\x06proto3"
|
19
|
+
descriptor_data = "\n,google/cloud/dataplex/v1/data_taxonomy.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/security.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\"\xba\x04\n\x0c\x44\x61taTaxonomy\x12;\n\x04name\x18\x01 \x01(\tB-\xe2\x41\x01\x03\xfa\x41&\n$dataplex.googleapis.com/DataTaxonomy\x12\x11\n\x03uid\x18\x02 \x01(\tB\x04\xe2\x41\x01\x03\x12\x35\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x04\xe2\x41\x01\x03\x12\x35\n\x0bupdate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x04\xe2\x41\x01\x03\x12\x19\n\x0b\x64\x65scription\x18\x05 \x01(\tB\x04\xe2\x41\x01\x01\x12\x1a\n\x0c\x64isplay_name\x18\x06 \x01(\tB\x04\xe2\x41\x01\x01\x12H\n\x06labels\x18\x08 \x03(\x0b\x32\x32.google.cloud.dataplex.v1.DataTaxonomy.LabelsEntryB\x04\xe2\x41\x01\x01\x12\x1d\n\x0f\x61ttribute_count\x18\t \x01(\x05\x42\x04\xe2\x41\x01\x03\x12\x0c\n\x04\x65tag\x18\n \x01(\t\x12\x19\n\x0b\x63lass_count\x18\x0b \x01(\x05\x42\x04\xe2\x41\x01\x03\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:t\xea\x41q\n$dataplex.googleapis.com/DataTaxonomy\x12Iprojects/{project}/locations/{location}/dataTaxonomies/{data_taxonomy_id}\"\x9f\x06\n\rDataAttribute\x12<\n\x04name\x18\x01 \x01(\tB.\xe2\x41\x01\x03\xfa\x41\'\n%dataplex.googleapis.com/DataAttribute\x12\x11\n\x03uid\x18\x02 \x01(\tB\x04\xe2\x41\x01\x03\x12\x35\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x04\xe2\x41\x01\x03\x12\x35\n\x0bupdate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x04\xe2\x41\x01\x03\x12\x19\n\x0b\x64\x65scription\x18\x05 \x01(\tB\x04\xe2\x41\x01\x01\x12\x1a\n\x0c\x64isplay_name\x18\x06 \x01(\tB\x04\xe2\x41\x01\x01\x12I\n\x06labels\x18\x07 \x03(\x0b\x32\x33.google.cloud.dataplex.v1.DataAttribute.LabelsEntryB\x04\xe2\x41\x01\x01\x12\x41\n\tparent_id\x18\x08 \x01(\tB.\xe2\x41\x01\x01\xfa\x41\'\n%dataplex.googleapis.com/DataAttribute\x12\x1d\n\x0f\x61ttribute_count\x18\t \x01(\x05\x42\x04\xe2\x41\x01\x03\x12\x0c\n\x04\x65tag\x18\n \x01(\t\x12P\n\x14resource_access_spec\x18\x64 \x01(\x0b\x32,.google.cloud.dataplex.v1.ResourceAccessSpecB\x04\xe2\x41\x01\x01\x12H\n\x10\x64\x61ta_access_spec\x18\x65 \x01(\x0b\x32(.google.cloud.dataplex.v1.DataAccessSpecB\x04\xe2\x41\x01\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:\x91\x01\xea\x41\x8d\x01\n%dataplex.googleapis.com/DataAttribute\x12\x64projects/{project}/locations/{location}/dataTaxonomies/{dataTaxonomy}/attributes/{data_attribute_id}\"\xd1\x06\n\x14\x44\x61taAttributeBinding\x12\x43\n\x04name\x18\x01 \x01(\tB5\xe2\x41\x01\x03\xfa\x41.\n,dataplex.googleapis.com/DataAttributeBinding\x12\x11\n\x03uid\x18\x02 \x01(\tB\x04\xe2\x41\x01\x03\x12\x35\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x04\xe2\x41\x01\x03\x12\x35\n\x0bupdate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x04\xe2\x41\x01\x03\x12\x19\n\x0b\x64\x65scription\x18\x05 \x01(\tB\x04\xe2\x41\x01\x01\x12\x1a\n\x0c\x64isplay_name\x18\x06 \x01(\tB\x04\xe2\x41\x01\x01\x12P\n\x06labels\x18\x07 \x03(\x0b\x32:.google.cloud.dataplex.v1.DataAttributeBinding.LabelsEntryB\x04\xe2\x41\x01\x01\x12\x0c\n\x04\x65tag\x18\x08 \x01(\t\x12\x19\n\x08resource\x18\x64 \x01(\tB\x05\xe2\x41\x02\x01\x05H\x00\x12\x42\n\nattributes\x18n \x03(\tB.\xe2\x41\x01\x01\xfa\x41\'\n%dataplex.googleapis.com/DataAttribute\x12H\n\x05paths\x18x \x03(\x0b\x32\x33.google.cloud.dataplex.v1.DataAttributeBinding.PathB\x04\xe2\x41\x01\x01\x1a^\n\x04Path\x12\x12\n\x04name\x18\x01 \x01(\tB\x04\xe2\x41\x01\x02\x12\x42\n\nattributes\x18\x02 \x03(\tB.\xe2\x41\x01\x01\xfa\x41\'\n%dataplex.googleapis.com/DataAttribute\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:\x8d\x01\xea\x41\x89\x01\n,dataplex.googleapis.com/DataAttributeBinding\x12Yprojects/{project}/locations/{location}/dataAttributeBindings/{data_attribute_binding_id}B\x14\n\x12resource_reference\"\xd9\x01\n\x19\x43reateDataTaxonomyRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe2\x41\x01\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x1e\n\x10\x64\x61ta_taxonomy_id\x18\x02 \x01(\tB\x04\xe2\x41\x01\x02\x12\x43\n\rdata_taxonomy\x18\x03 \x01(\x0b\x32&.google.cloud.dataplex.v1.DataTaxonomyB\x04\xe2\x41\x01\x02\x12\x1b\n\rvalidate_only\x18\x04 \x01(\x08\x42\x04\xe2\x41\x01\x01\"\xb4\x01\n\x19UpdateDataTaxonomyRequest\x12\x35\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x04\xe2\x41\x01\x02\x12\x43\n\rdata_taxonomy\x18\x02 \x01(\x0b\x32&.google.cloud.dataplex.v1.DataTaxonomyB\x04\xe2\x41\x01\x02\x12\x1b\n\rvalidate_only\x18\x03 \x01(\x08\x42\x04\xe2\x41\x01\x01\"U\n\x16GetDataTaxonomyRequest\x12;\n\x04name\x18\x01 \x01(\tB-\xe2\x41\x01\x02\xfa\x41&\n$dataplex.googleapis.com/DataTaxonomy\"\xb8\x01\n\x19ListDataTaxonomiesRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe2\x41\x01\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x17\n\tpage_size\x18\x02 \x01(\x05\x42\x04\xe2\x41\x01\x01\x12\x18\n\npage_token\x18\x03 \x01(\tB\x04\xe2\x41\x01\x01\x12\x14\n\x06\x66ilter\x18\x04 \x01(\tB\x04\xe2\x41\x01\x01\x12\x16\n\x08order_by\x18\x05 \x01(\tB\x04\xe2\x41\x01\x01\"\x95\x01\n\x1aListDataTaxonomiesResponse\x12?\n\x0f\x64\x61ta_taxonomies\x18\x01 \x03(\x0b\x32&.google.cloud.dataplex.v1.DataTaxonomy\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x1d\n\x15unreachable_locations\x18\x03 \x03(\t\"l\n\x19\x44\x65leteDataTaxonomyRequest\x12;\n\x04name\x18\x01 \x01(\tB-\xe2\x41\x01\x02\xfa\x41&\n$dataplex.googleapis.com/DataTaxonomy\x12\x12\n\x04\x65tag\x18\x02 \x01(\tB\x04\xe2\x41\x01\x01\"\xe0\x01\n\x1a\x43reateDataAttributeRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe2\x41\x01\x02\xfa\x41&\n$dataplex.googleapis.com/DataTaxonomy\x12\x1f\n\x11\x64\x61ta_attribute_id\x18\x02 \x01(\tB\x04\xe2\x41\x01\x02\x12\x45\n\x0e\x64\x61ta_attribute\x18\x03 \x01(\x0b\x32\'.google.cloud.dataplex.v1.DataAttributeB\x04\xe2\x41\x01\x02\x12\x1b\n\rvalidate_only\x18\x04 \x01(\x08\x42\x04\xe2\x41\x01\x01\"\xb7\x01\n\x1aUpdateDataAttributeRequest\x12\x35\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x04\xe2\x41\x01\x02\x12\x45\n\x0e\x64\x61ta_attribute\x18\x02 \x01(\x0b\x32\'.google.cloud.dataplex.v1.DataAttributeB\x04\xe2\x41\x01\x02\x12\x1b\n\rvalidate_only\x18\x03 \x01(\x08\x42\x04\xe2\x41\x01\x01\"W\n\x17GetDataAttributeRequest\x12<\n\x04name\x18\x01 \x01(\tB.\xe2\x41\x01\x02\xfa\x41\'\n%dataplex.googleapis.com/DataAttribute\"\xbb\x01\n\x19ListDataAttributesRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe2\x41\x01\x02\xfa\x41&\n$dataplex.googleapis.com/DataTaxonomy\x12\x17\n\tpage_size\x18\x02 \x01(\x05\x42\x04\xe2\x41\x01\x01\x12\x18\n\npage_token\x18\x03 \x01(\tB\x04\xe2\x41\x01\x01\x12\x14\n\x06\x66ilter\x18\x04 \x01(\tB\x04\xe2\x41\x01\x01\x12\x16\n\x08order_by\x18\x05 \x01(\tB\x04\xe2\x41\x01\x01\"\x96\x01\n\x1aListDataAttributesResponse\x12@\n\x0f\x64\x61ta_attributes\x18\x01 \x03(\x0b\x32\'.google.cloud.dataplex.v1.DataAttribute\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x1d\n\x15unreachable_locations\x18\x03 \x03(\t\"n\n\x1a\x44\x65leteDataAttributeRequest\x12<\n\x04name\x18\x01 \x01(\tB.\xe2\x41\x01\x02\xfa\x41\'\n%dataplex.googleapis.com/DataAttribute\x12\x12\n\x04\x65tag\x18\x02 \x01(\tB\x04\xe2\x41\x01\x01\"\xfb\x01\n!CreateDataAttributeBindingRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe2\x41\x01\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\'\n\x19\x64\x61ta_attribute_binding_id\x18\x02 \x01(\tB\x04\xe2\x41\x01\x02\x12T\n\x16\x64\x61ta_attribute_binding\x18\x03 \x01(\x0b\x32..google.cloud.dataplex.v1.DataAttributeBindingB\x04\xe2\x41\x01\x02\x12\x1b\n\rvalidate_only\x18\x04 \x01(\x08\x42\x04\xe2\x41\x01\x01\"\xcd\x01\n!UpdateDataAttributeBindingRequest\x12\x35\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x04\xe2\x41\x01\x02\x12T\n\x16\x64\x61ta_attribute_binding\x18\x02 \x01(\x0b\x32..google.cloud.dataplex.v1.DataAttributeBindingB\x04\xe2\x41\x01\x02\x12\x1b\n\rvalidate_only\x18\x03 \x01(\x08\x42\x04\xe2\x41\x01\x01\"e\n\x1eGetDataAttributeBindingRequest\x12\x43\n\x04name\x18\x01 \x01(\tB5\xe2\x41\x01\x02\xfa\x41.\n,dataplex.googleapis.com/DataAttributeBinding\"\xbf\x01\n ListDataAttributeBindingsRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe2\x41\x01\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x17\n\tpage_size\x18\x02 \x01(\x05\x42\x04\xe2\x41\x01\x01\x12\x18\n\npage_token\x18\x03 \x01(\tB\x04\xe2\x41\x01\x01\x12\x14\n\x06\x66ilter\x18\x04 \x01(\tB\x04\xe2\x41\x01\x01\x12\x16\n\x08order_by\x18\x05 \x01(\tB\x04\xe2\x41\x01\x01\"\xac\x01\n!ListDataAttributeBindingsResponse\x12O\n\x17\x64\x61ta_attribute_bindings\x18\x01 \x03(\x0b\x32..google.cloud.dataplex.v1.DataAttributeBinding\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x1d\n\x15unreachable_locations\x18\x03 \x03(\t\"|\n!DeleteDataAttributeBindingRequest\x12\x43\n\x04name\x18\x01 \x01(\tB5\xe2\x41\x01\x02\xfa\x41.\n,dataplex.googleapis.com/DataAttributeBinding\x12\x12\n\x04\x65tag\x18\x02 \x01(\tB\x04\xe2\x41\x01\x02\x32\x8b\x1d\n\x13\x44\x61taTaxonomyService\x12\x80\x02\n\x12\x43reateDataTaxonomy\x12\x33.google.cloud.dataplex.v1.CreateDataTaxonomyRequest\x1a\x1d.google.longrunning.Operation\"\x95\x01\xca\x41!\n\x0c\x44\x61taTaxonomy\x12\x11OperationMetadata\xda\x41%parent,data_taxonomy,data_taxonomy_id\x82\xd3\xe4\x93\x02\x43\"2/v1/{parent=projects/*/locations/*}/dataTaxonomies:\rdata_taxonomy\x12\x82\x02\n\x12UpdateDataTaxonomy\x12\x33.google.cloud.dataplex.v1.UpdateDataTaxonomyRequest\x1a\x1d.google.longrunning.Operation\"\x97\x01\xca\x41!\n\x0c\x44\x61taTaxonomy\x12\x11OperationMetadata\xda\x41\x19\x64\x61ta_taxonomy,update_mask\x82\xd3\xe4\x93\x02Q2@/v1/{data_taxonomy.name=projects/*/locations/*/dataTaxonomies/*}:\rdata_taxonomy\x12\xd8\x01\n\x12\x44\x65leteDataTaxonomy\x12\x33.google.cloud.dataplex.v1.DeleteDataTaxonomyRequest\x1a\x1d.google.longrunning.Operation\"n\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02\x34*2/v1/{name=projects/*/locations/*/dataTaxonomies/*}\x12\xc4\x01\n\x12ListDataTaxonomies\x12\x33.google.cloud.dataplex.v1.ListDataTaxonomiesRequest\x1a\x34.google.cloud.dataplex.v1.ListDataTaxonomiesResponse\"C\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x34\x12\x32/v1/{parent=projects/*/locations/*}/dataTaxonomies\x12\xae\x01\n\x0fGetDataTaxonomy\x12\x30.google.cloud.dataplex.v1.GetDataTaxonomyRequest\x1a&.google.cloud.dataplex.v1.DataTaxonomy\"A\xda\x41\x04name\x82\xd3\xe4\x93\x02\x34\x12\x32/v1/{name=projects/*/locations/*/dataTaxonomies/*}\x12\xba\x02\n\x1a\x43reateDataAttributeBinding\x12;.google.cloud.dataplex.v1.CreateDataAttributeBindingRequest\x1a\x1d.google.longrunning.Operation\"\xbf\x01\xca\x41)\n\x14\x44\x61taAttributeBinding\x12\x11OperationMetadata\xda\x41\x37parent,data_attribute_binding,data_attribute_binding_id\x82\xd3\xe4\x93\x02S\"9/v1/{parent=projects/*/locations/*}/dataAttributeBindings:\x16\x64\x61ta_attribute_binding\x12\xbc\x02\n\x1aUpdateDataAttributeBinding\x12;.google.cloud.dataplex.v1.UpdateDataAttributeBindingRequest\x1a\x1d.google.longrunning.Operation\"\xc1\x01\xca\x41)\n\x14\x44\x61taAttributeBinding\x12\x11OperationMetadata\xda\x41\"data_attribute_binding,update_mask\x82\xd3\xe4\x93\x02j2P/v1/{data_attribute_binding.name=projects/*/locations/*/dataAttributeBindings/*}:\x16\x64\x61ta_attribute_binding\x12\xef\x01\n\x1a\x44\x65leteDataAttributeBinding\x12;.google.cloud.dataplex.v1.DeleteDataAttributeBindingRequest\x1a\x1d.google.longrunning.Operation\"u\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02;*9/v1/{name=projects/*/locations/*/dataAttributeBindings/*}\x12\xe0\x01\n\x19ListDataAttributeBindings\x12:.google.cloud.dataplex.v1.ListDataAttributeBindingsRequest\x1a;.google.cloud.dataplex.v1.ListDataAttributeBindingsResponse\"J\xda\x41\x06parent\x82\xd3\xe4\x93\x02;\x12\x39/v1/{parent=projects/*/locations/*}/dataAttributeBindings\x12\xcd\x01\n\x17GetDataAttributeBinding\x12\x38.google.cloud.dataplex.v1.GetDataAttributeBindingRequest\x1a..google.cloud.dataplex.v1.DataAttributeBinding\"H\xda\x41\x04name\x82\xd3\xe4\x93\x02;\x12\x39/v1/{name=projects/*/locations/*/dataAttributeBindings/*}\x12\x93\x02\n\x13\x43reateDataAttribute\x12\x34.google.cloud.dataplex.v1.CreateDataAttributeRequest\x1a\x1d.google.longrunning.Operation\"\xa6\x01\xca\x41\"\n\rDataAttribute\x12\x11OperationMetadata\xda\x41\'parent,data_attribute,data_attribute_id\x82\xd3\xe4\x93\x02Q\"?/v1/{parent=projects/*/locations/*/dataTaxonomies/*}/attributes:\x0e\x64\x61ta_attribute\x12\x95\x02\n\x13UpdateDataAttribute\x12\x34.google.cloud.dataplex.v1.UpdateDataAttributeRequest\x1a\x1d.google.longrunning.Operation\"\xa8\x01\xca\x41\"\n\rDataAttribute\x12\x11OperationMetadata\xda\x41\x1a\x64\x61ta_attribute,update_mask\x82\xd3\xe4\x93\x02`2N/v1/{data_attribute.name=projects/*/locations/*/dataTaxonomies/*/attributes/*}:\x0e\x64\x61ta_attribute\x12\xe7\x01\n\x13\x44\x65leteDataAttribute\x12\x34.google.cloud.dataplex.v1.DeleteDataAttributeRequest\x1a\x1d.google.longrunning.Operation\"{\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02\x41*?/v1/{name=projects/*/locations/*/dataTaxonomies/*/attributes/*}\x12\xd1\x01\n\x12ListDataAttributes\x12\x33.google.cloud.dataplex.v1.ListDataAttributesRequest\x1a\x34.google.cloud.dataplex.v1.ListDataAttributesResponse\"P\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x41\x12?/v1/{parent=projects/*/locations/*/dataTaxonomies/*}/attributes\x12\xbe\x01\n\x10GetDataAttribute\x12\x31.google.cloud.dataplex.v1.GetDataAttributeRequest\x1a\'.google.cloud.dataplex.v1.DataAttribute\"N\xda\x41\x04name\x82\xd3\xe4\x93\x02\x41\x12?/v1/{name=projects/*/locations/*/dataTaxonomies/*/attributes/*}\x1aK\xca\x41\x17\x64\x61taplex.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformBm\n\x1c\x63om.google.cloud.dataplex.v1B\x11\x44\x61taTaxonomyProtoP\x01Z8cloud.google.com/go/dataplex/apiv1/dataplexpb;dataplexpbb\x06proto3"
|
20
20
|
|
21
21
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
22
22
|
|
23
23
|
begin
|
24
24
|
pool.add_serialized_file(descriptor_data)
|
25
|
-
rescue TypeError
|
25
|
+
rescue TypeError
|
26
26
|
# Compatibility code: will be removed in the next major version.
|
27
27
|
require 'google/protobuf/descriptor_pb'
|
28
28
|
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
@@ -156,20 +156,6 @@ module Google
|
|
156
156
|
config.universe_domain = @config.universe_domain
|
157
157
|
end
|
158
158
|
|
159
|
-
@location_client = Google::Cloud::Location::Locations::Client.new do |config|
|
160
|
-
config.credentials = credentials
|
161
|
-
config.quota_project = @quota_project_id
|
162
|
-
config.endpoint = @config.endpoint
|
163
|
-
config.universe_domain = @config.universe_domain
|
164
|
-
end
|
165
|
-
|
166
|
-
@iam_policy_client = Google::Iam::V1::IAMPolicy::Client.new do |config|
|
167
|
-
config.credentials = credentials
|
168
|
-
config.quota_project = @quota_project_id
|
169
|
-
config.endpoint = @config.endpoint
|
170
|
-
config.universe_domain = @config.universe_domain
|
171
|
-
end
|
172
|
-
|
173
159
|
@data_taxonomy_service_stub = ::Gapic::ServiceStub.new(
|
174
160
|
::Google::Cloud::Dataplex::V1::DataTaxonomyService::Stub,
|
175
161
|
credentials: credentials,
|
@@ -180,6 +166,20 @@ module Google
|
|
180
166
|
interceptors: @config.interceptors,
|
181
167
|
channel_pool_config: @config.channel_pool
|
182
168
|
)
|
169
|
+
|
170
|
+
@location_client = Google::Cloud::Location::Locations::Client.new do |config|
|
171
|
+
config.credentials = credentials
|
172
|
+
config.quota_project = @quota_project_id
|
173
|
+
config.endpoint = @data_taxonomy_service_stub.endpoint
|
174
|
+
config.universe_domain = @data_taxonomy_service_stub.universe_domain
|
175
|
+
end
|
176
|
+
|
177
|
+
@iam_policy_client = Google::Iam::V1::IAMPolicy::Client.new do |config|
|
178
|
+
config.credentials = credentials
|
179
|
+
config.quota_project = @quota_project_id
|
180
|
+
config.endpoint = @data_taxonomy_service_stub.endpoint
|
181
|
+
config.universe_domain = @data_taxonomy_service_stub.universe_domain
|
182
|
+
end
|
183
183
|
end
|
184
184
|
|
185
185
|
##
|
@@ -153,28 +153,28 @@ module Google
|
|
153
153
|
config.universe_domain = @config.universe_domain
|
154
154
|
end
|
155
155
|
|
156
|
+
@data_taxonomy_service_stub = ::Google::Cloud::Dataplex::V1::DataTaxonomyService::Rest::ServiceStub.new(
|
157
|
+
endpoint: @config.endpoint,
|
158
|
+
endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
|
159
|
+
universe_domain: @config.universe_domain,
|
160
|
+
credentials: credentials
|
161
|
+
)
|
162
|
+
|
156
163
|
@location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
|
157
164
|
config.credentials = credentials
|
158
165
|
config.quota_project = @quota_project_id
|
159
|
-
config.endpoint = @
|
160
|
-
config.universe_domain = @
|
166
|
+
config.endpoint = @data_taxonomy_service_stub.endpoint
|
167
|
+
config.universe_domain = @data_taxonomy_service_stub.universe_domain
|
161
168
|
config.bindings_override = @config.bindings_override
|
162
169
|
end
|
163
170
|
|
164
171
|
@iam_policy_client = Google::Iam::V1::IAMPolicy::Rest::Client.new do |config|
|
165
172
|
config.credentials = credentials
|
166
173
|
config.quota_project = @quota_project_id
|
167
|
-
config.endpoint = @
|
168
|
-
config.universe_domain = @
|
174
|
+
config.endpoint = @data_taxonomy_service_stub.endpoint
|
175
|
+
config.universe_domain = @data_taxonomy_service_stub.universe_domain
|
169
176
|
config.bindings_override = @config.bindings_override
|
170
177
|
end
|
171
|
-
|
172
|
-
@data_taxonomy_service_stub = ::Google::Cloud::Dataplex::V1::DataTaxonomyService::Rest::ServiceStub.new(
|
173
|
-
endpoint: @config.endpoint,
|
174
|
-
endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
|
175
|
-
universe_domain: @config.universe_domain,
|
176
|
-
credentials: credentials
|
177
|
-
)
|
178
178
|
end
|
179
179
|
|
180
180
|
##
|
@@ -52,6 +52,15 @@ module Google
|
|
52
52
|
@client_stub.universe_domain
|
53
53
|
end
|
54
54
|
|
55
|
+
##
|
56
|
+
# The effective endpoint
|
57
|
+
#
|
58
|
+
# @return [String]
|
59
|
+
#
|
60
|
+
def endpoint
|
61
|
+
@client_stub.endpoint
|
62
|
+
end
|
63
|
+
|
55
64
|
##
|
56
65
|
# Baseline implementation for the create_data_taxonomy REST call
|
57
66
|
#
|
@@ -266,20 +266,6 @@ module Google
|
|
266
266
|
config.universe_domain = @config.universe_domain
|
267
267
|
end
|
268
268
|
|
269
|
-
@location_client = Google::Cloud::Location::Locations::Client.new do |config|
|
270
|
-
config.credentials = credentials
|
271
|
-
config.quota_project = @quota_project_id
|
272
|
-
config.endpoint = @config.endpoint
|
273
|
-
config.universe_domain = @config.universe_domain
|
274
|
-
end
|
275
|
-
|
276
|
-
@iam_policy_client = Google::Iam::V1::IAMPolicy::Client.new do |config|
|
277
|
-
config.credentials = credentials
|
278
|
-
config.quota_project = @quota_project_id
|
279
|
-
config.endpoint = @config.endpoint
|
280
|
-
config.universe_domain = @config.universe_domain
|
281
|
-
end
|
282
|
-
|
283
269
|
@dataplex_service_stub = ::Gapic::ServiceStub.new(
|
284
270
|
::Google::Cloud::Dataplex::V1::DataplexService::Stub,
|
285
271
|
credentials: credentials,
|
@@ -290,6 +276,20 @@ module Google
|
|
290
276
|
interceptors: @config.interceptors,
|
291
277
|
channel_pool_config: @config.channel_pool
|
292
278
|
)
|
279
|
+
|
280
|
+
@location_client = Google::Cloud::Location::Locations::Client.new do |config|
|
281
|
+
config.credentials = credentials
|
282
|
+
config.quota_project = @quota_project_id
|
283
|
+
config.endpoint = @dataplex_service_stub.endpoint
|
284
|
+
config.universe_domain = @dataplex_service_stub.universe_domain
|
285
|
+
end
|
286
|
+
|
287
|
+
@iam_policy_client = Google::Iam::V1::IAMPolicy::Client.new do |config|
|
288
|
+
config.credentials = credentials
|
289
|
+
config.quota_project = @quota_project_id
|
290
|
+
config.endpoint = @dataplex_service_stub.endpoint
|
291
|
+
config.universe_domain = @dataplex_service_stub.universe_domain
|
292
|
+
end
|
293
293
|
end
|
294
294
|
|
295
295
|
##
|