google-cloud-data_catalog-v1 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.yardopts +12 -0
- data/AUTHENTICATION.md +169 -0
- data/LICENSE.md +203 -0
- data/README.md +24 -0
- data/lib/google-cloud-data_catalog-v1.rb +1 -0
- data/lib/google/cloud/common_resources_pb.rb +15 -0
- data/lib/google/cloud/data_catalog/v1.rb +19 -0
- data/lib/google/cloud/data_catalog/v1/data_catalog.rb +20 -0
- data/lib/google/cloud/data_catalog/v1/data_catalog/client.rb +2639 -0
- data/lib/google/cloud/data_catalog/v1/data_catalog/credentials.rb +51 -0
- data/lib/google/cloud/data_catalog/v1/data_catalog/paths.rb +136 -0
- data/lib/google/cloud/data_catalog/v1/version.rb +28 -0
- data/lib/google/cloud/datacatalog/v1/common_pb.rb +24 -0
- data/lib/google/cloud/datacatalog/v1/datacatalog_pb.rb +226 -0
- data/lib/google/cloud/datacatalog/v1/datacatalog_services_pb.rb +222 -0
- data/lib/google/cloud/datacatalog/v1/gcs_fileset_spec_pb.rb +31 -0
- data/lib/google/cloud/datacatalog/v1/schema_pb.rb +31 -0
- data/lib/google/cloud/datacatalog/v1/search_pb.rb +39 -0
- data/lib/google/cloud/datacatalog/v1/table_spec_pb.rb +48 -0
- data/lib/google/cloud/datacatalog/v1/tags_pb.rb +84 -0
- data/lib/google/cloud/datacatalog/v1/timestamps_pb.rb +26 -0
- data/proto_docs/README.md +4 -0
- data/proto_docs/google/api/field_behavior.rb +59 -0
- data/proto_docs/google/api/resource.rb +247 -0
- data/proto_docs/google/cloud/datacatalog/v1/common.rb +39 -0
- data/proto_docs/google/cloud/datacatalog/v1/datacatalog.rb +748 -0
- data/proto_docs/google/cloud/datacatalog/v1/gcs_fileset_spec.rb +79 -0
- data/proto_docs/google/cloud/datacatalog/v1/schema.rb +60 -0
- data/proto_docs/google/cloud/datacatalog/v1/search.rb +80 -0
- data/proto_docs/google/cloud/datacatalog/v1/table_spec.rb +98 -0
- data/proto_docs/google/cloud/datacatalog/v1/tags.rb +238 -0
- data/proto_docs/google/cloud/datacatalog/v1/timestamps.rb +42 -0
- data/proto_docs/google/iam/v1/iam_policy.rb +79 -0
- data/proto_docs/google/iam/v1/policy.rb +156 -0
- data/proto_docs/google/protobuf/empty.rb +36 -0
- data/proto_docs/google/protobuf/field_mask.rb +229 -0
- data/proto_docs/google/protobuf/timestamp.rb +120 -0
- metadata +207 -0
@@ -0,0 +1,222 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: google/cloud/datacatalog/v1/datacatalog.proto for package 'Google.Cloud.DataCatalog.V1'
|
3
|
+
# Original file comments:
|
4
|
+
# Copyright 2020 Google LLC
|
5
|
+
#
|
6
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
|
+
# you may not use this file except in compliance with the License.
|
8
|
+
# You may obtain a copy of the License at
|
9
|
+
#
|
10
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
11
|
+
#
|
12
|
+
# Unless required by applicable law or agreed to in writing, software
|
13
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
+
# See the License for the specific language governing permissions and
|
16
|
+
# limitations under the License.
|
17
|
+
#
|
18
|
+
|
19
|
+
require 'grpc'
|
20
|
+
require 'google/cloud/datacatalog/v1/datacatalog_pb'
|
21
|
+
|
22
|
+
module Google
|
23
|
+
module Cloud
|
24
|
+
module DataCatalog
|
25
|
+
module V1
|
26
|
+
module DataCatalog
|
27
|
+
# Data Catalog API service allows clients to discover, understand, and manage
|
28
|
+
# their data.
|
29
|
+
class Service
|
30
|
+
|
31
|
+
include GRPC::GenericService
|
32
|
+
|
33
|
+
self.marshal_class_method = :encode
|
34
|
+
self.unmarshal_class_method = :decode
|
35
|
+
self.service_name = 'google.cloud.datacatalog.v1.DataCatalog'
|
36
|
+
|
37
|
+
# Searches Data Catalog for multiple resources like entries, tags that
|
38
|
+
# match a query.
|
39
|
+
#
|
40
|
+
# This is a custom method
|
41
|
+
# (https://cloud.google.com/apis/design/custom_methods) and does not return
|
42
|
+
# the complete resource, only the resource identifier and high level
|
43
|
+
# fields. Clients can subsequentally call `Get` methods.
|
44
|
+
#
|
45
|
+
# Note that Data Catalog search queries do not guarantee full recall. Query
|
46
|
+
# results that match your query may not be returned, even in subsequent
|
47
|
+
# result pages. Also note that results returned (and not returned) can vary
|
48
|
+
# across repeated search queries.
|
49
|
+
#
|
50
|
+
# See [Data Catalog Search
|
51
|
+
# Syntax](/data-catalog/docs/how-to/search-reference) for more information.
|
52
|
+
rpc :SearchCatalog, Google::Cloud::DataCatalog::V1::SearchCatalogRequest, Google::Cloud::DataCatalog::V1::SearchCatalogResponse
|
53
|
+
# Creates an EntryGroup.
|
54
|
+
#
|
55
|
+
# An entry group contains logically related entries together with Cloud
|
56
|
+
# Identity and Access Management policies that specify the users who can
|
57
|
+
# create, edit, and view entries within the entry group.
|
58
|
+
#
|
59
|
+
# Data Catalog automatically creates an entry group for BigQuery entries
|
60
|
+
# ("@bigquery") and Pub/Sub topics ("@pubsub"). Users create their own entry
|
61
|
+
# group to contain Cloud Storage fileset entries or custom type entries,
|
62
|
+
# and the IAM policies associated with those entries. Entry groups, like
|
63
|
+
# entries, can be searched.
|
64
|
+
#
|
65
|
+
# A maximum of 10,000 entry groups may be created per organization across all
|
66
|
+
# locations.
|
67
|
+
#
|
68
|
+
# Users should enable the Data Catalog API in the project identified by
|
69
|
+
# the `parent` parameter (see [Data Catalog Resource Project]
|
70
|
+
# (/data-catalog/docs/concepts/resource-project) for more information).
|
71
|
+
rpc :CreateEntryGroup, Google::Cloud::DataCatalog::V1::CreateEntryGroupRequest, Google::Cloud::DataCatalog::V1::EntryGroup
|
72
|
+
# Gets an EntryGroup.
|
73
|
+
rpc :GetEntryGroup, Google::Cloud::DataCatalog::V1::GetEntryGroupRequest, Google::Cloud::DataCatalog::V1::EntryGroup
|
74
|
+
# Updates an EntryGroup. The user should enable the Data Catalog API in the
|
75
|
+
# project identified by the `entry_group.name` parameter (see [Data Catalog
|
76
|
+
# Resource Project] (/data-catalog/docs/concepts/resource-project) for more
|
77
|
+
# information).
|
78
|
+
rpc :UpdateEntryGroup, Google::Cloud::DataCatalog::V1::UpdateEntryGroupRequest, Google::Cloud::DataCatalog::V1::EntryGroup
|
79
|
+
# Deletes an EntryGroup. Only entry groups that do not contain entries can be
|
80
|
+
# deleted. Users should enable the Data Catalog API in the project
|
81
|
+
# identified by the `name` parameter (see [Data Catalog Resource Project]
|
82
|
+
# (/data-catalog/docs/concepts/resource-project) for more information).
|
83
|
+
rpc :DeleteEntryGroup, Google::Cloud::DataCatalog::V1::DeleteEntryGroupRequest, Google::Protobuf::Empty
|
84
|
+
# Lists entry groups.
|
85
|
+
rpc :ListEntryGroups, Google::Cloud::DataCatalog::V1::ListEntryGroupsRequest, Google::Cloud::DataCatalog::V1::ListEntryGroupsResponse
|
86
|
+
# Creates an entry. Only entries of 'FILESET' type or user-specified type can
|
87
|
+
# be created.
|
88
|
+
#
|
89
|
+
# Users should enable the Data Catalog API in the project identified by
|
90
|
+
# the `parent` parameter (see [Data Catalog Resource Project]
|
91
|
+
# (/data-catalog/docs/concepts/resource-project) for more information).
|
92
|
+
#
|
93
|
+
# A maximum of 100,000 entries may be created per entry group.
|
94
|
+
rpc :CreateEntry, Google::Cloud::DataCatalog::V1::CreateEntryRequest, Google::Cloud::DataCatalog::V1::Entry
|
95
|
+
# Updates an existing entry.
|
96
|
+
# Users should enable the Data Catalog API in the project identified by
|
97
|
+
# the `entry.name` parameter (see [Data Catalog Resource Project]
|
98
|
+
# (/data-catalog/docs/concepts/resource-project) for more information).
|
99
|
+
rpc :UpdateEntry, Google::Cloud::DataCatalog::V1::UpdateEntryRequest, Google::Cloud::DataCatalog::V1::Entry
|
100
|
+
# Deletes an existing entry. Only entries created through
|
101
|
+
# [CreateEntry][google.cloud.datacatalog.v1.DataCatalog.CreateEntry]
|
102
|
+
# method can be deleted.
|
103
|
+
# Users should enable the Data Catalog API in the project identified by
|
104
|
+
# the `name` parameter (see [Data Catalog Resource Project]
|
105
|
+
# (/data-catalog/docs/concepts/resource-project) for more information).
|
106
|
+
rpc :DeleteEntry, Google::Cloud::DataCatalog::V1::DeleteEntryRequest, Google::Protobuf::Empty
|
107
|
+
# Gets an entry.
|
108
|
+
rpc :GetEntry, Google::Cloud::DataCatalog::V1::GetEntryRequest, Google::Cloud::DataCatalog::V1::Entry
|
109
|
+
# Get an entry by target resource name. This method allows clients to use
|
110
|
+
# the resource name from the source Google Cloud Platform service to get the
|
111
|
+
# Data Catalog Entry.
|
112
|
+
rpc :LookupEntry, Google::Cloud::DataCatalog::V1::LookupEntryRequest, Google::Cloud::DataCatalog::V1::Entry
|
113
|
+
# Lists entries.
|
114
|
+
rpc :ListEntries, Google::Cloud::DataCatalog::V1::ListEntriesRequest, Google::Cloud::DataCatalog::V1::ListEntriesResponse
|
115
|
+
# Creates a tag template. The user should enable the Data Catalog API in
|
116
|
+
# the project identified by the `parent` parameter (see [Data Catalog
|
117
|
+
# Resource Project](/data-catalog/docs/concepts/resource-project) for more
|
118
|
+
# information).
|
119
|
+
rpc :CreateTagTemplate, Google::Cloud::DataCatalog::V1::CreateTagTemplateRequest, Google::Cloud::DataCatalog::V1::TagTemplate
|
120
|
+
# Gets a tag template.
|
121
|
+
rpc :GetTagTemplate, Google::Cloud::DataCatalog::V1::GetTagTemplateRequest, Google::Cloud::DataCatalog::V1::TagTemplate
|
122
|
+
# Updates a tag template. This method cannot be used to update the fields of
|
123
|
+
# a template. The tag template fields are represented as separate resources
|
124
|
+
# and should be updated using their own create/update/delete methods.
|
125
|
+
# Users should enable the Data Catalog API in the project identified by
|
126
|
+
# the `tag_template.name` parameter (see [Data Catalog Resource Project]
|
127
|
+
# (/data-catalog/docs/concepts/resource-project) for more information).
|
128
|
+
rpc :UpdateTagTemplate, Google::Cloud::DataCatalog::V1::UpdateTagTemplateRequest, Google::Cloud::DataCatalog::V1::TagTemplate
|
129
|
+
# Deletes a tag template and all tags using the template.
|
130
|
+
# Users should enable the Data Catalog API in the project identified by
|
131
|
+
# the `name` parameter (see [Data Catalog Resource Project]
|
132
|
+
# (/data-catalog/docs/concepts/resource-project) for more information).
|
133
|
+
rpc :DeleteTagTemplate, Google::Cloud::DataCatalog::V1::DeleteTagTemplateRequest, Google::Protobuf::Empty
|
134
|
+
# Creates a field in a tag template. The user should enable the Data Catalog
|
135
|
+
# API in the project identified by the `parent` parameter (see
|
136
|
+
# [Data Catalog Resource
|
137
|
+
# Project](/data-catalog/docs/concepts/resource-project) for more
|
138
|
+
# information).
|
139
|
+
rpc :CreateTagTemplateField, Google::Cloud::DataCatalog::V1::CreateTagTemplateFieldRequest, Google::Cloud::DataCatalog::V1::TagTemplateField
|
140
|
+
# Updates a field in a tag template. This method cannot be used to update the
|
141
|
+
# field type. Users should enable the Data Catalog API in the project
|
142
|
+
# identified by the `name` parameter (see [Data Catalog Resource Project]
|
143
|
+
# (/data-catalog/docs/concepts/resource-project) for more information).
|
144
|
+
rpc :UpdateTagTemplateField, Google::Cloud::DataCatalog::V1::UpdateTagTemplateFieldRequest, Google::Cloud::DataCatalog::V1::TagTemplateField
|
145
|
+
# Renames a field in a tag template. The user should enable the Data Catalog
|
146
|
+
# API in the project identified by the `name` parameter (see [Data Catalog
|
147
|
+
# Resource Project](/data-catalog/docs/concepts/resource-project) for more
|
148
|
+
# information).
|
149
|
+
rpc :RenameTagTemplateField, Google::Cloud::DataCatalog::V1::RenameTagTemplateFieldRequest, Google::Cloud::DataCatalog::V1::TagTemplateField
|
150
|
+
# Deletes a field in a tag template and all uses of that field.
|
151
|
+
# Users should enable the Data Catalog API in the project identified by
|
152
|
+
# the `name` parameter (see [Data Catalog Resource Project]
|
153
|
+
# (/data-catalog/docs/concepts/resource-project) for more information).
|
154
|
+
rpc :DeleteTagTemplateField, Google::Cloud::DataCatalog::V1::DeleteTagTemplateFieldRequest, Google::Protobuf::Empty
|
155
|
+
# Creates a tag on an [Entry][google.cloud.datacatalog.v1.Entry].
|
156
|
+
# Note: The project identified by the `parent` parameter for the
|
157
|
+
# [tag](/data-catalog/docs/reference/rest/v1/projects.locations.entryGroups.entries.tags/create#path-parameters)
|
158
|
+
# and the
|
159
|
+
# [tag
|
160
|
+
# template](/data-catalog/docs/reference/rest/v1/projects.locations.tagTemplates/create#path-parameters)
|
161
|
+
# used to create the tag must be from the same organization.
|
162
|
+
rpc :CreateTag, Google::Cloud::DataCatalog::V1::CreateTagRequest, Google::Cloud::DataCatalog::V1::Tag
|
163
|
+
# Updates an existing tag.
|
164
|
+
rpc :UpdateTag, Google::Cloud::DataCatalog::V1::UpdateTagRequest, Google::Cloud::DataCatalog::V1::Tag
|
165
|
+
# Deletes a tag.
|
166
|
+
rpc :DeleteTag, Google::Cloud::DataCatalog::V1::DeleteTagRequest, Google::Protobuf::Empty
|
167
|
+
# Lists the tags on an [Entry][google.cloud.datacatalog.v1.Entry].
|
168
|
+
rpc :ListTags, Google::Cloud::DataCatalog::V1::ListTagsRequest, Google::Cloud::DataCatalog::V1::ListTagsResponse
|
169
|
+
# Sets the access control policy for a resource. Replaces any existing
|
170
|
+
# policy.
|
171
|
+
# Supported resources are:
|
172
|
+
# - Tag templates.
|
173
|
+
# - Entries.
|
174
|
+
# - Entry groups.
|
175
|
+
# Note, this method cannot be used to manage policies for BigQuery, Pub/Sub
|
176
|
+
# and any external Google Cloud Platform resources synced to Data Catalog.
|
177
|
+
#
|
178
|
+
# Callers must have following Google IAM permission
|
179
|
+
# - `datacatalog.tagTemplates.setIamPolicy` to set policies on tag
|
180
|
+
# templates.
|
181
|
+
# - `datacatalog.entries.setIamPolicy` to set policies on entries.
|
182
|
+
# - `datacatalog.entryGroups.setIamPolicy` to set policies on entry groups.
|
183
|
+
rpc :SetIamPolicy, Google::Iam::V1::SetIamPolicyRequest, Google::Iam::V1::Policy
|
184
|
+
# Gets the access control policy for a resource. A `NOT_FOUND` error
|
185
|
+
# is returned if the resource does not exist. An empty policy is returned
|
186
|
+
# if the resource exists but does not have a policy set on it.
|
187
|
+
#
|
188
|
+
# Supported resources are:
|
189
|
+
# - Tag templates.
|
190
|
+
# - Entries.
|
191
|
+
# - Entry groups.
|
192
|
+
# Note, this method cannot be used to manage policies for BigQuery, Pub/Sub
|
193
|
+
# and any external Google Cloud Platform resources synced to Data Catalog.
|
194
|
+
#
|
195
|
+
# Callers must have following Google IAM permission
|
196
|
+
# - `datacatalog.tagTemplates.getIamPolicy` to get policies on tag
|
197
|
+
# templates.
|
198
|
+
# - `datacatalog.entries.getIamPolicy` to get policies on entries.
|
199
|
+
# - `datacatalog.entryGroups.getIamPolicy` to get policies on entry groups.
|
200
|
+
rpc :GetIamPolicy, Google::Iam::V1::GetIamPolicyRequest, Google::Iam::V1::Policy
|
201
|
+
# Returns the caller's permissions on a resource.
|
202
|
+
# If the resource does not exist, an empty set of permissions is returned
|
203
|
+
# (We don't return a `NOT_FOUND` error).
|
204
|
+
#
|
205
|
+
# Supported resources are:
|
206
|
+
# - Tag templates.
|
207
|
+
# - Entries.
|
208
|
+
# - Entry groups.
|
209
|
+
# Note, this method cannot be used to manage policies for BigQuery, Pub/Sub
|
210
|
+
# and any external Google Cloud Platform resources synced to Data Catalog.
|
211
|
+
#
|
212
|
+
# A caller is not required to have Google IAM permission to make this
|
213
|
+
# request.
|
214
|
+
rpc :TestIamPermissions, Google::Iam::V1::TestIamPermissionsRequest, Google::Iam::V1::TestIamPermissionsResponse
|
215
|
+
end
|
216
|
+
|
217
|
+
Stub = Service.rpc_stub_class
|
218
|
+
end
|
219
|
+
end
|
220
|
+
end
|
221
|
+
end
|
222
|
+
end
|
@@ -0,0 +1,31 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/cloud/datacatalog/v1/gcs_fileset_spec.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/api/field_behavior_pb'
|
7
|
+
require 'google/cloud/datacatalog/v1/timestamps_pb'
|
8
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
9
|
+
add_file("google/cloud/datacatalog/v1/gcs_fileset_spec.proto", :syntax => :proto3) do
|
10
|
+
add_message "google.cloud.datacatalog.v1.GcsFilesetSpec" do
|
11
|
+
repeated :file_patterns, :string, 1
|
12
|
+
repeated :sample_gcs_file_specs, :message, 2, "google.cloud.datacatalog.v1.GcsFileSpec"
|
13
|
+
end
|
14
|
+
add_message "google.cloud.datacatalog.v1.GcsFileSpec" do
|
15
|
+
optional :file_path, :string, 1
|
16
|
+
optional :gcs_timestamps, :message, 2, "google.cloud.datacatalog.v1.SystemTimestamps"
|
17
|
+
optional :size_bytes, :int64, 4
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
22
|
+
module Google
|
23
|
+
module Cloud
|
24
|
+
module DataCatalog
|
25
|
+
module V1
|
26
|
+
GcsFilesetSpec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.GcsFilesetSpec").msgclass
|
27
|
+
GcsFileSpec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.GcsFileSpec").msgclass
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
@@ -0,0 +1,31 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/cloud/datacatalog/v1/schema.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/api/field_behavior_pb'
|
7
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
8
|
+
add_file("google/cloud/datacatalog/v1/schema.proto", :syntax => :proto3) do
|
9
|
+
add_message "google.cloud.datacatalog.v1.Schema" do
|
10
|
+
repeated :columns, :message, 2, "google.cloud.datacatalog.v1.ColumnSchema"
|
11
|
+
end
|
12
|
+
add_message "google.cloud.datacatalog.v1.ColumnSchema" do
|
13
|
+
optional :column, :string, 6
|
14
|
+
optional :type, :string, 1
|
15
|
+
optional :description, :string, 2
|
16
|
+
optional :mode, :string, 3
|
17
|
+
repeated :subcolumns, :message, 7, "google.cloud.datacatalog.v1.ColumnSchema"
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
22
|
+
module Google
|
23
|
+
module Cloud
|
24
|
+
module DataCatalog
|
25
|
+
module V1
|
26
|
+
Schema = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.Schema").msgclass
|
27
|
+
ColumnSchema = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.ColumnSchema").msgclass
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
@@ -0,0 +1,39 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/cloud/datacatalog/v1/search.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/api/field_behavior_pb'
|
7
|
+
require 'google/cloud/datacatalog/v1/common_pb'
|
8
|
+
require 'google/protobuf/timestamp_pb'
|
9
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
10
|
+
add_file("google/cloud/datacatalog/v1/search.proto", :syntax => :proto3) do
|
11
|
+
add_message "google.cloud.datacatalog.v1.SearchCatalogResult" do
|
12
|
+
optional :search_result_type, :enum, 1, "google.cloud.datacatalog.v1.SearchResultType"
|
13
|
+
optional :search_result_subtype, :string, 2
|
14
|
+
optional :relative_resource_name, :string, 3
|
15
|
+
optional :linked_resource, :string, 4
|
16
|
+
oneof :system do
|
17
|
+
optional :integrated_system, :enum, 8, "google.cloud.datacatalog.v1.IntegratedSystem"
|
18
|
+
optional :user_specified_system, :string, 9
|
19
|
+
end
|
20
|
+
end
|
21
|
+
add_enum "google.cloud.datacatalog.v1.SearchResultType" do
|
22
|
+
value :SEARCH_RESULT_TYPE_UNSPECIFIED, 0
|
23
|
+
value :ENTRY, 1
|
24
|
+
value :TAG_TEMPLATE, 2
|
25
|
+
value :ENTRY_GROUP, 3
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
module Google
|
31
|
+
module Cloud
|
32
|
+
module DataCatalog
|
33
|
+
module V1
|
34
|
+
SearchCatalogResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.SearchCatalogResult").msgclass
|
35
|
+
SearchResultType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.SearchResultType").enummodule
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
@@ -0,0 +1,48 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/cloud/datacatalog/v1/table_spec.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/api/field_behavior_pb'
|
7
|
+
require 'google/api/resource_pb'
|
8
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
9
|
+
add_file("google/cloud/datacatalog/v1/table_spec.proto", :syntax => :proto3) do
|
10
|
+
add_message "google.cloud.datacatalog.v1.BigQueryTableSpec" do
|
11
|
+
optional :table_source_type, :enum, 1, "google.cloud.datacatalog.v1.TableSourceType"
|
12
|
+
oneof :type_spec do
|
13
|
+
optional :view_spec, :message, 2, "google.cloud.datacatalog.v1.ViewSpec"
|
14
|
+
optional :table_spec, :message, 3, "google.cloud.datacatalog.v1.TableSpec"
|
15
|
+
end
|
16
|
+
end
|
17
|
+
add_message "google.cloud.datacatalog.v1.ViewSpec" do
|
18
|
+
optional :view_query, :string, 1
|
19
|
+
end
|
20
|
+
add_message "google.cloud.datacatalog.v1.TableSpec" do
|
21
|
+
optional :grouped_entry, :string, 1
|
22
|
+
end
|
23
|
+
add_message "google.cloud.datacatalog.v1.BigQueryDateShardedSpec" do
|
24
|
+
optional :dataset, :string, 1
|
25
|
+
optional :table_prefix, :string, 2
|
26
|
+
optional :shard_count, :int64, 3
|
27
|
+
end
|
28
|
+
add_enum "google.cloud.datacatalog.v1.TableSourceType" do
|
29
|
+
value :TABLE_SOURCE_TYPE_UNSPECIFIED, 0
|
30
|
+
value :BIGQUERY_VIEW, 2
|
31
|
+
value :BIGQUERY_TABLE, 5
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
module Google
|
37
|
+
module Cloud
|
38
|
+
module DataCatalog
|
39
|
+
module V1
|
40
|
+
BigQueryTableSpec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.BigQueryTableSpec").msgclass
|
41
|
+
ViewSpec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.ViewSpec").msgclass
|
42
|
+
TableSpec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.TableSpec").msgclass
|
43
|
+
BigQueryDateShardedSpec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.BigQueryDateShardedSpec").msgclass
|
44
|
+
TableSourceType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.TableSourceType").enummodule
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
@@ -0,0 +1,84 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/cloud/datacatalog/v1/tags.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/api/field_behavior_pb'
|
7
|
+
require 'google/api/resource_pb'
|
8
|
+
require 'google/protobuf/timestamp_pb'
|
9
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
10
|
+
add_file("google/cloud/datacatalog/v1/tags.proto", :syntax => :proto3) do
|
11
|
+
add_message "google.cloud.datacatalog.v1.Tag" do
|
12
|
+
optional :name, :string, 1
|
13
|
+
optional :template, :string, 2
|
14
|
+
optional :template_display_name, :string, 5
|
15
|
+
map :fields, :string, :message, 3, "google.cloud.datacatalog.v1.TagField"
|
16
|
+
oneof :scope do
|
17
|
+
optional :column, :string, 4
|
18
|
+
end
|
19
|
+
end
|
20
|
+
add_message "google.cloud.datacatalog.v1.TagField" do
|
21
|
+
optional :display_name, :string, 1
|
22
|
+
optional :order, :int32, 7
|
23
|
+
oneof :kind do
|
24
|
+
optional :double_value, :double, 2
|
25
|
+
optional :string_value, :string, 3
|
26
|
+
optional :bool_value, :bool, 4
|
27
|
+
optional :timestamp_value, :message, 5, "google.protobuf.Timestamp"
|
28
|
+
optional :enum_value, :message, 6, "google.cloud.datacatalog.v1.TagField.EnumValue"
|
29
|
+
end
|
30
|
+
end
|
31
|
+
add_message "google.cloud.datacatalog.v1.TagField.EnumValue" do
|
32
|
+
optional :display_name, :string, 1
|
33
|
+
end
|
34
|
+
add_message "google.cloud.datacatalog.v1.TagTemplate" do
|
35
|
+
optional :name, :string, 1
|
36
|
+
optional :display_name, :string, 2
|
37
|
+
map :fields, :string, :message, 3, "google.cloud.datacatalog.v1.TagTemplateField"
|
38
|
+
end
|
39
|
+
add_message "google.cloud.datacatalog.v1.TagTemplateField" do
|
40
|
+
optional :name, :string, 6
|
41
|
+
optional :display_name, :string, 1
|
42
|
+
optional :type, :message, 2, "google.cloud.datacatalog.v1.FieldType"
|
43
|
+
optional :is_required, :bool, 3
|
44
|
+
optional :order, :int32, 5
|
45
|
+
end
|
46
|
+
add_message "google.cloud.datacatalog.v1.FieldType" do
|
47
|
+
oneof :type_decl do
|
48
|
+
optional :primitive_type, :enum, 1, "google.cloud.datacatalog.v1.FieldType.PrimitiveType"
|
49
|
+
optional :enum_type, :message, 2, "google.cloud.datacatalog.v1.FieldType.EnumType"
|
50
|
+
end
|
51
|
+
end
|
52
|
+
add_message "google.cloud.datacatalog.v1.FieldType.EnumType" do
|
53
|
+
repeated :allowed_values, :message, 1, "google.cloud.datacatalog.v1.FieldType.EnumType.EnumValue"
|
54
|
+
end
|
55
|
+
add_message "google.cloud.datacatalog.v1.FieldType.EnumType.EnumValue" do
|
56
|
+
optional :display_name, :string, 1
|
57
|
+
end
|
58
|
+
add_enum "google.cloud.datacatalog.v1.FieldType.PrimitiveType" do
|
59
|
+
value :PRIMITIVE_TYPE_UNSPECIFIED, 0
|
60
|
+
value :DOUBLE, 1
|
61
|
+
value :STRING, 2
|
62
|
+
value :BOOL, 3
|
63
|
+
value :TIMESTAMP, 4
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|
67
|
+
|
68
|
+
module Google
|
69
|
+
module Cloud
|
70
|
+
module DataCatalog
|
71
|
+
module V1
|
72
|
+
Tag = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.Tag").msgclass
|
73
|
+
TagField = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.TagField").msgclass
|
74
|
+
TagField::EnumValue = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.TagField.EnumValue").msgclass
|
75
|
+
TagTemplate = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.TagTemplate").msgclass
|
76
|
+
TagTemplateField = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.TagTemplateField").msgclass
|
77
|
+
FieldType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.FieldType").msgclass
|
78
|
+
FieldType::EnumType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.FieldType.EnumType").msgclass
|
79
|
+
FieldType::EnumType::EnumValue = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.FieldType.EnumType.EnumValue").msgclass
|
80
|
+
FieldType::PrimitiveType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.FieldType.PrimitiveType").enummodule
|
81
|
+
end
|
82
|
+
end
|
83
|
+
end
|
84
|
+
end
|