google-cloud-data_catalog-v1beta1 0.a → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardopts +12 -0
- data/AUTHENTICATION.md +149 -0
- data/README.md +144 -8
- data/lib/google/cloud/data_catalog/v1beta1/data_catalog/client.rb +3303 -0
- data/lib/google/cloud/data_catalog/v1beta1/data_catalog/credentials.rb +47 -0
- data/lib/google/cloud/data_catalog/v1beta1/data_catalog/paths.rb +176 -0
- data/lib/google/cloud/data_catalog/v1beta1/data_catalog/rest/client.rb +3093 -0
- data/lib/google/cloud/data_catalog/v1beta1/data_catalog/rest/service_stub.rb +1782 -0
- data/lib/google/cloud/data_catalog/v1beta1/data_catalog/rest.rb +53 -0
- data/lib/google/cloud/data_catalog/v1beta1/data_catalog.rb +56 -0
- data/lib/google/cloud/data_catalog/v1beta1/policy_tag_manager/client.rb +1590 -0
- data/lib/google/cloud/data_catalog/v1beta1/policy_tag_manager/credentials.rb +47 -0
- data/lib/google/cloud/data_catalog/v1beta1/policy_tag_manager/paths.rb +90 -0
- data/lib/google/cloud/data_catalog/v1beta1/policy_tag_manager/rest/client.rb +1470 -0
- data/lib/google/cloud/data_catalog/v1beta1/policy_tag_manager/rest/service_stub.rb +846 -0
- data/lib/google/cloud/data_catalog/v1beta1/policy_tag_manager/rest.rb +53 -0
- data/lib/google/cloud/data_catalog/v1beta1/policy_tag_manager.rb +56 -0
- data/lib/google/cloud/data_catalog/v1beta1/policy_tag_manager_serialization/client.rb +522 -0
- data/lib/google/cloud/data_catalog/v1beta1/policy_tag_manager_serialization/credentials.rb +47 -0
- data/lib/google/cloud/data_catalog/v1beta1/policy_tag_manager_serialization/paths.rb +69 -0
- data/lib/google/cloud/data_catalog/v1beta1/policy_tag_manager_serialization/rest/client.rb +479 -0
- data/lib/google/cloud/data_catalog/v1beta1/policy_tag_manager_serialization/rest/service_stub.rb +167 -0
- data/lib/google/cloud/data_catalog/v1beta1/policy_tag_manager_serialization/rest.rb +53 -0
- data/lib/google/cloud/data_catalog/v1beta1/policy_tag_manager_serialization.rb +56 -0
- data/lib/google/cloud/data_catalog/v1beta1/rest.rb +39 -0
- data/lib/google/cloud/data_catalog/v1beta1/version.rb +7 -2
- data/lib/google/cloud/data_catalog/v1beta1.rb +47 -0
- data/lib/google/cloud/datacatalog/v1beta1/common_pb.rb +43 -0
- data/lib/google/cloud/datacatalog/v1beta1/datacatalog_pb.rb +99 -0
- data/lib/google/cloud/datacatalog/v1beta1/datacatalog_services_pb.rb +229 -0
- data/lib/google/cloud/datacatalog/v1beta1/gcs_fileset_spec_pb.rb +47 -0
- data/lib/google/cloud/datacatalog/v1beta1/policytagmanager_pb.rb +70 -0
- data/lib/google/cloud/datacatalog/v1beta1/policytagmanager_services_pb.rb +73 -0
- data/lib/google/cloud/datacatalog/v1beta1/policytagmanagerserialization_pb.rb +55 -0
- data/lib/google/cloud/datacatalog/v1beta1/policytagmanagerserialization_services_pb.rb +55 -0
- data/lib/google/cloud/datacatalog/v1beta1/schema_pb.rb +45 -0
- data/lib/google/cloud/datacatalog/v1beta1/search_pb.rb +47 -0
- data/lib/google/cloud/datacatalog/v1beta1/table_spec_pb.rb +49 -0
- data/lib/google/cloud/datacatalog/v1beta1/tags_pb.rb +55 -0
- data/lib/google/cloud/datacatalog/v1beta1/timestamps_pb.rb +46 -0
- data/lib/google/cloud/datacatalog/v1beta1/usage_pb.rb +46 -0
- data/lib/google-cloud-data_catalog-v1beta1.rb +21 -0
- data/proto_docs/README.md +4 -0
- data/proto_docs/google/api/client.rb +381 -0
- data/proto_docs/google/api/field_behavior.rb +85 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/api/resource.rb +222 -0
- data/proto_docs/google/cloud/datacatalog/v1beta1/common.rb +52 -0
- data/proto_docs/google/cloud/datacatalog/v1beta1/datacatalog.rb +830 -0
- data/proto_docs/google/cloud/datacatalog/v1beta1/gcs_fileset_spec.rb +81 -0
- data/proto_docs/google/cloud/datacatalog/v1beta1/policytagmanager.rb +300 -0
- data/proto_docs/google/cloud/datacatalog/v1beta1/policytagmanagerserialization.rb +131 -0
- data/proto_docs/google/cloud/datacatalog/v1beta1/schema.rb +61 -0
- data/proto_docs/google/cloud/datacatalog/v1beta1/search.rb +75 -0
- data/proto_docs/google/cloud/datacatalog/v1beta1/table_spec.rb +102 -0
- data/proto_docs/google/cloud/datacatalog/v1beta1/tags.rb +242 -0
- data/proto_docs/google/cloud/datacatalog/v1beta1/timestamps.rb +42 -0
- data/proto_docs/google/cloud/datacatalog/v1beta1/usage.rb +74 -0
- data/proto_docs/google/protobuf/duration.rb +98 -0
- data/proto_docs/google/protobuf/empty.rb +34 -0
- data/proto_docs/google/protobuf/field_mask.rb +229 -0
- data/proto_docs/google/protobuf/timestamp.rb +127 -0
- data/proto_docs/google/type/expr.rb +75 -0
- metadata +242 -13
@@ -0,0 +1,229 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: google/cloud/datacatalog/v1beta1/datacatalog.proto for package 'Google.Cloud.DataCatalog.V1beta1'
|
3
|
+
# Original file comments:
|
4
|
+
# Copyright 2023 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/v1beta1/datacatalog_pb'
|
21
|
+
|
22
|
+
module Google
|
23
|
+
module Cloud
|
24
|
+
module DataCatalog
|
25
|
+
module V1beta1
|
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.v1beta1.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 subsequently 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](https://cloud.google.com/data-catalog/docs/how-to/search-reference)
|
52
|
+
# for more information.
|
53
|
+
rpc :SearchCatalog, ::Google::Cloud::DataCatalog::V1beta1::SearchCatalogRequest, ::Google::Cloud::DataCatalog::V1beta1::SearchCatalogResponse
|
54
|
+
# A maximum of 10,000 entry groups may be created per organization across all
|
55
|
+
# locations.
|
56
|
+
#
|
57
|
+
# Users should enable the Data Catalog API in the project identified by
|
58
|
+
# the `parent` parameter (see [Data Catalog Resource Project]
|
59
|
+
# (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for
|
60
|
+
# more information).
|
61
|
+
rpc :CreateEntryGroup, ::Google::Cloud::DataCatalog::V1beta1::CreateEntryGroupRequest, ::Google::Cloud::DataCatalog::V1beta1::EntryGroup
|
62
|
+
# Updates an EntryGroup. The user should enable the Data Catalog API in the
|
63
|
+
# project identified by the `entry_group.name` parameter (see [Data Catalog
|
64
|
+
# Resource Project]
|
65
|
+
# (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for
|
66
|
+
# more information).
|
67
|
+
rpc :UpdateEntryGroup, ::Google::Cloud::DataCatalog::V1beta1::UpdateEntryGroupRequest, ::Google::Cloud::DataCatalog::V1beta1::EntryGroup
|
68
|
+
# Gets an EntryGroup.
|
69
|
+
rpc :GetEntryGroup, ::Google::Cloud::DataCatalog::V1beta1::GetEntryGroupRequest, ::Google::Cloud::DataCatalog::V1beta1::EntryGroup
|
70
|
+
# Deletes an EntryGroup. Only entry groups that do not contain entries can be
|
71
|
+
# deleted. Users should enable the Data Catalog API in the project
|
72
|
+
# identified by the `name` parameter (see [Data Catalog Resource Project]
|
73
|
+
# (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for
|
74
|
+
# more information).
|
75
|
+
rpc :DeleteEntryGroup, ::Google::Cloud::DataCatalog::V1beta1::DeleteEntryGroupRequest, ::Google::Protobuf::Empty
|
76
|
+
# Lists entry groups.
|
77
|
+
rpc :ListEntryGroups, ::Google::Cloud::DataCatalog::V1beta1::ListEntryGroupsRequest, ::Google::Cloud::DataCatalog::V1beta1::ListEntryGroupsResponse
|
78
|
+
# Creates an entry. Only entries of 'FILESET' type or user-specified type can
|
79
|
+
# be created.
|
80
|
+
#
|
81
|
+
# Users should enable the Data Catalog API in the project identified by
|
82
|
+
# the `parent` parameter (see [Data Catalog Resource Project]
|
83
|
+
# (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for
|
84
|
+
# more information).
|
85
|
+
#
|
86
|
+
# A maximum of 100,000 entries may be created per entry group.
|
87
|
+
rpc :CreateEntry, ::Google::Cloud::DataCatalog::V1beta1::CreateEntryRequest, ::Google::Cloud::DataCatalog::V1beta1::Entry
|
88
|
+
# Updates an existing entry.
|
89
|
+
# Users should enable the Data Catalog API in the project identified by
|
90
|
+
# the `entry.name` parameter (see [Data Catalog Resource Project]
|
91
|
+
# (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for
|
92
|
+
# more information).
|
93
|
+
rpc :UpdateEntry, ::Google::Cloud::DataCatalog::V1beta1::UpdateEntryRequest, ::Google::Cloud::DataCatalog::V1beta1::Entry
|
94
|
+
# Deletes an existing entry. Only entries created through
|
95
|
+
# [CreateEntry][google.cloud.datacatalog.v1beta1.DataCatalog.CreateEntry]
|
96
|
+
# method can be deleted.
|
97
|
+
# Users should enable the Data Catalog API in the project identified by
|
98
|
+
# the `name` parameter (see [Data Catalog Resource Project]
|
99
|
+
# (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for
|
100
|
+
# more information).
|
101
|
+
rpc :DeleteEntry, ::Google::Cloud::DataCatalog::V1beta1::DeleteEntryRequest, ::Google::Protobuf::Empty
|
102
|
+
# Gets an entry.
|
103
|
+
rpc :GetEntry, ::Google::Cloud::DataCatalog::V1beta1::GetEntryRequest, ::Google::Cloud::DataCatalog::V1beta1::Entry
|
104
|
+
# Get an entry by target resource name. This method allows clients to use
|
105
|
+
# the resource name from the source Google Cloud Platform service to get the
|
106
|
+
# Data Catalog Entry.
|
107
|
+
rpc :LookupEntry, ::Google::Cloud::DataCatalog::V1beta1::LookupEntryRequest, ::Google::Cloud::DataCatalog::V1beta1::Entry
|
108
|
+
# Lists entries.
|
109
|
+
rpc :ListEntries, ::Google::Cloud::DataCatalog::V1beta1::ListEntriesRequest, ::Google::Cloud::DataCatalog::V1beta1::ListEntriesResponse
|
110
|
+
# Creates a tag template. The user should enable the Data Catalog API in
|
111
|
+
# the project identified by the `parent` parameter (see [Data Catalog
|
112
|
+
# Resource
|
113
|
+
# Project](https://cloud.google.com/data-catalog/docs/concepts/resource-project)
|
114
|
+
# for more information).
|
115
|
+
rpc :CreateTagTemplate, ::Google::Cloud::DataCatalog::V1beta1::CreateTagTemplateRequest, ::Google::Cloud::DataCatalog::V1beta1::TagTemplate
|
116
|
+
# Gets a tag template.
|
117
|
+
rpc :GetTagTemplate, ::Google::Cloud::DataCatalog::V1beta1::GetTagTemplateRequest, ::Google::Cloud::DataCatalog::V1beta1::TagTemplate
|
118
|
+
# Updates a tag template. This method cannot be used to update the fields of
|
119
|
+
# a template. The tag template fields are represented as separate resources
|
120
|
+
# and should be updated using their own create/update/delete methods.
|
121
|
+
# Users should enable the Data Catalog API in the project identified by
|
122
|
+
# the `tag_template.name` parameter (see [Data Catalog Resource Project]
|
123
|
+
# (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for
|
124
|
+
# more information).
|
125
|
+
rpc :UpdateTagTemplate, ::Google::Cloud::DataCatalog::V1beta1::UpdateTagTemplateRequest, ::Google::Cloud::DataCatalog::V1beta1::TagTemplate
|
126
|
+
# Deletes a tag template and all tags using the template.
|
127
|
+
# Users should enable the Data Catalog API in the project identified by
|
128
|
+
# the `name` parameter (see [Data Catalog Resource Project]
|
129
|
+
# (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for
|
130
|
+
# more information).
|
131
|
+
rpc :DeleteTagTemplate, ::Google::Cloud::DataCatalog::V1beta1::DeleteTagTemplateRequest, ::Google::Protobuf::Empty
|
132
|
+
# Creates a field in a tag template. The user should enable the Data Catalog
|
133
|
+
# API in the project identified by the `parent` parameter (see
|
134
|
+
# [Data Catalog Resource
|
135
|
+
# Project](https://cloud.google.com/data-catalog/docs/concepts/resource-project)
|
136
|
+
# for more information).
|
137
|
+
rpc :CreateTagTemplateField, ::Google::Cloud::DataCatalog::V1beta1::CreateTagTemplateFieldRequest, ::Google::Cloud::DataCatalog::V1beta1::TagTemplateField
|
138
|
+
# Updates a field in a tag template. This method cannot be used to update the
|
139
|
+
# field type. Users should enable the Data Catalog API in the project
|
140
|
+
# identified by the `name` parameter (see [Data Catalog Resource Project]
|
141
|
+
# (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for
|
142
|
+
# more information).
|
143
|
+
rpc :UpdateTagTemplateField, ::Google::Cloud::DataCatalog::V1beta1::UpdateTagTemplateFieldRequest, ::Google::Cloud::DataCatalog::V1beta1::TagTemplateField
|
144
|
+
# Renames a field in a tag template. The user should enable the Data Catalog
|
145
|
+
# API in the project identified by the `name` parameter (see [Data Catalog
|
146
|
+
# Resource
|
147
|
+
# Project](https://cloud.google.com/data-catalog/docs/concepts/resource-project)
|
148
|
+
# for more information).
|
149
|
+
rpc :RenameTagTemplateField, ::Google::Cloud::DataCatalog::V1beta1::RenameTagTemplateFieldRequest, ::Google::Cloud::DataCatalog::V1beta1::TagTemplateField
|
150
|
+
# Renames an enum value in a tag template. The enum values have to be unique
|
151
|
+
# within one enum field. Thus, an enum value cannot be renamed with a name
|
152
|
+
# used in any other enum value within the same enum field.
|
153
|
+
rpc :RenameTagTemplateFieldEnumValue, ::Google::Cloud::DataCatalog::V1beta1::RenameTagTemplateFieldEnumValueRequest, ::Google::Cloud::DataCatalog::V1beta1::TagTemplateField
|
154
|
+
# Deletes a field in a tag template and all uses of that field.
|
155
|
+
# Users should enable the Data Catalog API in the project identified by
|
156
|
+
# the `name` parameter (see [Data Catalog Resource Project]
|
157
|
+
# (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for
|
158
|
+
# more information).
|
159
|
+
rpc :DeleteTagTemplateField, ::Google::Cloud::DataCatalog::V1beta1::DeleteTagTemplateFieldRequest, ::Google::Protobuf::Empty
|
160
|
+
# Creates a tag on an [Entry][google.cloud.datacatalog.v1beta1.Entry].
|
161
|
+
# Note: The project identified by the `parent` parameter for the
|
162
|
+
# [tag](https://cloud.google.com/data-catalog/docs/reference/rest/v1beta1/projects.locations.entryGroups.entries.tags/create#path-parameters)
|
163
|
+
# and the
|
164
|
+
# [tag
|
165
|
+
# template](https://cloud.google.com/data-catalog/docs/reference/rest/v1beta1/projects.locations.tagTemplates/create#path-parameters)
|
166
|
+
# used to create the tag must be from the same organization.
|
167
|
+
rpc :CreateTag, ::Google::Cloud::DataCatalog::V1beta1::CreateTagRequest, ::Google::Cloud::DataCatalog::V1beta1::Tag
|
168
|
+
# Updates an existing tag.
|
169
|
+
rpc :UpdateTag, ::Google::Cloud::DataCatalog::V1beta1::UpdateTagRequest, ::Google::Cloud::DataCatalog::V1beta1::Tag
|
170
|
+
# Deletes a tag.
|
171
|
+
rpc :DeleteTag, ::Google::Cloud::DataCatalog::V1beta1::DeleteTagRequest, ::Google::Protobuf::Empty
|
172
|
+
# Lists tags assigned to an [Entry][google.cloud.datacatalog.v1beta1.Entry].
|
173
|
+
# The [columns][google.cloud.datacatalog.v1beta1.Tag.column] in the response
|
174
|
+
# are lowercased.
|
175
|
+
rpc :ListTags, ::Google::Cloud::DataCatalog::V1beta1::ListTagsRequest, ::Google::Cloud::DataCatalog::V1beta1::ListTagsResponse
|
176
|
+
# Sets the access control policy for a resource. Replaces any existing
|
177
|
+
# policy.
|
178
|
+
# Supported resources are:
|
179
|
+
# - Tag templates.
|
180
|
+
# - Entries.
|
181
|
+
# - Entry groups.
|
182
|
+
# Note, this method cannot be used to manage policies for BigQuery, Pub/Sub
|
183
|
+
# and any external Google Cloud Platform resources synced to Data Catalog.
|
184
|
+
#
|
185
|
+
# Callers must have following Google IAM permission
|
186
|
+
# - `datacatalog.tagTemplates.setIamPolicy` to set policies on tag
|
187
|
+
# templates.
|
188
|
+
# - `datacatalog.entries.setIamPolicy` to set policies on entries.
|
189
|
+
# - `datacatalog.entryGroups.setIamPolicy` to set policies on entry groups.
|
190
|
+
rpc :SetIamPolicy, ::Google::Iam::V1::SetIamPolicyRequest, ::Google::Iam::V1::Policy
|
191
|
+
# Gets the access control policy for a resource. A `NOT_FOUND` error
|
192
|
+
# is returned if the resource does not exist. An empty policy is returned
|
193
|
+
# if the resource exists but does not have a policy set on it.
|
194
|
+
#
|
195
|
+
# Supported resources are:
|
196
|
+
# - Tag templates.
|
197
|
+
# - Entries.
|
198
|
+
# - Entry groups.
|
199
|
+
# Note, this method cannot be used to manage policies for BigQuery, Pub/Sub
|
200
|
+
# and any external Google Cloud Platform resources synced to Data Catalog.
|
201
|
+
#
|
202
|
+
# Callers must have following Google IAM permission
|
203
|
+
# - `datacatalog.tagTemplates.getIamPolicy` to get policies on tag
|
204
|
+
# templates.
|
205
|
+
# - `datacatalog.entries.getIamPolicy` to get policies on entries.
|
206
|
+
# - `datacatalog.entryGroups.getIamPolicy` to get policies on entry groups.
|
207
|
+
rpc :GetIamPolicy, ::Google::Iam::V1::GetIamPolicyRequest, ::Google::Iam::V1::Policy
|
208
|
+
# Returns the caller's permissions on a resource.
|
209
|
+
# If the resource does not exist, an empty set of permissions is returned
|
210
|
+
# (We don't return a `NOT_FOUND` error).
|
211
|
+
#
|
212
|
+
# Supported resources are:
|
213
|
+
# - Tag templates.
|
214
|
+
# - Entries.
|
215
|
+
# - Entry groups.
|
216
|
+
# Note, this method cannot be used to manage policies for BigQuery, Pub/Sub
|
217
|
+
# and any external Google Cloud Platform resources synced to Data Catalog.
|
218
|
+
#
|
219
|
+
# A caller is not required to have Google IAM permission to make this
|
220
|
+
# request.
|
221
|
+
rpc :TestIamPermissions, ::Google::Iam::V1::TestIamPermissionsRequest, ::Google::Iam::V1::TestIamPermissionsResponse
|
222
|
+
end
|
223
|
+
|
224
|
+
Stub = Service.rpc_stub_class
|
225
|
+
end
|
226
|
+
end
|
227
|
+
end
|
228
|
+
end
|
229
|
+
end
|
@@ -0,0 +1,47 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: google/cloud/datacatalog/v1beta1/gcs_fileset_spec.proto
|
4
|
+
|
5
|
+
require 'google/protobuf'
|
6
|
+
|
7
|
+
require 'google/api/field_behavior_pb'
|
8
|
+
require 'google/cloud/datacatalog/v1beta1/timestamps_pb'
|
9
|
+
|
10
|
+
|
11
|
+
descriptor_data = "\n7google/cloud/datacatalog/v1beta1/gcs_fileset_spec.proto\x12 google.cloud.datacatalog.v1beta1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x31google/cloud/datacatalog/v1beta1/timestamps.proto\"\x7f\n\x0eGcsFilesetSpec\x12\x1a\n\rfile_patterns\x18\x01 \x03(\tB\x03\xe0\x41\x02\x12Q\n\x15sample_gcs_file_specs\x18\x02 \x03(\x0b\x32-.google.cloud.datacatalog.v1beta1.GcsFileSpecB\x03\xe0\x41\x03\"\x8f\x01\n\x0bGcsFileSpec\x12\x16\n\tfile_path\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12O\n\x0egcs_timestamps\x18\x02 \x01(\x0b\x32\x32.google.cloud.datacatalog.v1beta1.SystemTimestampsB\x03\xe0\x41\x03\x12\x17\n\nsize_bytes\x18\x04 \x01(\x03\x42\x03\xe0\x41\x03\x42\xdf\x01\n$com.google.cloud.datacatalog.v1beta1P\x01ZFcloud.google.com/go/datacatalog/apiv1beta1/datacatalogpb;datacatalogpb\xf8\x01\x01\xaa\x02 Google.Cloud.DataCatalog.V1Beta1\xca\x02 Google\\Cloud\\DataCatalog\\V1beta1\xea\x02#Google::Cloud::DataCatalog::V1beta1b\x06proto3"
|
12
|
+
|
13
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
14
|
+
|
15
|
+
begin
|
16
|
+
pool.add_serialized_file(descriptor_data)
|
17
|
+
rescue TypeError => e
|
18
|
+
# Compatibility code: will be removed in the next major version.
|
19
|
+
require 'google/protobuf/descriptor_pb'
|
20
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
21
|
+
parsed.clear_dependency
|
22
|
+
serialized = parsed.class.encode(parsed)
|
23
|
+
file = pool.add_serialized_file(serialized)
|
24
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
25
|
+
imports = [
|
26
|
+
["google.cloud.datacatalog.v1beta1.SystemTimestamps", "google/cloud/datacatalog/v1beta1/timestamps.proto"],
|
27
|
+
]
|
28
|
+
imports.each do |type_name, expected_filename|
|
29
|
+
import_file = pool.lookup(type_name).file_descriptor
|
30
|
+
if import_file.name != expected_filename
|
31
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
32
|
+
end
|
33
|
+
end
|
34
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
35
|
+
warn "This will become an error in the next major version."
|
36
|
+
end
|
37
|
+
|
38
|
+
module Google
|
39
|
+
module Cloud
|
40
|
+
module DataCatalog
|
41
|
+
module V1beta1
|
42
|
+
GcsFilesetSpec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1beta1.GcsFilesetSpec").msgclass
|
43
|
+
GcsFileSpec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1beta1.GcsFileSpec").msgclass
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
@@ -0,0 +1,70 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: google/cloud/datacatalog/v1beta1/policytagmanager.proto
|
4
|
+
|
5
|
+
require 'google/protobuf'
|
6
|
+
|
7
|
+
require 'google/api/annotations_pb'
|
8
|
+
require 'google/api/client_pb'
|
9
|
+
require 'google/api/field_behavior_pb'
|
10
|
+
require 'google/api/resource_pb'
|
11
|
+
require 'google/cloud/datacatalog/v1beta1/common_pb'
|
12
|
+
require 'google/cloud/datacatalog/v1beta1/timestamps_pb'
|
13
|
+
require 'google/iam/v1/iam_policy_pb'
|
14
|
+
require 'google/iam/v1/policy_pb'
|
15
|
+
require 'google/protobuf/empty_pb'
|
16
|
+
require 'google/protobuf/field_mask_pb'
|
17
|
+
|
18
|
+
|
19
|
+
descriptor_data = "\n7google/cloud/datacatalog/v1beta1/policytagmanager.proto\x12 google.cloud.datacatalog.v1beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a-google/cloud/datacatalog/v1beta1/common.proto\x1a\x31google/cloud/datacatalog/v1beta1/timestamps.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\"\xff\x04\n\x08Taxonomy\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x18\n\x0b\x64\x65scription\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x1d\n\x10policy_tag_count\x18\x04 \x01(\x05\x42\x03\xe0\x41\x03\x12T\n\x13taxonomy_timestamps\x18\x05 \x01(\x0b\x32\x32.google.cloud.datacatalog.v1beta1.SystemTimestampsB\x03\xe0\x41\x03\x12Z\n\x16\x61\x63tivated_policy_types\x18\x06 \x03(\x0e\x32\x35.google.cloud.datacatalog.v1beta1.Taxonomy.PolicyTypeB\x03\xe0\x41\x01\x12H\n\x07service\x18\x07 \x01(\x0b\x32\x32.google.cloud.datacatalog.v1beta1.Taxonomy.ServiceB\x03\xe0\x41\x03\x1a[\n\x07Service\x12>\n\x04name\x18\x01 \x01(\x0e\x32\x30.google.cloud.datacatalog.v1beta1.ManagingSystem\x12\x10\n\x08identity\x18\x02 \x01(\t\"J\n\nPolicyType\x12\x1b\n\x17POLICY_TYPE_UNSPECIFIED\x10\x00\x12\x1f\n\x1b\x46INE_GRAINED_ACCESS_CONTROL\x10\x01:g\xea\x41\x64\n#datacatalog.googleapis.com/Taxonomy\x12=projects/{project}/locations/{location}/taxonomies/{taxonomy}\"\x8c\x02\n\tPolicyTag\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x19\n\x11parent_policy_tag\x18\x04 \x01(\t\x12\x1e\n\x11\x63hild_policy_tags\x18\x05 \x03(\tB\x03\xe0\x41\x03:\x80\x01\xea\x41}\n$datacatalog.googleapis.com/PolicyTag\x12Uprojects/{project}/locations/{location}/taxonomies/{taxonomy}/policyTags/{policy_tag}\"\x92\x01\n\x15\x43reateTaxonomyRequest\x12;\n\x06parent\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\x12#datacatalog.googleapis.com/Taxonomy\x12<\n\x08taxonomy\x18\x02 \x01(\x0b\x32*.google.cloud.datacatalog.v1beta1.Taxonomy\"R\n\x15\x44\x65leteTaxonomyRequest\x12\x39\n\x04name\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#datacatalog.googleapis.com/Taxonomy\"\x86\x01\n\x15UpdateTaxonomyRequest\x12<\n\x08taxonomy\x18\x01 \x01(\x0b\x32*.google.cloud.datacatalog.v1beta1.Taxonomy\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"\x8b\x01\n\x15ListTaxonomiesRequest\x12;\n\x06parent\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\x12#datacatalog.googleapis.com/Taxonomy\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x04 \x01(\t\"q\n\x16ListTaxonomiesResponse\x12>\n\ntaxonomies\x18\x01 \x03(\x0b\x32*.google.cloud.datacatalog.v1beta1.Taxonomy\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"O\n\x12GetTaxonomyRequest\x12\x39\n\x04name\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#datacatalog.googleapis.com/Taxonomy\"\x97\x01\n\x16\x43reatePolicyTagRequest\x12<\n\x06parent\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\x12$datacatalog.googleapis.com/PolicyTag\x12?\n\npolicy_tag\x18\x02 \x01(\x0b\x32+.google.cloud.datacatalog.v1beta1.PolicyTag\"T\n\x16\x44\x65letePolicyTagRequest\x12:\n\x04name\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$datacatalog.googleapis.com/PolicyTag\"\x8a\x01\n\x16UpdatePolicyTagRequest\x12?\n\npolicy_tag\x18\x01 \x01(\x0b\x32+.google.cloud.datacatalog.v1beta1.PolicyTag\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"|\n\x15ListPolicyTagsRequest\x12<\n\x06parent\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\x12$datacatalog.googleapis.com/PolicyTag\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"s\n\x16ListPolicyTagsResponse\x12@\n\x0bpolicy_tags\x18\x01 \x03(\x0b\x32+.google.cloud.datacatalog.v1beta1.PolicyTag\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"Q\n\x13GetPolicyTagRequest\x12:\n\x04name\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$datacatalog.googleapis.com/PolicyTag2\xe5\x16\n\x10PolicyTagManager\x12\xce\x01\n\x0e\x43reateTaxonomy\x12\x37.google.cloud.datacatalog.v1beta1.CreateTaxonomyRequest\x1a*.google.cloud.datacatalog.v1beta1.Taxonomy\"W\x82\xd3\xe4\x93\x02?\"3/v1beta1/{parent=projects/*/locations/*}/taxonomies:\x08taxonomy\xda\x41\x0fparent,taxonomy\x12\xa5\x01\n\x0e\x44\x65leteTaxonomy\x12\x37.google.cloud.datacatalog.v1beta1.DeleteTaxonomyRequest\x1a\x16.google.protobuf.Empty\"B\x82\xd3\xe4\x93\x02\x35*3/v1beta1/{name=projects/*/locations/*/taxonomies/*}\xda\x41\x04name\x12\xd0\x01\n\x0eUpdateTaxonomy\x12\x37.google.cloud.datacatalog.v1beta1.UpdateTaxonomyRequest\x1a*.google.cloud.datacatalog.v1beta1.Taxonomy\"Y\x82\xd3\xe4\x93\x02H2</v1beta1/{taxonomy.name=projects/*/locations/*/taxonomies/*}:\x08taxonomy\xda\x41\x08taxonomy\x12\xc9\x01\n\x0eListTaxonomies\x12\x37.google.cloud.datacatalog.v1beta1.ListTaxonomiesRequest\x1a\x38.google.cloud.datacatalog.v1beta1.ListTaxonomiesResponse\"D\x82\xd3\xe4\x93\x02\x35\x12\x33/v1beta1/{parent=projects/*/locations/*}/taxonomies\xda\x41\x06parent\x12\xb3\x01\n\x0bGetTaxonomy\x12\x34.google.cloud.datacatalog.v1beta1.GetTaxonomyRequest\x1a*.google.cloud.datacatalog.v1beta1.Taxonomy\"B\x82\xd3\xe4\x93\x02\x35\x12\x33/v1beta1/{name=projects/*/locations/*/taxonomies/*}\xda\x41\x04name\x12\xe2\x01\n\x0f\x43reatePolicyTag\x12\x38.google.cloud.datacatalog.v1beta1.CreatePolicyTagRequest\x1a+.google.cloud.datacatalog.v1beta1.PolicyTag\"h\x82\xd3\xe4\x93\x02N\"@/v1beta1/{parent=projects/*/locations/*/taxonomies/*}/policyTags:\npolicy_tag\xda\x41\x11parent,policy_tag\x12\xb4\x01\n\x0f\x44\x65letePolicyTag\x12\x38.google.cloud.datacatalog.v1beta1.DeletePolicyTagRequest\x1a\x16.google.protobuf.Empty\"O\x82\xd3\xe4\x93\x02\x42*@/v1beta1/{name=projects/*/locations/*/taxonomies/*/policyTags/*}\xda\x41\x04name\x12\xe6\x01\n\x0fUpdatePolicyTag\x12\x38.google.cloud.datacatalog.v1beta1.UpdatePolicyTagRequest\x1a+.google.cloud.datacatalog.v1beta1.PolicyTag\"l\x82\xd3\xe4\x93\x02Y2K/v1beta1/{policy_tag.name=projects/*/locations/*/taxonomies/*/policyTags/*}:\npolicy_tag\xda\x41\npolicy_tag\x12\xd6\x01\n\x0eListPolicyTags\x12\x37.google.cloud.datacatalog.v1beta1.ListPolicyTagsRequest\x1a\x38.google.cloud.datacatalog.v1beta1.ListPolicyTagsResponse\"Q\x82\xd3\xe4\x93\x02\x42\x12@/v1beta1/{parent=projects/*/locations/*/taxonomies/*}/policyTags\xda\x41\x06parent\x12\xc3\x01\n\x0cGetPolicyTag\x12\x35.google.cloud.datacatalog.v1beta1.GetPolicyTagRequest\x1a+.google.cloud.datacatalog.v1beta1.PolicyTag\"O\x82\xd3\xe4\x93\x02\x42\x12@/v1beta1/{name=projects/*/locations/*/taxonomies/*/policyTags/*}\xda\x41\x04name\x12\xf4\x01\n\x0cGetIamPolicy\x12\".google.iam.v1.GetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"\xa8\x01\x82\xd3\xe4\x93\x02\xa1\x01\"D/v1beta1/{resource=projects/*/locations/*/taxonomies/*}:getIamPolicy:\x01*ZV\"Q/v1beta1/{resource=projects/*/locations/*/taxonomies/*/policyTags/*}:getIamPolicy:\x01*\x12\xf4\x01\n\x0cSetIamPolicy\x12\".google.iam.v1.SetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"\xa8\x01\x82\xd3\xe4\x93\x02\xa1\x01\"D/v1beta1/{resource=projects/*/locations/*/taxonomies/*}:setIamPolicy:\x01*ZV\"Q/v1beta1/{resource=projects/*/locations/*/taxonomies/*/policyTags/*}:setIamPolicy:\x01*\x12\xa0\x02\n\x12TestIamPermissions\x12(.google.iam.v1.TestIamPermissionsRequest\x1a).google.iam.v1.TestIamPermissionsResponse\"\xb4\x01\x82\xd3\xe4\x93\x02\xad\x01\"J/v1beta1/{resource=projects/*/locations/*/taxonomies/*}:testIamPermissions:\x01*Z\\\"W/v1beta1/{resource=projects/*/locations/*/taxonomies/*/policyTags/*}:testIamPermissions:\x01*\x1aN\xca\x41\x1a\x64\x61tacatalog.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xf6\x01\n$com.google.cloud.datacatalog.v1beta1B\x15PolicyTagManagerProtoP\x01ZFcloud.google.com/go/datacatalog/apiv1beta1/datacatalogpb;datacatalogpb\xf8\x01\x01\xaa\x02 Google.Cloud.DataCatalog.V1Beta1\xca\x02 Google\\Cloud\\DataCatalog\\V1beta1\xea\x02#Google::Cloud::DataCatalog::V1beta1b\x06proto3"
|
20
|
+
|
21
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
22
|
+
|
23
|
+
begin
|
24
|
+
pool.add_serialized_file(descriptor_data)
|
25
|
+
rescue TypeError => e
|
26
|
+
# Compatibility code: will be removed in the next major version.
|
27
|
+
require 'google/protobuf/descriptor_pb'
|
28
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
29
|
+
parsed.clear_dependency
|
30
|
+
serialized = parsed.class.encode(parsed)
|
31
|
+
file = pool.add_serialized_file(serialized)
|
32
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
33
|
+
imports = [
|
34
|
+
["google.cloud.datacatalog.v1beta1.SystemTimestamps", "google/cloud/datacatalog/v1beta1/timestamps.proto"],
|
35
|
+
["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
|
36
|
+
]
|
37
|
+
imports.each do |type_name, expected_filename|
|
38
|
+
import_file = pool.lookup(type_name).file_descriptor
|
39
|
+
if import_file.name != expected_filename
|
40
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
41
|
+
end
|
42
|
+
end
|
43
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
44
|
+
warn "This will become an error in the next major version."
|
45
|
+
end
|
46
|
+
|
47
|
+
module Google
|
48
|
+
module Cloud
|
49
|
+
module DataCatalog
|
50
|
+
module V1beta1
|
51
|
+
Taxonomy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1beta1.Taxonomy").msgclass
|
52
|
+
Taxonomy::Service = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1beta1.Taxonomy.Service").msgclass
|
53
|
+
Taxonomy::PolicyType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1beta1.Taxonomy.PolicyType").enummodule
|
54
|
+
PolicyTag = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1beta1.PolicyTag").msgclass
|
55
|
+
CreateTaxonomyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1beta1.CreateTaxonomyRequest").msgclass
|
56
|
+
DeleteTaxonomyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1beta1.DeleteTaxonomyRequest").msgclass
|
57
|
+
UpdateTaxonomyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1beta1.UpdateTaxonomyRequest").msgclass
|
58
|
+
ListTaxonomiesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1beta1.ListTaxonomiesRequest").msgclass
|
59
|
+
ListTaxonomiesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1beta1.ListTaxonomiesResponse").msgclass
|
60
|
+
GetTaxonomyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1beta1.GetTaxonomyRequest").msgclass
|
61
|
+
CreatePolicyTagRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1beta1.CreatePolicyTagRequest").msgclass
|
62
|
+
DeletePolicyTagRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1beta1.DeletePolicyTagRequest").msgclass
|
63
|
+
UpdatePolicyTagRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1beta1.UpdatePolicyTagRequest").msgclass
|
64
|
+
ListPolicyTagsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1beta1.ListPolicyTagsRequest").msgclass
|
65
|
+
ListPolicyTagsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1beta1.ListPolicyTagsResponse").msgclass
|
66
|
+
GetPolicyTagRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1beta1.GetPolicyTagRequest").msgclass
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
70
|
+
end
|
@@ -0,0 +1,73 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: google/cloud/datacatalog/v1beta1/policytagmanager.proto for package 'Google.Cloud.DataCatalog.V1beta1'
|
3
|
+
# Original file comments:
|
4
|
+
# Copyright 2023 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/v1beta1/policytagmanager_pb'
|
21
|
+
|
22
|
+
module Google
|
23
|
+
module Cloud
|
24
|
+
module DataCatalog
|
25
|
+
module V1beta1
|
26
|
+
module PolicyTagManager
|
27
|
+
# The policy tag manager API service allows clients to manage their taxonomies
|
28
|
+
# and policy tags.
|
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.v1beta1.PolicyTagManager'
|
36
|
+
|
37
|
+
# Creates a taxonomy in the specified project.
|
38
|
+
rpc :CreateTaxonomy, ::Google::Cloud::DataCatalog::V1beta1::CreateTaxonomyRequest, ::Google::Cloud::DataCatalog::V1beta1::Taxonomy
|
39
|
+
# Deletes a taxonomy. This operation will also delete all
|
40
|
+
# policy tags in this taxonomy along with their associated policies.
|
41
|
+
rpc :DeleteTaxonomy, ::Google::Cloud::DataCatalog::V1beta1::DeleteTaxonomyRequest, ::Google::Protobuf::Empty
|
42
|
+
# Updates a taxonomy.
|
43
|
+
rpc :UpdateTaxonomy, ::Google::Cloud::DataCatalog::V1beta1::UpdateTaxonomyRequest, ::Google::Cloud::DataCatalog::V1beta1::Taxonomy
|
44
|
+
# Lists all taxonomies in a project in a particular location that the caller
|
45
|
+
# has permission to view.
|
46
|
+
rpc :ListTaxonomies, ::Google::Cloud::DataCatalog::V1beta1::ListTaxonomiesRequest, ::Google::Cloud::DataCatalog::V1beta1::ListTaxonomiesResponse
|
47
|
+
# Gets a taxonomy.
|
48
|
+
rpc :GetTaxonomy, ::Google::Cloud::DataCatalog::V1beta1::GetTaxonomyRequest, ::Google::Cloud::DataCatalog::V1beta1::Taxonomy
|
49
|
+
# Creates a policy tag in the specified taxonomy.
|
50
|
+
rpc :CreatePolicyTag, ::Google::Cloud::DataCatalog::V1beta1::CreatePolicyTagRequest, ::Google::Cloud::DataCatalog::V1beta1::PolicyTag
|
51
|
+
# Deletes a policy tag. Also deletes all of its descendant policy tags.
|
52
|
+
rpc :DeletePolicyTag, ::Google::Cloud::DataCatalog::V1beta1::DeletePolicyTagRequest, ::Google::Protobuf::Empty
|
53
|
+
# Updates a policy tag.
|
54
|
+
rpc :UpdatePolicyTag, ::Google::Cloud::DataCatalog::V1beta1::UpdatePolicyTagRequest, ::Google::Cloud::DataCatalog::V1beta1::PolicyTag
|
55
|
+
# Lists all policy tags in a taxonomy.
|
56
|
+
rpc :ListPolicyTags, ::Google::Cloud::DataCatalog::V1beta1::ListPolicyTagsRequest, ::Google::Cloud::DataCatalog::V1beta1::ListPolicyTagsResponse
|
57
|
+
# Gets a policy tag.
|
58
|
+
rpc :GetPolicyTag, ::Google::Cloud::DataCatalog::V1beta1::GetPolicyTagRequest, ::Google::Cloud::DataCatalog::V1beta1::PolicyTag
|
59
|
+
# Gets the IAM policy for a taxonomy or a policy tag.
|
60
|
+
rpc :GetIamPolicy, ::Google::Iam::V1::GetIamPolicyRequest, ::Google::Iam::V1::Policy
|
61
|
+
# Sets the IAM policy for a taxonomy or a policy tag.
|
62
|
+
rpc :SetIamPolicy, ::Google::Iam::V1::SetIamPolicyRequest, ::Google::Iam::V1::Policy
|
63
|
+
# Returns the permissions that a caller has on the specified taxonomy or
|
64
|
+
# policy tag.
|
65
|
+
rpc :TestIamPermissions, ::Google::Iam::V1::TestIamPermissionsRequest, ::Google::Iam::V1::TestIamPermissionsResponse
|
66
|
+
end
|
67
|
+
|
68
|
+
Stub = Service.rpc_stub_class
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|
72
|
+
end
|
73
|
+
end
|
@@ -0,0 +1,55 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: google/cloud/datacatalog/v1beta1/policytagmanagerserialization.proto
|
4
|
+
|
5
|
+
require 'google/protobuf'
|
6
|
+
|
7
|
+
require 'google/api/annotations_pb'
|
8
|
+
require 'google/api/client_pb'
|
9
|
+
require 'google/api/field_behavior_pb'
|
10
|
+
require 'google/api/resource_pb'
|
11
|
+
require 'google/cloud/datacatalog/v1beta1/policytagmanager_pb'
|
12
|
+
|
13
|
+
|
14
|
+
descriptor_data = "\nDgoogle/cloud/datacatalog/v1beta1/policytagmanagerserialization.proto\x12 google.cloud.datacatalog.v1beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x37google/cloud/datacatalog/v1beta1/policytagmanager.proto\"\xe7\x01\n\x12SerializedTaxonomy\x12\x19\n\x0c\x64isplay_name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12J\n\x0bpolicy_tags\x18\x03 \x03(\x0b\x32\x35.google.cloud.datacatalog.v1beta1.SerializedPolicyTag\x12U\n\x16\x61\x63tivated_policy_types\x18\x04 \x03(\x0e\x32\x35.google.cloud.datacatalog.v1beta1.Taxonomy.PolicyType\"\xab\x01\n\x13SerializedPolicyTag\x12\x12\n\npolicy_tag\x18\x01 \x01(\t\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12P\n\x11\x63hild_policy_tags\x18\x04 \x03(\x0b\x32\x35.google.cloud.datacatalog.v1beta1.SerializedPolicyTag\"\xa9\x01\n\x17ImportTaxonomiesRequest\x12;\n\x06parent\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\x12#datacatalog.googleapis.com/Taxonomy\x12G\n\rinline_source\x18\x02 \x01(\x0b\x32..google.cloud.datacatalog.v1beta1.InlineSourceH\x00\x42\x08\n\x06source\"]\n\x0cInlineSource\x12M\n\ntaxonomies\x18\x01 \x03(\x0b\x32\x34.google.cloud.datacatalog.v1beta1.SerializedTaxonomyB\x03\xe0\x41\x02\"Z\n\x18ImportTaxonomiesResponse\x12>\n\ntaxonomies\x18\x01 \x03(\x0b\x32*.google.cloud.datacatalog.v1beta1.Taxonomy\"\xc7\x01\n\x17\x45xportTaxonomiesRequest\x12;\n\x06parent\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\x12#datacatalog.googleapis.com/Taxonomy\x12?\n\ntaxonomies\x18\x02 \x03(\tB+\xe0\x41\x02\xfa\x41%\n#datacatalog.googleapis.com/Taxonomy\x12\x1f\n\x15serialized_taxonomies\x18\x03 \x01(\x08H\x00\x42\r\n\x0b\x64\x65stination\"d\n\x18\x45xportTaxonomiesResponse\x12H\n\ntaxonomies\x18\x01 \x03(\x0b\x32\x34.google.cloud.datacatalog.v1beta1.SerializedTaxonomy2\x92\x04\n\x1dPolicyTagManagerSerialization\x12\xd0\x01\n\x10ImportTaxonomies\x12\x39.google.cloud.datacatalog.v1beta1.ImportTaxonomiesRequest\x1a:.google.cloud.datacatalog.v1beta1.ImportTaxonomiesResponse\"E\x82\xd3\xe4\x93\x02?\":/v1beta1/{parent=projects/*/locations/*}/taxonomies:import:\x01*\x12\xcd\x01\n\x10\x45xportTaxonomies\x12\x39.google.cloud.datacatalog.v1beta1.ExportTaxonomiesRequest\x1a:.google.cloud.datacatalog.v1beta1.ExportTaxonomiesResponse\"B\x82\xd3\xe4\x93\x02<\x12:/v1beta1/{parent=projects/*/locations/*}/taxonomies:export\x1aN\xca\x41\x1a\x64\x61tacatalog.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\x83\x02\n$com.google.cloud.datacatalog.v1beta1B\"PolicyTagManagerSerializationProtoP\x01ZFcloud.google.com/go/datacatalog/apiv1beta1/datacatalogpb;datacatalogpb\xf8\x01\x01\xaa\x02 Google.Cloud.DataCatalog.V1Beta1\xca\x02 Google\\Cloud\\DataCatalog\\V1beta1\xea\x02#Google::Cloud::DataCatalog::V1beta1b\x06proto3"
|
15
|
+
|
16
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
17
|
+
|
18
|
+
begin
|
19
|
+
pool.add_serialized_file(descriptor_data)
|
20
|
+
rescue TypeError => e
|
21
|
+
# Compatibility code: will be removed in the next major version.
|
22
|
+
require 'google/protobuf/descriptor_pb'
|
23
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
24
|
+
parsed.clear_dependency
|
25
|
+
serialized = parsed.class.encode(parsed)
|
26
|
+
file = pool.add_serialized_file(serialized)
|
27
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
28
|
+
imports = [
|
29
|
+
["google.cloud.datacatalog.v1beta1.Taxonomy", "google/cloud/datacatalog/v1beta1/policytagmanager.proto"],
|
30
|
+
]
|
31
|
+
imports.each do |type_name, expected_filename|
|
32
|
+
import_file = pool.lookup(type_name).file_descriptor
|
33
|
+
if import_file.name != expected_filename
|
34
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
35
|
+
end
|
36
|
+
end
|
37
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
38
|
+
warn "This will become an error in the next major version."
|
39
|
+
end
|
40
|
+
|
41
|
+
module Google
|
42
|
+
module Cloud
|
43
|
+
module DataCatalog
|
44
|
+
module V1beta1
|
45
|
+
SerializedTaxonomy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1beta1.SerializedTaxonomy").msgclass
|
46
|
+
SerializedPolicyTag = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1beta1.SerializedPolicyTag").msgclass
|
47
|
+
ImportTaxonomiesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1beta1.ImportTaxonomiesRequest").msgclass
|
48
|
+
InlineSource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1beta1.InlineSource").msgclass
|
49
|
+
ImportTaxonomiesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1beta1.ImportTaxonomiesResponse").msgclass
|
50
|
+
ExportTaxonomiesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1beta1.ExportTaxonomiesRequest").msgclass
|
51
|
+
ExportTaxonomiesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1beta1.ExportTaxonomiesResponse").msgclass
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
@@ -0,0 +1,55 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: google/cloud/datacatalog/v1beta1/policytagmanagerserialization.proto for package 'Google.Cloud.DataCatalog.V1beta1'
|
3
|
+
# Original file comments:
|
4
|
+
# Copyright 2023 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/v1beta1/policytagmanagerserialization_pb'
|
21
|
+
|
22
|
+
module Google
|
23
|
+
module Cloud
|
24
|
+
module DataCatalog
|
25
|
+
module V1beta1
|
26
|
+
module PolicyTagManagerSerialization
|
27
|
+
# Policy tag manager serialization API service allows clients to manipulate
|
28
|
+
# their taxonomies and policy tags data with serialized format.
|
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.v1beta1.PolicyTagManagerSerialization'
|
36
|
+
|
37
|
+
# Imports all taxonomies and their policy tags to a project as new
|
38
|
+
# taxonomies.
|
39
|
+
#
|
40
|
+
# This method provides a bulk taxonomy / policy tag creation using nested
|
41
|
+
# proto structure.
|
42
|
+
rpc :ImportTaxonomies, ::Google::Cloud::DataCatalog::V1beta1::ImportTaxonomiesRequest, ::Google::Cloud::DataCatalog::V1beta1::ImportTaxonomiesResponse
|
43
|
+
# Exports all taxonomies and their policy tags in a project.
|
44
|
+
#
|
45
|
+
# This method generates SerializedTaxonomy protos with nested policy tags
|
46
|
+
# that can be used as an input for future ImportTaxonomies calls.
|
47
|
+
rpc :ExportTaxonomies, ::Google::Cloud::DataCatalog::V1beta1::ExportTaxonomiesRequest, ::Google::Cloud::DataCatalog::V1beta1::ExportTaxonomiesResponse
|
48
|
+
end
|
49
|
+
|
50
|
+
Stub = Service.rpc_stub_class
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
@@ -0,0 +1,45 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: google/cloud/datacatalog/v1beta1/schema.proto
|
4
|
+
|
5
|
+
require 'google/protobuf'
|
6
|
+
|
7
|
+
require 'google/api/field_behavior_pb'
|
8
|
+
|
9
|
+
|
10
|
+
descriptor_data = "\n-google/cloud/datacatalog/v1beta1/schema.proto\x12 google.cloud.datacatalog.v1beta1\x1a\x1fgoogle/api/field_behavior.proto\"N\n\x06Schema\x12\x44\n\x07\x63olumns\x18\x02 \x03(\x0b\x32..google.cloud.datacatalog.v1beta1.ColumnSchemaB\x03\xe0\x41\x02\"\xac\x01\n\x0c\x43olumnSchema\x12\x13\n\x06\x63olumn\x18\x06 \x01(\tB\x03\xe0\x41\x02\x12\x11\n\x04type\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x18\n\x0b\x64\x65scription\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x11\n\x04mode\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12G\n\nsubcolumns\x18\x07 \x03(\x0b\x32..google.cloud.datacatalog.v1beta1.ColumnSchemaB\x03\xe0\x41\x01\x42\xdf\x01\n$com.google.cloud.datacatalog.v1beta1P\x01ZFcloud.google.com/go/datacatalog/apiv1beta1/datacatalogpb;datacatalogpb\xf8\x01\x01\xaa\x02 Google.Cloud.DataCatalog.V1Beta1\xca\x02 Google\\Cloud\\DataCatalog\\V1beta1\xea\x02#Google::Cloud::DataCatalog::V1beta1b\x06proto3"
|
11
|
+
|
12
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
13
|
+
|
14
|
+
begin
|
15
|
+
pool.add_serialized_file(descriptor_data)
|
16
|
+
rescue TypeError => e
|
17
|
+
# Compatibility code: will be removed in the next major version.
|
18
|
+
require 'google/protobuf/descriptor_pb'
|
19
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
20
|
+
parsed.clear_dependency
|
21
|
+
serialized = parsed.class.encode(parsed)
|
22
|
+
file = pool.add_serialized_file(serialized)
|
23
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
24
|
+
imports = [
|
25
|
+
]
|
26
|
+
imports.each do |type_name, expected_filename|
|
27
|
+
import_file = pool.lookup(type_name).file_descriptor
|
28
|
+
if import_file.name != expected_filename
|
29
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
30
|
+
end
|
31
|
+
end
|
32
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
33
|
+
warn "This will become an error in the next major version."
|
34
|
+
end
|
35
|
+
|
36
|
+
module Google
|
37
|
+
module Cloud
|
38
|
+
module DataCatalog
|
39
|
+
module V1beta1
|
40
|
+
Schema = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1beta1.Schema").msgclass
|
41
|
+
ColumnSchema = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1beta1.ColumnSchema").msgclass
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|