google-cloud-data_catalog-v1 0.4.5 → 0.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/LICENSE.md +188 -190
- data/README.md +66 -2
- data/lib/google/cloud/data_catalog/v1.rb +5 -0
- data/lib/google/cloud/data_catalog/v1/data_catalog/client.rb +244 -120
- data/lib/google/cloud/data_catalog/v1/data_catalog/paths.rb +23 -0
- data/lib/google/cloud/data_catalog/v1/policy_tag_manager.rb +54 -0
- data/lib/google/cloud/data_catalog/v1/policy_tag_manager/client.rb +1321 -0
- data/lib/google/cloud/data_catalog/v1/policy_tag_manager/credentials.rb +51 -0
- data/lib/google/cloud/data_catalog/v1/policy_tag_manager/paths.rb +90 -0
- data/lib/google/cloud/data_catalog/v1/policy_tag_manager_serialization.rb +51 -0
- data/lib/google/cloud/data_catalog/v1/policy_tag_manager_serialization/client.rb +474 -0
- data/lib/google/cloud/data_catalog/v1/policy_tag_manager_serialization/credentials.rb +51 -0
- data/lib/google/cloud/data_catalog/v1/policy_tag_manager_serialization/paths.rb +69 -0
- data/lib/google/cloud/data_catalog/v1/version.rb +1 -1
- data/lib/google/cloud/datacatalog/v1/common_pb.rb +1 -0
- data/lib/google/cloud/datacatalog/v1/data_source_pb.rb +30 -0
- data/lib/google/cloud/datacatalog/v1/datacatalog_pb.rb +25 -0
- data/lib/google/cloud/datacatalog/v1/datacatalog_services_pb.rb +33 -30
- data/lib/google/cloud/datacatalog/v1/policytagmanager_pb.rb +107 -0
- data/lib/google/cloud/datacatalog/v1/policytagmanager_services_pb.rb +86 -0
- data/lib/google/cloud/datacatalog/v1/policytagmanagerserialization_pb.rb +70 -0
- data/lib/google/cloud/datacatalog/v1/policytagmanagerserialization_services_pb.rb +62 -0
- data/lib/google/cloud/datacatalog/v1/search_pb.rb +2 -0
- data/lib/google/cloud/datacatalog/v1/table_spec_pb.rb +1 -0
- data/lib/google/cloud/datacatalog/v1/tags_pb.rb +1 -0
- data/proto_docs/google/api/field_behavior.rb +6 -0
- data/proto_docs/google/api/resource.rb +50 -14
- data/proto_docs/google/cloud/datacatalog/v1/common.rb +3 -0
- data/proto_docs/google/cloud/datacatalog/v1/data_source.rb +51 -0
- data/proto_docs/google/cloud/datacatalog/v1/datacatalog.rb +212 -111
- data/proto_docs/google/cloud/datacatalog/v1/policytagmanager.rb +303 -0
- data/proto_docs/google/cloud/datacatalog/v1/policytagmanagerserialization.rb +141 -0
- data/proto_docs/google/cloud/datacatalog/v1/schema.rb +16 -4
- data/proto_docs/google/cloud/datacatalog/v1/search.rb +14 -0
- data/proto_docs/google/cloud/datacatalog/v1/table_spec.rb +3 -0
- data/proto_docs/google/cloud/datacatalog/v1/tags.rb +44 -21
- data/proto_docs/google/protobuf/timestamp.rb +10 -1
- metadata +28 -9
@@ -0,0 +1,51 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2021 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
require "googleauth"
|
20
|
+
|
21
|
+
module Google
|
22
|
+
module Cloud
|
23
|
+
module DataCatalog
|
24
|
+
module V1
|
25
|
+
module PolicyTagManagerSerialization
|
26
|
+
# Credentials for the PolicyTagManagerSerialization API.
|
27
|
+
class Credentials < ::Google::Auth::Credentials
|
28
|
+
self.scope = [
|
29
|
+
"https://www.googleapis.com/auth/cloud-platform"
|
30
|
+
]
|
31
|
+
self.env_vars = [
|
32
|
+
"DATA_CATALOG_CREDENTIALS",
|
33
|
+
"DATA_CATALOG_KEYFILE",
|
34
|
+
"GOOGLE_CLOUD_CREDENTIALS",
|
35
|
+
"GOOGLE_CLOUD_KEYFILE",
|
36
|
+
"GCLOUD_KEYFILE",
|
37
|
+
"DATA_CATALOG_CREDENTIALS_JSON",
|
38
|
+
"DATA_CATALOG_KEYFILE_JSON",
|
39
|
+
"GOOGLE_CLOUD_CREDENTIALS_JSON",
|
40
|
+
"GOOGLE_CLOUD_KEYFILE_JSON",
|
41
|
+
"GCLOUD_KEYFILE_JSON"
|
42
|
+
]
|
43
|
+
self.paths = [
|
44
|
+
"~/.config/google_cloud/application_default_credentials.json"
|
45
|
+
]
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
@@ -0,0 +1,69 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2021 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Cloud
|
22
|
+
module DataCatalog
|
23
|
+
module V1
|
24
|
+
module PolicyTagManagerSerialization
|
25
|
+
# Path helper methods for the PolicyTagManagerSerialization API.
|
26
|
+
module Paths
|
27
|
+
##
|
28
|
+
# Create a fully-qualified Location resource string.
|
29
|
+
#
|
30
|
+
# The resource will be in the following format:
|
31
|
+
#
|
32
|
+
# `projects/{project}/locations/{location}`
|
33
|
+
#
|
34
|
+
# @param project [String]
|
35
|
+
# @param location [String]
|
36
|
+
#
|
37
|
+
# @return [::String]
|
38
|
+
def location_path project:, location:
|
39
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
40
|
+
|
41
|
+
"projects/#{project}/locations/#{location}"
|
42
|
+
end
|
43
|
+
|
44
|
+
##
|
45
|
+
# Create a fully-qualified Taxonomy resource string.
|
46
|
+
#
|
47
|
+
# The resource will be in the following format:
|
48
|
+
#
|
49
|
+
# `projects/{project}/locations/{location}/taxonomies/{taxonomy}`
|
50
|
+
#
|
51
|
+
# @param project [String]
|
52
|
+
# @param location [String]
|
53
|
+
# @param taxonomy [String]
|
54
|
+
#
|
55
|
+
# @return [::String]
|
56
|
+
def taxonomy_path project:, location:, taxonomy:
|
57
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
58
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
59
|
+
|
60
|
+
"projects/#{project}/locations/#{location}/taxonomies/#{taxonomy}"
|
61
|
+
end
|
62
|
+
|
63
|
+
extend self
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
@@ -0,0 +1,30 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/cloud/datacatalog/v1/data_source.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/data_source.proto", :syntax => :proto3) do
|
9
|
+
add_message "google.cloud.datacatalog.v1.DataSource" do
|
10
|
+
optional :service, :enum, 1, "google.cloud.datacatalog.v1.DataSource.Service"
|
11
|
+
optional :resource, :string, 2
|
12
|
+
end
|
13
|
+
add_enum "google.cloud.datacatalog.v1.DataSource.Service" do
|
14
|
+
value :SERVICE_UNSPECIFIED, 0
|
15
|
+
value :CLOUD_STORAGE, 1
|
16
|
+
value :BIGQUERY, 2
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
module Google
|
22
|
+
module Cloud
|
23
|
+
module DataCatalog
|
24
|
+
module V1
|
25
|
+
DataSource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.DataSource").msgclass
|
26
|
+
DataSource::Service = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.DataSource.Service").enummodule
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
@@ -8,6 +8,7 @@ require 'google/api/client_pb'
|
|
8
8
|
require 'google/api/field_behavior_pb'
|
9
9
|
require 'google/api/resource_pb'
|
10
10
|
require 'google/cloud/datacatalog/v1/common_pb'
|
11
|
+
require 'google/cloud/datacatalog/v1/data_source_pb'
|
11
12
|
require 'google/cloud/datacatalog/v1/gcs_fileset_spec_pb'
|
12
13
|
require 'google/cloud/datacatalog/v1/schema_pb'
|
13
14
|
require 'google/cloud/datacatalog/v1/search_pb'
|
@@ -18,6 +19,7 @@ require 'google/iam/v1/iam_policy_pb'
|
|
18
19
|
require 'google/iam/v1/policy_pb'
|
19
20
|
require 'google/protobuf/empty_pb'
|
20
21
|
require 'google/protobuf/field_mask_pb'
|
22
|
+
require 'google/protobuf/timestamp_pb'
|
21
23
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
22
24
|
add_file("google/cloud/datacatalog/v1/datacatalog.proto", :syntax => :proto3) do
|
23
25
|
add_message "google.cloud.datacatalog.v1.SearchCatalogRequest" do
|
@@ -83,15 +85,18 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
83
85
|
oneof :target_name do
|
84
86
|
optional :linked_resource, :string, 1
|
85
87
|
optional :sql_resource, :string, 3
|
88
|
+
optional :fully_qualified_name, :string, 5
|
86
89
|
end
|
87
90
|
end
|
88
91
|
add_message "google.cloud.datacatalog.v1.Entry" do
|
89
92
|
optional :name, :string, 1
|
90
93
|
optional :linked_resource, :string, 9
|
94
|
+
optional :fully_qualified_name, :string, 29
|
91
95
|
optional :display_name, :string, 3
|
92
96
|
optional :description, :string, 4
|
93
97
|
optional :schema, :message, 5, "google.cloud.datacatalog.v1.Schema"
|
94
98
|
optional :source_system_timestamps, :message, 7, "google.cloud.datacatalog.v1.SystemTimestamps"
|
99
|
+
optional :data_source, :message, 20, "google.cloud.datacatalog.v1.DataSource"
|
95
100
|
oneof :entry_type do
|
96
101
|
optional :type, :enum, 2, "google.cloud.datacatalog.v1.EntryType"
|
97
102
|
optional :user_specified_type, :string, 16
|
@@ -105,6 +110,17 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
105
110
|
optional :bigquery_table_spec, :message, 12, "google.cloud.datacatalog.v1.BigQueryTableSpec"
|
106
111
|
optional :bigquery_date_sharded_spec, :message, 15, "google.cloud.datacatalog.v1.BigQueryDateShardedSpec"
|
107
112
|
end
|
113
|
+
oneof :spec do
|
114
|
+
optional :database_table_spec, :message, 24, "google.cloud.datacatalog.v1.DatabaseTableSpec"
|
115
|
+
end
|
116
|
+
end
|
117
|
+
add_message "google.cloud.datacatalog.v1.DatabaseTableSpec" do
|
118
|
+
optional :type, :enum, 1, "google.cloud.datacatalog.v1.DatabaseTableSpec.TableType"
|
119
|
+
end
|
120
|
+
add_enum "google.cloud.datacatalog.v1.DatabaseTableSpec.TableType" do
|
121
|
+
value :TABLE_TYPE_UNSPECIFIED, 0
|
122
|
+
value :NATIVE, 1
|
123
|
+
value :EXTERNAL, 2
|
108
124
|
end
|
109
125
|
add_message "google.cloud.datacatalog.v1.EntryGroup" do
|
110
126
|
optional :name, :string, 1
|
@@ -153,6 +169,10 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
153
169
|
optional :name, :string, 1
|
154
170
|
optional :new_tag_template_field_id, :string, 2
|
155
171
|
end
|
172
|
+
add_message "google.cloud.datacatalog.v1.RenameTagTemplateFieldEnumValueRequest" do
|
173
|
+
optional :name, :string, 1
|
174
|
+
optional :new_enum_value_display_name, :string, 2
|
175
|
+
end
|
156
176
|
add_message "google.cloud.datacatalog.v1.DeleteTagTemplateFieldRequest" do
|
157
177
|
optional :name, :string, 1
|
158
178
|
optional :force, :bool, 2
|
@@ -182,6 +202,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
182
202
|
value :MODEL, 5
|
183
203
|
value :DATA_STREAM, 3
|
184
204
|
value :FILESET, 4
|
205
|
+
value :DATABASE, 7
|
206
|
+
value :SERVICE, 14
|
185
207
|
end
|
186
208
|
end
|
187
209
|
end
|
@@ -205,6 +227,8 @@ module Google
|
|
205
227
|
GetEntryRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.GetEntryRequest").msgclass
|
206
228
|
LookupEntryRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.LookupEntryRequest").msgclass
|
207
229
|
Entry = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.Entry").msgclass
|
230
|
+
DatabaseTableSpec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.DatabaseTableSpec").msgclass
|
231
|
+
DatabaseTableSpec::TableType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.DatabaseTableSpec.TableType").enummodule
|
208
232
|
EntryGroup = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.EntryGroup").msgclass
|
209
233
|
CreateTagTemplateRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.CreateTagTemplateRequest").msgclass
|
210
234
|
GetTagTemplateRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.GetTagTemplateRequest").msgclass
|
@@ -216,6 +240,7 @@ module Google
|
|
216
240
|
CreateTagTemplateFieldRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.CreateTagTemplateFieldRequest").msgclass
|
217
241
|
UpdateTagTemplateFieldRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.UpdateTagTemplateFieldRequest").msgclass
|
218
242
|
RenameTagTemplateFieldRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.RenameTagTemplateFieldRequest").msgclass
|
243
|
+
RenameTagTemplateFieldEnumValueRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.RenameTagTemplateFieldEnumValueRequest").msgclass
|
219
244
|
DeleteTagTemplateFieldRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.DeleteTagTemplateFieldRequest").msgclass
|
220
245
|
ListTagsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.ListTagsRequest").msgclass
|
221
246
|
ListTagsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.ListTagsResponse").msgclass
|
@@ -40,7 +40,7 @@ module Google
|
|
40
40
|
# This is a custom method
|
41
41
|
# (https://cloud.google.com/apis/design/custom_methods) and does not return
|
42
42
|
# the complete resource, only the resource identifier and high level
|
43
|
-
# fields. Clients can
|
43
|
+
# fields. Clients can subsequently call `Get` methods.
|
44
44
|
#
|
45
45
|
# Note that Data Catalog search queries do not guarantee full recall. Query
|
46
46
|
# results that match your query may not be returned, even in subsequent
|
@@ -50,7 +50,7 @@ module Google
|
|
50
50
|
# See [Data Catalog Search
|
51
51
|
# Syntax](https://cloud.google.com/data-catalog/docs/how-to/search-reference)
|
52
52
|
# for more information.
|
53
|
-
rpc :SearchCatalog, Google::Cloud::DataCatalog::V1::SearchCatalogRequest, Google::Cloud::DataCatalog::V1::SearchCatalogResponse
|
53
|
+
rpc :SearchCatalog, ::Google::Cloud::DataCatalog::V1::SearchCatalogRequest, ::Google::Cloud::DataCatalog::V1::SearchCatalogResponse
|
54
54
|
# Creates an EntryGroup.
|
55
55
|
#
|
56
56
|
# An entry group contains logically related entries together with Cloud
|
@@ -70,25 +70,25 @@ module Google
|
|
70
70
|
# the `parent` parameter (see [Data Catalog Resource Project]
|
71
71
|
# (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for
|
72
72
|
# more information).
|
73
|
-
rpc :CreateEntryGroup, Google::Cloud::DataCatalog::V1::CreateEntryGroupRequest, Google::Cloud::DataCatalog::V1::EntryGroup
|
73
|
+
rpc :CreateEntryGroup, ::Google::Cloud::DataCatalog::V1::CreateEntryGroupRequest, ::Google::Cloud::DataCatalog::V1::EntryGroup
|
74
74
|
# Gets an EntryGroup.
|
75
|
-
rpc :GetEntryGroup, Google::Cloud::DataCatalog::V1::GetEntryGroupRequest, Google::Cloud::DataCatalog::V1::EntryGroup
|
75
|
+
rpc :GetEntryGroup, ::Google::Cloud::DataCatalog::V1::GetEntryGroupRequest, ::Google::Cloud::DataCatalog::V1::EntryGroup
|
76
76
|
# Updates an EntryGroup. The user should enable the Data Catalog API in the
|
77
77
|
# project identified by the `entry_group.name` parameter (see [Data Catalog
|
78
78
|
# Resource Project]
|
79
79
|
# (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for
|
80
80
|
# more information).
|
81
|
-
rpc :UpdateEntryGroup, Google::Cloud::DataCatalog::V1::UpdateEntryGroupRequest, Google::Cloud::DataCatalog::V1::EntryGroup
|
81
|
+
rpc :UpdateEntryGroup, ::Google::Cloud::DataCatalog::V1::UpdateEntryGroupRequest, ::Google::Cloud::DataCatalog::V1::EntryGroup
|
82
82
|
# Deletes an EntryGroup. Only entry groups that do not contain entries can be
|
83
83
|
# deleted. Users should enable the Data Catalog API in the project
|
84
84
|
# identified by the `name` parameter (see [Data Catalog Resource Project]
|
85
85
|
# (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for
|
86
86
|
# more information).
|
87
|
-
rpc :DeleteEntryGroup, Google::Cloud::DataCatalog::V1::DeleteEntryGroupRequest, Google::Protobuf::Empty
|
87
|
+
rpc :DeleteEntryGroup, ::Google::Cloud::DataCatalog::V1::DeleteEntryGroupRequest, ::Google::Protobuf::Empty
|
88
88
|
# Lists entry groups.
|
89
|
-
rpc :ListEntryGroups, Google::Cloud::DataCatalog::V1::ListEntryGroupsRequest, Google::Cloud::DataCatalog::V1::ListEntryGroupsResponse
|
90
|
-
# Creates an entry. Only entries of 'FILESET'
|
91
|
-
# be created.
|
89
|
+
rpc :ListEntryGroups, ::Google::Cloud::DataCatalog::V1::ListEntryGroupsRequest, ::Google::Cloud::DataCatalog::V1::ListEntryGroupsResponse
|
90
|
+
# Creates an entry. Only entries of types 'FILESET', 'CLUSTER', 'DATA_STREAM'
|
91
|
+
# or with a user-specified type can be created.
|
92
92
|
#
|
93
93
|
# Users should enable the Data Catalog API in the project identified by
|
94
94
|
# the `parent` parameter (see [Data Catalog Resource Project]
|
@@ -96,13 +96,13 @@ module Google
|
|
96
96
|
# more information).
|
97
97
|
#
|
98
98
|
# A maximum of 100,000 entries may be created per entry group.
|
99
|
-
rpc :CreateEntry, Google::Cloud::DataCatalog::V1::CreateEntryRequest, Google::Cloud::DataCatalog::V1::Entry
|
99
|
+
rpc :CreateEntry, ::Google::Cloud::DataCatalog::V1::CreateEntryRequest, ::Google::Cloud::DataCatalog::V1::Entry
|
100
100
|
# Updates an existing entry.
|
101
101
|
# Users should enable the Data Catalog API in the project identified by
|
102
102
|
# the `entry.name` parameter (see [Data Catalog Resource Project]
|
103
103
|
# (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for
|
104
104
|
# more information).
|
105
|
-
rpc :UpdateEntry, Google::Cloud::DataCatalog::V1::UpdateEntryRequest, Google::Cloud::DataCatalog::V1::Entry
|
105
|
+
rpc :UpdateEntry, ::Google::Cloud::DataCatalog::V1::UpdateEntryRequest, ::Google::Cloud::DataCatalog::V1::Entry
|
106
106
|
# Deletes an existing entry. Only entries created through
|
107
107
|
# [CreateEntry][google.cloud.datacatalog.v1.DataCatalog.CreateEntry]
|
108
108
|
# method can be deleted.
|
@@ -110,23 +110,23 @@ module Google
|
|
110
110
|
# the `name` parameter (see [Data Catalog Resource Project]
|
111
111
|
# (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for
|
112
112
|
# more information).
|
113
|
-
rpc :DeleteEntry, Google::Cloud::DataCatalog::V1::DeleteEntryRequest, Google::Protobuf::Empty
|
113
|
+
rpc :DeleteEntry, ::Google::Cloud::DataCatalog::V1::DeleteEntryRequest, ::Google::Protobuf::Empty
|
114
114
|
# Gets an entry.
|
115
|
-
rpc :GetEntry, Google::Cloud::DataCatalog::V1::GetEntryRequest, Google::Cloud::DataCatalog::V1::Entry
|
115
|
+
rpc :GetEntry, ::Google::Cloud::DataCatalog::V1::GetEntryRequest, ::Google::Cloud::DataCatalog::V1::Entry
|
116
116
|
# Get an entry by target resource name. This method allows clients to use
|
117
117
|
# the resource name from the source Google Cloud Platform service to get the
|
118
118
|
# Data Catalog Entry.
|
119
|
-
rpc :LookupEntry, Google::Cloud::DataCatalog::V1::LookupEntryRequest, Google::Cloud::DataCatalog::V1::Entry
|
119
|
+
rpc :LookupEntry, ::Google::Cloud::DataCatalog::V1::LookupEntryRequest, ::Google::Cloud::DataCatalog::V1::Entry
|
120
120
|
# Lists entries.
|
121
|
-
rpc :ListEntries, Google::Cloud::DataCatalog::V1::ListEntriesRequest, Google::Cloud::DataCatalog::V1::ListEntriesResponse
|
121
|
+
rpc :ListEntries, ::Google::Cloud::DataCatalog::V1::ListEntriesRequest, ::Google::Cloud::DataCatalog::V1::ListEntriesResponse
|
122
122
|
# Creates a tag template. The user should enable the Data Catalog API in
|
123
123
|
# the project identified by the `parent` parameter (see [Data Catalog
|
124
124
|
# Resource
|
125
125
|
# Project](https://cloud.google.com/data-catalog/docs/concepts/resource-project)
|
126
126
|
# for more information).
|
127
|
-
rpc :CreateTagTemplate, Google::Cloud::DataCatalog::V1::CreateTagTemplateRequest, Google::Cloud::DataCatalog::V1::TagTemplate
|
127
|
+
rpc :CreateTagTemplate, ::Google::Cloud::DataCatalog::V1::CreateTagTemplateRequest, ::Google::Cloud::DataCatalog::V1::TagTemplate
|
128
128
|
# Gets a tag template.
|
129
|
-
rpc :GetTagTemplate, Google::Cloud::DataCatalog::V1::GetTagTemplateRequest, Google::Cloud::DataCatalog::V1::TagTemplate
|
129
|
+
rpc :GetTagTemplate, ::Google::Cloud::DataCatalog::V1::GetTagTemplateRequest, ::Google::Cloud::DataCatalog::V1::TagTemplate
|
130
130
|
# Updates a tag template. This method cannot be used to update the fields of
|
131
131
|
# a template. The tag template fields are represented as separate resources
|
132
132
|
# and should be updated using their own create/update/delete methods.
|
@@ -134,37 +134,40 @@ module Google
|
|
134
134
|
# the `tag_template.name` parameter (see [Data Catalog Resource Project]
|
135
135
|
# (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for
|
136
136
|
# more information).
|
137
|
-
rpc :UpdateTagTemplate, Google::Cloud::DataCatalog::V1::UpdateTagTemplateRequest, Google::Cloud::DataCatalog::V1::TagTemplate
|
137
|
+
rpc :UpdateTagTemplate, ::Google::Cloud::DataCatalog::V1::UpdateTagTemplateRequest, ::Google::Cloud::DataCatalog::V1::TagTemplate
|
138
138
|
# Deletes a tag template and all tags using the template.
|
139
139
|
# Users should enable the Data Catalog API in the project identified by
|
140
140
|
# the `name` parameter (see [Data Catalog Resource Project]
|
141
141
|
# (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for
|
142
142
|
# more information).
|
143
|
-
rpc :DeleteTagTemplate, Google::Cloud::DataCatalog::V1::DeleteTagTemplateRequest, Google::Protobuf::Empty
|
143
|
+
rpc :DeleteTagTemplate, ::Google::Cloud::DataCatalog::V1::DeleteTagTemplateRequest, ::Google::Protobuf::Empty
|
144
144
|
# Creates a field in a tag template. The user should enable the Data Catalog
|
145
145
|
# API in the project identified by the `parent` parameter (see
|
146
146
|
# [Data Catalog Resource
|
147
147
|
# Project](https://cloud.google.com/data-catalog/docs/concepts/resource-project)
|
148
148
|
# for more information).
|
149
|
-
rpc :CreateTagTemplateField, Google::Cloud::DataCatalog::V1::CreateTagTemplateFieldRequest, Google::Cloud::DataCatalog::V1::TagTemplateField
|
149
|
+
rpc :CreateTagTemplateField, ::Google::Cloud::DataCatalog::V1::CreateTagTemplateFieldRequest, ::Google::Cloud::DataCatalog::V1::TagTemplateField
|
150
150
|
# Updates a field in a tag template. This method cannot be used to update the
|
151
151
|
# field type. Users should enable the Data Catalog API in the project
|
152
152
|
# identified by the `name` parameter (see [Data Catalog Resource Project]
|
153
153
|
# (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for
|
154
154
|
# more information).
|
155
|
-
rpc :UpdateTagTemplateField, Google::Cloud::DataCatalog::V1::UpdateTagTemplateFieldRequest, Google::Cloud::DataCatalog::V1::TagTemplateField
|
155
|
+
rpc :UpdateTagTemplateField, ::Google::Cloud::DataCatalog::V1::UpdateTagTemplateFieldRequest, ::Google::Cloud::DataCatalog::V1::TagTemplateField
|
156
156
|
# Renames a field in a tag template. The user should enable the Data Catalog
|
157
157
|
# API in the project identified by the `name` parameter (see [Data Catalog
|
158
158
|
# Resource
|
159
159
|
# Project](https://cloud.google.com/data-catalog/docs/concepts/resource-project)
|
160
160
|
# for more information).
|
161
|
-
rpc :RenameTagTemplateField, Google::Cloud::DataCatalog::V1::RenameTagTemplateFieldRequest, Google::Cloud::DataCatalog::V1::TagTemplateField
|
161
|
+
rpc :RenameTagTemplateField, ::Google::Cloud::DataCatalog::V1::RenameTagTemplateFieldRequest, ::Google::Cloud::DataCatalog::V1::TagTemplateField
|
162
|
+
# Renames an enum value in a tag template. The enum values have to be unique
|
163
|
+
# within one enum field.
|
164
|
+
rpc :RenameTagTemplateFieldEnumValue, ::Google::Cloud::DataCatalog::V1::RenameTagTemplateFieldEnumValueRequest, ::Google::Cloud::DataCatalog::V1::TagTemplateField
|
162
165
|
# Deletes a field in a tag template and all uses of that field.
|
163
166
|
# Users should enable the Data Catalog API in the project identified by
|
164
167
|
# the `name` parameter (see [Data Catalog Resource Project]
|
165
168
|
# (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for
|
166
169
|
# more information).
|
167
|
-
rpc :DeleteTagTemplateField, Google::Cloud::DataCatalog::V1::DeleteTagTemplateFieldRequest, Google::Protobuf::Empty
|
170
|
+
rpc :DeleteTagTemplateField, ::Google::Cloud::DataCatalog::V1::DeleteTagTemplateFieldRequest, ::Google::Protobuf::Empty
|
168
171
|
# Creates a tag on an [Entry][google.cloud.datacatalog.v1.Entry].
|
169
172
|
# Note: The project identified by the `parent` parameter for the
|
170
173
|
# [tag](https://cloud.google.com/data-catalog/docs/reference/rest/v1/projects.locations.entryGroups.entries.tags/create#path-parameters)
|
@@ -172,13 +175,13 @@ module Google
|
|
172
175
|
# [tag
|
173
176
|
# template](https://cloud.google.com/data-catalog/docs/reference/rest/v1/projects.locations.tagTemplates/create#path-parameters)
|
174
177
|
# used to create the tag must be from the same organization.
|
175
|
-
rpc :CreateTag, Google::Cloud::DataCatalog::V1::CreateTagRequest, Google::Cloud::DataCatalog::V1::Tag
|
178
|
+
rpc :CreateTag, ::Google::Cloud::DataCatalog::V1::CreateTagRequest, ::Google::Cloud::DataCatalog::V1::Tag
|
176
179
|
# Updates an existing tag.
|
177
|
-
rpc :UpdateTag, Google::Cloud::DataCatalog::V1::UpdateTagRequest, Google::Cloud::DataCatalog::V1::Tag
|
180
|
+
rpc :UpdateTag, ::Google::Cloud::DataCatalog::V1::UpdateTagRequest, ::Google::Cloud::DataCatalog::V1::Tag
|
178
181
|
# Deletes a tag.
|
179
|
-
rpc :DeleteTag, Google::Cloud::DataCatalog::V1::DeleteTagRequest, Google::Protobuf::Empty
|
182
|
+
rpc :DeleteTag, ::Google::Cloud::DataCatalog::V1::DeleteTagRequest, ::Google::Protobuf::Empty
|
180
183
|
# Lists the tags on an [Entry][google.cloud.datacatalog.v1.Entry].
|
181
|
-
rpc :ListTags, Google::Cloud::DataCatalog::V1::ListTagsRequest, Google::Cloud::DataCatalog::V1::ListTagsResponse
|
184
|
+
rpc :ListTags, ::Google::Cloud::DataCatalog::V1::ListTagsRequest, ::Google::Cloud::DataCatalog::V1::ListTagsResponse
|
182
185
|
# Sets the access control policy for a resource. Replaces any existing
|
183
186
|
# policy.
|
184
187
|
# Supported resources are:
|
@@ -193,7 +196,7 @@ module Google
|
|
193
196
|
# templates.
|
194
197
|
# - `datacatalog.entries.setIamPolicy` to set policies on entries.
|
195
198
|
# - `datacatalog.entryGroups.setIamPolicy` to set policies on entry groups.
|
196
|
-
rpc :SetIamPolicy, Google::Iam::V1::SetIamPolicyRequest, Google::Iam::V1::Policy
|
199
|
+
rpc :SetIamPolicy, ::Google::Iam::V1::SetIamPolicyRequest, ::Google::Iam::V1::Policy
|
197
200
|
# Gets the access control policy for a resource. A `NOT_FOUND` error
|
198
201
|
# is returned if the resource does not exist. An empty policy is returned
|
199
202
|
# if the resource exists but does not have a policy set on it.
|
@@ -210,7 +213,7 @@ module Google
|
|
210
213
|
# templates.
|
211
214
|
# - `datacatalog.entries.getIamPolicy` to get policies on entries.
|
212
215
|
# - `datacatalog.entryGroups.getIamPolicy` to get policies on entry groups.
|
213
|
-
rpc :GetIamPolicy, Google::Iam::V1::GetIamPolicyRequest, Google::Iam::V1::Policy
|
216
|
+
rpc :GetIamPolicy, ::Google::Iam::V1::GetIamPolicyRequest, ::Google::Iam::V1::Policy
|
214
217
|
# Returns the caller's permissions on a resource.
|
215
218
|
# If the resource does not exist, an empty set of permissions is returned
|
216
219
|
# (We don't return a `NOT_FOUND` error).
|
@@ -224,7 +227,7 @@ module Google
|
|
224
227
|
#
|
225
228
|
# A caller is not required to have Google IAM permission to make this
|
226
229
|
# request.
|
227
|
-
rpc :TestIamPermissions, Google::Iam::V1::TestIamPermissionsRequest, Google::Iam::V1::TestIamPermissionsResponse
|
230
|
+
rpc :TestIamPermissions, ::Google::Iam::V1::TestIamPermissionsRequest, ::Google::Iam::V1::TestIamPermissionsResponse
|
228
231
|
end
|
229
232
|
|
230
233
|
Stub = Service.rpc_stub_class
|
@@ -0,0 +1,107 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/cloud/datacatalog/v1/policytagmanager.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/api/annotations_pb'
|
7
|
+
require 'google/api/client_pb'
|
8
|
+
require 'google/api/field_behavior_pb'
|
9
|
+
require 'google/api/resource_pb'
|
10
|
+
require 'google/cloud/datacatalog/v1/timestamps_pb'
|
11
|
+
require 'google/iam/v1/iam_policy_pb'
|
12
|
+
require 'google/iam/v1/policy_pb'
|
13
|
+
require 'google/protobuf/empty_pb'
|
14
|
+
require 'google/protobuf/field_mask_pb'
|
15
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
16
|
+
add_file("google/cloud/datacatalog/v1/policytagmanager.proto", :syntax => :proto3) do
|
17
|
+
add_message "google.cloud.datacatalog.v1.Taxonomy" do
|
18
|
+
optional :name, :string, 1
|
19
|
+
optional :display_name, :string, 2
|
20
|
+
optional :description, :string, 3
|
21
|
+
optional :policy_tag_count, :int32, 4
|
22
|
+
optional :taxonomy_timestamps, :message, 5, "google.cloud.datacatalog.v1.SystemTimestamps"
|
23
|
+
repeated :activated_policy_types, :enum, 6, "google.cloud.datacatalog.v1.Taxonomy.PolicyType"
|
24
|
+
end
|
25
|
+
add_enum "google.cloud.datacatalog.v1.Taxonomy.PolicyType" do
|
26
|
+
value :POLICY_TYPE_UNSPECIFIED, 0
|
27
|
+
value :FINE_GRAINED_ACCESS_CONTROL, 1
|
28
|
+
end
|
29
|
+
add_message "google.cloud.datacatalog.v1.PolicyTag" do
|
30
|
+
optional :name, :string, 1
|
31
|
+
optional :display_name, :string, 2
|
32
|
+
optional :description, :string, 3
|
33
|
+
optional :parent_policy_tag, :string, 4
|
34
|
+
repeated :child_policy_tags, :string, 5
|
35
|
+
end
|
36
|
+
add_message "google.cloud.datacatalog.v1.CreateTaxonomyRequest" do
|
37
|
+
optional :parent, :string, 1
|
38
|
+
optional :taxonomy, :message, 2, "google.cloud.datacatalog.v1.Taxonomy"
|
39
|
+
end
|
40
|
+
add_message "google.cloud.datacatalog.v1.DeleteTaxonomyRequest" do
|
41
|
+
optional :name, :string, 1
|
42
|
+
end
|
43
|
+
add_message "google.cloud.datacatalog.v1.UpdateTaxonomyRequest" do
|
44
|
+
optional :taxonomy, :message, 1, "google.cloud.datacatalog.v1.Taxonomy"
|
45
|
+
optional :update_mask, :message, 2, "google.protobuf.FieldMask"
|
46
|
+
end
|
47
|
+
add_message "google.cloud.datacatalog.v1.ListTaxonomiesRequest" do
|
48
|
+
optional :parent, :string, 1
|
49
|
+
optional :page_size, :int32, 2
|
50
|
+
optional :page_token, :string, 3
|
51
|
+
end
|
52
|
+
add_message "google.cloud.datacatalog.v1.ListTaxonomiesResponse" do
|
53
|
+
repeated :taxonomies, :message, 1, "google.cloud.datacatalog.v1.Taxonomy"
|
54
|
+
optional :next_page_token, :string, 2
|
55
|
+
end
|
56
|
+
add_message "google.cloud.datacatalog.v1.GetTaxonomyRequest" do
|
57
|
+
optional :name, :string, 1
|
58
|
+
end
|
59
|
+
add_message "google.cloud.datacatalog.v1.CreatePolicyTagRequest" do
|
60
|
+
optional :parent, :string, 1
|
61
|
+
optional :policy_tag, :message, 2, "google.cloud.datacatalog.v1.PolicyTag"
|
62
|
+
end
|
63
|
+
add_message "google.cloud.datacatalog.v1.DeletePolicyTagRequest" do
|
64
|
+
optional :name, :string, 1
|
65
|
+
end
|
66
|
+
add_message "google.cloud.datacatalog.v1.UpdatePolicyTagRequest" do
|
67
|
+
optional :policy_tag, :message, 1, "google.cloud.datacatalog.v1.PolicyTag"
|
68
|
+
optional :update_mask, :message, 2, "google.protobuf.FieldMask"
|
69
|
+
end
|
70
|
+
add_message "google.cloud.datacatalog.v1.ListPolicyTagsRequest" do
|
71
|
+
optional :parent, :string, 1
|
72
|
+
optional :page_size, :int32, 2
|
73
|
+
optional :page_token, :string, 3
|
74
|
+
end
|
75
|
+
add_message "google.cloud.datacatalog.v1.ListPolicyTagsResponse" do
|
76
|
+
repeated :policy_tags, :message, 1, "google.cloud.datacatalog.v1.PolicyTag"
|
77
|
+
optional :next_page_token, :string, 2
|
78
|
+
end
|
79
|
+
add_message "google.cloud.datacatalog.v1.GetPolicyTagRequest" do
|
80
|
+
optional :name, :string, 1
|
81
|
+
end
|
82
|
+
end
|
83
|
+
end
|
84
|
+
|
85
|
+
module Google
|
86
|
+
module Cloud
|
87
|
+
module DataCatalog
|
88
|
+
module V1
|
89
|
+
Taxonomy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.Taxonomy").msgclass
|
90
|
+
Taxonomy::PolicyType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.Taxonomy.PolicyType").enummodule
|
91
|
+
PolicyTag = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.PolicyTag").msgclass
|
92
|
+
CreateTaxonomyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.CreateTaxonomyRequest").msgclass
|
93
|
+
DeleteTaxonomyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.DeleteTaxonomyRequest").msgclass
|
94
|
+
UpdateTaxonomyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.UpdateTaxonomyRequest").msgclass
|
95
|
+
ListTaxonomiesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.ListTaxonomiesRequest").msgclass
|
96
|
+
ListTaxonomiesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.ListTaxonomiesResponse").msgclass
|
97
|
+
GetTaxonomyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.GetTaxonomyRequest").msgclass
|
98
|
+
CreatePolicyTagRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.CreatePolicyTagRequest").msgclass
|
99
|
+
DeletePolicyTagRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.DeletePolicyTagRequest").msgclass
|
100
|
+
UpdatePolicyTagRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.UpdatePolicyTagRequest").msgclass
|
101
|
+
ListPolicyTagsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.ListPolicyTagsRequest").msgclass
|
102
|
+
ListPolicyTagsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.ListPolicyTagsResponse").msgclass
|
103
|
+
GetPolicyTagRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.GetPolicyTagRequest").msgclass
|
104
|
+
end
|
105
|
+
end
|
106
|
+
end
|
107
|
+
end
|