google-cloud-data_catalog-v1 0.7.1 → 0.8.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.
Files changed (34) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHENTICATION.md +8 -8
  3. data/README.md +1 -1
  4. data/lib/google/cloud/data_catalog/v1/data_catalog.rb +2 -2
  5. data/lib/google/cloud/data_catalog/v1/data_catalog/client.rb +424 -387
  6. data/lib/google/cloud/data_catalog/v1/policy_tag_manager.rb +1 -1
  7. data/lib/google/cloud/data_catalog/v1/policy_tag_manager/client.rb +123 -95
  8. data/lib/google/cloud/data_catalog/v1/policy_tag_manager_serialization.rb +4 -3
  9. data/lib/google/cloud/data_catalog/v1/policy_tag_manager_serialization/client.rb +142 -56
  10. data/lib/google/cloud/data_catalog/v1/version.rb +1 -1
  11. data/lib/google/cloud/datacatalog/v1/bigquery_pb.rb +48 -0
  12. data/lib/google/cloud/datacatalog/v1/datacatalog_pb.rb +44 -0
  13. data/lib/google/cloud/datacatalog/v1/datacatalog_services_pb.rb +179 -142
  14. data/lib/google/cloud/datacatalog/v1/policytagmanager_services_pb.rb +15 -14
  15. data/lib/google/cloud/datacatalog/v1/policytagmanagerserialization_pb.rb +5 -0
  16. data/lib/google/cloud/datacatalog/v1/policytagmanagerserialization_services_pb.rb +28 -14
  17. data/lib/google/cloud/datacatalog/v1/tags_pb.rb +3 -0
  18. data/lib/google/cloud/datacatalog/v1/usage_pb.rb +31 -0
  19. data/proto_docs/google/api/field_behavior.rb +7 -1
  20. data/proto_docs/google/cloud/datacatalog/v1/bigquery.rb +87 -0
  21. data/proto_docs/google/cloud/datacatalog/v1/common.rb +1 -2
  22. data/proto_docs/google/cloud/datacatalog/v1/data_source.rb +6 -5
  23. data/proto_docs/google/cloud/datacatalog/v1/datacatalog.rb +370 -246
  24. data/proto_docs/google/cloud/datacatalog/v1/gcs_fileset_spec.rb +16 -15
  25. data/proto_docs/google/cloud/datacatalog/v1/policytagmanager.rb +87 -71
  26. data/proto_docs/google/cloud/datacatalog/v1/policytagmanagerserialization.rb +34 -19
  27. data/proto_docs/google/cloud/datacatalog/v1/schema.rb +3 -3
  28. data/proto_docs/google/cloud/datacatalog/v1/search.rb +43 -29
  29. data/proto_docs/google/cloud/datacatalog/v1/table_spec.rb +23 -16
  30. data/proto_docs/google/cloud/datacatalog/v1/tags.rb +96 -51
  31. data/proto_docs/google/cloud/datacatalog/v1/timestamps.rb +12 -5
  32. data/proto_docs/google/cloud/datacatalog/v1/usage.rb +79 -0
  33. data/proto_docs/google/type/expr.rb +35 -12
  34. metadata +19 -9
@@ -31,9 +31,10 @@ module Google
31
31
  module DataCatalog
32
32
  module V1
33
33
  ##
34
- # Policy Tag Manager serialization API service allows clients to manipulate
35
- # their policy tags and taxonomies in serialized format, where taxonomy is a
36
- # hierarchical group of policy tags.
34
+ # Policy Tag Manager Serialization API service allows you to manipulate
35
+ # your policy tags and taxonomies in a serialized format.
36
+ #
37
+ # Taxonomy is a hierarchical group of policy tags.
37
38
  #
38
39
  # To load this service and instantiate a client:
39
40
  #
@@ -27,9 +27,10 @@ module Google
27
27
  ##
28
28
  # Client for the PolicyTagManagerSerialization service.
29
29
  #
30
- # Policy Tag Manager serialization API service allows clients to manipulate
31
- # their policy tags and taxonomies in serialized format, where taxonomy is a
32
- # hierarchical group of policy tags.
30
+ # Policy Tag Manager Serialization API service allows you to manipulate
31
+ # your policy tags and taxonomies in a serialized format.
32
+ #
33
+ # Taxonomy is a hierarchical group of policy tags.
33
34
  #
34
35
  class Client
35
36
  include Paths
@@ -43,13 +44,12 @@ module Google
43
44
  # See {::Google::Cloud::DataCatalog::V1::PolicyTagManagerSerialization::Client::Configuration}
44
45
  # for a description of the configuration fields.
45
46
  #
46
- # ## Example
47
- #
48
- # To modify the configuration for all PolicyTagManagerSerialization clients:
47
+ # @example
49
48
  #
50
- # ::Google::Cloud::DataCatalog::V1::PolicyTagManagerSerialization::Client.configure do |config|
51
- # config.timeout = 10.0
52
- # end
49
+ # # Modify the configuration for all PolicyTagManagerSerialization clients
50
+ # ::Google::Cloud::DataCatalog::V1::PolicyTagManagerSerialization::Client.configure do |config|
51
+ # config.timeout = 10.0
52
+ # end
53
53
  #
54
54
  # @yield [config] Configure the Client client.
55
55
  # @yieldparam config [Client::Configuration]
@@ -98,19 +98,15 @@ module Google
98
98
  ##
99
99
  # Create a new PolicyTagManagerSerialization client object.
100
100
  #
101
- # ## Examples
102
- #
103
- # To create a new PolicyTagManagerSerialization client with the default
104
- # configuration:
105
- #
106
- # client = ::Google::Cloud::DataCatalog::V1::PolicyTagManagerSerialization::Client.new
101
+ # @example
107
102
  #
108
- # To create a new PolicyTagManagerSerialization client with a custom
109
- # configuration:
103
+ # # Create a client using the default configuration
104
+ # client = ::Google::Cloud::DataCatalog::V1::PolicyTagManagerSerialization::Client.new
110
105
  #
111
- # client = ::Google::Cloud::DataCatalog::V1::PolicyTagManagerSerialization::Client.new do |config|
112
- # config.timeout = 10.0
113
- # end
106
+ # # Create a client using a custom configuration
107
+ # client = ::Google::Cloud::DataCatalog::V1::PolicyTagManagerSerialization::Client.new do |config|
108
+ # config.timeout = 10.0
109
+ # end
114
110
  #
115
111
  # @yield [config] Configure the PolicyTagManagerSerialization client.
116
112
  # @yieldparam config [Client::Configuration]
@@ -130,14 +126,13 @@ module Google
130
126
 
131
127
  # Create credentials
132
128
  credentials = @config.credentials
133
- # Use self-signed JWT if the scope and endpoint are unchanged from default,
129
+ # Use self-signed JWT if the endpoint is unchanged from default,
134
130
  # but only if the default endpoint does not have a region prefix.
135
- enable_self_signed_jwt = @config.scope == Client.configure.scope &&
136
- @config.endpoint == Client.configure.endpoint &&
131
+ enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
137
132
  !@config.endpoint.split(".").first.include?("-")
138
133
  credentials ||= Credentials.default scope: @config.scope,
139
134
  enable_self_signed_jwt: enable_self_signed_jwt
140
- if credentials.is_a?(String) || credentials.is_a?(Hash)
135
+ if credentials.is_a?(::String) || credentials.is_a?(::Hash)
141
136
  credentials = Credentials.new credentials, scope: @config.scope
142
137
  end
143
138
  @quota_project_id = @config.quota_project
@@ -155,15 +150,96 @@ module Google
155
150
  # Service calls
156
151
 
157
152
  ##
158
- # Creates new taxonomies (including their policy tags) by importing from
159
- # inlined source or cross-regional source. New taxonomies will be created in
160
- # a given parent project.
153
+ # Replaces (updates) a taxonomy and all its policy tags.
154
+ #
155
+ # The taxonomy and its entire hierarchy of policy tags must be
156
+ # represented literally by `SerializedTaxonomy` and the nested
157
+ # `SerializedPolicyTag` messages.
158
+ #
159
+ # This operation automatically does the following:
160
+ #
161
+ # - Deletes the existing policy tags that are missing from the
162
+ # `SerializedPolicyTag`.
163
+ # - Creates policy tags that don't have resource names. They are considered
164
+ # new.
165
+ # - Updates policy tags with valid resources names accordingly.
166
+ #
167
+ # @overload replace_taxonomy(request, options = nil)
168
+ # Pass arguments to `replace_taxonomy` via a request object, either of type
169
+ # {::Google::Cloud::DataCatalog::V1::ReplaceTaxonomyRequest} or an equivalent Hash.
170
+ #
171
+ # @param request [::Google::Cloud::DataCatalog::V1::ReplaceTaxonomyRequest, ::Hash]
172
+ # A request object representing the call parameters. Required. To specify no
173
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
174
+ # @param options [::Gapic::CallOptions, ::Hash]
175
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
176
+ #
177
+ # @overload replace_taxonomy(name: nil, serialized_taxonomy: nil)
178
+ # Pass arguments to `replace_taxonomy` via keyword arguments. Note that at
179
+ # least one keyword argument is required. To specify no parameters, or to keep all
180
+ # the default parameter values, pass an empty Hash as a request object (see above).
181
+ #
182
+ # @param name [::String]
183
+ # Required. Resource name of the taxonomy to update.
184
+ # @param serialized_taxonomy [::Google::Cloud::DataCatalog::V1::SerializedTaxonomy, ::Hash]
185
+ # Required. Taxonomy to update along with its child policy tags.
186
+ #
187
+ # @yield [response, operation] Access the result along with the RPC operation
188
+ # @yieldparam response [::Google::Cloud::DataCatalog::V1::Taxonomy]
189
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
190
+ #
191
+ # @return [::Google::Cloud::DataCatalog::V1::Taxonomy]
192
+ #
193
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
194
+ #
195
+ def replace_taxonomy request, options = nil
196
+ raise ::ArgumentError, "request must be provided" if request.nil?
197
+
198
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DataCatalog::V1::ReplaceTaxonomyRequest
199
+
200
+ # Converts hash and nil to an options object
201
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
202
+
203
+ # Customize the options with defaults
204
+ metadata = @config.rpcs.replace_taxonomy.metadata.to_h
205
+
206
+ # Set x-goog-api-client and x-goog-user-project headers
207
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
208
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
209
+ gapic_version: ::Google::Cloud::DataCatalog::V1::VERSION
210
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
211
+
212
+ header_params = {
213
+ "name" => request.name
214
+ }
215
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
216
+ metadata[:"x-goog-request-params"] ||= request_params_header
217
+
218
+ options.apply_defaults timeout: @config.rpcs.replace_taxonomy.timeout,
219
+ metadata: metadata,
220
+ retry_policy: @config.rpcs.replace_taxonomy.retry_policy
221
+
222
+ options.apply_defaults timeout: @config.timeout,
223
+ metadata: @config.metadata,
224
+ retry_policy: @config.retry_policy
225
+
226
+ @policy_tag_manager_serialization_stub.call_rpc :replace_taxonomy, request, options: options do |response, operation|
227
+ yield response, operation if block_given?
228
+ return response
229
+ end
230
+ rescue ::GRPC::BadStatus => e
231
+ raise ::Google::Cloud::Error.from_error(e)
232
+ end
233
+
234
+ ##
235
+ # Creates new taxonomies (including their policy tags) in a given project
236
+ # by importing from inlined or cross-regional sources.
161
237
  #
162
- # If using the cross-regional source, a new taxonomy is created by copying
238
+ # For a cross-regional source, new taxonomies are created by copying
163
239
  # from a source in another region.
164
240
  #
165
- # If using the inlined source, this method provides a way to bulk create
166
- # taxonomies and policy tags using nested proto structure.
241
+ # For an inlined source, taxonomies and policy tags are created in bulk using
242
+ # nested protocol buffer structures.
167
243
  #
168
244
  # @overload import_taxonomies(request, options = nil)
169
245
  # Pass arguments to `import_taxonomies` via a request object, either of type
@@ -183,9 +259,9 @@ module Google
183
259
  # @param parent [::String]
184
260
  # Required. Resource name of project that the imported taxonomies will belong to.
185
261
  # @param inline_source [::Google::Cloud::DataCatalog::V1::InlineSource, ::Hash]
186
- # Inline source used for taxonomies import.
262
+ # Inline source taxonomy to import.
187
263
  # @param cross_regional_source [::Google::Cloud::DataCatalog::V1::CrossRegionalSource, ::Hash]
188
- # Cross-regional source taxonomy to be imported.
264
+ # Cross-regional source taxonomy to import.
189
265
  #
190
266
  # @yield [response, operation] Access the result along with the RPC operation
191
267
  # @yieldparam response [::Google::Cloud::DataCatalog::V1::ImportTaxonomiesResponse]
@@ -221,7 +297,9 @@ module Google
221
297
  options.apply_defaults timeout: @config.rpcs.import_taxonomies.timeout,
222
298
  metadata: metadata,
223
299
  retry_policy: @config.rpcs.import_taxonomies.retry_policy
224
- options.apply_defaults metadata: @config.metadata,
300
+
301
+ options.apply_defaults timeout: @config.timeout,
302
+ metadata: @config.metadata,
225
303
  retry_policy: @config.retry_policy
226
304
 
227
305
  @policy_tag_manager_serialization_stub.call_rpc :import_taxonomies, request, options: options do |response, operation|
@@ -233,12 +311,12 @@ module Google
233
311
  end
234
312
 
235
313
  ##
236
- # Exports taxonomies as the requested type and returns the taxonomies
237
- # including their policy tags. The requested taxonomies must belong to one
238
- # project.
314
+ # Exports taxonomies in the requested type and returns them,
315
+ # including their policy tags. The requested taxonomies must belong to the
316
+ # same project.
239
317
  #
240
- # SerializedTaxonomy protos with nested policy tags that are generated by
241
- # this method can be used as input for future ImportTaxonomies calls.
318
+ # This method generates `SerializedTaxonomy` protocol buffers with nested
319
+ # policy tags that can be used as input for `ImportTaxonomies` calls.
242
320
  #
243
321
  # @overload export_taxonomies(request, options = nil)
244
322
  # Pass arguments to `export_taxonomies` via a request object, either of type
@@ -258,10 +336,10 @@ module Google
258
336
  # @param parent [::String]
259
337
  # Required. Resource name of the project that the exported taxonomies belong to.
260
338
  # @param taxonomies [::Array<::String>]
261
- # Required. Resource names of the taxonomies to be exported.
339
+ # Required. Resource names of the taxonomies to export.
262
340
  # @param serialized_taxonomies [::Boolean]
263
- # Export taxonomies as serialized taxonomies, which contain all the policy
264
- # tags as nested protos.
341
+ # Serialized export taxonomies that contain all the policy
342
+ # tags as nested protocol buffers.
265
343
  #
266
344
  # @yield [response, operation] Access the result along with the RPC operation
267
345
  # @yieldparam response [::Google::Cloud::DataCatalog::V1::ExportTaxonomiesResponse]
@@ -297,7 +375,9 @@ module Google
297
375
  options.apply_defaults timeout: @config.rpcs.export_taxonomies.timeout,
298
376
  metadata: metadata,
299
377
  retry_policy: @config.rpcs.export_taxonomies.retry_policy
300
- options.apply_defaults metadata: @config.metadata,
378
+
379
+ options.apply_defaults timeout: @config.timeout,
380
+ metadata: @config.metadata,
301
381
  retry_policy: @config.retry_policy
302
382
 
303
383
  @policy_tag_manager_serialization_stub.call_rpc :export_taxonomies, request, options: options do |response, operation|
@@ -321,22 +401,21 @@ module Google
321
401
  # Configuration can be applied globally to all clients, or to a single client
322
402
  # on construction.
323
403
  #
324
- # # Examples
325
- #
326
- # To modify the global config, setting the timeout for import_taxonomies
327
- # to 20 seconds, and all remaining timeouts to 10 seconds:
328
- #
329
- # ::Google::Cloud::DataCatalog::V1::PolicyTagManagerSerialization::Client.configure do |config|
330
- # config.timeout = 10.0
331
- # config.rpcs.import_taxonomies.timeout = 20.0
332
- # end
404
+ # @example
333
405
  #
334
- # To apply the above configuration only to a new client:
406
+ # # Modify the global config, setting the timeout for
407
+ # # replace_taxonomy to 20 seconds,
408
+ # # and all remaining timeouts to 10 seconds.
409
+ # ::Google::Cloud::DataCatalog::V1::PolicyTagManagerSerialization::Client.configure do |config|
410
+ # config.timeout = 10.0
411
+ # config.rpcs.replace_taxonomy.timeout = 20.0
412
+ # end
335
413
  #
336
- # client = ::Google::Cloud::DataCatalog::V1::PolicyTagManagerSerialization::Client.new do |config|
337
- # config.timeout = 10.0
338
- # config.rpcs.import_taxonomies.timeout = 20.0
339
- # end
414
+ # # Apply the above configuration only to a new client.
415
+ # client = ::Google::Cloud::DataCatalog::V1::PolicyTagManagerSerialization::Client.new do |config|
416
+ # config.timeout = 10.0
417
+ # config.rpcs.replace_taxonomy.timeout = 20.0
418
+ # end
340
419
  #
341
420
  # @!attribute [rw] endpoint
342
421
  # The hostname or hostname:port of the service endpoint.
@@ -444,6 +523,11 @@ module Google
444
523
  # trigger a retry.
445
524
  #
446
525
  class Rpcs
526
+ ##
527
+ # RPC-specific configuration for `replace_taxonomy`
528
+ # @return [::Gapic::Config::Method]
529
+ #
530
+ attr_reader :replace_taxonomy
447
531
  ##
448
532
  # RPC-specific configuration for `import_taxonomies`
449
533
  # @return [::Gapic::Config::Method]
@@ -457,6 +541,8 @@ module Google
457
541
 
458
542
  # @private
459
543
  def initialize parent_rpcs = nil
544
+ replace_taxonomy_config = parent_rpcs.replace_taxonomy if parent_rpcs.respond_to? :replace_taxonomy
545
+ @replace_taxonomy = ::Gapic::Config::Method.new replace_taxonomy_config
460
546
  import_taxonomies_config = parent_rpcs.import_taxonomies if parent_rpcs.respond_to? :import_taxonomies
461
547
  @import_taxonomies = ::Gapic::Config::Method.new import_taxonomies_config
462
548
  export_taxonomies_config = parent_rpcs.export_taxonomies if parent_rpcs.respond_to? :export_taxonomies
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module DataCatalog
23
23
  module V1
24
- VERSION = "0.7.1"
24
+ VERSION = "0.8.1"
25
25
  end
26
26
  end
27
27
  end
@@ -0,0 +1,48 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/cloud/datacatalog/v1/bigquery.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/bigquery.proto", :syntax => :proto3) do
9
+ add_message "google.cloud.datacatalog.v1.BigQueryConnectionSpec" do
10
+ optional :connection_type, :enum, 1, "google.cloud.datacatalog.v1.BigQueryConnectionSpec.ConnectionType"
11
+ optional :has_credential, :bool, 3
12
+ oneof :connection_spec do
13
+ optional :cloud_sql, :message, 2, "google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec"
14
+ end
15
+ end
16
+ add_enum "google.cloud.datacatalog.v1.BigQueryConnectionSpec.ConnectionType" do
17
+ value :CONNECTION_TYPE_UNSPECIFIED, 0
18
+ value :CLOUD_SQL, 1
19
+ end
20
+ add_message "google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec" do
21
+ optional :instance_id, :string, 1
22
+ optional :database, :string, 2
23
+ optional :type, :enum, 3, "google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec.DatabaseType"
24
+ end
25
+ add_enum "google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec.DatabaseType" do
26
+ value :DATABASE_TYPE_UNSPECIFIED, 0
27
+ value :POSTGRES, 1
28
+ value :MYSQL, 2
29
+ end
30
+ add_message "google.cloud.datacatalog.v1.BigQueryRoutineSpec" do
31
+ repeated :imported_libraries, :string, 1
32
+ end
33
+ end
34
+ end
35
+
36
+ module Google
37
+ module Cloud
38
+ module DataCatalog
39
+ module V1
40
+ BigQueryConnectionSpec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.BigQueryConnectionSpec").msgclass
41
+ BigQueryConnectionSpec::ConnectionType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.BigQueryConnectionSpec.ConnectionType").enummodule
42
+ CloudSqlBigQueryConnectionSpec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec").msgclass
43
+ CloudSqlBigQueryConnectionSpec::DatabaseType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec.DatabaseType").enummodule
44
+ BigQueryRoutineSpec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.BigQueryRoutineSpec").msgclass
45
+ end
46
+ end
47
+ end
48
+ end
@@ -7,6 +7,7 @@ require 'google/api/annotations_pb'
7
7
  require 'google/api/client_pb'
8
8
  require 'google/api/field_behavior_pb'
9
9
  require 'google/api/resource_pb'
10
+ require 'google/cloud/datacatalog/v1/bigquery_pb'
10
11
  require 'google/cloud/datacatalog/v1/common_pb'
11
12
  require 'google/cloud/datacatalog/v1/data_source_pb'
12
13
  require 'google/cloud/datacatalog/v1/gcs_fileset_spec_pb'
@@ -15,6 +16,7 @@ require 'google/cloud/datacatalog/v1/search_pb'
15
16
  require 'google/cloud/datacatalog/v1/table_spec_pb'
16
17
  require 'google/cloud/datacatalog/v1/tags_pb'
17
18
  require 'google/cloud/datacatalog/v1/timestamps_pb'
19
+ require 'google/cloud/datacatalog/v1/usage_pb'
18
20
  require 'google/iam/v1/iam_policy_pb'
19
21
  require 'google/iam/v1/policy_pb'
20
22
  require 'google/protobuf/empty_pb'
@@ -34,6 +36,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
34
36
  repeated :include_project_ids, :string, 3
35
37
  optional :include_gcp_public_datasets, :bool, 7
36
38
  repeated :restricted_locations, :string, 16
39
+ optional :include_public_tag_templates, :bool, 19
37
40
  end
38
41
  add_message "google.cloud.datacatalog.v1.SearchCatalogResponse" do
39
42
  repeated :results, :message, 1, "google.cloud.datacatalog.v1.SearchCatalogResult"
@@ -96,6 +99,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
96
99
  optional :description, :string, 4
97
100
  optional :schema, :message, 5, "google.cloud.datacatalog.v1.Schema"
98
101
  optional :source_system_timestamps, :message, 7, "google.cloud.datacatalog.v1.SystemTimestamps"
102
+ optional :usage_signal, :message, 13, "google.cloud.datacatalog.v1.UsageSignal"
103
+ map :labels, :string, :string, 14
99
104
  optional :data_source, :message, 20, "google.cloud.datacatalog.v1.DataSource"
100
105
  oneof :entry_type do
101
106
  optional :type, :enum, 2, "google.cloud.datacatalog.v1.EntryType"
@@ -112,6 +117,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
112
117
  end
113
118
  oneof :spec do
114
119
  optional :database_table_spec, :message, 24, "google.cloud.datacatalog.v1.DatabaseTableSpec"
120
+ optional :data_source_connection_spec, :message, 27, "google.cloud.datacatalog.v1.DataSourceConnectionSpec"
121
+ optional :routine_spec, :message, 28, "google.cloud.datacatalog.v1.RoutineSpec"
115
122
  end
116
123
  end
117
124
  add_message "google.cloud.datacatalog.v1.DatabaseTableSpec" do
@@ -122,6 +129,35 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
122
129
  value :NATIVE, 1
123
130
  value :EXTERNAL, 2
124
131
  end
132
+ add_message "google.cloud.datacatalog.v1.DataSourceConnectionSpec" do
133
+ optional :bigquery_connection_spec, :message, 1, "google.cloud.datacatalog.v1.BigQueryConnectionSpec"
134
+ end
135
+ add_message "google.cloud.datacatalog.v1.RoutineSpec" do
136
+ optional :routine_type, :enum, 1, "google.cloud.datacatalog.v1.RoutineSpec.RoutineType"
137
+ optional :language, :string, 2
138
+ repeated :routine_arguments, :message, 3, "google.cloud.datacatalog.v1.RoutineSpec.Argument"
139
+ optional :return_type, :string, 4
140
+ optional :definition_body, :string, 5
141
+ oneof :system_spec do
142
+ optional :bigquery_routine_spec, :message, 6, "google.cloud.datacatalog.v1.BigQueryRoutineSpec"
143
+ end
144
+ end
145
+ add_message "google.cloud.datacatalog.v1.RoutineSpec.Argument" do
146
+ optional :name, :string, 1
147
+ optional :mode, :enum, 2, "google.cloud.datacatalog.v1.RoutineSpec.Argument.Mode"
148
+ optional :type, :string, 3
149
+ end
150
+ add_enum "google.cloud.datacatalog.v1.RoutineSpec.Argument.Mode" do
151
+ value :MODE_UNSPECIFIED, 0
152
+ value :IN, 1
153
+ value :OUT, 2
154
+ value :INOUT, 3
155
+ end
156
+ add_enum "google.cloud.datacatalog.v1.RoutineSpec.RoutineType" do
157
+ value :ROUTINE_TYPE_UNSPECIFIED, 0
158
+ value :SCALAR_FUNCTION, 1
159
+ value :PROCEDURE, 2
160
+ end
125
161
  add_message "google.cloud.datacatalog.v1.EntryGroup" do
126
162
  optional :name, :string, 1
127
163
  optional :display_name, :string, 2
@@ -202,7 +238,10 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
202
238
  value :MODEL, 5
203
239
  value :DATA_STREAM, 3
204
240
  value :FILESET, 4
241
+ value :CLUSTER, 6
205
242
  value :DATABASE, 7
243
+ value :DATA_SOURCE_CONNECTION, 8
244
+ value :ROUTINE, 9
206
245
  value :SERVICE, 14
207
246
  end
208
247
  end
@@ -229,6 +268,11 @@ module Google
229
268
  Entry = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.Entry").msgclass
230
269
  DatabaseTableSpec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.DatabaseTableSpec").msgclass
231
270
  DatabaseTableSpec::TableType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.DatabaseTableSpec.TableType").enummodule
271
+ DataSourceConnectionSpec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.DataSourceConnectionSpec").msgclass
272
+ RoutineSpec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.RoutineSpec").msgclass
273
+ RoutineSpec::Argument = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.RoutineSpec.Argument").msgclass
274
+ RoutineSpec::Argument::Mode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.RoutineSpec.Argument.Mode").enummodule
275
+ RoutineSpec::RoutineType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.RoutineSpec.RoutineType").enummodule
232
276
  EntryGroup = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.EntryGroup").msgclass
233
277
  CreateTagTemplateRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.CreateTagTemplateRequest").msgclass
234
278
  GetTagTemplateRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.GetTagTemplateRequest").msgclass