google-cloud-bigquery-analytics_hub-v1 0.9.0 → 0.11.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/bigquery/analytics_hub/v1/analytics_hub_service/client.rb +22 -10
- data/lib/google/cloud/bigquery/analytics_hub/v1/analytics_hub_service/operations.rb +7 -0
- data/lib/google/cloud/bigquery/analytics_hub/v1/analytics_hub_service/paths.rb +17 -0
- data/lib/google/cloud/bigquery/analytics_hub/v1/analytics_hub_service/rest/client.rb +22 -10
- data/lib/google/cloud/bigquery/analytics_hub/v1/analytics_hub_service/rest/operations.rb +7 -0
- data/lib/google/cloud/bigquery/analytics_hub/v1/version.rb +1 -1
- data/lib/google/cloud/bigquery/analyticshub/v1/analyticshub_pb.rb +6 -1
- data/lib/google/cloud/bigquery/analyticshub/v1/analyticshub_services_pb.rb +2 -2
- data/lib/google/cloud/bigquery/analyticshub/v1/pubsub_pb.rb +62 -0
- data/proto_docs/google/api/client.rb +14 -0
- data/proto_docs/google/cloud/bigquery/analyticshub/v1/analyticshub.rb +105 -13
- data/proto_docs/google/cloud/bigquery/analyticshub/v1/pubsub.rb +544 -0
- data/proto_docs/google/longrunning/operations.rb +4 -0
- metadata +8 -9
@@ -67,6 +67,11 @@ module Google
|
|
67
67
|
# Optional. Type of discovery on the discovery page for all the listings
|
68
68
|
# under this exchange. Updating this field also updates (overwrites) the
|
69
69
|
# discovery_type field for all the listings under this exchange.
|
70
|
+
# @!attribute [rw] log_linked_dataset_query_user_email
|
71
|
+
# @return [::Boolean]
|
72
|
+
# Optional. By default, false.
|
73
|
+
# If true, the DataExchange has an email sharing mandate enabled.
|
74
|
+
# Publishers can view the logged email of the subscriber.
|
70
75
|
class DataExchange
|
71
76
|
include ::Google::Protobuf::MessageExts
|
72
77
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -77,9 +82,13 @@ module Google
|
|
77
82
|
# @!attribute [rw] default_exchange_config
|
78
83
|
# @return [::Google::Cloud::Bigquery::AnalyticsHub::V1::SharingEnvironmentConfig::DefaultExchangeConfig]
|
79
84
|
# Default Analytics Hub data exchange, used for secured data sharing.
|
85
|
+
#
|
86
|
+
# Note: The following fields are mutually exclusive: `default_exchange_config`, `dcr_exchange_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
80
87
|
# @!attribute [rw] dcr_exchange_config
|
81
88
|
# @return [::Google::Cloud::Bigquery::AnalyticsHub::V1::SharingEnvironmentConfig::DcrExchangeConfig]
|
82
89
|
# Data Clean Room (DCR), used for privacy-safe and secured data sharing.
|
90
|
+
#
|
91
|
+
# Note: The following fields are mutually exclusive: `dcr_exchange_config`, `default_exchange_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
83
92
|
class SharingEnvironmentConfig
|
84
93
|
include ::Google::Protobuf::MessageExts
|
85
94
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -138,7 +147,6 @@ module Google
|
|
138
147
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
139
148
|
end
|
140
149
|
|
141
|
-
# Contains the reference that identifies a destination bigquery dataset.
|
142
150
|
# @!attribute [rw] dataset_id
|
143
151
|
# @return [::String]
|
144
152
|
# Required. A unique ID for this dataset, without the project name. The ID
|
@@ -188,13 +196,29 @@ module Google
|
|
188
196
|
end
|
189
197
|
end
|
190
198
|
|
199
|
+
# Defines the destination Pub/Sub subscription.
|
200
|
+
# @!attribute [rw] pubsub_subscription
|
201
|
+
# @return [::Google::Cloud::Bigquery::AnalyticsHub::V1::PubSubSubscription]
|
202
|
+
# Required. Destination Pub/Sub subscription resource.
|
203
|
+
class DestinationPubSubSubscription
|
204
|
+
include ::Google::Protobuf::MessageExts
|
205
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
206
|
+
end
|
207
|
+
|
191
208
|
# A listing is what gets published into a data exchange that a subscriber can
|
192
209
|
# subscribe to. It contains a reference to the data source along with
|
193
210
|
# descriptive information that will help subscribers find and subscribe the
|
194
211
|
# data.
|
195
212
|
# @!attribute [rw] bigquery_dataset
|
196
213
|
# @return [::Google::Cloud::Bigquery::AnalyticsHub::V1::Listing::BigQueryDatasetSource]
|
197
|
-
#
|
214
|
+
# Shared dataset i.e. BigQuery dataset source.
|
215
|
+
#
|
216
|
+
# Note: The following fields are mutually exclusive: `bigquery_dataset`, `pubsub_topic`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
217
|
+
# @!attribute [rw] pubsub_topic
|
218
|
+
# @return [::Google::Cloud::Bigquery::AnalyticsHub::V1::Listing::PubSubTopicSource]
|
219
|
+
# Pub/Sub topic source.
|
220
|
+
#
|
221
|
+
# Note: The following fields are mutually exclusive: `pubsub_topic`, `bigquery_dataset`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
198
222
|
# @!attribute [r] name
|
199
223
|
# @return [::String]
|
200
224
|
# Output only. The resource name of the listing.
|
@@ -250,6 +274,13 @@ module Google
|
|
250
274
|
# @!attribute [rw] discovery_type
|
251
275
|
# @return [::Google::Cloud::Bigquery::AnalyticsHub::V1::DiscoveryType]
|
252
276
|
# Optional. Type of discovery of the listing on the discovery page.
|
277
|
+
# @!attribute [r] resource_type
|
278
|
+
# @return [::Google::Cloud::Bigquery::AnalyticsHub::V1::SharedResourceType]
|
279
|
+
# Output only. Listing shared asset type.
|
280
|
+
# @!attribute [rw] log_linked_dataset_query_user_email
|
281
|
+
# @return [::Boolean]
|
282
|
+
# Optional. By default, false.
|
283
|
+
# If true, the Listing has an email sharing mandate enabled.
|
253
284
|
class Listing
|
254
285
|
include ::Google::Protobuf::MessageExts
|
255
286
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -263,13 +294,12 @@ module Google
|
|
263
294
|
# dataset that serves as a _symbolic link_ to a shared dataset.
|
264
295
|
# @!attribute [rw] dataset
|
265
296
|
# @return [::String]
|
266
|
-
# Resource name of the dataset source for this listing.
|
297
|
+
# Optional. Resource name of the dataset source for this listing.
|
267
298
|
# e.g. `projects/myproject/datasets/123`
|
268
299
|
# @!attribute [rw] selected_resources
|
269
300
|
# @return [::Array<::Google::Cloud::Bigquery::AnalyticsHub::V1::Listing::BigQueryDatasetSource::SelectedResource>]
|
270
|
-
# Optional.
|
271
|
-
#
|
272
|
-
# shared. This field is only valid for data clean room exchanges.
|
301
|
+
# Optional. Resource in this dataset that is selectively shared.
|
302
|
+
# This field is required for data clean room exchanges.
|
273
303
|
# @!attribute [rw] restricted_export_policy
|
274
304
|
# @return [::Google::Cloud::Bigquery::AnalyticsHub::V1::Listing::BigQueryDatasetSource::RestrictedExportPolicy]
|
275
305
|
# Optional. If set, restricted export policy will be propagated and
|
@@ -278,7 +308,7 @@ module Google
|
|
278
308
|
include ::Google::Protobuf::MessageExts
|
279
309
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
280
310
|
|
281
|
-
# Resource in this dataset that
|
311
|
+
# Resource in this dataset that is selectively shared.
|
282
312
|
# @!attribute [rw] table
|
283
313
|
# @return [::String]
|
284
314
|
# Optional. Format:
|
@@ -309,6 +339,21 @@ module Google
|
|
309
339
|
end
|
310
340
|
end
|
311
341
|
|
342
|
+
# Pub/Sub topic source.
|
343
|
+
# @!attribute [rw] topic
|
344
|
+
# @return [::String]
|
345
|
+
# Required. Resource name of the Pub/Sub topic source for this listing.
|
346
|
+
# e.g. projects/myproject/topics/topicId
|
347
|
+
# @!attribute [rw] data_affinity_regions
|
348
|
+
# @return [::Array<::String>]
|
349
|
+
# Optional. Region hint on where the data might be published. Data affinity
|
350
|
+
# regions are modifiable. See https://cloud.google.com/about/locations for
|
351
|
+
# full listing of possible Cloud regions.
|
352
|
+
class PubSubTopicSource
|
353
|
+
include ::Google::Protobuf::MessageExts
|
354
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
355
|
+
end
|
356
|
+
|
312
357
|
# Restricted export config, used to configure restricted export on linked
|
313
358
|
# dataset.
|
314
359
|
# @!attribute [rw] enabled
|
@@ -388,10 +433,14 @@ module Google
|
|
388
433
|
# @return [::String]
|
389
434
|
# Output only. Resource name of the source Listing.
|
390
435
|
# e.g. projects/123/locations/US/dataExchanges/456/listings/789
|
436
|
+
#
|
437
|
+
# Note: The following fields are mutually exclusive: `listing`, `data_exchange`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
391
438
|
# @!attribute [r] data_exchange
|
392
439
|
# @return [::String]
|
393
440
|
# Output only. Resource name of the source Data Exchange.
|
394
441
|
# e.g. projects/123/locations/US/dataExchanges/456
|
442
|
+
#
|
443
|
+
# Note: The following fields are mutually exclusive: `data_exchange`, `listing`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
395
444
|
# @!attribute [r] name
|
396
445
|
# @return [::String]
|
397
446
|
# Output only. The resource name of the subscription.
|
@@ -423,6 +472,18 @@ module Google
|
|
423
472
|
# @!attribute [r] subscriber_contact
|
424
473
|
# @return [::String]
|
425
474
|
# Output only. Email of the subscriber.
|
475
|
+
# @!attribute [r] linked_resources
|
476
|
+
# @return [::Array<::Google::Cloud::Bigquery::AnalyticsHub::V1::Subscription::LinkedResource>]
|
477
|
+
# Output only. Linked resources created in the subscription. Only contains
|
478
|
+
# values if state = STATE_ACTIVE.
|
479
|
+
# @!attribute [r] resource_type
|
480
|
+
# @return [::Google::Cloud::Bigquery::AnalyticsHub::V1::SharedResourceType]
|
481
|
+
# Output only. Listing shared asset type.
|
482
|
+
# @!attribute [r] log_linked_dataset_query_user_email
|
483
|
+
# @return [::Boolean]
|
484
|
+
# Output only. By default, false.
|
485
|
+
# If true, the Subscriber agreed to the email sharing mandate
|
486
|
+
# that is enabled for DataExchange/Listing.
|
426
487
|
class Subscription
|
427
488
|
include ::Google::Protobuf::MessageExts
|
428
489
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -432,6 +493,17 @@ module Google
|
|
432
493
|
# @return [::String]
|
433
494
|
# Output only. Name of the linked dataset, e.g.
|
434
495
|
# projects/subscriberproject/datasets/linked_dataset
|
496
|
+
#
|
497
|
+
# Note: The following fields are mutually exclusive: `linked_dataset`, `linked_pubsub_subscription`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
498
|
+
# @!attribute [r] linked_pubsub_subscription
|
499
|
+
# @return [::String]
|
500
|
+
# Output only. Name of the Pub/Sub subscription, e.g.
|
501
|
+
# projects/subscriberproject/subscriptions/subscriptions/sub_id
|
502
|
+
#
|
503
|
+
# Note: The following fields are mutually exclusive: `linked_pubsub_subscription`, `linked_dataset`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
504
|
+
# @!attribute [r] listing
|
505
|
+
# @return [::String]
|
506
|
+
# Output only. Listing for which linked resource is created.
|
435
507
|
class LinkedResource
|
436
508
|
include ::Google::Protobuf::MessageExts
|
437
509
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -544,9 +616,7 @@ module Google
|
|
544
616
|
# @!attribute [rw] data_exchange_id
|
545
617
|
# @return [::String]
|
546
618
|
# Required. The ID of the data exchange.
|
547
|
-
# Must contain only
|
548
|
-
# Should not use characters that require URL-escaping, or characters
|
549
|
-
# outside of ASCII, spaces.
|
619
|
+
# Must contain only ASCII letters, numbers (0-9), underscores (_).
|
550
620
|
# Max length: 100 bytes.
|
551
621
|
# @!attribute [rw] data_exchange
|
552
622
|
# @return [::Google::Cloud::Bigquery::AnalyticsHub::V1::DataExchange]
|
@@ -628,9 +698,7 @@ module Google
|
|
628
698
|
# @!attribute [rw] listing_id
|
629
699
|
# @return [::String]
|
630
700
|
# Required. The ID of the listing to create.
|
631
|
-
# Must contain only
|
632
|
-
# Should not use characters that require URL-escaping, or characters
|
633
|
-
# outside of ASCII, spaces.
|
701
|
+
# Must contain only ASCII letters, numbers (0-9), underscores (_).
|
634
702
|
# Max length: 100 bytes.
|
635
703
|
# @!attribute [rw] listing
|
636
704
|
# @return [::Google::Cloud::Bigquery::AnalyticsHub::V1::Listing]
|
@@ -668,6 +736,14 @@ module Google
|
|
668
736
|
# @!attribute [rw] destination_dataset
|
669
737
|
# @return [::Google::Cloud::Bigquery::AnalyticsHub::V1::DestinationDataset]
|
670
738
|
# Input only. BigQuery destination dataset to create for the subscriber.
|
739
|
+
#
|
740
|
+
# Note: The following fields are mutually exclusive: `destination_dataset`, `destination_pubsub_subscription`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
741
|
+
# @!attribute [rw] destination_pubsub_subscription
|
742
|
+
# @return [::Google::Cloud::Bigquery::AnalyticsHub::V1::DestinationPubSubSubscription]
|
743
|
+
# Input only. Destination Pub/Sub subscription to create for the
|
744
|
+
# subscriber.
|
745
|
+
#
|
746
|
+
# Note: The following fields are mutually exclusive: `destination_pubsub_subscription`, `destination_dataset`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
671
747
|
# @!attribute [rw] name
|
672
748
|
# @return [::String]
|
673
749
|
# Required. Resource name of the listing that you want to subscribe to.
|
@@ -695,6 +771,9 @@ module Google
|
|
695
771
|
# @return [::String]
|
696
772
|
# Required. The parent resource path of the Subscription.
|
697
773
|
# e.g. `projects/subscriberproject/locations/US`
|
774
|
+
# @!attribute [rw] destination_dataset
|
775
|
+
# @return [::Google::Cloud::Bigquery::AnalyticsHub::V1::DestinationDataset]
|
776
|
+
# Optional. BigQuery destination dataset to create for the subscriber.
|
698
777
|
# @!attribute [rw] subscription
|
699
778
|
# @return [::String]
|
700
779
|
# Required. Name of the subscription to create.
|
@@ -835,6 +914,7 @@ module Google
|
|
835
914
|
end
|
836
915
|
|
837
916
|
# Message for response when you revoke a subscription.
|
917
|
+
# Empty for now.
|
838
918
|
class RevokeSubscriptionResponse
|
839
919
|
include ::Google::Protobuf::MessageExts
|
840
920
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -896,6 +976,18 @@ module Google
|
|
896
976
|
# list.
|
897
977
|
DISCOVERY_TYPE_PUBLIC = 2
|
898
978
|
end
|
979
|
+
|
980
|
+
# The underlying shared asset type shared in a listing by a publisher.
|
981
|
+
module SharedResourceType
|
982
|
+
# Not specified.
|
983
|
+
SHARED_RESOURCE_TYPE_UNSPECIFIED = 0
|
984
|
+
|
985
|
+
# BigQuery Dataset Asset.
|
986
|
+
BIGQUERY_DATASET = 1
|
987
|
+
|
988
|
+
# Pub/Sub Topic Asset.
|
989
|
+
PUBSUB_TOPIC = 2
|
990
|
+
end
|
899
991
|
end
|
900
992
|
end
|
901
993
|
end
|