google-cloud-data_catalog-v1 0.6.0 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/data_catalog/v1.rb +2 -0
  3. data/lib/google/cloud/data_catalog/v1/data_catalog/client.rb +182 -64
  4. data/lib/google/cloud/data_catalog/v1/data_catalog/paths.rb +23 -0
  5. data/lib/google/cloud/data_catalog/v1/policy_tag_manager.rb +54 -0
  6. data/lib/google/cloud/data_catalog/v1/policy_tag_manager/client.rb +1320 -0
  7. data/lib/google/cloud/data_catalog/v1/policy_tag_manager/credentials.rb +51 -0
  8. data/lib/google/cloud/data_catalog/v1/policy_tag_manager/paths.rb +90 -0
  9. data/lib/google/cloud/data_catalog/v1/policy_tag_manager_serialization.rb +51 -0
  10. data/lib/google/cloud/data_catalog/v1/policy_tag_manager_serialization/client.rb +474 -0
  11. data/lib/google/cloud/data_catalog/v1/policy_tag_manager_serialization/credentials.rb +51 -0
  12. data/lib/google/cloud/data_catalog/v1/policy_tag_manager_serialization/paths.rb +69 -0
  13. data/lib/google/cloud/data_catalog/v1/version.rb +1 -1
  14. data/lib/google/cloud/datacatalog/v1/common_pb.rb +1 -0
  15. data/lib/google/cloud/datacatalog/v1/data_source_pb.rb +30 -0
  16. data/lib/google/cloud/datacatalog/v1/datacatalog_pb.rb +25 -0
  17. data/lib/google/cloud/datacatalog/v1/datacatalog_services_pb.rb +6 -3
  18. data/lib/google/cloud/datacatalog/v1/policytagmanager_pb.rb +107 -0
  19. data/lib/google/cloud/datacatalog/v1/policytagmanager_services_pb.rb +85 -0
  20. data/lib/google/cloud/datacatalog/v1/policytagmanagerserialization_pb.rb +70 -0
  21. data/lib/google/cloud/datacatalog/v1/policytagmanagerserialization_services_pb.rb +62 -0
  22. data/lib/google/cloud/datacatalog/v1/search_pb.rb +2 -0
  23. data/lib/google/cloud/datacatalog/v1/table_spec_pb.rb +1 -0
  24. data/lib/google/cloud/datacatalog/v1/tags_pb.rb +1 -0
  25. data/proto_docs/google/cloud/datacatalog/v1/common.rb +3 -0
  26. data/proto_docs/google/cloud/datacatalog/v1/data_source.rb +51 -0
  27. data/proto_docs/google/cloud/datacatalog/v1/datacatalog.rb +212 -111
  28. data/proto_docs/google/cloud/datacatalog/v1/policytagmanager.rb +292 -0
  29. data/proto_docs/google/cloud/datacatalog/v1/policytagmanagerserialization.rb +141 -0
  30. data/proto_docs/google/cloud/datacatalog/v1/schema.rb +16 -4
  31. data/proto_docs/google/cloud/datacatalog/v1/search.rb +14 -0
  32. data/proto_docs/google/cloud/datacatalog/v1/table_spec.rb +3 -0
  33. data/proto_docs/google/cloud/datacatalog/v1/tags.rb +44 -21
  34. metadata +20 -4
@@ -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
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module DataCatalog
23
23
  module V1
24
- VERSION = "0.6.0"
24
+ VERSION = "0.7.0"
25
25
  end
26
26
  end
27
27
  end
@@ -9,6 +9,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
9
9
  value :INTEGRATED_SYSTEM_UNSPECIFIED, 0
10
10
  value :BIGQUERY, 1
11
11
  value :CLOUD_PUBSUB, 2
12
+ value :DATAPROC_METASTORE, 3
12
13
  end
13
14
  end
14
15
  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 subsequentally call `Get` methods.
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
@@ -87,8 +87,8 @@ module Google
87
87
  rpc :DeleteEntryGroup, ::Google::Cloud::DataCatalog::V1::DeleteEntryGroupRequest, ::Google::Protobuf::Empty
88
88
  # Lists entry groups.
89
89
  rpc :ListEntryGroups, ::Google::Cloud::DataCatalog::V1::ListEntryGroupsRequest, ::Google::Cloud::DataCatalog::V1::ListEntryGroupsResponse
90
- # Creates an entry. Only entries of 'FILESET' type or user-specified type can
91
- # be created.
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]
@@ -159,6 +159,9 @@ module Google
159
159
  # Project](https://cloud.google.com/data-catalog/docs/concepts/resource-project)
160
160
  # for more information).
161
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]
@@ -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
@@ -0,0 +1,85 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: google/cloud/datacatalog/v1/policytagmanager.proto for package 'Google.Cloud.DataCatalog.V1'
3
+ # Original file comments:
4
+ # Copyright 2021 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/policytagmanager_pb'
21
+
22
+ module Google
23
+ module Cloud
24
+ module DataCatalog
25
+ module V1
26
+ module PolicyTagManager
27
+ # Policy Tag Manager API service allows clients to manage their policy tags and
28
+ # taxonomies.
29
+ #
30
+ # Policy tags are used to tag BigQuery columns and apply additional access
31
+ # control policies. A taxonomy is a hierarchical grouping of policy tags that
32
+ # classify data along a common axis.
33
+ class Service
34
+
35
+ include GRPC::GenericService
36
+
37
+ self.marshal_class_method = :encode
38
+ self.unmarshal_class_method = :decode
39
+ self.service_name = 'google.cloud.datacatalog.v1.PolicyTagManager'
40
+
41
+ # Creates a taxonomy in a specified project. The taxonomy is initially empty,
42
+ # i.e., does not contain policy tags.
43
+ rpc :CreateTaxonomy, ::Google::Cloud::DataCatalog::V1::CreateTaxonomyRequest, ::Google::Cloud::DataCatalog::V1::Taxonomy
44
+ # Deletes a taxonomy. This method will also delete all policy tags in this
45
+ # taxonomy, their associated policies, and the policy tags references from
46
+ # BigQuery columns.
47
+ rpc :DeleteTaxonomy, ::Google::Cloud::DataCatalog::V1::DeleteTaxonomyRequest, ::Google::Protobuf::Empty
48
+ # Updates a taxonomy. This method can update the taxonomy's display name,
49
+ # description, and activated policy types.
50
+ rpc :UpdateTaxonomy, ::Google::Cloud::DataCatalog::V1::UpdateTaxonomyRequest, ::Google::Cloud::DataCatalog::V1::Taxonomy
51
+ # Lists all taxonomies in a project in a particular location that the caller
52
+ # has permission to view.
53
+ rpc :ListTaxonomies, ::Google::Cloud::DataCatalog::V1::ListTaxonomiesRequest, ::Google::Cloud::DataCatalog::V1::ListTaxonomiesResponse
54
+ # Gets a taxonomy.
55
+ rpc :GetTaxonomy, ::Google::Cloud::DataCatalog::V1::GetTaxonomyRequest, ::Google::Cloud::DataCatalog::V1::Taxonomy
56
+ # Creates a policy tag in a taxonomy.
57
+ rpc :CreatePolicyTag, ::Google::Cloud::DataCatalog::V1::CreatePolicyTagRequest, ::Google::Cloud::DataCatalog::V1::PolicyTag
58
+ # Deletes a policy tag. This method also deletes
59
+ # - all of its descendant policy tags, if any,
60
+ # - the policies associated with the policy tag and its descendants, and
61
+ # - references from BigQuery table schema of the policy tag and its
62
+ # descendants.
63
+ rpc :DeletePolicyTag, ::Google::Cloud::DataCatalog::V1::DeletePolicyTagRequest, ::Google::Protobuf::Empty
64
+ # Updates a policy tag. This method can update the policy tag's display
65
+ # name, description, and parent policy tag.
66
+ rpc :UpdatePolicyTag, ::Google::Cloud::DataCatalog::V1::UpdatePolicyTagRequest, ::Google::Cloud::DataCatalog::V1::PolicyTag
67
+ # Lists all policy tags in a taxonomy.
68
+ rpc :ListPolicyTags, ::Google::Cloud::DataCatalog::V1::ListPolicyTagsRequest, ::Google::Cloud::DataCatalog::V1::ListPolicyTagsResponse
69
+ # Gets a policy tag.
70
+ rpc :GetPolicyTag, ::Google::Cloud::DataCatalog::V1::GetPolicyTagRequest, ::Google::Cloud::DataCatalog::V1::PolicyTag
71
+ # Gets the IAM policy for a policy tag or a taxonomy.
72
+ rpc :GetIamPolicy, ::Google::Iam::V1::GetIamPolicyRequest, ::Google::Iam::V1::Policy
73
+ # Sets the IAM policy for a policy tag or a taxonomy.
74
+ rpc :SetIamPolicy, ::Google::Iam::V1::SetIamPolicyRequest, ::Google::Iam::V1::Policy
75
+ # Returns the permissions that a caller has on a specified policy tag or
76
+ # taxonomy.
77
+ rpc :TestIamPermissions, ::Google::Iam::V1::TestIamPermissionsRequest, ::Google::Iam::V1::TestIamPermissionsResponse
78
+ end
79
+
80
+ Stub = Service.rpc_stub_class
81
+ end
82
+ end
83
+ end
84
+ end
85
+ end