google-cloud-data_catalog-v1 0.9.1 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/google/cloud/data_catalog/v1/data_catalog/client.rb +386 -3
- data/lib/google/cloud/data_catalog/v1/version.rb +1 -1
- data/lib/google/cloud/datacatalog/v1/common_pb.rb +5 -0
- data/lib/google/cloud/datacatalog/v1/datacatalog_pb.rb +45 -0
- data/lib/google/cloud/datacatalog/v1/datacatalog_services_pb.rb +20 -0
- data/lib/google/cloud/datacatalog/v1/policytagmanagerserialization_pb.rb +1 -1
- data/proto_docs/google/cloud/datacatalog/v1/common.rb +12 -0
- data/proto_docs/google/cloud/datacatalog/v1/datacatalog.rb +126 -12
- data/proto_docs/google/cloud/datacatalog/v1/tags.rb +4 -25
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8ad643a4d17fd3db4f1a03cbf47927c7dbe7689143e746855de9c5be56d87391
|
4
|
+
data.tar.gz: 275d56cb790a053a2487ba4a104b043d1a2a05068420875897d9b87c92a0ec08
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a06e4b529947202ee77a3c92b5423bb766c983a0c05f9b36b77c585482f1a62080cd95718bdda89f7643a6d5c194df6ab2c95bd170e47c06df42d27bb345a467
|
7
|
+
data.tar.gz: 21bc61fe436fb546ceff79e706c7fa55c486fc831e2ac13dd1d1bdbee5dae2bfe636a05a0d72eb7ec8a7030f942198f67b3a2678d42d0cf14e0358d86ac51cf7
|
data/README.md
CHANGED
@@ -37,7 +37,7 @@ request = ::Google::Cloud::DataCatalog::V1::SearchCatalogRequest.new # (request
|
|
37
37
|
response = client.search_catalog request
|
38
38
|
```
|
39
39
|
|
40
|
-
View the [Client Library Documentation](https://
|
40
|
+
View the [Client Library Documentation](https://cloud.google.com/ruby/docs/reference/google-cloud-data_catalog-v1/latest)
|
41
41
|
for class and method documentation.
|
42
42
|
|
43
43
|
See also the [Product Documentation](https://cloud.google.com/data-catalog)
|
@@ -260,6 +260,7 @@ module Google
|
|
260
260
|
#
|
261
261
|
# * `relevance` that can only be descending
|
262
262
|
# * `last_modified_timestamp [asc|desc]` with descending (`desc`) as default
|
263
|
+
# * `default` that can only be descending
|
263
264
|
#
|
264
265
|
# If this parameter is omitted, it defaults to the descending `relevance`.
|
265
266
|
#
|
@@ -1456,6 +1457,188 @@ module Google
|
|
1456
1457
|
raise ::Google::Cloud::Error.from_error(e)
|
1457
1458
|
end
|
1458
1459
|
|
1460
|
+
##
|
1461
|
+
# Modifies entry overview, part of the business context of an
|
1462
|
+
# {::Google::Cloud::DataCatalog::V1::Entry Entry}.
|
1463
|
+
#
|
1464
|
+
# To call this method, you must have the `datacatalog.entries.updateOverview`
|
1465
|
+
# IAM permission on the corresponding project.
|
1466
|
+
#
|
1467
|
+
# @overload modify_entry_overview(request, options = nil)
|
1468
|
+
# Pass arguments to `modify_entry_overview` via a request object, either of type
|
1469
|
+
# {::Google::Cloud::DataCatalog::V1::ModifyEntryOverviewRequest} or an equivalent Hash.
|
1470
|
+
#
|
1471
|
+
# @param request [::Google::Cloud::DataCatalog::V1::ModifyEntryOverviewRequest, ::Hash]
|
1472
|
+
# A request object representing the call parameters. Required. To specify no
|
1473
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1474
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1475
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1476
|
+
#
|
1477
|
+
# @overload modify_entry_overview(name: nil, entry_overview: nil)
|
1478
|
+
# Pass arguments to `modify_entry_overview` via keyword arguments. Note that at
|
1479
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1480
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1481
|
+
#
|
1482
|
+
# @param name [::String]
|
1483
|
+
# Required. The full resource name of the entry.
|
1484
|
+
# @param entry_overview [::Google::Cloud::DataCatalog::V1::EntryOverview, ::Hash]
|
1485
|
+
# Required. The new value for the Entry Overview.
|
1486
|
+
#
|
1487
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
1488
|
+
# @yieldparam response [::Google::Cloud::DataCatalog::V1::EntryOverview]
|
1489
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1490
|
+
#
|
1491
|
+
# @return [::Google::Cloud::DataCatalog::V1::EntryOverview]
|
1492
|
+
#
|
1493
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1494
|
+
#
|
1495
|
+
# @example Basic example
|
1496
|
+
# require "google/cloud/data_catalog/v1"
|
1497
|
+
#
|
1498
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1499
|
+
# client = Google::Cloud::DataCatalog::V1::DataCatalog::Client.new
|
1500
|
+
#
|
1501
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1502
|
+
# request = Google::Cloud::DataCatalog::V1::ModifyEntryOverviewRequest.new
|
1503
|
+
#
|
1504
|
+
# # Call the modify_entry_overview method.
|
1505
|
+
# result = client.modify_entry_overview request
|
1506
|
+
#
|
1507
|
+
# # The returned object is of type Google::Cloud::DataCatalog::V1::EntryOverview.
|
1508
|
+
# p result
|
1509
|
+
#
|
1510
|
+
def modify_entry_overview request, options = nil
|
1511
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1512
|
+
|
1513
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DataCatalog::V1::ModifyEntryOverviewRequest
|
1514
|
+
|
1515
|
+
# Converts hash and nil to an options object
|
1516
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1517
|
+
|
1518
|
+
# Customize the options with defaults
|
1519
|
+
metadata = @config.rpcs.modify_entry_overview.metadata.to_h
|
1520
|
+
|
1521
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1522
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1523
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1524
|
+
gapic_version: ::Google::Cloud::DataCatalog::V1::VERSION
|
1525
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1526
|
+
|
1527
|
+
header_params = {}
|
1528
|
+
if request.name
|
1529
|
+
header_params["name"] = request.name
|
1530
|
+
end
|
1531
|
+
|
1532
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1533
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
1534
|
+
|
1535
|
+
options.apply_defaults timeout: @config.rpcs.modify_entry_overview.timeout,
|
1536
|
+
metadata: metadata,
|
1537
|
+
retry_policy: @config.rpcs.modify_entry_overview.retry_policy
|
1538
|
+
|
1539
|
+
options.apply_defaults timeout: @config.timeout,
|
1540
|
+
metadata: @config.metadata,
|
1541
|
+
retry_policy: @config.retry_policy
|
1542
|
+
|
1543
|
+
@data_catalog_stub.call_rpc :modify_entry_overview, request, options: options do |response, operation|
|
1544
|
+
yield response, operation if block_given?
|
1545
|
+
return response
|
1546
|
+
end
|
1547
|
+
rescue ::GRPC::BadStatus => e
|
1548
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1549
|
+
end
|
1550
|
+
|
1551
|
+
##
|
1552
|
+
# Modifies contacts, part of the business context of an
|
1553
|
+
# {::Google::Cloud::DataCatalog::V1::Entry Entry}.
|
1554
|
+
#
|
1555
|
+
# To call this method, you must have the `datacatalog.entries.updateContacts`
|
1556
|
+
# IAM permission on the corresponding project.
|
1557
|
+
#
|
1558
|
+
# @overload modify_entry_contacts(request, options = nil)
|
1559
|
+
# Pass arguments to `modify_entry_contacts` via a request object, either of type
|
1560
|
+
# {::Google::Cloud::DataCatalog::V1::ModifyEntryContactsRequest} or an equivalent Hash.
|
1561
|
+
#
|
1562
|
+
# @param request [::Google::Cloud::DataCatalog::V1::ModifyEntryContactsRequest, ::Hash]
|
1563
|
+
# A request object representing the call parameters. Required. To specify no
|
1564
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1565
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1566
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1567
|
+
#
|
1568
|
+
# @overload modify_entry_contacts(name: nil, contacts: nil)
|
1569
|
+
# Pass arguments to `modify_entry_contacts` via keyword arguments. Note that at
|
1570
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1571
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1572
|
+
#
|
1573
|
+
# @param name [::String]
|
1574
|
+
# Required. The full resource name of the entry.
|
1575
|
+
# @param contacts [::Google::Cloud::DataCatalog::V1::Contacts, ::Hash]
|
1576
|
+
# Required. The new value for the Contacts.
|
1577
|
+
#
|
1578
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
1579
|
+
# @yieldparam response [::Google::Cloud::DataCatalog::V1::Contacts]
|
1580
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1581
|
+
#
|
1582
|
+
# @return [::Google::Cloud::DataCatalog::V1::Contacts]
|
1583
|
+
#
|
1584
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1585
|
+
#
|
1586
|
+
# @example Basic example
|
1587
|
+
# require "google/cloud/data_catalog/v1"
|
1588
|
+
#
|
1589
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1590
|
+
# client = Google::Cloud::DataCatalog::V1::DataCatalog::Client.new
|
1591
|
+
#
|
1592
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1593
|
+
# request = Google::Cloud::DataCatalog::V1::ModifyEntryContactsRequest.new
|
1594
|
+
#
|
1595
|
+
# # Call the modify_entry_contacts method.
|
1596
|
+
# result = client.modify_entry_contacts request
|
1597
|
+
#
|
1598
|
+
# # The returned object is of type Google::Cloud::DataCatalog::V1::Contacts.
|
1599
|
+
# p result
|
1600
|
+
#
|
1601
|
+
def modify_entry_contacts request, options = nil
|
1602
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1603
|
+
|
1604
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DataCatalog::V1::ModifyEntryContactsRequest
|
1605
|
+
|
1606
|
+
# Converts hash and nil to an options object
|
1607
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1608
|
+
|
1609
|
+
# Customize the options with defaults
|
1610
|
+
metadata = @config.rpcs.modify_entry_contacts.metadata.to_h
|
1611
|
+
|
1612
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1613
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1614
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1615
|
+
gapic_version: ::Google::Cloud::DataCatalog::V1::VERSION
|
1616
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1617
|
+
|
1618
|
+
header_params = {}
|
1619
|
+
if request.name
|
1620
|
+
header_params["name"] = request.name
|
1621
|
+
end
|
1622
|
+
|
1623
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1624
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
1625
|
+
|
1626
|
+
options.apply_defaults timeout: @config.rpcs.modify_entry_contacts.timeout,
|
1627
|
+
metadata: metadata,
|
1628
|
+
retry_policy: @config.rpcs.modify_entry_contacts.retry_policy
|
1629
|
+
|
1630
|
+
options.apply_defaults timeout: @config.timeout,
|
1631
|
+
metadata: @config.metadata,
|
1632
|
+
retry_policy: @config.retry_policy
|
1633
|
+
|
1634
|
+
@data_catalog_stub.call_rpc :modify_entry_contacts, request, options: options do |response, operation|
|
1635
|
+
yield response, operation if block_given?
|
1636
|
+
return response
|
1637
|
+
end
|
1638
|
+
rescue ::GRPC::BadStatus => e
|
1639
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1640
|
+
end
|
1641
|
+
|
1459
1642
|
##
|
1460
1643
|
# Creates a tag template.
|
1461
1644
|
#
|
@@ -1677,9 +1860,7 @@ module Google
|
|
1677
1860
|
# request body, their values are emptied.
|
1678
1861
|
#
|
1679
1862
|
# Note: Updating the `is_publicly_readable` field may require up to 12
|
1680
|
-
# hours to take effect in search results.
|
1681
|
-
# the `tagTemplates.getIamPolicy` and `tagTemplates.setIamPolicy`
|
1682
|
-
# permissions.
|
1863
|
+
# hours to take effect in search results.
|
1683
1864
|
#
|
1684
1865
|
# @yield [response, operation] Access the result along with the RPC operation
|
1685
1866
|
# @yieldparam response [::Google::Cloud::DataCatalog::V1::TagTemplate]
|
@@ -2607,6 +2788,8 @@ module Google
|
|
2607
2788
|
|
2608
2789
|
##
|
2609
2790
|
# Lists tags assigned to an {::Google::Cloud::DataCatalog::V1::Entry Entry}.
|
2791
|
+
# The {::Google::Cloud::DataCatalog::V1::Tag#column columns} in the response are
|
2792
|
+
# lowercased.
|
2610
2793
|
#
|
2611
2794
|
# @overload list_tags(request, options = nil)
|
2612
2795
|
# Pass arguments to `list_tags` via a request object, either of type
|
@@ -2706,6 +2889,178 @@ module Google
|
|
2706
2889
|
raise ::Google::Cloud::Error.from_error(e)
|
2707
2890
|
end
|
2708
2891
|
|
2892
|
+
##
|
2893
|
+
# Marks an {::Google::Cloud::DataCatalog::V1::Entry Entry} as starred by
|
2894
|
+
# the current user. Starring information is private to each user.
|
2895
|
+
#
|
2896
|
+
# @overload star_entry(request, options = nil)
|
2897
|
+
# Pass arguments to `star_entry` via a request object, either of type
|
2898
|
+
# {::Google::Cloud::DataCatalog::V1::StarEntryRequest} or an equivalent Hash.
|
2899
|
+
#
|
2900
|
+
# @param request [::Google::Cloud::DataCatalog::V1::StarEntryRequest, ::Hash]
|
2901
|
+
# A request object representing the call parameters. Required. To specify no
|
2902
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
2903
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
2904
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
2905
|
+
#
|
2906
|
+
# @overload star_entry(name: nil)
|
2907
|
+
# Pass arguments to `star_entry` via keyword arguments. Note that at
|
2908
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
2909
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
2910
|
+
#
|
2911
|
+
# @param name [::String]
|
2912
|
+
# Required. The name of the entry to mark as starred.
|
2913
|
+
#
|
2914
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
2915
|
+
# @yieldparam response [::Google::Cloud::DataCatalog::V1::StarEntryResponse]
|
2916
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
2917
|
+
#
|
2918
|
+
# @return [::Google::Cloud::DataCatalog::V1::StarEntryResponse]
|
2919
|
+
#
|
2920
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2921
|
+
#
|
2922
|
+
# @example Basic example
|
2923
|
+
# require "google/cloud/data_catalog/v1"
|
2924
|
+
#
|
2925
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2926
|
+
# client = Google::Cloud::DataCatalog::V1::DataCatalog::Client.new
|
2927
|
+
#
|
2928
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2929
|
+
# request = Google::Cloud::DataCatalog::V1::StarEntryRequest.new
|
2930
|
+
#
|
2931
|
+
# # Call the star_entry method.
|
2932
|
+
# result = client.star_entry request
|
2933
|
+
#
|
2934
|
+
# # The returned object is of type Google::Cloud::DataCatalog::V1::StarEntryResponse.
|
2935
|
+
# p result
|
2936
|
+
#
|
2937
|
+
def star_entry request, options = nil
|
2938
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
2939
|
+
|
2940
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DataCatalog::V1::StarEntryRequest
|
2941
|
+
|
2942
|
+
# Converts hash and nil to an options object
|
2943
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2944
|
+
|
2945
|
+
# Customize the options with defaults
|
2946
|
+
metadata = @config.rpcs.star_entry.metadata.to_h
|
2947
|
+
|
2948
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
2949
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2950
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2951
|
+
gapic_version: ::Google::Cloud::DataCatalog::V1::VERSION
|
2952
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2953
|
+
|
2954
|
+
header_params = {}
|
2955
|
+
if request.name
|
2956
|
+
header_params["name"] = request.name
|
2957
|
+
end
|
2958
|
+
|
2959
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
2960
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
2961
|
+
|
2962
|
+
options.apply_defaults timeout: @config.rpcs.star_entry.timeout,
|
2963
|
+
metadata: metadata,
|
2964
|
+
retry_policy: @config.rpcs.star_entry.retry_policy
|
2965
|
+
|
2966
|
+
options.apply_defaults timeout: @config.timeout,
|
2967
|
+
metadata: @config.metadata,
|
2968
|
+
retry_policy: @config.retry_policy
|
2969
|
+
|
2970
|
+
@data_catalog_stub.call_rpc :star_entry, request, options: options do |response, operation|
|
2971
|
+
yield response, operation if block_given?
|
2972
|
+
return response
|
2973
|
+
end
|
2974
|
+
rescue ::GRPC::BadStatus => e
|
2975
|
+
raise ::Google::Cloud::Error.from_error(e)
|
2976
|
+
end
|
2977
|
+
|
2978
|
+
##
|
2979
|
+
# Marks an {::Google::Cloud::DataCatalog::V1::Entry Entry} as NOT starred by
|
2980
|
+
# the current user. Starring information is private to each user.
|
2981
|
+
#
|
2982
|
+
# @overload unstar_entry(request, options = nil)
|
2983
|
+
# Pass arguments to `unstar_entry` via a request object, either of type
|
2984
|
+
# {::Google::Cloud::DataCatalog::V1::UnstarEntryRequest} or an equivalent Hash.
|
2985
|
+
#
|
2986
|
+
# @param request [::Google::Cloud::DataCatalog::V1::UnstarEntryRequest, ::Hash]
|
2987
|
+
# A request object representing the call parameters. Required. To specify no
|
2988
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
2989
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
2990
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
2991
|
+
#
|
2992
|
+
# @overload unstar_entry(name: nil)
|
2993
|
+
# Pass arguments to `unstar_entry` via keyword arguments. Note that at
|
2994
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
2995
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
2996
|
+
#
|
2997
|
+
# @param name [::String]
|
2998
|
+
# Required. The name of the entry to mark as **not** starred.
|
2999
|
+
#
|
3000
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
3001
|
+
# @yieldparam response [::Google::Cloud::DataCatalog::V1::UnstarEntryResponse]
|
3002
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
3003
|
+
#
|
3004
|
+
# @return [::Google::Cloud::DataCatalog::V1::UnstarEntryResponse]
|
3005
|
+
#
|
3006
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
3007
|
+
#
|
3008
|
+
# @example Basic example
|
3009
|
+
# require "google/cloud/data_catalog/v1"
|
3010
|
+
#
|
3011
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3012
|
+
# client = Google::Cloud::DataCatalog::V1::DataCatalog::Client.new
|
3013
|
+
#
|
3014
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3015
|
+
# request = Google::Cloud::DataCatalog::V1::UnstarEntryRequest.new
|
3016
|
+
#
|
3017
|
+
# # Call the unstar_entry method.
|
3018
|
+
# result = client.unstar_entry request
|
3019
|
+
#
|
3020
|
+
# # The returned object is of type Google::Cloud::DataCatalog::V1::UnstarEntryResponse.
|
3021
|
+
# p result
|
3022
|
+
#
|
3023
|
+
def unstar_entry request, options = nil
|
3024
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
3025
|
+
|
3026
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DataCatalog::V1::UnstarEntryRequest
|
3027
|
+
|
3028
|
+
# Converts hash and nil to an options object
|
3029
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
3030
|
+
|
3031
|
+
# Customize the options with defaults
|
3032
|
+
metadata = @config.rpcs.unstar_entry.metadata.to_h
|
3033
|
+
|
3034
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
3035
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3036
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3037
|
+
gapic_version: ::Google::Cloud::DataCatalog::V1::VERSION
|
3038
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3039
|
+
|
3040
|
+
header_params = {}
|
3041
|
+
if request.name
|
3042
|
+
header_params["name"] = request.name
|
3043
|
+
end
|
3044
|
+
|
3045
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
3046
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
3047
|
+
|
3048
|
+
options.apply_defaults timeout: @config.rpcs.unstar_entry.timeout,
|
3049
|
+
metadata: metadata,
|
3050
|
+
retry_policy: @config.rpcs.unstar_entry.retry_policy
|
3051
|
+
|
3052
|
+
options.apply_defaults timeout: @config.timeout,
|
3053
|
+
metadata: @config.metadata,
|
3054
|
+
retry_policy: @config.retry_policy
|
3055
|
+
|
3056
|
+
@data_catalog_stub.call_rpc :unstar_entry, request, options: options do |response, operation|
|
3057
|
+
yield response, operation if block_given?
|
3058
|
+
return response
|
3059
|
+
end
|
3060
|
+
rescue ::GRPC::BadStatus => e
|
3061
|
+
raise ::Google::Cloud::Error.from_error(e)
|
3062
|
+
end
|
3063
|
+
|
2709
3064
|
##
|
2710
3065
|
# Sets an access control policy for a resource. Replaces any existing
|
2711
3066
|
# policy.
|
@@ -3222,6 +3577,16 @@ module Google
|
|
3222
3577
|
#
|
3223
3578
|
attr_reader :list_entries
|
3224
3579
|
##
|
3580
|
+
# RPC-specific configuration for `modify_entry_overview`
|
3581
|
+
# @return [::Gapic::Config::Method]
|
3582
|
+
#
|
3583
|
+
attr_reader :modify_entry_overview
|
3584
|
+
##
|
3585
|
+
# RPC-specific configuration for `modify_entry_contacts`
|
3586
|
+
# @return [::Gapic::Config::Method]
|
3587
|
+
#
|
3588
|
+
attr_reader :modify_entry_contacts
|
3589
|
+
##
|
3225
3590
|
# RPC-specific configuration for `create_tag_template`
|
3226
3591
|
# @return [::Gapic::Config::Method]
|
3227
3592
|
#
|
@@ -3287,6 +3652,16 @@ module Google
|
|
3287
3652
|
#
|
3288
3653
|
attr_reader :list_tags
|
3289
3654
|
##
|
3655
|
+
# RPC-specific configuration for `star_entry`
|
3656
|
+
# @return [::Gapic::Config::Method]
|
3657
|
+
#
|
3658
|
+
attr_reader :star_entry
|
3659
|
+
##
|
3660
|
+
# RPC-specific configuration for `unstar_entry`
|
3661
|
+
# @return [::Gapic::Config::Method]
|
3662
|
+
#
|
3663
|
+
attr_reader :unstar_entry
|
3664
|
+
##
|
3290
3665
|
# RPC-specific configuration for `set_iam_policy`
|
3291
3666
|
# @return [::Gapic::Config::Method]
|
3292
3667
|
#
|
@@ -3328,6 +3703,10 @@ module Google
|
|
3328
3703
|
@lookup_entry = ::Gapic::Config::Method.new lookup_entry_config
|
3329
3704
|
list_entries_config = parent_rpcs.list_entries if parent_rpcs.respond_to? :list_entries
|
3330
3705
|
@list_entries = ::Gapic::Config::Method.new list_entries_config
|
3706
|
+
modify_entry_overview_config = parent_rpcs.modify_entry_overview if parent_rpcs.respond_to? :modify_entry_overview
|
3707
|
+
@modify_entry_overview = ::Gapic::Config::Method.new modify_entry_overview_config
|
3708
|
+
modify_entry_contacts_config = parent_rpcs.modify_entry_contacts if parent_rpcs.respond_to? :modify_entry_contacts
|
3709
|
+
@modify_entry_contacts = ::Gapic::Config::Method.new modify_entry_contacts_config
|
3331
3710
|
create_tag_template_config = parent_rpcs.create_tag_template if parent_rpcs.respond_to? :create_tag_template
|
3332
3711
|
@create_tag_template = ::Gapic::Config::Method.new create_tag_template_config
|
3333
3712
|
get_tag_template_config = parent_rpcs.get_tag_template if parent_rpcs.respond_to? :get_tag_template
|
@@ -3354,6 +3733,10 @@ module Google
|
|
3354
3733
|
@delete_tag = ::Gapic::Config::Method.new delete_tag_config
|
3355
3734
|
list_tags_config = parent_rpcs.list_tags if parent_rpcs.respond_to? :list_tags
|
3356
3735
|
@list_tags = ::Gapic::Config::Method.new list_tags_config
|
3736
|
+
star_entry_config = parent_rpcs.star_entry if parent_rpcs.respond_to? :star_entry
|
3737
|
+
@star_entry = ::Gapic::Config::Method.new star_entry_config
|
3738
|
+
unstar_entry_config = parent_rpcs.unstar_entry if parent_rpcs.respond_to? :unstar_entry
|
3739
|
+
@unstar_entry = ::Gapic::Config::Method.new unstar_entry_config
|
3357
3740
|
set_iam_policy_config = parent_rpcs.set_iam_policy if parent_rpcs.respond_to? :set_iam_policy
|
3358
3741
|
@set_iam_policy = ::Gapic::Config::Method.new set_iam_policy_config
|
3359
3742
|
get_iam_policy_config = parent_rpcs.get_iam_policy if parent_rpcs.respond_to? :get_iam_policy
|
@@ -6,6 +6,10 @@ require 'google/protobuf'
|
|
6
6
|
|
7
7
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
8
8
|
add_file("google/cloud/datacatalog/v1/common.proto", :syntax => :proto3) do
|
9
|
+
add_message "google.cloud.datacatalog.v1.PersonalDetails" do
|
10
|
+
optional :starred, :bool, 1
|
11
|
+
optional :star_time, :message, 2, "google.protobuf.Timestamp"
|
12
|
+
end
|
9
13
|
add_enum "google.cloud.datacatalog.v1.IntegratedSystem" do
|
10
14
|
value :INTEGRATED_SYSTEM_UNSPECIFIED, 0
|
11
15
|
value :BIGQUERY, 1
|
@@ -19,6 +23,7 @@ module Google
|
|
19
23
|
module Cloud
|
20
24
|
module DataCatalog
|
21
25
|
module V1
|
26
|
+
PersonalDetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.PersonalDetails").msgclass
|
22
27
|
IntegratedSystem = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.IntegratedSystem").enummodule
|
23
28
|
end
|
24
29
|
end
|
@@ -36,6 +36,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
36
36
|
repeated :include_project_ids, :string, 3
|
37
37
|
optional :include_gcp_public_datasets, :bool, 7
|
38
38
|
repeated :restricted_locations, :string, 16
|
39
|
+
optional :starred_only, :bool, 18
|
39
40
|
optional :include_public_tag_templates, :bool, 19
|
40
41
|
end
|
41
42
|
add_message "google.cloud.datacatalog.v1.SearchCatalogResponse" do
|
@@ -97,11 +98,13 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
97
98
|
optional :fully_qualified_name, :string, 29
|
98
99
|
optional :display_name, :string, 3
|
99
100
|
optional :description, :string, 4
|
101
|
+
optional :business_context, :message, 37, "google.cloud.datacatalog.v1.BusinessContext"
|
100
102
|
optional :schema, :message, 5, "google.cloud.datacatalog.v1.Schema"
|
101
103
|
optional :source_system_timestamps, :message, 7, "google.cloud.datacatalog.v1.SystemTimestamps"
|
102
104
|
optional :usage_signal, :message, 13, "google.cloud.datacatalog.v1.UsageSignal"
|
103
105
|
map :labels, :string, :string, 14
|
104
106
|
optional :data_source, :message, 20, "google.cloud.datacatalog.v1.DataSource"
|
107
|
+
optional :personal_details, :message, 26, "google.cloud.datacatalog.v1.PersonalDetails"
|
105
108
|
oneof :entry_type do
|
106
109
|
optional :type, :enum, 2, "google.cloud.datacatalog.v1.EntryType"
|
107
110
|
optional :user_specified_type, :string, 16
|
@@ -158,6 +161,20 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
158
161
|
value :SCALAR_FUNCTION, 1
|
159
162
|
value :PROCEDURE, 2
|
160
163
|
end
|
164
|
+
add_message "google.cloud.datacatalog.v1.BusinessContext" do
|
165
|
+
optional :entry_overview, :message, 1, "google.cloud.datacatalog.v1.EntryOverview"
|
166
|
+
optional :contacts, :message, 2, "google.cloud.datacatalog.v1.Contacts"
|
167
|
+
end
|
168
|
+
add_message "google.cloud.datacatalog.v1.EntryOverview" do
|
169
|
+
optional :overview, :string, 1
|
170
|
+
end
|
171
|
+
add_message "google.cloud.datacatalog.v1.Contacts" do
|
172
|
+
repeated :people, :message, 1, "google.cloud.datacatalog.v1.Contacts.Person"
|
173
|
+
end
|
174
|
+
add_message "google.cloud.datacatalog.v1.Contacts.Person" do
|
175
|
+
optional :designation, :string, 1
|
176
|
+
optional :email, :string, 2
|
177
|
+
end
|
161
178
|
add_message "google.cloud.datacatalog.v1.EntryGroup" do
|
162
179
|
optional :name, :string, 1
|
163
180
|
optional :display_name, :string, 2
|
@@ -232,6 +249,24 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
232
249
|
repeated :entries, :message, 1, "google.cloud.datacatalog.v1.Entry"
|
233
250
|
optional :next_page_token, :string, 2
|
234
251
|
end
|
252
|
+
add_message "google.cloud.datacatalog.v1.StarEntryRequest" do
|
253
|
+
optional :name, :string, 1
|
254
|
+
end
|
255
|
+
add_message "google.cloud.datacatalog.v1.StarEntryResponse" do
|
256
|
+
end
|
257
|
+
add_message "google.cloud.datacatalog.v1.UnstarEntryRequest" do
|
258
|
+
optional :name, :string, 1
|
259
|
+
end
|
260
|
+
add_message "google.cloud.datacatalog.v1.UnstarEntryResponse" do
|
261
|
+
end
|
262
|
+
add_message "google.cloud.datacatalog.v1.ModifyEntryOverviewRequest" do
|
263
|
+
optional :name, :string, 1
|
264
|
+
optional :entry_overview, :message, 2, "google.cloud.datacatalog.v1.EntryOverview"
|
265
|
+
end
|
266
|
+
add_message "google.cloud.datacatalog.v1.ModifyEntryContactsRequest" do
|
267
|
+
optional :name, :string, 1
|
268
|
+
optional :contacts, :message, 2, "google.cloud.datacatalog.v1.Contacts"
|
269
|
+
end
|
235
270
|
add_enum "google.cloud.datacatalog.v1.EntryType" do
|
236
271
|
value :ENTRY_TYPE_UNSPECIFIED, 0
|
237
272
|
value :TABLE, 2
|
@@ -273,6 +308,10 @@ module Google
|
|
273
308
|
RoutineSpec::Argument = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.RoutineSpec.Argument").msgclass
|
274
309
|
RoutineSpec::Argument::Mode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.RoutineSpec.Argument.Mode").enummodule
|
275
310
|
RoutineSpec::RoutineType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.RoutineSpec.RoutineType").enummodule
|
311
|
+
BusinessContext = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.BusinessContext").msgclass
|
312
|
+
EntryOverview = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.EntryOverview").msgclass
|
313
|
+
Contacts = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.Contacts").msgclass
|
314
|
+
Contacts::Person = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.Contacts.Person").msgclass
|
276
315
|
EntryGroup = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.EntryGroup").msgclass
|
277
316
|
CreateTagTemplateRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.CreateTagTemplateRequest").msgclass
|
278
317
|
GetTagTemplateRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.GetTagTemplateRequest").msgclass
|
@@ -290,6 +329,12 @@ module Google
|
|
290
329
|
ListTagsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.ListTagsResponse").msgclass
|
291
330
|
ListEntriesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.ListEntriesRequest").msgclass
|
292
331
|
ListEntriesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.ListEntriesResponse").msgclass
|
332
|
+
StarEntryRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.StarEntryRequest").msgclass
|
333
|
+
StarEntryResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.StarEntryResponse").msgclass
|
334
|
+
UnstarEntryRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.UnstarEntryRequest").msgclass
|
335
|
+
UnstarEntryResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.UnstarEntryResponse").msgclass
|
336
|
+
ModifyEntryOverviewRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.ModifyEntryOverviewRequest").msgclass
|
337
|
+
ModifyEntryContactsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.ModifyEntryContactsRequest").msgclass
|
293
338
|
EntryType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.EntryType").enummodule
|
294
339
|
end
|
295
340
|
end
|
@@ -138,6 +138,18 @@ module Google
|
|
138
138
|
# To get a list of both custom and automatically created entries, use
|
139
139
|
# [SearchCatalog][google.cloud.datacatalog.v1.DataCatalog.SearchCatalog].
|
140
140
|
rpc :ListEntries, ::Google::Cloud::DataCatalog::V1::ListEntriesRequest, ::Google::Cloud::DataCatalog::V1::ListEntriesResponse
|
141
|
+
# Modifies entry overview, part of the business context of an
|
142
|
+
# [Entry][google.cloud.datacatalog.v1.Entry].
|
143
|
+
#
|
144
|
+
# To call this method, you must have the `datacatalog.entries.updateOverview`
|
145
|
+
# IAM permission on the corresponding project.
|
146
|
+
rpc :ModifyEntryOverview, ::Google::Cloud::DataCatalog::V1::ModifyEntryOverviewRequest, ::Google::Cloud::DataCatalog::V1::EntryOverview
|
147
|
+
# Modifies contacts, part of the business context of an
|
148
|
+
# [Entry][google.cloud.datacatalog.v1.Entry].
|
149
|
+
#
|
150
|
+
# To call this method, you must have the `datacatalog.entries.updateContacts`
|
151
|
+
# IAM permission on the corresponding project.
|
152
|
+
rpc :ModifyEntryContacts, ::Google::Cloud::DataCatalog::V1::ModifyEntryContactsRequest, ::Google::Cloud::DataCatalog::V1::Contacts
|
141
153
|
# Creates a tag template.
|
142
154
|
#
|
143
155
|
# You must enable the Data Catalog API in the project identified by the
|
@@ -213,7 +225,15 @@ module Google
|
|
213
225
|
# Deletes a tag.
|
214
226
|
rpc :DeleteTag, ::Google::Cloud::DataCatalog::V1::DeleteTagRequest, ::Google::Protobuf::Empty
|
215
227
|
# Lists tags assigned to an [Entry][google.cloud.datacatalog.v1.Entry].
|
228
|
+
# The [columns][google.cloud.datacatalog.v1.Tag.column] in the response are
|
229
|
+
# lowercased.
|
216
230
|
rpc :ListTags, ::Google::Cloud::DataCatalog::V1::ListTagsRequest, ::Google::Cloud::DataCatalog::V1::ListTagsResponse
|
231
|
+
# Marks an [Entry][google.cloud.datacatalog.v1.Entry] as starred by
|
232
|
+
# the current user. Starring information is private to each user.
|
233
|
+
rpc :StarEntry, ::Google::Cloud::DataCatalog::V1::StarEntryRequest, ::Google::Cloud::DataCatalog::V1::StarEntryResponse
|
234
|
+
# Marks an [Entry][google.cloud.datacatalog.v1.Entry] as NOT starred by
|
235
|
+
# the current user. Starring information is private to each user.
|
236
|
+
rpc :UnstarEntry, ::Google::Cloud::DataCatalog::V1::UnstarEntryRequest, ::Google::Cloud::DataCatalog::V1::UnstarEntryResponse
|
217
237
|
# Sets an access control policy for a resource. Replaces any existing
|
218
238
|
# policy.
|
219
239
|
#
|
@@ -2,11 +2,11 @@
|
|
2
2
|
# source: google/cloud/datacatalog/v1/policytagmanagerserialization.proto
|
3
3
|
|
4
4
|
require 'google/api/annotations_pb'
|
5
|
+
require 'google/api/client_pb'
|
5
6
|
require 'google/api/field_behavior_pb'
|
6
7
|
require 'google/api/resource_pb'
|
7
8
|
require 'google/cloud/datacatalog/v1/policytagmanager_pb'
|
8
9
|
require 'google/iam/v1/policy_pb'
|
9
|
-
require 'google/api/client_pb'
|
10
10
|
require 'google/protobuf'
|
11
11
|
|
12
12
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
@@ -21,6 +21,18 @@ module Google
|
|
21
21
|
module Cloud
|
22
22
|
module DataCatalog
|
23
23
|
module V1
|
24
|
+
# Entry metadata relevant only to the user and private to them.
|
25
|
+
# @!attribute [rw] starred
|
26
|
+
# @return [::Boolean]
|
27
|
+
# True if the entry is starred by the user; false otherwise.
|
28
|
+
# @!attribute [rw] star_time
|
29
|
+
# @return [::Google::Protobuf::Timestamp]
|
30
|
+
# Set if the entry is starred; unset otherwise.
|
31
|
+
class PersonalDetails
|
32
|
+
include ::Google::Protobuf::MessageExts
|
33
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
34
|
+
end
|
35
|
+
|
24
36
|
# This enum lists all the systems that Data Catalog integrates with.
|
25
37
|
module IntegratedSystem
|
26
38
|
# Default unknown system.
|
@@ -69,6 +69,7 @@ module Google
|
|
69
69
|
#
|
70
70
|
# * `relevance` that can only be descending
|
71
71
|
# * `last_modified_timestamp [asc|desc]` with descending (`desc`) as default
|
72
|
+
# * `default` that can only be descending
|
72
73
|
#
|
73
74
|
# If this parameter is omitted, it defaults to the descending `relevance`.
|
74
75
|
class SearchCatalogRequest
|
@@ -108,17 +109,15 @@ module Google
|
|
108
109
|
# `SearchCatalogResponse.unreachable` field. To get additional information
|
109
110
|
# on the error, repeat the search request and set the location name as the
|
110
111
|
# value of this parameter.
|
111
|
-
# @!attribute [rw]
|
112
|
+
# @!attribute [rw] starred_only
|
112
113
|
# @return [::Boolean]
|
113
|
-
# Optional. If `true`,
|
114
|
-
# templates][google.cloud.datacatalog.v1.TagTemplate.is_publicly_readable]
|
115
|
-
# in the search results. By default, they are included only if you have
|
116
|
-
# explicit permissions on them to view them. For example, if you are the
|
117
|
-
# owner.
|
114
|
+
# Optional. If `true`, search only among starred entries.
|
118
115
|
#
|
119
|
-
#
|
120
|
-
#
|
121
|
-
#
|
116
|
+
# By default, all results are returned, starred or not.
|
117
|
+
# @!attribute [rw] include_public_tag_templates
|
118
|
+
# @return [::Boolean]
|
119
|
+
# Optional. This field is deprecated. The search mechanism for public and private tag
|
120
|
+
# templates is the same.
|
122
121
|
class Scope
|
123
122
|
include ::Google::Protobuf::MessageExts
|
124
123
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -521,6 +520,9 @@ module Google
|
|
521
520
|
# (CR), and page breaks (FF).
|
522
521
|
# The maximum size is 2000 bytes when encoded in UTF-8.
|
523
522
|
# Default value is an empty string.
|
523
|
+
# @!attribute [rw] business_context
|
524
|
+
# @return [::Google::Cloud::DataCatalog::V1::BusinessContext]
|
525
|
+
# Business Context of the entry. Not supported for BigQuery datasets.
|
524
526
|
# @!attribute [rw] schema
|
525
527
|
# @return [::Google::Cloud::DataCatalog::V1::Schema]
|
526
528
|
# Schema of the entry. An entry might not have any schema attached to it.
|
@@ -545,6 +547,9 @@ module Google
|
|
545
547
|
# @!attribute [r] data_source
|
546
548
|
# @return [::Google::Cloud::DataCatalog::V1::DataSource]
|
547
549
|
# Output only. Physical location of the entry.
|
550
|
+
# @!attribute [r] personal_details
|
551
|
+
# @return [::Google::Cloud::DataCatalog::V1::PersonalDetails]
|
552
|
+
# Output only. Additional information related to the entry. Private to the current user.
|
548
553
|
class Entry
|
549
554
|
include ::Google::Protobuf::MessageExts
|
550
555
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -665,6 +670,55 @@ module Google
|
|
665
670
|
end
|
666
671
|
end
|
667
672
|
|
673
|
+
# Business Context of the entry.
|
674
|
+
# @!attribute [rw] entry_overview
|
675
|
+
# @return [::Google::Cloud::DataCatalog::V1::EntryOverview]
|
676
|
+
# Entry overview fields for rich text descriptions of entries.
|
677
|
+
# @!attribute [rw] contacts
|
678
|
+
# @return [::Google::Cloud::DataCatalog::V1::Contacts]
|
679
|
+
# Contact people for the entry.
|
680
|
+
class BusinessContext
|
681
|
+
include ::Google::Protobuf::MessageExts
|
682
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
683
|
+
end
|
684
|
+
|
685
|
+
# Entry overview fields for rich text descriptions of entries.
|
686
|
+
# @!attribute [rw] overview
|
687
|
+
# @return [::String]
|
688
|
+
# Entry overview with support for rich text.
|
689
|
+
#
|
690
|
+
# The overview must only contain Unicode characters, and should be
|
691
|
+
# formatted using HTML.
|
692
|
+
# The maximum length is 10 MiB as this value holds HTML descriptions
|
693
|
+
# including encoded images. The maximum length of the text without images
|
694
|
+
# is 100 KiB.
|
695
|
+
class EntryOverview
|
696
|
+
include ::Google::Protobuf::MessageExts
|
697
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
698
|
+
end
|
699
|
+
|
700
|
+
# Contact people for the entry.
|
701
|
+
# @!attribute [rw] people
|
702
|
+
# @return [::Array<::Google::Cloud::DataCatalog::V1::Contacts::Person>]
|
703
|
+
# The list of contact people for the entry.
|
704
|
+
class Contacts
|
705
|
+
include ::Google::Protobuf::MessageExts
|
706
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
707
|
+
|
708
|
+
# A contact person for the entry.
|
709
|
+
# @!attribute [rw] designation
|
710
|
+
# @return [::String]
|
711
|
+
# Designation of the person, for example, Data Steward.
|
712
|
+
# @!attribute [rw] email
|
713
|
+
# @return [::String]
|
714
|
+
# Email of the person in the format of `john.doe@example.com`,
|
715
|
+
# `<john.doe@example.com>`, or `John Doe<john.doe@example.com>`.
|
716
|
+
class Person
|
717
|
+
include ::Google::Protobuf::MessageExts
|
718
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
719
|
+
end
|
720
|
+
end
|
721
|
+
|
668
722
|
# Entry group metadata.
|
669
723
|
#
|
670
724
|
# An `EntryGroup` resource represents a logical grouping of zero or more
|
@@ -738,9 +792,7 @@ module Google
|
|
738
792
|
# request body, their values are emptied.
|
739
793
|
#
|
740
794
|
# Note: Updating the `is_publicly_readable` field may require up to 12
|
741
|
-
# hours to take effect in search results.
|
742
|
-
# the `tagTemplates.getIamPolicy` and `tagTemplates.setIamPolicy`
|
743
|
-
# permissions.
|
795
|
+
# hours to take effect in search results.
|
744
796
|
class UpdateTagTemplateRequest
|
745
797
|
include ::Google::Protobuf::MessageExts
|
746
798
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -980,6 +1032,68 @@ module Google
|
|
980
1032
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
981
1033
|
end
|
982
1034
|
|
1035
|
+
# Request message for
|
1036
|
+
# {::Google::Cloud::DataCatalog::V1::DataCatalog::Client#star_entry StarEntry}.
|
1037
|
+
# @!attribute [rw] name
|
1038
|
+
# @return [::String]
|
1039
|
+
# Required. The name of the entry to mark as starred.
|
1040
|
+
class StarEntryRequest
|
1041
|
+
include ::Google::Protobuf::MessageExts
|
1042
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1043
|
+
end
|
1044
|
+
|
1045
|
+
# Response message for
|
1046
|
+
# {::Google::Cloud::DataCatalog::V1::DataCatalog::Client#star_entry StarEntry}.
|
1047
|
+
# Empty for now
|
1048
|
+
class StarEntryResponse
|
1049
|
+
include ::Google::Protobuf::MessageExts
|
1050
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1051
|
+
end
|
1052
|
+
|
1053
|
+
# Request message for
|
1054
|
+
# {::Google::Cloud::DataCatalog::V1::DataCatalog::Client#unstar_entry UnstarEntry}.
|
1055
|
+
# @!attribute [rw] name
|
1056
|
+
# @return [::String]
|
1057
|
+
# Required. The name of the entry to mark as **not** starred.
|
1058
|
+
class UnstarEntryRequest
|
1059
|
+
include ::Google::Protobuf::MessageExts
|
1060
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1061
|
+
end
|
1062
|
+
|
1063
|
+
# Response message for
|
1064
|
+
# {::Google::Cloud::DataCatalog::V1::DataCatalog::Client#unstar_entry UnstarEntry}.
|
1065
|
+
# Empty for now
|
1066
|
+
class UnstarEntryResponse
|
1067
|
+
include ::Google::Protobuf::MessageExts
|
1068
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1069
|
+
end
|
1070
|
+
|
1071
|
+
# Request message for
|
1072
|
+
# {::Google::Cloud::DataCatalog::V1::DataCatalog::Client#modify_entry_overview ModifyEntryOverview}.
|
1073
|
+
# @!attribute [rw] name
|
1074
|
+
# @return [::String]
|
1075
|
+
# Required. The full resource name of the entry.
|
1076
|
+
# @!attribute [rw] entry_overview
|
1077
|
+
# @return [::Google::Cloud::DataCatalog::V1::EntryOverview]
|
1078
|
+
# Required. The new value for the Entry Overview.
|
1079
|
+
class ModifyEntryOverviewRequest
|
1080
|
+
include ::Google::Protobuf::MessageExts
|
1081
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1082
|
+
end
|
1083
|
+
|
1084
|
+
# Request message for
|
1085
|
+
# {::Google::Cloud::DataCatalog::V1::DataCatalog::Client#modify_entry_contacts ModifyEntryContacts}.
|
1086
|
+
# @!attribute [rw] name
|
1087
|
+
# @return [::String]
|
1088
|
+
# Required. The full resource name of the entry.
|
1089
|
+
# @!attribute [rw] contacts
|
1090
|
+
# @return [::Google::Cloud::DataCatalog::V1::Contacts]
|
1091
|
+
# Required. The new value for the Contacts.
|
1092
|
+
class ModifyEntryContactsRequest
|
1093
|
+
include ::Google::Protobuf::MessageExts
|
1094
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1095
|
+
end
|
1096
|
+
|
983
1097
|
# The enum field that lists all the types of entry resources in Data
|
984
1098
|
# Catalog. For example, a BigQuery table entry has the `TABLE` type.
|
985
1099
|
module EntryType
|
@@ -149,33 +149,12 @@ module Google
|
|
149
149
|
# The maximum length is 200 characters.
|
150
150
|
# @!attribute [rw] is_publicly_readable
|
151
151
|
# @return [::Boolean]
|
152
|
-
# Indicates whether this
|
152
|
+
# Indicates whether tags created with this template are public. Public tags
|
153
|
+
# do not require tag template access to appear in
|
154
|
+
# [ListTags][google.cloud.datacatalog.v1.ListTags] API response.
|
153
155
|
#
|
154
|
-
#
|
155
|
-
# This means that:
|
156
|
-
#
|
157
|
-
# * Every user can use this tag template to tag an entry.
|
158
|
-
# * If an entry is tagged using the tag template, the tag is always
|
159
|
-
# shown in the response to ``ListTags`` called on the entry.
|
160
|
-
# * To get the template using the GetTagTemplate method, you
|
161
|
-
# need view access either on the project or the organization the tag
|
162
|
-
# template resides in but no other permission is needed.
|
163
|
-
# * Operations on the tag template other than viewing (for example,
|
164
|
-
# editing IAM policies) follow standard IAM structures.
|
165
|
-
#
|
166
|
-
# Tags created with a public tag template are referred to as public tags.
|
167
|
-
#
|
168
|
-
# You can search for a public tag by value with a
|
156
|
+
# Additionally, you can search for a public tag by value with a
|
169
157
|
# simple search query instead of using a ``tag:`` predicate.
|
170
|
-
#
|
171
|
-
# Public tag templates may not appear in search results depending on scope,
|
172
|
-
# see:
|
173
|
-
# {::Google::Cloud::DataCatalog::V1::SearchCatalogRequest::Scope#include_public_tag_templates include_public_tag_templates}
|
174
|
-
#
|
175
|
-
# Note: If an [IAM domain
|
176
|
-
# restriction](https://cloud.google.com/resource-manager/docs/organization-policy/restricting-domains)
|
177
|
-
# is configured in the tag template's location, the public access will not be
|
178
|
-
# enabled but the simple search for tag values will still work.
|
179
158
|
# @!attribute [rw] fields
|
180
159
|
# @return [::Google::Protobuf::Map{::String => ::Google::Cloud::DataCatalog::V1::TagTemplateField}]
|
181
160
|
# Required. Map of tag template field IDs to the settings for the field.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-data_catalog-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.10.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-02-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -264,7 +264,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
264
264
|
- !ruby/object:Gem::Version
|
265
265
|
version: '0'
|
266
266
|
requirements: []
|
267
|
-
rubygems_version: 3.3.
|
267
|
+
rubygems_version: 3.3.5
|
268
268
|
signing_key:
|
269
269
|
specification_version: 4
|
270
270
|
summary: API Client library for the Data Catalog V1 API
|