google-cloud-bigquery-data_exchange-v1beta1 0.2.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +1 -1
- data/README.md +3 -3
- data/lib/google/cloud/bigquery/data_exchange/v1beta1/analytics_hub_service/client.rb +76 -67
- data/lib/google/cloud/bigquery/data_exchange/v1beta1/analytics_hub_service.rb +7 -6
- data/lib/google/cloud/bigquery/data_exchange/v1beta1/version.rb +1 -1
- data/lib/google/cloud/bigquery/data_exchange/v1beta1.rb +2 -2
- data/lib/google/cloud/bigquery/dataexchange/v1beta1/dataexchange_pb.rb +27 -118
- data/lib/google/cloud/bigquery/dataexchange/v1beta1/dataexchange_services_pb.rb +25 -24
- data/proto_docs/google/api/client.rb +381 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/cloud/bigquery/dataexchange/v1beta1/dataexchange.rb +116 -78
- data/proto_docs/google/iam/v1/policy.rb +8 -4
- data/proto_docs/google/protobuf/any.rb +144 -0
- data/proto_docs/google/protobuf/duration.rb +98 -0
- data/proto_docs/google/protobuf/empty.rb +0 -2
- metadata +32 -10
- data/lib/google/cloud/bigquery/dataexchange/common/common_pb.rb +0 -43
- data/proto_docs/google/cloud/bigquery/dataexchange/common/common.rb +0 -71
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 29577ca693360f2c0f48851e10c0bb8b2b6c07681d34baf3e6993907bd65700b
|
4
|
+
data.tar.gz: d86e60bfa2b1a46d090ac3e976e67b9a88172c245ba0df543e8aea71e926e0ff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8de57f2a83d81f776a66370e748579820d9e0f810237829d1c40ecda2e5e422fc20ff540e0d271a70c20b3003aa6c8690c0e06c20f6000405830b6ec9d1a84b2
|
7
|
+
data.tar.gz: 3701f90e02176bf74d908a30de8716886b7be3bda4d01f2dfec4f59864b7b3a82c93b26f8fba21d382c66a57c65e2fb1849886852e1331daaed4da07c4891283
|
data/AUTHENTICATION.md
CHANGED
@@ -112,7 +112,7 @@ credentials are discovered.
|
|
112
112
|
To configure your system for this, simply:
|
113
113
|
|
114
114
|
1. [Download and install the Cloud SDK](https://cloud.google.com/sdk)
|
115
|
-
2. Authenticate using OAuth 2.0 `$ gcloud auth login`
|
115
|
+
2. Authenticate using OAuth 2.0 `$ gcloud auth application-default login`
|
116
116
|
3. Write code as if already authenticated.
|
117
117
|
|
118
118
|
**NOTE:** This is _not_ recommended for running in production. The Cloud SDK
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Ruby Client for the Analytics Hub V1beta1 API
|
2
2
|
|
3
|
-
|
3
|
+
Exchange data and analytics assets securely and efficiently.
|
4
4
|
|
5
5
|
Analytics Hub is a data exchange that allows you to efficiently and securely exchange data assets across organizations to address challenges of data reliability and cost. Curate a library of internal and external assets, including unique datasets like Google Trends, backed by the power of BigQuery.
|
6
6
|
|
@@ -46,8 +46,8 @@ for general usage information.
|
|
46
46
|
## Enabling Logging
|
47
47
|
|
48
48
|
To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
|
49
|
-
The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/
|
50
|
-
or a [`Google::Cloud::Logging::Logger`](https://
|
49
|
+
The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
|
50
|
+
or a [`Google::Cloud::Logging::Logger`](https://cloud.google.com/ruby/docs/reference/google-cloud-logging/latest)
|
51
51
|
that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
|
52
52
|
and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
|
53
53
|
|
@@ -18,6 +18,7 @@
|
|
18
18
|
|
19
19
|
require "google/cloud/errors"
|
20
20
|
require "google/cloud/bigquery/dataexchange/v1beta1/dataexchange_pb"
|
21
|
+
require "google/cloud/location"
|
21
22
|
|
22
23
|
module Google
|
23
24
|
module Cloud
|
@@ -28,11 +29,12 @@ module Google
|
|
28
29
|
##
|
29
30
|
# Client for the AnalyticsHubService service.
|
30
31
|
#
|
31
|
-
# The AnalyticsHubService API facilitates data sharing within and across
|
32
|
-
# organizations. It allows data providers to publish
|
33
|
-
#
|
34
|
-
#
|
35
|
-
#
|
32
|
+
# The `AnalyticsHubService` API facilitates data sharing within and across
|
33
|
+
# organizations. It allows data providers to publish listings that reference
|
34
|
+
# shared datasets. With Analytics Hub, users can discover and search for
|
35
|
+
# listings that they have access to. Subscribers can view and subscribe to
|
36
|
+
# listings. When you subscribe to a listing, Analytics Hub creates a linked
|
37
|
+
# dataset in your project.
|
36
38
|
#
|
37
39
|
class Client
|
38
40
|
include Paths
|
@@ -133,7 +135,7 @@ module Google
|
|
133
135
|
credentials = @config.credentials
|
134
136
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
135
137
|
# but only if the default endpoint does not have a region prefix.
|
136
|
-
enable_self_signed_jwt = @config.endpoint ==
|
138
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
137
139
|
!@config.endpoint.split(".").first.include?("-")
|
138
140
|
credentials ||= Credentials.default scope: @config.scope,
|
139
141
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -143,6 +145,12 @@ module Google
|
|
143
145
|
@quota_project_id = @config.quota_project
|
144
146
|
@quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
|
145
147
|
|
148
|
+
@location_client = Google::Cloud::Location::Locations::Client.new do |config|
|
149
|
+
config.credentials = credentials
|
150
|
+
config.quota_project = @quota_project_id
|
151
|
+
config.endpoint = @config.endpoint
|
152
|
+
end
|
153
|
+
|
146
154
|
@analytics_hub_service_stub = ::Gapic::ServiceStub.new(
|
147
155
|
::Google::Cloud::Bigquery::DataExchange::V1beta1::AnalyticsHubService::Stub,
|
148
156
|
credentials: credentials,
|
@@ -152,10 +160,17 @@ module Google
|
|
152
160
|
)
|
153
161
|
end
|
154
162
|
|
163
|
+
##
|
164
|
+
# Get the associated client for mix-in of the Locations.
|
165
|
+
#
|
166
|
+
# @return [Google::Cloud::Location::Locations::Client]
|
167
|
+
#
|
168
|
+
attr_reader :location_client
|
169
|
+
|
155
170
|
# Service calls
|
156
171
|
|
157
172
|
##
|
158
|
-
# Lists
|
173
|
+
# Lists all data exchanges in a given project and location.
|
159
174
|
#
|
160
175
|
# @overload list_data_exchanges(request, options = nil)
|
161
176
|
# Pass arguments to `list_data_exchanges` via a request object, either of type
|
@@ -173,7 +188,7 @@ module Google
|
|
173
188
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
174
189
|
#
|
175
190
|
# @param parent [::String]
|
176
|
-
# Required. The parent resource path of the
|
191
|
+
# Required. The parent resource path of the data exchanges.
|
177
192
|
# e.g. `projects/myproject/locations/US`.
|
178
193
|
# @param page_size [::Integer]
|
179
194
|
# The maximum number of results to return in a single response page. Leverage
|
@@ -202,13 +217,11 @@ module Google
|
|
202
217
|
# # Call the list_data_exchanges method.
|
203
218
|
# result = client.list_data_exchanges request
|
204
219
|
#
|
205
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
206
|
-
# #
|
207
|
-
#
|
208
|
-
# # methods are also available for managing paging directly.
|
209
|
-
# result.each do |response|
|
220
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
221
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
222
|
+
# result.each do |item|
|
210
223
|
# # Each element is of type ::Google::Cloud::Bigquery::DataExchange::V1beta1::DataExchange.
|
211
|
-
# p
|
224
|
+
# p item
|
212
225
|
# end
|
213
226
|
#
|
214
227
|
def list_data_exchanges request, options = nil
|
@@ -254,7 +267,8 @@ module Google
|
|
254
267
|
end
|
255
268
|
|
256
269
|
##
|
257
|
-
# Lists
|
270
|
+
# Lists all data exchanges from projects in a given organization and
|
271
|
+
# location.
|
258
272
|
#
|
259
273
|
# @overload list_org_data_exchanges(request, options = nil)
|
260
274
|
# Pass arguments to `list_org_data_exchanges` via a request object, either of type
|
@@ -301,13 +315,11 @@ module Google
|
|
301
315
|
# # Call the list_org_data_exchanges method.
|
302
316
|
# result = client.list_org_data_exchanges request
|
303
317
|
#
|
304
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
305
|
-
# #
|
306
|
-
#
|
307
|
-
# # methods are also available for managing paging directly.
|
308
|
-
# result.each do |response|
|
318
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
319
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
320
|
+
# result.each do |item|
|
309
321
|
# # Each element is of type ::Google::Cloud::Bigquery::DataExchange::V1beta1::DataExchange.
|
310
|
-
# p
|
322
|
+
# p item
|
311
323
|
# end
|
312
324
|
#
|
313
325
|
def list_org_data_exchanges request, options = nil
|
@@ -353,7 +365,7 @@ module Google
|
|
353
365
|
end
|
354
366
|
|
355
367
|
##
|
356
|
-
# Gets details of a
|
368
|
+
# Gets the details of a data exchange.
|
357
369
|
#
|
358
370
|
# @overload get_data_exchange(request, options = nil)
|
359
371
|
# Pass arguments to `get_data_exchange` via a request object, either of type
|
@@ -371,7 +383,7 @@ module Google
|
|
371
383
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
372
384
|
#
|
373
385
|
# @param name [::String]
|
374
|
-
# Required. The resource name of the
|
386
|
+
# Required. The resource name of the data exchange.
|
375
387
|
# e.g. `projects/myproject/locations/US/dataExchanges/123`.
|
376
388
|
#
|
377
389
|
# @yield [response, operation] Access the result along with the RPC operation
|
@@ -439,7 +451,7 @@ module Google
|
|
439
451
|
end
|
440
452
|
|
441
453
|
##
|
442
|
-
# Creates a new
|
454
|
+
# Creates a new data exchange.
|
443
455
|
#
|
444
456
|
# @overload create_data_exchange(request, options = nil)
|
445
457
|
# Pass arguments to `create_data_exchange` via a request object, either of type
|
@@ -457,16 +469,16 @@ module Google
|
|
457
469
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
458
470
|
#
|
459
471
|
# @param parent [::String]
|
460
|
-
# Required. The parent resource path of the
|
472
|
+
# Required. The parent resource path of the data exchange.
|
461
473
|
# e.g. `projects/myproject/locations/US`.
|
462
474
|
# @param data_exchange_id [::String]
|
463
|
-
# Required. The ID of the
|
475
|
+
# Required. The ID of the data exchange.
|
464
476
|
# Must contain only Unicode letters, numbers (0-9), underscores (_).
|
465
477
|
# Should not use characters that require URL-escaping, or characters
|
466
478
|
# outside of ASCII, spaces.
|
467
479
|
# Max length: 100 bytes.
|
468
480
|
# @param data_exchange [::Google::Cloud::Bigquery::DataExchange::V1beta1::DataExchange, ::Hash]
|
469
|
-
# Required. The
|
481
|
+
# Required. The data exchange to create.
|
470
482
|
#
|
471
483
|
# @yield [response, operation] Access the result along with the RPC operation
|
472
484
|
# @yieldparam response [::Google::Cloud::Bigquery::DataExchange::V1beta1::DataExchange]
|
@@ -533,7 +545,7 @@ module Google
|
|
533
545
|
end
|
534
546
|
|
535
547
|
##
|
536
|
-
# Updates
|
548
|
+
# Updates an existing data exchange.
|
537
549
|
#
|
538
550
|
# @overload update_data_exchange(request, options = nil)
|
539
551
|
# Pass arguments to `update_data_exchange` via a request object, either of type
|
@@ -551,12 +563,11 @@ module Google
|
|
551
563
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
552
564
|
#
|
553
565
|
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
554
|
-
# Required. Field mask
|
555
|
-
#
|
556
|
-
#
|
557
|
-
# the full request.
|
566
|
+
# Required. Field mask specifies the fields to update in the data exchange
|
567
|
+
# resource. The fields specified in the
|
568
|
+
# `updateMask` are relative to the resource and are not a full request.
|
558
569
|
# @param data_exchange [::Google::Cloud::Bigquery::DataExchange::V1beta1::DataExchange, ::Hash]
|
559
|
-
# Required. The
|
570
|
+
# Required. The data exchange to update.
|
560
571
|
#
|
561
572
|
# @yield [response, operation] Access the result along with the RPC operation
|
562
573
|
# @yieldparam response [::Google::Cloud::Bigquery::DataExchange::V1beta1::DataExchange]
|
@@ -623,7 +634,7 @@ module Google
|
|
623
634
|
end
|
624
635
|
|
625
636
|
##
|
626
|
-
# Deletes
|
637
|
+
# Deletes an existing data exchange.
|
627
638
|
#
|
628
639
|
# @overload delete_data_exchange(request, options = nil)
|
629
640
|
# Pass arguments to `delete_data_exchange` via a request object, either of type
|
@@ -641,8 +652,8 @@ module Google
|
|
641
652
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
642
653
|
#
|
643
654
|
# @param name [::String]
|
644
|
-
# Required.
|
645
|
-
#
|
655
|
+
# Required. The full name of the data exchange resource that you want to delete.
|
656
|
+
# For example, `projects/myproject/locations/US/dataExchanges/123`.
|
646
657
|
#
|
647
658
|
# @yield [response, operation] Access the result along with the RPC operation
|
648
659
|
# @yieldparam response [::Google::Protobuf::Empty]
|
@@ -709,7 +720,7 @@ module Google
|
|
709
720
|
end
|
710
721
|
|
711
722
|
##
|
712
|
-
# Lists
|
723
|
+
# Lists all listings in a given project and location.
|
713
724
|
#
|
714
725
|
# @overload list_listings(request, options = nil)
|
715
726
|
# Pass arguments to `list_listings` via a request object, either of type
|
@@ -756,13 +767,11 @@ module Google
|
|
756
767
|
# # Call the list_listings method.
|
757
768
|
# result = client.list_listings request
|
758
769
|
#
|
759
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
760
|
-
# #
|
761
|
-
#
|
762
|
-
# # methods are also available for managing paging directly.
|
763
|
-
# result.each do |response|
|
770
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
771
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
772
|
+
# result.each do |item|
|
764
773
|
# # Each element is of type ::Google::Cloud::Bigquery::DataExchange::V1beta1::Listing.
|
765
|
-
# p
|
774
|
+
# p item
|
766
775
|
# end
|
767
776
|
#
|
768
777
|
def list_listings request, options = nil
|
@@ -808,7 +817,7 @@ module Google
|
|
808
817
|
end
|
809
818
|
|
810
819
|
##
|
811
|
-
# Gets details of a
|
820
|
+
# Gets the details of a listing.
|
812
821
|
#
|
813
822
|
# @overload get_listing(request, options = nil)
|
814
823
|
# Pass arguments to `get_listing` via a request object, either of type
|
@@ -894,7 +903,7 @@ module Google
|
|
894
903
|
end
|
895
904
|
|
896
905
|
##
|
897
|
-
# Creates a new
|
906
|
+
# Creates a new listing.
|
898
907
|
#
|
899
908
|
# @overload create_listing(request, options = nil)
|
900
909
|
# Pass arguments to `create_listing` via a request object, either of type
|
@@ -915,7 +924,7 @@ module Google
|
|
915
924
|
# Required. The parent resource path of the listing.
|
916
925
|
# e.g. `projects/myproject/locations/US/dataExchanges/123`.
|
917
926
|
# @param listing_id [::String]
|
918
|
-
# Required. The ID of the
|
927
|
+
# Required. The ID of the listing to create.
|
919
928
|
# Must contain only Unicode letters, numbers (0-9), underscores (_).
|
920
929
|
# Should not use characters that require URL-escaping, or characters
|
921
930
|
# outside of ASCII, spaces.
|
@@ -988,7 +997,7 @@ module Google
|
|
988
997
|
end
|
989
998
|
|
990
999
|
##
|
991
|
-
# Updates
|
1000
|
+
# Updates an existing listing.
|
992
1001
|
#
|
993
1002
|
# @overload update_listing(request, options = nil)
|
994
1003
|
# Pass arguments to `update_listing` via a request object, either of type
|
@@ -1006,10 +1015,9 @@ module Google
|
|
1006
1015
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1007
1016
|
#
|
1008
1017
|
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
1009
|
-
# Required. Field mask
|
1010
|
-
#
|
1011
|
-
#
|
1012
|
-
# the full request.
|
1018
|
+
# Required. Field mask specifies the fields to update in the listing resource. The
|
1019
|
+
# fields specified in the `updateMask` are relative to the resource and are
|
1020
|
+
# not a full request.
|
1013
1021
|
# @param listing [::Google::Cloud::Bigquery::DataExchange::V1beta1::Listing, ::Hash]
|
1014
1022
|
# Required. The listing to update.
|
1015
1023
|
#
|
@@ -1078,8 +1086,7 @@ module Google
|
|
1078
1086
|
end
|
1079
1087
|
|
1080
1088
|
##
|
1081
|
-
# Deletes a
|
1082
|
-
# associated with the source of this Listing.
|
1089
|
+
# Deletes a listing.
|
1083
1090
|
#
|
1084
1091
|
# @overload delete_listing(request, options = nil)
|
1085
1092
|
# Pass arguments to `delete_listing` via a request object, either of type
|
@@ -1165,10 +1172,11 @@ module Google
|
|
1165
1172
|
end
|
1166
1173
|
|
1167
1174
|
##
|
1168
|
-
# Subscribes to a
|
1175
|
+
# Subscribes to a listing.
|
1169
1176
|
#
|
1170
|
-
#
|
1171
|
-
#
|
1177
|
+
# Currently, with Analytics Hub, you can create listings that
|
1178
|
+
# reference only BigQuery datasets.
|
1179
|
+
# Upon subscription to a listing for a BigQuery dataset, Analytics Hub
|
1172
1180
|
# creates a linked dataset in the subscriber's project.
|
1173
1181
|
#
|
1174
1182
|
# @overload subscribe_listing(request, options = nil)
|
@@ -1181,16 +1189,16 @@ module Google
|
|
1181
1189
|
# @param options [::Gapic::CallOptions, ::Hash]
|
1182
1190
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1183
1191
|
#
|
1184
|
-
# @overload subscribe_listing(
|
1192
|
+
# @overload subscribe_listing(destination_dataset: nil, name: nil)
|
1185
1193
|
# Pass arguments to `subscribe_listing` via keyword arguments. Note that at
|
1186
1194
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
1187
1195
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1188
1196
|
#
|
1189
|
-
# @param name [::String]
|
1190
|
-
# Required. Resource name of the listing to subscribe to.
|
1191
|
-
# e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`.
|
1192
1197
|
# @param destination_dataset [::Google::Cloud::Bigquery::DataExchange::V1beta1::DestinationDataset, ::Hash]
|
1193
1198
|
# BigQuery destination dataset to create for the subscriber.
|
1199
|
+
# @param name [::String]
|
1200
|
+
# Required. Resource name of the listing that you want to subscribe to.
|
1201
|
+
# e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`.
|
1194
1202
|
#
|
1195
1203
|
# @yield [response, operation] Access the result along with the RPC operation
|
1196
1204
|
# @yieldparam response [::Google::Cloud::Bigquery::DataExchange::V1beta1::SubscribeListingResponse]
|
@@ -1257,7 +1265,7 @@ module Google
|
|
1257
1265
|
end
|
1258
1266
|
|
1259
1267
|
##
|
1260
|
-
# Gets the IAM policy
|
1268
|
+
# Gets the IAM policy.
|
1261
1269
|
#
|
1262
1270
|
# @overload get_iam_policy(request, options = nil)
|
1263
1271
|
# Pass arguments to `get_iam_policy` via a request object, either of type
|
@@ -1346,7 +1354,7 @@ module Google
|
|
1346
1354
|
end
|
1347
1355
|
|
1348
1356
|
##
|
1349
|
-
# Sets the IAM policy
|
1357
|
+
# Sets the IAM policy.
|
1350
1358
|
#
|
1351
1359
|
# @overload set_iam_policy(request, options = nil)
|
1352
1360
|
# Pass arguments to `set_iam_policy` via a request object, either of type
|
@@ -1443,8 +1451,7 @@ module Google
|
|
1443
1451
|
end
|
1444
1452
|
|
1445
1453
|
##
|
1446
|
-
# Returns the permissions that a caller has
|
1447
|
-
# listing.
|
1454
|
+
# Returns the permissions that a caller has.
|
1448
1455
|
#
|
1449
1456
|
# @overload test_iam_permissions(request, options = nil)
|
1450
1457
|
# Pass arguments to `test_iam_permissions` via a request object, either of type
|
@@ -1572,9 +1579,9 @@ module Google
|
|
1572
1579
|
# * (`String`) The path to a service account key file in JSON format
|
1573
1580
|
# * (`Hash`) A service account key as a Hash
|
1574
1581
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
1575
|
-
# (see the [googleauth docs](https://
|
1582
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
1576
1583
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
1577
|
-
# (see the [signet docs](https://
|
1584
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
1578
1585
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
1579
1586
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
1580
1587
|
# * (`nil`) indicating no credentials
|
@@ -1616,7 +1623,9 @@ module Google
|
|
1616
1623
|
class Configuration
|
1617
1624
|
extend ::Gapic::Config
|
1618
1625
|
|
1619
|
-
|
1626
|
+
DEFAULT_ENDPOINT = "analyticshub.googleapis.com"
|
1627
|
+
|
1628
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
1620
1629
|
config_attr :credentials, nil do |value|
|
1621
1630
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
1622
1631
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
@@ -32,13 +32,14 @@ module Google
|
|
32
32
|
module DataExchange
|
33
33
|
module V1beta1
|
34
34
|
##
|
35
|
-
# The AnalyticsHubService API facilitates data sharing within and across
|
36
|
-
# organizations. It allows data providers to publish
|
37
|
-
#
|
38
|
-
#
|
39
|
-
#
|
35
|
+
# The `AnalyticsHubService` API facilitates data sharing within and across
|
36
|
+
# organizations. It allows data providers to publish listings that reference
|
37
|
+
# shared datasets. With Analytics Hub, users can discover and search for
|
38
|
+
# listings that they have access to. Subscribers can view and subscribe to
|
39
|
+
# listings. When you subscribe to a listing, Analytics Hub creates a linked
|
40
|
+
# dataset in your project.
|
40
41
|
#
|
41
|
-
#
|
42
|
+
# @example Load this service and instantiate a gRPC client
|
42
43
|
#
|
43
44
|
# require "google/cloud/bigquery/data_exchange/v1beta1/analytics_hub_service"
|
44
45
|
# client = ::Google::Cloud::Bigquery::DataExchange::V1beta1::AnalyticsHubService::Client.new
|
@@ -24,9 +24,9 @@ module Google
|
|
24
24
|
module Bigquery
|
25
25
|
module DataExchange
|
26
26
|
##
|
27
|
-
#
|
27
|
+
# API client module.
|
28
28
|
#
|
29
|
-
# @example
|
29
|
+
# @example Load this package, including all its services, and instantiate a gRPC client
|
30
30
|
#
|
31
31
|
# require "google/cloud/bigquery/data_exchange/v1beta1"
|
32
32
|
# client = ::Google::Cloud::Bigquery::DataExchange::V1beta1::AnalyticsHubService::Client.new
|